diff --git a/src/Field.php b/src/Field.php index e8766d99..815249b2 100644 --- a/src/Field.php +++ b/src/Field.php @@ -41,6 +41,7 @@ use craft\events\CancelableEvent; use craft\events\DuplicateNestedElementsEvent; use craft\helpers\ArrayHelper; +use craft\helpers\Assets as AssetsHelper; use craft\helpers\Cp; use craft\helpers\Db; use craft\helpers\ElementHelper; @@ -417,6 +418,18 @@ private static function adjustFieldValues( */ public string|array|null $availableVolumes = '*'; + /** + * @var string|null The default volume used to upload images into field via drag & drop mechanism + * @since 4.12.0 + */ + public string|null $defaultUploadLocationVolume = null; + + /** + * @var string|null The default subpath used to upload images into field via drag & drop mechanism + * @since 4.12.0 + */ + public string|null $defaultUploadLocationSubpath = null; + /** * @var string|array|null The transforms available when selecting an image. * @since 1.2.0 @@ -1082,6 +1095,7 @@ private function _inputHtml(mixed $value, ?ElementInterface $element, bool $stat ], 'assetSources' => $this->_assetSources(), 'assetSelectionCriteria' => $this->_assetSelectionCriteria(), + 'assetUploadParams' => $this->_assetUploadParams(), 'linkOptions' => $this->_linkOptions($element), 'advancedLinkFields' => $this->_advancedLinkFields($ckeConfig), 'table' => [ @@ -1834,9 +1848,40 @@ private function _assetSelectionCriteria(): array if ($this->showUnpermittedFiles) { $criteria['uploaderId'] = null; } + return $criteria; } + /** + * Returns the asset drag & drop upload parameters. + * + * @return array + */ + private function _assetUploadParams(): array + { + $params = []; + + $params['siteId'] = Craft::$app->getSites()->getCurrentSite()->id; + $params['kind'] = 'image'; + + $volume = Craft::$app->getVolumes()->getVolumeByUid($this->defaultUploadLocationVolume); + if ($volume) { + $subpath = trim($this->defaultUploadLocationSubpath ?? '', '/'); + [$subpath, $folder] = AssetsHelper::resolveSubpath($volume, $subpath); + + // Ensure that the folder exists + if (!$folder) { + $folder = Craft::$app->getAssets()->ensureFolderByFullPathAndVolume($subpath, $volume); + } + + $params['volumeId'] = $volume->id; + $params['volumeType'] = $volume::class; + $params['folderId'] = $folder->id; + } + + return $params; + } + /** * Returns custom element sources keys for given element type. * diff --git a/src/templates/_field-settings.twig b/src/templates/_field-settings.twig index 838aeae4..5c500efe 100644 --- a/src/templates/_field-settings.twig +++ b/src/templates/_field-settings.twig @@ -107,6 +107,35 @@ showAllOption: volumeOptions|length ? true : false }) }} + {% embed '_includes/forms/field.twig' with { + id: 'default-upload-location', + label: 'Default Upload Location'|t('app'), + instructions: 'Where images should be stored when they are uploaded directly to the field via drag & drop mechanism.'|t('ckeditor'), + } %} + {% block input %} + {% import '_includes/forms.twig' as forms %} +
+
+ {{ forms.select({ + id: "default-upload-location-volume", + name: "defaultUploadLocationVolume", + options: volumeOptions, + value: field.defaultUploadLocationVolume, + }) }} +
+
+ {{ forms.text({ + class: 'ltr', + id: "default-upload-location-subpath", + name: "defaultUploadLocationSubpath", + value: field.defaultUploadLocationSubpath, + placeholder: "path/to/subfolder"|t('app'), + }) }} +
+
+ {% endblock %} + {% endembed %} + {{ forms.checkboxSelectField({ id: 'availableTransforms', name: 'availableTransforms', @@ -188,3 +217,12 @@ }) }} {% endif %} + +{% js %} + new Craft.AssetsFieldSettings( + null, + {{ 'availableVolumes'|namespaceInputId|json_encode|raw }}, + {{ 'default-upload-location-volume'|namespaceInputId|json_encode|raw }}, + null, + ); +{% endjs %} \ No newline at end of file diff --git a/src/translations/en/ckeditor.php b/src/translations/en/ckeditor.php index 35be027f..87c7b74c 100644 --- a/src/translations/en/ckeditor.php +++ b/src/translations/en/ckeditor.php @@ -51,6 +51,7 @@ 'This field doesn’t allow nested {type} entries.' => 'This field doesn’t allow nested {type} entries.', 'Toolbar' => 'Toolbar', 'View available settings' => 'View available settings', + 'Where images should be stored when they are uploaded directly to the field via drag & drop mechanism.' => 'Where images should be stored when they are uploaded directly to the field via drag & drop mechanism.', 'Whether entry types with icons should be shown as separate buttons in the toolbar.' => 'Whether entry types with icons should be shown as separate buttons in the toolbar.', 'Who should see the “Source” button?' => 'Who should see the “Source” button?', 'Words' => 'Words', diff --git a/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js b/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js index 28804617..f2e480d2 100644 --- a/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js +++ b/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js @@ -1,4 +1,4 @@ -import { ImageInsertUI as Vc, ButtonView as vi, IconImage as Wc, Command as Os, Plugin as Bn, ImageUtils as Jl, Collection as yi, ViewModel as Sa, createDropdown as Ca, DropdownButtonView as Hc, IconObjectSizeMedium as $c, addListToDropdown as Ta, Widget as Yc, viewToModelPositionOutsideModelElement as qc, toWidget as Kc, DomEventObserver as Qc, View as $o, IconPlus as ec, WidgetToolbarRepository as Gl, isWidget as Gc, findAttributeRange as Xc, LinkUI as Xl, ContextualBalloon as Zc, Range as Jc, SwitchButtonView as eu, LabeledFieldView as tu, createLabeledInputText as nu, ClassicEditor as ru, SourceEditing as tc, Heading as ou } from "ckeditor5"; +import { ImageInsertUI as Vc, ButtonView as vi, IconImage as Wc, Command as Os, Plugin as Bn, ImageUtils as Jl, Collection as yi, ViewModel as Sa, createDropdown as Ca, DropdownButtonView as Hc, IconObjectSizeMedium as $c, addListToDropdown as Ta, Widget as qc, viewToModelPositionOutsideModelElement as Yc, toWidget as Kc, DomEventObserver as Qc, View as $o, IconPlus as ec, WidgetToolbarRepository as Gl, isWidget as Gc, findAttributeRange as Xc, LinkUI as Xl, ContextualBalloon as Zc, Range as Jc, SwitchButtonView as eu, LabeledFieldView as tu, createLabeledInputText as nu, ClassicEditor as ru, SourceEditing as tc, Heading as ou } from "ckeditor5"; /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. @@ -8,6 +8,9 @@ class Pu extends Vc { static get pluginName() { return "CraftImageInsertUI"; } + constructor() { + super(...arguments), this.$container = null, this.progressBar = null, this.$fileInput = null, this.uploader = null; + } init() { if (!this._assetSources) { console.warn( @@ -15,20 +18,20 @@ class Pu extends Vc { ); return; } - const R = this.editor.ui.componentFactory, g = (i) => this._createToolbarImageButton(i); - R.add("insertImage", g), R.add("imageInsert", g); + const R = this.editor.ui.componentFactory, p = (i) => this._createToolbarImageButton(i); + R.add("insertImage", p), R.add("imageInsert", p), this._attachUploader(); } get _assetSources() { return this.editor.config.get("assetSources"); } _createToolbarImageButton(R) { - const g = this.editor, i = g.t, u = new vi(R); + const p = this.editor, i = p.t, u = new vi(R); u.isEnabled = !0, u.label = i("Insert image"), u.icon = Wc, u.tooltip = !0; - const c = g.commands.get("insertImage"); + const c = p.commands.get("insertImage"); return u.bind("isEnabled").to(c), this.listenTo(u, "execute", () => this._showImageSelectModal()), u; } _showImageSelectModal() { - const R = this._assetSources, g = this.editor, i = g.config, u = Object.assign({}, i.get("assetSelectionCriteria"), { + const R = this._assetSources, p = this.editor, i = p.config, u = Object.assign({}, i.get("assetSelectionCriteria"), { kind: "image" }); Craft.createElementSelectorModal("craft\\elements\\Asset", { @@ -39,40 +42,40 @@ class Pu extends Vc { transforms: i.get("transforms"), multiSelect: !0, autoFocusSearchBox: !1, - onSelect: (c, o) => { - this._processAssetUrls(c, o).then(() => { - g.editing.view.focus(); + onSelect: (c, r) => { + this._processAssetUrls(c, r).then(() => { + p.editing.view.focus(); }); }, onHide: () => { - g.editing.view.focus(); + p.editing.view.focus(); }, closeOtherModals: !1 }); } - _processAssetUrls(R, g) { + _processAssetUrls(R, p) { return new Promise((i) => { if (!R.length) { i(); return; } - const u = this.editor, c = u.config.get("defaultTransform"), o = new Craft.Queue(), _ = []; - o.on("afterRun", () => { + const u = this.editor, c = u.config.get("defaultTransform"), r = new Craft.Queue(), _ = []; + r.on("afterRun", () => { u.execute("insertImage", { source: _ }), i(); }); - for (const m of R) - o.push( + for (const g of R) + r.push( () => new Promise((b) => { - const v = this._isTransformUrl(m.url); + const v = this._isTransformUrl(g.url); if (!v && c) - this._getTransformUrl(m.id, c, (y) => { + this._getTransformUrl(g.id, c, (y) => { _.push(y), b(); }); else { const y = this._buildAssetUrl( - m.id, - m.url, - v ? g : c + g.id, + g.url, + v ? p : c ); _.push(y), b(); } @@ -80,8 +83,8 @@ class Pu extends Vc { ); }); } - _buildAssetUrl(R, g, i) { - return `${g}#asset:${R}:${i ? "transform:" + i : "url"}`; + _buildAssetUrl(R, p, i) { + return `${p}#asset:${R}:${i ? "transform:" + i : "url"}`; } _removeTransformFromUrl(R) { return R.replace(/(^|\/)(_[^\/]+\/)([^\/]+)$/, "$1$3"); @@ -89,28 +92,107 @@ class Pu extends Vc { _isTransformUrl(R) { return /(^|\/)_[^\/]+\/[^\/]+$/.test(R); } - _getTransformUrl(R, g, i) { + _getTransformUrl(R, p, i) { Craft.sendActionRequest("POST", "ckeditor/ckeditor/image-url", { data: { assetId: R, - transform: g + transform: p } }).then(({ data: u }) => { - i(this._buildAssetUrl(R, u.url, g)); + i(this._buildAssetUrl(R, u.url, p)); }).catch(() => { alert("There was an error generating the transform URL."); }); } _getAssetUrlComponents(R) { - const g = R.match( + const p = R.match( /(.*)#asset:(\d+):(url|transform):?([a-zA-Z][a-zA-Z0-9_]*)?/ ); - return g ? { - url: g[1], - assetId: g[2], - transform: g[3] !== "url" ? g[4] : null + return p ? { + url: p[1], + assetId: p[2], + transform: p[3] !== "url" ? p[4] : null } : null; } + /** + * Attach the uploader with drag event handler + */ + _attachUploader() { + let R = this.editor.config.get("assetUploadParams") ?? null; + if (!(!R || !R.folderId)) { + this.$container = $(this.editor.sourceElement).parents(".input"), this.progressBar = new Craft.ProgressBar( + $('
').appendTo(this.$container) + ), this.$fileInput = $("", { + type: "file", + class: "hidden", + multiple: !1 + }).insertAfter(this.editor.sourceElement); + var p = { + dropZone: this.$container, + fileInput: this.$fileInput + }; + R.kind && (p.allowedKinds = R.kind), p.canAddMoreFiles = !0, p.events = {}, p.events.fileuploadstart = this._onUploadStart.bind(this), p.events.fileuploadprogressall = this._onUploadProgress.bind(this), p.events.fileuploaddone = this._onUploadComplete.bind(this), p.events.fileuploadfail = this._onUploadFailure.bind(this), this.uploader = Craft.createUploader( + R.volumeType, + this.$container, + p + ), delete R.volumeId, delete R.volumeType, this.uploader.setParams(R); + } + } + /** + * On upload start. + */ + _onUploadStart() { + this.progressBar.$progressBar.css({ + top: Math.round(this.$container.outerHeight() / 2) - 6 + }), this.$container.addClass("uploading"), this.progressBar.resetProgressBar(), this.progressBar.showProgressBar(); + } + /** + * On upload progress. + */ + _onUploadProgress(R, p = null) { + p = R instanceof CustomEvent ? R.detail : p; + var i = parseInt(Math.min(p.loaded / p.total, 1) * 100, 10); + this.progressBar.setProgressPercentage(i); + } + /** + * On a file being uploaded. + */ + _onUploadComplete(R, p = null) { + const i = R instanceof CustomEvent ? R.detail : p.result; + this.progressBar.hideProgressBar(), this.$container.removeClass("uploading"); + const u = this.editor.config.get("defaultTransform"), c = new Craft.Queue(), r = []; + c.on("afterRun", () => { + this.editor.execute("insertImage", { source: r }); + }), c.push( + () => new Promise((_) => { + const g = this._isTransformUrl(i.url); + if (!g && u) + this._getTransformUrl(i.assetId, u, (b) => { + r.push(b), _(); + }); + else { + const b = this._buildAssetUrl( + i.assetId, + i.url, + g ? transform : u + ); + r.push(b), _(); + } + }) + ); + } + /** + * On Upload Failure. + */ + _onUploadFailure(R, p = null) { + var g, b; + const i = R instanceof CustomEvent ? R.detail : (g = p == null ? void 0 : p.jqXHR) == null ? void 0 : g.responseJSON; + let { message: u, filename: c, errors: r } = i || {}; + c = c || ((b = p == null ? void 0 : p.files) == null ? void 0 : b[0].name); + let _ = r ? Object.values(r).flat() : []; + u || (_.length ? u = _.join(` +`) : c ? u = Craft.t("app", "Upload failed for “{filename}”.", { filename: c }) : u = Craft.t("app", "Upload failed.")), Craft.cp.displayError(u), this.progressBar.hideProgressBar(), this.$container.removeClass("uploading"); + } } /** * @link https://craftcms.com/ @@ -119,9 +201,9 @@ class Pu extends Vc { */ class iu extends Os { refresh() { - const R = this._element(), g = this._srcInfo(R); - this.isEnabled = !!g, g ? this.value = { - transform: g.transform + const R = this._element(), p = this._srcInfo(R); + this.isEnabled = !!p, p ? this.value = { + transform: p.transform } : this.value = null; } _element() { @@ -133,11 +215,11 @@ class iu extends Os { _srcInfo(R) { if (!R || !R.hasAttribute("src")) return null; - const g = R.getAttribute("src"), i = g.match( + const p = R.getAttribute("src"), i = p.match( /#asset:(\d+)(?::transform:([a-zA-Z][a-zA-Z0-9_]*))?/ ); return i ? { - src: g, + src: p, assetId: i[1], transform: i[2] } : null; @@ -162,19 +244,19 @@ class iu extends Os { if (this.value = { transform: R.transform }, c) { - const o = `#asset:${c.assetId}` + (R.transform ? `:transform:${R.transform}` : ""); + const r = `#asset:${c.assetId}` + (R.transform ? `:transform:${R.transform}` : ""); i.change((_) => { - const m = c.src.replace(/#.*/, "") + o; - _.setAttribute("src", m, u); + const g = c.src.replace(/#.*/, "") + r; + _.setAttribute("src", g, u); }), Craft.sendActionRequest("post", "ckeditor/ckeditor/image-url", { data: { assetId: c.assetId, transform: R.transform } }).then(({ data: _ }) => { - i.change((m) => { - const b = _.url + o; - m.setAttribute("src", b, u), _.width && m.setAttribute("width", _.width, u), _.height && m.setAttribute("height", _.height, u); + i.change((g) => { + const b = _.url + r; + g.setAttribute("src", b, u), _.width && g.setAttribute("width", _.width, u), _.height && g.setAttribute("height", _.height, u); }); }); } @@ -196,8 +278,8 @@ class nc extends Bn { super(R), R.config.define("transforms", []); } init() { - const R = this.editor, g = new iu(R); - R.commands.add("transformImage", g); + const R = this.editor, p = new iu(R); + R.commands.add("transformImage", p); } } /** @@ -214,8 +296,8 @@ class su extends Bn { return "ImageTransformUI"; } init() { - const R = this.editor, g = R.config.get("transforms"), i = R.commands.get("transformImage"); - this.bind("isEnabled").to(i), this._registerImageTransformDropdown(g); + const R = this.editor, p = R.config.get("transforms"), i = R.commands.get("transformImage"); + this.bind("isEnabled").to(i), this._registerImageTransformDropdown(p); } /** * A helper function that creates a dropdown component for the plugin containing all the transform options defined in @@ -224,7 +306,7 @@ class su extends Bn { * @param transforms An array of the available image transforms. */ _registerImageTransformDropdown(R) { - const g = this.editor, i = g.t, u = { + const p = this.editor, i = p.t, u = { name: "transformImage:original", value: null }, c = [ @@ -234,8 +316,8 @@ class su extends Bn { name: `transformImage:${_.handle}`, value: _.handle })) - ], o = (_) => { - const m = g.commands.get("transformImage"), b = Ca(_, Hc), v = b.buttonView; + ], r = (_) => { + const g = p.commands.get("transformImage"), b = Ca(_, Hc), v = b.buttonView; return v.set({ tooltip: i("Resize image"), commandValue: null, @@ -244,7 +326,7 @@ class su extends Bn { label: this._getOptionLabelValue(u), withText: !0, class: "ck-resize-image-button" - }), v.bind("label").to(m, "value", (y) => { + }), v.bind("label").to(g, "value", (y) => { if (!y || !y.transform) return this._getOptionLabelValue(u); const C = R.find( @@ -253,17 +335,17 @@ class su extends Bn { return C ? C.name : y.transform; }), b.bind("isEnabled").to(this), Ta( b, - () => this._getTransformDropdownListItemDefinitions(c, m), + () => this._getTransformDropdownListItemDefinitions(c, g), { ariaLabel: i("Image resize list") } ), this.listenTo(b, "execute", (y) => { - g.execute(y.source.commandName, { + p.execute(y.source.commandName, { transform: y.source.commandValue - }), g.editing.view.focus(); + }), p.editing.view.focus(); }), b; }; - g.ui.componentFactory.add("transformImage", o); + p.ui.componentFactory.add("transformImage", r); } /** * A helper function for creating an option label value string. @@ -281,7 +363,7 @@ class su extends Bn { * @param command The transform image command. * @returns Dropdown item definitions. */ - _getTransformDropdownListItemDefinitions(R, g) { + _getTransformDropdownListItemDefinitions(R, p) { const i = new yi(); return R.map((u) => { const c = { @@ -294,14 +376,14 @@ class su extends Bn { icon: null }) }; - c.model.bind("isOn").to(g, "value", lu(u.value)), i.add(c); + c.model.bind("isOn").to(p, "value", lu(u.value)), i.add(c); }), i; } } function lu(xe) { return (R) => { - const g = R; - return xe === null && g === xe ? !0 : g !== null && g.transform === xe; + const p = R; + return xe === null && p === xe ? !0 : p !== null && p.transform === xe; }; } /** @@ -324,10 +406,10 @@ class Nu extends Bn { */ class cu extends Os { refresh() { - const R = this._element(), g = this._srcInfo(R); - if (this.isEnabled = !!g, this.isEnabled) { + const R = this._element(), p = this._srcInfo(R); + if (this.isEnabled = !!p, this.isEnabled) { let i = { - assetId: g.assetId + assetId: p.assetId }; Craft.sendActionRequest("POST", "ckeditor/ckeditor/image-permissions", { data: i @@ -356,11 +438,11 @@ class cu extends Os { _srcInfo(R) { if (!R || !R.hasAttribute("src")) return null; - const g = R.getAttribute("src"), i = g.match( + const p = R.getAttribute("src"), i = p.match( /(.*)#asset:(\d+)(?::transform:([a-zA-Z][a-zA-Z0-9_]*))?/ ); return i ? { - src: g, + src: p, baseSrc: i[1], assetId: i[2], transform: i[3] @@ -373,7 +455,7 @@ class cu extends Os { */ execute() { this.editor.model; - const g = this._element(), i = this._srcInfo(g); + const p = this._element(), i = this._srcInfo(p); if (i) { let u = { allowSavingAsNew: !1, @@ -391,27 +473,27 @@ class cu extends Os { * * @param data */ - _reloadImage(R, g) { + _reloadImage(R, p) { let u = this.editor.model; - this._getAllImageAssets().forEach((o) => { - if (o.srcInfo.assetId == R) - if (o.srcInfo.transform) { + this._getAllImageAssets().forEach((r) => { + if (r.srcInfo.assetId == R) + if (r.srcInfo.transform) { let _ = { - assetId: o.srcInfo.assetId, - handle: o.srcInfo.transform + assetId: r.srcInfo.assetId, + handle: r.srcInfo.transform }; Craft.sendActionRequest("POST", "assets/generate-transform", { data: _ - }).then((m) => { - let b = m.data.url + "?" + (/* @__PURE__ */ new Date()).getTime() + "#asset:" + o.srcInfo.assetId + ":transform:" + o.srcInfo.transform; + }).then((g) => { + let b = g.data.url + "?" + (/* @__PURE__ */ new Date()).getTime() + "#asset:" + r.srcInfo.assetId + ":transform:" + r.srcInfo.transform; u.change((v) => { - v.setAttribute("src", b, o.element); + v.setAttribute("src", b, r.element); }); }); } else { - let _ = o.srcInfo.baseSrc + "?" + (/* @__PURE__ */ new Date()).getTime() + "#asset:" + o.srcInfo.assetId; - u.change((m) => { - m.setAttribute("src", _, o.element); + let _ = r.srcInfo.baseSrc + "?" + (/* @__PURE__ */ new Date()).getTime() + "#asset:" + r.srcInfo.assetId; + u.change((g) => { + g.setAttribute("src", _, r.element); }); } }); @@ -423,14 +505,14 @@ class cu extends Os { * @private */ _getAllImageAssets() { - const g = this.editor.model, i = g.createRangeIn(g.document.getRoot()); + const p = this.editor.model, i = p.createRangeIn(p.document.getRoot()); let u = []; for (const c of i.getWalker({ ignoreElementEnd: !0 })) if (c.item.is("element") && c.item.name === "imageBlock") { - let o = this._srcInfo(c.item); - o && u.push({ + let r = this._srcInfo(c.item); + r && u.push({ element: c.item, - srcInfo: o + srcInfo: r }); } return u; @@ -449,8 +531,8 @@ class rc extends Bn { return "ImageEditorEditing"; } init() { - const R = this.editor, g = new cu(R); - R.commands.add("imageEditor", g); + const R = this.editor, p = new cu(R); + R.commands.add("imageEditor", p); } } /** @@ -466,19 +548,19 @@ class uu extends Bn { return "ImageEditorUI"; } init() { - const g = this.editor.commands.get("imageEditor"); - this.bind("isEnabled").to(g), this._registerImageEditorButton(); + const p = this.editor.commands.get("imageEditor"); + this.bind("isEnabled").to(p), this._registerImageEditorButton(); } /** * A helper function that creates a button component for the plugin that triggers launch of the Image Editor. */ _registerImageEditorButton() { - const R = this.editor, g = R.t, i = R.commands.get("imageEditor"), u = () => { + const R = this.editor, p = R.t, i = R.commands.get("imageEditor"), u = () => { const c = new vi(); return c.set({ - label: g("Edit Image"), + label: p("Edit Image"), withText: !0 - }), c.bind("isEnabled").to(i), this.listenTo(c, "execute", (o) => { + }), c.bind("isEnabled").to(i), this.listenTo(c, "execute", (r) => { R.execute("imageEditor"), R.editing.view.focus(); }), c; }; @@ -500,21 +582,21 @@ class Du extends Bn { } class du extends Os { execute(R) { - const g = this.editor, i = g.model.document.selection; - g.model.change((u) => { + const p = this.editor, i = p.model.document.selection; + p.model.change((u) => { const c = u.createElement("craftEntryModel", { ...Object.fromEntries(i.getAttributes()), cardHtml: R.cardHtml, entryId: R.entryId, siteId: R.siteId }); - g.model.insertObject(c, null, null, { + p.model.insertObject(c, null, null, { setSelection: "on" }); }); } refresh() { - const g = this.editor.model.document.selection, i = !g.isCollapsed && g.getFirstRange(); + const p = this.editor.model.document.selection, i = !p.isCollapsed && p.getFirstRange(); this.isEnabled = !i; } } @@ -523,7 +605,7 @@ class fu extends Bn { * @inheritDoc */ static get requires() { - return [Yc]; + return [qc]; } /** * @inheritDoc @@ -539,8 +621,8 @@ class fu extends Bn { const R = this.editor; R.commands.add("insertEntry", new du(R)), R.editing.mapper.on( "viewToModelPosition", - qc(R.model, (g) => { - g.hasClass("cke-entry-card"); + Yc(R.model, (p) => { + p.hasClass("cke-entry-card"); }) ); } @@ -567,48 +649,48 @@ class fu extends Bn { // has to be lower case }, model: (i, { writer: u }) => { - const c = i.getAttribute("data-card-html"), o = i.getAttribute("data-entry-id"), _ = i.getAttribute("data-site-id") ?? null; + const c = i.getAttribute("data-card-html"), r = i.getAttribute("data-entry-id"), _ = i.getAttribute("data-site-id") ?? null; return u.createElement("craftEntryModel", { cardHtml: c, - entryId: o, + entryId: r, siteId: _ }); } }), R.for("editingDowncast").elementToElement({ model: "craftEntryModel", view: (i, { writer: u }) => { - const c = i.getAttribute("entryId") ?? null, o = i.getAttribute("siteId") ?? null, _ = u.createContainerElement("div", { + const c = i.getAttribute("entryId") ?? null, r = i.getAttribute("siteId") ?? null, _ = u.createContainerElement("div", { class: "cke-entry-card", "data-entry-id": c, - "data-site-id": o + "data-site-id": r }); - return g(i, u, _), Kc(_, u); + return p(i, u, _), Kc(_, u); } }), R.for("dataDowncast").elementToElement({ model: "craftEntryModel", view: (i, { writer: u }) => { - const c = i.getAttribute("entryId") ?? null, o = i.getAttribute("siteId") ?? null; + const c = i.getAttribute("entryId") ?? null, r = i.getAttribute("siteId") ?? null; return u.createContainerElement("craft-entry", { "data-entry-id": c, - "data-site-id": o + "data-site-id": r }); } }); - const g = (i, u, c) => { - this._getCardHtml(i).then((o) => { + const p = (i, u, c) => { + this._getCardHtml(i).then((r) => { const _ = u.createRawElement( "div", null, function(b) { - b.innerHTML = o.cardHtml, Craft.appendHeadHtml(o.headHtml), Craft.appendBodyHtml(o.bodyHtml); + b.innerHTML = r.cardHtml, Craft.appendHeadHtml(r.headHtml), Craft.appendBodyHtml(r.bodyHtml); } ); u.insert(u.createPositionAt(c, 0), _); - const m = this.editor; - m.editing.view.focus(), setTimeout(() => { - Craft.cp.elementThumbLoader.load($(m.ui.element)); - }, 100), m.model.change((b) => { - m.ui.update(), $(m.sourceElement).trigger("keyup"); + const g = this.editor; + g.editing.view.focus(), setTimeout(() => { + Craft.cp.elementThumbLoader.load($(g.ui.element)); + }, 100), g.model.change((b) => { + g.ui.update(), $(g.sourceElement).trigger("keyup"); }); }); }; @@ -621,12 +703,12 @@ class fu extends Bn { * @private */ async _getCardHtml(R) { - var _, m, b; - let g = R.getAttribute("cardHtml") ?? null, i = $(this.editor.sourceElement).parents(".field"); + var _, g, b; + let p = R.getAttribute("cardHtml") ?? null, i = $(this.editor.sourceElement).parents(".field"); const u = $(i[0]).data("layout-element"); - if (g) - return { cardHtml: g }; - const c = R.getAttribute("entryId") ?? null, o = R.getAttribute("siteId") ?? null; + if (p) + return { cardHtml: p }; + const c = R.getAttribute("entryId") ?? null, r = R.getAttribute("siteId") ?? null; try { const v = this.editor, C = $(v.ui.view.element).closest( "form,.lp-editor-container" @@ -638,14 +720,14 @@ class fu extends Bn { { data: { entryId: c, - siteId: o, + siteId: r, layoutElementUid: u } } ); return x; } catch (v) { - return console.error((_ = v == null ? void 0 : v.response) == null ? void 0 : _.data), { cardHtml: '
' + (((b = (m = v == null ? void 0 : v.response) == null ? void 0 : m.data) == null ? void 0 : b.message) || "An unknown error occurred.") + "
" }; + return console.error((_ = v == null ? void 0 : v.response) == null ? void 0 : _.data), { cardHtml: '
' + (((b = (g = v == null ? void 0 : v.response) == null ? void 0 : g.data) == null ? void 0 : b.message) || "An unknown error occurred.") + "
" }; } } } @@ -658,42 +740,42 @@ class pu extends Qc { } } class hu extends $o { - constructor(R, g = {}) { - super(R), this.bindTemplate, this.set("isFocused", !1), this.entriesUi = g.entriesUi, this.editor = this.entriesUi.editor; + constructor(R, p = {}) { + super(R), this.bindTemplate, this.set("isFocused", !1), this.entriesUi = p.entriesUi, this.editor = this.entriesUi.editor; const i = this.editor.commands.get("insertEntry"); let u = new yi(), c = new yi(); - if (this.entriesUi._getEntryTypeButtonsCollection(g.entryTypeOptions ?? []).forEach((o, _) => { - let m = new vi(); - if (o.model.icon) { + if (this.entriesUi._getEntryTypeButtonsCollection(p.entryTypeOptions ?? []).forEach((r, _) => { + let g = new vi(); + if (r.model.icon) { let b = ["btn", "icon", "cp-icon", "ck-reset_all-excluded"]; - o.model.color && b.push([o.model.color]), m.set({ - commandValue: o.model.commandValue, + r.model.color && b.push([r.model.color]), g.set({ + commandValue: r.model.commandValue, //entry type id - label: o.model.label, - icon: o.model.icon, + label: r.model.label, + icon: r.model.icon, withText: !1, tooltip: Craft.t("ckeditor", "New {type}", { - type: o.model.label + type: r.model.label }), class: b.join(" ") - }), u.add(m); + }), u.add(g); } else - c.add(o); - this.listenTo(m, "execute", (b) => { + c.add(r); + this.listenTo(g, "execute", (b) => { this.entriesUi._showCreateEntrySlideout(b.source.commandValue); - }), m.bind("isEnabled").to(i); + }), g.bind("isEnabled").to(i); }), c.length > 0) { - const o = Ca(R); - o.buttonView.set({ + const r = Ca(R); + r.buttonView.set({ label: Craft.t("ckeditor", "Add nested content"), icon: ec, tooltip: !0, withText: !1 - }), o.bind("isEnabled").to(i), o.id = Craft.uuid(), Ta(o, () => c, { + }), r.bind("isEnabled").to(i), r.id = Craft.uuid(), Ta(r, () => c, { ariaLabel: Craft.t("ckeditor", "Entry types list") - }), this.listenTo(o, "execute", (_) => { + }), this.listenTo(r, "execute", (_) => { this.entriesUi._showCreateEntrySlideout(_.source.commandValue); - }), u.add(o); + }), u.add(r); } this.setTemplate({ tag: "div", @@ -736,8 +818,8 @@ class mu extends Bn { // Toolbar Buttons items: ["editEntryBtn"], // If a related element is returned the toolbar is attached - getRelatedElement: (g) => { - const i = g.getSelectedElement(); + getRelatedElement: (p) => { + const i = p.getSelectedElement(); return i && Gc(i) && i.hasClass("cke-entry-card") ? i : null; } }); @@ -748,8 +830,8 @@ class mu extends Bn { * @private */ _listenToEvents() { - const R = this.editor.editing.view, g = R.document; - R.addObserver(pu), this.editor.listenTo(g, "dblclick", (i, u) => { + const R = this.editor.editing.view, p = R.document; + R.addObserver(pu), this.editor.listenTo(p, "dblclick", (i, u) => { if (!this.editor.isReadOnly) { const c = this.editor.editing.mapper.toModelElement( u.target.parent @@ -758,12 +840,12 @@ class mu extends Bn { } }); } - _initEditEntrySlideout(R = null, g = null) { + _initEditEntrySlideout(R = null, p = null) { if (this.editor.isReadOnly) return; - g === null && (g = this.editor.model.document.selection.getSelectedElement()); - const i = g.getAttribute("entryId"), u = g.getAttribute("siteId") ?? null; - this._showEditEntrySlideout(i, u, g); + p === null && (p = this.editor.model.document.selection.getSelectedElement()); + const i = p.getAttribute("entryId"), u = p.getAttribute("siteId") ?? null; + this._showEditEntrySlideout(i, u, p); } /** * Creates a single toolbar button that allows for an entry to be inserted into the editor @@ -772,7 +854,7 @@ class mu extends Bn { * @private */ _createSingleToolbarEntriesButton(R) { - const g = this.editor, i = g.config.get("entryTypeOptions"), u = g.commands.get("insertEntry"); + const p = this.editor, i = p.config.get("entryTypeOptions"), u = p.commands.get("insertEntry"); if (!i || !i.length) return; const c = Ca(R); @@ -790,8 +872,8 @@ class mu extends Bn { { ariaLabel: Craft.t("ckeditor", "Entry types list") } - ), this.listenTo(c, "execute", (o) => { - this._showCreateEntrySlideout(o.source.commandValue); + ), this.listenTo(c, "execute", (r) => { + this._showCreateEntrySlideout(r.source.commandValue); }), c; } /** @@ -801,14 +883,14 @@ class mu extends Bn { * @private */ _createToolbarEntriesButtons() { - const R = this.editor, g = R.config.get("entryTypeOptions"); - if (!g || !g.length) + const R = this.editor, p = R.config.get("entryTypeOptions"); + if (!p || !p.length) return; R.config.get("expandEntryButtons") ? this.editor.ui.componentFactory.add( "createEntry", (u) => new hu(u, { entriesUi: this, - entryTypeOptions: g + entryTypeOptions: p }) ) : this.editor.ui.componentFactory.add("createEntry", (u) => this._createSingleToolbarEntriesButton(u)); } @@ -820,7 +902,7 @@ class mu extends Bn { * @private */ _getEntryTypeButtonsCollection(R) { - const g = new yi(); + const p = new yi(); return R.map((i) => { const u = { type: "button", @@ -833,8 +915,8 @@ class mu extends Bn { withText: !0 }) }; - g.add(u); - }), g; + p.add(u); + }), p; } /** * Creates an edit entry button that shows in the contextual balloon for each craft entry widget @@ -845,17 +927,17 @@ class mu extends Bn { _createEditEntryBtn(R) { if (this.editor.isReadOnly) return; - const g = new vi(R); - return g.set({ + const p = new vi(R); + return p.set({ isEnabled: !0, label: Craft.t("app", "Edit {type}", { type: Craft.elementTypeNames["craft\\elements\\Entry"][2] }), tooltip: !0, withText: !0 - }), this.listenTo(g, "execute", (i) => { + }), this.listenTo(p, "execute", (i) => { this._initEditEntrySlideout(); - }), g; + }), p; } /** * Returns Craft.ElementEditor instance that the CKEditor field belongs to. @@ -883,13 +965,13 @@ class mu extends Bn { * @param entryId * @private */ - _showEditEntrySlideout(R, g, i) { - const u = this.editor, c = u.model, o = this.getElementEditor(); + _showEditEntrySlideout(R, p, i) { + const u = this.editor, c = u.model, r = this.getElementEditor(); let _ = this._getCardElement(R); - const m = _.data("owner-id"), b = Craft.createElementEditor(this.elementType, null, { + const g = _.data("owner-id"), b = Craft.createElementEditor(this.elementType, null, { elementId: R, params: { - siteId: g + siteId: p }, onLoad: () => { b.elementEditor.on("update", () => { @@ -897,10 +979,10 @@ class mu extends Bn { }); }, onBeforeSubmit: async () => { - if (_ !== null && Garnish.hasAttr(_, "data-owner-is-canonical") && (!o || !o.settings.isUnpublishedDraft)) { + if (_ !== null && Garnish.hasAttr(_, "data-owner-is-canonical") && (!r || !r.settings.isUnpublishedDraft)) { await b.elementEditor.checkForm(!0, !0); let v = $(u.sourceElement).attr("name"); - o && v && await o.setFormValue(v, "*"), o && o.settings.draftId && b.elementEditor.settings.draftId && (b.elementEditor.settings.saveParams || (b.elementEditor.settings.saveParams = {}), b.elementEditor.settings.saveParams.action = "elements/save-nested-element-for-derivative", b.elementEditor.settings.saveParams.newOwnerId = o.getDraftElementId(m)); + r && v && await r.setFormValue(v, "*"), r && r.settings.draftId && b.elementEditor.settings.draftId && (b.elementEditor.settings.saveParams || (b.elementEditor.settings.saveParams = {}), b.elementEditor.settings.saveParams.action = "elements/save-nested-element-for-derivative", b.elementEditor.settings.saveParams.newOwnerId = r.getDraftElementId(g)); } }, onSubmit: (v) => { @@ -926,13 +1008,13 @@ class mu extends Bn { */ async _showCreateEntrySlideout(R) { var y, C; - const g = this.editor, i = g.model, c = i.document.selection.getFirstRange(), o = g.config.get( + const p = this.editor, i = p.model, c = i.document.selection.getFirstRange(), r = p.config.get( "nestedElementAttributes" - ), _ = Object.assign({}, o, { + ), _ = Object.assign({}, r, { typeId: R - }), m = this.getElementEditor(); - m && (await m.markDeltaNameAsModified(g.sourceElement.name), _.ownerId = m.getDraftElementId( - o.ownerId + }), g = this.getElementEditor(); + g && (await g.markDeltaNameAsModified(p.sourceElement.name), _.ownerId = g.getDraftElementId( + r.ownerId )); let b; try { @@ -954,7 +1036,7 @@ class mu extends Bn { siteId: b.element.siteId }, onSubmit: (x) => { - g.commands.execute("insertEntry", { + p.commands.execute("insertEntry", { entryId: x.data.id, siteId: x.data.siteId }); @@ -964,11 +1046,11 @@ class mu extends Bn { v.$triggerElement = null, i.change((x) => { x.setSelection( x.createPositionAt( - g.model.document.getRoot(), + p.model.document.getRoot(), c.end.path[0] ) ); - }), g.editing.view.focus(); + }), p.editing.view.focus(); }); } } @@ -993,25 +1075,25 @@ class bu extends Bn { super(...arguments), this.conversionData = [], this.editor.config.define("advancedLinkFields", []); } init() { - const g = this.editor.config.get("advancedLinkFields"); - this.conversionData = g.map((i) => i.conversion ?? null).filter((i) => i), this._defineSchema(), this._defineConverters(), this._adjustLinkCommand(), this._adjustUnlinkCommand(); + const p = this.editor.config.get("advancedLinkFields"); + this.conversionData = p.map((i) => i.conversion ?? null).filter((i) => i), this._defineSchema(), this._defineConverters(), this._adjustLinkCommand(), this._adjustUnlinkCommand(); } _defineSchema() { const R = this.editor.model.schema; - let g = this.conversionData.map((i) => i.model); + let p = this.conversionData.map((i) => i.model); R.extend("$text", { - allowAttributes: g + allowAttributes: p }); } _defineConverters() { const R = this.editor.conversion; - for (let g = 0; g < this.conversionData.length; g++) + for (let p = 0; p < this.conversionData.length; p++) R.for("downcast").attributeToElement({ - model: this.conversionData[g].model, + model: this.conversionData[p].model, view: (i, { writer: u }) => { const c = u.createAttributeElement( "a", - { [this.conversionData[g].view]: i }, + { [this.conversionData[p].view]: i }, { priority: 5 } ); return u.setCustomProperty("link", !0, c), c; @@ -1019,18 +1101,18 @@ class bu extends Bn { }), R.for("upcast").attributeToAttribute({ view: { name: "a", - key: this.conversionData[g].view + key: this.conversionData[p].view }, model: { - key: this.conversionData[g].model, - value: (i, u) => i.getAttribute(this.conversionData[g].view) + key: this.conversionData[p].model, + value: (i, u) => i.getAttribute(this.conversionData[p].view) } }); } _adjustLinkCommand() { - const R = this.editor, g = R.commands.get("link"); + const R = this.editor, p = R.commands.get("link"); let i = !1; - g.on( + p.on( "execute", (u, c) => { if (i) { @@ -1038,29 +1120,29 @@ class bu extends Bn { return; } u.stop(), i = !0; - const o = c[c.length - 1], _ = R.model.document.selection; - R.model.change((m) => { + const r = c[c.length - 1], _ = R.model.document.selection; + R.model.change((g) => { R.execute("link", ...c); const b = _.getFirstPosition(); this.conversionData.forEach((v) => { if (_.isCollapsed) { const y = b.textNode || b.nodeBefore; - o[v.model] ? m.setAttribute( + r[v.model] ? g.setAttribute( v.model, - o[v.model], - m.createRangeOn(y) - ) : m.removeAttribute(v.model, m.createRangeOn(y)); + r[v.model], + g.createRangeOn(y) + ) : g.removeAttribute(v.model, g.createRangeOn(y)); } else { const y = R.model.schema.getValidRanges( _.getRanges(), v.model ); for (const C of y) - o[v.model] ? m.setAttribute( + r[v.model] ? g.setAttribute( v.model, - o[v.model], + r[v.model], C - ) : m.removeAttribute(v.model, C); + ) : g.removeAttribute(v.model, C); } }); }); @@ -1069,27 +1151,27 @@ class bu extends Bn { ); } _adjustUnlinkCommand() { - const R = this.editor, g = R.commands.get("unlink"), { model: i } = R, { selection: u } = i.document; + const R = this.editor, p = R.commands.get("unlink"), { model: i } = R, { selection: u } = i.document; let c = !1; - g.on( + p.on( "execute", - (o) => { - c || (o.stop(), i.change(() => { + (r) => { + c || (r.stop(), i.change(() => { c = !0, R.execute("unlink"), c = !1, i.change((_) => { - let m; + let g; this.conversionData.forEach((b) => { - u.isCollapsed ? m = [ + u.isCollapsed ? g = [ Xc( u.getFirstPosition(), b.model, u.getAttribute(b.model), i ) - ] : m = i.schema.getValidRanges( + ] : g = i.schema.getValidRanges( u.getRanges(), b.model ); - for (const v of m) + for (const v of g) _.removeAttribute(b.model, v); }); }); @@ -1100,8 +1182,8 @@ class bu extends Bn { } } class yu extends $o { - constructor(R, g = {}) { - super(R), this.bindTemplate, this.set("isFocused", !1), this.linkUi = g.linkUi, this.editor = this.linkUi.editor, this.elementId = this.linkUi._getLinkElementId(), this.siteId = this.linkUi._getLinkSiteId(), this.linkOption = g.linkOption; + constructor(R, p = {}) { + super(R), this.bindTemplate, this.set("isFocused", !1), this.linkUi = p.linkUi, this.editor = this.linkUi.editor, this.elementId = this.linkUi._getLinkElementId(), this.siteId = this.linkUi._getLinkSiteId(), this.linkOption = p.linkOption; const i = this.linkUi._getLinkElementRefHandle(); if (this.button = null, i) { const u = this.linkUi.linkTypeDropdownItemModels[i]; @@ -1127,9 +1209,9 @@ class yu extends $o { } render() { super.render(); - const R = this.linkUi, g = R._linkUI, i = this.linkOption; + const R = this.linkUi, p = R._linkUI, i = this.linkOption; this.element.addEventListener("click", function(u) { - (this.children[0].classList.contains("add") || u.target.classList.contains("ck-button__label")) && (g._hideUI(), R._showElementSelectorModal(i)); + (this.children[0].classList.contains("add") || u.target.classList.contains("ck-button__label")) && (p._hideUI(), R._showElementSelectorModal(i)); }), this.element.children.length == 0 && Craft.sendActionRequest("POST", "app/render-elements", { data: { elements: [ @@ -1152,7 +1234,7 @@ class yu extends $o { if (Object.keys(u.data.elements).length > 0) { this.element.innerHTML = u.data.elements[this.elementId][0], Craft.appendHeadHtml(u.data.headHtml), Craft.appendBodyHtml(u.data.bodyHtml); let c = this.element.firstChild; - const o = [ + const r = [ { icon: "arrows-rotate", label: Craft.t("app", "Replace"), @@ -1168,19 +1250,19 @@ class yu extends $o { } } ]; - Craft.addActionsToChip(c, o), R._alignFocus(); + Craft.addActionsToChip(c, r), R._alignFocus(); } }).catch((u) => { - var c, o, _, m; - throw Craft.cp.displayError((o = (c = u == null ? void 0 : u.response) == null ? void 0 : c.data) == null ? void 0 : o.message), ((m = (_ = u == null ? void 0 : u.response) == null ? void 0 : _.data) == null ? void 0 : m.message) ?? u; + var c, r, _, g; + throw Craft.cp.displayError((r = (c = u == null ? void 0 : u.response) == null ? void 0 : c.data) == null ? void 0 : r.message), ((g = (_ = u == null ? void 0 : u.response) == null ? void 0 : _.data) == null ? void 0 : g.message) ?? u; }); } } class vu extends $o { - constructor(R, g = {}) { + constructor(R, p = {}) { super(R); const i = this.bindTemplate; - this.set("label", Craft.t("app", "Advanced")), this.linkUi = g.linkUi, this.editor = this.linkUi.editor, this.children = this.createCollection(), this.advancedChildren = this.createCollection(), this.setTemplate({ + this.set("label", Craft.t("app", "Advanced")), this.linkUi = p.linkUi, this.editor = this.linkUi.editor, this.children = this.createCollection(), this.advancedChildren = this.createCollection(), this.setTemplate({ tag: "details", attributes: { class: ["ck", "ck-form__details", "link-type-advanced"] @@ -1209,15 +1291,15 @@ class vu extends $o { } // this is needed to control the focus order onToggle(R) { - const { formView: g } = this.linkUi._linkUI; + const { formView: p } = this.linkUi._linkUI; if (R.target.open) { - const i = g._focusables.getIndex(this); + const i = p._focusables.getIndex(this); this.advancedChildren._items.forEach((u, c) => { - g._focusables.add(u, i + c + 1), g.focusTracker.add(u.element, i + c + 1); + p._focusables.add(u, i + c + 1), p.focusTracker.add(u.element, i + c + 1); }); } else this.advancedChildren._items.forEach((i, u) => { - g._focusables.remove(i), g.focusTracker.remove(i.element); + p._focusables.remove(i), p.focusTracker.remove(i.element); }); } } @@ -1239,16 +1321,16 @@ class ku extends Bn { init() { const R = this.editor; this._linkUI = R.plugins.get(Xl), this._balloon = R.plugins.get(Zc), this.linkOptions = R.config.get("linkOptions"), this.advancedLinkFields = R.config.get("advancedLinkFields"), this.conversionData = this.advancedLinkFields.map((i) => i.conversion ?? null).filter((i) => i); - const g = CKE_LOCALIZED_REF_HANDLES.join("|"); + const p = CKE_LOCALIZED_REF_HANDLES.join("|"); this.elementTypeRefHandleRE = new RegExp( - `(#((?:${g})):\\d+)` + `(#((?:${p})):\\d+)` ), this.urlWithRefHandleRE = new RegExp( - `(.+)(#((?:${g})):(\\d+))(?:@(\\d+))?` + `(.+)(#((?:${p})):(\\d+))(?:@(\\d+))?` ), this._modifyFormViewTemplate(), this._balloon.on( "set:visibleView", - (i, u, c, o) => { + (i, u, c, r) => { const { formView: _ } = this._linkUI; - c === o || c !== _ || this._alignFocus(); + c === r || c !== _ || this._alignFocus(); } ); } @@ -1257,10 +1339,10 @@ class ku extends Bn { */ _alignFocus() { const { formView: R } = this._linkUI; - let g = 0; + let p = 0; this.linkTypeWrapperView && (this.linkTypeWrapperView._unboundChildren._items.forEach((i) => { - R._focusables.has(i) && R._focusables.remove(i), R.focusTracker.remove(i.element), R._focusables.add(i, g), R.focusTracker.add(i.element, g), g++; - }), this.advancedView !== null && (R._focusables.has(this.advancedView) && R._focusables.remove(this.advancedView), R.focusTracker.remove(this.advancedView), R._focusables.add(this.advancedView, g), R.focusTracker.add(this.advancedView.element, g))); + R._focusables.has(i) && R._focusables.remove(i), R.focusTracker.remove(i.element), R._focusables.add(i, p), R.focusTracker.add(i.element, p), p++; + }), this.advancedView !== null && (R._focusables.has(this.advancedView) && R._focusables.remove(this.advancedView), R.focusTracker.remove(this.advancedView), R._focusables.add(this.advancedView, p), R.focusTracker.add(this.advancedView.element, p))); } /** * Add all our custom fields (for element linking and advanced fields) to the link form view. @@ -1290,7 +1372,7 @@ class ku extends Bn { * Create a link type dropdown. */ _linkOptionsDropdown() { - const { formView: R } = this._linkUI, { urlInputView: g } = R, { fieldView: i } = g; + const { formView: R } = this._linkUI, { urlInputView: p } = R, { fieldView: i } = p; this.linkTypeDropdownView = Ca(R.locale), this.linkTypeDropdownView.buttonView.set({ label: "", withText: !0, @@ -1326,24 +1408,24 @@ class ku extends Bn { */ _getLinkElementRefHandle() { let R = null; - const g = this._urlInputValue().match(this.elementTypeRefHandleRE); - return g && (R = g[2], R && typeof this.linkTypeDropdownItemModels[R] > "u" && (R = null)), R; + const p = this._urlInputValue().match(this.elementTypeRefHandleRE); + return p && (R = p[2], R && typeof this.linkTypeDropdownItemModels[R] > "u" && (R = null)), R; } /** * Get element ID from the URL field value. */ _getLinkElementId() { let R = null; - const g = this._urlInputRefMatch(this.urlWithRefHandleRE); - return g && (R = g[4] ? parseInt(g[4], 10) : null), R; + const p = this._urlInputRefMatch(this.urlWithRefHandleRE); + return p && (R = p[4] ? parseInt(p[4], 10) : null), R; } /** * Get site ID from the URL field value. */ _getLinkSiteId() { let R = null; - const g = this._urlInputRefMatch(this.urlWithRefHandleRE); - return g && (R = g[5] ? parseInt(g[5], 10) : null), R; + const p = this._urlInputRefMatch(this.urlWithRefHandleRE); + return p && (R = p[5] ? parseInt(p[5], 10) : null), R; } /** * Toggle between element link and default URL link fields. @@ -1356,9 +1438,9 @@ class ku extends Bn { * Select link type from the dropdown. */ _selectLinkTypeDropdownItem(R) { - const g = this.linkTypeDropdownItemModels[R], i = R ? Craft.t("app", "{name}", { name: g.label }) : g.label; + const p = this.linkTypeDropdownItemModels[R], i = R ? Craft.t("app", "{name}", { name: p.label }) : p.label; this.linkTypeDropdownView.buttonView.set("label", i), Object.values(this.linkTypeDropdownItemModels).forEach((u) => { - u.set("isOn", u.handle === g.handle); + u.set("isOn", u.handle === p.handle); }); } /** @@ -1366,12 +1448,12 @@ class ku extends Bn { */ _getLinkListItemDefinitions() { const R = []; - for (const g of this.linkOptions) + for (const p of this.linkOptions) R.push( new Sa({ - label: g.label, - handle: g.refHandle, - linkOption: g, + label: p.label, + handle: p.refHandle, + linkOption: p, withText: !0 }) ); @@ -1387,15 +1469,15 @@ class ku extends Bn { * Place the link type fields in the form. */ _showLinkTypeForm(R) { - let g = null; - const { formView: i } = this._linkUI, { children: u } = i, { urlInputView: c } = i, { displayedTextInputView: o } = i; - o.focus(), this.linkTypeWrapperView !== null && u.remove(this.linkTypeWrapperView), R === "default" ? g = c : (this._getLinkSiteId(), this._getLinkElementId(), g = new yu(i.locale, { + let p = null; + const { formView: i } = this._linkUI, { children: u } = i, { urlInputView: c } = i, { displayedTextInputView: r } = i; + r.focus(), this.linkTypeWrapperView !== null && u.remove(this.linkTypeWrapperView), R === "default" ? p = c : (this._getLinkSiteId(), this._getLinkElementId(), p = new yu(i.locale, { linkUi: this, linkOption: R, value: this._urlInputValue() })), this.linkTypeWrapperView = new $o(), this.linkTypeWrapperView.setTemplate({ tag: "div", - children: [this.linkTypeDropdownView, g], + children: [this.linkTypeDropdownView, p], attributes: { class: [ "ck", @@ -1411,25 +1493,25 @@ class ku extends Bn { * Show element selector modal for given element type (link option). */ _showElementSelectorModal(R) { - const g = this.editor, i = g.model, u = i.document.selection, c = u.isCollapsed, o = u.getFirstRange(), _ = this._linkUI._getSelectedLinkElement(), m = () => { - g.editing.view.focus(), !c && o && i.change((b) => { - b.setSelection(o); + const p = this.editor, i = p.model, u = i.document.selection, c = u.isCollapsed, r = u.getFirstRange(), _ = this._linkUI._getSelectedLinkElement(), g = () => { + p.editing.view.focus(), !c && r && i.change((b) => { + b.setSelection(r); }), this._linkUI._hideFakeVisualSelection(); }; _ || this._linkUI._showFakeVisualSelection(), Craft.createElementSelectorModal(R.elementType, { storageKey: `ckeditor:${this.pluginName}:${R.elementType}`, sources: R.sources, criteria: R.criteria, - defaultSiteId: g.config.get("elementSiteId"), + defaultSiteId: p.config.get("elementSiteId"), autoFocusSearchBox: !1, onSelect: (b) => { if (b.length) { const v = b[0], y = `${v.url}#${R.refHandle}:${v.id}@${v.siteId}`; - if (g.editing.view.focus(), (!c || _) && o) { + if (p.editing.view.focus(), (!c || _) && r) { i.change((N) => { - N.setSelection(o); + N.setSelection(r); }); - const C = g.commands.get("link"); + const C = p.commands.get("link"); let x = this._getAdvancedFieldValues(); C.execute(y, x); } else @@ -1442,9 +1524,9 @@ class ku extends Bn { }, u.getFirstPosition(), x - ), o instanceof Jc) + ), r instanceof Jc) try { - const N = o.clone(); + const N = r.clone(); N.end.path[1] += v.label.length, C.setSelection(N); } catch { } @@ -1453,10 +1535,10 @@ class ku extends Bn { this._linkUI._showUI(!0); }, 100); } else - m(); + g(); }, onCancel: () => { - m(); + g(); }, closeOtherModals: !1 }); @@ -1473,34 +1555,34 @@ class ku extends Bn { */ _addAdvancedLinkFieldInputs() { var u; - const R = this.editor.commands.get("link"), { formView: g } = this._linkUI, { children: i } = g; - this.advancedView = new vu(g.locale, { + const R = this.editor.commands.get("link"), { formView: p } = this._linkUI, { children: i } = p; + this.advancedView = new vu(p.locale, { linkUi: this }), i.add(this.advancedView, 3); for (const c of this.advancedLinkFields) { - let o = (u = c.conversion) == null ? void 0 : u.model; - if (o && typeof g[o] > "u") + let r = (u = c.conversion) == null ? void 0 : u.model; + if (r && typeof p[r] > "u") if (c.conversion.type === "bool") { const _ = new eu(); _.set({ withText: !0, label: c.label, isToggleable: !0 - }), c.tooltip && (_.tooltip = c.tooltip), this.advancedView.advancedChildren.add(_), g[o] = _, g[o].bind("isOn").to(R, o, (m) => m === void 0 ? (g[o].element.value = "", !1) : (g[o].element.value = c.conversion.value, !0)), _.on("execute", () => { - _.isOn ? (_.isOn = !1, g[o].element.value = "") : (_.isOn = !0, g[o].element.value = c.conversion.value); + }), c.tooltip && (_.tooltip = c.tooltip), this.advancedView.advancedChildren.add(_), p[r] = _, p[r].bind("isOn").to(R, r, (g) => g === void 0 ? (p[r].element.value = "", !1) : (p[r].element.value = c.conversion.value, !0)), _.on("execute", () => { + _.isOn ? (_.isOn = !1, p[r].element.value = "") : (_.isOn = !0, p[r].element.value = c.conversion.value); }); } else { let _ = this._addLabeledField(c); - g[o] = _, g[o].fieldView.bind("value").to(R, o), g[o].fieldView.element.value = R[o] || ""; + p[r] = _, p[r].fieldView.bind("value").to(R, r), p[r].fieldView.element.value = R[r] || ""; } else if (c.value === "urlSuffix") { let _ = this._addLabeledField(c); this.listenTo( _.fieldView, "change:isFocused", - (m, b, v, y) => { + (g, b, v, y) => { if (v !== y && !v) { - let C = m.source.element.value, x = null; + let C = g.source.element.value, x = null; const N = this._urlInputRefMatch(this.urlWithRefHandleRE); N ? x = N[1] : x = this._urlInputValue(); try { @@ -1509,24 +1591,24 @@ class ku extends Bn { x, B + C ); - g.urlInputView.fieldView.set("value", P); + p.urlInputView.fieldView.set("value", P); } catch { let [K, j] = x.split("#"), [B, P] = K.split("?"); - const I = this._urlInputValue().replace( + const M = this._urlInputValue().replace( x, B + C ); - g.urlInputView.fieldView.set("value", I); + p.urlInputView.fieldView.set("value", M); } } } - ), this.listenTo(g.urlInputView.fieldView, "change:value", (m) => { - this._toggleUrlSuffixInputView(_, m.source.isEmpty); + ), this.listenTo(p.urlInputView.fieldView, "change:value", (g) => { + this._toggleUrlSuffixInputView(_, g.source.isEmpty); }), this.listenTo( - g.urlInputView.fieldView, + p.urlInputView.fieldView, "change:isFocused", - (m) => { - this._toggleUrlSuffixInputView(_, m.source.isEmpty); + (g) => { + this._toggleUrlSuffixInputView(_, g.source.isEmpty); } ); } @@ -1536,9 +1618,9 @@ class ku extends Bn { * Create a labeled field for given advanced field. */ _addLabeledField(R) { - const { formView: g } = this._linkUI; + const { formView: p } = this._linkUI; let i = new tu( - g.locale, + p.locale, nu ); return i.label = R.label, R.tooltip && (i.infoText = R.tooltip), this.advancedView.advancedChildren.add(i), i; @@ -1548,18 +1630,18 @@ class ku extends Bn { * e.g. if a query string was added directly to the default URL input field, * ensure the value is also showing in the URL Suffix advanced field. */ - _toggleUrlSuffixInputView(R, g) { - if (g) + _toggleUrlSuffixInputView(R, p) { + if (p) R.fieldView.set("value", ""); else { const i = this._urlInputRefMatch(this.urlWithRefHandleRE); let u = null; i ? u = i[1] : u = this._urlInputValue(); try { - let c = new URL(u), o = c.search, _ = c.hash; - R.fieldView.set("value", o + _); + let c = new URL(u), r = c.search, _ = c.hash; + R.fieldView.set("value", r + _); } catch { - let [o, _] = u.split("#"), [m, b] = o.split("?"); + let [r, _] = u.split("#"), [g, b] = r.split("?"); _ = _ ? "#" + _ : "", b = b ? "?" + b : "", R.fieldView.set("value", b + _); } } @@ -1568,15 +1650,15 @@ class ku extends Bn { * When link form is submitted, pass the advanced field values the link command. */ _handleAdvancedLinkFieldsFormSubmit() { - const g = this.editor.commands.get("link"), { formView: i } = this._linkUI; + const p = this.editor.commands.get("link"), { formView: i } = this._linkUI; i.on( "submit", () => { let u = this._getAdvancedFieldValues(); - g.once( + p.once( "execute", - (c, o) => { - o.length === 4 ? Object.assign(o[3], u) : o.push(u); + (c, r) => { + r.length === 4 ? Object.assign(r[3], u) : r.push(u); }, { priority: "highest" } ); @@ -1588,10 +1670,10 @@ class ku extends Bn { * Update the link command when the advanced field value changes. */ _trackAdvancedLinkFieldsValueChange() { - const R = this.editor, g = R.commands.get("link"), i = R.model.document.selection; + const R = this.editor, p = R.commands.get("link"), i = R.model.document.selection; this.conversionData.forEach((u) => { - g.set(u.model, null), R.model.document.on("change", () => { - g[u.model] = i.getAttribute(u.model); + p.set(u.model, null), R.model.document.on("change", () => { + p[u.model] = i.getAttribute(u.model); }); }); } @@ -1600,11 +1682,11 @@ class ku extends Bn { */ _getAdvancedFieldValues() { const { formView: R } = this._linkUI; - let g = {}; + let p = {}; return this.conversionData.forEach((i) => { let u = []; - i.type === "bool" ? u[i.model] = R[i.model].element.value : u[i.model] = R[i.model].fieldView.element.value, Object.assign(g, u); - }), g; + i.type === "bool" ? u[i.model] = R[i.model].element.value : u[i.model] = R[i.model].fieldView.element.value, Object.assign(p, u); + }), p; } } class Ru extends Bn { @@ -1623,49 +1705,49 @@ var Ts = { exports: {} }; var Zl; function Eu() { return Zl || (Zl = 1, function(xe, R) { - (function(g, i) { + (function(p, i) { xe.exports = i(); })(window, function() { - return function(g) { + return function(p) { var i = {}; function u(c) { if (i[c]) return i[c].exports; - var o = i[c] = { i: c, l: !1, exports: {} }; - return g[c].call(o.exports, o, o.exports, u), o.l = !0, o.exports; + var r = i[c] = { i: c, l: !1, exports: {} }; + return p[c].call(r.exports, r, r.exports, u), r.l = !0, r.exports; } - return u.m = g, u.c = i, u.d = function(c, o, _) { - u.o(c, o) || Object.defineProperty(c, o, { enumerable: !0, get: _ }); + return u.m = p, u.c = i, u.d = function(c, r, _) { + u.o(c, r) || Object.defineProperty(c, r, { enumerable: !0, get: _ }); }, u.r = function(c) { typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(c, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(c, "__esModule", { value: !0 }); - }, u.t = function(c, o) { - if (1 & o && (c = u(c)), 8 & o || 4 & o && typeof c == "object" && c && c.__esModule) return c; + }, u.t = function(c, r) { + if (1 & r && (c = u(c)), 8 & r || 4 & r && typeof c == "object" && c && c.__esModule) return c; var _ = /* @__PURE__ */ Object.create(null); - if (u.r(_), Object.defineProperty(_, "default", { enumerable: !0, value: c }), 2 & o && typeof c != "string") for (var m in c) u.d(_, m, (function(b) { + if (u.r(_), Object.defineProperty(_, "default", { enumerable: !0, value: c }), 2 & r && typeof c != "string") for (var g in c) u.d(_, g, (function(b) { return c[b]; - }).bind(null, m)); + }).bind(null, g)); return _; }, u.n = function(c) { - var o = c && c.__esModule ? function() { + var r = c && c.__esModule ? function() { return c.default; } : function() { return c; }; - return u.d(o, "a", o), o; - }, u.o = function(c, o) { - return Object.prototype.hasOwnProperty.call(c, o); + return u.d(r, "a", r), r; + }, u.o = function(c, r) { + return Object.prototype.hasOwnProperty.call(c, r); }, u.p = "", u(u.s = 94); - }([function(g, i, u) { - g.exports = u(21); - }, function(g, i, u) { + }([function(p, i, u) { + p.exports = u(21); + }, function(p, i, u) { u.d(i, "a", function() { - return o; + return r; }), u.d(i, "b", function() { return _; }), u.d(i, "c", function() { - return m; + return g; }); var c = u(19); - function o(v, y = !0) { + function r(v, y = !0) { if (v === void 0) return "undefined"; if (typeof v == "function") return "function() {…}"; const C = Object(c.stringify)(v, b, null, { maxDepth: 2 }); @@ -1673,26 +1755,26 @@ function Eu() { } function _(v) { const y = {}; - for (const C in v) y[C] = v[C], y[C].value = o(y[C].value); + for (const C in v) y[C] = v[C], y[C].value = r(y[C].value); return y; } - function m(v, y) { + function g(v, y) { return v.length > y ? v.substr(0, y) + `… [${v.length - y} characters left]` : v; } function b(v, y, C) { return typeof v == "string" ? `"${v.replace("'", '"')}"` : C(v); } - }, function(g, i, u) { + }, function(p, i, u) { function c(N) { return N && N.name; } - function o(N) { + function r(N) { return N && c(N) && N.is("attributeElement"); } function _(N) { return N && c(N) && N.is("emptyElement"); } - function m(N) { + function g(N) { return N && c(N) && N.is("uiElement"); } function b(N) { @@ -1708,16 +1790,16 @@ function Eu() { return { path: [...N.parent.getPath(), N.offset], offset: N.offset, isAtEnd: N.isAtEnd, isAtStart: N.isAtStart, parent: x(N.parent) }; } function x(N) { - return c(N) ? o(N) ? "attribute:" + N.name : y(N) ? "root:" + N.name : "container:" + N.name : N.data; + return c(N) ? r(N) ? "attribute:" + N.name : y(N) ? "root:" + N.name : "container:" + N.name : N.data; } u.d(i, "d", function() { return c; }), u.d(i, "b", function() { - return o; + return r; }), u.d(i, "e", function() { return _; }), u.d(i, "h", function() { - return m; + return g; }), u.d(i, "f", function() { return b; }), u.d(i, "c", function() { @@ -1727,7 +1809,7 @@ function Eu() { }), u.d(i, "a", function() { return C; }); - }, function(g, i, u) { + }, function(p, i, u) { u.d(i, "a", function() { return c; }); @@ -1745,35 +1827,35 @@ function Eu() { console.warn(..._); } } - }, function(g, i, u) { + }, function(p, i, u) { function c(b) { return b && b.is("element"); } - function o(b) { + function r(b) { return b && b.is("rootElement"); } function _(b) { return b.getPath ? b.getPath() : b.path; } - function m(b) { + function g(b) { return { path: _(b), stickiness: b.stickiness, index: b.index, isAtEnd: b.isAtEnd, isAtStart: b.isAtStart, offset: b.offset, textNode: b.textNode && b.textNode.data }; } u.d(i, "c", function() { return c; }), u.d(i, "d", function() { - return o; + return r; }), u.d(i, "b", function() { return _; }), u.d(i, "a", function() { - return m; + return g; }); - }, function(g, i, u) { - (function(c, o) { - var _ = "[object Arguments]", m = "[object Map]", b = "[object Object]", v = "[object Set]", y = /^\[object .+?Constructor\]$/, C = /^(?:0|[1-9]\d*)$/, x = {}; - x["[object Float32Array]"] = x["[object Float64Array]"] = x["[object Int8Array]"] = x["[object Int16Array]"] = x["[object Int32Array]"] = x["[object Uint8Array]"] = x["[object Uint8ClampedArray]"] = x["[object Uint16Array]"] = x["[object Uint32Array]"] = !0, x[_] = x["[object Array]"] = x["[object ArrayBuffer]"] = x["[object Boolean]"] = x["[object DataView]"] = x["[object Date]"] = x["[object Error]"] = x["[object Function]"] = x[m] = x["[object Number]"] = x[b] = x["[object RegExp]"] = x[v] = x["[object String]"] = x["[object WeakMap]"] = !1; - var N = typeof c == "object" && c && c.Object === Object && c, G = typeof self == "object" && self && self.Object === Object && self, K = N || G || Function("return this")(), j = i && !i.nodeType && i, B = j && typeof o == "object" && o && !o.nodeType && o, P = B && B.exports === j, I = P && N.process, V = function() { + }, function(p, i, u) { + (function(c, r) { + var _ = "[object Arguments]", g = "[object Map]", b = "[object Object]", v = "[object Set]", y = /^\[object .+?Constructor\]$/, C = /^(?:0|[1-9]\d*)$/, x = {}; + x["[object Float32Array]"] = x["[object Float64Array]"] = x["[object Int8Array]"] = x["[object Int16Array]"] = x["[object Int32Array]"] = x["[object Uint8Array]"] = x["[object Uint8ClampedArray]"] = x["[object Uint16Array]"] = x["[object Uint32Array]"] = !0, x[_] = x["[object Array]"] = x["[object ArrayBuffer]"] = x["[object Boolean]"] = x["[object DataView]"] = x["[object Date]"] = x["[object Error]"] = x["[object Function]"] = x[g] = x["[object Number]"] = x[b] = x["[object RegExp]"] = x[v] = x["[object String]"] = x["[object WeakMap]"] = !1; + var N = typeof c == "object" && c && c.Object === Object && c, G = typeof self == "object" && self && self.Object === Object && self, K = N || G || Function("return this")(), j = i && !i.nodeType && i, B = j && typeof r == "object" && r && !r.nodeType && r, P = B && B.exports === j, M = P && N.process, V = function() { try { - return I && I.binding && I.binding("util"); + return M && M.binding && M.binding("util"); } catch { } }(), A = V && V.isTypedArray; @@ -1793,7 +1875,7 @@ function Eu() { ke[++se] = Ce; }), ke; } - var M, ae, le, ne = Array.prototype, ce = Function.prototype, ye = Object.prototype, ee = K["__core-js_shared__"], de = ce.toString, D = ye.hasOwnProperty, ie = (M = /[^.]+$/.exec(ee && ee.keys && ee.keys.IE_PROTO || "")) ? "Symbol(src)_1." + M : "", be = ye.toString, Te = RegExp("^" + de.call(D).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), we = P ? K.Buffer : void 0, Pe = K.Symbol, Se = K.Uint8Array, ze = ye.propertyIsEnumerable, Je = ne.splice, X = Pe ? Pe.toStringTag : void 0, Y = Object.getOwnPropertySymbols, me = we ? we.isBuffer : void 0, l = (ae = Object.keys, le = Object, function(H) { + var I, ae, le, ne = Array.prototype, ce = Function.prototype, ye = Object.prototype, ee = K["__core-js_shared__"], de = ce.toString, D = ye.hasOwnProperty, ie = (I = /[^.]+$/.exec(ee && ee.keys && ee.keys.IE_PROTO || "")) ? "Symbol(src)_1." + I : "", be = ye.toString, Te = RegExp("^" + de.call(D).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), we = P ? K.Buffer : void 0, Pe = K.Symbol, Se = K.Uint8Array, ze = ye.propertyIsEnumerable, Je = ne.splice, X = Pe ? Pe.toStringTag : void 0, q = Object.getOwnPropertySymbols, me = we ? we.isBuffer : void 0, l = (ae = Object.keys, le = Object, function(H) { return ae(le(H)); }), f = gn(K, "DataView"), w = gn(K, "Map"), U = gn(K, "Promise"), F = gn(K, "Set"), W = gn(K, "WeakMap"), he = gn(Object, "create"), je = bn(f), Re = bn(w), Xe = bn(U), He = bn(F), At = bn(W), kt = Pe ? Pe.prototype : void 0, Jt = kt ? kt.valueOf : void 0; function wt(H) { @@ -1826,14 +1908,14 @@ function Eu() { this.size = se.size; } function pt(H, se) { - var ke = ar(H), Ce = !ke && ir(H), it = !ke && !Ce && Cn(H), qe = !ke && !Ce && !it && Gr(H), st = ke || Ce || it || qe, tt = st ? function(bt, Pt) { + var ke = ar(H), Ce = !ke && ir(H), it = !ke && !Ce && Cn(H), Ye = !ke && !Ce && !it && Gr(H), st = ke || Ce || it || Ye, tt = st ? function(bt, Pt) { for (var tn = -1, ht = Array(bt); ++tn < bt; ) ht[tn] = Pt(tn); return ht; }(H.length, String) : [], Ot = tt.length; - for (var nt in H) !D.call(H, nt) || st && (nt == "length" || it && (nt == "offset" || nt == "parent") || qe && (nt == "buffer" || nt == "byteLength" || nt == "byteOffset") || Cr(nt, Ot)) || tt.push(nt); + for (var nt in H) !D.call(H, nt) || st && (nt == "length" || it && (nt == "offset" || nt == "parent") || Ye && (nt == "buffer" || nt == "byteLength" || nt == "byteOffset") || Cr(nt, Ot)) || tt.push(nt); return tt; } - function Yn(H, se) { + function qn(H, se) { for (var ke = H.length; ke--; ) if (Tr(H[ke][0], se)) return ke; return -1; } @@ -1845,8 +1927,8 @@ function Eu() { var it = !0; } catch { } - var qe = be.call(se); - return it && (ke ? se[X] = Ce : delete se[X]), qe; + var Ye = be.call(se); + return it && (ke ? se[X] = Ce : delete se[X]), Ye; }(H) : function(se) { return be.call(se); }(H); @@ -1855,19 +1937,19 @@ function Eu() { return On(H) && Sn(H) == _; } function _r(H, se, ke, Ce, it) { - return H === se || (H == null || se == null || !On(H) && !On(se) ? H != H && se != se : function(qe, st, tt, Ot, nt, bt) { - var Pt = ar(qe), tn = ar(st), ht = Pt ? "[object Array]" : ut(qe), Vt = tn ? "[object Array]" : ut(st), Pn = (ht = ht == _ ? b : ht) == b, ct = (Vt = Vt == _ ? b : Vt) == b, yn = ht == Vt; - if (yn && Cn(qe)) { + return H === se || (H == null || se == null || !On(H) && !On(se) ? H != H && se != se : function(Ye, st, tt, Ot, nt, bt) { + var Pt = ar(Ye), tn = ar(st), ht = Pt ? "[object Array]" : ut(Ye), Vt = tn ? "[object Array]" : ut(st), Pn = (ht = ht == _ ? b : ht) == b, ct = (Vt = Vt == _ ? b : Vt) == b, yn = ht == Vt; + if (yn && Cn(Ye)) { if (!Cn(st)) return !1; Pt = !0, Pn = !1; } - if (yn && !Pn) return bt || (bt = new Tt()), Pt || Gr(qe) ? Yt(qe, st, tt, Ot, nt, bt) : function(rt, Ue, qn, Kt, Or, Mt, nn) { - switch (qn) { + if (yn && !Pn) return bt || (bt = new Tt()), Pt || Gr(Ye) ? qt(Ye, st, tt, Ot, nt, bt) : function(rt, Ue, Yn, Kt, Or, It, nn) { + switch (Yn) { case "[object DataView]": if (rt.byteLength != Ue.byteLength || rt.byteOffset != Ue.byteOffset) return !1; rt = rt.buffer, Ue = Ue.buffer; case "[object ArrayBuffer]": - return !(rt.byteLength != Ue.byteLength || !Mt(new Se(rt), new Se(Ue))); + return !(rt.byteLength != Ue.byteLength || !It(new Se(rt), new Se(Ue))); case "[object Boolean]": case "[object Date]": case "[object Number]": @@ -1877,7 +1959,7 @@ function Eu() { case "[object RegExp]": case "[object String]": return rt == Ue + ""; - case m: + case g: var Wt = Q; case v: var Qt = 1 & Kt; @@ -1885,36 +1967,36 @@ function Eu() { var cr = nn.get(rt); if (cr) return cr == Ue; Kt |= 2, nn.set(rt, Ue); - var Dn = Yt(Wt(rt), Wt(Ue), Kt, Or, Mt, nn); + var Dn = qt(Wt(rt), Wt(Ue), Kt, Or, It, nn); return nn.delete(rt), Dn; case "[object Symbol]": if (Jt) return Jt.call(rt) == Jt.call(Ue); } return !1; - }(qe, st, ht, tt, Ot, nt, bt); + }(Ye, st, ht, tt, Ot, nt, bt); if (!(1 & tt)) { - var un = Pn && D.call(qe, "__wrapped__"), Nn = ct && D.call(st, "__wrapped__"); + var un = Pn && D.call(Ye, "__wrapped__"), Nn = ct && D.call(st, "__wrapped__"); if (un || Nn) { - var Eo = un ? qe.value() : qe, _o = Nn ? st.value() : st; + var Eo = un ? Ye.value() : Ye, _o = Nn ? st.value() : st; return bt || (bt = new Tt()), nt(Eo, _o, tt, Ot, bt); } } - return yn ? (bt || (bt = new Tt()), function(rt, Ue, qn, Kt, Or, Mt) { - var nn = 1 & qn, Wt = xr(rt), Qt = Wt.length, cr = xr(Ue).length; + return yn ? (bt || (bt = new Tt()), function(rt, Ue, Yn, Kt, Or, It) { + var nn = 1 & Yn, Wt = xr(rt), Qt = Wt.length, cr = xr(Ue).length; if (Qt != cr && !nn) return !1; for (var Dn = Qt; Dn--; ) { var rn = Wt[Dn]; if (!(nn ? rn in Ue : D.call(Ue, rn))) return !1; } - var yt = Mt.get(rt); - if (yt && Mt.get(Ue)) return yt == Ue; + var yt = It.get(rt); + if (yt && It.get(Ue)) return yt == Ue; var Et = !0; - Mt.set(rt, Ue), Mt.set(Ue, rt); + It.set(rt, Ue), It.set(Ue, rt); for (var ur = nn; ++Dn < Qt; ) { rn = Wt[Dn]; var dr = rt[rn], vn = Ue[rn]; - if (Kt) var Ut = nn ? Kt(vn, dr, rn, Ue, rt, Mt) : Kt(dr, vn, rn, rt, Ue, Mt); - if (!(Ut === void 0 ? dr === vn || Or(dr, vn, qn, Kt, Mt) : Ut)) { + if (Kt) var Ut = nn ? Kt(vn, dr, rn, Ue, rt, It) : Kt(dr, vn, rn, rt, Ue, It); + if (!(Ut === void 0 ? dr === vn || Or(dr, vn, Yn, Kt, It) : Ut)) { Et = !1; break; } @@ -1924,8 +2006,8 @@ function Eu() { var Ht = rt.constructor, on = Ue.constructor; Ht == on || !("constructor" in rt) || !("constructor" in Ue) || typeof Ht == "function" && Ht instanceof Ht && typeof on == "function" && on instanceof on || (Et = !1); } - return Mt.delete(rt), Mt.delete(Ue), Et; - }(qe, st, tt, Ot, nt, bt)) : !1; + return It.delete(rt), It.delete(Ue), Et; + }(Ye, st, tt, Ot, nt, bt)) : !1; }(H, se, ke, Ce, _r, it)); } function wo(H) { @@ -1936,18 +2018,18 @@ function Eu() { function en(H) { if (ke = (se = H) && se.constructor, Ce = typeof ke == "function" && ke.prototype || ye, se !== Ce) return l(H); var se, ke, Ce, it = []; - for (var qe in Object(H)) D.call(H, qe) && qe != "constructor" && it.push(qe); + for (var Ye in Object(H)) D.call(H, Ye) && Ye != "constructor" && it.push(Ye); return it; } - function Yt(H, se, ke, Ce, it, qe) { + function qt(H, se, ke, Ce, it, Ye) { var st = 1 & ke, tt = H.length, Ot = se.length; if (tt != Ot && !(st && Ot > tt)) return !1; - var nt = qe.get(H); - if (nt && qe.get(se)) return nt == se; + var nt = Ye.get(H); + if (nt && Ye.get(se)) return nt == se; var bt = -1, Pt = !0, tn = 2 & ke ? new Er() : void 0; - for (qe.set(H, se), qe.set(se, H); ++bt < tt; ) { + for (Ye.set(H, se), Ye.set(se, H); ++bt < tt; ) { var ht = H[bt], Vt = se[bt]; - if (Ce) var Pn = st ? Ce(Vt, ht, bt, se, H, qe) : Ce(ht, Vt, bt, H, se, qe); + if (Ce) var Pn = st ? Ce(Vt, ht, bt, se, H, Ye) : Ce(ht, Vt, bt, H, se, Ye); if (Pn !== void 0) { if (Pn) continue; Pt = !1; @@ -1955,29 +2037,29 @@ function Eu() { } if (tn) { if (!J(se, function(ct, yn) { - if (un = yn, !tn.has(un) && (ht === ct || it(ht, ct, ke, Ce, qe))) return tn.push(yn); + if (un = yn, !tn.has(un) && (ht === ct || it(ht, ct, ke, Ce, Ye))) return tn.push(yn); var un; })) { Pt = !1; break; } - } else if (ht !== Vt && !it(ht, Vt, ke, Ce, qe)) { + } else if (ht !== Vt && !it(ht, Vt, ke, Ce, Ye)) { Pt = !1; break; } } - return qe.delete(H), qe.delete(se), Pt; + return Ye.delete(H), Ye.delete(se), Pt; } function xr(H) { return function(se, ke, Ce) { var it = ke(se); - return ar(se) ? it : function(qe, st) { - for (var tt = -1, Ot = st.length, nt = qe.length; ++tt < Ot; ) qe[nt + tt] = st[tt]; - return qe; + return ar(se) ? it : function(Ye, st) { + for (var tt = -1, Ot = st.length, nt = Ye.length; ++tt < Ot; ) Ye[nt + tt] = st[tt]; + return Ye; }(it, Ce(se)); }(H, Xr, Sr); } - function qt(H, se) { + function Yt(H, se) { var ke, Ce, it = H.__data__; return ((Ce = typeof (ke = se)) == "string" || Ce == "number" || Ce == "symbol" || Ce == "boolean" ? ke !== "__proto__" : ke === null) ? it[typeof se == "string" ? "string" : "hash"] : it.map; } @@ -2008,27 +2090,27 @@ function Eu() { }, gt.prototype.clear = function() { this.__data__ = [], this.size = 0; }, gt.prototype.delete = function(H) { - var se = this.__data__, ke = Yn(se, H); + var se = this.__data__, ke = qn(se, H); return !(ke < 0) && (ke == se.length - 1 ? se.pop() : Je.call(se, ke, 1), --this.size, !0); }, gt.prototype.get = function(H) { - var se = this.__data__, ke = Yn(se, H); + var se = this.__data__, ke = qn(se, H); return ke < 0 ? void 0 : se[ke][1]; }, gt.prototype.has = function(H) { - return Yn(this.__data__, H) > -1; + return qn(this.__data__, H) > -1; }, gt.prototype.set = function(H, se) { - var ke = this.__data__, Ce = Yn(ke, H); + var ke = this.__data__, Ce = qn(ke, H); return Ce < 0 ? (++this.size, ke.push([H, se])) : ke[Ce][1] = se, this; }, cn.prototype.clear = function() { this.size = 0, this.__data__ = { hash: new wt(), map: new (w || gt)(), string: new wt() }; }, cn.prototype.delete = function(H) { - var se = qt(this, H).delete(H); + var se = Yt(this, H).delete(H); return this.size -= se ? 1 : 0, se; }, cn.prototype.get = function(H) { - return qt(this, H).get(H); + return Yt(this, H).get(H); }, cn.prototype.has = function(H) { - return qt(this, H).has(H); + return Yt(this, H).has(H); }, cn.prototype.set = function(H, se) { - var ke = qt(this, H), Ce = ke.size; + var ke = Yt(this, H), Ce = ke.size; return ke.set(H, se), this.size += ke.size == Ce ? 0 : 1, this; }, Er.prototype.add = Er.prototype.push = function(H) { return this.__data__.set(H, "__lodash_hash_undefined__"), this; @@ -2052,14 +2134,14 @@ function Eu() { } return ke.set(H, se), this.size = ke.size, this; }; - var Sr = Y ? function(H) { + var Sr = q ? function(H) { return H == null ? [] : (H = Object(H), function(se, ke) { - for (var Ce = -1, it = se == null ? 0 : se.length, qe = 0, st = []; ++Ce < it; ) { + for (var Ce = -1, it = se == null ? 0 : se.length, Ye = 0, st = []; ++Ce < it; ) { var tt = se[Ce]; - ke(tt, Ce, se) && (st[qe++] = tt); + ke(tt, Ce, se) && (st[Ye++] = tt); } return st; - }(Y(H), function(se) { + }(q(H), function(se) { return ze.call(H, se); })); } : function() { @@ -2084,13 +2166,13 @@ function Eu() { function Tr(H, se) { return H === se || H != H && se != se; } - (f && ut(new f(new ArrayBuffer(1))) != "[object DataView]" || w && ut(new w()) != m || U && ut(U.resolve()) != "[object Promise]" || F && ut(new F()) != v || W && ut(new W()) != "[object WeakMap]") && (ut = function(H) { + (f && ut(new f(new ArrayBuffer(1))) != "[object DataView]" || w && ut(new w()) != g || U && ut(U.resolve()) != "[object Promise]" || F && ut(new F()) != v || W && ut(new W()) != "[object WeakMap]") && (ut = function(H) { var se = Sn(H), ke = se == b ? H.constructor : void 0, Ce = ke ? bn(ke) : ""; if (Ce) switch (Ce) { case je: return "[object DataView]"; case Re: - return m; + return g; case Xe: return "[object Promise]"; case He: @@ -2133,73 +2215,73 @@ function Eu() { return (se = H) != null && Tn(se.length) && !sr(se) ? pt(H) : en(H); var se; } - o.exports = function(H, se) { + r.exports = function(H, se) { return _r(H, se); }; - }).call(this, u(15), u(33)(g)); - }, function(g, i, u) { - var c, o = function() { + }).call(this, u(15), u(33)(p)); + }, function(p, i, u) { + var c, r = function() { return c === void 0 && (c = !!(window && document && document.all && !window.atob)), c; }, _ = /* @__PURE__ */ function() { var P = {}; - return function(I) { - if (P[I] === void 0) { - var V = document.querySelector(I); + return function(M) { + if (P[M] === void 0) { + var V = document.querySelector(M); if (window.HTMLIFrameElement && V instanceof window.HTMLIFrameElement) try { V = V.contentDocument.head; } catch { V = null; } - P[I] = V; + P[M] = V; } - return P[I]; + return P[M]; }; - }(), m = []; + }(), g = []; function b(P) { - for (var I = -1, V = 0; V < m.length; V++) if (m[V].identifier === P) { - I = V; + for (var M = -1, V = 0; V < g.length; V++) if (g[V].identifier === P) { + M = V; break; } - return I; + return M; } - function v(P, I) { + function v(P, M) { for (var V = {}, A = [], J = 0; J < P.length; J++) { - var Q = P[J], z = I.base ? Q[0] + I.base : Q[0], M = V[z] || 0, ae = "".concat(z, " ").concat(M); - V[z] = M + 1; + var Q = P[J], z = M.base ? Q[0] + M.base : Q[0], I = V[z] || 0, ae = "".concat(z, " ").concat(I); + V[z] = I + 1; var le = b(ae), ne = { css: Q[1], media: Q[2], sourceMap: Q[3] }; - le !== -1 ? (m[le].references++, m[le].updater(ne)) : m.push({ identifier: ae, updater: B(ne, I), references: 1 }), A.push(ae); + le !== -1 ? (g[le].references++, g[le].updater(ne)) : g.push({ identifier: ae, updater: B(ne, M), references: 1 }), A.push(ae); } return A; } function y(P) { - var I = document.createElement("style"), V = P.attributes || {}; + var M = document.createElement("style"), V = P.attributes || {}; if (V.nonce === void 0) { var A = u.nc; A && (V.nonce = A); } if (Object.keys(V).forEach(function(Q) { - I.setAttribute(Q, V[Q]); - }), typeof P.insert == "function") P.insert(I); + M.setAttribute(Q, V[Q]); + }), typeof P.insert == "function") P.insert(M); else { var J = _(P.insert || "head"); if (!J) throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid."); - J.appendChild(I); + J.appendChild(M); } - return I; + return M; } - var C, x = (C = [], function(P, I) { - return C[P] = I, C.filter(Boolean).join(` + var C, x = (C = [], function(P, M) { + return C[P] = M, C.filter(Boolean).join(` `); }); - function N(P, I, V, A) { + function N(P, M, V, A) { var J = V ? "" : A.media ? "@media ".concat(A.media, " {").concat(A.css, "}") : A.css; - if (P.styleSheet) P.styleSheet.cssText = x(I, J); + if (P.styleSheet) P.styleSheet.cssText = x(M, J); else { var Q = document.createTextNode(J), z = P.childNodes; - z[I] && P.removeChild(z[I]), z.length ? P.insertBefore(Q, z[I]) : P.appendChild(Q); + z[M] && P.removeChild(z[M]), z.length ? P.insertBefore(Q, z[M]) : P.appendChild(Q); } } - function G(P, I, V) { + function G(P, M, V) { var A = V.css, J = V.media, Q = V.sourceMap; if (J ? P.setAttribute("media", J) : P.removeAttribute("media"), Q && typeof btoa < "u" && (A += ` /*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(Q)))), " */")), P.styleSheet) P.styleSheet.cssText = A; @@ -2209,12 +2291,12 @@ function Eu() { } } var K = null, j = 0; - function B(P, I) { + function B(P, M) { var V, A, J; - if (I.singleton) { + if (M.singleton) { var Q = j++; - V = K || (K = y(I)), A = N.bind(null, V, Q, !1), J = N.bind(null, V, Q, !0); - } else V = y(I), A = G.bind(null, V, I), J = function() { + V = K || (K = y(M)), A = N.bind(null, V, Q, !1), J = N.bind(null, V, Q, !0); + } else V = y(M), A = G.bind(null, V, M), J = function() { (function(z) { if (z.parentNode === null) return !1; z.parentNode.removeChild(z); @@ -2227,29 +2309,29 @@ function Eu() { } else J(); }; } - g.exports = function(P, I) { - (I = I || {}).singleton || typeof I.singleton == "boolean" || (I.singleton = o()); - var V = v(P = P || [], I); + p.exports = function(P, M) { + (M = M || {}).singleton || typeof M.singleton == "boolean" || (M.singleton = r()); + var V = v(P = P || [], M); return function(A) { if (A = A || [], Object.prototype.toString.call(A) === "[object Array]") { for (var J = 0; J < V.length; J++) { var Q = b(V[J]); - m[Q].references--; + g[Q].references--; } - for (var z = v(A, I), M = 0; M < V.length; M++) { - var ae = b(V[M]); - m[ae].references === 0 && (m[ae].updater(), m.splice(ae, 1)); + for (var z = v(A, M), I = 0; I < V.length; I++) { + var ae = b(V[I]); + g[ae].references === 0 && (g[ae].updater(), g.splice(ae, 1)); } V = z; } }; }; - }, function(g, i, u) { - g.exports = function(c) { - var o = []; - return o.toString = function() { + }, function(p, i, u) { + p.exports = function(c) { + var r = []; + return r.toString = function() { return this.map(function(_) { - var m = function(b, v) { + var g = function(b, v) { var y = b[1] || "", C = b[3]; if (!C) return y; if (v && typeof btoa == "function") { @@ -2263,9 +2345,9 @@ function Eu() { return [y].join(` `); }(_, c); - return _[2] ? "@media " + _[2] + "{" + m + "}" : m; + return _[2] ? "@media " + _[2] + "{" + g + "}" : g; }).join(""); - }, o.i = function(_, m) { + }, r.i = function(_, g) { typeof _ == "string" && (_ = [[null, _, ""]]); for (var b = {}, v = 0; v < this.length; v++) { var y = this[v][0]; @@ -2273,32 +2355,32 @@ function Eu() { } for (v = 0; v < _.length; v++) { var C = _[v]; - C[0] != null && b[C[0]] || (m && !C[2] ? C[2] = m : m && (C[2] = "(" + C[2] + ") and (" + m + ")"), o.push(C)); + C[0] != null && b[C[0]] || (g && !C[2] ? C[2] = g : g && (C[2] = "(" + C[2] + ") and (" + g + ")"), r.push(C)); } - }, o; + }, r; }; - }, function(g, i, u) { + }, function(p, i, u) { u.d(i, "c", function() { return _; }), u.d(i, "b", function() { - return m; + return g; }), u.d(i, "a", function() { return b; }); var c = u(3); - let o = 0; + let r = 0; function _(v) { const y = { editors: {}, options: {} }; if (typeof v[0] == "string") c.a.warn(`[CKEditorInspector] The CKEditorInspector.attach( '${v[0]}', editor ) syntax has been deprecated and will be removed in the near future. To pass a name of an editor instance, use CKEditorInspector.attach( { '${v[0]}': editor } ) instead. Learn more in https://github.com/ckeditor/ckeditor5-inspector/blob/master/README.md.`), y.editors[v[0]] = v[1]; else { - if ((C = v[0]).model && C.editing) y.editors["editor-" + ++o] = v[0]; + if ((C = v[0]).model && C.editing) y.editors["editor-" + ++r] = v[0]; else for (const x in v[0]) y.editors[x] = v[0][x]; y.options = v[1] || y.options; } var C; return y; } - function m(v) { + function g(v) { return [...v][0][0] || ""; } function b(v, y) { @@ -2306,9 +2388,9 @@ function Eu() { for (let x = 0; x < C; x++) if (v[x] != y[x]) return x; return v.length == y.length ? "same" : v.length < y.length ? "prefix" : "extension"; } - }, function(g, i, u) { + }, function(p, i, u) { u.d(i, "a", function() { - return m; + return g; }), u.d(i, "d", function() { return y; }), u.d(i, "c", function() { @@ -2318,38 +2400,38 @@ function Eu() { }), u.d(i, "b", function() { return N; }); - var c = u(2), o = u(8), _ = u(1); - const m = "https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_view", b = `<!--The View UI element content has been skipped. Find out why. -->`, v = `<!--The View raw element content has been skipped. Find out why. -->`; + var c = u(2), r = u(8), _ = u(1); + const g = "https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_view", b = `<!--The View UI element content has been skipped. Find out why. -->`, v = `<!--The View raw element content has been skipped. Find out why. -->`; function y(P) { return P ? [...P.editing.view.document.roots] : []; } - function C(P, I) { + function C(P, M) { if (!P) return []; const V = [], A = P.editing.view.document.selection; - for (const J of A.getRanges()) J.root.rootName === I && V.push({ type: "selection", start: Object(c.a)(J.start), end: Object(c.a)(J.end) }); + for (const J of A.getRanges()) J.root.rootName === M && V.push({ type: "selection", start: Object(c.a)(J.start), end: Object(c.a)(J.end) }); return V; } - function x({ currentEditor: P, currentRootName: I, ranges: V }) { - return !P || !I ? null : [G(P.editing.view.document.getRoot(I), [...V])]; + function x({ currentEditor: P, currentRootName: M, ranges: V }) { + return !P || !M ? null : [G(P.editing.view.document.getRoot(M), [...V])]; } function N(P) { - const I = { editorNode: P, properties: {}, attributes: {}, customProperties: {} }; + const M = { editorNode: P, properties: {}, attributes: {}, customProperties: {} }; if (Object(c.d)(P)) { - Object(c.g)(P) ? (I.type = "RootEditableElement", I.name = P.rootName, I.url = m + "_rooteditableelement-RootEditableElement.html") : (I.name = P.name, Object(c.b)(P) ? (I.type = "AttributeElement", I.url = m + "_attributeelement-AttributeElement.html") : Object(c.e)(P) ? (I.type = "EmptyElement", I.url = m + "_emptyelement-EmptyElement.html") : Object(c.h)(P) ? (I.type = "UIElement", I.url = m + "_uielement-UIElement.html") : Object(c.f)(P) ? (I.type = "RawElement", I.url = m + "_rawelement-RawElement.html") : Object(c.c)(P) ? (I.type = "EditableElement", I.url = m + "_editableelement-EditableElement.html") : (I.type = "ContainerElement", I.url = m + "_containerelement-ContainerElement.html")), B(P).forEach(([V, A]) => { - I.attributes[V] = { value: A }; - }), I.properties = { index: { value: P.index }, isEmpty: { value: P.isEmpty }, childCount: { value: P.childCount } }; - for (let [V, A] of P.getCustomProperties()) typeof V == "symbol" && (V = V.toString()), I.customProperties[V] = { value: A }; - } else I.name = P.data, I.type = "Text", I.url = m + "_text-Text.html", I.properties = { index: { value: P.index } }; - return I.properties = Object(_.b)(I.properties), I.customProperties = Object(_.b)(I.customProperties), I.attributes = Object(_.b)(I.attributes), I; - } - function G(P, I) { + Object(c.g)(P) ? (M.type = "RootEditableElement", M.name = P.rootName, M.url = g + "_rooteditableelement-RootEditableElement.html") : (M.name = P.name, Object(c.b)(P) ? (M.type = "AttributeElement", M.url = g + "_attributeelement-AttributeElement.html") : Object(c.e)(P) ? (M.type = "EmptyElement", M.url = g + "_emptyelement-EmptyElement.html") : Object(c.h)(P) ? (M.type = "UIElement", M.url = g + "_uielement-UIElement.html") : Object(c.f)(P) ? (M.type = "RawElement", M.url = g + "_rawelement-RawElement.html") : Object(c.c)(P) ? (M.type = "EditableElement", M.url = g + "_editableelement-EditableElement.html") : (M.type = "ContainerElement", M.url = g + "_containerelement-ContainerElement.html")), B(P).forEach(([V, A]) => { + M.attributes[V] = { value: A }; + }), M.properties = { index: { value: P.index }, isEmpty: { value: P.isEmpty }, childCount: { value: P.childCount } }; + for (let [V, A] of P.getCustomProperties()) typeof V == "symbol" && (V = V.toString()), M.customProperties[V] = { value: A }; + } else M.name = P.data, M.type = "Text", M.url = g + "_text-Text.html", M.properties = { index: { value: P.index } }; + return M.properties = Object(_.b)(M.properties), M.customProperties = Object(_.b)(M.customProperties), M.attributes = Object(_.b)(M.attributes), M; + } + function G(P, M) { const V = {}; return Object.assign(V, { index: P.index, path: P.getPath(), node: P, positionsBefore: [], positionsAfter: [] }), Object(c.d)(P) ? function(A, J) { const Q = A.node; Object.assign(A, { type: "element", children: [], positions: [] }), A.name = Q.name, Object(c.b)(Q) ? A.elementType = "attribute" : Object(c.g)(Q) ? A.elementType = "root" : Object(c.e)(Q) ? A.elementType = "empty" : Object(c.h)(Q) ? A.elementType = "ui" : Object(c.f)(Q) ? A.elementType = "raw" : A.elementType = "container", Object(c.e)(Q) ? A.presentation = { isEmpty: !0 } : Object(c.h)(Q) ? A.children.push({ type: "comment", text: b }) : Object(c.f)(Q) && A.children.push({ type: "comment", text: v }); for (const z of Q.getChildren()) A.children.push(G(z, J)); - (function(z, M) { - for (const ae of M) { + (function(z, I) { + for (const ae of I) { const le = K(z, ae); for (const ne of le) { const ce = ne.offset; @@ -2376,28 +2458,28 @@ function Eu() { } } })(A, J), A.attributes = function(z) { - const M = B(z).map(([ae, le]) => [ae, Object(_.a)(le, !1)]); - return new Map(M); + const I = B(z).map(([ae, le]) => [ae, Object(_.a)(le, !1)]); + return new Map(I); }(Q); - }(V, I) : function(A, J) { + }(V, M) : function(A, J) { Object.assign(A, { type: "text", startOffset: 0, text: A.node.data, positions: [] }); for (const Q of J) { const z = K(A, Q); A.positions.push(...z); } - }(V, I), V; + }(V, M), V; } - function K(P, I) { - const V = P.path, A = I.start.path, J = I.end.path, Q = []; - return j(V, A) && Q.push({ offset: A[A.length - 1], isEnd: !1, presentation: I.presentation || null, type: I.type, name: I.name || null }), j(V, J) && Q.push({ offset: J[J.length - 1], isEnd: !0, presentation: I.presentation || null, type: I.type, name: I.name || null }), Q; + function K(P, M) { + const V = P.path, A = M.start.path, J = M.end.path, Q = []; + return j(V, A) && Q.push({ offset: A[A.length - 1], isEnd: !1, presentation: M.presentation || null, type: M.type, name: M.name || null }), j(V, J) && Q.push({ offset: J[J.length - 1], isEnd: !0, presentation: M.presentation || null, type: M.type, name: M.name || null }), Q; } - function j(P, I) { - return P.length === I.length - 1 && Object(o.a)(P, I) === "prefix"; + function j(P, M) { + return P.length === M.length - 1 && Object(r.a)(P, M) === "prefix"; } function B(P) { - return [...P.getAttributes()].sort(([I], [V]) => I.toUpperCase() < V.toUpperCase() ? -1 : 1); + return [...P.getAttributes()].sort(([M], [V]) => M.toUpperCase() < V.toUpperCase() ? -1 : 1); } - }, function(g, i, u) { + }, function(p, i, u) { u.d(i, "d", function() { return v; }), u.d(i, "c", function() { @@ -2409,50 +2491,50 @@ function Eu() { }), u.d(i, "b", function() { return N; }); - var c = u(4), o = u(8), _ = u(1); - const m = "https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_model_", b = ["#03a9f4", "#fb8c00", "#009688", "#e91e63", "#4caf50", "#00bcd4", "#607d8b", "#cddc39", "#9c27b0", "#f44336", "#6d4c41", "#8bc34a", "#3f51b5", "#2196f3", "#f4511e", "#673ab7", "#ffb300"]; - function v(I) { - if (!I) return []; - const V = [...I.model.document.roots]; + var c = u(4), r = u(8), _ = u(1); + const g = "https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_model_", b = ["#03a9f4", "#fb8c00", "#009688", "#e91e63", "#4caf50", "#00bcd4", "#607d8b", "#cddc39", "#9c27b0", "#f44336", "#6d4c41", "#8bc34a", "#3f51b5", "#2196f3", "#f4511e", "#673ab7", "#ffb300"]; + function v(M) { + if (!M) return []; + const V = [...M.model.document.roots]; return V.filter(({ rootName: A }) => A !== "$graveyard").concat(V.filter(({ rootName: A }) => A === "$graveyard")); } - function y(I, V) { - if (!I) return []; - const A = [], J = I.model; + function y(M, V) { + if (!M) return []; + const A = [], J = M.model; for (const Q of J.document.selection.getRanges()) Q.root.rootName === V && A.push({ type: "selection", start: Object(c.a)(Q.start), end: Object(c.a)(Q.end) }); return A; } - function C(I, V) { - if (!I) return []; - const A = [], J = I.model; + function C(M, V) { + if (!M) return []; + const A = [], J = M.model; let Q = 0; for (const z of J.markers) { - const { name: M, affectsData: ae, managedUsingOperations: le } = z, ne = z.getStart(), ce = z.getEnd(); - ne.root.rootName === V && A.push({ type: "marker", marker: z, name: M, affectsData: ae, managedUsingOperations: le, presentation: { color: b[Q++ % (b.length - 1)] }, start: Object(c.a)(ne), end: Object(c.a)(ce) }); + const { name: I, affectsData: ae, managedUsingOperations: le } = z, ne = z.getStart(), ce = z.getEnd(); + ne.root.rootName === V && A.push({ type: "marker", marker: z, name: I, affectsData: ae, managedUsingOperations: le, presentation: { color: b[Q++ % (b.length - 1)] }, start: Object(c.a)(ne), end: Object(c.a)(ce) }); } return A; } - function x({ currentEditor: I, currentRootName: V, ranges: A, markers: J }) { - return I ? [G(I.model.document.getRoot(V), [...A, ...J])] : []; + function x({ currentEditor: M, currentRootName: V, ranges: A, markers: J }) { + return M ? [G(M.model.document.getRoot(V), [...A, ...J])] : []; } - function N(I, V) { + function N(M, V) { const A = { editorNode: V, properties: {}, attributes: {} }; - Object(c.c)(V) ? (Object(c.d)(V) ? (A.type = "RootElement", A.name = V.rootName, A.url = m + "rootelement-RootElement.html") : (A.type = "Element", A.name = V.name, A.url = m + "element-Element.html"), A.properties = { childCount: { value: V.childCount }, startOffset: { value: V.startOffset }, endOffset: { value: V.endOffset }, maxOffset: { value: V.maxOffset } }) : (A.name = V.data, A.type = "Text", A.url = m + "text-Text.html", A.properties = { startOffset: { value: V.startOffset }, endOffset: { value: V.endOffset }, offsetSize: { value: V.offsetSize } }), A.properties.path = { value: Object(c.b)(V) }, j(V).forEach(([J, Q]) => { + Object(c.c)(V) ? (Object(c.d)(V) ? (A.type = "RootElement", A.name = V.rootName, A.url = g + "rootelement-RootElement.html") : (A.type = "Element", A.name = V.name, A.url = g + "element-Element.html"), A.properties = { childCount: { value: V.childCount }, startOffset: { value: V.startOffset }, endOffset: { value: V.endOffset }, maxOffset: { value: V.maxOffset } }) : (A.name = V.data, A.type = "Text", A.url = g + "text-Text.html", A.properties = { startOffset: { value: V.startOffset }, endOffset: { value: V.endOffset }, offsetSize: { value: V.offsetSize } }), A.properties.path = { value: Object(c.b)(V) }, j(V).forEach(([J, Q]) => { A.attributes[J] = { value: Q }; }), A.properties = Object(_.b)(A.properties), A.attributes = Object(_.b)(A.attributes); for (const J in A.attributes) { - const Q = {}, z = I.model.schema.getAttributeProperties(J); - for (const M in z) Q[M] = { value: z[M] }; + const Q = {}, z = M.model.schema.getAttributeProperties(J); + for (const I in z) Q[I] = { value: z[I] }; A.attributes[J].subProperties = Object(_.b)(Q); } return A; } - function G(I, V) { - const A = {}, { startOffset: J, endOffset: Q } = I; - return Object.assign(A, { startOffset: J, endOffset: Q, node: I, path: I.getPath(), positionsBefore: [], positionsAfter: [] }), Object(c.c)(I) ? function(z, M) { + function G(M, V) { + const A = {}, { startOffset: J, endOffset: Q } = M; + return Object.assign(A, { startOffset: J, endOffset: Q, node: M, path: M.getPath(), positionsBefore: [], positionsAfter: [] }), Object(c.c)(M) ? function(z, I) { const ae = z.node; Object.assign(z, { type: "element", name: ae.name, children: [], maxOffset: ae.maxOffset, positions: [] }); - for (const le of ae.getChildren()) z.children.push(G(le, M)); + for (const le of ae.getChildren()) z.children.push(G(le, I)); (function(le, ne) { for (const ce of ne) { const ye = B(le, ce); @@ -2485,31 +2567,31 @@ function Eu() { } } } - })(z, M), z.attributes = K(ae); + })(z, I), z.attributes = K(ae); }(A, V) : function(z) { - const M = z.node; - Object.assign(z, { type: "text", text: M.data, positions: [], presentation: { dontRenderAttributeValue: !0 } }), z.attributes = K(M); + const I = z.node; + Object.assign(z, { type: "text", text: I.data, positions: [], presentation: { dontRenderAttributeValue: !0 } }), z.attributes = K(I); }(A), A; } - function K(I) { - const V = j(I).map(([A, J]) => [A, Object(_.a)(J, !1)]); + function K(M) { + const V = j(M).map(([A, J]) => [A, Object(_.a)(J, !1)]); return new Map(V); } - function j(I) { - return [...I.getAttributes()].sort(([V], [A]) => V < A ? -1 : 1); + function j(M) { + return [...M.getAttributes()].sort(([V], [A]) => V < A ? -1 : 1); } - function B(I, V) { - const A = I.path, J = V.start.path, Q = V.end.path, z = []; + function B(M, V) { + const A = M.path, J = V.start.path, Q = V.end.path, z = []; return P(A, J) && z.push({ offset: J[J.length - 1], isEnd: !1, presentation: V.presentation || null, type: V.type, name: V.name || null }), P(A, Q) && z.push({ offset: Q[Q.length - 1], isEnd: !0, presentation: V.presentation || null, type: V.type, name: V.name || null }), z; } - function P(I, V) { - return I.length === V.length - 1 && Object(o.a)(I, V) === "prefix"; + function P(M, V) { + return M.length === V.length - 1 && Object(r.a)(M, V) === "prefix"; } - }, function(g, i, u) { + }, function(p, i, u) { u.d(i, "a", function() { return j; }); - var c = u(0), o = u.n(c), _ = u(5), m = u.n(_); + var c = u(0), r = u.n(c), _ = u(5), g = u.n(_); class b extends c.Component { constructor(P) { super(P), this.handleClick = this.handleClick.bind(this); @@ -2518,7 +2600,7 @@ function Eu() { this.globalTreeProps.onClick(P, this.definition.node); } getChildren() { - return this.definition.children.map((P, I) => K(P, I, this.props.globalTreeProps)); + return this.definition.children.map((P, M) => K(P, M, this.props.globalTreeProps)); } get definition() { return this.props.definition; @@ -2530,108 +2612,108 @@ function Eu() { return this.definition.node === this.globalTreeProps.activeNode; } shouldComponentUpdate(P) { - return !m()(this.props, P); + return !g()(this.props, P); } } var v = u(1); class y extends c.PureComponent { render() { let P; - const I = Object(v.c)(this.props.value, 500); - return this.props.dontRenderValue || (P = o.a.createElement("span", { className: "ck-inspector-tree-node__attribute__value" }, I)), o.a.createElement("span", { className: "ck-inspector-tree-node__attribute" }, o.a.createElement("span", { className: "ck-inspector-tree-node__attribute__name", title: I }, this.props.name), P); + const M = Object(v.c)(this.props.value, 500); + return this.props.dontRenderValue || (P = r.a.createElement("span", { className: "ck-inspector-tree-node__attribute__value" }, M)), r.a.createElement("span", { className: "ck-inspector-tree-node__attribute" }, r.a.createElement("span", { className: "ck-inspector-tree-node__attribute__name", title: M }, this.props.name), P); } } class C extends c.Component { render() { - const P = this.props.definition, I = { className: ["ck-inspector-tree__position", P.type === "selection" ? "ck-inspector-tree__position_selection" : "", P.type === "marker" ? "ck-inspector-tree__position_marker" : "", P.isEnd ? "ck-inspector-tree__position_end" : ""].join(" "), style: {} }; - return P.presentation && P.presentation.color && (I.style["--ck-inspector-color-tree-position"] = P.presentation.color), P.type === "marker" && (I["data-marker-name"] = P.name), o.a.createElement("span", I, "​"); + const P = this.props.definition, M = { className: ["ck-inspector-tree__position", P.type === "selection" ? "ck-inspector-tree__position_selection" : "", P.type === "marker" ? "ck-inspector-tree__position_marker" : "", P.isEnd ? "ck-inspector-tree__position_end" : ""].join(" "), style: {} }; + return P.presentation && P.presentation.color && (M.style["--ck-inspector-color-tree-position"] = P.presentation.color), P.type === "marker" && (M["data-marker-name"] = P.name), r.a.createElement("span", M, "​"); } shouldComponentUpdate(P) { - return !m()(this.props, P); + return !g()(this.props, P); } } class x extends b { render() { - const P = this.definition, I = P.presentation, V = I && I.isEmpty, A = I && I.cssClass, J = this.getChildren(), Q = ["ck-inspector-code", "ck-inspector-tree-node", this.isActive ? "ck-inspector-tree-node_active" : "", V ? "ck-inspector-tree-node_empty" : "", A], z = [], M = []; + const P = this.definition, M = P.presentation, V = M && M.isEmpty, A = M && M.cssClass, J = this.getChildren(), Q = ["ck-inspector-code", "ck-inspector-tree-node", this.isActive ? "ck-inspector-tree-node_active" : "", V ? "ck-inspector-tree-node_empty" : "", A], z = [], I = []; P.positionsBefore && P.positionsBefore.forEach((le, ne) => { - z.push(o.a.createElement(C, { key: "position-before:" + ne, definition: le })); + z.push(r.a.createElement(C, { key: "position-before:" + ne, definition: le })); }), P.positionsAfter && P.positionsAfter.forEach((le, ne) => { - M.push(o.a.createElement(C, { key: "position-after:" + ne, definition: le })); + I.push(r.a.createElement(C, { key: "position-after:" + ne, definition: le })); }), P.positions && P.positions.forEach((le, ne) => { - J.push(o.a.createElement(C, { key: "position" + ne, definition: le })); + J.push(r.a.createElement(C, { key: "position" + ne, definition: le })); }); let ae = P.name; - return this.globalTreeProps.showElementTypes && (ae = P.elementType + ":" + ae), o.a.createElement("div", { className: Q.join(" "), onClick: this.handleClick }, z, o.a.createElement("span", { className: "ck-inspector-tree-node__name" }, o.a.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_open" }), ae, this.getAttributes(), V ? "" : o.a.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_close" })), o.a.createElement("div", { className: "ck-inspector-tree-node__content" }, J), V ? "" : o.a.createElement("span", { className: "ck-inspector-tree-node__name ck-inspector-tree-node__name_close" }, o.a.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_open" }), "/", ae, o.a.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_close" }), M)); + return this.globalTreeProps.showElementTypes && (ae = P.elementType + ":" + ae), r.a.createElement("div", { className: Q.join(" "), onClick: this.handleClick }, z, r.a.createElement("span", { className: "ck-inspector-tree-node__name" }, r.a.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_open" }), ae, this.getAttributes(), V ? "" : r.a.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_close" })), r.a.createElement("div", { className: "ck-inspector-tree-node__content" }, J), V ? "" : r.a.createElement("span", { className: "ck-inspector-tree-node__name ck-inspector-tree-node__name_close" }, r.a.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_open" }), "/", ae, r.a.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_close" }), I)); } getAttributes() { - const P = [], I = this.definition; - for (const [V, A] of I.attributes) P.push(o.a.createElement(y, { key: V, name: V, value: A })); + const P = [], M = this.definition; + for (const [V, A] of M.attributes) P.push(r.a.createElement(y, { key: V, name: V, value: A })); return P; } shouldComponentUpdate(P) { - return !m()(this.props, P); + return !g()(this.props, P); } } class N extends b { render() { - const P = this.definition, I = ["ck-inspector-tree-text", this.isActive ? "ck-inspector-tree-node_active" : ""].join(" "); + const P = this.definition, M = ["ck-inspector-tree-text", this.isActive ? "ck-inspector-tree-node_active" : ""].join(" "); let V = this.definition.text; P.positions && P.positions.length && (V = V.split(""), Array.from(P.positions).sort((J, Q) => J.offset < Q.offset ? -1 : J.offset === Q.offset ? 0 : 1).reverse().forEach((J, Q) => { - V.splice(J.offset - P.startOffset, 0, o.a.createElement(C, { key: "position" + Q, definition: J })); + V.splice(J.offset - P.startOffset, 0, r.a.createElement(C, { key: "position" + Q, definition: J })); })); const A = [V]; return P.positionsBefore && P.positionsBefore.length && P.positionsBefore.forEach((J, Q) => { - A.unshift(o.a.createElement(C, { key: "position-before:" + Q, definition: J })); + A.unshift(r.a.createElement(C, { key: "position-before:" + Q, definition: J })); }), P.positionsAfter && P.positionsAfter.length && P.positionsAfter.forEach((J, Q) => { - A.push(o.a.createElement(C, { key: "position-after:" + Q, definition: J })); - }), o.a.createElement("span", { className: I, onClick: this.handleClick }, o.a.createElement("span", { className: "ck-inspector-tree-node__content" }, this.globalTreeProps.showCompactText ? "" : this.getAttributes(), this.globalTreeProps.showCompactText ? "" : '"', A, this.globalTreeProps.showCompactText ? "" : '"')); + A.push(r.a.createElement(C, { key: "position-after:" + Q, definition: J })); + }), r.a.createElement("span", { className: M, onClick: this.handleClick }, r.a.createElement("span", { className: "ck-inspector-tree-node__content" }, this.globalTreeProps.showCompactText ? "" : this.getAttributes(), this.globalTreeProps.showCompactText ? "" : '"', A, this.globalTreeProps.showCompactText ? "" : '"')); } getAttributes() { - const P = [], I = this.definition, V = I.presentation, A = V && V.dontRenderAttributeValue; - for (const [J, Q] of I.attributes) P.push(o.a.createElement(y, { key: J, name: J, value: Q, dontRenderValue: A })); - return o.a.createElement("span", { className: "ck-inspector-tree-text__attributes" }, P); + const P = [], M = this.definition, V = M.presentation, A = V && V.dontRenderAttributeValue; + for (const [J, Q] of M.attributes) P.push(r.a.createElement(y, { key: J, name: J, value: Q, dontRenderValue: A })); + return r.a.createElement("span", { className: "ck-inspector-tree-text__attributes" }, P); } shouldComponentUpdate(P) { - return !m()(this.props, P); + return !g()(this.props, P); } } class G extends c.Component { render() { - return o.a.createElement("span", { className: "ck-inspector-tree-comment", dangerouslySetInnerHTML: { __html: this.props.definition.text } }); + return r.a.createElement("span", { className: "ck-inspector-tree-comment", dangerouslySetInnerHTML: { __html: this.props.definition.text } }); } } - function K(B, P, I) { - return B.type === "element" ? o.a.createElement(x, { key: P, definition: B, globalTreeProps: I }) : B.type === "text" ? o.a.createElement(N, { key: P, definition: B, globalTreeProps: I }) : B.type === "comment" ? o.a.createElement(G, { key: P, definition: B }) : void 0; + function K(B, P, M) { + return B.type === "element" ? r.a.createElement(x, { key: P, definition: B, globalTreeProps: M }) : B.type === "text" ? r.a.createElement(N, { key: P, definition: B, globalTreeProps: M }) : B.type === "comment" ? r.a.createElement(G, { key: P, definition: B }) : void 0; } u(34); class j extends c.Component { render() { let P; - return P = this.props.definition ? this.props.definition.map((I, V) => K(I, V, { onClick: this.props.onClick, showCompactText: this.props.showCompactText, showElementTypes: this.props.showElementTypes, activeNode: this.props.activeNode })) : "Nothing to show.", o.a.createElement("div", { className: ["ck-inspector-tree", ...this.props.className || [], this.props.textDirection ? "ck-inspector-tree_text-direction_" + this.props.textDirection : "", this.props.showCompactText ? "ck-inspector-tree_compact-text" : ""].join(" ") }, P); + return P = this.props.definition ? this.props.definition.map((M, V) => K(M, V, { onClick: this.props.onClick, showCompactText: this.props.showCompactText, showElementTypes: this.props.showElementTypes, activeNode: this.props.activeNode })) : "Nothing to show.", r.a.createElement("div", { className: ["ck-inspector-tree", ...this.props.className || [], this.props.textDirection ? "ck-inspector-tree_text-direction_" + this.props.textDirection : "", this.props.showCompactText ? "ck-inspector-tree_compact-text" : ""].join(" ") }, P); } } - }, function(g, i, u) { + }, function(p, i, u) { (function c() { if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE == "function") try { __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c); - } catch (o) { - console.error(o); + } catch (r) { + console.error(r); } - })(), g.exports = u(22); - }, function(g, i, u) { + })(), p.exports = u(22); + }, function(p, i, u) { Object.defineProperty(i, "__esModule", { value: !0 }), i.stringifyPath = i.quoteKey = i.isValidVariableName = i.IS_VALID_IDENTIFIER = i.quoteString = void 0; - const c = /[\\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, o = /* @__PURE__ */ new Map([["\b", "\\b"], [" ", "\\t"], [` + const c = /[\\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, r = /* @__PURE__ */ new Map([["\b", "\\b"], [" ", "\\t"], [` `, "\\n"], ["\f", "\\f"], ["\r", "\\r"], ["'", "\\'"], ['"', '\\"'], ["\\", "\\\\"]]); function _(v) { - return o.get(v) || "\\u" + ("0000" + v.charCodeAt(0).toString(16)).slice(-4); + return r.get(v) || "\\u" + ("0000" + v.charCodeAt(0).toString(16)).slice(-4); } i.quoteString = function(v) { return `'${v.replace(c, _)}'`; }; - const m = new Set("break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" ")); + const g = new Set("break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" ")); function b(v) { - return typeof v == "string" && !m.has(v) && i.IS_VALID_IDENTIFIER.test(v); + return typeof v == "string" && !g.has(v) && i.IS_VALID_IDENTIFIER.test(v); } i.IS_VALID_IDENTIFIER = /^[A-Za-z_$][A-Za-z0-9_$]*$/, i.isValidVariableName = b, i.quoteKey = function(v, y) { return b(v) ? v : y(v); @@ -2640,7 +2722,7 @@ function Eu() { for (const x of v) b(x) ? C += "." + x : C += `[${y(x)}]`; return C; }; - }, function(g, i) { + }, function(p, i) { function u(y, C, x, N) { var G, K = (G = N) == null || typeof G == "number" || typeof G == "boolean" ? N : x(N), j = C.get(K); return j === void 0 && (j = y.call(this, N), C.set(K, j)), j; @@ -2649,13 +2731,13 @@ function Eu() { var N = Array.prototype.slice.call(arguments, 3), G = x(N), K = C.get(G); return K === void 0 && (K = y.apply(this, N), C.set(G, K)), K; } - function o(y, C, x, N, G) { + function r(y, C, x, N, G) { return x.bind(C, y, N, G); } function _(y, C) { - return o(y, this, y.length === 1 ? u : c, C.cache.create(), C.serializer); + return r(y, this, y.length === 1 ? u : c, C.cache.create(), C.serializer); } - function m() { + function g() { return JSON.stringify(arguments); } function b() { @@ -2671,15 +2753,15 @@ function Eu() { var v = { create: function() { return new b(); } }; - g.exports = function(y, C) { - var x = C && C.cache ? C.cache : v, N = C && C.serializer ? C.serializer : m; + p.exports = function(y, C) { + var x = C && C.cache ? C.cache : v, N = C && C.serializer ? C.serializer : g; return (C && C.strategy ? C.strategy : _)(y, { cache: x, serializer: N }); - }, g.exports.strategies = { variadic: function(y, C) { - return o(y, this, c, C.cache.create(), C.serializer); + }, p.exports.strategies = { variadic: function(y, C) { + return r(y, this, c, C.cache.create(), C.serializer); }, monadic: function(y, C) { - return o(y, this, u, C.cache.create(), C.serializer); + return r(y, this, u, C.cache.create(), C.serializer); } }; - }, function(g, i) { + }, function(p, i) { var u; u = /* @__PURE__ */ function() { return this; @@ -2689,14 +2771,14 @@ function Eu() { } catch { typeof window == "object" && (u = window); } - g.exports = u; - }, function(g, i, u) { - var c = Object.getOwnPropertySymbols, o = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable; - function m(b) { + p.exports = u; + }, function(p, i, u) { + var c = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable; + function g(b) { if (b == null) throw new TypeError("Object.assign cannot be called with null or undefined"); return Object(b); } - g.exports = function() { + p.exports = function() { try { if (!Object.assign) return !1; var b = new String("abc"); @@ -2713,8 +2795,8 @@ function Eu() { return !1; } }() ? Object.assign : function(b, v) { - for (var y, C, x = m(b), N = 1; N < arguments.length; N++) { - for (var G in y = Object(arguments[N])) o.call(y, G) && (x[G] = y[G]); + for (var y, C, x = g(b), N = 1; N < arguments.length; N++) { + for (var G in y = Object(arguments[N])) r.call(y, G) && (x[G] = y[G]); if (c) { C = c(y); for (var K = 0; K < C.length; K++) _.call(y, C[K]) && (x[C[K]] = y[C[K]]); @@ -2722,10 +2804,10 @@ function Eu() { } return x; }; - }, function(g, i, u) { + }, function(p, i, u) { Object.defineProperty(i, "__esModule", { value: !0 }), i.FunctionParser = i.dedentFunction = i.functionToString = i.USED_METHOD_KEY = void 0; - const c = u(13), o = { " "() { - } }[" "].toString().charAt(0) === '"', _ = { Function: "function ", GeneratorFunction: "function* ", AsyncFunction: "async function ", AsyncGeneratorFunction: "async function* " }, m = { Function: "", GeneratorFunction: "*", AsyncFunction: "async ", AsyncGeneratorFunction: "async *" }, b = new Set("case delete else in instanceof new return throw typeof void , ; : + - ! ~ & | ^ * / % < > ? =".split(" ")); + const c = u(13), r = { " "() { + } }[" "].toString().charAt(0) === '"', _ = { Function: "function ", GeneratorFunction: "function* ", AsyncFunction: "async function ", AsyncGeneratorFunction: "async function* " }, g = { Function: "", GeneratorFunction: "*", AsyncFunction: "async ", AsyncGeneratorFunction: "async *" }, b = new Set("case delete else in instanceof new return throw typeof void , ; : + - ! ~ & | ^ * / % < > ? =".split(" ")); i.USED_METHOD_KEY = /* @__PURE__ */ new WeakSet(); function v(C) { let x; @@ -2753,7 +2835,7 @@ function Eu() { return x ? v(x) : `${this.keyPrefix}void ${this.next(this.fnString)}`; } getPrefix() { - return this.isMethodCandidate && !this.hadKeyword ? m[this.fnType] + this.keyQuote : this.keyPrefix + _[this.fnType]; + return this.isMethodCandidate && !this.hadKeyword ? g[this.fnType] + this.keyQuote : this.keyPrefix + _[this.fnType]; } tryParse() { if (this.fnString[this.fnString.length - 1] !== "}") return this.keyPrefix + this.fnString; @@ -2781,7 +2863,7 @@ function Eu() { } } tryStrippingName() { - if (o) return; + if (r) return; let x = this.pos; const N = this.fnString.substr(this.pos, this.fn.name.length); if (N === this.fn.name && (this.pos += N.length, this.consumeSyntax() === "()" && this.consumeSyntax() === "{}" && this.pos === this.fnString.length)) return !this.isMethodCandidate && c.isValidVariableName(N) || (x += N.length), this.getPrefix() + this.fnString.substr(x); @@ -2851,88 +2933,88 @@ function Eu() { } } i.FunctionParser = y; - }, function(g, i, u) { - g.exports = u(53)(); - }, function(g, i, u) { + }, function(p, i, u) { + p.exports = u(53)(); + }, function(p, i, u) { Object.defineProperty(i, "__esModule", { value: !0 }), i.stringify = void 0; - const c = u(25), o = u(13), _ = Symbol("root"); - i.stringify = function(m, b, v, y = {}) { + const c = u(25), r = u(13), _ = Symbol("root"); + i.stringify = function(g, b, v, y = {}) { const C = typeof v == "string" ? v : " ".repeat(v || 0), x = [], N = /* @__PURE__ */ new Set(), G = /* @__PURE__ */ new Map(), K = /* @__PURE__ */ new Map(); let j = 0; - const { maxDepth: B = 100, references: P = !1, skipUndefinedProperties: I = !1, maxValues: V = 1e5 } = y, A = function(M) { - return M ? (ae, le, ne, ce) => M(ae, le, (ye) => c.toString(ye, le, ne, ce), ce) : c.toString; - }(b), J = (M, ae) => { - if (++j > V || I && M === void 0 || x.length > B) return; - if (ae === void 0) return A(M, C, J, ae); + const { maxDepth: B = 100, references: P = !1, skipUndefinedProperties: M = !1, maxValues: V = 1e5 } = y, A = function(I) { + return I ? (ae, le, ne, ce) => I(ae, le, (ye) => c.toString(ye, le, ne, ce), ce) : c.toString; + }(b), J = (I, ae) => { + if (++j > V || M && I === void 0 || x.length > B) return; + if (ae === void 0) return A(I, C, J, ae); x.push(ae); - const le = Q(M, ae === _ ? void 0 : ae); + const le = Q(I, ae === _ ? void 0 : ae); return x.pop(), le; - }, Q = P ? (M, ae) => { - if (M !== null && (typeof M == "object" || typeof M == "function" || typeof M == "symbol")) { - if (G.has(M)) return K.set(x.slice(1), G.get(M)), A(void 0, C, J, ae); - G.set(M, x.slice(1)); - } - return A(M, C, J, ae); - } : (M, ae) => { - if (N.has(M)) return; - N.add(M); - const le = A(M, C, J, ae); - return N.delete(M), le; - }, z = J(m, _); + }, Q = P ? (I, ae) => { + if (I !== null && (typeof I == "object" || typeof I == "function" || typeof I == "symbol")) { + if (G.has(I)) return K.set(x.slice(1), G.get(I)), A(void 0, C, J, ae); + G.set(I, x.slice(1)); + } + return A(I, C, J, ae); + } : (I, ae) => { + if (N.has(I)) return; + N.add(I); + const le = A(I, C, J, ae); + return N.delete(I), le; + }, z = J(g, _); if (K.size) { - const M = C ? " " : "", ae = C ? ` + const I = C ? " " : "", ae = C ? ` ` : ""; - let le = `var x${M}=${M}${z};${ae}`; + let le = `var x${I}=${I}${z};${ae}`; for (const [ne, ce] of K.entries()) - le += `x${o.stringifyPath(ne, J)}${M}=${M}x${o.stringifyPath(ce, J)};${ae}`; - return `(function${M}()${M}{${ae}${le}return x;${ae}}())`; + le += `x${r.stringifyPath(ne, J)}${I}=${I}x${r.stringifyPath(ce, J)};${ae}`; + return `(function${I}()${I}{${ae}${le}return x;${ae}}())`; } return z; }; - }, function(g, i, u) { - Object.defineProperty(i, "__esModule", { value: !0 }), i.findInArray = function(c, o) { - for (var _ = 0, m = c.length; _ < m; _++) if (o.apply(o, [c[_], _, c])) return c[_]; + }, function(p, i, u) { + Object.defineProperty(i, "__esModule", { value: !0 }), i.findInArray = function(c, r) { + for (var _ = 0, g = c.length; _ < g; _++) if (r.apply(r, [c[_], _, c])) return c[_]; }, i.isFunction = function(c) { return typeof c == "function" || Object.prototype.toString.call(c) === "[object Function]"; }, i.isNum = function(c) { return typeof c == "number" && !isNaN(c); }, i.int = function(c) { return parseInt(c, 10); - }, i.dontSetMe = function(c, o, _) { - if (c[o]) return new Error("Invalid prop ".concat(o, " passed to ").concat(_, " - do not set this, set it on the child.")); + }, i.dontSetMe = function(c, r, _) { + if (c[r]) return new Error("Invalid prop ".concat(r, " passed to ").concat(_, " - do not set this, set it on the child.")); }; - }, function(g, i, u) { - var c = u(16), o = typeof Symbol == "function" && Symbol.for, _ = o ? Symbol.for("react.element") : 60103, m = o ? Symbol.for("react.portal") : 60106, b = o ? Symbol.for("react.fragment") : 60107, v = o ? Symbol.for("react.strict_mode") : 60108, y = o ? Symbol.for("react.profiler") : 60114, C = o ? Symbol.for("react.provider") : 60109, x = o ? Symbol.for("react.context") : 60110, N = o ? Symbol.for("react.forward_ref") : 60112, G = o ? Symbol.for("react.suspense") : 60113, K = o ? Symbol.for("react.memo") : 60115, j = o ? Symbol.for("react.lazy") : 60116, B = typeof Symbol == "function" && Symbol.iterator; + }, function(p, i, u) { + var c = u(16), r = typeof Symbol == "function" && Symbol.for, _ = r ? Symbol.for("react.element") : 60103, g = r ? Symbol.for("react.portal") : 60106, b = r ? Symbol.for("react.fragment") : 60107, v = r ? Symbol.for("react.strict_mode") : 60108, y = r ? Symbol.for("react.profiler") : 60114, C = r ? Symbol.for("react.provider") : 60109, x = r ? Symbol.for("react.context") : 60110, N = r ? Symbol.for("react.forward_ref") : 60112, G = r ? Symbol.for("react.suspense") : 60113, K = r ? Symbol.for("react.memo") : 60115, j = r ? Symbol.for("react.lazy") : 60116, B = typeof Symbol == "function" && Symbol.iterator; function P(X) { - for (var Y = "https://reactjs.org/docs/error-decoder.html?invariant=" + X, me = 1; me < arguments.length; me++) Y += "&args[]=" + encodeURIComponent(arguments[me]); - return "Minified React error #" + X + "; visit " + Y + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; + for (var q = "https://reactjs.org/docs/error-decoder.html?invariant=" + X, me = 1; me < arguments.length; me++) q += "&args[]=" + encodeURIComponent(arguments[me]); + return "Minified React error #" + X + "; visit " + q + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } - var I = { isMounted: function() { + var M = { isMounted: function() { return !1; }, enqueueForceUpdate: function() { }, enqueueReplaceState: function() { }, enqueueSetState: function() { } }, V = {}; - function A(X, Y, me) { - this.props = X, this.context = Y, this.refs = V, this.updater = me || I; + function A(X, q, me) { + this.props = X, this.context = q, this.refs = V, this.updater = me || M; } function J() { } - function Q(X, Y, me) { - this.props = X, this.context = Y, this.refs = V, this.updater = me || I; + function Q(X, q, me) { + this.props = X, this.context = q, this.refs = V, this.updater = me || M; } - A.prototype.isReactComponent = {}, A.prototype.setState = function(X, Y) { + A.prototype.isReactComponent = {}, A.prototype.setState = function(X, q) { if (typeof X != "object" && typeof X != "function" && X != null) throw Error(P(85)); - this.updater.enqueueSetState(this, X, Y, "setState"); + this.updater.enqueueSetState(this, X, q, "setState"); }, A.prototype.forceUpdate = function(X) { this.updater.enqueueForceUpdate(this, X, "forceUpdate"); }, J.prototype = A.prototype; var z = Q.prototype = new J(); z.constructor = Q, c(z, A.prototype), z.isPureReactComponent = !0; - var M = { current: null }, ae = Object.prototype.hasOwnProperty, le = { key: !0, ref: !0, __self: !0, __source: !0 }; - function ne(X, Y, me) { + var I = { current: null }, ae = Object.prototype.hasOwnProperty, le = { key: !0, ref: !0, __self: !0, __source: !0 }; + function ne(X, q, me) { var l, f = {}, w = null, U = null; - if (Y != null) for (l in Y.ref !== void 0 && (U = Y.ref), Y.key !== void 0 && (w = "" + Y.key), Y) ae.call(Y, l) && !le.hasOwnProperty(l) && (f[l] = Y[l]); + if (q != null) for (l in q.ref !== void 0 && (U = q.ref), q.key !== void 0 && (w = "" + q.key), q) ae.call(q, l) && !le.hasOwnProperty(l) && (f[l] = q[l]); var F = arguments.length - 2; if (F === 1) f.children = me; else if (1 < F) { @@ -2940,23 +3022,23 @@ function Eu() { f.children = W; } if (X && X.defaultProps) for (l in F = X.defaultProps) f[l] === void 0 && (f[l] = F[l]); - return { $$typeof: _, type: X, key: w, ref: U, props: f, _owner: M.current }; + return { $$typeof: _, type: X, key: w, ref: U, props: f, _owner: I.current }; } function ce(X) { return typeof X == "object" && X !== null && X.$$typeof === _; } var ye = /\/+/g, ee = []; - function de(X, Y, me, l) { + function de(X, q, me, l) { if (ee.length) { var f = ee.pop(); - return f.result = X, f.keyPrefix = Y, f.func = me, f.context = l, f.count = 0, f; + return f.result = X, f.keyPrefix = q, f.func = me, f.context = l, f.count = 0, f; } - return { result: X, keyPrefix: Y, func: me, context: l, count: 0 }; + return { result: X, keyPrefix: q, func: me, context: l, count: 0 }; } function D(X) { X.result = null, X.keyPrefix = null, X.func = null, X.context = null, X.count = 0, 10 > ee.length && ee.push(X); } - function ie(X, Y, me) { + function ie(X, q, me) { return X == null ? 0 : function l(f, w, U, F) { var W = typeof f; W !== "undefined" && W !== "boolean" || (f = null); @@ -2970,7 +3052,7 @@ function Eu() { case "object": switch (f.$$typeof) { case _: - case m: + case g: he = !0; } } @@ -2982,30 +3064,30 @@ function Eu() { else if (f === null || typeof f != "object" ? Re = null : Re = typeof (Re = B && f[B] || f["@@iterator"]) == "function" ? Re : null, typeof Re == "function") for (f = Re.call(f), je = 0; !(W = f.next()).done; ) he += l(W = W.value, Re = w + be(W, je++), U, F); else if (W === "object") throw U = "" + f, Error(P(31, U === "[object Object]" ? "object with keys {" + Object.keys(f).join(", ") + "}" : U, "")); return he; - }(X, "", Y, me); + }(X, "", q, me); } - function be(X, Y) { + function be(X, q) { return typeof X == "object" && X !== null && X.key != null ? function(me) { var l = { "=": "=0", ":": "=2" }; return "$" + ("" + me).replace(/[=:]/g, function(f) { return l[f]; }); - }(X.key) : Y.toString(36); + }(X.key) : q.toString(36); } - function Te(X, Y) { - X.func.call(X.context, Y, X.count++); + function Te(X, q) { + X.func.call(X.context, q, X.count++); } - function we(X, Y, me) { + function we(X, q, me) { var l = X.result, f = X.keyPrefix; - X = X.func.call(X.context, Y, X.count++), Array.isArray(X) ? Pe(X, l, me, function(w) { + X = X.func.call(X.context, q, X.count++), Array.isArray(X) ? Pe(X, l, me, function(w) { return w; }) : X != null && (ce(X) && (X = function(w, U) { return { $$typeof: _, type: w.type, key: U, ref: w.ref, props: w.props, _owner: w._owner }; - }(X, f + (!X.key || Y && Y.key === X.key ? "" : ("" + X.key).replace(ye, "$&/") + "/") + me)), l.push(X)); + }(X, f + (!X.key || q && q.key === X.key ? "" : ("" + X.key).replace(ye, "$&/") + "/") + me)), l.push(X)); } - function Pe(X, Y, me, l, f) { + function Pe(X, q, me, l, f) { var w = ""; - me != null && (w = ("" + me).replace(ye, "$&/") + "/"), ie(X, we, Y = de(Y, w, l, f)), D(Y); + me != null && (w = ("" + me).replace(ye, "$&/") + "/"), ie(X, we, q = de(q, w, l, f)), D(q); } var Se = { current: null }; function ze() { @@ -3013,32 +3095,32 @@ function Eu() { if (X === null) throw Error(P(321)); return X; } - var Je = { ReactCurrentDispatcher: Se, ReactCurrentBatchConfig: { suspense: null }, ReactCurrentOwner: M, IsSomeRendererActing: { current: !1 }, assign: c }; - i.Children = { map: function(X, Y, me) { + var Je = { ReactCurrentDispatcher: Se, ReactCurrentBatchConfig: { suspense: null }, ReactCurrentOwner: I, IsSomeRendererActing: { current: !1 }, assign: c }; + i.Children = { map: function(X, q, me) { if (X == null) return X; var l = []; - return Pe(X, l, null, Y, me), l; - }, forEach: function(X, Y, me) { + return Pe(X, l, null, q, me), l; + }, forEach: function(X, q, me) { if (X == null) return X; - ie(X, Te, Y = de(null, null, Y, me)), D(Y); + ie(X, Te, q = de(null, null, q, me)), D(q); }, count: function(X) { return ie(X, function() { return null; }, null); }, toArray: function(X) { - var Y = []; - return Pe(X, Y, null, function(me) { + var q = []; + return Pe(X, q, null, function(me) { return me; - }), Y; + }), q; }, only: function(X) { if (!ce(X)) throw Error(P(143)); return X; - } }, i.Component = A, i.Fragment = b, i.Profiler = y, i.PureComponent = Q, i.StrictMode = v, i.Suspense = G, i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Je, i.cloneElement = function(X, Y, me) { + } }, i.Component = A, i.Fragment = b, i.Profiler = y, i.PureComponent = Q, i.StrictMode = v, i.Suspense = G, i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Je, i.cloneElement = function(X, q, me) { if (X == null) throw Error(P(267, X)); var l = c({}, X.props), f = X.key, w = X.ref, U = X._owner; - if (Y != null) { - if (Y.ref !== void 0 && (w = Y.ref, U = M.current), Y.key !== void 0 && (f = "" + Y.key), X.type && X.type.defaultProps) var F = X.type.defaultProps; - for (W in Y) ae.call(Y, W) && !le.hasOwnProperty(W) && (l[W] = Y[W] === void 0 && F !== void 0 ? F[W] : Y[W]); + if (q != null) { + if (q.ref !== void 0 && (w = q.ref, U = I.current), q.key !== void 0 && (f = "" + q.key), X.type && X.type.defaultProps) var F = X.type.defaultProps; + for (W in q) ae.call(q, W) && !le.hasOwnProperty(W) && (l[W] = q[W] === void 0 && F !== void 0 ? F[W] : q[W]); } var W = arguments.length - 2; if (W === 1) l.children = me; @@ -3048,50 +3130,50 @@ function Eu() { l.children = F; } return { $$typeof: _, type: X.type, key: f, ref: w, props: l, _owner: U }; - }, i.createContext = function(X, Y) { - return Y === void 0 && (Y = null), (X = { $$typeof: x, _calculateChangedBits: Y, _currentValue: X, _currentValue2: X, _threadCount: 0, Provider: null, Consumer: null }).Provider = { $$typeof: C, _context: X }, X.Consumer = X; + }, i.createContext = function(X, q) { + return q === void 0 && (q = null), (X = { $$typeof: x, _calculateChangedBits: q, _currentValue: X, _currentValue2: X, _threadCount: 0, Provider: null, Consumer: null }).Provider = { $$typeof: C, _context: X }, X.Consumer = X; }, i.createElement = ne, i.createFactory = function(X) { - var Y = ne.bind(null, X); - return Y.type = X, Y; + var q = ne.bind(null, X); + return q.type = X, q; }, i.createRef = function() { return { current: null }; }, i.forwardRef = function(X) { return { $$typeof: N, render: X }; }, i.isValidElement = ce, i.lazy = function(X) { return { $$typeof: j, _ctor: X, _status: -1, _result: null }; - }, i.memo = function(X, Y) { - return { $$typeof: K, type: X, compare: Y === void 0 ? null : Y }; - }, i.useCallback = function(X, Y) { - return ze().useCallback(X, Y); - }, i.useContext = function(X, Y) { - return ze().useContext(X, Y); + }, i.memo = function(X, q) { + return { $$typeof: K, type: X, compare: q === void 0 ? null : q }; + }, i.useCallback = function(X, q) { + return ze().useCallback(X, q); + }, i.useContext = function(X, q) { + return ze().useContext(X, q); }, i.useDebugValue = function() { - }, i.useEffect = function(X, Y) { - return ze().useEffect(X, Y); - }, i.useImperativeHandle = function(X, Y, me) { - return ze().useImperativeHandle(X, Y, me); - }, i.useLayoutEffect = function(X, Y) { - return ze().useLayoutEffect(X, Y); - }, i.useMemo = function(X, Y) { - return ze().useMemo(X, Y); - }, i.useReducer = function(X, Y, me) { - return ze().useReducer(X, Y, me); + }, i.useEffect = function(X, q) { + return ze().useEffect(X, q); + }, i.useImperativeHandle = function(X, q, me) { + return ze().useImperativeHandle(X, q, me); + }, i.useLayoutEffect = function(X, q) { + return ze().useLayoutEffect(X, q); + }, i.useMemo = function(X, q) { + return ze().useMemo(X, q); + }, i.useReducer = function(X, q, me) { + return ze().useReducer(X, q, me); }, i.useRef = function(X) { return ze().useRef(X); }, i.useState = function(X) { return ze().useState(X); }, i.version = "16.14.0"; - }, function(g, i, u) { - var c = u(0), o = u(16), _ = u(23); - function m(e) { + }, function(p, i, u) { + var c = u(0), r = u(16), _ = u(23); + function g(e) { for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++) t += "&args[]=" + encodeURIComponent(arguments[n]); return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } - if (!c) throw Error(m(227)); - function b(e, t, n, r, a, p, k, T, Z) { - var q = Array.prototype.slice.call(arguments, 3); + if (!c) throw Error(g(227)); + function b(e, t, n, o, a, h, k, T, Z) { + var Y = Array.prototype.slice.call(arguments, 3); try { - t.apply(n, q); + t.apply(n, Y); } catch (ge) { this.onError(ge); } @@ -3099,53 +3181,53 @@ function Eu() { var v = !1, y = null, C = !1, x = null, N = { onError: function(e) { v = !0, y = e; } }; - function G(e, t, n, r, a, p, k, T, Z) { + function G(e, t, n, o, a, h, k, T, Z) { v = !1, y = null, b.apply(N, arguments); } var K = null, j = null, B = null; function P(e, t, n) { - var r = e.type || "unknown-event"; - e.currentTarget = B(n), function(a, p, k, T, Z, q, ge, De, We) { + var o = e.type || "unknown-event"; + e.currentTarget = B(n), function(a, h, k, T, Z, Y, ge, De, We) { if (G.apply(this, arguments), v) { - if (!v) throw Error(m(198)); + if (!v) throw Error(g(198)); var ot = y; v = !1, y = null, C || (C = !0, x = ot); } - }(r, t, void 0, e), e.currentTarget = null; + }(o, t, void 0, e), e.currentTarget = null; } - var I = null, V = {}; + var M = null, V = {}; function A() { - if (I) for (var e in V) { - var t = V[e], n = I.indexOf(e); - if (!(-1 < n)) throw Error(m(96, e)); + if (M) for (var e in V) { + var t = V[e], n = M.indexOf(e); + if (!(-1 < n)) throw Error(g(96, e)); if (!Q[n]) { - if (!t.extractEvents) throw Error(m(97, e)); - for (var r in Q[n] = t, n = t.eventTypes) { - var a = void 0, p = n[r], k = t, T = r; - if (z.hasOwnProperty(T)) throw Error(m(99, T)); - z[T] = p; - var Z = p.phasedRegistrationNames; + if (!t.extractEvents) throw Error(g(97, e)); + for (var o in Q[n] = t, n = t.eventTypes) { + var a = void 0, h = n[o], k = t, T = o; + if (z.hasOwnProperty(T)) throw Error(g(99, T)); + z[T] = h; + var Z = h.phasedRegistrationNames; if (Z) { for (a in Z) Z.hasOwnProperty(a) && J(Z[a], k, T); a = !0; - } else p.registrationName ? (J(p.registrationName, k, T), a = !0) : a = !1; - if (!a) throw Error(m(98, r, e)); + } else h.registrationName ? (J(h.registrationName, k, T), a = !0) : a = !1; + if (!a) throw Error(g(98, o, e)); } } } } function J(e, t, n) { - if (M[e]) throw Error(m(100, e)); - M[e] = t, ae[e] = t.eventTypes[n].dependencies; + if (I[e]) throw Error(g(100, e)); + I[e] = t, ae[e] = t.eventTypes[n].dependencies; } - var Q = [], z = {}, M = {}, ae = {}; + var Q = [], z = {}, I = {}, ae = {}; function le(e) { var t, n = !1; for (t in e) if (e.hasOwnProperty(t)) { - var r = e[t]; - if (!V.hasOwnProperty(t) || V[t] !== r) { - if (V[t]) throw Error(m(102, t)); - V[t] = r, n = !0; + var o = e[t]; + if (!V.hasOwnProperty(t) || V[t] !== o) { + if (V[t]) throw Error(g(102, t)); + V[t] = o, n = !0; } } n && A(); @@ -3153,7 +3235,7 @@ function Eu() { var ne = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), ce = null, ye = null, ee = null; function de(e) { if (e = j(e)) { - if (typeof ce != "function") throw Error(m(280)); + if (typeof ce != "function") throw Error(g(280)); var t = e.stateNode; t && (t = K(t), ce(e.stateNode, e.type, t)); } @@ -3170,8 +3252,8 @@ function Eu() { function be(e, t) { return e(t); } - function Te(e, t, n, r, a) { - return e(t, n, r, a); + function Te(e, t, n, o, a) { + return e(t, n, o, a); } function we() { } @@ -3188,9 +3270,9 @@ function Eu() { ze = !1, Je(); } } - var Y = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, me = Object.prototype.hasOwnProperty, l = {}, f = {}; - function w(e, t, n, r, a, p) { - this.acceptsBooleans = t === 2 || t === 3 || t === 4, this.attributeName = r, this.attributeNamespace = a, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = p; + var q = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, me = Object.prototype.hasOwnProperty, l = {}, f = {}; + function w(e, t, n, o, a, h) { + this.acceptsBooleans = t === 2 || t === 3 || t === 4, this.attributeName = o, this.attributeNamespace = a, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = h; } var U = {}; "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e) { @@ -3232,21 +3314,21 @@ function Eu() { U[e] = new w(e, 1, !1, e.toLowerCase(), null, !0); }); var he = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - function je(e, t, n, r) { + function je(e, t, n, o) { var a = U.hasOwnProperty(t) ? U[t] : null; - (a !== null ? a.type === 0 : !r && 2 < t.length && (t[0] === "o" || t[0] === "O") && (t[1] === "n" || t[1] === "N")) || (function(p, k, T, Z) { - if (k == null || function(q, ge, De, We) { + (a !== null ? a.type === 0 : !o && 2 < t.length && (t[0] === "o" || t[0] === "O") && (t[1] === "n" || t[1] === "N")) || (function(h, k, T, Z) { + if (k == null || function(Y, ge, De, We) { if (De !== null && De.type === 0) return !1; switch (typeof ge) { case "function": case "symbol": return !0; case "boolean": - return !We && (De !== null ? !De.acceptsBooleans : (q = q.toLowerCase().slice(0, 5)) !== "data-" && q !== "aria-"); + return !We && (De !== null ? !De.acceptsBooleans : (Y = Y.toLowerCase().slice(0, 5)) !== "data-" && Y !== "aria-"); default: return !1; } - }(p, k, T, Z)) return !0; + }(h, k, T, Z)) return !0; if (Z) return !1; if (T !== null) switch (T.type) { case 3: @@ -3259,16 +3341,16 @@ function Eu() { return isNaN(k) || 1 > k; } return !1; - }(t, n, a, r) && (n = null), r || a === null ? function(p) { - return !!me.call(f, p) || !me.call(l, p) && (Y.test(p) ? f[p] = !0 : (l[p] = !0, !1)); - }(t) && (n === null ? e.removeAttribute(t) : e.setAttribute(t, "" + n)) : a.mustUseProperty ? e[a.propertyName] = n === null ? a.type !== 3 && "" : n : (t = a.attributeName, r = a.attributeNamespace, n === null ? e.removeAttribute(t) : (n = (a = a.type) === 3 || a === 4 && n === !0 ? "" : "" + n, r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n)))); + }(t, n, a, o) && (n = null), o || a === null ? function(h) { + return !!me.call(f, h) || !me.call(l, h) && (q.test(h) ? f[h] = !0 : (l[h] = !0, !1)); + }(t) && (n === null ? e.removeAttribute(t) : e.setAttribute(t, "" + n)) : a.mustUseProperty ? e[a.propertyName] = n === null ? a.type !== 3 && "" : n : (t = a.attributeName, o = a.attributeNamespace, n === null ? e.removeAttribute(t) : (n = (a = a.type) === 3 || a === 4 && n === !0 ? "" : "" + n, o ? e.setAttributeNS(o, t, n) : e.setAttribute(t, n)))); } he.hasOwnProperty("ReactCurrentDispatcher") || (he.ReactCurrentDispatcher = { current: null }), he.hasOwnProperty("ReactCurrentBatchConfig") || (he.ReactCurrentBatchConfig = { suspense: null }); - var Re = /^(.*)[\\\/]/, Xe = typeof Symbol == "function" && Symbol.for, He = Xe ? Symbol.for("react.element") : 60103, At = Xe ? Symbol.for("react.portal") : 60106, kt = Xe ? Symbol.for("react.fragment") : 60107, Jt = Xe ? Symbol.for("react.strict_mode") : 60108, wt = Xe ? Symbol.for("react.profiler") : 60114, gt = Xe ? Symbol.for("react.provider") : 60109, cn = Xe ? Symbol.for("react.context") : 60110, Er = Xe ? Symbol.for("react.concurrent_mode") : 60111, Tt = Xe ? Symbol.for("react.forward_ref") : 60112, pt = Xe ? Symbol.for("react.suspense") : 60113, Yn = Xe ? Symbol.for("react.suspense_list") : 60120, Sn = Xe ? Symbol.for("react.memo") : 60115, or = Xe ? Symbol.for("react.lazy") : 60116, _r = Xe ? Symbol.for("react.block") : 60121, wo = typeof Symbol == "function" && Symbol.iterator; + var Re = /^(.*)[\\\/]/, Xe = typeof Symbol == "function" && Symbol.for, He = Xe ? Symbol.for("react.element") : 60103, At = Xe ? Symbol.for("react.portal") : 60106, kt = Xe ? Symbol.for("react.fragment") : 60107, Jt = Xe ? Symbol.for("react.strict_mode") : 60108, wt = Xe ? Symbol.for("react.profiler") : 60114, gt = Xe ? Symbol.for("react.provider") : 60109, cn = Xe ? Symbol.for("react.context") : 60110, Er = Xe ? Symbol.for("react.concurrent_mode") : 60111, Tt = Xe ? Symbol.for("react.forward_ref") : 60112, pt = Xe ? Symbol.for("react.suspense") : 60113, qn = Xe ? Symbol.for("react.suspense_list") : 60120, Sn = Xe ? Symbol.for("react.memo") : 60115, or = Xe ? Symbol.for("react.lazy") : 60116, _r = Xe ? Symbol.for("react.block") : 60121, wo = typeof Symbol == "function" && Symbol.iterator; function en(e) { return e === null || typeof e != "object" ? null : typeof (e = wo && e[wo] || e["@@iterator"]) == "function" ? e : null; } - function Yt(e) { + function qt(e) { if (e == null) return null; if (typeof e == "function") return e.displayName || e.name || null; if (typeof e == "string") return e; @@ -3283,7 +3365,7 @@ function Eu() { return "StrictMode"; case pt: return "Suspense"; - case Yn: + case qn: return "SuspenseList"; } if (typeof e == "object") switch (e.$$typeof) { @@ -3295,11 +3377,11 @@ function Eu() { var t = e.render; return t = t.displayName || t.name || "", e.displayName || (t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"); case Sn: - return Yt(e.type); + return qt(e.type); case _r: - return Yt(e.render); + return qt(e.render); case or: - if (e = e._status === 1 ? e._result : null) return Yt(e); + if (e = e._status === 1 ? e._result : null) return qt(e); } return null; } @@ -3316,15 +3398,15 @@ function Eu() { var n = ""; break e; default: - var r = e._debugOwner, a = e._debugSource, p = Yt(e.type); - n = null, r && (n = Yt(r.type)), r = p, p = "", a ? p = " (at " + a.fileName.replace(Re, "") + ":" + a.lineNumber + ")" : n && (p = " (created by " + n + ")"), n = ` - in ` + (r || "Unknown") + p; + var o = e._debugOwner, a = e._debugSource, h = qt(e.type); + n = null, o && (n = qt(o.type)), o = h, h = "", a ? h = " (at " + a.fileName.replace(Re, "") + ":" + a.lineNumber + ")" : n && (h = " (created by " + n + ")"), n = ` + in ` + (o || "Unknown") + h; } t += n, e = e.return; } while (e); return t; } - function qt(e) { + function Yt(e) { switch (typeof e) { case "boolean": case "number": @@ -3342,14 +3424,14 @@ function Eu() { } function Sr(e) { e._valueTracker || (e._valueTracker = function(t) { - var n = gn(t) ? "checked" : "value", r = Object.getOwnPropertyDescriptor(t.constructor.prototype, n), a = "" + t[n]; - if (!t.hasOwnProperty(n) && r !== void 0 && typeof r.get == "function" && typeof r.set == "function") { - var p = r.get, k = r.set; + var n = gn(t) ? "checked" : "value", o = Object.getOwnPropertyDescriptor(t.constructor.prototype, n), a = "" + t[n]; + if (!t.hasOwnProperty(n) && o !== void 0 && typeof o.get == "function" && typeof o.set == "function") { + var h = o.get, k = o.set; return Object.defineProperty(t, n, { configurable: !0, get: function() { - return p.call(this); + return h.call(this); }, set: function(T) { a = "" + T, k.call(this, T); - } }), Object.defineProperty(t, n, { enumerable: r.enumerable }), { getValue: function() { + } }), Object.defineProperty(t, n, { enumerable: o.enumerable }), { getValue: function() { return a; }, setValue: function(T) { a = "" + T; @@ -3363,31 +3445,31 @@ function Eu() { if (!e) return !1; var t = e._valueTracker; if (!t) return !0; - var n = t.getValue(), r = ""; - return e && (r = gn(e) ? e.checked ? "true" : "false" : e.value), (e = r) !== n && (t.setValue(e), !0); + var n = t.getValue(), o = ""; + return e && (o = gn(e) ? e.checked ? "true" : "false" : e.value), (e = o) !== n && (t.setValue(e), !0); } function Cr(e, t) { var n = t.checked; - return o({}, t, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: n ?? e._wrapperState.initialChecked }); + return r({}, t, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: n ?? e._wrapperState.initialChecked }); } function bn(e, t) { - var n = t.defaultValue == null ? "" : t.defaultValue, r = t.checked != null ? t.checked : t.defaultChecked; - n = qt(t.value != null ? t.value : n), e._wrapperState = { initialChecked: r, initialValue: n, controlled: t.type === "checkbox" || t.type === "radio" ? t.checked != null : t.value != null }; + var n = t.defaultValue == null ? "" : t.defaultValue, o = t.checked != null ? t.checked : t.defaultChecked; + n = Yt(t.value != null ? t.value : n), e._wrapperState = { initialChecked: o, initialValue: n, controlled: t.type === "checkbox" || t.type === "radio" ? t.checked != null : t.value != null }; } function Tr(e, t) { (t = t.checked) != null && je(e, "checked", t, !1); } function ir(e, t) { Tr(e, t); - var n = qt(t.value), r = t.type; - if (n != null) r === "number" ? (n === 0 && e.value === "" || e.value != n) && (e.value = "" + n) : e.value !== "" + n && (e.value = "" + n); - else if (r === "submit" || r === "reset") return void e.removeAttribute("value"); - t.hasOwnProperty("value") ? Cn(e, t.type, n) : t.hasOwnProperty("defaultValue") && Cn(e, t.type, qt(t.defaultValue)), t.checked == null && t.defaultChecked != null && (e.defaultChecked = !!t.defaultChecked); + var n = Yt(t.value), o = t.type; + if (n != null) o === "number" ? (n === 0 && e.value === "" || e.value != n) && (e.value = "" + n) : e.value !== "" + n && (e.value = "" + n); + else if (o === "submit" || o === "reset") return void e.removeAttribute("value"); + t.hasOwnProperty("value") ? Cn(e, t.type, n) : t.hasOwnProperty("defaultValue") && Cn(e, t.type, Yt(t.defaultValue)), t.checked == null && t.defaultChecked != null && (e.defaultChecked = !!t.defaultChecked); } function ar(e, t, n) { if (t.hasOwnProperty("value") || t.hasOwnProperty("defaultValue")) { - var r = t.type; - if (!(r !== "submit" && r !== "reset" || t.value !== void 0 && t.value !== null)) return; + var o = t.type; + if (!(o !== "submit" && o !== "reset" || t.value !== void 0 && t.value !== null)) return; t = "" + e._wrapperState.initialValue, n || t === e.value || (e.value = t), e.defaultValue = t; } (n = e.name) !== "" && (e.name = ""), e.defaultChecked = !!e._wrapperState.initialChecked, n !== "" && (e.name = n); @@ -3396,48 +3478,48 @@ function Eu() { t === "number" && e.ownerDocument.activeElement === e || (n == null ? e.defaultValue = "" + e._wrapperState.initialValue : e.defaultValue !== "" + n && (e.defaultValue = "" + n)); } function sr(e, t) { - return e = o({ children: void 0 }, t), (t = function(n) { - var r = ""; + return e = r({ children: void 0 }, t), (t = function(n) { + var o = ""; return c.Children.forEach(n, function(a) { - a != null && (r += a); - }), r; + a != null && (o += a); + }), o; }(t.children)) && (e.children = t), e; } - function Tn(e, t, n, r) { + function Tn(e, t, n, o) { if (e = e.options, t) { t = {}; for (var a = 0; a < n.length; a++) t["$" + n[a]] = !0; - for (n = 0; n < e.length; n++) a = t.hasOwnProperty("$" + e[n].value), e[n].selected !== a && (e[n].selected = a), a && r && (e[n].defaultSelected = !0); + for (n = 0; n < e.length; n++) a = t.hasOwnProperty("$" + e[n].value), e[n].selected !== a && (e[n].selected = a), a && o && (e[n].defaultSelected = !0); } else { - for (n = "" + qt(n), t = null, a = 0; a < e.length; a++) { - if (e[a].value === n) return e[a].selected = !0, void (r && (e[a].defaultSelected = !0)); + for (n = "" + Yt(n), t = null, a = 0; a < e.length; a++) { + if (e[a].value === n) return e[a].selected = !0, void (o && (e[a].defaultSelected = !0)); t !== null || e[a].disabled || (t = e[a]); } t !== null && (t.selected = !0); } } function lr(e, t) { - if (t.dangerouslySetInnerHTML != null) throw Error(m(91)); - return o({}, t, { value: void 0, defaultValue: void 0, children: "" + e._wrapperState.initialValue }); + if (t.dangerouslySetInnerHTML != null) throw Error(g(91)); + return r({}, t, { value: void 0, defaultValue: void 0, children: "" + e._wrapperState.initialValue }); } function On(e, t) { var n = t.value; if (n == null) { if (n = t.children, t = t.defaultValue, n != null) { - if (t != null) throw Error(m(92)); + if (t != null) throw Error(g(92)); if (Array.isArray(n)) { - if (!(1 >= n.length)) throw Error(m(93)); + if (!(1 >= n.length)) throw Error(g(93)); n = n[0]; } t = n; } t == null && (t = ""), n = t; } - e._wrapperState = { initialValue: qt(n) }; + e._wrapperState = { initialValue: Yt(n) }; } function Gr(e, t) { - var n = qt(t.value), r = qt(t.defaultValue); - n != null && ((n = "" + n) !== e.value && (e.value = n), t.defaultValue == null && e.defaultValue !== n && (e.defaultValue = n)), r != null && (e.defaultValue = "" + r); + var n = Yt(t.value), o = Yt(t.defaultValue); + n != null && ((n = "" + n) !== e.value && (e.value = n), t.defaultValue == null && e.defaultValue !== n && (e.defaultValue = n)), o != null && (e.defaultValue = "" + o); } function Xr(e) { var t = e.textContent; @@ -3457,8 +3539,8 @@ function Eu() { function Ce(e, t) { return e == null || e === "http://www.w3.org/1999/xhtml" ? ke(t) : e === "http://www.w3.org/2000/svg" && t === "foreignObject" ? "http://www.w3.org/1999/xhtml" : e; } - var it, qe = function(e) { - return typeof MSApp < "u" && MSApp.execUnsafeLocalFunction ? function(t, n, r, a) { + var it, Ye = function(e) { + return typeof MSApp < "u" && MSApp.execUnsafeLocalFunction ? function(t, n, o, a) { MSApp.execUnsafeLocalFunction(function() { return e(t, n); }); @@ -3514,22 +3596,22 @@ function Eu() { return null; } function _o(e) { - if (Nn(e) !== e) throw Error(m(188)); + if (Nn(e) !== e) throw Error(g(188)); } function rt(e) { if (!(e = function(n) { - var r = n.alternate; - if (!r) { - if ((r = Nn(n)) === null) throw Error(m(188)); - return r !== n ? null : n; + var o = n.alternate; + if (!o) { + if ((o = Nn(n)) === null) throw Error(g(188)); + return o !== n ? null : n; } - for (var a = n, p = r; ; ) { + for (var a = n, h = o; ; ) { var k = a.return; if (k === null) break; var T = k.alternate; if (T === null) { - if ((p = k.return) !== null) { - a = p; + if ((h = k.return) !== null) { + a = h; continue; } break; @@ -3537,43 +3619,43 @@ function Eu() { if (k.child === T.child) { for (T = k.child; T; ) { if (T === a) return _o(k), n; - if (T === p) return _o(k), r; + if (T === h) return _o(k), o; T = T.sibling; } - throw Error(m(188)); + throw Error(g(188)); } - if (a.return !== p.return) a = k, p = T; + if (a.return !== h.return) a = k, h = T; else { - for (var Z = !1, q = k.child; q; ) { - if (q === a) { - Z = !0, a = k, p = T; + for (var Z = !1, Y = k.child; Y; ) { + if (Y === a) { + Z = !0, a = k, h = T; break; } - if (q === p) { - Z = !0, p = k, a = T; + if (Y === h) { + Z = !0, h = k, a = T; break; } - q = q.sibling; + Y = Y.sibling; } if (!Z) { - for (q = T.child; q; ) { - if (q === a) { - Z = !0, a = T, p = k; + for (Y = T.child; Y; ) { + if (Y === a) { + Z = !0, a = T, h = k; break; } - if (q === p) { - Z = !0, p = T, a = k; + if (Y === h) { + Z = !0, h = T, a = k; break; } - q = q.sibling; + Y = Y.sibling; } - if (!Z) throw Error(m(189)); + if (!Z) throw Error(g(189)); } } - if (a.alternate !== p) throw Error(m(190)); + if (a.alternate !== h) throw Error(g(190)); } - if (a.tag !== 3) throw Error(m(188)); - return a.stateNode.current === a ? n : r; + if (a.tag !== 3) throw Error(g(188)); + return a.stateNode.current === a ? n : o; }(e))) return null; for (var t = e; ; ) { if (t.tag === 5 || t.tag === 6) return t; @@ -3590,24 +3672,24 @@ function Eu() { return null; } function Ue(e, t) { - if (t == null) throw Error(m(30)); + if (t == null) throw Error(g(30)); return e == null ? t : Array.isArray(e) ? Array.isArray(t) ? (e.push.apply(e, t), e) : (e.push(t), e) : Array.isArray(t) ? [e].concat(t) : [e, t]; } - function qn(e, t, n) { + function Yn(e, t, n) { Array.isArray(e) ? e.forEach(t, n) : e && t.call(n, e); } var Kt = null; function Or(e) { if (e) { var t = e._dispatchListeners, n = e._dispatchInstances; - if (Array.isArray(t)) for (var r = 0; r < t.length && !e.isPropagationStopped(); r++) P(e, t[r], n[r]); + if (Array.isArray(t)) for (var o = 0; o < t.length && !e.isPropagationStopped(); o++) P(e, t[o], n[o]); else t && P(e, t, n); e._dispatchListeners = null, e._dispatchInstances = null, e.isPersistent() || e.constructor.release(e); } } - function Mt(e) { + function It(e) { if (e !== null && (Kt = Ue(Kt, e)), e = Kt, Kt = null, e) { - if (qn(e, Or), Kt) throw Error(m(95)); + if (Yn(e, Or), Kt) throw Error(g(95)); if (C) throw e = x, C = !1, x = null, e; } } @@ -3623,12 +3705,12 @@ function Eu() { function cr(e) { e.topLevelType = null, e.nativeEvent = null, e.targetInst = null, e.ancestors.length = 0, 10 > Qt.length && Qt.push(e); } - function Dn(e, t, n, r) { + function Dn(e, t, n, o) { if (Qt.length) { var a = Qt.pop(); - return a.topLevelType = e, a.eventSystemFlags = r, a.nativeEvent = t, a.targetInst = n, a; + return a.topLevelType = e, a.eventSystemFlags = o, a.nativeEvent = t, a.targetInst = n, a; } - return { topLevelType: e, eventSystemFlags: r, nativeEvent: t, targetInst: n, ancestors: [] }; + return { topLevelType: e, eventSystemFlags: o, nativeEvent: t, targetInst: n, ancestors: [] }; } function rn(e) { var t = e.targetInst, n = t; @@ -3637,26 +3719,26 @@ function Eu() { e.ancestors.push(n); break; } - var r = n; - if (r.tag === 3) r = r.stateNode.containerInfo; + var o = n; + if (o.tag === 3) o = o.stateNode.containerInfo; else { - for (; r.return; ) r = r.return; - r = r.tag !== 3 ? null : r.stateNode.containerInfo; + for (; o.return; ) o = o.return; + o = o.tag !== 3 ? null : o.stateNode.containerInfo; } - if (!r) break; - (t = n.tag) !== 5 && t !== 6 || e.ancestors.push(n), n = Ir(r); + if (!o) break; + (t = n.tag) !== 5 && t !== 6 || e.ancestors.push(n), n = Mr(o); } while (n); for (n = 0; n < e.ancestors.length; n++) { t = e.ancestors[n]; var a = nn(e.nativeEvent); - r = e.topLevelType; - var p = e.nativeEvent, k = e.eventSystemFlags; + o = e.topLevelType; + var h = e.nativeEvent, k = e.eventSystemFlags; n === 0 && (k |= 64); for (var T = null, Z = 0; Z < Q.length; Z++) { - var q = Q[Z]; - q && (q = q.extractEvents(r, t, p, a, k)) && (T = Ue(T, q)); + var Y = Q[Z]; + Y && (Y = Y.extractEvents(o, t, h, a, k)) && (T = Ue(T, Y)); } - Mt(T); + It(T); } } function yt(e, t, n) { @@ -3684,8 +3766,8 @@ function Eu() { } } var Et, ur, dr, vn = !1, Ut = [], Ht = null, on = null, Kn = null, fr = /* @__PURE__ */ new Map(), Zr = /* @__PURE__ */ new Map(), Pr = [], Vn = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "), Nt = "focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" "); - function xo(e, t, n, r, a) { - return { blockedOn: e, topLevelType: t, eventSystemFlags: 32 | n, nativeEvent: a, container: r }; + function xo(e, t, n, o, a) { + return { blockedOn: e, topLevelType: t, eventSystemFlags: 32 | n, nativeEvent: a, container: o }; } function kn(e, t) { switch (e) { @@ -3710,11 +3792,11 @@ function Eu() { Zr.delete(t.pointerId); } } - function Nr(e, t, n, r, a, p) { - return e === null || e.nativeEvent !== p ? (e = xo(t, n, r, a, p), t !== null && (t = oo(t)) !== null && ur(t), e) : (e.eventSystemFlags |= r, e); + function Nr(e, t, n, o, a, h) { + return e === null || e.nativeEvent !== h ? (e = xo(t, n, o, a, h), t !== null && (t = oo(t)) !== null && ur(t), e) : (e.eventSystemFlags |= o, e); } function Oa(e) { - var t = Ir(e.target); + var t = Mr(e.target); if (t !== null) { var n = Nn(t); if (n !== null) { @@ -3761,76 +3843,76 @@ function Eu() { if (0 < Ut.length) { Dr(Ut[0], e); for (var n = 1; n < Ut.length; n++) { - var r = Ut[n]; - r.blockedOn === e && (r.blockedOn = null); + var o = Ut[n]; + o.blockedOn === e && (o.blockedOn = null); } } - for (Ht !== null && Dr(Ht, e), on !== null && Dr(on, e), Kn !== null && Dr(Kn, e), fr.forEach(t), Zr.forEach(t), n = 0; n < Pr.length; n++) (r = Pr[n]).blockedOn === e && (r.blockedOn = null); + for (Ht !== null && Dr(Ht, e), on !== null && Dr(on, e), Kn !== null && Dr(Kn, e), fr.forEach(t), Zr.forEach(t), n = 0; n < Pr.length; n++) (o = Pr[n]).blockedOn === e && (o.blockedOn = null); for (; 0 < Pr.length && (n = Pr[0]).blockedOn === null; ) Oa(n), n.blockedOn === null && Pr.shift(); } var Ei = {}, _i = /* @__PURE__ */ new Map(), Rr = /* @__PURE__ */ new Map(), Pa = ["abort", "abort", tn, "animationEnd", ht, "animationIteration", Vt, "animationStart", "canplay", "canPlay", "canplaythrough", "canPlayThrough", "durationchange", "durationChange", "emptied", "emptied", "encrypted", "encrypted", "ended", "ended", "error", "error", "gotpointercapture", "gotPointerCapture", "load", "load", "loadeddata", "loadedData", "loadedmetadata", "loadedMetadata", "loadstart", "loadStart", "lostpointercapture", "lostPointerCapture", "playing", "playing", "progress", "progress", "seeking", "seeking", "stalled", "stalled", "suspend", "suspend", "timeupdate", "timeUpdate", Pn, "transitionEnd", "waiting", "waiting"]; - function Yo(e, t) { + function qo(e, t) { for (var n = 0; n < e.length; n += 2) { - var r = e[n], a = e[n + 1], p = "on" + (a[0].toUpperCase() + a.slice(1)); - p = { phasedRegistrationNames: { bubbled: p, captured: p + "Capture" }, dependencies: [r], eventPriority: t }, Rr.set(r, t), _i.set(r, p), Ei[a] = p; + var o = e[n], a = e[n + 1], h = "on" + (a[0].toUpperCase() + a.slice(1)); + h = { phasedRegistrationNames: { bubbled: h, captured: h + "Capture" }, dependencies: [o], eventPriority: t }, Rr.set(o, t), _i.set(o, h), Ei[a] = h; } } - Yo("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "), 0), Yo("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "), 1), Yo(Pa, 2); - for (var xi = "change selectionchange textInput compositionstart compositionend compositionupdate".split(" "), qo = 0; qo < xi.length; qo++) Rr.set(xi[qo], 0); + qo("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "), 0), qo("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "), 1), qo(Pa, 2); + for (var xi = "change selectionchange textInput compositionstart compositionend compositionupdate".split(" "), Yo = 0; Yo < xi.length; Yo++) Rr.set(xi[Yo], 0); var Na = _.unstable_UserBlockingPriority, Da = _.unstable_runWithPriority, Co = !0; function mt(e, t) { Jr(t, e, !1); } function Jr(e, t, n) { - var r = Rr.get(t); - switch (r === void 0 ? 2 : r) { + var o = Rr.get(t); + switch (o === void 0 ? 2 : o) { case 0: - r = eo.bind(null, t, 1, e); + o = eo.bind(null, t, 1, e); break; case 1: - r = Ra.bind(null, t, 1, e); + o = Ra.bind(null, t, 1, e); break; default: - r = To.bind(null, t, 1, e); + o = To.bind(null, t, 1, e); } - n ? e.addEventListener(t, r, !0) : e.addEventListener(t, r, !1); + n ? e.addEventListener(t, o, !0) : e.addEventListener(t, o, !1); } - function eo(e, t, n, r) { + function eo(e, t, n, o) { Se || we(); - var a = To, p = Se; + var a = To, h = Se; Se = !0; try { - Te(a, e, t, n, r); + Te(a, e, t, n, o); } finally { - (Se = p) || Je(); + (Se = h) || Je(); } } - function Ra(e, t, n, r) { - Da(Na, To.bind(null, e, t, n, r)); + function Ra(e, t, n, o) { + Da(Na, To.bind(null, e, t, n, o)); } - function To(e, t, n, r) { - if (Co) if (0 < Ut.length && -1 < Vn.indexOf(e)) e = xo(null, e, t, n, r), Ut.push(e); + function To(e, t, n, o) { + if (Co) if (0 < Ut.length && -1 < Vn.indexOf(e)) e = xo(null, e, t, n, o), Ut.push(e); else { - var a = Ar(e, t, n, r); - if (a === null) kn(e, r); - else if (-1 < Vn.indexOf(e)) e = xo(a, e, t, n, r), Ut.push(e); - else if (!function(p, k, T, Z, q) { + var a = Ar(e, t, n, o); + if (a === null) kn(e, o); + else if (-1 < Vn.indexOf(e)) e = xo(a, e, t, n, o), Ut.push(e); + else if (!function(h, k, T, Z, Y) { switch (k) { case "focus": - return Ht = Nr(Ht, p, k, T, Z, q), !0; + return Ht = Nr(Ht, h, k, T, Z, Y), !0; case "dragenter": - return on = Nr(on, p, k, T, Z, q), !0; + return on = Nr(on, h, k, T, Z, Y), !0; case "mouseover": - return Kn = Nr(Kn, p, k, T, Z, q), !0; + return Kn = Nr(Kn, h, k, T, Z, Y), !0; case "pointerover": - var ge = q.pointerId; - return fr.set(ge, Nr(fr.get(ge) || null, p, k, T, Z, q)), !0; + var ge = Y.pointerId; + return fr.set(ge, Nr(fr.get(ge) || null, h, k, T, Z, Y)), !0; case "gotpointercapture": - return ge = q.pointerId, Zr.set(ge, Nr(Zr.get(ge) || null, p, k, T, Z, q)), !0; + return ge = Y.pointerId, Zr.set(ge, Nr(Zr.get(ge) || null, h, k, T, Z, Y)), !0; } return !1; - }(a, e, t, n, r)) { - kn(e, r), e = Dn(e, r, null, t); + }(a, e, t, n, o)) { + kn(e, o), e = Dn(e, o, null, t); try { X(rn, e); } finally { @@ -3839,22 +3921,22 @@ function Eu() { } } } - function Ar(e, t, n, r) { - if ((n = Ir(n = nn(r))) !== null) { + function Ar(e, t, n, o) { + if ((n = Mr(n = nn(o))) !== null) { var a = Nn(n); if (a === null) n = null; else { - var p = a.tag; - if (p === 13) { + var h = a.tag; + if (h === 13) { if ((n = Eo(a)) !== null) return n; n = null; - } else if (p === 3) { + } else if (h === 3) { if (a.stateNode.hydrate) return a.tag === 3 ? a.stateNode.containerInfo : null; n = null; } else a !== n && (n = null); } } - e = Dn(e, r, n, t); + e = Dn(e, o, n, t); try { X(rn, e); } finally { @@ -3868,8 +3950,8 @@ function Eu() { } function Ci(e, t) { for (var n in e = e.style, t) if (t.hasOwnProperty(n)) { - var r = n.indexOf("--") === 0, a = Si(n, t[n], r); - n === "float" && (n = "cssFloat"), r ? e.setProperty(n, a) : e[n] = a; + var o = n.indexOf("--") === 0, a = Si(n, t[n], o); + n === "float" && (n = "cssFloat"), o ? e.setProperty(n, a) : e[n] = a; } } Object.keys(to).forEach(function(e) { @@ -3877,15 +3959,15 @@ function Eu() { t = t + e.charAt(0).toUpperCase() + e.substring(1), to[t] = to[e]; }); }); - var Ti = o({ menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0 }); + var Ti = r({ menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0 }); function Ko(e, t) { if (t) { - if (Ti[e] && (t.children != null || t.dangerouslySetInnerHTML != null)) throw Error(m(137, e, "")); + if (Ti[e] && (t.children != null || t.dangerouslySetInnerHTML != null)) throw Error(g(137, e, "")); if (t.dangerouslySetInnerHTML != null) { - if (t.children != null) throw Error(m(60)); - if (typeof t.dangerouslySetInnerHTML != "object" || !("__html" in t.dangerouslySetInnerHTML)) throw Error(m(61)); + if (t.children != null) throw Error(g(60)); + if (typeof t.dangerouslySetInnerHTML != "object" || !("__html" in t.dangerouslySetInnerHTML)) throw Error(g(61)); } - if (t.style != null && typeof t.style != "object") throw Error(m(62, "")); + if (t.style != null && typeof t.style != "object") throw Error(g(62, "")); } } function Qo(e, t) { @@ -3908,7 +3990,7 @@ function Eu() { function Wn(e, t) { var n = un(e = e.nodeType === 9 || e.nodeType === 11 ? e : e.ownerDocument); t = ae[t]; - for (var r = 0; r < t.length; r++) yt(t[r], e, n); + for (var o = 0; o < t.length; o++) yt(t[o], e, n); } function Oo() { } @@ -3925,23 +4007,23 @@ function Eu() { return e; } function Ni(e, t) { - var n, r = Pi(e); - for (e = 0; r; ) { - if (r.nodeType === 3) { - if (n = e + r.textContent.length, e <= t && n >= t) return { node: r, offset: t - e }; + var n, o = Pi(e); + for (e = 0; o; ) { + if (o.nodeType === 3) { + if (n = e + o.textContent.length, e <= t && n >= t) return { node: o, offset: t - e }; e = n; } e: { - for (; r; ) { - if (r.nextSibling) { - r = r.nextSibling; + for (; o; ) { + if (o.nextSibling) { + o = o.nextSibling; break e; } - r = r.parentNode; + o = o.parentNode; } - r = void 0; + o = void 0; } - r = Pi(r); + o = Pi(o); } } function Di() { @@ -3975,14 +4057,14 @@ function Eu() { return e === "textarea" || e === "option" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null; } var ti = typeof setTimeout == "function" ? setTimeout : void 0, Ai = typeof clearTimeout == "function" ? clearTimeout : void 0; - function Mr(e) { + function Ir(e) { for (; e != null; e = e.nextSibling) { var t = e.nodeType; if (t === 1 || t === 3) break; } return e; } - function Mi(e) { + function Ii(e) { e = e.previousSibling; for (var t = 0; e; ) { if (e.nodeType === 8) { @@ -3997,14 +4079,14 @@ function Eu() { return null; } var Po = Math.random().toString(36).slice(2), Qn = "__reactInternalInstance$" + Po, no = "__reactEventHandlers$" + Po, ro = "__reactContainere$" + Po; - function Ir(e) { + function Mr(e) { var t = e[Qn]; if (t) return t; for (var n = e.parentNode; n; ) { if (t = n[ro] || n[Qn]) { - if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = Mi(e); e !== null; ) { + if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = Ii(e); e !== null; ) { if (n = e[Qn]) return n; - e = Mi(e); + e = Ii(e); } return t; } @@ -4017,7 +4099,7 @@ function Eu() { } function Gn(e) { if (e.tag === 5 || e.tag === 6) return e.stateNode; - throw Error(m(33)); + throw Error(g(33)); } function ni(e) { return e[no] || null; @@ -4028,12 +4110,12 @@ function Eu() { while (e && e.tag !== 5); return e || null; } - function Ii(e, t) { + function Mi(e, t) { var n = e.stateNode; if (!n) return null; - var r = K(n); - if (!r) return null; - n = r[t]; + var o = K(n); + if (!o) return null; + n = o[t]; e: switch (t) { case "onClick": case "onClickCapture": @@ -4046,19 +4128,19 @@ function Eu() { case "onMouseUp": case "onMouseUpCapture": case "onMouseEnter": - (r = !r.disabled) || (r = !((e = e.type) === "button" || e === "input" || e === "select" || e === "textarea")), e = !r; + (o = !o.disabled) || (o = !((e = e.type) === "button" || e === "input" || e === "select" || e === "textarea")), e = !o; break e; default: e = !1; } if (e) return null; - if (n && typeof n != "function") throw Error(m(231, t, typeof n)); + if (n && typeof n != "function") throw Error(g(231, t, typeof n)); return n; } function ji(e, t, n) { - (t = Ii(e, n.dispatchConfig.phasedRegistrationNames[t])) && (n._dispatchListeners = Ue(n._dispatchListeners, t), n._dispatchInstances = Ue(n._dispatchInstances, e)); + (t = Mi(e, n.dispatchConfig.phasedRegistrationNames[t])) && (n._dispatchListeners = Ue(n._dispatchListeners, t), n._dispatchInstances = Ue(n._dispatchInstances, e)); } - function Ma(e) { + function Ia(e) { if (e && e.dispatchConfig.phasedRegistrationNames) { for (var t = e._targetInst, n = []; t; ) n.push(t), t = Rn(t); for (t = n.length; 0 < t--; ) ji(n[t], "captured", e); @@ -4066,21 +4148,21 @@ function Eu() { } } function No(e, t, n) { - e && n && n.dispatchConfig.registrationName && (t = Ii(e, n.dispatchConfig.registrationName)) && (n._dispatchListeners = Ue(n._dispatchListeners, t), n._dispatchInstances = Ue(n._dispatchInstances, e)); + e && n && n.dispatchConfig.registrationName && (t = Mi(e, n.dispatchConfig.registrationName)) && (n._dispatchListeners = Ue(n._dispatchListeners, t), n._dispatchInstances = Ue(n._dispatchInstances, e)); } - function Ia(e) { + function Ma(e) { e && e.dispatchConfig.registrationName && No(e._targetInst, null, e); } function jr(e) { - qn(e, Ma); + Yn(e, Ia); } var hr = null, ri = null, Do = null; function zi() { if (Do) return Do; - var e, t, n = ri, r = n.length, a = "value" in hr ? hr.value : hr.textContent, p = a.length; - for (e = 0; e < r && n[e] === a[e]; e++) ; - var k = r - e; - for (t = 1; t <= k && n[r - t] === a[p - t]; t++) ; + var e, t, n = ri, o = n.length, a = "value" in hr ? hr.value : hr.textContent, h = a.length; + for (e = 0; e < o && n[e] === a[e]; e++) ; + var k = o - e; + for (t = 1; t <= k && n[o - t] === a[h - t]; t++) ; return Do = a.slice(e, 1 < t ? 1 - t : void 0); } function Ro() { @@ -4089,25 +4171,25 @@ function Eu() { function Ao() { return !1; } - function an(e, t, n, r) { - for (var a in this.dispatchConfig = e, this._targetInst = t, this.nativeEvent = n, e = this.constructor.Interface) e.hasOwnProperty(a) && ((t = e[a]) ? this[a] = t(n) : a === "target" ? this.target = r : this[a] = n[a]); + function an(e, t, n, o) { + for (var a in this.dispatchConfig = e, this._targetInst = t, this.nativeEvent = n, e = this.constructor.Interface) e.hasOwnProperty(a) && ((t = e[a]) ? this[a] = t(n) : a === "target" ? this.target = o : this[a] = n[a]); return this.isDefaultPrevented = (n.defaultPrevented != null ? n.defaultPrevented : n.returnValue === !1) ? Ro : Ao, this.isPropagationStopped = Ao, this; } - function Li(e, t, n, r) { + function Li(e, t, n, o) { if (this.eventPool.length) { var a = this.eventPool.pop(); - return this.call(a, e, t, n, r), a; + return this.call(a, e, t, n, o), a; } - return new this(e, t, n, r); + return new this(e, t, n, o); } function $e(e) { - if (!(e instanceof this)) throw Error(m(279)); + if (!(e instanceof this)) throw Error(g(279)); e.destructor(), 10 > this.eventPool.length && this.eventPool.push(e); } function E(e) { e.eventPool = [], e.getPooled = Li, e.release = $e; } - o(an.prototype, { preventDefault: function() { + r(an.prototype, { preventDefault: function() { this.defaultPrevented = !0; var e = this.nativeEvent; e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = Ro); @@ -4128,20 +4210,20 @@ function Eu() { function t() { } function n() { - return r.apply(this, arguments); + return o.apply(this, arguments); } - var r = this; - t.prototype = r.prototype; + var o = this; + t.prototype = o.prototype; var a = new t(); - return o(a, n.prototype), n.prototype = a, n.prototype.constructor = n, n.Interface = o({}, r.Interface, e), n.extend = r.extend, E(n), n; + return r(a, n.prototype), n.prototype = a, n.prototype.constructor = n, n.Interface = r({}, o.Interface, e), n.extend = o.extend, E(n), n; }, E(an); - var s = an.extend({ data: null }), d = an.extend({ data: null }), h = [9, 13, 27, 32], S = ne && "CompositionEvent" in window, O = null; + var s = an.extend({ data: null }), d = an.extend({ data: null }), m = [9, 13, 27, 32], S = ne && "CompositionEvent" in window, O = null; ne && "documentMode" in document && (O = document.documentMode); var L = ne && "TextEvent" in window && !O, re = ne && (!S || O && 8 < O && 11 >= O), fe = " ", pe = { beforeInput: { phasedRegistrationNames: { bubbled: "onBeforeInput", captured: "onBeforeInputCapture" }, dependencies: ["compositionend", "keypress", "textInput", "paste"] }, compositionEnd: { phasedRegistrationNames: { bubbled: "onCompositionEnd", captured: "onCompositionEndCapture" }, dependencies: "blur compositionend keydown keypress keyup mousedown".split(" ") }, compositionStart: { phasedRegistrationNames: { bubbled: "onCompositionStart", captured: "onCompositionStartCapture" }, dependencies: "blur compositionstart keydown keypress keyup mousedown".split(" ") }, compositionUpdate: { phasedRegistrationNames: { bubbled: "onCompositionUpdate", captured: "onCompositionUpdateCapture" }, dependencies: "blur compositionupdate keydown keypress keyup mousedown".split(" ") } }, Ee = !1; function Ne(e, t) { switch (e) { case "keyup": - return h.indexOf(t.keyCode) !== -1; + return m.indexOf(t.keyCode) !== -1; case "keydown": return t.keyCode !== 229; case "keypress": @@ -4155,24 +4237,24 @@ function Eu() { function Ve(e) { return typeof (e = e.detail) == "object" && "data" in e ? e.data : null; } - var Ae = !1, Ke = { eventTypes: pe, extractEvents: function(e, t, n, r) { + var Ae = !1, Ke = { eventTypes: pe, extractEvents: function(e, t, n, o) { var a; if (S) e: { switch (e) { case "compositionstart": - var p = pe.compositionStart; + var h = pe.compositionStart; break e; case "compositionend": - p = pe.compositionEnd; + h = pe.compositionEnd; break e; case "compositionupdate": - p = pe.compositionUpdate; + h = pe.compositionUpdate; break e; } - p = void 0; + h = void 0; } - else Ae ? Ne(e, n) && (p = pe.compositionEnd) : e === "keydown" && n.keyCode === 229 && (p = pe.compositionStart); - return p ? (re && n.locale !== "ko" && (Ae || p !== pe.compositionStart ? p === pe.compositionEnd && Ae && (a = zi()) : (ri = "value" in (hr = r) ? hr.value : hr.textContent, Ae = !0)), p = s.getPooled(p, t, n, r), (a || (a = Ve(n)) !== null) && (p.data = a), jr(p), a = p) : a = null, (e = L ? function(k, T) { + else Ae ? Ne(e, n) && (h = pe.compositionEnd) : e === "keydown" && n.keyCode === 229 && (h = pe.compositionStart); + return h ? (re && n.locale !== "ko" && (Ae || h !== pe.compositionStart ? h === pe.compositionEnd && Ae && (a = zi()) : (ri = "value" in (hr = o) ? hr.value : hr.textContent, Ae = !0)), h = s.getPooled(h, t, n, o), (a || (a = Ve(n)) !== null) && (h.data = a), jr(h), a = h) : a = null, (e = L ? function(k, T) { switch (k) { case "compositionend": return Ve(T); @@ -4199,21 +4281,21 @@ function Eu() { default: return null; } - }(e, n)) ? ((t = d.getPooled(pe.beforeInput, t, n, r)).data = e, jr(t)) : t = null, a === null ? t : t === null ? a : [a, t]; - } }, Ie = { color: !0, date: !0, datetime: !0, "datetime-local": !0, email: !0, month: !0, number: !0, password: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0 }; + }(e, n)) ? ((t = d.getPooled(pe.beforeInput, t, n, o)).data = e, jr(t)) : t = null, a === null ? t : t === null ? a : [a, t]; + } }, Me = { color: !0, date: !0, datetime: !0, "datetime-local": !0, email: !0, month: !0, number: !0, password: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0 }; function Fe(e) { var t = e && e.nodeName && e.nodeName.toLowerCase(); - return t === "input" ? !!Ie[e.type] : t === "textarea"; + return t === "input" ? !!Me[e.type] : t === "textarea"; } var et = { change: { phasedRegistrationNames: { bubbled: "onChange", captured: "onChangeCapture" }, dependencies: "blur change click focus input keydown keyup selectionchange".split(" ") } }; - function Ye(e, t, n) { + function qe(e, t, n) { return (e = an.getPooled(et.change, e, t, n)).type = "change", D(n), jr(e), e; } var Le = null, dt = null; function Dt(e) { - Mt(e); + It(e); } - function It(e) { + function Mt(e) { if (ut(Gn(e))) return e; } function jt(e, t) { @@ -4224,7 +4306,7 @@ function Eu() { Le && (Le.detachEvent("onpropertychange", ft), dt = Le = null); } function ft(e) { - if (e.propertyName === "value" && It(dt)) if (e = Ye(dt, e, nn(e)), Se) Mt(e); + if (e.propertyName === "value" && Mt(dt)) if (e = qe(dt, e, nn(e)), Se) It(e); else { Se = !0; try { @@ -4238,33 +4320,33 @@ function Eu() { e === "focus" ? (zt(), dt = n, (Le = t).attachEvent("onpropertychange", ft)) : e === "blur" && zt(); } function lt(e) { - if (e === "selectionchange" || e === "keyup" || e === "keydown") return It(dt); + if (e === "selectionchange" || e === "keyup" || e === "keydown") return Mt(dt); } - function Mn(e, t) { - if (e === "click") return It(t); + function In(e, t) { + if (e === "click") return Mt(t); } function Hn(e, t) { - if (e === "input" || e === "change") return It(t); + if (e === "input" || e === "change") return Mt(t); } ne && (_t = Wt("input") && (!document.documentMode || 9 < document.documentMode)); - var zr = { eventTypes: et, _isInputEventSupported: _t, extractEvents: function(e, t, n, r) { - var a = t ? Gn(t) : window, p = a.nodeName && a.nodeName.toLowerCase(); - if (p === "select" || p === "input" && a.type === "file") var k = jt; + var zr = { eventTypes: et, _isInputEventSupported: _t, extractEvents: function(e, t, n, o) { + var a = t ? Gn(t) : window, h = a.nodeName && a.nodeName.toLowerCase(); + if (h === "select" || h === "input" && a.type === "file") var k = jt; else if (Fe(a)) if (_t) k = Hn; else { k = lt; var T = An; } - else (p = a.nodeName) && p.toLowerCase() === "input" && (a.type === "checkbox" || a.type === "radio") && (k = Mn); - if (k && (k = k(e, t))) return Ye(k, n, r); + else (h = a.nodeName) && h.toLowerCase() === "input" && (a.type === "checkbox" || a.type === "radio") && (k = In); + if (k && (k = k(e, t))) return qe(k, n, o); T && T(e, a, t), e === "blur" && (e = a._wrapperState) && e.controlled && a.type === "number" && Cn(a, "number", a.value); } }, xt = an.extend({ view: null, detail: null }), io = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" }; - function In(e) { + function Mn(e) { var t = this.nativeEvent; return t.getModifierState ? t.getModifierState(e) : !!(e = io[e]) && !!t[e]; } function $t() { - return In; + return Mn; } var dn = 0, Xn = 0, Gt = !1, fn = !1, Lr = xt.extend({ screenX: null, screenY: null, clientX: null, clientY: null, pageX: null, pageY: null, ctrlKey: null, shiftKey: null, altKey: null, metaKey: null, getModifierState: $t, button: null, buttons: null, relatedTarget: function(e) { return e.relatedTarget || (e.fromElement === e.srcElement ? e.toElement : e.fromElement); @@ -4276,27 +4358,27 @@ function Eu() { if ("movementY" in e) return e.movementY; var t = Xn; return Xn = e.screenY, fn ? e.type === "mousemove" ? e.screenY - t : 0 : (fn = !0, 0); - } }), oi = Lr.extend({ pointerId: null, width: null, height: null, pressure: null, tangentialPressure: null, tiltX: null, tiltY: null, twist: null, pointerType: null, isPrimary: null }), Ur = { mouseEnter: { registrationName: "onMouseEnter", dependencies: ["mouseout", "mouseover"] }, mouseLeave: { registrationName: "onMouseLeave", dependencies: ["mouseout", "mouseover"] }, pointerEnter: { registrationName: "onPointerEnter", dependencies: ["pointerout", "pointerover"] }, pointerLeave: { registrationName: "onPointerLeave", dependencies: ["pointerout", "pointerover"] } }, Mo = { eventTypes: Ur, extractEvents: function(e, t, n, r, a) { - var p = e === "mouseover" || e === "pointerover", k = e === "mouseout" || e === "pointerout"; - if (p && (32 & a) == 0 && (n.relatedTarget || n.fromElement) || !k && !p || (p = r.window === r ? r : (p = r.ownerDocument) ? p.defaultView || p.parentWindow : window, k ? (k = t, (t = (t = n.relatedTarget || n.toElement) ? Ir(t) : null) !== null && (t !== Nn(t) || t.tag !== 5 && t.tag !== 6) && (t = null)) : k = null, k === t)) return null; - if (e === "mouseout" || e === "mouseover") var T = Lr, Z = Ur.mouseLeave, q = Ur.mouseEnter, ge = "mouse"; - else e !== "pointerout" && e !== "pointerover" || (T = oi, Z = Ur.pointerLeave, q = Ur.pointerEnter, ge = "pointer"); - if (e = k == null ? p : Gn(k), p = t == null ? p : Gn(t), (Z = T.getPooled(Z, k, n, r)).type = ge + "leave", Z.target = e, Z.relatedTarget = p, (n = T.getPooled(q, t, n, r)).type = ge + "enter", n.target = p, n.relatedTarget = e, ge = t, (r = k) && ge) e: { - for (q = ge, k = 0, e = T = r; e; e = Rn(e)) k++; - for (e = 0, t = q; t; t = Rn(t)) e++; + } }), oi = Lr.extend({ pointerId: null, width: null, height: null, pressure: null, tangentialPressure: null, tiltX: null, tiltY: null, twist: null, pointerType: null, isPrimary: null }), Ur = { mouseEnter: { registrationName: "onMouseEnter", dependencies: ["mouseout", "mouseover"] }, mouseLeave: { registrationName: "onMouseLeave", dependencies: ["mouseout", "mouseover"] }, pointerEnter: { registrationName: "onPointerEnter", dependencies: ["pointerout", "pointerover"] }, pointerLeave: { registrationName: "onPointerLeave", dependencies: ["pointerout", "pointerover"] } }, Io = { eventTypes: Ur, extractEvents: function(e, t, n, o, a) { + var h = e === "mouseover" || e === "pointerover", k = e === "mouseout" || e === "pointerout"; + if (h && (32 & a) == 0 && (n.relatedTarget || n.fromElement) || !k && !h || (h = o.window === o ? o : (h = o.ownerDocument) ? h.defaultView || h.parentWindow : window, k ? (k = t, (t = (t = n.relatedTarget || n.toElement) ? Mr(t) : null) !== null && (t !== Nn(t) || t.tag !== 5 && t.tag !== 6) && (t = null)) : k = null, k === t)) return null; + if (e === "mouseout" || e === "mouseover") var T = Lr, Z = Ur.mouseLeave, Y = Ur.mouseEnter, ge = "mouse"; + else e !== "pointerout" && e !== "pointerover" || (T = oi, Z = Ur.pointerLeave, Y = Ur.pointerEnter, ge = "pointer"); + if (e = k == null ? h : Gn(k), h = t == null ? h : Gn(t), (Z = T.getPooled(Z, k, n, o)).type = ge + "leave", Z.target = e, Z.relatedTarget = h, (n = T.getPooled(Y, t, n, o)).type = ge + "enter", n.target = h, n.relatedTarget = e, ge = t, (o = k) && ge) e: { + for (Y = ge, k = 0, e = T = o; e; e = Rn(e)) k++; + for (e = 0, t = Y; t; t = Rn(t)) e++; for (; 0 < k - e; ) T = Rn(T), k--; - for (; 0 < e - k; ) q = Rn(q), e--; + for (; 0 < e - k; ) Y = Rn(Y), e--; for (; k--; ) { - if (T === q || T === q.alternate) break e; - T = Rn(T), q = Rn(q); + if (T === Y || T === Y.alternate) break e; + T = Rn(T), Y = Rn(Y); } T = null; } else T = null; - for (q = T, T = []; r && r !== q && ((k = r.alternate) === null || k !== q); ) T.push(r), r = Rn(r); - for (r = []; ge && ge !== q && ((k = ge.alternate) === null || k !== q); ) r.push(ge), ge = Rn(ge); + for (Y = T, T = []; o && o !== Y && ((k = o.alternate) === null || k !== Y); ) T.push(o), o = Rn(o); + for (o = []; ge && ge !== Y && ((k = ge.alternate) === null || k !== Y); ) o.push(ge), ge = Rn(ge); for (ge = 0; ge < T.length; ge++) No(T[ge], "bubbled", Z); - for (ge = r.length; 0 < ge--; ) No(r[ge], "captured", n); + for (ge = o.length; 0 < ge--; ) No(o[ge], "captured", n); return (64 & a) == 0 ? [Z] : [Z, n]; } }, mr = typeof Object.is == "function" ? Object.is : function(e, t) { return e === t && (e !== 0 || 1 / e == 1 / t) || e != e && t != t; @@ -4304,29 +4386,29 @@ function Eu() { function gr(e, t) { if (mr(e, t)) return !0; if (typeof e != "object" || e === null || typeof t != "object" || t === null) return !1; - var n = Object.keys(e), r = Object.keys(t); - if (n.length !== r.length) return !1; - for (r = 0; r < n.length; r++) if (!Ui.call(t, n[r]) || !mr(e[n[r]], t[n[r]])) return !1; + var n = Object.keys(e), o = Object.keys(t); + if (n.length !== o.length) return !1; + for (o = 0; o < n.length; o++) if (!Ui.call(t, n[o]) || !mr(e[n[o]], t[n[o]])) return !1; return !0; } - var Io = ne && "documentMode" in document && 11 >= document.documentMode, ii = { select: { phasedRegistrationNames: { bubbled: "onSelect", captured: "onSelectCapture" }, dependencies: "blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ") } }, Zn = null, ao = null, wn = null, so = !1; + var Mo = ne && "documentMode" in document && 11 >= document.documentMode, ii = { select: { phasedRegistrationNames: { bubbled: "onSelect", captured: "onSelectCapture" }, dependencies: "blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ") } }, Zn = null, ao = null, wn = null, so = !1; function Ps(e, t) { var n = t.window === t ? t.document : t.nodeType === 9 ? t : t.ownerDocument; return so || Zn == null || Zn !== Go(n) ? null : ("selectionStart" in (n = Zn) && Xo(n) ? n = { start: n.selectionStart, end: n.selectionEnd } : n = { anchorNode: (n = (n.ownerDocument && n.ownerDocument.defaultView || window).getSelection()).anchorNode, anchorOffset: n.anchorOffset, focusNode: n.focusNode, focusOffset: n.focusOffset }, wn && gr(wn, n) ? null : (wn = n, (e = an.getPooled(ii.select, ao, e, t)).type = "select", e.target = Zn, jr(e), e)); } - var oc = { eventTypes: ii, extractEvents: function(e, t, n, r, a, p) { - if (!(p = !(a = p || (r.window === r ? r.document : r.nodeType === 9 ? r : r.ownerDocument)))) { + var oc = { eventTypes: ii, extractEvents: function(e, t, n, o, a, h) { + if (!(h = !(a = h || (o.window === o ? o.document : o.nodeType === 9 ? o : o.ownerDocument)))) { e: { - a = un(a), p = ae.onSelect; - for (var k = 0; k < p.length; k++) if (!a.has(p[k])) { + a = un(a), h = ae.onSelect; + for (var k = 0; k < h.length; k++) if (!a.has(h[k])) { a = !1; break e; } a = !0; } - p = !a; + h = !a; } - if (p) return null; + if (h) return null; switch (a = t ? Gn(t) : window, e) { case "focus": (Fe(a) || a.contentEditable === "true") && (Zn = a, ao = t, wn = null); @@ -4340,12 +4422,12 @@ function Eu() { case "contextmenu": case "mouseup": case "dragend": - return so = !1, Ps(n, r); + return so = !1, Ps(n, o); case "selectionchange": - if (Io) break; + if (Mo) break; case "keydown": case "keyup": - return Ps(n, r); + return Ps(n, o); } return null; } }, ic = an.extend({ animationName: null, elapsedTime: null, pseudoElement: null }), ac = an.extend({ clipboardData: function(e) { @@ -4371,7 +4453,7 @@ function Eu() { return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0; }, deltaY: function(e) { return "deltaY" in e ? e.deltaY : "wheelDeltaY" in e ? -e.wheelDeltaY : "wheelDelta" in e ? -e.wheelDelta : 0; - }, deltaZ: null, deltaMode: null }), mc = { eventTypes: Ei, extractEvents: function(e, t, n, r) { + }, deltaZ: null, deltaMode: null }), mc = { eventTypes: Ei, extractEvents: function(e, t, n, o) { var a = _i.get(e); if (!a) return null; switch (e) { @@ -4445,10 +4527,10 @@ function Eu() { default: e = an; } - return jr(t = e.getPooled(a, t, n, r)), t; + return jr(t = e.getPooled(a, t, n, o)), t; } }; - if (I) throw Error(m(101)); - I = Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")), A(), K = ni, j = oo, B = Gn, le({ SimpleEventPlugin: mc, EnterLeaveEventPlugin: Mo, ChangeEventPlugin: zr, SelectEventPlugin: oc, BeforeInputEventPlugin: Ke }); + if (M) throw Error(g(101)); + M = Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")), A(), K = ni, j = oo, B = Gn, le({ SimpleEventPlugin: mc, EnterLeaveEventPlugin: Io, ChangeEventPlugin: zr, SelectEventPlugin: oc, BeforeInputEventPlugin: Ke }); var ja = [], jo = -1; function vt(e) { 0 > jo || (e.current = ja[jo], ja[jo] = null, jo--); @@ -4460,11 +4542,11 @@ function Eu() { function zo(e, t) { var n = e.type.contextTypes; if (!n) return Fr; - var r = e.stateNode; - if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) return r.__reactInternalMemoizedMaskedChildContext; - var a, p = {}; - for (a in n) p[a] = t[a]; - return r && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = t, e.__reactInternalMemoizedMaskedChildContext = p), p; + var o = e.stateNode; + if (o && o.__reactInternalMemoizedUnmaskedChildContext === t) return o.__reactInternalMemoizedMaskedChildContext; + var a, h = {}; + for (a in n) h[a] = t[a]; + return o && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = t, e.__reactInternalMemoizedMaskedChildContext = h), h; } function hn(e) { return (e = e.childContextTypes) != null; @@ -4473,24 +4555,24 @@ function Eu() { vt(pn), vt(Xt); } function Ns(e, t, n) { - if (Xt.current !== Fr) throw Error(m(168)); + if (Xt.current !== Fr) throw Error(g(168)); St(Xt, t), St(pn, n); } function Ds(e, t, n) { - var r = e.stateNode; - if (e = t.childContextTypes, typeof r.getChildContext != "function") return n; - for (var a in r = r.getChildContext()) if (!(a in e)) throw Error(m(108, Yt(t) || "Unknown", a)); - return o({}, n, {}, r); + var o = e.stateNode; + if (e = t.childContextTypes, typeof o.getChildContext != "function") return n; + for (var a in o = o.getChildContext()) if (!(a in e)) throw Error(g(108, qt(t) || "Unknown", a)); + return r({}, n, {}, o); } function Vi(e) { return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || Fr, lo = Xt.current, St(Xt, e), St(pn, pn.current), !0; } function Rs(e, t, n) { - var r = e.stateNode; - if (!r) throw Error(m(169)); - n ? (e = Ds(e, t, lo), r.__reactInternalMemoizedMergedChildContext = e, vt(pn), vt(Xt), St(Xt, e)) : vt(pn), St(pn, n); + var o = e.stateNode; + if (!o) throw Error(g(169)); + n ? (e = Ds(e, t, lo), o.__reactInternalMemoizedMergedChildContext = e, vt(pn), vt(Xt), St(Xt, e)) : vt(pn), St(pn, n); } - var gc = _.unstable_runWithPriority, za = _.unstable_scheduleCallback, As = _.unstable_cancelCallback, Ms = _.unstable_requestPaint, La = _.unstable_now, bc = _.unstable_getCurrentPriorityLevel, Wi = _.unstable_ImmediatePriority, Is = _.unstable_UserBlockingPriority, js = _.unstable_NormalPriority, zs = _.unstable_LowPriority, Ls = _.unstable_IdlePriority, Us = {}, yc = _.unstable_shouldYield, vc = Ms !== void 0 ? Ms : function() { + var gc = _.unstable_runWithPriority, za = _.unstable_scheduleCallback, As = _.unstable_cancelCallback, Is = _.unstable_requestPaint, La = _.unstable_now, bc = _.unstable_getCurrentPriorityLevel, Wi = _.unstable_ImmediatePriority, Ms = _.unstable_UserBlockingPriority, js = _.unstable_NormalPriority, zs = _.unstable_LowPriority, Ls = _.unstable_IdlePriority, Us = {}, yc = _.unstable_shouldYield, vc = Is !== void 0 ? Is : function() { }, br = null, Hi = null, Ua = !1, Fs = La(), jn = 1e4 > Fs ? La : function() { return La() - Fs; }; @@ -4498,7 +4580,7 @@ function Eu() { switch (bc()) { case Wi: return 99; - case Is: + case Ms: return 98; case js: return 97; @@ -4507,7 +4589,7 @@ function Eu() { case Ls: return 95; default: - throw Error(m(332)); + throw Error(g(332)); } } function Bs(e) { @@ -4515,7 +4597,7 @@ function Eu() { case 99: return Wi; case 98: - return Is; + return Ms; case 97: return js; case 96: @@ -4523,7 +4605,7 @@ function Eu() { case 95: return Ls; default: - throw Error(m(332)); + throw Error(g(332)); } } function Br(e, t) { @@ -4563,20 +4645,20 @@ function Eu() { } } } - function Yi(e, t, n) { + function qi(e, t, n) { return 1073741821 - (1 + ((1073741821 - e + t / 10) / (n /= 10) | 0)) * n; } function $n(e, t) { - if (e && e.defaultProps) for (var n in t = o({}, t), e = e.defaultProps) t[n] === void 0 && (t[n] = e[n]); + if (e && e.defaultProps) for (var n in t = r({}, t), e = e.defaultProps) t[n] === void 0 && (t[n] = e[n]); return t; } - var qi = { current: null }, Ki = null, Lo = null, Qi = null; + var Yi = { current: null }, Ki = null, Lo = null, Qi = null; function Fa() { Qi = Lo = Ki = null; } function Ba(e) { - var t = qi.current; - vt(qi), e.type._context._currentValue = t; + var t = Yi.current; + vt(Yi), e.type._context._currentValue = t; } function $s(e, t) { for (; e !== null; ) { @@ -4594,7 +4676,7 @@ function Eu() { } function zn(e, t) { if (Qi !== e && t !== !1 && t !== 0) if (typeof t == "number" && t !== 1073741823 || (Qi = e, t = 1073741823), t = { context: e, observedBits: t, next: null }, Lo === null) { - if (Ki === null) throw Error(m(308)); + if (Ki === null) throw Error(g(308)); Lo = t, Ki.dependencies = { expirationTime: 0, firstContext: t, responders: null }; } else Lo = Lo.next = t; return e._currentValue; @@ -4615,28 +4697,28 @@ function Eu() { n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t; } } - function Ys(e, t) { + function qs(e, t) { var n = e.alternate; n !== null && Wa(n, e), (n = (e = e.updateQueue).baseQueue) === null ? (e.baseQueue = t.next = t, t.next = t) : (t.next = n.next, n.next = t); } - function ai(e, t, n, r) { + function ai(e, t, n, o) { var a = e.updateQueue; Vr = !1; - var p = a.baseQueue, k = a.shared.pending; + var h = a.baseQueue, k = a.shared.pending; if (k !== null) { - if (p !== null) { - var T = p.next; - p.next = k.next, k.next = T; + if (h !== null) { + var T = h.next; + h.next = k.next, k.next = T; } - p = k, a.shared.pending = null, (T = e.alternate) !== null && (T = T.updateQueue) !== null && (T.baseQueue = k); + h = k, a.shared.pending = null, (T = e.alternate) !== null && (T = T.updateQueue) !== null && (T.baseQueue = k); } - if (p !== null) { - T = p.next; - var Z = a.baseState, q = 0, ge = null, De = null, We = null; + if (h !== null) { + T = h.next; + var Z = a.baseState, Y = 0, ge = null, De = null, We = null; if (T !== null) for (var ot = T; ; ) { - if ((k = ot.expirationTime) < r) { + if ((k = ot.expirationTime) < o) { var Fn = { expirationTime: ot.expirationTime, suspenseConfig: ot.suspenseConfig, tag: ot.tag, payload: ot.payload, callback: ot.callback, next: null }; - We === null ? (De = We = Fn, ge = Z) : We = We.next = Fn, k > q && (q = k); + We === null ? (De = We = Fn, ge = Z) : We = We.next = Fn, k > Y && (Y = k); } else { We !== null && (We = We.next = { expirationTime: 1073741823, suspenseConfig: ot.suspenseConfig, tag: ot.tag, payload: ot.payload, callback: ot.callback, next: null }), Bl(k, ot.suspenseConfig); e: { @@ -4653,7 +4735,7 @@ function Eu() { ln.effectTag = -4097 & ln.effectTag | 64; case 0: if ((k = typeof (ln = oe.payload) == "function" ? ln.call(Fn, Z, k) : ln) == null) break e; - Z = o({}, Z, k); + Z = r({}, Z, k); break e; case 2: Vr = !0; @@ -4663,78 +4745,78 @@ function Eu() { } if ((ot = ot.next) === null || ot === T) { if ((k = a.shared.pending) === null) break; - ot = p.next = k.next, k.next = T, a.baseQueue = p = k, a.shared.pending = null; + ot = h.next = k.next, k.next = T, a.baseQueue = h = k, a.shared.pending = null; } } - We === null ? ge = Z : We.next = De, a.baseState = ge, a.baseQueue = We, wa(q), e.expirationTime = q, e.memoizedState = Z; + We === null ? ge = Z : We.next = De, a.baseState = ge, a.baseQueue = We, wa(Y), e.expirationTime = Y, e.memoizedState = Z; } } - function qs(e, t, n) { + function Ys(e, t, n) { if (e = t.effects, t.effects = null, e !== null) for (t = 0; t < e.length; t++) { - var r = e[t], a = r.callback; + var o = e[t], a = o.callback; if (a !== null) { - if (r.callback = null, r = a, a = n, typeof r != "function") throw Error(m(191, r)); - r.call(a); + if (o.callback = null, o = a, a = n, typeof o != "function") throw Error(g(191, o)); + o.call(a); } } } var si = he.ReactCurrentBatchConfig, Ks = new c.Component().refs; - function Gi(e, t, n, r) { - n = (n = n(r, t = e.memoizedState)) == null ? t : o({}, t, n), e.memoizedState = n, e.expirationTime === 0 && (e.updateQueue.baseState = n); + function Gi(e, t, n, o) { + n = (n = n(o, t = e.memoizedState)) == null ? t : r({}, t, n), e.memoizedState = n, e.expirationTime === 0 && (e.updateQueue.baseState = n); } var Xi = { isMounted: function(e) { return !!(e = e._reactInternalFiber) && Nn(e) === e; }, enqueueSetState: function(e, t, n) { e = e._reactInternalFiber; - var r = nr(), a = si.suspense; - (a = Wr(r = mo(r, e, a), a)).payload = t, n != null && (a.callback = n), Hr(e, a), Kr(e, r); + var o = nr(), a = si.suspense; + (a = Wr(o = mo(o, e, a), a)).payload = t, n != null && (a.callback = n), Hr(e, a), Kr(e, o); }, enqueueReplaceState: function(e, t, n) { e = e._reactInternalFiber; - var r = nr(), a = si.suspense; - (a = Wr(r = mo(r, e, a), a)).tag = 1, a.payload = t, n != null && (a.callback = n), Hr(e, a), Kr(e, r); + var o = nr(), a = si.suspense; + (a = Wr(o = mo(o, e, a), a)).tag = 1, a.payload = t, n != null && (a.callback = n), Hr(e, a), Kr(e, o); }, enqueueForceUpdate: function(e, t) { e = e._reactInternalFiber; - var n = nr(), r = si.suspense; - (r = Wr(n = mo(n, e, r), r)).tag = 2, t != null && (r.callback = t), Hr(e, r), Kr(e, n); + var n = nr(), o = si.suspense; + (o = Wr(n = mo(n, e, o), o)).tag = 2, t != null && (o.callback = t), Hr(e, o), Kr(e, n); } }; - function Qs(e, t, n, r, a, p, k) { - return typeof (e = e.stateNode).shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, p, k) : !t.prototype || !t.prototype.isPureReactComponent || !gr(n, r) || !gr(a, p); + function Qs(e, t, n, o, a, h, k) { + return typeof (e = e.stateNode).shouldComponentUpdate == "function" ? e.shouldComponentUpdate(o, h, k) : !t.prototype || !t.prototype.isPureReactComponent || !gr(n, o) || !gr(a, h); } function Gs(e, t, n) { - var r = !1, a = Fr, p = t.contextType; - return typeof p == "object" && p !== null ? p = zn(p) : (a = hn(t) ? lo : Xt.current, p = (r = (r = t.contextTypes) != null) ? zo(e, a) : Fr), t = new t(n, p), e.memoizedState = t.state !== null && t.state !== void 0 ? t.state : null, t.updater = Xi, e.stateNode = t, t._reactInternalFiber = e, r && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = a, e.__reactInternalMemoizedMaskedChildContext = p), t; + var o = !1, a = Fr, h = t.contextType; + return typeof h == "object" && h !== null ? h = zn(h) : (a = hn(t) ? lo : Xt.current, h = (o = (o = t.contextTypes) != null) ? zo(e, a) : Fr), t = new t(n, h), e.memoizedState = t.state !== null && t.state !== void 0 ? t.state : null, t.updater = Xi, e.stateNode = t, t._reactInternalFiber = e, o && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = a, e.__reactInternalMemoizedMaskedChildContext = h), t; } - function Xs(e, t, n, r) { - e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && Xi.enqueueReplaceState(t, t.state, null); + function Xs(e, t, n, o) { + e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, o), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, o), t.state !== e && Xi.enqueueReplaceState(t, t.state, null); } - function Ha(e, t, n, r) { + function Ha(e, t, n, o) { var a = e.stateNode; a.props = n, a.state = e.memoizedState, a.refs = Ks, Va(e); - var p = t.contextType; - typeof p == "object" && p !== null ? a.context = zn(p) : (p = hn(t) ? lo : Xt.current, a.context = zo(e, p)), ai(e, n, a, r), a.state = e.memoizedState, typeof (p = t.getDerivedStateFromProps) == "function" && (Gi(e, t, p, n), a.state = e.memoizedState), typeof t.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (t = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), t !== a.state && Xi.enqueueReplaceState(a, a.state, null), ai(e, n, a, r), a.state = e.memoizedState), typeof a.componentDidMount == "function" && (e.effectTag |= 4); + var h = t.contextType; + typeof h == "object" && h !== null ? a.context = zn(h) : (h = hn(t) ? lo : Xt.current, a.context = zo(e, h)), ai(e, n, a, o), a.state = e.memoizedState, typeof (h = t.getDerivedStateFromProps) == "function" && (Gi(e, t, h, n), a.state = e.memoizedState), typeof t.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (t = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), t !== a.state && Xi.enqueueReplaceState(a, a.state, null), ai(e, n, a, o), a.state = e.memoizedState), typeof a.componentDidMount == "function" && (e.effectTag |= 4); } var Zi = Array.isArray; function li(e, t, n) { if ((e = n.ref) !== null && typeof e != "function" && typeof e != "object") { if (n._owner) { if (n = n._owner) { - if (n.tag !== 1) throw Error(m(309)); - var r = n.stateNode; + if (n.tag !== 1) throw Error(g(309)); + var o = n.stateNode; } - if (!r) throw Error(m(147, e)); + if (!o) throw Error(g(147, e)); var a = "" + e; - return t !== null && t.ref !== null && typeof t.ref == "function" && t.ref._stringRef === a ? t.ref : ((t = function(p) { - var k = r.refs; - k === Ks && (k = r.refs = {}), p === null ? delete k[a] : k[a] = p; + return t !== null && t.ref !== null && typeof t.ref == "function" && t.ref._stringRef === a ? t.ref : ((t = function(h) { + var k = o.refs; + k === Ks && (k = o.refs = {}), h === null ? delete k[a] : k[a] = h; })._stringRef = a, t); } - if (typeof e != "string") throw Error(m(284)); - if (!n._owner) throw Error(m(290, e)); + if (typeof e != "string") throw Error(g(284)); + if (!n._owner) throw Error(g(290, e)); } return e; } function Ji(e, t) { - if (e.type !== "textarea") throw Error(m(31, Object.prototype.toString.call(t) === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : t, "")); + if (e.type !== "textarea") throw Error(g(31, Object.prototype.toString.call(t) === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : t, "")); } function Zs(e) { function t(oe, te) { @@ -4748,14 +4830,14 @@ function Eu() { for (; te !== null; ) t(oe, te), te = te.sibling; return null; } - function r(oe, te) { + function o(oe, te) { for (oe = /* @__PURE__ */ new Map(); te !== null; ) te.key !== null ? oe.set(te.key, te) : oe.set(te.index, te), te = te.sibling; return oe; } function a(oe, te) { return (oe = vo(oe, te)).index = 0, oe.sibling = null, oe; } - function p(oe, te, ue) { + function h(oe, te, ue) { return oe.index = ue, e ? (ue = oe.alternate) !== null ? (ue = ue.index) < te ? (oe.effectTag = 2, te) : ue : (oe.effectTag = 2, te) : te; } function k(oe) { @@ -4767,7 +4849,7 @@ function Eu() { function Z(oe, te, ue, ve) { return te !== null && te.elementType === ue.type ? ((ve = a(te, ue.props)).ref = li(oe, te, ue), ve.return = oe, ve) : ((ve = Ea(ue.type, ue.key, ue.props, null, oe.mode, ve)).ref = li(oe, te, ue), ve.return = oe, ve); } - function q(oe, te, ue, ve) { + function Y(oe, te, ue, ve) { return te === null || te.tag !== 4 || te.stateNode.containerInfo !== ue.containerInfo || te.stateNode.implementation !== ue.implementation ? ((te = ws(ue, oe.mode, ve)).return = oe, te) : ((te = a(te, ue.children || [])).return = oe, te); } function ge(oe, te, ue, ve, _e) { @@ -4795,7 +4877,7 @@ function Eu() { case He: return ue.key === _e ? ue.type === kt ? ge(oe, te, ue.props.children, ve, _e) : Z(oe, te, ue, ve) : null; case At: - return ue.key === _e ? q(oe, te, ue, ve) : null; + return ue.key === _e ? Y(oe, te, ue, ve) : null; } if (Zi(ue) || en(ue)) return _e !== null ? null : ge(oe, te, ue, ve, null); Ji(oe, ue); @@ -4809,7 +4891,7 @@ function Eu() { case He: return oe = oe.get(ve.key === null ? ue : ve.key) || null, ve.type === kt ? ge(te, oe, ve.props.children, _e, ve.key) : Z(te, oe, ve, _e); case At: - return q(te, oe = oe.get(ve.key === null ? ue : ve.key) || null, ve, _e); + return Y(te, oe = oe.get(ve.key === null ? ue : ve.key) || null, ve, _e); } if (Zi(ve) || en(ve)) return ge(te, oe = oe.get(ue) || null, ve, _e, null); Ji(te, ve); @@ -4824,22 +4906,22 @@ function Eu() { Be === null && (Be = Rt); break; } - e && Be && Ze.alternate === null && t(oe, Be), te = p(Ze, te, at), Oe === null ? _e = Ze : Oe.sibling = Ze, Oe = Ze, Be = Rt; + e && Be && Ze.alternate === null && t(oe, Be), te = h(Ze, te, at), Oe === null ? _e = Ze : Oe.sibling = Ze, Oe = Ze, Be = Rt; } if (at === ue.length) return n(oe, Be), _e; if (Be === null) { - for (; at < ue.length; at++) (Be = De(oe, ue[at], ve)) !== null && (te = p(Be, te, at), Oe === null ? _e = Be : Oe.sibling = Be, Oe = Be); + for (; at < ue.length; at++) (Be = De(oe, ue[at], ve)) !== null && (te = h(Be, te, at), Oe === null ? _e = Be : Oe.sibling = Be, Oe = Be); return _e; } - for (Be = r(oe, Be); at < ue.length; at++) (Rt = ot(Be, oe, at, ue[at], ve)) !== null && (e && Rt.alternate !== null && Be.delete(Rt.key === null ? at : Rt.key), te = p(Rt, te, at), Oe === null ? _e = Rt : Oe.sibling = Rt, Oe = Rt); + for (Be = o(oe, Be); at < ue.length; at++) (Rt = ot(Be, oe, at, ue[at], ve)) !== null && (e && Rt.alternate !== null && Be.delete(Rt.key === null ? at : Rt.key), te = h(Rt, te, at), Oe === null ? _e = Rt : Oe.sibling = Rt, Oe = Rt); return e && Be.forEach(function(Bt) { return t(oe, Bt); }), _e; } function ln(oe, te, ue, ve) { var _e = en(ue); - if (typeof _e != "function") throw Error(m(150)); - if ((ue = _e.call(ue)) == null) throw Error(m(151)); + if (typeof _e != "function") throw Error(g(150)); + if ((ue = _e.call(ue)) == null) throw Error(g(151)); for (var Oe = _e = null, Be = te, at = te = 0, Rt = null, Ze = ue.next(); Be !== null && !Ze.done; at++, Ze = ue.next()) { Be.index > at ? (Rt = Be, Be = null) : Rt = Be.sibling; var Bt = We(oe, Be, Ze.value, ve); @@ -4847,14 +4929,14 @@ function Eu() { Be === null && (Be = Rt); break; } - e && Be && Bt.alternate === null && t(oe, Be), te = p(Bt, te, at), Oe === null ? _e = Bt : Oe.sibling = Bt, Oe = Bt, Be = Rt; + e && Be && Bt.alternate === null && t(oe, Be), te = h(Bt, te, at), Oe === null ? _e = Bt : Oe.sibling = Bt, Oe = Bt, Be = Rt; } if (Ze.done) return n(oe, Be), _e; if (Be === null) { - for (; !Ze.done; at++, Ze = ue.next()) (Ze = De(oe, Ze.value, ve)) !== null && (te = p(Ze, te, at), Oe === null ? _e = Ze : Oe.sibling = Ze, Oe = Ze); + for (; !Ze.done; at++, Ze = ue.next()) (Ze = De(oe, Ze.value, ve)) !== null && (te = h(Ze, te, at), Oe === null ? _e = Ze : Oe.sibling = Ze, Oe = Ze); return _e; } - for (Be = r(oe, Be); !Ze.done; at++, Ze = ue.next()) (Ze = ot(Be, oe, at, Ze.value, ve)) !== null && (e && Ze.alternate !== null && Be.delete(Ze.key === null ? at : Ze.key), te = p(Ze, te, at), Oe === null ? _e = Ze : Oe.sibling = Ze, Oe = Ze); + for (Be = o(oe, Be); !Ze.done; at++, Ze = ue.next()) (Ze = ot(Be, oe, at, Ze.value, ve)) !== null && (e && Ze.alternate !== null && Be.delete(Ze.key === null ? at : Ze.key), te = h(Ze, te, at), Oe === null ? _e = Ze : Oe.sibling = Ze, Oe = Ze); return e && Be.forEach(function(wr) { return t(oe, wr); }), _e; @@ -4912,17 +4994,17 @@ function Eu() { if (Oe && Ji(oe, ue), ue === void 0 && !_e) switch (oe.tag) { case 1: case 0: - throw oe = oe.type, Error(m(152, oe.displayName || oe.name || "Component")); + throw oe = oe.type, Error(g(152, oe.displayName || oe.name || "Component")); } return n(oe, te); }; } var Fo = Zs(!0), $a = Zs(!1), ci = {}, er = { current: ci }, ui = { current: ci }, di = { current: ci }; function co(e) { - if (e === ci) throw Error(m(174)); + if (e === ci) throw Error(g(174)); return e; } - function Ya(e, t) { + function qa(e, t) { switch (St(di, t), St(ui, e), St(er, ci), e = t.nodeType) { case 9: case 11: @@ -4941,7 +5023,7 @@ function Eu() { var t = co(er.current), n = Ce(t, e.type); t !== n && (St(ui, e), St(er, n)); } - function qa(e) { + function Ya(e) { ui.current === e && (vt(er), vt(ui)); } var Ct = { current: 0 }; @@ -4970,22 +5052,22 @@ function Eu() { } var ta = he.ReactCurrentDispatcher, Ln = he.ReactCurrentBatchConfig, $r = 0, Lt = null, sn = null, Zt = null, na = !1; function En() { - throw Error(m(321)); + throw Error(g(321)); } function Qa(e, t) { if (t === null) return !1; for (var n = 0; n < t.length && n < e.length; n++) if (!mr(e[n], t[n])) return !1; return !0; } - function Ga(e, t, n, r, a, p) { - if ($r = p, Lt = t, t.memoizedState = null, t.updateQueue = null, t.expirationTime = 0, ta.current = e === null || e.memoizedState === null ? kc : wc, e = n(r, a), t.expirationTime === $r) { - p = 0; + function Ga(e, t, n, o, a, h) { + if ($r = h, Lt = t, t.memoizedState = null, t.updateQueue = null, t.expirationTime = 0, ta.current = e === null || e.memoizedState === null ? kc : wc, e = n(o, a), t.expirationTime === $r) { + h = 0; do { - if (t.expirationTime = 0, !(25 > p)) throw Error(m(301)); - p += 1, Zt = sn = null, t.updateQueue = null, ta.current = Ec, e = n(r, a); + if (t.expirationTime = 0, !(25 > h)) throw Error(g(301)); + h += 1, Zt = sn = null, t.updateQueue = null, ta.current = Ec, e = n(o, a); } while (t.expirationTime === $r); } - if (ta.current = sa, t = sn !== null && sn.next !== null, $r = 0, Zt = sn = Lt = null, na = !1, t) throw Error(m(300)); + if (ta.current = sa, t = sn !== null && sn.next !== null, $r = 0, Zt = sn = Lt = null, na = !1, t) throw Error(g(300)); return e; } function Vo() { @@ -5000,7 +5082,7 @@ function Eu() { var t = Zt === null ? Lt.memoizedState : Zt.next; if (t !== null) Zt = t, sn = e; else { - if (e === null) throw Error(m(310)); + if (e === null) throw Error(g(310)); e = { memoizedState: (sn = e).memoizedState, baseState: sn.baseState, baseQueue: sn.baseQueue, queue: sn.queue, next: null }, Zt === null ? Lt.memoizedState = Zt = e : Zt = Zt.next = e; } return Zt; @@ -5010,69 +5092,69 @@ function Eu() { } function ra(e) { var t = Wo(), n = t.queue; - if (n === null) throw Error(m(311)); + if (n === null) throw Error(g(311)); n.lastRenderedReducer = e; - var r = sn, a = r.baseQueue, p = n.pending; - if (p !== null) { + var o = sn, a = o.baseQueue, h = n.pending; + if (h !== null) { if (a !== null) { var k = a.next; - a.next = p.next, p.next = k; + a.next = h.next, h.next = k; } - r.baseQueue = a = p, n.pending = null; + o.baseQueue = a = h, n.pending = null; } if (a !== null) { - a = a.next, r = r.baseState; - var T = k = p = null, Z = a; + a = a.next, o = o.baseState; + var T = k = h = null, Z = a; do { - var q = Z.expirationTime; - if (q < $r) { + var Y = Z.expirationTime; + if (Y < $r) { var ge = { expirationTime: Z.expirationTime, suspenseConfig: Z.suspenseConfig, action: Z.action, eagerReducer: Z.eagerReducer, eagerState: Z.eagerState, next: null }; - T === null ? (k = T = ge, p = r) : T = T.next = ge, q > Lt.expirationTime && (Lt.expirationTime = q, wa(q)); - } else T !== null && (T = T.next = { expirationTime: 1073741823, suspenseConfig: Z.suspenseConfig, action: Z.action, eagerReducer: Z.eagerReducer, eagerState: Z.eagerState, next: null }), Bl(q, Z.suspenseConfig), r = Z.eagerReducer === e ? Z.eagerState : e(r, Z.action); + T === null ? (k = T = ge, h = o) : T = T.next = ge, Y > Lt.expirationTime && (Lt.expirationTime = Y, wa(Y)); + } else T !== null && (T = T.next = { expirationTime: 1073741823, suspenseConfig: Z.suspenseConfig, action: Z.action, eagerReducer: Z.eagerReducer, eagerState: Z.eagerState, next: null }), Bl(Y, Z.suspenseConfig), o = Z.eagerReducer === e ? Z.eagerState : e(o, Z.action); Z = Z.next; } while (Z !== null && Z !== a); - T === null ? p = r : T.next = k, mr(r, t.memoizedState) || (tr = !0), t.memoizedState = r, t.baseState = p, t.baseQueue = T, n.lastRenderedState = r; + T === null ? h = o : T.next = k, mr(o, t.memoizedState) || (tr = !0), t.memoizedState = o, t.baseState = h, t.baseQueue = T, n.lastRenderedState = o; } return [t.memoizedState, n.dispatch]; } function oa(e) { var t = Wo(), n = t.queue; - if (n === null) throw Error(m(311)); + if (n === null) throw Error(g(311)); n.lastRenderedReducer = e; - var r = n.dispatch, a = n.pending, p = t.memoizedState; + var o = n.dispatch, a = n.pending, h = t.memoizedState; if (a !== null) { n.pending = null; var k = a = a.next; do - p = e(p, k.action), k = k.next; + h = e(h, k.action), k = k.next; while (k !== a); - mr(p, t.memoizedState) || (tr = !0), t.memoizedState = p, t.baseQueue === null && (t.baseState = p), n.lastRenderedState = p; + mr(h, t.memoizedState) || (tr = !0), t.memoizedState = h, t.baseQueue === null && (t.baseState = h), n.lastRenderedState = h; } - return [p, r]; + return [h, o]; } function Xa(e) { var t = Vo(); return typeof e == "function" && (e = e()), t.memoizedState = t.baseState = e, e = (e = t.queue = { pending: null, dispatch: null, lastRenderedReducer: uo, lastRenderedState: e }).dispatch = sl.bind(null, Lt, e), [t.memoizedState, e]; } - function Za(e, t, n, r) { - return e = { tag: e, create: t, destroy: n, deps: r, next: null }, (t = Lt.updateQueue) === null ? (t = { lastEffect: null }, Lt.updateQueue = t, t.lastEffect = e.next = e) : (n = t.lastEffect) === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e; + function Za(e, t, n, o) { + return e = { tag: e, create: t, destroy: n, deps: o, next: null }, (t = Lt.updateQueue) === null ? (t = { lastEffect: null }, Lt.updateQueue = t, t.lastEffect = e.next = e) : (n = t.lastEffect) === null ? t.lastEffect = e.next = e : (o = n.next, n.next = e, e.next = o, t.lastEffect = e), e; } function el() { return Wo().memoizedState; } - function Ja(e, t, n, r) { + function Ja(e, t, n, o) { var a = Vo(); - Lt.effectTag |= e, a.memoizedState = Za(1 | t, n, void 0, r === void 0 ? null : r); + Lt.effectTag |= e, a.memoizedState = Za(1 | t, n, void 0, o === void 0 ? null : o); } - function es(e, t, n, r) { + function es(e, t, n, o) { var a = Wo(); - r = r === void 0 ? null : r; - var p = void 0; + o = o === void 0 ? null : o; + var h = void 0; if (sn !== null) { var k = sn.memoizedState; - if (p = k.destroy, r !== null && Qa(r, k.deps)) return void Za(t, n, p, r); + if (h = k.destroy, o !== null && Qa(o, k.deps)) return void Za(t, n, h, o); } - Lt.effectTag |= e, a.memoizedState = Za(1 | t, n, p, r); + Lt.effectTag |= e, a.memoizedState = Za(1 | t, n, h, o); } function tl(e, t) { return Ja(516, 4, e, t); @@ -5101,20 +5183,20 @@ function Eu() { function aa(e, t) { var n = Wo(); t = t === void 0 ? null : t; - var r = n.memoizedState; - return r !== null && t !== null && Qa(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e); + var o = n.memoizedState; + return o !== null && t !== null && Qa(t, o[1]) ? o[0] : (n.memoizedState = [e, t], e); } function al(e, t) { var n = Wo(); t = t === void 0 ? null : t; - var r = n.memoizedState; - return r !== null && t !== null && Qa(t, r[1]) ? r[0] : (e = e(), n.memoizedState = [e, t], e); + var o = n.memoizedState; + return o !== null && t !== null && Qa(t, o[1]) ? o[0] : (e = e(), n.memoizedState = [e, t], e); } function ns(e, t, n) { - var r = $i(); - Br(98 > r ? 98 : r, function() { + var o = $i(); + Br(98 > o ? 98 : o, function() { e(!0); - }), Br(97 < r ? 97 : r, function() { + }), Br(97 < o ? 97 : o, function() { var a = Ln.suspense; Ln.suspense = t === void 0 ? null : t; try { @@ -5125,17 +5207,17 @@ function Eu() { }); } function sl(e, t, n) { - var r = nr(), a = si.suspense; - a = { expirationTime: r = mo(r, e, a), suspenseConfig: a, action: n, eagerReducer: null, eagerState: null, next: null }; - var p = t.pending; - if (p === null ? a.next = a : (a.next = p.next, p.next = a), t.pending = a, p = e.alternate, e === Lt || p !== null && p === Lt) na = !0, a.expirationTime = $r, Lt.expirationTime = $r; + var o = nr(), a = si.suspense; + a = { expirationTime: o = mo(o, e, a), suspenseConfig: a, action: n, eagerReducer: null, eagerState: null, next: null }; + var h = t.pending; + if (h === null ? a.next = a : (a.next = h.next, h.next = a), t.pending = a, h = e.alternate, e === Lt || h !== null && h === Lt) na = !0, a.expirationTime = $r, Lt.expirationTime = $r; else { - if (e.expirationTime === 0 && (p === null || p.expirationTime === 0) && (p = t.lastRenderedReducer) !== null) try { - var k = t.lastRenderedState, T = p(k, n); - if (a.eagerReducer = p, a.eagerState = T, mr(T, k)) return; + if (e.expirationTime === 0 && (h === null || h.expirationTime === 0) && (h = t.lastRenderedReducer) !== null) try { + var k = t.lastRenderedState, T = h(k, n); + if (a.eagerReducer = h, a.eagerState = T, mr(T, k)) return; } catch { } - Kr(e, r); + Kr(e, o); } } var sa = { readContext: zn, useCallback: En, useContext: En, useEffect: En, useImperativeHandle: En, useLayoutEffect: En, useMemo: En, useReducer: En, useRef: En, useState: En, useDebugValue: En, useResponder: En, useDeferredValue: En, useTransition: En }, kc = { readContext: zn, useCallback: il, useContext: zn, useEffect: tl, useImperativeHandle: function(e, t, n) { @@ -5146,57 +5228,57 @@ function Eu() { var n = Vo(); return t = t === void 0 ? null : t, e = e(), n.memoizedState = [e, t], e; }, useReducer: function(e, t, n) { - var r = Vo(); - return t = n !== void 0 ? n(t) : t, r.memoizedState = r.baseState = t, e = (e = r.queue = { pending: null, dispatch: null, lastRenderedReducer: e, lastRenderedState: t }).dispatch = sl.bind(null, Lt, e), [r.memoizedState, e]; + var o = Vo(); + return t = n !== void 0 ? n(t) : t, o.memoizedState = o.baseState = t, e = (e = o.queue = { pending: null, dispatch: null, lastRenderedReducer: e, lastRenderedState: t }).dispatch = sl.bind(null, Lt, e), [o.memoizedState, e]; }, useRef: function(e) { return e = { current: e }, Vo().memoizedState = e; }, useState: Xa, useDebugValue: ts, useResponder: Ka, useDeferredValue: function(e, t) { - var n = Xa(e), r = n[0], a = n[1]; + var n = Xa(e), o = n[0], a = n[1]; return tl(function() { - var p = Ln.suspense; + var h = Ln.suspense; Ln.suspense = t === void 0 ? null : t; try { a(e); } finally { - Ln.suspense = p; + Ln.suspense = h; } - }, [e, t]), r; + }, [e, t]), o; }, useTransition: function(e) { var t = Xa(!1), n = t[0]; return t = t[1], [il(ns.bind(null, t, e), [t, e]), n]; } }, wc = { readContext: zn, useCallback: aa, useContext: zn, useEffect: ia, useImperativeHandle: ol, useLayoutEffect: nl, useMemo: al, useReducer: ra, useRef: el, useState: function() { return ra(uo); }, useDebugValue: ts, useResponder: Ka, useDeferredValue: function(e, t) { - var n = ra(uo), r = n[0], a = n[1]; + var n = ra(uo), o = n[0], a = n[1]; return ia(function() { - var p = Ln.suspense; + var h = Ln.suspense; Ln.suspense = t === void 0 ? null : t; try { a(e); } finally { - Ln.suspense = p; + Ln.suspense = h; } - }, [e, t]), r; + }, [e, t]), o; }, useTransition: function(e) { var t = ra(uo), n = t[0]; return t = t[1], [aa(ns.bind(null, t, e), [t, e]), n]; } }, Ec = { readContext: zn, useCallback: aa, useContext: zn, useEffect: ia, useImperativeHandle: ol, useLayoutEffect: nl, useMemo: al, useReducer: oa, useRef: el, useState: function() { return oa(uo); }, useDebugValue: ts, useResponder: Ka, useDeferredValue: function(e, t) { - var n = oa(uo), r = n[0], a = n[1]; + var n = oa(uo), o = n[0], a = n[1]; return ia(function() { - var p = Ln.suspense; + var h = Ln.suspense; Ln.suspense = t === void 0 ? null : t; try { a(e); } finally { - Ln.suspense = p; + Ln.suspense = h; } - }, [e, t]), r; + }, [e, t]), o; }, useTransition: function(e) { var t = oa(uo), n = t[0]; return t = t[1], [aa(ns.bind(null, t, e), [t, e]), n]; - } }, yr = null, Yr = null, fo = !1; + } }, yr = null, qr = null, fo = !1; function ll(e, t) { var n = rr(5, null, null, 0); n.elementType = "DELETED", n.type = "DELETED", n.stateNode = t, n.return = e, n.effectTag = 8, e.lastEffect !== null ? (e.lastEffect.nextEffect = n, e.lastEffect = n) : e.firstEffect = e.lastEffect = n; @@ -5215,14 +5297,14 @@ function Eu() { } function rs(e) { if (fo) { - var t = Yr; + var t = qr; if (t) { var n = t; if (!cl(e, t)) { - if (!(t = Mr(n.nextSibling)) || !cl(e, t)) return e.effectTag = -1025 & e.effectTag | 2, fo = !1, void (yr = e); + if (!(t = Ir(n.nextSibling)) || !cl(e, t)) return e.effectTag = -1025 & e.effectTag | 2, fo = !1, void (yr = e); ll(yr, n); } - yr = e, Yr = Mr(t.firstChild); + yr = e, qr = Ir(t.firstChild); } else e.effectTag = -1025 & e.effectTag | 2, fo = !1, yr = e; } } @@ -5234,16 +5316,16 @@ function Eu() { if (e !== yr) return !1; if (!fo) return ul(e), fo = !0, !1; var t = e.type; - if (e.tag !== 5 || t !== "head" && t !== "body" && !ei(t, e.memoizedProps)) for (t = Yr; t; ) ll(e, t), t = Mr(t.nextSibling); + if (e.tag !== 5 || t !== "head" && t !== "body" && !ei(t, e.memoizedProps)) for (t = qr; t; ) ll(e, t), t = Ir(t.nextSibling); if (ul(e), e.tag === 13) { - if (!(e = (e = e.memoizedState) !== null ? e.dehydrated : null)) throw Error(m(317)); + if (!(e = (e = e.memoizedState) !== null ? e.dehydrated : null)) throw Error(g(317)); e: { for (e = e.nextSibling, t = 0; e; ) { if (e.nodeType === 8) { var n = e.data; if (n === "/$") { if (t === 0) { - Yr = Mr(e.nextSibling); + qr = Ir(e.nextSibling); break e; } t--; @@ -5251,106 +5333,106 @@ function Eu() { } e = e.nextSibling; } - Yr = null; + qr = null; } - } else Yr = yr ? Mr(e.stateNode.nextSibling) : null; + } else qr = yr ? Ir(e.stateNode.nextSibling) : null; return !0; } function os() { - Yr = yr = null, fo = !1; + qr = yr = null, fo = !1; } var _c = he.ReactCurrentOwner, tr = !1; - function Un(e, t, n, r) { - t.child = e === null ? $a(t, null, n, r) : Fo(t, e.child, n, r); + function Un(e, t, n, o) { + t.child = e === null ? $a(t, null, n, o) : Fo(t, e.child, n, o); } - function dl(e, t, n, r, a) { + function dl(e, t, n, o, a) { n = n.render; - var p = t.ref; - return Uo(t, a), r = Ga(e, t, n, r, p, a), e === null || tr ? (t.effectTag |= 1, Un(e, t, r, a), t.child) : (t.updateQueue = e.updateQueue, t.effectTag &= -517, e.expirationTime <= a && (e.expirationTime = 0), vr(e, t, a)); + var h = t.ref; + return Uo(t, a), o = Ga(e, t, n, o, h, a), e === null || tr ? (t.effectTag |= 1, Un(e, t, o, a), t.child) : (t.updateQueue = e.updateQueue, t.effectTag &= -517, e.expirationTime <= a && (e.expirationTime = 0), vr(e, t, a)); } - function fl(e, t, n, r, a, p) { + function fl(e, t, n, o, a, h) { if (e === null) { var k = n.type; - return typeof k != "function" || vs(k) || k.defaultProps !== void 0 || n.compare !== null || n.defaultProps !== void 0 ? ((e = Ea(n.type, null, r, null, t.mode, p)).ref = t.ref, e.return = t, t.child = e) : (t.tag = 15, t.type = k, pl(e, t, k, r, a, p)); + return typeof k != "function" || vs(k) || k.defaultProps !== void 0 || n.compare !== null || n.defaultProps !== void 0 ? ((e = Ea(n.type, null, o, null, t.mode, h)).ref = t.ref, e.return = t, t.child = e) : (t.tag = 15, t.type = k, pl(e, t, k, o, a, h)); } - return k = e.child, a < p && (a = k.memoizedProps, (n = (n = n.compare) !== null ? n : gr)(a, r) && e.ref === t.ref) ? vr(e, t, p) : (t.effectTag |= 1, (e = vo(k, r)).ref = t.ref, e.return = t, t.child = e); + return k = e.child, a < h && (a = k.memoizedProps, (n = (n = n.compare) !== null ? n : gr)(a, o) && e.ref === t.ref) ? vr(e, t, h) : (t.effectTag |= 1, (e = vo(k, o)).ref = t.ref, e.return = t, t.child = e); } - function pl(e, t, n, r, a, p) { - return e !== null && gr(e.memoizedProps, r) && e.ref === t.ref && (tr = !1, a < p) ? (t.expirationTime = e.expirationTime, vr(e, t, p)) : is(e, t, n, r, p); + function pl(e, t, n, o, a, h) { + return e !== null && gr(e.memoizedProps, o) && e.ref === t.ref && (tr = !1, a < h) ? (t.expirationTime = e.expirationTime, vr(e, t, h)) : is(e, t, n, o, h); } function hl(e, t) { var n = t.ref; (e === null && n !== null || e !== null && e.ref !== n) && (t.effectTag |= 128); } - function is(e, t, n, r, a) { - var p = hn(n) ? lo : Xt.current; - return p = zo(t, p), Uo(t, a), n = Ga(e, t, n, r, p, a), e === null || tr ? (t.effectTag |= 1, Un(e, t, n, a), t.child) : (t.updateQueue = e.updateQueue, t.effectTag &= -517, e.expirationTime <= a && (e.expirationTime = 0), vr(e, t, a)); + function is(e, t, n, o, a) { + var h = hn(n) ? lo : Xt.current; + return h = zo(t, h), Uo(t, a), n = Ga(e, t, n, o, h, a), e === null || tr ? (t.effectTag |= 1, Un(e, t, n, a), t.child) : (t.updateQueue = e.updateQueue, t.effectTag &= -517, e.expirationTime <= a && (e.expirationTime = 0), vr(e, t, a)); } - function ml(e, t, n, r, a) { + function ml(e, t, n, o, a) { if (hn(n)) { - var p = !0; + var h = !0; Vi(t); - } else p = !1; - if (Uo(t, a), t.stateNode === null) e !== null && (e.alternate = null, t.alternate = null, t.effectTag |= 2), Gs(t, n, r), Ha(t, n, r, a), r = !0; + } else h = !1; + if (Uo(t, a), t.stateNode === null) e !== null && (e.alternate = null, t.alternate = null, t.effectTag |= 2), Gs(t, n, o), Ha(t, n, o, a), o = !0; else if (e === null) { var k = t.stateNode, T = t.memoizedProps; k.props = T; - var Z = k.context, q = n.contextType; - typeof q == "object" && q !== null ? q = zn(q) : q = zo(t, q = hn(n) ? lo : Xt.current); + var Z = k.context, Y = n.contextType; + typeof Y == "object" && Y !== null ? Y = zn(Y) : Y = zo(t, Y = hn(n) ? lo : Xt.current); var ge = n.getDerivedStateFromProps, De = typeof ge == "function" || typeof k.getSnapshotBeforeUpdate == "function"; - De || typeof k.UNSAFE_componentWillReceiveProps != "function" && typeof k.componentWillReceiveProps != "function" || (T !== r || Z !== q) && Xs(t, k, r, q), Vr = !1; + De || typeof k.UNSAFE_componentWillReceiveProps != "function" && typeof k.componentWillReceiveProps != "function" || (T !== o || Z !== Y) && Xs(t, k, o, Y), Vr = !1; var We = t.memoizedState; - k.state = We, ai(t, r, k, a), Z = t.memoizedState, T !== r || We !== Z || pn.current || Vr ? (typeof ge == "function" && (Gi(t, n, ge, r), Z = t.memoizedState), (T = Vr || Qs(t, n, T, r, We, Z, q)) ? (De || typeof k.UNSAFE_componentWillMount != "function" && typeof k.componentWillMount != "function" || (typeof k.componentWillMount == "function" && k.componentWillMount(), typeof k.UNSAFE_componentWillMount == "function" && k.UNSAFE_componentWillMount()), typeof k.componentDidMount == "function" && (t.effectTag |= 4)) : (typeof k.componentDidMount == "function" && (t.effectTag |= 4), t.memoizedProps = r, t.memoizedState = Z), k.props = r, k.state = Z, k.context = q, r = T) : (typeof k.componentDidMount == "function" && (t.effectTag |= 4), r = !1); - } else k = t.stateNode, Wa(e, t), T = t.memoizedProps, k.props = t.type === t.elementType ? T : $n(t.type, T), Z = k.context, typeof (q = n.contextType) == "object" && q !== null ? q = zn(q) : q = zo(t, q = hn(n) ? lo : Xt.current), (De = typeof (ge = n.getDerivedStateFromProps) == "function" || typeof k.getSnapshotBeforeUpdate == "function") || typeof k.UNSAFE_componentWillReceiveProps != "function" && typeof k.componentWillReceiveProps != "function" || (T !== r || Z !== q) && Xs(t, k, r, q), Vr = !1, Z = t.memoizedState, k.state = Z, ai(t, r, k, a), We = t.memoizedState, T !== r || Z !== We || pn.current || Vr ? (typeof ge == "function" && (Gi(t, n, ge, r), We = t.memoizedState), (ge = Vr || Qs(t, n, T, r, Z, We, q)) ? (De || typeof k.UNSAFE_componentWillUpdate != "function" && typeof k.componentWillUpdate != "function" || (typeof k.componentWillUpdate == "function" && k.componentWillUpdate(r, We, q), typeof k.UNSAFE_componentWillUpdate == "function" && k.UNSAFE_componentWillUpdate(r, We, q)), typeof k.componentDidUpdate == "function" && (t.effectTag |= 4), typeof k.getSnapshotBeforeUpdate == "function" && (t.effectTag |= 256)) : (typeof k.componentDidUpdate != "function" || T === e.memoizedProps && Z === e.memoizedState || (t.effectTag |= 4), typeof k.getSnapshotBeforeUpdate != "function" || T === e.memoizedProps && Z === e.memoizedState || (t.effectTag |= 256), t.memoizedProps = r, t.memoizedState = We), k.props = r, k.state = We, k.context = q, r = ge) : (typeof k.componentDidUpdate != "function" || T === e.memoizedProps && Z === e.memoizedState || (t.effectTag |= 4), typeof k.getSnapshotBeforeUpdate != "function" || T === e.memoizedProps && Z === e.memoizedState || (t.effectTag |= 256), r = !1); - return as(e, t, n, r, p, a); + k.state = We, ai(t, o, k, a), Z = t.memoizedState, T !== o || We !== Z || pn.current || Vr ? (typeof ge == "function" && (Gi(t, n, ge, o), Z = t.memoizedState), (T = Vr || Qs(t, n, T, o, We, Z, Y)) ? (De || typeof k.UNSAFE_componentWillMount != "function" && typeof k.componentWillMount != "function" || (typeof k.componentWillMount == "function" && k.componentWillMount(), typeof k.UNSAFE_componentWillMount == "function" && k.UNSAFE_componentWillMount()), typeof k.componentDidMount == "function" && (t.effectTag |= 4)) : (typeof k.componentDidMount == "function" && (t.effectTag |= 4), t.memoizedProps = o, t.memoizedState = Z), k.props = o, k.state = Z, k.context = Y, o = T) : (typeof k.componentDidMount == "function" && (t.effectTag |= 4), o = !1); + } else k = t.stateNode, Wa(e, t), T = t.memoizedProps, k.props = t.type === t.elementType ? T : $n(t.type, T), Z = k.context, typeof (Y = n.contextType) == "object" && Y !== null ? Y = zn(Y) : Y = zo(t, Y = hn(n) ? lo : Xt.current), (De = typeof (ge = n.getDerivedStateFromProps) == "function" || typeof k.getSnapshotBeforeUpdate == "function") || typeof k.UNSAFE_componentWillReceiveProps != "function" && typeof k.componentWillReceiveProps != "function" || (T !== o || Z !== Y) && Xs(t, k, o, Y), Vr = !1, Z = t.memoizedState, k.state = Z, ai(t, o, k, a), We = t.memoizedState, T !== o || Z !== We || pn.current || Vr ? (typeof ge == "function" && (Gi(t, n, ge, o), We = t.memoizedState), (ge = Vr || Qs(t, n, T, o, Z, We, Y)) ? (De || typeof k.UNSAFE_componentWillUpdate != "function" && typeof k.componentWillUpdate != "function" || (typeof k.componentWillUpdate == "function" && k.componentWillUpdate(o, We, Y), typeof k.UNSAFE_componentWillUpdate == "function" && k.UNSAFE_componentWillUpdate(o, We, Y)), typeof k.componentDidUpdate == "function" && (t.effectTag |= 4), typeof k.getSnapshotBeforeUpdate == "function" && (t.effectTag |= 256)) : (typeof k.componentDidUpdate != "function" || T === e.memoizedProps && Z === e.memoizedState || (t.effectTag |= 4), typeof k.getSnapshotBeforeUpdate != "function" || T === e.memoizedProps && Z === e.memoizedState || (t.effectTag |= 256), t.memoizedProps = o, t.memoizedState = We), k.props = o, k.state = We, k.context = Y, o = ge) : (typeof k.componentDidUpdate != "function" || T === e.memoizedProps && Z === e.memoizedState || (t.effectTag |= 4), typeof k.getSnapshotBeforeUpdate != "function" || T === e.memoizedProps && Z === e.memoizedState || (t.effectTag |= 256), o = !1); + return as(e, t, n, o, h, a); } - function as(e, t, n, r, a, p) { + function as(e, t, n, o, a, h) { hl(e, t); var k = (64 & t.effectTag) != 0; - if (!r && !k) return a && Rs(t, n, !1), vr(e, t, p); - r = t.stateNode, _c.current = t; - var T = k && typeof n.getDerivedStateFromError != "function" ? null : r.render(); - return t.effectTag |= 1, e !== null && k ? (t.child = Fo(t, e.child, null, p), t.child = Fo(t, null, T, p)) : Un(e, t, T, p), t.memoizedState = r.state, a && Rs(t, n, !0), t.child; + if (!o && !k) return a && Rs(t, n, !1), vr(e, t, h); + o = t.stateNode, _c.current = t; + var T = k && typeof n.getDerivedStateFromError != "function" ? null : o.render(); + return t.effectTag |= 1, e !== null && k ? (t.child = Fo(t, e.child, null, h), t.child = Fo(t, null, T, h)) : Un(e, t, T, h), t.memoizedState = o.state, a && Rs(t, n, !0), t.child; } function gl(e) { var t = e.stateNode; - t.pendingContext ? Ns(0, t.pendingContext, t.pendingContext !== t.context) : t.context && Ns(0, t.context, !1), Ya(e, t.containerInfo); + t.pendingContext ? Ns(0, t.pendingContext, t.pendingContext !== t.context) : t.context && Ns(0, t.context, !1), qa(e, t.containerInfo); } var bl, yl, vl, ss = { dehydrated: null, retryTime: 0 }; function kl(e, t, n) { - var r, a = t.mode, p = t.pendingProps, k = Ct.current, T = !1; - if ((r = (64 & t.effectTag) != 0) || (r = (2 & k) != 0 && (e === null || e.memoizedState !== null)), r ? (T = !0, t.effectTag &= -65) : e !== null && e.memoizedState === null || p.fallback === void 0 || p.unstable_avoidThisFallback === !0 || (k |= 1), St(Ct, 1 & k), e === null) { - if (p.fallback !== void 0 && rs(t), T) { - if (T = p.fallback, (p = Qr(null, a, 0, null)).return = t, (2 & t.mode) == 0) for (e = t.memoizedState !== null ? t.child.child : t.child, p.child = e; e !== null; ) e.return = p, e = e.sibling; - return (n = Qr(T, a, n, null)).return = t, p.sibling = n, t.memoizedState = ss, t.child = p, n; + var o, a = t.mode, h = t.pendingProps, k = Ct.current, T = !1; + if ((o = (64 & t.effectTag) != 0) || (o = (2 & k) != 0 && (e === null || e.memoizedState !== null)), o ? (T = !0, t.effectTag &= -65) : e !== null && e.memoizedState === null || h.fallback === void 0 || h.unstable_avoidThisFallback === !0 || (k |= 1), St(Ct, 1 & k), e === null) { + if (h.fallback !== void 0 && rs(t), T) { + if (T = h.fallback, (h = Qr(null, a, 0, null)).return = t, (2 & t.mode) == 0) for (e = t.memoizedState !== null ? t.child.child : t.child, h.child = e; e !== null; ) e.return = h, e = e.sibling; + return (n = Qr(T, a, n, null)).return = t, h.sibling = n, t.memoizedState = ss, t.child = h, n; } - return a = p.children, t.memoizedState = null, t.child = $a(t, null, a, n); + return a = h.children, t.memoizedState = null, t.child = $a(t, null, a, n); } if (e.memoizedState !== null) { if (a = (e = e.child).sibling, T) { - if (p = p.fallback, (n = vo(e, e.pendingProps)).return = t, (2 & t.mode) == 0 && (T = t.memoizedState !== null ? t.child.child : t.child) !== e.child) for (n.child = T; T !== null; ) T.return = n, T = T.sibling; - return (a = vo(a, p)).return = t, n.sibling = a, n.childExpirationTime = 0, t.memoizedState = ss, t.child = n, a; + if (h = h.fallback, (n = vo(e, e.pendingProps)).return = t, (2 & t.mode) == 0 && (T = t.memoizedState !== null ? t.child.child : t.child) !== e.child) for (n.child = T; T !== null; ) T.return = n, T = T.sibling; + return (a = vo(a, h)).return = t, n.sibling = a, n.childExpirationTime = 0, t.memoizedState = ss, t.child = n, a; } - return n = Fo(t, e.child, p.children, n), t.memoizedState = null, t.child = n; + return n = Fo(t, e.child, h.children, n), t.memoizedState = null, t.child = n; } if (e = e.child, T) { - if (T = p.fallback, (p = Qr(null, a, 0, null)).return = t, p.child = e, e !== null && (e.return = p), (2 & t.mode) == 0) for (e = t.memoizedState !== null ? t.child.child : t.child, p.child = e; e !== null; ) e.return = p, e = e.sibling; - return (n = Qr(T, a, n, null)).return = t, p.sibling = n, n.effectTag |= 2, p.childExpirationTime = 0, t.memoizedState = ss, t.child = p, n; + if (T = h.fallback, (h = Qr(null, a, 0, null)).return = t, h.child = e, e !== null && (e.return = h), (2 & t.mode) == 0) for (e = t.memoizedState !== null ? t.child.child : t.child, h.child = e; e !== null; ) e.return = h, e = e.sibling; + return (n = Qr(T, a, n, null)).return = t, h.sibling = n, n.effectTag |= 2, h.childExpirationTime = 0, t.memoizedState = ss, t.child = h, n; } - return t.memoizedState = null, t.child = Fo(t, e, p.children, n); + return t.memoizedState = null, t.child = Fo(t, e, h.children, n); } function wl(e, t) { e.expirationTime < t && (e.expirationTime = t); var n = e.alternate; n !== null && n.expirationTime < t && (n.expirationTime = t), $s(e.return, t); } - function ls(e, t, n, r, a, p) { + function ls(e, t, n, o, a, h) { var k = e.memoizedState; - k === null ? e.memoizedState = { isBackwards: t, rendering: null, renderingStartTime: 0, last: r, tail: n, tailExpiration: 0, tailMode: a, lastEffect: p } : (k.isBackwards = t, k.rendering = null, k.renderingStartTime = 0, k.last = r, k.tail = n, k.tailExpiration = 0, k.tailMode = a, k.lastEffect = p); + k === null ? e.memoizedState = { isBackwards: t, rendering: null, renderingStartTime: 0, last: o, tail: n, tailExpiration: 0, tailMode: a, lastEffect: h } : (k.isBackwards = t, k.rendering = null, k.renderingStartTime = 0, k.last = o, k.tail = n, k.tailExpiration = 0, k.tailMode = a, k.lastEffect = h); } function El(e, t, n) { - var r = t.pendingProps, a = r.revealOrder, p = r.tail; - if (Un(e, t, r.children, n), (2 & (r = Ct.current)) != 0) r = 1 & r | 2, t.effectTag |= 64; + var o = t.pendingProps, a = o.revealOrder, h = o.tail; + if (Un(e, t, o.children, n), (2 & (o = Ct.current)) != 0) o = 1 & o | 2, t.effectTag |= 64; else { if (e !== null && (64 & e.effectTag) != 0) e: for (e = t.child; e !== null; ) { if (e.tag === 13) e.memoizedState !== null && wl(e, n); @@ -5366,13 +5448,13 @@ function Eu() { } e.sibling.return = e.return, e = e.sibling; } - r &= 1; + o &= 1; } - if (St(Ct, r), (2 & t.mode) == 0) t.memoizedState = null; + if (St(Ct, o), (2 & t.mode) == 0) t.memoizedState = null; else switch (a) { case "forwards": for (n = t.child, a = null; n !== null; ) (e = n.alternate) !== null && ea(e) === null && (a = n), n = n.sibling; - (n = a) === null ? (a = t.child, t.child = null) : (a = n.sibling, n.sibling = null), ls(t, !1, a, n, p, t.lastEffect); + (n = a) === null ? (a = t.child, t.child = null) : (a = n.sibling, n.sibling = null), ls(t, !1, a, n, h, t.lastEffect); break; case "backwards": for (n = null, a = t.child, t.child = null; a !== null; ) { @@ -5382,7 +5464,7 @@ function Eu() { } e = a.sibling, a.sibling = n, n = a, a = e; } - ls(t, !0, n, null, p, t.lastEffect); + ls(t, !0, n, null, h, t.lastEffect); break; case "together": ls(t, !1, null, null, void 0, t.lastEffect); @@ -5394,9 +5476,9 @@ function Eu() { } function vr(e, t, n) { e !== null && (t.dependencies = e.dependencies); - var r = t.expirationTime; - if (r !== 0 && wa(r), t.childExpirationTime < n) return null; - if (e !== null && t.child !== e.child) throw Error(m(153)); + var o = t.expirationTime; + if (o !== 0 && wa(o), t.childExpirationTime < n) return null; + if (e !== null && t.child !== e.child) throw Error(g(153)); if (t.child !== null) { for (n = vo(e = t.child, e.pendingProps), t.child = n, n.return = t; e.sibling !== null; ) e = e.sibling, (n = n.sibling = vo(e, e.pendingProps)).return = t; n.sibling = null; @@ -5412,12 +5494,12 @@ function Eu() { break; case "collapsed": n = e.tail; - for (var r = null; n !== null; ) n.alternate !== null && (r = n), n = n.sibling; - r === null ? t || e.tail === null ? e.tail = null : e.tail.sibling = null : r.sibling = null; + for (var o = null; n !== null; ) n.alternate !== null && (o = n), n = n.sibling; + o === null ? t || e.tail === null ? e.tail = null : e.tail.sibling = null : o.sibling = null; } } function xc(e, t, n) { - var r = t.pendingProps; + var o = t.pendingProps; switch (t.tag) { case 2: case 16: @@ -5435,145 +5517,145 @@ function Eu() { case 3: return Bo(), vt(pn), vt(Xt), (n = t.stateNode).pendingContext && (n.context = n.pendingContext, n.pendingContext = null), e !== null && e.child !== null || !la(t) || (t.effectTag |= 4), null; case 5: - qa(t), n = co(di.current); + Ya(t), n = co(di.current); var a = t.type; - if (e !== null && t.stateNode != null) yl(e, t, a, r, n), e.ref !== t.ref && (t.effectTag |= 128); + if (e !== null && t.stateNode != null) yl(e, t, a, o, n), e.ref !== t.ref && (t.effectTag |= 128); else { - if (!r) { - if (t.stateNode === null) throw Error(m(166)); + if (!o) { + if (t.stateNode === null) throw Error(g(166)); return null; } if (e = co(er.current), la(t)) { - r = t.stateNode, a = t.type; - var p = t.memoizedProps; - switch (r[Qn] = t, r[no] = p, a) { + o = t.stateNode, a = t.type; + var h = t.memoizedProps; + switch (o[Qn] = t, o[no] = h, a) { case "iframe": case "object": case "embed": - mt("load", r); + mt("load", o); break; case "video": case "audio": - for (e = 0; e < ct.length; e++) mt(ct[e], r); + for (e = 0; e < ct.length; e++) mt(ct[e], o); break; case "source": - mt("error", r); + mt("error", o); break; case "img": case "image": case "link": - mt("error", r), mt("load", r); + mt("error", o), mt("load", o); break; case "form": - mt("reset", r), mt("submit", r); + mt("reset", o), mt("submit", o); break; case "details": - mt("toggle", r); + mt("toggle", o); break; case "input": - bn(r, p), mt("invalid", r), Wn(n, "onChange"); + bn(o, h), mt("invalid", o), Wn(n, "onChange"); break; case "select": - r._wrapperState = { wasMultiple: !!p.multiple }, mt("invalid", r), Wn(n, "onChange"); + o._wrapperState = { wasMultiple: !!h.multiple }, mt("invalid", o), Wn(n, "onChange"); break; case "textarea": - On(r, p), mt("invalid", r), Wn(n, "onChange"); + On(o, h), mt("invalid", o), Wn(n, "onChange"); } - for (var k in Ko(a, p), e = null, p) if (p.hasOwnProperty(k)) { - var T = p[k]; - k === "children" ? typeof T == "string" ? r.textContent !== T && (e = ["children", T]) : typeof T == "number" && r.textContent !== "" + T && (e = ["children", "" + T]) : M.hasOwnProperty(k) && T != null && Wn(n, k); + for (var k in Ko(a, h), e = null, h) if (h.hasOwnProperty(k)) { + var T = h[k]; + k === "children" ? typeof T == "string" ? o.textContent !== T && (e = ["children", T]) : typeof T == "number" && o.textContent !== "" + T && (e = ["children", "" + T]) : I.hasOwnProperty(k) && T != null && Wn(n, k); } switch (a) { case "input": - Sr(r), ar(r, p, !0); + Sr(o), ar(o, h, !0); break; case "textarea": - Sr(r), Xr(r); + Sr(o), Xr(o); break; case "select": case "option": break; default: - typeof p.onClick == "function" && (r.onclick = Oo); + typeof h.onClick == "function" && (o.onclick = Oo); } n = e, t.updateQueue = n, n !== null && (t.effectTag |= 4); } else { - switch (k = n.nodeType === 9 ? n : n.ownerDocument, e === Oi && (e = ke(a)), e === Oi ? a === "script" ? ((e = k.createElement("div")).innerHTML = "