diff --git a/.obsidian/app.json b/.obsidian/app.json index 41abe5ba..3f741a57 100644 --- a/.obsidian/app.json +++ b/.obsidian/app.json @@ -12,14 +12,11 @@ "margin": "0", "downscalePercent": 100 }, - "userIgnoreFilters": [ - "node_modules/", - "src/" - ], + "userIgnoreFilters": ["node_modules/", "src/"], "showInlineTitle": false, "propertiesInDocument": "visible", "vimMode": false, "promptDelete": false, "strictLineBreaks": true, "trashOption": "none" -} \ No newline at end of file +} diff --git a/.obsidian/community-plugins.json b/.obsidian/community-plugins.json index 0e753e25..3099cc70 100644 --- a/.obsidian/community-plugins.json +++ b/.obsidian/community-plugins.json @@ -4,4 +4,4 @@ "obsidian-front-matter-title-plugin", "obsidian-excalidraw-plugin", "emoji-shortcodes" -] \ No newline at end of file +] diff --git a/.obsidian/core-plugins-migration.json b/.obsidian/core-plugins-migration.json index 0f1396ca..afd10a7b 100644 --- a/.obsidian/core-plugins-migration.json +++ b/.obsidian/core-plugins-migration.json @@ -28,4 +28,4 @@ "canvas": true, "bookmarks": true, "properties": false -} \ No newline at end of file +} diff --git a/.obsidian/core-plugins.json b/.obsidian/core-plugins.json index 966fedf4..4df5aaa4 100644 --- a/.obsidian/core-plugins.json +++ b/.obsidian/core-plugins.json @@ -31,4 +31,4 @@ "webviewer": false, "footnotes": false, "bases": true -} \ No newline at end of file +} diff --git a/.obsidian/hotkeys.json b/.obsidian/hotkeys.json index 02e9f878..7b7acd4f 100644 --- a/.obsidian/hotkeys.json +++ b/.obsidian/hotkeys.json @@ -1,11 +1,8 @@ { "file-explorer:reveal-active-file": [ { - "modifiers": [ - "Mod", - "Shift" - ], + "modifiers": ["Mod", "Shift"], "key": "R" } ] -} \ No newline at end of file +} diff --git a/.obsidian/plugins/emoji-shortcodes/data.json b/.obsidian/plugins/emoji-shortcodes/data.json index a269558f..17b5b845 100644 --- a/.obsidian/plugins/emoji-shortcodes/data.json +++ b/.obsidian/plugins/emoji-shortcodes/data.json @@ -10,4 +10,4 @@ ":smile:", ":green_square:" ] -} \ No newline at end of file +} diff --git a/.obsidian/plugins/emoji-shortcodes/main.js b/.obsidian/plugins/emoji-shortcodes/main.js index 79f0417a..ec77b7a3 100644 --- a/.obsidian/plugins/emoji-shortcodes/main.js +++ b/.obsidian/plugins/emoji-shortcodes/main.js @@ -3,33 +3,55 @@ THIS IS A GENERATED/BUNDLED FILE BY ROLLUP if you want to view the source visit the plugins github repository */ -'use strict'; +"use strict"; -var obsidian = require('obsidian'); +var obsidian = require("obsidian"); -/****************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -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. -***************************************************************************** */ - -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()); - }); +/****************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +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. +***************************************************************************** */ + +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()); + }); } // Generated from: https://api.github.com/emojis @@ -1892,180 +1914,218 @@ const emoji = JSON.parse(`{ }`); class EmojiMarkdownPostProcessor { - static emojiReplace(shortcode, el) { - var _a; - if ((typeof el.tagName === "string") && (el.tagName.indexOf("CODE") !== -1 || el.tagName.indexOf("MJX") !== -1)) { - return false; - } - if (el.hasChildNodes()) { - el.childNodes.forEach((child) => this.emojiReplace(shortcode, child)); - } - else { - el.textContent = el.textContent.replace(shortcode, (_a = emoji[shortcode]) !== null && _a !== void 0 ? _a : shortcode); - } + static emojiReplace(shortcode, el) { + var _a; + if ( + typeof el.tagName === "string" && + (el.tagName.indexOf("CODE") !== -1 || el.tagName.indexOf("MJX") !== -1) + ) { + return false; } + if (el.hasChildNodes()) { + el.childNodes.forEach((child) => this.emojiReplace(shortcode, child)); + } else { + el.textContent = el.textContent.replace( + shortcode, + (_a = emoji[shortcode]) !== null && _a !== void 0 ? _a : shortcode, + ); + } + } } EmojiMarkdownPostProcessor.emojiProcessor = (el) => { - var _a; - (_a = el.innerText.match(/[:][^\s:][^ \n:]*[:]/g)) === null || _a === void 0 ? void 0 : _a.forEach((e) => EmojiMarkdownPostProcessor.emojiReplace(e, el)); + var _a; + (_a = el.innerText.match(/[:][^\s:][^ \n:]*[:]/g)) === null || _a === void 0 + ? void 0 + : _a.forEach((e) => EmojiMarkdownPostProcessor.emojiReplace(e, el)); }; const DEFAULT_SETTINGS = { - immediateReplace: true, - suggester: true, - historyPriority: true, - historyLimit: 100, - history: [], + immediateReplace: true, + suggester: true, + historyPriority: true, + historyLimit: 100, + history: [], }; class EmojiPluginSettingTab extends obsidian.PluginSettingTab { - constructor(app, plugin) { - super(app, plugin); - this.plugin = plugin; - } - display() { - let { containerEl } = this; - containerEl.empty(); - containerEl.createEl('h2', { text: 'Emoji Shortcodes Plugin' }); - new obsidian.Setting(containerEl) - .setName('Immediate Emoji Replace') - .setDesc('If this is turned on, Emoji shortcodes will be immediately replaced after typing. Otherwise they are still stored as a shortcode and you only see the Emoji in Preview Mode.') - .addToggle(cb => { - cb.setValue(this.plugin.settings.immediateReplace) - .onChange((value) => __awaiter(this, void 0, void 0, function* () { - this.plugin.settings.immediateReplace = value; + constructor(app, plugin) { + super(app, plugin); + this.plugin = plugin; + } + display() { + let { containerEl } = this; + containerEl.empty(); + containerEl.createEl("h2", { text: "Emoji Shortcodes Plugin" }); + new obsidian.Setting(containerEl) + .setName("Immediate Emoji Replace") + .setDesc( + "If this is turned on, Emoji shortcodes will be immediately replaced after typing. Otherwise they are still stored as a shortcode and you only see the Emoji in Preview Mode.", + ) + .addToggle((cb) => { + cb.setValue(this.plugin.settings.immediateReplace).onChange((value) => + __awaiter(this, void 0, void 0, function* () { + this.plugin.settings.immediateReplace = value; + yield this.plugin.saveSettings(); + }), + ); + }); + new obsidian.Setting(containerEl) + .setName("Emoji Suggester") + .setDesc( + "If this is turned on, a Suggester will appear everytime you type : followed by a letter. This will help you insert Emojis. (Doesn't work on mobile)", + ) + .addToggle((cb) => { + cb.setValue(this.plugin.settings.suggester).onChange((value) => + __awaiter(this, void 0, void 0, function* () { + this.plugin.settings.suggester = value; + yield this.plugin.saveSettings(); + }), + ); + }); + new obsidian.Setting(containerEl) + .setName("Use History Priority") + .setDesc("Suggester gives priority to recently used emoji.") + .addToggle((cb) => { + cb.setValue(this.plugin.settings.historyPriority).onChange((value) => + __awaiter(this, void 0, void 0, function* () { + this.plugin.settings.historyPriority = value; + yield this.plugin.saveSettings(); + this.display(); + }), + ); + }); + if (this.plugin.settings.historyPriority) { + new obsidian.Setting(containerEl) + .setName("History Limit") + .setClass("ES-sub-setting") + .addText((cb) => { + cb.setPlaceholder(String(DEFAULT_SETTINGS.historyLimit)) + .setValue(String(this.plugin.settings.historyLimit)) + .onChange((value) => + __awaiter(this, void 0, void 0, function* () { + this.plugin.settings.historyLimit = + value !== "" ? Number(value) : DEFAULT_SETTINGS.historyLimit; yield this.plugin.saveSettings(); - })); + }), + ); }); - new obsidian.Setting(containerEl) - .setName('Emoji Suggester') - .setDesc('If this is turned on, a Suggester will appear everytime you type : followed by a letter. This will help you insert Emojis. (Doesn\'t work on mobile)') - .addToggle(cb => { - cb.setValue(this.plugin.settings.suggester) - .onChange((value) => __awaiter(this, void 0, void 0, function* () { - this.plugin.settings.suggester = value; - yield this.plugin.saveSettings(); - })); - }); - new obsidian.Setting(containerEl) - .setName('Use History Priority') - .setDesc('Suggester gives priority to recently used emoji.') - .addToggle(cb => { - cb.setValue(this.plugin.settings.historyPriority) - .onChange((value) => __awaiter(this, void 0, void 0, function* () { - this.plugin.settings.historyPriority = value; - yield this.plugin.saveSettings(); - this.display(); - })); - }); - if (this.plugin.settings.historyPriority) { - new obsidian.Setting(containerEl) - .setName('History Limit') - .setClass('ES-sub-setting') - .addText(cb => { - cb.setPlaceholder(String(DEFAULT_SETTINGS.historyLimit)) - .setValue(String(this.plugin.settings.historyLimit)) - .onChange((value) => __awaiter(this, void 0, void 0, function* () { - this.plugin.settings.historyLimit = value !== '' ? Number(value) : DEFAULT_SETTINGS.historyLimit; - yield this.plugin.saveSettings(); - })); - }); - new obsidian.Setting(containerEl) - .setName('Clear History') - .setClass('ES-sub-setting') - .addButton(cb => { - cb.setButtonText("Clear") - .onClick(() => __awaiter(this, void 0, void 0, function* () { - this.plugin.settings.history = []; - yield this.plugin.saveSettings(); - })); - }); - } - new obsidian.Setting(containerEl) - .setName('Donate') - .setDesc('If you like this Plugin, consider donating to support continued development:') - .addButton((bt) => { - bt.buttonEl.outerHTML = ``; + new obsidian.Setting(containerEl) + .setName("Clear History") + .setClass("ES-sub-setting") + .addButton((cb) => { + cb.setButtonText("Clear").onClick(() => + __awaiter(this, void 0, void 0, function* () { + this.plugin.settings.history = []; + yield this.plugin.saveSettings(); + }), + ); }); } + new obsidian.Setting(containerEl) + .setName("Donate") + .setDesc( + "If you like this Plugin, consider donating to support continued development:", + ) + .addButton((bt) => { + bt.buttonEl.outerHTML = ``; + }); + } } class EmojiShortcodesPlugin extends obsidian.Plugin { - onload() { - return __awaiter(this, void 0, void 0, function* () { - yield this.loadSettings(); - this.addSettingTab(new EmojiPluginSettingTab(this.app, this)); - this.registerEditorSuggest(new EmojiSuggester(this)); - this.registerMarkdownPostProcessor(EmojiMarkdownPostProcessor.emojiProcessor); - //this.registerMarkdownPostProcessor(DefinitionListPostProcessor.definitionListProcessor); - }); - } - loadSettings() { - return __awaiter(this, void 0, void 0, function* () { - this.settings = Object.assign({}, DEFAULT_SETTINGS, yield this.loadData()); - this.updateEmojiList(); - }); - } - saveSettings() { - return __awaiter(this, void 0, void 0, function* () { - yield this.saveData(this.settings); - this.updateEmojiList(); - }); - } - updateEmojiList() { - const set = new Set(this.settings.history); - this.emojiList = [...this.settings.history, ...Object.keys(emoji).filter(e => !set.has(e))]; - } - updateHistory(suggestion) { - if (!this.settings.historyPriority) - return; - const set = new Set([suggestion, ...this.settings.history]); - const history = [...set].slice(0, this.settings.historyLimit); - this.settings = Object.assign(this.settings, { history }); - this.saveSettings(); - } + onload() { + return __awaiter(this, void 0, void 0, function* () { + yield this.loadSettings(); + this.addSettingTab(new EmojiPluginSettingTab(this.app, this)); + this.registerEditorSuggest(new EmojiSuggester(this)); + this.registerMarkdownPostProcessor( + EmojiMarkdownPostProcessor.emojiProcessor, + ); + //this.registerMarkdownPostProcessor(DefinitionListPostProcessor.definitionListProcessor); + }); + } + loadSettings() { + return __awaiter(this, void 0, void 0, function* () { + this.settings = Object.assign( + {}, + DEFAULT_SETTINGS, + yield this.loadData(), + ); + this.updateEmojiList(); + }); + } + saveSettings() { + return __awaiter(this, void 0, void 0, function* () { + yield this.saveData(this.settings); + this.updateEmojiList(); + }); + } + updateEmojiList() { + const set = new Set(this.settings.history); + this.emojiList = [ + ...this.settings.history, + ...Object.keys(emoji).filter((e) => !set.has(e)), + ]; + } + updateHistory(suggestion) { + if (!this.settings.historyPriority) return; + const set = new Set([suggestion, ...this.settings.history]); + const history = [...set].slice(0, this.settings.historyLimit); + this.settings = Object.assign(this.settings, { history }); + this.saveSettings(); + } } class EmojiSuggester extends obsidian.EditorSuggest { - constructor(plugin) { - super(plugin.app); - this.plugin = plugin; + constructor(plugin) { + super(plugin.app); + this.plugin = plugin; + } + onTrigger(cursor, editor, _) { + var _a; + if (this.plugin.settings.suggester) { + const sub = editor.getLine(cursor.line).substring(0, cursor.ch); + const match = + (_a = sub.match(/:\S+$/)) === null || _a === void 0 + ? void 0 + : _a.first(); + if (match) { + return { + end: cursor, + start: { + ch: sub.lastIndexOf(match), + line: cursor.line, + }, + query: match, + }; + } } - onTrigger(cursor, editor, _) { - var _a; - if (this.plugin.settings.suggester) { - const sub = editor.getLine(cursor.line).substring(0, cursor.ch); - const match = (_a = sub.match(/:\S+$/)) === null || _a === void 0 ? void 0 : _a.first(); - if (match) { - return { - end: cursor, - start: { - ch: sub.lastIndexOf(match), - line: cursor.line, - }, - query: match, - }; - } - } - return null; - } - getSuggestions(context) { - let emoji_query = context.query.replace(':', '').toLowerCase(); - return this.plugin.emojiList.filter(p => p.includes(emoji_query)); - } - renderSuggestion(suggestion, el) { - const outer = el.createDiv({ cls: "ES-suggester-container" }); - outer.createDiv({ cls: "ES-shortcode" }).setText(suggestion.replace(/:/g, "")); - //@ts-expect-error - outer.createDiv({ cls: "ES-emoji" }).setText(emoji[suggestion]); - } - selectSuggestion(suggestion) { - if (this.context) { - this.context.editor.replaceRange(this.plugin.settings.immediateReplace ? emoji[suggestion] : `${suggestion} `, this.context.start, this.context.end); - this.plugin.updateHistory(suggestion); - } + return null; + } + getSuggestions(context) { + let emoji_query = context.query.replace(":", "").toLowerCase(); + return this.plugin.emojiList.filter((p) => p.includes(emoji_query)); + } + renderSuggestion(suggestion, el) { + const outer = el.createDiv({ cls: "ES-suggester-container" }); + outer + .createDiv({ cls: "ES-shortcode" }) + .setText(suggestion.replace(/:/g, "")); + //@ts-expect-error + outer.createDiv({ cls: "ES-emoji" }).setText(emoji[suggestion]); + } + selectSuggestion(suggestion) { + if (this.context) { + this.context.editor.replaceRange( + this.plugin.settings.immediateReplace + ? emoji[suggestion] + : `${suggestion} `, + this.context.start, + this.context.end, + ); + this.plugin.updateHistory(suggestion); } + } } module.exports = EmojiShortcodesPlugin; - -/* nosourcemap */ \ No newline at end of file +/* nosourcemap */ diff --git a/.obsidian/plugins/emoji-shortcodes/manifest.json b/.obsidian/plugins/emoji-shortcodes/manifest.json index 432f6235..140114da 100644 --- a/.obsidian/plugins/emoji-shortcodes/manifest.json +++ b/.obsidian/plugins/emoji-shortcodes/manifest.json @@ -1,11 +1,11 @@ -{ - "id": "emoji-shortcodes", - "name": "Emoji Shortcodes", - "version": "2.2.0", - "minAppVersion": "1.0.0", - "description": "This Plugin enables the use of Markdown Emoji Shortcodes :smile:", - "author": "phibr0", - "authorUrl": "https://github.com/phibr0", - "isDesktopOnly": false, - "fundingUrl": "https://ko-fi.com/phibr0" -} +{ + "id": "emoji-shortcodes", + "name": "Emoji Shortcodes", + "version": "2.2.0", + "minAppVersion": "1.0.0", + "description": "This Plugin enables the use of Markdown Emoji Shortcodes :smile:", + "author": "phibr0", + "authorUrl": "https://github.com/phibr0", + "isDesktopOnly": false, + "fundingUrl": "https://ko-fi.com/phibr0" +} diff --git a/.obsidian/plugins/obsidian-excalidraw-plugin/data.json b/.obsidian/plugins/obsidian-excalidraw-plugin/data.json index a4082108..bf1f6126 100644 --- a/.obsidian/plugins/obsidian-excalidraw-plugin/data.json +++ b/.obsidian/plugins/obsidian-excalidraw-plugin/data.json @@ -768,21 +768,15 @@ "rank": "Bronze", "modifierKeyOverrides": [ { - "modifiers": [ - "Mod" - ], + "modifiers": ["Mod"], "key": "Enter" }, { - "modifiers": [ - "Mod" - ], + "modifiers": ["Mod"], "key": "k" }, { - "modifiers": [ - "Mod" - ], + "modifiers": ["Mod"], "key": "G" } ], @@ -796,4 +790,4 @@ "alignment": "center", "margin": "normal" } -} \ No newline at end of file +} diff --git a/.obsidian/plugins/obsidian-excalidraw-plugin/main.js b/.obsidian/plugins/obsidian-excalidraw-plugin/main.js index 80a6c552..9fce9b28 100644 --- a/.obsidian/plugins/obsidian-excalidraw-plugin/main.js +++ b/.obsidian/plugins/obsidian-excalidraw-plugin/main.js @@ -1,10 +1,54093 @@ -"use strict";var obsidian_module=require("obsidian"),state=require("@codemirror/state"),view=require("@codemirror/view");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}); +"use strict"; +var obsidian_module = require("obsidian"), + state = require("@codemirror/state"), + view = require("@codemirror/view"); +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 < r.length; n++) e[r][r.charAt(n)] = n; + } + return e[r][o]; + } + var i = { + compressToBase64: function (r) { + if (null == r) return ""; + var n = i._compress(r, 6, function (r) { + return o.charAt(r); + }); + switch (n.length % 4) { + default: + case 0: + return n; + case 1: + return n + "==="; + case 2: + return n + "=="; + case 3: + return n + "="; + } + }, + decompressFromBase64: function (r) { + return null == r + ? "" + : "" == r + ? null + : i._decompress(r.length, 32, function (n) { + return t(o, r.charAt(n)); + }); + }, + compressToUTF16: function (o) { + return null == o + ? "" + : i._compress(o, 15, function (o) { + return r(o + 32); + }) + " "; + }, + decompressFromUTF16: function (r) { + return null == r + ? "" + : "" == r + ? null + : i._decompress(r.length, 16384, function (o) { + return r.charCodeAt(o) - 32; + }); + }, + compressToUint8Array: function (r) { + for ( + var o = i.compress(r), + n = new Uint8Array(2 * o.length), + e = 0, + t = o.length; + e < t; + e++ + ) { + var s = o.charCodeAt(e); + ((n[2 * e] = s >>> 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 < t; e++) + n[e] = 256 * o[2 * e] + o[2 * e + 1]; + var s = []; + return ( + n.forEach(function (o) { + s.push(r(o)); + }), + i.decompress(s.join("")) + ); + }, + compressToEncodedURIComponent: function (r) { + return null == r + ? "" + : i._compress(r, 6, function (r) { + return n.charAt(r); + }); + }, + decompressFromEncodedURIComponent: function (r) { + return null == r + ? "" + : "" == r + ? null + : ((r = r.replace(/ /g, "+")), + i._decompress(r.length, 32, function (o) { + return t(n, r.charAt(o)); + })); + }, + compress: function (o) { + return i._compress(o, 16, function (o) { + return r(o); + }); + }, + _compress: function (r, o, n) { + if (null == r) return ""; + var e, + t, + i, + s = {}, + u = {}, + a = "", + p = "", + c = "", + l = 2, + f = 3, + h = 2, + d = [], + m = 0, + v = 0; + for (i = 0; i < r.length; i += 1) + if ( + ((a = r.charAt(i)), + Object.prototype.hasOwnProperty.call(s, a) || + ((s[a] = f++), (u[a] = !0)), + (p = c + a), + Object.prototype.hasOwnProperty.call(s, p)) + ) + c = p; + else { + if (Object.prototype.hasOwnProperty.call(u, c)) { + if (c.charCodeAt(0) < 256) { + for (e = 0; e < h; e++) + ((m <<= 1), + v == o - 1 ? ((v = 0), d.push(n(m)), (m = 0)) : v++); + for (t = c.charCodeAt(0), e = 0; e < 8; e++) + ((m = (m << 1) | (1 & t)), + v == o - 1 ? ((v = 0), d.push(n(m)), (m = 0)) : v++, + (t >>= 1)); + } else { + for (t = 1, e = 0; e < h; e++) + ((m = (m << 1) | t), + v == o - 1 ? ((v = 0), d.push(n(m)), (m = 0)) : v++, + (t = 0)); + for (t = c.charCodeAt(0), e = 0; e < 16; e++) + ((m = (m << 1) | (1 & t)), + v == o - 1 ? ((v = 0), d.push(n(m)), (m = 0)) : v++, + (t >>= 1)); + } + (0 == --l && ((l = Math.pow(2, h)), h++), delete u[c]); + } else + for (t = s[c], e = 0; e < h; e++) + ((m = (m << 1) | (1 & t)), + v == o - 1 ? ((v = 0), d.push(n(m)), (m = 0)) : v++, + (t >>= 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 < h; e++) + ((m <<= 1), v == o - 1 ? ((v = 0), d.push(n(m)), (m = 0)) : v++); + for (t = c.charCodeAt(0), e = 0; e < 8; e++) + ((m = (m << 1) | (1 & t)), + v == o - 1 ? ((v = 0), d.push(n(m)), (m = 0)) : v++, + (t >>= 1)); + } else { + for (t = 1, e = 0; e < h; e++) + ((m = (m << 1) | t), + v == o - 1 ? ((v = 0), d.push(n(m)), (m = 0)) : v++, + (t = 0)); + for (t = c.charCodeAt(0), e = 0; e < 16; e++) + ((m = (m << 1) | (1 & t)), + v == o - 1 ? ((v = 0), d.push(n(m)), (m = 0)) : v++, + (t >>= 1)); + } + (0 == --l && ((l = Math.pow(2, h)), h++), delete u[c]); + } else + for (t = s[c], e = 0; e < h; e++) + ((m = (m << 1) | (1 & t)), + v == o - 1 ? ((v = 0), d.push(n(m)), (m = 0)) : v++, + (t >>= 1)); + 0 == --l && ((l = Math.pow(2, h)), h++); + } + for (t = 2, e = 0; e < h; e++) + ((m = (m << 1) | (1 & t)), + v == o - 1 ? ((v = 0), d.push(n(m)), (m = 0)) : v++, + (t >>= 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=ee&&e[ee]||e["@@iterator"])?e:null}function t(e,t,n){this.props=e,this.context=t,this.refs=re,this.updater=n||te}function n(){}function r(e,t,n){this.props=e,this.context=t,this.refs=re,this.updater=n||te}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)ue.call(t,r)&&!ae.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()-ye")?l.replace("",n.displayName):l}while(1<=u&&0<=i);break}}}finally{Eo=!1,Error.prepareStackTrace=t}return(n=n?n.displayName||n.name:"")?j(n):""}function q(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return e=$(e.type,!1);case 11:return e=$(e.type.render,!1);case 1:return e=$(e.type,!0);default:return""}}function K(e){if(null!=e){if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case fo:return"Fragment";case co:return"Portal";case mo:return"Profiler";case po:return"StrictMode";case vo:return"Suspense";case bo:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case go:return(e.displayName||"Context")+".Consumer";case ho:return(e._context.displayName||"Context")+".Provider";case yo:var n=e.render;return e=(e=e.displayName)?e:""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef";case ko:return null!==(n=e.displayName||null)?n:K(e.type)||"Memo";case wo:n=e._payload,e=e._init;try{return K(e(n))}catch(e){}}}return null}function Y(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 K(n);case 8:return n===po?"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 X(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var n=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===n||"radio"===n)}function Z(e){var n,t,r=G(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 J(e){e._valueTracker||(e._valueTracker=Z(e))}function ee(e){var n,t,r;return!(!e||(n=e._valueTracker)&&(t=n.getValue(),r="",(e=r=e?G(e)?e.checked?"true":"false":e.value:r)===t||(n.setValue(e),0)))}function ne(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 te(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 re(e,n){var t=null==n.defaultValue?"":n.defaultValue,r=null!=n.checked?n.checked:n.defaultChecked,t=X(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 le(e,n){null!=(n=n.checked)&&H(e,"checked",n,!1)}function ae(e,n){le(e,n);var t=X(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")?ue(e,n.type,t):n.hasOwnProperty("defaultValue")&&ue(e,n.type,X(n.defaultValue)),null==n.checked&&null!=n.defaultChecked&&(e.defaultChecked=!!n.defaultChecked)}function oe(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 ue(e,n,t){"number"===n&&ne(e.ownerDocument)===e||(null==t?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}function ie(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l>>=0)?32:31-(su(e)/cu|0)|0}function De(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 Oe(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=De(r):0!==(o&=u)&&(l=De(o)):0!==(u=t&~a)?l=De(u):0!==o&&(l=De(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,Gi=1<<32-iu(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&&bt(n,u),l}function w(e,n,t,r){if("object"==typeof(t="object"==typeof t&&null!==t&&t.type===fo&&null===t.key?t.props.children:t)&&null!==t){switch(t.$$typeof){case so:e:{for(var l=t.key,a=n;null!==a;){if(a.key===l){if((l=t.type)===fo){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===wo&&nr(l)===a.type){p(e,a.sibling),(n=o(a,t.props)).ref=Jt(e,a,t),n.return=e,e=n;break e}p(e,a);break}d(e,a),a=a.sibling}e=t.type===fo?((n=Pa(t.props.children,e.mode,r,t.key)).return=e,n):((r=za(t.type,t.key,t.props,null,e.mode,r)).ref=Jt(e,n,t),r.return=e,r)}return u(e);case co: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=Ta(t,e.mode,r)).return=e,e=n}return u(e);case wo:return w(e,n,(a=t._init)(t._payload),r)}if(Co(t))return b(e,n,t,r);if(Q(t))return k(e,n,t,r);er(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),La(t,e.mode,r))).return=e,u(e=n)):p(e,n)}return w}function rr(e){if(e===ps)throw Error(S(174));return e}function lr(e,n){switch(f(gs,n),f(hs,e),f(ms,ps),e=n.nodeType){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:me(null,"");break;default:n=me(n=(e=8===e?n.parentNode:n).namespaceURI||null,e=e.tagName)}s(ms),f(ms,n)}function ar(e){s(ms),s(hs),s(gs)}function or(e){rr(gs.current);var n=rr(ms.current),t=me(n,e.type);n!==t&&(f(hs,e),f(ms,t))}function ur(e){hs.current===e&&(s(ms),s(hs))}function ir(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||"$?"===t.data||"$!"===t.data))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n=(n.child.return=n).child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function sr(){for(var e=0;e<\\/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[Ti]=n,e[Mi]=r,Ms(e,n,!1,!1),n.stateNode=e;e:{switch(o=ve(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;aGs&&(n.flags|=128,Sl(i,!(r=!0)),n.lanes=4194304)}else{if(!r)if(null!==(e=ir(o))){if(n.flags|=128,r=!0,null!==(t=e.updateQueue)&&(n.updateQueue=t,n.flags|=4),Sl(i,!0),null===i.tail&&"hidden"===i.tailMode&&!o.alternate&&!E)return p(n),null}else 2*y()-i.renderingStartTime>Gs&&1073741824!==t&&(n.flags|=128,Sl(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=Qs.current,s(Qs),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 El(e,n,t){switch(St(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 ar(),s(b),s(v),sr(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 5:return ur(n),null;case 13:if(s(C),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(S(340));_t()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return s(C),null;case 4:return ar(),null;case 10:return Ft(n.type._context),null;case 22:case 23:return O=Qs.current,s(Qs),null;default:return null}}function Cl(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 Nl(n,t,e){try{e()}catch(e){w(n,t,e)}}function zl(e,n){if(Ci=xu,On(e=Dn())){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(xu=!(Ni={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:Tt(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=Us,Us=!1,v}function Pl(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)&&Nl(n,t,l),(a=a.next)!==r)}}function _l(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 Ll(e){var n,t=e.ref;null!==t&&(n=e.stateNode,e.tag,e=n,"function"==typeof t?t(e):t.current=e)}function Tl(e){var n=e.alternate;null!==n&&(e.alternate=null,Tl(n)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(n=e.stateNode)&&(delete n[Ti],delete n[Mi],delete n[Ri],delete n[Di],delete n[Oi]),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 Ml(e){return 5===e.tag||3===e.tag||4===e.tag}function Fl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Ml(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 Rl(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=et));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){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(Dl(e,n,t),e=e.sibling;null!==e;)Dl(e,n,t),e=e.sibling}function Ol(e,n,t){for(t=t.child;null!==t;)Il(e,n,t),t=t.sibling}function Il(e,n,t){if(uu&&"function"==typeof uu.onCommitFiberUnmount)try{uu.onCommitFiberUnmount(ou,t)}catch(e){}switch(t.tag){case 5:L||Cl(t,n);case 6:var r=M,l=Vs;M=null,Ol(e,n,t),Vs=l,null!==(M=r)&&(Vs?(e=M,t=t.stateNode,(8===e.nodeType?e.parentNode:e).removeChild(t)):M.removeChild(t.stateNode));break;case 18:null!==M&&(Vs?(e=M,t=t.stateNode,8===e.nodeType?rt(e.parentNode,t):1===e.nodeType&&rt(e,t),en(e)):rt(M,t.stateNode));break;case 4:r=M,l=Vs,M=t.stateNode.containerInfo,Vs=!0,Ol(e,n,t),M=r,Vs=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)||Nl(t,n,a),(l=l.next)!==r)}Ol(e,n,t);break;case 1:if(!L&&(Cl(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)}Ol(e,n,t);break;case 21:Ol(e,n,t);break;case 22:1&t.mode?(L=(r=L)||null!==t.memoizedState,Ol(e,n,t),L=r):Ol(e,n,t);break;default:Ol(e,n,t)}}function Ul(t){var r,e=t.updateQueue;null!==e&&((t.updateQueue=null)===(r=t.stateNode)&&(r=t.stateNode=new Is),e.forEach(function(e){var n=wa.bind(null,t,e);r.has(e)||(r.add(e),e.then(n,n))}))}function Vl(e,n,t){if(null!==(t=n.deletions))for(var r=0;r