diff --git a/.obsidian/plugins/breadcrumbs/data-backup__no-directions-migration.json b/.obsidian/plugins/breadcrumbs/data-backup__no-directions-migration.json new file mode 100644 index 00000000..7ef6f408 --- /dev/null +++ b/.obsidian/plugins/breadcrumbs/data-backup__no-directions-migration.json @@ -0,0 +1,722 @@ +{ + "altLinkFields": [], + "CSVPaths": "", + "dateFormat": "YYYY-MM-DD", + "dataviewNoteField": "up", + "dateNoteAddMonth": "", + "dateNoteAddYear": "", + "enableAlphaSort": true, + "limitWriteBCCheckboxes": [ + "up", + "next", + "prev", + "author", + "source", + "same", + "opposes", + "same_source", + "wrote", + "", + "same_author", + "excerpt", + "includes", + "used_in", + "citation" + ], + "CHECKBOX_STATES_OVERWRITTEN": false, + "indexNotes": [], + "namingSystemField": "", + "namingSystemRegex": "", + "namingSystemSplit": ".", + "namingSystemEndsWithDelimiter": false, + "useAllMetadata": true, + "openMatrixOnLoad": true, + "openDuckOnLoad": false, + "openDownOnLoad": true, + "parseJugglLinksWithoutJuggl": false, + "showNameOrType": true, + "showRelationType": true, + "regexNoteField": "", + "rlLeaf": false, + "showAllPathsIfNoneToIndexNote": false, + "showAllAliases": true, + "showBCsInEditLPMode": true, + "showImpliedRelations": true, + "showTrail": false, + "showJuggl": false, + "sortByNameShowAlias": false, + "squareDirectionsOrder": [ + 0, + 1, + 2, + 3, + 4 + ], + "limitTrailCheckboxes": [ + "up", + "author", + "supports", + "opposes", + "source", + "" + ], + "limitJumpToFirstFields": [ + "up", + "sibling", + "down", + "next", + "prev", + "extercept", + "includes", + "supports", + "supported_by", + "refutes", + "refuted_by", + "opposes", + "source", + "wrote", + "author", + "", + "same_author", + "excerpt", + "citation" + ], + "showAll": "All", + "threadIntoNewPane": true, + "threadingDirTemplates": { + "up": "", + "same": "", + "down": "", + "next": "", + "prev": "" + }, + "trailSeperator": "→", + "treatCurrNodeAsImpliedSibling": false, + "showWriteAllBCsCmd": false, + "visGraph": "Force Directed Graph", + "visRelation": "Child", + "visClosed": "Closed", + "visAll": "No Unlinked", + "showUpInJuggl": false, + "gridHeatmap": true, + "heatmapColour": "#3b3b3b", + "is_dirty": false, + "edge_fields": [ + { + "label": "up" + }, + { + "label": "down" + }, + { + "label": "same" + }, + { + "label": "next" + }, + { + "label": "prev" + }, + { + "label": "sibling" + }, + { + "label": "author" + }, + { + "label": "wrote" + }, + { + "label": "same_author" + }, + { + "label": "supports" + }, + { + "label": "supported_by" + }, + { + "label": "refuted_by" + }, + { + "label": "refutes" + }, + { + "label": "opposes" + }, + { + "label": "source" + }, + { + "label": "includes" + }, + { + "label": "citation" + }, + { + "label": "same_source" + } + ], + "edge_field_groups": [ + { + "label": "ups", + "fields": [ + "up", + "author", + "supports", + "opposes", + "source" + ] + }, + { + "label": "downs", + "fields": [ + "down", + "wrote", + "supported_by", + "includes", + "citation" + ] + }, + { + "label": "sames", + "fields": [ + "same", + "sibling", + "same_author", + "same_source" + ] + }, + { + "label": "nexts", + "fields": [ + "next", + "refutes" + ] + }, + { + "label": "prevs", + "fields": [ + "prev", + "refuted_by" + ] + } + ], + "implied_relations": { + "transitive": [ + { + "name": "", + "rounds": 1, + "chain": [ + { + "field": "up" + } + ], + "close_field": "down", + "close_reversed": true + }, + { + "name": "", + "rounds": 1, + "chain": [ + { + "field": "down" + } + ], + "close_field": "up", + "close_reversed": true + }, + { + "name": "", + "rounds": 1, + "chain": [ + { + "field": "same" + } + ], + "close_field": "same", + "close_reversed": true + }, + { + "name": "", + "rounds": 1, + "chain": [ + { + "field": "next" + } + ], + "close_field": "prev", + "close_reversed": true + }, + { + "name": "", + "rounds": 1, + "chain": [ + { + "field": "prev" + } + ], + "close_field": "next", + "close_reversed": true + }, + { + "rounds": 1, + "name": "", + "close_field": "sibling", + "chain": [ + { + "field": "sibling" + } + ], + "close_reversed": true + }, + { + "rounds": 1, + "name": "", + "chain": [ + { + "field": "sibling" + }, + { + "field": "sibling" + } + ], + "close_reversed": false, + "close_field": "sibling" + }, + { + "rounds": 1, + "name": "", + "chain": [ + { + "field": "sibling" + }, + { + "field": "up" + } + ], + "close_reversed": false, + "close_field": "up" + }, + { + "rounds": 1, + "name": "", + "close_field": "wrote", + "chain": [ + { + "field": "author" + } + ], + "close_reversed": true + }, + { + "rounds": 1, + "name": "", + "close_field": "author", + "chain": [ + { + "field": "wrote" + } + ], + "close_reversed": true + }, + { + "rounds": 1, + "name": "", + "close_field": "same_author", + "chain": [ + { + "field": "same_author" + } + ], + "close_reversed": true + }, + { + "rounds": 1, + "name": "", + "chain": [ + { + "field": "same_author" + }, + { + "field": "same_author" + } + ], + "close_reversed": false, + "close_field": "same_author" + }, + { + "rounds": 1, + "name": "", + "chain": [ + { + "field": "same_author" + }, + { + "field": "author" + } + ], + "close_reversed": false, + "close_field": "author" + }, + { + "rounds": 1, + "name": "", + "close_field": "supported_by", + "chain": [ + { + "field": "supports" + } + ], + "close_reversed": true + }, + { + "rounds": 1, + "name": "", + "close_field": "supports", + "chain": [ + { + "field": "supported_by" + } + ], + "close_reversed": true + }, + { + "rounds": 1, + "name": "", + "close_field": "refutes", + "chain": [ + { + "field": "refuted_by" + } + ], + "close_reversed": true + }, + { + "rounds": 1, + "name": "", + "close_field": "refuted_by", + "chain": [ + { + "field": "refutes" + } + ], + "close_reversed": true + }, + { + "rounds": 1, + "name": "", + "chain": [ + { + "field": "same" + }, + { + "field": "same" + } + ], + "close_reversed": false, + "close_field": "same" + }, + { + "rounds": 1, + "name": "", + "chain": [ + { + "field": "same" + }, + { + "field": "opposes" + } + ], + "close_reversed": false, + "close_field": "opposes" + }, + { + "rounds": 1, + "name": "", + "close_field": "includes", + "chain": [ + { + "field": "source" + } + ], + "close_reversed": true + }, + { + "rounds": 1, + "name": "", + "close_field": "source", + "chain": [ + { + "field": "includes" + } + ], + "close_reversed": true + }, + { + "rounds": 1, + "name": "", + "close_field": "same_source", + "chain": [ + { + "field": "same_source" + } + ], + "close_reversed": true + }, + { + "rounds": 1, + "name": "", + "chain": [ + { + "field": "same_source" + }, + { + "field": "same_source" + } + ], + "close_reversed": false, + "close_field": "same_source" + }, + { + "rounds": 1, + "name": "", + "chain": [ + { + "field": "same_source" + }, + { + "field": "source" + } + ], + "close_reversed": false, + "close_field": "source" + }, + { + "name": "", + "chain": [ + { + "field": "source" + }, + { + "field": "author" + } + ], + "rounds": 10, + "close_reversed": false, + "close_field": "author" + }, + { + "name": "", + "chain": [ + { + "field": "next" + }, + { + "field": "up" + } + ], + "rounds": 10, + "close_reversed": false, + "close_field": "up" + }, + { + "name": "", + "chain": [ + { + "field": "prev" + }, + { + "field": "up" + } + ], + "rounds": 10, + "close_reversed": false, + "close_field": "up" + } + ] + }, + "explicit_edge_sources": { + "typed_link": {}, + "list_note": { + "default_neighbour_field": "" + }, + "tag_note": { + "default_field": "up" + }, + "regex_note": { + "default_field": "up" + }, + "dendron_note": { + "enabled": true, + "default_field": "up", + "delimiter": " . ", + "display_trimmed": true + }, + "johnny_decimal_note": { + "enabled": false, + "delimiter": ".", + "default_field": "up" + }, + "date_note": { + "enabled": true, + "date_format": "yyyy-MM-dd", + "default_field": "next", + "stretch_to_existing": true + } + }, + "views": { + "page": { + "all": { + "sticky": false, + "readable_line_width": false + }, + "trail": { + "enabled": true, + "format": "grid", + "selection": "all", + "default_depth": 5, + "no_path_message": "", + "show_controls": false, + "merge_fields": true, + "field_group_labels": [ + "ups" + ], + "show_node_options": { + "ext": false, + "folder": false, + "alias": false + } + }, + "prev_next": { + "enabled": true, + "show_node_options": { + "ext": false, + "folder": false, + "alias": false + }, + "field_group_labels": { + "prev": [ + "prevs", + "sames" + ], + "next": [ + "nexts" + ] + } + } + }, + "side": { + "matrix": { + "collapse": false, + "edge_sort_id": { + "field": "basename", + "order": 1 + }, + "show_node_options": { + "ext": false, + "folder": false, + "alias": false + }, + "show_attributes": [ + "source", + "implied_kind", + "round" + ], + "field_group_labels": [ + "ups", + "downs", + "sames", + "nexts", + "prevs" + ], + "lock_view": false, + "lock_path": "" + }, + "tree": { + "collapse": false, + "show_attributes": [], + "merge_fields": false, + "field_group_labels": [ + "downs", + "sames" + ], + "edge_sort_id": { + "field": "basename", + "order": 1 + }, + "show_node_options": { + "ext": false, + "folder": false, + "alias": false + }, + "lock_view": false, + "lock_path": "" + } + }, + "codeblocks": { + "show_node_options": { + "ext": false, + "folder": false, + "alias": false + } + } + }, + "commands": { + "rebuild_graph": { + "notify": true, + "trigger": { + "note_save": true, + "layout_change": false + } + }, + "list_index": { + "default_options": { + "fields": [ + "down", + "wrote", + "supported_by", + "includes", + "citation" + ], + "indent": " ", + "link_kind": "wiki", + "show_attributes": [], + "field_group_labels": [ + "downs" + ], + "edge_sort_id": { + "order": 1, + "field": "basename" + }, + "show_node_options": { + "ext": false, + "alias": false, + "folder": false + } + } + }, + "freeze_implied_edges": { + "default_options": { + "destination": "frontmatter", + "included_fields": [], + "use_alias": true + } + }, + "thread": { + "default_options": { + "destination": "frontmatter", + "target_path_template": "{{field}} of {{current}}" + } + } + }, + "suggestors": { + "edge_field": { + "enabled": false, + "trigger": "\\" + } + }, + "debug": { + "level": "INFO" + } +} \ No newline at end of file diff --git a/.obsidian/plugins/breadcrumbs/data.json b/.obsidian/plugins/breadcrumbs/data.json index a1a96474..301f5e47 100644 --- a/.obsidian/plugins/breadcrumbs/data.json +++ b/.obsidian/plugins/breadcrumbs/data.json @@ -629,7 +629,9 @@ "sames", "nexts", "prevs" - ] + ], + "lock_view": false, + "lock_path": "" }, "tree": { "collapse": false, @@ -647,7 +649,9 @@ "ext": false, "folder": false, "alias": false - } + }, + "lock_view": false, + "lock_path": "" } }, "codeblocks": { @@ -694,7 +698,9 @@ }, "freeze_implied_edges": { "default_options": { - "destination": "frontmatter" + "destination": "frontmatter", + "included_fields": [], + "use_alias": true } }, "thread": { diff --git a/.obsidian/plugins/breadcrumbs/main.js b/.obsidian/plugins/breadcrumbs/main.js index d2e148fb..0b6476ca 100644 --- a/.obsidian/plugins/breadcrumbs/main.js +++ b/.obsidian/plugins/breadcrumbs/main.js @@ -3,41385 +3,181 @@ THIS IS A GENERATED/BUNDLED FILE BY ESBUILD if you want to view the source, please visit the github repository of this plugin */ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; -}; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var __publicField = (obj, key, value) => { - __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); - return value; -}; - -// node_modules/obsidian-dataview/lib/index.js -var require_lib = __commonJS({ - "node_modules/obsidian-dataview/lib/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - require("obsidian"); - var LuxonError2 = class extends Error { - }; - var InvalidDateTimeError2 = class extends LuxonError2 { - constructor(reason) { - super(`Invalid DateTime: ${reason.toMessage()}`); - } - }; - var InvalidIntervalError2 = class extends LuxonError2 { - constructor(reason) { - super(`Invalid Interval: ${reason.toMessage()}`); - } - }; - var InvalidDurationError2 = class extends LuxonError2 { - constructor(reason) { - super(`Invalid Duration: ${reason.toMessage()}`); - } - }; - var ConflictingSpecificationError2 = class extends LuxonError2 { - }; - var InvalidUnitError2 = class extends LuxonError2 { - constructor(unit) { - super(`Invalid unit ${unit}`); - } - }; - var InvalidArgumentError2 = class extends LuxonError2 { - }; - var ZoneIsAbstractError2 = class extends LuxonError2 { - constructor() { - super("Zone is an abstract class"); - } - }; - var n2 = "numeric"; - var s2 = "short"; - var l2 = "long"; - var DATE_SHORT2 = { - year: n2, - month: n2, - day: n2 - }; - var DATE_MED2 = { - year: n2, - month: s2, - day: n2 - }; - var DATE_MED_WITH_WEEKDAY2 = { - year: n2, - month: s2, - day: n2, - weekday: s2 - }; - var DATE_FULL2 = { - year: n2, - month: l2, - day: n2 - }; - var DATE_HUGE2 = { - year: n2, - month: l2, - day: n2, - weekday: l2 - }; - var TIME_SIMPLE2 = { - hour: n2, - minute: n2 - }; - var TIME_WITH_SECONDS2 = { - hour: n2, - minute: n2, - second: n2 - }; - var TIME_WITH_SHORT_OFFSET2 = { - hour: n2, - minute: n2, - second: n2, - timeZoneName: s2 - }; - var TIME_WITH_LONG_OFFSET2 = { - hour: n2, - minute: n2, - second: n2, - timeZoneName: l2 - }; - var TIME_24_SIMPLE2 = { - hour: n2, - minute: n2, - hourCycle: "h23" - }; - var TIME_24_WITH_SECONDS2 = { - hour: n2, - minute: n2, - second: n2, - hourCycle: "h23" - }; - var TIME_24_WITH_SHORT_OFFSET2 = { - hour: n2, - minute: n2, - second: n2, - hourCycle: "h23", - timeZoneName: s2 - }; - var TIME_24_WITH_LONG_OFFSET2 = { - hour: n2, - minute: n2, - second: n2, - hourCycle: "h23", - timeZoneName: l2 - }; - var DATETIME_SHORT2 = { - year: n2, - month: n2, - day: n2, - hour: n2, - minute: n2 - }; - var DATETIME_SHORT_WITH_SECONDS2 = { - year: n2, - month: n2, - day: n2, - hour: n2, - minute: n2, - second: n2 - }; - var DATETIME_MED2 = { - year: n2, - month: s2, - day: n2, - hour: n2, - minute: n2 - }; - var DATETIME_MED_WITH_SECONDS2 = { - year: n2, - month: s2, - day: n2, - hour: n2, - minute: n2, - second: n2 - }; - var DATETIME_MED_WITH_WEEKDAY2 = { - year: n2, - month: s2, - day: n2, - weekday: s2, - hour: n2, - minute: n2 - }; - var DATETIME_FULL2 = { - year: n2, - month: l2, - day: n2, - hour: n2, - minute: n2, - timeZoneName: s2 - }; - var DATETIME_FULL_WITH_SECONDS2 = { - year: n2, - month: l2, - day: n2, - hour: n2, - minute: n2, - second: n2, - timeZoneName: s2 - }; - var DATETIME_HUGE2 = { - year: n2, - month: l2, - day: n2, - weekday: l2, - hour: n2, - minute: n2, - timeZoneName: l2 - }; - var DATETIME_HUGE_WITH_SECONDS2 = { - year: n2, - month: l2, - day: n2, - weekday: l2, - hour: n2, - minute: n2, - second: n2, - timeZoneName: l2 - }; - var Zone2 = class { - /** - * The type of zone - * @abstract - * @type {string} - */ - get type() { - throw new ZoneIsAbstractError2(); - } - /** - * The name of this zone. - * @abstract - * @type {string} - */ - get name() { - throw new ZoneIsAbstractError2(); - } - get ianaName() { - return this.name; - } - /** - * Returns whether the offset is known to be fixed for the whole year. - * @abstract - * @type {boolean} - */ - get isUniversal() { - throw new ZoneIsAbstractError2(); - } - /** - * Returns the offset's common name (such as EST) at the specified timestamp - * @abstract - * @param {number} ts - Epoch milliseconds for which to get the name - * @param {Object} opts - Options to affect the format - * @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'. - * @param {string} opts.locale - What locale to return the offset name in. - * @return {string} - */ - offsetName(ts, opts) { - throw new ZoneIsAbstractError2(); - } - /** - * Returns the offset's value as a string - * @abstract - * @param {number} ts - Epoch milliseconds for which to get the offset - * @param {string} format - What style of offset to return. - * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively - * @return {string} - */ - formatOffset(ts, format) { - throw new ZoneIsAbstractError2(); - } - /** - * Return the offset in minutes for this zone at the specified timestamp. - * @abstract - * @param {number} ts - Epoch milliseconds for which to compute the offset - * @return {number} - */ - offset(ts) { - throw new ZoneIsAbstractError2(); - } - /** - * Return whether this Zone is equal to another zone - * @abstract - * @param {Zone} otherZone - the zone to compare - * @return {boolean} - */ - equals(otherZone) { - throw new ZoneIsAbstractError2(); - } - /** - * Return whether this Zone is valid. - * @abstract - * @type {boolean} - */ - get isValid() { - throw new ZoneIsAbstractError2(); - } - }; - var singleton$1 = null; - var SystemZone2 = class _SystemZone extends Zone2 { - /** - * Get a singleton instance of the local zone - * @return {SystemZone} - */ - static get instance() { - if (singleton$1 === null) { - singleton$1 = new _SystemZone(); - } - return singleton$1; - } - /** @override **/ - get type() { - return "system"; - } - /** @override **/ - get name() { - return new Intl.DateTimeFormat().resolvedOptions().timeZone; - } - /** @override **/ - get isUniversal() { - return false; - } - /** @override **/ - offsetName(ts, { format, locale }) { - return parseZoneInfo2(ts, format, locale); - } - /** @override **/ - formatOffset(ts, format) { - return formatOffset2(this.offset(ts), format); - } - /** @override **/ - offset(ts) { - return -new Date(ts).getTimezoneOffset(); - } - /** @override **/ - equals(otherZone) { - return otherZone.type === "system"; - } - /** @override **/ - get isValid() { - return true; - } - }; - var dtfCache2 = {}; - function makeDTF2(zone) { - if (!dtfCache2[zone]) { - dtfCache2[zone] = new Intl.DateTimeFormat("en-US", { - hour12: false, - timeZone: zone, - year: "numeric", - month: "2-digit", - day: "2-digit", - hour: "2-digit", - minute: "2-digit", - second: "2-digit", - era: "short" - }); - } - return dtfCache2[zone]; - } - var typeToPos2 = { - year: 0, - month: 1, - day: 2, - era: 3, - hour: 4, - minute: 5, - second: 6 - }; - function hackyOffset2(dtf, date) { - const formatted = dtf.format(date).replace(/\u200E/g, ""), parsed = /(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(formatted), [, fMonth, fDay, fYear, fadOrBc, fHour, fMinute, fSecond] = parsed; - return [fYear, fMonth, fDay, fadOrBc, fHour, fMinute, fSecond]; - } - function partsOffset2(dtf, date) { - const formatted = dtf.formatToParts(date); - const filled = []; - for (let i = 0; i < formatted.length; i++) { - const { type, value } = formatted[i]; - const pos = typeToPos2[type]; - if (type === "era") { - filled[pos] = value; - } else if (!isUndefined2(pos)) { - filled[pos] = parseInt(value, 10); - } - } - return filled; - } - var ianaZoneCache2 = {}; - var IANAZone2 = class _IANAZone extends Zone2 { - /** - * @param {string} name - Zone name - * @return {IANAZone} - */ - static create(name) { - if (!ianaZoneCache2[name]) { - ianaZoneCache2[name] = new _IANAZone(name); - } - return ianaZoneCache2[name]; - } - /** - * Reset local caches. Should only be necessary in testing scenarios. - * @return {void} - */ - static resetCache() { - ianaZoneCache2 = {}; - dtfCache2 = {}; - } - /** - * Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that. - * @param {string} s - The string to check validity on - * @example IANAZone.isValidSpecifier("America/New_York") //=> true - * @example IANAZone.isValidSpecifier("Sport~~blorp") //=> false - * @deprecated This method returns false for some valid IANA names. Use isValidZone instead. - * @return {boolean} - */ - static isValidSpecifier(s3) { - return this.isValidZone(s3); - } - /** - * Returns whether the provided string identifies a real zone - * @param {string} zone - The string to check - * @example IANAZone.isValidZone("America/New_York") //=> true - * @example IANAZone.isValidZone("Fantasia/Castle") //=> false - * @example IANAZone.isValidZone("Sport~~blorp") //=> false - * @return {boolean} - */ - static isValidZone(zone) { - if (!zone) { - return false; - } - try { - new Intl.DateTimeFormat("en-US", { timeZone: zone }).format(); - return true; - } catch (e) { - return false; - } - } - constructor(name) { - super(); - this.zoneName = name; - this.valid = _IANAZone.isValidZone(name); - } - /** @override **/ - get type() { - return "iana"; - } - /** @override **/ - get name() { - return this.zoneName; - } - /** @override **/ - get isUniversal() { - return false; - } - /** @override **/ - offsetName(ts, { format, locale }) { - return parseZoneInfo2(ts, format, locale, this.name); - } - /** @override **/ - formatOffset(ts, format) { - return formatOffset2(this.offset(ts), format); - } - /** @override **/ - offset(ts) { - const date = new Date(ts); - if (isNaN(date)) - return NaN; - const dtf = makeDTF2(this.name); - let [year, month, day, adOrBc, hour, minute, second] = dtf.formatToParts ? partsOffset2(dtf, date) : hackyOffset2(dtf, date); - if (adOrBc === "BC") { - year = -Math.abs(year) + 1; - } - const adjustedHour = hour === 24 ? 0 : hour; - const asUTC = objToLocalTS2({ - year, - month, - day, - hour: adjustedHour, - minute, - second, - millisecond: 0 - }); - let asTS = +date; - const over = asTS % 1e3; - asTS -= over >= 0 ? over : 1e3 + over; - return (asUTC - asTS) / (60 * 1e3); - } - /** @override **/ - equals(otherZone) { - return otherZone.type === "iana" && otherZone.name === this.name; - } - /** @override **/ - get isValid() { - return this.valid; - } - }; - var intlLFCache2 = {}; - function getCachedLF2(locString, opts = {}) { - const key = JSON.stringify([locString, opts]); - let dtf = intlLFCache2[key]; - if (!dtf) { - dtf = new Intl.ListFormat(locString, opts); - intlLFCache2[key] = dtf; - } - return dtf; - } - var intlDTCache2 = {}; - function getCachedDTF2(locString, opts = {}) { - const key = JSON.stringify([locString, opts]); - let dtf = intlDTCache2[key]; - if (!dtf) { - dtf = new Intl.DateTimeFormat(locString, opts); - intlDTCache2[key] = dtf; - } - return dtf; - } - var intlNumCache2 = {}; - function getCachedINF2(locString, opts = {}) { - const key = JSON.stringify([locString, opts]); - let inf = intlNumCache2[key]; - if (!inf) { - inf = new Intl.NumberFormat(locString, opts); - intlNumCache2[key] = inf; - } - return inf; - } - var intlRelCache2 = {}; - function getCachedRTF2(locString, opts = {}) { - const { base, ...cacheKeyOpts } = opts; - const key = JSON.stringify([locString, cacheKeyOpts]); - let inf = intlRelCache2[key]; - if (!inf) { - inf = new Intl.RelativeTimeFormat(locString, opts); - intlRelCache2[key] = inf; - } - return inf; - } - var sysLocaleCache2 = null; - function systemLocale2() { - if (sysLocaleCache2) { - return sysLocaleCache2; - } else { - sysLocaleCache2 = new Intl.DateTimeFormat().resolvedOptions().locale; - return sysLocaleCache2; - } - } - function parseLocaleString2(localeStr) { - const xIndex = localeStr.indexOf("-x-"); - if (xIndex !== -1) { - localeStr = localeStr.substring(0, xIndex); - } - const uIndex = localeStr.indexOf("-u-"); - if (uIndex === -1) { - return [localeStr]; - } else { - let options; - let selectedStr; - try { - options = getCachedDTF2(localeStr).resolvedOptions(); - selectedStr = localeStr; - } catch (e) { - const smaller = localeStr.substring(0, uIndex); - options = getCachedDTF2(smaller).resolvedOptions(); - selectedStr = smaller; - } - const { numberingSystem, calendar } = options; - return [selectedStr, numberingSystem, calendar]; - } - } - function intlConfigString2(localeStr, numberingSystem, outputCalendar) { - if (outputCalendar || numberingSystem) { - if (!localeStr.includes("-u-")) { - localeStr += "-u"; - } - if (outputCalendar) { - localeStr += `-ca-${outputCalendar}`; - } - if (numberingSystem) { - localeStr += `-nu-${numberingSystem}`; - } - return localeStr; - } else { - return localeStr; - } - } - function mapMonths2(f) { - const ms = []; - for (let i = 1; i <= 12; i++) { - const dt = DateTime2.utc(2009, i, 1); - ms.push(f(dt)); - } - return ms; - } - function mapWeekdays2(f) { - const ms = []; - for (let i = 1; i <= 7; i++) { - const dt = DateTime2.utc(2016, 11, 13 + i); - ms.push(f(dt)); - } - return ms; - } - function listStuff2(loc, length, englishFn, intlFn) { - const mode = loc.listingMode(); - if (mode === "error") { - return null; - } else if (mode === "en") { - return englishFn(length); - } else { - return intlFn(length); - } - } - function supportsFastNumbers2(loc) { - if (loc.numberingSystem && loc.numberingSystem !== "latn") { - return false; - } else { - return loc.numberingSystem === "latn" || !loc.locale || loc.locale.startsWith("en") || new Intl.DateTimeFormat(loc.intl).resolvedOptions().numberingSystem === "latn"; - } - } - var PolyNumberFormatter2 = class { - constructor(intl, forceSimple, opts) { - this.padTo = opts.padTo || 0; - this.floor = opts.floor || false; - const { padTo, floor, ...otherOpts } = opts; - if (!forceSimple || Object.keys(otherOpts).length > 0) { - const intlOpts = { useGrouping: false, ...opts }; - if (opts.padTo > 0) - intlOpts.minimumIntegerDigits = opts.padTo; - this.inf = getCachedINF2(intl, intlOpts); - } - } - format(i) { - if (this.inf) { - const fixed = this.floor ? Math.floor(i) : i; - return this.inf.format(fixed); - } else { - const fixed = this.floor ? Math.floor(i) : roundTo2(i, 3); - return padStart2(fixed, this.padTo); - } - } - }; - var PolyDateFormatter2 = class { - constructor(dt, intl, opts) { - this.opts = opts; - this.originalZone = void 0; - let z2 = void 0; - if (this.opts.timeZone) { - this.dt = dt; - } else if (dt.zone.type === "fixed") { - const gmtOffset = -1 * (dt.offset / 60); - const offsetZ = gmtOffset >= 0 ? `Etc/GMT+${gmtOffset}` : `Etc/GMT${gmtOffset}`; - if (dt.offset !== 0 && IANAZone2.create(offsetZ).valid) { - z2 = offsetZ; - this.dt = dt; - } else { - z2 = "UTC"; - this.dt = dt.offset === 0 ? dt : dt.setZone("UTC").plus({ minutes: dt.offset }); - this.originalZone = dt.zone; - } - } else if (dt.zone.type === "system") { - this.dt = dt; - } else if (dt.zone.type === "iana") { - this.dt = dt; - z2 = dt.zone.name; - } else { - z2 = "UTC"; - this.dt = dt.setZone("UTC").plus({ minutes: dt.offset }); - this.originalZone = dt.zone; - } - const intlOpts = { ...this.opts }; - intlOpts.timeZone = intlOpts.timeZone || z2; - this.dtf = getCachedDTF2(intl, intlOpts); - } - format() { - if (this.originalZone) { - return this.formatToParts().map(({ value }) => value).join(""); - } - return this.dtf.format(this.dt.toJSDate()); - } - formatToParts() { - const parts = this.dtf.formatToParts(this.dt.toJSDate()); - if (this.originalZone) { - return parts.map((part) => { - if (part.type === "timeZoneName") { - const offsetName = this.originalZone.offsetName(this.dt.ts, { - locale: this.dt.locale, - format: this.opts.timeZoneName - }); - return { - ...part, - value: offsetName - }; - } else { - return part; - } - }); - } - return parts; - } - resolvedOptions() { - return this.dtf.resolvedOptions(); - } - }; - var PolyRelFormatter2 = class { - constructor(intl, isEnglish, opts) { - this.opts = { style: "long", ...opts }; - if (!isEnglish && hasRelative2()) { - this.rtf = getCachedRTF2(intl, opts); - } - } - format(count, unit) { - if (this.rtf) { - return this.rtf.format(count, unit); - } else { - return formatRelativeTime2(unit, count, this.opts.numeric, this.opts.style !== "long"); - } - } - formatToParts(count, unit) { - if (this.rtf) { - return this.rtf.formatToParts(count, unit); - } else { - return []; - } - } - }; - var Locale2 = class _Locale { - static fromOpts(opts) { - return _Locale.create(opts.locale, opts.numberingSystem, opts.outputCalendar, opts.defaultToEN); - } - static create(locale, numberingSystem, outputCalendar, defaultToEN = false) { - const specifiedLocale = locale || Settings2.defaultLocale; - const localeR = specifiedLocale || (defaultToEN ? "en-US" : systemLocale2()); - const numberingSystemR = numberingSystem || Settings2.defaultNumberingSystem; - const outputCalendarR = outputCalendar || Settings2.defaultOutputCalendar; - return new _Locale(localeR, numberingSystemR, outputCalendarR, specifiedLocale); - } - static resetCache() { - sysLocaleCache2 = null; - intlDTCache2 = {}; - intlNumCache2 = {}; - intlRelCache2 = {}; - } - static fromObject({ locale, numberingSystem, outputCalendar } = {}) { - return _Locale.create(locale, numberingSystem, outputCalendar); - } - constructor(locale, numbering, outputCalendar, specifiedLocale) { - const [parsedLocale, parsedNumberingSystem, parsedOutputCalendar] = parseLocaleString2(locale); - this.locale = parsedLocale; - this.numberingSystem = numbering || parsedNumberingSystem || null; - this.outputCalendar = outputCalendar || parsedOutputCalendar || null; - this.intl = intlConfigString2(this.locale, this.numberingSystem, this.outputCalendar); - this.weekdaysCache = { format: {}, standalone: {} }; - this.monthsCache = { format: {}, standalone: {} }; - this.meridiemCache = null; - this.eraCache = {}; - this.specifiedLocale = specifiedLocale; - this.fastNumbersCached = null; - } - get fastNumbers() { - if (this.fastNumbersCached == null) { - this.fastNumbersCached = supportsFastNumbers2(this); - } - return this.fastNumbersCached; - } - listingMode() { - const isActuallyEn = this.isEnglish(); - const hasNoWeirdness = (this.numberingSystem === null || this.numberingSystem === "latn") && (this.outputCalendar === null || this.outputCalendar === "gregory"); - return isActuallyEn && hasNoWeirdness ? "en" : "intl"; - } - clone(alts) { - if (!alts || Object.getOwnPropertyNames(alts).length === 0) { - return this; - } else { - return _Locale.create( - alts.locale || this.specifiedLocale, - alts.numberingSystem || this.numberingSystem, - alts.outputCalendar || this.outputCalendar, - alts.defaultToEN || false - ); - } - } - redefaultToEN(alts = {}) { - return this.clone({ ...alts, defaultToEN: true }); - } - redefaultToSystem(alts = {}) { - return this.clone({ ...alts, defaultToEN: false }); - } - months(length, format = false) { - return listStuff2(this, length, months2, () => { - const intl = format ? { month: length, day: "numeric" } : { month: length }, formatStr = format ? "format" : "standalone"; - if (!this.monthsCache[formatStr][length]) { - this.monthsCache[formatStr][length] = mapMonths2((dt) => this.extract(dt, intl, "month")); - } - return this.monthsCache[formatStr][length]; - }); - } - weekdays(length, format = false) { - return listStuff2(this, length, weekdays2, () => { - const intl = format ? { weekday: length, year: "numeric", month: "long", day: "numeric" } : { weekday: length }, formatStr = format ? "format" : "standalone"; - if (!this.weekdaysCache[formatStr][length]) { - this.weekdaysCache[formatStr][length] = mapWeekdays2( - (dt) => this.extract(dt, intl, "weekday") - ); - } - return this.weekdaysCache[formatStr][length]; - }); - } - meridiems() { - return listStuff2( - this, - void 0, - () => meridiems2, - () => { - if (!this.meridiemCache) { - const intl = { hour: "numeric", hourCycle: "h12" }; - this.meridiemCache = [DateTime2.utc(2016, 11, 13, 9), DateTime2.utc(2016, 11, 13, 19)].map( - (dt) => this.extract(dt, intl, "dayperiod") - ); - } - return this.meridiemCache; - } - ); - } - eras(length) { - return listStuff2(this, length, eras2, () => { - const intl = { era: length }; - if (!this.eraCache[length]) { - this.eraCache[length] = [DateTime2.utc(-40, 1, 1), DateTime2.utc(2017, 1, 1)].map( - (dt) => this.extract(dt, intl, "era") - ); - } - return this.eraCache[length]; - }); - } - extract(dt, intlOpts, field) { - const df = this.dtFormatter(dt, intlOpts), results = df.formatToParts(), matching = results.find((m) => m.type.toLowerCase() === field); - return matching ? matching.value : null; - } - numberFormatter(opts = {}) { - return new PolyNumberFormatter2(this.intl, opts.forceSimple || this.fastNumbers, opts); - } - dtFormatter(dt, intlOpts = {}) { - return new PolyDateFormatter2(dt, this.intl, intlOpts); - } - relFormatter(opts = {}) { - return new PolyRelFormatter2(this.intl, this.isEnglish(), opts); - } - listFormatter(opts = {}) { - return getCachedLF2(this.intl, opts); - } - isEnglish() { - return this.locale === "en" || this.locale.toLowerCase() === "en-us" || new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us"); - } - equals(other) { - return this.locale === other.locale && this.numberingSystem === other.numberingSystem && this.outputCalendar === other.outputCalendar; - } - }; - var singleton3 = null; - var FixedOffsetZone2 = class _FixedOffsetZone extends Zone2 { - /** - * Get a singleton instance of UTC - * @return {FixedOffsetZone} - */ - static get utcInstance() { - if (singleton3 === null) { - singleton3 = new _FixedOffsetZone(0); - } - return singleton3; - } - /** - * Get an instance with a specified offset - * @param {number} offset - The offset in minutes - * @return {FixedOffsetZone} - */ - static instance(offset3) { - return offset3 === 0 ? _FixedOffsetZone.utcInstance : new _FixedOffsetZone(offset3); - } - /** - * Get an instance of FixedOffsetZone from a UTC offset string, like "UTC+6" - * @param {string} s - The offset string to parse - * @example FixedOffsetZone.parseSpecifier("UTC+6") - * @example FixedOffsetZone.parseSpecifier("UTC+06") - * @example FixedOffsetZone.parseSpecifier("UTC-6:00") - * @return {FixedOffsetZone} - */ - static parseSpecifier(s3) { - if (s3) { - const r = s3.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i); - if (r) { - return new _FixedOffsetZone(signedOffset2(r[1], r[2])); - } - } - return null; - } - constructor(offset3) { - super(); - this.fixed = offset3; - } - /** @override **/ - get type() { - return "fixed"; - } - /** @override **/ - get name() { - return this.fixed === 0 ? "UTC" : `UTC${formatOffset2(this.fixed, "narrow")}`; - } - get ianaName() { - if (this.fixed === 0) { - return "Etc/UTC"; - } else { - return `Etc/GMT${formatOffset2(-this.fixed, "narrow")}`; - } - } - /** @override **/ - offsetName() { - return this.name; - } - /** @override **/ - formatOffset(ts, format) { - return formatOffset2(this.fixed, format); - } - /** @override **/ - get isUniversal() { - return true; - } - /** @override **/ - offset() { - return this.fixed; - } - /** @override **/ - equals(otherZone) { - return otherZone.type === "fixed" && otherZone.fixed === this.fixed; - } - /** @override **/ - get isValid() { - return true; - } - }; - var InvalidZone2 = class extends Zone2 { - constructor(zoneName) { - super(); - this.zoneName = zoneName; - } - /** @override **/ - get type() { - return "invalid"; - } - /** @override **/ - get name() { - return this.zoneName; - } - /** @override **/ - get isUniversal() { - return false; - } - /** @override **/ - offsetName() { - return null; - } - /** @override **/ - formatOffset() { - return ""; - } - /** @override **/ - offset() { - return NaN; - } - /** @override **/ - equals() { - return false; - } - /** @override **/ - get isValid() { - return false; - } - }; - function normalizeZone2(input, defaultZone3) { - if (isUndefined2(input) || input === null) { - return defaultZone3; - } else if (input instanceof Zone2) { - return input; - } else if (isString2(input)) { - const lowered = input.toLowerCase(); - if (lowered === "default") - return defaultZone3; - else if (lowered === "local" || lowered === "system") - return SystemZone2.instance; - else if (lowered === "utc" || lowered === "gmt") - return FixedOffsetZone2.utcInstance; - else - return FixedOffsetZone2.parseSpecifier(lowered) || IANAZone2.create(input); - } else if (isNumber2(input)) { - return FixedOffsetZone2.instance(input); - } else if (typeof input === "object" && "offset" in input && typeof input.offset === "function") { - return input; - } else { - return new InvalidZone2(input); - } - } - var now3 = () => Date.now(); - var defaultZone2 = "system"; - var defaultLocale2 = null; - var defaultNumberingSystem2 = null; - var defaultOutputCalendar2 = null; - var twoDigitCutoffYear2 = 60; - var throwOnInvalid2; - var Settings2 = class { - /** - * Get the callback for returning the current timestamp. - * @type {function} - */ - static get now() { - return now3; - } - /** - * Set the callback for returning the current timestamp. - * The function should return a number, which will be interpreted as an Epoch millisecond count - * @type {function} - * @example Settings.now = () => Date.now() + 3000 // pretend it is 3 seconds in the future - * @example Settings.now = () => 0 // always pretend it's Jan 1, 1970 at midnight in UTC time - */ - static set now(n3) { - now3 = n3; - } - /** - * Set the default time zone to create DateTimes in. Does not affect existing instances. - * Use the value "system" to reset this value to the system's time zone. - * @type {string} - */ - static set defaultZone(zone) { - defaultZone2 = zone; - } - /** - * Get the default time zone object currently used to create DateTimes. Does not affect existing instances. - * The default value is the system's time zone (the one set on the machine that runs this code). - * @type {Zone} - */ - static get defaultZone() { - return normalizeZone2(defaultZone2, SystemZone2.instance); - } - /** - * Get the default locale to create DateTimes with. Does not affect existing instances. - * @type {string} - */ - static get defaultLocale() { - return defaultLocale2; - } - /** - * Set the default locale to create DateTimes with. Does not affect existing instances. - * @type {string} - */ - static set defaultLocale(locale) { - defaultLocale2 = locale; - } - /** - * Get the default numbering system to create DateTimes with. Does not affect existing instances. - * @type {string} - */ - static get defaultNumberingSystem() { - return defaultNumberingSystem2; - } - /** - * Set the default numbering system to create DateTimes with. Does not affect existing instances. - * @type {string} - */ - static set defaultNumberingSystem(numberingSystem) { - defaultNumberingSystem2 = numberingSystem; - } - /** - * Get the default output calendar to create DateTimes with. Does not affect existing instances. - * @type {string} - */ - static get defaultOutputCalendar() { - return defaultOutputCalendar2; - } - /** - * Set the default output calendar to create DateTimes with. Does not affect existing instances. - * @type {string} - */ - static set defaultOutputCalendar(outputCalendar) { - defaultOutputCalendar2 = outputCalendar; - } - /** - * Get the cutoff year after which a string encoding a year as two digits is interpreted to occur in the current century. - * @type {number} - */ - static get twoDigitCutoffYear() { - return twoDigitCutoffYear2; - } - /** - * Set the cutoff year after which a string encoding a year as two digits is interpreted to occur in the current century. - * @type {number} - * @example Settings.twoDigitCutoffYear = 0 // cut-off year is 0, so all 'yy' are interpreted as current century - * @example Settings.twoDigitCutoffYear = 50 // '49' -> 1949; '50' -> 2050 - * @example Settings.twoDigitCutoffYear = 1950 // interpreted as 50 - * @example Settings.twoDigitCutoffYear = 2050 // ALSO interpreted as 50 - */ - static set twoDigitCutoffYear(cutoffYear) { - twoDigitCutoffYear2 = cutoffYear % 100; - } - /** - * Get whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals - * @type {boolean} - */ - static get throwOnInvalid() { - return throwOnInvalid2; - } - /** - * Set whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals - * @type {boolean} - */ - static set throwOnInvalid(t) { - throwOnInvalid2 = t; - } - /** - * Reset Luxon's global caches. Should only be necessary in testing scenarios. - * @return {void} - */ - static resetCaches() { - Locale2.resetCache(); - IANAZone2.resetCache(); - } - }; - function isUndefined2(o) { - return typeof o === "undefined"; - } - function isNumber2(o) { - return typeof o === "number"; - } - function isInteger2(o) { - return typeof o === "number" && o % 1 === 0; - } - function isString2(o) { - return typeof o === "string"; - } - function isDate2(o) { - return Object.prototype.toString.call(o) === "[object Date]"; - } - function hasRelative2() { - try { - return typeof Intl !== "undefined" && !!Intl.RelativeTimeFormat; - } catch (e) { - return false; - } - } - function maybeArray2(thing) { - return Array.isArray(thing) ? thing : [thing]; - } - function bestBy2(arr, by, compare) { - if (arr.length === 0) { - return void 0; - } - return arr.reduce((best, next) => { - const pair = [by(next), next]; - if (!best) { - return pair; - } else if (compare(best[0], pair[0]) === best[0]) { - return best; - } else { - return pair; - } - }, null)[1]; - } - function pick2(obj, keys) { - return keys.reduce((a, k) => { - a[k] = obj[k]; - return a; - }, {}); - } - function hasOwnProperty2(obj, prop) { - return Object.prototype.hasOwnProperty.call(obj, prop); - } - function integerBetween2(thing, bottom, top) { - return isInteger2(thing) && thing >= bottom && thing <= top; - } - function floorMod2(x, n3) { - return x - n3 * Math.floor(x / n3); - } - function padStart2(input, n3 = 2) { - const isNeg = input < 0; - let padded; - if (isNeg) { - padded = "-" + ("" + -input).padStart(n3, "0"); - } else { - padded = ("" + input).padStart(n3, "0"); - } - return padded; - } - function parseInteger2(string) { - if (isUndefined2(string) || string === null || string === "") { - return void 0; - } else { - return parseInt(string, 10); - } - } - function parseFloating2(string) { - if (isUndefined2(string) || string === null || string === "") { - return void 0; - } else { - return parseFloat(string); - } - } - function parseMillis2(fraction) { - if (isUndefined2(fraction) || fraction === null || fraction === "") { - return void 0; - } else { - const f = parseFloat("0." + fraction) * 1e3; - return Math.floor(f); - } - } - function roundTo2(number, digits, towardZero = false) { - const factor = 10 ** digits, rounder = towardZero ? Math.trunc : Math.round; - return rounder(number * factor) / factor; - } - function isLeapYear2(year) { - return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); - } - function daysInYear2(year) { - return isLeapYear2(year) ? 366 : 365; - } - function daysInMonth2(year, month) { - const modMonth = floorMod2(month - 1, 12) + 1, modYear = year + (month - modMonth) / 12; - if (modMonth === 2) { - return isLeapYear2(modYear) ? 29 : 28; - } else { - return [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][modMonth - 1]; - } - } - function objToLocalTS2(obj) { - let d = Date.UTC( - obj.year, - obj.month - 1, - obj.day, - obj.hour, - obj.minute, - obj.second, - obj.millisecond - ); - if (obj.year < 100 && obj.year >= 0) { - d = new Date(d); - d.setUTCFullYear(obj.year, obj.month - 1, obj.day); - } - return +d; - } - function weeksInWeekYear2(weekYear) { - const p1 = (weekYear + Math.floor(weekYear / 4) - Math.floor(weekYear / 100) + Math.floor(weekYear / 400)) % 7, last = weekYear - 1, p2 = (last + Math.floor(last / 4) - Math.floor(last / 100) + Math.floor(last / 400)) % 7; - return p1 === 4 || p2 === 3 ? 53 : 52; - } - function untruncateYear2(year) { - if (year > 99) { - return year; - } else - return year > Settings2.twoDigitCutoffYear ? 1900 + year : 2e3 + year; - } - function parseZoneInfo2(ts, offsetFormat, locale, timeZone = null) { - const date = new Date(ts), intlOpts = { - hourCycle: "h23", - year: "numeric", - month: "2-digit", - day: "2-digit", - hour: "2-digit", - minute: "2-digit" - }; - if (timeZone) { - intlOpts.timeZone = timeZone; - } - const modified = { timeZoneName: offsetFormat, ...intlOpts }; - const parsed = new Intl.DateTimeFormat(locale, modified).formatToParts(date).find((m) => m.type.toLowerCase() === "timezonename"); - return parsed ? parsed.value : null; - } - function signedOffset2(offHourStr, offMinuteStr) { - let offHour = parseInt(offHourStr, 10); - if (Number.isNaN(offHour)) { - offHour = 0; - } - const offMin = parseInt(offMinuteStr, 10) || 0, offMinSigned = offHour < 0 || Object.is(offHour, -0) ? -offMin : offMin; - return offHour * 60 + offMinSigned; - } - function asNumber2(value) { - const numericValue = Number(value); - if (typeof value === "boolean" || value === "" || Number.isNaN(numericValue)) - throw new InvalidArgumentError2(`Invalid unit value ${value}`); - return numericValue; - } - function normalizeObject2(obj, normalizer) { - const normalized = {}; - for (const u in obj) { - if (hasOwnProperty2(obj, u)) { - const v = obj[u]; - if (v === void 0 || v === null) - continue; - normalized[normalizer(u)] = asNumber2(v); - } - } - return normalized; - } - function formatOffset2(offset3, format) { - const hours = Math.trunc(Math.abs(offset3 / 60)), minutes = Math.trunc(Math.abs(offset3 % 60)), sign = offset3 >= 0 ? "+" : "-"; - switch (format) { - case "short": - return `${sign}${padStart2(hours, 2)}:${padStart2(minutes, 2)}`; - case "narrow": - return `${sign}${hours}${minutes > 0 ? `:${minutes}` : ""}`; - case "techie": - return `${sign}${padStart2(hours, 2)}${padStart2(minutes, 2)}`; - default: - throw new RangeError(`Value format ${format} is out of range for property format`); - } - } - function timeObject2(obj) { - return pick2(obj, ["hour", "minute", "second", "millisecond"]); - } - var monthsLong2 = [ - "January", - "February", - "March", - "April", - "May", - "June", - "July", - "August", - "September", - "October", - "November", - "December" - ]; - var monthsShort2 = [ - "Jan", - "Feb", - "Mar", - "Apr", - "May", - "Jun", - "Jul", - "Aug", - "Sep", - "Oct", - "Nov", - "Dec" - ]; - var monthsNarrow2 = ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"]; - function months2(length) { - switch (length) { - case "narrow": - return [...monthsNarrow2]; - case "short": - return [...monthsShort2]; - case "long": - return [...monthsLong2]; - case "numeric": - return ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"]; - case "2-digit": - return ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"]; - default: - return null; - } - } - var weekdaysLong2 = [ - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday", - "Sunday" - ]; - var weekdaysShort2 = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]; - var weekdaysNarrow2 = ["M", "T", "W", "T", "F", "S", "S"]; - function weekdays2(length) { - switch (length) { - case "narrow": - return [...weekdaysNarrow2]; - case "short": - return [...weekdaysShort2]; - case "long": - return [...weekdaysLong2]; - case "numeric": - return ["1", "2", "3", "4", "5", "6", "7"]; - default: - return null; - } - } - var meridiems2 = ["AM", "PM"]; - var erasLong2 = ["Before Christ", "Anno Domini"]; - var erasShort2 = ["BC", "AD"]; - var erasNarrow2 = ["B", "A"]; - function eras2(length) { - switch (length) { - case "narrow": - return [...erasNarrow2]; - case "short": - return [...erasShort2]; - case "long": - return [...erasLong2]; - default: - return null; - } - } - function meridiemForDateTime2(dt) { - return meridiems2[dt.hour < 12 ? 0 : 1]; - } - function weekdayForDateTime2(dt, length) { - return weekdays2(length)[dt.weekday - 1]; - } - function monthForDateTime2(dt, length) { - return months2(length)[dt.month - 1]; - } - function eraForDateTime2(dt, length) { - return eras2(length)[dt.year < 0 ? 0 : 1]; - } - function formatRelativeTime2(unit, count, numeric = "always", narrow = false) { - const units = { - years: ["year", "yr."], - quarters: ["quarter", "qtr."], - months: ["month", "mo."], - weeks: ["week", "wk."], - days: ["day", "day", "days"], - hours: ["hour", "hr."], - minutes: ["minute", "min."], - seconds: ["second", "sec."] - }; - const lastable = ["hours", "minutes", "seconds"].indexOf(unit) === -1; - if (numeric === "auto" && lastable) { - const isDay = unit === "days"; - switch (count) { - case 1: - return isDay ? "tomorrow" : `next ${units[unit][0]}`; - case -1: - return isDay ? "yesterday" : `last ${units[unit][0]}`; - case 0: - return isDay ? "today" : `this ${units[unit][0]}`; - } - } - const isInPast = Object.is(count, -0) || count < 0, fmtValue = Math.abs(count), singular = fmtValue === 1, lilUnits = units[unit], fmtUnit = narrow ? singular ? lilUnits[1] : lilUnits[2] || lilUnits[1] : singular ? units[unit][0] : unit; - return isInPast ? `${fmtValue} ${fmtUnit} ago` : `in ${fmtValue} ${fmtUnit}`; - } - function stringifyTokens2(splits, tokenToString) { - let s3 = ""; - for (const token of splits) { - if (token.literal) { - s3 += token.val; - } else { - s3 += tokenToString(token.val); - } - } - return s3; - } - var macroTokenToFormatOpts2 = { - D: DATE_SHORT2, - DD: DATE_MED2, - DDD: DATE_FULL2, - DDDD: DATE_HUGE2, - t: TIME_SIMPLE2, - tt: TIME_WITH_SECONDS2, - ttt: TIME_WITH_SHORT_OFFSET2, - tttt: TIME_WITH_LONG_OFFSET2, - T: TIME_24_SIMPLE2, - TT: TIME_24_WITH_SECONDS2, - TTT: TIME_24_WITH_SHORT_OFFSET2, - TTTT: TIME_24_WITH_LONG_OFFSET2, - f: DATETIME_SHORT2, - ff: DATETIME_MED2, - fff: DATETIME_FULL2, - ffff: DATETIME_HUGE2, - F: DATETIME_SHORT_WITH_SECONDS2, - FF: DATETIME_MED_WITH_SECONDS2, - FFF: DATETIME_FULL_WITH_SECONDS2, - FFFF: DATETIME_HUGE_WITH_SECONDS2 - }; - var Formatter2 = class _Formatter { - static create(locale, opts = {}) { - return new _Formatter(locale, opts); - } - static parseFormat(fmt) { - let current = null, currentFull = "", bracketed = false; - const splits = []; - for (let i = 0; i < fmt.length; i++) { - const c = fmt.charAt(i); - if (c === "'") { - if (currentFull.length > 0) { - splits.push({ literal: bracketed || /^\s+$/.test(currentFull), val: currentFull }); - } - current = null; - currentFull = ""; - bracketed = !bracketed; - } else if (bracketed) { - currentFull += c; - } else if (c === current) { - currentFull += c; - } else { - if (currentFull.length > 0) { - splits.push({ literal: /^\s+$/.test(currentFull), val: currentFull }); - } - currentFull = c; - current = c; - } - } - if (currentFull.length > 0) { - splits.push({ literal: bracketed || /^\s+$/.test(currentFull), val: currentFull }); - } - return splits; - } - static macroTokenToFormatOpts(token) { - return macroTokenToFormatOpts2[token]; - } - constructor(locale, formatOpts) { - this.opts = formatOpts; - this.loc = locale; - this.systemLoc = null; - } - formatWithSystemDefault(dt, opts) { - if (this.systemLoc === null) { - this.systemLoc = this.loc.redefaultToSystem(); - } - const df = this.systemLoc.dtFormatter(dt, { ...this.opts, ...opts }); - return df.format(); - } - dtFormatter(dt, opts = {}) { - return this.loc.dtFormatter(dt, { ...this.opts, ...opts }); - } - formatDateTime(dt, opts) { - return this.dtFormatter(dt, opts).format(); - } - formatDateTimeParts(dt, opts) { - return this.dtFormatter(dt, opts).formatToParts(); - } - formatInterval(interval, opts) { - const df = this.dtFormatter(interval.start, opts); - return df.dtf.formatRange(interval.start.toJSDate(), interval.end.toJSDate()); - } - resolvedOptions(dt, opts) { - return this.dtFormatter(dt, opts).resolvedOptions(); - } - num(n3, p = 0) { - if (this.opts.forceSimple) { - return padStart2(n3, p); - } - const opts = { ...this.opts }; - if (p > 0) { - opts.padTo = p; - } - return this.loc.numberFormatter(opts).format(n3); - } - formatDateTimeFromString(dt, fmt) { - const knownEnglish = this.loc.listingMode() === "en", useDateTimeFormatter = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", string = (opts, extract) => this.loc.extract(dt, opts, extract), formatOffset3 = (opts) => { - if (dt.isOffsetFixed && dt.offset === 0 && opts.allowZ) { - return "Z"; - } - return dt.isValid ? dt.zone.formatOffset(dt.ts, opts.format) : ""; - }, meridiem = () => knownEnglish ? meridiemForDateTime2(dt) : string({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), month = (length, standalone) => knownEnglish ? monthForDateTime2(dt, length) : string(standalone ? { month: length } : { month: length, day: "numeric" }, "month"), weekday = (length, standalone) => knownEnglish ? weekdayForDateTime2(dt, length) : string( - standalone ? { weekday: length } : { weekday: length, month: "long", day: "numeric" }, - "weekday" - ), maybeMacro = (token) => { - const formatOpts = _Formatter.macroTokenToFormatOpts(token); - if (formatOpts) { - return this.formatWithSystemDefault(dt, formatOpts); - } else { - return token; - } - }, era = (length) => knownEnglish ? eraForDateTime2(dt, length) : string({ era: length }, "era"), tokenToString = (token) => { - switch (token) { - case "S": - return this.num(dt.millisecond); - case "u": - case "SSS": - return this.num(dt.millisecond, 3); - case "s": - return this.num(dt.second); - case "ss": - return this.num(dt.second, 2); - case "uu": - return this.num(Math.floor(dt.millisecond / 10), 2); - case "uuu": - return this.num(Math.floor(dt.millisecond / 100)); - case "m": - return this.num(dt.minute); - case "mm": - return this.num(dt.minute, 2); - case "h": - return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12); - case "hh": - return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12, 2); - case "H": - return this.num(dt.hour); - case "HH": - return this.num(dt.hour, 2); - case "Z": - return formatOffset3({ format: "narrow", allowZ: this.opts.allowZ }); - case "ZZ": - return formatOffset3({ format: "short", allowZ: this.opts.allowZ }); - case "ZZZ": - return formatOffset3({ format: "techie", allowZ: this.opts.allowZ }); - case "ZZZZ": - return dt.zone.offsetName(dt.ts, { format: "short", locale: this.loc.locale }); - case "ZZZZZ": - return dt.zone.offsetName(dt.ts, { format: "long", locale: this.loc.locale }); - case "z": - return dt.zoneName; - case "a": - return meridiem(); - case "d": - return useDateTimeFormatter ? string({ day: "numeric" }, "day") : this.num(dt.day); - case "dd": - return useDateTimeFormatter ? string({ day: "2-digit" }, "day") : this.num(dt.day, 2); - case "c": - return this.num(dt.weekday); - case "ccc": - return weekday("short", true); - case "cccc": - return weekday("long", true); - case "ccccc": - return weekday("narrow", true); - case "E": - return this.num(dt.weekday); - case "EEE": - return weekday("short", false); - case "EEEE": - return weekday("long", false); - case "EEEEE": - return weekday("narrow", false); - case "L": - return useDateTimeFormatter ? string({ month: "numeric", day: "numeric" }, "month") : this.num(dt.month); - case "LL": - return useDateTimeFormatter ? string({ month: "2-digit", day: "numeric" }, "month") : this.num(dt.month, 2); - case "LLL": - return month("short", true); - case "LLLL": - return month("long", true); - case "LLLLL": - return month("narrow", true); - case "M": - return useDateTimeFormatter ? string({ month: "numeric" }, "month") : this.num(dt.month); - case "MM": - return useDateTimeFormatter ? string({ month: "2-digit" }, "month") : this.num(dt.month, 2); - case "MMM": - return month("short", false); - case "MMMM": - return month("long", false); - case "MMMMM": - return month("narrow", false); - case "y": - return useDateTimeFormatter ? string({ year: "numeric" }, "year") : this.num(dt.year); - case "yy": - return useDateTimeFormatter ? string({ year: "2-digit" }, "year") : this.num(dt.year.toString().slice(-2), 2); - case "yyyy": - return useDateTimeFormatter ? string({ year: "numeric" }, "year") : this.num(dt.year, 4); - case "yyyyyy": - return useDateTimeFormatter ? string({ year: "numeric" }, "year") : this.num(dt.year, 6); - case "G": - return era("short"); - case "GG": - return era("long"); - case "GGGGG": - return era("narrow"); - case "kk": - return this.num(dt.weekYear.toString().slice(-2), 2); - case "kkkk": - return this.num(dt.weekYear, 4); - case "W": - return this.num(dt.weekNumber); - case "WW": - return this.num(dt.weekNumber, 2); - case "o": - return this.num(dt.ordinal); - case "ooo": - return this.num(dt.ordinal, 3); - case "q": - return this.num(dt.quarter); - case "qq": - return this.num(dt.quarter, 2); - case "X": - return this.num(Math.floor(dt.ts / 1e3)); - case "x": - return this.num(dt.ts); - default: - return maybeMacro(token); - } - }; - return stringifyTokens2(_Formatter.parseFormat(fmt), tokenToString); - } - formatDurationFromString(dur, fmt) { - const tokenToField = (token) => { - switch (token[0]) { - case "S": - return "millisecond"; - case "s": - return "second"; - case "m": - return "minute"; - case "h": - return "hour"; - case "d": - return "day"; - case "w": - return "week"; - case "M": - return "month"; - case "y": - return "year"; - default: - return null; - } - }, tokenToString = (lildur) => (token) => { - const mapped = tokenToField(token); - if (mapped) { - return this.num(lildur.get(mapped), token.length); - } else { - return token; - } - }, tokens = _Formatter.parseFormat(fmt), realTokens = tokens.reduce( - (found, { literal, val }) => literal ? found : found.concat(val), - [] - ), collapsed = dur.shiftTo(...realTokens.map(tokenToField).filter((t) => t)); - return stringifyTokens2(tokens, tokenToString(collapsed)); - } - }; - var Invalid2 = class { - constructor(reason, explanation) { - this.reason = reason; - this.explanation = explanation; - } - toMessage() { - if (this.explanation) { - return `${this.reason}: ${this.explanation}`; - } else { - return this.reason; - } - } - }; - var ianaRegex2 = /[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/; - function combineRegexes2(...regexes) { - const full = regexes.reduce((f, r) => f + r.source, ""); - return RegExp(`^${full}$`); - } - function combineExtractors2(...extractors) { - return (m) => extractors.reduce( - ([mergedVals, mergedZone, cursor], ex) => { - const [val, zone, next] = ex(m, cursor); - return [{ ...mergedVals, ...val }, zone || mergedZone, next]; - }, - [{}, null, 1] - ).slice(0, 2); - } - function parse2(s3, ...patterns) { - if (s3 == null) { - return [null, null]; - } - for (const [regex2, extractor] of patterns) { - const m = regex2.exec(s3); - if (m) { - return extractor(m); - } - } - return [null, null]; - } - function simpleParse2(...keys) { - return (match3, cursor) => { - const ret = {}; - let i; - for (i = 0; i < keys.length; i++) { - ret[keys[i]] = parseInteger2(match3[cursor + i]); - } - return [ret, null, cursor + i]; - }; - } - var offsetRegex2 = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/; - var isoExtendedZone2 = `(?:${offsetRegex2.source}?(?:\\[(${ianaRegex2.source})\\])?)?`; - var isoTimeBaseRegex2 = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/; - var isoTimeRegex2 = RegExp(`${isoTimeBaseRegex2.source}${isoExtendedZone2}`); - var isoTimeExtensionRegex2 = RegExp(`(?:T${isoTimeRegex2.source})?`); - var isoYmdRegex2 = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/; - var isoWeekRegex2 = /(\d{4})-?W(\d\d)(?:-?(\d))?/; - var isoOrdinalRegex2 = /(\d{4})-?(\d{3})/; - var extractISOWeekData2 = simpleParse2("weekYear", "weekNumber", "weekDay"); - var extractISOOrdinalData2 = simpleParse2("year", "ordinal"); - var sqlYmdRegex2 = /(\d{4})-(\d\d)-(\d\d)/; - var sqlTimeRegex2 = RegExp( - `${isoTimeBaseRegex2.source} ?(?:${offsetRegex2.source}|(${ianaRegex2.source}))?` - ); - var sqlTimeExtensionRegex2 = RegExp(`(?: ${sqlTimeRegex2.source})?`); - function int2(match3, pos, fallback) { - const m = match3[pos]; - return isUndefined2(m) ? fallback : parseInteger2(m); - } - function extractISOYmd2(match3, cursor) { - const item = { - year: int2(match3, cursor), - month: int2(match3, cursor + 1, 1), - day: int2(match3, cursor + 2, 1) - }; - return [item, null, cursor + 3]; - } - function extractISOTime2(match3, cursor) { - const item = { - hours: int2(match3, cursor, 0), - minutes: int2(match3, cursor + 1, 0), - seconds: int2(match3, cursor + 2, 0), - milliseconds: parseMillis2(match3[cursor + 3]) - }; - return [item, null, cursor + 4]; - } - function extractISOOffset2(match3, cursor) { - const local = !match3[cursor] && !match3[cursor + 1], fullOffset = signedOffset2(match3[cursor + 1], match3[cursor + 2]), zone = local ? null : FixedOffsetZone2.instance(fullOffset); - return [{}, zone, cursor + 3]; - } - function extractIANAZone2(match3, cursor) { - const zone = match3[cursor] ? IANAZone2.create(match3[cursor]) : null; - return [{}, zone, cursor + 1]; - } - var isoTimeOnly2 = RegExp(`^T?${isoTimeBaseRegex2.source}$`); - var isoDuration2 = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/; - function extractISODuration2(match3) { - const [s3, yearStr, monthStr, weekStr, dayStr, hourStr, minuteStr, secondStr, millisecondsStr] = match3; - const hasNegativePrefix = s3[0] === "-"; - const negativeSeconds = secondStr && secondStr[0] === "-"; - const maybeNegate = (num, force = false) => num !== void 0 && (force || num && hasNegativePrefix) ? -num : num; - return [ - { - years: maybeNegate(parseFloating2(yearStr)), - months: maybeNegate(parseFloating2(monthStr)), - weeks: maybeNegate(parseFloating2(weekStr)), - days: maybeNegate(parseFloating2(dayStr)), - hours: maybeNegate(parseFloating2(hourStr)), - minutes: maybeNegate(parseFloating2(minuteStr)), - seconds: maybeNegate(parseFloating2(secondStr), secondStr === "-0"), - milliseconds: maybeNegate(parseMillis2(millisecondsStr), negativeSeconds) - } - ]; - } - var obsOffsets2 = { - GMT: 0, - EDT: -4 * 60, - EST: -5 * 60, - CDT: -5 * 60, - CST: -6 * 60, - MDT: -6 * 60, - MST: -7 * 60, - PDT: -7 * 60, - PST: -8 * 60 - }; - function fromStrings2(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) { - const result = { - year: yearStr.length === 2 ? untruncateYear2(parseInteger2(yearStr)) : parseInteger2(yearStr), - month: monthsShort2.indexOf(monthStr) + 1, - day: parseInteger2(dayStr), - hour: parseInteger2(hourStr), - minute: parseInteger2(minuteStr) - }; - if (secondStr) - result.second = parseInteger2(secondStr); - if (weekdayStr) { - result.weekday = weekdayStr.length > 3 ? weekdaysLong2.indexOf(weekdayStr) + 1 : weekdaysShort2.indexOf(weekdayStr) + 1; - } - return result; - } - var rfc28222 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/; - function extractRFC28222(match3) { - const [ - , - weekdayStr, - dayStr, - monthStr, - yearStr, - hourStr, - minuteStr, - secondStr, - obsOffset, - milOffset, - offHourStr, - offMinuteStr - ] = match3, result = fromStrings2(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr); - let offset3; - if (obsOffset) { - offset3 = obsOffsets2[obsOffset]; - } else if (milOffset) { - offset3 = 0; - } else { - offset3 = signedOffset2(offHourStr, offMinuteStr); - } - return [result, new FixedOffsetZone2(offset3)]; - } - function preprocessRFC28222(s3) { - return s3.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim(); - } - var rfc11232 = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/; - var rfc8502 = /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/; - var ascii2 = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/; - function extractRFC1123Or8502(match3) { - const [, weekdayStr, dayStr, monthStr, yearStr, hourStr, minuteStr, secondStr] = match3, result = fromStrings2(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr); - return [result, FixedOffsetZone2.utcInstance]; - } - function extractASCII2(match3) { - const [, weekdayStr, monthStr, dayStr, hourStr, minuteStr, secondStr, yearStr] = match3, result = fromStrings2(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr); - return [result, FixedOffsetZone2.utcInstance]; - } - var isoYmdWithTimeExtensionRegex2 = combineRegexes2(isoYmdRegex2, isoTimeExtensionRegex2); - var isoWeekWithTimeExtensionRegex2 = combineRegexes2(isoWeekRegex2, isoTimeExtensionRegex2); - var isoOrdinalWithTimeExtensionRegex2 = combineRegexes2(isoOrdinalRegex2, isoTimeExtensionRegex2); - var isoTimeCombinedRegex2 = combineRegexes2(isoTimeRegex2); - var extractISOYmdTimeAndOffset2 = combineExtractors2( - extractISOYmd2, - extractISOTime2, - extractISOOffset2, - extractIANAZone2 - ); - var extractISOWeekTimeAndOffset2 = combineExtractors2( - extractISOWeekData2, - extractISOTime2, - extractISOOffset2, - extractIANAZone2 - ); - var extractISOOrdinalDateAndTime2 = combineExtractors2( - extractISOOrdinalData2, - extractISOTime2, - extractISOOffset2, - extractIANAZone2 - ); - var extractISOTimeAndOffset2 = combineExtractors2( - extractISOTime2, - extractISOOffset2, - extractIANAZone2 - ); - function parseISODate2(s3) { - return parse2( - s3, - [isoYmdWithTimeExtensionRegex2, extractISOYmdTimeAndOffset2], - [isoWeekWithTimeExtensionRegex2, extractISOWeekTimeAndOffset2], - [isoOrdinalWithTimeExtensionRegex2, extractISOOrdinalDateAndTime2], - [isoTimeCombinedRegex2, extractISOTimeAndOffset2] - ); - } - function parseRFC2822Date2(s3) { - return parse2(preprocessRFC28222(s3), [rfc28222, extractRFC28222]); - } - function parseHTTPDate2(s3) { - return parse2( - s3, - [rfc11232, extractRFC1123Or8502], - [rfc8502, extractRFC1123Or8502], - [ascii2, extractASCII2] - ); - } - function parseISODuration2(s3) { - return parse2(s3, [isoDuration2, extractISODuration2]); - } - var extractISOTimeOnly2 = combineExtractors2(extractISOTime2); - function parseISOTimeOnly2(s3) { - return parse2(s3, [isoTimeOnly2, extractISOTimeOnly2]); - } - var sqlYmdWithTimeExtensionRegex2 = combineRegexes2(sqlYmdRegex2, sqlTimeExtensionRegex2); - var sqlTimeCombinedRegex2 = combineRegexes2(sqlTimeRegex2); - var extractISOTimeOffsetAndIANAZone2 = combineExtractors2( - extractISOTime2, - extractISOOffset2, - extractIANAZone2 - ); - function parseSQL2(s3) { - return parse2( - s3, - [sqlYmdWithTimeExtensionRegex2, extractISOYmdTimeAndOffset2], - [sqlTimeCombinedRegex2, extractISOTimeOffsetAndIANAZone2] - ); - } - var INVALID$2 = "Invalid Duration"; - var lowOrderMatrix2 = { - weeks: { - days: 7, - hours: 7 * 24, - minutes: 7 * 24 * 60, - seconds: 7 * 24 * 60 * 60, - milliseconds: 7 * 24 * 60 * 60 * 1e3 - }, - days: { - hours: 24, - minutes: 24 * 60, - seconds: 24 * 60 * 60, - milliseconds: 24 * 60 * 60 * 1e3 - }, - hours: { minutes: 60, seconds: 60 * 60, milliseconds: 60 * 60 * 1e3 }, - minutes: { seconds: 60, milliseconds: 60 * 1e3 }, - seconds: { milliseconds: 1e3 } - }; - var casualMatrix2 = { - years: { - quarters: 4, - months: 12, - weeks: 52, - days: 365, - hours: 365 * 24, - minutes: 365 * 24 * 60, - seconds: 365 * 24 * 60 * 60, - milliseconds: 365 * 24 * 60 * 60 * 1e3 - }, - quarters: { - months: 3, - weeks: 13, - days: 91, - hours: 91 * 24, - minutes: 91 * 24 * 60, - seconds: 91 * 24 * 60 * 60, - milliseconds: 91 * 24 * 60 * 60 * 1e3 - }, - months: { - weeks: 4, - days: 30, - hours: 30 * 24, - minutes: 30 * 24 * 60, - seconds: 30 * 24 * 60 * 60, - milliseconds: 30 * 24 * 60 * 60 * 1e3 - }, - ...lowOrderMatrix2 - }; - var daysInYearAccurate2 = 146097 / 400; - var daysInMonthAccurate2 = 146097 / 4800; - var accurateMatrix2 = { - years: { - quarters: 4, - months: 12, - weeks: daysInYearAccurate2 / 7, - days: daysInYearAccurate2, - hours: daysInYearAccurate2 * 24, - minutes: daysInYearAccurate2 * 24 * 60, - seconds: daysInYearAccurate2 * 24 * 60 * 60, - milliseconds: daysInYearAccurate2 * 24 * 60 * 60 * 1e3 - }, - quarters: { - months: 3, - weeks: daysInYearAccurate2 / 28, - days: daysInYearAccurate2 / 4, - hours: daysInYearAccurate2 * 24 / 4, - minutes: daysInYearAccurate2 * 24 * 60 / 4, - seconds: daysInYearAccurate2 * 24 * 60 * 60 / 4, - milliseconds: daysInYearAccurate2 * 24 * 60 * 60 * 1e3 / 4 - }, - months: { - weeks: daysInMonthAccurate2 / 7, - days: daysInMonthAccurate2, - hours: daysInMonthAccurate2 * 24, - minutes: daysInMonthAccurate2 * 24 * 60, - seconds: daysInMonthAccurate2 * 24 * 60 * 60, - milliseconds: daysInMonthAccurate2 * 24 * 60 * 60 * 1e3 - }, - ...lowOrderMatrix2 - }; - var orderedUnits$1 = [ - "years", - "quarters", - "months", - "weeks", - "days", - "hours", - "minutes", - "seconds", - "milliseconds" - ]; - var reverseUnits2 = orderedUnits$1.slice(0).reverse(); - function clone$1(dur, alts, clear = false) { - const conf = { - values: clear ? alts.values : { ...dur.values, ...alts.values || {} }, - loc: dur.loc.clone(alts.loc), - conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy, - matrix: alts.matrix || dur.matrix - }; - return new Duration2(conf); - } - function durationToMillis2(matrix, vals) { - var _a; - let sum = (_a = vals.milliseconds) != null ? _a : 0; - for (const unit of reverseUnits2.slice(1)) { - if (vals[unit]) { - sum += vals[unit] * matrix[unit]["milliseconds"]; - } - } - return sum; - } - function normalizeValues2(matrix, vals) { - const factor = durationToMillis2(matrix, vals) < 0 ? -1 : 1; - orderedUnits$1.reduceRight((previous, current) => { - if (!isUndefined2(vals[current])) { - if (previous) { - const previousVal = vals[previous] * factor; - const conv = matrix[current][previous]; - const rollUp = Math.floor(previousVal / conv); - vals[current] += rollUp * factor; - vals[previous] -= rollUp * conv * factor; - } - return current; - } else { - return previous; - } - }, null); - orderedUnits$1.reduce((previous, current) => { - if (!isUndefined2(vals[current])) { - if (previous) { - const fraction = vals[previous] % 1; - vals[previous] -= fraction; - vals[current] += fraction * matrix[previous][current]; - } - return current; - } else { - return previous; - } - }, null); - } - function removeZeroes2(vals) { - const newVals = {}; - for (const [key, value] of Object.entries(vals)) { - if (value !== 0) { - newVals[key] = value; - } - } - return newVals; - } - var Duration2 = class _Duration { - /** - * @private - */ - constructor(config) { - const accurate = config.conversionAccuracy === "longterm" || false; - let matrix = accurate ? accurateMatrix2 : casualMatrix2; - if (config.matrix) { - matrix = config.matrix; - } - this.values = config.values; - this.loc = config.loc || Locale2.create(); - this.conversionAccuracy = accurate ? "longterm" : "casual"; - this.invalid = config.invalid || null; - this.matrix = matrix; - this.isLuxonDuration = true; - } - /** - * Create Duration from a number of milliseconds. - * @param {number} count of milliseconds - * @param {Object} opts - options for parsing - * @param {string} [opts.locale='en-US'] - the locale to use - * @param {string} opts.numberingSystem - the numbering system to use - * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use - * @return {Duration} - */ - static fromMillis(count, opts) { - return _Duration.fromObject({ milliseconds: count }, opts); - } - /** - * Create a Duration from a JavaScript object with keys like 'years' and 'hours'. - * If this object is empty then a zero milliseconds duration is returned. - * @param {Object} obj - the object to create the DateTime from - * @param {number} obj.years - * @param {number} obj.quarters - * @param {number} obj.months - * @param {number} obj.weeks - * @param {number} obj.days - * @param {number} obj.hours - * @param {number} obj.minutes - * @param {number} obj.seconds - * @param {number} obj.milliseconds - * @param {Object} [opts=[]] - options for creating this Duration - * @param {string} [opts.locale='en-US'] - the locale to use - * @param {string} opts.numberingSystem - the numbering system to use - * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use - * @param {string} [opts.matrix=Object] - the custom conversion system to use - * @return {Duration} - */ - static fromObject(obj, opts = {}) { - if (obj == null || typeof obj !== "object") { - throw new InvalidArgumentError2( - `Duration.fromObject: argument expected to be an object, got ${obj === null ? "null" : typeof obj}` - ); - } - return new _Duration({ - values: normalizeObject2(obj, _Duration.normalizeUnit), - loc: Locale2.fromObject(opts), - conversionAccuracy: opts.conversionAccuracy, - matrix: opts.matrix - }); - } - /** - * Create a Duration from DurationLike. - * - * @param {Object | number | Duration} durationLike - * One of: - * - object with keys like 'years' and 'hours'. - * - number representing milliseconds - * - Duration instance - * @return {Duration} - */ - static fromDurationLike(durationLike) { - if (isNumber2(durationLike)) { - return _Duration.fromMillis(durationLike); - } else if (_Duration.isDuration(durationLike)) { - return durationLike; - } else if (typeof durationLike === "object") { - return _Duration.fromObject(durationLike); - } else { - throw new InvalidArgumentError2( - `Unknown duration argument ${durationLike} of type ${typeof durationLike}` - ); - } - } - /** - * Create a Duration from an ISO 8601 duration string. - * @param {string} text - text to parse - * @param {Object} opts - options for parsing - * @param {string} [opts.locale='en-US'] - the locale to use - * @param {string} opts.numberingSystem - the numbering system to use - * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use - * @param {string} [opts.matrix=Object] - the preset conversion system to use - * @see https://en.wikipedia.org/wiki/ISO_8601#Durations - * @example Duration.fromISO('P3Y6M1W4DT12H30M5S').toObject() //=> { years: 3, months: 6, weeks: 1, days: 4, hours: 12, minutes: 30, seconds: 5 } - * @example Duration.fromISO('PT23H').toObject() //=> { hours: 23 } - * @example Duration.fromISO('P5Y3M').toObject() //=> { years: 5, months: 3 } - * @return {Duration} - */ - static fromISO(text2, opts) { - const [parsed] = parseISODuration2(text2); - if (parsed) { - return _Duration.fromObject(parsed, opts); - } else { - return _Duration.invalid("unparsable", `the input "${text2}" can't be parsed as ISO 8601`); - } - } - /** - * Create a Duration from an ISO 8601 time string. - * @param {string} text - text to parse - * @param {Object} opts - options for parsing - * @param {string} [opts.locale='en-US'] - the locale to use - * @param {string} opts.numberingSystem - the numbering system to use - * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use - * @param {string} [opts.matrix=Object] - the conversion system to use - * @see https://en.wikipedia.org/wiki/ISO_8601#Times - * @example Duration.fromISOTime('11:22:33.444').toObject() //=> { hours: 11, minutes: 22, seconds: 33, milliseconds: 444 } - * @example Duration.fromISOTime('11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 } - * @example Duration.fromISOTime('T11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 } - * @example Duration.fromISOTime('1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 } - * @example Duration.fromISOTime('T1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 } - * @return {Duration} - */ - static fromISOTime(text2, opts) { - const [parsed] = parseISOTimeOnly2(text2); - if (parsed) { - return _Duration.fromObject(parsed, opts); - } else { - return _Duration.invalid("unparsable", `the input "${text2}" can't be parsed as ISO 8601`); - } - } - /** - * Create an invalid Duration. - * @param {string} reason - simple string of why this datetime is invalid. Should not contain parameters or anything else data-dependent - * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information - * @return {Duration} - */ - static invalid(reason, explanation = null) { - if (!reason) { - throw new InvalidArgumentError2("need to specify a reason the Duration is invalid"); - } - const invalid = reason instanceof Invalid2 ? reason : new Invalid2(reason, explanation); - if (Settings2.throwOnInvalid) { - throw new InvalidDurationError2(invalid); - } else { - return new _Duration({ invalid }); - } - } - /** - * @private - */ - static normalizeUnit(unit) { - const normalized = { - year: "years", - years: "years", - quarter: "quarters", - quarters: "quarters", - month: "months", - months: "months", - week: "weeks", - weeks: "weeks", - day: "days", - days: "days", - hour: "hours", - hours: "hours", - minute: "minutes", - minutes: "minutes", - second: "seconds", - seconds: "seconds", - millisecond: "milliseconds", - milliseconds: "milliseconds" - }[unit ? unit.toLowerCase() : unit]; - if (!normalized) - throw new InvalidUnitError2(unit); - return normalized; - } - /** - * Check if an object is a Duration. Works across context boundaries - * @param {object} o - * @return {boolean} - */ - static isDuration(o) { - return o && o.isLuxonDuration || false; - } - /** - * Get the locale of a Duration, such 'en-GB' - * @type {string} - */ - get locale() { - return this.isValid ? this.loc.locale : null; - } - /** - * Get the numbering system of a Duration, such 'beng'. The numbering system is used when formatting the Duration - * - * @type {string} - */ - get numberingSystem() { - return this.isValid ? this.loc.numberingSystem : null; - } - /** - * Returns a string representation of this Duration formatted according to the specified format string. You may use these tokens: - * * `S` for milliseconds - * * `s` for seconds - * * `m` for minutes - * * `h` for hours - * * `d` for days - * * `w` for weeks - * * `M` for months - * * `y` for years - * Notes: - * * Add padding by repeating the token, e.g. "yy" pads the years to two digits, "hhhh" pads the hours out to four digits - * * Tokens can be escaped by wrapping with single quotes. - * * The duration will be converted to the set of units in the format string using {@link Duration#shiftTo} and the Durations's conversion accuracy setting. - * @param {string} fmt - the format string - * @param {Object} opts - options - * @param {boolean} [opts.floor=true] - floor numerical values - * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat("y d s") //=> "1 6 2" - * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat("yy dd sss") //=> "01 06 002" - * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat("M S") //=> "12 518402000" - * @return {string} - */ - toFormat(fmt, opts = {}) { - const fmtOpts = { - ...opts, - floor: opts.round !== false && opts.floor !== false - }; - return this.isValid ? Formatter2.create(this.loc, fmtOpts).formatDurationFromString(this, fmt) : INVALID$2; - } - /** - * Returns a string representation of a Duration with all units included. - * To modify its behavior use the `listStyle` and any Intl.NumberFormat option, though `unitDisplay` is especially relevant. - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat - * @param opts - On option object to override the formatting. Accepts the same keys as the options parameter of the native `Int.NumberFormat` constructor, as well as `listStyle`. - * @example - * ```js - * var dur = Duration.fromObject({ days: 1, hours: 5, minutes: 6 }) - * dur.toHuman() //=> '1 day, 5 hours, 6 minutes' - * dur.toHuman({ listStyle: "long" }) //=> '1 day, 5 hours, and 6 minutes' - * dur.toHuman({ unitDisplay: "short" }) //=> '1 day, 5 hr, 6 min' - * ``` - */ - toHuman(opts = {}) { - if (!this.isValid) - return INVALID$2; - const l3 = orderedUnits$1.map((unit) => { - const val = this.values[unit]; - if (isUndefined2(val)) { - return null; - } - return this.loc.numberFormatter({ style: "unit", unitDisplay: "long", ...opts, unit: unit.slice(0, -1) }).format(val); - }).filter((n3) => n3); - return this.loc.listFormatter({ type: "conjunction", style: opts.listStyle || "narrow", ...opts }).format(l3); - } - /** - * Returns a JavaScript object with this Duration's values. - * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toObject() //=> { years: 1, days: 6, seconds: 2 } - * @return {Object} - */ - toObject() { - if (!this.isValid) - return {}; - return { ...this.values }; - } - /** - * Returns an ISO 8601-compliant string representation of this Duration. - * @see https://en.wikipedia.org/wiki/ISO_8601#Durations - * @example Duration.fromObject({ years: 3, seconds: 45 }).toISO() //=> 'P3YT45S' - * @example Duration.fromObject({ months: 4, seconds: 45 }).toISO() //=> 'P4MT45S' - * @example Duration.fromObject({ months: 5 }).toISO() //=> 'P5M' - * @example Duration.fromObject({ minutes: 5 }).toISO() //=> 'PT5M' - * @example Duration.fromObject({ milliseconds: 6 }).toISO() //=> 'PT0.006S' - * @return {string} - */ - toISO() { - if (!this.isValid) - return null; - let s3 = "P"; - if (this.years !== 0) - s3 += this.years + "Y"; - if (this.months !== 0 || this.quarters !== 0) - s3 += this.months + this.quarters * 3 + "M"; - if (this.weeks !== 0) - s3 += this.weeks + "W"; - if (this.days !== 0) - s3 += this.days + "D"; - if (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) - s3 += "T"; - if (this.hours !== 0) - s3 += this.hours + "H"; - if (this.minutes !== 0) - s3 += this.minutes + "M"; - if (this.seconds !== 0 || this.milliseconds !== 0) - s3 += roundTo2(this.seconds + this.milliseconds / 1e3, 3) + "S"; - if (s3 === "P") - s3 += "T0S"; - return s3; - } - /** - * Returns an ISO 8601-compliant string representation of this Duration, formatted as a time of day. - * Note that this will return null if the duration is invalid, negative, or equal to or greater than 24 hours. - * @see https://en.wikipedia.org/wiki/ISO_8601#Times - * @param {Object} opts - options - * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0 - * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0 - * @param {boolean} [opts.includePrefix=false] - include the `T` prefix - * @param {string} [opts.format='extended'] - choose between the basic and extended format - * @example Duration.fromObject({ hours: 11 }).toISOTime() //=> '11:00:00.000' - * @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressMilliseconds: true }) //=> '11:00:00' - * @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressSeconds: true }) //=> '11:00' - * @example Duration.fromObject({ hours: 11 }).toISOTime({ includePrefix: true }) //=> 'T11:00:00.000' - * @example Duration.fromObject({ hours: 11 }).toISOTime({ format: 'basic' }) //=> '110000.000' - * @return {string} - */ - toISOTime(opts = {}) { - if (!this.isValid) - return null; - const millis = this.toMillis(); - if (millis < 0 || millis >= 864e5) - return null; - opts = { - suppressMilliseconds: false, - suppressSeconds: false, - includePrefix: false, - format: "extended", - ...opts, - includeOffset: false - }; - const dateTime = DateTime2.fromMillis(millis, { zone: "UTC" }); - return dateTime.toISOTime(opts); - } - /** - * Returns an ISO 8601 representation of this Duration appropriate for use in JSON. - * @return {string} - */ - toJSON() { - return this.toISO(); - } - /** - * Returns an ISO 8601 representation of this Duration appropriate for use in debugging. - * @return {string} - */ - toString() { - return this.toISO(); - } - /** - * Returns an milliseconds value of this Duration. - * @return {number} - */ - toMillis() { - if (!this.isValid) - return NaN; - return durationToMillis2(this.matrix, this.values); - } - /** - * Returns an milliseconds value of this Duration. Alias of {@link toMillis} - * @return {number} - */ - valueOf() { - return this.toMillis(); - } - /** - * Make this Duration longer by the specified amount. Return a newly-constructed Duration. - * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject() - * @return {Duration} - */ - plus(duration) { - if (!this.isValid) - return this; - const dur = _Duration.fromDurationLike(duration), result = {}; - for (const k of orderedUnits$1) { - if (hasOwnProperty2(dur.values, k) || hasOwnProperty2(this.values, k)) { - result[k] = dur.get(k) + this.get(k); - } - } - return clone$1(this, { values: result }, true); - } - /** - * Make this Duration shorter by the specified amount. Return a newly-constructed Duration. - * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject() - * @return {Duration} - */ - minus(duration) { - if (!this.isValid) - return this; - const dur = _Duration.fromDurationLike(duration); - return this.plus(dur.negate()); - } - /** - * Scale this Duration by the specified amount. Return a newly-constructed Duration. - * @param {function} fn - The function to apply to each unit. Arity is 1 or 2: the value of the unit and, optionally, the unit name. Must return a number. - * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits(x => x * 2) //=> { hours: 2, minutes: 60 } - * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits((x, u) => u === "hours" ? x * 2 : x) //=> { hours: 2, minutes: 30 } - * @return {Duration} - */ - mapUnits(fn) { - if (!this.isValid) - return this; - const result = {}; - for (const k of Object.keys(this.values)) { - result[k] = asNumber2(fn(this.values[k], k)); - } - return clone$1(this, { values: result }, true); - } - /** - * Get the value of unit. - * @param {string} unit - a unit such as 'minute' or 'day' - * @example Duration.fromObject({years: 2, days: 3}).get('years') //=> 2 - * @example Duration.fromObject({years: 2, days: 3}).get('months') //=> 0 - * @example Duration.fromObject({years: 2, days: 3}).get('days') //=> 3 - * @return {number} - */ - get(unit) { - return this[_Duration.normalizeUnit(unit)]; - } - /** - * "Set" the values of specified units. Return a newly-constructed Duration. - * @param {Object} values - a mapping of units to numbers - * @example dur.set({ years: 2017 }) - * @example dur.set({ hours: 8, minutes: 30 }) - * @return {Duration} - */ - set(values) { - if (!this.isValid) - return this; - const mixed = { ...this.values, ...normalizeObject2(values, _Duration.normalizeUnit) }; - return clone$1(this, { values: mixed }); - } - /** - * "Set" the locale and/or numberingSystem. Returns a newly-constructed Duration. - * @example dur.reconfigure({ locale: 'en-GB' }) - * @return {Duration} - */ - reconfigure({ locale, numberingSystem, conversionAccuracy, matrix } = {}) { - const loc = this.loc.clone({ locale, numberingSystem }); - const opts = { loc, matrix, conversionAccuracy }; - return clone$1(this, opts); - } - /** - * Return the length of the duration in the specified unit. - * @param {string} unit - a unit such as 'minutes' or 'days' - * @example Duration.fromObject({years: 1}).as('days') //=> 365 - * @example Duration.fromObject({years: 1}).as('months') //=> 12 - * @example Duration.fromObject({hours: 60}).as('days') //=> 2.5 - * @return {number} - */ - as(unit) { - return this.isValid ? this.shiftTo(unit).get(unit) : NaN; - } - /** - * Reduce this Duration to its canonical representation in its current units. - * Assuming the overall value of the Duration is positive, this means: - * - excessive values for lower-order units are converted to higher-order units (if possible, see first and second example) - * - negative lower-order units are converted to higher order units (there must be such a higher order unit, otherwise - * the overall value would be negative, see second example) - * - fractional values for higher-order units are converted to lower-order units (if possible, see fourth example) - * - * If the overall value is negative, the result of this method is equivalent to `this.negate().normalize().negate()`. - * @example Duration.fromObject({ years: 2, days: 5000 }).normalize().toObject() //=> { years: 15, days: 255 } - * @example Duration.fromObject({ days: 5000 }).normalize().toObject() //=> { days: 5000 } - * @example Duration.fromObject({ hours: 12, minutes: -45 }).normalize().toObject() //=> { hours: 11, minutes: 15 } - * @example Duration.fromObject({ years: 2.5, days: 0, hours: 0 }).normalize().toObject() //=> { years: 2, days: 182, hours: 12 } - * @return {Duration} - */ - normalize() { - if (!this.isValid) - return this; - const vals = this.toObject(); - normalizeValues2(this.matrix, vals); - return clone$1(this, { values: vals }, true); - } - /** - * Rescale units to its largest representation - * @example Duration.fromObject({ milliseconds: 90000 }).rescale().toObject() //=> { minutes: 1, seconds: 30 } - * @return {Duration} - */ - rescale() { - if (!this.isValid) - return this; - const vals = removeZeroes2(this.normalize().shiftToAll().toObject()); - return clone$1(this, { values: vals }, true); - } - /** - * Convert this Duration into its representation in a different set of units. - * @example Duration.fromObject({ hours: 1, seconds: 30 }).shiftTo('minutes', 'milliseconds').toObject() //=> { minutes: 60, milliseconds: 30000 } - * @return {Duration} - */ - shiftTo(...units) { - if (!this.isValid) - return this; - if (units.length === 0) { - return this; - } - units = units.map((u) => _Duration.normalizeUnit(u)); - const built = {}, accumulated = {}, vals = this.toObject(); - let lastUnit; - for (const k of orderedUnits$1) { - if (units.indexOf(k) >= 0) { - lastUnit = k; - let own = 0; - for (const ak in accumulated) { - own += this.matrix[ak][k] * accumulated[ak]; - accumulated[ak] = 0; - } - if (isNumber2(vals[k])) { - own += vals[k]; - } - const i = Math.trunc(own); - built[k] = i; - accumulated[k] = (own * 1e3 - i * 1e3) / 1e3; - } else if (isNumber2(vals[k])) { - accumulated[k] = vals[k]; - } - } - for (const key in accumulated) { - if (accumulated[key] !== 0) { - built[lastUnit] += key === lastUnit ? accumulated[key] : accumulated[key] / this.matrix[lastUnit][key]; - } - } - normalizeValues2(this.matrix, built); - return clone$1(this, { values: built }, true); - } - /** - * Shift this Duration to all available units. - * Same as shiftTo("years", "months", "weeks", "days", "hours", "minutes", "seconds", "milliseconds") - * @return {Duration} - */ - shiftToAll() { - if (!this.isValid) - return this; - return this.shiftTo( - "years", - "months", - "weeks", - "days", - "hours", - "minutes", - "seconds", - "milliseconds" - ); - } - /** - * Return the negative of this Duration. - * @example Duration.fromObject({ hours: 1, seconds: 30 }).negate().toObject() //=> { hours: -1, seconds: -30 } - * @return {Duration} - */ - negate() { - if (!this.isValid) - return this; - const negated = {}; - for (const k of Object.keys(this.values)) { - negated[k] = this.values[k] === 0 ? 0 : -this.values[k]; - } - return clone$1(this, { values: negated }, true); - } - /** - * Get the years. - * @type {number} - */ - get years() { - return this.isValid ? this.values.years || 0 : NaN; - } - /** - * Get the quarters. - * @type {number} - */ - get quarters() { - return this.isValid ? this.values.quarters || 0 : NaN; - } - /** - * Get the months. - * @type {number} - */ - get months() { - return this.isValid ? this.values.months || 0 : NaN; - } - /** - * Get the weeks - * @type {number} - */ - get weeks() { - return this.isValid ? this.values.weeks || 0 : NaN; - } - /** - * Get the days. - * @type {number} - */ - get days() { - return this.isValid ? this.values.days || 0 : NaN; - } - /** - * Get the hours. - * @type {number} - */ - get hours() { - return this.isValid ? this.values.hours || 0 : NaN; - } - /** - * Get the minutes. - * @type {number} - */ - get minutes() { - return this.isValid ? this.values.minutes || 0 : NaN; - } - /** - * Get the seconds. - * @return {number} - */ - get seconds() { - return this.isValid ? this.values.seconds || 0 : NaN; - } - /** - * Get the milliseconds. - * @return {number} - */ - get milliseconds() { - return this.isValid ? this.values.milliseconds || 0 : NaN; - } - /** - * Returns whether the Duration is invalid. Invalid durations are returned by diff operations - * on invalid DateTimes or Intervals. - * @return {boolean} - */ - get isValid() { - return this.invalid === null; - } - /** - * Returns an error code if this Duration became invalid, or null if the Duration is valid - * @return {string} - */ - get invalidReason() { - return this.invalid ? this.invalid.reason : null; - } - /** - * Returns an explanation of why this Duration became invalid, or null if the Duration is valid - * @type {string} - */ - get invalidExplanation() { - return this.invalid ? this.invalid.explanation : null; - } - /** - * Equality check - * Two Durations are equal iff they have the same units and the same values for each unit. - * @param {Duration} other - * @return {boolean} - */ - equals(other) { - if (!this.isValid || !other.isValid) { - return false; - } - if (!this.loc.equals(other.loc)) { - return false; - } - function eq(v1, v2) { - if (v1 === void 0 || v1 === 0) - return v2 === void 0 || v2 === 0; - return v1 === v2; - } - for (const u of orderedUnits$1) { - if (!eq(this.values[u], other.values[u])) { - return false; - } - } - return true; - } - }; - var INVALID$1 = "Invalid Interval"; - function validateStartEnd2(start, end) { - if (!start || !start.isValid) { - return Interval2.invalid("missing or invalid start"); - } else if (!end || !end.isValid) { - return Interval2.invalid("missing or invalid end"); - } else if (end < start) { - return Interval2.invalid( - "end before start", - `The end of an interval must be after its start, but you had start=${start.toISO()} and end=${end.toISO()}` - ); - } else { - return null; - } - } - var Interval2 = class _Interval { - /** - * @private - */ - constructor(config) { - this.s = config.start; - this.e = config.end; - this.invalid = config.invalid || null; - this.isLuxonInterval = true; - } - /** - * Create an invalid Interval. - * @param {string} reason - simple string of why this Interval is invalid. Should not contain parameters or anything else data-dependent - * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information - * @return {Interval} - */ - static invalid(reason, explanation = null) { - if (!reason) { - throw new InvalidArgumentError2("need to specify a reason the Interval is invalid"); - } - const invalid = reason instanceof Invalid2 ? reason : new Invalid2(reason, explanation); - if (Settings2.throwOnInvalid) { - throw new InvalidIntervalError2(invalid); - } else { - return new _Interval({ invalid }); - } - } - /** - * Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end. - * @param {DateTime|Date|Object} start - * @param {DateTime|Date|Object} end - * @return {Interval} - */ - static fromDateTimes(start, end) { - const builtStart = friendlyDateTime2(start), builtEnd = friendlyDateTime2(end); - const validateError = validateStartEnd2(builtStart, builtEnd); - if (validateError == null) { - return new _Interval({ - start: builtStart, - end: builtEnd - }); - } else { - return validateError; - } - } - /** - * Create an Interval from a start DateTime and a Duration to extend to. - * @param {DateTime|Date|Object} start - * @param {Duration|Object|number} duration - the length of the Interval. - * @return {Interval} - */ - static after(start, duration) { - const dur = Duration2.fromDurationLike(duration), dt = friendlyDateTime2(start); - return _Interval.fromDateTimes(dt, dt.plus(dur)); - } - /** - * Create an Interval from an end DateTime and a Duration to extend backwards to. - * @param {DateTime|Date|Object} end - * @param {Duration|Object|number} duration - the length of the Interval. - * @return {Interval} - */ - static before(end, duration) { - const dur = Duration2.fromDurationLike(duration), dt = friendlyDateTime2(end); - return _Interval.fromDateTimes(dt.minus(dur), dt); - } - /** - * Create an Interval from an ISO 8601 string. - * Accepts `/`, `/`, and `/` formats. - * @param {string} text - the ISO string to parse - * @param {Object} [opts] - options to pass {@link DateTime#fromISO} and optionally {@link Duration#fromISO} - * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals - * @return {Interval} - */ - static fromISO(text2, opts) { - const [s3, e] = (text2 || "").split("/", 2); - if (s3 && e) { - let start, startIsValid; - try { - start = DateTime2.fromISO(s3, opts); - startIsValid = start.isValid; - } catch (e2) { - startIsValid = false; - } - let end, endIsValid; - try { - end = DateTime2.fromISO(e, opts); - endIsValid = end.isValid; - } catch (e2) { - endIsValid = false; - } - if (startIsValid && endIsValid) { - return _Interval.fromDateTimes(start, end); - } - if (startIsValid) { - const dur = Duration2.fromISO(e, opts); - if (dur.isValid) { - return _Interval.after(start, dur); - } - } else if (endIsValid) { - const dur = Duration2.fromISO(s3, opts); - if (dur.isValid) { - return _Interval.before(end, dur); - } - } - } - return _Interval.invalid("unparsable", `the input "${text2}" can't be parsed as ISO 8601`); - } - /** - * Check if an object is an Interval. Works across context boundaries - * @param {object} o - * @return {boolean} - */ - static isInterval(o) { - return o && o.isLuxonInterval || false; - } - /** - * Returns the start of the Interval - * @type {DateTime} - */ - get start() { - return this.isValid ? this.s : null; - } - /** - * Returns the end of the Interval - * @type {DateTime} - */ - get end() { - return this.isValid ? this.e : null; - } - /** - * Returns whether this Interval's end is at least its start, meaning that the Interval isn't 'backwards'. - * @type {boolean} - */ - get isValid() { - return this.invalidReason === null; - } - /** - * Returns an error code if this Interval is invalid, or null if the Interval is valid - * @type {string} - */ - get invalidReason() { - return this.invalid ? this.invalid.reason : null; - } - /** - * Returns an explanation of why this Interval became invalid, or null if the Interval is valid - * @type {string} - */ - get invalidExplanation() { - return this.invalid ? this.invalid.explanation : null; - } - /** - * Returns the length of the Interval in the specified unit. - * @param {string} unit - the unit (such as 'hours' or 'days') to return the length in. - * @return {number} - */ - length(unit = "milliseconds") { - return this.isValid ? this.toDuration(...[unit]).get(unit) : NaN; - } - /** - * Returns the count of minutes, hours, days, months, or years included in the Interval, even in part. - * Unlike {@link Interval#length} this counts sections of the calendar, not periods of time, e.g. specifying 'day' - * asks 'what dates are included in this interval?', not 'how many days long is this interval?' - * @param {string} [unit='milliseconds'] - the unit of time to count. - * @return {number} - */ - count(unit = "milliseconds") { - if (!this.isValid) - return NaN; - const start = this.start.startOf(unit), end = this.end.startOf(unit); - return Math.floor(end.diff(start, unit).get(unit)) + (end.valueOf() !== this.end.valueOf()); - } - /** - * Returns whether this Interval's start and end are both in the same unit of time - * @param {string} unit - the unit of time to check sameness on - * @return {boolean} - */ - hasSame(unit) { - return this.isValid ? this.isEmpty() || this.e.minus(1).hasSame(this.s, unit) : false; - } - /** - * Return whether this Interval has the same start and end DateTimes. - * @return {boolean} - */ - isEmpty() { - return this.s.valueOf() === this.e.valueOf(); - } - /** - * Return whether this Interval's start is after the specified DateTime. - * @param {DateTime} dateTime - * @return {boolean} - */ - isAfter(dateTime) { - if (!this.isValid) - return false; - return this.s > dateTime; - } - /** - * Return whether this Interval's end is before the specified DateTime. - * @param {DateTime} dateTime - * @return {boolean} - */ - isBefore(dateTime) { - if (!this.isValid) - return false; - return this.e <= dateTime; - } - /** - * Return whether this Interval contains the specified DateTime. - * @param {DateTime} dateTime - * @return {boolean} - */ - contains(dateTime) { - if (!this.isValid) - return false; - return this.s <= dateTime && this.e > dateTime; - } - /** - * "Sets" the start and/or end dates. Returns a newly-constructed Interval. - * @param {Object} values - the values to set - * @param {DateTime} values.start - the starting DateTime - * @param {DateTime} values.end - the ending DateTime - * @return {Interval} - */ - set({ start, end } = {}) { - if (!this.isValid) - return this; - return _Interval.fromDateTimes(start || this.s, end || this.e); - } - /** - * Split this Interval at each of the specified DateTimes - * @param {...DateTime} dateTimes - the unit of time to count. - * @return {Array} - */ - splitAt(...dateTimes) { - if (!this.isValid) - return []; - const sorted = dateTimes.map(friendlyDateTime2).filter((d) => this.contains(d)).sort(), results = []; - let { s: s3 } = this, i = 0; - while (s3 < this.e) { - const added = sorted[i] || this.e, next = +added > +this.e ? this.e : added; - results.push(_Interval.fromDateTimes(s3, next)); - s3 = next; - i += 1; - } - return results; - } - /** - * Split this Interval into smaller Intervals, each of the specified length. - * Left over time is grouped into a smaller interval - * @param {Duration|Object|number} duration - The length of each resulting interval. - * @return {Array} - */ - splitBy(duration) { - const dur = Duration2.fromDurationLike(duration); - if (!this.isValid || !dur.isValid || dur.as("milliseconds") === 0) { - return []; - } - let { s: s3 } = this, idx = 1, next; - const results = []; - while (s3 < this.e) { - const added = this.start.plus(dur.mapUnits((x) => x * idx)); - next = +added > +this.e ? this.e : added; - results.push(_Interval.fromDateTimes(s3, next)); - s3 = next; - idx += 1; - } - return results; - } - /** - * Split this Interval into the specified number of smaller intervals. - * @param {number} numberOfParts - The number of Intervals to divide the Interval into. - * @return {Array} - */ - divideEqually(numberOfParts) { - if (!this.isValid) - return []; - return this.splitBy(this.length() / numberOfParts).slice(0, numberOfParts); - } - /** - * Return whether this Interval overlaps with the specified Interval - * @param {Interval} other - * @return {boolean} - */ - overlaps(other) { - return this.e > other.s && this.s < other.e; - } - /** - * Return whether this Interval's end is adjacent to the specified Interval's start. - * @param {Interval} other - * @return {boolean} - */ - abutsStart(other) { - if (!this.isValid) - return false; - return +this.e === +other.s; - } - /** - * Return whether this Interval's start is adjacent to the specified Interval's end. - * @param {Interval} other - * @return {boolean} - */ - abutsEnd(other) { - if (!this.isValid) - return false; - return +other.e === +this.s; - } - /** - * Return whether this Interval engulfs the start and end of the specified Interval. - * @param {Interval} other - * @return {boolean} - */ - engulfs(other) { - if (!this.isValid) - return false; - return this.s <= other.s && this.e >= other.e; - } - /** - * Return whether this Interval has the same start and end as the specified Interval. - * @param {Interval} other - * @return {boolean} - */ - equals(other) { - if (!this.isValid || !other.isValid) { - return false; - } - return this.s.equals(other.s) && this.e.equals(other.e); - } - /** - * Return an Interval representing the intersection of this Interval and the specified Interval. - * Specifically, the resulting Interval has the maximum start time and the minimum end time of the two Intervals. - * Returns null if the intersection is empty, meaning, the intervals don't intersect. - * @param {Interval} other - * @return {Interval} - */ - intersection(other) { - if (!this.isValid) - return this; - const s3 = this.s > other.s ? this.s : other.s, e = this.e < other.e ? this.e : other.e; - if (s3 >= e) { - return null; - } else { - return _Interval.fromDateTimes(s3, e); - } - } - /** - * Return an Interval representing the union of this Interval and the specified Interval. - * Specifically, the resulting Interval has the minimum start time and the maximum end time of the two Intervals. - * @param {Interval} other - * @return {Interval} - */ - union(other) { - if (!this.isValid) - return this; - const s3 = this.s < other.s ? this.s : other.s, e = this.e > other.e ? this.e : other.e; - return _Interval.fromDateTimes(s3, e); - } - /** - * Merge an array of Intervals into a equivalent minimal set of Intervals. - * Combines overlapping and adjacent Intervals. - * @param {Array} intervals - * @return {Array} - */ - static merge(intervals) { - const [found, final] = intervals.sort((a, b) => a.s - b.s).reduce( - ([sofar, current], item) => { - if (!current) { - return [sofar, item]; - } else if (current.overlaps(item) || current.abutsStart(item)) { - return [sofar, current.union(item)]; - } else { - return [sofar.concat([current]), item]; - } - }, - [[], null] - ); - if (final) { - found.push(final); - } - return found; - } - /** - * Return an array of Intervals representing the spans of time that only appear in one of the specified Intervals. - * @param {Array} intervals - * @return {Array} - */ - static xor(intervals) { - let start = null, currentCount = 0; - const results = [], ends = intervals.map((i) => [ - { time: i.s, type: "s" }, - { time: i.e, type: "e" } - ]), flattened = Array.prototype.concat(...ends), arr = flattened.sort((a, b) => a.time - b.time); - for (const i of arr) { - currentCount += i.type === "s" ? 1 : -1; - if (currentCount === 1) { - start = i.time; - } else { - if (start && +start !== +i.time) { - results.push(_Interval.fromDateTimes(start, i.time)); - } - start = null; - } - } - return _Interval.merge(results); - } - /** - * Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals. - * @param {...Interval} intervals - * @return {Array} - */ - difference(...intervals) { - return _Interval.xor([this].concat(intervals)).map((i) => this.intersection(i)).filter((i) => i && !i.isEmpty()); - } - /** - * Returns a string representation of this Interval appropriate for debugging. - * @return {string} - */ - toString() { - if (!this.isValid) - return INVALID$1; - return `[${this.s.toISO()} \u2013 ${this.e.toISO()})`; - } - /** - * Returns a localized string representing this Interval. Accepts the same options as the - * Intl.DateTimeFormat constructor and any presets defined by Luxon, such as - * {@link DateTime.DATE_FULL} or {@link DateTime.TIME_SIMPLE}. The exact behavior of this method - * is browser-specific, but in general it will return an appropriate representation of the - * Interval in the assigned locale. Defaults to the system's locale if no locale has been - * specified. - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat - * @param {Object} [formatOpts=DateTime.DATE_SHORT] - Either a DateTime preset or - * Intl.DateTimeFormat constructor options. - * @param {Object} opts - Options to override the configuration of the start DateTime. - * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(); //=> 11/7/2022 – 11/8/2022 - * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL); //=> November 7 – 8, 2022 - * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL, { locale: 'fr-FR' }); //=> 7–8 novembre 2022 - * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString(DateTime.TIME_SIMPLE); //=> 6:00 – 8:00 PM - * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> Mon, Nov 07, 6:00 – 8:00 p - * @return {string} - */ - toLocaleString(formatOpts = DATE_SHORT2, opts = {}) { - return this.isValid ? Formatter2.create(this.s.loc.clone(opts), formatOpts).formatInterval(this) : INVALID$1; - } - /** - * Returns an ISO 8601-compliant string representation of this Interval. - * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals - * @param {Object} opts - The same options as {@link DateTime#toISO} - * @return {string} - */ - toISO(opts) { - if (!this.isValid) - return INVALID$1; - return `${this.s.toISO(opts)}/${this.e.toISO(opts)}`; - } - /** - * Returns an ISO 8601-compliant string representation of date of this Interval. - * The time components are ignored. - * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals - * @return {string} - */ - toISODate() { - if (!this.isValid) - return INVALID$1; - return `${this.s.toISODate()}/${this.e.toISODate()}`; - } - /** - * Returns an ISO 8601-compliant string representation of time of this Interval. - * The date components are ignored. - * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals - * @param {Object} opts - The same options as {@link DateTime#toISO} - * @return {string} - */ - toISOTime(opts) { - if (!this.isValid) - return INVALID$1; - return `${this.s.toISOTime(opts)}/${this.e.toISOTime(opts)}`; - } - /** - * Returns a string representation of this Interval formatted according to the specified format - * string. **You may not want this.** See {@link Interval#toLocaleString} for a more flexible - * formatting tool. - * @param {string} dateFormat - The format string. This string formats the start and end time. - * See {@link DateTime#toFormat} for details. - * @param {Object} opts - Options. - * @param {string} [opts.separator = ' – '] - A separator to place between the start and end - * representations. - * @return {string} - */ - toFormat(dateFormat, { separator = " \u2013 " } = {}) { - if (!this.isValid) - return INVALID$1; - return `${this.s.toFormat(dateFormat)}${separator}${this.e.toFormat(dateFormat)}`; - } - /** - * Return a Duration representing the time spanned by this interval. - * @param {string|string[]} [unit=['milliseconds']] - the unit or units (such as 'hours' or 'days') to include in the duration. - * @param {Object} opts - options that affect the creation of the Duration - * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use - * @example Interval.fromDateTimes(dt1, dt2).toDuration().toObject() //=> { milliseconds: 88489257 } - * @example Interval.fromDateTimes(dt1, dt2).toDuration('days').toObject() //=> { days: 1.0241812152777778 } - * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes']).toObject() //=> { hours: 24, minutes: 34.82095 } - * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes', 'seconds']).toObject() //=> { hours: 24, minutes: 34, seconds: 49.257 } - * @example Interval.fromDateTimes(dt1, dt2).toDuration('seconds').toObject() //=> { seconds: 88489.257 } - * @return {Duration} - */ - toDuration(unit, opts) { - if (!this.isValid) { - return Duration2.invalid(this.invalidReason); - } - return this.e.diff(this.s, unit, opts); - } - /** - * Run mapFn on the interval start and end, returning a new Interval from the resulting DateTimes - * @param {function} mapFn - * @return {Interval} - * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.toUTC()) - * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 })) - */ - mapEndpoints(mapFn) { - return _Interval.fromDateTimes(mapFn(this.s), mapFn(this.e)); - } - }; - var Info2 = class { - /** - * Return whether the specified zone contains a DST. - * @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone. - * @return {boolean} - */ - static hasDST(zone = Settings2.defaultZone) { - const proto = DateTime2.now().setZone(zone).set({ month: 12 }); - return !zone.isUniversal && proto.offset !== proto.set({ month: 6 }).offset; - } - /** - * Return whether the specified zone is a valid IANA specifier. - * @param {string} zone - Zone to check - * @return {boolean} - */ - static isValidIANAZone(zone) { - return IANAZone2.isValidZone(zone); - } - /** - * Converts the input into a {@link Zone} instance. - * - * * If `input` is already a Zone instance, it is returned unchanged. - * * If `input` is a string containing a valid time zone name, a Zone instance - * with that name is returned. - * * If `input` is a string that doesn't refer to a known time zone, a Zone - * instance with {@link Zone#isValid} == false is returned. - * * If `input is a number, a Zone instance with the specified fixed offset - * in minutes is returned. - * * If `input` is `null` or `undefined`, the default zone is returned. - * @param {string|Zone|number} [input] - the value to be converted - * @return {Zone} - */ - static normalizeZone(input) { - return normalizeZone2(input, Settings2.defaultZone); - } - /** - * Return an array of standalone month names. - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat - * @param {string} [length='long'] - the length of the month representation, such as "numeric", "2-digit", "narrow", "short", "long" - * @param {Object} opts - options - * @param {string} [opts.locale] - the locale code - * @param {string} [opts.numberingSystem=null] - the numbering system - * @param {string} [opts.locObj=null] - an existing locale object to use - * @param {string} [opts.outputCalendar='gregory'] - the calendar - * @example Info.months()[0] //=> 'January' - * @example Info.months('short')[0] //=> 'Jan' - * @example Info.months('numeric')[0] //=> '1' - * @example Info.months('short', { locale: 'fr-CA' } )[0] //=> 'janv.' - * @example Info.months('numeric', { locale: 'ar' })[0] //=> '١' - * @example Info.months('long', { outputCalendar: 'islamic' })[0] //=> 'Rabiʻ I' - * @return {Array} - */ - static months(length = "long", { locale = null, numberingSystem = null, locObj = null, outputCalendar = "gregory" } = {}) { - return (locObj || Locale2.create(locale, numberingSystem, outputCalendar)).months(length); - } - /** - * Return an array of format month names. - * Format months differ from standalone months in that they're meant to appear next to the day of the month. In some languages, that - * changes the string. - * See {@link Info#months} - * @param {string} [length='long'] - the length of the month representation, such as "numeric", "2-digit", "narrow", "short", "long" - * @param {Object} opts - options - * @param {string} [opts.locale] - the locale code - * @param {string} [opts.numberingSystem=null] - the numbering system - * @param {string} [opts.locObj=null] - an existing locale object to use - * @param {string} [opts.outputCalendar='gregory'] - the calendar - * @return {Array} - */ - static monthsFormat(length = "long", { locale = null, numberingSystem = null, locObj = null, outputCalendar = "gregory" } = {}) { - return (locObj || Locale2.create(locale, numberingSystem, outputCalendar)).months(length, true); - } - /** - * Return an array of standalone week names. - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat - * @param {string} [length='long'] - the length of the weekday representation, such as "narrow", "short", "long". - * @param {Object} opts - options - * @param {string} [opts.locale] - the locale code - * @param {string} [opts.numberingSystem=null] - the numbering system - * @param {string} [opts.locObj=null] - an existing locale object to use - * @example Info.weekdays()[0] //=> 'Monday' - * @example Info.weekdays('short')[0] //=> 'Mon' - * @example Info.weekdays('short', { locale: 'fr-CA' })[0] //=> 'lun.' - * @example Info.weekdays('short', { locale: 'ar' })[0] //=> 'الاثنين' - * @return {Array} - */ - static weekdays(length = "long", { locale = null, numberingSystem = null, locObj = null } = {}) { - return (locObj || Locale2.create(locale, numberingSystem, null)).weekdays(length); - } - /** - * Return an array of format week names. - * Format weekdays differ from standalone weekdays in that they're meant to appear next to more date information. In some languages, that - * changes the string. - * See {@link Info#weekdays} - * @param {string} [length='long'] - the length of the month representation, such as "narrow", "short", "long". - * @param {Object} opts - options - * @param {string} [opts.locale=null] - the locale code - * @param {string} [opts.numberingSystem=null] - the numbering system - * @param {string} [opts.locObj=null] - an existing locale object to use - * @return {Array} - */ - static weekdaysFormat(length = "long", { locale = null, numberingSystem = null, locObj = null } = {}) { - return (locObj || Locale2.create(locale, numberingSystem, null)).weekdays(length, true); - } - /** - * Return an array of meridiems. - * @param {Object} opts - options - * @param {string} [opts.locale] - the locale code - * @example Info.meridiems() //=> [ 'AM', 'PM' ] - * @example Info.meridiems({ locale: 'my' }) //=> [ 'နံနက်', 'ညနေ' ] - * @return {Array} - */ - static meridiems({ locale = null } = {}) { - return Locale2.create(locale).meridiems(); - } - /** - * Return an array of eras, such as ['BC', 'AD']. The locale can be specified, but the calendar system is always Gregorian. - * @param {string} [length='short'] - the length of the era representation, such as "short" or "long". - * @param {Object} opts - options - * @param {string} [opts.locale] - the locale code - * @example Info.eras() //=> [ 'BC', 'AD' ] - * @example Info.eras('long') //=> [ 'Before Christ', 'Anno Domini' ] - * @example Info.eras('long', { locale: 'fr' }) //=> [ 'avant Jésus-Christ', 'après Jésus-Christ' ] - * @return {Array} - */ - static eras(length = "short", { locale = null } = {}) { - return Locale2.create(locale, null, "gregory").eras(length); - } - /** - * Return the set of available features in this environment. - * Some features of Luxon are not available in all environments. For example, on older browsers, relative time formatting support is not available. Use this function to figure out if that's the case. - * Keys: - * * `relative`: whether this environment supports relative time formatting - * @example Info.features() //=> { relative: false } - * @return {Object} - */ - static features() { - return { relative: hasRelative2() }; - } - }; - function dayDiff2(earlier, later) { - const utcDayStart = (dt) => dt.toUTC(0, { keepLocalTime: true }).startOf("day").valueOf(), ms = utcDayStart(later) - utcDayStart(earlier); - return Math.floor(Duration2.fromMillis(ms).as("days")); - } - function highOrderDiffs2(cursor, later, units) { - const differs = [ - ["years", (a, b) => b.year - a.year], - ["quarters", (a, b) => b.quarter - a.quarter + (b.year - a.year) * 4], - ["months", (a, b) => b.month - a.month + (b.year - a.year) * 12], - [ - "weeks", - (a, b) => { - const days = dayDiff2(a, b); - return (days - days % 7) / 7; - } - ], - ["days", dayDiff2] - ]; - const results = {}; - const earlier = cursor; - let lowestOrder, highWater; - for (const [unit, differ] of differs) { - if (units.indexOf(unit) >= 0) { - lowestOrder = unit; - results[unit] = differ(cursor, later); - highWater = earlier.plus(results); - if (highWater > later) { - results[unit]--; - cursor = earlier.plus(results); - if (cursor > later) { - highWater = cursor; - results[unit]--; - cursor = earlier.plus(results); - } - } else { - cursor = highWater; - } - } - } - return [cursor, results, highWater, lowestOrder]; - } - function diff(earlier, later, units, opts) { - let [cursor, results, highWater, lowestOrder] = highOrderDiffs2(earlier, later, units); - const remainingMillis = later - cursor; - const lowerOrderUnits = units.filter( - (u) => ["hours", "minutes", "seconds", "milliseconds"].indexOf(u) >= 0 - ); - if (lowerOrderUnits.length === 0) { - if (highWater < later) { - highWater = cursor.plus({ [lowestOrder]: 1 }); - } - if (highWater !== cursor) { - results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor); - } - } - const duration = Duration2.fromObject(results, opts); - if (lowerOrderUnits.length > 0) { - return Duration2.fromMillis(remainingMillis, opts).shiftTo(...lowerOrderUnits).plus(duration); - } else { - return duration; - } - } - var numberingSystems2 = { - arab: "[\u0660-\u0669]", - arabext: "[\u06F0-\u06F9]", - bali: "[\u1B50-\u1B59]", - beng: "[\u09E6-\u09EF]", - deva: "[\u0966-\u096F]", - fullwide: "[\uFF10-\uFF19]", - gujr: "[\u0AE6-\u0AEF]", - hanidec: "[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]", - khmr: "[\u17E0-\u17E9]", - knda: "[\u0CE6-\u0CEF]", - laoo: "[\u0ED0-\u0ED9]", - limb: "[\u1946-\u194F]", - mlym: "[\u0D66-\u0D6F]", - mong: "[\u1810-\u1819]", - mymr: "[\u1040-\u1049]", - orya: "[\u0B66-\u0B6F]", - tamldec: "[\u0BE6-\u0BEF]", - telu: "[\u0C66-\u0C6F]", - thai: "[\u0E50-\u0E59]", - tibt: "[\u0F20-\u0F29]", - latn: "\\d" - }; - var numberingSystemsUTF162 = { - arab: [1632, 1641], - arabext: [1776, 1785], - bali: [6992, 7001], - beng: [2534, 2543], - deva: [2406, 2415], - fullwide: [65296, 65303], - gujr: [2790, 2799], - khmr: [6112, 6121], - knda: [3302, 3311], - laoo: [3792, 3801], - limb: [6470, 6479], - mlym: [3430, 3439], - mong: [6160, 6169], - mymr: [4160, 4169], - orya: [2918, 2927], - tamldec: [3046, 3055], - telu: [3174, 3183], - thai: [3664, 3673], - tibt: [3872, 3881] - }; - var hanidecChars2 = numberingSystems2.hanidec.replace(/[\[|\]]/g, "").split(""); - function parseDigits2(str) { - let value = parseInt(str, 10); - if (isNaN(value)) { - value = ""; - for (let i = 0; i < str.length; i++) { - const code = str.charCodeAt(i); - if (str[i].search(numberingSystems2.hanidec) !== -1) { - value += hanidecChars2.indexOf(str[i]); - } else { - for (const key in numberingSystemsUTF162) { - const [min, max] = numberingSystemsUTF162[key]; - if (code >= min && code <= max) { - value += code - min; - } - } - } - } - return parseInt(value, 10); - } else { - return value; - } - } - function digitRegex2({ numberingSystem }, append2 = "") { - return new RegExp(`${numberingSystems2[numberingSystem || "latn"]}${append2}`); - } - var MISSING_FTP2 = "missing Intl.DateTimeFormat.formatToParts support"; - function intUnit2(regex2, post = (i) => i) { - return { regex: regex2, deser: ([s3]) => post(parseDigits2(s3)) }; - } - var NBSP2 = String.fromCharCode(160); - var spaceOrNBSP2 = `[ ${NBSP2}]`; - var spaceOrNBSPRegExp2 = new RegExp(spaceOrNBSP2, "g"); - function fixListRegex2(s3) { - return s3.replace(/\./g, "\\.?").replace(spaceOrNBSPRegExp2, spaceOrNBSP2); - } - function stripInsensitivities2(s3) { - return s3.replace(/\./g, "").replace(spaceOrNBSPRegExp2, " ").toLowerCase(); - } - function oneOf2(strings, startIndex) { - if (strings === null) { - return null; - } else { - return { - regex: RegExp(strings.map(fixListRegex2).join("|")), - deser: ([s3]) => strings.findIndex((i) => stripInsensitivities2(s3) === stripInsensitivities2(i)) + startIndex - }; - } - } - function offset2(regex2, groups) { - return { regex: regex2, deser: ([, h, m]) => signedOffset2(h, m), groups }; - } - function simple2(regex2) { - return { regex: regex2, deser: ([s3]) => s3 }; - } - function escapeToken2(value) { - return value.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&"); - } - function unitForToken2(token, loc) { - const one = digitRegex2(loc), two = digitRegex2(loc, "{2}"), three = digitRegex2(loc, "{3}"), four = digitRegex2(loc, "{4}"), six = digitRegex2(loc, "{6}"), oneOrTwo = digitRegex2(loc, "{1,2}"), oneToThree = digitRegex2(loc, "{1,3}"), oneToSix = digitRegex2(loc, "{1,6}"), oneToNine = digitRegex2(loc, "{1,9}"), twoToFour = digitRegex2(loc, "{2,4}"), fourToSix = digitRegex2(loc, "{4,6}"), literal = (t) => ({ regex: RegExp(escapeToken2(t.val)), deser: ([s3]) => s3, literal: true }), unitate = (t) => { - if (token.literal) { - return literal(t); - } - switch (t.val) { - case "G": - return oneOf2(loc.eras("short"), 0); - case "GG": - return oneOf2(loc.eras("long"), 0); - case "y": - return intUnit2(oneToSix); - case "yy": - return intUnit2(twoToFour, untruncateYear2); - case "yyyy": - return intUnit2(four); - case "yyyyy": - return intUnit2(fourToSix); - case "yyyyyy": - return intUnit2(six); - case "M": - return intUnit2(oneOrTwo); - case "MM": - return intUnit2(two); - case "MMM": - return oneOf2(loc.months("short", true), 1); - case "MMMM": - return oneOf2(loc.months("long", true), 1); - case "L": - return intUnit2(oneOrTwo); - case "LL": - return intUnit2(two); - case "LLL": - return oneOf2(loc.months("short", false), 1); - case "LLLL": - return oneOf2(loc.months("long", false), 1); - case "d": - return intUnit2(oneOrTwo); - case "dd": - return intUnit2(two); - case "o": - return intUnit2(oneToThree); - case "ooo": - return intUnit2(three); - case "HH": - return intUnit2(two); - case "H": - return intUnit2(oneOrTwo); - case "hh": - return intUnit2(two); - case "h": - return intUnit2(oneOrTwo); - case "mm": - return intUnit2(two); - case "m": - return intUnit2(oneOrTwo); - case "q": - return intUnit2(oneOrTwo); - case "qq": - return intUnit2(two); - case "s": - return intUnit2(oneOrTwo); - case "ss": - return intUnit2(two); - case "S": - return intUnit2(oneToThree); - case "SSS": - return intUnit2(three); - case "u": - return simple2(oneToNine); - case "uu": - return simple2(oneOrTwo); - case "uuu": - return intUnit2(one); - case "a": - return oneOf2(loc.meridiems(), 0); - case "kkkk": - return intUnit2(four); - case "kk": - return intUnit2(twoToFour, untruncateYear2); - case "W": - return intUnit2(oneOrTwo); - case "WW": - return intUnit2(two); - case "E": - case "c": - return intUnit2(one); - case "EEE": - return oneOf2(loc.weekdays("short", false), 1); - case "EEEE": - return oneOf2(loc.weekdays("long", false), 1); - case "ccc": - return oneOf2(loc.weekdays("short", true), 1); - case "cccc": - return oneOf2(loc.weekdays("long", true), 1); - case "Z": - case "ZZ": - return offset2(new RegExp(`([+-]${oneOrTwo.source})(?::(${two.source}))?`), 2); - case "ZZZ": - return offset2(new RegExp(`([+-]${oneOrTwo.source})(${two.source})?`), 2); - case "z": - return simple2(/[a-z_+-/]{1,256}?/i); - case " ": - return simple2(/[^\S\n\r]/); - default: - return literal(t); - } - }; - const unit = unitate(token) || { - invalidReason: MISSING_FTP2 - }; - unit.token = token; - return unit; - } - var partTypeStyleToTokenVal2 = { - year: { - "2-digit": "yy", - numeric: "yyyyy" - }, - month: { - numeric: "M", - "2-digit": "MM", - short: "MMM", - long: "MMMM" - }, - day: { - numeric: "d", - "2-digit": "dd" - }, - weekday: { - short: "EEE", - long: "EEEE" - }, - dayperiod: "a", - dayPeriod: "a", - hour12: { - numeric: "h", - "2-digit": "hh" - }, - hour24: { - numeric: "H", - "2-digit": "HH" - }, - minute: { - numeric: "m", - "2-digit": "mm" - }, - second: { - numeric: "s", - "2-digit": "ss" - }, - timeZoneName: { - long: "ZZZZZ", - short: "ZZZ" - } - }; - function tokenForPart2(part, formatOpts, resolvedOpts) { - const { type, value } = part; - if (type === "literal") { - const isSpace = /^\s+$/.test(value); - return { - literal: !isSpace, - val: isSpace ? " " : value - }; - } - const style = formatOpts[type]; - let actualType = type; - if (type === "hour") { - if (formatOpts.hour12 != null) { - actualType = formatOpts.hour12 ? "hour12" : "hour24"; - } else if (formatOpts.hourCycle != null) { - if (formatOpts.hourCycle === "h11" || formatOpts.hourCycle === "h12") { - actualType = "hour12"; - } else { - actualType = "hour24"; - } - } else { - actualType = resolvedOpts.hour12 ? "hour12" : "hour24"; - } - } - let val = partTypeStyleToTokenVal2[actualType]; - if (typeof val === "object") { - val = val[style]; - } - if (val) { - return { - literal: false, - val - }; - } - return void 0; - } - function buildRegex2(units) { - const re = units.map((u) => u.regex).reduce((f, r) => `${f}(${r.source})`, ""); - return [`^${re}$`, units]; - } - function match2(input, regex2, handlers) { - const matches = input.match(regex2); - if (matches) { - const all = {}; - let matchIndex = 1; - for (const i in handlers) { - if (hasOwnProperty2(handlers, i)) { - const h = handlers[i], groups = h.groups ? h.groups + 1 : 1; - if (!h.literal && h.token) { - all[h.token.val[0]] = h.deser(matches.slice(matchIndex, matchIndex + groups)); - } - matchIndex += groups; - } - } - return [matches, all]; - } else { - return [matches, {}]; - } - } - function dateTimeFromMatches2(matches) { - const toField = (token) => { - switch (token) { - case "S": - return "millisecond"; - case "s": - return "second"; - case "m": - return "minute"; - case "h": - case "H": - return "hour"; - case "d": - return "day"; - case "o": - return "ordinal"; - case "L": - case "M": - return "month"; - case "y": - return "year"; - case "E": - case "c": - return "weekday"; - case "W": - return "weekNumber"; - case "k": - return "weekYear"; - case "q": - return "quarter"; - default: - return null; - } - }; - let zone = null; - let specificOffset; - if (!isUndefined2(matches.z)) { - zone = IANAZone2.create(matches.z); - } - if (!isUndefined2(matches.Z)) { - if (!zone) { - zone = new FixedOffsetZone2(matches.Z); - } - specificOffset = matches.Z; - } - if (!isUndefined2(matches.q)) { - matches.M = (matches.q - 1) * 3 + 1; - } - if (!isUndefined2(matches.h)) { - if (matches.h < 12 && matches.a === 1) { - matches.h += 12; - } else if (matches.h === 12 && matches.a === 0) { - matches.h = 0; - } - } - if (matches.G === 0 && matches.y) { - matches.y = -matches.y; - } - if (!isUndefined2(matches.u)) { - matches.S = parseMillis2(matches.u); - } - const vals = Object.keys(matches).reduce((r, k) => { - const f = toField(k); - if (f) { - r[f] = matches[k]; - } - return r; - }, {}); - return [vals, zone, specificOffset]; - } - var dummyDateTimeCache2 = null; - function getDummyDateTime2() { - if (!dummyDateTimeCache2) { - dummyDateTimeCache2 = DateTime2.fromMillis(1555555555555); - } - return dummyDateTimeCache2; - } - function maybeExpandMacroToken2(token, locale) { - if (token.literal) { - return token; - } - const formatOpts = Formatter2.macroTokenToFormatOpts(token.val); - const tokens = formatOptsToTokens2(formatOpts, locale); - if (tokens == null || tokens.includes(void 0)) { - return token; - } - return tokens; - } - function expandMacroTokens2(tokens, locale) { - return Array.prototype.concat(...tokens.map((t) => maybeExpandMacroToken2(t, locale))); - } - function explainFromTokens2(locale, input, format) { - const tokens = expandMacroTokens2(Formatter2.parseFormat(format), locale), units = tokens.map((t) => unitForToken2(t, locale)), disqualifyingUnit = units.find((t) => t.invalidReason); - if (disqualifyingUnit) { - return { input, tokens, invalidReason: disqualifyingUnit.invalidReason }; - } else { - const [regexString, handlers] = buildRegex2(units), regex2 = RegExp(regexString, "i"), [rawMatches, matches] = match2(input, regex2, handlers), [result, zone, specificOffset] = matches ? dateTimeFromMatches2(matches) : [null, null, void 0]; - if (hasOwnProperty2(matches, "a") && hasOwnProperty2(matches, "H")) { - throw new ConflictingSpecificationError2( - "Can't include meridiem when specifying 24-hour format" - ); - } - return { input, tokens, regex: regex2, rawMatches, matches, result, zone, specificOffset }; - } - } - function parseFromTokens2(locale, input, format) { - const { result, zone, specificOffset, invalidReason } = explainFromTokens2(locale, input, format); - return [result, zone, specificOffset, invalidReason]; - } - function formatOptsToTokens2(formatOpts, locale) { - if (!formatOpts) { - return null; - } - const formatter = Formatter2.create(locale, formatOpts); - const df = formatter.dtFormatter(getDummyDateTime2()); - const parts = df.formatToParts(); - const resolvedOpts = df.resolvedOptions(); - return parts.map((p) => tokenForPart2(p, formatOpts, resolvedOpts)); - } - var nonLeapLadder2 = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334]; - var leapLadder2 = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335]; - function unitOutOfRange2(unit, value) { - return new Invalid2( - "unit out of range", - `you specified ${value} (of type ${typeof value}) as a ${unit}, which is invalid` - ); - } - function dayOfWeek2(year, month, day) { - const d = new Date(Date.UTC(year, month - 1, day)); - if (year < 100 && year >= 0) { - d.setUTCFullYear(d.getUTCFullYear() - 1900); - } - const js = d.getUTCDay(); - return js === 0 ? 7 : js; - } - function computeOrdinal2(year, month, day) { - return day + (isLeapYear2(year) ? leapLadder2 : nonLeapLadder2)[month - 1]; - } - function uncomputeOrdinal2(year, ordinal) { - const table = isLeapYear2(year) ? leapLadder2 : nonLeapLadder2, month0 = table.findIndex((i) => i < ordinal), day = ordinal - table[month0]; - return { month: month0 + 1, day }; - } - function gregorianToWeek2(gregObj) { - const { year, month, day } = gregObj, ordinal = computeOrdinal2(year, month, day), weekday = dayOfWeek2(year, month, day); - let weekNumber = Math.floor((ordinal - weekday + 10) / 7), weekYear; - if (weekNumber < 1) { - weekYear = year - 1; - weekNumber = weeksInWeekYear2(weekYear); - } else if (weekNumber > weeksInWeekYear2(year)) { - weekYear = year + 1; - weekNumber = 1; - } else { - weekYear = year; - } - return { weekYear, weekNumber, weekday, ...timeObject2(gregObj) }; - } - function weekToGregorian2(weekData) { - const { weekYear, weekNumber, weekday } = weekData, weekdayOfJan4 = dayOfWeek2(weekYear, 1, 4), yearInDays = daysInYear2(weekYear); - let ordinal = weekNumber * 7 + weekday - weekdayOfJan4 - 3, year; - if (ordinal < 1) { - year = weekYear - 1; - ordinal += daysInYear2(year); - } else if (ordinal > yearInDays) { - year = weekYear + 1; - ordinal -= daysInYear2(weekYear); - } else { - year = weekYear; - } - const { month, day } = uncomputeOrdinal2(year, ordinal); - return { year, month, day, ...timeObject2(weekData) }; - } - function gregorianToOrdinal2(gregData) { - const { year, month, day } = gregData; - const ordinal = computeOrdinal2(year, month, day); - return { year, ordinal, ...timeObject2(gregData) }; - } - function ordinalToGregorian2(ordinalData) { - const { year, ordinal } = ordinalData; - const { month, day } = uncomputeOrdinal2(year, ordinal); - return { year, month, day, ...timeObject2(ordinalData) }; - } - function hasInvalidWeekData2(obj) { - const validYear = isInteger2(obj.weekYear), validWeek = integerBetween2(obj.weekNumber, 1, weeksInWeekYear2(obj.weekYear)), validWeekday = integerBetween2(obj.weekday, 1, 7); - if (!validYear) { - return unitOutOfRange2("weekYear", obj.weekYear); - } else if (!validWeek) { - return unitOutOfRange2("week", obj.week); - } else if (!validWeekday) { - return unitOutOfRange2("weekday", obj.weekday); - } else - return false; - } - function hasInvalidOrdinalData2(obj) { - const validYear = isInteger2(obj.year), validOrdinal = integerBetween2(obj.ordinal, 1, daysInYear2(obj.year)); - if (!validYear) { - return unitOutOfRange2("year", obj.year); - } else if (!validOrdinal) { - return unitOutOfRange2("ordinal", obj.ordinal); - } else - return false; - } - function hasInvalidGregorianData2(obj) { - const validYear = isInteger2(obj.year), validMonth = integerBetween2(obj.month, 1, 12), validDay = integerBetween2(obj.day, 1, daysInMonth2(obj.year, obj.month)); - if (!validYear) { - return unitOutOfRange2("year", obj.year); - } else if (!validMonth) { - return unitOutOfRange2("month", obj.month); - } else if (!validDay) { - return unitOutOfRange2("day", obj.day); - } else - return false; - } - function hasInvalidTimeData2(obj) { - const { hour, minute, second, millisecond } = obj; - const validHour = integerBetween2(hour, 0, 23) || hour === 24 && minute === 0 && second === 0 && millisecond === 0, validMinute = integerBetween2(minute, 0, 59), validSecond = integerBetween2(second, 0, 59), validMillisecond = integerBetween2(millisecond, 0, 999); - if (!validHour) { - return unitOutOfRange2("hour", hour); - } else if (!validMinute) { - return unitOutOfRange2("minute", minute); - } else if (!validSecond) { - return unitOutOfRange2("second", second); - } else if (!validMillisecond) { - return unitOutOfRange2("millisecond", millisecond); - } else - return false; - } - var INVALID5 = "Invalid DateTime"; - var MAX_DATE2 = 864e13; - function unsupportedZone2(zone) { - return new Invalid2("unsupported zone", `the zone "${zone.name}" is not supported`); - } - function possiblyCachedWeekData2(dt) { - if (dt.weekData === null) { - dt.weekData = gregorianToWeek2(dt.c); - } - return dt.weekData; - } - function clone3(inst, alts) { - const current = { - ts: inst.ts, - zone: inst.zone, - c: inst.c, - o: inst.o, - loc: inst.loc, - invalid: inst.invalid - }; - return new DateTime2({ ...current, ...alts, old: current }); - } - function fixOffset2(localTS, o, tz) { - let utcGuess = localTS - o * 60 * 1e3; - const o2 = tz.offset(utcGuess); - if (o === o2) { - return [utcGuess, o]; - } - utcGuess -= (o2 - o) * 60 * 1e3; - const o3 = tz.offset(utcGuess); - if (o2 === o3) { - return [utcGuess, o2]; - } - return [localTS - Math.min(o2, o3) * 60 * 1e3, Math.max(o2, o3)]; - } - function tsToObj2(ts, offset3) { - ts += offset3 * 60 * 1e3; - const d = new Date(ts); - return { - year: d.getUTCFullYear(), - month: d.getUTCMonth() + 1, - day: d.getUTCDate(), - hour: d.getUTCHours(), - minute: d.getUTCMinutes(), - second: d.getUTCSeconds(), - millisecond: d.getUTCMilliseconds() - }; - } - function objToTS2(obj, offset3, zone) { - return fixOffset2(objToLocalTS2(obj), offset3, zone); - } - function adjustTime2(inst, dur) { - const oPre = inst.o, year = inst.c.year + Math.trunc(dur.years), month = inst.c.month + Math.trunc(dur.months) + Math.trunc(dur.quarters) * 3, c = { - ...inst.c, - year, - month, - day: Math.min(inst.c.day, daysInMonth2(year, month)) + Math.trunc(dur.days) + Math.trunc(dur.weeks) * 7 - }, millisToAdd = Duration2.fromObject({ - years: dur.years - Math.trunc(dur.years), - quarters: dur.quarters - Math.trunc(dur.quarters), - months: dur.months - Math.trunc(dur.months), - weeks: dur.weeks - Math.trunc(dur.weeks), - days: dur.days - Math.trunc(dur.days), - hours: dur.hours, - minutes: dur.minutes, - seconds: dur.seconds, - milliseconds: dur.milliseconds - }).as("milliseconds"), localTS = objToLocalTS2(c); - let [ts, o] = fixOffset2(localTS, oPre, inst.zone); - if (millisToAdd !== 0) { - ts += millisToAdd; - o = inst.zone.offset(ts); - } - return { ts, o }; - } - function parseDataToDateTime2(parsed, parsedZone, opts, format, text2, specificOffset) { - const { setZone, zone } = opts; - if (parsed && Object.keys(parsed).length !== 0 || parsedZone) { - const interpretationZone = parsedZone || zone, inst = DateTime2.fromObject(parsed, { - ...opts, - zone: interpretationZone, - specificOffset - }); - return setZone ? inst : inst.setZone(zone); - } else { - return DateTime2.invalid( - new Invalid2("unparsable", `the input "${text2}" can't be parsed as ${format}`) - ); - } - } - function toTechFormat2(dt, format, allowZ = true) { - return dt.isValid ? Formatter2.create(Locale2.create("en-US"), { - allowZ, - forceSimple: true - }).formatDateTimeFromString(dt, format) : null; - } - function toISODate2(o, extended) { - const longFormat = o.c.year > 9999 || o.c.year < 0; - let c = ""; - if (longFormat && o.c.year >= 0) - c += "+"; - c += padStart2(o.c.year, longFormat ? 6 : 4); - if (extended) { - c += "-"; - c += padStart2(o.c.month); - c += "-"; - c += padStart2(o.c.day); - } else { - c += padStart2(o.c.month); - c += padStart2(o.c.day); - } - return c; - } - function toISOTime2(o, extended, suppressSeconds, suppressMilliseconds, includeOffset, extendedZone) { - let c = padStart2(o.c.hour); - if (extended) { - c += ":"; - c += padStart2(o.c.minute); - if (o.c.millisecond !== 0 || o.c.second !== 0 || !suppressSeconds) { - c += ":"; - } - } else { - c += padStart2(o.c.minute); - } - if (o.c.millisecond !== 0 || o.c.second !== 0 || !suppressSeconds) { - c += padStart2(o.c.second); - if (o.c.millisecond !== 0 || !suppressMilliseconds) { - c += "."; - c += padStart2(o.c.millisecond, 3); - } - } - if (includeOffset) { - if (o.isOffsetFixed && o.offset === 0 && !extendedZone) { - c += "Z"; - } else if (o.o < 0) { - c += "-"; - c += padStart2(Math.trunc(-o.o / 60)); - c += ":"; - c += padStart2(Math.trunc(-o.o % 60)); - } else { - c += "+"; - c += padStart2(Math.trunc(o.o / 60)); - c += ":"; - c += padStart2(Math.trunc(o.o % 60)); - } - } - if (extendedZone) { - c += "[" + o.zone.ianaName + "]"; - } - return c; - } - var defaultUnitValues2 = { - month: 1, - day: 1, - hour: 0, - minute: 0, - second: 0, - millisecond: 0 - }; - var defaultWeekUnitValues2 = { - weekNumber: 1, - weekday: 1, - hour: 0, - minute: 0, - second: 0, - millisecond: 0 - }; - var defaultOrdinalUnitValues2 = { - ordinal: 1, - hour: 0, - minute: 0, - second: 0, - millisecond: 0 - }; - var orderedUnits3 = ["year", "month", "day", "hour", "minute", "second", "millisecond"]; - var orderedWeekUnits2 = [ - "weekYear", - "weekNumber", - "weekday", - "hour", - "minute", - "second", - "millisecond" - ]; - var orderedOrdinalUnits2 = ["year", "ordinal", "hour", "minute", "second", "millisecond"]; - function normalizeUnit2(unit) { - const normalized = { - year: "year", - years: "year", - month: "month", - months: "month", - day: "day", - days: "day", - hour: "hour", - hours: "hour", - minute: "minute", - minutes: "minute", - quarter: "quarter", - quarters: "quarter", - second: "second", - seconds: "second", - millisecond: "millisecond", - milliseconds: "millisecond", - weekday: "weekday", - weekdays: "weekday", - weeknumber: "weekNumber", - weeksnumber: "weekNumber", - weeknumbers: "weekNumber", - weekyear: "weekYear", - weekyears: "weekYear", - ordinal: "ordinal" - }[unit.toLowerCase()]; - if (!normalized) - throw new InvalidUnitError2(unit); - return normalized; - } - function quickDT2(obj, opts) { - const zone = normalizeZone2(opts.zone, Settings2.defaultZone), loc = Locale2.fromObject(opts), tsNow = Settings2.now(); - let ts, o; - if (!isUndefined2(obj.year)) { - for (const u of orderedUnits3) { - if (isUndefined2(obj[u])) { - obj[u] = defaultUnitValues2[u]; - } - } - const invalid = hasInvalidGregorianData2(obj) || hasInvalidTimeData2(obj); - if (invalid) { - return DateTime2.invalid(invalid); - } - const offsetProvis = zone.offset(tsNow); - [ts, o] = objToTS2(obj, offsetProvis, zone); - } else { - ts = tsNow; - } - return new DateTime2({ ts, zone, loc, o }); - } - function diffRelative2(start, end, opts) { - const round = isUndefined2(opts.round) ? true : opts.round, format = (c, unit) => { - c = roundTo2(c, round || opts.calendary ? 0 : 2, true); - const formatter = end.loc.clone(opts).relFormatter(opts); - return formatter.format(c, unit); - }, differ = (unit) => { - if (opts.calendary) { - if (!end.hasSame(start, unit)) { - return end.startOf(unit).diff(start.startOf(unit), unit).get(unit); - } else - return 0; - } else { - return end.diff(start, unit).get(unit); - } - }; - if (opts.unit) { - return format(differ(opts.unit), opts.unit); - } - for (const unit of opts.units) { - const count = differ(unit); - if (Math.abs(count) >= 1) { - return format(count, unit); - } - } - return format(start > end ? -0 : 0, opts.units[opts.units.length - 1]); - } - function lastOpts2(argList) { - let opts = {}, args; - if (argList.length > 0 && typeof argList[argList.length - 1] === "object") { - opts = argList[argList.length - 1]; - args = Array.from(argList).slice(0, argList.length - 1); - } else { - args = Array.from(argList); - } - return [opts, args]; - } - var DateTime2 = class _DateTime { - /** - * @access private - */ - constructor(config) { - const zone = config.zone || Settings2.defaultZone; - let invalid = config.invalid || (Number.isNaN(config.ts) ? new Invalid2("invalid input") : null) || (!zone.isValid ? unsupportedZone2(zone) : null); - this.ts = isUndefined2(config.ts) ? Settings2.now() : config.ts; - let c = null, o = null; - if (!invalid) { - const unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone); - if (unchanged) { - [c, o] = [config.old.c, config.old.o]; - } else { - const ot = zone.offset(this.ts); - c = tsToObj2(this.ts, ot); - invalid = Number.isNaN(c.year) ? new Invalid2("invalid input") : null; - c = invalid ? null : c; - o = invalid ? null : ot; - } - } - this._zone = zone; - this.loc = config.loc || Locale2.create(); - this.invalid = invalid; - this.weekData = null; - this.c = c; - this.o = o; - this.isLuxonDateTime = true; - } - // CONSTRUCT - /** - * Create a DateTime for the current instant, in the system's time zone. - * - * Use Settings to override these default values if needed. - * @example DateTime.now().toISO() //~> now in the ISO format - * @return {DateTime} - */ - static now() { - return new _DateTime({}); - } - /** - * Create a local DateTime - * @param {number} [year] - The calendar year. If omitted (as in, call `local()` with no arguments), the current time will be used - * @param {number} [month=1] - The month, 1-indexed - * @param {number} [day=1] - The day of the month, 1-indexed - * @param {number} [hour=0] - The hour of the day, in 24-hour time - * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59 - * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59 - * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999 - * @example DateTime.local() //~> now - * @example DateTime.local({ zone: "America/New_York" }) //~> now, in US east coast time - * @example DateTime.local(2017) //~> 2017-01-01T00:00:00 - * @example DateTime.local(2017, 3) //~> 2017-03-01T00:00:00 - * @example DateTime.local(2017, 3, 12, { locale: "fr" }) //~> 2017-03-12T00:00:00, with a French locale - * @example DateTime.local(2017, 3, 12, 5) //~> 2017-03-12T05:00:00 - * @example DateTime.local(2017, 3, 12, 5, { zone: "utc" }) //~> 2017-03-12T05:00:00, in UTC - * @example DateTime.local(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00 - * @example DateTime.local(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10 - * @example DateTime.local(2017, 3, 12, 5, 45, 10, 765) //~> 2017-03-12T05:45:10.765 - * @return {DateTime} - */ - static local() { - const [opts, args] = lastOpts2(arguments), [year, month, day, hour, minute, second, millisecond] = args; - return quickDT2({ year, month, day, hour, minute, second, millisecond }, opts); - } - /** - * Create a DateTime in UTC - * @param {number} [year] - The calendar year. If omitted (as in, call `utc()` with no arguments), the current time will be used - * @param {number} [month=1] - The month, 1-indexed - * @param {number} [day=1] - The day of the month - * @param {number} [hour=0] - The hour of the day, in 24-hour time - * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59 - * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59 - * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999 - * @param {Object} options - configuration options for the DateTime - * @param {string} [options.locale] - a locale to set on the resulting DateTime instance - * @param {string} [options.outputCalendar] - the output calendar to set on the resulting DateTime instance - * @param {string} [options.numberingSystem] - the numbering system to set on the resulting DateTime instance - * @example DateTime.utc() //~> now - * @example DateTime.utc(2017) //~> 2017-01-01T00:00:00Z - * @example DateTime.utc(2017, 3) //~> 2017-03-01T00:00:00Z - * @example DateTime.utc(2017, 3, 12) //~> 2017-03-12T00:00:00Z - * @example DateTime.utc(2017, 3, 12, 5) //~> 2017-03-12T05:00:00Z - * @example DateTime.utc(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00Z - * @example DateTime.utc(2017, 3, 12, 5, 45, { locale: "fr" }) //~> 2017-03-12T05:45:00Z with a French locale - * @example DateTime.utc(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10Z - * @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765, { locale: "fr" }) //~> 2017-03-12T05:45:10.765Z with a French locale - * @return {DateTime} - */ - static utc() { - const [opts, args] = lastOpts2(arguments), [year, month, day, hour, minute, second, millisecond] = args; - opts.zone = FixedOffsetZone2.utcInstance; - return quickDT2({ year, month, day, hour, minute, second, millisecond }, opts); - } - /** - * Create a DateTime from a JavaScript Date object. Uses the default zone. - * @param {Date} date - a JavaScript Date object - * @param {Object} options - configuration options for the DateTime - * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into - * @return {DateTime} - */ - static fromJSDate(date, options = {}) { - const ts = isDate2(date) ? date.valueOf() : NaN; - if (Number.isNaN(ts)) { - return _DateTime.invalid("invalid input"); - } - const zoneToUse = normalizeZone2(options.zone, Settings2.defaultZone); - if (!zoneToUse.isValid) { - return _DateTime.invalid(unsupportedZone2(zoneToUse)); - } - return new _DateTime({ - ts, - zone: zoneToUse, - loc: Locale2.fromObject(options) - }); - } - /** - * Create a DateTime from a number of milliseconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone. - * @param {number} milliseconds - a number of milliseconds since 1970 UTC - * @param {Object} options - configuration options for the DateTime - * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into - * @param {string} [options.locale] - a locale to set on the resulting DateTime instance - * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance - * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance - * @return {DateTime} - */ - static fromMillis(milliseconds, options = {}) { - if (!isNumber2(milliseconds)) { - throw new InvalidArgumentError2( - `fromMillis requires a numerical input, but received a ${typeof milliseconds} with value ${milliseconds}` - ); - } else if (milliseconds < -MAX_DATE2 || milliseconds > MAX_DATE2) { - return _DateTime.invalid("Timestamp out of range"); - } else { - return new _DateTime({ - ts: milliseconds, - zone: normalizeZone2(options.zone, Settings2.defaultZone), - loc: Locale2.fromObject(options) - }); - } - } - /** - * Create a DateTime from a number of seconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone. - * @param {number} seconds - a number of seconds since 1970 UTC - * @param {Object} options - configuration options for the DateTime - * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into - * @param {string} [options.locale] - a locale to set on the resulting DateTime instance - * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance - * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance - * @return {DateTime} - */ - static fromSeconds(seconds, options = {}) { - if (!isNumber2(seconds)) { - throw new InvalidArgumentError2("fromSeconds requires a numerical input"); - } else { - return new _DateTime({ - ts: seconds * 1e3, - zone: normalizeZone2(options.zone, Settings2.defaultZone), - loc: Locale2.fromObject(options) - }); - } - } - /** - * Create a DateTime from a JavaScript object with keys like 'year' and 'hour' with reasonable defaults. - * @param {Object} obj - the object to create the DateTime from - * @param {number} obj.year - a year, such as 1987 - * @param {number} obj.month - a month, 1-12 - * @param {number} obj.day - a day of the month, 1-31, depending on the month - * @param {number} obj.ordinal - day of the year, 1-365 or 366 - * @param {number} obj.weekYear - an ISO week year - * @param {number} obj.weekNumber - an ISO week number, between 1 and 52 or 53, depending on the year - * @param {number} obj.weekday - an ISO weekday, 1-7, where 1 is Monday and 7 is Sunday - * @param {number} obj.hour - hour of the day, 0-23 - * @param {number} obj.minute - minute of the hour, 0-59 - * @param {number} obj.second - second of the minute, 0-59 - * @param {number} obj.millisecond - millisecond of the second, 0-999 - * @param {Object} opts - options for creating this DateTime - * @param {string|Zone} [opts.zone='local'] - interpret the numbers in the context of a particular zone. Can take any value taken as the first argument to setZone() - * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance - * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance - * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance - * @example DateTime.fromObject({ year: 1982, month: 5, day: 25}).toISODate() //=> '1982-05-25' - * @example DateTime.fromObject({ year: 1982 }).toISODate() //=> '1982-01-01' - * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }) //~> today at 10:26:06 - * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'utc' }), - * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'local' }) - * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'America/New_York' }) - * @example DateTime.fromObject({ weekYear: 2016, weekNumber: 2, weekday: 3 }).toISODate() //=> '2016-01-13' - * @return {DateTime} - */ - static fromObject(obj, opts = {}) { - obj = obj || {}; - const zoneToUse = normalizeZone2(opts.zone, Settings2.defaultZone); - if (!zoneToUse.isValid) { - return _DateTime.invalid(unsupportedZone2(zoneToUse)); - } - const tsNow = Settings2.now(), offsetProvis = !isUndefined2(opts.specificOffset) ? opts.specificOffset : zoneToUse.offset(tsNow), normalized = normalizeObject2(obj, normalizeUnit2), containsOrdinal = !isUndefined2(normalized.ordinal), containsGregorYear = !isUndefined2(normalized.year), containsGregorMD = !isUndefined2(normalized.month) || !isUndefined2(normalized.day), containsGregor = containsGregorYear || containsGregorMD, definiteWeekDef = normalized.weekYear || normalized.weekNumber, loc = Locale2.fromObject(opts); - if ((containsGregor || containsOrdinal) && definiteWeekDef) { - throw new ConflictingSpecificationError2( - "Can't mix weekYear/weekNumber units with year/month/day or ordinals" - ); - } - if (containsGregorMD && containsOrdinal) { - throw new ConflictingSpecificationError2("Can't mix ordinal dates with month/day"); - } - const useWeekData = definiteWeekDef || normalized.weekday && !containsGregor; - let units, defaultValues, objNow = tsToObj2(tsNow, offsetProvis); - if (useWeekData) { - units = orderedWeekUnits2; - defaultValues = defaultWeekUnitValues2; - objNow = gregorianToWeek2(objNow); - } else if (containsOrdinal) { - units = orderedOrdinalUnits2; - defaultValues = defaultOrdinalUnitValues2; - objNow = gregorianToOrdinal2(objNow); - } else { - units = orderedUnits3; - defaultValues = defaultUnitValues2; - } - let foundFirst = false; - for (const u of units) { - const v = normalized[u]; - if (!isUndefined2(v)) { - foundFirst = true; - } else if (foundFirst) { - normalized[u] = defaultValues[u]; - } else { - normalized[u] = objNow[u]; - } - } - const higherOrderInvalid = useWeekData ? hasInvalidWeekData2(normalized) : containsOrdinal ? hasInvalidOrdinalData2(normalized) : hasInvalidGregorianData2(normalized), invalid = higherOrderInvalid || hasInvalidTimeData2(normalized); - if (invalid) { - return _DateTime.invalid(invalid); - } - const gregorian = useWeekData ? weekToGregorian2(normalized) : containsOrdinal ? ordinalToGregorian2(normalized) : normalized, [tsFinal, offsetFinal] = objToTS2(gregorian, offsetProvis, zoneToUse), inst = new _DateTime({ - ts: tsFinal, - zone: zoneToUse, - o: offsetFinal, - loc - }); - if (normalized.weekday && containsGregor && obj.weekday !== inst.weekday) { - return _DateTime.invalid( - "mismatched weekday", - `you can't specify both a weekday of ${normalized.weekday} and a date of ${inst.toISO()}` - ); - } - return inst; - } - /** - * Create a DateTime from an ISO 8601 string - * @param {string} text - the ISO string - * @param {Object} opts - options to affect the creation - * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the time to this zone - * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one - * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance - * @param {string} [opts.outputCalendar] - the output calendar to set on the resulting DateTime instance - * @param {string} [opts.numberingSystem] - the numbering system to set on the resulting DateTime instance - * @example DateTime.fromISO('2016-05-25T09:08:34.123') - * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00') - * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00', {setZone: true}) - * @example DateTime.fromISO('2016-05-25T09:08:34.123', {zone: 'utc'}) - * @example DateTime.fromISO('2016-W05-4') - * @return {DateTime} - */ - static fromISO(text2, opts = {}) { - const [vals, parsedZone] = parseISODate2(text2); - return parseDataToDateTime2(vals, parsedZone, opts, "ISO 8601", text2); - } - /** - * Create a DateTime from an RFC 2822 string - * @param {string} text - the RFC 2822 string - * @param {Object} opts - options to affect the creation - * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since the offset is always specified in the string itself, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in. - * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one - * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance - * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance - * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance - * @example DateTime.fromRFC2822('25 Nov 2016 13:23:12 GMT') - * @example DateTime.fromRFC2822('Fri, 25 Nov 2016 13:23:12 +0600') - * @example DateTime.fromRFC2822('25 Nov 2016 13:23 Z') - * @return {DateTime} - */ - static fromRFC2822(text2, opts = {}) { - const [vals, parsedZone] = parseRFC2822Date2(text2); - return parseDataToDateTime2(vals, parsedZone, opts, "RFC 2822", text2); - } - /** - * Create a DateTime from an HTTP header date - * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1 - * @param {string} text - the HTTP header date - * @param {Object} opts - options to affect the creation - * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since HTTP dates are always in UTC, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in. - * @param {boolean} [opts.setZone=false] - override the zone with the fixed-offset zone specified in the string. For HTTP dates, this is always UTC, so this option is equivalent to setting the `zone` option to 'utc', but this option is included for consistency with similar methods. - * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance - * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance - * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance - * @example DateTime.fromHTTP('Sun, 06 Nov 1994 08:49:37 GMT') - * @example DateTime.fromHTTP('Sunday, 06-Nov-94 08:49:37 GMT') - * @example DateTime.fromHTTP('Sun Nov 6 08:49:37 1994') - * @return {DateTime} - */ - static fromHTTP(text2, opts = {}) { - const [vals, parsedZone] = parseHTTPDate2(text2); - return parseDataToDateTime2(vals, parsedZone, opts, "HTTP", opts); - } - /** - * Create a DateTime from an input string and format string. - * Defaults to en-US if no locale has been specified, regardless of the system's locale. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/parsing?id=table-of-tokens). - * @param {string} text - the string to parse - * @param {string} fmt - the format the string is expected to be in (see the link below for the formats) - * @param {Object} opts - options to affect the creation - * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone - * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one - * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale - * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system - * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance - * @return {DateTime} - */ - static fromFormat(text2, fmt, opts = {}) { - if (isUndefined2(text2) || isUndefined2(fmt)) { - throw new InvalidArgumentError2("fromFormat requires an input string and a format"); - } - const { locale = null, numberingSystem = null } = opts, localeToUse = Locale2.fromOpts({ - locale, - numberingSystem, - defaultToEN: true - }), [vals, parsedZone, specificOffset, invalid] = parseFromTokens2(localeToUse, text2, fmt); - if (invalid) { - return _DateTime.invalid(invalid); - } else { - return parseDataToDateTime2(vals, parsedZone, opts, `format ${fmt}`, text2, specificOffset); - } - } - /** - * @deprecated use fromFormat instead - */ - static fromString(text2, fmt, opts = {}) { - return _DateTime.fromFormat(text2, fmt, opts); - } - /** - * Create a DateTime from a SQL date, time, or datetime - * Defaults to en-US if no locale has been specified, regardless of the system's locale - * @param {string} text - the string to parse - * @param {Object} opts - options to affect the creation - * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone - * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one - * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale - * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system - * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance - * @example DateTime.fromSQL('2017-05-15') - * @example DateTime.fromSQL('2017-05-15 09:12:34') - * @example DateTime.fromSQL('2017-05-15 09:12:34.342') - * @example DateTime.fromSQL('2017-05-15 09:12:34.342+06:00') - * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles') - * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles', { setZone: true }) - * @example DateTime.fromSQL('2017-05-15 09:12:34.342', { zone: 'America/Los_Angeles' }) - * @example DateTime.fromSQL('09:12:34.342') - * @return {DateTime} - */ - static fromSQL(text2, opts = {}) { - const [vals, parsedZone] = parseSQL2(text2); - return parseDataToDateTime2(vals, parsedZone, opts, "SQL", text2); - } - /** - * Create an invalid DateTime. - * @param {string} reason - simple string of why this DateTime is invalid. Should not contain parameters or anything else data-dependent. - * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information - * @return {DateTime} - */ - static invalid(reason, explanation = null) { - if (!reason) { - throw new InvalidArgumentError2("need to specify a reason the DateTime is invalid"); - } - const invalid = reason instanceof Invalid2 ? reason : new Invalid2(reason, explanation); - if (Settings2.throwOnInvalid) { - throw new InvalidDateTimeError2(invalid); - } else { - return new _DateTime({ invalid }); - } - } - /** - * Check if an object is an instance of DateTime. Works across context boundaries - * @param {object} o - * @return {boolean} - */ - static isDateTime(o) { - return o && o.isLuxonDateTime || false; - } - /** - * Produce the format string for a set of options - * @param formatOpts - * @param localeOpts - * @returns {string} - */ - static parseFormatForOpts(formatOpts, localeOpts = {}) { - const tokenList = formatOptsToTokens2(formatOpts, Locale2.fromObject(localeOpts)); - return !tokenList ? null : tokenList.map((t) => t ? t.val : null).join(""); - } - /** - * Produce the the fully expanded format token for the locale - * Does NOT quote characters, so quoted tokens will not round trip correctly - * @param fmt - * @param localeOpts - * @returns {string} - */ - static expandFormat(fmt, localeOpts = {}) { - const expanded = expandMacroTokens2(Formatter2.parseFormat(fmt), Locale2.fromObject(localeOpts)); - return expanded.map((t) => t.val).join(""); - } - // INFO - /** - * Get the value of unit. - * @param {string} unit - a unit such as 'minute' or 'day' - * @example DateTime.local(2017, 7, 4).get('month'); //=> 7 - * @example DateTime.local(2017, 7, 4).get('day'); //=> 4 - * @return {number} - */ - get(unit) { - return this[unit]; - } - /** - * Returns whether the DateTime is valid. Invalid DateTimes occur when: - * * The DateTime was created from invalid calendar information, such as the 13th month or February 30 - * * The DateTime was created by an operation on another invalid date - * @type {boolean} - */ - get isValid() { - return this.invalid === null; - } - /** - * Returns an error code if this DateTime is invalid, or null if the DateTime is valid - * @type {string} - */ - get invalidReason() { - return this.invalid ? this.invalid.reason : null; - } - /** - * Returns an explanation of why this DateTime became invalid, or null if the DateTime is valid - * @type {string} - */ - get invalidExplanation() { - return this.invalid ? this.invalid.explanation : null; - } - /** - * Get the locale of a DateTime, such 'en-GB'. The locale is used when formatting the DateTime - * - * @type {string} - */ - get locale() { - return this.isValid ? this.loc.locale : null; - } - /** - * Get the numbering system of a DateTime, such 'beng'. The numbering system is used when formatting the DateTime - * - * @type {string} - */ - get numberingSystem() { - return this.isValid ? this.loc.numberingSystem : null; - } - /** - * Get the output calendar of a DateTime, such 'islamic'. The output calendar is used when formatting the DateTime - * - * @type {string} - */ - get outputCalendar() { - return this.isValid ? this.loc.outputCalendar : null; - } - /** - * Get the time zone associated with this DateTime. - * @type {Zone} - */ - get zone() { - return this._zone; - } - /** - * Get the name of the time zone. - * @type {string} - */ - get zoneName() { - return this.isValid ? this.zone.name : null; - } - /** - * Get the year - * @example DateTime.local(2017, 5, 25).year //=> 2017 - * @type {number} - */ - get year() { - return this.isValid ? this.c.year : NaN; - } - /** - * Get the quarter - * @example DateTime.local(2017, 5, 25).quarter //=> 2 - * @type {number} - */ - get quarter() { - return this.isValid ? Math.ceil(this.c.month / 3) : NaN; - } - /** - * Get the month (1-12). - * @example DateTime.local(2017, 5, 25).month //=> 5 - * @type {number} - */ - get month() { - return this.isValid ? this.c.month : NaN; - } - /** - * Get the day of the month (1-30ish). - * @example DateTime.local(2017, 5, 25).day //=> 25 - * @type {number} - */ - get day() { - return this.isValid ? this.c.day : NaN; - } - /** - * Get the hour of the day (0-23). - * @example DateTime.local(2017, 5, 25, 9).hour //=> 9 - * @type {number} - */ - get hour() { - return this.isValid ? this.c.hour : NaN; - } - /** - * Get the minute of the hour (0-59). - * @example DateTime.local(2017, 5, 25, 9, 30).minute //=> 30 - * @type {number} - */ - get minute() { - return this.isValid ? this.c.minute : NaN; - } - /** - * Get the second of the minute (0-59). - * @example DateTime.local(2017, 5, 25, 9, 30, 52).second //=> 52 - * @type {number} - */ - get second() { - return this.isValid ? this.c.second : NaN; - } - /** - * Get the millisecond of the second (0-999). - * @example DateTime.local(2017, 5, 25, 9, 30, 52, 654).millisecond //=> 654 - * @type {number} - */ - get millisecond() { - return this.isValid ? this.c.millisecond : NaN; - } - /** - * Get the week year - * @see https://en.wikipedia.org/wiki/ISO_week_date - * @example DateTime.local(2014, 12, 31).weekYear //=> 2015 - * @type {number} - */ - get weekYear() { - return this.isValid ? possiblyCachedWeekData2(this).weekYear : NaN; - } - /** - * Get the week number of the week year (1-52ish). - * @see https://en.wikipedia.org/wiki/ISO_week_date - * @example DateTime.local(2017, 5, 25).weekNumber //=> 21 - * @type {number} - */ - get weekNumber() { - return this.isValid ? possiblyCachedWeekData2(this).weekNumber : NaN; - } - /** - * Get the day of the week. - * 1 is Monday and 7 is Sunday - * @see https://en.wikipedia.org/wiki/ISO_week_date - * @example DateTime.local(2014, 11, 31).weekday //=> 4 - * @type {number} - */ - get weekday() { - return this.isValid ? possiblyCachedWeekData2(this).weekday : NaN; - } - /** - * Get the ordinal (meaning the day of the year) - * @example DateTime.local(2017, 5, 25).ordinal //=> 145 - * @type {number|DateTime} - */ - get ordinal() { - return this.isValid ? gregorianToOrdinal2(this.c).ordinal : NaN; - } - /** - * Get the human readable short month name, such as 'Oct'. - * Defaults to the system's locale if no locale has been specified - * @example DateTime.local(2017, 10, 30).monthShort //=> Oct - * @type {string} - */ - get monthShort() { - return this.isValid ? Info2.months("short", { locObj: this.loc })[this.month - 1] : null; - } - /** - * Get the human readable long month name, such as 'October'. - * Defaults to the system's locale if no locale has been specified - * @example DateTime.local(2017, 10, 30).monthLong //=> October - * @type {string} - */ - get monthLong() { - return this.isValid ? Info2.months("long", { locObj: this.loc })[this.month - 1] : null; - } - /** - * Get the human readable short weekday, such as 'Mon'. - * Defaults to the system's locale if no locale has been specified - * @example DateTime.local(2017, 10, 30).weekdayShort //=> Mon - * @type {string} - */ - get weekdayShort() { - return this.isValid ? Info2.weekdays("short", { locObj: this.loc })[this.weekday - 1] : null; - } - /** - * Get the human readable long weekday, such as 'Monday'. - * Defaults to the system's locale if no locale has been specified - * @example DateTime.local(2017, 10, 30).weekdayLong //=> Monday - * @type {string} - */ - get weekdayLong() { - return this.isValid ? Info2.weekdays("long", { locObj: this.loc })[this.weekday - 1] : null; - } - /** - * Get the UTC offset of this DateTime in minutes - * @example DateTime.now().offset //=> -240 - * @example DateTime.utc().offset //=> 0 - * @type {number} - */ - get offset() { - return this.isValid ? +this.o : NaN; - } - /** - * Get the short human name for the zone's current offset, for example "EST" or "EDT". - * Defaults to the system's locale if no locale has been specified - * @type {string} - */ - get offsetNameShort() { - if (this.isValid) { - return this.zone.offsetName(this.ts, { - format: "short", - locale: this.locale - }); - } else { - return null; - } - } - /** - * Get the long human name for the zone's current offset, for example "Eastern Standard Time" or "Eastern Daylight Time". - * Defaults to the system's locale if no locale has been specified - * @type {string} - */ - get offsetNameLong() { - if (this.isValid) { - return this.zone.offsetName(this.ts, { - format: "long", - locale: this.locale - }); - } else { - return null; - } - } - /** - * Get whether this zone's offset ever changes, as in a DST. - * @type {boolean} - */ - get isOffsetFixed() { - return this.isValid ? this.zone.isUniversal : null; - } - /** - * Get whether the DateTime is in a DST. - * @type {boolean} - */ - get isInDST() { - if (this.isOffsetFixed) { - return false; - } else { - return this.offset > this.set({ month: 1, day: 1 }).offset || this.offset > this.set({ month: 5 }).offset; - } - } - /** - * Get those DateTimes which have the same local time as this DateTime, but a different offset from UTC - * in this DateTime's zone. During DST changes local time can be ambiguous, for example - * `2023-10-29T02:30:00` in `Europe/Berlin` can have offset `+01:00` or `+02:00`. - * This method will return both possible DateTimes if this DateTime's local time is ambiguous. - * @returns {DateTime[]} - */ - getPossibleOffsets() { - if (!this.isValid || this.isOffsetFixed) { - return [this]; - } - const dayMs = 864e5; - const minuteMs = 6e4; - const localTS = objToLocalTS2(this.c); - const oEarlier = this.zone.offset(localTS - dayMs); - const oLater = this.zone.offset(localTS + dayMs); - const o1 = this.zone.offset(localTS - oEarlier * minuteMs); - const o2 = this.zone.offset(localTS - oLater * minuteMs); - if (o1 === o2) { - return [this]; - } - const ts1 = localTS - o1 * minuteMs; - const ts2 = localTS - o2 * minuteMs; - const c1 = tsToObj2(ts1, o1); - const c2 = tsToObj2(ts2, o2); - if (c1.hour === c2.hour && c1.minute === c2.minute && c1.second === c2.second && c1.millisecond === c2.millisecond) { - return [clone3(this, { ts: ts1 }), clone3(this, { ts: ts2 })]; - } - return [this]; - } - /** - * Returns true if this DateTime is in a leap year, false otherwise - * @example DateTime.local(2016).isInLeapYear //=> true - * @example DateTime.local(2013).isInLeapYear //=> false - * @type {boolean} - */ - get isInLeapYear() { - return isLeapYear2(this.year); - } - /** - * Returns the number of days in this DateTime's month - * @example DateTime.local(2016, 2).daysInMonth //=> 29 - * @example DateTime.local(2016, 3).daysInMonth //=> 31 - * @type {number} - */ - get daysInMonth() { - return daysInMonth2(this.year, this.month); - } - /** - * Returns the number of days in this DateTime's year - * @example DateTime.local(2016).daysInYear //=> 366 - * @example DateTime.local(2013).daysInYear //=> 365 - * @type {number} - */ - get daysInYear() { - return this.isValid ? daysInYear2(this.year) : NaN; - } - /** - * Returns the number of weeks in this DateTime's year - * @see https://en.wikipedia.org/wiki/ISO_week_date - * @example DateTime.local(2004).weeksInWeekYear //=> 53 - * @example DateTime.local(2013).weeksInWeekYear //=> 52 - * @type {number} - */ - get weeksInWeekYear() { - return this.isValid ? weeksInWeekYear2(this.weekYear) : NaN; - } - /** - * Returns the resolved Intl options for this DateTime. - * This is useful in understanding the behavior of formatting methods - * @param {Object} opts - the same options as toLocaleString - * @return {Object} - */ - resolvedLocaleOptions(opts = {}) { - const { locale, numberingSystem, calendar } = Formatter2.create( - this.loc.clone(opts), - opts - ).resolvedOptions(this); - return { locale, numberingSystem, outputCalendar: calendar }; - } - // TRANSFORM - /** - * "Set" the DateTime's zone to UTC. Returns a newly-constructed DateTime. - * - * Equivalent to {@link DateTime#setZone}('utc') - * @param {number} [offset=0] - optionally, an offset from UTC in minutes - * @param {Object} [opts={}] - options to pass to `setZone()` - * @return {DateTime} - */ - toUTC(offset3 = 0, opts = {}) { - return this.setZone(FixedOffsetZone2.instance(offset3), opts); - } - /** - * "Set" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime. - * - * Equivalent to `setZone('local')` - * @return {DateTime} - */ - toLocal() { - return this.setZone(Settings2.defaultZone); - } - /** - * "Set" the DateTime's zone to specified zone. Returns a newly-constructed DateTime. - * - * By default, the setter keeps the underlying time the same (as in, the same timestamp), but the new instance will report different local times and consider DSTs when making computations, as with {@link DateTime#plus}. You may wish to use {@link DateTime#toLocal} and {@link DateTime#toUTC} which provide simple convenience wrappers for commonly used zones. - * @param {string|Zone} [zone='local'] - a zone identifier. As a string, that can be any IANA zone supported by the host environment, or a fixed-offset name of the form 'UTC+3', or the strings 'local' or 'utc'. You may also supply an instance of a {@link DateTime#Zone} class. - * @param {Object} opts - options - * @param {boolean} [opts.keepLocalTime=false] - If true, adjust the underlying time so that the local time stays the same, but in the target zone. You should rarely need this. - * @return {DateTime} - */ - setZone(zone, { keepLocalTime = false, keepCalendarTime = false } = {}) { - zone = normalizeZone2(zone, Settings2.defaultZone); - if (zone.equals(this.zone)) { - return this; - } else if (!zone.isValid) { - return _DateTime.invalid(unsupportedZone2(zone)); - } else { - let newTS = this.ts; - if (keepLocalTime || keepCalendarTime) { - const offsetGuess = zone.offset(this.ts); - const asObj = this.toObject(); - [newTS] = objToTS2(asObj, offsetGuess, zone); - } - return clone3(this, { ts: newTS, zone }); - } - } - /** - * "Set" the locale, numberingSystem, or outputCalendar. Returns a newly-constructed DateTime. - * @param {Object} properties - the properties to set - * @example DateTime.local(2017, 5, 25).reconfigure({ locale: 'en-GB' }) - * @return {DateTime} - */ - reconfigure({ locale, numberingSystem, outputCalendar } = {}) { - const loc = this.loc.clone({ locale, numberingSystem, outputCalendar }); - return clone3(this, { loc }); - } - /** - * "Set" the locale. Returns a newly-constructed DateTime. - * Just a convenient alias for reconfigure({ locale }) - * @example DateTime.local(2017, 5, 25).setLocale('en-GB') - * @return {DateTime} - */ - setLocale(locale) { - return this.reconfigure({ locale }); - } - /** - * "Set" the values of specified units. Returns a newly-constructed DateTime. - * You can only set units with this method; for "setting" metadata, see {@link DateTime#reconfigure} and {@link DateTime#setZone}. - * @param {Object} values - a mapping of units to numbers - * @example dt.set({ year: 2017 }) - * @example dt.set({ hour: 8, minute: 30 }) - * @example dt.set({ weekday: 5 }) - * @example dt.set({ year: 2005, ordinal: 234 }) - * @return {DateTime} - */ - set(values) { - if (!this.isValid) - return this; - const normalized = normalizeObject2(values, normalizeUnit2), settingWeekStuff = !isUndefined2(normalized.weekYear) || !isUndefined2(normalized.weekNumber) || !isUndefined2(normalized.weekday), containsOrdinal = !isUndefined2(normalized.ordinal), containsGregorYear = !isUndefined2(normalized.year), containsGregorMD = !isUndefined2(normalized.month) || !isUndefined2(normalized.day), containsGregor = containsGregorYear || containsGregorMD, definiteWeekDef = normalized.weekYear || normalized.weekNumber; - if ((containsGregor || containsOrdinal) && definiteWeekDef) { - throw new ConflictingSpecificationError2( - "Can't mix weekYear/weekNumber units with year/month/day or ordinals" - ); - } - if (containsGregorMD && containsOrdinal) { - throw new ConflictingSpecificationError2("Can't mix ordinal dates with month/day"); - } - let mixed; - if (settingWeekStuff) { - mixed = weekToGregorian2({ ...gregorianToWeek2(this.c), ...normalized }); - } else if (!isUndefined2(normalized.ordinal)) { - mixed = ordinalToGregorian2({ ...gregorianToOrdinal2(this.c), ...normalized }); - } else { - mixed = { ...this.toObject(), ...normalized }; - if (isUndefined2(normalized.day)) { - mixed.day = Math.min(daysInMonth2(mixed.year, mixed.month), mixed.day); - } - } - const [ts, o] = objToTS2(mixed, this.o, this.zone); - return clone3(this, { ts, o }); - } - /** - * Add a period of time to this DateTime and return the resulting DateTime - * - * Adding hours, minutes, seconds, or milliseconds increases the timestamp by the right number of milliseconds. Adding days, months, or years shifts the calendar, accounting for DSTs and leap years along the way. Thus, `dt.plus({ hours: 24 })` may result in a different time than `dt.plus({ days: 1 })` if there's a DST shift in between. - * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject() - * @example DateTime.now().plus(123) //~> in 123 milliseconds - * @example DateTime.now().plus({ minutes: 15 }) //~> in 15 minutes - * @example DateTime.now().plus({ days: 1 }) //~> this time tomorrow - * @example DateTime.now().plus({ days: -1 }) //~> this time yesterday - * @example DateTime.now().plus({ hours: 3, minutes: 13 }) //~> in 3 hr, 13 min - * @example DateTime.now().plus(Duration.fromObject({ hours: 3, minutes: 13 })) //~> in 3 hr, 13 min - * @return {DateTime} - */ - plus(duration) { - if (!this.isValid) - return this; - const dur = Duration2.fromDurationLike(duration); - return clone3(this, adjustTime2(this, dur)); - } - /** - * Subtract a period of time to this DateTime and return the resulting DateTime - * See {@link DateTime#plus} - * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject() - @return {DateTime} - */ - minus(duration) { - if (!this.isValid) - return this; - const dur = Duration2.fromDurationLike(duration).negate(); - return clone3(this, adjustTime2(this, dur)); - } - /** - * "Set" this DateTime to the beginning of a unit of time. - * @param {string} unit - The unit to go to the beginning of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'. - * @example DateTime.local(2014, 3, 3).startOf('month').toISODate(); //=> '2014-03-01' - * @example DateTime.local(2014, 3, 3).startOf('year').toISODate(); //=> '2014-01-01' - * @example DateTime.local(2014, 3, 3).startOf('week').toISODate(); //=> '2014-03-03', weeks always start on Mondays - * @example DateTime.local(2014, 3, 3, 5, 30).startOf('day').toISOTime(); //=> '00:00.000-05:00' - * @example DateTime.local(2014, 3, 3, 5, 30).startOf('hour').toISOTime(); //=> '05:00:00.000-05:00' - * @return {DateTime} - */ - startOf(unit) { - if (!this.isValid) - return this; - const o = {}, normalizedUnit = Duration2.normalizeUnit(unit); - switch (normalizedUnit) { - case "years": - o.month = 1; - case "quarters": - case "months": - o.day = 1; - case "weeks": - case "days": - o.hour = 0; - case "hours": - o.minute = 0; - case "minutes": - o.second = 0; - case "seconds": - o.millisecond = 0; - break; - } - if (normalizedUnit === "weeks") { - o.weekday = 1; - } - if (normalizedUnit === "quarters") { - const q = Math.ceil(this.month / 3); - o.month = (q - 1) * 3 + 1; - } - return this.set(o); - } - /** - * "Set" this DateTime to the end (meaning the last millisecond) of a unit of time - * @param {string} unit - The unit to go to the end of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'. - * @example DateTime.local(2014, 3, 3).endOf('month').toISO(); //=> '2014-03-31T23:59:59.999-05:00' - * @example DateTime.local(2014, 3, 3).endOf('year').toISO(); //=> '2014-12-31T23:59:59.999-05:00' - * @example DateTime.local(2014, 3, 3).endOf('week').toISO(); // => '2014-03-09T23:59:59.999-05:00', weeks start on Mondays - * @example DateTime.local(2014, 3, 3, 5, 30).endOf('day').toISO(); //=> '2014-03-03T23:59:59.999-05:00' - * @example DateTime.local(2014, 3, 3, 5, 30).endOf('hour').toISO(); //=> '2014-03-03T05:59:59.999-05:00' - * @return {DateTime} - */ - endOf(unit) { - return this.isValid ? this.plus({ [unit]: 1 }).startOf(unit).minus(1) : this; - } - // OUTPUT - /** - * Returns a string representation of this DateTime formatted according to the specified format string. - * **You may not want this.** See {@link DateTime#toLocaleString} for a more flexible formatting tool. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/formatting?id=table-of-tokens). - * Defaults to en-US if no locale has been specified, regardless of the system's locale. - * @param {string} fmt - the format string - * @param {Object} opts - opts to override the configuration options on this DateTime - * @example DateTime.now().toFormat('yyyy LLL dd') //=> '2017 Apr 22' - * @example DateTime.now().setLocale('fr').toFormat('yyyy LLL dd') //=> '2017 avr. 22' - * @example DateTime.now().toFormat('yyyy LLL dd', { locale: "fr" }) //=> '2017 avr. 22' - * @example DateTime.now().toFormat("HH 'hours and' mm 'minutes'") //=> '20 hours and 55 minutes' - * @return {string} - */ - toFormat(fmt, opts = {}) { - return this.isValid ? Formatter2.create(this.loc.redefaultToEN(opts)).formatDateTimeFromString(this, fmt) : INVALID5; - } - /** - * Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`. - * The exact behavior of this method is browser-specific, but in general it will return an appropriate representation - * of the DateTime in the assigned locale. - * Defaults to the system's locale if no locale has been specified - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat - * @param formatOpts {Object} - Intl.DateTimeFormat constructor options and configuration options - * @param {Object} opts - opts to override the configuration options on this DateTime - * @example DateTime.now().toLocaleString(); //=> 4/20/2017 - * @example DateTime.now().setLocale('en-gb').toLocaleString(); //=> '20/04/2017' - * @example DateTime.now().toLocaleString(DateTime.DATE_FULL); //=> 'April 20, 2017' - * @example DateTime.now().toLocaleString(DateTime.DATE_FULL, { locale: 'fr' }); //=> '28 août 2022' - * @example DateTime.now().toLocaleString(DateTime.TIME_SIMPLE); //=> '11:32 AM' - * @example DateTime.now().toLocaleString(DateTime.DATETIME_SHORT); //=> '4/20/2017, 11:32 AM' - * @example DateTime.now().toLocaleString({ weekday: 'long', month: 'long', day: '2-digit' }); //=> 'Thursday, April 20' - * @example DateTime.now().toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> 'Thu, Apr 20, 11:27 AM' - * @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); //=> '11:32' - * @return {string} - */ - toLocaleString(formatOpts = DATE_SHORT2, opts = {}) { - return this.isValid ? Formatter2.create(this.loc.clone(opts), formatOpts).formatDateTime(this) : INVALID5; - } - /** - * Returns an array of format "parts", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output. - * Defaults to the system's locale if no locale has been specified - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/formatToParts - * @param opts {Object} - Intl.DateTimeFormat constructor options, same as `toLocaleString`. - * @example DateTime.now().toLocaleParts(); //=> [ - * //=> { type: 'day', value: '25' }, - * //=> { type: 'literal', value: '/' }, - * //=> { type: 'month', value: '05' }, - * //=> { type: 'literal', value: '/' }, - * //=> { type: 'year', value: '1982' } - * //=> ] - */ - toLocaleParts(opts = {}) { - return this.isValid ? Formatter2.create(this.loc.clone(opts), opts).formatDateTimeParts(this) : []; - } - /** - * Returns an ISO 8601-compliant string representation of this DateTime - * @param {Object} opts - options - * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0 - * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0 - * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00' - * @param {boolean} [opts.extendedZone=false] - add the time zone format extension - * @param {string} [opts.format='extended'] - choose between the basic and extended format - * @example DateTime.utc(1983, 5, 25).toISO() //=> '1982-05-25T00:00:00.000Z' - * @example DateTime.now().toISO() //=> '2017-04-22T20:47:05.335-04:00' - * @example DateTime.now().toISO({ includeOffset: false }) //=> '2017-04-22T20:47:05.335' - * @example DateTime.now().toISO({ format: 'basic' }) //=> '20170422T204705.335-0400' - * @return {string} - */ - toISO({ - format = "extended", - suppressSeconds = false, - suppressMilliseconds = false, - includeOffset = true, - extendedZone = false - } = {}) { - if (!this.isValid) { - return null; - } - const ext = format === "extended"; - let c = toISODate2(this, ext); - c += "T"; - c += toISOTime2(this, ext, suppressSeconds, suppressMilliseconds, includeOffset, extendedZone); - return c; - } - /** - * Returns an ISO 8601-compliant string representation of this DateTime's date component - * @param {Object} opts - options - * @param {string} [opts.format='extended'] - choose between the basic and extended format - * @example DateTime.utc(1982, 5, 25).toISODate() //=> '1982-05-25' - * @example DateTime.utc(1982, 5, 25).toISODate({ format: 'basic' }) //=> '19820525' - * @return {string} - */ - toISODate({ format = "extended" } = {}) { - if (!this.isValid) { - return null; - } - return toISODate2(this, format === "extended"); - } - /** - * Returns an ISO 8601-compliant string representation of this DateTime's week date - * @example DateTime.utc(1982, 5, 25).toISOWeekDate() //=> '1982-W21-2' - * @return {string} - */ - toISOWeekDate() { - return toTechFormat2(this, "kkkk-'W'WW-c"); - } - /** - * Returns an ISO 8601-compliant string representation of this DateTime's time component - * @param {Object} opts - options - * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0 - * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0 - * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00' - * @param {boolean} [opts.extendedZone=true] - add the time zone format extension - * @param {boolean} [opts.includePrefix=false] - include the `T` prefix - * @param {string} [opts.format='extended'] - choose between the basic and extended format - * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime() //=> '07:34:19.361Z' - * @example DateTime.utc().set({ hour: 7, minute: 34, seconds: 0, milliseconds: 0 }).toISOTime({ suppressSeconds: true }) //=> '07:34Z' - * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ format: 'basic' }) //=> '073419.361Z' - * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ includePrefix: true }) //=> 'T07:34:19.361Z' - * @return {string} - */ - toISOTime({ - suppressMilliseconds = false, - suppressSeconds = false, - includeOffset = true, - includePrefix = false, - extendedZone = false, - format = "extended" - } = {}) { - if (!this.isValid) { - return null; - } - let c = includePrefix ? "T" : ""; - return c + toISOTime2( - this, - format === "extended", - suppressSeconds, - suppressMilliseconds, - includeOffset, - extendedZone - ); - } - /** - * Returns an RFC 2822-compatible string representation of this DateTime - * @example DateTime.utc(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 +0000' - * @example DateTime.local(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 -0400' - * @return {string} - */ - toRFC2822() { - return toTechFormat2(this, "EEE, dd LLL yyyy HH:mm:ss ZZZ", false); - } - /** - * Returns a string representation of this DateTime appropriate for use in HTTP headers. The output is always expressed in GMT. - * Specifically, the string conforms to RFC 1123. - * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1 - * @example DateTime.utc(2014, 7, 13).toHTTP() //=> 'Sun, 13 Jul 2014 00:00:00 GMT' - * @example DateTime.utc(2014, 7, 13, 19).toHTTP() //=> 'Sun, 13 Jul 2014 19:00:00 GMT' - * @return {string} - */ - toHTTP() { - return toTechFormat2(this.toUTC(), "EEE, dd LLL yyyy HH:mm:ss 'GMT'"); - } - /** - * Returns a string representation of this DateTime appropriate for use in SQL Date - * @example DateTime.utc(2014, 7, 13).toSQLDate() //=> '2014-07-13' - * @return {string} - */ - toSQLDate() { - if (!this.isValid) { - return null; - } - return toISODate2(this, true); - } - /** - * Returns a string representation of this DateTime appropriate for use in SQL Time - * @param {Object} opts - options - * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset. - * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00' - * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00' - * @example DateTime.utc().toSQL() //=> '05:15:16.345' - * @example DateTime.now().toSQL() //=> '05:15:16.345 -04:00' - * @example DateTime.now().toSQL({ includeOffset: false }) //=> '05:15:16.345' - * @example DateTime.now().toSQL({ includeZone: false }) //=> '05:15:16.345 America/New_York' - * @return {string} - */ - toSQLTime({ includeOffset = true, includeZone = false, includeOffsetSpace = true } = {}) { - let fmt = "HH:mm:ss.SSS"; - if (includeZone || includeOffset) { - if (includeOffsetSpace) { - fmt += " "; - } - if (includeZone) { - fmt += "z"; - } else if (includeOffset) { - fmt += "ZZ"; - } - } - return toTechFormat2(this, fmt, true); - } - /** - * Returns a string representation of this DateTime appropriate for use in SQL DateTime - * @param {Object} opts - options - * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset. - * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00' - * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00' - * @example DateTime.utc(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 Z' - * @example DateTime.local(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 -04:00' - * @example DateTime.local(2014, 7, 13).toSQL({ includeOffset: false }) //=> '2014-07-13 00:00:00.000' - * @example DateTime.local(2014, 7, 13).toSQL({ includeZone: true }) //=> '2014-07-13 00:00:00.000 America/New_York' - * @return {string} - */ - toSQL(opts = {}) { - if (!this.isValid) { - return null; - } - return `${this.toSQLDate()} ${this.toSQLTime(opts)}`; - } - /** - * Returns a string representation of this DateTime appropriate for debugging - * @return {string} - */ - toString() { - return this.isValid ? this.toISO() : INVALID5; - } - /** - * Returns the epoch milliseconds of this DateTime. Alias of {@link DateTime#toMillis} - * @return {number} - */ - valueOf() { - return this.toMillis(); - } - /** - * Returns the epoch milliseconds of this DateTime. - * @return {number} - */ - toMillis() { - return this.isValid ? this.ts : NaN; - } - /** - * Returns the epoch seconds of this DateTime. - * @return {number} - */ - toSeconds() { - return this.isValid ? this.ts / 1e3 : NaN; - } - /** - * Returns the epoch seconds (as a whole number) of this DateTime. - * @return {number} - */ - toUnixInteger() { - return this.isValid ? Math.floor(this.ts / 1e3) : NaN; - } - /** - * Returns an ISO 8601 representation of this DateTime appropriate for use in JSON. - * @return {string} - */ - toJSON() { - return this.toISO(); - } - /** - * Returns a BSON serializable equivalent to this DateTime. - * @return {Date} - */ - toBSON() { - return this.toJSDate(); - } - /** - * Returns a JavaScript object with this DateTime's year, month, day, and so on. - * @param opts - options for generating the object - * @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output - * @example DateTime.now().toObject() //=> { year: 2017, month: 4, day: 22, hour: 20, minute: 49, second: 42, millisecond: 268 } - * @return {Object} - */ - toObject(opts = {}) { - if (!this.isValid) - return {}; - const base = { ...this.c }; - if (opts.includeConfig) { - base.outputCalendar = this.outputCalendar; - base.numberingSystem = this.loc.numberingSystem; - base.locale = this.loc.locale; - } - return base; - } - /** - * Returns a JavaScript Date equivalent to this DateTime. - * @return {Date} - */ - toJSDate() { - return new Date(this.isValid ? this.ts : NaN); - } - // COMPARE - /** - * Return the difference between two DateTimes as a Duration. - * @param {DateTime} otherDateTime - the DateTime to compare this one to - * @param {string|string[]} [unit=['milliseconds']] - the unit or array of units (such as 'hours' or 'days') to include in the duration. - * @param {Object} opts - options that affect the creation of the Duration - * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use - * @example - * var i1 = DateTime.fromISO('1982-05-25T09:45'), - * i2 = DateTime.fromISO('1983-10-14T10:30'); - * i2.diff(i1).toObject() //=> { milliseconds: 43807500000 } - * i2.diff(i1, 'hours').toObject() //=> { hours: 12168.75 } - * i2.diff(i1, ['months', 'days']).toObject() //=> { months: 16, days: 19.03125 } - * i2.diff(i1, ['months', 'days', 'hours']).toObject() //=> { months: 16, days: 19, hours: 0.75 } - * @return {Duration} - */ - diff(otherDateTime, unit = "milliseconds", opts = {}) { - if (!this.isValid || !otherDateTime.isValid) { - return Duration2.invalid("created by diffing an invalid DateTime"); - } - const durOpts = { locale: this.locale, numberingSystem: this.numberingSystem, ...opts }; - const units = maybeArray2(unit).map(Duration2.normalizeUnit), otherIsLater = otherDateTime.valueOf() > this.valueOf(), earlier = otherIsLater ? this : otherDateTime, later = otherIsLater ? otherDateTime : this, diffed = diff(earlier, later, units, durOpts); - return otherIsLater ? diffed.negate() : diffed; - } - /** - * Return the difference between this DateTime and right now. - * See {@link DateTime#diff} - * @param {string|string[]} [unit=['milliseconds']] - the unit or units units (such as 'hours' or 'days') to include in the duration - * @param {Object} opts - options that affect the creation of the Duration - * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use - * @return {Duration} - */ - diffNow(unit = "milliseconds", opts = {}) { - return this.diff(_DateTime.now(), unit, opts); - } - /** - * Return an Interval spanning between this DateTime and another DateTime - * @param {DateTime} otherDateTime - the other end point of the Interval - * @return {Interval} - */ - until(otherDateTime) { - return this.isValid ? Interval2.fromDateTimes(this, otherDateTime) : this; - } - /** - * Return whether this DateTime is in the same unit of time as another DateTime. - * Higher-order units must also be identical for this function to return `true`. - * Note that time zones are **ignored** in this comparison, which compares the **local** calendar time. Use {@link DateTime#setZone} to convert one of the dates if needed. - * @param {DateTime} otherDateTime - the other DateTime - * @param {string} unit - the unit of time to check sameness on - * @example DateTime.now().hasSame(otherDT, 'day'); //~> true if otherDT is in the same current calendar day - * @return {boolean} - */ - hasSame(otherDateTime, unit) { - if (!this.isValid) - return false; - const inputMs = otherDateTime.valueOf(); - const adjustedToZone = this.setZone(otherDateTime.zone, { keepLocalTime: true }); - return adjustedToZone.startOf(unit) <= inputMs && inputMs <= adjustedToZone.endOf(unit); - } - /** - * Equality check - * Two DateTimes are equal if and only if they represent the same millisecond, have the same zone and location, and are both valid. - * To compare just the millisecond values, use `+dt1 === +dt2`. - * @param {DateTime} other - the other DateTime - * @return {boolean} - */ - equals(other) { - return this.isValid && other.isValid && this.valueOf() === other.valueOf() && this.zone.equals(other.zone) && this.loc.equals(other.loc); - } - /** - * Returns a string representation of a this time relative to now, such as "in two days". Can only internationalize if your - * platform supports Intl.RelativeTimeFormat. Rounds down by default. - * @param {Object} options - options that affect the output - * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now. - * @param {string} [options.style="long"] - the style of units, must be "long", "short", or "narrow" - * @param {string|string[]} options.unit - use a specific unit or array of units; if omitted, or an array, the method will pick the best unit. Use an array or one of "years", "quarters", "months", "weeks", "days", "hours", "minutes", or "seconds" - * @param {boolean} [options.round=true] - whether to round the numbers in the output. - * @param {number} [options.padding=0] - padding in milliseconds. This allows you to round up the result if it fits inside the threshold. Don't use in combination with {round: false} because the decimal output will include the padding. - * @param {string} options.locale - override the locale of this DateTime - * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this - * @example DateTime.now().plus({ days: 1 }).toRelative() //=> "in 1 day" - * @example DateTime.now().setLocale("es").toRelative({ days: 1 }) //=> "dentro de 1 día" - * @example DateTime.now().plus({ days: 1 }).toRelative({ locale: "fr" }) //=> "dans 23 heures" - * @example DateTime.now().minus({ days: 2 }).toRelative() //=> "2 days ago" - * @example DateTime.now().minus({ days: 2 }).toRelative({ unit: "hours" }) //=> "48 hours ago" - * @example DateTime.now().minus({ hours: 36 }).toRelative({ round: false }) //=> "1.5 days ago" - */ - toRelative(options = {}) { - if (!this.isValid) - return null; - const base = options.base || _DateTime.fromObject({}, { zone: this.zone }), padding = options.padding ? this < base ? -options.padding : options.padding : 0; - let units = ["years", "months", "days", "hours", "minutes", "seconds"]; - let unit = options.unit; - if (Array.isArray(options.unit)) { - units = options.unit; - unit = void 0; - } - return diffRelative2(base, this.plus(padding), { - ...options, - numeric: "always", - units, - unit - }); - } - /** - * Returns a string representation of this date relative to today, such as "yesterday" or "next month". - * Only internationalizes on platforms that supports Intl.RelativeTimeFormat. - * @param {Object} options - options that affect the output - * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now. - * @param {string} options.locale - override the locale of this DateTime - * @param {string} options.unit - use a specific unit; if omitted, the method will pick the unit. Use one of "years", "quarters", "months", "weeks", or "days" - * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this - * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar() //=> "tomorrow" - * @example DateTime.now().setLocale("es").plus({ days: 1 }).toRelative() //=> ""mañana" - * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar({ locale: "fr" }) //=> "demain" - * @example DateTime.now().minus({ days: 2 }).toRelativeCalendar() //=> "2 days ago" - */ - toRelativeCalendar(options = {}) { - if (!this.isValid) - return null; - return diffRelative2(options.base || _DateTime.fromObject({}, { zone: this.zone }), this, { - ...options, - numeric: "auto", - units: ["years", "months", "days"], - calendary: true - }); - } - /** - * Return the min of several date times - * @param {...DateTime} dateTimes - the DateTimes from which to choose the minimum - * @return {DateTime} the min DateTime, or undefined if called with no argument - */ - static min(...dateTimes) { - if (!dateTimes.every(_DateTime.isDateTime)) { - throw new InvalidArgumentError2("min requires all arguments be DateTimes"); - } - return bestBy2(dateTimes, (i) => i.valueOf(), Math.min); - } - /** - * Return the max of several date times - * @param {...DateTime} dateTimes - the DateTimes from which to choose the maximum - * @return {DateTime} the max DateTime, or undefined if called with no argument - */ - static max(...dateTimes) { - if (!dateTimes.every(_DateTime.isDateTime)) { - throw new InvalidArgumentError2("max requires all arguments be DateTimes"); - } - return bestBy2(dateTimes, (i) => i.valueOf(), Math.max); - } - // MISC - /** - * Explain how a string would be parsed by fromFormat() - * @param {string} text - the string to parse - * @param {string} fmt - the format the string is expected to be in (see description) - * @param {Object} options - options taken by fromFormat() - * @return {Object} - */ - static fromFormatExplain(text2, fmt, options = {}) { - const { locale = null, numberingSystem = null } = options, localeToUse = Locale2.fromOpts({ - locale, - numberingSystem, - defaultToEN: true - }); - return explainFromTokens2(localeToUse, text2, fmt); - } - /** - * @deprecated use fromFormatExplain instead - */ - static fromStringExplain(text2, fmt, options = {}) { - return _DateTime.fromFormatExplain(text2, fmt, options); - } - // FORMAT PRESETS - /** - * {@link DateTime#toLocaleString} format like 10/14/1983 - * @type {Object} - */ - static get DATE_SHORT() { - return DATE_SHORT2; - } - /** - * {@link DateTime#toLocaleString} format like 'Oct 14, 1983' - * @type {Object} - */ - static get DATE_MED() { - return DATE_MED2; - } - /** - * {@link DateTime#toLocaleString} format like 'Fri, Oct 14, 1983' - * @type {Object} - */ - static get DATE_MED_WITH_WEEKDAY() { - return DATE_MED_WITH_WEEKDAY2; - } - /** - * {@link DateTime#toLocaleString} format like 'October 14, 1983' - * @type {Object} - */ - static get DATE_FULL() { - return DATE_FULL2; - } - /** - * {@link DateTime#toLocaleString} format like 'Tuesday, October 14, 1983' - * @type {Object} - */ - static get DATE_HUGE() { - return DATE_HUGE2; - } - /** - * {@link DateTime#toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is. - * @type {Object} - */ - static get TIME_SIMPLE() { - return TIME_SIMPLE2; - } - /** - * {@link DateTime#toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is. - * @type {Object} - */ - static get TIME_WITH_SECONDS() { - return TIME_WITH_SECONDS2; - } - /** - * {@link DateTime#toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is. - * @type {Object} - */ - static get TIME_WITH_SHORT_OFFSET() { - return TIME_WITH_SHORT_OFFSET2; - } - /** - * {@link DateTime#toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is. - * @type {Object} - */ - static get TIME_WITH_LONG_OFFSET() { - return TIME_WITH_LONG_OFFSET2; - } - /** - * {@link DateTime#toLocaleString} format like '09:30', always 24-hour. - * @type {Object} - */ - static get TIME_24_SIMPLE() { - return TIME_24_SIMPLE2; - } - /** - * {@link DateTime#toLocaleString} format like '09:30:23', always 24-hour. - * @type {Object} - */ - static get TIME_24_WITH_SECONDS() { - return TIME_24_WITH_SECONDS2; - } - /** - * {@link DateTime#toLocaleString} format like '09:30:23 EDT', always 24-hour. - * @type {Object} - */ - static get TIME_24_WITH_SHORT_OFFSET() { - return TIME_24_WITH_SHORT_OFFSET2; - } - /** - * {@link DateTime#toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour. - * @type {Object} - */ - static get TIME_24_WITH_LONG_OFFSET() { - return TIME_24_WITH_LONG_OFFSET2; - } - /** - * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is. - * @type {Object} - */ - static get DATETIME_SHORT() { - return DATETIME_SHORT2; - } - /** - * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is. - * @type {Object} - */ - static get DATETIME_SHORT_WITH_SECONDS() { - return DATETIME_SHORT_WITH_SECONDS2; - } - /** - * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is. - * @type {Object} - */ - static get DATETIME_MED() { - return DATETIME_MED2; - } - /** - * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is. - * @type {Object} - */ - static get DATETIME_MED_WITH_SECONDS() { - return DATETIME_MED_WITH_SECONDS2; - } - /** - * {@link DateTime#toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is. - * @type {Object} - */ - static get DATETIME_MED_WITH_WEEKDAY() { - return DATETIME_MED_WITH_WEEKDAY2; - } - /** - * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is. - * @type {Object} - */ - static get DATETIME_FULL() { - return DATETIME_FULL2; - } - /** - * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is. - * @type {Object} - */ - static get DATETIME_FULL_WITH_SECONDS() { - return DATETIME_FULL_WITH_SECONDS2; - } - /** - * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is. - * @type {Object} - */ - static get DATETIME_HUGE() { - return DATETIME_HUGE2; - } - /** - * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is. - * @type {Object} - */ - static get DATETIME_HUGE_WITH_SECONDS() { - return DATETIME_HUGE_WITH_SECONDS2; - } - }; - function friendlyDateTime2(dateTimeish) { - if (DateTime2.isDateTime(dateTimeish)) { - return dateTimeish; - } else if (dateTimeish && dateTimeish.valueOf && isNumber2(dateTimeish.valueOf())) { - return DateTime2.fromJSDate(dateTimeish); - } else if (dateTimeish && typeof dateTimeish === "object") { - return DateTime2.fromObject(dateTimeish); - } else { - throw new InvalidArgumentError2( - `Unknown datetime argument: ${dateTimeish}, of type ${typeof dateTimeish}` - ); - } - } - var DEFAULT_QUERY_SETTINGS = { - renderNullAs: "\\-", - taskCompletionTracking: false, - taskCompletionUseEmojiShorthand: false, - taskCompletionText: "completion", - taskCompletionDateFormat: "yyyy-MM-dd", - recursiveSubTaskCompletion: false, - warnOnEmptyResult: true, - refreshEnabled: true, - refreshInterval: 2500, - defaultDateFormat: "MMMM dd, yyyy", - defaultDateTimeFormat: "h:mm a - MMMM dd, yyyy", - maxRecursiveRenderDepth: 4, - tableIdColumnName: "File", - tableGroupColumnName: "Group", - showResultCount: true - }; - var DEFAULT_EXPORT_SETTINGS = { - allowHtml: true - }; - ({ - ...DEFAULT_QUERY_SETTINGS, - ...DEFAULT_EXPORT_SETTINGS, - ...{ - inlineQueryPrefix: "=", - inlineJsQueryPrefix: "$=", - inlineQueriesInCodeblocks: true, - enableInlineDataview: true, - enableDataviewJs: false, - enableInlineDataviewJs: false, - prettyRenderInlineFields: true, - prettyRenderInlineFieldsInLivePreview: true, - dataviewJsKeyword: "dataviewjs" - } - }); - var Success = class _Success { - constructor(value) { - this.value = value; - this.successful = true; - } - map(f) { - return new _Success(f(this.value)); - } - flatMap(f) { - return f(this.value); - } - mapErr(f) { - return this; - } - bimap(succ2, _fail) { - return this.map(succ2); - } - orElse(_value) { - return this.value; - } - cast() { - return this; - } - orElseThrow(_message) { - return this.value; - } - }; - var Failure = class _Failure { - constructor(error) { - this.error = error; - this.successful = false; - } - map(_f) { - return this; - } - flatMap(_f) { - return this; - } - mapErr(f) { - return new _Failure(f(this.error)); - } - bimap(_succ, fail2) { - return this.mapErr(fail2); - } - orElse(value) { - return value; - } - cast() { - return this; - } - orElseThrow(message) { - if (message) - throw new Error(message(this.error)); - else - throw new Error("" + this.error); - } - }; - var Result; - (function(Result2) { - function success(value) { - return new Success(value); - } - Result2.success = success; - function failure(error) { - return new Failure(error); - } - Result2.failure = failure; - function flatMap2(first, second, f) { - if (first.successful) { - if (second.successful) - return f(first.value, second.value); - else - return failure(second.error); - } else { - return failure(first.error); - } - } - Result2.flatMap2 = flatMap2; - function map2(first, second, f) { - return flatMap2(first, second, (a, b) => success(f(a, b))); - } - Result2.map2 = map2; - })(Result || (Result = {})); - var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {}; - var parsimmon_umd_min = { exports: {} }; - parsimmon_umd_min.exports; - (function(module3, exports2) { - !function(n3, t) { - module3.exports = t(); - }("undefined" != typeof self ? self : commonjsGlobal, function() { - return function(n3) { - var t = {}; - function r(e) { - if (t[e]) - return t[e].exports; - var u = t[e] = { i: e, l: false, exports: {} }; - return n3[e].call(u.exports, u, u.exports, r), u.l = true, u.exports; - } - return r.m = n3, r.c = t, r.d = function(n4, t2, e) { - r.o(n4, t2) || Object.defineProperty(n4, t2, { configurable: false, enumerable: true, get: e }); - }, r.r = function(n4) { - Object.defineProperty(n4, "__esModule", { value: true }); - }, r.n = function(n4) { - var t2 = n4 && n4.__esModule ? function() { - return n4.default; - } : function() { - return n4; - }; - return r.d(t2, "a", t2), t2; - }, r.o = function(n4, t2) { - return Object.prototype.hasOwnProperty.call(n4, t2); - }, r.p = "", r(r.s = 0); - }([function(n3, t, r) { - function e(n4) { - if (!(this instanceof e)) - return new e(n4); - this._ = n4; - } - var u = e.prototype; - function o(n4, t2) { - for (var r2 = 0; r2 < n4; r2++) - t2(r2); - } - function i(n4, t2, r2) { - return function(n5, t3) { - o(t3.length, function(r3) { - n5(t3[r3], r3, t3); - }); - }(function(r3, e2, u2) { - t2 = n4(t2, r3, e2, u2); - }, r2), t2; - } - function a(n4, t2) { - return i(function(t3, r2, e2, u2) { - return t3.concat([n4(r2, e2, u2)]); - }, [], t2); - } - function f(n4, t2) { - var r2 = { v: 0, buf: t2 }; - return o(n4, function() { - var n5; - r2 = { v: r2.v << 1 | (n5 = r2.buf, n5[0] >> 7), buf: function(n6) { - var t3 = i(function(n7, t4, r3, e2) { - return n7.concat(r3 === e2.length - 1 ? Buffer.from([t4, 0]).readUInt16BE(0) : e2.readUInt16BE(r3)); - }, [], n6); - return Buffer.from(a(function(n7) { - return (n7 << 1 & 65535) >> 8; - }, t3)); - }(r2.buf) }; - }), r2; - } - function c() { - return "undefined" != typeof Buffer; - } - function s3() { - if (!c()) - throw new Error("Buffer global does not exist; please use webpack if you need to parse Buffers in the browser."); - } - function l3(n4) { - s3(); - var t2 = i(function(n5, t3) { - return n5 + t3; - }, 0, n4); - if (t2 % 8 != 0) - throw new Error("The bits [" + n4.join(", ") + "] add up to " + t2 + " which is not an even number of bytes; the total should be divisible by 8"); - var r2, u2 = t2 / 8, o2 = (r2 = function(n5) { - return n5 > 48; - }, i(function(n5, t3) { - return n5 || (r2(t3) ? t3 : n5); - }, null, n4)); - if (o2) - throw new Error(o2 + " bit range requested exceeds 48 bit (6 byte) Number max."); - return new e(function(t3, r3) { - var e2 = u2 + r3; - return e2 > t3.length ? x(r3, u2.toString() + " bytes") : b(e2, i(function(n5, t4) { - var r4 = f(t4, n5.buf); - return { coll: n5.coll.concat(r4.v), buf: r4.buf }; - }, { coll: [], buf: t3.slice(r3, e2) }, n4).coll); - }); - } - function h(n4, t2) { - return new e(function(r2, e2) { - return s3(), e2 + t2 > r2.length ? x(e2, t2 + " bytes for " + n4) : b(e2 + t2, r2.slice(e2, e2 + t2)); - }); - } - function p(n4, t2) { - if ("number" != typeof (r2 = t2) || Math.floor(r2) !== r2 || t2 < 0 || t2 > 6) - throw new Error(n4 + " requires integer length in range [0, 6]."); - var r2; - } - function d(n4) { - return p("uintBE", n4), h("uintBE(" + n4 + ")", n4).map(function(t2) { - return t2.readUIntBE(0, n4); - }); - } - function v(n4) { - return p("uintLE", n4), h("uintLE(" + n4 + ")", n4).map(function(t2) { - return t2.readUIntLE(0, n4); - }); - } - function g(n4) { - return p("intBE", n4), h("intBE(" + n4 + ")", n4).map(function(t2) { - return t2.readIntBE(0, n4); - }); - } - function m(n4) { - return p("intLE", n4), h("intLE(" + n4 + ")", n4).map(function(t2) { - return t2.readIntLE(0, n4); - }); - } - function y(n4) { - return n4 instanceof e; - } - function E(n4) { - return "[object Array]" === {}.toString.call(n4); - } - function w(n4) { - return c() && Buffer.isBuffer(n4); - } - function b(n4, t2) { - return { status: true, index: n4, value: t2, furthest: -1, expected: [] }; - } - function x(n4, t2) { - return E(t2) || (t2 = [t2]), { status: false, index: -1, value: null, furthest: n4, expected: t2 }; - } - function B(n4, t2) { - if (!t2) - return n4; - if (n4.furthest > t2.furthest) - return n4; - var r2 = n4.furthest === t2.furthest ? function(n5, t3) { - if (function() { - if (void 0 !== e._supportsSet) - return e._supportsSet; - var n6 = "undefined" != typeof Set; - return e._supportsSet = n6, n6; - }() && Array.from) { - for (var r3 = new Set(n5), u2 = 0; u2 < t3.length; u2++) - r3.add(t3[u2]); - var o2 = Array.from(r3); - return o2.sort(), o2; - } - for (var i2 = {}, a2 = 0; a2 < n5.length; a2++) - i2[n5[a2]] = true; - for (var f2 = 0; f2 < t3.length; f2++) - i2[t3[f2]] = true; - var c2 = []; - for (var s4 in i2) - ({}).hasOwnProperty.call(i2, s4) && c2.push(s4); - return c2.sort(), c2; - }(n4.expected, t2.expected) : t2.expected; - return { status: n4.status, index: n4.index, value: n4.value, furthest: t2.furthest, expected: r2 }; - } - var j = {}; - function S(n4, t2) { - if (w(n4)) - return { offset: t2, line: -1, column: -1 }; - n4 in j || (j[n4] = {}); - for (var r2 = j[n4], e2 = 0, u2 = 0, o2 = 0, i2 = t2; i2 >= 0; ) { - if (i2 in r2) { - e2 = r2[i2].line, 0 === o2 && (o2 = r2[i2].lineStart); - break; - } - ("\n" === n4.charAt(i2) || "\r" === n4.charAt(i2) && "\n" !== n4.charAt(i2 + 1)) && (u2++, 0 === o2 && (o2 = i2 + 1)), i2--; - } - var a2 = e2 + u2, f2 = t2 - o2; - return r2[t2] = { line: a2, lineStart: o2 }, { offset: t2, line: a2 + 1, column: f2 + 1 }; - } - function _(n4) { - if (!y(n4)) - throw new Error("not a parser: " + n4); - } - function L(n4, t2) { - return "string" == typeof n4 ? n4.charAt(t2) : n4[t2]; - } - function O(n4) { - if ("number" != typeof n4) - throw new Error("not a number: " + n4); - } - function k(n4) { - if ("function" != typeof n4) - throw new Error("not a function: " + n4); - } - function P(n4) { - if ("string" != typeof n4) - throw new Error("not a string: " + n4); - } - var q = 2, A = 3, I = 8, F = 5 * I, M = 4 * I, z2 = " "; - function R(n4, t2) { - return new Array(t2 + 1).join(n4); - } - function U(n4, t2, r2) { - var e2 = t2 - n4.length; - return e2 <= 0 ? n4 : R(r2, e2) + n4; - } - function W(n4, t2, r2, e2) { - return { from: n4 - t2 > 0 ? n4 - t2 : 0, to: n4 + r2 > e2 ? e2 : n4 + r2 }; - } - function D(n4, t2) { - var r2, e2, u2, o2, f2, c2 = t2.index, s4 = c2.offset, l4 = 1; - if (s4 === n4.length) - return "Got the end of the input"; - if (w(n4)) { - var h2 = s4 - s4 % I, p2 = s4 - h2, d2 = W(h2, F, M + I, n4.length), v2 = a(function(n5) { - return a(function(n6) { - return U(n6.toString(16), 2, "0"); - }, n5); - }, function(n5, t3) { - var r3 = n5.length, e3 = [], u3 = 0; - if (r3 <= t3) - return [n5.slice()]; - for (var o3 = 0; o3 < r3; o3++) - e3[u3] || e3.push([]), e3[u3].push(n5[o3]), (o3 + 1) % t3 == 0 && u3++; - return e3; - }(n4.slice(d2.from, d2.to).toJSON().data, I)); - o2 = function(n5) { - return 0 === n5.from && 1 === n5.to ? { from: n5.from, to: n5.to } : { from: n5.from / I, to: Math.floor(n5.to / I) }; - }(d2), e2 = h2 / I, r2 = 3 * p2, p2 >= 4 && (r2 += 1), l4 = 2, u2 = a(function(n5) { - return n5.length <= 4 ? n5.join(" ") : n5.slice(0, 4).join(" ") + " " + n5.slice(4).join(" "); - }, v2), (f2 = (8 * (o2.to > 0 ? o2.to - 1 : o2.to)).toString(16).length) < 2 && (f2 = 2); - } else { - var g2 = n4.split(/\r\n|[\n\r\u2028\u2029]/); - r2 = c2.column - 1, e2 = c2.line - 1, o2 = W(e2, q, A, g2.length), u2 = g2.slice(o2.from, o2.to), f2 = o2.to.toString().length; - } - var m2 = e2 - o2.from; - return w(n4) && (f2 = (8 * (o2.to > 0 ? o2.to - 1 : o2.to)).toString(16).length) < 2 && (f2 = 2), i(function(t3, e3, u3) { - var i2, a2 = u3 === m2, c3 = a2 ? "> " : z2; - return i2 = w(n4) ? U((8 * (o2.from + u3)).toString(16), f2, "0") : U((o2.from + u3 + 1).toString(), f2, " "), [].concat(t3, [c3 + i2 + " | " + e3], a2 ? [z2 + R(" ", f2) + " | " + U("", r2, " ") + R("^", l4)] : []); - }, [], u2).join("\n"); - } - function N(n4, t2) { - return ["\n", "-- PARSING FAILED " + R("-", 50), "\n\n", D(n4, t2), "\n\n", (r2 = t2.expected, 1 === r2.length ? "Expected:\n\n" + r2[0] : "Expected one of the following: \n\n" + r2.join(", ")), "\n"].join(""); - var r2; - } - function G(n4) { - return void 0 !== n4.flags ? n4.flags : [n4.global ? "g" : "", n4.ignoreCase ? "i" : "", n4.multiline ? "m" : "", n4.unicode ? "u" : "", n4.sticky ? "y" : ""].join(""); - } - function C() { - for (var n4 = [].slice.call(arguments), t2 = n4.length, r2 = 0; r2 < t2; r2 += 1) - _(n4[r2]); - return e(function(r3, e2) { - for (var u2, o2 = new Array(t2), i2 = 0; i2 < t2; i2 += 1) { - if (!(u2 = B(n4[i2]._(r3, e2), u2)).status) - return u2; - o2[i2] = u2.value, e2 = u2.index; - } - return B(b(e2, o2), u2); - }); - } - function J() { - var n4 = [].slice.call(arguments); - if (0 === n4.length) - throw new Error("seqMap needs at least one argument"); - var t2 = n4.pop(); - return k(t2), C.apply(null, n4).map(function(n5) { - return t2.apply(null, n5); - }); - } - function T() { - var n4 = [].slice.call(arguments), t2 = n4.length; - if (0 === t2) - return Y("zero alternates"); - for (var r2 = 0; r2 < t2; r2 += 1) - _(n4[r2]); - return e(function(t3, r3) { - for (var e2, u2 = 0; u2 < n4.length; u2 += 1) - if ((e2 = B(n4[u2]._(t3, r3), e2)).status) - return e2; - return e2; - }); - } - function V(n4, t2) { - return H(n4, t2).or(X([])); - } - function H(n4, t2) { - return _(n4), _(t2), J(n4, t2.then(n4).many(), function(n5, t3) { - return [n5].concat(t3); - }); - } - function K(n4) { - P(n4); - var t2 = "'" + n4 + "'"; - return e(function(r2, e2) { - var u2 = e2 + n4.length, o2 = r2.slice(e2, u2); - return o2 === n4 ? b(u2, o2) : x(e2, t2); - }); - } - function Q(n4, t2) { - !function(n5) { - if (!(n5 instanceof RegExp)) - throw new Error("not a regexp: " + n5); - for (var t3 = G(n5), r3 = 0; r3 < t3.length; r3++) { - var e2 = t3.charAt(r3); - if ("i" !== e2 && "m" !== e2 && "u" !== e2 && "s" !== e2) - throw new Error('unsupported regexp flag "' + e2 + '": ' + n5); - } - }(n4), arguments.length >= 2 ? O(t2) : t2 = 0; - var r2 = function(n5) { - return RegExp("^(?:" + n5.source + ")", G(n5)); - }(n4), u2 = "" + n4; - return e(function(n5, e2) { - var o2 = r2.exec(n5.slice(e2)); - if (o2) { - if (0 <= t2 && t2 <= o2.length) { - var i2 = o2[0], a2 = o2[t2]; - return b(e2 + i2.length, a2); - } - return x(e2, "valid match group (0 to " + o2.length + ") in " + u2); - } - return x(e2, u2); - }); - } - function X(n4) { - return e(function(t2, r2) { - return b(r2, n4); - }); - } - function Y(n4) { - return e(function(t2, r2) { - return x(r2, n4); - }); - } - function Z(n4) { - if (y(n4)) - return e(function(t2, r2) { - var e2 = n4._(t2, r2); - return e2.index = r2, e2.value = "", e2; - }); - if ("string" == typeof n4) - return Z(K(n4)); - if (n4 instanceof RegExp) - return Z(Q(n4)); - throw new Error("not a string, regexp, or parser: " + n4); - } - function $(n4) { - return _(n4), e(function(t2, r2) { - var e2 = n4._(t2, r2), u2 = t2.slice(r2, e2.index); - return e2.status ? x(r2, 'not "' + u2 + '"') : b(r2, null); - }); - } - function nn(n4) { - return k(n4), e(function(t2, r2) { - var e2 = L(t2, r2); - return r2 < t2.length && n4(e2) ? b(r2 + 1, e2) : x(r2, "a character/byte matching " + n4); - }); - } - function tn(n4, t2) { - arguments.length < 2 && (t2 = n4, n4 = void 0); - var r2 = e(function(n5, e2) { - return r2._ = t2()._, r2._(n5, e2); - }); - return n4 ? r2.desc(n4) : r2; - } - function rn() { - return Y("fantasy-land/empty"); - } - u.parse = function(n4) { - if ("string" != typeof n4 && !w(n4)) - throw new Error(".parse must be called with a string or Buffer as its argument"); - var t2, r2 = this.skip(an)._(n4, 0); - return t2 = r2.status ? { status: true, value: r2.value } : { status: false, index: S(n4, r2.furthest), expected: r2.expected }, delete j[n4], t2; - }, u.tryParse = function(n4) { - var t2 = this.parse(n4); - if (t2.status) - return t2.value; - var r2 = N(n4, t2), e2 = new Error(r2); - throw e2.type = "ParsimmonError", e2.result = t2, e2; - }, u.assert = function(n4, t2) { - return this.chain(function(r2) { - return n4(r2) ? X(r2) : Y(t2); - }); - }, u.or = function(n4) { - return T(this, n4); - }, u.trim = function(n4) { - return this.wrap(n4, n4); - }, u.wrap = function(n4, t2) { - return J(n4, this, t2, function(n5, t3) { - return t3; - }); - }, u.thru = function(n4) { - return n4(this); - }, u.then = function(n4) { - return _(n4), C(this, n4).map(function(n5) { - return n5[1]; - }); - }, u.many = function() { - var n4 = this; - return e(function(t2, r2) { - for (var e2 = [], u2 = void 0; ; ) { - if (!(u2 = B(n4._(t2, r2), u2)).status) - return B(b(r2, e2), u2); - if (r2 === u2.index) - throw new Error("infinite loop detected in .many() parser --- calling .many() on a parser which can accept zero characters is usually the cause"); - r2 = u2.index, e2.push(u2.value); - } - }); - }, u.tieWith = function(n4) { - return P(n4), this.map(function(t2) { - if (function(n5) { - if (!E(n5)) - throw new Error("not an array: " + n5); - }(t2), t2.length) { - P(t2[0]); - for (var r2 = t2[0], e2 = 1; e2 < t2.length; e2++) - P(t2[e2]), r2 += n4 + t2[e2]; - return r2; - } - return ""; - }); - }, u.tie = function() { - return this.tieWith(""); - }, u.times = function(n4, t2) { - var r2 = this; - return arguments.length < 2 && (t2 = n4), O(n4), O(t2), e(function(e2, u2) { - for (var o2 = [], i2 = void 0, a2 = void 0, f2 = 0; f2 < n4; f2 += 1) { - if (a2 = B(i2 = r2._(e2, u2), a2), !i2.status) - return a2; - u2 = i2.index, o2.push(i2.value); - } - for (; f2 < t2 && (a2 = B(i2 = r2._(e2, u2), a2), i2.status); f2 += 1) - u2 = i2.index, o2.push(i2.value); - return B(b(u2, o2), a2); - }); - }, u.result = function(n4) { - return this.map(function() { - return n4; - }); - }, u.atMost = function(n4) { - return this.times(0, n4); - }, u.atLeast = function(n4) { - return J(this.times(n4), this.many(), function(n5, t2) { - return n5.concat(t2); - }); - }, u.map = function(n4) { - k(n4); - var t2 = this; - return e(function(r2, e2) { - var u2 = t2._(r2, e2); - return u2.status ? B(b(u2.index, n4(u2.value)), u2) : u2; - }); - }, u.contramap = function(n4) { - k(n4); - var t2 = this; - return e(function(r2, e2) { - var u2 = t2.parse(n4(r2.slice(e2))); - return u2.status ? b(e2 + r2.length, u2.value) : u2; - }); - }, u.promap = function(n4, t2) { - return k(n4), k(t2), this.contramap(n4).map(t2); - }, u.skip = function(n4) { - return C(this, n4).map(function(n5) { - return n5[0]; - }); - }, u.mark = function() { - return J(en, this, en, function(n4, t2, r2) { - return { start: n4, value: t2, end: r2 }; - }); - }, u.node = function(n4) { - return J(en, this, en, function(t2, r2, e2) { - return { name: n4, value: r2, start: t2, end: e2 }; - }); - }, u.sepBy = function(n4) { - return V(this, n4); - }, u.sepBy1 = function(n4) { - return H(this, n4); - }, u.lookahead = function(n4) { - return this.skip(Z(n4)); - }, u.notFollowedBy = function(n4) { - return this.skip($(n4)); - }, u.desc = function(n4) { - E(n4) || (n4 = [n4]); - var t2 = this; - return e(function(r2, e2) { - var u2 = t2._(r2, e2); - return u2.status || (u2.expected = n4), u2; - }); - }, u.fallback = function(n4) { - return this.or(X(n4)); - }, u.ap = function(n4) { - return J(n4, this, function(n5, t2) { - return n5(t2); - }); - }, u.chain = function(n4) { - var t2 = this; - return e(function(r2, e2) { - var u2 = t2._(r2, e2); - return u2.status ? B(n4(u2.value)._(r2, u2.index), u2) : u2; - }); - }, u.concat = u.or, u.empty = rn, u.of = X, u["fantasy-land/ap"] = u.ap, u["fantasy-land/chain"] = u.chain, u["fantasy-land/concat"] = u.concat, u["fantasy-land/empty"] = u.empty, u["fantasy-land/of"] = u.of, u["fantasy-land/map"] = u.map; - var en = e(function(n4, t2) { - return b(t2, S(n4, t2)); - }), un = e(function(n4, t2) { - return t2 >= n4.length ? x(t2, "any character/byte") : b(t2 + 1, L(n4, t2)); - }), on = e(function(n4, t2) { - return b(n4.length, n4.slice(t2)); - }), an = e(function(n4, t2) { - return t2 < n4.length ? x(t2, "EOF") : b(t2, null); - }), fn = Q(/[0-9]/).desc("a digit"), cn = Q(/[0-9]*/).desc("optional digits"), sn = Q(/[a-z]/i).desc("a letter"), ln = Q(/[a-z]*/i).desc("optional letters"), hn = Q(/\s*/).desc("optional whitespace"), pn = Q(/\s+/).desc("whitespace"), dn = K("\r"), vn = K("\n"), gn = K("\r\n"), mn = T(gn, vn, dn).desc("newline"), yn = T(mn, an); - e.all = on, e.alt = T, e.any = un, e.cr = dn, e.createLanguage = function(n4) { - var t2 = {}; - for (var r2 in n4) - ({}).hasOwnProperty.call(n4, r2) && function(r3) { - t2[r3] = tn(function() { - return n4[r3](t2); - }); - }(r2); - return t2; - }, e.crlf = gn, e.custom = function(n4) { - return e(n4(b, x)); - }, e.digit = fn, e.digits = cn, e.empty = rn, e.end = yn, e.eof = an, e.fail = Y, e.formatError = N, e.index = en, e.isParser = y, e.lazy = tn, e.letter = sn, e.letters = ln, e.lf = vn, e.lookahead = Z, e.makeFailure = x, e.makeSuccess = b, e.newline = mn, e.noneOf = function(n4) { - return nn(function(t2) { - return n4.indexOf(t2) < 0; - }).desc("none of '" + n4 + "'"); - }, e.notFollowedBy = $, e.of = X, e.oneOf = function(n4) { - for (var t2 = n4.split(""), r2 = 0; r2 < t2.length; r2++) - t2[r2] = "'" + t2[r2] + "'"; - return nn(function(t3) { - return n4.indexOf(t3) >= 0; - }).desc(t2); - }, e.optWhitespace = hn, e.Parser = e, e.range = function(n4, t2) { - return nn(function(r2) { - return n4 <= r2 && r2 <= t2; - }).desc(n4 + "-" + t2); - }, e.regex = Q, e.regexp = Q, e.sepBy = V, e.sepBy1 = H, e.seq = C, e.seqMap = J, e.seqObj = function() { - for (var n4, t2 = {}, r2 = 0, u2 = (n4 = arguments, Array.prototype.slice.call(n4)), o2 = u2.length, i2 = 0; i2 < o2; i2 += 1) { - var a2 = u2[i2]; - if (!y(a2)) { - if (E(a2) && 2 === a2.length && "string" == typeof a2[0] && y(a2[1])) { - var f2 = a2[0]; - if (Object.prototype.hasOwnProperty.call(t2, f2)) - throw new Error("seqObj: duplicate key " + f2); - t2[f2] = true, r2++; - continue; - } - throw new Error("seqObj arguments must be parsers or [string, parser] array pairs."); - } - } - if (0 === r2) - throw new Error("seqObj expects at least one named parser, found zero"); - return e(function(n5, t3) { - for (var r3, e2 = {}, i3 = 0; i3 < o2; i3 += 1) { - var a3, f3; - if (E(u2[i3]) ? (a3 = u2[i3][0], f3 = u2[i3][1]) : (a3 = null, f3 = u2[i3]), !(r3 = B(f3._(n5, t3), r3)).status) - return r3; - a3 && (e2[a3] = r3.value), t3 = r3.index; - } - return B(b(t3, e2), r3); - }); - }, e.string = K, e.succeed = X, e.takeWhile = function(n4) { - return k(n4), e(function(t2, r2) { - for (var e2 = r2; e2 < t2.length && n4(L(t2, e2)); ) - e2++; - return b(e2, t2.slice(r2, e2)); - }); - }, e.test = nn, e.whitespace = pn, e["fantasy-land/empty"] = rn, e["fantasy-land/of"] = X, e.Binary = { bitSeq: l3, bitSeqObj: function(n4) { - s3(); - var t2 = {}, r2 = 0, e2 = a(function(n5) { - if (E(n5)) { - var e3 = n5; - if (2 !== e3.length) - throw new Error("[" + e3.join(", ") + "] should be length 2, got length " + e3.length); - if (P(e3[0]), O(e3[1]), Object.prototype.hasOwnProperty.call(t2, e3[0])) - throw new Error("duplicate key in bitSeqObj: " + e3[0]); - return t2[e3[0]] = true, r2++, e3; - } - return O(n5), [null, n5]; - }, n4); - if (r2 < 1) - throw new Error("bitSeqObj expects at least one named pair, got [" + n4.join(", ") + "]"); - var u2 = a(function(n5) { - return n5[0]; - }, e2); - return l3(a(function(n5) { - return n5[1]; - }, e2)).map(function(n5) { - return i(function(n6, t3) { - return null !== t3[0] && (n6[t3[0]] = t3[1]), n6; - }, {}, a(function(t3, r3) { - return [t3, n5[r3]]; - }, u2)); - }); - }, byte: function(n4) { - if (s3(), O(n4), n4 > 255) - throw new Error("Value specified to byte constructor (" + n4 + "=0x" + n4.toString(16) + ") is larger in value than a single byte."); - var t2 = (n4 > 15 ? "0x" : "0x0") + n4.toString(16); - return e(function(r2, e2) { - var u2 = L(r2, e2); - return u2 === n4 ? b(e2 + 1, u2) : x(e2, t2); - }); - }, buffer: function(n4) { - return h("buffer", n4).map(function(n5) { - return Buffer.from(n5); - }); - }, encodedString: function(n4, t2) { - return h("string", t2).map(function(t3) { - return t3.toString(n4); - }); - }, uintBE: d, uint8BE: d(1), uint16BE: d(2), uint32BE: d(4), uintLE: v, uint8LE: v(1), uint16LE: v(2), uint32LE: v(4), intBE: g, int8BE: g(1), int16BE: g(2), int32BE: g(4), intLE: m, int8LE: m(1), int16LE: m(2), int32LE: m(4), floatBE: h("floatBE", 4).map(function(n4) { - return n4.readFloatBE(0); - }), floatLE: h("floatLE", 4).map(function(n4) { - return n4.readFloatLE(0); - }), doubleBE: h("doubleBE", 8).map(function(n4) { - return n4.readDoubleBE(0); - }), doubleLE: h("doubleLE", 8).map(function(n4) { - return n4.readDoubleLE(0); - }) }, n3.exports = e; - }]); - }); - })(parsimmon_umd_min, parsimmon_umd_min.exports); - var parsimmon_umd_minExports = parsimmon_umd_min.exports; - var emojiRegex2 = () => { - return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uD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43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g; - }; - function normalizeDuration(dur) { - if (dur === void 0 || dur === null) - return dur; - return dur.shiftToAll().normalize(); - } - function getFileTitle(path) { - if (path.includes("/")) - path = path.substring(path.lastIndexOf("/") + 1); - if (path.endsWith(".md")) - path = path.substring(0, path.length - 3); - return path; - } - parsimmon_umd_minExports.alt(parsimmon_umd_minExports.regex(new RegExp(emojiRegex2(), "")), parsimmon_umd_minExports.regex(/[0-9\p{Letter}_-]+/u).map((str) => str.toLocaleLowerCase()), parsimmon_umd_minExports.whitespace.map((_) => "-"), parsimmon_umd_minExports.any.map((_) => "")).many().map((result) => result.join("")); - var HEADER_CANONICALIZER = parsimmon_umd_minExports.alt(parsimmon_umd_minExports.regex(new RegExp(emojiRegex2(), "")), parsimmon_umd_minExports.regex(/[0-9\p{Letter}_-]+/u), parsimmon_umd_minExports.whitespace.map((_) => " "), parsimmon_umd_minExports.any.map((_) => " ")).many().map((result) => { - return result.join("").split(/\s+/).join(" ").trim(); - }); - function normalizeHeaderForLink(header) { - return HEADER_CANONICALIZER.tryParse(header); - } - function renderMinimalDuration(dur) { - dur = normalizeDuration(dur); - dur = Duration2.fromObject(Object.fromEntries(Object.entries(dur.toObject()).filter(([, quantity]) => quantity != 0))); - return dur.toHuman(); - } - var Values; - (function(Values2) { - function toString(field, setting = DEFAULT_QUERY_SETTINGS, recursive = false) { - let wrapped = wrapValue(field); - if (!wrapped) - return setting.renderNullAs; - switch (wrapped.type) { - case "null": - return setting.renderNullAs; - case "string": - return wrapped.value; - case "number": - case "boolean": - return "" + wrapped.value; - case "html": - return wrapped.value.outerHTML; - case "widget": - return wrapped.value.markdown(); - case "link": - return wrapped.value.markdown(); - case "function": - return ""; - case "array": - let result = ""; - if (recursive) - result += "["; - result += wrapped.value.map((f) => toString(f, setting, true)).join(", "); - if (recursive) - result += "]"; - return result; - case "object": - return "{ " + Object.entries(wrapped.value).map((e) => e[0] + ": " + toString(e[1], setting, true)).join(", ") + " }"; - case "date": - if (wrapped.value.second == 0 && wrapped.value.hour == 0 && wrapped.value.minute == 0) { - return wrapped.value.toFormat(setting.defaultDateFormat); - } - return wrapped.value.toFormat(setting.defaultDateTimeFormat); - case "duration": - return renderMinimalDuration(wrapped.value); - } - } - Values2.toString = toString; - function wrapValue(val) { - if (isNull(val)) - return { type: "null", value: val }; - else if (isNumber3(val)) - return { type: "number", value: val }; - else if (isString3(val)) - return { type: "string", value: val }; - else if (isBoolean(val)) - return { type: "boolean", value: val }; - else if (isDuration(val)) - return { type: "duration", value: val }; - else if (isDate3(val)) - return { type: "date", value: val }; - else if (isWidget(val)) - return { type: "widget", value: val }; - else if (isArray(val)) - return { type: "array", value: val }; - else if (isLink(val)) - return { type: "link", value: val }; - else if (isFunction(val)) - return { type: "function", value: val }; - else if (isHtml(val)) - return { type: "html", value: val }; - else if (isObject(val)) - return { type: "object", value: val }; - else - return void 0; - } - Values2.wrapValue = wrapValue; - function mapLeaves(val, func) { - if (isObject(val)) { - let result = {}; - for (let [key, value] of Object.entries(val)) - result[key] = mapLeaves(value, func); - return result; - } else if (isArray(val)) { - let result = []; - for (let value of val) - result.push(mapLeaves(value, func)); - return result; - } else { - return func(val); - } - } - Values2.mapLeaves = mapLeaves; - function compareValue(val1, val2, linkNormalizer) { - var _a, _b; - if (val1 === void 0) - val1 = null; - if (val2 === void 0) - val2 = null; - if (val1 === null && val2 === null) - return 0; - else if (val1 === null) - return -1; - else if (val2 === null) - return 1; - let wrap1 = wrapValue(val1); - let wrap2 = wrapValue(val2); - if (wrap1 === void 0 && wrap2 === void 0) - return 0; - else if (wrap1 === void 0) - return -1; - else if (wrap2 === void 0) - return 1; - if (wrap1.type != wrap2.type) - return wrap1.type.localeCompare(wrap2.type); - if (wrap1.value === wrap2.value) - return 0; - switch (wrap1.type) { - case "string": - return wrap1.value.localeCompare(wrap2.value); - case "number": - if (wrap1.value < wrap2.value) - return -1; - else if (wrap1.value == wrap2.value) - return 0; - return 1; - case "null": - return 0; - case "boolean": - if (wrap1.value == wrap2.value) - return 0; - else - return wrap1.value ? 1 : -1; - case "link": - let link1 = wrap1.value; - let link2 = wrap2.value; - let normalize = linkNormalizer !== null && linkNormalizer !== void 0 ? linkNormalizer : (x) => x; - let pathCompare = normalize(link1.path).localeCompare(normalize(link2.path)); - if (pathCompare != 0) - return pathCompare; - let typeCompare = link1.type.localeCompare(link2.type); - if (typeCompare != 0) - return typeCompare; - if (link1.subpath && !link2.subpath) - return 1; - if (!link1.subpath && link2.subpath) - return -1; - if (!link1.subpath && !link2.subpath) - return 0; - return ((_a = link1.subpath) !== null && _a !== void 0 ? _a : "").localeCompare((_b = link2.subpath) !== null && _b !== void 0 ? _b : ""); - case "date": - return wrap1.value < wrap2.value ? -1 : wrap1.value.equals(wrap2.value) ? 0 : 1; - case "duration": - return wrap1.value < wrap2.value ? -1 : wrap1.value.equals(wrap2.value) ? 0 : 1; - case "array": - let f1 = wrap1.value; - let f2 = wrap2.value; - for (let index = 0; index < Math.min(f1.length, f2.length); index++) { - let comp = compareValue(f1[index], f2[index]); - if (comp != 0) - return comp; - } - return f1.length - f2.length; - case "object": - let o1 = wrap1.value; - let o2 = wrap2.value; - let k1 = Array.from(Object.keys(o1)); - let k2 = Array.from(Object.keys(o2)); - k1.sort(); - k2.sort(); - let keyCompare = compareValue(k1, k2); - if (keyCompare != 0) - return keyCompare; - for (let key of k1) { - let comp = compareValue(o1[key], o2[key]); - if (comp != 0) - return comp; - } - return 0; - case "widget": - case "html": - case "function": - return 0; - } - } - Values2.compareValue = compareValue; - function typeOf(val) { - var _a; - return (_a = wrapValue(val)) === null || _a === void 0 ? void 0 : _a.type; - } - Values2.typeOf = typeOf; - function isTruthy(field) { - let wrapped = wrapValue(field); - if (!wrapped) - return false; - switch (wrapped.type) { - case "number": - return wrapped.value != 0; - case "string": - return wrapped.value.length > 0; - case "boolean": - return wrapped.value; - case "link": - return !!wrapped.value.path; - case "date": - return wrapped.value.toMillis() != 0; - case "duration": - return wrapped.value.as("seconds") != 0; - case "object": - return Object.keys(wrapped.value).length > 0; - case "array": - return wrapped.value.length > 0; - case "null": - return false; - case "html": - case "widget": - case "function": - return true; - } - } - Values2.isTruthy = isTruthy; - function deepCopy(field) { - if (field === null || field === void 0) - return field; - if (Values2.isArray(field)) { - return [].concat(field.map((v) => deepCopy(v))); - } else if (Values2.isObject(field)) { - let result = {}; - for (let [key, value] of Object.entries(field)) - result[key] = deepCopy(value); - return result; - } else { - return field; - } - } - Values2.deepCopy = deepCopy; - function isString3(val) { - return typeof val == "string"; - } - Values2.isString = isString3; - function isNumber3(val) { - return typeof val == "number"; - } - Values2.isNumber = isNumber3; - function isDate3(val) { - return val instanceof DateTime2; - } - Values2.isDate = isDate3; - function isDuration(val) { - return val instanceof Duration2; - } - Values2.isDuration = isDuration; - function isNull(val) { - return val === null || val === void 0; - } - Values2.isNull = isNull; - function isArray(val) { - return Array.isArray(val); - } - Values2.isArray = isArray; - function isBoolean(val) { - return typeof val === "boolean"; - } - Values2.isBoolean = isBoolean; - function isLink(val) { - return val instanceof Link; - } - Values2.isLink = isLink; - function isWidget(val) { - return val instanceof Widget; - } - Values2.isWidget = isWidget; - function isHtml(val) { - if (typeof HTMLElement !== "undefined") { - return val instanceof HTMLElement; - } else { - return false; - } - } - Values2.isHtml = isHtml; - function isObject(val) { - return typeof val == "object" && !isHtml(val) && !isWidget(val) && !isArray(val) && !isDuration(val) && !isDate3(val) && !isLink(val) && val !== void 0 && !isNull(val); - } - Values2.isObject = isObject; - function isFunction(val) { - return typeof val == "function"; - } - Values2.isFunction = isFunction; - })(Values || (Values = {})); - var Groupings; - (function(Groupings2) { - function isElementGroup(entry) { - return Values.isObject(entry) && Object.keys(entry).length == 2 && "key" in entry && "rows" in entry; - } - Groupings2.isElementGroup = isElementGroup; - function isGrouping(entry) { - for (let element2 of entry) - if (!isElementGroup(element2)) - return false; - return true; - } - Groupings2.isGrouping = isGrouping; - function count(elements) { - if (isGrouping(elements)) { - let result = 0; - for (let subgroup of elements) - result += count(subgroup.rows); - return result; - } else { - return elements.length; - } - } - Groupings2.count = count; - })(Groupings || (Groupings = {})); - var Link = class _Link { - /** Create a link to a specific file. */ - static file(path, embed = false, display) { - return new _Link({ - path, - embed, - display, - subpath: void 0, - type: "file" - }); - } - static infer(linkpath, embed = false, display) { - if (linkpath.includes("#^")) { - let split = linkpath.split("#^"); - return _Link.block(split[0], split[1], embed, display); - } else if (linkpath.includes("#")) { - let split = linkpath.split("#"); - return _Link.header(split[0], split[1], embed, display); - } else - return _Link.file(linkpath, embed, display); - } - /** Create a link to a specific file and header in that file. */ - static header(path, header, embed, display) { - return new _Link({ - path, - embed, - display, - subpath: normalizeHeaderForLink(header), - type: "header" - }); - } - /** Create a link to a specific file and block in that file. */ - static block(path, blockId, embed, display) { - return new _Link({ - path, - embed, - display, - subpath: blockId, - type: "block" - }); - } - static fromObject(object) { - return new _Link(object); - } - constructor(fields) { - Object.assign(this, fields); - } - /** Checks for link equality (i.e., that the links are pointing to the same exact location). */ - equals(other) { - if (other == void 0 || other == null) - return false; - return this.path == other.path && this.type == other.type && this.subpath == other.subpath; - } - /** Convert this link to it's markdown representation. */ - toString() { - return this.markdown(); - } - /** Convert this link to a raw object which is serialization-friendly. */ - toObject() { - return { path: this.path, type: this.type, subpath: this.subpath, display: this.display, embed: this.embed }; - } - /** Update this link with a new path. */ - //@ts-ignore; error appeared after updating Obsidian to 0.15.4; it also updated other packages but didn't say which - withPath(path) { - return new _Link(Object.assign({}, this, { path })); - } - /** Return a new link which points to the same location but with a new display value. */ - withDisplay(display) { - return new _Link(Object.assign({}, this, { display })); - } - /** Convert a file link into a link to a specific header. */ - withHeader(header) { - return _Link.header(this.path, header, this.embed, this.display); - } - /** Convert any link into a link to its file. */ - toFile() { - return _Link.file(this.path, this.embed, this.display); - } - /** Convert this link into an embedded link. */ - toEmbed() { - if (this.embed) { - return this; - } else { - let link = new _Link(this); - link.embed = true; - return link; - } - } - /** Convert this link into a non-embedded link. */ - fromEmbed() { - if (!this.embed) { - return this; - } else { - let link = new _Link(this); - link.embed = false; - return link; - } - } - /** Convert this link to markdown so it can be rendered. */ - markdown() { - let result = (this.embed ? "!" : "") + "[[" + this.obsidianLink(); - if (this.display) { - result += "|" + this.display; - } else { - result += "|" + getFileTitle(this.path); - if (this.type == "header" || this.type == "block") - result += " > " + this.subpath; - } - result += "]]"; - return result; - } - /** Convert the inner part of the link to something that Obsidian can open / understand. */ - obsidianLink() { - var _a, _b; - const escaped = this.path.replace("|", "\\|"); - if (this.type == "header") - return escaped + "#" + ((_a = this.subpath) === null || _a === void 0 ? void 0 : _a.replace("|", "\\|")); - if (this.type == "block") - return escaped + "#^" + ((_b = this.subpath) === null || _b === void 0 ? void 0 : _b.replace("|", "\\|")); - else - return escaped; - } - /** The stripped name of the file this link points to. */ - fileName() { - return getFileTitle(this.path).replace(".md", ""); - } - }; - var Widget = class { - constructor($widget) { - this.$widget = $widget; - } - }; - var ListPairWidget = class extends Widget { - constructor(key, value) { - super("dataview:list-pair"); - this.key = key; - this.value = value; - } - markdown() { - return `${Values.toString(this.key)}: ${Values.toString(this.value)}`; - } - }; - var ExternalLinkWidget = class extends Widget { - constructor(url, display) { - super("dataview:external-link"); - this.url = url; - this.display = display; - } - markdown() { - var _a; - return `[${(_a = this.display) !== null && _a !== void 0 ? _a : this.url}](${this.url})`; - } - }; - var Widgets; - (function(Widgets2) { - function listPair(key, value) { - return new ListPairWidget(key, value); - } - Widgets2.listPair = listPair; - function externalLink(url, display) { - return new ExternalLinkWidget(url, display); - } - Widgets2.externalLink = externalLink; - function isListPair(widget) { - return widget.$widget === "dataview:list-pair"; - } - Widgets2.isListPair = isListPair; - function isExternalLink(widget) { - return widget.$widget === "dataview:external-link"; - } - Widgets2.isExternalLink = isExternalLink; - function isBuiltin(widget) { - return isListPair(widget) || isExternalLink(widget); - } - Widgets2.isBuiltin = isBuiltin; - })(Widgets || (Widgets = {})); - var Fields; - (function(Fields2) { - function variable(name) { - return { type: "variable", name }; - } - Fields2.variable = variable; - function literal(value) { - return { type: "literal", value }; - } - Fields2.literal = literal; - function binaryOp(left, op, right) { - return { type: "binaryop", left, op, right }; - } - Fields2.binaryOp = binaryOp; - function index(obj, index2) { - return { type: "index", object: obj, index: index2 }; - } - Fields2.index = index; - function indexVariable(name) { - let parts = name.split("."); - let result = Fields2.variable(parts[0]); - for (let index2 = 1; index2 < parts.length; index2++) { - result = Fields2.index(result, Fields2.literal(parts[index2])); - } - return result; - } - Fields2.indexVariable = indexVariable; - function lambda(args, value) { - return { type: "lambda", arguments: args, value }; - } - Fields2.lambda = lambda; - function func(func2, args) { - return { type: "function", func: func2, arguments: args }; - } - Fields2.func = func; - function list(values) { - return { type: "list", values }; - } - Fields2.list = list; - function object(values) { - return { type: "object", values }; - } - Fields2.object = object; - function negate(child) { - return { type: "negated", child }; - } - Fields2.negate = negate; - function isCompareOp(op) { - return op == "<=" || op == "<" || op == ">" || op == ">=" || op == "!=" || op == "="; - } - Fields2.isCompareOp = isCompareOp; - Fields2.NULL = Fields2.literal(null); - })(Fields || (Fields = {})); - var Sources; - (function(Sources2) { - function tag(tag2) { - return { type: "tag", tag: tag2 }; - } - Sources2.tag = tag; - function csv(path) { - return { type: "csv", path }; - } - Sources2.csv = csv; - function folder(prefix) { - return { type: "folder", folder: prefix }; - } - Sources2.folder = folder; - function link(file, incoming) { - return { type: "link", file, direction: incoming ? "incoming" : "outgoing" }; - } - Sources2.link = link; - function binaryOp(left, op, right) { - return { type: "binaryop", left, op, right }; - } - Sources2.binaryOp = binaryOp; - function and(left, right) { - return { type: "binaryop", left, op: "&", right }; - } - Sources2.and = and; - function or(left, right) { - return { type: "binaryop", left, op: "|", right }; - } - Sources2.or = or; - function negate(child) { - return { type: "negate", child }; - } - Sources2.negate = negate; - function empty2() { - return { type: "empty" }; - } - Sources2.empty = empty2; - })(Sources || (Sources = {})); - var EMOJI_REGEX = new RegExp(emojiRegex2(), ""); - var DURATION_TYPES = { - year: Duration2.fromObject({ years: 1 }), - years: Duration2.fromObject({ years: 1 }), - yr: Duration2.fromObject({ years: 1 }), - yrs: Duration2.fromObject({ years: 1 }), - month: Duration2.fromObject({ months: 1 }), - months: Duration2.fromObject({ months: 1 }), - mo: Duration2.fromObject({ months: 1 }), - mos: Duration2.fromObject({ months: 1 }), - week: Duration2.fromObject({ weeks: 1 }), - weeks: Duration2.fromObject({ weeks: 1 }), - wk: Duration2.fromObject({ weeks: 1 }), - wks: Duration2.fromObject({ weeks: 1 }), - w: Duration2.fromObject({ weeks: 1 }), - day: Duration2.fromObject({ days: 1 }), - days: Duration2.fromObject({ days: 1 }), - d: Duration2.fromObject({ days: 1 }), - hour: Duration2.fromObject({ hours: 1 }), - hours: Duration2.fromObject({ hours: 1 }), - hr: Duration2.fromObject({ hours: 1 }), - hrs: Duration2.fromObject({ hours: 1 }), - h: Duration2.fromObject({ hours: 1 }), - minute: Duration2.fromObject({ minutes: 1 }), - minutes: Duration2.fromObject({ minutes: 1 }), - min: Duration2.fromObject({ minutes: 1 }), - mins: Duration2.fromObject({ minutes: 1 }), - m: Duration2.fromObject({ minutes: 1 }), - second: Duration2.fromObject({ seconds: 1 }), - seconds: Duration2.fromObject({ seconds: 1 }), - sec: Duration2.fromObject({ seconds: 1 }), - secs: Duration2.fromObject({ seconds: 1 }), - s: Duration2.fromObject({ seconds: 1 }) - }; - var DATE_SHORTHANDS = { - now: () => DateTime2.local(), - today: () => DateTime2.local().startOf("day"), - yesterday: () => DateTime2.local().startOf("day").minus(Duration2.fromObject({ days: 1 })), - tomorrow: () => DateTime2.local().startOf("day").plus(Duration2.fromObject({ days: 1 })), - sow: () => DateTime2.local().startOf("week"), - "start-of-week": () => DateTime2.local().startOf("week"), - eow: () => DateTime2.local().endOf("week"), - "end-of-week": () => DateTime2.local().endOf("week"), - soy: () => DateTime2.local().startOf("year"), - "start-of-year": () => DateTime2.local().startOf("year"), - eoy: () => DateTime2.local().endOf("year"), - "end-of-year": () => DateTime2.local().endOf("year"), - som: () => DateTime2.local().startOf("month"), - "start-of-month": () => DateTime2.local().startOf("month"), - eom: () => DateTime2.local().endOf("month"), - "end-of-month": () => DateTime2.local().endOf("month") - }; - var KEYWORDS = ["FROM", "WHERE", "LIMIT", "GROUP", "FLATTEN"]; - function splitOnUnescapedPipe(link) { - let pipe = -1; - while ((pipe = link.indexOf("|", pipe + 1)) >= 0) { - if (pipe > 0 && link[pipe - 1] == "\\") - continue; - return [link.substring(0, pipe).replace(/\\\|/g, "|"), link.substring(pipe + 1)]; - } - return [link.replace(/\\\|/g, "|"), void 0]; - } - function parseInnerLink(rawlink) { - let [link, display] = splitOnUnescapedPipe(rawlink); - return Link.infer(link, false, display); - } - function createBinaryParser(child, sep, combine) { - return parsimmon_umd_minExports.seqMap(child, parsimmon_umd_minExports.seq(parsimmon_umd_minExports.optWhitespace, sep, parsimmon_umd_minExports.optWhitespace, child).many(), (first, rest) => { - if (rest.length == 0) - return first; - let node = combine(first, rest[0][1], rest[0][3]); - for (let index = 1; index < rest.length; index++) { - node = combine(node, rest[index][1], rest[index][3]); - } - return node; - }); - } - function chainOpt(base, ...funcs) { - return parsimmon_umd_minExports.custom((success, failure) => { - return (input, i) => { - let result = base._(input, i); - if (!result.status) - return result; - for (let func of funcs) { - let next = func(result.value)._(input, result.index); - if (!next.status) - return result; - result = next; - } - return result; - }; - }); - } - var EXPRESSION = parsimmon_umd_minExports.createLanguage({ - // A floating point number; the decimal point is optional. - number: (q) => parsimmon_umd_minExports.regexp(/-?[0-9]+(\.[0-9]+)?/).map((str) => Number.parseFloat(str)).desc("number"), - // A quote-surrounded string which supports escape characters ('\'). - string: (q) => parsimmon_umd_minExports.string('"').then(parsimmon_umd_minExports.alt(q.escapeCharacter, parsimmon_umd_minExports.noneOf('"\\')).atLeast(0).map((chars) => chars.join(""))).skip(parsimmon_umd_minExports.string('"')).desc("string"), - escapeCharacter: (_) => parsimmon_umd_minExports.string("\\").then(parsimmon_umd_minExports.any).map((escaped) => { - if (escaped === '"') - return '"'; - if (escaped === "\\") - return "\\"; - else - return "\\" + escaped; - }), - // A boolean true/false value. - bool: (_) => parsimmon_umd_minExports.regexp(/true|false|True|False/).map((str) => str.toLowerCase() == "true").desc("boolean ('true' or 'false')"), - // A tag of the form '#stuff/hello-there'. - tag: (_) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.string("#"), parsimmon_umd_minExports.alt(parsimmon_umd_minExports.regexp(/[^\u2000-\u206F\u2E00-\u2E7F'!"#$%&()*+,.:;<=>?@^`{|}~\[\]\\\s]/).desc("text")).many(), (start, rest) => start + rest.join("")).desc("tag ('#hello/stuff')"), - // A variable identifier, which is alphanumeric and must start with a letter or... emoji. - identifier: (_) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.alt(parsimmon_umd_minExports.regexp(/\p{Letter}/u), parsimmon_umd_minExports.regexp(EMOJI_REGEX).desc("text")), parsimmon_umd_minExports.alt(parsimmon_umd_minExports.regexp(/[0-9\p{Letter}_-]/u), parsimmon_umd_minExports.regexp(EMOJI_REGEX).desc("text")).many(), (first, rest) => first + rest.join("")).desc("variable identifier"), - // An Obsidian link of the form [[]]. - link: (_) => parsimmon_umd_minExports.regexp(/\[\[([^\[\]]*?)\]\]/u, 1).map((linkInner) => parseInnerLink(linkInner)).desc("file link"), - // An embeddable link which can start with '!'. This overlaps with the normal negation operator, so it is only - // provided for metadata parsing. - embedLink: (q) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.string("!").atMost(1), q.link, (p, l3) => { - if (p.length > 0) - l3.embed = true; - return l3; - }).desc("file link"), - // Binary plus or minus operator. - binaryPlusMinus: (_) => parsimmon_umd_minExports.regexp(/\+|-/).map((str) => str).desc("'+' or '-'"), - // Binary times or divide operator. - binaryMulDiv: (_) => parsimmon_umd_minExports.regexp(/\*|\/|%/).map((str) => str).desc("'*' or '/' or '%'"), - // Binary comparison operator. - binaryCompareOp: (_) => parsimmon_umd_minExports.regexp(/>=|<=|!=|>|<|=/).map((str) => str).desc("'>=' or '<=' or '!=' or '=' or '>' or '<'"), - // Binary boolean combination operator. - binaryBooleanOp: (_) => parsimmon_umd_minExports.regexp(/and|or|&|\|/i).map((str) => { - if (str.toLowerCase() == "and") - return "&"; - else if (str.toLowerCase() == "or") - return "|"; - else - return str; - }).desc("'and' or 'or'"), - // A date which can be YYYY-MM[-DDTHH:mm:ss]. - rootDate: (_) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.regexp(/\d{4}/), parsimmon_umd_minExports.string("-"), parsimmon_umd_minExports.regexp(/\d{2}/), (year, _2, month) => { - return DateTime2.fromObject({ year: Number.parseInt(year), month: Number.parseInt(month) }); - }).desc("date in format YYYY-MM[-DDTHH-MM-SS.MS]"), - dateShorthand: (_) => parsimmon_umd_minExports.alt(...Object.keys(DATE_SHORTHANDS).sort((a, b) => b.length - a.length).map(parsimmon_umd_minExports.string)), - date: (q) => chainOpt(q.rootDate, (ym) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.string("-"), parsimmon_umd_minExports.regexp(/\d{2}/), (_, day) => ym.set({ day: Number.parseInt(day) })), (ymd) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.string("T"), parsimmon_umd_minExports.regexp(/\d{2}/), (_, hour) => ymd.set({ hour: Number.parseInt(hour) })), (ymdh) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.string(":"), parsimmon_umd_minExports.regexp(/\d{2}/), (_, minute) => ymdh.set({ minute: Number.parseInt(minute) })), (ymdhm) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.string(":"), parsimmon_umd_minExports.regexp(/\d{2}/), (_, second) => ymdhm.set({ second: Number.parseInt(second) })), (ymdhms) => parsimmon_umd_minExports.alt( - parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.string("."), parsimmon_umd_minExports.regexp(/\d{3}/), (_, millisecond) => ymdhms.set({ millisecond: Number.parseInt(millisecond) })), - parsimmon_umd_minExports.succeed(ymdhms) - // pass - ), (dt) => parsimmon_umd_minExports.alt(parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.string("+").or(parsimmon_umd_minExports.string("-")), parsimmon_umd_minExports.regexp(/\d{1,2}(:\d{2})?/), (pm, hr) => dt.setZone("UTC" + pm + hr, { keepLocalTime: true })), parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.string("Z"), () => dt.setZone("utc", { keepLocalTime: true })), parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.string("["), parsimmon_umd_minExports.regexp(/[0-9A-Za-z+-\/]+/u), parsimmon_umd_minExports.string("]"), (_a, zone, _b) => dt.setZone(zone, { keepLocalTime: true })))).assert((dt) => dt.isValid, "valid date").desc("date in format YYYY-MM[-DDTHH-MM-SS.MS]"), - // A date, plus various shorthand times of day it could be. - datePlus: (q) => parsimmon_umd_minExports.alt(q.dateShorthand.map((d) => DATE_SHORTHANDS[d]()), q.date).desc("date in format YYYY-MM[-DDTHH-MM-SS.MS] or in shorthand"), - // A duration of time. - durationType: (_) => parsimmon_umd_minExports.alt(...Object.keys(DURATION_TYPES).sort((a, b) => b.length - a.length).map(parsimmon_umd_minExports.string)), - duration: (q) => parsimmon_umd_minExports.seqMap(q.number, parsimmon_umd_minExports.optWhitespace, q.durationType, (count, _, t) => DURATION_TYPES[t].mapUnits((x) => x * count)).sepBy1(parsimmon_umd_minExports.string(",").trim(parsimmon_umd_minExports.optWhitespace).or(parsimmon_umd_minExports.optWhitespace)).map((durations) => durations.reduce((p, c) => p.plus(c))).desc("duration like 4hr2min"), - // A raw null value. - rawNull: (_) => parsimmon_umd_minExports.string("null"), - // Source parsing. - tagSource: (q) => q.tag.map((tag) => Sources.tag(tag)), - csvSource: (q) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.string("csv(").skip(parsimmon_umd_minExports.optWhitespace), q.string, parsimmon_umd_minExports.string(")"), (_1, path, _2) => Sources.csv(path)), - linkIncomingSource: (q) => q.link.map((link) => Sources.link(link.path, true)), - linkOutgoingSource: (q) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.string("outgoing(").skip(parsimmon_umd_minExports.optWhitespace), q.link, parsimmon_umd_minExports.string(")"), (_1, link, _2) => Sources.link(link.path, false)), - folderSource: (q) => q.string.map((str) => Sources.folder(str)), - parensSource: (q) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.string("("), parsimmon_umd_minExports.optWhitespace, q.source, parsimmon_umd_minExports.optWhitespace, parsimmon_umd_minExports.string(")"), (_1, _2, field, _3, _4) => field), - negateSource: (q) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.alt(parsimmon_umd_minExports.string("-"), parsimmon_umd_minExports.string("!")), q.atomSource, (_, source) => Sources.negate(source)), - atomSource: (q) => parsimmon_umd_minExports.alt(q.parensSource, q.negateSource, q.linkOutgoingSource, q.linkIncomingSource, q.folderSource, q.tagSource, q.csvSource), - binaryOpSource: (q) => createBinaryParser(q.atomSource, q.binaryBooleanOp.map((s3) => s3), Sources.binaryOp), - source: (q) => q.binaryOpSource, - // Field parsing. - variableField: (q) => q.identifier.chain((r) => { - if (KEYWORDS.includes(r.toUpperCase())) { - return parsimmon_umd_minExports.fail("Variable fields cannot be a keyword (" + KEYWORDS.join(" or ") + ")"); - } else { - return parsimmon_umd_minExports.succeed(Fields.variable(r)); - } - }).desc("variable"), - numberField: (q) => q.number.map((val) => Fields.literal(val)).desc("number"), - stringField: (q) => q.string.map((val) => Fields.literal(val)).desc("string"), - boolField: (q) => q.bool.map((val) => Fields.literal(val)).desc("boolean"), - dateField: (q) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.string("date("), parsimmon_umd_minExports.optWhitespace, q.datePlus, parsimmon_umd_minExports.optWhitespace, parsimmon_umd_minExports.string(")"), (prefix, _1, date, _2, postfix) => Fields.literal(date)).desc("date"), - durationField: (q) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.string("dur("), parsimmon_umd_minExports.optWhitespace, q.duration, parsimmon_umd_minExports.optWhitespace, parsimmon_umd_minExports.string(")"), (prefix, _1, dur, _2, postfix) => Fields.literal(dur)).desc("duration"), - nullField: (q) => q.rawNull.map((_) => Fields.NULL), - linkField: (q) => q.link.map((f) => Fields.literal(f)), - listField: (q) => q.field.sepBy(parsimmon_umd_minExports.string(",").trim(parsimmon_umd_minExports.optWhitespace)).wrap(parsimmon_umd_minExports.string("[").skip(parsimmon_umd_minExports.optWhitespace), parsimmon_umd_minExports.optWhitespace.then(parsimmon_umd_minExports.string("]"))).map((l3) => Fields.list(l3)).desc("list ('[1, 2, 3]')"), - objectField: (q) => parsimmon_umd_minExports.seqMap(q.identifier.or(q.string), parsimmon_umd_minExports.string(":").trim(parsimmon_umd_minExports.optWhitespace), q.field, (name, _sep, value) => { - return { name, value }; - }).sepBy(parsimmon_umd_minExports.string(",").trim(parsimmon_umd_minExports.optWhitespace)).wrap(parsimmon_umd_minExports.string("{").skip(parsimmon_umd_minExports.optWhitespace), parsimmon_umd_minExports.optWhitespace.then(parsimmon_umd_minExports.string("}"))).map((vals) => { - let res = {}; - for (let entry of vals) - res[entry.name] = entry.value; - return Fields.object(res); - }).desc("object ('{ a: 1, b: 2 }')"), - atomInlineField: (q) => parsimmon_umd_minExports.alt(q.date, q.duration.map((d) => normalizeDuration(d)), q.string, q.tag, q.embedLink, q.bool, q.number, q.rawNull), - inlineFieldList: (q) => q.atomInlineField.sepBy(parsimmon_umd_minExports.string(",").trim(parsimmon_umd_minExports.optWhitespace).lookahead(q.atomInlineField)), - inlineField: (q) => parsimmon_umd_minExports.alt(parsimmon_umd_minExports.seqMap(q.atomInlineField, parsimmon_umd_minExports.string(",").trim(parsimmon_umd_minExports.optWhitespace), q.inlineFieldList, (f, _s, l3) => [f].concat(l3)), q.atomInlineField), - atomField: (q) => parsimmon_umd_minExports.alt( - // Place embed links above negated fields as they are the special parser case '![[thing]]' and are generally unambigious. - q.embedLink.map((l3) => Fields.literal(l3)), - q.negatedField, - q.linkField, - q.listField, - q.objectField, - q.lambdaField, - q.parensField, - q.boolField, - q.numberField, - q.stringField, - q.dateField, - q.durationField, - q.nullField, - q.variableField - ), - indexField: (q) => parsimmon_umd_minExports.seqMap(q.atomField, parsimmon_umd_minExports.alt(q.dotPostfix, q.indexPostfix, q.functionPostfix).many(), (obj, postfixes) => { - let result = obj; - for (let post of postfixes) { - switch (post.type) { - case "dot": - result = Fields.index(result, Fields.literal(post.field)); - break; - case "index": - result = Fields.index(result, post.field); - break; - case "function": - result = Fields.func(result, post.fields); - break; - } - } - return result; - }), - negatedField: (q) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.string("!"), q.indexField, (_, field) => Fields.negate(field)).desc("negated field"), - parensField: (q) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.string("("), parsimmon_umd_minExports.optWhitespace, q.field, parsimmon_umd_minExports.optWhitespace, parsimmon_umd_minExports.string(")"), (_1, _2, field, _3, _4) => field), - lambdaField: (q) => parsimmon_umd_minExports.seqMap(q.identifier.sepBy(parsimmon_umd_minExports.string(",").trim(parsimmon_umd_minExports.optWhitespace)).wrap(parsimmon_umd_minExports.string("(").trim(parsimmon_umd_minExports.optWhitespace), parsimmon_umd_minExports.string(")").trim(parsimmon_umd_minExports.optWhitespace)), parsimmon_umd_minExports.string("=>").trim(parsimmon_umd_minExports.optWhitespace), q.field, (ident, _ignore, value) => { - return { type: "lambda", arguments: ident, value }; - }), - dotPostfix: (q) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.string("."), q.identifier, (_, field) => { - return { type: "dot", field }; - }), - indexPostfix: (q) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.string("["), parsimmon_umd_minExports.optWhitespace, q.field, parsimmon_umd_minExports.optWhitespace, parsimmon_umd_minExports.string("]"), (_, _2, field, _3, _4) => { - return { type: "index", field }; - }), - functionPostfix: (q) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.string("("), parsimmon_umd_minExports.optWhitespace, q.field.sepBy(parsimmon_umd_minExports.string(",").trim(parsimmon_umd_minExports.optWhitespace)), parsimmon_umd_minExports.optWhitespace, parsimmon_umd_minExports.string(")"), (_, _1, fields, _2, _3) => { - return { type: "function", fields }; - }), - // The precedence hierarchy of operators - multiply/divide, add/subtract, compare, and then boolean operations. - binaryMulDivField: (q) => createBinaryParser(q.indexField, q.binaryMulDiv, Fields.binaryOp), - binaryPlusMinusField: (q) => createBinaryParser(q.binaryMulDivField, q.binaryPlusMinus, Fields.binaryOp), - binaryCompareField: (q) => createBinaryParser(q.binaryPlusMinusField, q.binaryCompareOp, Fields.binaryOp), - binaryBooleanField: (q) => createBinaryParser(q.binaryCompareField, q.binaryBooleanOp, Fields.binaryOp), - binaryOpField: (q) => q.binaryBooleanField, - field: (q) => q.binaryOpField - }); - function parseField(text2) { - try { - return Result.success(EXPRESSION.field.tryParse(text2)); - } catch (error) { - return Result.failure("" + error); - } - } - var QueryFields; - (function(QueryFields2) { - function named(name, field) { - return { name, field }; - } - QueryFields2.named = named; - function sortBy(field, dir) { - return { field, direction: dir }; - } - QueryFields2.sortBy = sortBy; - })(QueryFields || (QueryFields = {})); - function captureRaw(base) { - return parsimmon_umd_minExports.custom((success, failure) => { - return (input, i) => { - let result = base._(input, i); - if (!result.status) - return result; - return Object.assign({}, result, { value: [result.value, input.substring(i, result.index)] }); - }; - }); - } - function stripNewlines(text2) { - return text2.split(/[\r\n]+/).map((t) => t.trim()).join(""); - } - function precededByWhitespaceIfNotEof(if_eof, parser) { - return parsimmon_umd_minExports.eof.map(if_eof).or(parsimmon_umd_minExports.whitespace.then(parser)); - } - var QUERY_LANGUAGE = parsimmon_umd_minExports.createLanguage({ - // Simple atom parsing, like words, identifiers, numbers. - queryType: (q) => parsimmon_umd_minExports.alt(parsimmon_umd_minExports.regexp(/TABLE|LIST|TASK|CALENDAR/i)).map((str) => str.toLowerCase()).desc("query type ('TABLE', 'LIST', 'TASK', or 'CALENDAR')"), - explicitNamedField: (q) => parsimmon_umd_minExports.seqMap(EXPRESSION.field.skip(parsimmon_umd_minExports.whitespace), parsimmon_umd_minExports.regexp(/AS/i).skip(parsimmon_umd_minExports.whitespace), EXPRESSION.identifier.or(EXPRESSION.string), (field, _as, ident) => QueryFields.named(ident, field)), - namedField: (q) => parsimmon_umd_minExports.alt(q.explicitNamedField, captureRaw(EXPRESSION.field).map(([value, text2]) => QueryFields.named(stripNewlines(text2), value))), - sortField: (q) => parsimmon_umd_minExports.seqMap(EXPRESSION.field.skip(parsimmon_umd_minExports.optWhitespace), parsimmon_umd_minExports.regexp(/ASCENDING|DESCENDING|ASC|DESC/i).atMost(1), (field, dir) => { - let direction = dir.length == 0 ? "ascending" : dir[0].toLowerCase(); - if (direction == "desc") - direction = "descending"; - if (direction == "asc") - direction = "ascending"; - return { - field, - direction - }; - }), - headerClause: (q) => q.queryType.chain((type) => { - switch (type) { - case "table": { - return precededByWhitespaceIfNotEof(() => ({ type, fields: [], showId: true }), parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.regexp(/WITHOUT\s+ID/i).skip(parsimmon_umd_minExports.optWhitespace).atMost(1), parsimmon_umd_minExports.sepBy(q.namedField, parsimmon_umd_minExports.string(",").trim(parsimmon_umd_minExports.optWhitespace)), (withoutId, fields) => { - return { type, fields, showId: withoutId.length == 0 }; - })); - } - case "list": - return precededByWhitespaceIfNotEof(() => ({ type, format: void 0, showId: true }), parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.regexp(/WITHOUT\s+ID/i).skip(parsimmon_umd_minExports.optWhitespace).atMost(1), EXPRESSION.field.atMost(1), (withoutId, format) => { - return { - type, - format: format.length == 1 ? format[0] : void 0, - showId: withoutId.length == 0 - }; - })); - case "task": - return parsimmon_umd_minExports.succeed({ type }); - case "calendar": - return parsimmon_umd_minExports.whitespace.then(parsimmon_umd_minExports.seqMap(q.namedField, (field) => { - return { - type, - showId: true, - field - }; - })); - default: - return parsimmon_umd_minExports.fail(`Unrecognized query type '${type}'`); - } - }).desc("TABLE or LIST or TASK or CALENDAR"), - fromClause: (q) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.regexp(/FROM/i), parsimmon_umd_minExports.whitespace, EXPRESSION.source, (_1, _2, source) => source), - whereClause: (q) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.regexp(/WHERE/i), parsimmon_umd_minExports.whitespace, EXPRESSION.field, (where, _, field) => { - return { type: "where", clause: field }; - }).desc("WHERE "), - sortByClause: (q) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.regexp(/SORT/i), parsimmon_umd_minExports.whitespace, q.sortField.sepBy1(parsimmon_umd_minExports.string(",").trim(parsimmon_umd_minExports.optWhitespace)), (sort, _1, fields) => { - return { type: "sort", fields }; - }).desc("SORT field [ASC/DESC]"), - limitClause: (q) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.regexp(/LIMIT/i), parsimmon_umd_minExports.whitespace, EXPRESSION.field, (limit, _1, field) => { - return { type: "limit", amount: field }; - }).desc("LIMIT "), - flattenClause: (q) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.regexp(/FLATTEN/i).skip(parsimmon_umd_minExports.whitespace), q.namedField, (_, field) => { - return { type: "flatten", field }; - }).desc("FLATTEN [AS ]"), - groupByClause: (q) => parsimmon_umd_minExports.seqMap(parsimmon_umd_minExports.regexp(/GROUP BY/i).skip(parsimmon_umd_minExports.whitespace), q.namedField, (_, field) => { - return { type: "group", field }; - }).desc("GROUP BY [AS ]"), - // Full query parsing. - clause: (q) => parsimmon_umd_minExports.alt(q.fromClause, q.whereClause, q.sortByClause, q.limitClause, q.groupByClause, q.flattenClause), - query: (q) => parsimmon_umd_minExports.seqMap(q.headerClause.trim(parsimmon_umd_minExports.optWhitespace), q.fromClause.trim(parsimmon_umd_minExports.optWhitespace).atMost(1), q.clause.trim(parsimmon_umd_minExports.optWhitespace).many(), (header, from, clauses) => { - return { - header, - source: from.length == 0 ? Sources.folder("") : from[0], - operations: clauses, - settings: DEFAULT_QUERY_SETTINGS - }; - }) - }); - var getAPI = (app) => { - var _a; - if (app) - return (_a = app.plugins.plugins.dataview) === null || _a === void 0 ? void 0 : _a.api; - else - return window.DataviewAPI; - }; - var isPluginEnabled = (app) => app.plugins.enabledPlugins.has("dataview"); - exports.DATE_SHORTHANDS = DATE_SHORTHANDS; - exports.DURATION_TYPES = DURATION_TYPES; - exports.EXPRESSION = EXPRESSION; - exports.KEYWORDS = KEYWORDS; - exports.QUERY_LANGUAGE = QUERY_LANGUAGE; - exports.getAPI = getAPI; - exports.isPluginEnabled = isPluginEnabled; - exports.parseField = parseField; - } -}); - -// node_modules/graphology/dist/graphology.umd.min.js -var require_graphology_umd_min = __commonJS({ - "node_modules/graphology/dist/graphology.umd.min.js"(exports, module2) { - !function(t, e) { - "object" == typeof exports && "undefined" != typeof module2 ? module2.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).graphology = e(); - }(exports, function() { - "use strict"; - function t(e2) { - return t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t2) { - return typeof t2; - } : function(t2) { - return t2 && "function" == typeof Symbol && t2.constructor === Symbol && t2 !== Symbol.prototype ? "symbol" : typeof t2; - }, t(e2); - } - function e(t2, e2) { - t2.prototype = Object.create(e2.prototype), t2.prototype.constructor = t2, r(t2, e2); - } - function n2(t2) { - return n2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t3) { - return t3.__proto__ || Object.getPrototypeOf(t3); - }, n2(t2); - } - function r(t2, e2) { - return r = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e3) { - return t3.__proto__ = e3, t3; - }, r(t2, e2); - } - function i() { - if ("undefined" == typeof Reflect || !Reflect.construct) - return false; - if (Reflect.construct.sham) - return false; - if ("function" == typeof Proxy) - return true; - try { - return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { - })), true; - } catch (t2) { - return false; - } - } - function o(t2, e2, n3) { - return o = i() ? Reflect.construct.bind() : function(t3, e3, n4) { - var i2 = [null]; - i2.push.apply(i2, e3); - var o2 = new (Function.bind.apply(t3, i2))(); - return n4 && r(o2, n4.prototype), o2; - }, o.apply(null, arguments); - } - function a(t2) { - var e2 = "function" == typeof Map ? /* @__PURE__ */ new Map() : void 0; - return a = function(t3) { - if (null === t3 || (i2 = t3, -1 === Function.toString.call(i2).indexOf("[native code]"))) - return t3; - var i2; - if ("function" != typeof t3) - throw new TypeError("Super expression must either be null or a function"); - if (void 0 !== e2) { - if (e2.has(t3)) - return e2.get(t3); - e2.set(t3, a2); - } - function a2() { - return o(t3, arguments, n2(this).constructor); - } - return a2.prototype = Object.create(t3.prototype, { constructor: { value: a2, enumerable: false, writable: true, configurable: true } }), r(a2, t3); - }, a(t2); - } - function c(t2) { - if (void 0 === t2) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return t2; - } - var u = function() { - for (var t2 = arguments[0], e2 = 1, n3 = arguments.length; e2 < n3; e2++) - if (arguments[e2]) - for (var r2 in arguments[e2]) - t2[r2] = arguments[e2][r2]; - return t2; - }; - function d(t2, e2, n3, r2) { - var i2 = t2._nodes.get(e2), o2 = null; - return i2 ? o2 = "mixed" === r2 ? i2.out && i2.out[n3] || i2.undirected && i2.undirected[n3] : "directed" === r2 ? i2.out && i2.out[n3] : i2.undirected && i2.undirected[n3] : o2; - } - function s2(e2) { - return "object" === t(e2) && null !== e2; - } - function h(t2) { - var e2; - for (e2 in t2) - return false; - return true; - } - function p(t2, e2, n3) { - Object.defineProperty(t2, e2, { enumerable: false, configurable: false, writable: true, value: n3 }); - } - function f(t2, e2, n3) { - var r2 = { enumerable: true, configurable: true }; - "function" == typeof n3 ? r2.get = n3 : (r2.value = n3, r2.writable = false), Object.defineProperty(t2, e2, r2); - } - function l2(t2) { - return !!s2(t2) && !(t2.attributes && !Array.isArray(t2.attributes)); - } - "function" == typeof Object.assign && (u = Object.assign); - var g, y = { exports: {} }, w = "object" == typeof Reflect ? Reflect : null, v = w && "function" == typeof w.apply ? w.apply : function(t2, e2, n3) { - return Function.prototype.apply.call(t2, e2, n3); - }; - g = w && "function" == typeof w.ownKeys ? w.ownKeys : Object.getOwnPropertySymbols ? function(t2) { - return Object.getOwnPropertyNames(t2).concat(Object.getOwnPropertySymbols(t2)); - } : function(t2) { - return Object.getOwnPropertyNames(t2); - }; - var b = Number.isNaN || function(t2) { - return t2 != t2; - }; - function m() { - m.init.call(this); - } - y.exports = m, y.exports.once = function(t2, e2) { - return new Promise(function(n3, r2) { - function i2(n4) { - t2.removeListener(e2, o2), r2(n4); - } - function o2() { - "function" == typeof t2.removeListener && t2.removeListener("error", i2), n3([].slice.call(arguments)); - } - U(t2, e2, o2, { once: true }), "error" !== e2 && function(t3, e3, n4) { - "function" == typeof t3.on && U(t3, "error", e3, n4); - }(t2, i2, { once: true }); - }); - }, m.EventEmitter = m, m.prototype._events = void 0, m.prototype._eventsCount = 0, m.prototype._maxListeners = void 0; - var k = 10; - function _(t2) { - if ("function" != typeof t2) - throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t2); - } - function G(t2) { - return void 0 === t2._maxListeners ? m.defaultMaxListeners : t2._maxListeners; - } - function x(t2, e2, n3, r2) { - var i2, o2, a2, c2; - if (_(n3), void 0 === (o2 = t2._events) ? (o2 = t2._events = /* @__PURE__ */ Object.create(null), t2._eventsCount = 0) : (void 0 !== o2.newListener && (t2.emit("newListener", e2, n3.listener ? n3.listener : n3), o2 = t2._events), a2 = o2[e2]), void 0 === a2) - a2 = o2[e2] = n3, ++t2._eventsCount; - else if ("function" == typeof a2 ? a2 = o2[e2] = r2 ? [n3, a2] : [a2, n3] : r2 ? a2.unshift(n3) : a2.push(n3), (i2 = G(t2)) > 0 && a2.length > i2 && !a2.warned) { - a2.warned = true; - var u2 = new Error("Possible EventEmitter memory leak detected. " + a2.length + " " + String(e2) + " listeners added. Use emitter.setMaxListeners() to increase limit"); - u2.name = "MaxListenersExceededWarning", u2.emitter = t2, u2.type = e2, u2.count = a2.length, c2 = u2, console && console.warn && console.warn(c2); - } - return t2; - } - function E() { - if (!this.fired) - return this.target.removeListener(this.type, this.wrapFn), this.fired = true, 0 === arguments.length ? this.listener.call(this.target) : this.listener.apply(this.target, arguments); - } - function A(t2, e2, n3) { - var r2 = { fired: false, wrapFn: void 0, target: t2, type: e2, listener: n3 }, i2 = E.bind(r2); - return i2.listener = n3, r2.wrapFn = i2, i2; - } - function L(t2, e2, n3) { - var r2 = t2._events; - if (void 0 === r2) - return []; - var i2 = r2[e2]; - return void 0 === i2 ? [] : "function" == typeof i2 ? n3 ? [i2.listener || i2] : [i2] : n3 ? function(t3) { - for (var e3 = new Array(t3.length), n4 = 0; n4 < e3.length; ++n4) - e3[n4] = t3[n4].listener || t3[n4]; - return e3; - }(i2) : D(i2, i2.length); - } - function S(t2) { - var e2 = this._events; - if (void 0 !== e2) { - var n3 = e2[t2]; - if ("function" == typeof n3) - return 1; - if (void 0 !== n3) - return n3.length; - } - return 0; - } - function D(t2, e2) { - for (var n3 = new Array(e2), r2 = 0; r2 < e2; ++r2) - n3[r2] = t2[r2]; - return n3; - } - function U(t2, e2, n3, r2) { - if ("function" == typeof t2.on) - r2.once ? t2.once(e2, n3) : t2.on(e2, n3); - else { - if ("function" != typeof t2.addEventListener) - throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t2); - t2.addEventListener(e2, function i2(o2) { - r2.once && t2.removeEventListener(e2, i2), n3(o2); - }); - } - } - function N(t2) { - if ("function" != typeof t2) - throw new Error("obliterator/iterator: expecting a function!"); - this.next = t2; - } - Object.defineProperty(m, "defaultMaxListeners", { enumerable: true, get: function() { - return k; - }, set: function(t2) { - if ("number" != typeof t2 || t2 < 0 || b(t2)) - throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t2 + "."); - k = t2; - } }), m.init = function() { - void 0 !== this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0; - }, m.prototype.setMaxListeners = function(t2) { - if ("number" != typeof t2 || t2 < 0 || b(t2)) - throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + t2 + "."); - return this._maxListeners = t2, this; - }, m.prototype.getMaxListeners = function() { - return G(this); - }, m.prototype.emit = function(t2) { - for (var e2 = [], n3 = 1; n3 < arguments.length; n3++) - e2.push(arguments[n3]); - var r2 = "error" === t2, i2 = this._events; - if (void 0 !== i2) - r2 = r2 && void 0 === i2.error; - else if (!r2) - return false; - if (r2) { - var o2; - if (e2.length > 0 && (o2 = e2[0]), o2 instanceof Error) - throw o2; - var a2 = new Error("Unhandled error." + (o2 ? " (" + o2.message + ")" : "")); - throw a2.context = o2, a2; - } - var c2 = i2[t2]; - if (void 0 === c2) - return false; - if ("function" == typeof c2) - v(c2, this, e2); - else { - var u2 = c2.length, d2 = D(c2, u2); - for (n3 = 0; n3 < u2; ++n3) - v(d2[n3], this, e2); - } - return true; - }, m.prototype.addListener = function(t2, e2) { - return x(this, t2, e2, false); - }, m.prototype.on = m.prototype.addListener, m.prototype.prependListener = function(t2, e2) { - return x(this, t2, e2, true); - }, m.prototype.once = function(t2, e2) { - return _(e2), this.on(t2, A(this, t2, e2)), this; - }, m.prototype.prependOnceListener = function(t2, e2) { - return _(e2), this.prependListener(t2, A(this, t2, e2)), this; - }, m.prototype.removeListener = function(t2, e2) { - var n3, r2, i2, o2, a2; - if (_(e2), void 0 === (r2 = this._events)) - return this; - if (void 0 === (n3 = r2[t2])) - return this; - if (n3 === e2 || n3.listener === e2) - 0 == --this._eventsCount ? this._events = /* @__PURE__ */ Object.create(null) : (delete r2[t2], r2.removeListener && this.emit("removeListener", t2, n3.listener || e2)); - else if ("function" != typeof n3) { - for (i2 = -1, o2 = n3.length - 1; o2 >= 0; o2--) - if (n3[o2] === e2 || n3[o2].listener === e2) { - a2 = n3[o2].listener, i2 = o2; - break; - } - if (i2 < 0) - return this; - 0 === i2 ? n3.shift() : function(t3, e3) { - for (; e3 + 1 < t3.length; e3++) - t3[e3] = t3[e3 + 1]; - t3.pop(); - }(n3, i2), 1 === n3.length && (r2[t2] = n3[0]), void 0 !== r2.removeListener && this.emit("removeListener", t2, a2 || e2); - } - return this; - }, m.prototype.off = m.prototype.removeListener, m.prototype.removeAllListeners = function(t2) { - var e2, n3, r2; - if (void 0 === (n3 = this._events)) - return this; - if (void 0 === n3.removeListener) - return 0 === arguments.length ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : void 0 !== n3[t2] && (0 == --this._eventsCount ? this._events = /* @__PURE__ */ Object.create(null) : delete n3[t2]), this; - if (0 === arguments.length) { - var i2, o2 = Object.keys(n3); - for (r2 = 0; r2 < o2.length; ++r2) - "removeListener" !== (i2 = o2[r2]) && this.removeAllListeners(i2); - return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this; - } - if ("function" == typeof (e2 = n3[t2])) - this.removeListener(t2, e2); - else if (void 0 !== e2) - for (r2 = e2.length - 1; r2 >= 0; r2--) - this.removeListener(t2, e2[r2]); - return this; - }, m.prototype.listeners = function(t2) { - return L(this, t2, true); - }, m.prototype.rawListeners = function(t2) { - return L(this, t2, false); - }, m.listenerCount = function(t2, e2) { - return "function" == typeof t2.listenerCount ? t2.listenerCount(e2) : S.call(t2, e2); - }, m.prototype.listenerCount = S, m.prototype.eventNames = function() { - return this._eventsCount > 0 ? g(this._events) : []; - }, "undefined" != typeof Symbol && (N.prototype[Symbol.iterator] = function() { - return this; - }), N.of = function() { - var t2 = arguments, e2 = t2.length, n3 = 0; - return new N(function() { - return n3 >= e2 ? { done: true } : { done: false, value: t2[n3++] }; - }); - }, N.empty = function() { - return new N(function() { - return { done: true }; - }); - }, N.fromSequence = function(t2) { - var e2 = 0, n3 = t2.length; - return new N(function() { - return e2 >= n3 ? { done: true } : { done: false, value: t2[e2++] }; - }); - }, N.is = function(t2) { - return t2 instanceof N || "object" == typeof t2 && null !== t2 && "function" == typeof t2.next; - }; - var O = N, j = {}; - j.ARRAY_BUFFER_SUPPORT = "undefined" != typeof ArrayBuffer, j.SYMBOL_SUPPORT = "undefined" != typeof Symbol; - var C = O, M = j, z2 = M.ARRAY_BUFFER_SUPPORT, W = M.SYMBOL_SUPPORT; - var P = function(t2) { - var e2 = function(t3) { - return "string" == typeof t3 || Array.isArray(t3) || z2 && ArrayBuffer.isView(t3) ? C.fromSequence(t3) : "object" != typeof t3 || null === t3 ? null : W && "function" == typeof t3[Symbol.iterator] ? t3[Symbol.iterator]() : "function" == typeof t3.next ? t3 : null; - }(t2); - if (!e2) - throw new Error("obliterator: target is not iterable nor a valid iterator."); - return e2; - }, R = P, K = function(t2, e2) { - for (var n3, r2 = arguments.length > 1 ? e2 : 1 / 0, i2 = r2 !== 1 / 0 ? new Array(r2) : [], o2 = 0, a2 = R(t2); ; ) { - if (o2 === r2) - return i2; - if ((n3 = a2.next()).done) - return o2 !== e2 && (i2.length = o2), i2; - i2[o2++] = n3.value; - } - }, T = function(t2) { - function n3(e2) { - var n4; - return (n4 = t2.call(this) || this).name = "GraphError", n4.message = e2, n4; - } - return e(n3, t2), n3; - }(a(Error)), B = function(t2) { - function n3(e2) { - var r2; - return (r2 = t2.call(this, e2) || this).name = "InvalidArgumentsGraphError", "function" == typeof Error.captureStackTrace && Error.captureStackTrace(c(r2), n3.prototype.constructor), r2; - } - return e(n3, t2), n3; - }(T), F = function(t2) { - function n3(e2) { - var r2; - return (r2 = t2.call(this, e2) || this).name = "NotFoundGraphError", "function" == typeof Error.captureStackTrace && Error.captureStackTrace(c(r2), n3.prototype.constructor), r2; - } - return e(n3, t2), n3; - }(T), I = function(t2) { - function n3(e2) { - var r2; - return (r2 = t2.call(this, e2) || this).name = "UsageGraphError", "function" == typeof Error.captureStackTrace && Error.captureStackTrace(c(r2), n3.prototype.constructor), r2; - } - return e(n3, t2), n3; - }(T); - function Y(t2, e2) { - this.key = t2, this.attributes = e2, this.clear(); - } - function q(t2, e2) { - this.key = t2, this.attributes = e2, this.clear(); - } - function J(t2, e2) { - this.key = t2, this.attributes = e2, this.clear(); - } - function V(t2, e2, n3, r2, i2) { - this.key = e2, this.attributes = i2, this.undirected = t2, this.source = n3, this.target = r2; - } - Y.prototype.clear = function() { - this.inDegree = 0, this.outDegree = 0, this.undirectedDegree = 0, this.undirectedLoops = 0, this.directedLoops = 0, this.in = {}, this.out = {}, this.undirected = {}; - }, q.prototype.clear = function() { - this.inDegree = 0, this.outDegree = 0, this.directedLoops = 0, this.in = {}, this.out = {}; - }, J.prototype.clear = function() { - this.undirectedDegree = 0, this.undirectedLoops = 0, this.undirected = {}; - }, V.prototype.attach = function() { - var t2 = "out", e2 = "in"; - this.undirected && (t2 = e2 = "undirected"); - var n3 = this.source.key, r2 = this.target.key; - this.source[t2][r2] = this, this.undirected && n3 === r2 || (this.target[e2][n3] = this); - }, V.prototype.attachMulti = function() { - var t2 = "out", e2 = "in", n3 = this.source.key, r2 = this.target.key; - this.undirected && (t2 = e2 = "undirected"); - var i2 = this.source[t2], o2 = i2[r2]; - if (void 0 === o2) - return i2[r2] = this, void (this.undirected && n3 === r2 || (this.target[e2][n3] = this)); - o2.previous = this, this.next = o2, i2[r2] = this, this.target[e2][n3] = this; - }, V.prototype.detach = function() { - var t2 = this.source.key, e2 = this.target.key, n3 = "out", r2 = "in"; - this.undirected && (n3 = r2 = "undirected"), delete this.source[n3][e2], delete this.target[r2][t2]; - }, V.prototype.detachMulti = function() { - var t2 = this.source.key, e2 = this.target.key, n3 = "out", r2 = "in"; - this.undirected && (n3 = r2 = "undirected"), void 0 === this.previous ? void 0 === this.next ? (delete this.source[n3][e2], delete this.target[r2][t2]) : (this.next.previous = void 0, this.source[n3][e2] = this.next, this.target[r2][t2] = this.next) : (this.previous.next = this.next, void 0 !== this.next && (this.next.previous = this.previous)); - }; - function H(t2, e2, n3, r2, i2, o2, a2) { - var c2, u2, d2, s3; - if (r2 = "" + r2, 0 === n3) { - if (!(c2 = t2._nodes.get(r2))) - throw new F("Graph.".concat(e2, ': could not find the "').concat(r2, '" node in the graph.')); - d2 = i2, s3 = o2; - } else if (3 === n3) { - if (i2 = "" + i2, !(u2 = t2._edges.get(i2))) - throw new F("Graph.".concat(e2, ': could not find the "').concat(i2, '" edge in the graph.')); - var h2 = u2.source.key, p2 = u2.target.key; - if (r2 === h2) - c2 = u2.target; - else { - if (r2 !== p2) - throw new F("Graph.".concat(e2, ': the "').concat(r2, '" node is not attached to the "').concat(i2, '" edge (').concat(h2, ", ").concat(p2, ").")); - c2 = u2.source; - } - d2 = o2, s3 = a2; - } else { - if (!(u2 = t2._edges.get(r2))) - throw new F("Graph.".concat(e2, ': could not find the "').concat(r2, '" edge in the graph.')); - c2 = 1 === n3 ? u2.source : u2.target, d2 = i2, s3 = o2; - } - return [c2, d2, s3]; - } - var Q = [{ name: function(t2) { - return "get".concat(t2, "Attribute"); - }, attacher: function(t2, e2, n3) { - t2.prototype[e2] = function(t3, r2, i2) { - var o2 = H(this, e2, n3, t3, r2, i2), a2 = o2[0], c2 = o2[1]; - return a2.attributes[c2]; - }; - } }, { name: function(t2) { - return "get".concat(t2, "Attributes"); - }, attacher: function(t2, e2, n3) { - t2.prototype[e2] = function(t3, r2) { - return H(this, e2, n3, t3, r2)[0].attributes; - }; - } }, { name: function(t2) { - return "has".concat(t2, "Attribute"); - }, attacher: function(t2, e2, n3) { - t2.prototype[e2] = function(t3, r2, i2) { - var o2 = H(this, e2, n3, t3, r2, i2), a2 = o2[0], c2 = o2[1]; - return a2.attributes.hasOwnProperty(c2); - }; - } }, { name: function(t2) { - return "set".concat(t2, "Attribute"); - }, attacher: function(t2, e2, n3) { - t2.prototype[e2] = function(t3, r2, i2, o2) { - var a2 = H(this, e2, n3, t3, r2, i2, o2), c2 = a2[0], u2 = a2[1], d2 = a2[2]; - return c2.attributes[u2] = d2, this.emit("nodeAttributesUpdated", { key: c2.key, type: "set", attributes: c2.attributes, name: u2 }), this; - }; - } }, { name: function(t2) { - return "update".concat(t2, "Attribute"); - }, attacher: function(t2, e2, n3) { - t2.prototype[e2] = function(t3, r2, i2, o2) { - var a2 = H(this, e2, n3, t3, r2, i2, o2), c2 = a2[0], u2 = a2[1], d2 = a2[2]; - if ("function" != typeof d2) - throw new B("Graph.".concat(e2, ": updater should be a function.")); - var s3 = c2.attributes, h2 = d2(s3[u2]); - return s3[u2] = h2, this.emit("nodeAttributesUpdated", { key: c2.key, type: "set", attributes: c2.attributes, name: u2 }), this; - }; - } }, { name: function(t2) { - return "remove".concat(t2, "Attribute"); - }, attacher: function(t2, e2, n3) { - t2.prototype[e2] = function(t3, r2, i2) { - var o2 = H(this, e2, n3, t3, r2, i2), a2 = o2[0], c2 = o2[1]; - return delete a2.attributes[c2], this.emit("nodeAttributesUpdated", { key: a2.key, type: "remove", attributes: a2.attributes, name: c2 }), this; - }; - } }, { name: function(t2) { - return "replace".concat(t2, "Attributes"); - }, attacher: function(t2, e2, n3) { - t2.prototype[e2] = function(t3, r2, i2) { - var o2 = H(this, e2, n3, t3, r2, i2), a2 = o2[0], c2 = o2[1]; - if (!s2(c2)) - throw new B("Graph.".concat(e2, ": provided attributes are not a plain object.")); - return a2.attributes = c2, this.emit("nodeAttributesUpdated", { key: a2.key, type: "replace", attributes: a2.attributes }), this; - }; - } }, { name: function(t2) { - return "merge".concat(t2, "Attributes"); - }, attacher: function(t2, e2, n3) { - t2.prototype[e2] = function(t3, r2, i2) { - var o2 = H(this, e2, n3, t3, r2, i2), a2 = o2[0], c2 = o2[1]; - if (!s2(c2)) - throw new B("Graph.".concat(e2, ": provided attributes are not a plain object.")); - return u(a2.attributes, c2), this.emit("nodeAttributesUpdated", { key: a2.key, type: "merge", attributes: a2.attributes, data: c2 }), this; - }; - } }, { name: function(t2) { - return "update".concat(t2, "Attributes"); - }, attacher: function(t2, e2, n3) { - t2.prototype[e2] = function(t3, r2, i2) { - var o2 = H(this, e2, n3, t3, r2, i2), a2 = o2[0], c2 = o2[1]; - if ("function" != typeof c2) - throw new B("Graph.".concat(e2, ": provided updater is not a function.")); - return a2.attributes = c2(a2.attributes), this.emit("nodeAttributesUpdated", { key: a2.key, type: "update", attributes: a2.attributes }), this; - }; - } }]; - var X = [{ name: function(t2) { - return "get".concat(t2, "Attribute"); - }, attacher: function(t2, e2, n3) { - t2.prototype[e2] = function(t3, r2) { - var i2; - if ("mixed" !== this.type && "mixed" !== n3 && n3 !== this.type) - throw new I("Graph.".concat(e2, ": cannot find this type of edges in your ").concat(this.type, " graph.")); - if (arguments.length > 2) { - if (this.multi) - throw new I("Graph.".concat(e2, ": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.")); - var o2 = "" + t3, a2 = "" + r2; - if (r2 = arguments[2], !(i2 = d(this, o2, a2, n3))) - throw new F("Graph.".concat(e2, ': could not find an edge for the given path ("').concat(o2, '" - "').concat(a2, '").')); - } else { - if ("mixed" !== n3) - throw new I("Graph.".concat(e2, ": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.")); - if (t3 = "" + t3, !(i2 = this._edges.get(t3))) - throw new F("Graph.".concat(e2, ': could not find the "').concat(t3, '" edge in the graph.')); - } - return i2.attributes[r2]; - }; - } }, { name: function(t2) { - return "get".concat(t2, "Attributes"); - }, attacher: function(t2, e2, n3) { - t2.prototype[e2] = function(t3) { - var r2; - if ("mixed" !== this.type && "mixed" !== n3 && n3 !== this.type) - throw new I("Graph.".concat(e2, ": cannot find this type of edges in your ").concat(this.type, " graph.")); - if (arguments.length > 1) { - if (this.multi) - throw new I("Graph.".concat(e2, ": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.")); - var i2 = "" + t3, o2 = "" + arguments[1]; - if (!(r2 = d(this, i2, o2, n3))) - throw new F("Graph.".concat(e2, ': could not find an edge for the given path ("').concat(i2, '" - "').concat(o2, '").')); - } else { - if ("mixed" !== n3) - throw new I("Graph.".concat(e2, ": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.")); - if (t3 = "" + t3, !(r2 = this._edges.get(t3))) - throw new F("Graph.".concat(e2, ': could not find the "').concat(t3, '" edge in the graph.')); - } - return r2.attributes; - }; - } }, { name: function(t2) { - return "has".concat(t2, "Attribute"); - }, attacher: function(t2, e2, n3) { - t2.prototype[e2] = function(t3, r2) { - var i2; - if ("mixed" !== this.type && "mixed" !== n3 && n3 !== this.type) - throw new I("Graph.".concat(e2, ": cannot find this type of edges in your ").concat(this.type, " graph.")); - if (arguments.length > 2) { - if (this.multi) - throw new I("Graph.".concat(e2, ": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.")); - var o2 = "" + t3, a2 = "" + r2; - if (r2 = arguments[2], !(i2 = d(this, o2, a2, n3))) - throw new F("Graph.".concat(e2, ': could not find an edge for the given path ("').concat(o2, '" - "').concat(a2, '").')); - } else { - if ("mixed" !== n3) - throw new I("Graph.".concat(e2, ": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.")); - if (t3 = "" + t3, !(i2 = this._edges.get(t3))) - throw new F("Graph.".concat(e2, ': could not find the "').concat(t3, '" edge in the graph.')); - } - return i2.attributes.hasOwnProperty(r2); - }; - } }, { name: function(t2) { - return "set".concat(t2, "Attribute"); - }, attacher: function(t2, e2, n3) { - t2.prototype[e2] = function(t3, r2, i2) { - var o2; - if ("mixed" !== this.type && "mixed" !== n3 && n3 !== this.type) - throw new I("Graph.".concat(e2, ": cannot find this type of edges in your ").concat(this.type, " graph.")); - if (arguments.length > 3) { - if (this.multi) - throw new I("Graph.".concat(e2, ": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.")); - var a2 = "" + t3, c2 = "" + r2; - if (r2 = arguments[2], i2 = arguments[3], !(o2 = d(this, a2, c2, n3))) - throw new F("Graph.".concat(e2, ': could not find an edge for the given path ("').concat(a2, '" - "').concat(c2, '").')); - } else { - if ("mixed" !== n3) - throw new I("Graph.".concat(e2, ": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.")); - if (t3 = "" + t3, !(o2 = this._edges.get(t3))) - throw new F("Graph.".concat(e2, ': could not find the "').concat(t3, '" edge in the graph.')); - } - return o2.attributes[r2] = i2, this.emit("edgeAttributesUpdated", { key: o2.key, type: "set", attributes: o2.attributes, name: r2 }), this; - }; - } }, { name: function(t2) { - return "update".concat(t2, "Attribute"); - }, attacher: function(t2, e2, n3) { - t2.prototype[e2] = function(t3, r2, i2) { - var o2; - if ("mixed" !== this.type && "mixed" !== n3 && n3 !== this.type) - throw new I("Graph.".concat(e2, ": cannot find this type of edges in your ").concat(this.type, " graph.")); - if (arguments.length > 3) { - if (this.multi) - throw new I("Graph.".concat(e2, ": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.")); - var a2 = "" + t3, c2 = "" + r2; - if (r2 = arguments[2], i2 = arguments[3], !(o2 = d(this, a2, c2, n3))) - throw new F("Graph.".concat(e2, ': could not find an edge for the given path ("').concat(a2, '" - "').concat(c2, '").')); - } else { - if ("mixed" !== n3) - throw new I("Graph.".concat(e2, ": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.")); - if (t3 = "" + t3, !(o2 = this._edges.get(t3))) - throw new F("Graph.".concat(e2, ': could not find the "').concat(t3, '" edge in the graph.')); - } - if ("function" != typeof i2) - throw new B("Graph.".concat(e2, ": updater should be a function.")); - return o2.attributes[r2] = i2(o2.attributes[r2]), this.emit("edgeAttributesUpdated", { key: o2.key, type: "set", attributes: o2.attributes, name: r2 }), this; - }; - } }, { name: function(t2) { - return "remove".concat(t2, "Attribute"); - }, attacher: function(t2, e2, n3) { - t2.prototype[e2] = function(t3, r2) { - var i2; - if ("mixed" !== this.type && "mixed" !== n3 && n3 !== this.type) - throw new I("Graph.".concat(e2, ": cannot find this type of edges in your ").concat(this.type, " graph.")); - if (arguments.length > 2) { - if (this.multi) - throw new I("Graph.".concat(e2, ": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.")); - var o2 = "" + t3, a2 = "" + r2; - if (r2 = arguments[2], !(i2 = d(this, o2, a2, n3))) - throw new F("Graph.".concat(e2, ': could not find an edge for the given path ("').concat(o2, '" - "').concat(a2, '").')); - } else { - if ("mixed" !== n3) - throw new I("Graph.".concat(e2, ": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.")); - if (t3 = "" + t3, !(i2 = this._edges.get(t3))) - throw new F("Graph.".concat(e2, ': could not find the "').concat(t3, '" edge in the graph.')); - } - return delete i2.attributes[r2], this.emit("edgeAttributesUpdated", { key: i2.key, type: "remove", attributes: i2.attributes, name: r2 }), this; - }; - } }, { name: function(t2) { - return "replace".concat(t2, "Attributes"); - }, attacher: function(t2, e2, n3) { - t2.prototype[e2] = function(t3, r2) { - var i2; - if ("mixed" !== this.type && "mixed" !== n3 && n3 !== this.type) - throw new I("Graph.".concat(e2, ": cannot find this type of edges in your ").concat(this.type, " graph.")); - if (arguments.length > 2) { - if (this.multi) - throw new I("Graph.".concat(e2, ": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.")); - var o2 = "" + t3, a2 = "" + r2; - if (r2 = arguments[2], !(i2 = d(this, o2, a2, n3))) - throw new F("Graph.".concat(e2, ': could not find an edge for the given path ("').concat(o2, '" - "').concat(a2, '").')); - } else { - if ("mixed" !== n3) - throw new I("Graph.".concat(e2, ": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.")); - if (t3 = "" + t3, !(i2 = this._edges.get(t3))) - throw new F("Graph.".concat(e2, ': could not find the "').concat(t3, '" edge in the graph.')); - } - if (!s2(r2)) - throw new B("Graph.".concat(e2, ": provided attributes are not a plain object.")); - return i2.attributes = r2, this.emit("edgeAttributesUpdated", { key: i2.key, type: "replace", attributes: i2.attributes }), this; - }; - } }, { name: function(t2) { - return "merge".concat(t2, "Attributes"); - }, attacher: function(t2, e2, n3) { - t2.prototype[e2] = function(t3, r2) { - var i2; - if ("mixed" !== this.type && "mixed" !== n3 && n3 !== this.type) - throw new I("Graph.".concat(e2, ": cannot find this type of edges in your ").concat(this.type, " graph.")); - if (arguments.length > 2) { - if (this.multi) - throw new I("Graph.".concat(e2, ": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.")); - var o2 = "" + t3, a2 = "" + r2; - if (r2 = arguments[2], !(i2 = d(this, o2, a2, n3))) - throw new F("Graph.".concat(e2, ': could not find an edge for the given path ("').concat(o2, '" - "').concat(a2, '").')); - } else { - if ("mixed" !== n3) - throw new I("Graph.".concat(e2, ": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.")); - if (t3 = "" + t3, !(i2 = this._edges.get(t3))) - throw new F("Graph.".concat(e2, ': could not find the "').concat(t3, '" edge in the graph.')); - } - if (!s2(r2)) - throw new B("Graph.".concat(e2, ": provided attributes are not a plain object.")); - return u(i2.attributes, r2), this.emit("edgeAttributesUpdated", { key: i2.key, type: "merge", attributes: i2.attributes, data: r2 }), this; - }; - } }, { name: function(t2) { - return "update".concat(t2, "Attributes"); - }, attacher: function(t2, e2, n3) { - t2.prototype[e2] = function(t3, r2) { - var i2; - if ("mixed" !== this.type && "mixed" !== n3 && n3 !== this.type) - throw new I("Graph.".concat(e2, ": cannot find this type of edges in your ").concat(this.type, " graph.")); - if (arguments.length > 2) { - if (this.multi) - throw new I("Graph.".concat(e2, ": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.")); - var o2 = "" + t3, a2 = "" + r2; - if (r2 = arguments[2], !(i2 = d(this, o2, a2, n3))) - throw new F("Graph.".concat(e2, ': could not find an edge for the given path ("').concat(o2, '" - "').concat(a2, '").')); - } else { - if ("mixed" !== n3) - throw new I("Graph.".concat(e2, ": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.")); - if (t3 = "" + t3, !(i2 = this._edges.get(t3))) - throw new F("Graph.".concat(e2, ': could not find the "').concat(t3, '" edge in the graph.')); - } - if ("function" != typeof r2) - throw new B("Graph.".concat(e2, ": provided updater is not a function.")); - return i2.attributes = r2(i2.attributes), this.emit("edgeAttributesUpdated", { key: i2.key, type: "update", attributes: i2.attributes }), this; - }; - } }]; - var Z = O, $ = P, tt = function() { - var t2 = arguments, e2 = null, n3 = -1; - return new Z(function() { - for (var r2 = null; ; ) { - if (null === e2) { - if (++n3 >= t2.length) - return { done: true }; - e2 = $(t2[n3]); - } - if (true !== (r2 = e2.next()).done) - break; - e2 = null; - } - return r2; - }); - }, et = [{ name: "edges", type: "mixed" }, { name: "inEdges", type: "directed", direction: "in" }, { name: "outEdges", type: "directed", direction: "out" }, { name: "inboundEdges", type: "mixed", direction: "in" }, { name: "outboundEdges", type: "mixed", direction: "out" }, { name: "directedEdges", type: "directed" }, { name: "undirectedEdges", type: "undirected" }]; - function nt(t2, e2, n3, r2) { - var i2 = false; - for (var o2 in e2) - if (o2 !== r2) { - var a2 = e2[o2]; - if (i2 = n3(a2.key, a2.attributes, a2.source.key, a2.target.key, a2.source.attributes, a2.target.attributes, a2.undirected), t2 && i2) - return a2.key; - } - } - function rt(t2, e2, n3, r2) { - var i2, o2, a2, c2 = false; - for (var u2 in e2) - if (u2 !== r2) { - i2 = e2[u2]; - do { - if (o2 = i2.source, a2 = i2.target, c2 = n3(i2.key, i2.attributes, o2.key, a2.key, o2.attributes, a2.attributes, i2.undirected), t2 && c2) - return i2.key; - i2 = i2.next; - } while (void 0 !== i2); - } - } - function it(t2, e2) { - var n3, r2 = Object.keys(t2), i2 = r2.length, o2 = 0; - return new O(function() { - do { - if (n3) - n3 = n3.next; - else { - if (o2 >= i2) - return { done: true }; - var a2 = r2[o2++]; - if (a2 === e2) { - n3 = void 0; - continue; - } - n3 = t2[a2]; - } - } while (!n3); - return { done: false, value: { edge: n3.key, attributes: n3.attributes, source: n3.source.key, target: n3.target.key, sourceAttributes: n3.source.attributes, targetAttributes: n3.target.attributes, undirected: n3.undirected } }; - }); - } - function ot(t2, e2, n3, r2) { - var i2 = e2[n3]; - if (i2) { - var o2 = i2.source, a2 = i2.target; - return r2(i2.key, i2.attributes, o2.key, a2.key, o2.attributes, a2.attributes, i2.undirected) && t2 ? i2.key : void 0; - } - } - function at(t2, e2, n3, r2) { - var i2 = e2[n3]; - if (i2) { - var o2 = false; - do { - if (o2 = r2(i2.key, i2.attributes, i2.source.key, i2.target.key, i2.source.attributes, i2.target.attributes, i2.undirected), t2 && o2) - return i2.key; - i2 = i2.next; - } while (void 0 !== i2); - } - } - function ct(t2, e2) { - var n3 = t2[e2]; - return void 0 !== n3.next ? new O(function() { - if (!n3) - return { done: true }; - var t3 = { edge: n3.key, attributes: n3.attributes, source: n3.source.key, target: n3.target.key, sourceAttributes: n3.source.attributes, targetAttributes: n3.target.attributes, undirected: n3.undirected }; - return n3 = n3.next, { done: false, value: t3 }; - }) : O.of({ edge: n3.key, attributes: n3.attributes, source: n3.source.key, target: n3.target.key, sourceAttributes: n3.source.attributes, targetAttributes: n3.target.attributes, undirected: n3.undirected }); - } - function ut(t2, e2) { - if (0 === t2.size) - return []; - if ("mixed" === e2 || e2 === t2.type) - return "function" == typeof Array.from ? Array.from(t2._edges.keys()) : K(t2._edges.keys(), t2._edges.size); - for (var n3, r2, i2 = "undirected" === e2 ? t2.undirectedSize : t2.directedSize, o2 = new Array(i2), a2 = "undirected" === e2, c2 = t2._edges.values(), u2 = 0; true !== (n3 = c2.next()).done; ) - (r2 = n3.value).undirected === a2 && (o2[u2++] = r2.key); - return o2; - } - function dt(t2, e2, n3, r2) { - if (0 !== e2.size) { - for (var i2, o2, a2 = "mixed" !== n3 && n3 !== e2.type, c2 = "undirected" === n3, u2 = false, d2 = e2._edges.values(); true !== (i2 = d2.next()).done; ) - if (o2 = i2.value, !a2 || o2.undirected === c2) { - var s3 = o2, h2 = s3.key, p2 = s3.attributes, f2 = s3.source, l3 = s3.target; - if (u2 = r2(h2, p2, f2.key, l3.key, f2.attributes, l3.attributes, o2.undirected), t2 && u2) - return h2; - } - } - } - function st(t2, e2) { - if (0 === t2.size) - return O.empty(); - var n3 = "mixed" !== e2 && e2 !== t2.type, r2 = "undirected" === e2, i2 = t2._edges.values(); - return new O(function() { - for (var t3, e3; ; ) { - if ((t3 = i2.next()).done) - return t3; - if (e3 = t3.value, !n3 || e3.undirected === r2) - break; - } - return { value: { edge: e3.key, attributes: e3.attributes, source: e3.source.key, target: e3.target.key, sourceAttributes: e3.source.attributes, targetAttributes: e3.target.attributes, undirected: e3.undirected }, done: false }; - }); - } - function ht(t2, e2, n3, r2, i2, o2) { - var a2, c2 = e2 ? rt : nt; - if ("undirected" !== n3) { - if ("out" !== r2 && (a2 = c2(t2, i2.in, o2), t2 && a2)) - return a2; - if ("in" !== r2 && (a2 = c2(t2, i2.out, o2, r2 ? void 0 : i2.key), t2 && a2)) - return a2; - } - if ("directed" !== n3 && (a2 = c2(t2, i2.undirected, o2), t2 && a2)) - return a2; - } - function pt(t2, e2, n3, r2) { - var i2 = []; - return ht(false, t2, e2, n3, r2, function(t3) { - i2.push(t3); - }), i2; - } - function ft(t2, e2, n3) { - var r2 = O.empty(); - return "undirected" !== t2 && ("out" !== e2 && void 0 !== n3.in && (r2 = tt(r2, it(n3.in))), "in" !== e2 && void 0 !== n3.out && (r2 = tt(r2, it(n3.out, e2 ? void 0 : n3.key)))), "directed" !== t2 && void 0 !== n3.undirected && (r2 = tt(r2, it(n3.undirected))), r2; - } - function lt(t2, e2, n3, r2, i2, o2, a2) { - var c2, u2 = n3 ? at : ot; - if ("undirected" !== e2) { - if (void 0 !== i2.in && "out" !== r2 && (c2 = u2(t2, i2.in, o2, a2), t2 && c2)) - return c2; - if (void 0 !== i2.out && "in" !== r2 && (r2 || i2.key !== o2) && (c2 = u2(t2, i2.out, o2, a2), t2 && c2)) - return c2; - } - if ("directed" !== e2 && void 0 !== i2.undirected && (c2 = u2(t2, i2.undirected, o2, a2), t2 && c2)) - return c2; - } - function gt(t2, e2, n3, r2, i2) { - var o2 = []; - return lt(false, t2, e2, n3, r2, i2, function(t3) { - o2.push(t3); - }), o2; - } - function yt(t2, e2, n3, r2) { - var i2 = O.empty(); - return "undirected" !== t2 && (void 0 !== n3.in && "out" !== e2 && r2 in n3.in && (i2 = tt(i2, ct(n3.in, r2))), void 0 !== n3.out && "in" !== e2 && r2 in n3.out && (e2 || n3.key !== r2) && (i2 = tt(i2, ct(n3.out, r2)))), "directed" !== t2 && void 0 !== n3.undirected && r2 in n3.undirected && (i2 = tt(i2, ct(n3.undirected, r2))), i2; - } - var wt = [{ name: "neighbors", type: "mixed" }, { name: "inNeighbors", type: "directed", direction: "in" }, { name: "outNeighbors", type: "directed", direction: "out" }, { name: "inboundNeighbors", type: "mixed", direction: "in" }, { name: "outboundNeighbors", type: "mixed", direction: "out" }, { name: "directedNeighbors", type: "directed" }, { name: "undirectedNeighbors", type: "undirected" }]; - function vt() { - this.A = null, this.B = null; - } - function bt(t2, e2, n3, r2, i2) { - for (var o2 in r2) { - var a2 = r2[o2], c2 = a2.source, u2 = a2.target, d2 = c2 === n3 ? u2 : c2; - if (!e2 || !e2.has(d2.key)) { - var s3 = i2(d2.key, d2.attributes); - if (t2 && s3) - return d2.key; - } - } - } - function mt(t2, e2, n3, r2, i2) { - if ("mixed" !== e2) { - if ("undirected" === e2) - return bt(t2, null, r2, r2.undirected, i2); - if ("string" == typeof n3) - return bt(t2, null, r2, r2[n3], i2); - } - var o2, a2 = new vt(); - if ("undirected" !== e2) { - if ("out" !== n3) { - if (o2 = bt(t2, null, r2, r2.in, i2), t2 && o2) - return o2; - a2.wrap(r2.in); - } - if ("in" !== n3) { - if (o2 = bt(t2, a2, r2, r2.out, i2), t2 && o2) - return o2; - a2.wrap(r2.out); - } - } - if ("directed" !== e2 && (o2 = bt(t2, a2, r2, r2.undirected, i2), t2 && o2)) - return o2; - } - function kt(t2, e2, n3) { - var r2 = Object.keys(n3), i2 = r2.length, o2 = 0; - return new O(function() { - var a2 = null; - do { - if (o2 >= i2) - return t2 && t2.wrap(n3), { done: true }; - var c2 = n3[r2[o2++]], u2 = c2.source, d2 = c2.target; - a2 = u2 === e2 ? d2 : u2, t2 && t2.has(a2.key) && (a2 = null); - } while (null === a2); - return { done: false, value: { neighbor: a2.key, attributes: a2.attributes } }; - }); - } - function _t(t2, e2) { - var n3 = e2.name, r2 = e2.type, i2 = e2.direction; - t2.prototype[n3] = function(t3) { - if ("mixed" !== r2 && "mixed" !== this.type && r2 !== this.type) - return []; - t3 = "" + t3; - var e3 = this._nodes.get(t3); - if (void 0 === e3) - throw new F("Graph.".concat(n3, ': could not find the "').concat(t3, '" node in the graph.')); - return function(t4, e4, n4) { - if ("mixed" !== t4) { - if ("undirected" === t4) - return Object.keys(n4.undirected); - if ("string" == typeof e4) - return Object.keys(n4[e4]); - } - var r3 = []; - return mt(false, t4, e4, n4, function(t5) { - r3.push(t5); - }), r3; - }("mixed" === r2 ? this.type : r2, i2, e3); - }; - } - function Gt(t2, e2) { - var n3 = e2.name, r2 = e2.type, i2 = e2.direction, o2 = n3.slice(0, -1) + "Entries"; - t2.prototype[o2] = function(t3) { - if ("mixed" !== r2 && "mixed" !== this.type && r2 !== this.type) - return O.empty(); - t3 = "" + t3; - var e3 = this._nodes.get(t3); - if (void 0 === e3) - throw new F("Graph.".concat(o2, ': could not find the "').concat(t3, '" node in the graph.')); - return function(t4, e4, n4) { - if ("mixed" !== t4) { - if ("undirected" === t4) - return kt(null, n4, n4.undirected); - if ("string" == typeof e4) - return kt(null, n4, n4[e4]); - } - var r3 = O.empty(), i3 = new vt(); - return "undirected" !== t4 && ("out" !== e4 && (r3 = tt(r3, kt(i3, n4, n4.in))), "in" !== e4 && (r3 = tt(r3, kt(i3, n4, n4.out)))), "directed" !== t4 && (r3 = tt(r3, kt(i3, n4, n4.undirected))), r3; - }("mixed" === r2 ? this.type : r2, i2, e3); - }; - } - function xt(t2, e2, n3, r2, i2) { - for (var o2, a2, c2, u2, d2, s3, h2, p2 = r2._nodes.values(), f2 = r2.type; true !== (o2 = p2.next()).done; ) { - var l3 = false; - if (a2 = o2.value, "undirected" !== f2) - for (c2 in u2 = a2.out) { - d2 = u2[c2]; - do { - if (s3 = d2.target, l3 = true, h2 = i2(a2.key, s3.key, a2.attributes, s3.attributes, d2.key, d2.attributes, d2.undirected), t2 && h2) - return d2; - d2 = d2.next; - } while (d2); - } - if ("directed" !== f2) { - for (c2 in u2 = a2.undirected) - if (!(e2 && a2.key > c2)) { - d2 = u2[c2]; - do { - if ((s3 = d2.target).key !== c2 && (s3 = d2.source), l3 = true, h2 = i2(a2.key, s3.key, a2.attributes, s3.attributes, d2.key, d2.attributes, d2.undirected), t2 && h2) - return d2; - d2 = d2.next; - } while (d2); - } - } - if (n3 && !l3 && (h2 = i2(a2.key, null, a2.attributes, null, null, null, null), t2 && h2)) - return null; - } - } - function Et(t2) { - if (!s2(t2)) - throw new B('Graph.import: invalid serialized node. A serialized node should be a plain object with at least a "key" property.'); - if (!("key" in t2)) - throw new B("Graph.import: serialized node is missing its key."); - if ("attributes" in t2 && (!s2(t2.attributes) || null === t2.attributes)) - throw new B("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted."); - } - function At(t2) { - if (!s2(t2)) - throw new B('Graph.import: invalid serialized edge. A serialized edge should be a plain object with at least a "source" & "target" property.'); - if (!("source" in t2)) - throw new B("Graph.import: serialized edge is missing its source."); - if (!("target" in t2)) - throw new B("Graph.import: serialized edge is missing its target."); - if ("attributes" in t2 && (!s2(t2.attributes) || null === t2.attributes)) - throw new B("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted."); - if ("undirected" in t2 && "boolean" != typeof t2.undirected) - throw new B("Graph.import: invalid undirectedness information. Undirected should be boolean or omitted."); - } - vt.prototype.wrap = function(t2) { - null === this.A ? this.A = t2 : null === this.B && (this.B = t2); - }, vt.prototype.has = function(t2) { - return null !== this.A && t2 in this.A || null !== this.B && t2 in this.B; - }; - var Lt, St = (Lt = 255 & Math.floor(256 * Math.random()), function() { - return Lt++; - }), Dt = /* @__PURE__ */ new Set(["directed", "undirected", "mixed"]), Ut = /* @__PURE__ */ new Set(["domain", "_events", "_eventsCount", "_maxListeners"]), Nt = { allowSelfLoops: true, multi: false, type: "mixed" }; - function Ot(t2, e2, n3) { - var r2 = new t2.NodeDataClass(e2, n3); - return t2._nodes.set(e2, r2), t2.emit("nodeAdded", { key: e2, attributes: n3 }), r2; - } - function jt(t2, e2, n3, r2, i2, o2, a2, c2) { - if (!r2 && "undirected" === t2.type) - throw new I("Graph.".concat(e2, ": you cannot add a directed edge to an undirected graph. Use the #.addEdge or #.addUndirectedEdge instead.")); - if (r2 && "directed" === t2.type) - throw new I("Graph.".concat(e2, ": you cannot add an undirected edge to a directed graph. Use the #.addEdge or #.addDirectedEdge instead.")); - if (c2 && !s2(c2)) - throw new B("Graph.".concat(e2, ': invalid attributes. Expecting an object but got "').concat(c2, '"')); - if (o2 = "" + o2, a2 = "" + a2, c2 = c2 || {}, !t2.allowSelfLoops && o2 === a2) - throw new I("Graph.".concat(e2, ': source & target are the same ("').concat(o2, `"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false.`)); - var u2 = t2._nodes.get(o2), d2 = t2._nodes.get(a2); - if (!u2) - throw new F("Graph.".concat(e2, ': source node "').concat(o2, '" not found.')); - if (!d2) - throw new F("Graph.".concat(e2, ': target node "').concat(a2, '" not found.')); - var h2 = { key: null, undirected: r2, source: o2, target: a2, attributes: c2 }; - if (n3) - i2 = t2._edgeKeyGenerator(); - else if (i2 = "" + i2, t2._edges.has(i2)) - throw new I("Graph.".concat(e2, ': the "').concat(i2, '" edge already exists in the graph.')); - if (!t2.multi && (r2 ? void 0 !== u2.undirected[a2] : void 0 !== u2.out[a2])) - throw new I("Graph.".concat(e2, ': an edge linking "').concat(o2, '" to "').concat(a2, `" already exists. If you really want to add multiple edges linking those nodes, you should create a multi graph by using the 'multi' option.`)); - var p2 = new V(r2, i2, u2, d2, c2); - t2._edges.set(i2, p2); - var f2 = o2 === a2; - return r2 ? (u2.undirectedDegree++, d2.undirectedDegree++, f2 && (u2.undirectedLoops++, t2._undirectedSelfLoopCount++)) : (u2.outDegree++, d2.inDegree++, f2 && (u2.directedLoops++, t2._directedSelfLoopCount++)), t2.multi ? p2.attachMulti() : p2.attach(), r2 ? t2._undirectedSize++ : t2._directedSize++, h2.key = i2, t2.emit("edgeAdded", h2), i2; - } - function Ct(t2, e2, n3, r2, i2, o2, a2, c2, d2) { - if (!r2 && "undirected" === t2.type) - throw new I("Graph.".concat(e2, ": you cannot merge/update a directed edge to an undirected graph. Use the #.mergeEdge/#.updateEdge or #.addUndirectedEdge instead.")); - if (r2 && "directed" === t2.type) - throw new I("Graph.".concat(e2, ": you cannot merge/update an undirected edge to a directed graph. Use the #.mergeEdge/#.updateEdge or #.addDirectedEdge instead.")); - if (c2) { - if (d2) { - if ("function" != typeof c2) - throw new B("Graph.".concat(e2, ': invalid updater function. Expecting a function but got "').concat(c2, '"')); - } else if (!s2(c2)) - throw new B("Graph.".concat(e2, ': invalid attributes. Expecting an object but got "').concat(c2, '"')); - } - var h2; - if (o2 = "" + o2, a2 = "" + a2, d2 && (h2 = c2, c2 = void 0), !t2.allowSelfLoops && o2 === a2) - throw new I("Graph.".concat(e2, ': source & target are the same ("').concat(o2, `"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false.`)); - var p2, f2, l3 = t2._nodes.get(o2), g2 = t2._nodes.get(a2); - if (!n3 && (p2 = t2._edges.get(i2))) { - if (!(p2.source.key === o2 && p2.target.key === a2 || r2 && p2.source.key === a2 && p2.target.key === o2)) - throw new I("Graph.".concat(e2, ': inconsistency detected when attempting to merge the "').concat(i2, '" edge with "').concat(o2, '" source & "').concat(a2, '" target vs. ("').concat(p2.source.key, '", "').concat(p2.target.key, '").')); - f2 = p2; - } - if (f2 || t2.multi || !l3 || (f2 = r2 ? l3.undirected[a2] : l3.out[a2]), f2) { - var y2 = [f2.key, false, false, false]; - if (d2 ? !h2 : !c2) - return y2; - if (d2) { - var w2 = f2.attributes; - f2.attributes = h2(w2), t2.emit("edgeAttributesUpdated", { type: "replace", key: f2.key, attributes: f2.attributes }); - } else - u(f2.attributes, c2), t2.emit("edgeAttributesUpdated", { type: "merge", key: f2.key, attributes: f2.attributes, data: c2 }); - return y2; - } - c2 = c2 || {}, d2 && h2 && (c2 = h2(c2)); - var v2 = { key: null, undirected: r2, source: o2, target: a2, attributes: c2 }; - if (n3) - i2 = t2._edgeKeyGenerator(); - else if (i2 = "" + i2, t2._edges.has(i2)) - throw new I("Graph.".concat(e2, ': the "').concat(i2, '" edge already exists in the graph.')); - var b2 = false, m2 = false; - l3 || (l3 = Ot(t2, o2, {}), b2 = true, o2 === a2 && (g2 = l3, m2 = true)), g2 || (g2 = Ot(t2, a2, {}), m2 = true), p2 = new V(r2, i2, l3, g2, c2), t2._edges.set(i2, p2); - var k2 = o2 === a2; - return r2 ? (l3.undirectedDegree++, g2.undirectedDegree++, k2 && (l3.undirectedLoops++, t2._undirectedSelfLoopCount++)) : (l3.outDegree++, g2.inDegree++, k2 && (l3.directedLoops++, t2._directedSelfLoopCount++)), t2.multi ? p2.attachMulti() : p2.attach(), r2 ? t2._undirectedSize++ : t2._directedSize++, v2.key = i2, t2.emit("edgeAdded", v2), [i2, true, b2, m2]; - } - function Mt(t2, e2) { - t2._edges.delete(e2.key); - var n3 = e2.source, r2 = e2.target, i2 = e2.attributes, o2 = e2.undirected, a2 = n3 === r2; - o2 ? (n3.undirectedDegree--, r2.undirectedDegree--, a2 && (n3.undirectedLoops--, t2._undirectedSelfLoopCount--)) : (n3.outDegree--, r2.inDegree--, a2 && (n3.directedLoops--, t2._directedSelfLoopCount--)), t2.multi ? e2.detachMulti() : e2.detach(), o2 ? t2._undirectedSize-- : t2._directedSize--, t2.emit("edgeDropped", { key: e2.key, attributes: i2, source: n3.key, target: r2.key, undirected: o2 }); - } - var zt = function(n3) { - function r2(t2) { - var e2; - if (e2 = n3.call(this) || this, "boolean" != typeof (t2 = u({}, Nt, t2)).multi) - throw new B(`Graph.constructor: invalid 'multi' option. Expecting a boolean but got "`.concat(t2.multi, '".')); - if (!Dt.has(t2.type)) - throw new B(`Graph.constructor: invalid 'type' option. Should be one of "mixed", "directed" or "undirected" but got "`.concat(t2.type, '".')); - if ("boolean" != typeof t2.allowSelfLoops) - throw new B(`Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got "`.concat(t2.allowSelfLoops, '".')); - var r3 = "mixed" === t2.type ? Y : "directed" === t2.type ? q : J; - p(c(e2), "NodeDataClass", r3); - var i3 = "geid_" + St() + "_", o2 = 0; - return p(c(e2), "_attributes", {}), p(c(e2), "_nodes", /* @__PURE__ */ new Map()), p(c(e2), "_edges", /* @__PURE__ */ new Map()), p(c(e2), "_directedSize", 0), p(c(e2), "_undirectedSize", 0), p(c(e2), "_directedSelfLoopCount", 0), p(c(e2), "_undirectedSelfLoopCount", 0), p(c(e2), "_edgeKeyGenerator", function() { - var t3; - do { - t3 = i3 + o2++; - } while (e2._edges.has(t3)); - return t3; - }), p(c(e2), "_options", t2), Ut.forEach(function(t3) { - return p(c(e2), t3, e2[t3]); - }), f(c(e2), "order", function() { - return e2._nodes.size; - }), f(c(e2), "size", function() { - return e2._edges.size; - }), f(c(e2), "directedSize", function() { - return e2._directedSize; - }), f(c(e2), "undirectedSize", function() { - return e2._undirectedSize; - }), f(c(e2), "selfLoopCount", function() { - return e2._directedSelfLoopCount + e2._undirectedSelfLoopCount; - }), f(c(e2), "directedSelfLoopCount", function() { - return e2._directedSelfLoopCount; - }), f(c(e2), "undirectedSelfLoopCount", function() { - return e2._undirectedSelfLoopCount; - }), f(c(e2), "multi", e2._options.multi), f(c(e2), "type", e2._options.type), f(c(e2), "allowSelfLoops", e2._options.allowSelfLoops), f(c(e2), "implementation", function() { - return "graphology"; - }), e2; - } - e(r2, n3); - var i2 = r2.prototype; - return i2._resetInstanceCounters = function() { - this._directedSize = 0, this._undirectedSize = 0, this._directedSelfLoopCount = 0, this._undirectedSelfLoopCount = 0; - }, i2.hasNode = function(t2) { - return this._nodes.has("" + t2); - }, i2.hasDirectedEdge = function(t2, e2) { - if ("undirected" === this.type) - return false; - if (1 === arguments.length) { - var n4 = "" + t2, r3 = this._edges.get(n4); - return !!r3 && !r3.undirected; - } - if (2 === arguments.length) { - t2 = "" + t2, e2 = "" + e2; - var i3 = this._nodes.get(t2); - return !!i3 && i3.out.hasOwnProperty(e2); - } - throw new B("Graph.hasDirectedEdge: invalid arity (".concat(arguments.length, ", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.")); - }, i2.hasUndirectedEdge = function(t2, e2) { - if ("directed" === this.type) - return false; - if (1 === arguments.length) { - var n4 = "" + t2, r3 = this._edges.get(n4); - return !!r3 && r3.undirected; - } - if (2 === arguments.length) { - t2 = "" + t2, e2 = "" + e2; - var i3 = this._nodes.get(t2); - return !!i3 && i3.undirected.hasOwnProperty(e2); - } - throw new B("Graph.hasDirectedEdge: invalid arity (".concat(arguments.length, ", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.")); - }, i2.hasEdge = function(t2, e2) { - if (1 === arguments.length) { - var n4 = "" + t2; - return this._edges.has(n4); - } - if (2 === arguments.length) { - t2 = "" + t2, e2 = "" + e2; - var r3 = this._nodes.get(t2); - return !!r3 && (void 0 !== r3.out && r3.out.hasOwnProperty(e2) || void 0 !== r3.undirected && r3.undirected.hasOwnProperty(e2)); - } - throw new B("Graph.hasEdge: invalid arity (".concat(arguments.length, ", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.")); - }, i2.directedEdge = function(t2, e2) { - if ("undirected" !== this.type) { - if (t2 = "" + t2, e2 = "" + e2, this.multi) - throw new I("Graph.directedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.directedEdges instead."); - var n4 = this._nodes.get(t2); - if (!n4) - throw new F('Graph.directedEdge: could not find the "'.concat(t2, '" source node in the graph.')); - if (!this._nodes.has(e2)) - throw new F('Graph.directedEdge: could not find the "'.concat(e2, '" target node in the graph.')); - var r3 = n4.out && n4.out[e2] || void 0; - return r3 ? r3.key : void 0; - } - }, i2.undirectedEdge = function(t2, e2) { - if ("directed" !== this.type) { - if (t2 = "" + t2, e2 = "" + e2, this.multi) - throw new I("Graph.undirectedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.undirectedEdges instead."); - var n4 = this._nodes.get(t2); - if (!n4) - throw new F('Graph.undirectedEdge: could not find the "'.concat(t2, '" source node in the graph.')); - if (!this._nodes.has(e2)) - throw new F('Graph.undirectedEdge: could not find the "'.concat(e2, '" target node in the graph.')); - var r3 = n4.undirected && n4.undirected[e2] || void 0; - return r3 ? r3.key : void 0; - } - }, i2.edge = function(t2, e2) { - if (this.multi) - throw new I("Graph.edge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.edges instead."); - t2 = "" + t2, e2 = "" + e2; - var n4 = this._nodes.get(t2); - if (!n4) - throw new F('Graph.edge: could not find the "'.concat(t2, '" source node in the graph.')); - if (!this._nodes.has(e2)) - throw new F('Graph.edge: could not find the "'.concat(e2, '" target node in the graph.')); - var r3 = n4.out && n4.out[e2] || n4.undirected && n4.undirected[e2] || void 0; - if (r3) - return r3.key; - }, i2.areDirectedNeighbors = function(t2, e2) { - t2 = "" + t2, e2 = "" + e2; - var n4 = this._nodes.get(t2); - if (!n4) - throw new F('Graph.areDirectedNeighbors: could not find the "'.concat(t2, '" node in the graph.')); - return "undirected" !== this.type && (e2 in n4.in || e2 in n4.out); - }, i2.areOutNeighbors = function(t2, e2) { - t2 = "" + t2, e2 = "" + e2; - var n4 = this._nodes.get(t2); - if (!n4) - throw new F('Graph.areOutNeighbors: could not find the "'.concat(t2, '" node in the graph.')); - return "undirected" !== this.type && e2 in n4.out; - }, i2.areInNeighbors = function(t2, e2) { - t2 = "" + t2, e2 = "" + e2; - var n4 = this._nodes.get(t2); - if (!n4) - throw new F('Graph.areInNeighbors: could not find the "'.concat(t2, '" node in the graph.')); - return "undirected" !== this.type && e2 in n4.in; - }, i2.areUndirectedNeighbors = function(t2, e2) { - t2 = "" + t2, e2 = "" + e2; - var n4 = this._nodes.get(t2); - if (!n4) - throw new F('Graph.areUndirectedNeighbors: could not find the "'.concat(t2, '" node in the graph.')); - return "directed" !== this.type && e2 in n4.undirected; - }, i2.areNeighbors = function(t2, e2) { - t2 = "" + t2, e2 = "" + e2; - var n4 = this._nodes.get(t2); - if (!n4) - throw new F('Graph.areNeighbors: could not find the "'.concat(t2, '" node in the graph.')); - return "undirected" !== this.type && (e2 in n4.in || e2 in n4.out) || "directed" !== this.type && e2 in n4.undirected; - }, i2.areInboundNeighbors = function(t2, e2) { - t2 = "" + t2, e2 = "" + e2; - var n4 = this._nodes.get(t2); - if (!n4) - throw new F('Graph.areInboundNeighbors: could not find the "'.concat(t2, '" node in the graph.')); - return "undirected" !== this.type && e2 in n4.in || "directed" !== this.type && e2 in n4.undirected; - }, i2.areOutboundNeighbors = function(t2, e2) { - t2 = "" + t2, e2 = "" + e2; - var n4 = this._nodes.get(t2); - if (!n4) - throw new F('Graph.areOutboundNeighbors: could not find the "'.concat(t2, '" node in the graph.')); - return "undirected" !== this.type && e2 in n4.out || "directed" !== this.type && e2 in n4.undirected; - }, i2.inDegree = function(t2) { - t2 = "" + t2; - var e2 = this._nodes.get(t2); - if (!e2) - throw new F('Graph.inDegree: could not find the "'.concat(t2, '" node in the graph.')); - return "undirected" === this.type ? 0 : e2.inDegree; - }, i2.outDegree = function(t2) { - t2 = "" + t2; - var e2 = this._nodes.get(t2); - if (!e2) - throw new F('Graph.outDegree: could not find the "'.concat(t2, '" node in the graph.')); - return "undirected" === this.type ? 0 : e2.outDegree; - }, i2.directedDegree = function(t2) { - t2 = "" + t2; - var e2 = this._nodes.get(t2); - if (!e2) - throw new F('Graph.directedDegree: could not find the "'.concat(t2, '" node in the graph.')); - return "undirected" === this.type ? 0 : e2.inDegree + e2.outDegree; - }, i2.undirectedDegree = function(t2) { - t2 = "" + t2; - var e2 = this._nodes.get(t2); - if (!e2) - throw new F('Graph.undirectedDegree: could not find the "'.concat(t2, '" node in the graph.')); - return "directed" === this.type ? 0 : e2.undirectedDegree; - }, i2.inboundDegree = function(t2) { - t2 = "" + t2; - var e2 = this._nodes.get(t2); - if (!e2) - throw new F('Graph.inboundDegree: could not find the "'.concat(t2, '" node in the graph.')); - var n4 = 0; - return "directed" !== this.type && (n4 += e2.undirectedDegree), "undirected" !== this.type && (n4 += e2.inDegree), n4; - }, i2.outboundDegree = function(t2) { - t2 = "" + t2; - var e2 = this._nodes.get(t2); - if (!e2) - throw new F('Graph.outboundDegree: could not find the "'.concat(t2, '" node in the graph.')); - var n4 = 0; - return "directed" !== this.type && (n4 += e2.undirectedDegree), "undirected" !== this.type && (n4 += e2.outDegree), n4; - }, i2.degree = function(t2) { - t2 = "" + t2; - var e2 = this._nodes.get(t2); - if (!e2) - throw new F('Graph.degree: could not find the "'.concat(t2, '" node in the graph.')); - var n4 = 0; - return "directed" !== this.type && (n4 += e2.undirectedDegree), "undirected" !== this.type && (n4 += e2.inDegree + e2.outDegree), n4; - }, i2.inDegreeWithoutSelfLoops = function(t2) { - t2 = "" + t2; - var e2 = this._nodes.get(t2); - if (!e2) - throw new F('Graph.inDegreeWithoutSelfLoops: could not find the "'.concat(t2, '" node in the graph.')); - return "undirected" === this.type ? 0 : e2.inDegree - e2.directedLoops; - }, i2.outDegreeWithoutSelfLoops = function(t2) { - t2 = "" + t2; - var e2 = this._nodes.get(t2); - if (!e2) - throw new F('Graph.outDegreeWithoutSelfLoops: could not find the "'.concat(t2, '" node in the graph.')); - return "undirected" === this.type ? 0 : e2.outDegree - e2.directedLoops; - }, i2.directedDegreeWithoutSelfLoops = function(t2) { - t2 = "" + t2; - var e2 = this._nodes.get(t2); - if (!e2) - throw new F('Graph.directedDegreeWithoutSelfLoops: could not find the "'.concat(t2, '" node in the graph.')); - return "undirected" === this.type ? 0 : e2.inDegree + e2.outDegree - 2 * e2.directedLoops; - }, i2.undirectedDegreeWithoutSelfLoops = function(t2) { - t2 = "" + t2; - var e2 = this._nodes.get(t2); - if (!e2) - throw new F('Graph.undirectedDegreeWithoutSelfLoops: could not find the "'.concat(t2, '" node in the graph.')); - return "directed" === this.type ? 0 : e2.undirectedDegree - 2 * e2.undirectedLoops; - }, i2.inboundDegreeWithoutSelfLoops = function(t2) { - t2 = "" + t2; - var e2 = this._nodes.get(t2); - if (!e2) - throw new F('Graph.inboundDegreeWithoutSelfLoops: could not find the "'.concat(t2, '" node in the graph.')); - var n4 = 0, r3 = 0; - return "directed" !== this.type && (n4 += e2.undirectedDegree, r3 += 2 * e2.undirectedLoops), "undirected" !== this.type && (n4 += e2.inDegree, r3 += e2.directedLoops), n4 - r3; - }, i2.outboundDegreeWithoutSelfLoops = function(t2) { - t2 = "" + t2; - var e2 = this._nodes.get(t2); - if (!e2) - throw new F('Graph.outboundDegreeWithoutSelfLoops: could not find the "'.concat(t2, '" node in the graph.')); - var n4 = 0, r3 = 0; - return "directed" !== this.type && (n4 += e2.undirectedDegree, r3 += 2 * e2.undirectedLoops), "undirected" !== this.type && (n4 += e2.outDegree, r3 += e2.directedLoops), n4 - r3; - }, i2.degreeWithoutSelfLoops = function(t2) { - t2 = "" + t2; - var e2 = this._nodes.get(t2); - if (!e2) - throw new F('Graph.degreeWithoutSelfLoops: could not find the "'.concat(t2, '" node in the graph.')); - var n4 = 0, r3 = 0; - return "directed" !== this.type && (n4 += e2.undirectedDegree, r3 += 2 * e2.undirectedLoops), "undirected" !== this.type && (n4 += e2.inDegree + e2.outDegree, r3 += 2 * e2.directedLoops), n4 - r3; - }, i2.source = function(t2) { - t2 = "" + t2; - var e2 = this._edges.get(t2); - if (!e2) - throw new F('Graph.source: could not find the "'.concat(t2, '" edge in the graph.')); - return e2.source.key; - }, i2.target = function(t2) { - t2 = "" + t2; - var e2 = this._edges.get(t2); - if (!e2) - throw new F('Graph.target: could not find the "'.concat(t2, '" edge in the graph.')); - return e2.target.key; - }, i2.extremities = function(t2) { - t2 = "" + t2; - var e2 = this._edges.get(t2); - if (!e2) - throw new F('Graph.extremities: could not find the "'.concat(t2, '" edge in the graph.')); - return [e2.source.key, e2.target.key]; - }, i2.opposite = function(t2, e2) { - t2 = "" + t2, e2 = "" + e2; - var n4 = this._edges.get(e2); - if (!n4) - throw new F('Graph.opposite: could not find the "'.concat(e2, '" edge in the graph.')); - var r3 = n4.source.key, i3 = n4.target.key; - if (t2 === r3) - return i3; - if (t2 === i3) - return r3; - throw new F('Graph.opposite: the "'.concat(t2, '" node is not attached to the "').concat(e2, '" edge (').concat(r3, ", ").concat(i3, ").")); - }, i2.hasExtremity = function(t2, e2) { - t2 = "" + t2, e2 = "" + e2; - var n4 = this._edges.get(t2); - if (!n4) - throw new F('Graph.hasExtremity: could not find the "'.concat(t2, '" edge in the graph.')); - return n4.source.key === e2 || n4.target.key === e2; - }, i2.isUndirected = function(t2) { - t2 = "" + t2; - var e2 = this._edges.get(t2); - if (!e2) - throw new F('Graph.isUndirected: could not find the "'.concat(t2, '" edge in the graph.')); - return e2.undirected; - }, i2.isDirected = function(t2) { - t2 = "" + t2; - var e2 = this._edges.get(t2); - if (!e2) - throw new F('Graph.isDirected: could not find the "'.concat(t2, '" edge in the graph.')); - return !e2.undirected; - }, i2.isSelfLoop = function(t2) { - t2 = "" + t2; - var e2 = this._edges.get(t2); - if (!e2) - throw new F('Graph.isSelfLoop: could not find the "'.concat(t2, '" edge in the graph.')); - return e2.source === e2.target; - }, i2.addNode = function(t2, e2) { - var n4 = function(t3, e3, n5) { - if (n5 && !s2(n5)) - throw new B('Graph.addNode: invalid attributes. Expecting an object but got "'.concat(n5, '"')); - if (e3 = "" + e3, n5 = n5 || {}, t3._nodes.has(e3)) - throw new I('Graph.addNode: the "'.concat(e3, '" node already exist in the graph.')); - var r3 = new t3.NodeDataClass(e3, n5); - return t3._nodes.set(e3, r3), t3.emit("nodeAdded", { key: e3, attributes: n5 }), r3; - }(this, t2, e2); - return n4.key; - }, i2.mergeNode = function(t2, e2) { - if (e2 && !s2(e2)) - throw new B('Graph.mergeNode: invalid attributes. Expecting an object but got "'.concat(e2, '"')); - t2 = "" + t2, e2 = e2 || {}; - var n4 = this._nodes.get(t2); - return n4 ? (e2 && (u(n4.attributes, e2), this.emit("nodeAttributesUpdated", { type: "merge", key: t2, attributes: n4.attributes, data: e2 })), [t2, false]) : (n4 = new this.NodeDataClass(t2, e2), this._nodes.set(t2, n4), this.emit("nodeAdded", { key: t2, attributes: e2 }), [t2, true]); - }, i2.updateNode = function(t2, e2) { - if (e2 && "function" != typeof e2) - throw new B('Graph.updateNode: invalid updater function. Expecting a function but got "'.concat(e2, '"')); - t2 = "" + t2; - var n4 = this._nodes.get(t2); - if (n4) { - if (e2) { - var r3 = n4.attributes; - n4.attributes = e2(r3), this.emit("nodeAttributesUpdated", { type: "replace", key: t2, attributes: n4.attributes }); - } - return [t2, false]; - } - var i3 = e2 ? e2({}) : {}; - return n4 = new this.NodeDataClass(t2, i3), this._nodes.set(t2, n4), this.emit("nodeAdded", { key: t2, attributes: i3 }), [t2, true]; - }, i2.dropNode = function(t2) { - t2 = "" + t2; - var e2, n4 = this._nodes.get(t2); - if (!n4) - throw new F('Graph.dropNode: could not find the "'.concat(t2, '" node in the graph.')); - if ("undirected" !== this.type) { - for (var r3 in n4.out) { - e2 = n4.out[r3]; - do { - Mt(this, e2), e2 = e2.next; - } while (e2); - } - for (var i3 in n4.in) { - e2 = n4.in[i3]; - do { - Mt(this, e2), e2 = e2.next; - } while (e2); - } - } - if ("directed" !== this.type) - for (var o2 in n4.undirected) { - e2 = n4.undirected[o2]; - do { - Mt(this, e2), e2 = e2.next; - } while (e2); - } - this._nodes.delete(t2), this.emit("nodeDropped", { key: t2, attributes: n4.attributes }); - }, i2.dropEdge = function(t2) { - var e2; - if (arguments.length > 1) { - var n4 = "" + arguments[0], r3 = "" + arguments[1]; - if (!(e2 = d(this, n4, r3, this.type))) - throw new F('Graph.dropEdge: could not find the "'.concat(n4, '" -> "').concat(r3, '" edge in the graph.')); - } else if (t2 = "" + t2, !(e2 = this._edges.get(t2))) - throw new F('Graph.dropEdge: could not find the "'.concat(t2, '" edge in the graph.')); - return Mt(this, e2), this; - }, i2.dropDirectedEdge = function(t2, e2) { - if (arguments.length < 2) - throw new I("Graph.dropDirectedEdge: it does not make sense to try and drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead."); - if (this.multi) - throw new I("Graph.dropDirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones."); - var n4 = d(this, t2 = "" + t2, e2 = "" + e2, "directed"); - if (!n4) - throw new F('Graph.dropDirectedEdge: could not find a "'.concat(t2, '" -> "').concat(e2, '" edge in the graph.')); - return Mt(this, n4), this; - }, i2.dropUndirectedEdge = function(t2, e2) { - if (arguments.length < 2) - throw new I("Graph.dropUndirectedEdge: it does not make sense to drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead."); - if (this.multi) - throw new I("Graph.dropUndirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones."); - var n4 = d(this, t2, e2, "undirected"); - if (!n4) - throw new F('Graph.dropUndirectedEdge: could not find a "'.concat(t2, '" -> "').concat(e2, '" edge in the graph.')); - return Mt(this, n4), this; - }, i2.clear = function() { - this._edges.clear(), this._nodes.clear(), this._resetInstanceCounters(), this.emit("cleared"); - }, i2.clearEdges = function() { - for (var t2, e2 = this._nodes.values(); true !== (t2 = e2.next()).done; ) - t2.value.clear(); - this._edges.clear(), this._resetInstanceCounters(), this.emit("edgesCleared"); - }, i2.getAttribute = function(t2) { - return this._attributes[t2]; - }, i2.getAttributes = function() { - return this._attributes; - }, i2.hasAttribute = function(t2) { - return this._attributes.hasOwnProperty(t2); - }, i2.setAttribute = function(t2, e2) { - return this._attributes[t2] = e2, this.emit("attributesUpdated", { type: "set", attributes: this._attributes, name: t2 }), this; - }, i2.updateAttribute = function(t2, e2) { - if ("function" != typeof e2) - throw new B("Graph.updateAttribute: updater should be a function."); - var n4 = this._attributes[t2]; - return this._attributes[t2] = e2(n4), this.emit("attributesUpdated", { type: "set", attributes: this._attributes, name: t2 }), this; - }, i2.removeAttribute = function(t2) { - return delete this._attributes[t2], this.emit("attributesUpdated", { type: "remove", attributes: this._attributes, name: t2 }), this; - }, i2.replaceAttributes = function(t2) { - if (!s2(t2)) - throw new B("Graph.replaceAttributes: provided attributes are not a plain object."); - return this._attributes = t2, this.emit("attributesUpdated", { type: "replace", attributes: this._attributes }), this; - }, i2.mergeAttributes = function(t2) { - if (!s2(t2)) - throw new B("Graph.mergeAttributes: provided attributes are not a plain object."); - return u(this._attributes, t2), this.emit("attributesUpdated", { type: "merge", attributes: this._attributes, data: t2 }), this; - }, i2.updateAttributes = function(t2) { - if ("function" != typeof t2) - throw new B("Graph.updateAttributes: provided updater is not a function."); - return this._attributes = t2(this._attributes), this.emit("attributesUpdated", { type: "update", attributes: this._attributes }), this; - }, i2.updateEachNodeAttributes = function(t2, e2) { - if ("function" != typeof t2) - throw new B("Graph.updateEachNodeAttributes: expecting an updater function."); - if (e2 && !l2(e2)) - throw new B("Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}"); - for (var n4, r3, i3 = this._nodes.values(); true !== (n4 = i3.next()).done; ) - (r3 = n4.value).attributes = t2(r3.key, r3.attributes); - this.emit("eachNodeAttributesUpdated", { hints: e2 || null }); - }, i2.updateEachEdgeAttributes = function(t2, e2) { - if ("function" != typeof t2) - throw new B("Graph.updateEachEdgeAttributes: expecting an updater function."); - if (e2 && !l2(e2)) - throw new B("Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}"); - for (var n4, r3, i3, o2, a2 = this._edges.values(); true !== (n4 = a2.next()).done; ) - i3 = (r3 = n4.value).source, o2 = r3.target, r3.attributes = t2(r3.key, r3.attributes, i3.key, o2.key, i3.attributes, o2.attributes, r3.undirected); - this.emit("eachEdgeAttributesUpdated", { hints: e2 || null }); - }, i2.forEachAdjacencyEntry = function(t2) { - if ("function" != typeof t2) - throw new B("Graph.forEachAdjacencyEntry: expecting a callback."); - xt(false, false, false, this, t2); - }, i2.forEachAdjacencyEntryWithOrphans = function(t2) { - if ("function" != typeof t2) - throw new B("Graph.forEachAdjacencyEntryWithOrphans: expecting a callback."); - xt(false, false, true, this, t2); - }, i2.forEachAssymetricAdjacencyEntry = function(t2) { - if ("function" != typeof t2) - throw new B("Graph.forEachAssymetricAdjacencyEntry: expecting a callback."); - xt(false, true, false, this, t2); - }, i2.forEachAssymetricAdjacencyEntryWithOrphans = function(t2) { - if ("function" != typeof t2) - throw new B("Graph.forEachAssymetricAdjacencyEntryWithOrphans: expecting a callback."); - xt(false, true, true, this, t2); - }, i2.nodes = function() { - return "function" == typeof Array.from ? Array.from(this._nodes.keys()) : K(this._nodes.keys(), this._nodes.size); - }, i2.forEachNode = function(t2) { - if ("function" != typeof t2) - throw new B("Graph.forEachNode: expecting a callback."); - for (var e2, n4, r3 = this._nodes.values(); true !== (e2 = r3.next()).done; ) - t2((n4 = e2.value).key, n4.attributes); - }, i2.findNode = function(t2) { - if ("function" != typeof t2) - throw new B("Graph.findNode: expecting a callback."); - for (var e2, n4, r3 = this._nodes.values(); true !== (e2 = r3.next()).done; ) - if (t2((n4 = e2.value).key, n4.attributes)) - return n4.key; - }, i2.mapNodes = function(t2) { - if ("function" != typeof t2) - throw new B("Graph.mapNode: expecting a callback."); - for (var e2, n4, r3 = this._nodes.values(), i3 = new Array(this.order), o2 = 0; true !== (e2 = r3.next()).done; ) - n4 = e2.value, i3[o2++] = t2(n4.key, n4.attributes); - return i3; - }, i2.someNode = function(t2) { - if ("function" != typeof t2) - throw new B("Graph.someNode: expecting a callback."); - for (var e2, n4, r3 = this._nodes.values(); true !== (e2 = r3.next()).done; ) - if (t2((n4 = e2.value).key, n4.attributes)) - return true; - return false; - }, i2.everyNode = function(t2) { - if ("function" != typeof t2) - throw new B("Graph.everyNode: expecting a callback."); - for (var e2, n4, r3 = this._nodes.values(); true !== (e2 = r3.next()).done; ) - if (!t2((n4 = e2.value).key, n4.attributes)) - return false; - return true; - }, i2.filterNodes = function(t2) { - if ("function" != typeof t2) - throw new B("Graph.filterNodes: expecting a callback."); - for (var e2, n4, r3 = this._nodes.values(), i3 = []; true !== (e2 = r3.next()).done; ) - t2((n4 = e2.value).key, n4.attributes) && i3.push(n4.key); - return i3; - }, i2.reduceNodes = function(t2, e2) { - if ("function" != typeof t2) - throw new B("Graph.reduceNodes: expecting a callback."); - if (arguments.length < 2) - throw new B("Graph.reduceNodes: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array."); - for (var n4, r3, i3 = e2, o2 = this._nodes.values(); true !== (n4 = o2.next()).done; ) - i3 = t2(i3, (r3 = n4.value).key, r3.attributes); - return i3; - }, i2.nodeEntries = function() { - var t2 = this._nodes.values(); - return new O(function() { - var e2 = t2.next(); - if (e2.done) - return e2; - var n4 = e2.value; - return { value: { node: n4.key, attributes: n4.attributes }, done: false }; - }); - }, i2.export = function() { - var t2 = this, e2 = new Array(this._nodes.size), n4 = 0; - this._nodes.forEach(function(t3, r4) { - e2[n4++] = function(t4, e3) { - var n5 = { key: t4 }; - return h(e3.attributes) || (n5.attributes = u({}, e3.attributes)), n5; - }(r4, t3); - }); - var r3 = new Array(this._edges.size); - return n4 = 0, this._edges.forEach(function(e3, i3) { - r3[n4++] = function(t3, e4, n5) { - var r4 = { key: e4, source: n5.source.key, target: n5.target.key }; - return h(n5.attributes) || (r4.attributes = u({}, n5.attributes)), "mixed" === t3 && n5.undirected && (r4.undirected = true), r4; - }(t2.type, i3, e3); - }), { options: { type: this.type, multi: this.multi, allowSelfLoops: this.allowSelfLoops }, attributes: this.getAttributes(), nodes: e2, edges: r3 }; - }, i2.import = function(t2) { - var e2, n4, i3, o2, a2, c2 = this, u2 = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; - if (t2 instanceof r2) - return t2.forEachNode(function(t3, e3) { - u2 ? c2.mergeNode(t3, e3) : c2.addNode(t3, e3); - }), t2.forEachEdge(function(t3, e3, n5, r3, i4, o3, a3) { - u2 ? a3 ? c2.mergeUndirectedEdgeWithKey(t3, n5, r3, e3) : c2.mergeDirectedEdgeWithKey(t3, n5, r3, e3) : a3 ? c2.addUndirectedEdgeWithKey(t3, n5, r3, e3) : c2.addDirectedEdgeWithKey(t3, n5, r3, e3); - }), this; - if (!s2(t2)) - throw new B("Graph.import: invalid argument. Expecting a serialized graph or, alternatively, a Graph instance."); - if (t2.attributes) { - if (!s2(t2.attributes)) - throw new B("Graph.import: invalid attributes. Expecting a plain object."); - u2 ? this.mergeAttributes(t2.attributes) : this.replaceAttributes(t2.attributes); - } - if (t2.nodes) { - if (i3 = t2.nodes, !Array.isArray(i3)) - throw new B("Graph.import: invalid nodes. Expecting an array."); - for (e2 = 0, n4 = i3.length; e2 < n4; e2++) { - Et(o2 = i3[e2]); - var d2 = o2, h2 = d2.key, p2 = d2.attributes; - u2 ? this.mergeNode(h2, p2) : this.addNode(h2, p2); - } - } - if (t2.edges) { - var f2 = false; - if ("undirected" === this.type && (f2 = true), i3 = t2.edges, !Array.isArray(i3)) - throw new B("Graph.import: invalid edges. Expecting an array."); - for (e2 = 0, n4 = i3.length; e2 < n4; e2++) { - At(a2 = i3[e2]); - var l3 = a2, g2 = l3.source, y2 = l3.target, w2 = l3.attributes, v2 = l3.undirected, b2 = void 0 === v2 ? f2 : v2; - "key" in a2 ? (u2 ? b2 ? this.mergeUndirectedEdgeWithKey : this.mergeDirectedEdgeWithKey : b2 ? this.addUndirectedEdgeWithKey : this.addDirectedEdgeWithKey).call(this, a2.key, g2, y2, w2) : (u2 ? b2 ? this.mergeUndirectedEdge : this.mergeDirectedEdge : b2 ? this.addUndirectedEdge : this.addDirectedEdge).call(this, g2, y2, w2); - } - } - return this; - }, i2.nullCopy = function(t2) { - var e2 = new r2(u({}, this._options, t2)); - return e2.replaceAttributes(u({}, this.getAttributes())), e2; - }, i2.emptyCopy = function(t2) { - var e2 = this.nullCopy(t2); - return this._nodes.forEach(function(t3, n4) { - var r3 = u({}, t3.attributes); - t3 = new e2.NodeDataClass(n4, r3), e2._nodes.set(n4, t3); - }), e2; - }, i2.copy = function(t2) { - if ("string" == typeof (t2 = t2 || {}).type && t2.type !== this.type && "mixed" !== t2.type) - throw new I('Graph.copy: cannot create an incompatible copy from "'.concat(this.type, '" type to "').concat(t2.type, '" because this would mean losing information about the current graph.')); - if ("boolean" == typeof t2.multi && t2.multi !== this.multi && true !== t2.multi) - throw new I("Graph.copy: cannot create an incompatible copy by downgrading a multi graph to a simple one because this would mean losing information about the current graph."); - if ("boolean" == typeof t2.allowSelfLoops && t2.allowSelfLoops !== this.allowSelfLoops && true !== t2.allowSelfLoops) - throw new I("Graph.copy: cannot create an incompatible copy from a graph allowing self loops to one that does not because this would mean losing information about the current graph."); - for (var e2, n4, r3 = this.emptyCopy(t2), i3 = this._edges.values(); true !== (e2 = i3.next()).done; ) - jt(r3, "copy", false, (n4 = e2.value).undirected, n4.key, n4.source.key, n4.target.key, u({}, n4.attributes)); - return r3; - }, i2.toJSON = function() { - return this.export(); - }, i2.toString = function() { - return "[object Graph]"; - }, i2.inspect = function() { - var e2 = this, n4 = {}; - this._nodes.forEach(function(t2, e3) { - n4[e3] = t2.attributes; - }); - var r3 = {}, i3 = {}; - this._edges.forEach(function(t2, n5) { - var o3, a3 = t2.undirected ? "--" : "->", c2 = "", u2 = t2.source.key, d2 = t2.target.key; - t2.undirected && u2 > d2 && (o3 = u2, u2 = d2, d2 = o3); - var s3 = "(".concat(u2, ")").concat(a3, "(").concat(d2, ")"); - n5.startsWith("geid_") ? e2.multi && (void 0 === i3[s3] ? i3[s3] = 0 : i3[s3]++, c2 += "".concat(i3[s3], ". ")) : c2 += "[".concat(n5, "]: "), r3[c2 += s3] = t2.attributes; - }); - var o2 = {}; - for (var a2 in this) - this.hasOwnProperty(a2) && !Ut.has(a2) && "function" != typeof this[a2] && "symbol" !== t(a2) && (o2[a2] = this[a2]); - return o2.attributes = this._attributes, o2.nodes = n4, o2.edges = r3, p(o2, "constructor", this.constructor), o2; - }, r2; - }(y.exports.EventEmitter); - "undefined" != typeof Symbol && (zt.prototype[Symbol.for("nodejs.util.inspect.custom")] = zt.prototype.inspect), [{ name: function(t2) { - return "".concat(t2, "Edge"); - }, generateKey: true }, { name: function(t2) { - return "".concat(t2, "DirectedEdge"); - }, generateKey: true, type: "directed" }, { name: function(t2) { - return "".concat(t2, "UndirectedEdge"); - }, generateKey: true, type: "undirected" }, { name: function(t2) { - return "".concat(t2, "EdgeWithKey"); - } }, { name: function(t2) { - return "".concat(t2, "DirectedEdgeWithKey"); - }, type: "directed" }, { name: function(t2) { - return "".concat(t2, "UndirectedEdgeWithKey"); - }, type: "undirected" }].forEach(function(t2) { - ["add", "merge", "update"].forEach(function(e2) { - var n3 = t2.name(e2), r2 = "add" === e2 ? jt : Ct; - t2.generateKey ? zt.prototype[n3] = function(i2, o2, a2) { - return r2(this, n3, true, "undirected" === (t2.type || this.type), null, i2, o2, a2, "update" === e2); - } : zt.prototype[n3] = function(i2, o2, a2, c2) { - return r2(this, n3, false, "undirected" === (t2.type || this.type), i2, o2, a2, c2, "update" === e2); - }; - }); - }), function(t2) { - Q.forEach(function(e2) { - var n3 = e2.name, r2 = e2.attacher; - r2(t2, n3("Node"), 0), r2(t2, n3("Source"), 1), r2(t2, n3("Target"), 2), r2(t2, n3("Opposite"), 3); - }); - }(zt), function(t2) { - X.forEach(function(e2) { - var n3 = e2.name, r2 = e2.attacher; - r2(t2, n3("Edge"), "mixed"), r2(t2, n3("DirectedEdge"), "directed"), r2(t2, n3("UndirectedEdge"), "undirected"); - }); - }(zt), function(t2) { - et.forEach(function(e2) { - !function(t3, e3) { - var n3 = e3.name, r2 = e3.type, i2 = e3.direction; - t3.prototype[n3] = function(t4, e4) { - if ("mixed" !== r2 && "mixed" !== this.type && r2 !== this.type) - return []; - if (!arguments.length) - return ut(this, r2); - if (1 === arguments.length) { - t4 = "" + t4; - var o2 = this._nodes.get(t4); - if (void 0 === o2) - throw new F("Graph.".concat(n3, ': could not find the "').concat(t4, '" node in the graph.')); - return pt(this.multi, "mixed" === r2 ? this.type : r2, i2, o2); - } - if (2 === arguments.length) { - t4 = "" + t4, e4 = "" + e4; - var a2 = this._nodes.get(t4); - if (!a2) - throw new F("Graph.".concat(n3, ': could not find the "').concat(t4, '" source node in the graph.')); - if (!this._nodes.has(e4)) - throw new F("Graph.".concat(n3, ': could not find the "').concat(e4, '" target node in the graph.')); - return gt(r2, this.multi, i2, a2, e4); - } - throw new B("Graph.".concat(n3, ": too many arguments (expecting 0, 1 or 2 and got ").concat(arguments.length, ").")); - }; - }(t2, e2), function(t3, e3) { - var n3 = e3.name, r2 = e3.type, i2 = e3.direction, o2 = "forEach" + n3[0].toUpperCase() + n3.slice(1, -1); - t3.prototype[o2] = function(t4, e4, n4) { - if ("mixed" === r2 || "mixed" === this.type || r2 === this.type) { - if (1 === arguments.length) - return dt(false, this, r2, n4 = t4); - if (2 === arguments.length) { - t4 = "" + t4, n4 = e4; - var a3 = this._nodes.get(t4); - if (void 0 === a3) - throw new F("Graph.".concat(o2, ': could not find the "').concat(t4, '" node in the graph.')); - return ht(false, this.multi, "mixed" === r2 ? this.type : r2, i2, a3, n4); - } - if (3 === arguments.length) { - t4 = "" + t4, e4 = "" + e4; - var c3 = this._nodes.get(t4); - if (!c3) - throw new F("Graph.".concat(o2, ': could not find the "').concat(t4, '" source node in the graph.')); - if (!this._nodes.has(e4)) - throw new F("Graph.".concat(o2, ': could not find the "').concat(e4, '" target node in the graph.')); - return lt(false, r2, this.multi, i2, c3, e4, n4); - } - throw new B("Graph.".concat(o2, ": too many arguments (expecting 1, 2 or 3 and got ").concat(arguments.length, ").")); - } - }; - var a2 = "map" + n3[0].toUpperCase() + n3.slice(1); - t3.prototype[a2] = function() { - var t4, e4 = Array.prototype.slice.call(arguments), n4 = e4.pop(); - if (0 === e4.length) { - var i3 = 0; - "directed" !== r2 && (i3 += this.undirectedSize), "undirected" !== r2 && (i3 += this.directedSize), t4 = new Array(i3); - var a3 = 0; - e4.push(function(e5, r3, i4, o3, c3, u3, d2) { - t4[a3++] = n4(e5, r3, i4, o3, c3, u3, d2); - }); - } else - t4 = [], e4.push(function(e5, r3, i4, o3, a4, c3, u3) { - t4.push(n4(e5, r3, i4, o3, a4, c3, u3)); - }); - return this[o2].apply(this, e4), t4; - }; - var c2 = "filter" + n3[0].toUpperCase() + n3.slice(1); - t3.prototype[c2] = function() { - var t4 = Array.prototype.slice.call(arguments), e4 = t4.pop(), n4 = []; - return t4.push(function(t5, r3, i3, o3, a3, c3, u3) { - e4(t5, r3, i3, o3, a3, c3, u3) && n4.push(t5); - }), this[o2].apply(this, t4), n4; - }; - var u2 = "reduce" + n3[0].toUpperCase() + n3.slice(1); - t3.prototype[u2] = function() { - var t4, e4, n4 = Array.prototype.slice.call(arguments); - if (n4.length < 2 || n4.length > 4) - throw new B("Graph.".concat(u2, ": invalid number of arguments (expecting 2, 3 or 4 and got ").concat(n4.length, ").")); - if ("function" == typeof n4[n4.length - 1] && "function" != typeof n4[n4.length - 2]) - throw new B("Graph.".concat(u2, ": missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.")); - 2 === n4.length ? (t4 = n4[0], e4 = n4[1], n4 = []) : 3 === n4.length ? (t4 = n4[1], e4 = n4[2], n4 = [n4[0]]) : 4 === n4.length && (t4 = n4[2], e4 = n4[3], n4 = [n4[0], n4[1]]); - var r3 = e4; - return n4.push(function(e5, n5, i3, o3, a3, c3, u3) { - r3 = t4(r3, e5, n5, i3, o3, a3, c3, u3); - }), this[o2].apply(this, n4), r3; - }; - }(t2, e2), function(t3, e3) { - var n3 = e3.name, r2 = e3.type, i2 = e3.direction, o2 = "find" + n3[0].toUpperCase() + n3.slice(1, -1); - t3.prototype[o2] = function(t4, e4, n4) { - if ("mixed" !== r2 && "mixed" !== this.type && r2 !== this.type) - return false; - if (1 === arguments.length) - return dt(true, this, r2, n4 = t4); - if (2 === arguments.length) { - t4 = "" + t4, n4 = e4; - var a3 = this._nodes.get(t4); - if (void 0 === a3) - throw new F("Graph.".concat(o2, ': could not find the "').concat(t4, '" node in the graph.')); - return ht(true, this.multi, "mixed" === r2 ? this.type : r2, i2, a3, n4); - } - if (3 === arguments.length) { - t4 = "" + t4, e4 = "" + e4; - var c3 = this._nodes.get(t4); - if (!c3) - throw new F("Graph.".concat(o2, ': could not find the "').concat(t4, '" source node in the graph.')); - if (!this._nodes.has(e4)) - throw new F("Graph.".concat(o2, ': could not find the "').concat(e4, '" target node in the graph.')); - return lt(true, r2, this.multi, i2, c3, e4, n4); - } - throw new B("Graph.".concat(o2, ": too many arguments (expecting 1, 2 or 3 and got ").concat(arguments.length, ").")); - }; - var a2 = "some" + n3[0].toUpperCase() + n3.slice(1, -1); - t3.prototype[a2] = function() { - var t4 = Array.prototype.slice.call(arguments), e4 = t4.pop(); - return t4.push(function(t5, n4, r3, i3, o3, a3, c3) { - return e4(t5, n4, r3, i3, o3, a3, c3); - }), !!this[o2].apply(this, t4); - }; - var c2 = "every" + n3[0].toUpperCase() + n3.slice(1, -1); - t3.prototype[c2] = function() { - var t4 = Array.prototype.slice.call(arguments), e4 = t4.pop(); - return t4.push(function(t5, n4, r3, i3, o3, a3, c3) { - return !e4(t5, n4, r3, i3, o3, a3, c3); - }), !this[o2].apply(this, t4); - }; - }(t2, e2), function(t3, e3) { - var n3 = e3.name, r2 = e3.type, i2 = e3.direction, o2 = n3.slice(0, -1) + "Entries"; - t3.prototype[o2] = function(t4, e4) { - if ("mixed" !== r2 && "mixed" !== this.type && r2 !== this.type) - return O.empty(); - if (!arguments.length) - return st(this, r2); - if (1 === arguments.length) { - t4 = "" + t4; - var n4 = this._nodes.get(t4); - if (!n4) - throw new F("Graph.".concat(o2, ': could not find the "').concat(t4, '" node in the graph.')); - return ft(r2, i2, n4); - } - if (2 === arguments.length) { - t4 = "" + t4, e4 = "" + e4; - var a2 = this._nodes.get(t4); - if (!a2) - throw new F("Graph.".concat(o2, ': could not find the "').concat(t4, '" source node in the graph.')); - if (!this._nodes.has(e4)) - throw new F("Graph.".concat(o2, ': could not find the "').concat(e4, '" target node in the graph.')); - return yt(r2, i2, a2, e4); - } - throw new B("Graph.".concat(o2, ": too many arguments (expecting 0, 1 or 2 and got ").concat(arguments.length, ").")); - }; - }(t2, e2); - }); - }(zt), function(t2) { - wt.forEach(function(e2) { - _t(t2, e2), function(t3, e3) { - var n3 = e3.name, r2 = e3.type, i2 = e3.direction, o2 = "forEach" + n3[0].toUpperCase() + n3.slice(1, -1); - t3.prototype[o2] = function(t4, e4) { - if ("mixed" === r2 || "mixed" === this.type || r2 === this.type) { - t4 = "" + t4; - var n4 = this._nodes.get(t4); - if (void 0 === n4) - throw new F("Graph.".concat(o2, ': could not find the "').concat(t4, '" node in the graph.')); - mt(false, "mixed" === r2 ? this.type : r2, i2, n4, e4); - } - }; - var a2 = "map" + n3[0].toUpperCase() + n3.slice(1); - t3.prototype[a2] = function(t4, e4) { - var n4 = []; - return this[o2](t4, function(t5, r3) { - n4.push(e4(t5, r3)); - }), n4; - }; - var c2 = "filter" + n3[0].toUpperCase() + n3.slice(1); - t3.prototype[c2] = function(t4, e4) { - var n4 = []; - return this[o2](t4, function(t5, r3) { - e4(t5, r3) && n4.push(t5); - }), n4; - }; - var u2 = "reduce" + n3[0].toUpperCase() + n3.slice(1); - t3.prototype[u2] = function(t4, e4, n4) { - if (arguments.length < 3) - throw new B("Graph.".concat(u2, ": missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.")); - var r3 = n4; - return this[o2](t4, function(t5, n5) { - r3 = e4(r3, t5, n5); - }), r3; - }; - }(t2, e2), function(t3, e3) { - var n3 = e3.name, r2 = e3.type, i2 = e3.direction, o2 = n3[0].toUpperCase() + n3.slice(1, -1), a2 = "find" + o2; - t3.prototype[a2] = function(t4, e4) { - if ("mixed" === r2 || "mixed" === this.type || r2 === this.type) { - t4 = "" + t4; - var n4 = this._nodes.get(t4); - if (void 0 === n4) - throw new F("Graph.".concat(a2, ': could not find the "').concat(t4, '" node in the graph.')); - return mt(true, "mixed" === r2 ? this.type : r2, i2, n4, e4); - } - }; - var c2 = "some" + o2; - t3.prototype[c2] = function(t4, e4) { - return !!this[a2](t4, e4); - }; - var u2 = "every" + o2; - t3.prototype[u2] = function(t4, e4) { - return !this[a2](t4, function(t5, n4) { - return !e4(t5, n4); - }); - }; - }(t2, e2), Gt(t2, e2); - }); - }(zt); - var Wt = function(t2) { - function n3(e2) { - var n4 = u({ type: "directed" }, e2); - if ("multi" in n4 && false !== n4.multi) - throw new B("DirectedGraph.from: inconsistent indication that the graph should be multi in given options!"); - if ("directed" !== n4.type) - throw new B('DirectedGraph.from: inconsistent "' + n4.type + '" type in given options!'); - return t2.call(this, n4) || this; - } - return e(n3, t2), n3; - }(zt), Pt = function(t2) { - function n3(e2) { - var n4 = u({ type: "undirected" }, e2); - if ("multi" in n4 && false !== n4.multi) - throw new B("UndirectedGraph.from: inconsistent indication that the graph should be multi in given options!"); - if ("undirected" !== n4.type) - throw new B('UndirectedGraph.from: inconsistent "' + n4.type + '" type in given options!'); - return t2.call(this, n4) || this; - } - return e(n3, t2), n3; - }(zt), Rt = function(t2) { - function n3(e2) { - var n4 = u({ multi: true }, e2); - if ("multi" in n4 && true !== n4.multi) - throw new B("MultiGraph.from: inconsistent indication that the graph should be simple in given options!"); - return t2.call(this, n4) || this; - } - return e(n3, t2), n3; - }(zt), Kt = function(t2) { - function n3(e2) { - var n4 = u({ type: "directed", multi: true }, e2); - if ("multi" in n4 && true !== n4.multi) - throw new B("MultiDirectedGraph.from: inconsistent indication that the graph should be simple in given options!"); - if ("directed" !== n4.type) - throw new B('MultiDirectedGraph.from: inconsistent "' + n4.type + '" type in given options!'); - return t2.call(this, n4) || this; - } - return e(n3, t2), n3; - }(zt), Tt = function(t2) { - function n3(e2) { - var n4 = u({ type: "undirected", multi: true }, e2); - if ("multi" in n4 && true !== n4.multi) - throw new B("MultiUndirectedGraph.from: inconsistent indication that the graph should be simple in given options!"); - if ("undirected" !== n4.type) - throw new B('MultiUndirectedGraph.from: inconsistent "' + n4.type + '" type in given options!'); - return t2.call(this, n4) || this; - } - return e(n3, t2), n3; - }(zt); - function Bt(t2) { - t2.from = function(e2, n3) { - var r2 = u({}, e2.options, n3), i2 = new t2(r2); - return i2.import(e2), i2; - }; - } - return Bt(zt), Bt(Wt), Bt(Pt), Bt(Rt), Bt(Kt), Bt(Tt), zt.Graph = zt, zt.DirectedGraph = Wt, zt.UndirectedGraph = Pt, zt.MultiGraph = Rt, zt.MultiDirectedGraph = Kt, zt.MultiUndirectedGraph = Tt, zt.InvalidArgumentsGraphError = B, zt.NotFoundGraphError = F, zt.UsageGraphError = I, zt; - }); - } -}); - -// src/main.ts -var main_exports = {}; -__export(main_exports, { - default: () => BreadcrumbsPlugin -}); -module.exports = __toCommonJS(main_exports); -var import_obsidian37 = require("obsidian"); - -// src/codeblocks/index.ts -var import_obsidian = require("obsidian"); - -// src/external/dataview/index.ts -var import_obsidian_dataview = __toESM(require_lib()); - -// src/logger/index.ts -var LOG_LEVELS = [ - "DEBUG", - "INFO", - "WARN", - "ERROR", - // Some features log data - "FEAT" -]; -var LEVEL_COLOURS = { - DEBUG: "#999", - INFO: null, - WARN: "#f90", - ERROR: "#f00", - FEAT: "#0f0" -}; -var build_prefix = (level) => { - const colour = LEVEL_COLOURS[level]; - const prefix = `[BC:${level}][${(/* @__PURE__ */ new Date()).toISOString().split("T")[1]}]`; - return [ - colour ? `%c${prefix}` : prefix, - colour ? `color: ${LEVEL_COLOURS[level]};` : "", - "\n" - ]; -}; -var Logger = class { - constructor(level) { - this.set_level(level); - } - debug(...args) { - if (this.level_i <= 0) { - console.log(...build_prefix("DEBUG"), ...args); - } - } - info(...args) { - if (this.level_i <= 1) { - console.log(...build_prefix("INFO"), ...args); - } - } - warn(...args) { - if (this.level_i <= 2) { - console.log(...build_prefix("WARN"), ...args); - } - } - error(...args) { - if (this.level_i <= 3) { - console.log(...build_prefix("ERROR"), ...args); - } - } - feat(...args) { - if (this.level_i <= 4) { - console.log(...build_prefix("FEAT"), ...args); - } - } - set_level(level) { - this.level_i = LOG_LEVELS.findIndex((l2) => l2 === level); - } -}; -var log = new Logger("INFO"); - -// src/external/dataview/index.ts -var await_if_enabled = (plugin) => new Promise((resolve) => { - var _a; - if ((0, import_obsidian_dataview.isPluginEnabled)(plugin.app)) { - if ((_a = (0, import_obsidian_dataview.getAPI)(plugin.app)) == null ? void 0 : _a.index.initialized) { - log.debug("dataview > already initialized"); - resolve(); - } - plugin.registerEvent( - plugin.app.metadataCache.on( - //@ts-ignore: It's there if dataview is enabled - "dataview:index-ready", - () => { - log.debug("dataview > ready"); - resolve(); - } - ) - ); - } else { - log.debug("dataview > not enabled"); - resolve(); - } -}); -var dataview_plugin = { - get_api: import_obsidian_dataview.getAPI, - is_enabled: import_obsidian_dataview.isPluginEnabled, - await_if_enabled -}; - -// src/utils/arrays.ts -var ensure_is_array = (maybe_array) => { - if (Array.isArray(maybe_array)) - return maybe_array; - return [maybe_array]; -}; -var ensure_square_array = (arr, fill, pre) => { - const max_width = Math.max(...arr.map((row) => row.length)); - return arr.map((row) => { - const diff = max_width - row.length; - if (pre) { - return Array(diff).fill(fill).concat(row); - } else { - return row.concat(Array(diff).fill(fill)); - } - }); -}; -var transpose = (arr) => { - const transposed = []; - if (!arr.length) - return transposed; - for (let i = 0; i < arr.at(0).length; i++) { - transposed.push([]); - for (let j = 0; j < arr.length; j++) { - transposed[i].push(arr[j][i]); - } - } - return transposed; -}; -var gather_by_runs = (arr, get_value) => { - const runs = []; - for (let i = 0; i < arr.length; i++) { - const last_run = runs.at(-1); - const value = get_value(arr[i]); - if (last_run && last_run.value === value) { - last_run.last = i; - } else { - runs.push({ value, first: i, last: i }); - } - } - return runs; -}; -var group_by = (list, get_value, project = (item) => item) => { - const grouped = {}; - list.forEach((item) => { - const key = get_value(item); - if (key === void 0) - return; - const group = grouped[key]; - const projected = project(item); - if (!group) - grouped[key] = [projected]; - else - group.push(projected); - }); - return grouped; -}; -var group_projection = (grouped, projector) => { - const projected = {}; - Object.entries(grouped).forEach(([key, items]) => { - projected[key] = projector(items); - }); - return projected; -}; -var remove_duplicates = (arr) => { - const set = new Set(arr); - return Array.from(set); -}; -var remove_duplicates_by = (arr, get_value) => { - const set = /* @__PURE__ */ new Set(); - const unique = []; - arr.forEach((item) => { - const value = get_value(item); - if (set.has(value)) - return; - set.add(value); - unique.push(item); - }); - return unique; -}; - -// src/utils/objects.ts -function deep_merge_objects(obj1, obj2) { - const result = { ...obj1 }; - for (const key in obj2) { - const val1 = obj1[key]; - const val2 = obj2[key]; - if (typeof val1 === "object" && typeof val2 === "object" && !Array.isArray(val1) && !Array.isArray(val2)) { - result[key] = deep_merge_objects(val1, val2); - } else if (val1 === void 0) { - result[key] = val2; - } - } - return result; -} -var deep_access = (obj, path) => { - let current = obj; - for (const key of path) { - if (current[key] === void 0) { - return void 0; - } - current = current[key]; - } - return current; -}; -var untyped_pick = (obj, keys) => Object.fromEntries( - Object.entries(obj).filter(([key]) => keys.includes(key)) -); -var remove_nullish_keys = (obj) => Object.fromEntries( - Object.entries(obj).filter( - ([_, val]) => val !== null && val !== void 0 - ) -); - -// src/utils/strings.ts -var split_and_trim = (str, delimiter = ",") => { - if (!str || str === "") - return []; - else - return str.split(delimiter).map((str2) => str2.trim()); -}; -var quote_join = (arr, quote = '"', joiner = ", ") => arr.map((str) => quote + str + quote).join(joiner); -var ensure_starts_with = (str, prefix) => str.startsWith(prefix) ? str : prefix + str; -var ensure_ends_with = (str, suffix) => str.endsWith(suffix) ? str : str + suffix; -var ensure_not_ends_with = (str, suffix) => str.endsWith(suffix) ? str.slice(0, -suffix.length) : str; -var TEMPLATE_REGEX = /{{(.*?)}}/g; -var resolve_templates = (str, templates) => { - var _a; - let resolved = str.slice(); - (_a = resolved.match(TEMPLATE_REGEX)) == null ? void 0 : _a.forEach((match2) => { - const key = match2.slice(2, -2); - const value = deep_access(templates, key.split(".")); - if (value !== void 0) { - resolved = resolved.replace(match2, String(value)); - } - }); - return resolved; -}; -var wrap_in_codeblock = (str, lang = "") => "```" + lang + "\n" + str + "\n```"; - -// src/utils/paths.ts -var ensure_ext = (path, ext = "md") => ensure_ends_with(path, "." + ext); -var drop_ext = (path) => path.replace(/\.[^.]+$/, ""); -var extname = (path) => path.split(".").pop(); -var drop_folder = (path) => path.split("/").pop(); -var dirname = (path) => path.split("/").slice(0, -1).join("/"); -var basename = (path) => drop_ext(path.split("/").pop()); -var normalise = (path) => path.replace(/\/+/g, "/").replace(/^\//, ""); -var build = (folder, basename2, ext) => ensure_ext(normalise(folder + "/" + basename2), ext); -var show = (path, show_node_options) => { - let output = path.slice(); - if (!(show_node_options == null ? void 0 : show_node_options.folder)) { - output = drop_folder(output); - } - if (!(show_node_options == null ? void 0 : show_node_options.ext)) { - output = drop_ext(output); - } - return output; -}; -var Paths = { - ensure_ext, - extname, - basename, - dirname, - drop_ext, - drop_folder, - build, - normalise, - show -}; - -// node_modules/zod/lib/index.mjs -var util; -(function(util2) { - util2.assertEqual = (val) => val; - function assertIs(_arg) { - } - util2.assertIs = assertIs; - function assertNever(_x) { - throw new Error(); - } - util2.assertNever = assertNever; - util2.arrayToEnum = (items) => { - const obj = {}; - for (const item of items) { - obj[item] = item; - } - return obj; - }; - util2.getValidEnumValues = (obj) => { - const validKeys = util2.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== "number"); - const filtered = {}; - for (const k of validKeys) { - filtered[k] = obj[k]; - } - return util2.objectValues(filtered); - }; - util2.objectValues = (obj) => { - return util2.objectKeys(obj).map(function(e) { - return obj[e]; - }); - }; - util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object) => { - const keys = []; - for (const key in object) { - if (Object.prototype.hasOwnProperty.call(object, key)) { - keys.push(key); - } - } - return keys; - }; - util2.find = (arr, checker) => { - for (const item of arr) { - if (checker(item)) - return item; - } - return void 0; - }; - util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val; - function joinValues(array, separator = " | ") { - return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator); - } - util2.joinValues = joinValues; - util2.jsonStringifyReplacer = (_, value) => { - if (typeof value === "bigint") { - return value.toString(); - } - return value; - }; -})(util || (util = {})); -var objectUtil; -(function(objectUtil2) { - objectUtil2.mergeShapes = (first, second) => { - return { - ...first, - ...second - // second overwrites first - }; - }; -})(objectUtil || (objectUtil = {})); -var ZodParsedType = util.arrayToEnum([ - "string", - "nan", - "number", - "integer", - "float", - "boolean", - "date", - "bigint", - "symbol", - "function", - "undefined", - "null", - "array", - "object", - "unknown", - "promise", - "void", - "never", - "map", - "set" -]); -var getParsedType = (data) => { - const t = typeof data; - switch (t) { - case "undefined": - return ZodParsedType.undefined; - case "string": - return ZodParsedType.string; - case "number": - return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number; - case "boolean": - return ZodParsedType.boolean; - case "function": - return ZodParsedType.function; - case "bigint": - return ZodParsedType.bigint; - case "symbol": - return ZodParsedType.symbol; - case "object": - if (Array.isArray(data)) { - return ZodParsedType.array; - } - if (data === null) { - return ZodParsedType.null; - } - if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") { - return ZodParsedType.promise; - } - if (typeof Map !== "undefined" && data instanceof Map) { - return ZodParsedType.map; - } - if (typeof Set !== "undefined" && data instanceof Set) { - return ZodParsedType.set; - } - if (typeof Date !== "undefined" && data instanceof Date) { - return ZodParsedType.date; - } - return ZodParsedType.object; - default: - return ZodParsedType.unknown; - } -}; -var ZodIssueCode = util.arrayToEnum([ - "invalid_type", - "invalid_literal", - "custom", - "invalid_union", - "invalid_union_discriminator", - "invalid_enum_value", - "unrecognized_keys", - "invalid_arguments", - "invalid_return_type", - "invalid_date", - "invalid_string", - "too_small", - "too_big", - "invalid_intersection_types", - "not_multiple_of", - "not_finite" -]); -var quotelessJson = (obj) => { - const json = JSON.stringify(obj, null, 2); - return json.replace(/"([^"]+)":/g, "$1:"); -}; -var ZodError = class _ZodError extends Error { - constructor(issues) { - super(); - this.issues = []; - this.addIssue = (sub) => { - this.issues = [...this.issues, sub]; - }; - this.addIssues = (subs = []) => { - this.issues = [...this.issues, ...subs]; - }; - const actualProto = new.target.prototype; - if (Object.setPrototypeOf) { - Object.setPrototypeOf(this, actualProto); - } else { - this.__proto__ = actualProto; - } - this.name = "ZodError"; - this.issues = issues; - } - get errors() { - return this.issues; - } - format(_mapper) { - const mapper = _mapper || function(issue) { - return issue.message; - }; - const fieldErrors = { _errors: [] }; - const processError = (error) => { - for (const issue of error.issues) { - if (issue.code === "invalid_union") { - issue.unionErrors.map(processError); - } else if (issue.code === "invalid_return_type") { - processError(issue.returnTypeError); - } else if (issue.code === "invalid_arguments") { - processError(issue.argumentsError); - } else if (issue.path.length === 0) { - fieldErrors._errors.push(mapper(issue)); - } else { - let curr = fieldErrors; - let i = 0; - while (i < issue.path.length) { - const el = issue.path[i]; - const terminal = i === issue.path.length - 1; - if (!terminal) { - curr[el] = curr[el] || { _errors: [] }; - } else { - curr[el] = curr[el] || { _errors: [] }; - curr[el]._errors.push(mapper(issue)); - } - curr = curr[el]; - i++; - } - } - } - }; - processError(this); - return fieldErrors; - } - static assert(value) { - if (!(value instanceof _ZodError)) { - throw new Error(`Not a ZodError: ${value}`); - } - } - toString() { - return this.message; - } - get message() { - return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2); - } - get isEmpty() { - return this.issues.length === 0; - } - flatten(mapper = (issue) => issue.message) { - const fieldErrors = {}; - const formErrors = []; - for (const sub of this.issues) { - if (sub.path.length > 0) { - fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || []; - fieldErrors[sub.path[0]].push(mapper(sub)); - } else { - formErrors.push(mapper(sub)); - } - } - return { formErrors, fieldErrors }; - } - get formErrors() { - return this.flatten(); - } -}; -ZodError.create = (issues) => { - const error = new ZodError(issues); - return error; -}; -var errorMap = (issue, _ctx) => { - let message; - switch (issue.code) { - case ZodIssueCode.invalid_type: - if (issue.received === ZodParsedType.undefined) { - message = "Required"; - } else { - message = `Expected ${issue.expected}, received ${issue.received}`; - } - break; - case ZodIssueCode.invalid_literal: - message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`; - break; - case ZodIssueCode.unrecognized_keys: - message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, ", ")}`; - break; - case ZodIssueCode.invalid_union: - message = `Invalid input`; - break; - case ZodIssueCode.invalid_union_discriminator: - message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`; - break; - case ZodIssueCode.invalid_enum_value: - message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`; - break; - case ZodIssueCode.invalid_arguments: - message = `Invalid function arguments`; - break; - case ZodIssueCode.invalid_return_type: - message = `Invalid function return type`; - break; - case ZodIssueCode.invalid_date: - message = `Invalid date`; - break; - case ZodIssueCode.invalid_string: - if (typeof issue.validation === "object") { - if ("includes" in issue.validation) { - message = `Invalid input: must include "${issue.validation.includes}"`; - if (typeof issue.validation.position === "number") { - message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`; - } - } else if ("startsWith" in issue.validation) { - message = `Invalid input: must start with "${issue.validation.startsWith}"`; - } else if ("endsWith" in issue.validation) { - message = `Invalid input: must end with "${issue.validation.endsWith}"`; - } else { - util.assertNever(issue.validation); - } - } else if (issue.validation !== "regex") { - message = `Invalid ${issue.validation}`; - } else { - message = "Invalid"; - } - break; - case ZodIssueCode.too_small: - if (issue.type === "array") - message = `Array must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`; - else if (issue.type === "string") - message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`; - else if (issue.type === "number") - message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`; - else if (issue.type === "date") - message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`; - else - message = "Invalid input"; - break; - case ZodIssueCode.too_big: - if (issue.type === "array") - message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`; - else if (issue.type === "string") - message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`; - else if (issue.type === "number") - message = `Number must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`; - else if (issue.type === "bigint") - message = `BigInt must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`; - else if (issue.type === "date") - message = `Date must be ${issue.exact ? `exactly` : issue.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue.maximum))}`; - else - message = "Invalid input"; - break; - case ZodIssueCode.custom: - message = `Invalid input`; - break; - case ZodIssueCode.invalid_intersection_types: - message = `Intersection results could not be merged`; - break; - case ZodIssueCode.not_multiple_of: - message = `Number must be a multiple of ${issue.multipleOf}`; - break; - case ZodIssueCode.not_finite: - message = "Number must be finite"; - break; - default: - message = _ctx.defaultError; - util.assertNever(issue); - } - return { message }; -}; -var overrideErrorMap = errorMap; -function setErrorMap(map) { - overrideErrorMap = map; -} -function getErrorMap() { - return overrideErrorMap; -} -var makeIssue = (params) => { - const { data, path, errorMaps, issueData } = params; - const fullPath = [...path, ...issueData.path || []]; - const fullIssue = { - ...issueData, - path: fullPath - }; - if (issueData.message !== void 0) { - return { - ...issueData, - path: fullPath, - message: issueData.message - }; - } - let errorMessage = ""; - const maps = errorMaps.filter((m) => !!m).slice().reverse(); - for (const map of maps) { - errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message; - } - return { - ...issueData, - path: fullPath, - message: errorMessage - }; -}; -var EMPTY_PATH = []; -function addIssueToContext(ctx, issueData) { - const overrideMap = getErrorMap(); - const issue = makeIssue({ - issueData, - data: ctx.data, - path: ctx.path, - errorMaps: [ - ctx.common.contextualErrorMap, - ctx.schemaErrorMap, - overrideMap, - overrideMap === errorMap ? void 0 : errorMap - // then global default map - ].filter((x) => !!x) - }); - ctx.common.issues.push(issue); -} -var ParseStatus = class _ParseStatus { - constructor() { - this.value = "valid"; - } - dirty() { - if (this.value === "valid") - this.value = "dirty"; - } - abort() { - if (this.value !== "aborted") - this.value = "aborted"; - } - static mergeArray(status, results) { - const arrayValue = []; - for (const s2 of results) { - if (s2.status === "aborted") - return INVALID; - if (s2.status === "dirty") - status.dirty(); - arrayValue.push(s2.value); - } - return { status: status.value, value: arrayValue }; - } - static async mergeObjectAsync(status, pairs) { - const syncPairs = []; - for (const pair of pairs) { - const key = await pair.key; - const value = await pair.value; - syncPairs.push({ - key, - value - }); - } - return _ParseStatus.mergeObjectSync(status, syncPairs); - } - static mergeObjectSync(status, pairs) { - const finalObject = {}; - for (const pair of pairs) { - const { key, value } = pair; - if (key.status === "aborted") - return INVALID; - if (value.status === "aborted") - return INVALID; - if (key.status === "dirty") - status.dirty(); - if (value.status === "dirty") - status.dirty(); - if (key.value !== "__proto__" && (typeof value.value !== "undefined" || pair.alwaysSet)) { - finalObject[key.value] = value.value; - } - } - return { status: status.value, value: finalObject }; - } -}; -var INVALID = Object.freeze({ - status: "aborted" -}); -var DIRTY = (value) => ({ status: "dirty", value }); -var OK = (value) => ({ status: "valid", value }); -var isAborted = (x) => x.status === "aborted"; -var isDirty = (x) => x.status === "dirty"; -var isValid = (x) => x.status === "valid"; -var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise; -function __classPrivateFieldGet(receiver, state, kind, f) { - if (kind === "a" && !f) - throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) - throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -} -function __classPrivateFieldSet(receiver, state, value, kind, f) { - if (kind === "m") - throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) - throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) - throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value; -} -var errorUtil; -(function(errorUtil2) { - errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {}; - errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message; -})(errorUtil || (errorUtil = {})); -var _ZodEnum_cache; -var _ZodNativeEnum_cache; -var ParseInputLazyPath = class { - constructor(parent, value, path, key) { - this._cachedPath = []; - this.parent = parent; - this.data = value; - this._path = path; - this._key = key; - } - get path() { - if (!this._cachedPath.length) { - if (this._key instanceof Array) { - this._cachedPath.push(...this._path, ...this._key); - } else { - this._cachedPath.push(...this._path, this._key); - } - } - return this._cachedPath; - } -}; -var handleResult = (ctx, result) => { - if (isValid(result)) { - return { success: true, data: result.value }; - } else { - if (!ctx.common.issues.length) { - throw new Error("Validation failed but no issues detected."); - } - return { - success: false, - get error() { - if (this._error) - return this._error; - const error = new ZodError(ctx.common.issues); - this._error = error; - return this._error; - } - }; - } -}; -function processCreateParams(params) { - if (!params) - return {}; - const { errorMap: errorMap2, invalid_type_error, required_error, description } = params; - if (errorMap2 && (invalid_type_error || required_error)) { - throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`); - } - if (errorMap2) - return { errorMap: errorMap2, description }; - const customMap = (iss, ctx) => { - var _a, _b; - const { message } = params; - if (iss.code === "invalid_enum_value") { - return { message: message !== null && message !== void 0 ? message : ctx.defaultError }; - } - if (typeof ctx.data === "undefined") { - return { message: (_a = message !== null && message !== void 0 ? message : required_error) !== null && _a !== void 0 ? _a : ctx.defaultError }; - } - if (iss.code !== "invalid_type") - return { message: ctx.defaultError }; - return { message: (_b = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b !== void 0 ? _b : ctx.defaultError }; - }; - return { errorMap: customMap, description }; -} -var ZodType = class { - constructor(def) { - this.spa = this.safeParseAsync; - this._def = def; - this.parse = this.parse.bind(this); - this.safeParse = this.safeParse.bind(this); - this.parseAsync = this.parseAsync.bind(this); - this.safeParseAsync = this.safeParseAsync.bind(this); - this.spa = this.spa.bind(this); - this.refine = this.refine.bind(this); - this.refinement = this.refinement.bind(this); - this.superRefine = this.superRefine.bind(this); - this.optional = this.optional.bind(this); - this.nullable = this.nullable.bind(this); - this.nullish = this.nullish.bind(this); - this.array = this.array.bind(this); - this.promise = this.promise.bind(this); - this.or = this.or.bind(this); - this.and = this.and.bind(this); - this.transform = this.transform.bind(this); - this.brand = this.brand.bind(this); - this.default = this.default.bind(this); - this.catch = this.catch.bind(this); - this.describe = this.describe.bind(this); - this.pipe = this.pipe.bind(this); - this.readonly = this.readonly.bind(this); - this.isNullable = this.isNullable.bind(this); - this.isOptional = this.isOptional.bind(this); - } - get description() { - return this._def.description; - } - _getType(input) { - return getParsedType(input.data); - } - _getOrReturnCtx(input, ctx) { - return ctx || { - common: input.parent.common, - data: input.data, - parsedType: getParsedType(input.data), - schemaErrorMap: this._def.errorMap, - path: input.path, - parent: input.parent - }; - } - _processInputParams(input) { - return { - status: new ParseStatus(), - ctx: { - common: input.parent.common, - data: input.data, - parsedType: getParsedType(input.data), - schemaErrorMap: this._def.errorMap, - path: input.path, - parent: input.parent - } - }; - } - _parseSync(input) { - const result = this._parse(input); - if (isAsync(result)) { - throw new Error("Synchronous parse encountered promise."); - } - return result; - } - _parseAsync(input) { - const result = this._parse(input); - return Promise.resolve(result); - } - parse(data, params) { - const result = this.safeParse(data, params); - if (result.success) - return result.data; - throw result.error; - } - safeParse(data, params) { - var _a; - const ctx = { - common: { - issues: [], - async: (_a = params === null || params === void 0 ? void 0 : params.async) !== null && _a !== void 0 ? _a : false, - contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap - }, - path: (params === null || params === void 0 ? void 0 : params.path) || [], - schemaErrorMap: this._def.errorMap, - parent: null, - data, - parsedType: getParsedType(data) - }; - const result = this._parseSync({ data, path: ctx.path, parent: ctx }); - return handleResult(ctx, result); - } - async parseAsync(data, params) { - const result = await this.safeParseAsync(data, params); - if (result.success) - return result.data; - throw result.error; - } - async safeParseAsync(data, params) { - const ctx = { - common: { - issues: [], - contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap, - async: true - }, - path: (params === null || params === void 0 ? void 0 : params.path) || [], - schemaErrorMap: this._def.errorMap, - parent: null, - data, - parsedType: getParsedType(data) - }; - const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx }); - const result = await (isAsync(maybeAsyncResult) ? maybeAsyncResult : Promise.resolve(maybeAsyncResult)); - return handleResult(ctx, result); - } - refine(check, message) { - const getIssueProperties = (val) => { - if (typeof message === "string" || typeof message === "undefined") { - return { message }; - } else if (typeof message === "function") { - return message(val); - } else { - return message; - } - }; - return this._refinement((val, ctx) => { - const result = check(val); - const setError = () => ctx.addIssue({ - code: ZodIssueCode.custom, - ...getIssueProperties(val) - }); - if (typeof Promise !== "undefined" && result instanceof Promise) { - return result.then((data) => { - if (!data) { - setError(); - return false; - } else { - return true; - } - }); - } - if (!result) { - setError(); - return false; - } else { - return true; - } - }); - } - refinement(check, refinementData) { - return this._refinement((val, ctx) => { - if (!check(val)) { - ctx.addIssue(typeof refinementData === "function" ? refinementData(val, ctx) : refinementData); - return false; - } else { - return true; - } - }); - } - _refinement(refinement) { - return new ZodEffects({ - schema: this, - typeName: ZodFirstPartyTypeKind.ZodEffects, - effect: { type: "refinement", refinement } - }); - } - superRefine(refinement) { - return this._refinement(refinement); - } - optional() { - return ZodOptional.create(this, this._def); - } - nullable() { - return ZodNullable.create(this, this._def); - } - nullish() { - return this.nullable().optional(); - } - array() { - return ZodArray.create(this, this._def); - } - promise() { - return ZodPromise.create(this, this._def); - } - or(option) { - return ZodUnion.create([this, option], this._def); - } - and(incoming) { - return ZodIntersection.create(this, incoming, this._def); - } - transform(transform) { - return new ZodEffects({ - ...processCreateParams(this._def), - schema: this, - typeName: ZodFirstPartyTypeKind.ZodEffects, - effect: { type: "transform", transform } - }); - } - default(def) { - const defaultValueFunc = typeof def === "function" ? def : () => def; - return new ZodDefault({ - ...processCreateParams(this._def), - innerType: this, - defaultValue: defaultValueFunc, - typeName: ZodFirstPartyTypeKind.ZodDefault - }); - } - brand() { - return new ZodBranded({ - typeName: ZodFirstPartyTypeKind.ZodBranded, - type: this, - ...processCreateParams(this._def) - }); - } - catch(def) { - const catchValueFunc = typeof def === "function" ? def : () => def; - return new ZodCatch({ - ...processCreateParams(this._def), - innerType: this, - catchValue: catchValueFunc, - typeName: ZodFirstPartyTypeKind.ZodCatch - }); - } - describe(description) { - const This = this.constructor; - return new This({ - ...this._def, - description - }); - } - pipe(target) { - return ZodPipeline.create(this, target); - } - readonly() { - return ZodReadonly.create(this); - } - isOptional() { - return this.safeParse(void 0).success; - } - isNullable() { - return this.safeParse(null).success; - } -}; -var cuidRegex = /^c[^\s-]{8,}$/i; -var cuid2Regex = /^[0-9a-z]+$/; -var ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/; -var uuidRegex = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i; -var nanoidRegex = /^[a-z0-9_-]{21}$/i; -var durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/; -var emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i; -var _emojiRegex = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`; -var emojiRegex; -var ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/; -var ipv6Regex = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/; -var base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/; -var dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`; -var dateRegex = new RegExp(`^${dateRegexSource}$`); -function timeRegexSource(args) { - let regex2 = `([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`; - if (args.precision) { - regex2 = `${regex2}\\.\\d{${args.precision}}`; - } else if (args.precision == null) { - regex2 = `${regex2}(\\.\\d+)?`; - } - return regex2; -} -function timeRegex(args) { - return new RegExp(`^${timeRegexSource(args)}$`); -} -function datetimeRegex(args) { - let regex2 = `${dateRegexSource}T${timeRegexSource(args)}`; - const opts = []; - opts.push(args.local ? `Z?` : `Z`); - if (args.offset) - opts.push(`([+-]\\d{2}:?\\d{2})`); - regex2 = `${regex2}(${opts.join("|")})`; - return new RegExp(`^${regex2}$`); -} -function isValidIP(ip, version) { - if ((version === "v4" || !version) && ipv4Regex.test(ip)) { - return true; - } - if ((version === "v6" || !version) && ipv6Regex.test(ip)) { - return true; - } - return false; -} -var ZodString = class _ZodString extends ZodType { - _parse(input) { - if (this._def.coerce) { - input.data = String(input.data); - } - const parsedType = this._getType(input); - if (parsedType !== ZodParsedType.string) { - const ctx2 = this._getOrReturnCtx(input); - addIssueToContext(ctx2, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.string, - received: ctx2.parsedType - }); - return INVALID; - } - const status = new ParseStatus(); - let ctx = void 0; - for (const check of this._def.checks) { - if (check.kind === "min") { - if (input.data.length < check.value) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - minimum: check.value, - type: "string", - inclusive: true, - exact: false, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "max") { - if (input.data.length > check.value) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - maximum: check.value, - type: "string", - inclusive: true, - exact: false, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "length") { - const tooBig = input.data.length > check.value; - const tooSmall = input.data.length < check.value; - if (tooBig || tooSmall) { - ctx = this._getOrReturnCtx(input, ctx); - if (tooBig) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - maximum: check.value, - type: "string", - inclusive: true, - exact: true, - message: check.message - }); - } else if (tooSmall) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - minimum: check.value, - type: "string", - inclusive: true, - exact: true, - message: check.message - }); - } - status.dirty(); - } - } else if (check.kind === "email") { - if (!emailRegex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "email", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "emoji") { - if (!emojiRegex) { - emojiRegex = new RegExp(_emojiRegex, "u"); - } - if (!emojiRegex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "emoji", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "uuid") { - if (!uuidRegex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "uuid", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "nanoid") { - if (!nanoidRegex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "nanoid", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "cuid") { - if (!cuidRegex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "cuid", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "cuid2") { - if (!cuid2Regex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "cuid2", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "ulid") { - if (!ulidRegex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "ulid", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "url") { - try { - new URL(input.data); - } catch (_a) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "url", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "regex") { - check.regex.lastIndex = 0; - const testResult = check.regex.test(input.data); - if (!testResult) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "regex", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "trim") { - input.data = input.data.trim(); - } else if (check.kind === "includes") { - if (!input.data.includes(check.value, check.position)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_string, - validation: { includes: check.value, position: check.position }, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "toLowerCase") { - input.data = input.data.toLowerCase(); - } else if (check.kind === "toUpperCase") { - input.data = input.data.toUpperCase(); - } else if (check.kind === "startsWith") { - if (!input.data.startsWith(check.value)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_string, - validation: { startsWith: check.value }, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "endsWith") { - if (!input.data.endsWith(check.value)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_string, - validation: { endsWith: check.value }, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "datetime") { - const regex2 = datetimeRegex(check); - if (!regex2.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_string, - validation: "datetime", - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "date") { - const regex2 = dateRegex; - if (!regex2.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_string, - validation: "date", - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "time") { - const regex2 = timeRegex(check); - if (!regex2.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_string, - validation: "time", - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "duration") { - if (!durationRegex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "duration", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "ip") { - if (!isValidIP(input.data, check.version)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "ip", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "base64") { - if (!base64Regex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "base64", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else { - util.assertNever(check); - } - } - return { status: status.value, value: input.data }; - } - _regex(regex2, validation, message) { - return this.refinement((data) => regex2.test(data), { - validation, - code: ZodIssueCode.invalid_string, - ...errorUtil.errToObj(message) - }); - } - _addCheck(check) { - return new _ZodString({ - ...this._def, - checks: [...this._def.checks, check] - }); - } - email(message) { - return this._addCheck({ kind: "email", ...errorUtil.errToObj(message) }); - } - url(message) { - return this._addCheck({ kind: "url", ...errorUtil.errToObj(message) }); - } - emoji(message) { - return this._addCheck({ kind: "emoji", ...errorUtil.errToObj(message) }); - } - uuid(message) { - return this._addCheck({ kind: "uuid", ...errorUtil.errToObj(message) }); - } - nanoid(message) { - return this._addCheck({ kind: "nanoid", ...errorUtil.errToObj(message) }); - } - cuid(message) { - return this._addCheck({ kind: "cuid", ...errorUtil.errToObj(message) }); - } - cuid2(message) { - return this._addCheck({ kind: "cuid2", ...errorUtil.errToObj(message) }); - } - ulid(message) { - return this._addCheck({ kind: "ulid", ...errorUtil.errToObj(message) }); - } - base64(message) { - return this._addCheck({ kind: "base64", ...errorUtil.errToObj(message) }); - } - ip(options) { - return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) }); - } - datetime(options) { - var _a, _b; - if (typeof options === "string") { - return this._addCheck({ - kind: "datetime", - precision: null, - offset: false, - local: false, - message: options - }); - } - return this._addCheck({ - kind: "datetime", - precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision, - offset: (_a = options === null || options === void 0 ? void 0 : options.offset) !== null && _a !== void 0 ? _a : false, - local: (_b = options === null || options === void 0 ? void 0 : options.local) !== null && _b !== void 0 ? _b : false, - ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message) - }); - } - date(message) { - return this._addCheck({ kind: "date", message }); - } - time(options) { - if (typeof options === "string") { - return this._addCheck({ - kind: "time", - precision: null, - message: options - }); - } - return this._addCheck({ - kind: "time", - precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision, - ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message) - }); - } - duration(message) { - return this._addCheck({ kind: "duration", ...errorUtil.errToObj(message) }); - } - regex(regex2, message) { - return this._addCheck({ - kind: "regex", - regex: regex2, - ...errorUtil.errToObj(message) - }); - } - includes(value, options) { - return this._addCheck({ - kind: "includes", - value, - position: options === null || options === void 0 ? void 0 : options.position, - ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message) - }); - } - startsWith(value, message) { - return this._addCheck({ - kind: "startsWith", - value, - ...errorUtil.errToObj(message) - }); - } - endsWith(value, message) { - return this._addCheck({ - kind: "endsWith", - value, - ...errorUtil.errToObj(message) - }); - } - min(minLength, message) { - return this._addCheck({ - kind: "min", - value: minLength, - ...errorUtil.errToObj(message) - }); - } - max(maxLength, message) { - return this._addCheck({ - kind: "max", - value: maxLength, - ...errorUtil.errToObj(message) - }); - } - length(len, message) { - return this._addCheck({ - kind: "length", - value: len, - ...errorUtil.errToObj(message) - }); - } - /** - * @deprecated Use z.string().min(1) instead. - * @see {@link ZodString.min} - */ - nonempty(message) { - return this.min(1, errorUtil.errToObj(message)); - } - trim() { - return new _ZodString({ - ...this._def, - checks: [...this._def.checks, { kind: "trim" }] - }); - } - toLowerCase() { - return new _ZodString({ - ...this._def, - checks: [...this._def.checks, { kind: "toLowerCase" }] - }); - } - toUpperCase() { - return new _ZodString({ - ...this._def, - checks: [...this._def.checks, { kind: "toUpperCase" }] - }); - } - get isDatetime() { - return !!this._def.checks.find((ch) => ch.kind === "datetime"); - } - get isDate() { - return !!this._def.checks.find((ch) => ch.kind === "date"); - } - get isTime() { - return !!this._def.checks.find((ch) => ch.kind === "time"); - } - get isDuration() { - return !!this._def.checks.find((ch) => ch.kind === "duration"); - } - get isEmail() { - return !!this._def.checks.find((ch) => ch.kind === "email"); - } - get isURL() { - return !!this._def.checks.find((ch) => ch.kind === "url"); - } - get isEmoji() { - return !!this._def.checks.find((ch) => ch.kind === "emoji"); - } - get isUUID() { - return !!this._def.checks.find((ch) => ch.kind === "uuid"); - } - get isNANOID() { - return !!this._def.checks.find((ch) => ch.kind === "nanoid"); - } - get isCUID() { - return !!this._def.checks.find((ch) => ch.kind === "cuid"); - } - get isCUID2() { - return !!this._def.checks.find((ch) => ch.kind === "cuid2"); - } - get isULID() { - return !!this._def.checks.find((ch) => ch.kind === "ulid"); - } - get isIP() { - return !!this._def.checks.find((ch) => ch.kind === "ip"); - } - get isBase64() { - return !!this._def.checks.find((ch) => ch.kind === "base64"); - } - get minLength() { - let min = null; - for (const ch of this._def.checks) { - if (ch.kind === "min") { - if (min === null || ch.value > min) - min = ch.value; - } - } - return min; - } - get maxLength() { - let max = null; - for (const ch of this._def.checks) { - if (ch.kind === "max") { - if (max === null || ch.value < max) - max = ch.value; - } - } - return max; - } -}; -ZodString.create = (params) => { - var _a; - return new ZodString({ - checks: [], - typeName: ZodFirstPartyTypeKind.ZodString, - coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false, - ...processCreateParams(params) - }); -}; -function floatSafeRemainder(val, step) { - const valDecCount = (val.toString().split(".")[1] || "").length; - const stepDecCount = (step.toString().split(".")[1] || "").length; - const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount; - const valInt = parseInt(val.toFixed(decCount).replace(".", "")); - const stepInt = parseInt(step.toFixed(decCount).replace(".", "")); - return valInt % stepInt / Math.pow(10, decCount); -} -var ZodNumber = class _ZodNumber extends ZodType { - constructor() { - super(...arguments); - this.min = this.gte; - this.max = this.lte; - this.step = this.multipleOf; - } - _parse(input) { - if (this._def.coerce) { - input.data = Number(input.data); - } - const parsedType = this._getType(input); - if (parsedType !== ZodParsedType.number) { - const ctx2 = this._getOrReturnCtx(input); - addIssueToContext(ctx2, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.number, - received: ctx2.parsedType - }); - return INVALID; - } - let ctx = void 0; - const status = new ParseStatus(); - for (const check of this._def.checks) { - if (check.kind === "int") { - if (!util.isInteger(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: "integer", - received: "float", - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "min") { - const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value; - if (tooSmall) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - minimum: check.value, - type: "number", - inclusive: check.inclusive, - exact: false, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "max") { - const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value; - if (tooBig) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - maximum: check.value, - type: "number", - inclusive: check.inclusive, - exact: false, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "multipleOf") { - if (floatSafeRemainder(input.data, check.value) !== 0) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.not_multiple_of, - multipleOf: check.value, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "finite") { - if (!Number.isFinite(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.not_finite, - message: check.message - }); - status.dirty(); - } - } else { - util.assertNever(check); - } - } - return { status: status.value, value: input.data }; - } - gte(value, message) { - return this.setLimit("min", value, true, errorUtil.toString(message)); - } - gt(value, message) { - return this.setLimit("min", value, false, errorUtil.toString(message)); - } - lte(value, message) { - return this.setLimit("max", value, true, errorUtil.toString(message)); - } - lt(value, message) { - return this.setLimit("max", value, false, errorUtil.toString(message)); - } - setLimit(kind, value, inclusive, message) { - return new _ZodNumber({ - ...this._def, - checks: [ - ...this._def.checks, - { - kind, - value, - inclusive, - message: errorUtil.toString(message) - } - ] - }); - } - _addCheck(check) { - return new _ZodNumber({ - ...this._def, - checks: [...this._def.checks, check] - }); - } - int(message) { - return this._addCheck({ - kind: "int", - message: errorUtil.toString(message) - }); - } - positive(message) { - return this._addCheck({ - kind: "min", - value: 0, - inclusive: false, - message: errorUtil.toString(message) - }); - } - negative(message) { - return this._addCheck({ - kind: "max", - value: 0, - inclusive: false, - message: errorUtil.toString(message) - }); - } - nonpositive(message) { - return this._addCheck({ - kind: "max", - value: 0, - inclusive: true, - message: errorUtil.toString(message) - }); - } - nonnegative(message) { - return this._addCheck({ - kind: "min", - value: 0, - inclusive: true, - message: errorUtil.toString(message) - }); - } - multipleOf(value, message) { - return this._addCheck({ - kind: "multipleOf", - value, - message: errorUtil.toString(message) - }); - } - finite(message) { - return this._addCheck({ - kind: "finite", - message: errorUtil.toString(message) - }); - } - safe(message) { - return this._addCheck({ - kind: "min", - inclusive: true, - value: Number.MIN_SAFE_INTEGER, - message: errorUtil.toString(message) - })._addCheck({ - kind: "max", - inclusive: true, - value: Number.MAX_SAFE_INTEGER, - message: errorUtil.toString(message) - }); - } - get minValue() { - let min = null; - for (const ch of this._def.checks) { - if (ch.kind === "min") { - if (min === null || ch.value > min) - min = ch.value; - } - } - return min; - } - get maxValue() { - let max = null; - for (const ch of this._def.checks) { - if (ch.kind === "max") { - if (max === null || ch.value < max) - max = ch.value; - } - } - return max; - } - get isInt() { - return !!this._def.checks.find((ch) => ch.kind === "int" || ch.kind === "multipleOf" && util.isInteger(ch.value)); - } - get isFinite() { - let max = null, min = null; - for (const ch of this._def.checks) { - if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") { - return true; - } else if (ch.kind === "min") { - if (min === null || ch.value > min) - min = ch.value; - } else if (ch.kind === "max") { - if (max === null || ch.value < max) - max = ch.value; - } - } - return Number.isFinite(min) && Number.isFinite(max); - } -}; -ZodNumber.create = (params) => { - return new ZodNumber({ - checks: [], - typeName: ZodFirstPartyTypeKind.ZodNumber, - coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false, - ...processCreateParams(params) - }); -}; -var ZodBigInt = class _ZodBigInt extends ZodType { - constructor() { - super(...arguments); - this.min = this.gte; - this.max = this.lte; - } - _parse(input) { - if (this._def.coerce) { - input.data = BigInt(input.data); - } - const parsedType = this._getType(input); - if (parsedType !== ZodParsedType.bigint) { - const ctx2 = this._getOrReturnCtx(input); - addIssueToContext(ctx2, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.bigint, - received: ctx2.parsedType - }); - return INVALID; - } - let ctx = void 0; - const status = new ParseStatus(); - for (const check of this._def.checks) { - if (check.kind === "min") { - const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value; - if (tooSmall) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - type: "bigint", - minimum: check.value, - inclusive: check.inclusive, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "max") { - const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value; - if (tooBig) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - type: "bigint", - maximum: check.value, - inclusive: check.inclusive, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "multipleOf") { - if (input.data % check.value !== BigInt(0)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.not_multiple_of, - multipleOf: check.value, - message: check.message - }); - status.dirty(); - } - } else { - util.assertNever(check); - } - } - return { status: status.value, value: input.data }; - } - gte(value, message) { - return this.setLimit("min", value, true, errorUtil.toString(message)); - } - gt(value, message) { - return this.setLimit("min", value, false, errorUtil.toString(message)); - } - lte(value, message) { - return this.setLimit("max", value, true, errorUtil.toString(message)); - } - lt(value, message) { - return this.setLimit("max", value, false, errorUtil.toString(message)); - } - setLimit(kind, value, inclusive, message) { - return new _ZodBigInt({ - ...this._def, - checks: [ - ...this._def.checks, - { - kind, - value, - inclusive, - message: errorUtil.toString(message) - } - ] - }); - } - _addCheck(check) { - return new _ZodBigInt({ - ...this._def, - checks: [...this._def.checks, check] - }); - } - positive(message) { - return this._addCheck({ - kind: "min", - value: BigInt(0), - inclusive: false, - message: errorUtil.toString(message) - }); - } - negative(message) { - return this._addCheck({ - kind: "max", - value: BigInt(0), - inclusive: false, - message: errorUtil.toString(message) - }); - } - nonpositive(message) { - return this._addCheck({ - kind: "max", - value: BigInt(0), - inclusive: true, - message: errorUtil.toString(message) - }); - } - nonnegative(message) { - return this._addCheck({ - kind: "min", - value: BigInt(0), - inclusive: true, - message: errorUtil.toString(message) - }); - } - multipleOf(value, message) { - return this._addCheck({ - kind: "multipleOf", - value, - message: errorUtil.toString(message) - }); - } - get minValue() { - let min = null; - for (const ch of this._def.checks) { - if (ch.kind === "min") { - if (min === null || ch.value > min) - min = ch.value; - } - } - return min; - } - get maxValue() { - let max = null; - for (const ch of this._def.checks) { - if (ch.kind === "max") { - if (max === null || ch.value < max) - max = ch.value; - } - } - return max; - } -}; -ZodBigInt.create = (params) => { - var _a; - return new ZodBigInt({ - checks: [], - typeName: ZodFirstPartyTypeKind.ZodBigInt, - coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false, - ...processCreateParams(params) - }); -}; -var ZodBoolean = class extends ZodType { - _parse(input) { - if (this._def.coerce) { - input.data = Boolean(input.data); - } - const parsedType = this._getType(input); - if (parsedType !== ZodParsedType.boolean) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.boolean, - received: ctx.parsedType - }); - return INVALID; - } - return OK(input.data); - } -}; -ZodBoolean.create = (params) => { - return new ZodBoolean({ - typeName: ZodFirstPartyTypeKind.ZodBoolean, - coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false, - ...processCreateParams(params) - }); -}; -var ZodDate = class _ZodDate extends ZodType { - _parse(input) { - if (this._def.coerce) { - input.data = new Date(input.data); - } - const parsedType = this._getType(input); - if (parsedType !== ZodParsedType.date) { - const ctx2 = this._getOrReturnCtx(input); - addIssueToContext(ctx2, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.date, - received: ctx2.parsedType - }); - return INVALID; - } - if (isNaN(input.data.getTime())) { - const ctx2 = this._getOrReturnCtx(input); - addIssueToContext(ctx2, { - code: ZodIssueCode.invalid_date - }); - return INVALID; - } - const status = new ParseStatus(); - let ctx = void 0; - for (const check of this._def.checks) { - if (check.kind === "min") { - if (input.data.getTime() < check.value) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - message: check.message, - inclusive: true, - exact: false, - minimum: check.value, - type: "date" - }); - status.dirty(); - } - } else if (check.kind === "max") { - if (input.data.getTime() > check.value) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - message: check.message, - inclusive: true, - exact: false, - maximum: check.value, - type: "date" - }); - status.dirty(); - } - } else { - util.assertNever(check); - } - } - return { - status: status.value, - value: new Date(input.data.getTime()) - }; - } - _addCheck(check) { - return new _ZodDate({ - ...this._def, - checks: [...this._def.checks, check] - }); - } - min(minDate, message) { - return this._addCheck({ - kind: "min", - value: minDate.getTime(), - message: errorUtil.toString(message) - }); - } - max(maxDate, message) { - return this._addCheck({ - kind: "max", - value: maxDate.getTime(), - message: errorUtil.toString(message) - }); - } - get minDate() { - let min = null; - for (const ch of this._def.checks) { - if (ch.kind === "min") { - if (min === null || ch.value > min) - min = ch.value; - } - } - return min != null ? new Date(min) : null; - } - get maxDate() { - let max = null; - for (const ch of this._def.checks) { - if (ch.kind === "max") { - if (max === null || ch.value < max) - max = ch.value; - } - } - return max != null ? new Date(max) : null; - } -}; -ZodDate.create = (params) => { - return new ZodDate({ - checks: [], - coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false, - typeName: ZodFirstPartyTypeKind.ZodDate, - ...processCreateParams(params) - }); -}; -var ZodSymbol = class extends ZodType { - _parse(input) { - const parsedType = this._getType(input); - if (parsedType !== ZodParsedType.symbol) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.symbol, - received: ctx.parsedType - }); - return INVALID; - } - return OK(input.data); - } -}; -ZodSymbol.create = (params) => { - return new ZodSymbol({ - typeName: ZodFirstPartyTypeKind.ZodSymbol, - ...processCreateParams(params) - }); -}; -var ZodUndefined = class extends ZodType { - _parse(input) { - const parsedType = this._getType(input); - if (parsedType !== ZodParsedType.undefined) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.undefined, - received: ctx.parsedType - }); - return INVALID; - } - return OK(input.data); - } -}; -ZodUndefined.create = (params) => { - return new ZodUndefined({ - typeName: ZodFirstPartyTypeKind.ZodUndefined, - ...processCreateParams(params) - }); -}; -var ZodNull = class extends ZodType { - _parse(input) { - const parsedType = this._getType(input); - if (parsedType !== ZodParsedType.null) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.null, - received: ctx.parsedType - }); - return INVALID; - } - return OK(input.data); - } -}; -ZodNull.create = (params) => { - return new ZodNull({ - typeName: ZodFirstPartyTypeKind.ZodNull, - ...processCreateParams(params) - }); -}; -var ZodAny = class extends ZodType { - constructor() { - super(...arguments); - this._any = true; - } - _parse(input) { - return OK(input.data); - } -}; -ZodAny.create = (params) => { - return new ZodAny({ - typeName: ZodFirstPartyTypeKind.ZodAny, - ...processCreateParams(params) - }); -}; -var ZodUnknown = class extends ZodType { - constructor() { - super(...arguments); - this._unknown = true; - } - _parse(input) { - return OK(input.data); - } -}; -ZodUnknown.create = (params) => { - return new ZodUnknown({ - typeName: ZodFirstPartyTypeKind.ZodUnknown, - ...processCreateParams(params) - }); -}; -var ZodNever = class extends ZodType { - _parse(input) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.never, - received: ctx.parsedType - }); - return INVALID; - } -}; -ZodNever.create = (params) => { - return new ZodNever({ - typeName: ZodFirstPartyTypeKind.ZodNever, - ...processCreateParams(params) - }); -}; -var ZodVoid = class extends ZodType { - _parse(input) { - const parsedType = this._getType(input); - if (parsedType !== ZodParsedType.undefined) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.void, - received: ctx.parsedType - }); - return INVALID; - } - return OK(input.data); - } -}; -ZodVoid.create = (params) => { - return new ZodVoid({ - typeName: ZodFirstPartyTypeKind.ZodVoid, - ...processCreateParams(params) - }); -}; -var ZodArray = class _ZodArray extends ZodType { - _parse(input) { - const { ctx, status } = this._processInputParams(input); - const def = this._def; - if (ctx.parsedType !== ZodParsedType.array) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.array, - received: ctx.parsedType - }); - return INVALID; - } - if (def.exactLength !== null) { - const tooBig = ctx.data.length > def.exactLength.value; - const tooSmall = ctx.data.length < def.exactLength.value; - if (tooBig || tooSmall) { - addIssueToContext(ctx, { - code: tooBig ? ZodIssueCode.too_big : ZodIssueCode.too_small, - minimum: tooSmall ? def.exactLength.value : void 0, - maximum: tooBig ? def.exactLength.value : void 0, - type: "array", - inclusive: true, - exact: true, - message: def.exactLength.message - }); - status.dirty(); - } - } - if (def.minLength !== null) { - if (ctx.data.length < def.minLength.value) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - minimum: def.minLength.value, - type: "array", - inclusive: true, - exact: false, - message: def.minLength.message - }); - status.dirty(); - } - } - if (def.maxLength !== null) { - if (ctx.data.length > def.maxLength.value) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - maximum: def.maxLength.value, - type: "array", - inclusive: true, - exact: false, - message: def.maxLength.message - }); - status.dirty(); - } - } - if (ctx.common.async) { - return Promise.all([...ctx.data].map((item, i) => { - return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i)); - })).then((result2) => { - return ParseStatus.mergeArray(status, result2); - }); - } - const result = [...ctx.data].map((item, i) => { - return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i)); - }); - return ParseStatus.mergeArray(status, result); - } - get element() { - return this._def.type; - } - min(minLength, message) { - return new _ZodArray({ - ...this._def, - minLength: { value: minLength, message: errorUtil.toString(message) } - }); - } - max(maxLength, message) { - return new _ZodArray({ - ...this._def, - maxLength: { value: maxLength, message: errorUtil.toString(message) } - }); - } - length(len, message) { - return new _ZodArray({ - ...this._def, - exactLength: { value: len, message: errorUtil.toString(message) } - }); - } - nonempty(message) { - return this.min(1, message); - } -}; -ZodArray.create = (schema, params) => { - return new ZodArray({ - type: schema, - minLength: null, - maxLength: null, - exactLength: null, - typeName: ZodFirstPartyTypeKind.ZodArray, - ...processCreateParams(params) - }); -}; -function deepPartialify(schema) { - if (schema instanceof ZodObject) { - const newShape = {}; - for (const key in schema.shape) { - const fieldSchema = schema.shape[key]; - newShape[key] = ZodOptional.create(deepPartialify(fieldSchema)); - } - return new ZodObject({ - ...schema._def, - shape: () => newShape - }); - } else if (schema instanceof ZodArray) { - return new ZodArray({ - ...schema._def, - type: deepPartialify(schema.element) - }); - } else if (schema instanceof ZodOptional) { - return ZodOptional.create(deepPartialify(schema.unwrap())); - } else if (schema instanceof ZodNullable) { - return ZodNullable.create(deepPartialify(schema.unwrap())); - } else if (schema instanceof ZodTuple) { - return ZodTuple.create(schema.items.map((item) => deepPartialify(item))); - } else { - return schema; - } -} -var ZodObject = class _ZodObject extends ZodType { - constructor() { - super(...arguments); - this._cached = null; - this.nonstrict = this.passthrough; - this.augment = this.extend; - } - _getCached() { - if (this._cached !== null) - return this._cached; - const shape = this._def.shape(); - const keys = util.objectKeys(shape); - return this._cached = { shape, keys }; - } - _parse(input) { - const parsedType = this._getType(input); - if (parsedType !== ZodParsedType.object) { - const ctx2 = this._getOrReturnCtx(input); - addIssueToContext(ctx2, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.object, - received: ctx2.parsedType - }); - return INVALID; - } - const { status, ctx } = this._processInputParams(input); - const { shape, keys: shapeKeys } = this._getCached(); - const extraKeys = []; - if (!(this._def.catchall instanceof ZodNever && this._def.unknownKeys === "strip")) { - for (const key in ctx.data) { - if (!shapeKeys.includes(key)) { - extraKeys.push(key); - } - } - } - const pairs = []; - for (const key of shapeKeys) { - const keyValidator = shape[key]; - const value = ctx.data[key]; - pairs.push({ - key: { status: "valid", value: key }, - value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)), - alwaysSet: key in ctx.data - }); - } - if (this._def.catchall instanceof ZodNever) { - const unknownKeys = this._def.unknownKeys; - if (unknownKeys === "passthrough") { - for (const key of extraKeys) { - pairs.push({ - key: { status: "valid", value: key }, - value: { status: "valid", value: ctx.data[key] } - }); - } - } else if (unknownKeys === "strict") { - if (extraKeys.length > 0) { - addIssueToContext(ctx, { - code: ZodIssueCode.unrecognized_keys, - keys: extraKeys - }); - status.dirty(); - } - } else if (unknownKeys === "strip") - ; - else { - throw new Error(`Internal ZodObject error: invalid unknownKeys value.`); - } - } else { - const catchall = this._def.catchall; - for (const key of extraKeys) { - const value = ctx.data[key]; - pairs.push({ - key: { status: "valid", value: key }, - value: catchall._parse( - new ParseInputLazyPath(ctx, value, ctx.path, key) - //, ctx.child(key), value, getParsedType(value) - ), - alwaysSet: key in ctx.data - }); - } - } - if (ctx.common.async) { - return Promise.resolve().then(async () => { - const syncPairs = []; - for (const pair of pairs) { - const key = await pair.key; - const value = await pair.value; - syncPairs.push({ - key, - value, - alwaysSet: pair.alwaysSet - }); - } - return syncPairs; - }).then((syncPairs) => { - return ParseStatus.mergeObjectSync(status, syncPairs); - }); - } else { - return ParseStatus.mergeObjectSync(status, pairs); - } - } - get shape() { - return this._def.shape(); - } - strict(message) { - errorUtil.errToObj; - return new _ZodObject({ - ...this._def, - unknownKeys: "strict", - ...message !== void 0 ? { - errorMap: (issue, ctx) => { - var _a, _b, _c, _d; - const defaultError = (_c = (_b = (_a = this._def).errorMap) === null || _b === void 0 ? void 0 : _b.call(_a, issue, ctx).message) !== null && _c !== void 0 ? _c : ctx.defaultError; - if (issue.code === "unrecognized_keys") - return { - message: (_d = errorUtil.errToObj(message).message) !== null && _d !== void 0 ? _d : defaultError - }; - return { - message: defaultError - }; - } - } : {} - }); - } - strip() { - return new _ZodObject({ - ...this._def, - unknownKeys: "strip" - }); - } - passthrough() { - return new _ZodObject({ - ...this._def, - unknownKeys: "passthrough" - }); - } - // const AugmentFactory = - // (def: Def) => - // ( - // augmentation: Augmentation - // ): ZodObject< - // extendShape, Augmentation>, - // Def["unknownKeys"], - // Def["catchall"] - // > => { - // return new ZodObject({ - // ...def, - // shape: () => ({ - // ...def.shape(), - // ...augmentation, - // }), - // }) as any; - // }; - extend(augmentation) { - return new _ZodObject({ - ...this._def, - shape: () => ({ - ...this._def.shape(), - ...augmentation - }) - }); - } - /** - * Prior to zod@1.0.12 there was a bug in the - * inferred type of merged objects. Please - * upgrade if you are experiencing issues. - */ - merge(merging) { - const merged = new _ZodObject({ - unknownKeys: merging._def.unknownKeys, - catchall: merging._def.catchall, - shape: () => ({ - ...this._def.shape(), - ...merging._def.shape() - }), - typeName: ZodFirstPartyTypeKind.ZodObject - }); - return merged; - } - // merge< - // Incoming extends AnyZodObject, - // Augmentation extends Incoming["shape"], - // NewOutput extends { - // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation - // ? Augmentation[k]["_output"] - // : k extends keyof Output - // ? Output[k] - // : never; - // }, - // NewInput extends { - // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation - // ? Augmentation[k]["_input"] - // : k extends keyof Input - // ? Input[k] - // : never; - // } - // >( - // merging: Incoming - // ): ZodObject< - // extendShape>, - // Incoming["_def"]["unknownKeys"], - // Incoming["_def"]["catchall"], - // NewOutput, - // NewInput - // > { - // const merged: any = new ZodObject({ - // unknownKeys: merging._def.unknownKeys, - // catchall: merging._def.catchall, - // shape: () => - // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()), - // typeName: ZodFirstPartyTypeKind.ZodObject, - // }) as any; - // return merged; - // } - setKey(key, schema) { - return this.augment({ [key]: schema }); - } - // merge( - // merging: Incoming - // ): //ZodObject = (merging) => { - // ZodObject< - // extendShape>, - // Incoming["_def"]["unknownKeys"], - // Incoming["_def"]["catchall"] - // > { - // // const mergedShape = objectUtil.mergeShapes( - // // this._def.shape(), - // // merging._def.shape() - // // ); - // const merged: any = new ZodObject({ - // unknownKeys: merging._def.unknownKeys, - // catchall: merging._def.catchall, - // shape: () => - // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()), - // typeName: ZodFirstPartyTypeKind.ZodObject, - // }) as any; - // return merged; - // } - catchall(index) { - return new _ZodObject({ - ...this._def, - catchall: index - }); - } - pick(mask) { - const shape = {}; - util.objectKeys(mask).forEach((key) => { - if (mask[key] && this.shape[key]) { - shape[key] = this.shape[key]; - } - }); - return new _ZodObject({ - ...this._def, - shape: () => shape - }); - } - omit(mask) { - const shape = {}; - util.objectKeys(this.shape).forEach((key) => { - if (!mask[key]) { - shape[key] = this.shape[key]; - } - }); - return new _ZodObject({ - ...this._def, - shape: () => shape - }); - } - /** - * @deprecated - */ - deepPartial() { - return deepPartialify(this); - } - partial(mask) { - const newShape = {}; - util.objectKeys(this.shape).forEach((key) => { - const fieldSchema = this.shape[key]; - if (mask && !mask[key]) { - newShape[key] = fieldSchema; - } else { - newShape[key] = fieldSchema.optional(); - } - }); - return new _ZodObject({ - ...this._def, - shape: () => newShape - }); - } - required(mask) { - const newShape = {}; - util.objectKeys(this.shape).forEach((key) => { - if (mask && !mask[key]) { - newShape[key] = this.shape[key]; - } else { - const fieldSchema = this.shape[key]; - let newField = fieldSchema; - while (newField instanceof ZodOptional) { - newField = newField._def.innerType; - } - newShape[key] = newField; - } - }); - return new _ZodObject({ - ...this._def, - shape: () => newShape - }); - } - keyof() { - return createZodEnum(util.objectKeys(this.shape)); - } -}; -ZodObject.create = (shape, params) => { - return new ZodObject({ - shape: () => shape, - unknownKeys: "strip", - catchall: ZodNever.create(), - typeName: ZodFirstPartyTypeKind.ZodObject, - ...processCreateParams(params) - }); -}; -ZodObject.strictCreate = (shape, params) => { - return new ZodObject({ - shape: () => shape, - unknownKeys: "strict", - catchall: ZodNever.create(), - typeName: ZodFirstPartyTypeKind.ZodObject, - ...processCreateParams(params) - }); -}; -ZodObject.lazycreate = (shape, params) => { - return new ZodObject({ - shape, - unknownKeys: "strip", - catchall: ZodNever.create(), - typeName: ZodFirstPartyTypeKind.ZodObject, - ...processCreateParams(params) - }); -}; -var ZodUnion = class extends ZodType { - _parse(input) { - const { ctx } = this._processInputParams(input); - const options = this._def.options; - function handleResults(results) { - for (const result of results) { - if (result.result.status === "valid") { - return result.result; - } - } - for (const result of results) { - if (result.result.status === "dirty") { - ctx.common.issues.push(...result.ctx.common.issues); - return result.result; - } - } - const unionErrors = results.map((result) => new ZodError(result.ctx.common.issues)); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_union, - unionErrors - }); - return INVALID; - } - if (ctx.common.async) { - return Promise.all(options.map(async (option) => { - const childCtx = { - ...ctx, - common: { - ...ctx.common, - issues: [] - }, - parent: null - }; - return { - result: await option._parseAsync({ - data: ctx.data, - path: ctx.path, - parent: childCtx - }), - ctx: childCtx - }; - })).then(handleResults); - } else { - let dirty = void 0; - const issues = []; - for (const option of options) { - const childCtx = { - ...ctx, - common: { - ...ctx.common, - issues: [] - }, - parent: null - }; - const result = option._parseSync({ - data: ctx.data, - path: ctx.path, - parent: childCtx - }); - if (result.status === "valid") { - return result; - } else if (result.status === "dirty" && !dirty) { - dirty = { result, ctx: childCtx }; - } - if (childCtx.common.issues.length) { - issues.push(childCtx.common.issues); - } - } - if (dirty) { - ctx.common.issues.push(...dirty.ctx.common.issues); - return dirty.result; - } - const unionErrors = issues.map((issues2) => new ZodError(issues2)); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_union, - unionErrors - }); - return INVALID; - } - } - get options() { - return this._def.options; - } -}; -ZodUnion.create = (types, params) => { - return new ZodUnion({ - options: types, - typeName: ZodFirstPartyTypeKind.ZodUnion, - ...processCreateParams(params) - }); -}; -var getDiscriminator = (type) => { - if (type instanceof ZodLazy) { - return getDiscriminator(type.schema); - } else if (type instanceof ZodEffects) { - return getDiscriminator(type.innerType()); - } else if (type instanceof ZodLiteral) { - return [type.value]; - } else if (type instanceof ZodEnum) { - return type.options; - } else if (type instanceof ZodNativeEnum) { - return util.objectValues(type.enum); - } else if (type instanceof ZodDefault) { - return getDiscriminator(type._def.innerType); - } else if (type instanceof ZodUndefined) { - return [void 0]; - } else if (type instanceof ZodNull) { - return [null]; - } else if (type instanceof ZodOptional) { - return [void 0, ...getDiscriminator(type.unwrap())]; - } else if (type instanceof ZodNullable) { - return [null, ...getDiscriminator(type.unwrap())]; - } else if (type instanceof ZodBranded) { - return getDiscriminator(type.unwrap()); - } else if (type instanceof ZodReadonly) { - return getDiscriminator(type.unwrap()); - } else if (type instanceof ZodCatch) { - return getDiscriminator(type._def.innerType); - } else { - return []; - } -}; -var ZodDiscriminatedUnion = class _ZodDiscriminatedUnion extends ZodType { - _parse(input) { - const { ctx } = this._processInputParams(input); - if (ctx.parsedType !== ZodParsedType.object) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.object, - received: ctx.parsedType - }); - return INVALID; - } - const discriminator = this.discriminator; - const discriminatorValue = ctx.data[discriminator]; - const option = this.optionsMap.get(discriminatorValue); - if (!option) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_union_discriminator, - options: Array.from(this.optionsMap.keys()), - path: [discriminator] - }); - return INVALID; - } - if (ctx.common.async) { - return option._parseAsync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }); - } else { - return option._parseSync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }); - } - } - get discriminator() { - return this._def.discriminator; - } - get options() { - return this._def.options; - } - get optionsMap() { - return this._def.optionsMap; - } - /** - * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor. - * However, it only allows a union of objects, all of which need to share a discriminator property. This property must - * have a different value for each object in the union. - * @param discriminator the name of the discriminator property - * @param types an array of object schemas - * @param params - */ - static create(discriminator, options, params) { - const optionsMap = /* @__PURE__ */ new Map(); - for (const type of options) { - const discriminatorValues = getDiscriminator(type.shape[discriminator]); - if (!discriminatorValues.length) { - throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`); - } - for (const value of discriminatorValues) { - if (optionsMap.has(value)) { - throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`); - } - optionsMap.set(value, type); - } - } - return new _ZodDiscriminatedUnion({ - typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion, - discriminator, - options, - optionsMap, - ...processCreateParams(params) - }); - } -}; -function mergeValues(a, b) { - const aType = getParsedType(a); - const bType = getParsedType(b); - if (a === b) { - return { valid: true, data: a }; - } else if (aType === ZodParsedType.object && bType === ZodParsedType.object) { - const bKeys = util.objectKeys(b); - const sharedKeys = util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1); - const newObj = { ...a, ...b }; - for (const key of sharedKeys) { - const sharedValue = mergeValues(a[key], b[key]); - if (!sharedValue.valid) { - return { valid: false }; - } - newObj[key] = sharedValue.data; - } - return { valid: true, data: newObj }; - } else if (aType === ZodParsedType.array && bType === ZodParsedType.array) { - if (a.length !== b.length) { - return { valid: false }; - } - const newArray = []; - for (let index = 0; index < a.length; index++) { - const itemA = a[index]; - const itemB = b[index]; - const sharedValue = mergeValues(itemA, itemB); - if (!sharedValue.valid) { - return { valid: false }; - } - newArray.push(sharedValue.data); - } - return { valid: true, data: newArray }; - } else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a === +b) { - return { valid: true, data: a }; - } else { - return { valid: false }; - } -} -var ZodIntersection = class extends ZodType { - _parse(input) { - const { status, ctx } = this._processInputParams(input); - const handleParsed = (parsedLeft, parsedRight) => { - if (isAborted(parsedLeft) || isAborted(parsedRight)) { - return INVALID; - } - const merged = mergeValues(parsedLeft.value, parsedRight.value); - if (!merged.valid) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_intersection_types - }); - return INVALID; - } - if (isDirty(parsedLeft) || isDirty(parsedRight)) { - status.dirty(); - } - return { status: status.value, value: merged.data }; - }; - if (ctx.common.async) { - return Promise.all([ - this._def.left._parseAsync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }), - this._def.right._parseAsync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }) - ]).then(([left, right]) => handleParsed(left, right)); - } else { - return handleParsed(this._def.left._parseSync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }), this._def.right._parseSync({ - data: ctx.data, - path: ctx.path, - parent: ctx - })); - } - } -}; -ZodIntersection.create = (left, right, params) => { - return new ZodIntersection({ - left, - right, - typeName: ZodFirstPartyTypeKind.ZodIntersection, - ...processCreateParams(params) - }); -}; -var ZodTuple = class _ZodTuple extends ZodType { - _parse(input) { - const { status, ctx } = this._processInputParams(input); - if (ctx.parsedType !== ZodParsedType.array) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.array, - received: ctx.parsedType - }); - return INVALID; - } - if (ctx.data.length < this._def.items.length) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - minimum: this._def.items.length, - inclusive: true, - exact: false, - type: "array" - }); - return INVALID; - } - const rest = this._def.rest; - if (!rest && ctx.data.length > this._def.items.length) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - maximum: this._def.items.length, - inclusive: true, - exact: false, - type: "array" - }); - status.dirty(); - } - const items = [...ctx.data].map((item, itemIndex) => { - const schema = this._def.items[itemIndex] || this._def.rest; - if (!schema) - return null; - return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex)); - }).filter((x) => !!x); - if (ctx.common.async) { - return Promise.all(items).then((results) => { - return ParseStatus.mergeArray(status, results); - }); - } else { - return ParseStatus.mergeArray(status, items); - } - } - get items() { - return this._def.items; - } - rest(rest) { - return new _ZodTuple({ - ...this._def, - rest - }); - } -}; -ZodTuple.create = (schemas, params) => { - if (!Array.isArray(schemas)) { - throw new Error("You must pass an array of schemas to z.tuple([ ... ])"); - } - return new ZodTuple({ - items: schemas, - typeName: ZodFirstPartyTypeKind.ZodTuple, - rest: null, - ...processCreateParams(params) - }); -}; -var ZodRecord = class _ZodRecord extends ZodType { - get keySchema() { - return this._def.keyType; - } - get valueSchema() { - return this._def.valueType; - } - _parse(input) { - const { status, ctx } = this._processInputParams(input); - if (ctx.parsedType !== ZodParsedType.object) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.object, - received: ctx.parsedType - }); - return INVALID; - } - const pairs = []; - const keyType = this._def.keyType; - const valueType = this._def.valueType; - for (const key in ctx.data) { - pairs.push({ - key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)), - value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)), - alwaysSet: key in ctx.data - }); - } - if (ctx.common.async) { - return ParseStatus.mergeObjectAsync(status, pairs); - } else { - return ParseStatus.mergeObjectSync(status, pairs); - } - } - get element() { - return this._def.valueType; - } - static create(first, second, third) { - if (second instanceof ZodType) { - return new _ZodRecord({ - keyType: first, - valueType: second, - typeName: ZodFirstPartyTypeKind.ZodRecord, - ...processCreateParams(third) - }); - } - return new _ZodRecord({ - keyType: ZodString.create(), - valueType: first, - typeName: ZodFirstPartyTypeKind.ZodRecord, - ...processCreateParams(second) - }); - } -}; -var ZodMap = class extends ZodType { - get keySchema() { - return this._def.keyType; - } - get valueSchema() { - return this._def.valueType; - } - _parse(input) { - const { status, ctx } = this._processInputParams(input); - if (ctx.parsedType !== ZodParsedType.map) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.map, - received: ctx.parsedType - }); - return INVALID; - } - const keyType = this._def.keyType; - const valueType = this._def.valueType; - const pairs = [...ctx.data.entries()].map(([key, value], index) => { - return { - key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, "key"])), - value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, "value"])) - }; - }); - if (ctx.common.async) { - const finalMap = /* @__PURE__ */ new Map(); - return Promise.resolve().then(async () => { - for (const pair of pairs) { - const key = await pair.key; - const value = await pair.value; - if (key.status === "aborted" || value.status === "aborted") { - return INVALID; - } - if (key.status === "dirty" || value.status === "dirty") { - status.dirty(); - } - finalMap.set(key.value, value.value); - } - return { status: status.value, value: finalMap }; - }); - } else { - const finalMap = /* @__PURE__ */ new Map(); - for (const pair of pairs) { - const key = pair.key; - const value = pair.value; - if (key.status === "aborted" || value.status === "aborted") { - return INVALID; - } - if (key.status === "dirty" || value.status === "dirty") { - status.dirty(); - } - finalMap.set(key.value, value.value); - } - return { status: status.value, value: finalMap }; - } - } -}; -ZodMap.create = (keyType, valueType, params) => { - return new ZodMap({ - valueType, - keyType, - typeName: ZodFirstPartyTypeKind.ZodMap, - ...processCreateParams(params) - }); -}; -var ZodSet = class _ZodSet extends ZodType { - _parse(input) { - const { status, ctx } = this._processInputParams(input); - if (ctx.parsedType !== ZodParsedType.set) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.set, - received: ctx.parsedType - }); - return INVALID; - } - const def = this._def; - if (def.minSize !== null) { - if (ctx.data.size < def.minSize.value) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - minimum: def.minSize.value, - type: "set", - inclusive: true, - exact: false, - message: def.minSize.message - }); - status.dirty(); - } - } - if (def.maxSize !== null) { - if (ctx.data.size > def.maxSize.value) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - maximum: def.maxSize.value, - type: "set", - inclusive: true, - exact: false, - message: def.maxSize.message - }); - status.dirty(); - } - } - const valueType = this._def.valueType; - function finalizeSet(elements2) { - const parsedSet = /* @__PURE__ */ new Set(); - for (const element2 of elements2) { - if (element2.status === "aborted") - return INVALID; - if (element2.status === "dirty") - status.dirty(); - parsedSet.add(element2.value); - } - return { status: status.value, value: parsedSet }; - } - const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i))); - if (ctx.common.async) { - return Promise.all(elements).then((elements2) => finalizeSet(elements2)); - } else { - return finalizeSet(elements); - } - } - min(minSize, message) { - return new _ZodSet({ - ...this._def, - minSize: { value: minSize, message: errorUtil.toString(message) } - }); - } - max(maxSize, message) { - return new _ZodSet({ - ...this._def, - maxSize: { value: maxSize, message: errorUtil.toString(message) } - }); - } - size(size, message) { - return this.min(size, message).max(size, message); - } - nonempty(message) { - return this.min(1, message); - } -}; -ZodSet.create = (valueType, params) => { - return new ZodSet({ - valueType, - minSize: null, - maxSize: null, - typeName: ZodFirstPartyTypeKind.ZodSet, - ...processCreateParams(params) - }); -}; -var ZodFunction = class _ZodFunction extends ZodType { - constructor() { - super(...arguments); - this.validate = this.implement; - } - _parse(input) { - const { ctx } = this._processInputParams(input); - if (ctx.parsedType !== ZodParsedType.function) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.function, - received: ctx.parsedType - }); - return INVALID; - } - function makeArgsIssue(args, error) { - return makeIssue({ - data: args, - path: ctx.path, - errorMaps: [ - ctx.common.contextualErrorMap, - ctx.schemaErrorMap, - getErrorMap(), - errorMap - ].filter((x) => !!x), - issueData: { - code: ZodIssueCode.invalid_arguments, - argumentsError: error - } - }); - } - function makeReturnsIssue(returns, error) { - return makeIssue({ - data: returns, - path: ctx.path, - errorMaps: [ - ctx.common.contextualErrorMap, - ctx.schemaErrorMap, - getErrorMap(), - errorMap - ].filter((x) => !!x), - issueData: { - code: ZodIssueCode.invalid_return_type, - returnTypeError: error - } - }); - } - const params = { errorMap: ctx.common.contextualErrorMap }; - const fn = ctx.data; - if (this._def.returns instanceof ZodPromise) { - const me = this; - return OK(async function(...args) { - const error = new ZodError([]); - const parsedArgs = await me._def.args.parseAsync(args, params).catch((e) => { - error.addIssue(makeArgsIssue(args, e)); - throw error; - }); - const result = await Reflect.apply(fn, this, parsedArgs); - const parsedReturns = await me._def.returns._def.type.parseAsync(result, params).catch((e) => { - error.addIssue(makeReturnsIssue(result, e)); - throw error; - }); - return parsedReturns; - }); - } else { - const me = this; - return OK(function(...args) { - const parsedArgs = me._def.args.safeParse(args, params); - if (!parsedArgs.success) { - throw new ZodError([makeArgsIssue(args, parsedArgs.error)]); - } - const result = Reflect.apply(fn, this, parsedArgs.data); - const parsedReturns = me._def.returns.safeParse(result, params); - if (!parsedReturns.success) { - throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]); - } - return parsedReturns.data; - }); - } - } - parameters() { - return this._def.args; - } - returnType() { - return this._def.returns; - } - args(...items) { - return new _ZodFunction({ - ...this._def, - args: ZodTuple.create(items).rest(ZodUnknown.create()) - }); - } - returns(returnType) { - return new _ZodFunction({ - ...this._def, - returns: returnType - }); - } - implement(func) { - const validatedFunc = this.parse(func); - return validatedFunc; - } - strictImplement(func) { - const validatedFunc = this.parse(func); - return validatedFunc; - } - static create(args, returns, params) { - return new _ZodFunction({ - args: args ? args : ZodTuple.create([]).rest(ZodUnknown.create()), - returns: returns || ZodUnknown.create(), - typeName: ZodFirstPartyTypeKind.ZodFunction, - ...processCreateParams(params) - }); - } -}; -var ZodLazy = class extends ZodType { - get schema() { - return this._def.getter(); - } - _parse(input) { - const { ctx } = this._processInputParams(input); - const lazySchema = this._def.getter(); - return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx }); - } -}; -ZodLazy.create = (getter, params) => { - return new ZodLazy({ - getter, - typeName: ZodFirstPartyTypeKind.ZodLazy, - ...processCreateParams(params) - }); -}; -var ZodLiteral = class extends ZodType { - _parse(input) { - if (input.data !== this._def.value) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - received: ctx.data, - code: ZodIssueCode.invalid_literal, - expected: this._def.value - }); - return INVALID; - } - return { status: "valid", value: input.data }; - } - get value() { - return this._def.value; - } -}; -ZodLiteral.create = (value, params) => { - return new ZodLiteral({ - value, - typeName: ZodFirstPartyTypeKind.ZodLiteral, - ...processCreateParams(params) - }); -}; -function createZodEnum(values, params) { - return new ZodEnum({ - values, - typeName: ZodFirstPartyTypeKind.ZodEnum, - ...processCreateParams(params) - }); -} -var ZodEnum = class _ZodEnum extends ZodType { - constructor() { - super(...arguments); - _ZodEnum_cache.set(this, void 0); - } - _parse(input) { - if (typeof input.data !== "string") { - const ctx = this._getOrReturnCtx(input); - const expectedValues = this._def.values; - addIssueToContext(ctx, { - expected: util.joinValues(expectedValues), - received: ctx.parsedType, - code: ZodIssueCode.invalid_type - }); - return INVALID; - } - if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f")) { - __classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values), "f"); - } - if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f").has(input.data)) { - const ctx = this._getOrReturnCtx(input); - const expectedValues = this._def.values; - addIssueToContext(ctx, { - received: ctx.data, - code: ZodIssueCode.invalid_enum_value, - options: expectedValues - }); - return INVALID; - } - return OK(input.data); - } - get options() { - return this._def.values; - } - get enum() { - const enumValues = {}; - for (const val of this._def.values) { - enumValues[val] = val; - } - return enumValues; - } - get Values() { - const enumValues = {}; - for (const val of this._def.values) { - enumValues[val] = val; - } - return enumValues; - } - get Enum() { - const enumValues = {}; - for (const val of this._def.values) { - enumValues[val] = val; - } - return enumValues; - } - extract(values, newDef = this._def) { - return _ZodEnum.create(values, { - ...this._def, - ...newDef - }); - } - exclude(values, newDef = this._def) { - return _ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), { - ...this._def, - ...newDef - }); - } -}; -_ZodEnum_cache = /* @__PURE__ */ new WeakMap(); -ZodEnum.create = createZodEnum; -var ZodNativeEnum = class extends ZodType { - constructor() { - super(...arguments); - _ZodNativeEnum_cache.set(this, void 0); - } - _parse(input) { - const nativeEnumValues = util.getValidEnumValues(this._def.values); - const ctx = this._getOrReturnCtx(input); - if (ctx.parsedType !== ZodParsedType.string && ctx.parsedType !== ZodParsedType.number) { - const expectedValues = util.objectValues(nativeEnumValues); - addIssueToContext(ctx, { - expected: util.joinValues(expectedValues), - received: ctx.parsedType, - code: ZodIssueCode.invalid_type - }); - return INVALID; - } - if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f")) { - __classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util.getValidEnumValues(this._def.values)), "f"); - } - if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f").has(input.data)) { - const expectedValues = util.objectValues(nativeEnumValues); - addIssueToContext(ctx, { - received: ctx.data, - code: ZodIssueCode.invalid_enum_value, - options: expectedValues - }); - return INVALID; - } - return OK(input.data); - } - get enum() { - return this._def.values; - } -}; -_ZodNativeEnum_cache = /* @__PURE__ */ new WeakMap(); -ZodNativeEnum.create = (values, params) => { - return new ZodNativeEnum({ - values, - typeName: ZodFirstPartyTypeKind.ZodNativeEnum, - ...processCreateParams(params) - }); -}; -var ZodPromise = class extends ZodType { - unwrap() { - return this._def.type; - } - _parse(input) { - const { ctx } = this._processInputParams(input); - if (ctx.parsedType !== ZodParsedType.promise && ctx.common.async === false) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.promise, - received: ctx.parsedType - }); - return INVALID; - } - const promisified = ctx.parsedType === ZodParsedType.promise ? ctx.data : Promise.resolve(ctx.data); - return OK(promisified.then((data) => { - return this._def.type.parseAsync(data, { - path: ctx.path, - errorMap: ctx.common.contextualErrorMap - }); - })); - } -}; -ZodPromise.create = (schema, params) => { - return new ZodPromise({ - type: schema, - typeName: ZodFirstPartyTypeKind.ZodPromise, - ...processCreateParams(params) - }); -}; -var ZodEffects = class extends ZodType { - innerType() { - return this._def.schema; - } - sourceType() { - return this._def.schema._def.typeName === ZodFirstPartyTypeKind.ZodEffects ? this._def.schema.sourceType() : this._def.schema; - } - _parse(input) { - const { status, ctx } = this._processInputParams(input); - const effect = this._def.effect || null; - const checkCtx = { - addIssue: (arg) => { - addIssueToContext(ctx, arg); - if (arg.fatal) { - status.abort(); - } else { - status.dirty(); - } - }, - get path() { - return ctx.path; - } - }; - checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx); - if (effect.type === "preprocess") { - const processed = effect.transform(ctx.data, checkCtx); - if (ctx.common.async) { - return Promise.resolve(processed).then(async (processed2) => { - if (status.value === "aborted") - return INVALID; - const result = await this._def.schema._parseAsync({ - data: processed2, - path: ctx.path, - parent: ctx - }); - if (result.status === "aborted") - return INVALID; - if (result.status === "dirty") - return DIRTY(result.value); - if (status.value === "dirty") - return DIRTY(result.value); - return result; - }); - } else { - if (status.value === "aborted") - return INVALID; - const result = this._def.schema._parseSync({ - data: processed, - path: ctx.path, - parent: ctx - }); - if (result.status === "aborted") - return INVALID; - if (result.status === "dirty") - return DIRTY(result.value); - if (status.value === "dirty") - return DIRTY(result.value); - return result; - } - } - if (effect.type === "refinement") { - const executeRefinement = (acc) => { - const result = effect.refinement(acc, checkCtx); - if (ctx.common.async) { - return Promise.resolve(result); - } - if (result instanceof Promise) { - throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead."); - } - return acc; - }; - if (ctx.common.async === false) { - const inner = this._def.schema._parseSync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }); - if (inner.status === "aborted") - return INVALID; - if (inner.status === "dirty") - status.dirty(); - executeRefinement(inner.value); - return { status: status.value, value: inner.value }; - } else { - return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((inner) => { - if (inner.status === "aborted") - return INVALID; - if (inner.status === "dirty") - status.dirty(); - return executeRefinement(inner.value).then(() => { - return { status: status.value, value: inner.value }; - }); - }); - } - } - if (effect.type === "transform") { - if (ctx.common.async === false) { - const base = this._def.schema._parseSync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }); - if (!isValid(base)) - return base; - const result = effect.transform(base.value, checkCtx); - if (result instanceof Promise) { - throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`); - } - return { status: status.value, value: result }; - } else { - return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => { - if (!isValid(base)) - return base; - return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result })); - }); - } - } - util.assertNever(effect); - } -}; -ZodEffects.create = (schema, effect, params) => { - return new ZodEffects({ - schema, - typeName: ZodFirstPartyTypeKind.ZodEffects, - effect, - ...processCreateParams(params) - }); -}; -ZodEffects.createWithPreprocess = (preprocess, schema, params) => { - return new ZodEffects({ - schema, - effect: { type: "preprocess", transform: preprocess }, - typeName: ZodFirstPartyTypeKind.ZodEffects, - ...processCreateParams(params) - }); -}; -var ZodOptional = class extends ZodType { - _parse(input) { - const parsedType = this._getType(input); - if (parsedType === ZodParsedType.undefined) { - return OK(void 0); - } - return this._def.innerType._parse(input); - } - unwrap() { - return this._def.innerType; - } -}; -ZodOptional.create = (type, params) => { - return new ZodOptional({ - innerType: type, - typeName: ZodFirstPartyTypeKind.ZodOptional, - ...processCreateParams(params) - }); -}; -var ZodNullable = class extends ZodType { - _parse(input) { - const parsedType = this._getType(input); - if (parsedType === ZodParsedType.null) { - return OK(null); - } - return this._def.innerType._parse(input); - } - unwrap() { - return this._def.innerType; - } -}; -ZodNullable.create = (type, params) => { - return new ZodNullable({ - innerType: type, - typeName: ZodFirstPartyTypeKind.ZodNullable, - ...processCreateParams(params) - }); -}; -var ZodDefault = class extends ZodType { - _parse(input) { - const { ctx } = this._processInputParams(input); - let data = ctx.data; - if (ctx.parsedType === ZodParsedType.undefined) { - data = this._def.defaultValue(); - } - return this._def.innerType._parse({ - data, - path: ctx.path, - parent: ctx - }); - } - removeDefault() { - return this._def.innerType; - } -}; -ZodDefault.create = (type, params) => { - return new ZodDefault({ - innerType: type, - typeName: ZodFirstPartyTypeKind.ZodDefault, - defaultValue: typeof params.default === "function" ? params.default : () => params.default, - ...processCreateParams(params) - }); -}; -var ZodCatch = class extends ZodType { - _parse(input) { - const { ctx } = this._processInputParams(input); - const newCtx = { - ...ctx, - common: { - ...ctx.common, - issues: [] - } - }; - const result = this._def.innerType._parse({ - data: newCtx.data, - path: newCtx.path, - parent: { - ...newCtx - } - }); - if (isAsync(result)) { - return result.then((result2) => { - return { - status: "valid", - value: result2.status === "valid" ? result2.value : this._def.catchValue({ - get error() { - return new ZodError(newCtx.common.issues); - }, - input: newCtx.data - }) - }; - }); - } else { - return { - status: "valid", - value: result.status === "valid" ? result.value : this._def.catchValue({ - get error() { - return new ZodError(newCtx.common.issues); - }, - input: newCtx.data - }) - }; - } - } - removeCatch() { - return this._def.innerType; - } -}; -ZodCatch.create = (type, params) => { - return new ZodCatch({ - innerType: type, - typeName: ZodFirstPartyTypeKind.ZodCatch, - catchValue: typeof params.catch === "function" ? params.catch : () => params.catch, - ...processCreateParams(params) - }); -}; -var ZodNaN = class extends ZodType { - _parse(input) { - const parsedType = this._getType(input); - if (parsedType !== ZodParsedType.nan) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.nan, - received: ctx.parsedType - }); - return INVALID; - } - return { status: "valid", value: input.data }; - } -}; -ZodNaN.create = (params) => { - return new ZodNaN({ - typeName: ZodFirstPartyTypeKind.ZodNaN, - ...processCreateParams(params) - }); -}; -var BRAND = Symbol("zod_brand"); -var ZodBranded = class extends ZodType { - _parse(input) { - const { ctx } = this._processInputParams(input); - const data = ctx.data; - return this._def.type._parse({ - data, - path: ctx.path, - parent: ctx - }); - } - unwrap() { - return this._def.type; - } -}; -var ZodPipeline = class _ZodPipeline extends ZodType { - _parse(input) { - const { status, ctx } = this._processInputParams(input); - if (ctx.common.async) { - const handleAsync = async () => { - const inResult = await this._def.in._parseAsync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }); - if (inResult.status === "aborted") - return INVALID; - if (inResult.status === "dirty") { - status.dirty(); - return DIRTY(inResult.value); - } else { - return this._def.out._parseAsync({ - data: inResult.value, - path: ctx.path, - parent: ctx - }); - } - }; - return handleAsync(); - } else { - const inResult = this._def.in._parseSync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }); - if (inResult.status === "aborted") - return INVALID; - if (inResult.status === "dirty") { - status.dirty(); - return { - status: "dirty", - value: inResult.value - }; - } else { - return this._def.out._parseSync({ - data: inResult.value, - path: ctx.path, - parent: ctx - }); - } - } - } - static create(a, b) { - return new _ZodPipeline({ - in: a, - out: b, - typeName: ZodFirstPartyTypeKind.ZodPipeline - }); - } -}; -var ZodReadonly = class extends ZodType { - _parse(input) { - const result = this._def.innerType._parse(input); - if (isValid(result)) { - result.value = Object.freeze(result.value); - } - return result; - } - unwrap() { - return this._def.innerType; - } -}; -ZodReadonly.create = (type, params) => { - return new ZodReadonly({ - innerType: type, - typeName: ZodFirstPartyTypeKind.ZodReadonly, - ...processCreateParams(params) - }); -}; -function custom(check, params = {}, fatal) { - if (check) - return ZodAny.create().superRefine((data, ctx) => { - var _a, _b; - if (!check(data)) { - const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params; - const _fatal = (_b = (_a = p.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true; - const p2 = typeof p === "string" ? { message: p } : p; - ctx.addIssue({ code: "custom", ...p2, fatal: _fatal }); - } - }); - return ZodAny.create(); -} -var late = { - object: ZodObject.lazycreate -}; -var ZodFirstPartyTypeKind; -(function(ZodFirstPartyTypeKind2) { - ZodFirstPartyTypeKind2["ZodString"] = "ZodString"; - ZodFirstPartyTypeKind2["ZodNumber"] = "ZodNumber"; - ZodFirstPartyTypeKind2["ZodNaN"] = "ZodNaN"; - ZodFirstPartyTypeKind2["ZodBigInt"] = "ZodBigInt"; - ZodFirstPartyTypeKind2["ZodBoolean"] = "ZodBoolean"; - ZodFirstPartyTypeKind2["ZodDate"] = "ZodDate"; - ZodFirstPartyTypeKind2["ZodSymbol"] = "ZodSymbol"; - ZodFirstPartyTypeKind2["ZodUndefined"] = "ZodUndefined"; - ZodFirstPartyTypeKind2["ZodNull"] = "ZodNull"; - ZodFirstPartyTypeKind2["ZodAny"] = "ZodAny"; - ZodFirstPartyTypeKind2["ZodUnknown"] = "ZodUnknown"; - ZodFirstPartyTypeKind2["ZodNever"] = "ZodNever"; - ZodFirstPartyTypeKind2["ZodVoid"] = "ZodVoid"; - ZodFirstPartyTypeKind2["ZodArray"] = "ZodArray"; - ZodFirstPartyTypeKind2["ZodObject"] = "ZodObject"; - ZodFirstPartyTypeKind2["ZodUnion"] = "ZodUnion"; - ZodFirstPartyTypeKind2["ZodDiscriminatedUnion"] = "ZodDiscriminatedUnion"; - ZodFirstPartyTypeKind2["ZodIntersection"] = "ZodIntersection"; - ZodFirstPartyTypeKind2["ZodTuple"] = "ZodTuple"; - ZodFirstPartyTypeKind2["ZodRecord"] = "ZodRecord"; - ZodFirstPartyTypeKind2["ZodMap"] = "ZodMap"; - ZodFirstPartyTypeKind2["ZodSet"] = "ZodSet"; - ZodFirstPartyTypeKind2["ZodFunction"] = "ZodFunction"; - ZodFirstPartyTypeKind2["ZodLazy"] = "ZodLazy"; - ZodFirstPartyTypeKind2["ZodLiteral"] = "ZodLiteral"; - ZodFirstPartyTypeKind2["ZodEnum"] = "ZodEnum"; - ZodFirstPartyTypeKind2["ZodEffects"] = "ZodEffects"; - ZodFirstPartyTypeKind2["ZodNativeEnum"] = "ZodNativeEnum"; - ZodFirstPartyTypeKind2["ZodOptional"] = "ZodOptional"; - ZodFirstPartyTypeKind2["ZodNullable"] = "ZodNullable"; - ZodFirstPartyTypeKind2["ZodDefault"] = "ZodDefault"; - ZodFirstPartyTypeKind2["ZodCatch"] = "ZodCatch"; - ZodFirstPartyTypeKind2["ZodPromise"] = "ZodPromise"; - ZodFirstPartyTypeKind2["ZodBranded"] = "ZodBranded"; - ZodFirstPartyTypeKind2["ZodPipeline"] = "ZodPipeline"; - ZodFirstPartyTypeKind2["ZodReadonly"] = "ZodReadonly"; -})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {})); -var instanceOfType = (cls, params = { - message: `Input not instance of ${cls.name}` -}) => custom((data) => data instanceof cls, params); -var stringType = ZodString.create; -var numberType = ZodNumber.create; -var nanType = ZodNaN.create; -var bigIntType = ZodBigInt.create; -var booleanType = ZodBoolean.create; -var dateType = ZodDate.create; -var symbolType = ZodSymbol.create; -var undefinedType = ZodUndefined.create; -var nullType = ZodNull.create; -var anyType = ZodAny.create; -var unknownType = ZodUnknown.create; -var neverType = ZodNever.create; -var voidType = ZodVoid.create; -var arrayType = ZodArray.create; -var objectType = ZodObject.create; -var strictObjectType = ZodObject.strictCreate; -var unionType = ZodUnion.create; -var discriminatedUnionType = ZodDiscriminatedUnion.create; -var intersectionType = ZodIntersection.create; -var tupleType = ZodTuple.create; -var recordType = ZodRecord.create; -var mapType = ZodMap.create; -var setType = ZodSet.create; -var functionType = ZodFunction.create; -var lazyType = ZodLazy.create; -var literalType = ZodLiteral.create; -var enumType = ZodEnum.create; -var nativeEnumType = ZodNativeEnum.create; -var promiseType = ZodPromise.create; -var effectsType = ZodEffects.create; -var optionalType = ZodOptional.create; -var nullableType = ZodNullable.create; -var preprocessType = ZodEffects.createWithPreprocess; -var pipelineType = ZodPipeline.create; -var ostring = () => stringType().optional(); -var onumber = () => numberType().optional(); -var oboolean = () => booleanType().optional(); -var coerce = { - string: (arg) => ZodString.create({ ...arg, coerce: true }), - number: (arg) => ZodNumber.create({ ...arg, coerce: true }), - boolean: (arg) => ZodBoolean.create({ - ...arg, - coerce: true - }), - bigint: (arg) => ZodBigInt.create({ ...arg, coerce: true }), - date: (arg) => ZodDate.create({ ...arg, coerce: true }) -}; -var NEVER = INVALID; -var z = /* @__PURE__ */ Object.freeze({ - __proto__: null, - defaultErrorMap: errorMap, - setErrorMap, - getErrorMap, - makeIssue, - EMPTY_PATH, - addIssueToContext, - ParseStatus, - INVALID, - DIRTY, - OK, - isAborted, - isDirty, - isValid, - isAsync, - get util() { - return util; - }, - get objectUtil() { - return objectUtil; - }, - ZodParsedType, - getParsedType, - ZodType, - datetimeRegex, - ZodString, - ZodNumber, - ZodBigInt, - ZodBoolean, - ZodDate, - ZodSymbol, - ZodUndefined, - ZodNull, - ZodAny, - ZodUnknown, - ZodNever, - ZodVoid, - ZodArray, - ZodObject, - ZodUnion, - ZodDiscriminatedUnion, - ZodIntersection, - ZodTuple, - ZodRecord, - ZodMap, - ZodSet, - ZodFunction, - ZodLazy, - ZodLiteral, - ZodEnum, - ZodNativeEnum, - ZodPromise, - ZodEffects, - ZodTransformer: ZodEffects, - ZodOptional, - ZodNullable, - ZodDefault, - ZodCatch, - ZodNaN, - BRAND, - ZodBranded, - ZodPipeline, - ZodReadonly, - custom, - Schema: ZodType, - ZodSchema: ZodType, - late, - get ZodFirstPartyTypeKind() { - return ZodFirstPartyTypeKind; - }, - coerce, - any: anyType, - array: arrayType, - bigint: bigIntType, - boolean: booleanType, - date: dateType, - discriminatedUnion: discriminatedUnionType, - effect: effectsType, - "enum": enumType, - "function": functionType, - "instanceof": instanceOfType, - intersection: intersectionType, - lazy: lazyType, - literal: literalType, - map: mapType, - nan: nanType, - nativeEnum: nativeEnumType, - never: neverType, - "null": nullType, - nullable: nullableType, - number: numberType, - object: objectType, - oboolean, - onumber, - optional: optionalType, - ostring, - pipeline: pipelineType, - preprocess: preprocessType, - promise: promiseType, - record: recordType, - set: setType, - strictObject: strictObjectType, - string: stringType, - symbol: symbolType, - transformer: effectsType, - tuple: tupleType, - "undefined": undefinedType, - union: unionType, - unknown: unknownType, - "void": voidType, - NEVER, - ZodIssueCode, - quotelessJson, - ZodError -}); - -// src/const/graph.ts -var EXPLICIT_EDGE_SOURCES = [ - "typed_link", - "tag_note", - "list_note", - "dendron_note", - "johnny_decimal_note", - "dataview_note", - "date_note", - "folder_note", - "regex_note" - // TODO: "zetel_note", // Can date_notes do this already? -]; -var SIMPLE_EDGE_SORT_FIELDS = [ - // The order they were added to the graph - // Hidden because I don't think anyone really cares about that order - // "graph", - "basename", - "path", - "field", - // Whether the edge is explicit or not - // Uses source and implied_kind as tie-breakers for explicit == true and false, respectively - "explicit" -]; -var COMPLEX_EDGE_SORT_FIELD_PREFIXES = ["neighbour-field"]; - -// src/graph/MyMultiGraph.ts -var import_graphology = __toESM(require_graphology_umd_min()); - -// src/utils/result.ts -var succ = (data) => ({ - ok: true, - data -}); -var fail = (error) => ({ - ok: false, - error -}); -var graph_build_fail = (error) => fail(error); - -// src/graph/objectify_mappers.ts -var objectify_edge_mapper = (cb) => (edge_id, attr2, source_id, target_id, source_attr, target_attr, undirected) => cb({ - id: edge_id, - attr: attr2, - source_id, - target_id, - source_attr, - target_attr, - undirected -}); -var objectify_edge = objectify_edge_mapper((e) => e); - -// src/graph/utils.ts -var is_self_loop = (edge) => edge.source_id === edge.target_id; -var stringify_node = (node_id, node_attr, options) => { - var _a, _b; - if (((_a = options == null ? void 0 : options.show_node_options) == null ? void 0 : _a.alias) && ((_b = node_attr.aliases) == null ? void 0 : _b.length)) { - return node_attr.aliases.at(0); - } else if (options == null ? void 0 : options.trim_basename_delimiter) { - return Paths.drop_ext(node_id).split("/").pop().split(options.trim_basename_delimiter).last(); - } else { - return Paths.show(node_id, options == null ? void 0 : options.show_node_options); - } -}; -var sorters = { - path: (order) => (a, b) => a.target_id.localeCompare(b.target_id) * order, - basename: (order) => (a, b) => { - const [a_field, b_field] = [ - Paths.drop_folder(a.target_id), - Paths.drop_folder(b.target_id) - ]; - return a_field.localeCompare(b_field) * order; - }, - field: (order) => (a, b) => { - var _a, _b; - const [a_field, b_field] = [ - (_a = a.attr.field) != null ? _a : "null", - (_b = b.attr.field) != null ? _b : "null" - ]; - return a_field.localeCompare(b_field) * order; - } -}; -var get_edge_sorter = (sort, graph) => { - switch (sort.field) { - case "path": { - return sorters.path(sort.order); - } - case "basename": { - return sorters.basename(sort.order); - } - case "field": { - return sorters.field(sort.order); - } - case "explicit": { - return (a, b) => { - if (a.attr.explicit === true && b.attr.explicit === true) { - return a.attr.source.localeCompare(b.attr.source) * sort.order; - } else if (a.attr.explicit === false && b.attr.explicit === false) { - return a.attr.implied_kind.localeCompare(b.attr.implied_kind) * sort.order; - } else { - return a.attr.explicit ? sort.order : -sort.order; - } - }; - } - default: { - if (!COMPLEX_EDGE_SORT_FIELD_PREFIXES.some( - (f) => sort.field.startsWith(f + ":") - )) { - throw new Error(`Invalid sort field: ${sort.field}`); - } - switch (sort.field.split(":")[0]) { - case "neighbour": - case "neighbour-field": { - const field = sort.field.split(":", 2).at(1); - const cache = {}; - return (a, b) => { - var _a, _b, _c, _d; - const [a_neighbour, b_neighbour] = [ - (_b = cache[_a = a.target_id]) != null ? _b : cache[_a] = graph.get_out_edges(a.target_id).filter((e) => has_edge_attrs(e, { field })).at(0), - (_d = cache[_c = b.target_id]) != null ? _d : cache[_c] = graph.get_out_edges(b.target_id).filter((e) => has_edge_attrs(e, { field })).at(0) - ]; - if (!a_neighbour || !b_neighbour) { - return a_neighbour ? -sort.order : b_neighbour ? sort.order : 0; - } else { - return sorters.path(sort.order)( - a_neighbour, - b_neighbour - ); - } - }; - } - default: { - return (_a, _b) => sort.order; - } - } - } - } -}; -var has_edge_attrs = (edge, attrs) => { - var _a; - return attrs === void 0 || [ - attrs.field === void 0 || edge.attr.field === attrs.field, - attrs.explicit === void 0 || edge.attr.explicit === attrs.explicit, - attrs.$or_fields === void 0 || attrs.$or_fields.includes((_a = edge.attr.field) != null ? _a : "null"), - attrs.$or_target_ids === void 0 || attrs.$or_target_ids.includes(edge.target_id) - ].every(Boolean); -}; - -// src/graph/MyMultiGraph.ts -var EDGE_ATTRIBUTES = [ - "field", - "explicit", - "source", - "implied_kind", - "round" -]; -var BCGraph = class extends import_graphology.MultiGraph { - constructor(input) { - var _a, _b; - super(); - /** Uniquely identify an edge based on its: - * - source_id - * - target_id - * - field - */ - this.make_edge_id = (source_id, target_id, attr2) => `${source_id}|${attr2.field}|${target_id}`; - // NOTE: These fields shouldn't actually dedupe an edge... I think what the user would consider an edge to be the same - // even if it was added for different reasons, but still to and from the same nodes, using the same field. - // Consider the commands/freeze-crumbs/index.md note as an example. If these fields were included, the implied relations would still show - // even tho there are now frozen real relations serving the exact same purpose. - // |${attr.explicit ? "explicit|" + attr.source : "implied|" + attr.implied_kind} - /** Return true if the edge was added. - * Won't be added if it already exists (based on it's {@link this.make_edge_id}), - * or if it's target_node has ingore_in_edges */ - this.safe_add_directed_edge = (source_id, target_id, attr2) => { - if (this.getNodeAttribute(target_id, "ignore_in_edges")) { - log.debug( - `ignore-in-edge > ${source_id} -${attr2.field}-> ${target_id}` - ); - return false; - } else if (this.getNodeAttribute(source_id, "ignore_out_edges")) { - log.debug( - `ignore-out-edge > ${source_id} -${attr2.field}-> ${target_id}` - ); - return false; - } - const edge_id = this.make_edge_id(source_id, target_id, attr2); - if (!this.hasDirectedEdge(edge_id)) { - this.addDirectedEdgeWithKey(edge_id, source_id, target_id, attr2); - return true; - } else { - return false; - } - }; - /** safely returns [] if node_id and !hasNode(node_id) */ - this.get_in_edges = (node_id) => node_id ? this.hasNode(node_id) ? this.mapInEdges(node_id, objectify_edge) : [] : this.mapInEdges(objectify_edge); - /** safely returns [] if node_id and !hasNode(node_id) */ - this.get_out_edges = (node_id) => node_id ? this.hasNode(node_id) ? this.mapOutEdges(node_id, objectify_edge) : [] : this.mapOutEdges(objectify_edge); - if (input) { - (_a = input.nodes) == null ? void 0 : _a.forEach( - ({ id, attr: attr2 }) => this.safe_add_node(id, attr2) - ); - (_b = input.edges) == null ? void 0 : _b.forEach((edge) => { - this.safe_add_node(edge.source_id, { resolved: true }); - this.safe_add_node(edge.target_id, { resolved: true }); - this.safe_add_directed_edge( - edge.source_id, - edge.target_id, - edge.attr - ); - }); - } - } - safe_add_node(id, attr2) { - try { - this.addNode(id, attr2); - return true; - } catch (error) { - return false; - } - } - /** Upsert a node by it's id (path). If it exists, patch attr, else addNode */ - upsert_node(id, attr2) { - if (this.hasNode(id)) { - Object.keys(attr2).forEach((key) => { - this.setNodeAttribute( - id, - key, - attr2[key] - ); - }); - } else { - this.addNode(id, attr2); - } - } - safe_rename_node(old_id, new_id) { - const exists = { - old: this.hasNode(old_id), - new: this.hasNode(new_id) - }; - if (!exists.old) { - return fail({ exists, message: "old_id doesn't exist" }); - } else if (exists.new) { - return fail({ exists, message: "new_id already exists" }); - } else { - this.addNode(new_id, this.getNodeAttributes(old_id)); - const old_edges = { - in: this.get_in_edges(old_id), - out: this.get_out_edges(old_id) - }; - this.dropNode(old_id); - old_edges.in.forEach((old_in_edge) => { - is_self_loop(old_in_edge) ? this.safe_add_directed_edge( - new_id, - new_id, - old_in_edge.attr - ) : this.safe_add_directed_edge( - old_in_edge.source_id, - new_id, - old_in_edge.attr - ); - }); - old_edges.out.forEach((old_out_edge) => { - !is_self_loop(old_out_edge) && this.safe_add_directed_edge( - new_id, - old_out_edge.target_id, - old_out_edge.attr - ); - }); - } - return succ({ exists }); - } -}; - -// src/utils/edge_fields.ts -var resolve_field_group_labels = (edge_field_groups, field_group_labels) => remove_duplicates( - edge_field_groups.filter((group) => field_group_labels.includes(group.label)).flatMap((group) => group.fields) -); - -// src/utils/url.ts -var url_search_params = (obj, options) => { - const { delimiter } = Object.assign({ delimiter: " " }, options); - let params = ""; - for (const key in obj) { - params += `${key}=${obj[key]}${delimiter}`; - } - params = params.slice(0, -1); - if ((options == null ? void 0 : options.trim_lone_param) && Object.keys(obj).length === 1) { - params = params.split("=", 2)[1]; - } - return params; -}; - -// src/utils/mermaid.ts -var MERMAID_DIRECTIONS = ["LR", "RL", "TB", "BT"]; -var MERMAID_RENDERER = ["dagre", "elk"]; -var MERMAID_CURVE_STYLES = [ - "basis", - "bumpX", - "bumpY", - "cardinal", - "catmullRom", - "linear", - "monotoneX", - "monotoneY", - "natural", - "step", - "stepAfter", - "stepBefore" -]; -var build_arrow = (e) => e.attr.explicit ? "-->" : "-.->"; -var build_attrs = (attr2, show_attributes) => { - const params = (show_attributes == null ? void 0 : show_attributes.length) ? url_search_params(untyped_pick(attr2, show_attributes), { - trim_lone_param: true - }) : null; - return (params == null ? void 0 : params.length) ? `|"${params}"|` : ""; -}; -var from_edges = (edges, config) => { - var _a, _b, _c, _d, _e; - const resolved = Object.assign( - { direction: "LR", kind: "flowchart" }, - remove_nullish_keys( - config != null ? config : {} - ) - ); - const flowchart_init = remove_nullish_keys({ - curve: resolved.curve_style, - defaultRenderer: resolved.renderer - }); - const lines = [ - // NOTE: Regardless of kind, the below field should always be flowchart - `%%{ init: { "flowchart": ${JSON.stringify(flowchart_init)} } }%%`, - `${resolved.kind} ${resolved.direction}` - ]; - const node_map = remove_duplicates_by( - // NOTE: This is _pretty_ inefficient, but necessary. - // If we just take all unique target_ids, we miss source nodes that don't have any incoming edges. - edges.flatMap((e) => [ - { path: e.source_id, attr: e.source_attr }, - { path: e.target_id, attr: e.target_attr } - ]), - (n2) => n2.path - ).reduce( - (map, node, i) => { - var _a2, _b2; - return map.set(node.path, { - i, - attr: node.attr, - label: (_b2 = (_a2 = resolved.get_node_label) == null ? void 0 : _a2.call(resolved, node.path, node.attr)) != null ? _b2 : node.path - }); - }, - /* @__PURE__ */ new Map() - ); - node_map.forEach((node) => { - lines.push(` ${node.i}("${node.label}")`); - }); - lines.push(""); - const mermaid_edges = []; - for (const edge of edges) { - const [source_i, target_i] = [ - node_map.get(edge.source_id).i, - node_map.get(edge.target_id).i - ]; - const opposing_edge_i = resolved.collapse_opposing_edges !== false ? mermaid_edges.findIndex( - (existing) => ( - // NOTE: This is pretty intense, all opposing edges will collapse, because now there's no direction semantics - target_i === existing.source_i && source_i === existing.target_i - ) - ) : -1; - if (opposing_edge_i === -1) { - mermaid_edges.push({ - source_i, - target_i, - arrow: build_arrow(edge), - attr: edge.attr, - collapsed_attr: Object.fromEntries( - (_b = (_a = resolved.show_attributes) == null ? void 0 : _a.map((attr2) => { - var _a2; - return [ - attr2, - /* @__PURE__ */ new Set([ - // @ts-ignore: If the property is not in the object, it will be undefined - (_a2 = edge.attr[attr2]) != null ? _a2 : "_" - ]) - ]; - })) != null ? _b : [] - ) - }); - } else { - const existing = mermaid_edges[opposing_edge_i]; - existing.arrow = edge.attr.explicit || existing.attr.explicit ? "---" : "-.-"; - (_c = resolved.show_attributes) == null ? void 0 : _c.forEach((attr2) => { - var _a2; - existing.collapsed_attr[attr2].add( - // @ts-ignore: If the property is not in the object, it will be undefined - (_a2 = edge.attr[attr2]) != null ? _a2 : "_" - ); - }); - } - } - mermaid_edges.forEach(({ arrow, collapsed_attr, source_i, target_i }) => { - const attrs = build_attrs( - Object.fromEntries( - Object.entries(collapsed_attr).map(([key, set]) => [ - key, - [...set.values()].join("|") - ]) - ), - resolved.show_attributes - ); - lines.push(` ${source_i} ${arrow}${attrs} ${target_i}`); - }); - lines.push(""); - const active_note_i = resolved.active_node_id ? (_d = node_map.get(resolved.active_node_id)) == null ? void 0 : _d.i : void 0; - if (active_note_i !== void 0) { - lines.push(` class ${active_note_i} BC-active-node`); - } - switch ((_e = resolved.click) == null ? void 0 : _e.method) { - case "class": { - const nodes = [...node_map.values()]; - if (nodes.length) { - lines.push( - ` class ${nodes.filter((n2) => n2.i !== active_note_i).map((n2) => n2.i)} internal-link` - ); - } - const unresolved_nodes = nodes.filter((n2) => !n2.attr.resolved); - if (unresolved_nodes.length) { - lines.push( - ` class ${unresolved_nodes.map((n2) => n2.i)} is-unresolved` - ); - } - break; - } - case "href": { - node_map.forEach((node, path) => { - var _a2; - lines.push( - ` click ${node.i} "${(_a2 = resolved.click) == null ? void 0 : _a2.getter(path, node.attr)}"` - ); - }); - break; - } - case "callback": { - node_map.forEach((node) => { - var _a2; - lines.push( - ` click ${node.i} call ${(_a2 = resolved.click) == null ? void 0 : _a2.callback_name}()` - ); - }); - break; - } - } - return lines.join("\n"); -}; -var _encode = (code) => { - const bytes = new TextEncoder().encode(code); - return btoa(String.fromCharCode(...bytes)); -}; -var to_image_link = (code) => `https://mermaid.ink/img/${_encode(code)}`; -var to_live_edit_link = (code) => { - const state = { - code, - // NOTE: For some reason, having both true doesn't trigger the initial render? - autoSync: false, - updateDiagram: true, - mermaid: { theme: "default" } - }; - const encoded = _encode(JSON.stringify(state, void 0, 2)); - return `https://mermaid.live/edit#base64:${encoded}`; -}; -var Mermaid = { - from_edges, - to_image_link, - to_live_edit_link, - RENDERERS: MERMAID_RENDERER, - DIRECTIONS: MERMAID_DIRECTIONS, - CURVE_STYLES: MERMAID_CURVE_STYLES -}; - -// src/utils/zod.ts -var not_string_msg = (field, received) => `Expected a string (text), but got: \`${received}\` (${typeof received}). _Try wrapping the value in quotes._ -**Example**: \`${field}: "${received}"\``; -var invalid_enum_msg = (field, options, received) => `Expected one of the following options: ${quote_join(options, "`", ", or ")}, but got: \`${received}\`. -**Example**: \`${field}: ${options[0]}\``; -var not_array_msg = (field, options, received) => `This field is now expected to be a YAML list (array), but got: \`${received}\` (${typeof received}). _Try wrapping it in square brackets._ -**Example**: \`${field}: [${options.slice(0, 2).join(", ")}]\`, or possibly: \`${field}: [${received}]\``; -var dynamic_enum_schema = (options, field) => z.string().superRefine((received, ctx) => { - if (options.includes(received)) { - return true; - } else { - ctx.addIssue({ - options, - received, - code: "invalid_enum_value", - // NOTE: Leave the default path on _this_ object, but pass the override into the error message - message: invalid_enum_msg( - field != null ? field : ctx.path.join("."), - options, - received - ) - }); - return false; - } -}); -var dynamic_enum_array_schema = (field, options, received) => z.array(dynamic_enum_schema(options), { - invalid_type_error: not_array_msg(field, options, received) -}); -var zod = { - error: { - not_string: not_string_msg, - invalid_enum: invalid_enum_msg, - not_array: not_array_msg - }, - schema: { - dynamic_enum: dynamic_enum_schema, - dynamic_enum_array: dynamic_enum_array_schema - } -}; - -// src/codeblocks/schema.ts -var FIELDS = [ - "type", - "title", - "start-note", - "fields", - "field-groups", - "depth", - "flat", - "collapse", - "merge-fields", - "dataview-from", - "content", - "sort", - "field-prefix", - "show-attributes", - "mermaid-direction", - "mermaid-renderer", - "mermaid-curve" -]; -var BOOLEANS = [true, false]; -var build2 = (input, data) => { - var _a, _b, _c, _d, _e, _f, _g, _h; - const field_labels = data.edge_fields.map((f) => f.label); - const group_labels = data.field_groups.map((f) => f.label); - return z.object({ - title: z.string({ - message: zod.error.not_string("title", input["title"]) - }).optional(), - "start-note": z.string({ - message: zod.error.not_string( - "start-note", - input["start-note"] - ) - }).optional(), - "dataview-from": z.string({ - message: zod.error.not_string( - "dataview-from", - input["dataview-from"] - ) - }).optional(), - flat: z.boolean({ - message: zod.error.invalid_enum( - "flat", - BOOLEANS, - input["flat"] - ) - }).default(false), - collapse: z.boolean({ - message: zod.error.invalid_enum( - "collapse", - BOOLEANS, - input["collapse"] - ) - }).default(false), - "merge-fields": z.boolean({ - message: zod.error.invalid_enum( - "merge-fields", - BOOLEANS, - input["merge-fields"] - ) - }).default(true), - content: z.enum(["open", "closed"], { - message: zod.error.invalid_enum( - "content", - ["open", "closed"], - input["content"] - ) - }).optional(), - type: z.enum(["tree", "mermaid", "markmap"], { - message: zod.error.invalid_enum( - "type", - ["tree", "mermaid", "markmap"], - input["type"] - ) - }).default("tree"), - "mermaid-renderer": z.enum(Mermaid.RENDERERS, { - message: zod.error.invalid_enum( - "mermaid-renderer", - Mermaid.RENDERERS, - input["mermaid-renderer"] - ) - }).optional(), - "mermaid-direction": z.enum(Mermaid.DIRECTIONS, { - message: zod.error.invalid_enum( - "mermaid-direction", - Mermaid.DIRECTIONS, - input["mermaid-direction"] - ) - }).optional(), - "mermaid-curve": z.enum(Mermaid.CURVE_STYLES, { - message: zod.error.invalid_enum( - "mermaid-curve", - Mermaid.CURVE_STYLES, - input["mermaid-curve"] - ) - }).optional(), - "show-attributes": z.array(z.enum(EDGE_ATTRIBUTES), { - message: zod.error.not_array( - "show-attributes", - EDGE_ATTRIBUTES, - input["show-attributes"] - ) - }).optional(), - fields: zod.schema.dynamic_enum_array("fields", field_labels, input["fields"]).optional(), - "field-groups": zod.schema.dynamic_enum_array( - "field-groups", - group_labels, - input["field-groups"] - ).optional(), - depth: z.array( - z.number({ - invalid_type_error: `Expected a number, but got: \`${input["depth"]}\` (${typeof input["depth"]}). _Try using a number (integer)._ -**Example**: \`depth: [0]\`, or \`depth: [0, 3]\`` - }).min( - 0, - `Minimum depth cannot be less than \`0\`, but got: \`${input["depth"]}\` _Try using a non-negative number (greater than or equal to zero \`0\`)._ -**Example**: \`depth: [0]\`, or possibly: \`depth: [${typeof input["depth"] === "number" ? -1 * input["depth"] : input["depth"]}\`]` - ), - { - invalid_type_error: `Expected a YAML list (array) of one or two numbers, but got: \`${input["depth"]}\` (${typeof input["depth"]}). _Try wrapping it in square brackets._ -**Example**: \`depth: [0]\`, or \`depth: [0, 3]\`, or possibly: \`depth: [${input["depth"]}]\`` - } - ).min( - 1, - `At least one item is required, but got: \`[${input["depth"]}]\`. _Try adding a number to the list._ -**Example**: \`depth: [0]\`, or \`depth: [0, 3]\`` - ).max( - 2, - // NOTE: I _could_ do something like: - // or possibly \`depth: [${(input["depth"])?.slice(0, 2).join(", ")}]\` - // But even that mess isn't safe. What if it's a string or something without join? - `Maximum of two items allowed, but got: \`[${input["depth"]}]\`. _Try removing one of the numbers._ -**Example**: \`depth: [${(_b = (_a = input["depth"]) == null ? void 0 : _a[0]) != null ? _b : 0}]\`, or possibly \`depth: [${(_d = (_c = input["depth"]) == null ? void 0 : _c[0]) != null ? _d : 0}, 3]\`` - ).transform((v) => { - if (v.length === 1) - return [v[0], Infinity]; - else - return v; - }).refine((v) => v[0] <= v[1], { - message: `Minimum depth cannot be greater than maximum depth. _Try swapping the numbers._ -**Example**: \`depth: [0, 3]\`, or possibly: \`depth: [${(_f = (_e = input["depth"]) == null ? void 0 : _e[1]) != null ? _f : 0}, ${(_h = (_g = input["depth"]) == null ? void 0 : _g[0]) != null ? _h : 3}]\`` - }).default([0, Infinity]), - sort: z.preprocess( - (v) => { - if (typeof v === "string") { - const [field, order] = v.split(" "); - return { field, order: order != null ? order : "asc" }; - } else { - return v; - } - }, - z.object({ - // TODO: Use a custom zod schema to retain string template literals here - // https://github.com/colinhacks/zod?tab=readme-ov-file#custom-schemas - field: zod.schema.dynamic_enum( - [ - ...SIMPLE_EDGE_SORT_FIELDS, - ...data.edge_fields.map( - (f) => `neighbour-field:${f.label}` - ) - ], - "sort" - ), - order: z.union( - [ - z.enum(["asc", "desc"]), - // Something very weird happening... - // If a note has two codeblocks, the one that gets rendered first seems to override config in the other? - // So when the `sort` field of the second comes in for parsing, - // It's already been transformed, and so sort.order is a number, not a string... - z.literal(1), - z.literal(-1) - ], - { - // SOURCE: https://github.com/colinhacks/zod/issues/117#issuecomment-1595801389 - errorMap: (_err, ctx) => ({ - message: zod.error.invalid_enum( - "sort.order", - ["asc", "desc"], - ctx.data - ) - }) - } - ).transform( - (v) => v === "asc" ? 1 : v === "desc" ? -1 : v - ) - }) - ).default({ - order: 1, - field: "basename" - }) - }).passthrough().default({}).transform((options) => { - if (options["field-groups"]) { - const field_labels2 = resolve_field_group_labels( - data.field_groups, - options["field-groups"] - ); - if (options.fields) { - options.fields = remove_duplicates( - options.fields.concat(field_labels2) - ); - } else { - options.fields = field_labels2; - } - } - return options; - }).superRefine((options, ctx) => { - if (options["mermaid-curve"] && options["mermaid-renderer"]) { - ctx.addIssue({ - code: "custom", - path: ["mermaid-curve"], - message: `Cannot specify both a mermaid curve and a renderer. _Try removing one of the fields._ -**Example**: \`mermaid-curve: ${options["mermaid-curve"]}\`, or \`mermaid-renderer: ${options["mermaid-renderer"]}\`` - }); - return false; - } - return true; - }); -}; -var CodeblockSchema = { - FIELDS, - build: build2 -}; - -// src/codeblocks/index.ts -var parse_source = (source, data) => { - var _a; - const errors = []; - let yaml; - try { - yaml = (_a = (0, import_obsidian.parseYaml)(source)) != null ? _a : {}; - log.debug("Codeblock > parsed_yaml >", yaml); - } catch (error) { - log.error("Codeblock > parse_source > ", error); - errors.push({ - path: "yaml", - code: "invalid_yaml", - message: "Invalid codeblock YAML. Check the console for more information (press `Ctrl + Shift + I` to open the console)." - }); - return { parsed: null, errors }; - } - const parsed = CodeblockSchema.build(yaml, data).safeParse(yaml); - if (!parsed.success) { - errors.push( - ...remove_duplicates_by( - parsed.error.issues, - (issue) => issue.path.join(".") - ).map((issue) => ({ - message: issue.message, - code: "invalid_field_value", - path: issue.path.map((key) => typeof key === "number" ? key + 1 : key).join(" > ") - })) - ); - return { - errors, - parsed: null - }; - } - const invalid_fields = Object.keys(parsed.data).filter( - (key) => !CodeblockSchema.FIELDS.includes(key) - ); - if (invalid_fields.length) { - errors.push({ - path: "yaml", - code: "invalid_yaml", - message: `The following is not a valid codeblock field: \`${invalid_fields[0]}\`. Valid options are: ${quote_join(CodeblockSchema.FIELDS, "`", ", or ")}` - }); - } - return { parsed: parsed.data, errors }; -}; -var postprocess_options = (source_path, parsed, errors, plugin) => { - var _a; - let file_path = source_path; - if (parsed["start-note"]) { - const normalised = Paths.normalise( - Paths.ensure_ext(parsed["start-note"], "md") - ); - const start_file = plugin.app.metadataCache.getFirstLinkpathDest( - normalised, - file_path - ); - if (start_file) { - file_path = start_file.path; - } else { - errors.push({ - path: "start-note", - code: "invalid_field_value", - message: `Could not find note \`${normalised}\` in your vault. Try a different path.` - }); - } - } - if (parsed["dataview-from"]) { - try { - const pages = (_a = dataview_plugin.get_api(plugin.app)) == null ? void 0 : _a.pages(parsed["dataview-from"]); - parsed["dataview-from-paths"] = pages == null ? void 0 : pages.map( - (page) => page.file.path - ); - } catch (error) { - errors.push({ - path: "dataview-from", - code: "invalid_field_value", - message: `Input \`${parsed["dataview-from"]}\` is not a valid Dataview query. -You can use \`app.plugins.plugins.dataview.api.pages("")\` to test your query in the console (press \`Ctrl + Shift + I\` to open the console).` - }); - } - } - return { options: parsed, file_path }; -}; -var active_codeblocks = /* @__PURE__ */ new Map(); -var register = (codeBlock) => { - active_codeblocks.set(codeBlock.id, codeBlock); -}; -var unregister = (codeBlock) => { - active_codeblocks.delete(codeBlock.id); -}; -var update_all = () => { - for (const codeBlock of active_codeblocks.values()) { - void codeBlock.update(); - } -}; -var Codeblocks = { - parse_source, - postprocess_options, - register, - unregister, - update_all -}; - -// src/graph/traverse.ts -var breadth_first = (graph, start_node, callback, edge_filter) => { - const visited_edge_ids = /* @__PURE__ */ new Set(); - const stack = graph.get_out_edges(start_node).map((edge) => ({ edge, depth: 0 })).filter((item) => !edge_filter || edge_filter(item)); - while (stack.length > 0) { - const item = stack.shift(); - if (visited_edge_ids.has(item.edge.id)) - continue; - else - visited_edge_ids.add(item.edge.id); - callback(item); - graph.get_out_edges(item.edge.target_id).map((out_edge) => ({ edge: out_edge, depth: item.depth + 1 })).filter((out_item) => !edge_filter || edge_filter(out_item)).forEach((item2) => stack.push(item2)); - } -}; -var gather_items = (graph, start_node, edge_filter) => { - const items = []; - breadth_first(graph, start_node, (item) => items.push(item), edge_filter); - return items; -}; -var MAX_DEPTH = 100; -var build_tree = (graph, source_id, { depth, max_depth }, edge_filter, visited_edge_ids = /* @__PURE__ */ new Set()) => { - depth != null ? depth : depth = 0; - max_depth != null ? max_depth : max_depth = MAX_DEPTH; - const tree = []; - if (depth <= max_depth) { - for (const edge of graph.get_out_edges(source_id).filter((edge2) => !edge_filter || edge_filter(edge2, depth))) { - if (visited_edge_ids.has(edge.id)) - continue; - else - visited_edge_ids.add(edge.id); - const children2 = build_tree( - graph, - edge.target_id, - { depth: depth + 1, max_depth }, - edge_filter, - visited_edge_ids - ); - tree.push({ edge, depth, children: children2 }); - } - } - return tree; -}; -var flatten_tree = (tree) => { - const traversal_items = []; - tree.forEach(({ edge, depth, children: children2 }) => { - traversal_items.push({ edge, depth }); - traversal_items.push(...flatten_tree(children2)); - }); - return traversal_items; -}; -var tree_to_all_paths = (tree) => { - const paths = []; - tree.forEach(({ edge, children: children2 }) => { - if (children2.length === 0) { - paths.push([edge]); - } else { - const child_paths = tree_to_all_paths(children2); - child_paths.forEach((path) => paths.push([edge, ...path])); - } - }); - return paths; -}; -var sort_edge_tree = (tree, sorter) => { - tree.forEach((nested_path) => { - nested_path.children = sort_edge_tree(nested_path.children, sorter); - }); - return tree.sort((a, b) => sorter(a.edge, b.edge)); -}; -var get_transitive_chain_target_ids = (graph, start_node, chain, edge_filter) => { - const target_ids = []; - Traverse.breadth_first( - graph, - start_node, - (item) => { - if (item.depth === chain.length - 1) { - target_ids.push(item.edge.target_id); - } - }, - (item) => ( - // Ensures we don't go over the chain length ("max_depth") - chain[item.depth] && // Check if the edge has the attrs we're looking for - has_edge_attrs(item.edge, chain[item.depth]) && (!edge_filter || edge_filter(item)) - ) - ); - return target_ids; -}; -var Traverse = { - breadth_first, - gather_items, - build_tree, - flatten_tree, - tree_to_all_paths, - sort_edge_tree, - get_transitive_chain_target_ids -}; - -// src/utils/links.ts -var resolve_to_absolute_path = (app, relative_path, source_path) => { - const folder = app.fileManager.getNewFileParent(source_path, relative_path); - return Paths.build(folder.path, Paths.basename(relative_path), "md"); -}; -var ify = (path, display, options) => { - switch (options.link_kind) { - case "none": { - return display; - } - case "wiki": { - const no_ext = Paths.drop_ext(path); - return display === path ? `[[${no_ext}]]` : `[[${no_ext}|${display}]]`; - } - case "markdown": { - return display === path ? `[${path}](${path})` : `[${display}](${path})`; - } - } -}; -var Links = { - ify, - resolve_to_absolute_path -}; - -// src/commands/list_index/index.ts -var ListIndex; -((ListIndex2) => { - ListIndex2.DEFAULT_OPTIONS = { - fields: [], - indent: "\\t", - link_kind: "wiki", - show_attributes: [], - field_group_labels: [], - edge_sort_id: { - order: 1, - field: "basename" - }, - show_node_options: { - ext: false, - alias: true, - folder: false - } - }; - ListIndex2.edge_tree_to_list_index = (tree, options) => { - let index = ""; - const real_indent = options.indent.replace(/\\t/g, " "); - tree.forEach(({ children: children2, depth, edge }) => { - const display = stringify_node(edge.target_id, edge.target_attr, { - show_node_options: options.show_node_options - }); - const link = Links.ify(edge.target_id, display, { - link_kind: options.link_kind - }); - const attr2 = options.show_attributes.length ? ` (${url_search_params( - untyped_pick(edge.attr, options.show_attributes), - { trim_lone_param: true } - )})` : ""; - index += real_indent.repeat(depth) + `- ${link}${attr2} -`; - index += (0, ListIndex2.edge_tree_to_list_index)(children2, options); - }); - return index; - }; - ListIndex2.build = (graph, start_node, options) => (0, ListIndex2.edge_tree_to_list_index)( - Traverse.sort_edge_tree( - Traverse.build_tree( - graph, - start_node, - options, - (e) => has_edge_attrs(e, { $or_fields: options.fields }) - ), - get_edge_sorter(options.edge_sort_id, graph) - ), - options - ); -})(ListIndex || (ListIndex = {})); - -// src/const/settings.ts -var DEFAULT_EDGE_SORT_ID = { field: "basename", order: 1 }; -var DEFAULT_SHOW_NODE_OPTIONS = { - ext: false, - folder: false, - alias: false -}; -var DEFAULT_SETTINGS = { - is_dirty: false, - edge_fields: [ - { label: "up" }, - { label: "down" }, - { label: "same" }, - { label: "next" }, - { label: "prev" } - ], - edge_field_groups: [ - { - label: "ups", - fields: ["up"] - }, - { - label: "downs", - fields: ["down"] - }, - { - label: "sames", - fields: ["same"] - }, - { - label: "nexts", - fields: ["next"] - }, - { - label: "prevs", - fields: ["prev"] - } - ], - implied_relations: { - transitive: [ - { - name: "", - rounds: 1, - chain: [{ field: "up" }], - close_field: "down", - close_reversed: true - }, - { - name: "", - rounds: 1, - chain: [{ field: "down" }], - close_field: "up", - close_reversed: true - }, - { - name: "", - rounds: 1, - chain: [{ field: "same" }], - close_field: "same", - close_reversed: true - }, - { - name: "", - rounds: 1, - chain: [{ field: "next" }], - close_field: "prev", - close_reversed: true - }, - { - name: "", - rounds: 1, - chain: [{ field: "prev" }], - close_field: "next", - close_reversed: true - } - ] - }, - explicit_edge_sources: { - typed_link: {}, - list_note: { - // Disabled by default - default_neighbour_field: "" - }, - tag_note: { - default_field: "up" - }, - regex_note: { - default_field: "up" - }, - dendron_note: { - enabled: false, - delimiter: ".", - default_field: "up", - display_trimmed: false - }, - johnny_decimal_note: { - enabled: false, - delimiter: ".", - default_field: "up" - }, - date_note: { - enabled: false, - date_format: "yyyy-MM-dd", - default_field: "next", - stretch_to_existing: false - } - }, - views: { - page: { - all: { - sticky: false, - readable_line_width: true - }, - trail: { - enabled: true, - format: "grid", - selection: "all", - default_depth: 999, - no_path_message: "", - show_controls: true, - merge_fields: false, - field_group_labels: ["ups"], - show_node_options: { ...DEFAULT_SHOW_NODE_OPTIONS } - }, - prev_next: { - enabled: true, - show_node_options: { ...DEFAULT_SHOW_NODE_OPTIONS }, - field_group_labels: { - prev: ["prevs"], - next: ["nexts"] - } - } - }, - side: { - matrix: { - collapse: false, - edge_sort_id: { ...DEFAULT_EDGE_SORT_ID }, - show_node_options: { ...DEFAULT_SHOW_NODE_OPTIONS }, - show_attributes: ["source", "implied_kind", "round"], - field_group_labels: ["ups", "downs", "sames", "nexts", "prevs"] - }, - tree: { - collapse: false, - show_attributes: [], - merge_fields: false, - field_group_labels: ["downs"], - edge_sort_id: { ...DEFAULT_EDGE_SORT_ID }, - show_node_options: { ...DEFAULT_SHOW_NODE_OPTIONS } - } - }, - codeblocks: { - show_node_options: { ...DEFAULT_SHOW_NODE_OPTIONS } - } - }, - commands: { - rebuild_graph: { - notify: true, - trigger: { - note_save: false, - layout_change: false - } - }, - list_index: { - default_options: ListIndex.DEFAULT_OPTIONS - }, - freeze_implied_edges: { - default_options: { - destination: "frontmatter" - } - }, - thread: { - default_options: { - destination: "frontmatter", - target_path_template: "{{source.folder}}/{{attr.field}} {{source.basename}}" - } - } - }, - suggestors: { - edge_field: { - enabled: false, - trigger: "." - } - }, - debug: { - level: "INFO" - } -}; - -// src/const/views.ts -var VIEW_IDS = { - matrix: "bc-matrix-view", - tree: "bc-tree-view" -}; - -// src/const/metadata_fields.ts -var METADATA_FIELDS_MAP = { - "BC-tag-note-tag": { - property_type: "text" - }, - "BC-tag-note-field": { - property_type: "text" - }, - "BC-tag-note-exact": { - property_type: "checkbox" - }, - // - "BC-regex-note-regex": { - property_type: "text" - }, - "BC-regex-note-flags": { - property_type: "text" - }, - "BC-regex-note-field": { - property_type: "text" - }, - // - "BC-folder-note-field": { - property_type: "text" - }, - "BC-folder-note-recurse": { - property_type: "checkbox" - }, - // - "BC-list-note-field": { - property_type: "text" - }, - "BC-list-note-neighbour-field": { - property_type: "text" - }, - "BC-list-note-exclude-index": { - property_type: "checkbox" - }, - // - "BC-dendron-note-field": { - property_type: "text" - }, - // - "BC-johnny-decimal-note-field": { - property_type: "text" - }, - // - "BC-dataview-note-query": { - property_type: "text" - }, - "BC-dataview-note-field": { - property_type: "text" - }, - // - "BC-ignore-in-edges": { - property_type: "checkbox" - }, - "BC-ignore-out-edges": { - property_type: "checkbox" - } -}; -var META_ALIAS = { - "tag-note-tag": "BC-tag-note-tag", - "tag-note-field": "BC-tag-note-field", - "tag-note-exact": "BC-tag-note-exact", - // - "regex-note-regex": "BC-regex-note-regex", - "regex-note-flags": "BC-regex-note-flags", - "regex-note-field": "BC-regex-note-field", - // - "folder-note-field": "BC-folder-note-field", - "folder-note-recurse": "BC-folder-note-recurse", - // - "list-note-field": "BC-list-note-field", - "list-note-neighbour-field": "BC-list-note-neighbour-field", - "list-note-exclude-index": "BC-list-note-exclude-index", - // - "dendron-note-field": "BC-dendron-note-field", - // - "johnny-decimal-note-field": "BC-johnny-decimal-note-field", - // - "dataview-note-query": "BC-dataview-note-query", - "dataview-note-field": "BC-dataview-note-field", - // - "ignore-in-edges": "BC-ignore-in-edges", - "ignore-out-edges": "BC-ignore-out-edges" -}; - -// src/utils/timer.ts -var Timer = class { - constructor() { - this.start = performance.now(); - } - elapsed() { - return performance.now() - this.start; - } - elapsed_str(digits = 0) { - return this.elapsed().toFixed(digits); - } - reset() { - this.start = performance.now(); - } - elapsedMessage(action, reset = false) { - const msg = `${action} took ${this.elapsed_str(2)}ms`; - if (reset) - this.reset(); - return msg; - } -}; - -// src/graph/builders/explicit/dataview_note.ts -var import_obsidian2 = require("obsidian"); -var get_dataview_note_info = (plugin, metadata, path) => { - if (!metadata) { - return fail(void 0); - } - const query = metadata[META_ALIAS["dataview-note-query"]]; - if (!query) { - return fail(void 0); - } else if (typeof query !== "string") { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: "dataview-note-query is not a string" - }); - } - const field = metadata[META_ALIAS["dataview-note-field"]]; - if (!field) { - return fail(void 0); - } else if (typeof field !== "string") { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: "dataview-note-field is not a string" - }); - } else if (!plugin.settings.edge_fields.find((f) => f.label === field)) { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: `dataview-note-field is not a valid field: '${field}'` - }); - } - return succ({ - field, - query - }); -}; -var _add_explicit_edges_dataview_note = (graph, plugin, all_files) => { - var _a, _b; - const errors = []; - (_a = all_files.obsidian) == null ? void 0 : _a.forEach( - ({ file: dataview_note_file, cache: dataview_note_cache }) => { - if (!dataview_note_cache) - return; - const dataview_note_info = get_dataview_note_info( - plugin, - dataview_note_cache == null ? void 0 : dataview_note_cache.frontmatter, - dataview_note_file.path - ); - if (!dataview_note_info.ok) { - if (dataview_note_info.error) - errors.push(dataview_note_info.error); - return; - } else { - new import_obsidian2.Notice( - "dataview-notes are not implemented without Dataview enabled" - ); - } - } - ); - (_b = all_files.dataview) == null ? void 0 : _b.forEach((dataview_note_page) => { - const dataview_note_path = dataview_note_page.file.path; - const dataview_note_info = get_dataview_note_info( - plugin, - dataview_note_page, - dataview_note_path - ); - if (!dataview_note_info.ok) { - if (dataview_note_info.error) - errors.push(dataview_note_info.error); - return; - } - const { field, query } = dataview_note_info.data; - let pages = []; - try { - pages = dataview_plugin.get_api().pages(query, dataview_note_path).values; - } catch (error) { - log.warn( - "dataview-note > DV API error:", - error instanceof Error ? error.message : error - ); - return errors.push({ - code: "invalid_field_value", - path: dataview_note_path, - message: `dataview-note-query is not a valid dataview query: '${query}'` - }); - } - pages.forEach((page) => { - graph.safe_add_directed_edge( - dataview_note_page.file.path, - page.file.path, - { - field, - explicit: true, - source: "dataview_note" - } - ); - }); - }); - return { errors }; -}; - -// node_modules/luxon/src/errors.js -var LuxonError = class extends Error { -}; -var InvalidDateTimeError = class extends LuxonError { - constructor(reason) { - super(`Invalid DateTime: ${reason.toMessage()}`); - } -}; -var InvalidIntervalError = class extends LuxonError { - constructor(reason) { - super(`Invalid Interval: ${reason.toMessage()}`); - } -}; -var InvalidDurationError = class extends LuxonError { - constructor(reason) { - super(`Invalid Duration: ${reason.toMessage()}`); - } -}; -var ConflictingSpecificationError = class extends LuxonError { -}; -var InvalidUnitError = class extends LuxonError { - constructor(unit) { - super(`Invalid unit ${unit}`); - } -}; -var InvalidArgumentError = class extends LuxonError { -}; -var ZoneIsAbstractError = class extends LuxonError { - constructor() { - super("Zone is an abstract class"); - } -}; - -// node_modules/luxon/src/impl/formats.js -var n = "numeric"; -var s = "short"; -var l = "long"; -var DATE_SHORT = { - year: n, - month: n, - day: n -}; -var DATE_MED = { - year: n, - month: s, - day: n -}; -var DATE_MED_WITH_WEEKDAY = { - year: n, - month: s, - day: n, - weekday: s -}; -var DATE_FULL = { - year: n, - month: l, - day: n -}; -var DATE_HUGE = { - year: n, - month: l, - day: n, - weekday: l -}; -var TIME_SIMPLE = { - hour: n, - minute: n -}; -var TIME_WITH_SECONDS = { - hour: n, - minute: n, - second: n -}; -var TIME_WITH_SHORT_OFFSET = { - hour: n, - minute: n, - second: n, - timeZoneName: s -}; -var TIME_WITH_LONG_OFFSET = { - hour: n, - minute: n, - second: n, - timeZoneName: l -}; -var TIME_24_SIMPLE = { - hour: n, - minute: n, - hourCycle: "h23" -}; -var TIME_24_WITH_SECONDS = { - hour: n, - minute: n, - second: n, - hourCycle: "h23" -}; -var TIME_24_WITH_SHORT_OFFSET = { - hour: n, - minute: n, - second: n, - hourCycle: "h23", - timeZoneName: s -}; -var TIME_24_WITH_LONG_OFFSET = { - hour: n, - minute: n, - second: n, - hourCycle: "h23", - timeZoneName: l -}; -var DATETIME_SHORT = { - year: n, - month: n, - day: n, - hour: n, - minute: n -}; -var DATETIME_SHORT_WITH_SECONDS = { - year: n, - month: n, - day: n, - hour: n, - minute: n, - second: n -}; -var DATETIME_MED = { - year: n, - month: s, - day: n, - hour: n, - minute: n -}; -var DATETIME_MED_WITH_SECONDS = { - year: n, - month: s, - day: n, - hour: n, - minute: n, - second: n -}; -var DATETIME_MED_WITH_WEEKDAY = { - year: n, - month: s, - day: n, - weekday: s, - hour: n, - minute: n -}; -var DATETIME_FULL = { - year: n, - month: l, - day: n, - hour: n, - minute: n, - timeZoneName: s -}; -var DATETIME_FULL_WITH_SECONDS = { - year: n, - month: l, - day: n, - hour: n, - minute: n, - second: n, - timeZoneName: s -}; -var DATETIME_HUGE = { - year: n, - month: l, - day: n, - weekday: l, - hour: n, - minute: n, - timeZoneName: l -}; -var DATETIME_HUGE_WITH_SECONDS = { - year: n, - month: l, - day: n, - weekday: l, - hour: n, - minute: n, - second: n, - timeZoneName: l -}; - -// node_modules/luxon/src/zone.js -var Zone = class { - /** - * The type of zone - * @abstract - * @type {string} - */ - get type() { - throw new ZoneIsAbstractError(); - } - /** - * The name of this zone. - * @abstract - * @type {string} - */ - get name() { - throw new ZoneIsAbstractError(); - } - get ianaName() { - return this.name; - } - /** - * Returns whether the offset is known to be fixed for the whole year. - * @abstract - * @type {boolean} - */ - get isUniversal() { - throw new ZoneIsAbstractError(); - } - /** - * Returns the offset's common name (such as EST) at the specified timestamp - * @abstract - * @param {number} ts - Epoch milliseconds for which to get the name - * @param {Object} opts - Options to affect the format - * @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'. - * @param {string} opts.locale - What locale to return the offset name in. - * @return {string} - */ - offsetName(ts, opts) { - throw new ZoneIsAbstractError(); - } - /** - * Returns the offset's value as a string - * @abstract - * @param {number} ts - Epoch milliseconds for which to get the offset - * @param {string} format - What style of offset to return. - * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively - * @return {string} - */ - formatOffset(ts, format) { - throw new ZoneIsAbstractError(); - } - /** - * Return the offset in minutes for this zone at the specified timestamp. - * @abstract - * @param {number} ts - Epoch milliseconds for which to compute the offset - * @return {number} - */ - offset(ts) { - throw new ZoneIsAbstractError(); - } - /** - * Return whether this Zone is equal to another zone - * @abstract - * @param {Zone} otherZone - the zone to compare - * @return {boolean} - */ - equals(otherZone) { - throw new ZoneIsAbstractError(); - } - /** - * Return whether this Zone is valid. - * @abstract - * @type {boolean} - */ - get isValid() { - throw new ZoneIsAbstractError(); - } -}; - -// node_modules/luxon/src/zones/systemZone.js -var singleton = null; -var SystemZone = class _SystemZone extends Zone { - /** - * Get a singleton instance of the local zone - * @return {SystemZone} - */ - static get instance() { - if (singleton === null) { - singleton = new _SystemZone(); - } - return singleton; - } - /** @override **/ - get type() { - return "system"; - } - /** @override **/ - get name() { - return new Intl.DateTimeFormat().resolvedOptions().timeZone; - } - /** @override **/ - get isUniversal() { - return false; - } - /** @override **/ - offsetName(ts, { format, locale }) { - return parseZoneInfo(ts, format, locale); - } - /** @override **/ - formatOffset(ts, format) { - return formatOffset(this.offset(ts), format); - } - /** @override **/ - offset(ts) { - return -new Date(ts).getTimezoneOffset(); - } - /** @override **/ - equals(otherZone) { - return otherZone.type === "system"; - } - /** @override **/ - get isValid() { - return true; - } -}; - -// node_modules/luxon/src/zones/IANAZone.js -var dtfCache = {}; -function makeDTF(zone) { - if (!dtfCache[zone]) { - dtfCache[zone] = new Intl.DateTimeFormat("en-US", { - hour12: false, - timeZone: zone, - year: "numeric", - month: "2-digit", - day: "2-digit", - hour: "2-digit", - minute: "2-digit", - second: "2-digit", - era: "short" - }); - } - return dtfCache[zone]; -} -var typeToPos = { - year: 0, - month: 1, - day: 2, - era: 3, - hour: 4, - minute: 5, - second: 6 -}; -function hackyOffset(dtf, date) { - const formatted = dtf.format(date).replace(/\u200E/g, ""), parsed = /(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(formatted), [, fMonth, fDay, fYear, fadOrBc, fHour, fMinute, fSecond] = parsed; - return [fYear, fMonth, fDay, fadOrBc, fHour, fMinute, fSecond]; -} -function partsOffset(dtf, date) { - const formatted = dtf.formatToParts(date); - const filled = []; - for (let i = 0; i < formatted.length; i++) { - const { type, value } = formatted[i]; - const pos = typeToPos[type]; - if (type === "era") { - filled[pos] = value; - } else if (!isUndefined(pos)) { - filled[pos] = parseInt(value, 10); - } - } - return filled; -} -var ianaZoneCache = {}; -var IANAZone = class _IANAZone extends Zone { - /** - * @param {string} name - Zone name - * @return {IANAZone} - */ - static create(name) { - if (!ianaZoneCache[name]) { - ianaZoneCache[name] = new _IANAZone(name); - } - return ianaZoneCache[name]; - } - /** - * Reset local caches. Should only be necessary in testing scenarios. - * @return {void} - */ - static resetCache() { - ianaZoneCache = {}; - dtfCache = {}; - } - /** - * Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that. - * @param {string} s - The string to check validity on - * @example IANAZone.isValidSpecifier("America/New_York") //=> true - * @example IANAZone.isValidSpecifier("Sport~~blorp") //=> false - * @deprecated This method returns false for some valid IANA names. Use isValidZone instead. - * @return {boolean} - */ - static isValidSpecifier(s2) { - return this.isValidZone(s2); - } - /** - * Returns whether the provided string identifies a real zone - * @param {string} zone - The string to check - * @example IANAZone.isValidZone("America/New_York") //=> true - * @example IANAZone.isValidZone("Fantasia/Castle") //=> false - * @example IANAZone.isValidZone("Sport~~blorp") //=> false - * @return {boolean} - */ - static isValidZone(zone) { - if (!zone) { - return false; - } - try { - new Intl.DateTimeFormat("en-US", { timeZone: zone }).format(); - return true; - } catch (e) { - return false; - } - } - constructor(name) { - super(); - this.zoneName = name; - this.valid = _IANAZone.isValidZone(name); - } - /** @override **/ - get type() { - return "iana"; - } - /** @override **/ - get name() { - return this.zoneName; - } - /** @override **/ - get isUniversal() { - return false; - } - /** @override **/ - offsetName(ts, { format, locale }) { - return parseZoneInfo(ts, format, locale, this.name); - } - /** @override **/ - formatOffset(ts, format) { - return formatOffset(this.offset(ts), format); - } - /** @override **/ - offset(ts) { - const date = new Date(ts); - if (isNaN(date)) - return NaN; - const dtf = makeDTF(this.name); - let [year, month, day, adOrBc, hour, minute, second] = dtf.formatToParts ? partsOffset(dtf, date) : hackyOffset(dtf, date); - if (adOrBc === "BC") { - year = -Math.abs(year) + 1; - } - const adjustedHour = hour === 24 ? 0 : hour; - const asUTC = objToLocalTS({ - year, - month, - day, - hour: adjustedHour, - minute, - second, - millisecond: 0 - }); - let asTS = +date; - const over = asTS % 1e3; - asTS -= over >= 0 ? over : 1e3 + over; - return (asUTC - asTS) / (60 * 1e3); - } - /** @override **/ - equals(otherZone) { - return otherZone.type === "iana" && otherZone.name === this.name; - } - /** @override **/ - get isValid() { - return this.valid; - } -}; - -// node_modules/luxon/src/impl/locale.js -var intlLFCache = {}; -function getCachedLF(locString, opts = {}) { - const key = JSON.stringify([locString, opts]); - let dtf = intlLFCache[key]; - if (!dtf) { - dtf = new Intl.ListFormat(locString, opts); - intlLFCache[key] = dtf; - } - return dtf; -} -var intlDTCache = {}; -function getCachedDTF(locString, opts = {}) { - const key = JSON.stringify([locString, opts]); - let dtf = intlDTCache[key]; - if (!dtf) { - dtf = new Intl.DateTimeFormat(locString, opts); - intlDTCache[key] = dtf; - } - return dtf; -} -var intlNumCache = {}; -function getCachedINF(locString, opts = {}) { - const key = JSON.stringify([locString, opts]); - let inf = intlNumCache[key]; - if (!inf) { - inf = new Intl.NumberFormat(locString, opts); - intlNumCache[key] = inf; - } - return inf; -} -var intlRelCache = {}; -function getCachedRTF(locString, opts = {}) { - const { base, ...cacheKeyOpts } = opts; - const key = JSON.stringify([locString, cacheKeyOpts]); - let inf = intlRelCache[key]; - if (!inf) { - inf = new Intl.RelativeTimeFormat(locString, opts); - intlRelCache[key] = inf; - } - return inf; -} -var sysLocaleCache = null; -function systemLocale() { - if (sysLocaleCache) { - return sysLocaleCache; - } else { - sysLocaleCache = new Intl.DateTimeFormat().resolvedOptions().locale; - return sysLocaleCache; - } -} -var weekInfoCache = {}; -function getCachedWeekInfo(locString) { - let data = weekInfoCache[locString]; - if (!data) { - const locale = new Intl.Locale(locString); - data = "getWeekInfo" in locale ? locale.getWeekInfo() : locale.weekInfo; - weekInfoCache[locString] = data; - } - return data; -} -function parseLocaleString(localeStr) { - const xIndex = localeStr.indexOf("-x-"); - if (xIndex !== -1) { - localeStr = localeStr.substring(0, xIndex); - } - const uIndex = localeStr.indexOf("-u-"); - if (uIndex === -1) { - return [localeStr]; - } else { - let options; - let selectedStr; - try { - options = getCachedDTF(localeStr).resolvedOptions(); - selectedStr = localeStr; - } catch (e) { - const smaller = localeStr.substring(0, uIndex); - options = getCachedDTF(smaller).resolvedOptions(); - selectedStr = smaller; - } - const { numberingSystem, calendar } = options; - return [selectedStr, numberingSystem, calendar]; - } -} -function intlConfigString(localeStr, numberingSystem, outputCalendar) { - if (outputCalendar || numberingSystem) { - if (!localeStr.includes("-u-")) { - localeStr += "-u"; - } - if (outputCalendar) { - localeStr += `-ca-${outputCalendar}`; - } - if (numberingSystem) { - localeStr += `-nu-${numberingSystem}`; - } - return localeStr; - } else { - return localeStr; - } -} -function mapMonths(f) { - const ms = []; - for (let i = 1; i <= 12; i++) { - const dt = DateTime.utc(2009, i, 1); - ms.push(f(dt)); - } - return ms; -} -function mapWeekdays(f) { - const ms = []; - for (let i = 1; i <= 7; i++) { - const dt = DateTime.utc(2016, 11, 13 + i); - ms.push(f(dt)); - } - return ms; -} -function listStuff(loc, length, englishFn, intlFn) { - const mode = loc.listingMode(); - if (mode === "error") { - return null; - } else if (mode === "en") { - return englishFn(length); - } else { - return intlFn(length); - } -} -function supportsFastNumbers(loc) { - if (loc.numberingSystem && loc.numberingSystem !== "latn") { - return false; - } else { - return loc.numberingSystem === "latn" || !loc.locale || loc.locale.startsWith("en") || new Intl.DateTimeFormat(loc.intl).resolvedOptions().numberingSystem === "latn"; - } -} -var PolyNumberFormatter = class { - constructor(intl, forceSimple, opts) { - this.padTo = opts.padTo || 0; - this.floor = opts.floor || false; - const { padTo, floor, ...otherOpts } = opts; - if (!forceSimple || Object.keys(otherOpts).length > 0) { - const intlOpts = { useGrouping: false, ...opts }; - if (opts.padTo > 0) - intlOpts.minimumIntegerDigits = opts.padTo; - this.inf = getCachedINF(intl, intlOpts); - } - } - format(i) { - if (this.inf) { - const fixed = this.floor ? Math.floor(i) : i; - return this.inf.format(fixed); - } else { - const fixed = this.floor ? Math.floor(i) : roundTo(i, 3); - return padStart(fixed, this.padTo); - } - } -}; -var PolyDateFormatter = class { - constructor(dt, intl, opts) { - this.opts = opts; - this.originalZone = void 0; - let z2 = void 0; - if (this.opts.timeZone) { - this.dt = dt; - } else if (dt.zone.type === "fixed") { - const gmtOffset = -1 * (dt.offset / 60); - const offsetZ = gmtOffset >= 0 ? `Etc/GMT+${gmtOffset}` : `Etc/GMT${gmtOffset}`; - if (dt.offset !== 0 && IANAZone.create(offsetZ).valid) { - z2 = offsetZ; - this.dt = dt; - } else { - z2 = "UTC"; - this.dt = dt.offset === 0 ? dt : dt.setZone("UTC").plus({ minutes: dt.offset }); - this.originalZone = dt.zone; - } - } else if (dt.zone.type === "system") { - this.dt = dt; - } else if (dt.zone.type === "iana") { - this.dt = dt; - z2 = dt.zone.name; - } else { - z2 = "UTC"; - this.dt = dt.setZone("UTC").plus({ minutes: dt.offset }); - this.originalZone = dt.zone; - } - const intlOpts = { ...this.opts }; - intlOpts.timeZone = intlOpts.timeZone || z2; - this.dtf = getCachedDTF(intl, intlOpts); - } - format() { - if (this.originalZone) { - return this.formatToParts().map(({ value }) => value).join(""); - } - return this.dtf.format(this.dt.toJSDate()); - } - formatToParts() { - const parts = this.dtf.formatToParts(this.dt.toJSDate()); - if (this.originalZone) { - return parts.map((part) => { - if (part.type === "timeZoneName") { - const offsetName = this.originalZone.offsetName(this.dt.ts, { - locale: this.dt.locale, - format: this.opts.timeZoneName - }); - return { - ...part, - value: offsetName - }; - } else { - return part; - } - }); - } - return parts; - } - resolvedOptions() { - return this.dtf.resolvedOptions(); - } -}; -var PolyRelFormatter = class { - constructor(intl, isEnglish, opts) { - this.opts = { style: "long", ...opts }; - if (!isEnglish && hasRelative()) { - this.rtf = getCachedRTF(intl, opts); - } - } - format(count, unit) { - if (this.rtf) { - return this.rtf.format(count, unit); - } else { - return formatRelativeTime(unit, count, this.opts.numeric, this.opts.style !== "long"); - } - } - formatToParts(count, unit) { - if (this.rtf) { - return this.rtf.formatToParts(count, unit); - } else { - return []; - } - } -}; -var fallbackWeekSettings = { - firstDay: 1, - minimalDays: 4, - weekend: [6, 7] -}; -var Locale = class _Locale { - static fromOpts(opts) { - return _Locale.create( - opts.locale, - opts.numberingSystem, - opts.outputCalendar, - opts.weekSettings, - opts.defaultToEN - ); - } - static create(locale, numberingSystem, outputCalendar, weekSettings, defaultToEN = false) { - const specifiedLocale = locale || Settings.defaultLocale; - const localeR = specifiedLocale || (defaultToEN ? "en-US" : systemLocale()); - const numberingSystemR = numberingSystem || Settings.defaultNumberingSystem; - const outputCalendarR = outputCalendar || Settings.defaultOutputCalendar; - const weekSettingsR = validateWeekSettings(weekSettings) || Settings.defaultWeekSettings; - return new _Locale(localeR, numberingSystemR, outputCalendarR, weekSettingsR, specifiedLocale); - } - static resetCache() { - sysLocaleCache = null; - intlDTCache = {}; - intlNumCache = {}; - intlRelCache = {}; - } - static fromObject({ locale, numberingSystem, outputCalendar, weekSettings } = {}) { - return _Locale.create(locale, numberingSystem, outputCalendar, weekSettings); - } - constructor(locale, numbering, outputCalendar, weekSettings, specifiedLocale) { - const [parsedLocale, parsedNumberingSystem, parsedOutputCalendar] = parseLocaleString(locale); - this.locale = parsedLocale; - this.numberingSystem = numbering || parsedNumberingSystem || null; - this.outputCalendar = outputCalendar || parsedOutputCalendar || null; - this.weekSettings = weekSettings; - this.intl = intlConfigString(this.locale, this.numberingSystem, this.outputCalendar); - this.weekdaysCache = { format: {}, standalone: {} }; - this.monthsCache = { format: {}, standalone: {} }; - this.meridiemCache = null; - this.eraCache = {}; - this.specifiedLocale = specifiedLocale; - this.fastNumbersCached = null; - } - get fastNumbers() { - if (this.fastNumbersCached == null) { - this.fastNumbersCached = supportsFastNumbers(this); - } - return this.fastNumbersCached; - } - listingMode() { - const isActuallyEn = this.isEnglish(); - const hasNoWeirdness = (this.numberingSystem === null || this.numberingSystem === "latn") && (this.outputCalendar === null || this.outputCalendar === "gregory"); - return isActuallyEn && hasNoWeirdness ? "en" : "intl"; - } - clone(alts) { - if (!alts || Object.getOwnPropertyNames(alts).length === 0) { - return this; - } else { - return _Locale.create( - alts.locale || this.specifiedLocale, - alts.numberingSystem || this.numberingSystem, - alts.outputCalendar || this.outputCalendar, - validateWeekSettings(alts.weekSettings) || this.weekSettings, - alts.defaultToEN || false - ); - } - } - redefaultToEN(alts = {}) { - return this.clone({ ...alts, defaultToEN: true }); - } - redefaultToSystem(alts = {}) { - return this.clone({ ...alts, defaultToEN: false }); - } - months(length, format = false) { - return listStuff(this, length, months, () => { - const intl = format ? { month: length, day: "numeric" } : { month: length }, formatStr = format ? "format" : "standalone"; - if (!this.monthsCache[formatStr][length]) { - this.monthsCache[formatStr][length] = mapMonths((dt) => this.extract(dt, intl, "month")); - } - return this.monthsCache[formatStr][length]; - }); - } - weekdays(length, format = false) { - return listStuff(this, length, weekdays, () => { - const intl = format ? { weekday: length, year: "numeric", month: "long", day: "numeric" } : { weekday: length }, formatStr = format ? "format" : "standalone"; - if (!this.weekdaysCache[formatStr][length]) { - this.weekdaysCache[formatStr][length] = mapWeekdays( - (dt) => this.extract(dt, intl, "weekday") - ); - } - return this.weekdaysCache[formatStr][length]; - }); - } - meridiems() { - return listStuff( - this, - void 0, - () => meridiems, - () => { - if (!this.meridiemCache) { - const intl = { hour: "numeric", hourCycle: "h12" }; - this.meridiemCache = [DateTime.utc(2016, 11, 13, 9), DateTime.utc(2016, 11, 13, 19)].map( - (dt) => this.extract(dt, intl, "dayperiod") - ); - } - return this.meridiemCache; - } - ); - } - eras(length) { - return listStuff(this, length, eras, () => { - const intl = { era: length }; - if (!this.eraCache[length]) { - this.eraCache[length] = [DateTime.utc(-40, 1, 1), DateTime.utc(2017, 1, 1)].map( - (dt) => this.extract(dt, intl, "era") - ); - } - return this.eraCache[length]; - }); - } - extract(dt, intlOpts, field) { - const df = this.dtFormatter(dt, intlOpts), results = df.formatToParts(), matching = results.find((m) => m.type.toLowerCase() === field); - return matching ? matching.value : null; - } - numberFormatter(opts = {}) { - return new PolyNumberFormatter(this.intl, opts.forceSimple || this.fastNumbers, opts); - } - dtFormatter(dt, intlOpts = {}) { - return new PolyDateFormatter(dt, this.intl, intlOpts); - } - relFormatter(opts = {}) { - return new PolyRelFormatter(this.intl, this.isEnglish(), opts); - } - listFormatter(opts = {}) { - return getCachedLF(this.intl, opts); - } - isEnglish() { - return this.locale === "en" || this.locale.toLowerCase() === "en-us" || new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us"); - } - getWeekSettings() { - if (this.weekSettings) { - return this.weekSettings; - } else if (!hasLocaleWeekInfo()) { - return fallbackWeekSettings; - } else { - return getCachedWeekInfo(this.locale); - } - } - getStartOfWeek() { - return this.getWeekSettings().firstDay; - } - getMinDaysInFirstWeek() { - return this.getWeekSettings().minimalDays; - } - getWeekendDays() { - return this.getWeekSettings().weekend; - } - equals(other) { - return this.locale === other.locale && this.numberingSystem === other.numberingSystem && this.outputCalendar === other.outputCalendar; - } -}; - -// node_modules/luxon/src/zones/fixedOffsetZone.js -var singleton2 = null; -var FixedOffsetZone = class _FixedOffsetZone extends Zone { - /** - * Get a singleton instance of UTC - * @return {FixedOffsetZone} - */ - static get utcInstance() { - if (singleton2 === null) { - singleton2 = new _FixedOffsetZone(0); - } - return singleton2; - } - /** - * Get an instance with a specified offset - * @param {number} offset - The offset in minutes - * @return {FixedOffsetZone} - */ - static instance(offset2) { - return offset2 === 0 ? _FixedOffsetZone.utcInstance : new _FixedOffsetZone(offset2); - } - /** - * Get an instance of FixedOffsetZone from a UTC offset string, like "UTC+6" - * @param {string} s - The offset string to parse - * @example FixedOffsetZone.parseSpecifier("UTC+6") - * @example FixedOffsetZone.parseSpecifier("UTC+06") - * @example FixedOffsetZone.parseSpecifier("UTC-6:00") - * @return {FixedOffsetZone} - */ - static parseSpecifier(s2) { - if (s2) { - const r = s2.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i); - if (r) { - return new _FixedOffsetZone(signedOffset(r[1], r[2])); - } - } - return null; - } - constructor(offset2) { - super(); - this.fixed = offset2; - } - /** @override **/ - get type() { - return "fixed"; - } - /** @override **/ - get name() { - return this.fixed === 0 ? "UTC" : `UTC${formatOffset(this.fixed, "narrow")}`; - } - get ianaName() { - if (this.fixed === 0) { - return "Etc/UTC"; - } else { - return `Etc/GMT${formatOffset(-this.fixed, "narrow")}`; - } - } - /** @override **/ - offsetName() { - return this.name; - } - /** @override **/ - formatOffset(ts, format) { - return formatOffset(this.fixed, format); - } - /** @override **/ - get isUniversal() { - return true; - } - /** @override **/ - offset() { - return this.fixed; - } - /** @override **/ - equals(otherZone) { - return otherZone.type === "fixed" && otherZone.fixed === this.fixed; - } - /** @override **/ - get isValid() { - return true; - } -}; - -// node_modules/luxon/src/zones/invalidZone.js -var InvalidZone = class extends Zone { - constructor(zoneName) { - super(); - this.zoneName = zoneName; - } - /** @override **/ - get type() { - return "invalid"; - } - /** @override **/ - get name() { - return this.zoneName; - } - /** @override **/ - get isUniversal() { - return false; - } - /** @override **/ - offsetName() { - return null; - } - /** @override **/ - formatOffset() { - return ""; - } - /** @override **/ - offset() { - return NaN; - } - /** @override **/ - equals() { - return false; - } - /** @override **/ - get isValid() { - return false; - } -}; - -// node_modules/luxon/src/impl/zoneUtil.js -function normalizeZone(input, defaultZone2) { - let offset2; - if (isUndefined(input) || input === null) { - return defaultZone2; - } else if (input instanceof Zone) { - return input; - } else if (isString(input)) { - const lowered = input.toLowerCase(); - if (lowered === "default") - return defaultZone2; - else if (lowered === "local" || lowered === "system") - return SystemZone.instance; - else if (lowered === "utc" || lowered === "gmt") - return FixedOffsetZone.utcInstance; - else - return FixedOffsetZone.parseSpecifier(lowered) || IANAZone.create(input); - } else if (isNumber(input)) { - return FixedOffsetZone.instance(input); - } else if (typeof input === "object" && "offset" in input && typeof input.offset === "function") { - return input; - } else { - return new InvalidZone(input); - } -} - -// node_modules/luxon/src/settings.js -var now = () => Date.now(); -var defaultZone = "system"; -var defaultLocale = null; -var defaultNumberingSystem = null; -var defaultOutputCalendar = null; -var twoDigitCutoffYear = 60; -var throwOnInvalid; -var defaultWeekSettings = null; -var Settings = class { - /** - * Get the callback for returning the current timestamp. - * @type {function} - */ - static get now() { - return now; - } - /** - * Set the callback for returning the current timestamp. - * The function should return a number, which will be interpreted as an Epoch millisecond count - * @type {function} - * @example Settings.now = () => Date.now() + 3000 // pretend it is 3 seconds in the future - * @example Settings.now = () => 0 // always pretend it's Jan 1, 1970 at midnight in UTC time - */ - static set now(n2) { - now = n2; - } - /** - * Set the default time zone to create DateTimes in. Does not affect existing instances. - * Use the value "system" to reset this value to the system's time zone. - * @type {string} - */ - static set defaultZone(zone) { - defaultZone = zone; - } - /** - * Get the default time zone object currently used to create DateTimes. Does not affect existing instances. - * The default value is the system's time zone (the one set on the machine that runs this code). - * @type {Zone} - */ - static get defaultZone() { - return normalizeZone(defaultZone, SystemZone.instance); - } - /** - * Get the default locale to create DateTimes with. Does not affect existing instances. - * @type {string} - */ - static get defaultLocale() { - return defaultLocale; - } - /** - * Set the default locale to create DateTimes with. Does not affect existing instances. - * @type {string} - */ - static set defaultLocale(locale) { - defaultLocale = locale; - } - /** - * Get the default numbering system to create DateTimes with. Does not affect existing instances. - * @type {string} - */ - static get defaultNumberingSystem() { - return defaultNumberingSystem; - } - /** - * Set the default numbering system to create DateTimes with. Does not affect existing instances. - * @type {string} - */ - static set defaultNumberingSystem(numberingSystem) { - defaultNumberingSystem = numberingSystem; - } - /** - * Get the default output calendar to create DateTimes with. Does not affect existing instances. - * @type {string} - */ - static get defaultOutputCalendar() { - return defaultOutputCalendar; - } - /** - * Set the default output calendar to create DateTimes with. Does not affect existing instances. - * @type {string} - */ - static set defaultOutputCalendar(outputCalendar) { - defaultOutputCalendar = outputCalendar; - } - /** - * @typedef {Object} WeekSettings - * @property {number} firstDay - * @property {number} minimalDays - * @property {number[]} weekend - */ - /** - * @return {WeekSettings|null} - */ - static get defaultWeekSettings() { - return defaultWeekSettings; - } - /** - * Allows overriding the default locale week settings, i.e. the start of the week, the weekend and - * how many days are required in the first week of a year. - * Does not affect existing instances. - * - * @param {WeekSettings|null} weekSettings - */ - static set defaultWeekSettings(weekSettings) { - defaultWeekSettings = validateWeekSettings(weekSettings); - } - /** - * Get the cutoff year after which a string encoding a year as two digits is interpreted to occur in the current century. - * @type {number} - */ - static get twoDigitCutoffYear() { - return twoDigitCutoffYear; - } - /** - * Set the cutoff year after which a string encoding a year as two digits is interpreted to occur in the current century. - * @type {number} - * @example Settings.twoDigitCutoffYear = 0 // cut-off year is 0, so all 'yy' are interpreted as current century - * @example Settings.twoDigitCutoffYear = 50 // '49' -> 1949; '50' -> 2050 - * @example Settings.twoDigitCutoffYear = 1950 // interpreted as 50 - * @example Settings.twoDigitCutoffYear = 2050 // ALSO interpreted as 50 - */ - static set twoDigitCutoffYear(cutoffYear) { - twoDigitCutoffYear = cutoffYear % 100; - } - /** - * Get whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals - * @type {boolean} - */ - static get throwOnInvalid() { - return throwOnInvalid; - } - /** - * Set whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals - * @type {boolean} - */ - static set throwOnInvalid(t) { - throwOnInvalid = t; - } - /** - * Reset Luxon's global caches. Should only be necessary in testing scenarios. - * @return {void} - */ - static resetCaches() { - Locale.resetCache(); - IANAZone.resetCache(); - } -}; - -// node_modules/luxon/src/impl/invalid.js -var Invalid = class { - constructor(reason, explanation) { - this.reason = reason; - this.explanation = explanation; - } - toMessage() { - if (this.explanation) { - return `${this.reason}: ${this.explanation}`; - } else { - return this.reason; - } - } -}; - -// node_modules/luxon/src/impl/conversions.js -var nonLeapLadder = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334]; -var leapLadder = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335]; -function unitOutOfRange(unit, value) { - return new Invalid( - "unit out of range", - `you specified ${value} (of type ${typeof value}) as a ${unit}, which is invalid` - ); -} -function dayOfWeek(year, month, day) { - const d = new Date(Date.UTC(year, month - 1, day)); - if (year < 100 && year >= 0) { - d.setUTCFullYear(d.getUTCFullYear() - 1900); - } - const js = d.getUTCDay(); - return js === 0 ? 7 : js; -} -function computeOrdinal(year, month, day) { - return day + (isLeapYear(year) ? leapLadder : nonLeapLadder)[month - 1]; -} -function uncomputeOrdinal(year, ordinal) { - const table = isLeapYear(year) ? leapLadder : nonLeapLadder, month0 = table.findIndex((i) => i < ordinal), day = ordinal - table[month0]; - return { month: month0 + 1, day }; -} -function isoWeekdayToLocal(isoWeekday, startOfWeek) { - return (isoWeekday - startOfWeek + 7) % 7 + 1; -} -function gregorianToWeek(gregObj, minDaysInFirstWeek = 4, startOfWeek = 1) { - const { year, month, day } = gregObj, ordinal = computeOrdinal(year, month, day), weekday = isoWeekdayToLocal(dayOfWeek(year, month, day), startOfWeek); - let weekNumber = Math.floor((ordinal - weekday + 14 - minDaysInFirstWeek) / 7), weekYear; - if (weekNumber < 1) { - weekYear = year - 1; - weekNumber = weeksInWeekYear(weekYear, minDaysInFirstWeek, startOfWeek); - } else if (weekNumber > weeksInWeekYear(year, minDaysInFirstWeek, startOfWeek)) { - weekYear = year + 1; - weekNumber = 1; - } else { - weekYear = year; - } - return { weekYear, weekNumber, weekday, ...timeObject(gregObj) }; -} -function weekToGregorian(weekData, minDaysInFirstWeek = 4, startOfWeek = 1) { - const { weekYear, weekNumber, weekday } = weekData, weekdayOfJan4 = isoWeekdayToLocal(dayOfWeek(weekYear, 1, minDaysInFirstWeek), startOfWeek), yearInDays = daysInYear(weekYear); - let ordinal = weekNumber * 7 + weekday - weekdayOfJan4 - 7 + minDaysInFirstWeek, year; - if (ordinal < 1) { - year = weekYear - 1; - ordinal += daysInYear(year); - } else if (ordinal > yearInDays) { - year = weekYear + 1; - ordinal -= daysInYear(weekYear); - } else { - year = weekYear; - } - const { month, day } = uncomputeOrdinal(year, ordinal); - return { year, month, day, ...timeObject(weekData) }; -} -function gregorianToOrdinal(gregData) { - const { year, month, day } = gregData; - const ordinal = computeOrdinal(year, month, day); - return { year, ordinal, ...timeObject(gregData) }; -} -function ordinalToGregorian(ordinalData) { - const { year, ordinal } = ordinalData; - const { month, day } = uncomputeOrdinal(year, ordinal); - return { year, month, day, ...timeObject(ordinalData) }; -} -function usesLocalWeekValues(obj, loc) { - const hasLocaleWeekData = !isUndefined(obj.localWeekday) || !isUndefined(obj.localWeekNumber) || !isUndefined(obj.localWeekYear); - if (hasLocaleWeekData) { - const hasIsoWeekData = !isUndefined(obj.weekday) || !isUndefined(obj.weekNumber) || !isUndefined(obj.weekYear); - if (hasIsoWeekData) { - throw new ConflictingSpecificationError( - "Cannot mix locale-based week fields with ISO-based week fields" - ); - } - if (!isUndefined(obj.localWeekday)) - obj.weekday = obj.localWeekday; - if (!isUndefined(obj.localWeekNumber)) - obj.weekNumber = obj.localWeekNumber; - if (!isUndefined(obj.localWeekYear)) - obj.weekYear = obj.localWeekYear; - delete obj.localWeekday; - delete obj.localWeekNumber; - delete obj.localWeekYear; - return { - minDaysInFirstWeek: loc.getMinDaysInFirstWeek(), - startOfWeek: loc.getStartOfWeek() - }; - } else { - return { minDaysInFirstWeek: 4, startOfWeek: 1 }; - } -} -function hasInvalidWeekData(obj, minDaysInFirstWeek = 4, startOfWeek = 1) { - const validYear = isInteger(obj.weekYear), validWeek = integerBetween( - obj.weekNumber, - 1, - weeksInWeekYear(obj.weekYear, minDaysInFirstWeek, startOfWeek) - ), validWeekday = integerBetween(obj.weekday, 1, 7); - if (!validYear) { - return unitOutOfRange("weekYear", obj.weekYear); - } else if (!validWeek) { - return unitOutOfRange("week", obj.weekNumber); - } else if (!validWeekday) { - return unitOutOfRange("weekday", obj.weekday); - } else - return false; -} -function hasInvalidOrdinalData(obj) { - const validYear = isInteger(obj.year), validOrdinal = integerBetween(obj.ordinal, 1, daysInYear(obj.year)); - if (!validYear) { - return unitOutOfRange("year", obj.year); - } else if (!validOrdinal) { - return unitOutOfRange("ordinal", obj.ordinal); - } else - return false; -} -function hasInvalidGregorianData(obj) { - const validYear = isInteger(obj.year), validMonth = integerBetween(obj.month, 1, 12), validDay = integerBetween(obj.day, 1, daysInMonth(obj.year, obj.month)); - if (!validYear) { - return unitOutOfRange("year", obj.year); - } else if (!validMonth) { - return unitOutOfRange("month", obj.month); - } else if (!validDay) { - return unitOutOfRange("day", obj.day); - } else - return false; -} -function hasInvalidTimeData(obj) { - const { hour, minute, second, millisecond } = obj; - const validHour = integerBetween(hour, 0, 23) || hour === 24 && minute === 0 && second === 0 && millisecond === 0, validMinute = integerBetween(minute, 0, 59), validSecond = integerBetween(second, 0, 59), validMillisecond = integerBetween(millisecond, 0, 999); - if (!validHour) { - return unitOutOfRange("hour", hour); - } else if (!validMinute) { - return unitOutOfRange("minute", minute); - } else if (!validSecond) { - return unitOutOfRange("second", second); - } else if (!validMillisecond) { - return unitOutOfRange("millisecond", millisecond); - } else - return false; -} - -// node_modules/luxon/src/impl/util.js -function isUndefined(o) { - return typeof o === "undefined"; -} -function isNumber(o) { - return typeof o === "number"; -} -function isInteger(o) { - return typeof o === "number" && o % 1 === 0; -} -function isString(o) { - return typeof o === "string"; -} -function isDate(o) { - return Object.prototype.toString.call(o) === "[object Date]"; -} -function hasRelative() { - try { - return typeof Intl !== "undefined" && !!Intl.RelativeTimeFormat; - } catch (e) { - return false; - } -} -function hasLocaleWeekInfo() { - try { - return typeof Intl !== "undefined" && !!Intl.Locale && ("weekInfo" in Intl.Locale.prototype || "getWeekInfo" in Intl.Locale.prototype); - } catch (e) { - return false; - } -} -function maybeArray(thing) { - return Array.isArray(thing) ? thing : [thing]; -} -function bestBy(arr, by, compare) { - if (arr.length === 0) { - return void 0; - } - return arr.reduce((best, next) => { - const pair = [by(next), next]; - if (!best) { - return pair; - } else if (compare(best[0], pair[0]) === best[0]) { - return best; - } else { - return pair; - } - }, null)[1]; -} -function pick(obj, keys) { - return keys.reduce((a, k) => { - a[k] = obj[k]; - return a; - }, {}); -} -function hasOwnProperty(obj, prop) { - return Object.prototype.hasOwnProperty.call(obj, prop); -} -function validateWeekSettings(settings) { - if (settings == null) { - return null; - } else if (typeof settings !== "object") { - throw new InvalidArgumentError("Week settings must be an object"); - } else { - if (!integerBetween(settings.firstDay, 1, 7) || !integerBetween(settings.minimalDays, 1, 7) || !Array.isArray(settings.weekend) || settings.weekend.some((v) => !integerBetween(v, 1, 7))) { - throw new InvalidArgumentError("Invalid week settings"); - } - return { - firstDay: settings.firstDay, - minimalDays: settings.minimalDays, - weekend: Array.from(settings.weekend) - }; - } -} -function integerBetween(thing, bottom, top) { - return isInteger(thing) && thing >= bottom && thing <= top; -} -function floorMod(x, n2) { - return x - n2 * Math.floor(x / n2); -} -function padStart(input, n2 = 2) { - const isNeg = input < 0; - let padded; - if (isNeg) { - padded = "-" + ("" + -input).padStart(n2, "0"); - } else { - padded = ("" + input).padStart(n2, "0"); - } - return padded; -} -function parseInteger(string) { - if (isUndefined(string) || string === null || string === "") { - return void 0; - } else { - return parseInt(string, 10); - } -} -function parseFloating(string) { - if (isUndefined(string) || string === null || string === "") { - return void 0; - } else { - return parseFloat(string); - } -} -function parseMillis(fraction) { - if (isUndefined(fraction) || fraction === null || fraction === "") { - return void 0; - } else { - const f = parseFloat("0." + fraction) * 1e3; - return Math.floor(f); - } -} -function roundTo(number, digits, towardZero = false) { - const factor = 10 ** digits, rounder = towardZero ? Math.trunc : Math.round; - return rounder(number * factor) / factor; -} -function isLeapYear(year) { - return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); -} -function daysInYear(year) { - return isLeapYear(year) ? 366 : 365; -} -function daysInMonth(year, month) { - const modMonth = floorMod(month - 1, 12) + 1, modYear = year + (month - modMonth) / 12; - if (modMonth === 2) { - return isLeapYear(modYear) ? 29 : 28; - } else { - return [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][modMonth - 1]; - } -} -function objToLocalTS(obj) { - let d = Date.UTC( - obj.year, - obj.month - 1, - obj.day, - obj.hour, - obj.minute, - obj.second, - obj.millisecond - ); - if (obj.year < 100 && obj.year >= 0) { - d = new Date(d); - d.setUTCFullYear(obj.year, obj.month - 1, obj.day); - } - return +d; -} -function firstWeekOffset(year, minDaysInFirstWeek, startOfWeek) { - const fwdlw = isoWeekdayToLocal(dayOfWeek(year, 1, minDaysInFirstWeek), startOfWeek); - return -fwdlw + minDaysInFirstWeek - 1; -} -function weeksInWeekYear(weekYear, minDaysInFirstWeek = 4, startOfWeek = 1) { - const weekOffset = firstWeekOffset(weekYear, minDaysInFirstWeek, startOfWeek); - const weekOffsetNext = firstWeekOffset(weekYear + 1, minDaysInFirstWeek, startOfWeek); - return (daysInYear(weekYear) - weekOffset + weekOffsetNext) / 7; -} -function untruncateYear(year) { - if (year > 99) { - return year; - } else - return year > Settings.twoDigitCutoffYear ? 1900 + year : 2e3 + year; -} -function parseZoneInfo(ts, offsetFormat, locale, timeZone = null) { - const date = new Date(ts), intlOpts = { - hourCycle: "h23", - year: "numeric", - month: "2-digit", - day: "2-digit", - hour: "2-digit", - minute: "2-digit" - }; - if (timeZone) { - intlOpts.timeZone = timeZone; - } - const modified = { timeZoneName: offsetFormat, ...intlOpts }; - const parsed = new Intl.DateTimeFormat(locale, modified).formatToParts(date).find((m) => m.type.toLowerCase() === "timezonename"); - return parsed ? parsed.value : null; -} -function signedOffset(offHourStr, offMinuteStr) { - let offHour = parseInt(offHourStr, 10); - if (Number.isNaN(offHour)) { - offHour = 0; - } - const offMin = parseInt(offMinuteStr, 10) || 0, offMinSigned = offHour < 0 || Object.is(offHour, -0) ? -offMin : offMin; - return offHour * 60 + offMinSigned; -} -function asNumber(value) { - const numericValue = Number(value); - if (typeof value === "boolean" || value === "" || Number.isNaN(numericValue)) - throw new InvalidArgumentError(`Invalid unit value ${value}`); - return numericValue; -} -function normalizeObject(obj, normalizer) { - const normalized = {}; - for (const u in obj) { - if (hasOwnProperty(obj, u)) { - const v = obj[u]; - if (v === void 0 || v === null) - continue; - normalized[normalizer(u)] = asNumber(v); - } - } - return normalized; -} -function formatOffset(offset2, format) { - const hours = Math.trunc(Math.abs(offset2 / 60)), minutes = Math.trunc(Math.abs(offset2 % 60)), sign = offset2 >= 0 ? "+" : "-"; - switch (format) { - case "short": - return `${sign}${padStart(hours, 2)}:${padStart(minutes, 2)}`; - case "narrow": - return `${sign}${hours}${minutes > 0 ? `:${minutes}` : ""}`; - case "techie": - return `${sign}${padStart(hours, 2)}${padStart(minutes, 2)}`; - default: - throw new RangeError(`Value format ${format} is out of range for property format`); - } -} -function timeObject(obj) { - return pick(obj, ["hour", "minute", "second", "millisecond"]); -} - -// node_modules/luxon/src/impl/english.js -var monthsLong = [ - "January", - "February", - "March", - "April", - "May", - "June", - "July", - "August", - "September", - "October", - "November", - "December" -]; -var monthsShort = [ - "Jan", - "Feb", - "Mar", - "Apr", - "May", - "Jun", - "Jul", - "Aug", - "Sep", - "Oct", - "Nov", - "Dec" -]; -var monthsNarrow = ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"]; -function months(length) { - switch (length) { - case "narrow": - return [...monthsNarrow]; - case "short": - return [...monthsShort]; - case "long": - return [...monthsLong]; - case "numeric": - return ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"]; - case "2-digit": - return ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"]; - default: - return null; - } -} -var weekdaysLong = [ - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday", - "Sunday" -]; -var weekdaysShort = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]; -var weekdaysNarrow = ["M", "T", "W", "T", "F", "S", "S"]; -function weekdays(length) { - switch (length) { - case "narrow": - return [...weekdaysNarrow]; - case "short": - return [...weekdaysShort]; - case "long": - return [...weekdaysLong]; - case "numeric": - return ["1", "2", "3", "4", "5", "6", "7"]; - default: - return null; - } -} -var meridiems = ["AM", "PM"]; -var erasLong = ["Before Christ", "Anno Domini"]; -var erasShort = ["BC", "AD"]; -var erasNarrow = ["B", "A"]; -function eras(length) { - switch (length) { - case "narrow": - return [...erasNarrow]; - case "short": - return [...erasShort]; - case "long": - return [...erasLong]; - default: - return null; - } -} -function meridiemForDateTime(dt) { - return meridiems[dt.hour < 12 ? 0 : 1]; -} -function weekdayForDateTime(dt, length) { - return weekdays(length)[dt.weekday - 1]; -} -function monthForDateTime(dt, length) { - return months(length)[dt.month - 1]; -} -function eraForDateTime(dt, length) { - return eras(length)[dt.year < 0 ? 0 : 1]; -} -function formatRelativeTime(unit, count, numeric = "always", narrow = false) { - const units = { - years: ["year", "yr."], - quarters: ["quarter", "qtr."], - months: ["month", "mo."], - weeks: ["week", "wk."], - days: ["day", "day", "days"], - hours: ["hour", "hr."], - minutes: ["minute", "min."], - seconds: ["second", "sec."] - }; - const lastable = ["hours", "minutes", "seconds"].indexOf(unit) === -1; - if (numeric === "auto" && lastable) { - const isDay = unit === "days"; - switch (count) { - case 1: - return isDay ? "tomorrow" : `next ${units[unit][0]}`; - case -1: - return isDay ? "yesterday" : `last ${units[unit][0]}`; - case 0: - return isDay ? "today" : `this ${units[unit][0]}`; - default: - } - } - const isInPast = Object.is(count, -0) || count < 0, fmtValue = Math.abs(count), singular = fmtValue === 1, lilUnits = units[unit], fmtUnit = narrow ? singular ? lilUnits[1] : lilUnits[2] || lilUnits[1] : singular ? units[unit][0] : unit; - return isInPast ? `${fmtValue} ${fmtUnit} ago` : `in ${fmtValue} ${fmtUnit}`; -} - -// node_modules/luxon/src/impl/formatter.js -function stringifyTokens(splits, tokenToString) { - let s2 = ""; - for (const token of splits) { - if (token.literal) { - s2 += token.val; - } else { - s2 += tokenToString(token.val); - } - } - return s2; -} -var macroTokenToFormatOpts = { - D: DATE_SHORT, - DD: DATE_MED, - DDD: DATE_FULL, - DDDD: DATE_HUGE, - t: TIME_SIMPLE, - tt: TIME_WITH_SECONDS, - ttt: TIME_WITH_SHORT_OFFSET, - tttt: TIME_WITH_LONG_OFFSET, - T: TIME_24_SIMPLE, - TT: TIME_24_WITH_SECONDS, - TTT: TIME_24_WITH_SHORT_OFFSET, - TTTT: TIME_24_WITH_LONG_OFFSET, - f: DATETIME_SHORT, - ff: DATETIME_MED, - fff: DATETIME_FULL, - ffff: DATETIME_HUGE, - F: DATETIME_SHORT_WITH_SECONDS, - FF: DATETIME_MED_WITH_SECONDS, - FFF: DATETIME_FULL_WITH_SECONDS, - FFFF: DATETIME_HUGE_WITH_SECONDS -}; -var Formatter = class _Formatter { - static create(locale, opts = {}) { - return new _Formatter(locale, opts); - } - static parseFormat(fmt) { - let current = null, currentFull = "", bracketed = false; - const splits = []; - for (let i = 0; i < fmt.length; i++) { - const c = fmt.charAt(i); - if (c === "'") { - if (currentFull.length > 0) { - splits.push({ literal: bracketed || /^\s+$/.test(currentFull), val: currentFull }); - } - current = null; - currentFull = ""; - bracketed = !bracketed; - } else if (bracketed) { - currentFull += c; - } else if (c === current) { - currentFull += c; - } else { - if (currentFull.length > 0) { - splits.push({ literal: /^\s+$/.test(currentFull), val: currentFull }); - } - currentFull = c; - current = c; - } - } - if (currentFull.length > 0) { - splits.push({ literal: bracketed || /^\s+$/.test(currentFull), val: currentFull }); - } - return splits; - } - static macroTokenToFormatOpts(token) { - return macroTokenToFormatOpts[token]; - } - constructor(locale, formatOpts) { - this.opts = formatOpts; - this.loc = locale; - this.systemLoc = null; - } - formatWithSystemDefault(dt, opts) { - if (this.systemLoc === null) { - this.systemLoc = this.loc.redefaultToSystem(); - } - const df = this.systemLoc.dtFormatter(dt, { ...this.opts, ...opts }); - return df.format(); - } - dtFormatter(dt, opts = {}) { - return this.loc.dtFormatter(dt, { ...this.opts, ...opts }); - } - formatDateTime(dt, opts) { - return this.dtFormatter(dt, opts).format(); - } - formatDateTimeParts(dt, opts) { - return this.dtFormatter(dt, opts).formatToParts(); - } - formatInterval(interval, opts) { - const df = this.dtFormatter(interval.start, opts); - return df.dtf.formatRange(interval.start.toJSDate(), interval.end.toJSDate()); - } - resolvedOptions(dt, opts) { - return this.dtFormatter(dt, opts).resolvedOptions(); - } - num(n2, p = 0) { - if (this.opts.forceSimple) { - return padStart(n2, p); - } - const opts = { ...this.opts }; - if (p > 0) { - opts.padTo = p; - } - return this.loc.numberFormatter(opts).format(n2); - } - formatDateTimeFromString(dt, fmt) { - const knownEnglish = this.loc.listingMode() === "en", useDateTimeFormatter = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", string = (opts, extract) => this.loc.extract(dt, opts, extract), formatOffset2 = (opts) => { - if (dt.isOffsetFixed && dt.offset === 0 && opts.allowZ) { - return "Z"; - } - return dt.isValid ? dt.zone.formatOffset(dt.ts, opts.format) : ""; - }, meridiem = () => knownEnglish ? meridiemForDateTime(dt) : string({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), month = (length, standalone) => knownEnglish ? monthForDateTime(dt, length) : string(standalone ? { month: length } : { month: length, day: "numeric" }, "month"), weekday = (length, standalone) => knownEnglish ? weekdayForDateTime(dt, length) : string( - standalone ? { weekday: length } : { weekday: length, month: "long", day: "numeric" }, - "weekday" - ), maybeMacro = (token) => { - const formatOpts = _Formatter.macroTokenToFormatOpts(token); - if (formatOpts) { - return this.formatWithSystemDefault(dt, formatOpts); - } else { - return token; - } - }, era = (length) => knownEnglish ? eraForDateTime(dt, length) : string({ era: length }, "era"), tokenToString = (token) => { - switch (token) { - case "S": - return this.num(dt.millisecond); - case "u": - case "SSS": - return this.num(dt.millisecond, 3); - case "s": - return this.num(dt.second); - case "ss": - return this.num(dt.second, 2); - case "uu": - return this.num(Math.floor(dt.millisecond / 10), 2); - case "uuu": - return this.num(Math.floor(dt.millisecond / 100)); - case "m": - return this.num(dt.minute); - case "mm": - return this.num(dt.minute, 2); - case "h": - return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12); - case "hh": - return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12, 2); - case "H": - return this.num(dt.hour); - case "HH": - return this.num(dt.hour, 2); - case "Z": - return formatOffset2({ format: "narrow", allowZ: this.opts.allowZ }); - case "ZZ": - return formatOffset2({ format: "short", allowZ: this.opts.allowZ }); - case "ZZZ": - return formatOffset2({ format: "techie", allowZ: this.opts.allowZ }); - case "ZZZZ": - return dt.zone.offsetName(dt.ts, { format: "short", locale: this.loc.locale }); - case "ZZZZZ": - return dt.zone.offsetName(dt.ts, { format: "long", locale: this.loc.locale }); - case "z": - return dt.zoneName; - case "a": - return meridiem(); - case "d": - return useDateTimeFormatter ? string({ day: "numeric" }, "day") : this.num(dt.day); - case "dd": - return useDateTimeFormatter ? string({ day: "2-digit" }, "day") : this.num(dt.day, 2); - case "c": - return this.num(dt.weekday); - case "ccc": - return weekday("short", true); - case "cccc": - return weekday("long", true); - case "ccccc": - return weekday("narrow", true); - case "E": - return this.num(dt.weekday); - case "EEE": - return weekday("short", false); - case "EEEE": - return weekday("long", false); - case "EEEEE": - return weekday("narrow", false); - case "L": - return useDateTimeFormatter ? string({ month: "numeric", day: "numeric" }, "month") : this.num(dt.month); - case "LL": - return useDateTimeFormatter ? string({ month: "2-digit", day: "numeric" }, "month") : this.num(dt.month, 2); - case "LLL": - return month("short", true); - case "LLLL": - return month("long", true); - case "LLLLL": - return month("narrow", true); - case "M": - return useDateTimeFormatter ? string({ month: "numeric" }, "month") : this.num(dt.month); - case "MM": - return useDateTimeFormatter ? string({ month: "2-digit" }, "month") : this.num(dt.month, 2); - case "MMM": - return month("short", false); - case "MMMM": - return month("long", false); - case "MMMMM": - return month("narrow", false); - case "y": - return useDateTimeFormatter ? string({ year: "numeric" }, "year") : this.num(dt.year); - case "yy": - return useDateTimeFormatter ? string({ year: "2-digit" }, "year") : this.num(dt.year.toString().slice(-2), 2); - case "yyyy": - return useDateTimeFormatter ? string({ year: "numeric" }, "year") : this.num(dt.year, 4); - case "yyyyyy": - return useDateTimeFormatter ? string({ year: "numeric" }, "year") : this.num(dt.year, 6); - case "G": - return era("short"); - case "GG": - return era("long"); - case "GGGGG": - return era("narrow"); - case "kk": - return this.num(dt.weekYear.toString().slice(-2), 2); - case "kkkk": - return this.num(dt.weekYear, 4); - case "W": - return this.num(dt.weekNumber); - case "WW": - return this.num(dt.weekNumber, 2); - case "n": - return this.num(dt.localWeekNumber); - case "nn": - return this.num(dt.localWeekNumber, 2); - case "ii": - return this.num(dt.localWeekYear.toString().slice(-2), 2); - case "iiii": - return this.num(dt.localWeekYear, 4); - case "o": - return this.num(dt.ordinal); - case "ooo": - return this.num(dt.ordinal, 3); - case "q": - return this.num(dt.quarter); - case "qq": - return this.num(dt.quarter, 2); - case "X": - return this.num(Math.floor(dt.ts / 1e3)); - case "x": - return this.num(dt.ts); - default: - return maybeMacro(token); - } - }; - return stringifyTokens(_Formatter.parseFormat(fmt), tokenToString); - } - formatDurationFromString(dur, fmt) { - const tokenToField = (token) => { - switch (token[0]) { - case "S": - return "millisecond"; - case "s": - return "second"; - case "m": - return "minute"; - case "h": - return "hour"; - case "d": - return "day"; - case "w": - return "week"; - case "M": - return "month"; - case "y": - return "year"; - default: - return null; - } - }, tokenToString = (lildur) => (token) => { - const mapped = tokenToField(token); - if (mapped) { - return this.num(lildur.get(mapped), token.length); - } else { - return token; - } - }, tokens = _Formatter.parseFormat(fmt), realTokens = tokens.reduce( - (found, { literal, val }) => literal ? found : found.concat(val), - [] - ), collapsed = dur.shiftTo(...realTokens.map(tokenToField).filter((t) => t)); - return stringifyTokens(tokens, tokenToString(collapsed)); - } -}; - -// node_modules/luxon/src/impl/regexParser.js -var ianaRegex = /[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/; -function combineRegexes(...regexes) { - const full = regexes.reduce((f, r) => f + r.source, ""); - return RegExp(`^${full}$`); -} -function combineExtractors(...extractors) { - return (m) => extractors.reduce( - ([mergedVals, mergedZone, cursor], ex) => { - const [val, zone, next] = ex(m, cursor); - return [{ ...mergedVals, ...val }, zone || mergedZone, next]; - }, - [{}, null, 1] - ).slice(0, 2); -} -function parse(s2, ...patterns) { - if (s2 == null) { - return [null, null]; - } - for (const [regex2, extractor] of patterns) { - const m = regex2.exec(s2); - if (m) { - return extractor(m); - } - } - return [null, null]; -} -function simpleParse(...keys) { - return (match2, cursor) => { - const ret = {}; - let i; - for (i = 0; i < keys.length; i++) { - ret[keys[i]] = parseInteger(match2[cursor + i]); - } - return [ret, null, cursor + i]; - }; -} -var offsetRegex = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/; -var isoExtendedZone = `(?:${offsetRegex.source}?(?:\\[(${ianaRegex.source})\\])?)?`; -var isoTimeBaseRegex = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/; -var isoTimeRegex = RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`); -var isoTimeExtensionRegex = RegExp(`(?:T${isoTimeRegex.source})?`); -var isoYmdRegex = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/; -var isoWeekRegex = /(\d{4})-?W(\d\d)(?:-?(\d))?/; -var isoOrdinalRegex = /(\d{4})-?(\d{3})/; -var extractISOWeekData = simpleParse("weekYear", "weekNumber", "weekDay"); -var extractISOOrdinalData = simpleParse("year", "ordinal"); -var sqlYmdRegex = /(\d{4})-(\d\d)-(\d\d)/; -var sqlTimeRegex = RegExp( - `${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?` -); -var sqlTimeExtensionRegex = RegExp(`(?: ${sqlTimeRegex.source})?`); -function int(match2, pos, fallback) { - const m = match2[pos]; - return isUndefined(m) ? fallback : parseInteger(m); -} -function extractISOYmd(match2, cursor) { - const item = { - year: int(match2, cursor), - month: int(match2, cursor + 1, 1), - day: int(match2, cursor + 2, 1) - }; - return [item, null, cursor + 3]; -} -function extractISOTime(match2, cursor) { - const item = { - hours: int(match2, cursor, 0), - minutes: int(match2, cursor + 1, 0), - seconds: int(match2, cursor + 2, 0), - milliseconds: parseMillis(match2[cursor + 3]) - }; - return [item, null, cursor + 4]; -} -function extractISOOffset(match2, cursor) { - const local = !match2[cursor] && !match2[cursor + 1], fullOffset = signedOffset(match2[cursor + 1], match2[cursor + 2]), zone = local ? null : FixedOffsetZone.instance(fullOffset); - return [{}, zone, cursor + 3]; -} -function extractIANAZone(match2, cursor) { - const zone = match2[cursor] ? IANAZone.create(match2[cursor]) : null; - return [{}, zone, cursor + 1]; -} -var isoTimeOnly = RegExp(`^T?${isoTimeBaseRegex.source}$`); -var isoDuration = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/; -function extractISODuration(match2) { - const [s2, yearStr, monthStr, weekStr, dayStr, hourStr, minuteStr, secondStr, millisecondsStr] = match2; - const hasNegativePrefix = s2[0] === "-"; - const negativeSeconds = secondStr && secondStr[0] === "-"; - const maybeNegate = (num, force = false) => num !== void 0 && (force || num && hasNegativePrefix) ? -num : num; - return [ - { - years: maybeNegate(parseFloating(yearStr)), - months: maybeNegate(parseFloating(monthStr)), - weeks: maybeNegate(parseFloating(weekStr)), - days: maybeNegate(parseFloating(dayStr)), - hours: maybeNegate(parseFloating(hourStr)), - minutes: maybeNegate(parseFloating(minuteStr)), - seconds: maybeNegate(parseFloating(secondStr), secondStr === "-0"), - milliseconds: maybeNegate(parseMillis(millisecondsStr), negativeSeconds) - } - ]; -} -var obsOffsets = { - GMT: 0, - EDT: -4 * 60, - EST: -5 * 60, - CDT: -5 * 60, - CST: -6 * 60, - MDT: -6 * 60, - MST: -7 * 60, - PDT: -7 * 60, - PST: -8 * 60 -}; -function fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) { - const result = { - year: yearStr.length === 2 ? untruncateYear(parseInteger(yearStr)) : parseInteger(yearStr), - month: monthsShort.indexOf(monthStr) + 1, - day: parseInteger(dayStr), - hour: parseInteger(hourStr), - minute: parseInteger(minuteStr) - }; - if (secondStr) - result.second = parseInteger(secondStr); - if (weekdayStr) { - result.weekday = weekdayStr.length > 3 ? weekdaysLong.indexOf(weekdayStr) + 1 : weekdaysShort.indexOf(weekdayStr) + 1; - } - return result; -} -var rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/; -function extractRFC2822(match2) { - const [ - , - weekdayStr, - dayStr, - monthStr, - yearStr, - hourStr, - minuteStr, - secondStr, - obsOffset, - milOffset, - offHourStr, - offMinuteStr - ] = match2, result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr); - let offset2; - if (obsOffset) { - offset2 = obsOffsets[obsOffset]; - } else if (milOffset) { - offset2 = 0; - } else { - offset2 = signedOffset(offHourStr, offMinuteStr); - } - return [result, new FixedOffsetZone(offset2)]; -} -function preprocessRFC2822(s2) { - return s2.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim(); -} -var rfc1123 = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/; -var rfc850 = /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/; -var ascii = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/; -function extractRFC1123Or850(match2) { - const [, weekdayStr, dayStr, monthStr, yearStr, hourStr, minuteStr, secondStr] = match2, result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr); - return [result, FixedOffsetZone.utcInstance]; -} -function extractASCII(match2) { - const [, weekdayStr, monthStr, dayStr, hourStr, minuteStr, secondStr, yearStr] = match2, result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr); - return [result, FixedOffsetZone.utcInstance]; -} -var isoYmdWithTimeExtensionRegex = combineRegexes(isoYmdRegex, isoTimeExtensionRegex); -var isoWeekWithTimeExtensionRegex = combineRegexes(isoWeekRegex, isoTimeExtensionRegex); -var isoOrdinalWithTimeExtensionRegex = combineRegexes(isoOrdinalRegex, isoTimeExtensionRegex); -var isoTimeCombinedRegex = combineRegexes(isoTimeRegex); -var extractISOYmdTimeAndOffset = combineExtractors( - extractISOYmd, - extractISOTime, - extractISOOffset, - extractIANAZone -); -var extractISOWeekTimeAndOffset = combineExtractors( - extractISOWeekData, - extractISOTime, - extractISOOffset, - extractIANAZone -); -var extractISOOrdinalDateAndTime = combineExtractors( - extractISOOrdinalData, - extractISOTime, - extractISOOffset, - extractIANAZone -); -var extractISOTimeAndOffset = combineExtractors( - extractISOTime, - extractISOOffset, - extractIANAZone -); -function parseISODate(s2) { - return parse( - s2, - [isoYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset], - [isoWeekWithTimeExtensionRegex, extractISOWeekTimeAndOffset], - [isoOrdinalWithTimeExtensionRegex, extractISOOrdinalDateAndTime], - [isoTimeCombinedRegex, extractISOTimeAndOffset] - ); -} -function parseRFC2822Date(s2) { - return parse(preprocessRFC2822(s2), [rfc2822, extractRFC2822]); -} -function parseHTTPDate(s2) { - return parse( - s2, - [rfc1123, extractRFC1123Or850], - [rfc850, extractRFC1123Or850], - [ascii, extractASCII] - ); -} -function parseISODuration(s2) { - return parse(s2, [isoDuration, extractISODuration]); -} -var extractISOTimeOnly = combineExtractors(extractISOTime); -function parseISOTimeOnly(s2) { - return parse(s2, [isoTimeOnly, extractISOTimeOnly]); -} -var sqlYmdWithTimeExtensionRegex = combineRegexes(sqlYmdRegex, sqlTimeExtensionRegex); -var sqlTimeCombinedRegex = combineRegexes(sqlTimeRegex); -var extractISOTimeOffsetAndIANAZone = combineExtractors( - extractISOTime, - extractISOOffset, - extractIANAZone -); -function parseSQL(s2) { - return parse( - s2, - [sqlYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset], - [sqlTimeCombinedRegex, extractISOTimeOffsetAndIANAZone] - ); -} - -// node_modules/luxon/src/duration.js -var INVALID2 = "Invalid Duration"; -var lowOrderMatrix = { - weeks: { - days: 7, - hours: 7 * 24, - minutes: 7 * 24 * 60, - seconds: 7 * 24 * 60 * 60, - milliseconds: 7 * 24 * 60 * 60 * 1e3 - }, - days: { - hours: 24, - minutes: 24 * 60, - seconds: 24 * 60 * 60, - milliseconds: 24 * 60 * 60 * 1e3 - }, - hours: { minutes: 60, seconds: 60 * 60, milliseconds: 60 * 60 * 1e3 }, - minutes: { seconds: 60, milliseconds: 60 * 1e3 }, - seconds: { milliseconds: 1e3 } -}; -var casualMatrix = { - years: { - quarters: 4, - months: 12, - weeks: 52, - days: 365, - hours: 365 * 24, - minutes: 365 * 24 * 60, - seconds: 365 * 24 * 60 * 60, - milliseconds: 365 * 24 * 60 * 60 * 1e3 - }, - quarters: { - months: 3, - weeks: 13, - days: 91, - hours: 91 * 24, - minutes: 91 * 24 * 60, - seconds: 91 * 24 * 60 * 60, - milliseconds: 91 * 24 * 60 * 60 * 1e3 - }, - months: { - weeks: 4, - days: 30, - hours: 30 * 24, - minutes: 30 * 24 * 60, - seconds: 30 * 24 * 60 * 60, - milliseconds: 30 * 24 * 60 * 60 * 1e3 - }, - ...lowOrderMatrix -}; -var daysInYearAccurate = 146097 / 400; -var daysInMonthAccurate = 146097 / 4800; -var accurateMatrix = { - years: { - quarters: 4, - months: 12, - weeks: daysInYearAccurate / 7, - days: daysInYearAccurate, - hours: daysInYearAccurate * 24, - minutes: daysInYearAccurate * 24 * 60, - seconds: daysInYearAccurate * 24 * 60 * 60, - milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1e3 - }, - quarters: { - months: 3, - weeks: daysInYearAccurate / 28, - days: daysInYearAccurate / 4, - hours: daysInYearAccurate * 24 / 4, - minutes: daysInYearAccurate * 24 * 60 / 4, - seconds: daysInYearAccurate * 24 * 60 * 60 / 4, - milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1e3 / 4 - }, - months: { - weeks: daysInMonthAccurate / 7, - days: daysInMonthAccurate, - hours: daysInMonthAccurate * 24, - minutes: daysInMonthAccurate * 24 * 60, - seconds: daysInMonthAccurate * 24 * 60 * 60, - milliseconds: daysInMonthAccurate * 24 * 60 * 60 * 1e3 - }, - ...lowOrderMatrix -}; -var orderedUnits = [ - "years", - "quarters", - "months", - "weeks", - "days", - "hours", - "minutes", - "seconds", - "milliseconds" -]; -var reverseUnits = orderedUnits.slice(0).reverse(); -function clone(dur, alts, clear = false) { - const conf = { - values: clear ? alts.values : { ...dur.values, ...alts.values || {} }, - loc: dur.loc.clone(alts.loc), - conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy, - matrix: alts.matrix || dur.matrix - }; - return new Duration(conf); -} -function durationToMillis(matrix, vals) { - var _a; - let sum = (_a = vals.milliseconds) != null ? _a : 0; - for (const unit of reverseUnits.slice(1)) { - if (vals[unit]) { - sum += vals[unit] * matrix[unit]["milliseconds"]; - } - } - return sum; -} -function normalizeValues(matrix, vals) { - const factor = durationToMillis(matrix, vals) < 0 ? -1 : 1; - orderedUnits.reduceRight((previous, current) => { - if (!isUndefined(vals[current])) { - if (previous) { - const previousVal = vals[previous] * factor; - const conv = matrix[current][previous]; - const rollUp = Math.floor(previousVal / conv); - vals[current] += rollUp * factor; - vals[previous] -= rollUp * conv * factor; - } - return current; - } else { - return previous; - } - }, null); - orderedUnits.reduce((previous, current) => { - if (!isUndefined(vals[current])) { - if (previous) { - const fraction = vals[previous] % 1; - vals[previous] -= fraction; - vals[current] += fraction * matrix[previous][current]; - } - return current; - } else { - return previous; - } - }, null); -} -function removeZeroes(vals) { - const newVals = {}; - for (const [key, value] of Object.entries(vals)) { - if (value !== 0) { - newVals[key] = value; - } - } - return newVals; -} -var Duration = class _Duration { - /** - * @private - */ - constructor(config) { - const accurate = config.conversionAccuracy === "longterm" || false; - let matrix = accurate ? accurateMatrix : casualMatrix; - if (config.matrix) { - matrix = config.matrix; - } - this.values = config.values; - this.loc = config.loc || Locale.create(); - this.conversionAccuracy = accurate ? "longterm" : "casual"; - this.invalid = config.invalid || null; - this.matrix = matrix; - this.isLuxonDuration = true; - } - /** - * Create Duration from a number of milliseconds. - * @param {number} count of milliseconds - * @param {Object} opts - options for parsing - * @param {string} [opts.locale='en-US'] - the locale to use - * @param {string} opts.numberingSystem - the numbering system to use - * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use - * @return {Duration} - */ - static fromMillis(count, opts) { - return _Duration.fromObject({ milliseconds: count }, opts); - } - /** - * Create a Duration from a JavaScript object with keys like 'years' and 'hours'. - * If this object is empty then a zero milliseconds duration is returned. - * @param {Object} obj - the object to create the DateTime from - * @param {number} obj.years - * @param {number} obj.quarters - * @param {number} obj.months - * @param {number} obj.weeks - * @param {number} obj.days - * @param {number} obj.hours - * @param {number} obj.minutes - * @param {number} obj.seconds - * @param {number} obj.milliseconds - * @param {Object} [opts=[]] - options for creating this Duration - * @param {string} [opts.locale='en-US'] - the locale to use - * @param {string} opts.numberingSystem - the numbering system to use - * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use - * @param {string} [opts.matrix=Object] - the custom conversion system to use - * @return {Duration} - */ - static fromObject(obj, opts = {}) { - if (obj == null || typeof obj !== "object") { - throw new InvalidArgumentError( - `Duration.fromObject: argument expected to be an object, got ${obj === null ? "null" : typeof obj}` - ); - } - return new _Duration({ - values: normalizeObject(obj, _Duration.normalizeUnit), - loc: Locale.fromObject(opts), - conversionAccuracy: opts.conversionAccuracy, - matrix: opts.matrix - }); - } - /** - * Create a Duration from DurationLike. - * - * @param {Object | number | Duration} durationLike - * One of: - * - object with keys like 'years' and 'hours'. - * - number representing milliseconds - * - Duration instance - * @return {Duration} - */ - static fromDurationLike(durationLike) { - if (isNumber(durationLike)) { - return _Duration.fromMillis(durationLike); - } else if (_Duration.isDuration(durationLike)) { - return durationLike; - } else if (typeof durationLike === "object") { - return _Duration.fromObject(durationLike); - } else { - throw new InvalidArgumentError( - `Unknown duration argument ${durationLike} of type ${typeof durationLike}` - ); - } - } - /** - * Create a Duration from an ISO 8601 duration string. - * @param {string} text - text to parse - * @param {Object} opts - options for parsing - * @param {string} [opts.locale='en-US'] - the locale to use - * @param {string} opts.numberingSystem - the numbering system to use - * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use - * @param {string} [opts.matrix=Object] - the preset conversion system to use - * @see https://en.wikipedia.org/wiki/ISO_8601#Durations - * @example Duration.fromISO('P3Y6M1W4DT12H30M5S').toObject() //=> { years: 3, months: 6, weeks: 1, days: 4, hours: 12, minutes: 30, seconds: 5 } - * @example Duration.fromISO('PT23H').toObject() //=> { hours: 23 } - * @example Duration.fromISO('P5Y3M').toObject() //=> { years: 5, months: 3 } - * @return {Duration} - */ - static fromISO(text2, opts) { - const [parsed] = parseISODuration(text2); - if (parsed) { - return _Duration.fromObject(parsed, opts); - } else { - return _Duration.invalid("unparsable", `the input "${text2}" can't be parsed as ISO 8601`); - } - } - /** - * Create a Duration from an ISO 8601 time string. - * @param {string} text - text to parse - * @param {Object} opts - options for parsing - * @param {string} [opts.locale='en-US'] - the locale to use - * @param {string} opts.numberingSystem - the numbering system to use - * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use - * @param {string} [opts.matrix=Object] - the conversion system to use - * @see https://en.wikipedia.org/wiki/ISO_8601#Times - * @example Duration.fromISOTime('11:22:33.444').toObject() //=> { hours: 11, minutes: 22, seconds: 33, milliseconds: 444 } - * @example Duration.fromISOTime('11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 } - * @example Duration.fromISOTime('T11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 } - * @example Duration.fromISOTime('1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 } - * @example Duration.fromISOTime('T1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 } - * @return {Duration} - */ - static fromISOTime(text2, opts) { - const [parsed] = parseISOTimeOnly(text2); - if (parsed) { - return _Duration.fromObject(parsed, opts); - } else { - return _Duration.invalid("unparsable", `the input "${text2}" can't be parsed as ISO 8601`); - } - } - /** - * Create an invalid Duration. - * @param {string} reason - simple string of why this datetime is invalid. Should not contain parameters or anything else data-dependent - * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information - * @return {Duration} - */ - static invalid(reason, explanation = null) { - if (!reason) { - throw new InvalidArgumentError("need to specify a reason the Duration is invalid"); - } - const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation); - if (Settings.throwOnInvalid) { - throw new InvalidDurationError(invalid); - } else { - return new _Duration({ invalid }); - } - } - /** - * @private - */ - static normalizeUnit(unit) { - const normalized = { - year: "years", - years: "years", - quarter: "quarters", - quarters: "quarters", - month: "months", - months: "months", - week: "weeks", - weeks: "weeks", - day: "days", - days: "days", - hour: "hours", - hours: "hours", - minute: "minutes", - minutes: "minutes", - second: "seconds", - seconds: "seconds", - millisecond: "milliseconds", - milliseconds: "milliseconds" - }[unit ? unit.toLowerCase() : unit]; - if (!normalized) - throw new InvalidUnitError(unit); - return normalized; - } - /** - * Check if an object is a Duration. Works across context boundaries - * @param {object} o - * @return {boolean} - */ - static isDuration(o) { - return o && o.isLuxonDuration || false; - } - /** - * Get the locale of a Duration, such 'en-GB' - * @type {string} - */ - get locale() { - return this.isValid ? this.loc.locale : null; - } - /** - * Get the numbering system of a Duration, such 'beng'. The numbering system is used when formatting the Duration - * - * @type {string} - */ - get numberingSystem() { - return this.isValid ? this.loc.numberingSystem : null; - } - /** - * Returns a string representation of this Duration formatted according to the specified format string. You may use these tokens: - * * `S` for milliseconds - * * `s` for seconds - * * `m` for minutes - * * `h` for hours - * * `d` for days - * * `w` for weeks - * * `M` for months - * * `y` for years - * Notes: - * * Add padding by repeating the token, e.g. "yy" pads the years to two digits, "hhhh" pads the hours out to four digits - * * Tokens can be escaped by wrapping with single quotes. - * * The duration will be converted to the set of units in the format string using {@link Duration#shiftTo} and the Durations's conversion accuracy setting. - * @param {string} fmt - the format string - * @param {Object} opts - options - * @param {boolean} [opts.floor=true] - floor numerical values - * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat("y d s") //=> "1 6 2" - * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat("yy dd sss") //=> "01 06 002" - * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat("M S") //=> "12 518402000" - * @return {string} - */ - toFormat(fmt, opts = {}) { - const fmtOpts = { - ...opts, - floor: opts.round !== false && opts.floor !== false - }; - return this.isValid ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt) : INVALID2; - } - /** - * Returns a string representation of a Duration with all units included. - * To modify its behavior, use `listStyle` and any Intl.NumberFormat option, though `unitDisplay` is especially relevant. - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#options - * @param {Object} opts - Formatting options. Accepts the same keys as the options parameter of the native `Intl.NumberFormat` constructor, as well as `listStyle`. - * @param {string} [opts.listStyle='narrow'] - How to format the merged list. Corresponds to the `style` property of the options parameter of the native `Intl.ListFormat` constructor. - * @example - * ```js - * var dur = Duration.fromObject({ days: 1, hours: 5, minutes: 6 }) - * dur.toHuman() //=> '1 day, 5 hours, 6 minutes' - * dur.toHuman({ listStyle: "long" }) //=> '1 day, 5 hours, and 6 minutes' - * dur.toHuman({ unitDisplay: "short" }) //=> '1 day, 5 hr, 6 min' - * ``` - */ - toHuman(opts = {}) { - if (!this.isValid) - return INVALID2; - const l2 = orderedUnits.map((unit) => { - const val = this.values[unit]; - if (isUndefined(val)) { - return null; - } - return this.loc.numberFormatter({ style: "unit", unitDisplay: "long", ...opts, unit: unit.slice(0, -1) }).format(val); - }).filter((n2) => n2); - return this.loc.listFormatter({ type: "conjunction", style: opts.listStyle || "narrow", ...opts }).format(l2); - } - /** - * Returns a JavaScript object with this Duration's values. - * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toObject() //=> { years: 1, days: 6, seconds: 2 } - * @return {Object} - */ - toObject() { - if (!this.isValid) - return {}; - return { ...this.values }; - } - /** - * Returns an ISO 8601-compliant string representation of this Duration. - * @see https://en.wikipedia.org/wiki/ISO_8601#Durations - * @example Duration.fromObject({ years: 3, seconds: 45 }).toISO() //=> 'P3YT45S' - * @example Duration.fromObject({ months: 4, seconds: 45 }).toISO() //=> 'P4MT45S' - * @example Duration.fromObject({ months: 5 }).toISO() //=> 'P5M' - * @example Duration.fromObject({ minutes: 5 }).toISO() //=> 'PT5M' - * @example Duration.fromObject({ milliseconds: 6 }).toISO() //=> 'PT0.006S' - * @return {string} - */ - toISO() { - if (!this.isValid) - return null; - let s2 = "P"; - if (this.years !== 0) - s2 += this.years + "Y"; - if (this.months !== 0 || this.quarters !== 0) - s2 += this.months + this.quarters * 3 + "M"; - if (this.weeks !== 0) - s2 += this.weeks + "W"; - if (this.days !== 0) - s2 += this.days + "D"; - if (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) - s2 += "T"; - if (this.hours !== 0) - s2 += this.hours + "H"; - if (this.minutes !== 0) - s2 += this.minutes + "M"; - if (this.seconds !== 0 || this.milliseconds !== 0) - s2 += roundTo(this.seconds + this.milliseconds / 1e3, 3) + "S"; - if (s2 === "P") - s2 += "T0S"; - return s2; - } - /** - * Returns an ISO 8601-compliant string representation of this Duration, formatted as a time of day. - * Note that this will return null if the duration is invalid, negative, or equal to or greater than 24 hours. - * @see https://en.wikipedia.org/wiki/ISO_8601#Times - * @param {Object} opts - options - * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0 - * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0 - * @param {boolean} [opts.includePrefix=false] - include the `T` prefix - * @param {string} [opts.format='extended'] - choose between the basic and extended format - * @example Duration.fromObject({ hours: 11 }).toISOTime() //=> '11:00:00.000' - * @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressMilliseconds: true }) //=> '11:00:00' - * @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressSeconds: true }) //=> '11:00' - * @example Duration.fromObject({ hours: 11 }).toISOTime({ includePrefix: true }) //=> 'T11:00:00.000' - * @example Duration.fromObject({ hours: 11 }).toISOTime({ format: 'basic' }) //=> '110000.000' - * @return {string} - */ - toISOTime(opts = {}) { - if (!this.isValid) - return null; - const millis = this.toMillis(); - if (millis < 0 || millis >= 864e5) - return null; - opts = { - suppressMilliseconds: false, - suppressSeconds: false, - includePrefix: false, - format: "extended", - ...opts, - includeOffset: false - }; - const dateTime = DateTime.fromMillis(millis, { zone: "UTC" }); - return dateTime.toISOTime(opts); - } - /** - * Returns an ISO 8601 representation of this Duration appropriate for use in JSON. - * @return {string} - */ - toJSON() { - return this.toISO(); - } - /** - * Returns an ISO 8601 representation of this Duration appropriate for use in debugging. - * @return {string} - */ - toString() { - return this.toISO(); - } - /** - * Returns a string representation of this Duration appropriate for the REPL. - * @return {string} - */ - [Symbol.for("nodejs.util.inspect.custom")]() { - if (this.isValid) { - return `Duration { values: ${JSON.stringify(this.values)} }`; - } else { - return `Duration { Invalid, reason: ${this.invalidReason} }`; - } - } - /** - * Returns an milliseconds value of this Duration. - * @return {number} - */ - toMillis() { - if (!this.isValid) - return NaN; - return durationToMillis(this.matrix, this.values); - } - /** - * Returns an milliseconds value of this Duration. Alias of {@link toMillis} - * @return {number} - */ - valueOf() { - return this.toMillis(); - } - /** - * Make this Duration longer by the specified amount. Return a newly-constructed Duration. - * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject() - * @return {Duration} - */ - plus(duration) { - if (!this.isValid) - return this; - const dur = _Duration.fromDurationLike(duration), result = {}; - for (const k of orderedUnits) { - if (hasOwnProperty(dur.values, k) || hasOwnProperty(this.values, k)) { - result[k] = dur.get(k) + this.get(k); - } - } - return clone(this, { values: result }, true); - } - /** - * Make this Duration shorter by the specified amount. Return a newly-constructed Duration. - * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject() - * @return {Duration} - */ - minus(duration) { - if (!this.isValid) - return this; - const dur = _Duration.fromDurationLike(duration); - return this.plus(dur.negate()); - } - /** - * Scale this Duration by the specified amount. Return a newly-constructed Duration. - * @param {function} fn - The function to apply to each unit. Arity is 1 or 2: the value of the unit and, optionally, the unit name. Must return a number. - * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits(x => x * 2) //=> { hours: 2, minutes: 60 } - * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits((x, u) => u === "hours" ? x * 2 : x) //=> { hours: 2, minutes: 30 } - * @return {Duration} - */ - mapUnits(fn) { - if (!this.isValid) - return this; - const result = {}; - for (const k of Object.keys(this.values)) { - result[k] = asNumber(fn(this.values[k], k)); - } - return clone(this, { values: result }, true); - } - /** - * Get the value of unit. - * @param {string} unit - a unit such as 'minute' or 'day' - * @example Duration.fromObject({years: 2, days: 3}).get('years') //=> 2 - * @example Duration.fromObject({years: 2, days: 3}).get('months') //=> 0 - * @example Duration.fromObject({years: 2, days: 3}).get('days') //=> 3 - * @return {number} - */ - get(unit) { - return this[_Duration.normalizeUnit(unit)]; - } - /** - * "Set" the values of specified units. Return a newly-constructed Duration. - * @param {Object} values - a mapping of units to numbers - * @example dur.set({ years: 2017 }) - * @example dur.set({ hours: 8, minutes: 30 }) - * @return {Duration} - */ - set(values) { - if (!this.isValid) - return this; - const mixed = { ...this.values, ...normalizeObject(values, _Duration.normalizeUnit) }; - return clone(this, { values: mixed }); - } - /** - * "Set" the locale and/or numberingSystem. Returns a newly-constructed Duration. - * @example dur.reconfigure({ locale: 'en-GB' }) - * @return {Duration} - */ - reconfigure({ locale, numberingSystem, conversionAccuracy, matrix } = {}) { - const loc = this.loc.clone({ locale, numberingSystem }); - const opts = { loc, matrix, conversionAccuracy }; - return clone(this, opts); - } - /** - * Return the length of the duration in the specified unit. - * @param {string} unit - a unit such as 'minutes' or 'days' - * @example Duration.fromObject({years: 1}).as('days') //=> 365 - * @example Duration.fromObject({years: 1}).as('months') //=> 12 - * @example Duration.fromObject({hours: 60}).as('days') //=> 2.5 - * @return {number} - */ - as(unit) { - return this.isValid ? this.shiftTo(unit).get(unit) : NaN; - } - /** - * Reduce this Duration to its canonical representation in its current units. - * Assuming the overall value of the Duration is positive, this means: - * - excessive values for lower-order units are converted to higher-order units (if possible, see first and second example) - * - negative lower-order units are converted to higher order units (there must be such a higher order unit, otherwise - * the overall value would be negative, see third example) - * - fractional values for higher-order units are converted to lower-order units (if possible, see fourth example) - * - * If the overall value is negative, the result of this method is equivalent to `this.negate().normalize().negate()`. - * @example Duration.fromObject({ years: 2, days: 5000 }).normalize().toObject() //=> { years: 15, days: 255 } - * @example Duration.fromObject({ days: 5000 }).normalize().toObject() //=> { days: 5000 } - * @example Duration.fromObject({ hours: 12, minutes: -45 }).normalize().toObject() //=> { hours: 11, minutes: 15 } - * @example Duration.fromObject({ years: 2.5, days: 0, hours: 0 }).normalize().toObject() //=> { years: 2, days: 182, hours: 12 } - * @return {Duration} - */ - normalize() { - if (!this.isValid) - return this; - const vals = this.toObject(); - normalizeValues(this.matrix, vals); - return clone(this, { values: vals }, true); - } - /** - * Rescale units to its largest representation - * @example Duration.fromObject({ milliseconds: 90000 }).rescale().toObject() //=> { minutes: 1, seconds: 30 } - * @return {Duration} - */ - rescale() { - if (!this.isValid) - return this; - const vals = removeZeroes(this.normalize().shiftToAll().toObject()); - return clone(this, { values: vals }, true); - } - /** - * Convert this Duration into its representation in a different set of units. - * @example Duration.fromObject({ hours: 1, seconds: 30 }).shiftTo('minutes', 'milliseconds').toObject() //=> { minutes: 60, milliseconds: 30000 } - * @return {Duration} - */ - shiftTo(...units) { - if (!this.isValid) - return this; - if (units.length === 0) { - return this; - } - units = units.map((u) => _Duration.normalizeUnit(u)); - const built = {}, accumulated = {}, vals = this.toObject(); - let lastUnit; - for (const k of orderedUnits) { - if (units.indexOf(k) >= 0) { - lastUnit = k; - let own = 0; - for (const ak in accumulated) { - own += this.matrix[ak][k] * accumulated[ak]; - accumulated[ak] = 0; - } - if (isNumber(vals[k])) { - own += vals[k]; - } - const i = Math.trunc(own); - built[k] = i; - accumulated[k] = (own * 1e3 - i * 1e3) / 1e3; - } else if (isNumber(vals[k])) { - accumulated[k] = vals[k]; - } - } - for (const key in accumulated) { - if (accumulated[key] !== 0) { - built[lastUnit] += key === lastUnit ? accumulated[key] : accumulated[key] / this.matrix[lastUnit][key]; - } - } - normalizeValues(this.matrix, built); - return clone(this, { values: built }, true); - } - /** - * Shift this Duration to all available units. - * Same as shiftTo("years", "months", "weeks", "days", "hours", "minutes", "seconds", "milliseconds") - * @return {Duration} - */ - shiftToAll() { - if (!this.isValid) - return this; - return this.shiftTo( - "years", - "months", - "weeks", - "days", - "hours", - "minutes", - "seconds", - "milliseconds" - ); - } - /** - * Return the negative of this Duration. - * @example Duration.fromObject({ hours: 1, seconds: 30 }).negate().toObject() //=> { hours: -1, seconds: -30 } - * @return {Duration} - */ - negate() { - if (!this.isValid) - return this; - const negated = {}; - for (const k of Object.keys(this.values)) { - negated[k] = this.values[k] === 0 ? 0 : -this.values[k]; - } - return clone(this, { values: negated }, true); - } - /** - * Get the years. - * @type {number} - */ - get years() { - return this.isValid ? this.values.years || 0 : NaN; - } - /** - * Get the quarters. - * @type {number} - */ - get quarters() { - return this.isValid ? this.values.quarters || 0 : NaN; - } - /** - * Get the months. - * @type {number} - */ - get months() { - return this.isValid ? this.values.months || 0 : NaN; - } - /** - * Get the weeks - * @type {number} - */ - get weeks() { - return this.isValid ? this.values.weeks || 0 : NaN; - } - /** - * Get the days. - * @type {number} - */ - get days() { - return this.isValid ? this.values.days || 0 : NaN; - } - /** - * Get the hours. - * @type {number} - */ - get hours() { - return this.isValid ? this.values.hours || 0 : NaN; - } - /** - * Get the minutes. - * @type {number} - */ - get minutes() { - return this.isValid ? this.values.minutes || 0 : NaN; - } - /** - * Get the seconds. - * @return {number} - */ - get seconds() { - return this.isValid ? this.values.seconds || 0 : NaN; - } - /** - * Get the milliseconds. - * @return {number} - */ - get milliseconds() { - return this.isValid ? this.values.milliseconds || 0 : NaN; - } - /** - * Returns whether the Duration is invalid. Invalid durations are returned by diff operations - * on invalid DateTimes or Intervals. - * @return {boolean} - */ - get isValid() { - return this.invalid === null; - } - /** - * Returns an error code if this Duration became invalid, or null if the Duration is valid - * @return {string} - */ - get invalidReason() { - return this.invalid ? this.invalid.reason : null; - } - /** - * Returns an explanation of why this Duration became invalid, or null if the Duration is valid - * @type {string} - */ - get invalidExplanation() { - return this.invalid ? this.invalid.explanation : null; - } - /** - * Equality check - * Two Durations are equal iff they have the same units and the same values for each unit. - * @param {Duration} other - * @return {boolean} - */ - equals(other) { - if (!this.isValid || !other.isValid) { - return false; - } - if (!this.loc.equals(other.loc)) { - return false; - } - function eq(v1, v2) { - if (v1 === void 0 || v1 === 0) - return v2 === void 0 || v2 === 0; - return v1 === v2; - } - for (const u of orderedUnits) { - if (!eq(this.values[u], other.values[u])) { - return false; - } - } - return true; - } -}; - -// node_modules/luxon/src/interval.js -var INVALID3 = "Invalid Interval"; -function validateStartEnd(start, end) { - if (!start || !start.isValid) { - return Interval.invalid("missing or invalid start"); - } else if (!end || !end.isValid) { - return Interval.invalid("missing or invalid end"); - } else if (end < start) { - return Interval.invalid( - "end before start", - `The end of an interval must be after its start, but you had start=${start.toISO()} and end=${end.toISO()}` - ); - } else { - return null; - } -} -var Interval = class _Interval { - /** - * @private - */ - constructor(config) { - this.s = config.start; - this.e = config.end; - this.invalid = config.invalid || null; - this.isLuxonInterval = true; - } - /** - * Create an invalid Interval. - * @param {string} reason - simple string of why this Interval is invalid. Should not contain parameters or anything else data-dependent - * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information - * @return {Interval} - */ - static invalid(reason, explanation = null) { - if (!reason) { - throw new InvalidArgumentError("need to specify a reason the Interval is invalid"); - } - const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation); - if (Settings.throwOnInvalid) { - throw new InvalidIntervalError(invalid); - } else { - return new _Interval({ invalid }); - } - } - /** - * Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end. - * @param {DateTime|Date|Object} start - * @param {DateTime|Date|Object} end - * @return {Interval} - */ - static fromDateTimes(start, end) { - const builtStart = friendlyDateTime(start), builtEnd = friendlyDateTime(end); - const validateError = validateStartEnd(builtStart, builtEnd); - if (validateError == null) { - return new _Interval({ - start: builtStart, - end: builtEnd - }); - } else { - return validateError; - } - } - /** - * Create an Interval from a start DateTime and a Duration to extend to. - * @param {DateTime|Date|Object} start - * @param {Duration|Object|number} duration - the length of the Interval. - * @return {Interval} - */ - static after(start, duration) { - const dur = Duration.fromDurationLike(duration), dt = friendlyDateTime(start); - return _Interval.fromDateTimes(dt, dt.plus(dur)); - } - /** - * Create an Interval from an end DateTime and a Duration to extend backwards to. - * @param {DateTime|Date|Object} end - * @param {Duration|Object|number} duration - the length of the Interval. - * @return {Interval} - */ - static before(end, duration) { - const dur = Duration.fromDurationLike(duration), dt = friendlyDateTime(end); - return _Interval.fromDateTimes(dt.minus(dur), dt); - } - /** - * Create an Interval from an ISO 8601 string. - * Accepts `/`, `/`, and `/` formats. - * @param {string} text - the ISO string to parse - * @param {Object} [opts] - options to pass {@link DateTime#fromISO} and optionally {@link Duration#fromISO} - * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals - * @return {Interval} - */ - static fromISO(text2, opts) { - const [s2, e] = (text2 || "").split("/", 2); - if (s2 && e) { - let start, startIsValid; - try { - start = DateTime.fromISO(s2, opts); - startIsValid = start.isValid; - } catch (e2) { - startIsValid = false; - } - let end, endIsValid; - try { - end = DateTime.fromISO(e, opts); - endIsValid = end.isValid; - } catch (e2) { - endIsValid = false; - } - if (startIsValid && endIsValid) { - return _Interval.fromDateTimes(start, end); - } - if (startIsValid) { - const dur = Duration.fromISO(e, opts); - if (dur.isValid) { - return _Interval.after(start, dur); - } - } else if (endIsValid) { - const dur = Duration.fromISO(s2, opts); - if (dur.isValid) { - return _Interval.before(end, dur); - } - } - } - return _Interval.invalid("unparsable", `the input "${text2}" can't be parsed as ISO 8601`); - } - /** - * Check if an object is an Interval. Works across context boundaries - * @param {object} o - * @return {boolean} - */ - static isInterval(o) { - return o && o.isLuxonInterval || false; - } - /** - * Returns the start of the Interval - * @type {DateTime} - */ - get start() { - return this.isValid ? this.s : null; - } - /** - * Returns the end of the Interval - * @type {DateTime} - */ - get end() { - return this.isValid ? this.e : null; - } - /** - * Returns whether this Interval's end is at least its start, meaning that the Interval isn't 'backwards'. - * @type {boolean} - */ - get isValid() { - return this.invalidReason === null; - } - /** - * Returns an error code if this Interval is invalid, or null if the Interval is valid - * @type {string} - */ - get invalidReason() { - return this.invalid ? this.invalid.reason : null; - } - /** - * Returns an explanation of why this Interval became invalid, or null if the Interval is valid - * @type {string} - */ - get invalidExplanation() { - return this.invalid ? this.invalid.explanation : null; - } - /** - * Returns the length of the Interval in the specified unit. - * @param {string} unit - the unit (such as 'hours' or 'days') to return the length in. - * @return {number} - */ - length(unit = "milliseconds") { - return this.isValid ? this.toDuration(...[unit]).get(unit) : NaN; - } - /** - * Returns the count of minutes, hours, days, months, or years included in the Interval, even in part. - * Unlike {@link Interval#length} this counts sections of the calendar, not periods of time, e.g. specifying 'day' - * asks 'what dates are included in this interval?', not 'how many days long is this interval?' - * @param {string} [unit='milliseconds'] - the unit of time to count. - * @param {Object} opts - options - * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; this operation will always use the locale of the start DateTime - * @return {number} - */ - count(unit = "milliseconds", opts) { - if (!this.isValid) - return NaN; - const start = this.start.startOf(unit, opts); - let end; - if (opts == null ? void 0 : opts.useLocaleWeeks) { - end = this.end.reconfigure({ locale: start.locale }); - } else { - end = this.end; - } - end = end.startOf(unit, opts); - return Math.floor(end.diff(start, unit).get(unit)) + (end.valueOf() !== this.end.valueOf()); - } - /** - * Returns whether this Interval's start and end are both in the same unit of time - * @param {string} unit - the unit of time to check sameness on - * @return {boolean} - */ - hasSame(unit) { - return this.isValid ? this.isEmpty() || this.e.minus(1).hasSame(this.s, unit) : false; - } - /** - * Return whether this Interval has the same start and end DateTimes. - * @return {boolean} - */ - isEmpty() { - return this.s.valueOf() === this.e.valueOf(); - } - /** - * Return whether this Interval's start is after the specified DateTime. - * @param {DateTime} dateTime - * @return {boolean} - */ - isAfter(dateTime) { - if (!this.isValid) - return false; - return this.s > dateTime; - } - /** - * Return whether this Interval's end is before the specified DateTime. - * @param {DateTime} dateTime - * @return {boolean} - */ - isBefore(dateTime) { - if (!this.isValid) - return false; - return this.e <= dateTime; - } - /** - * Return whether this Interval contains the specified DateTime. - * @param {DateTime} dateTime - * @return {boolean} - */ - contains(dateTime) { - if (!this.isValid) - return false; - return this.s <= dateTime && this.e > dateTime; - } - /** - * "Sets" the start and/or end dates. Returns a newly-constructed Interval. - * @param {Object} values - the values to set - * @param {DateTime} values.start - the starting DateTime - * @param {DateTime} values.end - the ending DateTime - * @return {Interval} - */ - set({ start, end } = {}) { - if (!this.isValid) - return this; - return _Interval.fromDateTimes(start || this.s, end || this.e); - } - /** - * Split this Interval at each of the specified DateTimes - * @param {...DateTime} dateTimes - the unit of time to count. - * @return {Array} - */ - splitAt(...dateTimes) { - if (!this.isValid) - return []; - const sorted = dateTimes.map(friendlyDateTime).filter((d) => this.contains(d)).sort((a, b) => a.toMillis() - b.toMillis()), results = []; - let { s: s2 } = this, i = 0; - while (s2 < this.e) { - const added = sorted[i] || this.e, next = +added > +this.e ? this.e : added; - results.push(_Interval.fromDateTimes(s2, next)); - s2 = next; - i += 1; - } - return results; - } - /** - * Split this Interval into smaller Intervals, each of the specified length. - * Left over time is grouped into a smaller interval - * @param {Duration|Object|number} duration - The length of each resulting interval. - * @return {Array} - */ - splitBy(duration) { - const dur = Duration.fromDurationLike(duration); - if (!this.isValid || !dur.isValid || dur.as("milliseconds") === 0) { - return []; - } - let { s: s2 } = this, idx = 1, next; - const results = []; - while (s2 < this.e) { - const added = this.start.plus(dur.mapUnits((x) => x * idx)); - next = +added > +this.e ? this.e : added; - results.push(_Interval.fromDateTimes(s2, next)); - s2 = next; - idx += 1; - } - return results; - } - /** - * Split this Interval into the specified number of smaller intervals. - * @param {number} numberOfParts - The number of Intervals to divide the Interval into. - * @return {Array} - */ - divideEqually(numberOfParts) { - if (!this.isValid) - return []; - return this.splitBy(this.length() / numberOfParts).slice(0, numberOfParts); - } - /** - * Return whether this Interval overlaps with the specified Interval - * @param {Interval} other - * @return {boolean} - */ - overlaps(other) { - return this.e > other.s && this.s < other.e; - } - /** - * Return whether this Interval's end is adjacent to the specified Interval's start. - * @param {Interval} other - * @return {boolean} - */ - abutsStart(other) { - if (!this.isValid) - return false; - return +this.e === +other.s; - } - /** - * Return whether this Interval's start is adjacent to the specified Interval's end. - * @param {Interval} other - * @return {boolean} - */ - abutsEnd(other) { - if (!this.isValid) - return false; - return +other.e === +this.s; - } - /** - * Return whether this Interval engulfs the start and end of the specified Interval. - * @param {Interval} other - * @return {boolean} - */ - engulfs(other) { - if (!this.isValid) - return false; - return this.s <= other.s && this.e >= other.e; - } - /** - * Return whether this Interval has the same start and end as the specified Interval. - * @param {Interval} other - * @return {boolean} - */ - equals(other) { - if (!this.isValid || !other.isValid) { - return false; - } - return this.s.equals(other.s) && this.e.equals(other.e); - } - /** - * Return an Interval representing the intersection of this Interval and the specified Interval. - * Specifically, the resulting Interval has the maximum start time and the minimum end time of the two Intervals. - * Returns null if the intersection is empty, meaning, the intervals don't intersect. - * @param {Interval} other - * @return {Interval} - */ - intersection(other) { - if (!this.isValid) - return this; - const s2 = this.s > other.s ? this.s : other.s, e = this.e < other.e ? this.e : other.e; - if (s2 >= e) { - return null; - } else { - return _Interval.fromDateTimes(s2, e); - } - } - /** - * Return an Interval representing the union of this Interval and the specified Interval. - * Specifically, the resulting Interval has the minimum start time and the maximum end time of the two Intervals. - * @param {Interval} other - * @return {Interval} - */ - union(other) { - if (!this.isValid) - return this; - const s2 = this.s < other.s ? this.s : other.s, e = this.e > other.e ? this.e : other.e; - return _Interval.fromDateTimes(s2, e); - } - /** - * Merge an array of Intervals into a equivalent minimal set of Intervals. - * Combines overlapping and adjacent Intervals. - * @param {Array} intervals - * @return {Array} - */ - static merge(intervals) { - const [found, final] = intervals.sort((a, b) => a.s - b.s).reduce( - ([sofar, current], item) => { - if (!current) { - return [sofar, item]; - } else if (current.overlaps(item) || current.abutsStart(item)) { - return [sofar, current.union(item)]; - } else { - return [sofar.concat([current]), item]; - } - }, - [[], null] - ); - if (final) { - found.push(final); - } - return found; - } - /** - * Return an array of Intervals representing the spans of time that only appear in one of the specified Intervals. - * @param {Array} intervals - * @return {Array} - */ - static xor(intervals) { - let start = null, currentCount = 0; - const results = [], ends = intervals.map((i) => [ - { time: i.s, type: "s" }, - { time: i.e, type: "e" } - ]), flattened = Array.prototype.concat(...ends), arr = flattened.sort((a, b) => a.time - b.time); - for (const i of arr) { - currentCount += i.type === "s" ? 1 : -1; - if (currentCount === 1) { - start = i.time; - } else { - if (start && +start !== +i.time) { - results.push(_Interval.fromDateTimes(start, i.time)); - } - start = null; - } - } - return _Interval.merge(results); - } - /** - * Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals. - * @param {...Interval} intervals - * @return {Array} - */ - difference(...intervals) { - return _Interval.xor([this].concat(intervals)).map((i) => this.intersection(i)).filter((i) => i && !i.isEmpty()); - } - /** - * Returns a string representation of this Interval appropriate for debugging. - * @return {string} - */ - toString() { - if (!this.isValid) - return INVALID3; - return `[${this.s.toISO()} \u2013 ${this.e.toISO()})`; - } - /** - * Returns a string representation of this Interval appropriate for the REPL. - * @return {string} - */ - [Symbol.for("nodejs.util.inspect.custom")]() { - if (this.isValid) { - return `Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`; - } else { - return `Interval { Invalid, reason: ${this.invalidReason} }`; - } - } - /** - * Returns a localized string representing this Interval. Accepts the same options as the - * Intl.DateTimeFormat constructor and any presets defined by Luxon, such as - * {@link DateTime.DATE_FULL} or {@link DateTime.TIME_SIMPLE}. The exact behavior of this method - * is browser-specific, but in general it will return an appropriate representation of the - * Interval in the assigned locale. Defaults to the system's locale if no locale has been - * specified. - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat - * @param {Object} [formatOpts=DateTime.DATE_SHORT] - Either a DateTime preset or - * Intl.DateTimeFormat constructor options. - * @param {Object} opts - Options to override the configuration of the start DateTime. - * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(); //=> 11/7/2022 – 11/8/2022 - * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL); //=> November 7 – 8, 2022 - * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL, { locale: 'fr-FR' }); //=> 7–8 novembre 2022 - * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString(DateTime.TIME_SIMPLE); //=> 6:00 – 8:00 PM - * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> Mon, Nov 07, 6:00 – 8:00 p - * @return {string} - */ - toLocaleString(formatOpts = DATE_SHORT, opts = {}) { - return this.isValid ? Formatter.create(this.s.loc.clone(opts), formatOpts).formatInterval(this) : INVALID3; - } - /** - * Returns an ISO 8601-compliant string representation of this Interval. - * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals - * @param {Object} opts - The same options as {@link DateTime#toISO} - * @return {string} - */ - toISO(opts) { - if (!this.isValid) - return INVALID3; - return `${this.s.toISO(opts)}/${this.e.toISO(opts)}`; - } - /** - * Returns an ISO 8601-compliant string representation of date of this Interval. - * The time components are ignored. - * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals - * @return {string} - */ - toISODate() { - if (!this.isValid) - return INVALID3; - return `${this.s.toISODate()}/${this.e.toISODate()}`; - } - /** - * Returns an ISO 8601-compliant string representation of time of this Interval. - * The date components are ignored. - * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals - * @param {Object} opts - The same options as {@link DateTime#toISO} - * @return {string} - */ - toISOTime(opts) { - if (!this.isValid) - return INVALID3; - return `${this.s.toISOTime(opts)}/${this.e.toISOTime(opts)}`; - } - /** - * Returns a string representation of this Interval formatted according to the specified format - * string. **You may not want this.** See {@link Interval#toLocaleString} for a more flexible - * formatting tool. - * @param {string} dateFormat - The format string. This string formats the start and end time. - * See {@link DateTime#toFormat} for details. - * @param {Object} opts - Options. - * @param {string} [opts.separator = ' – '] - A separator to place between the start and end - * representations. - * @return {string} - */ - toFormat(dateFormat, { separator = " \u2013 " } = {}) { - if (!this.isValid) - return INVALID3; - return `${this.s.toFormat(dateFormat)}${separator}${this.e.toFormat(dateFormat)}`; - } - /** - * Return a Duration representing the time spanned by this interval. - * @param {string|string[]} [unit=['milliseconds']] - the unit or units (such as 'hours' or 'days') to include in the duration. - * @param {Object} opts - options that affect the creation of the Duration - * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use - * @example Interval.fromDateTimes(dt1, dt2).toDuration().toObject() //=> { milliseconds: 88489257 } - * @example Interval.fromDateTimes(dt1, dt2).toDuration('days').toObject() //=> { days: 1.0241812152777778 } - * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes']).toObject() //=> { hours: 24, minutes: 34.82095 } - * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes', 'seconds']).toObject() //=> { hours: 24, minutes: 34, seconds: 49.257 } - * @example Interval.fromDateTimes(dt1, dt2).toDuration('seconds').toObject() //=> { seconds: 88489.257 } - * @return {Duration} - */ - toDuration(unit, opts) { - if (!this.isValid) { - return Duration.invalid(this.invalidReason); - } - return this.e.diff(this.s, unit, opts); - } - /** - * Run mapFn on the interval start and end, returning a new Interval from the resulting DateTimes - * @param {function} mapFn - * @return {Interval} - * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.toUTC()) - * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 })) - */ - mapEndpoints(mapFn) { - return _Interval.fromDateTimes(mapFn(this.s), mapFn(this.e)); - } -}; - -// node_modules/luxon/src/info.js -var Info = class { - /** - * Return whether the specified zone contains a DST. - * @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone. - * @return {boolean} - */ - static hasDST(zone = Settings.defaultZone) { - const proto = DateTime.now().setZone(zone).set({ month: 12 }); - return !zone.isUniversal && proto.offset !== proto.set({ month: 6 }).offset; - } - /** - * Return whether the specified zone is a valid IANA specifier. - * @param {string} zone - Zone to check - * @return {boolean} - */ - static isValidIANAZone(zone) { - return IANAZone.isValidZone(zone); - } - /** - * Converts the input into a {@link Zone} instance. - * - * * If `input` is already a Zone instance, it is returned unchanged. - * * If `input` is a string containing a valid time zone name, a Zone instance - * with that name is returned. - * * If `input` is a string that doesn't refer to a known time zone, a Zone - * instance with {@link Zone#isValid} == false is returned. - * * If `input is a number, a Zone instance with the specified fixed offset - * in minutes is returned. - * * If `input` is `null` or `undefined`, the default zone is returned. - * @param {string|Zone|number} [input] - the value to be converted - * @return {Zone} - */ - static normalizeZone(input) { - return normalizeZone(input, Settings.defaultZone); - } - /** - * Get the weekday on which the week starts according to the given locale. - * @param {Object} opts - options - * @param {string} [opts.locale] - the locale code - * @param {string} [opts.locObj=null] - an existing locale object to use - * @returns {number} the start of the week, 1 for Monday through 7 for Sunday - */ - static getStartOfWeek({ locale = null, locObj = null } = {}) { - return (locObj || Locale.create(locale)).getStartOfWeek(); - } - /** - * Get the minimum number of days necessary in a week before it is considered part of the next year according - * to the given locale. - * @param {Object} opts - options - * @param {string} [opts.locale] - the locale code - * @param {string} [opts.locObj=null] - an existing locale object to use - * @returns {number} - */ - static getMinimumDaysInFirstWeek({ locale = null, locObj = null } = {}) { - return (locObj || Locale.create(locale)).getMinDaysInFirstWeek(); - } - /** - * Get the weekdays, which are considered the weekend according to the given locale - * @param {Object} opts - options - * @param {string} [opts.locale] - the locale code - * @param {string} [opts.locObj=null] - an existing locale object to use - * @returns {number[]} an array of weekdays, 1 for Monday through 7 for Sunday - */ - static getWeekendWeekdays({ locale = null, locObj = null } = {}) { - return (locObj || Locale.create(locale)).getWeekendDays().slice(); - } - /** - * Return an array of standalone month names. - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat - * @param {string} [length='long'] - the length of the month representation, such as "numeric", "2-digit", "narrow", "short", "long" - * @param {Object} opts - options - * @param {string} [opts.locale] - the locale code - * @param {string} [opts.numberingSystem=null] - the numbering system - * @param {string} [opts.locObj=null] - an existing locale object to use - * @param {string} [opts.outputCalendar='gregory'] - the calendar - * @example Info.months()[0] //=> 'January' - * @example Info.months('short')[0] //=> 'Jan' - * @example Info.months('numeric')[0] //=> '1' - * @example Info.months('short', { locale: 'fr-CA' } )[0] //=> 'janv.' - * @example Info.months('numeric', { locale: 'ar' })[0] //=> '١' - * @example Info.months('long', { outputCalendar: 'islamic' })[0] //=> 'Rabiʻ I' - * @return {Array} - */ - static months(length = "long", { locale = null, numberingSystem = null, locObj = null, outputCalendar = "gregory" } = {}) { - return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length); - } - /** - * Return an array of format month names. - * Format months differ from standalone months in that they're meant to appear next to the day of the month. In some languages, that - * changes the string. - * See {@link Info#months} - * @param {string} [length='long'] - the length of the month representation, such as "numeric", "2-digit", "narrow", "short", "long" - * @param {Object} opts - options - * @param {string} [opts.locale] - the locale code - * @param {string} [opts.numberingSystem=null] - the numbering system - * @param {string} [opts.locObj=null] - an existing locale object to use - * @param {string} [opts.outputCalendar='gregory'] - the calendar - * @return {Array} - */ - static monthsFormat(length = "long", { locale = null, numberingSystem = null, locObj = null, outputCalendar = "gregory" } = {}) { - return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length, true); - } - /** - * Return an array of standalone week names. - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat - * @param {string} [length='long'] - the length of the weekday representation, such as "narrow", "short", "long". - * @param {Object} opts - options - * @param {string} [opts.locale] - the locale code - * @param {string} [opts.numberingSystem=null] - the numbering system - * @param {string} [opts.locObj=null] - an existing locale object to use - * @example Info.weekdays()[0] //=> 'Monday' - * @example Info.weekdays('short')[0] //=> 'Mon' - * @example Info.weekdays('short', { locale: 'fr-CA' })[0] //=> 'lun.' - * @example Info.weekdays('short', { locale: 'ar' })[0] //=> 'الاثنين' - * @return {Array} - */ - static weekdays(length = "long", { locale = null, numberingSystem = null, locObj = null } = {}) { - return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length); - } - /** - * Return an array of format week names. - * Format weekdays differ from standalone weekdays in that they're meant to appear next to more date information. In some languages, that - * changes the string. - * See {@link Info#weekdays} - * @param {string} [length='long'] - the length of the month representation, such as "narrow", "short", "long". - * @param {Object} opts - options - * @param {string} [opts.locale=null] - the locale code - * @param {string} [opts.numberingSystem=null] - the numbering system - * @param {string} [opts.locObj=null] - an existing locale object to use - * @return {Array} - */ - static weekdaysFormat(length = "long", { locale = null, numberingSystem = null, locObj = null } = {}) { - return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length, true); - } - /** - * Return an array of meridiems. - * @param {Object} opts - options - * @param {string} [opts.locale] - the locale code - * @example Info.meridiems() //=> [ 'AM', 'PM' ] - * @example Info.meridiems({ locale: 'my' }) //=> [ 'နံနက်', 'ညနေ' ] - * @return {Array} - */ - static meridiems({ locale = null } = {}) { - return Locale.create(locale).meridiems(); - } - /** - * Return an array of eras, such as ['BC', 'AD']. The locale can be specified, but the calendar system is always Gregorian. - * @param {string} [length='short'] - the length of the era representation, such as "short" or "long". - * @param {Object} opts - options - * @param {string} [opts.locale] - the locale code - * @example Info.eras() //=> [ 'BC', 'AD' ] - * @example Info.eras('long') //=> [ 'Before Christ', 'Anno Domini' ] - * @example Info.eras('long', { locale: 'fr' }) //=> [ 'avant Jésus-Christ', 'après Jésus-Christ' ] - * @return {Array} - */ - static eras(length = "short", { locale = null } = {}) { - return Locale.create(locale, null, "gregory").eras(length); - } - /** - * Return the set of available features in this environment. - * Some features of Luxon are not available in all environments. For example, on older browsers, relative time formatting support is not available. Use this function to figure out if that's the case. - * Keys: - * * `relative`: whether this environment supports relative time formatting - * * `localeWeek`: whether this environment supports different weekdays for the start of the week based on the locale - * @example Info.features() //=> { relative: false, localeWeek: true } - * @return {Object} - */ - static features() { - return { relative: hasRelative(), localeWeek: hasLocaleWeekInfo() }; - } -}; - -// node_modules/luxon/src/impl/diff.js -function dayDiff(earlier, later) { - const utcDayStart = (dt) => dt.toUTC(0, { keepLocalTime: true }).startOf("day").valueOf(), ms = utcDayStart(later) - utcDayStart(earlier); - return Math.floor(Duration.fromMillis(ms).as("days")); -} -function highOrderDiffs(cursor, later, units) { - const differs = [ - ["years", (a, b) => b.year - a.year], - ["quarters", (a, b) => b.quarter - a.quarter + (b.year - a.year) * 4], - ["months", (a, b) => b.month - a.month + (b.year - a.year) * 12], - [ - "weeks", - (a, b) => { - const days = dayDiff(a, b); - return (days - days % 7) / 7; - } - ], - ["days", dayDiff] - ]; - const results = {}; - const earlier = cursor; - let lowestOrder, highWater; - for (const [unit, differ] of differs) { - if (units.indexOf(unit) >= 0) { - lowestOrder = unit; - results[unit] = differ(cursor, later); - highWater = earlier.plus(results); - if (highWater > later) { - results[unit]--; - cursor = earlier.plus(results); - if (cursor > later) { - highWater = cursor; - results[unit]--; - cursor = earlier.plus(results); - } - } else { - cursor = highWater; - } - } - } - return [cursor, results, highWater, lowestOrder]; -} -function diff_default(earlier, later, units, opts) { - let [cursor, results, highWater, lowestOrder] = highOrderDiffs(earlier, later, units); - const remainingMillis = later - cursor; - const lowerOrderUnits = units.filter( - (u) => ["hours", "minutes", "seconds", "milliseconds"].indexOf(u) >= 0 - ); - if (lowerOrderUnits.length === 0) { - if (highWater < later) { - highWater = cursor.plus({ [lowestOrder]: 1 }); - } - if (highWater !== cursor) { - results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor); - } - } - const duration = Duration.fromObject(results, opts); - if (lowerOrderUnits.length > 0) { - return Duration.fromMillis(remainingMillis, opts).shiftTo(...lowerOrderUnits).plus(duration); - } else { - return duration; - } -} - -// node_modules/luxon/src/impl/digits.js -var numberingSystems = { - arab: "[\u0660-\u0669]", - arabext: "[\u06F0-\u06F9]", - bali: "[\u1B50-\u1B59]", - beng: "[\u09E6-\u09EF]", - deva: "[\u0966-\u096F]", - fullwide: "[\uFF10-\uFF19]", - gujr: "[\u0AE6-\u0AEF]", - hanidec: "[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]", - khmr: "[\u17E0-\u17E9]", - knda: "[\u0CE6-\u0CEF]", - laoo: "[\u0ED0-\u0ED9]", - limb: "[\u1946-\u194F]", - mlym: "[\u0D66-\u0D6F]", - mong: "[\u1810-\u1819]", - mymr: "[\u1040-\u1049]", - orya: "[\u0B66-\u0B6F]", - tamldec: "[\u0BE6-\u0BEF]", - telu: "[\u0C66-\u0C6F]", - thai: "[\u0E50-\u0E59]", - tibt: "[\u0F20-\u0F29]", - latn: "\\d" -}; -var numberingSystemsUTF16 = { - arab: [1632, 1641], - arabext: [1776, 1785], - bali: [6992, 7001], - beng: [2534, 2543], - deva: [2406, 2415], - fullwide: [65296, 65303], - gujr: [2790, 2799], - khmr: [6112, 6121], - knda: [3302, 3311], - laoo: [3792, 3801], - limb: [6470, 6479], - mlym: [3430, 3439], - mong: [6160, 6169], - mymr: [4160, 4169], - orya: [2918, 2927], - tamldec: [3046, 3055], - telu: [3174, 3183], - thai: [3664, 3673], - tibt: [3872, 3881] -}; -var hanidecChars = numberingSystems.hanidec.replace(/[\[|\]]/g, "").split(""); -function parseDigits(str) { - let value = parseInt(str, 10); - if (isNaN(value)) { - value = ""; - for (let i = 0; i < str.length; i++) { - const code = str.charCodeAt(i); - if (str[i].search(numberingSystems.hanidec) !== -1) { - value += hanidecChars.indexOf(str[i]); - } else { - for (const key in numberingSystemsUTF16) { - const [min, max] = numberingSystemsUTF16[key]; - if (code >= min && code <= max) { - value += code - min; - } - } - } - } - return parseInt(value, 10); - } else { - return value; - } -} -function digitRegex({ numberingSystem }, append2 = "") { - return new RegExp(`${numberingSystems[numberingSystem || "latn"]}${append2}`); -} - -// node_modules/luxon/src/impl/tokenParser.js -var MISSING_FTP = "missing Intl.DateTimeFormat.formatToParts support"; -function intUnit(regex2, post = (i) => i) { - return { regex: regex2, deser: ([s2]) => post(parseDigits(s2)) }; -} -var NBSP = String.fromCharCode(160); -var spaceOrNBSP = `[ ${NBSP}]`; -var spaceOrNBSPRegExp = new RegExp(spaceOrNBSP, "g"); -function fixListRegex(s2) { - return s2.replace(/\./g, "\\.?").replace(spaceOrNBSPRegExp, spaceOrNBSP); -} -function stripInsensitivities(s2) { - return s2.replace(/\./g, "").replace(spaceOrNBSPRegExp, " ").toLowerCase(); -} -function oneOf(strings, startIndex) { - if (strings === null) { - return null; - } else { - return { - regex: RegExp(strings.map(fixListRegex).join("|")), - deser: ([s2]) => strings.findIndex((i) => stripInsensitivities(s2) === stripInsensitivities(i)) + startIndex - }; - } -} -function offset(regex2, groups) { - return { regex: regex2, deser: ([, h, m]) => signedOffset(h, m), groups }; -} -function simple(regex2) { - return { regex: regex2, deser: ([s2]) => s2 }; -} -function escapeToken(value) { - return value.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&"); -} -function unitForToken(token, loc) { - const one = digitRegex(loc), two = digitRegex(loc, "{2}"), three = digitRegex(loc, "{3}"), four = digitRegex(loc, "{4}"), six = digitRegex(loc, "{6}"), oneOrTwo = digitRegex(loc, "{1,2}"), oneToThree = digitRegex(loc, "{1,3}"), oneToSix = digitRegex(loc, "{1,6}"), oneToNine = digitRegex(loc, "{1,9}"), twoToFour = digitRegex(loc, "{2,4}"), fourToSix = digitRegex(loc, "{4,6}"), literal = (t) => ({ regex: RegExp(escapeToken(t.val)), deser: ([s2]) => s2, literal: true }), unitate = (t) => { - if (token.literal) { - return literal(t); - } - switch (t.val) { - case "G": - return oneOf(loc.eras("short"), 0); - case "GG": - return oneOf(loc.eras("long"), 0); - case "y": - return intUnit(oneToSix); - case "yy": - return intUnit(twoToFour, untruncateYear); - case "yyyy": - return intUnit(four); - case "yyyyy": - return intUnit(fourToSix); - case "yyyyyy": - return intUnit(six); - case "M": - return intUnit(oneOrTwo); - case "MM": - return intUnit(two); - case "MMM": - return oneOf(loc.months("short", true), 1); - case "MMMM": - return oneOf(loc.months("long", true), 1); - case "L": - return intUnit(oneOrTwo); - case "LL": - return intUnit(two); - case "LLL": - return oneOf(loc.months("short", false), 1); - case "LLLL": - return oneOf(loc.months("long", false), 1); - case "d": - return intUnit(oneOrTwo); - case "dd": - return intUnit(two); - case "o": - return intUnit(oneToThree); - case "ooo": - return intUnit(three); - case "HH": - return intUnit(two); - case "H": - return intUnit(oneOrTwo); - case "hh": - return intUnit(two); - case "h": - return intUnit(oneOrTwo); - case "mm": - return intUnit(two); - case "m": - return intUnit(oneOrTwo); - case "q": - return intUnit(oneOrTwo); - case "qq": - return intUnit(two); - case "s": - return intUnit(oneOrTwo); - case "ss": - return intUnit(two); - case "S": - return intUnit(oneToThree); - case "SSS": - return intUnit(three); - case "u": - return simple(oneToNine); - case "uu": - return simple(oneOrTwo); - case "uuu": - return intUnit(one); - case "a": - return oneOf(loc.meridiems(), 0); - case "kkkk": - return intUnit(four); - case "kk": - return intUnit(twoToFour, untruncateYear); - case "W": - return intUnit(oneOrTwo); - case "WW": - return intUnit(two); - case "E": - case "c": - return intUnit(one); - case "EEE": - return oneOf(loc.weekdays("short", false), 1); - case "EEEE": - return oneOf(loc.weekdays("long", false), 1); - case "ccc": - return oneOf(loc.weekdays("short", true), 1); - case "cccc": - return oneOf(loc.weekdays("long", true), 1); - case "Z": - case "ZZ": - return offset(new RegExp(`([+-]${oneOrTwo.source})(?::(${two.source}))?`), 2); - case "ZZZ": - return offset(new RegExp(`([+-]${oneOrTwo.source})(${two.source})?`), 2); - case "z": - return simple(/[a-z_+-/]{1,256}?/i); - case " ": - return simple(/[^\S\n\r]/); - default: - return literal(t); - } - }; - const unit = unitate(token) || { - invalidReason: MISSING_FTP - }; - unit.token = token; - return unit; -} -var partTypeStyleToTokenVal = { - year: { - "2-digit": "yy", - numeric: "yyyyy" - }, - month: { - numeric: "M", - "2-digit": "MM", - short: "MMM", - long: "MMMM" - }, - day: { - numeric: "d", - "2-digit": "dd" - }, - weekday: { - short: "EEE", - long: "EEEE" - }, - dayperiod: "a", - dayPeriod: "a", - hour12: { - numeric: "h", - "2-digit": "hh" - }, - hour24: { - numeric: "H", - "2-digit": "HH" - }, - minute: { - numeric: "m", - "2-digit": "mm" - }, - second: { - numeric: "s", - "2-digit": "ss" - }, - timeZoneName: { - long: "ZZZZZ", - short: "ZZZ" - } -}; -function tokenForPart(part, formatOpts, resolvedOpts) { - const { type, value } = part; - if (type === "literal") { - const isSpace = /^\s+$/.test(value); - return { - literal: !isSpace, - val: isSpace ? " " : value - }; - } - const style = formatOpts[type]; - let actualType = type; - if (type === "hour") { - if (formatOpts.hour12 != null) { - actualType = formatOpts.hour12 ? "hour12" : "hour24"; - } else if (formatOpts.hourCycle != null) { - if (formatOpts.hourCycle === "h11" || formatOpts.hourCycle === "h12") { - actualType = "hour12"; - } else { - actualType = "hour24"; - } - } else { - actualType = resolvedOpts.hour12 ? "hour12" : "hour24"; - } - } - let val = partTypeStyleToTokenVal[actualType]; - if (typeof val === "object") { - val = val[style]; - } - if (val) { - return { - literal: false, - val - }; - } - return void 0; -} -function buildRegex(units) { - const re = units.map((u) => u.regex).reduce((f, r) => `${f}(${r.source})`, ""); - return [`^${re}$`, units]; -} -function match(input, regex2, handlers) { - const matches = input.match(regex2); - if (matches) { - const all = {}; - let matchIndex = 1; - for (const i in handlers) { - if (hasOwnProperty(handlers, i)) { - const h = handlers[i], groups = h.groups ? h.groups + 1 : 1; - if (!h.literal && h.token) { - all[h.token.val[0]] = h.deser(matches.slice(matchIndex, matchIndex + groups)); - } - matchIndex += groups; - } - } - return [matches, all]; - } else { - return [matches, {}]; - } -} -function dateTimeFromMatches(matches) { - const toField = (token) => { - switch (token) { - case "S": - return "millisecond"; - case "s": - return "second"; - case "m": - return "minute"; - case "h": - case "H": - return "hour"; - case "d": - return "day"; - case "o": - return "ordinal"; - case "L": - case "M": - return "month"; - case "y": - return "year"; - case "E": - case "c": - return "weekday"; - case "W": - return "weekNumber"; - case "k": - return "weekYear"; - case "q": - return "quarter"; - default: - return null; - } - }; - let zone = null; - let specificOffset; - if (!isUndefined(matches.z)) { - zone = IANAZone.create(matches.z); - } - if (!isUndefined(matches.Z)) { - if (!zone) { - zone = new FixedOffsetZone(matches.Z); - } - specificOffset = matches.Z; - } - if (!isUndefined(matches.q)) { - matches.M = (matches.q - 1) * 3 + 1; - } - if (!isUndefined(matches.h)) { - if (matches.h < 12 && matches.a === 1) { - matches.h += 12; - } else if (matches.h === 12 && matches.a === 0) { - matches.h = 0; - } - } - if (matches.G === 0 && matches.y) { - matches.y = -matches.y; - } - if (!isUndefined(matches.u)) { - matches.S = parseMillis(matches.u); - } - const vals = Object.keys(matches).reduce((r, k) => { - const f = toField(k); - if (f) { - r[f] = matches[k]; - } - return r; - }, {}); - return [vals, zone, specificOffset]; -} -var dummyDateTimeCache = null; -function getDummyDateTime() { - if (!dummyDateTimeCache) { - dummyDateTimeCache = DateTime.fromMillis(1555555555555); - } - return dummyDateTimeCache; -} -function maybeExpandMacroToken(token, locale) { - if (token.literal) { - return token; - } - const formatOpts = Formatter.macroTokenToFormatOpts(token.val); - const tokens = formatOptsToTokens(formatOpts, locale); - if (tokens == null || tokens.includes(void 0)) { - return token; - } - return tokens; -} -function expandMacroTokens(tokens, locale) { - return Array.prototype.concat(...tokens.map((t) => maybeExpandMacroToken(t, locale))); -} -function explainFromTokens(locale, input, format) { - const tokens = expandMacroTokens(Formatter.parseFormat(format), locale), units = tokens.map((t) => unitForToken(t, locale)), disqualifyingUnit = units.find((t) => t.invalidReason); - if (disqualifyingUnit) { - return { input, tokens, invalidReason: disqualifyingUnit.invalidReason }; - } else { - const [regexString, handlers] = buildRegex(units), regex2 = RegExp(regexString, "i"), [rawMatches, matches] = match(input, regex2, handlers), [result, zone, specificOffset] = matches ? dateTimeFromMatches(matches) : [null, null, void 0]; - if (hasOwnProperty(matches, "a") && hasOwnProperty(matches, "H")) { - throw new ConflictingSpecificationError( - "Can't include meridiem when specifying 24-hour format" - ); - } - return { input, tokens, regex: regex2, rawMatches, matches, result, zone, specificOffset }; - } -} -function parseFromTokens(locale, input, format) { - const { result, zone, specificOffset, invalidReason } = explainFromTokens(locale, input, format); - return [result, zone, specificOffset, invalidReason]; -} -function formatOptsToTokens(formatOpts, locale) { - if (!formatOpts) { - return null; - } - const formatter = Formatter.create(locale, formatOpts); - const df = formatter.dtFormatter(getDummyDateTime()); - const parts = df.formatToParts(); - const resolvedOpts = df.resolvedOptions(); - return parts.map((p) => tokenForPart(p, formatOpts, resolvedOpts)); -} - -// node_modules/luxon/src/datetime.js -var INVALID4 = "Invalid DateTime"; -var MAX_DATE = 864e13; -function unsupportedZone(zone) { - return new Invalid("unsupported zone", `the zone "${zone.name}" is not supported`); -} -function possiblyCachedWeekData(dt) { - if (dt.weekData === null) { - dt.weekData = gregorianToWeek(dt.c); - } - return dt.weekData; -} -function possiblyCachedLocalWeekData(dt) { - if (dt.localWeekData === null) { - dt.localWeekData = gregorianToWeek( - dt.c, - dt.loc.getMinDaysInFirstWeek(), - dt.loc.getStartOfWeek() - ); - } - return dt.localWeekData; -} -function clone2(inst, alts) { - const current = { - ts: inst.ts, - zone: inst.zone, - c: inst.c, - o: inst.o, - loc: inst.loc, - invalid: inst.invalid - }; - return new DateTime({ ...current, ...alts, old: current }); -} -function fixOffset(localTS, o, tz) { - let utcGuess = localTS - o * 60 * 1e3; - const o2 = tz.offset(utcGuess); - if (o === o2) { - return [utcGuess, o]; - } - utcGuess -= (o2 - o) * 60 * 1e3; - const o3 = tz.offset(utcGuess); - if (o2 === o3) { - return [utcGuess, o2]; - } - return [localTS - Math.min(o2, o3) * 60 * 1e3, Math.max(o2, o3)]; -} -function tsToObj(ts, offset2) { - ts += offset2 * 60 * 1e3; - const d = new Date(ts); - return { - year: d.getUTCFullYear(), - month: d.getUTCMonth() + 1, - day: d.getUTCDate(), - hour: d.getUTCHours(), - minute: d.getUTCMinutes(), - second: d.getUTCSeconds(), - millisecond: d.getUTCMilliseconds() - }; -} -function objToTS(obj, offset2, zone) { - return fixOffset(objToLocalTS(obj), offset2, zone); -} -function adjustTime(inst, dur) { - const oPre = inst.o, year = inst.c.year + Math.trunc(dur.years), month = inst.c.month + Math.trunc(dur.months) + Math.trunc(dur.quarters) * 3, c = { - ...inst.c, - year, - month, - day: Math.min(inst.c.day, daysInMonth(year, month)) + Math.trunc(dur.days) + Math.trunc(dur.weeks) * 7 - }, millisToAdd = Duration.fromObject({ - years: dur.years - Math.trunc(dur.years), - quarters: dur.quarters - Math.trunc(dur.quarters), - months: dur.months - Math.trunc(dur.months), - weeks: dur.weeks - Math.trunc(dur.weeks), - days: dur.days - Math.trunc(dur.days), - hours: dur.hours, - minutes: dur.minutes, - seconds: dur.seconds, - milliseconds: dur.milliseconds - }).as("milliseconds"), localTS = objToLocalTS(c); - let [ts, o] = fixOffset(localTS, oPre, inst.zone); - if (millisToAdd !== 0) { - ts += millisToAdd; - o = inst.zone.offset(ts); - } - return { ts, o }; -} -function parseDataToDateTime(parsed, parsedZone, opts, format, text2, specificOffset) { - const { setZone, zone } = opts; - if (parsed && Object.keys(parsed).length !== 0 || parsedZone) { - const interpretationZone = parsedZone || zone, inst = DateTime.fromObject(parsed, { - ...opts, - zone: interpretationZone, - specificOffset - }); - return setZone ? inst : inst.setZone(zone); - } else { - return DateTime.invalid( - new Invalid("unparsable", `the input "${text2}" can't be parsed as ${format}`) - ); - } -} -function toTechFormat(dt, format, allowZ = true) { - return dt.isValid ? Formatter.create(Locale.create("en-US"), { - allowZ, - forceSimple: true - }).formatDateTimeFromString(dt, format) : null; -} -function toISODate(o, extended) { - const longFormat = o.c.year > 9999 || o.c.year < 0; - let c = ""; - if (longFormat && o.c.year >= 0) - c += "+"; - c += padStart(o.c.year, longFormat ? 6 : 4); - if (extended) { - c += "-"; - c += padStart(o.c.month); - c += "-"; - c += padStart(o.c.day); - } else { - c += padStart(o.c.month); - c += padStart(o.c.day); - } - return c; -} -function toISOTime(o, extended, suppressSeconds, suppressMilliseconds, includeOffset, extendedZone) { - let c = padStart(o.c.hour); - if (extended) { - c += ":"; - c += padStart(o.c.minute); - if (o.c.millisecond !== 0 || o.c.second !== 0 || !suppressSeconds) { - c += ":"; - } - } else { - c += padStart(o.c.minute); - } - if (o.c.millisecond !== 0 || o.c.second !== 0 || !suppressSeconds) { - c += padStart(o.c.second); - if (o.c.millisecond !== 0 || !suppressMilliseconds) { - c += "."; - c += padStart(o.c.millisecond, 3); - } - } - if (includeOffset) { - if (o.isOffsetFixed && o.offset === 0 && !extendedZone) { - c += "Z"; - } else if (o.o < 0) { - c += "-"; - c += padStart(Math.trunc(-o.o / 60)); - c += ":"; - c += padStart(Math.trunc(-o.o % 60)); - } else { - c += "+"; - c += padStart(Math.trunc(o.o / 60)); - c += ":"; - c += padStart(Math.trunc(o.o % 60)); - } - } - if (extendedZone) { - c += "[" + o.zone.ianaName + "]"; - } - return c; -} -var defaultUnitValues = { - month: 1, - day: 1, - hour: 0, - minute: 0, - second: 0, - millisecond: 0 -}; -var defaultWeekUnitValues = { - weekNumber: 1, - weekday: 1, - hour: 0, - minute: 0, - second: 0, - millisecond: 0 -}; -var defaultOrdinalUnitValues = { - ordinal: 1, - hour: 0, - minute: 0, - second: 0, - millisecond: 0 -}; -var orderedUnits2 = ["year", "month", "day", "hour", "minute", "second", "millisecond"]; -var orderedWeekUnits = [ - "weekYear", - "weekNumber", - "weekday", - "hour", - "minute", - "second", - "millisecond" -]; -var orderedOrdinalUnits = ["year", "ordinal", "hour", "minute", "second", "millisecond"]; -function normalizeUnit(unit) { - const normalized = { - year: "year", - years: "year", - month: "month", - months: "month", - day: "day", - days: "day", - hour: "hour", - hours: "hour", - minute: "minute", - minutes: "minute", - quarter: "quarter", - quarters: "quarter", - second: "second", - seconds: "second", - millisecond: "millisecond", - milliseconds: "millisecond", - weekday: "weekday", - weekdays: "weekday", - weeknumber: "weekNumber", - weeksnumber: "weekNumber", - weeknumbers: "weekNumber", - weekyear: "weekYear", - weekyears: "weekYear", - ordinal: "ordinal" - }[unit.toLowerCase()]; - if (!normalized) - throw new InvalidUnitError(unit); - return normalized; -} -function normalizeUnitWithLocalWeeks(unit) { - switch (unit.toLowerCase()) { - case "localweekday": - case "localweekdays": - return "localWeekday"; - case "localweeknumber": - case "localweeknumbers": - return "localWeekNumber"; - case "localweekyear": - case "localweekyears": - return "localWeekYear"; - default: - return normalizeUnit(unit); - } -} -function quickDT(obj, opts) { - const zone = normalizeZone(opts.zone, Settings.defaultZone), loc = Locale.fromObject(opts), tsNow = Settings.now(); - let ts, o; - if (!isUndefined(obj.year)) { - for (const u of orderedUnits2) { - if (isUndefined(obj[u])) { - obj[u] = defaultUnitValues[u]; - } - } - const invalid = hasInvalidGregorianData(obj) || hasInvalidTimeData(obj); - if (invalid) { - return DateTime.invalid(invalid); - } - const offsetProvis = zone.offset(tsNow); - [ts, o] = objToTS(obj, offsetProvis, zone); - } else { - ts = tsNow; - } - return new DateTime({ ts, zone, loc, o }); -} -function diffRelative(start, end, opts) { - const round = isUndefined(opts.round) ? true : opts.round, format = (c, unit) => { - c = roundTo(c, round || opts.calendary ? 0 : 2, true); - const formatter = end.loc.clone(opts).relFormatter(opts); - return formatter.format(c, unit); - }, differ = (unit) => { - if (opts.calendary) { - if (!end.hasSame(start, unit)) { - return end.startOf(unit).diff(start.startOf(unit), unit).get(unit); - } else - return 0; - } else { - return end.diff(start, unit).get(unit); - } - }; - if (opts.unit) { - return format(differ(opts.unit), opts.unit); - } - for (const unit of opts.units) { - const count = differ(unit); - if (Math.abs(count) >= 1) { - return format(count, unit); - } - } - return format(start > end ? -0 : 0, opts.units[opts.units.length - 1]); -} -function lastOpts(argList) { - let opts = {}, args; - if (argList.length > 0 && typeof argList[argList.length - 1] === "object") { - opts = argList[argList.length - 1]; - args = Array.from(argList).slice(0, argList.length - 1); - } else { - args = Array.from(argList); - } - return [opts, args]; -} -var DateTime = class _DateTime { - /** - * @access private - */ - constructor(config) { - const zone = config.zone || Settings.defaultZone; - let invalid = config.invalid || (Number.isNaN(config.ts) ? new Invalid("invalid input") : null) || (!zone.isValid ? unsupportedZone(zone) : null); - this.ts = isUndefined(config.ts) ? Settings.now() : config.ts; - let c = null, o = null; - if (!invalid) { - const unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone); - if (unchanged) { - [c, o] = [config.old.c, config.old.o]; - } else { - const ot = zone.offset(this.ts); - c = tsToObj(this.ts, ot); - invalid = Number.isNaN(c.year) ? new Invalid("invalid input") : null; - c = invalid ? null : c; - o = invalid ? null : ot; - } - } - this._zone = zone; - this.loc = config.loc || Locale.create(); - this.invalid = invalid; - this.weekData = null; - this.localWeekData = null; - this.c = c; - this.o = o; - this.isLuxonDateTime = true; - } - // CONSTRUCT - /** - * Create a DateTime for the current instant, in the system's time zone. - * - * Use Settings to override these default values if needed. - * @example DateTime.now().toISO() //~> now in the ISO format - * @return {DateTime} - */ - static now() { - return new _DateTime({}); - } - /** - * Create a local DateTime - * @param {number} [year] - The calendar year. If omitted (as in, call `local()` with no arguments), the current time will be used - * @param {number} [month=1] - The month, 1-indexed - * @param {number} [day=1] - The day of the month, 1-indexed - * @param {number} [hour=0] - The hour of the day, in 24-hour time - * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59 - * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59 - * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999 - * @example DateTime.local() //~> now - * @example DateTime.local({ zone: "America/New_York" }) //~> now, in US east coast time - * @example DateTime.local(2017) //~> 2017-01-01T00:00:00 - * @example DateTime.local(2017, 3) //~> 2017-03-01T00:00:00 - * @example DateTime.local(2017, 3, 12, { locale: "fr" }) //~> 2017-03-12T00:00:00, with a French locale - * @example DateTime.local(2017, 3, 12, 5) //~> 2017-03-12T05:00:00 - * @example DateTime.local(2017, 3, 12, 5, { zone: "utc" }) //~> 2017-03-12T05:00:00, in UTC - * @example DateTime.local(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00 - * @example DateTime.local(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10 - * @example DateTime.local(2017, 3, 12, 5, 45, 10, 765) //~> 2017-03-12T05:45:10.765 - * @return {DateTime} - */ - static local() { - const [opts, args] = lastOpts(arguments), [year, month, day, hour, minute, second, millisecond] = args; - return quickDT({ year, month, day, hour, minute, second, millisecond }, opts); - } - /** - * Create a DateTime in UTC - * @param {number} [year] - The calendar year. If omitted (as in, call `utc()` with no arguments), the current time will be used - * @param {number} [month=1] - The month, 1-indexed - * @param {number} [day=1] - The day of the month - * @param {number} [hour=0] - The hour of the day, in 24-hour time - * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59 - * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59 - * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999 - * @param {Object} options - configuration options for the DateTime - * @param {string} [options.locale] - a locale to set on the resulting DateTime instance - * @param {string} [options.outputCalendar] - the output calendar to set on the resulting DateTime instance - * @param {string} [options.numberingSystem] - the numbering system to set on the resulting DateTime instance - * @example DateTime.utc() //~> now - * @example DateTime.utc(2017) //~> 2017-01-01T00:00:00Z - * @example DateTime.utc(2017, 3) //~> 2017-03-01T00:00:00Z - * @example DateTime.utc(2017, 3, 12) //~> 2017-03-12T00:00:00Z - * @example DateTime.utc(2017, 3, 12, 5) //~> 2017-03-12T05:00:00Z - * @example DateTime.utc(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00Z - * @example DateTime.utc(2017, 3, 12, 5, 45, { locale: "fr" }) //~> 2017-03-12T05:45:00Z with a French locale - * @example DateTime.utc(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10Z - * @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765, { locale: "fr" }) //~> 2017-03-12T05:45:10.765Z with a French locale - * @return {DateTime} - */ - static utc() { - const [opts, args] = lastOpts(arguments), [year, month, day, hour, minute, second, millisecond] = args; - opts.zone = FixedOffsetZone.utcInstance; - return quickDT({ year, month, day, hour, minute, second, millisecond }, opts); - } - /** - * Create a DateTime from a JavaScript Date object. Uses the default zone. - * @param {Date} date - a JavaScript Date object - * @param {Object} options - configuration options for the DateTime - * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into - * @return {DateTime} - */ - static fromJSDate(date, options = {}) { - const ts = isDate(date) ? date.valueOf() : NaN; - if (Number.isNaN(ts)) { - return _DateTime.invalid("invalid input"); - } - const zoneToUse = normalizeZone(options.zone, Settings.defaultZone); - if (!zoneToUse.isValid) { - return _DateTime.invalid(unsupportedZone(zoneToUse)); - } - return new _DateTime({ - ts, - zone: zoneToUse, - loc: Locale.fromObject(options) - }); - } - /** - * Create a DateTime from a number of milliseconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone. - * @param {number} milliseconds - a number of milliseconds since 1970 UTC - * @param {Object} options - configuration options for the DateTime - * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into - * @param {string} [options.locale] - a locale to set on the resulting DateTime instance - * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance - * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance - * @return {DateTime} - */ - static fromMillis(milliseconds, options = {}) { - if (!isNumber(milliseconds)) { - throw new InvalidArgumentError( - `fromMillis requires a numerical input, but received a ${typeof milliseconds} with value ${milliseconds}` - ); - } else if (milliseconds < -MAX_DATE || milliseconds > MAX_DATE) { - return _DateTime.invalid("Timestamp out of range"); - } else { - return new _DateTime({ - ts: milliseconds, - zone: normalizeZone(options.zone, Settings.defaultZone), - loc: Locale.fromObject(options) - }); - } - } - /** - * Create a DateTime from a number of seconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone. - * @param {number} seconds - a number of seconds since 1970 UTC - * @param {Object} options - configuration options for the DateTime - * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into - * @param {string} [options.locale] - a locale to set on the resulting DateTime instance - * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance - * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance - * @return {DateTime} - */ - static fromSeconds(seconds, options = {}) { - if (!isNumber(seconds)) { - throw new InvalidArgumentError("fromSeconds requires a numerical input"); - } else { - return new _DateTime({ - ts: seconds * 1e3, - zone: normalizeZone(options.zone, Settings.defaultZone), - loc: Locale.fromObject(options) - }); - } - } - /** - * Create a DateTime from a JavaScript object with keys like 'year' and 'hour' with reasonable defaults. - * @param {Object} obj - the object to create the DateTime from - * @param {number} obj.year - a year, such as 1987 - * @param {number} obj.month - a month, 1-12 - * @param {number} obj.day - a day of the month, 1-31, depending on the month - * @param {number} obj.ordinal - day of the year, 1-365 or 366 - * @param {number} obj.weekYear - an ISO week year - * @param {number} obj.weekNumber - an ISO week number, between 1 and 52 or 53, depending on the year - * @param {number} obj.weekday - an ISO weekday, 1-7, where 1 is Monday and 7 is Sunday - * @param {number} obj.localWeekYear - a week year, according to the locale - * @param {number} obj.localWeekNumber - a week number, between 1 and 52 or 53, depending on the year, according to the locale - * @param {number} obj.localWeekday - a weekday, 1-7, where 1 is the first and 7 is the last day of the week, according to the locale - * @param {number} obj.hour - hour of the day, 0-23 - * @param {number} obj.minute - minute of the hour, 0-59 - * @param {number} obj.second - second of the minute, 0-59 - * @param {number} obj.millisecond - millisecond of the second, 0-999 - * @param {Object} opts - options for creating this DateTime - * @param {string|Zone} [opts.zone='local'] - interpret the numbers in the context of a particular zone. Can take any value taken as the first argument to setZone() - * @param {string} [opts.locale='system\'s locale'] - a locale to set on the resulting DateTime instance - * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance - * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance - * @example DateTime.fromObject({ year: 1982, month: 5, day: 25}).toISODate() //=> '1982-05-25' - * @example DateTime.fromObject({ year: 1982 }).toISODate() //=> '1982-01-01' - * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }) //~> today at 10:26:06 - * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'utc' }), - * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'local' }) - * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'America/New_York' }) - * @example DateTime.fromObject({ weekYear: 2016, weekNumber: 2, weekday: 3 }).toISODate() //=> '2016-01-13' - * @example DateTime.fromObject({ localWeekYear: 2022, localWeekNumber: 1, localWeekday: 1 }, { locale: "en-US" }).toISODate() //=> '2021-12-26' - * @return {DateTime} - */ - static fromObject(obj, opts = {}) { - obj = obj || {}; - const zoneToUse = normalizeZone(opts.zone, Settings.defaultZone); - if (!zoneToUse.isValid) { - return _DateTime.invalid(unsupportedZone(zoneToUse)); - } - const loc = Locale.fromObject(opts); - const normalized = normalizeObject(obj, normalizeUnitWithLocalWeeks); - const { minDaysInFirstWeek, startOfWeek } = usesLocalWeekValues(normalized, loc); - const tsNow = Settings.now(), offsetProvis = !isUndefined(opts.specificOffset) ? opts.specificOffset : zoneToUse.offset(tsNow), containsOrdinal = !isUndefined(normalized.ordinal), containsGregorYear = !isUndefined(normalized.year), containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day), containsGregor = containsGregorYear || containsGregorMD, definiteWeekDef = normalized.weekYear || normalized.weekNumber; - if ((containsGregor || containsOrdinal) && definiteWeekDef) { - throw new ConflictingSpecificationError( - "Can't mix weekYear/weekNumber units with year/month/day or ordinals" - ); - } - if (containsGregorMD && containsOrdinal) { - throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day"); - } - const useWeekData = definiteWeekDef || normalized.weekday && !containsGregor; - let units, defaultValues, objNow = tsToObj(tsNow, offsetProvis); - if (useWeekData) { - units = orderedWeekUnits; - defaultValues = defaultWeekUnitValues; - objNow = gregorianToWeek(objNow, minDaysInFirstWeek, startOfWeek); - } else if (containsOrdinal) { - units = orderedOrdinalUnits; - defaultValues = defaultOrdinalUnitValues; - objNow = gregorianToOrdinal(objNow); - } else { - units = orderedUnits2; - defaultValues = defaultUnitValues; - } - let foundFirst = false; - for (const u of units) { - const v = normalized[u]; - if (!isUndefined(v)) { - foundFirst = true; - } else if (foundFirst) { - normalized[u] = defaultValues[u]; - } else { - normalized[u] = objNow[u]; - } - } - const higherOrderInvalid = useWeekData ? hasInvalidWeekData(normalized, minDaysInFirstWeek, startOfWeek) : containsOrdinal ? hasInvalidOrdinalData(normalized) : hasInvalidGregorianData(normalized), invalid = higherOrderInvalid || hasInvalidTimeData(normalized); - if (invalid) { - return _DateTime.invalid(invalid); - } - const gregorian = useWeekData ? weekToGregorian(normalized, minDaysInFirstWeek, startOfWeek) : containsOrdinal ? ordinalToGregorian(normalized) : normalized, [tsFinal, offsetFinal] = objToTS(gregorian, offsetProvis, zoneToUse), inst = new _DateTime({ - ts: tsFinal, - zone: zoneToUse, - o: offsetFinal, - loc - }); - if (normalized.weekday && containsGregor && obj.weekday !== inst.weekday) { - return _DateTime.invalid( - "mismatched weekday", - `you can't specify both a weekday of ${normalized.weekday} and a date of ${inst.toISO()}` - ); - } - return inst; - } - /** - * Create a DateTime from an ISO 8601 string - * @param {string} text - the ISO string - * @param {Object} opts - options to affect the creation - * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the time to this zone - * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one - * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance - * @param {string} [opts.outputCalendar] - the output calendar to set on the resulting DateTime instance - * @param {string} [opts.numberingSystem] - the numbering system to set on the resulting DateTime instance - * @example DateTime.fromISO('2016-05-25T09:08:34.123') - * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00') - * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00', {setZone: true}) - * @example DateTime.fromISO('2016-05-25T09:08:34.123', {zone: 'utc'}) - * @example DateTime.fromISO('2016-W05-4') - * @return {DateTime} - */ - static fromISO(text2, opts = {}) { - const [vals, parsedZone] = parseISODate(text2); - return parseDataToDateTime(vals, parsedZone, opts, "ISO 8601", text2); - } - /** - * Create a DateTime from an RFC 2822 string - * @param {string} text - the RFC 2822 string - * @param {Object} opts - options to affect the creation - * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since the offset is always specified in the string itself, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in. - * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one - * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance - * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance - * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance - * @example DateTime.fromRFC2822('25 Nov 2016 13:23:12 GMT') - * @example DateTime.fromRFC2822('Fri, 25 Nov 2016 13:23:12 +0600') - * @example DateTime.fromRFC2822('25 Nov 2016 13:23 Z') - * @return {DateTime} - */ - static fromRFC2822(text2, opts = {}) { - const [vals, parsedZone] = parseRFC2822Date(text2); - return parseDataToDateTime(vals, parsedZone, opts, "RFC 2822", text2); - } - /** - * Create a DateTime from an HTTP header date - * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1 - * @param {string} text - the HTTP header date - * @param {Object} opts - options to affect the creation - * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since HTTP dates are always in UTC, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in. - * @param {boolean} [opts.setZone=false] - override the zone with the fixed-offset zone specified in the string. For HTTP dates, this is always UTC, so this option is equivalent to setting the `zone` option to 'utc', but this option is included for consistency with similar methods. - * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance - * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance - * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance - * @example DateTime.fromHTTP('Sun, 06 Nov 1994 08:49:37 GMT') - * @example DateTime.fromHTTP('Sunday, 06-Nov-94 08:49:37 GMT') - * @example DateTime.fromHTTP('Sun Nov 6 08:49:37 1994') - * @return {DateTime} - */ - static fromHTTP(text2, opts = {}) { - const [vals, parsedZone] = parseHTTPDate(text2); - return parseDataToDateTime(vals, parsedZone, opts, "HTTP", opts); - } - /** - * Create a DateTime from an input string and format string. - * Defaults to en-US if no locale has been specified, regardless of the system's locale. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/parsing?id=table-of-tokens). - * @param {string} text - the string to parse - * @param {string} fmt - the format the string is expected to be in (see the link below for the formats) - * @param {Object} opts - options to affect the creation - * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone - * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one - * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale - * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system - * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance - * @return {DateTime} - */ - static fromFormat(text2, fmt, opts = {}) { - if (isUndefined(text2) || isUndefined(fmt)) { - throw new InvalidArgumentError("fromFormat requires an input string and a format"); - } - const { locale = null, numberingSystem = null } = opts, localeToUse = Locale.fromOpts({ - locale, - numberingSystem, - defaultToEN: true - }), [vals, parsedZone, specificOffset, invalid] = parseFromTokens(localeToUse, text2, fmt); - if (invalid) { - return _DateTime.invalid(invalid); - } else { - return parseDataToDateTime(vals, parsedZone, opts, `format ${fmt}`, text2, specificOffset); - } - } - /** - * @deprecated use fromFormat instead - */ - static fromString(text2, fmt, opts = {}) { - return _DateTime.fromFormat(text2, fmt, opts); - } - /** - * Create a DateTime from a SQL date, time, or datetime - * Defaults to en-US if no locale has been specified, regardless of the system's locale - * @param {string} text - the string to parse - * @param {Object} opts - options to affect the creation - * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone - * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one - * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale - * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system - * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance - * @example DateTime.fromSQL('2017-05-15') - * @example DateTime.fromSQL('2017-05-15 09:12:34') - * @example DateTime.fromSQL('2017-05-15 09:12:34.342') - * @example DateTime.fromSQL('2017-05-15 09:12:34.342+06:00') - * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles') - * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles', { setZone: true }) - * @example DateTime.fromSQL('2017-05-15 09:12:34.342', { zone: 'America/Los_Angeles' }) - * @example DateTime.fromSQL('09:12:34.342') - * @return {DateTime} - */ - static fromSQL(text2, opts = {}) { - const [vals, parsedZone] = parseSQL(text2); - return parseDataToDateTime(vals, parsedZone, opts, "SQL", text2); - } - /** - * Create an invalid DateTime. - * @param {string} reason - simple string of why this DateTime is invalid. Should not contain parameters or anything else data-dependent. - * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information - * @return {DateTime} - */ - static invalid(reason, explanation = null) { - if (!reason) { - throw new InvalidArgumentError("need to specify a reason the DateTime is invalid"); - } - const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation); - if (Settings.throwOnInvalid) { - throw new InvalidDateTimeError(invalid); - } else { - return new _DateTime({ invalid }); - } - } - /** - * Check if an object is an instance of DateTime. Works across context boundaries - * @param {object} o - * @return {boolean} - */ - static isDateTime(o) { - return o && o.isLuxonDateTime || false; - } - /** - * Produce the format string for a set of options - * @param formatOpts - * @param localeOpts - * @returns {string} - */ - static parseFormatForOpts(formatOpts, localeOpts = {}) { - const tokenList = formatOptsToTokens(formatOpts, Locale.fromObject(localeOpts)); - return !tokenList ? null : tokenList.map((t) => t ? t.val : null).join(""); - } - /** - * Produce the the fully expanded format token for the locale - * Does NOT quote characters, so quoted tokens will not round trip correctly - * @param fmt - * @param localeOpts - * @returns {string} - */ - static expandFormat(fmt, localeOpts = {}) { - const expanded = expandMacroTokens(Formatter.parseFormat(fmt), Locale.fromObject(localeOpts)); - return expanded.map((t) => t.val).join(""); - } - // INFO - /** - * Get the value of unit. - * @param {string} unit - a unit such as 'minute' or 'day' - * @example DateTime.local(2017, 7, 4).get('month'); //=> 7 - * @example DateTime.local(2017, 7, 4).get('day'); //=> 4 - * @return {number} - */ - get(unit) { - return this[unit]; - } - /** - * Returns whether the DateTime is valid. Invalid DateTimes occur when: - * * The DateTime was created from invalid calendar information, such as the 13th month or February 30 - * * The DateTime was created by an operation on another invalid date - * @type {boolean} - */ - get isValid() { - return this.invalid === null; - } - /** - * Returns an error code if this DateTime is invalid, or null if the DateTime is valid - * @type {string} - */ - get invalidReason() { - return this.invalid ? this.invalid.reason : null; - } - /** - * Returns an explanation of why this DateTime became invalid, or null if the DateTime is valid - * @type {string} - */ - get invalidExplanation() { - return this.invalid ? this.invalid.explanation : null; - } - /** - * Get the locale of a DateTime, such 'en-GB'. The locale is used when formatting the DateTime - * - * @type {string} - */ - get locale() { - return this.isValid ? this.loc.locale : null; - } - /** - * Get the numbering system of a DateTime, such 'beng'. The numbering system is used when formatting the DateTime - * - * @type {string} - */ - get numberingSystem() { - return this.isValid ? this.loc.numberingSystem : null; - } - /** - * Get the output calendar of a DateTime, such 'islamic'. The output calendar is used when formatting the DateTime - * - * @type {string} - */ - get outputCalendar() { - return this.isValid ? this.loc.outputCalendar : null; - } - /** - * Get the time zone associated with this DateTime. - * @type {Zone} - */ - get zone() { - return this._zone; - } - /** - * Get the name of the time zone. - * @type {string} - */ - get zoneName() { - return this.isValid ? this.zone.name : null; - } - /** - * Get the year - * @example DateTime.local(2017, 5, 25).year //=> 2017 - * @type {number} - */ - get year() { - return this.isValid ? this.c.year : NaN; - } - /** - * Get the quarter - * @example DateTime.local(2017, 5, 25).quarter //=> 2 - * @type {number} - */ - get quarter() { - return this.isValid ? Math.ceil(this.c.month / 3) : NaN; - } - /** - * Get the month (1-12). - * @example DateTime.local(2017, 5, 25).month //=> 5 - * @type {number} - */ - get month() { - return this.isValid ? this.c.month : NaN; - } - /** - * Get the day of the month (1-30ish). - * @example DateTime.local(2017, 5, 25).day //=> 25 - * @type {number} - */ - get day() { - return this.isValid ? this.c.day : NaN; - } - /** - * Get the hour of the day (0-23). - * @example DateTime.local(2017, 5, 25, 9).hour //=> 9 - * @type {number} - */ - get hour() { - return this.isValid ? this.c.hour : NaN; - } - /** - * Get the minute of the hour (0-59). - * @example DateTime.local(2017, 5, 25, 9, 30).minute //=> 30 - * @type {number} - */ - get minute() { - return this.isValid ? this.c.minute : NaN; - } - /** - * Get the second of the minute (0-59). - * @example DateTime.local(2017, 5, 25, 9, 30, 52).second //=> 52 - * @type {number} - */ - get second() { - return this.isValid ? this.c.second : NaN; - } - /** - * Get the millisecond of the second (0-999). - * @example DateTime.local(2017, 5, 25, 9, 30, 52, 654).millisecond //=> 654 - * @type {number} - */ - get millisecond() { - return this.isValid ? this.c.millisecond : NaN; - } - /** - * Get the week year - * @see https://en.wikipedia.org/wiki/ISO_week_date - * @example DateTime.local(2014, 12, 31).weekYear //=> 2015 - * @type {number} - */ - get weekYear() { - return this.isValid ? possiblyCachedWeekData(this).weekYear : NaN; - } - /** - * Get the week number of the week year (1-52ish). - * @see https://en.wikipedia.org/wiki/ISO_week_date - * @example DateTime.local(2017, 5, 25).weekNumber //=> 21 - * @type {number} - */ - get weekNumber() { - return this.isValid ? possiblyCachedWeekData(this).weekNumber : NaN; - } - /** - * Get the day of the week. - * 1 is Monday and 7 is Sunday - * @see https://en.wikipedia.org/wiki/ISO_week_date - * @example DateTime.local(2014, 11, 31).weekday //=> 4 - * @type {number} - */ - get weekday() { - return this.isValid ? possiblyCachedWeekData(this).weekday : NaN; - } - /** - * Returns true if this date is on a weekend according to the locale, false otherwise - * @returns {boolean} - */ - get isWeekend() { - return this.isValid && this.loc.getWeekendDays().includes(this.weekday); - } - /** - * Get the day of the week according to the locale. - * 1 is the first day of the week and 7 is the last day of the week. - * If the locale assigns Sunday as the first day of the week, then a date which is a Sunday will return 1, - * @returns {number} - */ - get localWeekday() { - return this.isValid ? possiblyCachedLocalWeekData(this).weekday : NaN; - } - /** - * Get the week number of the week year according to the locale. Different locales assign week numbers differently, - * because the week can start on different days of the week (see localWeekday) and because a different number of days - * is required for a week to count as the first week of a year. - * @returns {number} - */ - get localWeekNumber() { - return this.isValid ? possiblyCachedLocalWeekData(this).weekNumber : NaN; - } - /** - * Get the week year according to the locale. Different locales assign week numbers (and therefor week years) - * differently, see localWeekNumber. - * @returns {number} - */ - get localWeekYear() { - return this.isValid ? possiblyCachedLocalWeekData(this).weekYear : NaN; - } - /** - * Get the ordinal (meaning the day of the year) - * @example DateTime.local(2017, 5, 25).ordinal //=> 145 - * @type {number|DateTime} - */ - get ordinal() { - return this.isValid ? gregorianToOrdinal(this.c).ordinal : NaN; - } - /** - * Get the human readable short month name, such as 'Oct'. - * Defaults to the system's locale if no locale has been specified - * @example DateTime.local(2017, 10, 30).monthShort //=> Oct - * @type {string} - */ - get monthShort() { - return this.isValid ? Info.months("short", { locObj: this.loc })[this.month - 1] : null; - } - /** - * Get the human readable long month name, such as 'October'. - * Defaults to the system's locale if no locale has been specified - * @example DateTime.local(2017, 10, 30).monthLong //=> October - * @type {string} - */ - get monthLong() { - return this.isValid ? Info.months("long", { locObj: this.loc })[this.month - 1] : null; - } - /** - * Get the human readable short weekday, such as 'Mon'. - * Defaults to the system's locale if no locale has been specified - * @example DateTime.local(2017, 10, 30).weekdayShort //=> Mon - * @type {string} - */ - get weekdayShort() { - return this.isValid ? Info.weekdays("short", { locObj: this.loc })[this.weekday - 1] : null; - } - /** - * Get the human readable long weekday, such as 'Monday'. - * Defaults to the system's locale if no locale has been specified - * @example DateTime.local(2017, 10, 30).weekdayLong //=> Monday - * @type {string} - */ - get weekdayLong() { - return this.isValid ? Info.weekdays("long", { locObj: this.loc })[this.weekday - 1] : null; - } - /** - * Get the UTC offset of this DateTime in minutes - * @example DateTime.now().offset //=> -240 - * @example DateTime.utc().offset //=> 0 - * @type {number} - */ - get offset() { - return this.isValid ? +this.o : NaN; - } - /** - * Get the short human name for the zone's current offset, for example "EST" or "EDT". - * Defaults to the system's locale if no locale has been specified - * @type {string} - */ - get offsetNameShort() { - if (this.isValid) { - return this.zone.offsetName(this.ts, { - format: "short", - locale: this.locale - }); - } else { - return null; - } - } - /** - * Get the long human name for the zone's current offset, for example "Eastern Standard Time" or "Eastern Daylight Time". - * Defaults to the system's locale if no locale has been specified - * @type {string} - */ - get offsetNameLong() { - if (this.isValid) { - return this.zone.offsetName(this.ts, { - format: "long", - locale: this.locale - }); - } else { - return null; - } - } - /** - * Get whether this zone's offset ever changes, as in a DST. - * @type {boolean} - */ - get isOffsetFixed() { - return this.isValid ? this.zone.isUniversal : null; - } - /** - * Get whether the DateTime is in a DST. - * @type {boolean} - */ - get isInDST() { - if (this.isOffsetFixed) { - return false; - } else { - return this.offset > this.set({ month: 1, day: 1 }).offset || this.offset > this.set({ month: 5 }).offset; - } - } - /** - * Get those DateTimes which have the same local time as this DateTime, but a different offset from UTC - * in this DateTime's zone. During DST changes local time can be ambiguous, for example - * `2023-10-29T02:30:00` in `Europe/Berlin` can have offset `+01:00` or `+02:00`. - * This method will return both possible DateTimes if this DateTime's local time is ambiguous. - * @returns {DateTime[]} - */ - getPossibleOffsets() { - if (!this.isValid || this.isOffsetFixed) { - return [this]; - } - const dayMs = 864e5; - const minuteMs = 6e4; - const localTS = objToLocalTS(this.c); - const oEarlier = this.zone.offset(localTS - dayMs); - const oLater = this.zone.offset(localTS + dayMs); - const o1 = this.zone.offset(localTS - oEarlier * minuteMs); - const o2 = this.zone.offset(localTS - oLater * minuteMs); - if (o1 === o2) { - return [this]; - } - const ts1 = localTS - o1 * minuteMs; - const ts2 = localTS - o2 * minuteMs; - const c1 = tsToObj(ts1, o1); - const c2 = tsToObj(ts2, o2); - if (c1.hour === c2.hour && c1.minute === c2.minute && c1.second === c2.second && c1.millisecond === c2.millisecond) { - return [clone2(this, { ts: ts1 }), clone2(this, { ts: ts2 })]; - } - return [this]; - } - /** - * Returns true if this DateTime is in a leap year, false otherwise - * @example DateTime.local(2016).isInLeapYear //=> true - * @example DateTime.local(2013).isInLeapYear //=> false - * @type {boolean} - */ - get isInLeapYear() { - return isLeapYear(this.year); - } - /** - * Returns the number of days in this DateTime's month - * @example DateTime.local(2016, 2).daysInMonth //=> 29 - * @example DateTime.local(2016, 3).daysInMonth //=> 31 - * @type {number} - */ - get daysInMonth() { - return daysInMonth(this.year, this.month); - } - /** - * Returns the number of days in this DateTime's year - * @example DateTime.local(2016).daysInYear //=> 366 - * @example DateTime.local(2013).daysInYear //=> 365 - * @type {number} - */ - get daysInYear() { - return this.isValid ? daysInYear(this.year) : NaN; - } - /** - * Returns the number of weeks in this DateTime's year - * @see https://en.wikipedia.org/wiki/ISO_week_date - * @example DateTime.local(2004).weeksInWeekYear //=> 53 - * @example DateTime.local(2013).weeksInWeekYear //=> 52 - * @type {number} - */ - get weeksInWeekYear() { - return this.isValid ? weeksInWeekYear(this.weekYear) : NaN; - } - /** - * Returns the number of weeks in this DateTime's local week year - * @example DateTime.local(2020, 6, {locale: 'en-US'}).weeksInLocalWeekYear //=> 52 - * @example DateTime.local(2020, 6, {locale: 'de-DE'}).weeksInLocalWeekYear //=> 53 - * @type {number} - */ - get weeksInLocalWeekYear() { - return this.isValid ? weeksInWeekYear( - this.localWeekYear, - this.loc.getMinDaysInFirstWeek(), - this.loc.getStartOfWeek() - ) : NaN; - } - /** - * Returns the resolved Intl options for this DateTime. - * This is useful in understanding the behavior of formatting methods - * @param {Object} opts - the same options as toLocaleString - * @return {Object} - */ - resolvedLocaleOptions(opts = {}) { - const { locale, numberingSystem, calendar } = Formatter.create( - this.loc.clone(opts), - opts - ).resolvedOptions(this); - return { locale, numberingSystem, outputCalendar: calendar }; - } - // TRANSFORM - /** - * "Set" the DateTime's zone to UTC. Returns a newly-constructed DateTime. - * - * Equivalent to {@link DateTime#setZone}('utc') - * @param {number} [offset=0] - optionally, an offset from UTC in minutes - * @param {Object} [opts={}] - options to pass to `setZone()` - * @return {DateTime} - */ - toUTC(offset2 = 0, opts = {}) { - return this.setZone(FixedOffsetZone.instance(offset2), opts); - } - /** - * "Set" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime. - * - * Equivalent to `setZone('local')` - * @return {DateTime} - */ - toLocal() { - return this.setZone(Settings.defaultZone); - } - /** - * "Set" the DateTime's zone to specified zone. Returns a newly-constructed DateTime. - * - * By default, the setter keeps the underlying time the same (as in, the same timestamp), but the new instance will report different local times and consider DSTs when making computations, as with {@link DateTime#plus}. You may wish to use {@link DateTime#toLocal} and {@link DateTime#toUTC} which provide simple convenience wrappers for commonly used zones. - * @param {string|Zone} [zone='local'] - a zone identifier. As a string, that can be any IANA zone supported by the host environment, or a fixed-offset name of the form 'UTC+3', or the strings 'local' or 'utc'. You may also supply an instance of a {@link DateTime#Zone} class. - * @param {Object} opts - options - * @param {boolean} [opts.keepLocalTime=false] - If true, adjust the underlying time so that the local time stays the same, but in the target zone. You should rarely need this. - * @return {DateTime} - */ - setZone(zone, { keepLocalTime = false, keepCalendarTime = false } = {}) { - zone = normalizeZone(zone, Settings.defaultZone); - if (zone.equals(this.zone)) { - return this; - } else if (!zone.isValid) { - return _DateTime.invalid(unsupportedZone(zone)); - } else { - let newTS = this.ts; - if (keepLocalTime || keepCalendarTime) { - const offsetGuess = zone.offset(this.ts); - const asObj = this.toObject(); - [newTS] = objToTS(asObj, offsetGuess, zone); - } - return clone2(this, { ts: newTS, zone }); - } - } - /** - * "Set" the locale, numberingSystem, or outputCalendar. Returns a newly-constructed DateTime. - * @param {Object} properties - the properties to set - * @example DateTime.local(2017, 5, 25).reconfigure({ locale: 'en-GB' }) - * @return {DateTime} - */ - reconfigure({ locale, numberingSystem, outputCalendar } = {}) { - const loc = this.loc.clone({ locale, numberingSystem, outputCalendar }); - return clone2(this, { loc }); - } - /** - * "Set" the locale. Returns a newly-constructed DateTime. - * Just a convenient alias for reconfigure({ locale }) - * @example DateTime.local(2017, 5, 25).setLocale('en-GB') - * @return {DateTime} - */ - setLocale(locale) { - return this.reconfigure({ locale }); - } - /** - * "Set" the values of specified units. Returns a newly-constructed DateTime. - * You can only set units with this method; for "setting" metadata, see {@link DateTime#reconfigure} and {@link DateTime#setZone}. - * - * This method also supports setting locale-based week units, i.e. `localWeekday`, `localWeekNumber` and `localWeekYear`. - * They cannot be mixed with ISO-week units like `weekday`. - * @param {Object} values - a mapping of units to numbers - * @example dt.set({ year: 2017 }) - * @example dt.set({ hour: 8, minute: 30 }) - * @example dt.set({ weekday: 5 }) - * @example dt.set({ year: 2005, ordinal: 234 }) - * @return {DateTime} - */ - set(values) { - if (!this.isValid) - return this; - const normalized = normalizeObject(values, normalizeUnitWithLocalWeeks); - const { minDaysInFirstWeek, startOfWeek } = usesLocalWeekValues(normalized, this.loc); - const settingWeekStuff = !isUndefined(normalized.weekYear) || !isUndefined(normalized.weekNumber) || !isUndefined(normalized.weekday), containsOrdinal = !isUndefined(normalized.ordinal), containsGregorYear = !isUndefined(normalized.year), containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day), containsGregor = containsGregorYear || containsGregorMD, definiteWeekDef = normalized.weekYear || normalized.weekNumber; - if ((containsGregor || containsOrdinal) && definiteWeekDef) { - throw new ConflictingSpecificationError( - "Can't mix weekYear/weekNumber units with year/month/day or ordinals" - ); - } - if (containsGregorMD && containsOrdinal) { - throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day"); - } - let mixed; - if (settingWeekStuff) { - mixed = weekToGregorian( - { ...gregorianToWeek(this.c, minDaysInFirstWeek, startOfWeek), ...normalized }, - minDaysInFirstWeek, - startOfWeek - ); - } else if (!isUndefined(normalized.ordinal)) { - mixed = ordinalToGregorian({ ...gregorianToOrdinal(this.c), ...normalized }); - } else { - mixed = { ...this.toObject(), ...normalized }; - if (isUndefined(normalized.day)) { - mixed.day = Math.min(daysInMonth(mixed.year, mixed.month), mixed.day); - } - } - const [ts, o] = objToTS(mixed, this.o, this.zone); - return clone2(this, { ts, o }); - } - /** - * Add a period of time to this DateTime and return the resulting DateTime - * - * Adding hours, minutes, seconds, or milliseconds increases the timestamp by the right number of milliseconds. Adding days, months, or years shifts the calendar, accounting for DSTs and leap years along the way. Thus, `dt.plus({ hours: 24 })` may result in a different time than `dt.plus({ days: 1 })` if there's a DST shift in between. - * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject() - * @example DateTime.now().plus(123) //~> in 123 milliseconds - * @example DateTime.now().plus({ minutes: 15 }) //~> in 15 minutes - * @example DateTime.now().plus({ days: 1 }) //~> this time tomorrow - * @example DateTime.now().plus({ days: -1 }) //~> this time yesterday - * @example DateTime.now().plus({ hours: 3, minutes: 13 }) //~> in 3 hr, 13 min - * @example DateTime.now().plus(Duration.fromObject({ hours: 3, minutes: 13 })) //~> in 3 hr, 13 min - * @return {DateTime} - */ - plus(duration) { - if (!this.isValid) - return this; - const dur = Duration.fromDurationLike(duration); - return clone2(this, adjustTime(this, dur)); - } - /** - * Subtract a period of time to this DateTime and return the resulting DateTime - * See {@link DateTime#plus} - * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject() - @return {DateTime} - */ - minus(duration) { - if (!this.isValid) - return this; - const dur = Duration.fromDurationLike(duration).negate(); - return clone2(this, adjustTime(this, dur)); - } - /** - * "Set" this DateTime to the beginning of a unit of time. - * @param {string} unit - The unit to go to the beginning of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'. - * @param {Object} opts - options - * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week - * @example DateTime.local(2014, 3, 3).startOf('month').toISODate(); //=> '2014-03-01' - * @example DateTime.local(2014, 3, 3).startOf('year').toISODate(); //=> '2014-01-01' - * @example DateTime.local(2014, 3, 3).startOf('week').toISODate(); //=> '2014-03-03', weeks always start on Mondays - * @example DateTime.local(2014, 3, 3, 5, 30).startOf('day').toISOTime(); //=> '00:00.000-05:00' - * @example DateTime.local(2014, 3, 3, 5, 30).startOf('hour').toISOTime(); //=> '05:00:00.000-05:00' - * @return {DateTime} - */ - startOf(unit, { useLocaleWeeks = false } = {}) { - if (!this.isValid) - return this; - const o = {}, normalizedUnit = Duration.normalizeUnit(unit); - switch (normalizedUnit) { - case "years": - o.month = 1; - case "quarters": - case "months": - o.day = 1; - case "weeks": - case "days": - o.hour = 0; - case "hours": - o.minute = 0; - case "minutes": - o.second = 0; - case "seconds": - o.millisecond = 0; - break; - case "milliseconds": - break; - } - if (normalizedUnit === "weeks") { - if (useLocaleWeeks) { - const startOfWeek = this.loc.getStartOfWeek(); - const { weekday } = this; - if (weekday < startOfWeek) { - o.weekNumber = this.weekNumber - 1; - } - o.weekday = startOfWeek; - } else { - o.weekday = 1; - } - } - if (normalizedUnit === "quarters") { - const q = Math.ceil(this.month / 3); - o.month = (q - 1) * 3 + 1; - } - return this.set(o); - } - /** - * "Set" this DateTime to the end (meaning the last millisecond) of a unit of time - * @param {string} unit - The unit to go to the end of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'. - * @param {Object} opts - options - * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week - * @example DateTime.local(2014, 3, 3).endOf('month').toISO(); //=> '2014-03-31T23:59:59.999-05:00' - * @example DateTime.local(2014, 3, 3).endOf('year').toISO(); //=> '2014-12-31T23:59:59.999-05:00' - * @example DateTime.local(2014, 3, 3).endOf('week').toISO(); // => '2014-03-09T23:59:59.999-05:00', weeks start on Mondays - * @example DateTime.local(2014, 3, 3, 5, 30).endOf('day').toISO(); //=> '2014-03-03T23:59:59.999-05:00' - * @example DateTime.local(2014, 3, 3, 5, 30).endOf('hour').toISO(); //=> '2014-03-03T05:59:59.999-05:00' - * @return {DateTime} - */ - endOf(unit, opts) { - return this.isValid ? this.plus({ [unit]: 1 }).startOf(unit, opts).minus(1) : this; - } - // OUTPUT - /** - * Returns a string representation of this DateTime formatted according to the specified format string. - * **You may not want this.** See {@link DateTime#toLocaleString} for a more flexible formatting tool. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/formatting?id=table-of-tokens). - * Defaults to en-US if no locale has been specified, regardless of the system's locale. - * @param {string} fmt - the format string - * @param {Object} opts - opts to override the configuration options on this DateTime - * @example DateTime.now().toFormat('yyyy LLL dd') //=> '2017 Apr 22' - * @example DateTime.now().setLocale('fr').toFormat('yyyy LLL dd') //=> '2017 avr. 22' - * @example DateTime.now().toFormat('yyyy LLL dd', { locale: "fr" }) //=> '2017 avr. 22' - * @example DateTime.now().toFormat("HH 'hours and' mm 'minutes'") //=> '20 hours and 55 minutes' - * @return {string} - */ - toFormat(fmt, opts = {}) { - return this.isValid ? Formatter.create(this.loc.redefaultToEN(opts)).formatDateTimeFromString(this, fmt) : INVALID4; - } - /** - * Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`. - * The exact behavior of this method is browser-specific, but in general it will return an appropriate representation - * of the DateTime in the assigned locale. - * Defaults to the system's locale if no locale has been specified - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat - * @param formatOpts {Object} - Intl.DateTimeFormat constructor options and configuration options - * @param {Object} opts - opts to override the configuration options on this DateTime - * @example DateTime.now().toLocaleString(); //=> 4/20/2017 - * @example DateTime.now().setLocale('en-gb').toLocaleString(); //=> '20/04/2017' - * @example DateTime.now().toLocaleString(DateTime.DATE_FULL); //=> 'April 20, 2017' - * @example DateTime.now().toLocaleString(DateTime.DATE_FULL, { locale: 'fr' }); //=> '28 août 2022' - * @example DateTime.now().toLocaleString(DateTime.TIME_SIMPLE); //=> '11:32 AM' - * @example DateTime.now().toLocaleString(DateTime.DATETIME_SHORT); //=> '4/20/2017, 11:32 AM' - * @example DateTime.now().toLocaleString({ weekday: 'long', month: 'long', day: '2-digit' }); //=> 'Thursday, April 20' - * @example DateTime.now().toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> 'Thu, Apr 20, 11:27 AM' - * @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); //=> '11:32' - * @return {string} - */ - toLocaleString(formatOpts = DATE_SHORT, opts = {}) { - return this.isValid ? Formatter.create(this.loc.clone(opts), formatOpts).formatDateTime(this) : INVALID4; - } - /** - * Returns an array of format "parts", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output. - * Defaults to the system's locale if no locale has been specified - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/formatToParts - * @param opts {Object} - Intl.DateTimeFormat constructor options, same as `toLocaleString`. - * @example DateTime.now().toLocaleParts(); //=> [ - * //=> { type: 'day', value: '25' }, - * //=> { type: 'literal', value: '/' }, - * //=> { type: 'month', value: '05' }, - * //=> { type: 'literal', value: '/' }, - * //=> { type: 'year', value: '1982' } - * //=> ] - */ - toLocaleParts(opts = {}) { - return this.isValid ? Formatter.create(this.loc.clone(opts), opts).formatDateTimeParts(this) : []; - } - /** - * Returns an ISO 8601-compliant string representation of this DateTime - * @param {Object} opts - options - * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0 - * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0 - * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00' - * @param {boolean} [opts.extendedZone=false] - add the time zone format extension - * @param {string} [opts.format='extended'] - choose between the basic and extended format - * @example DateTime.utc(1983, 5, 25).toISO() //=> '1982-05-25T00:00:00.000Z' - * @example DateTime.now().toISO() //=> '2017-04-22T20:47:05.335-04:00' - * @example DateTime.now().toISO({ includeOffset: false }) //=> '2017-04-22T20:47:05.335' - * @example DateTime.now().toISO({ format: 'basic' }) //=> '20170422T204705.335-0400' - * @return {string} - */ - toISO({ - format = "extended", - suppressSeconds = false, - suppressMilliseconds = false, - includeOffset = true, - extendedZone = false - } = {}) { - if (!this.isValid) { - return null; - } - const ext = format === "extended"; - let c = toISODate(this, ext); - c += "T"; - c += toISOTime(this, ext, suppressSeconds, suppressMilliseconds, includeOffset, extendedZone); - return c; - } - /** - * Returns an ISO 8601-compliant string representation of this DateTime's date component - * @param {Object} opts - options - * @param {string} [opts.format='extended'] - choose between the basic and extended format - * @example DateTime.utc(1982, 5, 25).toISODate() //=> '1982-05-25' - * @example DateTime.utc(1982, 5, 25).toISODate({ format: 'basic' }) //=> '19820525' - * @return {string} - */ - toISODate({ format = "extended" } = {}) { - if (!this.isValid) { - return null; - } - return toISODate(this, format === "extended"); - } - /** - * Returns an ISO 8601-compliant string representation of this DateTime's week date - * @example DateTime.utc(1982, 5, 25).toISOWeekDate() //=> '1982-W21-2' - * @return {string} - */ - toISOWeekDate() { - return toTechFormat(this, "kkkk-'W'WW-c"); - } - /** - * Returns an ISO 8601-compliant string representation of this DateTime's time component - * @param {Object} opts - options - * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0 - * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0 - * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00' - * @param {boolean} [opts.extendedZone=true] - add the time zone format extension - * @param {boolean} [opts.includePrefix=false] - include the `T` prefix - * @param {string} [opts.format='extended'] - choose between the basic and extended format - * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime() //=> '07:34:19.361Z' - * @example DateTime.utc().set({ hour: 7, minute: 34, seconds: 0, milliseconds: 0 }).toISOTime({ suppressSeconds: true }) //=> '07:34Z' - * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ format: 'basic' }) //=> '073419.361Z' - * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ includePrefix: true }) //=> 'T07:34:19.361Z' - * @return {string} - */ - toISOTime({ - suppressMilliseconds = false, - suppressSeconds = false, - includeOffset = true, - includePrefix = false, - extendedZone = false, - format = "extended" - } = {}) { - if (!this.isValid) { - return null; - } - let c = includePrefix ? "T" : ""; - return c + toISOTime( - this, - format === "extended", - suppressSeconds, - suppressMilliseconds, - includeOffset, - extendedZone - ); - } - /** - * Returns an RFC 2822-compatible string representation of this DateTime - * @example DateTime.utc(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 +0000' - * @example DateTime.local(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 -0400' - * @return {string} - */ - toRFC2822() { - return toTechFormat(this, "EEE, dd LLL yyyy HH:mm:ss ZZZ", false); - } - /** - * Returns a string representation of this DateTime appropriate for use in HTTP headers. The output is always expressed in GMT. - * Specifically, the string conforms to RFC 1123. - * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1 - * @example DateTime.utc(2014, 7, 13).toHTTP() //=> 'Sun, 13 Jul 2014 00:00:00 GMT' - * @example DateTime.utc(2014, 7, 13, 19).toHTTP() //=> 'Sun, 13 Jul 2014 19:00:00 GMT' - * @return {string} - */ - toHTTP() { - return toTechFormat(this.toUTC(), "EEE, dd LLL yyyy HH:mm:ss 'GMT'"); - } - /** - * Returns a string representation of this DateTime appropriate for use in SQL Date - * @example DateTime.utc(2014, 7, 13).toSQLDate() //=> '2014-07-13' - * @return {string} - */ - toSQLDate() { - if (!this.isValid) { - return null; - } - return toISODate(this, true); - } - /** - * Returns a string representation of this DateTime appropriate for use in SQL Time - * @param {Object} opts - options - * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset. - * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00' - * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00' - * @example DateTime.utc().toSQL() //=> '05:15:16.345' - * @example DateTime.now().toSQL() //=> '05:15:16.345 -04:00' - * @example DateTime.now().toSQL({ includeOffset: false }) //=> '05:15:16.345' - * @example DateTime.now().toSQL({ includeZone: false }) //=> '05:15:16.345 America/New_York' - * @return {string} - */ - toSQLTime({ includeOffset = true, includeZone = false, includeOffsetSpace = true } = {}) { - let fmt = "HH:mm:ss.SSS"; - if (includeZone || includeOffset) { - if (includeOffsetSpace) { - fmt += " "; - } - if (includeZone) { - fmt += "z"; - } else if (includeOffset) { - fmt += "ZZ"; - } - } - return toTechFormat(this, fmt, true); - } - /** - * Returns a string representation of this DateTime appropriate for use in SQL DateTime - * @param {Object} opts - options - * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset. - * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00' - * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00' - * @example DateTime.utc(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 Z' - * @example DateTime.local(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 -04:00' - * @example DateTime.local(2014, 7, 13).toSQL({ includeOffset: false }) //=> '2014-07-13 00:00:00.000' - * @example DateTime.local(2014, 7, 13).toSQL({ includeZone: true }) //=> '2014-07-13 00:00:00.000 America/New_York' - * @return {string} - */ - toSQL(opts = {}) { - if (!this.isValid) { - return null; - } - return `${this.toSQLDate()} ${this.toSQLTime(opts)}`; - } - /** - * Returns a string representation of this DateTime appropriate for debugging - * @return {string} - */ - toString() { - return this.isValid ? this.toISO() : INVALID4; - } - /** - * Returns a string representation of this DateTime appropriate for the REPL. - * @return {string} - */ - [Symbol.for("nodejs.util.inspect.custom")]() { - if (this.isValid) { - return `DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`; - } else { - return `DateTime { Invalid, reason: ${this.invalidReason} }`; - } - } - /** - * Returns the epoch milliseconds of this DateTime. Alias of {@link DateTime#toMillis} - * @return {number} - */ - valueOf() { - return this.toMillis(); - } - /** - * Returns the epoch milliseconds of this DateTime. - * @return {number} - */ - toMillis() { - return this.isValid ? this.ts : NaN; - } - /** - * Returns the epoch seconds of this DateTime. - * @return {number} - */ - toSeconds() { - return this.isValid ? this.ts / 1e3 : NaN; - } - /** - * Returns the epoch seconds (as a whole number) of this DateTime. - * @return {number} - */ - toUnixInteger() { - return this.isValid ? Math.floor(this.ts / 1e3) : NaN; - } - /** - * Returns an ISO 8601 representation of this DateTime appropriate for use in JSON. - * @return {string} - */ - toJSON() { - return this.toISO(); - } - /** - * Returns a BSON serializable equivalent to this DateTime. - * @return {Date} - */ - toBSON() { - return this.toJSDate(); - } - /** - * Returns a JavaScript object with this DateTime's year, month, day, and so on. - * @param opts - options for generating the object - * @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output - * @example DateTime.now().toObject() //=> { year: 2017, month: 4, day: 22, hour: 20, minute: 49, second: 42, millisecond: 268 } - * @return {Object} - */ - toObject(opts = {}) { - if (!this.isValid) - return {}; - const base = { ...this.c }; - if (opts.includeConfig) { - base.outputCalendar = this.outputCalendar; - base.numberingSystem = this.loc.numberingSystem; - base.locale = this.loc.locale; - } - return base; - } - /** - * Returns a JavaScript Date equivalent to this DateTime. - * @return {Date} - */ - toJSDate() { - return new Date(this.isValid ? this.ts : NaN); - } - // COMPARE - /** - * Return the difference between two DateTimes as a Duration. - * @param {DateTime} otherDateTime - the DateTime to compare this one to - * @param {string|string[]} [unit=['milliseconds']] - the unit or array of units (such as 'hours' or 'days') to include in the duration. - * @param {Object} opts - options that affect the creation of the Duration - * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use - * @example - * var i1 = DateTime.fromISO('1982-05-25T09:45'), - * i2 = DateTime.fromISO('1983-10-14T10:30'); - * i2.diff(i1).toObject() //=> { milliseconds: 43807500000 } - * i2.diff(i1, 'hours').toObject() //=> { hours: 12168.75 } - * i2.diff(i1, ['months', 'days']).toObject() //=> { months: 16, days: 19.03125 } - * i2.diff(i1, ['months', 'days', 'hours']).toObject() //=> { months: 16, days: 19, hours: 0.75 } - * @return {Duration} - */ - diff(otherDateTime, unit = "milliseconds", opts = {}) { - if (!this.isValid || !otherDateTime.isValid) { - return Duration.invalid("created by diffing an invalid DateTime"); - } - const durOpts = { locale: this.locale, numberingSystem: this.numberingSystem, ...opts }; - const units = maybeArray(unit).map(Duration.normalizeUnit), otherIsLater = otherDateTime.valueOf() > this.valueOf(), earlier = otherIsLater ? this : otherDateTime, later = otherIsLater ? otherDateTime : this, diffed = diff_default(earlier, later, units, durOpts); - return otherIsLater ? diffed.negate() : diffed; - } - /** - * Return the difference between this DateTime and right now. - * See {@link DateTime#diff} - * @param {string|string[]} [unit=['milliseconds']] - the unit or units units (such as 'hours' or 'days') to include in the duration - * @param {Object} opts - options that affect the creation of the Duration - * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use - * @return {Duration} - */ - diffNow(unit = "milliseconds", opts = {}) { - return this.diff(_DateTime.now(), unit, opts); - } - /** - * Return an Interval spanning between this DateTime and another DateTime - * @param {DateTime} otherDateTime - the other end point of the Interval - * @return {Interval} - */ - until(otherDateTime) { - return this.isValid ? Interval.fromDateTimes(this, otherDateTime) : this; - } - /** - * Return whether this DateTime is in the same unit of time as another DateTime. - * Higher-order units must also be identical for this function to return `true`. - * Note that time zones are **ignored** in this comparison, which compares the **local** calendar time. Use {@link DateTime#setZone} to convert one of the dates if needed. - * @param {DateTime} otherDateTime - the other DateTime - * @param {string} unit - the unit of time to check sameness on - * @param {Object} opts - options - * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; only the locale of this DateTime is used - * @example DateTime.now().hasSame(otherDT, 'day'); //~> true if otherDT is in the same current calendar day - * @return {boolean} - */ - hasSame(otherDateTime, unit, opts) { - if (!this.isValid) - return false; - const inputMs = otherDateTime.valueOf(); - const adjustedToZone = this.setZone(otherDateTime.zone, { keepLocalTime: true }); - return adjustedToZone.startOf(unit, opts) <= inputMs && inputMs <= adjustedToZone.endOf(unit, opts); - } - /** - * Equality check - * Two DateTimes are equal if and only if they represent the same millisecond, have the same zone and location, and are both valid. - * To compare just the millisecond values, use `+dt1 === +dt2`. - * @param {DateTime} other - the other DateTime - * @return {boolean} - */ - equals(other) { - return this.isValid && other.isValid && this.valueOf() === other.valueOf() && this.zone.equals(other.zone) && this.loc.equals(other.loc); - } - /** - * Returns a string representation of a this time relative to now, such as "in two days". Can only internationalize if your - * platform supports Intl.RelativeTimeFormat. Rounds down by default. - * @param {Object} options - options that affect the output - * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now. - * @param {string} [options.style="long"] - the style of units, must be "long", "short", or "narrow" - * @param {string|string[]} options.unit - use a specific unit or array of units; if omitted, or an array, the method will pick the best unit. Use an array or one of "years", "quarters", "months", "weeks", "days", "hours", "minutes", or "seconds" - * @param {boolean} [options.round=true] - whether to round the numbers in the output. - * @param {number} [options.padding=0] - padding in milliseconds. This allows you to round up the result if it fits inside the threshold. Don't use in combination with {round: false} because the decimal output will include the padding. - * @param {string} options.locale - override the locale of this DateTime - * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this - * @example DateTime.now().plus({ days: 1 }).toRelative() //=> "in 1 day" - * @example DateTime.now().setLocale("es").toRelative({ days: 1 }) //=> "dentro de 1 día" - * @example DateTime.now().plus({ days: 1 }).toRelative({ locale: "fr" }) //=> "dans 23 heures" - * @example DateTime.now().minus({ days: 2 }).toRelative() //=> "2 days ago" - * @example DateTime.now().minus({ days: 2 }).toRelative({ unit: "hours" }) //=> "48 hours ago" - * @example DateTime.now().minus({ hours: 36 }).toRelative({ round: false }) //=> "1.5 days ago" - */ - toRelative(options = {}) { - if (!this.isValid) - return null; - const base = options.base || _DateTime.fromObject({}, { zone: this.zone }), padding = options.padding ? this < base ? -options.padding : options.padding : 0; - let units = ["years", "months", "days", "hours", "minutes", "seconds"]; - let unit = options.unit; - if (Array.isArray(options.unit)) { - units = options.unit; - unit = void 0; - } - return diffRelative(base, this.plus(padding), { - ...options, - numeric: "always", - units, - unit - }); - } - /** - * Returns a string representation of this date relative to today, such as "yesterday" or "next month". - * Only internationalizes on platforms that supports Intl.RelativeTimeFormat. - * @param {Object} options - options that affect the output - * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now. - * @param {string} options.locale - override the locale of this DateTime - * @param {string} options.unit - use a specific unit; if omitted, the method will pick the unit. Use one of "years", "quarters", "months", "weeks", or "days" - * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this - * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar() //=> "tomorrow" - * @example DateTime.now().setLocale("es").plus({ days: 1 }).toRelative() //=> ""mañana" - * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar({ locale: "fr" }) //=> "demain" - * @example DateTime.now().minus({ days: 2 }).toRelativeCalendar() //=> "2 days ago" - */ - toRelativeCalendar(options = {}) { - if (!this.isValid) - return null; - return diffRelative(options.base || _DateTime.fromObject({}, { zone: this.zone }), this, { - ...options, - numeric: "auto", - units: ["years", "months", "days"], - calendary: true - }); - } - /** - * Return the min of several date times - * @param {...DateTime} dateTimes - the DateTimes from which to choose the minimum - * @return {DateTime} the min DateTime, or undefined if called with no argument - */ - static min(...dateTimes) { - if (!dateTimes.every(_DateTime.isDateTime)) { - throw new InvalidArgumentError("min requires all arguments be DateTimes"); - } - return bestBy(dateTimes, (i) => i.valueOf(), Math.min); - } - /** - * Return the max of several date times - * @param {...DateTime} dateTimes - the DateTimes from which to choose the maximum - * @return {DateTime} the max DateTime, or undefined if called with no argument - */ - static max(...dateTimes) { - if (!dateTimes.every(_DateTime.isDateTime)) { - throw new InvalidArgumentError("max requires all arguments be DateTimes"); - } - return bestBy(dateTimes, (i) => i.valueOf(), Math.max); - } - // MISC - /** - * Explain how a string would be parsed by fromFormat() - * @param {string} text - the string to parse - * @param {string} fmt - the format the string is expected to be in (see description) - * @param {Object} options - options taken by fromFormat() - * @return {Object} - */ - static fromFormatExplain(text2, fmt, options = {}) { - const { locale = null, numberingSystem = null } = options, localeToUse = Locale.fromOpts({ - locale, - numberingSystem, - defaultToEN: true - }); - return explainFromTokens(localeToUse, text2, fmt); - } - /** - * @deprecated use fromFormatExplain instead - */ - static fromStringExplain(text2, fmt, options = {}) { - return _DateTime.fromFormatExplain(text2, fmt, options); - } - // FORMAT PRESETS - /** - * {@link DateTime#toLocaleString} format like 10/14/1983 - * @type {Object} - */ - static get DATE_SHORT() { - return DATE_SHORT; - } - /** - * {@link DateTime#toLocaleString} format like 'Oct 14, 1983' - * @type {Object} - */ - static get DATE_MED() { - return DATE_MED; - } - /** - * {@link DateTime#toLocaleString} format like 'Fri, Oct 14, 1983' - * @type {Object} - */ - static get DATE_MED_WITH_WEEKDAY() { - return DATE_MED_WITH_WEEKDAY; - } - /** - * {@link DateTime#toLocaleString} format like 'October 14, 1983' - * @type {Object} - */ - static get DATE_FULL() { - return DATE_FULL; - } - /** - * {@link DateTime#toLocaleString} format like 'Tuesday, October 14, 1983' - * @type {Object} - */ - static get DATE_HUGE() { - return DATE_HUGE; - } - /** - * {@link DateTime#toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is. - * @type {Object} - */ - static get TIME_SIMPLE() { - return TIME_SIMPLE; - } - /** - * {@link DateTime#toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is. - * @type {Object} - */ - static get TIME_WITH_SECONDS() { - return TIME_WITH_SECONDS; - } - /** - * {@link DateTime#toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is. - * @type {Object} - */ - static get TIME_WITH_SHORT_OFFSET() { - return TIME_WITH_SHORT_OFFSET; - } - /** - * {@link DateTime#toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is. - * @type {Object} - */ - static get TIME_WITH_LONG_OFFSET() { - return TIME_WITH_LONG_OFFSET; - } - /** - * {@link DateTime#toLocaleString} format like '09:30', always 24-hour. - * @type {Object} - */ - static get TIME_24_SIMPLE() { - return TIME_24_SIMPLE; - } - /** - * {@link DateTime#toLocaleString} format like '09:30:23', always 24-hour. - * @type {Object} - */ - static get TIME_24_WITH_SECONDS() { - return TIME_24_WITH_SECONDS; - } - /** - * {@link DateTime#toLocaleString} format like '09:30:23 EDT', always 24-hour. - * @type {Object} - */ - static get TIME_24_WITH_SHORT_OFFSET() { - return TIME_24_WITH_SHORT_OFFSET; - } - /** - * {@link DateTime#toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour. - * @type {Object} - */ - static get TIME_24_WITH_LONG_OFFSET() { - return TIME_24_WITH_LONG_OFFSET; - } - /** - * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is. - * @type {Object} - */ - static get DATETIME_SHORT() { - return DATETIME_SHORT; - } - /** - * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is. - * @type {Object} - */ - static get DATETIME_SHORT_WITH_SECONDS() { - return DATETIME_SHORT_WITH_SECONDS; - } - /** - * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is. - * @type {Object} - */ - static get DATETIME_MED() { - return DATETIME_MED; - } - /** - * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is. - * @type {Object} - */ - static get DATETIME_MED_WITH_SECONDS() { - return DATETIME_MED_WITH_SECONDS; - } - /** - * {@link DateTime#toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is. - * @type {Object} - */ - static get DATETIME_MED_WITH_WEEKDAY() { - return DATETIME_MED_WITH_WEEKDAY; - } - /** - * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is. - * @type {Object} - */ - static get DATETIME_FULL() { - return DATETIME_FULL; - } - /** - * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is. - * @type {Object} - */ - static get DATETIME_FULL_WITH_SECONDS() { - return DATETIME_FULL_WITH_SECONDS; - } - /** - * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is. - * @type {Object} - */ - static get DATETIME_HUGE() { - return DATETIME_HUGE; - } - /** - * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is. - * @type {Object} - */ - static get DATETIME_HUGE_WITH_SECONDS() { - return DATETIME_HUGE_WITH_SECONDS; - } -}; -function friendlyDateTime(dateTimeish) { - if (DateTime.isDateTime(dateTimeish)) { - return dateTimeish; - } else if (dateTimeish && dateTimeish.valueOf && isNumber(dateTimeish.valueOf())) { - return DateTime.fromJSDate(dateTimeish); - } else if (dateTimeish && typeof dateTimeish === "object") { - return DateTime.fromObject(dateTimeish); - } else { - throw new InvalidArgumentError( - `Unknown datetime argument: ${dateTimeish}, of type ${typeof dateTimeish}` - ); - } -} - -// src/graph/builders/explicit/date_note.ts -var _add_explicit_edges_date_note = (graph, plugin, all_files) => { - var _a, _b; - const errors = []; - const date_note_settings = plugin.settings.explicit_edge_sources.date_note; - if (!date_note_settings.enabled) - return { errors }; - else if (!plugin.settings.edge_fields.find( - (field) => field.label === date_note_settings.default_field - )) { - errors.push({ - code: "invalid_setting_value", - path: "explicit_edge_sources.date_note.default_field", - message: `The default Date Note field "${date_note_settings.default_field}" is not a valid Breadcrumbs Edge field` - }); - return { errors }; - } - const date_notes = []; - (_a = all_files.obsidian) == null ? void 0 : _a.forEach(({ file }) => { - var _a2, _b2; - const date = DateTime.fromFormat( - file.basename, - date_note_settings.date_format - ); - if (!date.isValid) - return; - date_notes.push({ - date, - path: file.path, - ext: file.extension, - basename: file.basename, - // Not sure why would this be undefined? - // I tested and a file in the root of the vault still has a parent - // _it's_ parent is null, but that only happens if "file" is actually a folder - folder: (_b2 = (_a2 = file.parent) == null ? void 0 : _a2.path) != null ? _b2 : "" - }); - }); - (_b = all_files.dataview) == null ? void 0 : _b.forEach(({ file }) => { - const date = DateTime.fromFormat( - file.name, - date_note_settings.date_format - ); - if (!date.isValid) - return; - date_notes.push({ - date, - ext: file.ext, - path: file.path, - folder: file.folder, - basename: file.name - }); - }); - date_notes.sort((a, b) => a.date.toMillis() - b.date.toMillis()).forEach((date_note, i) => { - var _a2, _b2; - const basename_plus_one_day = date_note.date.plus({ days: 1 }).toFormat(date_note_settings.date_format); - const target_basename = date_note_settings.stretch_to_existing ? (_b2 = (_a2 = date_notes.at(i + 1)) == null ? void 0 : _a2.basename) != null ? _b2 : basename_plus_one_day : basename_plus_one_day; - const target_path = Paths.build( - date_note.folder, - target_basename, - date_note.ext - ); - const target_file = plugin.app.vault.getFileByPath(target_path); - if (!target_file) { - graph.safe_add_node(target_path, { resolved: false }); - } - graph.safe_add_directed_edge(date_note.path, target_path, { - explicit: true, - source: "date_note", - field: date_note_settings.default_field - }); - }); - return { errors }; -}; - -// src/graph/builders/explicit/dendron_note.ts -var get_dendron_note_info = (plugin, metadata, path) => { - var _a; - const field = (_a = metadata == null ? void 0 : metadata[META_ALIAS["dendron-note-field"]]) != null ? _a : ( - // Which is why we have a default_field on dendron_note - plugin.settings.explicit_edge_sources.dendron_note.default_field - ); - if (!field) { - return fail(void 0); - } else if (typeof field !== "string") { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: `dendron-note-field is not a string: '${field}'` - }); - } else if (!plugin.settings.edge_fields.find((f) => f.label === field)) { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: `dendron-note-field is not a valid field: '${field}'` - }); - } - return succ({ field }); -}; -var handle_dendron_note = (plugin, graph, source_path, source_metadata, errors) => { - const { delimiter } = plugin.settings.explicit_edge_sources.dendron_note; - const source_basename_splits = Paths.basename(source_path).split(delimiter); - if (source_basename_splits.length === 1) - return; - const dendron_note_info = get_dendron_note_info( - plugin, - source_metadata, - source_path - ); - if (!dendron_note_info.ok) { - if (dendron_note_info.error) { - errors.push(dendron_note_info.error); - } - return; - } - const target_path = Paths.build( - // Use the same folder as the source - source_path.split("/").slice(0, -1).join("/"), - // Go one note up - source_basename_splits.slice(0, -1).join(delimiter), - "md" - ); - const { field } = dendron_note_info.data; - const target_file = plugin.app.vault.getFileByPath(target_path); - if (!target_file) { - graph.safe_add_node(target_path, { resolved: false }); - handle_dendron_note( - plugin, - graph, - target_path, - // This is really quite elegant :) - // The unresolved note has no BC-dendron field, by definition - // Passing undefined would just use the settings.default field - // But we can propagate the field from the resolved source note - { [META_ALIAS["dendron-note-field"]]: field }, - errors - ); - } - graph.safe_add_directed_edge(source_path, target_path, { - field, - explicit: true, - source: "dendron_note" - }); -}; -var _add_explicit_edges_dendron_note = (graph, plugin, all_files) => { - var _a, _b; - const errors = []; - if (!plugin.settings.explicit_edge_sources.dendron_note.enabled) { - return { errors }; - } - (_a = all_files.obsidian) == null ? void 0 : _a.forEach(({ file, cache }) => { - handle_dendron_note( - plugin, - graph, - file.path, - cache == null ? void 0 : cache.frontmatter, - errors - ); - }); - (_b = all_files.dataview) == null ? void 0 : _b.forEach((page) => { - handle_dendron_note(plugin, graph, page.file.path, page, errors); - }); - return { errors }; -}; - -// src/graph/builders/explicit/folder_note.ts -var get_folder_note_info = (plugin, metadata, path) => { - if (!metadata) - return fail(void 0); - const field = metadata[META_ALIAS["folder-note-field"]]; - if (!field) { - return fail(void 0); - } else if (typeof field !== "string") { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: `folder-note-field is not a string: '${field}'` - }); - } else if (!plugin.settings.edge_fields.find((f) => f.label === field)) { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: `folder-note-field is not a valid field: '${field}'` - }); - } - const recurse = Boolean(metadata[META_ALIAS["folder-note-recurse"]]); - return succ({ - field, - recurse - }); -}; -var iterate_folder_files = async (plugin, folder, cb, recurse) => { - const folder_files = await plugin.app.vault.adapter.list(folder); - folder_files.files.forEach((path) => cb(path)); - if (recurse) { - await Promise.all( - folder_files.folders.map( - (folder2) => ( - // When the subfolder is recursed, what does it mean when the callback runs? - // Where will it point up to? The initial folder's files point up to the folder_note - // But the subfolders don't specify a folder_note - // NOTE: For now, the subfiles will point up to the initial folder_note - iterate_folder_files(plugin, folder2, cb, true) - ) - ) - ); - } -}; -var _add_explicit_edges_folder_note = async (graph, plugin, all_files) => { - var _a, _b; - const errors = []; - const folder_notes = []; - (_a = all_files.obsidian) == null ? void 0 : _a.forEach( - ({ file: folder_note_file, cache: folder_note_cache }) => { - var _a2, _b2; - if (!folder_note_cache) - return; - const folder_note_info = get_folder_note_info( - plugin, - folder_note_cache == null ? void 0 : folder_note_cache.frontmatter, - folder_note_file.path - ); - if (!folder_note_info.ok) { - if (folder_note_info.error) - errors.push(folder_note_info.error); - return; - } - folder_notes.push({ - data: folder_note_info.data, - file: { - path: folder_note_file.path, - folder: (_b2 = (_a2 = folder_note_file.parent) == null ? void 0 : _a2.path) != null ? _b2 : "" - } - }); - } - ); - (_b = all_files.dataview) == null ? void 0 : _b.forEach((folder_note_page) => { - const folder_note_info = get_folder_note_info( - plugin, - folder_note_page, - folder_note_page.file.path - ); - if (!folder_note_info.ok) { - if (folder_note_info.error) - errors.push(folder_note_info.error); - return; - } - folder_notes.push({ - data: folder_note_info.data, - file: { - path: folder_note_page.file.path, - folder: folder_note_page.file.folder - } - }); - }); - await Promise.all( - folder_notes.map( - ({ data, file: folder_note }) => iterate_folder_files( - plugin, - folder_note.folder, - (target_path) => { - if (!target_path.endsWith(".md") || target_path === folder_note.path) - return; - graph.safe_add_directed_edge( - folder_note.path, - target_path, - { - explicit: true, - field: data.field, - source: "folder_note" - } - ); - }, - data.recurse - ) - ) - ); - return { errors }; -}; - -// src/graph/builders/explicit/johnny_decimal_note.ts -var get_johnny_decimal_note_info = (plugin, metadata, path) => { - var _a; - const field = (_a = metadata == null ? void 0 : metadata[META_ALIAS["johnny-decimal-note-field"]]) != null ? _a : ( - // Which is why we have a default_field on johnny_decimal_note - plugin.settings.explicit_edge_sources.johnny_decimal_note.default_field - ); - if (!field) { - return fail(void 0); - } else if (typeof field !== "string") { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: `johnny-decimal-note-field is not a string: '${field}'` - }); - } else if (!plugin.settings.edge_fields.find((f) => f.label === field)) { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: `johnny-decimal-note-field is not a valid BC field: '${field}'` - }); - } - return succ({ field }); -}; -var handle_johnny_decimal_note = (plugin, graph, source_note, notes, errors) => { - const johnny_decimal_note_info = get_johnny_decimal_note_info( - plugin, - source_note.metadata, - source_note.path - ); - if (!johnny_decimal_note_info.ok) { - if (johnny_decimal_note_info.error) { - errors.push(johnny_decimal_note_info.error); - } - return; - } - const { delimiter } = plugin.settings.explicit_edge_sources.johnny_decimal_note; - const target_decimals = source_note.decimals.split(delimiter).slice(0, -1).join(delimiter); - if (target_decimals === "") - return; - const target_note = notes.find((n2) => n2.decimals === target_decimals); - if (!target_note) - return; - const target_file = plugin.app.vault.getFileByPath(target_note.path); - if (!target_file) { - graph.safe_add_node(target_note.path, { resolved: false }); - } - const { field } = johnny_decimal_note_info.data; - graph.safe_add_directed_edge(source_note.path, target_note.path, { - field, - explicit: true, - source: "johnny_decimal_note" - }); -}; -var _add_explicit_edges_johnny_decimal_note = (graph, plugin, all_files) => { - var _a, _b; - const errors = []; - if (!plugin.settings.explicit_edge_sources.johnny_decimal_note.enabled) { - return { errors }; - } - const { delimiter } = plugin.settings.explicit_edge_sources.johnny_decimal_note; - const regex2 = new RegExp(`^([\\w\\d\\${delimiter}]+)(\\s|\\${delimiter}$)`); - const johnny_decimal_notes = []; - (_a = all_files.obsidian) == null ? void 0 : _a.forEach(({ file, cache }) => { - var _a2; - const basename2 = Paths.basename(file.path); - const decimals = (_a2 = basename2.match(regex2)) == null ? void 0 : _a2[1]; - if (!decimals) - return; - johnny_decimal_notes.push({ - basename: basename2, - path: file.path, - metadata: cache == null ? void 0 : cache.frontmatter, - decimals: ensure_not_ends_with(decimals, delimiter) - }); - }); - (_b = all_files.dataview) == null ? void 0 : _b.forEach((page) => { - var _a2; - const basename2 = Paths.basename(page.file.path); - const decimals = (_a2 = basename2.match(regex2)) == null ? void 0 : _a2[1]; - if (!decimals) - return; - johnny_decimal_notes.push({ - basename: basename2, - metadata: page, - path: page.file.path, - decimals: ensure_not_ends_with(decimals, delimiter) - }); - }); - johnny_decimal_notes.forEach((note) => { - handle_johnny_decimal_note( - plugin, - graph, - note, - johnny_decimal_notes, - errors - ); - }); - return { errors }; -}; - -// src/graph/builders/explicit/list_note.ts -var import_obsidian4 = require("obsidian"); - -// src/utils/obsidian.ts -var import_obsidian3 = require("obsidian"); -var resolve_relative_target_path = (app, relative_target_path, source_path) => { - var _a; - const extensioned = Paths.ensure_ext(relative_target_path); - const target_file = app.metadataCache.getFirstLinkpathDest( - extensioned, - source_path - ); - const target_path = (_a = target_file == null ? void 0 : target_file.path) != null ? _a : Links.resolve_to_absolute_path(app, extensioned, source_path); - return [target_path, target_file]; -}; -var copy_to_clipboard = async (text2, options) => { - const resolved = Object.assign({ notify: true, log: true }, options); - if (resolved.log) { - log.feat(text2); - } - await navigator.clipboard.writeText(text2); - if (resolved.notify) { - new import_obsidian3.Notice("Copied to clipboard and logged to console."); - } -}; - -// src/graph/builders/explicit/list_note.ts -var get_list_note_info = (plugin, metadata, path) => { - var _a; - if (!metadata) { - return fail(void 0); - } - const field = metadata[META_ALIAS["list-note-field"]]; - if (!field) { - return fail(void 0); - } else if (typeof field !== "string") { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: `list-note-field is not a string: '${field}'` - }); - } else if (!plugin.settings.edge_fields.find((f) => f.label === field)) { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: `list-note-field is not a valid BC field: '${field}'` - }); - } - const neighbour_field = (_a = metadata[META_ALIAS["list-note-neighbour-field"]]) != null ? _a : plugin.settings.explicit_edge_sources.list_note.default_neighbour_field; - if (neighbour_field) { - if (typeof neighbour_field !== "string") { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: `list-note-neighbour-field is not a string: '${neighbour_field}'` - }); - } else if (!plugin.settings.edge_fields.find( - (f) => f.label === neighbour_field - )) { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: `list-note-neighbour-field is not a valid BC field: '${neighbour_field}'` - }); - } - } - const exclude_index = Boolean( - metadata[META_ALIAS["list-note-exclude-index"]] - ); - return succ({ - field, - exclude_index, - neighbour_field: neighbour_field != null ? neighbour_field : void 0 - }); -}; -var FIELD_OVERRIDE_REGEX = /^\s*([-\w\s]+)\b/; -var resolve_field_override = (plugin, list_item, path) => { - var _a; - const field = (_a = list_item.text.match(FIELD_OVERRIDE_REGEX)) == null ? void 0 : _a[1]; - if (!field) { - return succ(void 0); - } else if (!plugin.settings.edge_fields.find((f) => f.label === field)) { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: `Field override is not a valid BC field: ${field}. Line: ${list_item.position.start.line}` - }); - } else { - return succ({ field }); - } -}; -var handle_neighbour_list_item = ({ - graph, - plugin, - source_path, - list_note_page, - list_note_info, - source_list_item_i -}) => { - if (!list_note_info.data.neighbour_field) - return; - const source_list_item = list_note_page.file.lists.values[source_list_item_i]; - let neighbour_list_item; - for (let i = source_list_item_i + 1; i < list_note_page.file.lists.values.length; i++) { - const item = list_note_page.file.lists.values[i]; - if (item.position.start.col < source_list_item.position.start.col) { - break; - } else if (item.position.start.col === source_list_item.position.start.col) { - neighbour_list_item = item; - break; - } - } - if (!neighbour_list_item) - return; - const neighbour_link = neighbour_list_item.outlinks.at(0); - if (!neighbour_link) - return; - const [path, file] = resolve_relative_target_path( - plugin.app, - neighbour_link.path, - list_note_page.file.path - ); - if (!file) { - graph.safe_add_node(path, { resolved: false }); - } - graph.safe_add_directed_edge(source_path, path, { - explicit: true, - source: "list_note", - field: list_note_info.data.neighbour_field - }); -}; -var _add_explicit_edges_list_note = (graph, plugin, all_files) => { - var _a, _b; - const errors = []; - (_a = all_files.obsidian) == null ? void 0 : _a.forEach( - ({ file: list_note_file, cache: list_note_cache }) => { - if (!list_note_cache) - return; - const list_note_info = get_list_note_info( - plugin, - list_note_cache == null ? void 0 : list_note_cache.frontmatter, - list_note_file.path - ); - if (!list_note_info.ok) { - if (list_note_info.error) - errors.push(list_note_info.error); - return; - } else { - new import_obsidian4.Notice( - "list-notes are not implemented without Dataview enabled" - ); - } - } - ); - (_b = all_files.dataview) == null ? void 0 : _b.forEach((list_note_page) => { - const list_note_info = get_list_note_info( - plugin, - list_note_page, - list_note_page.file.path - ); - if (!list_note_info.ok) { - if (list_note_info.error) - errors.push(list_note_info.error); - return; - } - list_note_page.file.lists.values.forEach( - (source_list_item, source_list_item_i) => { - var _a2, _b2; - const source_link = source_list_item.outlinks.at(0); - if (!source_link) - return; - const [source_path, source_file] = resolve_relative_target_path( - plugin.app, - source_link.path, - list_note_page.file.path - ); - if (!source_file) { - graph.safe_add_node(source_path, { resolved: false }); - } - if (!list_note_info.data.exclude_index && source_list_item.position.start.col === 0) { - const source_override_field = resolve_field_override( - plugin, - source_list_item, - list_note_page.file.path - ); - if (!source_override_field.ok) { - if (source_override_field.error) { - errors.push(source_override_field.error); - } - return; - } - graph.safe_add_directed_edge( - list_note_page.file.path, - source_path, - { - explicit: true, - source: "list_note", - field: (_b2 = (_a2 = source_override_field.data) == null ? void 0 : _a2.field) != null ? _b2 : list_note_info.data.field - } - ); - } - if (list_note_info.data.neighbour_field) { - handle_neighbour_list_item({ - graph, - plugin, - source_path, - list_note_info, - list_note_page, - source_list_item_i - }); - } - source_list_item.children.forEach((target_list_item) => { - var _a3, _b3; - const target_link = target_list_item.outlinks.at(0); - if (!target_link) - return; - const target_override_field = resolve_field_override( - plugin, - target_list_item, - list_note_page.file.path - ); - if (!target_override_field.ok) { - if (target_override_field.error) { - errors.push(target_override_field.error); - } - return; - } - const [target_path, target_file] = resolve_relative_target_path( - plugin.app, - target_link.path, - list_note_page.file.path - ); - if (!target_file) { - graph.safe_add_node(target_path, { resolved: false }); - } - graph.safe_add_directed_edge(source_path, target_path, { - explicit: true, - source: "list_note", - field: (_b3 = (_a3 = target_override_field.data) == null ? void 0 : _a3.field) != null ? _b3 : list_note_info.data.field - }); - }); - } - ); - }); - return { errors }; -}; - -// src/graph/builders/explicit/regex_note.ts -var get_regex_note_info = (plugin, metadata, path) => { - var _a; - if (!metadata) - return fail(void 0); - const regex_str = metadata[META_ALIAS["regex-note-regex"]]; - if (!regex_str) { - return fail(void 0); - } else if (typeof regex_str !== "string") { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: `regex-note-regex is not a string: '${regex_str}'` - }); - } - const flags = metadata[META_ALIAS["regex-note-flags"]]; - if (flags && typeof flags !== "string") { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: `regex-note-flags is not a string: '${flags}'` - }); - } - let regex2; - try { - regex2 = new RegExp(regex_str, flags || ""); - log.debug(`get_regex_note_info > regex:`, regex2); - } catch (e) { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: `regex-note-regex is not a valid regex: ${regex_str}` - }); - } - const field = (_a = metadata[META_ALIAS["regex-note-field"]]) != null ? _a : plugin.settings.explicit_edge_sources.regex_note.default_field; - if (!field) { - return fail(void 0); - } else if (typeof field !== "string") { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: `regex-note-field is not a string: '${field}'` - }); - } else if (!plugin.settings.edge_fields.find((f) => f.label === field)) { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: `dataview-note-field is not a valid field: '${field}'` - }); - } - return succ({ - field, - regex: regex2 - }); -}; -var _add_explicit_edges_regex_note = (graph, plugin, all_files) => { - var _a, _b; - const errors = []; - const regex_note_files = []; - (_a = all_files.obsidian) == null ? void 0 : _a.forEach(({ file, cache }) => { - const info = get_regex_note_info(plugin, cache == null ? void 0 : cache.frontmatter, file.path); - if (!info.ok) { - if (info.error) - errors.push(info.error); - return; - } - regex_note_files.push({ info: info.data, path: file.path }); - }); - (_b = all_files.dataview) == null ? void 0 : _b.forEach((page) => { - const { file } = page; - const info = get_regex_note_info(plugin, page, file.path); - if (!info.ok) { - if (info.error) - errors.push(info.error); - return; - } - regex_note_files.push({ info: info.data, path: file.path }); - }); - if (!regex_note_files) - return { errors }; - const nodes = graph.mapNodes((id) => id); - regex_note_files.forEach((regex_note) => { - nodes.filter((node) => regex_note.info.regex.test(node)).forEach((target_path) => { - graph.safe_add_directed_edge(regex_note.path, target_path, { - explicit: true, - source: "regex_note", - field: regex_note.info.field - }); - }); - }); - return { errors }; -}; - -// src/graph/builders/explicit/tag_note.ts -var get_tag_note_info = (plugin, metadata, path) => { - var _a; - if (!metadata) - return fail(void 0); - let raw_tag = metadata[META_ALIAS["tag-note-tag"]]; - if (!raw_tag) { - raw_tag = metadata["BC-tag-note"]; - if (raw_tag) { - log.warn( - `'BC-tag-note' is deprecated in favor of ${META_ALIAS["tag-note-tag"]}` - ); - } - } - if (!raw_tag) { - return fail(void 0); - } else if (typeof raw_tag !== "string") { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: `tag-note-tag is not a string: '${raw_tag}'` - }); - } - const tag = ensure_starts_with(raw_tag, "#"); - const field = (_a = metadata[META_ALIAS["tag-note-field"]]) != null ? _a : plugin.settings.explicit_edge_sources.tag_note.default_field; - if (!field) { - return fail(void 0); - } else if (typeof field !== "string") { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: `tag-note-field is not a string: '${field}'` - }); - } else if (!plugin.settings.edge_fields.find((f) => f.label === field)) { - return graph_build_fail({ - path, - code: "invalid_field_value", - message: `tag-note-field is not a valid BC field: '${field}'` - }); - } - const exact = Boolean(metadata[META_ALIAS["tag-note-exact"]]); - return succ({ tag, field, exact }); -}; -var _add_explicit_edges_tag_note = (graph, plugin, all_files) => { - var _a, _b; - const errors = []; - const tag_notes = []; - const tag_paths_map = /* @__PURE__ */ new Map(); - (_a = all_files.obsidian) == null ? void 0 : _a.forEach( - ({ file: tag_note_file, cache: tag_note_cache }) => { - var _a2; - if (!tag_note_cache) - return; - (_a2 = tag_note_cache == null ? void 0 : tag_note_cache.tags) == null ? void 0 : _a2.forEach(({ tag: tag2 }) => { - var _a3; - if (!((_a3 = tag_paths_map.get(tag2)) == null ? void 0 : _a3.push(tag_note_file.path))) { - tag_paths_map.set(tag2, [tag_note_file.path]); - } - }); - const tag_note_info = get_tag_note_info( - plugin, - tag_note_cache == null ? void 0 : tag_note_cache.frontmatter, - tag_note_file.path - ); - if (!tag_note_info.ok) { - if (tag_note_info.error) - errors.push(tag_note_info.error); - return; - } - const { tag, field, exact } = tag_note_info.data; - tag_notes.push({ - tag, - exact, - field, - source_path: tag_note_file.path - }); - } - ); - (_b = all_files.dataview) == null ? void 0 : _b.forEach((page) => { - const tag_note_file = page.file; - tag_note_file.etags.values.forEach((tag2) => { - var _a2; - if (!((_a2 = tag_paths_map.get(tag2)) == null ? void 0 : _a2.push(tag_note_file.path))) { - tag_paths_map.set(tag2, [tag_note_file.path]); - } - }); - const tag_note_info = get_tag_note_info( - plugin, - page, - tag_note_file.path - ); - if (!tag_note_info.ok) { - if (tag_note_info.error) - errors.push(tag_note_info.error); - return; - } - const { tag, field, exact } = tag_note_info.data; - tag_notes.push({ - tag, - exact, - field, - source_path: tag_note_file.path - }); - }); - const all_tags = [...tag_paths_map.keys()]; - tag_notes.forEach((tag_note) => { - const target_paths = tag_note.exact ? tag_paths_map.get(tag_note.tag) : all_tags.filter((tag) => tag.startsWith(tag_note.tag)).flatMap((tag) => tag_paths_map.get(tag)); - target_paths == null ? void 0 : target_paths.forEach((target_path) => { - graph.safe_add_directed_edge(tag_note.source_path, target_path, { - explicit: true, - source: "tag_note", - field: tag_note.field - }); - }); - }); - return { errors }; -}; - -// src/graph/builders/explicit/typed_link.ts -var MARKDOWN_LINK_REGEX = /\[(.+?)\]\((.+?)\)/; -var _add_explicit_edges_typed_link = (graph, plugin, all_files) => { - var _a, _b; - const errors = []; - const field_labels = new Set( - plugin.settings.edge_fields.map((f) => f.label) - ); - (_a = all_files.obsidian) == null ? void 0 : _a.forEach( - ({ file: source_file, cache: source_cache }) => { - var _a2; - (_a2 = source_cache == null ? void 0 : source_cache.frontmatterLinks) == null ? void 0 : _a2.forEach((target_link) => { - const field = target_link.key.split(".")[0]; - if (!field_labels.has(field)) - return; - const [target_path, target_file] = resolve_relative_target_path( - plugin.app, - target_link.link, - source_file.path - ); - if (!target_file) { - graph.safe_add_node(target_path, { resolved: false }); - } - graph.safe_add_directed_edge(source_file.path, target_path, { - field, - explicit: true, - source: "typed_link" - }); - }); - } - ); - (_b = all_files.dataview) == null ? void 0 : _b.forEach((page) => { - const source_file = page.file; - Object.keys(page).forEach((field) => { - if (!field_labels.has(field) || ["file", "aliases"].includes(field)) { - return; - } - ensure_is_array(page[field]).flat().forEach((target_link) => { - var _a2; - let unsafe_target_path; - if (!target_link) - return; - else if (typeof target_link === "string") { - unsafe_target_path = (_a2 = target_link.match(MARKDOWN_LINK_REGEX)) == null ? void 0 : _a2[2]; - } else if (typeof target_link === "object" && (target_link == null ? void 0 : target_link.path)) { - unsafe_target_path = target_link.path; - } else if ( - // @ts-expect-error: instanceof didn't work here? - target_link == null ? void 0 : target_link.isLuxonDateTime - ) { - errors.push({ - path: source_file.path, - code: "invalid_field_value", - message: `Invalid value for field '${field}': '${target_link}'. Dataview DateTime values are not supported, since they don't preserve the original date string.` - }); - } else { - errors.push({ - path: source_file.path, - code: "invalid_field_value", - message: `Invalid value for field '${field}': '${target_link}'. Expected wikilink or markdown link.` - }); - } - if (!unsafe_target_path) - return; - const [target_path, target_file] = resolve_relative_target_path( - plugin.app, - unsafe_target_path, - source_file.path - ); - if (!target_file) { - graph.safe_add_node(target_path, { resolved: false }); - } - graph.safe_add_directed_edge( - source_file.path, - target_path, - { - field, - explicit: true, - source: "typed_link" - } - ); - }); - }); - }); - return { errors }; -}; - -// src/graph/builders/explicit/index.ts -var add_explicit_edges = { - tag_note: _add_explicit_edges_tag_note, - list_note: _add_explicit_edges_list_note, - date_note: _add_explicit_edges_date_note, - typed_link: _add_explicit_edges_typed_link, - regex_note: _add_explicit_edges_regex_note, - folder_note: _add_explicit_edges_folder_note, - dendron_note: _add_explicit_edges_dendron_note, - dataview_note: _add_explicit_edges_dataview_note, - johnny_decimal_note: _add_explicit_edges_johnny_decimal_note -}; - -// src/graph/builders/explicit/files.ts -var get_all_files = (app) => { - var _a; - if (dataview_plugin.is_enabled(app)) { - return { - obsidian: null, - dataview: (_a = dataview_plugin.get_api()) == null ? void 0 : _a.pages().values - }; - } else { - return { - obsidian: app.vault.getMarkdownFiles().map((file) => ({ - file, - cache: app.metadataCache.getFileCache(file) - })), - dataview: null - }; - } -}; - -// src/utils/transitive_rules.ts -var stringify_transitive_relation = (rule) => `[${rule.chain.map((attr2) => url_search_params(attr2, { trim_lone_param: true })).join(", ")}] ${rule.close_reversed ? "<-" : "->"} ${rule.close_field}`; -var regex = /\[(.+)\]\s*(<-|->)\s*(.+)/; -var get_transitive_rule_name = (rule) => rule.name || stringify_transitive_relation(rule); -var parse_transitive_relation = (str) => { - const match2 = str.match(regex); - if (!match2) { - return fail(null); - } else { - return succ({ - close_field: match2[3], - close_reversed: match2[2] === "<-", - chain: split_and_trim(match2[1]).map((field) => ({ field })) - }); - } -}; -var input_transitive_rule_schema = (data) => { - const field_labels = data.fields.map((f) => f.label); - return z.object({ - chain: z.array( - z.object({ field: zod.schema.dynamic_enum(field_labels) }) - ), - close_field: zod.schema.dynamic_enum(field_labels, "close_field"), - close_reversed: z.boolean() - }); -}; -var transitive_rule_to_edges = (rule) => { - const edges = []; - rule.chain.forEach((attr2, i) => { - var _a; - edges.push({ - source_id: i.toString(), - target_id: (i + 1).toString(), - source_attr: { resolved: true }, - target_attr: { resolved: true }, - attr: { - explicit: true, - field: (_a = attr2.field) != null ? _a : "", - source: "typed_link" - } - }); - }); - edges.push({ - source_attr: { resolved: true }, - target_attr: { resolved: true }, - source_id: rule.close_reversed ? rule.chain.length.toString() : "0", - target_id: rule.close_reversed ? "0" : rule.chain.length.toString(), - attr: { - round: 1, - explicit: false, - field: rule.close_field, - implied_kind: `transitive:${get_transitive_rule_name(rule)}` - } - }); - return edges; -}; - -// src/graph/builders/implied/transitive.ts -var _add_implied_edges_transitive = (graph, plugin, rule, round) => { - const results = { edges: [], errors: [] }; - if (rule.rounds < round) { - return results; - } else if (!plugin.settings.edge_fields.find((f) => f.label === rule.close_field)) { - results.errors.push({ - code: "invalid_setting_value", - path: "implied_relations.transitive[].close_field", - message: `close_field is not a valid BC field: '${rule.close_field}'` - }); - return results; - } - const implied_kind = `transitive:${get_transitive_rule_name(rule)}`; - graph.forEachNode((start_node) => { - Traverse.get_transitive_chain_target_ids( - graph, - start_node, - rule.chain, - (item) => item.edge.target_id !== start_node - ).forEach((end_node) => { - const [source_id, target_id] = rule.close_reversed ? [end_node, start_node] : [start_node, end_node]; - results.edges.push({ - source_id, - target_id, - attr: { - round, - implied_kind, - explicit: false, - field: rule.close_field - } - }); - }); - }); - return results; -}; - -// src/graph/builders/index.ts -var add_initial_nodes = (graph, all_files) => { - if (all_files.obsidian) { - all_files.obsidian.forEach(({ file, cache }) => { - var _a, _b, _c; - const node_attr = { - resolved: true - }; - const aliases = (_a = cache == null ? void 0 : cache.frontmatter) == null ? void 0 : _a.aliases; - if (Array.isArray(aliases) && aliases.length > 0) { - node_attr.aliases = aliases; - } - if ((_b = cache == null ? void 0 : cache.frontmatter) == null ? void 0 : _b[META_ALIAS["ignore-in-edges"]]) { - node_attr.ignore_in_edges = true; - } - if ((_c = cache == null ? void 0 : cache.frontmatter) == null ? void 0 : _c[META_ALIAS["ignore-out-edges"]]) { - node_attr.ignore_out_edges = true; - } - graph.addNode(file.path, node_attr); - }); - } else { - all_files.dataview.forEach((page) => { - const node_attr = { - resolved: true - }; - const aliases = page.file.aliases.values; - if (Array.isArray(aliases) && aliases.length > 0) { - node_attr.aliases = aliases; - } - if (page[META_ALIAS["ignore-in-edges"]]) { - node_attr.ignore_in_edges = true; - } - if (page[META_ALIAS["ignore-out-edges"]]) { - node_attr.ignore_out_edges = true; - } - graph.addNode(page.file.path, node_attr); - }); - } -}; -var rebuild_graph = async (plugin) => { - const timer = new Timer(); - const timer2 = new Timer(); - const graph = new BCGraph(); - const all_files = get_all_files(plugin.app); - add_initial_nodes(graph, all_files); - log.debug(timer.elapsedMessage("Adding initial nodes")); - timer.reset(); - const explicit_edge_results = await Promise.all( - EXPLICIT_EDGE_SOURCES.map(async (source) => { - const result = await add_explicit_edges[source]( - graph, - plugin, - all_files - ); - return { source, errors: result.errors }; - }) - ); - log.debug(timer.elapsedMessage("Adding initial edges")); - timer.reset(); - const max_implied_relationship_rounds = Math.max( - ...plugin.settings.implied_relations.transitive.map( - (imp) => imp.rounds - ) - ); - const implied_edge_results = { - transitive: [] - }; - const added_fields = /* @__PURE__ */ new Set(); - for (const edge of graph.edgeEntries()) { - added_fields.add(edge.attributes.field); - } - for (let round = 1; round <= max_implied_relationship_rounds; round++) { - const edges = []; - plugin.settings.implied_relations.transitive.forEach((rule) => { - if (!rule.chain.some((attr2) => added_fields.has(attr2.field))) { - return; - } - const result = _add_implied_edges_transitive( - graph, - plugin, - rule, - round - ); - edges.push(...result.edges); - implied_edge_results.transitive.push(...result.errors); - }); - added_fields.clear(); - if (edges.length === 0) - break; - else { - edges.forEach((edge) => { - graph.safe_add_directed_edge( - edge.source_id, - edge.target_id, - edge.attr - ) && added_fields.add(edge.attr.field); - }); - } - } - log.debug(timer.elapsedMessage("Adding implied edges")); - log.debug(timer2.elapsedMessage("Total Graph building")); - return { graph, explicit_edge_results, implied_edge_results }; -}; - -// src/settings/SettingsTab.ts -var import_obsidian24 = require("obsidian"); - -// node_modules/svelte/src/runtime/internal/utils.js -function noop() { -} -function assign(tar, src) { - for (const k in src) - tar[k] = src[k]; - return ( - /** @type {T & S} */ - tar - ); -} -function run(fn) { - return fn(); -} -function blank_object() { - return /* @__PURE__ */ Object.create(null); -} -function run_all(fns) { - fns.forEach(run); -} -function is_function(thing) { - return typeof thing === "function"; -} -function safe_not_equal(a, b) { - return a != a ? b == b : a !== b || a && typeof a === "object" || typeof a === "function"; -} -function is_empty(obj) { - return Object.keys(obj).length === 0; -} -function subscribe(store2, ...callbacks) { - if (store2 == null) { - for (const callback of callbacks) { - callback(void 0); - } - return noop; - } - const unsub = store2.subscribe(...callbacks); - return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub; -} -function get_store_value(store2) { - let value; - subscribe(store2, (_) => value = _)(); - return value; -} -function component_subscribe(component, store2, callback) { - component.$$.on_destroy.push(subscribe(store2, callback)); -} -function create_slot(definition, ctx, $$scope, fn) { - if (definition) { - const slot_ctx = get_slot_context(definition, ctx, $$scope, fn); - return definition[0](slot_ctx); - } -} -function get_slot_context(definition, ctx, $$scope, fn) { - return definition[1] && fn ? assign($$scope.ctx.slice(), definition[1](fn(ctx))) : $$scope.ctx; -} -function get_slot_changes(definition, $$scope, dirty, fn) { - if (definition[2] && fn) { - const lets = definition[2](fn(dirty)); - if ($$scope.dirty === void 0) { - return lets; - } - if (typeof lets === "object") { - const merged = []; - const len = Math.max($$scope.dirty.length, lets.length); - for (let i = 0; i < len; i += 1) { - merged[i] = $$scope.dirty[i] | lets[i]; - } - return merged; - } - return $$scope.dirty | lets; - } - return $$scope.dirty; -} -function update_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn) { - if (slot_changes) { - const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn); - slot.p(slot_context, slot_changes); - } -} -function get_all_dirty_from_scope($$scope) { - if ($$scope.ctx.length > 32) { - const dirty = []; - const length = $$scope.ctx.length / 32; - for (let i = 0; i < length; i++) { - dirty[i] = -1; - } - return dirty; - } - return -1; -} -function exclude_internal_props(props) { - const result = {}; - for (const k in props) - if (k[0] !== "$") - result[k] = props[k]; - return result; -} -function compute_rest_props(props, keys) { - const rest = {}; - keys = new Set(keys); - for (const k in props) - if (!keys.has(k) && k[0] !== "$") - rest[k] = props[k]; - return rest; -} - -// node_modules/svelte/src/runtime/internal/globals.js -var globals = typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : ( - // @ts-ignore Node typings have this - global -); - -// node_modules/svelte/src/runtime/internal/ResizeObserverSingleton.js -var ResizeObserverSingleton = class _ResizeObserverSingleton { - /** @param {ResizeObserverOptions} options */ - constructor(options) { - /** - * @private - * @readonly - * @type {WeakMap} - */ - __publicField(this, "_listeners", "WeakMap" in globals ? /* @__PURE__ */ new WeakMap() : void 0); - /** - * @private - * @type {ResizeObserver} - */ - __publicField(this, "_observer"); - /** @type {ResizeObserverOptions} */ - __publicField(this, "options"); - this.options = options; - } - /** - * @param {Element} element - * @param {import('./private.js').Listener} listener - * @returns {() => void} - */ - observe(element2, listener) { - this._listeners.set(element2, listener); - this._getObserver().observe(element2, this.options); - return () => { - this._listeners.delete(element2); - this._observer.unobserve(element2); - }; - } - /** - * @private - */ - _getObserver() { - var _a; - return (_a = this._observer) != null ? _a : this._observer = new ResizeObserver((entries) => { - var _a2; - for (const entry of entries) { - _ResizeObserverSingleton.entries.set(entry.target, entry); - (_a2 = this._listeners.get(entry.target)) == null ? void 0 : _a2(entry); - } - }); - } -}; -ResizeObserverSingleton.entries = "WeakMap" in globals ? /* @__PURE__ */ new WeakMap() : void 0; - -// node_modules/svelte/src/runtime/internal/dom.js -var is_hydrating = false; -function start_hydrating() { - is_hydrating = true; -} -function end_hydrating() { - is_hydrating = false; -} -function append(target, node) { - target.appendChild(node); -} -function append_styles(target, style_sheet_id, styles) { - const append_styles_to = get_root_for_style(target); - if (!append_styles_to.getElementById(style_sheet_id)) { - const style = element("style"); - style.id = style_sheet_id; - style.textContent = styles; - append_stylesheet(append_styles_to, style); - } -} -function get_root_for_style(node) { - if (!node) - return document; - const root = node.getRootNode ? node.getRootNode() : node.ownerDocument; - if (root && /** @type {ShadowRoot} */ - root.host) { - return ( - /** @type {ShadowRoot} */ - root - ); - } - return node.ownerDocument; -} -function append_stylesheet(node, style) { - append( - /** @type {Document} */ - node.head || node, - style - ); - return style.sheet; -} -function insert(target, node, anchor) { - target.insertBefore(node, anchor || null); -} -function detach(node) { - if (node.parentNode) { - node.parentNode.removeChild(node); - } -} -function destroy_each(iterations, detaching) { - for (let i = 0; i < iterations.length; i += 1) { - if (iterations[i]) - iterations[i].d(detaching); - } -} -function element(name) { - return document.createElement(name); -} -function svg_element(name) { - return document.createElementNS("http://www.w3.org/2000/svg", name); -} -function text(data) { - return document.createTextNode(data); -} -function space() { - return text(" "); -} -function empty() { - return text(""); -} -function listen(node, event, handler, options) { - node.addEventListener(event, handler, options); - return () => node.removeEventListener(event, handler, options); -} -function attr(node, attribute, value) { - if (value == null) - node.removeAttribute(attribute); - else if (node.getAttribute(attribute) !== value) - node.setAttribute(attribute, value); -} -function set_svg_attributes(node, attributes) { - for (const key in attributes) { - attr(node, key, attributes[key]); - } -} -function children(element2) { - return Array.from(element2.childNodes); -} -function set_data(text2, data) { - data = "" + data; - if (text2.data === data) - return; - text2.data = /** @type {string} */ - data; -} -function set_input_value(input, value) { - input.value = value == null ? "" : value; -} -function set_style(node, key, value, important) { - if (value == null) { - node.style.removeProperty(key); - } else { - node.style.setProperty(key, value, important ? "important" : ""); - } -} -function select_option(select, value, mounting) { - for (let i = 0; i < select.options.length; i += 1) { - const option = select.options[i]; - if (option.__value === value) { - option.selected = true; - return; - } - } - if (!mounting || value !== void 0) { - select.selectedIndex = -1; - } -} -function select_value(select) { - const selected_option = select.querySelector(":checked"); - return selected_option && selected_option.__value; -} -function toggle_class(element2, name, toggle) { - element2.classList.toggle(name, !!toggle); -} -function custom_event(type, detail, { bubbles = false, cancelable = false } = {}) { - return new CustomEvent(type, { detail, bubbles, cancelable }); -} -function get_custom_elements_slots(element2) { - const result = {}; - element2.childNodes.forEach( - /** @param {Element} node */ - (node) => { - result[node.slot || "default"] = true; - } - ); - return result; -} - -// node_modules/svelte/src/runtime/internal/lifecycle.js -var current_component; -function set_current_component(component) { - current_component = component; -} -function get_current_component() { - if (!current_component) - throw new Error("Function called outside component initialization"); - return current_component; -} -function onMount(fn) { - get_current_component().$$.on_mount.push(fn); -} -function createEventDispatcher() { - const component = get_current_component(); - return (type, detail, { cancelable = false } = {}) => { - const callbacks = component.$$.callbacks[type]; - if (callbacks) { - const event = custom_event( - /** @type {string} */ - type, - detail, - { cancelable } - ); - callbacks.slice().forEach((fn) => { - fn.call(component, event); - }); - return !event.defaultPrevented; - } - return true; - }; -} -function bubble(component, event) { - const callbacks = component.$$.callbacks[event.type]; - if (callbacks) { - callbacks.slice().forEach((fn) => fn.call(this, event)); - } -} - -// node_modules/svelte/src/runtime/internal/scheduler.js -var dirty_components = []; -var binding_callbacks = []; -var render_callbacks = []; -var flush_callbacks = []; -var resolved_promise = /* @__PURE__ */ Promise.resolve(); -var update_scheduled = false; -function schedule_update() { - if (!update_scheduled) { - update_scheduled = true; - resolved_promise.then(flush); - } -} -function add_render_callback(fn) { - render_callbacks.push(fn); -} -function add_flush_callback(fn) { - flush_callbacks.push(fn); -} -var seen_callbacks = /* @__PURE__ */ new Set(); -var flushidx = 0; -function flush() { - if (flushidx !== 0) { - return; - } - const saved_component = current_component; - do { - try { - while (flushidx < dirty_components.length) { - const component = dirty_components[flushidx]; - flushidx++; - set_current_component(component); - update(component.$$); - } - } catch (e) { - dirty_components.length = 0; - flushidx = 0; - throw e; - } - set_current_component(null); - dirty_components.length = 0; - flushidx = 0; - while (binding_callbacks.length) - binding_callbacks.pop()(); - for (let i = 0; i < render_callbacks.length; i += 1) { - const callback = render_callbacks[i]; - if (!seen_callbacks.has(callback)) { - seen_callbacks.add(callback); - callback(); - } - } - render_callbacks.length = 0; - } while (dirty_components.length); - while (flush_callbacks.length) { - flush_callbacks.pop()(); - } - update_scheduled = false; - seen_callbacks.clear(); - set_current_component(saved_component); -} -function update($$) { - if ($$.fragment !== null) { - $$.update(); - run_all($$.before_update); - const dirty = $$.dirty; - $$.dirty = [-1]; - $$.fragment && $$.fragment.p($$.ctx, dirty); - $$.after_update.forEach(add_render_callback); - } -} -function flush_render_callbacks(fns) { - const filtered = []; - const targets = []; - render_callbacks.forEach((c) => fns.indexOf(c) === -1 ? filtered.push(c) : targets.push(c)); - targets.forEach((c) => c()); - render_callbacks = filtered; -} - -// node_modules/svelte/src/runtime/internal/transitions.js -var outroing = /* @__PURE__ */ new Set(); -var outros; -function group_outros() { - outros = { - r: 0, - c: [], - p: outros - // parent group - }; -} -function check_outros() { - if (!outros.r) { - run_all(outros.c); - } - outros = outros.p; -} -function transition_in(block, local) { - if (block && block.i) { - outroing.delete(block); - block.i(local); - } -} -function transition_out(block, local, detach2, callback) { - if (block && block.o) { - if (outroing.has(block)) - return; - outroing.add(block); - outros.c.push(() => { - outroing.delete(block); - if (callback) { - if (detach2) - block.d(1); - callback(); - } - }); - block.o(local); - } else if (callback) { - callback(); - } -} - -// node_modules/svelte/src/runtime/internal/each.js -function ensure_array_like(array_like_or_iterator) { - return (array_like_or_iterator == null ? void 0 : array_like_or_iterator.length) !== void 0 ? array_like_or_iterator : Array.from(array_like_or_iterator); -} -function outro_and_destroy_block(block, lookup) { - transition_out(block, 1, 1, () => { - lookup.delete(block.key); - }); -} -function update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block12, next, get_context) { - let o = old_blocks.length; - let n2 = list.length; - let i = o; - const old_indexes = {}; - while (i--) - old_indexes[old_blocks[i].key] = i; - const new_blocks = []; - const new_lookup = /* @__PURE__ */ new Map(); - const deltas = /* @__PURE__ */ new Map(); - const updates = []; - i = n2; - while (i--) { - const child_ctx = get_context(ctx, list, i); - const key = get_key(child_ctx); - let block = lookup.get(key); - if (!block) { - block = create_each_block12(key, child_ctx); - block.c(); - } else if (dynamic) { - updates.push(() => block.p(child_ctx, dirty)); - } - new_lookup.set(key, new_blocks[i] = block); - if (key in old_indexes) - deltas.set(key, Math.abs(i - old_indexes[key])); - } - const will_move = /* @__PURE__ */ new Set(); - const did_move = /* @__PURE__ */ new Set(); - function insert2(block) { - transition_in(block, 1); - block.m(node, next); - lookup.set(block.key, block); - next = block.first; - n2--; - } - while (o && n2) { - const new_block = new_blocks[n2 - 1]; - const old_block = old_blocks[o - 1]; - const new_key = new_block.key; - const old_key = old_block.key; - if (new_block === old_block) { - next = new_block.first; - o--; - n2--; - } else if (!new_lookup.has(old_key)) { - destroy(old_block, lookup); - o--; - } else if (!lookup.has(new_key) || will_move.has(new_key)) { - insert2(new_block); - } else if (did_move.has(old_key)) { - o--; - } else if (deltas.get(new_key) > deltas.get(old_key)) { - did_move.add(new_key); - insert2(new_block); - } else { - will_move.add(old_key); - o--; - } - } - while (o--) { - const old_block = old_blocks[o]; - if (!new_lookup.has(old_block.key)) - destroy(old_block, lookup); - } - while (n2) - insert2(new_blocks[n2 - 1]); - run_all(updates); - return new_blocks; -} - -// node_modules/svelte/src/runtime/internal/spread.js -function get_spread_update(levels, updates) { - const update2 = {}; - const to_null_out = {}; - const accounted_for = { $$scope: 1 }; - let i = levels.length; - while (i--) { - const o = levels[i]; - const n2 = updates[i]; - if (n2) { - for (const key in o) { - if (!(key in n2)) - to_null_out[key] = 1; - } - for (const key in n2) { - if (!accounted_for[key]) { - update2[key] = n2[key]; - accounted_for[key] = 1; - } - } - levels[i] = n2; - } else { - for (const key in o) { - accounted_for[key] = 1; - } - } - } - for (const key in to_null_out) { - if (!(key in update2)) - update2[key] = void 0; - } - return update2; -} -function get_spread_object(spread_props) { - return typeof spread_props === "object" && spread_props !== null ? spread_props : {}; -} - -// node_modules/svelte/src/shared/boolean_attributes.js -var _boolean_attributes = ( - /** @type {const} */ - [ - "allowfullscreen", - "allowpaymentrequest", - "async", - "autofocus", - "autoplay", - "checked", - "controls", - "default", - "defer", - "disabled", - "formnovalidate", - "hidden", - "inert", - "ismap", - "loop", - "multiple", - "muted", - "nomodule", - "novalidate", - "open", - "playsinline", - "readonly", - "required", - "reversed", - "selected" - ] -); -var boolean_attributes = /* @__PURE__ */ new Set([..._boolean_attributes]); - -// node_modules/svelte/src/runtime/internal/Component.js -function bind(component, name, callback) { - const index = component.$$.props[name]; - if (index !== void 0) { - component.$$.bound[index] = callback; - callback(component.$$.ctx[index]); - } -} -function create_component(block) { - block && block.c(); -} -function mount_component(component, target, anchor) { - const { fragment, after_update } = component.$$; - fragment && fragment.m(target, anchor); - add_render_callback(() => { - const new_on_destroy = component.$$.on_mount.map(run).filter(is_function); - if (component.$$.on_destroy) { - component.$$.on_destroy.push(...new_on_destroy); - } else { - run_all(new_on_destroy); - } - component.$$.on_mount = []; - }); - after_update.forEach(add_render_callback); -} -function destroy_component(component, detaching) { - const $$ = component.$$; - if ($$.fragment !== null) { - flush_render_callbacks($$.after_update); - run_all($$.on_destroy); - $$.fragment && $$.fragment.d(detaching); - $$.on_destroy = $$.fragment = null; - $$.ctx = []; - } -} -function make_dirty(component, i) { - if (component.$$.dirty[0] === -1) { - dirty_components.push(component); - schedule_update(); - component.$$.dirty.fill(0); - } - component.$$.dirty[i / 31 | 0] |= 1 << i % 31; -} -function init(component, options, instance56, create_fragment56, not_equal, props, append_styles2 = null, dirty = [-1]) { - const parent_component = current_component; - set_current_component(component); - const $$ = component.$$ = { - fragment: null, - ctx: [], - // state - props, - update: noop, - not_equal, - bound: blank_object(), - // lifecycle - on_mount: [], - on_destroy: [], - on_disconnect: [], - before_update: [], - after_update: [], - context: new Map(options.context || (parent_component ? parent_component.$$.context : [])), - // everything else - callbacks: blank_object(), - dirty, - skip_bound: false, - root: options.target || parent_component.$$.root - }; - append_styles2 && append_styles2($$.root); - let ready = false; - $$.ctx = instance56 ? instance56(component, options.props || {}, (i, ret, ...rest) => { - const value = rest.length ? rest[0] : ret; - if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) { - if (!$$.skip_bound && $$.bound[i]) - $$.bound[i](value); - if (ready) - make_dirty(component, i); - } - return ret; - }) : []; - $$.update(); - ready = true; - run_all($$.before_update); - $$.fragment = create_fragment56 ? create_fragment56($$.ctx) : false; - if (options.target) { - if (options.hydrate) { - start_hydrating(); - const nodes = children(options.target); - $$.fragment && $$.fragment.l(nodes); - nodes.forEach(detach); - } else { - $$.fragment && $$.fragment.c(); - } - if (options.intro) - transition_in(component.$$.fragment); - mount_component(component, options.target, options.anchor); - end_hydrating(); - flush(); - } - set_current_component(parent_component); -} -var SvelteElement; -if (typeof HTMLElement === "function") { - SvelteElement = class extends HTMLElement { - constructor($$componentCtor, $$slots, use_shadow_dom) { - super(); - /** The Svelte component constructor */ - __publicField(this, "$$ctor"); - /** Slots */ - __publicField(this, "$$s"); - /** The Svelte component instance */ - __publicField(this, "$$c"); - /** Whether or not the custom element is connected */ - __publicField(this, "$$cn", false); - /** Component props data */ - __publicField(this, "$$d", {}); - /** `true` if currently in the process of reflecting component props back to attributes */ - __publicField(this, "$$r", false); - /** @type {Record} Props definition (name, reflected, type etc) */ - __publicField(this, "$$p_d", {}); - /** @type {Record} Event listeners */ - __publicField(this, "$$l", {}); - /** @type {Map} Event listener unsubscribe functions */ - __publicField(this, "$$l_u", /* @__PURE__ */ new Map()); - this.$$ctor = $$componentCtor; - this.$$s = $$slots; - if (use_shadow_dom) { - this.attachShadow({ mode: "open" }); - } - } - addEventListener(type, listener, options) { - this.$$l[type] = this.$$l[type] || []; - this.$$l[type].push(listener); - if (this.$$c) { - const unsub = this.$$c.$on(type, listener); - this.$$l_u.set(listener, unsub); - } - super.addEventListener(type, listener, options); - } - removeEventListener(type, listener, options) { - super.removeEventListener(type, listener, options); - if (this.$$c) { - const unsub = this.$$l_u.get(listener); - if (unsub) { - unsub(); - this.$$l_u.delete(listener); - } - } - } - async connectedCallback() { - this.$$cn = true; - if (!this.$$c) { - let create_slot2 = function(name) { - return () => { - let node; - const obj = { - c: function create() { - node = element("slot"); - if (name !== "default") { - attr(node, "name", name); - } - }, - /** - * @param {HTMLElement} target - * @param {HTMLElement} [anchor] - */ - m: function mount(target, anchor) { - insert(target, node, anchor); - }, - d: function destroy(detaching) { - if (detaching) { - detach(node); - } - } - }; - return obj; - }; - }; - await Promise.resolve(); - if (!this.$$cn) { - return; - } - const $$slots = {}; - const existing_slots = get_custom_elements_slots(this); - for (const name of this.$$s) { - if (name in existing_slots) { - $$slots[name] = [create_slot2(name)]; - } - } - for (const attribute of this.attributes) { - const name = this.$$g_p(attribute.name); - if (!(name in this.$$d)) { - this.$$d[name] = get_custom_element_value(name, attribute.value, this.$$p_d, "toProp"); - } - } - for (const key in this.$$p_d) { - if (!(key in this.$$d) && this[key] !== void 0) { - this.$$d[key] = this[key]; - delete this[key]; - } - } - this.$$c = new this.$$ctor({ - target: this.shadowRoot || this, - props: { - ...this.$$d, - $$slots, - $$scope: { - ctx: [] - } - } - }); - const reflect_attributes = () => { - this.$$r = true; - for (const key in this.$$p_d) { - this.$$d[key] = this.$$c.$$.ctx[this.$$c.$$.props[key]]; - if (this.$$p_d[key].reflect) { - const attribute_value = get_custom_element_value( - key, - this.$$d[key], - this.$$p_d, - "toAttribute" - ); - if (attribute_value == null) { - this.removeAttribute(this.$$p_d[key].attribute || key); - } else { - this.setAttribute(this.$$p_d[key].attribute || key, attribute_value); - } - } - } - this.$$r = false; - }; - this.$$c.$$.after_update.push(reflect_attributes); - reflect_attributes(); - for (const type in this.$$l) { - for (const listener of this.$$l[type]) { - const unsub = this.$$c.$on(type, listener); - this.$$l_u.set(listener, unsub); - } - } - this.$$l = {}; - } - } - // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte - // and setting attributes through setAttribute etc, this is helpful - attributeChangedCallback(attr2, _oldValue, newValue) { - var _a; - if (this.$$r) - return; - attr2 = this.$$g_p(attr2); - this.$$d[attr2] = get_custom_element_value(attr2, newValue, this.$$p_d, "toProp"); - (_a = this.$$c) == null ? void 0 : _a.$set({ [attr2]: this.$$d[attr2] }); - } - disconnectedCallback() { - this.$$cn = false; - Promise.resolve().then(() => { - if (!this.$$cn) { - this.$$c.$destroy(); - this.$$c = void 0; - } - }); - } - $$g_p(attribute_name) { - return Object.keys(this.$$p_d).find( - (key) => this.$$p_d[key].attribute === attribute_name || !this.$$p_d[key].attribute && key.toLowerCase() === attribute_name - ) || attribute_name; - } - }; -} -function get_custom_element_value(prop, value, props_definition, transform) { - var _a; - const type = (_a = props_definition[prop]) == null ? void 0 : _a.type; - value = type === "Boolean" && typeof value !== "boolean" ? value != null : value; - if (!transform || !props_definition[prop]) { - return value; - } else if (transform === "toAttribute") { - switch (type) { - case "Object": - case "Array": - return value == null ? null : JSON.stringify(value); - case "Boolean": - return value ? "" : null; - case "Number": - return value == null ? null : value; - default: - return value; - } - } else { - switch (type) { - case "Object": - case "Array": - return value && JSON.parse(value); - case "Boolean": - return value; - case "Number": - return value != null ? +value : value; - default: - return value; - } - } -} -var SvelteComponent = class { - constructor() { - /** - * ### PRIVATE API - * - * Do not use, may change at any time - * - * @type {any} - */ - __publicField(this, "$$"); - /** - * ### PRIVATE API - * - * Do not use, may change at any time - * - * @type {any} - */ - __publicField(this, "$$set"); - } - /** @returns {void} */ - $destroy() { - destroy_component(this, 1); - this.$destroy = noop; - } - /** - * @template {Extract} K - * @param {K} type - * @param {((e: Events[K]) => void) | null | undefined} callback - * @returns {() => void} - */ - $on(type, callback) { - if (!is_function(callback)) { - return noop; - } - const callbacks = this.$$.callbacks[type] || (this.$$.callbacks[type] = []); - callbacks.push(callback); - return () => { - const index = callbacks.indexOf(callback); - if (index !== -1) - callbacks.splice(index, 1); - }; - } - /** - * @param {Partial} props - * @returns {void} - */ - $set(props) { - if (this.$$set && !is_empty(props)) { - this.$$.skip_bound = true; - this.$$set(props); - this.$$.skip_bound = false; - } - } -}; - -// node_modules/svelte/src/shared/version.js -var PUBLIC_VERSION = "4"; - -// node_modules/svelte/src/runtime/internal/disclose-version/index.js -if (typeof window !== "undefined") - (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(PUBLIC_VERSION); - -// node_modules/tslib/tslib.es6.mjs -function __awaiter(thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { - resolve(value); - }); - } - return new (P || (P = Promise))(function(resolve, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e) { - reject(e); - } - } - function rejected(value) { - try { - step(generator["throw"](value)); - } catch (e) { - reject(e); - } - } - function step(result) { - result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); - } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -} - -// node_modules/lucide-svelte/dist/defaultAttributes.js -var defaultAttributes = { - xmlns: "http://www.w3.org/2000/svg", - width: 24, - height: 24, - viewBox: "0 0 24 24", - fill: "none", - stroke: "currentColor", - "stroke-width": 2, - "stroke-linecap": "round", - "stroke-linejoin": "round" -}; -var defaultAttributes_default = defaultAttributes; - -// node_modules/lucide-svelte/dist/Icon.svelte -function get_each_context(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[10] = list[i][0]; - child_ctx[11] = list[i][1]; - return child_ctx; -} -function create_dynamic_element(ctx) { - let svelte_element; - let svelte_element_levels = [ - /*attrs*/ - ctx[11] - ]; - let svelte_element_data = {}; - for (let i = 0; i < svelte_element_levels.length; i += 1) { - svelte_element_data = assign(svelte_element_data, svelte_element_levels[i]); - } - return { - c() { - svelte_element = svg_element( - /*tag*/ - ctx[10] - ); - set_svg_attributes(svelte_element, svelte_element_data); - }, - m(target, anchor) { - insert(target, svelte_element, anchor); - }, - p(ctx2, dirty) { - set_svg_attributes(svelte_element, svelte_element_data = get_spread_update(svelte_element_levels, [dirty & /*iconNode*/ - 32 && /*attrs*/ - ctx2[11]])); - }, - d(detaching) { - if (detaching) { - detach(svelte_element); - } - } - }; -} -function create_each_block(ctx) { - let previous_tag = ( - /*tag*/ - ctx[10] - ); - let svelte_element_anchor; - let svelte_element = ( - /*tag*/ - ctx[10] && create_dynamic_element(ctx) - ); - return { - c() { - if (svelte_element) - svelte_element.c(); - svelte_element_anchor = empty(); - }, - m(target, anchor) { - if (svelte_element) - svelte_element.m(target, anchor); - insert(target, svelte_element_anchor, anchor); - }, - p(ctx2, dirty) { - if ( - /*tag*/ - ctx2[10] - ) { - if (!previous_tag) { - svelte_element = create_dynamic_element(ctx2); - previous_tag = /*tag*/ - ctx2[10]; - svelte_element.c(); - svelte_element.m(svelte_element_anchor.parentNode, svelte_element_anchor); - } else if (safe_not_equal( - previous_tag, - /*tag*/ - ctx2[10] - )) { - svelte_element.d(1); - svelte_element = create_dynamic_element(ctx2); - previous_tag = /*tag*/ - ctx2[10]; - svelte_element.c(); - svelte_element.m(svelte_element_anchor.parentNode, svelte_element_anchor); - } else { - svelte_element.p(ctx2, dirty); - } - } else if (previous_tag) { - svelte_element.d(1); - svelte_element = null; - previous_tag = /*tag*/ - ctx2[10]; - } - }, - d(detaching) { - if (detaching) { - detach(svelte_element_anchor); - } - if (svelte_element) - svelte_element.d(detaching); - } - }; -} -function create_fragment(ctx) { - var _a; - let svg; - let each_1_anchor; - let svg_stroke_width_value; - let svg_class_value; - let current; - let each_value = ensure_array_like( - /*iconNode*/ - ctx[5] - ); - let each_blocks = []; - for (let i = 0; i < each_value.length; i += 1) { - each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i)); - } - const default_slot_template = ( - /*#slots*/ - ctx[9].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[8], - null - ); - let svg_levels = [ - defaultAttributes_default, - /*$$restProps*/ - ctx[6], - { width: ( - /*size*/ - ctx[2] - ) }, - { height: ( - /*size*/ - ctx[2] - ) }, - { stroke: ( - /*color*/ - ctx[1] - ) }, - { - "stroke-width": svg_stroke_width_value = /*absoluteStrokeWidth*/ - ctx[4] ? Number( - /*strokeWidth*/ - ctx[3] - ) * 24 / Number( - /*size*/ - ctx[2] - ) : ( - /*strokeWidth*/ - ctx[3] - ) - }, - { - class: svg_class_value = `lucide-icon lucide lucide-${/*name*/ - ctx[0]} ${/*$$props*/ - (_a = ctx[7].class) != null ? _a : ""}` - } - ]; - let svg_data = {}; - for (let i = 0; i < svg_levels.length; i += 1) { - svg_data = assign(svg_data, svg_levels[i]); - } - return { - c() { - svg = svg_element("svg"); - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].c(); - } - each_1_anchor = empty(); - if (default_slot) - default_slot.c(); - set_svg_attributes(svg, svg_data); - }, - m(target, anchor) { - insert(target, svg, anchor); - for (let i = 0; i < each_blocks.length; i += 1) { - if (each_blocks[i]) { - each_blocks[i].m(svg, null); - } - } - append(svg, each_1_anchor); - if (default_slot) { - default_slot.m(svg, null); - } - current = true; - }, - p(ctx2, [dirty]) { - var _a2; - if (dirty & /*iconNode*/ - 32) { - each_value = ensure_array_like( - /*iconNode*/ - ctx2[5] - ); - let i; - for (i = 0; i < each_value.length; i += 1) { - const child_ctx = get_each_context(ctx2, each_value, i); - if (each_blocks[i]) { - each_blocks[i].p(child_ctx, dirty); - } else { - each_blocks[i] = create_each_block(child_ctx); - each_blocks[i].c(); - each_blocks[i].m(svg, each_1_anchor); - } - } - for (; i < each_blocks.length; i += 1) { - each_blocks[i].d(1); - } - each_blocks.length = each_value.length; - } - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 256)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[8], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[8] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[8], - dirty, - null - ), - null - ); - } - } - set_svg_attributes(svg, svg_data = get_spread_update(svg_levels, [ - defaultAttributes_default, - dirty & /*$$restProps*/ - 64 && /*$$restProps*/ - ctx2[6], - (!current || dirty & /*size*/ - 4) && { width: ( - /*size*/ - ctx2[2] - ) }, - (!current || dirty & /*size*/ - 4) && { height: ( - /*size*/ - ctx2[2] - ) }, - (!current || dirty & /*color*/ - 2) && { stroke: ( - /*color*/ - ctx2[1] - ) }, - (!current || dirty & /*absoluteStrokeWidth, strokeWidth, size*/ - 28 && svg_stroke_width_value !== (svg_stroke_width_value = /*absoluteStrokeWidth*/ - ctx2[4] ? Number( - /*strokeWidth*/ - ctx2[3] - ) * 24 / Number( - /*size*/ - ctx2[2] - ) : ( - /*strokeWidth*/ - ctx2[3] - ))) && { "stroke-width": svg_stroke_width_value }, - (!current || dirty & /*name, $$props*/ - 129 && svg_class_value !== (svg_class_value = `lucide-icon lucide lucide-${/*name*/ - ctx2[0]} ${/*$$props*/ - (_a2 = ctx2[7].class) != null ? _a2 : ""}`)) && { class: svg_class_value } - ])); - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(svg); - } - destroy_each(each_blocks, detaching); - if (default_slot) - default_slot.d(detaching); - } - }; -} -function instance($$self, $$props, $$invalidate) { - const omit_props_names = ["name", "color", "size", "strokeWidth", "absoluteStrokeWidth", "iconNode"]; - let $$restProps = compute_rest_props($$props, omit_props_names); - let { $$slots: slots = {}, $$scope } = $$props; - let { name } = $$props; - let { color = "currentColor" } = $$props; - let { size = 24 } = $$props; - let { strokeWidth = 2 } = $$props; - let { absoluteStrokeWidth = false } = $$props; - let { iconNode } = $$props; - $$self.$$set = ($$new_props) => { - $$invalidate(7, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); - $$invalidate(6, $$restProps = compute_rest_props($$props, omit_props_names)); - if ("name" in $$new_props) - $$invalidate(0, name = $$new_props.name); - if ("color" in $$new_props) - $$invalidate(1, color = $$new_props.color); - if ("size" in $$new_props) - $$invalidate(2, size = $$new_props.size); - if ("strokeWidth" in $$new_props) - $$invalidate(3, strokeWidth = $$new_props.strokeWidth); - if ("absoluteStrokeWidth" in $$new_props) - $$invalidate(4, absoluteStrokeWidth = $$new_props.absoluteStrokeWidth); - if ("iconNode" in $$new_props) - $$invalidate(5, iconNode = $$new_props.iconNode); - if ("$$scope" in $$new_props) - $$invalidate(8, $$scope = $$new_props.$$scope); - }; - $$props = exclude_internal_props($$props); - return [ - name, - color, - size, - strokeWidth, - absoluteStrokeWidth, - iconNode, - $$restProps, - $$props, - $$scope, - slots - ]; -} -var Icon = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance, create_fragment, safe_not_equal, { - name: 0, - color: 1, - size: 2, - strokeWidth: 3, - absoluteStrokeWidth: 4, - iconNode: 5 - }); - } -}; -var Icon_default = Icon; - -// node_modules/lucide-svelte/dist/icons/arrow-down-wide-narrow.svelte -function create_default_slot(ctx) { - let current; - const default_slot_template = ( - /*#slots*/ - ctx[2].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[3], - null - ); - return { - c() { - if (default_slot) - default_slot.c(); - }, - m(target, anchor) { - if (default_slot) { - default_slot.m(target, anchor); - } - current = true; - }, - p(ctx2, dirty) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 8)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[3], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[3] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[3], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (default_slot) - default_slot.d(detaching); - } - }; -} -function create_fragment2(ctx) { - let icon; - let current; - const icon_spread_levels = [ - { name: "arrow-down-wide-narrow" }, - /*$$props*/ - ctx[1], - { iconNode: ( - /*iconNode*/ - ctx[0] - ) } - ]; - let icon_props = { - $$slots: { default: [create_default_slot] }, - $$scope: { ctx } - }; - for (let i = 0; i < icon_spread_levels.length; i += 1) { - icon_props = assign(icon_props, icon_spread_levels[i]); - } - icon = new Icon_default({ props: icon_props }); - return { - c() { - create_component(icon.$$.fragment); - }, - m(target, anchor) { - mount_component(icon, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const icon_changes = dirty & /*$$props, iconNode*/ - 3 ? get_spread_update(icon_spread_levels, [ - icon_spread_levels[0], - dirty & /*$$props*/ - 2 && get_spread_object( - /*$$props*/ - ctx2[1] - ), - dirty & /*iconNode*/ - 1 && { iconNode: ( - /*iconNode*/ - ctx2[0] - ) } - ]) : {}; - if (dirty & /*$$scope*/ - 8) { - icon_changes.$$scope = { dirty, ctx: ctx2 }; - } - icon.$set(icon_changes); - }, - i(local) { - if (current) - return; - transition_in(icon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(icon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(icon, detaching); - } - }; -} -function instance2($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - const iconNode = [ - ["path", { "d": "m3 16 4 4 4-4" }], - ["path", { "d": "M7 20V4" }], - ["path", { "d": "M11 4h10" }], - ["path", { "d": "M11 8h7" }], - ["path", { "d": "M11 12h4" }] - ]; - $$self.$$set = ($$new_props) => { - $$invalidate(1, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); - if ("$$scope" in $$new_props) - $$invalidate(3, $$scope = $$new_props.$$scope); - }; - $$props = exclude_internal_props($$props); - return [iconNode, $$props, slots, $$scope]; -} -var Arrow_down_wide_narrow = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance2, create_fragment2, safe_not_equal, {}); - } -}; -var arrow_down_wide_narrow_default = Arrow_down_wide_narrow; - -// node_modules/lucide-svelte/dist/icons/arrow-down.svelte -function create_default_slot2(ctx) { - let current; - const default_slot_template = ( - /*#slots*/ - ctx[2].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[3], - null - ); - return { - c() { - if (default_slot) - default_slot.c(); - }, - m(target, anchor) { - if (default_slot) { - default_slot.m(target, anchor); - } - current = true; - }, - p(ctx2, dirty) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 8)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[3], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[3] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[3], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (default_slot) - default_slot.d(detaching); - } - }; -} -function create_fragment3(ctx) { - let icon; - let current; - const icon_spread_levels = [ - { name: "arrow-down" }, - /*$$props*/ - ctx[1], - { iconNode: ( - /*iconNode*/ - ctx[0] - ) } - ]; - let icon_props = { - $$slots: { default: [create_default_slot2] }, - $$scope: { ctx } - }; - for (let i = 0; i < icon_spread_levels.length; i += 1) { - icon_props = assign(icon_props, icon_spread_levels[i]); - } - icon = new Icon_default({ props: icon_props }); - return { - c() { - create_component(icon.$$.fragment); - }, - m(target, anchor) { - mount_component(icon, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const icon_changes = dirty & /*$$props, iconNode*/ - 3 ? get_spread_update(icon_spread_levels, [ - icon_spread_levels[0], - dirty & /*$$props*/ - 2 && get_spread_object( - /*$$props*/ - ctx2[1] - ), - dirty & /*iconNode*/ - 1 && { iconNode: ( - /*iconNode*/ - ctx2[0] - ) } - ]) : {}; - if (dirty & /*$$scope*/ - 8) { - icon_changes.$$scope = { dirty, ctx: ctx2 }; - } - icon.$set(icon_changes); - }, - i(local) { - if (current) - return; - transition_in(icon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(icon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(icon, detaching); - } - }; -} -function instance3($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - const iconNode = [["path", { "d": "M12 5v14" }], ["path", { "d": "m19 12-7 7-7-7" }]]; - $$self.$$set = ($$new_props) => { - $$invalidate(1, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); - if ("$$scope" in $$new_props) - $$invalidate(3, $$scope = $$new_props.$$scope); - }; - $$props = exclude_internal_props($$props); - return [iconNode, $$props, slots, $$scope]; -} -var Arrow_down = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance3, create_fragment3, safe_not_equal, {}); - } -}; -var arrow_down_default = Arrow_down; - -// node_modules/lucide-svelte/dist/icons/arrow-up-narrow-wide.svelte -function create_default_slot3(ctx) { - let current; - const default_slot_template = ( - /*#slots*/ - ctx[2].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[3], - null - ); - return { - c() { - if (default_slot) - default_slot.c(); - }, - m(target, anchor) { - if (default_slot) { - default_slot.m(target, anchor); - } - current = true; - }, - p(ctx2, dirty) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 8)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[3], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[3] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[3], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (default_slot) - default_slot.d(detaching); - } - }; -} -function create_fragment4(ctx) { - let icon; - let current; - const icon_spread_levels = [ - { name: "arrow-up-narrow-wide" }, - /*$$props*/ - ctx[1], - { iconNode: ( - /*iconNode*/ - ctx[0] - ) } - ]; - let icon_props = { - $$slots: { default: [create_default_slot3] }, - $$scope: { ctx } - }; - for (let i = 0; i < icon_spread_levels.length; i += 1) { - icon_props = assign(icon_props, icon_spread_levels[i]); - } - icon = new Icon_default({ props: icon_props }); - return { - c() { - create_component(icon.$$.fragment); - }, - m(target, anchor) { - mount_component(icon, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const icon_changes = dirty & /*$$props, iconNode*/ - 3 ? get_spread_update(icon_spread_levels, [ - icon_spread_levels[0], - dirty & /*$$props*/ - 2 && get_spread_object( - /*$$props*/ - ctx2[1] - ), - dirty & /*iconNode*/ - 1 && { iconNode: ( - /*iconNode*/ - ctx2[0] - ) } - ]) : {}; - if (dirty & /*$$scope*/ - 8) { - icon_changes.$$scope = { dirty, ctx: ctx2 }; - } - icon.$set(icon_changes); - }, - i(local) { - if (current) - return; - transition_in(icon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(icon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(icon, detaching); - } - }; -} -function instance4($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - const iconNode = [ - ["path", { "d": "m3 8 4-4 4 4" }], - ["path", { "d": "M7 4v16" }], - ["path", { "d": "M11 12h4" }], - ["path", { "d": "M11 16h7" }], - ["path", { "d": "M11 20h10" }] - ]; - $$self.$$set = ($$new_props) => { - $$invalidate(1, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); - if ("$$scope" in $$new_props) - $$invalidate(3, $$scope = $$new_props.$$scope); - }; - $$props = exclude_internal_props($$props); - return [iconNode, $$props, slots, $$scope]; -} -var Arrow_up_narrow_wide = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance4, create_fragment4, safe_not_equal, {}); - } -}; -var arrow_up_narrow_wide_default = Arrow_up_narrow_wide; - -// node_modules/lucide-svelte/dist/icons/arrow-up.svelte -function create_default_slot4(ctx) { - let current; - const default_slot_template = ( - /*#slots*/ - ctx[2].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[3], - null - ); - return { - c() { - if (default_slot) - default_slot.c(); - }, - m(target, anchor) { - if (default_slot) { - default_slot.m(target, anchor); - } - current = true; - }, - p(ctx2, dirty) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 8)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[3], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[3] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[3], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (default_slot) - default_slot.d(detaching); - } - }; -} -function create_fragment5(ctx) { - let icon; - let current; - const icon_spread_levels = [ - { name: "arrow-up" }, - /*$$props*/ - ctx[1], - { iconNode: ( - /*iconNode*/ - ctx[0] - ) } - ]; - let icon_props = { - $$slots: { default: [create_default_slot4] }, - $$scope: { ctx } - }; - for (let i = 0; i < icon_spread_levels.length; i += 1) { - icon_props = assign(icon_props, icon_spread_levels[i]); - } - icon = new Icon_default({ props: icon_props }); - return { - c() { - create_component(icon.$$.fragment); - }, - m(target, anchor) { - mount_component(icon, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const icon_changes = dirty & /*$$props, iconNode*/ - 3 ? get_spread_update(icon_spread_levels, [ - icon_spread_levels[0], - dirty & /*$$props*/ - 2 && get_spread_object( - /*$$props*/ - ctx2[1] - ), - dirty & /*iconNode*/ - 1 && { iconNode: ( - /*iconNode*/ - ctx2[0] - ) } - ]) : {}; - if (dirty & /*$$scope*/ - 8) { - icon_changes.$$scope = { dirty, ctx: ctx2 }; - } - icon.$set(icon_changes); - }, - i(local) { - if (current) - return; - transition_in(icon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(icon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(icon, detaching); - } - }; -} -function instance5($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - const iconNode = [["path", { "d": "m5 12 7-7 7 7" }], ["path", { "d": "M12 19V5" }]]; - $$self.$$set = ($$new_props) => { - $$invalidate(1, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); - if ("$$scope" in $$new_props) - $$invalidate(3, $$scope = $$new_props.$$scope); - }; - $$props = exclude_internal_props($$props); - return [iconNode, $$props, slots, $$scope]; -} -var Arrow_up = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance5, create_fragment5, safe_not_equal, {}); - } -}; -var arrow_up_default = Arrow_up; - -// node_modules/lucide-svelte/dist/icons/check.svelte -function create_default_slot5(ctx) { - let current; - const default_slot_template = ( - /*#slots*/ - ctx[2].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[3], - null - ); - return { - c() { - if (default_slot) - default_slot.c(); - }, - m(target, anchor) { - if (default_slot) { - default_slot.m(target, anchor); - } - current = true; - }, - p(ctx2, dirty) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 8)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[3], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[3] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[3], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (default_slot) - default_slot.d(detaching); - } - }; -} -function create_fragment6(ctx) { - let icon; - let current; - const icon_spread_levels = [ - { name: "check" }, - /*$$props*/ - ctx[1], - { iconNode: ( - /*iconNode*/ - ctx[0] - ) } - ]; - let icon_props = { - $$slots: { default: [create_default_slot5] }, - $$scope: { ctx } - }; - for (let i = 0; i < icon_spread_levels.length; i += 1) { - icon_props = assign(icon_props, icon_spread_levels[i]); - } - icon = new Icon_default({ props: icon_props }); - return { - c() { - create_component(icon.$$.fragment); - }, - m(target, anchor) { - mount_component(icon, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const icon_changes = dirty & /*$$props, iconNode*/ - 3 ? get_spread_update(icon_spread_levels, [ - icon_spread_levels[0], - dirty & /*$$props*/ - 2 && get_spread_object( - /*$$props*/ - ctx2[1] - ), - dirty & /*iconNode*/ - 1 && { iconNode: ( - /*iconNode*/ - ctx2[0] - ) } - ]) : {}; - if (dirty & /*$$scope*/ - 8) { - icon_changes.$$scope = { dirty, ctx: ctx2 }; - } - icon.$set(icon_changes); - }, - i(local) { - if (current) - return; - transition_in(icon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(icon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(icon, detaching); - } - }; -} -function instance6($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - const iconNode = [["path", { "d": "M20 6 9 17l-5-5" }]]; - $$self.$$set = ($$new_props) => { - $$invalidate(1, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); - if ("$$scope" in $$new_props) - $$invalidate(3, $$scope = $$new_props.$$scope); - }; - $$props = exclude_internal_props($$props); - return [iconNode, $$props, slots, $$scope]; -} -var Check = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance6, create_fragment6, safe_not_equal, {}); - } -}; -var check_default = Check; - -// node_modules/lucide-svelte/dist/icons/chevron-down.svelte -function create_default_slot6(ctx) { - let current; - const default_slot_template = ( - /*#slots*/ - ctx[2].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[3], - null - ); - return { - c() { - if (default_slot) - default_slot.c(); - }, - m(target, anchor) { - if (default_slot) { - default_slot.m(target, anchor); - } - current = true; - }, - p(ctx2, dirty) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 8)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[3], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[3] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[3], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (default_slot) - default_slot.d(detaching); - } - }; -} -function create_fragment7(ctx) { - let icon; - let current; - const icon_spread_levels = [ - { name: "chevron-down" }, - /*$$props*/ - ctx[1], - { iconNode: ( - /*iconNode*/ - ctx[0] - ) } - ]; - let icon_props = { - $$slots: { default: [create_default_slot6] }, - $$scope: { ctx } - }; - for (let i = 0; i < icon_spread_levels.length; i += 1) { - icon_props = assign(icon_props, icon_spread_levels[i]); - } - icon = new Icon_default({ props: icon_props }); - return { - c() { - create_component(icon.$$.fragment); - }, - m(target, anchor) { - mount_component(icon, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const icon_changes = dirty & /*$$props, iconNode*/ - 3 ? get_spread_update(icon_spread_levels, [ - icon_spread_levels[0], - dirty & /*$$props*/ - 2 && get_spread_object( - /*$$props*/ - ctx2[1] - ), - dirty & /*iconNode*/ - 1 && { iconNode: ( - /*iconNode*/ - ctx2[0] - ) } - ]) : {}; - if (dirty & /*$$scope*/ - 8) { - icon_changes.$$scope = { dirty, ctx: ctx2 }; - } - icon.$set(icon_changes); - }, - i(local) { - if (current) - return; - transition_in(icon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(icon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(icon, detaching); - } - }; -} -function instance7($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - const iconNode = [["path", { "d": "m6 9 6 6 6-6" }]]; - $$self.$$set = ($$new_props) => { - $$invalidate(1, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); - if ("$$scope" in $$new_props) - $$invalidate(3, $$scope = $$new_props.$$scope); - }; - $$props = exclude_internal_props($$props); - return [iconNode, $$props, slots, $$scope]; -} -var Chevron_down = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance7, create_fragment7, safe_not_equal, {}); - } -}; -var chevron_down_default = Chevron_down; - -// node_modules/lucide-svelte/dist/icons/chevron-right.svelte -function create_default_slot7(ctx) { - let current; - const default_slot_template = ( - /*#slots*/ - ctx[2].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[3], - null - ); - return { - c() { - if (default_slot) - default_slot.c(); - }, - m(target, anchor) { - if (default_slot) { - default_slot.m(target, anchor); - } - current = true; - }, - p(ctx2, dirty) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 8)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[3], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[3] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[3], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (default_slot) - default_slot.d(detaching); - } - }; -} -function create_fragment8(ctx) { - let icon; - let current; - const icon_spread_levels = [ - { name: "chevron-right" }, - /*$$props*/ - ctx[1], - { iconNode: ( - /*iconNode*/ - ctx[0] - ) } - ]; - let icon_props = { - $$slots: { default: [create_default_slot7] }, - $$scope: { ctx } - }; - for (let i = 0; i < icon_spread_levels.length; i += 1) { - icon_props = assign(icon_props, icon_spread_levels[i]); - } - icon = new Icon_default({ props: icon_props }); - return { - c() { - create_component(icon.$$.fragment); - }, - m(target, anchor) { - mount_component(icon, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const icon_changes = dirty & /*$$props, iconNode*/ - 3 ? get_spread_update(icon_spread_levels, [ - icon_spread_levels[0], - dirty & /*$$props*/ - 2 && get_spread_object( - /*$$props*/ - ctx2[1] - ), - dirty & /*iconNode*/ - 1 && { iconNode: ( - /*iconNode*/ - ctx2[0] - ) } - ]) : {}; - if (dirty & /*$$scope*/ - 8) { - icon_changes.$$scope = { dirty, ctx: ctx2 }; - } - icon.$set(icon_changes); - }, - i(local) { - if (current) - return; - transition_in(icon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(icon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(icon, detaching); - } - }; -} -function instance8($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - const iconNode = [["path", { "d": "m9 18 6-6-6-6" }]]; - $$self.$$set = ($$new_props) => { - $$invalidate(1, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); - if ("$$scope" in $$new_props) - $$invalidate(3, $$scope = $$new_props.$$scope); - }; - $$props = exclude_internal_props($$props); - return [iconNode, $$props, slots, $$scope]; -} -var Chevron_right = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance8, create_fragment8, safe_not_equal, {}); - } -}; -var chevron_right_default = Chevron_right; - -// node_modules/lucide-svelte/dist/icons/chevrons-down-up.svelte -function create_default_slot8(ctx) { - let current; - const default_slot_template = ( - /*#slots*/ - ctx[2].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[3], - null - ); - return { - c() { - if (default_slot) - default_slot.c(); - }, - m(target, anchor) { - if (default_slot) { - default_slot.m(target, anchor); - } - current = true; - }, - p(ctx2, dirty) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 8)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[3], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[3] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[3], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (default_slot) - default_slot.d(detaching); - } - }; -} -function create_fragment9(ctx) { - let icon; - let current; - const icon_spread_levels = [ - { name: "chevrons-down-up" }, - /*$$props*/ - ctx[1], - { iconNode: ( - /*iconNode*/ - ctx[0] - ) } - ]; - let icon_props = { - $$slots: { default: [create_default_slot8] }, - $$scope: { ctx } - }; - for (let i = 0; i < icon_spread_levels.length; i += 1) { - icon_props = assign(icon_props, icon_spread_levels[i]); - } - icon = new Icon_default({ props: icon_props }); - return { - c() { - create_component(icon.$$.fragment); - }, - m(target, anchor) { - mount_component(icon, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const icon_changes = dirty & /*$$props, iconNode*/ - 3 ? get_spread_update(icon_spread_levels, [ - icon_spread_levels[0], - dirty & /*$$props*/ - 2 && get_spread_object( - /*$$props*/ - ctx2[1] - ), - dirty & /*iconNode*/ - 1 && { iconNode: ( - /*iconNode*/ - ctx2[0] - ) } - ]) : {}; - if (dirty & /*$$scope*/ - 8) { - icon_changes.$$scope = { dirty, ctx: ctx2 }; - } - icon.$set(icon_changes); - }, - i(local) { - if (current) - return; - transition_in(icon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(icon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(icon, detaching); - } - }; -} -function instance9($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - const iconNode = [["path", { "d": "m7 20 5-5 5 5" }], ["path", { "d": "m7 4 5 5 5-5" }]]; - $$self.$$set = ($$new_props) => { - $$invalidate(1, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); - if ("$$scope" in $$new_props) - $$invalidate(3, $$scope = $$new_props.$$scope); - }; - $$props = exclude_internal_props($$props); - return [iconNode, $$props, slots, $$scope]; -} -var Chevrons_down_up = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance9, create_fragment9, safe_not_equal, {}); - } -}; -var chevrons_down_up_default = Chevrons_down_up; - -// node_modules/lucide-svelte/dist/icons/chevrons-up-down.svelte -function create_default_slot9(ctx) { - let current; - const default_slot_template = ( - /*#slots*/ - ctx[2].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[3], - null - ); - return { - c() { - if (default_slot) - default_slot.c(); - }, - m(target, anchor) { - if (default_slot) { - default_slot.m(target, anchor); - } - current = true; - }, - p(ctx2, dirty) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 8)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[3], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[3] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[3], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (default_slot) - default_slot.d(detaching); - } - }; -} -function create_fragment10(ctx) { - let icon; - let current; - const icon_spread_levels = [ - { name: "chevrons-up-down" }, - /*$$props*/ - ctx[1], - { iconNode: ( - /*iconNode*/ - ctx[0] - ) } - ]; - let icon_props = { - $$slots: { default: [create_default_slot9] }, - $$scope: { ctx } - }; - for (let i = 0; i < icon_spread_levels.length; i += 1) { - icon_props = assign(icon_props, icon_spread_levels[i]); - } - icon = new Icon_default({ props: icon_props }); - return { - c() { - create_component(icon.$$.fragment); - }, - m(target, anchor) { - mount_component(icon, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const icon_changes = dirty & /*$$props, iconNode*/ - 3 ? get_spread_update(icon_spread_levels, [ - icon_spread_levels[0], - dirty & /*$$props*/ - 2 && get_spread_object( - /*$$props*/ - ctx2[1] - ), - dirty & /*iconNode*/ - 1 && { iconNode: ( - /*iconNode*/ - ctx2[0] - ) } - ]) : {}; - if (dirty & /*$$scope*/ - 8) { - icon_changes.$$scope = { dirty, ctx: ctx2 }; - } - icon.$set(icon_changes); - }, - i(local) { - if (current) - return; - transition_in(icon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(icon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(icon, detaching); - } - }; -} -function instance10($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - const iconNode = [["path", { "d": "m7 15 5 5 5-5" }], ["path", { "d": "m7 9 5-5 5 5" }]]; - $$self.$$set = ($$new_props) => { - $$invalidate(1, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); - if ("$$scope" in $$new_props) - $$invalidate(3, $$scope = $$new_props.$$scope); - }; - $$props = exclude_internal_props($$props); - return [iconNode, $$props, slots, $$scope]; -} -var Chevrons_up_down = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance10, create_fragment10, safe_not_equal, {}); - } -}; -var chevrons_up_down_default = Chevrons_up_down; - -// node_modules/lucide-svelte/dist/icons/clipboard.svelte -function create_default_slot10(ctx) { - let current; - const default_slot_template = ( - /*#slots*/ - ctx[2].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[3], - null - ); - return { - c() { - if (default_slot) - default_slot.c(); - }, - m(target, anchor) { - if (default_slot) { - default_slot.m(target, anchor); - } - current = true; - }, - p(ctx2, dirty) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 8)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[3], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[3] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[3], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (default_slot) - default_slot.d(detaching); - } - }; -} -function create_fragment11(ctx) { - let icon; - let current; - const icon_spread_levels = [ - { name: "clipboard" }, - /*$$props*/ - ctx[1], - { iconNode: ( - /*iconNode*/ - ctx[0] - ) } - ]; - let icon_props = { - $$slots: { default: [create_default_slot10] }, - $$scope: { ctx } - }; - for (let i = 0; i < icon_spread_levels.length; i += 1) { - icon_props = assign(icon_props, icon_spread_levels[i]); - } - icon = new Icon_default({ props: icon_props }); - return { - c() { - create_component(icon.$$.fragment); - }, - m(target, anchor) { - mount_component(icon, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const icon_changes = dirty & /*$$props, iconNode*/ - 3 ? get_spread_update(icon_spread_levels, [ - icon_spread_levels[0], - dirty & /*$$props*/ - 2 && get_spread_object( - /*$$props*/ - ctx2[1] - ), - dirty & /*iconNode*/ - 1 && { iconNode: ( - /*iconNode*/ - ctx2[0] - ) } - ]) : {}; - if (dirty & /*$$scope*/ - 8) { - icon_changes.$$scope = { dirty, ctx: ctx2 }; - } - icon.$set(icon_changes); - }, - i(local) { - if (current) - return; - transition_in(icon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(icon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(icon, detaching); - } - }; -} -function instance11($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - const iconNode = [ - [ - "rect", - { - "width": "8", - "height": "4", - "x": "8", - "y": "2", - "rx": "1", - "ry": "1" - } - ], - [ - "path", - { - "d": "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" - } - ] - ]; - $$self.$$set = ($$new_props) => { - $$invalidate(1, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); - if ("$$scope" in $$new_props) - $$invalidate(3, $$scope = $$new_props.$$scope); - }; - $$props = exclude_internal_props($$props); - return [iconNode, $$props, slots, $$scope]; -} -var Clipboard = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance11, create_fragment11, safe_not_equal, {}); - } -}; -var clipboard_default = Clipboard; - -// node_modules/lucide-svelte/dist/icons/file-json.svelte -function create_default_slot11(ctx) { - let current; - const default_slot_template = ( - /*#slots*/ - ctx[2].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[3], - null - ); - return { - c() { - if (default_slot) - default_slot.c(); - }, - m(target, anchor) { - if (default_slot) { - default_slot.m(target, anchor); - } - current = true; - }, - p(ctx2, dirty) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 8)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[3], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[3] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[3], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (default_slot) - default_slot.d(detaching); - } - }; -} -function create_fragment12(ctx) { - let icon; - let current; - const icon_spread_levels = [ - { name: "file-json" }, - /*$$props*/ - ctx[1], - { iconNode: ( - /*iconNode*/ - ctx[0] - ) } - ]; - let icon_props = { - $$slots: { default: [create_default_slot11] }, - $$scope: { ctx } - }; - for (let i = 0; i < icon_spread_levels.length; i += 1) { - icon_props = assign(icon_props, icon_spread_levels[i]); - } - icon = new Icon_default({ props: icon_props }); - return { - c() { - create_component(icon.$$.fragment); - }, - m(target, anchor) { - mount_component(icon, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const icon_changes = dirty & /*$$props, iconNode*/ - 3 ? get_spread_update(icon_spread_levels, [ - icon_spread_levels[0], - dirty & /*$$props*/ - 2 && get_spread_object( - /*$$props*/ - ctx2[1] - ), - dirty & /*iconNode*/ - 1 && { iconNode: ( - /*iconNode*/ - ctx2[0] - ) } - ]) : {}; - if (dirty & /*$$scope*/ - 8) { - icon_changes.$$scope = { dirty, ctx: ctx2 }; - } - icon.$set(icon_changes); - }, - i(local) { - if (current) - return; - transition_in(icon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(icon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(icon, detaching); - } - }; -} -function instance12($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - const iconNode = [ - [ - "path", - { - "d": "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" - } - ], - ["path", { "d": "M14 2v4a2 2 0 0 0 2 2h4" }], - [ - "path", - { - "d": "M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1" - } - ], - [ - "path", - { - "d": "M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1" - } - ] - ]; - $$self.$$set = ($$new_props) => { - $$invalidate(1, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); - if ("$$scope" in $$new_props) - $$invalidate(3, $$scope = $$new_props.$$scope); - }; - $$props = exclude_internal_props($$props); - return [iconNode, $$props, slots, $$scope]; -} -var File_json = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance12, create_fragment12, safe_not_equal, {}); - } -}; -var file_json_default = File_json; - -// node_modules/lucide-svelte/dist/icons/group.svelte -function create_default_slot12(ctx) { - let current; - const default_slot_template = ( - /*#slots*/ - ctx[2].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[3], - null - ); - return { - c() { - if (default_slot) - default_slot.c(); - }, - m(target, anchor) { - if (default_slot) { - default_slot.m(target, anchor); - } - current = true; - }, - p(ctx2, dirty) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 8)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[3], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[3] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[3], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (default_slot) - default_slot.d(detaching); - } - }; -} -function create_fragment13(ctx) { - let icon; - let current; - const icon_spread_levels = [ - { name: "group" }, - /*$$props*/ - ctx[1], - { iconNode: ( - /*iconNode*/ - ctx[0] - ) } - ]; - let icon_props = { - $$slots: { default: [create_default_slot12] }, - $$scope: { ctx } - }; - for (let i = 0; i < icon_spread_levels.length; i += 1) { - icon_props = assign(icon_props, icon_spread_levels[i]); - } - icon = new Icon_default({ props: icon_props }); - return { - c() { - create_component(icon.$$.fragment); - }, - m(target, anchor) { - mount_component(icon, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const icon_changes = dirty & /*$$props, iconNode*/ - 3 ? get_spread_update(icon_spread_levels, [ - icon_spread_levels[0], - dirty & /*$$props*/ - 2 && get_spread_object( - /*$$props*/ - ctx2[1] - ), - dirty & /*iconNode*/ - 1 && { iconNode: ( - /*iconNode*/ - ctx2[0] - ) } - ]) : {}; - if (dirty & /*$$scope*/ - 8) { - icon_changes.$$scope = { dirty, ctx: ctx2 }; - } - icon.$set(icon_changes); - }, - i(local) { - if (current) - return; - transition_in(icon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(icon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(icon, detaching); - } - }; -} -function instance13($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - const iconNode = [ - ["path", { "d": "M3 7V5c0-1.1.9-2 2-2h2" }], - ["path", { "d": "M17 3h2c1.1 0 2 .9 2 2v2" }], - ["path", { "d": "M21 17v2c0 1.1-.9 2-2 2h-2" }], - ["path", { "d": "M7 21H5c-1.1 0-2-.9-2-2v-2" }], - [ - "rect", - { - "width": "7", - "height": "5", - "x": "7", - "y": "7", - "rx": "1" - } - ], - [ - "rect", - { - "width": "7", - "height": "5", - "x": "10", - "y": "12", - "rx": "1" - } - ] - ]; - $$self.$$set = ($$new_props) => { - $$invalidate(1, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); - if ("$$scope" in $$new_props) - $$invalidate(3, $$scope = $$new_props.$$scope); - }; - $$props = exclude_internal_props($$props); - return [iconNode, $$props, slots, $$scope]; -} -var Group = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance13, create_fragment13, safe_not_equal, {}); - } -}; -var group_default = Group; - -// node_modules/lucide-svelte/dist/icons/image.svelte -function create_default_slot13(ctx) { - let current; - const default_slot_template = ( - /*#slots*/ - ctx[2].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[3], - null - ); - return { - c() { - if (default_slot) - default_slot.c(); - }, - m(target, anchor) { - if (default_slot) { - default_slot.m(target, anchor); - } - current = true; - }, - p(ctx2, dirty) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 8)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[3], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[3] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[3], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (default_slot) - default_slot.d(detaching); - } - }; -} -function create_fragment14(ctx) { - let icon; - let current; - const icon_spread_levels = [ - { name: "image" }, - /*$$props*/ - ctx[1], - { iconNode: ( - /*iconNode*/ - ctx[0] - ) } - ]; - let icon_props = { - $$slots: { default: [create_default_slot13] }, - $$scope: { ctx } - }; - for (let i = 0; i < icon_spread_levels.length; i += 1) { - icon_props = assign(icon_props, icon_spread_levels[i]); - } - icon = new Icon_default({ props: icon_props }); - return { - c() { - create_component(icon.$$.fragment); - }, - m(target, anchor) { - mount_component(icon, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const icon_changes = dirty & /*$$props, iconNode*/ - 3 ? get_spread_update(icon_spread_levels, [ - icon_spread_levels[0], - dirty & /*$$props*/ - 2 && get_spread_object( - /*$$props*/ - ctx2[1] - ), - dirty & /*iconNode*/ - 1 && { iconNode: ( - /*iconNode*/ - ctx2[0] - ) } - ]) : {}; - if (dirty & /*$$scope*/ - 8) { - icon_changes.$$scope = { dirty, ctx: ctx2 }; - } - icon.$set(icon_changes); - }, - i(local) { - if (current) - return; - transition_in(icon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(icon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(icon, detaching); - } - }; -} -function instance14($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - const iconNode = [ - [ - "rect", - { - "width": "18", - "height": "18", - "x": "3", - "y": "3", - "rx": "2", - "ry": "2" - } - ], - ["circle", { "cx": "9", "cy": "9", "r": "2" }], - [ - "path", - { - "d": "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" - } - ] - ]; - $$self.$$set = ($$new_props) => { - $$invalidate(1, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); - if ("$$scope" in $$new_props) - $$invalidate(3, $$scope = $$new_props.$$scope); - }; - $$props = exclude_internal_props($$props); - return [iconNode, $$props, slots, $$scope]; -} -var Image = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance14, create_fragment14, safe_not_equal, {}); - } -}; -var image_default = Image; - -// node_modules/lucide-svelte/dist/icons/merge.svelte -function create_default_slot14(ctx) { - let current; - const default_slot_template = ( - /*#slots*/ - ctx[2].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[3], - null - ); - return { - c() { - if (default_slot) - default_slot.c(); - }, - m(target, anchor) { - if (default_slot) { - default_slot.m(target, anchor); - } - current = true; - }, - p(ctx2, dirty) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 8)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[3], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[3] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[3], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (default_slot) - default_slot.d(detaching); - } - }; -} -function create_fragment15(ctx) { - let icon; - let current; - const icon_spread_levels = [ - { name: "merge" }, - /*$$props*/ - ctx[1], - { iconNode: ( - /*iconNode*/ - ctx[0] - ) } - ]; - let icon_props = { - $$slots: { default: [create_default_slot14] }, - $$scope: { ctx } - }; - for (let i = 0; i < icon_spread_levels.length; i += 1) { - icon_props = assign(icon_props, icon_spread_levels[i]); - } - icon = new Icon_default({ props: icon_props }); - return { - c() { - create_component(icon.$$.fragment); - }, - m(target, anchor) { - mount_component(icon, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const icon_changes = dirty & /*$$props, iconNode*/ - 3 ? get_spread_update(icon_spread_levels, [ - icon_spread_levels[0], - dirty & /*$$props*/ - 2 && get_spread_object( - /*$$props*/ - ctx2[1] - ), - dirty & /*iconNode*/ - 1 && { iconNode: ( - /*iconNode*/ - ctx2[0] - ) } - ]) : {}; - if (dirty & /*$$scope*/ - 8) { - icon_changes.$$scope = { dirty, ctx: ctx2 }; - } - icon.$set(icon_changes); - }, - i(local) { - if (current) - return; - transition_in(icon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(icon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(icon, detaching); - } - }; -} -function instance15($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - const iconNode = [ - ["path", { "d": "m8 6 4-4 4 4" }], - [ - "path", - { - "d": "M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22" - } - ], - ["path", { "d": "m20 22-5-5" }] - ]; - $$self.$$set = ($$new_props) => { - $$invalidate(1, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); - if ("$$scope" in $$new_props) - $$invalidate(3, $$scope = $$new_props.$$scope); - }; - $$props = exclude_internal_props($$props); - return [iconNode, $$props, slots, $$scope]; -} -var Merge = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance15, create_fragment15, safe_not_equal, {}); - } -}; -var merge_default = Merge; - -// node_modules/lucide-svelte/dist/icons/pencil.svelte -function create_default_slot15(ctx) { - let current; - const default_slot_template = ( - /*#slots*/ - ctx[2].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[3], - null - ); - return { - c() { - if (default_slot) - default_slot.c(); - }, - m(target, anchor) { - if (default_slot) { - default_slot.m(target, anchor); - } - current = true; - }, - p(ctx2, dirty) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 8)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[3], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[3] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[3], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (default_slot) - default_slot.d(detaching); - } - }; -} -function create_fragment16(ctx) { - let icon; - let current; - const icon_spread_levels = [ - { name: "pencil" }, - /*$$props*/ - ctx[1], - { iconNode: ( - /*iconNode*/ - ctx[0] - ) } - ]; - let icon_props = { - $$slots: { default: [create_default_slot15] }, - $$scope: { ctx } - }; - for (let i = 0; i < icon_spread_levels.length; i += 1) { - icon_props = assign(icon_props, icon_spread_levels[i]); - } - icon = new Icon_default({ props: icon_props }); - return { - c() { - create_component(icon.$$.fragment); - }, - m(target, anchor) { - mount_component(icon, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const icon_changes = dirty & /*$$props, iconNode*/ - 3 ? get_spread_update(icon_spread_levels, [ - icon_spread_levels[0], - dirty & /*$$props*/ - 2 && get_spread_object( - /*$$props*/ - ctx2[1] - ), - dirty & /*iconNode*/ - 1 && { iconNode: ( - /*iconNode*/ - ctx2[0] - ) } - ]) : {}; - if (dirty & /*$$scope*/ - 8) { - icon_changes.$$scope = { dirty, ctx: ctx2 }; - } - icon.$set(icon_changes); - }, - i(local) { - if (current) - return; - transition_in(icon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(icon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(icon, detaching); - } - }; -} -function instance16($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - const iconNode = [ - [ - "path", - { - "d": "M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z" - } - ], - ["path", { "d": "m15 5 4 4" }] - ]; - $$self.$$set = ($$new_props) => { - $$invalidate(1, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); - if ("$$scope" in $$new_props) - $$invalidate(3, $$scope = $$new_props.$$scope); - }; - $$props = exclude_internal_props($$props); - return [iconNode, $$props, slots, $$scope]; -} -var Pencil = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance16, create_fragment16, safe_not_equal, {}); - } -}; -var pencil_default = Pencil; - -// node_modules/lucide-svelte/dist/icons/plus.svelte -function create_default_slot16(ctx) { - let current; - const default_slot_template = ( - /*#slots*/ - ctx[2].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[3], - null - ); - return { - c() { - if (default_slot) - default_slot.c(); - }, - m(target, anchor) { - if (default_slot) { - default_slot.m(target, anchor); - } - current = true; - }, - p(ctx2, dirty) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 8)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[3], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[3] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[3], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (default_slot) - default_slot.d(detaching); - } - }; -} -function create_fragment17(ctx) { - let icon; - let current; - const icon_spread_levels = [ - { name: "plus" }, - /*$$props*/ - ctx[1], - { iconNode: ( - /*iconNode*/ - ctx[0] - ) } - ]; - let icon_props = { - $$slots: { default: [create_default_slot16] }, - $$scope: { ctx } - }; - for (let i = 0; i < icon_spread_levels.length; i += 1) { - icon_props = assign(icon_props, icon_spread_levels[i]); - } - icon = new Icon_default({ props: icon_props }); - return { - c() { - create_component(icon.$$.fragment); - }, - m(target, anchor) { - mount_component(icon, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const icon_changes = dirty & /*$$props, iconNode*/ - 3 ? get_spread_update(icon_spread_levels, [ - icon_spread_levels[0], - dirty & /*$$props*/ - 2 && get_spread_object( - /*$$props*/ - ctx2[1] - ), - dirty & /*iconNode*/ - 1 && { iconNode: ( - /*iconNode*/ - ctx2[0] - ) } - ]) : {}; - if (dirty & /*$$scope*/ - 8) { - icon_changes.$$scope = { dirty, ctx: ctx2 }; - } - icon.$set(icon_changes); - }, - i(local) { - if (current) - return; - transition_in(icon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(icon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(icon, detaching); - } - }; -} -function instance17($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - const iconNode = [["path", { "d": "M5 12h14" }], ["path", { "d": "M12 5v14" }]]; - $$self.$$set = ($$new_props) => { - $$invalidate(1, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); - if ("$$scope" in $$new_props) - $$invalidate(3, $$scope = $$new_props.$$scope); - }; - $$props = exclude_internal_props($$props); - return [iconNode, $$props, slots, $$scope]; -} -var Plus = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance17, create_fragment17, safe_not_equal, {}); - } -}; -var plus_default = Plus; - -// node_modules/lucide-svelte/dist/icons/rotate-ccw.svelte -function create_default_slot17(ctx) { - let current; - const default_slot_template = ( - /*#slots*/ - ctx[2].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[3], - null - ); - return { - c() { - if (default_slot) - default_slot.c(); - }, - m(target, anchor) { - if (default_slot) { - default_slot.m(target, anchor); - } - current = true; - }, - p(ctx2, dirty) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 8)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[3], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[3] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[3], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (default_slot) - default_slot.d(detaching); - } - }; -} -function create_fragment18(ctx) { - let icon; - let current; - const icon_spread_levels = [ - { name: "rotate-ccw" }, - /*$$props*/ - ctx[1], - { iconNode: ( - /*iconNode*/ - ctx[0] - ) } - ]; - let icon_props = { - $$slots: { default: [create_default_slot17] }, - $$scope: { ctx } - }; - for (let i = 0; i < icon_spread_levels.length; i += 1) { - icon_props = assign(icon_props, icon_spread_levels[i]); - } - icon = new Icon_default({ props: icon_props }); - return { - c() { - create_component(icon.$$.fragment); - }, - m(target, anchor) { - mount_component(icon, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const icon_changes = dirty & /*$$props, iconNode*/ - 3 ? get_spread_update(icon_spread_levels, [ - icon_spread_levels[0], - dirty & /*$$props*/ - 2 && get_spread_object( - /*$$props*/ - ctx2[1] - ), - dirty & /*iconNode*/ - 1 && { iconNode: ( - /*iconNode*/ - ctx2[0] - ) } - ]) : {}; - if (dirty & /*$$scope*/ - 8) { - icon_changes.$$scope = { dirty, ctx: ctx2 }; - } - icon.$set(icon_changes); - }, - i(local) { - if (current) - return; - transition_in(icon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(icon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(icon, detaching); - } - }; -} -function instance18($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - const iconNode = [ - [ - "path", - { - "d": "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" - } - ], - ["path", { "d": "M3 3v5h5" }] - ]; - $$self.$$set = ($$new_props) => { - $$invalidate(1, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); - if ("$$scope" in $$new_props) - $$invalidate(3, $$scope = $$new_props.$$scope); - }; - $$props = exclude_internal_props($$props); - return [iconNode, $$props, slots, $$scope]; -} -var Rotate_ccw = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance18, create_fragment18, safe_not_equal, {}); - } -}; -var rotate_ccw_default = Rotate_ccw; - -// node_modules/lucide-svelte/dist/icons/save.svelte -function create_default_slot18(ctx) { - let current; - const default_slot_template = ( - /*#slots*/ - ctx[2].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[3], - null - ); - return { - c() { - if (default_slot) - default_slot.c(); - }, - m(target, anchor) { - if (default_slot) { - default_slot.m(target, anchor); - } - current = true; - }, - p(ctx2, dirty) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 8)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[3], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[3] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[3], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (default_slot) - default_slot.d(detaching); - } - }; -} -function create_fragment19(ctx) { - let icon; - let current; - const icon_spread_levels = [ - { name: "save" }, - /*$$props*/ - ctx[1], - { iconNode: ( - /*iconNode*/ - ctx[0] - ) } - ]; - let icon_props = { - $$slots: { default: [create_default_slot18] }, - $$scope: { ctx } - }; - for (let i = 0; i < icon_spread_levels.length; i += 1) { - icon_props = assign(icon_props, icon_spread_levels[i]); - } - icon = new Icon_default({ props: icon_props }); - return { - c() { - create_component(icon.$$.fragment); - }, - m(target, anchor) { - mount_component(icon, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const icon_changes = dirty & /*$$props, iconNode*/ - 3 ? get_spread_update(icon_spread_levels, [ - icon_spread_levels[0], - dirty & /*$$props*/ - 2 && get_spread_object( - /*$$props*/ - ctx2[1] - ), - dirty & /*iconNode*/ - 1 && { iconNode: ( - /*iconNode*/ - ctx2[0] - ) } - ]) : {}; - if (dirty & /*$$scope*/ - 8) { - icon_changes.$$scope = { dirty, ctx: ctx2 }; - } - icon.$set(icon_changes); - }, - i(local) { - if (current) - return; - transition_in(icon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(icon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(icon, detaching); - } - }; -} -function instance19($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - const iconNode = [ - [ - "path", - { - "d": "M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z" - } - ], - ["polyline", { "points": "17 21 17 13 7 13 7 21" }], - ["polyline", { "points": "7 3 7 8 15 8" }] - ]; - $$self.$$set = ($$new_props) => { - $$invalidate(1, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); - if ("$$scope" in $$new_props) - $$invalidate(3, $$scope = $$new_props.$$scope); - }; - $$props = exclude_internal_props($$props); - return [iconNode, $$props, slots, $$scope]; -} -var Save = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance19, create_fragment19, safe_not_equal, {}); - } -}; -var save_default = Save; - -// node_modules/lucide-svelte/dist/icons/split.svelte -function create_default_slot19(ctx) { - let current; - const default_slot_template = ( - /*#slots*/ - ctx[2].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[3], - null - ); - return { - c() { - if (default_slot) - default_slot.c(); - }, - m(target, anchor) { - if (default_slot) { - default_slot.m(target, anchor); - } - current = true; - }, - p(ctx2, dirty) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 8)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[3], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[3] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[3], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (default_slot) - default_slot.d(detaching); - } - }; -} -function create_fragment20(ctx) { - let icon; - let current; - const icon_spread_levels = [ - { name: "split" }, - /*$$props*/ - ctx[1], - { iconNode: ( - /*iconNode*/ - ctx[0] - ) } - ]; - let icon_props = { - $$slots: { default: [create_default_slot19] }, - $$scope: { ctx } - }; - for (let i = 0; i < icon_spread_levels.length; i += 1) { - icon_props = assign(icon_props, icon_spread_levels[i]); - } - icon = new Icon_default({ props: icon_props }); - return { - c() { - create_component(icon.$$.fragment); - }, - m(target, anchor) { - mount_component(icon, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const icon_changes = dirty & /*$$props, iconNode*/ - 3 ? get_spread_update(icon_spread_levels, [ - icon_spread_levels[0], - dirty & /*$$props*/ - 2 && get_spread_object( - /*$$props*/ - ctx2[1] - ), - dirty & /*iconNode*/ - 1 && { iconNode: ( - /*iconNode*/ - ctx2[0] - ) } - ]) : {}; - if (dirty & /*$$scope*/ - 8) { - icon_changes.$$scope = { dirty, ctx: ctx2 }; - } - icon.$set(icon_changes); - }, - i(local) { - if (current) - return; - transition_in(icon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(icon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(icon, detaching); - } - }; -} -function instance20($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - const iconNode = [ - ["path", { "d": "M16 3h5v5" }], - ["path", { "d": "M8 3H3v5" }], - [ - "path", - { - "d": "M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3" - } - ], - ["path", { "d": "m15 9 6-6" }] - ]; - $$self.$$set = ($$new_props) => { - $$invalidate(1, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); - if ("$$scope" in $$new_props) - $$invalidate(3, $$scope = $$new_props.$$scope); - }; - $$props = exclude_internal_props($$props); - return [iconNode, $$props, slots, $$scope]; -} -var Split = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance20, create_fragment20, safe_not_equal, {}); - } -}; -var split_default = Split; - -// src/components/settings/EdgeFieldSettings.svelte -var import_obsidian7 = require("obsidian"); - -// src/const/index.ts -var ICON_SIZE = 20; - -// src/components/obsidian/tag.svelte -function create_else_block(ctx) { - let a; - let t; - let mounted; - let dispose; - return { - c() { - a = element("a"); - t = text( - /*tag*/ - ctx[0] - ); - attr( - a, - "title", - /*title*/ - ctx[2] - ); - attr(a, "class", "tag"); - attr(a, "tabindex", "0"); - attr(a, "role", "button"); - }, - m(target, anchor) { - insert(target, a, anchor); - append(a, t); - if (!mounted) { - dispose = [ - listen( - a, - "click", - /*click_handler_1*/ - ctx[5] - ), - listen( - a, - "keydown", - /*keydown_handler*/ - ctx[6] - ), - listen( - a, - "contextmenu", - /*contextmenu_handler_1*/ - ctx[7] - ) - ]; - mounted = true; - } - }, - p(ctx2, dirty) { - if (dirty & /*tag*/ - 1) - set_data( - t, - /*tag*/ - ctx2[0] - ); - if (dirty & /*title*/ - 4) { - attr( - a, - "title", - /*title*/ - ctx2[2] - ); - } - }, - d(detaching) { - if (detaching) { - detach(a); - } - mounted = false; - run_all(dispose); - } - }; -} -function create_if_block(ctx) { - let a; - let t; - let mounted; - let dispose; - return { - c() { - a = element("a"); - t = text( - /*tag*/ - ctx[0] - ); - attr( - a, - "href", - /*href*/ - ctx[1] - ); - attr( - a, - "title", - /*title*/ - ctx[2] - ); - attr(a, "class", "tag"); - }, - m(target, anchor) { - insert(target, a, anchor); - append(a, t); - if (!mounted) { - dispose = [ - listen( - a, - "click", - /*click_handler*/ - ctx[3] - ), - listen( - a, - "contextmenu", - /*contextmenu_handler*/ - ctx[4] - ) - ]; - mounted = true; - } - }, - p(ctx2, dirty) { - if (dirty & /*tag*/ - 1) - set_data( - t, - /*tag*/ - ctx2[0] - ); - if (dirty & /*href*/ - 2) { - attr( - a, - "href", - /*href*/ - ctx2[1] - ); - } - if (dirty & /*title*/ - 4) { - attr( - a, - "title", - /*title*/ - ctx2[2] - ); - } - }, - d(detaching) { - if (detaching) { - detach(a); - } - mounted = false; - run_all(dispose); - } - }; -} -function create_fragment21(ctx) { - let if_block_anchor; - function select_block_type(ctx2, dirty) { - if ( - /*href*/ - ctx2[1] !== void 0 - ) - return create_if_block; - return create_else_block; - } - let current_block_type = select_block_type(ctx, -1); - let if_block = current_block_type(ctx); - return { - c() { - if_block.c(); - if_block_anchor = empty(); - }, - m(target, anchor) { - if_block.m(target, anchor); - insert(target, if_block_anchor, anchor); - }, - p(ctx2, [dirty]) { - if (current_block_type === (current_block_type = select_block_type(ctx2, dirty)) && if_block) { - if_block.p(ctx2, dirty); - } else { - if_block.d(1); - if_block = current_block_type(ctx2); - if (if_block) { - if_block.c(); - if_block.m(if_block_anchor.parentNode, if_block_anchor); - } - } - }, - i: noop, - o: noop, - d(detaching) { - if (detaching) { - detach(if_block_anchor); - } - if_block.d(detaching); - } - }; -} -function instance21($$self, $$props, $$invalidate) { - let { tag } = $$props; - let { href = void 0 } = $$props; - let { title = void 0 } = $$props; - function click_handler(event) { - bubble.call(this, $$self, event); - } - function contextmenu_handler(event) { - bubble.call(this, $$self, event); - } - function click_handler_1(event) { - bubble.call(this, $$self, event); - } - function keydown_handler(event) { - bubble.call(this, $$self, event); - } - function contextmenu_handler_1(event) { - bubble.call(this, $$self, event); - } - $$self.$$set = ($$props2) => { - if ("tag" in $$props2) - $$invalidate(0, tag = $$props2.tag); - if ("href" in $$props2) - $$invalidate(1, href = $$props2.href); - if ("title" in $$props2) - $$invalidate(2, title = $$props2.title); - }; - return [ - tag, - href, - title, - click_handler, - contextmenu_handler, - click_handler_1, - keydown_handler, - contextmenu_handler_1 - ]; -} -var Tag = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance21, create_fragment21, safe_not_equal, { tag: 0, href: 1, title: 2 }); - } -}; -var tag_default = Tag; - -// src/components/settings/EdgeFieldSettings.svelte -function get_each_context2(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[22] = list[i]; - return child_ctx; -} -function get_each_context_1(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[25] = list[i]; - return child_ctx; -} -function get_each_context_2(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[28] = list[i]; - return child_ctx; -} -function get_each_context_3(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[31] = list[i]; - const constants_0 = ( - /*settings*/ - child_ctx[0].edge_field_groups.filter(function func_1(...args) { - return ( - /*func_1*/ - ctx[13]( - /*field*/ - child_ctx[31], - ...args - ) - ); - }).map((g) => g.label) - ); - child_ctx[32] = constants_0; - return child_ctx; -} -function get_each_context_4(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[22] = list[i]; - return child_ctx; -} -function get_each_context_5(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[37] = list[i]; - return child_ctx; -} -function create_if_block_6(ctx) { - let span; - return { - c() { - span = element("span"); - span.textContent = "Unsaved changes"; - attr(span, "class", "text-warning"); - }, - m(target, anchor) { - insert(target, span, anchor); - }, - d(detaching) { - if (detaching) { - detach(span); - } - } - }; -} -function create_if_block_5(ctx) { - let button; - let arrowdown; - let current; - let mounted; - let dispose; - arrowdown = new arrow_down_default({ props: { size: ICON_SIZE } }); - return { - c() { - button = element("button"); - create_component(arrowdown.$$.fragment); - attr(button, "class", "w-10"); - attr(button, "aria-label", "Jump to bottom"); - }, - m(target, anchor) { - insert(target, button, anchor); - mount_component(arrowdown, button, null); - current = true; - if (!mounted) { - dispose = listen( - button, - "click", - /*click_handler_1*/ - ctx[7] - ); - mounted = true; - } - }, - p: noop, - i(local) { - if (current) - return; - transition_in(arrowdown.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(arrowdown.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(button); - } - destroy_component(arrowdown); - mounted = false; - dispose(); - } - }; -} -function create_each_block_5(ctx) { - let div; - let tag; - let current; - function click_handler_3() { - return ( - /*click_handler_3*/ - ctx[11]( - /*group_label*/ - ctx[37] - ) - ); - } - tag = new tag_default({ - props: { - tag: ( - /*group_label*/ - ctx[37] - ), - title: "Jump to group. Right click for more actions." - } - }); - tag.$on("click", click_handler_3); - tag.$on("contextmenu", function() { - if (is_function( - /*context_menus*/ - ctx[3].field_group( - /*field*/ - ctx[31], - /*group_label*/ - ctx[37] - ) - )) - ctx[3].field_group( - /*field*/ - ctx[31], - /*group_label*/ - ctx[37] - ).apply(this, arguments); - }); - return { - c() { - div = element("div"); - create_component(tag.$$.fragment); - attr(div, "class", "flex items-center gap-0.5"); - }, - m(target, anchor) { - insert(target, div, anchor); - mount_component(tag, div, null); - current = true; - }, - p(new_ctx, dirty) { - ctx = new_ctx; - const tag_changes = {}; - if (dirty[0] & /*settings, filters*/ - 3) - tag_changes.tag = /*group_label*/ - ctx[37]; - tag.$set(tag_changes); - }, - i(local) { - if (current) - return; - transition_in(tag.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(tag.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div); - } - destroy_component(tag); - } - }; -} -function create_if_block_4(ctx) { - let span; - return { - c() { - span = element("span"); - span.textContent = `${""}`; - attr(span, "class", "search-empty-state my-0"); - }, - m(target, anchor) { - insert(target, span, anchor); - }, - d(detaching) { - if (detaching) { - detach(span); - } - } - }; -} -function create_if_block_3(ctx) { - let option; - let t_value = ( - /*group*/ - ctx[22].label + "" - ); - let t; - let option_value_value; - return { - c() { - option = element("option"); - t = text(t_value); - option.__value = option_value_value = /*group*/ - ctx[22].label; - set_input_value(option, option.__value); - }, - m(target, anchor) { - insert(target, option, anchor); - append(option, t); - }, - p(ctx2, dirty) { - if (dirty[0] & /*settings*/ - 1 && t_value !== (t_value = /*group*/ - ctx2[22].label + "")) - set_data(t, t_value); - if (dirty[0] & /*settings*/ - 1 && option_value_value !== (option_value_value = /*group*/ - ctx2[22].label)) { - option.__value = option_value_value; - set_input_value(option, option.__value); - } - }, - d(detaching) { - if (detaching) { - detach(option); - } - } - }; -} -function create_each_block_4(ctx) { - let show_if = !/*group*/ - ctx[22].fields.includes( - /*field*/ - ctx[31].label - ); - let if_block_anchor; - let if_block = show_if && create_if_block_3(ctx); - return { - c() { - if (if_block) - if_block.c(); - if_block_anchor = empty(); - }, - m(target, anchor) { - if (if_block) - if_block.m(target, anchor); - insert(target, if_block_anchor, anchor); - }, - p(ctx2, dirty) { - if (dirty[0] & /*settings, filters*/ - 3) - show_if = !/*group*/ - ctx2[22].fields.includes( - /*field*/ - ctx2[31].label - ); - if (show_if) { - if (if_block) { - if_block.p(ctx2, dirty); - } else { - if_block = create_if_block_3(ctx2); - if_block.c(); - if_block.m(if_block_anchor.parentNode, if_block_anchor); - } - } else if (if_block) { - if_block.d(1); - if_block = null; - } - }, - d(detaching) { - if (detaching) { - detach(if_block_anchor); - } - if (if_block) - if_block.d(detaching); - } - }; -} -function create_key_block(ctx) { - let div; - let span; - let t1; - let t2; - let t3; - let select; - let option; - let current; - let mounted; - let dispose; - let each_value_5 = ensure_array_like( - /*group_labels*/ - ctx[32] - ); - let each_blocks_1 = []; - for (let i = 0; i < each_value_5.length; i += 1) { - each_blocks_1[i] = create_each_block_5(get_each_context_5(ctx, each_value_5, i)); - } - const out = (i) => transition_out(each_blocks_1[i], 1, 1, () => { - each_blocks_1[i] = null; - }); - let if_block = !/*group_labels*/ - ctx[32].length && create_if_block_4(ctx); - let each_value_4 = ensure_array_like( - /*settings*/ - ctx[0].edge_field_groups - ); - let each_blocks = []; - for (let i = 0; i < each_value_4.length; i += 1) { - each_blocks[i] = create_each_block_4(get_each_context_4(ctx, each_value_4, i)); - } - function change_handler(...args) { - return ( - /*change_handler*/ - ctx[12]( - /*field*/ - ctx[31], - ...args - ) - ); - } - return { - c() { - div = element("div"); - span = element("span"); - span.textContent = "Groups"; - t1 = space(); - for (let i = 0; i < each_blocks_1.length; i += 1) { - each_blocks_1[i].c(); - } - t2 = space(); - if (if_block) - if_block.c(); - t3 = space(); - select = element("select"); - option = element("option"); - option.textContent = "Add to Group"; - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].c(); - } - option.__value = ""; - set_input_value(option, option.__value); - option.disabled = true; - attr(select, "class", "dropdown"); - attr(div, "class", "flex flex-wrap items-center gap-1.5"); - }, - m(target, anchor) { - insert(target, div, anchor); - append(div, span); - append(div, t1); - for (let i = 0; i < each_blocks_1.length; i += 1) { - if (each_blocks_1[i]) { - each_blocks_1[i].m(div, null); - } - } - append(div, t2); - if (if_block) - if_block.m(div, null); - append(div, t3); - append(div, select); - append(select, option); - for (let i = 0; i < each_blocks.length; i += 1) { - if (each_blocks[i]) { - each_blocks[i].m(select, null); - } - } - select_option(select, ""); - current = true; - if (!mounted) { - dispose = listen(select, "change", change_handler); - mounted = true; - } - }, - p(new_ctx, dirty) { - ctx = new_ctx; - if (dirty[0] & /*settings, filters, actions, context_menus*/ - 15) { - each_value_5 = ensure_array_like( - /*group_labels*/ - ctx[32] - ); - let i; - for (i = 0; i < each_value_5.length; i += 1) { - const child_ctx = get_each_context_5(ctx, each_value_5, i); - if (each_blocks_1[i]) { - each_blocks_1[i].p(child_ctx, dirty); - transition_in(each_blocks_1[i], 1); - } else { - each_blocks_1[i] = create_each_block_5(child_ctx); - each_blocks_1[i].c(); - transition_in(each_blocks_1[i], 1); - each_blocks_1[i].m(div, t2); - } - } - group_outros(); - for (i = each_value_5.length; i < each_blocks_1.length; i += 1) { - out(i); - } - check_outros(); - } - if (!/*group_labels*/ - ctx[32].length) { - if (if_block) { - } else { - if_block = create_if_block_4(ctx); - if_block.c(); - if_block.m(div, t3); - } - } else if (if_block) { - if_block.d(1); - if_block = null; - } - if (dirty[0] & /*settings, filters*/ - 3) { - each_value_4 = ensure_array_like( - /*settings*/ - ctx[0].edge_field_groups - ); - let i; - for (i = 0; i < each_value_4.length; i += 1) { - const child_ctx = get_each_context_4(ctx, each_value_4, i); - if (each_blocks[i]) { - each_blocks[i].p(child_ctx, dirty); - } else { - each_blocks[i] = create_each_block_4(child_ctx); - each_blocks[i].c(); - each_blocks[i].m(select, null); - } - } - for (; i < each_blocks.length; i += 1) { - each_blocks[i].d(1); - } - each_blocks.length = each_value_4.length; - } - }, - i(local) { - if (current) - return; - for (let i = 0; i < each_value_5.length; i += 1) { - transition_in(each_blocks_1[i]); - } - current = true; - }, - o(local) { - each_blocks_1 = each_blocks_1.filter(Boolean); - for (let i = 0; i < each_blocks_1.length; i += 1) { - transition_out(each_blocks_1[i]); - } - current = false; - }, - d(detaching) { - if (detaching) { - detach(div); - } - destroy_each(each_blocks_1, detaching); - if (if_block) - if_block.d(); - destroy_each(each_blocks, detaching); - mounted = false; - dispose(); - } - }; -} -function create_each_block_3(ctx) { - let div1; - let div0; - let input; - let input_id_value; - let input_value_value; - let t0; - let button; - let t2; - let previous_key = ( - /*settings*/ - ctx[0].edge_field_groups - ); - let current; - let mounted; - let dispose; - function blur_handler(...args) { - return ( - /*blur_handler*/ - ctx[9]( - /*field*/ - ctx[31], - ...args - ) - ); - } - function click_handler_2() { - return ( - /*click_handler_2*/ - ctx[10]( - /*field*/ - ctx[31] - ) - ); - } - let key_block = create_key_block(ctx); - return { - c() { - div1 = element("div"); - div0 = element("div"); - input = element("input"); - t0 = space(); - button = element("button"); - button.textContent = "X"; - t2 = space(); - key_block.c(); - attr(input, "id", input_id_value = /*actions*/ - ctx[2].fields.make_id( - /*field*/ - ctx[31].label - )); - attr(input, "type", "text"); - attr(input, "class", "w-48 scroll-mt-40"); - attr(input, "placeholder", "Field Label"); - input.value = input_value_value = /*field*/ - ctx[31].label; - attr(button, "class", "w-8"); - attr(button, "title", "Remove Field"); - attr(div0, "class", "flex flex-wrap items-center gap-1"); - attr(div1, "class", "flex flex-col gap-2"); - }, - m(target, anchor) { - insert(target, div1, anchor); - append(div1, div0); - append(div0, input); - append(div0, t0); - append(div0, button); - append(div1, t2); - key_block.m(div1, null); - current = true; - if (!mounted) { - dispose = [ - listen(input, "blur", blur_handler), - listen(button, "click", click_handler_2) - ]; - mounted = true; - } - }, - p(new_ctx, dirty) { - ctx = new_ctx; - if (!current || dirty[0] & /*settings, filters*/ - 3 && input_id_value !== (input_id_value = /*actions*/ - ctx[2].fields.make_id( - /*field*/ - ctx[31].label - ))) { - attr(input, "id", input_id_value); - } - if (!current || dirty[0] & /*settings, filters*/ - 3 && input_value_value !== (input_value_value = /*field*/ - ctx[31].label) && input.value !== input_value_value) { - input.value = input_value_value; - } - if (dirty[0] & /*settings*/ - 1 && safe_not_equal(previous_key, previous_key = /*settings*/ - ctx[0].edge_field_groups)) { - group_outros(); - transition_out(key_block, 1, 1, noop); - check_outros(); - key_block = create_key_block(ctx); - key_block.c(); - transition_in(key_block, 1); - key_block.m(div1, null); - } else { - key_block.p(ctx, dirty); - } - }, - i(local) { - if (current) - return; - transition_in(key_block); - current = true; - }, - o(local) { - transition_out(key_block); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div1); - } - key_block.d(detaching); - mounted = false; - run_all(dispose); - } - }; -} -function create_if_block_2(ctx) { - let button; - let arrowdown; - let current; - let mounted; - let dispose; - arrowdown = new arrow_down_default({ props: { size: ICON_SIZE } }); - return { - c() { - button = element("button"); - create_component(arrowdown.$$.fragment); - attr(button, "class", "w-10"); - attr(button, "aria-label", "Jump to bottom"); - }, - m(target, anchor) { - insert(target, button, anchor); - mount_component(arrowdown, button, null); - current = true; - if (!mounted) { - dispose = listen( - button, - "click", - /*click_handler_5*/ - ctx[16] - ); - mounted = true; - } - }, - p: noop, - i(local) { - if (current) - return; - transition_in(arrowdown.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(arrowdown.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(button); - } - destroy_component(arrowdown); - mounted = false; - dispose(); - } - }; -} -function create_each_block_2(ctx) { - let div; - let tag; - let current; - function click_handler_7() { - return ( - /*click_handler_7*/ - ctx[20]( - /*field_label*/ - ctx[28] - ) - ); - } - tag = new tag_default({ - props: { - tag: ( - /*field_label*/ - ctx[28] - ), - title: "Jump to field. Right click for more actions." - } - }); - tag.$on("click", click_handler_7); - tag.$on("contextmenu", function() { - if (is_function( - /*context_menus*/ - ctx[3].group_field( - /*group*/ - ctx[22], - /*field_label*/ - ctx[28] - ) - )) - ctx[3].group_field( - /*group*/ - ctx[22], - /*field_label*/ - ctx[28] - ).apply(this, arguments); - }); - return { - c() { - div = element("div"); - create_component(tag.$$.fragment); - attr(div, "class", "flex items-center gap-0.5"); - }, - m(target, anchor) { - insert(target, div, anchor); - mount_component(tag, div, null); - current = true; - }, - p(new_ctx, dirty) { - ctx = new_ctx; - const tag_changes = {}; - if (dirty[0] & /*settings, filters*/ - 3) - tag_changes.tag = /*field_label*/ - ctx[28]; - tag.$set(tag_changes); - }, - i(local) { - if (current) - return; - transition_in(tag.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(tag.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div); - } - destroy_component(tag); - } - }; -} -function create_if_block_1(ctx) { - let span; - return { - c() { - span = element("span"); - span.textContent = `${""}`; - attr(span, "class", "search-empty-state my-0"); - }, - m(target, anchor) { - insert(target, span, anchor); - }, - d(detaching) { - if (detaching) { - detach(span); - } - } - }; -} -function create_if_block2(ctx) { - let option; - let t_value = ( - /*edge_field*/ - ctx[25].label + "" - ); - let t; - let option_value_value; - return { - c() { - option = element("option"); - t = text(t_value); - option.__value = option_value_value = /*edge_field*/ - ctx[25].label; - set_input_value(option, option.__value); - }, - m(target, anchor) { - insert(target, option, anchor); - append(option, t); - }, - p(ctx2, dirty) { - if (dirty[0] & /*settings*/ - 1 && t_value !== (t_value = /*edge_field*/ - ctx2[25].label + "")) - set_data(t, t_value); - if (dirty[0] & /*settings*/ - 1 && option_value_value !== (option_value_value = /*edge_field*/ - ctx2[25].label)) { - option.__value = option_value_value; - set_input_value(option, option.__value); - } - }, - d(detaching) { - if (detaching) { - detach(option); - } - } - }; -} -function create_each_block_1(ctx) { - let show_if = !/*group*/ - ctx[22].fields.includes( - /*edge_field*/ - ctx[25].label - ); - let if_block_anchor; - let if_block = show_if && create_if_block2(ctx); - return { - c() { - if (if_block) - if_block.c(); - if_block_anchor = empty(); - }, - m(target, anchor) { - if (if_block) - if_block.m(target, anchor); - insert(target, if_block_anchor, anchor); - }, - p(ctx2, dirty) { - if (dirty[0] & /*settings, filters*/ - 3) - show_if = !/*group*/ - ctx2[22].fields.includes( - /*edge_field*/ - ctx2[25].label - ); - if (show_if) { - if (if_block) { - if_block.p(ctx2, dirty); - } else { - if_block = create_if_block2(ctx2); - if_block.c(); - if_block.m(if_block_anchor.parentNode, if_block_anchor); - } - } else if (if_block) { - if_block.d(1); - if_block = null; - } - }, - d(detaching) { - if (detaching) { - detach(if_block_anchor); - } - if (if_block) - if_block.d(detaching); - } - }; -} -function create_each_block2(ctx) { - let div2; - let div0; - let input; - let input_id_value; - let input_value_value; - let t0; - let button; - let t2; - let div1; - let span; - let t4; - let t5; - let t6; - let select; - let option; - let current; - let mounted; - let dispose; - function blur_handler_1(...args) { - return ( - /*blur_handler_1*/ - ctx[18]( - /*group*/ - ctx[22], - ...args - ) - ); - } - function click_handler_6() { - return ( - /*click_handler_6*/ - ctx[19]( - /*group*/ - ctx[22] - ) - ); - } - let each_value_2 = ensure_array_like( - /*group*/ - ctx[22].fields - ); - let each_blocks_1 = []; - for (let i = 0; i < each_value_2.length; i += 1) { - each_blocks_1[i] = create_each_block_2(get_each_context_2(ctx, each_value_2, i)); - } - const out = (i) => transition_out(each_blocks_1[i], 1, 1, () => { - each_blocks_1[i] = null; - }); - let if_block = !/*group*/ - ctx[22].fields.length && create_if_block_1(ctx); - let each_value_1 = ensure_array_like( - /*settings*/ - ctx[0].edge_fields - ); - let each_blocks = []; - for (let i = 0; i < each_value_1.length; i += 1) { - each_blocks[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i)); - } - function change_handler_1(...args) { - return ( - /*change_handler_1*/ - ctx[21]( - /*group*/ - ctx[22], - ...args - ) - ); - } - return { - c() { - div2 = element("div"); - div0 = element("div"); - input = element("input"); - t0 = space(); - button = element("button"); - button.textContent = "X"; - t2 = space(); - div1 = element("div"); - span = element("span"); - span.textContent = "Fields"; - t4 = space(); - for (let i = 0; i < each_blocks_1.length; i += 1) { - each_blocks_1[i].c(); - } - t5 = space(); - if (if_block) - if_block.c(); - t6 = space(); - select = element("select"); - option = element("option"); - option.textContent = "Add Field"; - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].c(); - } - attr(input, "id", input_id_value = /*actions*/ - ctx[2].groups.make_id( - /*group*/ - ctx[22].label - )); - attr(input, "type", "text"); - attr(input, "class", "w-48 scroll-mt-40"); - attr(input, "placeholder", "Group Label"); - input.value = input_value_value = /*group*/ - ctx[22].label; - attr(button, "class", "w-8"); - attr(button, "title", "Remove Group"); - attr(div0, "class", "flex flex-wrap items-center gap-1"); - option.__value = ""; - set_input_value(option, option.__value); - option.disabled = true; - attr(select, "class", "dropdown"); - attr(div1, "class", "flex flex-wrap items-center gap-1.5"); - attr(div2, "class", "flex flex-col gap-2"); - }, - m(target, anchor) { - insert(target, div2, anchor); - append(div2, div0); - append(div0, input); - append(div0, t0); - append(div0, button); - append(div2, t2); - append(div2, div1); - append(div1, span); - append(div1, t4); - for (let i = 0; i < each_blocks_1.length; i += 1) { - if (each_blocks_1[i]) { - each_blocks_1[i].m(div1, null); - } - } - append(div1, t5); - if (if_block) - if_block.m(div1, null); - append(div1, t6); - append(div1, select); - append(select, option); - for (let i = 0; i < each_blocks.length; i += 1) { - if (each_blocks[i]) { - each_blocks[i].m(select, null); - } - } - select_option(select, ""); - current = true; - if (!mounted) { - dispose = [ - listen(input, "blur", blur_handler_1), - listen(button, "click", click_handler_6), - listen(select, "change", change_handler_1) - ]; - mounted = true; - } - }, - p(new_ctx, dirty) { - ctx = new_ctx; - if (!current || dirty[0] & /*settings, filters*/ - 3 && input_id_value !== (input_id_value = /*actions*/ - ctx[2].groups.make_id( - /*group*/ - ctx[22].label - ))) { - attr(input, "id", input_id_value); - } - if (!current || dirty[0] & /*settings, filters*/ - 3 && input_value_value !== (input_value_value = /*group*/ - ctx[22].label) && input.value !== input_value_value) { - input.value = input_value_value; - } - if (dirty[0] & /*settings, filters, actions, context_menus*/ - 15) { - each_value_2 = ensure_array_like( - /*group*/ - ctx[22].fields - ); - let i; - for (i = 0; i < each_value_2.length; i += 1) { - const child_ctx = get_each_context_2(ctx, each_value_2, i); - if (each_blocks_1[i]) { - each_blocks_1[i].p(child_ctx, dirty); - transition_in(each_blocks_1[i], 1); - } else { - each_blocks_1[i] = create_each_block_2(child_ctx); - each_blocks_1[i].c(); - transition_in(each_blocks_1[i], 1); - each_blocks_1[i].m(div1, t5); - } - } - group_outros(); - for (i = each_value_2.length; i < each_blocks_1.length; i += 1) { - out(i); - } - check_outros(); - } - if (!/*group*/ - ctx[22].fields.length) { - if (if_block) { - } else { - if_block = create_if_block_1(ctx); - if_block.c(); - if_block.m(div1, t6); - } - } else if (if_block) { - if_block.d(1); - if_block = null; - } - if (dirty[0] & /*settings, filters*/ - 3) { - each_value_1 = ensure_array_like( - /*settings*/ - ctx[0].edge_fields - ); - let i; - for (i = 0; i < each_value_1.length; i += 1) { - const child_ctx = get_each_context_1(ctx, each_value_1, i); - if (each_blocks[i]) { - each_blocks[i].p(child_ctx, dirty); - } else { - each_blocks[i] = create_each_block_1(child_ctx); - each_blocks[i].c(); - each_blocks[i].m(select, null); - } - } - for (; i < each_blocks.length; i += 1) { - each_blocks[i].d(1); - } - each_blocks.length = each_value_1.length; - } - }, - i(local) { - if (current) - return; - for (let i = 0; i < each_value_2.length; i += 1) { - transition_in(each_blocks_1[i]); - } - current = true; - }, - o(local) { - each_blocks_1 = each_blocks_1.filter(Boolean); - for (let i = 0; i < each_blocks_1.length; i += 1) { - transition_out(each_blocks_1[i]); - } - current = false; - }, - d(detaching) { - if (detaching) { - detach(div2); - } - destroy_each(each_blocks_1, detaching); - if (if_block) - if_block.d(); - destroy_each(each_blocks, detaching); - mounted = false; - run_all(dispose); - } - }; -} -function create_fragment22(ctx) { - let div7; - let div0; - let button0; - let saveicon; - let t0; - let t1; - let t2; - let div2; - let h40; - let t4; - let div1; - let input0; - let t5; - let button1; - let t6; - let button1_disabled_value; - let t7; - let t8; - let div3; - let t9; - let button2; - let plusicon0; - let t10; - let t11; - let hr; - let t12; - let div5; - let h41; - let t14; - let div4; - let input1; - let t15; - let button3; - let t16; - let button3_disabled_value; - let t17; - let t18; - let div6; - let t19; - let button4; - let plusicon1; - let t20; - let current; - let mounted; - let dispose; - saveicon = new save_default({ props: { size: ICON_SIZE } }); - let if_block0 = ( - /*settings*/ - ctx[0].is_dirty && create_if_block_6(ctx) - ); - let if_block1 = ( - /*settings*/ - ctx[0].edge_fields.length > 3 && create_if_block_5(ctx) - ); - let each_value_3 = ensure_array_like( - /*settings*/ - ctx[0].edge_fields.filter( - /*func*/ - ctx[8] - ) - ); - let each_blocks_1 = []; - for (let i = 0; i < each_value_3.length; i += 1) { - each_blocks_1[i] = create_each_block_3(get_each_context_3(ctx, each_value_3, i)); - } - const out = (i) => transition_out(each_blocks_1[i], 1, 1, () => { - each_blocks_1[i] = null; - }); - plusicon0 = new plus_default({ props: { size: ICON_SIZE } }); - let if_block2 = ( - /*settings*/ - ctx[0].edge_field_groups.length > 3 && create_if_block_2(ctx) - ); - let each_value = ensure_array_like( - /*settings*/ - ctx[0].edge_field_groups.filter( - /*func_3*/ - ctx[17] - ) - ); - let each_blocks = []; - for (let i = 0; i < each_value.length; i += 1) { - each_blocks[i] = create_each_block2(get_each_context2(ctx, each_value, i)); - } - const out_1 = (i) => transition_out(each_blocks[i], 1, 1, () => { - each_blocks[i] = null; - }); - plusicon1 = new plus_default({ props: { size: ICON_SIZE } }); - return { - c() { - div7 = element("div"); - div0 = element("div"); - button0 = element("button"); - create_component(saveicon.$$.fragment); - t0 = text("\n Save"); - t1 = space(); - if (if_block0) - if_block0.c(); - t2 = space(); - div2 = element("div"); - h40 = element("h4"); - h40.textContent = "Fields"; - t4 = space(); - div1 = element("div"); - input0 = element("input"); - t5 = space(); - button1 = element("button"); - t6 = text("X"); - t7 = space(); - if (if_block1) - if_block1.c(); - t8 = space(); - div3 = element("div"); - for (let i = 0; i < each_blocks_1.length; i += 1) { - each_blocks_1[i].c(); - } - t9 = space(); - button2 = element("button"); - create_component(plusicon0.$$.fragment); - t10 = text("\n New Edge Field"); - t11 = space(); - hr = element("hr"); - t12 = space(); - div5 = element("div"); - h41 = element("h4"); - h41.textContent = "Groups"; - t14 = space(); - div4 = element("div"); - input1 = element("input"); - t15 = space(); - button3 = element("button"); - t16 = text("X"); - t17 = space(); - if (if_block2) - if_block2.c(); - t18 = space(); - div6 = element("div"); - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].c(); - } - t19 = space(); - button4 = element("button"); - create_component(plusicon1.$$.fragment); - t20 = text("\n New Group"); - attr(button0, "class", "flex items-center gap-1"); - attr(div0, "class", "my-2 flex items-center gap-2"); - attr(input0, "type", "text"); - attr(input0, "placeholder", "Filter Fields by Name"); - attr(button1, "class", "w-8"); - attr(button1, "aria-label", "Clear Filter"); - button1.disabled = button1_disabled_value = /*filters*/ - ctx[1].fields === ""; - attr(div1, "class", "flex gap-1"); - attr(div2, "class", "flex items-center gap-4"); - attr(button2, "class", "flex items-center gap-1"); - attr(div3, "class", "flex flex-col gap-7"); - attr(input1, "type", "text"); - attr(input1, "placeholder", "Filter Groups by Name"); - attr(button3, "class", "w-8"); - attr(button3, "aria-label", "Clear Filter"); - button3.disabled = button3_disabled_value = /*filters*/ - ctx[1].groups === ""; - attr(div4, "class", "flex gap-1"); - attr(div5, "class", "flex items-center gap-4"); - attr(button4, "class", "flex items-center gap-1"); - attr(div6, "class", "flex flex-col gap-7"); - attr(div7, "class", "flex flex-col"); - }, - m(target, anchor) { - insert(target, div7, anchor); - append(div7, div0); - append(div0, button0); - mount_component(saveicon, button0, null); - append(button0, t0); - append(div0, t1); - if (if_block0) - if_block0.m(div0, null); - append(div7, t2); - append(div7, div2); - append(div2, h40); - append(div2, t4); - append(div2, div1); - append(div1, input0); - set_input_value( - input0, - /*filters*/ - ctx[1].fields - ); - append(div1, t5); - append(div1, button1); - append(button1, t6); - append(div2, t7); - if (if_block1) - if_block1.m(div2, null); - append(div7, t8); - append(div7, div3); - for (let i = 0; i < each_blocks_1.length; i += 1) { - if (each_blocks_1[i]) { - each_blocks_1[i].m(div3, null); - } - } - append(div3, t9); - append(div3, button2); - mount_component(plusicon0, button2, null); - append(button2, t10); - append(div7, t11); - append(div7, hr); - append(div7, t12); - append(div7, div5); - append(div5, h41); - append(div5, t14); - append(div5, div4); - append(div4, input1); - set_input_value( - input1, - /*filters*/ - ctx[1].groups - ); - append(div4, t15); - append(div4, button3); - append(button3, t16); - append(div5, t17); - if (if_block2) - if_block2.m(div5, null); - append(div7, t18); - append(div7, div6); - for (let i = 0; i < each_blocks.length; i += 1) { - if (each_blocks[i]) { - each_blocks[i].m(div6, null); - } - } - append(div6, t19); - append(div6, button4); - mount_component(plusicon1, button4, null); - append(button4, t20); - current = true; - if (!mounted) { - dispose = [ - listen( - button0, - "click", - /*actions*/ - ctx[2].save - ), - listen( - input0, - "input", - /*input0_input_handler*/ - ctx[5] - ), - listen( - button1, - "click", - /*click_handler*/ - ctx[6] - ), - listen( - button2, - "click", - /*actions*/ - ctx[2].fields.add - ), - listen( - input1, - "input", - /*input1_input_handler*/ - ctx[14] - ), - listen( - button3, - "click", - /*click_handler_4*/ - ctx[15] - ), - listen( - button4, - "click", - /*actions*/ - ctx[2].groups.add - ) - ]; - mounted = true; - } - }, - p(ctx2, dirty) { - if ( - /*settings*/ - ctx2[0].is_dirty - ) { - if (if_block0) { - } else { - if_block0 = create_if_block_6(ctx2); - if_block0.c(); - if_block0.m(div0, null); - } - } else if (if_block0) { - if_block0.d(1); - if_block0 = null; - } - if (dirty[0] & /*filters*/ - 2 && input0.value !== /*filters*/ - ctx2[1].fields) { - set_input_value( - input0, - /*filters*/ - ctx2[1].fields - ); - } - if (!current || dirty[0] & /*filters*/ - 2 && button1_disabled_value !== (button1_disabled_value = /*filters*/ - ctx2[1].fields === "")) { - button1.disabled = button1_disabled_value; - } - if ( - /*settings*/ - ctx2[0].edge_fields.length > 3 - ) { - if (if_block1) { - if_block1.p(ctx2, dirty); - if (dirty[0] & /*settings*/ - 1) { - transition_in(if_block1, 1); - } - } else { - if_block1 = create_if_block_5(ctx2); - if_block1.c(); - transition_in(if_block1, 1); - if_block1.m(div2, null); - } - } else if (if_block1) { - group_outros(); - transition_out(if_block1, 1, 1, () => { - if_block1 = null; - }); - check_outros(); - } - if (dirty[0] & /*settings, actions, filters, context_menus*/ - 15) { - each_value_3 = ensure_array_like( - /*settings*/ - ctx2[0].edge_fields.filter( - /*func*/ - ctx2[8] - ) - ); - let i; - for (i = 0; i < each_value_3.length; i += 1) { - const child_ctx = get_each_context_3(ctx2, each_value_3, i); - if (each_blocks_1[i]) { - each_blocks_1[i].p(child_ctx, dirty); - transition_in(each_blocks_1[i], 1); - } else { - each_blocks_1[i] = create_each_block_3(child_ctx); - each_blocks_1[i].c(); - transition_in(each_blocks_1[i], 1); - each_blocks_1[i].m(div3, t9); - } - } - group_outros(); - for (i = each_value_3.length; i < each_blocks_1.length; i += 1) { - out(i); - } - check_outros(); - } - if (dirty[0] & /*filters*/ - 2 && input1.value !== /*filters*/ - ctx2[1].groups) { - set_input_value( - input1, - /*filters*/ - ctx2[1].groups - ); - } - if (!current || dirty[0] & /*filters*/ - 2 && button3_disabled_value !== (button3_disabled_value = /*filters*/ - ctx2[1].groups === "")) { - button3.disabled = button3_disabled_value; - } - if ( - /*settings*/ - ctx2[0].edge_field_groups.length > 3 - ) { - if (if_block2) { - if_block2.p(ctx2, dirty); - if (dirty[0] & /*settings*/ - 1) { - transition_in(if_block2, 1); - } - } else { - if_block2 = create_if_block_2(ctx2); - if_block2.c(); - transition_in(if_block2, 1); - if_block2.m(div5, null); - } - } else if (if_block2) { - group_outros(); - transition_out(if_block2, 1, 1, () => { - if_block2 = null; - }); - check_outros(); - } - if (dirty[0] & /*actions, settings, filters, context_menus*/ - 15) { - each_value = ensure_array_like( - /*settings*/ - ctx2[0].edge_field_groups.filter( - /*func_3*/ - ctx2[17] - ) - ); - let i; - for (i = 0; i < each_value.length; i += 1) { - const child_ctx = get_each_context2(ctx2, each_value, i); - if (each_blocks[i]) { - each_blocks[i].p(child_ctx, dirty); - transition_in(each_blocks[i], 1); - } else { - each_blocks[i] = create_each_block2(child_ctx); - each_blocks[i].c(); - transition_in(each_blocks[i], 1); - each_blocks[i].m(div6, t19); - } - } - group_outros(); - for (i = each_value.length; i < each_blocks.length; i += 1) { - out_1(i); - } - check_outros(); - } - }, - i(local) { - if (current) - return; - transition_in(saveicon.$$.fragment, local); - transition_in(if_block1); - for (let i = 0; i < each_value_3.length; i += 1) { - transition_in(each_blocks_1[i]); - } - transition_in(plusicon0.$$.fragment, local); - transition_in(if_block2); - for (let i = 0; i < each_value.length; i += 1) { - transition_in(each_blocks[i]); - } - transition_in(plusicon1.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(saveicon.$$.fragment, local); - transition_out(if_block1); - each_blocks_1 = each_blocks_1.filter(Boolean); - for (let i = 0; i < each_blocks_1.length; i += 1) { - transition_out(each_blocks_1[i]); - } - transition_out(plusicon0.$$.fragment, local); - transition_out(if_block2); - each_blocks = each_blocks.filter(Boolean); - for (let i = 0; i < each_blocks.length; i += 1) { - transition_out(each_blocks[i]); - } - transition_out(plusicon1.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div7); - } - destroy_component(saveicon); - if (if_block0) - if_block0.d(); - if (if_block1) - if_block1.d(); - destroy_each(each_blocks_1, detaching); - destroy_component(plusicon0); - if (if_block2) - if_block2.d(); - destroy_each(each_blocks, detaching); - destroy_component(plusicon1); - mounted = false; - run_all(dispose); - } - }; -} -function instance22($$self, $$props, $$invalidate) { - let { plugin } = $$props; - const settings = plugin.settings; - let filters = { fields: "", groups: "" }; - const actions = { - save: () => __awaiter(void 0, void 0, void 0, function* () { - yield Promise.all([plugin.saveSettings(), plugin.refresh({ redraw_side_views: true })]); - $$invalidate(4, plugin); - }), - fields: { - make_id: (label) => `BC-edge-field-${label}`, - scroll_to: (label) => { - const el = document.getElementById(actions.fields.make_id(label)); - if (el) { - el.scrollIntoView({ behavior: "smooth", block: "center" }); - el.focus(); - } - }, - add: () => { - const field = { - label: `Edge Field ${settings.edge_fields.length + 1}` - }; - settings.edge_fields.push(field); - setTimeout(() => actions.fields.scroll_to(field.label), 0); - $$invalidate(0, settings.is_dirty = true, settings); - $$invalidate(4, plugin); - }, - remove: (edge_field) => { - $$invalidate(0, settings.edge_fields = settings.edge_fields.filter((f) => f.label !== edge_field.label), settings); - settings.edge_field_groups.forEach((group) => { - group.fields = group.fields.filter((f) => f !== edge_field.label); - }); - $$invalidate(0, settings.is_dirty = true, settings); - $$invalidate(4, plugin); - }, - rename: (edge_field, new_label) => { - if (edge_field.label === new_label) { - return; - } else if (new_label === "") { - return new import_obsidian7.Notice("Field label cannot be empty."); - } else if (settings.edge_fields.some((f) => f.label === new_label)) { - return new import_obsidian7.Notice("Field label must be unique."); - } - settings.edge_field_groups.forEach((group) => { - const index = group.fields.indexOf(edge_field.label); - if (index === -1) - return; - group.fields[index] = new_label; - }); - settings.implied_relations.transitive.forEach((rule) => { - rule.chain = rule.chain.map((attr2) => attr2.field === edge_field.label ? Object.assign(Object.assign({}, attr2), { field: new_label }) : attr2); - rule.close_field = rule.close_field === edge_field.label ? new_label : rule.close_field; - }); - $$invalidate( - 0, - settings.explicit_edge_sources.tag_note.default_field = settings.explicit_edge_sources.tag_note.default_field === edge_field.label ? new_label : settings.explicit_edge_sources.tag_note.default_field, - settings - ); - $$invalidate( - 0, - settings.explicit_edge_sources.list_note.default_neighbour_field = settings.explicit_edge_sources.list_note.default_neighbour_field === edge_field.label ? new_label : settings.explicit_edge_sources.list_note.default_neighbour_field, - settings - ); - $$invalidate( - 0, - settings.explicit_edge_sources.dendron_note.default_field = settings.explicit_edge_sources.dendron_note.default_field === edge_field.label ? new_label : settings.explicit_edge_sources.dendron_note.default_field, - settings - ); - $$invalidate( - 0, - settings.explicit_edge_sources.johnny_decimal_note.default_field = settings.explicit_edge_sources.johnny_decimal_note.default_field === edge_field.label ? new_label : settings.explicit_edge_sources.johnny_decimal_note.default_field, - settings - ); - $$invalidate( - 0, - settings.explicit_edge_sources.date_note.default_field = settings.explicit_edge_sources.date_note.default_field === edge_field.label ? new_label : settings.explicit_edge_sources.date_note.default_field, - settings - ); - $$invalidate( - 0, - settings.explicit_edge_sources.regex_note.default_field = settings.explicit_edge_sources.regex_note.default_field === edge_field.label ? new_label : settings.explicit_edge_sources.regex_note.default_field, - settings - ); - edge_field.label = new_label; - $$invalidate(0, settings.is_dirty = true, settings); - $$invalidate(4, plugin); - } - }, - groups: { - make_id: (label) => `BC-edge-group-${label}`, - scroll_to: (label) => { - const el = document.getElementById(actions.groups.make_id(label)); - if (el) { - el.scrollIntoView({ behavior: "smooth", block: "center" }); - el.focus(); - } - }, - add: () => { - const group = { - label: `Group ${settings.edge_field_groups.length + 1}`, - fields: [] - }; - settings.edge_field_groups.push(group); - setTimeout(() => actions.groups.scroll_to(group.label), 0); - $$invalidate(0, settings.is_dirty = true, settings); - $$invalidate(4, plugin); - }, - remove: (group) => { - $$invalidate(0, settings.edge_field_groups = settings.edge_field_groups.filter((g) => g.label !== group.label), settings); - $$invalidate(0, settings.is_dirty = true, settings); - $$invalidate(4, plugin); - }, - rename: (group, new_label) => { - if (group.label === new_label) - return; - $$invalidate(0, settings.views.page.trail.field_group_labels = settings.views.page.trail.field_group_labels.map((label) => label === group.label ? new_label : label), settings); - $$invalidate(0, settings.views.page.prev_next.field_group_labels.prev = settings.views.page.prev_next.field_group_labels.prev.map((label) => label === group.label ? new_label : label), settings); - $$invalidate(0, settings.views.page.prev_next.field_group_labels.next = settings.views.page.prev_next.field_group_labels.next.map((label) => label === group.label ? new_label : label), settings); - $$invalidate(0, settings.views.side.matrix.field_group_labels = settings.views.side.matrix.field_group_labels.map((label) => label === group.label ? new_label : label), settings); - $$invalidate(0, settings.views.side.matrix.field_group_labels = settings.views.side.matrix.field_group_labels.map((label) => label === group.label ? new_label : label), settings); - group.label = new_label; - $$invalidate(0, settings.is_dirty = true, settings); - $$invalidate(4, plugin); - }, - add_field: (group, field_label) => { - if (!group) - return; - group.fields.push(field_label); - $$invalidate(0, settings.is_dirty = true, settings); - $$invalidate(4, plugin); - }, - remove_field: (group, field_label) => { - if (!group) - return; - group.fields = group.fields.filter((f) => f !== field_label); - $$invalidate(0, settings.is_dirty = true, settings); - $$invalidate(4, plugin); - } - } - }; - const context_menus = { - field_group: (edge_field, group_label) => (e) => { - const menu = new import_obsidian7.Menu(); - menu.addItem((item) => item.setTitle("Remove from Group").setIcon("x").onClick(() => actions.groups.remove_field(settings.edge_field_groups.find((g) => g.label === group_label), edge_field.label))); - menu.showAtMouseEvent(e); - }, - group_field: (group, field_label) => (e) => { - const menu = new import_obsidian7.Menu(); - menu.addItem((item) => item.setTitle("Remove Field").setIcon("x").onClick(() => actions.groups.remove_field(group, field_label))); - menu.showAtMouseEvent(e); - } - }; - function input0_input_handler() { - filters.fields = this.value; - $$invalidate(1, filters); - } - const click_handler = () => $$invalidate(1, filters.fields = "", filters); - const click_handler_1 = () => { - var _a, _b; - return actions.fields.scroll_to((_b = (_a = settings.edge_fields.last()) == null ? void 0 : _a.label) != null ? _b : ""); - }; - const func = (f) => f.label.includes(filters.fields.toLowerCase()); - const blur_handler = (field, e) => actions.fields.rename(field, e.currentTarget.value); - const click_handler_2 = (field) => actions.fields.remove(field); - const click_handler_3 = (group_label) => actions.groups.scroll_to(group_label); - const change_handler = (field, e) => { - if (e.currentTarget.value) { - actions.groups.add_field(settings.edge_field_groups.find((g) => g.label === e.currentTarget.value), field.label); - e.currentTarget.value = ""; - } - }; - const func_1 = (field, group) => group.fields.includes(field.label); - function input1_input_handler() { - filters.groups = this.value; - $$invalidate(1, filters); - } - const click_handler_4 = () => $$invalidate(1, filters.groups = "", filters); - const click_handler_5 = () => { - var _a, _b; - return actions.groups.scroll_to((_b = (_a = settings.edge_field_groups.last()) == null ? void 0 : _a.label) != null ? _b : ""); - }; - const func_3 = (group) => group.label.includes(filters.groups.toLowerCase()); - const blur_handler_1 = (group, e) => actions.groups.rename(group, e.currentTarget.value); - const click_handler_6 = (group) => actions.groups.remove(group); - const click_handler_7 = (field_label) => actions.fields.scroll_to(field_label); - const change_handler_1 = (group, e) => { - if (e.currentTarget.value) { - actions.groups.add_field(group, e.currentTarget.value); - e.currentTarget.value = ""; - } - }; - $$self.$$set = ($$props2) => { - if ("plugin" in $$props2) - $$invalidate(4, plugin = $$props2.plugin); - }; - return [ - settings, - filters, - actions, - context_menus, - plugin, - input0_input_handler, - click_handler, - click_handler_1, - func, - blur_handler, - click_handler_2, - click_handler_3, - change_handler, - func_1, - input1_input_handler, - click_handler_4, - click_handler_5, - func_3, - blur_handler_1, - click_handler_6, - click_handler_7, - change_handler_1 - ]; -} -var EdgeFieldSettings = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance22, create_fragment22, safe_not_equal, { plugin: 4 }, null, [-1, -1]); - } -}; -var EdgeFieldSettings_default = EdgeFieldSettings; - -// src/components/settings/TransitiveImpliedRelations.svelte -var import_obsidian10 = require("obsidian"); - -// src/components/button/ChevronOpener.svelte -function create_else_block2(ctx) { - let chevronright; - let current; - chevronright = new chevron_right_default({ props: { size: ICON_SIZE } }); - return { - c() { - create_component(chevronright.$$.fragment); - }, - m(target, anchor) { - mount_component(chevronright, target, anchor); - current = true; - }, - i(local) { - if (current) - return; - transition_in(chevronright.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(chevronright.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(chevronright, detaching); - } - }; -} -function create_if_block3(ctx) { - let chevrondown; - let current; - chevrondown = new chevron_down_default({ props: { size: ICON_SIZE } }); - return { - c() { - create_component(chevrondown.$$.fragment); - }, - m(target, anchor) { - mount_component(chevrondown, target, anchor); - current = true; - }, - i(local) { - if (current) - return; - transition_in(chevrondown.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(chevrondown.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(chevrondown, detaching); - } - }; -} -function create_fragment23(ctx) { - let current_block_type_index; - let if_block; - let if_block_anchor; - let current; - const if_block_creators = [create_if_block3, create_else_block2]; - const if_blocks = []; - function select_block_type(ctx2, dirty) { - if ( - /*open*/ - ctx2[0] - ) - return 0; - return 1; - } - current_block_type_index = select_block_type(ctx, -1); - if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx); - return { - c() { - if_block.c(); - if_block_anchor = empty(); - }, - m(target, anchor) { - if_blocks[current_block_type_index].m(target, anchor); - insert(target, if_block_anchor, anchor); - current = true; - }, - p(ctx2, [dirty]) { - let previous_block_index = current_block_type_index; - current_block_type_index = select_block_type(ctx2, dirty); - if (current_block_type_index !== previous_block_index) { - group_outros(); - transition_out(if_blocks[previous_block_index], 1, 1, () => { - if_blocks[previous_block_index] = null; - }); - check_outros(); - if_block = if_blocks[current_block_type_index]; - if (!if_block) { - if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2); - if_block.c(); - } else { - } - transition_in(if_block, 1); - if_block.m(if_block_anchor.parentNode, if_block_anchor); - } - }, - i(local) { - if (current) - return; - transition_in(if_block); - current = true; - }, - o(local) { - transition_out(if_block); - current = false; - }, - d(detaching) { - if (detaching) { - detach(if_block_anchor); - } - if_blocks[current_block_type_index].d(detaching); - } - }; -} -function instance23($$self, $$props, $$invalidate) { - let { open } = $$props; - $$self.$$set = ($$props2) => { - if ("open" in $$props2) - $$invalidate(0, open = $$props2.open); - }; - return [open]; -} -var ChevronOpener = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance23, create_fragment23, safe_not_equal, { open: 0 }); - } -}; -var ChevronOpener_default = ChevronOpener; - -// src/components/obsidian/RenderMarkdown.svelte -var import_obsidian9 = require("obsidian"); - -// src/stores/active_file.ts -var import_obsidian8 = require("obsidian"); - -// node_modules/svelte/src/runtime/store/index.js -var subscriber_queue = []; -function writable(value, start = noop) { - let stop; - const subscribers = /* @__PURE__ */ new Set(); - function set(new_value) { - if (safe_not_equal(value, new_value)) { - value = new_value; - if (stop) { - const run_queue = !subscriber_queue.length; - for (const subscriber of subscribers) { - subscriber[1](); - subscriber_queue.push(subscriber, value); - } - if (run_queue) { - for (let i = 0; i < subscriber_queue.length; i += 2) { - subscriber_queue[i][0](subscriber_queue[i + 1]); - } - subscriber_queue.length = 0; - } - } - } - } - function update2(fn) { - set(fn(value)); - } - function subscribe2(run2, invalidate = noop) { - const subscriber = [run2, invalidate]; - subscribers.add(subscriber); - if (subscribers.size === 1) { - stop = start(set, update2) || noop; - } - run2(value); - return () => { - subscribers.delete(subscriber); - if (subscribers.size === 0 && stop) { - stop(); - stop = null; - } - }; - } - return { set, update: update2, subscribe: subscribe2 }; -} - -// src/stores/active_file.ts -var store = writable(null); -var active_file_store = { - ...store, - refresh: (app) => store.set(app.workspace.getActiveFile()) -}; - -// src/components/obsidian/RenderMarkdown.svelte -function create_fragment24(ctx) { - let div; - let div_class_value; - return { - c() { - div = element("div"); - attr(div, "class", div_class_value = "markdown-rendered " + /*cls*/ - ctx[0]); - }, - m(target, anchor) { - insert(target, div, anchor); - ctx[5](div); - }, - p(ctx2, [dirty]) { - if (dirty & /*cls*/ - 1 && div_class_value !== (div_class_value = "markdown-rendered " + /*cls*/ - ctx2[0])) { - attr(div, "class", div_class_value); - } - }, - i: noop, - o: noop, - d(detaching) { - if (detaching) { - detach(div); - } - ctx[5](null); - } - }; -} -function instance24($$self, $$props, $$invalidate) { - let $active_file_store; - component_subscribe($$self, active_file_store, ($$value) => $$invalidate(6, $active_file_store = $$value)); - let { cls = "" } = $$props; - let { markdown } = $$props; - let { plugin } = $$props; - let { source_path = void 0 } = $$props; - let el; - const render = (markdown2, el2) => { - var _a; - if (!el2) - return; - log.debug("rendering markdown"); - el2.empty(); - import_obsidian9.MarkdownRenderer.render( - plugin.app, - markdown2, - el2, - (_a = source_path !== null && source_path !== void 0 ? source_path : $active_file_store === null || $active_file_store === void 0 ? void 0 : $active_file_store.path) !== null && _a !== void 0 ? _a : "", - plugin - ); - }; - function div_binding($$value) { - binding_callbacks[$$value ? "unshift" : "push"](() => { - el = $$value; - $$invalidate(1, el); - }); - } - $$self.$$set = ($$props2) => { - if ("cls" in $$props2) - $$invalidate(0, cls = $$props2.cls); - if ("markdown" in $$props2) - $$invalidate(2, markdown = $$props2.markdown); - if ("plugin" in $$props2) - $$invalidate(3, plugin = $$props2.plugin); - if ("source_path" in $$props2) - $$invalidate(4, source_path = $$props2.source_path); - }; - $$self.$$.update = () => { - if ($$self.$$.dirty & /*markdown, el*/ - 6) { - $: - render(markdown, el); - } - }; - return [cls, el, markdown, plugin, source_path, div_binding]; -} -var RenderMarkdown = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance24, create_fragment24, safe_not_equal, { - cls: 0, - markdown: 2, - plugin: 3, - source_path: 4 - }); - } -}; -var RenderMarkdown_default = RenderMarkdown; - -// src/components/obsidian/RenderExternalCodeblock.svelte -function create_fragment25(ctx) { - let rendermarkdown; - let updating_plugin; - let current; - function rendermarkdown_plugin_binding(value) { - ctx[4](value); - } - let rendermarkdown_props = { - source_path: ( - /*source_path*/ - ctx[3] - ), - markdown: wrap_in_codeblock( - /*code*/ - ctx[1], - /*type*/ - ctx[2] - ) - }; - if ( - /*plugin*/ - ctx[0] !== void 0 - ) { - rendermarkdown_props.plugin = /*plugin*/ - ctx[0]; - } - rendermarkdown = new RenderMarkdown_default({ props: rendermarkdown_props }); - binding_callbacks.push(() => bind(rendermarkdown, "plugin", rendermarkdown_plugin_binding)); - return { - c() { - create_component(rendermarkdown.$$.fragment); - }, - m(target, anchor) { - mount_component(rendermarkdown, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const rendermarkdown_changes = {}; - if (dirty & /*source_path*/ - 8) - rendermarkdown_changes.source_path = /*source_path*/ - ctx2[3]; - if (dirty & /*code, type*/ - 6) - rendermarkdown_changes.markdown = wrap_in_codeblock( - /*code*/ - ctx2[1], - /*type*/ - ctx2[2] - ); - if (!updating_plugin && dirty & /*plugin*/ - 1) { - updating_plugin = true; - rendermarkdown_changes.plugin = /*plugin*/ - ctx2[0]; - add_flush_callback(() => updating_plugin = false); - } - rendermarkdown.$set(rendermarkdown_changes); - }, - i(local) { - if (current) - return; - transition_in(rendermarkdown.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(rendermarkdown.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(rendermarkdown, detaching); - } - }; -} -function instance25($$self, $$props, $$invalidate) { - let { code } = $$props; - let { type } = $$props; - let { plugin } = $$props; - let { source_path = void 0 } = $$props; - function rendermarkdown_plugin_binding(value) { - plugin = value; - $$invalidate(0, plugin); - } - $$self.$$set = ($$props2) => { - if ("code" in $$props2) - $$invalidate(1, code = $$props2.code); - if ("type" in $$props2) - $$invalidate(2, type = $$props2.type); - if ("plugin" in $$props2) - $$invalidate(0, plugin = $$props2.plugin); - if ("source_path" in $$props2) - $$invalidate(3, source_path = $$props2.source_path); - }; - return [plugin, code, type, source_path, rendermarkdown_plugin_binding]; -} -var RenderExternalCodeblock = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance25, create_fragment25, safe_not_equal, { - code: 1, - type: 2, - plugin: 0, - source_path: 3 - }); - } -}; -var RenderExternalCodeblock_default = RenderExternalCodeblock; - -// src/components/selector/EdgeFieldSelector.svelte -function get_each_context3(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[5] = list[i].label; - return child_ctx; -} -function create_each_block3(ctx) { - let option; - let t_value = ( - /*label*/ - ctx[5] + "" - ); - let t; - let option_value_value; - return { - c() { - option = element("option"); - t = text(t_value); - option.__value = option_value_value = /*label*/ - ctx[5]; - set_input_value(option, option.__value); - }, - m(target, anchor) { - insert(target, option, anchor); - append(option, t); - }, - p(ctx2, dirty) { - if (dirty & /*fields*/ - 2 && t_value !== (t_value = /*label*/ - ctx2[5] + "")) - set_data(t, t_value); - if (dirty & /*fields*/ - 2 && option_value_value !== (option_value_value = /*label*/ - ctx2[5])) { - option.__value = option_value_value; - set_input_value(option, option.__value); - } - }, - d(detaching) { - if (detaching) { - detach(option); - } - } - }; -} -function create_fragment26(ctx) { - let select; - let option; - let t; - let select_value_value; - let mounted; - let dispose; - let each_value = ensure_array_like( - /*fields*/ - ctx[1] - ); - let each_blocks = []; - for (let i = 0; i < each_value.length; i += 1) { - each_blocks[i] = create_each_block3(get_each_context3(ctx, each_value, i)); - } - return { - c() { - select = element("select"); - option = element("option"); - t = text("Select Field"); - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].c(); - } - option.__value = void 0; - set_input_value(option, option.__value); - option.disabled = true; - attr(select, "class", "dropdown"); - }, - m(target, anchor) { - var _a; - insert(target, select, anchor); - append(select, option); - append(option, t); - for (let i = 0; i < each_blocks.length; i += 1) { - if (each_blocks[i]) { - each_blocks[i].m(select, null); - } - } - select_option( - select, - /*field*/ - (_a = ctx[0]) == null ? void 0 : _a.label - ); - if (!mounted) { - dispose = listen( - select, - "change", - /*change_handler*/ - ctx[4] - ); - mounted = true; - } - }, - p(ctx2, [dirty]) { - var _a, _b; - if (dirty & /*fields*/ - 2) { - each_value = ensure_array_like( - /*fields*/ - ctx2[1] - ); - let i; - for (i = 0; i < each_value.length; i += 1) { - const child_ctx = get_each_context3(ctx2, each_value, i); - if (each_blocks[i]) { - each_blocks[i].p(child_ctx, dirty); - } else { - each_blocks[i] = create_each_block3(child_ctx); - each_blocks[i].c(); - each_blocks[i].m(select, null); - } - } - for (; i < each_blocks.length; i += 1) { - each_blocks[i].d(1); - } - each_blocks.length = each_value.length; - } - if (dirty & /*field, fields, undefined*/ - 3 && select_value_value !== (select_value_value = /*field*/ - (_a = ctx2[0]) == null ? void 0 : _a.label)) { - select_option( - select, - /*field*/ - (_b = ctx2[0]) == null ? void 0 : _b.label - ); - } - }, - i: noop, - o: noop, - d(detaching) { - if (detaching) { - detach(select); - } - destroy_each(each_blocks, detaching); - mounted = false; - dispose(); - } - }; -} -function instance26($$self, $$props, $$invalidate) { - let { fields } = $$props; - let { undefine_on_change = true } = $$props; - let { field = void 0 } = $$props; - const dispatch = createEventDispatcher(); - const change_handler = (e) => { - $$invalidate(0, field = fields.find((field2) => field2.label === e.currentTarget.value)); - dispatch("select", field); - if (undefine_on_change) - $$invalidate(0, field = void 0); - }; - $$self.$$set = ($$props2) => { - if ("fields" in $$props2) - $$invalidate(1, fields = $$props2.fields); - if ("undefine_on_change" in $$props2) - $$invalidate(2, undefine_on_change = $$props2.undefine_on_change); - if ("field" in $$props2) - $$invalidate(0, field = $$props2.field); - }; - return [field, fields, undefine_on_change, dispatch, change_handler]; -} -var EdgeFieldSelector = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance26, create_fragment26, safe_not_equal, { - fields: 1, - undefine_on_change: 2, - field: 0 - }); - } -}; -var EdgeFieldSelector_default = EdgeFieldSelector; - -// src/components/settings/TransitiveImpliedRelations.svelte -function add_css(target) { - append_styles(target, "svelte-91sdw2", ".border.svelte-91sdw2{border-radius:var(--radius-m);border:var(--modal-border-width) solid\n var(--background-modifier-border)}"); -} -function get_each_context4(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[25] = list[i].rule; - child_ctx[26] = list[i].rule_i; - child_ctx[27] = list[i].name; - child_ctx[28] = list; - child_ctx[29] = i; - return child_ctx; -} -function get_each_context_12(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[30] = list[i]; - child_ctx[32] = i; - return child_ctx; -} -function create_if_block_32(ctx) { - let button; - let arrowdown; - let current; - let mounted; - let dispose; - arrowdown = new arrow_down_default({ props: { size: ICON_SIZE } }); - return { - c() { - button = element("button"); - create_component(arrowdown.$$.fragment); - attr(button, "class", "w-10"); - attr(button, "aria-label", "Jump to bottom"); - }, - m(target, anchor) { - insert(target, button, anchor); - mount_component(arrowdown, button, null); - current = true; - if (!mounted) { - dispose = listen( - button, - "click", - /*click_handler_1*/ - ctx[9] - ); - mounted = true; - } - }, - p: noop, - i(local) { - if (current) - return; - transition_in(arrowdown.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(arrowdown.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(button); - } - destroy_component(arrowdown); - mounted = false; - dispose(); - } - }; -} -function create_if_block_22(ctx) { - let span; - return { - c() { - span = element("span"); - span.textContent = "Unsaved changes"; - attr(span, "class", "text-warning"); - }, - m(target, anchor) { - insert(target, span, anchor); - }, - d(detaching) { - if (detaching) { - detach(span); - } - } - }; -} -function create_else_block3(ctx) { - let span; - return { - c() { - span = element("span"); - span.textContent = "No fields in the chain."; - attr(span, "class", "search-empty-state my-0"); - }, - m(target, anchor) { - insert(target, span, anchor); - }, - p: noop, - i: noop, - o: noop, - d(detaching) { - if (detaching) { - detach(span); - } - } - }; -} -function create_if_block_12(ctx) { - let div; - let each_blocks = []; - let each_1_lookup = /* @__PURE__ */ new Map(); - let current; - let each_value_1 = ensure_array_like( - /*rule*/ - ctx[25].chain - ); - const get_key = (ctx2) => { - var _a; - return ( - /*attr_i*/ - ctx2[32] + /*attr*/ - ((_a = ctx2[30].field) != null ? _a : "") - ); - }; - for (let i = 0; i < each_value_1.length; i += 1) { - let child_ctx = get_each_context_12(ctx, each_value_1, i); - let key = get_key(child_ctx); - each_1_lookup.set(key, each_blocks[i] = create_each_block_12(key, child_ctx)); - } - return { - c() { - div = element("div"); - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].c(); - } - attr(div, "class", "flex flex-wrap gap-3"); - }, - m(target, anchor) { - insert(target, div, anchor); - for (let i = 0; i < each_blocks.length; i += 1) { - if (each_blocks[i]) { - each_blocks[i].m(div, null); - } - } - current = true; - }, - p(ctx2, dirty) { - if (dirty[0] & /*transitives, filter, context_menus*/ - 76) { - each_value_1 = ensure_array_like( - /*rule*/ - ctx2[25].chain - ); - group_outros(); - each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx2, each_value_1, each_1_lookup, div, outro_and_destroy_block, create_each_block_12, null, get_each_context_12); - check_outros(); - } - }, - i(local) { - if (current) - return; - for (let i = 0; i < each_value_1.length; i += 1) { - transition_in(each_blocks[i]); - } - current = true; - }, - o(local) { - for (let i = 0; i < each_blocks.length; i += 1) { - transition_out(each_blocks[i]); - } - current = false; - }, - d(detaching) { - if (detaching) { - detach(div); - } - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].d(); - } - } - }; -} -function create_each_block_12(key_1, ctx) { - var _a; - let first; - let tag; - let current; - tag = new tag_default({ - props: { - tag: ( - /*attr*/ - (_a = ctx[30].field) != null ? _a : "" - ), - title: "Right click for more actions." - } - }); - tag.$on("contextmenu", function() { - if (is_function( - /*context_menus*/ - ctx[6].chain_field( - /*rule_i*/ - ctx[26], - /*attr_i*/ - ctx[32] - ) - )) - ctx[6].chain_field( - /*rule_i*/ - ctx[26], - /*attr_i*/ - ctx[32] - ).apply(this, arguments); - }); - return { - key: key_1, - first: null, - c() { - first = empty(); - create_component(tag.$$.fragment); - this.first = first; - }, - m(target, anchor) { - insert(target, first, anchor); - mount_component(tag, target, anchor); - current = true; - }, - p(new_ctx, dirty) { - var _a2; - ctx = new_ctx; - const tag_changes = {}; - if (dirty[0] & /*transitives, filter*/ - 12) - tag_changes.tag = /*attr*/ - (_a2 = ctx[30].field) != null ? _a2 : ""; - tag.$set(tag_changes); - }, - i(local) { - if (current) - return; - transition_in(tag.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(tag.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(first); - } - destroy_component(tag, detaching); - } - }; -} -function create_if_block4(ctx) { - let renderexternalcodeblock; - let current; - renderexternalcodeblock = new RenderExternalCodeblock_default({ - props: { - plugin: ( - /*plugin*/ - ctx[0] - ), - type: "mermaid", - code: Mermaid.from_edges(transitive_rule_to_edges( - /*rule*/ - ctx[25] - ), { - show_attributes: ["field"], - collapse_opposing_edges: false - }) - } - }); - return { - c() { - create_component(renderexternalcodeblock.$$.fragment); - }, - m(target, anchor) { - mount_component(renderexternalcodeblock, target, anchor); - current = true; - }, - p(ctx2, dirty) { - const renderexternalcodeblock_changes = {}; - if (dirty[0] & /*plugin*/ - 1) - renderexternalcodeblock_changes.plugin = /*plugin*/ - ctx2[0]; - if (dirty[0] & /*transitives, filter*/ - 12) - renderexternalcodeblock_changes.code = Mermaid.from_edges(transitive_rule_to_edges( - /*rule*/ - ctx2[25] - ), { - show_attributes: ["field"], - collapse_opposing_edges: false - }); - renderexternalcodeblock.$set(renderexternalcodeblock_changes); - }, - i(local) { - if (current) - return; - transition_in(renderexternalcodeblock.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(renderexternalcodeblock.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(renderexternalcodeblock, detaching); - } - }; -} -function create_key_block2(ctx) { - let div6; - let div0; - let span0; - let t1; - let current_block_type_index; - let if_block0; - let t2; - let edgefieldselector0; - let t3; - let div1; - let span1; - let t5; - let edgefieldselector1; - let t6; - let div2; - let span2; - let t8; - let input0; - let t9; - let div3; - let span3; - let t11; - let input1; - let input1_min_value; - let input1_max_value; - let input1_value_value; - let t12; - let div5; - let span4; - let t14; - let div4; - let input2; - let input2_value_value; - let t15; - let button; - let t17; - let current; - let mounted; - let dispose; - const if_block_creators = [create_if_block_12, create_else_block3]; - const if_blocks = []; - function select_block_type(ctx2, dirty) { - if ( - /*rule*/ - ctx2[25].chain.length - ) - return 0; - return 1; - } - current_block_type_index = select_block_type(ctx, [-1, -1]); - if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx); - function select_handler(...args) { - return ( - /*select_handler*/ - ctx[16]( - /*rule_i*/ - ctx[26], - ...args - ) - ); - } - edgefieldselector0 = new EdgeFieldSelector_default({ - props: { fields: ( - /*settings*/ - ctx[1].edge_fields - ) } - }); - edgefieldselector0.$on("select", select_handler); - function func_2(...args) { - return ( - /*func_2*/ - ctx[17]( - /*rule*/ - ctx[25], - ...args - ) - ); - } - function select_handler_1(...args) { - return ( - /*select_handler_1*/ - ctx[18]( - /*rule_i*/ - ctx[26], - ...args - ) - ); - } - edgefieldselector1 = new EdgeFieldSelector_default({ - props: { - undefine_on_change: false, - fields: ( - /*settings*/ - ctx[1].edge_fields - ), - field: ( - /*settings*/ - ctx[1].edge_fields.find(func_2) - ) - } - }); - edgefieldselector1.$on("select", select_handler_1); - function input0_change_handler() { - ctx[19].call( - input0, - /*each_value*/ - ctx[28], - /*each_index*/ - ctx[29] - ); - } - function click_handler_6(...args) { - return ( - /*click_handler_6*/ - ctx[20]( - /*rule_i*/ - ctx[26], - ...args - ) - ); - } - function blur_handler(...args) { - return ( - /*blur_handler*/ - ctx[21]( - /*rule_i*/ - ctx[26], - ...args - ) - ); - } - function blur_handler_1(...args) { - return ( - /*blur_handler_1*/ - ctx[22]( - /*rule_i*/ - ctx[26], - ...args - ) - ); - } - function click_handler_7() { - return ( - /*click_handler_7*/ - ctx[23]( - /*rule_i*/ - ctx[26] - ) - ); - } - let if_block1 = ( - /*opens*/ - ctx[4][ - /*rule_i*/ - ctx[26] - ] && create_if_block4(ctx) - ); - return { - c() { - div6 = element("div"); - div0 = element("div"); - span0 = element("span"); - span0.textContent = "Edge Chain:"; - t1 = space(); - if_block0.c(); - t2 = space(); - create_component(edgefieldselector0.$$.fragment); - t3 = space(); - div1 = element("div"); - span1 = element("span"); - span1.textContent = "Closing Field:"; - t5 = space(); - create_component(edgefieldselector1.$$.fragment); - t6 = space(); - div2 = element("div"); - span2 = element("span"); - span2.textContent = "Close Reversed:"; - t8 = space(); - input0 = element("input"); - t9 = space(); - div3 = element("div"); - span3 = element("span"); - span3.textContent = "Rounds:"; - t11 = space(); - input1 = element("input"); - t12 = space(); - div5 = element("div"); - span4 = element("span"); - span4.textContent = "Name (optional):"; - t14 = space(); - div4 = element("div"); - input2 = element("input"); - t15 = space(); - button = element("button"); - button.textContent = "X"; - t17 = space(); - if (if_block1) - if_block1.c(); - attr(span0, "class", "font-semibold"); - attr(div0, "class", "flex flex-wrap items-center gap-3"); - attr(span1, "class", "font-semibold"); - attr(span2, "class", "font-semibold"); - attr(input0, "type", "checkbox"); - attr(div2, "class", "flex items-center gap-2"); - attr(span3, "class", "font-semibold"); - attr(input1, "type", "number"); - attr(input1, "min", input1_min_value = 0); - attr(input1, "max", input1_max_value = 100); - input1.value = input1_value_value = /*rule*/ - ctx[25].rounds; - attr(span4, "class", "font-semibold"); - attr(input2, "type", "text"); - input2.value = input2_value_value = /*rule*/ - ctx[25].name; - attr(input2, "placeholder", "Rule Name"); - attr(button, "aria-label", "Reset Name"); - attr(div4, "class", "flex gap-1"); - attr(div5, "class", "flex flex-wrap items-center gap-3"); - attr(div6, "class", "my-2 flex flex-col gap-3 px-4 py-2"); - }, - m(target, anchor) { - insert(target, div6, anchor); - append(div6, div0); - append(div0, span0); - append(div0, t1); - if_blocks[current_block_type_index].m(div0, null); - append(div0, t2); - mount_component(edgefieldselector0, div0, null); - append(div6, t3); - append(div6, div1); - append(div1, span1); - append(div1, t5); - mount_component(edgefieldselector1, div1, null); - append(div6, t6); - append(div6, div2); - append(div2, span2); - append(div2, t8); - append(div2, input0); - input0.checked = /*rule*/ - ctx[25].close_reversed; - append(div6, t9); - append(div6, div3); - append(div3, span3); - append(div3, t11); - append(div3, input1); - append(div6, t12); - append(div6, div5); - append(div5, span4); - append(div5, t14); - append(div5, div4); - append(div4, input2); - append(div4, t15); - append(div4, button); - append(div6, t17); - if (if_block1) - if_block1.m(div6, null); - current = true; - if (!mounted) { - dispose = [ - listen(input0, "change", input0_change_handler), - listen(input0, "click", click_handler_6), - listen(input1, "blur", blur_handler), - listen(input2, "blur", blur_handler_1), - listen(button, "click", click_handler_7) - ]; - mounted = true; - } - }, - p(new_ctx, dirty) { - ctx = new_ctx; - let previous_block_index = current_block_type_index; - current_block_type_index = select_block_type(ctx, dirty); - if (current_block_type_index === previous_block_index) { - if_blocks[current_block_type_index].p(ctx, dirty); - } else { - group_outros(); - transition_out(if_blocks[previous_block_index], 1, 1, () => { - if_blocks[previous_block_index] = null; - }); - check_outros(); - if_block0 = if_blocks[current_block_type_index]; - if (!if_block0) { - if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx); - if_block0.c(); - } else { - if_block0.p(ctx, dirty); - } - transition_in(if_block0, 1); - if_block0.m(div0, t2); - } - const edgefieldselector0_changes = {}; - if (dirty[0] & /*settings*/ - 2) - edgefieldselector0_changes.fields = /*settings*/ - ctx[1].edge_fields; - edgefieldselector0.$set(edgefieldselector0_changes); - const edgefieldselector1_changes = {}; - if (dirty[0] & /*settings*/ - 2) - edgefieldselector1_changes.fields = /*settings*/ - ctx[1].edge_fields; - if (dirty[0] & /*settings, transitives, filter*/ - 14) - edgefieldselector1_changes.field = /*settings*/ - ctx[1].edge_fields.find(func_2); - edgefieldselector1.$set(edgefieldselector1_changes); - if (dirty[0] & /*transitives, filter*/ - 12) { - input0.checked = /*rule*/ - ctx[25].close_reversed; - } - if (!current || dirty[0] & /*transitives, filter*/ - 12 && input1_value_value !== (input1_value_value = /*rule*/ - ctx[25].rounds) && input1.value !== input1_value_value) { - input1.value = input1_value_value; - } - if (!current || dirty[0] & /*transitives, filter*/ - 12 && input2_value_value !== (input2_value_value = /*rule*/ - ctx[25].name) && input2.value !== input2_value_value) { - input2.value = input2_value_value; - } - if ( - /*opens*/ - ctx[4][ - /*rule_i*/ - ctx[26] - ] - ) { - if (if_block1) { - if_block1.p(ctx, dirty); - if (dirty[0] & /*opens, transitives, filter*/ - 28) { - transition_in(if_block1, 1); - } - } else { - if_block1 = create_if_block4(ctx); - if_block1.c(); - transition_in(if_block1, 1); - if_block1.m(div6, null); - } - } else if (if_block1) { - group_outros(); - transition_out(if_block1, 1, 1, () => { - if_block1 = null; - }); - check_outros(); - } - }, - i(local) { - if (current) - return; - transition_in(if_block0); - transition_in(edgefieldselector0.$$.fragment, local); - transition_in(edgefieldselector1.$$.fragment, local); - transition_in(if_block1); - current = true; - }, - o(local) { - transition_out(if_block0); - transition_out(edgefieldselector0.$$.fragment, local); - transition_out(edgefieldselector1.$$.fragment, local); - transition_out(if_block1); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div6); - } - if_blocks[current_block_type_index].d(); - destroy_component(edgefieldselector0); - destroy_component(edgefieldselector1); - if (if_block1) - if_block1.d(); - mounted = false; - run_all(dispose); - } - }; -} -function create_each_block4(key_1, ctx) { - let details; - let summary; - let div0; - let chevronopener; - let t0; - let code; - let t1_value = ( - /*name*/ - ctx[27] + "" - ); - let t1; - let t2; - let div1; - let button0; - let arrowup; - let button0_disabled_value; - let t3; - let button1; - let arrowdown; - let button1_disabled_value; - let t4; - let button2; - let clipboardicon; - let t5; - let button3; - let t7; - let previous_key = ( - /*rule*/ - ctx[25] - ); - let details_id_value; - let current; - let mounted; - let dispose; - chevronopener = new ChevronOpener_default({ - props: { - open: ( - /*opens*/ - ctx[4][ - /*rule_i*/ - ctx[26] - ] - ) - } - }); - arrowup = new arrow_up_default({ props: { size: ICON_SIZE } }); - function click_handler_2() { - return ( - /*click_handler_2*/ - ctx[12]( - /*rule_i*/ - ctx[26] - ) - ); - } - arrowdown = new arrow_down_default({ props: { size: ICON_SIZE } }); - function click_handler_3() { - return ( - /*click_handler_3*/ - ctx[13]( - /*rule_i*/ - ctx[26] - ) - ); - } - clipboardicon = new clipboard_default({ props: { size: ICON_SIZE } }); - function click_handler_4() { - return ( - /*click_handler_4*/ - ctx[14]( - /*rule_i*/ - ctx[26] - ) - ); - } - function click_handler_5() { - return ( - /*click_handler_5*/ - ctx[15]( - /*rule_i*/ - ctx[26] - ) - ); - } - let key_block = create_key_block2(ctx); - function details_toggle_handler() { - ctx[24].call( - details, - /*rule_i*/ - ctx[26] - ); - } - return { - key: key_1, - first: null, - c() { - details = element("details"); - summary = element("summary"); - div0 = element("div"); - create_component(chevronopener.$$.fragment); - t0 = space(); - code = element("code"); - t1 = text(t1_value); - t2 = space(); - div1 = element("div"); - button0 = element("button"); - create_component(arrowup.$$.fragment); - t3 = space(); - button1 = element("button"); - create_component(arrowdown.$$.fragment); - t4 = space(); - button2 = element("button"); - create_component(clipboardicon.$$.fragment); - t5 = space(); - button3 = element("button"); - button3.textContent = "X"; - t7 = space(); - key_block.c(); - attr(div0, "class", "flex items-center gap-2"); - button0.disabled = button0_disabled_value = /*rule_i*/ - ctx[26] === 0; - button1.disabled = button1_disabled_value = /*rule_i*/ - ctx[26] === /*transitives*/ - ctx[3].length - 1; - attr(button2, "aria-label", "Copy Transitive Implied Relation"); - attr(button3, "aria-label", "Delete Transitive Implied Relation"); - attr(div1, "class", "flex gap-1"); - attr(summary, "class", "flex items-center justify-between gap-2"); - attr(details, "id", details_id_value = /*actions*/ - ctx[5].make_id( - /*rule_i*/ - ctx[26] - )); - attr(details, "class", "scroll-mt-40 border p-2 svelte-91sdw2"); - this.first = details; - }, - m(target, anchor) { - insert(target, details, anchor); - append(details, summary); - append(summary, div0); - mount_component(chevronopener, div0, null); - append(div0, t0); - append(div0, code); - append(code, t1); - append(summary, t2); - append(summary, div1); - append(div1, button0); - mount_component(arrowup, button0, null); - append(div1, t3); - append(div1, button1); - mount_component(arrowdown, button1, null); - append(div1, t4); - append(div1, button2); - mount_component(clipboardicon, button2, null); - append(div1, t5); - append(div1, button3); - append(details, t7); - key_block.m(details, null); - details.open = /*opens*/ - ctx[4][ - /*rule_i*/ - ctx[26] - ]; - current = true; - if (!mounted) { - dispose = [ - listen(button0, "click", click_handler_2), - listen(button1, "click", click_handler_3), - listen(button2, "click", click_handler_4), - listen(button3, "click", click_handler_5), - listen(details, "toggle", details_toggle_handler) - ]; - mounted = true; - } - }, - p(new_ctx, dirty) { - ctx = new_ctx; - const chevronopener_changes = {}; - if (dirty[0] & /*opens, transitives, filter*/ - 28) - chevronopener_changes.open = /*opens*/ - ctx[4][ - /*rule_i*/ - ctx[26] - ]; - chevronopener.$set(chevronopener_changes); - if ((!current || dirty[0] & /*transitives, filter*/ - 12) && t1_value !== (t1_value = /*name*/ - ctx[27] + "")) - set_data(t1, t1_value); - if (!current || dirty[0] & /*transitives, filter*/ - 12 && button0_disabled_value !== (button0_disabled_value = /*rule_i*/ - ctx[26] === 0)) { - button0.disabled = button0_disabled_value; - } - if (!current || dirty[0] & /*transitives, filter*/ - 12 && button1_disabled_value !== (button1_disabled_value = /*rule_i*/ - ctx[26] === /*transitives*/ - ctx[3].length - 1)) { - button1.disabled = button1_disabled_value; - } - if (dirty[0] & /*transitives, filter*/ - 12 && safe_not_equal(previous_key, previous_key = /*rule*/ - ctx[25])) { - group_outros(); - transition_out(key_block, 1, 1, noop); - check_outros(); - key_block = create_key_block2(ctx); - key_block.c(); - transition_in(key_block, 1); - key_block.m(details, null); - } else { - key_block.p(ctx, dirty); - } - if (!current || dirty[0] & /*transitives, filter*/ - 12 && details_id_value !== (details_id_value = /*actions*/ - ctx[5].make_id( - /*rule_i*/ - ctx[26] - ))) { - attr(details, "id", details_id_value); - } - if (dirty[0] & /*opens, transitives, filter*/ - 28) { - details.open = /*opens*/ - ctx[4][ - /*rule_i*/ - ctx[26] - ]; - } - }, - i(local) { - if (current) - return; - transition_in(chevronopener.$$.fragment, local); - transition_in(arrowup.$$.fragment, local); - transition_in(arrowdown.$$.fragment, local); - transition_in(clipboardicon.$$.fragment, local); - transition_in(key_block); - current = true; - }, - o(local) { - transition_out(chevronopener.$$.fragment, local); - transition_out(arrowup.$$.fragment, local); - transition_out(arrowdown.$$.fragment, local); - transition_out(clipboardicon.$$.fragment, local); - transition_out(key_block); - current = false; - }, - d(detaching) { - if (detaching) { - detach(details); - } - destroy_component(chevronopener); - destroy_component(arrowup); - destroy_component(arrowdown); - destroy_component(clipboardicon); - key_block.d(detaching); - mounted = false; - run_all(dispose); - } - }; -} -function create_fragment27(ctx) { - let div4; - let p0; - let t0; - let em; - let t2; - let code0; - let t5; - let t6; - let div1; - let button0; - let saveicon; - let t7; - let t8; - let div0; - let input; - let t9; - let button1; - let t10; - let button1_disabled_value; - let t11; - let t12; - let t13; - let div3; - let each_blocks = []; - let each_1_lookup = /* @__PURE__ */ new Map(); - let t14; - let button2; - let plusicon; - let t15; - let t16; - let details; - let summary; - let t18; - let div2; - let p1; - let t22; - let textarea; - let t23; - let button3; - let current; - let mounted; - let dispose; - saveicon = new save_default({ props: { size: ICON_SIZE } }); - let if_block0 = ( - /*transitives*/ - ctx[3].length > 3 && create_if_block_32(ctx) - ); - let if_block1 = ( - /*settings*/ - ctx[1].is_dirty && create_if_block_22(ctx) - ); - let each_value = ensure_array_like( - /*transitives*/ - ctx[3].map( - /*func*/ - ctx[10] - ).filter( - /*func_1*/ - ctx[11] - ) - ); - const get_key = (ctx2) => ( - /*name*/ - ctx2[27] + /*rule_i*/ - ctx2[26] - ); - for (let i = 0; i < each_value.length; i += 1) { - let child_ctx = get_each_context4(ctx, each_value, i); - let key = get_key(child_ctx); - each_1_lookup.set(key, each_blocks[i] = create_each_block4(key, child_ctx)); - } - plusicon = new plus_default({ props: { size: ICON_SIZE } }); - return { - c() { - div4 = element("div"); - p0 = element("p"); - t0 = text("Transitive implied relations represent "); - em = element("em"); - em.textContent = "chains"; - t2 = text(' of your\n Breadcrumbs fields that collapse into a single field. For example, if\n you have the fields: "spouse", "sibling", and "sibling-in-law", you can\n add the transitive chain\n '); - code0 = element("code"); - code0.textContent = `${stringify_transitive_relation({ - close_reversed: false, - close_field: "sibling-in-law", - chain: [{ field: "spouse" }, { field: "sibling" }] - })} `; - t5 = text(". In other words, your spouse's sibling is your sibling-in-law."); - t6 = space(); - div1 = element("div"); - button0 = element("button"); - create_component(saveicon.$$.fragment); - t7 = text("\n Save"); - t8 = space(); - div0 = element("div"); - input = element("input"); - t9 = space(); - button1 = element("button"); - t10 = text("X"); - t11 = space(); - if (if_block0) - if_block0.c(); - t12 = space(); - if (if_block1) - if_block1.c(); - t13 = space(); - div3 = element("div"); - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].c(); - } - t14 = space(); - button2 = element("button"); - create_component(plusicon.$$.fragment); - t15 = text("\n Add New Transitive Implied Relation"); - t16 = space(); - details = element("details"); - summary = element("summary"); - summary.textContent = "Bulk Add Rules (Advanced)"; - t18 = space(); - div2 = element("div"); - p1 = element("p"); - p1.innerHTML = `Quickly add multiple rules using the shorthand syntax: [field-one, field-two] -> close-field - . Each rule should be on a new line.`; - t22 = space(); - textarea = element("textarea"); - t23 = space(); - button3 = element("button"); - button3.textContent = "Bulk Add"; - attr(button0, "class", "flex items-center gap-1"); - attr(input, "type", "text"); - attr(input, "placeholder", "Filter Rules by Name"); - attr(button1, "class", "w-8"); - attr(button1, "aria-label", "Clear Filter"); - button1.disabled = button1_disabled_value = /*filter*/ - ctx[2] === ""; - attr(div0, "class", "flex gap-1"); - attr(div1, "class", "my-2 flex items-center gap-2"); - attr(button2, "class", "flex items-center gap-1"); - attr(textarea, "id", "BC-transitive-bulk-str"); - attr(textarea, "class", "h-32 w-60"); - attr(textarea, "placeholder", "[up] <- down"); - attr(button3, "class", "w-60"); - attr(div2, "class", "flex flex-col gap-1"); - attr(div3, "class", "flex flex-col gap-3"); - attr(div4, "class", "BC-custom-transitive-implied-relations"); - }, - m(target, anchor) { - insert(target, div4, anchor); - append(div4, p0); - append(p0, t0); - append(p0, em); - append(p0, t2); - append(p0, code0); - append(p0, t5); - append(div4, t6); - append(div4, div1); - append(div1, button0); - mount_component(saveicon, button0, null); - append(button0, t7); - append(div1, t8); - append(div1, div0); - append(div0, input); - set_input_value( - input, - /*filter*/ - ctx[2] - ); - append(div0, t9); - append(div0, button1); - append(button1, t10); - append(div1, t11); - if (if_block0) - if_block0.m(div1, null); - append(div1, t12); - if (if_block1) - if_block1.m(div1, null); - append(div4, t13); - append(div4, div3); - for (let i = 0; i < each_blocks.length; i += 1) { - if (each_blocks[i]) { - each_blocks[i].m(div3, null); - } - } - append(div3, t14); - append(div3, button2); - mount_component(plusicon, button2, null); - append(button2, t15); - append(div3, t16); - append(div3, details); - append(details, summary); - append(details, t18); - append(details, div2); - append(div2, p1); - append(div2, t22); - append(div2, textarea); - append(div2, t23); - append(div2, button3); - current = true; - if (!mounted) { - dispose = [ - listen( - button0, - "click", - /*actions*/ - ctx[5].save - ), - listen( - input, - "input", - /*input_input_handler*/ - ctx[7] - ), - listen( - button1, - "click", - /*click_handler*/ - ctx[8] - ), - listen( - button2, - "click", - /*actions*/ - ctx[5].add_transitive - ), - listen( - button3, - "click", - /*actions*/ - ctx[5].add_bulk - ) - ]; - mounted = true; - } - }, - p(ctx2, dirty) { - if (dirty[0] & /*filter*/ - 4 && input.value !== /*filter*/ - ctx2[2]) { - set_input_value( - input, - /*filter*/ - ctx2[2] - ); - } - if (!current || dirty[0] & /*filter*/ - 4 && button1_disabled_value !== (button1_disabled_value = /*filter*/ - ctx2[2] === "")) { - button1.disabled = button1_disabled_value; - } - if ( - /*transitives*/ - ctx2[3].length > 3 - ) { - if (if_block0) { - if_block0.p(ctx2, dirty); - if (dirty[0] & /*transitives*/ - 8) { - transition_in(if_block0, 1); - } - } else { - if_block0 = create_if_block_32(ctx2); - if_block0.c(); - transition_in(if_block0, 1); - if_block0.m(div1, t12); - } - } else if (if_block0) { - group_outros(); - transition_out(if_block0, 1, 1, () => { - if_block0 = null; - }); - check_outros(); - } - if ( - /*settings*/ - ctx2[1].is_dirty - ) { - if (if_block1) { - } else { - if_block1 = create_if_block_22(ctx2); - if_block1.c(); - if_block1.m(div1, null); - } - } else if (if_block1) { - if_block1.d(1); - if_block1 = null; - } - if (dirty[0] & /*actions, transitives, filter, opens, plugin, settings, context_menus*/ - 127) { - each_value = ensure_array_like( - /*transitives*/ - ctx2[3].map( - /*func*/ - ctx2[10] - ).filter( - /*func_1*/ - ctx2[11] - ) - ); - group_outros(); - each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx2, each_value, each_1_lookup, div3, outro_and_destroy_block, create_each_block4, t14, get_each_context4); - check_outros(); - } - }, - i(local) { - if (current) - return; - transition_in(saveicon.$$.fragment, local); - transition_in(if_block0); - for (let i = 0; i < each_value.length; i += 1) { - transition_in(each_blocks[i]); - } - transition_in(plusicon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(saveicon.$$.fragment, local); - transition_out(if_block0); - for (let i = 0; i < each_blocks.length; i += 1) { - transition_out(each_blocks[i]); - } - transition_out(plusicon.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div4); - } - destroy_component(saveicon); - if (if_block0) - if_block0.d(); - if (if_block1) - if_block1.d(); - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].d(); - } - destroy_component(plusicon); - mounted = false; - run_all(dispose); - } - }; -} -function instance27($$self, $$props, $$invalidate) { - let { plugin } = $$props; - const settings = plugin.settings; - let filter = ""; - let transitives = [...settings.implied_relations.transitive]; - const opens = transitives.map(() => false); - const actions = { - save: () => __awaiter(void 0, void 0, void 0, function* () { - for (const { close_field } of transitives) { - if (!close_field) { - return new import_obsidian10.Notice("Closing field cannot be empty."); - } - } - $$invalidate(1, settings.implied_relations.transitive = transitives, settings); - yield Promise.all([plugin.saveSettings(), plugin.refresh({ redraw_side_views: true })]); - $$invalidate(0, plugin); - }), - make_id: (rule_i) => `BC-transitive-rule-${rule_i}`, - scroll_to: (rule_i) => { - var _a; - return (_a = document.getElementById(actions.make_id(rule_i))) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ behavior: "smooth" }); - }, - add_transitive: () => { - const new_length = transitives.push({ - name: "", - chain: [], - // NOTE: Max by default, users can lower if needed - // It seems to fit with intuition that the implied relations just keep going - rounds: 10, - close_reversed: false, - close_field: settings.edge_fields[0].label - }); - $$invalidate(4, opens[new_length - 1] = true, opens); - setTimeout(() => actions.scroll_to(new_length - 1), 0); - $$invalidate(3, transitives); - $$invalidate(1, settings.is_dirty = true, settings); - }, - add_bulk: () => { - const textarea = document.getElementById("BC-transitive-bulk-str"); - if (!textarea) - return new import_obsidian10.Notice("Could not find textarea."); - const value = textarea.value.trim(); - if (!value) - return new import_obsidian10.Notice("No rules to parse."); - const lines = split_and_trim(value, "\n").filter(Boolean); - const parsed = lines.map(parse_transitive_relation).filter((r) => r.ok); - if (parsed.length !== lines.length) { - return new import_obsidian10.Notice("Some rules could not be parsed. Ensure you're using the correct syntax of `[field-one, field-two] -> close-field`, with each rule of a new line."); - } - const validated = parsed.map((r) => input_transitive_rule_schema({ fields: plugin.settings.edge_fields }).safeParse(r.data)); - const validation_errors = validated.filter((r) => !r.success); - if (validation_errors.length) { - log.error("Bulk-add transitive rule errors >", validation_errors.map((r) => { - var _a; - return r.success ? null : (_a = r.error) === null || _a === void 0 ? void 0 : _a.issues; - })); - return new import_obsidian10.Notice("Some rules could not be parsed. Check the logs for more information."); - } - validated.forEach((r) => { - if (r.success) { - transitives.push(Object.assign(Object.assign({}, r.data), { name: "", rounds: 10 })); - } - }); - new import_obsidian10.Notice(`Bulk added ${validated.length} rules \u2705`); - $$invalidate(3, transitives); - $$invalidate(1, settings.is_dirty = true, settings); - }, - copy_transitive: (i) => { - const new_length = transitives.push(Object.assign(Object.assign({}, transitives[i]), { - name: `${get_transitive_rule_name(transitives[i])} (copy)` - })); - $$invalidate(4, opens[new_length - 1] = true, opens); - setTimeout(() => actions.scroll_to(new_length - 1), 0); - $$invalidate(3, transitives); - $$invalidate(1, settings.is_dirty = true, settings); - }, - remove_transitive: (i) => { - $$invalidate(3, transitives = transitives.filter((_, j) => j !== i)); - $$invalidate(1, settings.is_dirty = true, settings); - }, - rename_transitive: (i, new_name) => { - if (transitives[i].name === new_name) - return; - $$invalidate(3, transitives[i].name = new_name, transitives); - $$invalidate(3, transitives); - $$invalidate(1, settings.is_dirty = true, settings); - }, - reorder_transitive: (i, j) => { - const temp = transitives[i]; - $$invalidate(3, transitives[i] = transitives[j], transitives); - $$invalidate(3, transitives[j] = temp, transitives); - $$invalidate(3, transitives); - $$invalidate(1, settings.is_dirty = true, settings); - }, - add_chain_field: (i, field) => { - if (!field) - return; - transitives[i].chain.push({ field: field.label }); - $$invalidate(3, transitives); - $$invalidate(1, settings.is_dirty = true, settings); - }, - remove_chain_field: (i, j) => { - $$invalidate(3, transitives[i].chain = transitives[i].chain.filter((_, k) => k !== j), transitives); - $$invalidate(3, transitives); - $$invalidate(1, settings.is_dirty = true, settings); - }, - set_close_field: (i, field) => { - if (!field) - return; - $$invalidate(3, transitives[i].close_field = field.label, transitives); - $$invalidate(3, transitives); - $$invalidate(1, settings.is_dirty = true, settings); - }, - set_rounds: (i, rounds) => { - if (isNaN(rounds) || rounds < 0) - return; - $$invalidate(3, transitives[i].rounds = rounds, transitives); - $$invalidate(3, transitives); - $$invalidate(1, settings.is_dirty = true, settings); - }, - set_close_reversed: (i, reversed) => { - $$invalidate(3, transitives[i].close_reversed = reversed, transitives); - $$invalidate(3, transitives); - $$invalidate(1, settings.is_dirty = true, settings); - } - }; - const context_menus = { - chain_field: (rule_i, attr_i) => (e) => { - const menu = new import_obsidian10.Menu(); - menu.addItem((item) => item.setTitle("Remove Field").setIcon("x").onClick(() => actions.remove_chain_field(rule_i, attr_i))); - menu.showAtMouseEvent(e); - } - }; - function input_input_handler() { - filter = this.value; - $$invalidate(2, filter); - } - const click_handler = () => $$invalidate(2, filter = ""); - const click_handler_1 = () => actions.scroll_to(transitives.length - 1); - const func = (rule, rule_i) => ({ - rule, - rule_i, - name: get_transitive_rule_name(rule) - }); - const func_1 = (r) => r.name.includes(filter.toLowerCase()); - const click_handler_2 = (rule_i) => actions.reorder_transitive(rule_i, rule_i - 1); - const click_handler_3 = (rule_i) => actions.reorder_transitive(rule_i, rule_i + 1); - const click_handler_4 = (rule_i) => actions.copy_transitive(rule_i); - const click_handler_5 = (rule_i) => actions.remove_transitive(rule_i); - const select_handler = (rule_i, e) => actions.add_chain_field(rule_i, e.detail); - const func_2 = (rule, f) => f.label === rule.close_field; - const select_handler_1 = (rule_i, e) => actions.set_close_field(rule_i, e.detail); - function input0_change_handler(each_value, each_index) { - each_value[each_index].rule.close_reversed = this.checked; - $$invalidate(3, transitives); - $$invalidate(2, filter); - } - const click_handler_6 = (rule_i, e) => actions.set_close_reversed(rule_i, e.currentTarget.checked); - const blur_handler = (rule_i, e) => actions.set_rounds(rule_i, +e.currentTarget.value); - const blur_handler_1 = (rule_i, e) => actions.rename_transitive(rule_i, e.currentTarget.value); - const click_handler_7 = (rule_i) => actions.rename_transitive(rule_i, ""); - function details_toggle_handler(rule_i) { - opens[rule_i] = this.open; - $$invalidate(4, opens); - } - $$self.$$set = ($$props2) => { - if ("plugin" in $$props2) - $$invalidate(0, plugin = $$props2.plugin); - }; - return [ - plugin, - settings, - filter, - transitives, - opens, - actions, - context_menus, - input_input_handler, - click_handler, - click_handler_1, - func, - func_1, - click_handler_2, - click_handler_3, - click_handler_4, - click_handler_5, - select_handler, - func_2, - select_handler_1, - input0_change_handler, - click_handler_6, - blur_handler, - blur_handler_1, - click_handler_7, - details_toggle_handler - ]; -} -var TransitiveImpliedRelations = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance27, create_fragment27, safe_not_equal, { plugin: 0 }, add_css, [-1, -1]); - } -}; -var TransitiveImpliedRelations_default = TransitiveImpliedRelations; - -// src/settings/ShowNodeOptions.ts -var import_obsidian11 = require("obsidian"); -var _add_settings_show_node_options = (plugin, containerEl, cb, options) => { - let show_node_options = cb.get(); - const setting = new import_obsidian11.Setting(containerEl).setName("Note display options").setDesc("How to display note links"); - setting.controlEl.addClasses(["flex", "flex-wrap", "gap-2"]); - setting.addToggle((toggle) => { - toggle.toggleEl.before("Folder"); - toggle.setTooltip("Folder path").setValue(show_node_options.folder).onChange(async (value) => { - show_node_options.folder = value; - cb.set(show_node_options); - if ((options == null ? void 0 : options.save_and_refresh) !== false) { - await Promise.all([plugin.saveSettings()]); - plugin.refresh({ rebuild_graph: false }); - } - }); - }); - setting.addToggle((toggle) => { - toggle.toggleEl.before("Extension"); - toggle.setTooltip("File extension").setValue(show_node_options.ext).onChange(async (value) => { - show_node_options.ext = value; - cb.set(show_node_options); - if ((options == null ? void 0 : options.save_and_refresh) !== false) { - await Promise.all([plugin.saveSettings()]); - plugin.refresh({ rebuild_graph: false }); - } - }); - }); - setting.addToggle((toggle) => { - toggle.toggleEl.before("Alias"); - toggle.setTooltip("Alias (first alias, if available)").setValue(show_node_options.alias).onChange(async (value) => { - show_node_options.alias = value; - cb.set(show_node_options); - if ((options == null ? void 0 : options.save_and_refresh) !== false) { - await Promise.all([plugin.saveSettings()]); - plugin.refresh({ rebuild_graph: false }); - } - }); - }); - return setting; -}; - -// src/settings/CodeblockSettings.ts -var _add_settings_codeblocks = (plugin, containerEl) => { - _add_settings_show_node_options(plugin, containerEl, { - get: () => plugin.settings.views.codeblocks.show_node_options, - set: (value) => plugin.settings.views.codeblocks.show_node_options = value - }); -}; - -// src/settings/DateNoteSettings.ts -var import_obsidian13 = require("obsidian"); - -// src/utils/settings.ts -var import_obsidian12 = require("obsidian"); -var new_setting = (container_el, config) => { - const setting = new import_obsidian12.Setting(container_el); - if (config.name) - setting.setName(config.name); - if (config.desc) - setting.setDesc(config.desc); - if (config.toggle) { - setting.addToggle((toggle) => { - toggle.setValue(config.toggle.value).onChange(config.toggle.cb); - }); - } else if (config.input) { - setting.addText((text2) => { - var _a; - if ((_a = config.input) == null ? void 0 : _a.placeholder) { - text2.setPlaceholder(config.input.placeholder); - } - text2.setValue(config.input.value); - text2.inputEl.onblur = () => { - config.input.cb(text2.getValue()); - }; - }); - } else if (config.select) { - setting.addDropdown((dropdown) => { - const options = Array.isArray(config.select.options) ? config.select.options.reduce( - (acc, option) => { - acc[option] = option; - return acc; - }, - {} - ) : config.select.options; - dropdown.addOptions(options).setValue(config.select.value).onChange(config.select.cb); - }); - } else if (config.checklist) { - const checklist_el = setting.controlEl.createEl("div", { - attr: { class: "flex flex-wrap gap-3" } - }); - let state = { ...config.checklist.options }; - Object.keys(config.checklist.options).forEach((key) => { - const attr2 = { type: "checkbox" }; - if (config.checklist.options[key]) - attr2.checked = true; - checklist_el.createEl("label", { - text: key, - cls: "flex items-center gap-1.5 grow" - }).createEl("input", { attr: attr2 }, (el) => { - el.classList.add("shrink"); - el.onchange = (e) => { - if (!(e.target instanceof HTMLInputElement)) - return; - state[key] = e.target.checked; - config.checklist.cb(state); - }; - }); - }); - } - return setting; -}; - -// src/settings/DateNoteSettings.ts -var _add_settings_date_note = (plugin, containerEl) => { - new_setting(containerEl, { - name: "Enabled", - desc: "Look for date notes to use as edge sources", - toggle: { - value: plugin.settings.explicit_edge_sources.date_note.enabled, - cb: async (value) => { - plugin.settings.explicit_edge_sources.date_note.enabled = value; - await Promise.all([plugin.refresh(), plugin.saveSettings()]); - } - } - }); - new_setting(containerEl, { - name: "Default Field", - desc: "Field used to join date notes together. Breadcrumbs takes the current note's date, adds one day, and joins the two notes with this field.", - select: { - value: plugin.settings.explicit_edge_sources.date_note.default_field, - options: plugin.settings.edge_fields.map((f) => f.label), - cb: async (value) => { - plugin.settings.explicit_edge_sources.date_note.default_field = value; - await Promise.all([plugin.refresh(), plugin.saveSettings()]); - } - } - }); - const date_format_fragment = new DocumentFragment(); - date_format_fragment.createEl( - "span", - {}, - (el) => el.innerHTML = `Luxon date format to use` - ); - new_setting(containerEl, { - name: "Date Format", - desc: date_format_fragment, - input: { - value: plugin.settings.explicit_edge_sources.date_note.date_format, - cb: async (value) => { - if (!value) - new import_obsidian13.Notice("Date format cannot be empty"); - else { - plugin.settings.explicit_edge_sources.date_note.date_format = value; - await Promise.all([ - plugin.refresh(), - plugin.saveSettings() - ]); - } - } - } - }); - new_setting(containerEl, { - name: "Stretch to Existing", - desc: "If there is a gap from one day to another, should the next note be the unresolved one in one day or should it 'stretch' to the next resolved (existing) note?", - toggle: { - value: plugin.settings.explicit_edge_sources.date_note.stretch_to_existing, - cb: async (value) => { - plugin.settings.explicit_edge_sources.date_note.stretch_to_existing = value; - await Promise.all([plugin.refresh(), plugin.saveSettings()]); - } - } - }); -}; - -// src/settings/DebugSettings.ts -var _add_settings_debug = (plugin, containerEl) => { - new_setting(containerEl, { - name: "Debug Level", - desc: "Set the level of debug logging", - select: { - options: LOG_LEVELS, - value: plugin.settings.debug.level, - cb: async (value) => { - log.set_level(value); - plugin.settings.debug.level = value; - await plugin.saveSettings(); - } - } - }); -}; - -// src/settings/DendronNoteSettings.ts -var import_obsidian14 = require("obsidian"); -var _add_settings_dendron_note = (plugin, containerEl) => { - new_setting(containerEl, { - name: "Enabled", - desc: "Look for dendron notes to use as edge sources", - toggle: { - value: plugin.settings.explicit_edge_sources.dendron_note.enabled, - cb: async (value) => { - plugin.settings.explicit_edge_sources.dendron_note.enabled = value; - await Promise.all([plugin.refresh(), plugin.saveSettings()]); - } - } - }); - new_setting(containerEl, { - name: "Delimiter", - desc: "Delimiter to use to split the note name", - input: { - value: plugin.settings.explicit_edge_sources.dendron_note.delimiter, - cb: async (value) => { - if (!value) - new import_obsidian14.Notice("Delimiter cannot be empty"); - else { - plugin.settings.explicit_edge_sources.dendron_note.delimiter = value; - await Promise.all([ - plugin.refresh(), - plugin.saveSettings() - ]); - } - } - } - }); - new_setting(containerEl, { - name: "Default Field", - desc: "Field to use if the BC-dendron-note-field is not specified", - select: { - value: plugin.settings.explicit_edge_sources.dendron_note.default_field, - options: plugin.settings.edge_fields.map((f) => f.label), - cb: async (value) => { - plugin.settings.explicit_edge_sources.dendron_note.default_field = value; - await Promise.all([plugin.refresh(), plugin.saveSettings()]); - } - } - }); - new_setting(containerEl, { - name: "Display Trimmed", - desc: "Display Dendron note names as the right-most split of the delimiter. e.g. `a.b.c` -> `c`", - toggle: { - value: plugin.settings.explicit_edge_sources.dendron_note.display_trimmed, - cb: async (value) => { - plugin.settings.explicit_edge_sources.dendron_note.display_trimmed = value; - await Promise.all([plugin.refresh(), plugin.saveSettings()]); - } - } - }); -}; - -// src/settings/EdgeFieldSuggestorSettings.ts -var import_obsidian15 = require("obsidian"); -var _add_settings_edge_field_suggestor = (plugin, contentEl) => { - const { settings } = plugin; - new_setting(contentEl, { - name: "Enabled", - desc: "Whether to enable the edge field suggestor", - toggle: { - value: settings.suggestors.edge_field.enabled, - cb: async (value) => { - settings.suggestors.edge_field.enabled = value; - if (value) { - new import_obsidian15.Notice( - "Please restart Obsidian for the changes to take effect" - ); - } - await plugin.saveSettings(); - } - } - }); - new_setting(contentEl, { - name: "Trigger String", - desc: "The string that triggers the suggestor (when entered at the start of a line)", - input: { - value: settings.suggestors.edge_field.trigger, - cb: async (value) => { - if (!value) { - new import_obsidian15.Notice("Trigger string cannot be empty"); - return; - } - settings.suggestors.edge_field.trigger = value; - await plugin.saveSettings(); - } - } - }); -}; - -// src/settings/FreezeImpliedEdgesSettings.ts -var _add_settings_freeze_implied_edges = (plugin, contentEl) => { - const { settings } = plugin; - new_setting(contentEl, { - name: "Destination", - desc: "Where to write the frozen edges to", - select: { - options: ["frontmatter", "dataview-inline"], - value: settings.commands.freeze_implied_edges.default_options.destination, - cb: async (value) => { - settings.commands.freeze_implied_edges.default_options.destination = value; - await plugin.saveSettings(); - } - } - }); -}; - -// src/settings/GridSettings.ts -var import_obsidian17 = require("obsidian"); - -// src/menus/FieldGroupsSelector.ts -var import_obsidian16 = require("obsidian"); -var FieldGroupsSelectorMenu = ({ - cb, - value, - edge_field_groups -}) => { - const menu = new import_obsidian16.Menu(); - const checks = edge_field_groups.map( - (group) => value.includes(group.label) - ); - const all_checked = checks.every((check) => check); - menu.addItem( - (item) => item.setTitle(all_checked ? "None" : "All").onClick(() => { - value = all_checked ? [] : edge_field_groups.map((group) => group.label); - cb(value); - }) - ); - menu.addSeparator(); - edge_field_groups.forEach((group, group_i) => { - const checked = checks[group_i]; - menu.addItem( - (item) => item.setTitle(group.label).setChecked(checked).onClick(() => { - if (checked) { - value = value.filter((label) => label !== group.label); - } else { - value.push(group.label); - } - cb(value); - }) - ); - }); - return menu; -}; - -// src/components/selector/FieldGroupLabelsSelector.svelte -function create_fragment28(ctx) { - let button; - let groupicon; - let current; - let mounted; - let dispose; - groupicon = new group_default({ props: { size: ICON_SIZE } }); - return { - c() { - button = element("button"); - create_component(groupicon.$$.fragment); - attr( - button, - "class", - /*cls*/ - ctx[1] - ); - attr(button, "aria-label", "Choose edge field groups"); - }, - m(target, anchor) { - insert(target, button, anchor); - mount_component(groupicon, button, null); - current = true; - if (!mounted) { - dispose = listen( - button, - "click", - /*click_handler*/ - ctx[3] - ); - mounted = true; - } - }, - p(ctx2, [dirty]) { - if (!current || dirty & /*cls*/ - 2) { - attr( - button, - "class", - /*cls*/ - ctx2[1] - ); - } - }, - i(local) { - if (current) - return; - transition_in(groupicon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(groupicon.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(button); - } - destroy_component(groupicon); - mounted = false; - dispose(); - } - }; -} -function instance28($$self, $$props, $$invalidate) { - let { cls = "" } = $$props; - let { field_group_labels } = $$props; - let { edge_field_groups } = $$props; - const click_handler = (e) => { - FieldGroupsSelectorMenu({ - edge_field_groups, - value: field_group_labels, - cb: (value) => $$invalidate(0, field_group_labels = value) - }).showAtMouseEvent(e); - }; - $$self.$$set = ($$props2) => { - if ("cls" in $$props2) - $$invalidate(1, cls = $$props2.cls); - if ("field_group_labels" in $$props2) - $$invalidate(0, field_group_labels = $$props2.field_group_labels); - if ("edge_field_groups" in $$props2) - $$invalidate(2, edge_field_groups = $$props2.edge_field_groups); - }; - return [field_group_labels, cls, edge_field_groups, click_handler]; -} -var FieldGroupLabelsSelector = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance28, create_fragment28, safe_not_equal, { - cls: 1, - field_group_labels: 0, - edge_field_groups: 2 - }); - } -}; -var FieldGroupLabelsSelector_default = FieldGroupLabelsSelector; - -// src/components/settings/SettingItem.svelte -function create_fragment29(ctx) { - let div4; - let div2; - let div0; - let t0; - let t1; - let div1; - let t2; - let t3; - let div3; - let current; - const default_slot_template = ( - /*#slots*/ - ctx[3].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[2], - null - ); - return { - c() { - div4 = element("div"); - div2 = element("div"); - div0 = element("div"); - t0 = text( - /*name*/ - ctx[0] - ); - t1 = space(); - div1 = element("div"); - t2 = text( - /*description*/ - ctx[1] - ); - t3 = space(); - div3 = element("div"); - if (default_slot) - default_slot.c(); - attr(div0, "class", "setting-item-name"); - attr(div1, "class", "setting-item-description"); - attr(div2, "class", "setting-item-info"); - attr(div3, "class", "setting-item-control"); - attr(div4, "class", "setting-item"); - }, - m(target, anchor) { - insert(target, div4, anchor); - append(div4, div2); - append(div2, div0); - append(div0, t0); - append(div2, t1); - append(div2, div1); - append(div1, t2); - append(div4, t3); - append(div4, div3); - if (default_slot) { - default_slot.m(div3, null); - } - current = true; - }, - p(ctx2, [dirty]) { - if (!current || dirty & /*name*/ - 1) - set_data( - t0, - /*name*/ - ctx2[0] - ); - if (!current || dirty & /*description*/ - 2) - set_data( - t2, - /*description*/ - ctx2[1] - ); - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 4)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[2], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[2] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[2], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div4); - } - if (default_slot) - default_slot.d(detaching); - } - }; -} -function instance29($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - let { name } = $$props; - let { description } = $$props; - $$self.$$set = ($$props2) => { - if ("name" in $$props2) - $$invalidate(0, name = $$props2.name); - if ("description" in $$props2) - $$invalidate(1, description = $$props2.description); - if ("$$scope" in $$props2) - $$invalidate(2, $$scope = $$props2.$$scope); - }; - return [name, description, $$scope, slots]; -} -var SettingItem = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance29, create_fragment29, safe_not_equal, { name: 0, description: 1 }); - } -}; -var SettingItem_default = SettingItem; - -// src/components/settings/FieldGroupLabelsSettingItem.svelte -function create_default_slot20(ctx) { - let fieldgrouplabelsselector; - let updating_field_group_labels; - let current; - function fieldgrouplabelsselector_field_group_labels_binding(value) { - ctx[4](value); - } - let fieldgrouplabelsselector_props = { - edge_field_groups: ( - /*edge_field_groups*/ - ctx[3] - ) - }; - if ( - /*field_group_labels*/ - ctx[0] !== void 0 - ) { - fieldgrouplabelsselector_props.field_group_labels = /*field_group_labels*/ - ctx[0]; - } - fieldgrouplabelsselector = new FieldGroupLabelsSelector_default({ props: fieldgrouplabelsselector_props }); - binding_callbacks.push(() => bind(fieldgrouplabelsselector, "field_group_labels", fieldgrouplabelsselector_field_group_labels_binding)); - return { - c() { - create_component(fieldgrouplabelsselector.$$.fragment); - }, - m(target, anchor) { - mount_component(fieldgrouplabelsselector, target, anchor); - current = true; - }, - p(ctx2, dirty) { - const fieldgrouplabelsselector_changes = {}; - if (dirty & /*edge_field_groups*/ - 8) - fieldgrouplabelsselector_changes.edge_field_groups = /*edge_field_groups*/ - ctx2[3]; - if (!updating_field_group_labels && dirty & /*field_group_labels*/ - 1) { - updating_field_group_labels = true; - fieldgrouplabelsselector_changes.field_group_labels = /*field_group_labels*/ - ctx2[0]; - add_flush_callback(() => updating_field_group_labels = false); - } - fieldgrouplabelsselector.$set(fieldgrouplabelsselector_changes); - }, - i(local) { - if (current) - return; - transition_in(fieldgrouplabelsselector.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(fieldgrouplabelsselector.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(fieldgrouplabelsselector, detaching); - } - }; -} -function create_fragment30(ctx) { - let settingitem; - let current; - settingitem = new SettingItem_default({ - props: { - name: ( - /*name*/ - ctx[1] - ), - description: ( - /*description*/ - ctx[2] - ), - $$slots: { default: [create_default_slot20] }, - $$scope: { ctx } - } - }); - return { - c() { - create_component(settingitem.$$.fragment); - }, - m(target, anchor) { - mount_component(settingitem, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const settingitem_changes = {}; - if (dirty & /*name*/ - 2) - settingitem_changes.name = /*name*/ - ctx2[1]; - if (dirty & /*description*/ - 4) - settingitem_changes.description = /*description*/ - ctx2[2]; - if (dirty & /*$$scope, edge_field_groups, field_group_labels*/ - 73) { - settingitem_changes.$$scope = { dirty, ctx: ctx2 }; - } - settingitem.$set(settingitem_changes); - }, - i(local) { - if (current) - return; - transition_in(settingitem.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(settingitem.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(settingitem, detaching); - } - }; -} -function instance30($$self, $$props, $$invalidate) { - let { name = "Field Groups" } = $$props; - let { description = "Select the field groups to use for this traversal." } = $$props; - let { field_group_labels } = $$props; - let { edge_field_groups } = $$props; - const dispatch = createEventDispatcher(); - function fieldgrouplabelsselector_field_group_labels_binding(value) { - field_group_labels = value; - $$invalidate(0, field_group_labels); - } - $$self.$$set = ($$props2) => { - if ("name" in $$props2) - $$invalidate(1, name = $$props2.name); - if ("description" in $$props2) - $$invalidate(2, description = $$props2.description); - if ("field_group_labels" in $$props2) - $$invalidate(0, field_group_labels = $$props2.field_group_labels); - if ("edge_field_groups" in $$props2) - $$invalidate(3, edge_field_groups = $$props2.edge_field_groups); - }; - $$self.$$.update = () => { - if ($$self.$$.dirty & /*field_group_labels*/ - 1) { - $: - if (field_group_labels) { - dispatch("select", field_group_labels); - } - } - }; - return [ - field_group_labels, - name, - description, - edge_field_groups, - fieldgrouplabelsselector_field_group_labels_binding - ]; -} -var FieldGroupLabelsSettingItem = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance30, create_fragment30, safe_not_equal, { - name: 1, - description: 2, - field_group_labels: 0, - edge_field_groups: 3 - }); - } -}; -var FieldGroupLabelsSettingItem_default = FieldGroupLabelsSettingItem; - -// src/settings/GridSettings.ts -var _add_settings_trail_view = (plugin, containerEl) => { - new_setting(containerEl, { - name: "Enable trail view", - desc: "Show the trail view at the top of the page", - toggle: { - value: plugin.settings.views.page.trail.enabled, - cb: async (value) => { - plugin.settings.views.page.trail.enabled = value; - await Promise.all([plugin.saveSettings()]); - plugin.refresh({ rebuild_graph: false }); - } - } - }); - new_setting(containerEl, { - name: "Format", - desc: "Format of the trail view", - select: { - value: plugin.settings.views.page.trail.format, - options: ["grid", "path"], - cb: async (value) => { - plugin.settings.views.page.trail.format = value; - await Promise.all([ - plugin.saveSettings(), - plugin.refresh({ rebuild_graph: false }) - ]); - } - } - }); - new_setting(containerEl, { - name: "Path Selection", - desc: "How to select the path(s) to display in the trail view", - select: { - value: plugin.settings.views.page.trail.selection, - options: ["all", "shortest", "longest"], - cb: async (value) => { - plugin.settings.views.page.trail.selection = value; - await Promise.all([ - plugin.saveSettings(), - plugin.refresh({ rebuild_graph: false }) - ]); - } - } - }); - new_setting(containerEl, { - name: "Default depth", - desc: "Default depth of the trail view", - input: { - value: plugin.settings.views.page.trail.default_depth.toString(), - cb: async (value) => { - const int2 = parseInt(value); - if (isNaN(int2)) { - return new import_obsidian17.Notice("Depth must be a number"); - } else if (int2 < 0) { - return new import_obsidian17.Notice("Depth must be a non-negative number"); - } - plugin.settings.views.page.trail.default_depth = int2; - await Promise.all([ - plugin.saveSettings(), - plugin.refresh({ rebuild_graph: false }) - ]); - } - } - }); - new FieldGroupLabelsSettingItem_default({ - target: containerEl, - props: { - edge_field_groups: plugin.settings.edge_field_groups, - field_group_labels: plugin.settings.views.page.trail.field_group_labels - } - }).$on("select", async (e) => { - plugin.settings.views.page.trail.field_group_labels = e.detail; - await Promise.all([ - plugin.saveSettings(), - plugin.refresh({ rebuild_graph: false }) - ]); - }); - new_setting(containerEl, { - name: "Merge Fields", - desc: "Merge fields in the traversal, instead of keeping their paths separate", - toggle: { - value: plugin.settings.views.page.trail.merge_fields, - cb: async (value) => { - plugin.settings.views.page.trail.merge_fields = value; - await Promise.all([ - plugin.saveSettings(), - plugin.refresh({ rebuild_graph: false }) - ]); - } - } - }); - new_setting(containerEl, { - name: "Show controls", - desc: "Show controls to change the depth/format/path-selection of the trail view", - toggle: { - value: plugin.settings.views.page.trail.show_controls, - cb: async (value) => { - plugin.settings.views.page.trail.show_controls = value; - await Promise.all([ - plugin.saveSettings(), - plugin.refresh({ rebuild_graph: false }) - ]); - } - } - }); - new_setting(containerEl, { - name: "No path message", - desc: "Message to display when there is no path to display. Leave blank to hide the trail view when there is no path.", - input: { - value: plugin.settings.views.page.trail.no_path_message, - cb: async (value) => { - plugin.settings.views.page.trail.no_path_message = value; - await Promise.all([ - plugin.saveSettings(), - plugin.refresh({ rebuild_graph: false }) - ]); - } - } - }); - _add_settings_show_node_options(plugin, containerEl, { - get: () => plugin.settings.views.page.trail.show_node_options, - set: (value) => plugin.settings.views.page.trail.show_node_options = value - }); -}; - -// src/settings/JohnnyDecimalSettings.ts -var import_obsidian18 = require("obsidian"); -var _add_settings_johnny_decimal_note = (plugin, containerEl) => { - new_setting(containerEl, { - name: "Enabled", - desc: "Look for Johnny Decimal notes to use as edge sources", - toggle: { - value: plugin.settings.explicit_edge_sources.johnny_decimal_note.enabled, - cb: async (value) => { - plugin.settings.explicit_edge_sources.johnny_decimal_note.enabled = value; - await Promise.all([plugin.refresh(), plugin.saveSettings()]); - } - } - }); - new_setting(containerEl, { - name: "Delimiter", - desc: "Delimiter to use to split the note name", - input: { - value: plugin.settings.explicit_edge_sources.johnny_decimal_note.delimiter, - cb: async (value) => { - if (!value) - new import_obsidian18.Notice("Delimiter cannot be empty"); - else { - plugin.settings.explicit_edge_sources.johnny_decimal_note.delimiter = value; - await Promise.all([ - plugin.refresh(), - plugin.saveSettings() - ]); - } - } - } - }); - new_setting(containerEl, { - name: "Default Field", - desc: "Field to use to point to next note in the Johnny Decimal system", - select: { - value: plugin.settings.explicit_edge_sources.johnny_decimal_note.default_field, - options: plugin.settings.edge_fields.map((f) => f.label), - cb: async (value) => { - plugin.settings.explicit_edge_sources.johnny_decimal_note.default_field = value; - await Promise.all([plugin.refresh(), plugin.saveSettings()]); - } - } - }); -}; - -// src/menus/EdgeSortIdMenu.ts -var import_obsidian19 = require("obsidian"); -var ORDERS = [1, -1]; -var EdgeSortIdMenu = ({ - cb, - value, - exclude_fields -}) => { - const menu = new import_obsidian19.Menu(); - ORDERS.forEach((order) => { - menu.addItem( - (item) => item.setTitle(`Order: ${order === 1 ? "asc" : "desc"}`).setChecked(value.order === order).onClick(() => { - value.order = order; - cb(value); - }) - ); - }); - menu.addSeparator(); - SIMPLE_EDGE_SORT_FIELDS.filter((f) => !(exclude_fields == null ? void 0 : exclude_fields.includes(f))).forEach( - (field) => { - menu.addItem( - (item) => item.setTitle("Field: " + field).setChecked(value.field === field).onClick(() => { - value.field = field; - cb(value); - }) - ); - } - ); - return menu; -}; - -// src/components/selector/EdgeSortIdSelector.svelte -function create_else_block4(ctx) { - let arrowdownwidenarrow; - let current; - arrowdownwidenarrow = new arrow_down_wide_narrow_default({ props: { size: ICON_SIZE } }); - return { - c() { - create_component(arrowdownwidenarrow.$$.fragment); - }, - m(target, anchor) { - mount_component(arrowdownwidenarrow, target, anchor); - current = true; - }, - i(local) { - if (current) - return; - transition_in(arrowdownwidenarrow.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(arrowdownwidenarrow.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(arrowdownwidenarrow, detaching); - } - }; -} -function create_if_block5(ctx) { - let arrowupnarrowwide; - let current; - arrowupnarrowwide = new arrow_up_narrow_wide_default({ props: { size: ICON_SIZE } }); - return { - c() { - create_component(arrowupnarrowwide.$$.fragment); - }, - m(target, anchor) { - mount_component(arrowupnarrowwide, target, anchor); - current = true; - }, - i(local) { - if (current) - return; - transition_in(arrowupnarrowwide.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(arrowupnarrowwide.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(arrowupnarrowwide, detaching); - } - }; -} -function create_fragment31(ctx) { - let button; - let current_block_type_index; - let if_block; - let button_class_value; - let current; - let mounted; - let dispose; - const if_block_creators = [create_if_block5, create_else_block4]; - const if_blocks = []; - function select_block_type(ctx2, dirty) { - if ( - /*edge_sort_id*/ - ctx2[0].order === 1 - ) - return 0; - return 1; - } - current_block_type_index = select_block_type(ctx, -1); - if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx); - return { - c() { - button = element("button"); - if_block.c(); - attr(button, "class", button_class_value = "flex gap-1 " + /*cls*/ - ctx[2]); - attr(button, "aria-label", "Change sort field/order"); - }, - m(target, anchor) { - insert(target, button, anchor); - if_blocks[current_block_type_index].m(button, null); - current = true; - if (!mounted) { - dispose = listen( - button, - "click", - /*click_handler*/ - ctx[3] - ); - mounted = true; - } - }, - p(ctx2, [dirty]) { - let previous_block_index = current_block_type_index; - current_block_type_index = select_block_type(ctx2, dirty); - if (current_block_type_index !== previous_block_index) { - group_outros(); - transition_out(if_blocks[previous_block_index], 1, 1, () => { - if_blocks[previous_block_index] = null; - }); - check_outros(); - if_block = if_blocks[current_block_type_index]; - if (!if_block) { - if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2); - if_block.c(); - } else { - } - transition_in(if_block, 1); - if_block.m(button, null); - } - if (!current || dirty & /*cls*/ - 4 && button_class_value !== (button_class_value = "flex gap-1 " + /*cls*/ - ctx2[2])) { - attr(button, "class", button_class_value); - } - }, - i(local) { - if (current) - return; - transition_in(if_block); - current = true; - }, - o(local) { - transition_out(if_block); - current = false; - }, - d(detaching) { - if (detaching) { - detach(button); - } - if_blocks[current_block_type_index].d(); - mounted = false; - dispose(); - } - }; -} -function instance31($$self, $$props, $$invalidate) { - let { edge_sort_id } = $$props; - let { exclude_fields = [] } = $$props; - let { cls = "" } = $$props; - const click_handler = (e) => { - EdgeSortIdMenu({ - exclude_fields, - value: edge_sort_id, - cb: (value) => $$invalidate(0, edge_sort_id = value) - }).showAtMouseEvent(e); - }; - $$self.$$set = ($$props2) => { - if ("edge_sort_id" in $$props2) - $$invalidate(0, edge_sort_id = $$props2.edge_sort_id); - if ("exclude_fields" in $$props2) - $$invalidate(1, exclude_fields = $$props2.exclude_fields); - if ("cls" in $$props2) - $$invalidate(2, cls = $$props2.cls); - }; - return [edge_sort_id, exclude_fields, cls, click_handler]; -} -var EdgeSortIdSelector = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance31, create_fragment31, safe_not_equal, { - edge_sort_id: 0, - exclude_fields: 1, - cls: 2 - }); - } -}; -var EdgeSortIdSelector_default = EdgeSortIdSelector; - -// src/components/settings/EdgeSortIdSettingItem.svelte -function create_default_slot21(ctx) { - let edgesortidselector; - let updating_edge_sort_id; - let current; - function edgesortidselector_edge_sort_id_binding(value) { - ctx[1](value); - } - let edgesortidselector_props = {}; - if ( - /*edge_sort_id*/ - ctx[0] !== void 0 - ) { - edgesortidselector_props.edge_sort_id = /*edge_sort_id*/ - ctx[0]; - } - edgesortidselector = new EdgeSortIdSelector_default({ props: edgesortidselector_props }); - binding_callbacks.push(() => bind(edgesortidselector, "edge_sort_id", edgesortidselector_edge_sort_id_binding)); - return { - c() { - create_component(edgesortidselector.$$.fragment); - }, - m(target, anchor) { - mount_component(edgesortidselector, target, anchor); - current = true; - }, - p(ctx2, dirty) { - const edgesortidselector_changes = {}; - if (!updating_edge_sort_id && dirty & /*edge_sort_id*/ - 1) { - updating_edge_sort_id = true; - edgesortidselector_changes.edge_sort_id = /*edge_sort_id*/ - ctx2[0]; - add_flush_callback(() => updating_edge_sort_id = false); - } - edgesortidselector.$set(edgesortidselector_changes); - }, - i(local) { - if (current) - return; - transition_in(edgesortidselector.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(edgesortidselector.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(edgesortidselector, detaching); - } - }; -} -function create_fragment32(ctx) { - let settingitem; - let current; - settingitem = new SettingItem_default({ - props: { - name: "Edge Sort", - description: "Select the sorting method for the edges in the graph.", - $$slots: { default: [create_default_slot21] }, - $$scope: { ctx } - } - }); - return { - c() { - create_component(settingitem.$$.fragment); - }, - m(target, anchor) { - mount_component(settingitem, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const settingitem_changes = {}; - if (dirty & /*$$scope, edge_sort_id*/ - 9) { - settingitem_changes.$$scope = { dirty, ctx: ctx2 }; - } - settingitem.$set(settingitem_changes); - }, - i(local) { - if (current) - return; - transition_in(settingitem.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(settingitem.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(settingitem, detaching); - } - }; -} -function instance32($$self, $$props, $$invalidate) { - let { edge_sort_id } = $$props; - const dispatch = createEventDispatcher(); - function edgesortidselector_edge_sort_id_binding(value) { - edge_sort_id = value; - $$invalidate(0, edge_sort_id); - } - $$self.$$set = ($$props2) => { - if ("edge_sort_id" in $$props2) - $$invalidate(0, edge_sort_id = $$props2.edge_sort_id); - }; - $$self.$$.update = () => { - if ($$self.$$.dirty & /*edge_sort_id*/ - 1) { - $: - if (edge_sort_id) { - dispatch("select", edge_sort_id); - } - } - }; - return [edge_sort_id, edgesortidselector_edge_sort_id_binding]; -} -var EdgeSortIdSettingItem = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance32, create_fragment32, safe_not_equal, { edge_sort_id: 0 }); - } -}; -var EdgeSortIdSettingItem_default = EdgeSortIdSettingItem; - -// src/menus/ShowAttributesMenu.ts -var import_obsidian20 = require("obsidian"); -var ShowAttributesSelectorMenu = ({ - cb, - value, - exclude_attributes -}) => { - const menu = new import_obsidian20.Menu(); - const possible = EDGE_ATTRIBUTES.filter( - (attr2) => !(exclude_attributes == null ? void 0 : exclude_attributes.includes(attr2)) - ); - const all = possible.length === value.length; - menu.addItem( - (item) => item.setTitle(all ? "None" : "All").onClick(() => { - cb(all ? [] : possible); - }) - ); - menu.addSeparator(); - const add_item = (attr2) => { - const included = value.includes(attr2); - menu.addItem( - (item) => item.setTitle(attr2).setChecked(included).onClick(() => { - if (included) { - cb(value.filter((v) => v !== attr2)); - } else { - cb([...value, attr2]); - } - }) - ); - }; - ["field", "explicit"].filter((attr2) => !(exclude_attributes == null ? void 0 : exclude_attributes.includes(attr2))).forEach(add_item); - menu.addSeparator(); - ["source"].filter((attr2) => !(exclude_attributes == null ? void 0 : exclude_attributes.includes(attr2))).forEach(add_item); - menu.addSeparator(); - ["implied_kind", "round"].filter((attr2) => !(exclude_attributes == null ? void 0 : exclude_attributes.includes(attr2))).forEach(add_item); - return menu; -}; - -// src/components/selector/ShowAttributesSelectorMenu.svelte -function create_fragment33(ctx) { - let button; - let filejson; - let current; - let mounted; - let dispose; - filejson = new file_json_default({ props: { size: ICON_SIZE } }); - return { - c() { - button = element("button"); - create_component(filejson.$$.fragment); - attr( - button, - "class", - /*cls*/ - ctx[2] - ); - attr(button, "aria-label", "Change which edge attributes show"); - }, - m(target, anchor) { - insert(target, button, anchor); - mount_component(filejson, button, null); - current = true; - if (!mounted) { - dispose = listen( - button, - "click", - /*click_handler*/ - ctx[3] - ); - mounted = true; - } - }, - p(ctx2, [dirty]) { - if (!current || dirty & /*cls*/ - 4) { - attr( - button, - "class", - /*cls*/ - ctx2[2] - ); - } - }, - i(local) { - if (current) - return; - transition_in(filejson.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(filejson.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(button); - } - destroy_component(filejson); - mounted = false; - dispose(); - } - }; -} -function instance33($$self, $$props, $$invalidate) { - let { show_attributes } = $$props; - let { exclude_attributes = [] } = $$props; - let { cls = "" } = $$props; - if (exclude_attributes === null || exclude_attributes === void 0 ? void 0 : exclude_attributes.length) { - show_attributes = show_attributes.filter((v) => !(exclude_attributes === null || exclude_attributes === void 0 ? void 0 : exclude_attributes.includes(v))); - } - const click_handler = (e) => { - ShowAttributesSelectorMenu({ - exclude_attributes, - value: show_attributes, - cb: (value) => $$invalidate(0, show_attributes = value) - }).showAtMouseEvent(e); - }; - $$self.$$set = ($$props2) => { - if ("show_attributes" in $$props2) - $$invalidate(0, show_attributes = $$props2.show_attributes); - if ("exclude_attributes" in $$props2) - $$invalidate(1, exclude_attributes = $$props2.exclude_attributes); - if ("cls" in $$props2) - $$invalidate(2, cls = $$props2.cls); - }; - return [show_attributes, exclude_attributes, cls, click_handler]; -} -var ShowAttributesSelectorMenu_1 = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance33, create_fragment33, safe_not_equal, { - show_attributes: 0, - exclude_attributes: 1, - cls: 2 - }); - } -}; -var ShowAttributesSelectorMenu_default = ShowAttributesSelectorMenu_1; - -// src/components/settings/ShowAttributesSettingItem.svelte -function create_default_slot22(ctx) { - let showattributesselectormenu; - let updating_show_attributes; - let current; - function showattributesselectormenu_show_attributes_binding(value) { - ctx[2](value); - } - let showattributesselectormenu_props = { - exclude_attributes: ( - /*exclude_attributes*/ - ctx[1] - ) - }; - if ( - /*show_attributes*/ - ctx[0] !== void 0 - ) { - showattributesselectormenu_props.show_attributes = /*show_attributes*/ - ctx[0]; - } - showattributesselectormenu = new ShowAttributesSelectorMenu_default({ props: showattributesselectormenu_props }); - binding_callbacks.push(() => bind(showattributesselectormenu, "show_attributes", showattributesselectormenu_show_attributes_binding)); - return { - c() { - create_component(showattributesselectormenu.$$.fragment); - }, - m(target, anchor) { - mount_component(showattributesselectormenu, target, anchor); - current = true; - }, - p(ctx2, dirty) { - const showattributesselectormenu_changes = {}; - if (dirty & /*exclude_attributes*/ - 2) - showattributesselectormenu_changes.exclude_attributes = /*exclude_attributes*/ - ctx2[1]; - if (!updating_show_attributes && dirty & /*show_attributes*/ - 1) { - updating_show_attributes = true; - showattributesselectormenu_changes.show_attributes = /*show_attributes*/ - ctx2[0]; - add_flush_callback(() => updating_show_attributes = false); - } - showattributesselectormenu.$set(showattributesselectormenu_changes); - }, - i(local) { - if (current) - return; - transition_in(showattributesselectormenu.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(showattributesselectormenu.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(showattributesselectormenu, detaching); - } - }; -} -function create_fragment34(ctx) { - let settingitem; - let current; - settingitem = new SettingItem_default({ - props: { - name: "Show Attributes", - description: "Select the edge attributes to show.", - $$slots: { default: [create_default_slot22] }, - $$scope: { ctx } - } - }); - return { - c() { - create_component(settingitem.$$.fragment); - }, - m(target, anchor) { - mount_component(settingitem, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const settingitem_changes = {}; - if (dirty & /*$$scope, exclude_attributes, show_attributes*/ - 19) { - settingitem_changes.$$scope = { dirty, ctx: ctx2 }; - } - settingitem.$set(settingitem_changes); - }, - i(local) { - if (current) - return; - transition_in(settingitem.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(settingitem.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(settingitem, detaching); - } - }; -} -function instance34($$self, $$props, $$invalidate) { - let { show_attributes } = $$props; - let { exclude_attributes = [] } = $$props; - const dispatch = createEventDispatcher(); - function showattributesselectormenu_show_attributes_binding(value) { - show_attributes = value; - $$invalidate(0, show_attributes); - } - $$self.$$set = ($$props2) => { - if ("show_attributes" in $$props2) - $$invalidate(0, show_attributes = $$props2.show_attributes); - if ("exclude_attributes" in $$props2) - $$invalidate(1, exclude_attributes = $$props2.exclude_attributes); - }; - $$self.$$.update = () => { - if ($$self.$$.dirty & /*show_attributes*/ - 1) { - $: - if (show_attributes) { - dispatch("select", show_attributes); - } - } - }; - return [ - show_attributes, - exclude_attributes, - showattributesselectormenu_show_attributes_binding - ]; -} -var ShowAttributesSettingItem = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance34, create_fragment34, safe_not_equal, { - show_attributes: 0, - exclude_attributes: 1 - }); - } -}; -var ShowAttributesSettingItem_default = ShowAttributesSettingItem; - -// src/const/links.ts -var LINK_KINDS = ["none", "wiki", "markdown"]; - -// src/settings/ListIndexSettings.ts -var _add_settings_list_index = (plugin, contentEl) => { - const { settings } = plugin; - new FieldGroupLabelsSettingItem_default({ - target: contentEl, - props: { - edge_field_groups: plugin.settings.edge_field_groups, - field_group_labels: settings.commands.list_index.default_options.field_group_labels - } - }).$on("select", async (e) => { - settings.commands.list_index.default_options.field_group_labels = e.detail; - settings.commands.list_index.default_options.fields = resolve_field_group_labels( - plugin.settings.edge_field_groups, - settings.commands.list_index.default_options.field_group_labels - ); - await plugin.saveSettings(); - }); - new_setting(contentEl, { - name: "Link Kind", - desc: "Format to use for links", - select: { - options: LINK_KINDS, - value: settings.commands.list_index.default_options.link_kind, - cb: async (value) => { - settings.commands.list_index.default_options.link_kind = value; - await plugin.saveSettings(); - } - } - }); - new_setting(contentEl, { - name: "Indent", - desc: "Indentation to use for each level", - input: { - value: settings.commands.list_index.default_options.indent, - cb: async (value) => { - settings.commands.list_index.default_options.indent = value; - await plugin.saveSettings(); - } - } - }); - new EdgeSortIdSettingItem_default({ - target: contentEl, - props: { - edge_sort_id: settings.commands.list_index.default_options.edge_sort_id - } - }).$on("select", async (e) => { - settings.commands.list_index.default_options.edge_sort_id = e.detail; - await plugin.saveSettings(); - }); - new ShowAttributesSettingItem_default({ - target: contentEl, - props: { - show_attributes: settings.commands.list_index.default_options.show_attributes - } - }).$on("select", async (e) => { - settings.commands.list_index.default_options.show_attributes = e.detail; - await plugin.saveSettings(); - }); - _add_settings_show_node_options(plugin, contentEl, { - get: () => settings.commands.list_index.default_options.show_node_options, - set: (value) => settings.commands.list_index.default_options.show_node_options = value - }); -}; - -// src/settings/ListNoteSettings.ts -var _add_settings_list_note = (plugin, containerEl) => { - new_setting(containerEl, { - name: "Default Neighbour Field", - desc: "Field to use to join neighbouring list items.", - select: { - value: plugin.settings.explicit_edge_sources.list_note.default_neighbour_field, - options: [""].concat( - plugin.settings.edge_fields.map((f) => f.label) - ), - cb: async (value) => { - plugin.settings.explicit_edge_sources.list_note.default_neighbour_field = value; - await Promise.all([plugin.refresh(), plugin.saveSettings()]); - } - } - }); -}; - -// src/settings/MatrixSettings.ts -var _add_settings_matrix = (plugin, containerEl) => { - new_setting(containerEl, { - name: "Collapse", - desc: "Collapse the matrix by default", - toggle: { - value: plugin.settings.views.side.matrix.collapse, - cb: async (checked) => { - plugin.settings.views.side.matrix.collapse = checked; - await Promise.all([ - plugin.saveSettings(), - plugin.refresh({ - redraw_side_views: true, - rebuild_graph: false - }) - ]); - } - } - }); - new EdgeSortIdSettingItem_default({ - target: containerEl, - props: { edge_sort_id: plugin.settings.views.side.matrix.edge_sort_id } - }).$on("select", async (e) => { - plugin.settings.views.side.matrix.edge_sort_id = e.detail; - await Promise.all([ - plugin.saveSettings(), - plugin.refresh({ redraw_side_views: true, rebuild_graph: false }) - ]); - }); - new ShowAttributesSettingItem_default({ - target: containerEl, - props: { - exclude_attributes: ["field", "explicit"], - show_attributes: plugin.settings.views.side.matrix.show_attributes - } - }).$on("select", async (e) => { - plugin.settings.views.side.matrix.show_attributes = e.detail; - await Promise.all([ - plugin.saveSettings(), - plugin.refresh({ redraw_side_views: true, rebuild_graph: false }) - ]); - }); - new FieldGroupLabelsSettingItem_default({ - target: containerEl, - props: { - edge_field_groups: plugin.settings.edge_field_groups, - field_group_labels: plugin.settings.views.side.matrix.field_group_labels - } - }).$on("select", async (e) => { - plugin.settings.views.side.matrix.field_group_labels = e.detail; - await Promise.all([ - plugin.saveSettings(), - plugin.refresh({ redraw_side_views: true, rebuild_graph: false }) - ]); - }); - _add_settings_show_node_options(plugin, containerEl, { - get: () => plugin.settings.views.side.matrix.show_node_options, - set: (value) => plugin.settings.views.side.matrix.show_node_options = value - }); -}; - -// src/views/page.ts -var import_obsidian22 = require("obsidian"); - -// src/components/ObsidianLink.svelte -var import_obsidian21 = require("obsidian"); -function create_fragment35(ctx) { - let span; - let t; - let span_class_value; - let span_aria_label_value; - let mounted; - let dispose; - return { - c() { - var _a; - span = element("span"); - t = text( - /*display*/ - ctx[1] - ); - attr(span, "role", "link"); - attr(span, "class", span_class_value = "internal-link cursor-pointer " + /*cls*/ - ctx[4]); - attr( - span, - "data-href", - /*path*/ - ctx[0] - ); - attr(span, "aria-label", span_aria_label_value = /*no_ext*/ - ctx[6] === /*display*/ - ctx[1] ? "" : ( - /*path*/ - ctx[0] - )); - toggle_class(span, "is-unresolved", !/*resolved*/ - ctx[2]); - toggle_class( - span, - "BC-active-note", - /*$active_file_store*/ - ((_a = ctx[5]) == null ? void 0 : _a.path) === /*path*/ - ctx[0] - ); - }, - m(target, anchor) { - insert(target, span, anchor); - append(span, t); - if (!mounted) { - dispose = [ - listen( - span, - "mouseover", - /*mouseover_handler*/ - ctx[7] - ), - listen( - span, - "contextmenu", - /*contextmenu_handler*/ - ctx[8] - ), - listen( - span, - "auxclick", - /*auxclick_handler*/ - ctx[9] - ), - listen( - span, - "click", - /*click_handler*/ - ctx[10] - ) - ]; - mounted = true; - } - }, - p(ctx2, [dirty]) { - var _a; - if (dirty & /*display*/ - 2) - set_data( - t, - /*display*/ - ctx2[1] - ); - if (dirty & /*cls*/ - 16 && span_class_value !== (span_class_value = "internal-link cursor-pointer " + /*cls*/ - ctx2[4])) { - attr(span, "class", span_class_value); - } - if (dirty & /*path*/ - 1) { - attr( - span, - "data-href", - /*path*/ - ctx2[0] - ); - } - if (dirty & /*display, path*/ - 3 && span_aria_label_value !== (span_aria_label_value = /*no_ext*/ - ctx2[6] === /*display*/ - ctx2[1] ? "" : ( - /*path*/ - ctx2[0] - ))) { - attr(span, "aria-label", span_aria_label_value); - } - if (dirty & /*cls, resolved*/ - 20) { - toggle_class(span, "is-unresolved", !/*resolved*/ - ctx2[2]); - } - if (dirty & /*cls, $active_file_store, path*/ - 49) { - toggle_class( - span, - "BC-active-note", - /*$active_file_store*/ - ((_a = ctx2[5]) == null ? void 0 : _a.path) === /*path*/ - ctx2[0] - ); - } - }, - i: noop, - o: noop, - d(detaching) { - if (detaching) { - detach(span); - } - mounted = false; - run_all(dispose); - } - }; -} -function instance35($$self, $$props, $$invalidate) { - let $active_file_store; - component_subscribe($$self, active_file_store, ($$value) => $$invalidate(5, $active_file_store = $$value)); - let { path } = $$props; - let { display } = $$props; - let { resolved } = $$props; - let { plugin } = $$props; - let { cls = "" } = $$props; - const no_ext = Paths.drop_ext(path); - const mouseover_handler = (event) => { - plugin.app.workspace.trigger("hover-link", { - event, - linktext: path, - // Must match `plugin.registerHoverSource` source (in `main.ts`) - source: "breadcrumbs", - targetEl: event.currentTarget, - hoverParent: event.currentTarget.parentElement - }); - }; - const contextmenu_handler = (e) => { - const menu = new import_obsidian21.Menu(); - plugin.app.workspace.handleLinkContextMenu(menu, display, path); - menu.showAtMouseEvent(e); - }; - const auxclick_handler = (e) => { - log.debug("on:auxclick e.button", e.button); - if (e.button === 1) { - plugin.app.workspace.openLinkText(path, "", "tab"); - } - }; - const click_handler = (e) => { - plugin.app.workspace.openLinkText(path, "", import_obsidian21.Keymap.isModEvent(e)); - }; - $$self.$$set = ($$props2) => { - if ("path" in $$props2) - $$invalidate(0, path = $$props2.path); - if ("display" in $$props2) - $$invalidate(1, display = $$props2.display); - if ("resolved" in $$props2) - $$invalidate(2, resolved = $$props2.resolved); - if ("plugin" in $$props2) - $$invalidate(3, plugin = $$props2.plugin); - if ("cls" in $$props2) - $$invalidate(4, cls = $$props2.cls); - }; - return [ - path, - display, - resolved, - plugin, - cls, - $active_file_store, - no_ext, - mouseover_handler, - contextmenu_handler, - auxclick_handler, - click_handler - ]; -} -var ObsidianLink = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance35, create_fragment35, safe_not_equal, { - path: 0, - display: 1, - resolved: 2, - plugin: 3, - cls: 4 - }); - } -}; -var ObsidianLink_default = ObsidianLink; - -// src/components/EdgeLink.svelte -function create_fragment36(ctx) { - let obsidianlink; - let current; - obsidianlink = new ObsidianLink_default({ - props: { - plugin: ( - /*plugin*/ - ctx[1] - ), - display: ( - /*display*/ - ctx[3] - ), - path: ( - /*edge*/ - ctx[0].target_id - ), - resolved: ( - /*edge*/ - ctx[0].target_attr.resolved - ), - cls: ( - /*cls*/ - ctx[2] + " BC-edge " + /*edge*/ - (ctx[0].attr.explicit ? "BC-edge-explicit" : `BC-edge-implied BC-edge-implied-${/*edge*/ - ctx[0].attr.implied_kind}`) - ) - } - }); - return { - c() { - create_component(obsidianlink.$$.fragment); - }, - m(target, anchor) { - mount_component(obsidianlink, target, anchor); - current = true; - }, - p(ctx2, [dirty]) { - const obsidianlink_changes = {}; - if (dirty & /*plugin*/ - 2) - obsidianlink_changes.plugin = /*plugin*/ - ctx2[1]; - if (dirty & /*edge*/ - 1) - obsidianlink_changes.path = /*edge*/ - ctx2[0].target_id; - if (dirty & /*edge*/ - 1) - obsidianlink_changes.resolved = /*edge*/ - ctx2[0].target_attr.resolved; - if (dirty & /*cls, edge*/ - 5) - obsidianlink_changes.cls = /*cls*/ - ctx2[2] + " BC-edge " + /*edge*/ - (ctx2[0].attr.explicit ? "BC-edge-explicit" : `BC-edge-implied BC-edge-implied-${/*edge*/ - ctx2[0].attr.implied_kind}`); - obsidianlink.$set(obsidianlink_changes); - }, - i(local) { - if (current) - return; - transition_in(obsidianlink.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(obsidianlink.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(obsidianlink, detaching); - } - }; -} -function instance36($$self, $$props, $$invalidate) { - let { edge } = $$props; - let { plugin } = $$props; - let { show_node_options } = $$props; - let { cls = "" } = $$props; - const { dendron_note } = plugin.settings.explicit_edge_sources; - const display = stringify_node(edge.target_id, edge.target_attr, { - show_node_options, - trim_basename_delimiter: dendron_note.enabled && dendron_note.display_trimmed ? dendron_note.delimiter : void 0 - }); - $$self.$$set = ($$props2) => { - if ("edge" in $$props2) - $$invalidate(0, edge = $$props2.edge); - if ("plugin" in $$props2) - $$invalidate(1, plugin = $$props2.plugin); - if ("show_node_options" in $$props2) - $$invalidate(4, show_node_options = $$props2.show_node_options); - if ("cls" in $$props2) - $$invalidate(2, cls = $$props2.cls); - }; - return [edge, plugin, cls, display, show_node_options]; -} -var EdgeLink = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance36, create_fragment36, safe_not_equal, { - edge: 0, - plugin: 1, - show_node_options: 4, - cls: 2 - }); - } -}; -var EdgeLink_default = EdgeLink; - -// src/components/page_views/PrevNextView.svelte -function add_css2(target) { - append_styles(target, "svelte-deyewb", ".BC-prev-next-view.svelte-deyewb>div.svelte-deyewb{border:1px solid var(--background-modifier-border)}"); -} -function get_each_context5(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[7] = list[i]; - return child_ctx; -} -function get_each_context_13(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[7] = list[i]; - return child_ctx; -} -function create_if_block6(ctx) { - var _a, _b, _c, _d; - let div0; - let t; - let div1; - let current; - let each_value_1 = ensure_array_like( - /*grouped_out_edges*/ - (_b = (_a = ctx[2]) == null ? void 0 : _a.prev) != null ? _b : [] - ); - let each_blocks_1 = []; - for (let i = 0; i < each_value_1.length; i += 1) { - each_blocks_1[i] = create_each_block_13(get_each_context_13(ctx, each_value_1, i)); - } - const out = (i) => transition_out(each_blocks_1[i], 1, 1, () => { - each_blocks_1[i] = null; - }); - let each_value = ensure_array_like( - /*grouped_out_edges*/ - (_d = (_c = ctx[2]) == null ? void 0 : _c.next) != null ? _d : [] - ); - let each_blocks = []; - for (let i = 0; i < each_value.length; i += 1) { - each_blocks[i] = create_each_block5(get_each_context5(ctx, each_value, i)); - } - const out_1 = (i) => transition_out(each_blocks[i], 1, 1, () => { - each_blocks[i] = null; - }); - return { - c() { - div0 = element("div"); - for (let i = 0; i < each_blocks_1.length; i += 1) { - each_blocks_1[i].c(); - } - t = space(); - div1 = element("div"); - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].c(); - } - attr(div0, "class", "flex w-full flex-col svelte-deyewb"); - set_style(div0, "border-radius", "var(--radius-m) 0 0 var(--radius-m)"); - attr(div1, "class", "flex w-full flex-col svelte-deyewb"); - set_style(div1, "border-radius", "0 var(--radius-m) var(--radius-m) 0"); - }, - m(target, anchor) { - insert(target, div0, anchor); - for (let i = 0; i < each_blocks_1.length; i += 1) { - if (each_blocks_1[i]) { - each_blocks_1[i].m(div0, null); - } - } - insert(target, t, anchor); - insert(target, div1, anchor); - for (let i = 0; i < each_blocks.length; i += 1) { - if (each_blocks[i]) { - each_blocks[i].m(div1, null); - } - } - current = true; - }, - p(ctx2, dirty) { - var _a2, _b2, _c2, _d2; - if (dirty & /*grouped_out_edges, plugin, show_node_options*/ - 7) { - each_value_1 = ensure_array_like( - /*grouped_out_edges*/ - (_b2 = (_a2 = ctx2[2]) == null ? void 0 : _a2.prev) != null ? _b2 : [] - ); - let i; - for (i = 0; i < each_value_1.length; i += 1) { - const child_ctx = get_each_context_13(ctx2, each_value_1, i); - if (each_blocks_1[i]) { - each_blocks_1[i].p(child_ctx, dirty); - transition_in(each_blocks_1[i], 1); - } else { - each_blocks_1[i] = create_each_block_13(child_ctx); - each_blocks_1[i].c(); - transition_in(each_blocks_1[i], 1); - each_blocks_1[i].m(div0, null); - } - } - group_outros(); - for (i = each_value_1.length; i < each_blocks_1.length; i += 1) { - out(i); - } - check_outros(); - } - if (dirty & /*grouped_out_edges, plugin, show_node_options*/ - 7) { - each_value = ensure_array_like( - /*grouped_out_edges*/ - (_d2 = (_c2 = ctx2[2]) == null ? void 0 : _c2.next) != null ? _d2 : [] - ); - let i; - for (i = 0; i < each_value.length; i += 1) { - const child_ctx = get_each_context5(ctx2, each_value, i); - if (each_blocks[i]) { - each_blocks[i].p(child_ctx, dirty); - transition_in(each_blocks[i], 1); - } else { - each_blocks[i] = create_each_block5(child_ctx); - each_blocks[i].c(); - transition_in(each_blocks[i], 1); - each_blocks[i].m(div1, null); - } - } - group_outros(); - for (i = each_value.length; i < each_blocks.length; i += 1) { - out_1(i); - } - check_outros(); - } - }, - i(local) { - if (current) - return; - for (let i = 0; i < each_value_1.length; i += 1) { - transition_in(each_blocks_1[i]); - } - for (let i = 0; i < each_value.length; i += 1) { - transition_in(each_blocks[i]); - } - current = true; - }, - o(local) { - each_blocks_1 = each_blocks_1.filter(Boolean); - for (let i = 0; i < each_blocks_1.length; i += 1) { - transition_out(each_blocks_1[i]); - } - each_blocks = each_blocks.filter(Boolean); - for (let i = 0; i < each_blocks.length; i += 1) { - transition_out(each_blocks[i]); - } - current = false; - }, - d(detaching) { - if (detaching) { - detach(div0); - detach(t); - detach(div1); - } - destroy_each(each_blocks_1, detaching); - destroy_each(each_blocks, detaching); - } - }; -} -function create_each_block_13(ctx) { - let div; - let span; - let t1; - let edgelink; - let t2; - let current; - edgelink = new EdgeLink_default({ - props: { - cls: "grow", - edge: ( - /*edge*/ - ctx[7] - ), - plugin: ( - /*plugin*/ - ctx[0] - ), - show_node_options: ( - /*show_node_options*/ - ctx[1] - ) - } - }); - return { - c() { - div = element("div"); - span = element("span"); - span.textContent = `${/*edge*/ - ctx[7].attr.field}`; - t1 = space(); - create_component(edgelink.$$.fragment); - t2 = space(); - attr(span, "class", "BC-field pl-2"); - attr(div, "class", "BC-next-prev-item flex gap-3 p-1 text-left"); - }, - m(target, anchor) { - insert(target, div, anchor); - append(div, span); - append(div, t1); - mount_component(edgelink, div, null); - append(div, t2); - current = true; - }, - p(ctx2, dirty) { - const edgelink_changes = {}; - if (dirty & /*plugin*/ - 1) - edgelink_changes.plugin = /*plugin*/ - ctx2[0]; - edgelink.$set(edgelink_changes); - }, - i(local) { - if (current) - return; - transition_in(edgelink.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(edgelink.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div); - } - destroy_component(edgelink); - } - }; -} -function create_each_block5(ctx) { - let div; - let edgelink; - let t0; - let span; - let t2; - let current; - edgelink = new EdgeLink_default({ - props: { - cls: "grow", - edge: ( - /*edge*/ - ctx[7] - ), - plugin: ( - /*plugin*/ - ctx[0] - ), - show_node_options: ( - /*show_node_options*/ - ctx[1] - ) - } - }); - return { - c() { - div = element("div"); - create_component(edgelink.$$.fragment); - t0 = space(); - span = element("span"); - span.textContent = `${/*edge*/ - ctx[7].attr.field}`; - t2 = space(); - attr(span, "class", "BC-field pr-2"); - attr(div, "class", "BC-next-prev-item flex gap-3 p-1 text-right"); - }, - m(target, anchor) { - insert(target, div, anchor); - mount_component(edgelink, div, null); - append(div, t0); - append(div, span); - append(div, t2); - current = true; - }, - p(ctx2, dirty) { - const edgelink_changes = {}; - if (dirty & /*plugin*/ - 1) - edgelink_changes.plugin = /*plugin*/ - ctx2[0]; - edgelink.$set(edgelink_changes); - }, - i(local) { - if (current) - return; - transition_in(edgelink.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(edgelink.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div); - } - destroy_component(edgelink); - } - }; -} -function create_fragment37(ctx) { - var _a, _b, _c, _d; - let div; - let current; - let if_block = ( - /*grouped_out_edges*/ - (((_b = (_a = ctx[2]) == null ? void 0 : _a.prev) == null ? void 0 : _b.length) || /*grouped_out_edges*/ - ((_d = (_c = ctx[2]) == null ? void 0 : _c.next) == null ? void 0 : _d.length)) && create_if_block6(ctx) - ); - return { - c() { - div = element("div"); - if (if_block) - if_block.c(); - attr(div, "class", "BC-prev-next-view flex svelte-deyewb"); - }, - m(target, anchor) { - insert(target, div, anchor); - if (if_block) - if_block.m(div, null); - current = true; - }, - p(ctx2, [dirty]) { - var _a2, _b2, _c2, _d2; - if ( - /*grouped_out_edges*/ - ((_b2 = (_a2 = ctx2[2]) == null ? void 0 : _a2.prev) == null ? void 0 : _b2.length) || /*grouped_out_edges*/ - ((_d2 = (_c2 = ctx2[2]) == null ? void 0 : _c2.next) == null ? void 0 : _d2.length) - ) - if_block.p(ctx2, dirty); - }, - i(local) { - if (current) - return; - transition_in(if_block); - current = true; - }, - o(local) { - transition_out(if_block); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div); - } - if (if_block) - if_block.d(); - } - }; -} -function instance37($$self, $$props, $$invalidate) { - let { file_path } = $$props; - let { plugin } = $$props; - const { field_group_labels, show_node_options } = plugin.settings.views.page.prev_next; - const edge_field_labels = { - prev: resolve_field_group_labels(plugin.settings.edge_field_groups, field_group_labels.prev), - next: resolve_field_group_labels(plugin.settings.edge_field_groups, field_group_labels.next) - }; - const merged_field_labels = remove_duplicates([...edge_field_labels.prev, ...edge_field_labels.next]); - const grouped_out_edges = plugin.graph.hasNode(file_path) ? group_by(plugin.graph.get_out_edges(file_path).filter((e) => has_edge_attrs(e, { $or_fields: merged_field_labels })), (e) => edge_field_labels.prev.includes(e.attr.field) ? "prev" : "next") : null; - $$self.$$set = ($$props2) => { - if ("file_path" in $$props2) - $$invalidate(3, file_path = $$props2.file_path); - if ("plugin" in $$props2) - $$invalidate(0, plugin = $$props2.plugin); - }; - return [plugin, show_node_options, grouped_out_edges, file_path]; -} -var PrevNextView = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance37, create_fragment37, safe_not_equal, { file_path: 3, plugin: 0 }, add_css2); - } -}; -var PrevNextView_default = PrevNextView; - -// src/components/button/MergeFieldsButton.svelte -function create_else_block5(ctx) { - let spliticon; - let current; - spliticon = new split_default({ props: { size: ICON_SIZE } }); - return { - c() { - create_component(spliticon.$$.fragment); - }, - m(target, anchor) { - mount_component(spliticon, target, anchor); - current = true; - }, - i(local) { - if (current) - return; - transition_in(spliticon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(spliticon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(spliticon, detaching); - } - }; -} -function create_if_block7(ctx) { - let mergeicon; - let current; - mergeicon = new merge_default({ props: { size: ICON_SIZE } }); - return { - c() { - create_component(mergeicon.$$.fragment); - }, - m(target, anchor) { - mount_component(mergeicon, target, anchor); - current = true; - }, - i(local) { - if (current) - return; - transition_in(mergeicon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(mergeicon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(mergeicon, detaching); - } - }; -} -function create_fragment38(ctx) { - let button; - let current_block_type_index; - let if_block; - let button_aria_label_value; - let current; - let mounted; - let dispose; - const if_block_creators = [create_if_block7, create_else_block5]; - const if_blocks = []; - function select_block_type(ctx2, dirty) { - if ( - /*merge_fields*/ - ctx2[0] - ) - return 0; - return 1; - } - current_block_type_index = select_block_type(ctx, -1); - if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx); - return { - c() { - button = element("button"); - if_block.c(); - attr( - button, - "class", - /*cls*/ - ctx[1] - ); - attr(button, "aria-label", button_aria_label_value = /*merge_fields*/ - ctx[0] ? "Separate Fields" : "Merge Fields"); - }, - m(target, anchor) { - insert(target, button, anchor); - if_blocks[current_block_type_index].m(button, null); - current = true; - if (!mounted) { - dispose = listen( - button, - "click", - /*click_handler*/ - ctx[2] - ); - mounted = true; - } - }, - p(ctx2, [dirty]) { - let previous_block_index = current_block_type_index; - current_block_type_index = select_block_type(ctx2, dirty); - if (current_block_type_index !== previous_block_index) { - group_outros(); - transition_out(if_blocks[previous_block_index], 1, 1, () => { - if_blocks[previous_block_index] = null; - }); - check_outros(); - if_block = if_blocks[current_block_type_index]; - if (!if_block) { - if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2); - if_block.c(); - } else { - } - transition_in(if_block, 1); - if_block.m(button, null); - } - if (!current || dirty & /*cls*/ - 2) { - attr( - button, - "class", - /*cls*/ - ctx2[1] - ); - } - if (!current || dirty & /*merge_fields*/ - 1 && button_aria_label_value !== (button_aria_label_value = /*merge_fields*/ - ctx2[0] ? "Separate Fields" : "Merge Fields")) { - attr(button, "aria-label", button_aria_label_value); - } - }, - i(local) { - if (current) - return; - transition_in(if_block); - current = true; - }, - o(local) { - transition_out(if_block); - current = false; - }, - d(detaching) { - if (detaching) { - detach(button); - } - if_blocks[current_block_type_index].d(); - mounted = false; - dispose(); - } - }; -} -function instance38($$self, $$props, $$invalidate) { - let { cls = "" } = $$props; - let { merge_fields } = $$props; - const click_handler = () => $$invalidate(0, merge_fields = !merge_fields); - $$self.$$set = ($$props2) => { - if ("cls" in $$props2) - $$invalidate(1, cls = $$props2.cls); - if ("merge_fields" in $$props2) - $$invalidate(0, merge_fields = $$props2.merge_fields); - }; - return [merge_fields, cls, click_handler]; -} -var MergeFieldsButton = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance38, create_fragment38, safe_not_equal, { cls: 1, merge_fields: 0 }); - } -}; -var MergeFieldsButton_default = MergeFieldsButton; - -// src/components/page_views/TrailViewGrid.svelte -function add_css3(target) { - append_styles(target, "svelte-fynvrm", ".BC-trail-view.svelte-fynvrm{overflow:hidden;border-radius:var(--radius-m);border:1px solid var(--background-modifier-border)}.BC-trail-view-item.svelte-fynvrm{margin:-1px -1px 0 0;border-right:1px solid var(--background-modifier-border);border-top:1px solid var(--background-modifier-border)}"); -} -function get_each_context6(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[5] = list[i]; - child_ctx[7] = i; - return child_ctx; -} -function get_each_context_14(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[8] = list[i].first; - child_ctx[9] = list[i].last; - const constants_0 = ( - /*square*/ - child_ctx[1][ - /*first*/ - child_ctx[8] - ][ - /*j*/ - child_ctx[7] - ] - ); - child_ctx[10] = constants_0; - return child_ctx; -} -function create_if_block8(ctx) { - let edgelink; - let current; - edgelink = new EdgeLink_default({ - props: { - edge: ( - /*edge*/ - ctx[10] - ), - plugin: ( - /*plugin*/ - ctx[0] - ), - cls: "p-1 grow flex justify-center items-center", - show_node_options: ( - /*plugin*/ - ctx[0].settings.views.page.trail.show_node_options - ) - } - }); - return { - c() { - create_component(edgelink.$$.fragment); - }, - m(target, anchor) { - mount_component(edgelink, target, anchor); - current = true; - }, - p(ctx2, dirty) { - const edgelink_changes = {}; - if (dirty & /*plugin*/ - 1) - edgelink_changes.plugin = /*plugin*/ - ctx2[0]; - if (dirty & /*plugin*/ - 1) - edgelink_changes.show_node_options = /*plugin*/ - ctx2[0].settings.views.page.trail.show_node_options; - edgelink.$set(edgelink_changes); - }, - i(local) { - if (current) - return; - transition_in(edgelink.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(edgelink.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(edgelink, detaching); - } - }; -} -function create_each_block_14(ctx) { - let div; - let t; - let current; - let if_block = ( - /*edge*/ - ctx[10] && create_if_block8(ctx) - ); - return { - c() { - div = element("div"); - if (if_block) - if_block.c(); - t = space(); - attr(div, "class", "BC-trail-view-item flex svelte-fynvrm"); - set_style( - div, - "grid-area", - /*first*/ - ctx[8] + 1 + " / " + /*j*/ - (ctx[7] + 1) + " / " + /*last*/ - (ctx[9] + 2) + " / " + /*j*/ - (ctx[7] + 2) - ); - }, - m(target, anchor) { - insert(target, div, anchor); - if (if_block) - if_block.m(div, null); - append(div, t); - current = true; - }, - p(ctx2, dirty) { - if ( - /*edge*/ - ctx2[10] - ) - if_block.p(ctx2, dirty); - }, - i(local) { - if (current) - return; - transition_in(if_block); - current = true; - }, - o(local) { - transition_out(if_block); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div); - } - if (if_block) - if_block.d(); - } - }; -} -function create_each_block6(ctx) { - let each_1_anchor; - let current; - let each_value_1 = ensure_array_like( - /*col*/ - ctx[5] - ); - let each_blocks = []; - for (let i = 0; i < each_value_1.length; i += 1) { - each_blocks[i] = create_each_block_14(get_each_context_14(ctx, each_value_1, i)); - } - const out = (i) => transition_out(each_blocks[i], 1, 1, () => { - each_blocks[i] = null; - }); - return { - c() { - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].c(); - } - each_1_anchor = empty(); - }, - m(target, anchor) { - for (let i = 0; i < each_blocks.length; i += 1) { - if (each_blocks[i]) { - each_blocks[i].m(target, anchor); - } - } - insert(target, each_1_anchor, anchor); - current = true; - }, - p(ctx2, dirty) { - if (dirty & /*col_runs, square, plugin*/ - 7) { - each_value_1 = ensure_array_like( - /*col*/ - ctx2[5] - ); - let i; - for (i = 0; i < each_value_1.length; i += 1) { - const child_ctx = get_each_context_14(ctx2, each_value_1, i); - if (each_blocks[i]) { - each_blocks[i].p(child_ctx, dirty); - transition_in(each_blocks[i], 1); - } else { - each_blocks[i] = create_each_block_14(child_ctx); - each_blocks[i].c(); - transition_in(each_blocks[i], 1); - each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor); - } - } - group_outros(); - for (i = each_value_1.length; i < each_blocks.length; i += 1) { - out(i); - } - check_outros(); - } - }, - i(local) { - if (current) - return; - for (let i = 0; i < each_value_1.length; i += 1) { - transition_in(each_blocks[i]); - } - current = true; - }, - o(local) { - each_blocks = each_blocks.filter(Boolean); - for (let i = 0; i < each_blocks.length; i += 1) { - transition_out(each_blocks[i]); - } - current = false; - }, - d(detaching) { - if (detaching) { - detach(each_1_anchor); - } - destroy_each(each_blocks, detaching); - } - }; -} -function create_fragment39(ctx) { - let div; - let current; - let each_value = ensure_array_like( - /*col_runs*/ - ctx[2] - ); - let each_blocks = []; - for (let i = 0; i < each_value.length; i += 1) { - each_blocks[i] = create_each_block6(get_each_context6(ctx, each_value, i)); - } - const out = (i) => transition_out(each_blocks[i], 1, 1, () => { - each_blocks[i] = null; - }); - return { - c() { - var _a, _b; - div = element("div"); - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].c(); - } - attr(div, "class", "BC-trail-view grid svelte-fynvrm"); - set_style(div, "grid-template-rows", "min-content"); - set_style(div, "grid-template-columns", "1fr ".repeat( - /*square*/ - (_b = (_a = ctx[1].at(0)) == null ? void 0 : _a.length) != null ? _b : 0 - )); - }, - m(target, anchor) { - insert(target, div, anchor); - for (let i = 0; i < each_blocks.length; i += 1) { - if (each_blocks[i]) { - each_blocks[i].m(div, null); - } - } - current = true; - }, - p(ctx2, [dirty]) { - if (dirty & /*col_runs, square, plugin*/ - 7) { - each_value = ensure_array_like( - /*col_runs*/ - ctx2[2] - ); - let i; - for (i = 0; i < each_value.length; i += 1) { - const child_ctx = get_each_context6(ctx2, each_value, i); - if (each_blocks[i]) { - each_blocks[i].p(child_ctx, dirty); - transition_in(each_blocks[i], 1); - } else { - each_blocks[i] = create_each_block6(child_ctx); - each_blocks[i].c(); - transition_in(each_blocks[i], 1); - each_blocks[i].m(div, null); - } - } - group_outros(); - for (i = each_value.length; i < each_blocks.length; i += 1) { - out(i); - } - check_outros(); - } - }, - i(local) { - if (current) - return; - for (let i = 0; i < each_value.length; i += 1) { - transition_in(each_blocks[i]); - } - current = true; - }, - o(local) { - each_blocks = each_blocks.filter(Boolean); - for (let i = 0; i < each_blocks.length; i += 1) { - transition_out(each_blocks[i]); - } - current = false; - }, - d(detaching) { - if (detaching) { - detach(div); - } - destroy_each(each_blocks, detaching); - } - }; -} -function instance39($$self, $$props, $$invalidate) { - let { plugin } = $$props; - let { all_paths } = $$props; - const reversed = all_paths.map((path) => [...path].reverse()); - const square = ensure_square_array(reversed, null, true); - const col_runs = transpose(square).map((col) => gather_by_runs(col, (e) => e ? e.target_id : null)); - $$self.$$set = ($$props2) => { - if ("plugin" in $$props2) - $$invalidate(0, plugin = $$props2.plugin); - if ("all_paths" in $$props2) - $$invalidate(3, all_paths = $$props2.all_paths); - }; - return [plugin, square, col_runs, all_paths]; -} -var TrailViewGrid = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance39, create_fragment39, safe_not_equal, { plugin: 0, all_paths: 3 }, add_css3); - } -}; -var TrailViewGrid_default = TrailViewGrid; - -// src/components/page_views/TrailViewPath.svelte -function add_css4(target) { - append_styles(target, "svelte-4v6yoh", '.BC-trail-view.svelte-4v6yoh{overflow:hidden;border-radius:var(--radius-m);border:1px solid var(--background-modifier-border)}.BC-trail-view-item-separator.svelte-4v6yoh::before{content:">"}'); -} -function get_each_context7(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[3] = list[i]; - return child_ctx; -} -function get_each_context_15(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[6] = list[i]; - child_ctx[8] = i; - return child_ctx; -} -function create_if_block9(ctx) { - let span; - let span_aria_label_value; - return { - c() { - span = element("span"); - attr(span, "class", "BC-trail-view-item-separator svelte-4v6yoh"); - attr(span, "aria-label", span_aria_label_value = url_search_params(untyped_pick( - /*edge*/ - ctx[6].attr, - ["source", "implied_kind", "round"] - ))); - }, - m(target, anchor) { - insert(target, span, anchor); - }, - p: noop, - d(detaching) { - if (detaching) { - detach(span); - } - } - }; -} -function create_each_block_15(ctx) { - let div; - let t; - let edgelink; - let current; - let if_block = ( - /*j*/ - ctx[8] !== 0 && create_if_block9(ctx) - ); - edgelink = new EdgeLink_default({ - props: { - edge: ( - /*edge*/ - ctx[6] - ), - plugin: ( - /*plugin*/ - ctx[0] - ), - show_node_options: ( - /*plugin*/ - ctx[0].settings.views.page.trail.show_node_options - ) - } - }); - return { - c() { - div = element("div"); - if (if_block) - if_block.c(); - t = space(); - create_component(edgelink.$$.fragment); - attr(div, "class", "BC-trail-view-item"); - }, - m(target, anchor) { - insert(target, div, anchor); - if (if_block) - if_block.m(div, null); - append(div, t); - mount_component(edgelink, div, null); - current = true; - }, - p(ctx2, dirty) { - if ( - /*j*/ - ctx2[8] !== 0 - ) - if_block.p(ctx2, dirty); - const edgelink_changes = {}; - if (dirty & /*plugin*/ - 1) - edgelink_changes.plugin = /*plugin*/ - ctx2[0]; - if (dirty & /*plugin*/ - 1) - edgelink_changes.show_node_options = /*plugin*/ - ctx2[0].settings.views.page.trail.show_node_options; - edgelink.$set(edgelink_changes); - }, - i(local) { - if (current) - return; - transition_in(edgelink.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(edgelink.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div); - } - if (if_block) - if_block.d(); - destroy_component(edgelink); - } - }; -} -function create_each_block7(ctx) { - let div; - let t; - let current; - let each_value_1 = ensure_array_like( - /*path*/ - ctx[3] - ); - let each_blocks = []; - for (let i = 0; i < each_value_1.length; i += 1) { - each_blocks[i] = create_each_block_15(get_each_context_15(ctx, each_value_1, i)); - } - const out = (i) => transition_out(each_blocks[i], 1, 1, () => { - each_blocks[i] = null; - }); - return { - c() { - div = element("div"); - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].c(); - } - t = space(); - attr(div, "class", "BC-trail-view-path flex gap-1.5"); - }, - m(target, anchor) { - insert(target, div, anchor); - for (let i = 0; i < each_blocks.length; i += 1) { - if (each_blocks[i]) { - each_blocks[i].m(div, null); - } - } - append(div, t); - current = true; - }, - p(ctx2, dirty) { - if (dirty & /*reversed, plugin*/ - 3) { - each_value_1 = ensure_array_like( - /*path*/ - ctx2[3] - ); - let i; - for (i = 0; i < each_value_1.length; i += 1) { - const child_ctx = get_each_context_15(ctx2, each_value_1, i); - if (each_blocks[i]) { - each_blocks[i].p(child_ctx, dirty); - transition_in(each_blocks[i], 1); - } else { - each_blocks[i] = create_each_block_15(child_ctx); - each_blocks[i].c(); - transition_in(each_blocks[i], 1); - each_blocks[i].m(div, t); - } - } - group_outros(); - for (i = each_value_1.length; i < each_blocks.length; i += 1) { - out(i); - } - check_outros(); - } - }, - i(local) { - if (current) - return; - for (let i = 0; i < each_value_1.length; i += 1) { - transition_in(each_blocks[i]); - } - current = true; - }, - o(local) { - each_blocks = each_blocks.filter(Boolean); - for (let i = 0; i < each_blocks.length; i += 1) { - transition_out(each_blocks[i]); - } - current = false; - }, - d(detaching) { - if (detaching) { - detach(div); - } - destroy_each(each_blocks, detaching); - } - }; -} -function create_fragment40(ctx) { - let div; - let current; - let each_value = ensure_array_like( - /*reversed*/ - ctx[1] - ); - let each_blocks = []; - for (let i = 0; i < each_value.length; i += 1) { - each_blocks[i] = create_each_block7(get_each_context7(ctx, each_value, i)); - } - const out = (i) => transition_out(each_blocks[i], 1, 1, () => { - each_blocks[i] = null; - }); - return { - c() { - div = element("div"); - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].c(); - } - attr(div, "class", "BC-trail-view flex flex-col gap-1 px-3 py-2 svelte-4v6yoh"); - }, - m(target, anchor) { - insert(target, div, anchor); - for (let i = 0; i < each_blocks.length; i += 1) { - if (each_blocks[i]) { - each_blocks[i].m(div, null); - } - } - current = true; - }, - p(ctx2, [dirty]) { - if (dirty & /*reversed, plugin*/ - 3) { - each_value = ensure_array_like( - /*reversed*/ - ctx2[1] - ); - let i; - for (i = 0; i < each_value.length; i += 1) { - const child_ctx = get_each_context7(ctx2, each_value, i); - if (each_blocks[i]) { - each_blocks[i].p(child_ctx, dirty); - transition_in(each_blocks[i], 1); - } else { - each_blocks[i] = create_each_block7(child_ctx); - each_blocks[i].c(); - transition_in(each_blocks[i], 1); - each_blocks[i].m(div, null); - } - } - group_outros(); - for (i = each_value.length; i < each_blocks.length; i += 1) { - out(i); - } - check_outros(); - } - }, - i(local) { - if (current) - return; - for (let i = 0; i < each_value.length; i += 1) { - transition_in(each_blocks[i]); - } - current = true; - }, - o(local) { - each_blocks = each_blocks.filter(Boolean); - for (let i = 0; i < each_blocks.length; i += 1) { - transition_out(each_blocks[i]); - } - current = false; - }, - d(detaching) { - if (detaching) { - detach(div); - } - destroy_each(each_blocks, detaching); - } - }; -} -function instance40($$self, $$props, $$invalidate) { - let { plugin } = $$props; - let { all_paths } = $$props; - const reversed = all_paths.map((path) => [...path].reverse()); - $$self.$$set = ($$props2) => { - if ("plugin" in $$props2) - $$invalidate(0, plugin = $$props2.plugin); - if ("all_paths" in $$props2) - $$invalidate(2, all_paths = $$props2.all_paths); - }; - return [plugin, reversed, all_paths]; -} -var TrailViewPath = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance40, create_fragment40, safe_not_equal, { plugin: 0, all_paths: 2 }, add_css4); - } -}; -var TrailViewPath_default = TrailViewPath; - -// src/components/page_views/TrailView.svelte -function get_each_context8(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[18] = list[i]; - return child_ctx; -} -function get_each_context_16(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[21] = list[i]; - return child_ctx; -} -function create_if_block_33(ctx) { - let p; - let t_value = ( - /*plugin*/ - ctx[0].settings.views.page.trail.no_path_message + "" - ); - let t; - return { - c() { - p = element("p"); - t = text(t_value); - attr(p, "class", "BC-trail-view-no-path search-empty-state"); - }, - m(target, anchor) { - insert(target, p, anchor); - append(p, t); - }, - p(ctx2, dirty) { - if (dirty & /*plugin*/ - 1 && t_value !== (t_value = /*plugin*/ - ctx2[0].settings.views.page.trail.no_path_message + "")) - set_data(t, t_value); - }, - i: noop, - o: noop, - d(detaching) { - if (detaching) { - detach(p); - } - } - }; -} -function create_if_block10(ctx) { - let div1; - let select0; - let t0; - let select1; - let t1; - let mergefieldsbutton; - let updating_merge_fields; - let t2; - let div0; - let button0; - let t3; - let button0_disabled_value; - let t4; - let span; - let t5; - let t6; - let t7; - let t8; - let button1; - let t9; - let button1_disabled_value; - let t10; - let current_block_type_index; - let if_block; - let if_block_anchor; - let current; - let mounted; - let dispose; - let each_value_1 = ensure_array_like(["grid", "path"]); - let each_blocks_1 = []; - for (let i = 0; i < 2; i += 1) { - each_blocks_1[i] = create_each_block_16(get_each_context_16(ctx, each_value_1, i)); - } - let each_value = ensure_array_like(["all", "shortest", "longest"]); - let each_blocks = []; - for (let i = 0; i < 3; i += 1) { - each_blocks[i] = create_each_block8(get_each_context8(ctx, each_value, i)); - } - function mergefieldsbutton_merge_fields_binding(value) { - ctx[14](value); - } - let mergefieldsbutton_props = {}; - if ( - /*plugin*/ - ctx[0].settings.views.page.trail.merge_fields !== void 0 - ) { - mergefieldsbutton_props.merge_fields = /*plugin*/ - ctx[0].settings.views.page.trail.merge_fields; - } - mergefieldsbutton = new MergeFieldsButton_default({ props: mergefieldsbutton_props }); - binding_callbacks.push(() => bind(mergefieldsbutton, "merge_fields", mergefieldsbutton_merge_fields_binding)); - const if_block_creators = [create_if_block_13, create_if_block_23]; - const if_blocks = []; - function select_block_type_1(ctx2, dirty) { - if ( - /*plugin*/ - ctx2[0].settings.views.page.trail.format === "grid" - ) - return 0; - if ( - /*plugin*/ - ctx2[0].settings.views.page.trail.format === "path" - ) - return 1; - return -1; - } - if (~(current_block_type_index = select_block_type_1(ctx, -1))) { - if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx); - } - return { - c() { - div1 = element("div"); - select0 = element("select"); - for (let i = 0; i < 2; i += 1) { - each_blocks_1[i].c(); - } - t0 = space(); - select1 = element("select"); - for (let i = 0; i < 3; i += 1) { - each_blocks[i].c(); - } - t1 = space(); - create_component(mergefieldsbutton.$$.fragment); - t2 = space(); - div0 = element("div"); - button0 = element("button"); - t3 = text("-"); - t4 = space(); - span = element("span"); - t5 = text( - /*depth*/ - ctx[2] - ); - t6 = text("/"); - t7 = text( - /*MAX_DEPTH*/ - ctx[1] - ); - t8 = space(); - button1 = element("button"); - t9 = text("+"); - t10 = space(); - if (if_block) - if_block.c(); - if_block_anchor = empty(); - attr(select0, "class", "dropdown"); - if ( - /*plugin*/ - ctx[0].settings.views.page.trail.format === void 0 - ) - add_render_callback(() => ( - /*select0_change_handler*/ - ctx[10].call(select0) - )); - attr(select1, "class", "dropdown"); - if ( - /*plugin*/ - ctx[0].settings.views.page.trail.selection === void 0 - ) - add_render_callback(() => ( - /*select1_change_handler*/ - ctx[12].call(select1) - )); - attr(button0, "class", "aspect-square text-lg"); - attr(button0, "aria-label", "Decrease max depth"); - button0.disabled = button0_disabled_value = /*depth*/ - ctx[2] <= 1; - attr(span, "class", "font-mono"); - attr(span, "aria-label", "Max depth"); - attr(button1, "class", "aspect-square text-lg"); - attr(button1, "aria-label", "Increase max depth"); - button1.disabled = button1_disabled_value = /*depth*/ - ctx[2] >= /*MAX_DEPTH*/ - ctx[1]; - attr(div0, "class", "flex items-center gap-1"); - attr(div1, "class", "mb-1 flex flex-wrap justify-between gap-3"); - toggle_class(div1, "hidden", !/*plugin*/ - ctx[0].settings.views.page.trail.show_controls); - }, - m(target, anchor) { - insert(target, div1, anchor); - append(div1, select0); - for (let i = 0; i < 2; i += 1) { - if (each_blocks_1[i]) { - each_blocks_1[i].m(select0, null); - } - } - select_option( - select0, - /*plugin*/ - ctx[0].settings.views.page.trail.format, - true - ); - append(div1, t0); - append(div1, select1); - for (let i = 0; i < 3; i += 1) { - if (each_blocks[i]) { - each_blocks[i].m(select1, null); - } - } - select_option( - select1, - /*plugin*/ - ctx[0].settings.views.page.trail.selection, - true - ); - append(div1, t1); - mount_component(mergefieldsbutton, div1, null); - append(div1, t2); - append(div1, div0); - append(div0, button0); - append(button0, t3); - append(div0, t4); - append(div0, span); - append(span, t5); - append(span, t6); - append(span, t7); - append(div0, t8); - append(div0, button1); - append(button1, t9); - insert(target, t10, anchor); - if (~current_block_type_index) { - if_blocks[current_block_type_index].m(target, anchor); - } - insert(target, if_block_anchor, anchor); - current = true; - if (!mounted) { - dispose = [ - listen( - select0, - "change", - /*select0_change_handler*/ - ctx[10] - ), - listen( - select0, - "change", - /*change_handler*/ - ctx[11] - ), - listen( - select1, - "change", - /*select1_change_handler*/ - ctx[12] - ), - listen( - select1, - "change", - /*change_handler_1*/ - ctx[13] - ), - listen( - button0, - "click", - /*click_handler*/ - ctx[15] - ), - listen( - button1, - "click", - /*click_handler_1*/ - ctx[16] - ) - ]; - mounted = true; - } - }, - p(ctx2, dirty) { - if (dirty & /*plugin*/ - 1) { - select_option( - select0, - /*plugin*/ - ctx2[0].settings.views.page.trail.format - ); - } - if (dirty & /*plugin*/ - 1) { - select_option( - select1, - /*plugin*/ - ctx2[0].settings.views.page.trail.selection - ); - } - const mergefieldsbutton_changes = {}; - if (!updating_merge_fields && dirty & /*plugin*/ - 1) { - updating_merge_fields = true; - mergefieldsbutton_changes.merge_fields = /*plugin*/ - ctx2[0].settings.views.page.trail.merge_fields; - add_flush_callback(() => updating_merge_fields = false); - } - mergefieldsbutton.$set(mergefieldsbutton_changes); - if (!current || dirty & /*depth*/ - 4 && button0_disabled_value !== (button0_disabled_value = /*depth*/ - ctx2[2] <= 1)) { - button0.disabled = button0_disabled_value; - } - if (!current || dirty & /*depth*/ - 4) - set_data( - t5, - /*depth*/ - ctx2[2] - ); - if (!current || dirty & /*MAX_DEPTH*/ - 2) - set_data( - t7, - /*MAX_DEPTH*/ - ctx2[1] - ); - if (!current || dirty & /*depth, MAX_DEPTH*/ - 6 && button1_disabled_value !== (button1_disabled_value = /*depth*/ - ctx2[2] >= /*MAX_DEPTH*/ - ctx2[1])) { - button1.disabled = button1_disabled_value; - } - if (!current || dirty & /*plugin*/ - 1) { - toggle_class(div1, "hidden", !/*plugin*/ - ctx2[0].settings.views.page.trail.show_controls); - } - let previous_block_index = current_block_type_index; - current_block_type_index = select_block_type_1(ctx2, dirty); - if (current_block_type_index === previous_block_index) { - if (~current_block_type_index) { - if_blocks[current_block_type_index].p(ctx2, dirty); - } - } else { - if (if_block) { - group_outros(); - transition_out(if_blocks[previous_block_index], 1, 1, () => { - if_blocks[previous_block_index] = null; - }); - check_outros(); - } - if (~current_block_type_index) { - if_block = if_blocks[current_block_type_index]; - if (!if_block) { - if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2); - if_block.c(); - } else { - if_block.p(ctx2, dirty); - } - transition_in(if_block, 1); - if_block.m(if_block_anchor.parentNode, if_block_anchor); - } else { - if_block = null; - } - } - }, - i(local) { - if (current) - return; - transition_in(mergefieldsbutton.$$.fragment, local); - transition_in(if_block); - current = true; - }, - o(local) { - transition_out(mergefieldsbutton.$$.fragment, local); - transition_out(if_block); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div1); - detach(t10); - detach(if_block_anchor); - } - destroy_each(each_blocks_1, detaching); - destroy_each(each_blocks, detaching); - destroy_component(mergefieldsbutton); - if (~current_block_type_index) { - if_blocks[current_block_type_index].d(detaching); - } - mounted = false; - run_all(dispose); - } - }; -} -function create_each_block_16(ctx) { - let option; - let option_value_value; - return { - c() { - option = element("option"); - option.textContent = `${/*format*/ - ctx[21]} `; - option.__value = option_value_value = /*format*/ - ctx[21]; - set_input_value(option, option.__value); - }, - m(target, anchor) { - insert(target, option, anchor); - }, - p: noop, - d(detaching) { - if (detaching) { - detach(option); - } - } - }; -} -function create_each_block8(ctx) { - let option; - let option_value_value; - return { - c() { - option = element("option"); - option.textContent = `${/*s*/ - ctx[18]} `; - option.__value = option_value_value = /*s*/ - ctx[18]; - set_input_value(option, option.__value); - }, - m(target, anchor) { - insert(target, option, anchor); - }, - p: noop, - d(detaching) { - if (detaching) { - detach(option); - } - } - }; -} -function create_if_block_23(ctx) { - let trailviewpath; - let current; - trailviewpath = new TrailViewPath_default({ - props: { - plugin: ( - /*plugin*/ - ctx[0] - ), - all_paths: ( - /*sorted_paths*/ - ctx[3] - ) - } - }); - return { - c() { - create_component(trailviewpath.$$.fragment); - }, - m(target, anchor) { - mount_component(trailviewpath, target, anchor); - current = true; - }, - p(ctx2, dirty) { - const trailviewpath_changes = {}; - if (dirty & /*plugin*/ - 1) - trailviewpath_changes.plugin = /*plugin*/ - ctx2[0]; - if (dirty & /*sorted_paths*/ - 8) - trailviewpath_changes.all_paths = /*sorted_paths*/ - ctx2[3]; - trailviewpath.$set(trailviewpath_changes); - }, - i(local) { - if (current) - return; - transition_in(trailviewpath.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(trailviewpath.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(trailviewpath, detaching); - } - }; -} -function create_if_block_13(ctx) { - let trailviewgrid; - let current; - trailviewgrid = new TrailViewGrid_default({ - props: { - plugin: ( - /*plugin*/ - ctx[0] - ), - all_paths: ( - /*sorted_paths*/ - ctx[3] - ) - } - }); - return { - c() { - create_component(trailviewgrid.$$.fragment); - }, - m(target, anchor) { - mount_component(trailviewgrid, target, anchor); - current = true; - }, - p(ctx2, dirty) { - const trailviewgrid_changes = {}; - if (dirty & /*plugin*/ - 1) - trailviewgrid_changes.plugin = /*plugin*/ - ctx2[0]; - if (dirty & /*sorted_paths*/ - 8) - trailviewgrid_changes.all_paths = /*sorted_paths*/ - ctx2[3]; - trailviewgrid.$set(trailviewgrid_changes); - }, - i(local) { - if (current) - return; - transition_in(trailviewgrid.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(trailviewgrid.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(trailviewgrid, detaching); - } - }; -} -function create_key_block3(ctx) { - let current_block_type_index; - let if_block; - let if_block_anchor; - let current; - const if_block_creators = [create_if_block10, create_if_block_33]; - const if_blocks = []; - function select_block_type(ctx2, dirty) { - if ( - /*sorted_paths*/ - ctx2[3].length - ) - return 0; - if ( - /*plugin*/ - ctx2[0].settings.views.page.trail.no_path_message - ) - return 1; - return -1; - } - if (~(current_block_type_index = select_block_type(ctx, -1))) { - if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx); - } - return { - c() { - if (if_block) - if_block.c(); - if_block_anchor = empty(); - }, - m(target, anchor) { - if (~current_block_type_index) { - if_blocks[current_block_type_index].m(target, anchor); - } - insert(target, if_block_anchor, anchor); - current = true; - }, - p(ctx2, dirty) { - let previous_block_index = current_block_type_index; - current_block_type_index = select_block_type(ctx2, dirty); - if (current_block_type_index === previous_block_index) { - if (~current_block_type_index) { - if_blocks[current_block_type_index].p(ctx2, dirty); - } - } else { - if (if_block) { - group_outros(); - transition_out(if_blocks[previous_block_index], 1, 1, () => { - if_blocks[previous_block_index] = null; - }); - check_outros(); - } - if (~current_block_type_index) { - if_block = if_blocks[current_block_type_index]; - if (!if_block) { - if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2); - if_block.c(); - } else { - if_block.p(ctx2, dirty); - } - transition_in(if_block, 1); - if_block.m(if_block_anchor.parentNode, if_block_anchor); - } else { - if_block = null; - } - } - }, - i(local) { - if (current) - return; - transition_in(if_block); - current = true; - }, - o(local) { - transition_out(if_block); - current = false; - }, - d(detaching) { - if (detaching) { - detach(if_block_anchor); - } - if (~current_block_type_index) { - if_blocks[current_block_type_index].d(detaching); - } - } - }; -} -function create_fragment41(ctx) { - let div; - let previous_key = ( - /*sorted_paths*/ - ctx[3] - ); - let current; - let key_block = create_key_block3(ctx); - return { - c() { - div = element("div"); - key_block.c(); - }, - m(target, anchor) { - insert(target, div, anchor); - key_block.m(div, null); - current = true; - }, - p(ctx2, [dirty]) { - if (dirty & /*sorted_paths*/ - 8 && safe_not_equal(previous_key, previous_key = /*sorted_paths*/ - ctx2[3])) { - group_outros(); - transition_out(key_block, 1, 1, noop); - check_outros(); - key_block = create_key_block3(ctx2); - key_block.c(); - transition_in(key_block, 1); - key_block.m(div, null); - } else { - key_block.p(ctx2, dirty); - } - }, - i(local) { - if (current) - return; - transition_in(key_block); - current = true; - }, - o(local) { - transition_out(key_block); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div); - } - key_block.d(detaching); - } - }; -} -function instance41($$self, $$props, $$invalidate) { - let edge_field_labels; - let all_paths; - let selected_paths; - let MAX_DEPTH2; - let depth; - let sliced_paths; - let deduped_paths; - let sorted_paths; - let { plugin } = $$props; - let { file_path } = $$props; - const base_traversal = (attr2) => Traverse.tree_to_all_paths(Traverse.build_tree(plugin.graph, file_path, {}, (e) => has_edge_attrs(e, attr2))); - function select0_change_handler() { - plugin.settings.views.page.trail.format = select_value(this); - $$invalidate(0, plugin); - } - const change_handler = async () => await plugin.saveSettings(); - function select1_change_handler() { - plugin.settings.views.page.trail.selection = select_value(this); - $$invalidate(0, plugin); - } - const change_handler_1 = async () => await plugin.saveSettings(); - function mergefieldsbutton_merge_fields_binding(value) { - if ($$self.$$.not_equal(plugin.settings.views.page.trail.merge_fields, value)) { - plugin.settings.views.page.trail.merge_fields = value; - $$invalidate(0, plugin); - } - } - const click_handler = () => $$invalidate(2, depth = Math.max(1, depth - 1)); - const click_handler_1 = () => $$invalidate(2, depth = Math.min(MAX_DEPTH2, depth + 1)); - $$self.$$set = ($$props2) => { - if ("plugin" in $$props2) - $$invalidate(0, plugin = $$props2.plugin); - if ("file_path" in $$props2) - $$invalidate(4, file_path = $$props2.file_path); - }; - $$self.$$.update = () => { - if ($$self.$$.dirty & /*plugin*/ - 1) { - $: - $$invalidate(9, edge_field_labels = resolve_field_group_labels(plugin.settings.edge_field_groups, plugin.settings.views.page.trail.field_group_labels)); - } - if ($$self.$$.dirty & /*plugin, file_path, edge_field_labels*/ - 529) { - $: - $$invalidate(8, all_paths = plugin.graph.hasNode(file_path) ? plugin.settings.views.page.trail.merge_fields ? base_traversal({ $or_fields: edge_field_labels }) : edge_field_labels.flatMap((field) => base_traversal({ field })) : []); - } - if ($$self.$$.dirty & /*plugin, all_paths*/ - 257) { - $: - $$invalidate(7, selected_paths = plugin.settings.views.page.trail.selection === "all" ? all_paths : plugin.settings.views.page.trail.selection === "shortest" ? all_paths.slice(-1) : plugin.settings.views.page.trail.selection === "longest" ? all_paths.slice(0, 1) : [[]]); - } - if ($$self.$$.dirty & /*selected_paths*/ - 128) { - $: - $$invalidate(1, MAX_DEPTH2 = Math.max(0, ...selected_paths.map((p) => p.length))); - } - if ($$self.$$.dirty & /*MAX_DEPTH, plugin*/ - 3) { - $: - $$invalidate(2, depth = Math.min(MAX_DEPTH2, plugin.settings.views.page.trail.default_depth)); - } - if ($$self.$$.dirty & /*selected_paths, depth*/ - 132) { - $: - $$invalidate(6, sliced_paths = selected_paths.map((path) => path.slice(0, depth))); - } - if ($$self.$$.dirty & /*depth, MAX_DEPTH, sliced_paths*/ - 70) { - $: - $$invalidate(5, deduped_paths = // There are no duplicates if the depth is the max depth. - // The traversal wouldn't add them in the first place. - depth === MAX_DEPTH2 ? sliced_paths : remove_duplicates_by(sliced_paths, (path) => path.map((p) => p.target_id).join("/"))); - } - if ($$self.$$.dirty & /*deduped_paths*/ - 32) { - $: - $$invalidate(3, sorted_paths = deduped_paths.sort((a, b) => { - const len_diff = b.length - a.length; - if (len_diff !== 0) - return len_diff; - else - return a[0].target_id.localeCompare(b[0].target_id); - })); - } - }; - return [ - plugin, - MAX_DEPTH2, - depth, - sorted_paths, - file_path, - deduped_paths, - sliced_paths, - selected_paths, - all_paths, - edge_field_labels, - select0_change_handler, - change_handler, - select1_change_handler, - change_handler_1, - mergefieldsbutton_merge_fields_binding, - click_handler, - click_handler_1 - ]; -} -var TrailView = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance41, create_fragment41, safe_not_equal, { plugin: 0, file_path: 4 }); - } -}; -var TrailView_default = TrailView; - -// src/components/page_views/index.svelte -function create_if_block11(ctx) { - let div; - let t; - let current; - let if_block0 = ( - /*enabled_views*/ - ctx[2].grid && create_if_block_24(ctx) - ); - let if_block1 = ( - /*enabled_views*/ - ctx[2].prev_next && create_if_block_14(ctx) - ); - return { - c() { - div = element("div"); - if (if_block0) - if_block0.c(); - t = space(); - if (if_block1) - if_block1.c(); - attr(div, "class", "markdown-rendered mb-4 flex flex-col gap-2"); - }, - m(target, anchor) { - insert(target, div, anchor); - if (if_block0) - if_block0.m(div, null); - append(div, t); - if (if_block1) - if_block1.m(div, null); - current = true; - }, - p(ctx2, dirty) { - if ( - /*enabled_views*/ - ctx2[2].grid - ) - if_block0.p(ctx2, dirty); - if ( - /*enabled_views*/ - ctx2[2].prev_next - ) - if_block1.p(ctx2, dirty); - }, - i(local) { - if (current) - return; - transition_in(if_block0); - transition_in(if_block1); - current = true; - }, - o(local) { - transition_out(if_block0); - transition_out(if_block1); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div); - } - if (if_block0) - if_block0.d(); - if (if_block1) - if_block1.d(); - } - }; -} -function create_if_block_24(ctx) { - let trailview; - let current; - trailview = new TrailView_default({ - props: { - plugin: ( - /*plugin*/ - ctx[0] - ), - file_path: ( - /*file_path*/ - ctx[1] - ) - } - }); - return { - c() { - create_component(trailview.$$.fragment); - }, - m(target, anchor) { - mount_component(trailview, target, anchor); - current = true; - }, - p(ctx2, dirty) { - const trailview_changes = {}; - if (dirty & /*plugin*/ - 1) - trailview_changes.plugin = /*plugin*/ - ctx2[0]; - if (dirty & /*file_path*/ - 2) - trailview_changes.file_path = /*file_path*/ - ctx2[1]; - trailview.$set(trailview_changes); - }, - i(local) { - if (current) - return; - transition_in(trailview.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(trailview.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(trailview, detaching); - } - }; -} -function create_if_block_14(ctx) { - let prevnextview; - let current; - prevnextview = new PrevNextView_default({ - props: { - plugin: ( - /*plugin*/ - ctx[0] - ), - file_path: ( - /*file_path*/ - ctx[1] - ) - } - }); - return { - c() { - create_component(prevnextview.$$.fragment); - }, - m(target, anchor) { - mount_component(prevnextview, target, anchor); - current = true; - }, - p(ctx2, dirty) { - const prevnextview_changes = {}; - if (dirty & /*plugin*/ - 1) - prevnextview_changes.plugin = /*plugin*/ - ctx2[0]; - if (dirty & /*file_path*/ - 2) - prevnextview_changes.file_path = /*file_path*/ - ctx2[1]; - prevnextview.$set(prevnextview_changes); - }, - i(local) { - if (current) - return; - transition_in(prevnextview.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(prevnextview.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(prevnextview, detaching); - } - }; -} -function create_fragment42(ctx) { - let show_if = Object.values( - /*enabled_views*/ - ctx[2] - ).some(Boolean); - let if_block_anchor; - let current; - let if_block = show_if && create_if_block11(ctx); - return { - c() { - if (if_block) - if_block.c(); - if_block_anchor = empty(); - }, - m(target, anchor) { - if (if_block) - if_block.m(target, anchor); - insert(target, if_block_anchor, anchor); - current = true; - }, - p(ctx2, [dirty]) { - if (show_if) - if_block.p(ctx2, dirty); - }, - i(local) { - if (current) - return; - transition_in(if_block); - current = true; - }, - o(local) { - transition_out(if_block); - current = false; - }, - d(detaching) { - if (detaching) { - detach(if_block_anchor); - } - if (if_block) - if_block.d(detaching); - } - }; -} -function instance42($$self, $$props, $$invalidate) { - let { plugin } = $$props; - let { file_path } = $$props; - const enabled_views = { - grid: plugin.settings.views.page.trail.enabled, - prev_next: plugin.settings.views.page.prev_next.enabled - }; - $$self.$$set = ($$props2) => { - if ("plugin" in $$props2) - $$invalidate(0, plugin = $$props2.plugin); - if ("file_path" in $$props2) - $$invalidate(1, file_path = $$props2.file_path); - }; - return [plugin, file_path, enabled_views]; -} -var Page_views = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance42, create_fragment42, safe_not_equal, { plugin: 0, file_path: 1 }); - } -}; -var page_views_default = Page_views; - -// src/views/page.ts -var redraw_page_views = (plugin) => { - const markdown_views = plugin.app.workspace.getLeavesOfType("markdown"); - if (!markdown_views.length) { - log.info("redraw_page_views > No markdown views found"); - return; - } - markdown_views.forEach((leaf) => { - var _a, _b, _c; - if (!(leaf.view instanceof import_obsidian22.MarkdownView)) - return; - const markdown_view = leaf.view; - const mode = markdown_view.getMode(); - const page_views_el = (_a = markdown_view.containerEl.querySelector(".BC-page-views")) != null ? _a : markdown_view.containerEl.createDiv({ - cls: "BC-page-views w-full mx-auto" - }); - const max_width = plugin.settings.views.page.all.readable_line_width ? "var(--file-line-width)" : "none"; - page_views_el.setAttribute("style", `max-width: ${max_width};`); - page_views_el.classList.toggle( - "BC-page-views-sticky", - plugin.settings.views.page.all.sticky - ); - page_views_el.empty(); - if (mode === "preview") { - const view_parent = markdown_view.containerEl.querySelector( - ".markdown-reading-view > .markdown-preview-view" - ); - if (!view_parent) { - return log.info( - "redraw_page_views > No view_parent (mode=preview)" - ); - } - view_parent.insertBefore(page_views_el, view_parent.firstChild); - } else { - const view_parent = markdown_view.containerEl.querySelector(".cm-scroller"); - if (!view_parent) { - return log.info( - "redraw_page_views > No view_parent (mode=source)" - ); - } - view_parent.addClass("flex-col"); - view_parent.insertBefore(page_views_el, view_parent.firstChild); - } - new page_views_default({ - target: page_views_el, - props: { plugin, file_path: (_c = (_b = markdown_view.file) == null ? void 0 : _b.path) != null ? _c : "" } - }); - }); -}; - -// src/settings/PageViewSettings.ts -var _add_settings_page_views = (plugin, container_el) => { - new_setting(container_el, { - name: "Sticky", - desc: "Keep the page views pinned to the top of the note as you scroll", - toggle: { - value: plugin.settings.views.page.all.sticky, - cb: async (value) => { - plugin.settings.views.page.all.sticky = value; - await plugin.saveSettings(); - redraw_page_views(plugin); - } - } - }); - new_setting(container_el, { - name: "Readable line width", - desc: "Limit to the width of the text in the editor", - toggle: { - value: plugin.settings.views.page.all.readable_line_width, - cb: async (value) => { - plugin.settings.views.page.all.readable_line_width = value; - await plugin.saveSettings(); - redraw_page_views(plugin); - } - } - }); -}; - -// src/settings/PrevNextSettings.ts -var import_obsidian23 = require("obsidian"); -var _add_settings_prev_next_view = (plugin, containerEl) => { - new import_obsidian23.Setting(containerEl).setName("Enable Previous/Next view").setDesc("Show the Previous/Next view at the top of the page").addToggle((toggle) => { - toggle.setValue(plugin.settings.views.page.prev_next.enabled).onChange(async (value) => { - plugin.settings.views.page.prev_next.enabled = value; - await Promise.all([plugin.saveSettings()]); - plugin.refresh({ - rebuild_graph: false, - active_file_store: false - }); - }); - }); - new FieldGroupLabelsSettingItem_default({ - target: containerEl, - props: { - name: "Field Groups for Left", - description: "Select the field groups to show in the left side of this view", - edge_field_groups: plugin.settings.edge_field_groups, - field_group_labels: plugin.settings.views.page.prev_next.field_group_labels.prev - } - }).$on("select", async (e) => { - plugin.settings.views.page.prev_next.field_group_labels.prev = e.detail; - await Promise.all([ - plugin.saveSettings(), - plugin.refresh({ rebuild_graph: false }) - ]); - }); - new FieldGroupLabelsSettingItem_default({ - target: containerEl, - props: { - name: "Field Groups for Right", - description: "Select the field groups to show in the right side of this view", - edge_field_groups: plugin.settings.edge_field_groups, - field_group_labels: plugin.settings.views.page.prev_next.field_group_labels.next - } - }).$on("select", async (e) => { - plugin.settings.views.page.prev_next.field_group_labels.next = e.detail; - await Promise.all([ - plugin.saveSettings(), - plugin.refresh({ rebuild_graph: false }) - ]); - }); - _add_settings_show_node_options(plugin, containerEl, { - get: () => plugin.settings.views.page.prev_next.show_node_options, - set: (value) => plugin.settings.views.page.prev_next.show_node_options = value - }); -}; - -// src/settings/RebuildGraphSettings.ts -var _add_settings_rebuild_graph = (plugin, containerEl) => { - new_setting(containerEl, { - name: "Notify on refresh", - desc: "Show a notification when the graph is rebuilt", - toggle: { - value: plugin.settings.commands.rebuild_graph.notify, - cb: async (value) => { - plugin.settings.commands.rebuild_graph.notify = value; - await Promise.all([plugin.saveSettings(), plugin.refresh({})]); - } - } - }); - new_setting(containerEl, { - name: "Triggers", - desc: "When to rebuild the graph", - checklist: { - options: { - note_save: plugin.settings.commands.rebuild_graph.trigger.note_save, - layout_change: plugin.settings.commands.rebuild_graph.trigger.layout_change - }, - cb: async (value) => { - plugin.settings.commands.rebuild_graph.trigger = value; - await Promise.all([plugin.saveSettings(), plugin.refresh({})]); - } - } - }); -}; - -// src/settings/RegexNoteSettings.ts -var _add_settings_regex_note = (plugin, containerEl) => { - new_setting(containerEl, { - name: "Default Field", - desc: "Field to use if the BC-regex-note-field is not specified", - select: { - value: plugin.settings.explicit_edge_sources.regex_note.default_field, - options: plugin.settings.edge_fields.map((f) => f.label), - cb: async (value) => { - plugin.settings.explicit_edge_sources.regex_note.default_field = value; - await Promise.all([plugin.refresh(), plugin.saveSettings()]); - } - } - }); -}; - -// src/settings/TagNoteSettings.ts -var _add_settings_tag_note = (plugin, containerEl) => { - new_setting(containerEl, { - name: "Default Field", - desc: "Field to use if the BC-tag-note-field is not specified", - select: { - value: plugin.settings.explicit_edge_sources.tag_note.default_field, - options: plugin.settings.edge_fields.map((f) => f.label), - cb: async (value) => { - plugin.settings.explicit_edge_sources.tag_note.default_field = value; - await Promise.all([plugin.refresh(), plugin.saveSettings()]); - } - } - }); -}; - -// src/settings/ThreadSettings.ts -var _add_settings_thread = (plugin, contentEl) => { - const { settings } = plugin; - new_setting(contentEl, { - name: "Destination", - desc: "Where to write the new edge to", - select: { - options: ["frontmatter", "dataview-inline", "none"], - value: settings.commands.thread.default_options.destination, - cb: async (value) => { - settings.commands.thread.default_options.destination = value; - await plugin.saveSettings(); - } - } - }); - new_setting(contentEl, { - name: "Target Path Template", - desc: "The template to use for the target path. You don't need to add the .md extension.", - input: { - value: settings.commands.thread.default_options.target_path_template, - cb: async (value) => { - settings.commands.thread.default_options.target_path_template = value; - await plugin.saveSettings(); - } - } - }); -}; - -// src/settings/TreeViewSettings.ts -var _add_settings_tree_view = (plugin, containerEl) => { - new_setting(containerEl, { - name: "Collapse", - desc: "Collapse the tree by default", - toggle: { - value: plugin.settings.views.side.tree.collapse, - cb: async (checked) => { - plugin.settings.views.side.tree.collapse = checked; - await Promise.all([ - plugin.saveSettings(), - plugin.refresh({ - redraw_side_views: true, - rebuild_graph: false - }) - ]); - } - } - }); - new EdgeSortIdSettingItem_default({ - target: containerEl, - props: { edge_sort_id: plugin.settings.views.side.tree.edge_sort_id } - }).$on("select", async (e) => { - plugin.settings.views.side.tree.edge_sort_id = e.detail; - await Promise.all([ - plugin.saveSettings(), - plugin.refresh({ - redraw_side_views: true, - rebuild_graph: false - }) - ]); - }); - new ShowAttributesSettingItem_default({ - target: containerEl, - props: { - show_attributes: plugin.settings.views.side.tree.show_attributes - } - }).$on("select", async (e) => { - plugin.settings.views.side.tree.show_attributes = e.detail; - await Promise.all([ - plugin.saveSettings(), - plugin.refresh({ - redraw_side_views: true, - rebuild_graph: false - }) - ]); - }); - new FieldGroupLabelsSettingItem_default({ - target: containerEl, - props: { - edge_field_groups: plugin.settings.edge_field_groups, - field_group_labels: plugin.settings.views.side.tree.field_group_labels - } - }).$on("select", async (e) => { - plugin.settings.views.side.tree.field_group_labels = e.detail; - await Promise.all([ - plugin.saveSettings(), - plugin.refresh({ - redraw_side_views: true, - rebuild_graph: false - }) - ]); - }); - new_setting(containerEl, { - name: "Merge Fields", - desc: "Merge fields in the traversal, instead of keeping their paths separate", - toggle: { - value: plugin.settings.views.side.tree.merge_fields, - cb: async (value) => { - plugin.settings.views.side.tree.merge_fields = value; - await Promise.all([ - plugin.saveSettings(), - plugin.refresh({ - redraw_side_views: true, - rebuild_graph: false - }) - ]); - } - } - }); - _add_settings_show_node_options(plugin, containerEl, { - get: () => plugin.settings.views.side.tree.show_node_options, - set: (value) => plugin.settings.views.side.tree.show_node_options = value - }); -}; - -// src/settings/SettingsTab.ts -var make_details_el = (parent, o) => { - let details; - let summary; - let children2; - details = parent.createEl("details", { - cls: "tree-item", - ...o == null ? void 0 : o.d - }); - summary = details.createEl("summary", { - cls: "text-xl p-1 tree-item-self is-clickable", - ...o == null ? void 0 : o.s - }); - children2 = details.createEl("div", { cls: "tree-item-children pl-4" }); - return { - details, - summary, - children: children2 - }; -}; -var BreadcrumbsSettingTab = class extends import_obsidian24.PluginSettingTab { - constructor(app, plugin) { - super(app, plugin); - this.components = []; - this.plugin = plugin; - } - display() { - const { containerEl, plugin } = this; - containerEl.empty(); - containerEl.addClass("BC-settings-tab"); - this.components.push( - new EdgeFieldSettings_default({ - props: { plugin }, - target: make_details_el(containerEl, { - s: { text: "> Edge Fields" } - }).children - }) - ); - containerEl.createEl("hr"); - containerEl.createEl("h3", { text: "Implied Relations" }); - this.components.push( - new TransitiveImpliedRelations_default({ - props: { plugin }, - target: make_details_el(containerEl, { - s: { text: "> Transitive" } - }).children - }) - ); - containerEl.createEl("hr"); - containerEl.createEl("h3", { text: "Edge Sources" }); - _add_settings_tag_note( - plugin, - make_details_el(containerEl, { s: { text: "> Tag Notes" } }).children - ); - _add_settings_list_note( - plugin, - make_details_el(containerEl, { s: { text: "> List Notes" } }).children - ); - _add_settings_date_note( - plugin, - make_details_el(containerEl, { s: { text: "> Date Notes" } }).children - ); - _add_settings_regex_note( - plugin, - make_details_el(containerEl, { s: { text: "> Regex Notes" } }).children - ); - _add_settings_dendron_note( - plugin, - make_details_el(containerEl, { s: { text: "> Dendron Notes" } }).children - ); - _add_settings_johnny_decimal_note( - plugin, - make_details_el(containerEl, { - s: { text: "> Johnny Decimal Notes" } - }).children - ); - containerEl.createEl("hr"); - containerEl.createEl("h3", { text: "Views" }); - _add_settings_matrix( - plugin, - make_details_el(containerEl, { s: { text: "> Matrix" } }).children - ); - const page_details = make_details_el(containerEl, { - s: { text: "> Page" } - }).children; - page_details.createEl("h5", { text: "General" }); - _add_settings_page_views(plugin, page_details); - page_details.createEl("h5", { text: "Trail" }); - _add_settings_trail_view(plugin, page_details); - page_details.createEl("h5", { text: "Previous/Next" }); - _add_settings_prev_next_view(plugin, page_details); - _add_settings_tree_view( - plugin, - make_details_el(containerEl, { s: { text: "> Tree" } }).children - ); - _add_settings_codeblocks( - plugin, - make_details_el(containerEl, { s: { text: "> Codeblocks" } }).children - ); - containerEl.createEl("hr"); - containerEl.createEl("h3", { text: "Commands" }); - _add_settings_rebuild_graph( - plugin, - make_details_el(containerEl, { s: { text: "> Rebuild Graph" } }).children - ); - _add_settings_list_index( - plugin, - make_details_el(containerEl, { s: { text: "> List Index" } }).children - ); - _add_settings_freeze_implied_edges( - plugin, - make_details_el(containerEl, { - s: { text: "> Freeze Implied Edges" } - }).children - ); - _add_settings_thread( - plugin, - make_details_el(containerEl, { s: { text: "> Thread" } }).children - ); - containerEl.createEl("hr"); - containerEl.createEl("h3", { text: "Suggestors" }); - _add_settings_edge_field_suggestor( - plugin, - make_details_el(containerEl, { - s: { text: "> Edge Field Suggestor" } - }).children - ); - containerEl.createEl("hr"); - _add_settings_debug( - plugin, - make_details_el(containerEl, { s: { text: "> Debug" } }).children - ); - } - hide() { - if (this.plugin.settings.is_dirty) { - new import_obsidian24.Notice( - "\u26A0\uFE0F Exited without saving settings. Your changes are still in effect, but were not saved. Go back and click 'Save' if you want them to persist. Otherwise, reload Obsidian to revert to the last saved settings." - ); - } - this.components.forEach((c) => c.$destroy()); - } -}; - -// src/views/matrix.ts -var import_obsidian25 = require("obsidian"); - -// src/components/button/ChevronCollapseButton.svelte -function create_else_block6(ctx) { - let chevronsupdown; - let current; - chevronsupdown = new chevrons_up_down_default({ props: { size: ICON_SIZE } }); - return { - c() { - create_component(chevronsupdown.$$.fragment); - }, - m(target, anchor) { - mount_component(chevronsupdown, target, anchor); - current = true; - }, - i(local) { - if (current) - return; - transition_in(chevronsupdown.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(chevronsupdown.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(chevronsupdown, detaching); - } - }; -} -function create_if_block12(ctx) { - let chevronsdownup; - let current; - chevronsdownup = new chevrons_down_up_default({ props: { size: ICON_SIZE } }); - return { - c() { - create_component(chevronsdownup.$$.fragment); - }, - m(target, anchor) { - mount_component(chevronsdownup, target, anchor); - current = true; - }, - i(local) { - if (current) - return; - transition_in(chevronsdownup.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(chevronsdownup.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(chevronsdownup, detaching); - } - }; -} -function create_fragment43(ctx) { - let button; - let current_block_type_index; - let if_block; - let button_aria_label_value; - let current; - let mounted; - let dispose; - const if_block_creators = [create_if_block12, create_else_block6]; - const if_blocks = []; - function select_block_type(ctx2, dirty) { - if ( - /*collapse*/ - ctx2[0] - ) - return 0; - return 1; - } - current_block_type_index = select_block_type(ctx, -1); - if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx); - return { - c() { - button = element("button"); - if_block.c(); - attr( - button, - "class", - /*cls*/ - ctx[1] - ); - attr(button, "aria-label", button_aria_label_value = /*collapse*/ - ctx[0] ? "Expand" : "Collapse"); - }, - m(target, anchor) { - insert(target, button, anchor); - if_blocks[current_block_type_index].m(button, null); - current = true; - if (!mounted) { - dispose = listen( - button, - "click", - /*click_handler*/ - ctx[2] - ); - mounted = true; - } - }, - p(ctx2, [dirty]) { - let previous_block_index = current_block_type_index; - current_block_type_index = select_block_type(ctx2, dirty); - if (current_block_type_index !== previous_block_index) { - group_outros(); - transition_out(if_blocks[previous_block_index], 1, 1, () => { - if_blocks[previous_block_index] = null; - }); - check_outros(); - if_block = if_blocks[current_block_type_index]; - if (!if_block) { - if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2); - if_block.c(); - } else { - } - transition_in(if_block, 1); - if_block.m(button, null); - } - if (!current || dirty & /*cls*/ - 2) { - attr( - button, - "class", - /*cls*/ - ctx2[1] - ); - } - if (!current || dirty & /*collapse*/ - 1 && button_aria_label_value !== (button_aria_label_value = /*collapse*/ - ctx2[0] ? "Expand" : "Collapse")) { - attr(button, "aria-label", button_aria_label_value); - } - }, - i(local) { - if (current) - return; - transition_in(if_block); - current = true; - }, - o(local) { - transition_out(if_block); - current = false; - }, - d(detaching) { - if (detaching) { - detach(button); - } - if_blocks[current_block_type_index].d(); - mounted = false; - dispose(); - } - }; -} -function instance43($$self, $$props, $$invalidate) { - let { cls = "" } = $$props; - let { collapse } = $$props; - const click_handler = () => $$invalidate(0, collapse = !collapse); - $$self.$$set = ($$props2) => { - if ("cls" in $$props2) - $$invalidate(1, cls = $$props2.cls); - if ("collapse" in $$props2) - $$invalidate(0, collapse = $$props2.collapse); - }; - return [collapse, cls, click_handler]; -} -var ChevronCollapseButton = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance43, create_fragment43, safe_not_equal, { cls: 1, collapse: 0 }); - } -}; -var ChevronCollapseButton_default = ChevronCollapseButton; - -// src/components/button/RebuildGraphButton.svelte -function create_fragment44(ctx) { - let button; - let rotateccw; - let current; - let mounted; - let dispose; - rotateccw = new rotate_ccw_default({ props: { size: ICON_SIZE } }); - return { - c() { - button = element("button"); - create_component(rotateccw.$$.fragment); - attr( - button, - "class", - /*cls*/ - ctx[0] - ); - attr(button, "aria-label", "Rebuild Graph"); - }, - m(target, anchor) { - insert(target, button, anchor); - mount_component(rotateccw, button, null); - current = true; - if (!mounted) { - dispose = listen( - button, - "click", - /*click_handler*/ - ctx[2] - ); - mounted = true; - } - }, - p(ctx2, [dirty]) { - if (!current || dirty & /*cls*/ - 1) { - attr( - button, - "class", - /*cls*/ - ctx2[0] - ); - } - }, - i(local) { - if (current) - return; - transition_in(rotateccw.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(rotateccw.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(button); - } - destroy_component(rotateccw); - mounted = false; - dispose(); - } - }; -} -function instance44($$self, $$props, $$invalidate) { - let { cls = "" } = $$props; - let { plugin } = $$props; - const click_handler = () => plugin.refresh(); - $$self.$$set = ($$props2) => { - if ("cls" in $$props2) - $$invalidate(0, cls = $$props2.cls); - if ("plugin" in $$props2) - $$invalidate(1, plugin = $$props2.plugin); - }; - return [cls, plugin, click_handler]; -} -var RebuildGraphButton = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance44, create_fragment44, safe_not_equal, { cls: 0, plugin: 1 }); - } -}; -var RebuildGraphButton_default = RebuildGraphButton; - -// src/components/obsidian/TreeItemFlair.svelte -function create_fragment45(ctx) { - let div; - let span; - let t; - let span_class_value; - return { - c() { - div = element("div"); - span = element("span"); - t = text( - /*label*/ - ctx[1] - ); - attr(span, "class", span_class_value = /*cls*/ - ctx[0] + " tree-item-flair"); - attr( - span, - "aria-label", - /*aria_label*/ - ctx[2] - ); - attr(div, "class", "tree-item-flair-outer"); - }, - m(target, anchor) { - insert(target, div, anchor); - append(div, span); - append(span, t); - }, - p(ctx2, [dirty]) { - if (dirty & /*label*/ - 2) - set_data( - t, - /*label*/ - ctx2[1] - ); - if (dirty & /*cls*/ - 1 && span_class_value !== (span_class_value = /*cls*/ - ctx2[0] + " tree-item-flair")) { - attr(span, "class", span_class_value); - } - if (dirty & /*aria_label*/ - 4) { - attr( - span, - "aria-label", - /*aria_label*/ - ctx2[2] - ); - } - }, - i: noop, - o: noop, - d(detaching) { - if (detaching) { - detach(div); - } - } - }; -} -function instance45($$self, $$props, $$invalidate) { - let { cls = "" } = $$props; - let { label = "" } = $$props; - let { aria_label = "" } = $$props; - $$self.$$set = ($$props2) => { - if ("cls" in $$props2) - $$invalidate(0, cls = $$props2.cls); - if ("label" in $$props2) - $$invalidate(1, label = $$props2.label); - if ("aria_label" in $$props2) - $$invalidate(2, aria_label = $$props2.aria_label); - }; - return [cls, label, aria_label]; -} -var TreeItemFlair = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance45, create_fragment45, safe_not_equal, { cls: 0, label: 1, aria_label: 2 }); - } -}; -var TreeItemFlair_default = TreeItemFlair; - -// src/components/side_views/MatrixEdgeField.svelte -function get_each_context9(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[8] = list[i]; - return child_ctx; -} -function create_each_block9(ctx) { - let div2; - let div1; - let div0; - let edgelink; - let t0; - let treeitemflair; - let t1; - let current; - edgelink = new EdgeLink_default({ - props: { - edge: ( - /*edge*/ - ctx[8] - ), - plugin: ( - /*plugin*/ - ctx[3] - ), - show_node_options: ( - /*show_node_options*/ - ctx[6] - ), - cls: "grow tree-item-inner-text" - } - }); - treeitemflair = new TreeItemFlair_default({ - props: { - cls: "font-mono", - label: ( - /*edge*/ - ctx[8].attr.explicit ? "x" : "i" - ), - aria_label: url_search_params(untyped_pick( - /*edge*/ - ctx[8].attr, - /*show_attributes*/ - ctx[4] - ), { trim_lone_param: true }) - } - }); - return { - c() { - div2 = element("div"); - div1 = element("div"); - div0 = element("div"); - create_component(edgelink.$$.fragment); - t0 = space(); - create_component(treeitemflair.$$.fragment); - t1 = space(); - attr(div0, "class", "tree-item-inner flex grow"); - attr(div1, "class", "tree-item-self is-clickable"); - attr(div2, "class", "tree-item"); - }, - m(target, anchor) { - insert(target, div2, anchor); - append(div2, div1); - append(div1, div0); - mount_component(edgelink, div0, null); - append(div1, t0); - mount_component(treeitemflair, div1, null); - append(div2, t1); - current = true; - }, - p(ctx2, dirty) { - const edgelink_changes = {}; - if (dirty & /*edges, sort*/ - 34) - edgelink_changes.edge = /*edge*/ - ctx2[8]; - if (dirty & /*plugin*/ - 8) - edgelink_changes.plugin = /*plugin*/ - ctx2[3]; - edgelink.$set(edgelink_changes); - const treeitemflair_changes = {}; - if (dirty & /*edges, sort*/ - 34) - treeitemflair_changes.label = /*edge*/ - ctx2[8].attr.explicit ? "x" : "i"; - if (dirty & /*edges, sort, show_attributes*/ - 50) - treeitemflair_changes.aria_label = url_search_params(untyped_pick( - /*edge*/ - ctx2[8].attr, - /*show_attributes*/ - ctx2[4] - ), { trim_lone_param: true }); - treeitemflair.$set(treeitemflair_changes); - }, - i(local) { - if (current) - return; - transition_in(edgelink.$$.fragment, local); - transition_in(treeitemflair.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(edgelink.$$.fragment, local); - transition_out(treeitemflair.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div2); - } - destroy_component(edgelink); - destroy_component(treeitemflair); - } - }; -} -function create_key_block4(ctx) { - let each_1_anchor; - let current; - let each_value = ensure_array_like( - /*edges*/ - ctx[1].sort( - /*sort*/ - ctx[5] - ) - ); - let each_blocks = []; - for (let i = 0; i < each_value.length; i += 1) { - each_blocks[i] = create_each_block9(get_each_context9(ctx, each_value, i)); - } - const out = (i) => transition_out(each_blocks[i], 1, 1, () => { - each_blocks[i] = null; - }); - return { - c() { - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].c(); - } - each_1_anchor = empty(); - }, - m(target, anchor) { - for (let i = 0; i < each_blocks.length; i += 1) { - if (each_blocks[i]) { - each_blocks[i].m(target, anchor); - } - } - insert(target, each_1_anchor, anchor); - current = true; - }, - p(ctx2, dirty) { - if (dirty & /*edges, sort, show_attributes, plugin, show_node_options*/ - 122) { - each_value = ensure_array_like( - /*edges*/ - ctx2[1].sort( - /*sort*/ - ctx2[5] - ) - ); - let i; - for (i = 0; i < each_value.length; i += 1) { - const child_ctx = get_each_context9(ctx2, each_value, i); - if (each_blocks[i]) { - each_blocks[i].p(child_ctx, dirty); - transition_in(each_blocks[i], 1); - } else { - each_blocks[i] = create_each_block9(child_ctx); - each_blocks[i].c(); - transition_in(each_blocks[i], 1); - each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor); - } - } - group_outros(); - for (i = each_value.length; i < each_blocks.length; i += 1) { - out(i); - } - check_outros(); - } - }, - i(local) { - if (current) - return; - for (let i = 0; i < each_value.length; i += 1) { - transition_in(each_blocks[i]); - } - current = true; - }, - o(local) { - each_blocks = each_blocks.filter(Boolean); - for (let i = 0; i < each_blocks.length; i += 1) { - transition_out(each_blocks[i]); - } - current = false; - }, - d(detaching) { - if (detaching) { - detach(each_1_anchor); - } - destroy_each(each_blocks, detaching); - } - }; -} -function create_fragment46(ctx) { - let details; - let summary; - let div0; - let chevronopener; - let t0; - let div1; - let span0; - let t1_value = ( - /*field*/ - ctx[2].label + "" - ); - let t1; - let t2; - let div2; - let span1; - let t3_value = ( - /*edges*/ - ctx[1].length + "" - ); - let t3; - let t4; - let div3; - let previous_key = ( - /*sort*/ - ctx[5] - ); - let details_class_value; - let current; - let mounted; - let dispose; - chevronopener = new ChevronOpener_default({ props: { open: ( - /*open*/ - ctx[0] - ) } }); - let key_block = create_key_block4(ctx); - return { - c() { - details = element("details"); - summary = element("summary"); - div0 = element("div"); - create_component(chevronopener.$$.fragment); - t0 = space(); - div1 = element("div"); - span0 = element("span"); - t1 = text(t1_value); - t2 = space(); - div2 = element("div"); - span1 = element("span"); - t3 = text(t3_value); - t4 = space(); - div3 = element("div"); - key_block.c(); - attr(div0, "class", "tree-item-icon collapse-icon"); - attr(span0, "class", "tree-item-inner-text"); - attr(div1, "class", "tree-item-inner"); - attr(span1, "class", "tree-item-flair font-mono text-lg"); - attr(div2, "class", "tree-item-flair-outer"); - attr(summary, "class", "tree-item-self is-clickable mod-collapsible text-lg"); - attr(div3, "class", "tree-item-children flex flex-col"); - attr(details, "class", details_class_value = "BC-matrix-view-field BC-matrix-view-field-" + /*field*/ - ctx[2].label + " tree-item"); - }, - m(target, anchor) { - insert(target, details, anchor); - append(details, summary); - append(summary, div0); - mount_component(chevronopener, div0, null); - append(summary, t0); - append(summary, div1); - append(div1, span0); - append(span0, t1); - append(summary, t2); - append(summary, div2); - append(div2, span1); - append(span1, t3); - append(details, t4); - append(details, div3); - key_block.m(div3, null); - details.open = /*open*/ - ctx[0]; - current = true; - if (!mounted) { - dispose = listen( - details, - "toggle", - /*details_toggle_handler*/ - ctx[7] - ); - mounted = true; - } - }, - p(ctx2, [dirty]) { - const chevronopener_changes = {}; - if (dirty & /*open*/ - 1) - chevronopener_changes.open = /*open*/ - ctx2[0]; - chevronopener.$set(chevronopener_changes); - if ((!current || dirty & /*field*/ - 4) && t1_value !== (t1_value = /*field*/ - ctx2[2].label + "")) - set_data(t1, t1_value); - if ((!current || dirty & /*edges*/ - 2) && t3_value !== (t3_value = /*edges*/ - ctx2[1].length + "")) - set_data(t3, t3_value); - if (dirty & /*sort*/ - 32 && safe_not_equal(previous_key, previous_key = /*sort*/ - ctx2[5])) { - group_outros(); - transition_out(key_block, 1, 1, noop); - check_outros(); - key_block = create_key_block4(ctx2); - key_block.c(); - transition_in(key_block, 1); - key_block.m(div3, null); - } else { - key_block.p(ctx2, dirty); - } - if (!current || dirty & /*field*/ - 4 && details_class_value !== (details_class_value = "BC-matrix-view-field BC-matrix-view-field-" + /*field*/ - ctx2[2].label + " tree-item")) { - attr(details, "class", details_class_value); - } - if (dirty & /*open*/ - 1) { - details.open = /*open*/ - ctx2[0]; - } - }, - i(local) { - if (current) - return; - transition_in(chevronopener.$$.fragment, local); - transition_in(key_block); - current = true; - }, - o(local) { - transition_out(chevronopener.$$.fragment, local); - transition_out(key_block); - current = false; - }, - d(detaching) { - if (detaching) { - detach(details); - } - destroy_component(chevronopener); - key_block.d(detaching); - mounted = false; - dispose(); - } - }; -} -function instance46($$self, $$props, $$invalidate) { - let { open } = $$props; - let { edges } = $$props; - let { field } = $$props; - let { plugin } = $$props; - let { show_attributes } = $$props; - let { show_node_options } = plugin.settings.views.side.matrix; - let { sort } = $$props; - function details_toggle_handler() { - open = this.open; - $$invalidate(0, open); - } - $$self.$$set = ($$props2) => { - if ("open" in $$props2) - $$invalidate(0, open = $$props2.open); - if ("edges" in $$props2) - $$invalidate(1, edges = $$props2.edges); - if ("field" in $$props2) - $$invalidate(2, field = $$props2.field); - if ("plugin" in $$props2) - $$invalidate(3, plugin = $$props2.plugin); - if ("show_attributes" in $$props2) - $$invalidate(4, show_attributes = $$props2.show_attributes); - if ("sort" in $$props2) - $$invalidate(5, sort = $$props2.sort); - }; - return [ - open, - edges, - field, - plugin, - show_attributes, - sort, - show_node_options, - details_toggle_handler - ]; -} -var MatrixEdgeField = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance46, create_fragment46, safe_not_equal, { - open: 0, - edges: 1, - field: 2, - plugin: 3, - show_attributes: 4, - sort: 5 - }); - } -}; -var MatrixEdgeField_default = MatrixEdgeField; - -// src/components/side_views/Matrix.svelte -function get_each_context10(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[13] = list[i]; - const constants_0 = ( - /*grouped_out_edges*/ - child_ctx[6][ - /*field*/ - child_ctx[13].label - ] - ); - child_ctx[14] = constants_0; - return child_ctx; -} -function create_else_block7(ctx) { - let p; - return { - c() { - p = element("p"); - p.textContent = "No outgoings edges"; - attr(p, "class", "search-empty-state"); - }, - m(target, anchor) { - insert(target, p, anchor); - }, - p: noop, - i: noop, - o: noop, - d(detaching) { - if (detaching) { - detach(p); - } - } - }; -} -function create_if_block13(ctx) { - let div; - let current; - let each_value = ensure_array_like( - /*plugin*/ - ctx[0].settings.edge_fields - ); - let each_blocks = []; - for (let i = 0; i < each_value.length; i += 1) { - each_blocks[i] = create_each_block10(get_each_context10(ctx, each_value, i)); - } - const out = (i) => transition_out(each_blocks[i], 1, 1, () => { - each_blocks[i] = null; - }); - return { - c() { - div = element("div"); - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].c(); - } - }, - m(target, anchor) { - insert(target, div, anchor); - for (let i = 0; i < each_blocks.length; i += 1) { - if (each_blocks[i]) { - each_blocks[i].m(div, null); - } - } - current = true; - }, - p(ctx2, dirty) { - if (dirty & /*sort, grouped_out_edges, plugin, show_attributes, collapse*/ - 121) { - each_value = ensure_array_like( - /*plugin*/ - ctx2[0].settings.edge_fields - ); - let i; - for (i = 0; i < each_value.length; i += 1) { - const child_ctx = get_each_context10(ctx2, each_value, i); - if (each_blocks[i]) { - each_blocks[i].p(child_ctx, dirty); - transition_in(each_blocks[i], 1); - } else { - each_blocks[i] = create_each_block10(child_ctx); - each_blocks[i].c(); - transition_in(each_blocks[i], 1); - each_blocks[i].m(div, null); - } - } - group_outros(); - for (i = each_value.length; i < each_blocks.length; i += 1) { - out(i); - } - check_outros(); - } - }, - i(local) { - if (current) - return; - for (let i = 0; i < each_value.length; i += 1) { - transition_in(each_blocks[i]); - } - current = true; - }, - o(local) { - each_blocks = each_blocks.filter(Boolean); - for (let i = 0; i < each_blocks.length; i += 1) { - transition_out(each_blocks[i]); - } - current = false; - }, - d(detaching) { - if (detaching) { - detach(div); - } - destroy_each(each_blocks, detaching); - } - }; -} -function create_if_block_15(ctx) { - let matrixedgefield; - let current; - matrixedgefield = new MatrixEdgeField_default({ - props: { - sort: ( - /*sort*/ - ctx[5] - ), - edges: ( - /*edges*/ - ctx[14] - ), - field: ( - /*field*/ - ctx[13] - ), - plugin: ( - /*plugin*/ - ctx[0] - ), - show_attributes: ( - /*show_attributes*/ - ctx[3] - ), - open: !/*collapse*/ - ctx[4] - } - }); - return { - c() { - create_component(matrixedgefield.$$.fragment); - }, - m(target, anchor) { - mount_component(matrixedgefield, target, anchor); - current = true; - }, - p(ctx2, dirty) { - const matrixedgefield_changes = {}; - if (dirty & /*sort*/ - 32) - matrixedgefield_changes.sort = /*sort*/ - ctx2[5]; - if (dirty & /*grouped_out_edges, plugin*/ - 65) - matrixedgefield_changes.edges = /*edges*/ - ctx2[14]; - if (dirty & /*plugin*/ - 1) - matrixedgefield_changes.field = /*field*/ - ctx2[13]; - if (dirty & /*plugin*/ - 1) - matrixedgefield_changes.plugin = /*plugin*/ - ctx2[0]; - if (dirty & /*show_attributes*/ - 8) - matrixedgefield_changes.show_attributes = /*show_attributes*/ - ctx2[3]; - if (dirty & /*collapse*/ - 16) - matrixedgefield_changes.open = !/*collapse*/ - ctx2[4]; - matrixedgefield.$set(matrixedgefield_changes); - }, - i(local) { - if (current) - return; - transition_in(matrixedgefield.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(matrixedgefield.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(matrixedgefield, detaching); - } - }; -} -function create_each_block10(ctx) { - var _a; - let if_block_anchor; - let current; - let if_block = ( - /*edges*/ - ((_a = ctx[14]) == null ? void 0 : _a.length) && create_if_block_15(ctx) - ); - return { - c() { - if (if_block) - if_block.c(); - if_block_anchor = empty(); - }, - m(target, anchor) { - if (if_block) - if_block.m(target, anchor); - insert(target, if_block_anchor, anchor); - current = true; - }, - p(ctx2, dirty) { - var _a2; - if ( - /*edges*/ - (_a2 = ctx2[14]) == null ? void 0 : _a2.length - ) { - if (if_block) { - if_block.p(ctx2, dirty); - if (dirty & /*grouped_out_edges, plugin*/ - 65) { - transition_in(if_block, 1); - } - } else { - if_block = create_if_block_15(ctx2); - if_block.c(); - transition_in(if_block, 1); - if_block.m(if_block_anchor.parentNode, if_block_anchor); - } - } else if (if_block) { - group_outros(); - transition_out(if_block, 1, 1, () => { - if_block = null; - }); - check_outros(); - } - }, - i(local) { - if (current) - return; - transition_in(if_block); - current = true; - }, - o(local) { - transition_out(if_block); - current = false; - }, - d(detaching) { - if (detaching) { - detach(if_block_anchor); - } - if (if_block) - if_block.d(detaching); - } - }; -} -function create_key_block5(ctx) { - let current_block_type_index; - let if_block; - let if_block_anchor; - let current; - const if_block_creators = [create_if_block13, create_else_block7]; - const if_blocks = []; - function select_block_type(ctx2, dirty) { - if ( - /*grouped_out_edges*/ - ctx2[6] - ) - return 0; - return 1; - } - current_block_type_index = select_block_type(ctx, -1); - if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx); - return { - c() { - if_block.c(); - if_block_anchor = empty(); - }, - m(target, anchor) { - if_blocks[current_block_type_index].m(target, anchor); - insert(target, if_block_anchor, anchor); - current = true; - }, - p(ctx2, dirty) { - let previous_block_index = current_block_type_index; - current_block_type_index = select_block_type(ctx2, dirty); - if (current_block_type_index === previous_block_index) { - if_blocks[current_block_type_index].p(ctx2, dirty); - } else { - group_outros(); - transition_out(if_blocks[previous_block_index], 1, 1, () => { - if_blocks[previous_block_index] = null; - }); - check_outros(); - if_block = if_blocks[current_block_type_index]; - if (!if_block) { - if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2); - if_block.c(); - } else { - if_block.p(ctx2, dirty); - } - transition_in(if_block, 1); - if_block.m(if_block_anchor.parentNode, if_block_anchor); - } - }, - i(local) { - if (current) - return; - transition_in(if_block); - current = true; - }, - o(local) { - transition_out(if_block); - current = false; - }, - d(detaching) { - if (detaching) { - detach(if_block_anchor); - } - if_blocks[current_block_type_index].d(detaching); - } - }; -} -function create_fragment47(ctx) { - let div2; - let div1; - let div0; - let rebuildgraphbutton; - let t0; - let edgesortidselector; - let updating_edge_sort_id; - let t1; - let chevroncollapsebutton; - let updating_collapse; - let t2; - let showattributesselectormenu; - let updating_show_attributes; - let t3; - let fieldgroupselector; - let updating_field_group_labels; - let t4; - let previous_key = ( - /*grouped_out_edges*/ - ctx[6] - ); - let current; - rebuildgraphbutton = new RebuildGraphButton_default({ - props: { - cls: "clickable-icon nav-action-button", - plugin: ( - /*plugin*/ - ctx[0] - ) - } - }); - function edgesortidselector_edge_sort_id_binding(value) { - ctx[9](value); - } - let edgesortidselector_props = { - cls: "clickable-icon nav-action-button", - exclude_fields: ["field", "neighbour-field:"] - }; - if ( - /*edge_sort_id*/ - ctx[1] !== void 0 - ) { - edgesortidselector_props.edge_sort_id = /*edge_sort_id*/ - ctx[1]; - } - edgesortidselector = new EdgeSortIdSelector_default({ props: edgesortidselector_props }); - binding_callbacks.push(() => bind(edgesortidselector, "edge_sort_id", edgesortidselector_edge_sort_id_binding)); - function chevroncollapsebutton_collapse_binding(value) { - ctx[10](value); - } - let chevroncollapsebutton_props = { cls: "clickable-icon nav-action-button" }; - if ( - /*collapse*/ - ctx[4] !== void 0 - ) { - chevroncollapsebutton_props.collapse = /*collapse*/ - ctx[4]; - } - chevroncollapsebutton = new ChevronCollapseButton_default({ props: chevroncollapsebutton_props }); - binding_callbacks.push(() => bind(chevroncollapsebutton, "collapse", chevroncollapsebutton_collapse_binding)); - function showattributesselectormenu_show_attributes_binding(value) { - ctx[11](value); - } - let showattributesselectormenu_props = { - cls: "clickable-icon nav-action-button", - exclude_attributes: ["field", "explicit"] - }; - if ( - /*show_attributes*/ - ctx[3] !== void 0 - ) { - showattributesselectormenu_props.show_attributes = /*show_attributes*/ - ctx[3]; - } - showattributesselectormenu = new ShowAttributesSelectorMenu_default({ props: showattributesselectormenu_props }); - binding_callbacks.push(() => bind(showattributesselectormenu, "show_attributes", showattributesselectormenu_show_attributes_binding)); - function fieldgroupselector_field_group_labels_binding(value) { - ctx[12](value); - } - let fieldgroupselector_props = { - cls: "clickable-icon nav-action-button", - edge_field_groups: ( - /*plugin*/ - ctx[0].settings.edge_field_groups - ) - }; - if ( - /*field_group_labels*/ - ctx[2] !== void 0 - ) { - fieldgroupselector_props.field_group_labels = /*field_group_labels*/ - ctx[2]; - } - fieldgroupselector = new FieldGroupLabelsSelector_default({ props: fieldgroupselector_props }); - binding_callbacks.push(() => bind(fieldgroupselector, "field_group_labels", fieldgroupselector_field_group_labels_binding)); - let key_block = create_key_block5(ctx); - return { - c() { - div2 = element("div"); - div1 = element("div"); - div0 = element("div"); - create_component(rebuildgraphbutton.$$.fragment); - t0 = space(); - create_component(edgesortidselector.$$.fragment); - t1 = space(); - create_component(chevroncollapsebutton.$$.fragment); - t2 = space(); - create_component(showattributesselectormenu.$$.fragment); - t3 = space(); - create_component(fieldgroupselector.$$.fragment); - t4 = space(); - key_block.c(); - attr(div0, "class", "nav-buttons-container"); - attr(div1, "class", "nav-header"); - attr(div2, "class", "markdown-rendered BC-matrix-view"); - }, - m(target, anchor) { - insert(target, div2, anchor); - append(div2, div1); - append(div1, div0); - mount_component(rebuildgraphbutton, div0, null); - append(div0, t0); - mount_component(edgesortidselector, div0, null); - append(div0, t1); - mount_component(chevroncollapsebutton, div0, null); - append(div0, t2); - mount_component(showattributesselectormenu, div0, null); - append(div0, t3); - mount_component(fieldgroupselector, div0, null); - append(div2, t4); - key_block.m(div2, null); - current = true; - }, - p(ctx2, [dirty]) { - const rebuildgraphbutton_changes = {}; - if (dirty & /*plugin*/ - 1) - rebuildgraphbutton_changes.plugin = /*plugin*/ - ctx2[0]; - rebuildgraphbutton.$set(rebuildgraphbutton_changes); - const edgesortidselector_changes = {}; - if (!updating_edge_sort_id && dirty & /*edge_sort_id*/ - 2) { - updating_edge_sort_id = true; - edgesortidselector_changes.edge_sort_id = /*edge_sort_id*/ - ctx2[1]; - add_flush_callback(() => updating_edge_sort_id = false); - } - edgesortidselector.$set(edgesortidselector_changes); - const chevroncollapsebutton_changes = {}; - if (!updating_collapse && dirty & /*collapse*/ - 16) { - updating_collapse = true; - chevroncollapsebutton_changes.collapse = /*collapse*/ - ctx2[4]; - add_flush_callback(() => updating_collapse = false); - } - chevroncollapsebutton.$set(chevroncollapsebutton_changes); - const showattributesselectormenu_changes = {}; - if (!updating_show_attributes && dirty & /*show_attributes*/ - 8) { - updating_show_attributes = true; - showattributesselectormenu_changes.show_attributes = /*show_attributes*/ - ctx2[3]; - add_flush_callback(() => updating_show_attributes = false); - } - showattributesselectormenu.$set(showattributesselectormenu_changes); - const fieldgroupselector_changes = {}; - if (dirty & /*plugin*/ - 1) - fieldgroupselector_changes.edge_field_groups = /*plugin*/ - ctx2[0].settings.edge_field_groups; - if (!updating_field_group_labels && dirty & /*field_group_labels*/ - 4) { - updating_field_group_labels = true; - fieldgroupselector_changes.field_group_labels = /*field_group_labels*/ - ctx2[2]; - add_flush_callback(() => updating_field_group_labels = false); - } - fieldgroupselector.$set(fieldgroupselector_changes); - if (dirty & /*grouped_out_edges*/ - 64 && safe_not_equal(previous_key, previous_key = /*grouped_out_edges*/ - ctx2[6])) { - group_outros(); - transition_out(key_block, 1, 1, noop); - check_outros(); - key_block = create_key_block5(ctx2); - key_block.c(); - transition_in(key_block, 1); - key_block.m(div2, null); - } else { - key_block.p(ctx2, dirty); - } - }, - i(local) { - if (current) - return; - transition_in(rebuildgraphbutton.$$.fragment, local); - transition_in(edgesortidselector.$$.fragment, local); - transition_in(chevroncollapsebutton.$$.fragment, local); - transition_in(showattributesselectormenu.$$.fragment, local); - transition_in(fieldgroupselector.$$.fragment, local); - transition_in(key_block); - current = true; - }, - o(local) { - transition_out(rebuildgraphbutton.$$.fragment, local); - transition_out(edgesortidselector.$$.fragment, local); - transition_out(chevroncollapsebutton.$$.fragment, local); - transition_out(showattributesselectormenu.$$.fragment, local); - transition_out(fieldgroupselector.$$.fragment, local); - transition_out(key_block); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div2); - } - destroy_component(rebuildgraphbutton); - destroy_component(edgesortidselector); - destroy_component(chevroncollapsebutton); - destroy_component(showattributesselectormenu); - destroy_component(fieldgroupselector); - key_block.d(detaching); - } - }; -} -function instance47($$self, $$props, $$invalidate) { - let edge_field_labels; - let grouped_out_edges; - let sort; - let $active_file_store; - component_subscribe($$self, active_file_store, ($$value) => $$invalidate(8, $active_file_store = $$value)); - let { plugin } = $$props; - let { edge_sort_id, field_group_labels, show_attributes, collapse } = plugin.settings.views.side.matrix; - function edgesortidselector_edge_sort_id_binding(value) { - edge_sort_id = value; - $$invalidate(1, edge_sort_id); - } - function chevroncollapsebutton_collapse_binding(value) { - collapse = value; - $$invalidate(4, collapse); - } - function showattributesselectormenu_show_attributes_binding(value) { - show_attributes = value; - $$invalidate(3, show_attributes); - } - function fieldgroupselector_field_group_labels_binding(value) { - field_group_labels = value; - $$invalidate(2, field_group_labels); - } - $$self.$$set = ($$props2) => { - if ("plugin" in $$props2) - $$invalidate(0, plugin = $$props2.plugin); - }; - $$self.$$.update = () => { - if ($$self.$$.dirty & /*plugin, field_group_labels*/ - 5) { - $: - $$invalidate(7, edge_field_labels = resolve_field_group_labels(plugin.settings.edge_field_groups, field_group_labels)); - } - if ($$self.$$.dirty & /*$active_file_store, plugin, edge_field_labels*/ - 385) { - $: - $$invalidate(6, grouped_out_edges = $active_file_store && // Even tho we ensure the graph is built before the views are registered, - // Existing views still try render before the graph is built. - plugin.graph.hasNode($active_file_store.path) ? group_by(plugin.graph.get_out_edges($active_file_store.path).filter((e) => has_edge_attrs(e, { $or_fields: edge_field_labels })), (e) => e.attr.field) : null); - } - if ($$self.$$.dirty & /*edge_sort_id, plugin*/ - 3) { - $: - $$invalidate(5, sort = get_edge_sorter(edge_sort_id, plugin.graph)); - } - }; - return [ - plugin, - edge_sort_id, - field_group_labels, - show_attributes, - collapse, - sort, - grouped_out_edges, - edge_field_labels, - $active_file_store, - edgesortidselector_edge_sort_id_binding, - chevroncollapsebutton_collapse_binding, - showattributesselectormenu_show_attributes_binding, - fieldgroupselector_field_group_labels_binding - ]; -} -var Matrix = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance47, create_fragment47, safe_not_equal, { plugin: 0 }); - } -}; -var Matrix_default = Matrix; - -// src/views/matrix.ts -var MatrixView = class extends import_obsidian25.ItemView { - constructor(leaf, plugin) { - super(leaf); - this.icon = "blinds"; - this.plugin = plugin; - } - getViewType() { - return VIEW_IDS.matrix; - } - getDisplayText() { - return "Matrix view"; - } - async onOpen() { - const container = this.containerEl.children[1]; - container.empty(); - this.component = new Matrix_default({ - target: this.contentEl, - props: { plugin: this.plugin } - }); - } - async onClose() { - var _a; - (_a = this.component) == null ? void 0 : _a.$destroy(); - } -}; - -// src/api/index.ts -var BCAPI = class { - constructor(plugin) { - this.refresh = () => this.plugin.refresh(); - /** @deprecated Use refresh */ - this.refreshIndex = this.refresh; - /** @deprecated Filter edges of plugin.graph instead */ - this.getSubForFields = (fields, g = this.plugin.graph) => { - }; - this.build_tree = Traverse.build_tree; - this.breadth_first_traversal = Traverse.breadth_first; - this.create_list_index = (start_node = ((_a) => (_a = get_store_value(active_file_store)) == null ? void 0 : _a.path)(), options) => { - if (!start_node) - throw new Error("No active file"); - return ListIndex.build( - this.plugin.graph, - start_node, - Object.assign({ ...ListIndex.DEFAULT_OPTIONS }, options) - ); - }; - // BREAKING - /** @deprecated Use flatten_all_paths and flat_paths_to_index_list instead. Or, create_list_index */ - this.createIndex = () => { - }; - this.get_neighbours = (source = ((_b) => (_b = get_store_value(active_file_store)) == null ? void 0 : _b.path)()) => source && this.plugin.graph.hasNode(source) ? this.plugin.graph.get_out_edges(source) : []; - /** @deprecated Use get_neighbours instead */ - this.getMatrixNeighbours = this.get_neighbours; - this.plugin = plugin; - } - get fields() { - return this.plugin.settings.edge_fields; - } - get field_groups() { - return this.plugin.settings.edge_field_groups; - } -}; - -// src/codeblocks/MDRC.ts -var import_obsidian27 = require("obsidian"); - -// src/components/codeblocks/CodeblockErrors.svelte -function create_if_block14(ctx) { - let p0; - let t1; - let p1; - let t3; - let div; - let rendermarkdown; - let t4; - let hr; - let t5; - let p2; - let t9; - let p3; - let t10; - let code; - let t11_value = ( - /*plugin*/ - ctx[0].manifest.version + "" - ); - let t11; - let current; - rendermarkdown = new RenderMarkdown_default({ - props: { - plugin: ( - /*plugin*/ - ctx[0] - ), - markdown: ( - /*markdown*/ - ctx[2] - ) - } - }); - return { - c() { - p0 = element("p"); - p0.textContent = "Breadcrumbs Codeblock Errors"; - t1 = space(); - p1 = element("p"); - p1.textContent = "The codeblock YAML has errors in the following keys/properties:"; - t3 = space(); - div = element("div"); - create_component(rendermarkdown.$$.fragment); - t4 = space(); - hr = element("hr"); - t5 = space(); - p2 = element("p"); - p2.innerHTML = `See the codeblock docs for more info`; - t9 = space(); - p3 = element("p"); - t10 = text("Version: "); - code = element("code"); - t11 = text(t11_value); - attr(p0, "class", "text-warning text-lg font-semibold"); - attr(div, "class", "BC-codeblock-errors"); - }, - m(target, anchor) { - insert(target, p0, anchor); - insert(target, t1, anchor); - insert(target, p1, anchor); - insert(target, t3, anchor); - insert(target, div, anchor); - mount_component(rendermarkdown, div, null); - insert(target, t4, anchor); - insert(target, hr, anchor); - insert(target, t5, anchor); - insert(target, p2, anchor); - insert(target, t9, anchor); - insert(target, p3, anchor); - append(p3, t10); - append(p3, code); - append(code, t11); - current = true; - }, - p(ctx2, dirty) { - const rendermarkdown_changes = {}; - if (dirty & /*plugin*/ - 1) - rendermarkdown_changes.plugin = /*plugin*/ - ctx2[0]; - rendermarkdown.$set(rendermarkdown_changes); - if ((!current || dirty & /*plugin*/ - 1) && t11_value !== (t11_value = /*plugin*/ - ctx2[0].manifest.version + "")) - set_data(t11, t11_value); - }, - i(local) { - if (current) - return; - transition_in(rendermarkdown.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(rendermarkdown.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(p0); - detach(t1); - detach(p1); - detach(t3); - detach(div); - detach(t4); - detach(hr); - detach(t5); - detach(p2); - detach(t9); - detach(p3); - } - destroy_component(rendermarkdown); - } - }; -} -function create_fragment48(ctx) { - let if_block_anchor; - let current; - let if_block = ( - /*errors*/ - ctx[1].length && create_if_block14(ctx) - ); - return { - c() { - if (if_block) - if_block.c(); - if_block_anchor = empty(); - }, - m(target, anchor) { - if (if_block) - if_block.m(target, anchor); - insert(target, if_block_anchor, anchor); - current = true; - }, - p(ctx2, [dirty]) { - if ( - /*errors*/ - ctx2[1].length - ) { - if (if_block) { - if_block.p(ctx2, dirty); - if (dirty & /*errors*/ - 2) { - transition_in(if_block, 1); - } - } else { - if_block = create_if_block14(ctx2); - if_block.c(); - transition_in(if_block, 1); - if_block.m(if_block_anchor.parentNode, if_block_anchor); - } - } else if (if_block) { - group_outros(); - transition_out(if_block, 1, 1, () => { - if_block = null; - }); - check_outros(); - } - }, - i(local) { - if (current) - return; - transition_in(if_block); - current = true; - }, - o(local) { - transition_out(if_block); - current = false; - }, - d(detaching) { - if (detaching) { - detach(if_block_anchor); - } - if (if_block) - if_block.d(detaching); - } - }; -} -function instance48($$self, $$props, $$invalidate) { - let { plugin } = $$props; - let { errors } = $$props; - const markdown = errors.map((e) => `- **\`${e.path}\`**: ${e.message}`).join("\n"); - $$self.$$set = ($$props2) => { - if ("plugin" in $$props2) - $$invalidate(0, plugin = $$props2.plugin); - if ("errors" in $$props2) - $$invalidate(1, errors = $$props2.errors); - }; - return [plugin, errors, markdown]; -} -var CodeblockErrors = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance48, create_fragment48, safe_not_equal, { plugin: 0, errors: 1 }); - } -}; -var CodeblockErrors_default = CodeblockErrors; - -// src/components/button/CopyToClipboardButton.svelte -function create_else_block8(ctx) { - let clipboardicon; - let current; - clipboardicon = new clipboard_default({ props: { size: ICON_SIZE } }); - return { - c() { - create_component(clipboardicon.$$.fragment); - }, - m(target, anchor) { - mount_component(clipboardicon, target, anchor); - current = true; - }, - i(local) { - if (current) - return; - transition_in(clipboardicon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(clipboardicon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(clipboardicon, detaching); - } - }; -} -function create_if_block15(ctx) { - let checkicon; - let current; - checkicon = new check_default({ props: { size: ICON_SIZE } }); - return { - c() { - create_component(checkicon.$$.fragment); - }, - m(target, anchor) { - mount_component(checkicon, target, anchor); - current = true; - }, - i(local) { - if (current) - return; - transition_in(checkicon.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(checkicon.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(checkicon, detaching); - } - }; -} -function create_fragment49(ctx) { - let button; - let current_block_type_index; - let if_block; - let button_aria_label_value; - let current; - let mounted; - let dispose; - const if_block_creators = [create_if_block15, create_else_block8]; - const if_blocks = []; - function select_block_type(ctx2, dirty) { - if ( - /*copied*/ - ctx2[4] - ) - return 0; - return 1; - } - current_block_type_index = select_block_type(ctx, -1); - if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx); - return { - c() { - button = element("button"); - if_block.c(); - attr( - button, - "class", - /*cls*/ - ctx[0] - ); - attr(button, "aria-label", button_aria_label_value = /*copied*/ - ctx[4] ? "Copied!" : ( - /*aria_label*/ - ctx[2] - )); - }, - m(target, anchor) { - insert(target, button, anchor); - if_blocks[current_block_type_index].m(button, null); - current = true; - if (!mounted) { - dispose = listen( - button, - "click", - /*click_handler*/ - ctx[5] - ); - mounted = true; - } - }, - p(ctx2, [dirty]) { - let previous_block_index = current_block_type_index; - current_block_type_index = select_block_type(ctx2, dirty); - if (current_block_type_index !== previous_block_index) { - group_outros(); - transition_out(if_blocks[previous_block_index], 1, 1, () => { - if_blocks[previous_block_index] = null; - }); - check_outros(); - if_block = if_blocks[current_block_type_index]; - if (!if_block) { - if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2); - if_block.c(); - } else { - } - transition_in(if_block, 1); - if_block.m(button, null); - } - if (!current || dirty & /*cls*/ - 1) { - attr( - button, - "class", - /*cls*/ - ctx2[0] - ); - } - if (!current || dirty & /*copied, aria_label*/ - 20 && button_aria_label_value !== (button_aria_label_value = /*copied*/ - ctx2[4] ? "Copied!" : ( - /*aria_label*/ - ctx2[2] - ))) { - attr(button, "aria-label", button_aria_label_value); - } - }, - i(local) { - if (current) - return; - transition_in(if_block); - current = true; - }, - o(local) { - transition_out(if_block); - current = false; - }, - d(detaching) { - if (detaching) { - detach(button); - } - if_blocks[current_block_type_index].d(); - mounted = false; - dispose(); - } - }; -} -function instance49($$self, $$props, $$invalidate) { - let { cls = "" } = $$props; - let { text: text2 } = $$props; - let { aria_label = "Copy to Clipboard" } = $$props; - let { options = {} } = $$props; - let copied = false; - const click_handler = () => { - $$invalidate(4, copied = true); - copy_to_clipboard(text2, options); - setTimeout(() => $$invalidate(4, copied = false), 2500); - }; - $$self.$$set = ($$props2) => { - if ("cls" in $$props2) - $$invalidate(0, cls = $$props2.cls); - if ("text" in $$props2) - $$invalidate(1, text2 = $$props2.text); - if ("aria_label" in $$props2) - $$invalidate(2, aria_label = $$props2.aria_label); - if ("options" in $$props2) - $$invalidate(3, options = $$props2.options); - }; - return [cls, text2, aria_label, options, copied, click_handler]; -} -var CopyToClipboardButton = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance49, create_fragment49, safe_not_equal, { - cls: 0, - text: 1, - aria_label: 2, - options: 3 - }); - } -}; -var CopyToClipboardButton_default = CopyToClipboardButton; - -// src/components/codeblocks/CodeblockMarkmap.svelte -function create_if_block_16(ctx) { - let h3; - let t_value = ( - /*options*/ - ctx[1].title + "" - ); - let t; - return { - c() { - h3 = element("h3"); - t = text(t_value); - attr(h3, "class", "BC-codeblock-markmap-title"); - }, - m(target, anchor) { - insert(target, h3, anchor); - append(h3, t); - }, - p(ctx2, dirty) { - if (dirty & /*options*/ - 2 && t_value !== (t_value = /*options*/ - ctx2[1].title + "")) - set_data(t, t_value); - }, - d(detaching) { - if (detaching) { - detach(h3); - } - } - }; -} -function create_else_block9(ctx) { - let p; - return { - c() { - p = element("p"); - p.textContent = "No paths found."; - attr(p, "class", "search-empty-state"); - }, - m(target, anchor) { - insert(target, p, anchor); - }, - p: noop, - i: noop, - o: noop, - d(detaching) { - if (detaching) { - detach(p); - } - } - }; -} -function create_if_block16(ctx) { - let div1; - let div0; - let copytoclipboardbutton; - let t; - let renderexternalcodeblock; - let current; - copytoclipboardbutton = new CopyToClipboardButton_default({ - props: { - text: ( - /*code*/ - ctx[4] - ), - cls: "clickable-icon nav-action-button" - } - }); - renderexternalcodeblock = new RenderExternalCodeblock_default({ - props: { - code: ( - /*code*/ - ctx[4] - ), - plugin: ( - /*plugin*/ - ctx[0] - ), - source_path: ( - /*source_path*/ - ctx[5] - ), - type: "markmap" - } - }); - return { - c() { - div1 = element("div"); - div0 = element("div"); - create_component(copytoclipboardbutton.$$.fragment); - t = space(); - create_component(renderexternalcodeblock.$$.fragment); - attr(div0, "class", "absolute left-2 top-2 flex"); - attr(div1, "class", "relative"); - }, - m(target, anchor) { - insert(target, div1, anchor); - append(div1, div0); - mount_component(copytoclipboardbutton, div0, null); - append(div1, t); - mount_component(renderexternalcodeblock, div1, null); - current = true; - }, - p(ctx2, dirty) { - const copytoclipboardbutton_changes = {}; - if (dirty & /*code*/ - 16) - copytoclipboardbutton_changes.text = /*code*/ - ctx2[4]; - copytoclipboardbutton.$set(copytoclipboardbutton_changes); - const renderexternalcodeblock_changes = {}; - if (dirty & /*code*/ - 16) - renderexternalcodeblock_changes.code = /*code*/ - ctx2[4]; - if (dirty & /*plugin*/ - 1) - renderexternalcodeblock_changes.plugin = /*plugin*/ - ctx2[0]; - if (dirty & /*source_path*/ - 32) - renderexternalcodeblock_changes.source_path = /*source_path*/ - ctx2[5]; - renderexternalcodeblock.$set(renderexternalcodeblock_changes); - }, - i(local) { - if (current) - return; - transition_in(copytoclipboardbutton.$$.fragment, local); - transition_in(renderexternalcodeblock.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(copytoclipboardbutton.$$.fragment, local); - transition_out(renderexternalcodeblock.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div1); - } - destroy_component(copytoclipboardbutton); - destroy_component(renderexternalcodeblock); - } - }; -} -function create_fragment50(ctx) { - let div; - let codeblockerrors; - let t0; - let t1; - let current_block_type_index; - let if_block1; - let current; - codeblockerrors = new CodeblockErrors_default({ - props: { - plugin: ( - /*plugin*/ - ctx[0] - ), - errors: ( - /*errors*/ - ctx[2] - ) - } - }); - let if_block0 = ( - /*options*/ - ctx[1].title && create_if_block_16(ctx) - ); - const if_block_creators = [create_if_block16, create_else_block9]; - const if_blocks = []; - function select_block_type(ctx2, dirty) { - if ( - /*tree*/ - ctx2[3].length - ) - return 0; - return 1; - } - current_block_type_index = select_block_type(ctx, -1); - if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx); - return { - c() { - div = element("div"); - create_component(codeblockerrors.$$.fragment); - t0 = space(); - if (if_block0) - if_block0.c(); - t1 = space(); - if_block1.c(); - attr(div, "class", "BC-codeblock-markmap"); - }, - m(target, anchor) { - insert(target, div, anchor); - mount_component(codeblockerrors, div, null); - append(div, t0); - if (if_block0) - if_block0.m(div, null); - append(div, t1); - if_blocks[current_block_type_index].m(div, null); - current = true; - }, - p(ctx2, [dirty]) { - const codeblockerrors_changes = {}; - if (dirty & /*plugin*/ - 1) - codeblockerrors_changes.plugin = /*plugin*/ - ctx2[0]; - if (dirty & /*errors*/ - 4) - codeblockerrors_changes.errors = /*errors*/ - ctx2[2]; - codeblockerrors.$set(codeblockerrors_changes); - if ( - /*options*/ - ctx2[1].title - ) { - if (if_block0) { - if_block0.p(ctx2, dirty); - } else { - if_block0 = create_if_block_16(ctx2); - if_block0.c(); - if_block0.m(div, t1); - } - } else if (if_block0) { - if_block0.d(1); - if_block0 = null; - } - let previous_block_index = current_block_type_index; - current_block_type_index = select_block_type(ctx2, dirty); - if (current_block_type_index === previous_block_index) { - if_blocks[current_block_type_index].p(ctx2, dirty); - } else { - group_outros(); - transition_out(if_blocks[previous_block_index], 1, 1, () => { - if_blocks[previous_block_index] = null; - }); - check_outros(); - if_block1 = if_blocks[current_block_type_index]; - if (!if_block1) { - if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2); - if_block1.c(); - } else { - if_block1.p(ctx2, dirty); - } - transition_in(if_block1, 1); - if_block1.m(div, null); - } - }, - i(local) { - if (current) - return; - transition_in(codeblockerrors.$$.fragment, local); - transition_in(if_block1); - current = true; - }, - o(local) { - transition_out(codeblockerrors.$$.fragment, local); - transition_out(if_block1); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div); - } - destroy_component(codeblockerrors); - if (if_block0) - if_block0.d(); - if_blocks[current_block_type_index].d(); - } - }; -} -function instance50($$self, $$props, $$invalidate) { - let source_path; - let code; - let $active_file_store; - component_subscribe($$self, active_file_store, ($$value) => $$invalidate(9, $active_file_store = $$value)); - var _a, _b; - let { plugin } = $$props; - let { options } = $$props; - let { errors } = $$props; - let { file_path } = $$props; - const sort = get_edge_sorter( - // @ts-expect-error: ts(2345) - options.sort, - plugin.graph - ); - const { show_node_options } = plugin.settings.views.codeblocks; - let tree = []; - const update2 = () => { - $$invalidate(3, tree = Traverse.sort_edge_tree(get_tree(), sort)); - }; - const base_traversal = (attr2) => Traverse.build_tree(plugin.graph, source_path, { max_depth: options.depth[1] }, (e) => has_edge_attrs(e, Object.assign(Object.assign({}, attr2), { - $or_target_ids: options["dataview-from-paths"] - }))); - const edge_field_labels = (_a = options.fields) !== null && _a !== void 0 ? _a : plugin.settings.edge_fields.map((f) => f.label); - const get_tree = () => { - if (source_path && plugin.graph.hasNode(source_path)) { - const traversal = options["merge-fields"] ? base_traversal({ $or_fields: options.fields }) : edge_field_labels.flatMap((field) => base_traversal({ field })); - return options.flat ? Traverse.flatten_tree(traversal).map((item) => ({ depth: 0, children: [], edge: item.edge })) : traversal; - } else { - return []; - } - }; - onMount(update2); - $$self.$$set = ($$props2) => { - if ("plugin" in $$props2) - $$invalidate(0, plugin = $$props2.plugin); - if ("options" in $$props2) - $$invalidate(1, options = $$props2.options); - if ("errors" in $$props2) - $$invalidate(2, errors = $$props2.errors); - if ("file_path" in $$props2) - $$invalidate(6, file_path = $$props2.file_path); - }; - $$self.$$.update = () => { - if ($$self.$$.dirty & /*file_path, $active_file_store*/ - 576) { - $: - $$invalidate(5, source_path = file_path ? file_path : $active_file_store ? $active_file_store.path : ""); - } - if ($$self.$$.dirty & /*tree, plugin, options, _b*/ - 267) { - $: - $$invalidate(4, code = ListIndex.edge_tree_to_list_index(tree, Object.assign(Object.assign({}, plugin.settings.commands.list_index.default_options), { - show_node_options, - show_attributes: $$invalidate(8, _b = options["show-attributes"]) !== null && _b !== void 0 ? _b : [] - }))); - } - }; - return [ - plugin, - options, - errors, - tree, - code, - source_path, - file_path, - update2, - _b, - $active_file_store - ]; -} -var CodeblockMarkmap = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance50, create_fragment50, safe_not_equal, { - plugin: 0, - options: 1, - errors: 2, - file_path: 6, - update: 7 - }); - } - get update() { - return this.$$.ctx[7]; - } -}; -var CodeblockMarkmap_default = CodeblockMarkmap; - -// src/graph/distance.ts -var from_traversal_items = (items) => { - const distances = /* @__PURE__ */ new Map(); - items.forEach((item) => { - var _a; - distances.set( - item.edge.target_id, - Math.min( - (_a = distances.get(item.edge.target_id)) != null ? _a : Infinity, - item.depth + 1 - ) - ); - }); - return distances; -}; -var Distance = { - from_traversal_items -}; - -// src/utils/numbers.ts -var is_between = (value, min, max) => value >= min && value <= max; - -// src/components/codeblocks/CodeblockMermaid.svelte -function create_if_block_17(ctx) { - let h3; - let t_value = ( - /*options*/ - ctx[1].title + "" - ); - let t; - return { - c() { - h3 = element("h3"); - t = text(t_value); - attr(h3, "class", "BC-codeblock-mermaid-title"); - }, - m(target, anchor) { - insert(target, h3, anchor); - append(h3, t); - }, - p(ctx2, dirty) { - if (dirty & /*options*/ - 2 && t_value !== (t_value = /*options*/ - ctx2[1].title + "")) - set_data(t, t_value); - }, - d(detaching) { - if (detaching) { - detach(h3); - } - } - }; -} -function create_else_block10(ctx) { - let p; - return { - c() { - p = element("p"); - p.textContent = "No paths found."; - attr(p, "class", "search-empty-state"); - }, - m(target, anchor) { - insert(target, p, anchor); - }, - p: noop, - i: noop, - o: noop, - d(detaching) { - if (detaching) { - detach(p); - } - } - }; -} -function create_if_block17(ctx) { - let div1; - let div0; - let copytoclipboardbutton; - let t0; - let button0; - let imageicon; - let t1; - let button1; - let pencilicon; - let t2; - let renderexternalcodeblock; - let current; - let mounted; - let dispose; - copytoclipboardbutton = new CopyToClipboardButton_default({ - props: { - text: ( - /*code*/ - ctx[4] - ), - cls: "clickable-icon nav-action-button" - } - }); - imageicon = new image_default({ props: { size: ICON_SIZE } }); - pencilicon = new pencil_default({ props: { size: ICON_SIZE } }); - renderexternalcodeblock = new RenderExternalCodeblock_default({ - props: { - code: ( - /*code*/ - ctx[4] - ), - plugin: ( - /*plugin*/ - ctx[0] - ), - source_path: ( - /*source_path*/ - ctx[5] - ), - type: "mermaid" - } - }); - return { - c() { - div1 = element("div"); - div0 = element("div"); - create_component(copytoclipboardbutton.$$.fragment); - t0 = space(); - button0 = element("button"); - create_component(imageicon.$$.fragment); - t1 = space(); - button1 = element("button"); - create_component(pencilicon.$$.fragment); - t2 = space(); - create_component(renderexternalcodeblock.$$.fragment); - attr(button0, "role", "link"); - attr(button0, "aria-label", "View Image on mermaid.ink"); - attr(button0, "class", "clickable-icon nav-action-button"); - attr(button1, "role", "link"); - attr(button1, "aria-label", "Live Edit on mermaid.live"); - attr(button1, "class", "clickable-icon nav-action-button"); - attr(div0, "class", "absolute left-2 top-2 flex"); - attr(div1, "class", "relative"); - }, - m(target, anchor) { - insert(target, div1, anchor); - append(div1, div0); - mount_component(copytoclipboardbutton, div0, null); - append(div0, t0); - append(div0, button0); - mount_component(imageicon, button0, null); - append(div0, t1); - append(div0, button1); - mount_component(pencilicon, button1, null); - append(div1, t2); - mount_component(renderexternalcodeblock, div1, null); - current = true; - if (!mounted) { - dispose = [ - listen( - button0, - "click", - /*click_handler*/ - ctx[12] - ), - listen( - button1, - "click", - /*click_handler_1*/ - ctx[13] - ) - ]; - mounted = true; - } - }, - p(ctx2, dirty) { - const copytoclipboardbutton_changes = {}; - if (dirty & /*code*/ - 16) - copytoclipboardbutton_changes.text = /*code*/ - ctx2[4]; - copytoclipboardbutton.$set(copytoclipboardbutton_changes); - const renderexternalcodeblock_changes = {}; - if (dirty & /*code*/ - 16) - renderexternalcodeblock_changes.code = /*code*/ - ctx2[4]; - if (dirty & /*plugin*/ - 1) - renderexternalcodeblock_changes.plugin = /*plugin*/ - ctx2[0]; - if (dirty & /*source_path*/ - 32) - renderexternalcodeblock_changes.source_path = /*source_path*/ - ctx2[5]; - renderexternalcodeblock.$set(renderexternalcodeblock_changes); - }, - i(local) { - if (current) - return; - transition_in(copytoclipboardbutton.$$.fragment, local); - transition_in(imageicon.$$.fragment, local); - transition_in(pencilicon.$$.fragment, local); - transition_in(renderexternalcodeblock.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(copytoclipboardbutton.$$.fragment, local); - transition_out(imageicon.$$.fragment, local); - transition_out(pencilicon.$$.fragment, local); - transition_out(renderexternalcodeblock.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div1); - } - destroy_component(copytoclipboardbutton); - destroy_component(imageicon); - destroy_component(pencilicon); - destroy_component(renderexternalcodeblock); - mounted = false; - run_all(dispose); - } - }; -} -function create_fragment51(ctx) { - let div; - let codeblockerrors; - let t0; - let t1; - let current_block_type_index; - let if_block1; - let current; - codeblockerrors = new CodeblockErrors_default({ - props: { - plugin: ( - /*plugin*/ - ctx[0] - ), - errors: ( - /*errors*/ - ctx[2] - ) - } - }); - let if_block0 = ( - /*options*/ - ctx[1].title && create_if_block_17(ctx) - ); - const if_block_creators = [create_if_block17, create_else_block10]; - const if_blocks = []; - function select_block_type(ctx2, dirty) { - if ( - /*traversal_items*/ - ctx2[3].length - ) - return 0; - return 1; - } - current_block_type_index = select_block_type(ctx, -1); - if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx); - return { - c() { - div = element("div"); - create_component(codeblockerrors.$$.fragment); - t0 = space(); - if (if_block0) - if_block0.c(); - t1 = space(); - if_block1.c(); - attr(div, "class", "BC-codeblock-mermaid"); - }, - m(target, anchor) { - insert(target, div, anchor); - mount_component(codeblockerrors, div, null); - append(div, t0); - if (if_block0) - if_block0.m(div, null); - append(div, t1); - if_blocks[current_block_type_index].m(div, null); - current = true; - }, - p(ctx2, [dirty]) { - const codeblockerrors_changes = {}; - if (dirty & /*plugin*/ - 1) - codeblockerrors_changes.plugin = /*plugin*/ - ctx2[0]; - if (dirty & /*errors*/ - 4) - codeblockerrors_changes.errors = /*errors*/ - ctx2[2]; - codeblockerrors.$set(codeblockerrors_changes); - if ( - /*options*/ - ctx2[1].title - ) { - if (if_block0) { - if_block0.p(ctx2, dirty); - } else { - if_block0 = create_if_block_17(ctx2); - if_block0.c(); - if_block0.m(div, t1); - } - } else if (if_block0) { - if_block0.d(1); - if_block0 = null; - } - let previous_block_index = current_block_type_index; - current_block_type_index = select_block_type(ctx2, dirty); - if (current_block_type_index === previous_block_index) { - if_blocks[current_block_type_index].p(ctx2, dirty); - } else { - group_outros(); - transition_out(if_blocks[previous_block_index], 1, 1, () => { - if_blocks[previous_block_index] = null; - }); - check_outros(); - if_block1 = if_blocks[current_block_type_index]; - if (!if_block1) { - if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2); - if_block1.c(); - } else { - if_block1.p(ctx2, dirty); - } - transition_in(if_block1, 1); - if_block1.m(div, null); - } - }, - i(local) { - if (current) - return; - transition_in(codeblockerrors.$$.fragment, local); - transition_in(if_block1); - current = true; - }, - o(local) { - transition_out(codeblockerrors.$$.fragment, local); - transition_out(if_block1); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div); - } - destroy_component(codeblockerrors); - if (if_block0) - if_block0.d(); - if_blocks[current_block_type_index].d(); - } - }; -} -function instance51($$self, $$props, $$invalidate) { - let source_path; - let edges; - let code; - let $active_file_store; - component_subscribe($$self, active_file_store, ($$value) => $$invalidate(11, $active_file_store = $$value)); - var _a; - let { plugin } = $$props; - let { options } = $$props; - let { errors } = $$props; - let { file_path } = $$props; - const sort = get_edge_sorter( - // @ts-expect-error: ts(2345) - options.sort, - plugin.graph - ); - let traversal_items = []; - let distances = /* @__PURE__ */ new Map(); - const update2 = () => { - $$invalidate(3, traversal_items = get_traversal_items()); - $$invalidate(9, distances = Distance.from_traversal_items(traversal_items)); - }; - const base_traversal = (attr2) => Traverse.gather_items(plugin.graph, source_path, (item) => has_edge_attrs(item.edge, Object.assign(Object.assign({}, attr2), { - $or_target_ids: options["dataview-from-paths"] - }))); - const edge_field_labels = (_a = options.fields) !== null && _a !== void 0 ? _a : plugin.settings.edge_fields.map((f) => f.label); - const get_traversal_items = () => { - if (source_path && plugin.graph.hasNode(source_path)) { - return options["merge-fields"] ? base_traversal({ $or_fields: options.fields }) : edge_field_labels.flatMap((field) => base_traversal({ field })); - } else { - return []; - } - }; - onMount(update2); - const click_handler = () => { - window.open(Mermaid.to_image_link(code), "_blank"); - }; - const click_handler_1 = () => { - window.open(Mermaid.to_live_edit_link(code), "_blank"); - }; - $$self.$$set = ($$props2) => { - if ("plugin" in $$props2) - $$invalidate(0, plugin = $$props2.plugin); - if ("options" in $$props2) - $$invalidate(1, options = $$props2.options); - if ("errors" in $$props2) - $$invalidate(2, errors = $$props2.errors); - if ("file_path" in $$props2) - $$invalidate(6, file_path = $$props2.file_path); - }; - $$self.$$.update = () => { - if ($$self.$$.dirty & /*file_path, $active_file_store*/ - 2112) { - $: - $$invalidate(5, source_path = file_path ? file_path : $active_file_store ? $active_file_store.path : ""); - } - if ($$self.$$.dirty & /*traversal_items, distances, options*/ - 522) { - $: - $$invalidate(10, edges = traversal_items.filter((item) => { - var _a2; - return is_between( - (_a2 = distances.get(item.edge.target_id)) !== null && _a2 !== void 0 ? _a2 : 0, - options.depth[0] + 1, - options.depth[1] - ); - }).map((item) => item.edge).sort(sort)); - } - if ($$self.$$.dirty & /*edges, source_path, options, plugin*/ - 1059) { - $: - $$invalidate(4, code = Mermaid.from_edges(edges, { - kind: "graph", - click: { method: "class" }, - active_node_id: source_path, - renderer: options["mermaid-renderer"], - curve_style: options["mermaid-curve"], - direction: options["mermaid-direction"], - show_attributes: options["show-attributes"], - get_node_label: (node_id, _attr) => { - const file = plugin.app.vault.getFileByPath(node_id); - return file ? plugin.app.fileManager.generateMarkdownLink(file, source_path).slice(2, -2) : Paths.drop_ext(Links.resolve_to_absolute_path(plugin.app, node_id, source_path)); - } - })); - } - if ($$self.$$.dirty & /*code*/ - 16) { - $: - log.debug(code); - } - }; - return [ - plugin, - options, - errors, - traversal_items, - code, - source_path, - file_path, - update2, - _a, - distances, - edges, - $active_file_store, - click_handler, - click_handler_1 - ]; -} -var CodeblockMermaid = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance51, create_fragment51, safe_not_equal, { - plugin: 0, - options: 1, - errors: 2, - file_path: 6, - update: 7 - }); - } - get update() { - return this.$$.ctx[7]; - } -}; -var CodeblockMermaid_default = CodeblockMermaid; - -// src/components/NestedEdgeList.svelte -function get_each_context11(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[9] = list[i]; - child_ctx[10] = list; - child_ctx[11] = i; - return child_ctx; -} -function create_if_block_25(ctx) { - let div; - let chevronopener; - let current; - chevronopener = new ChevronOpener_default({ - props: { open: ( - /*opens*/ - ctx[5][ - /*i*/ - ctx[11] - ] - ) } - }); - return { - c() { - div = element("div"); - create_component(chevronopener.$$.fragment); - attr(div, "class", "tree-item-icon collapse-icon mod-collapsible"); - }, - m(target, anchor) { - insert(target, div, anchor); - mount_component(chevronopener, div, null); - current = true; - }, - p(ctx2, dirty) { - const chevronopener_changes = {}; - if (dirty & /*opens*/ - 32) - chevronopener_changes.open = /*opens*/ - ctx2[5][ - /*i*/ - ctx2[11] - ]; - chevronopener.$set(chevronopener_changes); - }, - i(local) { - if (current) - return; - transition_in(chevronopener.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(chevronopener.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div); - } - destroy_component(chevronopener); - } - }; -} -function create_if_block_18(ctx) { - let treeitemflair; - let current; - treeitemflair = new TreeItemFlair_default({ - props: { - label: url_search_params(untyped_pick( - /*item*/ - ctx[9].edge.attr, - /*show_attributes*/ - ctx[3] - ), { trim_lone_param: true }) - } - }); - return { - c() { - create_component(treeitemflair.$$.fragment); - }, - m(target, anchor) { - mount_component(treeitemflair, target, anchor); - current = true; - }, - p(ctx2, dirty) { - const treeitemflair_changes = {}; - if (dirty & /*tree, sort, show_attributes*/ - 26) - treeitemflair_changes.label = url_search_params(untyped_pick( - /*item*/ - ctx2[9].edge.attr, - /*show_attributes*/ - ctx2[3] - ), { trim_lone_param: true }); - treeitemflair.$set(treeitemflair_changes); - }, - i(local) { - if (current) - return; - transition_in(treeitemflair.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(treeitemflair.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(treeitemflair, detaching); - } - }; -} -function create_if_block18(ctx) { - let div; - let nestededgelist; - let current; - nestededgelist = new NestedEdgeList({ - props: { - sort: ( - /*sort*/ - ctx[4] - ), - plugin: ( - /*plugin*/ - ctx[0] - ), - show_attributes: ( - /*show_attributes*/ - ctx[3] - ), - show_node_options: ( - /*show_node_options*/ - ctx[2] - ), - tree: ( - /*item*/ - ctx[9].children - ) - } - }); - return { - c() { - div = element("div"); - create_component(nestededgelist.$$.fragment); - attr(div, "class", "tree-item-children"); - }, - m(target, anchor) { - insert(target, div, anchor); - mount_component(nestededgelist, div, null); - current = true; - }, - p(ctx2, dirty) { - const nestededgelist_changes = {}; - if (dirty & /*sort*/ - 16) - nestededgelist_changes.sort = /*sort*/ - ctx2[4]; - if (dirty & /*plugin*/ - 1) - nestededgelist_changes.plugin = /*plugin*/ - ctx2[0]; - if (dirty & /*show_attributes*/ - 8) - nestededgelist_changes.show_attributes = /*show_attributes*/ - ctx2[3]; - if (dirty & /*show_node_options*/ - 4) - nestededgelist_changes.show_node_options = /*show_node_options*/ - ctx2[2]; - if (dirty & /*tree, sort*/ - 18) - nestededgelist_changes.tree = /*item*/ - ctx2[9].children; - nestededgelist.$set(nestededgelist_changes); - }, - i(local) { - if (current) - return; - transition_in(nestededgelist.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(nestededgelist.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div); - } - destroy_component(nestededgelist); - } - }; -} -function create_each_block11(ctx) { - var _a; - let details; - let summary; - let t0; - let div; - let edgelink; - let t1; - let t2; - let t3; - let current; - let mounted; - let dispose; - let if_block0 = ( - /*item*/ - ctx[9].children.length && create_if_block_25(ctx) - ); - edgelink = new EdgeLink_default({ - props: { - plugin: ( - /*plugin*/ - ctx[0] - ), - edge: ( - /*item*/ - ctx[9].edge - ), - show_node_options: ( - /*show_node_options*/ - ctx[2] - ), - cls: "tree-item-inner-text" - } - }); - let if_block1 = ( - /*show_attributes*/ - ((_a = ctx[3]) == null ? void 0 : _a.length) && create_if_block_18(ctx) - ); - let if_block2 = ( - /*item*/ - ctx[9].children.length && create_if_block18(ctx) - ); - function details_toggle_handler() { - ctx[8].call( - details, - /*i*/ - ctx[11] - ); - } - return { - c() { - details = element("details"); - summary = element("summary"); - if (if_block0) - if_block0.c(); - t0 = space(); - div = element("div"); - create_component(edgelink.$$.fragment); - t1 = space(); - if (if_block1) - if_block1.c(); - t2 = space(); - if (if_block2) - if_block2.c(); - t3 = space(); - attr(div, "class", "tree-item-inner"); - attr(summary, "class", "tree-item-self is-clickable flex items-center"); - attr(details, "class", "tree-item"); - }, - m(target, anchor) { - insert(target, details, anchor); - append(details, summary); - if (if_block0) - if_block0.m(summary, null); - append(summary, t0); - append(summary, div); - mount_component(edgelink, div, null); - append(summary, t1); - if (if_block1) - if_block1.m(summary, null); - append(details, t2); - if (if_block2) - if_block2.m(details, null); - append(details, t3); - details.open = /*opens*/ - ctx[5][ - /*i*/ - ctx[11] - ]; - current = true; - if (!mounted) { - dispose = listen(details, "toggle", details_toggle_handler); - mounted = true; - } - }, - p(new_ctx, dirty) { - var _a2; - ctx = new_ctx; - if ( - /*item*/ - ctx[9].children.length - ) { - if (if_block0) { - if_block0.p(ctx, dirty); - if (dirty & /*tree, sort*/ - 18) { - transition_in(if_block0, 1); - } - } else { - if_block0 = create_if_block_25(ctx); - if_block0.c(); - transition_in(if_block0, 1); - if_block0.m(summary, t0); - } - } else if (if_block0) { - group_outros(); - transition_out(if_block0, 1, 1, () => { - if_block0 = null; - }); - check_outros(); - } - const edgelink_changes = {}; - if (dirty & /*plugin*/ - 1) - edgelink_changes.plugin = /*plugin*/ - ctx[0]; - if (dirty & /*tree, sort*/ - 18) - edgelink_changes.edge = /*item*/ - ctx[9].edge; - if (dirty & /*show_node_options*/ - 4) - edgelink_changes.show_node_options = /*show_node_options*/ - ctx[2]; - edgelink.$set(edgelink_changes); - if ( - /*show_attributes*/ - (_a2 = ctx[3]) == null ? void 0 : _a2.length - ) { - if (if_block1) { - if_block1.p(ctx, dirty); - if (dirty & /*show_attributes*/ - 8) { - transition_in(if_block1, 1); - } - } else { - if_block1 = create_if_block_18(ctx); - if_block1.c(); - transition_in(if_block1, 1); - if_block1.m(summary, null); - } - } else if (if_block1) { - group_outros(); - transition_out(if_block1, 1, 1, () => { - if_block1 = null; - }); - check_outros(); - } - if ( - /*item*/ - ctx[9].children.length - ) { - if (if_block2) { - if_block2.p(ctx, dirty); - if (dirty & /*tree, sort*/ - 18) { - transition_in(if_block2, 1); - } - } else { - if_block2 = create_if_block18(ctx); - if_block2.c(); - transition_in(if_block2, 1); - if_block2.m(details, t3); - } - } else if (if_block2) { - group_outros(); - transition_out(if_block2, 1, 1, () => { - if_block2 = null; - }); - check_outros(); - } - if (dirty & /*opens*/ - 32) { - details.open = /*opens*/ - ctx[5][ - /*i*/ - ctx[11] - ]; - } - }, - i(local) { - if (current) - return; - transition_in(if_block0); - transition_in(edgelink.$$.fragment, local); - transition_in(if_block1); - transition_in(if_block2); - current = true; - }, - o(local) { - transition_out(if_block0); - transition_out(edgelink.$$.fragment, local); - transition_out(if_block1); - transition_out(if_block2); - current = false; - }, - d(detaching) { - if (detaching) { - detach(details); - } - if (if_block0) - if_block0.d(); - destroy_component(edgelink); - if (if_block1) - if_block1.d(); - if (if_block2) - if_block2.d(); - mounted = false; - dispose(); - } - }; -} -function create_fragment52(ctx) { - let each_1_anchor; - let current; - let each_value = ensure_array_like( - /*tree*/ - ctx[1].sort( - /*func*/ - ctx[7] - ) - ); - let each_blocks = []; - for (let i = 0; i < each_value.length; i += 1) { - each_blocks[i] = create_each_block11(get_each_context11(ctx, each_value, i)); - } - const out = (i) => transition_out(each_blocks[i], 1, 1, () => { - each_blocks[i] = null; - }); - return { - c() { - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].c(); - } - each_1_anchor = empty(); - }, - m(target, anchor) { - for (let i = 0; i < each_blocks.length; i += 1) { - if (each_blocks[i]) { - each_blocks[i].m(target, anchor); - } - } - insert(target, each_1_anchor, anchor); - current = true; - }, - p(ctx2, [dirty]) { - if (dirty & /*opens, sort, plugin, show_attributes, show_node_options, tree*/ - 63) { - each_value = ensure_array_like( - /*tree*/ - ctx2[1].sort( - /*func*/ - ctx2[7] - ) - ); - let i; - for (i = 0; i < each_value.length; i += 1) { - const child_ctx = get_each_context11(ctx2, each_value, i); - if (each_blocks[i]) { - each_blocks[i].p(child_ctx, dirty); - transition_in(each_blocks[i], 1); - } else { - each_blocks[i] = create_each_block11(child_ctx); - each_blocks[i].c(); - transition_in(each_blocks[i], 1); - each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor); - } - } - group_outros(); - for (i = each_value.length; i < each_blocks.length; i += 1) { - out(i); - } - check_outros(); - } - }, - i(local) { - if (current) - return; - for (let i = 0; i < each_value.length; i += 1) { - transition_in(each_blocks[i]); - } - current = true; - }, - o(local) { - each_blocks = each_blocks.filter(Boolean); - for (let i = 0; i < each_blocks.length; i += 1) { - transition_out(each_blocks[i]); - } - current = false; - }, - d(detaching) { - if (detaching) { - detach(each_1_anchor); - } - destroy_each(each_blocks, detaching); - } - }; -} -function instance52($$self, $$props, $$invalidate) { - let { plugin } = $$props; - let { tree } = $$props; - let { open_signal } = $$props; - let { show_node_options } = $$props; - let { show_attributes } = $$props; - let { sort } = $$props; - let opens = tree.map(() => true); - const func = (a, b) => sort(a.edge, b.edge); - function details_toggle_handler(i) { - opens[i] = this.open; - $$invalidate(5, opens), $$invalidate(6, open_signal); - } - $$self.$$set = ($$props2) => { - if ("plugin" in $$props2) - $$invalidate(0, plugin = $$props2.plugin); - if ("tree" in $$props2) - $$invalidate(1, tree = $$props2.tree); - if ("open_signal" in $$props2) - $$invalidate(6, open_signal = $$props2.open_signal); - if ("show_node_options" in $$props2) - $$invalidate(2, show_node_options = $$props2.show_node_options); - if ("show_attributes" in $$props2) - $$invalidate(3, show_attributes = $$props2.show_attributes); - if ("sort" in $$props2) - $$invalidate(4, sort = $$props2.sort); - }; - $$self.$$.update = () => { - if ($$self.$$.dirty & /*open_signal, opens*/ - 96) { - $: - if (open_signal === true) { - $$invalidate(5, opens = opens.map(() => true)); - $$invalidate(6, open_signal = null); - } else if (open_signal === false) { - $$invalidate(5, opens = opens.map(() => false)); - $$invalidate(6, open_signal = null); - } - } - }; - return [ - plugin, - tree, - show_node_options, - show_attributes, - sort, - opens, - open_signal, - func, - details_toggle_handler - ]; -} -var NestedEdgeList = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance52, create_fragment52, safe_not_equal, { - plugin: 0, - tree: 1, - open_signal: 6, - show_node_options: 2, - show_attributes: 3, - sort: 4 - }); - } -}; -var NestedEdgeList_default = NestedEdgeList; - -// src/components/codeblocks/CodeblockTree.svelte -function create_if_block_19(ctx) { - let h3; - let t_value = ( - /*options*/ - ctx[1].title + "" - ); - let t; - return { - c() { - h3 = element("h3"); - t = text(t_value); - attr(h3, "class", "BC-codeblock-tree-title"); - }, - m(target, anchor) { - insert(target, h3, anchor); - append(h3, t); - }, - p(ctx2, dirty) { - if (dirty & /*options*/ - 2 && t_value !== (t_value = /*options*/ - ctx2[1].title + "")) - set_data(t, t_value); - }, - d(detaching) { - if (detaching) { - detach(h3); - } - } - }; -} -function create_else_block11(ctx) { - let p; - return { - c() { - p = element("p"); - p.textContent = "No paths found"; - attr(p, "class", "search-empty-state"); - }, - m(target, anchor) { - insert(target, p, anchor); - }, - p: noop, - i: noop, - o: noop, - d(detaching) { - if (detaching) { - detach(p); - } - } - }; -} -function create_if_block19(ctx) { - var _a; - let div2; - let div0; - let copytoclipboardbutton; - let t; - let div1; - let nestededgelist; - let current; - copytoclipboardbutton = new CopyToClipboardButton_default({ - props: { - cls: "clickable-icon nav-action-button", - text: ListIndex.edge_tree_to_list_index( - /*tree*/ - ctx[3], - { - .../*plugin*/ - ctx[0].settings.commands.list_index.default_options, - show_attributes: ( - /*options*/ - (_a = ctx[1]["show-attributes"]) != null ? _a : [] - ) - } - ) - } - }); - nestededgelist = new NestedEdgeList_default({ - props: { - sort: ( - /*sort*/ - ctx[4] - ), - tree: ( - /*tree*/ - ctx[3] - ), - plugin: ( - /*plugin*/ - ctx[0] - ), - show_node_options: ( - /*show_node_options*/ - ctx[5] - ), - open_signal: !/*options*/ - ctx[1].collapse, - show_attributes: ( - /*options*/ - ctx[1]["show-attributes"] - ) - } - }); - return { - c() { - div2 = element("div"); - div0 = element("div"); - create_component(copytoclipboardbutton.$$.fragment); - t = space(); - div1 = element("div"); - create_component(nestededgelist.$$.fragment); - attr(div0, "class", "absolute bottom-2 right-2 flex"); - attr(div1, "class", "pr-10"); - attr(div2, "class", "BC-codeblock-tree-items relative"); - }, - m(target, anchor) { - insert(target, div2, anchor); - append(div2, div0); - mount_component(copytoclipboardbutton, div0, null); - append(div2, t); - append(div2, div1); - mount_component(nestededgelist, div1, null); - current = true; - }, - p(ctx2, dirty) { - var _a2; - const copytoclipboardbutton_changes = {}; - if (dirty & /*tree, plugin, options*/ - 11) - copytoclipboardbutton_changes.text = ListIndex.edge_tree_to_list_index( - /*tree*/ - ctx2[3], - { - .../*plugin*/ - ctx2[0].settings.commands.list_index.default_options, - show_attributes: ( - /*options*/ - (_a2 = ctx2[1]["show-attributes"]) != null ? _a2 : [] - ) - } - ); - copytoclipboardbutton.$set(copytoclipboardbutton_changes); - const nestededgelist_changes = {}; - if (dirty & /*tree*/ - 8) - nestededgelist_changes.tree = /*tree*/ - ctx2[3]; - if (dirty & /*plugin*/ - 1) - nestededgelist_changes.plugin = /*plugin*/ - ctx2[0]; - if (dirty & /*options*/ - 2) - nestededgelist_changes.open_signal = !/*options*/ - ctx2[1].collapse; - if (dirty & /*options*/ - 2) - nestededgelist_changes.show_attributes = /*options*/ - ctx2[1]["show-attributes"]; - nestededgelist.$set(nestededgelist_changes); - }, - i(local) { - if (current) - return; - transition_in(copytoclipboardbutton.$$.fragment, local); - transition_in(nestededgelist.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(copytoclipboardbutton.$$.fragment, local); - transition_out(nestededgelist.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div2); - } - destroy_component(copytoclipboardbutton); - destroy_component(nestededgelist); - } - }; -} -function create_fragment53(ctx) { - let div; - let codeblockerrors; - let t0; - let t1; - let current_block_type_index; - let if_block1; - let current; - codeblockerrors = new CodeblockErrors_default({ - props: { - plugin: ( - /*plugin*/ - ctx[0] - ), - errors: ( - /*errors*/ - ctx[2] - ) - } - }); - let if_block0 = ( - /*options*/ - ctx[1].title && create_if_block_19(ctx) - ); - const if_block_creators = [create_if_block19, create_else_block11]; - const if_blocks = []; - function select_block_type(ctx2, dirty) { - if ( - /*tree*/ - ctx2[3].length - ) - return 0; - return 1; - } - current_block_type_index = select_block_type(ctx, -1); - if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx); - return { - c() { - div = element("div"); - create_component(codeblockerrors.$$.fragment); - t0 = space(); - if (if_block0) - if_block0.c(); - t1 = space(); - if_block1.c(); - attr(div, "class", "BC-codeblock-tree"); - }, - m(target, anchor) { - insert(target, div, anchor); - mount_component(codeblockerrors, div, null); - append(div, t0); - if (if_block0) - if_block0.m(div, null); - append(div, t1); - if_blocks[current_block_type_index].m(div, null); - current = true; - }, - p(ctx2, [dirty]) { - const codeblockerrors_changes = {}; - if (dirty & /*plugin*/ - 1) - codeblockerrors_changes.plugin = /*plugin*/ - ctx2[0]; - if (dirty & /*errors*/ - 4) - codeblockerrors_changes.errors = /*errors*/ - ctx2[2]; - codeblockerrors.$set(codeblockerrors_changes); - if ( - /*options*/ - ctx2[1].title - ) { - if (if_block0) { - if_block0.p(ctx2, dirty); - } else { - if_block0 = create_if_block_19(ctx2); - if_block0.c(); - if_block0.m(div, t1); - } - } else if (if_block0) { - if_block0.d(1); - if_block0 = null; - } - let previous_block_index = current_block_type_index; - current_block_type_index = select_block_type(ctx2, dirty); - if (current_block_type_index === previous_block_index) { - if_blocks[current_block_type_index].p(ctx2, dirty); - } else { - group_outros(); - transition_out(if_blocks[previous_block_index], 1, 1, () => { - if_blocks[previous_block_index] = null; - }); - check_outros(); - if_block1 = if_blocks[current_block_type_index]; - if (!if_block1) { - if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2); - if_block1.c(); - } else { - if_block1.p(ctx2, dirty); - } - transition_in(if_block1, 1); - if_block1.m(div, null); - } - }, - i(local) { - if (current) - return; - transition_in(codeblockerrors.$$.fragment, local); - transition_in(if_block1); - current = true; - }, - o(local) { - transition_out(codeblockerrors.$$.fragment, local); - transition_out(if_block1); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div); - } - destroy_component(codeblockerrors); - if (if_block0) - if_block0.d(); - if_blocks[current_block_type_index].d(); - } - }; -} -function instance53($$self, $$props, $$invalidate) { - let source_path; - let $active_file_store; - component_subscribe($$self, active_file_store, ($$value) => $$invalidate(8, $active_file_store = $$value)); - var _a; - let { plugin } = $$props; - let { options } = $$props; - let { errors } = $$props; - let { file_path } = $$props; - const sort = get_edge_sorter( - // @ts-expect-error: ts(2345) - options.sort, - plugin.graph - ); - const { show_node_options } = plugin.settings.views.codeblocks; - let tree = []; - const update2 = () => { - $$invalidate(3, tree = get_tree()); - }; - const base_traversal = (attr2) => Traverse.build_tree(plugin.graph, source_path, { max_depth: options.depth[1] }, (e) => has_edge_attrs(e, Object.assign(Object.assign({}, attr2), { - $or_target_ids: options["dataview-from-paths"] - }))); - const edge_field_labels = (_a = options.fields) !== null && _a !== void 0 ? _a : plugin.settings.edge_fields.map((f) => f.label); - const get_tree = () => { - if (source_path && plugin.graph.hasNode(source_path)) { - const traversal = options["merge-fields"] ? base_traversal({ $or_fields: options.fields }) : edge_field_labels.flatMap((field) => base_traversal({ field })); - return options.flat ? Traverse.flatten_tree(traversal).map((item) => ({ depth: 0, children: [], edge: item.edge })) : traversal; - } else { - return []; - } - }; - onMount(update2); - $$self.$$set = ($$props2) => { - if ("plugin" in $$props2) - $$invalidate(0, plugin = $$props2.plugin); - if ("options" in $$props2) - $$invalidate(1, options = $$props2.options); - if ("errors" in $$props2) - $$invalidate(2, errors = $$props2.errors); - if ("file_path" in $$props2) - $$invalidate(6, file_path = $$props2.file_path); - }; - $$self.$$.update = () => { - if ($$self.$$.dirty & /*file_path, $active_file_store*/ - 320) { - $: - source_path = file_path ? file_path : $active_file_store ? $active_file_store.path : ""; - } - }; - return [ - plugin, - options, - errors, - tree, - sort, - show_node_options, - file_path, - update2, - $active_file_store - ]; -} -var CodeblockTree = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance53, create_fragment53, safe_not_equal, { - plugin: 0, - options: 1, - errors: 2, - file_path: 6, - update: 7 - }); - } - get update() { - return this.$$.ctx[7]; - } -}; -var CodeblockTree_default = CodeblockTree; - -// src/codeblocks/MDRC.ts -var CodeblockMDRC = class extends import_obsidian27.MarkdownRenderChild { - constructor(plugin, containerEl, source, file_path) { - super(containerEl); - this.plugin = plugin; - this.source = source; - this.file_path = file_path; - this.id = window.crypto.randomUUID(); - } - async update() { - log.debug("CodeblockMDRC.update"); - if (this.component) { - try { - this.component.update(); - } catch (e) { - log.error("CodeblockMDRC.update error >", e); - } - } - } - async onload() { - const timer_outer = new Timer(); - log.debug("CodeblockMDRC.load"); - Codeblocks.register(this); - this.containerEl.empty(); - const timer_inner = new Timer(); - const { parsed, errors } = Codeblocks.parse_source(this.source, { - edge_fields: this.plugin.settings.edge_fields, - field_groups: this.plugin.settings.edge_field_groups - }); - log.debug(timer_inner.elapsedMessage("Codeblocks.parse_source", true)); - if (!parsed) { - log.warn("fatal codeblock errors", errors); - new CodeblockErrors_default({ - target: this.containerEl, - props: { errors, plugin: this.plugin } - }); - return; - } - const { options, file_path } = Codeblocks.postprocess_options( - this.file_path, - parsed, - errors, - this.plugin - ); - log.debug("resolved codeblock options", options); - log.debug( - timer_inner.elapsedMessage("Codeblocks.postprocess_options", true) - ); - if (errors.length) - log.warn("non-fatal codeblock errors", errors); - if (options.type === "tree") { - this.component = new CodeblockTree_default({ - target: this.containerEl, - props: { - errors, - options, - file_path, - plugin: this.plugin - } - }); - } else if (options.type === "mermaid") { - this.component = new CodeblockMermaid_default({ - target: this.containerEl, - props: { - errors, - options, - file_path, - plugin: this.plugin - } - }); - } else if (options.type === "markmap") { - this.component = new CodeblockMarkmap_default({ - target: this.containerEl, - props: { - errors, - options, - file_path, - plugin: this.plugin - } - }); - } else { - log.error("CodeblockMDRC unknown type", options.type); - } - log.debug(timer_inner.elapsedMessage("component creation", true)); - log.debug(timer_outer.elapsedMessage("CodeblockMDRC.onload")); - } - onunload() { - var _a; - log.debug("CodeblockMDRC.unload"); - Codeblocks.unregister(this); - (_a = this.component) == null ? void 0 : _a.$destroy(); - } -}; - -// src/commands/init.ts -var import_obsidian34 = require("obsidian"); - -// src/components/input/SimpleInput.svelte -function create_if_block20(ctx) { - let label_1; - let t; - return { - c() { - label_1 = element("label"); - t = text( - /*label*/ - ctx[0] - ); - attr(label_1, "for", "input"); - }, - m(target, anchor) { - insert(target, label_1, anchor); - append(label_1, t); - }, - p(ctx2, dirty) { - if (dirty & /*label*/ - 1) - set_data( - t, - /*label*/ - ctx2[0] - ); - }, - d(detaching) { - if (detaching) { - detach(label_1); - } - } - }; -} -function create_fragment54(ctx) { - let div; - let t0; - let input; - let t1; - let button; - let t2; - let button_disabled_value; - let mounted; - let dispose; - let if_block = ( - /*label*/ - ctx[0] && create_if_block20(ctx) - ); - return { - c() { - div = element("div"); - if (if_block) - if_block.c(); - t0 = space(); - input = element("input"); - t1 = space(); - button = element("button"); - t2 = text("Submit"); - attr(input, "name", "input"); - attr(input, "type", "text"); - button.disabled = button_disabled_value = /*disabled_cb*/ - ctx[1]( - /*value*/ - ctx[2] - ); - attr(div, "class", "flex flex-col gap-1"); - }, - m(target, anchor) { - insert(target, div, anchor); - if (if_block) - if_block.m(div, null); - append(div, t0); - append(div, input); - set_input_value( - input, - /*value*/ - ctx[2] - ); - append(div, t1); - append(div, button); - append(button, t2); - if (!mounted) { - dispose = [ - listen( - input, - "input", - /*input_input_handler*/ - ctx[4] - ), - listen( - button, - "click", - /*click_handler*/ - ctx[5] - ) - ]; - mounted = true; - } - }, - p(ctx2, [dirty]) { - if ( - /*label*/ - ctx2[0] - ) { - if (if_block) { - if_block.p(ctx2, dirty); - } else { - if_block = create_if_block20(ctx2); - if_block.c(); - if_block.m(div, t0); - } - } else if (if_block) { - if_block.d(1); - if_block = null; - } - if (dirty & /*value*/ - 4 && input.value !== /*value*/ - ctx2[2]) { - set_input_value( - input, - /*value*/ - ctx2[2] - ); - } - if (dirty & /*disabled_cb, value*/ - 6 && button_disabled_value !== (button_disabled_value = /*disabled_cb*/ - ctx2[1]( - /*value*/ - ctx2[2] - ))) { - button.disabled = button_disabled_value; - } - }, - i: noop, - o: noop, - d(detaching) { - if (detaching) { - detach(div); - } - if (if_block) - if_block.d(); - mounted = false; - run_all(dispose); - } - }; -} -function instance54($$self, $$props, $$invalidate) { - let { label = "" } = $$props; - let { disabled_cb = (_value) => false } = $$props; - let value = ""; - const dispatch = createEventDispatcher(); - function input_input_handler() { - value = this.value; - $$invalidate(2, value); - } - const click_handler = () => dispatch("submit", value); - $$self.$$set = ($$props2) => { - if ("label" in $$props2) - $$invalidate(0, label = $$props2.label); - if ("disabled_cb" in $$props2) - $$invalidate(1, disabled_cb = $$props2.disabled_cb); - }; - return [label, disabled_cb, value, dispatch, input_input_handler, click_handler]; -} -var SimpleInput = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance54, create_fragment54, safe_not_equal, { label: 0, disabled_cb: 1 }); - } -}; -var SimpleInput_default = SimpleInput; - -// src/modals/CreateListIndexModal.ts -var import_obsidian28 = require("obsidian"); -var CreateListIndexModal = class extends import_obsidian28.Modal { - constructor(app, plugin) { - super(app); - this.active_file = get_store_value(active_file_store); - this.plugin = plugin; - this.options = plugin.settings.commands.list_index.default_options; - } - onOpen() { - if (!this.active_file) { - new import_obsidian28.Notice("No active file"); - return this.close(); - } - const { contentEl, plugin } = this; - contentEl.createEl("h2", { - text: "Create List Index" - }); - new FieldGroupLabelsSettingItem_default({ - target: contentEl, - props: { - field_group_labels: this.options.field_group_labels, - edge_field_groups: plugin.settings.edge_field_groups - } - }).$on("select", (e) => { - this.options.field_group_labels = e.detail; - this.options.fields = resolve_field_group_labels( - plugin.settings.edge_field_groups, - this.options.field_group_labels - ); - }); - new_setting(contentEl, { - name: "Link Kind", - desc: "Format to use for links", - select: { - options: LINK_KINDS, - value: this.options.link_kind, - cb: (value) => this.options.link_kind = value - } - }); - new_setting(contentEl, { - name: "Indent", - desc: "Indentation to use for each level", - input: { - value: this.options.indent, - cb: (value) => this.options.indent = value - } - }); - new EdgeSortIdSettingItem_default({ - target: contentEl, - props: { edge_sort_id: this.options.edge_sort_id } - }).$on("select", (e) => { - this.options.edge_sort_id = e.detail; - }); - new ShowAttributesSettingItem_default({ - target: contentEl, - props: { show_attributes: this.options.show_attributes } - }).$on("select", (e) => { - this.options.show_attributes = e.detail; - }); - _add_settings_show_node_options( - plugin, - contentEl, - { - get: () => this.options.show_node_options, - set: (value) => this.options.show_node_options = value - }, - { save_and_refresh: false } - ); - new import_obsidian28.Setting(contentEl).addButton( - (btn) => btn.setButtonText("Build & Copy to Clipboard").setCta().onClick(async () => { - log.debug("build_list_index options", this.options); - const list_index = ListIndex.build( - plugin.graph, - this.active_file.path, - this.options - ); - if (list_index) { - await navigator.clipboard.writeText(list_index); - new import_obsidian28.Notice("List index copied to clipboard"); - } else { - new import_obsidian28.Notice("No list items to copy"); - } - this.close(); - }) - ); - } - onClose() { - this.contentEl.empty(); - } -}; - -// src/modals/GenericModal.ts -var import_obsidian29 = require("obsidian"); -var GenericModal = class extends import_obsidian29.Modal { - constructor(app, cb) { - super(app); - this.cb = cb; - } - onOpen() { - this.cb(this); - } - onClose() { - this.contentEl.empty(); - } -}; - -// src/commands/freeze_edges/index.ts -var import_obsidian31 = require("obsidian"); - -// src/utils/drop_crumb.ts -var import_obsidian30 = require("obsidian"); -var linkify_edge = (plugin, source_id, target_id, target_aliases) => { - const target_file = plugin.app.vault.getFileByPath(target_id); - if (!target_file) { - return `[[${Paths.drop_ext(target_id)}]]`; - } else { - return plugin.app.fileManager.generateMarkdownLink( - target_file, - source_id, - void 0, - target_aliases == null ? void 0 : target_aliases.at(0) - ); - } -}; -var drop_crumbs = async (plugin, destination_file, crumbs, options) => { - var _a, _b; - if (!crumbs.length) - return; - const links_by_field = group_projection( - group_by(crumbs, (e) => e.attr.field), - (edges) => edges.map( - (e) => linkify_edge( - plugin, - e.source_id, - e.target_id, - e.target_attr.aliases - ) - ) - ); - switch (options.destination) { - case "frontmatter": { - let mutated = false; - const frontmatter = (_b = (_a = plugin.app.metadataCache.getFileCache(destination_file)) == null ? void 0 : _a.frontmatter) != null ? _b : {}; - Object.entries(links_by_field).forEach(([field, links]) => { - if (!(links == null ? void 0 : links.length)) - return; - const existing = frontmatter[field]; - if (existing) { - const existing_array = ensure_is_array(existing); - const new_links = remove_duplicates( - existing_array.concat(links) - ); - if (new_links.length !== existing_array.length) { - mutated = true; - frontmatter[field] = new_links; - } - } else { - mutated = true; - frontmatter[field] = links; - } - }); - if (mutated) { - await plugin.app.fileManager.processFrontMatter( - destination_file, - (old_frontmatter) => { - const new_frontmatter = Object.assign( - old_frontmatter, - frontmatter - ); - log.debug( - "drop_crumbs > processed frontmatter", - new_frontmatter - ); - } - ); - } - break; - } - case "dataview-inline": { - const dataview_fields = Object.entries(links_by_field).map(([field, links]) => { - if (!(links == null ? void 0 : links.length)) - return ""; - else - return `${field}:: ${links.join(", ")}`; - }).filter(Boolean); - await plugin.app.vault.process(destination_file, (content) => { - content += "\n\n" + dataview_fields.join("\n"); - return content; - }); - break; - } - case "none": { - break; - } - } -}; - -// src/commands/freeze_edges/index.ts -var freeze_implied_edges_to_note = async (plugin, source_file, options) => { - const implied_edges = plugin.graph.get_out_edges(source_file.path).filter( - (e) => ( - // Don't freeze a note to itself (self_is_sibling) - !is_self_loop(e) && !e.attr.explicit && // If field === null, we don't have an opposite field to freeze to - e.attr.field !== null - ) - ); - await drop_crumbs(plugin, source_file, implied_edges, options); -}; - -// src/commands/jump/index.ts -var import_obsidian32 = require("obsidian"); -var jump_to_neighbour = async (plugin, options) => { - const active_file = get_store_value(active_file_store); - if (!active_file) - return; - const matches = plugin.graph.get_out_edges(active_file.path).filter( - (e) => has_edge_attrs(e, options.attr) && e.target_id !== active_file.path - ); - if (!matches.length) { - new import_obsidian32.Notice( - `No matches found with attributes: ${url_search_params(options.attr)}` - ); - return; - } else { - await plugin.app.workspace.openLinkText( - matches[0].target_id, - active_file.path - ); - } -}; - -// src/commands/stats/index.ts -var get_graph_stats = (graph, data) => { - var _a, _b; - const stats = { - nodes: { - resolved: {} - }, - edges: { - round: {}, - field: {}, - group: {}, - source: {}, - explicit: {}, - implied_kind: {} - } - }; - for (const node of graph.nodeEntries()) { - const resolved = String(node.attributes.resolved); - stats.nodes.resolved[resolved] = (stats.nodes.resolved[resolved] || 0) + 1; - } - for (const { attributes: attr2 } of graph.edgeEntries()) { - stats.edges.field[(_a = attr2.field) != null ? _a : "null"] = (stats.edges.field[(_b = attr2.field) != null ? _b : "null"] || 0) + 1; - data.groups.forEach((group) => { - if (group.fields.includes(attr2.field)) { - stats.edges.group[group.label] = (stats.edges.group[group.label] || 0) + 1; - } - }); - const explicit = String(attr2.explicit); - stats.edges.explicit[explicit] = (stats.edges.explicit[explicit] || 0) + 1; - if (attr2.explicit) { - stats.edges.source[attr2.source] = (stats.edges.source[attr2.source] || 0) + 1; - } else { - stats.edges.implied_kind[attr2.implied_kind] = (stats.edges.implied_kind[attr2.implied_kind] || 0) + 1; - const round = String(attr2.round); - stats.edges.round[round] = (stats.edges.round[round] || 0) + 1; - } - } - return stats; -}; - -// src/commands/thread/index.ts -var import_obsidian33 = require("obsidian"); -var thread = async (plugin, attr2, options) => { - var _a, _b; - const active_view = plugin.app.workspace.getActiveViewOfType(import_obsidian33.MarkdownView); - if (!active_view) - return; - const source_file = active_view.file; - if (!source_file) - return; - const template_data = { - attr: attr2, - source: { - path: source_file.path, - folder: (_b = (_a = source_file.parent) == null ? void 0 : _a.path) != null ? _b : "", - basename: source_file.basename - } - }; - log.info("template_data", template_data); - const target_path = Paths.normalise( - Paths.ensure_ext( - resolve_templates(options.target_path_template, template_data), - "md" - ) - ); - log.debug("thread > target_path", target_path); - let target_file = null; - try { - target_file = await plugin.app.vault.create(target_path, ""); - } catch (error) { - const msg = `Error creating file "${target_path}". ${error instanceof Error ? error.message : error}`; - new import_obsidian33.Notice(msg); - log.error(msg); - return; - } - await drop_crumbs( - plugin, - source_file, - [ - { - attr: attr2, - target_id: target_path, - source_id: source_file.path, - target_attr: { aliases: [] } - } - ], - options - ); - await Promise.all([ - // Let the cache update so that the refresh sees the new file - // NOTE: I half-completed a less-flaky solution by listening to app.metadataCache.on("changed", ...) - // But this only works if Dataview isn't enabled, and I couldn't find the correct event to listen to for Dataview - sleep(500), - active_view.leaf.openFile(target_file) - ]); - await plugin.refresh(); -}; - -// src/commands/init.ts -var init_all_commands = (plugin) => { - plugin.addCommand({ - id: "breadcrumbs:rebuild-graph", - name: "Rebuild graph", - callback: async () => await plugin.refresh() - }); - Object.keys(VIEW_IDS).forEach((view_id) => { - plugin.addCommand({ - id: `breadcrumbs:open-${view_id}-view`, - name: `Open ${view_id} view`, - callback: () => plugin.activateView(VIEW_IDS[view_id]) - }); - }); - plugin.addCommand({ - id: "breadcrumbs:create-list-index", - name: "Create list index", - callback: () => { - new CreateListIndexModal(plugin.app, plugin).open(); - } - }); - plugin.addCommand({ - id: "breadcrumbs:graph-stats", - name: "Show/Copy graph stats", - callback: async () => { - const stats = get_graph_stats(plugin.graph, { - groups: plugin.settings.edge_field_groups - }); - log.feat("Graph stats >", stats); - await navigator.clipboard.writeText(JSON.stringify(stats, null, 2)); - new import_obsidian34.Notice( - "Graph stats printed to console and copied to clipboard" - ); - } - }); - plugin.addCommand({ - id: "breadcrumbs:freeze-implied-edges-to-note", - name: "Freeze implied edges to note", - callback: async () => { - const active_file = get_store_value(active_file_store); - if (!active_file) - return; - await freeze_implied_edges_to_note( - plugin, - active_file, - plugin.settings.commands.freeze_implied_edges.default_options - ); - new import_obsidian34.Notice("Implied edges frozen to note"); - } - }); - plugin.addCommand({ - id: "breadcrumbs:freeze-implied-edges-to-vault", - name: "Freeze implied edges to all notes in vault", - callback: async () => { - if (!confirm( - "Are you sure you want to freeze implied edges to all notes in vault? This will write to all notes that have outgoing implied edges." - )) { - return new import_obsidian34.Notice("Command cancelled"); - } - const PROMPT_TARGET = "FREEZE TO VAULT"; - new GenericModal(plugin.app, (modal) => { - new SimpleInput_default({ - target: modal.contentEl, - props: { - label: `Type '${PROMPT_TARGET}' to confirm`, - disabled_cb: (value) => value !== PROMPT_TARGET - } - }).$on("submit", async (e) => { - if (e.detail !== PROMPT_TARGET) { - new import_obsidian34.Notice("Command cancelled"); - } else { - const timer = new Timer(); - const notice = new import_obsidian34.Notice( - "Freezing implied edges to all notes in vault..." - ); - await Promise.all( - plugin.app.vault.getMarkdownFiles().map( - (file) => freeze_implied_edges_to_note( - plugin, - file, - plugin.settings.commands.freeze_implied_edges.default_options - ) - ) - ); - log.debug( - `freeze-implied-edges-to-vault > took ${timer.elapsed_str()}ms` - ); - notice.setMessage( - `Implied edges frozen to all notes in ${timer.elapsed_str()}ms` - ); - } - modal.close(); - }); - }).open(); - } - }); - plugin.settings.edge_field_groups.forEach((group) => { - plugin.addCommand({ - id: `breadcrumbs:jump-to-first-neighbour-group:${group.label}`, - name: `Jump to first neighbour by group:${group.label}`, - callback: () => jump_to_neighbour(plugin, { - attr: { $or_fields: group.fields } - }) - }); - }); - plugin.settings.edge_fields.forEach(({ label }) => { - plugin.addCommand({ - id: `breadcrumbs:thread-field:${label}`, - name: `Thread by field:${label}`, - callback: () => thread( - plugin, - { field: label }, - plugin.settings.commands.thread.default_options - ) - }); - }); -}; - -// src/interfaces/settings.ts -var OLD_DIRECTIONS = ["up", "down", "same", "prev", "next"]; - -// src/settings/migration.ts -var get_opposite_direction = (dir) => { - switch (dir) { - case "up": - return "down"; - case "down": - return "up"; - case "same": - return "same"; - case "next": - return "prev"; - case "prev": - return "next"; - } -}; -var migrate_old_settings = (settings) => { - const old = settings; - if (old.userHiers && old.impliedRelations) { - const implied_relationships = { - opposite_direction: { - rounds: 1 - }, - self_is_sibling: { - rounds: Number(old.impliedRelations.siblingIdentity) - }, - cousin_is_sibling: { - rounds: Number(old.impliedRelations.cousinsIsSibling) - }, - same_parent_is_sibling: { - rounds: Number(old.impliedRelations.sameParentIsSibling) - }, - same_sibling_is_sibling: { - rounds: Number(old.impliedRelations.siblingsSiblingIsSibling) - }, - siblings_parent_is_parent: { - rounds: Number(old.impliedRelations.siblingsParentIsParent) - }, - parents_sibling_is_parent: { - rounds: Number(old.impliedRelations.parentsSiblingsIsParents) - } - }; - old.hierarchies = old.userHiers.map((hierarchy) => ({ - dirs: OLD_DIRECTIONS.reduce( - (acc, dir) => ({ - ...acc, - [dir]: hierarchy[dir] - }), - {} - ), - implied_relationships - })); - delete old.userHiers; - delete old.impliedRelations; - } - if (old.hierarchies) { - OLD_DIRECTIONS.forEach((dir) => { - const fields = old.hierarchies.flatMap((hier) => hier.dirs[dir]).filter(Boolean); - const label = `${dir}s`; - const existing = settings.edge_field_groups.find( - (group) => group.label === label - ); - if (existing) { - existing.fields.push(...fields); - existing.fields = remove_duplicates(existing.fields); - } else { - settings.edge_field_groups.push({ label, fields }); - } - }); - old.hierarchies.forEach((hier, hier_i) => { - Object.values(hier.dirs).flatMap((fields) => fields).filter(Boolean).forEach((label) => { - if (!settings.edge_fields.find( - (field) => field.label === label - )) { - settings.edge_fields.push({ label }); - } - }); - Object.entries(hier.implied_relationships).forEach( - ([rel, { rounds }]) => { - if (!rounds) - return; - const fields = { - up: hier.dirs.up[0], - same: hier.dirs.same[0], - down: hier.dirs.down[0], - next: hier.dirs.next[0], - prev: hier.dirs.prev[0] - }; - switch (rel) { - case "opposite_direction": { - OLD_DIRECTIONS.forEach((dir) => { - const field = fields[dir]; - const close_field = fields[get_opposite_direction(dir)]; - if (!field || !close_field) - return; - settings.implied_relations.transitive.push({ - rounds, - name: "", - close_field, - chain: [{ field }], - close_reversed: true - }); - }); - break; - } - case "cousin_is_sibling": { - if (!fields.up || !fields.same || !fields.down) { - return; - } - settings.implied_relations.transitive.push({ - rounds, - name: "", - chain: [ - { field: fields.up }, - { field: fields.same }, - { field: fields.down } - ], - close_reversed: false, - close_field: fields.same - }); - break; - } - case "same_parent_is_sibling": { - if (!fields.up || !fields.down || !fields.down) { - return; - } - settings.implied_relations.transitive.push({ - rounds, - name: "", - chain: [ - { field: fields.up }, - { field: fields.down } - ], - close_reversed: false, - close_field: fields.same - }); - break; - } - case "same_sibling_is_sibling": { - if (!fields.same) - return; - settings.implied_relations.transitive.push({ - rounds, - name: "", - chain: [ - { field: fields.same }, - { field: fields.same } - ], - close_reversed: false, - close_field: fields.same - }); - break; - } - case "siblings_parent_is_parent": { - if (!fields.up || !fields.same) - return; - settings.implied_relations.transitive.push({ - rounds, - name: "", - chain: [ - { field: fields.same }, - { field: fields.up } - ], - close_reversed: false, - close_field: fields.up - }); - break; - } - case "parents_sibling_is_parent": { - if (!fields.up || !fields.same) - return; - settings.implied_relations.transitive.push({ - rounds, - name: "", - chain: [ - { field: fields.up }, - { field: fields.same } - ], - close_reversed: false, - close_field: fields.up - }); - break; - } - } - } - ); - }); - delete old.hierarchies; - settings.edge_field_groups = remove_duplicates_by( - settings.edge_field_groups, - (group) => group.label - ); - } - if (old.custom_implied_relations) { - old.custom_implied_relations.transitive.forEach((rel) => { - settings.implied_relations.transitive.push({ - ...rel, - name: "", - close_reversed: false - }); - }); - delete old.custom_implied_relations; - } - settings.implied_relations.transitive = remove_duplicates_by( - settings.implied_relations.transitive, - stringify_transitive_relation - ); - if (old.tagNoteField !== void 0) { - settings.explicit_edge_sources.tag_note.default_field = old.tagNoteField; - delete old.tagNoteField; - } - if (old.hierarchyNotes !== void 0 && old.hierarchyNoteIsParent !== void 0 && old.HNUpField !== void 0) { - if (old.hierarchyNotes.length > 0) { - const msg = `DEPRECATED: The central Hierarchy Notes setting is deprecated in favour of the "${META_ALIAS["list-note-field"]}" field in each hierarchy note.`; - log.warn(msg); - } - delete old.HNUpField; - delete old.hierarchyNotes; - delete old.hierarchyNoteIsParent; - } - if (old.addDendronNotes !== void 0 && old.dendronNoteField !== void 0 && old.trimDendronNotes !== void 0 && old.dendronNoteDelimiter !== void 0) { - settings.explicit_edge_sources.dendron_note = { - enabled: old.addDendronNotes, - default_field: old.dendronNoteField, - delimiter: old.dendronNoteDelimiter, - display_trimmed: old.trimDendronNotes - }; - delete old.addDendronNotes; - delete old.dendronNoteField; - delete old.trimDendronNotes; - delete old.dendronNoteDelimiter; - } - if (old.addDateNotes !== void 0 && old.dateNoteField !== void 0 && old.dateNoteFormat !== void 0) { - settings.explicit_edge_sources.date_note = { - ...DEFAULT_SETTINGS.explicit_edge_sources.date_note, - enabled: old.addDateNotes, - default_field: old.dateNoteField, - date_format: old.dateNoteFormat - }; - delete old.addDateNotes; - delete old.dateNoteField; - delete old.dateNoteFormat; - } - if (old.respectReadableLineLength !== void 0) { - settings.views.page.all.readable_line_width = old.respectReadableLineLength; - delete old.respectReadableLineLength; - } - if (old.showBCs !== void 0) { - settings.views.page.trail.enabled = old.showBCs; - delete old.showBCs; - } - if (old.showGrid !== void 0) { - settings.views.page.trail.format = old.showGrid ? "grid" : "path"; - delete old.showGrid; - } - if (old.gridDefaultDepth !== void 0) { - settings.views.page.trail.default_depth = old.gridDefaultDepth; - delete old.gridDefaultDepth; - } - if (old.noPathMessage !== void 0) { - settings.views.page.trail.no_path_message = old.noPathMessage; - delete old.noPathMessage; - } - if (old.showPrevNext !== void 0) { - settings.views.page.prev_next.enabled = old.showPrevNext; - delete old.showPrevNext; - } - if (old.views.side.tree.default_dir !== void 0) { - delete old.views.side.tree.default_dir; - } - if (settings.codeblocks !== void 0) { - settings.views.codeblocks = settings.codeblocks; - delete settings.codeblocks; - } - if (old.showRefreshNotice !== void 0 && old.refreshOnNoteSave !== void 0 && old.refreshOnNoteChange !== void 0) { - settings.commands.rebuild_graph.notify = old.showRefreshNotice; - settings.commands.rebuild_graph.trigger = { - note_save: old.refreshOnNoteSave, - layout_change: old.refreshOnNoteChange - }; - delete old.showRefreshNotice; - delete old.refreshOnNoteSave; - delete old.refreshOnNoteChange; - } - if (old.wikilinkIndex !== void 0 && old.aliasesInIndex !== void 0 && old.createIndexIndent !== void 0) { - settings.commands.list_index.default_options = { - ...settings.commands.list_index.default_options, - indent: old.createIndexIndent, - link_kind: old.wikilinkIndex ? "wiki" : "none", - show_node_options: { - ...ListIndex.DEFAULT_OPTIONS.show_node_options, - alias: old.aliasesInIndex - } - }; - delete settings.commands.list_index.default_options.dir; - delete old.wikilinkIndex; - delete old.aliasesInIndex; - delete old.createIndexIndent; - } - if (old.writeBCsInline !== void 0) { - settings.commands.freeze_implied_edges.default_options.destination = old.writeBCsInline ? "dataview-inline" : "frontmatter"; - delete old.writeBCsInline; - } - if (old.threadingTemplate !== void 0) { - settings.commands.thread.default_options.target_path_template = old.threadingTemplate; - delete old.threadingTemplate; - } - if (old.threadUnderCursor !== void 0) { - settings.commands.thread.default_options.destination = old.threadUnderCursor ? "dataview-inline" : "frontmatter"; - delete old.threadUnderCursor; - } - if (old.enableRelationSuggestor !== void 0) { - settings.suggestors.edge_field.enabled = old.enableRelationSuggestor; - delete old.enableRelationSuggestor; - } - if (old.relSuggestorTrigger !== void 0) { - settings.suggestors.edge_field.trigger = old.relSuggestorTrigger; - delete old.relSuggestorTrigger; - } - if (old.suggestors.hierarchy_field !== void 0) { - settings.suggestors.edge_field = old.suggestors.hierarchy_field; - delete old.suggestors.hierarchy_field; - } - if (old.alphaSortAsc !== void 0) { - delete old.alphaSortAsc; - } - if (old.debugMode) { - delete old.debugMode; - } - if (old.dvWaitTime !== void 0) { - delete old.dvWaitTime; - } - if (old.fieldSuggestor !== void 0) { - delete old.fieldSuggestor; - } - if (old.filterImpliedSiblingsOfDifferentTypes !== void 0) { - delete old.filterImpliedSiblingsOfDifferentTypes; - } - if (old.jugglLayout !== void 0) { - delete old.jugglLayout; - } - return settings; -}; - -// src/suggestor/edge_fields.ts -var import_obsidian35 = require("obsidian"); -var EdgeFieldSuggestor = class extends import_obsidian35.EditorSuggest { - constructor(plugin) { - super(plugin.app); - this.getSuggestions = ({ query }) => this.plugin.settings.edge_fields.map((f) => f.label).filter((field) => field.includes(query)); - this.plugin = plugin; - } - onTrigger(cursor, editor, _file) { - const { trigger } = this.plugin.settings.suggestors.edge_field; - const sub = editor.getLine(cursor.line).substring(0, cursor.ch); - if (!sub.startsWith(trigger)) - return null; - const query = sub.slice(trigger.length); - return { - query, - end: cursor, - start: { ch: 0, line: cursor.line } - }; - } - renderSuggestion(suggestion, el) { - el.createDiv({ text: suggestion }); - } - selectSuggestion(suggestion) { - if (!this.context) - return; - const { start, end, editor } = this.context; - editor.replaceRange(suggestion + ":: [[", start, end); - } -}; - -// src/views/tree.ts -var import_obsidian36 = require("obsidian"); - -// src/components/side_views/TreeView.svelte -function create_else_block12(ctx) { - let div; - return { - c() { - div = element("div"); - div.textContent = "No paths found"; - attr(div, "class", "search-empty-state"); - }, - m(target, anchor) { - insert(target, div, anchor); - }, - p: noop, - i: noop, - o: noop, - d(detaching) { - if (detaching) { - detach(div); - } - } - }; -} -function create_if_block21(ctx) { - let nestededgelist; - let current; - nestededgelist = new NestedEdgeList_default({ - props: { - sort: ( - /*sort*/ - ctx[7] - ), - tree: ( - /*tree*/ - ctx[6] - ), - plugin: ( - /*plugin*/ - ctx[0] - ), - show_attributes: ( - /*show_attributes*/ - ctx[4] - ), - show_node_options: ( - /*show_node_options*/ - ctx[8] - ), - open_signal: !/*collapse*/ - ctx[5] - } - }); - return { - c() { - create_component(nestededgelist.$$.fragment); - }, - m(target, anchor) { - mount_component(nestededgelist, target, anchor); - current = true; - }, - p(ctx2, dirty) { - const nestededgelist_changes = {}; - if (dirty & /*sort*/ - 128) - nestededgelist_changes.sort = /*sort*/ - ctx2[7]; - if (dirty & /*tree*/ - 64) - nestededgelist_changes.tree = /*tree*/ - ctx2[6]; - if (dirty & /*plugin*/ - 1) - nestededgelist_changes.plugin = /*plugin*/ - ctx2[0]; - if (dirty & /*show_attributes*/ - 16) - nestededgelist_changes.show_attributes = /*show_attributes*/ - ctx2[4]; - if (dirty & /*collapse*/ - 32) - nestededgelist_changes.open_signal = !/*collapse*/ - ctx2[5]; - nestededgelist.$set(nestededgelist_changes); - }, - i(local) { - if (current) - return; - transition_in(nestededgelist.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(nestededgelist.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(nestededgelist, detaching); - } - }; -} -function create_key_block6(ctx) { - let current_block_type_index; - let if_block; - let if_block_anchor; - let current; - const if_block_creators = [create_if_block21, create_else_block12]; - const if_blocks = []; - function select_block_type(ctx2, dirty) { - if ( - /*tree*/ - ctx2[6].length - ) - return 0; - return 1; - } - current_block_type_index = select_block_type(ctx, -1); - if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx); - return { - c() { - if_block.c(); - if_block_anchor = empty(); - }, - m(target, anchor) { - if_blocks[current_block_type_index].m(target, anchor); - insert(target, if_block_anchor, anchor); - current = true; - }, - p(ctx2, dirty) { - let previous_block_index = current_block_type_index; - current_block_type_index = select_block_type(ctx2, dirty); - if (current_block_type_index === previous_block_index) { - if_blocks[current_block_type_index].p(ctx2, dirty); - } else { - group_outros(); - transition_out(if_blocks[previous_block_index], 1, 1, () => { - if_blocks[previous_block_index] = null; - }); - check_outros(); - if_block = if_blocks[current_block_type_index]; - if (!if_block) { - if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2); - if_block.c(); - } else { - if_block.p(ctx2, dirty); - } - transition_in(if_block, 1); - if_block.m(if_block_anchor.parentNode, if_block_anchor); - } - }, - i(local) { - if (current) - return; - transition_in(if_block); - current = true; - }, - o(local) { - transition_out(if_block); - current = false; - }, - d(detaching) { - if (detaching) { - detach(if_block_anchor); - } - if_blocks[current_block_type_index].d(detaching); - } - }; -} -function create_fragment55(ctx) { - let div3; - let div1; - let div0; - let rebuildgraphbutton; - let t0; - let edgesortidselector; - let updating_edge_sort_id; - let t1; - let showattributesselectormenu; - let updating_show_attributes; - let t2; - let chevroncollapsebutton; - let updating_collapse; - let t3; - let mergefieldsbutton; - let updating_merge_fields; - let t4; - let fieldgrouplabelsselector; - let updating_field_group_labels; - let t5; - let div2; - let previous_key = ( - /*tree*/ - ctx[6] || /*sort*/ - ctx[7] - ); - let current; - rebuildgraphbutton = new RebuildGraphButton_default({ - props: { - cls: "clickable-icon nav-action-button", - plugin: ( - /*plugin*/ - ctx[0] - ) - } - }); - function edgesortidselector_edge_sort_id_binding(value) { - ctx[11](value); - } - let edgesortidselector_props = { - cls: "clickable-icon nav-action-button", - exclude_fields: [] - }; - if ( - /*edge_sort_id*/ - ctx[1] !== void 0 - ) { - edgesortidselector_props.edge_sort_id = /*edge_sort_id*/ - ctx[1]; - } - edgesortidselector = new EdgeSortIdSelector_default({ props: edgesortidselector_props }); - binding_callbacks.push(() => bind(edgesortidselector, "edge_sort_id", edgesortidselector_edge_sort_id_binding)); - function showattributesselectormenu_show_attributes_binding(value) { - ctx[12](value); - } - let showattributesselectormenu_props = { cls: "clickable-icon nav-action-button" }; - if ( - /*show_attributes*/ - ctx[4] !== void 0 - ) { - showattributesselectormenu_props.show_attributes = /*show_attributes*/ - ctx[4]; - } - showattributesselectormenu = new ShowAttributesSelectorMenu_default({ props: showattributesselectormenu_props }); - binding_callbacks.push(() => bind(showattributesselectormenu, "show_attributes", showattributesselectormenu_show_attributes_binding)); - function chevroncollapsebutton_collapse_binding(value) { - ctx[13](value); - } - let chevroncollapsebutton_props = { cls: "clickable-icon nav-action-button" }; - if ( - /*collapse*/ - ctx[5] !== void 0 - ) { - chevroncollapsebutton_props.collapse = /*collapse*/ - ctx[5]; - } - chevroncollapsebutton = new ChevronCollapseButton_default({ props: chevroncollapsebutton_props }); - binding_callbacks.push(() => bind(chevroncollapsebutton, "collapse", chevroncollapsebutton_collapse_binding)); - function mergefieldsbutton_merge_fields_binding(value) { - ctx[14](value); - } - let mergefieldsbutton_props = { cls: "clickable-icon nav-action-button" }; - if ( - /*merge_fields*/ - ctx[2] !== void 0 - ) { - mergefieldsbutton_props.merge_fields = /*merge_fields*/ - ctx[2]; - } - mergefieldsbutton = new MergeFieldsButton_default({ props: mergefieldsbutton_props }); - binding_callbacks.push(() => bind(mergefieldsbutton, "merge_fields", mergefieldsbutton_merge_fields_binding)); - function fieldgrouplabelsselector_field_group_labels_binding(value) { - ctx[15](value); - } - let fieldgrouplabelsselector_props = { - cls: "clickable-icon nav-action-button", - edge_field_groups: ( - /*plugin*/ - ctx[0].settings.edge_field_groups - ) - }; - if ( - /*field_group_labels*/ - ctx[3] !== void 0 - ) { - fieldgrouplabelsselector_props.field_group_labels = /*field_group_labels*/ - ctx[3]; - } - fieldgrouplabelsselector = new FieldGroupLabelsSelector_default({ props: fieldgrouplabelsselector_props }); - binding_callbacks.push(() => bind(fieldgrouplabelsselector, "field_group_labels", fieldgrouplabelsselector_field_group_labels_binding)); - let key_block = create_key_block6(ctx); - return { - c() { - div3 = element("div"); - div1 = element("div"); - div0 = element("div"); - create_component(rebuildgraphbutton.$$.fragment); - t0 = space(); - create_component(edgesortidselector.$$.fragment); - t1 = space(); - create_component(showattributesselectormenu.$$.fragment); - t2 = space(); - create_component(chevroncollapsebutton.$$.fragment); - t3 = space(); - create_component(mergefieldsbutton.$$.fragment); - t4 = space(); - create_component(fieldgrouplabelsselector.$$.fragment); - t5 = space(); - div2 = element("div"); - key_block.c(); - attr(div0, "class", "nav-buttons-container"); - attr(div1, "class", "nav-header"); - attr(div2, "class", "BC-tree-view-items"); - attr(div3, "class", "markdown-rendered BC-tree-view"); - }, - m(target, anchor) { - insert(target, div3, anchor); - append(div3, div1); - append(div1, div0); - mount_component(rebuildgraphbutton, div0, null); - append(div0, t0); - mount_component(edgesortidselector, div0, null); - append(div0, t1); - mount_component(showattributesselectormenu, div0, null); - append(div0, t2); - mount_component(chevroncollapsebutton, div0, null); - append(div0, t3); - mount_component(mergefieldsbutton, div0, null); - append(div0, t4); - mount_component(fieldgrouplabelsselector, div0, null); - append(div3, t5); - append(div3, div2); - key_block.m(div2, null); - current = true; - }, - p(ctx2, [dirty]) { - const rebuildgraphbutton_changes = {}; - if (dirty & /*plugin*/ - 1) - rebuildgraphbutton_changes.plugin = /*plugin*/ - ctx2[0]; - rebuildgraphbutton.$set(rebuildgraphbutton_changes); - const edgesortidselector_changes = {}; - if (!updating_edge_sort_id && dirty & /*edge_sort_id*/ - 2) { - updating_edge_sort_id = true; - edgesortidselector_changes.edge_sort_id = /*edge_sort_id*/ - ctx2[1]; - add_flush_callback(() => updating_edge_sort_id = false); - } - edgesortidselector.$set(edgesortidselector_changes); - const showattributesselectormenu_changes = {}; - if (!updating_show_attributes && dirty & /*show_attributes*/ - 16) { - updating_show_attributes = true; - showattributesselectormenu_changes.show_attributes = /*show_attributes*/ - ctx2[4]; - add_flush_callback(() => updating_show_attributes = false); - } - showattributesselectormenu.$set(showattributesselectormenu_changes); - const chevroncollapsebutton_changes = {}; - if (!updating_collapse && dirty & /*collapse*/ - 32) { - updating_collapse = true; - chevroncollapsebutton_changes.collapse = /*collapse*/ - ctx2[5]; - add_flush_callback(() => updating_collapse = false); - } - chevroncollapsebutton.$set(chevroncollapsebutton_changes); - const mergefieldsbutton_changes = {}; - if (!updating_merge_fields && dirty & /*merge_fields*/ - 4) { - updating_merge_fields = true; - mergefieldsbutton_changes.merge_fields = /*merge_fields*/ - ctx2[2]; - add_flush_callback(() => updating_merge_fields = false); - } - mergefieldsbutton.$set(mergefieldsbutton_changes); - const fieldgrouplabelsselector_changes = {}; - if (dirty & /*plugin*/ - 1) - fieldgrouplabelsselector_changes.edge_field_groups = /*plugin*/ - ctx2[0].settings.edge_field_groups; - if (!updating_field_group_labels && dirty & /*field_group_labels*/ - 8) { - updating_field_group_labels = true; - fieldgrouplabelsselector_changes.field_group_labels = /*field_group_labels*/ - ctx2[3]; - add_flush_callback(() => updating_field_group_labels = false); - } - fieldgrouplabelsselector.$set(fieldgrouplabelsselector_changes); - if (dirty & /*tree, sort*/ - 192 && safe_not_equal(previous_key, previous_key = /*tree*/ - ctx2[6] || /*sort*/ - ctx2[7])) { - group_outros(); - transition_out(key_block, 1, 1, noop); - check_outros(); - key_block = create_key_block6(ctx2); - key_block.c(); - transition_in(key_block, 1); - key_block.m(div2, null); - } else { - key_block.p(ctx2, dirty); - } - }, - i(local) { - if (current) - return; - transition_in(rebuildgraphbutton.$$.fragment, local); - transition_in(edgesortidselector.$$.fragment, local); - transition_in(showattributesselectormenu.$$.fragment, local); - transition_in(chevroncollapsebutton.$$.fragment, local); - transition_in(mergefieldsbutton.$$.fragment, local); - transition_in(fieldgrouplabelsselector.$$.fragment, local); - transition_in(key_block); - current = true; - }, - o(local) { - transition_out(rebuildgraphbutton.$$.fragment, local); - transition_out(edgesortidselector.$$.fragment, local); - transition_out(showattributesselectormenu.$$.fragment, local); - transition_out(chevroncollapsebutton.$$.fragment, local); - transition_out(mergefieldsbutton.$$.fragment, local); - transition_out(fieldgrouplabelsselector.$$.fragment, local); - transition_out(key_block); - current = false; - }, - d(detaching) { - if (detaching) { - detach(div3); - } - destroy_component(rebuildgraphbutton); - destroy_component(edgesortidselector); - destroy_component(showattributesselectormenu); - destroy_component(chevroncollapsebutton); - destroy_component(mergefieldsbutton); - destroy_component(fieldgrouplabelsselector); - key_block.d(detaching); - } - }; -} -function instance55($$self, $$props, $$invalidate) { - let sort; - let edge_field_labels; - let tree; - let $active_file_store; - component_subscribe($$self, active_file_store, ($$value) => $$invalidate(10, $active_file_store = $$value)); - let { plugin } = $$props; - let { edge_sort_id, merge_fields, show_attributes, show_node_options, field_group_labels, collapse } = plugin.settings.views.side.tree; - const base_traversal = (attr2) => Traverse.build_tree( - plugin.graph, - $active_file_store.path, - // TODO: Customisable max depth - { max_depth: 20 }, - (edge) => has_edge_attrs(edge, attr2) - ); - function edgesortidselector_edge_sort_id_binding(value) { - edge_sort_id = value; - $$invalidate(1, edge_sort_id); - } - function showattributesselectormenu_show_attributes_binding(value) { - show_attributes = value; - $$invalidate(4, show_attributes); - } - function chevroncollapsebutton_collapse_binding(value) { - collapse = value; - $$invalidate(5, collapse); - } - function mergefieldsbutton_merge_fields_binding(value) { - merge_fields = value; - $$invalidate(2, merge_fields); - } - function fieldgrouplabelsselector_field_group_labels_binding(value) { - field_group_labels = value; - $$invalidate(3, field_group_labels); - } - $$self.$$set = ($$props2) => { - if ("plugin" in $$props2) - $$invalidate(0, plugin = $$props2.plugin); - }; - $$self.$$.update = () => { - if ($$self.$$.dirty & /*edge_sort_id, plugin*/ - 3) { - $: - $$invalidate(7, sort = get_edge_sorter(edge_sort_id, plugin.graph)); - } - if ($$self.$$.dirty & /*plugin, field_group_labels*/ - 9) { - $: - $$invalidate(9, edge_field_labels = resolve_field_group_labels(plugin.settings.edge_field_groups, field_group_labels)); - } - if ($$self.$$.dirty & /*$active_file_store, plugin, merge_fields, edge_field_labels*/ - 1541) { - $: - $$invalidate(6, tree = $active_file_store && plugin.graph.hasNode($active_file_store.path) ? merge_fields ? base_traversal({ $or_fields: edge_field_labels }) : edge_field_labels.flatMap((field) => base_traversal({ field })) : []); - } - }; - return [ - plugin, - edge_sort_id, - merge_fields, - field_group_labels, - show_attributes, - collapse, - tree, - sort, - show_node_options, - edge_field_labels, - $active_file_store, - edgesortidselector_edge_sort_id_binding, - showattributesselectormenu_show_attributes_binding, - chevroncollapsebutton_collapse_binding, - mergefieldsbutton_merge_fields_binding, - fieldgrouplabelsselector_field_group_labels_binding - ]; -} -var TreeView = class extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance55, create_fragment55, safe_not_equal, { plugin: 0 }); - } -}; -var TreeView_default = TreeView; - -// src/views/tree.ts -var TreeView2 = class extends import_obsidian36.ItemView { - constructor(leaf, plugin) { - super(leaf); - this.icon = "tree-pine"; - this.plugin = plugin; - } - getViewType() { - return VIEW_IDS.tree; - } - getDisplayText() { - return "Tree view"; - } - async onOpen() { - const container = this.containerEl.children[1]; - container.empty(); - this.component = new TreeView_default({ - target: this.contentEl, - props: { plugin: this.plugin } - }); - } - async onClose() { - var _a; - (_a = this.component) == null ? void 0 : _a.$destroy(); - } -}; - -// src/main.ts -var BreadcrumbsPlugin = class extends import_obsidian37.Plugin { - constructor() { - super(...arguments); - this.graph = new BCGraph(); - /** rebuild_graph, then react by updating active_file_store and redrawing page_views. - * Optionally disable any of these steps. - */ - this.refresh = async (options) => { - if ((options == null ? void 0 : options.rebuild_graph) !== false) { - const timer = new Timer(); - const notice = this.settings.commands.rebuild_graph.notify ? new import_obsidian37.Notice("Rebuilding graph") : null; - const rebuild_results = await rebuild_graph(this); - this.graph = rebuild_results.graph; - const explicit_edge_errors = rebuild_results.explicit_edge_results.filter((result) => result.errors.length).reduce( - (acc, { source, errors }) => { - acc[source] = errors; - return acc; - }, - {} - ); - const implied_edge_results = Object.fromEntries( - Object.entries(rebuild_results.implied_edge_results).filter(([_, errors]) => errors.length).map(([implied_kind, errors]) => [implied_kind, errors]) - ); - if (Object.keys(explicit_edge_errors).length) { - log.warn("explicit_edge_errors >", explicit_edge_errors); - } - if (Object.keys(implied_edge_results).length) { - log.warn("implied_edge_results >", implied_edge_results); - } - notice == null ? void 0 : notice.setMessage( - [ - `Rebuilt graph in ${timer.elapsed_str()}ms`, - explicit_edge_errors.length ? "\nExplicit edge errors (see console for details):" : null, - ...Object.entries(explicit_edge_errors).map( - ([source, errors]) => `- ${source}: ${errors.length} errors` - ), - implied_edge_results.length ? "\nImplied edge errors (see console for details):" : null, - ...Object.entries(implied_edge_results).map( - ([implied_kind, errors]) => `- ${implied_kind}: ${errors.length} errors` - ) - ].filter(Boolean).join("\n") - ); - } - if ((options == null ? void 0 : options.active_file_store) !== false) { - active_file_store.refresh(this.app); - } - if ((options == null ? void 0 : options.redraw_page_views) !== false) { - redraw_page_views(this); - } - if ((options == null ? void 0 : options.redraw_codeblocks) !== false) { - Codeblocks.update_all(); - } - if ((options == null ? void 0 : options.redraw_side_views) === true) { - this.app.workspace.getLeavesOfType(VIEW_IDS.matrix).forEach((leaf) => { - leaf.view.onOpen(); - }); - this.app.workspace.getLeavesOfType(VIEW_IDS.tree).forEach((leaf) => { - leaf.view.onOpen(); - }); - } - }; - } - async onload() { - var _a, _b; - await this.loadSettings(); - log.set_level(this.settings.debug.level); - log.info( - `loading plugin "${this.manifest.name}" plugin v${this.manifest.version}` - ); - log.debug("settings >", this.settings); - this.settings = migrate_old_settings(this.settings); - await this.saveSettings(); - try { - const all_properties = this.app.metadataTypeManager.getAllProperties(); - for (const field of this.settings.edge_fields) { - if (((_a = all_properties[field.label]) == null ? void 0 : _a.type) === "multitext") - continue; - this.app.metadataTypeManager.setType(field.label, "multitext"); - } - for (const [field, { property_type }] of Object.entries( - METADATA_FIELDS_MAP - )) { - if (((_b = all_properties[field]) == null ? void 0 : _b.type) === property_type) - continue; - this.app.metadataTypeManager.setType(field, property_type); - } - } catch (error) { - log.error("metadataTypeManager.setType error >", error); - } - this.addSettingTab(new BreadcrumbsSettingTab(this.app, this)); - this.api = new BCAPI(this); - window.BCAPI = this.api; - this.register( - // @ts-ignore: Don't want to make it optional, but still delete on unload - () => delete window.BCAPI - ); - this.registerHoverLinkSource("breadcrumbs", { - defaultMod: true, - display: "Breadcrumbs" - }); - if (this.settings.suggestors.edge_field.enabled) { - this.registerEditorSuggest(new EdgeFieldSuggestor(this)); - } - this.app.workspace.onLayoutReady(async () => { - log.debug("on:layout-ready"); - await dataview_plugin.await_if_enabled(this); - if (this.app.metadataCache.initialized) { - log.debug("metadataCache:initialized"); - await this.refresh(); - } else { - const metadatacache_init_event = this.app.metadataCache.on( - "initialized", - async () => { - log.debug("on:metadatacache-initialized"); - await this.refresh(); - this.app.metadataCache.offref(metadatacache_init_event); - } - ); - } - this.registerEvent( - this.app.workspace.on("layout-change", async () => { - log.debug("on:layout-change"); - await this.refresh({ - rebuild_graph: this.settings.commands.rebuild_graph.trigger.layout_change - }); - }) - ); - this.registerEvent( - this.app.workspace.on("active-leaf-change", async (leaf) => { - log.debug("on:active-leaf-change"); - if ((leaf == null ? void 0 : leaf.getViewState().type) !== "markdown") { - return; - } - this.refresh({ - rebuild_graph: false, - redraw_page_views: false - }); - }) - ); - this.registerEvent( - this.app.vault.on("create", (file) => { - log.debug("on:create >", file.path); - if (file instanceof import_obsidian37.TFile) { - this.graph.upsert_node(file.path, { resolved: true }); - } - }) - ); - this.registerEvent( - this.app.vault.on("rename", (file, old_path) => { - log.debug("on:rename >", old_path, "->", file.path); - if (file instanceof import_obsidian37.TFile) { - const res = this.graph.safe_rename_node( - old_path, - file.path - ); - if (!res.ok) { - log.error("safe_rename_node >", res.error.message); - } - } - }) - ); - this.registerEvent( - this.app.vault.on("delete", (file) => { - log.debug("on:delete >", file.path); - if (file instanceof import_obsidian37.TFile) { - this.graph.setNodeAttribute( - file.path, - "resolved", - false - ); - } - }) - ); - this.registerView( - VIEW_IDS.matrix, - (leaf) => new MatrixView(leaf, this) - ); - this.registerView( - VIEW_IDS.tree, - (leaf) => new TreeView2(leaf, this) - ); - }); - this.registerMarkdownCodeBlockProcessor( - "breadcrumbs", - (source, el, ctx) => { - const mdrc = new CodeblockMDRC( - this, - el, - source, - ctx.sourcePath - ); - ctx.addChild(mdrc); - } - ); - init_all_commands(this); - log.debug("loaded Breadcrumbs plugin"); - } - onunload() { - } - async loadSettings() { - var _a; - this.settings = deep_merge_objects( - (_a = await this.loadData()) != null ? _a : {}, - DEFAULT_SETTINGS - ); - } - async saveSettings() { - this.settings.is_dirty = false; - await this.saveData(this.settings); - } - // SOURCE: https://docs.obsidian.md/Plugins/User+interface/Views - async activateView(view_id, options) { - const { workspace } = this.app; - let leaf = null; - const leaves = workspace.getLeavesOfType(view_id); - if (leaves.length > 0) { - leaf = leaves[0]; - } else { - leaf = (options == null ? void 0 : options.side) === "left" ? workspace.getLeftLeaf(false) : workspace.getRightLeaf(false); - if (!leaf) { - log.warn("activate_view > no leaf found"); - return; - } - await leaf.setViewState({ type: view_id, active: true }); - } - workspace.revealLeaf(leaf); - } -}; +"use strict";var X6=Object.create;var pl=Object.defineProperty;var Q6=Object.getOwnPropertyDescriptor;var ek=Object.getOwnPropertyNames;var tk=Object.getPrototypeOf,rk=Object.prototype.hasOwnProperty;var Xm=t=>{throw TypeError(t)};var ok=(t,e,r)=>e in t?pl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ak=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Qm=(t,e)=>{for(var r in e)pl(t,r,{get:e[r],enumerable:!0})},e_=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of ek(e))!rk.call(t,a)&&a!==r&&pl(t,a,{get:()=>e[a],enumerable:!(o=Q6(e,a))||o.enumerable});return t};var nk=(t,e,r)=>(r=t!=null?X6(tk(t)):{},e_(e||!t||!t.__esModule?pl(r,"default",{value:t,enumerable:!0}):r,t)),sk=t=>e_(pl({},"__esModule",{value:!0}),t);var Ze=(t,e,r)=>ok(t,typeof e!="symbol"?e+"":e,r),Od=(t,e,r)=>e.has(t)||Xm("Cannot "+r);var ye=(t,e,r)=>(Od(t,e,"read from private field"),r?r.call(t):e.get(t)),zt=(t,e,r)=>e.has(t)?Xm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),ur=(t,e,r,o)=>(Od(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r),Ia=(t,e,r)=>(Od(t,e,"access private method"),r);var t_=(()=>{for(var t=new Uint8Array(128),e=0;e<64;e++)t[e<26?e+65:e<52?e+71:e<62?e-4:e*4-205]=e;return r=>{for(var o=r.length,a=new Uint8Array((o-(r[o-1]=="=")-(r[o-2]=="="))*3/4|0),n=0,s=0;n>4,a[s++]=l<<4|u>>2,a[s++]=u<<6|A}return a}})();var xg=ak(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});require("obsidian");var Fa=class extends Error{},uc=class extends Fa{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},Ac=class extends Fa{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},fc=class extends Fa{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},Kn=class extends Fa{},BA=class extends Fa{constructor(e){super(`Invalid unit ${e}`)}},Or=class extends Fa{},ta=class extends Fa{constructor(){super("Zone is an abstract class")}},Q="numeric",Mo="short",Zr="long",SA={year:Q,month:Q,day:Q},xh={year:Q,month:Mo,day:Q},xk={year:Q,month:Mo,day:Q,weekday:Mo},vh={year:Q,month:Zr,day:Q},kh={year:Q,month:Zr,day:Q,weekday:Zr},bh={hour:Q,minute:Q},wh={hour:Q,minute:Q,second:Q},yh={hour:Q,minute:Q,second:Q,timeZoneName:Mo},Eh={hour:Q,minute:Q,second:Q,timeZoneName:Zr},Ih={hour:Q,minute:Q,hourCycle:"h23"},$h={hour:Q,minute:Q,second:Q,hourCycle:"h23"},Dh={hour:Q,minute:Q,second:Q,hourCycle:"h23",timeZoneName:Mo},Fh={hour:Q,minute:Q,second:Q,hourCycle:"h23",timeZoneName:Zr},Bh={year:Q,month:Q,day:Q,hour:Q,minute:Q},Sh={year:Q,month:Q,day:Q,hour:Q,minute:Q,second:Q},Ch={year:Q,month:Mo,day:Q,hour:Q,minute:Q},Th={year:Q,month:Mo,day:Q,hour:Q,minute:Q,second:Q},vk={year:Q,month:Mo,day:Q,weekday:Mo,hour:Q,minute:Q},Oh={year:Q,month:Zr,day:Q,hour:Q,minute:Q,timeZoneName:Mo},Mh={year:Q,month:Zr,day:Q,hour:Q,minute:Q,second:Q,timeZoneName:Mo},Nh={year:Q,month:Zr,day:Q,weekday:Zr,hour:Q,minute:Q,timeZoneName:Zr},qh={year:Q,month:Zr,day:Q,weekday:Zr,hour:Q,minute:Q,second:Q,timeZoneName:Zr},Jn=class{get type(){throw new ta}get name(){throw new ta}get ianaName(){return this.name}get isUniversal(){throw new ta}offsetName(e,r){throw new ta}formatOffset(e,r){throw new ta}offset(e){throw new ta}equals(e){throw new ta}get isValid(){throw new ta}},tc=null,CA=class t extends Jn{static get instance(){return tc===null&&(tc=new t),tc}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:o}){return Rh(e,r,o)}formatOffset(e,r){return $l(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}},DA={};function kk(t){return DA[t]||(DA[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),DA[t]}var bk={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function wk(t,e){let r=t.format(e).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,a,n,s,i,l,u,A]=o;return[s,a,n,i,l,u,A]}function yk(t,e){let r=t.formatToParts(e),o=[];for(let a=0;a=0?h:1e3+h,(p-m)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}},H_={};function Ek(t,e={}){let r=JSON.stringify([t,e]),o=H_[r];return o||(o=new Intl.ListFormat(t,e),H_[r]=o),o}var dc={};function cc(t,e={}){let r=JSON.stringify([t,e]),o=dc[r];return o||(o=new Intl.DateTimeFormat(t,e),dc[r]=o),o}var pc={};function Ik(t,e={}){let r=JSON.stringify([t,e]),o=pc[r];return o||(o=new Intl.NumberFormat(t,e),pc[r]=o),o}var mc={};function $k(t,e={}){let{base:r,...o}=e,a=JSON.stringify([t,o]),n=mc[a];return n||(n=new Intl.RelativeTimeFormat(t,e),mc[a]=n),n}var El=null;function Dk(){return El||(El=new Intl.DateTimeFormat().resolvedOptions().locale,El)}function Fk(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let r=t.indexOf("-u-");if(r===-1)return[t];{let o,a;try{o=cc(t).resolvedOptions(),a=t}catch{let l=t.substring(0,r);o=cc(l).resolvedOptions(),a=l}let{numberingSystem:n,calendar:s}=o;return[a,n,s]}}function Bk(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function Sk(t){let e=[];for(let r=1;r<=12;r++){let o=qe.utc(2009,r,1);e.push(t(o))}return e}function Ck(t){let e=[];for(let r=1;r<=7;r++){let o=qe.utc(2016,11,13+r);e.push(t(o))}return e}function wA(t,e,r,o){let a=t.listingMode();return a==="error"?null:a==="en"?r(e):o(e)}function Tk(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}var _c=class{constructor(e,r,o){this.padTo=o.padTo||0,this.floor=o.floor||!1;let{padTo:a,floor:n,...s}=o;if(!r||Object.keys(s).length>0){let i={useGrouping:!1,...o};o.padTo>0&&(i.minimumIntegerDigits=o.padTo),this.inf=Ik(e,i)}}format(e){if(this.inf){let r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{let r=this.floor?Math.floor(e):Fc(e,3);return qt(r,this.padTo)}}},hc=class{constructor(e,r,o){this.opts=o,this.originalZone=void 0;let a;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let s=-1*(e.offset/60),i=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&An.create(i).valid?(a=i,this.dt=e):(a="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,a=e.zone.name):(a="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let n={...this.opts};n.timeZone=n.timeZone||a,this.dtf=cc(r,n)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){let o=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:o}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},gc=class{constructor(e,r,o){this.opts={style:"long",...o},!r&&Ph()&&(this.rtf=$k(e,o))}format(e,r){return this.rtf?this.rtf.format(e,r):Yk(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}},St=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,r,o,a=!1){let n=e||Bt.defaultLocale,s=n||(a?"en-US":Dk()),i=r||Bt.defaultNumberingSystem,l=o||Bt.defaultOutputCalendar;return new t(s,i,l,n)}static resetCache(){El=null,dc={},pc={},mc={}}static fromObject({locale:e,numberingSystem:r,outputCalendar:o}={}){return t.create(e,r,o)}constructor(e,r,o,a){let[n,s,i]=Fk(e);this.locale=n,this.numberingSystem=r||s||null,this.outputCalendar=o||i||null,this.intl=Bk(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Tk(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return wA(this,e,Hh,()=>{let o=r?{month:e,day:"numeric"}:{month:e},a=r?"format":"standalone";return this.monthsCache[a][e]||(this.monthsCache[a][e]=Sk(n=>this.extract(n,o,"month"))),this.monthsCache[a][e]})}weekdays(e,r=!1){return wA(this,e,zh,()=>{let o=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},a=r?"format":"standalone";return this.weekdaysCache[a][e]||(this.weekdaysCache[a][e]=Ck(n=>this.extract(n,o,"weekday"))),this.weekdaysCache[a][e]})}meridiems(){return wA(this,void 0,()=>Wh,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[qe.utc(2016,11,13,9),qe.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return wA(this,e,Kh,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[qe.utc(-40,1,1),qe.utc(2017,1,1)].map(o=>this.extract(o,r,"era"))),this.eraCache[e]})}extract(e,r,o){let a=this.dtFormatter(e,r),n=a.formatToParts(),s=n.find(i=>i.type.toLowerCase()===o);return s?s.value:null}numberFormatter(e={}){return new _c(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new hc(e,this.intl,r)}relFormatter(e={}){return new gc(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Ek(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}},rc=null,ho=class t extends Jn{static get utcInstance(){return rc===null&&(rc=new t(0)),rc}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(HA(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${$l(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${$l(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return $l(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}},jc=class extends Jn{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function un(t,e){if(Ue(t)||t===null)return e;if(t instanceof Jn)return t;if(Ok(t)){let r=t.toLowerCase();return r==="default"?e:r==="local"||r==="system"?CA.instance:r==="utc"||r==="gmt"?ho.utcInstance:ho.parseSpecifier(r)||An.create(t)}else return Yn(t)?ho.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new jc(t)}var V_=()=>Date.now(),U_="system",z_=null,W_=null,K_=null,Z_=60,Y_,Bt=class{static get now(){return V_}static set now(e){V_=e}static set defaultZone(e){U_=e}static get defaultZone(){return un(U_,CA.instance)}static get defaultLocale(){return z_}static set defaultLocale(e){z_=e}static get defaultNumberingSystem(){return W_}static set defaultNumberingSystem(e){W_=e}static get defaultOutputCalendar(){return K_}static set defaultOutputCalendar(e){K_=e}static get twoDigitCutoffYear(){return Z_}static set twoDigitCutoffYear(e){Z_=e%100}static get throwOnInvalid(){return Y_}static set throwOnInvalid(e){Y_=e}static resetCaches(){St.resetCache(),An.resetCache()}};function Ue(t){return typeof t>"u"}function Yn(t){return typeof t=="number"}function LA(t){return typeof t=="number"&&t%1===0}function Ok(t){return typeof t=="string"}function Mk(t){return Object.prototype.toString.call(t)==="[object Date]"}function Ph(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Nk(t){return Array.isArray(t)?t:[t]}function J_(t,e,r){if(t.length!==0)return t.reduce((o,a)=>{let n=[e(a),a];return o&&r(o[0],n[0])===o[0]?o:n},null)[1]}function qk(t,e){return e.reduce((r,o)=>(r[o]=t[o],r),{})}function ui(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Da(t,e,r){return LA(t)&&t>=e&&t<=r}function Pk(t,e){return t-e*Math.floor(t/e)}function qt(t,e=2){let r=t<0,o;return r?o="-"+(""+-t).padStart(e,"0"):o=(""+t).padStart(e,"0"),o}function ln(t){if(!(Ue(t)||t===null||t===""))return parseInt(t,10)}function zn(t){if(!(Ue(t)||t===null||t===""))return parseFloat(t)}function Dc(t){if(!(Ue(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Fc(t,e,r=!1){let o=10**e;return(r?Math.trunc:Math.round)(t*o)/o}function Bl(t){return t%4===0&&(t%100!==0||t%400===0)}function Il(t){return Bl(t)?366:365}function TA(t,e){let r=Pk(e-1,12)+1,o=t+(e-r)/12;return r===2?Bl(o)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function GA(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function OA(t){let e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,r=t-1,o=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return e===4||o===3?53:52}function xc(t){return t>99?t:t>Bt.twoDigitCutoffYear?1900+t:2e3+t}function Rh(t,e,r,o=null){let a=new Date(t),n={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(n.timeZone=o);let s={timeZoneName:e,...n},i=new Intl.DateTimeFormat(r,s).formatToParts(a).find(l=>l.type.toLowerCase()==="timezonename");return i?i.value:null}function HA(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);let o=parseInt(e,10)||0,a=r<0||Object.is(r,-0)?-o:o;return r*60+a}function Lh(t){let e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Or(`Invalid unit value ${t}`);return e}function MA(t,e){let r={};for(let o in t)if(ui(t,o)){let a=t[o];if(a==null)continue;r[e(o)]=Lh(a)}return r}function $l(t,e){let r=Math.trunc(Math.abs(t/60)),o=Math.trunc(Math.abs(t%60)),a=t>=0?"+":"-";switch(e){case"short":return`${a}${qt(r,2)}:${qt(o,2)}`;case"narrow":return`${a}${r}${o>0?`:${o}`:""}`;case"techie":return`${a}${qt(r,2)}${qt(o,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function VA(t){return qk(t,["hour","minute","second","millisecond"])}var Rk=["January","February","March","April","May","June","July","August","September","October","November","December"],Gh=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Lk=["J","F","M","A","M","J","J","A","S","O","N","D"];function Hh(t){switch(t){case"narrow":return[...Lk];case"short":return[...Gh];case"long":return[...Rk];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var Vh=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Uh=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Gk=["M","T","W","T","F","S","S"];function zh(t){switch(t){case"narrow":return[...Gk];case"short":return[...Uh];case"long":return[...Vh];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Wh=["AM","PM"],Hk=["Before Christ","Anno Domini"],Vk=["BC","AD"],Uk=["B","A"];function Kh(t){switch(t){case"narrow":return[...Uk];case"short":return[...Vk];case"long":return[...Hk];default:return null}}function zk(t){return Wh[t.hour<12?0:1]}function Wk(t,e){return zh(e)[t.weekday-1]}function Kk(t,e){return Hh(e)[t.month-1]}function Zk(t,e){return Kh(e)[t.year<0?0:1]}function Yk(t,e,r="always",o=!1){let a={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},n=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&n){let c=t==="days";switch(e){case 1:return c?"tomorrow":`next ${a[t][0]}`;case-1:return c?"yesterday":`last ${a[t][0]}`;case 0:return c?"today":`this ${a[t][0]}`}}let s=Object.is(e,-0)||e<0,i=Math.abs(e),l=i===1,u=a[t],A=o?l?u[1]:u[2]||u[1]:l?a[t][0]:t;return s?`${i} ${A} ago`:`in ${i} ${A}`}function X_(t,e){let r="";for(let o of t)o.literal?r+=o.val:r+=e(o.val);return r}var Jk={D:SA,DD:xh,DDD:vh,DDDD:kh,t:bh,tt:wh,ttt:yh,tttt:Eh,T:Ih,TT:$h,TTT:Dh,TTTT:Fh,f:Bh,ff:Ch,fff:Oh,ffff:Nh,F:Sh,FF:Th,FFF:Mh,FFFF:qh},Wr=class t{static create(e,r={}){return new t(e,r)}static parseFormat(e){let r=null,o="",a=!1,n=[];for(let s=0;s0&&n.push({literal:a||/^\s+$/.test(o),val:o}),r=null,o="",a=!a):a||i===r?o+=i:(o.length>0&&n.push({literal:/^\s+$/.test(o),val:o}),o=i,r=i)}return o.length>0&&n.push({literal:a||/^\s+$/.test(o),val:o}),n}static macroTokenToFormatOpts(e){return Jk[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return qt(e,r);let o={...this.opts};return r>0&&(o.padTo=r),this.loc.numberFormatter(o).format(e)}formatDateTimeFromString(e,r){let o=this.loc.listingMode()==="en",a=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",n=(m,h)=>this.loc.extract(e,m,h),s=m=>e.isOffsetFixed&&e.offset===0&&m.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,m.format):"",i=()=>o?zk(e):n({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(m,h)=>o?Kk(e,m):n(h?{month:m}:{month:m,day:"numeric"},"month"),u=(m,h)=>o?Wk(e,m):n(h?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),A=m=>{let h=t.macroTokenToFormatOpts(m);return h?this.formatWithSystemDefault(e,h):m},c=m=>o?Zk(e,m):n({era:m},"era"),p=m=>{switch(m){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return i();case"d":return a?n({day:"numeric"},"day"):this.num(e.day);case"dd":return a?n({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return a?n({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return a?n({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return a?n({month:"numeric"},"month"):this.num(e.month);case"MM":return a?n({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return a?n({year:"numeric"},"year"):this.num(e.year);case"yy":return a?n({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return a?n({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return a?n({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return A(m)}};return X_(t.parseFormat(r),p)}formatDurationFromString(e,r){let o=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},a=l=>u=>{let A=o(u);return A?this.num(l.get(A),u.length):u},n=t.parseFormat(r),s=n.reduce((l,{literal:u,val:A})=>u?l:l.concat(A),[]),i=e.shiftTo(...s.map(o).filter(l=>l));return X_(n,a(i))}},Kr=class{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},Zh=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ai(...t){let e=t.reduce((r,o)=>r+o.source,"");return RegExp(`^${e}$`)}function fi(...t){return e=>t.reduce(([r,o,a],n)=>{let[s,i,l]=n(e,a);return[{...r,...s},i||o,l]},[{},null,1]).slice(0,2)}function di(t,...e){if(t==null)return[null,null];for(let[r,o]of e){let a=r.exec(t);if(a)return o(a)}return[null,null]}function Yh(...t){return(e,r)=>{let o={},a;for(a=0;am!==void 0&&(h||m&&A)?-m:m;return[{years:p(zn(r)),months:p(zn(o)),weeks:p(zn(a)),days:p(zn(n)),hours:p(zn(s)),minutes:p(zn(i)),seconds:p(zn(l),l==="-0"),milliseconds:p(Dc(u),c)}]}var Ab={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Cc(t,e,r,o,a,n,s){let i={year:e.length===2?xc(ln(e)):ln(e),month:Gh.indexOf(r)+1,day:ln(o),hour:ln(a),minute:ln(n)};return s&&(i.second=ln(s)),t&&(i.weekday=t.length>3?Vh.indexOf(t)+1:Uh.indexOf(t)+1),i}var fb=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function db(t){let[,e,r,o,a,n,s,i,l,u,A,c]=t,p=Cc(e,a,o,r,n,s,i),m;return l?m=Ab[l]:u?m=0:m=HA(A,c),[p,new ho(m)]}function cb(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var pb=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,mb=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,_b=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Q_(t){let[,e,r,o,a,n,s,i]=t;return[Cc(e,a,o,r,n,s,i),ho.utcInstance]}function hb(t){let[,e,r,o,a,n,s,i]=t;return[Cc(e,i,r,o,a,n,s),ho.utcInstance]}var gb=Ai(Qk,Sc),jb=Ai(eb,Sc),xb=Ai(tb,Sc),vb=Ai(Xh),eg=fi(sb,ci,Sl,Cl),kb=fi(rb,ci,Sl,Cl),bb=fi(ob,ci,Sl,Cl),wb=fi(ci,Sl,Cl);function yb(t){return di(t,[gb,eg],[jb,kb],[xb,bb],[vb,wb])}function Eb(t){return di(cb(t),[fb,db])}function Ib(t){return di(t,[pb,Q_],[mb,Q_],[_b,hb])}function $b(t){return di(t,[lb,ub])}var Db=fi(ci);function Fb(t){return di(t,[ib,Db])}var Bb=Ai(ab,nb),Sb=Ai(Qh),Cb=fi(ci,Sl,Cl);function Tb(t){return di(t,[Bb,eg],[Sb,Cb])}var eh="Invalid Duration",tg={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Ob={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...tg},mo=146097/400,ai=146097/4800,Mb={years:{quarters:4,months:12,weeks:mo/7,days:mo,hours:mo*24,minutes:mo*24*60,seconds:mo*24*60*60,milliseconds:mo*24*60*60*1e3},quarters:{months:3,weeks:mo/28,days:mo/4,hours:mo*24/4,minutes:mo*24*60/4,seconds:mo*24*60*60/4,milliseconds:mo*24*60*60*1e3/4},months:{weeks:ai/7,days:ai,hours:ai*24,minutes:ai*24*60,seconds:ai*24*60*60,milliseconds:ai*24*60*60*1e3},...tg},Zn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Nb=Zn.slice(0).reverse();function sn(t,e,r=!1){let o={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new ge(o)}function rg(t,e){let r=e.milliseconds??0;for(let o of Nb.slice(1))e[o]&&(r+=e[o]*t[o].milliseconds);return r}function th(t,e){let r=rg(t,e)<0?-1:1;Zn.reduceRight((o,a)=>{if(Ue(e[a]))return o;if(o){let n=e[o]*r,s=t[a][o],i=Math.floor(n/s);e[a]+=i*r,e[o]-=i*s*r}return a},null),Zn.reduce((o,a)=>{if(Ue(e[a]))return o;if(o){let n=e[o]%1;e[o]-=n,e[a]+=n*t[o][a]}return a},null)}function qb(t){let e={};for(let[r,o]of Object.entries(t))o!==0&&(e[r]=o);return e}var ge=class t{constructor(e){let r=e.conversionAccuracy==="longterm"||!1,o=r?Mb:Ob;e.matrix&&(o=e.matrix),this.values=e.values,this.loc=e.loc||St.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=o,this.isLuxonDuration=!0}static fromMillis(e,r){return t.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new Or(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:MA(e,t.normalizeUnit),loc:St.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(Yn(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new Or(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){let[o]=$b(e);return o?t.fromObject(o,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){let[o]=Fb(e);return o?t.fromObject(o,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new Or("need to specify a reason the Duration is invalid");let o=e instanceof Kr?e:new Kr(e,r);if(Bt.throwOnInvalid)throw new fc(o);return new t({invalid:o})}static normalizeUnit(e){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new BA(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){let o={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?Wr.create(this.loc,o).formatDurationFromString(this,e):eh}toHuman(e={}){if(!this.isValid)return eh;let r=Zn.map(o=>{let a=this.values[o];return Ue(a)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:o.slice(0,-1)}).format(a)}).filter(o=>o);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Fc(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},qe.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.isValid?rg(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e),o={};for(let a of Zn)(ui(r.values,a)||ui(this.values,a))&&(o[a]=r.get(a)+this.get(a));return sn(this,{values:o},!0)}minus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;let r={};for(let o of Object.keys(this.values))r[o]=Lh(e(this.values[o],o));return sn(this,{values:r},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let r={...this.values,...MA(e,t.normalizeUnit)};return sn(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:o,matrix:a}={}){let s={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:a,conversionAccuracy:o};return sn(this,s)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return th(this.matrix,e),sn(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=qb(this.normalize().shiftToAll().toObject());return sn(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>t.normalizeUnit(s));let r={},o={},a=this.toObject(),n;for(let s of Zn)if(e.indexOf(s)>=0){n=s;let i=0;for(let u in o)i+=this.matrix[u][s]*o[u],o[u]=0;Yn(a[s])&&(i+=a[s]);let l=Math.trunc(i);r[s]=l,o[s]=(i*1e3-l*1e3)/1e3}else Yn(a[s])&&(o[s]=a[s]);for(let s in o)o[s]!==0&&(r[n]+=s===n?o[s]:o[s]/this.matrix[n][s]);return th(this.matrix,r),sn(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return sn(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(o,a){return o===void 0||o===0?a===void 0||a===0:o===a}for(let o of Zn)if(!r(this.values[o],e.values[o]))return!1;return!0}},ni="Invalid Interval";function Pb(t,e){return!t||!t.isValid?li.invalid("missing or invalid start"):!e||!e.isValid?li.invalid("missing or invalid end"):ee:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?t.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];let r=e.map(wl).filter(s=>this.contains(s)).sort(),o=[],{s:a}=this,n=0;for(;a+this.e?this.e:s;o.push(t.fromDateTimes(a,i)),a=i,n+=1}return o}splitBy(e){let r=ge.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:o}=this,a=1,n,s=[];for(;ol*a));n=+i>+this.e?this.e:i,s.push(t.fromDateTimes(o,n)),o=n,a+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let r=this.s>e.s?this.s:e.s,o=this.e=o?null:t.fromDateTimes(r,o)}union(e){if(!this.isValid)return this;let r=this.se.e?this.e:e.e;return t.fromDateTimes(r,o)}static merge(e){let[r,o]=e.sort((a,n)=>a.s-n.s).reduce(([a,n],s)=>n?n.overlaps(s)||n.abutsStart(s)?[a,n.union(s)]:[a.concat([n]),s]:[a,s],[[],null]);return o&&r.push(o),r}static xor(e){let r=null,o=0,a=[],n=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...n),i=s.sort((l,u)=>l.time-u.time);for(let l of i)o+=l.type==="s"?1:-1,o===1?r=l.time:(r&&+r!=+l.time&&a.push(t.fromDateTimes(r,l.time)),r=null);return t.merge(a)}difference(...e){return t.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:ni}toLocaleString(e=SA,r={}){return this.isValid?Wr.create(this.s.loc.clone(r),e).formatInterval(this):ni}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:ni}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ni}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:ni}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:ni}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):ge.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}},si=class{static hasDST(e=Bt.defaultZone){let r=qe.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return An.isValidZone(e)}static normalizeZone(e){return un(e,Bt.defaultZone)}static months(e="long",{locale:r=null,numberingSystem:o=null,locObj:a=null,outputCalendar:n="gregory"}={}){return(a||St.create(r,o,n)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:o=null,locObj:a=null,outputCalendar:n="gregory"}={}){return(a||St.create(r,o,n)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:o=null,locObj:a=null}={}){return(a||St.create(r,o,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:o=null,locObj:a=null}={}){return(a||St.create(r,o,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return St.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return St.create(r,null,"gregory").eras(e)}static features(){return{relative:Ph()}}};function rh(t,e){let r=a=>a.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=r(e)-r(t);return Math.floor(ge.fromMillis(o).as("days"))}function Rb(t,e,r){let o=[["years",(l,u)=>u.year-l.year],["quarters",(l,u)=>u.quarter-l.quarter+(u.year-l.year)*4],["months",(l,u)=>u.month-l.month+(u.year-l.year)*12],["weeks",(l,u)=>{let A=rh(l,u);return(A-A%7)/7}],["days",rh]],a={},n=t,s,i;for(let[l,u]of o)r.indexOf(l)>=0&&(s=l,a[l]=u(t,e),i=n.plus(a),i>e?(a[l]--,t=n.plus(a),t>e&&(i=t,a[l]--,t=n.plus(a))):t=i);return[t,a,i,s]}function Lb(t,e,r,o){let[a,n,s,i]=Rb(t,e,r),l=e-a,u=r.filter(c=>["hours","minutes","seconds","milliseconds"].indexOf(c)>=0);u.length===0&&(s0?ge.fromMillis(l,o).shiftTo(...u).plus(A):A}var Tc={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},oh={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Gb=Tc.hanidec.replace(/[\[|\]]/g,"").split("");function Hb(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r=n&&o<=s&&(e+=o-n)}}return parseInt(e,10)}else return e}function Co({numberingSystem:t},e=""){return new RegExp(`${Tc[t||"latn"]}${e}`)}var Vb="missing Intl.DateTimeFormat.formatToParts support";function nt(t,e=r=>r){return{regex:t,deser:([r])=>e(Hb(r))}}var Ub="\xA0",og=`[ ${Ub}]`,ag=new RegExp(og,"g");function zb(t){return t.replace(/\./g,"\\.?").replace(ag,og)}function ah(t){return t.replace(/\./g,"").replace(ag," ").toLowerCase()}function To(t,e){return t===null?null:{regex:RegExp(t.map(zb).join("|")),deser:([r])=>t.findIndex(o=>ah(r)===ah(o))+e}}function nh(t,e){return{regex:t,deser:([,r,o])=>HA(r,o),groups:e}}function yA(t){return{regex:t,deser:([e])=>e}}function Wb(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Kb(t,e){let r=Co(e),o=Co(e,"{2}"),a=Co(e,"{3}"),n=Co(e,"{4}"),s=Co(e,"{6}"),i=Co(e,"{1,2}"),l=Co(e,"{1,3}"),u=Co(e,"{1,6}"),A=Co(e,"{1,9}"),c=Co(e,"{2,4}"),p=Co(e,"{4,6}"),m=I=>({regex:RegExp(Wb(I.val)),deser:([F])=>F,literal:!0}),y=(I=>{if(t.literal)return m(I);switch(I.val){case"G":return To(e.eras("short"),0);case"GG":return To(e.eras("long"),0);case"y":return nt(u);case"yy":return nt(c,xc);case"yyyy":return nt(n);case"yyyyy":return nt(p);case"yyyyyy":return nt(s);case"M":return nt(i);case"MM":return nt(o);case"MMM":return To(e.months("short",!0),1);case"MMMM":return To(e.months("long",!0),1);case"L":return nt(i);case"LL":return nt(o);case"LLL":return To(e.months("short",!1),1);case"LLLL":return To(e.months("long",!1),1);case"d":return nt(i);case"dd":return nt(o);case"o":return nt(l);case"ooo":return nt(a);case"HH":return nt(o);case"H":return nt(i);case"hh":return nt(o);case"h":return nt(i);case"mm":return nt(o);case"m":return nt(i);case"q":return nt(i);case"qq":return nt(o);case"s":return nt(i);case"ss":return nt(o);case"S":return nt(l);case"SSS":return nt(a);case"u":return yA(A);case"uu":return yA(i);case"uuu":return nt(r);case"a":return To(e.meridiems(),0);case"kkkk":return nt(n);case"kk":return nt(c,xc);case"W":return nt(i);case"WW":return nt(o);case"E":case"c":return nt(r);case"EEE":return To(e.weekdays("short",!1),1);case"EEEE":return To(e.weekdays("long",!1),1);case"ccc":return To(e.weekdays("short",!0),1);case"cccc":return To(e.weekdays("long",!0),1);case"Z":case"ZZ":return nh(new RegExp(`([+-]${i.source})(?::(${o.source}))?`),2);case"ZZZ":return nh(new RegExp(`([+-]${i.source})(${o.source})?`),2);case"z":return yA(/[a-z_+-/]{1,256}?/i);case" ":return yA(/[^\S\n\r]/);default:return m(I)}})(t)||{invalidReason:Vb};return y.token=t,y}var Zb={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Yb(t,e,r){let{type:o,value:a}=t;if(o==="literal"){let l=/^\s+$/.test(a);return{literal:!l,val:l?" ":a}}let n=e[o],s=o;o==="hour"&&(e.hour12!=null?s=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?s="hour12":s="hour24":s=r.hour12?"hour12":"hour24");let i=Zb[s];if(typeof i=="object"&&(i=i[n]),i)return{literal:!1,val:i}}function Jb(t){return[`^${t.map(r=>r.regex).reduce((r,o)=>`${r}(${o.source})`,"")}$`,t]}function Xb(t,e,r){let o=t.match(e);if(o){let a={},n=1;for(let s in r)if(ui(r,s)){let i=r[s],l=i.groups?i.groups+1:1;!i.literal&&i.token&&(a[i.token.val[0]]=i.deser(o.slice(n,n+l))),n+=l}return[o,a]}else return[o,{}]}function Qb(t){let e=n=>{switch(n){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,o;return Ue(t.z)||(r=An.create(t.z)),Ue(t.Z)||(r||(r=new ho(t.Z)),o=t.Z),Ue(t.q)||(t.M=(t.q-1)*3+1),Ue(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Ue(t.u)||(t.S=Dc(t.u)),[Object.keys(t).reduce((n,s)=>{let i=e(s);return i&&(n[i]=t[s]),n},{}),r,o]}var oc=null;function ew(){return oc||(oc=qe.fromMillis(1555555555555)),oc}function tw(t,e){if(t.literal)return t;let r=Wr.macroTokenToFormatOpts(t.val),o=ig(r,e);return o==null||o.includes(void 0)?t:o}function ng(t,e){return Array.prototype.concat(...t.map(r=>tw(r,e)))}function sg(t,e,r){let o=ng(Wr.parseFormat(r),t),a=o.map(s=>Kb(s,t)),n=a.find(s=>s.invalidReason);if(n)return{input:e,tokens:o,invalidReason:n.invalidReason};{let[s,i]=Jb(a),l=RegExp(s,"i"),[u,A]=Xb(e,l,i),[c,p,m]=A?Qb(A):[null,null,void 0];if(ui(A,"a")&&ui(A,"H"))throw new Kn("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:o,regex:l,rawMatches:u,matches:A,result:c,zone:p,specificOffset:m}}}function rw(t,e,r){let{result:o,zone:a,specificOffset:n,invalidReason:s}=sg(t,e,r);return[o,a,n,s]}function ig(t,e){if(!t)return null;let o=Wr.create(e,t).dtFormatter(ew()),a=o.formatToParts(),n=o.resolvedOptions();return a.map(s=>Yb(s,t,n))}var lg=[0,31,59,90,120,151,181,212,243,273,304,334],ug=[0,31,60,91,121,152,182,213,244,274,305,335];function _o(t,e){return new Kr("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Ag(t,e,r){let o=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);let a=o.getUTCDay();return a===0?7:a}function fg(t,e,r){return r+(Bl(t)?ug:lg)[e-1]}function dg(t,e){let r=Bl(t)?ug:lg,o=r.findIndex(n=>nOA(e)?(i=e+1,s=1):i=e,{weekYear:i,weekNumber:s,weekday:n,...VA(t)}}function sh(t){let{weekYear:e,weekNumber:r,weekday:o}=t,a=Ag(e,1,4),n=Il(e),s=r*7+o-a-3,i;s<1?(i=e-1,s+=Il(i)):s>n?(i=e+1,s-=Il(e)):i=e;let{month:l,day:u}=dg(i,s);return{year:i,month:l,day:u,...VA(t)}}function ac(t){let{year:e,month:r,day:o}=t,a=fg(e,r,o);return{year:e,ordinal:a,...VA(t)}}function ih(t){let{year:e,ordinal:r}=t,{month:o,day:a}=dg(e,r);return{year:e,month:o,day:a,...VA(t)}}function ow(t){let e=LA(t.weekYear),r=Da(t.weekNumber,1,OA(t.weekYear)),o=Da(t.weekday,1,7);return e?r?o?!1:_o("weekday",t.weekday):_o("week",t.week):_o("weekYear",t.weekYear)}function aw(t){let e=LA(t.year),r=Da(t.ordinal,1,Il(t.year));return e?r?!1:_o("ordinal",t.ordinal):_o("year",t.year)}function cg(t){let e=LA(t.year),r=Da(t.month,1,12),o=Da(t.day,1,TA(t.year,t.month));return e?r?o?!1:_o("day",t.day):_o("month",t.month):_o("year",t.year)}function pg(t){let{hour:e,minute:r,second:o,millisecond:a}=t,n=Da(e,0,23)||e===24&&r===0&&o===0&&a===0,s=Da(r,0,59),i=Da(o,0,59),l=Da(a,0,999);return n?s?i?l?!1:_o("millisecond",a):_o("second",o):_o("minute",r):_o("hour",e)}var nc="Invalid DateTime",lh=864e13;function EA(t){return new Kr("unsupported zone",`the zone "${t.name}" is not supported`)}function sc(t){return t.weekData===null&&(t.weekData=vc(t.c)),t.weekData}function Wn(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new qe({...r,...e,old:r})}function mg(t,e,r){let o=t-e*60*1e3,a=r.offset(o);if(e===a)return[o,e];o-=(a-e)*60*1e3;let n=r.offset(o);return a===n?[o,a]:[t-Math.min(a,n)*60*1e3,Math.max(a,n)]}function IA(t,e){t+=e*60*1e3;let r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function FA(t,e,r){return mg(GA(t),e,r)}function uh(t,e){let r=t.o,o=t.c.year+Math.trunc(e.years),a=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,n={...t.c,year:o,month:a,day:Math.min(t.c.day,TA(o,a))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=ge.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),i=GA(n),[l,u]=mg(i,r,t.zone);return s!==0&&(l+=s,u=t.zone.offset(l)),{ts:l,o:u}}function bl(t,e,r,o,a,n){let{setZone:s,zone:i}=r;if(t&&Object.keys(t).length!==0||e){let l=e||i,u=qe.fromObject(t,{...r,zone:l,specificOffset:n});return s?u:u.setZone(i)}else return qe.invalid(new Kr("unparsable",`the input "${a}" can't be parsed as ${o}`))}function $A(t,e,r=!0){return t.isValid?Wr.create(St.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function ic(t,e){let r=t.c.year>9999||t.c.year<0,o="";return r&&t.c.year>=0&&(o+="+"),o+=qt(t.c.year,r?6:4),e?(o+="-",o+=qt(t.c.month),o+="-",o+=qt(t.c.day)):(o+=qt(t.c.month),o+=qt(t.c.day)),o}function Ah(t,e,r,o,a,n){let s=qt(t.c.hour);return e?(s+=":",s+=qt(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(s+=":")):s+=qt(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(s+=qt(t.c.second),(t.c.millisecond!==0||!o)&&(s+=".",s+=qt(t.c.millisecond,3))),a&&(t.isOffsetFixed&&t.offset===0&&!n?s+="Z":t.o<0?(s+="-",s+=qt(Math.trunc(-t.o/60)),s+=":",s+=qt(Math.trunc(-t.o%60))):(s+="+",s+=qt(Math.trunc(t.o/60)),s+=":",s+=qt(Math.trunc(t.o%60)))),n&&(s+="["+t.zone.ianaName+"]"),s}var _g={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},nw={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},sw={ordinal:1,hour:0,minute:0,second:0,millisecond:0},hg=["year","month","day","hour","minute","second","millisecond"],iw=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],lw=["year","ordinal","hour","minute","second","millisecond"];function fh(t){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new BA(t);return e}function dh(t,e){let r=un(e.zone,Bt.defaultZone),o=St.fromObject(e),a=Bt.now(),n,s;if(Ue(t.year))n=a;else{for(let u of hg)Ue(t[u])&&(t[u]=_g[u]);let i=cg(t)||pg(t);if(i)return qe.invalid(i);let l=r.offset(a);[n,s]=FA(t,l,r)}return new qe({ts:n,zone:r,loc:o,o:s})}function ch(t,e,r){let o=Ue(r.round)?!0:r.round,a=(s,i)=>(s=Fc(s,o||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(s,i)),n=s=>r.calendary?e.hasSame(t,s)?0:e.startOf(s).diff(t.startOf(s),s).get(s):e.diff(t,s).get(s);if(r.unit)return a(n(r.unit),r.unit);for(let s of r.units){let i=n(s);if(Math.abs(i)>=1)return a(i,s)}return a(t>e?-0:0,r.units[r.units.length-1])}function ph(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}var qe=class t{constructor(e){let r=e.zone||Bt.defaultZone,o=e.invalid||(Number.isNaN(e.ts)?new Kr("invalid input"):null)||(r.isValid?null:EA(r));this.ts=Ue(e.ts)?Bt.now():e.ts;let a=null,n=null;if(!o)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[a,n]=[e.old.c,e.old.o];else{let i=r.offset(this.ts);a=IA(this.ts,i),o=Number.isNaN(a.year)?new Kr("invalid input"):null,a=o?null:a,n=o?null:i}this._zone=r,this.loc=e.loc||St.create(),this.invalid=o,this.weekData=null,this.c=a,this.o=n,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,r]=ph(arguments),[o,a,n,s,i,l,u]=r;return dh({year:o,month:a,day:n,hour:s,minute:i,second:l,millisecond:u},e)}static utc(){let[e,r]=ph(arguments),[o,a,n,s,i,l,u]=r;return e.zone=ho.utcInstance,dh({year:o,month:a,day:n,hour:s,minute:i,second:l,millisecond:u},e)}static fromJSDate(e,r={}){let o=Mk(e)?e.valueOf():NaN;if(Number.isNaN(o))return t.invalid("invalid input");let a=un(r.zone,Bt.defaultZone);return a.isValid?new t({ts:o,zone:a,loc:St.fromObject(r)}):t.invalid(EA(a))}static fromMillis(e,r={}){if(Yn(e))return e<-lh||e>lh?t.invalid("Timestamp out of range"):new t({ts:e,zone:un(r.zone,Bt.defaultZone),loc:St.fromObject(r)});throw new Or(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(Yn(e))return new t({ts:e*1e3,zone:un(r.zone,Bt.defaultZone),loc:St.fromObject(r)});throw new Or("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let o=un(r.zone,Bt.defaultZone);if(!o.isValid)return t.invalid(EA(o));let a=Bt.now(),n=Ue(r.specificOffset)?o.offset(a):r.specificOffset,s=MA(e,fh),i=!Ue(s.ordinal),l=!Ue(s.year),u=!Ue(s.month)||!Ue(s.day),A=l||u,c=s.weekYear||s.weekNumber,p=St.fromObject(r);if((A||i)&&c)throw new Kn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&i)throw new Kn("Can't mix ordinal dates with month/day");let m=c||s.weekday&&!A,h,y,I=IA(a,n);m?(h=iw,y=nw,I=vc(I)):i?(h=lw,y=sw,I=ac(I)):(h=hg,y=_g);let F=!1;for(let C of h){let P=s[C];Ue(P)?F?s[C]=y[C]:s[C]=I[C]:F=!0}let R=m?ow(s):i?aw(s):cg(s),B=R||pg(s);if(B)return t.invalid(B);let j=m?sh(s):i?ih(s):s,[E,D]=FA(j,n,o),k=new t({ts:E,zone:o,o:D,loc:p});return s.weekday&&A&&e.weekday!==k.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${k.toISO()}`):k}static fromISO(e,r={}){let[o,a]=yb(e);return bl(o,a,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[o,a]=Eb(e);return bl(o,a,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[o,a]=Ib(e);return bl(o,a,r,"HTTP",r)}static fromFormat(e,r,o={}){if(Ue(e)||Ue(r))throw new Or("fromFormat requires an input string and a format");let{locale:a=null,numberingSystem:n=null}=o,s=St.fromOpts({locale:a,numberingSystem:n,defaultToEN:!0}),[i,l,u,A]=rw(s,e,r);return A?t.invalid(A):bl(i,l,o,`format ${r}`,e,u)}static fromString(e,r,o={}){return t.fromFormat(e,r,o)}static fromSQL(e,r={}){let[o,a]=Tb(e);return bl(o,a,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new Or("need to specify a reason the DateTime is invalid");let o=e instanceof Kr?e:new Kr(e,r);if(Bt.throwOnInvalid)throw new uc(o);return new t({invalid:o})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){let o=ig(e,St.fromObject(r));return o?o.map(a=>a?a.val:null).join(""):null}static expandFormat(e,r={}){return ng(Wr.parseFormat(e),St.fromObject(r)).map(a=>a.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?sc(this).weekYear:NaN}get weekNumber(){return this.isValid?sc(this).weekNumber:NaN}get weekday(){return this.isValid?sc(this).weekday:NaN}get ordinal(){return this.isValid?ac(this.c).ordinal:NaN}get monthShort(){return this.isValid?si.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?si.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?si.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?si.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,r=6e4,o=GA(this.c),a=this.zone.offset(o-e),n=this.zone.offset(o+e),s=this.zone.offset(o-a*r),i=this.zone.offset(o-n*r);if(s===i)return[this];let l=o-s*r,u=o-i*r,A=IA(l,s),c=IA(u,i);return A.hour===c.hour&&A.minute===c.minute&&A.second===c.second&&A.millisecond===c.millisecond?[Wn(this,{ts:l}),Wn(this,{ts:u})]:[this]}get isInLeapYear(){return Bl(this.year)}get daysInMonth(){return TA(this.year,this.month)}get daysInYear(){return this.isValid?Il(this.year):NaN}get weeksInWeekYear(){return this.isValid?OA(this.weekYear):NaN}resolvedLocaleOptions(e={}){let{locale:r,numberingSystem:o,calendar:a}=Wr.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:o,outputCalendar:a}}toUTC(e=0,r={}){return this.setZone(ho.instance(e),r)}toLocal(){return this.setZone(Bt.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:o=!1}={}){if(e=un(e,Bt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let a=this.ts;if(r||o){let n=e.offset(this.ts),s=this.toObject();[a]=FA(s,n,e)}return Wn(this,{ts:a,zone:e})}else return t.invalid(EA(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:o}={}){let a=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:o});return Wn(this,{loc:a})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=MA(e,fh),o=!Ue(r.weekYear)||!Ue(r.weekNumber)||!Ue(r.weekday),a=!Ue(r.ordinal),n=!Ue(r.year),s=!Ue(r.month)||!Ue(r.day),i=n||s,l=r.weekYear||r.weekNumber;if((i||a)&&l)throw new Kn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&a)throw new Kn("Can't mix ordinal dates with month/day");let u;o?u=sh({...vc(this.c),...r}):Ue(r.ordinal)?(u={...this.toObject(),...r},Ue(r.day)&&(u.day=Math.min(TA(u.year,u.month),u.day))):u=ih({...ac(this.c),...r});let[A,c]=FA(u,this.o,this.zone);return Wn(this,{ts:A,o:c})}plus(e){if(!this.isValid)return this;let r=ge.fromDurationLike(e);return Wn(this,uh(this,r))}minus(e){if(!this.isValid)return this;let r=ge.fromDurationLike(e).negate();return Wn(this,uh(this,r))}startOf(e){if(!this.isValid)return this;let r={},o=ge.normalizeUnit(e);switch(o){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(o==="weeks"&&(r.weekday=1),o==="quarters"){let a=Math.ceil(this.month/3);r.month=(a-1)*3+1}return this.set(r)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,r={}){return this.isValid?Wr.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):nc}toLocaleString(e=SA,r={}){return this.isValid?Wr.create(this.loc.clone(r),e).formatDateTime(this):nc}toLocaleParts(e={}){return this.isValid?Wr.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:o=!1,includeOffset:a=!0,extendedZone:n=!1}={}){if(!this.isValid)return null;let s=e==="extended",i=ic(this,s);return i+="T",i+=Ah(this,s,r,o,a,n),i}toISODate({format:e="extended"}={}){return this.isValid?ic(this,e==="extended"):null}toISOWeekDate(){return $A(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:o=!0,includePrefix:a=!1,extendedZone:n=!1,format:s="extended"}={}){return this.isValid?(a?"T":"")+Ah(this,s==="extended",r,e,o,n):null}toRFC2822(){return $A(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return $A(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?ic(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:o=!0}={}){let a="HH:mm:ss.SSS";return(r||e)&&(o&&(a+=" "),r?a+="z":e&&(a+="ZZ")),$A(this,a,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():nc}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",o={}){if(!this.isValid||!e.isValid)return ge.invalid("created by diffing an invalid DateTime");let a={locale:this.locale,numberingSystem:this.numberingSystem,...o},n=Nk(r).map(ge.normalizeUnit),s=e.valueOf()>this.valueOf(),i=s?this:e,l=s?e:this,u=Lb(i,l,n,a);return s?u.negate():u}diffNow(e="milliseconds",r={}){return this.diff(t.now(),e,r)}until(e){return this.isValid?li.fromDateTimes(this,e):this}hasSame(e,r){if(!this.isValid)return!1;let o=e.valueOf(),a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(r)<=o&&o<=a.endOf(r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let r=e.base||t.fromObject({},{zone:this.zone}),o=e.padding?thisr.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new Or("max requires all arguments be DateTimes");return J_(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,o={}){let{locale:a=null,numberingSystem:n=null}=o,s=St.fromOpts({locale:a,numberingSystem:n,defaultToEN:!0});return sg(s,e,r)}static fromStringExplain(e,r,o={}){return t.fromFormatExplain(e,r,o)}static get DATE_SHORT(){return SA}static get DATE_MED(){return xh}static get DATE_MED_WITH_WEEKDAY(){return xk}static get DATE_FULL(){return vh}static get DATE_HUGE(){return kh}static get TIME_SIMPLE(){return bh}static get TIME_WITH_SECONDS(){return wh}static get TIME_WITH_SHORT_OFFSET(){return yh}static get TIME_WITH_LONG_OFFSET(){return Eh}static get TIME_24_SIMPLE(){return Ih}static get TIME_24_WITH_SECONDS(){return $h}static get TIME_24_WITH_SHORT_OFFSET(){return Dh}static get TIME_24_WITH_LONG_OFFSET(){return Fh}static get DATETIME_SHORT(){return Bh}static get DATETIME_SHORT_WITH_SECONDS(){return Sh}static get DATETIME_MED(){return Ch}static get DATETIME_MED_WITH_SECONDS(){return Th}static get DATETIME_MED_WITH_WEEKDAY(){return vk}static get DATETIME_FULL(){return Oh}static get DATETIME_FULL_WITH_SECONDS(){return Mh}static get DATETIME_HUGE(){return Nh}static get DATETIME_HUGE_WITH_SECONDS(){return qh}};function wl(t){if(qe.isDateTime(t))return t;if(t&&t.valueOf&&Yn(t.valueOf()))return qe.fromJSDate(t);if(t&&typeof t=="object")return qe.fromObject(t);throw new Or(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var Oc={renderNullAs:"\\-",taskCompletionTracking:!1,taskCompletionUseEmojiShorthand:!1,taskCompletionText:"completion",taskCompletionDateFormat:"yyyy-MM-dd",recursiveSubTaskCompletion:!1,warnOnEmptyResult:!0,refreshEnabled:!0,refreshInterval:2500,defaultDateFormat:"MMMM dd, yyyy",defaultDateTimeFormat:"h:mm a - MMMM dd, yyyy",maxRecursiveRenderDepth:4,tableIdColumnName:"File",tableGroupColumnName:"Group",showResultCount:!0},uw={allowHtml:!0};({...Oc,...uw});var kc=class t{constructor(e){Ze(this,"value");Ze(this,"successful");this.value=e,this.successful=!0}map(e){return new t(e(this.value))}flatMap(e){return e(this.value)}mapErr(e){return this}bimap(e,r){return this.map(e)}orElse(e){return this.value}cast(){return this}orElseThrow(e){return this.value}},bc=class t{constructor(e){Ze(this,"error");Ze(this,"successful");this.error=e,this.successful=!1}map(e){return this}flatMap(e){return this}mapErr(e){return new t(e(this.error))}bimap(e,r){return this.mapErr(r)}orElse(e){return e}cast(){return this}orElseThrow(e){throw e?new Error(e(this.error)):new Error(""+this.error)}},NA;(function(t){function e(n){return new kc(n)}t.success=e;function r(n){return new bc(n)}t.failure=r;function o(n,s,i){return n.successful?s.successful?i(n.value,s.value):r(s.error):r(n.error)}t.flatMap2=o;function a(n,s,i){return o(n,s,(l,u)=>e(i(l,u)))}t.map2=a})(NA||(NA={}));var Aw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},qA={exports:{}};qA.exports;(function(t,e){(function(r,o){t.exports=o()})(typeof self<"u"?self:Aw,function(){return function(r){var o={};function a(n){if(o[n])return o[n].exports;var s=o[n]={i:n,l:!1,exports:{}};return r[n].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=r,a.c=o,a.d=function(n,s,i){a.o(n,s)||Object.defineProperty(n,s,{configurable:!1,enumerable:!0,get:i})},a.r=function(n){Object.defineProperty(n,"__esModule",{value:!0})},a.n=function(n){var s=n&&n.__esModule?function(){return n.default}:function(){return n};return a.d(s,"a",s),s},a.o=function(n,s){return Object.prototype.hasOwnProperty.call(n,s)},a.p="",a(a.s=0)}([function(r,o,a){function n(_){if(!(this instanceof n))return new n(_);this._=_}var s=n.prototype;function i(_,x){for(var $=0;$<_;$++)x($)}function l(_,x,$){return function(O,V){i(V.length,function(z){O(V[z],z,V)})}(function(O,V,z){x=_(x,O,V,z)},$),x}function u(_,x){return l(function($,O,V,z){return $.concat([_(O,V,z)])},[],x)}function A(_,x){var $={v:0,buf:x};return i(_,function(){var O;$={v:$.v<<1|(O=$.buf,O[0]>>7),buf:function(V){var z=l(function(W,Ie,pt,Ir){return W.concat(pt===Ir.length-1?Buffer.from([Ie,0]).readUInt16BE(0):Ir.readUInt16BE(pt))},[],V);return Buffer.from(u(function(W){return(W<<1&65535)>>8},z))}($.buf)}}),$}function c(){return typeof Buffer<"u"}function p(){if(!c())throw new Error("Buffer global does not exist; please use webpack if you need to parse Buffers in the browser.")}function m(_){p();var x=l(function(z,W){return z+W},0,_);if(x%8!=0)throw new Error("The bits ["+_.join(", ")+"] add up to "+x+" which is not an even number of bytes; the total should be divisible by 8");var $,O=x/8,V=($=function(z){return z>48},l(function(z,W){return z||($(W)?W:z)},null,_));if(V)throw new Error(V+" bit range requested exceeds 48 bit (6 byte) Number max.");return new n(function(z,W){var Ie=O+W;return Ie>z.length?C(W,O.toString()+" bytes"):k(Ie,l(function(pt,Ir){var lr=A(Ir,pt.buf);return{coll:pt.coll.concat(lr.v),buf:lr.buf}},{coll:[],buf:z.slice(W,Ie)},_).coll)})}function h(_,x){return new n(function($,O){return p(),O+x>$.length?C(O,x+" bytes for "+_):k(O+x,$.slice(O,O+x))})}function y(_,x){if(typeof($=x)!="number"||Math.floor($)!==$||x<0||x>6)throw new Error(_+" requires integer length in range [0, 6].");var $}function I(_){return y("uintBE",_),h("uintBE("+_+")",_).map(function(x){return x.readUIntBE(0,_)})}function F(_){return y("uintLE",_),h("uintLE("+_+")",_).map(function(x){return x.readUIntLE(0,_)})}function R(_){return y("intBE",_),h("intBE("+_+")",_).map(function(x){return x.readIntBE(0,_)})}function B(_){return y("intLE",_),h("intLE("+_+")",_).map(function(x){return x.readIntLE(0,_)})}function j(_){return _ instanceof n}function E(_){return{}.toString.call(_)==="[object Array]"}function D(_){return c()&&Buffer.isBuffer(_)}function k(_,x){return{status:!0,index:_,value:x,furthest:-1,expected:[]}}function C(_,x){return E(x)||(x=[x]),{status:!1,index:-1,value:null,furthest:_,expected:x}}function P(_,x){if(!x||_.furthest>x.furthest)return _;var $=_.furthest===x.furthest?function(O,V){if(function(){if(n._supportsSet!==void 0)return n._supportsSet;var Ea=typeof Set<"u";return n._supportsSet=Ea,Ea}()&&Array.from){for(var z=new Set(O),W=0;W=0;){if(W in $){O=$[W].line,z===0&&(z=$[W].lineStart);break}(_.charAt(W)===` +`||_.charAt(W)==="\r"&&_.charAt(W+1)!==` +`)&&(V++,z===0&&(z=W+1)),W--}var Ie=O+V,pt=x-z;return $[x]={line:Ie,lineStart:z},{offset:x,line:Ie+1,column:pt+1}}function fe(_){if(!j(_))throw new Error("not a parser: "+_)}function He(_,x){return typeof _=="string"?_.charAt(x):_[x]}function G(_){if(typeof _!="number")throw new Error("not a number: "+_)}function Y(_){if(typeof _!="function")throw new Error("not a function: "+_)}function De(_){if(typeof _!="string")throw new Error("not a string: "+_)}var T=2,M=3,Z=8,_e=5*Z,Ne=4*Z,at=" ";function uo(_,x){return new Array(x+1).join(_)}function Do(_,x,$){var O=x-_.length;return O<=0?_:uo($,O)+_}function Jt(_,x,$,O){return{from:_-x>0?_-x:0,to:_+$>O?O:_+$}}function Vr(_,x){var $,O,V,z,W,Ie=x.index,pt=Ie.offset,Ir=1;if(pt===_.length)return"Got the end of the input";if(D(_)){var lr=pt-pt%Z,ya=pt-lr,Ur=Jt(lr,_e,Ne+Z,_.length),Ea=u(function(Ut){return u(function(Xs){return Do(Xs.toString(16),2,"0")},Ut)},function(Ut,Xs){var Qs=Ut.length,Rn=[],ei=0;if(Qs<=Xs)return[Ut.slice()];for(var ti=0;ti=4&&($+=1),Ir=2,V=u(function(Ut){return Ut.length<=4?Ut.join(" "):Ut.slice(0,4).join(" ")+" "+Ut.slice(4).join(" ")},Ea),(W=(8*(z.to>0?z.to-1:z.to)).toString(16).length)<2&&(W=2)}else{var Js=_.split(/\r\n|[\n\r\u2028\u2029]/);$=Ie.column-1,O=Ie.line-1,z=Jt(O,T,M,Js.length),V=Js.slice(z.from,z.to),W=z.to.toString().length}var J6=O-z.from;return D(_)&&(W=(8*(z.to>0?z.to-1:z.to)).toString(16).length)<2&&(W=2),l(function(Ut,Xs,Qs){var Rn,ei=Qs===J6,ti=ei?"> ":at;return Rn=D(_)?Do((8*(z.from+Qs)).toString(16),W,"0"):Do((z.from+Qs+1).toString(),W," "),[].concat(Ut,[ti+Rn+" | "+Xs],ei?[at+uo(" ",W)+" | "+Do("",$," ")+uo("^",Ir)]:[])},[],V).join(` +`)}function va(_,x){return[` +`,"-- PARSING FAILED "+uo("-",50),` + +`,Vr(_,x),` + +`,($=x.expected,$.length===1?`Expected: + +`+$[0]:`Expected one of the following: + +`+$.join(", ")),` +`].join("");var $}function bt(_){return _.flags!==void 0?_.flags:[_.global?"g":"",_.ignoreCase?"i":"",_.multiline?"m":"",_.unicode?"u":"",_.sticky?"y":""].join("")}function Vt(){for(var _=[].slice.call(arguments),x=_.length,$=0;$=2?G(x):x=0;var $=function(V){return RegExp("^(?:"+V.source+")",bt(V))}(_),O=""+_;return n(function(V,z){var W=$.exec(V.slice(z));if(W){if(0<=x&&x<=W.length){var Ie=W[0],pt=W[x];return k(z+Ie.length,pt)}return C(z,"valid match group (0 to "+W.length+") in "+O)}return C(z,O)})}function Er(_){return n(function(x,$){return k($,_)})}function Fo(_){return n(function(x,$){return C($,_)})}function Xo(_){if(j(_))return n(function(x,$){var O=_._(x,$);return O.index=$,O.value="",O});if(typeof _=="string")return Xo(_t(_));if(_ instanceof RegExp)return Xo(Mt(_));throw new Error("not a string, regexp, or parser: "+_)}function Qo(_){return fe(_),n(function(x,$){var O=_._(x,$),V=x.slice($,O.index);return O.status?C($,'not "'+V+'"'):k($,null)})}function rn(_){return Y(_),n(function(x,$){var O=He(x,$);return $=_.length?C(x,"any character/byte"):k(x+1,He(_,x))}),dl=n(function(_,x){return k(_.length,_.slice(x))}),wa=n(function(_,x){return x<_.length?C(x,"EOF"):k(x,null)}),cl=Mt(/[0-9]/).desc("a digit"),uA=Mt(/[0-9]*/).desc("optional digits"),Ks=Mt(/[a-z]/i).desc("a letter"),Bd=Mt(/[a-z]*/i).desc("optional letters"),Sd=Mt(/\s*/).desc("optional whitespace"),Cd=Mt(/\s+/).desc("whitespace"),wt=_t("\r"),fo=_t(` +`),Zs=_t(`\r +`),Ys=Ao(Zs,fo,wt).desc("newline"),Td=Ao(Ys,wa);n.all=dl,n.alt=Ao,n.any=fl,n.cr=wt,n.createLanguage=function(_){var x={};for(var $ in _)({}).hasOwnProperty.call(_,$)&&function(O){x[O]=ka(function(){return _[O](x)})}($);return x},n.crlf=Zs,n.custom=function(_){return n(_(k,C))},n.digit=cl,n.digits=uA,n.empty=Al,n.end=Td,n.eof=wa,n.fail=Fo,n.formatError=va,n.index=ba,n.isParser=j,n.lazy=ka,n.letter=Ks,n.letters=Bd,n.lf=fo,n.lookahead=Xo,n.makeFailure=C,n.makeSuccess=k,n.newline=Ys,n.noneOf=function(_){return rn(function(x){return _.indexOf(x)<0}).desc("none of '"+_+"'")},n.notFollowedBy=Qo,n.of=Er,n.oneOf=function(_){for(var x=_.split(""),$=0;$=0}).desc(x)},n.optWhitespace=Sd,n.Parser=n,n.range=function(_,x){return rn(function($){return _<=$&&$<=x}).desc(_+"-"+x)},n.regex=Mt,n.regexp=Mt,n.sepBy=tn,n.sepBy1=ir,n.seq=Vt,n.seqMap=Dt,n.seqObj=function(){for(var _,x={},$=0,O=(_=arguments,Array.prototype.slice.call(_)),V=O.length,z=0;z255)throw new Error("Value specified to byte constructor ("+_+"=0x"+_.toString(16)+") is larger in value than a single byte.");var x=(_>15?"0x":"0x0")+_.toString(16);return n(function($,O){var V=He($,O);return V===_?k(O+1,V):C(O,x)})},buffer:function(_){return h("buffer",_).map(function(x){return Buffer.from(x)})},encodedString:function(_,x){return h("string",x).map(function($){return $.toString(_)})},uintBE:I,uint8BE:I(1),uint16BE:I(2),uint32BE:I(4),uintLE:F,uint8LE:F(1),uint16LE:F(2),uint32LE:F(4),intBE:R,int8BE:R(1),int16BE:R(2),int32BE:R(4),intLE:B,int8LE:B(1),int16LE:B(2),int32LE:B(4),floatBE:h("floatBE",4).map(function(_){return _.readFloatBE(0)}),floatLE:h("floatLE",4).map(function(_){return _.readFloatLE(0)}),doubleBE:h("doubleBE",8).map(function(_){return _.readDoubleBE(0)}),doubleLE:h("doubleLE",8).map(function(_){return _.readDoubleLE(0)})},r.exports=n}])})})(qA,qA.exports);var g=qA.exports,Mc=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A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uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function gg(t){return t==null?t:t.shiftToAll().normalize()}function mh(t){return t.includes("/")&&(t=t.substring(t.lastIndexOf("/")+1)),t.endsWith(".md")&&(t=t.substring(0,t.length-3)),t}g.alt(g.regex(new RegExp(Mc(),"")),g.regex(/[0-9\p{Letter}_-]+/u).map(t=>t.toLocaleLowerCase()),g.whitespace.map(t=>"-"),g.any.map(t=>"")).many().map(t=>t.join(""));var fw=g.alt(g.regex(new RegExp(Mc(),"")),g.regex(/[0-9\p{Letter}_-]+/u),g.whitespace.map(t=>" "),g.any.map(t=>" ")).many().map(t=>t.join("").split(/\s+/).join(" ").trim());function dw(t){return fw.tryParse(t)}function cw(t){return t=gg(t),t=ge.fromObject(Object.fromEntries(Object.entries(t.toObject()).filter(([,e])=>e!=0))),t.toHuman()}var Dl;(function(t){function e(j,E=Oc,D=!1){let k=r(j);if(!k)return E.renderNullAs;switch(k.type){case"null":return E.renderNullAs;case"string":return k.value;case"number":case"boolean":return""+k.value;case"html":return k.value.outerHTML;case"widget":return k.value.markdown();case"link":return k.value.markdown();case"function":return"";case"array":let C="";return D&&(C+="["),C+=k.value.map(P=>e(P,E,!0)).join(", "),D&&(C+="]"),C;case"object":return"{ "+Object.entries(k.value).map(P=>P[0]+": "+e(P[1],E,!0)).join(", ")+" }";case"date":return k.value.second==0&&k.value.hour==0&&k.value.minute==0?k.value.toFormat(E.defaultDateFormat):k.value.toFormat(E.defaultDateTimeFormat);case"duration":return cw(k.value)}}t.toString=e;function r(j){return p(j)?{type:"null",value:j}:u(j)?{type:"number",value:j}:l(j)?{type:"string",value:j}:h(j)?{type:"boolean",value:j}:c(j)?{type:"duration",value:j}:A(j)?{type:"date",value:j}:I(j)?{type:"widget",value:j}:m(j)?{type:"array",value:j}:y(j)?{type:"link",value:j}:B(j)?{type:"function",value:j}:F(j)?{type:"html",value:j}:R(j)?{type:"object",value:j}:void 0}t.wrapValue=r;function o(j,E){if(R(j)){let D={};for(let[k,C]of Object.entries(j))D[k]=o(C,E);return D}else if(m(j)){let D=[];for(let k of j)D.push(o(k,E));return D}else return E(j)}t.mapLeaves=o;function a(j,E,D){if(j===void 0&&(j=null),E===void 0&&(E=null),j===null&&E===null)return 0;if(j===null)return-1;if(E===null)return 1;let k=r(j),C=r(E);if(k===void 0&&C===void 0)return 0;if(k===void 0)return-1;if(C===void 0)return 1;if(k.type!=C.type)return k.type.localeCompare(C.type);if(k.value===C.value)return 0;switch(k.type){case"string":return k.value.localeCompare(C.value);case"number":return k.valueNe),fe=xe(P.path).localeCompare(xe(le.path));if(fe!=0)return fe;let He=P.type.localeCompare(le.type);return He!=0?He:P.subpath&&!le.subpath?1:!P.subpath&&le.subpath?-1:!P.subpath&&!le.subpath?0:(P.subpath??"").localeCompare(le.subpath??"");case"date":return k.value0;case"boolean":return E.value;case"link":return!!E.value.path;case"date":return E.value.toMillis()!=0;case"duration":return E.value.as("seconds")!=0;case"object":return Object.keys(E.value).length>0;case"array":return E.value.length>0;case"null":return!1;case"html":case"widget":case"function":return!0}}t.isTruthy=s;function i(j){if(j==null)return j;if(t.isArray(j))return[].concat(j.map(E=>i(E)));if(t.isObject(j)){let E={};for(let[D,k]of Object.entries(j))E[D]=i(k);return E}else return j}t.deepCopy=i;function l(j){return typeof j=="string"}t.isString=l;function u(j){return typeof j=="number"}t.isNumber=u;function A(j){return j instanceof qe}t.isDate=A;function c(j){return j instanceof ge}t.isDuration=c;function p(j){return j==null}t.isNull=p;function m(j){return Array.isArray(j)}t.isArray=m;function h(j){return typeof j=="boolean"}t.isBoolean=h;function y(j){return j instanceof PA}t.isLink=y;function I(j){return j instanceof Fl}t.isWidget=I;function F(j){return typeof HTMLElement<"u"?j instanceof HTMLElement:!1}t.isHtml=F;function R(j){return typeof j=="object"&&!F(j)&&!I(j)&&!m(j)&&!c(j)&&!A(j)&&!y(j)&&j!==void 0&&!p(j)}t.isObject=R;function B(j){return typeof j=="function"}t.isFunction=B})(Dl||(Dl={}));var _h;(function(t){function e(a){return Dl.isObject(a)&&Object.keys(a).length==2&&"key"in a&&"rows"in a}t.isElementGroup=e;function r(a){for(let n of a)if(!e(n))return!1;return!0}t.isGrouping=r;function o(a){if(r(a)){let n=0;for(let s of a)n+=o(s.rows);return n}else return a.length}t.count=o})(_h||(_h={}));var PA=class t{constructor(e){Ze(this,"path");Ze(this,"display");Ze(this,"subpath");Ze(this,"embed");Ze(this,"type");Object.assign(this,e)}static file(e,r=!1,o){return new t({path:e,embed:r,display:o,subpath:void 0,type:"file"})}static infer(e,r=!1,o){if(e.includes("#^")){let a=e.split("#^");return t.block(a[0],a[1],r,o)}else if(e.includes("#")){let a=e.split("#");return t.header(a[0],a[1],r,o)}else return t.file(e,r,o)}static header(e,r,o,a){return new t({path:e,embed:o,display:a,subpath:dw(r),type:"header"})}static block(e,r,o,a){return new t({path:e,embed:o,display:a,subpath:r,type:"block"})}static fromObject(e){return new t(e)}equals(e){return e==null||e==null?!1:this.path==e.path&&this.type==e.type&&this.subpath==e.subpath}toString(){return this.markdown()}toObject(){return{path:this.path,type:this.type,subpath:this.subpath,display:this.display,embed:this.embed}}withPath(e){return new t(Object.assign({},this,{path:e}))}withDisplay(e){return new t(Object.assign({},this,{display:e}))}withHeader(e){return t.header(this.path,e,this.embed,this.display)}toFile(){return t.file(this.path,this.embed,this.display)}toEmbed(){if(this.embed)return this;{let e=new t(this);return e.embed=!0,e}}fromEmbed(){if(this.embed){let e=new t(this);return e.embed=!1,e}else return this}markdown(){let e=(this.embed?"!":"")+"[["+this.obsidianLink();return this.display?e+="|"+this.display:(e+="|"+mh(this.path),(this.type=="header"||this.type=="block")&&(e+=" > "+this.subpath)),e+="]]",e}obsidianLink(){let e=this.path.replaceAll("|","\\|");return this.type=="header"?e+"#"+this.subpath?.replaceAll("|","\\|"):this.type=="block"?e+"#^"+this.subpath?.replaceAll("|","\\|"):e}fileName(){return mh(this.path).replace(".md","")}},Fl=class{constructor(e){Ze(this,"$widget");this.$widget=e}},wc=class extends Fl{constructor(r,o){super("dataview:list-pair");Ze(this,"key");Ze(this,"value");this.key=r,this.value=o}markdown(){return`${Dl.toString(this.key)}: ${Dl.toString(this.value)}`}},yc=class extends Fl{constructor(r,o){super("dataview:external-link");Ze(this,"url");Ze(this,"display");this.url=r,this.display=o}markdown(){return`[${this.display??this.url}](${this.url})`}},hh;(function(t){function e(s,i){return new wc(s,i)}t.listPair=e;function r(s,i){return new yc(s,i)}t.externalLink=r;function o(s){return s.$widget==="dataview:list-pair"}t.isListPair=o;function a(s){return s.$widget==="dataview:external-link"}t.isExternalLink=a;function n(s){return o(s)||a(s)}t.isBuiltin=n})(hh||(hh={}));var Ft;(function(t){function e(p){return{type:"variable",name:p}}t.variable=e;function r(p){return{type:"literal",value:p}}t.literal=r;function o(p,m,h){return{type:"binaryop",left:p,op:m,right:h}}t.binaryOp=o;function a(p,m){return{type:"index",object:p,index:m}}t.index=a;function n(p){let m=p.split("."),h=t.variable(m[0]);for(let y=1;y"||p==">="||p=="!="||p=="="}t.isCompareOp=c,t.NULL=t.literal(null)})(Ft||(Ft={}));var ra;(function(t){function e(A){return{type:"tag",tag:A}}t.tag=e;function r(A){return{type:"csv",path:A}}t.csv=r;function o(A){return{type:"folder",folder:A}}t.folder=o;function a(A,c){return{type:"link",file:A,direction:c?"incoming":"outgoing"}}t.link=a;function n(A,c,p){return{type:"binaryop",left:A,op:c,right:p}}t.binaryOp=n;function s(A,c){return{type:"binaryop",left:A,op:"&",right:c}}t.and=s;function i(A,c){return{type:"binaryop",left:A,op:"|",right:c}}t.or=i;function l(A){return{type:"negate",child:A}}t.negate=l;function u(){return{type:"empty"}}t.empty=u})(ra||(ra={}));var gh=new RegExp(Mc(),""),Ec={year:ge.fromObject({years:1}),years:ge.fromObject({years:1}),yr:ge.fromObject({years:1}),yrs:ge.fromObject({years:1}),month:ge.fromObject({months:1}),months:ge.fromObject({months:1}),mo:ge.fromObject({months:1}),mos:ge.fromObject({months:1}),week:ge.fromObject({weeks:1}),weeks:ge.fromObject({weeks:1}),wk:ge.fromObject({weeks:1}),wks:ge.fromObject({weeks:1}),w:ge.fromObject({weeks:1}),day:ge.fromObject({days:1}),days:ge.fromObject({days:1}),d:ge.fromObject({days:1}),hour:ge.fromObject({hours:1}),hours:ge.fromObject({hours:1}),hr:ge.fromObject({hours:1}),hrs:ge.fromObject({hours:1}),h:ge.fromObject({hours:1}),minute:ge.fromObject({minutes:1}),minutes:ge.fromObject({minutes:1}),min:ge.fromObject({minutes:1}),mins:ge.fromObject({minutes:1}),m:ge.fromObject({minutes:1}),second:ge.fromObject({seconds:1}),seconds:ge.fromObject({seconds:1}),sec:ge.fromObject({seconds:1}),secs:ge.fromObject({seconds:1}),s:ge.fromObject({seconds:1})},Ic={now:()=>qe.local(),today:()=>qe.local().startOf("day"),yesterday:()=>qe.local().startOf("day").minus(ge.fromObject({days:1})),tomorrow:()=>qe.local().startOf("day").plus(ge.fromObject({days:1})),sow:()=>qe.local().startOf("week"),"start-of-week":()=>qe.local().startOf("week"),eow:()=>qe.local().endOf("week"),"end-of-week":()=>qe.local().endOf("week"),soy:()=>qe.local().startOf("year"),"start-of-year":()=>qe.local().startOf("year"),eoy:()=>qe.local().endOf("year"),"end-of-year":()=>qe.local().endOf("year"),som:()=>qe.local().startOf("month"),"start-of-month":()=>qe.local().startOf("month"),eom:()=>qe.local().endOf("month"),"end-of-month":()=>qe.local().endOf("month")},$c=["FROM","WHERE","LIMIT","GROUP","FLATTEN"];function pw(t){let e=-1;for(;(e=t.indexOf("|",e+1))>=0;)if(!(e>0&&t[e-1]=="\\"))return[t.substring(0,e).replace(/\\\|/g,"|"),t.substring(e+1)];return[t.replace(/\\\|/g,"|"),void 0]}function mw(t){let[e,r]=pw(t);return PA.infer(e,!1,r)}function yl(t,e,r){return g.seqMap(t,g.seq(g.optWhitespace,e,g.optWhitespace,t).many(),(o,a)=>{if(a.length==0)return o;let n=r(o,a[0][1],a[0][3]);for(let s=1;s(a,n)=>{let s=t._(a,n);if(!s.status)return s;for(let i of e){let l=i(s.value)._(a,s.index);if(!l.status)return s;s=l}return s})}var Oo=g.createLanguage({number:t=>g.regexp(/-?[0-9]+(\.[0-9]+)?/).map(e=>Number.parseFloat(e)).desc("number"),string:t=>g.string('"').then(g.alt(t.escapeCharacter,g.noneOf('"\\')).atLeast(0).map(e=>e.join(""))).skip(g.string('"')).desc("string"),escapeCharacter:t=>g.string("\\").then(g.any).map(e=>e==='"'?'"':e==="\\"?"\\":"\\"+e),bool:t=>g.regexp(/true|false|True|False/).map(e=>e.toLowerCase()=="true").desc("boolean ('true' or 'false')"),tag:t=>g.seqMap(g.string("#"),g.alt(g.regexp(/[^\u2000-\u206F\u2E00-\u2E7F'!"#$%&()*+,.:;<=>?@^`{|}~\[\]\\\s]/).desc("text")).many(),(e,r)=>e+r.join("")).desc("tag ('#hello/stuff')"),identifier:t=>g.seqMap(g.alt(g.regexp(/\p{Letter}/u),g.regexp(gh).desc("text")),g.alt(g.regexp(/[0-9\p{Letter}_-]/u),g.regexp(gh).desc("text")).many(),(e,r)=>e+r.join("")).desc("variable identifier"),link:t=>g.regexp(/\[\[([^\[\]]*?)\]\]/u,1).map(e=>mw(e)).desc("file link"),embedLink:t=>g.seqMap(g.string("!").atMost(1),t.link,(e,r)=>(e.length>0&&(r.embed=!0),r)).desc("file link"),binaryPlusMinus:t=>g.regexp(/\+|-/).map(e=>e).desc("'+' or '-'"),binaryMulDiv:t=>g.regexp(/\*|\/|%/).map(e=>e).desc("'*' or '/' or '%'"),binaryCompareOp:t=>g.regexp(/>=|<=|!=|>|<|=/).map(e=>e).desc("'>=' or '<=' or '!=' or '=' or '>' or '<'"),binaryBooleanOp:t=>g.regexp(/and|or|&|\|/i).map(e=>e.toLowerCase()=="and"?"&":e.toLowerCase()=="or"?"|":e).desc("'and' or 'or'"),rootDate:t=>g.seqMap(g.regexp(/\d{4}/),g.string("-"),g.regexp(/\d{2}/),(e,r,o)=>qe.fromObject({year:Number.parseInt(e),month:Number.parseInt(o)})).desc("date in format YYYY-MM[-DDTHH-MM-SS.MS]"),dateShorthand:t=>g.alt(...Object.keys(Ic).sort((e,r)=>r.length-e.length).map(g.string)),date:t=>_w(t.rootDate,e=>g.seqMap(g.string("-"),g.regexp(/\d{2}/),(r,o)=>e.set({day:Number.parseInt(o)})),e=>g.seqMap(g.string("T"),g.regexp(/\d{2}/),(r,o)=>e.set({hour:Number.parseInt(o)})),e=>g.seqMap(g.string(":"),g.regexp(/\d{2}/),(r,o)=>e.set({minute:Number.parseInt(o)})),e=>g.seqMap(g.string(":"),g.regexp(/\d{2}/),(r,o)=>e.set({second:Number.parseInt(o)})),e=>g.alt(g.seqMap(g.string("."),g.regexp(/\d{3}/),(r,o)=>e.set({millisecond:Number.parseInt(o)})),g.succeed(e)),e=>g.alt(g.seqMap(g.string("+").or(g.string("-")),g.regexp(/\d{1,2}(:\d{2})?/),(r,o)=>e.setZone("UTC"+r+o,{keepLocalTime:!0})),g.seqMap(g.string("Z"),()=>e.setZone("utc",{keepLocalTime:!0})),g.seqMap(g.string("["),g.regexp(/[0-9A-Za-z+-\/]+/u),g.string("]"),(r,o,a)=>e.setZone(o,{keepLocalTime:!0})))).assert(e=>e.isValid,"valid date").desc("date in format YYYY-MM[-DDTHH-MM-SS.MS]"),datePlus:t=>g.alt(t.dateShorthand.map(e=>Ic[e]()),t.date).desc("date in format YYYY-MM[-DDTHH-MM-SS.MS] or in shorthand"),durationType:t=>g.alt(...Object.keys(Ec).sort((e,r)=>r.length-e.length).map(g.string)),duration:t=>g.seqMap(t.number,g.optWhitespace,t.durationType,(e,r,o)=>Ec[o].mapUnits(a=>a*e)).sepBy1(g.string(",").trim(g.optWhitespace).or(g.optWhitespace)).map(e=>e.reduce((r,o)=>r.plus(o))).desc("duration like 4hr2min"),rawNull:t=>g.string("null"),tagSource:t=>t.tag.map(e=>ra.tag(e)),csvSource:t=>g.seqMap(g.string("csv(").skip(g.optWhitespace),t.string,g.string(")"),(e,r,o)=>ra.csv(r)),linkIncomingSource:t=>t.link.map(e=>ra.link(e.path,!0)),linkOutgoingSource:t=>g.seqMap(g.string("outgoing(").skip(g.optWhitespace),t.link,g.string(")"),(e,r,o)=>ra.link(r.path,!1)),folderSource:t=>t.string.map(e=>ra.folder(e)),parensSource:t=>g.seqMap(g.string("("),g.optWhitespace,t.source,g.optWhitespace,g.string(")"),(e,r,o,a,n)=>o),negateSource:t=>g.seqMap(g.alt(g.string("-"),g.string("!")),t.atomSource,(e,r)=>ra.negate(r)),atomSource:t=>g.alt(t.parensSource,t.negateSource,t.linkOutgoingSource,t.linkIncomingSource,t.folderSource,t.tagSource,t.csvSource),binaryOpSource:t=>yl(t.atomSource,t.binaryBooleanOp.map(e=>e),ra.binaryOp),source:t=>t.binaryOpSource,variableField:t=>t.identifier.chain(e=>$c.includes(e.toUpperCase())?g.fail("Variable fields cannot be a keyword ("+$c.join(" or ")+")"):g.succeed(Ft.variable(e))).desc("variable"),numberField:t=>t.number.map(e=>Ft.literal(e)).desc("number"),stringField:t=>t.string.map(e=>Ft.literal(e)).desc("string"),boolField:t=>t.bool.map(e=>Ft.literal(e)).desc("boolean"),dateField:t=>g.seqMap(g.string("date("),g.optWhitespace,t.datePlus,g.optWhitespace,g.string(")"),(e,r,o,a,n)=>Ft.literal(o)).desc("date"),durationField:t=>g.seqMap(g.string("dur("),g.optWhitespace,t.duration,g.optWhitespace,g.string(")"),(e,r,o,a,n)=>Ft.literal(o)).desc("duration"),nullField:t=>t.rawNull.map(e=>Ft.NULL),linkField:t=>t.link.map(e=>Ft.literal(e)),listField:t=>t.field.sepBy(g.string(",").trim(g.optWhitespace)).wrap(g.string("[").skip(g.optWhitespace),g.optWhitespace.then(g.string("]"))).map(e=>Ft.list(e)).desc("list ('[1, 2, 3]')"),objectField:t=>g.seqMap(t.identifier.or(t.string),g.string(":").trim(g.optWhitespace),t.field,(e,r,o)=>({name:e,value:o})).sepBy(g.string(",").trim(g.optWhitespace)).wrap(g.string("{").skip(g.optWhitespace),g.optWhitespace.then(g.string("}"))).map(e=>{let r={};for(let o of e)r[o.name]=o.value;return Ft.object(r)}).desc("object ('{ a: 1, b: 2 }')"),atomInlineField:t=>g.alt(t.date,t.duration.map(e=>gg(e)),t.string,t.tag,t.embedLink,t.bool,t.number,t.rawNull),inlineFieldList:t=>t.atomInlineField.sepBy(g.string(",").trim(g.optWhitespace).lookahead(t.atomInlineField)),inlineField:t=>g.alt(g.seqMap(t.atomInlineField,g.string(",").trim(g.optWhitespace),t.inlineFieldList,(e,r,o)=>[e].concat(o)),t.atomInlineField),atomField:t=>g.alt(t.embedLink.map(e=>Ft.literal(e)),t.negatedField,t.linkField,t.listField,t.objectField,t.lambdaField,t.parensField,t.boolField,t.numberField,t.stringField,t.dateField,t.durationField,t.nullField,t.variableField),indexField:t=>g.seqMap(t.atomField,g.alt(t.dotPostfix,t.indexPostfix,t.functionPostfix).many(),(e,r)=>{let o=e;for(let a of r)switch(a.type){case"dot":o=Ft.index(o,Ft.literal(a.field));break;case"index":o=Ft.index(o,a.field);break;case"function":o=Ft.func(o,a.fields);break}return o}),negatedField:t=>g.seqMap(g.string("!"),t.indexField,(e,r)=>Ft.negate(r)).desc("negated field"),parensField:t=>g.seqMap(g.string("("),g.optWhitespace,t.field,g.optWhitespace,g.string(")"),(e,r,o,a,n)=>o),lambdaField:t=>g.seqMap(t.identifier.sepBy(g.string(",").trim(g.optWhitespace)).wrap(g.string("(").trim(g.optWhitespace),g.string(")").trim(g.optWhitespace)),g.string("=>").trim(g.optWhitespace),t.field,(e,r,o)=>({type:"lambda",arguments:e,value:o})),dotPostfix:t=>g.seqMap(g.string("."),t.identifier,(e,r)=>({type:"dot",field:r})),indexPostfix:t=>g.seqMap(g.string("["),g.optWhitespace,t.field,g.optWhitespace,g.string("]"),(e,r,o,a,n)=>({type:"index",field:o})),functionPostfix:t=>g.seqMap(g.string("("),g.optWhitespace,t.field.sepBy(g.string(",").trim(g.optWhitespace)),g.optWhitespace,g.string(")"),(e,r,o,a,n)=>({type:"function",fields:o})),binaryMulDivField:t=>yl(t.indexField,t.binaryMulDiv,Ft.binaryOp),binaryPlusMinusField:t=>yl(t.binaryMulDivField,t.binaryPlusMinus,Ft.binaryOp),binaryCompareField:t=>yl(t.binaryPlusMinusField,t.binaryCompareOp,Ft.binaryOp),binaryBooleanField:t=>yl(t.binaryCompareField,t.binaryBooleanOp,Ft.binaryOp),binaryOpField:t=>t.binaryBooleanField,field:t=>t.binaryOpField});function hw(t){try{return NA.success(Oo.field.tryParse(t))}catch(e){return NA.failure(""+e)}}var RA;(function(t){function e(o,a){return{name:o,field:a}}t.named=e;function r(o,a){return{field:o,direction:a}}t.sortBy=r})(RA||(RA={}));function gw(t){return g.custom((e,r)=>(o,a)=>{let n=t._(o,a);return n.status?Object.assign({},n,{value:[n.value,o.substring(a,n.index)]}):n})}function jw(t){return t.split(/[\r\n]+/).map(e=>e.trim()).join("")}function jh(t,e){return g.eof.map(t).or(g.whitespace.then(e))}var jg=g.createLanguage({queryType:t=>g.alt(g.regexp(/TABLE|LIST|TASK|CALENDAR/i)).map(e=>e.toLowerCase()).desc("query type ('TABLE', 'LIST', 'TASK', or 'CALENDAR')"),explicitNamedField:t=>g.seqMap(Oo.field.skip(g.whitespace),g.regexp(/AS/i).skip(g.whitespace),Oo.identifier.or(Oo.string),(e,r,o)=>RA.named(o,e)),comment:()=>g.Parser((t,e)=>{let r=t.substring(e);if(!r.startsWith("//"))return g.makeFailure(e,"Not a comment");r=r.split(` +`)[0];let o=r.substring(2).trim();return g.makeSuccess(e+r.length,o)}),namedField:t=>g.alt(t.explicitNamedField,gw(Oo.field).map(([e,r])=>RA.named(jw(r),e))),sortField:t=>g.seqMap(Oo.field.skip(g.optWhitespace),g.regexp(/ASCENDING|DESCENDING|ASC|DESC/i).atMost(1),(e,r)=>{let o=r.length==0?"ascending":r[0].toLowerCase();return o=="desc"&&(o="descending"),o=="asc"&&(o="ascending"),{field:e,direction:o}}),headerClause:t=>t.queryType.chain(e=>{switch(e){case"table":return jh(()=>({type:e,fields:[],showId:!0}),g.seqMap(g.regexp(/WITHOUT\s+ID/i).skip(g.optWhitespace).atMost(1),g.sepBy(t.namedField,g.string(",").trim(g.optWhitespace)),(r,o)=>({type:e,fields:o,showId:r.length==0})));case"list":return jh(()=>({type:e,format:void 0,showId:!0}),g.seqMap(g.regexp(/WITHOUT\s+ID/i).skip(g.optWhitespace).atMost(1),Oo.field.atMost(1),(r,o)=>({type:e,format:o.length==1?o[0]:void 0,showId:r.length==0})));case"task":return g.succeed({type:e});case"calendar":return g.whitespace.then(g.seqMap(t.namedField,r=>({type:e,showId:!0,field:r})));default:return g.fail(`Unrecognized query type '${e}'`)}}).desc("TABLE or LIST or TASK or CALENDAR"),fromClause:t=>g.seqMap(g.regexp(/FROM/i),g.whitespace,Oo.source,(e,r,o)=>o),whereClause:t=>g.seqMap(g.regexp(/WHERE/i),g.whitespace,Oo.field,(e,r,o)=>({type:"where",clause:o})).desc("WHERE "),sortByClause:t=>g.seqMap(g.regexp(/SORT/i),g.whitespace,t.sortField.sepBy1(g.string(",").trim(g.optWhitespace)),(e,r,o)=>({type:"sort",fields:o})).desc("SORT field [ASC/DESC]"),limitClause:t=>g.seqMap(g.regexp(/LIMIT/i),g.whitespace,Oo.field,(e,r,o)=>({type:"limit",amount:o})).desc("LIMIT "),flattenClause:t=>g.seqMap(g.regexp(/FLATTEN/i).skip(g.whitespace),t.namedField,(e,r)=>({type:"flatten",field:r})).desc("FLATTEN [AS ]"),groupByClause:t=>g.seqMap(g.regexp(/GROUP BY/i).skip(g.whitespace),t.namedField,(e,r)=>({type:"group",field:r})).desc("GROUP BY [AS ]"),clause:t=>g.alt(t.fromClause,t.whereClause,t.sortByClause,t.limitClause,t.groupByClause,t.flattenClause),query:t=>g.seqMap(t.headerClause.trim(lc),t.fromClause.trim(lc).atMost(1),t.clause.trim(lc).many(),(e,r,o)=>({header:e,source:r.length==0?ra.folder(""):r[0],operations:o,settings:Oc}))}),lc=g.alt(g.whitespace,jg.comment).many().map(t=>t.join("")),xw=t=>t?t.plugins.plugins.dataview?.api:window.DataviewAPI,vw=t=>t.plugins.enabledPlugins.has("dataview");oa.DATE_SHORTHANDS=Ic;oa.DURATION_TYPES=Ec;oa.EXPRESSION=Oo;oa.KEYWORDS=$c;oa.QUERY_LANGUAGE=jg;oa.getAPI=xw;oa.isPluginEnabled=vw;oa.parseField=hw});var OD={};Qm(OD,{BCEvent:()=>lA,default:()=>Fd});module.exports=sk(OD);var Y6=require("obsidian"),xa=require("obsidian");var Nd=["DEBUG","INFO","WARN","ERROR","FEAT"],r_={DEBUG:"#999",INFO:null,WARN:"#f90",ERROR:"#f00",FEAT:"#0f0"},ml=t=>{let e=r_[t],r=`[BC:${t}][${new Date().toISOString().split("T")[1]}]`;return[e?`%c${r}`:r,e?`color: ${r_[t]};`:"",` +`]},Md=class{constructor(e){this.set_level(e)}debug(...e){this.level_i<=0&&console.log(...ml("DEBUG"),...e)}info(...e){this.level_i<=1&&console.log(...ml("INFO"),...e)}warn(...e){this.level_i<=2&&console.log(...ml("WARN"),...e)}error(...e){this.level_i<=3&&console.log(...ml("ERROR"),...e)}feat(...e){this.level_i<=4&&console.log(...ml("FEAT"),...e)}set_level(e){this.level_i=Nd.findIndex(r=>r===e)}},H=new Md("INFO");var fk={},f;function Gn(t){let e=f.__externref_table_alloc();return f.__wbindgen_export_2.set(e,t),e}function qd(t,e){try{return t.apply(this,e)}catch(r){let o=Gn(r);f.__wbindgen_exn_store(o)}}var y_=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&y_.decode();var _l=null;function AA(){return(_l===null||_l.byteLength===0)&&(_l=new Uint8Array(f.memory.buffer)),_l}function Oe(t,e){return t=t>>>0,y_.decode(AA().subarray(t,t+e))}var ue=0,fA=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},ik=typeof fA.encodeInto=="function"?function(t,e){return fA.encodeInto(t,e)}:function(t,e){let r=fA.encode(t);return e.set(r),{read:t.length,written:r.length}};function Je(t,e,r){if(r===void 0){let i=fA.encode(t),l=e(i.length,1)>>>0;return AA().subarray(l,l+i.length).set(i),ue=i.length,l}let o=t.length,a=e(o,1)>>>0,n=AA(),s=0;for(;s127)break;n[a+s]=i}if(s!==o){s!==0&&(t=t.slice(s)),a=r(a,o,o=s+t.length*3,1)>>>0;let i=AA().subarray(a+s,a+o),l=ik(t,i);s+=l.written,a=r(a,o,s,1)>>>0}return ue=s,a}var Ln=null;function on(){return(Ln===null||Ln.buffer.detached===!0||Ln.buffer.detached===void 0&&Ln.buffer!==f.memory.buffer)&&(Ln=new DataView(f.memory.buffer)),Ln}function Ar(t){return t==null}function Vd(t){let e=typeof t;if(e=="number"||e=="boolean"||t==null)return`${t}`;if(e=="string")return`"${t}"`;if(e=="symbol"){let a=t.description;return a==null?"Symbol":`Symbol(${a})`}if(e=="function"){let a=t.name;return typeof a=="string"&&a.length>0?`Function(${a})`:"Function"}if(Array.isArray(t)){let a=t.length,n="[";a>0&&(n+=Vd(t[0]));for(let s=1;s1)o=r[1];else return toString.call(t);if(o=="Object")try{return"Object("+JSON.stringify(t)+")"}catch{return"Object"}return t instanceof Error?`${t.name}: ${t.message} +${t.stack}`:o}function fr(t,e){t=t>>>0;let r=on(),o=[];for(let a=t;a>>0;for(let o=0;o>>0,E_().subarray(t/4,t/4+e)}function I_(t,e){let r=e(t.length*4,4)>>>0;return E_().set(t,r/4),ue=t.length,r}function po(t,e){let r=Je(t,f.__wbindgen_malloc,f.__wbindgen_realloc),o=ue,a=f.create_edge_sorter(r,o,e);if(a[2])throw et(a[1]);return Bo.__wrap(a[0])}function $_(){let t=f.create_graph();return ft.__wrap(t)}var o_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_addedgegraphupdate_free(t>>>0,1)),dA=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,o_.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_addedgegraphupdate_free(e,0)}add_to_batch(e){let r=this.__destroy_into_raw();ve(e,zr),f.addedgegraphupdate_add_to_batch(r,e.__wbg_ptr)}constructor(e){ve(e,ct);var r=e.__destroy_into_raw();let o=f.addedgegraphupdate_new(r);return this.__wbg_ptr=o>>>0,o_.register(this,this.__wbg_ptr,this),this}},a_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_addnotegraphupdate_free(t>>>0,1)),ri=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,a_.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_addnotegraphupdate_free(e,0)}add_to_batch(e){let r=this.__destroy_into_raw();ve(e,zr),f.addnotegraphupdate_add_to_batch(r,e.__wbg_ptr)}constructor(e){ve(e,vt);var r=e.__destroy_into_raw();let o=f.addnotegraphupdate_new(r);return this.__wbg_ptr=o>>>0,a_.register(this,this.__wbg_ptr,this),this}},n_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_batchgraphupdate_free(t>>>0,1)),zr=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,n_.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_batchgraphupdate_free(e,0)}constructor(){let e=f.batchgraphupdate_new();return this.__wbg_ptr=e>>>0,n_.register(this,this.__wbg_ptr,this),this}},s_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_edgedata_free(t>>>0,1)),cA=class t{static __wrap(e){e=e>>>0;let r=Object.create(t.prototype);return r.__wbg_ptr=e,s_.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,s_.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_edgedata_free(e,0)}get explicit(){return f.__wbg_get_edgedata_explicit(this.__wbg_ptr)!==0}set explicit(e){f.__wbg_set_edgedata_explicit(this.__wbg_ptr,e)}get round(){return f.__wbg_get_edgedata_round(this.__wbg_ptr)}set round(e){f.__wbg_set_edgedata_round(this.__wbg_ptr,e)}get edge_type(){let e,r;try{let o=f.edgedata_edge_type(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}get edge_source(){let e,r;try{let o=f.edgedata_edge_source(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}toString(){let e,r;try{let o=f.edgedata_toString(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}},i_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_edgelist_free(t>>>0,1)),gl=class t{static __wrap(e){e=e>>>0;let r=Object.create(t.prototype);return r.__wbg_ptr=e,i_.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,i_.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_edgelist_free(e,0)}group_by_type(){let e=f.edgelist_group_by_type(this.__wbg_ptr);return pA.__wrap(e)}toString(){let e,r;try{let o=f.edgelist_toString(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}get_sorted_edges(e,r){ve(e,ft),ve(r,Bo);let o=f.edgelist_get_sorted_edges(this.__wbg_ptr,e.__wbg_ptr,r.__wbg_ptr);if(o[3])throw et(o[2]);var a=fr(o[0],o[1]).slice();return f.__wbindgen_free(o[0],o[1]*4,4),a}last(){let e=f.edgelist_last(this.__wbg_ptr);return e===0?void 0:So.__wrap(e)}first(){let e=f.edgelist_first(this.__wbg_ptr);return e===0?void 0:So.__wrap(e)}to_array(){let e=this.__destroy_into_raw(),r=f.edgelist_to_array(e);var o=fr(r[0],r[1]).slice();return f.__wbindgen_free(r[0],r[1]*4,4),o}get_edges(){let e=f.edgelist_get_edges(this.__wbg_ptr);var r=fr(e[0],e[1]).slice();return f.__wbindgen_free(e[0],e[1]*4,4),r}},l_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_edgesorter_free(t>>>0,1)),Bo=class t{static __wrap(e){e=e>>>0;let r=Object.create(t.prototype);return r.__wbg_ptr=e,l_.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,l_.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_edgesorter_free(e,0)}},u_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_edgestruct_free(t>>>0,1)),So=class t{static __wrap(e){e=e>>>0;let r=Object.create(t.prototype);return r.__wbg_ptr=e,u_.register(r,r.__wbg_ptr,r),r}static __unwrap(e){return e instanceof t?e.__destroy_into_raw():0}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,u_.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_edgestruct_free(e,0)}edge_source(e){let r,o;try{ve(e,ft);let s=f.edgestruct_edge_source(this.__wbg_ptr,e.__wbg_ptr);var a=s[0],n=s[1];if(s[3])throw a=0,n=0,et(s[2]);return r=a,o=n,Oe(a,n)}finally{f.__wbindgen_free(r,o,1)}}source_data(e){ve(e,ft);let r=f.edgestruct_source_data(this.__wbg_ptr,e.__wbg_ptr);if(r[2])throw et(r[1]);return Vn.__wrap(r[0])}source_path(e){let r,o;try{ve(e,ft);let s=f.edgestruct_source_path(this.__wbg_ptr,e.__wbg_ptr);var a=s[0],n=s[1];if(s[3])throw a=0,n=0,et(s[2]);return r=a,o=n,Oe(a,n)}finally{f.__wbindgen_free(r,o,1)}}target_data(e){ve(e,ft);let r=f.edgestruct_target_data(this.__wbg_ptr,e.__wbg_ptr);if(r[2])throw et(r[1]);return Vn.__wrap(r[0])}target_path(e){let r,o;try{ve(e,ft);let s=f.edgestruct_target_path(this.__wbg_ptr,e.__wbg_ptr);var a=s[0],n=s[1];if(s[3])throw a=0,n=0,et(s[2]);return r=a,o=n,Oe(a,n)}finally{f.__wbindgen_free(r,o,1)}}is_self_loop(){return f.edgestruct_is_self_loop(this.__wbg_ptr)!==0}source_resolved(e){ve(e,ft);let r=f.edgestruct_source_resolved(this.__wbg_ptr,e.__wbg_ptr);if(r[2])throw et(r[1]);return r[0]!==0}target_resolved(e){ve(e,ft);let r=f.edgestruct_target_resolved(this.__wbg_ptr,e.__wbg_ptr);if(r[2])throw et(r[1]);return r[0]!==0}toString(){let e,r;try{let o=f.edgestruct_toString(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}stringify_source(e,r){let o,a;try{ve(e,ft),ve(r,an);let i=f.edgestruct_stringify_source(this.__wbg_ptr,e.__wbg_ptr,r.__wbg_ptr);var n=i[0],s=i[1];if(i[3])throw n=0,s=0,et(i[2]);return o=n,a=s,Oe(n,s)}finally{f.__wbindgen_free(o,a,1)}}stringify_target(e,r){let o,a;try{ve(e,ft),ve(r,an);let i=f.edgestruct_stringify_target(this.__wbg_ptr,e.__wbg_ptr,r.__wbg_ptr);var n=i[0],s=i[1];if(i[3])throw n=0,s=0,et(i[2]);return o=n,a=s,Oe(n,s)}finally{f.__wbindgen_free(o,a,1)}}get_attribute_label(e,r){let o,a;try{ve(e,ft);let i=dt(r,f.__wbindgen_malloc),l=ue,u=f.edgestruct_get_attribute_label(this.__wbg_ptr,e.__wbg_ptr,i,l);var n=u[0],s=u[1];if(u[3])throw n=0,s=0,et(u[2]);return o=n,a=s,Oe(n,s)}finally{f.__wbindgen_free(o,a,1)}}matches_edge_filter(e,r){ve(e,ft);var o=Ar(r)?0:dt(r,f.__wbindgen_malloc),a=ue;let n=f.edgestruct_matches_edge_filter(this.__wbg_ptr,e.__wbg_ptr,o,a);if(n[2])throw et(n[1]);return n[0]!==0}round(e){ve(e,ft);let r=f.edgestruct_round(this.__wbg_ptr,e.__wbg_ptr);if(r[2])throw et(r[1]);return r[0]}explicit(e){ve(e,ft);let r=f.edgestruct_explicit(this.__wbg_ptr,e.__wbg_ptr);if(r[2])throw et(r[1]);return r[0]!==0}edge_data(e){ve(e,ft);let r=f.edgestruct_edge_data(this.__wbg_ptr,e.__wbg_ptr);if(r[2])throw et(r[1]);return cA.__wrap(r[0])}get edge_type(){let e,r;try{let o=f.edgestruct_edge_type(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}},A_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_flattraversaldata_free(t>>>0,1)),jl=class t{static __wrap(e){e=e>>>0;let r=Object.create(t.prototype);return r.__wbg_ptr=e,A_.register(r,r.__wbg_ptr,r),r}static __unwrap(e){return e instanceof t?e.__destroy_into_raw():0}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,A_.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_flattraversaldata_free(e,0)}get_attribute_label(e,r){let o,a;try{ve(e,ft);let i=dt(r,f.__wbindgen_malloc),l=ue,u=f.flattraversaldata_get_attribute_label(this.__wbg_ptr,e.__wbg_ptr,i,l);var n=u[0],s=u[1];if(u[3])throw n=0,s=0,et(u[2]);return o=n,a=s,Oe(n,s)}finally{f.__wbindgen_free(o,a,1)}}to_js_rendering_obj(e,r,o){ve(e,ft),ve(r,an);let a=dt(o,f.__wbindgen_malloc),n=ue,s=f.flattraversaldata_to_js_rendering_obj(this.__wbg_ptr,e.__wbg_ptr,r.__wbg_ptr,a,n);if(s[2])throw et(s[1]);return et(s[0])}get edge(){let e=f.__wbg_get_flattraversaldata_edge(this.__wbg_ptr);return So.__wrap(e)}set edge(e){ve(e,So);var r=e.__destroy_into_raw();f.__wbg_set_flattraversaldata_edge(this.__wbg_ptr,r)}get depth(){return f.__wbg_get_flattraversaldata_depth(this.__wbg_ptr)>>>0}set depth(e){f.__wbg_set_flattraversaldata_depth(this.__wbg_ptr,e)}get number_of_children(){return f.__wbg_get_flattraversaldata_number_of_children(this.__wbg_ptr)>>>0}set number_of_children(e){f.__wbg_set_flattraversaldata_number_of_children(this.__wbg_ptr,e)}get children(){let e=f.__wbg_get_flattraversaldata_children(this.__wbg_ptr);var r=Ud(e[0],e[1]).slice();return f.__wbindgen_free(e[0],e[1]*4,4),r}set children(e){let r=I_(e,f.__wbindgen_malloc),o=ue;f.__wbg_set_flattraversaldata_children(this.__wbg_ptr,r,o)}get has_cut_of_children(){return f.__wbg_get_flattraversaldata_has_cut_of_children(this.__wbg_ptr)!==0}set has_cut_of_children(e){f.__wbg_set_flattraversaldata_has_cut_of_children(this.__wbg_ptr,e)}},f_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_flattraversalresult_free(t>>>0,1)),zd=class t{static __wrap(e){e=e>>>0;let r=Object.create(t.prototype);return r.__wbg_ptr=e,f_.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,f_.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_flattraversalresult_free(e,0)}data_at_index(e){let r=f.flattraversalresult_data_at_index(this.__wbg_ptr,e);return r===0?void 0:jl.__wrap(r)}toString(){let e,r;try{let o=f.flattraversalresult_toString(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}children_at_index(e){let r=f.flattraversalresult_children_at_index(this.__wbg_ptr,e),o;return r[0]!==0&&(o=Ud(r[0],r[1]).slice(),f.__wbindgen_free(r[0],r[1]*4,4)),o}rendering_obj_at_index(e,r,o,a){ve(r,ft),ve(o,an);let n=dt(a,f.__wbindgen_malloc),s=ue,i=f.flattraversalresult_rendering_obj_at_index(this.__wbg_ptr,e,r.__wbg_ptr,o.__wbg_ptr,n,s);if(i[2])throw et(i[1]);return et(i[0])}sort(e,r){ve(e,ft),ve(r,Bo);let o=f.flattraversalresult_sort(this.__wbg_ptr,e.__wbg_ptr,r.__wbg_ptr);if(o[1])throw et(o[0])}is_empty(){return f.flattraversalresult_is_empty(this.__wbg_ptr)!==0}get data(){let e=f.__wbg_get_flattraversalresult_data(this.__wbg_ptr);var r=fr(e[0],e[1]).slice();return f.__wbindgen_free(e[0],e[1]*4,4),r}set data(e){let r=dt(e,f.__wbindgen_malloc),o=ue;f.__wbg_set_flattraversalresult_data(this.__wbg_ptr,r,o)}get node_count(){return f.__wbg_get_flattraversalresult_node_count(this.__wbg_ptr)>>>0}set node_count(e){f.__wbg_set_flattraversalresult_node_count(this.__wbg_ptr,e)}get max_depth(){return f.__wbg_get_flattraversaldata_number_of_children(this.__wbg_ptr)>>>0}set max_depth(e){f.__wbg_set_flattraversaldata_number_of_children(this.__wbg_ptr,e)}get hit_depth_limit(){return f.__wbg_get_flattraversalresult_hit_depth_limit(this.__wbg_ptr)!==0}set hit_depth_limit(e){f.__wbg_set_flattraversalresult_hit_depth_limit(this.__wbg_ptr,e)}get traversal_time(){let e=f.__wbg_get_flattraversalresult_traversal_time(this.__wbg_ptr);return BigInt.asUintN(64,e)}set traversal_time(e){f.__wbg_set_flattraversalresult_traversal_time(this.__wbg_ptr,e)}get entry_nodes(){let e=f.__wbg_get_flattraversalresult_entry_nodes(this.__wbg_ptr);var r=Ud(e[0],e[1]).slice();return f.__wbindgen_free(e[0],e[1]*4,4),r}set entry_nodes(e){let r=I_(e,f.__wbindgen_malloc),o=ue;f.__wbg_set_flattraversalresult_entry_nodes(this.__wbg_ptr,r,o)}},d_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_gcedgedata_free(t>>>0,1)),ct=class t{static __unwrap(e){return e instanceof t?e.__destroy_into_raw():0}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,d_.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_gcedgedata_free(e,0)}toString(){let e,r;try{let o=f.gcedgedata_toString(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}constructor(e,r,o,a){let n=Je(e,f.__wbindgen_malloc,f.__wbindgen_realloc),s=ue,i=Je(r,f.__wbindgen_malloc,f.__wbindgen_realloc),l=ue,u=Je(o,f.__wbindgen_malloc,f.__wbindgen_realloc),A=ue,c=Je(a,f.__wbindgen_malloc,f.__wbindgen_realloc),p=ue,m=f.gcedgedata_new(n,s,i,l,u,A,c,p);return this.__wbg_ptr=m>>>0,d_.register(this,this.__wbg_ptr,this),this}},c_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_gcnodedata_free(t>>>0,1)),vt=class t{static __unwrap(e){return e instanceof t?e.__destroy_into_raw():0}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,c_.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_gcnodedata_free(e,0)}toString(){let e,r;try{let o=f.gcnodedata_toString(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}constructor(e,r,o,a,n){let s=Je(e,f.__wbindgen_malloc,f.__wbindgen_realloc),i=ue,l=dt(r,f.__wbindgen_malloc),u=ue,A=f.gcnodedata_new(s,i,l,u,o,a,n);return this.__wbg_ptr=A>>>0,c_.register(this,this.__wbg_ptr,this),this}},p_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_groupededgelist_free(t>>>0,1)),pA=class t{static __wrap(e){e=e>>>0;let r=Object.create(t.prototype);return r.__wbg_ptr=e,p_.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,p_.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_groupededgelist_free(e,0)}toString(){let e,r;try{let o=f.groupededgelist_toString(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}get_sorted_edges(e,r,o){let a=Je(e,f.__wbindgen_malloc,f.__wbindgen_realloc),n=ue;ve(r,ft),ve(o,Bo);let s=f.groupededgelist_get_sorted_edges(this.__wbg_ptr,a,n,r.__wbg_ptr,o.__wbg_ptr);if(s[3])throw et(s[2]);let i;return s[0]!==0&&(i=fr(s[0],s[1]).slice(),f.__wbindgen_free(s[0],s[1]*4,4)),i}get_edges(e){let r=Je(e,f.__wbindgen_malloc,f.__wbindgen_realloc),o=ue,a=f.groupededgelist_get_edges(this.__wbg_ptr,r,o),n;return a[0]!==0&&(n=fr(a[0],a[1]).slice(),f.__wbindgen_free(a[0],a[1]*4,4)),n}},m_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_mermaidgraphdata_free(t>>>0,1)),Wd=class t{static __wrap(e){e=e>>>0;let r=Object.create(t.prototype);return r.__wbg_ptr=e,m_.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,m_.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_mermaidgraphdata_free(e,0)}toString(){let e,r;try{let o=f.mermaidgraphdata_toString(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}get mermaid(){let e,r;try{let o=f.__wbg_get_mermaidgraphdata_mermaid(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}set mermaid(e){let r=Je(e,f.__wbindgen_malloc,f.__wbindgen_realloc),o=ue;f.__wbg_set_mermaidgraphdata_mermaid(this.__wbg_ptr,r,o)}get traversal_time(){let e=f.__wbg_get_mermaidgraphdata_traversal_time(this.__wbg_ptr);return BigInt.asUintN(64,e)}set traversal_time(e){f.__wbg_set_mermaidgraphdata_traversal_time(this.__wbg_ptr,e)}get total_time(){let e=f.__wbg_get_mermaidgraphdata_total_time(this.__wbg_ptr);return BigInt.asUintN(64,e)}set total_time(e){f.__wbg_set_mermaidgraphdata_total_time(this.__wbg_ptr,e)}},__=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_mermaidgraphoptions_free(t>>>0,1)),Hn=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,__.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_mermaidgraphoptions_free(e,0)}toString(){let e,r;try{let o=f.mermaidgraphoptions_toString(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}constructor(e,r,o,a,n,s,i,l,u){var A=Ar(e)?0:Je(e,f.__wbindgen_malloc,f.__wbindgen_realloc),c=ue;let p=Je(r,f.__wbindgen_malloc,f.__wbindgen_realloc),m=ue,h=Je(o,f.__wbindgen_malloc,f.__wbindgen_realloc),y=ue,I=Je(a,f.__wbindgen_malloc,f.__wbindgen_realloc),F=ue,R=dt(s,f.__wbindgen_malloc),B=ue,j=0;Ar(i)||(ve(i,Bo),j=i.__destroy_into_raw());let E=f.mermaidgraphoptions_new(A,c,p,m,h,y,I,F,n,R,B,j,Ar(l)?0:Gn(l),u);return this.__wbg_ptr=E>>>0,__.register(this,this.__wbg_ptr,this),this}},Pd=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_nodedata_free(t>>>0,1)),Vn=class t{static __wrap(e){e=e>>>0;let r=Object.create(t.prototype);return r.__wbg_ptr=e,Pd.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Pd.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_nodedata_free(e,0)}get path(){let e,r;try{let o=f.__wbg_get_nodedata_path(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}set path(e){let r=Je(e,f.__wbindgen_malloc,f.__wbindgen_realloc),o=ue;f.__wbg_set_nodedata_path(this.__wbg_ptr,r,o)}get aliases(){let e=f.__wbg_get_nodedata_aliases(this.__wbg_ptr);var r=fr(e[0],e[1]).slice();return f.__wbindgen_free(e[0],e[1]*4,4),r}set aliases(e){let r=dt(e,f.__wbindgen_malloc),o=ue;f.__wbg_set_nodedata_aliases(this.__wbg_ptr,r,o)}get resolved(){return f.__wbg_get_nodedata_resolved(this.__wbg_ptr)!==0}set resolved(e){f.__wbg_set_nodedata_resolved(this.__wbg_ptr,e)}get ignore_in_edges(){return f.__wbg_get_nodedata_ignore_in_edges(this.__wbg_ptr)!==0}set ignore_in_edges(e){f.__wbg_set_nodedata_ignore_in_edges(this.__wbg_ptr,e)}get ignore_out_edges(){return f.__wbg_get_nodedata_ignore_out_edges(this.__wbg_ptr)!==0}set ignore_out_edges(e){f.__wbg_set_nodedata_ignore_out_edges(this.__wbg_ptr,e)}toString(){let e,r;try{let o=f.nodedata_toString(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}constructor(e,r,o,a,n){let s=Je(e,f.__wbindgen_malloc,f.__wbindgen_realloc),i=ue,l=dt(r,f.__wbindgen_malloc),u=ue,A=f.nodedata_new(s,i,l,u,o,a,n);return this.__wbg_ptr=A>>>0,Pd.register(this,this.__wbg_ptr,this),this}},h_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_nodestringifyoptions_free(t>>>0,1)),an=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,h_.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_nodestringifyoptions_free(e,0)}stringify_node(e){let r,o;try{ve(e,Vn);let a=f.nodestringifyoptions_stringify_node(this.__wbg_ptr,e.__wbg_ptr);return r=a[0],o=a[1],Oe(a[0],a[1])}finally{f.__wbindgen_free(r,o,1)}}constructor(e,r,o,a){var n=Ar(a)?0:Je(a,f.__wbindgen_malloc,f.__wbindgen_realloc),s=ue;let i=f.nodestringifyoptions_new(e,r,o,n,s);return this.__wbg_ptr=i>>>0,h_.register(this,this.__wbg_ptr,this),this}},g_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_notegraph_free(t>>>0,1)),ft=class t{static __wrap(e){e=e>>>0;let r=Object.create(t.prototype);return r.__wbg_ptr=e,g_.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,g_.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_notegraph_free(e,0)}edge_types(){let e=f.notegraph_edge_types(this.__wbg_ptr);var r=fr(e[0],e[1]).slice();return f.__wbindgen_free(e[0],e[1]*4,4),r}build_graph(e,r,o){let a=dt(e,f.__wbindgen_malloc),n=ue,s=dt(r,f.__wbindgen_malloc),i=ue,l=dt(o,f.__wbindgen_malloc),u=ue,A=f.notegraph_build_graph(this.__wbg_ptr,a,n,s,i,l,u);if(A[1])throw et(A[0])}apply_update(e){ve(e,zr);var r=e.__destroy_into_raw();let o=f.notegraph_apply_update(this.__wbg_ptr,r);if(o[1])throw et(o[0])}iterate_edges(e){f.notegraph_iterate_edges(this.__wbg_ptr,e)}iterate_nodes(e){f.notegraph_iterate_nodes(this.__wbg_ptr,e)}notify_update(){f.notegraph_notify_update(this.__wbg_ptr)}is_node_resolved(e){let r=Je(e,f.__wbindgen_malloc,f.__wbindgen_realloc),o=ue;return f.notegraph_is_node_resolved(this.__wbg_ptr,r,o)!==0}get_incoming_edges(e){let r=Je(e,f.__wbindgen_malloc,f.__wbindgen_realloc),o=ue,a=f.notegraph_get_incoming_edges(this.__wbg_ptr,r,o);return gl.__wrap(a)}get_outgoing_edges(e){let r=Je(e,f.__wbindgen_malloc,f.__wbindgen_realloc),o=ue,a=f.notegraph_get_outgoing_edges(this.__wbg_ptr,r,o);return gl.__wrap(a)}set_update_callback(e){f.notegraph_set_update_callback(this.__wbg_ptr,e)}get_filtered_outgoing_edges(e,r){let o=Je(e,f.__wbindgen_malloc,f.__wbindgen_realloc),a=ue;var n=Ar(r)?0:dt(r,f.__wbindgen_malloc),s=ue;let i=f.notegraph_get_filtered_outgoing_edges(this.__wbg_ptr,o,a,n,s);return gl.__wrap(i)}get_filtered_grouped_outgoing_edges(e,r){let o=Je(e,f.__wbindgen_malloc,f.__wbindgen_realloc),a=ue;var n=Ar(r)?0:dt(r,f.__wbindgen_malloc),s=ue;let i=f.notegraph_get_filtered_grouped_outgoing_edges(this.__wbg_ptr,o,a,n,s);return pA.__wrap(i)}log(){f.notegraph_log(this.__wbg_ptr)}static new(){let e=f.notegraph_new();return t.__wrap(e)}get_node(e){let r=Je(e,f.__wbindgen_malloc,f.__wbindgen_realloc),o=ue,a=f.notegraph_get_node(this.__wbg_ptr,r,o);return a===0?void 0:Vn.__wrap(a)}has_node(e){let r=Je(e,f.__wbindgen_malloc,f.__wbindgen_realloc),o=ue;return f.notegraph_has_node(this.__wbg_ptr,r,o)!==0}rec_traverse(e){ve(e,Nt);var r=e.__destroy_into_raw();let o=f.notegraph_rec_traverse(this.__wbg_ptr,r);if(o[2])throw et(o[1]);return Yd.__wrap(o[0])}rec_traverse_and_process(e,r){ve(e,Nt);var o=e.__destroy_into_raw();ve(r,co);var a=r.__destroy_into_raw();let n=f.notegraph_rec_traverse_and_process(this.__wbg_ptr,o,a);if(n[2])throw et(n[1]);return zd.__wrap(n[0])}generate_mermaid_graph(e,r){ve(e,Nt);var o=e.__destroy_into_raw();ve(r,Hn);var a=r.__destroy_into_raw();let n=f.notegraph_generate_mermaid_graph(this.__wbg_ptr,o,a);if(n[2])throw et(n[1]);return Wd.__wrap(n[0])}},Rd=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_notegrapherror_free(t>>>0,1)),$a=class t{static __wrap(e){e=e>>>0;let r=Object.create(t.prototype);return r.__wbg_ptr=e,Rd.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Rd.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_notegrapherror_free(e,0)}toString(){let e,r;try{let o=f.notegrapherror_toString(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}constructor(e){let r=Je(e,f.__wbindgen_malloc,f.__wbindgen_realloc),o=ue,a=f.notegrapherror_new(r,o);return this.__wbg_ptr=a>>>0,Rd.register(this,this.__wbg_ptr,this),this}get message(){let e,r;try{let o=f.notegrapherror_message(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}},j_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_path_free(t>>>0,1)),Kd=class t{static __wrap(e){e=e>>>0;let r=Object.create(t.prototype);return r.__wbg_ptr=e,j_.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,j_.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_path_free(e,0)}get edges(){let e=f.__wbg_get_path_edges(this.__wbg_ptr);var r=fr(e[0],e[1]).slice();return f.__wbindgen_free(e[0],e[1]*4,4),r}set edges(e){let r=dt(e,f.__wbindgen_malloc),o=ue;f.__wbg_set_path_edges(this.__wbg_ptr,r,o)}get reverse_edges(){let e=f.path_reverse_edges(this.__wbg_ptr);var r=fr(e[0],e[1]).slice();return f.__wbindgen_free(e[0],e[1]*4,4),r}toString(){let e,r;try{let o=f.path_toString(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}get_first_target(e){ve(e,ft);let r=f.path_get_first_target(this.__wbg_ptr,e.__wbg_ptr);if(r[3])throw et(r[2]);let o;return r[0]!==0&&(o=Oe(r[0],r[1]).slice(),f.__wbindgen_free(r[0],r[1]*1,1)),o}equals(e){return ve(e,t),f.path_equals(this.__wbg_ptr,e.__wbg_ptr)!==0}length(){return f.path_length(this.__wbg_ptr)>>>0}truncate(e){let r=f.path_truncate(this.__wbg_ptr,e);return t.__wrap(r)}},x_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_pathlist_free(t>>>0,1)),Zd=class t{static __wrap(e){e=e>>>0;let r=Object.create(t.prototype);return r.__wbg_ptr=e,x_.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,x_.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_pathlist_free(e,0)}toString(){let e,r;try{let o=f.pathlist_toString(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}select(e){let r=Je(e,f.__wbindgen_malloc,f.__wbindgen_realloc),o=ue,a=f.pathlist_select(this.__wbg_ptr,r,o);return t.__wrap(a)}process(e,r){ve(e,ft);let o=f.pathlist_process(this.__wbg_ptr,e.__wbg_ptr,r);if(o[3])throw et(o[2]);var a=fr(o[0],o[1]).slice();return f.__wbindgen_free(o[0],o[1]*4,4),a}to_paths(){let e=f.pathlist_to_paths(this.__wbg_ptr);var r=fr(e[0],e[1]).slice();return f.__wbindgen_free(e[0],e[1]*4,4),r}max_depth(){return f.pathlist_max_depth(this.__wbg_ptr)>>>0}},PD=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_removeedgegraphupdate_free(t>>>0,1));var v_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_removenotegraphupdate_free(t>>>0,1)),mA=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,v_.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_removenotegraphupdate_free(e,0)}add_to_batch(e){let r=this.__destroy_into_raw();ve(e,zr),f.removenotegraphupdate_add_to_batch(r,e.__wbg_ptr)}constructor(e){let r=Je(e,f.__wbindgen_malloc,f.__wbindgen_realloc),o=ue,a=f.removenotegraphupdate_new(r,o);return this.__wbg_ptr=a>>>0,v_.register(this,this.__wbg_ptr,this),this}},k_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_renamenotegraphupdate_free(t>>>0,1)),_A=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,k_.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_renamenotegraphupdate_free(e,0)}add_to_batch(e){let r=this.__destroy_into_raw();ve(e,zr),f.renamenotegraphupdate_add_to_batch(r,e.__wbg_ptr)}constructor(e,r){let o=Je(e,f.__wbindgen_malloc,f.__wbindgen_realloc),a=ue,n=Je(r,f.__wbindgen_malloc,f.__wbindgen_realloc),s=ue,i=f.renamenotegraphupdate_new(o,a,n,s);return this.__wbg_ptr=i>>>0,k_.register(this,this.__wbg_ptr,this),this}},b_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_transitivegraphrule_free(t>>>0,1)),Un=class t{static __unwrap(e){return e instanceof t?e.__destroy_into_raw():0}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,b_.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_transitivegraphrule_free(e,0)}toString(){let e,r;try{let o=f.transitivegraphrule_toString(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}create_example_graph(){let e=f.transitivegraphrule_create_example_graph(this.__wbg_ptr);if(e[2])throw et(e[1]);return ft.__wrap(e[0])}constructor(e,r,o,a,n,s){let i=Je(e,f.__wbindgen_malloc,f.__wbindgen_realloc),l=ue,u=dt(r,f.__wbindgen_malloc),A=ue,c=Je(o,f.__wbindgen_malloc,f.__wbindgen_realloc),p=ue,m=f.transitivegraphrule_new(i,l,u,A,c,p,a,n,s);return this.__wbg_ptr=m>>>0,b_.register(this,this.__wbg_ptr,this),this}},RD=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_transitiverulesgraphupdate_free(t>>>0,1));var Ld=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_traversaldata_free(t>>>0,1)),hA=class t{static __wrap(e){e=e>>>0;let r=Object.create(t.prototype);return r.__wbg_ptr=e,Ld.register(r,r.__wbg_ptr,r),r}static __unwrap(e){return e instanceof t?e.__destroy_into_raw():0}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ld.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_traversaldata_free(e,0)}toString(){let e,r;try{let o=f.traversaldata_toString(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}rec_sort_children(e,r){ve(e,ft),ve(r,Bo);let o=f.traversaldata_rec_sort_children(this.__wbg_ptr,e.__wbg_ptr,r.__wbg_ptr);if(o[1])throw et(o[0])}constructor(e,r,o,a,n){ve(e,So);var s=e.__destroy_into_raw();let i=dt(a,f.__wbindgen_malloc),l=ue,u=f.traversaldata_new(s,r,o,i,l,n);return this.__wbg_ptr=u>>>0,Ld.register(this,this.__wbg_ptr,this),this}get edge(){let e=f.__wbg_get_flattraversaldata_edge(this.__wbg_ptr);return So.__wrap(e)}set edge(e){ve(e,So);var r=e.__destroy_into_raw();f.__wbg_set_flattraversaldata_edge(this.__wbg_ptr,r)}get depth(){return f.__wbg_get_flattraversaldata_depth(this.__wbg_ptr)>>>0}set depth(e){f.__wbg_set_flattraversaldata_depth(this.__wbg_ptr,e)}get number_of_children(){return f.__wbg_get_flattraversaldata_number_of_children(this.__wbg_ptr)>>>0}set number_of_children(e){f.__wbg_set_flattraversaldata_number_of_children(this.__wbg_ptr,e)}get children(){let e=f.__wbg_get_traversaldata_children(this.__wbg_ptr);var r=fr(e[0],e[1]).slice();return f.__wbindgen_free(e[0],e[1]*4,4),r}set children(e){let r=dt(e,f.__wbindgen_malloc),o=ue;f.__wbg_set_traversaldata_children(this.__wbg_ptr,r,o)}get has_cut_of_children(){return f.__wbg_get_flattraversaldata_has_cut_of_children(this.__wbg_ptr)!==0}set has_cut_of_children(e){f.__wbg_set_flattraversaldata_has_cut_of_children(this.__wbg_ptr,e)}},w_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_traversaloptions_free(t>>>0,1)),Nt=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,w_.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_traversaloptions_free(e,0)}toString(){let e,r;try{let o=f.traversaloptions_toString(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}constructor(e,r,o,a,n,s){let i=dt(e,f.__wbindgen_malloc),l=ue;var u=Ar(r)?0:dt(r,f.__wbindgen_malloc),A=ue,c=Ar(s)?0:dt(s,f.__wbindgen_malloc),p=ue;let m=f.traversaloptions_new(i,l,u,A,o,a,n,c,p);return this.__wbg_ptr=m>>>0,w_.register(this,this.__wbg_ptr,this),this}get entry_nodes(){let e=f.__wbg_get_traversaloptions_entry_nodes(this.__wbg_ptr);var r=fr(e[0],e[1]).slice();return f.__wbindgen_free(e[0],e[1]*4,4),r}set entry_nodes(e){let r=dt(e,f.__wbindgen_malloc),o=ue;f.__wbg_set_traversaloptions_entry_nodes(this.__wbg_ptr,r,o)}get edge_types(){let e=f.__wbg_get_traversaloptions_edge_types(this.__wbg_ptr),r;return e[0]!==0&&(r=fr(e[0],e[1]).slice(),f.__wbindgen_free(e[0],e[1]*4,4)),r}set edge_types(e){var r=Ar(e)?0:dt(e,f.__wbindgen_malloc),o=ue;f.__wbg_set_traversaloptions_edge_types(this.__wbg_ptr,r,o)}get max_depth(){return f.__wbg_get_traversaloptions_max_depth(this.__wbg_ptr)>>>0}set max_depth(e){f.__wbg_set_traversaloptions_max_depth(this.__wbg_ptr,e)}get max_traversal_count(){return f.__wbg_get_traversaloptions_max_traversal_count(this.__wbg_ptr)>>>0}set max_traversal_count(e){f.__wbg_set_traversaloptions_max_traversal_count(this.__wbg_ptr,e)}get separate_edges(){return f.__wbg_get_traversaloptions_separate_edges(this.__wbg_ptr)!==0}set separate_edges(e){f.__wbg_set_traversaloptions_separate_edges(this.__wbg_ptr,e)}get dataview_from_paths(){let e=f.__wbg_get_traversaloptions_dataview_from_paths(this.__wbg_ptr),r;return e[0]!==0&&(r=fr(e[0],e[1]).slice(),f.__wbindgen_free(e[0],e[1]*4,4)),r}set dataview_from_paths(e){var r=Ar(e)?0:dt(e,f.__wbindgen_malloc),o=ue;f.__wbg_set_traversaloptions_dataview_from_paths(this.__wbg_ptr,r,o)}},Gd=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_traversalpostprocessoptions_free(t>>>0,1)),co=class t{static __wrap(e){e=e>>>0;let r=Object.create(t.prototype);return r.__wbg_ptr=e,Gd.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Gd.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_traversalpostprocessoptions_free(e,0)}get sorter(){let e=f.__wbg_get_traversalpostprocessoptions_sorter(this.__wbg_ptr);return e===0?void 0:Bo.__wrap(e)}set sorter(e){let r=0;Ar(e)||(ve(e,Bo),r=e.__destroy_into_raw()),f.__wbg_set_traversalpostprocessoptions_sorter(this.__wbg_ptr,r)}get flatten(){return f.__wbg_get_traversalpostprocessoptions_flatten(this.__wbg_ptr)!==0}set flatten(e){f.__wbg_set_traversalpostprocessoptions_flatten(this.__wbg_ptr,e)}static without_sorter(e){let r=f.traversalpostprocessoptions_without_sorter(e);return t.__wrap(r)}toString(){let e,r;try{let o=f.traversalpostprocessoptions_toString(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}constructor(e,r){ve(e,Bo);let o=f.traversalpostprocessoptions_new(e.__wbg_ptr,r);return this.__wbg_ptr=o>>>0,Gd.register(this,this.__wbg_ptr,this),this}},Hd=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>f.__wbg_traversalresult_free(t>>>0,1)),Yd=class t{static __wrap(e){e=e>>>0;let r=Object.create(t.prototype);return r.__wbg_ptr=e,Hd.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Hd.unregister(this),e}free(){let e=this.__destroy_into_raw();f.__wbg_traversalresult_free(e,0)}toString(){let e,r;try{let o=f.traversalresult_toString(this.__wbg_ptr);return e=o[0],r=o[1],Oe(o[0],o[1])}finally{f.__wbindgen_free(e,r,1)}}constructor(e,r){let o=dt(e,f.__wbindgen_malloc),a=ue,n=f.traversalresult_new(o,a,r);return this.__wbg_ptr=n>>>0,Hd.register(this,this.__wbg_ptr,this),this}is_empty(){return f.flattraversalresult_is_empty(this.__wbg_ptr)!==0}to_paths(){let e=f.traversalresult_to_paths(this.__wbg_ptr);return Zd.__wrap(e)}get data(){let e=f.__wbg_get_traversalresult_data(this.__wbg_ptr);var r=fr(e[0],e[1]).slice();return f.__wbindgen_free(e[0],e[1]*4,4),r}set data(e){let r=dt(e,f.__wbindgen_malloc),o=ue;f.__wbg_set_traversalresult_data(this.__wbg_ptr,r,o)}get node_count(){return f.__wbg_get_traversalresult_node_count(this.__wbg_ptr)>>>0}set node_count(e){f.__wbg_set_traversalresult_node_count(this.__wbg_ptr,e)}get max_depth(){return f.__wbg_get_traversalresult_max_depth(this.__wbg_ptr)>>>0}set max_depth(e){f.__wbg_set_traversalresult_max_depth(this.__wbg_ptr,e)}get hit_depth_limit(){return f.__wbg_get_traversalresult_hit_depth_limit(this.__wbg_ptr)!==0}set hit_depth_limit(e){f.__wbg_set_traversalresult_hit_depth_limit(this.__wbg_ptr,e)}get traversal_time(){let e=f.__wbg_get_flattraversalresult_traversal_time(this.__wbg_ptr);return BigInt.asUintN(64,e)}set traversal_time(e){f.__wbg_set_flattraversalresult_traversal_time(this.__wbg_ptr,e)}};async function lk(t,e){if(typeof Response=="function"&&t instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(t,e)}catch(o){if(t.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",o);else throw o}let r=await t.arrayBuffer();return await WebAssembly.instantiate(r,e)}else{let r=await WebAssembly.instantiate(t,e);return r instanceof WebAssembly.Instance?{instance:r,module:t}:r}}function uk(){let t={};return t.wbg={},t.wbg.__wbg_call_672a4d21634d4a24=function(){return qd(function(e,r){return e.call(r)},arguments)},t.wbg.__wbg_call_7cccdd69e0791ae2=function(){return qd(function(e,r,o){return e.call(r,o)},arguments)},t.wbg.__wbg_debug_0e292a0dbaeda7f1=function(e,r,o){e.debug(Oe(r,o))},t.wbg.__wbg_edgedata_new=function(e){return cA.__wrap(e)},t.wbg.__wbg_edgestruct_new=function(e){return So.__wrap(e)},t.wbg.__wbg_edgestruct_unwrap=function(e){return So.__unwrap(e)},t.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,r){let o,a;try{o=e,a=r,console.error(Oe(e,r))}finally{f.__wbindgen_free(o,a,1)}},t.wbg.__wbg_flattraversaldata_new=function(e){return jl.__wrap(e)},t.wbg.__wbg_flattraversaldata_unwrap=function(e){return jl.__unwrap(e)},t.wbg.__wbg_gcedgedata_unwrap=function(e){return ct.__unwrap(e)},t.wbg.__wbg_gcnodedata_unwrap=function(e){return vt.__unwrap(e)},t.wbg.__wbg_info_398bf5d211409814=function(e,r,o){e.info(Oe(r,o))},t.wbg.__wbg_new_405e22f390576ce2=function(){return new Object},t.wbg.__wbg_new_8a6f238a6ece86ea=function(){return new Error},t.wbg.__wbg_newnoargs_105ed471475aaf50=function(e,r){return new Function(Oe(e,r))},t.wbg.__wbg_nodedata_new=function(e){return Vn.__wrap(e)},t.wbg.__wbg_notegrapherror_new=function(e){return $a.__wrap(e)},t.wbg.__wbg_now_2c95c9de01293173=function(e){return e.now()},t.wbg.__wbg_path_new=function(e){return Kd.__wrap(e)},t.wbg.__wbg_performance_7a3ffd0b17f663ad=function(e){return e.performance},t.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return qd(function(e,r,o){return Reflect.set(e,r,o)},arguments)},t.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,r){let o=r.stack,a=Je(o,f.__wbindgen_malloc,f.__wbindgen_realloc),n=ue;on().setInt32(e+4,n,!0),on().setInt32(e+0,a,!0)},t.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07=function(){let e=typeof global>"u"?null:global;return Ar(e)?0:Gn(e)},t.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0=function(){let e=typeof globalThis>"u"?null:globalThis;return Ar(e)?0:Gn(e)},t.wbg.__wbg_static_accessor_LOGGER_849a70838e9094f0=function(){return H},t.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819=function(){let e=typeof self>"u"?null:self;return Ar(e)?0:Gn(e)},t.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40=function(){let e=typeof window>"u"?null:window;return Ar(e)?0:Gn(e)},t.wbg.__wbg_transitivegraphrule_unwrap=function(e){return Un.__unwrap(e)},t.wbg.__wbg_traversaldata_new=function(e){return hA.__wrap(e)},t.wbg.__wbg_traversaldata_unwrap=function(e){return hA.__unwrap(e)},t.wbg.__wbg_warn_4a2380c6903b0443=function(e,r,o){e.warn(Oe(r,o))},t.wbg.__wbindgen_debug_string=function(e,r){let o=Vd(r),a=Je(o,f.__wbindgen_malloc,f.__wbindgen_realloc),n=ue;on().setInt32(e+4,n,!0),on().setInt32(e+0,a,!0)},t.wbg.__wbindgen_init_externref_table=function(){let e=f.__wbindgen_export_2,r=e.grow(4);e.set(0,void 0),e.set(r+0,void 0),e.set(r+1,null),e.set(r+2,!0),e.set(r+3,!1)},t.wbg.__wbindgen_is_undefined=function(e){return e===void 0},t.wbg.__wbindgen_string_get=function(e,r){let o=r,a=typeof o=="string"?o:void 0;var n=Ar(a)?0:Je(a,f.__wbindgen_malloc,f.__wbindgen_realloc),s=ue;on().setInt32(e+4,s,!0),on().setInt32(e+0,n,!0)},t.wbg.__wbindgen_string_new=function(e,r){return Oe(e,r)},t.wbg.__wbindgen_throw=function(e,r){throw new Error(Oe(e,r))},t}function Ak(t,e){return f=t.exports,D_.__wbindgen_wasm_module=e,Ln=null,hl=null,_l=null,f.__wbindgen_start(),f}async function D_(t){if(f!==void 0)return f;typeof t<"u"&&(Object.getPrototypeOf(t)===Object.prototype?{module_or_path:t}=t:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof t>"u"&&(t=new URL("breadcrumbs_graph_wasm_bg.wasm",fk.url));let e=uk();(typeof t=="string"||typeof Request=="function"&&t instanceof Request||typeof URL=="function"&&t instanceof URL)&&(t=fetch(t));let{instance:r,module:o}=await lk(await t,e);return Ak(r,o)}var F_=D_;function hr(t,e){let r=t?.explicit_edge_sources?.dendron_note??{enabled:!1};return new an(e.ext,e.folder,e.alias,r.enabled&&r.display_trimmed?r.delimiter:void 0)}var xl=["field","explicit","source","implied_kind","round"];function Jd(t,e){let r={...t};for(let o in e){let a=t[o],n=e[o];typeof a=="object"&&typeof n=="object"&&!Array.isArray(a)&&!Array.isArray(n)?r[o]=Jd(a,n):a===void 0&&(r[o]=n)}return r}var B_=(t,e)=>{let r=t;for(let o of e){if(r[o]===void 0)return;r=r[o]}return r};var S_=t=>Object.fromEntries(Object.entries(t).filter(([e,r])=>r!=null));function gA(t,e=","){return!t||t===""?[]:t.split(e).map(r=>r.trim())}function jA(t,e='"',r=", "){return t.map(o=>e+o+e).join(r)}function Xd(t,e){return t.startsWith(e)?t:e+t}function C_(t,e){return t.endsWith(e)?t:t+e}function Qd(t,e){return t.endsWith(e)?t.slice(0,-e.length):t}var dk=/{{(.*?)}}/g;function T_(t,e){let r=t.slice();return r.match(dk)?.forEach(o=>{let a=o.slice(2,-2),n=B_(e,a.split("."));if(n!==void 0){let s=String(n);r=r.replace(o,s)}}),r}function O_(t,e=""){return"```"+e+` +`+t+"\n```"}function M_(t,e="md"){return C_(t,"."+e)}function ec(t){return t.replace(/\.[^.]+$/,"")}function ck(t){return t.split(".").pop()}function N_(t){return t.split("/").pop()}function pk(t){return t.split("/").slice(0,-1).join("/")}function mk(t){return ec(t.split("/").pop())}function q_(t){return t.replace(/\/+/g,"/").replace(/^\//,"")}function _k(t,e,r){return M_(q_(t+"/"+e),r)}function hk(t,e){let r=t.slice();return e?.folder||(r=N_(r)),e?.ext||(r=ec(r)),r}var mt={ensure_ext:M_,extname:ck,basename:mk,dirname:pk,drop_ext:ec,drop_folder:N_,build:_k,normalize:q_,show:hk};var gk=(t,e,r)=>{let o=t.fileManager.getNewFileParent(r,e);return mt.build(o.path,mt.basename(e),"md")},jk=(t,e,r)=>{switch(r.link_kind){case"none":return e;case"wiki":{let o=mt.drop_ext(t);return e===t?`[[${o}]]`:`[[${o}|${e}]]`}case"markdown":return e===t?`[${t}](${t})`:`[${e}](${t})`}},nn={ify:jk,resolve_to_absolute_path:gk};var oi={fields:[],indent:"\\t",link_kind:"wiki",show_attributes:[],field_group_labels:[],edge_sort_id:{order:1,field:"basename"},show_node_options:{ext:!1,alias:!0,folder:!1}};function vl(t,e,r,o){if(!e)return"";let a=e.data,n=Array.from(e.entry_nodes).map(s=>a[s]);return P_(t,a,n,r,o)}function P_(t,e,r,o,a){let n="",s=a.indent.replace(/\\t/g," ");return r.forEach(i=>{let{edge:l,children:u,depth:A}=i,c=l.stringify_target(t,hr(o,a.show_node_options)),p=nn.ify(l.target_path(t),c,{link_kind:a.link_kind}),m=l.get_attribute_label(t,a.show_attributes);n+=s.repeat(A-1)+(m?`- ${p} (${m}) +`:`- ${p} +`);let h=Array.from(u).map(y=>e[y]);n+=P_(t,e,h,o,a)}),n}function xA(t,e,r,o){let a=new Nt([e],o.fields,o.max_depth??100,o.max_count??1e3,!1,void 0),n=new co(po(o.edge_sort_id.field,o.edge_sort_id.order===-1),!1),s=t.rec_traverse_and_process(a,n);return vl(t,s,r,o)}var R_={field:"basename",order:1},kl={ext:!1,folder:!1,alias:!1},vA={is_dirty:!1,edge_fields:[{label:"up"},{label:"down"},{label:"same"},{label:"next"},{label:"prev"}],edge_field_groups:[{label:"ups",fields:["up"]},{label:"downs",fields:["down"]},{label:"sames",fields:["same"]},{label:"nexts",fields:["next"]},{label:"prevs",fields:["prev"]}],implied_relations:{transitive:[{name:"",rounds:1,chain:[{field:"up"}],close_field:"down",close_reversed:!0},{name:"",rounds:1,chain:[{field:"down"}],close_field:"up",close_reversed:!0},{name:"",rounds:1,chain:[{field:"same"}],close_field:"same",close_reversed:!0},{name:"",rounds:1,chain:[{field:"next"}],close_field:"prev",close_reversed:!0},{name:"",rounds:1,chain:[{field:"prev"}],close_field:"next",close_reversed:!0}]},explicit_edge_sources:{typed_link:{},list_note:{default_neighbour_field:""},tag_note:{default_field:"up"},regex_note:{default_field:"up"},dendron_note:{enabled:!1,delimiter:".",default_field:"up",display_trimmed:!1},johnny_decimal_note:{enabled:!1,delimiter:".",default_field:"up"},date_note:{enabled:!1,date_format:"yyyy-MM-dd",default_field:"next",stretch_to_existing:!1}},views:{page:{all:{sticky:!1,readable_line_width:!0},trail:{enabled:!0,format:"grid",selection:"all",default_depth:999,no_path_message:"",show_controls:!0,merge_fields:!1,field_group_labels:["ups"],show_node_options:{...kl}},prev_next:{enabled:!0,show_node_options:{...kl},field_group_labels:{prev:["prevs"],next:["nexts"]}}},side:{matrix:{collapse:!1,edge_sort_id:{...R_},show_node_options:{...kl},show_attributes:["source","implied_kind","round"],field_group_labels:["ups","downs","sames","nexts","prevs"],lock_view:!1,lock_path:""},tree:{collapse:!1,show_attributes:[],merge_fields:!1,lock_view:!1,lock_path:"",field_group_labels:["downs"],edge_sort_id:{...R_},show_node_options:{...kl}}},codeblocks:{show_node_options:{...kl}}},commands:{rebuild_graph:{notify:!0,trigger:{note_save:!1,layout_change:!1}},list_index:{default_options:oi},freeze_implied_edges:{default_options:{destination:"frontmatter",included_fields:[],use_alias:!0}},thread:{default_options:{destination:"frontmatter",target_path_template:"{{source.folder}}/{{attr.field}} {{source.basename}}"}}},suggestors:{edge_field:{enabled:!1,trigger:"."}},debug:{level:"INFO"}};var ea={matrix:"bc-matrix-view",tree:"bc-tree-view"};var qv=require("obsidian");var L_=["typed_link","tag_note","list_note","dendron_note","johnny_decimal_note","dataview_note","date_note","folder_note","regex_note"],kA=["basename","path","field","explicit"];var G_={"BC-tag-note-tag":{property_type:"text"},"BC-tag-note-field":{property_type:"text"},"BC-tag-note-exact":{property_type:"checkbox"},"BC-regex-note-regex":{property_type:"text"},"BC-regex-note-flags":{property_type:"text"},"BC-regex-note-field":{property_type:"text"},"BC-folder-note-field":{property_type:"text"},"BC-folder-note-recurse":{property_type:"checkbox"},"BC-list-note-field":{property_type:"text"},"BC-list-note-neighbour-field":{property_type:"text"},"BC-list-note-exclude-index":{property_type:"checkbox"},"BC-dendron-note-field":{property_type:"text"},"BC-johnny-decimal-note-field":{property_type:"text"},"BC-dataview-note-query":{property_type:"text"},"BC-dataview-note-field":{property_type:"text"},"BC-ignore-in-edges":{property_type:"checkbox"},"BC-ignore-out-edges":{property_type:"checkbox"}},Ve={"tag-note-tag":"BC-tag-note-tag","tag-note-field":"BC-tag-note-field","tag-note-exact":"BC-tag-note-exact","regex-note-regex":"BC-regex-note-regex","regex-note-flags":"BC-regex-note-flags","regex-note-field":"BC-regex-note-field","folder-note-field":"BC-folder-note-field","folder-note-recurse":"BC-folder-note-recurse","list-note-field":"BC-list-note-field","list-note-neighbour-field":"BC-list-note-neighbour-field","list-note-exclude-index":"BC-list-note-exclude-index","dendron-note-field":"BC-dendron-note-field","johnny-decimal-note-field":"BC-johnny-decimal-note-field","dataview-note-query":"BC-dataview-note-query","dataview-note-field":"BC-dataview-note-field","ignore-in-edges":"BC-ignore-in-edges","ignore-out-edges":"BC-ignore-out-edges"};var Tr=class{constructor(){this.start=performance.now()}elapsed(){return performance.now()-this.start}elapsed_str(e=0){return this.elapsed().toFixed(e)}reset(){this.start=performance.now()}elapsedMessage(e,r=!1){let o=`${e} took ${this.elapsed_str(2)}ms`;return r&&this.reset(),o}};var pi=nk(xg());function kw(t){return new Promise(e=>{(0,pi.isPluginEnabled)(t.app)?((0,pi.getAPI)(t.app)?.index.initialized&&(H.debug("dataview > already initialized"),e()),t.registerEvent(t.app.metadataCache.on("dataview:index-ready",()=>{H.debug("dataview > ready"),e()}))):(H.debug("dataview > not enabled"),e())})}var Ba={get_api:pi.getAPI,is_enabled:pi.isPluginEnabled,await_if_enabled:kw};var Xt=t=>({ok:!0,data:t}),ht=t=>({ok:!1,error:t}),it=t=>ht(t);function vg(t,e,r){if(!e)return ht(void 0);let o=e[Ve["dataview-note-query"]];if(o){if(typeof o!="string")return it({path:r,code:"invalid_field_value",message:"dataview-note-query is not a string"})}else return ht(void 0);let a=e[Ve["dataview-note-field"]];if(a){if(typeof a!="string")return it({path:r,code:"invalid_field_value",message:"dataview-note-field is not a string"});if(!t.settings.edge_fields.find(n=>n.label===a))return it({path:r,code:"invalid_field_value",message:`dataview-note-field is not a valid field: '${a}'`})}else return ht(void 0);return Xt({field:a,query:o})}var kg=(t,e)=>{let r={nodes:[],edges:[],errors:[]};return e.obsidian?.forEach(({file:o,cache:a})=>{if(!a)return;let n=vg(t,a?.frontmatter,o.path);if(n.ok){r.errors.push({code:"missing_other_plugin",path:o.path,message:"dataview-notes are not implemented without Dataview enabled"});return}else{n.error&&r.errors.push(n.error);return}}),e.dataview?.forEach(o=>{let a=o.file.path,n=vg(t,o,a);if(!n.ok){n.error&&r.errors.push(n.error);return}let{field:s,query:i}=n.data,l=[];try{l=Ba.get_api().pages(i,a).values}catch(u){return H.warn("dataview-note > DV API error:",u instanceof Error?u.message:u),r.errors.push({code:"invalid_field_value",path:a,message:`dataview-note-query is not a valid dataview query: '${i}'`})}l.forEach(u=>{r.edges.push(new ct(o.file.path,u.file.path,s,"dataview_note"))})}),r};var Sa=class extends Error{},UA=class extends Sa{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},zA=class extends Sa{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},WA=class extends Sa{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},No=class extends Sa{},mi=class extends Sa{constructor(e){super(`Invalid unit ${e}`)}},Ct=class extends Sa{},qo=class extends Sa{constructor(){super("Zone is an abstract class")}};var ee="numeric",Po="short",Yr="long",fn={year:ee,month:ee,day:ee},Tl={year:ee,month:Po,day:ee},Nc={year:ee,month:Po,day:ee,weekday:Po},Ol={year:ee,month:Yr,day:ee},Ml={year:ee,month:Yr,day:ee,weekday:Yr},Nl={hour:ee,minute:ee},ql={hour:ee,minute:ee,second:ee},Pl={hour:ee,minute:ee,second:ee,timeZoneName:Po},Rl={hour:ee,minute:ee,second:ee,timeZoneName:Yr},Ll={hour:ee,minute:ee,hourCycle:"h23"},Gl={hour:ee,minute:ee,second:ee,hourCycle:"h23"},Hl={hour:ee,minute:ee,second:ee,hourCycle:"h23",timeZoneName:Po},Vl={hour:ee,minute:ee,second:ee,hourCycle:"h23",timeZoneName:Yr},Ul={year:ee,month:ee,day:ee,hour:ee,minute:ee},zl={year:ee,month:ee,day:ee,hour:ee,minute:ee,second:ee},Wl={year:ee,month:Po,day:ee,hour:ee,minute:ee},Kl={year:ee,month:Po,day:ee,hour:ee,minute:ee,second:ee},qc={year:ee,month:Po,day:ee,weekday:Po,hour:ee,minute:ee},Zl={year:ee,month:Yr,day:ee,hour:ee,minute:ee,timeZoneName:Po},Yl={year:ee,month:Yr,day:ee,hour:ee,minute:ee,second:ee,timeZoneName:Po},Jl={year:ee,month:Yr,day:ee,weekday:Yr,hour:ee,minute:ee,timeZoneName:Yr},Xl={year:ee,month:Yr,day:ee,weekday:Yr,hour:ee,minute:ee,second:ee,timeZoneName:Yr};var Mr=class{get type(){throw new qo}get name(){throw new qo}get ianaName(){return this.name}get isUniversal(){throw new qo}offsetName(e,r){throw new qo}formatOffset(e,r){throw new qo}offset(e){throw new qo}equals(e){throw new qo}get isValid(){throw new qo}};var Pc=null,dn=class t extends Mr{static get instance(){return Pc===null&&(Pc=new t),Pc}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:o}){return ZA(e,r,o)}formatOffset(e,r){return cn(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}};var Lc=new Map;function bw(t){let e=Lc.get(t);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Lc.set(t,e)),e}var ww={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function yw(t,e){let r=t.format(e).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,a,n,s,i,l,u,A]=o;return[s,a,n,i,l,u,A]}function Ew(t,e){let r=t.formatToParts(e),o=[];for(let a=0;a=0?h:1e3+h,(p-m)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}};var bg={};function Iw(t,e={}){let r=JSON.stringify([t,e]),o=bg[r];return o||(o=new Intl.ListFormat(t,e),bg[r]=o),o}var Gc=new Map;function Hc(t,e={}){let r=JSON.stringify([t,e]),o=Gc.get(r);return o===void 0&&(o=new Intl.DateTimeFormat(t,e),Gc.set(r,o)),o}var Vc=new Map;function $w(t,e={}){let r=JSON.stringify([t,e]),o=Vc.get(r);return o===void 0&&(o=new Intl.NumberFormat(t,e),Vc.set(r,o)),o}var Uc=new Map;function Dw(t,e={}){let{base:r,...o}=e,a=JSON.stringify([t,o]),n=Uc.get(a);return n===void 0&&(n=new Intl.RelativeTimeFormat(t,e),Uc.set(a,n)),n}var Ql=null;function Fw(){return Ql||(Ql=new Intl.DateTimeFormat().resolvedOptions().locale,Ql)}var zc=new Map;function wg(t){let e=zc.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),zc.set(t,e)),e}var Wc=new Map;function Bw(t){let e=Wc.get(t);if(!e){let r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in e||(e={...yg,...e}),Wc.set(t,e)}return e}function Sw(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let r=t.indexOf("-u-");if(r===-1)return[t];{let o,a;try{o=Hc(t).resolvedOptions(),a=t}catch{let l=t.substring(0,r);o=Hc(l).resolvedOptions(),a=l}let{numberingSystem:n,calendar:s}=o;return[a,n,s]}}function Cw(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function Tw(t){let e=[];for(let r=1;r<=12;r++){let o=Ye.utc(2009,r,1);e.push(t(o))}return e}function Ow(t){let e=[];for(let r=1;r<=7;r++){let o=Ye.utc(2016,11,13+r);e.push(t(o))}return e}function YA(t,e,r,o){let a=t.listingMode();return a==="error"?null:a==="en"?r(e):o(e)}function Mw(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||wg(t.locale).numberingSystem==="latn"}var Kc=class{constructor(e,r,o){this.padTo=o.padTo||0,this.floor=o.floor||!1;let{padTo:a,floor:n,...s}=o;if(!r||Object.keys(s).length>0){let i={useGrouping:!1,...o};o.padTo>0&&(i.minimumIntegerDigits=o.padTo),this.inf=$w(e,i)}}format(e){if(this.inf){let r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{let r=this.floor?Math.floor(e):hi(e,3);return yt(r,this.padTo)}}},Zc=class{constructor(e,r,o){this.opts=o,this.originalZone=void 0;let a;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let s=-1*(e.offset/60),i=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&gr.create(i).valid?(a=i,this.dt=e):(a="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,a=e.zone.name):(a="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let n={...this.opts};n.timeZone=n.timeZone||a,this.dtf=Hc(r,n)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){let o=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:o}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},Yc=class{constructor(e,r,o){this.opts={style:"long",...o},!r&&JA()&&(this.rtf=Dw(e,o))}format(e,r){return this.rtf?this.rtf.format(e,r):Eg(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}},yg={firstDay:1,minimalDays:4,weekend:[6,7]},rt=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,o,a,n=!1){let s=e||tt.defaultLocale,i=s||(n?"en-US":Fw()),l=r||tt.defaultNumberingSystem,u=o||tt.defaultOutputCalendar,A=eu(a)||tt.defaultWeekSettings;return new t(i,l,u,A,s)}static resetCache(){Ql=null,Gc.clear(),Vc.clear(),Uc.clear(),zc.clear(),Wc.clear()}static fromObject({locale:e,numberingSystem:r,outputCalendar:o,weekSettings:a}={}){return t.create(e,r,o,a)}constructor(e,r,o,a,n){let[s,i,l]=Sw(e);this.locale=s,this.numberingSystem=r||i||null,this.outputCalendar=o||l||null,this.weekSettings=a,this.intl=Cw(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Mw(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,eu(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return YA(this,e,Jc,()=>{let o=this.intl==="ja"||this.intl.startsWith("ja-");r&=!o;let a=r?{month:e,day:"numeric"}:{month:e},n=r?"format":"standalone";if(!this.monthsCache[n][e]){let s=o?i=>this.dtFormatter(i,a).format():i=>this.extract(i,a,"month");this.monthsCache[n][e]=Tw(s)}return this.monthsCache[n][e]})}weekdays(e,r=!1){return YA(this,e,Xc,()=>{let o=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},a=r?"format":"standalone";return this.weekdaysCache[a][e]||(this.weekdaysCache[a][e]=Ow(n=>this.extract(n,o,"weekday"))),this.weekdaysCache[a][e]})}meridiems(){return YA(this,void 0,()=>Qc,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ye.utc(2016,11,13,9),Ye.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return YA(this,e,ep,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[Ye.utc(-40,1,1),Ye.utc(2017,1,1)].map(o=>this.extract(o,r,"era"))),this.eraCache[e]})}extract(e,r,o){let a=this.dtFormatter(e,r),n=a.formatToParts(),s=n.find(i=>i.type.toLowerCase()===o);return s?s.value:null}numberFormatter(e={}){return new Kc(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new Zc(e,this.intl,r)}relFormatter(e={}){return new Yc(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Iw(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||wg(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:XA()?Bw(this.locale):yg}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}};var rp=null,Qt=class t extends Mr{static get utcInstance(){return rp===null&&(rp=new t(0)),rp}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(Xn(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${cn(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${cn(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return cn(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}};var gi=class extends Mr{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function Ro(t,e){let r;if(he(t)||t===null)return e;if(t instanceof Mr)return t;if(Ig(t)){let o=t.toLowerCase();return o==="default"?e:o==="local"||o==="system"?dn.instance:o==="utc"||o==="gmt"?Qt.utcInstance:Qt.parseSpecifier(o)||gr.create(t)}else return Lo(t)?Qt.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new gi(t)}var ap={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},$g={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Nw=ap.hanidec.replace(/[\[|\]]/g,"").split("");function Dg(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r=n&&o<=s&&(e+=o-n)}}return parseInt(e,10)}else return e}var op=new Map;function Fg(){op.clear()}function go({numberingSystem:t},e=""){let r=t||"latn",o=op.get(r);o===void 0&&(o=new Map,op.set(r,o));let a=o.get(e);return a===void 0&&(a=new RegExp(`${ap[r]}${e}`),o.set(e,a)),a}var Bg=()=>Date.now(),Sg="system",Cg=null,Tg=null,Og=null,Mg=60,Ng,qg=null,tt=class{static get now(){return Bg}static set now(e){Bg=e}static set defaultZone(e){Sg=e}static get defaultZone(){return Ro(Sg,dn.instance)}static get defaultLocale(){return Cg}static set defaultLocale(e){Cg=e}static get defaultNumberingSystem(){return Tg}static set defaultNumberingSystem(e){Tg=e}static get defaultOutputCalendar(){return Og}static set defaultOutputCalendar(e){Og=e}static get defaultWeekSettings(){return qg}static set defaultWeekSettings(e){qg=eu(e)}static get twoDigitCutoffYear(){return Mg}static set twoDigitCutoffYear(e){Mg=e%100}static get throwOnInvalid(){return Ng}static set throwOnInvalid(e){Ng=e}static resetCaches(){rt.resetCache(),gr.resetCache(),Ye.resetCache(),Fg()}};var er=class{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};var Pg=[0,31,59,90,120,151,181,212,243,273,304,334],Rg=[0,31,60,91,121,152,182,213,244,274,305,335];function jo(t,e){return new er("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function QA(t,e,r){let o=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);let a=o.getUTCDay();return a===0?7:a}function Lg(t,e,r){return r+(es(t)?Rg:Pg)[e-1]}function Gg(t,e){let r=es(t)?Rg:Pg,o=r.findIndex(n=>nQn(o,e,r)?(u=o+1,l=1):u=o,{weekYear:u,weekNumber:l,weekday:i,...ou(t)}}function np(t,e=4,r=1){let{weekYear:o,weekNumber:a,weekday:n}=t,s=ef(QA(o,1,e),r),i=pn(o),l=a*7+n-s-7+e,u;l<1?(u=o-1,l+=pn(u)):l>i?(u=o+1,l-=pn(o)):u=o;let{month:A,day:c}=Gg(u,l);return{year:u,month:A,day:c,...ou(t)}}function tf(t){let{year:e,month:r,day:o}=t,a=Lg(e,r,o);return{year:e,ordinal:a,...ou(t)}}function sp(t){let{year:e,ordinal:r}=t,{month:o,day:a}=Gg(e,r);return{year:e,month:o,day:a,...ou(t)}}function ip(t,e){if(!he(t.localWeekday)||!he(t.localWeekNumber)||!he(t.localWeekYear)){if(!he(t.weekday)||!he(t.weekNumber)||!he(t.weekYear))throw new No("Cannot mix locale-based week fields with ISO-based week fields");return he(t.localWeekday)||(t.weekday=t.localWeekday),he(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),he(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Hg(t,e=4,r=1){let o=ru(t.weekYear),a=Jr(t.weekNumber,1,Qn(t.weekYear,e,r)),n=Jr(t.weekday,1,7);return o?a?n?!1:jo("weekday",t.weekday):jo("week",t.weekNumber):jo("weekYear",t.weekYear)}function Vg(t){let e=ru(t.year),r=Jr(t.ordinal,1,pn(t.year));return e?r?!1:jo("ordinal",t.ordinal):jo("year",t.year)}function lp(t){let e=ru(t.year),r=Jr(t.month,1,12),o=Jr(t.day,1,ji(t.year,t.month));return e?r?o?!1:jo("day",t.day):jo("month",t.month):jo("year",t.year)}function up(t){let{hour:e,minute:r,second:o,millisecond:a}=t,n=Jr(e,0,23)||e===24&&r===0&&o===0&&a===0,s=Jr(r,0,59),i=Jr(o,0,59),l=Jr(a,0,999);return n?s?i?l?!1:jo("millisecond",a):jo("second",o):jo("minute",r):jo("hour",e)}function he(t){return typeof t>"u"}function Lo(t){return typeof t=="number"}function ru(t){return typeof t=="number"&&t%1===0}function Ig(t){return typeof t=="string"}function zg(t){return Object.prototype.toString.call(t)==="[object Date]"}function JA(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function XA(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Wg(t){return Array.isArray(t)?t:[t]}function Ap(t,e,r){if(t.length!==0)return t.reduce((o,a)=>{let n=[e(a),a];return o&&r(o[0],n[0])===o[0]?o:n},null)[1]}function Kg(t,e){return e.reduce((r,o)=>(r[o]=t[o],r),{})}function mn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function eu(t){if(t==null)return null;if(typeof t!="object")throw new Ct("Week settings must be an object");if(!Jr(t.firstDay,1,7)||!Jr(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Jr(e,1,7)))throw new Ct("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Jr(t,e,r){return ru(t)&&t>=e&&t<=r}function qw(t,e){return t-e*Math.floor(t/e)}function yt(t,e=2){let r=t<0,o;return r?o="-"+(""+-t).padStart(e,"0"):o=(""+t).padStart(e,"0"),o}function Ca(t){if(!(he(t)||t===null||t===""))return parseInt(t,10)}function _n(t){if(!(he(t)||t===null||t===""))return parseFloat(t)}function au(t){if(!(he(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function hi(t,e,r="round"){let o=10**e;switch(r){case"expand":return t>0?Math.ceil(t*o)/o:Math.floor(t*o)/o;case"trunc":return Math.trunc(t*o)/o;case"round":return Math.round(t*o)/o;case"floor":return Math.floor(t*o)/o;case"ceil":return Math.ceil(t*o)/o;default:throw new RangeError(`Value rounding ${r} is out of range`)}}function es(t){return t%4===0&&(t%100!==0||t%400===0)}function pn(t){return es(t)?366:365}function ji(t,e){let r=qw(e-1,12)+1,o=t+(e-r)/12;return r===2?es(o)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function _i(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function Ug(t,e,r){return-ef(QA(t,1,e),r)+e-1}function Qn(t,e=4,r=1){let o=Ug(t,e,r),a=Ug(t+1,e,r);return(pn(t)-o+a)/7}function nu(t){return t>99?t:t>tt.twoDigitCutoffYear?1900+t:2e3+t}function ZA(t,e,r,o=null){let a=new Date(t),n={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(n.timeZone=o);let s={timeZoneName:e,...n},i=new Intl.DateTimeFormat(r,s).formatToParts(a).find(l=>l.type.toLowerCase()==="timezonename");return i?i.value:null}function Xn(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);let o=parseInt(e,10)||0,a=r<0||Object.is(r,-0)?-o:o;return r*60+a}function fp(t){let e=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(e))throw new Ct(`Invalid unit value ${t}`);return e}function xi(t,e){let r={};for(let o in t)if(mn(t,o)){let a=t[o];if(a==null)continue;r[e(o)]=fp(a)}return r}function cn(t,e){let r=Math.trunc(Math.abs(t/60)),o=Math.trunc(Math.abs(t%60)),a=t>=0?"+":"-";switch(e){case"short":return`${a}${yt(r,2)}:${yt(o,2)}`;case"narrow":return`${a}${r}${o>0?`:${o}`:""}`;case"techie":return`${a}${yt(r,2)}${yt(o,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function ou(t){return Kg(t,["hour","minute","second","millisecond"])}var Pw=["January","February","March","April","May","June","July","August","September","October","November","December"],dp=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Rw=["J","F","M","A","M","J","J","A","S","O","N","D"];function Jc(t){switch(t){case"narrow":return[...Rw];case"short":return[...dp];case"long":return[...Pw];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var cp=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],pp=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Lw=["M","T","W","T","F","S","S"];function Xc(t){switch(t){case"narrow":return[...Lw];case"short":return[...pp];case"long":return[...cp];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Qc=["AM","PM"],Gw=["Before Christ","Anno Domini"],Hw=["BC","AD"],Vw=["B","A"];function ep(t){switch(t){case"narrow":return[...Vw];case"short":return[...Hw];case"long":return[...Gw];default:return null}}function Zg(t){return Qc[t.hour<12?0:1]}function Yg(t,e){return Xc(e)[t.weekday-1]}function Jg(t,e){return Jc(e)[t.month-1]}function Xg(t,e){return ep(e)[t.year<0?0:1]}function Eg(t,e,r="always",o=!1){let a={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},n=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&n){let c=t==="days";switch(e){case 1:return c?"tomorrow":`next ${a[t][0]}`;case-1:return c?"yesterday":`last ${a[t][0]}`;case 0:return c?"today":`this ${a[t][0]}`;default:}}let s=Object.is(e,-0)||e<0,i=Math.abs(e),l=i===1,u=a[t],A=o?l?u[1]:u[2]||u[1]:l?a[t][0]:t;return s?`${i} ${A} ago`:`in ${i} ${A}`}function Qg(t,e){let r="";for(let o of t)o.literal?r+=o.val:r+=e(o.val);return r}var Uw={D:fn,DD:Tl,DDD:Ol,DDDD:Ml,t:Nl,tt:ql,ttt:Pl,tttt:Rl,T:Ll,TT:Gl,TTT:Hl,TTTT:Vl,f:Ul,ff:Wl,fff:Zl,ffff:Jl,F:zl,FF:Kl,FFF:Yl,FFFF:Xl},tr=class t{static create(e,r={}){return new t(e,r)}static parseFormat(e){let r=null,o="",a=!1,n=[];for(let s=0;s0||a)&&n.push({literal:a||/^\s+$/.test(o),val:o===""?"'":o}),r=null,o="",a=!a):a||i===r?o+=i:(o.length>0&&n.push({literal:/^\s+$/.test(o),val:o}),o=i,r=i)}return o.length>0&&n.push({literal:a||/^\s+$/.test(o),val:o}),n}static macroTokenToFormatOpts(e){return Uw[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0,o=void 0){if(this.opts.forceSimple)return yt(e,r);let a={...this.opts};return r>0&&(a.padTo=r),o&&(a.signDisplay=o),this.loc.numberFormatter(a).format(e)}formatDateTimeFromString(e,r){let o=this.loc.listingMode()==="en",a=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",n=(m,h)=>this.loc.extract(e,m,h),s=m=>e.isOffsetFixed&&e.offset===0&&m.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,m.format):"",i=()=>o?Zg(e):n({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(m,h)=>o?Jg(e,m):n(h?{month:m}:{month:m,day:"numeric"},"month"),u=(m,h)=>o?Yg(e,m):n(h?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),A=m=>{let h=t.macroTokenToFormatOpts(m);return h?this.formatWithSystemDefault(e,h):m},c=m=>o?Xg(e,m):n({era:m},"era"),p=m=>{switch(m){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return i();case"d":return a?n({day:"numeric"},"day"):this.num(e.day);case"dd":return a?n({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return a?n({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return a?n({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return a?n({month:"numeric"},"month"):this.num(e.month);case"MM":return a?n({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return a?n({year:"numeric"},"year"):this.num(e.year);case"yy":return a?n({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return a?n({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return a?n({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return A(m)}};return Qg(t.parseFormat(r),p)}formatDurationFromString(e,r){let o=this.opts.signMode==="negativeLargestOnly"?-1:1,a=A=>{switch(A[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},n=(A,c)=>p=>{let m=a(p);if(m){let h=c.isNegativeDuration&&m!==c.largestUnit?o:1,y;return this.opts.signMode==="negativeLargestOnly"&&m!==c.largestUnit?y="never":this.opts.signMode==="all"?y="always":y="auto",this.num(A.get(m)*h,p.length,y)}else return p},s=t.parseFormat(r),i=s.reduce((A,{literal:c,val:p})=>c?A:A.concat(p),[]),l=e.shiftTo(...i.map(a).filter(A=>A)),u={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return Qg(s,n(l,u))}};var tj=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ki(...t){let e=t.reduce((r,o)=>r+o.source,"");return RegExp(`^${e}$`)}function bi(...t){return e=>t.reduce(([r,o,a],n)=>{let[s,i,l]=n(e,a);return[{...r,...s},i||o,l]},[{},null,1]).slice(0,2)}function wi(t,...e){if(t==null)return[null,null];for(let[r,o]of e){let a=r.exec(t);if(a)return o(a)}return[null,null]}function rj(...t){return(e,r)=>{let o={},a;for(a=0;am!==void 0&&(h||m&&A)?-m:m;return[{years:p(_n(r)),months:p(_n(o)),weeks:p(_n(a)),days:p(_n(n)),hours:p(_n(s)),minutes:p(_n(i)),seconds:p(_n(l),l==="-0"),milliseconds:p(au(u),c)}]}var ay={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function hp(t,e,r,o,a,n,s){let i={year:e.length===2?nu(Ca(e)):Ca(e),month:dp.indexOf(r)+1,day:Ca(o),hour:Ca(a),minute:Ca(n)};return s&&(i.second=Ca(s)),t&&(i.weekday=t.length>3?cp.indexOf(t)+1:pp.indexOf(t)+1),i}var ny=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function sy(t){let[,e,r,o,a,n,s,i,l,u,A,c]=t,p=hp(e,a,o,r,n,s,i),m;return l?m=ay[l]:u?m=0:m=Xn(A,c),[p,new Qt(m)]}function iy(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var ly=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,uy=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Ay=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function ej(t){let[,e,r,o,a,n,s,i]=t;return[hp(e,a,o,r,n,s,i),Qt.utcInstance]}function fy(t){let[,e,r,o,a,n,s,i]=t;return[hp(e,i,r,o,a,n,s),Qt.utcInstance]}var dy=ki(Ww,_p),cy=ki(Kw,_p),py=ki(Zw,_p),my=ki(aj),sj=bi(ey,yi,su,iu),_y=bi(Yw,yi,su,iu),hy=bi(Jw,yi,su,iu),gy=bi(yi,su,iu);function ij(t){return wi(t,[dy,sj],[cy,_y],[py,hy],[my,gy])}function lj(t){return wi(iy(t),[ny,sy])}function uj(t){return wi(t,[ly,ej],[uy,ej],[Ay,fy])}function Aj(t){return wi(t,[ry,oy])}var jy=bi(yi);function fj(t){return wi(t,[ty,jy])}var xy=ki(Xw,Qw),vy=ki(nj),ky=bi(yi,su,iu);function dj(t){return wi(t,[xy,sj],[vy,ky])}var cj="Invalid Duration",_j={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},by={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},..._j},xo=146097/400,Ei=146097/4800,wy={years:{quarters:4,months:12,weeks:xo/7,days:xo,hours:xo*24,minutes:xo*24*60,seconds:xo*24*60*60,milliseconds:xo*24*60*60*1e3},quarters:{months:3,weeks:xo/28,days:xo/4,hours:xo*24/4,minutes:xo*24*60/4,seconds:xo*24*60*60/4,milliseconds:xo*24*60*60*1e3/4},months:{weeks:Ei/7,days:Ei,hours:Ei*24,minutes:Ei*24*60,seconds:Ei*24*60*60,milliseconds:Ei*24*60*60*1e3},..._j},ts=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],yy=ts.slice(0).reverse();function Ta(t,e,r=!1){let o={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Et(o)}function hj(t,e){let r=e.milliseconds??0;for(let o of yy.slice(1))e[o]&&(r+=e[o]*t[o].milliseconds);return r}function pj(t,e){let r=hj(t,e)<0?-1:1;ts.reduceRight((o,a)=>{if(he(e[a]))return o;if(o){let n=e[o]*r,s=t[a][o],i=Math.floor(n/s);e[a]+=i*r,e[o]-=i*s*r}return a},null),ts.reduce((o,a)=>{if(he(e[a]))return o;if(o){let n=e[o]%1;e[o]-=n,e[a]+=n*t[o][a]}return a},null)}function mj(t){let e={};for(let[r,o]of Object.entries(t))o!==0&&(e[r]=o);return e}var Et=class t{constructor(e){let r=e.conversionAccuracy==="longterm"||!1,o=r?wy:by;e.matrix&&(o=e.matrix),this.values=e.values,this.loc=e.loc||rt.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=o,this.isLuxonDuration=!0}static fromMillis(e,r){return t.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new Ct(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:xi(e,t.normalizeUnit),loc:rt.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(Lo(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new Ct(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){let[o]=Aj(e);return o?t.fromObject(o,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){let[o]=fj(e);return o?t.fromObject(o,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new Ct("need to specify a reason the Duration is invalid");let o=e instanceof er?e:new er(e,r);if(tt.throwOnInvalid)throw new WA(o);return new t({invalid:o})}static normalizeUnit(e){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new mi(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){let o={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?tr.create(this.loc,o).formatDurationFromString(this,e):cj}toHuman(e={}){if(!this.isValid)return cj;let r=e.showZeros!==!1,o=ts.map(a=>{let n=this.values[a];return he(n)||n===0&&!r?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:a.slice(0,-1)}).format(n)}).filter(a=>a);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(o)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=hi(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Ye.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?hj(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e),o={};for(let a of ts)(mn(r.values,a)||mn(this.values,a))&&(o[a]=r.get(a)+this.get(a));return Ta(this,{values:o},!0)}minus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;let r={};for(let o of Object.keys(this.values))r[o]=fp(e(this.values[o],o));return Ta(this,{values:r},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let r={...this.values,...xi(e,t.normalizeUnit)};return Ta(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:o,matrix:a}={}){let s={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:a,conversionAccuracy:o};return Ta(this,s)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return pj(this.matrix,e),Ta(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=mj(this.normalize().shiftToAll().toObject());return Ta(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>t.normalizeUnit(s));let r={},o={},a=this.toObject(),n;for(let s of ts)if(e.indexOf(s)>=0){n=s;let i=0;for(let u in o)i+=this.matrix[u][s]*o[u],o[u]=0;Lo(a[s])&&(i+=a[s]);let l=Math.trunc(i);r[s]=l,o[s]=(i*1e3-l*1e3)/1e3}else Lo(a[s])&&(o[s]=a[s]);for(let s in o)o[s]!==0&&(r[n]+=s===n?o[s]:o[s]/this.matrix[n][s]);return pj(this.matrix,r),Ta(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return Ta(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=mj(this.values);return Ta(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(o,a){return o===void 0||o===0?a===void 0||a===0:o===a}for(let o of ts)if(!r(this.values[o],e.values[o]))return!1;return!0}};var Ii="Invalid Interval";function Ey(t,e){return!t||!t.isValid?Oa.invalid("missing or invalid start"):!e||!e.isValid?Oa.invalid("missing or invalid end"):ee:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?t.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];let r=e.map($i).filter(s=>this.contains(s)).sort((s,i)=>s.toMillis()-i.toMillis()),o=[],{s:a}=this,n=0;for(;a+this.e?this.e:s;o.push(t.fromDateTimes(a,i)),a=i,n+=1}return o}splitBy(e){let r=Et.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:o}=this,a=1,n,s=[];for(;ol*a));n=+i>+this.e?this.e:i,s.push(t.fromDateTimes(o,n)),o=n,a+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let r=this.s>e.s?this.s:e.s,o=this.e=o?null:t.fromDateTimes(r,o)}union(e){if(!this.isValid)return this;let r=this.se.e?this.e:e.e;return t.fromDateTimes(r,o)}static merge(e){let[r,o]=e.sort((a,n)=>a.s-n.s).reduce(([a,n],s)=>n?n.overlaps(s)||n.abutsStart(s)?[a,n.union(s)]:[a.concat([n]),s]:[a,s],[[],null]);return o&&r.push(o),r}static xor(e){let r=null,o=0,a=[],n=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...n),i=s.sort((l,u)=>l.time-u.time);for(let l of i)o+=l.type==="s"?1:-1,o===1?r=l.time:(r&&+r!=+l.time&&a.push(t.fromDateTimes(r,l.time)),r=null);return t.merge(a)}difference(...e){return t.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Ii}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=fn,r={}){return this.isValid?tr.create(this.s.loc.clone(r),e).formatInterval(this):Ii}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Ii}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ii}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Ii}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:Ii}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):Et.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}};var Ma=class{static hasDST(e=tt.defaultZone){let r=Ye.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return gr.isValidZone(e)}static normalizeZone(e){return Ro(e,tt.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||rt.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||rt.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||rt.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:o=null,locObj:a=null,outputCalendar:n="gregory"}={}){return(a||rt.create(r,o,n)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:o=null,locObj:a=null,outputCalendar:n="gregory"}={}){return(a||rt.create(r,o,n)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:o=null,locObj:a=null}={}){return(a||rt.create(r,o,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:o=null,locObj:a=null}={}){return(a||rt.create(r,o,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return rt.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return rt.create(r,null,"gregory").eras(e)}static features(){return{relative:JA(),localeWeek:XA()}}};function gj(t,e){let r=a=>a.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=r(e)-r(t);return Math.floor(Et.fromMillis(o).as("days"))}function Iy(t,e,r){let o=[["years",(l,u)=>u.year-l.year],["quarters",(l,u)=>u.quarter-l.quarter+(u.year-l.year)*4],["months",(l,u)=>u.month-l.month+(u.year-l.year)*12],["weeks",(l,u)=>{let A=gj(l,u);return(A-A%7)/7}],["days",gj]],a={},n=t,s,i;for(let[l,u]of o)r.indexOf(l)>=0&&(s=l,a[l]=u(t,e),i=n.plus(a),i>e?(a[l]--,t=n.plus(a),t>e&&(i=t,a[l]--,t=n.plus(a))):t=i);return[t,a,i,s]}function jj(t,e,r,o){let[a,n,s,i]=Iy(t,e,r),l=e-a,u=r.filter(c=>["hours","minutes","seconds","milliseconds"].indexOf(c)>=0);u.length===0&&(s0?Et.fromMillis(l,o).shiftTo(...u).plus(A):A}var $y="missing Intl.DateTimeFormat.formatToParts support";function st(t,e=r=>r){return{regex:t,deser:([r])=>e(Dg(r))}}var Dy="\xA0",kj=`[ ${Dy}]`,bj=new RegExp(kj,"g");function Fy(t){return t.replace(/\./g,"\\.?").replace(bj,kj)}function xj(t){return t.replace(/\./g,"").replace(bj," ").toLowerCase()}function Go(t,e){return t===null?null:{regex:RegExp(t.map(Fy).join("|")),deser:([r])=>t.findIndex(o=>xj(r)===xj(o))+e}}function vj(t,e){return{regex:t,deser:([,r,o])=>Xn(r,o),groups:e}}function rf(t){return{regex:t,deser:([e])=>e}}function By(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Sy(t,e){let r=go(e),o=go(e,"{2}"),a=go(e,"{3}"),n=go(e,"{4}"),s=go(e,"{6}"),i=go(e,"{1,2}"),l=go(e,"{1,3}"),u=go(e,"{1,6}"),A=go(e,"{1,9}"),c=go(e,"{2,4}"),p=go(e,"{4,6}"),m=I=>({regex:RegExp(By(I.val)),deser:([F])=>F,literal:!0}),y=(I=>{if(t.literal)return m(I);switch(I.val){case"G":return Go(e.eras("short"),0);case"GG":return Go(e.eras("long"),0);case"y":return st(u);case"yy":return st(c,nu);case"yyyy":return st(n);case"yyyyy":return st(p);case"yyyyyy":return st(s);case"M":return st(i);case"MM":return st(o);case"MMM":return Go(e.months("short",!0),1);case"MMMM":return Go(e.months("long",!0),1);case"L":return st(i);case"LL":return st(o);case"LLL":return Go(e.months("short",!1),1);case"LLLL":return Go(e.months("long",!1),1);case"d":return st(i);case"dd":return st(o);case"o":return st(l);case"ooo":return st(a);case"HH":return st(o);case"H":return st(i);case"hh":return st(o);case"h":return st(i);case"mm":return st(o);case"m":return st(i);case"q":return st(i);case"qq":return st(o);case"s":return st(i);case"ss":return st(o);case"S":return st(l);case"SSS":return st(a);case"u":return rf(A);case"uu":return rf(i);case"uuu":return st(r);case"a":return Go(e.meridiems(),0);case"kkkk":return st(n);case"kk":return st(c,nu);case"W":return st(i);case"WW":return st(o);case"E":case"c":return st(r);case"EEE":return Go(e.weekdays("short",!1),1);case"EEEE":return Go(e.weekdays("long",!1),1);case"ccc":return Go(e.weekdays("short",!0),1);case"cccc":return Go(e.weekdays("long",!0),1);case"Z":case"ZZ":return vj(new RegExp(`([+-]${i.source})(?::(${o.source}))?`),2);case"ZZZ":return vj(new RegExp(`([+-]${i.source})(${o.source})?`),2);case"z":return rf(/[a-z_+-/]{1,256}?/i);case" ":return rf(/[^\S\n\r]/);default:return m(I)}})(t)||{invalidReason:$y};return y.token=t,y}var Cy={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Ty(t,e,r){let{type:o,value:a}=t;if(o==="literal"){let l=/^\s+$/.test(a);return{literal:!l,val:l?" ":a}}let n=e[o],s=o;o==="hour"&&(e.hour12!=null?s=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?s="hour12":s="hour24":s=r.hour12?"hour12":"hour24");let i=Cy[s];if(typeof i=="object"&&(i=i[n]),i)return{literal:!1,val:i}}function Oy(t){return[`^${t.map(r=>r.regex).reduce((r,o)=>`${r}(${o.source})`,"")}$`,t]}function My(t,e,r){let o=t.match(e);if(o){let a={},n=1;for(let s in r)if(mn(r,s)){let i=r[s],l=i.groups?i.groups+1:1;!i.literal&&i.token&&(a[i.token.val[0]]=i.deser(o.slice(n,n+l))),n+=l}return[o,a]}else return[o,{}]}function Ny(t){let e=n=>{switch(n){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,o;return he(t.z)||(r=gr.create(t.z)),he(t.Z)||(r||(r=new Qt(t.Z)),o=t.Z),he(t.q)||(t.M=(t.q-1)*3+1),he(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),he(t.u)||(t.S=au(t.u)),[Object.keys(t).reduce((n,s)=>{let i=e(s);return i&&(n[i]=t[s]),n},{}),r,o]}var gp=null;function qy(){return gp||(gp=Ye.fromMillis(1555555555555)),gp}function Py(t,e){if(t.literal)return t;let r=tr.macroTokenToFormatOpts(t.val),o=vp(r,e);return o==null||o.includes(void 0)?t:o}function jp(t,e){return Array.prototype.concat(...t.map(r=>Py(r,e)))}var lu=class{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=jp(tr.parseFormat(r),e),this.units=this.tokens.map(o=>Sy(o,e)),this.disqualifyingUnit=this.units.find(o=>o.invalidReason),!this.disqualifyingUnit){let[o,a]=Oy(this.units);this.regex=RegExp(o,"i"),this.handlers=a}}explainFromTokens(e){if(this.isValid){let[r,o]=My(e,this.regex,this.handlers),[a,n,s]=o?Ny(o):[null,null,void 0];if(mn(o,"a")&&mn(o,"H"))throw new No("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:o,result:a,zone:n,specificOffset:s}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function xp(t,e,r){return new lu(t,r).explainFromTokens(e)}function wj(t,e,r){let{result:o,zone:a,specificOffset:n,invalidReason:s}=xp(t,e,r);return[o,a,n,s]}function vp(t,e){if(!t)return null;let o=tr.create(e,t).dtFormatter(qy()),a=o.formatToParts(),n=o.resolvedOptions();return a.map(s=>Ty(s,t,n))}var kp="Invalid DateTime",yj=864e13;function uu(t){return new er("unsupported zone",`the zone "${t.name}" is not supported`)}function bp(t){return t.weekData===null&&(t.weekData=tu(t.c)),t.weekData}function wp(t){return t.localWeekData===null&&(t.localWeekData=tu(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function rs(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Ye({...r,...e,old:r})}function Sj(t,e,r){let o=t-e*60*1e3,a=r.offset(o);if(e===a)return[o,e];o-=(a-e)*60*1e3;let n=r.offset(o);return a===n?[o,a]:[t-Math.min(a,n)*60*1e3,Math.max(a,n)]}function of(t,e){t+=e*60*1e3;let r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function nf(t,e,r){return Sj(_i(t),e,r)}function Ej(t,e){let r=t.o,o=t.c.year+Math.trunc(e.years),a=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,n={...t.c,year:o,month:a,day:Math.min(t.c.day,ji(o,a))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=Et.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),i=_i(n),[l,u]=Sj(i,r,t.zone);return s!==0&&(l+=s,u=t.zone.offset(l)),{ts:l,o:u}}function Di(t,e,r,o,a,n){let{setZone:s,zone:i}=r;if(t&&Object.keys(t).length!==0||e){let l=e||i,u=Ye.fromObject(t,{...r,zone:l,specificOffset:n});return s?u:u.setZone(i)}else return Ye.invalid(new er("unparsable",`the input "${a}" can't be parsed as ${o}`))}function af(t,e,r=!0){return t.isValid?tr.create(rt.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function yp(t,e,r){let o=t.c.year>9999||t.c.year<0,a="";if(o&&t.c.year>=0&&(a+="+"),a+=yt(t.c.year,o?6:4),r==="year")return a;if(e){if(a+="-",a+=yt(t.c.month),r==="month")return a;a+="-"}else if(a+=yt(t.c.month),r==="month")return a;return a+=yt(t.c.day),a}function Ij(t,e,r,o,a,n,s){let i=!r||t.c.millisecond!==0||t.c.second!==0,l="";switch(s){case"day":case"month":case"year":break;default:if(l+=yt(t.c.hour),s==="hour")break;if(e){if(l+=":",l+=yt(t.c.minute),s==="minute")break;i&&(l+=":",l+=yt(t.c.second))}else{if(l+=yt(t.c.minute),s==="minute")break;i&&(l+=yt(t.c.second))}if(s==="second")break;i&&(!o||t.c.millisecond!==0)&&(l+=".",l+=yt(t.c.millisecond,3))}return a&&(t.isOffsetFixed&&t.offset===0&&!n?l+="Z":t.o<0?(l+="-",l+=yt(Math.trunc(-t.o/60)),l+=":",l+=yt(Math.trunc(-t.o%60))):(l+="+",l+=yt(Math.trunc(t.o/60)),l+=":",l+=yt(Math.trunc(t.o%60)))),n&&(l+="["+t.zone.ianaName+"]"),l}var Cj={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Ry={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Ly={ordinal:1,hour:0,minute:0,second:0,millisecond:0},sf=["year","month","day","hour","minute","second","millisecond"],Gy=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Hy=["year","ordinal","hour","minute","second","millisecond"];function lf(t){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new mi(t);return e}function $j(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return lf(t)}}function Vy(t){if(Au===void 0&&(Au=tt.now()),t.type!=="iana")return t.offset(Au);let e=t.name,r=Ep.get(e);return r===void 0&&(r=t.offset(Au),Ep.set(e,r)),r}function Dj(t,e){let r=Ro(e.zone,tt.defaultZone);if(!r.isValid)return Ye.invalid(uu(r));let o=rt.fromObject(e),a,n;if(he(t.year))a=tt.now();else{for(let l of sf)he(t[l])&&(t[l]=Cj[l]);let s=lp(t)||up(t);if(s)return Ye.invalid(s);let i=Vy(r);[a,n]=nf(t,i,r)}return new Ye({ts:a,zone:r,loc:o,o:n})}function Fj(t,e,r){let o=he(r.round)?!0:r.round,a=he(r.rounding)?"trunc":r.rounding,n=(i,l)=>(i=hi(i,o||r.calendary?0:2,r.calendary?"round":a),e.loc.clone(r).relFormatter(r).format(i,l)),s=i=>r.calendary?e.hasSame(t,i)?0:e.startOf(i).diff(t.startOf(i),i).get(i):e.diff(t,i).get(i);if(r.unit)return n(s(r.unit),r.unit);for(let i of r.units){let l=s(i);if(Math.abs(l)>=1)return n(l,i)}return n(t>e?-0:0,r.units[r.units.length-1])}function Bj(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}var Au,Ep=new Map,Ye=class t{constructor(e){let r=e.zone||tt.defaultZone,o=e.invalid||(Number.isNaN(e.ts)?new er("invalid input"):null)||(r.isValid?null:uu(r));this.ts=he(e.ts)?tt.now():e.ts;let a=null,n=null;if(!o)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[a,n]=[e.old.c,e.old.o];else{let i=Lo(e.o)&&!e.old?e.o:r.offset(this.ts);a=of(this.ts,i),o=Number.isNaN(a.year)?new er("invalid input"):null,a=o?null:a,n=o?null:i}this._zone=r,this.loc=e.loc||rt.create(),this.invalid=o,this.weekData=null,this.localWeekData=null,this.c=a,this.o=n,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,r]=Bj(arguments),[o,a,n,s,i,l,u]=r;return Dj({year:o,month:a,day:n,hour:s,minute:i,second:l,millisecond:u},e)}static utc(){let[e,r]=Bj(arguments),[o,a,n,s,i,l,u]=r;return e.zone=Qt.utcInstance,Dj({year:o,month:a,day:n,hour:s,minute:i,second:l,millisecond:u},e)}static fromJSDate(e,r={}){let o=zg(e)?e.valueOf():NaN;if(Number.isNaN(o))return t.invalid("invalid input");let a=Ro(r.zone,tt.defaultZone);return a.isValid?new t({ts:o,zone:a,loc:rt.fromObject(r)}):t.invalid(uu(a))}static fromMillis(e,r={}){if(Lo(e))return e<-yj||e>yj?t.invalid("Timestamp out of range"):new t({ts:e,zone:Ro(r.zone,tt.defaultZone),loc:rt.fromObject(r)});throw new Ct(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(Lo(e))return new t({ts:e*1e3,zone:Ro(r.zone,tt.defaultZone),loc:rt.fromObject(r)});throw new Ct("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let o=Ro(r.zone,tt.defaultZone);if(!o.isValid)return t.invalid(uu(o));let a=rt.fromObject(r),n=xi(e,$j),{minDaysInFirstWeek:s,startOfWeek:i}=ip(n,a),l=tt.now(),u=he(r.specificOffset)?o.offset(l):r.specificOffset,A=!he(n.ordinal),c=!he(n.year),p=!he(n.month)||!he(n.day),m=c||p,h=n.weekYear||n.weekNumber;if((m||A)&&h)throw new No("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(p&&A)throw new No("Can't mix ordinal dates with month/day");let y=h||n.weekday&&!m,I,F,R=of(l,u);y?(I=Gy,F=Ry,R=tu(R,s,i)):A?(I=Hy,F=Ly,R=tf(R)):(I=sf,F=Cj);let B=!1;for(let le of I){let xe=n[le];he(xe)?B?n[le]=F[le]:n[le]=R[le]:B=!0}let j=y?Hg(n,s,i):A?Vg(n):lp(n),E=j||up(n);if(E)return t.invalid(E);let D=y?np(n,s,i):A?sp(n):n,[k,C]=nf(D,u,o),P=new t({ts:k,zone:o,o:C,loc:a});return n.weekday&&m&&e.weekday!==P.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${n.weekday} and a date of ${P.toISO()}`):P.isValid?P:t.invalid(P.invalid)}static fromISO(e,r={}){let[o,a]=ij(e);return Di(o,a,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[o,a]=lj(e);return Di(o,a,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[o,a]=uj(e);return Di(o,a,r,"HTTP",r)}static fromFormat(e,r,o={}){if(he(e)||he(r))throw new Ct("fromFormat requires an input string and a format");let{locale:a=null,numberingSystem:n=null}=o,s=rt.fromOpts({locale:a,numberingSystem:n,defaultToEN:!0}),[i,l,u,A]=wj(s,e,r);return A?t.invalid(A):Di(i,l,o,`format ${r}`,e,u)}static fromString(e,r,o={}){return t.fromFormat(e,r,o)}static fromSQL(e,r={}){let[o,a]=dj(e);return Di(o,a,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new Ct("need to specify a reason the DateTime is invalid");let o=e instanceof er?e:new er(e,r);if(tt.throwOnInvalid)throw new UA(o);return new t({invalid:o})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){let o=vp(e,rt.fromObject(r));return o?o.map(a=>a?a.val:null).join(""):null}static expandFormat(e,r={}){return jp(tr.parseFormat(e),rt.fromObject(r)).map(a=>a.val).join("")}static resetCache(){Au=void 0,Ep.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?bp(this).weekYear:NaN}get weekNumber(){return this.isValid?bp(this).weekNumber:NaN}get weekday(){return this.isValid?bp(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?wp(this).weekday:NaN}get localWeekNumber(){return this.isValid?wp(this).weekNumber:NaN}get localWeekYear(){return this.isValid?wp(this).weekYear:NaN}get ordinal(){return this.isValid?tf(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ma.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ma.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ma.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ma.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,r=6e4,o=_i(this.c),a=this.zone.offset(o-e),n=this.zone.offset(o+e),s=this.zone.offset(o-a*r),i=this.zone.offset(o-n*r);if(s===i)return[this];let l=o-s*r,u=o-i*r,A=of(l,s),c=of(u,i);return A.hour===c.hour&&A.minute===c.minute&&A.second===c.second&&A.millisecond===c.millisecond?[rs(this,{ts:l}),rs(this,{ts:u})]:[this]}get isInLeapYear(){return es(this.year)}get daysInMonth(){return ji(this.year,this.month)}get daysInYear(){return this.isValid?pn(this.year):NaN}get weeksInWeekYear(){return this.isValid?Qn(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Qn(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:r,numberingSystem:o,calendar:a}=tr.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:o,outputCalendar:a}}toUTC(e=0,r={}){return this.setZone(Qt.instance(e),r)}toLocal(){return this.setZone(tt.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:o=!1}={}){if(e=Ro(e,tt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let a=this.ts;if(r||o){let n=e.offset(this.ts),s=this.toObject();[a]=nf(s,n,e)}return rs(this,{ts:a,zone:e})}else return t.invalid(uu(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:o}={}){let a=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:o});return rs(this,{loc:a})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=xi(e,$j),{minDaysInFirstWeek:o,startOfWeek:a}=ip(r,this.loc),n=!he(r.weekYear)||!he(r.weekNumber)||!he(r.weekday),s=!he(r.ordinal),i=!he(r.year),l=!he(r.month)||!he(r.day),u=i||l,A=r.weekYear||r.weekNumber;if((u||s)&&A)throw new No("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new No("Can't mix ordinal dates with month/day");let c;n?c=np({...tu(this.c,o,a),...r},o,a):he(r.ordinal)?(c={...this.toObject(),...r},he(r.day)&&(c.day=Math.min(ji(c.year,c.month),c.day))):c=sp({...tf(this.c),...r});let[p,m]=nf(c,this.o,this.zone);return rs(this,{ts:p,o:m})}plus(e){if(!this.isValid)return this;let r=Et.fromDurationLike(e);return rs(this,Ej(this,r))}minus(e){if(!this.isValid)return this;let r=Et.fromDurationLike(e).negate();return rs(this,Ej(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let o={},a=Et.normalizeUnit(e);switch(a){case"years":o.month=1;case"quarters":case"months":o.day=1;case"weeks":case"days":o.hour=0;case"hours":o.minute=0;case"minutes":o.second=0;case"seconds":o.millisecond=0;break;case"milliseconds":break}if(a==="weeks")if(r){let n=this.loc.getStartOfWeek(),{weekday:s}=this;s=3&&(l+="T"),l+=Ij(this,i,r,o,a,n,s),l}toISODate({format:e="extended",precision:r="day"}={}){return this.isValid?yp(this,e==="extended",lf(r)):null}toISOWeekDate(){return af(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:o=!0,includePrefix:a=!1,extendedZone:n=!1,format:s="extended",precision:i="milliseconds"}={}){return this.isValid?(i=lf(i),(a&&sf.indexOf(i)>=3?"T":"")+Ij(this,s==="extended",r,e,o,n,i)):null}toRFC2822(){return af(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return af(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?yp(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:o=!0}={}){let a="HH:mm:ss.SSS";return(r||e)&&(o&&(a+=" "),r?a+="z":e&&(a+="ZZ")),af(this,a,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():kp}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",o={}){if(!this.isValid||!e.isValid)return Et.invalid("created by diffing an invalid DateTime");let a={locale:this.locale,numberingSystem:this.numberingSystem,...o},n=Wg(r).map(Et.normalizeUnit),s=e.valueOf()>this.valueOf(),i=s?this:e,l=s?e:this,u=jj(i,l,n,a);return s?u.negate():u}diffNow(e="milliseconds",r={}){return this.diff(t.now(),e,r)}until(e){return this.isValid?Oa.fromDateTimes(this,e):this}hasSame(e,r,o){if(!this.isValid)return!1;let a=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(r,o)<=a&&a<=n.endOf(r,o)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let r=e.base||t.fromObject({},{zone:this.zone}),o=e.padding?thisr.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new Ct("max requires all arguments be DateTimes");return Ap(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,o={}){let{locale:a=null,numberingSystem:n=null}=o,s=rt.fromOpts({locale:a,numberingSystem:n,defaultToEN:!0});return xp(s,e,r)}static fromStringExplain(e,r,o={}){return t.fromFormatExplain(e,r,o)}static buildFormatParser(e,r={}){let{locale:o=null,numberingSystem:a=null}=r,n=rt.fromOpts({locale:o,numberingSystem:a,defaultToEN:!0});return new lu(n,e)}static fromFormatParser(e,r,o={}){if(he(e)||he(r))throw new Ct("fromFormatParser requires an input string and a format parser");let{locale:a=null,numberingSystem:n=null}=o,s=rt.fromOpts({locale:a,numberingSystem:n,defaultToEN:!0});if(!s.equals(r.locale))throw new Ct(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:i,zone:l,specificOffset:u,invalidReason:A}=r.explainFromTokens(e);return A?t.invalid(A):Di(i,l,o,`format ${r.format}`,e,u)}static get DATE_SHORT(){return fn}static get DATE_MED(){return Tl}static get DATE_MED_WITH_WEEKDAY(){return Nc}static get DATE_FULL(){return Ol}static get DATE_HUGE(){return Ml}static get TIME_SIMPLE(){return Nl}static get TIME_WITH_SECONDS(){return ql}static get TIME_WITH_SHORT_OFFSET(){return Pl}static get TIME_WITH_LONG_OFFSET(){return Rl}static get TIME_24_SIMPLE(){return Ll}static get TIME_24_WITH_SECONDS(){return Gl}static get TIME_24_WITH_SHORT_OFFSET(){return Hl}static get TIME_24_WITH_LONG_OFFSET(){return Vl}static get DATETIME_SHORT(){return Ul}static get DATETIME_SHORT_WITH_SECONDS(){return zl}static get DATETIME_MED(){return Wl}static get DATETIME_MED_WITH_SECONDS(){return Kl}static get DATETIME_MED_WITH_WEEKDAY(){return qc}static get DATETIME_FULL(){return Zl}static get DATETIME_FULL_WITH_SECONDS(){return Yl}static get DATETIME_HUGE(){return Jl}static get DATETIME_HUGE_WITH_SECONDS(){return Xl}};function $i(t){if(Ye.isDateTime(t))return t;if(t&&t.valueOf&&Lo(t.valueOf()))return Ye.fromJSDate(t);if(t&&typeof t=="object")return Ye.fromObject(t);throw new Ct(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var Tj;typeof window<"u"&&((Tj=window.__svelte??(window.__svelte={})).v??(Tj.v=new Set)).add("5");var Ho=!1,aa=!1,na=!1;function Oj(){aa=!0}Oj();var Na={};var At=Symbol(),Xr=Symbol("filename"),Mj=Symbol("hmr"),Nj="http://www.w3.org/1999/xhtml",uf="http://www.w3.org/2000/svg";var Ip="@attach";var N=!1;var Nr=Array.isArray,qj=Array.prototype.indexOf,fu=Array.from,$p=Object.keys,rr=Object.defineProperty,jr=Object.getOwnPropertyDescriptor,Af=Object.getOwnPropertyDescriptors,ff=Object.prototype,Pj=Array.prototype,hn=Object.getPrototypeOf,Dp=Object.isExtensible;function os(t){return typeof t=="function"}var or=()=>{};function Rj(t){return t()}function as(t){for(var e=0;e{t=o,e=a});return{promise:r,resolve:t,reject:e}}function Fp(t,e){if(Array.isArray(t))return t;if(e===void 0||!(Symbol.iterator in t))return Array.from(t);let r=[];for(let o of t)if(r.push(o),r.length===e)break;return r}var dr=Symbol("$state"),Fi=Symbol("legacy props"),Gj=Symbol(""),df=Symbol("proxy path"),Bi=new class extends Error{constructor(){super(...arguments);Ze(this,"name","StaleReactionError");Ze(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},cf=1,du=3,vo=8;function Hj(){if(N){let t=new Error("await_outside_boundary\nCannot await outside a `` with a `pending` snippet\nhttps://svelte.dev/e/await_outside_boundary");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/await_outside_boundary")}function cu(t){if(N){let e=new Error(`lifecycle_outside_component +\`${t}(...)\` can only be used during component initialisation +https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Vj(){if(N){let t=new Error("async_derived_orphan\nCannot create a `$derived(...)` with an `await` expression outside of an effect tree\nhttps://svelte.dev/e/async_derived_orphan");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/async_derived_orphan")}function Bp(){if(N){let t=new Error("bind_invalid_checkbox_value\nUsing `bind:value` together with a checkbox input is not allowed. Use `bind:checked` instead\nhttps://svelte.dev/e/bind_invalid_checkbox_value");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/bind_invalid_checkbox_value")}function Uj(){if(N){let t=new Error(`derived_references_self +A derived value cannot reference itself recursively +https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function zj(t){if(N){let e=new Error(`effect_in_teardown +\`${t}\` cannot be used inside an effect cleanup function +https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function Wj(){if(N){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Kj(t){if(N){let e=new Error(`effect_orphan +\`${t}\` can only be used inside an effect (e.g. during component initialisation) +https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function Zj(){if(N){let t=new Error(`effect_update_depth_exceeded +Maximum update depth exceeded. This typically indicates that an effect reads and writes the same piece of state +https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Yj(){if(N){let t=new Error("flush_sync_in_effect\nCannot use `flushSync` inside an effect\nhttps://svelte.dev/e/flush_sync_in_effect");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/flush_sync_in_effect")}function Jj(){if(N){let t=new Error(`hydration_failed +Failed to hydrate the application +https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function Xj(){if(N){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function Qj(t){if(N){let e=new Error(`props_invalid_value +Cannot do \`bind:${t}={undefined}\` when \`${t}\` has a fallback value +https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function ex(t){if(N){let e=new Error(`rune_outside_svelte +The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files +https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function tx(){if(N){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function rx(){if(N){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ox(){if(N){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var ns="font-weight: bold",ss="font-weight: normal";function ax(t){N?console.warn(`%c[svelte] await_reactivity_loss +%cDetected reactivity loss when reading \`${t}\`. This happens when state is read in an async function after an earlier \`await\` +https://svelte.dev/e/await_reactivity_loss`,ns,ss):console.warn("https://svelte.dev/e/await_reactivity_loss")}function nx(t,e){N?console.warn(`%c[svelte] await_waterfall +%cAn async derived, \`${t}\` (${e}) was not read immediately after it resolved. This often indicates an unnecessary waterfall, which can slow down your app +https://svelte.dev/e/await_waterfall`,ns,ss):console.warn("https://svelte.dev/e/await_waterfall")}function sx(t,e,r){N?console.warn(`%c[svelte] hydration_attribute_changed +%cThe \`${t}\` attribute on \`${e}\` changed its value between server and client renders. The client value, \`${r}\`, will be ignored in favour of the server value +https://svelte.dev/e/hydration_attribute_changed`,ns,ss):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function is(t){N?console.warn(`%c[svelte] hydration_mismatch +%c${t?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${t}`:"Hydration failed because the initial UI does not match what was rendered on the server"} +https://svelte.dev/e/hydration_mismatch`,ns,ss):console.warn("https://svelte.dev/e/hydration_mismatch")}function ix(){N?console.warn(`%c[svelte] lifecycle_double_unmount +%cTried to unmount a component that was not mounted +https://svelte.dev/e/lifecycle_double_unmount`,ns,ss):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function lx(){N?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `');function Xi(t,e){ae(e,!0);let r=U(e,"undefine_on_change",3,!0),o=U(e,"field",15,void 0),a=U(e,"placeholder",3,void 0),n=U(e,"onselect",3,void 0);var s=oI();s.__change=[tI,o,e,n,r];var i=w(s),l=w(i,!0);b(i),i.value=i.__value="";var u=S(i);ot(u,17,()=>e.fields,lt,(c,p)=>{let m=()=>d(p).label;var h=rI(),y=w(h,!0);b(h);var I={};oe(()=>{Fe(y,m()),I!==(I=m())&&(h.value=(h.__value=m())??"")}),v(c,h)}),b(s);var A;zi(s),oe(()=>{Fe(l,a()??"Select Field"),A!==(A=o()?.label??"")&&(s.value=(s.__value=o()?.label??"")??"",Bn(s,o()?.label??""))}),v(t,s),ne()}Ke(["change"]);var aI=q('Unsaved changes'),nI=(t,e)=>e.fields="",sI=(t,e,r)=>e.fields.scroll_to(d(r).edge_fields.last()?.label??""),iI=q(''),lI=(t,e,r)=>e.fields.remove(d(r)),uI=q('
'),AI=q(''),fI=q(""),dI=q('
Groups
'),cI=q('
'),pI=(t,e)=>e.groups="",mI=(t,e,r)=>e.groups.scroll_to(d(r).edge_field_groups.last()?.label??""),_I=q(''),hI=(t,e,r)=>e.groups.remove(d(r)),gI=q('
'),jI=q(''),xI=q('
Fields
'),vI=q('

Fields


Groups

');function Fm(t,e){ae(e,!0);let r=U(e,"plugin",7),o=We(kt(r().settings)),a=kt({fields:"",groups:""}),n={save:()=>Yi(void 0,void 0,void 0,function*(){r().settings=pr(d(o)),yield Promise.all([r().saveSettings(),r().rebuildGraph()]),te(o,r().settings,!0)}),fields:{make_id:T=>`BC-edge-field-${T}`,scroll_to:T=>{let M=document.getElementById(n.fields.make_id(T));M&&(M.scrollIntoView({behavior:"smooth",block:"center"}),M.focus())},add:()=>{let T={label:`Edge Field ${d(o).edge_fields.length+1}`};d(o).edge_fields.push(T),setTimeout(()=>n.fields.scroll_to(T.label),0),d(o).is_dirty=!0},remove:T=>{d(o).edge_fields=d(o).edge_fields.filter(M=>M.label!==T.label),d(o).edge_field_groups.forEach(M=>{M.fields=M.fields.filter(Z=>Z!==T.label)}),d(o).is_dirty=!0},rename:(T,M)=>{if(T.label!==M){{if(M==="")return new Qi.Notice("Field label cannot be empty.");if(d(o).edge_fields.some(Z=>Z.label===M))return new Qi.Notice("Field label must be unique.")}d(o).edge_field_groups.forEach(Z=>{let _e=Z.fields.indexOf(T.label);_e!==-1&&(Z.fields[_e]=M)}),d(o).implied_relations.transitive.forEach(Z=>{Z.chain=Z.chain.map(_e=>_e.field===T.label?Object.assign(Object.assign({},_e),{field:M}):_e),Z.close_field=Z.close_field===T.label?M:Z.close_field}),d(o).explicit_edge_sources.tag_note.default_field=d(o).explicit_edge_sources.tag_note.default_field===T.label?M:d(o).explicit_edge_sources.tag_note.default_field,d(o).explicit_edge_sources.list_note.default_neighbour_field=d(o).explicit_edge_sources.list_note.default_neighbour_field===T.label?M:d(o).explicit_edge_sources.list_note.default_neighbour_field,d(o).explicit_edge_sources.dendron_note.default_field=d(o).explicit_edge_sources.dendron_note.default_field===T.label?M:d(o).explicit_edge_sources.dendron_note.default_field,d(o).explicit_edge_sources.johnny_decimal_note.default_field=d(o).explicit_edge_sources.johnny_decimal_note.default_field===T.label?M:d(o).explicit_edge_sources.johnny_decimal_note.default_field,d(o).explicit_edge_sources.date_note.default_field=d(o).explicit_edge_sources.date_note.default_field===T.label?M:d(o).explicit_edge_sources.date_note.default_field,d(o).explicit_edge_sources.regex_note.default_field=d(o).explicit_edge_sources.regex_note.default_field===T.label?M:d(o).explicit_edge_sources.regex_note.default_field,T.label=M,d(o).is_dirty=!0}}},groups:{make_id:T=>`BC-edge-group-${T}`,scroll_to:T=>{let M=document.getElementById(n.groups.make_id(T));M&&(M.scrollIntoView({behavior:"smooth",block:"center"}),M.focus())},add:()=>{let T={label:`Group ${d(o).edge_field_groups.length+1}`,fields:[]};d(o).edge_field_groups.push(T),setTimeout(()=>n.groups.scroll_to(T.label),0),d(o).is_dirty=!0},remove:T=>{d(o).edge_field_groups=d(o).edge_field_groups.filter(M=>M.label!==T.label),d(o).is_dirty=!0},rename:(T,M)=>{T.label!==M&&(d(o).views.page.trail.field_group_labels=d(o).views.page.trail.field_group_labels.map(Z=>Z===T.label?M:Z),d(o).views.page.prev_next.field_group_labels.prev=d(o).views.page.prev_next.field_group_labels.prev.map(Z=>Z===T.label?M:Z),d(o).views.page.prev_next.field_group_labels.next=d(o).views.page.prev_next.field_group_labels.next.map(Z=>Z===T.label?M:Z),d(o).views.side.matrix.field_group_labels=d(o).views.side.matrix.field_group_labels.map(Z=>Z===T.label?M:Z),d(o).views.side.matrix.field_group_labels=d(o).views.side.matrix.field_group_labels.map(Z=>Z===T.label?M:Z),T.label=M,d(o).is_dirty=!0)},add_field:(T,M)=>{T&&(T.fields.push(M),d(o).is_dirty=!0)},remove_field:(T,M)=>{T&&(T.fields=T.fields.filter(Z=>Z!==M),d(o).is_dirty=!0)}}},s={field_group:(T,M)=>Z=>{let _e=new Qi.Menu;_e.addItem(Ne=>Ne.setTitle("Remove from Group").setIcon("x").onClick(()=>n.groups.remove_field(d(o).edge_field_groups.find(at=>at.label===M),T.label))),_e.showAtMouseEvent(Z)},group_field:(T,M)=>Z=>{let _e=new Qi.Menu;_e.addItem(Ne=>Ne.setTitle("Remove Field").setIcon("x").onClick(()=>n.groups.remove_field(T,M))),_e.showAtMouseEvent(Z)}};var i=vI(),l=w(i),u=w(l);u.__click=function(...T){n.save?.apply(this,T)};var A=w(u);vs(A,{get size(){return 20}}),sa(),b(u);var c=S(u,2);{var p=T=>{var M=aI();v(T,M)};se(c,T=>{d(o).is_dirty&&T(p)})}b(l);var m=S(l,2),h=S(w(m),2),y=w(h);io(y);var I=S(y,2);I.__click=[nI,a],b(h);var F=S(h,2);{var R=T=>{var M=iI();M.__click=[sI,n,o];var Z=w(M);Cn(Z,{get size(){return 20}}),b(M),v(T,M)};se(F,T=>{d(o).edge_fields.length>3&&T(R)})}b(m);var B=S(m,2),j=w(B);ot(j,17,()=>d(o).edge_fields.filter(T=>T.label.includes(a.fields.toLowerCase())),lt,(T,M)=>{let Z=de(()=>d(o).edge_field_groups.filter(Jt=>Jt.fields.includes(d(M).label)).map(Jt=>Jt.label));var _e=cI(),Ne=w(_e),at=w(Ne);io(at);var uo=S(at,2);uo.__click=[lI,n,M],b(Ne);var Do=S(Ne,2);so(Do,()=>d(o).edge_field_groups,Jt=>{var Vr=dI(),va=S(w(Vr),2);ot(va,17,()=>d(Z),lt,(ir,_t)=>{var Mt=uI(),Er=w(Mt);{let Fo=de(()=>s.field_group(d(M),d(_t)));Ji(Er,{get tag(){return d(_t)},title:"Jump to group. Right click for more actions.",onclick:()=>n.groups.scroll_to(d(_t)),get oncontextmenu(){return d(Fo)}})}b(Mt),v(ir,Mt)});var bt=S(va,2);{var Vt=ir=>{var _t=AI();_t.textContent="",v(ir,_t)};se(bt,ir=>{d(Z).length||ir(Vt)})}var Dt=S(bt,2);Dt.__change=ir=>{ir.currentTarget.value&&(n.groups.add_field(d(o).edge_field_groups.find(_t=>_t.label===ir.currentTarget.value),d(M).label),ir.currentTarget.value="")};var Ao=w(Dt);Ao.value=Ao.__value="";var tn=S(Ao);ot(tn,17,()=>d(o).edge_field_groups,lt,(ir,_t)=>{var Mt=J(),Er=K(Mt);{var Fo=Xo=>{var Qo=fI(),rn=w(Qo,!0);b(Qo);var ka={};oe(()=>{Fe(rn,d(_t).label),ka!==(ka=d(_t).label)&&(Qo.value=(Qo.__value=d(_t).label)??"")}),v(Xo,Qo)};se(Er,Xo=>{d(_t).fields.includes(d(M).label)||Xo(Fo)})}v(ir,Mt)}),b(Dt),Dt.value=Dt.__value="",b(Vr),v(Jt,Vr)}),b(_e),oe(Jt=>{Xe(at,"id",Jt),gs(at,d(M).label)},[()=>n.fields.make_id(d(M).label)]),Va("blur",at,Jt=>n.fields.rename(d(M),Jt.currentTarget.value)),v(T,_e)});var E=S(j,2);E.__click=function(...T){n.fields.add?.apply(this,T)};var D=w(E);Tn(D,{get size(){return 20}}),sa(),b(E),b(B);var k=S(B,4),C=S(w(k),2),P=w(C);io(P);var le=S(P,2);le.__click=[pI,a],b(C);var xe=S(C,2);{var fe=T=>{var M=_I();M.__click=[mI,n,o];var Z=w(M);Cn(Z,{get size(){return 20}}),b(M),v(T,M)};se(xe,T=>{d(o).edge_field_groups.length>3&&T(fe)})}b(k);var He=S(k,2),G=w(He);ot(G,17,()=>d(o).edge_field_groups.filter(T=>T.label.includes(a.groups.toLowerCase())),lt,(T,M)=>{var Z=xI(),_e=w(Z),Ne=w(_e);io(Ne);var at=S(Ne,2);at.__click=[hI,n,M],b(_e);var uo=S(_e,2),Do=S(w(uo),2);ot(Do,17,()=>d(M).fields,lt,(bt,Vt)=>{var Dt=gI(),Ao=w(Dt);{let tn=de(()=>s.group_field(d(M),d(Vt)));Ji(Ao,{get tag(){return d(Vt)},title:"Jump to field. Right click for more actions.",onclick:()=>n.fields.scroll_to(d(Vt)),get oncontextmenu(){return d(tn)}})}b(Dt),v(bt,Dt)});var Jt=S(Do,2);{var Vr=bt=>{var Vt=jI();Vt.textContent="",v(bt,Vt)};se(Jt,bt=>{d(M).fields.length||bt(Vr)})}var va=S(Jt,2);{let bt=de(()=>d(o).edge_fields.filter(Vt=>!d(M).fields.includes(Vt.label)));Xi(va,{placeholder:"Add Field",get fields(){return d(bt)},onselect:Vt=>n.groups.add_field(d(M),Vt.label)})}b(uo),b(Z),oe(bt=>{Xe(Ne,"id",bt),gs(Ne,d(M).label)},[()=>n.groups.make_id(d(M).label)]),Va("blur",Ne,bt=>n.groups.rename(d(M),bt.currentTarget.value)),v(T,Z)});var Y=S(G,2);Y.__click=function(...T){n.groups.add?.apply(this,T)};var De=w(Y);Tn(De,{get size(){return 20}}),sa(),b(Y),b(He),b(i),oe(()=>{I.disabled=a.fields==="",le.disabled=a.groups===""}),Sn(y,()=>a.fields,T=>a.fields=T),Sn(P,()=>a.groups,T=>a.groups=T),v(t,i),ne()}Ke(["click","change"]);var Ja=require("obsidian");var kI=["LR","RL","TB","BT"],bI=["dagre","elk"],wI=["basis","bumpX","bumpY","cardinal","catmullRom","linear","monotoneX","monotoneY","natural","step","stepAfter","stepBefore"];function Rv(t){let e=new TextEncoder().encode(t);return btoa(String.fromCharCode(...e))}function yI(t){return`https://mermaid.ink/img/${Rv(t)}`}function EI(t){return`https://mermaid.live/edit#base64:${Rv(JSON.stringify({code:t,autoSync:!1,updateDiagram:!0,mermaid:{theme:"default"}},void 0,2))}`}function II(t){return new Un("",t.chain.map(o=>o.field),t.close_field,1,!1,t.close_reversed).create_example_graph().generate_mermaid_graph(new Nt(["1"],void 0,100,1e3,!1,void 0),new Hn(void 0,"","graph","LR",!1,["field"],void 0,o=>o.path,!1))}var yo={from_transitive_rule:II,to_image_link:yI,to_live_edit_link:EI,RENDERERS:bI,DIRECTIONS:kI,CURVE_STYLES:wI};var Lv=(t,e)=>{let{delimiter:r}=Object.assign({delimiter:" "},e),o="";for(let a in t)o+=`${a}=${t[a]}${r}`;return o=o.slice(0,-1),e?.trim_lone_param&&Object.keys(t).length===1&&(o=o.split("=",2)[1]),o};var Qe={};Qm(Qe,{BRAND:()=>QI,DIRTY:()=>bs,EMPTY_PATH:()=>BI,INVALID:()=>ke,NEVER:()=>N$,OK:()=>wr,ParseStatus:()=>_r,Schema:()=>Me,ZodAny:()=>Nn,ZodArray:()=>Ya,ZodBigInt:()=>ys,ZodBoolean:()=>Es,ZodBranded:()=>Ju,ZodCatch:()=>Ns,ZodDate:()=>Is,ZodDefault:()=>Ms,ZodDiscriminatedUnion:()=>fd,ZodEffects:()=>$o,ZodEnum:()=>Ts,ZodError:()=>Lr,ZodFirstPartyTypeKind:()=>we,ZodFunction:()=>cd,ZodIntersection:()=>Bs,ZodIssueCode:()=>L,ZodLazy:()=>Ss,ZodLiteral:()=>Cs,ZodMap:()=>nl,ZodNaN:()=>il,ZodNativeEnum:()=>Os,ZodNever:()=>Jo,ZodNull:()=>Ds,ZodNullable:()=>ga,ZodNumber:()=>ws,ZodObject:()=>Gr,ZodOptional:()=>Eo,ZodParsedType:()=>re,ZodPipeline:()=>Xu,ZodPromise:()=>qn,ZodReadonly:()=>qs,ZodRecord:()=>dd,ZodSchema:()=>Me,ZodSet:()=>sl,ZodString:()=>Mn,ZodSymbol:()=>ol,ZodTransformer:()=>$o,ZodTuple:()=>ha,ZodType:()=>Me,ZodUndefined:()=>$s,ZodUnion:()=>Fs,ZodUnknown:()=>Za,ZodVoid:()=>al,addIssueToContext:()=>X,any:()=>l$,array:()=>d$,bigint:()=>o$,boolean:()=>Xv,coerce:()=>M$,custom:()=>Zv,date:()=>a$,datetimeRegex:()=>Wv,defaultErrorMap:()=>Wa,discriminatedUnion:()=>_$,effect:()=>$$,enum:()=>y$,function:()=>k$,getErrorMap:()=>el,getParsedType:()=>_a,instanceof:()=>t$,intersection:()=>h$,isAborted:()=>ud,isAsync:()=>tl,isDirty:()=>Ad,isValid:()=>On,late:()=>e$,lazy:()=>b$,literal:()=>w$,makeIssue:()=>Yu,map:()=>x$,nan:()=>r$,nativeEnum:()=>E$,never:()=>A$,null:()=>i$,nullable:()=>F$,number:()=>Jv,object:()=>c$,objectUtil:()=>Bm,oboolean:()=>O$,onumber:()=>T$,optional:()=>D$,ostring:()=>C$,pipeline:()=>S$,preprocess:()=>B$,promise:()=>I$,quotelessJson:()=>$I,record:()=>j$,set:()=>v$,setErrorMap:()=>FI,strictObject:()=>p$,string:()=>Yv,symbol:()=>n$,transformer:()=>$$,tuple:()=>g$,undefined:()=>s$,union:()=>m$,unknown:()=>u$,util:()=>Ge,void:()=>f$});var Ge;(function(t){t.assertEqual=a=>{};function e(a){}t.assertIs=e;function r(a){throw new Error}t.assertNever=r,t.arrayToEnum=a=>{let n={};for(let s of a)n[s]=s;return n},t.getValidEnumValues=a=>{let n=t.objectKeys(a).filter(i=>typeof a[a[i]]!="number"),s={};for(let i of n)s[i]=a[i];return t.objectValues(s)},t.objectValues=a=>t.objectKeys(a).map(function(n){return a[n]}),t.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{let n=[];for(let s in a)Object.prototype.hasOwnProperty.call(a,s)&&n.push(s);return n},t.find=(a,n)=>{for(let s of a)if(n(s))return s},t.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function o(a,n=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(n)}t.joinValues=o,t.jsonStringifyReplacer=(a,n)=>typeof n=="bigint"?n.toString():n})(Ge||(Ge={}));var Bm;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(Bm||(Bm={}));var re=Ge.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),_a=t=>{switch(typeof t){case"undefined":return re.undefined;case"string":return re.string;case"number":return Number.isNaN(t)?re.nan:re.number;case"boolean":return re.boolean;case"function":return re.function;case"bigint":return re.bigint;case"symbol":return re.symbol;case"object":return Array.isArray(t)?re.array:t===null?re.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?re.promise:typeof Map<"u"&&t instanceof Map?re.map:typeof Set<"u"&&t instanceof Set?re.set:typeof Date<"u"&&t instanceof Date?re.date:re.object;default:return re.unknown}};var L=Ge.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),$I=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),Lr=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=o=>{this.issues=[...this.issues,o]},this.addIssues=(o=[])=>{this.issues=[...this.issues,...o]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){let r=e||function(n){return n.message},o={_errors:[]},a=n=>{for(let s of n.issues)if(s.code==="invalid_union")s.unionErrors.map(a);else if(s.code==="invalid_return_type")a(s.returnTypeError);else if(s.code==="invalid_arguments")a(s.argumentsError);else if(s.path.length===0)o._errors.push(r(s));else{let i=o,l=0;for(;lr.message){let r={},o=[];for(let a of this.issues)if(a.path.length>0){let n=a.path[0];r[n]=r[n]||[],r[n].push(e(a))}else o.push(e(a));return{formErrors:o,fieldErrors:r}}get formErrors(){return this.flatten()}};Lr.create=t=>new Lr(t);var DI=(t,e)=>{let r;switch(t.code){case L.invalid_type:t.received===re.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case L.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,Ge.jsonStringifyReplacer)}`;break;case L.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ge.joinValues(t.keys,", ")}`;break;case L.invalid_union:r="Invalid input";break;case L.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ge.joinValues(t.options)}`;break;case L.invalid_enum_value:r=`Invalid enum value. Expected ${Ge.joinValues(t.options)}, received '${t.received}'`;break;case L.invalid_arguments:r="Invalid function arguments";break;case L.invalid_return_type:r="Invalid function return type";break;case L.invalid_date:r="Invalid date";break;case L.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:Ge.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case L.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case L.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case L.custom:r="Invalid input";break;case L.invalid_intersection_types:r="Intersection results could not be merged";break;case L.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case L.not_finite:r="Number must be finite";break;default:r=e.defaultError,Ge.assertNever(t)}return{message:r}},Wa=DI;var Gv=Wa;function FI(t){Gv=t}function el(){return Gv}var Yu=t=>{let{data:e,path:r,errorMaps:o,issueData:a}=t,n=[...r,...a.path||[]],s={...a,path:n};if(a.message!==void 0)return{...a,path:n,message:a.message};let i="",l=o.filter(u=>!!u).slice().reverse();for(let u of l)i=u(s,{data:e,defaultError:i}).message;return{...a,path:n,message:i}},BI=[];function X(t,e){let r=el(),o=Yu({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===Wa?void 0:Wa].filter(a=>!!a)});t.common.issues.push(o)}var _r=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let o=[];for(let a of r){if(a.status==="aborted")return ke;a.status==="dirty"&&e.dirty(),o.push(a.value)}return{status:e.value,value:o}}static async mergeObjectAsync(e,r){let o=[];for(let a of r){let n=await a.key,s=await a.value;o.push({key:n,value:s})}return t.mergeObjectSync(e,o)}static mergeObjectSync(e,r){let o={};for(let a of r){let{key:n,value:s}=a;if(n.status==="aborted"||s.status==="aborted")return ke;n.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),n.value!=="__proto__"&&(typeof s.value<"u"||a.alwaysSet)&&(o[n.value]=s.value)}return{status:e.value,value:o}}},ke=Object.freeze({status:"aborted"}),bs=t=>({status:"dirty",value:t}),wr=t=>({status:"valid",value:t}),ud=t=>t.status==="aborted",Ad=t=>t.status==="dirty",On=t=>t.status==="valid",tl=t=>typeof Promise<"u"&&t instanceof Promise;var ce;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(ce||(ce={}));var Io=class{constructor(e,r,o,a){this._cachedPath=[],this.parent=e,this.data=r,this._path=o,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Hv=(t,e)=>{if(On(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Lr(t.common.issues);return this._error=r,this._error}}};function Te(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:o,description:a}=t;if(e&&(r||o))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(s,i)=>{let{message:l}=t;return s.code==="invalid_enum_value"?{message:l??i.defaultError}:typeof i.data>"u"?{message:l??o??i.defaultError}:s.code!=="invalid_type"?{message:i.defaultError}:{message:l??r??i.defaultError}},description:a}}var Me=class{get description(){return this._def.description}_getType(e){return _a(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:_a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new _r,ctx:{common:e.parent.common,data:e.data,parsedType:_a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(tl(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let o=this.safeParse(e,r);if(o.success)return o.data;throw o.error}safeParse(e,r){let o={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_a(e)},a=this._parseSync({data:e,path:o.path,parent:o});return Hv(o,a)}"~validate"(e){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_a(e)};if(!this["~standard"].async)try{let o=this._parseSync({data:e,path:[],parent:r});return On(o)?{value:o.value}:{issues:r.common.issues}}catch(o){o?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(o=>On(o)?{value:o.value}:{issues:r.common.issues})}async parseAsync(e,r){let o=await this.safeParseAsync(e,r);if(o.success)return o.data;throw o.error}async safeParseAsync(e,r){let o={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_a(e)},a=this._parse({data:e,path:o.path,parent:o}),n=await(tl(a)?a:Promise.resolve(a));return Hv(o,n)}refine(e,r){let o=a=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(a):r;return this._refinement((a,n)=>{let s=e(a),i=()=>n.addIssue({code:L.custom,...o(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(i(),!1)):s?!0:(i(),!1)})}refinement(e,r){return this._refinement((o,a)=>e(o)?!0:(a.addIssue(typeof r=="function"?r(o,a):r),!1))}_refinement(e){return new $o({schema:this,typeName:we.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Eo.create(this,this._def)}nullable(){return ga.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ya.create(this)}promise(){return qn.create(this,this._def)}or(e){return Fs.create([this,e],this._def)}and(e){return Bs.create(this,e,this._def)}transform(e){return new $o({...Te(this._def),schema:this,typeName:we.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new Ms({...Te(this._def),innerType:this,defaultValue:r,typeName:we.ZodDefault})}brand(){return new Ju({typeName:we.ZodBranded,type:this,...Te(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new Ns({...Te(this._def),innerType:this,catchValue:r,typeName:we.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Xu.create(this,e)}readonly(){return qs.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},SI=/^c[^\s-]{8,}$/i,CI=/^[0-9a-z]+$/,TI=/^[0-9A-HJKMNP-TV-Z]{26}$/i,OI=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,MI=/^[a-z0-9_-]{21}$/i,NI=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,qI=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+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[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,VI=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,UI=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,zI=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Uv="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",WI=new RegExp(`^${Uv}$`);function zv(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function KI(t){return new RegExp(`^${zv(t)}$`)}function Wv(t){let e=`${Uv}T${zv(t)}`,r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function ZI(t,e){return!!((e==="v4"||!e)&&LI.test(t)||(e==="v6"||!e)&&HI.test(t))}function YI(t,e){if(!NI.test(t))return!1;try{let[r]=t.split(".");if(!r)return!1;let o=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),a=JSON.parse(atob(o));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function JI(t,e){return!!((e==="v4"||!e)&&GI.test(t)||(e==="v6"||!e)&&VI.test(t))}var Mn=class t extends Me{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==re.string){let n=this._getOrReturnCtx(e);return X(n,{code:L.invalid_type,expected:re.string,received:n.parsedType}),ke}let o=new _r,a;for(let n of this._def.checks)if(n.kind==="min")e.data.lengthn.value&&(a=this._getOrReturnCtx(e,a),X(a,{code:L.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),o.dirty());else if(n.kind==="length"){let s=e.data.length>n.value,i=e.data.lengthe.test(a),{validation:r,code:L.invalid_string,...ce.errToObj(o)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ce.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ce.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ce.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ce.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...ce.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ce.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ce.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ce.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...ce.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...ce.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...ce.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ce.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...ce.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...ce.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...ce.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...ce.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...ce.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...ce.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...ce.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...ce.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...ce.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...ce.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...ce.errToObj(r)})}nonempty(e){return this.min(1,ce.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.valuenew Mn({checks:[],typeName:we.ZodString,coerce:t?.coerce??!1,...Te(t)});function XI(t,e){let r=(t.toString().split(".")[1]||"").length,o=(e.toString().split(".")[1]||"").length,a=r>o?r:o,n=Number.parseInt(t.toFixed(a).replace(".","")),s=Number.parseInt(e.toFixed(a).replace(".",""));return n%s/10**a}var ws=class t extends Me{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==re.number){let n=this._getOrReturnCtx(e);return X(n,{code:L.invalid_type,expected:re.number,received:n.parsedType}),ke}let o,a=new _r;for(let n of this._def.checks)n.kind==="int"?Ge.isInteger(e.data)||(o=this._getOrReturnCtx(e,o),X(o,{code:L.invalid_type,expected:"integer",received:"float",message:n.message}),a.dirty()):n.kind==="min"?(n.inclusive?e.datan.value:e.data>=n.value)&&(o=this._getOrReturnCtx(e,o),X(o,{code:L.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),a.dirty()):n.kind==="multipleOf"?XI(e.data,n.value)!==0&&(o=this._getOrReturnCtx(e,o),X(o,{code:L.not_multiple_of,multipleOf:n.value,message:n.message}),a.dirty()):n.kind==="finite"?Number.isFinite(e.data)||(o=this._getOrReturnCtx(e,o),X(o,{code:L.not_finite,message:n.message}),a.dirty()):Ge.assertNever(n);return{status:a.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,ce.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ce.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ce.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ce.toString(r))}setLimit(e,r,o,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:o,message:ce.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ce.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ce.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ce.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ce.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ce.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ce.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:ce.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ce.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ce.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.valuee.kind==="int"||e.kind==="multipleOf"&&Ge.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let o of this._def.checks){if(o.kind==="finite"||o.kind==="int"||o.kind==="multipleOf")return!0;o.kind==="min"?(r===null||o.value>r)&&(r=o.value):o.kind==="max"&&(e===null||o.valuenew ws({checks:[],typeName:we.ZodNumber,coerce:t?.coerce||!1,...Te(t)});var ys=class t extends Me{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==re.bigint)return this._getInvalidInput(e);let o,a=new _r;for(let n of this._def.checks)n.kind==="min"?(n.inclusive?e.datan.value:e.data>=n.value)&&(o=this._getOrReturnCtx(e,o),X(o,{code:L.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),a.dirty()):n.kind==="multipleOf"?e.data%n.value!==BigInt(0)&&(o=this._getOrReturnCtx(e,o),X(o,{code:L.not_multiple_of,multipleOf:n.value,message:n.message}),a.dirty()):Ge.assertNever(n);return{status:a.value,value:e.data}}_getInvalidInput(e){let r=this._getOrReturnCtx(e);return X(r,{code:L.invalid_type,expected:re.bigint,received:r.parsedType}),ke}gte(e,r){return this.setLimit("min",e,!0,ce.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ce.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ce.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ce.toString(r))}setLimit(e,r,o,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:o,message:ce.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ce.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ce.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ce.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ce.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ce.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.valuenew ys({checks:[],typeName:we.ZodBigInt,coerce:t?.coerce??!1,...Te(t)});var Es=class extends Me{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==re.boolean){let o=this._getOrReturnCtx(e);return X(o,{code:L.invalid_type,expected:re.boolean,received:o.parsedType}),ke}return wr(e.data)}};Es.create=t=>new Es({typeName:we.ZodBoolean,coerce:t?.coerce||!1,...Te(t)});var Is=class t extends Me{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==re.date){let n=this._getOrReturnCtx(e);return X(n,{code:L.invalid_type,expected:re.date,received:n.parsedType}),ke}if(Number.isNaN(e.data.getTime())){let n=this._getOrReturnCtx(e);return X(n,{code:L.invalid_date}),ke}let o=new _r,a;for(let n of this._def.checks)n.kind==="min"?e.data.getTime()n.value&&(a=this._getOrReturnCtx(e,a),X(a,{code:L.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),o.dirty()):Ge.assertNever(n);return{status:o.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:ce.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:ce.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.valuenew Is({checks:[],coerce:t?.coerce||!1,typeName:we.ZodDate,...Te(t)});var ol=class extends Me{_parse(e){if(this._getType(e)!==re.symbol){let o=this._getOrReturnCtx(e);return X(o,{code:L.invalid_type,expected:re.symbol,received:o.parsedType}),ke}return wr(e.data)}};ol.create=t=>new ol({typeName:we.ZodSymbol,...Te(t)});var $s=class extends Me{_parse(e){if(this._getType(e)!==re.undefined){let o=this._getOrReturnCtx(e);return X(o,{code:L.invalid_type,expected:re.undefined,received:o.parsedType}),ke}return wr(e.data)}};$s.create=t=>new $s({typeName:we.ZodUndefined,...Te(t)});var Ds=class extends Me{_parse(e){if(this._getType(e)!==re.null){let o=this._getOrReturnCtx(e);return X(o,{code:L.invalid_type,expected:re.null,received:o.parsedType}),ke}return wr(e.data)}};Ds.create=t=>new Ds({typeName:we.ZodNull,...Te(t)});var Nn=class extends Me{constructor(){super(...arguments),this._any=!0}_parse(e){return wr(e.data)}};Nn.create=t=>new Nn({typeName:we.ZodAny,...Te(t)});var Za=class extends Me{constructor(){super(...arguments),this._unknown=!0}_parse(e){return wr(e.data)}};Za.create=t=>new Za({typeName:we.ZodUnknown,...Te(t)});var Jo=class extends Me{_parse(e){let r=this._getOrReturnCtx(e);return X(r,{code:L.invalid_type,expected:re.never,received:r.parsedType}),ke}};Jo.create=t=>new Jo({typeName:we.ZodNever,...Te(t)});var al=class extends Me{_parse(e){if(this._getType(e)!==re.undefined){let o=this._getOrReturnCtx(e);return X(o,{code:L.invalid_type,expected:re.void,received:o.parsedType}),ke}return wr(e.data)}};al.create=t=>new al({typeName:we.ZodVoid,...Te(t)});var Ya=class t extends Me{_parse(e){let{ctx:r,status:o}=this._processInputParams(e),a=this._def;if(r.parsedType!==re.array)return X(r,{code:L.invalid_type,expected:re.array,received:r.parsedType}),ke;if(a.exactLength!==null){let s=r.data.length>a.exactLength.value,i=r.data.lengtha.maxLength.value&&(X(r,{code:L.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),o.dirty()),r.common.async)return Promise.all([...r.data].map((s,i)=>a.type._parseAsync(new Io(r,s,r.path,i)))).then(s=>_r.mergeArray(o,s));let n=[...r.data].map((s,i)=>a.type._parseSync(new Io(r,s,r.path,i)));return _r.mergeArray(o,n)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:ce.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:ce.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:ce.toString(r)}})}nonempty(e){return this.min(1,e)}};Ya.create=(t,e)=>new Ya({type:t,minLength:null,maxLength:null,exactLength:null,typeName:we.ZodArray,...Te(e)});function rl(t){if(t instanceof Gr){let e={};for(let r in t.shape){let o=t.shape[r];e[r]=Eo.create(rl(o))}return new Gr({...t._def,shape:()=>e})}else return t instanceof Ya?new Ya({...t._def,type:rl(t.element)}):t instanceof Eo?Eo.create(rl(t.unwrap())):t instanceof ga?ga.create(rl(t.unwrap())):t instanceof ha?ha.create(t.items.map(e=>rl(e))):t}var Gr=class t extends Me{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=Ge.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==re.object){let u=this._getOrReturnCtx(e);return X(u,{code:L.invalid_type,expected:re.object,received:u.parsedType}),ke}let{status:o,ctx:a}=this._processInputParams(e),{shape:n,keys:s}=this._getCached(),i=[];if(!(this._def.catchall instanceof Jo&&this._def.unknownKeys==="strip"))for(let u in a.data)s.includes(u)||i.push(u);let l=[];for(let u of s){let A=n[u],c=a.data[u];l.push({key:{status:"valid",value:u},value:A._parse(new Io(a,c,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof Jo){let u=this._def.unknownKeys;if(u==="passthrough")for(let A of i)l.push({key:{status:"valid",value:A},value:{status:"valid",value:a.data[A]}});else if(u==="strict")i.length>0&&(X(a,{code:L.unrecognized_keys,keys:i}),o.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let A of i){let c=a.data[A];l.push({key:{status:"valid",value:A},value:u._parse(new Io(a,c,a.path,A)),alwaysSet:A in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let u=[];for(let A of l){let c=await A.key,p=await A.value;u.push({key:c,value:p,alwaysSet:A.alwaysSet})}return u}).then(u=>_r.mergeObjectSync(o,u)):_r.mergeObjectSync(o,l)}get shape(){return this._def.shape()}strict(e){return ce.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,o)=>{let a=this._def.errorMap?.(r,o).message??o.defaultError;return r.code==="unrecognized_keys"?{message:ce.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:we.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};for(let o of Ge.objectKeys(e))e[o]&&this.shape[o]&&(r[o]=this.shape[o]);return new t({...this._def,shape:()=>r})}omit(e){let r={};for(let o of Ge.objectKeys(this.shape))e[o]||(r[o]=this.shape[o]);return new t({...this._def,shape:()=>r})}deepPartial(){return rl(this)}partial(e){let r={};for(let o of Ge.objectKeys(this.shape)){let a=this.shape[o];e&&!e[o]?r[o]=a:r[o]=a.optional()}return new t({...this._def,shape:()=>r})}required(e){let r={};for(let o of Ge.objectKeys(this.shape))if(e&&!e[o])r[o]=this.shape[o];else{let n=this.shape[o];for(;n instanceof Eo;)n=n._def.innerType;r[o]=n}return new t({...this._def,shape:()=>r})}keyof(){return Kv(Ge.objectKeys(this.shape))}};Gr.create=(t,e)=>new Gr({shape:()=>t,unknownKeys:"strip",catchall:Jo.create(),typeName:we.ZodObject,...Te(e)});Gr.strictCreate=(t,e)=>new Gr({shape:()=>t,unknownKeys:"strict",catchall:Jo.create(),typeName:we.ZodObject,...Te(e)});Gr.lazycreate=(t,e)=>new Gr({shape:t,unknownKeys:"strip",catchall:Jo.create(),typeName:we.ZodObject,...Te(e)});var Fs=class extends Me{_parse(e){let{ctx:r}=this._processInputParams(e),o=this._def.options;function a(n){for(let i of n)if(i.result.status==="valid")return i.result;for(let i of n)if(i.result.status==="dirty")return r.common.issues.push(...i.ctx.common.issues),i.result;let s=n.map(i=>new Lr(i.ctx.common.issues));return X(r,{code:L.invalid_union,unionErrors:s}),ke}if(r.common.async)return Promise.all(o.map(async n=>{let s={...r,common:{...r.common,issues:[]},parent:null};return{result:await n._parseAsync({data:r.data,path:r.path,parent:s}),ctx:s}})).then(a);{let n,s=[];for(let l of o){let u={...r,common:{...r.common,issues:[]},parent:null},A=l._parseSync({data:r.data,path:r.path,parent:u});if(A.status==="valid")return A;A.status==="dirty"&&!n&&(n={result:A,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(n)return r.common.issues.push(...n.ctx.common.issues),n.result;let i=s.map(l=>new Lr(l));return X(r,{code:L.invalid_union,unionErrors:i}),ke}}get options(){return this._def.options}};Fs.create=(t,e)=>new Fs({options:t,typeName:we.ZodUnion,...Te(e)});var Ka=t=>t instanceof Ss?Ka(t.schema):t instanceof $o?Ka(t.innerType()):t instanceof Cs?[t.value]:t instanceof Ts?t.options:t instanceof Os?Ge.objectValues(t.enum):t instanceof Ms?Ka(t._def.innerType):t instanceof $s?[void 0]:t instanceof Ds?[null]:t instanceof Eo?[void 0,...Ka(t.unwrap())]:t instanceof ga?[null,...Ka(t.unwrap())]:t instanceof Ju||t instanceof qs?Ka(t.unwrap()):t instanceof Ns?Ka(t._def.innerType):[],fd=class t extends Me{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==re.object)return X(r,{code:L.invalid_type,expected:re.object,received:r.parsedType}),ke;let o=this.discriminator,a=r.data[o],n=this.optionsMap.get(a);return n?r.common.async?n._parseAsync({data:r.data,path:r.path,parent:r}):n._parseSync({data:r.data,path:r.path,parent:r}):(X(r,{code:L.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[o]}),ke)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,o){let a=new Map;for(let n of r){let s=Ka(n.shape[e]);if(!s.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of s){if(a.has(i))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);a.set(i,n)}}return new t({typeName:we.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:a,...Te(o)})}};function Cm(t,e){let r=_a(t),o=_a(e);if(t===e)return{valid:!0,data:t};if(r===re.object&&o===re.object){let a=Ge.objectKeys(e),n=Ge.objectKeys(t).filter(i=>a.indexOf(i)!==-1),s={...t,...e};for(let i of n){let l=Cm(t[i],e[i]);if(!l.valid)return{valid:!1};s[i]=l.data}return{valid:!0,data:s}}else if(r===re.array&&o===re.array){if(t.length!==e.length)return{valid:!1};let a=[];for(let n=0;n{if(ud(n)||ud(s))return ke;let i=Cm(n.value,s.value);return i.valid?((Ad(n)||Ad(s))&&r.dirty(),{status:r.value,value:i.data}):(X(o,{code:L.invalid_intersection_types}),ke)};return o.common.async?Promise.all([this._def.left._parseAsync({data:o.data,path:o.path,parent:o}),this._def.right._parseAsync({data:o.data,path:o.path,parent:o})]).then(([n,s])=>a(n,s)):a(this._def.left._parseSync({data:o.data,path:o.path,parent:o}),this._def.right._parseSync({data:o.data,path:o.path,parent:o}))}};Bs.create=(t,e,r)=>new Bs({left:t,right:e,typeName:we.ZodIntersection,...Te(r)});var ha=class t extends Me{_parse(e){let{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==re.array)return X(o,{code:L.invalid_type,expected:re.array,received:o.parsedType}),ke;if(o.data.lengththis._def.items.length&&(X(o,{code:L.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let n=[...o.data].map((s,i)=>{let l=this._def.items[i]||this._def.rest;return l?l._parse(new Io(o,s,o.path,i)):null}).filter(s=>!!s);return o.common.async?Promise.all(n).then(s=>_r.mergeArray(r,s)):_r.mergeArray(r,n)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};ha.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ha({items:t,typeName:we.ZodTuple,rest:null,...Te(e)})};var dd=class t extends Me{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==re.object)return X(o,{code:L.invalid_type,expected:re.object,received:o.parsedType}),ke;let a=[],n=this._def.keyType,s=this._def.valueType;for(let i in o.data)a.push({key:n._parse(new Io(o,i,o.path,i)),value:s._parse(new Io(o,o.data[i],o.path,i)),alwaysSet:i in o.data});return o.common.async?_r.mergeObjectAsync(r,a):_r.mergeObjectSync(r,a)}get element(){return this._def.valueType}static create(e,r,o){return r instanceof Me?new t({keyType:e,valueType:r,typeName:we.ZodRecord,...Te(o)}):new t({keyType:Mn.create(),valueType:e,typeName:we.ZodRecord,...Te(r)})}},nl=class extends Me{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==re.map)return X(o,{code:L.invalid_type,expected:re.map,received:o.parsedType}),ke;let a=this._def.keyType,n=this._def.valueType,s=[...o.data.entries()].map(([i,l],u)=>({key:a._parse(new Io(o,i,o.path,[u,"key"])),value:n._parse(new Io(o,l,o.path,[u,"value"]))}));if(o.common.async){let i=new Map;return Promise.resolve().then(async()=>{for(let l of s){let u=await l.key,A=await l.value;if(u.status==="aborted"||A.status==="aborted")return ke;(u.status==="dirty"||A.status==="dirty")&&r.dirty(),i.set(u.value,A.value)}return{status:r.value,value:i}})}else{let i=new Map;for(let l of s){let u=l.key,A=l.value;if(u.status==="aborted"||A.status==="aborted")return ke;(u.status==="dirty"||A.status==="dirty")&&r.dirty(),i.set(u.value,A.value)}return{status:r.value,value:i}}}};nl.create=(t,e,r)=>new nl({valueType:e,keyType:t,typeName:we.ZodMap,...Te(r)});var sl=class t extends Me{_parse(e){let{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==re.set)return X(o,{code:L.invalid_type,expected:re.set,received:o.parsedType}),ke;let a=this._def;a.minSize!==null&&o.data.sizea.maxSize.value&&(X(o,{code:L.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),r.dirty());let n=this._def.valueType;function s(l){let u=new Set;for(let A of l){if(A.status==="aborted")return ke;A.status==="dirty"&&r.dirty(),u.add(A.value)}return{status:r.value,value:u}}let i=[...o.data.values()].map((l,u)=>n._parse(new Io(o,l,o.path,u)));return o.common.async?Promise.all(i).then(l=>s(l)):s(i)}min(e,r){return new t({...this._def,minSize:{value:e,message:ce.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:ce.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};sl.create=(t,e)=>new sl({valueType:t,minSize:null,maxSize:null,typeName:we.ZodSet,...Te(e)});var cd=class t extends Me{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==re.function)return X(r,{code:L.invalid_type,expected:re.function,received:r.parsedType}),ke;function o(i,l){return Yu({data:i,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,el(),Wa].filter(u=>!!u),issueData:{code:L.invalid_arguments,argumentsError:l}})}function a(i,l){return Yu({data:i,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,el(),Wa].filter(u=>!!u),issueData:{code:L.invalid_return_type,returnTypeError:l}})}let n={errorMap:r.common.contextualErrorMap},s=r.data;if(this._def.returns instanceof qn){let i=this;return wr(async function(...l){let u=new Lr([]),A=await i._def.args.parseAsync(l,n).catch(m=>{throw u.addIssue(o(l,m)),u}),c=await Reflect.apply(s,this,A);return await i._def.returns._def.type.parseAsync(c,n).catch(m=>{throw u.addIssue(a(c,m)),u})})}else{let i=this;return wr(function(...l){let u=i._def.args.safeParse(l,n);if(!u.success)throw new Lr([o(l,u.error)]);let A=Reflect.apply(s,this,u.data),c=i._def.returns.safeParse(A,n);if(!c.success)throw new Lr([a(A,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:ha.create(e).rest(Za.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,o){return new t({args:e||ha.create([]).rest(Za.create()),returns:r||Za.create(),typeName:we.ZodFunction,...Te(o)})}},Ss=class extends Me{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Ss.create=(t,e)=>new Ss({getter:t,typeName:we.ZodLazy,...Te(e)});var Cs=class extends Me{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return X(r,{received:r.data,code:L.invalid_literal,expected:this._def.value}),ke}return{status:"valid",value:e.data}}get value(){return this._def.value}};Cs.create=(t,e)=>new Cs({value:t,typeName:we.ZodLiteral,...Te(e)});function Kv(t,e){return new Ts({values:t,typeName:we.ZodEnum,...Te(e)})}var Ts=class t extends Me{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),o=this._def.values;return X(r,{expected:Ge.joinValues(o),received:r.parsedType,code:L.invalid_type}),ke}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let r=this._getOrReturnCtx(e),o=this._def.values;return X(r,{received:r.data,code:L.invalid_enum_value,options:o}),ke}return wr(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return t.create(e,{...this._def,...r})}exclude(e,r=this._def){return t.create(this.options.filter(o=>!e.includes(o)),{...this._def,...r})}};Ts.create=Kv;var Os=class extends Me{_parse(e){let r=Ge.getValidEnumValues(this._def.values),o=this._getOrReturnCtx(e);if(o.parsedType!==re.string&&o.parsedType!==re.number){let a=Ge.objectValues(r);return X(o,{expected:Ge.joinValues(a),received:o.parsedType,code:L.invalid_type}),ke}if(this._cache||(this._cache=new Set(Ge.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let a=Ge.objectValues(r);return X(o,{received:o.data,code:L.invalid_enum_value,options:a}),ke}return wr(e.data)}get enum(){return this._def.values}};Os.create=(t,e)=>new Os({values:t,typeName:we.ZodNativeEnum,...Te(e)});var qn=class extends Me{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==re.promise&&r.common.async===!1)return X(r,{code:L.invalid_type,expected:re.promise,received:r.parsedType}),ke;let o=r.parsedType===re.promise?r.data:Promise.resolve(r.data);return wr(o.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}};qn.create=(t,e)=>new qn({type:t,typeName:we.ZodPromise,...Te(e)});var $o=class extends Me{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===we.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:o}=this._processInputParams(e),a=this._def.effect||null,n={addIssue:s=>{X(o,s),s.fatal?r.abort():r.dirty()},get path(){return o.path}};if(n.addIssue=n.addIssue.bind(n),a.type==="preprocess"){let s=a.transform(o.data,n);if(o.common.async)return Promise.resolve(s).then(async i=>{if(r.value==="aborted")return ke;let l=await this._def.schema._parseAsync({data:i,path:o.path,parent:o});return l.status==="aborted"?ke:l.status==="dirty"?bs(l.value):r.value==="dirty"?bs(l.value):l});{if(r.value==="aborted")return ke;let i=this._def.schema._parseSync({data:s,path:o.path,parent:o});return i.status==="aborted"?ke:i.status==="dirty"?bs(i.value):r.value==="dirty"?bs(i.value):i}}if(a.type==="refinement"){let s=i=>{let l=a.refinement(i,n);if(o.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return i};if(o.common.async===!1){let i=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});return i.status==="aborted"?ke:(i.status==="dirty"&&r.dirty(),s(i.value),{status:r.value,value:i.value})}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(i=>i.status==="aborted"?ke:(i.status==="dirty"&&r.dirty(),s(i.value).then(()=>({status:r.value,value:i.value}))))}if(a.type==="transform")if(o.common.async===!1){let s=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});if(!On(s))return ke;let i=a.transform(s.value,n);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:i}}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(s=>On(s)?Promise.resolve(a.transform(s.value,n)).then(i=>({status:r.value,value:i})):ke);Ge.assertNever(a)}};$o.create=(t,e,r)=>new $o({schema:t,typeName:we.ZodEffects,effect:e,...Te(r)});$o.createWithPreprocess=(t,e,r)=>new $o({schema:e,effect:{type:"preprocess",transform:t},typeName:we.ZodEffects,...Te(r)});var Eo=class extends Me{_parse(e){return this._getType(e)===re.undefined?wr(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Eo.create=(t,e)=>new Eo({innerType:t,typeName:we.ZodOptional,...Te(e)});var ga=class extends Me{_parse(e){return this._getType(e)===re.null?wr(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};ga.create=(t,e)=>new ga({innerType:t,typeName:we.ZodNullable,...Te(e)});var Ms=class extends Me{_parse(e){let{ctx:r}=this._processInputParams(e),o=r.data;return r.parsedType===re.undefined&&(o=this._def.defaultValue()),this._def.innerType._parse({data:o,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Ms.create=(t,e)=>new Ms({innerType:t,typeName:we.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Te(e)});var Ns=class extends Me{_parse(e){let{ctx:r}=this._processInputParams(e),o={...r,common:{...r.common,issues:[]}},a=this._def.innerType._parse({data:o.data,path:o.path,parent:{...o}});return tl(a)?a.then(n=>({status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new Lr(o.common.issues)},input:o.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Lr(o.common.issues)},input:o.data})}}removeCatch(){return this._def.innerType}};Ns.create=(t,e)=>new Ns({innerType:t,typeName:we.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Te(e)});var il=class extends Me{_parse(e){if(this._getType(e)!==re.nan){let o=this._getOrReturnCtx(e);return X(o,{code:L.invalid_type,expected:re.nan,received:o.parsedType}),ke}return{status:"valid",value:e.data}}};il.create=t=>new il({typeName:we.ZodNaN,...Te(t)});var QI=Symbol("zod_brand"),Ju=class extends Me{_parse(e){let{ctx:r}=this._processInputParams(e),o=r.data;return this._def.type._parse({data:o,path:r.path,parent:r})}unwrap(){return this._def.type}},Xu=class t extends Me{_parse(e){let{status:r,ctx:o}=this._processInputParams(e);if(o.common.async)return(async()=>{let n=await this._def.in._parseAsync({data:o.data,path:o.path,parent:o});return n.status==="aborted"?ke:n.status==="dirty"?(r.dirty(),bs(n.value)):this._def.out._parseAsync({data:n.value,path:o.path,parent:o})})();{let a=this._def.in._parseSync({data:o.data,path:o.path,parent:o});return a.status==="aborted"?ke:a.status==="dirty"?(r.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:o.path,parent:o})}}static create(e,r){return new t({in:e,out:r,typeName:we.ZodPipeline})}},qs=class extends Me{_parse(e){let r=this._def.innerType._parse(e),o=a=>(On(a)&&(a.value=Object.freeze(a.value)),a);return tl(r)?r.then(a=>o(a)):o(r)}unwrap(){return this._def.innerType}};qs.create=(t,e)=>new qs({innerType:t,typeName:we.ZodReadonly,...Te(e)});function Vv(t,e){let r=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof r=="string"?{message:r}:r}function Zv(t,e={},r){return t?Nn.create().superRefine((o,a)=>{let n=t(o);if(n instanceof Promise)return n.then(s=>{if(!s){let i=Vv(e,o),l=i.fatal??r??!0;a.addIssue({code:"custom",...i,fatal:l})}});if(!n){let s=Vv(e,o),i=s.fatal??r??!0;a.addIssue({code:"custom",...s,fatal:i})}}):Nn.create()}var e$={object:Gr.lazycreate},we;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(we||(we={}));var t$=(t,e={message:`Input not instance of ${t.name}`})=>Zv(r=>r instanceof t,e),Yv=Mn.create,Jv=ws.create,r$=il.create,o$=ys.create,Xv=Es.create,a$=Is.create,n$=ol.create,s$=$s.create,i$=Ds.create,l$=Nn.create,u$=Za.create,A$=Jo.create,f$=al.create,d$=Ya.create,c$=Gr.create,p$=Gr.strictCreate,m$=Fs.create,_$=fd.create,h$=Bs.create,g$=ha.create,j$=dd.create,x$=nl.create,v$=sl.create,k$=cd.create,b$=Ss.create,w$=Cs.create,y$=Ts.create,E$=Os.create,I$=qn.create,$$=$o.create,D$=Eo.create,F$=ga.create,B$=$o.createWithPreprocess,S$=Xu.create,C$=()=>Yv().optional(),T$=()=>Jv().optional(),O$=()=>Xv().optional(),M$={string:t=>Mn.create({...t,coerce:!0}),number:t=>ws.create({...t,coerce:!0}),boolean:t=>Es.create({...t,coerce:!0}),bigint:t=>ys.create({...t,coerce:!0}),date:t=>Is.create({...t,coerce:!0})};var N$=ke;function q$(t,e){return`Expected a string (text), but got: \`${e}\` (${typeof e}). _Try wrapping the value in quotes._ +**Example**: \`${t}: "${e}"\``}function Qv(t,e,r){return`Expected one of the following options: ${jA(e,"`",", or ")}, but got: \`${r}\`. +**Example**: \`${t}: ${e[0]}\``}function e6(t,e,r){return`This field is now expected to be a YAML list (array), but got: \`${r}\` (${typeof r}). _Try wrapping it in square brackets._ +**Example**: \`${t}: [${e.slice(0,2).join(", ")}]\`, or possibly: \`${t}: [${r}]\``}function t6(t,e){return Qe.string().superRefine((r,o)=>t.includes(r)?!0:(o.addIssue({options:t,received:r,code:"invalid_enum_value",message:Qv(e??o.path.join("."),t,r)}),!1))}function P$(t,e,r){return Qe.array(t6(e),{invalid_type_error:e6(t,e,r)})}var Ht={error:{not_string:q$,invalid_enum:Qv,not_array:e6},schema:{dynamic_enum:t6,dynamic_enum_array:P$}};var Qu=t=>`[${t.chain.map(e=>Lv(e,{trim_lone_param:!0})).join(", ")}] ${t.close_reversed?"<-":"->"} ${t.close_field}`,R$=/\[(.+)\]\s*(<-|->)\s*(.+)/,Tm=t=>t.name||Qu(t),r6=t=>{let e=R$.exec(t);return e?Xt({close_field:e[3],close_reversed:e[2]==="<-",chain:gA(e[1]).map(r=>({field:r}))}):ht(null)},o6=t=>{let e=t.fields.map(r=>r.label);return Qe.object({chain:Qe.array(Qe.object({field:Ht.schema.dynamic_enum(e)})),close_field:Ht.schema.dynamic_enum(e,"close_field"),close_reversed:Qe.boolean()})};function Ps(t,e){var r=J(),o=K(r);{var a=s=>{td(s,{get size(){return 20}})},n=s=>{rd(s,{get size(){return 20}})};se(o,s=>{e.open?s(a):s(n,!1)})}v(t,r)}var pd=require("obsidian");var a6=Yf(null),xt={...a6,refresh:t=>a6.set(t.workspace.getActiveFile())};var L$=q("
");function eA(t,e){ae(e,!0);let[r,o]=Sr(),a=()=>Br(xt,"$active_file_store",r),n=U(e,"cls",3,""),s=U(e,"source_path",3,void 0),i=We(void 0),l,u=de(a);function A(p){return Yi(this,void 0,void 0,function*(){var m;if(d(i))return H.debug("rendering markdown"),d(i).empty(),l&&(l.unload(),l=void 0),l=new pd.Component,l.load(),pd.MarkdownRenderer.render(e.plugin.app,p,d(i),(m=s()!==null&&s()!==void 0?s():d(u)===null||d(u)===void 0?void 0:d(u).path)!==null&&m!==void 0?m:"",l)})}jt(()=>{A(e.markdown)}),zx(()=>{l&&(l.unload(),l=void 0)});var c=L$();bm(c,p=>te(i,p),()=>d(i)),oe(()=>ut(c,1,`markdown-rendered ${n()??""}`)),v(t,c),ne(),o()}function Rs(t,e){ae(e,!0);let r=U(e,"source_path",3,void 0);{let o=de(()=>O_(e.code,e.type));eA(t,{get plugin(){return e.plugin},get source_path(){return r()},get markdown(){return d(o)}})}ne()}var G$=(t,e)=>te(e,""),H$=(t,e,r)=>e.scroll_to(d(r).length-1),V$=q(''),U$=q('Unsaved changes'),z$=(t,e,r)=>e.reorder_transitive(r(),r()-1),W$=(t,e,r)=>e.reorder_transitive(r(),r()+1),K$=(t,e,r)=>e.copy_transitive(r()),Z$=(t,e,r)=>e.remove_transitive(r()),Y$=q('
'),J$=q('No fields in the chain.'),X$=(t,e,r)=>e.set_close_reversed(r(),t.currentTarget.checked),Q$=(t,e,r)=>e.rename_transitive(r(),""),e0=q('
Edge Chain:
Closing Field:
Close Reversed:
Rounds:
Name (optional):
'),t0=q('
'),r0=q(`

Transitive implied relations represent chains of your + Breadcrumbs fields that collapse into a single field. For example, if + you have the fields: "spouse", "sibling", and "sibling-in-law", you can + add the transitive chain . In other words, your spouse's sibling is your sibling-in-law.

Bulk Add Rules (Advanced)

Quickly add multiple rules using the shorthand syntax: [field-one, field-two] -> close-field. Each rule should be on a new line.

`),o0={hash:"svelte-91sdw2",code:`.border.svelte-91sdw2 {border-radius:var(--radius-m);border:var(--modal-border-width) solid + var(--background-modifier-border);}`};function Om(t,e){ae(e,!0),Ua(t,o0);let r=U(e,"plugin",7),o=We(kt(r().settings)),a=We(""),n=We(kt([...d(o).implied_relations.transitive])),s=kt(d(n).map(()=>!1)),i={save:()=>Yi(void 0,void 0,void 0,function*(){for(let{close_field:G}of d(n))if(!G)return new Ja.Notice("Closing field cannot be empty.");d(o).implied_relations.transitive=d(n),r().settings=pr(d(o)),yield Promise.all([r().saveSettings(),r().rebuildGraph()]),te(o,r().settings,!0)}),make_id:G=>`BC-transitive-rule-${G}`,scroll_to:G=>{var Y;return(Y=document.getElementById(i.make_id(G)))===null||Y===void 0?void 0:Y.scrollIntoView({behavior:"smooth"})},add_transitive:()=>{let G=d(n).push({name:"",chain:[],rounds:10,close_reversed:!1,close_field:d(o).edge_fields[0].label});s[G-1]=!0,setTimeout(()=>i.scroll_to(G-1),0),te(n,d(n),!0),d(o).is_dirty=!0},add_bulk:()=>{let G=document.getElementById("BC-transitive-bulk-str");if(!G)return new Ja.Notice("Could not find textarea.");let Y=G.value.trim();if(!Y)return new Ja.Notice("No rules to parse.");let De=gA(Y,` +`).filter(Boolean),T=De.map(r6).filter(_e=>_e.ok);if(T.length!==De.length)return new Ja.Notice("Some rules could not be parsed. Ensure you're using the correct syntax of `[field-one, field-two] -> close-field`, with each rule of a new line.");let M=T.map(_e=>o6({fields:r().settings.edge_fields}).safeParse(_e.data)),Z=M.filter(_e=>!_e.success);if(Z.length)return H.error("Bulk-add transitive rule errors >",Z.map(_e=>{var Ne;return _e.success?null:(Ne=_e.error)===null||Ne===void 0?void 0:Ne.issues})),new Ja.Notice("Some rules could not be parsed. Check the logs for more information.");M.forEach(_e=>{_e.success&&d(n).push(Object.assign(Object.assign({},_e.data),{name:"",rounds:10}))}),new Ja.Notice(`Bulk added ${M.length} rules \u2705`),te(n,d(n),!0),d(o).is_dirty=!0},copy_transitive:G=>{let Y=d(n).push(Object.assign(Object.assign({},d(n)[G]),{name:`${Tm(d(n)[G])} (copy)`}));s[Y-1]=!0,setTimeout(()=>i.scroll_to(Y-1),0),te(n,d(n),!0),d(o).is_dirty=!0},remove_transitive:G=>{te(n,d(n).filter((Y,De)=>De!==G),!0),d(o).is_dirty=!0},rename_transitive:(G,Y)=>{d(n)[G].name!==Y&&(d(n)[G].name=Y,te(n,d(n),!0),d(o).is_dirty=!0)},reorder_transitive:(G,Y)=>{let De=d(n)[G];d(n)[G]=d(n)[Y],d(n)[Y]=De,te(n,d(n),!0),d(o).is_dirty=!0},add_chain_field:(G,Y)=>{Y&&(d(n)[G].chain.push({field:Y.label}),te(n,d(n),!0),d(o).is_dirty=!0)},remove_chain_field:(G,Y)=>{d(n)[G].chain=d(n)[G].chain.filter((De,T)=>T!==Y),te(n,d(n),!0),d(o).is_dirty=!0},set_close_field:(G,Y)=>{Y&&(d(n)[G].close_field=Y.label,te(n,d(n),!0),d(o).is_dirty=!0)},set_rounds:(G,Y)=>{isNaN(Y)||Y<0||(d(n)[G].rounds=Y,te(n,d(n),!0),d(o).is_dirty=!0)},set_close_reversed:(G,Y)=>{d(n)[G].close_reversed=Y,te(n,d(n),!0),d(o).is_dirty=!0}},l={chain_field:(G,Y)=>De=>{let T=new Ja.Menu;T.addItem(M=>M.setTitle("Remove Field").setIcon("x").onClick(()=>i.remove_chain_field(G,Y))),T.showAtMouseEvent(De)}};var u=r0(),A=w(u),c=S(w(A),3),p=w(c,!0);b(c),sa(),b(A);var m=S(A,2),h=w(m);h.__click=function(...G){i.save?.apply(this,G)};var y=w(h);vs(y,{get size(){return 20}}),sa(),b(h);var I=S(h,2),F=w(I);io(F);var R=S(F,2);R.__click=[G$,a],b(I);var B=S(I,2);{var j=G=>{var Y=V$();Y.__click=[H$,i,n];var De=w(Y);Cn(De,{get size(){return 20}}),b(Y),v(G,Y)};se(B,G=>{d(n).length>3&&G(j)})}var E=S(B,2);{var D=G=>{var Y=U$();v(G,Y)};se(E,G=>{d(o).is_dirty&&G(D)})}b(m);var k=S(m,2),C=w(k);ot(C,17,()=>d(n).map((G,Y)=>({rule:G,rule_i:Y,name:Tm(G)})).filter(G=>G.name.includes(d(a).toLowerCase())),({rule:G,rule_i:Y,name:De})=>De+Y,(G,Y)=>{let De=()=>d(Y).rule,T=()=>d(Y).rule_i,M=()=>d(Y).name;var Z=t0(),_e=w(Z),Ne=w(_e),at=w(Ne);Ps(at,{get open(){return s[T()]}});var uo=S(at,2),Do=w(uo,!0);b(uo),b(Ne);var Jt=S(Ne,2),Vr=w(Jt);Vr.__click=[z$,i,T];var va=w(Vr);ed(va,{get size(){return 20}}),b(Vr);var bt=S(Vr,2);bt.__click=[W$,i,T];var Vt=w(bt);Cn(Vt,{get size(){return 20}}),b(bt);var Dt=S(bt,2);Dt.__click=[K$,i,T];var Ao=w(Dt);xs(Ao,{get size(){return 20}}),b(Dt);var tn=S(Dt,2);tn.__click=[Z$,i,T],b(Jt),b(_e);var ir=S(_e,2);so(ir,De,_t=>{var Mt=e0(),Er=w(Mt),Fo=S(w(Er),2);{var Xo=wt=>{var fo=Y$();ot(fo,23,()=>De().chain,(Zs,Ys)=>Ys+(Zs.field??""),(Zs,Ys,Td)=>{{let _=de(()=>d(Ys).field??""),x=de(()=>l.chain_field(T(),d(Td)));Ji(Zs,{get tag(){return d(_)},title:"Right click for more actions.",get oncontextmenu(){return d(x)}})}}),b(fo),v(wt,fo)},Qo=wt=>{var fo=J$();v(wt,fo)};se(Fo,wt=>{De().chain.length?wt(Xo):wt(Qo,!1)})}var rn=S(Fo,2);Xi(rn,{get fields(){return d(o).edge_fields},onselect:wt=>i.add_chain_field(T(),wt)}),b(Er);var ka=S(Er,2),Al=S(w(ka),2);{let wt=de(()=>d(o).edge_fields.find(fo=>fo.label===De().close_field));Xi(Al,{undefine_on_change:!1,get fields(){return d(o).edge_fields},get field(){return d(wt)},onselect:fo=>i.set_close_field(T(),fo)})}b(ka);var ba=S(ka,2),fl=S(w(ba),2);io(fl),fl.__click=[X$,i,T],b(ba);var dl=S(ba,2),wa=S(w(dl),2);io(wa),Xe(wa,"min",0),Xe(wa,"max",100),b(dl);var cl=S(dl,2),uA=S(w(cl),2),Ks=w(uA);io(Ks);var Bd=S(Ks,2);Bd.__click=[Q$,i,T],b(uA),b(cl);var Sd=S(cl,2);{var Cd=wt=>{Rs(wt,{get plugin(){return r()},type:"mermaid",get code(){return yo.from_transitive_rule(De()).mermaid}})};se(Sd,wt=>{s[T()]&&wt(Cd)})}b(Mt),oe(()=>{gs(wa,De().rounds),gs(Ks,De().name)}),km(fl,()=>De().close_reversed,wt=>De().close_reversed=wt),Va("blur",wa,wt=>i.set_rounds(T(),+wt.currentTarget.value)),Va("blur",Ks,wt=>i.rename_transitive(T(),wt.currentTarget.value)),v(_t,Mt)}),b(Z),oe(_t=>{Xe(Z,"id",_t),Fe(Do,M()),Vr.disabled=T()===0,bt.disabled=T()===d(n).length-1},[()=>i.make_id(T())]),js("open","toggle",Z,_t=>s[T()]=_t,()=>s[T()]),v(G,Z)});var P=S(C,2);P.__click=function(...G){i.add_transitive?.apply(this,G)};var le=w(P);Tn(le,{get size(){return 20}}),sa(),b(P);var xe=S(P,2),fe=S(w(xe),2),He=S(w(fe),4);He.__click=function(...G){i.add_bulk?.apply(this,G)},b(fe),b(xe),b(k),b(u),oe(G=>{Fe(p,G),R.disabled=d(a)===""},[()=>Qu({close_reversed:!1,close_field:"sibling-in-law",chain:[{field:"spouse"},{field:"sibling"}]})]),Sn(F,()=>d(a),G=>te(a,G)),v(t,u),ne()}Ke(["click"]);var n6=require("obsidian"),Hr=(t,e,r,o)=>{let a=r.get(),n=new n6.Setting(e).setName("Note display options").setDesc("How to display note links");return n.controlEl.addClasses(["flex","flex-wrap","gap-2"]),n.addToggle(s=>{s.toggleEl.before("Folder"),s.setTooltip("Folder path").setValue(a.folder).onChange(async i=>{a.folder=i,r.set(a),o?.save_and_refresh!==!1&&(await Promise.all([t.saveSettings()]),t.refreshViews())})}),n.addToggle(s=>{s.toggleEl.before("Extension"),s.setTooltip("File extension").setValue(a.ext).onChange(async i=>{a.ext=i,r.set(a),o?.save_and_refresh!==!1&&(await Promise.all([t.saveSettings()]),t.refreshViews())})}),n.addToggle(s=>{s.toggleEl.before("Alias"),s.setTooltip("Alias (first alias, if available)").setValue(a.alias).onChange(async i=>{a.alias=i,r.set(a),o?.save_and_refresh!==!1&&(await Promise.all([t.saveSettings()]),t.refreshViews())})}),n};var s6=(t,e)=>{Hr(t,e,{get:()=>t.settings.views.codeblocks.show_node_options,set:r=>t.settings.views.codeblocks.show_node_options=r})};var l6=require("obsidian");var i6=require("obsidian");function pe(t,e){let r=new i6.Setting(t);if(e.name&&r.setName(e.name),e.desc&&r.setDesc(e.desc),e.toggle)r.addToggle(o=>{o.setValue(e.toggle.value).onChange(e.toggle.cb)});else if(e.input)r.addText(o=>{e.input?.placeholder&&o.setPlaceholder(e.input.placeholder),o.setValue(e.input.value),o.inputEl.onblur=()=>{e.input.cb(o.getValue())}});else if(e.select)r.addDropdown(o=>{let a=Array.isArray(e.select.options)?e.select.options.reduce((n,s)=>(n[s]=s,n),{}):e.select.options;o.addOptions(a).setValue(e.select.value).onChange(e.select.cb)});else if(e.checklist){let o=r.controlEl.createEl("div",{attr:{class:"flex flex-wrap gap-3"}}),a={...e.checklist.options};Object.keys(e.checklist.options).forEach(n=>{let s={type:"checkbox"};e.checklist.options[n]&&(s.checked=!0),o.createEl("label",{text:n,cls:"flex items-center gap-1.5 grow"}).createEl("input",{attr:s},i=>{i.classList.add("shrink"),i.onchange=l=>{l.target instanceof HTMLInputElement&&(a[n]=l.target.checked,e.checklist.cb(a))}})})}return r}var u6=(t,e)=>{pe(e,{name:"Enabled",desc:"Look for date notes to use as edge sources",toggle:{value:t.settings.explicit_edge_sources.date_note.enabled,cb:async o=>{t.settings.explicit_edge_sources.date_note.enabled=o,await Promise.all([t.rebuildGraph(),t.saveSettings()])}}}),pe(e,{name:"Default Field",desc:"Field used to join date notes together. Breadcrumbs takes the current note's date, adds one day, and joins the two notes with this field.",select:{value:t.settings.explicit_edge_sources.date_note.default_field,options:t.settings.edge_fields.map(o=>o.label),cb:async o=>{t.settings.explicit_edge_sources.date_note.default_field=o,await Promise.all([t.rebuildGraph(),t.saveSettings()])}}});let r=new DocumentFragment;r.createEl("span",{},o=>o.innerHTML='Luxon date format to use'),pe(e,{name:"Date Format",desc:r,input:{value:t.settings.explicit_edge_sources.date_note.date_format,cb:async o=>{o?(t.settings.explicit_edge_sources.date_note.date_format=o,await Promise.all([t.rebuildGraph(),t.saveSettings()])):new l6.Notice("Date format cannot be empty")}}}),pe(e,{name:"Stretch to Existing",desc:"If there is a gap from one day to another, should the next note be the unresolved one in one day or should it 'stretch' to the next resolved (existing) note?",toggle:{value:t.settings.explicit_edge_sources.date_note.stretch_to_existing,cb:async o=>{t.settings.explicit_edge_sources.date_note.stretch_to_existing=o,await Promise.all([t.rebuildGraph(),t.saveSettings()])}}})};var A6=(t,e)=>{pe(e,{name:"Debug Level",desc:"Set the level of debug logging",select:{options:Nd,value:t.settings.debug.level,cb:async r=>{H.set_level(r),t.settings.debug.level=r,await t.saveSettings()}}})};var f6=require("obsidian");var d6=(t,e)=>{pe(e,{name:"Enabled",desc:"Look for dendron notes to use as edge sources",toggle:{value:t.settings.explicit_edge_sources.dendron_note.enabled,cb:async r=>{t.settings.explicit_edge_sources.dendron_note.enabled=r,await Promise.all([t.rebuildGraph(),t.saveSettings()])}}}),pe(e,{name:"Delimiter",desc:"Delimiter to use to split the note name",input:{value:t.settings.explicit_edge_sources.dendron_note.delimiter,cb:async r=>{r?(t.settings.explicit_edge_sources.dendron_note.delimiter=r,await Promise.all([t.rebuildGraph(),t.saveSettings()])):new f6.Notice("Delimiter cannot be empty")}}}),pe(e,{name:"Default Field",desc:"Field to use if the BC-dendron-note-field is not specified",select:{value:t.settings.explicit_edge_sources.dendron_note.default_field,options:t.settings.edge_fields.map(r=>r.label),cb:async r=>{t.settings.explicit_edge_sources.dendron_note.default_field=r,await Promise.all([t.rebuildGraph(),t.saveSettings()])}}}),pe(e,{name:"Display Trimmed",desc:"Display Dendron note names as the right-most split of the delimiter. e.g. `a.b.c` -> `c`",toggle:{value:t.settings.explicit_edge_sources.dendron_note.display_trimmed,cb:async r=>{t.settings.explicit_edge_sources.dendron_note.display_trimmed=r,await Promise.all([t.rebuildGraph(),t.saveSettings()])}}})};var Mm=require("obsidian");var c6=(t,e)=>{let{settings:r}=t;pe(e,{name:"Enabled",desc:"Whether to enable the edge field suggestor",toggle:{value:r.suggestors.edge_field.enabled,cb:async o=>{r.suggestors.edge_field.enabled=o,o&&new Mm.Notice("Please restart Obsidian for the changes to take effect"),await t.saveSettings()}}}),pe(e,{name:"Trigger String",desc:"The string that triggers the suggestor (when entered at the start of a line)",input:{value:r.suggestors.edge_field.trigger,cb:async o=>{if(!o){new Mm.Notice("Trigger string cannot be empty");return}r.suggestors.edge_field.trigger=o,await t.saveSettings()}}})};var p6=require("obsidian"),m6=({cb:t,value:e,edge_field_groups:r})=>{let o=new p6.Menu,a=r.map(s=>e.includes(s.label)),n=a.every(s=>s);return o.addItem(s=>s.setTitle(n?"None":"All").onClick(()=>{e=n?[]:r.map(i=>i.label),t(e)})),o.addSeparator(),r.forEach((s,i)=>{let l=a[i];o.addItem(u=>u.setTitle(s.label).setChecked(l).onClick(()=>{l?e=e.filter(A=>A!==s.label):e.push(s.label),t(e)}))}),o};var a0=(t,e,r)=>{m6({edge_field_groups:e.edge_field_groups,value:r(),cb:o=>r(o)}).showAtMouseEvent(t)},n0=q('');function Ls(t,e){ae(e,!0);let r=U(e,"cls",3,""),o=U(e,"field_group_labels",15);var a=n0();a.__click=[a0,e,o];var n=w(a);Gu(n,{get size(){return 20}}),b(a),oe(()=>ut(a,1,mr(r()))),v(t,a),ne()}Ke(["click"]);var s0=q('
');function Gs(t,e){"use strict";var r=s0(),o=w(r),a=w(o),n=w(a,!0);b(a);var s=S(a,2),i=w(s,!0);b(s),b(o);var l=S(o,2),u=w(l);Am(u,()=>e.children??or),b(l),b(r),oe(()=>{Fe(n,e.name),Fe(i,e.description)}),v(t,r)}function yr(t,e){ae(e,!0);let r=U(e,"name",3,"Field Groups"),o=U(e,"description",3,"Select the field groups to use for this traversal."),a=U(e,"field_group_labels",15),n=U(e,"select_cb",3,()=>{});jt(()=>{a()&&n()(a())}),Gs(t,{get name(){return r()},get description(){return o()},children:(s,i)=>{Ls(s,{get edge_field_groups(){return e.edge_field_groups},get field_group_labels(){return a()},set field_group_labels(l){a(l)}})},$$slots:{default:!0}}),ne()}var _6=(t,e)=>{let{settings:r}=t;pe(e,{name:"Destination",desc:"Where to write the frozen edges to",select:{options:["frontmatter","dataview-inline"],value:r.commands.freeze_implied_edges.default_options.destination,cb:async o=>{r.commands.freeze_implied_edges.default_options.destination=o,await t.saveSettings()}}}),Be(yr,{target:e,props:{name:"Included Field Groups",description:"Field groups to include when freezing edges.",edge_field_groups:t.settings.edge_field_groups,field_group_labels:t.settings.commands.freeze_implied_edges.default_options.included_fields,select_cb:async o=>{t.settings.commands.freeze_implied_edges.default_options.included_fields=o,await t.saveSettings()}}}),pe(e,{name:"Use Alias",desc:"Freeze implied edges using the first alias of the target node.",toggle:{value:r.commands.freeze_implied_edges.default_options.use_alias,cb:async o=>{r.commands.freeze_implied_edges.default_options.use_alias=o,await t.saveSettings()}}})};var Nm=require("obsidian");var h6=(t,e)=>{pe(e,{name:"Enable trail view",desc:"Show the trail view at the top of the page",toggle:{value:t.settings.views.page.trail.enabled,cb:async r=>{t.settings.views.page.trail.enabled=r,t.refreshViews(),await t.saveSettings()}}}),pe(e,{name:"Format",desc:"Format of the trail view",select:{value:t.settings.views.page.trail.format,options:["grid","path"],cb:async r=>{t.settings.views.page.trail.format=r,t.refreshViews(),await t.saveSettings()}}}),pe(e,{name:"Path Selection",desc:"How to select the path(s) to display in the trail view",select:{value:t.settings.views.page.trail.selection,options:["all","shortest","longest"],cb:async r=>{t.settings.views.page.trail.selection=r,t.refreshViews(),await t.saveSettings()}}}),pe(e,{name:"Default depth",desc:"Default depth of the trail view",input:{value:t.settings.views.page.trail.default_depth.toString(),cb:async r=>{let o=parseInt(r);if(isNaN(o)){new Nm.Notice("Depth must be a number");return}else if(o<0){new Nm.Notice("Depth must be a non-negative number");return}t.settings.views.page.trail.default_depth=o,t.refreshViews(),await t.saveSettings()}}}),Be(yr,{target:e,props:{edge_field_groups:t.settings.edge_field_groups,field_group_labels:t.settings.views.page.trail.field_group_labels,select_cb:async r=>{t.settings.views.page.trail.field_group_labels=r,t.refreshViews(),await t.saveSettings()}}}),pe(e,{name:"Merge Fields",desc:"Merge fields in the traversal, instead of keeping their paths separate",toggle:{value:t.settings.views.page.trail.merge_fields,cb:async r=>{t.settings.views.page.trail.merge_fields=r,t.refreshViews(),await t.saveSettings()}}}),pe(e,{name:"Show controls",desc:"Show controls to change the depth/format/path-selection of the trail view",toggle:{value:t.settings.views.page.trail.show_controls,cb:async r=>{t.settings.views.page.trail.show_controls=r,t.refreshViews(),await t.saveSettings()}}}),pe(e,{name:"No path message",desc:"Message to display when there is no path to display. Leave blank to hide the trail view when there is no path.",input:{value:t.settings.views.page.trail.no_path_message,cb:async r=>{t.settings.views.page.trail.no_path_message=r,t.refreshViews(),await t.saveSettings()}}}),Hr(t,e,{get:()=>t.settings.views.page.trail.show_node_options,set:r=>t.settings.views.page.trail.show_node_options=r})};var g6=require("obsidian");var j6=(t,e)=>{pe(e,{name:"Enabled",desc:"Look for Johnny.Decimal notes to use as edge sources",toggle:{value:t.settings.explicit_edge_sources.johnny_decimal_note.enabled,cb:async r=>{t.settings.explicit_edge_sources.johnny_decimal_note.enabled=r,await Promise.all([t.rebuildGraph(),t.saveSettings()])}}}),pe(e,{name:"Delimiter",desc:"Delimiter to use to split the note name",input:{value:t.settings.explicit_edge_sources.johnny_decimal_note.delimiter,cb:async r=>{r?(t.settings.explicit_edge_sources.johnny_decimal_note.delimiter=r,await Promise.all([t.rebuildGraph(),t.saveSettings()])):new g6.Notice("Delimiter cannot be empty")}}}),pe(e,{name:"Default Field",desc:"Field to use to point to next note in the Johnny.Decimal system",select:{value:t.settings.explicit_edge_sources.johnny_decimal_note.default_field,options:t.settings.edge_fields.map(r=>r.label),cb:async r=>{t.settings.explicit_edge_sources.johnny_decimal_note.default_field=r,await Promise.all([t.rebuildGraph(),t.saveSettings()])}}})};var x6=require("obsidian");var i0=[1,-1],v6=({cb:t,value:e,exclude_fields:r})=>{let o=new x6.Menu;return i0.forEach(a=>{o.addItem(n=>n.setTitle(`Order: ${a===1?"asc":"desc"}`).setChecked(e.order===a).onClick(()=>{e.order=a,t(e)}))}),o.addSeparator(),kA.filter(a=>!r?.includes(a)).forEach(a=>{o.addItem(n=>n.setTitle("Field: "+a).setChecked(e.field===a).onClick(()=>{e.field=a,t(e)}))}),o};var l0=(t,e,r)=>{v6({exclude_fields:e(),value:r(),cb:o=>r(o)}).showAtMouseEvent(t)},u0=q('');function Hs(t,e){ae(e,!0);let r=U(e,"edge_sort_id",15),o=U(e,"exclude_fields",19,()=>[]),a=U(e,"cls",3,"");var n=u0();n.__click=[l0,o,r];var s=w(n);{var i=u=>{Qf(u,{get size(){return 20}})},l=u=>{Xf(u,{get size(){return 20}})};se(s,u=>{r().order===1?u(i):u(l,!1)})}b(n),oe(()=>ut(n,1,`flex gap-1 ${a()??""}`)),v(t,n),ne()}Ke(["click"]);function Xa(t,e){ae(e,!0);let r=U(e,"edge_sort_id",15),o=U(e,"select_cb",3,()=>{});jt(()=>{r()&&o()(r())}),Gs(t,{name:"Edge Sort",description:"Select the sorting method for the edges in the graph.",children:(a,n)=>{Hs(a,{get edge_sort_id(){return r()},set edge_sort_id(s){r(s)}})},$$slots:{default:!0}}),ne()}var k6=require("obsidian");var b6=({cb:t,value:e,exclude_attributes:r})=>{let o=new k6.Menu,a=xl.filter(i=>!r?.includes(i)),n=a.length===e.length;o.addItem(i=>i.setTitle(n?"None":"All").onClick(()=>{t(n?[]:a)})),o.addSeparator();let s=i=>{let l=e.includes(i);o.addItem(u=>u.setTitle(i).setChecked(l).onClick(()=>{t(l?e.filter(A=>A!==i):[...e,i])}))};return["field","explicit"].filter(i=>!r?.includes(i)).forEach(s),o.addSeparator(),["source"].filter(i=>!r?.includes(i)).forEach(s),o.addSeparator(),["implied_kind","round"].filter(i=>!r?.includes(i)).forEach(s),o};var A0=(t,e,r)=>{b6({exclude_attributes:e(),value:r(),cb:o=>r(o)}).showAtMouseEvent(t)},f0=q('');function Vs(t,e){ae(e,!0);let r=U(e,"show_attributes",15),o=U(e,"exclude_attributes",19,()=>[]),a=U(e,"cls",3,"");!(o()===null||o()===void 0)&&o().length&&r(r().filter(i=>!(!(o()===null||o()===void 0)&&o().includes(i))));var n=f0();n.__click=[A0,o,r];var s=w(n);nd(s,{get size(){return 20}}),b(n),oe(()=>ut(n,1,mr(a()))),v(t,n),ne()}Ke(["click"]);function Qa(t,e){ae(e,!0);let r=U(e,"show_attributes",15),o=U(e,"exclude_attributes",19,()=>[]),a=U(e,"select_cb",3,()=>{});jt(()=>{r()&&a()(r())}),Gs(t,{name:"Show Attributes",description:"Select the edge attributes to show.",children:(n,s)=>{Vs(n,{get exclude_attributes(){return o()},get show_attributes(){return r()},set show_attributes(i){r(i)}})},$$slots:{default:!0}}),ne()}var md=["none","wiki","markdown"];var Cr=(t,e)=>ma(t.filter(r=>e.includes(r.label)).flatMap(r=>r.fields));var w6=(t,e)=>{let{settings:r}=t;Be(yr,{target:e,props:{edge_field_groups:t.settings.edge_field_groups,field_group_labels:r.commands.list_index.default_options.field_group_labels,select_cb:async o=>{r.commands.list_index.default_options.field_group_labels=o,r.commands.list_index.default_options.fields=Cr(t.settings.edge_field_groups,r.commands.list_index.default_options.field_group_labels),await t.saveSettings()}}}),pe(e,{name:"Link Kind",desc:"Format to use for links",select:{options:md,value:r.commands.list_index.default_options.link_kind,cb:async o=>{r.commands.list_index.default_options.link_kind=o,await t.saveSettings()}}}),pe(e,{name:"Indent",desc:"Indentation to use for each level",input:{value:r.commands.list_index.default_options.indent,cb:async o=>{r.commands.list_index.default_options.indent=o,await t.saveSettings()}}}),Be(Xa,{target:e,props:{edge_sort_id:r.commands.list_index.default_options.edge_sort_id,select_cb:async o=>{r.commands.list_index.default_options.edge_sort_id=o,await t.saveSettings()}}}),Be(Qa,{target:e,props:{show_attributes:r.commands.list_index.default_options.show_attributes,select_cb:async o=>{r.commands.list_index.default_options.show_attributes=o,await t.saveSettings()}}}),Hr(t,e,{get:()=>r.commands.list_index.default_options.show_node_options,set:o=>r.commands.list_index.default_options.show_node_options=o})};var y6=(t,e)=>{pe(e,{name:"Default Neighbour Field",desc:"Field to use to join neighbouring list items.",select:{value:t.settings.explicit_edge_sources.list_note.default_neighbour_field,options:[""].concat(t.settings.edge_fields.map(r=>r.label)),cb:async r=>{t.settings.explicit_edge_sources.list_note.default_neighbour_field=r,await Promise.all([t.rebuildGraph(),t.saveSettings()])}}})};var E6=(t,e)=>{pe(e,{name:"Collapse",desc:"Collapse the matrix by default",toggle:{value:t.settings.views.side.matrix.collapse,cb:async r=>{t.settings.views.side.matrix.collapse=r,t.refreshViews(),await t.saveSettings()}}}),Be(Xa,{target:e,props:{edge_sort_id:t.settings.views.side.matrix.edge_sort_id,select_cb:async r=>{t.settings.views.side.matrix.edge_sort_id=r,t.refreshViews(),await t.saveSettings()}}}),Be(Qa,{target:e,props:{exclude_attributes:["field","explicit"],show_attributes:t.settings.views.side.matrix.show_attributes,select_cb:async r=>{t.settings.views.side.matrix.show_attributes=r,t.refreshViews(),await t.saveSettings()}}}),Be(yr,{target:e,props:{edge_field_groups:t.settings.edge_field_groups,field_group_labels:t.settings.views.side.matrix.field_group_labels,select_cb:async r=>{t.settings.views.side.matrix.field_group_labels=r,t.refreshViews(),await t.saveSettings()}}}),pe(e,{name:"Lock View",desc:"Lock the matrix view to the current file",toggle:{value:t.settings.views.side.matrix.lock_view,cb:async r=>{t.settings.views.side.matrix.lock_view=r,t.refreshViews(),await t.saveSettings()}}}),pe(e,{name:"Lock Path",desc:"Path to lock the matrix view to (overrides current file)",input:{value:t.settings.views.side.matrix.lock_path,cb:async r=>{r?(t.settings.views.side.matrix.lock_path=r,await Promise.all([t.rebuildGraph(),t.saveSettings()])):t.settings.views.side.matrix.lock_path=r}}}),Hr(t,e,{get:()=>t.settings.views.side.matrix.show_node_options,set:r=>t.settings.views.side.matrix.show_node_options=r})};var I6=require("obsidian");var _d=require("obsidian");var d0=(t,e)=>{e.plugin.app.workspace.trigger("hover-link",{event:t,linktext:e.path,source:"breadcrumbs",targetEl:t.currentTarget,hoverParent:t.currentTarget.parentElement})},c0=(t,e)=>{let r=new _d.Menu;e.plugin.app.workspace.handleLinkContextMenu(r,e.display,e.path),r.showAtMouseEvent(t)},p0=(t,e)=>{e.plugin.app.workspace.openLinkText(e.path,"",_d.Keymap.isModEvent(t))},m0=q(' ');function tA(t,e){ae(e,!0);let[r,o]=Sr(),a=()=>Br(xt,"$active_file_store",r),n=U(e,"cls",3,""),s=mt.drop_ext(e.path),i=de(a);var l=m0();let u;l.__mouseover=[d0,e],l.__contextmenu=[c0,e],l.__click=[p0,e];var A=w(l,!0);b(l),oe(c=>{u=ut(l,1,`internal-link cursor-pointer ${n()??""}`,null,u,c),Xe(l,"data-href",e.path),Xe(l,"aria-label",s===e.display?"":e.path),Fe(A,e.display)},[()=>({"is-unresolved":!e.resolved,"BC-active-note":d(i)?.path===e.path})]),Va("auxclick",l,c=>{H.debug("on:auxclick e.button",c.button),c.button===1&&e.plugin.app.workspace.openLinkText(e.path,"","tab")}),v(t,l),ne(),o()}Ke(["mouseover","contextmenu","click"]);function ja(t,e){ae(e,!0);let r=U(e,"cls",3,""),o=e.edge.stringify_target(e.plugin.graph,e.node_stringify_options);{let a=de(()=>e.edge.target_path(e.plugin.graph)),n=de(()=>e.edge.target_resolved(e.plugin.graph)),s=de(r),i=de(()=>e.edge.explicit(e.plugin.graph)?"BC-edge-explicit":`BC-edge-implied BC-edge-implied-${e.edge.edge_source}`);tA(t,{get plugin(){return e.plugin},get display(){return o},get path(){return d(a)},get resolved(){return d(n)},get cls(){return`${d(s)??""} BC-edge ${d(i)??""}`}})}ne()}var _0=q('
'),h0=q('
'),g0=q('
',1),j0=q('
'),x0={hash:"svelte-1hm32zs",code:".BC-prev-next-view.svelte-1hm32zs > div:where(.svelte-1hm32zs) {border:1px solid var(--background-modifier-border);}.BC-prev-next-view.svelte-1hm32zs .flex-col:where(.svelte-1hm32zs) {background-color:var(--background-primary);}"};function qm(t,e){ae(e,!0),Ua(t,x0);let{field_group_labels:r,show_node_options:o}=e.plugin.settings.views.page.prev_next,a=hr(e.plugin.settings,o),n={prev:Cr(e.plugin.settings.edge_field_groups,r.prev),next:Cr(e.plugin.settings.edge_field_groups,r.next)},s=ma([...n.prev,...n.next]),i=e.plugin.graph.has_node(e.file_path)?ld(e.plugin.graph.get_filtered_outgoing_edges(e.file_path,s).get_edges(),c=>n.prev.includes(c.edge_type)?"prev":"next"):null;var l=j0(),u=w(l);{var A=c=>{var p=g0(),m=K(p);ot(m,21,()=>i?.prev??[],lt,(y,I)=>{var F=_0(),R=w(F),B=w(R,!0);b(R);var j=S(R,2);ja(j,{cls:"grow",get edge(){return d(I)},get plugin(){return e.plugin},get node_stringify_options(){return a}}),b(F),oe(()=>Fe(B,d(I).edge_type)),v(y,F)}),b(m);var h=S(m,2);ot(h,21,()=>i?.next??[],lt,(y,I)=>{var F=h0(),R=w(F);ja(R,{cls:"grow",get edge(){return d(I)},get plugin(){return e.plugin},get node_stringify_options(){return a}});var B=S(R,2),j=w(B,!0);b(B),b(F),oe(()=>Fe(j,d(I).edge_type)),v(y,F)}),b(h),v(c,p)};se(u,c=>{(i?.prev?.length||i?.next?.length)&&c(A)})}b(l),v(t,l),ne()}var v0=(t,e)=>e(!e()),k0=q("");function rA(t,e){ae(e,!0);let r=U(e,"cls",3,""),o=U(e,"merge_fields",15);var a=k0();a.__click=[v0,o];var n=w(a);{var s=l=>{zu(l,{get size(){return 20}})},i=l=>{Ku(l,{get size(){return 20}})};se(n,l=>{o()?l(s):l(i,!1)})}b(a),oe(()=>{ut(a,1,mr(r())),Xe(a,"aria-label",o()?"Separate Fields":"Merge Fields")}),v(t,a),ne()}Ke(["click"]);var b0=q('
'),w0=q('
'),y0={hash:"svelte-fwuhs",code:` + /* Handles the outer border, with some rounding */.BC-trail-view.svelte-fwuhs { + /* Don't let the inner cell borders overlow */overflow:hidden;border-radius:var(--radius-m);border:1px solid var(--background-modifier-border);background-color:var(--background-primary);}.BC-trail-view-item.svelte-fwuhs { + /* Undo the effect of the double border on the top and right side */margin:-1px -1px 0 0; + /* Only add borders on the top and right sides, to avoid inner duplications, and some outer duplicates */border-right:1px solid var(--background-modifier-border);border-top:1px solid var(--background-modifier-border);}`};function Pm(t,e){ae(e,!0),Ua(t,y0);let r=e.all_paths.map(i=>i.reverse_edges),o=Bv(r,null,!0),a=Sv(o).map(i=>Cv(i,l=>l?l.target_path(e.plugin.graph):null)),n=hr(e.plugin.settings,e.plugin.settings.views.page.trail.show_node_options);var s=w0();ot(s,21,()=>a,lt,(i,l,u)=>{var A=J(),c=K(A);ot(c,17,()=>d(l),lt,(p,m)=>{let h=()=>d(m).first,y=()=>d(m).last,I=de(()=>o[h()][u]);var F=b0(),R=w(F);{var B=j=>{ja(j,{get edge(){return d(I)},get plugin(){return e.plugin},cls:"p-1 grow flex justify-center items-center",get node_stringify_options(){return n}})};se(R,j=>{d(I)&&j(B)})}b(F),oe(()=>Ui(F,` + grid-area: ${h()+1} / ${u+1} / ${y()+2} / ${u+2};`)),v(p,F)}),v(i,A)}),b(s),oe(i=>Ui(s,`grid-template-rows: min-content; +grid-template-columns: ${i??""};`),[()=>"1fr ".repeat(o.at(0)?.length??0)]),v(t,s),ne()}var E0=q(''),I0=q('
'),$0=q('
'),D0=q('
'),F0={hash:"svelte-13n7zkv",code:'.BC-trail-view.svelte-13n7zkv {overflow:hidden;border-radius:var(--radius-m);border:1px solid var(--background-modifier-border);background-color:var(--background-primary);}.BC-trail-view-item-separator.svelte-13n7zkv::before {content:">";}'};function Rm(t,e){ae(e,!0),Ua(t,F0);let r=hr(e.plugin.settings,e.plugin.settings.views.page.trail.show_node_options),o=e.all_paths.map(n=>n.reverse_edges);var a=D0();ot(a,21,()=>o,lt,(n,s)=>{var i=$0();ot(i,21,()=>d(s),lt,(l,u,A)=>{var c=I0(),p=w(c);{var m=y=>{var I=E0();oe(F=>Xe(I,"aria-label",F),[()=>d(u).get_attribute_label(e.plugin.graph,["source","implied_kind","round"])]),v(y,I)};se(p,y=>{A!==0&&y(m)})}var h=S(p,2);ja(h,{get edge(){return d(u)},get plugin(){return e.plugin},get node_stringify_options(){return r}}),b(c),v(l,c)}),b(i),v(n,i)}),b(a),v(t,a),ne()}var B0=async(t,e)=>await e().saveSettings(),S0=q(""),C0=async(t,e)=>await e().saveSettings(),T0=q(""),O0=(t,e)=>te(e,Math.max(1,d(e)-1),!0),M0=(t,e,r)=>te(e,Math.min(d(r),d(e)+1),!0),N0=q('
',1),q0=q('

'),P0=q("
");function Lm(t,e){ae(e,!0);var r,o,a;let n=U(e,"plugin",15);H.debug("Rendering Trail page view for file:",e.file_path);let s=kt(structuredClone(pr(n().settings.views.page.trail))),i=!0;jt(()=>{if(i){i=!1;return}n(n().settings.views.page.trail=pr(s),!0),Re(()=>void n().saveSettings())});let l=de(()=>{let h=Cr(n().settings.edge_field_groups,n().settings.views.page.trail.field_group_labels),y=new Nt([e.file_path],h,5,100,!s.merge_fields,void 0),I=n().graph.rec_traverse(y);return{selected_paths:I.to_paths().select(s.selection),hit_depth_limit:I.hit_depth_limit}}),u=de(()=>Math.max(0,(o=(r=d(l).selected_paths)===null||r===void 0?void 0:r.max_depth())!==null&&o!==void 0?o:0)),A=We(0);jt(()=>{te(A,Math.min(d(u),n().settings.views.page.trail.default_depth),!0)});let c=de(()=>(a=d(l).selected_paths)===null||a===void 0?void 0:a.process(n().graph,d(A)));var p=P0(),m=w(p);so(m,()=>d(c),h=>{var y=J(),I=K(y);{var F=B=>{var j=N0(),E=K(j);let D;var k=w(E);k.__change=[B0,n],ot(k,20,()=>["grid","path"],lt,(M,Z)=>{var _e=S0(),Ne=w(_e,!0);b(_e);var at={};oe(()=>{Fe(Ne,Z),at!==(at=Z)&&(_e.value=(_e.__value=Z)??"")}),v(M,_e)}),b(k);var C=S(k,2);C.__change=[C0,n],ot(C,20,()=>["all","shortest","longest"],lt,(M,Z)=>{var _e=T0(),Ne=w(_e,!0);b(_e);var at={};oe(()=>{Fe(Ne,Z),at!==(at=Z)&&(_e.value=(_e.__value=Z)??"")}),v(M,_e)}),b(C);var P=S(C,2);rA(P,{get merge_fields(){return s.merge_fields},set merge_fields(M){s.merge_fields=M}});var le=S(P,2),xe=w(le);xe.__click=[O0,A];var fe=S(xe,2),He=w(fe);b(fe);var G=S(fe,2);G.__click=[M0,A,u],b(le),b(E);var Y=S(E,2);{var De=M=>{Pm(M,{get plugin(){return n()},get all_paths(){return d(c)}})},T=M=>{var Z=J(),_e=K(Z);{var Ne=at=>{Rm(at,{get plugin(){return n()},get all_paths(){return d(c)}})};se(_e,at=>{s.format==="path"&&at(Ne)},!0)}v(M,Z)};se(Y,M=>{s.format==="grid"?M(De):M(T,!1)})}oe(M=>{D=ut(E,1,"mb-1 flex flex-wrap justify-between gap-3",null,D,M),xe.disabled=d(A)<=1,Xe(fe,"aria-label",d(l).hit_depth_limit?"Some paths have been truncated":""),Fe(He,`${d(A)??""}/${d(u)??""} + ${d(l).hit_depth_limit?" (truncated)":""}`),G.disabled=d(A)>=d(u)},[()=>({hidden:!n().settings.views.page.trail.show_controls})]),zf(k,()=>s.format,M=>s.format=M),zf(C,()=>s.selection,M=>s.selection=M),v(B,j)},R=B=>{var j=J(),E=K(j);{var D=k=>{var C=q0(),P=w(C,!0);b(C),oe(()=>Fe(P,n().settings.views.page.trail.no_path_message)),v(k,C)};se(E,k=>{n().settings.views.page.trail.no_path_message&&k(D)},!0)}v(B,j)};se(I,B=>{d(c)&&d(c).length?B(F):B(R,!1)})}v(h,y)}),b(p),v(t,p),ne()}Ke(["change","click"]);var R0=q('
');function Gm(t,e){ae(e,!0);let r=e.plugin.settings.views.page.trail.enabled,o=e.plugin.settings.views.page.prev_next.enabled;var a=J(),n=K(a);{var s=i=>{var l=R0(),u=w(l);{var A=m=>{Lm(m,{get plugin(){return e.plugin},get file_path(){return e.file_path}})};se(u,m=>{r&&m(A)})}var c=S(u,2);{var p=m=>{qm(m,{get plugin(){return e.plugin},get file_path(){return e.file_path}})};se(c,m=>{o&&m(p)})}b(l),v(i,l)};se(n,i=>{(r||o)&&i(s)})}v(t,a),ne()}function oA(t){let e=t.app.workspace.getLeavesOfType("markdown");if(!e.length){H.info("redraw_page_views > No markdown views found");return}e.forEach(r=>{if(!(r.view instanceof I6.MarkdownView))return;let o=r.view,a=o.getMode(),n=o.containerEl.querySelector(".BC-page-views")??o.containerEl.createDiv({cls:"BC-page-views w-full mx-auto"}),s=t.settings.views.page.all.readable_line_width?"var(--file-line-width)":"none";if(n.setAttribute("style",`max-width: ${s};`),n.classList.toggle("BC-page-views-sticky",t.settings.views.page.all.sticky),n.empty(),a==="preview"){let i=o.containerEl.querySelector(".markdown-reading-view > .markdown-preview-view");if(!i){H.info("redraw_page_views > No view_parent (mode=preview)");return}i.insertBefore(n,i.firstChild)}else{let i=o.containerEl.querySelector(".cm-scroller");if(!i){H.info("redraw_page_views > No view_parent (mode=source)");return}i.addClass("flex-col"),i.insertBefore(n,i.firstChild)}Be(Gm,{target:n,props:{plugin:t,file_path:o.file?.path??""}})})}var $6=(t,e)=>{pe(e,{name:"Sticky",desc:"Keep the page views pinned to the top of the note as you scroll",toggle:{value:t.settings.views.page.all.sticky,cb:async r=>{t.settings.views.page.all.sticky=r,await t.saveSettings(),oA(t)}}}),pe(e,{name:"Readable line width",desc:"Limit to the width of the text in the editor",toggle:{value:t.settings.views.page.all.readable_line_width,cb:async r=>{t.settings.views.page.all.readable_line_width=r,await t.saveSettings(),oA(t)}}})};var D6=require("obsidian");var F6=(t,e)=>{new D6.Setting(e).setName("Enable Previous/Next view").setDesc("Show the Previous/Next view at the top of the page").addToggle(r=>{r.setValue(t.settings.views.page.prev_next.enabled).onChange(async o=>{t.settings.views.page.prev_next.enabled=o,t.refreshViews(),await t.saveSettings()})}),Be(yr,{target:e,props:{name:"Field Groups for Left",description:"Select the field groups to show in the left side of this view",edge_field_groups:t.settings.edge_field_groups,field_group_labels:t.settings.views.page.prev_next.field_group_labels.prev,select_cb:async r=>{t.settings.views.page.prev_next.field_group_labels.prev=r,t.refreshViews(),await t.saveSettings()}}}),Be(yr,{target:e,props:{name:"Field Groups for Right",description:"Select the field groups to show in the right side of this view",edge_field_groups:t.settings.edge_field_groups,field_group_labels:t.settings.views.page.prev_next.field_group_labels.next,select_cb:async r=>{t.settings.views.page.prev_next.field_group_labels.next=r,t.refreshViews(),await t.saveSettings()}}}),Hr(t,e,{get:()=>t.settings.views.page.prev_next.show_node_options,set:r=>t.settings.views.page.prev_next.show_node_options=r})};var B6=(t,e)=>{pe(e,{name:"Notify on refresh",desc:"Show a notification when the graph is rebuilt",toggle:{value:t.settings.commands.rebuild_graph.notify,cb:async r=>{t.settings.commands.rebuild_graph.notify=r,await Promise.all([t.saveSettings(),t.rebuildGraph()])}}}),pe(e,{name:"Triggers",desc:"When to rebuild the graph",checklist:{options:{note_save:t.settings.commands.rebuild_graph.trigger.note_save,layout_change:t.settings.commands.rebuild_graph.trigger.layout_change},cb:async r=>{t.settings.commands.rebuild_graph.trigger=r,await Promise.all([t.saveSettings(),t.rebuildGraph()])}}})};var S6=(t,e)=>{pe(e,{name:"Default Field",desc:"Field to use if the BC-regex-note-field is not specified",select:{value:t.settings.explicit_edge_sources.regex_note.default_field,options:t.settings.edge_fields.map(r=>r.label),cb:async r=>{t.settings.explicit_edge_sources.regex_note.default_field=r,await Promise.all([t.rebuildGraph(),t.saveSettings()])}}})};var C6=(t,e)=>{pe(e,{name:"Default Field",desc:"Field to use if the BC-tag-note-field is not specified",select:{value:t.settings.explicit_edge_sources.tag_note.default_field,options:t.settings.edge_fields.map(r=>r.label),cb:async r=>{t.settings.explicit_edge_sources.tag_note.default_field=r,await Promise.all([t.rebuildGraph(),t.saveSettings()])}}})};var T6=(t,e)=>{let{settings:r}=t;pe(e,{name:"Destination",desc:"Where to write the new edge to",select:{options:["frontmatter","dataview-inline","none"],value:r.commands.thread.default_options.destination,cb:async o=>{r.commands.thread.default_options.destination=o,await t.saveSettings()}}}),pe(e,{name:"Target Path Template",desc:"The template to use for the target path. You don't need to add the .md extension.",input:{value:r.commands.thread.default_options.target_path_template,cb:async o=>{r.commands.thread.default_options.target_path_template=o,await t.saveSettings()}}})};var $W=require("obsidian"),O6=(t,e)=>{pe(e,{name:"Collapse",desc:"Collapse the tree by default",toggle:{value:t.settings.views.side.tree.collapse,cb:async r=>{t.settings.views.side.tree.collapse=r,t.refreshViews(),await t.saveSettings()}}}),Be(Xa,{target:e,props:{edge_sort_id:t.settings.views.side.tree.edge_sort_id,select_cb:async r=>{t.settings.views.side.tree.edge_sort_id=r,t.refreshViews(),await t.saveSettings()}}}),Be(Qa,{target:e,props:{show_attributes:t.settings.views.side.tree.show_attributes,select_cb:async r=>{t.settings.views.side.tree.show_attributes=r,t.refreshViews(),await t.saveSettings()}}}),Be(yr,{target:e,props:{edge_field_groups:t.settings.edge_field_groups,field_group_labels:t.settings.views.side.tree.field_group_labels,select_cb:async r=>{t.settings.views.side.tree.field_group_labels=r,t.refreshViews(),await t.saveSettings()}}}),pe(e,{name:"Merge Fields",desc:"Merge fields in the traversal, instead of keeping their paths separate",toggle:{value:t.settings.views.side.tree.merge_fields,cb:async r=>{t.settings.views.side.tree.merge_fields=r,t.refreshViews(),await t.saveSettings()}}}),pe(e,{name:"Lock View",desc:"Lock the tree view to the current file",toggle:{value:t.settings.views.side.tree.lock_view,cb:async r=>{t.settings.views.side.tree.lock_view=r,t.refreshViews(),await t.saveSettings()}}}),pe(e,{name:"Lock Path",desc:"Path to lock the tree view to (overrides current file)",input:{value:t.settings.views.side.tree.lock_path,cb:async r=>{r?(t.settings.views.side.tree.lock_path=r,await Promise.all([t.rebuildGraph(),t.saveSettings()])):t.settings.views.side.tree.lock_path=r}}}),Hr(t,e,{get:()=>t.settings.views.side.tree.show_node_options,set:r=>t.settings.views.side.tree.show_node_options=r})};function sr(t,e){let r=t.createEl("details",{cls:"tree-item",...e?.d}),o=r.createEl("summary",{cls:"text-xl p-1 tree-item-self is-clickable",...e?.s}),a=r.createEl("div",{cls:"tree-item-children pl-4"});return{details:r,summary:o,children:a}}var hd=class extends gd.PluginSettingTab{constructor(r,o){super(r,o);this.components=[];this.plugin=o}display(){let{containerEl:r,plugin:o}=this;r.empty(),r.addClass("BC-settings-tab"),this.components.push(Be(Fm,{props:{plugin:o},target:sr(r,{s:{text:"> Edge Fields"}}).children})),r.createEl("hr"),r.createEl("h3",{text:"Implied Relations"}),this.components.push(Be(Om,{props:{plugin:o},target:sr(r,{s:{text:"> Transitive"}}).children})),r.createEl("hr"),r.createEl("h3",{text:"Edge Sources"}),C6(o,sr(r,{s:{text:"> Tag Notes"}}).children),y6(o,sr(r,{s:{text:"> List Notes"}}).children),u6(o,sr(r,{s:{text:"> Date Notes"}}).children),S6(o,sr(r,{s:{text:"> Regex Notes"}}).children),d6(o,sr(r,{s:{text:"> Dendron Notes"}}).children),j6(o,sr(r,{s:{text:"> Johnny.Decimal Notes"}}).children),r.createEl("hr"),r.createEl("h3",{text:"Views"}),E6(o,sr(r,{s:{text:"> Matrix"}}).children);let a=sr(r,{s:{text:"> Page"}}).children;a.createEl("h5",{text:"General"}),$6(o,a),a.createEl("h5",{text:"Trail"}),h6(o,a),a.createEl("h5",{text:"Previous/Next"}),F6(o,a),O6(o,sr(r,{s:{text:"> Tree"}}).children),s6(o,sr(r,{s:{text:"> Codeblocks"}}).children),r.createEl("hr"),r.createEl("h3",{text:"Commands"}),B6(o,sr(r,{s:{text:"> Rebuild Graph"}}).children),w6(o,sr(r,{s:{text:"> List Index"}}).children),_6(o,sr(r,{s:{text:"> Freeze Implied Edges"}}).children),T6(o,sr(r,{s:{text:"> Thread"}}).children),r.createEl("hr"),r.createEl("h3",{text:"Suggestors"}),c6(o,sr(r,{s:{text:"> Edge Field Suggestor"}}).children),r.createEl("hr"),A6(o,sr(r,{s:{text:"> Debug"}}).children)}hide(){this.plugin.settings.is_dirty&&new gd.Notice("\u26A0\uFE0F Exited without saving settings. Your changes are still in effect, but were not saved. Go back and click 'Save' if you want them to persist. Otherwise, reload Obsidian to revert to the last saved settings."),this.components.forEach(r=>void Yo(r))}};var M6=require("obsidian");var L0=(t,e)=>e(!e()),G0=q("");function aA(t,e){ae(e,!0);let r=U(e,"cls",3,""),o=U(e,"collapse",15);var a=G0();a.__click=[L0,o];var n=w(a);{var s=l=>{od(l,{get size(){return 20}})},i=l=>{ad(l,{get size(){return 20}})};se(n,l=>{o()?l(s):l(i,!1)})}b(a),oe(()=>{ut(a,1,mr(r())),Xe(a,"aria-label",o()?"Expand":"Collapse")}),v(t,a),ne()}Ke(["click"]);var H0=(t,e)=>e(!e()),V0=q("");function nA(t,e){ae(e,!0);let r=U(e,"cls",3,""),o=U(e,"lock_view",15),a=U(e,"lock_path",15);jt(()=>{!o()&&e.active_path&&(a(e.active_path),H.debug("Setting lock_path to active_path:",a()))});var n=V0();n.__click=[H0,o];var s=w(n);{var i=u=>{Uu(u,{get size(){return 20}})},l=u=>{Vu(u,{get size(){return 20}})};se(s,u=>{o()?u(i):u(l,!1)})}b(n),oe(()=>{ut(n,1,mr(r())),Xe(n,"aria-label",o()?"Locked View":"Dynamic View")}),v(t,n),ne()}Ke(["click"]);var U0=(t,e)=>e.plugin.rebuildGraph(),z0=q('');function sA(t,e){ae(e,!0);let r=U(e,"cls",3,"");var o=z0();o.__click=[U0,e];var a=w(o);sd(a,{get size(){return 20}}),b(o),oe(()=>ut(o,1,mr(r()))),v(t,o),ne()}Ke(["click"]);var W0=q('
');function iA(t,e){"use strict";let r=U(e,"cls",3,""),o=U(e,"label",3,""),a=U(e,"aria_label",3,"");var n=W0(),s=w(n),i=w(s,!0);b(s),b(n),oe(()=>{ut(s,1,`${r()??""} tree-item-flair`),Xe(s,"aria-label",a()),Fe(i,o())}),v(t,n)}var K0=q('
'),Z0=q('
');function Hm(t,e){ae(e,!0);let r=U(e,"open",15),{show_node_options:o}=e.plugin.settings.views.side.matrix,a=hr(e.plugin.settings,o);var n=Z0(),s=w(n),i=w(s),l=w(i);Ps(l,{get open(){return r()}}),b(i);var u=S(i,2),A=w(u),c=w(A,!0);b(A),b(u);var p=S(u,2),m=w(p),h=w(m,!0);b(m),b(p),b(s);var y=S(s,2),I=w(y);so(I,()=>e.edges,F=>{var R=J(),B=K(R);ot(B,17,()=>e.edges,lt,(j,E)=>{var D=K0(),k=w(D),C=w(k),P=w(C);ja(P,{get edge(){return d(E)},get plugin(){return e.plugin},get node_stringify_options(){return a},cls:"grow tree-item-inner-text"}),b(C);var le=S(C,2);{let xe=de(()=>d(E).explicit(e.plugin.graph)?"x":"i"),fe=de(()=>d(E).get_attribute_label(e.plugin.graph,e.show_attributes));iA(le,{cls:"font-mono",get label(){return d(xe)},get aria_label(){return d(fe)}})}b(k),b(D),v(j,D)}),v(F,R)}),b(y),b(n),oe(()=>{ut(n,1,`BC-matrix-view-field BC-matrix-view-field-${e.field.label??""} tree-item`),Fe(c,e.field.label),Fe(h,e.edges.length)}),js("open","toggle",n,r,r),v(t,n),ne()}var Y0=q("
"),J0=q('

No outgoings edges

'),X0=q('
');function Vm(t,e){ae(e,!0);let[r,o]=Sr(),a=()=>Br(xt,"$active_file_store",r),n=U(e,"plugin",7);H.debug("Rendering Matrix side view");let s=kt(structuredClone(pr(n().settings.views.side.matrix))),i=!0;jt(()=>{if(n().settings.views.side.matrix=pr(s),Re(()=>void n().saveSettings()),i){i=!1;return}});let l=de(()=>Cr(n().settings.edge_field_groups,s.field_group_labels)),u=de(a),A=de(()=>d(u)&&n().graph.has_node(d(u).path)?s.lock_view&&n().graph.has_node(s.lock_path)?(H.debug("Using locked path for MatrixView:",s.lock_path),n().graph.get_filtered_grouped_outgoing_edges(s.lock_path,d(l))):n().graph.get_filtered_grouped_outgoing_edges(d(u).path,d(l)):null),c=de(()=>po(s.edge_sort_id.field,s.edge_sort_id.order===-1));var p=X0(),m=w(p),h=w(m),y=w(h);sA(y,{cls:"clickable-icon nav-action-button",get plugin(){return n()}});var I=S(y,2);{let D=de(()=>d(u)?.path);nA(I,{cls:"clickable-icon nav-action-button",get active_path(){return d(D)},get lock_view(){return s.lock_view},set lock_view(k){s.lock_view=k},get lock_path(){return s.lock_path},set lock_path(k){s.lock_path=k}})}var F=S(I,2);Hs(F,{cls:"clickable-icon nav-action-button",exclude_fields:["field","neighbour-field:"],get edge_sort_id(){return s.edge_sort_id},set edge_sort_id(D){s.edge_sort_id=D}});var R=S(F,2);aA(R,{cls:"clickable-icon nav-action-button",get collapse(){return s.collapse},set collapse(D){s.collapse=D}});var B=S(R,2);Vs(B,{cls:"clickable-icon nav-action-button",exclude_attributes:["field","explicit"],get show_attributes(){return s.show_attributes},set show_attributes(D){s.show_attributes=D}});var j=S(B,2);Ls(j,{cls:"clickable-icon nav-action-button",get edge_field_groups(){return n().settings.edge_field_groups},get field_group_labels(){return s.field_group_labels},set field_group_labels(D){s.field_group_labels=D}}),b(h),b(m);var E=S(m,2);so(E,()=>d(A),D=>{var k=J(),C=K(k);{var P=xe=>{var fe=Y0();ot(fe,21,()=>n().settings.edge_fields,lt,(He,G)=>{let Y=de(()=>d(A).get_sorted_edges(d(G).label,n().graph,d(c)));var De=J(),T=K(De);{var M=Z=>{{let _e=de(()=>!s.collapse);Hm(Z,{get edges(){return d(Y)},get field(){return d(G)},get plugin(){return n()},get show_attributes(){return s.show_attributes},get open(){return d(_e)}})}};se(T,Z=>{d(Y)?.length&&Z(M)})}v(He,De)}),b(fe),v(xe,fe)},le=xe=>{var fe=J0();v(xe,fe)};se(C,xe=>{d(A)?xe(P):xe(le,!1)})}v(D,k)}),b(p),v(t,p),ne(),o()}var jd=class extends M6.ItemView{constructor(r,o){super(r);this.icon="blinds";this.plugin=o}getViewType(){return ea.matrix}getDisplayText(){return"Matrix view"}onload(){this.registerEvent(this.plugin.events.on("redraw-side-views",()=>{this.onOpen()}))}async onOpen(){this.containerEl.children[1].empty(),this.component=Be(Vm,{target:this.contentEl,props:{plugin:this.plugin}})}async onClose(){this.component&&await Yo(this.component)}};var N6=t_("AGFzbQEAAAAB1ARIYAJ/fwF/YAN/f38Bf2ACf38AYAACf39gAX8AYAN/f38AYAF/An9/YAF/AX9gAAN/f39gAAR/f39/YAABf2AFf39/f38AYAR/f39/AGAFf39/f38Bf2AAAGAGf39/f39/AGACf38Df39/YAF/AW9gAW8Bf2AHf39/f39/fwBgAn9vAGAEf39/fwF/YAR/f39/BH9/f39gA39/fwR/f39/YAJ/fwR/f39/YANvf38AYAABb2ACf34AYAZ/f39/f38Bf2AHf39/f39/fwF/YAN/f38Df39/YAN/f38Cf39gAn9/An9/YAJ/fwFvYAJ/fwF+YAN/f38BfmAJf39/f39/f39/AX9gAX8BfmABbwFvYAFvAXxgAm9vAW9gA29vbwFvYANvb28Bf2AIf39/f39/f38AYAp/f39/f39/f39/AGAHf39+fn5+fgF+YAJ+fwF/YA5/f39/f39/f39/f39/fwF/YAl/f39/f39+fn4AYAV/f35+fgF+YBd/f39/f39/f39/f39/f39/f39/f39/fwF/YAN/f34Bf2ATf39/f39/f39/f39/f39/f39/fwF/YAt/f39/f39/f39/fwF/YAN/fn4AYAh/f39/f39/fwF/YAABfmAEf35+fwBgAXwBfGAFf39/f38Ef39/f2AGf39/f39/A39/f2AHf39/f39/fwJ/f2AFf39/f38Df39/YAR/f39/A39/f2ABfwN/f39gBX9/fn9/AGAEf35/fwBgBX9/fH9/AGAEf3x/fwBgBX9/fX9/AGAEf31/fwBgAX8BfAKGCiUDd2JnG19fd2JnX2luZm9fMzk4YmY1ZDIxMTQwO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AiAigCCCIDRg0BIAMgADYCDCAAIAM2AggMAgsgBUHAo8EAKAIATQ0IIAENAkG8o8EAKAIAIgBFDQggAGhBAnRBoKDBAGooAgAiAigCBEF4cSAFayEDIAIhAQNAAkAgASgCECIADQAgASgCFCIADQAgAigCGCEGAkACQCACIAIoAgwiAEYEQCACQRRBECACKAIUIgAbaigCACIBDQFBACEADAILIAIoAggiASAANgIMIAAgATYCCAwBCyACQRRqIAJBEGogABshBANAIAQhByABIgBBFGogAEEQaiAAKAIUIgEbIQQgAEEUQRAgARtqKAIAIgENAAsgB0EANgIACyAGRQ0GAkAgAigCHEECdEGgoMEAaiIBKAIAIAJHBEAgAiAGKAIQRwRAIAYgADYCFCAADQIMCQsgBiAANgIQIAANAQwICyABIAA2AgAgAEUNBgsgACAGNgIYIAIoAhAiAQRAIAAgATYCECABIAA2AhgLIAIoAhQiAUUNBiAAIAE2AhQgASAANgIYDAYLIAAoAgRBeHEgBWsiASADIAEgA0kiARshAyAAIAIgARshAiAAIQEMAAsAC0G4o8EAIARBfiAHd3E2AgALIAJBCGohACACIAFBA3I2AgQgASACaiIBIAEoAgRBAXI2AgQMBwsCQEECIAB0IgJBACACa3IgASAAdHFoIgdBA3QiAUGwocEAaiICIAFBuKHBAGooAgAiACgCCCIDRwRAIAMgAjYCDCACIAM2AggMAQtBuKPBACAEQX4gB3dxNgIACyAAIAVBA3I2AgQgACAFaiIGIAEgBWsiB0EBcjYCBCAAIAFqIAc2AgBBwKPBACgCACICBEBByKPBACgCACEBAkBBuKPBACgCACIEQQEgAkEDdnQiA3FFBEBBuKPBACADIARyNgIAIAJBeHFBsKHBAGoiAyEEDAELIAJBeHEiAkGwocEAaiEEIAJBuKHBAGooAgAhAwsgBCABNgIIIAMgATYCDCABIAQ2AgwgASADNgIICyAAQQhqIQBByKPBACAGNgIAQcCjwQAgBzYCAAwGC0G8o8EAQbyjwQAoAgBBfiACKAIcd3E2AgALAkACQCADQRBPBEAgAiAFQQNyNgIEIAIgBWoiByAD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sLICIgIkIBhoNCgIGChIiQoMCAf4NQRQ0CIAUgDkEIaiIOaiAKcSEFDAALAAsgCygCECIEIAQoAgBBAWoiBDYCACAERQ0GIAMgAygCNEEBajYCNCALKAIUIQogCygCECEFAkACQCAgRQRAIAMgGzYCnAIgAyAJNgKYAiADIA02ApQCIAMgFTYCkAIgAyAKNgKMAiADIAU2AogCIANBuAFqIAEgDSADQYgCaiADQThqQQEgGSADQTRqIBggA0HIAGoQOSADQbABaiIEIgkgFEEIaigCADYCACADIBQpAgA3A6gBIAMoArgBIgtBgICAgHhHDQEgACADKQOoATcCDCAAQYCAgIB4NgIIIABBFGogBCgCADYCAAwNCyAFIAUoAgBBAWoiBDYCACAERQ0IIAMgCTYCmAIgAyANNgKUAiADIBU2ApACIAMgGzYCnAIgAyAKNgKMAiADIAU2AogCQQhBBBD5BCIEDQFBBEEIEP8EAAsgA0GAAmoiDSAMQRhqKQIANwMAIANB+AFqIgogDEEQaikCADcDACADQfABaiIOIAxBCGopAgA3AwAgAyAMKQIANwPoASADKAIwIgUgAygCKEYEQCADQShqENECCyADKAIsIAVBMGxqIgQgAykDqAE3AgQgBCALNgIAIAQgAykD6AE3AhAgBEEMaiAJKAIANgIAIARBGGogDikDADcCACAEQSBqIAopAwA3AgAgBEEoaiANKQMANwIAIAMgBUEBajYCMAwBCyAEIAo2AgQgBCAFNgIAIANBATYChAEgAyAENgKAASADQQE2AnwgA0G4AWogASANIANBiAJqIANB/ABqQQEgGSADQTRqIBggA0HIAGoQOSADQfgAaiIFIgsgFEEIaigCADYCACADIBQpAgA3A3AgAygCuAEiDUGAgICAeEYEQCAAIAMpA3A3AgwgAEGAgICAeDYCCCAAQRRqIAUoAgA2AgAgBCgCACIAIAAoAgBBAWsiADYCACAARQRAIAQQkQMLIARBCEEEEOcEDAsLIANBoAFqIgogDEEYaikCADcDACADQZgBaiIOIAxBEGopAgA3AwAgA0GQAWoiFyAMQQhqKQIANwMAIAMgDCkCADcDiAEgAygCMCIJIAMoAihG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gA3AgAgAkGAAWogA0EgaikCADcCACACQfgAaiADQRhqKQIANwIAIAJB8ABqIANBEGopAgA3AgAgAkHoAGogA0EIaikCADcCACACIAMpAgA3AmAgAiAEIAggCxsiAykCADcCkAEgAkGYAWogA0EIaikCADcCACACQaABaiADQRBqKQIANwIAIAJBqAFqIANBGGopAgA3AgAgAkGwAWogA0EgaikCADcCACACQbgBaiADQShqKQIANwIAIAkgACAQQTBsIgpqIgNBMGogAxDrASEIIANBkAFB4AAgCSADQZABaiADQeAAahDrASIFG2ohBCAJIANB4ABBkAEgBRtqIgYgAyAIQQFzQTBsaiIFIAQgCSAEIAMgCEEwbGoiCBDrASILGyAJIAYgBRDrASIMGyINIAggBCAFIAwbIAsbIg4Q6wEhEyACIApqIgNBKGogBCAIIAsbIgRBKGopAgA3AgAgA0EgaiAEQSBqKQIANwIAIANBGGogBEEYaikCADcCACADQRBqIARBEGopAgA3AgAgA0EIaiAEQQhqKQIANwIAIAMgBCkCADcCACADIA0gDiATGyIEKQIANwIwIANBOGogBEEIaikCADcCACADQUBrIARBEGopAgA3AgAgA0HIAGogBEEYaikCADcCACADQdAAaiAEQSBqKQIANwIAIANB2ABqIARBKGopAgA3AgAgA0GIAWogDiANIBMbIgRBKGopAgA3AgAgA0GAAWogBEEgaikCADcCACADQfgAaiAEQRhqKQIANwIAIANB8ABqIARBEGopAgA3AgAgA0HoAGogBEEIaikCADcCACADIAQpAgA3AmAgAyAFIAYgDBsiBCkCADcCkAEgA0GYAWogBEEIaikCADcCACADQaABaiAEQRBqKQIANwIAIANBqAFqIARBGGopAgA3AgAgA0GwAWogBEEgaikCADcCACADQbgBaiAEQShqKQIANwIAQQQhCwwBCyACIAApAgA3AgAgAkEoaiAAQShqKQIANwIAIAJBIGogAEEgaikCADcCACACQRhqIABBGGopAgA3AgAgAkEQaiAAQRBqKQIANwIAIAJBCGogAEEIaikCADcCACACIBBBMGwiBWoiAyAAIAVqIgUpAgA3AgAgA0EIaiAFQQhqKQIANwIAIANB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wJAAkACQAJAAkBBBCANKAIIIg0oAgAiFUGAgICAeHMgFUEAThtBAWsOBAECAwQACyAIIAkgBRDjAQwECyAIIAkgBRB/DAMLIA8oAgxBCGogBSgCAEEIaiAPKAIQIgUgB0EQaigCACIIIAUgCEkbEIEDIg0gBSAIayANGyIFQQBKIAVBAEhrDAILIAggCSAFEG4MAQsgDSAIIAkgBRBJCyIIayAIIBAtAAwbQf8BcUH/AUciCBtqIgUgBykCADcCACAFQShqIAdBKGopAgA3AgAgBUEgaiAHQSBqKQIANwIAIAVBGGogB0EYaikCADcCACAFQRBqIAdBEGopAgA3AgAgBUEIaiAHQQhqKQIANwIAIAggCmohCiAHQTBqIgcgE0kNAAsLIAEgDkcEQCACIApBMGxqIgUgBykCADcCACAFQShqIAdBKGopAgA3AgAgBUEgaiAHQSBqKQIANwIAIAVBGGogB0EYaikCADcCACAFQRBqIAdBEGopAgA3AgAgBUEIaiAHQQhqKQIANwIAIAdBMGohByAKQQFqIQogDEEwayEMIAEhDgwBCwsgCkEwbCIFBEAgACACIAX8CgAACyABIApGDQMgASAKayIMQQFxIAAgBWohAEEAIQUgCkEBaiABRwRAIAxBfnEhDyASIBdqIQggACEHA0AgByAIKQIANwIAIAdBKGogCEEoaikCADcCACAHQSBqIAhBIGopAgA3AgAgB0EYaiAIQRhqKQIANwIAIAdBEGogCEEQaikCADcCACAHQQhqIAhBCGopAgA3AgAgB0EwaiARIAVB/v///wBzQTBsaiIOKQIANwIAIAdBOGogDkEIaikCADcCACAHQUBrIA5BEGopAgA3AgAgB0HIAGogDkEYaikCADcCACAHQdAAaiAOQSBqKQIANwIAIAdB2ABqIA5BKGopAgA3AgAgCEHgAGshCCAHQeAAaiEHIA8gBUECaiIFRw0ACwsEQCAAIAVBMGxqIgcgESAFQX9zQTBsaiIFKQIANwIAIAdBKGogBUEoaikCADcCACAHQSBqIAVBIGopAgA3AgAgB0EYaiAFQRhqKQIANwIAIAdBEGogBUEQaikCADcCACAHQQhqIAVBCGopAgA3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Q0AAkAgAUEQaiADTQRAQQEhCyABQQF2IRECQCABQQdLBEAgBCgCACIEIABBGGogABD2ASEGIABByABBMCAEIABByABqIABBMGoQ9gEiBRtqIQMgBCAAQTBByAAgBRtqIgggACAGQQFzQRhsaiIFIAMgBCADIAAgBkEYbGoiBhD2ASILGyAEIAggBRD2ASIKGyINIAYgAyAFIAobIAsbIg8Q9gEhDCACQRBqIAMgBiALGyIDQRBqKQIANwIAIAJBCGogA0EIaikCADcCACACIAMpAgA3AgAgAiANIA8gDBsiAykCADcCGCACIA8gDSAMGyIGKQIANwIwIAJBIGogA0EIaikCADcCACACQShqIANBEGopAgA3AgAgAkE4aiAGQQhqKQIANwIAIAJBQGsgBkEQaikCADcCACACQdgAaiAFIAggChsiA0EQaikCADcCACACQdAAaiADQQhqKQIANwIAIAIgAykCADcCSCAEIAAgEUEYbCIJaiIDQRhqIAMQ9gEhCCADQcgAQTAgBCADQcgAaiADQTBqEPYBIgYbaiEFIAQgA0EwQcgAIAYbaiILIAMgCEEBc0EYbGoiBiAFIAQgBSADIAhBGGxqIggQ9gEiChsgBCALIAYQ9gEiDRsiDyAIIAUgBiANGyAKGyIMEPYBIRIgAiAJaiIDQRBqIAUgCCAKGyIFQRBqKQIANwIAIANBCGogBUEIaikCADcCACADIAUpAgA3AgAgAyAPIAwgEhsiBSkCADcCGCADIAwgDyASGyIIKQIANwIwIANBIGogBUEIaikCADcCACADQShqIAVBEGopAgA3AgAgA0E4aiAIQQhqKQIANwIAIANBQGsgCEEQaikCADcCACADQdgAaiAGIAsgDRsiBUEQaikCADcCACADQdAAaiAFQQhqKQIANwIAIAMgBSkCADcCSEEEIQsMAQsgAiAAKQIANwIAIAJBEGogAEEQaikCADcCACACQQhqIABBCGopAgA3AgAgAiARQRhsIgVqIgMgACAFaiIFKQIANwIAIANBCGogBUEIaikCADcCACADQRBqIAVBEGopAgA3AgAgBCgCACEECyAHQQA2AhAgC0EYbCEVIAcgETYCFCABIBFrIRYgB0EQaiEXQQAh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FAayIBIApBCGooAgA2AgAgCkHMAGogA0EIaikCADcCACAKQdQAaiADQRBqKQIANwIAIAAgCikCACIgNwIAIAogAykCADcCRCAAQQhqIAEpAwA3AgAgAEEQaiAKQcgAaikDADcCACAAQRhqIApB0ABqKQMANwIAIABBIGogCkHYAGooAgA2AgAgCiAgNwM4IAAgGDoALCAAQQA2AiggACAFNgIkCyAKQaABaiQAC9UJAQ1/IAAgAEEUaigCACIEIABBCGooAgAiBklBDGxqIgogAEEkQRggAEEsaigCACAAQSBqKAIASSIFG2oiAyAAIAQgBk9BDGxqIgQgAEEYQSQgBRtqIgZBCGooAgAgBEEIaigCAEkiBRsgA0EIaigCACAKQQhqKAIASSIHGyIIQQhqKAIAIQkgBiAEIAMgBxsgBRsiC0EIaigCACEMIAJBCGoiDSADIAogBxsiA0EIaigCADYCACACIAMpAgA3AgAgAiALIAggCSAMSyIDGyIKKQIANwIMIAJBFGogCkEIaigCADYCACACQSBqIAggCyADGyIDQQhqKAIANgIAIAIgAykCADcCGCACQSxqIgkgBCAGIAUbIgNBCGooAgA2AgAgAkEkaiIKIAMpAgA3AgAgAEEwaiIDQRhBJCAAQdwAaigCACAAQdAAaigCAEkiBBtqIgYgAyAAQcQAaigCACIFIABBOGooAgAiB09BDGxqIgAgA0EkQRggBBtqIgQgBEEIaigCACADIAUgB0lBDGxqIgNBCGooAgBJIgUbIAZBCGooAgAgAEEIaigCAEkiBxsiCEEIaigCACEMIAMgBCAAIAcbIAUbIgtBCGooAgAhDiACQThqIg8gBCADIAUbIgRBCGooAgA2AgAgAkEwaiIDIAQpAgA3AgAgAkE8aiAIIAsgDCAOSSIEGyIFKQIANwIAIAJBxABqIAVBCGooAgA2AgAgAkHIAGogCyAIIAQbIgQpAgA3AgAgAkHQAGogBEEIaigCADYCACACQdQAaiIEIAAgBiAHGyIAKQIANwIAIAJB3ABqIgYgAEEIaigCADYCACABIAMgAiAPKAIAIgUgDSgCACIHSSIAGyIIKQIANwIAIAFBCGogCEEIaigCAD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gCkEPcSIBaiILIApBMHEiCkEQayIMaiINKQAIIAaFIgRCIIgiBSAAKQAIIAOFIgNCIIgiB34gBEL/////D4MiBCADQv////8PgyIDfoUgBCAHfiADIAV+hUIgiYUhBQJ+IA0pAAAgBoUiA0IgiCIEIAApAAAgAoUiAkIgiCIHfiADQv////8PgyIDIAJC/////w+DIgJ+hSADIAd+IAIgBH6FQiCJhSIEIAxFIAEgDHJBEUhyDQAaIAsgCkEgayIMaiINKQAIIAaFIgJCIIgiAyAAKQAYIAWFIgVCIIgiB34gAkL/////D4MiAiAFQv////8PgyIFfoUgAiAHfiADIAV+hUIgiYUhBSANKQAAIAaFIgJCIIgiAyAAKQAQIASFIgRCIIgiB34gAkL/////D4MiAiAEQv////8PgyIEfoUgAiAHfiADIAR+hUIgiYUiBCAMRSABIAxyQSFIcg0AGiAKIAtqIgFBKGspAAAgBoUiAkIgiCIDIAApACggBYUiBUIgiCIHfiACQv////8PgyICIAVC/////w+DIgV+hSACIAd+IAMgBX6FQiCJhSEFIAFBMGspAAAgBoUiAkIgiCIDIAApACAgBIUiBEIgiCIGfiACQv////8PgyICIARC/////w+DIgR+hSACIAZ+IAMgBH6FQiCJhQsgBYUPCyALIAEgAUGw48AAELYBAAvzBwIGfwF+IwBB0ANrIgIkAAJAAkACQCABRQRAIABFDQEgAEEIayIBKAIAQQFHDQIgAkHoAWogAEHoAfwKAAAgAUEANgIAAkAgAUF/Rg0AIABBBGsiACAAKAIAQQFrIgA2AgAgAA0AIAFB8AFBCBDnBAsgAkEIaiACQfABakHgAfwKAAAgAigCnAEhBSACKAKgASIGBEADQAJAIAUgBEEkbGoiAygCACIAQYCAgIB4Rg0AIAAEQCADKAIEIABBARDnBAsgAygCFCIBBEAgAygCECEAA0AgACgCACIHBEAgAEEEaigCACAHQQEQ5wQLIABBDGohACABQQFrIgENAAsLIAMoAgwiAEUNACADKAIQIABBDGxBBBDnBAsgBEEBaiIEIAZHDQALCyACKAKYASIABEAgBSAAQSRsQQQQ5wQ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UBAAAAAgALIAZBD2pB/wFxQQJLIARBQE5yDQMMAgsgBEHwAGpB/wFxQTBPDQIMAQsgBEGPf0oNAQsgAiADQQJqIgRNBEBCACEJDAULIAEgBGosAABBv39KDQJCACEJIANBA2oiBCACTw0EIAEgBGosAABBQEgNBUKAgICAgOAADAMLQoCAgICAIAwCC0IAIQkgA0ECaiIEIAJPDQIgASAEaiwAAEG/f0wNAwtCgICAgIDAAAshCkKAgICAECEJCyAAIAogA62EIAmENwIEIABBATYCAA8LIARBAWohAwwCCyADQQFqIQMMAQsgAiADTQ0AA0AgASADaiwAAEEASA0BIAIgA0EBaiIDRw0ACwwCCyACIANLDQALCyAAIAI2AgggACABNgIEIABBADYCAAu/BQMOfwF+AW8jAEHgAGsiAyQAIAJBMGwhBAJAAkACQAJAIAJBqtWqFUsNAAJ/IARFBEBBBCEGQQAMAQtBBCEFIARBBBD5BCIGRQ0BIAILIQUgA0EANgIMIAMgBjYCCCADIAU2AgQgAkUNAyACQQJ0IQYgA0FAayEHIANByABqIQggA0HQAGohCSADQdgAaiEKQQAhBQNAIAEgBWooAgAiAiUBIRIgAhCsAwJAIBIQCyICBEAgAkEIayIEKAIAQQFHDQQgByACQRRqKQIANwMAIAggAkEcaikCADcDACAJIAJBJGopAgA3AwAgCiACQSxqKQIANwMAIAIoAgghDCACKAIEIQsgAikCDCERIARBADYCACADIBE3AzgCQCAEQX9GDQAgAkEEayICIAIoAgBBAWsiAjYCACACDQAgBEE8QQQQ5wQLIAtBgICAgHhHDQELQcTUwABBKBD8BAALIANBMGoiDSAKKQMANwMAIANBKGoiDiAJKQMANwMAIANBIGoiDyAIKQMANwMAIANBGGoiECAHKQMANwMAIAMgAykDODcDECADKAIMIgQgAygCBEYEQCADQQRqENECCyADKAIIIARBMGxqIgIgDDYCBCACIAs2AgAgAiADKQMQNwIIIAJBEGogECkDADcCACACQRhqIA8pAwA3AgAgAkEgaiAOKQMANwIAIAJBKGogDSkDADcCACADIARBAWo2AgwgBUEEaiIFI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4sFAgl/AX4jAEHwAGsiASQAAkACQAJAIAAEQCAAQQhrIgMgAygCAEEBaiICNgIAIAJFDQEgACgCACICQX9GDQIgACACQQFqNgIAIAEgAzYCDCABIAA2AgggASAAQQRqNgIEQfijwQAtAABBAUcEQBC1AgsgAUHQAGpBuNrAACkDADcDAEHoo8EAQeijwQApAwAiCkIBfDcDACABQbDawAApAwA3A0ggAUHwo8EAKQMANwNgIAEgCjcDWCAAKAIMIgIEQCACQRhsIQcgACgCCCEIA0AgBCAIaiICKAIAIgYgBigCAEEBaiIFNgIAIAVFDQMgAkEMaigCACEFIAJBCGooAgAhCSABIAJBEGooAgA2AkAgASAFNgI8IAEgCTYCOCABIAY2AjAgASACQRRqKAIANgJEIAEgAkEEaigCADYCNCABQcgAaiABQTBqEEogByAEQRhqIgRHDQALCyABQShqIAFB4ABqKQMANwMAIAFBIGoiAiABQdgAaikDADcDACABQRhqIgQgAUHQAGopAwA3AwAgASABKQNINwMQIAAgACgCAEEBazYCACADIAMoAgBBAWsiADYCACAARQRAIAFBDGoQqwILIAFB5ABqIAFBKGopAwA3AgAgAUHcAGogAikDADcCACABQdQAaiAEKQMANwIAIAEgASkDEDcCTEEwQQgQ+QQiAEUNAyAAQQA2AgggAEKBgICAEDcDACAAIAEpAkg3AgwgAEEUaiABQdAAaikCADcCACAAQRxqIAFB2ABqKQIANwIAIABBJGogAUHgAGopAgA3AgAgAEEsaiABQegAaigCADYCACABQfAAaiQAIABBCGoPCxD7BAsACxD9BAALQQhBMBD/BAAL2wQBBn8CQAJAIAAoAggiB0GAgIDAAXFFDQACQAJAAkACQCAHQYCAgIABcQRAIAAvAQ4iAw0BQQAhAgwCCyACQRBPBEAgASACEEMhAwwECyACRQRADAQLIAJBA3EhBgJAIAJBBEkEQAwBCyACQQxxIQgDQCADIAEgBWoiBCwAAEG/f0pqIARBAWosAABBv39KaiAEQQJqLAAAQb9/SmogBEEDaiwAAEG/f0pqIQMgCCAFQQRqIgVHDQALCyAGRQ0DIAEgBWohBANAIAMgBCwAAEG/f0pqIQMgBEEBaiEEIAZBAWsiBg0ACwwDCyABIAJqIQhBACECIAEhBCADIQUDQCAEIgYgCEYNAgJ/IAZBAWogBiwAACIEQQBODQAaIAZBAmogBEFgSQ0AGiAGQQNqIARBcEkNABogBkEEagsiBCAGayACaiECIAVBAWsiBQ0ACwtBACEFCyADIAVrIQMLIAMgAC8BDCIETw0AIAQgA2shBkEAIQNBACEFAkACQAJAIAdBHXZBA3FBAWsOAgABAgsgBiEFDAELIAZB/v8DcUEBdiEFCyAHQf///wBxIQggACgCBCEHIAAoAgAhAANAIANB//8DcSAFQf//A3FJBEBBASEEIANBAWohAyAAIAggBygCEBEAAEUNAQwDCwtBASEEIAAgASACIAcoAgwRAQANAUEAIQMgBiAFa0H//wNxIQEDQCADQf//A3EiAiABSSEEIAEgAk0NAiADQQFqIQMgACAIIAcoAhARAABFDQALDAELIAAoAgAgASACIAAoAgQoAgwRAQAhBAsgBAuIBQEUfyMAQSBrIgMkACADQQA2AhAgA0KAgICAwAA3AggCQAJAAkACQCABKAIIIgJFBEAgASgCDCEGIAEoAhwhCSABKAIYIQogASgCFCELQQQhBAwBCyABKAIEIgwgAkEwbGohESABKAIgIRIgASgCECETIAEoAgwhBiABKAIcIQkgASgCGCEKIAEoAhQhC0EEIQQDQCADQRRqIAwQViADKAIcIghBDGwiDiEPIAMoAhgiECEFIAgEQANAIAYgBigCAEEBaiICNgIAIAJFDQUgBUEIaiIUKAIAIg0gBSgCAEYEQCAFENACCyAFQQRqKAIAIQICQCANRQ0AIA1BGGwiFUUNACACQRhqIAIgFfwKAAALIAVBDGohBSACIBI2AhQgAiAJNgIQIAIgCjYCDCACIAs2AgggAiATNgIEIAIgBjYCACAUIA1BAWo2AgAgD0EMayIPDQALCyADKAIUIQIgAygCCCAHayAISQRAIANBCGogByAIQQRBDBCIAiADKAIQIQcgAygCDCEECyAOBEAgBCAHQQxsaiAQIA78CgAACyADIAcgCGoiBzYCECACBEAgECACQQxsQQ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AQRRqKQIANwMAIAJBCGogAEEMaikCADcDACAAKQIEIQUgA0EANgIAIAIgBTcDAAJAIANBf0YNACAAQQRrIgAgACgCAEEBayIANgIAIAANACADQTxBBBDnBAsgAUUNACABQQhrIgMgAygCAEEBaiIANgIAIABFDQIgASgCAA0DIAFBfzYCACACIAM2AjwgAiABNgI4IAIgAUEEaiIANgI0IAEoAgwiBCABKAIERgRAIAAQ0QILIAEoAgggBEEwbGoiACACKQMANwIAIABBKGogAkEoaikDADcCACAAQSBqIAJBIGopAwA3AgAgAEEYaiACQRhqKQMANwIAIABBEGogAkEQaikDADcCACAAQQhqIAJBCGopAwA3AgAgASAEQQFqNgIMIAFBADYCACADIAMoAgBBAWsiADYCACAARQRAIAJBPGoQ+AILIAJBQGskAA8LEPsEAAtBlbHAAEE/EPwECwALEP0EAAvFAwEQfyMAQRBrIgMkAAJAAkACQCABRQRAIABFDQEgAEEIayICKAIAQQFHDQIgACgCTCEMIAAoAkghBCAAKAJAIQ0gACgCPCEFIAAoAjghASAAKAI0IQYgACgCMCEHIAAoAighDiAAKAIkIQggACgCHCEPIAAoAhghCSAAKAIQIRAgACgCDCEKIAAoAgghCyAAKAIEIAJBADYCAAJAIAJBf0YNACAAQQRrIgAgACgCAEEBayIANgIAIAANACACQeQAQQQQ5wQLIAVBgICAgHhyQYCAgIB4RwRAIA0gBUEBEOcECyAKBEAgECAKQQEQ5wQLIAkEQCAPIAlBARDnBAsgCARAIA4gCEEBEOcECyABBEAgBiEAA0AgACgCACICBEAgAEEEaigCACACQQEQ5wQLIABBDGohACABQQFrIgENAAsLIAcEQCAGIAdBDGxBBBDnBAsgBEUgBEGFgICAeEhyRQRAIAwgBEEBEOcEC0UgC0GEAUlyDQMgCxCsAwwDCyAARQ0AIAMgAEEIayIANgIMIAAgACgCAEEBayIANgIAIAANAiADQQxqELsBDAILEPsEAAtBt8PAAEE/EPwEAAsgA0EQaiQAC7UDAQd/IwBB4ABrIgIkACAAKAIIIQQgAEEANgIIIAJBADYCQCACIAA2AjggAiAENgI8IAIgACgCBCIDIARBMGwiBWoiBjYCNCACIAQEfwNAIAJBKGogA0EoaikCADcDACACQSBqIANBIGopAgA3AwAgAkEYaiADQRhqKQIANwMAIAJBEGogA0EQaikCADcDACACQQhqIANBCGopAgA3AwAgAiADKQIANwMAIAIgARB5IANBMGohAyAFQTBrIgUNAAsgBgUgAws2AjAgAkEwahC3ASACQdgAaiIGIABBKGopAgA3AwAgAkHQAGoiBCAAQSBqKQIANwMAIAJByABqIgUgAEEYaikCADcDACACQUBrIgcgAEEQaikCADcDACACQThqIgggAEEIaikCADcDACACIAApAgA3AzAgASgCCCIDIAEoAgBGBEAgARDRAgsgASgCBCADQTBsaiIAIAIpAzA3AgAgAEEoaiAGKQMANwIAIABBIGogBCkDADcCACAAQRhqIAUpAwA3AgAgAEEQaiAHKQMANwIAIABBCGogCCkDADcCACABIANBAWo2AgggAkHgAGokAAvVAwIGfwR+IwBBQGoiBCQAAn9BACABKALEAUUNABogASkDyAEhCiAEQgA3AwggBEIANwMAIAQgCjcDECAEQQA6ADggBEGQoMEAKQMANwMwIARBiKDBACkDADcDKCAEQYCgwQApAwA3AyAgBEH4n8EAKQMANwMYIAQgAiADEGogASgCvAEiBgJ+IAQtADhFBEAgBCkDEAwBCyAEKQMYIAQpAwiFIgpCIIgiDCAEKQMQIAQpAwCFIgtCIIgiDX4gCkL/////D4MiCiALQv////8PgyILfoUgCiANfiALIAx+hUIgiIULIgqncSEFIApCGYhC/wCDQoGChIiQoMCAAX4hCyABKAK4ASEHA0ACQCAFIAdqKQAAIgwgC4UiCkJ/hSAKQoGChIiQoMCAAX2DQoCBgoSIkKDAgH+DIgpQRQRAA0AgByAKeqdBA3YgBWogBnFBBHRrIgFBCGsoAgAgA0YEQCACIAFBDGsoAgAgAxCBA0UNAwsgCkIBfSAKgyIKUEUNAAsLQQAgDCAMQgGGg0KAgYKEiJCgwIB/g1BFDQIaIAUgCEEIaiIIaiAGcSEFDAELCyABQQRrKAIAI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sgA0EANgIgIANCgICAgMAANwIYCyACBEAgASACQQEQ5wQLIAAgACgCAEEBazYCACAFIAUoAgBBAWsiADYCACAARQRAIANBFGoQUQtBGEEEEPkEIgBFDQMgAEEANgIIIABCgYCAgBA3AgAgACADKQIYNwIMIABBFGogA0EgaigCADYCACADQUBrJAAgAEEIag8LEPsECwALEP0EAAtBBEEYEP8EAAuvAwEIfyMAQUBqIgMkAAJAAkACQCAABEAgAEEIayIFIAUoAgBBAWoiBDYCACAERQ0BIAAoAgAiBEF/Rg0CIAAgBEEBajYCACADIAU2AhQgAyAANgIQIAMgAEEIaiIENgIMIAMgBCABIAIQegJAIAMoAgBBAXEEQCAAKAKsASEJIAAoAqgBIQpBfyEHAn9BfyADKAIEIgggACgCoAFPDQAaQX8gACgCnAEgCEEkbGoiBigCAEGAgICAeEYNABogBigCICEHIAYoAhwLIQYgAyAHNgI4IAMgBjYCNCADIAk2AiwgAyAKNgIoIAMgCDYCMCADIAQ2AjwgA0EANgIkIANBGGogA0EkahBGDAELIANBADYCICADQoCAgIDAADcCGAsgAgRAIAEgAkEBEOcECyAAIAAoAgBBAWs2AgAgBSAFKAIAQQFrIgA2AgAgAEUEQCADQRRqEFELQRhBBBD5BCIARQ0DIABBADYCCCAAQoGAgIAQNwIAIAAgAykCGDcCDCAAQRRqIANBIGooAgA2AgAgA0FAayQAIABBCGoPCxD7BAsACxD9BAALQQRBGBD/BAALwAMBB38jAEEQayIJJABBECEDIAEoAoQBIgQhBiABQQRqIgUhCCAEQRFPBEAgASgCBCEGIAEoAgghCCAEIQMLAkACQCACIAZPBEACQAJAAkAgAkERTwRAQYGAgIB4IQcgAiADRg0GQQAhByACQf////8BSyACQQN0IgVB/P///wdLcg0GIARBEUkNAiADQQN0IQQgA0H/////AU0NASAEIQUMBgtBgYCAgHghByAEQRFJDQUgAUEANgIAIAZBA3QiAgRAIAUgCCAC/AoAAAsgASAGNgKEASADQQN0IgFB/f///wdJIANB/////wFNcQ0CIAkgATYCDCAJQQA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AQQhrIgMoAgBBAUcNASACQRhqIABBDGooAgA2AgAgACkCBCEFIANBADYCACACIAU3AxACQCADQX9GDQAgAEEEayIAIAAoAgBBAWsiADYCACAADQAgA0EYQQQQ5wQLIAFFDQAgAUEIayIAIAAoAgBBAWoiAzYCACADRQ0CIAEoAgANAyABQX82AgAgAiAANgIMIAIgATYCCCACIAFBBGoiBDYCBCABKAIMIgMgASgCBEYEQCAEENECCyABKAIIIANBMGxqIgQgAikDEDcCBCAEQYGAgIB4NgIAIARBDGogAkEYaigCADYCACABIANBAWo2AgwgAUEANgIAIAAgACgCAEEBayIANgIAIABFBEAgAkEMahD4AgsgAkEgaiQADwsQ+wQAC0GVscAAQT8Q/AQLAAsQ/QQAC9MCAgN/AX4jAEEgayICJAACQAJAAkACQCAARQ0AIABBCGsiAygCAEEBRw0BIAJBGGogAEEMaigCADYCACAAKQIEIQUgA0EANgIAIAIgBTcDEAJAIANBf0YNACAAQQRrIgAgACgCAEEBayIANgIAIAANACADQRhBBBDnBAsgAUUNACABQQhrIgAgACgCAEEBaiIDNgIAIANFDQIgASgCAA0DIAFBfzYCACACIAA2AgwgAiABNgIIIAIgAUEEaiIENgIEIAEoAgwiAyABKAIERgRAIAQQ0QILIAEoAgggA0EwbGoiBCACKQMQNwIEIARBhYCAgHg2AgAgBEEMaiACQRhqKAIANgIAIAEgA0EBajYCDCABQQA2AgAgACAAKAIAQQFrIgA2AgAgAEUEQCACQQxqEPgCCyACQSBqJAAPCxD7BAALQZWxwABBPxD8BAsACxD9BAALugICBH8BfiMAQdAAayICJAACQAJAAkAgAUUEQCAARQ0BIABBCGsiASgCAEEBRw0CIAJByABqIgMgAEEgaikDADcDACACQUBrIgQgAEEYaikDADcDACACQThqIgUgAEEQaikDADcDACACQTBqIABBCGopAwA3AwAgACkDACEGIAFBADYCACACIAY3AygCQCABQX9GDQAgAEEEayIAIAAoAgBBAWsiADYCACAADQAgAUEwQQgQ5wQLIAJBIGogAykDADcDACACQRhqIAQpAwA3AwA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wQLIA9BgICAgHhHDQELQcTUwABBKBD8BAALIANBMGoiEiAOKQMANwMAIANBKGoiBiANKQMANwMAIANBIGoiBSAMKQMANwMAIANBGGoiAiALKQMANwMAIAMgAykDODcDECADKAIMIhAgAygCBEYEQCADQQRqENECCyADKAIIIBBBMGxqIgcgETYCBCAHIA82AgAgByADKQMQNwIIIAdBEGogAikDADcCACAHQRhqIAUpAwA3AgAgB0EgaiAGKQMANwIAIAdBKGogEikDADcCACADIBBBAWo2AgwgBEEEaiIEIApHDQALDAILIAQgBhDJBAALQYy0wABBPxD8BAALIAEgCkEEEOcECyADKAIIIQECQAJAAkAgAygCBCICIAMoAgwiBU0EQCABIQQMAQsgAkEwbCECIAVFBEBBBCEEIAEgAkEEEOcEDAELIAEgAkEEIAVBMGwiARDgBCIERQ0BCyAJIAU2AgQgCSAENgIAIANB4ABqJAAMAQtBBCABEMkEAAsgACgCAEUEQCAIKAIMIQYgCCgCCCEFIABBfzYCACAAKAIYIgEEQCAAKAIUQQxqIQIDQCACKAIAIgQgBCgCAEEBayIENgIAIARFBEAgAhCRAwsgAkEMaygCACIEBEAgAkEIaygCACAEQQJ0QQQQ5wQLIAJBMGohAiABQQFrIgENAAsLIAAoAhAiAQRAIAAoAhQgAUEwbEEEEOcECyAAIAU2AhQgAEEANgIAIAAgBjYCGCAAIAY2AhAgCEEQaiQADwsQ/QQACxD7BAAL/AECA38BfiMAQTBrIgIkACABKAIAQYCAgIB4RgRAIAEoAgwhAyACQSxqIgRBADYCACACQoCAgIAQNwIkIAJBJGpBhOXAACADKAIAIgMoAgAgAygCBBBfGiACQSBqIAQoAgAiAzYCACACIAIpAiQiBTcDGCABQQhqIAM2AgAgASAFNwIACyABKQIAIQUgAUKAgICAEDcCACACQRBqIgMgAUEIaiIBKAIANgIAIAFBADYCACACIAU3AwhBDEEEEPkEIgFFBEBBBEEMEP8EAAsgASACKQMINwIAIAFBCGogAygCADYCACAAQYzowAA2AgQgACABNgIAIAJBMGokAAuJAgEDfyM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iAFaiACIAZqIAMgBBCRAiECCyAEKAIAIAAoAgAgASgCABDEASIDIAQoAgAgACgCACACKAIAEMQBRgR/IAIgASAEKAIAIAEoAgAgAigCABDEASADcxsFIAALC6UBAgN/An4jAEEgayIBJAACQCAAKAJEIgJFDQAgACgCQCACQdAAbGoiAkHQAGsiACkDACAAKQMIhFBFDQAgAUEQaiACQTBrEN0BIAEgASkDEELAhD0QugIgASgCGCEDIABCADcDCCAAQgE3AwAgAkFAaiICIAEpAwAiBCADQegHbq18IgU3AwAgAiABKQMIIAQgBVatfDcDCCAAEJICCyABQSBqJAALlAEBAn8gA0H4////AXEEQCAAIAAgA0EDdiIDQTBsIgVqIAAgA0HUAGwiBmogAyAEEJMCIQAgASABIAVqIAEgBmogAyAEEJMCIQEgAiACIAVqIAIgBmogAyAEEJMCIQILIAAgAiABIABBCGooAgAiACABQQhqKAIAIgFJIgMgASACQQhqKAIAIgJJcxsgAyAAIAJJcxsLmQEBA38jAEEQayICJAAgAiABEMwDIAAoAgAiACgCFEEkbCEBIAAoAhAiAEEQaiEDA0ACQCABBEAgAC0AIUECRg0BIAIgBDYCCCACIAM2AgwgAiACQQhqQaDbwAAgAkEMakHw28AAEOwBDAELIAIQigMgAkEQaiQADwsgAEEkaiEAIARBAWohBCABQSRrIQEgA0EkaiEDDAALAAubAQEDfyAAKAIAIgEoAgwiAARAIAEoAhAgAEEBEOcECyABKAIgIgIEQCABKAIcIQADQCAAKAIAIgMEQCAAQQRqKAIAIANBARDnBAsgAEEMaiEAIAJBAWsiAg0ACwsgASgCGCIABEAgASgCHCAAQQxsQQQQ5wQLAkAgAUF/Rg0AIAEgASgCBEEBayIANgIEIAANACABQShBBBDnBAsLtAEBAX8jAEFAaiICJAAgACgCACEAIAJByLrAADYCOCACQbi6wAA2AjAgAiAANgIsIAJBoLnAADYCKCACIABBKGo2AiQgAkHAuMAANgIgIAIgAEEkajYCHCACQcC4wAA2AhggAiAAQSBqNgIUIAJBqLrAADYCECACIABBCGo2Agw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gAARAIAEoAgBBgICAgHhGDQEgAiADNgIIIAIgATYCDCACIAJBCGpBoNvAACACQQxqQbDbwAAQ7AEMAQsgAhCKAyACQRBqJAAPCyABQSRqIQEgA0EBaiEDIABBJGshAAwACwALwgECAX8BfhDmAiEBQZigwQAtAABBAkcEQBDXAQtB8AFBCBD5BCIARQRAQQhB8AEQ/wQACyAAQn83A8ABIABCADcDuAEgAEIENwOwASAAQgA3A6gBIABCgICAgMAANwOgASAAQgA3ApQBIABBADYCECAAQQA2AgggAEKBgICAEDcDACAAIAE3A9gBIABCgICAgMAANwPgASAAQgA3A+gBIABBoKvAACkDADcDyAEgAEHQAWpBqKvAACkDADcDACAAQQhqC4wBAQR/IwBBEGsiBCQAIAEoAgQhBQJAIAEoAggiBgRAIAZBMGwhByAFIQEDQCAEQQRqIAEgAiADEKMCIAQoAgRBgICAgHhHBEAgACAEKQIENwIAIABBCGogBEEMaigCADYCAAwDCyABQTBqIQEgB0EwayIHDQALCyAAIAMgAiAFIAYQrAELIARBEGokAAuVAQEBfwJAAkACQCABRQRAQQEhAiABRQ0BQQEgACAB/AoAAAwBCyABQQEQ+QQiAkUNASABBEAgAiAAIAH8CgAACyAAIAFBARDnBAtBGEEEEPkEIgBFDQEgACABNgIUIAAgAjYCECAAIAE2AgwgAEEANgIIIABCgYCAgBA3AgAgAEEIag8LQQEgARDJBAALQQRBGBD/BAALnAECA38BfiMAQSBrIgIkACABKAIAQYCAgIB4RgRAIAEoAgwhAyACQRxqIgRBADYCACACQoCAgIAQNwIUIAJBFGpBhOXAACADKAIAIgMoAgAgAygCBBBfGiACQRBqIAQoAgAiAzYCACACIAIpAhQiBTcDCCABQQhqIAM2AgAgASAFNwIACyAAQYzowAA2AgQgACABNgIAIAJBIGokAAuNAQEEfyMAQRBrIgIkAAJ/QQEgASgCACIDQScgASgCBCIFKAIQIgERAAANABogAiAAKAIAQYECEFICQCACLQANIgBBgQFPBEAgAyACKAIAIAERAABFDQFBAQwCCyADIAIgAi0ADCIE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IIAAgAa0gAiADfHw3AwALhQEBAn8gASgCAEGAgICAeEcEQCAAIAEpAgA3AgAgAEEIaiABQQhqKAIANgIADwsgASgCBCEDAkACQCABKAIIIgFFBEBBASECDAELIAFBARD5BCICRQ0BCyABBEAgAiADIAH8CgAACyAAIAE2AgggACACNgIEIAAgATYCAA8LQQEgARDJBAALagEDfyMAQRBrIgIkACAALQAAIQNBACEAA0AgACACakEPaiADQQ9xQeL0wABqLQAAOgAAIABBAWshACADIgRBBHYhAyAEQQ9LDQALIAFB8vTAAEECIAAgAmpBEGpBACAAaxBLIAJBEGokAAtqAQN/IwBBEGsiAiQAIAAtAAAhA0EAIQADQCAAIAJqQQ9qIANBD3FB9PTAAGotAAA6AAAgAEEBayEAIAMiBEEEdiEDIARBD0sNAAsgAUHy9MAAQQIgACACakEQakEAIABrEEsgAkEQaiQAC2IBBH4gACACQv////8PgyIDIAFC/////w+DIgR+IgUgBCACQiCIIgJ+IgQgAyABQiCIIgZ+fCIBQiCGfCIDNwMAIAAgAyAFVK0gAiAGfiABIARUrUIghiABQiCIhHx8NwMIC3EBAn8jAEEQayICJAAgACgCACIDKAIEIQAgAygCCCEDIAJBBGogARDoAyADBEAgA0EMbCEBA0AgAiAANgIMIAJBBGogAkEMakHA28AAENsBIABBDGohACABQQxrIgENAAsLIAJBBGoQywMgAkEQaiQAC3EBAn8jAEEQayICJAAgACgCACIDKAIEIQAgAygCCCEDIAJBBGogARDoAyADBEAgA0ECdCEBA0AgAiAANgIMIAJBBGogAkEMakGQ3MAAENsBIABBBGohACABQQRrIgENAAsLIAJBBGoQywMgAkEQaiQAC2ABA38jAEEQayIDJAAgACgCACEAA0AgAiADakEPaiAAQQ9xLQDi9EA6AAAgAkEBayECIABBD0sgAEEEdiEADQALIAFB8vTAAEECIAIgA2pBEGpBACACaxBLIANBEGokAAtgAQN/IwBBEGsiAyQAIAAoAgAhAANAIAIgA2pBD2ogAEEPcS0A9PRAOgAAIAJBAWshAiAAQQ9LIABBBHYhAA0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BEGokAAtrAQN/IwBBEGsiASQAIAFBBGogACgCACICIAAoAgRBBCACQQF0IgIgAkEETRsiAkEEQQwQhgIgASgCBEEBRgRAIAEoAgggASgCDBDJBAALIAEoAgghAyAAIAI2AgAgACADNgIEIAFBEGokAAtrAQN/IwBBEGsiASQAIAFBBGogACgCACICIAAoAgRBBCACQQF0IgIgAkEETRsiAkEEQRwQhgIgASgCBEEBRgRAIAEoAgggASgCDBDJBAALIAEoAgghAyAAIAI2AgAgACADNgIEIAFBEGokAAtrAQN/IwBBEGsiASQAIAFBBGogACgCACICIAAoAgRBBCACQQF0IgIgAkEETRsiAkEEQQgQhgIgASgCBEEBRgRAIAEoAgggASgCDBDJBAALIAEoAgghAyAAIAI2AgAgACADNgIEIAFBEGokAAuBAQEBfyMAQRBrIgIkACACIAAoAgAiAEEaajYCDCABQfSywABBCkH+ssAAQQQgAEH4scAAQYKzwABBByAAQQxqQcSywABBibPAAEEIIABBGGpB1LLAAEGRs8AAQQ8gAEEZakHUssAAQaCzwABBECACQQxqQeSywAAQ7gEgAkEQaiQAC24BAn8jAEEQayICJAAgAkEIaiAAIAEQWiACKAIMIQEgAigCCCEDQRhBBBD5BCIARQRAQQRBGBD/BAALIAAgAzYCECAAQQA2AgggAEKBgICAEDcCACAAIAE2AhQgACABNgIMIAJBEGokACAAQQhqC4EBAQF/IwBBEGsiAiQAIAIgACgCACIAQSxqNgIMIAFB8LjAAEENQf24wABBBCAAQQxqQbC4wABBgbnAAEEFIABBJGpBwLjAAEGGucAAQRIgAEEoakHAuMAAQZi5wABBCCAAQdC4wABBl7XAAEETIAJBDGpB4LjAABDuASACQRBqJAALgQEBAX8jAEEQayICJAAgAiAAKAIAIgA2AgwgAUHAucAAQQ9Bz7nAAEEEIABBCGpB0LjAAEHTucAAQQogAEEUakHAuMAAQd25wABBCSAAQRhqQcC4wABB5rnAAEEPIABBHGpBoLnAAEH1ucAAQQ4gAkEMakGwucAAEO4BIAJBEGokAAuBAQEBfyMAQRBrIgIk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J3BACABQQxqQfydwQBBACADQbiNwQAQ1QEAC0HN9MAAQQEgMkIAUyIAGyEeQc30wABB4fTAACAAGyEfIDJCP4inISAgCygCIEUNASALQdgAaiALQShqKAIANgIAIAsgCykCIDcDUAwCCyAAQQJGDQJBASEBQc30wABB4fTAACAyQgBTIgMbQc30wABBASADGyAQGyEDIDJCP4inIBByIQIgAEEERw0DIAtBAjsBICALQQE2AiggC0HO9MAANgIkIAtBIGoMBAsgC0HQAGohESALQQ9qIQQjAEGgCmsiASQAAkACQAJAAkAgC0HgAGoiACkDACIoUEUEQCAAKQMIIipQRQRAIAApAxAiKVBFBEAgKEJ/hSApWgRAICggKloEQCAALAAaIRMgAC4BGCEAIAEgKD4CACABQQFBAiAoQoCAgIAQVCIDGzYCoAEgAUEAIChCIIinIAMbNgIEIAFBCGpBAEGYAfwLACABICo+AqQBIAFBAUECICpCgICAgBBUIgMbNgLEAiABQQAgKkIgiKcgAxs2AqgBIAFBrAFqQQBBmAH8CwAgASApPgLIAiABQQFBAiApQoCAgIAQVCIDGzYC6AMgAUEAIClCIIinIAMbNgLMAiABQdACakEAQZgB/AsAIAFB8ANqQQBBnAH8CwAgAUEBNgLsAyABQQE2AowFIACsICggKXxCAX15fULCmsHoBH5CgKHNoLQCfEIgiKciA8EhCQJAIABBAE4EQCABIAAQXhogAUGkAWogABBeGiABQcgCaiAAEF4aDAELIAFB7ANqQQAgAGvBEF4aCwJAIAlBAEgEQCABQQAgCWtB//8DcSIAEDsgAUGkAWogABA7IAFByAJqIAAQOwwBCyABQewDaiADQf//AXEQOwsgAUH8CGogAUGkAfwKAAACQAJAAkACQCABKALoAyIDIAEoApwKIgAgACADSRsiAkEoTQRAIAJFBEBBACECDAQLIAJBAXEhDCACQQFHDQEMAgsMCQsgAkE+cSENIAFB/AhqIQAgAUHIAmohBwNAIAAgBygCACIOIAAoAgBqIgYgBUEBcWoiCjYCACAAQQRqIgUgB0EEaigCACIUIAUoAgBqIgUgBiAOSSAGIApLcmoiBjY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AiEIClCAYZC/v///////w+DIClCNIinQf8PcSIDGyIoQgGDIStBAiEAAkACQAJAAkACQCAtUCICQQJBAyACG0EEIClCgICAgICAgPj/AIMiLVAbIC1CgICAgICAgPj/AFEbQQFrDgQAAQIDBAtBAyEADAMLQQQhAAwCCyADQbMIayEBICtQIQBCASEqDAELQoCAgICAgIAgIChCAYYgKEKAgICAgICACFEiARshKEICQgEgARshKiArUCEAQct3Qcx3IAEbIANqIQELIAogATsB6AggCiAqNwPgCCAKQgE3A9gIIAogKDcD0AggCiAAOgDqCAJ/AkAgAEEBTQRAQXRBBSABwSIAQQBIGyAAbCIAQcD9AEkNAUGg+sAAQSVByPrAABDPBAALAkACQCAAQQJHBEBBASEBQc30wABB4fTAACApQgBTIgMbQc30wABBASADGyAXGyEDIClCP4inIBdyIQIgAEEERw0BQQIhASAKQQI7AZAIIBMNAkEBIQEgCkEBNgKYCCAKQc70wAA2ApQIIApBkAhqDAQLIApBAzYCmAggCkGk+cAANgKUCCAKQQI7AZAIQQEhA0EAIQJBASEBIApBkAhqDAMLIApBAzYCmAggCkGn+cAANgKUCCAKQQI7AZAIIApBkAhqDAILIAogEzYCoAggCkEAOwGcCCAKQQI2ApgIIApBqvnAADYClAggCkGQCGoMAQtBzfTAAEEBIClCAFMiARshIUHN9MAAQeH0wAAgARsgKUI/iKchIyAKQZAIaiEMIApBEGohDyAAQQR2QRVqIgUhAUGAgH5BACATayATwUEASBshCCMAQRBrIgskAAJAAkACfwJAAkACQAJAIApB0AhqIgApAwAiKFBFBEAgKEKAgICAgICAgCBaDQEgAUUNAkGgfyAALwEYICh5IimnayICa8FB0ABsQbCnBWpBzhBtIgBB0ABLDQMgCyAAQQR0IgMpA9j6QCAoICmGELoCIAspAwggCykDAEI/iHwiKkFAIAIgAy8B4PpAamsiDUE/ca0iKYinIQAgAy8B4vpAIQNCASAphiIrQgF9Ii0gKoMiKFAEQCABQQpLDQcgAUECdEHwi8EAaigCACAASw0HCyAAQZDOAE8EQCAAQcCE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YgAmoiAC0AAEE5Rg0ACyAAIAAtAABBAWo6AAAgBEEBayIBRQ0DIABBAWpBMCAB/AsADAMLIAAgBUH0icEAEPcCAAtBACACIAVBhIrBABC2AQALQTEhBAJAIAMNACAIQTE6AABBMCEEIAJBAWsiAEUNACAIQQFqQTAgAPwLAAsgEEEBaiEQICQgAiAFT3INACABIAQ6AAAgAkEBaiECCyACIAVLDQIgAgshACAUIBA7AQggFCAANgIECyAUIAg2AgAgCUHABmokAAwFC0EAIAIgBUGUisEAELYBAAtBACAEQShBqPjAABC2AQALQShBKEGo+MAAEPcCAAtBACABQShBqPjAABC2AQALQYv4wABBGkGo+MAAEM8EAAsLICEgFxshAyAXICNyIQIgGiAKLgHICCIASARAIApBCGogCigCwAggCigCxAggACATIApBkAhqEJoBIAooAgwhASAKKAIIDAELQQIhASAKQQI7AZAIIBNFBEBBASEBIApBATYCmAggCkHO9MAANgKUCCAKQZAIagwBCyAKIBM2AqAIIApBADsBnAggCkECNgKYCCAKQar5wAA2ApQIIApBkAhqCyEAIAogATYCzAggCiAANgLICCAKIAI2AsQIIAogAzYCwAggCkHACGoQWyAKQfAIaiQADwtBACADQShBqPjAABC2AQALQQAgAEEoQaj4wAAQtgEAC0UBAX9BGEEEEPkEIgJFBEBBBEEYEP8EAAsgAiABNgIUIAIgADYCECACIAE2AgwgAkEANgIIIAJCgYCAgBA3AgAgAkEIags6AQF/IwBBEGsiAiQAIAIgAK1CgICAgPALhDcDCCABKAIAIAEoAgRBv6fAACACQQhqEF8gAkEQaiQACzoBAX8jAEEQayICJAAgAiAArUKAgICA8AuENwMIIAEoAgAgASgCBEHOp8AAIAJBCGoQXyACQRBqJAALWwEBbyABKAIAJQEgAigCACUBIAMoAgAlARAgIQQQYyIBIAQmAUHwn8EAKAIAIQJB7J/BACgCACEDQeyfwQBCADcCACAAIAIgASADQQFGIgEbNgIEIAAgATYCAAtBAQF/IwBBEGsiASQAIAFBCGogACAAKAIAQQQQqAIgASgCCCIAQYGAgIB4Rw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IAkgAykCMDcCDCAJQRRqIANBOGooAgA2AgAMAQsgDygCACIWQYSAgIB4Rg0CIAMoAgwhAQJAIAMoAhAiCARAIAhBMGwhAiABIQADQCADQTBqIAAgCyAPEKMCIAMoAjBBgICAgHhHBEAgA0EoaiADQThqKAIANgIAIAMgAykCMDcDIAwDCyAAQTBqIQAgAkEwayICDQALCyADQSBqIA8gCyABIAgQrAELIAMoAiBBgICAgHhGDQIgCSADKQMgNwIMIAlBFGogA0EoaigCADYCAAsgCUGAgICAeDYCCCADQQhqEMkCIAMoAggiAEUNACADKAIMIABBMGxBBBDnBAsgDygCACIWQYWAgIB4Tg0BDAILIANByABqIANBGGopAwA3AwAgA0FAayADQRBqKQMANwMAIANBOGogA0EIaikDADcDACADIAMpAwA3AzAjAEGQAWsiBCQAIARBADYCFCAEQoCAgIDAADcCDCAEQQA2AiAgBEKAgICAwAA3AhggA0EwaiITKAIMIgEgEygCECICQTBsaiEXIBMoAgghCyABIQACQCACBEAgBEH4AGohGCAEQTBqIQYgBEEoaiIUQShqIRAgFEEgaiERIBRBGGohEgNAIAAoAgAiAkGAgICAeEcEQCAEIAI2AiQgECAAQSxqKAIANgIAIBEgAEEkaikCADcCACASIABBHGopAgA3AgAgFEEQaiAAQRRqKQIANwIAIBRBCGogAEEMaikCADcCACAUIABBBGopAgA3AgAgBCgCLCEIIARBADYCLCAEQQA2AmQgBCAINgJgIAQgBCgCKCICNgJUIAQgAiAIQTBsajYCWCAEIARBDGoiCjYCaCAEIARBJGo2AlwgBEHsAGogBEHUAGoQhQEgGEEQaiAGQRBqKQIANwIAIBhBCGogBkEIaikCADcCACAYIAYpAgA3AgAgBC0AUCEMIAQoAkwhCCAEKAJIIQIgBCgCFCIHIAQoAgxGBEAgChDRAgsgBCgCECAHQTBsaiIKIAQpAmw3AgAgCiAMOgAsIAogCDYCKCAKIAI2AiQgCkEIaiAEQfQAaikCADcCACAKQRBqIARB/ABqKQIANwIAIApBGGogBEGEAWopAgA3AgAgCkEgaiA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FxDQALCyACIAEpAhw3AgAgAkEIaiABQSRqKAIANgIADAELIAJBADYCCCACQoCAgIDAADcCAAsgAUFAayQADAELQQRBEBDJBAALAkAgAygCSCIBQYCAgIB4RwRAIAMoAlAhAiADKAJMIQUgAygCECIJBEAgAygCFCAJQQJ0QQQQ5wQLIA4gAjYCDCAOIAU2AgggDiABNgIEIA5BgICAgHg2AgAMAQsgAygCGCELIAMoAhQhECADKAIQIRkCQAJAIA0oAgxBgICAgHhHBEAgDSgCECEFAkAgDSgCFCICRQRAQQQhAQwBCyACQQN0IglBBBD5BCIBRQ0CCyADQQA2AhggAyABNgIUIAMgAjYCECADQQA2ApQBIAMgA0EYajYCkAEgAyABNgKYASAFIAUgAkEMbGogA0GQAWoQwwEgAygCECEIIAMoAhghFSADKAIUIQULAkACQCANKAIYQYCAgIB4RwRAIA0oAiAhAiANKAIcIQkQwwQiAUUNAiABIAEpAwAiOUIBfDcDACABKQMIITogA0GYAWoiBkHA0MAAKQMANwMAIANBuNDAACkDADcDkAEgAyA6NwOoASADIDk3A6ABIAIEQCAJQQhqIQEDQCADQQhqIBIgAUEEaygCACABKAIAEHogAygCCEEBcQRAIANBkAFqIAMoAgwQdAsgAUEMaiEBIAJBAWsiAg0ACwsgA0EoaiADQagBaikDADcDACADQSBqIANBoAFqKQMANwMAIANBGGogBikDADcDACADIAMpA5ABNwMQDAELIANBADYCEAsgDS0ALA0CIA0oAiQhFyADQgA3AmwgA0KAgICAwAA3AmQgA0EANgJ8IANCgICAgMAANwJ0IANBADYCiAEgA0KAgICAwAA3AoABQfijwQAtAABBAUcEQBC1AgsgA0GYAWpBqKvAACkDADcDAEHoo8EAQeijwQApAwAiOUIBfDcDACADQaCrwAApAwA3A5ABIANB8KPBACkDADcDqAEgAyA5NwOgASALBEAgC0ECdCEKIBAhAQNAIAEoAgAhCSADKAJ8IgIgAygCdEYEQCADQfQAahDWAgsgAygCeCACQQN0aiIGQQA2AgQgBiAJNgIAIAMgAkEBajYCfCADQZABaiA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ELIAZBCGohECABQcgBakGoq8AAKQMANwMAIAFCgICAgMAANwPYASABQn83A7gBIAFCADcDsAEgAUIENwOoASABQgA3A6ABIAFCgICAgMAANwOYASABQgA3AowBIAFBADYCCCABIBM3A9ABIAFCADcD4AEgAUGgq8AAKQMANwPAASABQQA2AvABIAFCgICAgMAANwLoASABQQA2AvwBIAFCgICAgMAANwL0ASAHKAIIIgRBA3QhCCAHKAIEIQUCQAJAAkACQAJAAkACQCAERQRAQQEhAwwBCyAFIAhqIRIgAUGYAmohCyABQYwCaiEOIAUhAEEBIQMDQCABQYACaiADEMsBIAEoAvABIgkgASgC6AFGBEAgAUHoAWoQ1QILIAEoAuwBIAlBHGxqIgIgASkCgAI3AgAgAkEAOgAaIAJBATsBGCACQQA2AhQgAkKAgICAwAA3AgwgAkEIaiABQYgCaiIRKAIANgIAIAEgCUEBajYC8AEgAUGoAmogAxDLASABQbQCaiADQQFqIgMQywEgAUEANgLYAiABQoCAgIAQNwLQAiABQbi/wAA2AuQCIAFCoICAgAY3AugCIAEgAUHQAmo2AuACIAAoAgBBCGogAEEEaigCACABQeACahCDBQ0CIAFByAJqIgIgAUHYAmooAgA2AgAgASABKQLQAjcDwAJBCEEBEPkEIglFDQMgCULl8MHjlu3YtPQANwAAIA4gASkCtAI3AgAgCyABKQPAAjcCACARIAFBsAJqKAIANgIAIA5BCGogAUG8AmooAgA2AgAgC0EIaiACKAIANgIAIAEgASkCqAI3A4ACIAEoAvwBIg0gASgC9AFGBEAgAUH0AWoQ0QILIAEoAvgBIA1BMGxqIgIgASkDgAI3AgAgAkEINgIsIAIgCTYCKCACQQg2AiQgAkEIaiARKQMANwIAIAJBEGogAUGQAmopAwA3AgAgAkEYaiALKQMANwIAIAJBIGogAUGgAmooAgA2AgAgASANQQFqNgL8ASAAQQhqIgAgEkcNAAsLIAFBgAJqIAMQywEgASgC8AEiAiABKALoAUYEQCABQegBahDVAgsgASgC7AEgAkEcbGoiACABKQKAAjcCACAAQQA6ABogAEEBOwE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AqdBD3EtAPT0QDoAACAAQQFrIQAgAkIPViACQgSIIQINAAsgAUHy9MAAQQIgACADakEcakEAIABrEEsLIANBIGokAAsPACAAQZD1wAAgASACEF8LDwBB0J3BAEEzIAAQngMACw8AQcyQwQBBKyAAEM8EAAsTAEHNj8EAQZkBQZyQwQAQngMACwwAIAAlASABIAIQAAsMACAAJQEgASACEBALDAAgACUBIAEgAhARCw4AIAFB6LDAAEEFENYECw4AIAFB2rHAAEEFENYECw4AIAFBqMDAAEEFENYECwwAIAAoAgAgARC+BAsMACAAKAIAIAEQsAILawEBfyAAKAIAIQIjAEEgayIAJAAgACACKAIAIgI2AgggACACaDYCDCAAIABBDGqtQoCAgIDwF4Q3AxggACAAQQhqrUKAgICAgBiENwMQIAEoAgAgASgCBEHqp8AAIABBEGoQXyAAQSBqJAALGgACfyABQQlPBEAgASAAEIoBDAELIAAQJgsLDgAgAUGk38AAQQUQ1gQLDQBBxOLAAEEbEPwEAAsJACAAIAEQIgALDgBB3+LAAEHPABD8BAALDAAgACABKQIANwMACz4BAX8jAEEQayICJAAgAiABNgIMIAIgADYCCCACQQhqIgAoAgAgACgCBEGEpMEAKAIAIgBBnwEgABsRAgAACw4AIAFByOjAAEEFENYECw4AIAFB0OrAAEELENYECwwAIAAoAgAgARC6AQsKACACIAAgARBVCw0AIAFBxp7BAEEYEFULCgAgACABJQEQAwsJACAAIAEQvgQLDABBgKTBAEEBOgAACwkAIABBADYCAAsIACAAJQEQFwsIACAAJQEQGAuVBgMGfwF+AW8CQCMAQTBrIgIkACACQQA2AhwgAkKAgICAEDcCFCACQbTewAA2AiQgAkKggICABjcCKCACIAJBFGo2AiAjAEEwayIDJABBASEHAkAgAkEgaiIEQaHmwABBDBDWBA0AIAQoAgQhBiAEKAIAIAMgASgCCCIFKQIANwIIIAMgBUEMaq1CgICAgBCENwMgIAMgBUEIaq1CgICAgBCENwMYIAMgA0EIaq1CgICAgKAUhDcDECAGQY2CwAAgA0EQaiIFEF8NACAFIAEoAgA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kAaw90YXJnZXRfZmVhdHVyZXMGKw9tdXRhYmxlLWdsb2JhbHMrE25vbnRyYXBwaW5nLWZwdG9pbnQrC2J1bGstbWVtb3J5KwhzaWduLWV4dCsPcmVmZXJlbmNlLXR5cGVzKwptdWx0aXZhbHVl");var xd=class{constructor(e){this.plugin=e}get fields(){return this.plugin.settings.edge_fields}get field_groups(){return this.plugin.settings.edge_field_groups}async refresh(){await this.plugin.rebuildGraph()}create_list_index(e,r){if(e??(e=lo(xt)?.path),!e)throw new Error("No active file");return xA(this.plugin.graph,e,this.plugin.settings,Object.assign({...oi},r))}get_neighbours(e){return e??(e=lo(xt)?.path),e&&this.plugin.graph.has_node(e)?this.plugin.graph.get_outgoing_edges(e):void 0}};var P6=require("obsidian");var eD=q('

Breadcrumbs Codeblock Errors

The codeblock YAML has errors in the following keys/properties:


See the codeblock docs for more info

Version:

',1);function en(t,e){ae(e,!0);let r=e.errors.map(s=>`- **\`${s.path}\`**: ${s.message}`).join(` +`);var o=J(),a=K(o);{var n=s=>{var i=eD(),l=S(K(i),4),u=w(l);eA(u,{get plugin(){return e.plugin},get markdown(){return r}}),b(l);var A=S(l,6),c=S(w(A)),p=w(c,!0);b(c),b(A),oe(()=>Fe(p,e.plugin.manifest.version)),v(s,i)};se(a,s=>{e.errors.length&&s(n)})}v(t,o),ne()}var tD=(t,e,r,o)=>{te(e,!0),bv(typeof r.text=="string"?r.text:r.text(),o()),setTimeout(()=>te(e,!1),2500)},rD=q("");function Us(t,e){ae(e,!0);let r=U(e,"cls",3,""),o=U(e,"aria_label",3,"Copy to Clipboard"),a=U(e,"options",19,()=>({})),n=We(!1);var s=rD();s.__click=[tD,n,e,a];var i=w(s);{var l=A=>{Lu(A,{get size(){return 20}})},u=A=>{xs(A,{get size(){return 20}})};se(i,A=>{d(n)?A(l):A(u,!1)})}b(s),oe(()=>{ut(s,1,mr(r())),Xe(s,"aria-label",d(n)?"Copied!":o())}),v(t,s),ne()}Ke(["click"]);var oD=q('

'),aD=q('
'),nD=q('

'),sD=q('

No paths found.

'),iD=q('
');function Um(t,e){ae(e,!0);let[r,o]=Sr(),a=()=>Br(xt,"$active_file_store",r),n=po(e.options.sort.field,e.options.sort.order===-1),{show_node_options:s}=e.plugin.settings.views.codeblocks,i=5,l=We(void 0),u=We(void 0),A=de(a);function c(){var E;let D=e.options.depth[1]===1/0?i:(E=e.options.depth[1])!==null&&E!==void 0?E:i,k=e.options["start-note"]||e.file_path||(d(A)===null||d(A)===void 0?void 0:d(A).path)||"";if(!e.plugin.graph.has_node(k)){te(l,void 0),te(u,"The file does not exist in the graph.");return}let C=new Nt([k],e.options.fields,D,100,!e.options["merge-fields"],e.options["dataview-from-paths"]),P=new co(n,e.options.flat);try{te(l,e.plugin.graph.rec_traverse_and_process(C,P),!0),te(u,void 0)}catch(le){H.error("Error updating codeblock tree",le),te(l,void 0),le instanceof $a?te(u,le.message,!0):te(u,"An error occurred while updating the codeblock tree. Check the console for more information (Ctrl + Shift + I).")}}let p=de(()=>{var E;if(d(l)){let D=hr(e.plugin.settings,s),k=e.plugin.graph.get_node(e.file_path);return"# "+nn.ify(e.file_path,D.stringify_node(k),{link_kind:e.plugin.settings.commands.list_index.default_options.link_kind})+` +`+vl(e.plugin.graph,d(l),e.plugin.settings,Object.assign(Object.assign({},e.plugin.settings.commands.list_index.default_options),{show_node_options:s,show_attributes:(E=e.options["show-attributes"])!==null&&E!==void 0?E:[]}))}else return""});hs(()=>{c()});var m=iD(),h=w(m);en(h,{get plugin(){return e.plugin},get errors(){return e.errors}});var y=S(h,2);{var I=E=>{var D=oD(),k=w(D,!0);b(D),oe(()=>Fe(k,e.options.title)),v(E,D)};se(y,E=>{e.options.title&&E(I)})}var F=S(y,2);{var R=E=>{var D=aD(),k=w(D),C=w(k);Us(C,{get text(){return d(p)},cls:"clickable-icon nav-action-button"}),b(k);var P=S(k,2);Rs(P,{get code(){return d(p)},get plugin(){return e.plugin},get source_path(){return e.file_path},type:"markmap"}),b(D),v(E,D)},B=E=>{var D=J(),k=K(D);{var C=le=>{var xe=nD(),fe=w(xe,!0);b(xe),oe(()=>Fe(fe,d(u))),v(le,xe)},P=le=>{var xe=sD();v(le,xe)};se(k,le=>{d(u)?le(C):le(P,!1)},!0)}v(E,D)};se(F,E=>{d(p)?E(R):E(B,!1)})}b(m),v(t,m);var j=ne({update:c});return o(),j}var lD=q('

'),uD=(t,e)=>{window.open(yo.to_image_link(d(e)),"_blank")},AD=(t,e)=>{window.open(yo.to_live_edit_link(d(e)),"_blank")},fD=q('
'),dD=q('

'),cD=q('

No paths found.

'),pD=q('
');function zm(t,e){ae(e,!0);let[r,o]=Sr(),a=()=>Br(xt,"$active_file_store",r),n=10,s=We(""),i=We(void 0),l=de(a);function u(){var R,B,j;let E=e.options.depth[1]===1/0?n:(R=e.options.depth[1])!==null&&R!==void 0?R:n,D=e.options["start-note"]||e.file_path||(d(l)===null||d(l)===void 0?void 0:d(l).path)||"";if(!e.plugin.graph.has_node(D)){te(s,""),te(i,"The file does not exist in the graph.");return}let k=new Nt([e.file_path],e.options.fields,E,100,!e.options["merge-fields"],e.options["dataview-from-paths"]),C=S_({curve:e.options["mermaid-curve"],defaultRenderer:e.options["mermaid-renderer"]}),P=po(e.options.sort.field,e.options.sort.order===-1),le=new Hn(e.file_path,`%%{ init: { "flowchart": ${JSON.stringify(C)} } }%%`,"graph",(B=e.options["mermaid-direction"])!==null&&B!==void 0?B:"LR",!0,(j=e.options["show-attributes"])!==null&&j!==void 0?j:[],P,xe=>{let fe=xe.path,He=e.plugin.app.vault.getFileByPath(fe);return He?e.plugin.app.fileManager.generateMarkdownLink(He,e.file_path).slice(2,-2):mt.drop_ext(nn.resolve_to_absolute_path(e.plugin.app,fe,e.file_path))},!0);try{te(s,e.plugin.graph.generate_mermaid_graph(k,le).mermaid,!0),te(i,void 0)}catch(xe){H.error("Error generating mermaid graph",xe),te(s,""),xe instanceof $a?te(i,xe.message,!0):te(i,"An error occurred while updating the codeblock tree. Check the console for more information (Ctrl + Shift + I).")}te(s,d(s),!0)}hs(()=>{u()});var A=pD(),c=w(A);en(c,{get plugin(){return e.plugin},get errors(){return e.errors}});var p=S(c,2);{var m=R=>{var B=lD(),j=w(B,!0);b(B),oe(()=>Fe(j,e.options.title)),v(R,B)};se(p,R=>{e.options.title&&R(m)})}var h=S(p,2);{var y=R=>{var B=fD(),j=w(B),E=w(j);Us(E,{get text(){return d(s)},cls:"clickable-icon nav-action-button"});var D=S(E,2);D.__click=[uD,s];var k=w(D);Hu(k,{get size(){return 20}}),b(D);var C=S(D,2);C.__click=[AD,s];var P=w(C);Wu(P,{get size(){return 20}}),b(C),b(j);var le=S(j,2);Rs(le,{get code(){return d(s)},get plugin(){return e.plugin},get source_path(){return e.file_path},type:"mermaid"}),b(B),v(R,B)},I=R=>{var B=J(),j=K(B);{var E=k=>{var C=dD(),P=w(C,!0);b(C),oe(()=>Fe(P,d(i))),v(k,C)},D=k=>{var C=cD();v(k,C)};se(j,k=>{d(i)?k(E):k(D,!1)},!0)}v(R,B)};se(h,R=>{d(s)?R(y):R(I,!1)})}b(A),v(t,A);var F=ne({update:u});return o(),F}Ke(["click"]);var mD=q('
'),_D=q('
'),hD=q('
Traversal limit reached...
'),gD=q('
');function zs(t,e){ae(e,!0);let r=U(e,"open_signal",15),o=We(kt(Array(e.items.length).fill(!0)));jt(()=>{r()===!0?(te(o,Array(e.items.length).fill(!0),!0),r(null)):r()===!1&&(te(o,Array(e.items.length).fill(!1),!0),r(null))});var a=J(),n=K(a);ot(n,17,()=>e.items,lt,(s,i,l)=>{let u=de(()=>e.data.children_at_index(d(i))),A=de(()=>e.data.rendering_obj_at_index(d(i),e.plugin.graph,e.node_stringify_options,e.show_attributes??[]));var c=J(),p=K(c);{var m=h=>{let y=de(()=>d(A).explicit?"BC-edge BC-edge-explicit":`BC-edge BC-edge-implied BC-edge-implied-${d(A).edge_source}`);var I=gD(),F=w(I),R=w(F);{var B=fe=>{var He=mD(),G=w(He);Ps(G,{get open(){return d(o)[l]}}),b(He),v(fe,He)};se(R,fe=>{(d(u).length||d(A).has_cut_of_children)&&fe(B)})}var j=S(R,2),E=w(j);tA(E,{get plugin(){return e.plugin},get display(){return d(A).link_display},get path(){return d(A).link_path},get resolved(){return d(A).target_resolved},get cls(){return`tree-item-inner-text BC-edge ${d(y)??""}`}}),b(j);var D=S(j,2);{var k=fe=>{iA(fe,{get label(){return d(A).attribute_label}})};se(D,fe=>{e.show_attributes?.length&&fe(k)})}b(F);var C=S(F,2);{var P=fe=>{var He=_D(),G=w(He);zs(G,{get plugin(){return e.plugin},get show_attributes(){return e.show_attributes},get node_stringify_options(){return e.node_stringify_options},get data(){return e.data},get open_signal(){return r()},get items(){return d(u)}}),b(He),v(fe,He)};se(C,fe=>{d(u).length&&d(o)[l]&&fe(P)})}var le=S(C,2);{var xe=fe=>{var He=hD();v(fe,He)};se(le,fe=>{d(A).has_cut_of_children&&d(o)[l]&&fe(xe)})}b(I),js("open","toggle",I,fe=>d(o)[l]=fe,()=>d(o)[l]),v(h,I)};se(p,h=>{d(u)&&d(A)&&h(m)})}v(s,c)}),v(t,a),ne()}var zK=require("console"),jD=q('

'),xD=q('
'),vD=q('

'),kD=q('

No paths found.

'),bD=q('
');function Wm(t,e){ae(e,!0);let[r,o]=Sr(),a=()=>Br(xt,"$active_file_store",r),n=po(e.options.sort.field,e.options.sort.order===-1),s=hr(e.plugin.settings,e.plugin.settings.views.codeblocks.show_node_options),i=5,l=We(void 0),u=We(void 0),A=de(a);function c(){var j;let E=e.options.depth[1]===1/0?i:(j=e.options.depth[1])!==null&&j!==void 0?j:i,D=e.options["start-note"]||e.file_path||(d(A)===null||d(A)===void 0?void 0:d(A).path)||"";if(!e.plugin.graph.has_node(D)){te(l,void 0),te(u,"The file does not exist in the graph.");return}let k=new Nt([D],e.options.fields,E,100,!e.options["merge-fields"],e.options["dataview-from-paths"]),C=new co(n,e.options.flat);try{te(l,e.plugin.graph.rec_traverse_and_process(k,C),!0),te(u,void 0)}catch(P){H.error("Error updating codeblock tree",P),te(l,void 0),P instanceof $a?te(u,P.message,!0):te(u,"An error occurred while updating the codeblock tree. Check the console for more information (Ctrl + Shift + I).")}}hs(()=>{let j=new Tr;c(),H.debug(j.elapsedMessage("CodeblockTree initial traversal"))});var p=bD(),m=w(p);en(m,{get plugin(){return e.plugin},get errors(){return e.errors}});var h=S(m,2);{var y=j=>{var E=jD(),D=w(E,!0);b(E),oe(()=>Fe(D,e.options.title)),v(j,E)};se(h,j=>{e.options.title&&j(y)})}var I=S(h,2);{var F=j=>{var E=xD(),D=w(E),k=w(D);Us(k,{cls:"clickable-icon nav-action-button",text:()=>vl(e.plugin.graph,d(l),e.plugin.settings,{...e.plugin.settings.commands.list_index.default_options,show_attributes:e.options["show-attributes"]??[]})}),b(D);var C=S(D,2),P=w(C);{let le=de(()=>!e.options.collapse);zs(P,{get plugin(){return e.plugin},get node_stringify_options(){return s},get data(){return d(l)},get items(){return d(l).entry_nodes},get open_signal(){return d(le)},get show_attributes(){return e.options["show-attributes"]}})}b(C),b(E),v(j,E)},R=j=>{var E=J(),D=K(E);{var k=P=>{var le=vD(),xe=w(le,!0);b(le),oe(()=>Fe(xe,d(u))),v(P,le)},C=P=>{var le=kD();v(P,le)};se(D,P=>{d(u)?P(k):P(C,!1)},!0)}v(j,E)};se(I,j=>{d(l)&&!d(l).is_empty()?j(F):j(R,!1)})}b(p),v(t,p);var B=ne({update:c});return o(),B}var q6=require("obsidian");var wD=["type","title","start-note","fields","field-groups","depth","flat","collapse","merge-fields","dataview-from","content","sort","field-prefix","show-attributes","mermaid-direction","mermaid-renderer","mermaid-curve"],Km=[!0,!1],yD=(t,e)=>{let r=e.edge_fields.map(a=>a.label),o=e.field_groups.map(a=>a.label);return Qe.object({title:Qe.string({message:Ht.error.not_string("title",t.title)}).optional(),"start-note":Qe.string({message:Ht.error.not_string("start-note",t["start-note"])}).optional(),"dataview-from":Qe.string({message:Ht.error.not_string("dataview-from",t["dataview-from"])}).optional(),flat:Qe.boolean({message:Ht.error.invalid_enum("flat",Km,t.flat)}).default(!1),collapse:Qe.boolean({message:Ht.error.invalid_enum("collapse",Km,t.collapse)}).default(!1),"merge-fields":Qe.boolean({message:Ht.error.invalid_enum("merge-fields",Km,t["merge-fields"])}).default(!0),content:Qe.enum(["open","closed"],{message:Ht.error.invalid_enum("content",["open","closed"],t.content)}).optional(),type:Qe.enum(["tree","mermaid","markmap"],{message:Ht.error.invalid_enum("type",["tree","mermaid","markmap"],t.type)}).default("tree"),"mermaid-renderer":Qe.enum(yo.RENDERERS,{message:Ht.error.invalid_enum("mermaid-renderer",yo.RENDERERS,t["mermaid-renderer"])}).optional(),"mermaid-direction":Qe.enum(yo.DIRECTIONS,{message:Ht.error.invalid_enum("mermaid-direction",yo.DIRECTIONS,t["mermaid-direction"])}).optional(),"mermaid-curve":Qe.enum(yo.CURVE_STYLES,{message:Ht.error.invalid_enum("mermaid-curve",yo.CURVE_STYLES,t["mermaid-curve"])}).optional(),"show-attributes":Qe.array(Qe.enum(xl),{message:Ht.error.not_array("show-attributes",xl,t["show-attributes"])}).optional(),fields:Ht.schema.dynamic_enum_array("fields",r,t.fields).optional(),"field-groups":Ht.schema.dynamic_enum_array("field-groups",o,t["field-groups"]).optional(),depth:Qe.array(Qe.number({invalid_type_error:`Expected a number, but got: \`${t.depth}\` (${typeof t.depth}). _Try using a number (integer)._ +**Example**: \`depth: [0]\`, or \`depth: [0, 3]\``}).min(0,`Minimum depth cannot be less than \`0\`, but got: \`${t.depth}\` _Try using a non-negative number (greater than or equal to zero \`0\`)._ +**Example**: \`depth: [0]\`, or possibly: \`depth: [${typeof t.depth=="number"?-1*t.depth:t.depth}\`]`),{invalid_type_error:`Expected a YAML list (array) of one or two numbers, but got: \`${t.depth}\` (${typeof t.depth}). _Try wrapping it in square brackets._ +**Example**: \`depth: [0]\`, or \`depth: [0, 3]\`, or possibly: \`depth: [${t.depth}]\``}).min(1,`At least one item is required, but got: \`[${t.depth}]\`. _Try adding a number to the list._ +**Example**: \`depth: [0]\`, or \`depth: [0, 3]\``).max(2,`Maximum of two items allowed, but got: \`[${t.depth}]\`. _Try removing one of the numbers._ +**Example**: \`depth: [${t.depth?.[0]??0}]\`, or possibly \`depth: [${t.depth?.[0]??0}, 3]\``).transform(a=>a.length===1?[a[0],1/0]:a).refine(a=>a[0]<=a[1],{message:`Minimum depth cannot be greater than maximum depth. _Try swapping the numbers._ +**Example**: \`depth: [0, 3]\`, or possibly: \`depth: [${t.depth?.[1]??0}, ${t.depth?.[0]??3}]\``}).default([0,1/0]),sort:Qe.preprocess(a=>{if(typeof a=="string"){let[n,s]=a.split(" ");return{field:n,order:s??"asc"}}else return a},Qe.object({field:Ht.schema.dynamic_enum([...kA,...e.edge_fields.map(a=>`neighbour-field:${a.label}`)],"sort"),order:Qe.union([Qe.enum(["asc","desc"]),Qe.literal(1),Qe.literal(-1)],{errorMap:(a,n)=>({message:Ht.error.invalid_enum("sort.order",["asc","desc"],n.data)})}).transform(a=>a==="asc"?1:a==="desc"?-1:a)})).default({order:1,field:"basename"})}).passthrough().default({}).transform(a=>{if(a["field-groups"]){let n=Cr(e.field_groups,a["field-groups"]);a.fields?a.fields=ma(a.fields.concat(n)):a.fields=n}return a}).superRefine((a,n)=>a["mermaid-curve"]&&a["mermaid-renderer"]?(n.addIssue({code:"custom",path:["mermaid-curve"],message:`Cannot specify both a mermaid curve and a renderer. _Try removing one of the fields._ +**Example**: \`mermaid-curve: ${a["mermaid-curve"]}\`, or \`mermaid-renderer: ${a["mermaid-renderer"]}\``}),!1):!0)},vd={FIELDS:wD,build:yD};function ED(t,e){let r=[],o;try{o=(0,q6.parseYaml)(t)??{},H.debug("Codeblock > parsed_yaml >",o)}catch(s){return H.error("Codeblock > parse_source > ",s),r.push({path:"yaml",code:"invalid_yaml",message:"Invalid codeblock YAML. Check the console for more information (press `Ctrl + Shift + I` to open the console)."}),{parsed:null,errors:r}}let a=vd.build(o,e).safeParse(o);if(!a.success)return r.push(...Zu(a.error.issues,s=>s.path.join(".")).map(s=>({message:s.message,code:"invalid_field_value",path:s.path.map(i=>typeof i=="number"?i+1:i).join(" > ")}))),{errors:r,parsed:null};let n=Object.keys(a.data).filter(s=>!vd.FIELDS.includes(s));return n.length&&r.push({path:"yaml",code:"invalid_yaml",message:`The following is not a valid codeblock field: \`${n[0]}\`. Valid options are: ${jA(vd.FIELDS,"`",", or ")}`}),{parsed:a.data,errors:r}}function ID(t,e,r,o){let a=t;if(e["start-note"]){let n=mt.normalize(mt.ensure_ext(e["start-note"],"md")),s=o.app.metadataCache.getFirstLinkpathDest(n,a);s?a=s.path:r.push({path:"start-note",code:"invalid_field_value",message:`Could not find note \`${n}\` in your vault. Try a different path.`})}if(e["dataview-from"])try{let n=Ba.get_api(o.app)?.pages(e["dataview-from"],t);e["dataview-from-paths"]=n?.map(s=>s.file.path)}catch{r.push({path:"dataview-from",code:"invalid_field_value",message:`Input \`${e["dataview-from"]}\` is not a valid Dataview query. +You can use \`app.plugins.plugins.dataview.api.pages("")\` to test your query in the console (press \`Ctrl + Shift + I\` to open the console).`})}return{options:e,file_path:a}}var Zm={parse_source:ED,postprocess_options:ID};var kd=class extends P6.MarkdownRenderChild{constructor(e,r,o,a){super(r),this.plugin=e,this.source=o,this.file_path=a,this.id=window.crypto.randomUUID()}update(){if(H.debug("CodeblockMDRC.update"),this.component)try{this.component.update()}catch(e){H.error("CodeblockMDRC.update error >",e)}}onload(){let e=new Tr;H.debug("CodeblockMDRC.load"),this.containerEl.empty();let r=new Tr,{parsed:o,errors:a}=Zm.parse_source(this.source,{edge_fields:this.plugin.settings.edge_fields,field_groups:this.plugin.settings.edge_field_groups});if(H.debug(r.elapsedMessage("Codeblocks.parse_source",!0)),!o){H.warn("fatal codeblock errors",a),Be(en,{target:this.containerEl,props:{errors:a,plugin:this.plugin}});return}let{options:n,file_path:s}=Zm.postprocess_options(this.file_path,o,a,this.plugin);H.debug("resolved codeblock options",n),H.debug(r.elapsedMessage("Codeblocks.postprocess_options",!0)),a.length&&H.warn("non-fatal codeblock errors",a),n.type==="tree"?this.component=Be(Wm,{target:this.containerEl,props:{errors:a,options:n,file_path:s,plugin:this.plugin}}):n.type==="mermaid"?this.component=Be(zm,{target:this.containerEl,props:{errors:a,options:n,file_path:s,plugin:this.plugin}}):n.type==="markmap"?this.component=Be(Um,{target:this.containerEl,props:{errors:a,options:n,file_path:s,plugin:this.plugin}}):H.error("CodeblockMDRC unknown type",n.type),H.debug(r.elapsedMessage("component creation",!0)),H.debug(e.elapsedMessage("CodeblockMDRC.onload")),this.registerEvent(this.plugin.events.on("graph-update",()=>{this.update()}))}onunload(){H.debug("CodeblockMDRC.unload"),this.component&&Yo(this.component)}};var ul=require("obsidian");var $D=q(''),DD=(t,e,r)=>e()(d(r)),FD=q('
');function Ym(t,e){ae(e,!0);let r=U(e,"label",3,""),o=U(e,"disabled_cb",3,c=>!1),a=U(e,"submit_cb",3,()=>{}),n=We("");var s=FD(),i=w(s);{var l=c=>{var p=$D(),m=w(p,!0);b(p),oe(()=>Fe(m,r())),v(c,p)};se(i,c=>{r()&&c(l)})}var u=S(i,2);io(u);var A=S(u,2);A.__click=[DD,a,n],b(s),oe(c=>A.disabled=c,[()=>o()(d(n))]),Sn(u,()=>d(n),c=>te(n,c)),v(t,s),ne()}Ke(["click"]);var Pn=require("obsidian");var bd=class extends Pn.Modal{constructor(r,o){super(r);this.active_file=lo(xt);this.plugin=o,this.options=o.settings.commands.list_index.default_options}onOpen(){if(!this.active_file){new Pn.Notice("No active file"),this.close();return}let{contentEl:r,plugin:o}=this;r.createEl("h2",{text:"Create List Index"}),Be(yr,{target:r,props:{field_group_labels:this.options.field_group_labels,edge_field_groups:o.settings.edge_field_groups,select_cb:a=>{this.options.field_group_labels=a,this.options.fields=Cr(o.settings.edge_field_groups,this.options.field_group_labels)}}}),pe(r,{name:"Link Kind",desc:"Format to use for links",select:{options:md,value:this.options.link_kind,cb:a=>void(this.options.link_kind=a)}}),pe(r,{name:"Indent",desc:"Indentation to use for each level",input:{value:this.options.indent,cb:a=>void(this.options.indent=a)}}),Be(Xa,{target:r,props:{edge_sort_id:this.options.edge_sort_id,select_cb:a=>{this.options.edge_sort_id=a}}}),Be(Qa,{target:r,props:{show_attributes:this.options.show_attributes,select_cb:a=>{this.options.show_attributes=a}}}),Hr(o,r,{get:()=>this.options.show_node_options,set:a=>this.options.show_node_options=a},{save_and_refresh:!1}),new Pn.Setting(r).addButton(a=>a.setButtonText("Build & Copy to Clipboard").setCta().onClick(async()=>{H.debug("build_list_index options",this.options);let n=xA(o.graph,this.active_file.path,o.settings,this.options);n?(await navigator.clipboard.writeText(n),new Pn.Notice("List index copied to clipboard")):new Pn.Notice("No list items to copy"),this.close()}))}onClose(){this.contentEl.empty()}};var R6=require("obsidian"),wd=class extends R6.Modal{constructor(e,r){super(e),this.cb=r}onOpen(){this.cb(this)}onClose(){this.contentEl.empty()}};var Ws=require("obsidian");function BD(t,e,r){let o=e.target_path(t.graph),a=t.app.vault.getFileByPath(o);return a?t.app.fileManager.generateMarkdownLink(a,e.source_path(t.graph),void 0,r?e.target_data(t.graph).aliases?.at(0):void 0):`[[${mt.drop_ext(o)}]]`}async function yd(t,e,r,o){if(!r.length)return;let a=o.included_fields?.flatMap(s=>t.settings.edge_field_groups.find(i=>i.label===s)?.fields??[])??[],n=Tv(ld(r,s=>s.edge_type),s=>s.map(i=>BD(t,i,o.use_alias??!1)));switch(o.destination){case"frontmatter":{let s=!1,i=t.app.metadataCache.getFileCache(e)?.frontmatter??{};Object.entries(n).forEach(([l,u])=>{if(!u?.length||a.length&&!a.includes(l))return;let A=i[l];if(A){let c=id(A),p=ma(c.concat(u));p.length!==c.length&&(s=!0,i[l]=p)}else s=!0,i[l]=u}),s&&await t.app.fileManager.processFrontMatter(e,l=>{let u=Object.assign(l,i);H.debug("drop_crumbs > processed frontmatter",u)});break}case"dataview-inline":{let s=Object.entries(n).map(([i,l])=>!l?.length||a.length&&!a.includes(i)?"":`${i}:: ${l.join(", ")}`).filter(Boolean);await t.app.vault.process(e,i=>(i+=` + +`+s.join(` +`),i));break}case"none":break}}async function Ed(t,e,r){let o=t.graph.get_outgoing_edges(e.path).get_edges().filter(a=>!a.is_self_loop()&&!a.explicit(t.graph));await yd(t,e,o,r)}async function L6(t,e){let r=[];new Ws.Notice("Freezing implied edges in the selected folder."),Ws.Vault.recurseChildren(e,o=>{if(o instanceof Ws.TFile){let a=Ed(t,o,t.settings.commands.freeze_implied_edges.default_options);r.push(a)}}),await Promise.all(r),new Ws.Notice("Finished freezing implied edges in folder.")}var G6=require("obsidian");async function H6(t,e){let r=lo(xt);if(!r)return;let o=t.graph.get_filtered_outgoing_edges(r.path,e.fields).get_edges().filter(a=>a.target_path(t.graph)!==r.path);if(o.length)await t.app.workspace.openLinkText(o[0].target_path(t.graph),r.path);else{new G6.Notice(`No matches found with attributes: ${e.fields.join(", ")}`);return}}function V6(t,e){let r={nodes:{resolved:{}},edges:{round:{},field:{},group:{},source:{},explicit:{},implied_kind:{}}};return t.iterate_nodes(o=>{let a=String(o.resolved);r.nodes.resolved[a]=(r.nodes.resolved[a]??0)+1}),t.iterate_edges(o=>{r.edges.field[o.edge_type]=(r.edges.field[o.edge_type]??0)+1,e.groups.forEach(n=>{n.fields.includes(o.edge_type)&&(r.edges.group[n.label]=(r.edges.group[n.label]??0)+1)});let a=String(o.explicit);if(r.edges.explicit[a]=(r.edges.explicit[a]??0)+1,o.explicit)r.edges.source[o.edge_source]=(r.edges.source[o.edge_source]??0)+1;else{r.edges.implied_kind[o.edge_source]=(r.edges.implied_kind[o.edge_source]??0)+1;let n=String(o.round);r.edges.round[n]=(r.edges.round[n]??0)+1}}),r}var ll=require("obsidian");async function U6(t,e,r){let o=t.app.workspace.getActiveViewOfType(ll.MarkdownView);if(!o)return new ll.Notice("No active markdown view");let a=o.file;if(!a)return new ll.Notice("No active file");let n={attr:{field:e},source:{path:a.path,basename:a.basename,folder:a.parent?.path??""}};H.info("thread > template_data",n);let s=mt.normalize(mt.ensure_ext(T_(r.target_path_template,n),"md"));H.debug("thread > target_path",s);let i=null;try{i=await t.app.vault.create(s,"")}catch(A){let c=`Error creating file "${s}". ${A instanceof Error?A.message:A}`;new ll.Notice(c),H.error("thread > create file error",c);return}let l=new zr;new ri(new vt(i.path,[],!0,!1,!1)).add_to_batch(l),new dA(new ct(a.path,i.path,e,"typed-link")).add_to_batch(l),t.graph.apply_update(l);let u=t.graph.get_outgoing_edges(a.path).get_edges().find(A=>A.edge_type===e&&A.target_path(t.graph)===i.path);u&&await Promise.all([yd(t,a,[u],r),o.leaf.openFile(i)])}function z6(t){t.addCommand({id:"breadcrumbs:rebuild-graph",name:"Rebuild graph",callback:async()=>await t.rebuildGraph()}),Object.keys(ea).forEach(e=>{t.addCommand({id:`breadcrumbs:open-${e}-view`,name:`Open ${e} view`,callback:()=>t.activateView(ea[e])})}),t.addCommand({id:"breadcrumbs:create-list-index",name:"Create list index",callback:()=>{new bd(t.app,t).open()}}),t.addCommand({id:"breadcrumbs:graph-stats",name:"Show/Copy graph stats",callback:async()=>{let e=V6(t.graph,{groups:t.settings.edge_field_groups});H.feat("Graph stats >",e),await navigator.clipboard.writeText(JSON.stringify(e,null,2)),new ul.Notice("Graph stats printed to console and copied to clipboard")}}),t.addCommand({id:"breadcrumbs:freeze-implied-edges-to-note",name:"Freeze implied edges to note",callback:async()=>{let e=lo(xt);e&&(await Ed(t,e,t.settings.commands.freeze_implied_edges.default_options),new ul.Notice("Implied edges frozen to note"))}}),t.addCommand({id:"breadcrumbs:freeze-implied-edges-to-vault",name:"Freeze implied edges to all notes in vault",callback:async()=>{if(!confirm("Are you sure you want to freeze implied edges to all notes in vault? This will write to all notes that have outgoing implied edges."))return new ul.Notice("Command cancelled");let e="FREEZE TO VAULT";new wd(t.app,r=>{Be(Ym,{target:r.contentEl,props:{label:`Type '${e}' to confirm`,disabled_cb:o=>o!==e,submit_cb:async o=>{if(o!==e)new ul.Notice("Command cancelled");else{let a=new Tr,n=new ul.Notice("Freezing implied edges to all notes in vault...");await Promise.all(t.app.vault.getMarkdownFiles().map(s=>Ed(t,s,t.settings.commands.freeze_implied_edges.default_options))),H.debug(`freeze-implied-edges-to-vault > took ${a.elapsed_str()}ms`),n.setMessage(`Implied edges frozen to all notes in ${a.elapsed_str()}ms`)}r.close()}}})}).open()}}),t.settings.edge_field_groups.forEach(e=>{t.addCommand({id:`breadcrumbs:jump-to-first-neighbour-group:${e.label}`,name:`Jump to first neighbour by group:${e.label}`,callback:()=>H6(t,{fields:e.fields})})}),t.settings.edge_fields.forEach(({label:e})=>{t.addCommand({id:`breadcrumbs:thread-field:${e}`,name:`Thread by field:${e}`,callback:()=>U6(t,e,t.settings.commands.thread.default_options)})})}var Id=["up","down","same","prev","next"];function SD(t){switch(t){case"up":return"down";case"down":return"up";case"same":return"same";case"next":return"prev";case"prev":return"next"}}function W6(t){let e=t;if(e.userHiers&&e.impliedRelations){let r={opposite_direction:{rounds:1},self_is_sibling:{rounds:Number(e.impliedRelations.siblingIdentity)},cousin_is_sibling:{rounds:Number(e.impliedRelations.cousinsIsSibling)},same_parent_is_sibling:{rounds:Number(e.impliedRelations.sameParentIsSibling)},same_sibling_is_sibling:{rounds:Number(e.impliedRelations.siblingsSiblingIsSibling)},siblings_parent_is_parent:{rounds:Number(e.impliedRelations.siblingsParentIsParent)},parents_sibling_is_parent:{rounds:Number(e.impliedRelations.parentsSiblingsIsParents)}};e.hierarchies=e.userHiers.map(o=>({dirs:Id.reduce((a,n)=>({...a,[n]:o[n]}),{}),implied_relationships:r})),delete e.userHiers,delete e.impliedRelations}if(e.hierarchies&&(Id.forEach(r=>{let o=e.hierarchies.flatMap(s=>s.dirs[r]).filter(Boolean),a=`${r}s`,n=t.edge_field_groups.find(s=>s.label===a);n?(n.fields.push(...o),n.fields=ma(n.fields)):t.edge_field_groups.push({label:a,fields:o})}),e.hierarchies.forEach(r=>{Object.values(r.dirs).flatMap(o=>o).filter(Boolean).forEach(o=>{t.edge_fields.find(a=>a.label===o)||t.edge_fields.push({label:o})}),Object.entries(r.implied_relationships).forEach(([o,{rounds:a}])=>{if(!a)return;let n={up:r.dirs.up[0],same:r.dirs.same[0],down:r.dirs.down[0],next:r.dirs.next[0],prev:r.dirs.prev[0]};switch(o){case"opposite_direction":{Id.forEach(s=>{let i=n[s],l=n[SD(s)];!i||!l||t.implied_relations.transitive.push({rounds:a,name:"",close_field:l,chain:[{field:i}],close_reversed:!0})});break}case"cousin_is_sibling":{if(!n.up||!n.same||!n.down)return;t.implied_relations.transitive.push({rounds:a,name:"",chain:[{field:n.up},{field:n.same},{field:n.down}],close_reversed:!1,close_field:n.same});break}case"same_parent_is_sibling":{if(!n.up||!n.same||!n.down)return;t.implied_relations.transitive.push({rounds:a,name:"",chain:[{field:n.up},{field:n.down}],close_reversed:!1,close_field:n.same});break}case"same_sibling_is_sibling":{if(!n.same)return;t.implied_relations.transitive.push({rounds:a,name:"",chain:[{field:n.same},{field:n.same}],close_reversed:!1,close_field:n.same});break}case"siblings_parent_is_parent":{if(!n.up||!n.same)return;t.implied_relations.transitive.push({rounds:a,name:"",chain:[{field:n.same},{field:n.up}],close_reversed:!1,close_field:n.up});break}case"parents_sibling_is_parent":{if(!n.up||!n.same)return;t.implied_relations.transitive.push({rounds:a,name:"",chain:[{field:n.up},{field:n.same}],close_reversed:!1,close_field:n.up});break}}})}),delete e.hierarchies,t.edge_field_groups=Zu(t.edge_field_groups,r=>r.label)),e.custom_implied_relations&&(e.custom_implied_relations.transitive.forEach(r=>{t.implied_relations.transitive.push({...r,name:"",close_reversed:!1})}),delete e.custom_implied_relations),t.implied_relations.transitive=Zu(t.implied_relations.transitive,Qu),e.tagNoteField!==void 0&&(t.explicit_edge_sources.tag_note.default_field=e.tagNoteField,delete e.tagNoteField),e.hierarchyNotes!==void 0&&e.hierarchyNoteIsParent!==void 0&&e.HNUpField!==void 0){if(e.hierarchyNotes.length>0){let r=`DEPRECATED: The central Hierarchy Notes setting is deprecated in favour of the "${Ve["list-note-field"]}" field in each hierarchy note.`;H.warn(r)}delete e.HNUpField,delete e.hierarchyNotes,delete e.hierarchyNoteIsParent}return e.addDendronNotes!==void 0&&e.dendronNoteField!==void 0&&e.trimDendronNotes!==void 0&&e.dendronNoteDelimiter!==void 0&&(t.explicit_edge_sources.dendron_note={enabled:e.addDendronNotes,default_field:e.dendronNoteField,delimiter:e.dendronNoteDelimiter,display_trimmed:e.trimDendronNotes},delete e.addDendronNotes,delete e.dendronNoteField,delete e.trimDendronNotes,delete e.dendronNoteDelimiter),e.addDateNotes!==void 0&&e.dateNoteField!==void 0&&e.dateNoteFormat!==void 0&&(t.explicit_edge_sources.date_note={...vA.explicit_edge_sources.date_note,enabled:e.addDateNotes,default_field:e.dateNoteField,date_format:e.dateNoteFormat},delete e.addDateNotes,delete e.dateNoteField,delete e.dateNoteFormat),e.respectReadableLineLength!==void 0&&(t.views.page.all.readable_line_width=e.respectReadableLineLength,delete e.respectReadableLineLength),e.showBCs!==void 0&&(t.views.page.trail.enabled=e.showBCs,delete e.showBCs),e.showGrid!==void 0&&(t.views.page.trail.format=e.showGrid?"grid":"path",delete e.showGrid),e.gridDefaultDepth!==void 0&&(t.views.page.trail.default_depth=e.gridDefaultDepth,delete e.gridDefaultDepth),e.noPathMessage!==void 0&&(t.views.page.trail.no_path_message=e.noPathMessage,delete e.noPathMessage),e.showPrevNext!==void 0&&(t.views.page.prev_next.enabled=e.showPrevNext,delete e.showPrevNext),e.views.side.tree.default_dir!==void 0&&delete e.views.side.tree.default_dir,t.codeblocks!==void 0&&(t.views.codeblocks=t.codeblocks,delete t.codeblocks),e.showRefreshNotice!==void 0&&e.refreshOnNoteSave!==void 0&&e.refreshOnNoteChange!==void 0&&(t.commands.rebuild_graph.notify=e.showRefreshNotice,t.commands.rebuild_graph.trigger={note_save:e.refreshOnNoteSave,layout_change:e.refreshOnNoteChange},delete e.showRefreshNotice,delete e.refreshOnNoteSave,delete e.refreshOnNoteChange),e.wikilinkIndex!==void 0&&e.aliasesInIndex!==void 0&&e.createIndexIndent!==void 0&&(t.commands.list_index.default_options={...t.commands.list_index.default_options,indent:e.createIndexIndent,link_kind:e.wikilinkIndex?"wiki":"none",show_node_options:{...oi.show_node_options,alias:e.aliasesInIndex}},delete t.commands.list_index.default_options.dir,delete e.wikilinkIndex,delete e.aliasesInIndex,delete e.createIndexIndent),e.writeBCsInline!==void 0&&(t.commands.freeze_implied_edges.default_options.destination=e.writeBCsInline?"dataview-inline":"frontmatter",delete e.writeBCsInline),e.threadingTemplate!==void 0&&(t.commands.thread.default_options.target_path_template=e.threadingTemplate,delete e.threadingTemplate),e.threadUnderCursor!==void 0&&(t.commands.thread.default_options.destination=e.threadUnderCursor?"dataview-inline":"frontmatter",delete e.threadUnderCursor),e.enableRelationSuggestor!==void 0&&(t.suggestors.edge_field.enabled=e.enableRelationSuggestor,delete e.enableRelationSuggestor),e.relSuggestorTrigger!==void 0&&(t.suggestors.edge_field.trigger=e.relSuggestorTrigger,delete e.relSuggestorTrigger),e.suggestors.hierarchy_field!==void 0&&(t.suggestors.edge_field=e.suggestors.hierarchy_field,delete e.suggestors.hierarchy_field),e.alphaSortAsc!==void 0&&delete e.alphaSortAsc,e.debugMode&&delete e.debugMode,e.dvWaitTime!==void 0&&delete e.dvWaitTime,e.fieldSuggestor!==void 0&&delete e.fieldSuggestor,e.filterImpliedSiblingsOfDifferentTypes!==void 0&&delete e.filterImpliedSiblingsOfDifferentTypes,e.jugglLayout!==void 0&&delete e.jugglLayout,t}var K6=require("obsidian"),$d=class extends K6.EditorSuggest{constructor(r){super(r.app);this.getSuggestions=({query:r})=>this.plugin.settings.edge_fields.map(o=>o.label).filter(o=>o.includes(r));this.plugin=r}onTrigger(r,o,a){let{trigger:n}=this.plugin.settings.suggestors.edge_field,s=o.getLine(r.line).substring(0,r.ch);return s.startsWith(n)?{query:s.slice(n.length),end:r,start:{ch:0,line:r.line}}:null}renderSuggestion(r,o){o.createDiv({text:r})}selectSuggestion(r){if(!this.context)return;let{start:o,end:a,editor:n}=this.context;n.replaceRange(r+":: [[",o,a)}};var Z6=require("obsidian");var CD=q('
No paths found
'),TD=q('
');function Jm(t,e){ae(e,!0);let[r,o]=Sr(),a=()=>Br(xt,"$active_file_store",r),n=U(e,"plugin",7);H.debug("Rendering Tree side view");let s=kt(structuredClone(pr(n().settings.views.side.tree)));jt(()=>{n().settings.views.side.tree=pr(s),Re(()=>void n().saveSettings())});let i=de(()=>Cr(n().settings.edge_field_groups,s.field_group_labels)),l=de(()=>po(s.edge_sort_id.field,s.edge_sort_id.order===-1)),u=de(a),A=de(()=>{if(d(u)&&n().graph.has_node(d(u).path))return s.lock_view&&n().graph.has_node(s.lock_path)?(H.debug("Using locked path for TreeView:",s.lock_path),n().graph.rec_traverse_and_process(new Nt([s.lock_path],d(i),5,100,!s.merge_fields,void 0),new co(d(l),!1))):n().graph.rec_traverse_and_process(new Nt([d(u).path],d(i),5,100,!s.merge_fields,void 0),new co(d(l),!1))}),c=de(()=>{let P=d(l);return Re(()=>d(A)===null||d(A)===void 0?void 0:d(A).sort(n().graph,P)),{tree:d(A)}}),p=de(()=>hr(n().settings,s.show_node_options));var m=TD(),h=w(m),y=w(h),I=w(y);sA(I,{cls:"clickable-icon nav-action-button",get plugin(){return n()}});var F=S(I,2);{let P=de(()=>d(u)?.path);nA(F,{cls:"clickable-icon nav-action-button",get active_path(){return d(P)},get lock_view(){return s.lock_view},set lock_view(le){s.lock_view=le},get lock_path(){return s.lock_path},set lock_path(le){s.lock_path=le}})}var R=S(F,2);Hs(R,{cls:"clickable-icon nav-action-button",exclude_fields:[],get edge_sort_id(){return s.edge_sort_id},set edge_sort_id(P){s.edge_sort_id=P}});var B=S(R,2);Vs(B,{cls:"clickable-icon nav-action-button",get show_attributes(){return s.show_attributes},set show_attributes(P){s.show_attributes=P}});var j=S(B,2);aA(j,{cls:"clickable-icon nav-action-button",get collapse(){return s.collapse},set collapse(P){s.collapse=P}});var E=S(j,2);rA(E,{cls:"clickable-icon nav-action-button",get merge_fields(){return s.merge_fields},set merge_fields(P){s.merge_fields=P}});var D=S(E,2);Ls(D,{cls:"clickable-icon nav-action-button",get edge_field_groups(){return n().settings.edge_field_groups},get field_group_labels(){return s.field_group_labels},set field_group_labels(P){s.field_group_labels=P}}),b(y),b(h);var k=S(h,2),C=w(k);so(C,()=>d(c),P=>{var le=J(),xe=K(le);{var fe=G=>{{let Y=de(()=>!s.collapse);zs(G,{get plugin(){return n()},get node_stringify_options(){return d(p)},get show_attributes(){return s.show_attributes},get data(){return d(c).tree},get items(){return d(c).tree.entry_nodes},get open_signal(){return d(Y)}})}},He=G=>{var Y=CD();v(G,Y)};se(xe,G=>{d(c).tree&&!d(c).tree.is_empty()?G(fe):G(He,!1)})}v(P,le)}),b(k),b(m),v(t,m),ne(),o()}var Dd=class extends Z6.ItemView{constructor(r,o){super(r);this.icon="tree-pine";this.plugin=o}getViewType(){return ea.tree}getDisplayText(){return"Tree view"}onload(){this.registerEvent(this.plugin.events.on("redraw-side-views",()=>{this.onOpen()}))}async onOpen(){this.containerEl.children[1].empty(),this.component=Be(Jm,{target:this.contentEl,props:{plugin:this.plugin}})}async onClose(){this.component&&await Yo(this.component)}};var lA=(a=>(a.GRAPH_UPDATE="graph-update",a.REDRAW_CODEBLOCKS="redraw-codeblocks",a.REDRAW_PAGE_VIEWS="redraw-page-views",a.REDRAW_SIDE_VIEWS="redraw-side-views",a))(lA||{}),Fd=class extends xa.Plugin{async onload(){await this.loadSettings(),await this.backup_old_settings(),this.settings=W6(this.settings),await this.saveSettings(),H.set_level(this.settings.debug.level),H.info(`loading plugin "${this.manifest.name}" plugin v${this.manifest.version}`),H.debug("settings >",this.settings),this.events=new xa.Events,this.events.on("graph-update",()=>{this.refreshViews()}),this.events.on("redraw-page-views",()=>{oA(this)}),await F_({module_or_path:N6}),this.graph=$_(),this.graph.set_update_callback(()=>{queueMicrotask(()=>this.events.trigger("graph-update"))}),this.addSettingTab(new hd(this.app,this)),this.registerEvent(this.app.workspace.on("file-menu",this.handleFileMenu.bind(this))),this.api=new xd(this),window.BCAPI=this.api,this.register(()=>delete window.BCAPI),this.registerHoverLinkSource("breadcrumbs",{defaultMod:!0,display:"Breadcrumbs"}),this.settings.suggestors.edge_field.enabled&&this.registerEditorSuggest(new $d(this)),this.app.workspace.onLayoutReady(async()=>{H.debug("on:layout-ready");try{let e=this.app.metadataTypeManager.getAllProperties();for(let r of this.settings.edge_fields)e[r.label]?.type||this.app.metadataTypeManager.setType(r.label,"multitext");for(let[r,{property_type:o}]of Object.entries(G_))e[r]?.type!==o&&this.app.metadataTypeManager.setType(r,o)}catch(e){H.error("metadataTypeManager.setType error >",e)}if(await Ba.await_if_enabled(this),this.app.metadataCache.initialized)H.debug("metadataCache:initialized"),await this.rebuildGraph();else{let e=this.app.metadataCache.on("initialized",()=>{H.debug("on:metadatacache-initialized"),this.rebuildGraph(),this.app.metadataCache.offref(e)})}this.registerEvent(this.app.workspace.on("layout-change",()=>{H.debug("on:layout-change"),this.settings.commands.rebuild_graph.trigger.layout_change?this.rebuildGraph():this.events.trigger("redraw-page-views")})),this.registerEvent(this.app.workspace.on("active-leaf-change",e=>{H.debug("on:active-leaf-change"),e?.getViewState().type==="markdown"&&(xt.refresh(this.app),this.events.trigger("redraw-side-views"))})),this.registerEvent(this.app.vault.on("create",e=>{if(H.debug("on:create >",e.path),e instanceof xa.TFile&&e.extension==="md"){let r=new zr;new ri(new vt(e.path,[],!0,!1,!1)).add_to_batch(r),this.graph.apply_update(r)}})),this.registerEvent(this.app.vault.on("rename",(e,r)=>{if(H.debug("on:rename >",r,"->",e.path),e instanceof xa.TFile&&e.extension==="md"){let o=new zr;new _A(r,e.path).add_to_batch(o),this.graph.apply_update(o)}})),this.registerEvent(this.app.vault.on("delete",e=>{if(H.debug("on:delete >",e.path),e instanceof xa.TFile&&e.extension==="md"){let r=new zr;new mA(e.path).add_to_batch(r),this.graph.apply_update(r)}})),this.registerView(ea.matrix,e=>new jd(e,this)),this.registerView(ea.tree,e=>new Dd(e,this))}),this.registerMarkdownCodeBlockProcessor("breadcrumbs",(e,r,o)=>{let a=new kd(this,r,e,o.sourcePath);o.addChild(a)}),z6(this),H.debug("loaded Breadcrumbs plugin")}onunload(){}async loadSettings(){this.settings=Jd(await this.loadData()??{},vA)}handleFileMenu(e,r){r instanceof Y6.TFolder&&e.addItem(o=>{o.setTitle("Freeze implied edges in folder").setIcon("pin").onClick(()=>L6(this,r))})}async saveSettings(){this.settings.is_dirty=!1,await this.saveData(this.settings)}async backup_old_settings(){let e=`${this.app.vault.configDir}/plugins/${this.manifest.id}/data-backup__no-directions-migration.json`;await this.app.vault.adapter.exists(e)||(await this.app.vault.adapter.write(e,JSON.stringify(this.settings,null," ")),H.info(`old settings backed up to ${e}`))}async rebuildGraph(){let e=new Tr,r=this.settings.commands.rebuild_graph.notify?new xa.Notice("Rebuilding graph"):null,a=(await Pv(this)).explicit_edge_results.filter(({results:n})=>n.errors.length).reduce((n,{source:s,results:i})=>(n[s]=i.errors,n),{});Object.keys(a).length&&H.warn("explicit_edge_errors >",a),r?.setMessage([`Rebuilt graph in ${e.elapsed_str()}ms`,Object.keys(a).length?` +Explicit edge errors (see console for details):`:null,...Object.entries(a).map(([n,s])=>`- ${n}: ${s.length} errors`)].filter(Boolean).join(` +`))}refreshViews(){this.events.trigger("redraw-page-views"),this.events.trigger("redraw-codeblocks"),this.events.trigger("redraw-side-views")}async activateView(e,r){let{workspace:o}=this.app,a=null,n=o.getLeavesOfType(e);if(n.length>0)a=n[0];else{if(a=r?.side==="left"?o.getLeftLeaf(!1):o.getRightLeaf(!1),!a){H.warn("activate_view > no leaf found");return}await a.setViewState({type:e,active:!0})}await o.revealLeaf(a)}}; /*! Bundled license information: lucide-svelte/dist/defaultAttributes.js: +lucide-svelte/dist/icons/index.js: +lucide-svelte/dist/icons/check.js: +lucide-svelte/dist/icons/clipboard.js: +lucide-svelte/dist/icons/group.js: +lucide-svelte/dist/icons/image.js: +lucide-svelte/dist/icons/lock-keyhole.js: +lucide-svelte/dist/icons/merge.js: +lucide-svelte/dist/icons/pencil.js: +lucide-svelte/dist/icons/plus.js: +lucide-svelte/dist/icons/save.js: +lucide-svelte/dist/icons/split.js: +lucide-svelte/dist/icons/lock-keyhole-open.js: +lucide-svelte/dist/aliases/suffixed.js: (** - * @license lucide-svelte v0.360.0 - ISC + * @license lucide-svelte v0.537.0 - ISC * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. + * ISC License + * + * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022. + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * *) lucide-svelte/dist/icons/arrow-down-wide-narrow.svelte: - (** - * @license lucide-svelte v0.360.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - lucide-svelte/dist/icons/arrow-down.svelte: - (** - * @license lucide-svelte v0.360.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - lucide-svelte/dist/icons/arrow-up-narrow-wide.svelte: - (** - * @license lucide-svelte v0.360.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - lucide-svelte/dist/icons/arrow-up.svelte: - (** - * @license lucide-svelte v0.360.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - lucide-svelte/dist/icons/check.svelte: - (** - * @license lucide-svelte v0.360.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - lucide-svelte/dist/icons/chevron-down.svelte: - (** - * @license lucide-svelte v0.360.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - lucide-svelte/dist/icons/chevron-right.svelte: - (** - * @license lucide-svelte v0.360.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - lucide-svelte/dist/icons/chevrons-down-up.svelte: - (** - * @license lucide-svelte v0.360.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - lucide-svelte/dist/icons/chevrons-up-down.svelte: - (** - * @license lucide-svelte v0.360.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - lucide-svelte/dist/icons/clipboard.svelte: - (** - * @license lucide-svelte v0.360.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - lucide-svelte/dist/icons/file-json.svelte: - (** - * @license lucide-svelte v0.360.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - lucide-svelte/dist/icons/group.svelte: - (** - * @license lucide-svelte v0.360.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - lucide-svelte/dist/icons/image.svelte: - (** - * @license lucide-svelte v0.360.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - +lucide-svelte/dist/icons/lock-keyhole-open.svelte: +lucide-svelte/dist/icons/lock-keyhole.svelte: lucide-svelte/dist/icons/merge.svelte: - (** - * @license lucide-svelte v0.360.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - lucide-svelte/dist/icons/pencil.svelte: - (** - * @license lucide-svelte v0.360.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - lucide-svelte/dist/icons/plus.svelte: - (** - * @license lucide-svelte v0.360.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - lucide-svelte/dist/icons/rotate-ccw.svelte: - (** - * @license lucide-svelte v0.360.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - lucide-svelte/dist/icons/save.svelte: - (** - * @license lucide-svelte v0.360.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - lucide-svelte/dist/icons/split.svelte: (** - * @license lucide-svelte v0.360.0 - ISC + * @license lucide-svelte v0.537.0 - ISC * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-svelte/dist/icons/index.js: - (** - * @license lucide-svelte v0.360.0 - ISC + * ISC License * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-svelte/dist/aliases.js: - (** - * @license lucide-svelte v0.360.0 - ISC + * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022. + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. *) */ + +/* nosourcemap */ \ No newline at end of file diff --git a/.obsidian/plugins/breadcrumbs/manifest.json b/.obsidian/plugins/breadcrumbs/manifest.json index 031bde4e..8a4dbeba 100644 --- a/.obsidian/plugins/breadcrumbs/manifest.json +++ b/.obsidian/plugins/breadcrumbs/manifest.json @@ -1 +1,12 @@ -{"id":"breadcrumbs","name":"Breadcrumbs","version":"4.2.35-beta","minAppVersion":"1.0.0","description":"Add structured hierarchies to your notes","author":"SkepticMystic","authorUrl":"https://github.com/SkepticMystic/breadcrumbs","fundingUrl":"https://github.com/SkepticMystic/breadcrumbs#donations","helpUrl":"https://publish.obsidian.md/breadcrumbs-docs","isDesktopOnly":false} \ No newline at end of file +{ + "id": "breadcrumbs", + "name": "Breadcrumbs", + "version": "4.4.3", + "minAppVersion": "1.0.0", + "description": "Add structured hierarchies to your notes", + "author": "SkepticMystic", + "authorUrl": "https://github.com/SkepticMystic/breadcrumbs", + "fundingUrl": "https://github.com/SkepticMystic/breadcrumbs#donations", + "helpUrl": "https://publish.obsidian.md/breadcrumbs-docs", + "isDesktopOnly": false +} \ No newline at end of file diff --git a/.obsidian/plugins/breadcrumbs/styles.css b/.obsidian/plugins/breadcrumbs/styles.css index b6957c4b..4262a094 100644 --- a/.obsidian/plugins/breadcrumbs/styles.css +++ b/.obsidian/plugins/breadcrumbs/styles.css @@ -1 +1 @@ -.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.\!collapse{visibility:collapse!important}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.bottom-2{bottom:.5rem}.left-2{left:.5rem}.right-2{right:.5rem}.top-2{top:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-top:0;margin-bottom:0}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-1{margin-bottom:.25rem}.mb-4{margin-bottom:1rem}.block{display:block}.flex{display:flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.h-32{height:8rem}.w-10{width:2.5rem}.w-48{width:12rem}.w-60{width:15rem}.w-8{width:2rem}.w-full{width:100%}.shrink{flex-shrink:1}.grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.scroll-mt-40{scroll-margin-top:10rem}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-7{gap:1.75rem}.border{border-width:1px}.p-1{padding:.25rem}.p-2{padding:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-semibold{font-weight:600}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.BC-matrix-view hr:last-child{display:none}.BC-page-views.BC-page-views-sticky{z-index:50;position:sticky;top:calc(var(--file-margins)*-1);background-color:var(--background-primary)}.text-faint{color:var(--text-faint)}.text-warning{color:var(--text-warning)}.text-error{color:var(--text-error)} \ No newline at end of file +.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.\!collapse{visibility:collapse!important}.collapse{visibility:collapse}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.bottom-2{bottom:.5rem}.left-2{left:.5rem}.right-2{right:.5rem}.top-2{top:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-top:0;margin-bottom:0}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-1{margin-bottom:.25rem}.mb-4{margin-bottom:1rem}.block{display:block}.flex{display:flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.h-32{height:8rem}.w-10{width:2.5rem}.w-48{width:12rem}.w-60{width:15rem}.w-8{width:2rem}.w-full{width:100%}.shrink{flex-shrink:1}.grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.scroll-mt-40{scroll-margin-top:10rem}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-7{gap:1.75rem}.border{border-width:1px}.p-1{padding:.25rem}.p-2{padding:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-semibold{font-weight:600}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.BC-matrix-view hr:last-child{display:none}.BC-page-views.BC-page-views-sticky{z-index:50;position:sticky;top:calc(var(--file-margins)*-1);background-color:var(--background-primary)}.text-faint{color:var(--text-faint)}.text-warning{color:var(--text-warning)}.text-error{color:var(--text-error)} \ No newline at end of file diff --git a/.obsidian/plugins/darlal-switcher-plus/main.js b/.obsidian/plugins/darlal-switcher-plus/main.js index 8f2a5b88..3e209084 100644 --- a/.obsidian/plugins/darlal-switcher-plus/main.js +++ b/.obsidian/plugins/darlal-switcher-plus/main.js @@ -1,3 +1,3 @@ -"use strict";var e,t,s,i,n=require("obsidian");!function(e){e[e.None=0]="None",e[e.Full=1]="Full",e[e.FolderOnly=2]="FolderOnly",e[e.FolderWithFilename=3]="FolderWithFilename",e[e.FolderPathFilenameOptional=4]="FolderPathFilenameOptional"}(e||(e={})),function(e){e[e.Standard=1]="Standard",e[e.EditorList=2]="EditorList",e[e.SymbolList=4]="SymbolList",e[e.WorkspaceList=8]="WorkspaceList",e[e.HeadingsList=16]="HeadingsList",e[e.BookmarksList=32]="BookmarksList",e[e.CommandList=64]="CommandList",e[e.RelatedItemsList=128]="RelatedItemsList",e[e.VaultList=256]="VaultList"}(t||(t={})),function(e){e[e.Link=1]="Link",e[e.Embed=2]="Embed",e[e.Tag=4]="Tag",e[e.Heading=8]="Heading",e[e.Callout=16]="Callout",e[e.CanvasNode=32]="CanvasNode",e[e.BaseView=64]="BaseView"}(s||(s={})),function(e){e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Heading=2]="Heading",e[e.Block=4]="Block"}(i||(i={}));const a={};a[s.Link]="🔗",a[s.Embed]="!",a[s.Tag]="#",a[s.Heading]="H";const o={};var r,l,d;function c(e,t,s){let i=!1;return e&&void 0!==e[t]&&(i=!0,void 0!==s&&s!==e[t]&&(i=!1)),i}function h(e){return c(e,"type",r.SymbolList)}function m(e){return c(e,"type",r.HeadingsList)}function u(e){return c(e,"type",r.File)}function g(e){return c(e,"type",r.Alias)}function p(e){return c(e,"type",r.Unresolved)}function f(e){return e&&!(u(t=e)||p(t)||g(t));var t}function y(e){return c(e,"level")}function b(e){return c(e,"tag")}function S(e){return c(e,"type","callout")}function k(e){return c(e,"extension")}function v(e,t){return e?.internalPlugins?.getEnabledPluginById(t)}function w(e){const t=function(e,t){return e?.internalPlugins?.getPluginById(t)}(e,"switcher");return t?.instance}function C(e){return v(e,"global-search")}function L(){return Object.values(t).filter((e=>isNaN(Number(e)))).sort()}function I(){return[t.RelatedItemsList,t.SymbolList]}function T(e){let t=null;if(e){const s=n.normalizePath(e),i=s.lastIndexOf("/");t=-1===i?s:s.slice(i+1)}return t}function E(e){e=e??[];const t=[];for(const s of e)try{const e=new RegExp(s);t.push(e)}catch(e){console.log(`Switcher++: error creating RegExp from string: ${s}`,e)}return e=>{for(const s of t)if(s.test(e))return!0;return!1}}function F(e){let t=i.None;if(e){const s=e.link.split("|")[0];t=s.includes("#^")?i.Block:s.includes("#")?i.Heading:i.Normal}return t}function A(e,t){return t?.getFileByPath(e)}function x(e){let t=null;if(!e)return t;if(e.isDeferred){const s=e.getViewState()?.state?.file;s&&(t=A(s,e.app?.vault))}else e.view?.file&&(t=e.view.file);return t}function O(e,t,s,i,a){let o=null;if(a=Object.assign({useBasenameAsAlias:!0,useHeadingAsAlias:!0},a),s){let l=M(s),d=null,h=null;switch(s.type){case r.Unresolved:o=R(s.linktext);break;case r.Alias:d=s.alias;break;case r.Bookmark:{const{item:e}=s;"file"===e.type&&e.title&&(d=e.title);break}case r.HeadingsList:{const{heading:e}=s.item;({subpath:h,alias:d}=P(e,a.useHeadingAsAlias));break}case r.SymbolList:{const{item:{symbol:r}}=s;if(y(r))({subpath:h,alias:d}=P(r.heading,a.useHeadingAsAlias));else if(c(r,"link")){o=new RegExp(/^\[(.*?)\]\((.+?)\)/).test(r.original)?r.original:function(e,t,s,i,a,o){const{link:r,displayText:l}=i,{path:d,subpath:c}=n.parseLinktext(r);let h=l,m=null,u=null;m=d?.length?A(d,t):a;m?(!h?.length&&o&&(h=m.basename),u=e.generateMarkdownLink(m,s,c,h)):u=R(d,h);return u}(e,t,i,r,l,a.useBasenameAsAlias)}else l=null;break}case r.RelatedItemsList:{const{item:e}=s;e.unresolvedText&&(o=R(e.unresolvedText));break}}l&&!o&&(!d&&a.useBasenameAsAlias&&(d=l.basename),o=e.generateMarkdownLink(l,i,h,d))}return o}function P(e,t){const s=n.stripHeadingForLink(e);return{subpath:`#${s}`,alias:t?s:null}}function M(e){let t=null;return[r.Alias,r.Bookmark,r.HeadingsList,r.SymbolList,r.RelatedItemsList,r.EditorList,r.File].includes(e?.type)&&(t=e.file),t}function R(e,t){return`[[${e}${t=t?.length?`|${t}`:""}]]`}function B(e,t){return e?.view?.getViewType()===t&&!e.isDeferred}o[1]="H₁",o[2]="H₂",o[3]="H₃",o[4]="H₄",o[5]="H₅",o[6]="H₆",function(e){e.EditorList="editorList",e.SymbolList="symbolList",e.WorkspaceList="workspaceList",e.HeadingsList="headingsList",e.Bookmark="bookmark",e.CommandList="commandList",e.RelatedItemsList="relatedItemsList",e.VaultList="vaultList",e.File="file",e.Alias="alias",e.Unresolved="unresolved"}(r||(r={})),function(e){e[e.None=0]="None",e[e.Primary=1]="Primary",e[e.Basename=2]="Basename",e[e.Path=3]="Path"}(l||(l={})),function(e){e.DiskLocation="disk-location",e.Backlink="backlink",e.OutgoingLink="outgoing-link"}(d||(d={}));class H{static getAliases(e){let t=[];return e&&(t=H.getValueForKey(e,/^alias(es)?$/i)),t}static getTags(e){let t=[];return e&&(t=H.getValueForKey(e,/^tags?$/i)),t}static getValueForKey(e,t){const s=[],i=Object.keys(e).find((e=>t.test(e)));if(i){let t=e[i];"string"==typeof t&&(t=t.split(",")),Array.isArray(t)&&t.forEach((e=>{"string"==typeof e&&s.push(e.trim())}))}return s}}class D{static rootComponent;static getRootComponent(){return this.rootComponent||(this.rootComponent=new n.Component),this.rootComponent}static unload(){this.rootComponent?.unload()}}const V={file:"canvas-node-file",text:"canvas-node-text",link:"canvas-node-link",group:"canvas-node-group"},W={table:"base-view-table",list:"base-view-list",cards:"base-view-cards"},N=[{id:s[s.Heading],mode:t.SymbolList,label:"headings",isActive:!1,isAvailable:!0},{id:s[s.Tag],mode:t.SymbolList,label:"tags",isActive:!1,isAvailable:!0},{id:s[s.Callout],mode:t.SymbolList,label:"callouts",isActive:!1,isAvailable:!0},{id:s[s.Link],mode:t.SymbolList,label:"links",isActive:!1,isAvailable:!0},{id:s[s.Embed],mode:t.SymbolList,label:"embeds",isActive:!1,isAvailable:!0},{id:V.file,mode:t.SymbolList,label:"file cards",isActive:!1,isAvailable:!0},{id:V.text,mode:t.SymbolList,label:"text cards",isActive:!1,isAvailable:!0},{id:V.link,mode:t.SymbolList,label:"link cards",isActive:!1,isAvailable:!0},{id:V.group,mode:t.SymbolList,label:"groups",isActive:!1,isAvailable:!0},{id:W.table,mode:t.SymbolList,label:"table views",isActive:!1,isAvailable:!0},{id:W.list,mode:t.SymbolList,label:"list views",isActive:!1,isAvailable:!0},{id:W.cards,mode:t.SymbolList,label:"card views",isActive:!1,isAvailable:!0}],K=[{id:d.Backlink,mode:t.RelatedItemsList,label:"backlinks",isActive:!1,isAvailable:!0},{id:d.OutgoingLink,mode:t.RelatedItemsList,label:"outgoing links",isActive:!1,isAvailable:!0},{id:d.DiskLocation,mode:t.RelatedItemsList,label:"disk location",isActive:!1,isAvailable:!0}],j={file:"bookmarks-file",folder:"bookmarks-folder",search:"bookmarks-search",group:"bookmarks-group"},q=[{id:j.file,mode:t.BookmarksList,label:"files",isActive:!1,isAvailable:!0},{id:j.folder,mode:t.BookmarksList,label:"folders",isActive:!1,isAvailable:!0},{id:j.search,mode:t.BookmarksList,label:"searches",isActive:!1,isAvailable:!0}];var $;!function(e){e.Pinned="pinnedCommands",e.Recent="recentCommands"}($||($={}));const U=[{id:$.Pinned,mode:t.CommandList,label:"pinned",isActive:!1,isAvailable:!0},{id:$.Recent,mode:t.CommandList,label:"recent",isActive:!1,isAvailable:!0}];var Q;!function(e){e.RecentFiles="recentFilesSearch",e.Bookmarks="bookmarksSearch",e.Filenames="filenamesSearch",e.Headings="headingsSearch",e.ExternalFiles="externalFilesSearch"}(Q||(Q={}));const _=[{id:Q.RecentFiles,mode:t.HeadingsList,label:"recent files",isActive:!1,isAvailable:!0},{id:Q.Bookmarks,mode:t.HeadingsList,label:"bookmarks",isActive:!1,isAvailable:!0},{id:Q.Filenames,mode:t.HeadingsList,label:"filenames",isActive:!1,isAvailable:!0},{id:Q.Headings,mode:t.HeadingsList,label:"headings",isActive:!1,isAvailable:!0},{id:Q.ExternalFiles,mode:t.HeadingsList,label:"external files",isActive:!1,isAvailable:!0}];function G(){const e={};return[N,K,q,U,_].flat().reduce(((e,t)=>(e[t.id]=Object.assign({},t),e)),e),e}const z=e=>{if("object"==typeof e&&null!==e){if("function"==typeof Object.getPrototypeOf){const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}return"[object Object]"===Object.prototype.toString.call(e)}return!1},J=(...e)=>e.reduce(((e,t)=>{if(void 0===t)return e;if(Array.isArray(t))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(t).forEach((s=>{["__proto__","constructor","prototype"].includes(s)||(Array.isArray(e[s])&&Array.isArray(t[s])?e[s]=J.options.mergeArrays?J.options.uniqueArrayItems?Array.from(new Set(e[s].concat(t[s]))):[...e[s],...t[s]]:t[s]:z(e[s])&&z(t[s])?e[s]=J(e[s],t[s]):!z(e[s])&&z(t[s])?e[s]=J(t[s],void 0):e[s]=void 0===t[s]?J.options.allowUndefinedOverrides?t[s]:e[s]:t[s])})),e}),{}),Y={allowUndefinedOverrides:!0,mergeArrays:!0,uniqueArrayItems:!0};J.options=Y,J.withOptions=(e,...t)=>{J.options=Object.assign(Object.assign({},Y),e);const s=J(...t);return J.options=Y,s};class X{plugin;data;static get defaults(){const i={};return i[s.Link]=!0,i[s.Embed]=!0,i[s.Tag]=!0,i[s.Heading]=!0,i[s.Callout]=!0,{version:"2.0.0",onOpenPreferNewTab:!0,alwaysNewTabForSymbols:!1,useActiveTabForSymbolsOnMobile:!1,symbolsInLineOrder:!0,editorListCommand:"edt ",symbolListCommand:"@",symbolListActiveEditorCommand:"$ ",workspaceListCommand:"+",headingsListCommand:"#",bookmarksListCommand:"'",commandListCommand:">",recentCommandDisplayOrder:"desc",maxRecentCommands:25,vaultListCommand:"vault ",relatedItemsListCommand:"~",relatedItemsListActiveEditorCommand:"^ ",shouldSearchHeadings:!0,strictHeadingsOnly:!1,searchAllHeadings:!0,headingsSearchDebounceMilli:250,excludeViewTypes:["empty"],referenceViews:["backlink","localgraph","outgoing-link","outline"],limit:50,includeSidePanelViewTypes:["backlink","image","markdown","pdf"],enabledSymbolTypes:i,selectNearestHeading:!0,excludeFolders:[],excludeLinkSubTypes:0,excludeRelatedFolders:[""],excludeOpenRelatedFiles:!1,excludeObsidianIgnoredFiles:!1,shouldSearchFilenames:!1,shouldSearchBookmarks:!1,shouldSearchRecentFiles:!0,pathDisplayFormat:e.FolderWithFilename,hidePathIfRoot:!0,enabledRelatedItems:Object.values(d),showOptionalIndicatorIcons:!0,isFileExtensionIndicatorsEnabled:!0,excludeFileExtensionIndicators:["md"],overrideStandardModeBehaviors:!0,overrideStandardModeRendering:!0,enabledRibbonCommands:[t[t.HeadingsList],t[t.SymbolList]],fileExtAllowList:["canvas"],matchPriorityAdjustments:{isEnabled:!1,adjustments:{isOpenInEditor:{value:0,label:"Open items"},isBookmarked:{value:0,label:"Bookmarked items"},isRecent:{value:0,label:"Recent items"},isAttachment:{value:0,label:"Attachment file types"},file:{value:0,label:"Filenames"},alias:{value:0,label:"Aliases"},unresolved:{value:0,label:"Unresolved filenames"},h1:{value:0,label:"H₁ headings"}},fileExtAdjustments:{canvas:{value:0,label:"Canvas files"}}},quickFilters:{resetKey:"0",keyList:["1","2","3","4","5","6","7","8","9"],modifiers:["Ctrl","Alt"],facetList:G(),shouldResetActiveFacets:!1,shouldShowFacetInstructions:!0},preserveCommandPaletteLastInput:!1,preserveQuickSwitcherLastInput:!1,shouldCloseModalOnBackspace:!1,maxRecentFileSuggestionsOnInit:25,orderEditorListByAccessTime:!0,insertLinkInEditor:{isEnabled:!0,keymap:{modifiers:["Mod"],key:"i",purpose:"insert in editor"},insertableEditorTypes:["markdown"],useBasenameAsAlias:!0,useHeadingAsAlias:!0},removeDefaultTabBinding:!0,navigationKeys:{nextKeys:[{modifiers:["Ctrl"],key:"n"},{modifiers:["Ctrl"],key:"j"}],prevKeys:[{modifiers:["Ctrl"],key:"p"},{modifiers:["Ctrl"],key:"k"}]},preferredSourceForTitle:"H1",frontmatterTitleProperty:"title",closeWhenEmptyKeys:[{modifiers:null,key:"Backspace"}],navigateToHotkeySelectorKeys:{modifiers:["Ctrl","Shift"],key:"h"},togglePinnedCommandKeys:{modifiers:["Ctrl","Shift"],key:"p"},escapeCmdChar:"!",mobileLauncher:{isEnabled:!1,isMobileButtonEnabled:!0,isEmptyTabButtonEnabled:!0,modeString:t[t.HeadingsList],iconName:"",coreLauncherButtonIconSelector:"span.clickable-icon",coreLauncherButtonSelector:".mobile-navbar-action.mobile-navbar-action-quick-switcher"},allowCreateNewFileInModeNames:[t[t.Standard],t[t.HeadingsList]],showModeTriggerInstructions:!0,renderMarkdownContentInSuggestions:{isEnabled:!1,renderHeadings:!1,renderLinks:!1,renderTags:!1,renderCallouts:!1,toggleContentRenderingKeys:{modifiers:["Shift","Ctrl"],key:"m"}},quickOpen:{isEnabled:!0,modifiers:["Alt"],keyList:["1","2","3","4","5","6","7","8","9"]},openDefaultApp:{isEnabled:!0,openInDefaultAppKeys:{modifiers:["Shift","Ctrl"],key:"o"},excludeFileExtensions:[]},fulltextSearch:{isEnabled:!0,searchKeys:{modifiers:["Mod","Shift"],key:"f"}},openInBackground:{isEnabled:!0,openKeys:[{openType:"tab",hotkey:{modifiers:["Mod","Shift"],key:"t"}},{openType:"vertical",hotkey:null},{openType:"horizontal",hotkey:null},{openType:"window",hotkey:null}]},saveWorkspaceAndSwitchKeys:{modifiers:["Mod","Shift"],key:"s"}}}shouldShowAlias;get version(){return this.data.version}set version(e){this.data.version=e}get builtInSystemOptions(){return w(this.plugin.app)?.options}get showAllFileTypes(){return this.builtInSystemOptions?.showAllFileTypes}get showAttachments(){return this.builtInSystemOptions?.showAttachments}get showExistingOnly(){return this.builtInSystemOptions?.showExistingOnly}get onOpenPreferNewTab(){return this.data.onOpenPreferNewTab}set onOpenPreferNewTab(e){this.data.onOpenPreferNewTab=e}get alwaysNewTabForSymbols(){return this.data.alwaysNewTabForSymbols}set alwaysNewTabForSymbols(e){this.data.alwaysNewTabForSymbols=e}get useActiveTabForSymbolsOnMobile(){return this.data.useActiveTabForSymbolsOnMobile}set useActiveTabForSymbolsOnMobile(e){this.data.useActiveTabForSymbolsOnMobile=e}get symbolsInLineOrder(){return this.data.symbolsInLineOrder}set symbolsInLineOrder(e){this.data.symbolsInLineOrder=e}get editorListPlaceholderText(){return X.defaults.editorListCommand}get editorListCommand(){return this.data.editorListCommand}set editorListCommand(e){this.data.editorListCommand=e}get symbolListPlaceholderText(){return X.defaults.symbolListCommand}get symbolListCommand(){return this.data.symbolListCommand}set symbolListCommand(e){this.data.symbolListCommand=e}get symbolListActiveEditorCommand(){return this.data.symbolListActiveEditorCommand}set symbolListActiveEditorCommand(e){this.data.symbolListActiveEditorCommand=e}get workspaceListCommand(){return this.data.workspaceListCommand}set workspaceListCommand(e){this.data.workspaceListCommand=e}get workspaceListPlaceholderText(){return X.defaults.workspaceListCommand}get headingsListCommand(){return this.data.headingsListCommand}set headingsListCommand(e){this.data.headingsListCommand=e}get headingsListPlaceholderText(){return X.defaults.headingsListCommand}get bookmarksListCommand(){return this.data.bookmarksListCommand}set bookmarksListCommand(e){this.data.bookmarksListCommand=e}get bookmarksListPlaceholderText(){return X.defaults.bookmarksListCommand}get commandListCommand(){return this.data.commandListCommand}set commandListCommand(e){this.data.commandListCommand=e}get recentCommandDisplayOrder(){return this.data.recentCommandDisplayOrder}set recentCommandDisplayOrder(e){this.data.recentCommandDisplayOrder=e}get maxRecentCommands(){return this.data.maxRecentCommands}set maxRecentCommands(e){this.data.maxRecentCommands=e}get commandListPlaceholderText(){return X.defaults.commandListCommand}get vaultListCommand(){return this.data.vaultListCommand}set vaultListCommand(e){this.data.vaultListCommand=e}get vaultListPlaceholderText(){return X.defaults.vaultListCommand}get relatedItemsListCommand(){return this.data.relatedItemsListCommand}set relatedItemsListCommand(e){this.data.relatedItemsListCommand=e}get relatedItemsListPlaceholderText(){return X.defaults.relatedItemsListCommand}get relatedItemsListActiveEditorCommand(){return this.data.relatedItemsListActiveEditorCommand}set relatedItemsListActiveEditorCommand(e){this.data.relatedItemsListActiveEditorCommand=e}get shouldSearchHeadings(){return this.data.shouldSearchHeadings}set shouldSearchHeadings(e){this.data.shouldSearchHeadings=e}get strictHeadingsOnly(){return this.data.strictHeadingsOnly}set strictHeadingsOnly(e){this.data.strictHeadingsOnly=e}get searchAllHeadings(){return this.data.searchAllHeadings}set searchAllHeadings(e){this.data.searchAllHeadings=e}get headingsSearchDebounceMilli(){return this.data.headingsSearchDebounceMilli}set headingsSearchDebounceMilli(e){this.data.headingsSearchDebounceMilli=e}get excludeViewTypes(){return this.data.excludeViewTypes}set excludeViewTypes(e){this.data.excludeViewTypes=e}get referenceViews(){return this.data.referenceViews}set referenceViews(e){this.data.referenceViews=e}get limit(){return this.data.limit}set limit(e){this.data.limit=e}get includeSidePanelViewTypes(){return this.data.includeSidePanelViewTypes}set includeSidePanelViewTypes(e){this.data.includeSidePanelViewTypes=[...new Set(e)]}get includeSidePanelViewTypesPlaceholder(){return X.defaults.includeSidePanelViewTypes.join("\n")}get selectNearestHeading(){return this.data.selectNearestHeading}set selectNearestHeading(e){this.data.selectNearestHeading=e}get excludeFolders(){return this.data.excludeFolders}set excludeFolders(e){this.data.excludeFolders=[...new Set(e)]}get excludeLinkSubTypes(){return this.data.excludeLinkSubTypes}set excludeLinkSubTypes(e){this.data.excludeLinkSubTypes=e}get excludeRelatedFolders(){return this.data.excludeRelatedFolders}set excludeRelatedFolders(e){this.data.excludeRelatedFolders=[...new Set(e)]}get excludeOpenRelatedFiles(){return this.data.excludeOpenRelatedFiles}set excludeOpenRelatedFiles(e){this.data.excludeOpenRelatedFiles=e}get excludeObsidianIgnoredFiles(){return this.data.excludeObsidianIgnoredFiles}set excludeObsidianIgnoredFiles(e){this.data.excludeObsidianIgnoredFiles=e}get shouldSearchFilenames(){return this.data.shouldSearchFilenames}set shouldSearchFilenames(e){this.data.shouldSearchFilenames=e}get shouldSearchBookmarks(){return this.data.shouldSearchBookmarks}set shouldSearchBookmarks(e){this.data.shouldSearchBookmarks=e}get shouldSearchRecentFiles(){return this.data.shouldSearchRecentFiles}set shouldSearchRecentFiles(e){this.data.shouldSearchRecentFiles=e}get pathDisplayFormat(){return this.data.pathDisplayFormat}set pathDisplayFormat(e){this.data.pathDisplayFormat=e}get hidePathIfRoot(){return this.data.hidePathIfRoot}set hidePathIfRoot(e){this.data.hidePathIfRoot=e}get enabledRelatedItems(){return this.data.enabledRelatedItems}set enabledRelatedItems(e){this.data.enabledRelatedItems=e}get showOptionalIndicatorIcons(){return this.data.showOptionalIndicatorIcons}set showOptionalIndicatorIcons(e){this.data.showOptionalIndicatorIcons=e}get isFileExtensionIndicatorsEnabled(){return this.data.isFileExtensionIndicatorsEnabled}set isFileExtensionIndicatorsEnabled(e){this.data.isFileExtensionIndicatorsEnabled=e}get excludeFileExtensionIndicators(){return this.data.excludeFileExtensionIndicators}set excludeFileExtensionIndicators(e){this.data.excludeFileExtensionIndicators=[...new Set(e)]}get overrideStandardModeBehaviors(){return this.data.overrideStandardModeBehaviors}set overrideStandardModeBehaviors(e){this.data.overrideStandardModeBehaviors=e}get overrideStandardModeRendering(){return this.data.overrideStandardModeRendering}set overrideStandardModeRendering(e){this.data.overrideStandardModeRendering=e}get enabledRibbonCommands(){return this.data.enabledRibbonCommands}set enabledRibbonCommands(e){this.data.enabledRibbonCommands=[...new Set(e)]}get fileExtAllowList(){return this.data.fileExtAllowList}set fileExtAllowList(e){this.data.fileExtAllowList=e}get matchPriorityAdjustments(){return this.data.matchPriorityAdjustments}set matchPriorityAdjustments(e){this.data.matchPriorityAdjustments=e}get quickFilters(){return this.data.quickFilters}set quickFilters(e){this.data.quickFilters=e}get preserveCommandPaletteLastInput(){return this.data.preserveCommandPaletteLastInput}set preserveCommandPaletteLastInput(e){this.data.preserveCommandPaletteLastInput=e}get preserveQuickSwitcherLastInput(){return this.data.preserveQuickSwitcherLastInput}set preserveQuickSwitcherLastInput(e){this.data.preserveQuickSwitcherLastInput=e}get shouldCloseModalOnBackspace(){return this.data.shouldCloseModalOnBackspace}set shouldCloseModalOnBackspace(e){this.data.shouldCloseModalOnBackspace=e}get maxRecentFileSuggestionsOnInit(){return this.data.maxRecentFileSuggestionsOnInit}set maxRecentFileSuggestionsOnInit(e){this.data.maxRecentFileSuggestionsOnInit=e}get orderEditorListByAccessTime(){return this.data.orderEditorListByAccessTime}set orderEditorListByAccessTime(e){this.data.orderEditorListByAccessTime=e}get insertLinkInEditor(){return this.data.insertLinkInEditor}set insertLinkInEditor(e){this.data.insertLinkInEditor=e}get removeDefaultTabBinding(){return this.data.removeDefaultTabBinding}set removeDefaultTabBinding(e){this.data.removeDefaultTabBinding=e}get navigationKeys(){return this.data.navigationKeys}set navigationKeys(e){this.data.navigationKeys=e}get preferredSourceForTitle(){return this.data.preferredSourceForTitle}set preferredSourceForTitle(e){this.data.preferredSourceForTitle=e}get frontmatterTitleProperty(){return this.data.frontmatterTitleProperty}set frontmatterTitleProperty(e){this.data.frontmatterTitleProperty=e}get closeWhenEmptyKeys(){return this.data.closeWhenEmptyKeys}set closeWhenEmptyKeys(e){this.data.closeWhenEmptyKeys=e}get navigateToHotkeySelectorKeys(){return this.data.navigateToHotkeySelectorKeys}set navigateToHotkeySelectorKeys(e){this.data.navigateToHotkeySelectorKeys=e}get togglePinnedCommandKeys(){return this.data.togglePinnedCommandKeys}set togglePinnedCommandKeys(e){this.data.togglePinnedCommandKeys=e}get escapeCmdChar(){return this.data.escapeCmdChar}set escapeCmdChar(e){this.data.escapeCmdChar=e}get mobileLauncher(){return this.data.mobileLauncher}set mobileLauncher(e){this.data.mobileLauncher=e}get allowCreateNewFileInModeNames(){return this.data.allowCreateNewFileInModeNames}set allowCreateNewFileInModeNames(e){this.data.allowCreateNewFileInModeNames=[...new Set(e)]}get showModeTriggerInstructions(){return this.data.showModeTriggerInstructions}set showModeTriggerInstructions(e){this.data.showModeTriggerInstructions=e}get renderMarkdownContentInSuggestions(){return this.data.renderMarkdownContentInSuggestions}set renderMarkdownContentInSuggestions(e){this.data.renderMarkdownContentInSuggestions=e}get quickOpen(){return this.data.quickOpen}set quickOpen(e){this.data.quickOpen=e}get openDefaultApp(){return this.data.openDefaultApp}set openDefaultApp(e){this.data.openDefaultApp=e}get fulltextSearch(){return this.data.fulltextSearch}set fulltextSearch(e){this.data.fulltextSearch=e}get openInBackground(){return this.data.openInBackground}set openInBackground(e){this.data.openInBackground=e}get saveWorkspaceAndSwitchKeys(){return this.data.saveWorkspaceAndSwitchKeys}set saveWorkspaceAndSwitchKeys(e){this.data.saveWorkspaceAndSwitchKeys=e}constructor(e){this.plugin=e,this.data=X.defaults}async updateDataAndLoadSettings(){return await X.transformDataFile(this.plugin,X.defaults),await this.loadSettings()}async loadSettings(){try{const e=await(this.plugin?.loadData());if(e){const t=Object.keys(X.defaults);((e,t,s)=>{const i=["matchPriorityAdjustments","quickFilters","mobileLauncher"],n=s=>J.withOptions({mergeArrays:!1},t[s],e[s]);for(const a of s)a in e&&(t[a]=i.includes(a)?n(a):e[a])})(e,this.data,t)}}catch(e){console.log("Switcher++: error loading settings, using defaults. ",e)}}async saveSettings(){const{plugin:e,data:t}=this;await(e?.saveData(t))}save(){this.saveSettings().catch((e=>{console.log("Switcher++: error saving changes to settings",e)}))}isSymbolTypeEnabled(e){const{enabledSymbolTypes:t}=this.data;let s=X.defaults.enabledSymbolTypes[e];return Object.prototype.hasOwnProperty.call(t,e)&&(s=t[e]),s}setSymbolTypeEnabled(e,t){this.data.enabledSymbolTypes[e]=t}shouldRenderSymbolAsHTML(e){const{renderMarkdownContentInSuggestions:t}=this.data;if(!t.isEnabled)return!1;const i={[s.Heading]:"renderHeadings",[s.Link]:"renderLinks",[s.Tag]:"renderTags",[s.Callout]:"renderCallouts"}[e];return!!i&&t[i]}static async transformDataFile(e,t){await X.transformDataFileToV1(e,t),await X.transformDataFileToV2(e,t)}static async transformDataFileToV1(e,t){let s=!1;try{const i=await(e?.loadData());if(i&&"object"==typeof i){const n="version";if(!Object.prototype.hasOwnProperty.call(i,n)){const a="starredListCommand";Object.prototype.hasOwnProperty.call(i,a)&&(i.bookmarksListCommand=i[a]??t.bookmarksListCommand,delete i[a]);const o="isStarred",r=i.matchPriorityAdjustments;r&&Object.prototype.hasOwnProperty.call(r,o)&&(r.isBookmarked=r[o],delete r[o]),i[n]="1.0.0",await(e?.saveData(i)),s=!0}}}catch(e){console.log("Switcher++: error transforming data.json to v1.0.0",e)}return s}static async transformDataFileToV2(e,t){let s=!1;try{const i=await(e?.loadData());if(i&&"object"==typeof i){const n="version";if("1.0.0"===i[n]){const a="matchPriorityAdjustments";if(Object.prototype.hasOwnProperty.call(i,a)){const e=i[a],s={};i[a]={isEnabled:!!i.enableMatchPriorityAdjustments,adjustments:s},delete i.enableMatchPriorityAdjustments,Object.entries(e).forEach((([e,i])=>{const n=t.matchPriorityAdjustments.adjustments[e]?.label??"";s[e]={value:i,label:n}}))}const o="quickFilters";if(Object.prototype.hasOwnProperty.call(i,o)){const e="facetList",t=i[o],s=t[e],n=s?.reduce(((e,t)=>(e[t.id]=t,e)),{});t[e]=n}i[n]="2.0.0",await(e?.saveData(i)),s=!0}}}catch(e){console.log("Switcher++: error transforming data.json to v2.0.0",e)}return s}}class Z{app;mainSettingsTab;config;constructor(e,t,s){this.app=e,this.mainSettingsTab=t,this.config=s}createSetting(e,t,s){let i;return e instanceof n.SettingGroup?e.addSetting((e=>{i=e,e.setName(t),e.setDesc(s)})):(i=new n.Setting(e),i.setName(t),i.setDesc(s)),i}withSetting(e,t,s,i){let a;return e instanceof n.SettingGroup?e.addSetting((e=>{a=e,e.setName(t).setDesc(s),i(e)})):(a=this.createSetting(e,t,s),i(a)),a}createOnChangeHandler(e,t){return s=>{t?t(s,this.config):e&&this.saveChangesToConfig(e,s)}}addSectionTitle(e,t,s=""){const i=this.createSetting(e,t,s);return i.setHeading(),i}addTextSetting(e,t,s,i,n,a){return this.withSetting(e,t,s,(e=>{e.addText((e=>{e.setPlaceholder(a),e.setValue(i),e.onChange((e=>{const t=e.length?e:i;this.saveChangesToConfig(n,t)}))}))}))}addToggleSetting(e,t,s,i,n,a){return this.withSetting(e,t,s,(e=>{e.addToggle((e=>{e.setValue(i),e.onChange(this.createOnChangeHandler(n,a))}))}))}addTextAreaSetting(e,t,s,i,n,a){return this.withSetting(e,t,s,(e=>{e.addTextArea((e=>{e.setPlaceholder(a),e.setValue(i),e.onChange((e=>{const t=e.length?e:i,s=Array.isArray(this.config[n]);this.saveChangesToConfig(n,s?t.split("\n"):t)}))}))}))}addDropdownSetting(e,t,s,i,n,a,o){return this.withSetting(e,t,s,(e=>{e.addDropdown((e=>{e.addOptions(n),e.setValue(i),e.onChange(this.createOnChangeHandler(a,o))}))}))}addSliderSetting(e,t,s,i,n,a,o){return this.withSetting(e,t,s,(e=>{e.addExtraButton((t=>(t.setIcon("lucide-rotate-ccw"),t.setTooltip("Restore default"),t.onClick((()=>e.components[1].setValue(n[3]))),t))),e.addSlider((e=>{e.setLimits(n[0],n[1],n[2]),e.setValue(i),e.setDynamicTooltip(),e.onChange(this.createOnChangeHandler(a,o))}))}))}saveChangesToConfig(e,t){if(e){const{config:s}=this;s[e]=t,s.save()}}}class ee extends Z{display(e){const{config:t}=this;this.addSectionTitle(e,"Bookmarks List Mode"),this.addTextSetting(e,"Bookmarks list mode trigger","Character that will trigger bookmarks list mode in the switcher",t.bookmarksListCommand,"bookmarksListCommand",t.bookmarksListPlaceholderText)}}class te extends Z{display(e){const{config:t}=this;this.addSectionTitle(e,"Command List Mode"),this.addTextSetting(e,"Command list mode trigger","Character that will trigger command list mode in the switcher",t.commandListCommand,"commandListCommand",t.commandListPlaceholderText),this.addSliderSetting(e,"Max recent commands","The maximum number of commands to save in the recent list.",t.maxRecentCommands,[0,75,1,25],"maxRecentCommands"),this.showRecentCommandDisplayOrder(e,t)}showRecentCommandDisplayOrder(e,t){this.addDropdownSetting(e,"Recent commands display order","Select the sort order for recently used commands.",t.recentCommandDisplayOrder,{desc:"Most recent first (descending)",asc:"Most recent last (ascending)"},"recentCommandDisplayOrder")}}class se extends Z{display(e){const{config:t}=this;this.addSectionTitle(e,"Related Items List Mode"),this.addTextSetting(e,"Related Items list mode trigger","Character that will trigger related items list mode in the switcher. This triggers a display of Related Items for the source file of the currently selected (highlighted) suggestion in the switcher. If there is not a suggestion, display results for the active editor.",t.relatedItemsListCommand,"relatedItemsListCommand",t.relatedItemsListPlaceholderText),this.addTextSetting(e,"Related Items list mode trigger - Active editor only","Character that will trigger related items list mode in the switcher. This always triggers a display of Related Items for the active editor only.",t.relatedItemsListActiveEditorCommand,"relatedItemsListActiveEditorCommand",t.relatedItemsListActiveEditorCommand),this.showEnabledRelatedItems(e,t),this.addToggleSetting(e,"Exclude open files","Enable, related files which are already open will not be displayed in the list. Disabled, All related files will be displayed in the list.",t.excludeOpenRelatedFiles,"excludeOpenRelatedFiles")}showEnabledRelatedItems(e,t){const s=Object.values(d).sort(),i=s.join(", "),n=`The types of related items to show in the list. Add one type per line. Available types: ${i}`;this.createSetting(e,"Show related item types",n).addTextArea((e=>{e.setValue(t.enabledRelatedItems.join("\n")),e.inputEl.addEventListener("focusout",(()=>{const n=e.getValue().split("\n").map((e=>e.trim())).filter((e=>e.length>0)),a=[...new Set(n)].filter((e=>!s.includes(e)));a?.length?this.showErrorPopup(a.join("
"),i):(t.enabledRelatedItems=n,t.save())}))}))}showErrorPopup(e,t){const s=new n.Modal(this.app);s.titleEl.setText("Invalid related item type"),s.contentEl.innerHTML=`Changes not saved. Available relation types are: ${t}. The following types are invalid:

${e}`,s.open()}}class ie extends Z{display(e){const{config:t}=this;this.addSectionTitle(e,"General"),this.addToggleSetting(e,"Default to open in new tab","When enabled, navigating to un-opened files will open a new editor tab whenever possible (as if cmd/ctrl were held). When the file is already open, the existing tab will be activated. This overrides all other tab settings.",t.onOpenPreferNewTab,"onOpenPreferNewTab"),this.showLauncherButtonOverrides(e,t),this.showEnabledRibbonCommands(e,t),this.addToggleSetting(e,"Show indicator icons","Display icons to indicate that an item is recent, bookmarked, etc..",t.showOptionalIndicatorIcons,"showOptionalIndicatorIcons"),this.addToggleSetting(e,"Display mode trigger instructions","When enabled, the trigger key for each mode will be displayed in the instructions section of the Switcher.",t.showModeTriggerInstructions,"showModeTriggerInstructions"),this.showStandardModeOverrides(e,t),this.showPathDisplayGroup(e,t),this.showPreferredSourceForTitle(e,t),this.showQuickOpen(e,t),this.showRenderMarkdownContentAsHTML(e,t),this.addTextSetting(e,"Mode trigger escape character","Character to indicate that a mode trigger character should be treated just as a normal text.",t.escapeCmdChar,"escapeCmdChar"),this.addToggleSetting(e,"Allow Backspace key to close the Switcher","When the search box is empty, pressing the backspace key will close Switcher++.",t.shouldCloseModalOnBackspace,"shouldCloseModalOnBackspace"),this.showRestoreInput(e,t),this.showInsertLinkInEditor(e,t),this.showResetFacetEachSession(e,t),this.showMatchPriorityAdjustments(e,t)}showPreferredSourceForTitle(e,t){const s=new n.SettingGroup(e);this.addDropdownSetting(s,"Preferred suggestion title source",'The preferred source to use for the "title" text that will be searched and displayed for file based suggestions',t.preferredSourceForTitle,{H1:"First H₁ heading",Default:"Default",FrontMatter:"Frontmatter property"},"preferredSourceForTitle",((e,t)=>{t.preferredSourceForTitle=e,t.save(),this.mainSettingsTab.display()})),"FrontMatter"===t.preferredSourceForTitle&&this.addTextSetting(s,"Frontmatter property path",'The path to the frontmatter property to use as the title. Use dot notation for nested properties (e.g., "title" or "meta.display_name"). The property value must be a string, number, or boolean. If the property doesn\'t exist or has an invalid type, the default filename will be used.',t.frontmatterTitleProperty,"frontmatterTitleProperty","title")}showPathDisplayFormat(t,s){const i={};i[e.None.toString()]="Hide path",i[e.Full.toString()]="Full path",i[e.FolderOnly.toString()]="Only parent folder",i[e.FolderWithFilename.toString()]="Parent folder & filename",i[e.FolderPathFilenameOptional.toString()]="Parent folder path (filename optional)",this.addDropdownSetting(t,"Preferred file path display format","The preferred way to display file paths in suggestions",s.pathDisplayFormat.toString(),i,null,((e,t)=>{t.pathDisplayFormat=Number(e),t.save()}))}showPathDisplayGroup(e,t){const s=new n.SettingGroup(e);this.createSetting(s,"Path Display Settings","Configure how file paths are displayed in suggestions."),this.showPathDisplayFormat(s,t),this.addToggleSetting(s,"Hide path for root items","When enabled, path information will be hidden for items at the root of the vault.",t.hidePathIfRoot,"hidePathIfRoot")}showStandardModeOverrides(e,t){const s=new n.SettingGroup(e);this.createSetting(s,"Standard Mode Overrides","Configure how Switcher++ overrides the default Obsidian Switcher behavior in Standard mode."),this.addToggleSetting(s,"Override Standard mode file open behavior","When enabled, Switcher++ will change the default Obsidian builtin Switcher functionality (Standard mode) to inject custom file open behavior.",t.overrideStandardModeBehaviors,"overrideStandardModeBehaviors"),this.addToggleSetting(s,"Override Standard mode rendering","When enabled, Switcher++ will change the default Obsidian builtin Switcher functionality (Standard mode) to render suggestions as multi-line.",t.overrideStandardModeRendering,"overrideStandardModeRendering")}showRestoreInput(e,t){const s=new n.SettingGroup(e);this.createSetting(s,"Restore Previous Input","Configure whether to restore the last typed input when launching the Switcher."),this.addToggleSetting(s,"Restore previous input in Command Mode","When enabled, restore the last typed input in Command Mode when launched via global command hotkey.",t.preserveCommandPaletteLastInput,"preserveCommandPaletteLastInput"),this.addToggleSetting(s,"Restore previous input","When enabled, restore the last typed input when launched via global command hotkey.",t.preserveQuickSwitcherLastInput,"preserveQuickSwitcherLastInput")}showEnabledRibbonCommands(e,t){const s=L(),i=s.join(" "),n=`Display an icon in the ribbon menu to launch specific modes. Add one mode per line. Available modes: ${i}`;this.createSetting(e,"Show ribbon icons",n).addTextArea((e=>{e.setValue(t.enabledRibbonCommands.join("\n")),e.inputEl.addEventListener("focusout",(()=>{const n=e.getValue().split("\n").map((e=>e.trim())).filter((e=>e.length>0)),a=Array.from(new Set(n)).filter((e=>!s.includes(e)));a.length?this.showErrorPopup(a.join("
"),i):(t.enabledRibbonCommands=n,t.save(),this.mainSettingsTab.plugin.registerRibbonCommandIcons())}))}))}showErrorPopup(e,t){const s=new n.Modal(this.app);s.titleEl.setText("Invalid mode"),s.contentEl.innerHTML=`Changes not saved. Available modes are: ${t}. The following are invalid:

${e}`,s.open()}showLauncherButtonOverrides(e,t){const{mobileLauncher:s}=t,i=new n.SettingGroup(e),a="disabled",o={[a]:"Do not override"},r=L();r.forEach((e=>{o[e]=e}));let l=a;s.isEnabled&&r.includes(s.modeString)&&(l=s.modeString),this.addDropdownSetting(i,"New tab and mobile launcher buttons",'Select the Mode to launch Switcher++ in from the empty tab page and mobile navigation Bar button, or select "Do not override" to disable the feature.',l,o,null,((e,t)=>{const s=e!==a;t.mobileLauncher.isEnabled=s,s&&(t.mobileLauncher.modeString=e),t.save(),this.mainSettingsTab.display(),this.mainSettingsTab.plugin.updateLauncherButtonOverrides(s)})),s.isEnabled&&(this.addToggleSetting(i,"Override default Switcher launch button on mobile platforms",'When enabled, override the "🔍" button (in the Navigation Bar) on mobile platforms to launch Switcher++ instead of the default system switcher.',s.isMobileButtonEnabled,null,((e,t)=>{t.mobileLauncher.isMobileButtonEnabled=e,t.save(),this.mainSettingsTab.plugin.updateLauncherButtonOverrides(t.mobileLauncher.isEnabled)})),this.addToggleSetting(i,'Display launch button on the "New tab" page','When enabled, a button to launch Switcher++ using the selected mode above will be added to the default Obsidian "New tab" page.',s.isEmptyTabButtonEnabled,null,((e,t)=>{t.mobileLauncher.isEmptyTabButtonEnabled=e,t.save(),this.mainSettingsTab.plugin.updateLauncherButtonOverrides(t.mobileLauncher.isEnabled)})))}showMatchPriorityAdjustments(e,t){const{matchPriorityAdjustments:{isEnabled:s,adjustments:i,fileExtAdjustments:a}}=t,o=new n.SettingGroup(e);this.addToggleSetting(o,"Result priority adjustments","Artificially increase the match score of the specified item types by a fixed percentage so they appear higher in the results list (does not apply to Standard Mode).",s,null,((e,t)=>{t.matchPriorityAdjustments.isEnabled=e,t.saveSettings().then((()=>{this.mainSettingsTab.display()}),(e=>console.log('Switcher++: error saving "Result Priority Adjustments" setting. ',e)))})),s&&[i,a].forEach((e=>{Object.entries(e).forEach((([t,s])=>{const{value:i,label:n}=s;this.addSliderSetting(o,n,s.desc??"",i,[-1,1,.05,0],null,((s,i)=>{e[t].value=s,i.save()}))}))}))}showResetFacetEachSession(e,t){this.addToggleSetting(e,"Reset active Quick Filters","When enabled, the switcher will reset all Quick Filters back to inactive for each session.",t.quickFilters.shouldResetActiveFacets,null,((e,t)=>{t.quickFilters.shouldResetActiveFacets=e,t.save()}))}showRenderMarkdownContentAsHTML(e,t){const{renderMarkdownContentInSuggestions:s}=t,i=new n.SettingGroup(e),a=this.addToggleSetting(i,"Display markdown content as Live Preview",'When enabled, markdown content in symbol suggestions will be rendered as HTML similar to the Obsidian "Live Preview" display. When disabled, content will be rendered as raw text. Use the "toggle preview (selected item)" hotkey to toggle the display for individual items.',s.isEnabled,null,((e,t)=>{const{renderMarkdownContentInSuggestions:s}=t;s.isEnabled=e,t.saveSettings().then((()=>{this.mainSettingsTab.display()}),(e=>console.log('Switcher++: error saving "Display markdown content as Live Preview" setting. ',e)))}));if(a?.nameEl?.createSpan({cls:["qsp-tag","qsp-warning"],text:"Experimental"}),s.isEnabled){[{name:"Headings",property:"renderHeadings",description:"Render headings as HTML"},{name:"Links",property:"renderLinks",description:"Render links as HTML"},{name:"Tags",property:"renderTags",description:"Render tags as HTML"},{name:"Callouts",property:"renderCallouts",description:"Render callouts as HTML"}].forEach((({name:e,property:t,description:n})=>{this.addToggleSetting(i,e,n,s[t],null,((e,s)=>{s.renderMarkdownContentInSuggestions[t]=e,s.save()}))}))}}showInsertLinkInEditor(e,t){const s=new n.SettingGroup(e);this.createSetting(s,"Insert link in editor","Configure alias options when inserting links into the editor."),this.addToggleSetting(s,"Use filename as alias","When enabled, the file basename will be set as the link alias.",t.insertLinkInEditor.useBasenameAsAlias,null,((e,t)=>{t.insertLinkInEditor.useBasenameAsAlias=e,t.save()})),this.addToggleSetting(s,"Use heading as alias",'When enabled, the file heading will be set as the link alias. This overrides the "use filename as alias" setting.',t.insertLinkInEditor.useHeadingAsAlias,null,((e,t)=>{t.insertLinkInEditor.useHeadingAsAlias=e,t.save()}))}showQuickOpen(e,t){this.addToggleSetting(e,"Enable quick open hotkeys for top results","When enabled, hotkeys will be defined for each of the top N results displayed in the Switcher. These hotkeys can be used to quickly open the associated suggestion directly. when disabled, no hotkeys are defined.",t.quickOpen.isEnabled,null,((e,t)=>{t.quickOpen.isEnabled=e,t.save()}))}}class ne extends Z{display(e){const{config:t}=this;this.addSectionTitle(e,"Workspace List Mode"),this.addTextSetting(e,"Workspace list mode trigger","Character that will trigger workspace list mode in the switcher",t.workspaceListCommand,"workspaceListCommand",t.workspaceListPlaceholderText)}}class ae extends Z{display(e){const{config:t}=this;this.addSectionTitle(e,"Editor List Mode"),this.addTextSetting(e,"Editor list mode trigger","Character that will trigger editor list mode in the switcher",t.editorListCommand,"editorListCommand",t.editorListPlaceholderText),this.showIncludeSidePanelViews(e,t),this.addToggleSetting(e,"Order default editor list by most recently accessed","When there is no search term, order the list of editors by most recent access time.",t.orderEditorListByAccessTime,"orderEditorListByAccessTime")}showIncludeSidePanelViews(e,t){const s=`When in Editor list mode, show the following view types from the side panels. Add one view type per line. Available view types: ${Object.keys(this.app.viewRegistry.viewByType).sort().join(" ")}`;this.addTextAreaSetting(e,"Include side panel views",s,t.includeSidePanelViewTypes.join("\n"),"includeSidePanelViewTypes",t.includeSidePanelViewTypesPlaceholder)}}class oe extends Z{display(e){const{config:t}=this;this.addSectionTitle(e,"Headings List Mode"),this.addTextSetting(e,"Headings list mode trigger","Character that will trigger headings list mode in the switcher",t.headingsListCommand,"headingsListCommand",t.headingsListPlaceholderText),this.addSliderSetting(e,"Max recent files to show","The maximum number of recent files to show when there is no search term",t.maxRecentFileSuggestionsOnInit,[0,75,1,25],"maxRecentFileSuggestionsOnInit"),this.showFileExtAllowList(e,t),this.addToggleSetting(e,"Search Filenames","Enabled, search and show suggestions for filenames. Disabled, Don't search through filenames (except for fallback searches)",t.shouldSearchFilenames,"shouldSearchFilenames"),this.addToggleSetting(e,"Search Bookmarks","Enabled, search and show suggestions for Bookmarks. Disabled, Don't search through Bookmarks",t.shouldSearchBookmarks,"shouldSearchBookmarks"),this.showHeadingSettings(e,t),this.showExclusionsGroup(e,t)}showHeadingSettings(e,t){const s=t.shouldSearchHeadings,i=new n.SettingGroup(e);this.addToggleSetting(i,"Search Headings","Enabled, search and show suggestions for Headings. Disabled, Don't search through Headings",s,null,((e,t)=>{t.shouldSearchHeadings=e,t.saveSettings().then((()=>{this.mainSettingsTab.display()}),(e=>console.log('Switcher++: error saving "Search Headings" setting. ',e)))})),s&&(this.addToggleSetting(i,"Turn off filename fallback","Enabled, strictly search through only the headings contained in the file. Do not fallback to searching the filename when an H1 match is not found. Disabled, fallback to searching against the filename when there is not a match in the first H1 contained in the file.",t.strictHeadingsOnly,"strictHeadingsOnly"),this.addToggleSetting(i,"Search all headings","Enabled, search through all headings contained in each file. Disabled, only search through the first H1 in each file.",t.searchAllHeadings,"searchAllHeadings"))}showFileExtAllowList(e,t){this.createSetting(e,"File extension override",'Override the "Show attachments" and the "Show all file types" builtin, system Switcher settings and always search files with the listed extensions. Add one path per line. For example to add ".canvas" file extension, just add "canvas".').addTextArea((e=>{e.setValue(t.fileExtAllowList.join("\n")),e.inputEl.addEventListener("focusout",(()=>{const s=e.getValue().split("\n").map((e=>e.trim())).filter((e=>e.length>0));t.fileExtAllowList=s,t.save()}))}))}showExclusionsGroup(e,t){const s=new n.SettingGroup(e);this.createSetting(s,"Exclusions","Configure which folders and files should be excluded from search results in Headings list mode."),this.showExcludeFolders(s,t),this.addToggleSetting(s,'Hide Obsidian "Excluded files"','Enabled, do not display suggestions for files that are in Obsidian\'s "Options > Files & Links > Excluded files" list. Disabled, suggestions for those files will be displayed but downranked.',t.excludeObsidianIgnoredFiles,"excludeObsidianIgnoredFiles")}showExcludeFolders(e,t){const s="Exclude folders";this.createSetting(e,s,"When in Headings list mode, folder path that match any regex listed here will not be searched for suggestions. Path should start from the Vault Root. Add one path per line.").addTextArea((e=>{e.setValue(t.excludeFolders.join("\n")),e.inputEl.addEventListener("focusout",(()=>{const i=e.getValue().split("\n").filter((e=>e.length>0));this.validateExcludeFolderList(s,i)&&(t.excludeFolders=i,t.save())}))}))}validateExcludeFolderList(e,t){let s=!0,i="";for(const e of t)try{new RegExp(e)}catch(t){i+=`${e}
${t}

`,s=!1}if(!s){const t=new n.Modal(this.app);t.titleEl.setText(e),t.contentEl.innerHTML=`Changes not saved. The following regex contain errors:

${i}`,t.open()}return s}}class re extends Z{display(e){const{config:t}=this;this.addSectionTitle(e,"Symbol List Mode"),this.addTextSetting(e,"Symbol list mode trigger","Character that will trigger symbol list mode in the switcher. This triggers a display of Symbols for the source file of the currently selected (highlighted) suggestion in the switcher. If there is not a suggestion, display results for the active editor.",t.symbolListCommand,"symbolListCommand",t.symbolListPlaceholderText),this.addTextSetting(e,"Symbol list mode trigger - Active editor only","Character that will trigger symbol list mode in the switcher. This always triggers a display of Symbols for the active editor only.",t.symbolListActiveEditorCommand,"symbolListActiveEditorCommand",t.symbolListActiveEditorCommand),this.addToggleSetting(e,"List symbols as indented outline","Enabled, symbols will be displayed in the (line) order they appear in the source text, indented under any preceding heading. Disabled, symbols will be grouped by type: Headings, Tags, Links, Embeds.",t.symbolsInLineOrder,"symbolsInLineOrder"),this.addToggleSetting(e,"Auto-select nearest heading","Enabled, in an unfiltered symbol list, select the closest preceding Heading to the current cursor position. Disabled, the first symbol in the list is selected.",t.selectNearestHeading,"selectNearestHeading"),this.showEnableSymbolTypesToggle(e,t),this.showEnableLinksToggle(e,t),this.showSymbolTabNavigationBehavior(e,t)}showSymbolTabNavigationBehavior(e,t){const s=new n.SettingGroup(e);this.createSetting(s,"Symbol Tab navigation behavior","Configure how symbols are opened when navigating from the symbol list."),this.addToggleSetting(s,"Open Symbols in new tab","Enabled, always open a new tab when navigating to Symbols. Disabled, navigate in an already open tab (if one exists).",t.alwaysNewTabForSymbols,"alwaysNewTabForSymbols"),this.addToggleSetting(s,"Open Symbols in active tab on mobile devices","Enabled, navigate to the target file and symbol in the active editor tab. Disabled, open a new tab when navigating to Symbols, even on mobile devices.",t.useActiveTabForSymbolsOnMobile,"useActiveTabForSymbolsOnMobile")}showEnableSymbolTypesToggle(e,t){[["Show Headings",s.Heading],["Show Tags",s.Tag],["Show Embeds",s.Embed],["Show Callouts",s.Callout]].forEach((([s,i])=>{this.addToggleSetting(e,s,"",t.isSymbolTypeEnabled(i),null,(e=>{t.setSymbolTypeEnabled(i,e),t.save()}))}))}showEnableLinksToggle(e,t){const a=t.isSymbolTypeEnabled(s.Link),o=new n.SettingGroup(e);if(this.addToggleSetting(o,"Show Links","",a,null,(e=>{t.setSymbolTypeEnabled(s.Link,e),t.saveSettings().then((()=>{this.mainSettingsTab.display()}),(e=>console.log('Switcher++: error saving "Show Links" setting. ',e)))})),a){[["Links to headings",i.Heading],["Links to blocks",i.Block]].forEach((([e,s])=>{const i=(t.excludeLinkSubTypes&s)===s;this.addToggleSetting(o,e,"",!i,null,(e=>this.saveEnableSubLinkChange(s,e)))}))}}saveEnableSubLinkChange(e,t){const{config:s}=this;let i=s.excludeLinkSubTypes;t?i&=~e:i|=e,s.excludeLinkSubTypes=i,s.save()}}class le extends Z{display(e){const{config:t}=this,s=this.addSectionTitle(e,"Vault List Mode");s.nameEl?.createSpan({cls:["qsp-tag","qsp-warning"],text:"Experimental"}),this.addTextSetting(e,"Vault list mode trigger","Character that will trigger vault list mode in the switcher",t.vaultListCommand,"vaultListCommand",t.vaultListPlaceholderText)}}class de extends n.PluginSettingTab{plugin;config;constructor(e,t,s){super(e,t),this.plugin=t,this.config=s,this.containerEl.addClass("qsp-settings-container")}display(){const{containerEl:e}=this,t=[ie,re,oe,ae,se,ee,te,ne,le];e.empty(),t.forEach((e=>{this.displayTabSection(e)}))}displayTabSection(e){const{app:t,config:s,containerEl:i}=this;new e(t,this,s).display(i)}}class ce{inputText;mode;parsedCommands;_cleanInput=null;static get defaultParsedCommand(){return{isValidated:!1,index:-1,parsedInput:null}}sessionOpts;currentWorkspaceEnvList={openWorkspaceLeaves:new Set,openWorkspaceFiles:new Set,fileBookmarks:new Map,nonFileBookmarks:new Set,mostRecentFiles:new Set,attachmentFileExtensions:new Set};get parsedInputQuery(){const e=(this.parsedCommand()?.parsedInput??"").trim().toLowerCase();return{query:e,hasSearchTerm:!!e.length}}get cleanInput(){return this._cleanInput??this.inputText}set cleanInput(e){this._cleanInput=e}constructor(e="",s=t.Standard,i){this.inputText=e,this.mode=s,this.sessionOpts=i??{};const n=I();this.parsedCommands={},L().forEach((e=>{const s=t[e];n.includes(s)?this.parsedCommands[s]={...ce.defaultParsedCommand,source:null}:this.parsedCommands[s]=ce.defaultParsedCommand}))}parsedCommand(e){return e=e??this.mode,this.parsedCommands[e]}}class he{app;settings;facets;constructor(e,t){this.app=e,this.settings=t}reset(){}onNoResultsCreateAction(e,t){return!1}getFacets(e){if(!this.facets){const t=this.settings?.quickFilters?.facetList;t&&(this.facets=Object.values(t).filter((t=>t.mode===e)))}return this.facets??[]}getAvailableFacets(e){return this.getFacets(e.mode).filter((e=>e.isAvailable))}activateFacet(e,t){e.forEach((e=>e.isActive=t)),this.settings.quickFilters.shouldResetActiveFacets||this.settings.save()}getActiveFacetIds(e){const t=this.getAvailableFacets(e).filter((e=>e.isActive)).map((e=>e.id));return new Set(t)}isFacetedWith(e,t){const s=!!e.size;return s&&e.has(t)||!s}getEditorInfo(e){const{excludeViewTypes:t}=this.settings;let s=null,i=!1,n=null;if(e){s=x(e),n=this.getCursorPosition(e);i=!t.includes(e.view.getViewType())&&!!s}return{isValidSource:i,leaf:e,file:s,suggestion:null,cursor:n}}getSuggestionInfo(e){const t=this.getSourceInfoFromSuggestion(e);let s=t.leaf;t.isValidSource&&({leaf:s}=this.findMatchingLeaf(t.file,t.leaf));const i=this.getCursorPosition(s);return{...t,leaf:s,cursor:i}}getSourceInfoFromSuggestion(e){let t=null,s=null;const i=[r.SymbolList,r.Unresolved,r.WorkspaceList,r.CommandList,r.VaultList];e&&!i.includes(e.type)&&(t=e.file),c(e,"type",r.EditorList)&&(s=e.item);return{isValidSource:!!t,leaf:s,file:t,suggestion:e}}getCursorPosition(e){let t=null;if(B(e,"markdown")){const s=e.view;"preview"!==s.getMode()&&(t=s.editor.getCursor("head"))}return t}getTitleText(e){const t=function(e){let t=null;if(e){const{path:s}=e;if(t=s,"md"===e.extension){const e=s.lastIndexOf(".");-1!==e&&e!==s.length-1&&0!==e&&(t=s.slice(0,e))}}return t}(e),s=this.getFirstH1(e);return s?.heading??t}getFirstH1(e){return he.getFirstH1(e,this.app.metadataCache)}static getFirstH1(e,t){let s=null;const i=t.getFileCache(e)?.headings?.filter((e=>1===e.level))??[];return i.length&&(s=i.reduce(((e,t)=>{const{line:s}=t.position.start;return s0?i.trim():"number"==typeof i||"boolean"==typeof i?String(i):null}findMatchingLeaf(e,t,s=!1){let i=null;const n=!!t,{settings:{referenceViews:a,excludeViewTypes:o,includeSidePanelViewTypes:r}}=this,l=i=>{let o=!1;if(i?.view){const r=a.includes(i.view.getViewType()),l=s||!r,d=n&&a.includes(t.view.getViewType());l&&(o=!n||!s&&d?x(i)===e:i===t)}return o},d=this.getActiveLeaf();if(l(d))i=d;else{const e=this.getOpenLeaves(o,r);i=[t,...e].find(l)}return{leaf:i??null,file:e,suggestion:null,isValidSource:!1}}extractTabNavigationType(e,t,s){const i=e?.shiftKey?"horizontal":"vertical",a=e?.key;let o=n.Keymap.isModEvent(e)??!1;return!0!==o&&"tab"!==o||("o"===a?o="window":"\\"===a&&(o="split")),o=this.applyTabCreationPreferences(o,t,s),{navType:o,splitDirection:i}}applyTabCreationPreferences(e,s=!1,i){let a=e;const{onOpenPreferNewTab:o,alwaysNewTabForSymbols:r,useActiveTabForSymbolsOnMobile:l}=this.settings;return!1===e&&(o?a=!s:i===t.SymbolList&&(a=n.Platform.isMobile?!l:r)),a}isMainPanelLeaf(e){const{workspace:t}=this.app,s=e?.getRoot();return s===t.rootSplit||s===t.floatingSplit}async activateLeaf(e,t){const{workspace:s}=this.app;try{await s.revealLeaf(e),s.setActiveLeaf(e,{focus:!0}),e.view.setEphemeralState({focus:!0,...t})}catch(t){const s=e?.getDisplayText();console.log(`Switcher++: error activating WorkspaceLeaf with title: ${s}`,t)}}getOpenLeaves(e,t,s){const i=[];return this.app.workspace.iterateAllLeaves((s=>{const n=s?.view?.getViewType();this.isMainPanelLeaf(s)?e?.includes(n)||i.push(s):t?.includes(n)&&i.push(s)})),s?.orderByAccessTime&&i.sort(((e,t)=>{const s=e?.activeTime??0;return(t?.activeTime??0)-s})),i}static async openFileInLeaf(e,t,s,i,n="vertical"){const a="split"===t?s.getLeaf(t,n):s.getLeaf(t);await a.openFile(e,i)}navigateToLeafOrOpenFile(e,t,s,i,n,a,o=!1){this.navigateToLeafOrOpenFileAsync(e,t,i,n,a,o).catch((e=>{console.log(`Switcher++: error navigating to open file. ${s}`,e)}))}async navigateToLeafOrOpenFileAsync(e,t,s,i,n,a=!1){const{leaf:o}=this.findMatchingLeaf(t,i,a),r=!!o,{navType:l,splitDirection:d}=this.extractTabNavigationType(e,r,n);await this.activateLeafOrOpenFile(l,t,o,s,d)}async activateLeafOrOpenFile(e,t,s,i,n){if(i=i??this.getOpenViewActiveState(),s&&!1===e){const e=i?.eState;await this.activateLeaf(s,e)}else await he.openFileInLeaf(t,e,this.app.workspace,i,n)}renderPath(t,s,i,a,o){if(t&&s){const r=s.parent.isRoot();let l=this.settings.pathDisplayFormat,d=l===e.None||r&&this.settings.hidePathIfRoot;if(o&&(l=e.FolderPathFilenameOptional,d=!1),!d){const e=t.createDiv({cls:["suggestion-note","qsp-note"]}),o=this.getPathDisplayText(s,l,i),r=e.createSpan({cls:["qsp-path-indicator"]});n.setIcon(r,"folder");const d=e.createSpan({cls:"qsp-path"});n.renderResults(d,o,a)}}}getPathDisplayText(t,s,i){let a="";if(t){const{parent:o}=t,r=o.name,l=o.isRoot(),d=this.app.vault.getRoot().path;switch(s){case e.FolderWithFilename:a=l?`${t.name}`:n.normalizePath(`${r}/${t.name}`);break;case e.FolderOnly:a=l?d:r;break;case e.Full:a=t.path;break;case e.FolderPathFilenameOptional:i?(a=o.path,l||(a+=d)):a=this.getPathDisplayText(t,e.Full)}}return a}renderContent(e,t,s,i){const{contentEl:a,titleEl:o}=he.createContentStructureElements(e);return n.renderResults(o,t,s,i),a}static createContentStructureElements(e){const t=e.createDiv({cls:["suggestion-content","qsp-content"]}),s=t.createDiv({cls:["suggestion-title","qsp-title"]});return{contentEl:t,titleEl:s}}static renderMarkdownContentAsync(e,t,s,i){he.renderMarkdownContent(e,t,s,i,D.getRootComponent()).catch((e=>{console.log("Switcher++: error rendering markdown to html. ",e,`content: ${s}`)}))}static async renderMarkdownContent(e,t,s,i,a){const o=t.createSpan({cls:["qsp-rendered-container"]});if(await n.MarkdownRenderer.render(e,s,o,i,a),1===o.childNodes.length&&"P"===o.firstChild.nodeName){const e=o.firstChild;e.replaceWith(...Array.from(e.childNodes))}return o}addClassesToSuggestionContainer(e,t){const s=["mod-complex"];t&&s.push(...t),e?.addClasses(s)}splitSearchMatchesAtBasename(e,t){let s=null,i=null;const n=(e,t)=>{e.forEach((e=>{e[0]-=t,e[1]-=t}))};if(e&&t?.matches){const a=e.path.lastIndexOf(e.basename);if(a>=0){const{matches:e,score:o}=t,r=e[0][0],l=e[e.length-1][1];if(r>=a)s=t,n(s.matches,a);else if(l<=a)i=t;else{let t=e.length;for(;t--;){const r=e[t][0],l=t+1;if(e[t][1]<=a){i={score:o,matches:e.slice(0,l)},s={score:o,matches:e.slice(l)},n(s.matches,a);break}if(r{t=t??o;let s=0;return Object.prototype.hasOwnProperty.call(t,e)&&(s=Number(t[e]?.value)),isNaN(s)?0:s},h=(t,s)=>{let i=0;return(null!==t&&t===n||e[s])&&(i=c(s)),i};d+=h(r.Bookmark,"isBookmarked"),d+=h(r.EditorList,"isOpenInEditor"),d+=h(null,"isRecent"),d+=h(null,"isAttachment"),d+=c(a?.extension,l),m(e)&&(d+=c(`h${e.item?.level}`));const u=n.toString();d+=c(u),i.score+=Math.abs(i.score)/100*(100*d)}}return e}static updateWorkspaceEnvListStatus(e,t){if(e&&t?.file){const{file:s}=t;t.isOpenInEditor=e.openWorkspaceFiles?.has(s),t.isRecent=e.mostRecentFiles?.has(s),t.isBookmarked=e.fileBookmarks?.has(s),t.isAttachment=e.attachmentFileExtensions?.has(s.extension)}return t}renderFileCreationSuggestion(e,t){this.addClassesToSuggestionContainer(e);const s=this.renderContent(e,t,null),i=this.createFlairContainer(e);return i?.createSpan({cls:"suggestion-hotkey",text:"Enter to create"}),s}createFile(e,t){const{workspace:s}=this.app,{navType:i}=this.extractTabNavigationType(t),a=s.getActiveViewOfType(n.FileView);let o="";a?.file&&(o=a.file.path),s.openLinkText(e,o,i,{active:!0}).catch((e=>{console.log("Switcher++: error creating new file. ",e)}))}getOpenViewState(e,t){const s=this.getPreferredViewLinePosition(e),{eState:i}=this.getOpenViewLinePositionState(s),n=this.getOpenViewActiveState(t);return Object.assign(n.eState,i),n}getOpenViewActiveState(e){const{active:t,focus:s}=Object.assign({active:!0,focus:!0},e);return{active:t,eState:{active:t,focus:s}}}getPreferredViewLinePosition(e){const t={line:0,col:0,offset:0};return{start:t,end:t}}getOpenViewLinePositionState(e){const t=Object.assign({line:0,col:0,offset:0},e?.start),s=Object.assign({line:0,col:0,offset:0},e?.end),{line:i,col:n}=t;return{eState:{startLoc:t,endLoc:s,line:i,cursor:{from:{line:i,ch:n},to:{line:i,ch:n}}}}}}class me{useSimpleSearch;_searchDelegate;query;hasSearchTerm;constructor(e,t){this.useSimpleSearch=t,this.query=(e??"").trim().toLowerCase(),this.hasSearchTerm=!!this.query.length}static create(e,t=!1){return new me(e,t)}searchWithFallback(e,t){let s,i=l.None,n=null,a=this.searchAndDownrankSecondaryMatch(e);if(a.match)n=a.match,i=l.Primary,s=e;else if(t){const{basename:e,path:o}=t;a=this.searchAndDownrankSecondaryMatch(e,o),a.isPrimary?(i=l.Basename,s=e):a.match&&(i=l.Path,s=o),n=a.match}return{matchType:i,matchText:s,match:n}}searchAndDownrankSecondaryMatch(e,t){let s=!1,i=null;return e&&(i=this.executeSearch(e),s=!!i),!i&&t&&(i=this.executeSearch(t),i&&(i.score-=1)),{isPrimary:s,match:i}}executeSearch(e){const t=this.getSearchDelegate();return t?t(e):null}getSearchDelegate(){if(!this._searchDelegate){const{query:e,useSimpleSearch:t}=this;this._searchDelegate=t?n.prepareSimpleSearch(e):n.prepareFuzzySearch(e)}return this._searchDelegate}}class ue extends he{getCommandString(e){return this.settings?.workspaceListCommand}validateCommand(e,s,i,n,a){const o=e.parsedCommand(t.WorkspaceList);return this.getEnabledWorkspacesPluginInstance()&&(e.mode=t.WorkspaceList,o.index=s,o.parsedInput=i,o.isValidated=!0),o}getSuggestions(e){const t=[];if(e){const{query:s,hasSearchTerm:i}=e.parsedInputQuery,a=me.create(s);this.getItems().forEach((e=>{let s=!0,n=null;i&&(({match:n}=a.searchWithFallback(e.id)),s=!!n),s&&t.push({type:r.WorkspaceList,item:e,match:n})})),i&&n.sortSearchResults(t)}return t}renderSuggestion(e,t){let s=!1;return e&&(this.addClassesToSuggestionContainer(t,["qsp-suggestion-workspace"]),this.renderContent(t,e.item.id,e.match),s=!0),s}onChooseSuggestion(e,t){let s=!1;if(e){const{id:t}=e.item,i=this.getEnabledWorkspacesPluginInstance();i&&i.loadWorkspace(t),s=!0}return s}onNoResultsCreateAction(e,s){const i=this.getEnabledWorkspacesPluginInstance();if(i){const s=e.parsedCommand(t.WorkspaceList)?.parsedInput;i.saveWorkspace(s),i.setActiveWorkspace(s)}return!0}getItems(){const e=[],t=this.getEnabledWorkspacesPluginInstance()?.workspaces;return t&&Object.keys(t).forEach((t=>e.push({id:t,type:"workspaceInfo"}))),e.sort(((e,t)=>e.id.localeCompare(t.id)))}getEnabledWorkspacesPluginInstance(){return ue.getEnabledWorkspacesPluginInstance(this.app)}static getEnabledWorkspacesPluginInstance(e){return v(e,"workspaces")}}class ge extends he{getCommandString(e){return""}validateCommand(e,t,s,i,n){throw new Error("Method not implemented.")}getSuggestions(e){throw new Error("Method not implemented.")}renderSuggestion(e,t){let s=!1;return u(e)?s=this.renderFileSuggestion(e,t):g(e)&&(s=this.renderAliasSuggestion(e,t)),e?.downranked&&t.addClass("mod-downranked"),s}onChooseSuggestion(e,t){let s=!1;if(e){const{file:i}=e;this.navigateToLeafOrOpenFile(t,i,`Unable to open file from SystemSuggestion ${i.path}`),s=!0}return s}renderFileSuggestion(e,t){let s=!1;if(e){const{file:i,matchType:n,match:a}=e;this.renderAsFileInfoPanel(t,["qsp-suggestion-file"],null,i,n,a),this.renderOptionalIndicators(t,e),s=!0}return s}renderAliasSuggestion(e,t){let s=!1;if(e){const{file:i,matchType:n,match:a}=e;this.renderAsFileInfoPanel(t,["qsp-suggestion-alias"],e.alias,i,n,a,!1);const o=this.renderOptionalIndicators(t,e);this.renderIndicator(o,["qsp-alias-indicator"],"lucide-forward"),s=!0}return s}addPropertiesToStandardSuggestions(e,t){const{match:s}=t;let i=l.None,n=null;s?.matches&&(g(t)?(i=l.Primary,n=t.alias):u(t)&&(i=l.Path,n=t.file.path)),t.matchType=i,t.matchText=n,he.updateWorkspaceEnvListStatus(e,t)}static createUnresolvedSuggestion(e,t,s,i){const n={linktext:e,type:r.Unresolved,...t};return he.applyMatchPriorityPreferences(n,s,i)}}class pe extends he{getCommandString(e){return this.settings?.editorListCommand}validateCommand(e,s,i,n,a){e.mode=t.EditorList;const o=e.parsedCommand(t.EditorList);return o.index=s,o.parsedInput=i,o.isValidated=!0,o}getSuggestions(e){const t=[];if(e){const{query:s,hasSearchTerm:i}=e.parsedInputQuery,a=me.create(s);this.getItems().forEach((s=>{const n=x(s);let o=!0,r={matchType:l.None,match:null};const d=this.getPreferredTitle(s,this.settings.preferredSourceForTitle);i&&(r=a.searchWithFallback(d,n),o=r.matchType!==l.None),o&&t.push(this.createSuggestion(e.currentWorkspaceEnvList,s,n,r,d))})),i&&n.sortSearchResults(t)}return t}getPreferredTitle(e,t){return pe.getPreferredTitle(e,t,this.app.metadataCache,this.settings.frontmatterTitleProperty)}static getPreferredTitle(e,t,s,i){const n=x(e);let a=e.getDisplayText();if("H1"===t&&n){const e=pe.getFirstH1(n,s);e&&(a=a.replace(n.basename,e.heading))}else if("FrontMatter"===t&&n&&i){const e=s.getFileCache(n)?.frontmatter,t=he.getFrontmatterProperty(e,i);t&&(a=a.replace(n.basename,t))}return a}getItems(){const{excludeViewTypes:e,includeSidePanelViewTypes:t,orderEditorListByAccessTime:s}=this.settings;return this.getOpenLeaves(e,t,{orderByAccessTime:s})}renderSuggestion(e,t){let s=!1;if(e){const{file:i,matchType:n,match:a}=e,o=[l.None,l.Primary].includes(n);this.renderAsFileInfoPanel(t,["qsp-suggestion-editor"],e.preferredTitle,i,n,a,o),this.renderOptionalIndicators(t,e),s=!0}return s}onChooseSuggestion(e,t){let s=!1;return e&&(this.navigateToLeafOrOpenFile(t,e.file,"Unable to reopen existing editor in new Leaf.",null,e.item,null,!0),s=!0),s}createSuggestion(e,t,s,i,n){return pe.createSuggestion(e,t,s,this.settings,this.app.metadataCache,n,i)}static createSuggestion(e,t,s,i,n,a,o){o=o??{matchType:l.None,match:null,matchText:null};let d={item:t,file:s,preferredTitle:a=a??null,type:r.EditorList,...o};return d=he.updateWorkspaceEnvListStatus(e,d),he.applyMatchPriorityPreferences(d,i,n)}}class fe extends he{getCommandString(e){return this.settings?.bookmarksListCommand}validateCommand(e,s,i,n,a){const o=e.parsedCommand(t.BookmarksList);return this.getEnabledBookmarksPluginInstance()&&(e.mode=t.BookmarksList,o.index=s,o.parsedInput=i,o.isValidated=!0),o}getSuggestions(e){const t=[];if(e){const{query:s,hasSearchTerm:i}=e.parsedInputQuery,a=me.create(s),{allBookmarks:o}=this.getItems(e);o.forEach((s=>{let n=!0,o={matchType:l.None,match:null};i&&(o=a.searchWithFallback(s.bookmarkPath),n=o.matchType!==l.None),n&&t.push(this.createSuggestion(e.currentWorkspaceEnvList,s,o))})),i&&n.sortSearchResults(t)}return t}renderSuggestion(e,t){return!1}onChooseSuggestion(e,t){let s=!1;if(fe.isBookmarksPluginFileItem(e?.item)){const{file:i}=e;this.navigateToLeafOrOpenFile(t,i,`Unable to open file from BookmarkSuggestion ${i?.path}`),s=!0}return s}getPreferredTitle(e,t,s,i){let n=e.getItemTitle(t);if(s)if("H1"===i){const e=this.getFirstH1(s);e&&(n=n.replace(/^[^#]*/,e.heading))}else if("FrontMatter"===i){const e=this.app.metadataCache.getFileCache(s)?.frontmatter,t=he.getFrontmatterProperty(e,this.settings.frontmatterTitleProperty);t&&(n=n.replace(/^[^#]*/,t))}return n}getItems(e){const t=[],s=new Map,i=new Set,n=this.getEnabledBookmarksPluginInstance();if(n){const a=e?this.getActiveFacetIds(e):new Set,o=(e,r)=>{e?.forEach((e=>{if(fe.isBookmarksPluginGroupItem(e))o(e.items,`${r}${e.title}/`);else if(this.isFacetedWith(a,j[e.type])){let a;if(fe.isBookmarksPluginFileItem(e)){const t=this.getTFileByPath(e.path);if(t){a={item:e,bookmarkPath:null,file:t};const i=s.get(t)??[];i.push(a),s.set(t,i)}}else a={item:e,bookmarkPath:null,file:null},i.add(a);if(a){const s=this.getPreferredTitle(n,e,a.file,this.settings.preferredSourceForTitle);a.bookmarkPath=r+s,t.push(a)}}}))};o(n.items,"")}return{allBookmarks:t,fileBookmarks:s,nonFileBookmarks:i}}getEnabledBookmarksPluginInstance(){return v(this.app,"bookmarks")}createSuggestion(e,t,s){return fe.createSuggestion(e,t,this.settings,this.app.metadataCache,s)}static createSuggestion(e,t,s,i,n){let a={type:r.Bookmark,item:t.item,bookmarkPath:t.bookmarkPath,file:t.file,...n};return a=he.updateWorkspaceEnvListStatus(e,a),he.applyMatchPriorityPreferences(a,s,i)}static isBookmarksPluginFileItem(e){return c(e,"type","file")}static isBookmarksPluginGroupItem(e){return c(e,"type","group")}addPropertiesToStandardSuggestions(e,t){const{match:s,item:i}=t;let n=l.None,a=null;if(!t.file&&fe.isBookmarksPluginFileItem(i)){const e=i.path;t.file=this.getTFileByPath(e)}s?.matches&&(n=l.Primary,a=t.bookmarkPath),t.matchType=n,t.matchText=a,he.updateWorkspaceEnvListStatus(e,t)}}const ye={file:"lucide-file-text",text:"lucide-sticky-note",link:"lucide-globe",group:"create-group"},be={table:"lucide-table",list:"lucide-list",cards:"lucide-layout-grid"};class Se extends he{inputInfo;getCommandString(e){const{settings:t}=this;return e?.useActiveEditorAsSource?t.symbolListActiveEditorCommand:t.symbolListCommand}validateCommand(e,s,i,n,a){const o=e.parsedCommand(t.SymbolList),r=this.getSourceInfoForSymbolOperation(n,a,0===s,e.sessionOpts);return r&&(e.mode=t.SymbolList,o.source=r,o.index=s,o.parsedInput=i,o.isValidated=!0),o}async getSuggestions(e){const s=[];if(e){this.inputInfo=e;const{query:i,hasSearchTerm:a}=e.parsedInputQuery,o=me.create(i),l=e.parsedCommand(t.SymbolList);(await this.getItems(l.source,a)).forEach((e=>{let t=!0,i=null;if(a){const s=Se.getSuggestionTextForSymbol(e);({match:i}=o.searchWithFallback(s)),t=!!i}if(t){const{file:t}=l.source;s.push({type:r.SymbolList,file:t,item:e,match:i})}})),a&&n.sortSearchResults(s)}return s}renderSuggestion(e,t){let s=!1;if(e){const{item:i,file:n,match:a}=e,o=["qsp-suggestion-symbol"];Object.prototype.hasOwnProperty.call(i,"indentLevel")&&this.settings.symbolsInLineOrder&&!this.inputInfo?.parsedInputQuery?.hasSearchTerm&&o.push(`qsp-symbol-l${i.indentLevel}`),this.addClassesToSuggestionContainer(t,o);const{titleEl:r}=he.createContentStructureElements(t);Se.renderSymbolContent(this.app,this.settings,r,i,n,a),this.addSymbolIndicator(i,t),s=!0}return s}onChooseSuggestion(e,s){let i=!1;if(e){const n=this.inputInfo.parsedCommand(),{leaf:a,file:o}=n.source,r=this.getOpenViewState(e),{item:l}=e;this.navigateToLeafOrOpenFileAsync(s,o,r,a,t.SymbolList).then((()=>{if(Se.isCanvasSymbolPayload(l)&&this.zoomToCanvasNode(this.getActiveLeaf().view,l.symbol),Se.isBaseViewSymbolPayload(l)){const t=l.symbol,s=e.file?.path,i=`${s}#${t.name}`;this.app.workspace.openLinkText(i,s,!1).catch((e=>{console.log(`Switcher++: Unable to navigate to Base view ${t.name} in file ${s}`,e)}))}}),(e=>{console.log(`Switcher++: Unable to navigate to symbols for file ${o?.path}`,e)})),i=!0}return i}reset(){this.inputInfo=null}getAvailableFacets(e){const i=e.parsedCommand(t.SymbolList),n=Se.isBaseFile(i?.source?.file),a=Se.isCanvasFile(i?.source?.file),o=this.getFacets(e.mode),r=new Set(Object.values(W)),l=new Set(Object.values(V)),d=new Set(Object.values(s).filter((e=>isNaN(Number(e)))));return o.forEach((e=>{const{id:t}=e;e.isAvailable=n?r.has(t):a?l.has(t):d.has(t)})),o.filter((e=>e.isAvailable))}zoomToCanvasNode(e,t){if(Se.isCanvasView(e)&&t){const s=e.canvas,i=s.nodes.get(t.id);s.selectOnly(i),s.zoomToSelection()}}getPreferredViewLinePosition(e){let t=super.getPreferredViewLinePosition();if(e?.item?.symbol){const{item:s}=e;if(!Se.isCanvasSymbolPayload(s)&&!Se.isBaseViewSymbolPayload(s)){t=s.symbol.position}}return t}getSourceInfoForSymbolOperation(e,s,i,n){const a=this.inputInfo;let o=null,r=t.Standard;a&&(o=a.parsedCommand().source,r=a.mode);const l=r===t.SymbolList&&!!o,d=this.getEditorInfo(s),c=this.getSuggestionInfo(e);let h=null;return l?h=o:c.isValidSource&&!n.useActiveEditorAsSource?h=c:d.isValidSource&&i&&(h=d),h}async getItems(e,t){let s=[],i=!1,n=!1;return t||({selectNearestHeading:n,symbolsInLineOrder:i}=this.settings),s=await this.getSymbolsFromSource(e,i),n&&Se.FindNearestHeadingSymbol(s,e),s}static FindNearestHeadingSymbol(e,t){const s=t?.cursor?.line;if(s){let t=null;const i=e.filter((e=>y(e.symbol)));i.length&&(t=i.reduce(((e,t)=>{const{line:i}=t.symbol.position.start,n=e?e.symbol.position.start.line:-1;return e?i>n&&i<=s?t:e:i<=s?t:null}),null)),t&&(t.isSelected=!0)}}async getSymbolsFromSource(e,t){const{app:{metadataCache:i},inputInfo:n}=this,a=[];if(e?.file){const{file:o}=e,r=this.getActiveFacetIds(n);if(Se.isBaseFile(o))await this.addBaseViewsFromSource(o,a,r);else if(Se.isCanvasFile(o))await this.addCanvasSymbolsFromSource(o,a,r);else{const e=i.getFileCache(o);if(e){const i=(e=[],t)=>{this.shouldIncludeSymbol(t,r)&&e.forEach((e=>a.push({type:"symbolInfo",symbol:e,symbolType:t})))};i(e.headings,s.Heading),this.addTagsFromSource(e,a,r),this.addLinksFromSource(e.links,a,r),i(e.embeds,s.Embed),await this.addCalloutsFromSource(o,e.sections?.filter((e=>"callout"===e.type)),a,r),t&&Se.orderSymbolsByLineNumber(a)}}}return a}shouldIncludeSymbol(e,t){let i=!1;return i="string"==typeof e?this.isFacetedWith(t,e):this.settings.isSymbolTypeEnabled(e)&&this.isFacetedWith(t,s[e]),i}async addCanvasSymbolsFromSource(e,t,i){let n;try{const t=await this.app.vault.cachedRead(e);n=JSON.parse(t).nodes}catch(t){console.log(`Switcher++: error reading file to extract canvas node information. ${e.path} `,t)}Array.isArray(n)&&n.forEach((e=>{this.shouldIncludeSymbol(V[e.type],i)&&t.push({type:"symbolInfo",symbolType:s.CanvasNode,symbol:{...e}})}))}async addBaseViewsFromSource(e,t,i){let a;try{const t=await this.app.vault.cachedRead(e);a=n.parseYaml(t)}catch(t){return void console.log(`Switcher++: error reading file to extract base view information. ${e.path} `,t)}a&&a?.views&&Array.isArray(a.views)&&a.views.forEach((e=>{const n=W[e.type];(n?this.shouldIncludeSymbol(n,i):0===i.size)&&t.push({type:"symbolInfo",symbolType:s.BaseView,symbol:{type:e.type,name:e.name}})}))}async addCalloutsFromSource(e,t,i,n){const{app:{vault:a}}=this;if(this.shouldIncludeSymbol(s.Callout,n)&&t?.length&&e){let n=null;try{n=await a.cachedRead(e)}catch(t){console.log(`Switcher++: error reading file to extract callout information. ${e.path} `,t)}if(n)for(const e of t){const{start:t,end:a}=e.position,o=n.slice(t.offset,a.offset).match(/^> \[!([^\]]+)\][+-]?(.*?)(?:\n>|$)/);if(o){const t=o[1],n={calloutTitle:o[o.length-1].trim(),calloutType:t,...e};i.push({type:"symbolInfo",symbolType:s.Callout,symbol:n})}}}}addLinksFromSource(e,t,i){const{settings:n}=this;if(e=e??[],this.shouldIncludeSymbol(s.Link,i))for(const i of e){const e=F(i);(n.excludeLinkSubTypes&e)===e||t.push({type:"symbolInfo",symbol:i,symbolType:s.Link})}}addTagsFromSource(e,t,i){if(!this.shouldIncludeSymbol(s.Tag,i))return;const n=new Set,a=e.tags??[];for(const e of a)n.add(e.tag.toLowerCase()),t.push({type:"symbolInfo",symbol:e,symbolType:s.Tag});const o=e.frontmatter;if(o){const i=H.getTags(o),a=e.frontmatterPosition??{start:{line:0,col:0,offset:0},end:{line:0,col:0,offset:0}};for(const e of i){const i=e.startsWith("#")?e:`#${e}`;if(n.has(i.toLowerCase()))continue;const o={tag:i,position:a};t.push({type:"symbolInfo",symbol:o,symbolType:s.Tag})}}}static orderSymbolsByLineNumber(e){const t=e.sort(((e,t)=>{const{start:s}=e.symbol.position,{start:i}=t.symbol.position,n=s.line-i.line;return 0===n?s.col-i.col:n}));let s=0;return t.forEach((e=>{let t=0;y(e.symbol)?(s=e.symbol.level,t=e.symbol.level-1):t=s,e.indentLevel=t})),t}static getMarkdownContentForSymbol(e,t){const{symbol:s}=e;if(y(s))return s.heading;if(b(s))return s.tag;if(S(s))return s.calloutTitle;const i=s;return i.original?i.original:null}static renderSymbolContent(e,t,s,i,a,o,r){const l=Se.getMarkdownContentForSymbol(i,a);if((r??(null!==l&&t.shouldRenderSymbolAsHTML(i.symbolType)))&&null!==l)he.renderMarkdownContentAsync(e,s,l,a.path);else{const e=Se.getSuggestionTextForSymbol(i);n.renderResults(s,e,o)}}static getSuggestionTextForSymbol(e){const{symbol:t}=e;let s;if(y(t))s=t.heading;else if(b(t))s=t.tag.slice(1);else if(S(t))s=t.calloutTitle;else if(Se.isCanvasSymbolPayload(e))s=Se.getSuggestionTextForCanvasNode(e.symbol);else if(Se.isBaseViewSymbolPayload(e))s=e.symbol.name;else{const e=t;({link:s}=e);const{displayText:i}=e;i&&i!==s&&(s+=`|${i}`)}return s}static getSuggestionTextForCanvasNode(e){let t="";const s={file:()=>e.file,text:()=>e.text,link:()=>e.url,group:()=>e.label}[e?.type];return s&&(t=s()),t}addSymbolIndicator(e,t){const{symbolType:s,symbol:i}=e,r=["qsp-symbol-indicator"],l=this.createFlairContainer(t);if(S(i)){r.push("suggestion-flair","callout","callout-icon","svg-icon");const e=l.createSpan({cls:r,attr:{"data-callout":i.calloutType}}),t=e.getCssPropertyValue("--callout-icon");n.setIcon(e,t)}else if(Se.isCanvasSymbolPayload(e)){const t=ye[e.symbol.type];this.renderIndicator(l,r,t,null)}else if(Se.isBaseViewSymbolPayload(e)){const t=e.symbol,s=be[t.type]||be.table;this.renderIndicator(l,r,s,null)}else{let e;e=y(i)?o[i.level]:a[s],this.renderIndicator(l,r,null,e)}}static isCanvasSymbolPayload(e){return e.symbolType===s.CanvasNode}static isBaseViewSymbolPayload(e){return e.symbolType===s.BaseView}static isCanvasFile(e){return"canvas"===e?.extension}static isCanvasView(e){return"canvas"===e?.getViewType()}static isBaseFile(e){return"base"===e?.extension}static isBaseView(e){return"bases"===e?.getViewType()}}class ke extends he{getCommandString(e){return this.settings?.headingsListCommand}validateCommand(e,s,i,n,a){e.mode=t.HeadingsList;const o=e.parsedCommand(t.HeadingsList);return o.index=s,o.parsedInput=i,o.isValidated=!0,o}onChooseSuggestion(e,t){let s=!1;if(e){const i=this.getOpenViewState(e);this.navigateToLeafOrOpenFile(t,e.file,"Unable to navigate to heading for file.",i),s=!0}return s}getPreferredViewLinePosition(e){return e?.item?.position}renderSuggestion(e,t){let s=!1;if(e){const{item:i,file:n,match:a}=e,{app:r,settings:l}=this;this.addClassesToSuggestionContainer(t,["qsp-suggestion-headings",`qsp-headings-l${i.level}`]);const{contentEl:d,titleEl:c}=he.createContentStructureElements(t);ke.renderHeadingContent(r,l,c,i,n,a),this.renderPath(d,n);const h=this.createFlairContainer(t);this.renderOptionalIndicators(t,e,h),this.renderIndicator(h,["qsp-headings-indicator"],null,o[i.level]),e.downranked&&t.addClass("mod-downranked"),s=!0}return s}static renderHeadingContent(e,t,i,n,a,o,r){const l={type:"symbolInfo",symbol:n,symbolType:s.Heading};Se.renderSymbolContent(e,t,i,l,a,o,r)}getAvailableFacets(e){const{settings:{shouldSearchHeadings:t,shouldSearchBookmarks:s,shouldSearchFilenames:i,shouldSearchRecentFiles:n,builtInSystemOptions:{showAttachments:a,showAllFileTypes:o}}}=this,r=a||o,l={[Q.RecentFiles]:n,[Q.Bookmarks]:s,[Q.Filenames]:i,[Q.Headings]:t,[Q.ExternalFiles]:r};return this.getFacets(e.mode).filter((e=>(Object.prototype.hasOwnProperty.call(l,e.id)&&(e.isAvailable=l[e.id]),e.isAvailable)))}getSuggestions(e){let t=[];if(e){const{hasSearchTerm:s}=e.parsedInputQuery,{settings:i}=this,a=this.getActiveFacetIds(e),o=!!a.size;if(s||o){const{limit:s}=i,{app:{vault:o}}=this,r={headings:i.shouldSearchHeadings,allHeadings:i.searchAllHeadings,aliases:i.shouldShowAlias,bookmarks:i.shouldSearchBookmarks,filename:i.shouldSearchFilenames,filenameAsFallback:!i.strictHeadingsOnly,unresolved:!i.showExistingOnly};this.getItems([o.getRoot()],e,t,a,r),n.sortSearchResults(t),s>0&&t.length>s&&(t=t.slice(0,s))}else this.getSuggestionsForEditorsAndRecentFiles(e,t,new Set,{editors:!0,recentFiles:i.shouldSearchRecentFiles})}return t}getItems(e,t,s,i,n){const a=!!i.size,o=me.create(t.parsedInputQuery.query);this.getSuggestionsForEditorsAndRecentFiles(t,s,i,{editors:!1,recentFiles:!1});const r={fileBookmarks:n.bookmarks,nonFileBookmarks:n.bookmarks};this.getSuggestionsForBookmarks(t,o,s,i,r);const l={headings:n.headings,allHeadings:n.allHeadings,aliases:n.aliases,filename:n.filename,filenameAsFallback:n.filenameAsFallback};this.getSuggestionForFiles(t,o,e,s,i,l),n.unresolved&&!a&&this.addUnresolvedSuggestions(s,o)}getSuggestionsForBookmarks(e,t,s,i,n){const a=!!i.size,{fileBookmarks:o,nonFileBookmarks:r}=e.currentWorkspaceEnvList;if(a){const e=i.has(Q.Bookmarks);n=Object.assign(n,{fileBookmarks:e,nonFileBookmarks:e})}const l=i=>{for(const n of i)this.addBookmarkSuggestion(e,s,t,n)};n.fileBookmarks&&o.forEach((e=>{l(e)})),n.nonFileBookmarks&&l(r)}getSuggestionForFiles(e,t,s,i,n,a){if(!!n.size){const e=this.isFacetedWith(n,Q.Headings),t=this.isFacetedWith(n,Q.ExternalFiles)||this.isFacetedWith(n,Q.Filenames);let s=!1,i=!1;e&&(s=!0===a.allHeadings,i=!0===a.filenameAsFallback),a=Object.assign(a,{headings:e,aliases:!1,filename:t,allHeadings:s,filenameAsFallback:i})}else a=Object.assign({headings:!0,allHeadings:!0,aliases:!0,filename:!0,filenameAsFallback:!0},a);if([a.headings,a.aliases,a.filename].some((e=>!0===e))){const{excludeFolders:o}=this.settings,r=E(o);let l=Array.prototype.concat(s);for(;l.length>0;){const s=l.pop();k(s)?this.shouldIncludeFile(s,n)&&this.addSuggestionsForFile(e,t,i,s,a):r(s.path)||(l=l.concat(s.children))}}}addSuggestionsForFile(e,t,s,i,n){let a=!1;n.headings&&(a=this.addHeadingSuggestions(e,t,s,i,n.allHeadings)),(n.filename||!a&&n.filenameAsFallback)&&this.addFileSuggestions(e,t,s,i),n.aliases&&this.addAliasSuggestions(e,t,s,i)}shouldIncludeFile(e,t=new Set){let s=!1;if(e){const i=new Set(["md","canvas"]),{extension:n}=e,{app:{viewRegistry:a,metadataCache:o},settings:{excludeObsidianIgnoredFiles:r,fileExtAllowList:l,builtInSystemOptions:{showAttachments:d,showAllFileTypes:c}}}=this;if(!(r&&o.isUserIgnored(e.path)))if(t.has(Q.ExternalFiles)){const e=d||c;s=!i.has(n)&&e}else{s=this.isExternalFileTypeAllowed(e,a,d,c,l)||i.has(n)}}return s}isExternalFileTypeAllowed(e,t,s,i,n){const{extension:a}=e;let o=t.isExtensionRegistered(a)?s:i;if(!o){o=new Set(n).has(a)}return o}addAliasSuggestions(e,t,s,i){const{metadataCache:n}=this.app,a=n.getFileCache(i)?.frontmatter;if(a){const n=H.getAliases(a);let o=n.length;for(;o--;){const a=n[o],{match:r}=t.searchWithFallback(a);r&&s.push(this.createAliasSuggestion(e,a,i,r))}}}addFileSuggestions(e,t,s,i){const{match:n,matchType:a,matchText:o}=t.searchWithFallback(null,i);n&&s.push(this.createFileSuggestion(e,i,n,a,o))}addBookmarkSuggestion(e,t,s,i){const n=s.searchWithFallback(i.bookmarkPath);if(n.match){const s=fe.createSuggestion(e.currentWorkspaceEnvList,i,this.settings,this.app.metadataCache,n);t.push(s)}}addHeadingSuggestions(e,t,s,i,n){const{metadataCache:a}=this.app,o=a.getFileCache(i)?.headings??[];let r=null,l=!1,d=o.length;for(;d--;){const a=o[d];let c=!1;if(n&&(c=this.matchAndPushHeading(e,t,s,i,a)),1===a.level){const{line:e}=a.position.start;(null===r||e{this.addOpenEditorSuggestions(s,e,a,t)}))}if(i.recentFiles){const i=e.currentWorkspaceEnvList?.mostRecentFiles;i?.forEach((i=>{this.shouldIncludeFile(i,s)&&this.addRecentFilesSuggestions(i,e,a,t)}))}}onNoResultsCreateAction(e,s){const i=e.parsedCommand(t.HeadingsList)?.parsedInput;return this.createFile(i,s),!0}}class ve extends he{static recentlyUsedCommandIds=[];getCommandString(e){return this.settings?.commandListCommand}validateCommand(e,s,i,n,a){const o=e.parsedCommand(t.CommandList);return this.getEnabledCommandPalettePluginInstance()&&(e.mode=t.CommandList,o.index=s,o.parsedInput=i,o.isValidated=!0),o}getSuggestions(e){const t=[];if(e){const{query:s,hasSearchTerm:i}=e.parsedInputQuery,a=me.create(s);this.getItems(e,i).forEach((e=>{let s=!0,n=null;i&&(({match:n}=a.searchWithFallback(e.cmd.name)),s=!!n),s&&t.push(this.createSuggestion(e,n))})),i&&n.sortSearchResults(t)}return t}renderSuggestion(e,t){let s=!1;if(e){const{item:i,match:n,isPinned:a,isRecent:o}=e;this.addClassesToSuggestionContainer(t,["qsp-suggestion-command"]),this.renderContent(t,i.name,n);const r=this.createFlairContainer(t);this.renderHotkeyForCommand(i.id,this.app,r),i.icon&&this.renderIndicator(r,[],i.icon),a?this.renderIndicator(r,[],"filled-pin"):o&&this.renderOptionalIndicators(t,e,r),s=!0}return s}renderHotkeyForCommand(e,t,s){try{const{hotkeyManager:i}=t;if(i.getHotkeys(e)||i.getDefaultHotkeys(e)){const t=i.printHotkeyForCommand(e);t?.length&&s.createEl("kbd",{cls:"suggestion-hotkey",text:t})}}catch(t){console.log("Switcher++: error rendering hotkey for command id: ",e,t)}}onChooseSuggestion(e){let t=!1;if(e){const{item:s}=e;this.app.commands.executeCommandById(s.id),this.saveUsageToList(s.id,ve.recentlyUsedCommandIds),t=!0}return t}saveUsageToList(e,t){if(t){const s=t.indexOf(e);s>-1&&t.splice(s,1),t.unshift(e),t.splice(this.settings.maxRecentCommands)}}getItems(e,t){let s=[];const i=this.getActiveFacetIds(e);if(!!i.size)s=this.getPinnedAndRecentCommands(i);else if(t)s=this.getAllCommands();else{const e=this.getPinnedAndRecentCommands(i);s=e.length?e:this.getAllCommands()}return s}getPinnedAndRecentCommands(e){const t=[],s=this.getPinnedCommandIds(),i=this.getRecentCommandIds(),n=e=>{let t=null;const n=this.app.commands.findCommand(e);return n&&(t={isPinned:s.has(e),isRecent:i.has(e),cmd:n}),t},a=(s,i)=>{this.isFacetedWith(e,s)&&i.forEach((e=>{const s=n(e);s&&t.push(s)}))};a($.Pinned,Array.from(s));const o=this.isFacetedWith(e,$.Pinned),r=Array.from(i).filter((e=>!o||o&&!s.has(e)));return"asc"===this.settings.recentCommandDisplayOrder&&r.reverse(),a($.Recent,r),t}getAllCommands(){const e=this.getPinnedCommandIds(),t=this.getRecentCommandIds();return this.app.commands.listCommands()?.sort(((e,t)=>e.name.localeCompare(t.name))).map((s=>({isPinned:e.has(s.id),isRecent:t.has(s.id),cmd:s})))}getPinnedCommandIds(){const e=this.getEnabledCommandPalettePluginInstance()?.options?.pinned;return new Set(e??[])}getRecentCommandIds(){return new Set(ve.recentlyUsedCommandIds)}createSuggestion(e,t){const{cmd:s,isPinned:i,isRecent:n}=e,a={type:r.CommandList,item:s,isPinned:i,isRecent:n,match:t};return this.applyMatchPriorityPreferences(a)}getEnabledCommandPalettePluginInstance(){return ve.getEnabledCommandPalettePluginInstance(this.app)}static getEnabledCommandPalettePluginInstance(e){return v(e,"command-palette")}}class we extends he{inputInfo;getCommandString(e){const{settings:t}=this;return e?.useActiveEditorAsSource?t.relatedItemsListActiveEditorCommand:t.relatedItemsListCommand}validateCommand(e,s,i,n,a){const o=e.parsedCommand(t.RelatedItemsList),r=this.getSourceInfo(n,a,0===s,e.sessionOpts);return r&&(e.mode=t.RelatedItemsList,o.source=r,o.index=s,o.parsedInput=i,o.isValidated=!0),o}getSuggestions(e){const s=[];if(e){this.inputInfo=e;const i=me.create(e.parsedInputQuery.query),a=e.parsedCommand(t.RelatedItemsList);this.getItems(a.source,e).forEach((t=>{const n=this.searchAndCreateSuggestion(e,i,t);n&&s.push(n)})),i.hasSearchTerm&&n.sortSearchResults(s)}return s}renderSuggestion(e,t){let s=!1;if(e){const{file:i,matchType:n,match:a,item:o}=e,r=new Map([[d.Backlink,"links-coming-in"],[d.DiskLocation,"folder-tree"],[d.OutgoingLink,"links-going-out"]]);t.setAttribute("data-relation-type",o.relationType),this.renderAsFileInfoPanel(t,["qsp-suggestion-related"],e.preferredTitle,i,n,a);const l=this.renderOptionalIndicators(t,e);e.item.count&&this.renderIndicator(l,[],null,`${e.item.count}`),this.renderIndicator(l,["qsp-related-indicator"],r.get(o.relationType)),s=!0}return s}onChooseSuggestion(e,t){let s=!1;if(e){const{file:i}=e;this.navigateToLeafOrOpenFile(t,i,`Unable to open related file ${i.path}`),s=!0}return s}getPreferredTitle(e,t){let s=null;const{file:i,unresolvedText:n}=e;if(i){if("H1"===t)s=this.getFirstH1(i)?.heading??null;else if("FrontMatter"===t){const e=this.app.metadataCache.getFileCache(i)?.frontmatter;s=he.getFrontmatterProperty(e,this.settings.frontmatterTitleProperty)}}else{!!n?.length&&(s=n)}return s}searchAndCreateSuggestion(e,t,s){const{file:i,unresolvedText:n}=s;let a={matchType:l.None,match:null};const o=null===i&&n?.length,{currentWorkspaceEnvList:r}=e,{settings:d,app:{metadataCache:c}}=this,h=this.getPreferredTitle(s,d.preferredSourceForTitle);return t.hasSearchTerm&&(a=t.searchWithFallback(h,i),a.matchType===l.None)?null:o?ge.createUnresolvedSuggestion(h,a,d,c):this.createSuggestion(r,s,a,h)}getItems(e,t){const s=[],{metadataCache:i}=this.app,{file:n,suggestion:a}=e,o=new Set(this.settings.enabledRelatedItems),r=this.getActiveFacetIds(t),l=e=>o.has(e)&&this.isFacetedWith(r,e);if(l(d.Backlink)){let e=n?.path,t=i.resolvedLinks;p(a)&&(e=a.linktext,t=i.unresolvedLinks),this.addBacklinks(e,t,s)}return l(d.DiskLocation)&&this.addRelatedDiskFiles(n,s),l(d.OutgoingLink)&&this.addOutgoingLinks(n,s),s}addRelatedDiskFiles(e,t){const{excludeRelatedFolders:s,excludeOpenRelatedFiles:i}=this.settings;if(e){const n=E(s);let a=[...e.parent.children];for(;a.length>0;){const s=a.pop();if(k(s)){s===e||i&&!!this.findMatchingLeaf(s).leaf||t.push({file:s,relationType:d.DiskLocation})}else n(s.path)||(a=a.concat(s.children))}}}addOutgoingLinks(e,t){if(e){const s=new Map,i=new Map,{metadataCache:n}=this.app,a=n.getFileCache(e).links??[],o=e=>!!e&&!!(e.count+=1);a.forEach((a=>{const r=a.link,l=n.getFirstLinkpathDest(r,e.path);let c;l?o(i.get(l))||l===e||(c={file:l,relationType:d.OutgoingLink,count:1},i.set(l,c),t.push(c)):o(s.get(r))||(c={file:null,relationType:d.OutgoingLink,unresolvedText:r,count:1},s.set(r,c),t.push(c))}))}}addBacklinks(e,t,s){for(const[i,n]of Object.entries(t))if(i!==e&&Object.prototype.hasOwnProperty.call(n,e)){const t=n[e],a=this.getTFileByPath(i);a&&s.push({count:t,file:a,relationType:d.Backlink})}}reset(){this.inputInfo=null}getSourceInfo(e,s,i,n){const a=this.inputInfo;let o=null,r=t.Standard;a&&(o=a.parsedCommand().source,r=a.mode);const l=r===t.RelatedItemsList&&!!o,d=this.getEditorInfo(s),c=this.getSuggestionInfo(e);!c.isValidSource&&p(e)&&(c.isValidSource=!0);let h=null;return l?h=o:c.isValidSource&&!n.useActiveEditorAsSource?h=c:d.isValidSource&&i&&(h=d),h}createSuggestion(e,t,s,i){let n={item:t,file:t?.file,type:r.RelatedItemsList,preferredTitle:i,...s};return n=he.updateWorkspaceEnvListStatus(e,n),this.applyMatchPriorityPreferences(n)}}class Ce extends he{mobileVaultChooserMarker={type:r.VaultList,match:null,item:null,pathSegments:null};getCommandString(e){return this.settings?.vaultListCommand}validateCommand(e,s,i,n,a){e.mode=t.VaultList;const o=e.parsedCommand(t.VaultList);return o.index=s,o.parsedInput=i,o.isValidated=!0,o}getSuggestions(e){const t=[];if(e){const{query:s,hasSearchTerm:i}=e.parsedInputQuery,a=me.create(s);this.getItems().forEach((e=>{let s=!0;if(i){const t=a.searchWithFallback(null,e.pathSegments);Object.assign(e,t),s=!!t.match}s&&t.push(e)})),i&&n.sortSearchResults(t)}return t}renderSuggestion(e,t){let s=!1;return e&&(this.addClassesToSuggestionContainer(t,["qsp-suggestion-vault"]),s=!0,n.Platform.isDesktop?this.renderVaultSuggestion(e,t):e===this.mobileVaultChooserMarker&&this.renderMobileHintSuggestion(t)),s}renderMobileHintSuggestion(e){this.renderContent(e,"Show mobile vault chooser",null)}renderVaultSuggestion(e,t){const{pathSegments:s,matchType:i}=e;let{match:a}=e,o=null;i===l.Basename&&(o=a,a=null);const r=this.renderContent(t,s.basename,o).createDiv({cls:["suggestion-note","qsp-note"]}),d=r.createSpan({cls:["qsp-path-indicator"]}),c=r.createSpan({cls:"qsp-path"});n.setIcon(d,"folder"),n.renderResults(c,s.path,a)}onChooseSuggestion(e,t){let s=!1;return e&&(n.Platform.isDesktop?(this.openVaultOnDesktop(e.pathSegments?.path),s=!0):e===this.mobileVaultChooserMarker&&(this.app.openVaultChooser(),s=!0)),s}getItems(){const e=[];if(n.Platform.isDesktop)try{const t=this.getVaultListDataOnDesktop();for(const[s,{path:i,open:n}]of Object.entries(t)){const t=T(i),a={type:r.VaultList,match:null,item:s,isOpen:!!n,pathSegments:{basename:t,path:i}};e.push(a)}}catch(e){console.log("Switcher++: error parsing vault data. ",e)}else e.push(this.mobileVaultChooserMarker);return e.sort(((e,t)=>e.pathSegments.basename.localeCompare(t.pathSegments.basename)))}getIpcRenderer(){if(!n.Platform.isDesktop)return null;try{return window.require("electron").ipcRenderer}catch{return null}}openVaultOnDesktop(e){const t=this.getIpcRenderer();if(t)try{t.sendSync("vault-open",e,!1)}catch(t){console.log(`Switcher++: error opening vault with path: ${e} `,t)}}getVaultListDataOnDesktop(){let e=null;const t=this.getIpcRenderer();if(t)try{e=t.sendSync("vault-list")}catch(e){console.log("Switcher++: error retrieving list of available vaults. ",e)}return e}}class Le{app;config;static instance;instanceCache=new Map;modeToHandlerClass=new Map;suggestionTypeToMode=new Map;cmdStrToMode=new Map;sourcedHandlerModes=new Set;constructor(e,t,s){this.app=e,this.config=t;for(const e of s)e.handlerClass&&(this.modeToHandlerClass.set(e.mode,e.handlerClass),this.mapSuggestionTypesToMode(e),this.mapCommandStrToMode(e),this.registerSourcedHandler(e))}static initialize(e,t,s){this.instance?console.warn("Switcher++: HandlerRegistry already initialized."):this.instance=new Le(e,t,s)}static reset(){this.instance=null}static getInstance(){return this.instance??null}getHandler(e){let t=null;const s=this.resolveMode(e);if(s)if(this.instanceCache.has(s))t=this.instanceCache.get(s)??null;else{const e=this.modeToHandlerClass.get(s);if(e){const i=new e(this.app,this.config);this.instanceCache.set(s,i),t=i}}return t}resetSourcedHandlers(e){const t=new Set(e);for(const e of this.sourcedHandlerModes){const s=this.instanceCache.get(e);s&&!t.has(s)&&s.reset()}}mapSuggestionTypesToMode(e){e.ownSuggestionTypes?.forEach((t=>{this.suggestionTypeToMode.set(t,e.mode)}))}mapCommandStrToMode(e){const t=e.parserCommand?.getCommandStr();t?.length&&this.cmdStrToMode.set(t,e.mode)}registerSourcedHandler(e){"sourced"===e.parserCommand?.type&&this.sourcedHandlerModes.add(e.mode)}resolveMode(e){let s;return"number"==typeof e&&Object.values(t).includes(e)?s=e:c(e,"type")?s=this.suggestionTypeToMode.get(e.type):"string"==typeof e&&(s=this.cmdStrToMode.get(e)),s}}class Ie{commandMap=new Map;escapeCmdChar;handlerRegistry;constructor(e,t,s){this.handlerRegistry=e,this.escapeCmdChar=t.escapeCmdChar,this.commandMap=this.buildCommandMap(s)}parseInputForMode(e,s,i){const{cleanInput:n,resolvedCommands:a}=this.parse(e.inputText);e.cleanInput=n;this.findFirstValidCommand(a,e,s,i)||(this.handlerRegistry.resetSourcedHandlers(),e.mode=t.Standard)}parse(e){let t="";const s=[],i=this.escapeCmdChar.length;let n=0;for(;n0){const i=e[0];t.has(i)||t.set(i,[]),t.get(i)?.push({cmdDef:s,cmdStr:e})}}for(const e of t.values())e.sort(((e,t)=>t.cmdStr.length-e.cmdStr.length));return t}findCommandMatch(e,t){const s=this.commandMap.get(e[t]);if(!s)return null;for(const i of s)if(e.startsWith(i.cmdStr,t))return i;return null}resolveCommandPrecedence(e,t){const s=[];let i;for(const n of e){const e=n.indexInCleanInput+n.cmdStr.length,a=t.substring(e),o={cmdDef:n.cmdDef,cmdStr:n.cmdStr,indexInCleanInput:n.indexInCleanInput,filterText:a},r=n.cmdDef.parserCommand.type;"prefix"!==r||0!==n.indexInCleanInput||i?"sourced"===r&&s.push(o):i=o}return s.sort(((e,t)=>e.indexInCleanInput-t.indexInCleanInput)),i?[...s,i]:s}findFirstValidCommand(e,t,s,i){for(const n of e){const e=this.handlerRegistry.getHandler(n.cmdDef.mode);if(!e)continue;t.sessionOpts.useActiveEditorAsSource=n.cmdDef.parserCommand.useActiveEditorAsSource;if(e.validateCommand(t,n.indexInCleanInput,n.filterText,s,i).isValidated){const t="sourced"===n.cmdDef.parserCommand.type?[e]:[];return this.handlerRegistry.resetSourcedHandlers(t),!0}}return!1}}const Te={};class Ee{app;settings;exKeymap;_inputInfo;get inputInfo(){return this._inputInfo}get previousInputHistory(){return Te}_handlerRegistry;get handlerRegistry(){return this._handlerRegistry}_inputParser;get inputParser(){return this._inputParser}debouncedGetSuggestions;workspaceEnvList=null;sessionOpts={};noResultActionModes=[t.HeadingsList,t.WorkspaceList];constructor(e,s,i){this.app=e,this.settings=s,this.exKeymap=i;const a=(o=s,[{commandId:"switcher-plus:open",commandName:"Open in Standard Mode",mode:t.Standard,iconId:"lucide-file-search",handlerClass:ge,ownSuggestionTypes:[r.Alias,r.File],parserCommand:{type:"none",getCommandStr:()=>""}},{commandId:"switcher-plus:open-editors",commandName:"Open in Editor Mode",mode:t.EditorList,iconId:"lucide-file-edit",handlerClass:pe,ownSuggestionTypes:[r.EditorList],parserCommand:{type:"prefix",getCommandStr:()=>o.editorListCommand}},{commandId:"switcher-plus:open-symbols",commandName:"Open Symbols for selected suggestion or editor",mode:t.SymbolList,iconId:"lucide-dollar-sign",handlerClass:Se,ownSuggestionTypes:[r.SymbolList],parserCommand:{type:"sourced",getCommandStr:()=>o.symbolListCommand}},{commandId:"switcher-plus:open-symbols-active",commandName:"Open Symbols for the active editor",mode:t.SymbolList,iconId:"lucide-dollar-sign",handlerClass:Se,parserCommand:{type:"prefix",getCommandStr:()=>o.symbolListActiveEditorCommand,useActiveEditorAsSource:!0}},{commandId:"switcher-plus:open-workspaces",commandName:"Open in Workspaces Mode",mode:t.WorkspaceList,iconId:"lucide-album",handlerClass:ue,ownSuggestionTypes:[r.WorkspaceList],parserCommand:{type:"prefix",getCommandStr:()=>o.workspaceListCommand}},{commandId:"switcher-plus:open-headings",commandName:"Open in Headings Mode",mode:t.HeadingsList,iconId:"lucide-file-search",handlerClass:ke,ownSuggestionTypes:[r.HeadingsList],parserCommand:{type:"prefix",getCommandStr:()=>o.headingsListCommand}},{commandId:"switcher-plus:open-starred",commandName:"Open in Bookmarks Mode",mode:t.BookmarksList,iconId:"lucide-bookmark",handlerClass:fe,ownSuggestionTypes:[r.Bookmark],parserCommand:{type:"prefix",getCommandStr:()=>o.bookmarksListCommand}},{commandId:"switcher-plus:open-commands",commandName:"Open in Commands Mode",mode:t.CommandList,iconId:"run-command",handlerClass:ve,ownSuggestionTypes:[r.CommandList],parserCommand:{type:"prefix",getCommandStr:()=>o.commandListCommand}},{commandId:"switcher-plus:open-related-items",commandName:"Open Related Items for selected suggestion or editor",mode:t.RelatedItemsList,iconId:"lucide-file-plus-2",handlerClass:we,ownSuggestionTypes:[r.RelatedItemsList],parserCommand:{type:"sourced",getCommandStr:()=>o.relatedItemsListCommand}},{commandId:"switcher-plus:open-related-items-active",commandName:"Open Related Items for the active editor",mode:t.RelatedItemsList,iconId:"lucide-file-plus-2",handlerClass:we,parserCommand:{type:"prefix",getCommandStr:()=>o.relatedItemsListActiveEditorCommand,useActiveEditorAsSource:!0}},{commandId:"switcher-plus:open-vaults",commandName:"Open in Vaults Mode",mode:t.VaultList,iconId:"vault",handlerClass:Ce,ownSuggestionTypes:[r.VaultList],parserCommand:{type:"prefix",getCommandStr:()=>o.vaultListCommand}}]);var o;Le.getInstance()||Le.initialize(e,s,a),this._handlerRegistry=Le.getInstance(),this._inputParser=new Ie(this._handlerRegistry,s,a),this.debouncedGetSuggestions=n.debounce(this.getSuggestions.bind(this),s.headingsSearchDebounceMilli,!0),this.reset()}onOpen(){const{app:e,exKeymap:t,handlerRegistry:s,settings:i}=this;t.isOpen=!0,i.quickFilters?.shouldResetActiveFacets&&Object.values(i.quickFilters.facetList).forEach((e=>e.isActive=!1)),this.workspaceEnvList=this.buildWorkspaceEnvList(e.workspace,e.vault,e.viewRegistry,s,i)}onClose(){this.exKeymap.isOpen=!1,D.unload()}setSessionOpenMode(e,t){this.reset(),e?.setSuggestions([]),this.sessionOpts=Object.assign({},t)}setInitialInputForSession(e){const{mode:s}=this.sessionOpts;if(!s)return;this.sessionOpts.mode=null;const i=this.previousInputHistory[s]?.parsedCommand(s)?.parsedInput,n=this.handlerRegistry.getHandler(s),a=s!==t.Standard?n.getCommandString(this.sessionOpts):"";if((s===t.CommandList&&this.settings.preserveCommandPaletteLastInput||s!==t.CommandList&&this.settings.preserveQuickSwitcherLastInput)&&void 0!==i){e.value=a+i;const t=a?.length??0;e.setSelectionRange(t,e.value.length)}else a&&(e.value=a)}updateSuggestions(e,s,i){const{exKeymap:n,settings:a,sessionOpts:o}=this;let r=!1;this.debouncedGetSuggestions.cancel();const l=he.getActiveLeaf(this.app.workspace),d=Ee.getActiveSuggestion(s),c=this.determineRunMode(e,d,l,o);this._inputInfo=c;const{mode:h}=c;return this.previousInputHistory[h]=c,this.updatedKeymapForMode(c,s,i,n,a,l),this.toggleMobileCreateFileButton(i,h,a),h!==t.Standard&&(h===t.HeadingsList&&c.parsedCommand().parsedInput?.length?this.debouncedGetSuggestions(c,s,i):this.getSuggestions(c,s,i),r=!0),r}toggleMobileCreateFileButton(e,s,i){if(!n.Platform.isMobile)return;const a=t[s];e.allowCreateNewFile=i.allowCreateNewFileInModeNames.includes(a),e.allowCreateNewFile||e.createButtonEl?.detach()}updatedKeymapForMode(e,t,s,i,n,a){const{mode:o}=e,r=this.handlerRegistry.getHandler(o),l=r?.getAvailableFacets(e)??[],d={mode:o,activeLeaf:a,facets:{facetList:l,facetSettings:n.quickFilters,onToggleFacet:((o,l)=>{if(l){const e=o.some((e=>!0===e.isActive));r.activateFacet(o,!e)}else r.activateFacet(o,!o[0].isActive);return this.updatedKeymapForMode(e,t,s,i,n,a),this.getSuggestions(e,t,s),!1}).bind(this)}};i.updateKeymapForMode(d)}renderSuggestion(e,s){const{handlerRegistry:i,inputInfo:n,settings:{overrideStandardModeRendering:a}}=this,{mode:o}=n,l=o===t.HeadingsList;let d=!1;const c=new Set([r.Unresolved]);if(null===e){if(l){const e=i.getHandler(o),t=n.parsedCommand(o)?.parsedInput;e.renderFileCreationSuggestion(s,t),d=!0}}else if(!c.has(e.type)&&(a||l||f(e))){const t=i.getHandler(e);t&&(d=t.renderSuggestion(e,s))}return d}onChooseSuggestion(e,s){const{handlerRegistry:i,inputInfo:n,settings:{overrideStandardModeBehaviors:a}}=this,{mode:o}=n,l=o===t.HeadingsList;let d=!1;const c=new Set([r.Unresolved]);if(null===e){if(this.noResultActionModes.includes(o)){const e=i.getHandler(o);d=!!e?.onNoResultsCreateAction(n,s)}}else if(!c.has(e.type)&&(a||l||f(e))){const t=i.getHandler(e);t&&(d=t.onChooseSuggestion(e,s))}return d}determineRunMode(e,s,i,n){const a=e??"",o=new ce(a,t.Standard,n);return 0===a.length?(this.reset(),o):(o.currentWorkspaceEnvList=this.workspaceEnvList,this.inputParser.parseInputForMode(o,s,i),o)}getSuggestions(e,t,s){t.setSuggestions([]);const{mode:i}=e,n=this.handlerRegistry.getHandler(i).getSuggestions(e),a=n=>{n?.length?(t.setSuggestions(n),Ee.setActiveSuggestion(i,t),this.exKeymap?.renderQuickOpenFlairIcons(t.suggestions,this.settings)):this.noResultActionModes.includes(i)&&e.parsedCommand(i).parsedInput?s.onNoSuggestion():t.setSuggestions(null)};Array.isArray(n)?a(n):n.then((e=>{a(e)}),(e=>{console.log("Switcher++: error retrieving suggestions as Promise. ",e)}))}static setActiveSuggestion(e,s){if(e===t.SymbolList){const e=s.values.filter((e=>h(e))).findIndex((e=>e.item.isSelected));-1!==e&&(s.setSelectedItem(e,null),s.suggestions[s.selectedItem].scrollIntoView(!1))}}static getActiveSuggestion(e){let t=null;return e?.values&&(t=e.values[e.selectedItem]),t}reset(){this._inputInfo=new ce,this.sessionOpts={},this.handlerRegistry.resetSourcedHandlers()}buildWorkspaceEnvList(e,s,i,n,a){const o=n.getHandler(t.EditorList).getItems(),r=o.reduce(((e,t)=>{const s=x(t);return s&&e.add(s),e}),new Set),{fileBookmarks:l,nonFileBookmarks:d}=n.getHandler(t.BookmarksList).getItems(null),c=this.getAttachmentFileExtensions(i,a.fileExtAllowList),h=r.size+a.maxRecentFileSuggestionsOnInit,m=this.getRecentFiles(e,s,r,h);return{openWorkspaceLeaves:new Set(o),openWorkspaceFiles:r,fileBookmarks:l,nonFileBookmarks:d,attachmentFileExtensions:c,mostRecentFiles:m}}getAttachmentFileExtensions(e,t){const s=new Set;try{const i=new Set(["md","canvas",...t]);Object.keys(e.typeByExtension).reduce(((e,t)=>(i.has(t)||e.add(t),e)),s)}catch(e){console.log("Switcher++: error retrieving attachment list from ViewRegistry",e)}return s}getRecentFiles(e,t,s,i=75){s=s??new Set;const n=new Set;if(i>0){const a=e.getRecentFiles({showMarkdown:!0,showCanvas:!0,showNonImageAttachments:!0,showImages:!0,maxCount:i});a?.forEach((e=>{const i=t.getAbstractFileByPath(e);k(i)&&!s.has(i)&&n.add(i)}))}return n}inputTextForStandardMode(e){const{mode:s,cleanInput:i}=this.inputInfo;let n=e;return s===t.Standard&&i?.length&&(n=i),n}inputTextForFulltextSearch(){const{inputInfo:e}=this,s=e.mode;let i=null,n=e.cleanInput;if(s!==t.Standard){const t=e.parsedCommand();n=t.parsedInput,I().includes(s)&&(i=t.source?.file)}return{mode:s,parsedInput:n,file:i}}addPropertiesToStandardSuggestions(e,s){if(!e||!s.overrideStandardModeBehaviors&&!s.overrideStandardModeRendering)return;const{handlerRegistry:i,inputInfo:{currentWorkspaceEnvList:n}}=this;for(let s=0;s{console.log(`Switcher++: error opening file (${i?.path}) in background. `,e)}))}}const Fe={Enter:"↵",Backspace:"⌫",ArrowLeft:"←",ArrowUp:"↑",ArrowDown:"↓",ArrowRight:"→",Tab:"↹"},Ae={...Fe,Mod:"Ctrl",Ctrl:"Ctrl",Meta:"Win",Alt:"Alt",Shift:"Shift"},xe={...Fe,Mod:"⌘",Ctrl:"⌃",Meta:"⌘",Alt:"⌥",Shift:"⇧"},Oe=[t.EditorList,t.HeadingsList,t.RelatedItemsList,t.BookmarksList,t.SymbolList],Pe=[t.CommandList,t.VaultList,t.WorkspaceList,...Oe];class Me{app;scope;chooser;modal;config;standardKeysInfo=[];customKeysInfo=[];savedStandardKeysInfo=[];_isOpen;customInstructionEls=new Map;standardInstructionsEl;facetKeysInfo=[];insertIntoEditorKeysInfo=[];get isOpen(){return this._isOpen}set isOpen(e){this._isOpen=e}static get modKey(){return n.Platform.isMacOS?"Meta":"Ctrl"}static get keyDisplayStr(){return n.Platform.isMacOS?xe:Ae}get exModeHandler(){return this.modal?.exMode}constructor(e,t,s,i,n){this.app=e,this.scope=t,this.chooser=s,this.modal=i,this.config=n,this.initKeysInfo(n,t),this.renderModeTriggerInstructions(i.modalEl,n),this.standardInstructionsEl=i.modalEl.querySelector(".prompt-instructions")}initKeysInfo(e,t){this.standardKeysInfo.push(),this.addCustomKeymaps(this.config),this.removeDefaultTabKeyBinding(t,e),this.registerNavigationBindings(t,e.navigationKeys),this.registerEditorTabBindings(t),this.registerCloseWhenEmptyBindings(t,e),this.registerQuickOpenBindings(t,e),this.registerFulltextSearchBindings(t,e),this.registerOpenInBackgroundBindings(t,e)}removeDefaultTabKeyBinding(e,t){if(t?.removeDefaultTabBinding){const t=e.keys.find((({modifiers:e,key:t})=>null===e&&"Tab"===t));e.unregister(t)}}registerNavigationBindings(e,t){const s=(t,s)=>{t.forEach((({modifiers:t,key:i})=>{e.register(t,i,((e,t)=>(this.navigateItems(e,s),!1)))}))};s(t?.nextKeys??[],!0),s(t?.prevKeys??[],!1)}registerFacetBinding(e,s){const{mode:i,facets:n}=s;if(n?.facetList?.length){const{facetList:s,facetSettings:a,onToggleFacet:o}=n,{keyList:r,modifiers:l,resetKey:d,resetModifiers:c}=a;let h=0;const m=(t,s,i,n)=>e.register(t,s,(()=>o(i,n)));for(let e=0;e{e.register(t[0],t[1],this.useSelectedItem.bind(this))}))}registerCloseWhenEmptyBindings(e,t){const s=t.closeWhenEmptyKeys;s?.forEach((({modifiers:t,key:s})=>{e.register(t,s,this.closeModalIfEmpty.bind(this))}))}registerQuickOpenBindings(e,t){const{isEnabled:s,modifiers:i,keyList:n}=t.quickOpen;s&&n?.forEach((t=>{e.register(i,t,this.quickOpenByIndex.bind(this))}))}quickOpenByIndex(e,t){const s=this.config.quickOpen.keyList.indexOf(t.vkey);if(-1!==s){const{chooser:i}=this;i.values.length>s&&(i.setSelectedItem(s,e),this.useSelectedItem(e,t))}return!1}registerFulltextSearchBindings(e,t){const{isEnabled:s,searchKeys:i}=t.fulltextSearch;if(s){C(this.app)&&e.register(i.modifiers,i.key,this.LaunchSystemGlobalSearch.bind(this))}}LaunchSystemGlobalSearch(e,t){const{parsedInput:s,file:i}=this.modal.exMode.inputTextForFulltextSearch();let n="";return i&&(n=`path:"${i.path}" `),this.modal.close(),C(this.app)?.openGlobalSearch(`${n}${s}`),!1}registerOpenInBackgroundBindings(e,t){const{openInBackground:{isEnabled:s,openKeys:i}}=t;if(s){const t={tab:"open in background tab",vertical:"open in background to the right",horizontal:"open in background below",window:"open in background window"};i?.filter((e=>e.hotkey)).forEach((({openType:s,hotkey:i})=>{e.register(i.modifiers,i.key,(()=>this.openInBackground(this.chooser,s))),this.createCustomKeymap(t[s],Pe,i,null,!0,!0)}))}}openInBackground(e,t){let s,i="vertical";"vertical"===t||"horizontal"===t?(s="split",i=t):s=t;const n=e?.values?.[e.selectedItem];return this.exModeHandler.openSuggestionInBackground(n,s,i),!1}renderQuickOpenFlairIcons(e,t){const{isEnabled:s,modifiers:i,keyList:n}=t.quickOpen;if(s)for(let t=0;te.purpose===o.purpose)),!a){const{modifiers:e,key:t,purpose:s}=o;a={isInstructionOnly:!1,command:Me.commandDisplayStr(e,t),modifiers:e,key:t,purpose:s},i.push(a)}a.eventListener=()=>{const{modal:e,chooser:t}=this;e.close();const i=t.values?.[t.selectedItem];return this.insertIntoEditorAsLink(i,s,n),!1},a.modes=[e]}}return a}updateKeymapForMode(e){const{mode:s,activeLeaf:i}=e,{modal:n,scope:a,customKeysInfo:o,facetKeysInfo:r,standardKeysInfo:l,savedStandardKeysInfo:d,config:{insertLinkInEditor:c,showModeTriggerInstructions:h}}=this;this.updateInsertIntoEditorCommand(s,i,o,c);const m=o.filter((e=>!e.isInstructionOnly));this.unregisterKeys(a,m),this.unregisterKeys(a,r),r.length=0;const u=m.filter((e=>e.modes?.includes(s)));s===t.Standard?this.updateKeymapForStandardMode(a,u,d):this.updateKeymapForCustomModes(a,u,l,e,n),this.showModeTriggerInstructions(n.modalEl,h)}updateKeymapForStandardMode(e,t,s){const i=s.map((([e,t])=>({eventListener:t.func,...e})));this.registerKeys(e,i),s.length=0,this.registerKeys(e,t),this.toggleStandardInstructions(!0)}updateKeymapForCustomModes(e,t,s,i,n){const{savedStandardKeysInfo:a,customKeysInfo:o,facetKeysInfo:r}=this,l=this.unregisterKeys(e,s);l.length&&a.push(...l),this.registerKeys(e,t),this.registerFacetBinding(e,i),this.showCustomInstructions(n,i,o,r)}registerKeys(e,t){t.forEach((({modifiers:t,key:s,eventListener:i})=>{e.register(t,s,i)}))}unregisterKeys(e,t){const s=[],i={};t.map((e=>{const{key:t,modifiers:s}=e,n=Me.modifiersToKeymapInfoStr(s),a=i[t];a?a[n]=e:i[t]={[n]:e}}));let n=e.keys.length;for(;n--;){const t=e.keys[n],a=i[t.key],o=a?.[t.modifiers];o&&(e.unregister(t),s.push([o,t]))}return s}detachCustomInstructionEls(){this.customInstructionEls.forEach((e=>{e.detach()}))}toggleStandardInstructions(e){const{standardInstructionsEl:t}=this;let s="none";e&&(s="",this.detachCustomInstructionEls()),t&&(t.style.display=s)}showCustomInstructions(e,t,s,i){const{mode:n,facets:a}=t,{modalEl:o}=e,r=s.filter((e=>e.modes?.includes(n)));this.toggleStandardInstructions(!1),this.renderCustomInstructions(o,r),this.renderFacetInstructions(o,a?.facetSettings,i)}renderFacetInstructions(e,t,s){if(s?.length&&t.shouldShowFacetInstructions){const i=this.getCustomInstructionsEl("facets",e);i.empty(),e.appendChild(i);const n=`filters | ${Me.commandDisplayStr(t.modifiers)}`;this.createPromptInstructionCommandEl(i,n),s.forEach((e=>{const{facet:s,command:n,purpose:a}=e;let o,r,l=null;s?(r=n,o=s.modifiers,s.isActive&&(l=["qsp-filter-active"])):(r=t.resetKey,o=t.resetModifiers);const d=o?`(${Me.commandDisplayStr(o)}) ${r}`:`${r}`;this.createPromptInstructionCommandEl(i,d,a,[],l)}))}}renderCustomInstructions(e,t){const s=this.getCustomInstructionsEl("custom",e);s.empty(),e.appendChild(s),t.forEach((e=>{this.createPromptInstructionCommandEl(s,e.command,e.purpose)}))}showModeTriggerInstructions(e,t){if(t){const t=this.customInstructionEls.get("modes");t&&e.appendChild(t)}}renderModeTriggerInstructions(e,t){const s=new Map([[t.headingsListCommand,"heading list"],[t.editorListCommand,"editor list"],[t.bookmarksListCommand,"bookmark list"],[t.commandListCommand,"command list"],[t.workspaceListCommand,"workspace list"],[t.vaultListCommand,"vault list"],[t.symbolListActiveEditorCommand,"symbol list (active editor)"],[t.symbolListCommand,"symbol list (embedded)"],[t.relatedItemsListActiveEditorCommand,"related items (active editor)"],[t.relatedItemsListCommand,"related items (embedded)"]]),i=this.getCustomInstructionsEl("modes",e);i.detach(),i.empty(),this.createPromptInstructionCommandEl(i,"mode triggers |"),s.forEach(((e,t)=>{this.createPromptInstructionCommandEl(i,t,e)}))}getCustomInstructionsEl(e,t){let s=this.customInstructionEls.get(e);if(!s){const i={custom:["qsp-prompt-instructions"],facets:["qsp-prompt-instructions-facets"],modes:["qsp-prompt-instructions-modes"]};s=this.createPromptInstructionsEl(i[e],t),this.customInstructionEls.set(e,s)}return s}createPromptInstructionsEl(e,t){const s={cls:["prompt-instructions",...e]};return t.createDiv(s)}createPromptInstructionCommandEl(e,t,s,i,n){i=i??[];const a=e.createDiv();return a.createSpan({cls:["prompt-instruction-command",...i],text:t}),s&&(n=n??[],a.createSpan({cls:n,text:s})),a}closeModalIfEmpty(e,t){const{modal:s,config:i}=this;i.shouldCloseModalOnBackspace&&!s?.inputEl.value&&(s.close(),e.preventDefault())}navigateToCommandHotkeySelector(e,t){const{modal:s,chooser:i,app:{setting:n}}=this,a=i.values?.[i.selectedItem];if(a){n.open();const e=n.openTabById("hotkeys");if(e){s.close();const t=a.item.id;e.setQuery(`${t}`)}}return!1}togglePinnedCommand(e,t){const{app:s,config:i,chooser:n}=this,a=n.values?.[n.selectedItem],o=ve.getEnabledCommandPalettePluginInstance(s);if(a&&o){const e=a.item.id,t=n.suggestions[n.selectedItem];let r=o.options?.pinned;if(r){const t=r.indexOf(e);a.isPinned=-1===t,a.isPinned?r.push(e):r.splice(t,1)}else r=[e],o.options.pinned=r;o.saveSettings(o.plugin),t.empty(),new ve(s,i).renderSuggestion(a,t)}return!1}toggleMarkdownContentRendering(e,t){const{app:i,config:n,chooser:a}=this,o=a.values?.[a.selectedItem],r=o.file;let l=null;if(h(o)?l=o.item:m(o)&&(l={type:"symbolInfo",symbol:o.item,symbolType:s.Heading}),l&&r&&n.shouldRenderSymbolAsHTML(l.symbolType)){const e=a.suggestions[a.selectedItem].querySelector(".qsp-title"),t=!e.querySelector(".qsp-rendered-container");e.empty(),Se.renderSymbolContent(i,n,e,l,r,o.match,t)}return!1}openDefaultApp(e,t){const{app:s,config:{openDefaultApp:{excludeFileExtensions:i}},chooser:n}=this,a=n.values?.[n.selectedItem],o=M(a);if(o&&!i.includes(o.extension)){const e=`Switcher++: error opening file (${o.path}) in default app. `;s.openWithDefaultApp(o.path).catch((t=>{console.log(e,t)}))}return!1}saveCurrentAndOpenSelectedWorkspace(){const{app:e,chooser:t,modal:s}=this,i=t?.values?.[t.selectedItem];if(i&&i.item){const t=ue.getEnabledWorkspacesPluginInstance(e);t&&(t.saveWorkspace(t.activeWorkspace),t.loadWorkspace(i.item.id),s.close())}return!1}useSelectedItem(e,t){return this.chooser.useSelectedItem(e),!1}insertIntoEditorAsLink(e,t,s){const{app:{workspace:i,fileManager:a,vault:o}}=this,r=i.getActiveViewOfType(n.MarkdownView),l=r?.leaf===t,d=r?.file;if(l&&d){const t=O(a,o,e,d.path,s);t&&r.editor?.replaceSelection(t)}}navigateItems(e,t){const{isOpen:s,chooser:i}=this;if(s){let s=i.selectedItem;s=t?++s:--s,i.setSelectedItem(s,e)}}static commandDisplayStr(e,t){const{keyDisplayStr:s}=this;let i=null,n=null;return e&&(i=e.map((e=>s[e]?.toLocaleLowerCase())).sort().join(" ")),t&&(n=Object.prototype.hasOwnProperty.call(s,t)?s[t]:t),[i,n].filter((e=>e)).join(" ")}static modifiersToKeymapInfoStr(e){return e?.map((e=>"Mod"===e?this.modKey:e)).sort().join(",")}createCustomKeymap(e,t,s,i,n=!0,a=!1){let o=null;if(s){const{modifiers:r,key:l}=s;o={modes:t,modifiers:r,key:l,eventListener:i,purpose:e,command:Me.commandDisplayStr(r,l),isInstructionOnly:a},n&&this.customKeysInfo.push(o)}return o}addCustomKeymaps(e){const{quickOpen:s}=e,i=s?.keyList;if(i?.length){const e=`${i[0]}~${i[i.length-1]}`;this.createCustomKeymap("open nth item",Pe,{modifiers:s.modifiers,key:e},null,s.isEnabled,!0)}this.createCustomKeymap("open in new tab",Oe,{modifiers:["Mod"],key:"Enter"},null,!0,!0),this.createCustomKeymap("open to the right",Oe,{modifiers:["Mod"],key:"\\"},null,!0,!0),this.createCustomKeymap("open below",Oe,{modifiers:["Mod","Shift"],key:"\\"},null,!0,!0),this.createCustomKeymap("open in new window",Oe,{modifiers:["Mod"],key:"o"},null,!0,!0),this.createCustomKeymap("execute command",[t.CommandList],{modifiers:[],key:"Enter"},null,!0,!0),this.createCustomKeymap("open workspace",[t.WorkspaceList],{modifiers:[],key:"Enter"},null,!0,!0),this.createCustomKeymap("save and switch workspace",[t.WorkspaceList],e.saveWorkspaceAndSwitchKeys,this.saveCurrentAndOpenSelectedWorkspace.bind(this)),this.createCustomKeymap("set hotkey",[t.CommandList],e.navigateToHotkeySelectorKeys,this.navigateToCommandHotkeySelector.bind(this)),this.createCustomKeymap("toggle pinned",[t.CommandList],e.togglePinnedCommandKeys,this.togglePinnedCommand.bind(this));const{renderMarkdownContentInSuggestions:n}=e;this.createCustomKeymap("toggle preview (selected item)",[t.HeadingsList,t.SymbolList],n.toggleContentRenderingKeys,this.toggleMarkdownContentRendering.bind(this),n.isEnabled);const{openDefaultApp:a}=e;this.createCustomKeymap("open default app",Oe,a.openInDefaultAppKeys,this.openDefaultApp.bind(this),a.isEnabled);const{fulltextSearch:o}=e;this.createCustomKeymap("fulltext search",Pe,o.searchKeys,null,o.isEnabled,!0)}}class Re{static coreMobileLauncherButtonEl;static qspMobileLauncherButtonEl;static installMobileLauncherOverride(e,t,s){let i=null;if(!(n.Platform.isMobile&&t.isEnabled&&t.isMobileButtonEnabled)||Re.coreMobileLauncherButtonEl)return null;const a=function(e,t){let s=null;const i=e?.mobileNavbar?.containerEl;return i&&(s=i.querySelector(X.defaults.mobileLauncher.coreLauncherButtonSelector),s||(s=i.querySelector(t.coreLauncherButtonSelector))),s}(e,t);if(a){const e=function(e,t,s){let i=null;if(e&&(i=e.cloneNode(!0),i)){const{iconName:e,coreLauncherButtonIconSelector:a}=t;if(i.addClass("qsp-mobile-launcher-button"),i.addEventListener("click",s),e?.length){const t=i.querySelector(a);t&&n.setIcon(t,e)}}return i}(a,t,s);(function(e,t){let s=!1;if(e&&t){const i=t.style.display;t.style.display="none",e.insertAdjacentElement("beforebegin",t)&&(e.remove(),s=!0),t.style.display=i}return s})(a,e)&&(Re.coreMobileLauncherButtonEl=a,Re.qspMobileLauncherButtonEl=e,i=e)}return i}static removeMobileLauncherOverride(){let e=!1;if(!Re.coreMobileLauncherButtonEl)return e;if(Re.qspMobileLauncherButtonEl?.parentElement){const t=Re.qspMobileLauncherButtonEl,s=Re.coreMobileLauncherButtonEl,i=s.style.display;s.style.display="none",t.insertAdjacentElement("beforebegin",s)&&(t.remove(),Re.qspMobileLauncherButtonEl=null,Re.coreMobileLauncherButtonEl=null,e=!0),s.style.display=i}return e}}class Be{static emptyLeaves=new Map;static layoutChangeEventRef;static installEmptyTabMonitor(e,t){if(!t?.isEnabled)return;const{workspace:s}=e.app;Be.layoutChangeEventRef=s.on("layout-change",(()=>{Be.updateEmptyTabs(s,t)})),e.registerEvent(Be.layoutChangeEventRef),s.onLayoutReady((()=>{Be.updateEmptyTabs(s,t)}))}static removeEmptyTabButtons(e){e.offref(Be.layoutChangeEventRef),Be.layoutChangeEventRef=null;const{emptyLeaves:t}=Be;for(const e of t.keys())t.get(e)?.detach(),t.delete(e)}static updateEmptyTabs(e,t){if(!t.isEnabled)return;const{buttonLabel:s,onclickListener:i}=t;e.iterateAllLeaves((e=>{const{emptyLeaves:t}=Be;if(B(e,"empty")&&!t.has(e)){const{containerEl:n}=e.view,a=function(e,t,s){let i=null;const n=e.querySelector(".empty-state-action-list");return n&&(i=n.createDiv({cls:["empty-state-action","tappable","qsp-empty-state-action-launch"],text:t}),i.addEventListener("click",s),n.firstElementChild!==i&&n.insertAfter(i,n.firstElementChild)),i}(n,s,i);a&&t.set(e,a)}}))}}const He=[{id:"switcher-plus:open",name:"Open in Standard Mode",mode:t.Standard,iconId:"lucide-file-search",ribbonIconEl:null},{id:"switcher-plus:open-editors",name:"Open in Editor Mode",mode:t.EditorList,iconId:"lucide-file-edit",ribbonIconEl:null},{id:"switcher-plus:open-symbols",name:"Open Symbols for selected suggestion or editor",mode:t.SymbolList,iconId:"lucide-dollar-sign",ribbonIconEl:null},{id:"switcher-plus:open-symbols-active",name:"Open Symbols for the active editor",mode:t.SymbolList,iconId:"lucide-dollar-sign",ribbonIconEl:null,sessionOpts:{useActiveEditorAsSource:!0}},{id:"switcher-plus:open-workspaces",name:"Open in Workspaces Mode",mode:t.WorkspaceList,iconId:"lucide-album",ribbonIconEl:null},{id:"switcher-plus:open-headings",name:"Open in Headings Mode",mode:t.HeadingsList,iconId:"lucide-file-search",ribbonIconEl:null},{id:"switcher-plus:open-starred",name:"Open in Bookmarks Mode",mode:t.BookmarksList,iconId:"lucide-bookmark",ribbonIconEl:null},{id:"switcher-plus:open-commands",name:"Open in Commands Mode",mode:t.CommandList,iconId:"run-command",ribbonIconEl:null},{id:"switcher-plus:open-related-items",name:"Open Related Items for selected suggestion or editor",mode:t.RelatedItemsList,iconId:"lucide-file-plus-2",ribbonIconEl:null},{id:"switcher-plus:open-related-items-active",name:"Open Related Items for the active editor",mode:t.RelatedItemsList,iconId:"lucide-file-plus-2",ribbonIconEl:null,sessionOpts:{useActiveEditorAsSource:!0}},{id:"switcher-plus:open-vaults",name:"Open in Vaults Mode",mode:t.VaultList,iconId:"vault",ribbonIconEl:null}];class De extends n.Plugin{options;async onload(){const e=new X(this);await e.updateDataAndLoadSettings(),this.options=e,this.addSettingTab(new de(this.app,this,e)),this.registerRibbonCommandIcons(),this.updateLauncherButtonOverrides(!0),He.forEach((({id:e,name:t,mode:s,iconId:i,sessionOpts:n})=>{this.registerCommand(e,t,s,i,n)}))}onunload(){this.updateLauncherButtonOverrides(!1)}registerCommand(e,t,s,i,n){this.addCommand({id:e,name:t,icon:i,checkCallback:e=>this.createModalAndOpen(s,e,n)})}registerRibbonCommandIcons(){He.forEach((e=>{e.ribbonIconEl?.remove(),e.ribbonIconEl=null}));const e=He.reduce(((e,t)=>(e[t.mode]=t,e)),{});this.options.enabledRibbonCommands.forEach((s=>{const i=e[t[s]];i&&(i.ribbonIconEl=this.addRibbonIcon(i.iconId,i.name,(()=>{this.createModalAndOpen(i.mode,!1)})))}))}createModalAndOpen(e,t,s){if(!t){const t=function(e,t){const s=w(e)?.QuickSwitcherModal;return s?new class extends s{plugin;_exMode;get exMode(){return this._exMode}constructor(e,t){super(e,t.options.builtInSystemOptions),this.plugin=t;const{options:s}=t;s.shouldShowAlias=this.shouldShowAlias;const i=new Me(e,this.scope,this.chooser,this,s);this._exMode=new Ee(e,s,i)}openInMode(e){this.exMode.setSessionOpenMode(this.chooser,e),super.open()}onOpen(){this.exMode.onOpen(),super.onOpen()}onClose(){super.onClose(),this.exMode.onClose()}updateSuggestions(){const{exMode:e,inputEl:t,chooser:s}=this;e.setInitialInputForSession(t),e.updateSuggestions(t.value,s,this)||super.updateSuggestions()}getSuggestions(e){const{exMode:t,plugin:s}=this,i=t.inputTextForStandardMode(e),n=super.getSuggestions(i);return t.addPropertiesToStandardSuggestions(n,s.options),n}onChooseSuggestion(e,t){this.exMode.onChooseSuggestion(e,t)||super.onChooseSuggestion(e,t)}renderSuggestion(e,t){this.exMode.renderSuggestion(e,t)||super.renderSuggestion(e,t)}}(e,t):(console.log("Switcher++: unable to extend system switcher. Plugin UI will not be loaded. Use the builtin switcher instead."),null)}(this.app,this);if(!t)return!1;const i=Object.assign({mode:e},s);t.openInMode(i)}return!0}updateLauncherButtonOverrides(e){const{app:s,options:{mobileLauncher:i}}=this;if(Re.removeMobileLauncherOverride(),Be.removeEmptyTabButtons(s.workspace),e){const e=i.modeString,n=t[e],a=()=>{n&&this.createModalAndOpen(n,!1)};Re.installMobileLauncherOverride(s,i,a);const o=He.find((e=>e.mode===n)),r="Switcher++: "+(o?.name??"");Be.installEmptyTabMonitor(this,{isEnabled:i.isEnabled&&i.isEmptyTabButtonEnabled,buttonLabel:r,onclickListener:a})}}}module.exports=De; +"use strict";var e,t,s,i,n,a=require("obsidian");!function(e){e[e.None=0]="None",e[e.Full=1]="Full",e[e.FolderOnly=2]="FolderOnly",e[e.FolderWithFilename=3]="FolderWithFilename",e[e.FolderPathFilenameOptional=4]="FolderPathFilenameOptional"}(e||(e={})),function(e){e[e.Standard=1]="Standard",e[e.EditorList=2]="EditorList",e[e.SymbolList=4]="SymbolList",e[e.WorkspaceList=8]="WorkspaceList",e[e.HeadingsList=16]="HeadingsList",e[e.BookmarksList=32]="BookmarksList",e[e.CommandList=64]="CommandList",e[e.RelatedItemsList=128]="RelatedItemsList",e[e.VaultList=256]="VaultList"}(t||(t={})),function(e){e[e.Link=1]="Link",e[e.Embed=2]="Embed",e[e.Tag=4]="Tag",e[e.Heading=8]="Heading",e[e.Callout=16]="Callout",e[e.CanvasNode=32]="CanvasNode",e[e.BaseView=64]="BaseView"}(s||(s={})),function(e){e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Heading=2]="Heading",e[e.Block=4]="Block"}(i||(i={})),function(e){e.Both="both",e.Inline="inline",e.Frontmatter="frontmatter"}(n||(n={}));const o={};o[s.Link]="🔗",o[s.Embed]="!",o[s.Tag]="#",o[s.Heading]="H";const r={};var l,d,c;r[1]="H₁",r[2]="H₂",r[3]="H₃",r[4]="H₄",r[5]="H₅",r[6]="H₆",function(e){e.EditorList="editorList",e.SymbolList="symbolList",e.WorkspaceList="workspaceList",e.HeadingsList="headingsList",e.Bookmark="bookmark",e.CommandList="commandList",e.RelatedItemsList="relatedItemsList",e.VaultList="vaultList",e.File="file",e.Alias="alias",e.Unresolved="unresolved"}(l||(l={})),function(e){e[e.None=0]="None",e[e.Primary=1]="Primary",e[e.Basename=2]="Basename",e[e.Path=3]="Path"}(d||(d={})),function(e){e.DiskLocation="disk-location",e.Backlink="backlink",e.OutgoingLink="outgoing-link"}(c||(c={}));class h{static getAliases(e){let t=[];return e&&(t=h.getValueForKey(e,/^alias(es)?$/i)),t}static getTags(e){let t=[];return e&&(t=h.getValueForKey(e,/^tags?$/i)),t}static getValueForKey(e,t){const s=[],i=Object.keys(e).find((e=>t.test(e)));if(i){let t=e[i];"string"==typeof t&&(t=t.split(",")),Array.isArray(t)&&t.forEach((e=>{"string"==typeof e&&s.push(e.trim())}))}return s}}function m(e,t,s){let i=!1;return e&&void 0!==e[t]&&(i=!0,void 0!==s&&s!==e[t]&&(i=!1)),i}function u(e){return m(e,"type",l.SymbolList)}function g(e){return m(e,"type",l.HeadingsList)}function p(e){return m(e,"type",l.File)}function f(e){return m(e,"type",l.Alias)}function y(e){return m(e,"type",l.Unresolved)}function b(e){return e&&!(p(t=e)||y(t)||f(t));var t}function S(e){return m(e,"level")}function k(e){return m(e,"tag")}function w(e){return m(e,"type","callout")}function v(e){return m(e,"extension")}function C(e,t){return e?.internalPlugins?.getEnabledPluginById(t)}function I(e){const t=function(e,t){return e?.internalPlugins?.getPluginById(t)}(e,"switcher");return t?.instance}function L(e){return C(e,"global-search")}function T(){return Object.values(t).filter((e=>isNaN(Number(e)))).sort()}function E(){return[t.RelatedItemsList,t.SymbolList]}function F(e){let t=null;if(e){const s=a.normalizePath(e),i=s.lastIndexOf("/");t=-1===i?s:s.slice(i+1)}return t}function x(e){e=e??[];const t=[];for(const s of e)try{const e=new RegExp(s);t.push(e)}catch(e){console.log(`Switcher++: error creating RegExp from string: ${s}`,e)}return e=>{for(const s of t)if(s.test(e))return!0;return!1}}function A(e){let t=i.None;if(e){const s=e.link.split("|")[0];t=s.includes("#^")?i.Block:s.includes("#")?i.Heading:i.Normal}return t}function O(e,t){return t?.getFileByPath(e)}function P(e){let t=null;if(!e)return t;if(e.isDeferred){const s=e.getViewState()?.state?.file;s&&(t=O(s,e.app?.vault))}else e.view?.file&&(t=e.view.file);return t}function M(e,t,s,i,n){let o=null;if(n=Object.assign({useBasenameAsAlias:!0,useHeadingAsAlias:!0},n),s){let r=R(s),d=null,c=null;switch(s.type){case l.Unresolved:o=H(s.linktext);break;case l.Alias:d=s.alias;break;case l.Bookmark:{const{item:e}=s;"file"===e.type&&e.title&&(d=e.title);break}case l.HeadingsList:{const{heading:e}=s.item;({subpath:c,alias:d}=B(e,n.useHeadingAsAlias));break}case l.SymbolList:{const{item:{symbol:l}}=s;if(S(l))({subpath:c,alias:d}=B(l.heading,n.useHeadingAsAlias));else if(m(l,"link")){o=new RegExp(/^\[(.*?)\]\((.+?)\)/).test(l.original)?l.original:function(e,t,s,i,n,o){const{link:r,displayText:l}=i,{path:d,subpath:c}=a.parseLinktext(r);let h=l,m=null,u=null;m=d?.length?O(d,t):n;m?(!h?.length&&o&&(h=m.basename),u=e.generateMarkdownLink(m,s,c,h)):u=H(d,h);return u}(e,t,i,l,r,n.useBasenameAsAlias)}else r=null;break}case l.RelatedItemsList:{const{item:e}=s;e.unresolvedText&&(o=H(e.unresolvedText));break}}r&&!o&&(!d&&n.useBasenameAsAlias&&(d=r.basename),o=e.generateMarkdownLink(r,i,c,d))}return o}function B(e,t){const s=a.stripHeadingForLink(e);return{subpath:`#${s}`,alias:t?s:null}}function R(e){let t=null;return[l.Alias,l.Bookmark,l.HeadingsList,l.SymbolList,l.RelatedItemsList,l.EditorList,l.File].includes(e?.type)&&(t=e.file),t}function H(e,t){return`[[${e}${t=t?.length?`|${t}`:""}]]`}function D(e,t){return e?.view?.getViewType()===t&&!e.isDeferred}class V{static rootComponent;static getRootComponent(){return this.rootComponent||(this.rootComponent=new a.Component),this.rootComponent}static unload(){this.rootComponent?.unload()}}const W={file:"canvas-node-file",text:"canvas-node-text",link:"canvas-node-link",group:"canvas-node-group"},N={table:"base-view-table",list:"base-view-list",cards:"base-view-cards"},q=[{id:s[s.Heading],mode:t.SymbolList,label:"headings",isActive:!1,isAvailable:!0},{id:s[s.Tag],mode:t.SymbolList,label:"tags",isActive:!1,isAvailable:!0},{id:s[s.Callout],mode:t.SymbolList,label:"callouts",isActive:!1,isAvailable:!0},{id:s[s.Link],mode:t.SymbolList,label:"links",isActive:!1,isAvailable:!0},{id:s[s.Embed],mode:t.SymbolList,label:"embeds",isActive:!1,isAvailable:!0},{id:W.file,mode:t.SymbolList,label:"file cards",isActive:!1,isAvailable:!0},{id:W.text,mode:t.SymbolList,label:"text cards",isActive:!1,isAvailable:!0},{id:W.link,mode:t.SymbolList,label:"link cards",isActive:!1,isAvailable:!0},{id:W.group,mode:t.SymbolList,label:"groups",isActive:!1,isAvailable:!0},{id:N.table,mode:t.SymbolList,label:"table views",isActive:!1,isAvailable:!0},{id:N.list,mode:t.SymbolList,label:"list views",isActive:!1,isAvailable:!0},{id:N.cards,mode:t.SymbolList,label:"card views",isActive:!1,isAvailable:!0}],K=[{id:c.Backlink,mode:t.RelatedItemsList,label:"backlinks",isActive:!1,isAvailable:!0},{id:c.OutgoingLink,mode:t.RelatedItemsList,label:"outgoing links",isActive:!1,isAvailable:!0},{id:c.DiskLocation,mode:t.RelatedItemsList,label:"disk location",isActive:!1,isAvailable:!0}],j={file:"bookmarks-file",folder:"bookmarks-folder",search:"bookmarks-search",group:"bookmarks-group"},$=[{id:j.file,mode:t.BookmarksList,label:"files",isActive:!1,isAvailable:!0},{id:j.folder,mode:t.BookmarksList,label:"folders",isActive:!1,isAvailable:!0},{id:j.search,mode:t.BookmarksList,label:"searches",isActive:!1,isAvailable:!0}];var U;!function(e){e.Pinned="pinnedCommands",e.Recent="recentCommands"}(U||(U={}));const Q=[{id:U.Pinned,mode:t.CommandList,label:"pinned",isActive:!1,isAvailable:!0},{id:U.Recent,mode:t.CommandList,label:"recent",isActive:!1,isAvailable:!0}];var G;!function(e){e.RecentFiles="recentFilesSearch",e.Bookmarks="bookmarksSearch",e.Filenames="filenamesSearch",e.Headings="headingsSearch",e.ExternalFiles="externalFilesSearch"}(G||(G={}));const _=[{id:G.RecentFiles,mode:t.HeadingsList,label:"recent files",isActive:!1,isAvailable:!0},{id:G.Bookmarks,mode:t.HeadingsList,label:"bookmarks",isActive:!1,isAvailable:!0},{id:G.Filenames,mode:t.HeadingsList,label:"filenames",isActive:!1,isAvailable:!0},{id:G.Headings,mode:t.HeadingsList,label:"headings",isActive:!1,isAvailable:!0},{id:G.ExternalFiles,mode:t.HeadingsList,label:"external files",isActive:!1,isAvailable:!0}];function z(){const e={};return[q,K,$,Q,_].flat().reduce(((e,t)=>(e[t.id]=Object.assign({},t),e)),e),e}const J=e=>{if("object"==typeof e&&null!==e){if("function"==typeof Object.getPrototypeOf){const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}return"[object Object]"===Object.prototype.toString.call(e)}return!1},Y=(...e)=>e.reduce(((e,t)=>{if(void 0===t)return e;if(Array.isArray(t))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(t).forEach((s=>{["__proto__","constructor","prototype"].includes(s)||(Array.isArray(e[s])&&Array.isArray(t[s])?e[s]=Y.options.mergeArrays?Y.options.uniqueArrayItems?Array.from(new Set(e[s].concat(t[s]))):[...e[s],...t[s]]:t[s]:J(e[s])&&J(t[s])?e[s]=Y(e[s],t[s]):!J(e[s])&&J(t[s])?e[s]=Y(t[s],void 0):e[s]=void 0===t[s]?Y.options.allowUndefinedOverrides?t[s]:e[s]:t[s])})),e}),{}),X={allowUndefinedOverrides:!0,mergeArrays:!0,uniqueArrayItems:!0};Y.options=X,Y.withOptions=(e,...t)=>{Y.options=Object.assign(Object.assign({},X),e);const s=Y(...t);return Y.options=X,s};class Z{plugin;data;static get defaults(){const i={};return i[s.Link]=!0,i[s.Embed]=!0,i[s.Tag]=!0,i[s.Heading]=!0,i[s.Callout]=!0,{version:"2.0.0",onOpenPreferNewTab:!0,alwaysNewTabForSymbols:!1,useActiveTabForSymbolsOnMobile:!1,symbolsInLineOrder:!0,editorListCommand:"edt ",symbolListCommand:"@",symbolListActiveEditorCommand:"$ ",workspaceListCommand:"+",headingsListCommand:"#",bookmarksListCommand:"'",commandListCommand:">",recentCommandDisplayOrder:"desc",maxRecentCommands:25,vaultListCommand:"vault ",relatedItemsListCommand:"~",relatedItemsListActiveEditorCommand:"^ ",shouldSearchHeadings:!0,strictHeadingsOnly:!1,searchAllHeadings:!0,headingsSearchDebounceMilli:250,excludeViewTypes:["empty"],referenceViews:["backlink","localgraph","outgoing-link","outline"],limit:50,includeSidePanelViewTypes:["backlink","image","markdown","pdf"],enabledSymbolTypes:i,selectNearestHeading:!0,excludeFolders:[],excludeLinkSubTypes:0,excludeRelatedFolders:[""],excludeOpenRelatedFiles:!1,excludeObsidianIgnoredFiles:!1,shouldSearchFilenames:!1,shouldSearchBookmarks:!1,shouldSearchRecentFiles:!0,pathDisplayFormat:e.FolderWithFilename,hidePathIfRoot:!0,enabledRelatedItems:Object.values(c),showOptionalIndicatorIcons:!0,isFileExtensionIndicatorsEnabled:!0,excludeFileExtensionIndicators:["md"],overrideStandardModeBehaviors:!0,overrideStandardModeRendering:!0,enabledRibbonCommands:[t[t.HeadingsList],t[t.SymbolList]],fileExtAllowList:["canvas"],matchPriorityAdjustments:{isEnabled:!1,adjustments:{isOpenInEditor:{value:0,label:"Open items"},isBookmarked:{value:0,label:"Bookmarked items"},isRecent:{value:0,label:"Recent items"},isAttachment:{value:0,label:"Attachment file types"},file:{value:0,label:"Filenames"},alias:{value:0,label:"Aliases"},unresolved:{value:0,label:"Unresolved filenames"},h1:{value:0,label:"H₁ headings"}},fileExtAdjustments:{canvas:{value:0,label:"Canvas files"}}},quickFilters:{resetKey:"0",keyList:["1","2","3","4","5","6","7","8","9"],modifiers:["Ctrl","Alt"],facetList:z(),shouldResetActiveFacets:!1,shouldShowFacetInstructions:!0},preserveCommandPaletteLastInput:!1,preserveQuickSwitcherLastInput:!1,shouldCloseModalOnBackspace:!1,maxRecentFileSuggestionsOnInit:25,orderEditorListByAccessTime:!0,insertLinkInEditor:{isEnabled:!0,keymap:{modifiers:["Mod"],key:"i",purpose:"insert in editor"},insertableEditorTypes:["markdown"],useBasenameAsAlias:!0,useHeadingAsAlias:!0},removeDefaultTabBinding:!0,navigationKeys:{nextKeys:[{modifiers:["Ctrl"],key:"n"},{modifiers:["Ctrl"],key:"j"}],prevKeys:[{modifiers:["Ctrl"],key:"p"},{modifiers:["Ctrl"],key:"k"}]},preferredSourceForTitle:"H1",frontmatterTitleProperty:"title",closeWhenEmptyKeys:[{modifiers:null,key:"Backspace"}],navigateToHotkeySelectorKeys:{modifiers:["Ctrl","Shift"],key:"h"},togglePinnedCommandKeys:{modifiers:["Ctrl","Shift"],key:"p"},escapeCmdChar:"!",mobileLauncher:{isEnabled:!1,isMobileButtonEnabled:!0,isEmptyTabButtonEnabled:!0,modeString:t[t.HeadingsList],iconName:"",coreLauncherButtonIconSelector:"span.clickable-icon",coreLauncherButtonSelector:".mobile-navbar-action.mobile-navbar-action-quick-switcher"},allowCreateNewFileInModeNames:[t[t.Standard],t[t.HeadingsList]],showModeTriggerInstructions:!0,renderMarkdownContentInSuggestions:{isEnabled:!1,renderHeadings:!1,renderLinks:!1,renderTags:!1,renderCallouts:!1,toggleContentRenderingKeys:{modifiers:["Shift","Ctrl"],key:"m"}},quickOpen:{isEnabled:!0,modifiers:["Alt"],keyList:["1","2","3","4","5","6","7","8","9"]},openDefaultApp:{isEnabled:!0,openInDefaultAppKeys:{modifiers:["Shift","Ctrl"],key:"o"},excludeFileExtensions:[]},fulltextSearch:{isEnabled:!0,searchKeys:{modifiers:["Mod","Shift"],key:"f"}},openInBackground:{isEnabled:!0,openKeys:[{openType:"tab",hotkey:{modifiers:["Mod","Shift"],key:"t"}},{openType:"vertical",hotkey:null},{openType:"horizontal",hotkey:null},{openType:"window",hotkey:null}]},saveWorkspaceAndSwitchKeys:{modifiers:["Mod","Shift"],key:"s"},showHeadingBreadcrumbs:!0,headingBreadcrumbSeparator:" > ",maxBreadcrumbDepth:0,showHeadingBreadcrumbsInSymbolMode:!1,showTagsInSuggestions:!1,tagSource:n.Both,excludeTagsFromDisplay:[],tagDisplaySeparator:" ",removeHashPrefixFromTags:!1,maxTagsToDisplay:0}}shouldShowAlias;get version(){return this.data.version}set version(e){this.data.version=e}get builtInSystemOptions(){return I(this.plugin.app)?.options}get showAllFileTypes(){return this.builtInSystemOptions?.showAllFileTypes}get showAttachments(){return this.builtInSystemOptions?.showAttachments}get showExistingOnly(){return this.builtInSystemOptions?.showExistingOnly}get onOpenPreferNewTab(){return this.data.onOpenPreferNewTab}set onOpenPreferNewTab(e){this.data.onOpenPreferNewTab=e}get alwaysNewTabForSymbols(){return this.data.alwaysNewTabForSymbols}set alwaysNewTabForSymbols(e){this.data.alwaysNewTabForSymbols=e}get useActiveTabForSymbolsOnMobile(){return this.data.useActiveTabForSymbolsOnMobile}set useActiveTabForSymbolsOnMobile(e){this.data.useActiveTabForSymbolsOnMobile=e}get symbolsInLineOrder(){return this.data.symbolsInLineOrder}set symbolsInLineOrder(e){this.data.symbolsInLineOrder=e}get editorListPlaceholderText(){return Z.defaults.editorListCommand}get editorListCommand(){return this.data.editorListCommand}set editorListCommand(e){this.data.editorListCommand=e}get symbolListPlaceholderText(){return Z.defaults.symbolListCommand}get symbolListCommand(){return this.data.symbolListCommand}set symbolListCommand(e){this.data.symbolListCommand=e}get symbolListActiveEditorCommand(){return this.data.symbolListActiveEditorCommand}set symbolListActiveEditorCommand(e){this.data.symbolListActiveEditorCommand=e}get workspaceListCommand(){return this.data.workspaceListCommand}set workspaceListCommand(e){this.data.workspaceListCommand=e}get workspaceListPlaceholderText(){return Z.defaults.workspaceListCommand}get headingsListCommand(){return this.data.headingsListCommand}set headingsListCommand(e){this.data.headingsListCommand=e}get headingsListPlaceholderText(){return Z.defaults.headingsListCommand}get bookmarksListCommand(){return this.data.bookmarksListCommand}set bookmarksListCommand(e){this.data.bookmarksListCommand=e}get bookmarksListPlaceholderText(){return Z.defaults.bookmarksListCommand}get commandListCommand(){return this.data.commandListCommand}set commandListCommand(e){this.data.commandListCommand=e}get recentCommandDisplayOrder(){return this.data.recentCommandDisplayOrder}set recentCommandDisplayOrder(e){this.data.recentCommandDisplayOrder=e}get maxRecentCommands(){return this.data.maxRecentCommands}set maxRecentCommands(e){this.data.maxRecentCommands=e}get commandListPlaceholderText(){return Z.defaults.commandListCommand}get vaultListCommand(){return this.data.vaultListCommand}set vaultListCommand(e){this.data.vaultListCommand=e}get vaultListPlaceholderText(){return Z.defaults.vaultListCommand}get relatedItemsListCommand(){return this.data.relatedItemsListCommand}set relatedItemsListCommand(e){this.data.relatedItemsListCommand=e}get relatedItemsListPlaceholderText(){return Z.defaults.relatedItemsListCommand}get relatedItemsListActiveEditorCommand(){return this.data.relatedItemsListActiveEditorCommand}set relatedItemsListActiveEditorCommand(e){this.data.relatedItemsListActiveEditorCommand=e}get shouldSearchHeadings(){return this.data.shouldSearchHeadings}set shouldSearchHeadings(e){this.data.shouldSearchHeadings=e}get strictHeadingsOnly(){return this.data.strictHeadingsOnly}set strictHeadingsOnly(e){this.data.strictHeadingsOnly=e}get searchAllHeadings(){return this.data.searchAllHeadings}set searchAllHeadings(e){this.data.searchAllHeadings=e}get headingsSearchDebounceMilli(){return this.data.headingsSearchDebounceMilli}set headingsSearchDebounceMilli(e){this.data.headingsSearchDebounceMilli=e}get excludeViewTypes(){return this.data.excludeViewTypes}set excludeViewTypes(e){this.data.excludeViewTypes=e}get referenceViews(){return this.data.referenceViews}set referenceViews(e){this.data.referenceViews=e}get limit(){return this.data.limit}set limit(e){this.data.limit=e}get includeSidePanelViewTypes(){return this.data.includeSidePanelViewTypes}set includeSidePanelViewTypes(e){this.data.includeSidePanelViewTypes=[...new Set(e)]}get includeSidePanelViewTypesPlaceholder(){return Z.defaults.includeSidePanelViewTypes.join("\n")}get selectNearestHeading(){return this.data.selectNearestHeading}set selectNearestHeading(e){this.data.selectNearestHeading=e}get excludeFolders(){return this.data.excludeFolders}set excludeFolders(e){this.data.excludeFolders=[...new Set(e)]}get excludeLinkSubTypes(){return this.data.excludeLinkSubTypes}set excludeLinkSubTypes(e){this.data.excludeLinkSubTypes=e}get excludeRelatedFolders(){return this.data.excludeRelatedFolders}set excludeRelatedFolders(e){this.data.excludeRelatedFolders=[...new Set(e)]}get excludeOpenRelatedFiles(){return this.data.excludeOpenRelatedFiles}set excludeOpenRelatedFiles(e){this.data.excludeOpenRelatedFiles=e}get excludeObsidianIgnoredFiles(){return this.data.excludeObsidianIgnoredFiles}set excludeObsidianIgnoredFiles(e){this.data.excludeObsidianIgnoredFiles=e}get shouldSearchFilenames(){return this.data.shouldSearchFilenames}set shouldSearchFilenames(e){this.data.shouldSearchFilenames=e}get shouldSearchBookmarks(){return this.data.shouldSearchBookmarks}set shouldSearchBookmarks(e){this.data.shouldSearchBookmarks=e}get shouldSearchRecentFiles(){return this.data.shouldSearchRecentFiles}set shouldSearchRecentFiles(e){this.data.shouldSearchRecentFiles=e}get pathDisplayFormat(){return this.data.pathDisplayFormat}set pathDisplayFormat(e){this.data.pathDisplayFormat=e}get hidePathIfRoot(){return this.data.hidePathIfRoot}set hidePathIfRoot(e){this.data.hidePathIfRoot=e}get enabledRelatedItems(){return this.data.enabledRelatedItems}set enabledRelatedItems(e){this.data.enabledRelatedItems=e}get showOptionalIndicatorIcons(){return this.data.showOptionalIndicatorIcons}set showOptionalIndicatorIcons(e){this.data.showOptionalIndicatorIcons=e}get isFileExtensionIndicatorsEnabled(){return this.data.isFileExtensionIndicatorsEnabled}set isFileExtensionIndicatorsEnabled(e){this.data.isFileExtensionIndicatorsEnabled=e}get excludeFileExtensionIndicators(){return this.data.excludeFileExtensionIndicators}set excludeFileExtensionIndicators(e){this.data.excludeFileExtensionIndicators=[...new Set(e)]}get overrideStandardModeBehaviors(){return this.data.overrideStandardModeBehaviors}set overrideStandardModeBehaviors(e){this.data.overrideStandardModeBehaviors=e}get overrideStandardModeRendering(){return this.data.overrideStandardModeRendering}set overrideStandardModeRendering(e){this.data.overrideStandardModeRendering=e}get enabledRibbonCommands(){return this.data.enabledRibbonCommands}set enabledRibbonCommands(e){this.data.enabledRibbonCommands=[...new Set(e)]}get fileExtAllowList(){return this.data.fileExtAllowList}set fileExtAllowList(e){this.data.fileExtAllowList=e}get matchPriorityAdjustments(){return this.data.matchPriorityAdjustments}set matchPriorityAdjustments(e){this.data.matchPriorityAdjustments=e}get quickFilters(){return this.data.quickFilters}set quickFilters(e){this.data.quickFilters=e}get preserveCommandPaletteLastInput(){return this.data.preserveCommandPaletteLastInput}set preserveCommandPaletteLastInput(e){this.data.preserveCommandPaletteLastInput=e}get preserveQuickSwitcherLastInput(){return this.data.preserveQuickSwitcherLastInput}set preserveQuickSwitcherLastInput(e){this.data.preserveQuickSwitcherLastInput=e}get shouldCloseModalOnBackspace(){return this.data.shouldCloseModalOnBackspace}set shouldCloseModalOnBackspace(e){this.data.shouldCloseModalOnBackspace=e}get maxRecentFileSuggestionsOnInit(){return this.data.maxRecentFileSuggestionsOnInit}set maxRecentFileSuggestionsOnInit(e){this.data.maxRecentFileSuggestionsOnInit=e}get orderEditorListByAccessTime(){return this.data.orderEditorListByAccessTime}set orderEditorListByAccessTime(e){this.data.orderEditorListByAccessTime=e}get insertLinkInEditor(){return this.data.insertLinkInEditor}set insertLinkInEditor(e){this.data.insertLinkInEditor=e}get removeDefaultTabBinding(){return this.data.removeDefaultTabBinding}set removeDefaultTabBinding(e){this.data.removeDefaultTabBinding=e}get navigationKeys(){return this.data.navigationKeys}set navigationKeys(e){this.data.navigationKeys=e}get preferredSourceForTitle(){return this.data.preferredSourceForTitle}set preferredSourceForTitle(e){this.data.preferredSourceForTitle=e}get frontmatterTitleProperty(){return this.data.frontmatterTitleProperty}set frontmatterTitleProperty(e){this.data.frontmatterTitleProperty=e}get closeWhenEmptyKeys(){return this.data.closeWhenEmptyKeys}set closeWhenEmptyKeys(e){this.data.closeWhenEmptyKeys=e}get navigateToHotkeySelectorKeys(){return this.data.navigateToHotkeySelectorKeys}set navigateToHotkeySelectorKeys(e){this.data.navigateToHotkeySelectorKeys=e}get togglePinnedCommandKeys(){return this.data.togglePinnedCommandKeys}set togglePinnedCommandKeys(e){this.data.togglePinnedCommandKeys=e}get escapeCmdChar(){return this.data.escapeCmdChar}set escapeCmdChar(e){this.data.escapeCmdChar=e}get mobileLauncher(){return this.data.mobileLauncher}set mobileLauncher(e){this.data.mobileLauncher=e}get allowCreateNewFileInModeNames(){return this.data.allowCreateNewFileInModeNames}set allowCreateNewFileInModeNames(e){this.data.allowCreateNewFileInModeNames=[...new Set(e)]}get showModeTriggerInstructions(){return this.data.showModeTriggerInstructions}set showModeTriggerInstructions(e){this.data.showModeTriggerInstructions=e}get renderMarkdownContentInSuggestions(){return this.data.renderMarkdownContentInSuggestions}set renderMarkdownContentInSuggestions(e){this.data.renderMarkdownContentInSuggestions=e}get quickOpen(){return this.data.quickOpen}set quickOpen(e){this.data.quickOpen=e}get openDefaultApp(){return this.data.openDefaultApp}set openDefaultApp(e){this.data.openDefaultApp=e}get fulltextSearch(){return this.data.fulltextSearch}set fulltextSearch(e){this.data.fulltextSearch=e}get openInBackground(){return this.data.openInBackground}set openInBackground(e){this.data.openInBackground=e}get saveWorkspaceAndSwitchKeys(){return this.data.saveWorkspaceAndSwitchKeys}set saveWorkspaceAndSwitchKeys(e){this.data.saveWorkspaceAndSwitchKeys=e}get showHeadingBreadcrumbs(){return this.data.showHeadingBreadcrumbs}set showHeadingBreadcrumbs(e){this.data.showHeadingBreadcrumbs=e}get headingBreadcrumbSeparator(){return this.data.headingBreadcrumbSeparator}set headingBreadcrumbSeparator(e){this.data.headingBreadcrumbSeparator=e}get maxBreadcrumbDepth(){return this.data.maxBreadcrumbDepth}set maxBreadcrumbDepth(e){this.data.maxBreadcrumbDepth=e}get showHeadingBreadcrumbsInSymbolMode(){return this.data.showHeadingBreadcrumbsInSymbolMode}set showHeadingBreadcrumbsInSymbolMode(e){this.data.showHeadingBreadcrumbsInSymbolMode=e}get showTagsInSuggestions(){return this.data.showTagsInSuggestions}set showTagsInSuggestions(e){this.data.showTagsInSuggestions=e}get tagSource(){return this.data.tagSource}set tagSource(e){this.data.tagSource=e}get excludeTagsFromDisplay(){return this.data.excludeTagsFromDisplay}set excludeTagsFromDisplay(e){this.data.excludeTagsFromDisplay=e}get tagDisplaySeparator(){return this.data.tagDisplaySeparator}set tagDisplaySeparator(e){this.data.tagDisplaySeparator=e}get removeHashPrefixFromTags(){return this.data.removeHashPrefixFromTags}set removeHashPrefixFromTags(e){this.data.removeHashPrefixFromTags=e}get maxTagsToDisplay(){return this.data.maxTagsToDisplay}set maxTagsToDisplay(e){this.data.maxTagsToDisplay=e}constructor(e){this.plugin=e,this.data=Z.defaults}async updateDataAndLoadSettings(){return await Z.transformDataFile(this.plugin,Z.defaults),await this.loadSettings()}async loadSettings(){try{const e=await(this.plugin?.loadData());if(e){const t=Object.keys(Z.defaults);((e,t,s)=>{const i=["matchPriorityAdjustments","quickFilters","mobileLauncher"],n=s=>Y.withOptions({mergeArrays:!1},t[s],e[s]);for(const a of s)a in e&&(t[a]=i.includes(a)?n(a):e[a])})(e,this.data,t)}}catch(e){console.log("Switcher++: error loading settings, using defaults. ",e)}}async saveSettings(){const{plugin:e,data:t}=this;await(e?.saveData(t))}save(){this.saveSettings().catch((e=>{console.log("Switcher++: error saving changes to settings",e)}))}isSymbolTypeEnabled(e){const{enabledSymbolTypes:t}=this.data;let s=Z.defaults.enabledSymbolTypes[e];return Object.prototype.hasOwnProperty.call(t,e)&&(s=t[e]),s}setSymbolTypeEnabled(e,t){this.data.enabledSymbolTypes[e]=t}shouldRenderSymbolAsHTML(e){const{renderMarkdownContentInSuggestions:t}=this.data;if(!t.isEnabled)return!1;const i={[s.Heading]:"renderHeadings",[s.Link]:"renderLinks",[s.Tag]:"renderTags",[s.Callout]:"renderCallouts"}[e];return!!i&&t[i]}static async transformDataFile(e,t){await Z.transformDataFileToV1(e,t),await Z.transformDataFileToV2(e,t)}static async transformDataFileToV1(e,t){let s=!1;try{const i=await(e?.loadData());if(i&&"object"==typeof i){const n="version";if(!Object.prototype.hasOwnProperty.call(i,n)){const a="starredListCommand";Object.prototype.hasOwnProperty.call(i,a)&&(i.bookmarksListCommand=i[a]??t.bookmarksListCommand,delete i[a]);const o="isStarred",r=i.matchPriorityAdjustments;r&&Object.prototype.hasOwnProperty.call(r,o)&&(r.isBookmarked=r[o],delete r[o]),i[n]="1.0.0",await(e?.saveData(i)),s=!0}}}catch(e){console.log("Switcher++: error transforming data.json to v1.0.0",e)}return s}static async transformDataFileToV2(e,t){let s=!1;try{const i=await(e?.loadData());if(i&&"object"==typeof i){const n="version";if("1.0.0"===i[n]){const a="matchPriorityAdjustments";if(Object.prototype.hasOwnProperty.call(i,a)){const e=i[a],s={};i[a]={isEnabled:!!i.enableMatchPriorityAdjustments,adjustments:s},delete i.enableMatchPriorityAdjustments,Object.entries(e).forEach((([e,i])=>{const n=t.matchPriorityAdjustments.adjustments[e]?.label??"";s[e]={value:i,label:n}}))}const o="quickFilters";if(Object.prototype.hasOwnProperty.call(i,o)){const e="facetList",t=i[o],s=t[e],n=s?.reduce(((e,t)=>(e[t.id]=t,e)),{});t[e]=n}i[n]="2.0.0",await(e?.saveData(i)),s=!0}}}catch(e){console.log("Switcher++: error transforming data.json to v2.0.0",e)}return s}}class ee{app;mainSettingsTab;config;constructor(e,t,s){this.app=e,this.mainSettingsTab=t,this.config=s}createSetting(e,t,s){let i;return e instanceof a.SettingGroup?e.addSetting((e=>{i=e,e.setName(t),e.setDesc(s)})):(i=new a.Setting(e),i.setName(t),i.setDesc(s)),i}withSetting(e,t,s,i){let n;return e instanceof a.SettingGroup?e.addSetting((e=>{n=e,e.setName(t).setDesc(s),i(e)})):(n=this.createSetting(e,t,s),i(n)),n}createOnChangeHandler(e,t){return s=>{t?t(s,this.config):e&&this.saveChangesToConfig(e,s)}}addSectionTitle(e,t,s=""){const i=this.createSetting(e,t,s);return i.setHeading(),i}addTextSetting(e,t,s,i,n,a){return this.withSetting(e,t,s,(e=>{e.addText((e=>{e.setPlaceholder(a),e.setValue(i),e.onChange((e=>{const t=e.length?e:i;this.saveChangesToConfig(n,t)}))}))}))}addToggleSetting(e,t,s,i,n,a){return this.withSetting(e,t,s,(e=>{e.addToggle((e=>{e.setValue(i),e.onChange(this.createOnChangeHandler(n,a))}))}))}addTextAreaSetting(e,t,s,i,n,a,o){return this.withSetting(e,t,s,(e=>{e.addTextArea((e=>{e.setPlaceholder(a),e.setValue(i),e.onChange((e=>{if(o)o(e,this.config);else{const t=e.length?e:i,s=Array.isArray(this.config[n]);this.saveChangesToConfig(n,s?t.split("\n"):t)}}))}))}))}addDropdownSetting(e,t,s,i,n,a,o){return this.withSetting(e,t,s,(e=>{e.addDropdown((e=>{e.addOptions(n),e.setValue(i),e.onChange(this.createOnChangeHandler(a,o))}))}))}addSliderSetting(e,t,s,i,n,a,o){return this.withSetting(e,t,s,(e=>{e.addExtraButton((t=>(t.setIcon("lucide-rotate-ccw"),t.setTooltip("Restore default"),t.onClick((()=>e.components[1].setValue(n[3]))),t))),e.addSlider((e=>{e.setLimits(n[0],n[1],n[2]),e.setValue(i),e.setDynamicTooltip(),e.onChange(this.createOnChangeHandler(a,o))}))}))}saveChangesToConfig(e,t){if(e){const{config:s}=this;s[e]=t,s.save()}}}class te extends ee{display(e){const{config:t}=this;this.addSectionTitle(e,"Bookmarks List Mode"),this.addTextSetting(e,"Bookmarks list mode trigger","Character that will trigger bookmarks list mode in the switcher",t.bookmarksListCommand,"bookmarksListCommand",t.bookmarksListPlaceholderText)}}class se extends ee{display(e){const{config:t}=this;this.addSectionTitle(e,"Command List Mode"),this.addTextSetting(e,"Command list mode trigger","Character that will trigger command list mode in the switcher",t.commandListCommand,"commandListCommand",t.commandListPlaceholderText),this.addSliderSetting(e,"Max recent commands","The maximum number of commands to save in the recent list.",t.maxRecentCommands,[0,75,1,25],"maxRecentCommands"),this.showRecentCommandDisplayOrder(e,t)}showRecentCommandDisplayOrder(e,t){this.addDropdownSetting(e,"Recent commands display order","Select the sort order for recently used commands.",t.recentCommandDisplayOrder,{desc:"Most recent first (descending)",asc:"Most recent last (ascending)"},"recentCommandDisplayOrder")}}class ie extends ee{display(e){const{config:t}=this;this.addSectionTitle(e,"Related Items List Mode"),this.addTextSetting(e,"Related Items list mode trigger","Character that will trigger related items list mode in the switcher. This triggers a display of Related Items for the source file of the currently selected (highlighted) suggestion in the switcher. If there is not a suggestion, display results for the active editor.",t.relatedItemsListCommand,"relatedItemsListCommand",t.relatedItemsListPlaceholderText),this.addTextSetting(e,"Related Items list mode trigger - Active editor only","Character that will trigger related items list mode in the switcher. This always triggers a display of Related Items for the active editor only.",t.relatedItemsListActiveEditorCommand,"relatedItemsListActiveEditorCommand",t.relatedItemsListActiveEditorCommand),this.showEnabledRelatedItems(e,t),this.addToggleSetting(e,"Exclude open files","Enable, related files which are already open will not be displayed in the list. Disabled, All related files will be displayed in the list.",t.excludeOpenRelatedFiles,"excludeOpenRelatedFiles")}showEnabledRelatedItems(e,t){const s=Object.values(c).sort(),i=s.join(", "),n=`The types of related items to show in the list. Add one type per line. Available types: ${i}`;this.createSetting(e,"Show related item types",n).addTextArea((e=>{e.setValue(t.enabledRelatedItems.join("\n")),e.inputEl.addEventListener("focusout",(()=>{const n=e.getValue().split("\n").map((e=>e.trim())).filter((e=>e.length>0)),a=[...new Set(n)].filter((e=>!s.includes(e)));a?.length?this.showErrorPopup(a.join("
"),i):(t.enabledRelatedItems=n,t.save())}))}))}showErrorPopup(e,t){const s=new a.Modal(this.app);s.titleEl.setText("Invalid related item type"),s.contentEl.innerHTML=`Changes not saved. Available relation types are: ${t}. The following types are invalid:

${e}`,s.open()}}class ne extends ee{display(e){const{config:t}=this;this.addSectionTitle(e,"General"),this.addToggleSetting(e,"Default to open in new tab","When enabled, navigating to un-opened files will open a new editor tab whenever possible (as if cmd/ctrl were held). When the file is already open, the existing tab will be activated. This overrides all other tab settings.",t.onOpenPreferNewTab,"onOpenPreferNewTab"),this.showLauncherButtonOverrides(e,t),this.showEnabledRibbonCommands(e,t),this.addToggleSetting(e,"Show indicator icons","Display icons to indicate that an item is recent, bookmarked, etc..",t.showOptionalIndicatorIcons,"showOptionalIndicatorIcons"),this.addToggleSetting(e,"Display mode trigger instructions","When enabled, the trigger key for each mode will be displayed in the instructions section of the Switcher.",t.showModeTriggerInstructions,"showModeTriggerInstructions"),this.showStandardModeOverrides(e,t),this.showPathDisplayGroup(e,t),this.showPreferredSourceForTitle(e,t),this.showTagDisplaySettings(e,t),this.showQuickOpen(e,t),this.showRenderMarkdownContentAsHTML(e,t),this.addTextSetting(e,"Mode trigger escape character","Character to indicate that a mode trigger character should be treated just as a normal text.",t.escapeCmdChar,"escapeCmdChar"),this.addToggleSetting(e,"Allow Backspace key to close the Switcher","When the search box is empty, pressing the backspace key will close Switcher++.",t.shouldCloseModalOnBackspace,"shouldCloseModalOnBackspace"),this.showRestoreInput(e,t),this.showInsertLinkInEditor(e,t),this.showResetFacetEachSession(e,t),this.showMatchPriorityAdjustments(e,t)}showPreferredSourceForTitle(e,t){const s=new a.SettingGroup(e);this.addDropdownSetting(s,"Preferred suggestion title source",'The preferred source to use for the "title" text that will be searched and displayed for file based suggestions',t.preferredSourceForTitle,{H1:"First H₁ heading",Default:"Default",FrontMatter:"Frontmatter property"},"preferredSourceForTitle",((e,t)=>{t.preferredSourceForTitle=e,t.save(),this.mainSettingsTab.display()})),"FrontMatter"===t.preferredSourceForTitle&&this.addTextSetting(s,"Frontmatter property path",'The path to the frontmatter property to use as the title. Use dot notation for nested properties (e.g., "title" or "meta.display_name"). The property value must be a string, number, or boolean. If the property doesn\'t exist or has an invalid type, the default filename will be used.',t.frontmatterTitleProperty,"frontmatterTitleProperty","title")}showPathDisplayFormat(t,s){const i={};i[e.None.toString()]="Hide path",i[e.Full.toString()]="Full path",i[e.FolderOnly.toString()]="Only parent folder",i[e.FolderWithFilename.toString()]="Parent folder & filename",i[e.FolderPathFilenameOptional.toString()]="Parent folder path (filename optional)",this.addDropdownSetting(t,"Preferred file path display format","The preferred way to display file paths in suggestions",s.pathDisplayFormat.toString(),i,null,((e,t)=>{t.pathDisplayFormat=Number(e),t.save()}))}showPathDisplayGroup(e,t){const s=new a.SettingGroup(e);this.createSetting(s,"Path Display Settings","Configure how file paths are displayed in suggestions."),this.showPathDisplayFormat(s,t),this.addToggleSetting(s,"Hide path for root items","When enabled, path information will be hidden for items at the root of the vault.",t.hidePathIfRoot,"hidePathIfRoot")}showStandardModeOverrides(e,t){const s=new a.SettingGroup(e);this.createSetting(s,"Standard Mode Overrides","Configure how Switcher++ overrides the default Obsidian Switcher behavior in Standard mode."),this.addToggleSetting(s,"Override Standard mode file open behavior","When enabled, Switcher++ will change the default Obsidian builtin Switcher functionality (Standard mode) to inject custom file open behavior.",t.overrideStandardModeBehaviors,"overrideStandardModeBehaviors"),this.addToggleSetting(s,"Override Standard mode rendering","When enabled, Switcher++ will change the default Obsidian builtin Switcher functionality (Standard mode) to render suggestions as multi-line.",t.overrideStandardModeRendering,"overrideStandardModeRendering")}showRestoreInput(e,t){const s=new a.SettingGroup(e);this.createSetting(s,"Restore Previous Input","Configure whether to restore the last typed input when launching the Switcher."),this.addToggleSetting(s,"Restore previous input in Command Mode","When enabled, restore the last typed input in Command Mode when launched via global command hotkey.",t.preserveCommandPaletteLastInput,"preserveCommandPaletteLastInput"),this.addToggleSetting(s,"Restore previous input","When enabled, restore the last typed input when launched via global command hotkey.",t.preserveQuickSwitcherLastInput,"preserveQuickSwitcherLastInput")}showEnabledRibbonCommands(e,t){const s=T(),i=s.join(" "),n=`Display an icon in the ribbon menu to launch specific modes. Add one mode per line. Available modes: ${i}`;this.createSetting(e,"Show ribbon icons",n).addTextArea((e=>{e.setValue(t.enabledRibbonCommands.join("\n")),e.inputEl.addEventListener("focusout",(()=>{const n=e.getValue().split("\n").map((e=>e.trim())).filter((e=>e.length>0)),a=Array.from(new Set(n)).filter((e=>!s.includes(e)));a.length?this.showErrorPopup(a.join("
"),i):(t.enabledRibbonCommands=n,t.save(),this.mainSettingsTab.plugin.registerRibbonCommandIcons())}))}))}showErrorPopup(e,t){const s=new a.Modal(this.app);s.titleEl.setText("Invalid mode"),s.contentEl.innerHTML=`Changes not saved. Available modes are: ${t}. The following are invalid:

${e}`,s.open()}showLauncherButtonOverrides(e,t){const{mobileLauncher:s}=t,i=new a.SettingGroup(e),n="disabled",o={[n]:"Do not override"},r=T();r.forEach((e=>{o[e]=e}));let l=n;s.isEnabled&&r.includes(s.modeString)&&(l=s.modeString),this.addDropdownSetting(i,"New tab and mobile launcher buttons",'Select the Mode to launch Switcher++ in from the empty tab page and mobile navigation Bar button, or select "Do not override" to disable the feature.',l,o,null,((e,t)=>{const s=e!==n;t.mobileLauncher.isEnabled=s,s&&(t.mobileLauncher.modeString=e),t.save(),this.mainSettingsTab.display(),this.mainSettingsTab.plugin.updateLauncherButtonOverrides(s)})),s.isEnabled&&(this.addToggleSetting(i,"Override default Switcher launch button on mobile platforms",'When enabled, override the "🔍" button (in the Navigation Bar) on mobile platforms to launch Switcher++ instead of the default system switcher.',s.isMobileButtonEnabled,null,((e,t)=>{t.mobileLauncher.isMobileButtonEnabled=e,t.save(),this.mainSettingsTab.plugin.updateLauncherButtonOverrides(t.mobileLauncher.isEnabled)})),this.addToggleSetting(i,'Display launch button on the "New tab" page','When enabled, a button to launch Switcher++ using the selected mode above will be added to the default Obsidian "New tab" page.',s.isEmptyTabButtonEnabled,null,((e,t)=>{t.mobileLauncher.isEmptyTabButtonEnabled=e,t.save(),this.mainSettingsTab.plugin.updateLauncherButtonOverrides(t.mobileLauncher.isEnabled)})))}showMatchPriorityAdjustments(e,t){const{matchPriorityAdjustments:{isEnabled:s,adjustments:i,fileExtAdjustments:n}}=t,o=new a.SettingGroup(e);this.addToggleSetting(o,"Result priority adjustments","Artificially increase the match score of the specified item types by a fixed percentage so they appear higher in the results list (does not apply to Standard Mode).",s,null,((e,t)=>{t.matchPriorityAdjustments.isEnabled=e,t.saveSettings().then((()=>{this.mainSettingsTab.display()}),(e=>console.log('Switcher++: error saving "Result Priority Adjustments" setting. ',e)))})),s&&[i,n].forEach((e=>{Object.entries(e).forEach((([t,s])=>{const{value:i,label:n}=s;this.addSliderSetting(o,n,s.desc??"",i,[-1,1,.05,0],null,((s,i)=>{e[t].value=s,i.save()}))}))}))}showResetFacetEachSession(e,t){this.addToggleSetting(e,"Reset active Quick Filters","When enabled, the switcher will reset all Quick Filters back to inactive for each session.",t.quickFilters.shouldResetActiveFacets,null,((e,t)=>{t.quickFilters.shouldResetActiveFacets=e,t.save()}))}showRenderMarkdownContentAsHTML(e,t){const{renderMarkdownContentInSuggestions:s}=t,i=new a.SettingGroup(e),n=this.addToggleSetting(i,"Display markdown content as Live Preview",'When enabled, markdown content in symbol suggestions will be rendered as HTML similar to the Obsidian "Live Preview" display. When disabled, content will be rendered as raw text. Use the "toggle preview (selected item)" hotkey to toggle the display for individual items.',s.isEnabled,null,((e,t)=>{const{renderMarkdownContentInSuggestions:s}=t;s.isEnabled=e,t.saveSettings().then((()=>{this.mainSettingsTab.display()}),(e=>console.log('Switcher++: error saving "Display markdown content as Live Preview" setting. ',e)))}));if(n?.nameEl?.createSpan({cls:["qsp-tag","qsp-warning"],text:"Experimental"}),s.isEnabled){[{name:"Headings",property:"renderHeadings",description:"Render headings as HTML"},{name:"Links",property:"renderLinks",description:"Render links as HTML"},{name:"Tags",property:"renderTags",description:"Render tags as HTML"},{name:"Callouts",property:"renderCallouts",description:"Render callouts as HTML"}].forEach((({name:e,property:t,description:n})=>{this.addToggleSetting(i,e,n,s[t],null,((e,s)=>{s.renderMarkdownContentInSuggestions[t]=e,s.save()}))}))}}showInsertLinkInEditor(e,t){const s=new a.SettingGroup(e);this.createSetting(s,"Insert link in editor","Configure alias options when inserting links into the editor."),this.addToggleSetting(s,"Use filename as alias","When enabled, the file basename will be set as the link alias.",t.insertLinkInEditor.useBasenameAsAlias,null,((e,t)=>{t.insertLinkInEditor.useBasenameAsAlias=e,t.save()})),this.addToggleSetting(s,"Use heading as alias",'When enabled, the file heading will be set as the link alias. This overrides the "use filename as alias" setting.',t.insertLinkInEditor.useHeadingAsAlias,null,((e,t)=>{t.insertLinkInEditor.useHeadingAsAlias=e,t.save()}))}showQuickOpen(e,t){this.addToggleSetting(e,"Enable quick open hotkeys for top results","When enabled, hotkeys will be defined for each of the top N results displayed in the Switcher. These hotkeys can be used to quickly open the associated suggestion directly. when disabled, no hotkeys are defined.",t.quickOpen.isEnabled,null,((e,t)=>{t.quickOpen.isEnabled=e,t.save()}))}showTagDisplaySettings(e,t){const{showTagsInSuggestions:s}=t,i=new a.SettingGroup(e);if(this.addToggleSetting(i,"Show tags in suggestions","When enabled, tags associated with a file will be displayed in suggestions.",s,null,((e,t)=>{t.showTagsInSuggestions=e,t.saveSettings().then((()=>{this.mainSettingsTab.display()}),(e=>console.log('Switcher++: error saving "Show tags in suggestions" setting. ',e)))})),s){const e={[n.Both]:"Both",[n.Inline]:"Inline only",[n.Frontmatter]:"Frontmatter only"};this.addDropdownSetting(i,"Tag source","Select which tags to display: inline tags (in document body), frontmatter tags, or both.",t.tagSource,e,null,((e,t)=>{t.tagSource=e,t.save()})),this.addTextAreaSetting(i,"Excluded tags","Tags to exclude from display, one per line. Tags should be entered without the # prefix.",t.excludeTagsFromDisplay.join("\n"),null,"tag1\ntag2\ntag3",((e,t)=>{const s=e.split("\n").map((e=>e.trim())).filter((e=>e.length>0));t.excludeTagsFromDisplay=s,t.save()})),this.addSliderSetting(i,"Max tags to display","Maximum number of tags to show per suggestion. Set to 0 for unlimited.",t.maxTagsToDisplay,[0,20,1,5],"maxTagsToDisplay"),this.addTextSetting(i,"Tag separator","The string used to separate multiple tags in the display.",t.tagDisplaySeparator,"tagDisplaySeparator",", "),this.addToggleSetting(i,"Remove # prefix from tags","When enabled, the # prefix will be removed from tags when displayed.",t.removeHashPrefixFromTags,"removeHashPrefixFromTags")}}}class ae extends ee{display(e){const{config:t}=this;this.addSectionTitle(e,"Workspace List Mode"),this.addTextSetting(e,"Workspace list mode trigger","Character that will trigger workspace list mode in the switcher",t.workspaceListCommand,"workspaceListCommand",t.workspaceListPlaceholderText)}}class oe extends ee{display(e){const{config:t}=this;this.addSectionTitle(e,"Editor List Mode"),this.addTextSetting(e,"Editor list mode trigger","Character that will trigger editor list mode in the switcher",t.editorListCommand,"editorListCommand",t.editorListPlaceholderText),this.showIncludeSidePanelViews(e,t),this.addToggleSetting(e,"Order default editor list by most recently accessed","When there is no search term, order the list of editors by most recent access time.",t.orderEditorListByAccessTime,"orderEditorListByAccessTime")}showIncludeSidePanelViews(e,t){const s=`When in Editor list mode, show the following view types from the side panels. Add one view type per line. Available view types: ${Object.keys(this.app.viewRegistry.viewByType).sort().join(" ")}`;this.addTextAreaSetting(e,"Include side panel views",s,t.includeSidePanelViewTypes.join("\n"),"includeSidePanelViewTypes",t.includeSidePanelViewTypesPlaceholder)}}class re extends ee{display(e){const{config:t}=this;this.addSectionTitle(e,"Headings List Mode"),this.addTextSetting(e,"Headings list mode trigger","Character that will trigger headings list mode in the switcher",t.headingsListCommand,"headingsListCommand",t.headingsListPlaceholderText),this.addSliderSetting(e,"Max recent files to show","The maximum number of recent files to show when there is no search term",t.maxRecentFileSuggestionsOnInit,[0,75,1,25],"maxRecentFileSuggestionsOnInit"),this.showFileExtAllowList(e,t),this.addToggleSetting(e,"Search Filenames","Enabled, search and show suggestions for filenames. Disabled, Don't search through filenames (except for fallback searches)",t.shouldSearchFilenames,"shouldSearchFilenames"),this.addToggleSetting(e,"Search Bookmarks","Enabled, search and show suggestions for Bookmarks. Disabled, Don't search through Bookmarks",t.shouldSearchBookmarks,"shouldSearchBookmarks"),this.showHeadingSettings(e,t),this.showExclusionsGroup(e,t)}showHeadingSettings(e,t){const s=t.shouldSearchHeadings,i=new a.SettingGroup(e);this.addToggleSetting(i,"Search Headings","Enabled, search and show suggestions for Headings. Disabled, Don't search through Headings",s,null,((e,t)=>{t.shouldSearchHeadings=e,t.saveSettings().then((()=>{this.mainSettingsTab.display()}),(e=>console.log('Switcher++: error saving "Search Headings" setting. ',e)))})),s&&(this.addToggleSetting(i,"Turn off filename fallback","Enabled, strictly search through only the headings contained in the file. Do not fallback to searching the filename when an H1 match is not found. Disabled, fallback to searching against the filename when there is not a match in the first H1 contained in the file.",t.strictHeadingsOnly,"strictHeadingsOnly"),this.addToggleSetting(i,"Search all headings","Enabled, search through all headings contained in each file. Disabled, only search through the first H1 in each file.",t.searchAllHeadings,"searchAllHeadings"),this.showBreadcrumbSettings(i,t))}showFileExtAllowList(e,t){this.createSetting(e,"File extension override",'Override the "Show attachments" and the "Show all file types" builtin, system Switcher settings and always search files with the listed extensions. Add one path per line. For example to add ".canvas" file extension, just add "canvas".').addTextArea((e=>{e.setValue(t.fileExtAllowList.join("\n")),e.inputEl.addEventListener("focusout",(()=>{const s=e.getValue().split("\n").map((e=>e.trim())).filter((e=>e.length>0));t.fileExtAllowList=s,t.save()}))}))}showExclusionsGroup(e,t){const s=new a.SettingGroup(e);this.createSetting(s,"Exclusions","Configure which folders and files should be excluded from search results in Headings list mode."),this.showExcludeFolders(s,t),this.addToggleSetting(s,'Hide Obsidian "Excluded files"','Enabled, do not display suggestions for files that are in Obsidian\'s "Options > Files & Links > Excluded files" list. Disabled, suggestions for those files will be displayed but downranked.',t.excludeObsidianIgnoredFiles,"excludeObsidianIgnoredFiles")}showExcludeFolders(e,t){const s="Exclude folders";this.createSetting(e,s,"When in Headings list mode, folder path that match any regex listed here will not be searched for suggestions. Path should start from the Vault Root. Add one path per line.").addTextArea((e=>{e.setValue(t.excludeFolders.join("\n")),e.inputEl.addEventListener("focusout",(()=>{const i=e.getValue().split("\n").filter((e=>e.length>0));this.validateExcludeFolderList(s,i)&&(t.excludeFolders=i,t.save())}))}))}showBreadcrumbSettings(e,t){this.addToggleSetting(e,"Show heading breadcrumbs","Enabled, display the hierarchical path of parent headings leading to each heading suggestion.",t.showHeadingBreadcrumbs,"showHeadingBreadcrumbs"),this.addTextSetting(e,"Breadcrumb separator","The string used to separate heading levels in breadcrumbs",t.headingBreadcrumbSeparator,"headingBreadcrumbSeparator"),this.addSliderSetting(e,"Max breadcrumb depth","Maximum number of heading levels to show in breadcrumbs. Set to 0 for unlimited depth.",t.maxBreadcrumbDepth,[0,6,1,0],"maxBreadcrumbDepth")}validateExcludeFolderList(e,t){let s=!0,i="";for(const e of t)try{new RegExp(e)}catch(t){i+=`${e}
${t}

`,s=!1}if(!s){const t=new a.Modal(this.app);t.titleEl.setText(e),t.contentEl.innerHTML=`Changes not saved. The following regex contain errors:

${i}`,t.open()}return s}}class le extends ee{display(e){const{config:t}=this;this.addSectionTitle(e,"Symbol List Mode"),this.addTextSetting(e,"Symbol list mode trigger","Character that will trigger symbol list mode in the switcher. This triggers a display of Symbols for the source file of the currently selected (highlighted) suggestion in the switcher. If there is not a suggestion, display results for the active editor.",t.symbolListCommand,"symbolListCommand",t.symbolListPlaceholderText),this.addTextSetting(e,"Symbol list mode trigger - Active editor only","Character that will trigger symbol list mode in the switcher. This always triggers a display of Symbols for the active editor only.",t.symbolListActiveEditorCommand,"symbolListActiveEditorCommand",t.symbolListActiveEditorCommand),this.addToggleSetting(e,"List symbols as indented outline","Enabled, symbols will be displayed in the (line) order they appear in the source text, indented under any preceding heading. Disabled, symbols will be grouped by type: Headings, Tags, Links, Embeds.",t.symbolsInLineOrder,"symbolsInLineOrder"),this.addToggleSetting(e,"Auto-select nearest heading","Enabled, in an unfiltered symbol list, select the closest preceding Heading to the current cursor position. Disabled, the first symbol in the list is selected.",t.selectNearestHeading,"selectNearestHeading"),this.addToggleSetting(e,"Show heading breadcrumbs in Symbol mode","Enabled, display the hierarchical path of parent headings when showing heading symbols in Symbol mode.",t.showHeadingBreadcrumbsInSymbolMode,"showHeadingBreadcrumbsInSymbolMode"),this.showEnableSymbolTypesToggle(e,t),this.showEnableLinksToggle(e,t),this.showSymbolTabNavigationBehavior(e,t)}showSymbolTabNavigationBehavior(e,t){const s=new a.SettingGroup(e);this.createSetting(s,"Symbol Tab navigation behavior","Configure how symbols are opened when navigating from the symbol list."),this.addToggleSetting(s,"Open Symbols in new tab","Enabled, always open a new tab when navigating to Symbols. Disabled, navigate in an already open tab (if one exists).",t.alwaysNewTabForSymbols,"alwaysNewTabForSymbols"),this.addToggleSetting(s,"Open Symbols in active tab on mobile devices","Enabled, navigate to the target file and symbol in the active editor tab. Disabled, open a new tab when navigating to Symbols, even on mobile devices.",t.useActiveTabForSymbolsOnMobile,"useActiveTabForSymbolsOnMobile")}showEnableSymbolTypesToggle(e,t){[["Show Headings",s.Heading],["Show Tags",s.Tag],["Show Embeds",s.Embed],["Show Callouts",s.Callout]].forEach((([s,i])=>{this.addToggleSetting(e,s,"",t.isSymbolTypeEnabled(i),null,(e=>{t.setSymbolTypeEnabled(i,e),t.save()}))}))}showEnableLinksToggle(e,t){const n=t.isSymbolTypeEnabled(s.Link),o=new a.SettingGroup(e);if(this.addToggleSetting(o,"Show Links","",n,null,(e=>{t.setSymbolTypeEnabled(s.Link,e),t.saveSettings().then((()=>{this.mainSettingsTab.display()}),(e=>console.log('Switcher++: error saving "Show Links" setting. ',e)))})),n){[["Links to headings",i.Heading],["Links to blocks",i.Block]].forEach((([e,s])=>{const i=(t.excludeLinkSubTypes&s)===s;this.addToggleSetting(o,e,"",!i,null,(e=>this.saveEnableSubLinkChange(s,e)))}))}}saveEnableSubLinkChange(e,t){const{config:s}=this;let i=s.excludeLinkSubTypes;t?i&=~e:i|=e,s.excludeLinkSubTypes=i,s.save()}}class de extends ee{display(e){const{config:t}=this,s=this.addSectionTitle(e,"Vault List Mode");s.nameEl?.createSpan({cls:["qsp-tag","qsp-warning"],text:"Experimental"}),this.addTextSetting(e,"Vault list mode trigger","Character that will trigger vault list mode in the switcher",t.vaultListCommand,"vaultListCommand",t.vaultListPlaceholderText)}}class ce extends a.PluginSettingTab{plugin;config;constructor(e,t,s){super(e,t),this.plugin=t,this.config=s,this.containerEl.addClass("qsp-settings-container")}display(){const{containerEl:e}=this,t=[ne,le,re,oe,ie,te,se,ae,de];e.empty(),t.forEach((e=>{this.displayTabSection(e)}))}displayTabSection(e){const{app:t,config:s,containerEl:i}=this;new e(t,this,s).display(i)}}class he{inputText;mode;parsedCommands;_cleanInput=null;static get defaultParsedCommand(){return{isValidated:!1,index:-1,parsedInput:null}}sessionOpts;currentWorkspaceEnvList={openWorkspaceLeaves:new Set,openWorkspaceFiles:new Set,fileBookmarks:new Map,nonFileBookmarks:new Set,mostRecentFiles:new Set,attachmentFileExtensions:new Set};get parsedInputQuery(){const e=(this.parsedCommand()?.parsedInput??"").trim().toLowerCase();return{query:e,hasSearchTerm:!!e.length}}get cleanInput(){return this._cleanInput??this.inputText}set cleanInput(e){this._cleanInput=e}constructor(e="",s=t.Standard,i){this.inputText=e,this.mode=s,this.sessionOpts=i??{};const n=E();this.parsedCommands={},T().forEach((e=>{const s=t[e];n.includes(s)?this.parsedCommands[s]={...he.defaultParsedCommand,source:null}:this.parsedCommands[s]=he.defaultParsedCommand}))}parsedCommand(e){return e=e??this.mode,this.parsedCommands[e]}}class me{app;settings;facets;constructor(e,t){this.app=e,this.settings=t}reset(){}onNoResultsCreateAction(e,t){return!1}getFacets(e){if(!this.facets){const t=this.settings?.quickFilters?.facetList;t&&(this.facets=Object.values(t).filter((t=>t.mode===e)))}return this.facets??[]}getAvailableFacets(e){return this.getFacets(e.mode).filter((e=>e.isAvailable))}activateFacet(e,t){e.forEach((e=>e.isActive=t)),this.settings.quickFilters.shouldResetActiveFacets||this.settings.save()}getActiveFacetIds(e){const t=this.getAvailableFacets(e).filter((e=>e.isActive)).map((e=>e.id));return new Set(t)}isFacetedWith(e,t){const s=!!e.size;return s&&e.has(t)||!s}getEditorInfo(e){const{excludeViewTypes:t}=this.settings;let s=null,i=!1,n=null;if(e){s=P(e),n=this.getCursorPosition(e);i=!t.includes(e.view.getViewType())&&!!s}return{isValidSource:i,leaf:e,file:s,suggestion:null,cursor:n}}getSuggestionInfo(e){const t=this.getSourceInfoFromSuggestion(e);let s=t.leaf;t.isValidSource&&({leaf:s}=this.findMatchingLeaf(t.file,t.leaf));const i=this.getCursorPosition(s);return{...t,leaf:s,cursor:i}}getSourceInfoFromSuggestion(e){let t=null,s=null;const i=[l.SymbolList,l.Unresolved,l.WorkspaceList,l.CommandList,l.VaultList];e&&!i.includes(e.type)&&(t=e.file),m(e,"type",l.EditorList)&&(s=e.item);return{isValidSource:!!t,leaf:s,file:t,suggestion:e}}getCursorPosition(e){let t=null;if(D(e,"markdown")){const s=e.view;"preview"!==s.getMode()&&(t=s.editor.getCursor("head"))}return t}getTitleText(e){const t=function(e){let t=null;if(e){const{path:s}=e;if(t=s,"md"===e.extension){const e=s.lastIndexOf(".");-1!==e&&e!==s.length-1&&0!==e&&(t=s.slice(0,e))}}return t}(e),s=this.getFirstH1(e);return s?.heading??t}getFirstH1(e){return me.getFirstH1(e,this.app.metadataCache)}static getFirstH1(e,t){let s=null;const i=t.getFileCache(e)?.headings?.filter((e=>1===e.level))??[];return i.length&&(s=i.reduce(((e,t)=>{const{line:s}=t.position.start;return s0?i.trim():"number"==typeof i||"boolean"==typeof i?String(i):null}findMatchingLeaf(e,t,s=!1){let i=null;const n=!!t,{settings:{referenceViews:a,excludeViewTypes:o,includeSidePanelViewTypes:r}}=this,l=i=>{let o=!1;if(i?.view){const r=a.includes(i.view.getViewType()),l=s||!r,d=n&&a.includes(t.view.getViewType());l&&(o=!n||!s&&d?P(i)===e:i===t)}return o},d=this.getActiveLeaf();if(l(d))i=d;else{const e=this.getOpenLeaves(o,r);i=[t,...e].find(l)}return{leaf:i??null,file:e,suggestion:null,isValidSource:!1}}extractTabNavigationType(e,t,s){const i=e?.shiftKey?"horizontal":"vertical",n=e?.key;let o=a.Keymap.isModEvent(e)??!1;return!0!==o&&"tab"!==o||("o"===n?o="window":"\\"===n&&(o="split")),o=this.applyTabCreationPreferences(o,t,s),{navType:o,splitDirection:i}}applyTabCreationPreferences(e,s=!1,i){let n=e;const{onOpenPreferNewTab:o,alwaysNewTabForSymbols:r,useActiveTabForSymbolsOnMobile:l}=this.settings;return!1===e&&(o?n=!s:i===t.SymbolList&&(n=a.Platform.isMobile?!l:r)),n}isMainPanelLeaf(e){const{workspace:t}=this.app,s=e?.getRoot();return s===t.rootSplit||s===t.floatingSplit}async activateLeaf(e,t){const{workspace:s}=this.app;try{await s.revealLeaf(e),s.setActiveLeaf(e,{focus:!0}),e.view.setEphemeralState({focus:!0,...t})}catch(t){const s=e?.getDisplayText();console.log(`Switcher++: error activating WorkspaceLeaf with title: ${s}`,t)}}getOpenLeaves(e,t,s){const i=[];return this.app.workspace.iterateAllLeaves((s=>{const n=s?.view?.getViewType();this.isMainPanelLeaf(s)?e?.includes(n)||i.push(s):t?.includes(n)&&i.push(s)})),s?.orderByAccessTime&&i.sort(((e,t)=>{const s=e?.activeTime??0;return(t?.activeTime??0)-s})),i}static async openFileInLeaf(e,t,s,i,n="vertical"){const a="split"===t?s.getLeaf(t,n):s.getLeaf(t);await a.openFile(e,i)}navigateToLeafOrOpenFile(e,t,s,i,n,a,o=!1){this.navigateToLeafOrOpenFileAsync(e,t,i,n,a,o).catch((e=>{console.log(`Switcher++: error navigating to open file. ${s}`,e)}))}async navigateToLeafOrOpenFileAsync(e,t,s,i,n,a=!1){const{leaf:o}=this.findMatchingLeaf(t,i,a),r=!!o,{navType:l,splitDirection:d}=this.extractTabNavigationType(e,r,n);await this.activateLeafOrOpenFile(l,t,o,s,d)}async activateLeafOrOpenFile(e,t,s,i,n){if(i=i??this.getOpenViewActiveState(),s&&!1===e){const e=i?.eState;await this.activateLeaf(s,e)}else await me.openFileInLeaf(t,e,this.app.workspace,i,n)}renderPath(t,s,i,n,a){if(!t||!s)return;const o=s.parent.isRoot();let r=this.settings.pathDisplayFormat,l=r===e.None||o&&this.settings.hidePathIfRoot;if(a&&(r=e.FolderPathFilenameOptional,l=!1),!l){const e=this.getPathDisplayText(s,r,i);this.renderBreadcrumb(t,e,"lucide-folder-open",n,["qsp-path"])}}renderBreadcrumb(e,t,s,i,n){if(!e||!t)return;const o=["suggestion-note","qsp-note"];n&&o.push(...n);const r=e.createDiv({cls:o}),l=r.createSpan({cls:["qsp-breadcrumb-indicator"]});a.setIcon(l,s);const d=r.createSpan({cls:"qsp-breadcrumb"});a.renderResults(d,t,i)}renderHeadingBreadcrumbs(e,t,s,i){if(!((i??this.settings.showHeadingBreadcrumbs)&&e&&t&&s))return;if(1===t.level)return;const n=function(e,t,s){const i=s.getFileCache(t)?.headings??[],n=e.position.start.line,a=new Map;for(const t of i){const s=t.position.start.line;if(s>=n)continue;if(t.level>=e.level)continue;const i=a.get(t.level);(!i||s>i.position.start.line)&&a.set(t.level,t)}const o=[];for(let t=1;t0&&n.length>a&&o.push("qsp-truncated");const r=function(e,t=" > ",s=0){let i=e;return s>0&&e.length>s&&(i=e.slice(-s)),i.map((e=>e.heading)).join(t)}(n,this.settings.headingBreadcrumbSeparator,a);r&&this.renderBreadcrumb(e,r,"lucide-heading",void 0,o)}renderTags(e,t){const{settings:s}=this;if(!s.showTagsInSuggestions||!e||!t)return;const i=new Set(s.excludeTagsFromDisplay),a=function(e,t,s=n.Both,i){const a=t.getFileCache(e);if(!a)return[];const o=new Set;s!==n.Inline&&s!==n.Both||(a.tags??[]).forEach((e=>o.add(e.tag)));s!==n.Frontmatter&&s!==n.Both||h.getTags(a.frontmatter).forEach((e=>{o.add(e.startsWith("#")?e:`#${e}`)}));let r=Array.from(o);return i&&i.size>0&&(r=r.filter((e=>{const t=e.startsWith("#")?e.slice(1):e;return!i.has(t)}))),r.sort()}(t,this.app.metadataCache,s.tagSource,i);if(0===a.length)return;let o=a;const r=["qsp-tags-breadcrumbs"];s.maxTagsToDisplay>0&&a.length>s.maxTagsToDisplay&&(o=a.slice(0,s.maxTagsToDisplay),r.push("qsp-truncated"));const l=function(e,t=" ",s=!1){return e&&0!==e.length?(s?e.map((e=>e.startsWith("#")?e.slice(1):e)):e).join(t):""}(o,s.tagDisplaySeparator,s.removeHashPrefixFromTags);l&&this.renderBreadcrumb(e,l,"lucide-tags",void 0,r)}getPathDisplayText(t,s,i){let n="";if(t){const{parent:o}=t,r=o.name,l=o.isRoot(),d=this.app.vault.getRoot().path;switch(s){case e.FolderWithFilename:n=l?`${t.name}`:a.normalizePath(`${r}/${t.name}`);break;case e.FolderOnly:n=l?d:r;break;case e.Full:n=t.path;break;case e.FolderPathFilenameOptional:i?(n=o.path,l||(n+=d)):n=this.getPathDisplayText(t,e.Full)}}return n}renderContent(e,t,s,i){const{contentEl:n,titleEl:o}=me.createContentStructureElements(e);return a.renderResults(o,t,s,i),n}static createContentStructureElements(e){const t=e.createDiv({cls:["suggestion-content","qsp-content"]}),s=t.createDiv({cls:["suggestion-title","qsp-title"]});return{contentEl:t,titleEl:s}}static renderMarkdownContentAsync(e,t,s,i){me.renderMarkdownContent(e,t,s,i,V.getRootComponent()).catch((e=>{console.log("Switcher++: error rendering markdown to html. ",e,`content: ${s}`)}))}static async renderMarkdownContent(e,t,s,i,n){const o=t.createDiv({cls:["qsp-rendered-container"]});if(await a.MarkdownRenderer.render(e,s,o,i,n),1===o.childNodes.length&&"P"===o.firstChild.nodeName){const e=o.firstChild;e.replaceWith(...Array.from(e.childNodes))}return o}addClassesToSuggestionContainer(e,t){const s=["mod-complex"];t&&s.push(...t),e?.addClasses(s)}splitSearchMatchesAtBasename(e,t){let s=null,i=null;const n=(e,t)=>{e.forEach((e=>{e[0]-=t,e[1]-=t}))};if(e&&t?.matches){const a=e.path.lastIndexOf(e.basename);if(a>=0){const{matches:e,score:o}=t,r=e[0][0],l=e[e.length-1][1];if(r>=a)s=t,n(s.matches,a);else if(l<=a)i=t;else{let t=e.length;for(;t--;){const r=e[t][0],l=t+1;if(e[t][1]<=a){i={score:o,matches:e.slice(0,l)},s={score:o,matches:e.slice(l)},n(s.matches,a);break}if(r{t=t??o;let s=0;return Object.prototype.hasOwnProperty.call(t,e)&&(s=Number(t[e]?.value)),isNaN(s)?0:s},h=(t,s)=>{let i=0;return(null!==t&&t===n||e[s])&&(i=c(s)),i};d+=h(l.Bookmark,"isBookmarked"),d+=h(l.EditorList,"isOpenInEditor"),d+=h(null,"isRecent"),d+=h(null,"isAttachment"),d+=c(a?.extension,r),g(e)&&(d+=c(`h${e.item?.level}`));const m=n.toString();d+=c(m),i.score+=Math.abs(i.score)/100*(100*d)}}return e}static updateWorkspaceEnvListStatus(e,t){if(e&&t?.file){const{file:s}=t;t.isOpenInEditor=e.openWorkspaceFiles?.has(s),t.isRecent=e.mostRecentFiles?.has(s),t.isBookmarked=e.fileBookmarks?.has(s),t.isAttachment=e.attachmentFileExtensions?.has(s.extension)}return t}renderFileCreationSuggestion(e,t){this.addClassesToSuggestionContainer(e);const s=this.renderContent(e,t,null),i=this.createFlairContainer(e);return i?.createSpan({cls:"suggestion-hotkey",text:"Enter to create"}),s}createFile(e,t){const{workspace:s}=this.app,{navType:i}=this.extractTabNavigationType(t),n=s.getActiveViewOfType(a.FileView);let o="";n?.file&&(o=n.file.path),s.openLinkText(e,o,i,{active:!0}).catch((e=>{console.log("Switcher++: error creating new file. ",e)}))}getOpenViewState(e,t){const s=this.getPreferredViewLinePosition(e),{eState:i}=this.getOpenViewLinePositionState(s),n=this.getOpenViewActiveState(t);return Object.assign(n.eState,i),n}getOpenViewActiveState(e){const{active:t,focus:s}=Object.assign({active:!0,focus:!0},e);return{active:t,eState:{active:t,focus:s}}}getPreferredViewLinePosition(e){const t={line:0,col:0,offset:0};return{start:t,end:t}}getOpenViewLinePositionState(e){const t=Object.assign({line:0,col:0,offset:0},e?.start),s=Object.assign({line:0,col:0,offset:0},e?.end),{line:i,col:n}=t;return{eState:{startLoc:t,endLoc:s,line:i,cursor:{from:{line:i,ch:n},to:{line:i,ch:n}}}}}}class ue{useSimpleSearch;_searchDelegate;query;hasSearchTerm;constructor(e,t){this.useSimpleSearch=t,this.query=(e??"").trim().toLowerCase(),this.hasSearchTerm=!!this.query.length}static create(e,t=!1){return new ue(e,t)}searchWithFallback(e,t){let s,i=d.None,n=null,a=this.searchAndDownrankSecondaryMatch(e);if(a.match)n=a.match,i=d.Primary,s=e;else if(t){const{basename:e,path:o}=t;a=this.searchAndDownrankSecondaryMatch(e,o),a.isPrimary?(i=d.Basename,s=e):a.match&&(i=d.Path,s=o),n=a.match}return{matchType:i,matchText:s,match:n}}searchAndDownrankSecondaryMatch(e,t){let s=!1,i=null;return e&&(i=this.executeSearch(e),s=!!i),!i&&t&&(i=this.executeSearch(t),i&&(i.score-=1)),{isPrimary:s,match:i}}executeSearch(e){const t=this.getSearchDelegate();return t?t(e):null}getSearchDelegate(){if(!this._searchDelegate){const{query:e,useSimpleSearch:t}=this;this._searchDelegate=t?a.prepareSimpleSearch(e):a.prepareFuzzySearch(e)}return this._searchDelegate}}class ge extends me{getCommandString(e){return this.settings?.workspaceListCommand}validateCommand(e,s,i,n,a){const o=e.parsedCommand(t.WorkspaceList);return this.getEnabledWorkspacesPluginInstance()&&(e.mode=t.WorkspaceList,o.index=s,o.parsedInput=i,o.isValidated=!0),o}getSuggestions(e){const t=[];if(e){const{query:s,hasSearchTerm:i}=e.parsedInputQuery,n=ue.create(s);this.getItems().forEach((e=>{let s=!0,a=null;i&&(({match:a}=n.searchWithFallback(e.id)),s=!!a),s&&t.push({type:l.WorkspaceList,item:e,match:a})})),i&&a.sortSearchResults(t)}return t}renderSuggestion(e,t){let s=!1;return e&&(this.addClassesToSuggestionContainer(t,["qsp-suggestion-workspace"]),this.renderContent(t,e.item.id,e.match),s=!0),s}onChooseSuggestion(e,t){let s=!1;if(e){const{id:t}=e.item,i=this.getEnabledWorkspacesPluginInstance();i&&i.loadWorkspace(t),s=!0}return s}onNoResultsCreateAction(e,s){const i=this.getEnabledWorkspacesPluginInstance();if(i){const s=e.parsedCommand(t.WorkspaceList)?.parsedInput;i.saveWorkspace(s),i.setActiveWorkspace(s)}return!0}getItems(){const e=[],t=this.getEnabledWorkspacesPluginInstance()?.workspaces;return t&&Object.keys(t).forEach((t=>e.push({id:t,type:"workspaceInfo"}))),e.sort(((e,t)=>e.id.localeCompare(t.id)))}getEnabledWorkspacesPluginInstance(){return ge.getEnabledWorkspacesPluginInstance(this.app)}static getEnabledWorkspacesPluginInstance(e){return C(e,"workspaces")}}class pe extends me{getCommandString(e){return""}validateCommand(e,t,s,i,n){throw new Error("Method not implemented.")}getSuggestions(e){throw new Error("Method not implemented.")}renderSuggestion(e,t){let s=!1;return p(e)?s=this.renderFileSuggestion(e,t):f(e)&&(s=this.renderAliasSuggestion(e,t)),e?.downranked&&t.addClass("mod-downranked"),s}onChooseSuggestion(e,t){let s=!1;if(e){const{file:i}=e;this.navigateToLeafOrOpenFile(t,i,`Unable to open file from SystemSuggestion ${i.path}`),s=!0}return s}renderFileSuggestion(e,t){let s=!1;if(e){const{file:i,matchType:n,match:a}=e;this.renderAsFileInfoPanel(t,["qsp-suggestion-file"],null,i,n,a),this.renderOptionalIndicators(t,e),s=!0}return s}renderAliasSuggestion(e,t){let s=!1;if(e){const{file:i,matchType:n,match:a}=e;this.renderAsFileInfoPanel(t,["qsp-suggestion-alias"],e.alias,i,n,a,!1);const o=this.renderOptionalIndicators(t,e);this.renderIndicator(o,["qsp-alias-indicator"],"lucide-forward"),s=!0}return s}addPropertiesToStandardSuggestions(e,t){const{match:s}=t;let i=d.None,n=null;s?.matches&&(f(t)?(i=d.Primary,n=t.alias):p(t)&&(i=d.Path,n=t.file.path)),t.matchType=i,t.matchText=n,me.updateWorkspaceEnvListStatus(e,t)}static createUnresolvedSuggestion(e,t,s,i){const n={linktext:e,type:l.Unresolved,...t};return me.applyMatchPriorityPreferences(n,s,i)}}class fe extends me{getCommandString(e){return this.settings?.editorListCommand}validateCommand(e,s,i,n,a){e.mode=t.EditorList;const o=e.parsedCommand(t.EditorList);return o.index=s,o.parsedInput=i,o.isValidated=!0,o}getSuggestions(e){const t=[];if(e){const{query:s,hasSearchTerm:i}=e.parsedInputQuery,n=ue.create(s);this.getItems().forEach((s=>{const a=P(s);let o=!0,r={matchType:d.None,match:null};const l=this.getPreferredTitle(s,this.settings.preferredSourceForTitle);i&&(r=n.searchWithFallback(l,a),o=r.matchType!==d.None),o&&t.push(this.createSuggestion(e.currentWorkspaceEnvList,s,a,r,l))})),i&&a.sortSearchResults(t)}return t}getPreferredTitle(e,t){return fe.getPreferredTitle(e,t,this.app.metadataCache,this.settings.frontmatterTitleProperty)}static getPreferredTitle(e,t,s,i){const n=P(e);let a=e.getDisplayText();if("H1"===t&&n){const e=fe.getFirstH1(n,s);e&&(a=a.replace(n.basename,e.heading))}else if("FrontMatter"===t&&n&&i){const e=s.getFileCache(n)?.frontmatter,t=me.getFrontmatterProperty(e,i);t&&(a=a.replace(n.basename,t))}return a}getItems(){const{excludeViewTypes:e,includeSidePanelViewTypes:t,orderEditorListByAccessTime:s}=this.settings;return this.getOpenLeaves(e,t,{orderByAccessTime:s})}renderSuggestion(e,t){let s=!1;if(e){const{file:i,matchType:n,match:a}=e,o=[d.None,d.Primary].includes(n);this.renderAsFileInfoPanel(t,["qsp-suggestion-editor"],e.preferredTitle,i,n,a,o);const r=t.querySelector(".qsp-content");r&&this.renderTags(r,i),this.renderOptionalIndicators(t,e),s=!0}return s}onChooseSuggestion(e,t){let s=!1;return e&&(this.navigateToLeafOrOpenFile(t,e.file,"Unable to reopen existing editor in new Leaf.",null,e.item,null,!0),s=!0),s}createSuggestion(e,t,s,i,n){return fe.createSuggestion(e,t,s,this.settings,this.app.metadataCache,n,i)}static createSuggestion(e,t,s,i,n,a,o){o=o??{matchType:d.None,match:null,matchText:null};let r={item:t,file:s,preferredTitle:a=a??null,type:l.EditorList,...o};return r=me.updateWorkspaceEnvListStatus(e,r),me.applyMatchPriorityPreferences(r,i,n)}}class ye extends me{getCommandString(e){return this.settings?.bookmarksListCommand}validateCommand(e,s,i,n,a){const o=e.parsedCommand(t.BookmarksList);return this.getEnabledBookmarksPluginInstance()&&(e.mode=t.BookmarksList,o.index=s,o.parsedInput=i,o.isValidated=!0),o}getSuggestions(e){const t=[];if(e){const{query:s,hasSearchTerm:i}=e.parsedInputQuery,n=ue.create(s),{allBookmarks:o}=this.getItems(e);o.forEach((s=>{let a=!0,o={matchType:d.None,match:null};i&&(o=n.searchWithFallback(s.bookmarkPath),a=o.matchType!==d.None),a&&t.push(this.createSuggestion(e.currentWorkspaceEnvList,s,o))})),i&&a.sortSearchResults(t)}return t}renderSuggestion(e,t){let s=!1;if(e&&ye.isBookmarksPluginFileItem(e.item)){const{file:i,matchType:n,match:a,bookmarkPath:o}=e;this.renderAsFileInfoPanel(t,["qsp-suggestion-bookmark"],o,i,n,a);const r=t.querySelector(".qsp-content");r&&this.renderTags(r,i),this.renderOptionalIndicators(t,e),s=!0}return s}onChooseSuggestion(e,t){let s=!1;if(ye.isBookmarksPluginFileItem(e?.item)){const{file:i}=e;this.navigateToLeafOrOpenFile(t,i,`Unable to open file from BookmarkSuggestion ${i?.path}`),s=!0}return s}getPreferredTitle(e,t,s,i){let n=e.getItemTitle(t);if(s)if("H1"===i){const e=this.getFirstH1(s);e&&(n=n.replace(/^[^#]*/,e.heading))}else if("FrontMatter"===i){const e=this.app.metadataCache.getFileCache(s)?.frontmatter,t=me.getFrontmatterProperty(e,this.settings.frontmatterTitleProperty);t&&(n=n.replace(/^[^#]*/,t))}return n}getItems(e){const t=[],s=new Map,i=new Set,n=this.getEnabledBookmarksPluginInstance();if(n){const a=e?this.getActiveFacetIds(e):new Set,o=(e,r)=>{e?.forEach((e=>{if(ye.isBookmarksPluginGroupItem(e))o(e.items,`${r}${e.title}/`);else if(this.isFacetedWith(a,j[e.type])){let a;if(ye.isBookmarksPluginFileItem(e)){const t=this.getTFileByPath(e.path);if(t){a={item:e,bookmarkPath:null,file:t};const i=s.get(t)??[];i.push(a),s.set(t,i)}}else a={item:e,bookmarkPath:null,file:null},i.add(a);if(a){const s=this.getPreferredTitle(n,e,a.file,this.settings.preferredSourceForTitle);a.bookmarkPath=r+s,t.push(a)}}}))};o(n.items,"")}return{allBookmarks:t,fileBookmarks:s,nonFileBookmarks:i}}getEnabledBookmarksPluginInstance(){return C(this.app,"bookmarks")}createSuggestion(e,t,s){return ye.createSuggestion(e,t,this.settings,this.app.metadataCache,s)}static createSuggestion(e,t,s,i,n){let a={type:l.Bookmark,item:t.item,bookmarkPath:t.bookmarkPath,file:t.file,...n};return a=me.updateWorkspaceEnvListStatus(e,a),me.applyMatchPriorityPreferences(a,s,i)}static isBookmarksPluginFileItem(e){return m(e,"type","file")}static isBookmarksPluginGroupItem(e){return m(e,"type","group")}addPropertiesToStandardSuggestions(e,t){const{match:s,item:i}=t;let n=d.None,a=null;if(!t.file&&ye.isBookmarksPluginFileItem(i)){const e=i.path;t.file=this.getTFileByPath(e)}s?.matches&&(n=d.Primary,a=t.bookmarkPath),t.matchType=n,t.matchText=a,me.updateWorkspaceEnvListStatus(e,t)}}const be={file:"lucide-file-text",text:"lucide-sticky-note",link:"lucide-globe",group:"create-group"},Se={table:"lucide-table",list:"lucide-list",cards:"lucide-layout-grid"};class ke extends me{inputInfo;getCommandString(e){const{settings:t}=this;return e?.useActiveEditorAsSource?t.symbolListActiveEditorCommand:t.symbolListCommand}validateCommand(e,s,i,n,a){const o=e.parsedCommand(t.SymbolList),r=this.getSourceInfoForSymbolOperation(n,a,0===s,e.sessionOpts);return r&&(e.mode=t.SymbolList,o.source=r,o.index=s,o.parsedInput=i,o.isValidated=!0),o}async getSuggestions(e){const s=[];if(e){this.inputInfo=e;const{query:i,hasSearchTerm:n}=e.parsedInputQuery,o=ue.create(i),r=e.parsedCommand(t.SymbolList);(await this.getItems(r.source,n)).forEach((e=>{let t=!0,i=null;if(n){const s=ke.getSuggestionTextForSymbol(e);({match:i}=o.searchWithFallback(s)),t=!!i}if(t){const{file:t}=r.source;s.push({type:l.SymbolList,file:t,item:e,match:i})}})),n&&a.sortSearchResults(s)}return s}renderSuggestion(e,t){let s=!1;if(e){const{item:i,file:n,match:a}=e,o=["qsp-suggestion-symbol"];Object.prototype.hasOwnProperty.call(i,"indentLevel")&&this.settings.symbolsInLineOrder&&!this.inputInfo?.parsedInputQuery?.hasSearchTerm&&o.push(`qsp-symbol-l${i.indentLevel}`),this.addClassesToSuggestionContainer(t,o);const{contentEl:r,titleEl:l}=me.createContentStructureElements(t);ke.renderSymbolContent(this.app,this.settings,l,i,n,a),this.renderHeadingBreadcrumbsInSymbolMode(r,i.symbol,n),this.addSymbolIndicator(i,t),s=!0}return s}onChooseSuggestion(e,s){let i=!1;if(e){const n=this.inputInfo.parsedCommand(),{leaf:a,file:o}=n.source,r=this.getOpenViewState(e),{item:l}=e;this.navigateToLeafOrOpenFileAsync(s,o,r,a,t.SymbolList).then((()=>{if(ke.isCanvasSymbolPayload(l)&&this.zoomToCanvasNode(this.getActiveLeaf().view,l.symbol),ke.isBaseViewSymbolPayload(l)){const t=l.symbol,s=e.file?.path,i=`${s}#${t.name}`;this.app.workspace.openLinkText(i,s,!1).catch((e=>{console.log(`Switcher++: Unable to navigate to Base view ${t.name} in file ${s}`,e)}))}}),(e=>{console.log(`Switcher++: Unable to navigate to symbols for file ${o?.path}`,e)})),i=!0}return i}reset(){this.inputInfo=null}getAvailableFacets(e){const i=e.parsedCommand(t.SymbolList),n=ke.isBaseFile(i?.source?.file),a=ke.isCanvasFile(i?.source?.file),o=this.getFacets(e.mode),r=new Set(Object.values(N)),l=new Set(Object.values(W)),d=new Set(Object.values(s).filter((e=>isNaN(Number(e)))));return o.forEach((e=>{const{id:t}=e;e.isAvailable=n?r.has(t):a?l.has(t):d.has(t)})),o.filter((e=>e.isAvailable))}zoomToCanvasNode(e,t){if(ke.isCanvasView(e)&&t){const s=e.canvas,i=s.nodes.get(t.id);s.selectOnly(i),s.zoomToSelection()}}getPreferredViewLinePosition(e){let t=super.getPreferredViewLinePosition();if(e?.item?.symbol){const{item:s}=e;if(!ke.isCanvasSymbolPayload(s)&&!ke.isBaseViewSymbolPayload(s)){t=s.symbol.position}}return t}getSourceInfoForSymbolOperation(e,s,i,n){const a=this.inputInfo;let o=null,r=t.Standard;a&&(o=a.parsedCommand().source,r=a.mode);const l=r===t.SymbolList&&!!o,d=this.getEditorInfo(s),c=this.getSuggestionInfo(e);let h=null;return l?h=o:c.isValidSource&&!n.useActiveEditorAsSource?h=c:d.isValidSource&&i&&(h=d),h}async getItems(e,t){let s=[],i=!1,n=!1;return t||({selectNearestHeading:n,symbolsInLineOrder:i}=this.settings),s=await this.getSymbolsFromSource(e,i),n&&ke.FindNearestHeadingSymbol(s,e),s}static FindNearestHeadingSymbol(e,t){const s=t?.cursor?.line;if(s){let t=null;const i=e.filter((e=>S(e.symbol)));i.length&&(t=i.reduce(((e,t)=>{const{line:i}=t.symbol.position.start,n=e?e.symbol.position.start.line:-1;return e?i>n&&i<=s?t:e:i<=s?t:null}),null)),t&&(t.isSelected=!0)}}async getSymbolsFromSource(e,t){const{app:{metadataCache:i},inputInfo:n}=this,a=[];if(e?.file){const{file:o}=e,r=this.getActiveFacetIds(n);if(ke.isBaseFile(o))await this.addBaseViewsFromSource(o,a,r);else if(ke.isCanvasFile(o))await this.addCanvasSymbolsFromSource(o,a,r);else{const e=i.getFileCache(o);if(e){const i=(e=[],t)=>{this.shouldIncludeSymbol(t,r)&&e.forEach((e=>a.push({type:"symbolInfo",symbol:e,symbolType:t})))};i(e.headings,s.Heading),this.addTagsFromSource(e,a,r),this.addLinksFromSource(e.links,a,r),i(e.embeds,s.Embed),await this.addCalloutsFromSource(o,e.sections?.filter((e=>"callout"===e.type)),a,r),t&&ke.orderSymbolsByLineNumber(a)}}}return a}shouldIncludeSymbol(e,t){let i=!1;return i="string"==typeof e?this.isFacetedWith(t,e):this.settings.isSymbolTypeEnabled(e)&&this.isFacetedWith(t,s[e]),i}async addCanvasSymbolsFromSource(e,t,i){let n;try{const t=await this.app.vault.cachedRead(e);n=JSON.parse(t).nodes}catch(t){console.log(`Switcher++: error reading file to extract canvas node information. ${e.path} `,t)}Array.isArray(n)&&n.forEach((e=>{this.shouldIncludeSymbol(W[e.type],i)&&t.push({type:"symbolInfo",symbolType:s.CanvasNode,symbol:{...e}})}))}async addBaseViewsFromSource(e,t,i){let n;try{const t=await this.app.vault.cachedRead(e);n=a.parseYaml(t)}catch(t){return void console.log(`Switcher++: error reading file to extract base view information. ${e.path} `,t)}n&&n?.views&&Array.isArray(n.views)&&n.views.forEach((e=>{const n=N[e.type];(n?this.shouldIncludeSymbol(n,i):0===i.size)&&t.push({type:"symbolInfo",symbolType:s.BaseView,symbol:{type:e.type,name:e.name}})}))}async addCalloutsFromSource(e,t,i,n){const{app:{vault:a}}=this;if(this.shouldIncludeSymbol(s.Callout,n)&&t?.length&&e){let n=null;try{n=await a.cachedRead(e)}catch(t){console.log(`Switcher++: error reading file to extract callout information. ${e.path} `,t)}if(n)for(const e of t){const{start:t,end:a}=e.position,o=n.slice(t.offset,a.offset).match(/^> \[!([^\]]+)\][+-]?(.*?)(?:\n>|$)/);if(o){const t=o[1],n={calloutTitle:o[o.length-1].trim(),calloutType:t,...e};i.push({type:"symbolInfo",symbolType:s.Callout,symbol:n})}}}}addLinksFromSource(e,t,i){const{settings:n}=this;if(e=e??[],this.shouldIncludeSymbol(s.Link,i))for(const i of e){const e=A(i);(n.excludeLinkSubTypes&e)===e||t.push({type:"symbolInfo",symbol:i,symbolType:s.Link})}}addTagsFromSource(e,t,i){if(!this.shouldIncludeSymbol(s.Tag,i))return;const n=new Set,a=e.tags??[];for(const e of a)n.add(e.tag.toLowerCase()),t.push({type:"symbolInfo",symbol:e,symbolType:s.Tag});const o=e.frontmatter;if(o){const i=h.getTags(o),a=e.frontmatterPosition??{start:{line:0,col:0,offset:0},end:{line:0,col:0,offset:0}};for(const e of i){const i=e.startsWith("#")?e:`#${e}`;if(n.has(i.toLowerCase()))continue;const o={tag:i,position:a};t.push({type:"symbolInfo",symbol:o,symbolType:s.Tag})}}}static orderSymbolsByLineNumber(e){const t=e.sort(((e,t)=>{const{start:s}=e.symbol.position,{start:i}=t.symbol.position,n=s.line-i.line;return 0===n?s.col-i.col:n}));let s=0;return t.forEach((e=>{let t=0;S(e.symbol)?(s=e.symbol.level,t=e.symbol.level-1):t=s,e.indentLevel=t})),t}static getMarkdownContentForSymbol(e,t){const{symbol:s}=e;if(S(s))return s.heading.replace(/^(\d+)\./,"$1\\.");if(k(s))return s.tag;if(w(s))return s.calloutTitle;const i=s;return i.original?i.original:null}static renderSymbolContent(e,t,s,i,n,o,r){const l=ke.getMarkdownContentForSymbol(i,n);if((r??(null!==l&&t.shouldRenderSymbolAsHTML(i.symbolType)))&&null!==l)me.renderMarkdownContentAsync(e,s,l,n.path);else{const e=ke.getSuggestionTextForSymbol(i);a.renderResults(s,e,o)}}static getSuggestionTextForSymbol(e){const{symbol:t}=e;let s;if(S(t))s=t.heading;else if(k(t))s=t.tag.slice(1);else if(w(t))s=t.calloutTitle;else if(ke.isCanvasSymbolPayload(e))s=ke.getSuggestionTextForCanvasNode(e.symbol);else if(ke.isBaseViewSymbolPayload(e))s=e.symbol.name;else{const e=t;({link:s}=e);const{displayText:i}=e;i&&i!==s&&(s+=`|${i}`)}return s}static getSuggestionTextForCanvasNode(e){let t="";const s={file:()=>e.file,text:()=>e.text,link:()=>e.url,group:()=>e.label}[e?.type];return s&&(t=s()),t}addSymbolIndicator(e,t){const{symbolType:s,symbol:i}=e,n=["qsp-symbol-indicator"],l=this.createFlairContainer(t);if(w(i)){n.push("suggestion-flair","callout","callout-icon","svg-icon");const e=l.createSpan({cls:n,attr:{"data-callout":i.calloutType}}),t=e.getCssPropertyValue("--callout-icon");a.setIcon(e,t)}else if(ke.isCanvasSymbolPayload(e)){const t=be[e.symbol.type];this.renderIndicator(l,n,t,null)}else if(ke.isBaseViewSymbolPayload(e)){const t=e.symbol,s=Se[t.type]||Se.table;this.renderIndicator(l,n,s,null)}else{let e;e=S(i)?r[i.level]:o[s],this.renderIndicator(l,n,null,e)}}renderHeadingBreadcrumbsInSymbolMode(e,t,s){S(t)&&this.renderHeadingBreadcrumbs(e,t,s,this.settings.showHeadingBreadcrumbsInSymbolMode)}static isCanvasSymbolPayload(e){return e.symbolType===s.CanvasNode}static isBaseViewSymbolPayload(e){return e.symbolType===s.BaseView}static isCanvasFile(e){return"canvas"===e?.extension}static isCanvasView(e){return"canvas"===e?.getViewType()}static isBaseFile(e){return"base"===e?.extension}static isBaseView(e){return"bases"===e?.getViewType()}}class we extends me{getCommandString(e){return this.settings?.headingsListCommand}validateCommand(e,s,i,n,a){e.mode=t.HeadingsList;const o=e.parsedCommand(t.HeadingsList);return o.index=s,o.parsedInput=i,o.isValidated=!0,o}onChooseSuggestion(e,t){let s=!1;if(e){const i=this.getOpenViewState(e);this.navigateToLeafOrOpenFile(t,e.file,"Unable to navigate to heading for file.",i),s=!0}return s}getPreferredViewLinePosition(e){return e?.item?.position}renderSuggestion(e,t){let s=!1;if(e){const{item:i,file:n,match:a}=e,{app:o,settings:l}=this;this.addClassesToSuggestionContainer(t,["qsp-suggestion-headings",`qsp-headings-l${i.level}`]);const{contentEl:d,titleEl:c}=me.createContentStructureElements(t);we.renderHeadingContent(o,l,c,i,n,a),this.renderHeadingBreadcrumbs(d,i,n),this.renderTags(d,n),this.renderPath(d,n);const h=this.createFlairContainer(t);this.renderOptionalIndicators(t,e,h),this.renderIndicator(h,["qsp-headings-indicator"],null,r[i.level]),e.downranked&&t.addClass("mod-downranked"),s=!0}return s}static renderHeadingContent(e,t,i,n,a,o,r){const l={type:"symbolInfo",symbol:n,symbolType:s.Heading};ke.renderSymbolContent(e,t,i,l,a,o,r)}getAvailableFacets(e){const{settings:{shouldSearchHeadings:t,shouldSearchBookmarks:s,shouldSearchFilenames:i,shouldSearchRecentFiles:n,builtInSystemOptions:{showAttachments:a,showAllFileTypes:o}}}=this,r=a||o,l={[G.RecentFiles]:n,[G.Bookmarks]:s,[G.Filenames]:i,[G.Headings]:t,[G.ExternalFiles]:r};return this.getFacets(e.mode).filter((e=>(Object.prototype.hasOwnProperty.call(l,e.id)&&(e.isAvailable=l[e.id]),e.isAvailable)))}getSuggestions(e){let t=[];if(e){const{hasSearchTerm:s}=e.parsedInputQuery,{settings:i}=this,n=this.getActiveFacetIds(e),o=!!n.size;if(s||o){const{limit:s}=i,{app:{vault:o}}=this,r={headings:i.shouldSearchHeadings,allHeadings:i.searchAllHeadings,aliases:i.shouldShowAlias,bookmarks:i.shouldSearchBookmarks,filename:i.shouldSearchFilenames,filenameAsFallback:!i.strictHeadingsOnly,unresolved:!i.showExistingOnly};this.getItems([o.getRoot()],e,t,n,r),a.sortSearchResults(t),s>0&&t.length>s&&(t=t.slice(0,s))}else this.getSuggestionsForEditorsAndRecentFiles(e,t,new Set,{editors:!0,recentFiles:i.shouldSearchRecentFiles})}return t}getItems(e,t,s,i,n){const a=!!i.size,o=ue.create(t.parsedInputQuery.query);this.getSuggestionsForEditorsAndRecentFiles(t,s,i,{editors:!1,recentFiles:!1});const r={fileBookmarks:n.bookmarks,nonFileBookmarks:n.bookmarks};this.getSuggestionsForBookmarks(t,o,s,i,r);const l={headings:n.headings,allHeadings:n.allHeadings,aliases:n.aliases,filename:n.filename,filenameAsFallback:n.filenameAsFallback};this.getSuggestionForFiles(t,o,e,s,i,l),n.unresolved&&!a&&this.addUnresolvedSuggestions(s,o)}getSuggestionsForBookmarks(e,t,s,i,n){const a=!!i.size,{fileBookmarks:o,nonFileBookmarks:r}=e.currentWorkspaceEnvList;if(a){const e=i.has(G.Bookmarks);n=Object.assign(n,{fileBookmarks:e,nonFileBookmarks:e})}const l=i=>{for(const n of i)this.addBookmarkSuggestion(e,s,t,n)};n.fileBookmarks&&o.forEach((e=>{l(e)})),n.nonFileBookmarks&&l(r)}getSuggestionForFiles(e,t,s,i,n,a){if(!!n.size){const e=this.isFacetedWith(n,G.Headings),t=this.isFacetedWith(n,G.ExternalFiles)||this.isFacetedWith(n,G.Filenames);let s=!1,i=!1;e&&(s=!0===a.allHeadings,i=!0===a.filenameAsFallback),a=Object.assign(a,{headings:e,aliases:!1,filename:t,allHeadings:s,filenameAsFallback:i})}else a=Object.assign({headings:!0,allHeadings:!0,aliases:!0,filename:!0,filenameAsFallback:!0},a);if([a.headings,a.aliases,a.filename].some((e=>!0===e))){const{excludeFolders:o}=this.settings,r=x(o);let l=Array.prototype.concat(s);for(;l.length>0;){const s=l.pop();v(s)?this.shouldIncludeFile(s,n)&&this.addSuggestionsForFile(e,t,i,s,a):r(s.path)||(l=l.concat(s.children))}}}addSuggestionsForFile(e,t,s,i,n){let a=!1;n.headings&&(a=this.addHeadingSuggestions(e,t,s,i,n.allHeadings)),(n.filename||!a&&n.filenameAsFallback)&&this.addFileSuggestions(e,t,s,i),n.aliases&&this.addAliasSuggestions(e,t,s,i)}shouldIncludeFile(e,t=new Set){let s=!1;if(e){const i=new Set(["md","canvas"]),{extension:n}=e,{app:{viewRegistry:a,metadataCache:o},settings:{excludeObsidianIgnoredFiles:r,fileExtAllowList:l,builtInSystemOptions:{showAttachments:d,showAllFileTypes:c}}}=this;if(!(r&&o.isUserIgnored(e.path)))if(t.has(G.ExternalFiles)){const e=d||c;s=!i.has(n)&&e}else{s=this.isExternalFileTypeAllowed(e,a,d,c,l)||i.has(n)}}return s}isExternalFileTypeAllowed(e,t,s,i,n){const{extension:a}=e;let o=t.isExtensionRegistered(a)?s:i;if(!o){o=new Set(n).has(a)}return o}addAliasSuggestions(e,t,s,i){const{metadataCache:n}=this.app,a=n.getFileCache(i)?.frontmatter;if(a){const n=h.getAliases(a);let o=n.length;for(;o--;){const a=n[o],{match:r}=t.searchWithFallback(a);r&&s.push(this.createAliasSuggestion(e,a,i,r))}}}addFileSuggestions(e,t,s,i){const{match:n,matchType:a,matchText:o}=t.searchWithFallback(null,i);n&&s.push(this.createFileSuggestion(e,i,n,a,o))}addBookmarkSuggestion(e,t,s,i){const n=s.searchWithFallback(i.bookmarkPath);if(n.match){const s=ye.createSuggestion(e.currentWorkspaceEnvList,i,this.settings,this.app.metadataCache,n);t.push(s)}}addHeadingSuggestions(e,t,s,i,n){const{metadataCache:a}=this.app,o=a.getFileCache(i)?.headings??[];let r=null,l=!1,d=o.length;for(;d--;){const a=o[d];let c=!1;if(n&&(c=this.matchAndPushHeading(e,t,s,i,a)),1===a.level){const{line:e}=a.position.start;(null===r||e{this.addOpenEditorSuggestions(s,e,a,t)}))}if(i.recentFiles){const i=e.currentWorkspaceEnvList?.mostRecentFiles;i?.forEach((i=>{this.shouldIncludeFile(i,s)&&this.addRecentFilesSuggestions(i,e,a,t)}))}}onNoResultsCreateAction(e,s){const i=e.parsedCommand(t.HeadingsList)?.parsedInput;return this.createFile(i,s),!0}}class ve extends me{static recentlyUsedCommandIds=[];getCommandString(e){return this.settings?.commandListCommand}validateCommand(e,s,i,n,a){const o=e.parsedCommand(t.CommandList);return this.getEnabledCommandPalettePluginInstance()&&(e.mode=t.CommandList,o.index=s,o.parsedInput=i,o.isValidated=!0),o}getSuggestions(e){const t=[];if(e){const{query:s,hasSearchTerm:i}=e.parsedInputQuery,n=ue.create(s);this.getItems(e,i).forEach((e=>{let s=!0,a=null;i&&(({match:a}=n.searchWithFallback(e.cmd.name)),s=!!a),s&&t.push(this.createSuggestion(e,a))})),i&&a.sortSearchResults(t)}return t}renderSuggestion(e,t){let s=!1;if(e){const{item:i,match:n,isPinned:a,isRecent:o}=e;this.addClassesToSuggestionContainer(t,["qsp-suggestion-command"]),this.renderContent(t,i.name,n);const r=this.createFlairContainer(t);this.renderHotkeyForCommand(i.id,this.app,r),i.icon&&this.renderIndicator(r,[],i.icon),a?this.renderIndicator(r,[],"filled-pin"):o&&this.renderOptionalIndicators(t,e,r),s=!0}return s}renderHotkeyForCommand(e,t,s){try{const{hotkeyManager:i}=t;if(i.getHotkeys(e)||i.getDefaultHotkeys(e)){const t=i.printHotkeyForCommand(e);t?.length&&s.createEl("kbd",{cls:"suggestion-hotkey",text:t})}}catch(t){console.log("Switcher++: error rendering hotkey for command id: ",e,t)}}onChooseSuggestion(e){let t=!1;if(e){const{item:s}=e;this.app.commands.executeCommandById(s.id),this.saveUsageToList(s.id,ve.recentlyUsedCommandIds),t=!0}return t}saveUsageToList(e,t){if(t){const s=t.indexOf(e);s>-1&&t.splice(s,1),t.unshift(e),t.splice(this.settings.maxRecentCommands)}}getItems(e,t){let s=[];const i=this.getActiveFacetIds(e);if(!!i.size)s=this.getPinnedAndRecentCommands(i);else if(t)s=this.getAllCommands();else{const e=this.getPinnedAndRecentCommands(i);s=e.length?e:this.getAllCommands()}return s}getPinnedAndRecentCommands(e){const t=[],s=this.getPinnedCommandIds(),i=this.getRecentCommandIds(),n=e=>{let t=null;const n=this.app.commands.findCommand(e);return n&&(t={isPinned:s.has(e),isRecent:i.has(e),cmd:n}),t},a=(s,i)=>{this.isFacetedWith(e,s)&&i.forEach((e=>{const s=n(e);s&&t.push(s)}))};a(U.Pinned,Array.from(s));const o=this.isFacetedWith(e,U.Pinned),r=Array.from(i).filter((e=>!o||o&&!s.has(e)));return"asc"===this.settings.recentCommandDisplayOrder&&r.reverse(),a(U.Recent,r),t}getAllCommands(){const e=this.getPinnedCommandIds(),t=this.getRecentCommandIds();return this.app.commands.listCommands()?.sort(((e,t)=>e.name.localeCompare(t.name))).map((s=>({isPinned:e.has(s.id),isRecent:t.has(s.id),cmd:s})))}getPinnedCommandIds(){const e=this.getEnabledCommandPalettePluginInstance()?.options?.pinned;return new Set(e??[])}getRecentCommandIds(){return new Set(ve.recentlyUsedCommandIds)}createSuggestion(e,t){const{cmd:s,isPinned:i,isRecent:n}=e,a={type:l.CommandList,item:s,isPinned:i,isRecent:n,match:t};return this.applyMatchPriorityPreferences(a)}getEnabledCommandPalettePluginInstance(){return ve.getEnabledCommandPalettePluginInstance(this.app)}static getEnabledCommandPalettePluginInstance(e){return C(e,"command-palette")}}class Ce extends me{inputInfo;getCommandString(e){const{settings:t}=this;return e?.useActiveEditorAsSource?t.relatedItemsListActiveEditorCommand:t.relatedItemsListCommand}validateCommand(e,s,i,n,a){const o=e.parsedCommand(t.RelatedItemsList),r=this.getSourceInfo(n,a,0===s,e.sessionOpts);return r&&(e.mode=t.RelatedItemsList,o.source=r,o.index=s,o.parsedInput=i,o.isValidated=!0),o}getSuggestions(e){const s=[];if(e){this.inputInfo=e;const i=ue.create(e.parsedInputQuery.query),n=e.parsedCommand(t.RelatedItemsList);this.getItems(n.source,e).forEach((t=>{const n=this.searchAndCreateSuggestion(e,i,t);n&&s.push(n)})),i.hasSearchTerm&&a.sortSearchResults(s)}return s}renderSuggestion(e,t){let s=!1;if(e){const{file:i,matchType:n,match:a,item:o}=e,r=new Map([[c.Backlink,"links-coming-in"],[c.DiskLocation,"folder-tree"],[c.OutgoingLink,"links-going-out"]]);t.setAttribute("data-relation-type",o.relationType),this.renderAsFileInfoPanel(t,["qsp-suggestion-related"],e.preferredTitle,i,n,a);const l=this.renderOptionalIndicators(t,e);e.item.count&&this.renderIndicator(l,[],null,`${e.item.count}`),this.renderIndicator(l,["qsp-related-indicator"],r.get(o.relationType)),s=!0}return s}onChooseSuggestion(e,t){let s=!1;if(e){const{file:i}=e;this.navigateToLeafOrOpenFile(t,i,`Unable to open related file ${i.path}`),s=!0}return s}getPreferredTitle(e,t){let s=null;const{file:i,unresolvedText:n}=e;if(i){if("H1"===t)s=this.getFirstH1(i)?.heading??null;else if("FrontMatter"===t){const e=this.app.metadataCache.getFileCache(i)?.frontmatter;s=me.getFrontmatterProperty(e,this.settings.frontmatterTitleProperty)}}else{!!n?.length&&(s=n)}return s}searchAndCreateSuggestion(e,t,s){const{file:i,unresolvedText:n}=s;let a={matchType:d.None,match:null};const o=null===i&&n?.length,{currentWorkspaceEnvList:r}=e,{settings:l,app:{metadataCache:c}}=this,h=this.getPreferredTitle(s,l.preferredSourceForTitle);return t.hasSearchTerm&&(a=t.searchWithFallback(h,i),a.matchType===d.None)?null:o?pe.createUnresolvedSuggestion(h,a,l,c):this.createSuggestion(r,s,a,h)}getItems(e,t){const s=[],{metadataCache:i}=this.app,{file:n,suggestion:a}=e,o=new Set(this.settings.enabledRelatedItems),r=this.getActiveFacetIds(t),l=e=>o.has(e)&&this.isFacetedWith(r,e);if(l(c.Backlink)){let e=n?.path,t=i.resolvedLinks;y(a)&&(e=a.linktext,t=i.unresolvedLinks),this.addBacklinks(e,t,s)}return l(c.DiskLocation)&&this.addRelatedDiskFiles(n,s),l(c.OutgoingLink)&&this.addOutgoingLinks(n,s),s}addRelatedDiskFiles(e,t){const{excludeRelatedFolders:s,excludeOpenRelatedFiles:i}=this.settings;if(e){const n=x(s);let a=[...e.parent.children];for(;a.length>0;){const s=a.pop();if(v(s)){s===e||i&&!!this.findMatchingLeaf(s).leaf||t.push({file:s,relationType:c.DiskLocation})}else n(s.path)||(a=a.concat(s.children))}}}addOutgoingLinks(e,t){if(e){const s=new Map,i=new Map,{metadataCache:n}=this.app,a=n.getFileCache(e).links??[],o=e=>!!e&&!!(e.count+=1);a.forEach((a=>{const r=a.link,l=n.getFirstLinkpathDest(r,e.path);let d;l?o(i.get(l))||l===e||(d={file:l,relationType:c.OutgoingLink,count:1},i.set(l,d),t.push(d)):o(s.get(r))||(d={file:null,relationType:c.OutgoingLink,unresolvedText:r,count:1},s.set(r,d),t.push(d))}))}}addBacklinks(e,t,s){for(const[i,n]of Object.entries(t))if(i!==e&&Object.prototype.hasOwnProperty.call(n,e)){const t=n[e],a=this.getTFileByPath(i);a&&s.push({count:t,file:a,relationType:c.Backlink})}}reset(){this.inputInfo=null}getSourceInfo(e,s,i,n){const a=this.inputInfo;let o=null,r=t.Standard;a&&(o=a.parsedCommand().source,r=a.mode);const l=r===t.RelatedItemsList&&!!o,d=this.getEditorInfo(s),c=this.getSuggestionInfo(e);!c.isValidSource&&y(e)&&(c.isValidSource=!0);let h=null;return l?h=o:c.isValidSource&&!n.useActiveEditorAsSource?h=c:d.isValidSource&&i&&(h=d),h}createSuggestion(e,t,s,i){let n={item:t,file:t?.file,type:l.RelatedItemsList,preferredTitle:i,...s};return n=me.updateWorkspaceEnvListStatus(e,n),this.applyMatchPriorityPreferences(n)}}class Ie extends me{mobileVaultChooserMarker={type:l.VaultList,match:null,item:null,pathSegments:null};getCommandString(e){return this.settings?.vaultListCommand}validateCommand(e,s,i,n,a){e.mode=t.VaultList;const o=e.parsedCommand(t.VaultList);return o.index=s,o.parsedInput=i,o.isValidated=!0,o}getSuggestions(e){const t=[];if(e){const{query:s,hasSearchTerm:i}=e.parsedInputQuery,n=ue.create(s);this.getItems().forEach((e=>{let s=!0;if(i){const t=n.searchWithFallback(null,e.pathSegments);Object.assign(e,t),s=!!t.match}s&&t.push(e)})),i&&a.sortSearchResults(t)}return t}renderSuggestion(e,t){let s=!1;return e&&(this.addClassesToSuggestionContainer(t,["qsp-suggestion-vault"]),s=!0,a.Platform.isDesktop?this.renderVaultSuggestion(e,t):e===this.mobileVaultChooserMarker&&this.renderMobileHintSuggestion(t)),s}renderMobileHintSuggestion(e){this.renderContent(e,"Show mobile vault chooser",null)}renderVaultSuggestion(e,t){const{pathSegments:s,matchType:i}=e;let{match:n}=e,o=null;i===d.Basename&&(o=n,n=null);const r=this.renderContent(t,s.basename,o).createDiv({cls:["suggestion-note","qsp-note"]}),l=r.createSpan({cls:["qsp-path-indicator"]}),c=r.createSpan({cls:"qsp-path"});a.setIcon(l,"folder"),a.renderResults(c,s.path,n)}onChooseSuggestion(e,t){let s=!1;return e&&(a.Platform.isDesktop?(this.openVaultOnDesktop(e.pathSegments?.path),s=!0):e===this.mobileVaultChooserMarker&&(this.app.openVaultChooser(),s=!0)),s}getItems(){const e=[];if(a.Platform.isDesktop)try{const t=this.getVaultListDataOnDesktop();for(const[s,{path:i,open:n}]of Object.entries(t)){const t=F(i),a={type:l.VaultList,match:null,item:s,isOpen:!!n,pathSegments:{basename:t,path:i}};e.push(a)}}catch(e){console.log("Switcher++: error parsing vault data. ",e)}else e.push(this.mobileVaultChooserMarker);return e.sort(((e,t)=>e.pathSegments.basename.localeCompare(t.pathSegments.basename)))}getIpcRenderer(){if(!a.Platform.isDesktop)return null;try{return window.require("electron").ipcRenderer}catch{return null}}openVaultOnDesktop(e){const t=this.getIpcRenderer();if(t)try{t.sendSync("vault-open",e,!1)}catch(t){console.log(`Switcher++: error opening vault with path: ${e} `,t)}}getVaultListDataOnDesktop(){let e=null;const t=this.getIpcRenderer();if(t)try{e=t.sendSync("vault-list")}catch(e){console.log("Switcher++: error retrieving list of available vaults. ",e)}return e}}class Le{app;config;static instance;instanceCache=new Map;modeToHandlerClass=new Map;suggestionTypeToMode=new Map;cmdStrToMode=new Map;sourcedHandlerModes=new Set;constructor(e,t,s){this.app=e,this.config=t;for(const e of s)e.handlerClass&&(this.modeToHandlerClass.set(e.mode,e.handlerClass),this.mapSuggestionTypesToMode(e),this.mapCommandStrToMode(e),this.registerSourcedHandler(e))}static initialize(e,t,s){this.instance?console.warn("Switcher++: HandlerRegistry already initialized."):this.instance=new Le(e,t,s)}static reset(){this.instance=null}static getInstance(){return this.instance??null}getHandler(e){let t=null;const s=this.resolveMode(e);if(s)if(this.instanceCache.has(s))t=this.instanceCache.get(s)??null;else{const e=this.modeToHandlerClass.get(s);if(e){const i=new e(this.app,this.config);this.instanceCache.set(s,i),t=i}}return t}resetSourcedHandlers(e){const t=new Set(e);for(const e of this.sourcedHandlerModes){const s=this.instanceCache.get(e);s&&!t.has(s)&&s.reset()}}mapSuggestionTypesToMode(e){e.ownSuggestionTypes?.forEach((t=>{this.suggestionTypeToMode.set(t,e.mode)}))}mapCommandStrToMode(e){const t=e.parserCommand?.getCommandStr();t?.length&&this.cmdStrToMode.set(t,e.mode)}registerSourcedHandler(e){"sourced"===e.parserCommand?.type&&this.sourcedHandlerModes.add(e.mode)}resolveMode(e){let s;return"number"==typeof e&&Object.values(t).includes(e)?s=e:m(e,"type")?s=this.suggestionTypeToMode.get(e.type):"string"==typeof e&&(s=this.cmdStrToMode.get(e)),s}}class Te{commandMap=new Map;escapeCmdChar;handlerRegistry;constructor(e,t,s){this.handlerRegistry=e,this.escapeCmdChar=t.escapeCmdChar,this.commandMap=this.buildCommandMap(s)}parseInputForMode(e,s,i){const{cleanInput:n,resolvedCommands:a}=this.parse(e.inputText);e.cleanInput=n;this.findFirstValidCommand(a,e,s,i)||(this.handlerRegistry.resetSourcedHandlers(),e.mode=t.Standard)}parse(e){let t="";const s=[],i=this.escapeCmdChar.length;let n=0;for(;n0){const i=e[0];t.has(i)||t.set(i,[]),t.get(i)?.push({cmdDef:s,cmdStr:e})}}for(const e of t.values())e.sort(((e,t)=>t.cmdStr.length-e.cmdStr.length));return t}findCommandMatch(e,t){const s=this.commandMap.get(e[t]);if(!s)return null;for(const i of s)if(e.startsWith(i.cmdStr,t))return i;return null}resolveCommandPrecedence(e,t){const s=[];let i;for(const n of e){const e=n.indexInCleanInput+n.cmdStr.length,a=t.substring(e),o={cmdDef:n.cmdDef,cmdStr:n.cmdStr,indexInCleanInput:n.indexInCleanInput,filterText:a},r=n.cmdDef.parserCommand.type;"prefix"!==r||0!==n.indexInCleanInput||i?"sourced"===r&&s.push(o):i=o}return s.sort(((e,t)=>e.indexInCleanInput-t.indexInCleanInput)),i?[...s,i]:s}findFirstValidCommand(e,t,s,i){for(const n of e){const e=this.handlerRegistry.getHandler(n.cmdDef.mode);if(!e)continue;t.sessionOpts.useActiveEditorAsSource=n.cmdDef.parserCommand.useActiveEditorAsSource;if(e.validateCommand(t,n.indexInCleanInput,n.filterText,s,i).isValidated){const t="sourced"===n.cmdDef.parserCommand.type?[e]:[];return this.handlerRegistry.resetSourcedHandlers(t),!0}}return!1}}const Ee={};class Fe{app;settings;exKeymap;_inputInfo;get inputInfo(){return this._inputInfo}get previousInputHistory(){return Ee}_handlerRegistry;get handlerRegistry(){return this._handlerRegistry}_inputParser;get inputParser(){return this._inputParser}debouncedGetSuggestions;workspaceEnvList=null;sessionOpts={};noResultActionModes=[t.HeadingsList,t.WorkspaceList];constructor(e,s,i){this.app=e,this.settings=s,this.exKeymap=i;const n=(o=s,[{commandId:"switcher-plus:open",commandName:"Open in Standard Mode",mode:t.Standard,iconId:"lucide-file-search",handlerClass:pe,ownSuggestionTypes:[l.Alias,l.File],parserCommand:{type:"none",getCommandStr:()=>""}},{commandId:"switcher-plus:open-editors",commandName:"Open in Editor Mode",mode:t.EditorList,iconId:"lucide-file-edit",handlerClass:fe,ownSuggestionTypes:[l.EditorList],parserCommand:{type:"prefix",getCommandStr:()=>o.editorListCommand}},{commandId:"switcher-plus:open-symbols",commandName:"Open Symbols for selected suggestion or editor",mode:t.SymbolList,iconId:"lucide-dollar-sign",handlerClass:ke,ownSuggestionTypes:[l.SymbolList],parserCommand:{type:"sourced",getCommandStr:()=>o.symbolListCommand}},{commandId:"switcher-plus:open-symbols-active",commandName:"Open Symbols for the active editor",mode:t.SymbolList,iconId:"lucide-dollar-sign",handlerClass:ke,parserCommand:{type:"prefix",getCommandStr:()=>o.symbolListActiveEditorCommand,useActiveEditorAsSource:!0}},{commandId:"switcher-plus:open-workspaces",commandName:"Open in Workspaces Mode",mode:t.WorkspaceList,iconId:"lucide-album",handlerClass:ge,ownSuggestionTypes:[l.WorkspaceList],parserCommand:{type:"prefix",getCommandStr:()=>o.workspaceListCommand}},{commandId:"switcher-plus:open-headings",commandName:"Open in Headings Mode",mode:t.HeadingsList,iconId:"lucide-file-search",handlerClass:we,ownSuggestionTypes:[l.HeadingsList],parserCommand:{type:"prefix",getCommandStr:()=>o.headingsListCommand}},{commandId:"switcher-plus:open-starred",commandName:"Open in Bookmarks Mode",mode:t.BookmarksList,iconId:"lucide-bookmark",handlerClass:ye,ownSuggestionTypes:[l.Bookmark],parserCommand:{type:"prefix",getCommandStr:()=>o.bookmarksListCommand}},{commandId:"switcher-plus:open-commands",commandName:"Open in Commands Mode",mode:t.CommandList,iconId:"run-command",handlerClass:ve,ownSuggestionTypes:[l.CommandList],parserCommand:{type:"prefix",getCommandStr:()=>o.commandListCommand}},{commandId:"switcher-plus:open-related-items",commandName:"Open Related Items for selected suggestion or editor",mode:t.RelatedItemsList,iconId:"lucide-file-plus-2",handlerClass:Ce,ownSuggestionTypes:[l.RelatedItemsList],parserCommand:{type:"sourced",getCommandStr:()=>o.relatedItemsListCommand}},{commandId:"switcher-plus:open-related-items-active",commandName:"Open Related Items for the active editor",mode:t.RelatedItemsList,iconId:"lucide-file-plus-2",handlerClass:Ce,parserCommand:{type:"prefix",getCommandStr:()=>o.relatedItemsListActiveEditorCommand,useActiveEditorAsSource:!0}},{commandId:"switcher-plus:open-vaults",commandName:"Open in Vaults Mode",mode:t.VaultList,iconId:"vault",handlerClass:Ie,ownSuggestionTypes:[l.VaultList],parserCommand:{type:"prefix",getCommandStr:()=>o.vaultListCommand}}]);var o;Le.getInstance()||Le.initialize(e,s,n),this._handlerRegistry=Le.getInstance(),this._inputParser=new Te(this._handlerRegistry,s,n),this.debouncedGetSuggestions=a.debounce(this.getSuggestions.bind(this),s.headingsSearchDebounceMilli,!0),this.reset()}onOpen(){const{app:e,exKeymap:t,handlerRegistry:s,settings:i}=this;t.isOpen=!0,i.quickFilters?.shouldResetActiveFacets&&Object.values(i.quickFilters.facetList).forEach((e=>e.isActive=!1)),this.workspaceEnvList=this.buildWorkspaceEnvList(e.workspace,e.vault,e.viewRegistry,s,i)}onClose(){this.exKeymap.isOpen=!1,V.unload()}setSessionOpenMode(e,t){this.reset(),e?.setSuggestions([]),this.sessionOpts=Object.assign({},t)}setInitialInputForSession(e){const{mode:s}=this.sessionOpts;if(!s)return;this.sessionOpts.mode=null;const i=this.previousInputHistory[s]?.parsedCommand(s)?.parsedInput,n=this.handlerRegistry.getHandler(s),a=s!==t.Standard?n.getCommandString(this.sessionOpts):"";if((s===t.CommandList&&this.settings.preserveCommandPaletteLastInput||s!==t.CommandList&&this.settings.preserveQuickSwitcherLastInput)&&i?.length){e.value=a+i;const t=a?.length??0;e.setSelectionRange(t,e.value.length)}else a&&(e.value=a)}updateSuggestions(e,s,i){const{exKeymap:n,settings:a,sessionOpts:o}=this;let r=!1;this.debouncedGetSuggestions.cancel();const l=me.getActiveLeaf(this.app.workspace),d=Fe.getActiveSuggestion(s),c=this.determineRunMode(e,d,l,o);this._inputInfo=c;const{mode:h}=c;return this.previousInputHistory[h]=c,this.updatedKeymapForMode(c,s,i,n,a,l),this.toggleMobileCreateFileButton(i,h,a),h!==t.Standard&&(h===t.HeadingsList&&c.parsedCommand().parsedInput?.length?this.debouncedGetSuggestions(c,s,i):this.getSuggestions(c,s,i),r=!0),r}toggleMobileCreateFileButton(e,s,i){if(!a.Platform.isMobile)return;const n=t[s];e.allowCreateNewFile=i.allowCreateNewFileInModeNames.includes(n),e.allowCreateNewFile||e.createButtonEl?.detach()}updatedKeymapForMode(e,t,s,i,n,a){const{mode:o}=e,r=this.handlerRegistry.getHandler(o),l=r?.getAvailableFacets(e)??[],d={mode:o,activeLeaf:a,facets:{facetList:l,facetSettings:n.quickFilters,onToggleFacet:((o,l)=>{if(l){const e=o.some((e=>!0===e.isActive));r.activateFacet(o,!e)}else r.activateFacet(o,!o[0].isActive);return this.updatedKeymapForMode(e,t,s,i,n,a),this.getSuggestions(e,t,s),!1}).bind(this)}};i.updateKeymapForMode(d)}renderSuggestion(e,s){const{handlerRegistry:i,inputInfo:n,settings:{overrideStandardModeRendering:a}}=this,{mode:o}=n,r=o===t.HeadingsList;let d=!1;const c=new Set([l.Unresolved]);if(null===e){if(r){const e=i.getHandler(o),t=n.parsedCommand(o)?.parsedInput;e.renderFileCreationSuggestion(s,t),d=!0}}else if(!c.has(e.type)&&(a||r||b(e))){const t=i.getHandler(e);t&&(d=t.renderSuggestion(e,s))}return d}onChooseSuggestion(e,s){const{handlerRegistry:i,inputInfo:n,settings:{overrideStandardModeBehaviors:a}}=this,{mode:o}=n,r=o===t.HeadingsList;let d=!1;const c=new Set([l.Unresolved]);if(null===e){if(this.noResultActionModes.includes(o)){const e=i.getHandler(o);d=!!e?.onNoResultsCreateAction(n,s)}}else if(!c.has(e.type)&&(a||r||b(e))){const t=i.getHandler(e);t&&(d=t.onChooseSuggestion(e,s))}return d}determineRunMode(e,s,i,n){const a=e??"",o=new he(a,t.Standard,n);return 0===a.length?(this.reset(),o):(o.currentWorkspaceEnvList=this.workspaceEnvList,this.inputParser.parseInputForMode(o,s,i),o)}getSuggestions(e,t,s){t.setSuggestions([]);const{mode:i}=e,n=this.handlerRegistry.getHandler(i).getSuggestions(e),a=n=>{n?.length?(t.setSuggestions(n),Fe.setActiveSuggestion(i,t),this.exKeymap?.renderQuickOpenFlairIcons(t.suggestions,this.settings)):this.noResultActionModes.includes(i)&&e.parsedCommand(i).parsedInput?s.onNoSuggestion():t.setSuggestions(null)};Array.isArray(n)?a(n):n.then((e=>{a(e)}),(e=>{console.log("Switcher++: error retrieving suggestions as Promise. ",e)}))}static setActiveSuggestion(e,s){if(e===t.SymbolList){const e=s.values.filter((e=>u(e))).findIndex((e=>e.item.isSelected));-1!==e&&(s.setSelectedItem(e,null),s.suggestions[s.selectedItem].scrollIntoView(!1))}}static getActiveSuggestion(e){let t=null;return e?.values&&(t=e.values[e.selectedItem]),t}reset(){this._inputInfo=new he,this.sessionOpts={},this.handlerRegistry.resetSourcedHandlers()}buildWorkspaceEnvList(e,s,i,n,a){const o=n.getHandler(t.EditorList).getItems(),r=o.reduce(((e,t)=>{const s=P(t);return s&&e.add(s),e}),new Set),{fileBookmarks:l,nonFileBookmarks:d}=n.getHandler(t.BookmarksList).getItems(null),c=this.getAttachmentFileExtensions(i,a.fileExtAllowList),h=r.size+a.maxRecentFileSuggestionsOnInit,m=this.getRecentFiles(e,s,r,h);return{openWorkspaceLeaves:new Set(o),openWorkspaceFiles:r,fileBookmarks:l,nonFileBookmarks:d,attachmentFileExtensions:c,mostRecentFiles:m}}getAttachmentFileExtensions(e,t){const s=new Set;try{const i=new Set(["md","canvas",...t]);Object.keys(e.typeByExtension).reduce(((e,t)=>(i.has(t)||e.add(t),e)),s)}catch(e){console.log("Switcher++: error retrieving attachment list from ViewRegistry",e)}return s}getRecentFiles(e,t,s,i=75){s=s??new Set;const n=new Set;if(i>0){const a=e.getRecentFiles({showMarkdown:!0,showCanvas:!0,showNonImageAttachments:!0,showImages:!0,maxCount:i});a?.forEach((e=>{const i=t.getAbstractFileByPath(e);v(i)&&!s.has(i)&&n.add(i)}))}return n}inputTextForStandardMode(e){const{mode:s,cleanInput:i}=this.inputInfo;let n=e;return s===t.Standard&&i?.length&&(n=i),n}inputTextForFulltextSearch(){const{inputInfo:e}=this,s=e.mode;let i=null,n=e.cleanInput;if(s!==t.Standard){const t=e.parsedCommand();n=t.parsedInput,E().includes(s)&&(i=t.source?.file)}return{mode:s,parsedInput:n,file:i}}addPropertiesToStandardSuggestions(e,s){if(!e||!s.overrideStandardModeBehaviors&&!s.overrideStandardModeRendering)return;const{handlerRegistry:i,inputInfo:{currentWorkspaceEnvList:n}}=this;for(let s=0;s{console.log(`Switcher++: error opening file (${i?.path}) in background. `,e)}))}}const xe={Enter:"↵",Backspace:"⌫",ArrowLeft:"←",ArrowUp:"↑",ArrowDown:"↓",ArrowRight:"→",Tab:"↹"},Ae={...xe,Mod:"Ctrl",Ctrl:"Ctrl",Meta:"Win",Alt:"Alt",Shift:"Shift"},Oe={...xe,Mod:"⌘",Ctrl:"⌃",Meta:"⌘",Alt:"⌥",Shift:"⇧"},Pe=[t.EditorList,t.HeadingsList,t.RelatedItemsList,t.BookmarksList,t.SymbolList],Me=[t.CommandList,t.VaultList,t.WorkspaceList,...Pe];class Be{app;scope;chooser;modal;config;standardKeysInfo=[];customKeysInfo=[];savedStandardKeysInfo=[];_isOpen;customInstructionEls=new Map;standardInstructionsEl;facetKeysInfo=[];insertIntoEditorKeysInfo=[];get isOpen(){return this._isOpen}set isOpen(e){this._isOpen=e}static get modKey(){return a.Platform.isMacOS?"Meta":"Ctrl"}static get keyDisplayStr(){return a.Platform.isMacOS?Oe:Ae}get exModeHandler(){return this.modal?.exMode}constructor(e,t,s,i,n){this.app=e,this.scope=t,this.chooser=s,this.modal=i,this.config=n,this.initKeysInfo(n,t),this.renderModeTriggerInstructions(i.modalEl,n),this.standardInstructionsEl=i.modalEl.querySelector(".prompt-instructions")}initKeysInfo(e,t){this.standardKeysInfo.push(),this.addCustomKeymaps(this.config),this.removeDefaultTabKeyBinding(t,e),this.registerNavigationBindings(t,e.navigationKeys),this.registerEditorTabBindings(t),this.registerCloseWhenEmptyBindings(t,e),this.registerQuickOpenBindings(t,e),this.registerFulltextSearchBindings(t,e),this.registerOpenInBackgroundBindings(t,e)}removeDefaultTabKeyBinding(e,t){if(t?.removeDefaultTabBinding){const t=e.keys.find((({modifiers:e,key:t})=>null===e&&"Tab"===t));e.unregister(t)}}registerNavigationBindings(e,t){const s=(t,s)=>{t.forEach((({modifiers:t,key:i})=>{e.register(t,i,((e,t)=>(this.navigateItems(e,s),!1)))}))};s(t?.nextKeys??[],!0),s(t?.prevKeys??[],!1)}registerFacetBinding(e,s){const{mode:i,facets:n}=s;if(n?.facetList?.length){const{facetList:s,facetSettings:a,onToggleFacet:o}=n,{keyList:r,modifiers:l,resetKey:d,resetModifiers:c}=a;let h=0;const m=(t,s,i,n)=>e.register(t,s,(()=>o(i,n)));for(let e=0;e{e.register(t[0],t[1],this.useSelectedItem.bind(this))}))}registerCloseWhenEmptyBindings(e,t){const s=t.closeWhenEmptyKeys;s?.forEach((({modifiers:t,key:s})=>{e.register(t,s,this.closeModalIfEmpty.bind(this))}))}registerQuickOpenBindings(e,t){const{isEnabled:s,modifiers:i,keyList:n}=t.quickOpen;s&&n?.forEach((t=>{e.register(i,t,this.quickOpenByIndex.bind(this))}))}quickOpenByIndex(e,t){const s=this.config.quickOpen.keyList.indexOf(t.vkey);if(-1!==s){const{chooser:i}=this;i.values.length>s&&(i.setSelectedItem(s,e),this.useSelectedItem(e,t))}return!1}registerFulltextSearchBindings(e,t){const{isEnabled:s,searchKeys:i}=t.fulltextSearch;if(s){L(this.app)&&e.register(i.modifiers,i.key,this.LaunchSystemGlobalSearch.bind(this))}}LaunchSystemGlobalSearch(e,t){const{parsedInput:s,file:i}=this.modal.exMode.inputTextForFulltextSearch();let n="";return i&&(n=`path:"${i.path}" `),this.modal.close(),L(this.app)?.openGlobalSearch(`${n}${s}`),!1}registerOpenInBackgroundBindings(e,t){const{openInBackground:{isEnabled:s,openKeys:i}}=t;if(s){const t={tab:"open in background tab",vertical:"open in background to the right",horizontal:"open in background below",window:"open in background window"};i?.filter((e=>e.hotkey)).forEach((({openType:s,hotkey:i})=>{e.register(i.modifiers,i.key,(()=>this.openInBackground(this.chooser,s))),this.createCustomKeymap(t[s],Me,i,null,!0,!0)}))}}openInBackground(e,t){let s,i="vertical";"vertical"===t||"horizontal"===t?(s="split",i=t):s=t;const n=e?.values?.[e.selectedItem];return this.exModeHandler.openSuggestionInBackground(n,s,i),!1}renderQuickOpenFlairIcons(e,t){const{isEnabled:s,modifiers:i,keyList:n}=t.quickOpen;if(s)for(let t=0;te.purpose===o.purpose)),!a){const{modifiers:e,key:t,purpose:s}=o;a={isInstructionOnly:!1,command:Be.commandDisplayStr(e,t),modifiers:e,key:t,purpose:s},i.push(a)}a.eventListener=()=>{const{modal:e,chooser:t}=this;e.close();const i=t.values?.[t.selectedItem];return this.insertIntoEditorAsLink(i,s,n),!1},a.modes=[e]}}return a}updateKeymapForMode(e){const{mode:s,activeLeaf:i}=e,{modal:n,scope:a,customKeysInfo:o,facetKeysInfo:r,standardKeysInfo:l,savedStandardKeysInfo:d,config:{insertLinkInEditor:c,showModeTriggerInstructions:h}}=this;this.updateInsertIntoEditorCommand(s,i,o,c);const m=o.filter((e=>!e.isInstructionOnly));this.unregisterKeys(a,m),this.unregisterKeys(a,r),r.length=0;const u=m.filter((e=>e.modes?.includes(s)));s===t.Standard?this.updateKeymapForStandardMode(a,u,d):this.updateKeymapForCustomModes(a,u,l,e,n),this.showModeTriggerInstructions(n.modalEl,h)}updateKeymapForStandardMode(e,t,s){const i=s.map((([e,t])=>({eventListener:t.func,...e})));this.registerKeys(e,i),s.length=0,this.registerKeys(e,t),this.toggleStandardInstructions(!0)}updateKeymapForCustomModes(e,t,s,i,n){const{savedStandardKeysInfo:a,customKeysInfo:o,facetKeysInfo:r}=this,l=this.unregisterKeys(e,s);l.length&&a.push(...l),this.registerKeys(e,t),this.registerFacetBinding(e,i),this.showCustomInstructions(n,i,o,r)}registerKeys(e,t){t.forEach((({modifiers:t,key:s,eventListener:i})=>{e.register(t,s,i)}))}unregisterKeys(e,t){const s=[],i={};t.map((e=>{const{key:t,modifiers:s}=e,n=Be.modifiersToKeymapInfoStr(s),a=i[t];a?a[n]=e:i[t]={[n]:e}}));let n=e.keys.length;for(;n--;){const t=e.keys[n],a=i[t.key],o=a?.[t.modifiers];o&&(e.unregister(t),s.push([o,t]))}return s}detachCustomInstructionEls(){this.customInstructionEls.forEach((e=>{e.detach()}))}toggleStandardInstructions(e){const{standardInstructionsEl:t}=this;let s="none";e&&(s="",this.detachCustomInstructionEls()),t&&(t.style.display=s)}showCustomInstructions(e,t,s,i){const{mode:n,facets:a}=t,{modalEl:o}=e,r=s.filter((e=>e.modes?.includes(n)));this.toggleStandardInstructions(!1),this.renderCustomInstructions(o,r),this.renderFacetInstructions(o,a?.facetSettings,i)}renderFacetInstructions(e,t,s){if(s?.length&&t.shouldShowFacetInstructions){const i=this.getCustomInstructionsEl("facets",e);i.empty(),e.appendChild(i);const n=`filters | ${Be.commandDisplayStr(t.modifiers)}`;this.createPromptInstructionCommandEl(i,n),s.forEach((e=>{const{facet:s,command:n,purpose:a}=e;let o,r,l=null;s?(r=n,o=s.modifiers,s.isActive&&(l=["qsp-filter-active"])):(r=t.resetKey,o=t.resetModifiers);const d=o?`(${Be.commandDisplayStr(o)}) ${r}`:`${r}`;this.createPromptInstructionCommandEl(i,d,a,[],l)}))}}renderCustomInstructions(e,t){const s=this.getCustomInstructionsEl("custom",e);s.empty(),e.appendChild(s),t.forEach((e=>{this.createPromptInstructionCommandEl(s,e.command,e.purpose)}))}showModeTriggerInstructions(e,t){if(t){const t=this.customInstructionEls.get("modes");t&&e.appendChild(t)}}renderModeTriggerInstructions(e,t){const s=new Map([[t.headingsListCommand,"heading list"],[t.editorListCommand,"editor list"],[t.bookmarksListCommand,"bookmark list"],[t.commandListCommand,"command list"],[t.workspaceListCommand,"workspace list"],[t.vaultListCommand,"vault list"],[t.symbolListActiveEditorCommand,"symbol list (active editor)"],[t.symbolListCommand,"symbol list (embedded)"],[t.relatedItemsListActiveEditorCommand,"related items (active editor)"],[t.relatedItemsListCommand,"related items (embedded)"]]),i=this.getCustomInstructionsEl("modes",e);i.detach(),i.empty(),this.createPromptInstructionCommandEl(i,"mode triggers |"),s.forEach(((e,t)=>{this.createPromptInstructionCommandEl(i,t,e)}))}getCustomInstructionsEl(e,t){let s=this.customInstructionEls.get(e);if(!s){const i={custom:["qsp-prompt-instructions"],facets:["qsp-prompt-instructions-facets"],modes:["qsp-prompt-instructions-modes"]};s=this.createPromptInstructionsEl(i[e],t),this.customInstructionEls.set(e,s)}return s}createPromptInstructionsEl(e,t){const s={cls:["prompt-instructions",...e]};return t.createDiv(s)}createPromptInstructionCommandEl(e,t,s,i,n){i=i??[];const a=e.createDiv();return a.createSpan({cls:["prompt-instruction-command",...i],text:t}),s&&(n=n??[],a.createSpan({cls:n,text:s})),a}closeModalIfEmpty(e,t){const{modal:s,config:i}=this;i.shouldCloseModalOnBackspace&&!s?.inputEl.value&&(s.close(),e.preventDefault())}navigateToCommandHotkeySelector(e,t){const{modal:s,chooser:i,app:{setting:n}}=this,a=i.values?.[i.selectedItem];if(a){n.open();const e=n.openTabById("hotkeys");if(e){s.close();const t=a.item.id;e.setQuery(`${t}`)}}return!1}togglePinnedCommand(e,t){const{app:s,config:i,chooser:n}=this,a=n.values?.[n.selectedItem],o=ve.getEnabledCommandPalettePluginInstance(s);if(a&&o){const e=a.item.id,t=n.suggestions[n.selectedItem];let r=o.options?.pinned;if(r){const t=r.indexOf(e);a.isPinned=-1===t,a.isPinned?r.push(e):r.splice(t,1)}else r=[e],o.options.pinned=r;o.saveSettings(o.plugin),t.empty(),new ve(s,i).renderSuggestion(a,t)}return!1}toggleMarkdownContentRendering(e,t){const{app:i,config:n,chooser:a}=this,o=a.values?.[a.selectedItem],r=o.file;let l=null;if(u(o)?l=o.item:g(o)&&(l={type:"symbolInfo",symbol:o.item,symbolType:s.Heading}),l&&r&&n.shouldRenderSymbolAsHTML(l.symbolType)){const e=a.suggestions[a.selectedItem].querySelector(".qsp-title"),t=!e.querySelector(".qsp-rendered-container");e.empty(),ke.renderSymbolContent(i,n,e,l,r,o.match,t)}return!1}openDefaultApp(e,t){const{app:s,config:{openDefaultApp:{excludeFileExtensions:i}},chooser:n}=this,a=n.values?.[n.selectedItem],o=R(a);if(o&&!i.includes(o.extension)){const e=`Switcher++: error opening file (${o.path}) in default app. `;s.openWithDefaultApp(o.path).catch((t=>{console.log(e,t)}))}return!1}saveCurrentAndOpenSelectedWorkspace(){const{app:e,chooser:t,modal:s}=this,i=t?.values?.[t.selectedItem];if(i&&i.item){const t=ge.getEnabledWorkspacesPluginInstance(e);t&&(t.saveWorkspace(t.activeWorkspace),t.loadWorkspace(i.item.id),s.close())}return!1}useSelectedItem(e,t){return this.chooser.useSelectedItem(e),!1}insertIntoEditorAsLink(e,t,s){const{app:{workspace:i,fileManager:n,vault:o}}=this,r=i.getActiveViewOfType(a.MarkdownView),l=r?.leaf===t,d=r?.file;if(l&&d){const t=M(n,o,e,d.path,s);t&&r.editor?.replaceSelection(t)}}navigateItems(e,t){const{isOpen:s,chooser:i}=this;if(s){let s=i.selectedItem;s=t?++s:--s,i.setSelectedItem(s,e)}}static commandDisplayStr(e,t){const{keyDisplayStr:s}=this;let i=null,n=null;return e&&(i=e.map((e=>s[e]?.toLocaleLowerCase())).sort().join(" ")),t&&(n=Object.prototype.hasOwnProperty.call(s,t)?s[t]:t),[i,n].filter((e=>e)).join(" ")}static modifiersToKeymapInfoStr(e){return e?.map((e=>"Mod"===e?this.modKey:e)).sort().join(",")}createCustomKeymap(e,t,s,i,n=!0,a=!1){let o=null;if(s){const{modifiers:r,key:l}=s;o={modes:t,modifiers:r,key:l,eventListener:i,purpose:e,command:Be.commandDisplayStr(r,l),isInstructionOnly:a},n&&this.customKeysInfo.push(o)}return o}addCustomKeymaps(e){const{quickOpen:s}=e,i=s?.keyList;if(i?.length){const e=`${i[0]}~${i[i.length-1]}`;this.createCustomKeymap("open nth item",Me,{modifiers:s.modifiers,key:e},null,s.isEnabled,!0)}this.createCustomKeymap("open in new tab",Pe,{modifiers:["Mod"],key:"Enter"},null,!0,!0),this.createCustomKeymap("open to the right",Pe,{modifiers:["Mod"],key:"\\"},null,!0,!0),this.createCustomKeymap("open below",Pe,{modifiers:["Mod","Shift"],key:"\\"},null,!0,!0),this.createCustomKeymap("open in new window",Pe,{modifiers:["Mod"],key:"o"},null,!0,!0),this.createCustomKeymap("execute command",[t.CommandList],{modifiers:[],key:"Enter"},null,!0,!0),this.createCustomKeymap("open workspace",[t.WorkspaceList],{modifiers:[],key:"Enter"},null,!0,!0),this.createCustomKeymap("save and switch workspace",[t.WorkspaceList],e.saveWorkspaceAndSwitchKeys,this.saveCurrentAndOpenSelectedWorkspace.bind(this)),this.createCustomKeymap("set hotkey",[t.CommandList],e.navigateToHotkeySelectorKeys,this.navigateToCommandHotkeySelector.bind(this)),this.createCustomKeymap("toggle pinned",[t.CommandList],e.togglePinnedCommandKeys,this.togglePinnedCommand.bind(this));const{renderMarkdownContentInSuggestions:n}=e;this.createCustomKeymap("toggle preview (selected item)",[t.HeadingsList,t.SymbolList],n.toggleContentRenderingKeys,this.toggleMarkdownContentRendering.bind(this),n.isEnabled);const{openDefaultApp:a}=e;this.createCustomKeymap("open default app",Pe,a.openInDefaultAppKeys,this.openDefaultApp.bind(this),a.isEnabled);const{fulltextSearch:o}=e;this.createCustomKeymap("fulltext search",Me,o.searchKeys,null,o.isEnabled,!0)}}class Re{static coreMobileLauncherButtonEl;static qspMobileLauncherButtonEl;static installMobileLauncherOverride(e,t,s){let i=null;if(!(a.Platform.isMobile&&t.isEnabled&&t.isMobileButtonEnabled)||Re.coreMobileLauncherButtonEl)return null;const n=function(e,t){let s=null;const i=e?.mobileNavbar?.containerEl;return i&&(s=i.querySelector(Z.defaults.mobileLauncher.coreLauncherButtonSelector),s||(s=i.querySelector(t.coreLauncherButtonSelector))),s}(e,t);if(n){const e=function(e,t,s){let i=null;if(e&&(i=e.cloneNode(!0),i)){const{iconName:e,coreLauncherButtonIconSelector:n}=t;if(i.addClass("qsp-mobile-launcher-button"),i.addEventListener("click",s),e?.length){const t=i.querySelector(n);t&&a.setIcon(t,e)}}return i}(n,t,s);(function(e,t){let s=!1;if(e&&t){const i=t.style.display;t.style.display="none",e.insertAdjacentElement("beforebegin",t)&&(e.remove(),s=!0),t.style.display=i}return s})(n,e)&&(Re.coreMobileLauncherButtonEl=n,Re.qspMobileLauncherButtonEl=e,i=e)}return i}static removeMobileLauncherOverride(){let e=!1;if(!Re.coreMobileLauncherButtonEl)return e;if(Re.qspMobileLauncherButtonEl?.parentElement){const t=Re.qspMobileLauncherButtonEl,s=Re.coreMobileLauncherButtonEl,i=s.style.display;s.style.display="none",t.insertAdjacentElement("beforebegin",s)&&(t.remove(),Re.qspMobileLauncherButtonEl=null,Re.coreMobileLauncherButtonEl=null,e=!0),s.style.display=i}return e}}class He{static emptyLeaves=new Map;static layoutChangeEventRef;static installEmptyTabMonitor(e,t){if(!t?.isEnabled)return;const{workspace:s}=e.app;He.layoutChangeEventRef=s.on("layout-change",(()=>{He.updateEmptyTabs(s,t)})),e.registerEvent(He.layoutChangeEventRef),s.onLayoutReady((()=>{He.updateEmptyTabs(s,t)}))}static removeEmptyTabButtons(e){e.offref(He.layoutChangeEventRef),He.layoutChangeEventRef=null;const{emptyLeaves:t}=He;for(const e of t.keys())t.get(e)?.detach(),t.delete(e)}static updateEmptyTabs(e,t){if(!t.isEnabled)return;const{buttonLabel:s,onclickListener:i}=t;e.iterateAllLeaves((e=>{const{emptyLeaves:t}=He;if(D(e,"empty")&&!t.has(e)){const{containerEl:n}=e.view,a=function(e,t,s){let i=null;const n=e.querySelector(".empty-state-action-list");return n&&(i=n.createDiv({cls:["empty-state-action","tappable","qsp-empty-state-action-launch"],text:t}),i.addEventListener("click",s),n.firstElementChild!==i&&n.insertAfter(i,n.firstElementChild)),i}(n,s,i);a&&t.set(e,a)}}))}}const De=[{id:"switcher-plus:open",name:"Open in Standard Mode",mode:t.Standard,iconId:"lucide-file-search",ribbonIconEl:null},{id:"switcher-plus:open-editors",name:"Open in Editor Mode",mode:t.EditorList,iconId:"lucide-file-edit",ribbonIconEl:null},{id:"switcher-plus:open-symbols",name:"Open Symbols for selected suggestion or editor",mode:t.SymbolList,iconId:"lucide-dollar-sign",ribbonIconEl:null},{id:"switcher-plus:open-symbols-active",name:"Open Symbols for the active editor",mode:t.SymbolList,iconId:"lucide-dollar-sign",ribbonIconEl:null,sessionOpts:{useActiveEditorAsSource:!0}},{id:"switcher-plus:open-workspaces",name:"Open in Workspaces Mode",mode:t.WorkspaceList,iconId:"lucide-album",ribbonIconEl:null},{id:"switcher-plus:open-headings",name:"Open in Headings Mode",mode:t.HeadingsList,iconId:"lucide-file-search",ribbonIconEl:null},{id:"switcher-plus:open-starred",name:"Open in Bookmarks Mode",mode:t.BookmarksList,iconId:"lucide-bookmark",ribbonIconEl:null},{id:"switcher-plus:open-commands",name:"Open in Commands Mode",mode:t.CommandList,iconId:"run-command",ribbonIconEl:null},{id:"switcher-plus:open-related-items",name:"Open Related Items for selected suggestion or editor",mode:t.RelatedItemsList,iconId:"lucide-file-plus-2",ribbonIconEl:null},{id:"switcher-plus:open-related-items-active",name:"Open Related Items for the active editor",mode:t.RelatedItemsList,iconId:"lucide-file-plus-2",ribbonIconEl:null,sessionOpts:{useActiveEditorAsSource:!0}},{id:"switcher-plus:open-vaults",name:"Open in Vaults Mode",mode:t.VaultList,iconId:"vault",ribbonIconEl:null}];class Ve extends a.Plugin{options;async onload(){const e=new Z(this);await e.updateDataAndLoadSettings(),this.options=e,this.addSettingTab(new ce(this.app,this,e)),this.registerRibbonCommandIcons(),this.updateLauncherButtonOverrides(!0),De.forEach((({id:e,name:t,mode:s,iconId:i,sessionOpts:n})=>{this.registerCommand(e,t,s,i,n)}))}onunload(){this.updateLauncherButtonOverrides(!1)}registerCommand(e,t,s,i,n){this.addCommand({id:e,name:t,icon:i,checkCallback:e=>this.createModalAndOpen(s,e,n)})}registerRibbonCommandIcons(){De.forEach((e=>{e.ribbonIconEl?.remove(),e.ribbonIconEl=null}));const e=De.reduce(((e,t)=>(e[t.mode]=t,e)),{});this.options.enabledRibbonCommands.forEach((s=>{const i=e[t[s]];i&&(i.ribbonIconEl=this.addRibbonIcon(i.iconId,i.name,(()=>{this.createModalAndOpen(i.mode,!1)})))}))}createModalAndOpen(e,t,s){if(!t){const t=function(e,t){const s=I(e)?.QuickSwitcherModal;return s?new class extends s{plugin;_exMode;get exMode(){return this._exMode}constructor(e,t){super(e,t.options.builtInSystemOptions),this.plugin=t;const{options:s}=t;s.shouldShowAlias=this.shouldShowAlias;const i=new Be(e,this.scope,this.chooser,this,s);this._exMode=new Fe(e,s,i)}openInMode(e){this.exMode.setSessionOpenMode(this.chooser,e),super.open()}onOpen(){this.exMode.onOpen(),super.onOpen()}onClose(){super.onClose(),this.exMode.onClose()}updateSuggestions(){const{exMode:e,inputEl:t,chooser:s}=this;e.setInitialInputForSession(t),e.updateSuggestions(t.value,s,this)||super.updateSuggestions()}getSuggestions(e){const{exMode:t,plugin:s}=this,i=t.inputTextForStandardMode(e),n=super.getSuggestions(i);return t.addPropertiesToStandardSuggestions(n,s.options),n}onChooseSuggestion(e,t){this.exMode.onChooseSuggestion(e,t)||super.onChooseSuggestion(e,t)}renderSuggestion(e,t){this.exMode.renderSuggestion(e,t)||super.renderSuggestion(e,t)}}(e,t):(console.log("Switcher++: unable to extend system switcher. Plugin UI will not be loaded. Use the builtin switcher instead."),null)}(this.app,this);if(!t)return!1;const i=Object.assign({mode:e},s);t.openInMode(i)}return!0}updateLauncherButtonOverrides(e){const{app:s,options:{mobileLauncher:i}}=this;if(Re.removeMobileLauncherOverride(),He.removeEmptyTabButtons(s.workspace),e){const e=i.modeString,n=t[e],a=()=>{n&&this.createModalAndOpen(n,!1)};Re.installMobileLauncherOverride(s,i,a);const o=De.find((e=>e.mode===n)),r="Switcher++: "+(o?.name??"");He.installEmptyTabMonitor(this,{isEnabled:i.isEnabled&&i.isEmptyTabButtonEnabled,buttonLabel:r,onclickListener:a})}}}module.exports=Ve; /* nosourcemap */ \ No newline at end of file diff --git a/.obsidian/plugins/darlal-switcher-plus/manifest.json b/.obsidian/plugins/darlal-switcher-plus/manifest.json index 9b8e7f51..7795b73a 100644 --- a/.obsidian/plugins/darlal-switcher-plus/manifest.json +++ b/.obsidian/plugins/darlal-switcher-plus/manifest.json @@ -1,8 +1,8 @@ { "id": "darlal-switcher-plus", "name": "Quick Switcher++", - "version": "6.0.0", - "minAppVersion": "1.11.5", + "version": "6.1.1", + "minAppVersion": "1.12.0", "description": "Enhanced Quick Switcher, search open panels, and symbols.", "author": "darlal", "authorUrl": "https://github.com/darlal/obsidian-switcher-plus", diff --git a/.obsidian/plugins/darlal-switcher-plus/styles.css b/.obsidian/plugins/darlal-switcher-plus/styles.css index 68d8a14f..f9d5957c 100644 --- a/.obsidian/plugins/darlal-switcher-plus/styles.css +++ b/.obsidian/plugins/darlal-switcher-plus/styles.css @@ -73,7 +73,8 @@ } /* highlight the open editor flair icon */ -.suggestion-item.qsp-open-editor .qsp-editor-indicator { +.suggestion-item.qsp-open-editor .suggestion-aux.qsp-aux .qsp-editor-indicator, +.suggestion-item.qsp-open-editor .suggestion-aux.qsp-aux .qsp-editor-indicator svg { color: var(--text-accent); } @@ -112,7 +113,11 @@ } /* Wrapper container for rendered markdown content using MarkdownRenderer.render() */ -.qsp-rendered-container {} +.qsp-rendered-container { + /* Reset white-space from suggestion-item's pre-wrap to prevent newlines in + rendered HTML (e.g. inside
    /
  1. ) from creating extra line boxes. */ + white-space: normal; +} /* Override styles for child elements of rendered markdown content */ .qsp-rendered-container > * { @@ -127,11 +132,28 @@ pointer-events: none; } -/* Rendered markdown content that starts with an Ordered List should keep it's start - margin so that the list number is displayed properly. Obsidian defaults to 40px */ -.qsp-rendered-container > ol { +/* Reset vertical margins on all block elements that Obsidian's .markdown-rendered + CSS adds spacing to (via --p-spacing). */ +.qsp-rendered-container ol, +.qsp-rendered-container ul, +.qsp-rendered-container p, +.qsp-rendered-container pre, +.qsp-rendered-container table, +.qsp-rendered-container blockquote, +.qsp-rendered-container h1, +.qsp-rendered-container h2, +.qsp-rendered-container h3, +.qsp-rendered-container h4, +.qsp-rendered-container h5, +.qsp-rendered-container h6 { + margin-block-start: 0; + margin-block-end: 0; +} + +/* Ordered lists should keep inline-start padding so the list number is visible. + Obsidian defaults to 40px. */ +.qsp-rendered-container ol { padding-inline-start: 40px; - margin-block-end: 0px; } /* command suggestion item */ @@ -170,8 +192,58 @@ /* suggestion flair/icon container */ .qsp-aux {} -/* suggestion file path element */ -.qsp-path {} +/* Faint styling for optional flair icons, excluding symbol indicators */ +.suggestion-aux.qsp-aux > *:not(.qsp-symbol-indicator), +.suggestion-aux.qsp-aux > *:not(.qsp-symbol-indicator) svg { + color: var(--text-faint); +} + +/* Breadcrumb row container - uses flexbox for vertical alignment between icon and text. + Applies to all breadcrumb types (path, heading, tags). */ +.qsp-path, +.qsp-heading-breadcrumbs, +.qsp-tags-breadcrumbs { + display: flex; + align-items: center; + gap: 4px; +} + +/* Add spacing between multiple breadcrumb rows (path, heading, tags) */ +.qsp-path + .qsp-heading-breadcrumbs, +.qsp-path + .qsp-tags-breadcrumbs, +.qsp-heading-breadcrumbs + .qsp-tags-breadcrumbs { + margin-top: 2px; +} + +/* breadcrumb icon indicator (folder, heading, tags, etc.) */ +.qsp-breadcrumb-indicator { + display: flex; + align-items: center; + flex-shrink: 0; + color: var(--text-faint); +} + +/* Ensure icon SVG inherits size properly */ +.qsp-breadcrumb-indicator svg { + width: 1em; + height: 1em; +} + +/* breadcrumb content element */ +.qsp-breadcrumb { + color: var(--text-muted); +} + +/* heading breadcrumbs element */ +.qsp-heading-breadcrumbs {} + +/* tags breadcrumb element */ +.qsp-tags-breadcrumbs {} + +/* truncated content indicator - displays ellipsis after content */ +.qsp-truncated::after { + content: '…'; +} /* headings suggestion, heading level (H1, H2, etc..) icon */ .qsp-headings-indicator {} diff --git a/.obsidian/plugins/excalibrain/main.js b/.obsidian/plugins/excalibrain/main.js index f6887500..81ace124 100644 --- a/.obsidian/plugins/excalibrain/main.js +++ b/.obsidian/plugins/excalibrain/main.js @@ -1,5 +1,8 @@ "use strict";var e,t,i,n=require("obsidian");!function(e){e[e.DEFINED=1]="DEFINED",e[e.INFERRED=2]="INFERRED"}(e||(e={})),function(e){e[e.PARENT=0]="PARENT",e[e.CHILD=1]="CHILD",e[e.LEFT=2]="LEFT",e[e.RIGHT=3]="RIGHT"}(t||(t={})),function(e){e[e.TO=1]="TO",e[e.FROM=2]="FROM",e[e.BOTH=3]="BOTH"}(i||(i={}));const s=/(?:\[([^[\]]+)\]\()((?:(?:ftp|https?|sftp|shttp|tftp):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>"']|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))\)|\b()((?:(?:ftp|https?|sftp|shttp|tftp):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>"']|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))\b/gi;class r{plugin;fileToUrlMap=new Map;fileUrlInverseMap=new Map;hosts=[];app;initalized=!1;constructor(e){this.plugin=e,this.app=e.app}async init(){const e=Date.now(),t=this.app.vault.getMarkdownFiles();for(const e of t)await this.parseFileURLs(e);this.registerFileEvents(),this.initalized=!0,console.log(`ExcaliBrain indexed ${this.fileUrlInverseMap.size} URLs from ${this.hosts.length} unique hosts in ${this.fileToUrlMap.size} of ${t.length} markdown files in ${((Date.now()-e)/1e3).toFixed(1)} seconds`)}getOrigin(e,t){try{return new URL(e).origin}catch(i){return console.log(`ExcaliBrain URLParser: Invalid URL ${e} in file ${t.path}`),":Unknown Origin:"}}async parseFileURLs(e){if(!(e&&e instanceof n.TFile))return;let t="";try{t=await this.app.vault.cachedRead(e)}catch(t){return void console.log(`ExcaliBrain URLParser: Failed to read file ${e.path}`,t)}const i=new Map;let r;for(;null!==(r=s.exec(t));){const t=r[1]??r[3]??"";let n=r[2]??r[4]??"";if(n.match(/^(?:ftp|https?|sftp|shttp|tftp):/)||(n="https://"+n),i.has(n)){if(""!==t){const e=i.get(n);""===e.alias&&i.set(n,{...e,alias:t})}}else{const s=this.getOrigin(n,e);i.set(n,{url:n,alias:t,origin:s}),this.updateInverseMap(n,e,s)}}const a=Array.from(i.values());a.length>0&&this.fileToUrlMap.set(e,a)}updateInverseMap(e,t,i){this.fileUrlInverseMap.has(e)||this.fileUrlInverseMap.set(e,{files:[],origin:i});const n=this.fileUrlInverseMap.get(e);n&&(n.files.includes(t)||n.files.push(t),this.hosts.includes(n.origin)||this.hosts.push(n.origin))}registerFileEvents(){const e=e=>{t(e),this.parseFileURLs(e)},t=e=>{const t=this.fileToUrlMap.get(e);this.fileToUrlMap.delete(e),t&&t.forEach((t=>{const i=this.fileUrlInverseMap.get(t.url);if(i){if(i.files=i.files.filter((t=>t!==e)),0===i.files.length)return this.fileUrlInverseMap.delete(t.url),void(this.hosts=this.hosts.filter((e=>e!==i.origin)));this.fileUrlInverseMap.set(t.url,i)}}))};this.plugin.registerEvent(this.app.vault.on("create",e)),this.plugin.registerEvent(this.app.vault.on("modify",e)),this.plugin.registerEvent(this.app.vault.on("delete",t))}}const a=(e,t,i)=>{const n=e.metadataCache.getFirstLinkpathDest(t,i);return n?n.path:t},u=(e,t,i)=>{const n=new Set,r=t.matchAll(/[^[]*\[\[(?[^#\]\|]*)[^\]]*]]|\[[^\]]*]\((?[^)]*)\)/g);let u,o;for(;!(u=r.next()).done;){if(u?.value?.groups?.wikiLink){const t=a(e,u.value.groups.wikiLink,i.path);t&&n.add(t)}if(u?.value?.groups?.mdLink)try{const t=a(e,decodeURIComponent(u.value.groups.mdLink),i.path);t&&n.add(t)}catch(e){console.log({error:"Error decoding link in readLinksFromString",errorLocation:"readLinksFromString",link:u.value.groups.mdLink,file:i})}}for(;null!==(o=s.exec(t));)n.add(o[2]??o[4]);return Array.from(n)},o=(e,t,i)=>{const s=new Set;if(t.values){if(t.hasOwnProperty("conversionAccuracy"))return[];const r=Array.from(t.values());let l;try{r.filter((e=>e?.type&&("file"===e.type||"header"===e.type||"block"==e.type))).forEach((t=>{const n=a(e.app,t.path,i.path);n&&s.add(n)})),r.filter((e=>Boolean(e?.values))).forEach((t=>{l=t;const n=Array.from(t.values());o(e,n,i).forEach((e=>s.add(e)))}))}catch(e){console.log(e),console.log(r),console.log(l),console.log(l?.values)}const D=u(e.app,r.filter((e=>"string"==typeof e)).join(" "),i),d=r.filter((e=>e?.values&&"object"==typeof e&&"string"==typeof e.values[0]))?.map((t=>a(e.app,t.values[0],i.path))); //! currently there is an issue with case sensitivity. DataView retains case sensitivity of links for the front matter, but not the others -d||console.log({error:"objectLinks is undefined which is unexpected",errorLocation:"readDVField",field:t,file:i});const h=((e,t,i)=>{const s=new Set;return t.forEach((t=>{t?.hasOwnProperty?.("ts")&&s.add(n.moment.default(t.ts).format(e.dailyNoteSettings.format))})),Array.from(s)})(e,r);return Array.from(s).concat(D).concat(d??[]).concat(h)}if(t.path){const n=a(e.app,t.path,i.path);return n?[n]:[]}return"string"==typeof t?u(e.app,t,i):[]},l=(e,t,i)=>{const n=[],s=new Set;return i.forEach((i=>{const r=t[i];r&&!s.has(i)&&(s.add(i),o(e,r,t.file).forEach((e=>n.push({link:e,field:i}))))})),n},D=(e,t)=>{const i=d(e,t);if(!i)return[null,null];if(e[t.primaryTagFieldLowerCase]){const n=e[t.primaryTagFieldLowerCase].match(/#([^\s\])$"'\\]*)(?:$|\s)/g)?.map((e=>e.trim())).filter((e=>t.tagStyleList.some((t=>e.startsWith(t))))),s=n&&n.length>0?n[0]:i[0];return[s,i.filter((e=>e!=s))]}return[i[0],i.slice(1)]},d=(e,t)=>e?(e.file?.tags?.values??[]).filter((e=>t.tagStyleList.some((t=>e.startsWith(t))))):null,h=(e,t)=>{const[i,n]=e;if(!i)return{};const s=t.tagNodeStyles[t.tagStyleList.filter((e=>i.startsWith(e)))[0]];if(s&&t.displayAllStylePrefixes){const e=Object.keys(t.tagNodeStyles).filter((e=>n.includes(e))),i=new Set;s.prefix&&i.add(s.prefix),e?.map((e=>t.tagNodeStyles[e].prefix)).filter((e=>Boolean(e))).forEach((e=>i.add(e)));const r=Array.from(i).join("");return{...s,prefix:r}}return s},c=e=>{console.error({plugin:"ExcaliBrain",...e})};console.log.bind(window.console),console.log.bind(window.console);const g=e=>`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(e.replaceAll(" "," "))))}`,E=(e,t)=>{if(!e.DEVICE.isDesktop)return;let i=!0;if(!t){const n=e.targetView;if(!n)return;i=e.plugin.app.workspace.activeLeaf===n.leaf,t=n.ownerWindow}i&&(t.electronWindow.isAlwaysOnTop()||(t.electronWindow.setAlwaysOnTop(!0),setTimeout((()=>{t.electronWindow.setAlwaysOnTop(!1)}),500)))};function p(e){const t=e.lastIndexOf("/"),i=-1==t?e:e.substring(t+1);return{folderpath:n.normalizePath(e.substring(0,t)),filename:i,basename:i.replace(/\.[^/.]+$/,"")}}function f(e,t){return!!e&&(["pdf","mp4","mp3","webm","md"].includes(e.extension)&&!t.isExcalidrawFile(e))}class F{pages=new Map;app;plugin;constructor(e){this.app=e.app,this.plugin=e}add(e,t){this.pages.set(e,t)}has(e){return this.pages.has(e)}get(e){return this.pages.get(e)}getPages(){return Array.from(this.pages.values())}forEach=this.pages.forEach.bind(this.pages);get size(){return this.pages.size}delete(e){const t=this.pages.get(e);t&&(t.neighbours.forEach(((t,i)=>{const n=this.pages.get(i);n&&(n.unlinkNeighbour(e),n.file||0!==n.neighbours.size||this.pages.delete(i))})),this.pages.delete(e))}addInferredParentChild(t,n){this.plugin.settings.inferAllLinksAsFriends?(n.addLeftFriend(t,e.INFERRED,i.TO),t.addLeftFriend(n,e.INFERRED,i.FROM)):this.plugin.settings.inverseInfer?(n.addChild(t,e.INFERRED,i.TO),t.addParent(n,e.INFERRED,i.FROM)):(n.addParent(t,e.INFERRED,i.TO),t.addChild(n,e.INFERRED,i.FROM))}addResolvedLinks(e){const t=this.app.metadataCache.resolvedLinks;Object.keys(t).forEach((i=>{if(e&&e.path!==i)return;const n=this.pages.get(i);Object.keys(t[i]).forEach((e=>{let t=this.pages.get(e);t||(t=this.pages.get(this.plugin.lowercasePathMap.get(e.toLowerCase()))),this.addInferredParentChild(n,t)}))}))}addPageURLs(){this.plugin.urlParser.fileToUrlMap.forEach(((t,n)=>{const s=this.get(n.path);s&&t.forEach((t=>{let n=this.get(t.url);n||(n=new A(this,t.url,null,this.plugin,!1,!1,t.alias,t.url),this.add(t.url,n)),""===t.alias||""!==n.name&&n.name!==t.url||(n.name=t.alias),this.addInferredParentChild(s,n);const r=this.get(t.origin);r&&(n.addParent(r,e.INFERRED,i.FROM),r.addChild(n,e.INFERRED,i.TO))}))}))}addUnresolvedLinks(e){if(e&&(e.isFolder||e.isTag))return;const t=this.app.metadataCache.unresolvedLinks;Object.keys(t).forEach((i=>{if(e&&e.path!==i)return;let n=this.pages.get(i);n&&i!==this.plugin.settings.excalibrainFilepath&&Object.keys(t[i]).forEach((e=>m(e,n,this.plugin,this)))}))}}const m=(t,n,s,r)=>{const a=r.get(t)??new A(r,t,null,s);return s.settings.inferAllLinksAsFriends?(a.addLeftFriend(n,e.INFERRED,i.TO),n.addLeftFriend(a,e.INFERRED,i.FROM)):s.settings.inverseInfer?(a.addChild(n,e.INFERRED,i.TO),n.addParent(a,e.INFERRED,i.FROM)):(a.addParent(n,e.INFERRED,i.TO),n.addChild(a,e.INFERRED,i.FROM)),r.add(t,a),a},C={target:null,isHidden:!1,isParent:!1,isChild:!1,isLeftFriend:!1,isRightFriend:!1,isNextFriend:!1,isPreviousFriend:!1,direction:null},y=(e,t)=>e&&t?e+", "+t:e||t,S=(e,t)=>e?e===i.BOTH||e===t?e:i.BOTH:t,b=(t,i)=>t===e.DEFINED?e.DEFINED:t===e.INFERRED?i===e.DEFINED?e.DEFINED:e.INFERRED:i;class A{pages;path;file;plugin;isFolder;isTag;name;url;mtime;neighbours;dvPage;primaryStyleTag;styleTags;dvIndexReady=!1;maxLabelLength;constructor(e,t,i,n,s=!1,r=!1,a,u=null){this.pages=e,this.path=t,this.file=i,this.plugin=n,this.isFolder=s,this.isTag=r,this.name=a,this.url=u,a||(this.name=i?"md"===i.extension?i.basename:i.name:Boolean(u)?u:(e=>{const t=e.endsWith(".md"),i=e.substring(e.lastIndexOf("/")+1);return t?i.slice(0,-3):i})(t)),this.mtime=i?i.stat.mtime:null,this.neighbours=new Map}addDVFieldLinksToPage(){if(this.dvIndexReady||this.isFolder||!this.pages)return;if(this.dvIndexReady=!0,this.isTag){const t=this.plugin.DVAPI.index.etags.getInverse("#"+this.path.substring(4));if(!t)return;return void t.forEach((t=>{const n=this.pages.get(t);n&&(this.neighbours.has(t)||(n.addParent(this,e.DEFINED,i.TO,"tag-tree"),this.addChild(n,e.DEFINED,i.FROM,"tag-tree")))}))}if(!this.file)return;const t=this.plugin.DVAPI.page(this.file.path);if(!t)return;if(this.dvPage=t,!t)return;[this.primaryStyleTag,this.styleTags]=D(this.dvPage,this.plugin.settings),(t.file?.etags?.values??[]).forEach((t=>{t="tag:"+t.substring(1);const n=this.pages.get(t);n&&(this.addParent(n,e.DEFINED,i.FROM,"tag-tree"),n.addChild(this,e.DEFINED,i.TO,"tag-tree"))}));const n=this.plugin.hierarchyLowerCase.hidden;l(this.plugin,t,n).forEach((e=>{let t=this.pages.get(e.link);t||(t=m(e.link,this,this.plugin,this.plugin.pages)),this.addHidden(t)}));const s=this.plugin.hierarchyLowerCase.parents;l(this.plugin,t,s).forEach((t=>{let n=this.pages.get(t.link);n||(n=m(t.link,this,this.plugin,this.plugin.pages)),this.addParent(n,e.DEFINED,i.FROM,t.field),n.addChild(this,e.DEFINED,i.TO,t.field)}));const r=this.plugin.hierarchyLowerCase.children;l(this.plugin,t,r).forEach((t=>{let n=this.pages.get(t.link);n||(n=m(t.link,this,this.plugin,this.plugin.pages)),this.addChild(n,e.DEFINED,i.FROM,t.field),n.addParent(this,e.DEFINED,i.TO,t.field)}));const a=this.plugin.hierarchyLowerCase.leftFriends;l(this.plugin,t,a).forEach((t=>{let n=this.pages.get(t.link);n||(n=m(t.link,this,this.plugin,this.plugin.pages)),this.addLeftFriend(n,e.DEFINED,i.FROM,t.field),n.addLeftFriend(this,e.DEFINED,i.TO,t.field)}));const u=this.plugin.hierarchyLowerCase.rightFriends;l(this.plugin,t,u).forEach((t=>{let n=this.pages.get(t.link);n||(n=m(t.link,this,this.plugin,this.plugin.pages)),this.addRightFriend(n,e.DEFINED,i.FROM,t.field),n.addRightFriend(this,e.DEFINED,i.TO,t.field)}));const o=this.plugin.hierarchyLowerCase.previous;l(this.plugin,t,o).forEach((t=>{let n=this.pages.get(t.link);n||(n=m(t.link,this,this.plugin,this.plugin.pages)),this.addPreviousFriend(n,e.DEFINED,i.FROM,t.field),n.addNextFriend(this,e.DEFINED,i.TO,t.field)}));const d=this.plugin.hierarchyLowerCase.next;l(this.plugin,t,d).forEach((t=>{let n=this.pages.get(t.link);n||(n=m(t.link,this,this.plugin,this.plugin.pages)),this.addNextFriend(n,e.DEFINED,i.FROM,t.field),n.addPreviousFriend(this,e.DEFINED,i.TO,t.field)}))}getTitle(){if(this.isURL)return this.plugin.settings.renderAlias&&this.name&&""!==this.name?this.name:this.url;const e=this.file&&this.plugin.settings.renderAlias?this.dvPage?.file?.aliases?.values??[]:[];let t=e.length>0?e[0]:this.name;if("[object Object]"===t&&(t=this.dvPage.aliases?.[0]?Object.entries(this.dvPage.aliases[0])[0].join(": "):this.name),this.dvPage?.file&&this.plugin.customNodeLabel)try{return this.plugin.customNodeLabel(this.dvPage,t)}catch(e){c({fn:this.getTitle,message:"Error executing cutomer node label function. The script is: "+this.plugin.settings.nodeTitleScript,data:this.dvPage,where:"Page.getTitle()",error:e})}return t}getRelationVector(t){return{pi:t.isParent&&t.parentType===e.INFERRED,pd:t.isParent&&t.parentType===e.DEFINED,ci:t.isChild&&t.childType===e.INFERRED,cd:t.isChild&&t.childType===e.DEFINED,lfd:!this.plugin.settings.inferAllLinksAsFriends&&t.isLeftFriend||this.plugin.settings.inferAllLinksAsFriends&&t.isLeftFriend&&!(t.parentType===e.DEFINED||t.childType===e.DEFINED||t.rightFriendType===e.DEFINED||t.nextFriendType===e.DEFINED||t.previousFriendType===e.DEFINED),rfd:t.isRightFriend&&t.rightFriendType===e.DEFINED,pfd:t.isPreviousFriend&&t.previousFriendType===e.DEFINED,nfd:t.isNextFriend&&t.nextFriendType===e.DEFINED}}getNeighbours(){this.addDVFieldLinksToPage(),this.neighbours.forEach((e=>e.target.addDVFieldLinksToPage()));const{showVirtualNodes:e,showAttachments:t,showFolderNodes:i,showTagNodes:n,showPageNodes:s,showURLNodes:r}=this.plugin.settings;return Array.from(this.neighbours).filter((a=>!a[1].isHidden&&(e||!a[1].target.isVirtual)&&(t||!a[1].target.isAttachment)&&(i||!a[1].target.isFolder)&&(n||!a[1].target.isTag)&&(s||a[1].target.isFolder||a[1].target.isTag||a[1].target.isAttachment||a[1].target.isURL)&&(r||!a[1].target.isURL)))}get isVirtual(){return null===this.file&&!this.isFolder&&!this.isTag&&!this.isURL}get isURL(){return Boolean(this.url)}get isAttachment(){return!!this.file&&"md"!==this.file.extension}get isMarkdown(){return"md"===this.file?.extension||!this.file}addHidden(t){if(t.path===this.plugin.settings.excalibrainFilepath||t.path===this.path)return;const i=this.neighbours.get(t.path);i?i.isHidden=!0:this.neighbours.set(t.path,{...C,target:t,isHidden:!0,parentType:e.DEFINED})}addParent(e,t,i,n){if(e.path===this.plugin.settings.excalibrainFilepath||e.path===this.path)return;const s=this.neighbours.get(e.path);if(s)return s.isParent=!0,s.parentType=b(s.parentType,t),n&&!s.parentTypeDefinition?.contains(n)&&(s.parentTypeDefinition=y(n,s.parentTypeDefinition)),void(s.direction=S(s.direction,i));this.neighbours.set(e.path,{...C,target:e,isParent:!0,parentType:t,parentTypeDefinition:n,direction:i})}addChild(e,t,i,n){if(e.path===this.plugin.settings.excalibrainFilepath||e.path===this.path)return;const s=this.neighbours.get(e.path);if(s)return s.isChild=!0,s.childType=b(s.childType,t),n&&!s.childTypeDefinition?.contains(n)&&(s.childTypeDefinition=y(n,s.childTypeDefinition)),void(s.direction=S(s.direction,i));this.neighbours.set(e.path,{...C,target:e,isChild:!0,childType:t,childTypeDefinition:n,direction:i})}addLeftFriend(e,t,i,n){if(e.path===this.plugin.settings.excalibrainFilepath||e.path===this.path)return;const s=this.neighbours.get(e.path);if(s)return s.isLeftFriend=!0,s.leftFriendType=b(s.leftFriendType,t),n&&!s.leftFriendTypeDefinition?.contains(n)&&(s.leftFriendTypeDefinition=y(n,s.leftFriendTypeDefinition)),void(s.direction=S(s.direction,i));this.neighbours.set(e.path,{...C,target:e,isLeftFriend:!0,leftFriendType:t,leftFriendTypeDefinition:n,direction:i})}addRightFriend(e,t,i,n){if(e.path===this.plugin.settings.excalibrainFilepath||e.path===this.path)return;const s=this.neighbours.get(e.path);if(s)return s.isRightFriend=!0,s.rightFriendType=b(s.rightFriendType,t),n&&!s.rightFriendTypeDefinition?.contains(n)&&(s.rightFriendTypeDefinition=y(n,s.rightFriendTypeDefinition)),void(s.direction=S(s.direction,i));this.neighbours.set(e.path,{...C,target:e,isRightFriend:!0,rightFriendType:t,rightFriendTypeDefinition:n,direction:i})}addNextFriend(e,t,i,n){if(e.path===this.plugin.settings.excalibrainFilepath||e.path===this.path)return;const s=this.neighbours.get(e.path);if(s)return s.isNextFriend=!0,s.nextFriendType=b(s.nextFriendType,t),n&&!s.nextFriendTypeDefinition?.contains(n)&&(s.nextFriendTypeDefinition=y(n,s.nextFriendTypeDefinition)),void(s.direction=S(s.direction,i));this.neighbours.set(e.path,{...C,target:e,isNextFriend:!0,nextFriendType:t,nextFriendTypeDefinition:n,direction:i})}addPreviousFriend(e,t,i,n){if(e.path===this.plugin.settings.excalibrainFilepath||e.path===this.path)return;const s=this.neighbours.get(e.path);if(s)return s.isPreviousFriend=!0,s.previousFriendType=b(s.previousFriendType,t),n&&!s.previousFriendTypeDefinition?.contains(n)&&(s.previousFriendTypeDefinition=y(n,s.previousFriendTypeDefinition)),void(s.direction=S(s.direction,i));this.neighbours.set(e.path,{...C,target:e,isPreviousFriend:!0,previousFriendType:t,previousFriendTypeDefinition:n,direction:i})}unlinkNeighbour(e){this.neighbours.delete(e)}isChild(t){const{pi:i,pd:n,ci:s,cd:r,lfd:a,rfd:u,nfd:o,pfd:l}=this.getRelationVector(t);return!r||n||a||u||o||l?i||n||!s||r||a||u||o||l?null:e.INFERRED:e.DEFINED}childrenCount(){return this.getNeighbours().reduce(((t,i)=>{const n=this.isChild(i[1]);return t+(n&&this.plugin.settings.showInferredNodes||n===e.DEFINED?1:0)}),0)}hasChildren(){return this.getNeighbours().some((t=>{const i=this.isChild(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED}))}getChildren(){return this.getNeighbours().filter((t=>{const i=this.isChild(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED})).map((e=>({page:e[1].target,relationType:e[1].childType,typeDefinition:e[1].childTypeDefinition,linkDirection:e[1].direction})))}isParent(t){const{pi:i,pd:n,ci:s,cd:r,lfd:a,rfd:u,nfd:o,pfd:l}=this.getRelationVector(t);return r||!n||a||u||o||l?!i||n||s||r||a||u||o||l?null:e.INFERRED:e.DEFINED}parentCount(){return this.getNeighbours().reduce(((t,i)=>{const n=this.isParent(i[1]);return t+(n&&this.plugin.settings.showInferredNodes||n===e.DEFINED?1:0)}),0)}hasParents(){return this.getNeighbours().some((t=>{const i=this.isParent(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED}))}getParents(){return this.getNeighbours().filter((t=>{const i=this.isParent(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED})).map((e=>({page:e[1].target,relationType:e[1].parentType,typeDefinition:e[1].parentTypeDefinition,linkDirection:e[1].direction})))}isLeftFriend(t){const{pi:i,pd:n,ci:s,cd:r,lfd:a,rfd:u,nfd:o,pfd:l}=this.getRelationVector(t);return a?e.DEFINED:i&&!n&&s&&!r&&!a&&!u&&!o&&!l||[n,r,a,u,o,l].filter(Boolean).length>=2?e.INFERRED:null}leftFriendCount(){return this.getNeighbours().reduce(((t,i)=>{const n=this.isLeftFriend(i[1]);return t+(n&&this.plugin.settings.showInferredNodes||n===e.DEFINED?1:0)}),0)}hasLeftFriends(){return this.getNeighbours().some((t=>{const i=this.isLeftFriend(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED}))}getLeftFriends(){return this.getNeighbours().filter((t=>{const i=this.isLeftFriend(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED})).map((t=>({page:t[1].target,relationType:t[1].leftFriendType??(t[1].parentType===e.DEFINED&&t[1].childType===e.DEFINED?e.DEFINED:e.INFERRED),typeDefinition:t[1].leftFriendTypeDefinition,linkDirection:t[1].direction})))}isRightFriend(t){const{pd:i,cd:n,lfd:s,rfd:r,nfd:a,pfd:u}=this.getRelationVector(t);return i||n||s||!r||a||u?null:e.DEFINED}rightFriendCount(){return this.getNeighbours().reduce(((t,i)=>{const n=this.isRightFriend(i[1]);return t+(n&&this.plugin.settings.showInferredNodes||n===e.DEFINED?1:0)}),0)}hasRightFriends(){return this.getNeighbours().some((t=>{const i=this.isRightFriend(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED}))}getRightFriends(){return this.getNeighbours().filter((t=>{const i=this.isRightFriend(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED})).map((t=>({page:t[1].target,relationType:e.DEFINED,typeDefinition:t[1].rightFriendTypeDefinition,linkDirection:t[1].direction})))}isPreviousFriend(t){const{pd:i,cd:n,lfd:s,rfd:r,nfd:a,pfd:u}=this.getRelationVector(t);return i||n||s||r||!u||a?null:e.DEFINED}previousFriendCount(){return this.getNeighbours().reduce(((t,i)=>{const n=this.isPreviousFriend(i[1]);return t+(n&&this.plugin.settings.showInferredNodes||n===e.DEFINED?1:0)}),0)}hasPreviousFriends(){return this.getNeighbours().some((t=>{const i=this.isPreviousFriend(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED}))}getPreviousFriends(){return this.getNeighbours().filter((t=>{const i=this.isPreviousFriend(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED})).map((t=>({page:t[1].target,relationType:e.DEFINED,typeDefinition:t[1].previousFriendTypeDefinition,linkDirection:t[1].direction})))}isNextFriend(t){const{pd:i,cd:n,lfd:s,rfd:r,nfd:a,pfd:u}=this.getRelationVector(t);return i||n||s||r||u||!a?null:e.DEFINED}nextFriendCount(){return this.getNeighbours().reduce(((t,i)=>{const n=this.isNextFriend(i[1]);return t+(n&&this.plugin.settings.showInferredNodes||n===e.DEFINED?1:0)}),0)}hasNextFriends(){return this.getNeighbours().some((t=>{const i=this.isNextFriend(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED}))}getNextFriends(){return this.getNeighbours().filter((t=>{const i=this.isNextFriend(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED})).map((t=>({page:t[1].target,relationType:e.DEFINED,typeDefinition:t[1].nextFriendTypeDefinition,linkDirection:t[1].direction})))}getSiblings(){const t=new Map;return this.getParents().forEach((i=>i.page.getChildren().forEach((i=>{t.has(i.page.path)?i.relationType===e.DEFINED&&(t.get(i.page.path).relationType=e.DEFINED):t.set(i.page.path,i)})))),Array.from(t.values())}}var T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},N={};Object.defineProperty(N,"__esModule",{value:!0});const w=e=>{try{return window.ExcalidrawAutomate.getAPI(e)}catch(e){return console.log({message:"Excalidraw not available",fn:w}),null}};var L=N.getEA=w;const O="ExcaliBrain",v="excalibrain",_="1.9.14",I=["base","inferred","file-tree","tag-tree"],k={strokeColor:"#696969FF",strokeWidth:1,strokeStyle:"solid",roughness:0,startArrowHead:"none",endArrowHead:"none",showLabel:!1,fontSize:10,fontFamily:3,textColor:"#ffffffff"},B={prefix:"",backgroundColor:"#00000066",fillStyle:"solid",textColor:"#ffffffff",borderColor:"#00000000",fontSize:20,fontFamily:3,maxLabelLength:30,roughness:0,strokeShaprness:"round",strokeWidth:1,strokeStyle:"solid",padding:10,gateRadius:5,gateOffset:15,gateStrokeColor:"#ffffffff",gateBackgroundColor:"#ffffffff",gateFillStyle:"solid"},x={exclusions:["excalidraw-font","excalidraw-font-color","excalidraw-css","excalidraw-plugin","excalidraw-link-brackets","excalidraw-link-prefix","excalidraw-border-color","excalidraw-default-mode","excalidraw-export-dark","excalidraw-export-transparent","excalidraw-export-svgpadding","excalidraw-export-pngscale","excalidraw-url-prefix","excalidraw-linkbutton-opacity","excalidraw-onload-script","kanban-plugin"],parents:["Parent","Parents","up","u","North","origin","inception","source","parent domain"],children:["Children","Child","down","d","South","leads to","contributes to","nurtures"],leftFriends:["Friends","Friend","Jump","Jumps","j","similar","supports","alternatives","advantages","pros"],rightFriends:["opposes","disadvantages","missing","cons"],previous:["Previous","Prev","West","w","Before"],next:["Next","n","East","e","After"],hidden:["hidden"]};var R={JSON_MALFORMED:"Malformed JSON",JSON_MISSING_KEYS:'JSON must have these 4 keys: "parents", "children", "friends", "nextFriends"',JSON_VALUES_NOT_STRING_ARRAYS:'Key values must be a non-empty array of strings. e.g. "parents": ["Parent", "Parents", "up"]',EXCALIBRAIN_FILE_NAME:"Filepath of Excalibrain drawing",EXCALIBRAIN_FILE_DESC:"⚠ This file will be overwritten by the plugin. If you stop the script and make changes to the graph, you should rename the file so your edits are preserved, because the next time you initiate ExcaliBrain your edits will be overwritten by the automatically generated ExcaliBrain graph.",INDEX_REFRESH_FREQ_NAME:"Index refresh frequency",INDEX_REFRESH_FREQ_DESC:"ExcaliBrain will update its index whenever you switch work panes, in case a file has changed in your Vault since the last index update.
    This setting is thus only relevant when you are typing in a markdown editor (not switching files or panes) and you still want ExcaliBrain to update it's graph as you type. Because frequent background index updates can be resource intensive you have an option to increase the time interval for the index-updates which in turn will reduce the overhead on your system.",HIERARCHY_HEAD:"Ontology",HIERARCHY_DESC:"Ontology, in the the heart of Excalibrain. It is the context of our knowledge graph and refers to a system for organizing and defining the relationships between different nodes in the graph. It allows us to add semantic meaning to connections by associating them with specific Dataview fields, such as 'author' or 'chapter,' which influence the way nodes are positioned relative to each other on the graph. This approach enables a more structured and meaningful representation of information, making it easier to understand and explore the interconnectedness of concepts within the markdown documents in your Vault.

    Enter the field names separated by comma (,) that you will use to define links in your graph.

    You can also add fields to the ontology on the fly from the markdown editor by typing the new field (e.g.: 'Consits of::') and then calling one of the command palette actions to Add dataview field to ontology as ..., or by opening the context menu.",INFER_NAME:"Infer all implicit relationships as Friend",INFER_DESC:"Toggle On: All implicit links in the document are interpreted as FRIENDS.
    Toggle Off: The following logic is used:
    • A forward link is inferred as a CHILD
    • A backlink is inferred as a PARENT
    • If files mutually link to each other, they are FRIENDS
    ",REVERSE_NAME:"Reverse infer logic",REVERSE_DESC:"Toggle ON: Treat backlinks as children and forward links as parents.
    Toggle OFF: Treat backlinks as parents and forward links as children",INVERSE_ARROW_DIRECTION_NAME:"Inverse arrow direction",INVERSE_ARROW_DIRECTION_DESC:"Toggle ON: Display arrow heads in the opposite direction of the link direction.
    Toggle OFF: Display arrow heads in the same direction as the link direction",HIDDEN_NAME:"Hidden",HIDDEN_DESC:"Dataview or YAML fields that are hidden in the graph.",PARENTS_NAME:"Parents",CHILDREN_NAME:"Children",LEFT_FRIENDS_NAME:"Left-Side Friends",RIGHT_FRIENDS_NAME:"Right-Side Friends",PREVIOUS_NAME:"Previous (Friends)",NEXT_NAME:"Next (Friends)",EXCLUSIONS_NAME:"Excluded",EXCLUSIONS_DESC:"Dataview or YAML fields that are never used for ontology. These fields will not show up in the ontology suggester in the markdown editor, and will not be shown in the unassigned list.",UNASSIGNED_NAME:"Unassigned",UNASSIGNED_DESC:"Fields in your Vault that are neither excluded nor part of the defined ontology.",ONTOLOGY_SUGGESTER_NAME:"Ontology Suggester",ONTOLOGY_SUGGESTER_DESC:"Activate ontology suggester in the markdown editor. If enabled then typing the trigger sequence at the beginning of a paragraph will activate the suggester listing your ontology fields defined above.",ONTOLOGY_SUGGESTER_ALL_NAME:"Character sequence to trigger generic suggester. The Generic suggester will include all the ontology fields regardless of their direction.",ONTOLOGY_SUGGESTER_PARENT_NAME:"Character sequence to trigger parent suggester",ONTOLOGY_SUGGESTER_CHILD_NAME:"Character sequence to trigger child suggester",ONTOLOGY_SUGGESTER_LEFT_FRIEND_NAME:"Character sequence to trigger left-side friend suggester",ONTOLOGY_SUGGESTER_RIGHT_FRIEND_NAME:"Character sequence to trigger right-side friend suggester",ONTOLOGY_SUGGESTER_PREVIOUS_NAME:"Character sequence to trigger previous (friend) suggester",ONTOLOGY_SUGGESTER_NEXT_NAME:"Character sequence to trigger next (friend) suggester",MID_SENTENCE_SUGGESTER_TRIGGER_NAME:"Mid-sentence dataview field suggester trigger",MID_SENTENCE_SUGGESTER_TRIGGER_DESC:"You may add fields mid-way in sentences following one of these two formats:
    We met at [location:: [[XYZ restaurant]]] with [candidate:: [[John Doe]]]
    We met at (location:: [[XYZ restaurant]]) with (candidate:: [[John Doe]])
    If you set this trigger to e.g. ( then typing (::: anywhere in the sentence will activate the suggester (assuming you are using the default generic suggester trigger commbination of ::: - see setting above).
    More info on inline fields: [DataView Help](https://blacksmithgu.github.io/obsidian-dataview/data-annotation/)",BOLD_FIELDS_NAME:"Add selected field with BOLD",BOLD_FIELDS_DESC:"Add selected field to text with bold typeface, i.e. (**field name**:: ) resulting in (field name:: )",DISPLAY_HEAD:"Display",COMPACT_VIEW_NAME:"Compact view",COMPACT_VIEW_DESC:"Controls the width of the graph by setting the maximum number of columns that are displayed for children and parent nodes.
    Toggle ON:The max number of child columns is 3, and the max number of parent columns is 2
    Toggle OFF:The max number of child columns is 5, max number of parent columns is 3",COMPACTING_FACTOR_NAME:"Compacting factor",COMPACTING_FACTOR_DESC:"The higher the number the more compact the graph will be. The lower the number the more spread out the graph will be.",MINLINKLENGTH_NAME:"Minimum center-friend distance",MINLINKLENGTH_DESC:"The minimum distance betweeen the central node and the friend nodes. The higher the number the furhter away the friends will be from the parent, leaving more space for the link ontology labels.",NODETITLE_SCRIPT_NAME:"Javascript for rendering node names",NODETITLE_SCRIPT_DESC:"Javascript code to render the node title. If you don't need it, just leave this field empty.
    Function definition: customNodeLabel: (dvPage: Literal, defaultName:string) => string
    In your script you may refer to the dataview page object via the dvPage variable; and the default page name (filename or alias if available) via the defaultName variable. Use the following expression syntax:
    dvPage['field 1']??defaultName - this example will display the vaule of 'field 1' if available else the defaultName
    ⚠ Your line of code will be executed as is, make sure you add proper exception handling. Beyond defaultName and dataview field names, you also have the freedom to use any javascript function (e.g. defaultName.toLowerCase()) and any value that appears on the dvPage object, e.g. dvPage.file.path, etc.
    To explore the dataview page object open Developer Console and enter the following code:
    DataviewAPI.page('full filepath including extension')
    Here's an example code that will display the value of the title field if available, else the filename, followed by the state (if available):
    dvPage.title??defaultName & (dvPage.state ? ' - ' & dvPage.state : '')",BEHAVIOR_HEAD:"Behavior",EXCLUDE_PATHLIST_NAME:"Filepaths to exclude",EXCLUDE_PATHLIST_DESC:"Enter comma-separated list of filepaths to exclude from the index.",STYLE_HEAD:"Styling",STYLE_DESC:"Styles are applied in sequence.
    1. Base node style
    2. Inferred node style (only applied if the node is inferred)
    3. Virtual node style (only applied if the node is virtual)
    4. Central node style (only applied if the node is in the center)
    5. Sibling node style (only applied if the node is a sibling)
    6. Attachment node style (only applied if the node is an attachment)
    7. Optional tag based style
    All the attributes of the base node style must be specified. All other styles may have partial definitions. e.g. You may add a prefix and override the base node-background color in the tag-based style, override the font color in the inferred-node style and set the border stroke style to dotted in the virtual-node style.",CANVAS_BGCOLOR:"Canvas color",SHOW_FULL_TAG_PATH_NAME:"Display full tag name",SHOW_FULL_TAG_PATH_DESC:"Toggle on: will display the full tag e.g. #reading/books/sci-fi
    Toggle off: will display the current section of the tag, e.g. assuming the tag above, the graph will display only #reading, #books, #sci-fi respectively as you navigate the tag hierarchy.",SHOW_COUNT_NAME:"Display neighbor count",SHOW_COUNT_DESC:"Show the number of children, parents, friends next to the node gate",ALLOW_AUTOZOOM_NAME:"Autozoom",ALLOW_AUTOZOOM_DESC:"Toggle ON: Allow autozoom
    Toggle OFF: Disable autozoom",MAX_AUTOZOOM_NAME:"Maximum autozoom level [%]",MAX_AUTOZOOM_DESC:"Maximum zoom level to apply when autozoom is enabled. The higher the number the more zoomed in the graph will be.",ALLOW_AUTOFOCUS_ON_SEARCH_NAME:"Autofocus on search",ALLOW_AUTOFOCUS_ON_SEARCH_DESC:"Toggle ON: Allow autofocus on Search
    Toggle OFF: Disable autofocus",ALWAYS_ON_TOP_NAME:"Popout default 'always on top' behavior",ALWAYS_ON_TOP_DESC:"Toggle ON: When opening ExcaliBrain in a popout window, it will open with the new window in 'always on top' mode.
    Toggle OFF: The new window will not be in 'always on top' mode.",EMBEDDED_FRAME_WIDTH_NAME:"Embedded frame width",EMBEDDED_FRAME_HEIGHT_NAME:"Embedded frame height",TAGLIST_NAME:"Formatted tags",TAGLIST_DESC:"You can specify special formatting rules for Nodes based on tags. If there are multiple tags present in a note, and 'note type::' is not defined, the page the first matching a specification will be used.
    Tagnames should start with # and may be incomplete. i.e. #book will match #books, #book/fiction, etc.
    tAg NaMeS are CaSE sensiTIve
    Enter a comma separated list of tags here, then select from the dropdown list to change the formatting.",NOTE_STYLE_TAG_NAME:"Note style tag field",NOTE_STYLE_TAG_DESC:"The dataview field to designate the primary tag for styling the page. This tag will be used as the base style. If other tags on the page also have defined styles and those style definitions include a prefix character those prefixes will be also added to the note title.",ALL_STYLE_PREFIXES_NAME:"Display all tags styles",ALL_STYLE_PREFIXES_DESC:"Display tag prefixes for all tags included in the note",MAX_ITEMCOUNT_DESC:"Maximum node count",MAX_ITEMCOUNT_NAME:"Maximum number of nodes to display in a given area of the layout.i.e. the maximum number of parents, the maximum number of children, the maximum number of friends, and the maximum number of siblings to display. If there are more items, they will be ommitted from the drawing.",NODESTYLE_INCLUDE_TOGGLE:"Toggle ON: override base node style for this attribute; OFF: apply base node style for this attribute",NODESTYLE_PREFIX_NAME:"Prefix",NODESTYLE_PREFIX_DESC:"Prefix character or emoji to display in front of the node's label",NODESTYLE_BGCOLOR:"Background color",NODESTYLE_BG_FILLSTYLE:"Background fill-style",NODESTYLE_TEXTCOLOR:"Text color",NODESTYLE_BORDERCOLOR:"Border color",NODESTYLE_FONTSIZE:"Font size",NODESTYLE_FONTFAMILY:"Font family",NODESTYLE_MAXLABELLENGTH_NAME:"Max label length",NODESTYLE_MAXLABELLENGTH_DESC:"Maximum number of characters to display from node title. Longer nodes will end with '...'",NODESTYLE_ROUGHNESS:"Stroke roughness",NODESTYLE_SHARPNESS:"Stroke sharpness",NODESTYLE_STROKEWIDTH:"Stroke width",NODESTYLE_STROKESTYLE:"Stroke style",NODESTYLE_RECTANGLEPADDING:"Padding of the node rectangle",NODESTYLE_GATE_RADIUS_NAME:"Gate radius",NODESTYLE_GATE_RADIUS_DESC:"The radius of the 3 small circles (alias: gates) serving as connection points for nodes",NODESTYLE_GATE_OFFSET_NAME:"Gate offset",NODESTYLE_GATE_OFFSET_DESC:"The offset to the left and right of the parent and child gates.",NODESTYLE_GATE_COLOR:"Gate border color",NODESTYLE_GATE_BGCOLOR_NAME:"Gate background color",NODESTYLE_GATE_BGCOLOR_DESC:"The fill color of the gate if it has children",NODESTYLE_GATE_FILLSTYLE:"Gate background fill-style",NODESTYLE_BASE:"Base node style",NODESTYLE_CENTRAL:"Style of central node",NODESTYLE_INFERRED:"Style of inferred nodes",NODESTYLE_URL:"Style of web page nodes",NODESTYLE_VIRTUAL:"Style of virtual nodes",NODESTYLE_SIBLING:"Style of sibling nodes",NODESTYLE_ATTACHMENT:"Style of attachment nodes",NODESTYLE_FOLDER:"Style of folder nodes",NODESTYLE_TAG:"Style of tag nodes",LINKSTYLE_COLOR:"Color",LINKSTYLE_WIDTH:"Width",LINKSTYLE_STROKE:"Stroke style",LINKSTYLE_ROUGHNESS:"Roughness",LINKSTYLE_ARROWSTART:"Start arrow head",LINKSTYLE_ARROWEND:"End arrow head",LINKSTYLE_SHOWLABEL:"Show label on link",LINKSTYLE_FONTSIZE:"Label font size",LINKSTYLE_FONTFAMILY:"Label font family",LINKSTYLE_BASE:"Base link style",LINKSTYLE_INFERRED:"Style of inferred link",LINKSTYLE_FOLDER:"Style of folder link",LINKSTYLE_TAG:"Style of tag link",DATAVIEW_NOT_FOUND:`Dataview plugin not found. Please install or enable Dataview then try restarting ${O}.`,DATAVIEW_UPGRADE:`Please upgrade Dataview to 0.5.31 or newer. Please update Dataview then try restarting ${O}.`,EXCALIDRAW_NOT_FOUND:`Excalidraw plugin not found. Please install or enable Excalidraw then try restarting ${O}.`,EXCALIDRAW_MINAPP_VERSION:`ExcaliBrain requires Excalidraw ${_} or higher. Please upgrade Excalidraw then try restarting ${O}.`,COMMAND_ADD_HIDDEN_FIELD:"Add dataview field to ontology as HIDDEN",COMMAND_ADD_PARENT_FIELD:"Add dataview field to ontology as PARENT",COMMAND_ADD_CHILD_FIELD:"Add dataview field to ontology as CHILD",COMMAND_ADD_LEFT_FRIEND_FIELD:"Add dataview field to ontology as LEFT-SIDE FRIEND",COMMAND_ADD_RIGHT_FRIEND_FIELD:"Add dataview field to ontology as RIGHT-SIDE FRIEND",COMMAND_ADD_PREVIOUS_FIELD:"Add dataview field to ontology as PREVIOUS",COMMAND_ADD_NEXT_FIELD:"Add dataview field to ontology as NEXT",COMMAND_ADD_ONTOLOGY_MODAL:"Add dataview field to ontology: Open Ontology Modal",COMMAND_START:"ExcaliBrain Normal",COMMAND_START_HOVER:"ExcaliBrain Hover-Editor",COMMAND_START_POPOUT:"ExcaliBrain Popout Window",COMMAND_STOP:"Stop ExcaliBrain",HOVER_EDITOR_ERROR:"I am sorry. Something went wrong. Most likely there was a version update to Hover Editor which I haven't addressed properly in ExcaliBrain. Normally I should get this fixed within few days",OPEN_DRAWING:"Save snapshot for editing",SEARCH_IN_VAULT:"Starred items will be listed in empty search.\nSearch for a file, a folder or a tag in your Vault.\nToggle folders and tags on/off to show in the list.",SHOW_HIDE_ATTACHMENTS:"Show/Hide attachments",SHOW_HIDE_VIRTUAL:"Show/Hide virtual nodes",SHOW_HIDE_INFERRED:"Show/Hide inferred relationships",SHOW_HIDE_ALIAS:"Show/Hide document alias",SHOW_HIDE_SIBLINGS:"Show/Hide siblings",SHOW_HIDE_POWERFILTER:"Enable/Disable Power Filter",SHOW_HIDE_EMBEDDEDCENTRAL:"Display central node as embedded frame",SHOW_HIDE_URLS:"Show/Hide URLs in central notes as graph nodes",SHOW_HIDE_FOLDER:"Show/Hide folder nodes",SHOW_HIDE_TAG:"Show/Hide tag nodes",SHOW_HIDE_PAGES:"Show/Hide page nodes (incl. defined, inferred, virtual and attachments)",PIN_LEAF:"Link ExcaliBrain to the most recent active leaf. When linked, ExcaliBrain will only monitor changes of the pinned leaf and open synchronized pages only on the pinned leaf.",NAVIGATE_BACK:"Navigate back",NAVIGATE_FORWARD:"Navigate forward",REFRESH_VIEW:"Refresh",AUTO_OPEN_DOCUMENT:"Synchronize navigation. When plugs are connected, changes to ExcaliBrain focus will be reflected in the active Obsidian tab and vice versa.\n\nYou can link/unlink this button to the '<> Display central node as embedded frame' button in the ExcaliBrain settings.",TOGGLE_AUTOOPEN_WHEN_EMBED_TOGGLE_NAME:"Synchronize navigation on Embed toggle",TOGGLE_AUTOOPEN_WHEN_EMBED_TOGGLE_DESC:"Toggle ON: When you toggle the '< > Display central node as embedded frame' button, ExcaliBrain will automatically turn navigation synchronization on
    Toggle OFF: When you toggle the '< > Display central node as embedded frame' button, ExcaliBrain will not automatically turn navigation synchronization on",ADD_TO_ONTOLOGY_MODAL_DESC:"Select the direction of the ontology. If one of the buttons is highlighted, then the field is already part of the ontology in that direction."};const M={en:R,ar:{},cs:{},da:{},de:{JSON_MALFORMED:"Ungültiges JSON-Format",JSON_MISSING_KEYS:'JSON muss diese 4 Schlüssel enthalten: "parents", "children", "friends", "nextFriends"',JSON_VALUES_NOT_STRING_ARRAYS:'Die Schlüsselwerte müssen ein nicht-leeres Array von Zeichenketten sein. z.B. "parents": ["Eltern", "Elternteile", "hoch"]',EXCALIBRAIN_FILE_NAME:"Dateipfad der Excalibrain-Zeichnung",EXCALIBRAIN_FILE_DESC:"⚠ Diese Datei wird durch das Plugin überschrieben. Wenn Sie das Skript stoppen und Änderungen am Graphen vornehmen, sollten Sie die Datei umbenennen, damit Ihre Änderungen erhalten bleiben. Denn beim nächsten Start von ExcaliBrain werden Ihre Änderungen durch den automatisch generierten ExcaliBrain-Graphen überschrieben.",INDEX_REFRESH_FREQ_NAME:"Index-Aktualisierungsfrequenz",INDEX_REFRESH_FREQ_DESC:"ExcaliBrain wird seinen Index immer dann aktualisieren, wenn Sie zwischen Arbeitsbereichen wechseln, falls eine Datei in Ihrer Vault seit der letzten Index-Aktualisierung geändert wurde.
    Diese Einstellung ist nur relevant, wenn Sie in einem Markdown-Editor tippen (keine Datei- oder Bereichswechsel vornehmen) und dennoch möchten, dass ExcaliBrain den Graphen während des Schreibens aktualisiert. Da häufige Hintergrund-Index-Updates ressourcenintensiv sein können, haben Sie die Möglichkeit, das Zeitintervall für die Index-Updates zu vergrößern, um die Auswirkungen auf Ihr System zu reduzieren.",HIERARCHY_HEAD:"Ontologie",HIERARCHY_DESC:"Geben Sie die Dataview-Feldnamen durch Kommas getrennt ein, die Sie verwenden möchten, um Link-Richtungen in Ihrem Graphen zu definieren.
    Sie können auch Felder dynamisch von Ihrem Markdown-Editor aus zur Ontologie hinzufügen, indem Sie das neue Feld am Anfang eines Absatzes eingeben (z.B. 'Besteht aus::') und dann eine der Befehlspalettenaktionen aufrufen, um das Dataview-Feld als ELTERN, KIND, FREUND oder RECHTER FREUND zur Ontologie hinzuzufügen.",INFER_NAME:"Alle impliziten Beziehungen als Freund interpretieren",INFER_DESC:"Ein: Alle impliziten Verknüpfungen im Dokument werden als FREUNDE interpretiert.
    Aus: Die folgende Logik wird verwendet:
    • Eine Vorwärtsverknüpfung wird als KIND interpretiert
    • Eine Rückverknüpfung wird als ELTERN interpretiert
    • Wenn Dateien sich gegenseitig verknüpfen, sind sie FREUNDE
    ",REVERSE_NAME:"Logik für implizite Beziehungen umkehren",REVERSE_DESC:"Ein: Rückverknüpfungen als KINDER und Vorwärtsverknüpfungen als ELTERN behandeln.
    Aus: Rückverknüpfungen als ELTERN und Vorwärtsverknüpfungen als KINDER behandeln",PARENTS_NAME:"Eltern",CHILDREN_NAME:"Kinder",LEFT_FRIENDS_NAME:"Freunde (links)",RIGHT_FRIENDS_NAME:"Freunde (rechts)",PREVIOUS_NAME:"Vorherige (Freunde)",NEXT_NAME:"Nächste (Freunde)",EXCLUSIONS_NAME:"Ausgeschlossen",EXCLUSIONS_DESC:"Dataview- oder YAML-Felder, die niemals für die Ontologie verwendet werden.",UNASSIGNED_NAME:"Nicht zugewiesen",UNASSIGNED_DESC:"Felder in Ihrer Vault, die weder ausgeschlossen noch Teil der definierten Ontologie sind.",ONTOLOGY_SUGGESTER_NAME:"Ontologie-Vorschläge",ONTOLOGY_SUGGESTER_DESC:"Aktivieren Sie den Ontologie-Vorschläger im Markdown-Editor. Wenn aktiviert, wird das Auslösemuster am Anfang eines Absatzes den Ontologie-Feldern angezeigt, die oben definiert sind.",ONTOLOGY_SUGGESTER_ALL_NAME:"Zeichenkette zum Auslösen des generischen Vorschlägers. Der generische Vorschläger enthält alle Ontologie-Felder unabhängig von ihrer Richtung.",ONTOLOGY_SUGGESTER_PARENT_NAME:"Zeichenkette zum Auslösen des Vorschlägers für ELTERN",ONTOLOGY_SUGGESTER_CHILD_NAME:"Zeichenkette zum Auslösen des Vorschlägers für KINDER",ONTOLOGY_SUGGESTER_LEFT_FRIEND_NAME:"Zeichenkette zum Auslösen des Vorschlägers für linke FREUNDE",ONTOLOGY_SUGGESTER_RIGHT_FRIEND_NAME:"Zeichenkette zum Auslösen des Vorschlägers für rechte FREUNDE",ONTOLOGY_SUGGESTER_PREVIOUS_NAME:"Zeichenkette zum Auslösen des Vorschlägers für vorherige (FREUNDE)",ONTOLOGY_SUGGESTER_NEXT_NAME:"Zeichenkette zum Auslösen des Vorschlägers für nächste (FREUNDE)",MID_SENTENCE_SUGGESTER_TRIGGER_NAME:"Auslösemuster für Dataview-Feldvorschläge inmitten von Sätzen",MID_SENTENCE_SUGGESTER_TRIGGER_DESC:"Sie können Felder inmitten von Sätzen hinzufügen, indem Sie einem der beiden Formate folgen:
    We met at [location:: [[XYZ restaurant]]] with [candidate:: [[John Doe]]]
    We met at (location:: [[XYZ restaurant]]) with (candidate:: [[John Doe]])
    Wenn Sie das Auslösemuster z.B. auf ( setzen, wird das Eingeben von (::: an einer beliebigen Stelle im Satz den Vorschläger aktivieren (sofern Sie das Standard-Auslösemuster für generische Vorschläge von ::: verwenden - siehe Einstellung oben).
    Weitere Informationen zu Inline-Feldern finden Sie unter [DataView-Hilfe](https://blacksmithgu.github.io/obsidian-dataview/data-annotation/)",BOLD_FIELDS_NAME:"Ausgewähltes Feld fett hervorheben",BOLD_FIELDS_DESC:"Fügt das ausgewählte Feld mit fetter Schriftart zum Text hinzu, z.B. (**Feldname**:: ) ergibt (Feldname:: )",DISPLAY_HEAD:"Darstellung",COMPACT_VIEW_NAME:"Kompakte Ansicht",COMPACT_VIEW_DESC:"Zeigt den Graphen in einer kompakten Ansicht an",EXCLUDE_PATHLIST_NAME:"Auszuschließende Dateipfade",EXCLUDE_PATHLIST_DESC:"Geben Sie eine kommagetrennte Liste von Dateipfaden ein, die vom Index ausgeschlossen werden sollen.",RENDERALIAS_NAME:"Alias anzeigen, wenn verfügbar",RENDERALIAS_DESC:"Zeigt den Seitennamen anstelle des Dateinamens an, wenn dieser in den Metadaten der Seite angegeben ist.",NODETITLE_SCRIPT_NAME:"Javascript zum Rendern von Knotennamen",NODETITLE_SCRIPT_DESC:"Javascript-Code zum Rendern des Knotentitels. Wenn Sie es nicht benötigen, lassen Sie dieses Feld einfach leer.
    Funktionsdefinition: customNodeLabel: (dvPage: Literal, defaultName:string) => string
    In Ihrem Skript können Sie auf das Dataview-Objekt der Seite über die Variable dvPage und den Standardseitennamen (Dateiname oder Alias, sofern vorhanden) über die Variable defaultName zugreifen. Verwenden Sie die folgende Ausdruckssyntax:
    dvPage['Feld 1']??defaultName - dieses Beispiel zeigt den Wert von 'Feld 1', falls verfügbar, andernfalls den Standardnamen.
    ⚠ Ihr Code wird wie eingegeben ausgeführt, stellen Sie sicher, dass Sie eine ordnungsgemäße Fehlerbehandlung hinzufügen. Neben defaultName und Dataview-Feldnamen haben Sie auch die Freiheit, beliebige JavaScript-Funktionen zu verwenden (z.B. defaultName.toLowerCase()) und beliebige Werte, die im dvPage-Objekt erscheinen, z.B. dvPage.file.path, etc.
    Um das Dataview-Objekt der Seite zu erkunden, öffnen Sie die Entwicklerkonsole und geben Sie folgenden Code ein:
    DataviewAPI.page('vollständiger Dateipfad einschließlich Erweiterung')
    Hier ist ein Beispielcode, der den Wert des Titelfelds anzeigt, sofern verfügbar, gefolgt vom Dateinamen und dem Status (sofern verfügbar):
    dvPage.title??defaultName & (dvPage.state ? ' - ' & dvPage.state : '')",SHOWINFERRED_NAME:"Implizite Beziehungen anzeigen",SHOWINFERRED_DESC:"Ein: Zeigt sowohl explizit definierte als auch implizierte Verknüpfungen an. Vorwärtsverknüpfungen sind Kinder, Rückverknüpfungen sind Eltern, wenn sich zwei Seiten gegenseitig beziehen, wird die Beziehung als Freundschaft interpretiert. Explizit definierte Beziehungen haben immer Vorrang.
    Aus: Zeigt nur explizit definierte Beziehungen an.",SHOWVIRTUAL_NAME:"Virtuelle Kindknoten anzeigen",SHOWVIRTUAL_DESC:"Ein: Zeigt nicht aufgelöste Verknüpfungen an.
    Aus: Zeigt nicht aufgelöste Verknüpfungen nicht an.",SHOWATTACHMENTS_NAME:"Anhänge einbeziehen",SHOWATTACHMENTS_DESC:"Ein: Zeigt alle Dateitypen im Graphen an.
    Aus: Zeigt nur Markdown-Dateien an.",STYLE_HEAD:"Stil",STYLE_DESC:"Stile werden in der Reihenfolge angewendet.
    1. Basis-Knotenstil
    2. Implizierter Knotenstil (wird nur angewendet, wenn der Knoten impliziert ist)
    3. Virtueller Knotenstil (wird nur angewendet, wenn der Knoten virtuell ist)
    4. Zentraler Knotenstil (wird nur angewendet, wenn der Knoten in der Mitte ist)
    5. Geschwister Knotenstil (wird nur angewendet, wenn der Knoten ein Geschwister ist)
    6. Anlagen Knotenstil (wird nur angewendet, wenn der Knoten ein Anhang ist)
    7. Optionaler stichwortbasierter Stil
    Alle Attribute des Basis-Knotenstils müssen angegeben werden. Alle anderen Stile können teilweise definiert sein. Sie können beispielsweise einen Präfix hinzufügen und die Hintergrundfarbe des Basis-Knotens überschreiben oder die Schriftfarbe im implizierten Knotenstil ändern und den Randstrichstil im virtuellen Knotenstil auf gestrichelt setzen.",CANVAS_BGCOLOR:"Hintergrundfarbe der Leinwand",SHOW_FULL_TAG_PATH_NAME:"Vollständigen Tag-Namen anzeigen",SHOW_FULL_TAG_PATH_DESC:"Ein: Der vollständige Tag wird angezeigt, z.B. #lesen/bücher/sci-fi
    Aus: Die aktuelle Sektion des Tags wird angezeigt. Angenommen, der obige Tag lautet #lesen/bücher/sci-fi, dann werden im Graphen nur #lesen, #bücher, #sci-fi angezeigt, wenn Sie die Tag-Hierarchie durchlaufen.",SHOW_COUNT_NAME:"Anzahl der Nachbarn anzeigen",SHOW_COUNT_DESC:"Zeigt die Anzahl der Kinder, Eltern, Freunde neben dem Knoten-Gate an",ALLOW_AUTOZOOM_NAME:"Autozoom erlauben",ALLOW_AUTOZOOM_DESC:"Ein: Erlaubt Autozoom
    Aus: Deaktiviert Autozoom",ALLOW_AUTOFOCUS_ON_SEARCH_NAME:"Autofokus bei Suche erlauben",ALLOW_AUTOFOCUS_ON_SEARCH_DESC:"Ein: Erlaubt Autofokus bei Suche
    Aus: Deaktiviert Autofokus",ALWAYS_ON_TOP_NAME:"Standardmäßiges 'immer im Vordergrund' - Verhalten für Popout",ALWAYS_ON_TOP_DESC:"Ein: Wenn ExcaliBrain in einem Popout-Fenster geöffnet wird, wird es im 'immer im Vordergrund'-Modus geöffnet.
    Aus: Das neue Fenster wird nicht im 'immer im Vordergrund'-Modus geöffnet.",EMBEDDED_FRAME_WIDTH_NAME:"Breite des eingebetteten Rahmens",EMBEDDED_FRAME_HEIGHT_NAME:"Höhe des eingebetteten Rahmens",TAGLIST_NAME:"Formatierte Tags",TAGLIST_DESC:"Sie können spezielle Formatierungsregeln für Knoten basierend auf Tags festlegen. Wenn mehrere Tags auf der Seite vorhanden sind, wird die erste passende Spezifikation verwendet.
    Tagnamen sollten mit einem # beginnen und können unvollständig sein. Zum Beispiel wird #buch zu #bücher, #buch/fiction usw. passen.
    Geben Sie hier eine kommagetrennte Liste von Tags ein und wählen Sie aus der Dropdown-Liste, um die Formatierung zu ändern.",MAX_ITEMCOUNT_DESC:"Maximale Anzahl von Knoten",MAX_ITEMCOUNT_NAME:"Maximale Anzahl von Knoten, die in einem bestimmten Bereich der Anordnung angezeigt werden.D.h. die maximale Anzahl von Eltern, die maximale Anzahl von Kindern, die maximale Anzahl von Freunden und die maximale Anzahl von Geschwistern, die angezeigt werden sollen. Wenn es mehr Elemente gibt, werden sie aus der Zeichnung ausgelassen.",NODESTYLE_INCLUDE_TOGGLE:"Ein: Überschreibt den Basis-Knotenstil für dieses Attribut; Aus: Wendet den Basis-Knotenstil für dieses Attribut an",NODESTYLE_PREFIX_NAME:"Präfix",NODESTYLE_PREFIX_DESC:"Präfixzeichen oder Emoji, das vor dem Knotenlabel angezeigt wird",NODESTYLE_BGCOLOR:"Hintergrundfarbe",NODESTYLE_BG_FILLSTYLE:"Hintergrund-Füllstil",NODESTYLE_TEXTCOLOR:"Textfarbe",NODESTYLE_BORDERCOLOR:"Randfarbe",NODESTYLE_FONTSIZE:"Schriftgröße",NODESTYLE_FONTFAMILY:"Schriftart",NODESTYLE_MAXLABELLENGTH_NAME:"Maximale Label-Länge",NODESTYLE_MAXLABELLENGTH_DESC:"Maximale Anzahl von Zeichen, die vom Knotentitel angezeigt werden. Längere Knoten enden mit '...'",NODESTYLE_ROUGHNESS:"Strichrauheit",NODESTYLE_SHARPNESS:"Strichschärfe",NODESTYLE_STROKEWIDTH:"Strichstärke",NODESTYLE_STROKESTYLE:"Strichstil",NODESTYLE_RECTANGLEPADDING:"Polsterung des Knotenrechtecks",NODESTYLE_GATE_RADIUS_NAME:"Radius des Gates",NODESTYLE_GATE_RADIUS_DESC:"Der Radius der 3 kleinen Kreise (Alias: Gates), die als Verbindungspunkte für Knoten dienen",NODESTYLE_GATE_OFFSET_NAME:"Offset des Gates",NODESTYLE_GATE_OFFSET_DESC:"Der Abstand nach links und rechts von den Eltern- und Kind-Gates.",NODESTYLE_GATE_COLOR:"Randfarbe des Gates",NODESTYLE_GATE_BGCOLOR_NAME:"Hintergrundfarbe des Gates",NODESTYLE_GATE_BGCOLOR_DESC:"Die Füllfarbe des Gates, wenn es Kinder hat",NODESTYLE_GATE_FILLSTYLE:"Hintergrund-Füllstil des Gates",NODESTYLE_BASE:"Basis-Knotenstil",NODESTYLE_CENTRAL:"Stil des zentralen Knotens",NODESTYLE_INFERRED:"Stil der implizierten Knoten",NODESTYLE_VIRTUAL:"Stil der virtuellen Knoten",NODESTYLE_SIBLING:"Stil der Geschwister-Knoten",NODESTYLE_ATTACHMENT:"Stil der Anlagen-Knoten",NODESTYLE_FOLDER:"Stil der Ordner-Knoten",NODESTYLE_TAG:"Stil der Tag-Knoten",LINKSTYLE_COLOR:"Farbe",LINKSTYLE_WIDTH:"Breite",LINKSTYLE_STROKE:"Strichstil",LINKSTYLE_ROUGHNESS:"Strichrauheit",LINKSTYLE_ARROWSTART:"Pfeilspitze am Anfang",LINKSTYLE_ARROWEND:"Pfeilspitze am Ende",LINKSTYLE_SHOWLABEL:"Label auf Verbindung anzeigen",LINKSTYLE_FONTSIZE:"Label-Schriftgröße",LINKSTYLE_FONTFAMILY:"Label-Schriftart",LINKSTYLE_BASE:"Basis-Verbindungsstil",LINKSTYLE_INFERRED:"Stil der implizierten Verbindung",LINKSTYLE_FOLDER:"Stil der Ordner-Verbindung",LINKSTYLE_TAG:"Stil der Tag-Verbindung",DATAVIEW_NOT_FOUND:`Das Dataview-Plugin wurde nicht gefunden. Bitte installieren oder aktivieren Sie Dataview und starten Sie ${O} neu.`,DATAVIEW_UPGRADE:`Bitte aktualisieren Sie Dataview auf Version 0.5.31 oder höher. Bitte aktualisieren Sie Dataview und starten Sie ${O} neu.`,EXCALIDRAW_NOT_FOUND:`Das Excalidraw-Plugin wurde nicht gefunden. Bitte installieren oder aktivieren Sie Excalidraw und starten Sie ${O} neu.`,EXCALIDRAW_MINAPP_VERSION:`ExcaliBrain erfordert Excalidraw Version ${_} oder höher. Bitte aktualisieren Sie Excalidraw und starten Sie ${O} neu.`,COMMAND_ADD_PARENT_FIELD:"Dataview-Feld der Ontologie als ELTERN hinzufügen",COMMAND_ADD_CHILD_FIELD:"Dataview-Feld der Ontologie als KIND hinzufügen",COMMAND_ADD_LEFT_FRIEND_FIELD:"Dataview-Feld der Ontologie als LINKSFREUND hinzufügen",COMMAND_ADD_RIGHT_FRIEND_FIELD:"Dataview-Feld der Ontologie als RECHTSFREUND hinzufügen",COMMAND_ADD_PREVIOUS_FIELD:"Dataview-Feld der Ontologie als VORHERIGE hinzufügen",COMMAND_ADD_NEXT_FIELD:"Dataview-Feld der Ontologie als NÄCHSTE hinzufügen",COMMAND_START:"ExcaliBrain Normal starten",COMMAND_START_HOVER:"ExcaliBrain Hover-Editor starten",COMMAND_START_POPOUT:"ExcaliBrain Popout-Fenster starten",COMMAND_STOP:"ExcaliBrain beenden",HOVER_EDITOR_ERROR:"Entschuldigung. Etwas ist schiefgegangen. Wahrscheinlich gab es ein Versionsupdate von Hover Editor, das ich in ExcaliBrain nicht richtig berücksichtigt habe. Normalerweise werde ich das innerhalb weniger Tage beheben.",OPEN_DRAWING:"Snapshot zum Bearbeiten speichern",SEARCH_IN_VAULT:"Markierte Elemente werden in der leeren Suche aufgelistet.\nSuchen Sie nach einer Datei, einem Ordner oder einem Tag in Ihrem Tresor.\nSchalten Sie Ordner und Tags ein/aus, um sie in der Liste anzuzeigen.",SHOW_HIDE_ATTACHMENTS:"Anlagen anzeigen/ausblenden",SHOW_HIDE_VIRTUAL:"Virtuelle Knoten anzeigen/ausblenden",SHOW_HIDE_INFERRED:"Implizierte Knoten anzeigen/ausblenden",SHOW_HIDE_ALIAS:"Dokument-Alias anzeigen/ausblenden",SHOW_HIDE_SIBLINGS:"Geschwister anzeigen/ausblenden",SHOW_HIDE_EMBEDDEDCENTRAL:"Zentralen Knoten als eingebetteten Rahmen anzeigen",SHOW_HIDE_FOLDER:"Ordner-Knoten anzeigen/ausblenden",SHOW_HIDE_TAG:"Tag-Knoten anzeigen/ausblenden",SHOW_HIDE_PAGES:"Seiten-Knoten anzeigen/ausblenden (einschließlich definierter, implizierter, virtueller und Anlagen)",PIN_LEAF:"ExcaliBrain mit dem zuletzt aktiven Blatt verbinden"},"en-gb":{},es:{JSON_MALFORMED:"JSON mal formado",JSON_MISSING_KEYS:'JSON debe contener estas 4 claves: "parents", "children", "friends", "nextFriends"',JSON_VALUES_NOT_STRING_ARRAYS:'Los valores de las claves deben ser una matriz no vacía de cadenas. Ejemplo: "parents": ["Padre", "Padres", "arriba"]',EXCALIBRAIN_FILE_NAME:"Ruta del archivo de dibujo de Excalibrain",EXCALIBRAIN_FILE_DESC:"⚠ Este archivo será sobrescrito por el complemento. Si detienes el script y realizas cambios en el grafo, debes renombrar el archivo para conservar tus ediciones, porque la próxima vez que inicies ExcaliBrain, tus ediciones serán sobrescritas por el grafo generado automáticamente.",INDEX_REFRESH_FREQ_NAME:"Frecuencia de actualización del índice",INDEX_REFRESH_FREQ_DESC:"ExcaliBrain actualizará su índice cada vez que cambies los paneles de trabajo, en caso de que un archivo haya cambiado en tu Vault desde la última actualización del índice.
    Esta configuración solo es relevante cuando estás escribiendo en un editor de markdown (sin cambiar de archivo o paneles) y aún deseas que ExcaliBrain actualice su grafo mientras escribes. Debido a que las actualizaciones frecuentes del índice en segundo plano pueden ser intensivas en recursos, tienes la opción de aumentar el intervalo de tiempo para las actualizaciones del índice, lo que reducirá la carga en tu sistema.",HIERARCHY_HEAD:"Ontología",HIERARCHY_DESC:"Ingresa los nombres de campo de Dataview separados por comas (,) que usarás para definir las direcciones de los enlaces en tu grafo.
    También puedes agregar campos a la ontología sobre la marcha desde el editor de markdown escribiendo el nuevo campo al comienzo de un párrafo (por ejemplo, 'Consta de::') y luego llamando a una de las acciones del menú de comandos para Agregar campo de Dataview a la ontología como PADRE, o como HIJO, como AMIGO, o como AMIGO DERECHO",INFER_NAME:"Inferir todas las relaciones implícitas como Amigos",INFER_DESC:"Activado: Todos los enlaces implícitos en el documento se interpretan como AMIGOS.
    Desactivado: Se utiliza la siguiente lógica:
    • Un enlace hacia adelante se infiere como HIJO
    • Un enlace de retroceso se infiere como PADRE
    • Si los archivos se vinculan mutuamente, son AMIGOS
    ",REVERSE_NAME:"Invertir lógica de inferencia",REVERSE_DESC:"Activado: Tratar los enlaces de retroceso como hijos y los enlaces hacia adelante como padres.
    Desactivado: Tratar los enlaces de retroceso como padres y los enlaces hacia adelante como hijos",PARENTS_NAME:"Padres",CHILDREN_NAME:"Hijos",LEFT_FRIENDS_NAME:"Amigos del Lado Izquierdo",RIGHT_FRIENDS_NAME:"Amigos del Lado Derecho",PREVIOUS_NAME:"Anterior (Amigos)",NEXT_NAME:"Siguiente (Amigos)",EXCLUSIONS_NAME:"Excluidos",EXCLUSIONS_DESC:"Campos de Dataview o YAML que nunca se utilizan para la ontología",UNASSIGNED_NAME:"Sin Asignar",UNASSIGNED_DESC:"Campos en tu Vault que no están excluidos ni forman parte de la ontología definida.",ONTOLOGY_SUGGESTER_NAME:"Sugeridor de Ontología",ONTOLOGY_SUGGESTER_DESC:"Activa el sugeridor de ontología en el editor de markdown. Si está habilitado, al escribir la secuencia de activación al comienzo de un párrafo activará el sugeridor que muestra los campos de ontología definidos anteriormente.",ONTOLOGY_SUGGESTER_ALL_NAME:"Secuencia de caracteres para activar el sugeridor genérico. El sugeridor genérico incluirá todos los campos de ontología sin importar su dirección.",ONTOLOGY_SUGGESTER_PARENT_NAME:"Secuencia de caracteres para activar el sugeridor de padres",ONTOLOGY_SUGGESTER_CHILD_NAME:"Secuencia de caracteres para activar el sugeridor de hijos",ONTOLOGY_SUGGESTER_LEFT_FRIEND_NAME:"Secuencia de caracteres para activar el sugeridor de amigos del lado izquierdo",ONTOLOGY_SUGGESTER_RIGHT_FRIEND_NAME:"Secuencia de caracteres para activar el sugeridor de amigos del lado derecho",ONTOLOGY_SUGGESTER_PREVIOUS_NAME:"Secuencia de caracteres para activar el sugeridor de anterior (amigos)",ONTOLOGY_SUGGESTER_NEXT_NAME:"Secuencia de caracteres para activar el sugeridor de siguiente (amigos)",MID_SENTENCE_SUGGESTER_TRIGGER_NAME:"Activador de sugeridor de campos de Dataview en medio de oraciones",MID_SENTENCE_SUGGESTER_TRIGGER_DESC:"Puedes agregar campos a mitad de las oraciones siguiendo uno de estos dos formatos:
    Nos encontramos en [lugar:: [[Restaurante XYZ]]] con [candidato:: [[John Doe]]]
    Nos encontramos en (lugar:: [[Restaurante XYZ]]) con (candidato:: [[John Doe]])
    Si configuras este activador como por ejemplo (, entonces al escribir (::: en cualquier parte de la oración se activará el sugeridor (asumiendo que estás utilizando la combinación predeterminada de activador de sugeridor ::: - ver configuración anterior).
    Más información sobre campos en línea: [Ayuda de DataView](https://blacksmithgu.github.io/obsidian-dataview/data-annotation/)",BOLD_FIELDS_NAME:"Agregar campo seleccionado en negrita",BOLD_FIELDS_DESC:"Agregar el campo seleccionado al texto en negrita, es decir, (**nombre del campo**:: ) resultando en (nombre del campo:: )",DISPLAY_HEAD:"Visualización",COMPACT_VIEW_NAME:"Vista compacta",COMPACT_VIEW_DESC:"Mostrar el grafo en una vista compacta",EXCLUDE_PATHLIST_NAME:"Rutas de archivos a excluir",EXCLUDE_PATHLIST_DESC:"Ingresa una lista de rutas de archivos separadas por comas que se deben excluir del índice.",RENDERALIAS_NAME:"Mostrar alias si está disponible",RENDERALIAS_DESC:"Muestra el alias de la página en lugar del nombre de archivo si está especificado en el front matter de la página.",NODETITLE_SCRIPT_NAME:"Javascript para renderizar nombres de nodos",NODETITLE_SCRIPT_DESC:"Código Javascript para renderizar el título del nodo. Si no lo necesitas, simplemente deja este campo vacío.
    Definición de la función: customNodeLabel: (dvPage: Literal, defaultName:string) => string
    En tu script, puedes referirte al objeto de página Dataview a través de la variable dvPage; y el nombre de página predeterminado (nombre de archivo o alias si está disponible) a través de la variable defaultName. Utiliza la siguiente sintaxis de expresión:
    dvPage['campo 1']??defaultName - este ejemplo mostrará el valor de 'campo 1' si está disponible, de lo contrario mostrará defaultName
    ⚠ Tu línea de código se ejecutará tal como está, asegúrate de agregar un manejo adecuado de excepciones. Además de defaultName y los nombres de campo de dataview, también tienes la libertad de usar cualquier función de javascript (por ejemplo, defaultName.toLowerCase()) y cualquier valor que aparezca en el objeto dvPage, como dvPage.file.path, etc.
    Para explorar el objeto de página de Dataview, abre la Consola de Desarrollador e ingresa el siguiente código:
    DataviewAPI.page('ruta completa del archivo incluyendo extensión')
    Aquí tienes un ejemplo de código que mostrará el valor del campo 'title' si está disponible, de lo contrario mostrará el nombre de archivo, seguido del estado (si está disponible):
    dvPage.title??defaultName & (dvPage.state ? ' - ' & dvPage.state : '')",SHOWINFERRED_NAME:"Mostrar relaciones inferidas",SHOWINFERRED_DESC:"Activado: Mostrar tanto los enlaces explícitamente definidos como los inferidos. Los enlaces hacia adelante son hijos, los enlaces de retroceso son padres, si dos páginas se refieren mutuamente, se infiere que existe una amistad. Las relaciones definidas explícitamente siempre tienen prioridad.
    Desactivado: Mostrar solo relaciones definidas explícitamente.",SHOWVIRTUAL_NAME:"Mostrar nodos virtuales hijos",SHOWVIRTUAL_DESC:"Activado: Mostrar enlaces no resueltos.
    Desactivado: No mostrar enlaces no resueltos.",SHOWATTACHMENTS_NAME:"Incluir adjuntos",SHOWATTACHMENTS_DESC:"Activado: Mostrar todo tipo de archivos en el grafo.
    Desactivado: Mostrar solo archivos de markdown.",STYLE_HEAD:"Estilo",STYLE_DESC:"Los estilos se aplican en secuencia.
    1. Estilo de nodo base
    2. Estilo de nodo inferido (solo se aplica si el nodo es inferido)
    3. Estilo de nodo virtual (solo se aplica si el nodo es virtual)
    4. Estilo de nodo central (solo se aplica si el nodo está en el centro)
    5. Estilo de nodo hermano (solo se aplica si el nodo es un hermano)
    6. Estilo de nodo adjunto (solo se aplica si el nodo es un adjunto)
    7. Estilo basado en etiquetas opcional
    Todos los atributos del estilo de nodo base deben especificarse. Todos los demás estilos pueden tener definiciones parciales. Por ejemplo, puedes agregar un prefijo y sobrescribir el color de fondo del nodo en el estilo basado en etiquetas, sobrescribir el color de fuente en el estilo de nodo inferido y establecer el estilo del borde como punteado en el estilo de nodo virtual.",CANVAS_BGCOLOR:"Color del lienzo",SHOW_FULL_TAG_PATH_NAME:"Mostrar nombre completo de la etiqueta",SHOW_FULL_TAG_PATH_DESC:"Activado: mostrará el nombre completo de la etiqueta, por ejemplo, #lectura/libros/ciencia ficción
    Desactivado: mostrará la sección actual de la etiqueta, por ejemplo, asumiendo la etiqueta anterior, el grafo mostrará solo #lectura, #libros, #ciencia ficción respectivamente a medida que navegas la jerarquía de etiquetas.",SHOW_COUNT_NAME:"Mostrar conteo de vecinos",SHOW_COUNT_DESC:"Mostrar el número de hijos, padres, amigos junto a la puerta del nodo",ALLOW_AUTOZOOM_NAME:"Autozoom",ALLOW_AUTOZOOM_DESC:"Activado: Permitir autozoom
    Desactivado: Deshabilitar autozoom",ALLOW_AUTOFOCUS_ON_SEARCH_NAME:"Autofocus en búsqueda",ALLOW_AUTOFOCUS_ON_SEARCH_DESC:"Activado: Permitir enfoque automático en la búsqueda
    Desactivado: Deshabilitar enfoque automático",ALWAYS_ON_TOP_NAME:"Comportamiento predeterminado de 'siempre arriba' en ventana emergente",ALWAYS_ON_TOP_DESC:"Activado: Cuando se abre ExcaliBrain en una ventana emergente, se abrirá con la nueva ventana en el modo 'siempre arriba'.
    Desactivado: La nueva ventana no estará en el modo 'siempre arriba'.",EMBEDDED_FRAME_WIDTH_NAME:"Ancho del marco incorporado",EMBEDDED_FRAME_HEIGHT_NAME:"Altura del marco incorporado",TAGLIST_NAME:"Etiquetas formateadas",TAGLIST_DESC:"Puedes especificar reglas de formato especial para nodos basadas en etiquetas. Si hay varias etiquetas en la página, se utilizará la primera que coincida con una especificación.
    Los nombres de las etiquetas deben comenzar con # y pueden ser incompletas. Es decir, #libro coincidirá con #libros, #libro/ficción, etc.
    Ingresa una lista separada por comas de etiquetas aquí, luego selecciona en la lista desplegable para cambiar el formato.",MAX_ITEMCOUNT_DESC:"Recuento máximo de nodos",MAX_ITEMCOUNT_NAME:"Número máximo de nodos para mostrar en un área determinada del diseño.es decir, el número máximo de padres, el número máximo de hijos, el número máximo de amigos y el número máximo de hermanos para mostrar. Si hay más elementos, se omitirán del dibujo.",NODESTYLE_INCLUDE_TOGGLE:"Activar: sobrescribir estilo base del nodo para este atributo; Desactivar: aplicar estilo base del nodo para este atributo",NODESTYLE_PREFIX_NAME:"Prefijo",NODESTYLE_PREFIX_DESC:"Carácter o emoji de prefijo que se mostrará delante de la etiqueta del nodo",NODESTYLE_BGCOLOR:"Color de fondo",NODESTYLE_BG_FILLSTYLE:"Estilo de relleno de fondo",NODESTYLE_TEXTCOLOR:"Color de texto",NODESTYLE_BORDERCOLOR:"Color del borde",NODESTYLE_FONTSIZE:"Tamaño de fuente",NODESTYLE_FONTFAMILY:"Fuente",NODESTYLE_MAXLABELLENGTH_NAME:"Longitud máxima de etiqueta",NODESTYLE_MAXLABELLENGTH_DESC:"Número máximo de caracteres a mostrar del título del nodo. Los nodos más largos se truncarán con '...'",NODESTYLE_ROUGHNESS:"Rugosidad del trazo",NODESTYLE_SHARPNESS:"Nitidez del trazo",NODESTYLE_STROKEWIDTH:"Ancho del trazo",NODESTYLE_STROKESTYLE:"Estilo del trazo",NODESTYLE_RECTANGLEPADDING:"Relleno del rectángulo del nodo",NODESTYLE_GATE_RADIUS_NAME:"Radio de la puerta",NODESTYLE_GATE_RADIUS_DESC:"El radio de los 3 pequeños círculos (alias: puertas) que sirven como puntos de conexión para los nodos",NODESTYLE_GATE_OFFSET_NAME:"Desplazamiento de la puerta",NODESTYLE_GATE_OFFSET_DESC:"El desplazamiento a la izquierda y derecha de las puertas de los padres e hijos.",NODESTYLE_GATE_COLOR:"Color del borde de la puerta",NODESTYLE_GATE_BGCOLOR_NAME:"Color de fondo de la puerta",NODESTYLE_GATE_BGCOLOR_DESC:"El color de relleno de la puerta si tiene hijos",NODESTYLE_GATE_FILLSTYLE:"Estilo de relleno de fondo de la puerta",NODESTYLE_BASE:"Estilo base del nodo",NODESTYLE_CENTRAL:"Estilo del nodo central",NODESTYLE_INFERRED:"Estilo de los nodos inferidos",NODESTYLE_VIRTUAL:"Estilo de los nodos virtuales",NODESTYLE_SIBLING:"Estilo de los nodos hermanos",NODESTYLE_ATTACHMENT:"Estilo de los nodos de adjunto",NODESTYLE_FOLDER:"Estilo de los nodos de carpeta",NODESTYLE_TAG:"Estilo de los nodos de etiqueta",LINKSTYLE_COLOR:"Color",LINKSTYLE_WIDTH:"Ancho",LINKSTYLE_STROKE:"Estilo del trazo",LINKSTYLE_ROUGHNESS:"Rugosidad",LINKSTYLE_ARROWSTART:"Cabeza de flecha de inicio",LINKSTYLE_ARROWEND:"Cabeza de flecha de fin",LINKSTYLE_SHOWLABEL:"Mostrar etiqueta en el enlace",LINKSTYLE_FONTSIZE:"Tamaño de fuente de la etiqueta",LINKSTYLE_FONTFAMILY:"Fuente de la etiqueta",LINKSTYLE_BASE:"Estilo base del enlace",LINKSTYLE_INFERRED:"Estilo del enlace inferido",LINKSTYLE_FOLDER:"Estilo del enlace de carpeta",LINKSTYLE_TAG:"Estilo del enlace de etiqueta",DATAVIEW_NOT_FOUND:`Plugin Dataview no encontrado. Por favor, instala o habilita Dataview y luego intenta reiniciar ${O}.`,DATAVIEW_UPGRADE:`Por favor, actualiza Dataview a la versión 0.5.31 o superior. Actualiza Dataview y luego intenta reiniciar ${O}.`,EXCALIDRAW_NOT_FOUND:`Plugin Excalidraw no encontrado. Por favor, instala o habilita Excalidraw y luego intenta reiniciar ${O}.`,EXCALIDRAW_MINAPP_VERSION:`ExcaliBrain requiere Excalidraw ${_} o superior. Por favor, actualiza Excalidraw y luego intenta reiniciar ${O}.`,COMMAND_ADD_PARENT_FIELD:"Agregar campo de Dataview a la ontología como PADRE",COMMAND_ADD_CHILD_FIELD:"Agregar campo de Dataview a la ontología como HIJO",COMMAND_ADD_LEFT_FRIEND_FIELD:"Agregar campo de Dataview a la ontología como AMIGO LADO IZQUIERDO",COMMAND_ADD_RIGHT_FRIEND_FIELD:"Agregar campo de Dataview a la ontología como AMIGO LADO DERECHO",COMMAND_ADD_PREVIOUS_FIELD:"Agregar campo de Dataview a la ontología como ANTERIOR",COMMAND_ADD_NEXT_FIELD:"Agregar campo de Dataview a la ontología como SIGUIENTE",COMMAND_START:"ExcaliBrain Normal",COMMAND_START_HOVER:"ExcaliBrain Editor Emergente",COMMAND_START_POPOUT:"ExcaliBrain Ventana Emergente",COMMAND_STOP:"Detener ExcaliBrain",HOVER_EDITOR_ERROR:"Lo siento. Algo salió mal. Lo más probable es que haya habido una actualización de versión en el Editor Emergente que no he abordado adecuadamente en ExcaliBrain. Normalmente debería solucionarlo en unos pocos días",OPEN_DRAWING:"Guardar instantánea para editar",SEARCH_IN_VAULT:"Los elementos marcados serán listados en una búsqueda vacía.\nBusca un archivo, una carpeta o una etiqueta en tu Vault.\nAlterna entre carpetas y etiquetas para mostrar/ocultar en la lista.",SHOW_HIDE_ATTACHMENTS:"Mostrar/Ocultar adjuntos",SHOW_HIDE_VIRTUAL:"Mostrar/Ocultar nodos virtuales",SHOW_HIDE_INFERRED:"Mostrar/Ocultar nodos inferidos",SHOW_HIDE_ALIAS:"Mostrar/Ocultar alias del documento",SHOW_HIDE_SIBLINGS:"Mostrar/Ocultar hermanos",SHOW_HIDE_EMBEDDEDCENTRAL:"Mostrar el nodo central como marco incorporado",SHOW_HIDE_FOLDER:"Mostrar/Ocultar nodos de carpeta",SHOW_HIDE_TAG:"Mostrar/Ocultar nodos de etiqueta",SHOW_HIDE_PAGES:"Mostrar/Ocultar nodos de página (incluye definidos, inferidos, virtuales y adjuntos)",PIN_LEAF:"Conectar ExcaliBrain a la hoja activa más reciente"},fr:{},hi:{},id:{},it:{},ja:{},ko:{},nl:{},nn:{},pl:{},pt:{},"pt-br":{},ro:{},ru:{},tr:{},"zh-cn":{JSON_MALFORMED:"JSON 格式错误",JSON_MISSING_KEYS:'JSON 必须包含以下四个键:"parents"(父节点)、"children"(子节点)、"friends"(友好节点)、"nextFriends"(下一友好节点)',JSON_VALUES_NOT_STRING_ARRAYS:'键的值必须是非空字符串数组。例如:"parents": ["Parent", "Parents", "up"]',EXCALIBRAIN_FILE_NAME:"Excalibrain 图绘制的文件路径",EXCALIBRAIN_FILE_DESC:"⚠ 此文件将被插件覆盖。如果您停止脚本并对图表进行更改,应该重新命名文件以保留您的编辑内容,因为下次启动 ExcaliBrain 时,您的编辑内容将被自动生成的 ExcaliBrain 图表覆盖。",INDEX_REFRESH_FREQ_NAME:"索引刷新频率",INDEX_REFRESH_FREQ_DESC:"每当您切换工作窗格时,ExcaliBrain 将更新其索引,以防止您的 Vault 中的文件自上次索引更新以来发生了更改。
    因此,此设置仅在您在 Markdown 编辑器中输入时有效(不切换文件或窗格),并且您仍希望在输入时更新 ExcaliBrain 图表。由于频繁的后台索引更新可能会占用资源,您可以选择增加索引更新的时间间隔,从而减少系统开销。",HIERARCHY_HEAD:"本体论",HIERARCHY_DESC:"输入您将使用的 Dataview 字段名称,用逗号(,)分隔,以定义图表中的链接方向。
    您还可以通过在 Markdown 编辑器中以段落开头键入新字段(例如:'Consits of::')并调用命令面板操作之一来即时添加字段到本体论:添加 dataview 字段到父节点添加 dataview 字段到子节点添加 dataview 字段到友好节点添加 dataview 字段到右侧友好节点",INFER_NAME:"将所有隐式关系推断为友好节点",INFER_DESC:"打开: 将文档中的所有隐式链接解释为友好节点。
    关闭: 将使用以下逻辑:
    • 前向链接被推断为子节点
    • 反向链接被推断为父节点
    • 如果文件相互链接,则它们是友好节点
    ",REVERSE_NAME:"反向推断逻辑",REVERSE_DESC:"打开: 将反向链接视为子节点,将前向链接视为父节点。
    关闭: 将反向链接视为父节点,将前向链接视为子节点",PARENTS_NAME:"父节点",CHILDREN_NAME:"子节点",LEFT_FRIENDS_NAME:"左侧友好节点",RIGHT_FRIENDS_NAME:"右侧友好节点",PREVIOUS_NAME:"上一个(友好节点)",NEXT_NAME:"下一个(友好节点)",EXCLUSIONS_NAME:"排除",EXCLUSIONS_DESC:"永远不用于本体论的 Dataview 或 YAML 字段",UNASSIGNED_NAME:"未指定",UNASSIGNED_DESC:"在您的 Vault 中,既不是排除项也不是已定义本体论的字段。",ONTOLOGY_SUGGESTER_NAME:"本体论建议器",ONTOLOGY_SUGGESTER_DESC:"在 Markdown 编辑器中激活本体论建议器。如果启用,然后在段落开头键入触发序列,将会触发建议器,显示您上面定义的本体论字段。",ONTOLOGY_SUGGESTER_ALL_NAME:"触发通用建议器的字符序列。通用建议器将包含所有本体论字段,而不考虑它们的方向。",ONTOLOGY_SUGGESTER_PARENT_NAME:"触发父节点建议器的字符序列",ONTOLOGY_SUGGESTER_CHILD_NAME:"触发子节点建议器的字符序列",ONTOLOGY_SUGGESTER_LEFT_FRIEND_NAME:"触发左侧友好节点建议器的字符序列",ONTOLOGY_SUGGESTER_RIGHT_FRIEND_NAME:"触发右侧友好节点建议器的字符序列",ONTOLOGY_SUGGESTER_PREVIOUS_NAME:"触发上一个(友好节点)建议器的字符序列",ONTOLOGY_SUGGESTER_NEXT_NAME:"触发下一个(友好节点)建议器的字符序列",MID_SENTENCE_SUGGESTER_TRIGGER_NAME:"中间位置的 Dataview 字段建议器触发字符序列",MID_SENTENCE_SUGGESTER_TRIGGER_DESC:"您可以在句子中间添加字段,遵循以下两种格式之一:
    我们在 [地点:: [[XYZ restaurant]]] 遇见了 [候选人:: [[John Doe]]]
    我们在 (地点:: [[XYZ restaurant]]) 遇见了 (候选人:: [[John Doe]])
    如果您将此触发器设置为例如 (,则在句子中的任何位置键入 (::: 将会触发建议器(假设您正在使用默认的通用建议器触发组合 ::: - 请参阅上面的设置)。更多有关内联字段的信息:[DataView 帮助](https://blacksmithgu.github.io/obsidian-dataview/data-annotation/)",BOLD_FIELDS_NAME:"使用粗体添加选定的字段",BOLD_FIELDS_DESC:"使用粗体类型添加选定的字段,即(**字段名**:: ),结果为(字段名:: )",DISPLAY_HEAD:"显示",COMPACT_VIEW_NAME:"紧凑视图",COMPACT_VIEW_DESC:"以紧凑的视图显示图表",EXCLUDE_PATHLIST_NAME:"要排除的文件路径",EXCLUDE_PATHLIST_DESC:"输入要从索引中排除的文件路径,用逗号分隔。",RENDERALIAS_NAME:"如果可用,显示别名",RENDERALIAS_DESC:"如果页面的 Front Matter 中指定了页面别名,则显示别名而不是文件名。",NODETITLE_SCRIPT_NAME:"用于渲染节点名称的 JavaScript",NODETITLE_SCRIPT_DESC:"用于渲染节点标题的 JavaScript 代码。如果不需要,请将此字段留空。
    函数定义:customNodeLabel: (dvPage: Literal, defaultName:string) => string
    在您的脚本中,您可以通过变量 dvPage 引用 dataview 页面对象;通过变量 defaultName 引用默认页面名称(文件名或别名,如果有)。使用以下表达式语法:
    dvPage['field 1']??defaultName - 该示例将在可用时显示 'field 1' 的值,否则显示 defaultName。
    ⚠ 您的代码将按原样执行,请确保添加适当的异常处理。除了 defaultName 和 dataview 字段名称之外,您还可以自由使用任何 JavaScript 函数(例如 defaultName.toLowerCase())和出现在 dvPage 对象上的任何值,例如 dvPage.file.path 等。
    要查看 dataview 页面对象,请打开开发者控制台并输入以下代码:
    DataviewAPI.page('完整文件路径,包括扩展名')
    以下是一个示例代码,如果可用,将显示 title 字段的值,否则显示文件名,后跟状态(如果可用):
    dvPage.title??defaultName & (dvPage.state ? ' - ' & dvPage.state : '')",SHOWINFERRED_NAME:"显示推断关系",SHOWINFERRED_DESC:"打开: 显示显式定义的关系和推断的关系。前向链接为子节点,反向链接为父节点,如果两个页面相互引用,则推断为友好关系。显式定义的关系始终优先。
    关闭: 仅显示显式定义的关系。",SHOWVIRTUAL_NAME:"显示虚拟子节点",SHOWVIRTUAL_DESC:"打开: 显示未解析的链接。
    关闭: 不显示未解析的链接。",SHOWATTACHMENTS_NAME:"包括附件",SHOWATTACHMENTS_DESC:"打开: 在图表上显示所有类型的文件。
    关闭: 仅显示 Markdown 文件。",STYLE_HEAD:"样式",STYLE_DESC:"样式按顺序应用。
    1. 基本 节点样式
    2. 推断 节点样式(仅在节点是推断的情况下应用)
    3. 虚拟 节点样式(仅在节点是虚拟的情况下应用)
    4. 中心 节点样式(仅在节点位于中心时应用)
    5. 兄弟 节点样式(仅在节点是兄弟节点时应用)
    6. 附件 节点样式(仅在节点是附件时应用)
    7. 基于标签 的样式
    必须指定基本节点样式的所有属性。其他样式可以部分定义。例如,您可以在基于标签的样式中添加前缀并覆盖基本节点背景颜色,在推断节点样式中覆盖字体颜色,在虚拟节点样式中设置边框线样式为虚线。",CANVAS_BGCOLOR:"画布颜色",SHOW_FULL_TAG_PATH_NAME:"显示完整标签名称",SHOW_FULL_TAG_PATH_DESC:"打开: 将显示完整的标签,例如 #reading/books/sci-fi
    关闭: 将根据标签层级显示当前部分标签,例如在上面的标签中,导航标签层级时分别只显示 #reading、#books、#sci-fi。",SHOW_COUNT_NAME:"显示邻居数量",SHOW_COUNT_DESC:"显示子节点、父节点、友好节点旁边的数量",ALLOW_AUTOZOOM_NAME:"自动缩放",ALLOW_AUTOZOOM_DESC:"打开: 允许自动缩放
    关闭: 禁用自动缩放",ALLOW_AUTOFOCUS_ON_SEARCH_NAME:"搜索时自动聚焦",ALLOW_AUTOFOCUS_ON_SEARCH_DESC:"打开: 允许搜索时自动聚焦
    关闭: 禁用搜索时自动聚焦",ALWAYS_ON_TOP_NAME:"弹出窗口默认“置顶”行为",ALWAYS_ON_TOP_DESC:"打开: 在弹出窗口中打开 ExcaliBrain 时,新窗口将以“始终置顶”模式打开。
    关闭: 新窗口将不会以“始终置顶”模式打开。",EMBEDDED_FRAME_WIDTH_NAME:"嵌入帧宽度",EMBEDDED_FRAME_HEIGHT_NAME:"嵌入帧高度",TAGLIST_NAME:"格式化标签",TAGLIST_DESC:"您可以为节点指定基于标签的特殊格式规则。如果页面上存在多个标签,则将使用第一个匹配规范的标签。
    标签名应以 # 开头,可以是不完整的。例如,#book 将匹配 #books、#book/fiction 等。
    在此处输入逗号分隔的标签列表,然后从下拉列表中选择以更改格式。",MAX_ITEMCOUNT_DESC:"最大节点数量",MAX_ITEMCOUNT_NAME:"在布局中显示的节点的最大数量。例如:最大父节点数、最大子节点数、最大友好节点数和最大兄弟节点数。如果有更多节点,则它们将从图中省略。",NODESTYLE_INCLUDE_TOGGLE:"打开:覆盖此属性的基本节点样式;关闭:应用此属性的基本节点样式",NODESTYLE_PREFIX_NAME:"前缀",NODESTYLE_PREFIX_DESC:"节点标签前显示的前缀字符或表情符号",NODESTYLE_BGCOLOR:"背景颜色",NODESTYLE_BG_FILLSTYLE:"背景填充样式",NODESTYLE_TEXTCOLOR:"文本颜色",NODESTYLE_BORDERCOLOR:"边框颜色",NODESTYLE_FONTSIZE:"字体大小",NODESTYLE_FONTFAMILY:"字体族",NODESTYLE_MAXLABELLENGTH_NAME:"最大标签长度",NODESTYLE_MAXLABELLENGTH_DESC:"要从节点标题中显示的最大字符数。较长的节点标题将以 '...' 结尾",NODESTYLE_ROUGHNESS:"笔触粗糙度",NODESTYLE_SHARPNESS:"笔触锐化度",NODESTYLE_STROKEWIDTH:"笔触宽度",NODESTYLE_STROKESTYLE:"笔触样式",NODESTYLE_RECTANGLEPADDING:"节点矩形的填充",NODESTYLE_GATE_RADIUS_NAME:"连接点半径",NODESTYLE_GATE_RADIUS_DESC:"作为节点连接点的 3 个小圆(别名:连接点)的半径",NODESTYLE_GATE_OFFSET_NAME:"连接点偏移",NODESTYLE_GATE_OFFSET_DESC:"父节点和子节点连接点的左右偏移量。",NODESTYLE_GATE_COLOR:"连接点边框颜色",NODESTYLE_GATE_BGCOLOR_NAME:"连接点背景颜色",NODESTYLE_GATE_BGCOLOR_DESC:"连接点的填充颜色(如果具有子节点)",NODESTYLE_GATE_FILLSTYLE:"连接点背景填充样式",NODESTYLE_BASE:"基本节点样式",NODESTYLE_CENTRAL:"中心节点样式",NODESTYLE_INFERRED:"推断节点样式",NODESTYLE_VIRTUAL:"虚拟节点样式",NODESTYLE_SIBLING:"兄弟节点样式",NODESTYLE_ATTACHMENT:"附件节点样式",NODESTYLE_FOLDER:"文件夹节点样式",NODESTYLE_TAG:"标签节点样式",LINKSTYLE_COLOR:"颜色",LINKSTYLE_WIDTH:"宽度",LINKSTYLE_STROKE:"笔触样式",LINKSTYLE_ROUGHNESS:"粗糙度",LINKSTYLE_ARROWSTART:"起始箭头头部",LINKSTYLE_ARROWEND:"结束箭头头部",LINKSTYLE_SHOWLABEL:"在连接上显示标签",LINKSTYLE_FONTSIZE:"标签字体大小",LINKSTYLE_FONTFAMILY:"标签字体族",LINKSTYLE_BASE:"基本连接样式",LINKSTYLE_INFERRED:"推断连接样式",LINKSTYLE_FOLDER:"文件夹连接样式",LINKSTYLE_TAG:"标签连接样式",DATAVIEW_NOT_FOUND:`未找到 Dataview 插件。请安装或启用 Dataview,然后尝试重新启动 ${O}。`,DATAVIEW_UPGRADE:`请升级 Dataview 到 0.5.31 或更高版本。请更新 Dataview,然后尝试重新启动 ${O}。`,EXCALIDRAW_NOT_FOUND:`未找到 Excalidraw 插件。请安装或启用 Excalidraw,然后尝试重新启动 ${O}。`,EXCALIDRAW_MINAPP_VERSION:`ExcaliBrain 需要 Excalidraw ${_} 或更高版本。请升级 Excalidraw,然后尝试重新启动 ${O}。`,COMMAND_ADD_PARENT_FIELD:"将 dataview 字段添加到本体作为父节点",COMMAND_ADD_CHILD_FIELD:"将 dataview 字段添加到本体作为子节点",COMMAND_ADD_LEFT_FRIEND_FIELD:"将 dataview 字段添加到本体作为左侧友好节点",COMMAND_ADD_RIGHT_FRIEND_FIELD:"将 dataview 字段添加到本体作为右侧友好节点",COMMAND_ADD_PREVIOUS_FIELD:"将 dataview 字段添加到本体作为上一个节点",COMMAND_ADD_NEXT_FIELD:"将 dataview 字段添加到本体作为下一个节点",COMMAND_START:"ExcaliBrain 普通模式",COMMAND_START_HOVER:"ExcaliBrain 悬停编辑器模式",COMMAND_START_POPOUT:"ExcaliBrain 弹出窗口模式",COMMAND_STOP:"停止 ExcaliBrain",HOVER_EDITOR_ERROR:"对不起,发生了一些错误。很可能是 Hover 编辑器更新了版本,而我在 ExcaliBrain 中没有适当处理。通常我会在几天内解决此问题",OPEN_DRAWING:"保存用于编辑的快照",SEARCH_IN_VAULT:"收藏夹中的项目将列在空搜索中。\n在您的 Vault 中搜索文件、文件夹或标签。\n切换文件夹和标签的显示/隐藏以在列表中显示。",SHOW_HIDE_ATTACHMENTS:"显示/隐藏附件",SHOW_HIDE_VIRTUAL:"显示/隐藏虚拟节点",SHOW_HIDE_INFERRED:"显示/隐藏推断节点",SHOW_HIDE_ALIAS:"显示/隐藏文档别名",SHOW_HIDE_SIBLINGS:"显示/隐藏兄弟节点",SHOW_HIDE_EMBEDDEDCENTRAL:"将中心节点显示为嵌入式框架",SHOW_HIDE_FOLDER:"显示/隐藏文件夹节点",SHOW_HIDE_TAG:"显示/隐藏标签节点",SHOW_HIDE_PAGES:"显示/隐藏页面节点(包括已定义、推断、虚拟和附件节点)",PIN_LEAF:"链接 ExcaliBrain 到最近的活动叶子"},"zh-tw":{},hu:{JSON_MALFORMED:"Hibás JSON",JSON_MISSING_KEYS:'A JSON-nak rendelkeznie kell az alábbi 4 kulccsal: "parents", "children", "friends", "nextFriends"',JSON_VALUES_NOT_STRING_ARRAYS:'A kulcsok értékeinek nem üres string tömbnek kell lenniük. Példa: "parents": ["Szülő", "Szülők", "feljebb"]',EXCALIBRAIN_FILE_NAME:"Excalibrain rajz fájl elérési útvonala",EXCALIBRAIN_FILE_DESC:"⚠ Ez a fájl felül lesz írva a bővítmény által. Ha leállítod a szkriptet és változtatsz a gráfban, akkor át kell nevezned a fájlt, hogy a módosításaid megmaradjanak. Mert amikor újra elindítod az ExcaliBrain-t, a módosításaidat felülírja az automatikusan generált ExcaliBrain gráf.",INDEX_REFRESH_FREQ_NAME:"Index frissítési gyakorisága",INDEX_REFRESH_FREQ_DESC:"Az ExcaliBrain frissíti az indexét, amikor váltasz munkatérre, abban az esetben, ha az előző index frissítése óta megváltozott egy fájl a Vault-odban.
    Ez a beállítás csak akkor érvényes, ha egy markdown szerkesztőben írsz (nem váltasz fájlokat vagy térképeket), és mégis azt szeretnéd, hogy az ExcaliBrain frissítse a gráfodat ahogy gépelsz. Mivel a gyakori háttérindex frissítések erőforrásigényesek lehetnek, van lehetőséged növelni az index-frissítés időközét, amely csökkenti a rendszer terhelését.",HIERARCHY_HEAD:"Ontológia",HIERARCHY_DESC:"Add meg a Dataview mezőneveket vesszővel elválasztva (,) úgy, hogy ezeket fogod használni a link irányok meghatározásához a gráfodban.
    Az ontológiát a markdown szerkesztőben a mező elé írva is bővítheted (például: 'Tartalmazza::') majd valamelyik parancspaletta parancs segítségével hozzáadhatod a dataview mezőt az ontológiához, mint SZÜLŐ, GYERMEK, BARÁT, vagy JOBBSZÉL BARÁT",INFER_NAME:"Az összes implicit kapcsolat barátként való megjelenítése",INFER_DESC:"Be: Az összes implcita linket a dokumentumban barátként értelmezi.
    Ki: Az alábbi logikát alkalmazza:
    • Egy előre mutató linket gyermekként értelmez
    • Egy visszamutató linket szülőként értelmez
    • Ha két fájl kölcsönösen hivatkozik egymásra, azok barátok
    ",REVERSE_NAME:"Fordított következtető logika",REVERSE_DESC:"Be: A visszamutató linkeket gyerekként, az előre mutatókat szülőkként kezeli.
    Ki: A visszamutató linkeket szülőkként, az előre mutatókat gyerekként kezeli",PARENTS_NAME:"Szülők",CHILDREN_NAME:"Gyermekek",LEFT_FRIENDS_NAME:"Baloldali barátok",RIGHT_FRIENDS_NAME:"Jobboldali barátok",PREVIOUS_NAME:"Előző (barátok)",NEXT_NAME:"Következő (barátok)",EXCLUSIONS_NAME:"Kizárt",EXCLUSIONS_DESC:"Dataview vagy YAML mezők, amelyek sosem kerülnek felhasználásra az ontológiában",UNASSIGNED_NAME:"Nem hozzárendelt",UNASSIGNED_DESC:"A Vault-odban található mezők, amelyek sem az ontológia részei, sem kizárt mezők.",ONTOLOGY_SUGGESTER_NAME:"Ontológia javasoló",ONTOLOGY_SUGGESTER_DESC:"Aktiválja az ontológia javasolót a markdown szerkesztőben. Ha engedélyezve van, akkor a paragrafus elején írt trigger szekvenciával aktiválhatod a javasolót, ami felsorolja az előzőleg meghatározott ontológiai mezőket.",ONTOLOGY_SUGGESTER_ALL_NAME:"Karakter szekvencia a generikus javasoló aktiválásához. A generikus javasoló az összes ontológiai mezőt tartalmazza függetlenül az irányuktól.",ONTOLOGY_SUGGESTER_PARENT_NAME:"Karakter szekvencia a szülő javasoló aktiválásához",ONTOLOGY_SUGGESTER_CHILD_NAME:"Karakter szekvencia a gyermek javasoló aktiválásához",ONTOLOGY_SUGGESTER_LEFT_FRIEND_NAME:"Karakter szekvencia a baloldali barát javasoló aktiválásához",ONTOLOGY_SUGGESTER_RIGHT_FRIEND_NAME:"Karakter szekvencia a jobboldali barát javasoló aktiválásához",ONTOLOGY_SUGGESTER_PREVIOUS_NAME:"Karakter szekvencia az előző (barát) javasoló aktiválásához",ONTOLOGY_SUGGESTER_NEXT_NAME:"Karakter szekvencia a következő (barát) javasoló aktiválásához",MID_SENTENCE_SUGGESTER_TRIGGER_NAME:"Köztes adatmező javasoló kiváltó",MID_SENTENCE_SUGGESTER_TRIGGER_DESC:"Lehetőség van mezőket köztes helyen a mondatokban hozzáadni a következő két formátum valamelyikét használva:
    We met at [location:: [[XYZ restaurant]]] with [candidate:: [[John Doe]]]
    We met at (location:: [[XYZ restaurant]]) with (candidate:: [[John Doe]])
    Ha ezt a kiváltót például (-ra állítod, akkor bárhol a mondatban beírva (::: aktiválja a javasolót (feltéve, hogy a generikus javasoló kiváltója az alapértelmezett ::: - lásd fent).
    További információ az inline mezőkről: [DataView Help](https://blacksmithgu.github.io/obsidian-dataview/data-annotation/)",BOLD_FIELDS_NAME:"Kijelölt mezők félkövéren",BOLD_FIELDS_DESC:"A kijelölt mezőt félkövér típusú szöveggel adja hozzá, azaz (**mező neve**:: ) eredményezve (mező neve:: )",DISPLAY_HEAD:"Megjelenítés",COMPACT_VIEW_NAME:"Sűrű nézet",COMPACT_VIEW_DESC:"A gráf megjelenítése sűrű nézetben",EXCLUDE_PATHLIST_NAME:"Kizárandó fájl elérési útvonalak",EXCLUDE_PATHLIST_DESC:"Adja meg a kizárandó fájlok elérési útvonalait vesszővel elválasztva.",RENDERALIAS_NAME:"Megjelenítési azonosító ha elérhető",RENDERALIAS_DESC:"Megjeleníti az oldal azonosítóját a fájlnév helyett, ha az az oldal előlapján van meghatározva.",NODETITLE_SCRIPT_NAME:"Node nevek megjelenítéséhez JavaScript kód",NODETITLE_SCRIPT_DESC:"JavaScript kód a node nevének megjelenítésére. Ha nem szükséges, hagyja ezt a mezőt üresen.
    Függvény definíció: customNodeLabel: (dvPage: Literal, defaultName:string) => string
    A szkriptben hivatkozhat a dataview oldal objektumára a dvPage változóval; és az alapértelmezett oldalnévre (fájlnév vagy azonosító, ha elérhető) a defaultName változóval. Használhatod a következő kifejezést: dvPage['mező 1']??defaultName - ez az példa megjeleníti a 'mező 1' értékét, ha elérhető, különben az alapértelmezett névet
    ⚠ A kódodat éppen úgy futtatjuk le, ahogy van, tehát győződj meg róla, hogy megfelelő kivételkezelést adtál hozzá. Az defaultName és a dataview mezőnevek mellett szabadon használhatsz bármilyen JavaScript függvényt (például defaultName.toLowerCase()) és bármilyen értéket, ami a dvPage objektumon megjelenik, pl. dvPage.file.path, stb.
    A dataview oldal objektumot felderítheted az Új oldal megnyitásával és a következő kóddal:
    DataviewAPI.page('teljes fájlnév kiterjesztéssel')
    Itt van egy példa kód, ami a cím mező értékét fogja megjeleníteni, ha elérhető, egyébként az alapértelmezett fájlnévet, és mögé fűzi az állapotot (ha elérhető):
    dvPage.title??defaultName & (dvPage.state ? ' - ' & dvPage.state : '')",SHOWINFERRED_NAME:"Az előállított kapcsolatok megjelenítése",SHOWINFERRED_DESC:"Be: Mind az expliciten meghatározott, mind az előállított kapcsolatokat megjeleníti. Az előre mutató linkek gyerekek, a visszamutatók szülők, ha két oldal egymásra hivatkozik, akkor barátokként lesznek kezelve. Az expliciten meghatározott kapcsolatok mindig előnyt élveznek.
    Ki: Csak az expliciten meghatározott kapcsolatokat jeleníti meg.",SHOWVIRTUAL_NAME:"Virtuális gyerek node-ok megjelenítése",SHOWVIRTUAL_DESC:"Be: Megjeleníti a feloldatlan linkeket.
    Ki: Nem jeleníti meg a feloldatlan linkeket.",SHOWATTACHMENTS_NAME:"Mellékletek beillesztése",SHOWATTACHMENTS_DESC:"Be: Minden típusú fájlt megjelenít a gráfban.
    Ki: Csak a markdown fájlokat jeleníti meg.",STYLE_HEAD:"Stílusok",STYLE_DESC:"A stílusokat sorrendben alkalmazzuk.
    1. Alap node stílus
    2. Előállított node stílus (csak akkor alkalmazódik, ha a node előállított)
    3. Virtuális node stílus (csak akkor alkalmazódik, ha a node virtuális)
    4. Középponti node stílus (csak akkor alkalmazódik, ha a node a középpontban van)
    5. Testvérek node stílus (csak akkor alkalmazódik, ha a node testvér)
    6. Melléklet node stílus (csak akkor alkalmazódik, ha a node melléklet)
    7. Opcionális címkén alapuló stílus
    Az alap node stílus minden attribútumát meg kell adni. A többi stílusnak részleges definíciója lehet. Például hozzáadhatsz egy előtagot és felülírhatod az alapértelmezett node háttérszínét a címkén alapuló stílusban, a szöveg színét az előállított node stílusban és a szaggatott vonalas keretet a virtuális node stílusban.",CANVAS_BGCOLOR:"Vászon szín",SHOW_FULL_TAG_PATH_NAME:"Teljes címke név megjelenítése",SHOW_FULL_TAG_PATH_DESC:"Be: megjeleníti a teljes címkét, például #reading/books/sci-fi
    Ki: a címke aktuális részét jeleníti meg, például a fent említett címkéknél csak #reading, #books, #sci-fi lenne látható a gráfban a címke hierarchia mentén navigálva.",SHOW_COUNT_NAME:"Szomszédok számának megjelenítése",SHOW_COUNT_DESC:"Megmutatja a gyermekek, szülők, barátok számát a node kapuja mellett",ALLOW_AUTOZOOM_NAME:"Automatikus nagyítás",ALLOW_AUTOZOOM_DESC:"Be: Engedélyezi az automatikus nagyítást
    Ki: Letiltja az automatikus nagyítást",ALLOW_AUTOFOCUS_ON_SEARCH_NAME:"Automatikus fókusz a keresésnél",ALLOW_AUTOFOCUS_ON_SEARCH_DESC:"Be: Engedélyezi az automatikus fókuszt a keresésnél
    Ki: Letiltja az automatikus fókuszt",ALWAYS_ON_TOP_NAME:"Alapértelmezett 'mindig legfelül' viselkedés lebegtetett ablak esetén",ALWAYS_ON_TOP_DESC:"Be: Ha az ExcaliBrain-t lebegtetett ablakban nyitod meg, akkor az új ablak mindig 'mindig legfelül' módban nyílik meg.
    Ki: Az új ablak nem lesz 'mindig legfelül' módban.",EMBEDDED_FRAME_WIDTH_NAME:"Beágyazott keret szélessége",EMBEDDED_FRAME_HEIGHT_NAME:"Beágyazott keret magassága",TAGLIST_NAME:"Formázott címkék",TAGLIST_DESC:"Különleges formázási szabályokat adhatsz meg a node-okhoz címkék alapján. Ha az oldalon több címke van jelen, az első illeszkedő specifikációt használja.
    A címkéknek a #-al kell kezdődniük és nem teljesek is lehetnek. Tehát például #book illeszkedni fog #books, #book/fiction stb.-re.
    Add meg a címkéket vesszővel elválasztva, majd választhatsz a legördülő listából a formázás megváltoztatásához.",MAX_ITEMCOUNT_DESC:"Maximális node szám",MAX_ITEMCOUNT_NAME:"Maximális node-ok száma a elrendezés adott részén.Azaz a maximális szám a szülőknek, a gyermekeknek, a barátoknak és a testvéreknek a megjelenítéshez. Ha több elem van, akkor nem jelennek meg a rajzon.",NODESTYLE_INCLUDE_TOGGLE:"Be: Az alap node stílus felülbírálása ehhez az attribútumhoz; Ki: Az alap node stílus alkalmazása ehhez az attribútumhoz",NODESTYLE_PREFIX_NAME:"Előtag",NODESTYLE_PREFIX_DESC:"Előtag karakter vagy emojival a node címke elé",NODESTYLE_BGCOLOR:"Háttérszín",NODESTYLE_BG_FILLSTYLE:"Háttér kitöltési stílusa",NODESTYLE_TEXTCOLOR:"Szövegszín",NODESTYLE_BORDERCOLOR:"Keret szín",NODESTYLE_FONTSIZE:"Betűméret",NODESTYLE_FONTFAMILY:"Betűcsalád",NODESTYLE_MAXLABELLENGTH_NAME:"Max címke hossza",NODESTYLE_MAXLABELLENGTH_DESC:"A node címke maximum megjelenített karaktereinek száma. Hosszabb node-ok végén '...' jel lesz látható",NODESTYLE_ROUGHNESS:"Vonal élsőség",NODESTYLE_SHARPNESS:"Vonal élesség",NODESTYLE_STROKEWIDTH:"Vonal vastagsága",NODESTYLE_STROKESTYLE:"Vonal stílusa",NODESTYLE_RECTANGLEPADDING:"A node téglalapának kitöltése",NODESTYLE_GATE_RADIUS_NAME:"Kapu sugara",NODESTYLE_GATE_RADIUS_DESC:"A 3 kis kör sugara (alias: kapuk) a node-ok kapcsolódási pontjaként szolgál",NODESTYLE_GATE_OFFSET_NAME:"Kapu eltolása",NODESTYLE_GATE_OFFSET_DESC:"Az eltolás a szülők és gyermekek kapuinak bal és jobb oldalán",NODESTYLE_GATE_COLOR:"Kapu keret színe",NODESTYLE_GATE_BGCOLOR_NAME:"Kapu háttérszíne",NODESTYLE_GATE_BGCOLOR_DESC:"A kapu kitöltési színe, ha vannak gyermekek",NODESTYLE_GATE_FILLSTYLE:"Kapu háttér kitöltési stílusa",NODESTYLE_BASE:"Alap node stílus",NODESTYLE_CENTRAL:"Középponti node stílusa",NODESTYLE_INFERRED:"Előállított node stílusa",NODESTYLE_VIRTUAL:"Virtuális node stílusa",NODESTYLE_SIBLING:"Testvér node stílusa",NODESTYLE_ATTACHMENT:"Melléklet node stílusa",NODESTYLE_FOLDER:"Mappa node stílusa",NODESTYLE_TAG:"Címke node stílusa",LINKSTYLE_COLOR:"Szín",LINKSTYLE_WIDTH:"Vastagság",LINKSTYLE_STROKE:"Vonal stílusa",LINKSTYLE_ROUGHNESS:"Vonal élsőség",LINKSTYLE_ARROWSTART:"Nyíl feje kezdetén",LINKSTYLE_ARROWEND:"Nyíl feje végén",LINKSTYLE_SHOWLABEL:"Címke megjelenítése a link-en",LINKSTYLE_FONTSIZE:"Címke betűmérete",LINKSTYLE_FONTFAMILY:"Címke betűcsaládja",LINKSTYLE_BASE:"Alap link stílus",LINKSTYLE_INFERRED:"Előállított link stílusa",LINKSTYLE_FOLDER:"Mappa link stílusa",LINKSTYLE_TAG:"Címke link stílusa",DATAVIEW_NOT_FOUND:`A Dataview bővítmény nem található. Kérlek telepítsd vagy engedélyezd a Dataview-t, majd próbáld újra indítani a(z) ${O} alkalmazást.`,DATAVIEW_UPGRADE:`Kérlek frissítsd a Dataview-t 0.5.31 vagy újabb verzióra. Kérlek frissítsd a Dataview-t, majd próbáld újra indítani a(z) ${O} alkalmazást.`,EXCALIDRAW_NOT_FOUND:`Az Excalidraw bővítmény nem található. Kérlek telepítsd vagy engedélyezd az Excalidraw-t, majd próbáld újra indítani a(z) ${O} alkalmazást.`,EXCALIDRAW_MINAPP_VERSION:`Az ExcaliBrain az Excalidraw ${_} vagy újabb verzióját igényli. Kérlek frissítsd az Excalidraw-t, majd próbáld újra indítani a(z) ${O} alkalmazást.`,COMMAND_ADD_PARENT_FIELD:"Dataview mező hozzáadása ontológiaként SZÜLŐKÉNT",COMMAND_ADD_CHILD_FIELD:"Dataview mező hozzáadása ontológiaként GYERMEKEKKÉNT",COMMAND_ADD_LEFT_FRIEND_FIELD:"Dataview mező hozzáadása ontológiaként BAL-OLDALI BARÁTKÉNT",COMMAND_ADD_RIGHT_FRIEND_FIELD:"Dataview mező hozzáadása ontológiaként JOBB-OLDALI BARÁTKÉNT",COMMAND_ADD_PREVIOUS_FIELD:"Dataview mező hozzáadása ontológiaként ELŐZŐKÉNT",COMMAND_ADD_NEXT_FIELD:"Dataview mező hozzáadása ontológiaként KÖVETKEZŐKÉNT",COMMAND_START:"ExcaliBrain Normál",COMMAND_START_HOVER:"ExcaliBrain lebegő szerkesztő",COMMAND_START_POPOUT:"ExcaliBrain különálló ablak",COMMAND_STOP:"ExcaliBrain leállítása",HOVER_EDITOR_ERROR:"Sajnálom. Valami hiba történt. Valószínűleg a Hover Editor verziófrissítése okozta, amelyet még nem kezeltem megfelelően az ExcaliBrain-ben. Általában néhány napon belül megoldom ezt.",OPEN_DRAWING:"Mentés szerkesztéshez",SEARCH_IN_VAULT:"A csillagozott elemek megjelennek az üres keresésben.\nKeresés fájl, mappa vagy címke szerint a Vault-ban.\nKapcsold ki/ki a mappákat és címkéket a listában történő megjelenítéshez.",SHOW_HIDE_ATTACHMENTS:"Mellékletek megjelenítése/elrejtése",SHOW_HIDE_VIRTUAL:"Virtuális node-ok megjelenítése/elrejtése",SHOW_HIDE_INFERRED:"Előállított node-ok megjelenítése/elrejtése",SHOW_HIDE_ALIAS:"Dokumentum alias megjelenítése/elrejtése",SHOW_HIDE_SIBLINGS:"Testvér node-ok megjelenítése/elrejtése",SHOW_HIDE_EMBEDDEDCENTRAL:"Középponti node beágyazott keretként megjelenítése",SHOW_HIDE_FOLDER:"Mappa node-ok megjelenítése/elrejtése",SHOW_HIDE_TAG:"Címke node-ok megjelenítése/elrejtése",SHOW_HIDE_PAGES:"Oldal node-ok megjelenítése/elrejtése (definiált, előállított, virtuális és melléklet)",PIN_LEAF:"ExcaliBrain összekapcsolása az aktív legutóbbi elemmel"}}[n.moment.locale()];function z(e){return M||c({fn:z,where:"src/lang/helpers.ts",message:"Error: locale not found",data:n.moment.locale()}),M&&M[e]||R[e]}class H extends n.Modal{title;message;resolve;constructor(e,t,i){super(e),this.title=t,this.message=i}onOpen(){this.createForm()}onClose(){}createForm(){this.titleEl.setText(this.title),this.contentEl.createDiv({cls:"excalibrain-prompt-center",text:this.message}),this.contentEl.createDiv({cls:"excalibrain-prompt-center"},(e=>{e.style.textAlign="right",e.createEl("button",{text:"Ok"}).onclick=()=>{this.resolve(!0),this.close()},e.createEl("button",{text:"Cancel"}).onclick=()=>{this.resolve(!1),this.close()}}))}show(e){this.resolve=e,this.open()}}const P=/^(?:http(?:s)?:\/\/)?(?:www\.)?youtu(?:be\.com|\.be)\/(embed\/|watch\?v=|shorts\/|playlist\?list=|embed\/videoseries\?list=)?([a-zA-Z0-9_-]+)(?:\?t=|&t=|\?start=|&start=)?([a-zA-Z0-9_-]+)?[^\s]*$/,G=/^(?:http(?:s)?:\/\/)?(?:(?:w){3}.)?(?:player\.)?vimeo\.com\/(?:video\/)?([^?\s]+)(?:\?.*)?$/;class V{page;settings;ea;style={};center={x:0,y:0};id;friendGateId;nextFriendGateId;parentGateId;childGateId;friendGateOnLeft;title;isCentral=!1;isEmbedded=!1;embeddedElementIds=[];constructor(e){e.embeddedElementIds&&(this.embeddedElementIds=e.embeddedElementIds),this.isEmbedded=Boolean(e.isEmbeded),this.isCentral=e.isCentral,this.page=e.page,this.settings=e.page.plugin.settings,this.ea=e.ea,this.page.isFolder?this.style={...this.settings.baseNodeStyle,...e.isCentral?this.settings.centralNodeStyle:{},...e.isSibling?this.settings.siblingNodeStyle:{},...this.settings.folderNodeStyle}:this.page.isTag?this.style={...this.settings.baseNodeStyle,...e.isCentral?this.settings.centralNodeStyle:{},...e.isSibling?this.settings.siblingNodeStyle:{},...this.settings.tagNodeStyle}:this.style={...this.settings.baseNodeStyle,...e.isInferred?this.settings.inferredNodeStyle:{},...e.page.isURL?this.settings.urlNodeStyle:{},...e.page.isVirtual?this.settings.virtualNodeStyle:{},...e.isCentral?this.settings.centralNodeStyle:{},...e.isSibling?this.settings.siblingNodeStyle:{},...e.page.isAttachment?this.settings.attachmentNodeStyle:{},...h([this.page.primaryStyleTag,this.page.styleTags],this.settings),embedHeight:this.settings.centerEmbedHeight,embedWidth:this.settings.centerEmbedWidth},this.friendGateOnLeft=e.friendGateOnLeft,this.title=this.page.getTitle()}get prefix(){return this.style.prefix??""}displayText(){const e=(this.style.prefix??"")+this.title,t=(new Intl.Segmenter).segment(e),i=Array.from(t,(({segment:e})=>e));return i.length>this.page.maxLabelLength?i.slice(0,this.page.maxLabelLength-3).join("")+"...":e}setCenter(e){this.center=e}async renderEmbedded(){const e=this.ea;let t={width:this.style.embedWidth,height:this.style.embedHeight};if(this.page.file&&f(this.page.file,e)||this.page.isURL){this.page.isURL&&(t=((e,t)=>{const i=(e=>{if(!e)return null;const t=e.match(P);if(t?.[2])return e.includes("shorts")?.5625:560/315;const i=e.match(G);return i?.[1]?560/315:null})(e);return i?i>1?{width:t.width,height:t.width/i}:{width:t.height*i,height:t.height}:t})(this.page.url,t)),this.id=e.addEmbeddable(this.center.x-t.width/2,this.center.y-t.height/2,t.width,t.height,this.page.isURL?this.page.url:void 0,this.page.isURL?void 0:this.page.file);const i=e.getElement(this.id);return i.link=this.page.isURL?this.page.url:`[[${this.page.file.path}]]`,i.backgroundColor=this.style.backgroundColor,i.strokeColor=this.style.borderColor,i.strokeStyle=this.style.strokeStyle,this.embeddedElementIds.push(this.id),t}{this.id=await e.addImage(this.center.x-t.width/2,this.center.y-t.height/2,this.page.file,!1,!1);const i=e.getElement(this.id);i.link=`[[${this.page.file.path}]]`;let n=i.width,s=i.height;if(n>t.width||s>t.height){const e=n/s;n>t.width&&(n=t.width,s=n/e),s>t.height&&(s=t.height,n=s*e)}i.x=this.center.x-n/2,i.y=this.center.y-s/2,i.width=n,i.height=s;const r=e.addRect(this.center.x-n/2,this.center.y-s/2,n,s),a=e.getElement(r);return a.backgroundColor=this.style.backgroundColor,a.strokeColor=this.style.borderColor,a.strokeStyle=this.style.strokeStyle,a.fillStyle=this.style.fillStyle,delete e.elementsDict[i.id],e.elementsDict[i.id]=i,this.embeddedElementIds.push(r),this.embeddedElementIds.push(this.id),{width:n,height:s}}}renderText(){const e=this.ea,t=this.displayText(),i=e.measureText(`${t}`);this.id=e.addText(this.center.x-i.width/2,this.center.y-i.height/2,t,{wrapAt:this.page.maxLabelLength+50,textAlign:"center",box:!0,boxPadding:this.style.padding});const n=e.getElement(this.id);return n.link=this.page.isURL?this.page.url:`[[${this.page.file?.path??this.page.path}]]`,n.backgroundColor=this.style.backgroundColor,n.strokeColor=this.style.borderColor,n.strokeStyle=this.style.strokeStyle,i}async render(){const e=this.ea,t=this.settings,i=2*this.style.gateRadius;e.style.fontSize=this.style.fontSize,e.style.fontFamily=this.style.fontFamily,e.style.fillStyle=this.style.fillStyle,e.style.roughness=this.style.roughness,e.style.strokeSharpness=this.style.strokeShaprness,e.style.strokeWidth=this.style.strokeWidth,e.style.strokeColor=this.style.textColor,e.style.backgroundColor="transparent";const n=this.isEmbedded?this.embeddedElementIds.length>0?{width:this.style.embedWidth,height:this.style.embedHeight}:await this.renderEmbedded():this.renderText();e.style.fillStyle=this.style.gateFillStyle,e.style.strokeColor=this.style.gateStrokeColor,e.style.strokeStyle="solid";const s=this.friendGateOnLeft?this.page.previousFriendCount():this.page.nextFriendCount(),r=this.friendGateOnLeft?this.page.nextFriendCount():this.page.previousFriendCount(),a=this.page.leftFriendCount()+s;e.style.backgroundColor=a>0?this.style.gateBackgroundColor:"transparent",this.friendGateId=e.addEllipse(this.friendGateOnLeft?this.center.x-i-this.style.padding-n.width/2:this.center.x+this.style.padding+n.width/2,this.center.y-this.style.gateRadius,i,i);const u=[];t.showNeighborCount&&a>0&&(e.style.fontSize=i,u.push(e.addText(this.friendGateOnLeft?a>9?this.center.x-2*i-this.style.padding-n.width/2:this.center.x-i-this.style.padding-n.width/2:this.center.x+this.style.padding+n.width/2,this.friendGateOnLeft?this.center.y-2*i:this.center.y-this.style.gateRadius+i,a.toString())));const o=this.page.rightFriendCount()+r;e.style.backgroundColor=o>0?this.style.gateBackgroundColor:"transparent",this.nextFriendGateId=e.addEllipse(this.friendGateOnLeft?this.center.x+this.style.padding+n.width/2:this.center.x-i-this.style.padding-n.width/2,this.center.y-this.style.gateRadius,i,i),t.showNeighborCount&&o>0&&(e.style.fontSize=i,u.push(e.addText(this.friendGateOnLeft?this.center.x+this.style.padding+n.width/2:o>9?this.center.x-2*i-this.style.padding-n.width/2:this.center.x-i-this.style.padding-n.width/2,this.friendGateOnLeft?this.center.y-this.style.gateRadius+i:this.center.y-2*i,o.toString()))),this.isCentral||(this.nextFriendGateId=this.friendGateId);const l=this.page.parentCount();e.style.backgroundColor=l>0?this.style.gateBackgroundColor:"transparent",this.parentGateId=e.addEllipse(this.center.x-this.style.gateRadius-this.style.gateOffset,this.center.y-i-this.style.padding-n.height/2,i,i),t.showNeighborCount&&l>0&&(e.style.fontSize=i,u.push(e.addText(this.center.x+i-this.style.gateOffset,this.center.y-i-this.style.padding-n.height/2,l.toString())));const D=this.page.childrenCount();e.style.backgroundColor=D>0?this.style.gateBackgroundColor:"transparent",this.childGateId=e.addEllipse(this.center.x-this.style.gateRadius+this.style.gateOffset,this.center.y+this.style.padding+n.height/2,i,i),t.showNeighborCount&&D>0&&(e.style.fontSize=i,u.push(e.addText(this.center.x+i+this.style.gateOffset,this.center.y+this.style.padding+n.height/2,D.toString()))),e.addToGroup([this.friendGateId,this.parentGateId,this.childGateId,...this.nextFriendGateId!==this.friendGateId?[this.nextFriendGateId]:[],...u,...this.isEmbedded?this.embeddedElementIds:[this.id,e.getElement(this.id).boundElements[0].id]])}}class Y{nodeA;nodeB;nodeBRole;hierarchyDefinition;ea;style;isInferred=!1;constructor(t,i,n,s,r,a,u,o){this.nodeA=t,this.nodeB=i,this.nodeBRole=n,this.hierarchyDefinition=r,this.ea=a;const l=r?.split(",").map((e=>e.trim()));this.isInferred=s===e.INFERRED;let D={};l&&l.forEach((e=>{if(o.hierarchyLinkStylesExtended[e])D={...D,...o.hierarchyLinkStylesExtended[e]};else switch(e){case"file-tree":D={...D,...o.settings.folderLinkStyle};break;case"tag-tree":D={...D,...o.settings.tagLinkStyle}}})),this.style={...u.baseLinkStyle,...this.isInferred?u.inferredLinkStyle:{},...D}}render(e){const i=this.ea,n=this.style;let s,r;switch(i.style.strokeStyle=n.strokeStyle,i.style.roughness=n.roughness,i.style.strokeColor=n.strokeColor,i.style.strokeWidth=n.strokeWidth,i.style.opacity=e?10:100,this.nodeBRole){case t.CHILD:s=this.nodeA.childGateId,r=this.nodeB.parentGateId;break;case t.PARENT:s=this.nodeA.parentGateId,r=this.nodeB.childGateId;break;case t.RIGHT:s=this.nodeA.nextFriendGateId,r=this.nodeB.nextFriendGateId;break;default:s=this.nodeA.friendGateId,r=this.nodeB.friendGateId}const a=i.connectObjects(s,null,r,null,{startArrowHead:"none"===n.startArrowHead?null:n.startArrowHead,endArrowHead:"none"===n.endArrowHead?null:n.endArrowHead});n.showLabel&&this.hierarchyDefinition&&(i.style.fontSize=n.fontSize,i.style.fontFamily=n.fontFamily,i.style.strokeColor=n.textColor,i.addLabelToLine(a,this.hierarchyDefinition))}}const W={compactView:!1,compactingFactor:1.5,minLinkLength:18,excalibrainFilepath:"excalibrain.md",indexUpdateInterval:5e3,hierarchy:x,inferAllLinksAsFriends:!1,inverseInfer:!1,inverseArrowDirection:!0,renderAlias:!0,nodeTitleScript:"",backgroundColor:"#0c3e6aff",excludeFilepaths:[],autoOpenCentralDocument:!0,toggleEmbedTogglesAutoOpen:!0,showInferredNodes:!0,showAttachments:!0,showURLNodes:!0,showVirtualNodes:!0,showFolderNodes:!1,showTagNodes:!1,showPageNodes:!0,showNeighborCount:!0,showFullTagName:!1,maxItemCount:30,renderSiblings:!1,applyPowerFilter:!1,baseNodeStyle:B,centralNodeStyle:{fontSize:30,backgroundColor:"#B5B5B5",textColor:"#000000ff"},inferredNodeStyle:{backgroundColor:"#000005b3",textColor:"#95c7f3ff"},urlNodeStyle:{prefix:"🌐 "},virtualNodeStyle:{backgroundColor:"#ff000066",fillStyle:"hachure",textColor:"#ffffffff"},siblingNodeStyle:{fontSize:15},attachmentNodeStyle:{prefix:"📎 "},folderNodeStyle:{prefix:"📂 ",strokeShaprness:"sharp",borderColor:"#ffd700ff",textColor:"#ffd700ff"},tagNodeStyle:{prefix:"#",strokeShaprness:"sharp",borderColor:"#4682b4ff",textColor:"#4682b4ff"},tagNodeStyles:{},tagStyleList:[],primaryTagField:"Note type",primaryTagFieldLowerCase:"note-type",displayAllStylePrefixes:!0,baseLinkStyle:k,inferredLinkStyle:{strokeStyle:"dashed"},folderLinkStyle:{strokeColor:"#ffd700ff"},tagLinkStyle:{strokeColor:"#4682b4ff"},hierarchyLinkStyles:{},navigationHistory:[],allowOntologySuggester:!0,ontologySuggesterParentTrigger:"::p",ontologySuggesterChildTrigger:"::c",ontologySuggesterLeftFriendTrigger:"::l",ontologySuggesterRightFriendTrigger:"::r",ontologySuggesterPreviousTrigger:"::e",ontologySuggesterNextTrigger:"::n",ontologySuggesterTrigger:":::",ontologySuggesterMidSentenceTrigger:"(",boldFields:!1,allowAutozoom:!0,maxZoom:1,allowAutofocuOnSearch:!0,defaultAlwaysOnTop:!1,embedCentralNode:!1,centerEmbedWidth:550,centerEmbedHeight:700},U="excalibrain-hide-disabled",j="excalibrain-settings-disabled",K=e=>(255*e|256).toString(16).slice(1),q=e=>createFragment((t=>t.createDiv().innerHTML=e)),Z=e=>{const t=document.getElementById(e);if(!t)return;const i=t.parentNode;i&&i.removeChild(t)},$=(e,t)=>{const i=document.createElement("style");i.id=e,i.innerHTML=`.${t} {display: none;}`,document.body.appendChild(i)};class X extends n.PluginSettingTab{plugin;ea;dirty=!1;demoNode;demoNodeImg;demoLinkImg;demoLinkStyle;demoNodeStyle;updateTimer=!1;constructor(e,t){super(e,t),this.plugin=t}get hierarchyStyleList(){return I.concat(Array.from(this.plugin.settings.hierarchy.hidden)).concat(Array.from(this.plugin.settings.hierarchy.parents)).concat(Array.from(this.plugin.settings.hierarchy.children)).concat(Array.from(this.plugin.settings.hierarchy.leftFriends)).concat(Array.from(this.plugin.settings.hierarchy.rightFriends)).concat(Array.from(this.plugin.settings.hierarchy.previous)).concat(Array.from(this.plugin.settings.hierarchy.next))}async updateNodeDemoImg(){this.ea.reset(),this.ea.canvas.viewBackgroundColor=this.plugin.settings.backgroundColor,this.demoNode.style={...this.demoNodeStyle.getInheritedStyle(),...this.demoNodeStyle.style},this.demoNode.render();const e=await this.ea.createSVG(null,!0,{withBackground:!0,withTheme:!1},null,"",40);e.removeAttribute("width"),e.removeAttribute("height"),this.demoNodeImg.setAttribute("src",g(e.outerHTML))}async updateLinkDemoImg(){this.ea.reset(),this.ea.canvas.viewBackgroundColor=this.plugin.settings.backgroundColor;const n=new A(null,"Start node",null,this.plugin),s=new A(null,"End node",null,this.plugin),r=this.plugin.settings.hierarchy;r.leftFriends.contains(this.demoLinkStyle.display)?(n.addLeftFriend(s,e.DEFINED,i.FROM),s.addLeftFriend(n,e.DEFINED,i.TO)):r.rightFriends.contains(this.demoLinkStyle.display)?(n.addRightFriend(s,e.DEFINED,i.FROM),s.addRightFriend(n,e.DEFINED,i.TO)):r.parents.contains(this.demoLinkStyle.display)?(n.addParent(s,e.DEFINED,i.FROM),s.addChild(n,e.DEFINED,i.TO)):(n.addChild(s,e.DEFINED,i.FROM),s.addParent(n,e.DEFINED,i.TO));const a=new V({ea:this.ea,page:n,isInferred:!1,isCentral:!0,isSibling:!1,friendGateOnLeft:!0});a.ea=this.ea,a.setCenter({x:0,y:0});const u=new V({ea:this.ea,page:s,isInferred:!1,isCentral:!1,isSibling:!1,friendGateOnLeft:!1});u.ea=this.ea;let o=t.CHILD;r.leftFriends.contains(this.demoLinkStyle.display)?(u.setCenter({x:-300,y:0}),o=t.LEFT):r.rightFriends.contains(this.demoLinkStyle.display)?(u.setCenter({x:300,y:0}),o=t.RIGHT):r.parents.contains(this.demoLinkStyle.display)?(u.setCenter({x:0,y:-150}),o=t.PARENT):u.setCenter({x:0,y:150});const l=new Y(a,u,o,e.DEFINED,"base",this.ea,this.plugin.settings,this.plugin);a.style={...this.plugin.settings.baseNodeStyle,...this.plugin.settings.centralNodeStyle},a.render(),u.style={...this.demoNodeStyle.getInheritedStyle(),...this.demoNodeStyle.style},u.render(),l.style={...this.demoLinkStyle.getInheritedStyle(),...this.demoLinkStyle.style},l.render(!1);const D=await this.ea.createSVG(null,!0,{withBackground:!0,withTheme:!1},null,"",40);D.removeAttribute("width"),D.removeAttribute("height"),this.demoLinkImg.setAttribute("src",g(D.outerHTML))}async hide(){this.dirty&&(""===this.plugin.settings.ontologySuggesterParentTrigger&&(this.plugin.settings.ontologySuggesterParentTrigger="::p"),""===this.plugin.settings.ontologySuggesterChildTrigger&&(this.plugin.settings.ontologySuggesterChildTrigger="::c"),""===this.plugin.settings.ontologySuggesterLeftFriendTrigger&&(this.plugin.settings.ontologySuggesterLeftFriendTrigger="::l"),""===this.plugin.settings.ontologySuggesterRightFriendTrigger&&(this.plugin.settings.ontologySuggesterRightFriendTrigger="::r"),""===this.plugin.settings.ontologySuggesterPreviousTrigger&&(this.plugin.settings.ontologySuggesterPreviousTrigger="::e"),""===this.plugin.settings.ontologySuggesterNextTrigger&&(this.plugin.settings.ontologySuggesterNextTrigger="::n"),""===this.plugin.settings.ontologySuggesterTrigger&&(this.plugin.settings.ontologySuggesterTrigger=":::"),""===this.plugin.settings.ontologySuggesterMidSentenceTrigger&&(this.plugin.settings.ontologySuggesterMidSentenceTrigger="("),this.plugin.setHierarchyLinkStylesExtended(),this.plugin.settings.tagStyleList=Object.keys(this.plugin.settings.tagNodeStyles),this.plugin.loadCustomNodeLabelFunction(),this.plugin.saveSettings(),this.plugin.scene&&!this.plugin.scene.terminated&&(this.plugin.scene.setBaseLayoutParams(),this.updateTimer&&this.plugin.scene.setTimer(),this.plugin.scene.reRender()))}colorpicker(e,t,i,s,r,a,u,o){let l,D,d,h,c,g;const E=new n.Setting(e).setName(t);i&&E.setDesc(q(i));const p=e=>{e?E.settingEl.addClass(j):E.settingEl.removeClass(j),D.disabled=e,D.style.opacity=e?"0.3":"1",l.setDisabled(e),l.sliderEl.style.opacity=e?"0.3":"1",h.style.opacity=e?"0.3":"1",c.style.opacity=e?"0.3":"1",g.style.opacity=e?"0.3":"1"};u&&E.addToggle((e=>{d=e,e.toggleEl.addClass("excalibrain-settings-toggle"),e.setValue(void 0!==s()).setTooltip(z("NODESTYLE_INCLUDE_TOGGLE")).onChange((e=>{if(this.dirty=!0,!e)return p(!0),void a();r(D.value+K(l.getValue())),p(!1)}))})),E.settingEl.removeClass("mod-toggle"),h=createEl("span",{text:"color:",cls:"excalibrain-settings-colorlabel"}),E.controlEl.appendChild(h),D=createEl("input",{type:"color",cls:"excalibrain-settings-colorpicker"},(e=>{e.value=(s()??o).substring(0,7),e.onchange=()=>{r(e.value+K(l.getValue())),this.dirty=!0}})),E.controlEl.appendChild(D),c=createEl("span",{text:"opacity:",cls:"excalibrain-settings-opacitylabel"}),E.controlEl.appendChild(c),E.addSlider((e=>{var t;l=e,e.setLimits(0,1,.1).setValue((t=s()??o,parseInt(t.substring(7,9),16)/255)).onChange((e=>{r(D.value+K(e)),g.innerText=` ${e.toString()}`,D.style.opacity=e.toString(),this.dirty=!0}))})),g=createDiv({text:`${l.getValue().toString()}`,cls:"excalibrain-settings-sliderlabel"}),E.controlEl.appendChild(g),D.style.opacity=l.getValue().toString(),p(u&&!d.getValue())}numberslider(e,t,i,s,r,a,u,o,l){let D,d,h;const c=new n.Setting(e).setName(t),g=e=>{e?c.settingEl.addClass(j):c.settingEl.removeClass(j),h.setDisabled(e),h.sliderEl.style.opacity=e?"0.3":"1",D.style.opacity=e?"0.3":"1"};return o&&c.addToggle((e=>{d=e,e.toggleEl.addClass("excalibrain-settings-toggle"),e.setValue(void 0!==r()).setTooltip(z("NODESTYLE_INCLUDE_TOGGLE")).onChange((e=>{if(this.dirty=!0,!e)return g(!0),void u();a(h.getValue()),g(!1)}))})),c.addSlider((e=>{h=e,e.setLimits(s.min,s.max,s.step).setValue(r()??l).onChange((async e=>{D.innerText=` ${e.toString()}`,a(e),this.dirty=!0}))})),i&&c.setDesc(q(i)),c.settingEl.createDiv("",(e=>{D=e,e.style.minWidth="2.3em",e.style.textAlign="right",e.innerText=` ${h.getValue().toString()}`})),g(o&&!d.getValue()),c}toggle(e,t,i,s,r,a,u,o){let l,D;const d=new n.Setting(e).setName(t),h=e=>{e?d.settingEl.addClass(j):d.settingEl.removeClass(j),D.setDisabled(e),D.toggleEl.style.opacity=e?"0.3":"1"};u&&d.addToggle((e=>{l=e,e.toggleEl.addClass("excalibrain-settings-toggle"),e.setValue(void 0!==s()).setTooltip(z("NODESTYLE_INCLUDE_TOGGLE")).onChange((e=>{if(this.dirty=!0,!e)return h(!0),void a();r(D.getValue()),h(!1)}))})),d.addToggle((e=>{D=e,e.setValue(s()??o).onChange((async e=>{r(e),this.dirty=!0}))})),i&&d.setDesc(q(i)),h(u&&!l.getValue())}dropdownpicker(e,t,i,s,r,a,u,o,l){let D,d;const h=new n.Setting(e).setName(t),c=e=>{e?h.settingEl.addClass(j):h.settingEl.removeClass(j),D.setDisabled(e),D.selectEl.style.opacity=e?"0.3":"1"};o&&h.addToggle((e=>{d=e,e.toggleEl.addClass("excalibrain-settings-toggle"),e.setValue(void 0!==r()).setTooltip(z("NODESTYLE_INCLUDE_TOGGLE")).onChange((e=>{if(this.dirty=!0,!e)return c(!0),void u();a(D.getValue()),c(!1)}))})),h.addDropdown((e=>{D=e,e.addOptions(s).setValue(r()??l).onChange((e=>{a(e),this.dirty=!0}))})),i&&h.setDesc(q(i)),c(o&&!d.getValue())}nodeSettings(e,t,i=!0,s){let r,a;const u=new n.Setting(e).setName(z("NODESTYLE_PREFIX_NAME")).setDesc(q(z("NODESTYLE_PREFIX_DESC"))),o=e=>{e?u.settingEl.addClass(j):u.settingEl.removeClass(j),r.setDisabled(e),r.inputEl.style.opacity=e?"0.3":"1"};i&&u.addToggle((e=>{a=e,e.toggleEl.addClass("excalibrain-settings-toggle"),e.setValue(void 0!==t.prefix).setTooltip(z("NODESTYLE_INCLUDE_TOGGLE")).onChange((e=>{if(this.dirty=!0,!e)return o(!0),t.prefix=void 0,void this.updateNodeDemoImg();o(!1)}))})),u.addText((e=>{r=e,e.setValue(t.prefix??s.prefix).onChange((e=>{t.prefix=e,this.updateNodeDemoImg(),this.dirty=!0}))})),o(i&&!a.getValue()),this.colorpicker(e,z("NODESTYLE_BGCOLOR"),null,(()=>t.backgroundColor),(e=>{t.backgroundColor=e,this.updateNodeDemoImg()}),(()=>{delete t.backgroundColor,this.updateNodeDemoImg()}),i,s.backgroundColor),this.dropdownpicker(e,z("NODESTYLE_BG_FILLSTYLE"),null,{hachure:"Hachure","cross-hatch":"Cross-hatch",solid:"Solid"},(()=>t.fillStyle?.toString()),(e=>{t.fillStyle=e,this.updateNodeDemoImg()}),(()=>{delete t.fillStyle,this.updateNodeDemoImg()}),i,s.fillStyle.toString()),this.colorpicker(e,z("NODESTYLE_TEXTCOLOR"),null,(()=>t.textColor),(e=>{t.textColor=e,this.updateNodeDemoImg()}),(()=>{delete t.textColor,this.updateNodeDemoImg()}),i,s.textColor),this.colorpicker(e,z("NODESTYLE_BORDERCOLOR"),null,(()=>t.borderColor),(e=>{t.borderColor=e,this.updateNodeDemoImg()}),(()=>{delete t.borderColor,this.updateNodeDemoImg()}),i,s.borderColor),this.numberslider(e,z("NODESTYLE_FONTSIZE"),null,{min:10,max:50,step:5},(()=>t.fontSize),(e=>{t.fontSize=e,this.updateNodeDemoImg()}),(()=>{delete t.fontSize,this.updateNodeDemoImg()}),i,s.fontSize),this.dropdownpicker(e,z("NODESTYLE_FONTFAMILY"),null,{1:"Hand-drawn",2:"Normal",3:"Code",4:"Fourth (custom) Font"},(()=>t.fontFamily?.toString()),(e=>{t.fontFamily=parseInt(e),this.updateNodeDemoImg()}),(()=>{delete t.fontFamily,this.updateNodeDemoImg()}),i,s.fontFamily.toString()),this.numberslider(e,z("NODESTYLE_MAXLABELLENGTH_NAME"),z("NODESTYLE_MAXLABELLENGTH_DESC"),{min:15,max:100,step:5},(()=>t.maxLabelLength),(e=>{t.maxLabelLength=e,this.updateNodeDemoImg()}),(()=>{delete t.maxLabelLength,this.updateNodeDemoImg()}),i,s.maxLabelLength),this.dropdownpicker(e,z("NODESTYLE_ROUGHNESS"),null,{0:"Architect",1:"Artist",2:"Cartoonist"},(()=>t.roughness?.toString()),(e=>{t.roughness=parseInt(e),this.updateNodeDemoImg()}),(()=>{delete t.roughness,this.updateNodeDemoImg()}),i,s.roughness.toString()),this.dropdownpicker(e,z("NODESTYLE_SHARPNESS"),null,{sharp:"Sharp",round:"Round"},(()=>t.strokeShaprness),(e=>{t.strokeShaprness=e,this.updateNodeDemoImg()}),(()=>{delete t.strokeShaprness,this.updateNodeDemoImg()}),i,s.strokeShaprness),this.numberslider(e,z("NODESTYLE_STROKEWIDTH"),null,{min:.5,max:6,step:.5},(()=>t.strokeWidth),(e=>{t.strokeWidth=e,this.updateNodeDemoImg()}),(()=>{delete t.strokeWidth,this.updateNodeDemoImg()}),i,s.strokeWidth),this.dropdownpicker(e,z("NODESTYLE_STROKESTYLE"),null,{solid:"Solid",dashed:"Dashed",dotted:"Dotted"},(()=>t.strokeStyle),(e=>{t.strokeStyle=e,this.updateNodeDemoImg()}),(()=>{delete t.strokeStyle,this.updateNodeDemoImg()}),i,s.strokeStyle),this.numberslider(e,z("NODESTYLE_RECTANGLEPADDING"),null,{min:5,max:50,step:5},(()=>t.padding),(e=>{t.padding=e,this.updateNodeDemoImg()}),(()=>{delete t.padding,this.updateNodeDemoImg()}),i,s.padding),this.numberslider(e,z("NODESTYLE_GATE_RADIUS_NAME"),z("NODESTYLE_GATE_RADIUS_DESC"),{min:3,max:10,step:1},(()=>t.gateRadius),(e=>{t.gateRadius=e,this.updateNodeDemoImg()}),(()=>{delete t.gateRadius,this.updateNodeDemoImg()}),i,s.gateRadius),this.numberslider(e,z("NODESTYLE_GATE_OFFSET_NAME"),z("NODESTYLE_GATE_OFFSET_DESC"),{min:0,max:25,step:1},(()=>t.gateOffset),(e=>{t.gateOffset=e,this.updateNodeDemoImg()}),(()=>{delete t.gateOffset,this.updateNodeDemoImg()}),i,s.gateOffset),this.colorpicker(e,z("NODESTYLE_GATE_COLOR"),null,(()=>t.gateStrokeColor),(e=>{t.gateStrokeColor=e,this.updateNodeDemoImg()}),(()=>{delete t.gateStrokeColor,this.updateNodeDemoImg()}),i,s.gateStrokeColor),this.colorpicker(e,z("NODESTYLE_GATE_BGCOLOR_NAME"),z("NODESTYLE_GATE_BGCOLOR_DESC"),(()=>t.gateBackgroundColor),(e=>{t.gateBackgroundColor=e,this.updateNodeDemoImg()}),(()=>{delete t.gateBackgroundColor,this.updateNodeDemoImg()}),i,s.gateBackgroundColor),this.dropdownpicker(e,z("NODESTYLE_GATE_FILLSTYLE"),null,{hachure:"Hachure","cross-hatch":"Cross-hatch",solid:"Solid"},(()=>t.gateFillStyle?.toString()),(e=>{t.gateFillStyle=e,this.updateNodeDemoImg()}),(()=>{delete t.gateFillStyle,this.updateNodeDemoImg()}),i,s.gateFillStyle.toString())}linkSettings(e,t,i=!0,n){this.colorpicker(e,z("LINKSTYLE_COLOR"),null,(()=>t.strokeColor),(e=>{t.strokeColor=e,this.updateLinkDemoImg()}),(()=>{delete t.strokeColor,this.updateLinkDemoImg()}),i,n.strokeColor),this.numberslider(e,z("LINKSTYLE_WIDTH"),null,{min:.5,max:10,step:.5},(()=>t.strokeWidth),(e=>{t.strokeWidth=e,this.updateLinkDemoImg()}),(()=>{delete t.strokeWidth,this.updateLinkDemoImg()}),i,n.strokeWidth),this.dropdownpicker(e,z("LINKSTYLE_ROUGHNESS"),null,{0:"Architect",1:"Artist",2:"Cartoonist"},(()=>t.roughness?.toString()),(e=>{t.roughness=parseInt(e),this.updateLinkDemoImg()}),(()=>{delete t.roughness,this.updateLinkDemoImg()}),i,n.roughness.toString()),this.dropdownpicker(e,z("LINKSTYLE_STROKE"),null,{solid:"Solid",dashed:"Dashed",dotted:"Dotted"},(()=>t.strokeStyle),(e=>{t.strokeStyle=e,this.updateLinkDemoImg()}),(()=>{delete t.strokeStyle,this.updateLinkDemoImg()}),i,n.strokeStyle),this.dropdownpicker(e,z("LINKSTYLE_ARROWSTART"),null,{none:"None",arrow:"Arrow",bar:"Bar",dot:"Dot",triangle:"Triangle"},(()=>t.startArrowHead),(e=>{t.startArrowHead=""===e?null:e,this.updateLinkDemoImg()}),(()=>{delete t.startArrowHead,this.updateLinkDemoImg()}),i,n.startArrowHead),this.dropdownpicker(e,z("LINKSTYLE_ARROWEND"),null,{none:"None",arrow:"Arrow",bar:"Bar",dot:"Dot",triangle:"Triangle"},(()=>t.endArrowHead),(e=>{t.endArrowHead=""===e?null:e,this.updateLinkDemoImg()}),(()=>{delete t.endArrowHead,this.updateLinkDemoImg()}),i,n.endArrowHead),this.toggle(e,z("LINKSTYLE_SHOWLABEL"),null,(()=>t.showLabel),(e=>{t.showLabel=e,this.updateLinkDemoImg()}),(()=>{delete t.showLabel,this.updateLinkDemoImg()}),i,n.showLabel),this.colorpicker(e,z("NODESTYLE_TEXTCOLOR"),null,(()=>t.textColor),(e=>{t.textColor=e,this.updateLinkDemoImg()}),(()=>{delete t.textColor,this.updateLinkDemoImg()}),i,n.textColor),this.numberslider(e,z("LINKSTYLE_FONTSIZE"),null,{min:6,max:30,step:3},(()=>t.fontSize),(e=>{t.fontSize=e,this.updateLinkDemoImg()}),(()=>{delete t.fontSize,this.updateLinkDemoImg()}),i,n.fontSize),this.dropdownpicker(e,z("LINKSTYLE_FONTFAMILY"),null,{1:"Hand-drawn",2:"Normal",3:"Code",4:"Fourth (custom) Font"},(()=>t.fontFamily?.toString()),(e=>{t.fontFamily=parseInt(e),this.updateLinkDemoImg()}),(()=>{delete t.fontFamily,this.updateLinkDemoImg()}),i,n.fontFamily.toString())}getUnusedFieldNames(){const e=new Set;this.plugin.DVAPI.index.pages.forEach((t=>{const i=t?.fields.keys();if(!i)return;let n;for(;!(n=i.next()).done;)n.value.contains(",")||n.value.startsWith("**")&&n.value.endsWith("**")||e.add(n.value)}));const t=new Map;e.forEach((e=>{t.set(e,e.toLowerCase().replaceAll(" ","-"))}));const i=new Set;return this.plugin.settings.hierarchy.hidden.forEach((e=>i.add(e.toLowerCase().replaceAll(" ","-")))),this.plugin.settings.hierarchy.parents.forEach((e=>i.add(e.toLowerCase().replaceAll(" ","-")))),this.plugin.settings.hierarchy.children.forEach((e=>i.add(e.toLowerCase().replaceAll(" ","-")))),this.plugin.settings.hierarchy.leftFriends.forEach((e=>i.add(e.toLowerCase().replaceAll(" ","-")))),this.plugin.settings.hierarchy.rightFriends.forEach((e=>i.add(e.toLowerCase().replaceAll(" ","-")))),this.plugin.settings.hierarchy.previous.forEach((e=>i.add(e.toLowerCase().replaceAll(" ","-")))),this.plugin.settings.hierarchy.next.forEach((e=>i.add(e.toLowerCase().replaceAll(" ","-")))),this.plugin.settings.hierarchy.exclusions.forEach((e=>i.add(e.toLowerCase().replaceAll(" ","-")))),Array.from(t.entries()).forEach((([e,n])=>i.has(e.toLowerCase().replaceAll(" ","-"))||i.has(n)?(t.delete(e),void t.delete(n)):void(e!==n&&t.delete(n)))),Array.from(t.keys()).sort(((e,t)=>e.toLowerCase()e.setValue(this.plugin.settings.excalibrainFilepath).onChange((t=>{this.dirty=!0,t.endsWith(".md")||(t+=t.endsWith(".m")?"d":t.endsWith(".")?"md":".md"),this.app.vault.getAbstractFileByPath(t)?new H(this.app,"⚠ File Exists",`${t} already exists in your Vault. Is it ok to overwrite this file?`).show((i=>{i&&(this.plugin.settings.excalibrainFilepath=t,this.dirty=!0,e.inputEl.value=t)})):(this.plugin.settings.excalibrainFilepath=t,this.dirty=!0)})).inputEl.onblur=()=>{e.setValue(this.plugin.settings.excalibrainFilepath)})),this.numberslider(r,z("INDEX_REFRESH_FREQ_NAME"),z("INDEX_REFRESH_FREQ_DESC"),{min:5,max:120,step:5},(()=>this.plugin.settings.indexUpdateInterval/1e3),(e=>{this.plugin.settings.indexUpdateInterval=1e3*e,this.updateTimer=!0}),(()=>{}),!1,5e3),this.containerEl.createEl("h1",{cls:"excalibrain-settings-h1",text:z("HIERARCHY_HEAD")}),this.containerEl.createEl("p",{}).innerHTML=z("HIERARCHY_DESC");let u=()=>{};const o=new n.Setting(r).setName(z("PARENTS_NAME")).addTextArea((e=>{e.inputEl.style.height="90px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.hierarchy.parents.join(", ")).onChange((e=>{this.plugin.settings.hierarchy.parents=e.split(",").map((e=>e.trim())).sort(((e,t)=>e.toLowerCase()this.plugin.hierarchyLowerCase.parents.push(e.toLowerCase().replaceAll(" ","-")))),u(),this.dirty=!0}))}));o.nameEl.addClass("excalibrain-setting-nameEl"),o.descEl.addClass("excalibrain-setting-descEl"),o.controlEl.addClass("excalibrain-setting-controlEl");const l=new n.Setting(r).setName(z("CHILDREN_NAME")).addTextArea((e=>{e.inputEl.style.height="90px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.hierarchy.children.join(", ")).onChange((e=>{this.plugin.settings.hierarchy.children=e.split(",").map((e=>e.trim())).sort(((e,t)=>e.toLowerCase()this.plugin.hierarchyLowerCase.children.push(e.toLowerCase().replaceAll(" ","-")))),u(),this.dirty=!0}))}));l.nameEl.addClass("excalibrain-setting-nameEl"),l.descEl.addClass("excalibrain-setting-descEl"),l.controlEl.addClass("excalibrain-setting-controlEl");const D=new n.Setting(r).setName(z("LEFT_FRIENDS_NAME")).addTextArea((e=>{e.inputEl.style.height="90px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.hierarchy.leftFriends.join(", ")).onChange((e=>{this.plugin.settings.hierarchy.leftFriends=e.split(",").map((e=>e.trim())).sort(((e,t)=>e.toLowerCase()this.plugin.hierarchyLowerCase.leftFriends.push(e.toLowerCase().replaceAll(" ","-")))),u(),this.dirty=!0}))}));D.nameEl.addClass("excalibrain-setting-nameEl"),D.descEl.addClass("excalibrain-setting-descEl"),D.controlEl.addClass("excalibrain-setting-controlEl");const d=new n.Setting(r).setName(z("RIGHT_FRIENDS_NAME")).addTextArea((e=>{e.inputEl.style.height="90px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.hierarchy.rightFriends.join(", ")).onChange((e=>{this.plugin.settings.hierarchy.rightFriends=e.split(",").map((e=>e.trim())).sort(((e,t)=>e.toLowerCase()this.plugin.hierarchyLowerCase.rightFriends.push(e.toLowerCase().replaceAll(" ","-")))),u(),this.dirty=!0}))}));d.nameEl.addClass("excalibrain-setting-nameEl"),d.descEl.addClass("excalibrain-setting-descEl"),d.controlEl.addClass("excalibrain-setting-controlEl");const h=new n.Setting(r).setName(z("PREVIOUS_NAME")).addTextArea((e=>{e.inputEl.style.height="90px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.hierarchy.previous.join(", ")).onChange((e=>{this.plugin.settings.hierarchy.previous=e.split(",").map((e=>e.trim())).sort(((e,t)=>e.toLowerCase()this.plugin.hierarchyLowerCase.previous.push(e.toLowerCase().replaceAll(" ","-")))),u(),this.dirty=!0}))}));h.nameEl.addClass("excalibrain-setting-nameEl"),h.descEl.addClass("excalibrain-setting-descEl"),h.controlEl.addClass("excalibrain-setting-controlEl");const c=new n.Setting(r).setName(z("NEXT_NAME")).addTextArea((e=>{e.inputEl.style.height="90px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.hierarchy.next.join(", ")).onChange((e=>{this.plugin.settings.hierarchy.next=e.split(",").map((e=>e.trim())).sort(((e,t)=>e.toLowerCase()this.plugin.hierarchyLowerCase.next.push(e.toLowerCase().replaceAll(" ","-")))),u(),this.dirty=!0}))}));c.nameEl.addClass("excalibrain-setting-nameEl"),c.descEl.addClass("excalibrain-setting-descEl"),c.controlEl.addClass("excalibrain-setting-controlEl");const g=new n.Setting(r).setName(z("HIDDEN_NAME")).setDesc(z("HIDDEN_DESC")).addTextArea((e=>{e.inputEl.style.height="90px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.hierarchy.hidden.join(", ")).onChange((e=>{this.plugin.settings.hierarchy.hidden=e.split(",").map((e=>e.trim())).sort(((e,t)=>e.toLowerCase()this.plugin.hierarchyLowerCase.hidden.push(e.toLowerCase().replaceAll(" ","-")))),u(),this.dirty=!0}))}));g.nameEl.addClass("excalibrain-setting-nameEl"),g.descEl.addClass("excalibrain-setting-descEl"),g.controlEl.addClass("excalibrain-setting-controlEl");const E=new n.Setting(r).setName(z("EXCLUSIONS_NAME")).setDesc(z("EXCLUSIONS_DESC")).addTextArea((e=>{e.inputEl.style.height="90px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.hierarchy.exclusions.join(", ")).onChange((e=>{this.plugin.settings.hierarchy.exclusions=e.split(",").map((e=>e.trim())).sort(((e,t)=>e.toLowerCase(){p=e,e.inputEl.style.height="90px",e.inputEl.style.width="100%",e.setValue(this.getUnusedFieldNames()),e.setDisabled(!0)}));let F,m,C,y,S,b;f.nameEl.addClass("excalibrain-setting-nameEl"),f.descEl.addClass("excalibrain-setting-descEl"),f.controlEl.addClass("excalibrain-setting-controlEl"),new n.Setting(r).setName(z("INFER_NAME")).setDesc(q(z("INFER_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.inferAllLinksAsFriends).onChange((e=>{this.plugin.settings.inferAllLinksAsFriends=e,this.dirty=!0})))),new n.Setting(r).setName(z("REVERSE_NAME")).setDesc(q(z("REVERSE_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.inverseInfer).onChange((e=>{this.plugin.settings.inverseInfer=e,this.dirty=!0})))),new n.Setting(r).setName(z("INVERSE_ARROW_DIRECTION_NAME")).setDesc(q(z("INVERSE_ARROW_DIRECTION_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.inverseArrowDirection).onChange((e=>{this.plugin.settings.inverseArrowDirection=e,this.dirty=!0})))),new n.Setting(r).setName(z("ONTOLOGY_SUGGESTER_NAME")).setDesc(z("ONTOLOGY_SUGGESTER_DESC")).addToggle((e=>e.setValue(this.plugin.settings.allowOntologySuggester).onChange((e=>{this.plugin.settings.allowOntologySuggester=e,y.setDisabled(!e),F.setDisabled(!e),m.setDisabled(!e),C.setDisabled(!e),S.setDisabled(!e),b.setDisabled(!e),this.dirty=!0})))),y=new n.Setting(r).setName(z("ONTOLOGY_SUGGESTER_ALL_NAME")).setDisabled(!this.plugin.settings.allowOntologySuggester).addText((e=>e.setValue(this.plugin.settings.ontologySuggesterTrigger).onChange((e=>{this.plugin.settings.ontologySuggesterTrigger=e,this.dirty=!0})))),F=new n.Setting(r).setName(z("ONTOLOGY_SUGGESTER_PARENT_NAME")).setDisabled(!this.plugin.settings.allowOntologySuggester).addText((e=>e.setValue(this.plugin.settings.ontologySuggesterParentTrigger).onChange((e=>{this.plugin.settings.ontologySuggesterParentTrigger=e,this.dirty=!0})))),m=new n.Setting(r).setName(z("ONTOLOGY_SUGGESTER_CHILD_NAME")).setDisabled(!this.plugin.settings.allowOntologySuggester).addText((e=>e.setValue(this.plugin.settings.ontologySuggesterChildTrigger).onChange((e=>{this.plugin.settings.ontologySuggesterChildTrigger=e,this.dirty=!0})))),C=new n.Setting(r).setName(z("ONTOLOGY_SUGGESTER_LEFT_FRIEND_NAME")).setDisabled(!this.plugin.settings.allowOntologySuggester).addText((e=>e.setValue(this.plugin.settings.ontologySuggesterLeftFriendTrigger).onChange((e=>{this.plugin.settings.ontologySuggesterLeftFriendTrigger=e,this.dirty=!0})))),C=new n.Setting(r).setName(z("ONTOLOGY_SUGGESTER_RIGHT_FRIEND_NAME")).setDisabled(!this.plugin.settings.allowOntologySuggester).addText((e=>e.setValue(this.plugin.settings.ontologySuggesterRightFriendTrigger).onChange((e=>{this.plugin.settings.ontologySuggesterRightFriendTrigger=e,this.dirty=!0})))),C=new n.Setting(r).setName(q(z("ONTOLOGY_SUGGESTER_PREVIOUS_NAME"))).setDisabled(!this.plugin.settings.allowOntologySuggester).addText((e=>e.setValue(this.plugin.settings.ontologySuggesterPreviousTrigger).onChange((e=>{this.plugin.settings.ontologySuggesterPreviousTrigger=e,this.dirty=!0})))),C=new n.Setting(r).setName(z("ONTOLOGY_SUGGESTER_NEXT_NAME")).setDisabled(!this.plugin.settings.allowOntologySuggester).addText((e=>e.setValue(this.plugin.settings.ontologySuggesterNextTrigger).onChange((e=>{this.plugin.settings.ontologySuggesterNextTrigger=e,this.dirty=!0})))),S=new n.Setting(r).setName(z("MID_SENTENCE_SUGGESTER_TRIGGER_NAME")).setDesc(q(z("MID_SENTENCE_SUGGESTER_TRIGGER_DESC"))).addDropdown((e=>{e.addOption("(","(").addOption("[","[").setValue(this.plugin.settings.ontologySuggesterMidSentenceTrigger).onChange((e=>{this.plugin.settings.ontologySuggesterMidSentenceTrigger=e,this.dirty=!0}))})),b=new n.Setting(r).setName(z("BOLD_FIELDS_NAME")).setDesc(q(z("BOLD_FIELDS_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.boldFields).onChange((e=>{this.plugin.settings.boldFields=e,this.dirty=!0})))),this.containerEl.createEl("h1",{cls:"excalibrain-settings-h1",text:z("BEHAVIOR_HEAD")}),new n.Setting(r).setName(z("TOGGLE_AUTOOPEN_WHEN_EMBED_TOGGLE_NAME")).setDesc(q(z("TOGGLE_AUTOOPEN_WHEN_EMBED_TOGGLE_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.toggleEmbedTogglesAutoOpen).onChange((e=>{this.plugin.settings.toggleEmbedTogglesAutoOpen=e,this.dirty=!0}))));const T=new n.Setting(r).setName(z("EXCLUDE_PATHLIST_NAME")).setDesc(q(z("EXCLUDE_PATHLIST_DESC"))).addTextArea((e=>{e.inputEl.style.height="100px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.excludeFilepaths.join(", ")).onChange((e=>{const t=(e=e.replaceAll("\n"," ")).split(",").map((e=>e.trim()));this.plugin.settings.excludeFilepaths=t.filter((e=>""!==e)),this.dirty=!0}))}));T.descEl.style.width="90%",T.controlEl.style.width="90%";const N=new n.Setting(r).setName(z("NODETITLE_SCRIPT_NAME")).setDesc(q(z("NODETITLE_SCRIPT_DESC"))).addTextArea((e=>{e.inputEl.style.height="200px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.nodeTitleScript).onChange((e=>{this.plugin.settings.nodeTitleScript=e,this.dirty=!0}))}));let w,O;N.descEl.style.width="90%",N.controlEl.style.width="90%",this.containerEl.createEl("h1",{cls:"excalibrain-settings-h1",text:z("DISPLAY_HEAD")}),new n.Setting(r).setName(z("COMPACT_VIEW_NAME")).setDesc(q(z("COMPACT_VIEW_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.compactView).onChange((e=>{this.plugin.settings.compactView=e,this.dirty=!0})))),this.numberslider(r,z("COMPACTING_FACTOR_NAME"),z("COMPACTING_FACTOR_DESC"),{min:1,max:2,step:.1},(()=>this.plugin.settings.compactingFactor),(e=>{this.plugin.settings.compactingFactor=e,this.dirty=!0}),(()=>{}),!1,1),this.numberslider(r,z("MINLINKLENGTH_NAME"),z("MINLINKLENGTH_DESC"),{min:0,max:50,step:1},(()=>this.plugin.settings.minLinkLength),(e=>{this.plugin.settings.minLinkLength=e,this.dirty=!0}),(()=>{}),!1,1),new n.Setting(r).setName(z("SHOW_FULL_TAG_PATH_NAME")).setDesc(q(z("SHOW_FULL_TAG_PATH_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.showFullTagName).onChange((e=>{this.plugin.settings.showFullTagName=e,this.dirty=!0})))),this.numberslider(r,z("MAX_ITEMCOUNT_NAME"),z("MAX_ITEMCOUNT_DESC"),{min:5,max:150,step:5},(()=>this.plugin.settings.maxItemCount),(e=>this.plugin.settings.maxItemCount=e),(()=>{}),!1,30),new n.Setting(r).setName(z("SHOW_COUNT_NAME")).setDesc(q(z("SHOW_COUNT_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.showNeighborCount).onChange((e=>{this.plugin.settings.showNeighborCount=e,this.dirty=!0})))),new n.Setting(r).setName(z("ALLOW_AUTOZOOM_NAME")).setDesc(q(z("ALLOW_AUTOZOOM_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.allowAutozoom).onChange((e=>{this.plugin.settings.allowAutozoom=e,this.dirty=!0})))),this.numberslider(r,z("MAX_AUTOZOOM_NAME"),z("MAX_AUTOZOOM_DESC"),{min:10,max:1e3,step:10},(()=>100*this.plugin.settings.maxZoom),(e=>this.plugin.settings.maxZoom=e/100),(()=>{}),!1,100),new n.Setting(r).setName(z("ALLOW_AUTOFOCUS_ON_SEARCH_NAME")).setDesc(q(z("ALLOW_AUTOFOCUS_ON_SEARCH_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.allowAutofocuOnSearch).onChange((e=>{this.plugin.settings.allowAutofocuOnSearch=e,this.dirty=!0})))),new n.Setting(r).setName(z("ALWAYS_ON_TOP_NAME")).setDesc(q(z("ALWAYS_ON_TOP_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.defaultAlwaysOnTop).onChange((e=>{this.plugin.settings.defaultAlwaysOnTop=e,this.dirty=!0})))),this.numberslider(r,z("EMBEDDED_FRAME_WIDTH_NAME"),void 0,{min:400,max:1600,step:50},(()=>this.plugin.settings.centerEmbedWidth),(e=>this.plugin.settings.centerEmbedWidth=e),(()=>{}),!1,this.plugin.settings.centerEmbedWidth),this.numberslider(r,z("EMBEDDED_FRAME_HEIGHT_NAME"),void 0,{min:400,max:1600,step:50},(()=>this.plugin.settings.centerEmbedHeight),(e=>this.plugin.settings.centerEmbedHeight=e),(()=>{}),!1,this.plugin.settings.centerEmbedHeight),r.createEl("h1",{cls:"excalibrain-settings-h1",text:z("STYLE_HEAD")}),this.containerEl.createEl("p",{}).innerHTML=z("STYLE_DESC"),this.colorpicker(r,z("CANVAS_BGCOLOR"),null,(()=>this.plugin.settings.backgroundColor),(e=>{this.plugin.settings.backgroundColor=e,this.updateNodeDemoImg()}),(()=>{}),!1,this.plugin.settings.backgroundColor);const v=e=>{O.empty();const t=this.plugin.nodeStyles[e];this.nodeSettings(O,t.style,t.allowOverride,t.getInheritedStyle()),this.demoNodeStyle=t,this.updateNodeDemoImg()},_=new n.Setting(r).setName(z("TAGLIST_NAME")).setDesc(z("TAGLIST_DESC")).addTextArea((e=>{e.inputEl.style.height="200px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.tagStyleList.sort(((e,t)=>e.toLowerCase(){const t=this.plugin.settings.tagNodeStyles,i=this.plugin.nodeStyles,n=(e=e.replaceAll("\n"," ")).split(",").map((e=>e.trim())).sort(((e,t)=>e.toLocaleLowerCase(){n.contains(e)||(delete t[e],delete i[e])})),n.forEach((e=>{Object.keys(t).contains(e)||(t[e]={},i[e]={style:t[e],allowOverride:!0,userStyle:!0,display:e,getInheritedStyle:()=>this.plugin.settings.baseNodeStyle})}));const s=w.getValue();for(let e=w.selectEl.options.length-1;e>=0;e--)w.selectEl.remove(e);Object.entries(i).forEach((e=>{w.addOption(e[0],e[1].display)})),i[s]?w.setValue(s):(w.setValue("base"),v("base")),this.dirty=!0}))}));new n.Setting(r).setName(z("NOTE_STYLE_TAG_NAME")).setDesc(z("NOTE_STYLE_TAG_DESC")).addText((e=>e.setValue(this.plugin.settings.primaryTagField).onChange((e=>{this.plugin.settings.primaryTagField=e,this.plugin.settings.primaryTagFieldLowerCase=e.toLocaleLowerCase().replaceAll(" ","-"),this.dirty=!0})))),new n.Setting(r).setName(z("ALL_STYLE_PREFIXES_NAME")).setDesc(z("ALL_STYLE_PREFIXES_DESC")).addToggle((e=>e.setValue(this.plugin.settings.displayAllStylePrefixes).onChange((e=>{this.plugin.settings.displayAllStylePrefixes=e,this.dirty=!0})))),_.descEl.style.width="90%",_.controlEl.style.width="90%";const k=r.createDiv({cls:"setting-item"}),B=k.createDiv({cls:"setting-item-info"});let x;w=new n.DropdownComponent(B),k.createDiv({text:"Show inherited",cls:"setting-item-name"}).style.marginRight="10px";let R=!1;const M=new n.ToggleComponent(k);M.setValue(!0).setTooltip("Show/Hide Inherited Properties").onChange((e=>{R?R=!1:(e?Z(U):$(U,j),R=!0,x.setValue(e))})),Object.entries(this.plugin.nodeStyles).forEach((e=>{w.addOption(e[0],e[1].display)})),this.demoNodeImg=r.createEl("img",{cls:"excalibrain-settings-demoimg"}),O=r.createDiv({cls:"excalibrain-setting-style-section"}),Z(U),w.setValue("base").onChange(v);const P=this.plugin.nodeStyles.base;let G,Y;this.nodeSettings(O,P.style,P.allowOverride,P.getInheritedStyle()),this.demoNodeStyle=P,this.updateNodeDemoImg();const W=e=>{Y.empty();const t=this.plugin.linkStyles[e];this.linkSettings(Y,t.style,t.allowOverride,t.getInheritedStyle()),this.demoLinkStyle=t,this.updateLinkDemoImg()},K=r.createDiv({cls:"setting-item"}),X=K.createDiv({cls:"setting-item-info"});G=new n.DropdownComponent(X),K.createDiv({text:"Show inherited",cls:"setting-item-name"}).style.marginRight="10px",x=new n.ToggleComponent(K),x.setValue(!0).setTooltip("Show/Hide Inherited Properties").onChange((e=>{R?R=!1:(e?Z(U):$(U,j),R=!0,M.setValue(e))})),Object.entries(this.plugin.linkStyles).forEach((e=>{G.addOption(e[0],e[1].display)})),this.demoLinkImg=r.createEl("img",{cls:"excalibrain-settings-demoimg"}),Y=r.createDiv({cls:"excalibrain-setting-nodestyle-section"}),G.setValue("base").onChange(W);const J=this.plugin.linkStyles.base;this.linkSettings(Y,J.style,J.allowOverride,J.getInheritedStyle()),this.demoLinkStyle=J,this.updateLinkDemoImg(),u=()=>{p.setValue(this.getUnusedFieldNames());const e=this.plugin.settings.hierarchyLinkStyles,t=this.plugin.linkStyles;Object.keys(t).forEach((i=>{I.contains(i)||this.hierarchyStyleList.contains(i)||(delete t[i],delete e[i])})),this.hierarchyStyleList.forEach((i=>{Object.keys(e).contains(i)||I.contains(i)||(e[i]={},t[i]={style:e[i],allowOverride:!0,userStyle:!0,display:i,getInheritedStyle:()=>this.plugin.settings.baseLinkStyle})}));const i=G.getValue();for(let e=G.selectEl.options.length-1;e>=0;e--)G.selectEl.remove(e);const n=this.plugin.settings.hierarchy,s=e=>I.includes(e)?"0"+e.toLowerCase():n.parents.includes(e)?"1"+e.toLowerCase():n.children.includes(e)?"2"+e.toLowerCase():"3"+e.toLowerCase();Object.entries(t).sort(((e,t)=>s(e[0]){G.addOption(e[0],this.plugin.settings.hierarchy.parents.includes(e[1].display)?"Parent > "+e[1].display:this.plugin.settings.hierarchy.children.includes(e[1].display)?"Child > "+e[1].display:this.plugin.settings.hierarchy.leftFriends.includes(e[1].display)?"Left Friend > "+e[1].display:this.plugin.settings.hierarchy.rightFriends.includes(e[1].display)?"Right Friend > "+e[1].display:this.plugin.settings.hierarchy.previous.includes(e[1].display)?"Previous > "+e[1].display:this.plugin.settings.hierarchy.next.includes(e[1].display)?"Next > "+e[1].display:e[1].display)})),t[i]?G.setValue(i):(G.setValue("base"),W("base"))},u()}}var J={};Object.defineProperty(J,"__esModule",{value:!0});class Q extends Error{}class ee extends Q{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class te extends Q{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class ie extends Q{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ne extends Q{}class se extends Q{constructor(e){super(`Invalid unit ${e}`)}}class re extends Q{}class ae extends Q{constructor(){super("Zone is an abstract class")}}const ue="numeric",oe="short",le="long",De={year:ue,month:ue,day:ue},de={year:ue,month:oe,day:ue},he={year:ue,month:oe,day:ue,weekday:oe},ce={year:ue,month:le,day:ue},ge={year:ue,month:le,day:ue,weekday:le},Ee={hour:ue,minute:ue},pe={hour:ue,minute:ue,second:ue},fe={hour:ue,minute:ue,second:ue,timeZoneName:oe},Fe={hour:ue,minute:ue,second:ue,timeZoneName:le},me={hour:ue,minute:ue,hourCycle:"h23"},Ce={hour:ue,minute:ue,second:ue,hourCycle:"h23"},ye={hour:ue,minute:ue,second:ue,hourCycle:"h23",timeZoneName:oe},Se={hour:ue,minute:ue,second:ue,hourCycle:"h23",timeZoneName:le},be={year:ue,month:ue,day:ue,hour:ue,minute:ue},Ae={year:ue,month:ue,day:ue,hour:ue,minute:ue,second:ue},Te={year:ue,month:oe,day:ue,hour:ue,minute:ue},Ne={year:ue,month:oe,day:ue,hour:ue,minute:ue,second:ue},we={year:ue,month:oe,day:ue,weekday:oe,hour:ue,minute:ue},Le={year:ue,month:le,day:ue,hour:ue,minute:ue,timeZoneName:oe},Oe={year:ue,month:le,day:ue,hour:ue,minute:ue,second:ue,timeZoneName:oe},ve={year:ue,month:le,day:ue,weekday:le,hour:ue,minute:ue,timeZoneName:le},_e={year:ue,month:le,day:ue,weekday:le,hour:ue,minute:ue,second:ue,timeZoneName:le};class Ie{get type(){throw new ae}get name(){throw new ae}get ianaName(){return this.name}get isUniversal(){throw new ae}offsetName(e,t){throw new ae}formatOffset(e,t){throw new ae}offset(e){throw new ae}equals(e){throw new ae}get isValid(){throw new ae}}let ke=null;class Be extends Ie{static get instance(){return null===ke&&(ke=new Be),ke}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:i}){return Nt(e,t,i)}formatOffset(e,t){return vt(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let xe={};const Re={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Me={};class ze extends Ie{static create(e){return Me[e]||(Me[e]=new ze(e)),Me[e]}static resetCache(){Me={},xe={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=ze.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:i}){return Nt(e,t,i,this.name)}formatOffset(e,t){return vt(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const i=(n=this.name,xe[n]||(xe[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),xe[n]);var n;let[s,r,a,u,o,l,D]=i.formatToParts?function(e,t){const i=e.formatToParts(t),n=[];for(let e=0;e=0?h:1e3+h,(bt({year:s,month:r,day:a,hour:24===o?0:o,minute:l,second:D,millisecond:0})-d)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let He={},Pe={};function Ge(e,t={}){const i=JSON.stringify([e,t]);let n=Pe[i];return n||(n=new Intl.DateTimeFormat(e,t),Pe[i]=n),n}let Ve={},Ye={},We=null;function Ue(e,t,i,n){const s=e.listingMode();return"error"===s?null:"en"===s?i(t):n(t)}class je{constructor(e,t,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:n,floor:s,...r}=i;if(!t||Object.keys(r).length>0){const t={useGrouping:!1,...i};i.padTo>0&&(t.minimumIntegerDigits=i.padTo),this.inf=function(e,t={}){const i=JSON.stringify([e,t]);let n=Ve[i];return n||(n=new Intl.NumberFormat(e,t),Ve[i]=n),n}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return Et(this.floor?Math.floor(e):mt(e,3),this.padTo)}}class Ke{constructor(e,t,i){let n;if(this.opts=i,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,i=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&ze.create(i).valid?(n=i,this.dt=e):(n="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,n=e.zone.name):(n="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const s={...this.opts};s.timeZone=s.timeZone||n,this.dtf=Ge(t,s)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class qe{constructor(e,t,i){this.opts={style:"long",...i},!t&&dt()&&(this.rtf=function(e,t={}){const{base:i,...n}=t,s=JSON.stringify([e,n]);let r=Ye[s];return r||(r=new Intl.RelativeTimeFormat(e,t),Ye[s]=r),r}(e,i))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,i="always",n=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===i&&r){const i="days"===e;switch(t){case 1:return i?"tomorrow":`next ${s[e][0]}`;case-1:return i?"yesterday":`last ${s[e][0]}`;case 0:return i?"today":`this ${s[e][0]}`}}const a=Object.is(t,-0)||t<0,u=Math.abs(t),o=1===u,l=s[e],D=n?o?l[1]:l[2]||l[1]:o?s[e][0]:e;return a?`${u} ${D} ago`:`in ${u} ${D}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class Ze{static fromOpts(e){return Ze.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,i,n=!1){const s=e||ut.defaultLocale,r=s||(n?"en-US":We||(We=(new Intl.DateTimeFormat).resolvedOptions().locale,We)),a=t||ut.defaultNumberingSystem,u=i||ut.defaultOutputCalendar;return new Ze(r,a,u,s)}static resetCache(){We=null,Pe={},Ve={},Ye={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:i}={}){return Ze.create(e,t,i)}constructor(e,t,i,n){const[s,r,a]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const i=e.indexOf("-u-");if(-1===i)return[e];{let t,n;try{t=Ge(e).resolvedOptions(),n=e}catch(s){const r=e.substring(0,i);t=Ge(r).resolvedOptions(),n=r}const{numberingSystem:s,calendar:r}=t;return[n,s,r]}}(e);this.locale=s,this.numberingSystem=t||r||null,this.outputCalendar=i||a||null,this.intl=function(e,t,i){return i||t?(e.includes("-u-")||(e+="-u"),i&&(e+=`-ca-${i}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?Ze.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Ue(this,e,xt,(()=>{const i=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";return this.monthsCache[n][e]||(this.monthsCache[n][e]=function(e){const t=[];for(let i=1;i<=12;i++){const n=Zn.utc(2009,i,1);t.push(e(n))}return t}((e=>this.extract(e,i,"month")))),this.monthsCache[n][e]}))}weekdays(e,t=!1){return Ue(this,e,Ht,(()=>{const i=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";return this.weekdaysCache[n][e]||(this.weekdaysCache[n][e]=function(e){const t=[];for(let i=1;i<=7;i++){const n=Zn.utc(2016,11,13+i);t.push(e(n))}return t}((e=>this.extract(e,i,"weekday")))),this.weekdaysCache[n][e]}))}meridiems(){return Ue(this,void 0,(()=>Pt),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Zn.utc(2016,11,13,9),Zn.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return Ue(this,e,Wt,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[Zn.utc(-40,1,1),Zn.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,i){const n=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===i));return n?n.value:null}numberFormatter(e={}){return new je(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Ke(e,this.intl,t)}relFormatter(e={}){return new qe(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const i=JSON.stringify([e,t]);let n=He[i];return n||(n=new Intl.ListFormat(e,t),He[i]=n),n}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let $e=null;class Xe extends Ie{static get utcInstance(){return null===$e&&($e=new Xe(0)),$e}static instance(e){return 0===e?Xe.utcInstance:new Xe(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new Xe(wt(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${vt(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${vt(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return vt(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class Je extends Ie{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Qe(e,t){if(ot(e)||null===e)return t;if(e instanceof Ie)return e;if("string"==typeof e){const i=e.toLowerCase();return"default"===i?t:"local"===i||"system"===i?Be.instance:"utc"===i||"gmt"===i?Xe.utcInstance:Xe.parseSpecifier(i)||ze.create(e)}return lt(e)?Xe.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new Je(e)}let et,tt=()=>Date.now(),it="system",nt=null,st=null,rt=null,at=60;class ut{static get now(){return tt}static set now(e){tt=e}static set defaultZone(e){it=e}static get defaultZone(){return Qe(it,Be.instance)}static get defaultLocale(){return nt}static set defaultLocale(e){nt=e}static get defaultNumberingSystem(){return st}static set defaultNumberingSystem(e){st=e}static get defaultOutputCalendar(){return rt}static set defaultOutputCalendar(e){rt=e}static get twoDigitCutoffYear(){return at}static set twoDigitCutoffYear(e){at=e%100}static get throwOnInvalid(){return et}static set throwOnInvalid(e){et=e}static resetCaches(){Ze.resetCache(),ze.resetCache()}}function ot(e){return void 0===e}function lt(e){return"number"==typeof e}function Dt(e){return"number"==typeof e&&e%1==0}function dt(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function ht(e,t,i){if(0!==e.length)return e.reduce(((e,n)=>{const s=[t(n),n];return e&&i(e[0],s[0])===e[0]?e:s}),null)[1]}function ct(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function gt(e,t,i){return Dt(e)&&e>=t&&e<=i}function Et(e,t=2){let i;return i=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),i}function pt(e){return ot(e)||null===e||""===e?void 0:parseInt(e,10)}function ft(e){return ot(e)||null===e||""===e?void 0:parseFloat(e)}function Ft(e){if(!ot(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function mt(e,t,i=!1){const n=10**t;return(i?Math.trunc:Math.round)(e*n)/n}function Ct(e){return e%4==0&&(e%100!=0||e%400==0)}function yt(e){return Ct(e)?366:365}function St(e,t){const i=(n=t-1)-12*Math.floor(n/12)+1;var n;return 2===i?Ct(e+(t-i)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function bt(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function At(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,i=e-1,n=(i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400))%7;return 4===t||3===n?53:52}function Tt(e){return e>99?e:e>ut.twoDigitCutoffYear?1900+e:2e3+e}function Nt(e,t,i,n=null){const s=new Date(e),r={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(r.timeZone=n);const a={timeZoneName:t,...r},u=new Intl.DateTimeFormat(i,a).formatToParts(s).find((e=>"timezonename"===e.type.toLowerCase()));return u?u.value:null}function wt(e,t){let i=parseInt(e,10);Number.isNaN(i)&&(i=0);const n=parseInt(t,10)||0;return 60*i+(i<0||Object.is(i,-0)?-n:n)}function Lt(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new re(`Invalid unit value ${e}`);return t}function Ot(e,t){const i={};for(const n in e)if(ct(e,n)){const s=e[n];if(null==s)continue;i[t(n)]=Lt(s)}return i}function vt(e,t){const i=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${Et(i,2)}:${Et(n,2)}`;case"narrow":return`${s}${i}${n>0?`:${n}`:""}`;case"techie":return`${s}${Et(i,2)}${Et(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function _t(e){return function(e,t){return["hour","minute","second","millisecond"].reduce(((t,i)=>(t[i]=e[i],t)),{})}(e)}const It=["January","February","March","April","May","June","July","August","September","October","November","December"],kt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Bt=["J","F","M","A","M","J","J","A","S","O","N","D"];function xt(e){switch(e){case"narrow":return[...Bt];case"short":return[...kt];case"long":return[...It];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Rt=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Mt=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],zt=["M","T","W","T","F","S","S"];function Ht(e){switch(e){case"narrow":return[...zt];case"short":return[...Mt];case"long":return[...Rt];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Pt=["AM","PM"],Gt=["Before Christ","Anno Domini"],Vt=["BC","AD"],Yt=["B","A"];function Wt(e){switch(e){case"narrow":return[...Yt];case"short":return[...Vt];case"long":return[...Gt];default:return null}}function Ut(e,t){let i="";for(const n of e)n.literal?i+=n.val:i+=t(n.val);return i}const jt={D:De,DD:de,DDD:ce,DDDD:ge,t:Ee,tt:pe,ttt:fe,tttt:Fe,T:me,TT:Ce,TTT:ye,TTTT:Se,f:be,ff:Te,fff:Le,ffff:ve,F:Ae,FF:Ne,FFF:Oe,FFFF:_e};class Kt{static create(e,t={}){return new Kt(e,t)}static parseFormat(e){let t=null,i="",n=!1;const s=[];for(let r=0;r0&&s.push({literal:n||/^\s+$/.test(i),val:i}),t=null,i="",n=!n):n||a===t?i+=a:(i.length>0&&s.push({literal:/^\s+$/.test(i),val:i}),i=a,t=a)}return i.length>0&&s.push({literal:n||/^\s+$/.test(i),val:i}),s}static macroTokenToFormatOpts(e){return jt[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Et(e,t);const i={...this.opts};return t>0&&(i.padTo=t),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,t){const i="en"===this.loc.listingMode(),n=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=(t,i)=>this.loc.extract(e,t,i),r=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",a=(t,n)=>i?function(e,t){return xt(t)[e.month-1]}(e,t):s(n?{month:t}:{month:t,day:"numeric"},"month"),u=(t,n)=>i?function(e,t){return Ht(t)[e.weekday-1]}(e,t):s(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),o=t=>{const i=Kt.macroTokenToFormatOpts(t);return i?this.formatWithSystemDefault(e,i):t},l=t=>i?function(e,t){return Wt(t)[e.year<0?0:1]}(e,t):s({era:t},"era");return Ut(Kt.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return r({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return r({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return r({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return i?function(e){return Pt[e.hour<12?0:1]}(e):s({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return n?s({day:"numeric"},"day"):this.num(e.day);case"dd":return n?s({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return n?s({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?s({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return n?s({month:"numeric"},"month"):this.num(e.month);case"MM":return n?s({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return n?s({year:"numeric"},"year"):this.num(e.year);case"yy":return n?s({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?s({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?s({year:"numeric"},"year"):this.num(e.year,6);case"G":return l("short");case"GG":return l("long");case"GGGGG":return l("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return o(t)}}))}formatDurationFromString(e,t){const i=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},n=Kt.parseFormat(t),s=n.reduce(((e,{literal:t,val:i})=>t?e:e.concat(i)),[]),r=e.shiftTo(...s.map(i).filter((e=>e)));return Ut(n,(e=>t=>{const n=i(t);return n?this.num(e.get(n),t.length):t})(r))}}class qt{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Zt=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function $t(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function Xt(...e){return t=>e.reduce((([e,i,n],s)=>{const[r,a,u]=s(t,n);return[{...e,...r},a||i,u]}),[{},null,1]).slice(0,2)}function Jt(e,...t){if(null==e)return[null,null];for(const[i,n]of t){const t=i.exec(e);if(t)return n(t)}return[null,null]}function Qt(...e){return(t,i)=>{const n={};let s;for(s=0;svoid 0!==e&&(t||e&&D)?-e:e;return[{years:h(ft(i)),months:h(ft(n)),weeks:h(ft(s)),days:h(ft(r)),hours:h(ft(a)),minutes:h(ft(u)),seconds:h(ft(o),"-0"===o),milliseconds:h(Ft(l),d)}]}const Ei={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function pi(e,t,i,n,s,r,a){const u={year:2===t.length?Tt(pt(t)):pt(t),month:kt.indexOf(i)+1,day:pt(n),hour:pt(s),minute:pt(r)};return a&&(u.second=pt(a)),e&&(u.weekday=e.length>3?Rt.indexOf(e)+1:Mt.indexOf(e)+1),u}const fi=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Fi(e){const[,t,i,n,s,r,a,u,o,l,D,d]=e,h=pi(t,s,n,i,r,a,u);let c;return c=o?Ei[o]:l?0:wt(D,d),[h,new Xe(c)]}const mi=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ci=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,yi=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Si(e){const[,t,i,n,s,r,a,u]=e;return[pi(t,s,n,i,r,a,u),Xe.utcInstance]}function bi(e){const[,t,i,n,s,r,a,u]=e;return[pi(t,u,i,n,s,r,a),Xe.utcInstance]}const Ai=$t(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,ni),Ti=$t(/(\d{4})-?W(\d\d)(?:-?(\d))?/,ni),Ni=$t(/(\d{4})-?(\d{3})/,ni),wi=$t(ii),Li=Xt((function(e,t){return[{year:oi(e,t),month:oi(e,t+1,1),day:oi(e,t+2,1)},null,t+3]}),li,Di,di),Oi=Xt(si,li,Di,di),vi=Xt(ri,li,Di,di),_i=Xt(li,Di,di),Ii=Xt(li),ki=$t(/(\d{4})-(\d\d)-(\d\d)/,ui),Bi=$t(ai),xi=Xt(li,Di,di),Ri="Invalid Duration",Mi={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},zi={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...Mi},Hi={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Mi},Pi=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Gi=Pi.slice(0).reverse();function Vi(e,t,i=!1){const n={values:i?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Ui(n)}function Yi(e,t){let i=t.milliseconds??0;for(const n of Gi.slice(1))t[n]&&(i+=t[n]*e[n].milliseconds);return i}function Wi(e,t){const i=Yi(e,t)<0?-1:1;Pi.reduceRight(((n,s)=>{if(ot(t[s]))return n;if(n){const r=t[n]*i,a=e[s][n],u=Math.floor(r/a);t[s]+=u*i,t[n]-=u*a*i}return s}),null),Pi.reduce(((i,n)=>{if(ot(t[n]))return i;if(i){const s=t[i]%1;t[i]-=s,t[n]+=s*e[i][n]}return n}),null)}class Ui{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let i=t?Hi:zi;e.matrix&&(i=e.matrix),this.values=e.values,this.loc=e.loc||Ze.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(e,t){return Ui.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new re("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new Ui({values:Ot(e,Ui.normalizeUnit),loc:Ze.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(lt(e))return Ui.fromMillis(e);if(Ui.isDuration(e))return e;if("object"==typeof e)return Ui.fromObject(e);throw new re(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[i]=function(e){return Jt(e,[ci,gi])}(e);return i?Ui.fromObject(i,t):Ui.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[i]=function(e){return Jt(e,[hi,Ii])}(e);return i?Ui.fromObject(i,t):Ui.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new re("need to specify a reason the Duration is invalid");const i=e instanceof qt?e:new qt(e,t);if(ut.throwOnInvalid)throw new ie(i);return new Ui({invalid:i})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new se(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const i={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?Kt.create(this.loc,i).formatDurationFromString(this,e):Ri}toHuman(e={}){if(!this.isValid)return Ri;const t=Pi.map((t=>{const i=this.values[t];return ot(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(i)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=mt(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Zn.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.isValid?Yi(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Ui.fromDurationLike(e),i={};for(const e of Pi)(ct(t.values,e)||ct(this.values,e))&&(i[e]=t.get(e)+this.get(e));return Vi(this,{values:i},!0)}minus(e){if(!this.isValid)return this;const t=Ui.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const i of Object.keys(this.values))t[i]=Lt(e(this.values[i],i));return Vi(this,{values:t},!0)}get(e){return this[Ui.normalizeUnit(e)]}set(e){return this.isValid?Vi(this,{values:{...this.values,...Ot(e,Ui.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:i,matrix:n}={}){return Vi(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:n,conversionAccuracy:i})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Wi(this.matrix,e),Vi(this,{values:e},!0)}rescale(){return this.isValid?Vi(this,{values:function(e){const t={};for(const[i,n]of Object.entries(e))0!==n&&(t[i]=n);return t}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>Ui.normalizeUnit(e)));const t={},i={},n=this.toObject();let s;for(const r of Pi)if(e.indexOf(r)>=0){s=r;let e=0;for(const t in i)e+=this.matrix[t][r]*i[t],i[t]=0;lt(n[r])&&(e+=n[r]);const a=Math.trunc(e);t[r]=a,i[r]=(1e3*e-1e3*a)/1e3}else lt(n[r])&&(i[r]=n[r]);for(const e in i)0!==i[e]&&(t[s]+=e===s?i[e]:i[e]/this.matrix[s][e]);return Wi(this.matrix,t),Vi(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return Vi(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const n of Pi)if(t=this.values[n],i=e.values[n],!(void 0===t||0===t?void 0===i||0===i:t===i))return!1;var t,i;return!0}}const ji="Invalid Interval";class Ki{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new re("need to specify a reason the Interval is invalid");const i=e instanceof qt?e:new qt(e,t);if(ut.throwOnInvalid)throw new te(i);return new Ki({invalid:i})}static fromDateTimes(e,t){const i=$n(e),n=$n(t),s=function(e,t){return e&&e.isValid?t&&t.isValid?te}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?Ki.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map($n).filter((e=>this.contains(e))).sort(),i=[];let{s:n}=this,s=0;for(;n+this.e?this.e:e;i.push(Ki.fromDateTimes(n,r)),n=r,s+=1}return i}splitBy(e){const t=Ui.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let i,{s:n}=this,s=1;const r=[];for(;ne*s)));i=+e>+this.e?this.e:e,r.push(Ki.fromDateTimes(n,i)),n=i,s+=1}return r}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,i=this.e=i?null:Ki.fromDateTimes(t,i)}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Ki.fromDateTimes(t,i)}static merge(e){const[t,i]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],i)=>t?t.overlaps(i)||t.abutsStart(i)?[e,t.union(i)]:[e.concat([t]),i]:[e,i]),[[],null]);return i&&t.push(i),t}static xor(e){let t=null,i=0;const n=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),r=Array.prototype.concat(...s).sort(((e,t)=>e.time-t.time));for(const e of r)i+="s"===e.type?1:-1,1===i?t=e.time:(t&&+t!=+e.time&&n.push(Ki.fromDateTimes(t,e.time)),t=null);return Ki.merge(n)}difference(...e){return Ki.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:ji}toLocaleString(e=De,t={}){return this.isValid?Kt.create(this.s.loc.clone(t),e).formatInterval(this):ji}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:ji}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ji}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:ji}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:ji}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Ui.invalid(this.invalidReason)}mapEndpoints(e){return Ki.fromDateTimes(e(this.s),e(this.e))}}class qi{static hasDST(e=ut.defaultZone){const t=Zn.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return ze.isValidZone(e)}static normalizeZone(e){return Qe(e,ut.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:i=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Ze.create(t,i,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:i=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Ze.create(t,i,s)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:i=null,locObj:n=null}={}){return(n||Ze.create(t,i,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:i=null,locObj:n=null}={}){return(n||Ze.create(t,i,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Ze.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Ze.create(t,null,"gregory").eras(e)}static features(){return{relative:dt()}}}function Zi(e,t){const i=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=i(t)-i(e);return Math.floor(Ui.fromMillis(n).as("days"))}const $i={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Xi={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Ji=$i.hanidec.replace(/[\[|\]]/g,"").split("");function Qi({numberingSystem:e},t=""){return new RegExp(`${$i[e||"latn"]}${t}`)}function en(e,t=(e=>e)){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let i=0;i=i&&n<=s&&(t+=n-i)}}return parseInt(t,10)}return t}(e))}}const tn=`[ ${String.fromCharCode(160)}]`,nn=new RegExp(tn,"g");function sn(e){return e.replace(/\./g,"\\.?").replace(nn,tn)}function rn(e){return e.replace(/\./g,"").replace(nn," ").toLowerCase()}function an(e,t){return null===e?null:{regex:RegExp(e.map(sn).join("|")),deser:([i])=>e.findIndex((e=>rn(i)===rn(e)))+t}}function un(e,t){return{regex:e,deser:([,e,t])=>wt(e,t),groups:t}}function on(e){return{regex:e,deser:([e])=>e}}const ln={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Dn=null;function dn(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const i=cn(Kt.macroTokenToFormatOpts(e.val),t);return null==i||i.includes(void 0)?e:i}(e,t))))}function hn(e,t,i){const n=dn(Kt.parseFormat(i),e),s=n.map((t=>function(e,t){const i=Qi(t),n=Qi(t,"{2}"),s=Qi(t,"{3}"),r=Qi(t,"{4}"),a=Qi(t,"{6}"),u=Qi(t,"{1,2}"),o=Qi(t,"{1,3}"),l=Qi(t,"{1,6}"),D=Qi(t,"{1,9}"),d=Qi(t,"{2,4}"),h=Qi(t,"{4,6}"),c=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},g=(g=>{if(e.literal)return c(g);switch(g.val){case"G":return an(t.eras("short"),0);case"GG":return an(t.eras("long"),0);case"y":return en(l);case"yy":case"kk":return en(d,Tt);case"yyyy":case"kkkk":return en(r);case"yyyyy":return en(h);case"yyyyyy":return en(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return en(u);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return en(n);case"MMM":return an(t.months("short",!0),1);case"MMMM":return an(t.months("long",!0),1);case"LLL":return an(t.months("short",!1),1);case"LLLL":return an(t.months("long",!1),1);case"o":case"S":return en(o);case"ooo":case"SSS":return en(s);case"u":return on(D);case"uu":return on(u);case"uuu":case"E":case"c":return en(i);case"a":return an(t.meridiems(),0);case"EEE":return an(t.weekdays("short",!1),1);case"EEEE":return an(t.weekdays("long",!1),1);case"ccc":return an(t.weekdays("short",!0),1);case"cccc":return an(t.weekdays("long",!0),1);case"Z":case"ZZ":return un(new RegExp(`([+-]${u.source})(?::(${n.source}))?`),2);case"ZZZ":return un(new RegExp(`([+-]${u.source})(${n.source})?`),2);case"z":return on(/[a-z_+-/]{1,256}?/i);case" ":return on(/[^\S\n\r]/);default:return c(g)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return g.token=e,g}(t,e))),r=s.find((e=>e.invalidReason));if(r)return{input:t,tokens:n,invalidReason:r.invalidReason};{const[e,i]=function(e){return[`^${e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"")}$`,e]}(s),r=RegExp(e,"i"),[a,u]=function(e,t,i){const n=e.match(t);if(n){const e={};let t=1;for(const s in i)if(ct(i,s)){const r=i[s],a=r.groups?r.groups+1:1;!r.literal&&r.token&&(e[r.token.val[0]]=r.deser(n.slice(t,t+a))),t+=a}return[n,e]}return[n,{}]}(t,r,i),[o,l,D]=u?function(e){let t,i=null;return ot(e.z)||(i=ze.create(e.z)),ot(e.Z)||(i||(i=new Xe(e.Z)),t=e.Z),ot(e.q)||(e.M=3*(e.q-1)+1),ot(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),ot(e.u)||(e.S=Ft(e.u)),[Object.keys(e).reduce(((t,i)=>{const n=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(i);return n&&(t[n]=e[i]),t}),{}),i,t]}(u):[null,null,void 0];if(ct(u,"a")&&ct(u,"H"))throw new ne("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:n,regex:r,rawMatches:a,matches:u,result:o,zone:l,specificOffset:D}}}function cn(e,t){if(!e)return null;const i=Kt.create(t,e).dtFormatter((Dn||(Dn=Zn.fromMillis(1555555555555)),Dn)),n=i.formatToParts(),s=i.resolvedOptions();return n.map((t=>function(e,t,i){const{type:n,value:s}=e;if("literal"===n){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const r=t[n];let a=n;"hour"===n&&(a=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":i.hour12?"hour12":"hour24");let u=ln[a];if("object"==typeof u&&(u=u[r]),u)return{literal:!1,val:u}}(t,e,s)))}const gn=[0,31,59,90,120,151,181,212,243,273,304,334],En=[0,31,60,91,121,152,182,213,244,274,305,335];function pn(e,t){return new qt("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function fn(e,t,i){const n=new Date(Date.UTC(e,t-1,i));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const s=n.getUTCDay();return 0===s?7:s}function Fn(e,t,i){return i+(Ct(e)?En:gn)[t-1]}function mn(e,t){const i=Ct(e)?En:gn,n=i.findIndex((e=>eAt(t)?(a=t+1,u=1):a=t,{weekYear:a,weekNumber:u,weekday:r,..._t(e)}}function yn(e){const{weekYear:t,weekNumber:i,weekday:n}=e,s=fn(t,1,4),r=yt(t);let a,u=7*i+n-s-3;u<1?(a=t-1,u+=yt(a)):u>r?(a=t+1,u-=yt(t)):a=t;const{month:o,day:l}=mn(a,u);return{year:a,month:o,day:l,..._t(e)}}function Sn(e){const{year:t,month:i,day:n}=e;return{year:t,ordinal:Fn(t,i,n),..._t(e)}}function bn(e){const{year:t,ordinal:i}=e,{month:n,day:s}=mn(t,i);return{year:t,month:n,day:s,..._t(e)}}function An(e){const t=Dt(e.year),i=gt(e.month,1,12),n=gt(e.day,1,St(e.year,e.month));return t?i?!n&&pn("day",e.day):pn("month",e.month):pn("year",e.year)}function Tn(e){const{hour:t,minute:i,second:n,millisecond:s}=e,r=gt(t,0,23)||24===t&&0===i&&0===n&&0===s,a=gt(i,0,59),u=gt(n,0,59),o=gt(s,0,999);return r?a?u?!o&&pn("millisecond",s):pn("second",n):pn("minute",i):pn("hour",t)}const Nn="Invalid DateTime",wn=864e13;function Ln(e){return new qt("unsupported zone",`the zone "${e.name}" is not supported`)}function On(e){return null===e.weekData&&(e.weekData=Cn(e.c)),e.weekData}function vn(e,t){const i={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Zn({...i,...t,old:i})}function _n(e,t,i){let n=e-60*t*1e3;const s=i.offset(n);if(t===s)return[n,t];n-=60*(s-t)*1e3;const r=i.offset(n);return s===r?[n,s]:[e-60*Math.min(s,r)*1e3,Math.max(s,r)]}function In(e,t){const i=new Date(e+=60*t*1e3);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function kn(e,t,i){return _n(bt(e),t,i)}function Bn(e,t){const i=e.o,n=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),r={...e.c,year:n,month:s,day:Math.min(e.c.day,St(n,s))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=Ui.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),u=bt(r);let[o,l]=_n(u,i,e.zone);return 0!==a&&(o+=a,l=e.zone.offset(o)),{ts:o,o:l}}function xn(e,t,i,n,s,r){const{setZone:a,zone:u}=i;if(e&&0!==Object.keys(e).length||t){const n=t||u,s=Zn.fromObject(e,{...i,zone:n,specificOffset:r});return a?s:s.setZone(u)}return Zn.invalid(new qt("unparsable",`the input "${s}" can't be parsed as ${n}`))}function Rn(e,t,i=!0){return e.isValid?Kt.create(Ze.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Mn(e,t){const i=e.c.year>9999||e.c.year<0;let n="";return i&&e.c.year>=0&&(n+="+"),n+=Et(e.c.year,i?6:4),t?(n+="-",n+=Et(e.c.month),n+="-",n+=Et(e.c.day)):(n+=Et(e.c.month),n+=Et(e.c.day)),n}function zn(e,t,i,n,s,r){let a=Et(e.c.hour);return t?(a+=":",a+=Et(e.c.minute),0===e.c.millisecond&&0===e.c.second&&i||(a+=":")):a+=Et(e.c.minute),0===e.c.millisecond&&0===e.c.second&&i||(a+=Et(e.c.second),0===e.c.millisecond&&n||(a+=".",a+=Et(e.c.millisecond,3))),s&&(e.isOffsetFixed&&0===e.offset&&!r?a+="Z":e.o<0?(a+="-",a+=Et(Math.trunc(-e.o/60)),a+=":",a+=Et(Math.trunc(-e.o%60))):(a+="+",a+=Et(Math.trunc(e.o/60)),a+=":",a+=Et(Math.trunc(e.o%60)))),r&&(a+="["+e.zone.ianaName+"]"),a}const Hn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Pn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Gn={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Vn=["year","month","day","hour","minute","second","millisecond"],Yn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Wn=["year","ordinal","hour","minute","second","millisecond"];function Un(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new se(e);return t}function jn(e,t){const i=Qe(t.zone,ut.defaultZone),n=Ze.fromObject(t),s=ut.now();let r,a;if(ot(e.year))r=s;else{for(const t of Vn)ot(e[t])&&(e[t]=Hn[t]);const t=An(e)||Tn(e);if(t)return Zn.invalid(t);const n=i.offset(s);[r,a]=kn(e,n,i)}return new Zn({ts:r,zone:i,loc:n,o:a})}function Kn(e,t,i){const n=!!ot(i.round)||i.round,s=(e,s)=>(e=mt(e,n||i.calendary?0:2,!0),t.loc.clone(i).relFormatter(i).format(e,s)),r=n=>i.calendary?t.hasSame(e,n)?0:t.startOf(n).diff(e.startOf(n),n).get(n):t.diff(e,n).get(n);if(i.unit)return s(r(i.unit),i.unit);for(const e of i.units){const t=r(e);if(Math.abs(t)>=1)return s(t,e)}return s(e>t?-0:0,i.units[i.units.length-1])}function qn(e){let t,i={};return e.length>0&&"object"==typeof e[e.length-1]?(i=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[i,t]}class Zn{constructor(e){const t=e.zone||ut.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new qt("invalid input"):null)||(t.isValid?null:Ln(t));this.ts=ot(e.ts)?ut.now():e.ts;let n=null,s=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[n,s]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);n=In(this.ts,e),i=Number.isNaN(n.year)?new qt("invalid input"):null,n=i?null:n,s=i?null:e}this._zone=t,this.loc=e.loc||Ze.create(),this.invalid=i,this.weekData=null,this.c=n,this.o=s,this.isLuxonDateTime=!0}static now(){return new Zn({})}static local(){const[e,t]=qn(arguments),[i,n,s,r,a,u,o]=t;return jn({year:i,month:n,day:s,hour:r,minute:a,second:u,millisecond:o},e)}static utc(){const[e,t]=qn(arguments),[i,n,s,r,a,u,o]=t;return e.zone=Xe.utcInstance,jn({year:i,month:n,day:s,hour:r,minute:a,second:u,millisecond:o},e)}static fromJSDate(e,t={}){const i=(n=e,"[object Date]"===Object.prototype.toString.call(n)?e.valueOf():NaN);var n;if(Number.isNaN(i))return Zn.invalid("invalid input");const s=Qe(t.zone,ut.defaultZone);return s.isValid?new Zn({ts:i,zone:s,loc:Ze.fromObject(t)}):Zn.invalid(Ln(s))}static fromMillis(e,t={}){if(lt(e))return e<-wn||e>wn?Zn.invalid("Timestamp out of range"):new Zn({ts:e,zone:Qe(t.zone,ut.defaultZone),loc:Ze.fromObject(t)});throw new re(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(lt(e))return new Zn({ts:1e3*e,zone:Qe(t.zone,ut.defaultZone),loc:Ze.fromObject(t)});throw new re("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const i=Qe(t.zone,ut.defaultZone);if(!i.isValid)return Zn.invalid(Ln(i));const n=ut.now(),s=ot(t.specificOffset)?i.offset(n):t.specificOffset,r=Ot(e,Un),a=!ot(r.ordinal),u=!ot(r.year),o=!ot(r.month)||!ot(r.day),l=u||o,D=r.weekYear||r.weekNumber,d=Ze.fromObject(t);if((l||a)&&D)throw new ne("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&a)throw new ne("Can't mix ordinal dates with month/day");const h=D||r.weekday&&!l;let c,g,E=In(n,s);h?(c=Yn,g=Pn,E=Cn(E)):a?(c=Wn,g=Gn,E=Sn(E)):(c=Vn,g=Hn);let p=!1;for(const e of c)ot(r[e])?r[e]=p?g[e]:E[e]:p=!0;const f=h?function(e){const t=Dt(e.weekYear),i=gt(e.weekNumber,1,At(e.weekYear)),n=gt(e.weekday,1,7);return t?i?!n&&pn("weekday",e.weekday):pn("week",e.week):pn("weekYear",e.weekYear)}(r):a?function(e){const t=Dt(e.year),i=gt(e.ordinal,1,yt(e.year));return t?!i&&pn("ordinal",e.ordinal):pn("year",e.year)}(r):An(r),F=f||Tn(r);if(F)return Zn.invalid(F);const m=h?yn(r):a?bn(r):r,[C,y]=kn(m,s,i),S=new Zn({ts:C,zone:i,o:y,loc:d});return r.weekday&&l&&e.weekday!==S.weekday?Zn.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${S.toISO()}`):S}static fromISO(e,t={}){const[i,n]=function(e){return Jt(e,[Ai,Li],[Ti,Oi],[Ni,vi],[wi,_i])}(e);return xn(i,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[i,n]=function(e){return Jt(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[fi,Fi])}(e);return xn(i,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[i,n]=function(e){return Jt(e,[mi,Si],[Ci,Si],[yi,bi])}(e);return xn(i,n,t,"HTTP",t)}static fromFormat(e,t,i={}){if(ot(e)||ot(t))throw new re("fromFormat requires an input string and a format");const{locale:n=null,numberingSystem:s=null}=i,r=Ze.fromOpts({locale:n,numberingSystem:s,defaultToEN:!0}),[a,u,o,l]=function(e,t,i){const{result:n,zone:s,specificOffset:r,invalidReason:a}=hn(e,t,i);return[n,s,r,a]}(r,e,t);return l?Zn.invalid(l):xn(a,u,i,`format ${t}`,e,o)}static fromString(e,t,i={}){return Zn.fromFormat(e,t,i)}static fromSQL(e,t={}){const[i,n]=function(e){return Jt(e,[ki,Li],[Bi,xi])}(e);return xn(i,n,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new re("need to specify a reason the DateTime is invalid");const i=e instanceof qt?e:new qt(e,t);if(ut.throwOnInvalid)throw new ee(i);return new Zn({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const i=cn(e,Ze.fromObject(t));return i?i.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return dn(Kt.parseFormat(e),Ze.fromObject(t)).map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?On(this).weekYear:NaN}get weekNumber(){return this.isValid?On(this).weekNumber:NaN}get weekday(){return this.isValid?On(this).weekday:NaN}get ordinal(){return this.isValid?Sn(this.c).ordinal:NaN}get monthShort(){return this.isValid?qi.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?qi.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?qi.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?qi.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,i=bt(this.c),n=this.zone.offset(i-e),s=this.zone.offset(i+e),r=this.zone.offset(i-n*t),a=this.zone.offset(i-s*t);if(r===a)return[this];const u=i-r*t,o=i-a*t,l=In(u,r),D=In(o,a);return l.hour===D.hour&&l.minute===D.minute&&l.second===D.second&&l.millisecond===D.millisecond?[vn(this,{ts:u}),vn(this,{ts:o})]:[this]}get isInLeapYear(){return Ct(this.year)}get daysInMonth(){return St(this.year,this.month)}get daysInYear(){return this.isValid?yt(this.year):NaN}get weeksInWeekYear(){return this.isValid?At(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:i,calendar:n}=Kt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:i,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(Xe.instance(e),t)}toLocal(){return this.setZone(ut.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:i=!1}={}){if((e=Qe(e,ut.defaultZone)).equals(this.zone))return this;if(e.isValid){let n=this.ts;if(t||i){const t=e.offset(this.ts),i=this.toObject();[n]=kn(i,t,e)}return vn(this,{ts:n,zone:e})}return Zn.invalid(Ln(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:i}={}){return vn(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:i})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Ot(e,Un),i=!ot(t.weekYear)||!ot(t.weekNumber)||!ot(t.weekday),n=!ot(t.ordinal),s=!ot(t.year),r=!ot(t.month)||!ot(t.day),a=s||r,u=t.weekYear||t.weekNumber;if((a||n)&&u)throw new ne("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(r&&n)throw new ne("Can't mix ordinal dates with month/day");let o;i?o=yn({...Cn(this.c),...t}):ot(t.ordinal)?(o={...this.toObject(),...t},ot(t.day)&&(o.day=Math.min(St(o.year,o.month),o.day))):o=bn({...Sn(this.c),...t});const[l,D]=kn(o,this.o,this.zone);return vn(this,{ts:l,o:D})}plus(e){return this.isValid?vn(this,Bn(this,Ui.fromDurationLike(e))):this}minus(e){return this.isValid?vn(this,Bn(this,Ui.fromDurationLike(e).negate())):this}startOf(e){if(!this.isValid)return this;const t={},i=Ui.normalizeUnit(e);switch(i){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===i&&(t.weekday=1),"quarters"===i){const e=Math.ceil(this.month/3);t.month=3*(e-1)+1}return this.set(t)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,t={}){return this.isValid?Kt.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Nn}toLocaleString(e=De,t={}){return this.isValid?Kt.create(this.loc.clone(t),e).formatDateTime(this):Nn}toLocaleParts(e={}){return this.isValid?Kt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:i=!1,includeOffset:n=!0,extendedZone:s=!1}={}){if(!this.isValid)return null;const r="extended"===e;let a=Mn(this,r);return a+="T",a+=zn(this,r,t,i,n,s),a}toISODate({format:e="extended"}={}){return this.isValid?Mn(this,"extended"===e):null}toISOWeekDate(){return Rn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:i=!0,includePrefix:n=!1,extendedZone:s=!1,format:r="extended"}={}){return this.isValid?(n?"T":"")+zn(this,"extended"===r,t,e,i,s):null}toRFC2822(){return Rn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Rn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Mn(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:i=!0}={}){let n="HH:mm:ss.SSS";return(t||e)&&(i&&(n+=" "),t?n+="z":e&&(n+="ZZ")),Rn(this,n,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Nn}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",i={}){if(!this.isValid||!e.isValid)return Ui.invalid("created by diffing an invalid DateTime");const n={locale:this.locale,numberingSystem:this.numberingSystem,...i},s=(u=t,Array.isArray(u)?u:[u]).map(Ui.normalizeUnit),r=e.valueOf()>this.valueOf(),a=function(e,t,i,n){let[s,r,a,u]=function(e,t,i){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const i=Zi(e,t);return(i-i%7)/7}],["days",Zi]],s={},r=e;let a,u;for(const[o,l]of n)i.indexOf(o)>=0&&(a=o,s[o]=l(e,t),u=r.plus(s),u>t?(s[o]--,(e=r.plus(s))>t&&(u=e,s[o]--,e=r.plus(s))):e=u);return[e,s,u,a]}(e,t,i);const o=t-s,l=i.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===l.length&&(a0?Ui.fromMillis(o,n).shiftTo(...l).plus(D):D}(r?this:e,r?e:this,s,n);var u;return r?a.negate():a}diffNow(e="milliseconds",t={}){return this.diff(Zn.now(),e,t)}until(e){return this.isValid?Ki.fromDateTimes(this,e):this}hasSame(e,t){if(!this.isValid)return!1;const i=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(t)<=i&&i<=n.endOf(t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||Zn.fromObject({},{zone:this.zone}),i=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(Zn.isDateTime))throw new re("max requires all arguments be DateTimes");return ht(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,i={}){const{locale:n=null,numberingSystem:s=null}=i;return hn(Ze.fromOpts({locale:n,numberingSystem:s,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,i={}){return Zn.fromFormatExplain(e,t,i)}static get DATE_SHORT(){return De}static get DATE_MED(){return de}static get DATE_MED_WITH_WEEKDAY(){return he}static get DATE_FULL(){return ce}static get DATE_HUGE(){return ge}static get TIME_SIMPLE(){return Ee}static get TIME_WITH_SECONDS(){return pe}static get TIME_WITH_SHORT_OFFSET(){return fe}static get TIME_WITH_LONG_OFFSET(){return Fe}static get TIME_24_SIMPLE(){return me}static get TIME_24_WITH_SECONDS(){return Ce}static get TIME_24_WITH_SHORT_OFFSET(){return ye}static get TIME_24_WITH_LONG_OFFSET(){return Se}static get DATETIME_SHORT(){return be}static get DATETIME_SHORT_WITH_SECONDS(){return Ae}static get DATETIME_MED(){return Te}static get DATETIME_MED_WITH_SECONDS(){return Ne}static get DATETIME_MED_WITH_WEEKDAY(){return we}static get DATETIME_FULL(){return Le}static get DATETIME_FULL_WITH_SECONDS(){return Oe}static get DATETIME_HUGE(){return ve}static get DATETIME_HUGE_WITH_SECONDS(){return _e}}function $n(e){if(Zn.isDateTime(e))return e;if(e&&e.valueOf&<(e.valueOf()))return Zn.fromJSDate(e);if(e&&"object"==typeof e)return Zn.fromObject(e);throw new re(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const Xn={renderNullAs:"\\-",taskCompletionTracking:!1,taskCompletionUseEmojiShorthand:!1,taskCompletionText:"completion",taskCompletionDateFormat:"yyyy-MM-dd",recursiveSubTaskCompletion:!1,warnOnEmptyResult:!0,refreshEnabled:!0,refreshInterval:2500,defaultDateFormat:"MMMM dd, yyyy",defaultDateTimeFormat:"h:mm a - MMMM dd, yyyy",maxRecursiveRenderDepth:4,tableIdColumnName:"File",tableGroupColumnName:"Group",showResultCount:!0};class Jn{value;successful;constructor(e){this.value=e,this.successful=!0}map(e){return new Jn(e(this.value))}flatMap(e){return e(this.value)}mapErr(e){return this}bimap(e,t){return this.map(e)}orElse(e){return this.value}cast(){return this}orElseThrow(e){return this.value}}class Qn{error;successful;constructor(e){this.error=e,this.successful=!1}map(e){return this}flatMap(e){return this}mapErr(e){return new Qn(e(this.error))}bimap(e,t){return this.mapErr(t)}orElse(e){return e}cast(){return this}orElseThrow(e){throw e?new Error(e(this.error)):new Error(""+this.error)}}var es;!function(e){function t(e){return new Jn(e)}function i(e){return new Qn(e)}function n(e,t,n){return e.successful?t.successful?n(e.value,t.value):i(t.error):i(e.error)}e.success=t,e.failure=i,e.flatMap2=n,e.map2=function(e,i,s){return n(e,i,((e,i)=>t(s(e,i))))}}(es||(es={})),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==T||"undefined"!=typeof self&&self;var ts={exports:{}};"undefined"!=typeof self&&self,ts.exports=function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(e,t,i){function n(e){if(!(this instanceof n))return new n(e);this._=e}var s=n.prototype;function r(e,t){for(var i=0;i>7),buf:function(e){var t=a((function(e,t,i,n){return e.concat(i===n.length-1?Buffer.from([t,0]).readUInt16BE(0):n.readUInt16BE(i))}),[],e);return Buffer.from(u((function(e){return(e<<1&65535)>>8}),t))}(i.buf)}})),i}function l(){return"undefined"!=typeof Buffer}function D(){if(!l())throw new Error("Buffer global does not exist; please use webpack if you need to parse Buffers in the browser.")}function d(e){D();var t=a((function(e,t){return e+t}),0,e);if(t%8!=0)throw new Error("The bits ["+e.join(", ")+"] add up to "+t+" which is not an even number of bytes; the total should be divisible by 8");var i,s=t/8,r=(i=function(e){return e>48},a((function(e,t){return e||(i(t)?t:e)}),null,e));if(r)throw new Error(r+" bit range requested exceeds 48 bit (6 byte) Number max.");return new n((function(t,i){var n=s+i;return n>t.length?S(i,s.toString()+" bytes"):y(n,a((function(e,t){var i=o(t,e.buf);return{coll:e.coll.concat(i.v),buf:i.buf}}),{coll:[],buf:t.slice(i,n)},e).coll)}))}function h(e,t){return new n((function(i,n){return D(),n+t>i.length?S(n,t+" bytes for "+e):y(n+t,i.slice(n,n+t))}))}function c(e,t){if("number"!=typeof(i=t)||Math.floor(i)!==i||t<0||t>6)throw new Error(e+" requires integer length in range [0, 6].");var i}function g(e){return c("uintBE",e),h("uintBE("+e+")",e).map((function(t){return t.readUIntBE(0,e)}))}function E(e){return c("uintLE",e),h("uintLE("+e+")",e).map((function(t){return t.readUIntLE(0,e)}))}function p(e){return c("intBE",e),h("intBE("+e+")",e).map((function(t){return t.readIntBE(0,e)}))}function f(e){return c("intLE",e),h("intLE("+e+")",e).map((function(t){return t.readIntLE(0,e)}))}function F(e){return e instanceof n}function m(e){return"[object Array]"==={}.toString.call(e)}function C(e){return l()&&Buffer.isBuffer(e)}function y(e,t){return{status:!0,index:e,value:t,furthest:-1,expected:[]}}function S(e,t){return m(t)||(t=[t]),{status:!1,index:-1,value:null,furthest:e,expected:t}}function b(e,t){if(!t)return e;if(e.furthest>t.furthest)return e;var i=e.furthest===t.furthest?function(e,t){if(function(){if(void 0!==n._supportsSet)return n._supportsSet;var e="undefined"!=typeof Set;return n._supportsSet=e,e}()&&Array.from){for(var i=new Set(e),s=0;s=0;){if(a in i){n=i[a].line,0===r&&(r=i[a].lineStart);break}("\n"===e.charAt(a)||"\r"===e.charAt(a)&&"\n"!==e.charAt(a+1))&&(s++,0===r&&(r=a+1)),a--}var u=n+s,o=t-r;return i[t]={line:u,lineStart:r},{offset:t,line:u+1,column:o+1}}function N(e){if(!F(e))throw new Error("not a parser: "+e)}function w(e,t){return"string"==typeof e?e.charAt(t):e[t]}function L(e){if("number"!=typeof e)throw new Error("not a number: "+e)}function O(e){if("function"!=typeof e)throw new Error("not a function: "+e)}function v(e){if("string"!=typeof e)throw new Error("not a string: "+e)}var _=2,I=3,k=8,B=5*k,x=4*k,R=" ";function M(e,t){return new Array(t+1).join(e)}function z(e,t,i){var n=t-e.length;return n<=0?e:M(i,n)+e}function H(e,t,i,n){return{from:e-t>0?e-t:0,to:e+i>n?n:e+i}}function P(e,t){var i,n,s,r,o,l=t.index,D=l.offset,d=1;if(D===e.length)return"Got the end of the input";if(C(e)){var h=D-D%k,c=D-h,g=H(h,B,x+k,e.length),E=u((function(e){return u((function(e){return z(e.toString(16),2,"0")}),e)}),function(e,t){var i=e.length,n=[],s=0;if(i<=t)return[e.slice()];for(var r=0;r=4&&(i+=1),d=2,s=u((function(e){return e.length<=4?e.join(" "):e.slice(0,4).join(" ")+" "+e.slice(4).join(" ")}),E),(o=(8*(r.to>0?r.to-1:r.to)).toString(16).length)<2&&(o=2)}else{var p=e.split(/\r\n|[\n\r\u2028\u2029]/);i=l.column-1,n=l.line-1,r=H(n,_,I,p.length),s=p.slice(r.from,r.to),o=r.to.toString().length}var f=n-r.from;return C(e)&&(o=(8*(r.to>0?r.to-1:r.to)).toString(16).length)<2&&(o=2),a((function(t,n,s){var a,u=s===f,l=u?"> ":R;return a=C(e)?z((8*(r.from+s)).toString(16),o,"0"):z((r.from+s+1).toString(),o," "),[].concat(t,[l+a+" | "+n],u?[R+M(" ",o)+" | "+z("",i," ")+M("^",d)]:[])}),[],s).join("\n")}function G(e,t){return["\n","-- PARSING FAILED "+M("-",50),"\n\n",P(e,t),"\n\n",(i=t.expected,1===i.length?"Expected:\n\n"+i[0]:"Expected one of the following: \n\n"+i.join(", ")),"\n"].join("");var i}function V(e){return void 0!==e.flags?e.flags:[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.unicode?"u":"",e.sticky?"y":""].join("")}function Y(){for(var e=[].slice.call(arguments),t=e.length,i=0;i=2?L(t):t=0;var i=function(e){return RegExp("^(?:"+e.source+")",V(e))}(e),s=""+e;return n((function(e,n){var r=i.exec(e.slice(n));if(r){if(0<=t&&t<=r.length){var a=r[0],u=r[t];return y(n+a.length,u)}return S(n,"valid match group (0 to "+r.length+") in "+s)}return S(n,s)}))}function $(e){return n((function(t,i){return y(i,e)}))}function X(e){return n((function(t,i){return S(i,e)}))}function J(e){if(F(e))return n((function(t,i){var n=e._(t,i);return n.index=i,n.value="",n}));if("string"==typeof e)return J(q(e));if(e instanceof RegExp)return J(Z(e));throw new Error("not a string, regexp, or parser: "+e)}function Q(e){return N(e),n((function(t,i){var n=e._(t,i),s=t.slice(i,n.index);return n.status?S(i,'not "'+s+'"'):y(i,null)}))}function ee(e){return O(e),n((function(t,i){var n=w(t,i);return i=e.length?S(t,"any character/byte"):y(t+1,w(e,t))})),re=n((function(e,t){return y(e.length,e.slice(t))})),ae=n((function(e,t){return t=0})).desc(t)},n.optWhitespace=de,n.Parser=n,n.range=function(e,t){return ee((function(i){return e<=i&&i<=t})).desc(e+"-"+t)},n.regex=Z,n.regexp=Z,n.sepBy=j,n.sepBy1=K,n.seq=Y,n.seqMap=W,n.seqObj=function(){for(var e,t={},i=0,s=(e=arguments,Array.prototype.slice.call(e)),r=s.length,a=0;a255)throw new Error("Value specified to byte constructor ("+e+"=0x"+e.toString(16)+") is larger in value than a single byte.");var t=(e>15?"0x":"0x0")+e.toString(16);return n((function(i,n){var s=w(i,n);return s===e?y(n+1,s):S(n,t)}))},buffer:function(e){return h("buffer",e).map((function(e){return Buffer.from(e)}))},encodedString:function(e,t){return h("string",t).map((function(t){return t.toString(e)}))},uintBE:g,uint8BE:g(1),uint16BE:g(2),uint32BE:g(4),uintLE:E,uint8LE:E(1),uint16LE:E(2),uint32LE:E(4),intBE:p,int8BE:p(1),int16BE:p(2),int32BE:p(4),intLE:f,int8LE:f(1),int16LE:f(2),int32LE:f(4),floatBE:h("floatBE",4).map((function(e){return e.readFloatBE(0)})),floatLE:h("floatLE",4).map((function(e){return e.readFloatLE(0)})),doubleBE:h("doubleBE",8).map((function(e){return e.readDoubleBE(0)})),doubleLE:h("doubleLE",8).map((function(e){return e.readDoubleLE(0)}))},e.exports=n}]);var is=ts.exports;function ns(e){return null==e?e:e.shiftToAll().normalize()}function ss(e){return e.includes("/")&&(e=e.substring(e.lastIndexOf("/")+1)),e.endsWith(".md")&&(e=e.substring(0,e.length-3)),e}is.alt(is.regex(new RegExp(/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[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\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,"")),is.regex(/[0-9\p{Letter}_-]+/u).map((e=>e.toLocaleLowerCase())),is.whitespace.map((e=>"-")),is.any.map((e=>""))).many().map((e=>e.join("")));const rs=is.alt(is.regex(new RegExp(/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0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\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C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uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,"")),is.regex(/[0-9\p{Letter}_-]+/u),is.whitespace.map((e=>" ")),is.any.map((e=>" "))).many().map((e=>e.join("").split(/\s+/).join(" ").trim()));function as(e){return rs.tryParse(e)}var us,os,ls,Ds,ds;!function(e){function t(e){return a(e)?{type:"null",value:e}:n(e)?{type:"number",value:e}:i(e)?{type:"string",value:e}:o(e)?{type:"boolean",value:e}:r(e)?{type:"duration",value:e}:s(e)?{type:"date",value:e}:D(e)?{type:"widget",value:e}:u(e)?{type:"array",value:e}:l(e)?{type:"link",value:e}:c(e)?{type:"function",value:e}:d(e)?{type:"html",value:e}:h(e)?{type:"object",value:e}:void 0}function i(e){return"string"==typeof e}function n(e){return"number"==typeof e}function s(e){return e instanceof Zn}function r(e){return e instanceof Ui}function a(e){return null==e}function u(e){return Array.isArray(e)}function o(e){return"boolean"==typeof e}function l(e){return e instanceof hs}function D(e){return e instanceof cs}function d(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function h(e){return!("object"!=typeof e||d(e)||D(e)||u(e)||r(e)||s(e)||l(e)||void 0===e||a(e))}function c(e){return"function"==typeof e}e.toString=function e(i,n=Xn,s=!1){let r=t(i);if(!r)return n.renderNullAs;switch(r.type){case"null":return n.renderNullAs;case"string":return r.value;case"number":case"boolean":return""+r.value;case"html":return r.value.outerHTML;case"widget":case"link":return r.value.markdown();case"function":return"";case"array":let t="";return s&&(t+="["),t+=r.value.map((t=>e(t,n,!0))).join(", "),s&&(t+="]"),t;case"object":return"{ "+Object.entries(r.value).map((t=>t[0]+": "+e(t[1],n,!0))).join(", ")+" }";case"date":return 0==r.value.second&&0==r.value.hour&&0==r.value.minute?r.value.toFormat(n.defaultDateFormat):r.value.toFormat(n.defaultDateTimeFormat);case"duration":return a=ns(a=r.value),(a=Ui.fromObject(Object.fromEntries(Object.entries(a.toObject()).filter((([,e])=>0!=e))))).toHuman()}var a},e.wrapValue=t,e.mapLeaves=function e(t,i){if(h(t)){let n={};for(let[s,r]of Object.entries(t))n[s]=e(r,i);return n}if(u(t)){let n=[];for(let s of t)n.push(e(s,i));return n}return i(t)},e.compareValue=function e(i,n,s){if(void 0===i&&(i=null),void 0===n&&(n=null),null===i&&null===n)return 0;if(null===i)return-1;if(null===n)return 1;let r=t(i),a=t(n);if(void 0===r&&void 0===a)return 0;if(void 0===r)return-1;if(void 0===a)return 1;if(r.type!=a.type)return r.type.localeCompare(a.type);if(r.value===a.value)return 0;switch(r.type){case"string":return r.value.localeCompare(a.value);case"number":return r.valuee),u=n(t.path).localeCompare(n(i.path));if(0!=u)return u;let o=t.type.localeCompare(i.type);return 0!=o?o:t.subpath&&!i.subpath?1:!t.subpath&&i.subpath?-1:t.subpath||i.subpath?(t.subpath??"").localeCompare(i.subpath??""):0;case"date":case"duration":return r.value0;case"boolean":return i.value;case"link":return!!i.value.path;case"date":return 0!=i.value.toMillis();case"duration":return 0!=i.value.as("seconds");case"object":return Object.keys(i.value).length>0;case"null":return!1;case"html":case"widget":case"function":return!0}},e.deepCopy=function t(i){if(null==i)return i;if(e.isArray(i))return[].concat(i.map((e=>t(e))));if(e.isObject(i)){let e={};for(let[n,s]of Object.entries(i))e[n]=t(s);return e}return i},e.isString=i,e.isNumber=n,e.isDate=s,e.isDuration=r,e.isNull=a,e.isArray=u,e.isBoolean=o,e.isLink=l,e.isWidget=D,e.isHtml=d,e.isObject=h,e.isFunction=c}(us||(us={})),function(e){function t(e){return us.isObject(e)&&2==Object.keys(e).length&&"key"in e&&"rows"in e}function i(e){for(let i of e)if(!t(i))return!1;return!0}e.isElementGroup=t,e.isGrouping=i,e.count=function e(t){if(i(t)){let i=0;for(let n of t)i+=e(n.rows);return i}return t.length}}(os||(os={}));class hs{path;display;subpath;embed;type;static file(e,t=!1,i){return new hs({path:e,embed:t,display:i,subpath:void 0,type:"file"})}static infer(e,t=!1,i){if(e.includes("#^")){let n=e.split("#^");return hs.block(n[0],n[1],t,i)}if(e.includes("#")){let n=e.split("#");return hs.header(n[0],n[1],t,i)}return hs.file(e,t,i)}static header(e,t,i,n){return new hs({path:e,embed:i,display:n,subpath:as(t),type:"header"})}static block(e,t,i,n){return new hs({path:e,embed:i,display:n,subpath:t,type:"block"})}static fromObject(e){return new hs(e)}constructor(e){Object.assign(this,e)}equals(e){return null!=e&&null!=e&&this.path==e.path&&this.type==e.type&&this.subpath==e.subpath}toString(){return this.markdown()}toObject(){return{path:this.path,type:this.type,subpath:this.subpath,display:this.display,embed:this.embed}}withPath(e){return new hs(Object.assign({},this,{path:e}))}withDisplay(e){return new hs(Object.assign({},this,{display:e}))}withHeader(e){return hs.header(this.path,e,this.embed,this.display)}toFile(){return hs.file(this.path,this.embed,this.display)}toEmbed(){if(this.embed)return this;{let e=new hs(this);return e.embed=!0,e}}fromEmbed(){if(this.embed){let e=new hs(this);return e.embed=!1,e}return this}markdown(){let e=(this.embed?"!":"")+"[["+this.obsidianLink();return this.display?e+="|"+this.display:(e+="|"+ss(this.path),"header"!=this.type&&"block"!=this.type||(e+=" > "+this.subpath)),e+="]]",e}obsidianLink(){const e=this.path.replaceAll("|","\\|");return"header"==this.type?e+"#"+this.subpath?.replaceAll("|","\\|"):"block"==this.type?e+"#^"+this.subpath?.replaceAll("|","\\|"):e}fileName(){return ss(this.path).replace(".md","")}}class cs{$widget;constructor(e){this.$widget=e}}class gs extends cs{key;value;constructor(e,t){super("dataview:list-pair"),this.key=e,this.value=t}markdown(){return`${us.toString(this.key)}: ${us.toString(this.value)}`}}class Es extends cs{url;display;constructor(e,t){super("dataview:external-link"),this.url=e,this.display=t}markdown(){return`[${this.display??this.url}](${this.url})`}}!function(e){function t(e){return"dataview:list-pair"===e.$widget}function i(e){return"dataview:external-link"===e.$widget}e.listPair=function(e,t){return new gs(e,t)},e.externalLink=function(e,t){return new Es(e,t)},e.isListPair=t,e.isExternalLink=i,e.isBuiltin=function(e){return t(e)||i(e)}}(ls||(ls={})),function(e){e.variable=function(e){return{type:"variable",name:e}},e.literal=function(e){return{type:"literal",value:e}},e.binaryOp=function(e,t,i){return{type:"binaryop",left:e,op:t,right:i}},e.index=function(e,t){return{type:"index",object:e,index:t}},e.indexVariable=function(t){let i=t.split("."),n=e.variable(i[0]);for(let t=1;t"==e||">="==e||"!="==e||"="==e},e.NULL=e.literal(null)}(Ds||(Ds={})),function(e){e.tag=function(e){return{type:"tag",tag:e}},e.csv=function(e){return{type:"csv",path:e}},e.folder=function(e){return{type:"folder",folder:e}},e.link=function(e,t){return{type:"link",file:e,direction:t?"incoming":"outgoing"}},e.binaryOp=function(e,t,i){return{type:"binaryop",left:e,op:t,right:i}},e.and=function(e,t){return{type:"binaryop",left:e,op:"&",right:t}},e.or=function(e,t){return{type:"binaryop",left:e,op:"|",right:t}},e.negate=function(e){return{type:"negate",child:e}},e.empty=function(){return{type:"empty"}}}(ds||(ds={}));const ps=new RegExp(/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E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0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,""),fs={year:Ui.fromObject({years:1}),years:Ui.fromObject({years:1}),yr:Ui.fromObject({years:1}),yrs:Ui.fromObject({years:1}),month:Ui.fromObject({months:1}),months:Ui.fromObject({months:1}),mo:Ui.fromObject({months:1}),mos:Ui.fromObject({months:1}),week:Ui.fromObject({weeks:1}),weeks:Ui.fromObject({weeks:1}),wk:Ui.fromObject({weeks:1}),wks:Ui.fromObject({weeks:1}),w:Ui.fromObject({weeks:1}),day:Ui.fromObject({days:1}),days:Ui.fromObject({days:1}),d:Ui.fromObject({days:1}),hour:Ui.fromObject({hours:1}),hours:Ui.fromObject({hours:1}),hr:Ui.fromObject({hours:1}),hrs:Ui.fromObject({hours:1}),h:Ui.fromObject({hours:1}),minute:Ui.fromObject({minutes:1}),minutes:Ui.fromObject({minutes:1}),min:Ui.fromObject({minutes:1}),mins:Ui.fromObject({minutes:1}),m:Ui.fromObject({minutes:1}),second:Ui.fromObject({seconds:1}),seconds:Ui.fromObject({seconds:1}),sec:Ui.fromObject({seconds:1}),secs:Ui.fromObject({seconds:1}),s:Ui.fromObject({seconds:1})},Fs={now:()=>Zn.local(),today:()=>Zn.local().startOf("day"),yesterday:()=>Zn.local().startOf("day").minus(Ui.fromObject({days:1})),tomorrow:()=>Zn.local().startOf("day").plus(Ui.fromObject({days:1})),sow:()=>Zn.local().startOf("week"),"start-of-week":()=>Zn.local().startOf("week"),eow:()=>Zn.local().endOf("week"),"end-of-week":()=>Zn.local().endOf("week"),soy:()=>Zn.local().startOf("year"),"start-of-year":()=>Zn.local().startOf("year"),eoy:()=>Zn.local().endOf("year"),"end-of-year":()=>Zn.local().endOf("year"),som:()=>Zn.local().startOf("month"),"start-of-month":()=>Zn.local().startOf("month"),eom:()=>Zn.local().endOf("month"),"end-of-month":()=>Zn.local().endOf("month")},ms=["FROM","WHERE","LIMIT","GROUP","FLATTEN"];function Cs(e,t,i){return is.seqMap(e,is.seq(is.optWhitespace,t,is.optWhitespace,e).many(),((e,t)=>{if(0==t.length)return e;let n=i(e,t[0][1],t[0][3]);for(let e=1;eis.regexp(/-?[0-9]+(\.[0-9]+)?/).map((e=>Number.parseFloat(e))).desc("number"),string:e=>is.string('"').then(is.alt(e.escapeCharacter,is.noneOf('"\\')).atLeast(0).map((e=>e.join("")))).skip(is.string('"')).desc("string"),escapeCharacter:e=>is.string("\\").then(is.any).map((e=>'"'===e?'"':"\\"===e?"\\":"\\"+e)),bool:e=>is.regexp(/true|false|True|False/).map((e=>"true"==e.toLowerCase())).desc("boolean ('true' or 'false')"),tag:e=>is.seqMap(is.string("#"),is.alt(is.regexp(/[^\u2000-\u206F\u2E00-\u2E7F'!"#$%&()*+,.:;<=>?@^`{|}~\[\]\\\s]/).desc("text")).many(),((e,t)=>e+t.join(""))).desc("tag ('#hello/stuff')"),identifier:e=>is.seqMap(is.alt(is.regexp(/\p{Letter}/u),is.regexp(ps).desc("text")),is.alt(is.regexp(/[0-9\p{Letter}_-]/u),is.regexp(ps).desc("text")).many(),((e,t)=>e+t.join(""))).desc("variable identifier"),link:e=>is.regexp(/\[\[([^\[\]]*?)\]\]/u,1).map((e=>function(e){let[t,i]=function(e){let t=-1;for(;(t=e.indexOf("|",t+1))>=0;)if(!(t>0&&"\\"==e[t-1]))return[e.substring(0,t).replace(/\\\|/g,"|"),e.substring(t+1)];return[e.replace(/\\\|/g,"|"),void 0]}(e);return hs.infer(t,!1,i)}(e))).desc("file link"),embedLink:e=>is.seqMap(is.string("!").atMost(1),e.link,((e,t)=>(e.length>0&&(t.embed=!0),t))).desc("file link"),binaryPlusMinus:e=>is.regexp(/\+|-/).map((e=>e)).desc("'+' or '-'"),binaryMulDiv:e=>is.regexp(/\*|\/|%/).map((e=>e)).desc("'*' or '/' or '%'"),binaryCompareOp:e=>is.regexp(/>=|<=|!=|>|<|=/).map((e=>e)).desc("'>=' or '<=' or '!=' or '=' or '>' or '<'"),binaryBooleanOp:e=>is.regexp(/and|or|&|\|/i).map((e=>"and"==e.toLowerCase()?"&":"or"==e.toLowerCase()?"|":e)).desc("'and' or 'or'"),rootDate:e=>is.seqMap(is.regexp(/\d{4}/),is.string("-"),is.regexp(/\d{2}/),((e,t,i)=>Zn.fromObject({year:Number.parseInt(e),month:Number.parseInt(i)}))).desc("date in format YYYY-MM[-DDTHH-MM-SS.MS]"),dateShorthand:e=>is.alt(...Object.keys(Fs).sort(((e,t)=>t.length-e.length)).map(is.string)),date:e=>function(e,...t){return is.custom(((i,n)=>(i,n)=>{let s=e._(i,n);if(!s.status)return s;for(let e of t){let t=e(s.value)._(i,s.index);if(!t.status)return s;s=t}return s}))}(e.rootDate,(e=>is.seqMap(is.string("-"),is.regexp(/\d{2}/),((t,i)=>e.set({day:Number.parseInt(i)})))),(e=>is.seqMap(is.string("T"),is.regexp(/\d{2}/),((t,i)=>e.set({hour:Number.parseInt(i)})))),(e=>is.seqMap(is.string(":"),is.regexp(/\d{2}/),((t,i)=>e.set({minute:Number.parseInt(i)})))),(e=>is.seqMap(is.string(":"),is.regexp(/\d{2}/),((t,i)=>e.set({second:Number.parseInt(i)})))),(e=>is.alt(is.seqMap(is.string("."),is.regexp(/\d{3}/),((t,i)=>e.set({millisecond:Number.parseInt(i)}))),is.succeed(e))),(e=>is.alt(is.seqMap(is.string("+").or(is.string("-")),is.regexp(/\d{1,2}(:\d{2})?/),((t,i)=>e.setZone("UTC"+t+i,{keepLocalTime:!0}))),is.seqMap(is.string("Z"),(()=>e.setZone("utc",{keepLocalTime:!0}))),is.seqMap(is.string("["),is.regexp(/[0-9A-Za-z+-\/]+/u),is.string("]"),((t,i,n)=>e.setZone(i,{keepLocalTime:!0})))))).assert((e=>e.isValid),"valid date").desc("date in format YYYY-MM[-DDTHH-MM-SS.MS]"),datePlus:e=>is.alt(e.dateShorthand.map((e=>Fs[e]())),e.date).desc("date in format YYYY-MM[-DDTHH-MM-SS.MS] or in shorthand"),durationType:e=>is.alt(...Object.keys(fs).sort(((e,t)=>t.length-e.length)).map(is.string)),duration:e=>is.seqMap(e.number,is.optWhitespace,e.durationType,((e,t,i)=>fs[i].mapUnits((t=>t*e)))).sepBy1(is.string(",").trim(is.optWhitespace).or(is.optWhitespace)).map((e=>e.reduce(((e,t)=>e.plus(t))))).desc("duration like 4hr2min"),rawNull:e=>is.string("null"),tagSource:e=>e.tag.map((e=>ds.tag(e))),csvSource:e=>is.seqMap(is.string("csv(").skip(is.optWhitespace),e.string,is.string(")"),((e,t,i)=>ds.csv(t))),linkIncomingSource:e=>e.link.map((e=>ds.link(e.path,!0))),linkOutgoingSource:e=>is.seqMap(is.string("outgoing(").skip(is.optWhitespace),e.link,is.string(")"),((e,t,i)=>ds.link(t.path,!1))),folderSource:e=>e.string.map((e=>ds.folder(e))),parensSource:e=>is.seqMap(is.string("("),is.optWhitespace,e.source,is.optWhitespace,is.string(")"),((e,t,i,n,s)=>i)),negateSource:e=>is.seqMap(is.alt(is.string("-"),is.string("!")),e.atomSource,((e,t)=>ds.negate(t))),atomSource:e=>is.alt(e.parensSource,e.negateSource,e.linkOutgoingSource,e.linkIncomingSource,e.folderSource,e.tagSource,e.csvSource),binaryOpSource:e=>Cs(e.atomSource,e.binaryBooleanOp.map((e=>e)),ds.binaryOp),source:e=>e.binaryOpSource,variableField:e=>e.identifier.chain((e=>ms.includes(e.toUpperCase())?is.fail("Variable fields cannot be a keyword ("+ms.join(" or ")+")"):is.succeed(Ds.variable(e)))).desc("variable"),numberField:e=>e.number.map((e=>Ds.literal(e))).desc("number"),stringField:e=>e.string.map((e=>Ds.literal(e))).desc("string"),boolField:e=>e.bool.map((e=>Ds.literal(e))).desc("boolean"),dateField:e=>is.seqMap(is.string("date("),is.optWhitespace,e.datePlus,is.optWhitespace,is.string(")"),((e,t,i,n,s)=>Ds.literal(i))).desc("date"),durationField:e=>is.seqMap(is.string("dur("),is.optWhitespace,e.duration,is.optWhitespace,is.string(")"),((e,t,i,n,s)=>Ds.literal(i))).desc("duration"),nullField:e=>e.rawNull.map((e=>Ds.NULL)),linkField:e=>e.link.map((e=>Ds.literal(e))),listField:e=>e.field.sepBy(is.string(",").trim(is.optWhitespace)).wrap(is.string("[").skip(is.optWhitespace),is.optWhitespace.then(is.string("]"))).map((e=>Ds.list(e))).desc("list ('[1, 2, 3]')"),objectField:e=>is.seqMap(e.identifier.or(e.string),is.string(":").trim(is.optWhitespace),e.field,((e,t,i)=>({name:e,value:i}))).sepBy(is.string(",").trim(is.optWhitespace)).wrap(is.string("{").skip(is.optWhitespace),is.optWhitespace.then(is.string("}"))).map((e=>{let t={};for(let i of e)t[i.name]=i.value;return Ds.object(t)})).desc("object ('{ a: 1, b: 2 }')"),atomInlineField:e=>is.alt(e.date,e.duration.map((e=>ns(e))),e.string,e.tag,e.embedLink,e.bool,e.number,e.rawNull),inlineFieldList:e=>e.atomInlineField.sepBy(is.string(",").trim(is.optWhitespace).lookahead(e.atomInlineField)),inlineField:e=>is.alt(is.seqMap(e.atomInlineField,is.string(",").trim(is.optWhitespace),e.inlineFieldList,((e,t,i)=>[e].concat(i))),e.atomInlineField),atomField:e=>is.alt(e.embedLink.map((e=>Ds.literal(e))),e.negatedField,e.linkField,e.listField,e.objectField,e.lambdaField,e.parensField,e.boolField,e.numberField,e.stringField,e.dateField,e.durationField,e.nullField,e.variableField),indexField:e=>is.seqMap(e.atomField,is.alt(e.dotPostfix,e.indexPostfix,e.functionPostfix).many(),((e,t)=>{let i=e;for(let e of t)switch(e.type){case"dot":i=Ds.index(i,Ds.literal(e.field));break;case"index":i=Ds.index(i,e.field);break;case"function":i=Ds.func(i,e.fields)}return i})),negatedField:e=>is.seqMap(is.string("!"),e.indexField,((e,t)=>Ds.negate(t))).desc("negated field"),parensField:e=>is.seqMap(is.string("("),is.optWhitespace,e.field,is.optWhitespace,is.string(")"),((e,t,i,n,s)=>i)),lambdaField:e=>is.seqMap(e.identifier.sepBy(is.string(",").trim(is.optWhitespace)).wrap(is.string("(").trim(is.optWhitespace),is.string(")").trim(is.optWhitespace)),is.string("=>").trim(is.optWhitespace),e.field,((e,t,i)=>({type:"lambda",arguments:e,value:i}))),dotPostfix:e=>is.seqMap(is.string("."),e.identifier,((e,t)=>({type:"dot",field:t}))),indexPostfix:e=>is.seqMap(is.string("["),is.optWhitespace,e.field,is.optWhitespace,is.string("]"),((e,t,i,n,s)=>({type:"index",field:i}))),functionPostfix:e=>is.seqMap(is.string("("),is.optWhitespace,e.field.sepBy(is.string(",").trim(is.optWhitespace)),is.optWhitespace,is.string(")"),((e,t,i,n,s)=>({type:"function",fields:i}))),binaryMulDivField:e=>Cs(e.indexField,e.binaryMulDiv,Ds.binaryOp),binaryPlusMinusField:e=>Cs(e.binaryMulDivField,e.binaryPlusMinus,Ds.binaryOp),binaryCompareField:e=>Cs(e.binaryPlusMinusField,e.binaryCompareOp,Ds.binaryOp),binaryBooleanField:e=>Cs(e.binaryCompareField,e.binaryBooleanOp,Ds.binaryOp),binaryOpField:e=>e.binaryBooleanField,field:e=>e.binaryOpField});var Ss;function bs(e,t){return is.eof.map(e).or(is.whitespace.then(t))}!function(e){e.named=function(e,t){return{name:e,field:t}},e.sortBy=function(e,t){return{field:e,direction:t}}}(Ss||(Ss={}));const As=is.createLanguage({queryType:e=>is.alt(is.regexp(/TABLE|LIST|TASK|CALENDAR/i)).map((e=>e.toLowerCase())).desc("query type ('TABLE', 'LIST', 'TASK', or 'CALENDAR')"),explicitNamedField:e=>is.seqMap(ys.field.skip(is.whitespace),is.regexp(/AS/i).skip(is.whitespace),ys.identifier.or(ys.string),((e,t,i)=>Ss.named(i,e))),comment:()=>is.Parser(((e,t)=>{let i=e.substring(t);if(!i.startsWith("//"))return is.makeFailure(t,"Not a comment");i=i.split("\n")[0];let n=i.substring(2).trim();return is.makeSuccess(t+i.length,n)})),namedField:e=>{return is.alt(e.explicitNamedField,(t=ys.field,is.custom(((e,i)=>(e,i)=>{let n=t._(e,i);return n.status?Object.assign({},n,{value:[n.value,e.substring(i,n.index)]}):n}))).map((([e,t])=>Ss.named(function(e){return e.split(/[\r\n]+/).map((e=>e.trim())).join("")}(t),e))));var t},sortField:e=>is.seqMap(ys.field.skip(is.optWhitespace),is.regexp(/ASCENDING|DESCENDING|ASC|DESC/i).atMost(1),((e,t)=>{let i=0==t.length?"ascending":t[0].toLowerCase();return"desc"==i&&(i="descending"),"asc"==i&&(i="ascending"),{field:e,direction:i}})),headerClause:e=>e.queryType.chain((t=>{switch(t){case"table":return bs((()=>({type:t,fields:[],showId:!0})),is.seqMap(is.regexp(/WITHOUT\s+ID/i).skip(is.optWhitespace).atMost(1),is.sepBy(e.namedField,is.string(",").trim(is.optWhitespace)),((e,i)=>({type:t,fields:i,showId:0==e.length}))));case"list":return bs((()=>({type:t,format:void 0,showId:!0})),is.seqMap(is.regexp(/WITHOUT\s+ID/i).skip(is.optWhitespace).atMost(1),ys.field.atMost(1),((e,i)=>({type:t,format:1==i.length?i[0]:void 0,showId:0==e.length}))));case"task":return is.succeed({type:t});case"calendar":return is.whitespace.then(is.seqMap(e.namedField,(e=>({type:t,showId:!0,field:e}))));default:return is.fail(`Unrecognized query type '${t}'`)}})).desc("TABLE or LIST or TASK or CALENDAR"),fromClause:e=>is.seqMap(is.regexp(/FROM/i),is.whitespace,ys.source,((e,t,i)=>i)),whereClause:e=>is.seqMap(is.regexp(/WHERE/i),is.whitespace,ys.field,((e,t,i)=>({type:"where",clause:i}))).desc("WHERE "),sortByClause:e=>is.seqMap(is.regexp(/SORT/i),is.whitespace,e.sortField.sepBy1(is.string(",").trim(is.optWhitespace)),((e,t,i)=>({type:"sort",fields:i}))).desc("SORT field [ASC/DESC]"),limitClause:e=>is.seqMap(is.regexp(/LIMIT/i),is.whitespace,ys.field,((e,t,i)=>({type:"limit",amount:i}))).desc("LIMIT "),flattenClause:e=>is.seqMap(is.regexp(/FLATTEN/i).skip(is.whitespace),e.namedField,((e,t)=>({type:"flatten",field:t}))).desc("FLATTEN [AS ]"),groupByClause:e=>is.seqMap(is.regexp(/GROUP BY/i).skip(is.whitespace),e.namedField,((e,t)=>({type:"group",field:t}))).desc("GROUP BY [AS ]"),clause:e=>is.alt(e.fromClause,e.whereClause,e.sortByClause,e.limitClause,e.groupByClause,e.flattenClause),query:e=>is.seqMap(e.headerClause.trim(Ts),e.fromClause.trim(Ts).atMost(1),e.clause.trim(Ts).many(),((e,t,i)=>({header:e,source:0==t.length?ds.folder(""):t[0],operations:i,settings:Xn})))}),Ts=is.alt(is.whitespace,As.comment).many().map((e=>e.join("")));J.DATE_SHORTHANDS=Fs,J.DURATION_TYPES=fs,J.EXPRESSION=ys,J.KEYWORDS=ms,J.QUERY_LANGUAGE=As;var Ns=J.getAPI=e=>e?e.plugins.plugins.dataview?.api:window.DataviewAPI;J.isPluginEnabled=e=>e.plugins.enabledPlugins.has("dataview"),J.parseField=function(e){try{return es.success(ys.field.tryParse(e))}catch(e){return es.failure(""+e)}};const ws=`---\n\nexcalidraw-plugin: parsed\nexcalidraw-default-mode: view\nexcalidraw-export-dark: false\nexcalidraw-export-transparent: false\nexcalidraw-linkbutton-opacity: 0.3\nexcalidraw-onload-script: "app.plugins.plugins[${String.fromCharCode(96)}excalibrain${String.fromCharCode(96)}].start(ea.targetView.leaf);"\n\ntags: [excalidraw]\n\n---\n\n# Text Elements\nOpen a document in another pane and click it to get started.\n\nFor the best experience enable 'Open in adjacent pane'\nin Excalidraw settings under 'Links and Transclusion'. ^4mylk7KK\n\n%%\n# Drawing\n${String.fromCharCode(96,96,96)}json\n{\n\t"type": "excalidraw",\n\t"version": 2,\n\t"source": "https://excalidraw.com",\n\t"elements": [\n\t\t{\n\t\t\t"type": "text",\n\t\t\t"version": 1,\n\t\t\t"versionNonce": 423577018,\n\t\t\t"isDeleted": false,\n\t\t\t"id": "4mylk7KK",\n\t\t\t"fillStyle": "hachure",\n\t\t\t"strokeWidth": 1,\n\t\t\t"strokeStyle": "solid",\n\t\t\t"roughness": 1,\n\t\t\t"opacity": 100,\n\t\t\t"angle": 0,\n\t\t\t"x": 0,\n\t\t\t"y": 0,\n\t\t\t"strokeColor": "white",\n\t\t\t"backgroundColor": "transparent",\n\t\t\t"width": 703,\n\t\t\t"height": 96,\n\t\t\t"seed": 4429,\n\t\t\t"groupIds": [],\n\t\t\t"strokeSharpness": "sharp",\n\t\t\t"boundElements": [],\n\t\t\t"updated": 1650784785611,\n\t\t\t"link": null,\n\t\t\t"locked": false,\n\t\t\t"fontSize": 20,\n\t\t\t"fontFamily": 3,\n\t\t\t"text": "Open a document in another pane and click it to get started.\\n\\nFor the best experience enable 'Open in adjacent pane'\\nin Excalidraw settings under 'Links and Transclusion'.",\n\t\t\t"rawText": "Open a document in another pane and click it to get started.\\n\\nFor the best experience enable 'Open in adjacent pane'\\nin Excalidraw settings under 'Links and Transclusion'.",\n\t\t\t"baseline": 91,\n\t\t\t"textAlign": "center",\n\t\t\t"verticalAlign": "top",\n\t\t\t"containerId": null,\n\t\t\t"originalText": "Open a document in another pane and click it to get started.\\n\\nFor the best experience enable 'Open in adjacent pane'\\nin Excalidraw settings under 'Links and Transclusion'."\n\t\t}\n\t],\n\t"appState": {\n\t\t"theme": "dark",\n\t\t"viewBackgroundColor": "hsl(208, 80%, 23%)",\n\t\t"currentItemStrokeColor": "#000000",\n\t\t"currentItemBackgroundColor": "transparent",\n\t\t"currentItemFillStyle": "hachure",\n\t\t"currentItemStrokeWidth": 2,\n\t\t"currentItemStrokeStyle": "solid",\n\t\t"currentItemRoughness": 1,\n\t\t"currentItemOpacity": 100,\n\t\t"currentItemFontFamily": 1,\n\t\t"currentItemFontSize": 16,\n\t\t"currentItemTextAlign": "left",\n\t\t"currentItemStrokeSharpness": "sharp",\n\t\t"currentItemStartArrowhead": null,\n\t\t"currentItemEndArrowhead": "arrow",\n\t\t"currentItemLinearStrokeSharpness": "round",\n\t\t"gridSize": null,\n\t\t"colorPalette": {}\n\t},\n\t"files": {}\n}\n${String.fromCharCode(96,96,96)}\n%%\n`;class Ls{nodes=[];renderedNodes=[];spec;constructor(e){this.spec=e}layout(e=this.spec.columns){const t=this.nodes.sort(((e,t)=>e.title.toLowerCase(){return r+1t[r*e+n])):(a=i%e,e%2?(t=>{const i=[];let n=0;for(n=e/2;n>t[0];n--)i.push(null);for(n=0;n{const t=[];let i=1,n=!0;return e.map((e=>Math.floor(e))).forEach((e=>{for(let s=0;si?t[r*e+i-1]:null));var a}))}async render(){this.layout();const e=this.renderedNodes.length*this.spec.rowHeight,t=null===this.spec.top&&null===this.spec.bottom?this.spec.origoY-e/2:null!==this.spec.top?this.spec.origoY-e/2this.spec.bottom?this.spec.bottom-e:this.spec.origoY-e/2,i=this.spec.origoX-(1===this.spec.columns?0:(this.spec.columns-1)/2*this.spec.columnWidth),n=t;for(const[e,t]of this.renderedNodes.entries())for(const[s,r]of t.entries())r&&(r.setCenter({x:i+s*this.spec.columnWidth,y:n+e*this.spec.rowHeight}),await r.render())}}const Os="|:?:|";class vs{plugin;links=new Map;reverseLinks=new Set;constructor(e){this.plugin=e}addLink(e,n,s,r,a,u,o,l){const D=e.page.path+Os+n.page.path;if(this.links.has(D)||this.reverseLinks.has(D))return;const d=n.page.path+Os+e.page.path,h=new Y(u===(l.inverseArrowDirection?i.TO:i.FROM)?n:e,u===(l.inverseArrowDirection?i.TO:i.FROM)?e:n,u===(l.inverseArrowDirection?i.TO:i.FROM)?s===t.LEFT||s===t.RIGHT?s===t.LEFT?t.LEFT:t.RIGHT:s===t.CHILD?t.PARENT:t.CHILD:s,r,a,o,l,this.plugin);this.links.set(D,h),this.reverseLinks.add(d)}render(e){this.links.forEach((t=>t.render(e.some((e=>t.hierarchyDefinition?.includes(e)))||t.isInferred&&e.includes("inferred-link"))))}}class _s{button;getVal;isEnabled;constructor({plugin:e,getVal:t,setVal:i,isEnabled:n,wrapper:s,options:r,updateIndex:a,shouldRerenderOnToggle:u}){void 0===u&&(u=!0),this.getVal=t,this.isEnabled=n,this.button=s.createEl("button",{cls:"excalibrain-button"});const o=e=>"string"==typeof r.icon?r.icon:e?r.icon?.on:r.icon?.off;r.icon?this.button.innerHTML=o(t()):this.button.createSpan({text:r.display??""}),this.button.ariaLabel=r.tooltip,this.updateButton(),this.button.onclick=()=>{i(!t())&&e.saveSettings(),this.updateButton(),r.icon&&(this.button.innerHTML=o(t())),u&&e.scene?.reRender(a)}}updateButton(){this.setColor(),this.setEnabled()}setColor(){if(this.getVal())return this.button.removeClass("off"),void this.button.addClass("on");this.button.removeClass("on"),this.button.addClass("off")}setEnabled(){this.isEnabled&&(this.isEnabled()?this.button.removeClass("disabled"):this.button.addClass("disabled"))}}var Is="top",ks="bottom",Bs="right",xs="left",Rs="auto",Ms=[Is,ks,Bs,xs],zs="start",Hs="end",Ps="clippingParents",Gs="viewport",Vs="popper",Ys="reference",Ws=Ms.reduce((function(e,t){return e.concat([t+"-"+zs,t+"-"+Hs])}),[]),Us=[].concat(Ms,[Rs]).reduce((function(e,t){return e.concat([t,t+"-"+zs,t+"-"+Hs])}),[]),js=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ks(e){return e?(e.nodeName||"").toLowerCase():null}function qs(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zs(e){return e instanceof qs(e).Element||e instanceof Element}function $s(e){return e instanceof qs(e).HTMLElement||e instanceof HTMLElement}function Xs(e){return"undefined"!=typeof ShadowRoot&&(e instanceof qs(e).ShadowRoot||e instanceof ShadowRoot)}var Js={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},s=t.elements[e];$s(s)&&Ks(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],s=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});$s(n)&&Ks(n)&&(Object.assign(n.style,r),Object.keys(s).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Qs(e){return e.split("-")[0]}var er=Math.max,tr=Math.min,ir=Math.round;function nr(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function sr(){return!/^((?!chrome|android).)*safari/i.test(nr())}function rr(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,r=1;t&&$s(e)&&(s=e.offsetWidth>0&&ir(n.width)/e.offsetWidth||1,r=e.offsetHeight>0&&ir(n.height)/e.offsetHeight||1);var a=(Zs(e)?qs(e):window).visualViewport,u=!sr()&&i,o=(n.left+(u&&a?a.offsetLeft:0))/s,l=(n.top+(u&&a?a.offsetTop:0))/r,D=n.width/s,d=n.height/r;return{width:D,height:d,top:l,right:o+D,bottom:l+d,left:o,x:o,y:l}}function ar(e){var t=rr(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function ur(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Xs(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function or(e){return qs(e).getComputedStyle(e)}function lr(e){return["table","td","th"].indexOf(Ks(e))>=0}function Dr(e){return((Zs(e)?e.ownerDocument:e.document)||window.document).documentElement}function dr(e){return"html"===Ks(e)?e:e.assignedSlot||e.parentNode||(Xs(e)?e.host:null)||Dr(e)}function hr(e){return $s(e)&&"fixed"!==or(e).position?e.offsetParent:null}function cr(e){for(var t=qs(e),i=hr(e);i&&lr(i)&&"static"===or(i).position;)i=hr(i);return i&&("html"===Ks(i)||"body"===Ks(i)&&"static"===or(i).position)?t:i||function(e){var t=/firefox/i.test(nr());if(/Trident/i.test(nr())&&$s(e)&&"fixed"===or(e).position)return null;var i=dr(e);for(Xs(i)&&(i=i.host);$s(i)&&["html","body"].indexOf(Ks(i))<0;){var n=or(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}function gr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Er(e,t,i){return er(e,tr(t,i))}function pr(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function fr(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}var Fr={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,s=e.options,r=i.elements.arrow,a=i.modifiersData.popperOffsets,u=Qs(i.placement),o=gr(u),l=[xs,Bs].indexOf(u)>=0?"height":"width";if(r&&a){var D=function(e,t){return pr("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:fr(e,Ms))}(s.padding,i),d=ar(r),h="y"===o?Is:xs,c="y"===o?ks:Bs,g=i.rects.reference[l]+i.rects.reference[o]-a[o]-i.rects.popper[l],E=a[o]-i.rects.reference[o],p=cr(r),f=p?"y"===o?p.clientHeight||0:p.clientWidth||0:0,F=g/2-E/2,m=D[h],C=f-d[l]-D[c],y=f/2-d[l]/2+F,S=Er(m,y,C),b=o;i.modifiersData[n]=((t={})[b]=S,t.centerOffset=S-y,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&ur(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function mr(e){return e.split("-")[1]}var Cr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yr(e){var t,i=e.popper,n=e.popperRect,s=e.placement,r=e.variation,a=e.offsets,u=e.position,o=e.gpuAcceleration,l=e.adaptive,D=e.roundOffsets,d=e.isFixed,h=a.x,c=void 0===h?0:h,g=a.y,E=void 0===g?0:g,p="function"==typeof D?D({x:c,y:E}):{x:c,y:E};c=p.x,E=p.y;var f=a.hasOwnProperty("x"),F=a.hasOwnProperty("y"),m=xs,C=Is,y=window;if(l){var S=cr(i),b="clientHeight",A="clientWidth";S===qs(i)&&"static"!==or(S=Dr(i)).position&&"absolute"===u&&(b="scrollHeight",A="scrollWidth"),(s===Is||(s===xs||s===Bs)&&r===Hs)&&(C=ks,E-=(d&&S===y&&y.visualViewport?y.visualViewport.height:S[b])-n.height,E*=o?1:-1),s!==xs&&(s!==Is&&s!==ks||r!==Hs)||(m=Bs,c-=(d&&S===y&&y.visualViewport?y.visualViewport.width:S[A])-n.width,c*=o?1:-1)}var T,N=Object.assign({position:u},l&&Cr),w=!0===D?function(e,t){var i=e.x,n=e.y,s=t.devicePixelRatio||1;return{x:ir(i*s)/s||0,y:ir(n*s)/s||0}}({x:c,y:E},qs(i)):{x:c,y:E};return c=w.x,E=w.y,o?Object.assign({},N,((T={})[C]=F?"0":"",T[m]=f?"0":"",T.transform=(y.devicePixelRatio||1)<=1?"translate("+c+"px, "+E+"px)":"translate3d("+c+"px, "+E+"px, 0)",T)):Object.assign({},N,((t={})[C]=F?E+"px":"",t[m]=f?c+"px":"",t.transform="",t))}var Sr={passive:!0},br={left:"right",right:"left",bottom:"top",top:"bottom"};function Ar(e){return e.replace(/left|right|bottom|top/g,(function(e){return br[e]}))}var Tr={start:"end",end:"start"};function Nr(e){return e.replace(/start|end/g,(function(e){return Tr[e]}))}function wr(e){var t=qs(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Lr(e){return rr(Dr(e)).left+wr(e).scrollLeft}function Or(e){var t=or(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function vr(e){return["html","body","#document"].indexOf(Ks(e))>=0?e.ownerDocument.body:$s(e)&&Or(e)?e:vr(dr(e))}function _r(e,t){var i;void 0===t&&(t=[]);var n=vr(e),s=n===(null==(i=e.ownerDocument)?void 0:i.body),r=qs(n),a=s?[r].concat(r.visualViewport||[],Or(n)?n:[]):n,u=t.concat(a);return s?u:u.concat(_r(dr(a)))}function Ir(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kr(e,t,i){return t===Gs?Ir(function(e,t){var i=qs(e),n=Dr(e),s=i.visualViewport,r=n.clientWidth,a=n.clientHeight,u=0,o=0;if(s){r=s.width,a=s.height;var l=sr();(l||!l&&"fixed"===t)&&(u=s.offsetLeft,o=s.offsetTop)}return{width:r,height:a,x:u+Lr(e),y:o}}(e,i)):Zs(t)?function(e,t){var i=rr(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):Ir(function(e){var t,i=Dr(e),n=wr(e),s=null==(t=e.ownerDocument)?void 0:t.body,r=er(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=er(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),u=-n.scrollLeft+Lr(e),o=-n.scrollTop;return"rtl"===or(s||i).direction&&(u+=er(i.clientWidth,s?s.clientWidth:0)-r),{width:r,height:a,x:u,y:o}}(Dr(e)))}function Br(e){var t,i=e.reference,n=e.element,s=e.placement,r=s?Qs(s):null,a=s?mr(s):null,u=i.x+i.width/2-n.width/2,o=i.y+i.height/2-n.height/2;switch(r){case Is:t={x:u,y:i.y-n.height};break;case ks:t={x:u,y:i.y+i.height};break;case Bs:t={x:i.x+i.width,y:o};break;case xs:t={x:i.x-n.width,y:o};break;default:t={x:i.x,y:i.y}}var l=r?gr(r):null;if(null!=l){var D="y"===l?"height":"width";switch(a){case zs:t[l]=t[l]-(i[D]/2-n[D]/2);break;case Hs:t[l]=t[l]+(i[D]/2-n[D]/2)}}return t}function xr(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=void 0===n?e.placement:n,r=i.strategy,a=void 0===r?e.strategy:r,u=i.boundary,o=void 0===u?Ps:u,l=i.rootBoundary,D=void 0===l?Gs:l,d=i.elementContext,h=void 0===d?Vs:d,c=i.altBoundary,g=void 0!==c&&c,E=i.padding,p=void 0===E?0:E,f=pr("number"!=typeof p?p:fr(p,Ms)),F=h===Vs?Ys:Vs,m=e.rects.popper,C=e.elements[g?F:h],y=function(e,t,i,n){var s="clippingParents"===t?function(e){var t=_r(dr(e)),i=["absolute","fixed"].indexOf(or(e).position)>=0&&$s(e)?cr(e):e;return Zs(i)?t.filter((function(e){return Zs(e)&&ur(e,i)&&"body"!==Ks(e)})):[]}(e):[].concat(t),r=[].concat(s,[i]),a=r[0],u=r.reduce((function(t,i){var s=kr(e,i,n);return t.top=er(s.top,t.top),t.right=tr(s.right,t.right),t.bottom=tr(s.bottom,t.bottom),t.left=er(s.left,t.left),t}),kr(e,a,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}(Zs(C)?C:C.contextElement||Dr(e.elements.popper),o,D,a),S=rr(e.elements.reference),b=Br({reference:S,element:m,strategy:"absolute",placement:s}),A=Ir(Object.assign({},m,b)),T=h===Vs?A:S,N={top:y.top-T.top+f.top,bottom:T.bottom-y.bottom+f.bottom,left:y.left-T.left+f.left,right:T.right-y.right+f.right},w=e.modifiersData.offset;if(h===Vs&&w){var L=w[s];Object.keys(N).forEach((function(e){var t=[Bs,ks].indexOf(e)>=0?1:-1,i=[Is,ks].indexOf(e)>=0?"y":"x";N[e]+=L[i]*t}))}return N}function Rr(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,r=i.rootBoundary,a=i.padding,u=i.flipVariations,o=i.allowedAutoPlacements,l=void 0===o?Us:o,D=mr(n),d=D?u?Ws:Ws.filter((function(e){return mr(e)===D})):Ms,h=d.filter((function(e){return l.indexOf(e)>=0}));0===h.length&&(h=d);var c=h.reduce((function(t,i){return t[i]=xr(e,{placement:i,boundary:s,rootBoundary:r,padding:a})[Qs(i)],t}),{});return Object.keys(c).sort((function(e,t){return c[e]-c[t]}))}var Mr={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var s=i.mainAxis,r=void 0===s||s,a=i.altAxis,u=void 0===a||a,o=i.fallbackPlacements,l=i.padding,D=i.boundary,d=i.rootBoundary,h=i.altBoundary,c=i.flipVariations,g=void 0===c||c,E=i.allowedAutoPlacements,p=t.options.placement,f=Qs(p),F=o||(f!==p&&g?function(e){if(Qs(e)===Rs)return[];var t=Ar(e);return[Nr(e),t,Nr(t)]}(p):[Ar(p)]),m=[p].concat(F).reduce((function(e,i){return e.concat(Qs(i)===Rs?Rr(t,{placement:i,boundary:D,rootBoundary:d,padding:l,flipVariations:g,allowedAutoPlacements:E}):i)}),[]),C=t.rects.reference,y=t.rects.popper,S=new Map,b=!0,A=m[0],T=0;T=0,v=O?"width":"height",_=xr(t,{placement:N,boundary:D,rootBoundary:d,altBoundary:h,padding:l}),I=O?L?Bs:xs:L?ks:Is;C[v]>y[v]&&(I=Ar(I));var k=Ar(I),B=[];if(r&&B.push(_[w]<=0),u&&B.push(_[I]<=0,_[k]<=0),B.every((function(e){return e}))){A=N,b=!1;break}S.set(N,B)}if(b)for(var x=function(e){var t=m.find((function(t){var i=S.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return A=t,"break"},R=g?3:1;R>0&&"break"!==x(R);R--);t.placement!==A&&(t.modifiersData[n]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function zr(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Hr(e){return[Is,Bs,ks,xs].some((function(t){return e[t]>=0}))}function Pr(e,t,i){void 0===i&&(i=!1);var n,s,r=$s(t),a=$s(t)&&function(e){var t=e.getBoundingClientRect(),i=ir(t.width)/e.offsetWidth||1,n=ir(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),u=Dr(t),o=rr(e,a,i),l={scrollLeft:0,scrollTop:0},D={x:0,y:0};return(r||!r&&!i)&&(("body"!==Ks(t)||Or(u))&&(l=(n=t)!==qs(n)&&$s(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:wr(n)),$s(t)?((D=rr(t,!0)).x+=t.clientLeft,D.y+=t.clientTop):u&&(D.x=Lr(u))),{x:o.left+l.scrollLeft-D.x,y:o.top+l.scrollTop-D.y,width:o.width,height:o.height}}function Gr(e){var t=new Map,i=new Set,n=[];function s(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&s(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||s(e)})),n}var Vr={placement:"bottom",modifiers:[],strategy:"absolute"};function Yr(){for(var e=arguments.length,t=new Array(e),i=0;i=0?-1:1,r="function"==typeof i?i(Object.assign({},t,{placement:e})):i,a=r[0],u=r[1];return a=a||0,u=(u||0)*s,[xs,Bs].indexOf(n)>=0?{x:u,y:a}:{x:a,y:u}}(i,t.rects,r),e}),{}),u=a[t.placement],o=u.x,l=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=o,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=a}},Mr,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.mainAxis,r=void 0===s||s,a=i.altAxis,u=void 0!==a&&a,o=i.boundary,l=i.rootBoundary,D=i.altBoundary,d=i.padding,h=i.tether,c=void 0===h||h,g=i.tetherOffset,E=void 0===g?0:g,p=xr(t,{boundary:o,rootBoundary:l,padding:d,altBoundary:D}),f=Qs(t.placement),F=mr(t.placement),m=!F,C=gr(f),y="x"===C?"y":"x",S=t.modifiersData.popperOffsets,b=t.rects.reference,A=t.rects.popper,T="function"==typeof E?E(Object.assign({},t.rects,{placement:t.placement})):E,N="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),w=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(S){if(r){var O,v="y"===C?Is:xs,_="y"===C?ks:Bs,I="y"===C?"height":"width",k=S[C],B=k+p[v],x=k-p[_],R=c?-A[I]/2:0,M=F===zs?b[I]:A[I],z=F===zs?-A[I]:-b[I],H=t.elements.arrow,P=c&&H?ar(H):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=G[v],Y=G[_],W=Er(0,b[I],P[I]),U=m?b[I]/2-R-W-V-N.mainAxis:M-W-V-N.mainAxis,j=m?-b[I]/2+R+W+Y+N.mainAxis:z+W+Y+N.mainAxis,K=t.elements.arrow&&cr(t.elements.arrow),q=K?"y"===C?K.clientTop||0:K.clientLeft||0:0,Z=null!=(O=null==w?void 0:w[C])?O:0,$=k+j-Z,X=Er(c?tr(B,k+U-Z-q):B,k,c?er(x,$):x);S[C]=X,L[C]=X-k}if(u){var J,Q="x"===C?Is:xs,ee="x"===C?ks:Bs,te=S[y],ie="y"===y?"height":"width",ne=te+p[Q],se=te-p[ee],re=-1!==[Is,xs].indexOf(f),ae=null!=(J=null==w?void 0:w[y])?J:0,ue=re?ne:te-b[ie]-A[ie]-ae+N.altAxis,oe=re?te+b[ie]+A[ie]-ae-N.altAxis:se,le=c&&re?function(e,t,i){var n=Er(e,t,i);return n>i?i:n}(ue,te,oe):Er(c?ue:ne,te,c?oe:se);S[y]=le,L[y]=le-te}t.modifiersData[n]=L}},requiresIfExists:["offset"]},Fr,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,a=xr(t,{elementContext:"reference"}),u=xr(t,{altBoundary:!0}),o=zr(a,n),l=zr(u,s,r),D=Hr(o),d=Hr(l);t.modifiersData[i]={referenceClippingOffsets:o,popperEscapeOffsets:l,isReferenceHidden:D,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":D,"data-popper-escaped":d})}}]});class Kr{owner;containerEl;limit;values;suggestions;selectedItem;constructor(e,t,i,n=30){this.owner=e,this.containerEl=t,this.limit=n,this.owner=e,this.containerEl=t,t.on("click",".suggestion-item",this.onSuggestionClick.bind(this)),t.on("mousemove",".suggestion-item",this.onSuggestionMouseover.bind(this)),i.register([],"ArrowUp",(e=>{if(!e.isComposing)return this.setSelectedItem(this.selectedItem-1,!0),!1})),i.register([],"ArrowDown",(e=>{if(!e.isComposing)return this.setSelectedItem(this.selectedItem+1,!0),!1})),i.register([],"Enter",(e=>{if(!e.isComposing)return this.useSelectedItem(e),!1}))}onSuggestionClick(e,t){e.preventDefault();const i=this.suggestions.indexOf(t);this.setSelectedItem(i,!1),this.useSelectedItem(e)}onSuggestionMouseover(e,t){const i=this.suggestions.indexOf(t);this.setSelectedItem(i,!1)}setSuggestions(e){this.containerEl.empty();const t=[];e.slice(0,this.limit).forEach((e=>{const i=this.containerEl.createDiv("suggestion-item");this.owner.renderSuggestion(e,i),t.push(i)})),this.values=e,this.suggestions=t,this.setSelectedItem(0,!1)}useSelectedItem(e){const t=this.values[this.selectedItem];t&&this.owner.selectSuggestion(t,e)}setSelectedItem(e,t){const i=(e%(n=this.suggestions.length)+n)%n;var n;const s=this.suggestions[this.selectedItem],r=this.suggestions[i];s?.removeClass("is-selected"),r?.addClass("is-selected"),this.selectedItem=i,t&&r.scrollIntoView(!1)}}class qr{app;inputEl;containerEl;popper;scope;suggestEl;suggest;constructor(e,t,i){this.app=e,this.inputEl=t,this.containerEl=i,this.scope=new n.Scope,this.suggestEl=i.createDiv("suggestion-container"),this.suggestEl.style.left="-1000px";const s=this.suggestEl.createDiv("suggestion");this.suggest=new Kr(this,s,this.scope),this.scope.register([],"Escape",this.close.bind(this)),this.inputEl.addEventListener("input",this.onInputChanged.bind(this)),this.inputEl.addEventListener("focus",this.onInputChanged.bind(this)),this.inputEl.addEventListener("blur",this.close.bind(this)),this.suggestEl.on("mousedown",".suggestion-container",(e=>{e.preventDefault()}))}onInputChanged(){const e=this.inputEl.value,t=this.getSuggestions(e);t&&t.length>0?(this.suggest.setSuggestions(t),this.open(this.containerEl,this.inputEl)):this.close()}open(e,t){this.app.keymap.pushScope(this.scope),e.appendChild(this.suggestEl),this.popper=jr(t,this.suggestEl,{placement:"bottom-start",modifiers:[{name:"sameWidth",enabled:!0,fn:({state:e,instance:t})=>{const i=`${e.rects.reference.width}px`;e.styles.popper.width!==i&&(e.styles.popper.width=i,t.update())},phase:"beforeWrite",requires:["computeStyles"]}]})}close(){this.app.keymap.popScope(this.scope),this.suggest.setSuggestions([]),this.popper&&this.popper.destroy(),this.suggestEl.detach()}}!function(e){e[e.TemplateFiles=0]="TemplateFiles",e[e.ScriptFiles=1]="ScriptFiles"}(Ur||(Ur={}));class Zr extends qr{plugin;inputStr="";constructor(e,t,i,n){super(e,t,n),this.plugin=i}getSuggestions(e){if(this.inputStr=e.trim(),""===e)return this.plugin.starred;const t=e.toLowerCase(),i=this.plugin.pages?.getPages().filter((e=>(!e.file||(this.plugin.settings.showAttachments||"md"===e.file.extension)&&!this.plugin.settings.excludeFilepaths.some((t=>e.path.startsWith(t))))&&(e.file||(this.plugin.settings.showFolderNodes||!e.path.startsWith("folder:"))&&(this.plugin.settings.showTagNodes||!e.path.startsWith("tag:")))&&e.name.toLowerCase().contains(t)));if(i.length>30)return i;const s=i.concat(this.plugin.pages?.getPages().filter((e=>!i.contains(e)&&(!e.file||(this.plugin.settings.showAttachments||"md"===e.file.extension)&&!this.plugin.settings.excludeFilepaths.some((t=>e.path.startsWith(t))))&&(e.file||(this.plugin.settings.showFolderNodes||!e.path.startsWith("folder:"))&&(this.plugin.settings.showTagNodes||!e.path.startsWith("tag:")))&&e.path.toLowerCase().contains(t))));if(s.length>30)return s;const r=n.prepareFuzzySearch(e);return s.concat(this.plugin.pages?.getPages().filter((e=>!e.isVirtual&&(!e.file||(this.plugin.settings.showAttachments||"md"===e.file.extension)&&!this.plugin.settings.excludeFilepaths.some((t=>e.path.startsWith(t))))&&(e.file||(this.plugin.settings.showFolderNodes||!e.path.startsWith("folder:"))&&(this.plugin.settings.showTagNodes||!e.path.startsWith("tag:")))&&!s.contains(e)&&r(e.path))).sort(((e,t)=>r(t.path).score-r(e.path).score)))}renderSuggestion(e,t){const i=""===this.inputStr?null:new RegExp(`(${this.inputStr})`,"gi");t.ariaLabel=e.path;const n=(e.isFolder||e.isTag?e.path.replace(/^folder:/,this.plugin.settings.folderNodeStyle.prefix??"📂").replace(/^tag:/,this.plugin.settings.tagNodeStyle.prefix??"🏷️"):i?e.name.match(i)?e.name:e.path:e.name).split("/"),s=n.pop(),r=n.join("/")+(n.length>0?"/":""),[a,u]=this.highlightSequence(r,s);t.innerHTML=`${a}${u}`}highlightSequence(e,t){let i=-1;const n=(e,t)=>{let n=0,s="";return t.split(" ").forEach(((t,r)=>{const a=e.toLowerCase().indexOf(t.toLowerCase(),n);-1!==a&&(s+=e.substring(n,a)+`${t}`,n=a+t.length,i=r)})),s+=e.substring(n),s};let s=this.inputStr;const r=n(e,s);s=s.split(" ").slice(i+1).join(" ");const a=n(t,s);return s=s.split(" ").slice(i+1).join(" "),[r,a]}selectSuggestion(e){this.inputEl.value=e.path,this.inputEl.trigger("input"),this.close()}}class $r{multiple;onChange;singleSelectTextSpanRef;checkboxRef;label="";value;optionRef;selected=!1;constructor(e,t,i,n){this.value=e,this.label=t,this.multiple=i,this.onChange=n,this.createOptionElement(),this.createListeners()}select(e=!0){this.selected=!0,this.setAttribute(),e&&this.onChange(this)}deselect(e=!0){this.selected=!1,this.setAttribute(),e&&this.onChange(this)}createOptionElement(){const e=document.createElement("div");e.classList.add("option"),this.singleSelectTextSpanRef=document.createElement("span"),this.singleSelectTextSpanRef.classList.add("option-text"),this.singleSelectTextSpanRef.innerText=this.label,e.appendChild(this.singleSelectTextSpanRef),e.appendChild(this.createCheckbox()),this.optionRef=e}createCheckbox(){const e=document.createElement("label");e.classList.add("checkbox-wrapper");const t=document.createElement("span");t.classList.add("checkbox-text"),t.innerText=this.label;const i=document.createElement("input");i.setAttribute("type","checkbox"),this.checkboxRef=i;const n=document.createElement("span");return n.classList.add("checkbox-checkmark"),e.appendChild(t),e.appendChild(i),e.appendChild(n),e}setAttribute(){this.multiple?this.selected?this.checkboxRef.setAttribute("checked","checked"):this.checkboxRef.removeAttribute("checked"):this.selected?this.singleSelectTextSpanRef.classList.add("selected"):this.singleSelectTextSpanRef.classList.remove("selected")}createListeners(){this.multiple?this.checkboxRef.addEventListener("change",(()=>{this.selected=this.checkboxRef.checked,this.onChange(this)})):this.singleSelectTextSpanRef.addEventListener("click",(()=>{this.selected=!0,this.onChange(this)}))}}class Xr{config;origin;configOptions;multiple;singularNominativeLabel;pluralNominativeLabel;pluralGenitiveLabel;placeholder;headerLabel;onDropdownOpen;onDropdownClose;onSelectionChange;selectHeaderRef;selectWrapperRef;selectedValueRef;optionsWrapperRef;options=[];dropdownOpened=!1;destroyed=!1;selected;rendered=!1;documentClickDropdownToggle=e=>{this.selectWrapperRef.contains(e.target)||this.handleDropdownToggle(!1,this.dropdownOpened)};constructor(e){if(this.config=e,this.assignConfig(),this.setOrigin(),!this.origin)throw"You have to pass origin element!";this.init()}init(){this.destroyed=!1,this.dropdownOpened=!1,this.createSelect(),this.createListeners()}destroy(){this.destroyed=!0,this.rendered=!1,this.hide(),document.removeEventListener("click",this.documentClickDropdownToggle),this.selectWrapperRef.cloneNode(!0),this.origin=null,this.selectHeaderRef=null,this.selectWrapperRef=null,this.selectedValueRef=null,this.optionsWrapperRef=null,this.options=[]}reset(){this.options.forEach((e=>e.deselect(!1))),this.updateSelection()}hide(){this.origin.innerHTML="",this.rendered=!1}render(){if(this.destroyed)throw"But you destroyed me... :(";if(this.origin.innerText.trim())throw"Hey! I am rendered already!";this.origin.appendChild(this.selectWrapperRef),this.rendered=!0,this.selectHeaderRef&&this.origin.prepend(this.selectHeaderRef)}assignConfig(){this.origin=this.config.origin,this.configOptions=this.config.options,this.multiple=this.config.multiple??!0,this.singularNominativeLabel=this.config.singularNominativeLabel,this.pluralNominativeLabel=this.config.pluralNominativeLabel,this.pluralGenitiveLabel=this.config.pluralGenitiveLabel,this.placeholder=this.config.placeholder??"",this.headerLabel=this.config.headerLabel,this.selected=this.config.selected,this.onDropdownOpen=this.config.onDropdownOpen,this.onDropdownClose=this.config.onDropdownClose,this.onSelectionChange=this.config.onSelectionChange}setOrigin(){this.origin&&this.origin.classList.add("multiselect-container")}createHeader(){this.headerLabel&&(this.selectHeaderRef=document.createElement("div"),this.selectHeaderRef.classList.add("multiselect-header"),this.selectHeaderRef.innerText=this.headerLabel)}createSelect(){this.selectWrapperRef=document.createElement("div"),this.selectWrapperRef.classList.add("multiselect-wrapper"),this.multiple||this.selectWrapperRef.classList.add("single-select"),this.selectedValueRef=document.createElement("div"),this.selectedValueRef.classList.add("selected-value"),this.selectWrapperRef.appendChild(this.selectedValueRef),this.optionsWrapperRef=document.createElement("div"),this.optionsWrapperRef.classList.add("options-wrapper"),this.configOptions.forEach((e=>{const t=new $r(e.value,e.label,this.multiple,this.onSelectChange.bind(this));this.selected?.includes(e.value)&&t.select(!1),this.options.push(t),this.optionsWrapperRef.appendChild(t.optionRef)})),this.updateSelection(),this.selectWrapperRef.appendChild(this.optionsWrapperRef),this.createHeader(),this.render()}createListeners(){this.selectWrapperRef.addEventListener("click",(e=>{this.selectWrapperRef.contains(e.target)&&!this.optionsWrapperRef.contains(e.target)&&this.handleDropdownToggle(!this.dropdownOpened)})),document.addEventListener("click",this.documentClickDropdownToggle)}handleDropdownToggle(e,t=!0){this.dropdownOpened=e,this.dropdownOpened?(this.selectWrapperRef.classList.add("opened"),this.onDropdownOpen&&t&&this.onDropdownOpen()):(this.selectWrapperRef.classList.remove("opened"),this.onDropdownClose&&t&&this.onDropdownClose(this.selected))}onSelectChange(e){this.multiple||(this.options.forEach((e=>e.deselect(!1))),e.select(!1)),this.updateSelection(),this.onSelectionChange&&this.onSelectionChange(this.selected),this.multiple||this.handleDropdownToggle(!1)}updateSelection(){this.selected=this.options.filter((e=>!!e.selected)).map((e=>e.value));const e=this.options.filter((e=>!!e.selected)).map((e=>e.label));let t=this.placeholder;1===e.length?t=e[0]:e.length>1&&(t=`${e.length} ${this.transformPluralLabel(e.length)}`),this.selectedValueRef.innerText=t}transformPluralLabel(e){return 1===e?this.singularNominativeLabel??"items":e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?this.pluralNominativeLabel??"items":this.pluralGenitiveLabel??"items"}}class Jr{plugin;selectedLinks=new Set;selectedTags=new Set;filterDiv;isOpen=!1;selectedItems;constructor(e,t){this.plugin=e,this.filterDiv=t.createDiv({attr:{id:"filter"}})}render(){if(this.isOpen)return;if(this.filterDiv.empty(),!this.plugin.scene)return;const e=Array.from(this.selectedTags);this.selectedLinks.forEach((t=>e.push("link::"+t)));const t=[],i=new Set(this.selectedLinks.keys());this.plugin.scene.links.links.forEach((e=>{e.hierarchyDefinition?.split(",").map((e=>e.trim())).forEach((e=>i.add(e))),e.hierarchyDefinition||(e.isInferred?i.add("inferred-link"):i.add("normal-link"))})),i.forEach((e=>t.push({label:e,value:"link::"+e})));const n=new Set(this.selectedTags.keys());this.plugin.scene.nodesMap.forEach((e=>{e.page.primaryStyleTag&&n.add(e.page.primaryStyleTag)})),n.forEach((e=>t.push({label:e,value:e})));const s=new Xr({origin:this.filterDiv,placeholder:"filter links and tags",options:t.sort(((e,t)=>e.label>t.label?1:-1)),selected:e,onDropdownOpen:()=>{this.isOpen=!0,this.selectedItems=s.selected},onSelectionChange:e=>{this.selectedLinks.clear(),this.selectedTags.clear(),e.forEach((e=>{e.startsWith("link::")?this.selectedLinks.add(e.substring(6)):this.selectedTags.add(e)})),this.plugin.scene?.reRender(!1)},onDropdownClose:e=>{this.isOpen=!1,e!==this.selectedItems&&this.plugin.scene?.reRender(!1)}})}}const Qr=e=>e.createDiv({cls:"excalibrain-toolspanel-divider"});class ea{contentEl;plugin;wrapperDiv;buttons=[];linkTagFilter;searchElement;constructor(e,t){this.contentEl=e,this.plugin=t,e.addClass("excalibrain-contentEl"),this.wrapperDiv=this.contentEl.createDiv({cls:"excalibrain-toolspanel-wrapper"});const i=this.wrapperDiv.createDiv({cls:"excalibrain-dropdown-wrapper"}),s=i.createEl("input",{type:"text",cls:"excalibrain-searchinput"});s.ariaLabel=z("SEARCH_IN_VAULT"),s.oninput=()=>{const e=this.plugin.pages.get(s.value);e&&this.plugin.scene?.renderGraphForPath(e.path)},s.onblur=()=>{s.value=""},new Zr(this.plugin.app,s,this.plugin,e),this.searchElement=s,this.linkTagFilter=new Jr(t,i),this.linkTagFilter.render();const r=this.wrapperDiv.createDiv({cls:"excalibrain-buttons"});this.buttons.push(new _s({plugin:this.plugin,getVal:()=>!1,setVal:e=>{const t=this.plugin.EA.getExcalidrawAPI().getSceneElements(),i=this.plugin.EA.getExcalidrawAPI().getAppState(),n=this.plugin.EA;return n.reset(),n.canvas.viewBackgroundColor=i.viewBackgroundColor,n.canvas.theme="light",t.forEach((e=>n.elementsDict[e.id]=e)),n.create({filename:`ExcaliBrain Snapshot - ${p(this.plugin.scene.centralPagePath).basename}`,onNewPane:!0}),!1},wrapper:r,options:{display:"✏",icon:n.getIcon("lucide-pencil").outerHTML,tooltip:z("OPEN_DRAWING")},updateIndex:!0})),Qr(r);const a=new _s({plugin:this.plugin,getVal:()=>!1,setVal:e=>(this.plugin.scene.renderGraphForPath(this.plugin.navigationHistory.getPrevious()),this.rerender(),!1),isEnabled:()=>this.plugin.navigationHistory.hasPrevious(),wrapper:r,options:{display:"<",icon:n.getIcon("lucide-arrow-big-left").outerHTML,tooltip:z("NAVIGATE_BACK")},updateIndex:!1,shouldRerenderOnToggle:!1});this.buttons.push(a);const u=new _s({plugin:this.plugin,getVal:()=>!1,setVal:e=>(this.plugin.scene.renderGraphForPath(this.plugin.navigationHistory.getNext()),this.rerender(),!1),isEnabled:()=>this.plugin.navigationHistory.hasNext(),wrapper:r,options:{display:">",icon:n.getIcon("lucide-arrow-big-right").outerHTML,tooltip:z("NAVIGATE_FORWARD")},updateIndex:!1,shouldRerenderOnToggle:!1});this.buttons.push(u),this.plugin.navigationHistory.setNavigateButtons([a,u]),this.buttons.push(new _s({plugin:this.plugin,getVal:()=>!1,setVal:e=>!1,wrapper:r,options:{display:"🔄",icon:n.getIcon("lucide-refresh-cw").outerHTML,tooltip:z("REFRESH_VIEW")},updateIndex:!0}));const o=new _s({plugin:this.plugin,getVal:()=>this.plugin.scene.pinLeaf,setVal:e=>{if(this.plugin.scene.pinLeaf=e,e){const e=[];this.plugin.app.workspace.iterateAllLeaves((t=>{("empty"===t.view?.getViewType()||t.view instanceof n.EditableFileView&&t!==this.plugin.scene?.leaf)&&e.push(t)})),e.sort(((e,t)=>e.activeTime-t.activeTime>0?-1:1)),e.length>0&&(this.plugin.scene.centralLeaf=e[0])}return!0},isEnabled:()=>!!this.plugin.settings.autoOpenCentralDocument&&(this.plugin.scene&&!this.plugin.scene.isCentralLeafStillThere()&&(this.plugin.scene.pinLeaf=!1),!0),wrapper:r,options:{display:"📌",icon:{on:n.getIcon("lucide-pin").outerHTML,off:n.getIcon("lucide-pin-off").outerHTML},tooltip:z("PIN_LEAF")},updateIndex:!1});this.buttons.push(o),this.buttons.push(new _s({plugin:this.plugin,getVal:()=>this.plugin.settings.autoOpenCentralDocument,setVal:e=>(this.plugin.settings.autoOpenCentralDocument=e,o.updateButton(),!0),wrapper:r,options:{display:"🔌",icon:{on:'',off:''},tooltip:z("AUTO_OPEN_DOCUMENT")},updateIndex:!1})),Qr(r),this.buttons.push(new _s({plugin:this.plugin,getVal:()=>this.plugin.settings.showAttachments,setVal:e=>(this.plugin.settings.showAttachments=e,!0),wrapper:r,options:{display:"📎",icon:n.getIcon("lucide-paperclip").outerHTML,tooltip:z("SHOW_HIDE_ATTACHMENTS")},updateIndex:!0})),this.buttons.push(new _s({plugin:this.plugin,getVal:()=>this.plugin.settings.showVirtualNodes,setVal:e=>(this.plugin.settings.showVirtualNodes=e,!0),wrapper:r,options:{display:"∅",icon:n.getIcon("lucide-minus-circle").outerHTML,tooltip:z("SHOW_HIDE_VIRTUAL")},updateIndex:!1})),this.buttons.push(new _s({plugin:this.plugin,getVal:()=>this.plugin.settings.showInferredNodes,setVal:e=>(this.plugin.settings.showInferredNodes=e,!0),wrapper:r,options:{display:"🤔",icon:n.getIcon("lucide-git-pull-request-draft").outerHTML,tooltip:z("SHOW_HIDE_INFERRED")},updateIndex:!0})),this.buttons.push(new _s({plugin:this.plugin,getVal:()=>this.plugin.settings.showPageNodes,setVal:e=>(this.plugin.settings.showPageNodes=e,!0),wrapper:r,options:{display:"📄",icon:n.getIcon("lucide-file-text").outerHTML,tooltip:z("SHOW_HIDE_PAGES")},updateIndex:!0})),this.buttons.push(new _s({plugin:this.plugin,getVal:()=>this.plugin.settings.renderAlias,setVal:e=>(this.plugin.settings.renderAlias=e,!0),wrapper:r,options:{display:"🧥",icon:n.getIcon("lucide-venetian-mask").outerHTML,tooltip:z("SHOW_HIDE_ALIAS")},updateIndex:!1})),this.buttons.push(new _s({plugin:this.plugin,getVal:()=>this.plugin.settings.showFolderNodes,setVal:e=>(this.plugin.settings.showFolderNodes=e,!0),wrapper:r,options:{display:"📂",icon:n.getIcon("lucide-folder").outerHTML,tooltip:z("SHOW_HIDE_FOLDER")},updateIndex:!0})),this.buttons.push(new _s({plugin:this.plugin,getVal:()=>this.plugin.settings.showTagNodes,setVal:e=>(this.plugin.settings.showTagNodes=e,!0),wrapper:r,options:{display:"#",icon:n.getIcon("lucide-tag").outerHTML,tooltip:z("SHOW_HIDE_TAG")},updateIndex:!1})),this.buttons.push(new _s({plugin:this.plugin,getVal:()=>this.plugin.settings.showURLNodes,setVal:e=>(this.plugin.settings.showURLNodes=e,!0),wrapper:r,options:{display:"🌐",icon:n.getIcon("lucide-globe").outerHTML,tooltip:z("SHOW_HIDE_URLS")},updateIndex:!1})),this.buttons.push(new _s({plugin:this.plugin,getVal:()=>this.plugin.settings.renderSiblings,setVal:e=>(this.plugin.settings.renderSiblings=e,!0),wrapper:r,options:{display:"👨‍👩‍👧‍👦",icon:n.getIcon("lucide-grip").outerHTML,tooltip:z("SHOW_HIDE_SIBLINGS")},updateIndex:!1})),this.buttons.push(new _s({plugin:this.plugin,getVal:()=>this.plugin.settings.embedCentralNode,setVal:e=>(this.plugin.settings.embedCentralNode=e,this.plugin.settings.toggleEmbedTogglesAutoOpen&&(this.plugin.settings.autoOpenCentralDocument=!e),!0),wrapper:r,options:{display:"⏹️",icon:n.getIcon("lucide-code").outerHTML,tooltip:z("SHOW_HIDE_EMBEDDEDCENTRAL")},updateIndex:!1})),this.contentEl.appendChild(this.wrapperDiv)}rerender(){this.buttons.forEach((e=>{e instanceof _s&&e.updateButton()})),this.linkTagFilter.render()}terminate(){if(this.contentEl&&this.contentEl.removeClass("excalibrain-contentEl"),this.wrapperDiv){try{this.contentEl?.removeChild(this.wrapperDiv)}catch{}this.wrapperDiv=null}}}class ta{contentEl;plugin;wrapperDiv;constructor(e,t){this.contentEl=e,this.plugin=t,this.wrapperDiv=this.contentEl.createDiv({cls:"excalibrain-history-wrapper"}),this.rerender(),this.contentEl.appendChild(this.wrapperDiv)}rerender(){this.wrapperDiv.empty();const e=this.wrapperDiv.createDiv({cls:"excalibrain-history-container"}),t=this.plugin.navigationHistory.get();for(let i=t.length-1;i>=0;i--){i!==t.length-1&&e.createDiv({text:"•",cls:"excalibrain-history-divider"});let n="",s="";const r=this.plugin.pages.get(t[i]);if(!r)return;const a=r.path.startsWith("folder:")?this.plugin.settings.folderNodeStyle:r.path.startsWith("tag:")?this.plugin.settings.tagNodeStyle:{...this.plugin.settings.baseNodeStyle,...h(D(r.dvPage,this.plugin.settings),this.plugin.settings)};r.file?(n=a.prefix+r.getTitle(),s=r.path):(n=a.prefix+r.name,r.path,s=r.path),e.createDiv({text:n,cls:"excalibrain-history-item"},(e=>{e.onclick=()=>this.plugin.scene?.renderGraphForPath(s)}))}}terminate(){if(this.wrapperDiv){try{this.contentEl?.removeChild(this.wrapperDiv)}catch{}this.wrapperDiv=null}}}class ia{ea;plugin;app;leaf;centralPagePath;centralPageFile;_centralLeaf;textSize;nodeWidth;nodeHeight;minLinkLength=100;disregardLeafChange=!1;terminated;nodesMap=new Map;links;layouts=[];removeEH;removeTimer;removeOnCreate;removeOnModify;removeOnDelete;removeOnRename;blockUpdateTimer=!1;toolsPanel;historyPanel;vaultFileChanged=!1;pinLeaf=!1;focusSearchAfterInitiation=!0;zoomToFitOnNextBrainLeafActivate=!1;rootNode;constructor(e,t,i){this.ea=e.EA,this.plugin=e,this.app=e.app,this.leaf=i??this.app.workspace.getLeaf(t),this.terminated=!1,this.links=new vs(e)}set centralLeaf(e){this._centralLeaf=e}get centralLeaf(){return this.plugin.settings.autoOpenCentralDocument&&this._centralLeaf&&this.app.workspace.getLeafById(this._centralLeaf.id)?this._centralLeaf:null}async initialize(e){this.focusSearchAfterInitiation=e,await this.plugin.loadSettings(),this.leaf?.view&&(this.toolsPanel=new ea(this.leaf.view.contentEl.querySelector(".excalidraw"),this.plugin),this.initializeScene())}isActive(){return!this.terminated&&this.app.workspace.getLeafById(this.leaf?.id)}async reRender(e=!0){if(!this.isActive())return;if(!this.centralPagePath)return;e&&(this.vaultFileChanged=!1,await this.plugin.createIndex()),E(this.ea);const t=this.plugin.pages.get(this.centralPagePath);t?.file&&!(t.isFolder||t.isTag||t.isVirtual)&&this.plugin.settings.autoOpenCentralDocument&&(this.centralLeaf?this.centralLeaf.view?.file?.path!==t.file.path&&this.centralLeaf.openFile(t.file,{active:!1}):this.ea.openFileInNewOrAdjacentLeaf(t.file)),await this.render(this.plugin.settings.embedCentralNode)}getCentralPage(){let e=this.plugin.pages.get(this.centralPagePath);return!e&&this.centralPageFile&&(this.centralPagePath=this.centralPageFile.path,e=this.plugin.pages.get(this.centralPageFile.path)),e}longestTitle(e,t=20){const i=[0];for(let n=0;n{if(u){for(await r.vault.modify(a,ws);a instanceof n.TFile&&!e.isExcalidrawFile(a)&&s++<10;)await sleep(50);ia.openExcalidrawLeaf(e,t,i)}else new n.Notice("Could not start ExcaliBrain. Please change the ExcaliBrain file path in plugin settings.")}));else{if(i||"empty"!==(i=r.workspace.getLeaf(!1)).getViewState().type&&(i=e.getLeaf(i,"new-pane")),t.defaultAlwaysOnTop&&i&&e.DEVICE.isDesktop){const e=i.view?.ownerWindow;e&&e!==window&&!e.electronWindow?.isMaximized()&&e.electronWindow.setAlwaysOnTop(!0)}await i.openFile(a)}}else new n.Notice(`Please check settings. ExcaliBrain path (${t.excalibrainFilepath}) points to a folder, not a file`)}async initializeScene(){this.disregardLeafChange=!1;const e=this.ea,t=this.plugin.settings;let i=0;for(e.clear(),e.setView(this.leaf.view),e.copyViewElementsToEAforEditing(e.getViewElements()),e.getElements().forEach((e=>e.isDeleted=!0));!e.targetView.excalidrawAPI&&i++<10;)await sleep(50);if(!e.targetView.excalidrawAPI)return void new n.Notice("Error initializing Excalidraw view");const s=e.getExcalidrawAPI();this.ea.registerThisAsViewEA(),this.ea.targetView.semaphores.saving=!0,s.setMobileModeAllowed(!1),this.setBaseLayoutParams(),(()=>{s.updateScene({appState:{viewModeEnabled:!0,activeTool:{lastActiveToolBeforeEraser:null,locked:!1,type:"selection"},theme:"light",viewBackgroundColor:this.plugin.settings.backgroundColor}})})(),e.style.strokeColor=t.baseNodeStyle.textColor,e.addText(0,0,"🚀 To get started\nselect a document using the search in the top left or\nopen a document in another pane.\n\n✨ For the best experience enable 'Open in adjacent pane'\nin Excalidraw settings under 'Links and Transclusion'.\n\n⚠ ExcaliBrain may need to wait for DataView to initialize its index.\nThis can take up to a few minutes after starting Obsidian.",{textAlign:"center"}),e.addElementsToView(!1,!1).then((()=>{e.targetView.clearDirty()})),(async()=>{this.plugin.settings.allowAutozoom&&setTimeout((()=>s.zoomToFit(null,this.plugin.settings.maxZoom,.15)),100),e.targetView.linksAlwaysOpenInANewPane=!0,e.targetView.allowFrameButtonsInViewMode=!0,await this.addEventHandler(),this.historyPanel=new ta(this.leaf.view.contentEl.querySelector(".excalidraw"),this.plugin),new n.Notice("ExcaliBrain On")})()}setBaseLayoutParams(){const e=this.ea,t=this.plugin.settings,i={...t.baseNodeStyle,...t.centralNodeStyle};e.style.fontFamily=t.baseLinkStyle.fontFamily,e.style.fontSize=t.baseLinkStyle.fontSize,this.minLinkLength=e.measureText("m".repeat(t.minLinkLength)).width,e.style.fontFamily=i.fontFamily,e.style.fontSize=i.fontSize,this.textSize=e.measureText("m".repeat(i.maxLabelLength)),this.nodeWidth=this.textSize.width+2*i.padding,this.nodeHeight=2*(this.textSize.height+2*i.padding)}addNodes(t){t.neighbours.forEach((i=>{if(i.page.path===this.ea.targetView.file.path)return;i.page.maxLabelLength=t.layout.spec.maxLabelLength;const n=new V({ea:this.ea,page:i.page,isInferred:i.relationType===e.INFERRED,isCentral:t.isCentral,isSibling:t.isSibling,friendGateOnLeft:t.friendGateOnLeft});this.nodesMap.set(i.page.path,n),t.layout.nodes.push(n)}))}getNeighbors(e){const t=this.plugin.settings,i=e.getParents().filter((i=>!(i.page.path===e.path||t.excludeFilepaths.some((e=>i.page.path.startsWith(e)))||i.page.primaryStyleTag&&this.toolsPanel.linkTagFilter.selectedTags.has(i.page.primaryStyleTag)))).slice(0,t.maxItemCount),n=i.map((e=>e.page.path)),s=e.getChildren().filter((i=>!(i.page.path===e.path||t.excludeFilepaths.some((e=>i.page.path.startsWith(e)))||i.page.primaryStyleTag&&this.toolsPanel.linkTagFilter.selectedTags.has(i.page.primaryStyleTag)))).slice(0,t.maxItemCount),r=e.getLeftFriends().concat(e.getPreviousFriends()).filter((i=>!(i.page.path===e.path||t.excludeFilepaths.some((e=>i.page.path.startsWith(e)))||i.page.primaryStyleTag&&this.toolsPanel.linkTagFilter.selectedTags.has(i.page.primaryStyleTag)))).slice(0,t.maxItemCount),a=e.getRightFriends().concat(e.getNextFriends()).filter((i=>!(i.page.path===e.path||t.excludeFilepaths.some((e=>i.page.path.startsWith(e)))||i.page.primaryStyleTag&&this.toolsPanel.linkTagFilter.selectedTags.has(i.page.primaryStyleTag)))).slice(0,t.maxItemCount),u=e.getSiblings().filter((n=>!(i.some((e=>e.page.path===n.page.path))||s.some((e=>e.page.path===n.page.path))||r.some((e=>e.page.path===n.page.path))||a.some((e=>e.page.path===n.page.path))||t.excludeFilepaths.some((e=>n.page.path.startsWith(e))))&&n.page.path!==e.path)),o=u.filter((e=>e.page.getParents().map((e=>e.page.path)).some((e=>n.includes(e)))&&(!e.page.primaryStyleTag||!this.toolsPanel.linkTagFilter.selectedTags.has(e.page.primaryStyleTag)))).slice(0,t.maxItemCount);return{parents:i,children:s,leftFriends:r,rightFriends:a,siblings:o}}calculateAreas({parents:e,parentCols:t,parentWidth:i,children:n,childrenCols:s,childWidth:r,leftFriends:a,leftFriendCols:u,leftFriendWidth:o,rightFriends:l,rightFriendCols:D,rightFriendWidth:d,siblings:h,siblingsCols:c,siblingsNodeWidth:g,siblingsNodeHeight:E}){return{leftFriendsArea:{width:a.length>0?u*o:0,height:a.length>0?Math.ceil(a.length/u)*this.nodeHeight:0},rightFriendsArea:{width:l.length>0?D*d:0,height:l.length>0?Math.ceil(l.length/D)*this.nodeHeight:0},parentsArea:{width:e.length>0?t*i:0,height:e.length>0?Math.ceil(e.length/t)*this.nodeHeight:0},childrenArea:{width:n.length>0?s*r:0,height:n.length>0?Math.ceil(n.length/s)*this.nodeHeight:0},siblingsArea:{width:h.length>0?g*c:0,height:h.length>0?Math.ceil(h.length/c)*E:0}}}calculateLayoutParams({centralPage:e,parents:t,children:i,leftFriends:n,rightFriends:s,siblings:r,isCenterEmbedded:a,centerEmbedHeight:u,centerEmbedWidth:o,style:l,rootNode:D}){const d=this.plugin.settings,h=this.ea,c=d.baseNodeStyle,g=d.compactView,E=1.166*d.compactingFactor,p=.833*d.compactingFactor,f=this.minLinkLength*p*2,F=n.length>=10,m=s.length>=10,C=this.ea.measureText("mi3L".repeat(1)),y=.25*C.width,S=C.height;this.nodeWidth=c.maxLabelLength*y+2*c.padding,this.nodeHeight=E*(S+2*c.padding);const b=6*c.padding,A=Math.max(D.prefix.length,2),T=h.targetView.containerEl,N=1/((T.innerHeight-150)/T.innerWidth),w=Math.min(N,1),L=Math.round(l.maxLabelLength*w),O=Math.max(7,L),v=r.length>=20?3:r.length>=10?2:1,_=g?i.length<=12?[1,1,2,3,3,3,3,2,2,3,3,2,2][i.length]:3:i.length<=12?[1,1,2,3,3,3,3,4,4,5,5,4,4][i.length]:5,I=g?t.length<2?1:2:t.length<5?[1,1,2,3,2][t.length]:3,k=a?Math.ceil(n.length*this.nodeHeight/u):F?2:1,B=a?Math.ceil(s.length*this.nodeHeight/u):m?2:1,x=e.getTitle(),R=h.measureText(x.repeat(1)),M=[...(new Intl.Segmenter).segment(x)].length,z=Math.min(M+A,l.maxLabelLength),H=R.width+2*l.padding,P=a?u+2*this.nodeHeight:4*this.nodeHeight,G=Math.min(this.longestTitle(t)+A,O),V=p*(G*y+b),Y=Math.min(this.longestTitle(i,20)+A,O),W=p*(Y*y+b),U=Math.min(this.longestTitle(n)+A,O),j=p*(U*y+b),K=Math.min(this.longestTitle(s)+A,O),q=p*(K*y+b),Z=d.siblingNodeStyle,$=Z.padding??d.baseNodeStyle.padding,X=Math.min(this.longestTitle(r,20)+A,O);h.style.fontFamily=Z.fontFamily,h.style.fontSize=Z.fontSize;const J=h.measureText("m".repeat(X+3)),Q=p*(J.width+3*$),ee=E*(J.height+2*$),{parentsArea:te,childrenArea:ie,leftFriendsArea:ne,rightFriendsArea:se,siblingsArea:re}=this.calculateAreas({parents:t,parentCols:I,parentWidth:V,children:i,childrenCols:_,childWidth:W,leftFriends:n,leftFriendCols:k,leftFriendWidth:j,rightFriends:s,rightFriendCols:B,rightFriendWidth:q,siblings:r,siblingsCols:v,siblingsNodeWidth:Q,siblingsNodeHeight:ee}),ae=.5*(te.height+Math.max(ne.height,se.height,P))+b;return{rootNodeDimensions:R,rootWidth:H,rootNodeLength:z,childrenOrigoY:.5*(ie.height+Math.max(ne.height,se.height,P))+b,childWidth:W,childLength:Y,childrenCols:_,parentsOrigoY:ae,parentWidth:V,parentLabelLength:G,parentCols:I,leftFriendOrigoX:Math.max((a?o+8.4:H+f)+ne.width,ie.width-ne.width,te.width-ne.width)/2+b,leftFriendWidth:j,leftFriendLength:U,leftFriendCols:k,rightFriendOrigoX:Math.max((a?o+8.4:H+f)+se.width,ie.width-se.width,te.width-se.width)/2+b,rightFriendWidth:q,rightFriendLength:K,rightFriendCols:B,siblingsOrigoX:(Math.max(te.width,a?o:H)+re.width)/2+3*$*(1+v),siblingsOrigoY:Math.max(ae,(re.height+se.height)/2)+this.nodeHeight,siblingsNodeWidth:Q,siblingsNodeHeight:ee,siblingsLabelLength:X,siblingsCols:v}}async render(e=!1){if(this.historyPanel&&this.historyPanel.rerender(),!this.centralPagePath)return;const i=this.plugin.settings;let n=this.plugin.pages.get(this.centralPagePath);if(!n){if(this.centralPagePath=this.plugin.lowercasePathMap.get(this.centralPagePath.toLowerCase()),n=this.plugin.pages.get(this.centralPagePath),!n)return;this.centralPageFile=n.file}const s=this.ea;e=e&&Boolean(this.rootNode)&&i.embedCentralNode&&(n.file&&f(n.file,s)||n.isURL),this.zoomToFitOnNextBrainLeafActivate=!s.targetView.containerEl.isShown(),s.clear(),s.copyViewElementsToEAforEditing(s.getViewElements()),s.getElements().filter((t=>!e||!this.rootNode.embeddedElementIds.includes(t.id))).forEach((e=>e.isDeleted=!0)),s.style.verticalAlign="middle";const{parents:r,children:a,leftFriends:u,rightFriends:o,siblings:l}=this.getNeighbors(n);this.nodesMap=new Map,this.links=new vs(this.plugin),this.layouts=[];const D=i.embedCentralNode&&!n.isVirtual&&!n.isFolder&&!n.isTag,d=i.centerEmbedWidth,h=i.centerEmbedHeight,c={...i.baseNodeStyle,...i.centralNodeStyle},g=i.baseNodeStyle;s.style.fontFamily=g.fontFamily,s.style.fontSize=g.fontSize,this.rootNode=new V({ea:s,page:n,isInferred:!1,isCentral:!0,isSibling:!1,friendGateOnLeft:!0,isEmbeded:D,embeddedElementIds:e?this.rootNode?.embeddedElementIds:void 0});const{rootNodeDimensions:E,rootWidth:p,rootNodeLength:F,childrenOrigoY:m,childWidth:C,childLength:y,childrenCols:S,parentsOrigoY:b,parentWidth:A,parentLabelLength:T,parentCols:N,leftFriendOrigoX:w,leftFriendWidth:L,leftFriendLength:O,leftFriendCols:v,rightFriendOrigoX:_,rightFriendWidth:I,rightFriendLength:k,rightFriendCols:B,siblingsOrigoX:x,siblingsOrigoY:R,siblingsNodeWidth:M,siblingsNodeHeight:z,siblingsLabelLength:H,siblingsCols:P}=this.calculateLayoutParams({centralPage:n,parents:r,children:a,leftFriends:u,rightFriends:o,siblings:l,isCenterEmbedded:D,centerEmbedHeight:h,centerEmbedWidth:d,style:c,rootNode:this.rootNode}),G=new Ls({origoX:0,origoY:D?h/2:0,top:null,bottom:null,columns:1,columnWidth:D?d:p,rowHeight:D?h:E.height,maxLabelLength:F});this.layouts.push(G);const Y=new Ls({origoX:0,origoY:m,top:0,bottom:null,columns:S,columnWidth:C,rowHeight:this.nodeHeight,maxLabelLength:y});this.layouts.push(Y);const W=new Ls({origoX:-w,origoY:0,top:null,bottom:null,columns:v,columnWidth:L,rowHeight:this.nodeHeight,maxLabelLength:O});this.layouts.push(W);const U=new Ls({origoX:_,origoY:0,top:null,bottom:null,columns:B,columnWidth:I,rowHeight:this.nodeHeight,maxLabelLength:k});this.layouts.push(U);const j=new Ls({origoX:0,origoY:-b,top:null,bottom:-2*this.nodeHeight,columns:N,columnWidth:A,rowHeight:this.nodeHeight,maxLabelLength:T});this.layouts.push(j);const K=new Ls({origoX:x,origoY:-R,top:null,bottom:null,columns:P,columnWidth:M,rowHeight:z,maxLabelLength:H});this.layouts.push(K),n.maxLabelLength=F,this.nodesMap.set(n.path,this.rootNode),G.nodes.push(this.rootNode),this.addNodes({neighbours:r,layout:j,isCentral:!1,isSibling:!1,friendGateOnLeft:!0}),this.addNodes({neighbours:a,layout:Y,isCentral:!1,isSibling:!1,friendGateOnLeft:!0}),this.addNodes({neighbours:u,layout:W,isCentral:!1,isSibling:!1,friendGateOnLeft:!1}),this.addNodes({neighbours:o,layout:U,isCentral:!1,isSibling:!1,friendGateOnLeft:!0}),i.renderSiblings&&this.addNodes({neighbours:l,layout:K,isCentral:!1,isSibling:!0,friendGateOnLeft:!0});const q=(e,t,n)=>{t.forEach((t=>{const r=this.nodesMap.get(t.page.path);r&&this.links.addLink(e,r,n,t.relationType,t.typeDefinition,t.linkDirection,s,i)}))};Array.from(this.nodesMap.values()).forEach((e=>{q(e,e.page.getChildren(),t.CHILD),q(e,e.page.getParents(),t.PARENT),q(e,e.page.getLeftFriends(),t.LEFT),q(e,e.page.getPreviousFriends(),t.LEFT),q(e,e.page.getRightFriends(),t.RIGHT),q(e,e.page.getNextFriends(),t.RIGHT)})),s.style.opacity=100,await Promise.all(this.layouts.map((async e=>await e.render())));const Z=s.getElements();this.links.render(Array.from(this.toolsPanel.linkTagFilter.selectedLinks));const $=s.getElements().filter((e=>!Z.includes(e))).concat(Z).reduce(((e,t)=>(e[t.id]=t,e)),{});s.elementsDict=$;const X=s.getExcalidrawAPI();s.addElementsToView(!1,!1).then((()=>{X.updateScene({appState:{viewBackgroundColor:i.backgroundColor}}),s.targetView.clearDirty()})),i.allowAutozoom&&!e&&setTimeout((()=>X.zoomToFit(s.getViewElements(),i.maxZoom,.15)),100),this.toolsPanel.rerender(),this.focusSearchAfterInitiation&&i.allowAutofocuOnSearch&&(this.toolsPanel.searchElement.focus(),this.focusSearchAfterInitiation=!1),this.blockUpdateTimer=!1}isCentralLeafStillThere(){const e=this.plugin.settings;return!(null===this.app.workspace.getLeafById(this.centralLeaf?.id))&&this.centralLeaf.view?.file?.path!==e.excalibrainFilepath}async brainEventHandler(e,t=!1){const i=this.plugin.settings;if(!this.ea.targetView?.file||this.ea.targetView.file.path!==i.excalibrainFilepath)return void this.unloadScene();if(this.disregardLeafChange)return;if(!t&&!i.autoOpenCentralDocument)return;if(this.blockUpdateTimer=!0,await sleep(100),this.pinLeaf&&!this.isCentralLeafStillThere()&&(this.pinLeaf=!1,this.toolsPanel.rerender()),this.pinLeaf&&e!==this.centralLeaf)return;if(!(e?.view&&e.view instanceof n.FileView&&e.view.file))return void(this.blockUpdateTimer=!1);const s=e.view.file;if(s.path===this.ea.targetView.file.path)return this.vaultFileChanged&&(this.zoomToFitOnNextBrainLeafActivate=!1,await this.reRender(!0)),this.zoomToFitOnNextBrainLeafActivate&&(this.zoomToFitOnNextBrainLeafActivate=!1,i.allowAutozoom&&this.ea.getExcalidrawAPI().zoomToFit(null,i.maxZoom,.15)),void(this.blockUpdateTimer=!1);const r=this.getCentralPage();r&&r.path===s.path&&s.stat.mtime===r.mtime?this.blockUpdateTimer=!1:(this.plugin.pages.get(s.path)||await this.plugin.createIndex(),this.plugin.navigationHistory.addToHistory(s.path),this.centralPagePath=s.path,this.centralPageFile=s,this.centralLeaf=e,this.render())}async addEventHandler(){const e=()=>{this.vaultFileChanged=!0},t=e=>this.brainEventHandler(e);this.app.workspace.on("active-leaf-change",t),this.removeEH=()=>this.app.workspace.off("active-leaf-change",t),this.setTimer(),this.app.vault.on("rename",e),this.removeOnRename=()=>this.app.vault.off("rename",e),this.app.vault.on("modify",e),this.removeOnModify=()=>this.app.vault.off("modify",e),this.app.vault.on("create",e),this.removeOnCreate=()=>this.app.vault.off("create",e),this.app.vault.on("delete",e),this.removeOnDelete=()=>this.app.vault.off("delete",e);const i=[];this.app.workspace.iterateAllLeaves((e=>{e.view instanceof n.FileView&&e.view.file&&e.view.file.path!==this.ea.targetView.file.path&&i.push(e)})),await this.plugin.createIndex();let s=i[0];if(i.length>0){const e=this.app.workspace.getLastOpenFiles()[0];if(e&&""!==e){const t=i.filter((t=>t.view?.file?.path===e));t.length>0&&(s=t[0])}E(this.plugin.EA),this.brainEventHandler(s,!0)}else if(this.plugin.navigationHistory.length>0){const e=this.plugin.navigationHistory.last;setTimeout((()=>this.renderGraphForPath(e,!0)),100)}}setTimer(){this.removeTimer&&(this.removeTimer(),this.removeTimer=void 0);const e=setInterval((async()=>{!this.blockUpdateTimer&&this.vaultFileChanged&&(this.vaultFileChanged=!1,await this.plugin.createIndex(),this.centralPagePath&&(this.getCentralPage()||this.centralLeaf&&this.centralLeaf.view&&this.centralLeaf.view.file&&(this.centralPageFile=this.centralLeaf.view.file,this.centralPagePath=this.centralPageFile.path)),this.render(!0))}),this.plugin.settings.indexUpdateInterval);this.removeTimer=()=>clearInterval(e)}unloadScene(e=!0,t=!1){if(this.removeEH&&(this.removeEH(),this.removeEH=void 0),this.removeTimer&&(this.removeTimer(),this.removeTimer=void 0),this.removeOnRename&&(this.removeOnRename(),this.removeOnRename=void 0),this.removeOnModify&&(this.removeOnModify(),this.removeOnModify=void 0),this.removeOnCreate&&(this.removeOnCreate(),this.removeOnCreate=void 0),this.removeOnDelete&&(this.removeOnDelete(),this.removeOnDelete=void 0),this.ea.targetView&&isBoolean(this.ea.targetView.linksAlwaysOpenInANewPane)&&(this.ea.targetView.linksAlwaysOpenInANewPane=!1),this.ea.targetView&&isBoolean(this.ea.targetView.allowFrameButtonsInViewMode)&&(this.ea.targetView.allowFrameButtonsInViewMode=!1),this.ea.targetView&&this.ea.targetView.excalidrawAPI)try{this.ea.targetView.semaphores.saving=!1,this.ea.targetView.excalidrawAPI.setMobileModeAllowed(!0),this.ea.targetView.excalidrawAPI.updateScene({appState:{viewModeEnabled:!1}})}catch{}if(this.ea.targetView&&this.ea.targetView._loaded)try{this.ea.deregisterThisAsViewEA()}catch{}e&&setTimeout((async()=>{await this.plugin.loadSettings(),this.plugin.settings.navigationHistory=[...this.plugin.navigationHistory.get()],await this.plugin.saveSettings()}),400),this.toolsPanel?.terminate(),this.toolsPanel=void 0,this.historyPanel?.terminate(),this.historyPanel=void 0,this.ea.targetView=void 0,this.leaf=void 0,this.centralLeaf=void 0,this.centralPagePath=void 0,this.centralPageFile=void 0,this.terminated=!0,this.app.plugins.plugins["obsidian-excalidraw-plugin"]||(this.plugin.EA=null),t||new n.Notice("Brain Graph Off");const i=this.app.workspace.getMostRecentLeaf();i&&this.app.workspace.setActiveLeaf(i,{focus:!0})}}class na extends n.EditorSuggest{plugin;suggestType;latestTriggerInfo;constructor(e){super(e.app),this.plugin=e}onTrigger(e,t,i){const n=this.plugin.settings;if(n.allowOntologySuggester){const i=t.getLine(e.line).substring(0,e.ch),s=new RegExp(`(^${n.ontologySuggesterTrigger}|\\${n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterTrigger}|^${n.ontologySuggesterParentTrigger}|\\${n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterParentTrigger}|^${n.ontologySuggesterChildTrigger}|\\${n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterChildTrigger}|^${n.ontologySuggesterLeftFriendTrigger}|\\${n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterLeftFriendTrigger}|^${n.ontologySuggesterRightFriendTrigger}|\\${n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterRightFriendTrigger}|^${n.ontologySuggesterPreviousTrigger}|\\${n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterPreviousTrigger}|^${n.ontologySuggesterNextTrigger}|\\${n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterNextTrigger})([^\\s\\${n.ontologySuggesterTrigger}]*)`,"g");let r,a,u;const o=i.matchAll(s);for(;!(u=o.next()).done;)a=u.value[1],r=u.value[2];if(void 0!==r){switch(a){case n.ontologySuggesterTrigger:case n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterTrigger:this.suggestType="all";break;case n.ontologySuggesterParentTrigger:case n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterParentTrigger:this.suggestType="parent";break;case n.ontologySuggesterChildTrigger:case n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterChildTrigger:this.suggestType="child";break;case n.ontologySuggesterRightFriendTrigger:case n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterRightFriendTrigger:this.suggestType="rightFriend";break;case n.ontologySuggesterPreviousTrigger:case n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterPreviousTrigger:this.suggestType="previous";break;case n.ontologySuggesterNextTrigger:case n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterNextTrigger:this.suggestType="next";break;case n.ontologySuggesterLeftFriendTrigger:case n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterLeftFriendTrigger:this.suggestType="leftFriend";break;default:this.suggestType="all"}return this.latestTriggerInfo={end:e,start:{ch:e.ch-r.length-this.getTrigger().length,line:e.line},query:r},this.latestTriggerInfo}}return null}getKeys=()=>{const e=this.plugin.settings.hierarchy,t=this.suggestType;return"all"===t?[...e.hidden,...e.parents,...e.children,...e.leftFriends,...e.rightFriends,...e.previous,...e.next,this.plugin.settings.primaryTagField].sort(((e,t)=>e.toLowerCase()>t.toLowerCase()?1:-1)):"parent"===t?e.parents:"child"===t?e.children:"rightFriend"===t?e.rightFriends:"leftFriend"===t?e.leftFriends:"previous"===t?e.previous:e.next};getTrigger=()=>{const e=this.suggestType,t=this.plugin.settings;return"all"===e?t.ontologySuggesterTrigger:"parent"===e?t.ontologySuggesterParentTrigger:"child"===e?t.ontologySuggesterChildTrigger:"rightFriend"===e?t.ontologySuggesterRightFriendTrigger:"leftFriend"===e?t.ontologySuggesterLeftFriendTrigger:"previous"===e?t.ontologySuggesterPreviousTrigger:t.ontologySuggesterNextTrigger};getSuggestions=e=>{const t=e.query.toLowerCase();return this.getKeys().filter((e=>e.toLowerCase().includes(t)))};renderSuggestion(e,t){t.createEl("b",{text:e})}selectSuggestion(e){const{context:t}=this;if(t){const i=this.plugin.settings.boldFields,n=(i?"**":"")+e+(i?"**":"")+":: ";if(t.editor.replaceRange(n,this.latestTriggerInfo.start,this.latestTriggerInfo.end),this.latestTriggerInfo.start.ch===this.latestTriggerInfo.end.ch){const e=this.latestTriggerInfo.end;e.ch+=n.length,t.editor.setCursor(e)}}}}var sa;!function(e){e.Hidden="hidden",e.Parent="parent",e.Child="child",e.LeftFriend="leftFriend",e.RightFriend="rightFriend",e.Previous="previous",e.Next="next"}(sa||(sa={}));class ra extends n.Modal{plugin;ontology=null;fieldName;constructor(e,t){super(e),this.plugin=t}getCurrentOntology(){const{settings:e}=this.plugin,t=this.fieldName;return e.hierarchy.hidden.includes(t)?sa.Hidden:e.hierarchy.parents.includes(t)?sa.Parent:e.hierarchy.children.includes(t)?sa.Child:e.hierarchy.leftFriends.includes(t)?sa.LeftFriend:e.hierarchy.rightFriends.includes(t)?sa.RightFriend:e.hierarchy.previous.includes(t)?sa.Previous:e.hierarchy.next.includes(t)?sa.Next:null}async setOntology(e){if(this.ontology===e)return;const{settings:t}=this.plugin,i=this.plugin;switch(this.ontology){case sa.Hidden:t.hierarchy.hidden=t.hierarchy.hidden.filter((e=>e!==this.fieldName)),i.hierarchyLowerCase.hidden=[],t.hierarchy.hidden.forEach((e=>i.hierarchyLowerCase.hidden.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.Parent:t.hierarchy.parents=t.hierarchy.parents.filter((e=>e!==this.fieldName)),i.hierarchyLowerCase.parents=[],t.hierarchy.parents.forEach((e=>i.hierarchyLowerCase.parents.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.Child:t.hierarchy.children=t.hierarchy.children.filter((e=>e!==this.fieldName)),i.hierarchyLowerCase.children=[],t.hierarchy.children.forEach((e=>i.hierarchyLowerCase.children.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.LeftFriend:t.hierarchy.leftFriends=t.hierarchy.leftFriends.filter((e=>e!==this.fieldName)),i.hierarchyLowerCase.leftFriends=[],t.hierarchy.leftFriends.forEach((e=>i.hierarchyLowerCase.leftFriends.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.RightFriend:t.hierarchy.rightFriends=t.hierarchy.rightFriends.filter((e=>e!==this.fieldName)),i.hierarchyLowerCase.rightFriends=[],t.hierarchy.rightFriends.forEach((e=>i.hierarchyLowerCase.rightFriends.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.Previous:t.hierarchy.previous=t.hierarchy.previous.filter((e=>e!==this.fieldName)),i.hierarchyLowerCase.previous=[],t.hierarchy.previous.forEach((e=>i.hierarchyLowerCase.previous.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.Next:t.hierarchy.next=t.hierarchy.next.filter((e=>e!==this.fieldName)),i.hierarchyLowerCase.next=[],t.hierarchy.next.forEach((e=>i.hierarchyLowerCase.next.push(e.toLowerCase().replaceAll(" ","-"))))}switch(e){case sa.Hidden:t.hierarchy.hidden.push(this.fieldName),t.hierarchy.hidden=t.hierarchy.hidden.sort(((e,t)=>e.toLowerCase()i.hierarchyLowerCase.hidden.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.Parent:t.hierarchy.parents.push(this.fieldName),t.hierarchy.parents=t.hierarchy.parents.sort(((e,t)=>e.toLowerCase()i.hierarchyLowerCase.parents.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.Child:t.hierarchy.children.push(this.fieldName),t.hierarchy.children=t.hierarchy.children.sort(((e,t)=>e.toLowerCase()i.hierarchyLowerCase.children.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.LeftFriend:t.hierarchy.leftFriends.push(this.fieldName),t.hierarchy.leftFriends=t.hierarchy.leftFriends.sort(((e,t)=>e.toLowerCase()i.hierarchyLowerCase.leftFriends.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.RightFriend:t.hierarchy.rightFriends.push(this.fieldName),t.hierarchy.rightFriends=t.hierarchy.rightFriends.sort(((e,t)=>e.toLowerCase()i.hierarchyLowerCase.rightFriends.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.Previous:t.hierarchy.previous.push(this.fieldName),t.hierarchy.previous=t.hierarchy.previous.sort(((e,t)=>e.toLowerCase()i.hierarchyLowerCase.previous.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.Next:t.hierarchy.next.push(this.fieldName),t.hierarchy.next=t.hierarchy.next.sort(((e,t)=>e.toLowerCase()i.hierarchyLowerCase.next.push(e.toLowerCase().replaceAll(" ","-"))))}await this.plugin.saveSettings(),i.scene&&!i.scene.terminated&&(i.scene.vaultFileChanged=!0),new n.Notice(`Added ${this.fieldName} as ${e}`),this.fieldName=null,this.close()}async show(e){await this.plugin.loadSettings(),this.fieldName=e,this.ontology=this.getCurrentOntology(),this.open()}async addFieldToOntology(e,t){await this.plugin.loadSettings(),this.fieldName=t,this.ontology=this.getCurrentOntology(),await this.setOntology(e),this.fieldName=null}open(){if(!this.fieldName)return;const{contentEl:e,titleEl:t}=this;t.setText(this.fieldName),e.createEl("p",{text:z("ADD_TO_ONTOLOGY_MODAL_DESC")});const i=new n.Setting(e).addButton((e=>{e.buttonEl.style.flex="1 0 calc(33.33% - var(--size-4-2))",e.setButtonText(z("HIDDEN_NAME")),this.ontology===sa.Hidden&&e.setCta(),e.onClick((()=>this.setOntology(sa.Hidden)))})).addButton((e=>{e.buttonEl.style.flex="1 0 calc(33.33% - var(--size-4-2))",e.setButtonText(z("PARENTS_NAME")),this.ontology===sa.Parent&&e.setCta(),e.onClick((()=>this.setOntology(sa.Parent)))})).addButton((e=>{e.buttonEl.style.flex="1 0 calc(33.33% - var(--size-4-2))",e.setButtonText(z("CHILDREN_NAME")),this.ontology===sa.Child&&e.setCta(),e.onClick((()=>this.setOntology(sa.Child)))})).addButton((e=>{e.buttonEl.style.flex="1 0 calc(33.33% - var(--size-4-2))",e.setButtonText(z("LEFT_FRIENDS_NAME")),this.ontology===sa.LeftFriend&&e.setCta(),e.onClick((()=>this.setOntology(sa.LeftFriend)))})).addButton((e=>{e.buttonEl.style.flex="1 0 calc(33.33% - var(--size-4-2))",e.setButtonText(z("RIGHT_FRIENDS_NAME")),this.ontology===sa.RightFriend&&e.setCta(),e.onClick((()=>this.setOntology(sa.RightFriend)))})).addButton((e=>{e.buttonEl.style.flex="1 0 calc(33.33% - var(--size-4-2))",e.setButtonText(z("PREVIOUS_NAME")),this.ontology===sa.Previous&&e.setCta(),e.onClick((()=>this.setOntology(sa.Previous)))})).addButton((e=>{e.buttonEl.style.flex="1 0 calc(33.33% - var(--size-4-2))",e.setButtonText(z("NEXT_NAME")),this.ontology===sa.Next&&e.setCta(),e.onClick((()=>this.setOntology(sa.Next)))}));i.controlEl.style.flexWrap="wrap",i.controlEl.style.justifyContent="space-between",super.open()}onClose(){const{contentEl:e}=this;e.empty()}}class aa{history=[];currentPosition=-1;navigateButtons;constructor(e){this.history=e,this.currentPosition=e.length-1}setNavigateButtons(e){this.navigateButtons=e}addToHistory(e){if(this.navigateButtons&&this.navigateButtons.forEach((e=>e.updateButton())),this.history[this.currentPosition]===e)return;const t=this.history.indexOf(e);t>-1&&this.history.splice(t,1),this.history.push(e),this.history.length>50&&this.history.shift(),this.currentPosition=this.history.length-1}get length(){return this.history.length}get last(){return this.history[this.currentPosition]}get(){return this.history}getPrevious(){return this.currentPosition>0?(this.currentPosition--,this.history[this.currentPosition]):null}getNext(){return this.currentPosition0}}const ua="YYYY-MM-DD";function oa(e){try{const{internalPlugins:t,plugins:i}=e;if(function(e,t){const i=e.plugins.getPlugin("periodic-notes");return i&&i.settings?.daily?.enabled}(e)){const{format:e,folder:t,template:n}=i.getPlugin("periodic-notes")?.settings?.daily||{};return{format:e||ua,folder:t?.trim()||"",template:n?.trim()||""}}const{folder:n,format:s,template:r}=t.getPluginById("daily-notes")?.instance?.options||{};return{format:s||ua,folder:n?.trim()||"",template:r?.trim()||""}}catch(e){console.info("No custom daily note settings found!",e)}}class la extends n.Plugin{dailyNoteSettings;settings;nodeStyles;linkStyles;hierarchyLowerCase={hidden:[],parents:[],children:[],leftFriends:[],rightFriends:[],previous:[],next:[]};hierarchyLinkStylesExtended;pages;DVAPI;EA;scene=null;disregardLeafChangeTimer;pluginLoaded=!1;starred=[];focusSearchAfterInitiation=!1;customNodeLabel;navigationHistory;urlParser;addToOntologyModal;constructor(e,t){super(e,t),this.starred=[new A(null,"Initializing index, please wait",null,this,!1,!1,"Initializing index, please wait")],this.addToOntologyModal=new ra(e,this)}async onload(){await this.loadSettings(),this.dailyNoteSettings=oa(this.app),this.navigationHistory=new aa(this.settings.navigationHistory),this.addSettingTab(new X(this.app,this)),this.registerEditorSuggest(new na(this)),this.registerEvents(),this.urlParser=new r(this),this.app.workspace.onLayoutReady((()=>{this.urlParser.init(),this.DVAPI=Ns(),this.DVAPI?(this.EA=L(),this.EA?this.EA.verifyMinimumPluginVersion(_)?(this.registerCommands(),this.registerExcalidrawAutomateHooks(),this.pluginLoaded=!0):new H(this.app,"⚠ ExcaliBrain Disabled: Please upgrade Excalidraw and try again",z("EXCALIDRAW_MINAPP_VERSION")).show((async e=>{new n.Notice("Disabling ExcaliBrain Plugin",8e3),c({fn:this.onload,where:"main.ts/onload()",message:"ExcaliBrain requires a new version of Excalidraw"}),this.app.plugins.disablePlugin(v)})):new H(this.app,"⚠ ExcaliBrain Disabled: Excalidraw Plugin not found",z("EXCALIDRAW_NOT_FOUND")).show((async e=>{new n.Notice("Disabling ExcaliBrain Plugin",8e3),c({fn:this.onload,where:"main.ts/onload()",message:"Excalidraw not found"}),this.app.plugins.disablePlugin(v)}))):new H(this.app,"⚠ ExcaliBrain Disabled: DataView Plugin not found",z("DATAVIEW_NOT_FOUND")).show((async e=>{new n.Notice("Disabling ExcaliBrain Plugin",8e3),c({fn:this.onload,where:"main.ts/onload()",message:"Dataview not found"}),this.app.plugins.disablePlugin(v)}))}))}registerEvents(){this.registerEvent(this.app.workspace.on("editor-menu",this.handleEditorMenu,this))}getFieldName(e){let t=e.getLine(e.getCursor().line).substring(0,e.getCursor().ch);const i=/(?:^|[(\[])(?:==|\*\*|~~|\*|_|__)?([^\:\]\()]*?)(?:==|\*\*|~~|\*|_|__)?::/g;let n,s=null;for(;null!==(n=i.exec(t));)s=n;if(!s)for(t=e.getLine(e.getCursor().line);null!==(n=i.exec(t));)s=n;return null!==s?s[1]:null}handleEditorMenu(e,t,i){const n=this.getFieldName(t);n&&e.addItem((e=>{e.setTitle(`Add "${n}" to ExcaliBrain Ontology`).setIcon("plus").onClick((()=>{this.addToOntologyModal.show(n)}))}))}lowercasePathMap;async createIndex(){this.pages=new F(this),this.lowercasePathMap=new Map;let t=0;for(;this.app.metadataCache.inProgressTaskCount>0||this.DVAPI.index.importer.reloadQueue.length>0;)t++%100==10&&new n.Notice("ExcaliBrain is waiting for Dataview to update its index",1e3),await sleep(100);for(t=0;!this.urlParser.initalized;)t++%100==10&&new n.Notice("ExcaliBrain is waiting for URLParser to finish indexing",1e3),await sleep(100);this.urlParser.hosts.forEach((e=>{this.pages.add(e,new A(this.pages,e,null,this,!1,!1,e,e))}));const s=(t,r)=>{t.children.forEach((t=>{if(t instanceof n.TFolder){const n=new A(this.pages,"folder:"+t.path,null,this,!0,!1,t.name);return this.pages.add("folder:"+t.path,n),n.addParent(r,e.DEFINED,i.TO,"file-tree"),r.addChild(n,e.DEFINED,i.FROM,"file-tree"),void s(t,n)}{this.lowercasePathMap.set(t.path.toLowerCase(),t.path);const n=new A(this.pages,t.path,t,this);this.pages.add(t.path,n),n.addParent(r,e.DEFINED,i.TO,"file-tree"),r.addChild(n,e.DEFINED,i.FROM,"file-tree")}}))},r=this.app.vault.getRoot(),a=new A(this.pages,"folder:/",null,this,!0,!1,"/");this.pages.add("folder:/",a),s(r,a);const u=Object.keys(this.app.metadataCache.getTags()).map((e=>e.substring(1).split("/")));u.forEach((t=>{const n=[];t.forEach(((t,s,r)=>{const a=r.slice(0,s+1).join("/"),u="tag:"+a;let o=this.pages.get(u);if(o)n.push(o);else if(o=new A(this.pages,u,null,this,!1,!0,this.settings.showFullTagName?a:t),this.pages.add(u,o),n.push(o),s>0){const t=n[s-1];o.addParent(t,e.DEFINED,i.FROM,"tag-tree"),t.addChild(o,e.DEFINED,i.TO,"tag-tree")}}))})),this.pages.addUnresolvedLinks(),this.pages.addResolvedLinks(),this.pages.addPageURLs();const o=this;setTimeout((async()=>{const e=this.app.internalPlugins.getPluginById("bookmarks");if(!e){const e=this.app.internalPlugins.getPluginById("starred");if(!e)return;return void(o.starred=(await e.loadData()).items.filter((e=>"file"===e.type)).map((e=>e.path)).filter((e=>e!==o.settings.excalibrainFilepath&&o.pages.has(e))).map((e=>o.pages.get(e))))}e._loaded||await e.loadData();const t=e=>{if(!e)return;let i=e.filter((e=>"file"===e.type)).map((e=>e.path)).filter((e=>e!==o.settings.excalibrainFilepath&&o.pages.has(e))).map((e=>o.pages.get(e)));return i=i.concat(e.filter((e=>"folder"===e.type)).map((e=>e.path)).filter((e=>e!==o.settings.excalibrainFilepath&&o.pages.has(`folder:${e}`))).map((e=>o.pages.get(`folder:${e}`)))),e.filter((e=>"group"===e.type)).forEach((e=>i=i.concat(t(e.items)))),i};o.starred=t(e.instance.items)}))}excalidrawAvailable(){if(this.app.plugins.plugins["obsidian-excalidraw-plugin"]===this.EA.plugin)return!0;const e=L(this.scene?.leaf?.view);return e?(this.EA=e,this.registerExcalidrawAutomateHooks(),!0):(this.EA=null,this.scene&&this.scene.unloadScene(),new n.Notice("ExcaliBrain: Please start Excalidraw and try again.",4e3),!1)}revealBrainLeaf(){if(!this.scene||this.scene.terminated)return;this.app.workspace.revealLeaf(this.scene.leaf);const e=this.app.plugins.getPlugin("obsidian-hover-editor");if(e){const t=e.activePopovers.filter((e=>e.leaves()[0]===this.scene.leaf))[0];t&&0===this.scene.leaf.view.containerEl.offsetHeight&&t.titleEl.querySelector("a.popover-action.mod-minimize").click()}const t=this.scene.toolsPanel?.searchElement;t?.focus()}addFieldToOntology(e,t){this.addToOntologyModal.addFieldToOntology(t,e)}registerCommands(){const e=(e,t)=>{const i=this.app.workspace.activeLeaf?.view;let s;if(!i)return!1;if("excalidraw"===i.getViewType()){const e=this.EA.getActiveEmbeddableViewOrEditor(i);if(!e)return!1;"view"in e&&"editor"in e.view?s=e.view.editor:"editor"in e&&(s=e.editor)}if(i instanceof n.MarkdownView&&"source"===i.getMode()&&(s=i.editor),!s)return!1;const r=this.getFieldName(s);return!(!r||!e&&("select"===t?(this.addToOntologyModal.show(r),0):(this.addFieldToOntology(r,t),0)))};this.addCommand({id:"excalibrain-addHiddenField",name:z("COMMAND_ADD_HIDDEN_FIELD"),checkCallback:t=>e(t,sa.Hidden)}),this.addCommand({id:"excalibrain-addParentField",name:z("COMMAND_ADD_PARENT_FIELD"),checkCallback:t=>e(t,sa.Parent)}),this.addCommand({id:"excalibrain-addChildField",name:z("COMMAND_ADD_CHILD_FIELD"),checkCallback:t=>e(t,sa.Child)}),this.addCommand({id:"excalibrain-addLeftFriendField",name:z("COMMAND_ADD_LEFT_FRIEND_FIELD"),checkCallback:t=>e(t,sa.LeftFriend)}),this.addCommand({id:"excalibrain-addRightFriendField",name:z("COMMAND_ADD_RIGHT_FRIEND_FIELD"),checkCallback:t=>e(t,sa.RightFriend)}),this.addCommand({id:"excalibrain-addPreviousField",name:z("COMMAND_ADD_PREVIOUS_FIELD"),checkCallback:t=>e(t,sa.Previous)}),this.addCommand({id:"excalibrain-addNextField",name:z("COMMAND_ADD_NEXT_FIELD"),checkCallback:t=>e(t,sa.Next)}),this.addCommand({id:"excalibrain-selectOntology",name:z("COMMAND_ADD_ONTOLOGY_MODAL"),checkCallback:t=>e(t,"select")}),this.addCommand({id:"excalibrain-start",name:z("COMMAND_START"),checkCallback:e=>{if(e)return this.excalidrawAvailable();if(!this.excalidrawAvailable())return;if(this.scene&&!this.scene.terminated){if(this.app.workspace.getLeafById(this.scene.leaf?.id))return void this.revealBrainLeaf();this.scene.unloadScene(!1,!0)}const t=this.getBrainLeaf();if(t)return this.scene=new ia(this,!0,t),this.scene.initialize(!0),void this.revealBrainLeaf();this.focusSearchAfterInitiation=!0,ia.openExcalidrawLeaf(window.ExcalidrawAutomate,this.settings,t)}}),this.addCommand({id:"excalibrain-start-popout",name:z("COMMAND_START_POPOUT"),checkCallback:e=>{if(e)return!this.EA.DEVICE.isMobile&&this.excalidrawAvailable();if(!this.excalidrawAvailable()||this.EA.DEVICE.isMobile)return;if(this.scene&&!this.scene.terminated){if(this.app.workspace.getLeafById(this.scene.leaf?.id))return void this.revealBrainLeaf();this.scene.unloadScene(!1,!0)}const t=this.getBrainLeaf();if(t)return this.scene=new ia(this,!0,t),this.scene.initialize(!0),void this.revealBrainLeaf();this.focusSearchAfterInitiation=!0,ia.openExcalidrawLeaf(window.ExcalidrawAutomate,this.settings,this.app.workspace.openPopoutLeaf())}}),this.addCommand({id:"excalibrain-open-hover",name:z("COMMAND_START_HOVER"),checkCallback:e=>{const t=this.app.plugins.getPlugin("obsidian-hover-editor");if(e)return t&&this.excalidrawAvailable();if(this.excalidrawAvailable()&&t){if(this.scene&&!this.scene.terminated){if(this.app.workspace.getLeafById(this.scene.leaf?.id))return void this.revealBrainLeaf();this.scene.unloadScene(!1,!0)}try{const e=this.getBrainLeaf();if(e){const i=t.activePopovers.filter((t=>t.leaves()[0]===e))[0];if(i)return this.app.workspace.revealLeaf(e),0===e.view.containerEl.offsetHeight&&i.titleEl.querySelector("a.popover-action.mod-maximize").click(),this.scene=new ia(this,!0,e),void this.scene.initialize(!0)}const i=t.spawnPopover(void 0,(()=>{if(this.app.workspace.setActiveLeaf(i,!1,!0),!t.activePopovers.filter((e=>e.leaves()[0]===i))[0])return new n.Notice(z("HOVER_EDITOR_ERROR"),6e3),!1;setTimeout((()=>this.app.commands.executeCommandById("obsidian-hover-editor:snap-active-popover-to-viewport"))),this.focusSearchAfterInitiation=!0,ia.openExcalidrawLeaf(window.ExcalidrawAutomate,this.settings,i)}))}catch(e){new n.Notice(z("HOVER_EDITOR_ERROR"),6e3)}}}})}getBrainLeaf(){let e;return this.app.workspace.iterateAllLeaves((t=>{t.view&&this.EA.isExcalidrawView(t.view)&&t.view instanceof n.TextFileView&&t.view.file.path===this.settings.excalibrainFilepath&&(e=t)})),e}registerExcalidrawAutomateHooks(){this.EA.onViewModeChangeHook=e=>{this.EA.targetView&&this.EA.targetView.file?.path===this.settings.excalibrainFilepath&&(e||this.stop())},this.EA.onLinkHoverHook=(e,t)=>!(this.scene&&this.EA.targetView&&this.EA.targetView.file?.path===this.settings.excalibrainFilepath&&this.EA.targetView.excalidrawAPI&&this.EA.targetView.excalidrawAPI.getAppState().viewModeEnabled&&(this.scene.disregardLeafChange=!0,this.disregardLeafChangeTimer&&clearTimeout(this.disregardLeafChangeTimer),this.disregardLeafChangeTimer=setTimeout((()=>{this.disregardLeafChangeTimer=null,this.scene&&(this.scene.disregardLeafChange=!1)}),1e3),0)),this.EA.onLinkClickHook=(e,t,i)=>{const s=t.match(/\[\[([^\]]*)/)?.[1]??t.match(/(http.*)/)?.[1];if(!s)return!0;const r=this.pages.get(s),a=this.EA;if(!r||!this.scene||!a)return!0;if(E(a),r.isVirtual)return i.shiftKey?(async()=>{const e=r.getParents()[0]??r.getLeftFriends()[0]??r.getRightFriends()[0]??r.getChildren()[0],t=await a.newFilePrompt(r.path,!1,void 0,e?.page.file);t&&(r.file=t,await this.scene.renderGraphForPath(s),await this.scene.reRender(!0))})():this.scene?.renderGraphForPath(s),!1;if(!this.settings.autoOpenCentralDocument)return this.scene.centralPagePath===r.path?!!r.isURL||(this.scene.isCentralLeafStillThere()?(this.scene.centralLeaf.openFile(r.file,{active:!0}),!1):(a.targetView.linksAlwaysOpenInANewPane=!1,setTimeout((()=>a.targetView.linksAlwaysOpenInANewPane=!0),300),!0)):(this.scene.renderGraphForPath(s),!1);const u=this.scene.centralLeaf;if(!r.isFolder&&!r.isTag&&!r.isURL){if(u?.view?.file?.path===s)return this.scene.renderGraphForPath(s),!1;if(this.scene.isCentralLeafStillThere()){const e=this.app.vault.getAbstractFileByPath(s.split("#")[0]);if(e&&e instanceof n.TFile)return u.openFile(e,{active:!1}),this.scene.renderGraphForPath(s,!1),!1}return this.scene.renderGraphForPath(s,!0),!0}return!(this.scene.centralPagePath!==r.path||!r.isURL)||(this.scene.renderGraphForPath(s),!1)},this.EA.onViewUnloadHook=e=>{this.scene&&this.scene.leaf===e.leaf&&this.stop()}}onunload(){this.scene&&(this.scene.unloadScene(),this.scene=null)}setHierarchyLinkStylesExtended(){this.hierarchyLinkStylesExtended={},Object.entries(this.settings.hierarchyLinkStyles).forEach((e=>{const t=e[0].toLowerCase().replaceAll(" ","-");this.hierarchyLinkStylesExtended[e[0]]=e[1],e[0]!==t&&(this.hierarchyLinkStylesExtended[t]=e[1])}))}loadCustomNodeLabelFunction(){if(this.settings.nodeTitleScript)try{this.customNodeLabel=new Function("dvPage","defaultName","return "+this.settings.nodeTitleScript)}catch(e){c({fn:this.loadCustomNodeLabelFunction,message:"error processing custom node label script",where:"loadCustomNodeLabelFunction()",data:this.settings.nodeTitleScript,error:e}),new n.Notice("Could not load custom node label function. See Developer console for details"),this.customNodeLabel=null}else this.customNodeLabel=null}async loadSettings(){this.settings=Object.assign({},W,await this.loadData()),this.settings.hierarchy.exclusions||(this.settings.hierarchy.exclusions=x.exclusions),this.loadCustomNodeLabelFunction(),this.settings.baseLinkStyle={...k,...this.settings.baseLinkStyle},this.settings.baseNodeStyle={...B,...this.settings.baseNodeStyle},this.hierarchyLowerCase.hidden=[],this.settings.hierarchy.hidden||(this.settings.hierarchy.hidden=[""]),this.settings.hierarchy.hidden=this.settings.hierarchy.hidden.sort(((e,t)=>e.toLowerCase()this.hierarchyLowerCase.hidden.push(e.toLowerCase().replaceAll(" ","-"))));let e=[...this.hierarchyLowerCase.hidden];this.hierarchyLowerCase.parents=[],this.settings.hierarchy.parents=this.settings.hierarchy.parents.sort(((e,t)=>e.toLowerCase()this.hierarchyLowerCase.parents.push(e.toLowerCase().replaceAll(" ","-")))),e=[...e,...this.hierarchyLowerCase.parents],this.hierarchyLowerCase.children=[],this.settings.hierarchy.children=this.settings.hierarchy.children.filter((t=>!e.includes(t.toLowerCase().replaceAll(" ","-")))).sort(((e,t)=>e.toLowerCase()this.hierarchyLowerCase.children.push(e.toLowerCase().replaceAll(" ","-")))),e=[...e,...this.hierarchyLowerCase.children],this.hierarchyLowerCase.leftFriends=[],this.settings.hierarchy.leftFriends||(this.settings.hierarchy.leftFriends=this.settings.hierarchy.friends??x.leftFriends),this.settings.hierarchy.leftFriends=this.settings.hierarchy.leftFriends.filter((t=>!e.includes(t.toLowerCase().replaceAll(" ","-")))).sort(((e,t)=>e.toLowerCase()this.hierarchyLowerCase.leftFriends.push(e.toLowerCase().replaceAll(" ","-")))),e=[...e,...this.hierarchyLowerCase.leftFriends],this.hierarchyLowerCase.rightFriends=[],this.settings.hierarchy.rightFriends||(this.settings.hierarchy.rightFriends=x.rightFriends),this.settings.hierarchy.rightFriends=this.settings.hierarchy.rightFriends.filter((t=>!e.includes(t.toLowerCase().replaceAll(" ","-")))).sort(((e,t)=>e.toLowerCase()this.hierarchyLowerCase.rightFriends.push(e.toLowerCase().replaceAll(" ","-")))),e=[...e,...this.hierarchyLowerCase.rightFriends],this.hierarchyLowerCase.previous=[],this.settings.hierarchy.previous||(this.settings.hierarchy.previous=x.previous),this.settings.hierarchy.previous=this.settings.hierarchy.previous.filter((t=>!e.includes(t.toLowerCase().replaceAll(" ","-")))).sort(((e,t)=>e.toLowerCase()this.hierarchyLowerCase.previous.push(e.toLowerCase().replaceAll(" ","-")))),e=[...e,...this.hierarchyLowerCase.previous],this.hierarchyLowerCase.next=[],this.settings.hierarchy.next||(this.settings.hierarchy.next=x.next),this.settings.hierarchy.next=this.settings.hierarchy.next.filter((t=>!e.includes(t.toLowerCase().replaceAll(" ","-")))).sort(((e,t)=>e.toLowerCase()this.hierarchyLowerCase.next.push(e.toLowerCase().replaceAll(" ","-")))),e=[...e,...this.hierarchyLowerCase.next],this.settings.hierarchy.exclusions=this.settings.hierarchy.exclusions.filter((t=>!e.includes(t.toLowerCase().replaceAll(" ","-")))).sort(((e,t)=>e.toLowerCase()this.settings.baseLinkStyle},this.linkStyles.inferred={style:this.settings.inferredLinkStyle,allowOverride:!0,userStyle:!1,display:z("LINKSTYLE_INFERRED"),getInheritedStyle:()=>this.settings.baseLinkStyle},this.linkStyles["file-tree"]={style:this.settings.folderLinkStyle,allowOverride:!0,userStyle:!1,display:z("LINKSTYLE_FOLDER"),getInheritedStyle:()=>this.settings.baseLinkStyle},this.linkStyles["tag-tree"]={style:this.settings.tagLinkStyle,allowOverride:!0,userStyle:!1,display:z("LINKSTYLE_TAG"),getInheritedStyle:()=>this.settings.baseLinkStyle},Object.entries(this.settings.hierarchyLinkStyles).forEach((e=>{I.contains(e[0])||(this.linkStyles[e[0]]={style:e[1],allowOverride:!0,userStyle:!0,display:e[0],getInheritedStyle:()=>this.settings.baseLinkStyle})})),this.nodeStyles={},this.nodeStyles.base={style:this.settings.baseNodeStyle,allowOverride:!1,userStyle:!1,display:z("NODESTYLE_BASE"),getInheritedStyle:()=>this.settings.baseNodeStyle},this.nodeStyles.inferred={style:this.settings.inferredNodeStyle,allowOverride:!0,userStyle:!1,display:z("NODESTYLE_INFERRED"),getInheritedStyle:()=>this.settings.baseNodeStyle},this.nodeStyles.url={style:this.settings.urlNodeStyle,allowOverride:!0,userStyle:!1,display:z("NODESTYLE_URL"),getInheritedStyle:()=>this.settings.baseNodeStyle},this.nodeStyles.virtual={style:this.settings.virtualNodeStyle,allowOverride:!0,userStyle:!1,display:z("NODESTYLE_VIRTUAL"),getInheritedStyle:()=>this.settings.baseNodeStyle},this.nodeStyles.central={style:this.settings.centralNodeStyle,allowOverride:!0,userStyle:!1,display:z("NODESTYLE_CENTRAL"),getInheritedStyle:()=>this.settings.baseNodeStyle},this.nodeStyles.sibling={style:this.settings.siblingNodeStyle,allowOverride:!0,userStyle:!1,display:z("NODESTYLE_SIBLING"),getInheritedStyle:()=>this.settings.baseNodeStyle},this.nodeStyles.attachment={style:this.settings.attachmentNodeStyle,allowOverride:!0,userStyle:!1,display:z("NODESTYLE_ATTACHMENT"),getInheritedStyle:()=>this.settings.baseNodeStyle},this.nodeStyles.folder={style:this.settings.folderNodeStyle,allowOverride:!0,userStyle:!1,display:z("NODESTYLE_FOLDER"),getInheritedStyle:()=>this.settings.baseNodeStyle},this.nodeStyles.tag={style:this.settings.tagNodeStyle,allowOverride:!0,userStyle:!1,display:z("NODESTYLE_TAG"),getInheritedStyle:()=>this.settings.baseNodeStyle},Object.entries(this.settings.tagNodeStyles).sort(((e,t)=>e[0].toLowerCase(){this.nodeStyles[e[0]]={style:e[1],allowOverride:!0,userStyle:!0,display:e[0],getInheritedStyle:()=>this.settings.baseNodeStyle}}))}async saveSettings(){await this.saveData(this.settings)}stop(){this.scene&&!this.scene.terminated&&(this.scene.unloadScene(),this.scene=null)}async start(e){if(this.dailyNoteSettings=oa(this.app),!e.view)return;if(!(e.view instanceof n.TextFileView))return void new n.Notice("Wrong view type. Cannot start ExcaliBrain.");if(e.view.file.path!==this.settings.excalibrainFilepath)return void new n.Notice(`The brain file is not the one configured in settings!\nThe file in settings is ${this.settings.excalibrainFilepath}.\nThis file is ${e.view.file.path}.\nPlease start ExcaliBrain using the Command Palette action.`,5e3);let t=0;for(;!this.pluginLoaded&&t++<100;)await sleep(50);if(!this.pluginLoaded)return new n.Notice("ExcaliBrain plugin did not load - aborting start()"),void c({where:"ExcaliBrain.start()",fn:this.start,message:"ExcaliBrain did not load. Aborting after 5000ms of trying"});this.excalidrawAvailable()&&(this.stop(),e?(this.scene=new ia(this,!0,e),this.scene.initialize(this.focusSearchAfterInitiation),this.focusSearchAfterInitiation=!1):await ia.openExcalidrawLeaf(window.ExcalidrawAutomate,this.settings,this.getBrainLeaf()))}}module.exports=la; +d||console.log({error:"objectLinks is undefined which is unexpected",errorLocation:"readDVField",field:t,file:i});const h=((e,t,i)=>{const s=new Set;return t.forEach((t=>{t?.hasOwnProperty?.("ts")&&s.add(n.moment.default(t.ts).format(e.dailyNoteSettings.format))})),Array.from(s)})(e,r);return Array.from(s).concat(D).concat(d??[]).concat(h)}if(t.path){const n=a(e.app,t.path,i.path);return n?[n]:[]}return"string"==typeof t?u(e.app,t,i):[]},l=(e,t,i)=>{const n=[],s=new Set;return i.forEach((i=>{const r=t[i];r&&!s.has(i)&&(s.add(i),o(e,r,t.file).forEach((e=>n.push({link:e,field:i}))))})),n},D=(e,t)=>{const i=d(e,t);if(!i)return[null,null];if(e[t.primaryTagFieldLowerCase]){const n=e[t.primaryTagFieldLowerCase].match(/#([^\s\])$"'\\]*)(?:$|\s)/g)?.map((e=>e.trim())).filter((e=>t.tagStyleList.some((t=>e.startsWith(t))))),s=n&&n.length>0?n[0]:i[0];return[s,i.filter((e=>e!=s))]}return[i[0],i.slice(1)]},d=(e,t)=>e?(e.file?.tags?.values??[]).filter((e=>t.tagStyleList.some((t=>e.startsWith(t))))):null,h=(e,t)=>{const[i,n]=e;if(!i)return{};const s=t.tagNodeStyles[t.tagStyleList.filter((e=>i.startsWith(e)))[0]];if(s&&t.displayAllStylePrefixes){const e=Object.keys(t.tagNodeStyles).filter((e=>n.includes(e))),i=new Set;s.prefix&&i.add(s.prefix),e?.map((e=>t.tagNodeStyles[e].prefix)).filter((e=>Boolean(e))).forEach((e=>i.add(e)));const r=Array.from(i).join("");return{...s,prefix:r}}return s},c=e=>{console.error({plugin:"ExcaliBrain",...e})};console.log.bind(window.console),console.log.bind(window.console);const g=e=>`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(e.replaceAll(" "," "))))}`,E=(e,t)=>{if(!e.DEVICE.isDesktop)return;let i=!0;if(!t){const n=e.targetView;if(!n)return;i=e.plugin.app.workspace.activeLeaf===n.leaf,t=n.ownerWindow}i&&(t.electronWindow.isAlwaysOnTop()||(t.electronWindow.setAlwaysOnTop(!0),setTimeout((()=>{t.electronWindow.setAlwaysOnTop(!1)}),500)))};function p(e){const t=e.lastIndexOf("/"),i=-1==t?e:e.substring(t+1);return{folderpath:n.normalizePath(e.substring(0,t)),filename:i,basename:i.replace(/\.[^/.]+$/,"")}}function f(e,t){return!!e&&(["pdf","mp4","mp3","webm","md"].includes(e.extension)&&!t.isExcalidrawFile(e))}class F{pages=new Map;app;plugin;constructor(e){this.app=e.app,this.plugin=e}add(e,t){this.pages.set(e,t)}has(e){return this.pages.has(e)}get(e){return this.pages.get(e)}getPages(){return Array.from(this.pages.values())}forEach=this.pages.forEach.bind(this.pages);get size(){return this.pages.size}delete(e){const t=this.pages.get(e);t&&(t.neighbours.forEach(((t,i)=>{const n=this.pages.get(i);n&&(n.unlinkNeighbour(e),n.file||0!==n.neighbours.size||this.pages.delete(i))})),this.pages.delete(e))}addInferredParentChild(t,n){this.plugin.settings.inferAllLinksAsFriends?(n.addLeftFriend(t,e.INFERRED,i.TO),t.addLeftFriend(n,e.INFERRED,i.FROM)):this.plugin.settings.inverseInfer?(n.addChild(t,e.INFERRED,i.TO),t.addParent(n,e.INFERRED,i.FROM)):(n.addParent(t,e.INFERRED,i.TO),t.addChild(n,e.INFERRED,i.FROM))}addResolvedLinks(e){const t=this.app.metadataCache.resolvedLinks;Object.keys(t).forEach((i=>{if(e&&e.path!==i)return;const n=this.pages.get(i);Object.keys(t[i]).forEach((e=>{let t=this.pages.get(e);t||(t=this.pages.get(this.plugin.lowercasePathMap.get(e.toLowerCase()))),this.addInferredParentChild(n,t)}))}))}addPageURLs(){this.plugin.urlParser.fileToUrlMap.forEach(((t,n)=>{const s=this.get(n.path);s&&t.forEach((t=>{let n=this.get(t.url);n||(n=new T(this,t.url,null,this.plugin,!1,!1,t.alias,t.url),this.add(t.url,n)),""===t.alias||""!==n.name&&n.name!==t.url||(n.name=t.alias),this.addInferredParentChild(s,n);const r=this.get(t.origin);r&&(n.addParent(r,e.INFERRED,i.FROM),r.addChild(n,e.INFERRED,i.TO))}))}))}addUnresolvedLinks(e){if(e&&(e.isFolder||e.isTag))return;const t=this.app.metadataCache.unresolvedLinks;Object.keys(t).forEach((i=>{if(e&&e.path!==i)return;let n=this.pages.get(i);n&&i!==this.plugin.settings.excalibrainFilepath&&Object.keys(t[i]).forEach((e=>m(e,n,this.plugin,this)))}))}}const m=(t,n,s,r)=>{const a=r.get(t)??new T(r,t,null,s);return s.settings.inferAllLinksAsFriends?(a.addLeftFriend(n,e.INFERRED,i.TO),n.addLeftFriend(a,e.INFERRED,i.FROM)):s.settings.inverseInfer?(a.addChild(n,e.INFERRED,i.TO),n.addParent(a,e.INFERRED,i.FROM)):(a.addParent(n,e.INFERRED,i.TO),n.addChild(a,e.INFERRED,i.FROM)),r.add(t,a),a},C={target:null,isHidden:!1,isParent:!1,isChild:!1,isLeftFriend:!1,isRightFriend:!1,isNextFriend:!1,isPreviousFriend:!1,direction:null},y=(e,t)=>e&&t?e+", "+t:e||t,S=(e,t)=>e?e===i.BOTH||e===t?e:i.BOTH:t,A=(t,i)=>t===e.DEFINED?e.DEFINED:t===e.INFERRED?i===e.DEFINED?e.DEFINED:e.INFERRED:i;class T{pages;path;file;plugin;isFolder;isTag;name;url;mtime;neighbours;dvPage;primaryStyleTag;styleTags;dvIndexReady=!1;maxLabelLength;constructor(e,t,i,n,s=!1,r=!1,a,u=null){this.pages=e,this.path=t,this.file=i,this.plugin=n,this.isFolder=s,this.isTag=r,this.name=a,this.url=u,a||(this.name=i?"md"===i.extension?i.basename:i.name:Boolean(u)?u:(e=>{const t=e.endsWith(".md"),i=e.substring(e.lastIndexOf("/")+1);return t?i.slice(0,-3):i})(t)),this.mtime=i?i.stat.mtime:null,this.neighbours=new Map}addDVFieldLinksToPage(){if(this.dvIndexReady||this.isFolder||!this.pages)return;if(this.dvIndexReady=!0,this.isTag){const t=this.plugin.DVAPI.index.etags.getInverse("#"+this.path.substring(4));if(!t)return;return void t.forEach((t=>{const n=this.pages.get(t);n&&(this.neighbours.has(t)||(n.addParent(this,e.DEFINED,i.TO,"tag-tree"),this.addChild(n,e.DEFINED,i.FROM,"tag-tree")))}))}if(!this.file)return;const t=this.plugin.DVAPI.page(this.file.path);if(!t)return;if(this.dvPage=t,!t)return;[this.primaryStyleTag,this.styleTags]=D(this.dvPage,this.plugin.settings),(t.file?.etags?.values??[]).forEach((t=>{t="tag:"+t.substring(1);const n=this.pages.get(t);n&&(this.addParent(n,e.DEFINED,i.FROM,"tag-tree"),n.addChild(this,e.DEFINED,i.TO,"tag-tree"))}));const n=this.plugin.hierarchyLowerCase.hidden;l(this.plugin,t,n).forEach((e=>{let t=this.pages.get(e.link);t||(t=m(e.link,this,this.plugin,this.plugin.pages)),this.addHidden(t)}));const s=this.plugin.hierarchyLowerCase.parents;l(this.plugin,t,s).forEach((t=>{let n=this.pages.get(t.link);n||(n=m(t.link,this,this.plugin,this.plugin.pages)),this.addParent(n,e.DEFINED,i.FROM,t.field),n.addChild(this,e.DEFINED,i.TO,t.field)}));const r=this.plugin.hierarchyLowerCase.children;l(this.plugin,t,r).forEach((t=>{let n=this.pages.get(t.link);n||(n=m(t.link,this,this.plugin,this.plugin.pages)),this.addChild(n,e.DEFINED,i.FROM,t.field),n.addParent(this,e.DEFINED,i.TO,t.field)}));const a=this.plugin.hierarchyLowerCase.leftFriends;l(this.plugin,t,a).forEach((t=>{let n=this.pages.get(t.link);n||(n=m(t.link,this,this.plugin,this.plugin.pages)),this.addLeftFriend(n,e.DEFINED,i.FROM,t.field),n.addLeftFriend(this,e.DEFINED,i.TO,t.field)}));const u=this.plugin.hierarchyLowerCase.rightFriends;l(this.plugin,t,u).forEach((t=>{let n=this.pages.get(t.link);n||(n=m(t.link,this,this.plugin,this.plugin.pages)),this.addRightFriend(n,e.DEFINED,i.FROM,t.field),n.addRightFriend(this,e.DEFINED,i.TO,t.field)}));const o=this.plugin.hierarchyLowerCase.previous;l(this.plugin,t,o).forEach((t=>{let n=this.pages.get(t.link);n||(n=m(t.link,this,this.plugin,this.plugin.pages)),this.addPreviousFriend(n,e.DEFINED,i.FROM,t.field),n.addNextFriend(this,e.DEFINED,i.TO,t.field)}));const d=this.plugin.hierarchyLowerCase.next;l(this.plugin,t,d).forEach((t=>{let n=this.pages.get(t.link);n||(n=m(t.link,this,this.plugin,this.plugin.pages)),this.addNextFriend(n,e.DEFINED,i.FROM,t.field),n.addPreviousFriend(this,e.DEFINED,i.TO,t.field)}))}getTitle(){if(this.isURL)return this.plugin.settings.renderAlias&&this.name&&""!==this.name?this.name:this.url;const e=this.file&&this.plugin.settings.renderAlias?this.dvPage?.file?.aliases?.values??[]:[];let t=e.length>0?e[0]:this.name;if("[object Object]"===t&&(t=this.dvPage.aliases?.[0]?Object.entries(this.dvPage.aliases[0])[0].join(": "):this.name),this.dvPage?.file&&this.plugin.customNodeLabel)try{return this.plugin.customNodeLabel(this.dvPage,t)}catch(e){c({fn:this.getTitle,message:"Error executing cutomer node label function. The script is: "+this.plugin.settings.nodeTitleScript,data:this.dvPage,where:"Page.getTitle()",error:e})}return t}getRelationVector(t){return{pi:t.isParent&&t.parentType===e.INFERRED,pd:t.isParent&&t.parentType===e.DEFINED,ci:t.isChild&&t.childType===e.INFERRED,cd:t.isChild&&t.childType===e.DEFINED,lfd:!this.plugin.settings.inferAllLinksAsFriends&&t.isLeftFriend||this.plugin.settings.inferAllLinksAsFriends&&t.isLeftFriend&&!(t.parentType===e.DEFINED||t.childType===e.DEFINED||t.rightFriendType===e.DEFINED||t.nextFriendType===e.DEFINED||t.previousFriendType===e.DEFINED),rfd:t.isRightFriend&&t.rightFriendType===e.DEFINED,pfd:t.isPreviousFriend&&t.previousFriendType===e.DEFINED,nfd:t.isNextFriend&&t.nextFriendType===e.DEFINED}}getNeighbours(){this.addDVFieldLinksToPage(),this.neighbours.forEach((e=>e.target.addDVFieldLinksToPage()));const{showVirtualNodes:e,showAttachments:t,showFolderNodes:i,showTagNodes:n,showPageNodes:s,showURLNodes:r}=this.plugin.settings;return Array.from(this.neighbours).filter((a=>!a[1].isHidden&&(e||!a[1].target.isVirtual)&&(t||!a[1].target.isAttachment)&&(i||!a[1].target.isFolder)&&(n||!a[1].target.isTag)&&(s||a[1].target.isFolder||a[1].target.isTag||a[1].target.isAttachment||a[1].target.isURL)&&(r||!a[1].target.isURL)))}get isVirtual(){return null===this.file&&!this.isFolder&&!this.isTag&&!this.isURL}get isURL(){return Boolean(this.url)}get isAttachment(){return!!this.file&&"md"!==this.file.extension}get isMarkdown(){return"md"===this.file?.extension||!this.file}addHidden(t){if(t.path===this.plugin.settings.excalibrainFilepath||t.path===this.path)return;const i=this.neighbours.get(t.path);i?i.isHidden=!0:this.neighbours.set(t.path,{...C,target:t,isHidden:!0,parentType:e.DEFINED})}addParent(e,t,i,n){if(e.path===this.plugin.settings.excalibrainFilepath||e.path===this.path)return;const s=this.neighbours.get(e.path);if(s)return s.isParent=!0,s.parentType=A(s.parentType,t),n&&!s.parentTypeDefinition?.contains(n)&&(s.parentTypeDefinition=y(n,s.parentTypeDefinition)),void(s.direction=S(s.direction,i));this.neighbours.set(e.path,{...C,target:e,isParent:!0,parentType:t,parentTypeDefinition:n,direction:i})}addChild(e,t,i,n){if(e.path===this.plugin.settings.excalibrainFilepath||e.path===this.path)return;const s=this.neighbours.get(e.path);if(s)return s.isChild=!0,s.childType=A(s.childType,t),n&&!s.childTypeDefinition?.contains(n)&&(s.childTypeDefinition=y(n,s.childTypeDefinition)),void(s.direction=S(s.direction,i));this.neighbours.set(e.path,{...C,target:e,isChild:!0,childType:t,childTypeDefinition:n,direction:i})}addLeftFriend(e,t,i,n){if(e.path===this.plugin.settings.excalibrainFilepath||e.path===this.path)return;const s=this.neighbours.get(e.path);if(s)return s.isLeftFriend=!0,s.leftFriendType=A(s.leftFriendType,t),n&&!s.leftFriendTypeDefinition?.contains(n)&&(s.leftFriendTypeDefinition=y(n,s.leftFriendTypeDefinition)),void(s.direction=S(s.direction,i));this.neighbours.set(e.path,{...C,target:e,isLeftFriend:!0,leftFriendType:t,leftFriendTypeDefinition:n,direction:i})}addRightFriend(e,t,i,n){if(e.path===this.plugin.settings.excalibrainFilepath||e.path===this.path)return;const s=this.neighbours.get(e.path);if(s)return s.isRightFriend=!0,s.rightFriendType=A(s.rightFriendType,t),n&&!s.rightFriendTypeDefinition?.contains(n)&&(s.rightFriendTypeDefinition=y(n,s.rightFriendTypeDefinition)),void(s.direction=S(s.direction,i));this.neighbours.set(e.path,{...C,target:e,isRightFriend:!0,rightFriendType:t,rightFriendTypeDefinition:n,direction:i})}addNextFriend(e,t,i,n){if(e.path===this.plugin.settings.excalibrainFilepath||e.path===this.path)return;const s=this.neighbours.get(e.path);if(s)return s.isNextFriend=!0,s.nextFriendType=A(s.nextFriendType,t),n&&!s.nextFriendTypeDefinition?.contains(n)&&(s.nextFriendTypeDefinition=y(n,s.nextFriendTypeDefinition)),void(s.direction=S(s.direction,i));this.neighbours.set(e.path,{...C,target:e,isNextFriend:!0,nextFriendType:t,nextFriendTypeDefinition:n,direction:i})}addPreviousFriend(e,t,i,n){if(e.path===this.plugin.settings.excalibrainFilepath||e.path===this.path)return;const s=this.neighbours.get(e.path);if(s)return s.isPreviousFriend=!0,s.previousFriendType=A(s.previousFriendType,t),n&&!s.previousFriendTypeDefinition?.contains(n)&&(s.previousFriendTypeDefinition=y(n,s.previousFriendTypeDefinition)),void(s.direction=S(s.direction,i));this.neighbours.set(e.path,{...C,target:e,isPreviousFriend:!0,previousFriendType:t,previousFriendTypeDefinition:n,direction:i})}unlinkNeighbour(e){this.neighbours.delete(e)}isChild(t){const{pi:i,pd:n,ci:s,cd:r,lfd:a,rfd:u,nfd:o,pfd:l}=this.getRelationVector(t);return!r||n||a||u||o||l?i||n||!s||r||a||u||o||l?null:e.INFERRED:e.DEFINED}childrenCount(){return this.getNeighbours().reduce(((t,i)=>{const n=this.isChild(i[1]);return t+(n&&this.plugin.settings.showInferredNodes||n===e.DEFINED?1:0)}),0)}hasChildren(){return this.getNeighbours().some((t=>{const i=this.isChild(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED}))}getChildren(){return this.getNeighbours().filter((t=>{const i=this.isChild(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED})).map((e=>({page:e[1].target,relationType:e[1].childType,typeDefinition:e[1].childTypeDefinition,linkDirection:e[1].direction})))}isParent(t){const{pi:i,pd:n,ci:s,cd:r,lfd:a,rfd:u,nfd:o,pfd:l}=this.getRelationVector(t);return r||!n||a||u||o||l?!i||n||s||r||a||u||o||l?null:e.INFERRED:e.DEFINED}parentCount(){return this.getNeighbours().reduce(((t,i)=>{const n=this.isParent(i[1]);return t+(n&&this.plugin.settings.showInferredNodes||n===e.DEFINED?1:0)}),0)}hasParents(){return this.getNeighbours().some((t=>{const i=this.isParent(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED}))}getParents(){return this.getNeighbours().filter((t=>{const i=this.isParent(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED})).map((e=>({page:e[1].target,relationType:e[1].parentType,typeDefinition:e[1].parentTypeDefinition,linkDirection:e[1].direction})))}isLeftFriend(t){const{pi:i,pd:n,ci:s,cd:r,lfd:a,rfd:u,nfd:o,pfd:l}=this.getRelationVector(t);return a?e.DEFINED:i&&!n&&s&&!r&&!a&&!u&&!o&&!l||[n,r,a,u,o,l].filter(Boolean).length>=2?e.INFERRED:null}leftFriendCount(){return this.getNeighbours().reduce(((t,i)=>{const n=this.isLeftFriend(i[1]);return t+(n&&this.plugin.settings.showInferredNodes||n===e.DEFINED?1:0)}),0)}hasLeftFriends(){return this.getNeighbours().some((t=>{const i=this.isLeftFriend(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED}))}getLeftFriends(){return this.getNeighbours().filter((t=>{const i=this.isLeftFriend(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED})).map((t=>({page:t[1].target,relationType:t[1].leftFriendType??(t[1].parentType===e.DEFINED&&t[1].childType===e.DEFINED?e.DEFINED:e.INFERRED),typeDefinition:t[1].leftFriendTypeDefinition,linkDirection:t[1].direction})))}isRightFriend(t){const{pd:i,cd:n,lfd:s,rfd:r,nfd:a,pfd:u}=this.getRelationVector(t);return i||n||s||!r||a||u?null:e.DEFINED}rightFriendCount(){return this.getNeighbours().reduce(((t,i)=>{const n=this.isRightFriend(i[1]);return t+(n&&this.plugin.settings.showInferredNodes||n===e.DEFINED?1:0)}),0)}hasRightFriends(){return this.getNeighbours().some((t=>{const i=this.isRightFriend(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED}))}getRightFriends(){return this.getNeighbours().filter((t=>{const i=this.isRightFriend(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED})).map((t=>({page:t[1].target,relationType:e.DEFINED,typeDefinition:t[1].rightFriendTypeDefinition,linkDirection:t[1].direction})))}isPreviousFriend(t){const{pd:i,cd:n,lfd:s,rfd:r,nfd:a,pfd:u}=this.getRelationVector(t);return i||n||s||r||!u||a?null:e.DEFINED}previousFriendCount(){return this.getNeighbours().reduce(((t,i)=>{const n=this.isPreviousFriend(i[1]);return t+(n&&this.plugin.settings.showInferredNodes||n===e.DEFINED?1:0)}),0)}hasPreviousFriends(){return this.getNeighbours().some((t=>{const i=this.isPreviousFriend(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED}))}getPreviousFriends(){return this.getNeighbours().filter((t=>{const i=this.isPreviousFriend(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED})).map((t=>({page:t[1].target,relationType:e.DEFINED,typeDefinition:t[1].previousFriendTypeDefinition,linkDirection:t[1].direction})))}isNextFriend(t){const{pd:i,cd:n,lfd:s,rfd:r,nfd:a,pfd:u}=this.getRelationVector(t);return i||n||s||r||u||!a?null:e.DEFINED}nextFriendCount(){return this.getNeighbours().reduce(((t,i)=>{const n=this.isNextFriend(i[1]);return t+(n&&this.plugin.settings.showInferredNodes||n===e.DEFINED?1:0)}),0)}hasNextFriends(){return this.getNeighbours().some((t=>{const i=this.isNextFriend(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED}))}getNextFriends(){return this.getNeighbours().filter((t=>{const i=this.isNextFriend(t[1]);return i&&this.plugin.settings.showInferredNodes||i===e.DEFINED})).map((t=>({page:t[1].target,relationType:e.DEFINED,typeDefinition:t[1].nextFriendTypeDefinition,linkDirection:t[1].direction})))}getSiblings(){const t=new Map;return this.getParents().forEach((i=>i.page.getChildren().forEach((i=>{t.has(i.page.path)?i.relationType===e.DEFINED&&(t.get(i.page.path).relationType=e.DEFINED):t.set(i.page.path,i)})))),Array.from(t.values())}}var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},N={};Object.defineProperty(N,"__esModule",{value:!0});const L=e=>{try{return window.ExcalidrawAutomate.getAPI(e)}catch(e){return console.log({message:"Excalidraw not available",fn:L}),null}};var O=N.getEA=L;const w="ExcaliBrain",_="excalibrain",v="1.9.14",I=["base","inferred","file-tree","tag-tree"],k={strokeColor:"#696969FF",strokeWidth:1,strokeStyle:"solid",roughness:0,startArrowHead:"none",endArrowHead:"none",showLabel:!1,fontSize:10,fontFamily:3,textColor:"#ffffffff"},B={prefix:"",backgroundColor:"#00000066",fillStyle:"solid",textColor:"#ffffffff",borderColor:"#00000000",fontSize:20,fontFamily:3,maxLabelLength:30,roughness:0,strokeShaprness:"round",strokeWidth:1,strokeStyle:"solid",padding:10,gateRadius:5,gateOffset:15,gateStrokeColor:"#ffffffff",gateBackgroundColor:"#ffffffff",gateFillStyle:"solid"},R={exclusions:["excalidraw-font","excalidraw-font-color","excalidraw-css","excalidraw-plugin","excalidraw-link-brackets","excalidraw-link-prefix","excalidraw-border-color","excalidraw-default-mode","excalidraw-export-dark","excalidraw-export-transparent","excalidraw-export-svgpadding","excalidraw-export-pngscale","excalidraw-url-prefix","excalidraw-linkbutton-opacity","excalidraw-onload-script","kanban-plugin"],parents:["Parent","Parents","up","u","North","origin","inception","source","parent domain"],children:["Children","Child","down","d","South","leads to","contributes to","nurtures"],leftFriends:["Friends","Friend","Jump","Jumps","j","similar","supports","alternatives","advantages","pros"],rightFriends:["opposes","disadvantages","missing","cons"],previous:["Previous","Prev","West","w","Before"],next:["Next","n","East","e","After"],hidden:["hidden"]};var x={JSON_MALFORMED:"Malformed JSON",JSON_MISSING_KEYS:'JSON must have these 4 keys: "parents", "children", "friends", "nextFriends"',JSON_VALUES_NOT_STRING_ARRAYS:'Key values must be a non-empty array of strings. e.g. "parents": ["Parent", "Parents", "up"]',EXCALIBRAIN_FILE_NAME:"Filepath of Excalibrain drawing",EXCALIBRAIN_FILE_DESC:"⚠ This file will be overwritten by the plugin. If you stop the script and make changes to the graph, you should rename the file so your edits are preserved, because the next time you initiate ExcaliBrain your edits will be overwritten by the automatically generated ExcaliBrain graph.",INDEX_REFRESH_FREQ_NAME:"Index refresh frequency (seconds)",INDEX_REFRESH_FREQ_DESC:"ExcaliBrain will update its index whenever you switch work panes, in case a file has changed in your Vault since the last index update.
    This setting is thus only relevant when you are typing in a markdown editor (not switching files or panes) and you still want ExcaliBrain to update it's graph as you type. Because frequent background index updates can be resource intensive you have an option to increase the time interval for the index-updates which in turn will reduce the overhead on your system.",HIERARCHY_HEAD:"Ontology",HIERARCHY_DESC:"Ontology, the heart of Excalibrain. It is the context of our knowledge graph and refers to a system for organizing and defining the relationships between different nodes in the graph. It allows us to add semantic meaning to connections by associating them with specific Dataview fields, such as 'author' or 'chapter,' which influence the way nodes are positioned relative to each other on the graph. This approach enables a more structured and meaningful representation of information, making it easier to understand and explore the interconnectedness of concepts within the markdown documents in your Vault.

    Enter the field names separated by comma (,) that you will use to define links in your graph.

    You can also add fields to the ontology on the fly from the markdown editor by typing the new field (e.g.: 'Consits of::') and then calling one of the command palette actions to Add dataview field to ontology as ..., or by opening the context menu.",INFER_NAME:"Infer all implicit relationships as Friend",INFER_DESC:"Toggle On: All implicit links in the document are interpreted as FRIENDS.
    Toggle Off: The following logic is used:
    • A forward link is inferred as a CHILD
    • A backlink is inferred as a PARENT
    • If files mutually link to each other, they are FRIENDS
    ",REVERSE_NAME:"Reverse infer logic",REVERSE_DESC:"Toggle ON: Treat backlinks as children and forward links as parents.
    Toggle OFF: Treat backlinks as parents and forward links as children",INVERSE_ARROW_DIRECTION_NAME:"Inverse arrow direction",INVERSE_ARROW_DIRECTION_DESC:"Toggle ON: Display arrow heads in the opposite direction of the link direction.
    Toggle OFF: Display arrow heads in the same direction as the link direction",HIDDEN_NAME:"Hidden",HIDDEN_DESC:"Dataview or YAML fields that are hidden in the graph.",PARENTS_NAME:"Parents",CHILDREN_NAME:"Children",LEFT_FRIENDS_NAME:"Left-Side Friends",RIGHT_FRIENDS_NAME:"Right-Side Friends",PREVIOUS_NAME:"Previous (Friends)",NEXT_NAME:"Next (Friends)",EXCLUSIONS_NAME:"Excluded",EXCLUSIONS_DESC:"Dataview or YAML fields that are never used for ontology. These fields will not show up in the ontology suggester in the markdown editor, and will not be shown in the unassigned list.",UNASSIGNED_NAME:"Unassigned",UNASSIGNED_DESC:"Fields in your Vault that are neither excluded nor part of the defined ontology.",ONTOLOGY_SUGGESTER_NAME:"Ontology Suggester",ONTOLOGY_SUGGESTER_DESC:"Activate ontology suggester in the markdown editor. If enabled then typing the trigger sequence at the beginning of a paragraph will activate the suggester listing your ontology fields defined above.",ONTOLOGY_SUGGESTER_ALL_NAME:"Character sequence to trigger generic suggester. The Generic suggester will include all the ontology fields regardless of their direction.",ONTOLOGY_SUGGESTER_PARENT_NAME:"Character sequence to trigger parent suggester",ONTOLOGY_SUGGESTER_CHILD_NAME:"Character sequence to trigger child suggester",ONTOLOGY_SUGGESTER_LEFT_FRIEND_NAME:"Character sequence to trigger left-side friend suggester",ONTOLOGY_SUGGESTER_RIGHT_FRIEND_NAME:"Character sequence to trigger right-side friend suggester",ONTOLOGY_SUGGESTER_PREVIOUS_NAME:"Character sequence to trigger previous (friend) suggester",ONTOLOGY_SUGGESTER_NEXT_NAME:"Character sequence to trigger next (friend) suggester",MID_SENTENCE_SUGGESTER_TRIGGER_NAME:"Mid-sentence dataview field suggester trigger",MID_SENTENCE_SUGGESTER_TRIGGER_DESC:"You may add fields mid-way in sentences following one of these two formats:
    We met at [location:: [[XYZ restaurant]]] with [candidate:: [[John Doe]]]
    We met at (location:: [[XYZ restaurant]]) with (candidate:: [[John Doe]])
    If you set this trigger to e.g. ( then typing (::: anywhere in the sentence will activate the suggester (assuming you are using the default generic suggester trigger commbination of ::: - see setting above).
    More info on inline fields: [DataView Help](https://blacksmithgu.github.io/obsidian-dataview/data-annotation/)",BOLD_FIELDS_NAME:"Add selected field with BOLD",BOLD_FIELDS_DESC:"Add selected field to text with bold typeface, i.e. (**field name**:: ) resulting in (field name:: )",DISPLAY_HEAD:"Display",COMPACT_VIEW_NAME:"Compact view",COMPACT_VIEW_DESC:"Controls the width of the graph by setting the maximum number of columns that are displayed for children and parent nodes.
    Toggle ON:The max number of child columns is 3, and the max number of parent columns is 2
    Toggle OFF:The max number of child columns is 5, max number of parent columns is 3",COMPACTING_FACTOR_NAME:"Compacting factor",COMPACTING_FACTOR_DESC:"The higher the number the more compact the graph will be. The lower the number the more spread out the graph will be.",MINLINKLENGTH_NAME:"Minimum center-friend distance",MINLINKLENGTH_DESC:"The minimum distance betweeen the central node and the friend nodes. The higher the number the furhter away the friends will be from the parent, leaving more space for the link ontology labels.",NODETITLE_SCRIPT_NAME:"Javascript for rendering node names",NODETITLE_SCRIPT_DESC:"Javascript code to render the node title. If you don't need it, just leave this field empty.
    Function definition: customNodeLabel: (dvPage: Literal, defaultName:string) => string
    In your script you may refer to the dataview page object via the dvPage variable; and the default page name (filename or alias if available) via the defaultName variable. Use the following expression syntax:
    dvPage['field 1']??defaultName - this example will display the vaule of 'field 1' if available else the defaultName
    ⚠ Your line of code will be executed as is, make sure you add proper exception handling. Beyond defaultName and dataview field names, you also have the freedom to use any javascript function (e.g. defaultName.toLowerCase()) and any value that appears on the dvPage object, e.g. dvPage.file.path, etc.
    To explore the dataview page object open Developer Console and enter the following code:
    DataviewAPI.page('full filepath including extension')
    Here's an example code that will display the value of the title field if available, else the filename, followed by the state (if available):
    dvPage.title??defaultName & (dvPage.state ? ' - ' & dvPage.state : '')",BEHAVIOR_HEAD:"Behavior",EXCLUDE_PATHLIST_NAME:"Filepaths to exclude",EXCLUDE_PATHLIST_DESC:"Enter comma-separated list of filepaths to exclude from the index.",STYLE_HEAD:"Styling",STYLE_DESC:"Styles are applied in sequence.
    1. Base node style
    2. Inferred node style (only applied if the node is inferred)
    3. Virtual node style (only applied if the node is virtual)
    4. Central node style (only applied if the node is in the center)
    5. Sibling node style (only applied if the node is a sibling)
    6. Attachment node style (only applied if the node is an attachment)
    7. Optional tag based style
    All the attributes of the base node style must be specified. All other styles may have partial definitions. e.g. You may add a prefix and override the base node-background color in the tag-based style, override the font color in the inferred-node style and set the border stroke style to dotted in the virtual-node style.",CANVAS_BGCOLOR:"Canvas color",SHOW_FULL_TAG_PATH_NAME:"Display full tag name",SHOW_FULL_TAG_PATH_DESC:"Toggle on: will display the full tag e.g. #reading/books/sci-fi
    Toggle off: will display the current section of the tag, e.g. assuming the tag above, the graph will display only #reading, #books, #sci-fi respectively as you navigate the tag hierarchy.",SHOW_COUNT_NAME:"Display neighbor count",SHOW_COUNT_DESC:"Show the number of children, parents, friends next to the node gate",ALLOW_AUTOZOOM_NAME:"Autozoom",ALLOW_AUTOZOOM_DESC:"Toggle ON: Allow autozoom
    Toggle OFF: Disable autozoom",MAX_AUTOZOOM_NAME:"Maximum autozoom level [%]",MAX_AUTOZOOM_DESC:"Maximum zoom level to apply when autozoom is enabled. The higher the number the more zoomed in the graph will be.",ALLOW_AUTOFOCUS_ON_SEARCH_NAME:"Autofocus on search",ALLOW_AUTOFOCUS_ON_SEARCH_DESC:"Toggle ON: Allow autofocus on Search
    Toggle OFF: Disable autofocus",ALWAYS_ON_TOP_NAME:"Popout default 'always on top' behavior",ALWAYS_ON_TOP_DESC:"Toggle ON: When opening ExcaliBrain in a popout window, it will open with the new window in 'always on top' mode.
    Toggle OFF: The new window will not be in 'always on top' mode.",EMBEDDED_FRAME_WIDTH_NAME:"Embedded frame width",EMBEDDED_FRAME_HEIGHT_NAME:"Embedded frame height",TAGLIST_NAME:"Formatted tags",TAGLIST_DESC:"You can specify special formatting rules for Nodes based on tags. If there are multiple tags present in a note, and 'note type::' is not defined, the page the first matching a specification will be used.
    Tagnames should start with # and may be incomplete. i.e. #book will match #books, #book/fiction, etc.
    tAg NaMeS are CaSE sensiTIve
    Enter a comma separated list of tags here, then select from the dropdown list to change the formatting.",NOTE_STYLE_TAG_NAME:"Note style tag field",NOTE_STYLE_TAG_DESC:"The dataview field to designate the primary tag for styling the page. This tag will be used as the base style. If other tags on the page also have defined styles and those style definitions include a prefix character those prefixes will be also added to the note title.",ALL_STYLE_PREFIXES_NAME:"Display all tags styles",ALL_STYLE_PREFIXES_DESC:"Display tag prefixes for all tags included in the note",MAX_ITEMCOUNT_DESC:"Maximum node count",MAX_ITEMCOUNT_NAME:"Maximum number of nodes to display in a given area of the layout.i.e. the maximum number of parents, the maximum number of children, the maximum number of friends, and the maximum number of siblings to display. If there are more items, they will be ommitted from the drawing.",NODESTYLE_INCLUDE_TOGGLE:"Toggle ON: override base node style for this attribute; OFF: apply base node style for this attribute",NODESTYLE_PREFIX_NAME:"Prefix",NODESTYLE_PREFIX_DESC:"Prefix character or emoji to display in front of the node's label",NODESTYLE_BGCOLOR:"Background color",NODESTYLE_BG_FILLSTYLE:"Background fill-style",NODESTYLE_TEXTCOLOR:"Text color",NODESTYLE_BORDERCOLOR:"Border color",NODESTYLE_FONTSIZE:"Font size",NODESTYLE_FONTFAMILY:"Font family",NODESTYLE_MAXLABELLENGTH_NAME:"Max label length",NODESTYLE_MAXLABELLENGTH_DESC:"Maximum number of characters to display from node title. Longer nodes will end with '...'",NODESTYLE_ROUGHNESS:"Stroke roughness",NODESTYLE_SHARPNESS:"Stroke sharpness",NODESTYLE_STROKEWIDTH:"Stroke width",NODESTYLE_STROKESTYLE:"Stroke style",NODESTYLE_RECTANGLEPADDING:"Padding of the node rectangle",NODESTYLE_GATE_RADIUS_NAME:"Gate radius",NODESTYLE_GATE_RADIUS_DESC:"The radius of the 3 small circles (alias: gates) serving as connection points for nodes",NODESTYLE_GATE_OFFSET_NAME:"Gate offset",NODESTYLE_GATE_OFFSET_DESC:"The offset to the left and right of the parent and child gates.",NODESTYLE_GATE_COLOR:"Gate border color",NODESTYLE_GATE_BGCOLOR_NAME:"Gate background color",NODESTYLE_GATE_BGCOLOR_DESC:"The fill color of the gate if it has children",NODESTYLE_GATE_FILLSTYLE:"Gate background fill-style",NODESTYLE_BASE:"Base node style",NODESTYLE_CENTRAL:"Style of central node",NODESTYLE_INFERRED:"Style of inferred nodes",NODESTYLE_URL:"Style of web page nodes",NODESTYLE_VIRTUAL:"Style of virtual nodes",NODESTYLE_SIBLING:"Style of sibling nodes",NODESTYLE_ATTACHMENT:"Style of attachment nodes",NODESTYLE_FOLDER:"Style of folder nodes",NODESTYLE_TAG:"Style of tag nodes",LINKSTYLE_COLOR:"Color",LINKSTYLE_WIDTH:"Width",LINKSTYLE_STROKE:"Stroke style",LINKSTYLE_ROUGHNESS:"Roughness",LINKSTYLE_ARROWSTART:"Start arrow head",LINKSTYLE_ARROWEND:"End arrow head",LINKSTYLE_SHOWLABEL:"Show label on link",LINKSTYLE_FONTSIZE:"Label font size",LINKSTYLE_FONTFAMILY:"Label font family",LINKSTYLE_BASE:"Base link style",LINKSTYLE_INFERRED:"Style of inferred link",LINKSTYLE_FOLDER:"Style of folder link",LINKSTYLE_TAG:"Style of tag link",DATAVIEW_NOT_FOUND:`Dataview plugin not found. Please install or enable Dataview then try restarting ${w}.`,DATAVIEW_UPGRADE:`Please upgrade Dataview to 0.5.31 or newer. Please update Dataview then try restarting ${w}.`,EXCALIDRAW_NOT_FOUND:`Excalidraw plugin not found. Please install or enable Excalidraw then try restarting ${w}.`,EXCALIDRAW_MINAPP_VERSION:`ExcaliBrain requires Excalidraw ${v} or higher. Please upgrade Excalidraw then try restarting ${w}.`,COMMAND_ADD_HIDDEN_FIELD:"Add dataview field to ontology as HIDDEN",COMMAND_ADD_PARENT_FIELD:"Add dataview field to ontology as PARENT",COMMAND_ADD_CHILD_FIELD:"Add dataview field to ontology as CHILD",COMMAND_ADD_LEFT_FRIEND_FIELD:"Add dataview field to ontology as LEFT-SIDE FRIEND",COMMAND_ADD_RIGHT_FRIEND_FIELD:"Add dataview field to ontology as RIGHT-SIDE FRIEND",COMMAND_ADD_PREVIOUS_FIELD:"Add dataview field to ontology as PREVIOUS",COMMAND_ADD_NEXT_FIELD:"Add dataview field to ontology as NEXT",COMMAND_ADD_ONTOLOGY_MODAL:"Add dataview field to ontology: Open Ontology Modal",COMMAND_START:"ExcaliBrain Normal",COMMAND_START_HOVER:"ExcaliBrain Hover-Editor",COMMAND_START_POPOUT:"ExcaliBrain Popout Window",COMMAND_STOP:"Stop ExcaliBrain",HOVER_EDITOR_ERROR:"I am sorry. Something went wrong. Most likely there was a version update to Hover Editor which I haven't addressed properly in ExcaliBrain. Normally I should get this fixed within few days",OPEN_DRAWING:"Save snapshot for editing",SEARCH_IN_VAULT:"Starred items will be listed in empty search.\nSearch for a file, a folder or a tag in your Vault.\nToggle folders and tags on/off to show in the list.",SHOW_HIDE_ATTACHMENTS:"Show/Hide attachments",SHOW_HIDE_VIRTUAL:"Show/Hide virtual nodes",SHOW_HIDE_INFERRED:"Show/Hide inferred relationships",SHOW_HIDE_ALIAS:"Show/Hide document alias",SHOW_HIDE_SIBLINGS:"Show/Hide siblings",SHOW_HIDE_POWERFILTER:"Enable/Disable Power Filter",SHOW_HIDE_EMBEDDEDCENTRAL:"Display central node as embedded frame",SHOW_HIDE_URLS:"Show/Hide URLs in central notes as graph nodes",SHOW_HIDE_FOLDER:"Show/Hide folder nodes",SHOW_HIDE_TAG:"Show/Hide tag nodes",SHOW_HIDE_PAGES:"Show/Hide page nodes (incl. defined, inferred, virtual and attachments)",PIN_LEAF:"Link ExcaliBrain to the most recent active leaf. When linked, ExcaliBrain will only monitor changes of the pinned leaf and open synchronized pages only on the pinned leaf.",NAVIGATE_BACK:"Navigate back",NAVIGATE_FORWARD:"Navigate forward",REFRESH_VIEW:"Refresh",AUTO_OPEN_DOCUMENT:"Synchronize navigation. When plugs are connected, changes to ExcaliBrain focus will be reflected in the active Obsidian tab and vice versa.\n\nYou can link/unlink this button to the '<> Display central node as embedded frame' button in the ExcaliBrain settings.",TOGGLE_AUTOOPEN_WHEN_EMBED_TOGGLE_NAME:"Synchronize navigation on Embed toggle",TOGGLE_AUTOOPEN_WHEN_EMBED_TOGGLE_DESC:"Toggle ON: When you toggle the '< > Display central node as embedded frame' button, ExcaliBrain will automatically turn navigation synchronization on
    Toggle OFF: When you toggle the '< > Display central node as embedded frame' button, ExcaliBrain will not automatically turn navigation synchronization on",ADD_TO_ONTOLOGY_MODAL_DESC:"Select the direction of the ontology. If one of the buttons is highlighted, then the field is already part of the ontology in that direction."};const M={en:x,ar:{},cs:{},da:{},de:{JSON_MALFORMED:"Ungültiges JSON-Format",JSON_MISSING_KEYS:'JSON muss diese 4 Schlüssel enthalten: "parents", "children", "friends", "nextFriends"',JSON_VALUES_NOT_STRING_ARRAYS:'Die Schlüsselwerte müssen ein nicht-leeres Array von Zeichenketten sein. z.B. "parents": ["Eltern", "Elternteile", "hoch"]',EXCALIBRAIN_FILE_NAME:"Dateipfad der Excalibrain-Zeichnung",EXCALIBRAIN_FILE_DESC:"⚠ Diese Datei wird durch das Plugin überschrieben. Wenn Sie das Skript stoppen und Änderungen am Graphen vornehmen, sollten Sie die Datei umbenennen, damit Ihre Änderungen erhalten bleiben. Denn beim nächsten Start von ExcaliBrain werden Ihre Änderungen durch den automatisch generierten ExcaliBrain-Graphen überschrieben.",INDEX_REFRESH_FREQ_NAME:"Index-Aktualisierungsfrequenz",INDEX_REFRESH_FREQ_DESC:"ExcaliBrain wird seinen Index immer dann aktualisieren, wenn Sie zwischen Arbeitsbereichen wechseln, falls eine Datei in Ihrer Vault seit der letzten Index-Aktualisierung geändert wurde.
    Diese Einstellung ist nur relevant, wenn Sie in einem Markdown-Editor tippen (keine Datei- oder Bereichswechsel vornehmen) und dennoch möchten, dass ExcaliBrain den Graphen während des Schreibens aktualisiert. Da häufige Hintergrund-Index-Updates ressourcenintensiv sein können, haben Sie die Möglichkeit, das Zeitintervall für die Index-Updates zu vergrößern, um die Auswirkungen auf Ihr System zu reduzieren.",HIERARCHY_HEAD:"Ontologie",HIERARCHY_DESC:"Geben Sie die Dataview-Feldnamen durch Kommas getrennt ein, die Sie verwenden möchten, um Link-Richtungen in Ihrem Graphen zu definieren.
    Sie können auch Felder dynamisch von Ihrem Markdown-Editor aus zur Ontologie hinzufügen, indem Sie das neue Feld am Anfang eines Absatzes eingeben (z.B. 'Besteht aus::') und dann eine der Befehlspalettenaktionen aufrufen, um das Dataview-Feld als ELTERN, KIND, FREUND oder RECHTER FREUND zur Ontologie hinzuzufügen.",INFER_NAME:"Alle impliziten Beziehungen als Freund interpretieren",INFER_DESC:"Ein: Alle impliziten Verknüpfungen im Dokument werden als FREUNDE interpretiert.
    Aus: Die folgende Logik wird verwendet:
    • Eine Vorwärtsverknüpfung wird als KIND interpretiert
    • Eine Rückverknüpfung wird als ELTERN interpretiert
    • Wenn Dateien sich gegenseitig verknüpfen, sind sie FREUNDE
    ",REVERSE_NAME:"Logik für implizite Beziehungen umkehren",REVERSE_DESC:"Ein: Rückverknüpfungen als KINDER und Vorwärtsverknüpfungen als ELTERN behandeln.
    Aus: Rückverknüpfungen als ELTERN und Vorwärtsverknüpfungen als KINDER behandeln",PARENTS_NAME:"Eltern",CHILDREN_NAME:"Kinder",LEFT_FRIENDS_NAME:"Freunde (links)",RIGHT_FRIENDS_NAME:"Freunde (rechts)",PREVIOUS_NAME:"Vorherige (Freunde)",NEXT_NAME:"Nächste (Freunde)",EXCLUSIONS_NAME:"Ausgeschlossen",EXCLUSIONS_DESC:"Dataview- oder YAML-Felder, die niemals für die Ontologie verwendet werden.",UNASSIGNED_NAME:"Nicht zugewiesen",UNASSIGNED_DESC:"Felder in Ihrer Vault, die weder ausgeschlossen noch Teil der definierten Ontologie sind.",ONTOLOGY_SUGGESTER_NAME:"Ontologie-Vorschläge",ONTOLOGY_SUGGESTER_DESC:"Aktivieren Sie den Ontologie-Vorschläger im Markdown-Editor. Wenn aktiviert, wird das Auslösemuster am Anfang eines Absatzes den Ontologie-Feldern angezeigt, die oben definiert sind.",ONTOLOGY_SUGGESTER_ALL_NAME:"Zeichenkette zum Auslösen des generischen Vorschlägers. Der generische Vorschläger enthält alle Ontologie-Felder unabhängig von ihrer Richtung.",ONTOLOGY_SUGGESTER_PARENT_NAME:"Zeichenkette zum Auslösen des Vorschlägers für ELTERN",ONTOLOGY_SUGGESTER_CHILD_NAME:"Zeichenkette zum Auslösen des Vorschlägers für KINDER",ONTOLOGY_SUGGESTER_LEFT_FRIEND_NAME:"Zeichenkette zum Auslösen des Vorschlägers für linke FREUNDE",ONTOLOGY_SUGGESTER_RIGHT_FRIEND_NAME:"Zeichenkette zum Auslösen des Vorschlägers für rechte FREUNDE",ONTOLOGY_SUGGESTER_PREVIOUS_NAME:"Zeichenkette zum Auslösen des Vorschlägers für vorherige (FREUNDE)",ONTOLOGY_SUGGESTER_NEXT_NAME:"Zeichenkette zum Auslösen des Vorschlägers für nächste (FREUNDE)",MID_SENTENCE_SUGGESTER_TRIGGER_NAME:"Auslösemuster für Dataview-Feldvorschläge inmitten von Sätzen",MID_SENTENCE_SUGGESTER_TRIGGER_DESC:"Sie können Felder inmitten von Sätzen hinzufügen, indem Sie einem der beiden Formate folgen:
    We met at [location:: [[XYZ restaurant]]] with [candidate:: [[John Doe]]]
    We met at (location:: [[XYZ restaurant]]) with (candidate:: [[John Doe]])
    Wenn Sie das Auslösemuster z.B. auf ( setzen, wird das Eingeben von (::: an einer beliebigen Stelle im Satz den Vorschläger aktivieren (sofern Sie das Standard-Auslösemuster für generische Vorschläge von ::: verwenden - siehe Einstellung oben).
    Weitere Informationen zu Inline-Feldern finden Sie unter [DataView-Hilfe](https://blacksmithgu.github.io/obsidian-dataview/data-annotation/)",BOLD_FIELDS_NAME:"Ausgewähltes Feld fett hervorheben",BOLD_FIELDS_DESC:"Fügt das ausgewählte Feld mit fetter Schriftart zum Text hinzu, z.B. (**Feldname**:: ) ergibt (Feldname:: )",DISPLAY_HEAD:"Darstellung",COMPACT_VIEW_NAME:"Kompakte Ansicht",COMPACT_VIEW_DESC:"Zeigt den Graphen in einer kompakten Ansicht an",EXCLUDE_PATHLIST_NAME:"Auszuschließende Dateipfade",EXCLUDE_PATHLIST_DESC:"Geben Sie eine kommagetrennte Liste von Dateipfaden ein, die vom Index ausgeschlossen werden sollen.",RENDERALIAS_NAME:"Alias anzeigen, wenn verfügbar",RENDERALIAS_DESC:"Zeigt den Seitennamen anstelle des Dateinamens an, wenn dieser in den Metadaten der Seite angegeben ist.",NODETITLE_SCRIPT_NAME:"Javascript zum Rendern von Knotennamen",NODETITLE_SCRIPT_DESC:"Javascript-Code zum Rendern des Knotentitels. Wenn Sie es nicht benötigen, lassen Sie dieses Feld einfach leer.
    Funktionsdefinition: customNodeLabel: (dvPage: Literal, defaultName:string) => string
    In Ihrem Skript können Sie auf das Dataview-Objekt der Seite über die Variable dvPage und den Standardseitennamen (Dateiname oder Alias, sofern vorhanden) über die Variable defaultName zugreifen. Verwenden Sie die folgende Ausdruckssyntax:
    dvPage['Feld 1']??defaultName - dieses Beispiel zeigt den Wert von 'Feld 1', falls verfügbar, andernfalls den Standardnamen.
    ⚠ Ihr Code wird wie eingegeben ausgeführt, stellen Sie sicher, dass Sie eine ordnungsgemäße Fehlerbehandlung hinzufügen. Neben defaultName und Dataview-Feldnamen haben Sie auch die Freiheit, beliebige JavaScript-Funktionen zu verwenden (z.B. defaultName.toLowerCase()) und beliebige Werte, die im dvPage-Objekt erscheinen, z.B. dvPage.file.path, etc.
    Um das Dataview-Objekt der Seite zu erkunden, öffnen Sie die Entwicklerkonsole und geben Sie folgenden Code ein:
    DataviewAPI.page('vollständiger Dateipfad einschließlich Erweiterung')
    Hier ist ein Beispielcode, der den Wert des Titelfelds anzeigt, sofern verfügbar, gefolgt vom Dateinamen und dem Status (sofern verfügbar):
    dvPage.title??defaultName & (dvPage.state ? ' - ' & dvPage.state : '')",SHOWINFERRED_NAME:"Implizite Beziehungen anzeigen",SHOWINFERRED_DESC:"Ein: Zeigt sowohl explizit definierte als auch implizierte Verknüpfungen an. Vorwärtsverknüpfungen sind Kinder, Rückverknüpfungen sind Eltern, wenn sich zwei Seiten gegenseitig beziehen, wird die Beziehung als Freundschaft interpretiert. Explizit definierte Beziehungen haben immer Vorrang.
    Aus: Zeigt nur explizit definierte Beziehungen an.",SHOWVIRTUAL_NAME:"Virtuelle Kindknoten anzeigen",SHOWVIRTUAL_DESC:"Ein: Zeigt nicht aufgelöste Verknüpfungen an.
    Aus: Zeigt nicht aufgelöste Verknüpfungen nicht an.",SHOWATTACHMENTS_NAME:"Anhänge einbeziehen",SHOWATTACHMENTS_DESC:"Ein: Zeigt alle Dateitypen im Graphen an.
    Aus: Zeigt nur Markdown-Dateien an.",STYLE_HEAD:"Stil",STYLE_DESC:"Stile werden in der Reihenfolge angewendet.
    1. Basis-Knotenstil
    2. Implizierter Knotenstil (wird nur angewendet, wenn der Knoten impliziert ist)
    3. Virtueller Knotenstil (wird nur angewendet, wenn der Knoten virtuell ist)
    4. Zentraler Knotenstil (wird nur angewendet, wenn der Knoten in der Mitte ist)
    5. Geschwister Knotenstil (wird nur angewendet, wenn der Knoten ein Geschwister ist)
    6. Anlagen Knotenstil (wird nur angewendet, wenn der Knoten ein Anhang ist)
    7. Optionaler stichwortbasierter Stil
    Alle Attribute des Basis-Knotenstils müssen angegeben werden. Alle anderen Stile können teilweise definiert sein. Sie können beispielsweise einen Präfix hinzufügen und die Hintergrundfarbe des Basis-Knotens überschreiben oder die Schriftfarbe im implizierten Knotenstil ändern und den Randstrichstil im virtuellen Knotenstil auf gestrichelt setzen.",CANVAS_BGCOLOR:"Hintergrundfarbe der Leinwand",SHOW_FULL_TAG_PATH_NAME:"Vollständigen Tag-Namen anzeigen",SHOW_FULL_TAG_PATH_DESC:"Ein: Der vollständige Tag wird angezeigt, z.B. #lesen/bücher/sci-fi
    Aus: Die aktuelle Sektion des Tags wird angezeigt. Angenommen, der obige Tag lautet #lesen/bücher/sci-fi, dann werden im Graphen nur #lesen, #bücher, #sci-fi angezeigt, wenn Sie die Tag-Hierarchie durchlaufen.",SHOW_COUNT_NAME:"Anzahl der Nachbarn anzeigen",SHOW_COUNT_DESC:"Zeigt die Anzahl der Kinder, Eltern, Freunde neben dem Knoten-Gate an",ALLOW_AUTOZOOM_NAME:"Autozoom erlauben",ALLOW_AUTOZOOM_DESC:"Ein: Erlaubt Autozoom
    Aus: Deaktiviert Autozoom",ALLOW_AUTOFOCUS_ON_SEARCH_NAME:"Autofokus bei Suche erlauben",ALLOW_AUTOFOCUS_ON_SEARCH_DESC:"Ein: Erlaubt Autofokus bei Suche
    Aus: Deaktiviert Autofokus",ALWAYS_ON_TOP_NAME:"Standardmäßiges 'immer im Vordergrund' - Verhalten für Popout",ALWAYS_ON_TOP_DESC:"Ein: Wenn ExcaliBrain in einem Popout-Fenster geöffnet wird, wird es im 'immer im Vordergrund'-Modus geöffnet.
    Aus: Das neue Fenster wird nicht im 'immer im Vordergrund'-Modus geöffnet.",EMBEDDED_FRAME_WIDTH_NAME:"Breite des eingebetteten Rahmens",EMBEDDED_FRAME_HEIGHT_NAME:"Höhe des eingebetteten Rahmens",TAGLIST_NAME:"Formatierte Tags",TAGLIST_DESC:"Sie können spezielle Formatierungsregeln für Knoten basierend auf Tags festlegen. Wenn mehrere Tags auf der Seite vorhanden sind, wird die erste passende Spezifikation verwendet.
    Tagnamen sollten mit einem # beginnen und können unvollständig sein. Zum Beispiel wird #buch zu #bücher, #buch/fiction usw. passen.
    Geben Sie hier eine kommagetrennte Liste von Tags ein und wählen Sie aus der Dropdown-Liste, um die Formatierung zu ändern.",MAX_ITEMCOUNT_DESC:"Maximale Anzahl von Knoten",MAX_ITEMCOUNT_NAME:"Maximale Anzahl von Knoten, die in einem bestimmten Bereich der Anordnung angezeigt werden.D.h. die maximale Anzahl von Eltern, die maximale Anzahl von Kindern, die maximale Anzahl von Freunden und die maximale Anzahl von Geschwistern, die angezeigt werden sollen. Wenn es mehr Elemente gibt, werden sie aus der Zeichnung ausgelassen.",NODESTYLE_INCLUDE_TOGGLE:"Ein: Überschreibt den Basis-Knotenstil für dieses Attribut; Aus: Wendet den Basis-Knotenstil für dieses Attribut an",NODESTYLE_PREFIX_NAME:"Präfix",NODESTYLE_PREFIX_DESC:"Präfixzeichen oder Emoji, das vor dem Knotenlabel angezeigt wird",NODESTYLE_BGCOLOR:"Hintergrundfarbe",NODESTYLE_BG_FILLSTYLE:"Hintergrund-Füllstil",NODESTYLE_TEXTCOLOR:"Textfarbe",NODESTYLE_BORDERCOLOR:"Randfarbe",NODESTYLE_FONTSIZE:"Schriftgröße",NODESTYLE_FONTFAMILY:"Schriftart",NODESTYLE_MAXLABELLENGTH_NAME:"Maximale Label-Länge",NODESTYLE_MAXLABELLENGTH_DESC:"Maximale Anzahl von Zeichen, die vom Knotentitel angezeigt werden. Längere Knoten enden mit '...'",NODESTYLE_ROUGHNESS:"Strichrauheit",NODESTYLE_SHARPNESS:"Strichschärfe",NODESTYLE_STROKEWIDTH:"Strichstärke",NODESTYLE_STROKESTYLE:"Strichstil",NODESTYLE_RECTANGLEPADDING:"Polsterung des Knotenrechtecks",NODESTYLE_GATE_RADIUS_NAME:"Radius des Gates",NODESTYLE_GATE_RADIUS_DESC:"Der Radius der 3 kleinen Kreise (Alias: Gates), die als Verbindungspunkte für Knoten dienen",NODESTYLE_GATE_OFFSET_NAME:"Offset des Gates",NODESTYLE_GATE_OFFSET_DESC:"Der Abstand nach links und rechts von den Eltern- und Kind-Gates.",NODESTYLE_GATE_COLOR:"Randfarbe des Gates",NODESTYLE_GATE_BGCOLOR_NAME:"Hintergrundfarbe des Gates",NODESTYLE_GATE_BGCOLOR_DESC:"Die Füllfarbe des Gates, wenn es Kinder hat",NODESTYLE_GATE_FILLSTYLE:"Hintergrund-Füllstil des Gates",NODESTYLE_BASE:"Basis-Knotenstil",NODESTYLE_CENTRAL:"Stil des zentralen Knotens",NODESTYLE_INFERRED:"Stil der implizierten Knoten",NODESTYLE_VIRTUAL:"Stil der virtuellen Knoten",NODESTYLE_SIBLING:"Stil der Geschwister-Knoten",NODESTYLE_ATTACHMENT:"Stil der Anlagen-Knoten",NODESTYLE_FOLDER:"Stil der Ordner-Knoten",NODESTYLE_TAG:"Stil der Tag-Knoten",LINKSTYLE_COLOR:"Farbe",LINKSTYLE_WIDTH:"Breite",LINKSTYLE_STROKE:"Strichstil",LINKSTYLE_ROUGHNESS:"Strichrauheit",LINKSTYLE_ARROWSTART:"Pfeilspitze am Anfang",LINKSTYLE_ARROWEND:"Pfeilspitze am Ende",LINKSTYLE_SHOWLABEL:"Label auf Verbindung anzeigen",LINKSTYLE_FONTSIZE:"Label-Schriftgröße",LINKSTYLE_FONTFAMILY:"Label-Schriftart",LINKSTYLE_BASE:"Basis-Verbindungsstil",LINKSTYLE_INFERRED:"Stil der implizierten Verbindung",LINKSTYLE_FOLDER:"Stil der Ordner-Verbindung",LINKSTYLE_TAG:"Stil der Tag-Verbindung",DATAVIEW_NOT_FOUND:`Das Dataview-Plugin wurde nicht gefunden. Bitte installieren oder aktivieren Sie Dataview und starten Sie ${w} neu.`,DATAVIEW_UPGRADE:`Bitte aktualisieren Sie Dataview auf Version 0.5.31 oder höher. Bitte aktualisieren Sie Dataview und starten Sie ${w} neu.`,EXCALIDRAW_NOT_FOUND:`Das Excalidraw-Plugin wurde nicht gefunden. Bitte installieren oder aktivieren Sie Excalidraw und starten Sie ${w} neu.`,EXCALIDRAW_MINAPP_VERSION:`ExcaliBrain erfordert Excalidraw Version ${v} oder höher. Bitte aktualisieren Sie Excalidraw und starten Sie ${w} neu.`,COMMAND_ADD_PARENT_FIELD:"Dataview-Feld der Ontologie als ELTERN hinzufügen",COMMAND_ADD_CHILD_FIELD:"Dataview-Feld der Ontologie als KIND hinzufügen",COMMAND_ADD_LEFT_FRIEND_FIELD:"Dataview-Feld der Ontologie als LINKSFREUND hinzufügen",COMMAND_ADD_RIGHT_FRIEND_FIELD:"Dataview-Feld der Ontologie als RECHTSFREUND hinzufügen",COMMAND_ADD_PREVIOUS_FIELD:"Dataview-Feld der Ontologie als VORHERIGE hinzufügen",COMMAND_ADD_NEXT_FIELD:"Dataview-Feld der Ontologie als NÄCHSTE hinzufügen",COMMAND_START:"ExcaliBrain Normal starten",COMMAND_START_HOVER:"ExcaliBrain Hover-Editor starten",COMMAND_START_POPOUT:"ExcaliBrain Popout-Fenster starten",COMMAND_STOP:"ExcaliBrain beenden",HOVER_EDITOR_ERROR:"Entschuldigung. Etwas ist schiefgegangen. Wahrscheinlich gab es ein Versionsupdate von Hover Editor, das ich in ExcaliBrain nicht richtig berücksichtigt habe. Normalerweise werde ich das innerhalb weniger Tage beheben.",OPEN_DRAWING:"Snapshot zum Bearbeiten speichern",SEARCH_IN_VAULT:"Markierte Elemente werden in der leeren Suche aufgelistet.\nSuchen Sie nach einer Datei, einem Ordner oder einem Tag in Ihrem Tresor.\nSchalten Sie Ordner und Tags ein/aus, um sie in der Liste anzuzeigen.",SHOW_HIDE_ATTACHMENTS:"Anlagen anzeigen/ausblenden",SHOW_HIDE_VIRTUAL:"Virtuelle Knoten anzeigen/ausblenden",SHOW_HIDE_INFERRED:"Implizierte Knoten anzeigen/ausblenden",SHOW_HIDE_ALIAS:"Dokument-Alias anzeigen/ausblenden",SHOW_HIDE_SIBLINGS:"Geschwister anzeigen/ausblenden",SHOW_HIDE_EMBEDDEDCENTRAL:"Zentralen Knoten als eingebetteten Rahmen anzeigen",SHOW_HIDE_FOLDER:"Ordner-Knoten anzeigen/ausblenden",SHOW_HIDE_TAG:"Tag-Knoten anzeigen/ausblenden",SHOW_HIDE_PAGES:"Seiten-Knoten anzeigen/ausblenden (einschließlich definierter, implizierter, virtueller und Anlagen)",PIN_LEAF:"ExcaliBrain mit dem zuletzt aktiven Blatt verbinden"},"en-gb":{},es:{JSON_MALFORMED:"JSON mal formado",JSON_MISSING_KEYS:'JSON debe contener estas 4 claves: "parents", "children", "friends", "nextFriends"',JSON_VALUES_NOT_STRING_ARRAYS:'Los valores de las claves deben ser una matriz no vacía de cadenas. Ejemplo: "parents": ["Padre", "Padres", "arriba"]',EXCALIBRAIN_FILE_NAME:"Ruta del archivo de dibujo de Excalibrain",EXCALIBRAIN_FILE_DESC:"⚠ Este archivo será sobrescrito por el complemento. Si detienes el script y realizas cambios en el grafo, debes renombrar el archivo para conservar tus ediciones, porque la próxima vez que inicies ExcaliBrain, tus ediciones serán sobrescritas por el grafo generado automáticamente.",INDEX_REFRESH_FREQ_NAME:"Frecuencia de actualización del índice",INDEX_REFRESH_FREQ_DESC:"ExcaliBrain actualizará su índice cada vez que cambies los paneles de trabajo, en caso de que un archivo haya cambiado en tu Vault desde la última actualización del índice.
    Esta configuración solo es relevante cuando estás escribiendo en un editor de markdown (sin cambiar de archivo o paneles) y aún deseas que ExcaliBrain actualice su grafo mientras escribes. Debido a que las actualizaciones frecuentes del índice en segundo plano pueden ser intensivas en recursos, tienes la opción de aumentar el intervalo de tiempo para las actualizaciones del índice, lo que reducirá la carga en tu sistema.",HIERARCHY_HEAD:"Ontología",HIERARCHY_DESC:"Ingresa los nombres de campo de Dataview separados por comas (,) que usarás para definir las direcciones de los enlaces en tu grafo.
    También puedes agregar campos a la ontología sobre la marcha desde el editor de markdown escribiendo el nuevo campo al comienzo de un párrafo (por ejemplo, 'Consta de::') y luego llamando a una de las acciones del menú de comandos para Agregar campo de Dataview a la ontología como PADRE, o como HIJO, como AMIGO, o como AMIGO DERECHO",INFER_NAME:"Inferir todas las relaciones implícitas como Amigos",INFER_DESC:"Activado: Todos los enlaces implícitos en el documento se interpretan como AMIGOS.
    Desactivado: Se utiliza la siguiente lógica:
    • Un enlace hacia adelante se infiere como HIJO
    • Un enlace de retroceso se infiere como PADRE
    • Si los archivos se vinculan mutuamente, son AMIGOS
    ",REVERSE_NAME:"Invertir lógica de inferencia",REVERSE_DESC:"Activado: Tratar los enlaces de retroceso como hijos y los enlaces hacia adelante como padres.
    Desactivado: Tratar los enlaces de retroceso como padres y los enlaces hacia adelante como hijos",PARENTS_NAME:"Padres",CHILDREN_NAME:"Hijos",LEFT_FRIENDS_NAME:"Amigos del Lado Izquierdo",RIGHT_FRIENDS_NAME:"Amigos del Lado Derecho",PREVIOUS_NAME:"Anterior (Amigos)",NEXT_NAME:"Siguiente (Amigos)",EXCLUSIONS_NAME:"Excluidos",EXCLUSIONS_DESC:"Campos de Dataview o YAML que nunca se utilizan para la ontología",UNASSIGNED_NAME:"Sin Asignar",UNASSIGNED_DESC:"Campos en tu Vault que no están excluidos ni forman parte de la ontología definida.",ONTOLOGY_SUGGESTER_NAME:"Sugeridor de Ontología",ONTOLOGY_SUGGESTER_DESC:"Activa el sugeridor de ontología en el editor de markdown. Si está habilitado, al escribir la secuencia de activación al comienzo de un párrafo activará el sugeridor que muestra los campos de ontología definidos anteriormente.",ONTOLOGY_SUGGESTER_ALL_NAME:"Secuencia de caracteres para activar el sugeridor genérico. El sugeridor genérico incluirá todos los campos de ontología sin importar su dirección.",ONTOLOGY_SUGGESTER_PARENT_NAME:"Secuencia de caracteres para activar el sugeridor de padres",ONTOLOGY_SUGGESTER_CHILD_NAME:"Secuencia de caracteres para activar el sugeridor de hijos",ONTOLOGY_SUGGESTER_LEFT_FRIEND_NAME:"Secuencia de caracteres para activar el sugeridor de amigos del lado izquierdo",ONTOLOGY_SUGGESTER_RIGHT_FRIEND_NAME:"Secuencia de caracteres para activar el sugeridor de amigos del lado derecho",ONTOLOGY_SUGGESTER_PREVIOUS_NAME:"Secuencia de caracteres para activar el sugeridor de anterior (amigos)",ONTOLOGY_SUGGESTER_NEXT_NAME:"Secuencia de caracteres para activar el sugeridor de siguiente (amigos)",MID_SENTENCE_SUGGESTER_TRIGGER_NAME:"Activador de sugeridor de campos de Dataview en medio de oraciones",MID_SENTENCE_SUGGESTER_TRIGGER_DESC:"Puedes agregar campos a mitad de las oraciones siguiendo uno de estos dos formatos:
    Nos encontramos en [lugar:: [[Restaurante XYZ]]] con [candidato:: [[John Doe]]]
    Nos encontramos en (lugar:: [[Restaurante XYZ]]) con (candidato:: [[John Doe]])
    Si configuras este activador como por ejemplo (, entonces al escribir (::: en cualquier parte de la oración se activará el sugeridor (asumiendo que estás utilizando la combinación predeterminada de activador de sugeridor ::: - ver configuración anterior).
    Más información sobre campos en línea: [Ayuda de DataView](https://blacksmithgu.github.io/obsidian-dataview/data-annotation/)",BOLD_FIELDS_NAME:"Agregar campo seleccionado en negrita",BOLD_FIELDS_DESC:"Agregar el campo seleccionado al texto en negrita, es decir, (**nombre del campo**:: ) resultando en (nombre del campo:: )",DISPLAY_HEAD:"Visualización",COMPACT_VIEW_NAME:"Vista compacta",COMPACT_VIEW_DESC:"Mostrar el grafo en una vista compacta",EXCLUDE_PATHLIST_NAME:"Rutas de archivos a excluir",EXCLUDE_PATHLIST_DESC:"Ingresa una lista de rutas de archivos separadas por comas que se deben excluir del índice.",RENDERALIAS_NAME:"Mostrar alias si está disponible",RENDERALIAS_DESC:"Muestra el alias de la página en lugar del nombre de archivo si está especificado en el front matter de la página.",NODETITLE_SCRIPT_NAME:"Javascript para renderizar nombres de nodos",NODETITLE_SCRIPT_DESC:"Código Javascript para renderizar el título del nodo. Si no lo necesitas, simplemente deja este campo vacío.
    Definición de la función: customNodeLabel: (dvPage: Literal, defaultName:string) => string
    En tu script, puedes referirte al objeto de página Dataview a través de la variable dvPage; y el nombre de página predeterminado (nombre de archivo o alias si está disponible) a través de la variable defaultName. Utiliza la siguiente sintaxis de expresión:
    dvPage['campo 1']??defaultName - este ejemplo mostrará el valor de 'campo 1' si está disponible, de lo contrario mostrará defaultName
    ⚠ Tu línea de código se ejecutará tal como está, asegúrate de agregar un manejo adecuado de excepciones. Además de defaultName y los nombres de campo de dataview, también tienes la libertad de usar cualquier función de javascript (por ejemplo, defaultName.toLowerCase()) y cualquier valor que aparezca en el objeto dvPage, como dvPage.file.path, etc.
    Para explorar el objeto de página de Dataview, abre la Consola de Desarrollador e ingresa el siguiente código:
    DataviewAPI.page('ruta completa del archivo incluyendo extensión')
    Aquí tienes un ejemplo de código que mostrará el valor del campo 'title' si está disponible, de lo contrario mostrará el nombre de archivo, seguido del estado (si está disponible):
    dvPage.title??defaultName & (dvPage.state ? ' - ' & dvPage.state : '')",SHOWINFERRED_NAME:"Mostrar relaciones inferidas",SHOWINFERRED_DESC:"Activado: Mostrar tanto los enlaces explícitamente definidos como los inferidos. Los enlaces hacia adelante son hijos, los enlaces de retroceso son padres, si dos páginas se refieren mutuamente, se infiere que existe una amistad. Las relaciones definidas explícitamente siempre tienen prioridad.
    Desactivado: Mostrar solo relaciones definidas explícitamente.",SHOWVIRTUAL_NAME:"Mostrar nodos virtuales hijos",SHOWVIRTUAL_DESC:"Activado: Mostrar enlaces no resueltos.
    Desactivado: No mostrar enlaces no resueltos.",SHOWATTACHMENTS_NAME:"Incluir adjuntos",SHOWATTACHMENTS_DESC:"Activado: Mostrar todo tipo de archivos en el grafo.
    Desactivado: Mostrar solo archivos de markdown.",STYLE_HEAD:"Estilo",STYLE_DESC:"Los estilos se aplican en secuencia.
    1. Estilo de nodo base
    2. Estilo de nodo inferido (solo se aplica si el nodo es inferido)
    3. Estilo de nodo virtual (solo se aplica si el nodo es virtual)
    4. Estilo de nodo central (solo se aplica si el nodo está en el centro)
    5. Estilo de nodo hermano (solo se aplica si el nodo es un hermano)
    6. Estilo de nodo adjunto (solo se aplica si el nodo es un adjunto)
    7. Estilo basado en etiquetas opcional
    Todos los atributos del estilo de nodo base deben especificarse. Todos los demás estilos pueden tener definiciones parciales. Por ejemplo, puedes agregar un prefijo y sobrescribir el color de fondo del nodo en el estilo basado en etiquetas, sobrescribir el color de fuente en el estilo de nodo inferido y establecer el estilo del borde como punteado en el estilo de nodo virtual.",CANVAS_BGCOLOR:"Color del lienzo",SHOW_FULL_TAG_PATH_NAME:"Mostrar nombre completo de la etiqueta",SHOW_FULL_TAG_PATH_DESC:"Activado: mostrará el nombre completo de la etiqueta, por ejemplo, #lectura/libros/ciencia ficción
    Desactivado: mostrará la sección actual de la etiqueta, por ejemplo, asumiendo la etiqueta anterior, el grafo mostrará solo #lectura, #libros, #ciencia ficción respectivamente a medida que navegas la jerarquía de etiquetas.",SHOW_COUNT_NAME:"Mostrar conteo de vecinos",SHOW_COUNT_DESC:"Mostrar el número de hijos, padres, amigos junto a la puerta del nodo",ALLOW_AUTOZOOM_NAME:"Autozoom",ALLOW_AUTOZOOM_DESC:"Activado: Permitir autozoom
    Desactivado: Deshabilitar autozoom",ALLOW_AUTOFOCUS_ON_SEARCH_NAME:"Autofocus en búsqueda",ALLOW_AUTOFOCUS_ON_SEARCH_DESC:"Activado: Permitir enfoque automático en la búsqueda
    Desactivado: Deshabilitar enfoque automático",ALWAYS_ON_TOP_NAME:"Comportamiento predeterminado de 'siempre arriba' en ventana emergente",ALWAYS_ON_TOP_DESC:"Activado: Cuando se abre ExcaliBrain en una ventana emergente, se abrirá con la nueva ventana en el modo 'siempre arriba'.
    Desactivado: La nueva ventana no estará en el modo 'siempre arriba'.",EMBEDDED_FRAME_WIDTH_NAME:"Ancho del marco incorporado",EMBEDDED_FRAME_HEIGHT_NAME:"Altura del marco incorporado",TAGLIST_NAME:"Etiquetas formateadas",TAGLIST_DESC:"Puedes especificar reglas de formato especial para nodos basadas en etiquetas. Si hay varias etiquetas en la página, se utilizará la primera que coincida con una especificación.
    Los nombres de las etiquetas deben comenzar con # y pueden ser incompletas. Es decir, #libro coincidirá con #libros, #libro/ficción, etc.
    Ingresa una lista separada por comas de etiquetas aquí, luego selecciona en la lista desplegable para cambiar el formato.",MAX_ITEMCOUNT_DESC:"Recuento máximo de nodos",MAX_ITEMCOUNT_NAME:"Número máximo de nodos para mostrar en un área determinada del diseño.es decir, el número máximo de padres, el número máximo de hijos, el número máximo de amigos y el número máximo de hermanos para mostrar. Si hay más elementos, se omitirán del dibujo.",NODESTYLE_INCLUDE_TOGGLE:"Activar: sobrescribir estilo base del nodo para este atributo; Desactivar: aplicar estilo base del nodo para este atributo",NODESTYLE_PREFIX_NAME:"Prefijo",NODESTYLE_PREFIX_DESC:"Carácter o emoji de prefijo que se mostrará delante de la etiqueta del nodo",NODESTYLE_BGCOLOR:"Color de fondo",NODESTYLE_BG_FILLSTYLE:"Estilo de relleno de fondo",NODESTYLE_TEXTCOLOR:"Color de texto",NODESTYLE_BORDERCOLOR:"Color del borde",NODESTYLE_FONTSIZE:"Tamaño de fuente",NODESTYLE_FONTFAMILY:"Fuente",NODESTYLE_MAXLABELLENGTH_NAME:"Longitud máxima de etiqueta",NODESTYLE_MAXLABELLENGTH_DESC:"Número máximo de caracteres a mostrar del título del nodo. Los nodos más largos se truncarán con '...'",NODESTYLE_ROUGHNESS:"Rugosidad del trazo",NODESTYLE_SHARPNESS:"Nitidez del trazo",NODESTYLE_STROKEWIDTH:"Ancho del trazo",NODESTYLE_STROKESTYLE:"Estilo del trazo",NODESTYLE_RECTANGLEPADDING:"Relleno del rectángulo del nodo",NODESTYLE_GATE_RADIUS_NAME:"Radio de la puerta",NODESTYLE_GATE_RADIUS_DESC:"El radio de los 3 pequeños círculos (alias: puertas) que sirven como puntos de conexión para los nodos",NODESTYLE_GATE_OFFSET_NAME:"Desplazamiento de la puerta",NODESTYLE_GATE_OFFSET_DESC:"El desplazamiento a la izquierda y derecha de las puertas de los padres e hijos.",NODESTYLE_GATE_COLOR:"Color del borde de la puerta",NODESTYLE_GATE_BGCOLOR_NAME:"Color de fondo de la puerta",NODESTYLE_GATE_BGCOLOR_DESC:"El color de relleno de la puerta si tiene hijos",NODESTYLE_GATE_FILLSTYLE:"Estilo de relleno de fondo de la puerta",NODESTYLE_BASE:"Estilo base del nodo",NODESTYLE_CENTRAL:"Estilo del nodo central",NODESTYLE_INFERRED:"Estilo de los nodos inferidos",NODESTYLE_VIRTUAL:"Estilo de los nodos virtuales",NODESTYLE_SIBLING:"Estilo de los nodos hermanos",NODESTYLE_ATTACHMENT:"Estilo de los nodos de adjunto",NODESTYLE_FOLDER:"Estilo de los nodos de carpeta",NODESTYLE_TAG:"Estilo de los nodos de etiqueta",LINKSTYLE_COLOR:"Color",LINKSTYLE_WIDTH:"Ancho",LINKSTYLE_STROKE:"Estilo del trazo",LINKSTYLE_ROUGHNESS:"Rugosidad",LINKSTYLE_ARROWSTART:"Cabeza de flecha de inicio",LINKSTYLE_ARROWEND:"Cabeza de flecha de fin",LINKSTYLE_SHOWLABEL:"Mostrar etiqueta en el enlace",LINKSTYLE_FONTSIZE:"Tamaño de fuente de la etiqueta",LINKSTYLE_FONTFAMILY:"Fuente de la etiqueta",LINKSTYLE_BASE:"Estilo base del enlace",LINKSTYLE_INFERRED:"Estilo del enlace inferido",LINKSTYLE_FOLDER:"Estilo del enlace de carpeta",LINKSTYLE_TAG:"Estilo del enlace de etiqueta",DATAVIEW_NOT_FOUND:`Plugin Dataview no encontrado. Por favor, instala o habilita Dataview y luego intenta reiniciar ${w}.`,DATAVIEW_UPGRADE:`Por favor, actualiza Dataview a la versión 0.5.31 o superior. Actualiza Dataview y luego intenta reiniciar ${w}.`,EXCALIDRAW_NOT_FOUND:`Plugin Excalidraw no encontrado. Por favor, instala o habilita Excalidraw y luego intenta reiniciar ${w}.`,EXCALIDRAW_MINAPP_VERSION:`ExcaliBrain requiere Excalidraw ${v} o superior. Por favor, actualiza Excalidraw y luego intenta reiniciar ${w}.`,COMMAND_ADD_PARENT_FIELD:"Agregar campo de Dataview a la ontología como PADRE",COMMAND_ADD_CHILD_FIELD:"Agregar campo de Dataview a la ontología como HIJO",COMMAND_ADD_LEFT_FRIEND_FIELD:"Agregar campo de Dataview a la ontología como AMIGO LADO IZQUIERDO",COMMAND_ADD_RIGHT_FRIEND_FIELD:"Agregar campo de Dataview a la ontología como AMIGO LADO DERECHO",COMMAND_ADD_PREVIOUS_FIELD:"Agregar campo de Dataview a la ontología como ANTERIOR",COMMAND_ADD_NEXT_FIELD:"Agregar campo de Dataview a la ontología como SIGUIENTE",COMMAND_START:"ExcaliBrain Normal",COMMAND_START_HOVER:"ExcaliBrain Editor Emergente",COMMAND_START_POPOUT:"ExcaliBrain Ventana Emergente",COMMAND_STOP:"Detener ExcaliBrain",HOVER_EDITOR_ERROR:"Lo siento. Algo salió mal. Lo más probable es que haya habido una actualización de versión en el Editor Emergente que no he abordado adecuadamente en ExcaliBrain. Normalmente debería solucionarlo en unos pocos días",OPEN_DRAWING:"Guardar instantánea para editar",SEARCH_IN_VAULT:"Los elementos marcados serán listados en una búsqueda vacía.\nBusca un archivo, una carpeta o una etiqueta en tu Vault.\nAlterna entre carpetas y etiquetas para mostrar/ocultar en la lista.",SHOW_HIDE_ATTACHMENTS:"Mostrar/Ocultar adjuntos",SHOW_HIDE_VIRTUAL:"Mostrar/Ocultar nodos virtuales",SHOW_HIDE_INFERRED:"Mostrar/Ocultar nodos inferidos",SHOW_HIDE_ALIAS:"Mostrar/Ocultar alias del documento",SHOW_HIDE_SIBLINGS:"Mostrar/Ocultar hermanos",SHOW_HIDE_EMBEDDEDCENTRAL:"Mostrar el nodo central como marco incorporado",SHOW_HIDE_FOLDER:"Mostrar/Ocultar nodos de carpeta",SHOW_HIDE_TAG:"Mostrar/Ocultar nodos de etiqueta",SHOW_HIDE_PAGES:"Mostrar/Ocultar nodos de página (incluye definidos, inferidos, virtuales y adjuntos)",PIN_LEAF:"Conectar ExcaliBrain a la hoja activa más reciente"},fr:{},hi:{},id:{},it:{},ja:{},ko:{},nl:{},nn:{},pl:{},pt:{},"pt-br":{},ro:{},ru:{JSON_MALFORMED:"Некорректный JSON",JSON_MISSING_KEYS:'JSON должен содержать эти 4 ключа: "Родители", "дети", "друзья", "следующиеДрузья"',JSON_VALUES_NOT_STRING_ARRAYS:'Значения ключей должны быть непустым массивом строк. Например, "Родители": ["Родитель", "Родители", "вверх"]',EXCALIBRAIN_FILE_NAME:"Путь к файлу чертежа Excalibrain",EXCALIBRAIN_FILE_DESC:"⚠ Этот файл будет перезаписан плагином. Если вы остановите скрипт и внесете изменения в график, вам следует переименовать файл, чтобы ваши правки сохранились, потому что при следующем запуске ExcaliBrain ваши правки будут перезаписаны автоматически сгенерированным графиком ExcaliBrain.",INDEX_REFRESH_FREQ_NAME:"Частота обновления индекса",INDEX_REFRESH_FREQ_DESC:"ExcaliBrain будет обновлять свой индекс при переключении рабочих панелей, если с момента последнего обновления индекса в вашем хранилище изменился файл.
    Таким образом, эта настройка актуальна только в том случае, если вы набираете текст в редакторе разметки (не переключаясь между файлами или панелями) и хотите, чтобы ExcaliBrain обновлял график по мере ввода текста. Поскольку частое фоновое обновление индексов может быть ресурсоемким, у вас есть возможность увеличить временной интервал обновления индексов, что, в свою очередь, снизит нагрузку на вашу систему.",HIERARCHY_HEAD:"Онтология",HIERARCHY_DESC:"Онтология - сердце Excalibrain. Она является контекстом нашего графа знаний и относится к системе организации и определения отношений между различными узлами графа. Он позволяет придать связям семантический смысл, связав их с определенными полями Dataview, такими как 'автор' или 'глава', которые влияют на то, как узлы располагаются друг относительно друга на графе. Такой подход обеспечивает более структурированное и осмысленное представление информации, облегчая понимание и изучение взаимосвязи концепций в документах с разметкой в вашем хранилище.

    Введите имена полей через запятую (,), которые вы будете использовать для определения связей в графике.

    Вы также можете добавлять поля в онтологию на лету из редактора разметки, вводя новое поле (например: 'Состоит из::'). а затем вызовите одно из действий палитры команд Добавить поле dataview в онтологию как ..., или открыв контекстное меню.",INFER_NAME:"Вывести все неявные отношения как Друг",INFER_DESC:"Включить: Все неявные ссылки в документе интерпретируются как ДРУЗЬЯ.
    Выключить: Используется следующая логика:
    • Прямая связь определяется как РЕБЕНОК
    • Обратная ссылка считается как РОДИТЕЛЬ
    • Если файлы взаимно ссылаются друг на друга, они являются ДРУЗЬЯМИ
    ",REVERSE_NAME:"Логика обратного вывода",REVERSE_DESC:"Включить: Рассматривать обратные ссылки как детей, а прямые ссылки - как родителей.
    Выключить: Рассматривать обратные ссылки как родителей, а прямые ссылки - как детей",INVERSE_ARROW_DIRECTION_NAME:"Обратное направление стрелки",INVERSE_ARROW_DIRECTION_DESC:"Включить: Отображать наконечники стрелок в направлении, противоположном направлению ссылки.
    Выключить: Отображать наконечники стрелок в том же направлении, что и направление ссылки",HIDDEN_NAME:"Скрытое",HIDDEN_DESC:"Поля Dataview или YAML, которые скрыты в графике.",PARENTS_NAME:"Родители",CHILDREN_NAME:"Дети",LEFT_FRIENDS_NAME:"Левосторонние друзья",RIGHT_FRIENDS_NAME:"Правосторонние друзья",PREVIOUS_NAME:"Предыдущий (Друзья)",NEXT_NAME:"Следующий (Друзья)",EXCLUSIONS_NAME:"Исключено",EXCLUSIONS_DESC:"Поля Dataview или YAML, которые никогда не используются для онтологии. Эти поля не будут отображаться в предложении онтологии в редакторе разметки и не будут показаны в списке неназначенных.",UNASSIGNED_NAME:"Не назначенные",UNASSIGNED_DESC:"Поля в вашем хранилище, которые не исключены и не являются частью определенной онтологии.",ONTOLOGY_SUGGESTER_NAME:"Подсказчик онтологии",ONTOLOGY_SUGGESTER_DESC:"Активировать подсказчик онтологий в редакторе разметки. Если эта функция включена, то при вводе триггерной последовательности в начале абзаца активируется предложение-подсказчик, в котором перечислены поля вашей онтологии, определенные выше.",ONTOLOGY_SUGGESTER_ALL_NAME:"Последовательность символов для запуска универсального подсказчика. Универсальный подсказчик будет включать все поля онтологии независимо от их направления.",ONTOLOGY_SUGGESTER_PARENT_NAME:"Последовательность символов для запуска родительского подсказчика",ONTOLOGY_SUGGESTER_CHILD_NAME:"Последовательность символов для запуска дочернего подсказчика",ONTOLOGY_SUGGESTER_LEFT_FRIEND_NAME:"Последовательность символов для запуска подсказчика-предложения друзей слева",ONTOLOGY_SUGGESTER_RIGHT_FRIEND_NAME:"Последовательность символов для запуска подсказчика-предложения друзей справа",ONTOLOGY_SUGGESTER_PREVIOUS_NAME:"Последовательность символов для запуска предыдущего подсказчика-предложения (друг)",ONTOLOGY_SUGGESTER_NEXT_NAME:"Последовательность символов для запуска следующего подсказчика-предложения (друг)",MID_SENTENCE_SUGGESTER_TRIGGER_NAME:"Триггер подсказчика поля dataview в середине предложения",MID_SENTENCE_SUGGESTER_TRIGGER_DESC:"Вы можете добавлять поля в середине предложений в одном из этих двух форматов:
    Мы встретились [место:: [[XYZ ресторан]]] с [кандидат:: [[Иван Петров]]]
    Мы встретились (место:: [[XYZ ресторан]]) с (кандидат:: [[Иван Петров]])
    Если вы установите этот триггер в значение, например, ( то при вводе текста (::: в любом месте предложения активируется триггер (при условии, что вы используете стандартную комбинацию триггеров ::: - см. настройки выше).
    Дополнительная информация об инлайн-полях: [DataView Help](https://blacksmithgu.github.io/obsidian-dataview/data-annotation/)",BOLD_FIELDS_NAME:"Добавьте выделенное поле с ЖИРНЫМ ШРИФТОМ (BOLD)",BOLD_FIELDS_DESC:"Добавьте выделенное поле в текст с жирным шрифтом, например (**название поля**:: ) в результате (название поля:: )",DISPLAY_HEAD:"Отображение",COMPACT_VIEW_NAME:"Компактный вид",COMPACT_VIEW_DESC:"Управляет шириной графика, задавая максимальное количество столбцов, отображаемых для дочерних и родительских узлов.
    Включить:Максимальное количество дочерних столбцов - 3, а максимальное количество родительских столбцов - 2.
    Выключить:Максимальное количество дочерних столбцов - 5, максимальное количество родительских столбцов - 3",COMPACTING_FACTOR_NAME:"Коэффициент уплотнения",COMPACTING_FACTOR_DESC:"Чем больше число, тем более компактным будет график. Чем меньше число, тем более размашистым будет график.",MINLINKLENGTH_NAME:"Минимальное расстояние между центром и другом",MINLINKLENGTH_DESC:"Минимальное расстояние между центральным узлом и узлами-друзьями. Чем выше число, тем дальше друзья будут от родителя, оставляя больше места для меток онтологии связей.",NODETITLE_SCRIPT_NAME:"Javascript для отображения имен узлов",NODETITLE_SCRIPT_DESC:"Javascript-код для отображения заголовка узла. Если он вам не нужен, просто оставьте это поле пустым.
    Определение функци: customNodeLabel: (dvPage: Literal, defaultName:string) => string
    В своем сценарии вы можете ссылаться на объект страницы dataview через dvPage переменную; и имя страницы по умолчанию (имя файла или псевдоним, если он доступен) через defaultName переменную. Используйте следующий синтаксис выражения:
    dvPage['field 1']??defaultName - В этом примере будет выведено значение 'field 1' если оно доступно, иначе defaultName
    ⚠ Ваша строка кода будет выполнена как есть, убедитесь, что вы добавили правильную обработку исключений. Помимо defaultName и полей dataview, вы также можете использовать любую функцию javascript (например, defaultName.toLowerCase()) и любое значение, которое появляется на dvPage объекте, например, dvPage.file.path, и т.д.
    Чтобы изучить объект страницы dataview, откройте консоль разработчика и введите следующий код:
    DataviewAPI.page('full filepath including extension')
    Вот пример кода, который отобразит значение поля заголовка, если оно доступно, иначе имя файла, а затем состояние (если оно доступно):
    dvPage.title??defaultName & (dvPage.state ? ' - ' & dvPage.state : '')",BEHAVIOR_HEAD:"Поведение",EXCLUDE_PATHLIST_NAME:"Пути файлов для исключения",EXCLUDE_PATHLIST_DESC:"Введите разделенный запятыми список путей файлов, которые нужно исключить из индекса.",STYLE_HEAD:"Стилизация",STYLE_DESC:"Стили применяются последовательно.
    1. Базовый стиль узла (node style)
    2. Предполагаемый стиль узла (применяется только в том случае, если узел является предполагаемым)
    3. Виртуальный стиль узла (применяется только в том случае, если узел является виртуальным)
    4. Центральный стиль узла (применяется только в том случае, если узел находится в центре)
    5. Родственный стиль узла (применяется только в том случае, если узел является братом или сестрой)
    6. Стиль узла Вложения (применяется, только если узел является вложением).
    7. Дополнительный стиль на основе тегов
    Все атрибуты стиля базового узла должны быть указаны. Все остальные стили могут иметь частичные определения. Например, вы можете добавить префикс и переопределить базовый цвет фона узла в стиле, основанном на тегах, переопределите цвет шрифта в стиле предполагаемый-узлв и установите стиль обводки границы на dotted в стиле виртуального-узла.",CANVAS_BGCOLOR:"Цвет холста",SHOW_FULL_TAG_PATH_NAME:"Отображение полного имени тега",SHOW_FULL_TAG_PATH_DESC:"Включить: отобразит полный тег, например #reading/books/sci-fi
    Выключить: будет отображать текущий раздел тега, например, если взять тег выше, то на графике будет отображаться только #reading, #books, #sci-fi соответственно, по мере перемещения по иерархии тегов.",SHOW_COUNT_NAME:"Отображение количества соседей",SHOW_COUNT_DESC:"Покажите количество детей, родителей, друзей рядом с точками входа узла.",ALLOW_AUTOZOOM_NAME:"Автомасштабирования",ALLOW_AUTOZOOM_DESC:"Включить: Разрешить автомасштабирование
    Выключить: Запретить автомасштабирования",MAX_AUTOZOOM_NAME:"Максимальный уровень автомасштабирования [%]",MAX_AUTOZOOM_DESC:"Максимальный уровень масштабирования, применяемый при включенном автомасштабировании. Чем больше это число, тем больше будет масштаб графика.",ALLOW_AUTOFOCUS_ON_SEARCH_NAME:"Автофокус при поиске",ALLOW_AUTOFOCUS_ON_SEARCH_DESC:"Включить: Разрешить Автофокус при Поиске
    Выключить:Запретить автофокус",ALWAYS_ON_TOP_NAME:"Поведение всплывающего окна по умолчанию 'всегда сверху'",ALWAYS_ON_TOP_DESC:"Включить: При открытии ExcaliBrain во всплывающем окне оно будет открываться вместе с новым окном в режиме 'всегда сверху'.
    Выключить: Новое окно не будет находиться в режиме 'всегда сверху'.",EMBEDDED_FRAME_WIDTH_NAME:"Ширина встроенного кадра",EMBEDDED_FRAME_HEIGHT_NAME:"Высота встроенного кадра",TAGLIST_NAME:"Форматированные теги",TAGLIST_DESC:"Вы можете задать специальные правила форматирования для узлов на основе тегов. Если в заметке присутствует несколько тегов, а 'тип заметки::' не определен, будет использована страница, первой подходящая по спецификации.
    Имена тегов должны начинаться с # и могут быть неполными. Например, #книга будет соответствовать #книги, #книга/фантастика, etc.
    ИмЕна тегОв чувсТВительны к реГИСтру
    Введите здесь список тегов через запятую, а затем выберите из выпадающего списка, чтобы изменить форматирование.",NOTE_STYLE_TAG_NAME:"Поле для тегов стиля заметки",NOTE_STYLE_TAG_DESC:"Поле dataview для указания основного тега для стилизации страницы. Этот тег будет использоваться в качестве базового стиля. Если другие теги на странице также имеют определенные стили и эти определения стилей включают префиксные символы, то эти префиксы также будут добавлены к заголовку заметки.",ALL_STYLE_PREFIXES_NAME:"Отображение всех стилей тегов",ALL_STYLE_PREFIXES_DESC:"Отображение префиксов тегов для всех тегов, включенных в заметку",MAX_ITEMCOUNT_DESC:"Максимальное количество узлов",MAX_ITEMCOUNT_NAME:"Максимальное количество узлов, отображаемых в данной области макета.т.е. максимальное количество родителей, максимальное количество детей, максимальное количество друзей, и максимальное количество братьев и сестер для отображения. Если элементов больше, они будут пропущены из рисунка.",NODESTYLE_INCLUDE_TOGGLE:"Вкл.: переопределить базовый стиль узла для этого атрибута; Выкл.: применить базовый стиль узла для этого атрибута",NODESTYLE_PREFIX_NAME:"Префикс",NODESTYLE_PREFIX_DESC:"Префиксный символ или эмодзи для отображения перед меткой узла",NODESTYLE_BGCOLOR:"Цвет фона",NODESTYLE_BG_FILLSTYLE:"Фоновый стиль заполнения",NODESTYLE_TEXTCOLOR:"Цвет текста",NODESTYLE_BORDERCOLOR:"Цвет границ",NODESTYLE_FONTSIZE:"Размер шрифта",NODESTYLE_FONTFAMILY:"Семейство шрифтов",NODESTYLE_MAXLABELLENGTH_NAME:"Максимальная длина метки",NODESTYLE_MAXLABELLENGTH_DESC:"Максимальное количество символов для отображения в заголовке узла. Более длинные узлы будут заканчиваться символом '...'.",NODESTYLE_ROUGHNESS:"Шероховатость обводки (Stroke roughness)",NODESTYLE_SHARPNESS:"Острота обводка (Stroke sharpness)",NODESTYLE_STROKEWIDTH:"Ширина обводки (Stroke width)",NODESTYLE_STROKESTYLE:"Стиль обводки (Stroke style)",NODESTYLE_RECTANGLEPADDING:"Отступ от прямоугольника узла (Padding of the node rectangle)",NODESTYLE_GATE_RADIUS_NAME:"Радиус точки ветвления (Gate radius)",NODESTYLE_GATE_RADIUS_DESC:"Радиус 3 маленьких кругов (они же точки ветвления), служащих точками соединения узлов",NODESTYLE_GATE_OFFSET_NAME:"Смещение точки ветвления",NODESTYLE_GATE_OFFSET_DESC:"Смещение влево и вправо родительских и дочерних точек ветвления.",NODESTYLE_GATE_COLOR:"Цвет границы точки ветвления",NODESTYLE_GATE_BGCOLOR_NAME:"Цвет фона точки ветвления",NODESTYLE_GATE_BGCOLOR_DESC:"Цвет заливки точки ветвления, если у них есть дочерние элементы",NODESTYLE_GATE_FILLSTYLE:"Стиль заливки фона точки ветвления",NODESTYLE_BASE:"Стиль базового узла",NODESTYLE_CENTRAL:"Стиль центрального узла",NODESTYLE_INFERRED:"Стиль узлов вложения",NODESTYLE_URL:"Стиль узлов веб-страницы",NODESTYLE_VIRTUAL:"Стиль виртуальных узлов",NODESTYLE_SIBLING:"Стиль узлов-родственников",NODESTYLE_ATTACHMENT:"Стиль узлов вложений",NODESTYLE_FOLDER:"Стиль узлов папок",NODESTYLE_TAG:"Стиль узлов тегов",LINKSTYLE_COLOR:"Цвет",LINKSTYLE_WIDTH:"Ширина",LINKSTYLE_STROKE:"Стиль обводки",LINKSTYLE_ROUGHNESS:"Шероховатость",LINKSTYLE_ARROWSTART:"Начало наконечника стрелки",LINKSTYLE_ARROWEND:"Конец наконечника стрелки",LINKSTYLE_SHOWLABEL:"Показать ярлык на ссылке",LINKSTYLE_FONTSIZE:"Размер шрифта метки",LINKSTYLE_FONTFAMILY:"Семейство шрифтов ярлыка",LINKSTYLE_BASE:"Стиль базовой ссылки",LINKSTYLE_INFERRED:"Стиль предполагаемой ссылки",LINKSTYLE_FOLDER:"Стиль ссылки на папку",LINKSTYLE_TAG:"Стиль ссылки на тег",DATAVIEW_NOT_FOUND:`Плагин Dataview не найден. Пожалуйста, установите или включите Dataview, а затем попробуйте перезапустить ${w}.`,DATAVIEW_UPGRADE:`Пожалуйста, обновите Dataview до версии 0.5.31 или более новой. Пожалуйста, обновите Dataview, а затем попробуйте перезапустить ${w}.`,EXCALIDRAW_NOT_FOUND:`Не найден плагин Excalidraw. Пожалуйста, установите или включите Excalidraw, а затем попробуйте перезапустить ${w}.`,EXCALIDRAW_MINAPP_VERSION:`Для работы ExcaliBrain требуется Excalidraw ${v} или выше. Пожалуйста, обновите Excalidraw, а затем попробуйте перезапустить ${w}.`,COMMAND_ADD_HIDDEN_FIELD:"Добавить поле dataview в онтологию как СКРЫТЫЙ",COMMAND_ADD_PARENT_FIELD:"Добавить поле dataview в онтологию как РОДИТЕЛЬ",COMMAND_ADD_CHILD_FIELD:"Добавить поле dataview в онтологию как РЕБЕНОК",COMMAND_ADD_LEFT_FRIEND_FIELD:"Добавить поле dataview в онтологию как ЛЕВОСТОРОННИЙ ДРУГ",COMMAND_ADD_RIGHT_FRIEND_FIELD:"Добавить поле dataview в онтологию как ПРАВОСТОРОННИЙ ДРГУ",COMMAND_ADD_PREVIOUS_FIELD:"Добавить поле dataview в онтологию как ПРЕДЫДУЩИЙ",COMMAND_ADD_NEXT_FIELD:"Добавить поле dataview в онтологию как СЛУДУЮЩИЙ",COMMAND_ADD_ONTOLOGY_MODAL:"Добавить поле dataview в онтологию: Открыть модальную онтологию",COMMAND_START:"ExcaliBrain Обычный",COMMAND_START_HOVER:"ExcaliBrain Всплывающий-редактор (Hover-Editor)",COMMAND_START_POPOUT:"Всплывающее окно ExcaliBrain",COMMAND_STOP:"Остановить ExcaliBrain",HOVER_EDITOR_ERROR:"Мне очень жаль. Что-то пошло не так. Скорее всего, произошло обновление версии Hover Editor, которое я не исправил должным образом в ExcaliBrain. Обычно я должен исправить это в течение нескольких дней.",OPEN_DRAWING:"Сохранить снимок для редактирования",SEARCH_IN_VAULT:"Элементы, отмеченные звездочками, будут отображаться в пустом списке.\nНайдите файл, папку или тег в вашем хранилище.\nВключайте/выключайте папки и теги для отображения в списке.",SHOW_HIDE_ATTACHMENTS:"Показать/скрыть вложения",SHOW_HIDE_VIRTUAL:"Показать/скрыть виртуальные узлы",SHOW_HIDE_INFERRED:"Показать/скрыть предполагаемые отношения",SHOW_HIDE_ALIAS:"Показать/скрыть псевдоним документа",SHOW_HIDE_SIBLINGS:"Показать/скрыть братьев и сестер (родственников)",SHOW_HIDE_POWERFILTER:"Включить/выключить фильтр мощности",SHOW_HIDE_EMBEDDEDCENTRAL:"Отображать центральный узел в виде встроенной рамки",SHOW_HIDE_URLS:"Показать/скрыть URL-адреса в центральных заметках как узлы графа",SHOW_HIDE_FOLDER:"Показать/скрыть узлы папок",SHOW_HIDE_TAG:"Показать/скрыть узлы тегов",SHOW_HIDE_PAGES:"Показать/скрыть узлы страниц (включая определенные, предполагаемые, виртуальные и вложения)",PIN_LEAF:"Привяжите ExcaliBrain к последнему активному листу. При привязке ExcaliBrain будет отслеживать изменения только на привязанном листе и открывать синхронизированные страницы только на привязанном листе.",NAVIGATE_BACK:"Переход назад",NAVIGATE_FORWARD:"Переход вперед",REFRESH_VIEW:"Обновить",AUTO_OPEN_DOCUMENT:"Синхронизация навигации. При подключении плагинов изменения в фокусе ExcaliBrain будут отражаться на активной вкладке Obsidian и наоборот.\n\nВы можете привязать/отвязать эту кнопку к кнопке '<> Отображать центральный узел как встроенный фрейм' в настройках ExcaliBrain.",TOGGLE_AUTOOPEN_WHEN_EMBED_TOGGLE_NAME:"Синхронизировать навигацию при включении переключателя Встроить",TOGGLE_AUTOOPEN_WHEN_EMBED_TOGGLE_DESC:"Включить: Когда вы включите '< > Отображение центрального узла ' в виде кнопки встроенной рамки, ExcaliBrain автоматически включит синхронизацию навигации
    Выключить: Когда вы выключите '< > Отображение центрального узла' в виде кнопки встроенной рамки, ExcaliBrain не будет автоматически включать синхронизацию навигации",ADD_TO_ONTOLOGY_MODAL_DESC:"Выберите направление онтологии. Если одна из кнопок выделена, значит, поле уже является частью онтологии в этом направлении."},tr:{},"zh-cn":{JSON_MALFORMED:"JSON 格式错误",JSON_MISSING_KEYS:'JSON 必须包含以下四个键:"parents"(父节点)、"children"(子节点)、"friends"(友好节点)、"nextFriends"(下一友好节点)',JSON_VALUES_NOT_STRING_ARRAYS:'键的值必须是非空字符串数组。例如:"parents": ["Parent", "Parents", "up"]',EXCALIBRAIN_FILE_NAME:"Excalibrain 图绘制的文件路径",EXCALIBRAIN_FILE_DESC:"⚠ 此文件将被插件覆盖。如果您停止脚本并对图表进行更改,应该重新命名文件以保留您的编辑内容,因为下次启动 ExcaliBrain 时,您的编辑内容将被自动生成的 ExcaliBrain 图表覆盖。",INDEX_REFRESH_FREQ_NAME:"索引刷新频率",INDEX_REFRESH_FREQ_DESC:"每当您切换工作窗格时,ExcaliBrain 将更新其索引,以防止您的 Vault 中的文件自上次索引更新以来发生了更改。
    因此,此设置仅在您在 Markdown 编辑器中输入时有效(不切换文件或窗格),并且您仍希望在输入时更新 ExcaliBrain 图表。由于频繁的后台索引更新可能会占用资源,您可以选择增加索引更新的时间间隔,从而减少系统开销。",HIERARCHY_HEAD:"本体论",HIERARCHY_DESC:"输入您将使用的 Dataview 字段名称,用逗号(,)分隔,以定义图表中的链接方向。
    您还可以通过在 Markdown 编辑器中以段落开头键入新字段(例如:'Consits of::')并调用命令面板操作之一来即时添加字段到本体论:添加 dataview 字段到父节点添加 dataview 字段到子节点添加 dataview 字段到友好节点添加 dataview 字段到右侧友好节点",INFER_NAME:"将所有隐式关系推断为友好节点",INFER_DESC:"打开: 将文档中的所有隐式链接解释为友好节点。
    关闭: 将使用以下逻辑:
    • 前向链接被推断为子节点
    • 反向链接被推断为父节点
    • 如果文件相互链接,则它们是友好节点
    ",REVERSE_NAME:"反向推断逻辑",REVERSE_DESC:"打开: 将反向链接视为子节点,将前向链接视为父节点。
    关闭: 将反向链接视为父节点,将前向链接视为子节点",PARENTS_NAME:"父节点",CHILDREN_NAME:"子节点",LEFT_FRIENDS_NAME:"左侧友好节点",RIGHT_FRIENDS_NAME:"右侧友好节点",PREVIOUS_NAME:"上一个(友好节点)",NEXT_NAME:"下一个(友好节点)",EXCLUSIONS_NAME:"排除",EXCLUSIONS_DESC:"永远不用于本体论的 Dataview 或 YAML 字段",UNASSIGNED_NAME:"未指定",UNASSIGNED_DESC:"在您的 Vault 中,既不是排除项也不是已定义本体论的字段。",ONTOLOGY_SUGGESTER_NAME:"本体论建议器",ONTOLOGY_SUGGESTER_DESC:"在 Markdown 编辑器中激活本体论建议器。如果启用,然后在段落开头键入触发序列,将会触发建议器,显示您上面定义的本体论字段。",ONTOLOGY_SUGGESTER_ALL_NAME:"触发通用建议器的字符序列。通用建议器将包含所有本体论字段,而不考虑它们的方向。",ONTOLOGY_SUGGESTER_PARENT_NAME:"触发父节点建议器的字符序列",ONTOLOGY_SUGGESTER_CHILD_NAME:"触发子节点建议器的字符序列",ONTOLOGY_SUGGESTER_LEFT_FRIEND_NAME:"触发左侧友好节点建议器的字符序列",ONTOLOGY_SUGGESTER_RIGHT_FRIEND_NAME:"触发右侧友好节点建议器的字符序列",ONTOLOGY_SUGGESTER_PREVIOUS_NAME:"触发上一个(友好节点)建议器的字符序列",ONTOLOGY_SUGGESTER_NEXT_NAME:"触发下一个(友好节点)建议器的字符序列",MID_SENTENCE_SUGGESTER_TRIGGER_NAME:"中间位置的 Dataview 字段建议器触发字符序列",MID_SENTENCE_SUGGESTER_TRIGGER_DESC:"您可以在句子中间添加字段,遵循以下两种格式之一:
    我们在 [地点:: [[XYZ restaurant]]] 遇见了 [候选人:: [[John Doe]]]
    我们在 (地点:: [[XYZ restaurant]]) 遇见了 (候选人:: [[John Doe]])
    如果您将此触发器设置为例如 (,则在句子中的任何位置键入 (::: 将会触发建议器(假设您正在使用默认的通用建议器触发组合 ::: - 请参阅上面的设置)。更多有关内联字段的信息:[DataView 帮助](https://blacksmithgu.github.io/obsidian-dataview/data-annotation/)",BOLD_FIELDS_NAME:"使用粗体添加选定的字段",BOLD_FIELDS_DESC:"使用粗体类型添加选定的字段,即(**字段名**:: ),结果为(字段名:: )",DISPLAY_HEAD:"显示",COMPACT_VIEW_NAME:"紧凑视图",COMPACT_VIEW_DESC:"以紧凑的视图显示图表",EXCLUDE_PATHLIST_NAME:"要排除的文件路径",EXCLUDE_PATHLIST_DESC:"输入要从索引中排除的文件路径,用逗号分隔。",RENDERALIAS_NAME:"如果可用,显示别名",RENDERALIAS_DESC:"如果页面的 Front Matter 中指定了页面别名,则显示别名而不是文件名。",NODETITLE_SCRIPT_NAME:"用于渲染节点名称的 JavaScript",NODETITLE_SCRIPT_DESC:"用于渲染节点标题的 JavaScript 代码。如果不需要,请将此字段留空。
    函数定义:customNodeLabel: (dvPage: Literal, defaultName:string) => string
    在您的脚本中,您可以通过变量 dvPage 引用 dataview 页面对象;通过变量 defaultName 引用默认页面名称(文件名或别名,如果有)。使用以下表达式语法:
    dvPage['field 1']??defaultName - 该示例将在可用时显示 'field 1' 的值,否则显示 defaultName。
    ⚠ 您的代码将按原样执行,请确保添加适当的异常处理。除了 defaultName 和 dataview 字段名称之外,您还可以自由使用任何 JavaScript 函数(例如 defaultName.toLowerCase())和出现在 dvPage 对象上的任何值,例如 dvPage.file.path 等。
    要查看 dataview 页面对象,请打开开发者控制台并输入以下代码:
    DataviewAPI.page('完整文件路径,包括扩展名')
    以下是一个示例代码,如果可用,将显示 title 字段的值,否则显示文件名,后跟状态(如果可用):
    dvPage.title??defaultName & (dvPage.state ? ' - ' & dvPage.state : '')",SHOWINFERRED_NAME:"显示推断关系",SHOWINFERRED_DESC:"打开: 显示显式定义的关系和推断的关系。前向链接为子节点,反向链接为父节点,如果两个页面相互引用,则推断为友好关系。显式定义的关系始终优先。
    关闭: 仅显示显式定义的关系。",SHOWVIRTUAL_NAME:"显示虚拟子节点",SHOWVIRTUAL_DESC:"打开: 显示未解析的链接。
    关闭: 不显示未解析的链接。",SHOWATTACHMENTS_NAME:"包括附件",SHOWATTACHMENTS_DESC:"打开: 在图表上显示所有类型的文件。
    关闭: 仅显示 Markdown 文件。",STYLE_HEAD:"样式",STYLE_DESC:"样式按顺序应用。
    1. 基本 节点样式
    2. 推断 节点样式(仅在节点是推断的情况下应用)
    3. 虚拟 节点样式(仅在节点是虚拟的情况下应用)
    4. 中心 节点样式(仅在节点位于中心时应用)
    5. 兄弟 节点样式(仅在节点是兄弟节点时应用)
    6. 附件 节点样式(仅在节点是附件时应用)
    7. 基于标签 的样式
    必须指定基本节点样式的所有属性。其他样式可以部分定义。例如,您可以在基于标签的样式中添加前缀并覆盖基本节点背景颜色,在推断节点样式中覆盖字体颜色,在虚拟节点样式中设置边框线样式为虚线。",CANVAS_BGCOLOR:"画布颜色",SHOW_FULL_TAG_PATH_NAME:"显示完整标签名称",SHOW_FULL_TAG_PATH_DESC:"打开: 将显示完整的标签,例如 #reading/books/sci-fi
    关闭: 将根据标签层级显示当前部分标签,例如在上面的标签中,导航标签层级时分别只显示 #reading、#books、#sci-fi。",SHOW_COUNT_NAME:"显示邻居数量",SHOW_COUNT_DESC:"显示子节点、父节点、友好节点旁边的数量",ALLOW_AUTOZOOM_NAME:"自动缩放",ALLOW_AUTOZOOM_DESC:"打开: 允许自动缩放
    关闭: 禁用自动缩放",ALLOW_AUTOFOCUS_ON_SEARCH_NAME:"搜索时自动聚焦",ALLOW_AUTOFOCUS_ON_SEARCH_DESC:"打开: 允许搜索时自动聚焦
    关闭: 禁用搜索时自动聚焦",ALWAYS_ON_TOP_NAME:"弹出窗口默认“置顶”行为",ALWAYS_ON_TOP_DESC:"打开: 在弹出窗口中打开 ExcaliBrain 时,新窗口将以“始终置顶”模式打开。
    关闭: 新窗口将不会以“始终置顶”模式打开。",EMBEDDED_FRAME_WIDTH_NAME:"嵌入帧宽度",EMBEDDED_FRAME_HEIGHT_NAME:"嵌入帧高度",TAGLIST_NAME:"格式化标签",TAGLIST_DESC:"您可以为节点指定基于标签的特殊格式规则。如果页面上存在多个标签,则将使用第一个匹配规范的标签。
    标签名应以 # 开头,可以是不完整的。例如,#book 将匹配 #books、#book/fiction 等。
    在此处输入逗号分隔的标签列表,然后从下拉列表中选择以更改格式。",MAX_ITEMCOUNT_DESC:"最大节点数量",MAX_ITEMCOUNT_NAME:"在布局中显示的节点的最大数量。例如:最大父节点数、最大子节点数、最大友好节点数和最大兄弟节点数。如果有更多节点,则它们将从图中省略。",NODESTYLE_INCLUDE_TOGGLE:"打开:覆盖此属性的基本节点样式;关闭:应用此属性的基本节点样式",NODESTYLE_PREFIX_NAME:"前缀",NODESTYLE_PREFIX_DESC:"节点标签前显示的前缀字符或表情符号",NODESTYLE_BGCOLOR:"背景颜色",NODESTYLE_BG_FILLSTYLE:"背景填充样式",NODESTYLE_TEXTCOLOR:"文本颜色",NODESTYLE_BORDERCOLOR:"边框颜色",NODESTYLE_FONTSIZE:"字体大小",NODESTYLE_FONTFAMILY:"字体族",NODESTYLE_MAXLABELLENGTH_NAME:"最大标签长度",NODESTYLE_MAXLABELLENGTH_DESC:"要从节点标题中显示的最大字符数。较长的节点标题将以 '...' 结尾",NODESTYLE_ROUGHNESS:"笔触粗糙度",NODESTYLE_SHARPNESS:"笔触锐化度",NODESTYLE_STROKEWIDTH:"笔触宽度",NODESTYLE_STROKESTYLE:"笔触样式",NODESTYLE_RECTANGLEPADDING:"节点矩形的填充",NODESTYLE_GATE_RADIUS_NAME:"连接点半径",NODESTYLE_GATE_RADIUS_DESC:"作为节点连接点的 3 个小圆(别名:连接点)的半径",NODESTYLE_GATE_OFFSET_NAME:"连接点偏移",NODESTYLE_GATE_OFFSET_DESC:"父节点和子节点连接点的左右偏移量。",NODESTYLE_GATE_COLOR:"连接点边框颜色",NODESTYLE_GATE_BGCOLOR_NAME:"连接点背景颜色",NODESTYLE_GATE_BGCOLOR_DESC:"连接点的填充颜色(如果具有子节点)",NODESTYLE_GATE_FILLSTYLE:"连接点背景填充样式",NODESTYLE_BASE:"基本节点样式",NODESTYLE_CENTRAL:"中心节点样式",NODESTYLE_INFERRED:"推断节点样式",NODESTYLE_VIRTUAL:"虚拟节点样式",NODESTYLE_SIBLING:"兄弟节点样式",NODESTYLE_ATTACHMENT:"附件节点样式",NODESTYLE_FOLDER:"文件夹节点样式",NODESTYLE_TAG:"标签节点样式",LINKSTYLE_COLOR:"颜色",LINKSTYLE_WIDTH:"宽度",LINKSTYLE_STROKE:"笔触样式",LINKSTYLE_ROUGHNESS:"粗糙度",LINKSTYLE_ARROWSTART:"起始箭头头部",LINKSTYLE_ARROWEND:"结束箭头头部",LINKSTYLE_SHOWLABEL:"在连接上显示标签",LINKSTYLE_FONTSIZE:"标签字体大小",LINKSTYLE_FONTFAMILY:"标签字体族",LINKSTYLE_BASE:"基本连接样式",LINKSTYLE_INFERRED:"推断连接样式",LINKSTYLE_FOLDER:"文件夹连接样式",LINKSTYLE_TAG:"标签连接样式",DATAVIEW_NOT_FOUND:`未找到 Dataview 插件。请安装或启用 Dataview,然后尝试重新启动 ${w}。`,DATAVIEW_UPGRADE:`请升级 Dataview 到 0.5.31 或更高版本。请更新 Dataview,然后尝试重新启动 ${w}。`,EXCALIDRAW_NOT_FOUND:`未找到 Excalidraw 插件。请安装或启用 Excalidraw,然后尝试重新启动 ${w}。`,EXCALIDRAW_MINAPP_VERSION:`ExcaliBrain 需要 Excalidraw ${v} 或更高版本。请升级 Excalidraw,然后尝试重新启动 ${w}。`,COMMAND_ADD_PARENT_FIELD:"将 dataview 字段添加到本体作为父节点",COMMAND_ADD_CHILD_FIELD:"将 dataview 字段添加到本体作为子节点",COMMAND_ADD_LEFT_FRIEND_FIELD:"将 dataview 字段添加到本体作为左侧友好节点",COMMAND_ADD_RIGHT_FRIEND_FIELD:"将 dataview 字段添加到本体作为右侧友好节点",COMMAND_ADD_PREVIOUS_FIELD:"将 dataview 字段添加到本体作为上一个节点",COMMAND_ADD_NEXT_FIELD:"将 dataview 字段添加到本体作为下一个节点",COMMAND_START:"ExcaliBrain 普通模式",COMMAND_START_HOVER:"ExcaliBrain 悬停编辑器模式",COMMAND_START_POPOUT:"ExcaliBrain 弹出窗口模式",COMMAND_STOP:"停止 ExcaliBrain",HOVER_EDITOR_ERROR:"对不起,发生了一些错误。很可能是 Hover 编辑器更新了版本,而我在 ExcaliBrain 中没有适当处理。通常我会在几天内解决此问题",OPEN_DRAWING:"保存用于编辑的快照",SEARCH_IN_VAULT:"收藏夹中的项目将列在空搜索中。\n在您的 Vault 中搜索文件、文件夹或标签。\n切换文件夹和标签的显示/隐藏以在列表中显示。",SHOW_HIDE_ATTACHMENTS:"显示/隐藏附件",SHOW_HIDE_VIRTUAL:"显示/隐藏虚拟节点",SHOW_HIDE_INFERRED:"显示/隐藏推断节点",SHOW_HIDE_ALIAS:"显示/隐藏文档别名",SHOW_HIDE_SIBLINGS:"显示/隐藏兄弟节点",SHOW_HIDE_EMBEDDEDCENTRAL:"将中心节点显示为嵌入式框架",SHOW_HIDE_FOLDER:"显示/隐藏文件夹节点",SHOW_HIDE_TAG:"显示/隐藏标签节点",SHOW_HIDE_PAGES:"显示/隐藏页面节点(包括已定义、推断、虚拟和附件节点)",PIN_LEAF:"链接 ExcaliBrain 到最近的活动叶子"},"zh-tw":{},hu:{JSON_MALFORMED:"Hibás JSON",JSON_MISSING_KEYS:'A JSON-nak rendelkeznie kell az alábbi 4 kulccsal: "parents", "children", "friends", "nextFriends"',JSON_VALUES_NOT_STRING_ARRAYS:'A kulcsok értékeinek nem üres string tömbnek kell lenniük. Példa: "parents": ["Szülő", "Szülők", "feljebb"]',EXCALIBRAIN_FILE_NAME:"Excalibrain rajz fájl elérési útvonala",EXCALIBRAIN_FILE_DESC:"⚠ Ez a fájl felül lesz írva a bővítmény által. Ha leállítod a szkriptet és változtatsz a gráfban, akkor át kell nevezned a fájlt, hogy a módosításaid megmaradjanak. Mert amikor újra elindítod az ExcaliBrain-t, a módosításaidat felülírja az automatikusan generált ExcaliBrain gráf.",INDEX_REFRESH_FREQ_NAME:"Index frissítési gyakorisága",INDEX_REFRESH_FREQ_DESC:"Az ExcaliBrain frissíti az indexét, amikor váltasz munkatérre, abban az esetben, ha az előző index frissítése óta megváltozott egy fájl a Vault-odban.
    Ez a beállítás csak akkor érvényes, ha egy markdown szerkesztőben írsz (nem váltasz fájlokat vagy térképeket), és mégis azt szeretnéd, hogy az ExcaliBrain frissítse a gráfodat ahogy gépelsz. Mivel a gyakori háttérindex frissítések erőforrásigényesek lehetnek, van lehetőséged növelni az index-frissítés időközét, amely csökkenti a rendszer terhelését.",HIERARCHY_HEAD:"Ontológia",HIERARCHY_DESC:"Add meg a Dataview mezőneveket vesszővel elválasztva (,) úgy, hogy ezeket fogod használni a link irányok meghatározásához a gráfodban.
    Az ontológiát a markdown szerkesztőben a mező elé írva is bővítheted (például: 'Tartalmazza::') majd valamelyik parancspaletta parancs segítségével hozzáadhatod a dataview mezőt az ontológiához, mint SZÜLŐ, GYERMEK, BARÁT, vagy JOBBSZÉL BARÁT",INFER_NAME:"Az összes implicit kapcsolat barátként való megjelenítése",INFER_DESC:"Be: Az összes implcita linket a dokumentumban barátként értelmezi.
    Ki: Az alábbi logikát alkalmazza:
    • Egy előre mutató linket gyermekként értelmez
    • Egy visszamutató linket szülőként értelmez
    • Ha két fájl kölcsönösen hivatkozik egymásra, azok barátok
    ",REVERSE_NAME:"Fordított következtető logika",REVERSE_DESC:"Be: A visszamutató linkeket gyerekként, az előre mutatókat szülőkként kezeli.
    Ki: A visszamutató linkeket szülőkként, az előre mutatókat gyerekként kezeli",PARENTS_NAME:"Szülők",CHILDREN_NAME:"Gyermekek",LEFT_FRIENDS_NAME:"Baloldali barátok",RIGHT_FRIENDS_NAME:"Jobboldali barátok",PREVIOUS_NAME:"Előző (barátok)",NEXT_NAME:"Következő (barátok)",EXCLUSIONS_NAME:"Kizárt",EXCLUSIONS_DESC:"Dataview vagy YAML mezők, amelyek sosem kerülnek felhasználásra az ontológiában",UNASSIGNED_NAME:"Nem hozzárendelt",UNASSIGNED_DESC:"A Vault-odban található mezők, amelyek sem az ontológia részei, sem kizárt mezők.",ONTOLOGY_SUGGESTER_NAME:"Ontológia javasoló",ONTOLOGY_SUGGESTER_DESC:"Aktiválja az ontológia javasolót a markdown szerkesztőben. Ha engedélyezve van, akkor a paragrafus elején írt trigger szekvenciával aktiválhatod a javasolót, ami felsorolja az előzőleg meghatározott ontológiai mezőket.",ONTOLOGY_SUGGESTER_ALL_NAME:"Karakter szekvencia a generikus javasoló aktiválásához. A generikus javasoló az összes ontológiai mezőt tartalmazza függetlenül az irányuktól.",ONTOLOGY_SUGGESTER_PARENT_NAME:"Karakter szekvencia a szülő javasoló aktiválásához",ONTOLOGY_SUGGESTER_CHILD_NAME:"Karakter szekvencia a gyermek javasoló aktiválásához",ONTOLOGY_SUGGESTER_LEFT_FRIEND_NAME:"Karakter szekvencia a baloldali barát javasoló aktiválásához",ONTOLOGY_SUGGESTER_RIGHT_FRIEND_NAME:"Karakter szekvencia a jobboldali barát javasoló aktiválásához",ONTOLOGY_SUGGESTER_PREVIOUS_NAME:"Karakter szekvencia az előző (barát) javasoló aktiválásához",ONTOLOGY_SUGGESTER_NEXT_NAME:"Karakter szekvencia a következő (barát) javasoló aktiválásához",MID_SENTENCE_SUGGESTER_TRIGGER_NAME:"Köztes adatmező javasoló kiváltó",MID_SENTENCE_SUGGESTER_TRIGGER_DESC:"Lehetőség van mezőket köztes helyen a mondatokban hozzáadni a következő két formátum valamelyikét használva:
    We met at [location:: [[XYZ restaurant]]] with [candidate:: [[John Doe]]]
    We met at (location:: [[XYZ restaurant]]) with (candidate:: [[John Doe]])
    Ha ezt a kiváltót például (-ra állítod, akkor bárhol a mondatban beírva (::: aktiválja a javasolót (feltéve, hogy a generikus javasoló kiváltója az alapértelmezett ::: - lásd fent).
    További információ az inline mezőkről: [DataView Help](https://blacksmithgu.github.io/obsidian-dataview/data-annotation/)",BOLD_FIELDS_NAME:"Kijelölt mezők félkövéren",BOLD_FIELDS_DESC:"A kijelölt mezőt félkövér típusú szöveggel adja hozzá, azaz (**mező neve**:: ) eredményezve (mező neve:: )",DISPLAY_HEAD:"Megjelenítés",COMPACT_VIEW_NAME:"Sűrű nézet",COMPACT_VIEW_DESC:"A gráf megjelenítése sűrű nézetben",EXCLUDE_PATHLIST_NAME:"Kizárandó fájl elérési útvonalak",EXCLUDE_PATHLIST_DESC:"Adja meg a kizárandó fájlok elérési útvonalait vesszővel elválasztva.",RENDERALIAS_NAME:"Megjelenítési azonosító ha elérhető",RENDERALIAS_DESC:"Megjeleníti az oldal azonosítóját a fájlnév helyett, ha az az oldal előlapján van meghatározva.",NODETITLE_SCRIPT_NAME:"Node nevek megjelenítéséhez JavaScript kód",NODETITLE_SCRIPT_DESC:"JavaScript kód a node nevének megjelenítésére. Ha nem szükséges, hagyja ezt a mezőt üresen.
    Függvény definíció: customNodeLabel: (dvPage: Literal, defaultName:string) => string
    A szkriptben hivatkozhat a dataview oldal objektumára a dvPage változóval; és az alapértelmezett oldalnévre (fájlnév vagy azonosító, ha elérhető) a defaultName változóval. Használhatod a következő kifejezést: dvPage['mező 1']??defaultName - ez az példa megjeleníti a 'mező 1' értékét, ha elérhető, különben az alapértelmezett névet
    ⚠ A kódodat éppen úgy futtatjuk le, ahogy van, tehát győződj meg róla, hogy megfelelő kivételkezelést adtál hozzá. Az defaultName és a dataview mezőnevek mellett szabadon használhatsz bármilyen JavaScript függvényt (például defaultName.toLowerCase()) és bármilyen értéket, ami a dvPage objektumon megjelenik, pl. dvPage.file.path, stb.
    A dataview oldal objektumot felderítheted az Új oldal megnyitásával és a következő kóddal:
    DataviewAPI.page('teljes fájlnév kiterjesztéssel')
    Itt van egy példa kód, ami a cím mező értékét fogja megjeleníteni, ha elérhető, egyébként az alapértelmezett fájlnévet, és mögé fűzi az állapotot (ha elérhető):
    dvPage.title??defaultName & (dvPage.state ? ' - ' & dvPage.state : '')",SHOWINFERRED_NAME:"Az előállított kapcsolatok megjelenítése",SHOWINFERRED_DESC:"Be: Mind az expliciten meghatározott, mind az előállított kapcsolatokat megjeleníti. Az előre mutató linkek gyerekek, a visszamutatók szülők, ha két oldal egymásra hivatkozik, akkor barátokként lesznek kezelve. Az expliciten meghatározott kapcsolatok mindig előnyt élveznek.
    Ki: Csak az expliciten meghatározott kapcsolatokat jeleníti meg.",SHOWVIRTUAL_NAME:"Virtuális gyerek node-ok megjelenítése",SHOWVIRTUAL_DESC:"Be: Megjeleníti a feloldatlan linkeket.
    Ki: Nem jeleníti meg a feloldatlan linkeket.",SHOWATTACHMENTS_NAME:"Mellékletek beillesztése",SHOWATTACHMENTS_DESC:"Be: Minden típusú fájlt megjelenít a gráfban.
    Ki: Csak a markdown fájlokat jeleníti meg.",STYLE_HEAD:"Stílusok",STYLE_DESC:"A stílusokat sorrendben alkalmazzuk.
    1. Alap node stílus
    2. Előállított node stílus (csak akkor alkalmazódik, ha a node előállított)
    3. Virtuális node stílus (csak akkor alkalmazódik, ha a node virtuális)
    4. Középponti node stílus (csak akkor alkalmazódik, ha a node a középpontban van)
    5. Testvérek node stílus (csak akkor alkalmazódik, ha a node testvér)
    6. Melléklet node stílus (csak akkor alkalmazódik, ha a node melléklet)
    7. Opcionális címkén alapuló stílus
    Az alap node stílus minden attribútumát meg kell adni. A többi stílusnak részleges definíciója lehet. Például hozzáadhatsz egy előtagot és felülírhatod az alapértelmezett node háttérszínét a címkén alapuló stílusban, a szöveg színét az előállított node stílusban és a szaggatott vonalas keretet a virtuális node stílusban.",CANVAS_BGCOLOR:"Vászon szín",SHOW_FULL_TAG_PATH_NAME:"Teljes címke név megjelenítése",SHOW_FULL_TAG_PATH_DESC:"Be: megjeleníti a teljes címkét, például #reading/books/sci-fi
    Ki: a címke aktuális részét jeleníti meg, például a fent említett címkéknél csak #reading, #books, #sci-fi lenne látható a gráfban a címke hierarchia mentén navigálva.",SHOW_COUNT_NAME:"Szomszédok számának megjelenítése",SHOW_COUNT_DESC:"Megmutatja a gyermekek, szülők, barátok számát a node kapuja mellett",ALLOW_AUTOZOOM_NAME:"Automatikus nagyítás",ALLOW_AUTOZOOM_DESC:"Be: Engedélyezi az automatikus nagyítást
    Ki: Letiltja az automatikus nagyítást",ALLOW_AUTOFOCUS_ON_SEARCH_NAME:"Automatikus fókusz a keresésnél",ALLOW_AUTOFOCUS_ON_SEARCH_DESC:"Be: Engedélyezi az automatikus fókuszt a keresésnél
    Ki: Letiltja az automatikus fókuszt",ALWAYS_ON_TOP_NAME:"Alapértelmezett 'mindig legfelül' viselkedés lebegtetett ablak esetén",ALWAYS_ON_TOP_DESC:"Be: Ha az ExcaliBrain-t lebegtetett ablakban nyitod meg, akkor az új ablak mindig 'mindig legfelül' módban nyílik meg.
    Ki: Az új ablak nem lesz 'mindig legfelül' módban.",EMBEDDED_FRAME_WIDTH_NAME:"Beágyazott keret szélessége",EMBEDDED_FRAME_HEIGHT_NAME:"Beágyazott keret magassága",TAGLIST_NAME:"Formázott címkék",TAGLIST_DESC:"Különleges formázási szabályokat adhatsz meg a node-okhoz címkék alapján. Ha az oldalon több címke van jelen, az első illeszkedő specifikációt használja.
    A címkéknek a #-al kell kezdődniük és nem teljesek is lehetnek. Tehát például #book illeszkedni fog #books, #book/fiction stb.-re.
    Add meg a címkéket vesszővel elválasztva, majd választhatsz a legördülő listából a formázás megváltoztatásához.",MAX_ITEMCOUNT_DESC:"Maximális node szám",MAX_ITEMCOUNT_NAME:"Maximális node-ok száma a elrendezés adott részén.Azaz a maximális szám a szülőknek, a gyermekeknek, a barátoknak és a testvéreknek a megjelenítéshez. Ha több elem van, akkor nem jelennek meg a rajzon.",NODESTYLE_INCLUDE_TOGGLE:"Be: Az alap node stílus felülbírálása ehhez az attribútumhoz; Ki: Az alap node stílus alkalmazása ehhez az attribútumhoz",NODESTYLE_PREFIX_NAME:"Előtag",NODESTYLE_PREFIX_DESC:"Előtag karakter vagy emojival a node címke elé",NODESTYLE_BGCOLOR:"Háttérszín",NODESTYLE_BG_FILLSTYLE:"Háttér kitöltési stílusa",NODESTYLE_TEXTCOLOR:"Szövegszín",NODESTYLE_BORDERCOLOR:"Keret szín",NODESTYLE_FONTSIZE:"Betűméret",NODESTYLE_FONTFAMILY:"Betűcsalád",NODESTYLE_MAXLABELLENGTH_NAME:"Max címke hossza",NODESTYLE_MAXLABELLENGTH_DESC:"A node címke maximum megjelenített karaktereinek száma. Hosszabb node-ok végén '...' jel lesz látható",NODESTYLE_ROUGHNESS:"Vonal élsőség",NODESTYLE_SHARPNESS:"Vonal élesség",NODESTYLE_STROKEWIDTH:"Vonal vastagsága",NODESTYLE_STROKESTYLE:"Vonal stílusa",NODESTYLE_RECTANGLEPADDING:"A node téglalapának kitöltése",NODESTYLE_GATE_RADIUS_NAME:"Kapu sugara",NODESTYLE_GATE_RADIUS_DESC:"A 3 kis kör sugara (alias: kapuk) a node-ok kapcsolódási pontjaként szolgál",NODESTYLE_GATE_OFFSET_NAME:"Kapu eltolása",NODESTYLE_GATE_OFFSET_DESC:"Az eltolás a szülők és gyermekek kapuinak bal és jobb oldalán",NODESTYLE_GATE_COLOR:"Kapu keret színe",NODESTYLE_GATE_BGCOLOR_NAME:"Kapu háttérszíne",NODESTYLE_GATE_BGCOLOR_DESC:"A kapu kitöltési színe, ha vannak gyermekek",NODESTYLE_GATE_FILLSTYLE:"Kapu háttér kitöltési stílusa",NODESTYLE_BASE:"Alap node stílus",NODESTYLE_CENTRAL:"Középponti node stílusa",NODESTYLE_INFERRED:"Előállított node stílusa",NODESTYLE_VIRTUAL:"Virtuális node stílusa",NODESTYLE_SIBLING:"Testvér node stílusa",NODESTYLE_ATTACHMENT:"Melléklet node stílusa",NODESTYLE_FOLDER:"Mappa node stílusa",NODESTYLE_TAG:"Címke node stílusa",LINKSTYLE_COLOR:"Szín",LINKSTYLE_WIDTH:"Vastagság",LINKSTYLE_STROKE:"Vonal stílusa",LINKSTYLE_ROUGHNESS:"Vonal élsőség",LINKSTYLE_ARROWSTART:"Nyíl feje kezdetén",LINKSTYLE_ARROWEND:"Nyíl feje végén",LINKSTYLE_SHOWLABEL:"Címke megjelenítése a link-en",LINKSTYLE_FONTSIZE:"Címke betűmérete",LINKSTYLE_FONTFAMILY:"Címke betűcsaládja",LINKSTYLE_BASE:"Alap link stílus",LINKSTYLE_INFERRED:"Előállított link stílusa",LINKSTYLE_FOLDER:"Mappa link stílusa",LINKSTYLE_TAG:"Címke link stílusa",DATAVIEW_NOT_FOUND:`A Dataview bővítmény nem található. Kérlek telepítsd vagy engedélyezd a Dataview-t, majd próbáld újra indítani a(z) ${w} alkalmazást.`,DATAVIEW_UPGRADE:`Kérlek frissítsd a Dataview-t 0.5.31 vagy újabb verzióra. Kérlek frissítsd a Dataview-t, majd próbáld újra indítani a(z) ${w} alkalmazást.`,EXCALIDRAW_NOT_FOUND:`Az Excalidraw bővítmény nem található. Kérlek telepítsd vagy engedélyezd az Excalidraw-t, majd próbáld újra indítani a(z) ${w} alkalmazást.`,EXCALIDRAW_MINAPP_VERSION:`Az ExcaliBrain az Excalidraw ${v} vagy újabb verzióját igényli. Kérlek frissítsd az Excalidraw-t, majd próbáld újra indítani a(z) ${w} alkalmazást.`,COMMAND_ADD_PARENT_FIELD:"Dataview mező hozzáadása ontológiaként SZÜLŐKÉNT",COMMAND_ADD_CHILD_FIELD:"Dataview mező hozzáadása ontológiaként GYERMEKEKKÉNT",COMMAND_ADD_LEFT_FRIEND_FIELD:"Dataview mező hozzáadása ontológiaként BAL-OLDALI BARÁTKÉNT",COMMAND_ADD_RIGHT_FRIEND_FIELD:"Dataview mező hozzáadása ontológiaként JOBB-OLDALI BARÁTKÉNT",COMMAND_ADD_PREVIOUS_FIELD:"Dataview mező hozzáadása ontológiaként ELŐZŐKÉNT",COMMAND_ADD_NEXT_FIELD:"Dataview mező hozzáadása ontológiaként KÖVETKEZŐKÉNT",COMMAND_START:"ExcaliBrain Normál",COMMAND_START_HOVER:"ExcaliBrain lebegő szerkesztő",COMMAND_START_POPOUT:"ExcaliBrain különálló ablak",COMMAND_STOP:"ExcaliBrain leállítása",HOVER_EDITOR_ERROR:"Sajnálom. Valami hiba történt. Valószínűleg a Hover Editor verziófrissítése okozta, amelyet még nem kezeltem megfelelően az ExcaliBrain-ben. Általában néhány napon belül megoldom ezt.",OPEN_DRAWING:"Mentés szerkesztéshez",SEARCH_IN_VAULT:"A csillagozott elemek megjelennek az üres keresésben.\nKeresés fájl, mappa vagy címke szerint a Vault-ban.\nKapcsold ki/ki a mappákat és címkéket a listában történő megjelenítéshez.",SHOW_HIDE_ATTACHMENTS:"Mellékletek megjelenítése/elrejtése",SHOW_HIDE_VIRTUAL:"Virtuális node-ok megjelenítése/elrejtése",SHOW_HIDE_INFERRED:"Előállított node-ok megjelenítése/elrejtése",SHOW_HIDE_ALIAS:"Dokumentum alias megjelenítése/elrejtése",SHOW_HIDE_SIBLINGS:"Testvér node-ok megjelenítése/elrejtése",SHOW_HIDE_EMBEDDEDCENTRAL:"Középponti node beágyazott keretként megjelenítése",SHOW_HIDE_FOLDER:"Mappa node-ok megjelenítése/elrejtése",SHOW_HIDE_TAG:"Címke node-ok megjelenítése/elrejtése",SHOW_HIDE_PAGES:"Oldal node-ok megjelenítése/elrejtése (definiált, előállított, virtuális és melléklet)",PIN_LEAF:"ExcaliBrain összekapcsolása az aktív legutóbbi elemmel"}}[n.moment.locale()];function H(e){return M||c({fn:H,where:"src/lang/helpers.ts",message:"Error: locale not found",data:n.moment.locale()}),M&&M[e]||x[e]}class P extends n.Modal{title;message;resolve;constructor(e,t,i){super(e),this.title=t,this.message=i}onOpen(){this.createForm()}onClose(){}createForm(){this.titleEl.setText(this.title),this.contentEl.createDiv({cls:"excalibrain-prompt-center",text:this.message}),this.contentEl.createDiv({cls:"excalibrain-prompt-center"},(e=>{e.style.textAlign="right",e.createEl("button",{text:"Ok"}).onclick=()=>{this.resolve(!0),this.close()},e.createEl("button",{text:"Cancel"}).onclick=()=>{this.resolve(!1),this.close()}}))}show(e){this.resolve=e,this.open()}}const G=/^(?:http(?:s)?:\/\/)?(?:www\.)?youtu(?:be\.com|\.be)\/(embed\/|watch\?v=|shorts\/|playlist\?list=|embed\/videoseries\?list=)?([a-zA-Z0-9_-]+)(?:\?t=|&t=|\?start=|&start=)?([a-zA-Z0-9_-]+)?[^\s]*$/,z=/^(?:http(?:s)?:\/\/)?(?:(?:w){3}.)?(?:player\.)?vimeo\.com\/(?:video\/)?([^?\s]+)(?:\?.*)?$/;class V{page;settings;ea;style={};center={x:0,y:0};id;friendGateId;nextFriendGateId;parentGateId;childGateId;friendGateOnLeft;title;isCentral=!1;isEmbedded=!1;embeddedElementIds=[];constructor(e){e.embeddedElementIds&&(this.embeddedElementIds=e.embeddedElementIds),this.isEmbedded=Boolean(e.isEmbeded),this.isCentral=e.isCentral,this.page=e.page,this.settings=e.page.plugin.settings,this.ea=e.ea,this.page.isFolder?this.style={...this.settings.baseNodeStyle,...e.isCentral?this.settings.centralNodeStyle:{},...e.isSibling?this.settings.siblingNodeStyle:{},...this.settings.folderNodeStyle}:this.page.isTag?this.style={...this.settings.baseNodeStyle,...e.isCentral?this.settings.centralNodeStyle:{},...e.isSibling?this.settings.siblingNodeStyle:{},...this.settings.tagNodeStyle}:this.style={...this.settings.baseNodeStyle,...e.isInferred?this.settings.inferredNodeStyle:{},...e.page.isURL?this.settings.urlNodeStyle:{},...e.page.isVirtual?this.settings.virtualNodeStyle:{},...e.isCentral?this.settings.centralNodeStyle:{},...e.isSibling?this.settings.siblingNodeStyle:{},...e.page.isAttachment?this.settings.attachmentNodeStyle:{},...h([this.page.primaryStyleTag,this.page.styleTags],this.settings),embedHeight:this.settings.centerEmbedHeight,embedWidth:this.settings.centerEmbedWidth},this.friendGateOnLeft=e.friendGateOnLeft,this.title=this.page.getTitle()}get prefix(){return this.style.prefix??""}displayText(){const e=(this.style.prefix??"")+this.title,t=(new Intl.Segmenter).segment(e),i=Array.from(t,(({segment:e})=>e));return i.length>this.page.maxLabelLength?i.slice(0,this.page.maxLabelLength-3).join("")+"...":e}setCenter(e){this.center=e}async renderEmbedded(){const e=this.ea;let t={width:this.style.embedWidth,height:this.style.embedHeight};if(this.page.file&&f(this.page.file,e)||this.page.isURL){this.page.isURL&&(t=((e,t)=>{const i=(e=>{if(!e)return null;const t=e.match(G);if(t?.[2])return e.includes("shorts")?.5625:560/315;const i=e.match(z);return i?.[1]?560/315:null})(e);return i?i>1?{width:t.width,height:t.width/i}:{width:t.height*i,height:t.height}:t})(this.page.url,t)),this.id=e.addEmbeddable(this.center.x-t.width/2,this.center.y-t.height/2,t.width,t.height,this.page.isURL?this.page.url:void 0,this.page.isURL?void 0:this.page.file);const i=e.getElement(this.id);return i.link=this.page.isURL?this.page.url:`[[${this.page.file.path}]]`,i.backgroundColor=this.style.backgroundColor,i.strokeColor=this.style.borderColor,i.strokeStyle=this.style.strokeStyle,this.embeddedElementIds.push(this.id),t}{this.id=await e.addImage(this.center.x-t.width/2,this.center.y-t.height/2,this.page.file,!1,!1);const i=e.getElement(this.id);i.link=`[[${this.page.file.path}]]`;let n=i.width,s=i.height;if(n>t.width||s>t.height){const e=n/s;n>t.width&&(n=t.width,s=n/e),s>t.height&&(s=t.height,n=s*e)}i.x=this.center.x-n/2,i.y=this.center.y-s/2,i.width=n,i.height=s;const r=e.addRect(this.center.x-n/2,this.center.y-s/2,n,s),a=e.getElement(r);return a.backgroundColor=this.style.backgroundColor,a.strokeColor=this.style.borderColor,a.strokeStyle=this.style.strokeStyle,a.fillStyle=this.style.fillStyle,delete e.elementsDict[i.id],e.elementsDict[i.id]=i,this.embeddedElementIds.push(r),this.embeddedElementIds.push(this.id),{width:n,height:s}}}renderText(){const e=this.ea,t=this.displayText(),i=e.measureText(`${t}`);this.id=e.addText(this.center.x-i.width/2,this.center.y-i.height/2,t,{wrapAt:this.page.maxLabelLength+50,textAlign:"center",box:!0,boxPadding:this.style.padding});const n=e.getElement(this.id);return n.link=this.page.isURL?this.page.url:`[[${this.page.file?.path??this.page.path}]]`,n.backgroundColor=this.style.backgroundColor,n.strokeColor=this.style.borderColor,n.strokeStyle=this.style.strokeStyle,i}async render(){const e=this.ea,t=this.settings,i=2*this.style.gateRadius;e.style.fontSize=this.style.fontSize,e.style.fontFamily=this.style.fontFamily,e.style.fillStyle=this.style.fillStyle,e.style.roughness=this.style.roughness,e.style.strokeSharpness=this.style.strokeShaprness,e.style.strokeWidth=this.style.strokeWidth,e.style.strokeColor=this.style.textColor,e.style.backgroundColor="transparent";const n=this.isEmbedded?this.embeddedElementIds.length>0?{width:this.style.embedWidth,height:this.style.embedHeight}:await this.renderEmbedded():this.renderText();e.style.fillStyle=this.style.gateFillStyle,e.style.strokeColor=this.style.gateStrokeColor,e.style.strokeStyle="solid";const s=this.friendGateOnLeft?this.page.previousFriendCount():this.page.nextFriendCount(),r=this.friendGateOnLeft?this.page.nextFriendCount():this.page.previousFriendCount(),a=this.page.leftFriendCount()+s;e.style.backgroundColor=a>0?this.style.gateBackgroundColor:"transparent",this.friendGateId=e.addEllipse(this.friendGateOnLeft?this.center.x-i-this.style.padding-n.width/2:this.center.x+this.style.padding+n.width/2,this.center.y-this.style.gateRadius,i,i);const u=[];t.showNeighborCount&&a>0&&(e.style.fontSize=i,u.push(e.addText(this.friendGateOnLeft?a>9?this.center.x-2*i-this.style.padding-n.width/2:this.center.x-i-this.style.padding-n.width/2:this.center.x+this.style.padding+n.width/2,this.friendGateOnLeft?this.center.y-2*i:this.center.y-this.style.gateRadius+i,a.toString())));const o=this.page.rightFriendCount()+r;e.style.backgroundColor=o>0?this.style.gateBackgroundColor:"transparent",this.nextFriendGateId=e.addEllipse(this.friendGateOnLeft?this.center.x+this.style.padding+n.width/2:this.center.x-i-this.style.padding-n.width/2,this.center.y-this.style.gateRadius,i,i),t.showNeighborCount&&o>0&&(e.style.fontSize=i,u.push(e.addText(this.friendGateOnLeft?this.center.x+this.style.padding+n.width/2:o>9?this.center.x-2*i-this.style.padding-n.width/2:this.center.x-i-this.style.padding-n.width/2,this.friendGateOnLeft?this.center.y-this.style.gateRadius+i:this.center.y-2*i,o.toString()))),this.isCentral||(this.nextFriendGateId=this.friendGateId);const l=this.page.parentCount();e.style.backgroundColor=l>0?this.style.gateBackgroundColor:"transparent",this.parentGateId=e.addEllipse(this.center.x-this.style.gateRadius-this.style.gateOffset,this.center.y-i-this.style.padding-n.height/2,i,i),t.showNeighborCount&&l>0&&(e.style.fontSize=i,u.push(e.addText(this.center.x+i-this.style.gateOffset,this.center.y-i-this.style.padding-n.height/2,l.toString())));const D=this.page.childrenCount();e.style.backgroundColor=D>0?this.style.gateBackgroundColor:"transparent",this.childGateId=e.addEllipse(this.center.x-this.style.gateRadius+this.style.gateOffset,this.center.y+this.style.padding+n.height/2,i,i),t.showNeighborCount&&D>0&&(e.style.fontSize=i,u.push(e.addText(this.center.x+i+this.style.gateOffset,this.center.y+this.style.padding+n.height/2,D.toString()))),e.addToGroup([this.friendGateId,this.parentGateId,this.childGateId,...this.nextFriendGateId!==this.friendGateId?[this.nextFriendGateId]:[],...u,...this.isEmbedded?this.embeddedElementIds:[this.id,e.getElement(this.id).boundElements[0].id]])}}class Y{nodeA;nodeB;nodeBRole;hierarchyDefinition;ea;style;isInferred=!1;constructor(t,i,n,s,r,a,u,o){this.nodeA=t,this.nodeB=i,this.nodeBRole=n,this.hierarchyDefinition=r,this.ea=a;const l=r?.split(",").map((e=>e.trim()));this.isInferred=s===e.INFERRED;let D={};l&&l.forEach((e=>{if(o.hierarchyLinkStylesExtended[e])D={...D,...o.hierarchyLinkStylesExtended[e]};else switch(e){case"file-tree":D={...D,...o.settings.folderLinkStyle};break;case"tag-tree":D={...D,...o.settings.tagLinkStyle}}})),this.style={...u.baseLinkStyle,...this.isInferred?u.inferredLinkStyle:{},...D}}render(e){const i=this.ea,n=this.style;let s,r;switch(i.style.strokeStyle=n.strokeStyle,i.style.roughness=n.roughness,i.style.strokeColor=n.strokeColor,i.style.strokeWidth=n.strokeWidth,i.style.opacity=e?10:100,this.nodeBRole){case t.CHILD:s=this.nodeA.childGateId,r=this.nodeB.parentGateId;break;case t.PARENT:s=this.nodeA.parentGateId,r=this.nodeB.childGateId;break;case t.RIGHT:s=this.nodeA.nextFriendGateId,r=this.nodeB.nextFriendGateId;break;default:s=this.nodeA.friendGateId,r=this.nodeB.friendGateId}const a=i.connectObjects(s,null,r,null,{startArrowHead:"none"===n.startArrowHead?null:n.startArrowHead,endArrowHead:"none"===n.endArrowHead?null:n.endArrowHead});n.showLabel&&this.hierarchyDefinition&&(i.style.fontSize=n.fontSize,i.style.fontFamily=n.fontFamily,i.style.strokeColor=n.textColor,i.addLabelToLine(a,this.hierarchyDefinition))}}const W={compactView:!1,compactingFactor:1.5,minLinkLength:18,excalibrainFilepath:"excalibrain.md",indexUpdateInterval:6e4,hierarchy:R,inferAllLinksAsFriends:!1,inverseInfer:!1,inverseArrowDirection:!0,renderAlias:!0,nodeTitleScript:"",backgroundColor:"#0c3e6aff",excludeFilepaths:[],autoOpenCentralDocument:!0,toggleEmbedTogglesAutoOpen:!0,showInferredNodes:!0,showAttachments:!0,showURLNodes:!0,showVirtualNodes:!0,showFolderNodes:!1,showTagNodes:!1,showPageNodes:!0,showNeighborCount:!0,showFullTagName:!1,maxItemCount:30,renderSiblings:!1,applyPowerFilter:!1,baseNodeStyle:B,centralNodeStyle:{fontSize:30,backgroundColor:"#B5B5B5",textColor:"#000000ff"},inferredNodeStyle:{backgroundColor:"#000005b3",textColor:"#95c7f3ff"},urlNodeStyle:{prefix:"🌐 "},virtualNodeStyle:{backgroundColor:"#ff000066",fillStyle:"hachure",textColor:"#ffffffff"},siblingNodeStyle:{fontSize:15},attachmentNodeStyle:{prefix:"📎 "},folderNodeStyle:{prefix:"📂 ",strokeShaprness:"sharp",borderColor:"#ffd700ff",textColor:"#ffd700ff"},tagNodeStyle:{prefix:"#",strokeShaprness:"sharp",borderColor:"#4682b4ff",textColor:"#4682b4ff"},tagNodeStyles:{},tagStyleList:[],primaryTagField:"Note type",primaryTagFieldLowerCase:"note-type",displayAllStylePrefixes:!0,baseLinkStyle:k,inferredLinkStyle:{strokeStyle:"dashed"},folderLinkStyle:{strokeColor:"#ffd700ff"},tagLinkStyle:{strokeColor:"#4682b4ff"},hierarchyLinkStyles:{},navigationHistory:[],allowOntologySuggester:!0,ontologySuggesterParentTrigger:"::p",ontologySuggesterChildTrigger:"::c",ontologySuggesterLeftFriendTrigger:"::l",ontologySuggesterRightFriendTrigger:"::r",ontologySuggesterPreviousTrigger:"::e",ontologySuggesterNextTrigger:"::n",ontologySuggesterTrigger:":::",ontologySuggesterMidSentenceTrigger:"(",boldFields:!1,allowAutozoom:!0,maxZoom:1,allowAutofocuOnSearch:!0,defaultAlwaysOnTop:!1,embedCentralNode:!1,centerEmbedWidth:550,centerEmbedHeight:700},U="excalibrain-hide-disabled",j="excalibrain-settings-disabled",K=e=>(255*e|256).toString(16).slice(1),q=e=>createFragment((t=>t.createDiv().innerHTML=e)),Z=e=>{const t=document.getElementById(e);if(!t)return;const i=t.parentNode;i&&i.removeChild(t)},$=(e,t)=>{const i=document.createElement("style");i.id=e,i.innerHTML=`.${t} {display: none;}`,document.body.appendChild(i)};class X extends n.PluginSettingTab{plugin;ea;dirty=!1;demoNode;demoNodeImg;demoLinkImg;demoLinkStyle;demoNodeStyle;updateTimer=!1;constructor(e,t){super(e,t),this.plugin=t}get hierarchyStyleList(){return I.concat(Array.from(this.plugin.settings.hierarchy.hidden)).concat(Array.from(this.plugin.settings.hierarchy.parents)).concat(Array.from(this.plugin.settings.hierarchy.children)).concat(Array.from(this.plugin.settings.hierarchy.leftFriends)).concat(Array.from(this.plugin.settings.hierarchy.rightFriends)).concat(Array.from(this.plugin.settings.hierarchy.previous)).concat(Array.from(this.plugin.settings.hierarchy.next))}async updateNodeDemoImg(){this.ea.reset(),this.ea.canvas.viewBackgroundColor=this.plugin.settings.backgroundColor,this.demoNode.style={...this.demoNodeStyle.getInheritedStyle(),...this.demoNodeStyle.style},this.demoNode.render();const e=await this.ea.createSVG(null,!0,{withBackground:!0,withTheme:!1},null,"",40);e.removeAttribute("width"),e.removeAttribute("height"),this.demoNodeImg.setAttribute("src",g(e.outerHTML))}async updateLinkDemoImg(){this.ea.reset(),this.ea.canvas.viewBackgroundColor=this.plugin.settings.backgroundColor;const n=new T(null,"Start node",null,this.plugin),s=new T(null,"End node",null,this.plugin),r=this.plugin.settings.hierarchy;r.leftFriends.contains(this.demoLinkStyle.display)?(n.addLeftFriend(s,e.DEFINED,i.FROM),s.addLeftFriend(n,e.DEFINED,i.TO)):r.rightFriends.contains(this.demoLinkStyle.display)?(n.addRightFriend(s,e.DEFINED,i.FROM),s.addRightFriend(n,e.DEFINED,i.TO)):r.parents.contains(this.demoLinkStyle.display)?(n.addParent(s,e.DEFINED,i.FROM),s.addChild(n,e.DEFINED,i.TO)):(n.addChild(s,e.DEFINED,i.FROM),s.addParent(n,e.DEFINED,i.TO));const a=new V({ea:this.ea,page:n,isInferred:!1,isCentral:!0,isSibling:!1,friendGateOnLeft:!0});a.ea=this.ea,a.setCenter({x:0,y:0});const u=new V({ea:this.ea,page:s,isInferred:!1,isCentral:!1,isSibling:!1,friendGateOnLeft:!1});u.ea=this.ea;let o=t.CHILD;r.leftFriends.contains(this.demoLinkStyle.display)?(u.setCenter({x:-300,y:0}),o=t.LEFT):r.rightFriends.contains(this.demoLinkStyle.display)?(u.setCenter({x:300,y:0}),o=t.RIGHT):r.parents.contains(this.demoLinkStyle.display)?(u.setCenter({x:0,y:-150}),o=t.PARENT):u.setCenter({x:0,y:150});const l=new Y(a,u,o,e.DEFINED,"base",this.ea,this.plugin.settings,this.plugin);a.style={...this.plugin.settings.baseNodeStyle,...this.plugin.settings.centralNodeStyle},a.render(),u.style={...this.demoNodeStyle.getInheritedStyle(),...this.demoNodeStyle.style},u.render(),l.style={...this.demoLinkStyle.getInheritedStyle(),...this.demoLinkStyle.style},l.render(!1);const D=await this.ea.createSVG(null,!0,{withBackground:!0,withTheme:!1},null,"",40);D.removeAttribute("width"),D.removeAttribute("height"),this.demoLinkImg.setAttribute("src",g(D.outerHTML))}async hide(){this.dirty&&(""===this.plugin.settings.ontologySuggesterParentTrigger&&(this.plugin.settings.ontologySuggesterParentTrigger="::p"),""===this.plugin.settings.ontologySuggesterChildTrigger&&(this.plugin.settings.ontologySuggesterChildTrigger="::c"),""===this.plugin.settings.ontologySuggesterLeftFriendTrigger&&(this.plugin.settings.ontologySuggesterLeftFriendTrigger="::l"),""===this.plugin.settings.ontologySuggesterRightFriendTrigger&&(this.plugin.settings.ontologySuggesterRightFriendTrigger="::r"),""===this.plugin.settings.ontologySuggesterPreviousTrigger&&(this.plugin.settings.ontologySuggesterPreviousTrigger="::e"),""===this.plugin.settings.ontologySuggesterNextTrigger&&(this.plugin.settings.ontologySuggesterNextTrigger="::n"),""===this.plugin.settings.ontologySuggesterTrigger&&(this.plugin.settings.ontologySuggesterTrigger=":::"),""===this.plugin.settings.ontologySuggesterMidSentenceTrigger&&(this.plugin.settings.ontologySuggesterMidSentenceTrigger="("),this.plugin.setHierarchyLinkStylesExtended(),this.plugin.settings.tagStyleList=Object.keys(this.plugin.settings.tagNodeStyles),this.plugin.loadCustomNodeLabelFunction(),this.plugin.saveSettings(),this.plugin.scene&&!this.plugin.scene.terminated&&(this.plugin.scene.setBaseLayoutParams(),this.updateTimer&&this.plugin.scene.setTimer(),this.plugin.scene.reRender()))}colorpicker(e,t,i,s,r,a,u,o){let l,D,d,h,c,g;const E=new n.Setting(e).setName(t);i&&E.setDesc(q(i));const p=e=>{e?E.settingEl.addClass(j):E.settingEl.removeClass(j),D.disabled=e,D.style.opacity=e?"0.3":"1",l.setDisabled(e),l.sliderEl.style.opacity=e?"0.3":"1",h.style.opacity=e?"0.3":"1",c.style.opacity=e?"0.3":"1",g.style.opacity=e?"0.3":"1"};u&&E.addToggle((e=>{d=e,e.toggleEl.addClass("excalibrain-settings-toggle"),e.setValue(void 0!==s()).setTooltip(H("NODESTYLE_INCLUDE_TOGGLE")).onChange((e=>{if(this.dirty=!0,!e)return p(!0),void a();r(D.value+K(l.getValue())),p(!1)}))})),E.settingEl.removeClass("mod-toggle"),h=createEl("span",{text:"color:",cls:"excalibrain-settings-colorlabel"}),E.controlEl.appendChild(h),D=createEl("input",{type:"color",cls:"excalibrain-settings-colorpicker"},(e=>{e.value=(s()??o).substring(0,7),e.onchange=()=>{r(e.value+K(l.getValue())),this.dirty=!0}})),E.controlEl.appendChild(D),c=createEl("span",{text:"opacity:",cls:"excalibrain-settings-opacitylabel"}),E.controlEl.appendChild(c),E.addSlider((e=>{var t;l=e,e.setLimits(0,1,.1).setValue((t=s()??o,parseInt(t.substring(7,9),16)/255)).onChange((e=>{r(D.value+K(e)),g.innerText=` ${e.toString()}`,D.style.opacity=e.toString(),this.dirty=!0}))})),g=createDiv({text:`${l.getValue().toString()}`,cls:"excalibrain-settings-sliderlabel"}),E.controlEl.appendChild(g),D.style.opacity=l.getValue().toString(),p(u&&!d.getValue())}numberslider(e,t,i,s,r,a,u,o,l){let D,d,h;const c=new n.Setting(e).setName(t),g=e=>{e?c.settingEl.addClass(j):c.settingEl.removeClass(j),h.setDisabled(e),h.sliderEl.style.opacity=e?"0.3":"1",D.style.opacity=e?"0.3":"1"};return o&&c.addToggle((e=>{d=e,e.toggleEl.addClass("excalibrain-settings-toggle"),e.setValue(void 0!==r()).setTooltip(H("NODESTYLE_INCLUDE_TOGGLE")).onChange((e=>{if(this.dirty=!0,!e)return g(!0),void u();a(h.getValue()),g(!1)}))})),c.addSlider((e=>{h=e,e.setLimits(s.min,s.max,s.step).setValue(r()??l).onChange((async e=>{D.innerText=` ${e.toString()}`,a(e),this.dirty=!0}))})),i&&c.setDesc(q(i)),c.settingEl.createDiv("",(e=>{D=e,e.style.minWidth="2.3em",e.style.textAlign="right",e.innerText=` ${h.getValue().toString()}`})),g(o&&!d.getValue()),c}toggle(e,t,i,s,r,a,u,o){let l,D;const d=new n.Setting(e).setName(t),h=e=>{e?d.settingEl.addClass(j):d.settingEl.removeClass(j),D.setDisabled(e),D.toggleEl.style.opacity=e?"0.3":"1"};u&&d.addToggle((e=>{l=e,e.toggleEl.addClass("excalibrain-settings-toggle"),e.setValue(void 0!==s()).setTooltip(H("NODESTYLE_INCLUDE_TOGGLE")).onChange((e=>{if(this.dirty=!0,!e)return h(!0),void a();r(D.getValue()),h(!1)}))})),d.addToggle((e=>{D=e,e.setValue(s()??o).onChange((async e=>{r(e),this.dirty=!0}))})),i&&d.setDesc(q(i)),h(u&&!l.getValue())}dropdownpicker(e,t,i,s,r,a,u,o,l){let D,d;const h=new n.Setting(e).setName(t),c=e=>{e?h.settingEl.addClass(j):h.settingEl.removeClass(j),D.setDisabled(e),D.selectEl.style.opacity=e?"0.3":"1"};o&&h.addToggle((e=>{d=e,e.toggleEl.addClass("excalibrain-settings-toggle"),e.setValue(void 0!==r()).setTooltip(H("NODESTYLE_INCLUDE_TOGGLE")).onChange((e=>{if(this.dirty=!0,!e)return c(!0),void u();a(D.getValue()),c(!1)}))})),h.addDropdown((e=>{D=e,e.addOptions(s).setValue(r()??l).onChange((e=>{a(e),this.dirty=!0}))})),i&&h.setDesc(q(i)),c(o&&!d.getValue())}nodeSettings(e,t,i=!0,s){let r,a;const u=new n.Setting(e).setName(H("NODESTYLE_PREFIX_NAME")).setDesc(q(H("NODESTYLE_PREFIX_DESC"))),o=e=>{e?u.settingEl.addClass(j):u.settingEl.removeClass(j),r.setDisabled(e),r.inputEl.style.opacity=e?"0.3":"1"};i&&u.addToggle((e=>{a=e,e.toggleEl.addClass("excalibrain-settings-toggle"),e.setValue(void 0!==t.prefix).setTooltip(H("NODESTYLE_INCLUDE_TOGGLE")).onChange((e=>{if(this.dirty=!0,!e)return o(!0),t.prefix=void 0,void this.updateNodeDemoImg();o(!1)}))})),u.addText((e=>{r=e,e.setValue(t.prefix??s.prefix).onChange((e=>{t.prefix=e,this.updateNodeDemoImg(),this.dirty=!0}))})),o(i&&!a.getValue()),this.colorpicker(e,H("NODESTYLE_BGCOLOR"),null,(()=>t.backgroundColor),(e=>{t.backgroundColor=e,this.updateNodeDemoImg()}),(()=>{delete t.backgroundColor,this.updateNodeDemoImg()}),i,s.backgroundColor),this.dropdownpicker(e,H("NODESTYLE_BG_FILLSTYLE"),null,{hachure:"Hachure","cross-hatch":"Cross-hatch",solid:"Solid"},(()=>t.fillStyle?.toString()),(e=>{t.fillStyle=e,this.updateNodeDemoImg()}),(()=>{delete t.fillStyle,this.updateNodeDemoImg()}),i,s.fillStyle.toString()),this.colorpicker(e,H("NODESTYLE_TEXTCOLOR"),null,(()=>t.textColor),(e=>{t.textColor=e,this.updateNodeDemoImg()}),(()=>{delete t.textColor,this.updateNodeDemoImg()}),i,s.textColor),this.colorpicker(e,H("NODESTYLE_BORDERCOLOR"),null,(()=>t.borderColor),(e=>{t.borderColor=e,this.updateNodeDemoImg()}),(()=>{delete t.borderColor,this.updateNodeDemoImg()}),i,s.borderColor),this.numberslider(e,H("NODESTYLE_FONTSIZE"),null,{min:10,max:50,step:5},(()=>t.fontSize),(e=>{t.fontSize=e,this.updateNodeDemoImg()}),(()=>{delete t.fontSize,this.updateNodeDemoImg()}),i,s.fontSize),this.dropdownpicker(e,H("NODESTYLE_FONTFAMILY"),null,{1:"Hand-drawn",2:"Normal",3:"Code",4:"Fourth (custom) Font"},(()=>t.fontFamily?.toString()),(e=>{t.fontFamily=parseInt(e),this.updateNodeDemoImg()}),(()=>{delete t.fontFamily,this.updateNodeDemoImg()}),i,s.fontFamily.toString()),this.numberslider(e,H("NODESTYLE_MAXLABELLENGTH_NAME"),H("NODESTYLE_MAXLABELLENGTH_DESC"),{min:15,max:100,step:5},(()=>t.maxLabelLength),(e=>{t.maxLabelLength=e,this.updateNodeDemoImg()}),(()=>{delete t.maxLabelLength,this.updateNodeDemoImg()}),i,s.maxLabelLength),this.dropdownpicker(e,H("NODESTYLE_ROUGHNESS"),null,{0:"Architect",1:"Artist",2:"Cartoonist"},(()=>t.roughness?.toString()),(e=>{t.roughness=parseInt(e),this.updateNodeDemoImg()}),(()=>{delete t.roughness,this.updateNodeDemoImg()}),i,s.roughness.toString()),this.dropdownpicker(e,H("NODESTYLE_SHARPNESS"),null,{sharp:"Sharp",round:"Round"},(()=>t.strokeShaprness),(e=>{t.strokeShaprness=e,this.updateNodeDemoImg()}),(()=>{delete t.strokeShaprness,this.updateNodeDemoImg()}),i,s.strokeShaprness),this.numberslider(e,H("NODESTYLE_STROKEWIDTH"),null,{min:.5,max:6,step:.5},(()=>t.strokeWidth),(e=>{t.strokeWidth=e,this.updateNodeDemoImg()}),(()=>{delete t.strokeWidth,this.updateNodeDemoImg()}),i,s.strokeWidth),this.dropdownpicker(e,H("NODESTYLE_STROKESTYLE"),null,{solid:"Solid",dashed:"Dashed",dotted:"Dotted"},(()=>t.strokeStyle),(e=>{t.strokeStyle=e,this.updateNodeDemoImg()}),(()=>{delete t.strokeStyle,this.updateNodeDemoImg()}),i,s.strokeStyle),this.numberslider(e,H("NODESTYLE_RECTANGLEPADDING"),null,{min:5,max:50,step:5},(()=>t.padding),(e=>{t.padding=e,this.updateNodeDemoImg()}),(()=>{delete t.padding,this.updateNodeDemoImg()}),i,s.padding),this.numberslider(e,H("NODESTYLE_GATE_RADIUS_NAME"),H("NODESTYLE_GATE_RADIUS_DESC"),{min:3,max:10,step:1},(()=>t.gateRadius),(e=>{t.gateRadius=e,this.updateNodeDemoImg()}),(()=>{delete t.gateRadius,this.updateNodeDemoImg()}),i,s.gateRadius),this.numberslider(e,H("NODESTYLE_GATE_OFFSET_NAME"),H("NODESTYLE_GATE_OFFSET_DESC"),{min:0,max:25,step:1},(()=>t.gateOffset),(e=>{t.gateOffset=e,this.updateNodeDemoImg()}),(()=>{delete t.gateOffset,this.updateNodeDemoImg()}),i,s.gateOffset),this.colorpicker(e,H("NODESTYLE_GATE_COLOR"),null,(()=>t.gateStrokeColor),(e=>{t.gateStrokeColor=e,this.updateNodeDemoImg()}),(()=>{delete t.gateStrokeColor,this.updateNodeDemoImg()}),i,s.gateStrokeColor),this.colorpicker(e,H("NODESTYLE_GATE_BGCOLOR_NAME"),H("NODESTYLE_GATE_BGCOLOR_DESC"),(()=>t.gateBackgroundColor),(e=>{t.gateBackgroundColor=e,this.updateNodeDemoImg()}),(()=>{delete t.gateBackgroundColor,this.updateNodeDemoImg()}),i,s.gateBackgroundColor),this.dropdownpicker(e,H("NODESTYLE_GATE_FILLSTYLE"),null,{hachure:"Hachure","cross-hatch":"Cross-hatch",solid:"Solid"},(()=>t.gateFillStyle?.toString()),(e=>{t.gateFillStyle=e,this.updateNodeDemoImg()}),(()=>{delete t.gateFillStyle,this.updateNodeDemoImg()}),i,s.gateFillStyle.toString())}linkSettings(e,t,i=!0,n){this.colorpicker(e,H("LINKSTYLE_COLOR"),null,(()=>t.strokeColor),(e=>{t.strokeColor=e,this.updateLinkDemoImg()}),(()=>{delete t.strokeColor,this.updateLinkDemoImg()}),i,n.strokeColor),this.numberslider(e,H("LINKSTYLE_WIDTH"),null,{min:.5,max:10,step:.5},(()=>t.strokeWidth),(e=>{t.strokeWidth=e,this.updateLinkDemoImg()}),(()=>{delete t.strokeWidth,this.updateLinkDemoImg()}),i,n.strokeWidth),this.dropdownpicker(e,H("LINKSTYLE_ROUGHNESS"),null,{0:"Architect",1:"Artist",2:"Cartoonist"},(()=>t.roughness?.toString()),(e=>{t.roughness=parseInt(e),this.updateLinkDemoImg()}),(()=>{delete t.roughness,this.updateLinkDemoImg()}),i,n.roughness.toString()),this.dropdownpicker(e,H("LINKSTYLE_STROKE"),null,{solid:"Solid",dashed:"Dashed",dotted:"Dotted"},(()=>t.strokeStyle),(e=>{t.strokeStyle=e,this.updateLinkDemoImg()}),(()=>{delete t.strokeStyle,this.updateLinkDemoImg()}),i,n.strokeStyle),this.dropdownpicker(e,H("LINKSTYLE_ARROWSTART"),null,{none:"None",arrow:"Arrow",bar:"Bar",dot:"Dot",triangle:"Triangle"},(()=>t.startArrowHead),(e=>{t.startArrowHead=""===e?null:e,this.updateLinkDemoImg()}),(()=>{delete t.startArrowHead,this.updateLinkDemoImg()}),i,n.startArrowHead),this.dropdownpicker(e,H("LINKSTYLE_ARROWEND"),null,{none:"None",arrow:"Arrow",bar:"Bar",dot:"Dot",triangle:"Triangle"},(()=>t.endArrowHead),(e=>{t.endArrowHead=""===e?null:e,this.updateLinkDemoImg()}),(()=>{delete t.endArrowHead,this.updateLinkDemoImg()}),i,n.endArrowHead),this.toggle(e,H("LINKSTYLE_SHOWLABEL"),null,(()=>t.showLabel),(e=>{t.showLabel=e,this.updateLinkDemoImg()}),(()=>{delete t.showLabel,this.updateLinkDemoImg()}),i,n.showLabel),this.colorpicker(e,H("NODESTYLE_TEXTCOLOR"),null,(()=>t.textColor),(e=>{t.textColor=e,this.updateLinkDemoImg()}),(()=>{delete t.textColor,this.updateLinkDemoImg()}),i,n.textColor),this.numberslider(e,H("LINKSTYLE_FONTSIZE"),null,{min:6,max:30,step:3},(()=>t.fontSize),(e=>{t.fontSize=e,this.updateLinkDemoImg()}),(()=>{delete t.fontSize,this.updateLinkDemoImg()}),i,n.fontSize),this.dropdownpicker(e,H("LINKSTYLE_FONTFAMILY"),null,{1:"Hand-drawn",2:"Normal",3:"Code",4:"Fourth (custom) Font"},(()=>t.fontFamily?.toString()),(e=>{t.fontFamily=parseInt(e),this.updateLinkDemoImg()}),(()=>{delete t.fontFamily,this.updateLinkDemoImg()}),i,n.fontFamily.toString())}getUnusedFieldNames(){const e=new Set;this.plugin.DVAPI.index.pages.forEach((t=>{const i=t?.fields.keys();if(!i)return;let n;for(;!(n=i.next()).done;)n.value.contains(",")||n.value.startsWith("**")&&n.value.endsWith("**")||e.add(n.value)}));const t=new Map;e.forEach((e=>{t.set(e,e.toLowerCase().replaceAll(" ","-"))}));const i=new Set;return this.plugin.settings.hierarchy.hidden.forEach((e=>i.add(e.toLowerCase().replaceAll(" ","-")))),this.plugin.settings.hierarchy.parents.forEach((e=>i.add(e.toLowerCase().replaceAll(" ","-")))),this.plugin.settings.hierarchy.children.forEach((e=>i.add(e.toLowerCase().replaceAll(" ","-")))),this.plugin.settings.hierarchy.leftFriends.forEach((e=>i.add(e.toLowerCase().replaceAll(" ","-")))),this.plugin.settings.hierarchy.rightFriends.forEach((e=>i.add(e.toLowerCase().replaceAll(" ","-")))),this.plugin.settings.hierarchy.previous.forEach((e=>i.add(e.toLowerCase().replaceAll(" ","-")))),this.plugin.settings.hierarchy.next.forEach((e=>i.add(e.toLowerCase().replaceAll(" ","-")))),this.plugin.settings.hierarchy.exclusions.forEach((e=>i.add(e.toLowerCase().replaceAll(" ","-")))),Array.from(t.entries()).forEach((([e,n])=>i.has(e.toLowerCase().replaceAll(" ","-"))||i.has(n)?(t.delete(e),void t.delete(n)):void(e!==n&&t.delete(n)))),Array.from(t.keys()).sort(((e,t)=>e.toLowerCase()e.setValue(this.plugin.settings.excalibrainFilepath).onChange((t=>{this.dirty=!0,t.endsWith(".md")||(t+=t.endsWith(".m")?"d":t.endsWith(".")?"md":".md"),this.app.vault.getAbstractFileByPath(t)?new P(this.app,"⚠ File Exists",`${t} already exists in your Vault. Is it ok to overwrite this file?`).show((i=>{i&&(this.plugin.settings.excalibrainFilepath=t,this.dirty=!0,e.inputEl.value=t)})):(this.plugin.settings.excalibrainFilepath=t,this.dirty=!0)})).inputEl.onblur=()=>{e.setValue(this.plugin.settings.excalibrainFilepath)})),this.numberslider(r,H("INDEX_REFRESH_FREQ_NAME"),H("INDEX_REFRESH_FREQ_DESC"),{min:5,max:600,step:5},(()=>this.plugin.settings.indexUpdateInterval/1e3),(e=>{this.plugin.settings.indexUpdateInterval=1e3*e,this.updateTimer=!0}),(()=>{}),!1,5e3),this.containerEl.createEl("h1",{cls:"excalibrain-settings-h1",text:H("HIERARCHY_HEAD")}),this.containerEl.createEl("p",{}).innerHTML=H("HIERARCHY_DESC");let u=()=>{};const o=new n.Setting(r).setName(H("PARENTS_NAME")).addTextArea((e=>{e.inputEl.style.height="90px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.hierarchy.parents.join(", ")).onChange((e=>{this.plugin.settings.hierarchy.parents=e.split(",").map((e=>e.trim())).sort(((e,t)=>e.toLowerCase()this.plugin.hierarchyLowerCase.parents.push(e.toLowerCase().replaceAll(" ","-")))),u(),this.dirty=!0}))}));o.nameEl.addClass("excalibrain-setting-nameEl"),o.descEl.addClass("excalibrain-setting-descEl"),o.controlEl.addClass("excalibrain-setting-controlEl");const l=new n.Setting(r).setName(H("CHILDREN_NAME")).addTextArea((e=>{e.inputEl.style.height="90px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.hierarchy.children.join(", ")).onChange((e=>{this.plugin.settings.hierarchy.children=e.split(",").map((e=>e.trim())).sort(((e,t)=>e.toLowerCase()this.plugin.hierarchyLowerCase.children.push(e.toLowerCase().replaceAll(" ","-")))),u(),this.dirty=!0}))}));l.nameEl.addClass("excalibrain-setting-nameEl"),l.descEl.addClass("excalibrain-setting-descEl"),l.controlEl.addClass("excalibrain-setting-controlEl");const D=new n.Setting(r).setName(H("LEFT_FRIENDS_NAME")).addTextArea((e=>{e.inputEl.style.height="90px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.hierarchy.leftFriends.join(", ")).onChange((e=>{this.plugin.settings.hierarchy.leftFriends=e.split(",").map((e=>e.trim())).sort(((e,t)=>e.toLowerCase()this.plugin.hierarchyLowerCase.leftFriends.push(e.toLowerCase().replaceAll(" ","-")))),u(),this.dirty=!0}))}));D.nameEl.addClass("excalibrain-setting-nameEl"),D.descEl.addClass("excalibrain-setting-descEl"),D.controlEl.addClass("excalibrain-setting-controlEl");const d=new n.Setting(r).setName(H("RIGHT_FRIENDS_NAME")).addTextArea((e=>{e.inputEl.style.height="90px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.hierarchy.rightFriends.join(", ")).onChange((e=>{this.plugin.settings.hierarchy.rightFriends=e.split(",").map((e=>e.trim())).sort(((e,t)=>e.toLowerCase()this.plugin.hierarchyLowerCase.rightFriends.push(e.toLowerCase().replaceAll(" ","-")))),u(),this.dirty=!0}))}));d.nameEl.addClass("excalibrain-setting-nameEl"),d.descEl.addClass("excalibrain-setting-descEl"),d.controlEl.addClass("excalibrain-setting-controlEl");const h=new n.Setting(r).setName(H("PREVIOUS_NAME")).addTextArea((e=>{e.inputEl.style.height="90px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.hierarchy.previous.join(", ")).onChange((e=>{this.plugin.settings.hierarchy.previous=e.split(",").map((e=>e.trim())).sort(((e,t)=>e.toLowerCase()this.plugin.hierarchyLowerCase.previous.push(e.toLowerCase().replaceAll(" ","-")))),u(),this.dirty=!0}))}));h.nameEl.addClass("excalibrain-setting-nameEl"),h.descEl.addClass("excalibrain-setting-descEl"),h.controlEl.addClass("excalibrain-setting-controlEl");const c=new n.Setting(r).setName(H("NEXT_NAME")).addTextArea((e=>{e.inputEl.style.height="90px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.hierarchy.next.join(", ")).onChange((e=>{this.plugin.settings.hierarchy.next=e.split(",").map((e=>e.trim())).sort(((e,t)=>e.toLowerCase()this.plugin.hierarchyLowerCase.next.push(e.toLowerCase().replaceAll(" ","-")))),u(),this.dirty=!0}))}));c.nameEl.addClass("excalibrain-setting-nameEl"),c.descEl.addClass("excalibrain-setting-descEl"),c.controlEl.addClass("excalibrain-setting-controlEl");const g=new n.Setting(r).setName(H("HIDDEN_NAME")).setDesc(H("HIDDEN_DESC")).addTextArea((e=>{e.inputEl.style.height="90px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.hierarchy.hidden.join(", ")).onChange((e=>{this.plugin.settings.hierarchy.hidden=e.split(",").map((e=>e.trim())).sort(((e,t)=>e.toLowerCase()this.plugin.hierarchyLowerCase.hidden.push(e.toLowerCase().replaceAll(" ","-")))),u(),this.dirty=!0}))}));g.nameEl.addClass("excalibrain-setting-nameEl"),g.descEl.addClass("excalibrain-setting-descEl"),g.controlEl.addClass("excalibrain-setting-controlEl");const E=new n.Setting(r).setName(H("EXCLUSIONS_NAME")).setDesc(H("EXCLUSIONS_DESC")).addTextArea((e=>{e.inputEl.style.height="90px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.hierarchy.exclusions.join(", ")).onChange((e=>{this.plugin.settings.hierarchy.exclusions=e.split(",").map((e=>e.trim())).sort(((e,t)=>e.toLowerCase(){p=e,e.inputEl.style.height="90px",e.inputEl.style.width="100%",e.setValue(this.getUnusedFieldNames()),e.setDisabled(!0)}));let F,m,C,y,S,A;f.nameEl.addClass("excalibrain-setting-nameEl"),f.descEl.addClass("excalibrain-setting-descEl"),f.controlEl.addClass("excalibrain-setting-controlEl"),new n.Setting(r).setName(H("INFER_NAME")).setDesc(q(H("INFER_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.inferAllLinksAsFriends).onChange((e=>{this.plugin.settings.inferAllLinksAsFriends=e,this.dirty=!0})))),new n.Setting(r).setName(H("REVERSE_NAME")).setDesc(q(H("REVERSE_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.inverseInfer).onChange((e=>{this.plugin.settings.inverseInfer=e,this.dirty=!0})))),new n.Setting(r).setName(H("INVERSE_ARROW_DIRECTION_NAME")).setDesc(q(H("INVERSE_ARROW_DIRECTION_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.inverseArrowDirection).onChange((e=>{this.plugin.settings.inverseArrowDirection=e,this.dirty=!0})))),new n.Setting(r).setName(H("ONTOLOGY_SUGGESTER_NAME")).setDesc(H("ONTOLOGY_SUGGESTER_DESC")).addToggle((e=>e.setValue(this.plugin.settings.allowOntologySuggester).onChange((e=>{this.plugin.settings.allowOntologySuggester=e,y.setDisabled(!e),F.setDisabled(!e),m.setDisabled(!e),C.setDisabled(!e),S.setDisabled(!e),A.setDisabled(!e),this.dirty=!0})))),y=new n.Setting(r).setName(H("ONTOLOGY_SUGGESTER_ALL_NAME")).setDisabled(!this.plugin.settings.allowOntologySuggester).addText((e=>e.setValue(this.plugin.settings.ontologySuggesterTrigger).onChange((e=>{this.plugin.settings.ontologySuggesterTrigger=e,this.dirty=!0})))),F=new n.Setting(r).setName(H("ONTOLOGY_SUGGESTER_PARENT_NAME")).setDisabled(!this.plugin.settings.allowOntologySuggester).addText((e=>e.setValue(this.plugin.settings.ontologySuggesterParentTrigger).onChange((e=>{this.plugin.settings.ontologySuggesterParentTrigger=e,this.dirty=!0})))),m=new n.Setting(r).setName(H("ONTOLOGY_SUGGESTER_CHILD_NAME")).setDisabled(!this.plugin.settings.allowOntologySuggester).addText((e=>e.setValue(this.plugin.settings.ontologySuggesterChildTrigger).onChange((e=>{this.plugin.settings.ontologySuggesterChildTrigger=e,this.dirty=!0})))),C=new n.Setting(r).setName(H("ONTOLOGY_SUGGESTER_LEFT_FRIEND_NAME")).setDisabled(!this.plugin.settings.allowOntologySuggester).addText((e=>e.setValue(this.plugin.settings.ontologySuggesterLeftFriendTrigger).onChange((e=>{this.plugin.settings.ontologySuggesterLeftFriendTrigger=e,this.dirty=!0})))),C=new n.Setting(r).setName(H("ONTOLOGY_SUGGESTER_RIGHT_FRIEND_NAME")).setDisabled(!this.plugin.settings.allowOntologySuggester).addText((e=>e.setValue(this.plugin.settings.ontologySuggesterRightFriendTrigger).onChange((e=>{this.plugin.settings.ontologySuggesterRightFriendTrigger=e,this.dirty=!0})))),C=new n.Setting(r).setName(q(H("ONTOLOGY_SUGGESTER_PREVIOUS_NAME"))).setDisabled(!this.plugin.settings.allowOntologySuggester).addText((e=>e.setValue(this.plugin.settings.ontologySuggesterPreviousTrigger).onChange((e=>{this.plugin.settings.ontologySuggesterPreviousTrigger=e,this.dirty=!0})))),C=new n.Setting(r).setName(H("ONTOLOGY_SUGGESTER_NEXT_NAME")).setDisabled(!this.plugin.settings.allowOntologySuggester).addText((e=>e.setValue(this.plugin.settings.ontologySuggesterNextTrigger).onChange((e=>{this.plugin.settings.ontologySuggesterNextTrigger=e,this.dirty=!0})))),S=new n.Setting(r).setName(H("MID_SENTENCE_SUGGESTER_TRIGGER_NAME")).setDesc(q(H("MID_SENTENCE_SUGGESTER_TRIGGER_DESC"))).addDropdown((e=>{e.addOption("(","(").addOption("[","[").setValue(this.plugin.settings.ontologySuggesterMidSentenceTrigger).onChange((e=>{this.plugin.settings.ontologySuggesterMidSentenceTrigger=e,this.dirty=!0}))})),A=new n.Setting(r).setName(H("BOLD_FIELDS_NAME")).setDesc(q(H("BOLD_FIELDS_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.boldFields).onChange((e=>{this.plugin.settings.boldFields=e,this.dirty=!0})))),this.containerEl.createEl("h1",{cls:"excalibrain-settings-h1",text:H("BEHAVIOR_HEAD")}),new n.Setting(r).setName(H("TOGGLE_AUTOOPEN_WHEN_EMBED_TOGGLE_NAME")).setDesc(q(H("TOGGLE_AUTOOPEN_WHEN_EMBED_TOGGLE_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.toggleEmbedTogglesAutoOpen).onChange((e=>{this.plugin.settings.toggleEmbedTogglesAutoOpen=e,this.dirty=!0}))));const b=new n.Setting(r).setName(H("EXCLUDE_PATHLIST_NAME")).setDesc(q(H("EXCLUDE_PATHLIST_DESC"))).addTextArea((e=>{e.inputEl.style.height="100px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.excludeFilepaths.join(", ")).onChange((e=>{const t=(e=e.replaceAll("\n"," ")).split(",").map((e=>e.trim()));this.plugin.settings.excludeFilepaths=t.filter((e=>""!==e)),this.dirty=!0}))}));b.descEl.style.width="90%",b.controlEl.style.width="90%";const N=new n.Setting(r).setName(H("NODETITLE_SCRIPT_NAME")).setDesc(q(H("NODETITLE_SCRIPT_DESC"))).addTextArea((e=>{e.inputEl.style.height="200px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.nodeTitleScript).onChange((e=>{this.plugin.settings.nodeTitleScript=e,this.dirty=!0}))}));let L,w;N.descEl.style.width="90%",N.controlEl.style.width="90%",this.containerEl.createEl("h1",{cls:"excalibrain-settings-h1",text:H("DISPLAY_HEAD")}),new n.Setting(r).setName(H("COMPACT_VIEW_NAME")).setDesc(q(H("COMPACT_VIEW_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.compactView).onChange((e=>{this.plugin.settings.compactView=e,this.dirty=!0})))),this.numberslider(r,H("COMPACTING_FACTOR_NAME"),H("COMPACTING_FACTOR_DESC"),{min:1,max:2,step:.1},(()=>this.plugin.settings.compactingFactor),(e=>{this.plugin.settings.compactingFactor=e,this.dirty=!0}),(()=>{}),!1,1),this.numberslider(r,H("MINLINKLENGTH_NAME"),H("MINLINKLENGTH_DESC"),{min:0,max:50,step:1},(()=>this.plugin.settings.minLinkLength),(e=>{this.plugin.settings.minLinkLength=e,this.dirty=!0}),(()=>{}),!1,1),new n.Setting(r).setName(H("SHOW_FULL_TAG_PATH_NAME")).setDesc(q(H("SHOW_FULL_TAG_PATH_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.showFullTagName).onChange((e=>{this.plugin.settings.showFullTagName=e,this.dirty=!0})))),this.numberslider(r,H("MAX_ITEMCOUNT_NAME"),H("MAX_ITEMCOUNT_DESC"),{min:5,max:150,step:5},(()=>this.plugin.settings.maxItemCount),(e=>this.plugin.settings.maxItemCount=e),(()=>{}),!1,30),new n.Setting(r).setName(H("SHOW_COUNT_NAME")).setDesc(q(H("SHOW_COUNT_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.showNeighborCount).onChange((e=>{this.plugin.settings.showNeighborCount=e,this.dirty=!0})))),new n.Setting(r).setName(H("ALLOW_AUTOZOOM_NAME")).setDesc(q(H("ALLOW_AUTOZOOM_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.allowAutozoom).onChange((e=>{this.plugin.settings.allowAutozoom=e,this.dirty=!0})))),this.numberslider(r,H("MAX_AUTOZOOM_NAME"),H("MAX_AUTOZOOM_DESC"),{min:10,max:1e3,step:10},(()=>100*this.plugin.settings.maxZoom),(e=>this.plugin.settings.maxZoom=e/100),(()=>{}),!1,100),new n.Setting(r).setName(H("ALLOW_AUTOFOCUS_ON_SEARCH_NAME")).setDesc(q(H("ALLOW_AUTOFOCUS_ON_SEARCH_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.allowAutofocuOnSearch).onChange((e=>{this.plugin.settings.allowAutofocuOnSearch=e,this.dirty=!0})))),new n.Setting(r).setName(H("ALWAYS_ON_TOP_NAME")).setDesc(q(H("ALWAYS_ON_TOP_DESC"))).addToggle((e=>e.setValue(this.plugin.settings.defaultAlwaysOnTop).onChange((e=>{this.plugin.settings.defaultAlwaysOnTop=e,this.dirty=!0})))),this.numberslider(r,H("EMBEDDED_FRAME_WIDTH_NAME"),void 0,{min:400,max:1600,step:50},(()=>this.plugin.settings.centerEmbedWidth),(e=>this.plugin.settings.centerEmbedWidth=e),(()=>{}),!1,this.plugin.settings.centerEmbedWidth),this.numberslider(r,H("EMBEDDED_FRAME_HEIGHT_NAME"),void 0,{min:400,max:1600,step:50},(()=>this.plugin.settings.centerEmbedHeight),(e=>this.plugin.settings.centerEmbedHeight=e),(()=>{}),!1,this.plugin.settings.centerEmbedHeight),r.createEl("h1",{cls:"excalibrain-settings-h1",text:H("STYLE_HEAD")}),this.containerEl.createEl("p",{}).innerHTML=H("STYLE_DESC"),this.colorpicker(r,H("CANVAS_BGCOLOR"),null,(()=>this.plugin.settings.backgroundColor),(e=>{this.plugin.settings.backgroundColor=e,this.updateNodeDemoImg()}),(()=>{}),!1,this.plugin.settings.backgroundColor);const _=e=>{w.empty();const t=this.plugin.nodeStyles[e];this.nodeSettings(w,t.style,t.allowOverride,t.getInheritedStyle()),this.demoNodeStyle=t,this.updateNodeDemoImg()},v=new n.Setting(r).setName(H("TAGLIST_NAME")).setDesc(H("TAGLIST_DESC")).addTextArea((e=>{e.inputEl.style.height="200px",e.inputEl.style.width="100%",e.setValue(this.plugin.settings.tagStyleList.sort(((e,t)=>e.toLowerCase(){const t=this.plugin.settings.tagNodeStyles,i=this.plugin.nodeStyles,n=(e=e.replaceAll("\n"," ")).split(",").map((e=>e.trim())).sort(((e,t)=>e.toLocaleLowerCase(){n.contains(e)||(delete t[e],delete i[e])})),n.forEach((e=>{Object.keys(t).contains(e)||(t[e]={},i[e]={style:t[e],allowOverride:!0,userStyle:!0,display:e,getInheritedStyle:()=>this.plugin.settings.baseNodeStyle})}));const s=L.getValue();for(let e=L.selectEl.options.length-1;e>=0;e--)L.selectEl.remove(e);Object.entries(i).forEach((e=>{L.addOption(e[0],e[1].display)})),i[s]?L.setValue(s):(L.setValue("base"),_("base")),this.dirty=!0}))}));new n.Setting(r).setName(H("NOTE_STYLE_TAG_NAME")).setDesc(H("NOTE_STYLE_TAG_DESC")).addText((e=>e.setValue(this.plugin.settings.primaryTagField).onChange((e=>{this.plugin.settings.primaryTagField=e,this.plugin.settings.primaryTagFieldLowerCase=e.toLocaleLowerCase().replaceAll(" ","-"),this.dirty=!0})))),new n.Setting(r).setName(H("ALL_STYLE_PREFIXES_NAME")).setDesc(H("ALL_STYLE_PREFIXES_DESC")).addToggle((e=>e.setValue(this.plugin.settings.displayAllStylePrefixes).onChange((e=>{this.plugin.settings.displayAllStylePrefixes=e,this.dirty=!0})))),v.descEl.style.width="90%",v.controlEl.style.width="90%";const k=r.createDiv({cls:"setting-item"}),B=k.createDiv({cls:"setting-item-info"});let R;L=new n.DropdownComponent(B),k.createDiv({text:"Show inherited",cls:"setting-item-name"}).style.marginRight="10px";let x=!1;const M=new n.ToggleComponent(k);M.setValue(!0).setTooltip("Show/Hide Inherited Properties").onChange((e=>{x?x=!1:(e?Z(U):$(U,j),x=!0,R.setValue(e))})),Object.entries(this.plugin.nodeStyles).forEach((e=>{L.addOption(e[0],e[1].display)})),this.demoNodeImg=r.createEl("img",{cls:"excalibrain-settings-demoimg"}),w=r.createDiv({cls:"excalibrain-setting-style-section"}),Z(U),L.setValue("base").onChange(_);const G=this.plugin.nodeStyles.base;let z,Y;this.nodeSettings(w,G.style,G.allowOverride,G.getInheritedStyle()),this.demoNodeStyle=G,this.updateNodeDemoImg();const W=e=>{Y.empty();const t=this.plugin.linkStyles[e];this.linkSettings(Y,t.style,t.allowOverride,t.getInheritedStyle()),this.demoLinkStyle=t,this.updateLinkDemoImg()},K=r.createDiv({cls:"setting-item"}),X=K.createDiv({cls:"setting-item-info"});z=new n.DropdownComponent(X),K.createDiv({text:"Show inherited",cls:"setting-item-name"}).style.marginRight="10px",R=new n.ToggleComponent(K),R.setValue(!0).setTooltip("Show/Hide Inherited Properties").onChange((e=>{x?x=!1:(e?Z(U):$(U,j),x=!0,M.setValue(e))})),Object.entries(this.plugin.linkStyles).forEach((e=>{z.addOption(e[0],e[1].display)})),this.demoLinkImg=r.createEl("img",{cls:"excalibrain-settings-demoimg"}),Y=r.createDiv({cls:"excalibrain-setting-nodestyle-section"}),z.setValue("base").onChange(W);const J=this.plugin.linkStyles.base;this.linkSettings(Y,J.style,J.allowOverride,J.getInheritedStyle()),this.demoLinkStyle=J,this.updateLinkDemoImg(),u=()=>{p.setValue(this.getUnusedFieldNames());const e=this.plugin.settings.hierarchyLinkStyles,t=this.plugin.linkStyles;Object.keys(t).forEach((i=>{I.contains(i)||this.hierarchyStyleList.contains(i)||(delete t[i],delete e[i])})),this.hierarchyStyleList.forEach((i=>{Object.keys(e).contains(i)||I.contains(i)||(e[i]={},t[i]={style:e[i],allowOverride:!0,userStyle:!0,display:i,getInheritedStyle:()=>this.plugin.settings.baseLinkStyle})}));const i=z.getValue();for(let e=z.selectEl.options.length-1;e>=0;e--)z.selectEl.remove(e);const n=this.plugin.settings.hierarchy,s=e=>I.includes(e)?"0"+e.toLowerCase():n.parents.includes(e)?"1"+e.toLowerCase():n.children.includes(e)?"2"+e.toLowerCase():"3"+e.toLowerCase();Object.entries(t).sort(((e,t)=>s(e[0]){z.addOption(e[0],this.plugin.settings.hierarchy.parents.includes(e[1].display)?"Parent > "+e[1].display:this.plugin.settings.hierarchy.children.includes(e[1].display)?"Child > "+e[1].display:this.plugin.settings.hierarchy.leftFriends.includes(e[1].display)?"Left Friend > "+e[1].display:this.plugin.settings.hierarchy.rightFriends.includes(e[1].display)?"Right Friend > "+e[1].display:this.plugin.settings.hierarchy.previous.includes(e[1].display)?"Previous > "+e[1].display:this.plugin.settings.hierarchy.next.includes(e[1].display)?"Next > "+e[1].display:e[1].display)})),t[i]?z.setValue(i):(z.setValue("base"),W("base"))},u()}}var J={};Object.defineProperty(J,"__esModule",{value:!0});class Q extends Error{}class ee extends Q{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class te extends Q{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class ie extends Q{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ne extends Q{}class se extends Q{constructor(e){super(`Invalid unit ${e}`)}}class re extends Q{}class ae extends Q{constructor(){super("Zone is an abstract class")}}const ue="numeric",oe="short",le="long",De={year:ue,month:ue,day:ue},de={year:ue,month:oe,day:ue},he={year:ue,month:oe,day:ue,weekday:oe},ce={year:ue,month:le,day:ue},ge={year:ue,month:le,day:ue,weekday:le},Ee={hour:ue,minute:ue},pe={hour:ue,minute:ue,second:ue},fe={hour:ue,minute:ue,second:ue,timeZoneName:oe},Fe={hour:ue,minute:ue,second:ue,timeZoneName:le},me={hour:ue,minute:ue,hourCycle:"h23"},Ce={hour:ue,minute:ue,second:ue,hourCycle:"h23"},ye={hour:ue,minute:ue,second:ue,hourCycle:"h23",timeZoneName:oe},Se={hour:ue,minute:ue,second:ue,hourCycle:"h23",timeZoneName:le},Ae={year:ue,month:ue,day:ue,hour:ue,minute:ue},Te={year:ue,month:ue,day:ue,hour:ue,minute:ue,second:ue},be={year:ue,month:oe,day:ue,hour:ue,minute:ue},Ne={year:ue,month:oe,day:ue,hour:ue,minute:ue,second:ue},Le={year:ue,month:oe,day:ue,weekday:oe,hour:ue,minute:ue},Oe={year:ue,month:le,day:ue,hour:ue,minute:ue,timeZoneName:oe},we={year:ue,month:le,day:ue,hour:ue,minute:ue,second:ue,timeZoneName:oe},_e={year:ue,month:le,day:ue,weekday:le,hour:ue,minute:ue,timeZoneName:le},ve={year:ue,month:le,day:ue,weekday:le,hour:ue,minute:ue,second:ue,timeZoneName:le};class Ie{get type(){throw new ae}get name(){throw new ae}get ianaName(){return this.name}get isUniversal(){throw new ae}offsetName(e,t){throw new ae}formatOffset(e,t){throw new ae}offset(e){throw new ae}equals(e){throw new ae}get isValid(){throw new ae}}let ke=null;class Be extends Ie{static get instance(){return null===ke&&(ke=new Be),ke}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:i}){return Nt(e,t,i)}formatOffset(e,t){return _t(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let Re={};const xe={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Me={};class He extends Ie{static create(e){return Me[e]||(Me[e]=new He(e)),Me[e]}static resetCache(){Me={},Re={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=He.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:i}){return Nt(e,t,i,this.name)}formatOffset(e,t){return _t(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const i=(n=this.name,Re[n]||(Re[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Re[n]);var n;let[s,r,a,u,o,l,D]=i.formatToParts?function(e,t){const i=e.formatToParts(t),n=[];for(let e=0;e=0?h:1e3+h,(At({year:s,month:r,day:a,hour:24===o?0:o,minute:l,second:D,millisecond:0})-d)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let Pe={},Ge={};function ze(e,t={}){const i=JSON.stringify([e,t]);let n=Ge[i];return n||(n=new Intl.DateTimeFormat(e,t),Ge[i]=n),n}let Ve={},Ye={},We=null;function Ue(e,t,i,n){const s=e.listingMode();return"error"===s?null:"en"===s?i(t):n(t)}class je{constructor(e,t,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:n,floor:s,...r}=i;if(!t||Object.keys(r).length>0){const t={useGrouping:!1,...i};i.padTo>0&&(t.minimumIntegerDigits=i.padTo),this.inf=function(e,t={}){const i=JSON.stringify([e,t]);let n=Ve[i];return n||(n=new Intl.NumberFormat(e,t),Ve[i]=n),n}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return Et(this.floor?Math.floor(e):mt(e,3),this.padTo)}}class Ke{constructor(e,t,i){let n;if(this.opts=i,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,i=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&He.create(i).valid?(n=i,this.dt=e):(n="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,n=e.zone.name):(n="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const s={...this.opts};s.timeZone=s.timeZone||n,this.dtf=ze(t,s)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class qe{constructor(e,t,i){this.opts={style:"long",...i},!t&&dt()&&(this.rtf=function(e,t={}){const{base:i,...n}=t,s=JSON.stringify([e,n]);let r=Ye[s];return r||(r=new Intl.RelativeTimeFormat(e,t),Ye[s]=r),r}(e,i))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,i="always",n=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===i&&r){const i="days"===e;switch(t){case 1:return i?"tomorrow":`next ${s[e][0]}`;case-1:return i?"yesterday":`last ${s[e][0]}`;case 0:return i?"today":`this ${s[e][0]}`}}const a=Object.is(t,-0)||t<0,u=Math.abs(t),o=1===u,l=s[e],D=n?o?l[1]:l[2]||l[1]:o?s[e][0]:e;return a?`${u} ${D} ago`:`in ${u} ${D}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class Ze{static fromOpts(e){return Ze.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,i,n=!1){const s=e||ut.defaultLocale,r=s||(n?"en-US":We||(We=(new Intl.DateTimeFormat).resolvedOptions().locale,We)),a=t||ut.defaultNumberingSystem,u=i||ut.defaultOutputCalendar;return new Ze(r,a,u,s)}static resetCache(){We=null,Ge={},Ve={},Ye={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:i}={}){return Ze.create(e,t,i)}constructor(e,t,i,n){const[s,r,a]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const i=e.indexOf("-u-");if(-1===i)return[e];{let t,n;try{t=ze(e).resolvedOptions(),n=e}catch(s){const r=e.substring(0,i);t=ze(r).resolvedOptions(),n=r}const{numberingSystem:s,calendar:r}=t;return[n,s,r]}}(e);this.locale=s,this.numberingSystem=t||r||null,this.outputCalendar=i||a||null,this.intl=function(e,t,i){return i||t?(e.includes("-u-")||(e+="-u"),i&&(e+=`-ca-${i}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?Ze.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Ue(this,e,Rt,(()=>{const i=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";return this.monthsCache[n][e]||(this.monthsCache[n][e]=function(e){const t=[];for(let i=1;i<=12;i++){const n=Zn.utc(2009,i,1);t.push(e(n))}return t}((e=>this.extract(e,i,"month")))),this.monthsCache[n][e]}))}weekdays(e,t=!1){return Ue(this,e,Pt,(()=>{const i=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";return this.weekdaysCache[n][e]||(this.weekdaysCache[n][e]=function(e){const t=[];for(let i=1;i<=7;i++){const n=Zn.utc(2016,11,13+i);t.push(e(n))}return t}((e=>this.extract(e,i,"weekday")))),this.weekdaysCache[n][e]}))}meridiems(){return Ue(this,void 0,(()=>Gt),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Zn.utc(2016,11,13,9),Zn.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return Ue(this,e,Wt,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[Zn.utc(-40,1,1),Zn.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,i){const n=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===i));return n?n.value:null}numberFormatter(e={}){return new je(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Ke(e,this.intl,t)}relFormatter(e={}){return new qe(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const i=JSON.stringify([e,t]);let n=Pe[i];return n||(n=new Intl.ListFormat(e,t),Pe[i]=n),n}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let $e=null;class Xe extends Ie{static get utcInstance(){return null===$e&&($e=new Xe(0)),$e}static instance(e){return 0===e?Xe.utcInstance:new Xe(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new Xe(Lt(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${_t(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${_t(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return _t(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class Je extends Ie{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Qe(e,t){if(ot(e)||null===e)return t;if(e instanceof Ie)return e;if("string"==typeof e){const i=e.toLowerCase();return"default"===i?t:"local"===i||"system"===i?Be.instance:"utc"===i||"gmt"===i?Xe.utcInstance:Xe.parseSpecifier(i)||He.create(e)}return lt(e)?Xe.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new Je(e)}let et,tt=()=>Date.now(),it="system",nt=null,st=null,rt=null,at=60;class ut{static get now(){return tt}static set now(e){tt=e}static set defaultZone(e){it=e}static get defaultZone(){return Qe(it,Be.instance)}static get defaultLocale(){return nt}static set defaultLocale(e){nt=e}static get defaultNumberingSystem(){return st}static set defaultNumberingSystem(e){st=e}static get defaultOutputCalendar(){return rt}static set defaultOutputCalendar(e){rt=e}static get twoDigitCutoffYear(){return at}static set twoDigitCutoffYear(e){at=e%100}static get throwOnInvalid(){return et}static set throwOnInvalid(e){et=e}static resetCaches(){Ze.resetCache(),He.resetCache()}}function ot(e){return void 0===e}function lt(e){return"number"==typeof e}function Dt(e){return"number"==typeof e&&e%1==0}function dt(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function ht(e,t,i){if(0!==e.length)return e.reduce(((e,n)=>{const s=[t(n),n];return e&&i(e[0],s[0])===e[0]?e:s}),null)[1]}function ct(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function gt(e,t,i){return Dt(e)&&e>=t&&e<=i}function Et(e,t=2){let i;return i=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),i}function pt(e){return ot(e)||null===e||""===e?void 0:parseInt(e,10)}function ft(e){return ot(e)||null===e||""===e?void 0:parseFloat(e)}function Ft(e){if(!ot(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function mt(e,t,i=!1){const n=10**t;return(i?Math.trunc:Math.round)(e*n)/n}function Ct(e){return e%4==0&&(e%100!=0||e%400==0)}function yt(e){return Ct(e)?366:365}function St(e,t){const i=(n=t-1)-12*Math.floor(n/12)+1;var n;return 2===i?Ct(e+(t-i)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function At(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Tt(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,i=e-1,n=(i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400))%7;return 4===t||3===n?53:52}function bt(e){return e>99?e:e>ut.twoDigitCutoffYear?1900+e:2e3+e}function Nt(e,t,i,n=null){const s=new Date(e),r={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(r.timeZone=n);const a={timeZoneName:t,...r},u=new Intl.DateTimeFormat(i,a).formatToParts(s).find((e=>"timezonename"===e.type.toLowerCase()));return u?u.value:null}function Lt(e,t){let i=parseInt(e,10);Number.isNaN(i)&&(i=0);const n=parseInt(t,10)||0;return 60*i+(i<0||Object.is(i,-0)?-n:n)}function Ot(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new re(`Invalid unit value ${e}`);return t}function wt(e,t){const i={};for(const n in e)if(ct(e,n)){const s=e[n];if(null==s)continue;i[t(n)]=Ot(s)}return i}function _t(e,t){const i=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${Et(i,2)}:${Et(n,2)}`;case"narrow":return`${s}${i}${n>0?`:${n}`:""}`;case"techie":return`${s}${Et(i,2)}${Et(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function vt(e){return function(e,t){return["hour","minute","second","millisecond"].reduce(((t,i)=>(t[i]=e[i],t)),{})}(e)}const It=["January","February","March","April","May","June","July","August","September","October","November","December"],kt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Bt=["J","F","M","A","M","J","J","A","S","O","N","D"];function Rt(e){switch(e){case"narrow":return[...Bt];case"short":return[...kt];case"long":return[...It];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const xt=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Mt=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ht=["M","T","W","T","F","S","S"];function Pt(e){switch(e){case"narrow":return[...Ht];case"short":return[...Mt];case"long":return[...xt];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Gt=["AM","PM"],zt=["Before Christ","Anno Domini"],Vt=["BC","AD"],Yt=["B","A"];function Wt(e){switch(e){case"narrow":return[...Yt];case"short":return[...Vt];case"long":return[...zt];default:return null}}function Ut(e,t){let i="";for(const n of e)n.literal?i+=n.val:i+=t(n.val);return i}const jt={D:De,DD:de,DDD:ce,DDDD:ge,t:Ee,tt:pe,ttt:fe,tttt:Fe,T:me,TT:Ce,TTT:ye,TTTT:Se,f:Ae,ff:be,fff:Oe,ffff:_e,F:Te,FF:Ne,FFF:we,FFFF:ve};class Kt{static create(e,t={}){return new Kt(e,t)}static parseFormat(e){let t=null,i="",n=!1;const s=[];for(let r=0;r0&&s.push({literal:n||/^\s+$/.test(i),val:i}),t=null,i="",n=!n):n||a===t?i+=a:(i.length>0&&s.push({literal:/^\s+$/.test(i),val:i}),i=a,t=a)}return i.length>0&&s.push({literal:n||/^\s+$/.test(i),val:i}),s}static macroTokenToFormatOpts(e){return jt[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Et(e,t);const i={...this.opts};return t>0&&(i.padTo=t),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,t){const i="en"===this.loc.listingMode(),n=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=(t,i)=>this.loc.extract(e,t,i),r=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",a=(t,n)=>i?function(e,t){return Rt(t)[e.month-1]}(e,t):s(n?{month:t}:{month:t,day:"numeric"},"month"),u=(t,n)=>i?function(e,t){return Pt(t)[e.weekday-1]}(e,t):s(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),o=t=>{const i=Kt.macroTokenToFormatOpts(t);return i?this.formatWithSystemDefault(e,i):t},l=t=>i?function(e,t){return Wt(t)[e.year<0?0:1]}(e,t):s({era:t},"era");return Ut(Kt.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return r({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return r({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return r({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return i?function(e){return Gt[e.hour<12?0:1]}(e):s({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return n?s({day:"numeric"},"day"):this.num(e.day);case"dd":return n?s({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return n?s({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?s({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return n?s({month:"numeric"},"month"):this.num(e.month);case"MM":return n?s({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return n?s({year:"numeric"},"year"):this.num(e.year);case"yy":return n?s({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?s({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?s({year:"numeric"},"year"):this.num(e.year,6);case"G":return l("short");case"GG":return l("long");case"GGGGG":return l("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return o(t)}}))}formatDurationFromString(e,t){const i=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},n=Kt.parseFormat(t),s=n.reduce(((e,{literal:t,val:i})=>t?e:e.concat(i)),[]),r=e.shiftTo(...s.map(i).filter((e=>e)));return Ut(n,(e=>t=>{const n=i(t);return n?this.num(e.get(n),t.length):t})(r))}}class qt{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Zt=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function $t(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function Xt(...e){return t=>e.reduce((([e,i,n],s)=>{const[r,a,u]=s(t,n);return[{...e,...r},a||i,u]}),[{},null,1]).slice(0,2)}function Jt(e,...t){if(null==e)return[null,null];for(const[i,n]of t){const t=i.exec(e);if(t)return n(t)}return[null,null]}function Qt(...e){return(t,i)=>{const n={};let s;for(s=0;svoid 0!==e&&(t||e&&D)?-e:e;return[{years:h(ft(i)),months:h(ft(n)),weeks:h(ft(s)),days:h(ft(r)),hours:h(ft(a)),minutes:h(ft(u)),seconds:h(ft(o),"-0"===o),milliseconds:h(Ft(l),d)}]}const Ei={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function pi(e,t,i,n,s,r,a){const u={year:2===t.length?bt(pt(t)):pt(t),month:kt.indexOf(i)+1,day:pt(n),hour:pt(s),minute:pt(r)};return a&&(u.second=pt(a)),e&&(u.weekday=e.length>3?xt.indexOf(e)+1:Mt.indexOf(e)+1),u}const fi=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Fi(e){const[,t,i,n,s,r,a,u,o,l,D,d]=e,h=pi(t,s,n,i,r,a,u);let c;return c=o?Ei[o]:l?0:Lt(D,d),[h,new Xe(c)]}const mi=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ci=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,yi=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Si(e){const[,t,i,n,s,r,a,u]=e;return[pi(t,s,n,i,r,a,u),Xe.utcInstance]}function Ai(e){const[,t,i,n,s,r,a,u]=e;return[pi(t,u,i,n,s,r,a),Xe.utcInstance]}const Ti=$t(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,ni),bi=$t(/(\d{4})-?W(\d\d)(?:-?(\d))?/,ni),Ni=$t(/(\d{4})-?(\d{3})/,ni),Li=$t(ii),Oi=Xt((function(e,t){return[{year:oi(e,t),month:oi(e,t+1,1),day:oi(e,t+2,1)},null,t+3]}),li,Di,di),wi=Xt(si,li,Di,di),_i=Xt(ri,li,Di,di),vi=Xt(li,Di,di),Ii=Xt(li),ki=$t(/(\d{4})-(\d\d)-(\d\d)/,ui),Bi=$t(ai),Ri=Xt(li,Di,di),xi="Invalid Duration",Mi={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Hi={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...Mi},Pi={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Mi},Gi=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],zi=Gi.slice(0).reverse();function Vi(e,t,i=!1){const n={values:i?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Ui(n)}function Yi(e,t){let i=t.milliseconds??0;for(const n of zi.slice(1))t[n]&&(i+=t[n]*e[n].milliseconds);return i}function Wi(e,t){const i=Yi(e,t)<0?-1:1;Gi.reduceRight(((n,s)=>{if(ot(t[s]))return n;if(n){const r=t[n]*i,a=e[s][n],u=Math.floor(r/a);t[s]+=u*i,t[n]-=u*a*i}return s}),null),Gi.reduce(((i,n)=>{if(ot(t[n]))return i;if(i){const s=t[i]%1;t[i]-=s,t[n]+=s*e[i][n]}return n}),null)}class Ui{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let i=t?Pi:Hi;e.matrix&&(i=e.matrix),this.values=e.values,this.loc=e.loc||Ze.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(e,t){return Ui.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new re("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new Ui({values:wt(e,Ui.normalizeUnit),loc:Ze.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(lt(e))return Ui.fromMillis(e);if(Ui.isDuration(e))return e;if("object"==typeof e)return Ui.fromObject(e);throw new re(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[i]=function(e){return Jt(e,[ci,gi])}(e);return i?Ui.fromObject(i,t):Ui.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[i]=function(e){return Jt(e,[hi,Ii])}(e);return i?Ui.fromObject(i,t):Ui.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new re("need to specify a reason the Duration is invalid");const i=e instanceof qt?e:new qt(e,t);if(ut.throwOnInvalid)throw new ie(i);return new Ui({invalid:i})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new se(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const i={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?Kt.create(this.loc,i).formatDurationFromString(this,e):xi}toHuman(e={}){if(!this.isValid)return xi;const t=Gi.map((t=>{const i=this.values[t];return ot(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(i)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=mt(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Zn.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.isValid?Yi(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Ui.fromDurationLike(e),i={};for(const e of Gi)(ct(t.values,e)||ct(this.values,e))&&(i[e]=t.get(e)+this.get(e));return Vi(this,{values:i},!0)}minus(e){if(!this.isValid)return this;const t=Ui.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const i of Object.keys(this.values))t[i]=Ot(e(this.values[i],i));return Vi(this,{values:t},!0)}get(e){return this[Ui.normalizeUnit(e)]}set(e){return this.isValid?Vi(this,{values:{...this.values,...wt(e,Ui.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:i,matrix:n}={}){return Vi(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:n,conversionAccuracy:i})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Wi(this.matrix,e),Vi(this,{values:e},!0)}rescale(){return this.isValid?Vi(this,{values:function(e){const t={};for(const[i,n]of Object.entries(e))0!==n&&(t[i]=n);return t}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>Ui.normalizeUnit(e)));const t={},i={},n=this.toObject();let s;for(const r of Gi)if(e.indexOf(r)>=0){s=r;let e=0;for(const t in i)e+=this.matrix[t][r]*i[t],i[t]=0;lt(n[r])&&(e+=n[r]);const a=Math.trunc(e);t[r]=a,i[r]=(1e3*e-1e3*a)/1e3}else lt(n[r])&&(i[r]=n[r]);for(const e in i)0!==i[e]&&(t[s]+=e===s?i[e]:i[e]/this.matrix[s][e]);return Wi(this.matrix,t),Vi(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return Vi(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const n of Gi)if(t=this.values[n],i=e.values[n],!(void 0===t||0===t?void 0===i||0===i:t===i))return!1;var t,i;return!0}}const ji="Invalid Interval";class Ki{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new re("need to specify a reason the Interval is invalid");const i=e instanceof qt?e:new qt(e,t);if(ut.throwOnInvalid)throw new te(i);return new Ki({invalid:i})}static fromDateTimes(e,t){const i=$n(e),n=$n(t),s=function(e,t){return e&&e.isValid?t&&t.isValid?te}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?Ki.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map($n).filter((e=>this.contains(e))).sort(),i=[];let{s:n}=this,s=0;for(;n+this.e?this.e:e;i.push(Ki.fromDateTimes(n,r)),n=r,s+=1}return i}splitBy(e){const t=Ui.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let i,{s:n}=this,s=1;const r=[];for(;ne*s)));i=+e>+this.e?this.e:e,r.push(Ki.fromDateTimes(n,i)),n=i,s+=1}return r}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,i=this.e=i?null:Ki.fromDateTimes(t,i)}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Ki.fromDateTimes(t,i)}static merge(e){const[t,i]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],i)=>t?t.overlaps(i)||t.abutsStart(i)?[e,t.union(i)]:[e.concat([t]),i]:[e,i]),[[],null]);return i&&t.push(i),t}static xor(e){let t=null,i=0;const n=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),r=Array.prototype.concat(...s).sort(((e,t)=>e.time-t.time));for(const e of r)i+="s"===e.type?1:-1,1===i?t=e.time:(t&&+t!=+e.time&&n.push(Ki.fromDateTimes(t,e.time)),t=null);return Ki.merge(n)}difference(...e){return Ki.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:ji}toLocaleString(e=De,t={}){return this.isValid?Kt.create(this.s.loc.clone(t),e).formatInterval(this):ji}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:ji}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ji}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:ji}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:ji}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Ui.invalid(this.invalidReason)}mapEndpoints(e){return Ki.fromDateTimes(e(this.s),e(this.e))}}class qi{static hasDST(e=ut.defaultZone){const t=Zn.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return He.isValidZone(e)}static normalizeZone(e){return Qe(e,ut.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:i=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Ze.create(t,i,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:i=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Ze.create(t,i,s)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:i=null,locObj:n=null}={}){return(n||Ze.create(t,i,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:i=null,locObj:n=null}={}){return(n||Ze.create(t,i,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Ze.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Ze.create(t,null,"gregory").eras(e)}static features(){return{relative:dt()}}}function Zi(e,t){const i=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=i(t)-i(e);return Math.floor(Ui.fromMillis(n).as("days"))}const $i={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Xi={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Ji=$i.hanidec.replace(/[\[|\]]/g,"").split("");function Qi({numberingSystem:e},t=""){return new RegExp(`${$i[e||"latn"]}${t}`)}function en(e,t=(e=>e)){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let i=0;i=i&&n<=s&&(t+=n-i)}}return parseInt(t,10)}return t}(e))}}const tn=`[ ${String.fromCharCode(160)}]`,nn=new RegExp(tn,"g");function sn(e){return e.replace(/\./g,"\\.?").replace(nn,tn)}function rn(e){return e.replace(/\./g,"").replace(nn," ").toLowerCase()}function an(e,t){return null===e?null:{regex:RegExp(e.map(sn).join("|")),deser:([i])=>e.findIndex((e=>rn(i)===rn(e)))+t}}function un(e,t){return{regex:e,deser:([,e,t])=>Lt(e,t),groups:t}}function on(e){return{regex:e,deser:([e])=>e}}const ln={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Dn=null;function dn(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const i=cn(Kt.macroTokenToFormatOpts(e.val),t);return null==i||i.includes(void 0)?e:i}(e,t))))}function hn(e,t,i){const n=dn(Kt.parseFormat(i),e),s=n.map((t=>function(e,t){const i=Qi(t),n=Qi(t,"{2}"),s=Qi(t,"{3}"),r=Qi(t,"{4}"),a=Qi(t,"{6}"),u=Qi(t,"{1,2}"),o=Qi(t,"{1,3}"),l=Qi(t,"{1,6}"),D=Qi(t,"{1,9}"),d=Qi(t,"{2,4}"),h=Qi(t,"{4,6}"),c=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},g=(g=>{if(e.literal)return c(g);switch(g.val){case"G":return an(t.eras("short"),0);case"GG":return an(t.eras("long"),0);case"y":return en(l);case"yy":case"kk":return en(d,bt);case"yyyy":case"kkkk":return en(r);case"yyyyy":return en(h);case"yyyyyy":return en(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return en(u);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return en(n);case"MMM":return an(t.months("short",!0),1);case"MMMM":return an(t.months("long",!0),1);case"LLL":return an(t.months("short",!1),1);case"LLLL":return an(t.months("long",!1),1);case"o":case"S":return en(o);case"ooo":case"SSS":return en(s);case"u":return on(D);case"uu":return on(u);case"uuu":case"E":case"c":return en(i);case"a":return an(t.meridiems(),0);case"EEE":return an(t.weekdays("short",!1),1);case"EEEE":return an(t.weekdays("long",!1),1);case"ccc":return an(t.weekdays("short",!0),1);case"cccc":return an(t.weekdays("long",!0),1);case"Z":case"ZZ":return un(new RegExp(`([+-]${u.source})(?::(${n.source}))?`),2);case"ZZZ":return un(new RegExp(`([+-]${u.source})(${n.source})?`),2);case"z":return on(/[a-z_+-/]{1,256}?/i);case" ":return on(/[^\S\n\r]/);default:return c(g)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return g.token=e,g}(t,e))),r=s.find((e=>e.invalidReason));if(r)return{input:t,tokens:n,invalidReason:r.invalidReason};{const[e,i]=function(e){return[`^${e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"")}$`,e]}(s),r=RegExp(e,"i"),[a,u]=function(e,t,i){const n=e.match(t);if(n){const e={};let t=1;for(const s in i)if(ct(i,s)){const r=i[s],a=r.groups?r.groups+1:1;!r.literal&&r.token&&(e[r.token.val[0]]=r.deser(n.slice(t,t+a))),t+=a}return[n,e]}return[n,{}]}(t,r,i),[o,l,D]=u?function(e){let t,i=null;return ot(e.z)||(i=He.create(e.z)),ot(e.Z)||(i||(i=new Xe(e.Z)),t=e.Z),ot(e.q)||(e.M=3*(e.q-1)+1),ot(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),ot(e.u)||(e.S=Ft(e.u)),[Object.keys(e).reduce(((t,i)=>{const n=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(i);return n&&(t[n]=e[i]),t}),{}),i,t]}(u):[null,null,void 0];if(ct(u,"a")&&ct(u,"H"))throw new ne("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:n,regex:r,rawMatches:a,matches:u,result:o,zone:l,specificOffset:D}}}function cn(e,t){if(!e)return null;const i=Kt.create(t,e).dtFormatter((Dn||(Dn=Zn.fromMillis(1555555555555)),Dn)),n=i.formatToParts(),s=i.resolvedOptions();return n.map((t=>function(e,t,i){const{type:n,value:s}=e;if("literal"===n){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const r=t[n];let a=n;"hour"===n&&(a=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":i.hour12?"hour12":"hour24");let u=ln[a];if("object"==typeof u&&(u=u[r]),u)return{literal:!1,val:u}}(t,e,s)))}const gn=[0,31,59,90,120,151,181,212,243,273,304,334],En=[0,31,60,91,121,152,182,213,244,274,305,335];function pn(e,t){return new qt("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function fn(e,t,i){const n=new Date(Date.UTC(e,t-1,i));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const s=n.getUTCDay();return 0===s?7:s}function Fn(e,t,i){return i+(Ct(e)?En:gn)[t-1]}function mn(e,t){const i=Ct(e)?En:gn,n=i.findIndex((e=>eTt(t)?(a=t+1,u=1):a=t,{weekYear:a,weekNumber:u,weekday:r,...vt(e)}}function yn(e){const{weekYear:t,weekNumber:i,weekday:n}=e,s=fn(t,1,4),r=yt(t);let a,u=7*i+n-s-3;u<1?(a=t-1,u+=yt(a)):u>r?(a=t+1,u-=yt(t)):a=t;const{month:o,day:l}=mn(a,u);return{year:a,month:o,day:l,...vt(e)}}function Sn(e){const{year:t,month:i,day:n}=e;return{year:t,ordinal:Fn(t,i,n),...vt(e)}}function An(e){const{year:t,ordinal:i}=e,{month:n,day:s}=mn(t,i);return{year:t,month:n,day:s,...vt(e)}}function Tn(e){const t=Dt(e.year),i=gt(e.month,1,12),n=gt(e.day,1,St(e.year,e.month));return t?i?!n&&pn("day",e.day):pn("month",e.month):pn("year",e.year)}function bn(e){const{hour:t,minute:i,second:n,millisecond:s}=e,r=gt(t,0,23)||24===t&&0===i&&0===n&&0===s,a=gt(i,0,59),u=gt(n,0,59),o=gt(s,0,999);return r?a?u?!o&&pn("millisecond",s):pn("second",n):pn("minute",i):pn("hour",t)}const Nn="Invalid DateTime",Ln=864e13;function On(e){return new qt("unsupported zone",`the zone "${e.name}" is not supported`)}function wn(e){return null===e.weekData&&(e.weekData=Cn(e.c)),e.weekData}function _n(e,t){const i={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Zn({...i,...t,old:i})}function vn(e,t,i){let n=e-60*t*1e3;const s=i.offset(n);if(t===s)return[n,t];n-=60*(s-t)*1e3;const r=i.offset(n);return s===r?[n,s]:[e-60*Math.min(s,r)*1e3,Math.max(s,r)]}function In(e,t){const i=new Date(e+=60*t*1e3);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function kn(e,t,i){return vn(At(e),t,i)}function Bn(e,t){const i=e.o,n=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),r={...e.c,year:n,month:s,day:Math.min(e.c.day,St(n,s))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=Ui.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),u=At(r);let[o,l]=vn(u,i,e.zone);return 0!==a&&(o+=a,l=e.zone.offset(o)),{ts:o,o:l}}function Rn(e,t,i,n,s,r){const{setZone:a,zone:u}=i;if(e&&0!==Object.keys(e).length||t){const n=t||u,s=Zn.fromObject(e,{...i,zone:n,specificOffset:r});return a?s:s.setZone(u)}return Zn.invalid(new qt("unparsable",`the input "${s}" can't be parsed as ${n}`))}function xn(e,t,i=!0){return e.isValid?Kt.create(Ze.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Mn(e,t){const i=e.c.year>9999||e.c.year<0;let n="";return i&&e.c.year>=0&&(n+="+"),n+=Et(e.c.year,i?6:4),t?(n+="-",n+=Et(e.c.month),n+="-",n+=Et(e.c.day)):(n+=Et(e.c.month),n+=Et(e.c.day)),n}function Hn(e,t,i,n,s,r){let a=Et(e.c.hour);return t?(a+=":",a+=Et(e.c.minute),0===e.c.millisecond&&0===e.c.second&&i||(a+=":")):a+=Et(e.c.minute),0===e.c.millisecond&&0===e.c.second&&i||(a+=Et(e.c.second),0===e.c.millisecond&&n||(a+=".",a+=Et(e.c.millisecond,3))),s&&(e.isOffsetFixed&&0===e.offset&&!r?a+="Z":e.o<0?(a+="-",a+=Et(Math.trunc(-e.o/60)),a+=":",a+=Et(Math.trunc(-e.o%60))):(a+="+",a+=Et(Math.trunc(e.o/60)),a+=":",a+=Et(Math.trunc(e.o%60)))),r&&(a+="["+e.zone.ianaName+"]"),a}const Pn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Gn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},zn={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Vn=["year","month","day","hour","minute","second","millisecond"],Yn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Wn=["year","ordinal","hour","minute","second","millisecond"];function Un(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new se(e);return t}function jn(e,t){const i=Qe(t.zone,ut.defaultZone),n=Ze.fromObject(t),s=ut.now();let r,a;if(ot(e.year))r=s;else{for(const t of Vn)ot(e[t])&&(e[t]=Pn[t]);const t=Tn(e)||bn(e);if(t)return Zn.invalid(t);const n=i.offset(s);[r,a]=kn(e,n,i)}return new Zn({ts:r,zone:i,loc:n,o:a})}function Kn(e,t,i){const n=!!ot(i.round)||i.round,s=(e,s)=>(e=mt(e,n||i.calendary?0:2,!0),t.loc.clone(i).relFormatter(i).format(e,s)),r=n=>i.calendary?t.hasSame(e,n)?0:t.startOf(n).diff(e.startOf(n),n).get(n):t.diff(e,n).get(n);if(i.unit)return s(r(i.unit),i.unit);for(const e of i.units){const t=r(e);if(Math.abs(t)>=1)return s(t,e)}return s(e>t?-0:0,i.units[i.units.length-1])}function qn(e){let t,i={};return e.length>0&&"object"==typeof e[e.length-1]?(i=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[i,t]}class Zn{constructor(e){const t=e.zone||ut.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new qt("invalid input"):null)||(t.isValid?null:On(t));this.ts=ot(e.ts)?ut.now():e.ts;let n=null,s=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[n,s]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);n=In(this.ts,e),i=Number.isNaN(n.year)?new qt("invalid input"):null,n=i?null:n,s=i?null:e}this._zone=t,this.loc=e.loc||Ze.create(),this.invalid=i,this.weekData=null,this.c=n,this.o=s,this.isLuxonDateTime=!0}static now(){return new Zn({})}static local(){const[e,t]=qn(arguments),[i,n,s,r,a,u,o]=t;return jn({year:i,month:n,day:s,hour:r,minute:a,second:u,millisecond:o},e)}static utc(){const[e,t]=qn(arguments),[i,n,s,r,a,u,o]=t;return e.zone=Xe.utcInstance,jn({year:i,month:n,day:s,hour:r,minute:a,second:u,millisecond:o},e)}static fromJSDate(e,t={}){const i=(n=e,"[object Date]"===Object.prototype.toString.call(n)?e.valueOf():NaN);var n;if(Number.isNaN(i))return Zn.invalid("invalid input");const s=Qe(t.zone,ut.defaultZone);return s.isValid?new Zn({ts:i,zone:s,loc:Ze.fromObject(t)}):Zn.invalid(On(s))}static fromMillis(e,t={}){if(lt(e))return e<-Ln||e>Ln?Zn.invalid("Timestamp out of range"):new Zn({ts:e,zone:Qe(t.zone,ut.defaultZone),loc:Ze.fromObject(t)});throw new re(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(lt(e))return new Zn({ts:1e3*e,zone:Qe(t.zone,ut.defaultZone),loc:Ze.fromObject(t)});throw new re("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const i=Qe(t.zone,ut.defaultZone);if(!i.isValid)return Zn.invalid(On(i));const n=ut.now(),s=ot(t.specificOffset)?i.offset(n):t.specificOffset,r=wt(e,Un),a=!ot(r.ordinal),u=!ot(r.year),o=!ot(r.month)||!ot(r.day),l=u||o,D=r.weekYear||r.weekNumber,d=Ze.fromObject(t);if((l||a)&&D)throw new ne("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&a)throw new ne("Can't mix ordinal dates with month/day");const h=D||r.weekday&&!l;let c,g,E=In(n,s);h?(c=Yn,g=Gn,E=Cn(E)):a?(c=Wn,g=zn,E=Sn(E)):(c=Vn,g=Pn);let p=!1;for(const e of c)ot(r[e])?r[e]=p?g[e]:E[e]:p=!0;const f=h?function(e){const t=Dt(e.weekYear),i=gt(e.weekNumber,1,Tt(e.weekYear)),n=gt(e.weekday,1,7);return t?i?!n&&pn("weekday",e.weekday):pn("week",e.week):pn("weekYear",e.weekYear)}(r):a?function(e){const t=Dt(e.year),i=gt(e.ordinal,1,yt(e.year));return t?!i&&pn("ordinal",e.ordinal):pn("year",e.year)}(r):Tn(r),F=f||bn(r);if(F)return Zn.invalid(F);const m=h?yn(r):a?An(r):r,[C,y]=kn(m,s,i),S=new Zn({ts:C,zone:i,o:y,loc:d});return r.weekday&&l&&e.weekday!==S.weekday?Zn.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${S.toISO()}`):S}static fromISO(e,t={}){const[i,n]=function(e){return Jt(e,[Ti,Oi],[bi,wi],[Ni,_i],[Li,vi])}(e);return Rn(i,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[i,n]=function(e){return Jt(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[fi,Fi])}(e);return Rn(i,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[i,n]=function(e){return Jt(e,[mi,Si],[Ci,Si],[yi,Ai])}(e);return Rn(i,n,t,"HTTP",t)}static fromFormat(e,t,i={}){if(ot(e)||ot(t))throw new re("fromFormat requires an input string and a format");const{locale:n=null,numberingSystem:s=null}=i,r=Ze.fromOpts({locale:n,numberingSystem:s,defaultToEN:!0}),[a,u,o,l]=function(e,t,i){const{result:n,zone:s,specificOffset:r,invalidReason:a}=hn(e,t,i);return[n,s,r,a]}(r,e,t);return l?Zn.invalid(l):Rn(a,u,i,`format ${t}`,e,o)}static fromString(e,t,i={}){return Zn.fromFormat(e,t,i)}static fromSQL(e,t={}){const[i,n]=function(e){return Jt(e,[ki,Oi],[Bi,Ri])}(e);return Rn(i,n,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new re("need to specify a reason the DateTime is invalid");const i=e instanceof qt?e:new qt(e,t);if(ut.throwOnInvalid)throw new ee(i);return new Zn({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const i=cn(e,Ze.fromObject(t));return i?i.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return dn(Kt.parseFormat(e),Ze.fromObject(t)).map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?wn(this).weekYear:NaN}get weekNumber(){return this.isValid?wn(this).weekNumber:NaN}get weekday(){return this.isValid?wn(this).weekday:NaN}get ordinal(){return this.isValid?Sn(this.c).ordinal:NaN}get monthShort(){return this.isValid?qi.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?qi.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?qi.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?qi.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,i=At(this.c),n=this.zone.offset(i-e),s=this.zone.offset(i+e),r=this.zone.offset(i-n*t),a=this.zone.offset(i-s*t);if(r===a)return[this];const u=i-r*t,o=i-a*t,l=In(u,r),D=In(o,a);return l.hour===D.hour&&l.minute===D.minute&&l.second===D.second&&l.millisecond===D.millisecond?[_n(this,{ts:u}),_n(this,{ts:o})]:[this]}get isInLeapYear(){return Ct(this.year)}get daysInMonth(){return St(this.year,this.month)}get daysInYear(){return this.isValid?yt(this.year):NaN}get weeksInWeekYear(){return this.isValid?Tt(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:i,calendar:n}=Kt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:i,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(Xe.instance(e),t)}toLocal(){return this.setZone(ut.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:i=!1}={}){if((e=Qe(e,ut.defaultZone)).equals(this.zone))return this;if(e.isValid){let n=this.ts;if(t||i){const t=e.offset(this.ts),i=this.toObject();[n]=kn(i,t,e)}return _n(this,{ts:n,zone:e})}return Zn.invalid(On(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:i}={}){return _n(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:i})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=wt(e,Un),i=!ot(t.weekYear)||!ot(t.weekNumber)||!ot(t.weekday),n=!ot(t.ordinal),s=!ot(t.year),r=!ot(t.month)||!ot(t.day),a=s||r,u=t.weekYear||t.weekNumber;if((a||n)&&u)throw new ne("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(r&&n)throw new ne("Can't mix ordinal dates with month/day");let o;i?o=yn({...Cn(this.c),...t}):ot(t.ordinal)?(o={...this.toObject(),...t},ot(t.day)&&(o.day=Math.min(St(o.year,o.month),o.day))):o=An({...Sn(this.c),...t});const[l,D]=kn(o,this.o,this.zone);return _n(this,{ts:l,o:D})}plus(e){return this.isValid?_n(this,Bn(this,Ui.fromDurationLike(e))):this}minus(e){return this.isValid?_n(this,Bn(this,Ui.fromDurationLike(e).negate())):this}startOf(e){if(!this.isValid)return this;const t={},i=Ui.normalizeUnit(e);switch(i){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===i&&(t.weekday=1),"quarters"===i){const e=Math.ceil(this.month/3);t.month=3*(e-1)+1}return this.set(t)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,t={}){return this.isValid?Kt.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Nn}toLocaleString(e=De,t={}){return this.isValid?Kt.create(this.loc.clone(t),e).formatDateTime(this):Nn}toLocaleParts(e={}){return this.isValid?Kt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:i=!1,includeOffset:n=!0,extendedZone:s=!1}={}){if(!this.isValid)return null;const r="extended"===e;let a=Mn(this,r);return a+="T",a+=Hn(this,r,t,i,n,s),a}toISODate({format:e="extended"}={}){return this.isValid?Mn(this,"extended"===e):null}toISOWeekDate(){return xn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:i=!0,includePrefix:n=!1,extendedZone:s=!1,format:r="extended"}={}){return this.isValid?(n?"T":"")+Hn(this,"extended"===r,t,e,i,s):null}toRFC2822(){return xn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return xn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Mn(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:i=!0}={}){let n="HH:mm:ss.SSS";return(t||e)&&(i&&(n+=" "),t?n+="z":e&&(n+="ZZ")),xn(this,n,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Nn}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",i={}){if(!this.isValid||!e.isValid)return Ui.invalid("created by diffing an invalid DateTime");const n={locale:this.locale,numberingSystem:this.numberingSystem,...i},s=(u=t,Array.isArray(u)?u:[u]).map(Ui.normalizeUnit),r=e.valueOf()>this.valueOf(),a=function(e,t,i,n){let[s,r,a,u]=function(e,t,i){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const i=Zi(e,t);return(i-i%7)/7}],["days",Zi]],s={},r=e;let a,u;for(const[o,l]of n)i.indexOf(o)>=0&&(a=o,s[o]=l(e,t),u=r.plus(s),u>t?(s[o]--,(e=r.plus(s))>t&&(u=e,s[o]--,e=r.plus(s))):e=u);return[e,s,u,a]}(e,t,i);const o=t-s,l=i.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===l.length&&(a0?Ui.fromMillis(o,n).shiftTo(...l).plus(D):D}(r?this:e,r?e:this,s,n);var u;return r?a.negate():a}diffNow(e="milliseconds",t={}){return this.diff(Zn.now(),e,t)}until(e){return this.isValid?Ki.fromDateTimes(this,e):this}hasSame(e,t){if(!this.isValid)return!1;const i=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(t)<=i&&i<=n.endOf(t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||Zn.fromObject({},{zone:this.zone}),i=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(Zn.isDateTime))throw new re("max requires all arguments be DateTimes");return ht(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,i={}){const{locale:n=null,numberingSystem:s=null}=i;return hn(Ze.fromOpts({locale:n,numberingSystem:s,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,i={}){return Zn.fromFormatExplain(e,t,i)}static get DATE_SHORT(){return De}static get DATE_MED(){return de}static get DATE_MED_WITH_WEEKDAY(){return he}static get DATE_FULL(){return ce}static get DATE_HUGE(){return ge}static get TIME_SIMPLE(){return Ee}static get TIME_WITH_SECONDS(){return pe}static get TIME_WITH_SHORT_OFFSET(){return fe}static get TIME_WITH_LONG_OFFSET(){return Fe}static get TIME_24_SIMPLE(){return me}static get TIME_24_WITH_SECONDS(){return Ce}static get TIME_24_WITH_SHORT_OFFSET(){return ye}static get TIME_24_WITH_LONG_OFFSET(){return Se}static get DATETIME_SHORT(){return Ae}static get DATETIME_SHORT_WITH_SECONDS(){return Te}static get DATETIME_MED(){return be}static get DATETIME_MED_WITH_SECONDS(){return Ne}static get DATETIME_MED_WITH_WEEKDAY(){return Le}static get DATETIME_FULL(){return Oe}static get DATETIME_FULL_WITH_SECONDS(){return we}static get DATETIME_HUGE(){return _e}static get DATETIME_HUGE_WITH_SECONDS(){return ve}}function $n(e){if(Zn.isDateTime(e))return e;if(e&&e.valueOf&<(e.valueOf()))return Zn.fromJSDate(e);if(e&&"object"==typeof e)return Zn.fromObject(e);throw new re(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const Xn={renderNullAs:"\\-",taskCompletionTracking:!1,taskCompletionUseEmojiShorthand:!1,taskCompletionText:"completion",taskCompletionDateFormat:"yyyy-MM-dd",recursiveSubTaskCompletion:!1,warnOnEmptyResult:!0,refreshEnabled:!0,refreshInterval:2500,defaultDateFormat:"MMMM dd, yyyy",defaultDateTimeFormat:"h:mm a - MMMM dd, yyyy",maxRecursiveRenderDepth:4,tableIdColumnName:"File",tableGroupColumnName:"Group",showResultCount:!0};class Jn{value;successful;constructor(e){this.value=e,this.successful=!0}map(e){return new Jn(e(this.value))}flatMap(e){return e(this.value)}mapErr(e){return this}bimap(e,t){return this.map(e)}orElse(e){return this.value}cast(){return this}orElseThrow(e){return this.value}}class Qn{error;successful;constructor(e){this.error=e,this.successful=!1}map(e){return this}flatMap(e){return this}mapErr(e){return new Qn(e(this.error))}bimap(e,t){return this.mapErr(t)}orElse(e){return e}cast(){return this}orElseThrow(e){throw e?new Error(e(this.error)):new Error(""+this.error)}}var es;!function(e){function t(e){return new Jn(e)}function i(e){return new Qn(e)}function n(e,t,n){return e.successful?t.successful?n(e.value,t.value):i(t.error):i(e.error)}e.success=t,e.failure=i,e.flatMap2=n,e.map2=function(e,i,s){return n(e,i,((e,i)=>t(s(e,i))))}}(es||(es={})),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==b||"undefined"!=typeof self&&self;var ts={exports:{}};"undefined"!=typeof self&&self,ts.exports=function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(e,t,i){function n(e){if(!(this instanceof n))return new n(e);this._=e}var s=n.prototype;function r(e,t){for(var i=0;i>7),buf:function(e){var t=a((function(e,t,i,n){return e.concat(i===n.length-1?Buffer.from([t,0]).readUInt16BE(0):n.readUInt16BE(i))}),[],e);return Buffer.from(u((function(e){return(e<<1&65535)>>8}),t))}(i.buf)}})),i}function l(){return"undefined"!=typeof Buffer}function D(){if(!l())throw new Error("Buffer global does not exist; please use webpack if you need to parse Buffers in the browser.")}function d(e){D();var t=a((function(e,t){return e+t}),0,e);if(t%8!=0)throw new Error("The bits ["+e.join(", ")+"] add up to "+t+" which is not an even number of bytes; the total should be divisible by 8");var i,s=t/8,r=(i=function(e){return e>48},a((function(e,t){return e||(i(t)?t:e)}),null,e));if(r)throw new Error(r+" bit range requested exceeds 48 bit (6 byte) Number max.");return new n((function(t,i){var n=s+i;return n>t.length?S(i,s.toString()+" bytes"):y(n,a((function(e,t){var i=o(t,e.buf);return{coll:e.coll.concat(i.v),buf:i.buf}}),{coll:[],buf:t.slice(i,n)},e).coll)}))}function h(e,t){return new n((function(i,n){return D(),n+t>i.length?S(n,t+" bytes for "+e):y(n+t,i.slice(n,n+t))}))}function c(e,t){if("number"!=typeof(i=t)||Math.floor(i)!==i||t<0||t>6)throw new Error(e+" requires integer length in range [0, 6].");var i}function g(e){return c("uintBE",e),h("uintBE("+e+")",e).map((function(t){return t.readUIntBE(0,e)}))}function E(e){return c("uintLE",e),h("uintLE("+e+")",e).map((function(t){return t.readUIntLE(0,e)}))}function p(e){return c("intBE",e),h("intBE("+e+")",e).map((function(t){return t.readIntBE(0,e)}))}function f(e){return c("intLE",e),h("intLE("+e+")",e).map((function(t){return t.readIntLE(0,e)}))}function F(e){return e instanceof n}function m(e){return"[object Array]"==={}.toString.call(e)}function C(e){return l()&&Buffer.isBuffer(e)}function y(e,t){return{status:!0,index:e,value:t,furthest:-1,expected:[]}}function S(e,t){return m(t)||(t=[t]),{status:!1,index:-1,value:null,furthest:e,expected:t}}function A(e,t){if(!t)return e;if(e.furthest>t.furthest)return e;var i=e.furthest===t.furthest?function(e,t){if(function(){if(void 0!==n._supportsSet)return n._supportsSet;var e="undefined"!=typeof Set;return n._supportsSet=e,e}()&&Array.from){for(var i=new Set(e),s=0;s=0;){if(a in i){n=i[a].line,0===r&&(r=i[a].lineStart);break}("\n"===e.charAt(a)||"\r"===e.charAt(a)&&"\n"!==e.charAt(a+1))&&(s++,0===r&&(r=a+1)),a--}var u=n+s,o=t-r;return i[t]={line:u,lineStart:r},{offset:t,line:u+1,column:o+1}}function N(e){if(!F(e))throw new Error("not a parser: "+e)}function L(e,t){return"string"==typeof e?e.charAt(t):e[t]}function O(e){if("number"!=typeof e)throw new Error("not a number: "+e)}function w(e){if("function"!=typeof e)throw new Error("not a function: "+e)}function _(e){if("string"!=typeof e)throw new Error("not a string: "+e)}var v=2,I=3,k=8,B=5*k,R=4*k,x=" ";function M(e,t){return new Array(t+1).join(e)}function H(e,t,i){var n=t-e.length;return n<=0?e:M(i,n)+e}function P(e,t,i,n){return{from:e-t>0?e-t:0,to:e+i>n?n:e+i}}function G(e,t){var i,n,s,r,o,l=t.index,D=l.offset,d=1;if(D===e.length)return"Got the end of the input";if(C(e)){var h=D-D%k,c=D-h,g=P(h,B,R+k,e.length),E=u((function(e){return u((function(e){return H(e.toString(16),2,"0")}),e)}),function(e,t){var i=e.length,n=[],s=0;if(i<=t)return[e.slice()];for(var r=0;r=4&&(i+=1),d=2,s=u((function(e){return e.length<=4?e.join(" "):e.slice(0,4).join(" ")+" "+e.slice(4).join(" ")}),E),(o=(8*(r.to>0?r.to-1:r.to)).toString(16).length)<2&&(o=2)}else{var p=e.split(/\r\n|[\n\r\u2028\u2029]/);i=l.column-1,n=l.line-1,r=P(n,v,I,p.length),s=p.slice(r.from,r.to),o=r.to.toString().length}var f=n-r.from;return C(e)&&(o=(8*(r.to>0?r.to-1:r.to)).toString(16).length)<2&&(o=2),a((function(t,n,s){var a,u=s===f,l=u?"> ":x;return a=C(e)?H((8*(r.from+s)).toString(16),o,"0"):H((r.from+s+1).toString(),o," "),[].concat(t,[l+a+" | "+n],u?[x+M(" ",o)+" | "+H("",i," ")+M("^",d)]:[])}),[],s).join("\n")}function z(e,t){return["\n","-- PARSING FAILED "+M("-",50),"\n\n",G(e,t),"\n\n",(i=t.expected,1===i.length?"Expected:\n\n"+i[0]:"Expected one of the following: \n\n"+i.join(", ")),"\n"].join("");var i}function V(e){return void 0!==e.flags?e.flags:[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.unicode?"u":"",e.sticky?"y":""].join("")}function Y(){for(var e=[].slice.call(arguments),t=e.length,i=0;i=2?O(t):t=0;var i=function(e){return RegExp("^(?:"+e.source+")",V(e))}(e),s=""+e;return n((function(e,n){var r=i.exec(e.slice(n));if(r){if(0<=t&&t<=r.length){var a=r[0],u=r[t];return y(n+a.length,u)}return S(n,"valid match group (0 to "+r.length+") in "+s)}return S(n,s)}))}function $(e){return n((function(t,i){return y(i,e)}))}function X(e){return n((function(t,i){return S(i,e)}))}function J(e){if(F(e))return n((function(t,i){var n=e._(t,i);return n.index=i,n.value="",n}));if("string"==typeof e)return J(q(e));if(e instanceof RegExp)return J(Z(e));throw new Error("not a string, regexp, or parser: "+e)}function Q(e){return N(e),n((function(t,i){var n=e._(t,i),s=t.slice(i,n.index);return n.status?S(i,'not "'+s+'"'):y(i,null)}))}function ee(e){return w(e),n((function(t,i){var n=L(t,i);return i=e.length?S(t,"any character/byte"):y(t+1,L(e,t))})),re=n((function(e,t){return y(e.length,e.slice(t))})),ae=n((function(e,t){return t=0})).desc(t)},n.optWhitespace=de,n.Parser=n,n.range=function(e,t){return ee((function(i){return e<=i&&i<=t})).desc(e+"-"+t)},n.regex=Z,n.regexp=Z,n.sepBy=j,n.sepBy1=K,n.seq=Y,n.seqMap=W,n.seqObj=function(){for(var e,t={},i=0,s=(e=arguments,Array.prototype.slice.call(e)),r=s.length,a=0;a255)throw new Error("Value specified to byte constructor ("+e+"=0x"+e.toString(16)+") is larger in value than a single byte.");var t=(e>15?"0x":"0x0")+e.toString(16);return n((function(i,n){var s=L(i,n);return s===e?y(n+1,s):S(n,t)}))},buffer:function(e){return h("buffer",e).map((function(e){return Buffer.from(e)}))},encodedString:function(e,t){return h("string",t).map((function(t){return t.toString(e)}))},uintBE:g,uint8BE:g(1),uint16BE:g(2),uint32BE:g(4),uintLE:E,uint8LE:E(1),uint16LE:E(2),uint32LE:E(4),intBE:p,int8BE:p(1),int16BE:p(2),int32BE:p(4),intLE:f,int8LE:f(1),int16LE:f(2),int32LE:f(4),floatBE:h("floatBE",4).map((function(e){return e.readFloatBE(0)})),floatLE:h("floatLE",4).map((function(e){return e.readFloatLE(0)})),doubleBE:h("doubleBE",8).map((function(e){return e.readDoubleBE(0)})),doubleLE:h("doubleLE",8).map((function(e){return e.readDoubleLE(0)}))},e.exports=n}]);var is=ts.exports;function ns(e){return null==e?e:e.shiftToAll().normalize()}function ss(e){return e.includes("/")&&(e=e.substring(e.lastIndexOf("/")+1)),e.endsWith(".md")&&(e=e.substring(0,e.length-3)),e}is.alt(is.regex(new RegExp(/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9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\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,"")),is.regex(/[0-9\p{Letter}_-]+/u).map((e=>e.toLocaleLowerCase())),is.whitespace.map((e=>"-")),is.any.map((e=>""))).many().map((e=>e.join("")));const rs=is.alt(is.regex(new RegExp(/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\u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FF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,"")),is.regex(/[0-9\p{Letter}_-]+/u),is.whitespace.map((e=>" ")),is.any.map((e=>" "))).many().map((e=>e.join("").split(/\s+/).join(" ").trim()));function as(e){return rs.tryParse(e)}var us,os,ls,Ds,ds;!function(e){function t(e){return a(e)?{type:"null",value:e}:n(e)?{type:"number",value:e}:i(e)?{type:"string",value:e}:o(e)?{type:"boolean",value:e}:r(e)?{type:"duration",value:e}:s(e)?{type:"date",value:e}:D(e)?{type:"widget",value:e}:u(e)?{type:"array",value:e}:l(e)?{type:"link",value:e}:c(e)?{type:"function",value:e}:d(e)?{type:"html",value:e}:h(e)?{type:"object",value:e}:void 0}function i(e){return"string"==typeof e}function n(e){return"number"==typeof e}function s(e){return e instanceof Zn}function r(e){return e instanceof Ui}function a(e){return null==e}function u(e){return Array.isArray(e)}function o(e){return"boolean"==typeof e}function l(e){return e instanceof hs}function D(e){return e instanceof cs}function d(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function h(e){return!("object"!=typeof e||d(e)||D(e)||u(e)||r(e)||s(e)||l(e)||void 0===e||a(e))}function c(e){return"function"==typeof e}e.toString=function e(i,n=Xn,s=!1){let r=t(i);if(!r)return n.renderNullAs;switch(r.type){case"null":return n.renderNullAs;case"string":return r.value;case"number":case"boolean":return""+r.value;case"html":return r.value.outerHTML;case"widget":case"link":return r.value.markdown();case"function":return"";case"array":let t="";return s&&(t+="["),t+=r.value.map((t=>e(t,n,!0))).join(", "),s&&(t+="]"),t;case"object":return"{ "+Object.entries(r.value).map((t=>t[0]+": "+e(t[1],n,!0))).join(", ")+" }";case"date":return 0==r.value.second&&0==r.value.hour&&0==r.value.minute?r.value.toFormat(n.defaultDateFormat):r.value.toFormat(n.defaultDateTimeFormat);case"duration":return a=ns(a=r.value),(a=Ui.fromObject(Object.fromEntries(Object.entries(a.toObject()).filter((([,e])=>0!=e))))).toHuman()}var a},e.wrapValue=t,e.mapLeaves=function e(t,i){if(h(t)){let n={};for(let[s,r]of Object.entries(t))n[s]=e(r,i);return n}if(u(t)){let n=[];for(let s of t)n.push(e(s,i));return n}return i(t)},e.compareValue=function e(i,n,s){if(void 0===i&&(i=null),void 0===n&&(n=null),null===i&&null===n)return 0;if(null===i)return-1;if(null===n)return 1;let r=t(i),a=t(n);if(void 0===r&&void 0===a)return 0;if(void 0===r)return-1;if(void 0===a)return 1;if(r.type!=a.type)return r.type.localeCompare(a.type);if(r.value===a.value)return 0;switch(r.type){case"string":return r.value.localeCompare(a.value);case"number":return r.valuee),u=n(t.path).localeCompare(n(i.path));if(0!=u)return u;let o=t.type.localeCompare(i.type);return 0!=o?o:t.subpath&&!i.subpath?1:!t.subpath&&i.subpath?-1:t.subpath||i.subpath?(t.subpath??"").localeCompare(i.subpath??""):0;case"date":case"duration":return r.value0;case"boolean":return i.value;case"link":return!!i.value.path;case"date":return 0!=i.value.toMillis();case"duration":return 0!=i.value.as("seconds");case"object":return Object.keys(i.value).length>0;case"null":return!1;case"html":case"widget":case"function":return!0}},e.deepCopy=function t(i){if(null==i)return i;if(e.isArray(i))return[].concat(i.map((e=>t(e))));if(e.isObject(i)){let e={};for(let[n,s]of Object.entries(i))e[n]=t(s);return e}return i},e.isString=i,e.isNumber=n,e.isDate=s,e.isDuration=r,e.isNull=a,e.isArray=u,e.isBoolean=o,e.isLink=l,e.isWidget=D,e.isHtml=d,e.isObject=h,e.isFunction=c}(us||(us={})),function(e){function t(e){return us.isObject(e)&&2==Object.keys(e).length&&"key"in e&&"rows"in e}function i(e){for(let i of e)if(!t(i))return!1;return!0}e.isElementGroup=t,e.isGrouping=i,e.count=function e(t){if(i(t)){let i=0;for(let n of t)i+=e(n.rows);return i}return t.length}}(os||(os={}));class hs{path;display;subpath;embed;type;static file(e,t=!1,i){return new hs({path:e,embed:t,display:i,subpath:void 0,type:"file"})}static infer(e,t=!1,i){if(e.includes("#^")){let n=e.split("#^");return hs.block(n[0],n[1],t,i)}if(e.includes("#")){let n=e.split("#");return hs.header(n[0],n[1],t,i)}return hs.file(e,t,i)}static header(e,t,i,n){return new hs({path:e,embed:i,display:n,subpath:as(t),type:"header"})}static block(e,t,i,n){return new hs({path:e,embed:i,display:n,subpath:t,type:"block"})}static fromObject(e){return new hs(e)}constructor(e){Object.assign(this,e)}equals(e){return null!=e&&null!=e&&this.path==e.path&&this.type==e.type&&this.subpath==e.subpath}toString(){return this.markdown()}toObject(){return{path:this.path,type:this.type,subpath:this.subpath,display:this.display,embed:this.embed}}withPath(e){return new hs(Object.assign({},this,{path:e}))}withDisplay(e){return new hs(Object.assign({},this,{display:e}))}withHeader(e){return hs.header(this.path,e,this.embed,this.display)}toFile(){return hs.file(this.path,this.embed,this.display)}toEmbed(){if(this.embed)return this;{let e=new hs(this);return e.embed=!0,e}}fromEmbed(){if(this.embed){let e=new hs(this);return e.embed=!1,e}return this}markdown(){let e=(this.embed?"!":"")+"[["+this.obsidianLink();return this.display?e+="|"+this.display:(e+="|"+ss(this.path),"header"!=this.type&&"block"!=this.type||(e+=" > "+this.subpath)),e+="]]",e}obsidianLink(){const e=this.path.replaceAll("|","\\|");return"header"==this.type?e+"#"+this.subpath?.replaceAll("|","\\|"):"block"==this.type?e+"#^"+this.subpath?.replaceAll("|","\\|"):e}fileName(){return ss(this.path).replace(".md","")}}class cs{$widget;constructor(e){this.$widget=e}}class gs extends cs{key;value;constructor(e,t){super("dataview:list-pair"),this.key=e,this.value=t}markdown(){return`${us.toString(this.key)}: ${us.toString(this.value)}`}}class Es extends cs{url;display;constructor(e,t){super("dataview:external-link"),this.url=e,this.display=t}markdown(){return`[${this.display??this.url}](${this.url})`}}!function(e){function t(e){return"dataview:list-pair"===e.$widget}function i(e){return"dataview:external-link"===e.$widget}e.listPair=function(e,t){return new gs(e,t)},e.externalLink=function(e,t){return new Es(e,t)},e.isListPair=t,e.isExternalLink=i,e.isBuiltin=function(e){return t(e)||i(e)}}(ls||(ls={})),function(e){e.variable=function(e){return{type:"variable",name:e}},e.literal=function(e){return{type:"literal",value:e}},e.binaryOp=function(e,t,i){return{type:"binaryop",left:e,op:t,right:i}},e.index=function(e,t){return{type:"index",object:e,index:t}},e.indexVariable=function(t){let i=t.split("."),n=e.variable(i[0]);for(let t=1;t"==e||">="==e||"!="==e||"="==e},e.NULL=e.literal(null)}(Ds||(Ds={})),function(e){e.tag=function(e){return{type:"tag",tag:e}},e.csv=function(e){return{type:"csv",path:e}},e.folder=function(e){return{type:"folder",folder:e}},e.link=function(e,t){return{type:"link",file:e,direction:t?"incoming":"outgoing"}},e.binaryOp=function(e,t,i){return{type:"binaryop",left:e,op:t,right:i}},e.and=function(e,t){return{type:"binaryop",left:e,op:"&",right:t}},e.or=function(e,t){return{type:"binaryop",left:e,op:"|",right:t}},e.negate=function(e){return{type:"negate",child:e}},e.empty=function(){return{type:"empty"}}}(ds||(ds={}));const ps=new RegExp(/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF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uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,""),fs={year:Ui.fromObject({years:1}),years:Ui.fromObject({years:1}),yr:Ui.fromObject({years:1}),yrs:Ui.fromObject({years:1}),month:Ui.fromObject({months:1}),months:Ui.fromObject({months:1}),mo:Ui.fromObject({months:1}),mos:Ui.fromObject({months:1}),week:Ui.fromObject({weeks:1}),weeks:Ui.fromObject({weeks:1}),wk:Ui.fromObject({weeks:1}),wks:Ui.fromObject({weeks:1}),w:Ui.fromObject({weeks:1}),day:Ui.fromObject({days:1}),days:Ui.fromObject({days:1}),d:Ui.fromObject({days:1}),hour:Ui.fromObject({hours:1}),hours:Ui.fromObject({hours:1}),hr:Ui.fromObject({hours:1}),hrs:Ui.fromObject({hours:1}),h:Ui.fromObject({hours:1}),minute:Ui.fromObject({minutes:1}),minutes:Ui.fromObject({minutes:1}),min:Ui.fromObject({minutes:1}),mins:Ui.fromObject({minutes:1}),m:Ui.fromObject({minutes:1}),second:Ui.fromObject({seconds:1}),seconds:Ui.fromObject({seconds:1}),sec:Ui.fromObject({seconds:1}),secs:Ui.fromObject({seconds:1}),s:Ui.fromObject({seconds:1})},Fs={now:()=>Zn.local(),today:()=>Zn.local().startOf("day"),yesterday:()=>Zn.local().startOf("day").minus(Ui.fromObject({days:1})),tomorrow:()=>Zn.local().startOf("day").plus(Ui.fromObject({days:1})),sow:()=>Zn.local().startOf("week"),"start-of-week":()=>Zn.local().startOf("week"),eow:()=>Zn.local().endOf("week"),"end-of-week":()=>Zn.local().endOf("week"),soy:()=>Zn.local().startOf("year"),"start-of-year":()=>Zn.local().startOf("year"),eoy:()=>Zn.local().endOf("year"),"end-of-year":()=>Zn.local().endOf("year"),som:()=>Zn.local().startOf("month"),"start-of-month":()=>Zn.local().startOf("month"),eom:()=>Zn.local().endOf("month"),"end-of-month":()=>Zn.local().endOf("month")},ms=["FROM","WHERE","LIMIT","GROUP","FLATTEN"];function Cs(e,t,i){return is.seqMap(e,is.seq(is.optWhitespace,t,is.optWhitespace,e).many(),((e,t)=>{if(0==t.length)return e;let n=i(e,t[0][1],t[0][3]);for(let e=1;eis.regexp(/-?[0-9]+(\.[0-9]+)?/).map((e=>Number.parseFloat(e))).desc("number"),string:e=>is.string('"').then(is.alt(e.escapeCharacter,is.noneOf('"\\')).atLeast(0).map((e=>e.join("")))).skip(is.string('"')).desc("string"),escapeCharacter:e=>is.string("\\").then(is.any).map((e=>'"'===e?'"':"\\"===e?"\\":"\\"+e)),bool:e=>is.regexp(/true|false|True|False/).map((e=>"true"==e.toLowerCase())).desc("boolean ('true' or 'false')"),tag:e=>is.seqMap(is.string("#"),is.alt(is.regexp(/[^\u2000-\u206F\u2E00-\u2E7F'!"#$%&()*+,.:;<=>?@^`{|}~\[\]\\\s]/).desc("text")).many(),((e,t)=>e+t.join(""))).desc("tag ('#hello/stuff')"),identifier:e=>is.seqMap(is.alt(is.regexp(/\p{Letter}/u),is.regexp(ps).desc("text")),is.alt(is.regexp(/[0-9\p{Letter}_-]/u),is.regexp(ps).desc("text")).many(),((e,t)=>e+t.join(""))).desc("variable identifier"),link:e=>is.regexp(/\[\[([^\[\]]*?)\]\]/u,1).map((e=>function(e){let[t,i]=function(e){let t=-1;for(;(t=e.indexOf("|",t+1))>=0;)if(!(t>0&&"\\"==e[t-1]))return[e.substring(0,t).replace(/\\\|/g,"|"),e.substring(t+1)];return[e.replace(/\\\|/g,"|"),void 0]}(e);return hs.infer(t,!1,i)}(e))).desc("file link"),embedLink:e=>is.seqMap(is.string("!").atMost(1),e.link,((e,t)=>(e.length>0&&(t.embed=!0),t))).desc("file link"),binaryPlusMinus:e=>is.regexp(/\+|-/).map((e=>e)).desc("'+' or '-'"),binaryMulDiv:e=>is.regexp(/\*|\/|%/).map((e=>e)).desc("'*' or '/' or '%'"),binaryCompareOp:e=>is.regexp(/>=|<=|!=|>|<|=/).map((e=>e)).desc("'>=' or '<=' or '!=' or '=' or '>' or '<'"),binaryBooleanOp:e=>is.regexp(/and|or|&|\|/i).map((e=>"and"==e.toLowerCase()?"&":"or"==e.toLowerCase()?"|":e)).desc("'and' or 'or'"),rootDate:e=>is.seqMap(is.regexp(/\d{4}/),is.string("-"),is.regexp(/\d{2}/),((e,t,i)=>Zn.fromObject({year:Number.parseInt(e),month:Number.parseInt(i)}))).desc("date in format YYYY-MM[-DDTHH-MM-SS.MS]"),dateShorthand:e=>is.alt(...Object.keys(Fs).sort(((e,t)=>t.length-e.length)).map(is.string)),date:e=>function(e,...t){return is.custom(((i,n)=>(i,n)=>{let s=e._(i,n);if(!s.status)return s;for(let e of t){let t=e(s.value)._(i,s.index);if(!t.status)return s;s=t}return s}))}(e.rootDate,(e=>is.seqMap(is.string("-"),is.regexp(/\d{2}/),((t,i)=>e.set({day:Number.parseInt(i)})))),(e=>is.seqMap(is.string("T"),is.regexp(/\d{2}/),((t,i)=>e.set({hour:Number.parseInt(i)})))),(e=>is.seqMap(is.string(":"),is.regexp(/\d{2}/),((t,i)=>e.set({minute:Number.parseInt(i)})))),(e=>is.seqMap(is.string(":"),is.regexp(/\d{2}/),((t,i)=>e.set({second:Number.parseInt(i)})))),(e=>is.alt(is.seqMap(is.string("."),is.regexp(/\d{3}/),((t,i)=>e.set({millisecond:Number.parseInt(i)}))),is.succeed(e))),(e=>is.alt(is.seqMap(is.string("+").or(is.string("-")),is.regexp(/\d{1,2}(:\d{2})?/),((t,i)=>e.setZone("UTC"+t+i,{keepLocalTime:!0}))),is.seqMap(is.string("Z"),(()=>e.setZone("utc",{keepLocalTime:!0}))),is.seqMap(is.string("["),is.regexp(/[0-9A-Za-z+-\/]+/u),is.string("]"),((t,i,n)=>e.setZone(i,{keepLocalTime:!0})))))).assert((e=>e.isValid),"valid date").desc("date in format YYYY-MM[-DDTHH-MM-SS.MS]"),datePlus:e=>is.alt(e.dateShorthand.map((e=>Fs[e]())),e.date).desc("date in format YYYY-MM[-DDTHH-MM-SS.MS] or in shorthand"),durationType:e=>is.alt(...Object.keys(fs).sort(((e,t)=>t.length-e.length)).map(is.string)),duration:e=>is.seqMap(e.number,is.optWhitespace,e.durationType,((e,t,i)=>fs[i].mapUnits((t=>t*e)))).sepBy1(is.string(",").trim(is.optWhitespace).or(is.optWhitespace)).map((e=>e.reduce(((e,t)=>e.plus(t))))).desc("duration like 4hr2min"),rawNull:e=>is.string("null"),tagSource:e=>e.tag.map((e=>ds.tag(e))),csvSource:e=>is.seqMap(is.string("csv(").skip(is.optWhitespace),e.string,is.string(")"),((e,t,i)=>ds.csv(t))),linkIncomingSource:e=>e.link.map((e=>ds.link(e.path,!0))),linkOutgoingSource:e=>is.seqMap(is.string("outgoing(").skip(is.optWhitespace),e.link,is.string(")"),((e,t,i)=>ds.link(t.path,!1))),folderSource:e=>e.string.map((e=>ds.folder(e))),parensSource:e=>is.seqMap(is.string("("),is.optWhitespace,e.source,is.optWhitespace,is.string(")"),((e,t,i,n,s)=>i)),negateSource:e=>is.seqMap(is.alt(is.string("-"),is.string("!")),e.atomSource,((e,t)=>ds.negate(t))),atomSource:e=>is.alt(e.parensSource,e.negateSource,e.linkOutgoingSource,e.linkIncomingSource,e.folderSource,e.tagSource,e.csvSource),binaryOpSource:e=>Cs(e.atomSource,e.binaryBooleanOp.map((e=>e)),ds.binaryOp),source:e=>e.binaryOpSource,variableField:e=>e.identifier.chain((e=>ms.includes(e.toUpperCase())?is.fail("Variable fields cannot be a keyword ("+ms.join(" or ")+")"):is.succeed(Ds.variable(e)))).desc("variable"),numberField:e=>e.number.map((e=>Ds.literal(e))).desc("number"),stringField:e=>e.string.map((e=>Ds.literal(e))).desc("string"),boolField:e=>e.bool.map((e=>Ds.literal(e))).desc("boolean"),dateField:e=>is.seqMap(is.string("date("),is.optWhitespace,e.datePlus,is.optWhitespace,is.string(")"),((e,t,i,n,s)=>Ds.literal(i))).desc("date"),durationField:e=>is.seqMap(is.string("dur("),is.optWhitespace,e.duration,is.optWhitespace,is.string(")"),((e,t,i,n,s)=>Ds.literal(i))).desc("duration"),nullField:e=>e.rawNull.map((e=>Ds.NULL)),linkField:e=>e.link.map((e=>Ds.literal(e))),listField:e=>e.field.sepBy(is.string(",").trim(is.optWhitespace)).wrap(is.string("[").skip(is.optWhitespace),is.optWhitespace.then(is.string("]"))).map((e=>Ds.list(e))).desc("list ('[1, 2, 3]')"),objectField:e=>is.seqMap(e.identifier.or(e.string),is.string(":").trim(is.optWhitespace),e.field,((e,t,i)=>({name:e,value:i}))).sepBy(is.string(",").trim(is.optWhitespace)).wrap(is.string("{").skip(is.optWhitespace),is.optWhitespace.then(is.string("}"))).map((e=>{let t={};for(let i of e)t[i.name]=i.value;return Ds.object(t)})).desc("object ('{ a: 1, b: 2 }')"),atomInlineField:e=>is.alt(e.date,e.duration.map((e=>ns(e))),e.string,e.tag,e.embedLink,e.bool,e.number,e.rawNull),inlineFieldList:e=>e.atomInlineField.sepBy(is.string(",").trim(is.optWhitespace).lookahead(e.atomInlineField)),inlineField:e=>is.alt(is.seqMap(e.atomInlineField,is.string(",").trim(is.optWhitespace),e.inlineFieldList,((e,t,i)=>[e].concat(i))),e.atomInlineField),atomField:e=>is.alt(e.embedLink.map((e=>Ds.literal(e))),e.negatedField,e.linkField,e.listField,e.objectField,e.lambdaField,e.parensField,e.boolField,e.numberField,e.stringField,e.dateField,e.durationField,e.nullField,e.variableField),indexField:e=>is.seqMap(e.atomField,is.alt(e.dotPostfix,e.indexPostfix,e.functionPostfix).many(),((e,t)=>{let i=e;for(let e of t)switch(e.type){case"dot":i=Ds.index(i,Ds.literal(e.field));break;case"index":i=Ds.index(i,e.field);break;case"function":i=Ds.func(i,e.fields)}return i})),negatedField:e=>is.seqMap(is.string("!"),e.indexField,((e,t)=>Ds.negate(t))).desc("negated field"),parensField:e=>is.seqMap(is.string("("),is.optWhitespace,e.field,is.optWhitespace,is.string(")"),((e,t,i,n,s)=>i)),lambdaField:e=>is.seqMap(e.identifier.sepBy(is.string(",").trim(is.optWhitespace)).wrap(is.string("(").trim(is.optWhitespace),is.string(")").trim(is.optWhitespace)),is.string("=>").trim(is.optWhitespace),e.field,((e,t,i)=>({type:"lambda",arguments:e,value:i}))),dotPostfix:e=>is.seqMap(is.string("."),e.identifier,((e,t)=>({type:"dot",field:t}))),indexPostfix:e=>is.seqMap(is.string("["),is.optWhitespace,e.field,is.optWhitespace,is.string("]"),((e,t,i,n,s)=>({type:"index",field:i}))),functionPostfix:e=>is.seqMap(is.string("("),is.optWhitespace,e.field.sepBy(is.string(",").trim(is.optWhitespace)),is.optWhitespace,is.string(")"),((e,t,i,n,s)=>({type:"function",fields:i}))),binaryMulDivField:e=>Cs(e.indexField,e.binaryMulDiv,Ds.binaryOp),binaryPlusMinusField:e=>Cs(e.binaryMulDivField,e.binaryPlusMinus,Ds.binaryOp),binaryCompareField:e=>Cs(e.binaryPlusMinusField,e.binaryCompareOp,Ds.binaryOp),binaryBooleanField:e=>Cs(e.binaryCompareField,e.binaryBooleanOp,Ds.binaryOp),binaryOpField:e=>e.binaryBooleanField,field:e=>e.binaryOpField});var Ss;function As(e,t){return is.eof.map(e).or(is.whitespace.then(t))}!function(e){e.named=function(e,t){return{name:e,field:t}},e.sortBy=function(e,t){return{field:e,direction:t}}}(Ss||(Ss={}));const Ts=is.createLanguage({queryType:e=>is.alt(is.regexp(/TABLE|LIST|TASK|CALENDAR/i)).map((e=>e.toLowerCase())).desc("query type ('TABLE', 'LIST', 'TASK', or 'CALENDAR')"),explicitNamedField:e=>is.seqMap(ys.field.skip(is.whitespace),is.regexp(/AS/i).skip(is.whitespace),ys.identifier.or(ys.string),((e,t,i)=>Ss.named(i,e))),comment:()=>is.Parser(((e,t)=>{let i=e.substring(t);if(!i.startsWith("//"))return is.makeFailure(t,"Not a comment");i=i.split("\n")[0];let n=i.substring(2).trim();return is.makeSuccess(t+i.length,n)})),namedField:e=>{return is.alt(e.explicitNamedField,(t=ys.field,is.custom(((e,i)=>(e,i)=>{let n=t._(e,i);return n.status?Object.assign({},n,{value:[n.value,e.substring(i,n.index)]}):n}))).map((([e,t])=>Ss.named(function(e){return e.split(/[\r\n]+/).map((e=>e.trim())).join("")}(t),e))));var t},sortField:e=>is.seqMap(ys.field.skip(is.optWhitespace),is.regexp(/ASCENDING|DESCENDING|ASC|DESC/i).atMost(1),((e,t)=>{let i=0==t.length?"ascending":t[0].toLowerCase();return"desc"==i&&(i="descending"),"asc"==i&&(i="ascending"),{field:e,direction:i}})),headerClause:e=>e.queryType.chain((t=>{switch(t){case"table":return As((()=>({type:t,fields:[],showId:!0})),is.seqMap(is.regexp(/WITHOUT\s+ID/i).skip(is.optWhitespace).atMost(1),is.sepBy(e.namedField,is.string(",").trim(is.optWhitespace)),((e,i)=>({type:t,fields:i,showId:0==e.length}))));case"list":return As((()=>({type:t,format:void 0,showId:!0})),is.seqMap(is.regexp(/WITHOUT\s+ID/i).skip(is.optWhitespace).atMost(1),ys.field.atMost(1),((e,i)=>({type:t,format:1==i.length?i[0]:void 0,showId:0==e.length}))));case"task":return is.succeed({type:t});case"calendar":return is.whitespace.then(is.seqMap(e.namedField,(e=>({type:t,showId:!0,field:e}))));default:return is.fail(`Unrecognized query type '${t}'`)}})).desc("TABLE or LIST or TASK or CALENDAR"),fromClause:e=>is.seqMap(is.regexp(/FROM/i),is.whitespace,ys.source,((e,t,i)=>i)),whereClause:e=>is.seqMap(is.regexp(/WHERE/i),is.whitespace,ys.field,((e,t,i)=>({type:"where",clause:i}))).desc("WHERE "),sortByClause:e=>is.seqMap(is.regexp(/SORT/i),is.whitespace,e.sortField.sepBy1(is.string(",").trim(is.optWhitespace)),((e,t,i)=>({type:"sort",fields:i}))).desc("SORT field [ASC/DESC]"),limitClause:e=>is.seqMap(is.regexp(/LIMIT/i),is.whitespace,ys.field,((e,t,i)=>({type:"limit",amount:i}))).desc("LIMIT "),flattenClause:e=>is.seqMap(is.regexp(/FLATTEN/i).skip(is.whitespace),e.namedField,((e,t)=>({type:"flatten",field:t}))).desc("FLATTEN [AS ]"),groupByClause:e=>is.seqMap(is.regexp(/GROUP BY/i).skip(is.whitespace),e.namedField,((e,t)=>({type:"group",field:t}))).desc("GROUP BY [AS ]"),clause:e=>is.alt(e.fromClause,e.whereClause,e.sortByClause,e.limitClause,e.groupByClause,e.flattenClause),query:e=>is.seqMap(e.headerClause.trim(bs),e.fromClause.trim(bs).atMost(1),e.clause.trim(bs).many(),((e,t,i)=>({header:e,source:0==t.length?ds.folder(""):t[0],operations:i,settings:Xn})))}),bs=is.alt(is.whitespace,Ts.comment).many().map((e=>e.join("")));J.DATE_SHORTHANDS=Fs,J.DURATION_TYPES=fs,J.EXPRESSION=ys,J.KEYWORDS=ms,J.QUERY_LANGUAGE=Ts;var Ns=J.getAPI=e=>e?e.plugins.plugins.dataview?.api:window.DataviewAPI;J.isPluginEnabled=e=>e.plugins.enabledPlugins.has("dataview"),J.parseField=function(e){try{return es.success(ys.field.tryParse(e))}catch(e){return es.failure(""+e)}};const Ls=`---\n\nexcalidraw-plugin: parsed\nexcalidraw-default-mode: view\nexcalidraw-export-dark: false\nexcalidraw-export-transparent: false\nexcalidraw-linkbutton-opacity: 0.3\nexcalidraw-onload-script: "app.plugins.plugins[${String.fromCharCode(96)}excalibrain${String.fromCharCode(96)}].start(ea.targetView.leaf);"\n\ntags: [excalidraw]\n\n---\n\n# Text Elements\nOpen a document in another pane and click it to get started.\n\nFor the best experience enable 'Open in adjacent pane'\nin Excalidraw settings under 'Links and Transclusion'. ^4mylk7KK\n\n%%\n# Drawing\n${String.fromCharCode(96,96,96)}json\n{\n\t"type": "excalidraw",\n\t"version": 2,\n\t"source": "https://excalidraw.com",\n\t"elements": [\n\t\t{\n\t\t\t"type": "text",\n\t\t\t"version": 1,\n\t\t\t"versionNonce": 423577018,\n\t\t\t"isDeleted": false,\n\t\t\t"id": "4mylk7KK",\n\t\t\t"fillStyle": "hachure",\n\t\t\t"strokeWidth": 1,\n\t\t\t"strokeStyle": "solid",\n\t\t\t"roughness": 1,\n\t\t\t"opacity": 100,\n\t\t\t"angle": 0,\n\t\t\t"x": 0,\n\t\t\t"y": 0,\n\t\t\t"strokeColor": "white",\n\t\t\t"backgroundColor": "transparent",\n\t\t\t"width": 703,\n\t\t\t"height": 96,\n\t\t\t"seed": 4429,\n\t\t\t"groupIds": [],\n\t\t\t"strokeSharpness": "sharp",\n\t\t\t"boundElements": [],\n\t\t\t"updated": 1650784785611,\n\t\t\t"link": null,\n\t\t\t"locked": false,\n\t\t\t"fontSize": 20,\n\t\t\t"fontFamily": 3,\n\t\t\t"text": "Open a document in another pane and click it to get started.\\n\\nFor the best experience enable 'Open in adjacent pane'\\nin Excalidraw settings under 'Links and Transclusion'.",\n\t\t\t"rawText": "Open a document in another pane and click it to get started.\\n\\nFor the best experience enable 'Open in adjacent pane'\\nin Excalidraw settings under 'Links and Transclusion'.",\n\t\t\t"baseline": 91,\n\t\t\t"textAlign": "center",\n\t\t\t"verticalAlign": "top",\n\t\t\t"containerId": null,\n\t\t\t"originalText": "Open a document in another pane and click it to get started.\\n\\nFor the best experience enable 'Open in adjacent pane'\\nin Excalidraw settings under 'Links and Transclusion'."\n\t\t}\n\t],\n\t"appState": {\n\t\t"theme": "dark",\n\t\t"viewBackgroundColor": "hsl(208, 80%, 23%)",\n\t\t"currentItemStrokeColor": "#000000",\n\t\t"currentItemBackgroundColor": "transparent",\n\t\t"currentItemFillStyle": "hachure",\n\t\t"currentItemStrokeWidth": 2,\n\t\t"currentItemStrokeStyle": "solid",\n\t\t"currentItemRoughness": 1,\n\t\t"currentItemOpacity": 100,\n\t\t"currentItemFontFamily": 1,\n\t\t"currentItemFontSize": 16,\n\t\t"currentItemTextAlign": "left",\n\t\t"currentItemStrokeSharpness": "sharp",\n\t\t"currentItemStartArrowhead": null,\n\t\t"currentItemEndArrowhead": "arrow",\n\t\t"currentItemLinearStrokeSharpness": "round",\n\t\t"gridSize": null,\n\t\t"colorPalette": {}\n\t},\n\t"files": {}\n}\n${String.fromCharCode(96,96,96)}\n%%\n`;class Os{nodes=[];renderedNodes=[];spec;constructor(e){this.spec=e}layout(e=this.spec.columns){const t=this.nodes.sort(((e,t)=>e.title.toLowerCase(){return r+1t[r*e+n])):(a=i%e,e%2?(t=>{const i=[];let n=0;for(n=e/2;n>t[0];n--)i.push(null);for(n=0;n{const t=[];let i=1,n=!0;return e.map((e=>Math.floor(e))).forEach((e=>{for(let s=0;si?t[r*e+i-1]:null));var a}))}async render(){this.layout();const e=this.renderedNodes.length*this.spec.rowHeight,t=null===this.spec.top&&null===this.spec.bottom?this.spec.origoY-e/2:null!==this.spec.top?this.spec.origoY-e/2this.spec.bottom?this.spec.bottom-e:this.spec.origoY-e/2,i=this.spec.origoX-(1===this.spec.columns?0:(this.spec.columns-1)/2*this.spec.columnWidth),n=t;for(const[e,t]of this.renderedNodes.entries())for(const[s,r]of t.entries())r&&(r.setCenter({x:i+s*this.spec.columnWidth,y:n+e*this.spec.rowHeight}),await r.render())}}const ws="|:?:|";class _s{plugin;links=new Map;reverseLinks=new Set;constructor(e){this.plugin=e}addLink(e,n,s,r,a,u,o,l){const D=e.page.path+ws+n.page.path;if(this.links.has(D)||this.reverseLinks.has(D))return;const d=n.page.path+ws+e.page.path,h=new Y(u===(l.inverseArrowDirection?i.TO:i.FROM)?n:e,u===(l.inverseArrowDirection?i.TO:i.FROM)?e:n,u===(l.inverseArrowDirection?i.TO:i.FROM)?s===t.LEFT||s===t.RIGHT?s===t.LEFT?t.LEFT:t.RIGHT:s===t.CHILD?t.PARENT:t.CHILD:s,r,a,o,l,this.plugin);this.links.set(D,h),this.reverseLinks.add(d)}render(e){this.links.forEach((t=>t.render(e.some((e=>t.hierarchyDefinition?.includes(e)))||t.isInferred&&e.includes("inferred-link"))))}}class vs{button;getVal;isEnabled;constructor({plugin:e,getVal:t,setVal:i,isEnabled:n,wrapper:s,options:r,updateIndex:a,shouldRerenderOnToggle:u}){void 0===u&&(u=!0),this.getVal=t,this.isEnabled=n,this.button=s.createEl("button",{cls:"excalibrain-button"});const o=e=>"string"==typeof r.icon?r.icon:e?r.icon?.on:r.icon?.off;r.icon?this.button.innerHTML=o(t()):this.button.createSpan({text:r.display??""}),this.button.ariaLabel=r.tooltip,this.updateButton(),this.button.onclick=()=>{i(!t())&&e.saveSettings(),this.updateButton(),r.icon&&(this.button.innerHTML=o(t())),u&&e.scene?.reRender(a)}}updateButton(){this.setColor(),this.setEnabled()}setColor(){if(this.getVal())return this.button.removeClass("off"),void this.button.addClass("on");this.button.removeClass("on"),this.button.addClass("off")}setEnabled(){this.isEnabled&&(this.isEnabled()?this.button.removeClass("disabled"):this.button.addClass("disabled"))}}var Is="top",ks="bottom",Bs="right",Rs="left",xs="auto",Ms=[Is,ks,Bs,Rs],Hs="start",Ps="end",Gs="clippingParents",zs="viewport",Vs="popper",Ys="reference",Ws=Ms.reduce((function(e,t){return e.concat([t+"-"+Hs,t+"-"+Ps])}),[]),Us=[].concat(Ms,[xs]).reduce((function(e,t){return e.concat([t,t+"-"+Hs,t+"-"+Ps])}),[]),js=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ks(e){return e?(e.nodeName||"").toLowerCase():null}function qs(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zs(e){return e instanceof qs(e).Element||e instanceof Element}function $s(e){return e instanceof qs(e).HTMLElement||e instanceof HTMLElement}function Xs(e){return"undefined"!=typeof ShadowRoot&&(e instanceof qs(e).ShadowRoot||e instanceof ShadowRoot)}var Js={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},s=t.elements[e];$s(s)&&Ks(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],s=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});$s(n)&&Ks(n)&&(Object.assign(n.style,r),Object.keys(s).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Qs(e){return e.split("-")[0]}var er=Math.max,tr=Math.min,ir=Math.round;function nr(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function sr(){return!/^((?!chrome|android).)*safari/i.test(nr())}function rr(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,r=1;t&&$s(e)&&(s=e.offsetWidth>0&&ir(n.width)/e.offsetWidth||1,r=e.offsetHeight>0&&ir(n.height)/e.offsetHeight||1);var a=(Zs(e)?qs(e):window).visualViewport,u=!sr()&&i,o=(n.left+(u&&a?a.offsetLeft:0))/s,l=(n.top+(u&&a?a.offsetTop:0))/r,D=n.width/s,d=n.height/r;return{width:D,height:d,top:l,right:o+D,bottom:l+d,left:o,x:o,y:l}}function ar(e){var t=rr(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function ur(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Xs(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function or(e){return qs(e).getComputedStyle(e)}function lr(e){return["table","td","th"].indexOf(Ks(e))>=0}function Dr(e){return((Zs(e)?e.ownerDocument:e.document)||window.document).documentElement}function dr(e){return"html"===Ks(e)?e:e.assignedSlot||e.parentNode||(Xs(e)?e.host:null)||Dr(e)}function hr(e){return $s(e)&&"fixed"!==or(e).position?e.offsetParent:null}function cr(e){for(var t=qs(e),i=hr(e);i&&lr(i)&&"static"===or(i).position;)i=hr(i);return i&&("html"===Ks(i)||"body"===Ks(i)&&"static"===or(i).position)?t:i||function(e){var t=/firefox/i.test(nr());if(/Trident/i.test(nr())&&$s(e)&&"fixed"===or(e).position)return null;var i=dr(e);for(Xs(i)&&(i=i.host);$s(i)&&["html","body"].indexOf(Ks(i))<0;){var n=or(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}function gr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Er(e,t,i){return er(e,tr(t,i))}function pr(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function fr(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}var Fr={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,s=e.options,r=i.elements.arrow,a=i.modifiersData.popperOffsets,u=Qs(i.placement),o=gr(u),l=[Rs,Bs].indexOf(u)>=0?"height":"width";if(r&&a){var D=function(e,t){return pr("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:fr(e,Ms))}(s.padding,i),d=ar(r),h="y"===o?Is:Rs,c="y"===o?ks:Bs,g=i.rects.reference[l]+i.rects.reference[o]-a[o]-i.rects.popper[l],E=a[o]-i.rects.reference[o],p=cr(r),f=p?"y"===o?p.clientHeight||0:p.clientWidth||0:0,F=g/2-E/2,m=D[h],C=f-d[l]-D[c],y=f/2-d[l]/2+F,S=Er(m,y,C),A=o;i.modifiersData[n]=((t={})[A]=S,t.centerOffset=S-y,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&ur(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function mr(e){return e.split("-")[1]}var Cr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yr(e){var t,i=e.popper,n=e.popperRect,s=e.placement,r=e.variation,a=e.offsets,u=e.position,o=e.gpuAcceleration,l=e.adaptive,D=e.roundOffsets,d=e.isFixed,h=a.x,c=void 0===h?0:h,g=a.y,E=void 0===g?0:g,p="function"==typeof D?D({x:c,y:E}):{x:c,y:E};c=p.x,E=p.y;var f=a.hasOwnProperty("x"),F=a.hasOwnProperty("y"),m=Rs,C=Is,y=window;if(l){var S=cr(i),A="clientHeight",T="clientWidth";S===qs(i)&&"static"!==or(S=Dr(i)).position&&"absolute"===u&&(A="scrollHeight",T="scrollWidth"),(s===Is||(s===Rs||s===Bs)&&r===Ps)&&(C=ks,E-=(d&&S===y&&y.visualViewport?y.visualViewport.height:S[A])-n.height,E*=o?1:-1),s!==Rs&&(s!==Is&&s!==ks||r!==Ps)||(m=Bs,c-=(d&&S===y&&y.visualViewport?y.visualViewport.width:S[T])-n.width,c*=o?1:-1)}var b,N=Object.assign({position:u},l&&Cr),L=!0===D?function(e,t){var i=e.x,n=e.y,s=t.devicePixelRatio||1;return{x:ir(i*s)/s||0,y:ir(n*s)/s||0}}({x:c,y:E},qs(i)):{x:c,y:E};return c=L.x,E=L.y,o?Object.assign({},N,((b={})[C]=F?"0":"",b[m]=f?"0":"",b.transform=(y.devicePixelRatio||1)<=1?"translate("+c+"px, "+E+"px)":"translate3d("+c+"px, "+E+"px, 0)",b)):Object.assign({},N,((t={})[C]=F?E+"px":"",t[m]=f?c+"px":"",t.transform="",t))}var Sr={passive:!0},Ar={left:"right",right:"left",bottom:"top",top:"bottom"};function Tr(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ar[e]}))}var br={start:"end",end:"start"};function Nr(e){return e.replace(/start|end/g,(function(e){return br[e]}))}function Lr(e){var t=qs(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Or(e){return rr(Dr(e)).left+Lr(e).scrollLeft}function wr(e){var t=or(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function _r(e){return["html","body","#document"].indexOf(Ks(e))>=0?e.ownerDocument.body:$s(e)&&wr(e)?e:_r(dr(e))}function vr(e,t){var i;void 0===t&&(t=[]);var n=_r(e),s=n===(null==(i=e.ownerDocument)?void 0:i.body),r=qs(n),a=s?[r].concat(r.visualViewport||[],wr(n)?n:[]):n,u=t.concat(a);return s?u:u.concat(vr(dr(a)))}function Ir(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kr(e,t,i){return t===zs?Ir(function(e,t){var i=qs(e),n=Dr(e),s=i.visualViewport,r=n.clientWidth,a=n.clientHeight,u=0,o=0;if(s){r=s.width,a=s.height;var l=sr();(l||!l&&"fixed"===t)&&(u=s.offsetLeft,o=s.offsetTop)}return{width:r,height:a,x:u+Or(e),y:o}}(e,i)):Zs(t)?function(e,t){var i=rr(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):Ir(function(e){var t,i=Dr(e),n=Lr(e),s=null==(t=e.ownerDocument)?void 0:t.body,r=er(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=er(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),u=-n.scrollLeft+Or(e),o=-n.scrollTop;return"rtl"===or(s||i).direction&&(u+=er(i.clientWidth,s?s.clientWidth:0)-r),{width:r,height:a,x:u,y:o}}(Dr(e)))}function Br(e){var t,i=e.reference,n=e.element,s=e.placement,r=s?Qs(s):null,a=s?mr(s):null,u=i.x+i.width/2-n.width/2,o=i.y+i.height/2-n.height/2;switch(r){case Is:t={x:u,y:i.y-n.height};break;case ks:t={x:u,y:i.y+i.height};break;case Bs:t={x:i.x+i.width,y:o};break;case Rs:t={x:i.x-n.width,y:o};break;default:t={x:i.x,y:i.y}}var l=r?gr(r):null;if(null!=l){var D="y"===l?"height":"width";switch(a){case Hs:t[l]=t[l]-(i[D]/2-n[D]/2);break;case Ps:t[l]=t[l]+(i[D]/2-n[D]/2)}}return t}function Rr(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=void 0===n?e.placement:n,r=i.strategy,a=void 0===r?e.strategy:r,u=i.boundary,o=void 0===u?Gs:u,l=i.rootBoundary,D=void 0===l?zs:l,d=i.elementContext,h=void 0===d?Vs:d,c=i.altBoundary,g=void 0!==c&&c,E=i.padding,p=void 0===E?0:E,f=pr("number"!=typeof p?p:fr(p,Ms)),F=h===Vs?Ys:Vs,m=e.rects.popper,C=e.elements[g?F:h],y=function(e,t,i,n){var s="clippingParents"===t?function(e){var t=vr(dr(e)),i=["absolute","fixed"].indexOf(or(e).position)>=0&&$s(e)?cr(e):e;return Zs(i)?t.filter((function(e){return Zs(e)&&ur(e,i)&&"body"!==Ks(e)})):[]}(e):[].concat(t),r=[].concat(s,[i]),a=r[0],u=r.reduce((function(t,i){var s=kr(e,i,n);return t.top=er(s.top,t.top),t.right=tr(s.right,t.right),t.bottom=tr(s.bottom,t.bottom),t.left=er(s.left,t.left),t}),kr(e,a,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}(Zs(C)?C:C.contextElement||Dr(e.elements.popper),o,D,a),S=rr(e.elements.reference),A=Br({reference:S,element:m,strategy:"absolute",placement:s}),T=Ir(Object.assign({},m,A)),b=h===Vs?T:S,N={top:y.top-b.top+f.top,bottom:b.bottom-y.bottom+f.bottom,left:y.left-b.left+f.left,right:b.right-y.right+f.right},L=e.modifiersData.offset;if(h===Vs&&L){var O=L[s];Object.keys(N).forEach((function(e){var t=[Bs,ks].indexOf(e)>=0?1:-1,i=[Is,ks].indexOf(e)>=0?"y":"x";N[e]+=O[i]*t}))}return N}function xr(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,r=i.rootBoundary,a=i.padding,u=i.flipVariations,o=i.allowedAutoPlacements,l=void 0===o?Us:o,D=mr(n),d=D?u?Ws:Ws.filter((function(e){return mr(e)===D})):Ms,h=d.filter((function(e){return l.indexOf(e)>=0}));0===h.length&&(h=d);var c=h.reduce((function(t,i){return t[i]=Rr(e,{placement:i,boundary:s,rootBoundary:r,padding:a})[Qs(i)],t}),{});return Object.keys(c).sort((function(e,t){return c[e]-c[t]}))}var Mr={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var s=i.mainAxis,r=void 0===s||s,a=i.altAxis,u=void 0===a||a,o=i.fallbackPlacements,l=i.padding,D=i.boundary,d=i.rootBoundary,h=i.altBoundary,c=i.flipVariations,g=void 0===c||c,E=i.allowedAutoPlacements,p=t.options.placement,f=Qs(p),F=o||(f!==p&&g?function(e){if(Qs(e)===xs)return[];var t=Tr(e);return[Nr(e),t,Nr(t)]}(p):[Tr(p)]),m=[p].concat(F).reduce((function(e,i){return e.concat(Qs(i)===xs?xr(t,{placement:i,boundary:D,rootBoundary:d,padding:l,flipVariations:g,allowedAutoPlacements:E}):i)}),[]),C=t.rects.reference,y=t.rects.popper,S=new Map,A=!0,T=m[0],b=0;b=0,_=w?"width":"height",v=Rr(t,{placement:N,boundary:D,rootBoundary:d,altBoundary:h,padding:l}),I=w?O?Bs:Rs:O?ks:Is;C[_]>y[_]&&(I=Tr(I));var k=Tr(I),B=[];if(r&&B.push(v[L]<=0),u&&B.push(v[I]<=0,v[k]<=0),B.every((function(e){return e}))){T=N,A=!1;break}S.set(N,B)}if(A)for(var R=function(e){var t=m.find((function(t){var i=S.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return T=t,"break"},x=g?3:1;x>0&&"break"!==R(x);x--);t.placement!==T&&(t.modifiersData[n]._skip=!0,t.placement=T,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Hr(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Pr(e){return[Is,Bs,ks,Rs].some((function(t){return e[t]>=0}))}function Gr(e,t,i){void 0===i&&(i=!1);var n,s,r=$s(t),a=$s(t)&&function(e){var t=e.getBoundingClientRect(),i=ir(t.width)/e.offsetWidth||1,n=ir(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),u=Dr(t),o=rr(e,a,i),l={scrollLeft:0,scrollTop:0},D={x:0,y:0};return(r||!r&&!i)&&(("body"!==Ks(t)||wr(u))&&(l=(n=t)!==qs(n)&&$s(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:Lr(n)),$s(t)?((D=rr(t,!0)).x+=t.clientLeft,D.y+=t.clientTop):u&&(D.x=Or(u))),{x:o.left+l.scrollLeft-D.x,y:o.top+l.scrollTop-D.y,width:o.width,height:o.height}}function zr(e){var t=new Map,i=new Set,n=[];function s(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&s(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||s(e)})),n}var Vr={placement:"bottom",modifiers:[],strategy:"absolute"};function Yr(){for(var e=arguments.length,t=new Array(e),i=0;i=0?-1:1,r="function"==typeof i?i(Object.assign({},t,{placement:e})):i,a=r[0],u=r[1];return a=a||0,u=(u||0)*s,[Rs,Bs].indexOf(n)>=0?{x:u,y:a}:{x:a,y:u}}(i,t.rects,r),e}),{}),u=a[t.placement],o=u.x,l=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=o,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=a}},Mr,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.mainAxis,r=void 0===s||s,a=i.altAxis,u=void 0!==a&&a,o=i.boundary,l=i.rootBoundary,D=i.altBoundary,d=i.padding,h=i.tether,c=void 0===h||h,g=i.tetherOffset,E=void 0===g?0:g,p=Rr(t,{boundary:o,rootBoundary:l,padding:d,altBoundary:D}),f=Qs(t.placement),F=mr(t.placement),m=!F,C=gr(f),y="x"===C?"y":"x",S=t.modifiersData.popperOffsets,A=t.rects.reference,T=t.rects.popper,b="function"==typeof E?E(Object.assign({},t.rects,{placement:t.placement})):E,N="number"==typeof b?{mainAxis:b,altAxis:b}:Object.assign({mainAxis:0,altAxis:0},b),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(r){var w,_="y"===C?Is:Rs,v="y"===C?ks:Bs,I="y"===C?"height":"width",k=S[C],B=k+p[_],R=k-p[v],x=c?-T[I]/2:0,M=F===Hs?A[I]:T[I],H=F===Hs?-T[I]:-A[I],P=t.elements.arrow,G=c&&P?ar(P):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=z[_],Y=z[v],W=Er(0,A[I],G[I]),U=m?A[I]/2-x-W-V-N.mainAxis:M-W-V-N.mainAxis,j=m?-A[I]/2+x+W+Y+N.mainAxis:H+W+Y+N.mainAxis,K=t.elements.arrow&&cr(t.elements.arrow),q=K?"y"===C?K.clientTop||0:K.clientLeft||0:0,Z=null!=(w=null==L?void 0:L[C])?w:0,$=k+j-Z,X=Er(c?tr(B,k+U-Z-q):B,k,c?er(R,$):R);S[C]=X,O[C]=X-k}if(u){var J,Q="x"===C?Is:Rs,ee="x"===C?ks:Bs,te=S[y],ie="y"===y?"height":"width",ne=te+p[Q],se=te-p[ee],re=-1!==[Is,Rs].indexOf(f),ae=null!=(J=null==L?void 0:L[y])?J:0,ue=re?ne:te-A[ie]-T[ie]-ae+N.altAxis,oe=re?te+A[ie]+T[ie]-ae-N.altAxis:se,le=c&&re?function(e,t,i){var n=Er(e,t,i);return n>i?i:n}(ue,te,oe):Er(c?ue:ne,te,c?oe:se);S[y]=le,O[y]=le-te}t.modifiersData[n]=O}},requiresIfExists:["offset"]},Fr,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,a=Rr(t,{elementContext:"reference"}),u=Rr(t,{altBoundary:!0}),o=Hr(a,n),l=Hr(u,s,r),D=Pr(o),d=Pr(l);t.modifiersData[i]={referenceClippingOffsets:o,popperEscapeOffsets:l,isReferenceHidden:D,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":D,"data-popper-escaped":d})}}]});class Kr{owner;containerEl;limit;values;suggestions;selectedItem;constructor(e,t,i,n=30){this.owner=e,this.containerEl=t,this.limit=n,this.owner=e,this.containerEl=t,t.on("click",".suggestion-item",this.onSuggestionClick.bind(this)),t.on("mousemove",".suggestion-item",this.onSuggestionMouseover.bind(this)),i.register([],"ArrowUp",(e=>{if(!e.isComposing)return this.setSelectedItem(this.selectedItem-1,!0),!1})),i.register([],"ArrowDown",(e=>{if(!e.isComposing)return this.setSelectedItem(this.selectedItem+1,!0),!1})),i.register([],"Enter",(e=>{if(!e.isComposing)return this.useSelectedItem(e),!1}))}onSuggestionClick(e,t){e.preventDefault();const i=this.suggestions.indexOf(t);this.setSelectedItem(i,!1),this.useSelectedItem(e)}onSuggestionMouseover(e,t){const i=this.suggestions.indexOf(t);this.setSelectedItem(i,!1)}setSuggestions(e){this.containerEl.empty();const t=[];e.slice(0,this.limit).forEach((e=>{const i=this.containerEl.createDiv("suggestion-item");this.owner.renderSuggestion(e,i),t.push(i)})),this.values=e,this.suggestions=t,this.setSelectedItem(0,!1)}useSelectedItem(e){const t=this.values[this.selectedItem];t&&this.owner.selectSuggestion(t,e)}setSelectedItem(e,t){const i=(e%(n=this.suggestions.length)+n)%n;var n;const s=this.suggestions[this.selectedItem],r=this.suggestions[i];s?.removeClass("is-selected"),r?.addClass("is-selected"),this.selectedItem=i,t&&r.scrollIntoView(!1)}}class qr{app;inputEl;containerEl;popper;scope;suggestEl;suggest;constructor(e,t,i){this.app=e,this.inputEl=t,this.containerEl=i,this.scope=new n.Scope,this.suggestEl=i.createDiv("suggestion-container"),this.suggestEl.style.left="-1000px";const s=this.suggestEl.createDiv("suggestion");this.suggest=new Kr(this,s,this.scope),this.scope.register([],"Escape",this.close.bind(this)),this.inputEl.addEventListener("input",this.onInputChanged.bind(this)),this.inputEl.addEventListener("focus",this.onInputChanged.bind(this)),this.inputEl.addEventListener("blur",this.close.bind(this)),this.suggestEl.on("mousedown",".suggestion-container",(e=>{e.preventDefault()}))}onInputChanged(){const e=this.inputEl.value,t=this.getSuggestions(e);t&&t.length>0?(this.suggest.setSuggestions(t),this.open(this.containerEl,this.inputEl)):this.close()}open(e,t){this.app.keymap.pushScope(this.scope),e.appendChild(this.suggestEl),this.popper=jr(t,this.suggestEl,{placement:"bottom-start",modifiers:[{name:"sameWidth",enabled:!0,fn:({state:e,instance:t})=>{const i=`${e.rects.reference.width}px`;e.styles.popper.width!==i&&(e.styles.popper.width=i,t.update())},phase:"beforeWrite",requires:["computeStyles"]}]})}close(){this.app.keymap.popScope(this.scope),this.suggest.setSuggestions([]),this.popper&&this.popper.destroy(),this.suggestEl.detach()}}!function(e){e[e.TemplateFiles=0]="TemplateFiles",e[e.ScriptFiles=1]="ScriptFiles"}(Ur||(Ur={}));class Zr extends qr{plugin;inputStr="";constructor(e,t,i,n){super(e,t,n),this.plugin=i}getSuggestions(e){if(this.inputStr=e.trim(),""===e)return this.plugin.starred;const t=e.toLowerCase(),i=this.plugin.pages?.getPages().filter((e=>(!e.file||(this.plugin.settings.showAttachments||"md"===e.file.extension)&&!this.plugin.settings.excludeFilepaths.some((t=>e.path.startsWith(t))))&&(e.file||(this.plugin.settings.showFolderNodes||!e.path.startsWith("folder:"))&&(this.plugin.settings.showTagNodes||!e.path.startsWith("tag:")))&&e.name.toLowerCase().contains(t)));if(i.length>30)return i;const s=i.concat(this.plugin.pages?.getPages().filter((e=>!i.contains(e)&&(!e.file||(this.plugin.settings.showAttachments||"md"===e.file.extension)&&!this.plugin.settings.excludeFilepaths.some((t=>e.path.startsWith(t))))&&(e.file||(this.plugin.settings.showFolderNodes||!e.path.startsWith("folder:"))&&(this.plugin.settings.showTagNodes||!e.path.startsWith("tag:")))&&e.path.toLowerCase().contains(t))));if(s.length>30)return s;const r=n.prepareFuzzySearch(e);return s.concat(this.plugin.pages?.getPages().filter((e=>!e.isVirtual&&(!e.file||(this.plugin.settings.showAttachments||"md"===e.file.extension)&&!this.plugin.settings.excludeFilepaths.some((t=>e.path.startsWith(t))))&&(e.file||(this.plugin.settings.showFolderNodes||!e.path.startsWith("folder:"))&&(this.plugin.settings.showTagNodes||!e.path.startsWith("tag:")))&&!s.contains(e)&&r(e.path))).sort(((e,t)=>r(t.path).score-r(e.path).score)))}renderSuggestion(e,t){const i=""===this.inputStr?null:new RegExp(`(${this.inputStr})`,"gi");t.ariaLabel=e.path;const n=(e.isFolder||e.isTag?e.path.replace(/^folder:/,this.plugin.settings.folderNodeStyle.prefix??"📂").replace(/^tag:/,this.plugin.settings.tagNodeStyle.prefix??"🏷️"):i?e.name.match(i)?e.name:e.path:e.name).split("/"),s=n.pop(),r=n.join("/")+(n.length>0?"/":""),[a,u]=this.highlightSequence(r,s);t.innerHTML=`${a}${u}`}highlightSequence(e,t){let i=-1;const n=(e,t)=>{let n=0,s="";return t.split(" ").forEach(((t,r)=>{const a=e.toLowerCase().indexOf(t.toLowerCase(),n);-1!==a&&(s+=e.substring(n,a)+`${t}`,n=a+t.length,i=r)})),s+=e.substring(n),s};let s=this.inputStr;const r=n(e,s);s=s.split(" ").slice(i+1).join(" ");const a=n(t,s);return s=s.split(" ").slice(i+1).join(" "),[r,a]}selectSuggestion(e){this.inputEl.value=e.path,this.inputEl.trigger("input"),this.close()}}class $r{multiple;onChange;singleSelectTextSpanRef;checkboxRef;label="";value;optionRef;selected=!1;constructor(e,t,i,n){this.value=e,this.label=t,this.multiple=i,this.onChange=n,this.createOptionElement(),this.createListeners()}select(e=!0){this.selected=!0,this.setAttribute(),e&&this.onChange(this)}deselect(e=!0){this.selected=!1,this.setAttribute(),e&&this.onChange(this)}createOptionElement(){const e=document.createElement("div");e.classList.add("option"),this.singleSelectTextSpanRef=document.createElement("span"),this.singleSelectTextSpanRef.classList.add("option-text"),this.singleSelectTextSpanRef.innerText=this.label,e.appendChild(this.singleSelectTextSpanRef),e.appendChild(this.createCheckbox()),this.optionRef=e}createCheckbox(){const e=document.createElement("label");e.classList.add("checkbox-wrapper");const t=document.createElement("span");t.classList.add("checkbox-text"),t.innerText=this.label;const i=document.createElement("input");i.setAttribute("type","checkbox"),this.checkboxRef=i;const n=document.createElement("span");return n.classList.add("checkbox-checkmark"),e.appendChild(t),e.appendChild(i),e.appendChild(n),e}setAttribute(){this.multiple?this.selected?this.checkboxRef.setAttribute("checked","checked"):this.checkboxRef.removeAttribute("checked"):this.selected?this.singleSelectTextSpanRef.classList.add("selected"):this.singleSelectTextSpanRef.classList.remove("selected")}createListeners(){this.multiple?this.checkboxRef.addEventListener("change",(()=>{this.selected=this.checkboxRef.checked,this.onChange(this)})):this.singleSelectTextSpanRef.addEventListener("click",(()=>{this.selected=!0,this.onChange(this)}))}}class Xr{config;origin;configOptions;multiple;singularNominativeLabel;pluralNominativeLabel;pluralGenitiveLabel;placeholder;headerLabel;onDropdownOpen;onDropdownClose;onSelectionChange;selectHeaderRef;selectWrapperRef;selectedValueRef;optionsWrapperRef;options=[];dropdownOpened=!1;destroyed=!1;selected;rendered=!1;documentClickDropdownToggle=e=>{this.selectWrapperRef.contains(e.target)||this.handleDropdownToggle(!1,this.dropdownOpened)};constructor(e){if(this.config=e,this.assignConfig(),this.setOrigin(),!this.origin)throw"You have to pass origin element!";this.init()}init(){this.destroyed=!1,this.dropdownOpened=!1,this.createSelect(),this.createListeners()}destroy(){this.destroyed=!0,this.rendered=!1,this.hide(),document.removeEventListener("click",this.documentClickDropdownToggle),this.selectWrapperRef.cloneNode(!0),this.origin=null,this.selectHeaderRef=null,this.selectWrapperRef=null,this.selectedValueRef=null,this.optionsWrapperRef=null,this.options=[]}reset(){this.options.forEach((e=>e.deselect(!1))),this.updateSelection()}hide(){this.origin.innerHTML="",this.rendered=!1}render(){if(this.destroyed)throw"But you destroyed me... :(";if(this.origin.innerText.trim())throw"Hey! I am rendered already!";this.origin.appendChild(this.selectWrapperRef),this.rendered=!0,this.selectHeaderRef&&this.origin.prepend(this.selectHeaderRef)}assignConfig(){this.origin=this.config.origin,this.configOptions=this.config.options,this.multiple=this.config.multiple??!0,this.singularNominativeLabel=this.config.singularNominativeLabel,this.pluralNominativeLabel=this.config.pluralNominativeLabel,this.pluralGenitiveLabel=this.config.pluralGenitiveLabel,this.placeholder=this.config.placeholder??"",this.headerLabel=this.config.headerLabel,this.selected=this.config.selected,this.onDropdownOpen=this.config.onDropdownOpen,this.onDropdownClose=this.config.onDropdownClose,this.onSelectionChange=this.config.onSelectionChange}setOrigin(){this.origin&&this.origin.classList.add("multiselect-container")}createHeader(){this.headerLabel&&(this.selectHeaderRef=document.createElement("div"),this.selectHeaderRef.classList.add("multiselect-header"),this.selectHeaderRef.innerText=this.headerLabel)}createSelect(){this.selectWrapperRef=document.createElement("div"),this.selectWrapperRef.classList.add("multiselect-wrapper"),this.multiple||this.selectWrapperRef.classList.add("single-select"),this.selectedValueRef=document.createElement("div"),this.selectedValueRef.classList.add("selected-value"),this.selectWrapperRef.appendChild(this.selectedValueRef),this.optionsWrapperRef=document.createElement("div"),this.optionsWrapperRef.classList.add("options-wrapper"),this.configOptions.forEach((e=>{const t=new $r(e.value,e.label,this.multiple,this.onSelectChange.bind(this));this.selected?.includes(e.value)&&t.select(!1),this.options.push(t),this.optionsWrapperRef.appendChild(t.optionRef)})),this.updateSelection(),this.selectWrapperRef.appendChild(this.optionsWrapperRef),this.createHeader(),this.render()}createListeners(){this.selectWrapperRef.addEventListener("click",(e=>{this.selectWrapperRef.contains(e.target)&&!this.optionsWrapperRef.contains(e.target)&&this.handleDropdownToggle(!this.dropdownOpened)})),document.addEventListener("click",this.documentClickDropdownToggle)}handleDropdownToggle(e,t=!0){this.dropdownOpened=e,this.dropdownOpened?(this.selectWrapperRef.classList.add("opened"),this.onDropdownOpen&&t&&this.onDropdownOpen()):(this.selectWrapperRef.classList.remove("opened"),this.onDropdownClose&&t&&this.onDropdownClose(this.selected))}onSelectChange(e){this.multiple||(this.options.forEach((e=>e.deselect(!1))),e.select(!1)),this.updateSelection(),this.onSelectionChange&&this.onSelectionChange(this.selected),this.multiple||this.handleDropdownToggle(!1)}updateSelection(){this.selected=this.options.filter((e=>!!e.selected)).map((e=>e.value));const e=this.options.filter((e=>!!e.selected)).map((e=>e.label));let t=this.placeholder;1===e.length?t=e[0]:e.length>1&&(t=`${e.length} ${this.transformPluralLabel(e.length)}`),this.selectedValueRef.innerText=t}transformPluralLabel(e){return 1===e?this.singularNominativeLabel??"items":e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?this.pluralNominativeLabel??"items":this.pluralGenitiveLabel??"items"}}class Jr{plugin;selectedLinks=new Set;selectedTags=new Set;filterDiv;isOpen=!1;selectedItems;constructor(e,t){this.plugin=e,this.filterDiv=t.createDiv({attr:{id:"filter"}})}render(){if(this.isOpen)return;if(this.filterDiv.empty(),!this.plugin.scene)return;const e=Array.from(this.selectedTags);this.selectedLinks.forEach((t=>e.push("link::"+t)));const t=[],i=new Set(this.selectedLinks.keys());this.plugin.scene.links.links.forEach((e=>{e.hierarchyDefinition?.split(",").map((e=>e.trim())).forEach((e=>i.add(e))),e.hierarchyDefinition||(e.isInferred?i.add("inferred-link"):i.add("normal-link"))})),i.forEach((e=>t.push({label:e,value:"link::"+e})));const n=new Set(this.selectedTags.keys());this.plugin.scene.nodesMap.forEach((e=>{e.page.primaryStyleTag&&n.add(e.page.primaryStyleTag)})),n.forEach((e=>t.push({label:e,value:e})));const s=new Xr({origin:this.filterDiv,placeholder:"filter links and tags",options:t.sort(((e,t)=>e.label>t.label?1:-1)),selected:e,onDropdownOpen:()=>{this.isOpen=!0,this.selectedItems=s.selected},onSelectionChange:e=>{this.selectedLinks.clear(),this.selectedTags.clear(),e.forEach((e=>{e.startsWith("link::")?this.selectedLinks.add(e.substring(6)):this.selectedTags.add(e)})),this.plugin.scene?.reRender(!1)},onDropdownClose:e=>{this.isOpen=!1,e!==this.selectedItems&&this.plugin.scene?.reRender(!1)}})}}const Qr=e=>e.createDiv({cls:"excalibrain-toolspanel-divider"});class ea{contentEl;plugin;wrapperDiv;buttons=[];linkTagFilter;searchElement;constructor(e,t){this.contentEl=e,this.plugin=t,e.addClass("excalibrain-contentEl"),this.wrapperDiv=this.contentEl.createDiv({cls:"excalibrain-toolspanel-wrapper"});const i=this.wrapperDiv.createDiv({cls:"excalibrain-dropdown-wrapper"}),s=i.createEl("input",{type:"text",cls:"excalibrain-searchinput"});s.ariaLabel=H("SEARCH_IN_VAULT"),s.oninput=()=>{const e=this.plugin.pages.get(s.value);e&&this.plugin.scene?.renderGraphForPath(e.path)},s.onblur=()=>{s.value=""},new Zr(this.plugin.app,s,this.plugin,e),this.searchElement=s,this.linkTagFilter=new Jr(t,i),this.linkTagFilter.render();const r=this.wrapperDiv.createDiv({cls:"excalibrain-buttons"});this.buttons.push(new vs({plugin:this.plugin,getVal:()=>!1,setVal:e=>{const t=this.plugin.EA.getExcalidrawAPI().getSceneElements(),i=this.plugin.EA.getExcalidrawAPI().getAppState(),n=this.plugin.EA;return n.reset(),n.canvas.viewBackgroundColor=i.viewBackgroundColor,n.canvas.theme="light",t.forEach((e=>n.elementsDict[e.id]=e)),n.create({filename:`ExcaliBrain Snapshot - ${p(this.plugin.scene.centralPagePath).basename}`,onNewPane:!0}),!1},wrapper:r,options:{display:"✏",icon:n.getIcon("lucide-pencil").outerHTML,tooltip:H("OPEN_DRAWING")},updateIndex:!0})),Qr(r);const a=new vs({plugin:this.plugin,getVal:()=>!1,setVal:e=>(this.plugin.scene.renderGraphForPath(this.plugin.navigationHistory.getPrevious()),this.rerender(),!1),isEnabled:()=>this.plugin.navigationHistory.hasPrevious(),wrapper:r,options:{display:"<",icon:n.getIcon("lucide-arrow-big-left").outerHTML,tooltip:H("NAVIGATE_BACK")},updateIndex:!1,shouldRerenderOnToggle:!1});this.buttons.push(a);const u=new vs({plugin:this.plugin,getVal:()=>!1,setVal:e=>(this.plugin.scene.renderGraphForPath(this.plugin.navigationHistory.getNext()),this.rerender(),!1),isEnabled:()=>this.plugin.navigationHistory.hasNext(),wrapper:r,options:{display:">",icon:n.getIcon("lucide-arrow-big-right").outerHTML,tooltip:H("NAVIGATE_FORWARD")},updateIndex:!1,shouldRerenderOnToggle:!1});this.buttons.push(u),this.plugin.navigationHistory.setNavigateButtons([a,u]),this.buttons.push(new vs({plugin:this.plugin,getVal:()=>!1,setVal:e=>!1,wrapper:r,options:{display:"🔄",icon:n.getIcon("lucide-refresh-cw").outerHTML,tooltip:H("REFRESH_VIEW")},updateIndex:!0}));const o=new vs({plugin:this.plugin,getVal:()=>this.plugin.scene.pinLeaf,setVal:e=>{if(this.plugin.scene.pinLeaf=e,e){const e=[];this.plugin.app.workspace.iterateAllLeaves((t=>{("empty"===t.view?.getViewType()||t.view instanceof n.EditableFileView&&t!==this.plugin.scene?.leaf)&&e.push(t)})),e.sort(((e,t)=>e.activeTime-t.activeTime>0?-1:1)),e.length>0&&(this.plugin.scene.centralLeaf=e[0])}return!0},isEnabled:()=>!!this.plugin.settings.autoOpenCentralDocument&&(this.plugin.scene&&!this.plugin.scene.isCentralLeafStillThere()&&(this.plugin.scene.pinLeaf=!1),!0),wrapper:r,options:{display:"📌",icon:{on:n.getIcon("lucide-pin").outerHTML,off:n.getIcon("lucide-pin-off").outerHTML},tooltip:H("PIN_LEAF")},updateIndex:!1});this.buttons.push(o),this.buttons.push(new vs({plugin:this.plugin,getVal:()=>this.plugin.settings.autoOpenCentralDocument,setVal:e=>(this.plugin.settings.autoOpenCentralDocument=e,o.updateButton(),!0),wrapper:r,options:{display:"🔌",icon:{on:'',off:''},tooltip:H("AUTO_OPEN_DOCUMENT")},updateIndex:!1})),Qr(r),this.buttons.push(new vs({plugin:this.plugin,getVal:()=>this.plugin.settings.showAttachments,setVal:e=>(this.plugin.settings.showAttachments=e,!0),wrapper:r,options:{display:"📎",icon:n.getIcon("lucide-paperclip").outerHTML,tooltip:H("SHOW_HIDE_ATTACHMENTS")},updateIndex:!0})),this.buttons.push(new vs({plugin:this.plugin,getVal:()=>this.plugin.settings.showVirtualNodes,setVal:e=>(this.plugin.settings.showVirtualNodes=e,!0),wrapper:r,options:{display:"∅",icon:n.getIcon("lucide-minus-circle").outerHTML,tooltip:H("SHOW_HIDE_VIRTUAL")},updateIndex:!1})),this.buttons.push(new vs({plugin:this.plugin,getVal:()=>this.plugin.settings.showInferredNodes,setVal:e=>(this.plugin.settings.showInferredNodes=e,!0),wrapper:r,options:{display:"🤔",icon:n.getIcon("lucide-git-pull-request-draft").outerHTML,tooltip:H("SHOW_HIDE_INFERRED")},updateIndex:!0})),this.buttons.push(new vs({plugin:this.plugin,getVal:()=>this.plugin.settings.showPageNodes,setVal:e=>(this.plugin.settings.showPageNodes=e,!0),wrapper:r,options:{display:"📄",icon:n.getIcon("lucide-file-text").outerHTML,tooltip:H("SHOW_HIDE_PAGES")},updateIndex:!0})),this.buttons.push(new vs({plugin:this.plugin,getVal:()=>this.plugin.settings.renderAlias,setVal:e=>(this.plugin.settings.renderAlias=e,!0),wrapper:r,options:{display:"🧥",icon:n.getIcon("lucide-venetian-mask").outerHTML,tooltip:H("SHOW_HIDE_ALIAS")},updateIndex:!1})),this.buttons.push(new vs({plugin:this.plugin,getVal:()=>this.plugin.settings.showFolderNodes,setVal:e=>(this.plugin.settings.showFolderNodes=e,!0),wrapper:r,options:{display:"📂",icon:n.getIcon("lucide-folder").outerHTML,tooltip:H("SHOW_HIDE_FOLDER")},updateIndex:!0})),this.buttons.push(new vs({plugin:this.plugin,getVal:()=>this.plugin.settings.showTagNodes,setVal:e=>(this.plugin.settings.showTagNodes=e,!0),wrapper:r,options:{display:"#",icon:n.getIcon("lucide-tag").outerHTML,tooltip:H("SHOW_HIDE_TAG")},updateIndex:!1})),this.buttons.push(new vs({plugin:this.plugin,getVal:()=>this.plugin.settings.showURLNodes,setVal:e=>(this.plugin.settings.showURLNodes=e,!0),wrapper:r,options:{display:"🌐",icon:n.getIcon("lucide-globe").outerHTML,tooltip:H("SHOW_HIDE_URLS")},updateIndex:!1})),this.buttons.push(new vs({plugin:this.plugin,getVal:()=>this.plugin.settings.renderSiblings,setVal:e=>(this.plugin.settings.renderSiblings=e,!0),wrapper:r,options:{display:"👨‍👩‍👧‍👦",icon:n.getIcon("lucide-grip").outerHTML,tooltip:H("SHOW_HIDE_SIBLINGS")},updateIndex:!1})),this.buttons.push(new vs({plugin:this.plugin,getVal:()=>this.plugin.settings.embedCentralNode,setVal:e=>(this.plugin.settings.embedCentralNode=e,this.plugin.settings.toggleEmbedTogglesAutoOpen&&(this.plugin.settings.autoOpenCentralDocument=!e),!0),wrapper:r,options:{display:"⏹️",icon:n.getIcon("lucide-code").outerHTML,tooltip:H("SHOW_HIDE_EMBEDDEDCENTRAL")},updateIndex:!1})),this.contentEl.appendChild(this.wrapperDiv)}rerender(){this.buttons.forEach((e=>{e instanceof vs&&e.updateButton()})),this.linkTagFilter.render()}terminate(){if(this.contentEl&&this.contentEl.removeClass("excalibrain-contentEl"),this.wrapperDiv){try{this.contentEl?.removeChild(this.wrapperDiv)}catch{}this.wrapperDiv=null}}}class ta{contentEl;plugin;wrapperDiv;constructor(e,t){this.contentEl=e,this.plugin=t,this.wrapperDiv=this.contentEl.createDiv({cls:"excalibrain-history-wrapper"}),this.rerender(),this.contentEl.appendChild(this.wrapperDiv)}rerender(){this.wrapperDiv.empty();const e=this.wrapperDiv.createDiv({cls:"excalibrain-history-container"}),t=this.plugin.navigationHistory.get();for(let i=t.length-1;i>=0;i--){i!==t.length-1&&e.createDiv({text:"•",cls:"excalibrain-history-divider"});let n="",s="";const r=this.plugin.pages.get(t[i]);if(!r)return;const a=r.path.startsWith("folder:")?this.plugin.settings.folderNodeStyle:r.path.startsWith("tag:")?this.plugin.settings.tagNodeStyle:{...this.plugin.settings.baseNodeStyle,...h(D(r.dvPage,this.plugin.settings),this.plugin.settings)};r.file?(n=a.prefix+r.getTitle(),s=r.path):(n=a.prefix+r.name,r.path,s=r.path),e.createDiv({text:n,cls:"excalibrain-history-item"},(e=>{e.onclick=()=>this.plugin.scene?.renderGraphForPath(s)}))}}terminate(){if(this.wrapperDiv){try{this.contentEl?.removeChild(this.wrapperDiv)}catch{}this.wrapperDiv=null}}}class ia{ea;plugin;app;leaf;centralPagePath;centralPageFile;_centralLeaf;textSize;nodeWidth;nodeHeight;minLinkLength=100;disregardLeafChange=!1;terminated;nodesMap=new Map;links;layouts=[];removeEH;removeTimer;removeOnCreate;removeOnModify;removeOnDelete;removeOnRename;blockUpdateTimer=!1;toolsPanel;historyPanel;vaultFileChanged=!1;pinLeaf=!1;focusSearchAfterInitiation=!0;zoomToFitOnNextBrainLeafActivate=!1;rootNode;constructor(e,t,i){this.ea=e.EA,this.plugin=e,this.app=e.app,this.leaf=i??this.app.workspace.getLeaf(t),this.terminated=!1,this.links=new _s(e)}set centralLeaf(e){this._centralLeaf=e}get centralLeaf(){return this.plugin.settings.autoOpenCentralDocument&&this._centralLeaf&&this.app.workspace.getLeafById(this._centralLeaf.id)?this._centralLeaf:null}async initialize(e){this.focusSearchAfterInitiation=e,await this.plugin.loadSettings(),this.leaf?.view&&(this.toolsPanel=new ea(this.leaf.view.contentEl.querySelector(".excalidraw"),this.plugin),this.initializeScene())}isActive(){return!this.terminated&&this.app.workspace.getLeafById(this.leaf?.id)}async reRender(e=!0){if(!this.isActive())return;if(!this.centralPagePath)return;e&&(this.vaultFileChanged=!1,await this.plugin.createIndex()),E(this.ea);const t=this.plugin.pages.get(this.centralPagePath);t?.file&&!(t.isFolder||t.isTag||t.isVirtual)&&this.plugin.settings.autoOpenCentralDocument&&(this.centralLeaf?this.centralLeaf.view?.file?.path!==t.file.path&&this.centralLeaf.openFile(t.file,{active:!1}):this.ea.openFileInNewOrAdjacentLeaf(t.file)),await this.render(this.plugin.settings.embedCentralNode)}getCentralPage(){let e=this.plugin.pages.get(this.centralPagePath);return!e&&this.centralPageFile&&(this.centralPagePath=this.centralPageFile.path,e=this.plugin.pages.get(this.centralPageFile.path)),e}longestTitle(e,t=20){const i=[0];for(let n=0;n{if(u){for(await r.vault.modify(a,Ls);a instanceof n.TFile&&!e.isExcalidrawFile(a)&&s++<10;)await sleep(50);ia.openExcalidrawLeaf(e,t,i)}else new n.Notice("Could not start ExcaliBrain. Please change the ExcaliBrain file path in plugin settings.")}));else{if(i||"empty"!==(i=r.workspace.getLeaf(!1)).getViewState().type&&(i=e.getLeaf(i,"new-pane")),t.defaultAlwaysOnTop&&i&&e.DEVICE.isDesktop){const e=i.view?.ownerWindow;e&&e!==window&&!e.electronWindow?.isMaximized()&&e.electronWindow.setAlwaysOnTop(!0)}await i.openFile(a)}}else new n.Notice(`Please check settings. ExcaliBrain path (${t.excalibrainFilepath}) points to a folder, not a file`)}async initializeScene(){this.disregardLeafChange=!1;const e=this.ea,t=this.plugin.settings;let i=0;for(e.clear(),e.setView(this.leaf.view),e.copyViewElementsToEAforEditing(e.getViewElements()),e.getElements().forEach((e=>e.isDeleted=!0));!e.targetView.excalidrawAPI&&i++<10;)await sleep(50);if(!e.targetView.excalidrawAPI)return void new n.Notice("Error initializing Excalidraw view");const s=e.getExcalidrawAPI();this.ea.registerThisAsViewEA(),this.ea.targetView.semaphores.saving=!0,s.setMobileModeAllowed(!1),this.setBaseLayoutParams(),(()=>{s.updateScene({appState:{viewModeEnabled:!0,activeTool:{lastActiveToolBeforeEraser:null,locked:!1,type:"selection"},theme:"light",viewBackgroundColor:this.plugin.settings.backgroundColor}})})(),e.style.strokeColor=t.baseNodeStyle.textColor,e.addText(0,0,"🚀 To get started\nselect a document using the search in the top left or\nopen a document in another pane.\n\n✨ For the best experience enable 'Open in adjacent pane'\nin Excalidraw settings under 'Links and Transclusion'.\n\n⚠ ExcaliBrain may need to wait for DataView to initialize its index.\nThis can take up to a few minutes after starting Obsidian.",{textAlign:"center"}),e.addElementsToView(!1,!1).then((()=>{e.targetView.clearDirty()})),(async()=>{this.plugin.settings.allowAutozoom&&setTimeout((()=>s.zoomToFit(null,this.plugin.settings.maxZoom,.15)),100),e.targetView.linksAlwaysOpenInANewPane=!0,e.targetView.allowFrameButtonsInViewMode=!0,await this.addEventHandler(),this.historyPanel=new ta(this.leaf.view.contentEl.querySelector(".excalidraw"),this.plugin),new n.Notice("ExcaliBrain On")})()}setBaseLayoutParams(){const e=this.ea,t=this.plugin.settings,i={...t.baseNodeStyle,...t.centralNodeStyle};e.style.fontFamily=t.baseLinkStyle.fontFamily,e.style.fontSize=t.baseLinkStyle.fontSize,this.minLinkLength=e.measureText("m".repeat(t.minLinkLength)).width,e.style.fontFamily=i.fontFamily,e.style.fontSize=i.fontSize,this.textSize=e.measureText("m".repeat(i.maxLabelLength)),this.nodeWidth=this.textSize.width+2*i.padding,this.nodeHeight=2*(this.textSize.height+2*i.padding)}addNodes(t){t.neighbours.forEach((i=>{if(i.page.path===this.ea.targetView.file.path)return;i.page.maxLabelLength=t.layout.spec.maxLabelLength;const n=new V({ea:this.ea,page:i.page,isInferred:i.relationType===e.INFERRED,isCentral:t.isCentral,isSibling:t.isSibling,friendGateOnLeft:t.friendGateOnLeft});this.nodesMap.set(i.page.path,n),t.layout.nodes.push(n)}))}getNeighbors(e){const t=this.plugin.settings,i=e.getParents().filter((i=>!(i.page.path===e.path||t.excludeFilepaths.some((e=>i.page.path.startsWith(e)))||i.page.primaryStyleTag&&this.toolsPanel.linkTagFilter.selectedTags.has(i.page.primaryStyleTag)))).slice(0,t.maxItemCount),n=i.map((e=>e.page.path)),s=e.getChildren().filter((i=>!(i.page.path===e.path||t.excludeFilepaths.some((e=>i.page.path.startsWith(e)))||i.page.primaryStyleTag&&this.toolsPanel.linkTagFilter.selectedTags.has(i.page.primaryStyleTag)))).slice(0,t.maxItemCount),r=e.getLeftFriends().concat(e.getPreviousFriends()).filter((i=>!(i.page.path===e.path||t.excludeFilepaths.some((e=>i.page.path.startsWith(e)))||i.page.primaryStyleTag&&this.toolsPanel.linkTagFilter.selectedTags.has(i.page.primaryStyleTag)))).slice(0,t.maxItemCount),a=e.getRightFriends().concat(e.getNextFriends()).filter((i=>!(i.page.path===e.path||t.excludeFilepaths.some((e=>i.page.path.startsWith(e)))||i.page.primaryStyleTag&&this.toolsPanel.linkTagFilter.selectedTags.has(i.page.primaryStyleTag)))).slice(0,t.maxItemCount),u=e.getSiblings().filter((n=>!(i.some((e=>e.page.path===n.page.path))||s.some((e=>e.page.path===n.page.path))||r.some((e=>e.page.path===n.page.path))||a.some((e=>e.page.path===n.page.path))||t.excludeFilepaths.some((e=>n.page.path.startsWith(e))))&&n.page.path!==e.path)),o=u.filter((e=>e.page.getParents().map((e=>e.page.path)).some((e=>n.includes(e)))&&(!e.page.primaryStyleTag||!this.toolsPanel.linkTagFilter.selectedTags.has(e.page.primaryStyleTag)))).slice(0,t.maxItemCount);return{parents:i,children:s,leftFriends:r,rightFriends:a,siblings:o}}calculateAreas({parents:e,parentCols:t,parentWidth:i,children:n,childrenCols:s,childWidth:r,leftFriends:a,leftFriendCols:u,leftFriendWidth:o,rightFriends:l,rightFriendCols:D,rightFriendWidth:d,siblings:h,siblingsCols:c,siblingsNodeWidth:g,siblingsNodeHeight:E}){return{leftFriendsArea:{width:a.length>0?u*o:0,height:a.length>0?Math.ceil(a.length/u)*this.nodeHeight:0},rightFriendsArea:{width:l.length>0?D*d:0,height:l.length>0?Math.ceil(l.length/D)*this.nodeHeight:0},parentsArea:{width:e.length>0?t*i:0,height:e.length>0?Math.ceil(e.length/t)*this.nodeHeight:0},childrenArea:{width:n.length>0?s*r:0,height:n.length>0?Math.ceil(n.length/s)*this.nodeHeight:0},siblingsArea:{width:h.length>0?g*c:0,height:h.length>0?Math.ceil(h.length/c)*E:0}}}calculateLayoutParams({centralPage:e,parents:t,children:i,leftFriends:n,rightFriends:s,siblings:r,isCenterEmbedded:a,centerEmbedHeight:u,centerEmbedWidth:o,style:l,rootNode:D}){const d=this.plugin.settings,h=this.ea,c=d.baseNodeStyle,g=d.compactView,E=1.166*d.compactingFactor,p=.833*d.compactingFactor,f=this.minLinkLength*p*2,F=n.length>=10,m=s.length>=10,C=this.ea.measureText("mi3L".repeat(1)),y=.25*C.width,S=C.height;this.nodeWidth=c.maxLabelLength*y+2*c.padding,this.nodeHeight=E*(S+2*c.padding);const A=6*c.padding,T=Math.max(D.prefix.length,2),b=h.targetView.containerEl,N=1/((b.innerHeight-150)/b.innerWidth),L=Math.min(N,1),O=Math.round(l.maxLabelLength*L),w=Math.max(7,O),_=r.length>=20?3:r.length>=10?2:1,v=g?i.length<=12?[1,1,2,3,3,3,3,2,2,3,3,2,2][i.length]:3:i.length<=12?[1,1,2,3,3,3,3,4,4,5,5,4,4][i.length]:5,I=g?t.length<2?1:2:t.length<5?[1,1,2,3,2][t.length]:3,k=a?Math.ceil(n.length*this.nodeHeight/u):F?2:1,B=a?Math.ceil(s.length*this.nodeHeight/u):m?2:1,R=e.getTitle(),x=h.measureText(R.repeat(1)),M=[...(new Intl.Segmenter).segment(R)].length,H=Math.min(M+T,l.maxLabelLength),P=x.width+2*l.padding,G=a?u+2*this.nodeHeight:4*this.nodeHeight,z=Math.min(this.longestTitle(t)+T,w),V=p*(z*y+A),Y=Math.min(this.longestTitle(i,20)+T,w),W=p*(Y*y+A),U=Math.min(this.longestTitle(n)+T,w),j=p*(U*y+A),K=Math.min(this.longestTitle(s)+T,w),q=p*(K*y+A),Z=d.siblingNodeStyle,$=Z.padding??d.baseNodeStyle.padding,X=Math.min(this.longestTitle(r,20)+T,w);h.style.fontFamily=Z.fontFamily,h.style.fontSize=Z.fontSize;const J=h.measureText("m".repeat(X+3)),Q=p*(J.width+3*$),ee=E*(J.height+2*$),{parentsArea:te,childrenArea:ie,leftFriendsArea:ne,rightFriendsArea:se,siblingsArea:re}=this.calculateAreas({parents:t,parentCols:I,parentWidth:V,children:i,childrenCols:v,childWidth:W,leftFriends:n,leftFriendCols:k,leftFriendWidth:j,rightFriends:s,rightFriendCols:B,rightFriendWidth:q,siblings:r,siblingsCols:_,siblingsNodeWidth:Q,siblingsNodeHeight:ee}),ae=.5*(te.height+Math.max(ne.height,se.height,G))+A;return{rootNodeDimensions:x,rootWidth:P,rootNodeLength:H,childrenOrigoY:.5*(ie.height+Math.max(ne.height,se.height,G))+A,childWidth:W,childLength:Y,childrenCols:v,parentsOrigoY:ae,parentWidth:V,parentLabelLength:z,parentCols:I,leftFriendOrigoX:Math.max((a?o+8.4:P+f)+ne.width,ie.width-ne.width,te.width-ne.width)/2+A,leftFriendWidth:j,leftFriendLength:U,leftFriendCols:k,rightFriendOrigoX:Math.max((a?o+8.4:P+f)+se.width,ie.width-se.width,te.width-se.width)/2+A,rightFriendWidth:q,rightFriendLength:K,rightFriendCols:B,siblingsOrigoX:(Math.max(te.width,a?o:P)+re.width)/2+3*$*(1+_),siblingsOrigoY:Math.max(ae,(re.height+se.height)/2)+this.nodeHeight,siblingsNodeWidth:Q,siblingsNodeHeight:ee,siblingsLabelLength:X,siblingsCols:_}}async render(e=!1){if(this.historyPanel&&this.historyPanel.rerender(),!this.centralPagePath)return;const i=this.plugin.settings;let n=this.plugin.pages.get(this.centralPagePath);if(!n){if(this.centralPagePath=this.plugin.lowercasePathMap.get(this.centralPagePath.toLowerCase()),n=this.plugin.pages.get(this.centralPagePath),!n)return;this.centralPageFile=n.file}const s=this.ea;e=e&&Boolean(this.rootNode)&&i.embedCentralNode&&(n.file&&f(n.file,s)||n.isURL),this.zoomToFitOnNextBrainLeafActivate=!s.targetView.containerEl.isShown(),s.clear(),s.copyViewElementsToEAforEditing(s.getViewElements()),s.getElements().filter((t=>!e||!this.rootNode.embeddedElementIds.includes(t.id))).forEach((e=>e.isDeleted=!0)),s.style.verticalAlign="middle";const{parents:r,children:a,leftFriends:u,rightFriends:o,siblings:l}=this.getNeighbors(n);this.nodesMap=new Map,this.links=new _s(this.plugin),this.layouts=[];const D=i.embedCentralNode&&!n.isVirtual&&!n.isFolder&&!n.isTag,d=i.centerEmbedWidth,h=i.centerEmbedHeight,c={...i.baseNodeStyle,...i.centralNodeStyle},g=i.baseNodeStyle;s.style.fontFamily=g.fontFamily,s.style.fontSize=g.fontSize,this.rootNode=new V({ea:s,page:n,isInferred:!1,isCentral:!0,isSibling:!1,friendGateOnLeft:!0,isEmbeded:D,embeddedElementIds:e?this.rootNode?.embeddedElementIds:void 0});const{rootNodeDimensions:E,rootWidth:p,rootNodeLength:F,childrenOrigoY:m,childWidth:C,childLength:y,childrenCols:S,parentsOrigoY:A,parentWidth:T,parentLabelLength:b,parentCols:N,leftFriendOrigoX:L,leftFriendWidth:O,leftFriendLength:w,leftFriendCols:_,rightFriendOrigoX:v,rightFriendWidth:I,rightFriendLength:k,rightFriendCols:B,siblingsOrigoX:R,siblingsOrigoY:x,siblingsNodeWidth:M,siblingsNodeHeight:H,siblingsLabelLength:P,siblingsCols:G}=this.calculateLayoutParams({centralPage:n,parents:r,children:a,leftFriends:u,rightFriends:o,siblings:l,isCenterEmbedded:D,centerEmbedHeight:h,centerEmbedWidth:d,style:c,rootNode:this.rootNode}),z=new Os({origoX:0,origoY:D?h/2:0,top:null,bottom:null,columns:1,columnWidth:D?d:p,rowHeight:D?h:E.height,maxLabelLength:F});this.layouts.push(z);const Y=new Os({origoX:0,origoY:m,top:0,bottom:null,columns:S,columnWidth:C,rowHeight:this.nodeHeight,maxLabelLength:y});this.layouts.push(Y);const W=new Os({origoX:-L,origoY:0,top:null,bottom:null,columns:_,columnWidth:O,rowHeight:this.nodeHeight,maxLabelLength:w});this.layouts.push(W);const U=new Os({origoX:v,origoY:0,top:null,bottom:null,columns:B,columnWidth:I,rowHeight:this.nodeHeight,maxLabelLength:k});this.layouts.push(U);const j=new Os({origoX:0,origoY:-A,top:null,bottom:-2*this.nodeHeight,columns:N,columnWidth:T,rowHeight:this.nodeHeight,maxLabelLength:b});this.layouts.push(j);const K=new Os({origoX:R,origoY:-x,top:null,bottom:null,columns:G,columnWidth:M,rowHeight:H,maxLabelLength:P});this.layouts.push(K),n.maxLabelLength=F,this.nodesMap.set(n.path,this.rootNode),z.nodes.push(this.rootNode),this.addNodes({neighbours:r,layout:j,isCentral:!1,isSibling:!1,friendGateOnLeft:!0}),this.addNodes({neighbours:a,layout:Y,isCentral:!1,isSibling:!1,friendGateOnLeft:!0}),this.addNodes({neighbours:u,layout:W,isCentral:!1,isSibling:!1,friendGateOnLeft:!1}),this.addNodes({neighbours:o,layout:U,isCentral:!1,isSibling:!1,friendGateOnLeft:!0}),i.renderSiblings&&this.addNodes({neighbours:l,layout:K,isCentral:!1,isSibling:!0,friendGateOnLeft:!0});const q=(e,t,n)=>{t.forEach((t=>{const r=this.nodesMap.get(t.page.path);r&&this.links.addLink(e,r,n,t.relationType,t.typeDefinition,t.linkDirection,s,i)}))};Array.from(this.nodesMap.values()).forEach((e=>{q(e,e.page.getChildren(),t.CHILD),q(e,e.page.getParents(),t.PARENT),q(e,e.page.getLeftFriends(),t.LEFT),q(e,e.page.getPreviousFriends(),t.LEFT),q(e,e.page.getRightFriends(),t.RIGHT),q(e,e.page.getNextFriends(),t.RIGHT)})),s.style.opacity=100,await Promise.all(this.layouts.map((async e=>await e.render())));const Z=s.getElements();this.links.render(Array.from(this.toolsPanel.linkTagFilter.selectedLinks));const $=s.getElements().filter((e=>!Z.includes(e))).concat(Z).reduce(((e,t)=>(e[t.id]=t,e)),{});s.elementsDict=$;const X=s.getExcalidrawAPI();s.addElementsToView(!1,!1).then((()=>{X.updateScene({appState:{viewBackgroundColor:i.backgroundColor}}),s.targetView.clearDirty()})),i.allowAutozoom&&!e&&setTimeout((()=>X.zoomToFit(s.getViewElements(),i.maxZoom,.15)),100),this.toolsPanel.rerender(),this.focusSearchAfterInitiation&&i.allowAutofocuOnSearch&&(this.toolsPanel.searchElement.focus(),this.focusSearchAfterInitiation=!1),this.blockUpdateTimer=!1}isCentralLeafStillThere(){const e=this.plugin.settings;return!(null===this.app.workspace.getLeafById(this.centralLeaf?.id))&&this.centralLeaf.view?.file?.path!==e.excalibrainFilepath}async brainEventHandler(e,t=!1){const i=this.plugin.settings;if(!this.ea.targetView?.file||this.ea.targetView.file.path!==i.excalibrainFilepath)return void this.unloadScene();if(this.disregardLeafChange)return;if(!t&&!i.autoOpenCentralDocument)return;if(this.blockUpdateTimer=!0,await sleep(100),this.pinLeaf&&!this.isCentralLeafStillThere()&&(this.pinLeaf=!1,this.toolsPanel.rerender()),this.pinLeaf&&e!==this.centralLeaf)return;if(!(e?.view&&e.view instanceof n.FileView&&e.view.file))return void(this.blockUpdateTimer=!1);const s=e.view.file;if(s.path===this.ea.targetView.file.path)return this.vaultFileChanged&&(this.zoomToFitOnNextBrainLeafActivate=!1,await this.reRender(!0)),this.zoomToFitOnNextBrainLeafActivate&&(this.zoomToFitOnNextBrainLeafActivate=!1,i.allowAutozoom&&this.ea.getExcalidrawAPI().zoomToFit(null,i.maxZoom,.15)),void(this.blockUpdateTimer=!1);const r=this.getCentralPage();r&&r.path===s.path&&s.stat.mtime===r.mtime?this.blockUpdateTimer=!1:(this.plugin.pages.get(s.path)||await this.plugin.createIndex(),this.plugin.navigationHistory.addToHistory(s.path),this.centralPagePath=s.path,this.centralPageFile=s,this.centralLeaf=e,this.render())}async addEventHandler(){const e=()=>{this.vaultFileChanged=!0},t=e=>this.brainEventHandler(e);this.app.workspace.on("active-leaf-change",t),this.removeEH=()=>this.app.workspace.off("active-leaf-change",t),this.setTimer(),this.app.vault.on("rename",e),this.removeOnRename=()=>this.app.vault.off("rename",e),this.app.vault.on("modify",e),this.removeOnModify=()=>this.app.vault.off("modify",e),this.app.vault.on("create",e),this.removeOnCreate=()=>this.app.vault.off("create",e),this.app.vault.on("delete",e),this.removeOnDelete=()=>this.app.vault.off("delete",e);const i=[];this.app.workspace.iterateAllLeaves((e=>{e.view instanceof n.FileView&&e.view.file&&e.view.file.path!==this.ea.targetView.file.path&&i.push(e)})),await this.plugin.createIndex();let s=i[0];if(i.length>0){const e=this.app.workspace.getLastOpenFiles()[0];if(e&&""!==e){const t=i.filter((t=>t.view?.file?.path===e));t.length>0&&(s=t[0])}E(this.plugin.EA),this.brainEventHandler(s,!0)}else if(this.plugin.navigationHistory.length>0){const e=this.plugin.navigationHistory.last;setTimeout((()=>this.renderGraphForPath(e,!0)),100)}}setTimer(){this.removeTimer&&(this.removeTimer(),this.removeTimer=void 0);const e=setInterval((async()=>{!this.blockUpdateTimer&&this.vaultFileChanged&&(this.vaultFileChanged=!1,await this.plugin.createIndex(),this.centralPagePath&&(this.getCentralPage()||this.centralLeaf&&this.centralLeaf.view&&this.centralLeaf.view.file&&(this.centralPageFile=this.centralLeaf.view.file,this.centralPagePath=this.centralPageFile.path)),this.render(!0))}),this.plugin.settings.indexUpdateInterval);this.removeTimer=()=>clearInterval(e)}unloadScene(e=!0,t=!1){if(this.removeEH&&(this.removeEH(),this.removeEH=void 0),this.removeTimer&&(this.removeTimer(),this.removeTimer=void 0),this.removeOnRename&&(this.removeOnRename(),this.removeOnRename=void 0),this.removeOnModify&&(this.removeOnModify(),this.removeOnModify=void 0),this.removeOnCreate&&(this.removeOnCreate(),this.removeOnCreate=void 0),this.removeOnDelete&&(this.removeOnDelete(),this.removeOnDelete=void 0),this.ea.targetView&&isBoolean(this.ea.targetView.linksAlwaysOpenInANewPane)&&(this.ea.targetView.linksAlwaysOpenInANewPane=!1),this.ea.targetView&&isBoolean(this.ea.targetView.allowFrameButtonsInViewMode)&&(this.ea.targetView.allowFrameButtonsInViewMode=!1),this.ea.targetView&&this.ea.targetView.excalidrawAPI)try{this.ea.targetView.semaphores.saving=!1,this.ea.targetView.excalidrawAPI.setMobileModeAllowed(!0),this.ea.targetView.excalidrawAPI.updateScene({appState:{viewModeEnabled:!1}})}catch{}if(this.ea.targetView&&this.ea.targetView._loaded)try{this.ea.deregisterThisAsViewEA()}catch{}e&&setTimeout((async()=>{await this.plugin.loadSettings(),this.plugin.settings.navigationHistory=[...this.plugin.navigationHistory.get()],await this.plugin.saveSettings()}),400),this.toolsPanel?.terminate(),this.toolsPanel=void 0,this.historyPanel?.terminate(),this.historyPanel=void 0,this.ea.targetView=void 0,this.leaf=void 0,this.centralLeaf=void 0,this.centralPagePath=void 0,this.centralPageFile=void 0,this.terminated=!0,this.app.plugins.plugins["obsidian-excalidraw-plugin"]||(this.plugin.EA=null),t||new n.Notice("Brain Graph Off");const i=this.app.workspace.getMostRecentLeaf();i&&this.app.workspace.setActiveLeaf(i,{focus:!0})}}class na extends n.EditorSuggest{plugin;suggestType;latestTriggerInfo;constructor(e){super(e.app),this.plugin=e}onTrigger(e,t,i){const n=this.plugin.settings;if(n.allowOntologySuggester){const i=t.getLine(e.line).substring(0,e.ch),s=new RegExp(`(^${n.ontologySuggesterTrigger}|\\${n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterTrigger}|^${n.ontologySuggesterParentTrigger}|\\${n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterParentTrigger}|^${n.ontologySuggesterChildTrigger}|\\${n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterChildTrigger}|^${n.ontologySuggesterLeftFriendTrigger}|\\${n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterLeftFriendTrigger}|^${n.ontologySuggesterRightFriendTrigger}|\\${n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterRightFriendTrigger}|^${n.ontologySuggesterPreviousTrigger}|\\${n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterPreviousTrigger}|^${n.ontologySuggesterNextTrigger}|\\${n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterNextTrigger})([^\\s\\${n.ontologySuggesterTrigger}]*)`,"g");let r,a,u;const o=i.matchAll(s);for(;!(u=o.next()).done;)a=u.value[1],r=u.value[2];if(void 0!==r){switch(a){case n.ontologySuggesterTrigger:case n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterTrigger:this.suggestType="all";break;case n.ontologySuggesterParentTrigger:case n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterParentTrigger:this.suggestType="parent";break;case n.ontologySuggesterChildTrigger:case n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterChildTrigger:this.suggestType="child";break;case n.ontologySuggesterRightFriendTrigger:case n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterRightFriendTrigger:this.suggestType="rightFriend";break;case n.ontologySuggesterPreviousTrigger:case n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterPreviousTrigger:this.suggestType="previous";break;case n.ontologySuggesterNextTrigger:case n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterNextTrigger:this.suggestType="next";break;case n.ontologySuggesterLeftFriendTrigger:case n.ontologySuggesterMidSentenceTrigger+n.ontologySuggesterLeftFriendTrigger:this.suggestType="leftFriend";break;default:this.suggestType="all"}return this.latestTriggerInfo={end:e,start:{ch:e.ch-r.length-this.getTrigger().length,line:e.line},query:r},this.latestTriggerInfo}}return null}getKeys=()=>{const e=this.plugin.settings.hierarchy,t=this.suggestType;return"all"===t?[...e.hidden,...e.parents,...e.children,...e.leftFriends,...e.rightFriends,...e.previous,...e.next,this.plugin.settings.primaryTagField].sort(((e,t)=>e.toLowerCase()>t.toLowerCase()?1:-1)):"parent"===t?e.parents:"child"===t?e.children:"rightFriend"===t?e.rightFriends:"leftFriend"===t?e.leftFriends:"previous"===t?e.previous:e.next};getTrigger=()=>{const e=this.suggestType,t=this.plugin.settings;return"all"===e?t.ontologySuggesterTrigger:"parent"===e?t.ontologySuggesterParentTrigger:"child"===e?t.ontologySuggesterChildTrigger:"rightFriend"===e?t.ontologySuggesterRightFriendTrigger:"leftFriend"===e?t.ontologySuggesterLeftFriendTrigger:"previous"===e?t.ontologySuggesterPreviousTrigger:t.ontologySuggesterNextTrigger};getSuggestions=e=>{const t=e.query.toLowerCase();return this.getKeys().filter((e=>e.toLowerCase().includes(t)))};renderSuggestion(e,t){t.createEl("b",{text:e})}selectSuggestion(e){const{context:t}=this;if(t){const i=this.plugin.settings.boldFields,n=(i?"**":"")+e+(i?"**":"")+":: ";if(t.editor.replaceRange(n,this.latestTriggerInfo.start,this.latestTriggerInfo.end),this.latestTriggerInfo.start.ch===this.latestTriggerInfo.end.ch){const e=this.latestTriggerInfo.end;e.ch+=n.length,t.editor.setCursor(e)}}}}var sa;!function(e){e.Hidden="hidden",e.Parent="parent",e.Child="child",e.LeftFriend="leftFriend",e.RightFriend="rightFriend",e.Previous="previous",e.Next="next"}(sa||(sa={}));class ra extends n.Modal{plugin;ontology=null;fieldName;constructor(e,t){super(e),this.plugin=t}getCurrentOntology(){const{settings:e}=this.plugin,t=this.fieldName;return e.hierarchy.hidden.includes(t)?sa.Hidden:e.hierarchy.parents.includes(t)?sa.Parent:e.hierarchy.children.includes(t)?sa.Child:e.hierarchy.leftFriends.includes(t)?sa.LeftFriend:e.hierarchy.rightFriends.includes(t)?sa.RightFriend:e.hierarchy.previous.includes(t)?sa.Previous:e.hierarchy.next.includes(t)?sa.Next:null}async setOntology(e){if(this.ontology===e)return;const{settings:t}=this.plugin,i=this.plugin;switch(this.ontology){case sa.Hidden:t.hierarchy.hidden=t.hierarchy.hidden.filter((e=>e!==this.fieldName)),i.hierarchyLowerCase.hidden=[],t.hierarchy.hidden.forEach((e=>i.hierarchyLowerCase.hidden.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.Parent:t.hierarchy.parents=t.hierarchy.parents.filter((e=>e!==this.fieldName)),i.hierarchyLowerCase.parents=[],t.hierarchy.parents.forEach((e=>i.hierarchyLowerCase.parents.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.Child:t.hierarchy.children=t.hierarchy.children.filter((e=>e!==this.fieldName)),i.hierarchyLowerCase.children=[],t.hierarchy.children.forEach((e=>i.hierarchyLowerCase.children.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.LeftFriend:t.hierarchy.leftFriends=t.hierarchy.leftFriends.filter((e=>e!==this.fieldName)),i.hierarchyLowerCase.leftFriends=[],t.hierarchy.leftFriends.forEach((e=>i.hierarchyLowerCase.leftFriends.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.RightFriend:t.hierarchy.rightFriends=t.hierarchy.rightFriends.filter((e=>e!==this.fieldName)),i.hierarchyLowerCase.rightFriends=[],t.hierarchy.rightFriends.forEach((e=>i.hierarchyLowerCase.rightFriends.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.Previous:t.hierarchy.previous=t.hierarchy.previous.filter((e=>e!==this.fieldName)),i.hierarchyLowerCase.previous=[],t.hierarchy.previous.forEach((e=>i.hierarchyLowerCase.previous.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.Next:t.hierarchy.next=t.hierarchy.next.filter((e=>e!==this.fieldName)),i.hierarchyLowerCase.next=[],t.hierarchy.next.forEach((e=>i.hierarchyLowerCase.next.push(e.toLowerCase().replaceAll(" ","-"))))}switch(e){case sa.Hidden:t.hierarchy.hidden.push(this.fieldName),t.hierarchy.hidden=t.hierarchy.hidden.sort(((e,t)=>e.toLowerCase()i.hierarchyLowerCase.hidden.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.Parent:t.hierarchy.parents.push(this.fieldName),t.hierarchy.parents=t.hierarchy.parents.sort(((e,t)=>e.toLowerCase()i.hierarchyLowerCase.parents.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.Child:t.hierarchy.children.push(this.fieldName),t.hierarchy.children=t.hierarchy.children.sort(((e,t)=>e.toLowerCase()i.hierarchyLowerCase.children.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.LeftFriend:t.hierarchy.leftFriends.push(this.fieldName),t.hierarchy.leftFriends=t.hierarchy.leftFriends.sort(((e,t)=>e.toLowerCase()i.hierarchyLowerCase.leftFriends.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.RightFriend:t.hierarchy.rightFriends.push(this.fieldName),t.hierarchy.rightFriends=t.hierarchy.rightFriends.sort(((e,t)=>e.toLowerCase()i.hierarchyLowerCase.rightFriends.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.Previous:t.hierarchy.previous.push(this.fieldName),t.hierarchy.previous=t.hierarchy.previous.sort(((e,t)=>e.toLowerCase()i.hierarchyLowerCase.previous.push(e.toLowerCase().replaceAll(" ","-"))));break;case sa.Next:t.hierarchy.next.push(this.fieldName),t.hierarchy.next=t.hierarchy.next.sort(((e,t)=>e.toLowerCase()i.hierarchyLowerCase.next.push(e.toLowerCase().replaceAll(" ","-"))))}await this.plugin.saveSettings(),i.scene&&!i.scene.terminated&&(i.scene.vaultFileChanged=!0),new n.Notice(`Added ${this.fieldName} as ${e}`),this.fieldName=null,this.close()}async show(e){await this.plugin.loadSettings(),this.fieldName=e,this.ontology=this.getCurrentOntology(),this.open()}async addFieldToOntology(e,t){await this.plugin.loadSettings(),this.fieldName=t,this.ontology=this.getCurrentOntology(),await this.setOntology(e),this.fieldName=null}open(){if(!this.fieldName)return;const{contentEl:e,titleEl:t}=this;t.setText(this.fieldName),e.createEl("p",{text:H("ADD_TO_ONTOLOGY_MODAL_DESC")});const i=new n.Setting(e).addButton((e=>{e.buttonEl.style.flex="1 0 calc(33.33% - var(--size-4-2))",e.setButtonText(H("HIDDEN_NAME")),this.ontology===sa.Hidden&&e.setCta(),e.onClick((()=>this.setOntology(sa.Hidden)))})).addButton((e=>{e.buttonEl.style.flex="1 0 calc(33.33% - var(--size-4-2))",e.setButtonText(H("PARENTS_NAME")),this.ontology===sa.Parent&&e.setCta(),e.onClick((()=>this.setOntology(sa.Parent)))})).addButton((e=>{e.buttonEl.style.flex="1 0 calc(33.33% - var(--size-4-2))",e.setButtonText(H("CHILDREN_NAME")),this.ontology===sa.Child&&e.setCta(),e.onClick((()=>this.setOntology(sa.Child)))})).addButton((e=>{e.buttonEl.style.flex="1 0 calc(33.33% - var(--size-4-2))",e.setButtonText(H("LEFT_FRIENDS_NAME")),this.ontology===sa.LeftFriend&&e.setCta(),e.onClick((()=>this.setOntology(sa.LeftFriend)))})).addButton((e=>{e.buttonEl.style.flex="1 0 calc(33.33% - var(--size-4-2))",e.setButtonText(H("RIGHT_FRIENDS_NAME")),this.ontology===sa.RightFriend&&e.setCta(),e.onClick((()=>this.setOntology(sa.RightFriend)))})).addButton((e=>{e.buttonEl.style.flex="1 0 calc(33.33% - var(--size-4-2))",e.setButtonText(H("PREVIOUS_NAME")),this.ontology===sa.Previous&&e.setCta(),e.onClick((()=>this.setOntology(sa.Previous)))})).addButton((e=>{e.buttonEl.style.flex="1 0 calc(33.33% - var(--size-4-2))",e.setButtonText(H("NEXT_NAME")),this.ontology===sa.Next&&e.setCta(),e.onClick((()=>this.setOntology(sa.Next)))}));i.controlEl.style.flexWrap="wrap",i.controlEl.style.justifyContent="space-between",super.open()}onClose(){const{contentEl:e}=this;e.empty()}}class aa{history=[];currentPosition=-1;navigateButtons;constructor(e){this.history=e,this.currentPosition=e.length-1}setNavigateButtons(e){this.navigateButtons=e}addToHistory(e){if(this.navigateButtons&&this.navigateButtons.forEach((e=>e.updateButton())),this.history[this.currentPosition]===e)return;const t=this.history.indexOf(e);t>-1&&this.history.splice(t,1),this.history.push(e),this.history.length>50&&this.history.shift(),this.currentPosition=this.history.length-1}get length(){return this.history.length}get last(){return this.history[this.currentPosition]}get(){return this.history}getPrevious(){return this.currentPosition>0?(this.currentPosition--,this.history[this.currentPosition]):null}getNext(){return this.currentPosition0}}const ua="YYYY-MM-DD";function oa(e){try{const{internalPlugins:t,plugins:i}=e;if(function(e,t){const i=e.plugins.getPlugin("periodic-notes");return i&&i.settings?.daily?.enabled}(e)){const{format:e,folder:t,template:n}=i.getPlugin("periodic-notes")?.settings?.daily||{};return{format:e||ua,folder:t?.trim()||"",template:n?.trim()||""}}const{folder:n,format:s,template:r}=t.getPluginById("daily-notes")?.instance?.options||{};return{format:s||ua,folder:n?.trim()||"",template:r?.trim()||""}}catch(e){console.info("No custom daily note settings found!",e)}}class la extends n.Plugin{dailyNoteSettings;settings;nodeStyles;linkStyles;hierarchyLowerCase={hidden:[],parents:[],children:[],leftFriends:[],rightFriends:[],previous:[],next:[]};hierarchyLinkStylesExtended;pages;DVAPI;EA;scene=null;disregardLeafChangeTimer;pluginLoaded=!1;starred=[];focusSearchAfterInitiation=!1;customNodeLabel;navigationHistory;urlParser;addToOntologyModal;constructor(e,t){super(e,t),this.starred=[new T(null,"Initializing index, please wait",null,this,!1,!1,"Initializing index, please wait")],this.addToOntologyModal=new ra(e,this)}async onload(){await this.loadSettings(),this.dailyNoteSettings=oa(this.app),this.navigationHistory=new aa(this.settings.navigationHistory),this.addSettingTab(new X(this.app,this)),this.registerEditorSuggest(new na(this)),this.registerEvents(),this.urlParser=new r(this),this.app.workspace.onLayoutReady((()=>{this.urlParser.init(),this.DVAPI=Ns(),this.DVAPI?(this.EA=O(),this.EA?this.EA.verifyMinimumPluginVersion(v)?(this.registerCommands(),this.registerExcalidrawAutomateHooks(),this.pluginLoaded=!0):new P(this.app,"⚠ ExcaliBrain Disabled: Please upgrade Excalidraw and try again",H("EXCALIDRAW_MINAPP_VERSION")).show((async e=>{new n.Notice("Disabling ExcaliBrain Plugin",8e3),c({fn:this.onload,where:"main.ts/onload()",message:"ExcaliBrain requires a new version of Excalidraw"}),this.app.plugins.disablePlugin(_)})):new P(this.app,"⚠ ExcaliBrain Disabled: Excalidraw Plugin not found",H("EXCALIDRAW_NOT_FOUND")).show((async e=>{new n.Notice("Disabling ExcaliBrain Plugin",8e3),c({fn:this.onload,where:"main.ts/onload()",message:"Excalidraw not found"}),this.app.plugins.disablePlugin(_)}))):new P(this.app,"⚠ ExcaliBrain Disabled: DataView Plugin not found",H("DATAVIEW_NOT_FOUND")).show((async e=>{new n.Notice("Disabling ExcaliBrain Plugin",8e3),c({fn:this.onload,where:"main.ts/onload()",message:"Dataview not found"}),this.app.plugins.disablePlugin(_)}))}))}registerEvents(){this.registerEvent(this.app.workspace.on("editor-menu",this.handleEditorMenu,this))}getFieldName(e){let t=e.getLine(e.getCursor().line).substring(0,e.getCursor().ch);const i=/(?:^|[([])(?:==|\*\*|~~|\*|_|__)?([^:\]()]*?)(?:==|\*\*|~~|\*|_|__)?::/g;let n,s=null;for(;null!==(n=i.exec(t));)s=n;if(!s)for(t=e.getLine(e.getCursor().line);null!==(n=i.exec(t));)s=n;return null!==s?s[1]:null}handleEditorMenu(e,t,i){const n=this.getFieldName(t);n&&e.addItem((e=>{e.setTitle(`Add "${n}" to ExcaliBrain Ontology`).setIcon("plus").onClick((()=>{this.addToOntologyModal.show(n)}))}))}lowercasePathMap;async createIndex(){this.pages=new F(this),this.lowercasePathMap=new Map;let t=0;for(;this.app.metadataCache.inProgressTaskCount>0||this.DVAPI.index.importer.reloadQueue.length>0;)t++%100==10&&new n.Notice("ExcaliBrain is waiting for Dataview to update its index",1e3),await sleep(100);for(t=0;!this.urlParser.initalized;)t++%100==10&&new n.Notice("ExcaliBrain is waiting for URLParser to finish indexing",1e3),await sleep(100);this.urlParser.hosts.forEach((e=>{this.pages.add(e,new T(this.pages,e,null,this,!1,!1,e,e))}));const s=(t,r)=>{t.children.forEach((t=>{if(t instanceof n.TFolder){const n=new T(this.pages,"folder:"+t.path,null,this,!0,!1,t.name);return this.pages.add("folder:"+t.path,n),n.addParent(r,e.DEFINED,i.TO,"file-tree"),r.addChild(n,e.DEFINED,i.FROM,"file-tree"),void s(t,n)}{this.lowercasePathMap.set(t.path.toLowerCase(),t.path);const n=new T(this.pages,t.path,t,this);this.pages.add(t.path,n),n.addParent(r,e.DEFINED,i.TO,"file-tree"),r.addChild(n,e.DEFINED,i.FROM,"file-tree")}}))},r=this.app.vault.getRoot(),a=new T(this.pages,"folder:/",null,this,!0,!1,"/");this.pages.add("folder:/",a),s(r,a);const u=Object.keys(this.app.metadataCache.getTags()).map((e=>e.substring(1).split("/")));u.forEach((t=>{const n=[];t.forEach(((t,s,r)=>{const a=r.slice(0,s+1).join("/"),u="tag:"+a;let o=this.pages.get(u);if(o)n.push(o);else if(o=new T(this.pages,u,null,this,!1,!0,this.settings.showFullTagName?a:t),this.pages.add(u,o),n.push(o),s>0){const t=n[s-1];o.addParent(t,e.DEFINED,i.FROM,"tag-tree"),t.addChild(o,e.DEFINED,i.TO,"tag-tree")}}))})),this.pages.addUnresolvedLinks(),this.pages.addResolvedLinks(),this.pages.addPageURLs();const o=this;setTimeout((async()=>{const e=this.app.internalPlugins.getPluginById("bookmarks");if(!e){const e=this.app.internalPlugins.getPluginById("starred");if(!e)return;return void(o.starred=(await e.loadData()).items.filter((e=>"file"===e.type)).map((e=>e.path)).filter((e=>e!==o.settings.excalibrainFilepath&&o.pages.has(e))).map((e=>o.pages.get(e))))}e._loaded||await e.loadData();const t=e=>{if(!e)return;let i=e.filter((e=>"file"===e.type)).map((e=>e.path)).filter((e=>e!==o.settings.excalibrainFilepath&&o.pages.has(e))).map((e=>o.pages.get(e)));return i=i.concat(e.filter((e=>"folder"===e.type)).map((e=>e.path)).filter((e=>e!==o.settings.excalibrainFilepath&&o.pages.has(`folder:${e}`))).map((e=>o.pages.get(`folder:${e}`)))),e.filter((e=>"group"===e.type)).forEach((e=>i=i.concat(t(e.items)))),i};o.starred=t(e.instance.items)}))}excalidrawAvailable(){if(this.app.plugins.plugins["obsidian-excalidraw-plugin"]===this.EA.plugin)return!0;const e=O(this.scene?.leaf?.view);return e?(this.EA=e,this.registerExcalidrawAutomateHooks(),!0):(this.EA=null,this.scene&&this.scene.unloadScene(),new n.Notice("ExcaliBrain: Please start Excalidraw and try again.",4e3),!1)}revealBrainLeaf(){if(!this.scene||this.scene.terminated)return;this.app.workspace.revealLeaf(this.scene.leaf);const e=this.app.plugins.getPlugin("obsidian-hover-editor");if(e){const t=e.activePopovers.filter((e=>e.leaves()[0]===this.scene.leaf))[0];t&&0===this.scene.leaf.view.containerEl.offsetHeight&&t.titleEl.querySelector("a.popover-action.mod-minimize").click()}const t=this.scene.toolsPanel?.searchElement;t?.focus()}addFieldToOntology(e,t){this.addToOntologyModal.addFieldToOntology(t,e)}registerCommands(){const e=(e,t)=>{const i=this.app.workspace.activeLeaf?.view;let s;if(!i)return!1;if("excalidraw"===i.getViewType()){const e=this.EA.getActiveEmbeddableViewOrEditor(i);if(!e)return!1;"view"in e&&"editor"in e.view?s=e.view.editor:"editor"in e&&(s=e.editor)}if(i instanceof n.MarkdownView&&"source"===i.getMode()&&(s=i.editor),!s)return!1;const r=this.getFieldName(s);return!(!r||!e&&("select"===t?(this.addToOntologyModal.show(r),0):(this.addFieldToOntology(r,t),0)))};this.addCommand({id:"excalibrain-addHiddenField",name:H("COMMAND_ADD_HIDDEN_FIELD"),checkCallback:t=>e(t,sa.Hidden)}),this.addCommand({id:"excalibrain-addParentField",name:H("COMMAND_ADD_PARENT_FIELD"),checkCallback:t=>e(t,sa.Parent)}),this.addCommand({id:"excalibrain-addChildField",name:H("COMMAND_ADD_CHILD_FIELD"),checkCallback:t=>e(t,sa.Child)}),this.addCommand({id:"excalibrain-addLeftFriendField",name:H("COMMAND_ADD_LEFT_FRIEND_FIELD"),checkCallback:t=>e(t,sa.LeftFriend)}),this.addCommand({id:"excalibrain-addRightFriendField",name:H("COMMAND_ADD_RIGHT_FRIEND_FIELD"),checkCallback:t=>e(t,sa.RightFriend)}),this.addCommand({id:"excalibrain-addPreviousField",name:H("COMMAND_ADD_PREVIOUS_FIELD"),checkCallback:t=>e(t,sa.Previous)}),this.addCommand({id:"excalibrain-addNextField",name:H("COMMAND_ADD_NEXT_FIELD"),checkCallback:t=>e(t,sa.Next)}),this.addCommand({id:"excalibrain-selectOntology",name:H("COMMAND_ADD_ONTOLOGY_MODAL"),checkCallback:t=>e(t,"select")}),this.addCommand({id:"excalibrain-start",name:H("COMMAND_START"),checkCallback:e=>{if(e)return this.excalidrawAvailable();if(!this.excalidrawAvailable())return;if(this.scene&&!this.scene.terminated){if(this.app.workspace.getLeafById(this.scene.leaf?.id))return void this.revealBrainLeaf();this.scene.unloadScene(!1,!0)}const t=this.getBrainLeaf();if(t)return this.scene=new ia(this,!0,t),this.scene.initialize(!0),void this.revealBrainLeaf();this.focusSearchAfterInitiation=!0,ia.openExcalidrawLeaf(window.ExcalidrawAutomate,this.settings,t)}}),this.addCommand({id:"excalibrain-start-popout",name:H("COMMAND_START_POPOUT"),checkCallback:e=>{if(e)return!this.EA.DEVICE.isMobile&&this.excalidrawAvailable();if(!this.excalidrawAvailable()||this.EA.DEVICE.isMobile)return;if(this.scene&&!this.scene.terminated){if(this.app.workspace.getLeafById(this.scene.leaf?.id))return void this.revealBrainLeaf();this.scene.unloadScene(!1,!0)}const t=this.getBrainLeaf();if(t)return this.scene=new ia(this,!0,t),this.scene.initialize(!0),void this.revealBrainLeaf();this.focusSearchAfterInitiation=!0,(async()=>{const e=this.app.workspace.openPopoutLeaf();let t=0;for(;e?.view?.containerEl?.ownerDocument===document&&t++<5;)await sleep(10);ia.openExcalidrawLeaf(window.ExcalidrawAutomate,this.settings,e)})()}}),this.addCommand({id:"excalibrain-open-hover",name:H("COMMAND_START_HOVER"),checkCallback:e=>{const t=this.app.plugins.getPlugin("obsidian-hover-editor");if(e)return t&&this.excalidrawAvailable();if(this.excalidrawAvailable()&&t){if(this.scene&&!this.scene.terminated){if(this.app.workspace.getLeafById(this.scene.leaf?.id))return void this.revealBrainLeaf();this.scene.unloadScene(!1,!0)}try{const e=this.getBrainLeaf();if(e){const i=t.activePopovers.filter((t=>t.leaves()[0]===e))[0];if(i)return this.app.workspace.revealLeaf(e),0===e.view.containerEl.offsetHeight&&i.titleEl.querySelector("a.popover-action.mod-maximize").click(),this.scene=new ia(this,!0,e),void this.scene.initialize(!0)}const i=t.spawnPopover(void 0,(()=>{if(this.app.workspace.setActiveLeaf(i,!1,!0),!t.activePopovers.filter((e=>e.leaves()[0]===i))[0])return new n.Notice(H("HOVER_EDITOR_ERROR"),6e3),!1;setTimeout((()=>this.app.commands.executeCommandById("obsidian-hover-editor:snap-active-popover-to-viewport"))),this.focusSearchAfterInitiation=!0,ia.openExcalidrawLeaf(window.ExcalidrawAutomate,this.settings,i)}))}catch(e){new n.Notice(H("HOVER_EDITOR_ERROR"),6e3)}}}})}getBrainLeaf(){let e;return this.app.workspace.iterateAllLeaves((t=>{t.view&&this.EA.isExcalidrawView(t.view)&&t.view instanceof n.TextFileView&&t.view.file.path===this.settings.excalibrainFilepath&&(e=t)})),e}registerExcalidrawAutomateHooks(){this.EA.onViewModeChangeHook=e=>{this.EA.targetView&&this.EA.targetView.file?.path===this.settings.excalibrainFilepath&&(e||this.stop())},this.EA.onLinkHoverHook=(e,t)=>!(this.scene&&this.EA.targetView&&this.EA.targetView.file?.path===this.settings.excalibrainFilepath&&this.EA.targetView.excalidrawAPI&&this.EA.targetView.excalidrawAPI.getAppState().viewModeEnabled&&(this.scene.disregardLeafChange=!0,this.disregardLeafChangeTimer&&clearTimeout(this.disregardLeafChangeTimer),this.disregardLeafChangeTimer=setTimeout((()=>{this.disregardLeafChangeTimer=null,this.scene&&(this.scene.disregardLeafChange=!1)}),1e3),0)),this.EA.onLinkClickHook=(e,t,i)=>{const s=t.match(/\[\[([^\]]*)/)?.[1]??t.match(/(http.*)/)?.[1];if(!s)return!0;const r=this.pages.get(s),a=this.EA;if(!r||!this.scene||!a)return!0;if(E(a),r.isVirtual)return i.shiftKey?(async()=>{const e=r.getParents()[0]??r.getLeftFriends()[0]??r.getRightFriends()[0]??r.getChildren()[0],t=await a.newFilePrompt(r.path,!1,void 0,e?.page.file);t&&(r.file=t,await this.scene.renderGraphForPath(s),await this.scene.reRender(!0))})():this.scene?.renderGraphForPath(s),!1;if(!this.settings.autoOpenCentralDocument)return this.scene.centralPagePath===r.path?!!r.isURL||(this.scene.isCentralLeafStillThere()?(this.scene.centralLeaf.openFile(r.file,{active:!0}),!1):(a.targetView.linksAlwaysOpenInANewPane=!1,setTimeout((()=>a.targetView.linksAlwaysOpenInANewPane=!0),300),!0)):(this.scene.renderGraphForPath(s),!1);const u=this.scene.centralLeaf;if(!r.isFolder&&!r.isTag&&!r.isURL){if(u?.view?.file?.path===s)return this.scene.renderGraphForPath(s),!1;if(this.scene.isCentralLeafStillThere()){const e=this.app.vault.getAbstractFileByPath(s.split("#")[0]);if(e&&e instanceof n.TFile)return u.openFile(e,{active:!1}),this.scene.renderGraphForPath(s,!1),!1}return this.scene.renderGraphForPath(s,!0),!0}return!(this.scene.centralPagePath!==r.path||!r.isURL)||(this.scene.renderGraphForPath(s),!1)}, +//!!!!!!!!!!!!!!!!!!!!!!!!!! +//!!!!!!!!!!!!!!!!!!!!!!!!!! +this.EA.onViewUnloadHook=e=>{this.scene&&this.scene.leaf===e.leaf&&this.stop()}}onunload(){this.scene&&(this.scene.unloadScene(),this.scene=null)}setHierarchyLinkStylesExtended(){this.hierarchyLinkStylesExtended={},Object.entries(this.settings.hierarchyLinkStyles).forEach((e=>{const t=e[0].toLowerCase().replaceAll(" ","-");this.hierarchyLinkStylesExtended[e[0]]=e[1],e[0]!==t&&(this.hierarchyLinkStylesExtended[t]=e[1])}))}loadCustomNodeLabelFunction(){if(this.settings.nodeTitleScript)try{this.customNodeLabel=new Function("dvPage","defaultName","return "+this.settings.nodeTitleScript)}catch(e){c({fn:this.loadCustomNodeLabelFunction,message:"error processing custom node label script",where:"loadCustomNodeLabelFunction()",data:this.settings.nodeTitleScript,error:e}),new n.Notice("Could not load custom node label function. See Developer console for details"),this.customNodeLabel=null}else this.customNodeLabel=null}async loadSettings(){this.settings=Object.assign({},W,await this.loadData()),this.settings.hierarchy.exclusions||(this.settings.hierarchy.exclusions=R.exclusions),this.loadCustomNodeLabelFunction(),this.settings.baseLinkStyle={...k,...this.settings.baseLinkStyle},this.settings.baseNodeStyle={...B,...this.settings.baseNodeStyle},this.hierarchyLowerCase.hidden=[],this.settings.hierarchy.hidden||(this.settings.hierarchy.hidden=[""]),this.settings.hierarchy.hidden=this.settings.hierarchy.hidden.sort(((e,t)=>e.toLowerCase()this.hierarchyLowerCase.hidden.push(e.toLowerCase().replaceAll(" ","-"))));let e=[...this.hierarchyLowerCase.hidden];this.hierarchyLowerCase.parents=[],this.settings.hierarchy.parents=this.settings.hierarchy.parents.sort(((e,t)=>e.toLowerCase()this.hierarchyLowerCase.parents.push(e.toLowerCase().replaceAll(" ","-")))),e=[...e,...this.hierarchyLowerCase.parents],this.hierarchyLowerCase.children=[],this.settings.hierarchy.children=this.settings.hierarchy.children.filter((t=>!e.includes(t.toLowerCase().replaceAll(" ","-")))).sort(((e,t)=>e.toLowerCase()this.hierarchyLowerCase.children.push(e.toLowerCase().replaceAll(" ","-")))),e=[...e,...this.hierarchyLowerCase.children],this.hierarchyLowerCase.leftFriends=[],this.settings.hierarchy.leftFriends||(this.settings.hierarchy.leftFriends=this.settings.hierarchy.friends??R.leftFriends),this.settings.hierarchy.leftFriends=this.settings.hierarchy.leftFriends.filter((t=>!e.includes(t.toLowerCase().replaceAll(" ","-")))).sort(((e,t)=>e.toLowerCase()this.hierarchyLowerCase.leftFriends.push(e.toLowerCase().replaceAll(" ","-")))),e=[...e,...this.hierarchyLowerCase.leftFriends],this.hierarchyLowerCase.rightFriends=[],this.settings.hierarchy.rightFriends||(this.settings.hierarchy.rightFriends=R.rightFriends),this.settings.hierarchy.rightFriends=this.settings.hierarchy.rightFriends.filter((t=>!e.includes(t.toLowerCase().replaceAll(" ","-")))).sort(((e,t)=>e.toLowerCase()this.hierarchyLowerCase.rightFriends.push(e.toLowerCase().replaceAll(" ","-")))),e=[...e,...this.hierarchyLowerCase.rightFriends],this.hierarchyLowerCase.previous=[],this.settings.hierarchy.previous||(this.settings.hierarchy.previous=R.previous),this.settings.hierarchy.previous=this.settings.hierarchy.previous.filter((t=>!e.includes(t.toLowerCase().replaceAll(" ","-")))).sort(((e,t)=>e.toLowerCase()this.hierarchyLowerCase.previous.push(e.toLowerCase().replaceAll(" ","-")))),e=[...e,...this.hierarchyLowerCase.previous],this.hierarchyLowerCase.next=[],this.settings.hierarchy.next||(this.settings.hierarchy.next=R.next),this.settings.hierarchy.next=this.settings.hierarchy.next.filter((t=>!e.includes(t.toLowerCase().replaceAll(" ","-")))).sort(((e,t)=>e.toLowerCase()this.hierarchyLowerCase.next.push(e.toLowerCase().replaceAll(" ","-")))),e=[...e,...this.hierarchyLowerCase.next],this.settings.hierarchy.exclusions=this.settings.hierarchy.exclusions.filter((t=>!e.includes(t.toLowerCase().replaceAll(" ","-")))).sort(((e,t)=>e.toLowerCase()this.settings.baseLinkStyle},this.linkStyles.inferred={style:this.settings.inferredLinkStyle,allowOverride:!0,userStyle:!1,display:H("LINKSTYLE_INFERRED"),getInheritedStyle:()=>this.settings.baseLinkStyle},this.linkStyles["file-tree"]={style:this.settings.folderLinkStyle,allowOverride:!0,userStyle:!1,display:H("LINKSTYLE_FOLDER"),getInheritedStyle:()=>this.settings.baseLinkStyle},this.linkStyles["tag-tree"]={style:this.settings.tagLinkStyle,allowOverride:!0,userStyle:!1,display:H("LINKSTYLE_TAG"),getInheritedStyle:()=>this.settings.baseLinkStyle},Object.entries(this.settings.hierarchyLinkStyles).forEach((e=>{I.contains(e[0])||(this.linkStyles[e[0]]={style:e[1],allowOverride:!0,userStyle:!0,display:e[0],getInheritedStyle:()=>this.settings.baseLinkStyle})})),this.nodeStyles={},this.nodeStyles.base={style:this.settings.baseNodeStyle,allowOverride:!1,userStyle:!1,display:H("NODESTYLE_BASE"),getInheritedStyle:()=>this.settings.baseNodeStyle},this.nodeStyles.inferred={style:this.settings.inferredNodeStyle,allowOverride:!0,userStyle:!1,display:H("NODESTYLE_INFERRED"),getInheritedStyle:()=>this.settings.baseNodeStyle},this.nodeStyles.url={style:this.settings.urlNodeStyle,allowOverride:!0,userStyle:!1,display:H("NODESTYLE_URL"),getInheritedStyle:()=>this.settings.baseNodeStyle},this.nodeStyles.virtual={style:this.settings.virtualNodeStyle,allowOverride:!0,userStyle:!1,display:H("NODESTYLE_VIRTUAL"),getInheritedStyle:()=>this.settings.baseNodeStyle},this.nodeStyles.central={style:this.settings.centralNodeStyle,allowOverride:!0,userStyle:!1,display:H("NODESTYLE_CENTRAL"),getInheritedStyle:()=>this.settings.baseNodeStyle},this.nodeStyles.sibling={style:this.settings.siblingNodeStyle,allowOverride:!0,userStyle:!1,display:H("NODESTYLE_SIBLING"),getInheritedStyle:()=>this.settings.baseNodeStyle},this.nodeStyles.attachment={style:this.settings.attachmentNodeStyle,allowOverride:!0,userStyle:!1,display:H("NODESTYLE_ATTACHMENT"),getInheritedStyle:()=>this.settings.baseNodeStyle},this.nodeStyles.folder={style:this.settings.folderNodeStyle,allowOverride:!0,userStyle:!1,display:H("NODESTYLE_FOLDER"),getInheritedStyle:()=>this.settings.baseNodeStyle},this.nodeStyles.tag={style:this.settings.tagNodeStyle,allowOverride:!0,userStyle:!1,display:H("NODESTYLE_TAG"),getInheritedStyle:()=>this.settings.baseNodeStyle},Object.entries(this.settings.tagNodeStyles).sort(((e,t)=>e[0].toLowerCase(){this.nodeStyles[e[0]]={style:e[1],allowOverride:!0,userStyle:!0,display:e[0],getInheritedStyle:()=>this.settings.baseNodeStyle}}))}async saveSettings(){await this.saveData(this.settings)}stop(){this.scene&&!this.scene.terminated&&(this.scene.unloadScene(),this.scene=null)}async start(e){if(this.dailyNoteSettings=oa(this.app),!e.view)return;if(!(e.view instanceof n.TextFileView))return void new n.Notice("Wrong view type. Cannot start ExcaliBrain.");if(e.view.file.path!==this.settings.excalibrainFilepath)return void new n.Notice(`The brain file is not the one configured in settings!\nThe file in settings is ${this.settings.excalibrainFilepath}.\nThis file is ${e.view.file.path}.\nPlease start ExcaliBrain using the Command Palette action.`,5e3);let t=0;for(;!this.pluginLoaded&&t++<100;)await sleep(50);if(!this.pluginLoaded)return new n.Notice("ExcaliBrain plugin did not load - aborting start()"),void c({where:"ExcaliBrain.start()",fn:this.start,message:"ExcaliBrain did not load. Aborting after 5000ms of trying"});this.excalidrawAvailable()&&(this.stop(),e?(this.scene=new ia(this,!0,e),this.scene.initialize(this.focusSearchAfterInitiation),this.focusSearchAfterInitiation=!1):await ia.openExcalidrawLeaf(window.ExcalidrawAutomate,this.settings,this.getBrainLeaf()))}}module.exports=la; /* nosourcemap */ \ No newline at end of file diff --git a/.obsidian/plugins/excalibrain/manifest.json b/.obsidian/plugins/excalibrain/manifest.json index cb215108..154924ed 100644 --- a/.obsidian/plugins/excalibrain/manifest.json +++ b/.obsidian/plugins/excalibrain/manifest.json @@ -1,7 +1,7 @@ { "id": "excalibrain", "name": "ExcaliBrain", - "version": "0.2.16", + "version": "0.2.17", "minAppVersion": "1.1.6", "description": "A clean, intuitive and editable graph view for Obsidian", "author": "Zsolt Viczian", diff --git a/.obsidian/plugins/obsidian-excalidraw-plugin/data.json b/.obsidian/plugins/obsidian-excalidraw-plugin/data.json index 15ea8b36..e66bbd17 100644 --- a/.obsidian/plugins/obsidian-excalidraw-plugin/data.json +++ b/.obsidian/plugins/obsidian-excalidraw-plugin/data.json @@ -42,6 +42,7 @@ "isLeftHanded": false, "desktopUIMode": "tray", "tabletUIMode": "compact", + "phoneUIMode": "mobile", "iframeMatchExcalidrawTheme": true, "matchTheme": true, "matchThemeAlways": false, @@ -148,7 +149,7 @@ } } }, - "previousRelease": "2.20.2", + "previousRelease": "2.21.0", "showReleaseNotes": true, "compareManifestToPluginVersion": true, "showNewVersionNotification": true, diff --git a/.obsidian/plugins/obsidian-excalidraw-plugin/main.js b/.obsidian/plugins/obsidian-excalidraw-plugin/main.js index 39bc18d0..962a028e 100644 --- a/.obsidian/plugins/obsidian-excalidraw-plugin/main.js +++ b/.obsidian/plugins/obsidian-excalidraw-plugin/main.js @@ -1,10 +1,10 @@ "use strict";var obsidian_module=require("obsidian"),view=require("@codemirror/view"),commands=require("@codemirror/commands"),lr=require("@lezer/lr"),language=require("@codemirror/language"),state=require("@codemirror/state");;const INITIAL_TIMESTAMP=Date.now();var LZString=function(){var r=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",e={};function t(r,o){if(!e[r]){e[r]={};for(var n=0;n>>8,n[2*e+1]=s%256}return n},decompressFromUint8Array:function(o){if(null==o)return i.decompress(o);for(var n=new Array(o.length/2),e=0,t=n.length;e>=1}else{for(t=1,e=0;e>=1}0==--l&&(l=Math.pow(2,h),h++),delete u[c]}else for(t=s[c],e=0;e>=1;0==--l&&(l=Math.pow(2,h),h++),s[p]=f++,c=String(a)}if(""!==c){if(Object.prototype.hasOwnProperty.call(u,c)){if(c.charCodeAt(0)<256){for(e=0;e>=1}else{for(t=1,e=0;e>=1}0==--l&&(l=Math.pow(2,h),h++),delete u[c]}else for(t=s[c],e=0;e>=1;0==--l&&(l=Math.pow(2,h),h++)}for(t=2,e=0;e>=1;for(;;){if(m<<=1,v==o-1){d.push(n(m));break}v++}return d.join("")},decompress:function(r){return null==r?"":""==r?null:i._decompress(r.length,32768,function(o){return r.charCodeAt(o)})},_decompress:function(o,n,e){var t,i,s,u,a,p,c,l=[],f=4,h=4,d=3,m="",v=[],g={val:e(0),position:n,index:1};for(t=0;t<3;t+=1)l[t]=t;for(s=0,a=Math.pow(2,2),p=1;p!=a;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=e(g.index++)),s|=(u>0?1:0)*p,p<<=1;switch(s){case 0:for(s=0,a=Math.pow(2,8),p=1;p!=a;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=e(g.index++)),s|=(u>0?1:0)*p,p<<=1;c=r(s);break;case 1:for(s=0,a=Math.pow(2,16),p=1;p!=a;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=e(g.index++)),s|=(u>0?1:0)*p,p<<=1;c=r(s);break;case 2:return""}for(l[3]=c,i=c,v.push(c);;){if(g.index>o)return"";for(s=0,a=Math.pow(2,d),p=1;p!=a;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=e(g.index++)),s|=(u>0?1:0)*p,p<<=1;switch(c=s){case 0:for(s=0,a=Math.pow(2,8),p=1;p!=a;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=e(g.index++)),s|=(u>0?1:0)*p,p<<=1;l[h++]=r(s),c=h-1,f--;break;case 1:for(s=0,a=Math.pow(2,16),p=1;p!=a;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=n,g.val=e(g.index++)),s|=(u>0?1:0)*p,p<<=1;l[h++]=r(s),c=h-1,f--;break;case 2:return v.join("")}if(0==f&&(f=Math.pow(2,d),d++),l[c])m=l[c];else{if(c!==h)return null;m=i+i.charAt(0)}v.push(m),l[h++]=i+m.charAt(0),i=m,0==--f&&(f=Math.pow(2,d),d++)}}};return i}();"function"==typeof define&&define.amd?define(function(){return LZString}):"undefined"!=typeof module&&null!=module?module.exports=LZString:"undefined"!=typeof angular&&null!=angular&&angular.module("LZString",[]).factory("LZString",function(){return LZString}); let REACT_PACKAGES = `!function(){var e,t;e=this,t=function(e){function M(e){return null!==e&&"object"==typeof e&&"function"==typeof(e=te&&e[te]||e["@@iterator"])?e:null}function t(e,t,n){this.props=e,this.context=t,this.refs=oe,this.updater=n||ne}function n(){}function r(e,t,n){this.props=e,this.context=t,this.refs=oe,this.updater=n||ne}function o(e,t,n){var r,o={},u=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(u=""+t.key),t)ae.call(t,r)&&!ie.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(1===i)o.children=n;else if(1>>1,o=e[r];if(!(0>>1;rt)||e&&!q());){var r,o=R.callback;"function"==typeof o?(R.callback=null,P=R.priorityLevel,r=o(R.expirationTime<=t),t=v(),"function"==typeof r?R.callback=r:R===i(C)&&l(C),y(t)):l(C),R=i(C)}var u,a=null!==R||(null!==(u=i(E))&&_(d,u.startTime-t),!1);return a}finally{R=null,P=n,$=!1}}function q(){return!(v()-de")?l.replace("",n.displayName):l}while(1<=u&&0<=i);break}}}finally{xo=!1,Error.prepareStackTrace=t}return(n=n?n.displayName||n.name:"")?Q(n):""}function $(e){switch(e.tag){case 5:return Q(e.type);case 16:return Q("Lazy");case 13:return Q("Suspense");case 19:return Q("SuspenseList");case 0:case 2:case 15:return e=j(e.type,!1);case 11:return e=j(e.type.render,!1);case 1:return e=j(e.type,!0);default:return""}}function q(e){if(null!=e){if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case co:return"Fragment";case so:return"Portal";case po:return"Profiler";case fo:return"StrictMode";case yo:return"Suspense";case vo:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ho:return(e.displayName||"Context")+".Consumer";case mo:return(e._context.displayName||"Context")+".Provider";case go:var n=e.render;return e=(e=e.displayName)?e:""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef";case bo:return null!==(n=e.displayName||null)?n:q(e.type)||"Memo";case ko:n=e._payload,e=e._init;try{return q(e(n))}catch(e){}}}return null}function K(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=n.render).displayName||e.name||"",n.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(n);case 8:return n===fo?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof n)return n.displayName||n.name||null;if("string"==typeof n)return n}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function X(e){var n=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===n||"radio"===n)}function G(e){var n,t,r=X(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),a=""+e[r];if(!e.hasOwnProperty(r)&&void 0!==l&&"function"==typeof l.get&&"function"==typeof l.set)return n=l.get,t=l.set,Object.defineProperty(e,r,{configurable:!0,get:function(){return n.call(this)},set:function(e){a=""+e,t.call(this,e)}}),Object.defineProperty(e,r,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(e){a=""+e},stopTracking:function(){e._valueTracker=null,delete e[r]}}}function Z(e){e._valueTracker||(e._valueTracker=G(e))}function J(e){var n,t,r;return!(!e||(n=e._valueTracker)&&(t=n.getValue(),r="",(e=r=e?X(e)?e.checked?"true":"false":e.value:r)===t||(n.setValue(e),0)))}function ee(n){if(void 0===(n=n||("undefined"!=typeof document?document:void 0)))return null;try{return n.activeElement||n.body}catch(e){return n.body}}function ne(e,n){var t=n.checked;return g({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=t?t:e._wrapperState.initialChecked})}function te(e,n){var t=null==n.defaultValue?"":n.defaultValue,r=null!=n.checked?n.checked:n.defaultChecked,t=Y(null!=n.value?n.value:t);e._wrapperState={initialChecked:r,initialValue:t,controlled:"checkbox"===n.type||"radio"===n.type?null!=n.checked:null!=n.value}}function re(e,n){null!=(n=n.checked)&&B(e,"checked",n,!1)}function le(e,n){re(e,n);var t=Y(n.value),r=n.type;if(null!=t)"number"===r?(0===t&&""===e.value||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");n.hasOwnProperty("value")?oe(e,n.type,t):n.hasOwnProperty("defaultValue")&&oe(e,n.type,Y(n.defaultValue)),null==n.checked&&null!=n.defaultChecked&&(e.defaultChecked=!!n.defaultChecked)}function ae(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(("submit"===r||"reset"===r)&&null==n.value)return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}""!==(t=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==t&&(e.name=t)}function oe(e,n,t){"number"===n&&ee(e.ownerDocument)===e||(null==t?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}function ue(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l>>=0)?32:31-(iu(e)/su|0)|0}function Re(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function De(e,n){var t=e.pendingLanes;if(0===t)return 0;var r,l=0,a=e.suspendedLanes,o=e.pingedLanes,u=268435455&t;if(0!==u?0!==(r=u&~a)?l=Re(r):0!==(o&=u)&&(l=Re(o)):0!==(u=t&~a)?l=Re(u):0!==o&&(l=Re(o)),0===l)return 0;if(0!==n&&n!==l&&0==(n&a)&&((o=n&-n)<=(a=l&-l)||16===a&&0!=(4194240&o)))return n;if(0!=(4&l)&&(l|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=l;0>=r,a-=r,Xi=1<<32-uu(n)+a|t<u?(i=o,o=null):i=o.sibling;var s=y(n,o,t[u],r);if(null===s){null===o&&(o=i);break}f&&o&&null===s.alternate&&d(n,o),e=h(s,e,u),null===a?l=s:a.sibling=s,a=s,o=i}if(u===t.length)p(n,o);else if(null===o)for(;uu?(i=o,o=null):i=o.sibling;var c=y(n,o,s.value,r);if(null===c){null===o&&(o=i);break}f&&o&&null===c.alternate&&d(n,o),e=h(c,e,u),null===a?l=c:a.sibling=c,a=c,o=i}if(s.done)p(n,o);else if(null===o)for(;!s.done;u++,s=t.next())null!==(s=g(n,s.value,r))&&(e=h(s,e,u),null===a?l=s:a.sibling=s,a=s);else{for(o=m(n,o);!s.done;u++,s=t.next())null!==(s=v(o,n,u,s.value,r))&&(f&&null!==s.alternate&&o.delete(null===s.key?u:s.key),e=h(s,e,u),null===a?l=s:a.sibling=s,a=s);f&&o.forEach(function(e){return d(n,e)})}return E&&vt(n,u),l}function w(e,n,t,r){if("object"==typeof(t="object"==typeof t&&null!==t&&t.type===co&&null===t.key?t.props.children:t)&&null!==t){switch(t.$$typeof){case io:e:{for(var l=t.key,a=n;null!==a;){if(a.key===l){if((l=t.type)===co){if(7===a.tag){p(e,a.sibling),(n=o(a,t.props.children)).return=e,e=n;break e}}else if(a.elementType===l||"object"==typeof l&&null!==l&&l.$$typeof===ko&&Mt(l)===a.type){p(e,a.sibling),(n=o(a,t.props)).ref=Lt(e,a,t),n.return=e,e=n;break e}p(e,a);break}d(e,a),a=a.sibling}e=t.type===co?((n=za(t.props.children,e.mode,r,t.key)).return=e,n):((r=Na(t.type,t.key,t.props,null,e.mode,r)).ref=Lt(e,n,t),r.return=e,r)}return u(e);case so:e:{for(a=t.key;null!==n;){if(n.key===a){if(4===n.tag&&n.stateNode.containerInfo===t.containerInfo&&n.stateNode.implementation===t.implementation){p(e,n.sibling),(n=o(n,t.children||[])).return=e,e=n;break e}p(e,n);break}d(e,n),n=n.sibling}(n=La(t,e.mode,r)).return=e,e=n}return u(e);case ko:return w(e,n,(a=t._init)(t._payload),r)}if(Eo(t))return b(e,n,t,r);if(H(t))return k(e,n,t,r);Tt(e,t)}return"string"==typeof t&&""!==t||"number"==typeof t?(t=""+t,(n=null!==n&&6===n.tag?(p(e,n.sibling),o(n,t)):(p(e,n),_a(t,e.mode,r))).return=e,u(e=n)):p(e,n)}return w}function Rt(){os=as=ls=null}function Dt(e,n){n=rs.current,s(rs),e._currentValue=n}function Ot(e,n,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,null!==r&&(r.childLanes|=n)):null!==r&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function It(e,n){(os=as=null)!==(e=(ls=e).dependencies)&&null!==e.firstContext&&(0!=(e.lanes&n)&&(_=!0),e.firstContext=null)}function Ut(e){var n=e._currentValue;if(os!==e)if(e={context:e,memoizedValue:n,next:null},null===as){if(null===ls)throw Error(S(308));as=e,ls.dependencies={lanes:0,firstContext:e}}else as=as.next=e;return n}function Vt(e){null===us?us=[e]:us.push(e)}function At(e,n,t,r){var l=n.interleaved;return null===l?(t.next=t,Vt(n)):(t.next=l.next,l.next=t),n.interleaved=t,Wt(e,r)}function Wt(e,n){e.lanes|=n;var t=e.alternate;for(null!==t&&(t.lanes|=n),e=(t=e).return;null!==e;)e.childLanes|=n,null!==(t=e.alternate)&&(t.childLanes|=n),e=(t=e).return;return 3===t.tag?t.stateNode:null}function Bt(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ht(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Qt(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function jt(e,n,t){var r,l=e.updateQueue;return null===l?null:(l=l.shared,(0!=(2&F)?(null===(r=l.pending)?n.next=n:(n.next=r.next,r.next=n),l.pending=n,is):(null===(r=l.interleaved)?(n.next=n,Vt(l)):(n.next=r.next,r.next=n),l.interleaved=n,Wt))(e,t))}function $t(e,n,t){var r;null!==(n=n.updateQueue)&&(n=n.shared,0!=(4194240&t))&&(r=n.lanes,r&=e.pendingLanes,He(e,n.lanes=t|=r))}function qt(e,n){var t=e.updateQueue,r=e.alternate;if(null!==r&&t===(r=r.updateQueue)){var l=null,a=null;if(null!==(t=t.firstBaseUpdate)){do{var o={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null}}while(null===a?l=a=o:a=a.next=o,null!==(t=t.next));null===a?l=a=n:a=a.next=n}else l=a=n;t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=t}else null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function Kt(e,n,t,r){var l,a,o=e.updateQueue,u=(ss=!1,o.firstBaseUpdate),i=o.lastBaseUpdate;if(null!==(f=o.shared.pending)&&(o.shared.pending=null,a=(l=f).next,(l.next=null)===i?u=a:i.next=a,i=l,null!==(c=e.alternate))&&(f=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===f?c.firstBaseUpdate=a:f.next=a,c.lastBaseUpdate=l),null!==u){for(var s=o.baseState,i=0,c=a=l=null,f=u;;){var d=f.lane,p=f.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:f.tag,payload:f.payload,callback:f.callback,next:null});e:{var m=e,h=f,d=n,p=t;switch(h.tag){case 1:if("function"==typeof(m=h.payload)){s=m.call(p,s,d);break e}s=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(d="function"==typeof(m=h.payload)?m.call(p,s,d):m))break e;s=g({},s,d);break e;case 2:ss=!0}}null!==f.callback&&0!==f.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[f]:d.push(f))}else p={eventTime:p,lane:d,tag:f.tag,payload:f.payload,callback:f.callback,next:null},null===c?(a=c=p,l=s):c=c.next=p,i|=d;if(null===(f=f.next)){if(null===(f=o.shared.pending))break;f=(d=f).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(l=s),o.baseState=l,o.firstBaseUpdate=a,o.lastBaseUpdate=c,null!==(n=o.shared.interleaved))for(o=n;i|=o.lane,(o=o.next)!==n;);else null===u&&(o.shared.lanes=0);Qs|=i,e.lanes=i,e.memoizedState=s}}function Yt(e,n,t){if(e=n.effects,(n.effects=null)!==e)for(n=0;n<\\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=o.createElement(t,{is:r.is}):(e=o.createElement(t),"select"===t&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,t),e[Li]=n,e[Ti]=r,Ls(e,n,!1,!1),n.stateNode=e;e:{switch(o=ye(t,r),t){case"dialog":c("cancel",e),c("close",e),a=r;break;case"iframe":case"object":case"embed":c("load",e),a=r;break;case"video":case"audio":for(a=0;aYs&&(n.flags|=128,wl(i,!(r=!0)),n.lanes=4194304)}else{if(!r)if(null!==(e=nr(o))){if(n.flags|=128,r=!0,null!==(t=e.updateQueue)&&(n.updateQueue=t,n.flags|=4),wl(i,!0),null===i.tail&&"hidden"===i.tailMode&&!o.alternate&&!E)return p(n),null}else 2*y()-i.renderingStartTime>Ys&&1073741824!==t&&(n.flags|=128,wl(i,!(r=!0)),n.lanes=4194304);i.isBackwards?(o.sibling=n.child,n.child=o):(null!==(t=i.last)?t.sibling=o:n.child=o,i.last=o)}if(null!==i.tail)return n=i.tail,i.rendering=n,i.tail=n.sibling,i.renderingStartTime=y(),n.sibling=null,t=C.current,f(C,r?1&t|2:1&t),n}return p(n),null;case 22:case 23:return O=Bs.current,s(Bs),r=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==r&&(n.flags|=8192),r&&0!=(1&n.mode)?0!=(1073741824&O)&&(p(n),6&n.subtreeFlags)&&(n.flags|=8192):p(n),null;case 24:case 25:return null}throw Error(S(156,n.tag))}function xl(e,n,t){switch(wt(n),n.tag){case 1:return h(n.type)&&(s(b),s(v)),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return Zt(),s(b),s(v),tr(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 5:return er(n),null;case 13:if(s(C),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(S(340));Pt()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return s(C),null;case 4:return Zt(),null;case 10:return Dt(n.type._context),null;case 22:case 23:return O=Bs.current,s(Bs),null;default:return null}}function El(n,t){var e=n.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){w(n,t,e)}else e.current=null}function Cl(n,t,e){try{e()}catch(e){w(n,t,e)}}function Nl(e,n){if(Ei=Su,Dn(e=Rn())){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:if((a=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection())&&0!==a.rangeCount){var t=a.anchorNode,r=a.anchorOffset,l=a.focusNode,a=a.focusOffset;try{t.nodeType,l.nodeType}catch(e){t=null;break e}var o,u=0,i=-1,s=-1,c=0,f=0,d=e,p=null;n:for(;;){for(;d!==t||0!==r&&3!==d.nodeType||(i=u+r),d!==l||0!==a&&3!==d.nodeType||(s=u+a),3===d.nodeType&&(u+=d.nodeValue.length),null!==(o=d.firstChild);)p=d,d=o;for(;;){if(d===e)break n;if(p===t&&++c===r&&(i=u),p===l&&++f===a&&(s=u),null!==(o=d.nextSibling))break;p=(d=p).parentNode}d=o}t=-1===i||-1===s?null:{start:i,end:s}}else t=null;t=t||{start:0,end:0}}else t=null;for(Su=!(Ci={focusedElem:e,selectionRange:t}),T=n;null!==T;)if(e=(n=T).child,0!=(1028&n.subtreeFlags)&&null!==e)e.return=n,T=e;else for(;null!==T;){n=T;try{var m,h,g,y,v=n.alternate;if(0!=(1024&n.flags))switch(n.tag){case 0:case 11:case 15:break;case 1:null!==v&&(m=v.memoizedProps,h=v.memoizedState,y=(g=n.stateNode).getSnapshotBeforeUpdate(n.elementType===n.type?m:Ar(n.type,m),h),g.__reactInternalSnapshotBeforeUpdate=y);break;case 3:var b=n.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(e){w(n,n.return,e)}if(null!==(e=n.sibling)){e.return=n.return,T=e;break}T=n.return}return v=Os,Os=!1,v}function zl(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l,a=r=r.next;do{}while((a.tag&e)===e&&(l=a.destroy,(a.destroy=void 0)!==l)&&Cl(n,t,l),(a=a.next)!==r)}}function Pl(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t,r=n=n.next;do{}while((r.tag&e)===e&&(t=r.create,r.destroy=t()),(r=r.next)!==n)}}function _l(e){var n,t=e.ref;null!==t&&(n=e.stateNode,e.tag,e=n,"function"==typeof t?t(e):t.current=e)}function Ll(e){var n=e.alternate;null!==n&&(e.alternate=null,Ll(n)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(n=e.stateNode)&&(delete n[Li],delete n[Ti],delete n[Fi],delete n[Ri],delete n[Di]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Tl(e){return 5===e.tag||3===e.tag||4===e.tag}function Ml(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Tl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e=(e.child.return=e).child}if(!(2&e.flags))return e.stateNode}}function Fl(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?(8===t.nodeType?t.parentNode:t).insertBefore(e,n):(8===t.nodeType?(n=t.parentNode).insertBefore(e,t):(n=t).appendChild(e),null==(t=t._reactRootContainer)&&null===n.onclick&&(n.onclick=Jn));else if(4!==r&&null!==(e=e.child))for(Fl(e,n,t),e=e.sibling;null!==e;)Fl(e,n,t),e=e.sibling}function Rl(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Rl(e,n,t),e=e.sibling;null!==e;)Rl(e,n,t),e=e.sibling}function Dl(e,n,t){for(t=t.child;null!==t;)Ol(e,n,t),t=t.sibling}function Ol(e,n,t){if(ou&&"function"==typeof ou.onCommitFiberUnmount)try{ou.onCommitFiberUnmount(au,t)}catch(e){}switch(t.tag){case 5:L||El(t,n);case 6:var r=M,l=Is;M=null,Dl(e,n,t),Is=l,null!==(M=r)&&(Is?(e=M,t=t.stateNode,(8===e.nodeType?e.parentNode:e).removeChild(t)):M.removeChild(t.stateNode));break;case 18:null!==M&&(Is?(e=M,t=t.stateNode,8===e.nodeType?tt(e.parentNode,t):1===e.nodeType&&tt(e,t),Je(e)):tt(M,t.stateNode));break;case 4:r=M,l=Is,M=t.stateNode.containerInfo,Is=!0,Dl(e,n,t),M=r,Is=l;break;case 0:case 11:case 14:case 15:if(!L&&null!==(r=t.updateQueue)&&null!==(r=r.lastEffect)){l=r=r.next;do{var a=(o=l).destroy,o=o.tag}while(void 0===a||0==(2&o)&&0==(4&o)||Cl(t,n,a),(l=l.next)!==r)}Dl(e,n,t);break;case 1:if(!L&&(El(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(e){w(t,n,e)}Dl(e,n,t);break;case 21:Dl(e,n,t);break;case 22:1&t.mode?(L=(r=L)||null!==t.memoizedState,Dl(e,n,t),L=r):Dl(e,n,t);break;default:Dl(e,n,t)}}function Il(t){var r,e=t.updateQueue;null!==e&&((t.updateQueue=null)===(r=t.stateNode)&&(r=t.stateNode=new Ds),e.forEach(function(e){var n=ka.bind(null,t,e);r.has(e)||(r.add(e),e.then(n,n))}))}function Ul(e,n,t){if(null!==(t=n.deletions))for(var r=0;r