From 9b2213759708b0b5f84ac476604297453e77202b Mon Sep 17 00:00:00 2001 From: i-just Date: Thu, 24 Sep 2026 10:16:50 +0200 Subject: [PATCH 1/2] don't change link type if urlSuffix is provided before the link --- .../ckeditor/dist/ckeditor5-craftcms.js | 3194 +++++++++-------- src/web/assets/ckeditor/src/link/linkui.js | 175 +- 2 files changed, 1718 insertions(+), 1651 deletions(-) diff --git a/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js b/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js index 51ba012c..a8d52f0b 100644 --- a/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js +++ b/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js @@ -17,50 +17,50 @@ class ed extends su { this._form, "submit", () => { - const k = this._form.labeledInput.fieldView, v = this.editor.commands.get("imageTextAlternative").value || ""; - Ic.test(v) && k.element.value === this._visibleAltText(v) && (k.value = k.element.value = v); + const v = this._form.labeledInput.fieldView, b = this.editor.commands.get("imageTextAlternative").value || ""; + Ic.test(b) && v.element.value === this._visibleAltText(b) && (v.value = v.element.value = b); }, { priority: "high" } ); } _showForm() { super._showForm(); - const k = this._form.labeledInput.fieldView, v = this._visibleAltText(k.element.value); - k.value = k.element.value = v, this._syncButton.isEnabled = !!this._srcInfo(this._selectedImage()), k.select(); + const v = this._form.labeledInput.fieldView, b = this._visibleAltText(v.element.value); + v.value = v.element.value = b, this._syncButton.isEnabled = !!this._srcInfo(this._selectedImage()), v.select(); } - _visibleAltText(k) { - return k.replace(Ic, ""); + _visibleAltText(v) { + return v.replace(Ic, ""); } _selectedImage() { return this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement( this.editor.model.document.selection ); } - _srcInfo(k) { - if (!k || !k.hasAttribute("src")) + _srcInfo(v) { + if (!v || !v.hasAttribute("src")) return null; - const v = k.getAttribute("src").match(Cu); - return v ? { - assetId: v[1], - siteId: v[2] ?? null + const b = v.getAttribute("src").match(Cu); + return b ? { + assetId: b[1], + siteId: b[2] ?? null } : null; } _createSyncButton() { - const k = this.editor, v = new Jo(k.locale); - v.set({ + const v = this.editor, b = new Jo(v.locale); + b.set({ label: Craft.t("ckeditor", "Sync from asset"), withText: !0, class: "btn" - }), v.render(), this.listenTo(v, "execute", () => this._syncFromAsset()); - const T = new lu(k.locale, { - children: [v] + }), b.render(), this.listenTo(b, "execute", () => this._syncFromAsset()); + const T = new lu(v.locale, { + children: [b] }); - this._form.children.add(T), this._form.focusTracker.add(v.element), this._form._focusables.add(v), this._syncButton = v, this._syncButtonRow = T; + this._form.children.add(T), this._form.focusTracker.add(b.element), this._form._focusables.add(b), this._syncButton = b, this._syncButtonRow = T; } async _syncFromAsset() { var f, _; - const k = this._selectedImage(), v = this._srcInfo(k); - if (!v) + const v = this._selectedImage(), b = this._srcInfo(v); + if (!b) return; let T; try { @@ -69,22 +69,22 @@ class ed extends su { "ckeditor/ckeditor/image-alt", { data: { - assetId: v.assetId, - siteId: v.siteId ?? this.editor.config.get("elementSiteId") + assetId: b.assetId, + siteId: b.siteId ?? this.editor.config.get("elementSiteId") } } ); } catch (d) { throw Craft.cp.displayError((_ = (f = d == null ? void 0 : d.response) == null ? void 0 : f.data) == null ? void 0 : _.message), d; } - const O = T.data.siteId ?? v.siteId, K = T.data.alt ?? "", i = `${K}#asset:${v.assetId}${O ? `@${O}` : ""}:alt`, u = this._form.labeledInput.fieldView; - if (u.value == K) { + const O = T.data.siteId ?? b.siteId, Q = T.data.alt ?? "", i = `${Q}#asset:${b.assetId}${O ? `@${O}` : ""}:alt`, u = this._form.labeledInput.fieldView; + if (u.value == Q) { Craft.cp.displaySuccess( Craft.t("ckeditor", "The alternative text was already in sync.") ); return; } - u.value = u.element.value = K, this.editor.execute("imageTextAlternative", { + u.value = u.element.value = Q, this.editor.execute("imageTextAlternative", { newValue: i }), Craft.cp.displaySuccess( Craft.t("ckeditor", "The alternative text was synced from the asset.") @@ -119,8 +119,8 @@ class td extends cu { ); return; } - const k = this.editor.ui.componentFactory, v = (T) => this._createToolbarImageButton(T); - k.add("insertImage", v), k.add("imageInsert", v), this._attachUploader(); + const v = this.editor.ui.componentFactory, b = (T) => this._createToolbarImageButton(T); + v.add("insertImage", b), v.add("imageInsert", b), this._attachUploader(); } get _imageMode() { return this.editor.config.get("imageMode"); @@ -144,71 +144,71 @@ class td extends cu { "form,.lp-editor-container" ).data("elementEditor"); } - _createToolbarImageButton(k) { - const v = this.editor, T = v.t, O = new Jo(k); + _createToolbarImageButton(v) { + const b = this.editor, T = b.t, O = new Jo(v); O.isEnabled = !0, O.label = T("Insert image"), O.icon = uu, O.tooltip = !0; - const K = v.commands.get("insertImage"); - return O.bind("isEnabled").to(K), this.listenTo(O, "execute", () => this._showImageSelectModal()), O; + const Q = b.commands.get("insertImage"); + return O.bind("isEnabled").to(Q), this.listenTo(O, "execute", () => this._showImageSelectModal()), O; } _showImageSelectModal() { - const k = this._imageSources, v = this.editor, T = v.config, O = Object.assign({}, T.get("assetSelectionCriteria"), { + const v = this._imageSources, b = this.editor, T = b.config, O = Object.assign({}, T.get("assetSelectionCriteria"), { kind: "image" }); Craft.createElementSelectorModal("craft\\elements\\Asset", { ...this._imageModalSettings, storageKey: `ckeditor:${this.pluginName}:'craft\\elements\\Asset'`, - sources: k, + sources: v, criteria: O, defaultSiteId: T.get("elementSiteId"), transforms: T.get("transforms"), autoFocusSearchBox: !1, multiSelect: !0, - onSelect: (K, i) => { - this._processSelectedAssets(K, i).then(() => { - v.editing.view.focus(); + onSelect: (Q, i) => { + this._processSelectedAssets(Q, i).then(() => { + b.editing.view.focus(); }); }, onHide: () => { - v.editing.view.focus(); + b.editing.view.focus(); }, closeOtherModals: !1 }); } - async _processSelectedAssets(k, v) { - if (!k.length) + async _processSelectedAssets(v, b) { + if (!v.length) return; if (this._imageMode === "entries") { - for (const i of k) + for (const i of v) await this._createImageEntry(i.id); return; } - const T = this.editor, O = T.config.get("defaultTransform"), K = []; - for (const i of k) { + const T = this.editor, O = T.config.get("defaultTransform"), Q = []; + for (const i of v) { const u = i.siteId ?? T.config.get("elementSiteId"), f = `${i.$element.data("alt") ?? ""}#asset:${i.id}${u ? `@${u}` : ""}:alt`, _ = this._isTransformUrl(i.url); if (!_ && O) { const d = await this._getTransformUrl(i.id, O); - K.push({ src: d, alt: f }); + Q.push({ src: d, alt: f }); } else { const d = this._buildAssetUrl( i.id, i.url, - _ ? v : O + _ ? b : O ); - K.push({ src: d, alt: f }); + Q.push({ src: d, alt: f }); } } - T.execute("insertImage", { source: K }); + T.execute("insertImage", { source: Q }); } - async _createImageEntry(k) { - const v = this.editor, T = this._elementEditor, O = $(v.sourceElement).attr("name"); + async _createImageEntry(v) { + const b = this.editor, T = this._elementEditor, O = $(b.sourceElement).attr("name"); T && O && await T.setFormValue(O, "*"); - const K = v.config.get( + const Q = b.config.get( "nestedElementAttributes" ), i = { - ...K + ...Q }; - T && (await T.markDeltaNameAsModified(v.sourceElement.name), i.ownerId = T.getDraftElementId( - K.ownerId + T && (await T.markDeltaNameAsModified(b.sourceElement.name), i.ownerId = T.getDraftElementId( + Q.ownerId )); let u; try { @@ -218,28 +218,28 @@ class td extends cu { { data: { ...i, - assetIds: [k] + assetIds: [v] } } ); } catch (f) { throw Craft.cp.displayError(), f; } - v.commands.execute("insertEntry", { + b.commands.execute("insertEntry", { entryId: u.data.entryId, siteId: u.data.siteId }); } - _buildAssetUrl(k, v, T) { - return `${v}#asset:${k}:${T ? "transform:" + T : "url"}`; + _buildAssetUrl(v, b, T) { + return `${b}#asset:${v}:${T ? "transform:" + T : "url"}`; } - _removeTransformFromUrl(k) { - return k.replace(/(^|\/)_[^\/]+(\/\d+)?\/([^\/]+)$/, "$1$3"); + _removeTransformFromUrl(v) { + return v.replace(/(^|\/)_[^\/]+(\/\d+)?\/([^\/]+)$/, "$1$3"); } - _isTransformUrl(k) { - return /(^|\/)_[^\/]+(\/\d+)?(\/[^\/]+)$/.test(k); + _isTransformUrl(v) { + return /(^|\/)_[^\/]+(\/\d+)?(\/[^\/]+)$/.test(v); } - async _getTransformUrl(k, v) { + async _getTransformUrl(v, b) { let T; try { T = await Craft.sendActionRequest( @@ -247,38 +247,38 @@ class td extends cu { "ckeditor/ckeditor/image-url", { data: { - assetId: k, - transform: v + assetId: v, + transform: b } } ); } catch { alert("There was an error generating the transform URL."); } - return this._buildAssetUrl(k, T.data.url, v); + return this._buildAssetUrl(v, T.data.url, b); } - _getAssetUrlComponents(k) { - const v = k.match( + _getAssetUrlComponents(v) { + const b = v.match( /(.*)#asset:(\d+):(url|transform):?([a-zA-Z][a-zA-Z0-9_]*)?/ ); - return v ? { - url: v[1], - assetId: v[2], - transform: v[3] !== "url" ? v[4] : null + return b ? { + url: b[1], + assetId: b[2], + transform: b[3] !== "url" ? b[4] : null } : null; } /** * Attach the uploader with drag event handler */ _attachUploader() { - const k = this.editor, v = k.config.get("defaultUploadFolderId"); - v && (this.$container = $(k.sourceElement).closest(".input"), this.progressBar = new Craft.ProgressBar( + const v = this.editor, b = v.config.get("defaultUploadFolderId"); + b && (this.$container = $(v.sourceElement).closest(".input"), this.progressBar = new Craft.ProgressBar( $('
').appendTo(this.$container) ), this.$fileInput = $("", { type: "file", class: "hidden", multiple: !0 - }).insertAfter(k.sourceElement), this.uploader = Craft.createUploader(null, this.$container, { + }).insertAfter(v.sourceElement), this.uploader = Craft.createUploader(null, this.$container, { dropZone: this.$container, fileInput: this.$fileInput, allowedKinds: ["image"], @@ -290,16 +290,16 @@ class td extends cu { fileuploadfail: this._onUploadFailure.bind(this) } }), this.uploader.setParams({ - folderId: v, - siteId: k.config.get("elementSiteId") - }), k.editing.view.document.on( + folderId: b, + siteId: v.config.get("elementSiteId") + }), v.editing.view.document.on( "drop", async (T, O) => { - k.editing.view, k.model; - const K = k.editing.mapper, i = O.dropRange; + v.editing.view, v.model; + const Q = v.editing.mapper, i = O.dropRange; if (i) { - const u = i.start, f = K.toModelPosition(u); - k.model.change((_) => { + const u = i.start, f = Q.toModelPosition(u); + v.model.change((_) => { _.setSelection(f, 0); }); } @@ -318,39 +318,39 @@ class td extends cu { /** * On upload progress. */ - _onUploadProgress(k, v = null) { - v = k instanceof CustomEvent ? k.detail : v; - var T = parseInt(Math.min(v.loaded / v.total, 1) * 100, 10); + _onUploadProgress(v, b = null) { + b = v instanceof CustomEvent ? v.detail : b; + var T = parseInt(Math.min(b.loaded / b.total, 1) * 100, 10); this.progressBar.setProgressPercentage(T); } /** * On a file being uploaded. */ - async _onUploadComplete(k, v = null) { - const T = k instanceof CustomEvent ? k.detail : v.result; + async _onUploadComplete(v, b = null) { + const T = v instanceof CustomEvent ? v.detail : b.result; if (this.progressBar.hideProgressBar(), this.$container.removeClass("uploading"), this._imageMode === "entries") { await this._createImageEntry(T.assetId); return; } - const O = this.editor.config.get("defaultTransform"), K = this._isTransformUrl(T.url); + const O = this.editor.config.get("defaultTransform"), Q = this._isTransformUrl(T.url); let i; - !K && O ? i = await this._getTransformUrl(T.assetId, O) : i = this._buildAssetUrl( + !Q && O ? i = await this._getTransformUrl(T.assetId, O) : i = this._buildAssetUrl( T.assetId, T.url, - K ? transform : O + Q ? transform : O ), this.editor.execute("insertImage", { source: i, breakBlock: !0 }); } /** * On Upload Failure. */ - _onUploadFailure(k, v = null) { + _onUploadFailure(v, b = null) { var f, _; - const T = k instanceof CustomEvent ? k.detail : (f = v == null ? void 0 : v.jqXHR) == null ? void 0 : f.responseJSON; - let { message: O, filename: K, errors: i } = T || {}; - K = K || ((_ = v == null ? void 0 : v.files) == null ? void 0 : _[0].name); + const T = v instanceof CustomEvent ? v.detail : (f = b == null ? void 0 : b.jqXHR) == null ? void 0 : f.responseJSON; + let { message: O, filename: Q, errors: i } = T || {}; + Q = Q || ((_ = b == null ? void 0 : b.files) == null ? void 0 : _[0].name); let u = i ? Object.values(i).flat() : []; O || (u.length ? O = u.join(` -`) : K ? O = Craft.t("app", "Upload failed for “{filename}”.", { filename: K }) : O = Craft.t("app", "Upload failed.")), Craft.cp.displayError(O), this.progressBar.hideProgressBar(), this.$container.removeClass("uploading"); +`) : Q ? O = Craft.t("app", "Upload failed for “{filename}”.", { filename: Q }) : O = Craft.t("app", "Upload failed.")), Craft.cp.displayError(O), this.progressBar.hideProgressBar(), this.$container.removeClass("uploading"); } } /** @@ -360,25 +360,25 @@ class td extends cu { */ class Tu extends El { refresh() { - const k = this._element(), v = this._srcInfo(k); - this.isEnabled = !!v, v ? this.value = { - transform: v.transform + const v = this._element(), b = this._srcInfo(v); + this.isEnabled = !!b, b ? this.value = { + transform: b.transform } : this.value = null; } _element() { - const k = this.editor; - return k.plugins.get("ImageUtils").getClosestSelectedImageElement( - k.model.document.selection + const v = this.editor; + return v.plugins.get("ImageUtils").getClosestSelectedImageElement( + v.model.document.selection ); } - _srcInfo(k) { - if (!k || !k.hasAttribute("src")) + _srcInfo(v) { + if (!v || !v.hasAttribute("src")) return null; - const v = k.getAttribute("src"), T = v.match( + const b = v.getAttribute("src"), T = b.match( /#asset:(\d+)(?::transform:([a-zA-Z][a-zA-Z0-9_]*))?/ ); return T ? { - src: v, + src: b, assetId: T[1], transform: T[2] } : null; @@ -398,19 +398,19 @@ class Tu extends El { * @param options.transform The new transform for the image. * @fires execute */ - execute(k) { - const T = this.editor.model, O = this._element(), K = this._srcInfo(O); + execute(v) { + const T = this.editor.model, O = this._element(), Q = this._srcInfo(O); if (this.value = { - transform: k.transform - }, K) { - const i = `#asset:${K.assetId}` + (k.transform ? `:transform:${k.transform}` : ""); + transform: v.transform + }, Q) { + const i = `#asset:${Q.assetId}` + (v.transform ? `:transform:${v.transform}` : ""); T.change((u) => { - const f = K.src.replace(/#.*/, "") + i; + const f = Q.src.replace(/#.*/, "") + i; u.setAttribute("src", f, O); }), Craft.sendActionRequest("post", "ckeditor/ckeditor/image-url", { data: { - assetId: K.assetId, - transform: k.transform + assetId: Q.assetId, + transform: v.transform } }).then(({ data: u }) => { T.change((f) => { @@ -433,12 +433,12 @@ class jc extends $n { static get pluginName() { return "ImageTransformEditing"; } - constructor(k) { - super(k), k.config.define("transforms", []); + constructor(v) { + super(v), v.config.define("transforms", []); } init() { - const k = this.editor, v = new Tu(k); - k.commands.add("transformImage", v); + const v = this.editor, b = new Tu(v); + v.commands.add("transformImage", b); } } /** @@ -455,8 +455,8 @@ class Nu extends $n { return "ImageTransformUI"; } init() { - const k = this.editor, v = k.config.get("transforms"), T = k.commands.get("transformImage"); - this.bind("isEnabled").to(T), this._registerImageTransformDropdown(v); + const v = this.editor, b = v.config.get("transforms"), T = v.commands.get("transformImage"); + this.bind("isEnabled").to(T), this._registerImageTransformDropdown(b); } /** * A helper function that creates a dropdown component for the plugin containing all the transform options defined in @@ -464,19 +464,19 @@ class Nu extends $n { * * @param transforms An array of the available image transforms. */ - _registerImageTransformDropdown(k) { - const v = this.editor, T = v.t, O = { + _registerImageTransformDropdown(v) { + const b = this.editor, T = b.t, O = { name: "transformImage:original", value: null - }, K = [ + }, Q = [ O, - ...k.map((u) => ({ + ...v.map((u) => ({ label: u.name, name: `transformImage:${u.handle}`, value: u.handle })) ], i = (u) => { - const f = v.commands.get("transformImage"), _ = ra(u, du), d = _.buttonView; + const f = b.commands.get("transformImage"), _ = ra(u, du), d = _.buttonView; return d.set({ tooltip: T("Resize image"), commandValue: null, @@ -488,23 +488,23 @@ class Nu extends $n { }), d.bind("label").to(f, "value", (C) => { if (!C || !C.transform) return this._getOptionLabelValue(O); - const h = k.find( - (b) => b.handle === C.transform + const h = v.find( + (k) => k.handle === C.transform ); return h ? h.name : C.transform; }), _.bind("isEnabled").to(this), os( _, - () => this._getTransformDropdownListItemDefinitions(K, f), + () => this._getTransformDropdownListItemDefinitions(Q, f), { ariaLabel: T("Image resize list") } ), this.listenTo(_, "execute", (C) => { - v.execute(C.source.commandName, { + b.execute(C.source.commandName, { transform: C.source.commandValue - }), v.editing.view.focus(); + }), b.editing.view.focus(); }), _; }; - v.ui.componentFactory.add("transformImage", i); + b.ui.componentFactory.add("transformImage", i); } /** * A helper function for creating an option label value string. @@ -512,8 +512,8 @@ class Nu extends $n { * @param option A transform option object. * @returns The option label. */ - _getOptionLabelValue(k) { - return k.label || k.value || this.editor.t("Original"); + _getOptionLabelValue(v) { + return v.label || v.value || this.editor.t("Original"); } /** * A helper function that parses the transform options and returns list item definitions ready for use in the dropdown. @@ -522,10 +522,10 @@ class Nu extends $n { * @param command The transform image command. * @returns Dropdown item definitions. */ - _getTransformDropdownListItemDefinitions(k, v) { + _getTransformDropdownListItemDefinitions(v, b) { const T = new na(); - return k.map((O) => { - const K = { + return v.map((O) => { + const Q = { type: "button", model: new yi({ commandName: "transformImage", @@ -535,14 +535,14 @@ class Nu extends $n { icon: null }) }; - K.model.bind("isOn").to(v, "value", Pu(O.value)), T.add(K); + Q.model.bind("isOn").to(b, "value", Pu(O.value)), T.add(Q); }), T; } } function Pu(Se) { - return (k) => { - const v = k; - return Se === null && v === Se ? !0 : v !== null && v.transform === Se; + return (v) => { + const b = v; + return Se === null && b === Se ? !0 : b !== null && b.transform === Se; }; } /** @@ -565,10 +565,10 @@ class nd extends $n { */ class Du extends El { refresh() { - const k = this._element(), v = this._srcInfo(k); - if (this.isEnabled = !!v, this.isEnabled) { + const v = this._element(), b = this._srcInfo(v); + if (this.isEnabled = !!b, this.isEnabled) { let T = { - assetId: v.assetId + assetId: b.assetId }; Craft.sendActionRequest("POST", "ckeditor/ckeditor/image-permissions", { data: T @@ -581,9 +581,9 @@ class Du extends El { * Returns the selected image element. */ _element() { - const k = this.editor; - return k.plugins.get("ImageUtils").getClosestSelectedImageElement( - k.model.document.selection + const v = this.editor; + return v.plugins.get("ImageUtils").getClosestSelectedImageElement( + v.model.document.selection ); } /** @@ -594,14 +594,14 @@ class Du extends El { * @returns {{transform: *, src: *, assetId: *}|null} * @private */ - _srcInfo(k) { - if (!k || !k.hasAttribute("src")) + _srcInfo(v) { + if (!v || !v.hasAttribute("src")) return null; - const v = k.getAttribute("src"), T = v.match( + const b = v.getAttribute("src"), T = b.match( /(.*)#asset:(\d+)(?::transform:([a-zA-Z][a-zA-Z0-9_]*))?/ ); return T ? { - src: v, + src: b, assetId: T[2], transform: T[3] } : null; @@ -613,13 +613,13 @@ class Du extends El { */ execute() { this.editor.model; - const v = this._element(), T = this._srcInfo(v); + const b = this._element(), T = this._srcInfo(b); if (T) { let O = { allowSavingAsNew: !1, // todo: we might want to change that, but currently we're doing the same functionality as in Redactor - onSave: (K) => { - this._reloadImage(T.assetId, K); + onSave: (Q) => { + this._reloadImage(T.assetId, Q); }, allowDegreeFractions: Craft.isImagick }; @@ -631,10 +631,10 @@ class Du extends El { * * @param data */ - _reloadImage(k, v) { + _reloadImage(v, b) { let O = this.editor.model; this._getAllImageAssets().forEach((i) => { - if (i.srcInfo.assetId == k) + if (i.srcInfo.assetId == v) if (i.srcInfo.transform) { let u = { assetId: i.srcInfo.assetId, @@ -663,9 +663,9 @@ class Du extends El { } }); } - _getNewSrc(k, v) { - let T = k.url; - return Craft.revAssetUrls || (T += (T.includes("?") ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime()), T += "#asset:" + v.srcInfo.assetId, v.srcInfo.transform && (T += ":transform:" + v.srcInfo.transform), T; + _getNewSrc(v, b) { + let T = v.url; + return Craft.revAssetUrls || (T += (T.includes("?") ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime()), T += "#asset:" + b.srcInfo.assetId, b.srcInfo.transform && (T += ":transform:" + b.srcInfo.transform), T; } /** * Returns all images present in the editor that are Craft Assets. @@ -674,13 +674,13 @@ class Du extends El { * @private */ _getAllImageAssets() { - const v = this.editor.model, T = v.createRangeIn(v.document.getRoot()); + const b = this.editor.model, T = b.createRangeIn(b.document.getRoot()); let O = []; - for (const K of T.getWalker({ ignoreElementEnd: !0 })) - if (K.item.is("element") && K.item.name === "imageBlock") { - let i = this._srcInfo(K.item); + for (const Q of T.getWalker({ ignoreElementEnd: !0 })) + if (Q.item.is("element") && Q.item.name === "imageBlock") { + let i = this._srcInfo(Q.item); i && O.push({ - element: K.item, + element: Q.item, srcInfo: i }); } @@ -700,8 +700,8 @@ class Lc extends $n { return "ImageEditorEditing"; } init() { - const k = this.editor, v = new Du(k); - k.commands.add("imageEditor", v); + const v = this.editor, b = new Du(v); + v.commands.add("imageEditor", b); } } /** @@ -717,23 +717,23 @@ class Iu extends $n { return "ImageEditorUI"; } init() { - const v = this.editor.commands.get("imageEditor"); - this.bind("isEnabled").to(v), this._registerImageEditorButton(); + const b = this.editor.commands.get("imageEditor"); + this.bind("isEnabled").to(b), this._registerImageEditorButton(); } /** * A helper function that creates a button component for the plugin that triggers launch of the Image Editor. */ _registerImageEditorButton() { - const k = this.editor, v = k.t, T = k.commands.get("imageEditor"), O = () => { - const K = new Jo(); - return K.set({ - label: v("Edit Image"), + const v = this.editor, b = v.t, T = v.commands.get("imageEditor"), O = () => { + const Q = new Jo(); + return Q.set({ + label: b("Edit Image"), withText: !0 - }), K.bind("isEnabled").to(T), this.listenTo(K, "execute", (i) => { - k.execute("imageEditor"), k.editing.view.focus(); - }), K; + }), Q.bind("isEnabled").to(T), this.listenTo(Q, "execute", (i) => { + v.execute("imageEditor"), v.editing.view.focus(); + }), Q; }; - k.ui.componentFactory.add("imageEditor", O); + v.ui.componentFactory.add("imageEditor", O); } } /** @@ -750,22 +750,22 @@ class rd extends $n { } } class Ru extends El { - execute(k) { - const v = this.editor, T = v.model.document.selection; + execute(v) { + const b = this.editor, T = b.model.document.selection; if (!T.isCollapsed && T.getFirstRange()) { - const K = T.getSelectedElement(); - v.execute("insertParagraph", { - position: v.model.createPositionAfter(K) + const Q = T.getSelectedElement(); + b.execute("insertParagraph", { + position: b.model.createPositionAfter(Q) }); } - v.model.change((K) => { - const i = K.createElement("craftEntryModel", { + b.model.change((Q) => { + const i = Q.createElement("craftEntryModel", { ...Object.fromEntries(T.getAttributes()), - cardHtml: k.cardHtml, - entryId: k.entryId, - siteId: k.siteId + cardHtml: v.cardHtml, + entryId: v.entryId, + siteId: v.siteId }); - v.model.insertObject(i, null, null, { + b.model.insertObject(i, null, null, { setSelection: "on" }); }); @@ -792,11 +792,11 @@ class Mu extends $n { */ init() { this._defineSchema(), this._defineConverters(); - const k = this.editor; - k.commands.add("insertEntry", new Ru(k)), k.editing.mapper.on( + const v = this.editor; + v.commands.add("insertEntry", new Ru(v)), v.editing.mapper.on( "viewToModelPosition", - hu(k.model, (v) => { - v.hasClass("cke-entry-card"); + hu(v.model, (b) => { + b.hasClass("cke-entry-card"); }) ); } @@ -816,41 +816,41 @@ class Mu extends $n { * @private */ _defineConverters() { - const k = this.editor.conversion; - k.for("upcast").elementToElement({ + const v = this.editor.conversion; + v.for("upcast").elementToElement({ view: { name: "craft-entry" // has to be lower case }, model: (T, { writer: O }) => { - const K = T.getAttribute("data-card-html"), i = T.getAttribute("data-entry-id"), u = T.getAttribute("data-site-id") ?? null; + const Q = T.getAttribute("data-card-html"), i = T.getAttribute("data-entry-id"), u = T.getAttribute("data-site-id") ?? null; return O.createElement("craftEntryModel", { - cardHtml: K, + cardHtml: Q, entryId: i, siteId: u }); } - }), k.for("editingDowncast").elementToElement({ + }), v.for("editingDowncast").elementToElement({ model: "craftEntryModel", view: (T, { writer: O }) => { - const K = T.getAttribute("entryId") ?? null, i = T.getAttribute("siteId") ?? null, u = O.createContainerElement("div", { + const Q = T.getAttribute("entryId") ?? null, i = T.getAttribute("siteId") ?? null, u = O.createContainerElement("div", { class: "cke-entry-card", - "data-entry-id": K, + "data-entry-id": Q, "data-site-id": i }); - return v(T, O, u), mu(u, O); + return b(T, O, u), mu(u, O); } - }), k.for("dataDowncast").elementToElement({ + }), v.for("dataDowncast").elementToElement({ model: "craftEntryModel", view: (T, { writer: O }) => { - const K = T.getAttribute("entryId") ?? null, i = T.getAttribute("siteId") ?? null; + const Q = T.getAttribute("entryId") ?? null, i = T.getAttribute("siteId") ?? null; return O.createContainerElement("craft-entry", { - "data-entry-id": K, + "data-entry-id": Q, "data-site-id": i }); } }); - const v = (T, O, K) => { + const b = (T, O, Q) => { this._getCardHtml(T).then((i) => { const u = O.createRawElement( "div", @@ -859,7 +859,7 @@ class Mu extends $n { _.innerHTML = i.cardHtml, Craft.appendHeadHtml(i.headHtml), Craft.appendBodyHtml(i.bodyHtml); } ); - O.insert(O.createPositionAt(K, 0), u); + O.insert(O.createPositionAt(Q, 0), u); const f = this.editor; f.editing.view.focus(), setTimeout(() => { Craft.cp.elementThumbLoader.load($(f.ui.element)); @@ -876,48 +876,48 @@ class Mu extends $n { * @returns {Promise|Promise} * @private */ - async _getCardHtml(k) { + async _getCardHtml(v) { var u, f, _; - let v = k.getAttribute("cardHtml") ?? null; - if (v) - return { cardHtml: v }; + let b = v.getAttribute("cardHtml") ?? null; + if (b) + return { cardHtml: b }; let T = $(this.editor.sourceElement).parents(".field"); - const O = $(T[0]).data("layout-element"), K = k.getAttribute("entryId") ?? null, i = k.getAttribute("siteId") ?? null; + const O = $(T[0]).data("layout-element"), Q = v.getAttribute("entryId") ?? null, i = v.getAttribute("siteId") ?? null; try { const d = this.editor, h = $(d.ui.view.element).closest( "form,.lp-editor-container" ).data("elementEditor"); h && await h.checkForm(); - const { data: b } = await Craft.sendActionRequest( + const { data: k } = await Craft.sendActionRequest( "POST", "ckeditor/ckeditor/entry-card-html", { data: { - entryId: K, + entryId: Q, siteId: i, layoutElementUid: O } } ); - return b; + return k; } catch (d) { return console.error((u = d == null ? void 0 : d.response) == null ? void 0 : u.data), { cardHtml: '
' + (((_ = (f = d == null ? void 0 : d.response) == null ? void 0 : f.data) == null ? void 0 : _.message) || "An unknown error occurred.") + "
" }; } } } class zu extends gu { - constructor(k) { - super(k), this.domEventType = "dblclick"; + constructor(v) { + super(v), this.domEventType = "dblclick"; } - onDomEvent(k) { - this.fire(k.type, k); + onDomEvent(v) { + this.fire(v.type, v); } } class Au extends Tr { - constructor(k, v = {}) { - super(k), this.set("isFocused", !1), this.entriesUi = v.entriesUi, this.editor = this.entriesUi.editor, this.entryType = v.entryType; + constructor(v, b = {}) { + super(v), this.set("isFocused", !1), this.entriesUi = b.entriesUi, this.editor = this.entriesUi.editor, this.entryType = b.entryType; const T = this.editor.commands.get("insertEntry"); - let O = new Jo(), K = { + let O = new Jo(), Q = { commandValue: this.entryType.model.commandValue, //entry type id label: this.entryType.model.label, @@ -926,7 +926,7 @@ class Au extends Tr { type: this.entryType.model.label }) }, i = ["btn", "ck-reset_all-excluded"]; - this.entryType.model.icon && i.push(["icon", "cp-icon"]), K.class = i.join(" "), this.entryType.model.withIcon && (K.icon = this.entryType.model.icon), O.set(K), this.listenTo(O, "execute", (u) => { + this.entryType.model.icon && i.push(["icon", "cp-icon"]), Q.class = i.join(" "), this.entryType.model.withIcon && (Q.icon = this.entryType.model.icon), O.set(Q), this.listenTo(O, "execute", (u) => { this.entriesUi._showCreateEntrySlideout(u.source.commandValue); }), O.bind("isEnabled").to(T), this.setTemplate({ tag: "div", @@ -943,20 +943,20 @@ class Au extends Tr { } } class ju extends Tr { - constructor(k, v = {}) { - super(k), this.bindTemplate, this.set("isFocused", !1), this.entriesUi = v.entriesUi, this.editor = this.entriesUi.editor; - const T = v.entryTypes, O = this.editor.commands.get("insertEntry"); - let K = new na(); + constructor(v, b = {}) { + super(v), this.bindTemplate, this.set("isFocused", !1), this.entriesUi = b.entriesUi, this.editor = this.entriesUi.editor; + const T = b.entryTypes, O = this.editor.commands.get("insertEntry"); + let Q = new na(); T.forEach((u) => { - u.model.color && (u.model.class || (u.model.class = ""), u.model.class += "icon " + u.model.color), K.add(u); + u.model.color && (u.model.class || (u.model.class = ""), u.model.class += "icon " + u.model.color), Q.add(u); }); - const i = ra(k); + const i = ra(v); i.buttonView.set({ label: Craft.t("ckeditor", "Add nested content"), icon: zc, tooltip: !0, withText: !1 - }), i.bind("isEnabled").to(O), i.id = Craft.uuid(), os(i, () => K, { + }), i.bind("isEnabled").to(O), i.id = Craft.uuid(), os(i, () => Q, { ariaLabel: Craft.t("ckeditor", "Entry types list") }), this.listenTo(i, "execute", (u) => { this.entriesUi._showCreateEntrySlideout(u.source.commandValue); @@ -975,16 +975,16 @@ class ju extends Tr { } } class Lu extends Tr { - constructor(k, v = {}) { - super(k), this.bindTemplate, this.set("isFocused", !1), this.entriesUi = v.entriesUi, this.editor = this.entriesUi.editor; - const T = this.editor.commands.get("insertEntry"), O = ra(k); + constructor(v, b = {}) { + super(v), this.bindTemplate, this.set("isFocused", !1), this.entriesUi = b.entriesUi, this.editor = this.entriesUi.editor; + const T = this.editor.commands.get("insertEntry"), O = ra(v); O.buttonView.set({ label: Craft.t("ckeditor", "Add nested content"), icon: zc, tooltip: !0, withText: !1 - }), O.bind("isEnabled").to(T), O.id = Craft.uuid(), this.listenTo(O, "execute", (K) => { - this.entriesUi._showCreateEntrySlideout(K.source.commandValue); + }), O.bind("isEnabled").to(T), O.id = Craft.uuid(), this.listenTo(O, "execute", (Q) => { + this.entriesUi._showCreateEntrySlideout(Q.source.commandValue); }), this.setTemplate({ tag: "div", attributes: { @@ -1000,7 +1000,7 @@ class Lu extends Tr { this.element.focus(); } } -class Fu extends $n { +class Uu extends $n { /** * @inheritDoc */ @@ -1017,7 +1017,7 @@ class Fu extends $n { * @inheritDoc */ init() { - this._createToolbarEntriesButtons(), this.editor.ui.componentFactory.add("editEntryBtn", (k) => this._createEditEntryBtn(k)), this._listenToEvents(); + this._createToolbarEntriesButtons(), this.editor.ui.componentFactory.add("editEntryBtn", (v) => this._createEditEntryBtn(v)), this._listenToEvents(); } /** * @inheritDoc @@ -1030,8 +1030,8 @@ class Fu extends $n { // Toolbar Buttons items: ["editEntryBtn"], // If a related element is returned the toolbar is attached - getRelatedElement: (v) => { - const T = v.getSelectedElement(); + getRelatedElement: (b) => { + const T = b.getSelectedElement(); return T && yu(T) && T.hasClass("cke-entry-card") ? T : null; } }); @@ -1042,22 +1042,22 @@ class Fu extends $n { * @private */ _listenToEvents() { - const k = this.editor.editing.view, v = k.document; - k.addObserver(zu), this.editor.listenTo(v, "dblclick", (T, O) => { + const v = this.editor.editing.view, b = v.document; + v.addObserver(zu), this.editor.listenTo(b, "dblclick", (T, O) => { if (!this.editor.isReadOnly) { - const K = this.editor.editing.mapper.toModelElement( + const Q = this.editor.editing.mapper.toModelElement( O.target.parent ); - K.name === "craftEntryModel" && this._initEditEntrySlideout(O, K); + Q.name === "craftEntryModel" && this._initEditEntrySlideout(O, Q); } }); } - _initEditEntrySlideout(k = null, v = null) { + _initEditEntrySlideout(v = null, b = null) { if (this.editor.isReadOnly) return; - v === null && (v = this.editor.model.document.selection.getSelectedElement()); - const T = v.getAttribute("entryId"), O = v.getAttribute("siteId") ?? null; - this._showEditEntrySlideout(T, O, v); + b === null && (b = this.editor.model.document.selection.getSelectedElement()); + const T = b.getAttribute("entryId"), O = b.getAttribute("siteId") ?? null; + this._showEditEntrySlideout(T, O, b); } /** * Creates toolbar buttons that allow for an entry of given type to be inserted into the editor @@ -1065,9 +1065,9 @@ class Fu extends $n { * @private */ _createToolbarEntriesButtons() { - const v = this.editor.config.get("entryTypeOptions"); - if (!(!v || !v.length)) - if (v.length == 1 && v[0].value == "fake") + const b = this.editor.config.get("entryTypeOptions"); + if (!(!b || !b.length)) + if (b.length == 1 && b[0].value == "fake") this.editor.ui.componentFactory.add( "createEntry", (T) => new Lu(this.editor.locale, { @@ -1076,8 +1076,8 @@ class Fu extends $n { ); else { let T = this._getEntryTypeButtonsCollection( - v ?? [] - ), O = T.filter((i) => i.model.expanded), K = T.filter((i) => !i.model.expanded); + b ?? [] + ), O = T.filter((i) => i.model.expanded), Q = T.filter((i) => !i.model.expanded); O.forEach((i, u) => { this.editor.ui.componentFactory.add( `createEntry-${i.model.uid}`, @@ -1086,11 +1086,11 @@ class Fu extends $n { entryType: i }) ); - }), K.length && this.editor.ui.componentFactory.add( + }), Q.length && this.editor.ui.componentFactory.add( "createEntry", (i) => new ju(this.editor.locale, { entriesUi: this, - entryTypes: K + entryTypes: Q }) ); } @@ -1102,9 +1102,9 @@ class Fu extends $n { * @returns {Collection>} * @private */ - _getEntryTypeButtonsCollection(k) { - const v = new na(); - return k.map((T) => { + _getEntryTypeButtonsCollection(v) { + const b = new na(); + return v.map((T) => { const O = { type: "button", model: new yi({ @@ -1120,8 +1120,8 @@ class Fu extends $n { // items in a dropdown should always have text }) }; - v.add(O); - }), v; + b.add(O); + }), b; } /** * Creates an edit entry button that shows in the contextual balloon for each craft entry widget @@ -1129,20 +1129,20 @@ class Fu extends $n { * @returns {ButtonView} * @private */ - _createEditEntryBtn(k) { + _createEditEntryBtn(v) { if (this.editor.isReadOnly) return; - const v = new Jo(k); - return v.set({ + const b = new Jo(v); + return b.set({ isEnabled: !0, label: Craft.t("app", "Edit {type}", { type: Craft.elementTypeNames["craft\\elements\\Entry"][2] }), tooltip: !0, withText: !0 - }), this.listenTo(v, "execute", (T) => { + }), this.listenTo(b, "execute", (T) => { this._initEditEntrySlideout(); - }), v; + }), b; } /** * Returns Craft.ElementEditor instance that the CKEditor field belongs to. @@ -1161,8 +1161,8 @@ class Fu extends $n { * @returns {*} * @private */ - _getCardElement(k) { - return $(this.editor.ui.element).find('.element.card[data-id="' + k + '"]'); + _getCardElement(v) { + return $(this.editor.ui.element).find('.element.card[data-id="' + v + '"]'); } /** * Opens an element editor for existing entry @@ -1170,16 +1170,16 @@ class Fu extends $n { * @param entryId * @private */ - _showEditEntrySlideout(k, v, T) { - const O = this.editor, K = O.model, i = this.getElementEditor(); - let u = this._getCardElement(k); + _showEditEntrySlideout(v, b, T) { + const O = this.editor, Q = O.model, i = this.getElementEditor(); + let u = this._getCardElement(v); const f = u.data("owner-id"); let _ = { - siteId: v + siteId: b }, d = u.parents(".field"); d.length && $(d[0]).hasClass("has-errors") && (_.prevalidate = !0); const C = Craft.createElementEditor(this.elementType, null, { - elementId: k, + elementId: v, params: _, onLoad: () => { C.elementEditor.on("update", () => { @@ -1194,14 +1194,14 @@ class Fu extends $n { } }, onSubmit: (h) => { - let b = this._getCardElement(k); - b !== null && h.data.id != b.data("id") && (b.attr("data-id", h.data.id).data("id", h.data.id).data("owner-id", h.data.ownerId), O.editing.model.change((w) => { + let k = this._getCardElement(v); + k !== null && h.data.id != k.data("id") && (k.attr("data-id", h.data.id).data("id", h.data.id).data("owner-id", h.data.ownerId), O.editing.model.change((w) => { w.setAttribute("entryId", h.data.id, T), O.ui.update(); }), Craft.refreshElementInstances(h.data.id)); } }); C.on("beforeClose", () => { - K.change((h) => { + Q.change((h) => { h.setSelection(h.createPositionAfter(T)), O.editing.view.focus(); }); }), C.on("close", () => { @@ -1214,14 +1214,14 @@ class Fu extends $n { * @param entryTypeId * @private */ - async _showCreateEntrySlideout(k) { + async _showCreateEntrySlideout(v) { var C, h; - const v = this.editor, T = v.model, K = T.document.selection.getFirstRange(), i = v.config.get( + const b = this.editor, T = b.model, Q = T.document.selection.getFirstRange(), i = b.config.get( "nestedElementAttributes" ), u = Object.assign({}, i, { - typeId: k + typeId: v }), f = this.getElementEditor(); - f && (await f.markDeltaNameAsModified(v.sourceElement.name), u.ownerId = f.getDraftElementId( + f && (await f.markDeltaNameAsModified(b.sourceElement.name), u.ownerId = f.getDraftElementId( i.ownerId )); let _; @@ -1233,8 +1233,8 @@ class Fu extends $n { data: u } )).data; - } catch (b) { - throw Craft.cp.displayError((h = (C = b == null ? void 0 : b.response) == null ? void 0 : C.data) == null ? void 0 : h.error), b; + } catch (k) { + throw Craft.cp.displayError((h = (C = k == null ? void 0 : k.response) == null ? void 0 : C.data) == null ? void 0 : h.error), k; } const d = Craft.createElementEditor(this.elementType, { elementId: _.element.id, @@ -1243,28 +1243,28 @@ class Fu extends $n { fresh: 1, siteId: _.element.siteId }, - onSubmit: (b) => { - v.commands.execute("insertEntry", { - entryId: b.data.id, - siteId: b.data.siteId + onSubmit: (k) => { + b.commands.execute("insertEntry", { + entryId: k.data.id, + siteId: k.data.siteId }); } }); d.on("beforeClose", () => { - d.$triggerElement = null, T.change((b) => { - b.setSelection( - b.createPositionAt( - v.model.document.getRoot(), - K.end.path[0] + d.$triggerElement = null, T.change((k) => { + k.setSelection( + k.createPositionAt( + b.model.document.getRoot(), + Q.end.path[0] ) ); - }), v.editing.view.focus(); + }), b.editing.view.focus(); }); } } class Vu extends $n { static get requires() { - return [Mu, Fu]; + return [Mu, Uu]; } static get pluginName() { return "CraftEntries"; @@ -1275,7 +1275,7 @@ class Vu extends $n { * @copyright Copyright (c) Pixel & Tonic, Inc. * @license GPL-3.0-or-later */ -class Uu extends $n { +class Fu extends $n { static get pluginName() { return "CraftLinkEditing"; } @@ -1283,54 +1283,54 @@ class Uu extends $n { super(...arguments), this.conversionData = [], this.editor.config.define("advancedLinkFields", []); } init() { - const v = this.editor.config.get("advancedLinkFields"); - this.conversionData = v.map((T) => T.conversion ?? null).filter((T) => T), this._defineSchema(), this._defineConverters(), this._adjustLinkCommand(), this._adjustUnlinkCommand(); + const b = this.editor.config.get("advancedLinkFields"); + this.conversionData = b.map((T) => T.conversion ?? null).filter((T) => T), this._defineSchema(), this._defineConverters(), this._adjustLinkCommand(), this._adjustUnlinkCommand(); } _defineSchema() { - const k = this.editor.model.schema; - let v = this.conversionData.map((T) => T.model); - k.extend("$text", { - allowAttributes: v + const v = this.editor.model.schema; + let b = this.conversionData.map((T) => T.model); + v.extend("$text", { + allowAttributes: b }); } _defineConverters() { - const k = this.editor.conversion; - for (let v = 0; v < this.conversionData.length; v++) - k.for("downcast").attributeToElement({ - model: this.conversionData[v].model, + const v = this.editor.conversion; + for (let b = 0; b < this.conversionData.length; b++) + v.for("downcast").attributeToElement({ + model: this.conversionData[b].model, view: (T, { writer: O }) => { - const K = O.createAttributeElement( + const Q = O.createAttributeElement( "a", - { [this.conversionData[v].view]: T }, + { [this.conversionData[b].view]: T }, { priority: 5 } ); - return O.setCustomProperty("link", !0, K), K; + return O.setCustomProperty("link", !0, Q), Q; } - }), k.for("upcast").attributeToAttribute({ + }), v.for("upcast").attributeToAttribute({ view: { name: "a", - key: this.conversionData[v].view + key: this.conversionData[b].view }, model: { - key: this.conversionData[v].model, - value: (T, O) => T.getAttribute(this.conversionData[v].view) + key: this.conversionData[b].model, + value: (T, O) => T.getAttribute(this.conversionData[b].view) } }); } _adjustLinkCommand() { - const k = this.editor, v = k.commands.get("link"); + const v = this.editor, b = v.commands.get("link"); let T = !1; - v.on( + b.on( "execute", - (O, K) => { + (O, Q) => { if (T) { T = !1; return; } O.stop(), T = !0; - const i = K[3] || {}, u = k.model.document.selection; - k.model.change((f) => { - k.execute("link", ...K); + const i = Q[3] || {}, u = v.model.document.selection; + v.model.change((f) => { + v.execute("link", ...Q); const _ = u.getFirstPosition(); this.conversionData.forEach((d) => { if (u.isCollapsed) { @@ -1343,7 +1343,7 @@ class Uu extends $n { f.createRangeOn(C) ) : f.removeAttribute(d.model, f.createRangeOn(C)); } else { - const C = k.model.schema.getValidRanges( + const C = v.model.schema.getValidRanges( u.getRanges(), d.model ); @@ -1363,13 +1363,13 @@ class Uu extends $n { ); } _adjustUnlinkCommand() { - const k = this.editor, v = k.commands.get("unlink"), { model: T } = k, { selection: O } = T.document; - let K = !1; - v.on( + const v = this.editor, b = v.commands.get("unlink"), { model: T } = v, { selection: O } = T.document; + let Q = !1; + b.on( "execute", (i) => { - K || (i.stop(), T.change(() => { - K = !0, k.execute("unlink"), K = !1, T.change((u) => { + Q || (i.stop(), T.change(() => { + Q = !0, v.execute("unlink"), Q = !1, T.change((u) => { let f; this.conversionData.forEach((_) => { O.isCollapsed ? f = [ @@ -1394,8 +1394,8 @@ class Uu extends $n { } } class $u extends Tr { - constructor(k, v = {}) { - super(k), this.bindTemplate, this.set("isFocused", !1), this.linkUi = v.linkUi, this.editor = this.linkUi.editor, this.elementId = this.linkUi._getLinkElementId(), this.siteId = this.linkUi._getLinkSiteId(), this.linkOption = v.linkOption; + constructor(v, b = {}) { + super(v), this.bindTemplate, this.set("isFocused", !1), this.linkUi = b.linkUi, this.editor = this.linkUi.editor, this.elementId = this.linkUi._getLinkElementId(), this.siteId = this.linkUi._getLinkSiteId(), this.linkOption = b.linkOption; const T = this.linkUi._getLinkElementRefHandle(); if (this.button = null, T) { const O = this.linkUi.linkTypeDropdownItemModels[T]; @@ -1421,9 +1421,9 @@ class $u extends Tr { } render() { super.render(); - const k = this.linkUi, v = k._linkUI, T = this.linkOption; + const v = this.linkUi, b = v._linkUI, T = this.linkOption; this.element.addEventListener("click", function(O) { - (this.children[0].classList.contains("add") || O.target.classList.contains("ck-button__label")) && (v._hideUI(!1), k._showElementSelectorModal(T)); + (this.children[0].classList.contains("add") || O.target.classList.contains("ck-button__label")) && (b._hideUI(!1), v._showElementSelectorModal(T)); }), this.element.children.length == 0 && Craft.sendActionRequest( "POST", "ckeditor/ckeditor/render-element-with-supported-sites", @@ -1447,7 +1447,7 @@ class $u extends Tr { } } ).then((O) => { - var K, i, u, f; + var Q, i, u, f; if (Object.keys(O.data.elements).length > 0) { if (Craft.isMultiSite && this.linkUi.sitesView != null) for (const [C, h] of Object.entries( @@ -1472,10 +1472,10 @@ class $u extends Tr { } } ]; - Craft.addActionsToChip(_, d), (i = (K = this.linkUi.sitesView) == null ? void 0 : K.siteDropdownView) != null && i.buttonView && ((u = this.linkUi.sitesView) == null || u.siteDropdownView.buttonView.set( + Craft.addActionsToChip(_, d), (i = (Q = this.linkUi.sitesView) == null ? void 0 : Q.siteDropdownView) != null && i.buttonView && ((u = this.linkUi.sitesView) == null || u.siteDropdownView.buttonView.set( "isVisible", !0 - )), k._alignFocus(); + )), v._alignFocus(); } else if (((f = this.linkUi.previousLinkValue) == null ? void 0 : f.length) > 0) { const { formView: _ } = this.linkUi._linkUI; _.urlInputView.fieldView.set( @@ -1489,14 +1489,14 @@ class $u extends Tr { class: "btn add icon dashed" }), this.button.render(), this.element.innerHTML = this.button.element.outerHTML; }).catch((O) => { - var K, i, u, f; - throw Craft.cp.displayError((i = (K = O == null ? void 0 : O.response) == null ? void 0 : K.data) == null ? void 0 : i.message), ((f = (u = O == null ? void 0 : O.response) == null ? void 0 : u.data) == null ? void 0 : f.message) ?? O; + var Q, i, u, f; + throw Craft.cp.displayError((i = (Q = O == null ? void 0 : O.response) == null ? void 0 : Q.data) == null ? void 0 : i.message), ((f = (u = O == null ? void 0 : O.response) == null ? void 0 : u.data) == null ? void 0 : f.message) ?? O; }); } } class Bu extends Tr { - constructor(k, v = {}) { - super(k), this.bindTemplate, this.set("isFocused", !1), this.linkUi = v.linkUi, this.editor = this.linkUi.editor, this.elementId = this.linkUi._getLinkElementId(), this.siteId = this.linkUi._getLinkSiteId(), this.linkOption = v.linkOption, this.linkUi._getLinkElementRefHandle(), this.siteDropdownView = ra(this.linkUi._linkUI.formView.locale), this.siteDropdownItemModels = null, this.localizedRefHandleRE = null; + constructor(v, b = {}) { + super(v), this.bindTemplate, this.set("isFocused", !1), this.linkUi = b.linkUi, this.editor = this.linkUi.editor, this.elementId = this.linkUi._getLinkElementId(), this.siteId = this.linkUi._getLinkSiteId(), this.linkOption = b.linkOption, this.linkUi._getLinkElementRefHandle(), this.siteDropdownView = ra(this.linkUi._linkUI.formView.locale), this.siteDropdownItemModels = null, this.localizedRefHandleRE = null; const T = CKE_LOCALIZED_REF_HANDLES.join("|"); this.localizedRefHandleRE = new RegExp( `(#(?:${T}):\\d+)(?:@(\\d+))?` @@ -1518,7 +1518,7 @@ class Bu extends Tr { super.render(), this._sitesDropdown(); } _sitesDropdown() { - const { formView: k } = this.linkUi._linkUI, { urlInputView: v } = k, { fieldView: T } = v; + const { formView: v } = this.linkUi._linkUI, { urlInputView: b } = v, { fieldView: T } = b; this.siteDropdownView.buttonView.set({ label: "", withText: !0, @@ -1549,18 +1549,18 @@ class Bu extends Tr { } ]) ), this.siteDropdownView.on("execute", (O) => { - const K = this.linkUi._urlInputRefMatch(this.localizedRefHandleRE); - if (!K) { + const Q = this.linkUi._urlInputRefMatch(this.localizedRefHandleRE); + if (!Q) { console.warn( `No reference tag hash present in URL: ${this.linkUi._urlInputValue()}` ); return; } const { siteId: i } = O.source; - let u = K[1]; + let u = Q[1]; i && (u += `@${i}`), this.linkUi.previousLinkValue = this.linkUi._urlInputValue(); - const f = this.linkUi._urlInputValue().replace(K[0], u); - k.urlInputView.fieldView.set("value", f), this._toggleSiteDropdownView(); + const f = this.linkUi._urlInputValue().replace(Q[0], u); + v.urlInputView.fieldView.set("value", f), this._toggleSiteDropdownView(); }), this.listenTo(T, "change:value", () => { this._toggleSiteDropdownView(); }), this.listenTo(T, "input", () => { @@ -1568,38 +1568,38 @@ class Bu extends Tr { }); } _toggleSiteDropdownView() { - const k = this.linkUi._urlInputRefMatch(this.localizedRefHandleRE); - if (k) { + const v = this.linkUi._urlInputRefMatch(this.localizedRefHandleRE); + if (v) { this.siteDropdownView.buttonView.set("isVisible", !0); - let v = k[2] ? parseInt(k[2], 10) : null; - v && typeof this.siteDropdownItemModels[v] > "u" && (v = null), this._selectSiteDropdownItem(v), this.siteDropdownView.buttonView.set("isVisible", !0); + let b = v[2] ? parseInt(v[2], 10) : null; + b && typeof this.siteDropdownItemModels[b] > "u" && (b = null), this._selectSiteDropdownItem(b), this.siteDropdownView.buttonView.set("isVisible", !0); } else this.siteDropdownView.buttonView.set("isVisible", !1); } - _selectSiteDropdownItem(k) { - const v = this.siteDropdownItemModels[k ?? "current"], T = k ? Craft.t("ckeditor", "Site: {name}", { name: v.label }) : v.label; + _selectSiteDropdownItem(v) { + const b = this.siteDropdownItemModels[v ?? "current"], T = v ? Craft.t("ckeditor", "Site: {name}", { name: b.label }) : b.label; this.siteDropdownView.buttonView.set("label", T), Object.values(this.siteDropdownItemModels).forEach((O) => { - O.set("isOn", O.siteId === v.siteId); + O.set("isOn", O.siteId === b.siteId); }); } } class Hu extends Tr { - constructor(k, v = {}) { - super(k); + constructor(v, b = {}) { + super(v); const T = this.bindTemplate; - this.set("label", Craft.t("app", "Advanced")), this.linkUi = v.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 = b.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"] }, children: this.children - }), this.summary = new Tr(k), this.summary.setTemplate({ + }), this.summary = new Tr(v), this.summary.setTemplate({ tag: "summary", attributes: { class: ["ck", "ck-form__details__summary"] }, children: [{ text: T.to("label") }] - }), this.children.add(this.summary), this.advancedFieldsContainer = new Tr(k), this.advancedFieldsContainer.setTemplate({ + }), this.children.add(this.summary), this.advancedFieldsContainer = new Tr(v), this.advancedFieldsContainer.setTemplate({ tag: "div", attributes: { class: ["meta", "pane", "hairline"] @@ -1615,16 +1615,16 @@ class Hu extends Tr { super.render(), this.element.addEventListener("toggle", this.onToggle.bind(this)); } // this is needed to control the focus order - onToggle(k) { - const { formView: v } = this.linkUi._linkUI; - if (k.target.open) { - const T = v._focusables.getIndex(this); - this.advancedChildren._items.forEach((O, K) => { - v._focusables.add(O, T + K + 1), v.focusTracker.add(O.element, T + K + 1); + onToggle(v) { + const { formView: b } = this.linkUi._linkUI; + if (v.target.open) { + const T = b._focusables.getIndex(this); + this.advancedChildren._items.forEach((O, Q) => { + b._focusables.add(O, T + Q + 1), b.focusTracker.add(O.element, T + Q + 1); }); } else this.advancedChildren._items.forEach((T, O) => { - v._focusables.remove(T), v.focusTracker.remove(T.element); + b._focusables.remove(T), b.focusTracker.remove(T.element); }); } } @@ -1641,21 +1641,21 @@ class Wu extends $n { return "CraftLinkUI"; } constructor() { - super(...arguments), this.linkTypeWrapperView = null, this.advancedView = null, this.elementInputView = null, this.sitesView = null, this.previousLinkValue = null, this.linkTypeDropdownView = null, this.linkTypeDropdownItemModels = [], this.elementTypeRefHandleRE = null, this.urlWithRefHandleRE = null, this.conversionData = [], this.linkOptions = [], this.advancedLinkFields = [], this.editor.config.define("linkOptions", []), this.editor.config.define("advancedLinkFields", []); + super(...arguments), this.linkTypeWrapperView = null, this.advancedView = null, this.elementInputView = null, this.sitesView = null, this.urlSuffixInputView = null, this.previousLinkValue = null, this.linkTypeDropdownView = null, this.linkTypeDropdownItemModels = [], this.elementTypeRefHandleRE = null, this.urlWithRefHandleRE = null, this.conversionData = [], this.linkOptions = [], this.advancedLinkFields = [], this.editor.config.define("linkOptions", []), this.editor.config.define("advancedLinkFields", []); } init() { - const k = this.editor; - this._linkUI = k.plugins.get(Dc), this._balloon = k.plugins.get(vu), this.linkOptions = k.config.get("linkOptions"), this.advancedLinkFields = k.config.get("advancedLinkFields"), this.conversionData = this.advancedLinkFields.map((T) => T.conversion ?? null).filter((T) => T); - const v = CKE_LOCALIZED_REF_HANDLES.join("|"); + const v = this.editor; + this._linkUI = v.plugins.get(Dc), this._balloon = v.plugins.get(vu), this.linkOptions = v.config.get("linkOptions"), this.advancedLinkFields = v.config.get("advancedLinkFields"), this.conversionData = this.advancedLinkFields.map((T) => T.conversion ?? null).filter((T) => T); + const b = CKE_LOCALIZED_REF_HANDLES.join("|"); this.elementTypeRefHandleRE = new RegExp( - `(#((?:${v})):\\d+)` + `(#((?:${b})):\\d+)` ), this.urlWithRefHandleRE = new RegExp( - `(.+)(#((?:${v})):(\\d+))(?:@(\\d+))?` + `(.+)(#((?:${b})):(\\d+))(?:@(\\d+))?` ), this._modifyFormViewTemplate(), this._balloon.on( "set:visibleView", - (T, O, K, i) => { + (T, O, Q, i) => { const { formView: u } = this._linkUI; - K === i || K !== u || this._alignFocus(); + Q === i || Q !== u || this._alignFocus(); } ); } @@ -1663,19 +1663,19 @@ class Wu extends $n { * Reset focus order of the extra fields we're adding to the link form view */ _alignFocus() { - const { formView: k } = this._linkUI; - let v = 0; + const { formView: v } = this._linkUI; + let b = 0; this.linkTypeWrapperView && (this.linkTypeWrapperView._unboundChildren._items.forEach((T) => { - k._focusables.has(T) && k._focusables.remove(T), k.focusTracker.remove(T.element), k._focusables.add(T, v), k.focusTracker.add(T.element, v), v++; - }), this.advancedView !== null && (k._focusables.has(this.advancedView) && k._focusables.remove(this.advancedView), k.focusTracker.remove(this.advancedView), k._focusables.add(this.advancedView, v), k.focusTracker.add(this.advancedView.element, v))); + v._focusables.has(T) && v._focusables.remove(T), v.focusTracker.remove(T.element), v._focusables.add(T, b), v.focusTracker.add(T.element, b), b++; + }), this.advancedView !== null && (v._focusables.has(this.advancedView) && v._focusables.remove(this.advancedView), v.focusTracker.remove(this.advancedView), v._focusables.add(this.advancedView, b), v.focusTracker.add(this.advancedView.element, b))); } /** * Add all our custom fields (for element linking and advanced fields) to the link form view. */ _modifyFormViewTemplate() { this._linkUI.formView || this._linkUI._createViews(); - const { formView: k } = this._linkUI; - k.template.attributes.class.push( + const { formView: v } = this._linkUI; + v.template.attributes.class.push( "ck-link-form_layout-vertical", "ck-vertical-form" ), this.linkOptions && this.linkOptions.length && this._linkOptionsDropdown(), this.advancedLinkFields && this.advancedLinkFields.length && this._advancedLinkFields(); @@ -1689,16 +1689,16 @@ class Wu extends $n { /** * Returns whether the "default" URL input field value matched given regular expression. */ - _urlInputRefMatch(k) { - return this._urlInputValue().match(k); + _urlInputRefMatch(v) { + return this._urlInputValue().match(v); } ////////////////////// Link Options Dropdown (link types) ////////////////////// /** * Create a link type dropdown. */ _linkOptionsDropdown() { - const { formView: k } = this._linkUI, { urlInputView: v } = k, { fieldView: T } = v; - this.linkTypeDropdownView = ra(k.locale), this.linkTypeDropdownView.buttonView.set({ + const { formView: v } = this._linkUI, { urlInputView: b } = v, { fieldView: T } = b; + this.linkTypeDropdownView = ra(v.locale), this.linkTypeDropdownView.buttonView.set({ label: "", withText: !0, isVisible: !0 @@ -1714,8 +1714,8 @@ class Wu extends $n { ]) ), T.isEmpty && this._showLinkTypeForm("default"), this.linkTypeDropdownView.on("execute", (O) => { if (O.source.linkOption) { - const K = O.source.linkOption; - this._selectLinkTypeDropdownItem(K.refHandle), this._showLinkTypeForm(K, k); + const Q = O.source.linkOption; + this._selectLinkTypeDropdownItem(Q.refHandle), this._showLinkTypeForm(Q, v); } else this._selectLinkTypeDropdownItem("default"), this._showLinkTypeForm("default"); }), this.listenTo(T, "change:value", () => { @@ -1732,82 +1732,82 @@ class Wu extends $n { * Get the refHandle from the URL field value. */ _getLinkElementRefHandle() { - let k = null; - const v = this._urlInputValue().match(this.elementTypeRefHandleRE); - return v && (k = v[2], k && typeof this.linkTypeDropdownItemModels[k] > "u" && (k = null)), k; + let v = null; + const b = this._urlInputValue().match(this.elementTypeRefHandleRE); + return b && (v = b[2], v && typeof this.linkTypeDropdownItemModels[v] > "u" && (v = null)), v; } /** * Get element ID from the URL field value. */ _getLinkElementId() { - let k = null; - const v = this._urlInputRefMatch(this.urlWithRefHandleRE); - return v && (k = v[4] ? parseInt(v[4], 10) : null), k; + let v = null; + const b = this._urlInputRefMatch(this.urlWithRefHandleRE); + return b && (v = b[4] ? parseInt(b[4], 10) : null), v; } /** * Get site ID from the URL field value. */ _getLinkSiteId() { - let k = null; - const v = this._urlInputRefMatch(this.urlWithRefHandleRE); - return v && (k = v[5] ? parseInt(v[5], 10) : null), k; + let v = null; + const b = this._urlInputRefMatch(this.urlWithRefHandleRE); + return b && (v = b[5] ? parseInt(b[5], 10) : null), v; } /** * Toggle between element link and default URL link fields. */ _toggleLinkTypeDropdownView() { - let k = this._getLinkElementRefHandle(); - k ? (this.linkTypeDropdownView.buttonView.set("isVisible", !0), this._selectLinkTypeDropdownItem(k)) : this._selectLinkTypeDropdownItem("default"); + let v = this._getLinkElementRefHandle(); + v ? (this.linkTypeDropdownView.buttonView.set("isVisible", !0), this._selectLinkTypeDropdownItem(v)) : this._selectLinkTypeDropdownItem("default"); } /** * Select link type from the dropdown. */ - _selectLinkTypeDropdownItem(k) { - const v = this.linkTypeDropdownItemModels[k], T = k ? Craft.t("app", "{name}", { name: v.label }) : v.label; + _selectLinkTypeDropdownItem(v) { + const b = this.linkTypeDropdownItemModels[v], T = v ? Craft.t("app", "{name}", { name: b.label }) : b.label; this.linkTypeDropdownView.buttonView.set("label", T), Object.values(this.linkTypeDropdownItemModels).forEach((O) => { - O.set("isOn", O.handle === v.handle); + O.set("isOn", O.handle === b.handle); }); } /** * Get a list of all the options that should be shown in the link type dropdown. */ _getLinkListItemDefinitions() { - const k = []; - for (const v of this.linkOptions) - k.push( + const v = []; + for (const b of this.linkOptions) + v.push( new yi({ - label: v.label, - handle: v.refHandle, - linkOption: v, + label: b.label, + handle: b.refHandle, + linkOption: b, withText: !0 }) ); - return k.push( + return v.push( new yi({ label: Craft.t("app", "URL"), handle: "default", withText: !0 }) - ), k; + ), v; } /** * Place the link type fields in the form. */ - _showLinkTypeForm(k) { + _showLinkTypeForm(v) { var u, f, _, d; - const { formView: v } = this._linkUI, { children: T } = v, { urlInputView: O } = v, { displayedTextInputView: K } = v; - K.focus(), this.linkTypeWrapperView !== null && T.remove(this.linkTypeWrapperView), k === "default" ? (this.elementInputView = O, this.sitesView !== null && (f = (u = this.sitesView) == null ? void 0 : u.siteDropdownView) != null && f.buttonView && this.sitesView.siteDropdownView.buttonView.set("isVisible", !1)) : (this.elementInputView = new $u(v.locale, { + const { formView: b } = this._linkUI, { children: T } = b, { urlInputView: O } = b, { displayedTextInputView: Q } = b; + Q.focus(), this.linkTypeWrapperView !== null && T.remove(this.linkTypeWrapperView), v === "default" ? (this.elementInputView = O, this.sitesView !== null && (f = (u = this.sitesView) == null ? void 0 : u.siteDropdownView) != null && f.buttonView && this.sitesView.siteDropdownView.buttonView.set("isVisible", !1)) : (this.elementInputView = new $u(b.locale, { linkUi: this, - linkOption: k, + linkOption: v, value: this._urlInputValue() }), this.sitesView !== null && (d = (_ = this.sitesView) == null ? void 0 : _.siteDropdownView) != null && d.buttonView && this.sitesView.siteDropdownView.buttonView.set("isVisible", !1)); let i = [ this.linkTypeDropdownView, this.elementInputView ]; - if (Craft.isMultiSite && this.sitesView == null && (this.sitesView = new Bu(v.locale, { + if (Craft.isMultiSite && this.sitesView == null && (this.sitesView = new Bu(b.locale, { linkUi: this, - linkOption: k + linkOption: v })), this.sitesView != null) { let C = new Tr(); C.setTemplate({ @@ -1834,41 +1834,42 @@ class Wu extends $n { /** * Show element selector modal for given element type (link option). */ - _showElementSelectorModal(k) { - const v = this.editor, T = v.model, O = T.document.selection, K = O.isCollapsed, i = O.getFirstRange(), u = this._linkUI._getSelectedLinkElement(), f = () => { - v.editing.view.focus(), !K && i && T.change((_) => { + _showElementSelectorModal(v) { + const b = this.editor, T = b.model, O = T.document.selection, Q = O.isCollapsed, i = O.getFirstRange(), u = this._linkUI._getSelectedLinkElement(), f = () => { + b.editing.view.focus(), !Q && i && T.change((_) => { _.setSelection(i); }), this._linkUI._hideFakeVisualSelection(); }; - u || this._linkUI._showFakeVisualSelection(), Craft.createElementSelectorModal(k.elementType, { - storageKey: `ckeditor:${this.pluginName}:${k.elementType}`, - sources: k.sources, - criteria: k.criteria, - defaultSiteId: v.config.get("elementSiteId"), + u || this._linkUI._showFakeVisualSelection(), Craft.createElementSelectorModal(v.elementType, { + storageKey: `ckeditor:${this.pluginName}:${v.elementType}`, + sources: v.sources, + criteria: v.criteria, + defaultSiteId: b.config.get("elementSiteId"), autoFocusSearchBox: !1, onSelect: (_) => { + var d; if (_.length) { - const d = _[0], C = `${d.url}#${k.refHandle}:${d.id}@${d.siteId}`; - if (v.editing.view.focus(), (!K || u) && i) { - T.change((w) => { - w.setSelection(i); + const C = _[0], h = ((d = this.urlSuffixInputView) == null ? void 0 : d.fieldView.element.value.trim()) ?? "", k = `${C.url}${h}#${v.refHandle}:${C.id}@${C.siteId}`; + if (b.editing.view.focus(), (!Q || u) && i) { + T.change((I) => { + I.setSelection(i); }); - const h = v.commands.get("link"); - let b = this._getAdvancedFieldValues(); - h.execute(C, {}, void 0, b); + const w = b.commands.get("link"); + let N = this._getAdvancedFieldValues(); + w.execute(k, {}, void 0, N); } else - T.change((h) => { - let b = this._getAdvancedFieldValues(), w = { linkHref: C }; - if (this.conversionData.forEach((N) => { - b[N.model] && (w[N.model] = N.type == "bool" && N.value == !0 ? "" : b[N.model]); - }), h.insertText( - d.label, - w, + T.change((w) => { + let N = this._getAdvancedFieldValues(), I = { linkHref: k }; + if (this.conversionData.forEach((P) => { + N[P.model] && (I[P.model] = P.type == "bool" && P.value == !0 ? "" : N[P.model]); + }), w.insertText( + C.label, + I, O.getFirstPosition() ), i instanceof ku) try { - const N = i.clone(); - N.end.path[1] += d.label.length, h.setSelection(N); + const P = i.clone(); + P.end.path[1] += C.label.length, w.setSelection(P); } catch { } }); @@ -1896,60 +1897,61 @@ class Wu extends $n { */ _addAdvancedLinkFieldInputs() { var O; - const k = this.editor.commands.get("link"), { formView: v } = this._linkUI, { children: T } = v; - this.advancedView = new Hu(v.locale, { + const v = this.editor.commands.get("link"), { formView: b } = this._linkUI, { children: T } = b; + this.advancedView = new Hu(b.locale, { linkUi: this }), T.add(this.advancedView, 3); - for (const K of this.advancedLinkFields) { - let i = (O = K.conversion) == null ? void 0 : O.model; - if (i && typeof v[i] > "u") - if (K.conversion.type === "bool") { + for (const Q of this.advancedLinkFields) { + let i = (O = Q.conversion) == null ? void 0 : O.model; + if (i && typeof b[i] > "u") + if (Q.conversion.type === "bool") { const u = new wu(); u.set({ withText: !0, - label: K.label, + label: Q.label, isToggleable: !0 - }), K.tooltip && (u.tooltip = K.tooltip), this.advancedView.advancedChildren.add(u), v[i] = u, v[i].bind("isOn").to(k, i, (f) => f === void 0 ? (v[i].element.value = "", !1) : (v[i].element.value = K.conversion.value, !0)), u.on("execute", () => { - u.isOn ? (u.isOn = !1, v[i].element.value = "") : (u.isOn = !0, v[i].element.value = K.conversion.value); + }), Q.tooltip && (u.tooltip = Q.tooltip), this.advancedView.advancedChildren.add(u), b[i] = u, b[i].bind("isOn").to(v, i, (f) => f === void 0 ? (b[i].element.value = "", !1) : (b[i].element.value = Q.conversion.value, !0)), u.on("execute", () => { + u.isOn ? (u.isOn = !1, b[i].element.value = "") : (u.isOn = !0, b[i].element.value = Q.conversion.value); }); } else { - let u = this._addLabeledField(K); - v[i] = u, v[i].fieldView.bind("value").to(k, i), v[i].fieldView.element.value = k[i] || ""; + let u = this._addLabeledField(Q); + b[i] = u, b[i].fieldView.bind("value").to(v, i), b[i].fieldView.element.value = v[i] || ""; } - else if (K.value === "urlSuffix") { - let u = this._addLabeledField(K); - this.listenTo( - u.fieldView, + else if (Q.value === "urlSuffix") { + this.urlSuffixInputView = this._addLabeledField(Q), this.listenTo( + this.urlSuffixInputView.fieldView, "change:isFocused", (f, _, d, C) => { if (d !== C && !d) { - let h = f.source.element.value, b = null; - const w = this._urlInputRefMatch(this.urlWithRefHandleRE); - w ? b = w[1] : b = this._urlInputValue(); - try { - let N = new URL(b), I = N.search, D = N.hash, L = b.replace(D, "").replace(I, ""); - const ae = this._urlInputValue().replace( - b, - L + h - ); - v.urlInputView.fieldView.set("value", ae); - } catch { - let [I, D] = b.split("#"), [L, ae] = I.split("?"); - const te = this._urlInputValue().replace( - b, - L + h - ); - v.urlInputView.fieldView.set("value", te); - } + if (this._urlInputValue().trim() === "") + return; + this._applyUrlSuffix(f.source.element.value); } } - ), this.listenTo(v.urlInputView.fieldView, "change:value", (f) => { - this._toggleUrlSuffixInputView(u, f.source.isEmpty); - }), this.listenTo( - v.urlInputView.fieldView, + ), this.listenTo(b.urlInputView.fieldView, "change:value", (f) => { + this._toggleUrlSuffixInputView( + this.urlSuffixInputView, + f.source.isEmpty + ); + }); + let u = !1; + this.listenTo( + b.urlInputView.fieldView, "change:isFocused", - (f) => { - this._toggleUrlSuffixInputView(u, f.source.isEmpty); + (f, _, d) => { + var k; + const C = this._urlInputValue().trim() === ""; + if (d && (u = C), C) + return; + const h = (k = this.urlSuffixInputView) == null ? void 0 : k.fieldView.element.value.trim(); + if (!d && u && h !== "" && this._getUrlSuffix() === "") { + this._applyUrlSuffix(h); + return; + } + this._toggleUrlSuffixInputView( + this.urlSuffixInputView, + f.source.isEmpty + ); } ); } @@ -1958,49 +1960,77 @@ class Wu extends $n { /** * Create a labeled field for given advanced field. */ - _addLabeledField(k) { - const { formView: v } = this._linkUI; + _addLabeledField(v) { + const { formView: b } = this._linkUI; let T = new _u( - v.locale, + b.locale, Eu ); - return T.label = k.label, k.tooltip && (T.infoText = k.tooltip), this.advancedView.advancedChildren.add(T), T; + return T.label = v.label, v.tooltip && (T.infoText = v.tooltip), this.advancedView.advancedChildren.add(T), T; } /** * Populate URL suffix advanced field with content. * 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(k, v) { - if (v) - k.fieldView.set("value", ""); - else { - const T = this._urlInputRefMatch(this.urlWithRefHandleRE); - let O = null; - T ? O = T[1] : O = this._urlInputValue(); - try { - let K = new URL(O), i = K.search, u = K.hash; - k.fieldView.set("value", i + u); - } catch { - let [i, u] = O.split("#"), [f, _] = i.split("?"); - u = u ? "#" + u : "", _ = _ ? "?" + _ : "", k.fieldView.set("value", _ + u); - } + _toggleUrlSuffixInputView(v, b) { + v.fieldView.set( + "value", + b ? "" : this._getUrlSuffix() + ); + } + /** + * Get the URL field value without the {refTag} portion. + */ + _getUrlWithoutRefTag() { + const v = this._urlInputRefMatch(this.urlWithRefHandleRE); + return v ? v[1] : this._urlInputValue(); + } + /** + * Get the query params and anchor from the URL field value. + */ + _getUrlSuffix() { + const v = this._getUrlWithoutRefTag(); + try { + let b = new URL(v); + return b.search + b.hash; + } catch { + let [T, O] = v.split("#"), [Q, i] = T.split("?"); + return O = O ? "#" + O : "", i = i ? "?" + i : "", i + O; } } + /** + * Replace the query params and anchor in the URL field value with given URL suffix. + */ + _applyUrlSuffix(v) { + const { formView: b } = this._linkUI, T = this._getUrlWithoutRefTag(); + let O; + try { + let i = new URL(T); + O = T.replace(i.hash, "").replace(i.search, ""); + } catch { + let [u, f] = T.split("#"), [_, d] = u.split("?"); + } + const Q = this._urlInputValue().replace( + T, + O + v + ); + b.urlInputView.fieldView.set("value", Q); + } /** * When link form is submitted, pass the advanced field values the link command. */ _handleAdvancedLinkFieldsFormSubmit() { - const v = this.editor.commands.get("link"), { formView: T } = this._linkUI; + const b = this.editor.commands.get("link"), { formView: T } = this._linkUI; T.on( "submit", () => { if (!T.isValid()) return; let O = this._getAdvancedFieldValues(); - v.once( + b.once( "execute", - (K, i) => { + (Q, i) => { i[3] = i[3] ? Object.assign(i[3], O) : O; }, { priority: "highest" } @@ -2013,10 +2043,10 @@ class Wu extends $n { * Update the link command when the advanced field value changes. */ _trackAdvancedLinkFieldsValueChange() { - const k = this.editor, v = k.commands.get("link"), T = k.model.document.selection; + const v = this.editor, b = v.commands.get("link"), T = v.model.document.selection; this.conversionData.forEach((O) => { - v.set(O.model, null), k.model.document.on("change", () => { - v[O.model] = T.getAttribute(O.model); + b.set(O.model, null), v.model.document.on("change", () => { + b[O.model] = T.getAttribute(O.model); }); }); } @@ -2024,17 +2054,17 @@ class Wu extends $n { * Get the values of all the advanced fields. */ _getAdvancedFieldValues() { - const { formView: k } = this._linkUI; - let v = {}; + const { formView: v } = this._linkUI; + let b = {}; return this.conversionData.forEach((T) => { let O = []; - T.type === "bool" ? O[T.model] = k[T.model].element.value : O[T.model] = k[T.model].fieldView.element.value, Object.assign(v, O); - }), v; + T.type === "bool" ? O[T.model] = v[T.model].element.value : O[T.model] = v[T.model].fieldView.element.value, Object.assign(b, O); + }), b; } } class od extends $n { static get requires() { - return [Uu, Wu]; + return [Fu, Wu]; } static get pluginName() { return "CraftLink"; @@ -2047,22 +2077,22 @@ var _l = { exports: {} }; /*! For license information please see inspector.js.LICENSE.txt */ var Rc; function Ku() { - return Rc || (Rc = 1, (function(Se, k) { - (function(v, T) { + return Rc || (Rc = 1, (function(Se, v) { + (function(b, T) { Se.exports = T(); })(self, () => (() => { - var v = { 0: (i, u, f) => { + var b = { 0: (i, u, f) => { var _ = f(5072), d = f(7195); typeof (d = d.__esModule ? d.default : d) == "string" && (d = [[i.id, d, ""]]); var C = { injectType: "singletonStyleTag", attributes: { "data-cke-inspector": !0 }, insert: "head", singleton: !0 }; _(d, C), i.exports = d.locals || {}; }, 42: (i, u, f) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.toString = void 0; - const _ = f(1099), d = f(7860), C = f(5180), h = { string: _.quoteString, number: (b) => Object.is(b, -0) ? "-0" : String(b), boolean: String, symbol: (b, w, N) => { - const I = Symbol.keyFor(b); - return I !== void 0 ? `Symbol.for(${N(I)})` : `Symbol(${N(b.description)})`; - }, bigint: (b, w, N) => `BigInt(${N(String(b))})`, undefined: String, object: d.objectToString, function: C.functionToString }; - u.toString = (b, w, N, I) => b === null ? "null" : h[typeof b](b, w, N, I); + const _ = f(1099), d = f(7860), C = f(5180), h = { string: _.quoteString, number: (k) => Object.is(k, -0) ? "-0" : String(k), boolean: String, symbol: (k, w, N) => { + const I = Symbol.keyFor(k); + return I !== void 0 ? `Symbol.for(${N(I)})` : `Symbol(${N(k.description)})`; + }, bigint: (k, w, N) => `BigInt(${N(String(k))})`, undefined: String, object: d.objectToString, function: C.functionToString }; + u.toString = (k, w, N, I) => k === null ? "null" : h[typeof k](k, w, N, I); }, 312: (i, u, f) => { Object.defineProperty(u, "__esModule", { value: !0 }); var _, d = f(1720), C = (_ = d) && _.__esModule ? _ : { default: _ }; @@ -2096,88 +2126,88 @@ function Ku() { const C = d; }, 1089: (i, u, f) => { function _(R) { - return _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(F) { - return typeof F; - } : function(F) { - return F && typeof Symbol == "function" && F.constructor === Symbol && F !== Symbol.prototype ? "symbol" : typeof F; + return _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(U) { + return typeof U; + } : function(U) { + return U && typeof Symbol == "function" && U.constructor === Symbol && U !== Symbol.prototype ? "symbol" : typeof U; }, _(R); } - Object.defineProperty(u, "__esModule", { value: !0 }), u.matchesSelector = D, u.matchesSelectorAndParentsTo = function(R, F, q) { + Object.defineProperty(u, "__esModule", { value: !0 }), u.matchesSelector = P, u.matchesSelectorAndParentsTo = function(R, U, q) { var G = R; do { - if (D(G, F)) return !0; + if (P(G, U)) return !0; if (G === q) return !1; G = G.parentNode; } while (G); return !1; - }, u.addEvent = function(R, F, q, G) { + }, u.addEvent = function(R, U, q, G) { if (R) { var pe = w({ capture: !0 }, G); - R.addEventListener ? R.addEventListener(F, q, pe) : R.attachEvent ? R.attachEvent("on" + F, q) : R["on" + F] = q; + R.addEventListener ? R.addEventListener(U, q, pe) : R.attachEvent ? R.attachEvent("on" + U, q) : R["on" + U] = q; } - }, u.removeEvent = function(R, F, q, G) { + }, u.removeEvent = function(R, U, q, G) { if (R) { var pe = w({ capture: !0 }, G); - R.removeEventListener ? R.removeEventListener(F, q, pe) : R.detachEvent ? R.detachEvent("on" + F, q) : R["on" + F] = null; + R.removeEventListener ? R.removeEventListener(U, q, pe) : R.detachEvent ? R.detachEvent("on" + U, q) : R["on" + U] = null; } }, u.outerHeight = function(R) { - var F = R.clientHeight, q = R.ownerDocument.defaultView.getComputedStyle(R); - return F += (0, d.int)(q.borderTopWidth), F += (0, d.int)(q.borderBottomWidth); + var U = R.clientHeight, q = R.ownerDocument.defaultView.getComputedStyle(R); + return U += (0, d.int)(q.borderTopWidth), U += (0, d.int)(q.borderBottomWidth); }, u.outerWidth = function(R) { - var F = R.clientWidth, q = R.ownerDocument.defaultView.getComputedStyle(R); - return F += (0, d.int)(q.borderLeftWidth), F += (0, d.int)(q.borderRightWidth); + var U = R.clientWidth, q = R.ownerDocument.defaultView.getComputedStyle(R); + return U += (0, d.int)(q.borderLeftWidth), U += (0, d.int)(q.borderRightWidth); }, u.innerHeight = function(R) { - var F = R.clientHeight, q = R.ownerDocument.defaultView.getComputedStyle(R); - return F -= (0, d.int)(q.paddingTop), F -= (0, d.int)(q.paddingBottom); + var U = R.clientHeight, q = R.ownerDocument.defaultView.getComputedStyle(R); + return U -= (0, d.int)(q.paddingTop), U -= (0, d.int)(q.paddingBottom); }, u.innerWidth = function(R) { - var F = R.clientWidth, q = R.ownerDocument.defaultView.getComputedStyle(R); - return F -= (0, d.int)(q.paddingLeft), F -= (0, d.int)(q.paddingRight); - }, u.offsetXYFromParent = function(R, F, q) { - var G = F === F.ownerDocument.body ? { left: 0, top: 0 } : F.getBoundingClientRect(), pe = (R.clientX + F.scrollLeft - G.left) / q, oe = (R.clientY + F.scrollTop - G.top) / q; + var U = R.clientWidth, q = R.ownerDocument.defaultView.getComputedStyle(R); + return U -= (0, d.int)(q.paddingLeft), U -= (0, d.int)(q.paddingRight); + }, u.offsetXYFromParent = function(R, U, q) { + var G = U === U.ownerDocument.body ? { left: 0, top: 0 } : U.getBoundingClientRect(), pe = (R.clientX + U.scrollLeft - G.left) / q, oe = (R.clientY + U.scrollTop - G.top) / q; return { x: pe, y: oe }; - }, u.createCSSTransform = function(R, F) { - var q = L(R, F, "px"); + }, u.createCSSTransform = function(R, U) { + var q = L(R, U, "px"); return N({}, (0, C.browserPrefixToKey)("transform", C.default), q); - }, u.createSVGTransform = function(R, F) { - return L(R, F, ""); - }, u.getTranslation = L, u.getTouch = function(R, F) { + }, u.createSVGTransform = function(R, U) { + return L(R, U, ""); + }, u.getTranslation = L, u.getTouch = function(R, U) { return R.targetTouches && (0, d.findInArray)(R.targetTouches, function(q) { - return F === q.identifier; + return U === q.identifier; }) || R.changedTouches && (0, d.findInArray)(R.changedTouches, function(q) { - return F === q.identifier; + return U === q.identifier; }); }, u.getTouchIdentifier = function(R) { if (R.targetTouches && R.targetTouches[0]) return R.targetTouches[0].identifier; if (R.changedTouches && R.changedTouches[0]) return R.changedTouches[0].identifier; }, u.addUserSelectStyles = function(R) { if (R) { - var F = R.getElementById("react-draggable-style-el"); - F || ((F = R.createElement("style")).type = "text/css", F.id = "react-draggable-style-el", F.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;} -`, F.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;} -`, R.getElementsByTagName("head")[0].appendChild(F)), R.body && ae(R.body, "react-draggable-transparent-selection"); + var U = R.getElementById("react-draggable-style-el"); + U || ((U = R.createElement("style")).type = "text/css", U.id = "react-draggable-style-el", U.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;} +`, U.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;} +`, R.getElementsByTagName("head")[0].appendChild(U)), R.body && se(R.body, "react-draggable-transparent-selection"); } }, u.removeUserSelectStyles = function(R) { if (R) try { - if (R.body && te(R.body, "react-draggable-transparent-selection"), R.selection) R.selection.empty(); + if (R.body && ne(R.body, "react-draggable-transparent-selection"), R.selection) R.selection.empty(); else { - var F = (R.defaultView || window).getSelection(); - F && F.type !== "Caret" && F.removeAllRanges(); + var U = (R.defaultView || window).getSelection(); + U && U.type !== "Caret" && U.removeAllRanges(); } } catch { } - }, u.addClassName = ae, u.removeClassName = te; + }, u.addClassName = se, u.removeClassName = ne; var d = f(7056), C = (function(R) { if (R && R.__esModule) return R; if (R === null || _(R) !== "object" && typeof R != "function") return { default: R }; - var F = h(); - if (F && F.has(R)) return F.get(R); + var U = h(); + if (U && U.has(R)) return U.get(R); var q = {}, G = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var pe in R) if (Object.prototype.hasOwnProperty.call(R, pe)) { var oe = G ? Object.getOwnPropertyDescriptor(R, pe) : null; oe && (oe.get || oe.set) ? Object.defineProperty(q, pe, oe) : q[pe] = R[pe]; } - return q.default = R, F && F.set(R, q), q; + return q.default = R, U && U.set(R, q), q; })(f(3514)); function h() { if (typeof WeakMap != "function") return null; @@ -2186,69 +2216,69 @@ function Ku() { return R; }, R; } - function b(R, F) { + function k(R, U) { var q = Object.keys(R); if (Object.getOwnPropertySymbols) { var G = Object.getOwnPropertySymbols(R); - F && (G = G.filter(function(pe) { + U && (G = G.filter(function(pe) { return Object.getOwnPropertyDescriptor(R, pe).enumerable; })), q.push.apply(q, G); } return q; } function w(R) { - for (var F = 1; F < arguments.length; F++) { - var q = arguments[F] != null ? arguments[F] : {}; - F % 2 ? b(Object(q), !0).forEach(function(G) { + for (var U = 1; U < arguments.length; U++) { + var q = arguments[U] != null ? arguments[U] : {}; + U % 2 ? k(Object(q), !0).forEach(function(G) { N(R, G, q[G]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(R, Object.getOwnPropertyDescriptors(q)) : b(Object(q)).forEach(function(G) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(R, Object.getOwnPropertyDescriptors(q)) : k(Object(q)).forEach(function(G) { Object.defineProperty(R, G, Object.getOwnPropertyDescriptor(q, G)); }); } return R; } - function N(R, F, q) { - return F in R ? Object.defineProperty(R, F, { value: q, enumerable: !0, configurable: !0, writable: !0 }) : R[F] = q, R; + function N(R, U, q) { + return U in R ? Object.defineProperty(R, U, { value: q, enumerable: !0, configurable: !0, writable: !0 }) : R[U] = q, R; } var I = ""; - function D(R, F) { + function P(R, U) { return I || (I = (0, d.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(q) { return (0, d.isFunction)(R[q]); - })), !!(0, d.isFunction)(R[I]) && R[I](F); + })), !!(0, d.isFunction)(R[I]) && R[I](U); } - function L(R, F, q) { + function L(R, U, q) { var G = R.x, pe = R.y, oe = "translate(".concat(G).concat(q, ",").concat(pe).concat(q, ")"); - if (F) { - var fe = "".concat(typeof F.x == "string" ? F.x : F.x + q), he = "".concat(typeof F.y == "string" ? F.y : F.y + q); + if (U) { + var fe = "".concat(typeof U.x == "string" ? U.x : U.x + q), he = "".concat(typeof U.y == "string" ? U.y : U.y + q); oe = "translate(".concat(fe, ", ").concat(he, ")") + oe; } return oe; } - function ae(R, F) { - R.classList ? R.classList.add(F) : R.className.match(new RegExp("(?:^|\\s)".concat(F, "(?!\\S)"))) || (R.className += " ".concat(F)); + function se(R, U) { + R.classList ? R.classList.add(U) : R.className.match(new RegExp("(?:^|\\s)".concat(U, "(?!\\S)"))) || (R.className += " ".concat(U)); } - function te(R, F) { - R.classList ? R.classList.remove(F) : R.className = R.className.replace(new RegExp("(?:^|\\s)".concat(F, "(?!\\S)"), "g"), ""); + function ne(R, U) { + R.classList ? R.classList.remove(U) : R.className = R.className.replace(new RegExp("(?:^|\\s)".concat(U, "(?!\\S)"), "g"), ""); } }, 1099: (i, u) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.stringifyPath = u.quoteKey = u.isValidVariableName = u.IS_VALID_IDENTIFIER = u.quoteString = void 0; const f = /[\\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, _ = /* @__PURE__ */ new Map([["\b", "\\b"], [" ", "\\t"], [` `, "\\n"], ["\f", "\\f"], ["\r", "\\r"], ["'", "\\'"], ['"', '\\"'], ["\\", "\\\\"]]); - function d(b) { - return _.get(b) || `\\u${`0000${b.charCodeAt(0).toString(16)}`.slice(-4)}`; + function d(k) { + return _.get(k) || `\\u${`0000${k.charCodeAt(0).toString(16)}`.slice(-4)}`; } - u.quoteString = function(b) { - return `'${b.replace(f, d)}'`; + u.quoteString = function(k) { + return `'${k.replace(f, d)}'`; }; const C = 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 h(b) { - return typeof b == "string" && !C.has(b) && u.IS_VALID_IDENTIFIER.test(b); + function h(k) { + return typeof k == "string" && !C.has(k) && u.IS_VALID_IDENTIFIER.test(k); } - u.IS_VALID_IDENTIFIER = /^[A-Za-z_$][A-Za-z0-9_$]*$/, u.isValidVariableName = h, u.quoteKey = function(b, w) { - return h(b) ? b : w(b); - }, u.stringifyPath = function(b, w) { + u.IS_VALID_IDENTIFIER = /^[A-Za-z_$][A-Za-z0-9_$]*$/, u.isValidVariableName = h, u.quoteKey = function(k, w) { + return h(k) ? k : w(k); + }, u.stringifyPath = function(k, w) { let N = ""; - for (const I of b) h(I) ? N += `.${I}` : N += `[${w(I)}]`; + for (const I of k) h(I) ? N += `.${I}` : N += `[${w(I)}]`; return N; }; }, 1197: (i, u, f) => { @@ -2263,50 +2293,50 @@ function Ku() { _(d, C), i.exports = d.locals || {}; }, 1345: (i, u, f) => { function _() { - var b = this.constructor.getDerivedStateFromProps(this.props, this.state); - b != null && this.setState(b); + var k = this.constructor.getDerivedStateFromProps(this.props, this.state); + k != null && this.setState(k); } - function d(b) { + function d(k) { this.setState((function(w) { - var N = this.constructor.getDerivedStateFromProps(b, w); + var N = this.constructor.getDerivedStateFromProps(k, w); return N ?? null; }).bind(this)); } - function C(b, w) { + function C(k, w) { try { var N = this.props, I = this.state; - this.props = b, this.state = w, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(N, I); + this.props = k, this.state = w, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(N, I); } finally { this.props = N, this.state = I; } } - function h(b) { - var w = b.prototype; + function h(k) { + var w = k.prototype; if (!w || !w.isReactComponent) throw new Error("Can only polyfill class components"); - if (typeof b.getDerivedStateFromProps != "function" && typeof w.getSnapshotBeforeUpdate != "function") return b; - var N = null, I = null, D = null; - if (typeof w.componentWillMount == "function" ? N = "componentWillMount" : typeof w.UNSAFE_componentWillMount == "function" && (N = "UNSAFE_componentWillMount"), typeof w.componentWillReceiveProps == "function" ? I = "componentWillReceiveProps" : typeof w.UNSAFE_componentWillReceiveProps == "function" && (I = "UNSAFE_componentWillReceiveProps"), typeof w.componentWillUpdate == "function" ? D = "componentWillUpdate" : typeof w.UNSAFE_componentWillUpdate == "function" && (D = "UNSAFE_componentWillUpdate"), N !== null || I !== null || D !== null) { - var L = b.displayName || b.name, ae = typeof b.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; + if (typeof k.getDerivedStateFromProps != "function" && typeof w.getSnapshotBeforeUpdate != "function") return k; + var N = null, I = null, P = null; + if (typeof w.componentWillMount == "function" ? N = "componentWillMount" : typeof w.UNSAFE_componentWillMount == "function" && (N = "UNSAFE_componentWillMount"), typeof w.componentWillReceiveProps == "function" ? I = "componentWillReceiveProps" : typeof w.UNSAFE_componentWillReceiveProps == "function" && (I = "UNSAFE_componentWillReceiveProps"), typeof w.componentWillUpdate == "function" ? P = "componentWillUpdate" : typeof w.UNSAFE_componentWillUpdate == "function" && (P = "UNSAFE_componentWillUpdate"), N !== null || I !== null || P !== null) { + var L = k.displayName || k.name, se = typeof k.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. -` + L + " uses " + ae + " but also contains the following legacy lifecycles:" + (N !== null ? ` +` + L + " uses " + se + " but also contains the following legacy lifecycles:" + (N !== null ? ` ` + N : "") + (I !== null ? ` - ` + I : "") + (D !== null ? ` - ` + D : "") + ` + ` + I : "") + (P !== null ? ` + ` + P : "") + ` The above lifecycles should be removed. Learn more about this warning here: https://fb.me/react-async-component-lifecycle-hooks`); } - if (typeof b.getDerivedStateFromProps == "function" && (w.componentWillMount = _, w.componentWillReceiveProps = d), typeof w.getSnapshotBeforeUpdate == "function") { + if (typeof k.getDerivedStateFromProps == "function" && (w.componentWillMount = _, w.componentWillReceiveProps = d), typeof w.getSnapshotBeforeUpdate == "function") { if (typeof w.componentDidUpdate != "function") throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype"); w.componentWillUpdate = C; - var te = w.componentDidUpdate; - w.componentDidUpdate = function(R, F, q) { + var ne = w.componentDidUpdate; + w.componentDidUpdate = function(R, U, q) { var G = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : q; - te.call(this, R, F, G); + ne.call(this, R, U, G); }; } - return b; + return k; } f.r(u), f.d(u, { polyfill: () => h }), _.__suppressDeprecationWarning = !0, d.__suppressDeprecationWarning = !0, C.__suppressDeprecationWarning = !0; }, 1720: (i, u, f) => { @@ -2314,49 +2344,49 @@ https://fb.me/react-async-component-lifecycle-hooks`); var _ = Object.assign || function(S) { for (var j = 1; j < arguments.length; j++) { var A = arguments[j]; - for (var se in A) Object.prototype.hasOwnProperty.call(A, se) && (S[se] = A[se]); + for (var ae in A) Object.prototype.hasOwnProperty.call(A, ae) && (S[ae] = A[ae]); } return S; }, d = /* @__PURE__ */ (function() { function S(j, A) { - for (var se = 0; se < A.length; se++) { - var J = A[se]; + for (var ae = 0; ae < A.length; ae++) { + var J = A[ae]; J.enumerable = J.enumerable || !1, J.configurable = !0, "value" in J && (J.writable = !0), Object.defineProperty(j, J.key, J); } } - return function(j, A, se) { - return A && S(j.prototype, A), se && S(j, se), j; + return function(j, A, ae) { + return A && S(j.prototype, A), ae && S(j, ae), j; }; - })(), C = f(6540), h = te(C), b = te(f(961)), w = te(f(5556)), N = te(f(9090)), I = (function(S) { + })(), C = f(6540), h = ne(C), k = ne(f(961)), w = ne(f(5556)), N = ne(f(9090)), I = (function(S) { if (S && S.__esModule) return S; var j = {}; if (S != null) for (var A in S) Object.prototype.hasOwnProperty.call(S, A) && (j[A] = S[A]); return j.default = S, j; - })(f(6462)), D = f(834), L = te(D), ae = f(1345); - function te(S) { + })(f(6462)), P = f(834), L = ne(P), se = f(1345); + function ne(S) { return S && S.__esModule ? S : { default: S }; } function R(S, j) { if (!S) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !j || typeof j != "object" && typeof j != "function" ? S : j; } - var F = u.portalClassName = "ReactModalPortal", q = u.bodyOpenClassName = "ReactModal__Body--open", G = D.canUseDOM && b.default.createPortal !== void 0, pe = function(S) { + var U = u.portalClassName = "ReactModalPortal", q = u.bodyOpenClassName = "ReactModal__Body--open", G = P.canUseDOM && k.default.createPortal !== void 0, pe = function(S) { return document.createElement(S); }, oe = function() { - return G ? b.default.createPortal : b.default.unstable_renderSubtreeIntoContainer; + return G ? k.default.createPortal : k.default.unstable_renderSubtreeIntoContainer; }; function fe(S) { return S(); } var he = (function(S) { function j() { - var A, se, J; + var A, ae, J; (function(Z, le) { if (!(Z instanceof le)) throw new TypeError("Cannot call a class as a function"); })(this, j); for (var Ee = arguments.length, ee = Array(Ee), V = 0; V < Ee; V++) ee[V] = arguments[V]; - return se = J = R(this, (A = j.__proto__ || Object.getPrototypeOf(j)).call.apply(A, [this].concat(ee))), J.removePortal = function() { - !G && b.default.unmountComponentAtNode(J.node); + return ae = J = R(this, (A = j.__proto__ || Object.getPrototypeOf(j)).call.apply(A, [this].concat(ee))), J.removePortal = function() { + !G && k.default.unmountComponentAtNode(J.node); var Z = fe(J.props.parentSelector); Z && Z.contains(J.node) ? Z.removeChild(J.node) : console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.'); }, J.portalRef = function(Z) { @@ -2364,111 +2394,111 @@ https://fb.me/react-async-component-lifecycle-hooks`); }, J.renderPortal = function(Z) { var le = oe()(J, h.default.createElement(N.default, _({ defaultStyles: j.defaultStyles }, Z)), J.node); J.portalRef(le); - }, R(J, se); + }, R(J, ae); } - return (function(A, se) { - if (typeof se != "function" && se !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof se); - A.prototype = Object.create(se && se.prototype, { constructor: { value: A, enumerable: !1, writable: !0, configurable: !0 } }), se && (Object.setPrototypeOf ? Object.setPrototypeOf(A, se) : A.__proto__ = se); + return (function(A, ae) { + if (typeof ae != "function" && ae !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof ae); + A.prototype = Object.create(ae && ae.prototype, { constructor: { value: A, enumerable: !1, writable: !0, configurable: !0 } }), ae && (Object.setPrototypeOf ? Object.setPrototypeOf(A, ae) : A.__proto__ = ae); })(j, S), d(j, [{ key: "componentDidMount", value: function() { - D.canUseDOM && (G || (this.node = pe("div")), this.node.className = this.props.portalClassName, fe(this.props.parentSelector).appendChild(this.node), !G && this.renderPortal(this.props)); + P.canUseDOM && (G || (this.node = pe("div")), this.node.className = this.props.portalClassName, fe(this.props.parentSelector).appendChild(this.node), !G && this.renderPortal(this.props)); } }, { key: "getSnapshotBeforeUpdate", value: function(A) { return { prevParent: fe(A.parentSelector), nextParent: fe(this.props.parentSelector) }; - } }, { key: "componentDidUpdate", value: function(A, se, J) { - if (D.canUseDOM) { + } }, { key: "componentDidUpdate", value: function(A, ae, J) { + if (P.canUseDOM) { var Ee = this.props, ee = Ee.isOpen, V = Ee.portalClassName; A.portalClassName !== V && (this.node.className = V); var Z = J.prevParent, le = J.nextParent; le !== Z && (Z.removeChild(this.node), le.appendChild(this.node)), (A.isOpen || ee) && !G && this.renderPortal(this.props); } } }, { key: "componentWillUnmount", value: function() { - if (D.canUseDOM && this.node && this.portal) { - var A = this.portal.state, se = Date.now(), J = A.isOpen && this.props.closeTimeoutMS && (A.closesAt || se + this.props.closeTimeoutMS); - J ? (A.beforeClose || this.portal.closeWithTimeout(), setTimeout(this.removePortal, J - se)) : this.removePortal(); + if (P.canUseDOM && this.node && this.portal) { + var A = this.portal.state, ae = Date.now(), J = A.isOpen && this.props.closeTimeoutMS && (A.closesAt || ae + this.props.closeTimeoutMS); + J ? (A.beforeClose || this.portal.closeWithTimeout(), setTimeout(this.removePortal, J - ae)) : this.removePortal(); } } }, { key: "render", value: function() { - return D.canUseDOM && G ? (!this.node && G && (this.node = pe("div")), oe()(h.default.createElement(N.default, _({ ref: this.portalRef, defaultStyles: j.defaultStyles }, this.props)), this.node)) : null; + return P.canUseDOM && G ? (!this.node && G && (this.node = pe("div")), oe()(h.default.createElement(N.default, _({ ref: this.portalRef, defaultStyles: j.defaultStyles }, this.props)), this.node)) : null; } }], [{ key: "setAppElement", value: function(A) { I.setElement(A); } }]), j; })(C.Component); - he.propTypes = { isOpen: w.default.bool.isRequired, style: w.default.shape({ content: w.default.object, overlay: w.default.object }), portalClassName: w.default.string, bodyOpenClassName: w.default.string, htmlOpenClassName: w.default.string, className: w.default.oneOfType([w.default.string, w.default.shape({ base: w.default.string.isRequired, afterOpen: w.default.string.isRequired, beforeClose: w.default.string.isRequired })]), overlayClassName: w.default.oneOfType([w.default.string, w.default.shape({ base: w.default.string.isRequired, afterOpen: w.default.string.isRequired, beforeClose: w.default.string.isRequired })]), appElement: w.default.oneOfType([w.default.instanceOf(L.default), w.default.instanceOf(D.SafeHTMLCollection), w.default.instanceOf(D.SafeNodeList), w.default.arrayOf(w.default.instanceOf(L.default))]), onAfterOpen: w.default.func, onRequestClose: w.default.func, closeTimeoutMS: w.default.number, ariaHideApp: w.default.bool, shouldFocusAfterRender: w.default.bool, shouldCloseOnOverlayClick: w.default.bool, shouldReturnFocusAfterClose: w.default.bool, preventScroll: w.default.bool, parentSelector: w.default.func, aria: w.default.object, data: w.default.object, role: w.default.string, contentLabel: w.default.string, shouldCloseOnEsc: w.default.bool, overlayRef: w.default.func, contentRef: w.default.func, id: w.default.string, overlayElement: w.default.func, contentElement: w.default.func }, he.defaultProps = { isOpen: !1, portalClassName: F, bodyOpenClassName: q, role: "dialog", ariaHideApp: !0, closeTimeoutMS: 0, shouldFocusAfterRender: !0, shouldCloseOnEsc: !0, shouldCloseOnOverlayClick: !0, shouldReturnFocusAfterClose: !0, preventScroll: !1, parentSelector: function() { + he.propTypes = { isOpen: w.default.bool.isRequired, style: w.default.shape({ content: w.default.object, overlay: w.default.object }), portalClassName: w.default.string, bodyOpenClassName: w.default.string, htmlOpenClassName: w.default.string, className: w.default.oneOfType([w.default.string, w.default.shape({ base: w.default.string.isRequired, afterOpen: w.default.string.isRequired, beforeClose: w.default.string.isRequired })]), overlayClassName: w.default.oneOfType([w.default.string, w.default.shape({ base: w.default.string.isRequired, afterOpen: w.default.string.isRequired, beforeClose: w.default.string.isRequired })]), appElement: w.default.oneOfType([w.default.instanceOf(L.default), w.default.instanceOf(P.SafeHTMLCollection), w.default.instanceOf(P.SafeNodeList), w.default.arrayOf(w.default.instanceOf(L.default))]), onAfterOpen: w.default.func, onRequestClose: w.default.func, closeTimeoutMS: w.default.number, ariaHideApp: w.default.bool, shouldFocusAfterRender: w.default.bool, shouldCloseOnOverlayClick: w.default.bool, shouldReturnFocusAfterClose: w.default.bool, preventScroll: w.default.bool, parentSelector: w.default.func, aria: w.default.object, data: w.default.object, role: w.default.string, contentLabel: w.default.string, shouldCloseOnEsc: w.default.bool, overlayRef: w.default.func, contentRef: w.default.func, id: w.default.string, overlayElement: w.default.func, contentElement: w.default.func }, he.defaultProps = { isOpen: !1, portalClassName: U, bodyOpenClassName: q, role: "dialog", ariaHideApp: !0, closeTimeoutMS: 0, shouldFocusAfterRender: !0, shouldCloseOnEsc: !0, shouldCloseOnOverlayClick: !0, shouldReturnFocusAfterClose: !0, preventScroll: !1, parentSelector: function() { return document.body; }, overlayElement: function(S, j) { return h.default.createElement("div", S, j); }, contentElement: function(S, j) { return h.default.createElement("div", S, j); - } }, he.defaultStyles = { overlay: { position: "fixed", top: 0, left: 0, right: 0, bottom: 0, backgroundColor: "rgba(255, 255, 255, 0.75)" }, content: { position: "absolute", top: "40px", left: "40px", right: "40px", bottom: "40px", border: "1px solid #ccc", background: "#fff", overflow: "auto", WebkitOverflowScrolling: "touch", borderRadius: "4px", outline: "none", padding: "20px" } }, (0, ae.polyfill)(he), u.default = he; + } }, he.defaultStyles = { overlay: { position: "fixed", top: 0, left: 0, right: 0, bottom: 0, backgroundColor: "rgba(255, 255, 255, 0.75)" }, content: { position: "absolute", top: "40px", left: "40px", right: "40px", bottom: "40px", border: "1px solid #ccc", background: "#fff", overflow: "auto", WebkitOverflowScrolling: "touch", borderRadius: "4px", outline: "none", padding: "20px" } }, (0, se.polyfill)(he), u.default = he; }, 1726: (i, u, f) => { - Object.defineProperty(u, "__esModule", { value: !0 }), u.getBoundPosition = function(h, b, w) { - if (!h.props.bounds) return [b, w]; + Object.defineProperty(u, "__esModule", { value: !0 }), u.getBoundPosition = function(h, k, w) { + if (!h.props.bounds) return [k, w]; var N = h.props.bounds; - N = typeof N == "string" ? N : (function(F) { - return { left: F.left, top: F.top, right: F.right, bottom: F.bottom }; + N = typeof N == "string" ? N : (function(U) { + return { left: U.left, top: U.top, right: U.right, bottom: U.bottom }; })(N); var I = C(h); if (typeof N == "string") { - var D, L = I.ownerDocument, ae = L.defaultView; - if (!((D = N === "parent" ? I.parentNode : L.querySelector(N)) instanceof ae.HTMLElement)) throw new Error('Bounds selector "' + N + '" could not find an element.'); - var te = ae.getComputedStyle(I), R = ae.getComputedStyle(D); - N = { left: -I.offsetLeft + (0, _.int)(R.paddingLeft) + (0, _.int)(te.marginLeft), top: -I.offsetTop + (0, _.int)(R.paddingTop) + (0, _.int)(te.marginTop), right: (0, d.innerWidth)(D) - (0, d.outerWidth)(I) - I.offsetLeft + (0, _.int)(R.paddingRight) - (0, _.int)(te.marginRight), bottom: (0, d.innerHeight)(D) - (0, d.outerHeight)(I) - I.offsetTop + (0, _.int)(R.paddingBottom) - (0, _.int)(te.marginBottom) }; - } - return (0, _.isNum)(N.right) && (b = Math.min(b, N.right)), (0, _.isNum)(N.bottom) && (w = Math.min(w, N.bottom)), (0, _.isNum)(N.left) && (b = Math.max(b, N.left)), (0, _.isNum)(N.top) && (w = Math.max(w, N.top)), [b, w]; - }, u.snapToGrid = function(h, b, w) { - var N = Math.round(b / h[0]) * h[0], I = Math.round(w / h[1]) * h[1]; + var P, L = I.ownerDocument, se = L.defaultView; + if (!((P = N === "parent" ? I.parentNode : L.querySelector(N)) instanceof se.HTMLElement)) throw new Error('Bounds selector "' + N + '" could not find an element.'); + var ne = se.getComputedStyle(I), R = se.getComputedStyle(P); + N = { left: -I.offsetLeft + (0, _.int)(R.paddingLeft) + (0, _.int)(ne.marginLeft), top: -I.offsetTop + (0, _.int)(R.paddingTop) + (0, _.int)(ne.marginTop), right: (0, d.innerWidth)(P) - (0, d.outerWidth)(I) - I.offsetLeft + (0, _.int)(R.paddingRight) - (0, _.int)(ne.marginRight), bottom: (0, d.innerHeight)(P) - (0, d.outerHeight)(I) - I.offsetTop + (0, _.int)(R.paddingBottom) - (0, _.int)(ne.marginBottom) }; + } + return (0, _.isNum)(N.right) && (k = Math.min(k, N.right)), (0, _.isNum)(N.bottom) && (w = Math.min(w, N.bottom)), (0, _.isNum)(N.left) && (k = Math.max(k, N.left)), (0, _.isNum)(N.top) && (w = Math.max(w, N.top)), [k, w]; + }, u.snapToGrid = function(h, k, w) { + var N = Math.round(k / h[0]) * h[0], I = Math.round(w / h[1]) * h[1]; return [N, I]; }, u.canDragX = function(h) { return h.props.axis === "both" || h.props.axis === "x"; }, u.canDragY = function(h) { return h.props.axis === "both" || h.props.axis === "y"; - }, u.getControlPosition = function(h, b, w) { - var N = typeof b == "number" ? (0, d.getTouch)(h, b) : null; - if (typeof b == "number" && !N) return null; - var I = C(w), D = w.props.offsetParent || I.offsetParent || I.ownerDocument.body; - return (0, d.offsetXYFromParent)(N || h, D, w.props.scale); - }, u.createCoreData = function(h, b, w) { - var N = h.state, I = !(0, _.isNum)(N.lastX), D = C(h); - return I ? { node: D, deltaX: 0, deltaY: 0, lastX: b, lastY: w, x: b, y: w } : { node: D, deltaX: b - N.lastX, deltaY: w - N.lastY, lastX: N.lastX, lastY: N.lastY, x: b, y: w }; - }, u.createDraggableData = function(h, b) { + }, u.getControlPosition = function(h, k, w) { + var N = typeof k == "number" ? (0, d.getTouch)(h, k) : null; + if (typeof k == "number" && !N) return null; + var I = C(w), P = w.props.offsetParent || I.offsetParent || I.ownerDocument.body; + return (0, d.offsetXYFromParent)(N || h, P, w.props.scale); + }, u.createCoreData = function(h, k, w) { + var N = h.state, I = !(0, _.isNum)(N.lastX), P = C(h); + return I ? { node: P, deltaX: 0, deltaY: 0, lastX: k, lastY: w, x: k, y: w } : { node: P, deltaX: k - N.lastX, deltaY: w - N.lastY, lastX: N.lastX, lastY: N.lastY, x: k, y: w }; + }, u.createDraggableData = function(h, k) { var w = h.props.scale; - return { node: b.node, x: h.state.x + b.deltaX / w, y: h.state.y + b.deltaY / w, deltaX: b.deltaX / w, deltaY: b.deltaY / w, lastX: h.state.x, lastY: h.state.y }; + return { node: k.node, x: h.state.x + k.deltaX / w, y: h.state.y + k.deltaY / w, deltaX: k.deltaX / w, deltaY: k.deltaY / w, lastX: h.state.x, lastY: h.state.y }; }; var _ = f(7056), d = f(1089); function C(h) { - var b = h.findDOMNode(); - if (!b) throw new Error(": Unmounted during event!"); - return b; + var k = h.findDOMNode(); + if (!k) throw new Error(": Unmounted during event!"); + return k; } }, 2411: (i, u) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.default = function w(N) { - var I = [].slice.call(N.querySelectorAll("*"), 0).reduce(function(D, L) { - return D.concat(L.shadowRoot ? w(L.shadowRoot) : [L]); + var I = [].slice.call(N.querySelectorAll("*"), 0).reduce(function(P, L) { + return P.concat(L.shadowRoot ? w(L.shadowRoot) : [L]); }, []); - return I.filter(b); + return I.filter(k); }; var f = "none", _ = "contents", d = /^(input|select|textarea|button|object|iframe)$/; function C(w) { var N = w.offsetWidth <= 0 && w.offsetHeight <= 0; if (N && !w.innerHTML) return !0; try { - var I = window.getComputedStyle(w), D = I.getPropertyValue("display"); - return N ? D !== _ && (function(L, ae) { - return ae.getPropertyValue("overflow") !== "visible" || L.scrollWidth <= 0 && L.scrollHeight <= 0; - })(w, I) : D === f; + var I = window.getComputedStyle(w), P = I.getPropertyValue("display"); + return N ? P !== _ && (function(L, se) { + return se.getPropertyValue("overflow") !== "visible" || L.scrollWidth <= 0 && L.scrollHeight <= 0; + })(w, I) : P === f; } catch { return console.warn("Failed to inspect element style"), !1; } } function h(w, N) { var I = w.nodeName.toLowerCase(); - return (d.test(I) && !w.disabled || I === "a" && w.href || N) && (function(D) { - for (var L = D, ae = D.getRootNode && D.getRootNode(); L && L !== document.body; ) { - if (ae && L === ae && (L = ae.host.parentNode), C(L)) return !1; + return (d.test(I) && !w.disabled || I === "a" && w.href || N) && (function(P) { + for (var L = P, se = P.getRootNode && P.getRootNode(); L && L !== document.body; ) { + if (se && L === se && (L = se.host.parentNode), C(L)) return !1; L = L.parentNode; } return !0; })(w); } - function b(w) { + function k(w) { var N = w.getAttribute("tabindex"); N === null && (N = void 0); var I = isNaN(N); @@ -2489,28 +2519,28 @@ https://fb.me/react-async-component-lifecycle-hooks`); 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 (!_) throw Error(h(227)); - function b(e, t, n, r, a, p, m, E, H) { - var U = Array.prototype.slice.call(arguments, 3); + function k(e, t, n, r, a, p, m, E, H) { + var F = Array.prototype.slice.call(arguments, 3); try { - t.apply(n, U); + t.apply(n, F); } catch (ce) { this.onError(ce); } } - var w = !1, N = null, I = !1, D = null, L = { onError: function(e) { + var w = !1, N = null, I = !1, P = null, L = { onError: function(e) { w = !0, N = e; } }; - function ae(e, t, n, r, a, p, m, E, H) { - w = !1, N = null, b.apply(L, arguments); + function se(e, t, n, r, a, p, m, E, H) { + w = !1, N = null, k.apply(L, arguments); } - var te = null, R = null, F = null; + var ne = null, R = null, U = null; function q(e, t, n) { var r = e.type || "unknown-event"; - e.currentTarget = F(n), (function(a, p, m, E, H, U, ce, Re, Ue) { - if (ae.apply(this, arguments), w) { + e.currentTarget = U(n), (function(a, p, m, E, H, F, ce, Re, Fe) { + if (se.apply(this, arguments), w) { if (!w) throw Error(h(198)); var ot = N; - w = !1, N = null, I || (I = !0, D = ot); + w = !1, N = null, I || (I = !0, P = ot); } })(r, t, void 0, e), e.currentTarget = null; } @@ -2540,7 +2570,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); j[e] = t, A[e] = t.eventTypes[n].dependencies; } var he = [], S = {}, j = {}, A = {}; - function se(e) { + function ae(e) { var t, n = !1; for (t in e) if (e.hasOwnProperty(t)) { var r = e[t]; @@ -2556,7 +2586,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); if (e = R(e)) { if (typeof Ee != "function") throw Error(h(280)); var t = e.stateNode; - t && (t = te(t), Ee(e.stateNode, e.type, t)); + t && (t = ne(t), Ee(e.stateNode, e.type, t)); } } function le(e) { @@ -2589,7 +2619,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); Ke = !1, Je(); } } - var P = /^[: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]*$/, ne = Object.prototype.hasOwnProperty, we = {}, Ce = {}; + var D = /^[: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]*$/, te = Object.prototype.hasOwnProperty, we = {}, Ce = {}; function Pe(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; } @@ -2636,14 +2666,14 @@ https://fb.me/react-async-component-lifecycle-hooks`); function Pt(e, t, n, r) { var a = _e.hasOwnProperty(t) ? _e[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, m, E, H) { - if (m == null || (function(U, ce, Re, Ue) { + if (m == null || (function(F, ce, Re, Fe) { if (Re !== null && Re.type === 0) return !1; switch (typeof ce) { case "function": case "symbol": return !0; case "boolean": - return !Ue && (Re !== null ? !Re.acceptsBooleans : (U = U.toLowerCase().slice(0, 5)) !== "data-" && U !== "aria-"); + return !Fe && (Re !== null ? !Re.acceptsBooleans : (F = F.toLowerCase().slice(0, 5)) !== "data-" && F !== "aria-"); default: return !1; } @@ -2661,7 +2691,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } return !1; })(t, n, a, r) && (n = null), r || a === null ? (function(p) { - return !!ne.call(Ce, p) || !ne.call(we, p) && (P.test(p) ? Ce[p] = !0 : (we[p] = !0, !1)); + return !!te.call(Ce, p) || !te.call(we, p) && (D.test(p) ? Ce[p] = !0 : (we[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)))); } et.hasOwnProperty("ReactCurrentDispatcher") || (et.ReactCurrentDispatcher = { current: null }), et.hasOwnProperty("ReactCurrentBatchConfig") || (et.ReactCurrentBatchConfig = { suspense: null }); @@ -2943,28 +2973,28 @@ https://fb.me/react-async-component-lifecycle-hooks`); } if (a.return !== p.return) a = m, p = E; else { - for (var H = !1, U = m.child; U; ) { - if (U === a) { + for (var H = !1, F = m.child; F; ) { + if (F === a) { H = !0, a = m, p = E; break; } - if (U === p) { + if (F === p) { H = !0, p = m, a = E; break; } - U = U.sibling; + F = F.sibling; } if (!H) { - for (U = E.child; U; ) { - if (U === a) { + for (F = E.child; F; ) { + if (F === a) { H = !0, a = E, p = m; break; } - if (U === p) { + if (F === p) { H = !0, p = E, a = m; break; } - U = U.sibling; + F = F.sibling; } if (!H) throw Error(h(189)); } @@ -3007,7 +3037,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); function yn(e) { if (e !== null && (yt = kt(yt, e)), e = yt, yt = null, e) { if (jt(e, bt), yt) throw Error(h(95)); - if (I) throw e = D, I = !1, D = null, e; + if (I) throw e = P, I = !1, P = null, e; } } function ur(e) { @@ -3052,8 +3082,8 @@ https://fb.me/react-async-component-lifecycle-hooks`); var p = e.nativeEvent, m = e.eventSystemFlags; n === 0 && (m |= 64); for (var E = null, H = 0; H < he.length; H++) { - var U = he[H]; - U && (U = U.extractEvents(r, t, p, a, m)) && (E = kt(E, U)); + var F = he[H]; + F && (F = F.extractEvents(r, t, p, a, m)) && (E = kt(E, F)); } yn(E); } @@ -3213,19 +3243,19 @@ https://fb.me/react-async-component-lifecycle-hooks`); var a = mr(e, t, n, r); if (a === null) Xn(e, r); else if (-1 < ln.indexOf(e)) e = pr(a, e, t, n, r), ut.push(e); - else if (!(function(p, m, E, H, U) { + else if (!(function(p, m, E, H, F) { switch (m) { case "focus": - return wt = _n(wt, p, m, E, H, U), !0; + return wt = _n(wt, p, m, E, H, F), !0; case "dragenter": - return Tt = _n(Tt, p, m, E, H, U), !0; + return Tt = _n(Tt, p, m, E, H, F), !0; case "mouseover": - return Lt = _n(Lt, p, m, E, H, U), !0; + return Lt = _n(Lt, p, m, E, H, F), !0; case "pointerover": - var ce = U.pointerId; - return kn.set(ce, _n(kn.get(ce) || null, p, m, E, H, U)), !0; + var ce = F.pointerId; + return kn.set(ce, _n(kn.get(ce) || null, p, m, E, H, F)), !0; case "gotpointercapture": - return ce = U.pointerId, zn.set(ce, _n(zn.get(ce) || null, p, m, E, H, U)), !0; + return ce = F.pointerId, zn.set(ce, _n(zn.get(ce) || null, p, m, E, H, F)), !0; } return !1; })(a, e, t, n, r)) { @@ -3433,7 +3463,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); function ii(e, t) { var n = e.stateNode; if (!n) return null; - var r = te(n); + var r = ne(n); if (!r) return null; n = r[t]; e: switch (t) { @@ -3680,29 +3710,29 @@ https://fb.me/react-async-component-lifecycle-hooks`); } }), xa = jr.extend({ pointerId: null, width: null, height: null, pressure: null, tangentialPressure: null, tiltX: null, tiltY: null, twist: null, pointerType: null, isPrimary: null }), Lr = { mouseEnter: { registrationName: "onMouseEnter", dependencies: ["mouseout", "mouseover"] }, mouseLeave: { registrationName: "onMouseLeave", dependencies: ["mouseout", "mouseover"] }, pointerEnter: { registrationName: "onPointerEnter", dependencies: ["pointerout", "pointerover"] }, pointerLeave: { registrationName: "onPointerLeave", dependencies: ["pointerout", "pointerover"] } }, xs = { eventTypes: Lr, extractEvents: function(e, t, n, r, a) { var p = e === "mouseover" || e === "pointerover", m = e === "mouseout" || e === "pointerout"; if (p && !(32 & a) && (n.relatedTarget || n.fromElement) || !m && !p || (p = r.window === r ? r : (p = r.ownerDocument) ? p.defaultView || p.parentWindow : window, m ? (m = t, (t = (t = n.relatedTarget || n.toElement) ? no(t) : null) !== null && (t !== rt(t) || t.tag !== 5 && t.tag !== 6) && (t = null)) : m = null, m === t)) return null; - if (e === "mouseout" || e === "mouseover") var E = jr, H = Lr.mouseLeave, U = Lr.mouseEnter, ce = "mouse"; - else e !== "pointerout" && e !== "pointerover" || (E = xa, H = Lr.pointerLeave, U = Lr.pointerEnter, ce = "pointer"); - if (e = m == null ? p : Zn(m), p = t == null ? p : Zn(t), (H = E.getPooled(H, m, n, r)).type = ce + "leave", H.target = e, H.relatedTarget = p, (n = E.getPooled(U, t, n, r)).type = ce + "enter", n.target = p, n.relatedTarget = e, ce = t, (r = m) && ce) e: { - for (U = ce, m = 0, e = E = r; e; e = Jn(e)) m++; - for (e = 0, t = U; t; t = Jn(t)) e++; + if (e === "mouseout" || e === "mouseover") var E = jr, H = Lr.mouseLeave, F = Lr.mouseEnter, ce = "mouse"; + else e !== "pointerout" && e !== "pointerover" || (E = xa, H = Lr.pointerLeave, F = Lr.pointerEnter, ce = "pointer"); + if (e = m == null ? p : Zn(m), p = t == null ? p : Zn(t), (H = E.getPooled(H, m, n, r)).type = ce + "leave", H.target = e, H.relatedTarget = p, (n = E.getPooled(F, t, n, r)).type = ce + "enter", n.target = p, n.relatedTarget = e, ce = t, (r = m) && ce) e: { + for (F = ce, m = 0, e = E = r; e; e = Jn(e)) m++; + for (e = 0, t = F; t; t = Jn(t)) e++; for (; 0 < m - e; ) E = Jn(E), m--; - for (; 0 < e - m; ) U = Jn(U), e--; + for (; 0 < e - m; ) F = Jn(F), e--; for (; m--; ) { - if (E === U || E === U.alternate) break e; - E = Jn(E), U = Jn(U); + if (E === F || E === F.alternate) break e; + E = Jn(E), F = Jn(F); } E = null; } else E = null; - for (U = E, E = []; r && r !== U && ((m = r.alternate) === null || m !== U); ) E.push(r), r = Jn(r); - for (r = []; ce && ce !== U && ((m = ce.alternate) === null || m !== U); ) r.push(ce), ce = Jn(ce); + for (F = E, E = []; r && r !== F && ((m = r.alternate) === null || m !== F); ) E.push(r), r = Jn(r); + for (r = []; ce && ce !== F && ((m = ce.alternate) === null || m !== F); ) r.push(ce), ce = Jn(ce); for (ce = 0; ce < E.length; ce++) er(E[ce], "bubbled", H); for (ce = r.length; 0 < ce--; ) er(r[ce], "captured", n); return 64 & a ? [H, n] : [H]; } }, rr = typeof Object.is == "function" ? Object.is : function(e, t) { return e === t && (e !== 0 || 1 / e == 1 / t) || e != e && t != t; }, Ss = Object.prototype.hasOwnProperty; - function Fr(e, t) { + function Ur(e, t) { if (rr(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); @@ -3710,12 +3740,12 @@ https://fb.me/react-async-component-lifecycle-hooks`); for (r = 0; r < n.length; r++) if (!Ss.call(t, n[r]) || !rr(e[n[r]], t[n[r]])) return !1; return !0; } - var Cs = J && "documentMode" in document && 11 >= document.documentMode, Fi = { select: { phasedRegistrationNames: { bubbled: "onSelect", captured: "onSelectCapture" }, dependencies: "blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ") } }, so = null, Vi = null, Vr = null, Ui = !1; + var Cs = J && "documentMode" in document && 11 >= document.documentMode, Ui = { select: { phasedRegistrationNames: { bubbled: "onSelect", captured: "onSelectCapture" }, dependencies: "blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ") } }, so = null, Vi = null, Vr = null, Fi = !1; function Sa(e, t) { var n = t.window === t ? t.document : t.nodeType === 9 ? t : t.ownerDocument; - return Ui || so == null || so !== Zt(n) ? null : ("selectionStart" in (n = so) && Oi(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 }, Vr && Fr(Vr, n) ? null : (Vr = n, (e = Ot.getPooled(Fi.select, Vi, e, t)).type = "select", e.target = so, Bt(e), e)); + return Fi || so == null || so !== Zt(n) ? null : ("selectionStart" in (n = so) && Oi(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 }, Vr && Ur(Vr, n) ? null : (Vr = n, (e = Ot.getPooled(Ui.select, Vi, e, t)).type = "select", e.target = so, Bt(e), e)); } - var Ts = { eventTypes: Fi, extractEvents: function(e, t, n, r, a, p) { + var Ts = { eventTypes: Ui, extractEvents: function(e, t, n, r, a, p) { if (!(p = !(a = p || (r.window === r ? r.document : r.nodeType === 9 ? r : r.ownerDocument)))) { e: { a = Ge(a), p = A.onSelect; @@ -3736,12 +3766,12 @@ https://fb.me/react-async-component-lifecycle-hooks`); Vr = Vi = so = null; break; case "mousedown": - Ui = !0; + Fi = !0; break; case "contextmenu": case "mouseup": case "dragend": - return Ui = !1, Sa(n, r); + return Fi = !1, Sa(n, r); case "selectionchange": if (Cs) break; case "keydown": @@ -3849,7 +3879,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); return Bt(t = e.getPooled(a, t, n, r)), t; } }; if (G) throw Error(h(101)); - G = Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")), oe(), te = Ri, R = kr, F = Zn, se({ SimpleEventPlugin: c, EnterLeaveEventPlugin: xs, ChangeEventPlugin: ws, SelectEventPlugin: Ts, BeforeInputEventPlugin: si }); + G = Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")), oe(), ne = Ri, R = kr, U = Zn, ae({ SimpleEventPlugin: c, EnterLeaveEventPlugin: xs, ChangeEventPlugin: ws, SelectEventPlugin: Ts, BeforeInputEventPlugin: si }); var g = [], y = -1; function x(e) { 0 > y || (e.current = g[y], g[y] = null, y--); @@ -3857,10 +3887,10 @@ https://fb.me/react-async-component-lifecycle-hooks`); function z(e, t) { y++, g[y] = e.current, e.current = t; } - var Q = {}, X = { current: Q }, ie = { current: !1 }, ue = Q; + var K = {}, X = { current: K }, ie = { current: !1 }, ue = K; function me(e, t) { var n = e.type.contextTypes; - if (!n) return Q; + if (!n) return K; var r = e.stateNode; if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) return r.__reactInternalMemoizedMaskedChildContext; var a, p = {}; @@ -3874,7 +3904,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); x(ie), x(X); } function Te(e, t, n) { - if (X.current !== Q) throw Error(h(168)); + if (X.current !== K) throw Error(h(168)); z(X, t), z(ie, n); } function ze(e, t, n) { @@ -3884,7 +3914,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); return d({}, n, {}, r); } function st(e) { - return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || Q, ue = X.current, z(X, e), z(ie, ie.current), !0; + return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || K, ue = X.current, z(X, e), z(ie, ie.current), !0; } function He(e, t, n) { var r = e.stateNode; @@ -3895,7 +3925,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); }, Jt = null, en = null, qt = !1, cn = xt(), Nt = 1e4 > cn ? xt : function() { return xt() - cn; }; - function Ft() { + function Ut() { switch (It()) { case St: return 99; @@ -3964,20 +3994,20 @@ https://fb.me/react-async-component-lifecycle-hooks`); } } } - function Fo(e, t, n) { + function Uo(e, t, n) { return 1073741821 - (1 + ((1073741821 - e + t / 10) / (n /= 10) | 0)) * n; } function nn(e, t) { if (e && e.defaultProps) for (var n in t = d({}, t), e = e.defaultProps) t[n] === void 0 && (t[n] = e[n]); return t; } - var Ur = { current: null }, Vo = null, wr = null, co = null; + var Fr = { current: null }, Vo = null, wr = null, co = null; function ir() { co = wr = Vo = null; } - function Uo(e) { - var t = Ur.current; - x(Ur), e.type._context._currentValue = t; + function Fo(e) { + var t = Fr.current; + x(Fr), e.type._context._currentValue = t; } function xl(e, t) { for (; e !== null; ) { @@ -4033,19 +4063,19 @@ https://fb.me/react-async-component-lifecycle-hooks`); } if (p !== null) { E = p.next; - var H = a.baseState, U = 0, ce = null, Re = null, Ue = null; + var H = a.baseState, F = 0, ce = null, Re = null, Fe = null; if (E !== null) for (var ot = E; ; ) { if ((m = ot.expirationTime) < r) { - var Un = { expirationTime: ot.expirationTime, suspenseConfig: ot.suspenseConfig, tag: ot.tag, payload: ot.payload, callback: ot.callback, next: null }; - Ue === null ? (Re = Ue = Un, ce = H) : Ue = Ue.next = Un, m > U && (U = m); + var Fn = { expirationTime: ot.expirationTime, suspenseConfig: ot.suspenseConfig, tag: ot.tag, payload: ot.payload, callback: ot.callback, next: null }; + Fe === null ? (Re = Fe = Fn, ce = H) : Fe = Fe.next = Fn, m > F && (F = m); } else { - Ue !== null && (Ue = Ue.next = { expirationTime: 1073741823, suspenseConfig: ot.suspenseConfig, tag: ot.tag, payload: ot.payload, callback: ot.callback, next: null }), _c(m, ot.suspenseConfig); + Fe !== null && (Fe = Fe.next = { expirationTime: 1073741823, suspenseConfig: ot.suspenseConfig, tag: ot.tag, payload: ot.payload, callback: ot.callback, next: null }), _c(m, ot.suspenseConfig); e: { var on = e, W = ot; - switch (m = t, Un = n, W.tag) { + switch (m = t, Fn = n, W.tag) { case 1: if (typeof (on = W.payload) == "function") { - H = on.call(Un, H, m); + H = on.call(Fn, H, m); break e; } H = on; @@ -4053,7 +4083,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); case 3: on.effectTag = -4097 & on.effectTag | 64; case 0: - if ((m = typeof (on = W.payload) == "function" ? on.call(Un, H, m) : on) == null) break e; + if ((m = typeof (on = W.payload) == "function" ? on.call(Fn, H, m) : on) == null) break e; H = d({}, H, m); break e; case 2: @@ -4067,7 +4097,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); ot = p.next = m.next, m.next = E, a.baseQueue = p = m, a.shared.pending = null; } } - Ue === null ? ce = H : Ue.next = Re, a.baseState = ce, a.baseQueue = Ue, es(U), e.expirationTime = U, e.memoizedState = H; + Fe === null ? ce = H : Fe.next = Re, a.baseState = ce, a.baseQueue = Fe, es(F), e.expirationTime = F, e.memoizedState = H; } } function Cl(e, t, n) { @@ -4099,11 +4129,11 @@ https://fb.me/react-async-component-lifecycle-hooks`); (r = po(n = Ko(n, e, r), r)).tag = 2, t != null && (r.callback = t), fo(e, r), yo(e, n); } }; function Ol(e, t, n, r, a, p, m) { - return typeof (e = e.stateNode).shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, p, m) : !t.prototype || !t.prototype.isPureReactComponent || !Fr(n, r) || !Fr(a, p); + return typeof (e = e.stateNode).shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, p, m) : !t.prototype || !t.prototype.isPureReactComponent || !Ur(n, r) || !Ur(a, p); } function Nl(e, t, n) { - var r = !1, a = Q, p = t.contextType; - return typeof p == "object" && p !== null ? p = Ln(p) : (a = de(t) ? ue : X.current, p = (r = (r = t.contextTypes) != null) ? me(e, a) : Q), t = new t(n, p), e.memoizedState = t.state !== null && t.state !== void 0 ? t.state : null, t.updater = Na, e.stateNode = t, t._reactInternalFiber = e, r && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = a, e.__reactInternalMemoizedMaskedChildContext = p), t; + var r = !1, a = K, p = t.contextType; + return typeof p == "object" && p !== null ? p = Ln(p) : (a = de(t) ? ue : X.current, p = (r = (r = t.contextTypes) != null) ? me(e, a) : K), t = new t(n, p), e.memoizedState = t.state !== null && t.state !== void 0 ? t.state : null, t.updater = Na, e.stateNode = t, t._reactInternalFiber = e, r && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = a, e.__reactInternalMemoizedMaskedChildContext = p), t; } function Pl(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 && Na.enqueueReplaceState(t, t.state, null); @@ -4168,7 +4198,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); function H(W, B, re, ve) { return B !== null && B.elementType === re.type ? ((ve = a(B, re.props)).ref = qi(W, B, re), ve.return = W, ve) : ((ve = ts(re.type, re.key, re.props, null, W.mode, ve)).ref = qi(W, B, re), ve.return = W, ve); } - function U(W, B, re, ve) { + function F(W, B, re, ve) { return B === null || B.tag !== 4 || B.stateNode.containerInfo !== re.containerInfo || B.stateNode.implementation !== re.implementation ? ((B = yl(re, W.mode, ve)).return = W, B) : ((B = a(B, re.children || [])).return = W, B); } function ce(W, B, re, ve, xe) { @@ -4188,7 +4218,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } return null; } - function Ue(W, B, re, ve) { + function Fe(W, B, re, ve) { var xe = B !== null ? B.key : null; if (typeof re == "string" || typeof re == "number") return xe !== null ? null : E(W, B, "" + re, ve); if (typeof re == "object" && re !== null) { @@ -4196,7 +4226,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); case Gt: return re.key === xe ? re.type === Nn ? ce(W, B, re.props.children, ve, xe) : H(W, B, re, ve) : null; case On: - return re.key === xe ? U(W, B, re, ve) : null; + return re.key === xe ? F(W, B, re, ve) : null; } if (Pa(re) || Wn(re)) return xe !== null ? null : ce(W, B, re, ve, null); Da(W, re); @@ -4210,30 +4240,30 @@ https://fb.me/react-async-component-lifecycle-hooks`); case Gt: return W = W.get(ve.key === null ? re : ve.key) || null, ve.type === Nn ? ce(B, W, ve.props.children, xe, ve.key) : H(B, W, ve, xe); case On: - return U(B, W = W.get(ve.key === null ? re : ve.key) || null, ve, xe); + return F(B, W = W.get(ve.key === null ? re : ve.key) || null, ve, xe); } if (Pa(ve) || Wn(ve)) return ce(B, W = W.get(re) || null, ve, xe, null); Da(B, ve); } return null; } - function Un(W, B, re, ve) { - for (var xe = null, Ie = null, Fe = B, at = B = 0, Mt = null; Fe !== null && at < re.length; at++) { - Fe.index > at ? (Mt = Fe, Fe = null) : Mt = Fe.sibling; - var Xe = Ue(W, Fe, re[at], ve); + function Fn(W, B, re, ve) { + for (var xe = null, Ie = null, Ue = B, at = B = 0, Mt = null; Ue !== null && at < re.length; at++) { + Ue.index > at ? (Mt = Ue, Ue = null) : Mt = Ue.sibling; + var Xe = Fe(W, Ue, re[at], ve); if (Xe === null) { - Fe === null && (Fe = Mt); + Ue === null && (Ue = Mt); break; } - e && Fe && Xe.alternate === null && t(W, Fe), B = p(Xe, B, at), Ie === null ? xe = Xe : Ie.sibling = Xe, Ie = Xe, Fe = Mt; + e && Ue && Xe.alternate === null && t(W, Ue), B = p(Xe, B, at), Ie === null ? xe = Xe : Ie.sibling = Xe, Ie = Xe, Ue = Mt; } - if (at === re.length) return n(W, Fe), xe; - if (Fe === null) { - for (; at < re.length; at++) (Fe = Re(W, re[at], ve)) !== null && (B = p(Fe, B, at), Ie === null ? xe = Fe : Ie.sibling = Fe, Ie = Fe); + if (at === re.length) return n(W, Ue), xe; + if (Ue === null) { + for (; at < re.length; at++) (Ue = Re(W, re[at], ve)) !== null && (B = p(Ue, B, at), Ie === null ? xe = Ue : Ie.sibling = Ue, Ie = Ue); return xe; } - for (Fe = r(W, Fe); at < re.length; at++) (Mt = ot(Fe, W, at, re[at], ve)) !== null && (e && Mt.alternate !== null && Fe.delete(Mt.key === null ? at : Mt.key), B = p(Mt, B, at), Ie === null ? xe = Mt : Ie.sibling = Mt, Ie = Mt); - return e && Fe.forEach(function(vo) { + for (Ue = r(W, Ue); at < re.length; at++) (Mt = ot(Ue, W, at, re[at], ve)) !== null && (e && Mt.alternate !== null && Ue.delete(Mt.key === null ? at : Mt.key), B = p(Mt, B, at), Ie === null ? xe = Mt : Ie.sibling = Mt, Ie = Mt); + return e && Ue.forEach(function(vo) { return t(W, vo); }), xe; } @@ -4241,22 +4271,22 @@ https://fb.me/react-async-component-lifecycle-hooks`); var xe = Wn(re); if (typeof xe != "function") throw Error(h(150)); if ((re = xe.call(re)) == null) throw Error(h(151)); - for (var Ie = xe = null, Fe = B, at = B = 0, Mt = null, Xe = re.next(); Fe !== null && !Xe.done; at++, Xe = re.next()) { - Fe.index > at ? (Mt = Fe, Fe = null) : Mt = Fe.sibling; - var vo = Ue(W, Fe, Xe.value, ve); + for (var Ie = xe = null, Ue = B, at = B = 0, Mt = null, Xe = re.next(); Ue !== null && !Xe.done; at++, Xe = re.next()) { + Ue.index > at ? (Mt = Ue, Ue = null) : Mt = Ue.sibling; + var vo = Fe(W, Ue, Xe.value, ve); if (vo === null) { - Fe === null && (Fe = Mt); + Ue === null && (Ue = Mt); break; } - e && Fe && vo.alternate === null && t(W, Fe), B = p(vo, B, at), Ie === null ? xe = vo : Ie.sibling = vo, Ie = vo, Fe = Mt; + e && Ue && vo.alternate === null && t(W, Ue), B = p(vo, B, at), Ie === null ? xe = vo : Ie.sibling = vo, Ie = vo, Ue = Mt; } - if (Xe.done) return n(W, Fe), xe; - if (Fe === null) { + if (Xe.done) return n(W, Ue), xe; + if (Ue === null) { for (; !Xe.done; at++, Xe = re.next()) (Xe = Re(W, Xe.value, ve)) !== null && (B = p(Xe, B, at), Ie === null ? xe = Xe : Ie.sibling = Xe, Ie = Xe); return xe; } - for (Fe = r(W, Fe); !Xe.done; at++, Xe = re.next()) (Xe = ot(Fe, W, at, Xe.value, ve)) !== null && (e && Xe.alternate !== null && Fe.delete(Xe.key === null ? at : Xe.key), B = p(Xe, B, at), Ie === null ? xe = Xe : Ie.sibling = Xe, Ie = Xe); - return e && Fe.forEach(function(au) { + for (Ue = r(W, Ue); !Xe.done; at++, Xe = re.next()) (Xe = ot(Ue, W, at, Xe.value, ve)) !== null && (e && Xe.alternate !== null && Ue.delete(Xe.key === null ? at : Xe.key), B = p(Xe, B, at), Ie === null ? xe = Xe : Ie.sibling = Xe, Ie = Xe); + return e && Ue.forEach(function(au) { return t(W, au); }), xe; } @@ -4304,7 +4334,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); return m(W); } if (typeof re == "string" || typeof re == "number") return re = "" + re, B !== null && B.tag === 6 ? (n(W, B.sibling), (B = a(B, re)).return = W, W = B) : (n(W, B), (B = gl(re, W.mode, ve)).return = W, W = B), m(W); - if (Pa(re)) return Un(W, B, re, ve); + if (Pa(re)) return Fn(W, B, re, ve); if (Wn(re)) return on(W, B, re, ve); if (Ie && Da(W, re), re === void 0 && !xe) switch (W.tag) { case 1: @@ -4362,10 +4392,10 @@ https://fb.me/react-async-component-lifecycle-hooks`); } return null; } - function Fs(e, t) { + function Us(e, t) { return { responder: e, props: t }; } - var Ra = et.ReactCurrentDispatcher, Fn = et.ReactCurrentBatchConfig, ho = 0, Rt = null, rn = null, Xt = null, Ma = !1; + var Ra = et.ReactCurrentDispatcher, Un = et.ReactCurrentBatchConfig, ho = 0, Rt = null, rn = null, Xt = null, Ma = !1; function Sn() { throw Error(h(321)); } @@ -4374,15 +4404,15 @@ https://fb.me/react-async-component-lifecycle-hooks`); for (var n = 0; n < t.length && n < e.length; n++) if (!rr(e[n], t[n])) return !1; return !0; } - function Us(e, t, n, r, a, p) { - if (ho = p, Rt = t, t.memoizedState = null, t.updateQueue = null, t.expirationTime = 0, Ra.current = e === null || e.memoizedState === null ? Fc : Vc, e = n(r, a), t.expirationTime === ho) { + function Fs(e, t, n, r, a, p) { + if (ho = p, Rt = t, t.memoizedState = null, t.updateQueue = null, t.expirationTime = 0, Ra.current = e === null || e.memoizedState === null ? Uc : Vc, e = n(r, a), t.expirationTime === ho) { p = 0; do { if (t.expirationTime = 0, !(25 > p)) throw Error(h(301)); - p += 1, Xt = rn = null, t.updateQueue = null, Ra.current = Uc, e = n(r, a); + p += 1, Xt = rn = null, t.updateQueue = null, Ra.current = Fc, e = n(r, a); } while (t.expirationTime === ho); } - if (Ra.current = Fa, t = rn !== null && rn.next !== null, ho = 0, Xt = rn = Rt = null, Ma = !1, t) throw Error(h(300)); + if (Ra.current = Ua, t = rn !== null && rn.next !== null, ho = 0, Xt = rn = Rt = null, Ma = !1, t) throw Error(h(300)); return e; } function hi() { @@ -4421,11 +4451,11 @@ https://fb.me/react-async-component-lifecycle-hooks`); a = a.next, r = r.baseState; var E = m = p = null, H = a; do { - var U = H.expirationTime; - if (U < ho) { + var F = H.expirationTime; + if (F < ho) { var ce = { expirationTime: H.expirationTime, suspenseConfig: H.suspenseConfig, action: H.action, eagerReducer: H.eagerReducer, eagerState: H.eagerState, next: null }; - E === null ? (m = E = ce, p = r) : E = E.next = ce, U > Rt.expirationTime && (Rt.expirationTime = U, es(U)); - } else E !== null && (E = E.next = { expirationTime: 1073741823, suspenseConfig: H.suspenseConfig, action: H.action, eagerReducer: H.eagerReducer, eagerState: H.eagerState, next: null }), _c(U, H.suspenseConfig), r = H.eagerReducer === e ? H.eagerState : e(r, H.action); + E === null ? (m = E = ce, p = r) : E = E.next = ce, F > Rt.expirationTime && (Rt.expirationTime = F, es(F)); + } else E !== null && (E = E.next = { expirationTime: 1073741823, suspenseConfig: H.suspenseConfig, action: H.action, eagerReducer: H.eagerReducer, eagerState: H.eagerState, next: null }), _c(F, H.suspenseConfig), r = H.eagerReducer === e ? H.eagerState : e(r, H.action); H = H.next; } while (H !== null && H !== a); E === null ? p = r : E.next = m, rr(r, t.memoizedState) || (Er = !0), t.memoizedState = r, t.baseState = p, t.baseQueue = E, n.lastRenderedState = r; @@ -4501,23 +4531,23 @@ https://fb.me/react-async-component-lifecycle-hooks`); var r = n.memoizedState; return r !== null && t !== null && Vs(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e); } - function Fl(e, t) { + function Ul(e, t) { var n = mi(); t = t === void 0 ? null : t; var r = n.memoizedState; return r !== null && t !== null && Vs(t, r[1]) ? r[0] : (e = e(), n.memoizedState = [e, t], e); } function Ks(e, t, n) { - var r = Ft(); + var r = Ut(); or(98 > r ? 98 : r, function() { e(!0); }), or(97 < r ? 97 : r, function() { - var a = Fn.suspense; - Fn.suspense = t === void 0 ? null : t; + var a = Un.suspense; + Un.suspense = t === void 0 ? null : t; try { e(!1), n(); } finally { - Fn.suspense = a; + Un.suspense = a; } }); } @@ -4535,7 +4565,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); yo(e, r); } } - var Fa = { readContext: Ln, useCallback: Sn, useContext: Sn, useEffect: Sn, useImperativeHandle: Sn, useLayoutEffect: Sn, useMemo: Sn, useReducer: Sn, useRef: Sn, useState: Sn, useDebugValue: Sn, useResponder: Sn, useDeferredValue: Sn, useTransition: Sn }, Fc = { readContext: Ln, useCallback: Ll, useContext: Ln, useEffect: Ml, useImperativeHandle: function(e, t, n) { + var Ua = { readContext: Ln, useCallback: Sn, useContext: Sn, useEffect: Sn, useImperativeHandle: Sn, useLayoutEffect: Sn, useMemo: Sn, useReducer: Sn, useRef: Sn, useState: Sn, useDebugValue: Sn, useResponder: Sn, useDeferredValue: Sn, useTransition: Sn }, Uc = { readContext: Ln, useCallback: Ll, useContext: Ln, useEffect: Ml, useImperativeHandle: function(e, t, n) { return n = n != null ? n.concat([e]) : null, Hs(4, 2, Al.bind(null, t, e), n); }, useLayoutEffect: function(e, t) { return Hs(4, 2, e, t); @@ -4547,54 +4577,54 @@ https://fb.me/react-async-component-lifecycle-hooks`); 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 = Vl.bind(null, Rt, e), [r.memoizedState, e]; }, useRef: function(e) { return e = { current: e }, hi().memoizedState = e; - }, useState: $s, useDebugValue: qs, useResponder: Fs, useDeferredValue: function(e, t) { + }, useState: $s, useDebugValue: qs, useResponder: Us, useDeferredValue: function(e, t) { var n = $s(e), r = n[0], a = n[1]; return Ml(function() { - var p = Fn.suspense; - Fn.suspense = t === void 0 ? null : t; + var p = Un.suspense; + Un.suspense = t === void 0 ? null : t; try { a(e); } finally { - Fn.suspense = p; + Un.suspense = p; } }, [e, t]), r; }, useTransition: function(e) { var t = $s(!1), n = t[0]; return t = t[1], [Ll(Ks.bind(null, t, e), [t, e]), n]; - } }, Vc = { readContext: Ln, useCallback: La, useContext: Ln, useEffect: ja, useImperativeHandle: jl, useLayoutEffect: zl, useMemo: Fl, useReducer: za, useRef: Rl, useState: function() { + } }, Vc = { readContext: Ln, useCallback: La, useContext: Ln, useEffect: ja, useImperativeHandle: jl, useLayoutEffect: zl, useMemo: Ul, useReducer: za, useRef: Rl, useState: function() { return za(Bo); - }, useDebugValue: qs, useResponder: Fs, useDeferredValue: function(e, t) { + }, useDebugValue: qs, useResponder: Us, useDeferredValue: function(e, t) { var n = za(Bo), r = n[0], a = n[1]; return ja(function() { - var p = Fn.suspense; - Fn.suspense = t === void 0 ? null : t; + var p = Un.suspense; + Un.suspense = t === void 0 ? null : t; try { a(e); } finally { - Fn.suspense = p; + Un.suspense = p; } }, [e, t]), r; }, useTransition: function(e) { var t = za(Bo), n = t[0]; return t = t[1], [La(Ks.bind(null, t, e), [t, e]), n]; - } }, Uc = { readContext: Ln, useCallback: La, useContext: Ln, useEffect: ja, useImperativeHandle: jl, useLayoutEffect: zl, useMemo: Fl, useReducer: Aa, useRef: Rl, useState: function() { + } }, Fc = { readContext: Ln, useCallback: La, useContext: Ln, useEffect: ja, useImperativeHandle: jl, useLayoutEffect: zl, useMemo: Ul, useReducer: Aa, useRef: Rl, useState: function() { return Aa(Bo); - }, useDebugValue: qs, useResponder: Fs, useDeferredValue: function(e, t) { + }, useDebugValue: qs, useResponder: Us, useDeferredValue: function(e, t) { var n = Aa(Bo), r = n[0], a = n[1]; return ja(function() { - var p = Fn.suspense; - Fn.suspense = t === void 0 ? null : t; + var p = Un.suspense; + Un.suspense = t === void 0 ? null : t; try { a(e); } finally { - Fn.suspense = p; + Un.suspense = p; } }, [e, t]), r; }, useTransition: function(e) { var t = Aa(Bo), n = t[0]; return t = t[1], [La(Ks.bind(null, t, e), [t, e]), n]; } }, $r = null, mo = null, Ho = !1; - function Ul(e, t) { + function Fl(e, t) { var n = Cr(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; } @@ -4616,7 +4646,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); var n = t; if (!$l(e, t)) { if (!(t = Ar(n.nextSibling)) || !$l(e, t)) return e.effectTag = -1025 & e.effectTag | 2, Ho = !1, void ($r = e); - Ul($r, n); + Fl($r, n); } $r = e, mo = Ar(t.firstChild); } else e.effectTag = -1025 & e.effectTag | 2, Ho = !1, $r = e; @@ -4630,7 +4660,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); if (e !== $r) return !1; if (!Ho) return Bl(e), Ho = !0, !1; var t = e.type; - if (e.tag !== 5 || t !== "head" && t !== "body" && !Pi(t, e.memoizedProps)) for (t = mo; t; ) Ul(e, t), t = Ar(t.nextSibling); + if (e.tag !== 5 || t !== "head" && t !== "body" && !Pi(t, e.memoizedProps)) for (t = mo; t; ) Fl(e, t), t = Ar(t.nextSibling); if (Bl(e), e.tag === 13) { if (!(e = (e = e.memoizedState) !== null ? e.dehydrated : null)) throw Error(h(317)); e: { @@ -4662,17 +4692,17 @@ https://fb.me/react-async-component-lifecycle-hooks`); function Hl(e, t, n, r, a) { n = n.render; var p = t.ref; - return di(t, a), r = Us(e, t, n, r, p, a), e === null || Er ? (t.effectTag |= 1, Vn(e, t, r, a), t.child) : (t.updateQueue = e.updateQueue, t.effectTag &= -517, e.expirationTime <= a && (e.expirationTime = 0), Br(e, t, a)); + return di(t, a), r = Fs(e, t, n, r, p, a), e === null || Er ? (t.effectTag |= 1, Vn(e, t, r, a), t.child) : (t.updateQueue = e.updateQueue, t.effectTag &= -517, e.expirationTime <= a && (e.expirationTime = 0), Br(e, t, a)); } function Wl(e, t, n, r, a, p) { if (e === null) { var m = n.type; return typeof m != "function" || ml(m) || m.defaultProps !== void 0 || n.compare !== null || n.defaultProps !== void 0 ? ((e = ts(n.type, null, r, null, t.mode, p)).ref = t.ref, e.return = t, t.child = e) : (t.tag = 15, t.type = m, ql(e, t, m, r, a, p)); } - return m = e.child, a < p && (a = m.memoizedProps, (n = (n = n.compare) !== null ? n : Fr)(a, r) && e.ref === t.ref) ? Br(e, t, p) : (t.effectTag |= 1, (e = Go(m, r)).ref = t.ref, e.return = t, t.child = e); + return m = e.child, a < p && (a = m.memoizedProps, (n = (n = n.compare) !== null ? n : Ur)(a, r) && e.ref === t.ref) ? Br(e, t, p) : (t.effectTag |= 1, (e = Go(m, r)).ref = t.ref, e.return = t, t.child = e); } function ql(e, t, n, r, a, p) { - return e !== null && Fr(e.memoizedProps, r) && e.ref === t.ref && (Er = !1, a < p) ? (t.expirationTime = e.expirationTime, Br(e, t, p)) : Xs(e, t, n, r, p); + return e !== null && Ur(e.memoizedProps, r) && e.ref === t.ref && (Er = !1, a < p) ? (t.expirationTime = e.expirationTime, Br(e, t, p)) : Xs(e, t, n, r, p); } function Kl(e, t) { var n = t.ref; @@ -4680,7 +4710,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } function Xs(e, t, n, r, a) { var p = de(n) ? ue : X.current; - return p = me(t, p), di(t, a), n = Us(e, t, n, r, p, a), e === null || Er ? (t.effectTag |= 1, Vn(e, t, n, a), t.child) : (t.updateQueue = e.updateQueue, t.effectTag &= -517, e.expirationTime <= a && (e.expirationTime = 0), Br(e, t, a)); + return p = me(t, p), di(t, a), n = Fs(e, t, n, r, p, a), e === null || Er ? (t.effectTag |= 1, Vn(e, t, n, a), t.child) : (t.updateQueue = e.updateQueue, t.effectTag &= -517, e.expirationTime <= a && (e.expirationTime = 0), Br(e, t, a)); } function Ql(e, t, n, r, a) { if (de(n)) { @@ -4691,13 +4721,13 @@ https://fb.me/react-async-component-lifecycle-hooks`); else if (e === null) { var m = t.stateNode, E = t.memoizedProps; m.props = E; - var H = m.context, U = n.contextType; - typeof U == "object" && U !== null ? U = Ln(U) : U = me(t, U = de(n) ? ue : X.current); + var H = m.context, F = n.contextType; + typeof F == "object" && F !== null ? F = Ln(F) : F = me(t, F = de(n) ? ue : X.current); var ce = n.getDerivedStateFromProps, Re = typeof ce == "function" || typeof m.getSnapshotBeforeUpdate == "function"; - Re || typeof m.UNSAFE_componentWillReceiveProps != "function" && typeof m.componentWillReceiveProps != "function" || (E !== r || H !== U) && Pl(t, m, r, U), uo = !1; - var Ue = t.memoizedState; - m.state = Ue, Hi(t, r, m, a), H = t.memoizedState, E !== r || Ue !== H || ie.current || uo ? (typeof ce == "function" && (Oa(t, n, ce, r), H = t.memoizedState), (E = uo || Ol(t, n, E, r, Ue, H, U)) ? (Re || typeof m.UNSAFE_componentWillMount != "function" && typeof m.componentWillMount != "function" || (typeof m.componentWillMount == "function" && m.componentWillMount(), typeof m.UNSAFE_componentWillMount == "function" && m.UNSAFE_componentWillMount()), typeof m.componentDidMount == "function" && (t.effectTag |= 4)) : (typeof m.componentDidMount == "function" && (t.effectTag |= 4), t.memoizedProps = r, t.memoizedState = H), m.props = r, m.state = H, m.context = U, r = E) : (typeof m.componentDidMount == "function" && (t.effectTag |= 4), r = !1); - } else m = t.stateNode, Ms(e, t), E = t.memoizedProps, m.props = t.type === t.elementType ? E : nn(t.type, E), H = m.context, typeof (U = n.contextType) == "object" && U !== null ? U = Ln(U) : U = me(t, U = de(n) ? ue : X.current), (Re = typeof (ce = n.getDerivedStateFromProps) == "function" || typeof m.getSnapshotBeforeUpdate == "function") || typeof m.UNSAFE_componentWillReceiveProps != "function" && typeof m.componentWillReceiveProps != "function" || (E !== r || H !== U) && Pl(t, m, r, U), uo = !1, H = t.memoizedState, m.state = H, Hi(t, r, m, a), Ue = t.memoizedState, E !== r || H !== Ue || ie.current || uo ? (typeof ce == "function" && (Oa(t, n, ce, r), Ue = t.memoizedState), (ce = uo || Ol(t, n, E, r, H, Ue, U)) ? (Re || typeof m.UNSAFE_componentWillUpdate != "function" && typeof m.componentWillUpdate != "function" || (typeof m.componentWillUpdate == "function" && m.componentWillUpdate(r, Ue, U), typeof m.UNSAFE_componentWillUpdate == "function" && m.UNSAFE_componentWillUpdate(r, Ue, U)), typeof m.componentDidUpdate == "function" && (t.effectTag |= 4), typeof m.getSnapshotBeforeUpdate == "function" && (t.effectTag |= 256)) : (typeof m.componentDidUpdate != "function" || E === e.memoizedProps && H === e.memoizedState || (t.effectTag |= 4), typeof m.getSnapshotBeforeUpdate != "function" || E === e.memoizedProps && H === e.memoizedState || (t.effectTag |= 256), t.memoizedProps = r, t.memoizedState = Ue), m.props = r, m.state = Ue, m.context = U, r = ce) : (typeof m.componentDidUpdate != "function" || E === e.memoizedProps && H === e.memoizedState || (t.effectTag |= 4), typeof m.getSnapshotBeforeUpdate != "function" || E === e.memoizedProps && H === e.memoizedState || (t.effectTag |= 256), r = !1); + Re || typeof m.UNSAFE_componentWillReceiveProps != "function" && typeof m.componentWillReceiveProps != "function" || (E !== r || H !== F) && Pl(t, m, r, F), uo = !1; + var Fe = t.memoizedState; + m.state = Fe, Hi(t, r, m, a), H = t.memoizedState, E !== r || Fe !== H || ie.current || uo ? (typeof ce == "function" && (Oa(t, n, ce, r), H = t.memoizedState), (E = uo || Ol(t, n, E, r, Fe, H, F)) ? (Re || typeof m.UNSAFE_componentWillMount != "function" && typeof m.componentWillMount != "function" || (typeof m.componentWillMount == "function" && m.componentWillMount(), typeof m.UNSAFE_componentWillMount == "function" && m.UNSAFE_componentWillMount()), typeof m.componentDidMount == "function" && (t.effectTag |= 4)) : (typeof m.componentDidMount == "function" && (t.effectTag |= 4), t.memoizedProps = r, t.memoizedState = H), m.props = r, m.state = H, m.context = F, r = E) : (typeof m.componentDidMount == "function" && (t.effectTag |= 4), r = !1); + } else m = t.stateNode, Ms(e, t), E = t.memoizedProps, m.props = t.type === t.elementType ? E : nn(t.type, E), H = m.context, typeof (F = n.contextType) == "object" && F !== null ? F = Ln(F) : F = me(t, F = de(n) ? ue : X.current), (Re = typeof (ce = n.getDerivedStateFromProps) == "function" || typeof m.getSnapshotBeforeUpdate == "function") || typeof m.UNSAFE_componentWillReceiveProps != "function" && typeof m.componentWillReceiveProps != "function" || (E !== r || H !== F) && Pl(t, m, r, F), uo = !1, H = t.memoizedState, m.state = H, Hi(t, r, m, a), Fe = t.memoizedState, E !== r || H !== Fe || ie.current || uo ? (typeof ce == "function" && (Oa(t, n, ce, r), Fe = t.memoizedState), (ce = uo || Ol(t, n, E, r, H, Fe, F)) ? (Re || typeof m.UNSAFE_componentWillUpdate != "function" && typeof m.componentWillUpdate != "function" || (typeof m.componentWillUpdate == "function" && m.componentWillUpdate(r, Fe, F), typeof m.UNSAFE_componentWillUpdate == "function" && m.UNSAFE_componentWillUpdate(r, Fe, F)), typeof m.componentDidUpdate == "function" && (t.effectTag |= 4), typeof m.getSnapshotBeforeUpdate == "function" && (t.effectTag |= 256)) : (typeof m.componentDidUpdate != "function" || E === e.memoizedProps && H === e.memoizedState || (t.effectTag |= 4), typeof m.getSnapshotBeforeUpdate != "function" || E === e.memoizedProps && H === e.memoizedState || (t.effectTag |= 256), t.memoizedProps = r, t.memoizedState = Fe), m.props = r, m.state = Fe, m.context = F, r = ce) : (typeof m.componentDidUpdate != "function" || E === e.memoizedProps && H === e.memoizedState || (t.effectTag |= 4), typeof m.getSnapshotBeforeUpdate != "function" || E === e.memoizedProps && H === e.memoizedState || (t.effectTag |= 256), r = !1); return Gs(e, t, n, r, p, a); } function Gs(e, t, n, r, a, p) { @@ -4799,7 +4829,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } return t.child; } - function Ua(e, t) { + function Fa(e, t) { switch (e.tailMode) { case "hidden": t = e.tail; @@ -4938,8 +4968,8 @@ https://fb.me/react-async-component-lifecycle-hooks`); xi(a, E); var H = E; for (p in H) if (H.hasOwnProperty(p)) { - var U = H[p]; - p === "style" ? ti(e, U) : p === "dangerouslySetInnerHTML" ? (U = U ? U.__html : void 0) != null && Dr(e, U) : p === "children" ? typeof U == "string" ? (a !== "textarea" || U !== "") && Kn(e, U) : typeof U == "number" && Kn(e, "" + U) : p !== "suppressContentEditableWarning" && p !== "suppressHydrationWarning" && p !== "autoFocus" && (j.hasOwnProperty(p) ? U != null && Gn(n, p) : U != null && Pt(e, p, U, m)); + var F = H[p]; + p === "style" ? ti(e, F) : p === "dangerouslySetInnerHTML" ? (F = F ? F.__html : void 0) != null && Dr(e, F) : p === "children" ? typeof F == "string" ? (a !== "textarea" || F !== "") && Kn(e, F) : typeof F == "number" && Kn(e, "" + F) : p !== "suppressContentEditableWarning" && p !== "suppressHydrationWarning" && p !== "autoFocus" && (j.hasOwnProperty(p) ? F != null && Gn(n, p) : F != null && Pt(e, p, F, m)); } switch (a) { case "input": @@ -4970,26 +5000,26 @@ https://fb.me/react-async-component-lifecycle-hooks`); } return null; case 13: - return x(Ct), r = t.memoizedState, 64 & t.effectTag ? (t.expirationTime = n, t) : (n = r !== null, r = !1, e === null ? t.memoizedProps.fallback !== void 0 && Va(t) : (r = (a = e.memoizedState) !== null, n || a === null || (a = e.child.sibling) !== null && ((p = t.firstEffect) !== null ? (t.firstEffect = a, a.nextEffect = p) : (t.firstEffect = t.lastEffect = a, a.nextEffect = null), a.effectTag = 8)), n && !r && 2 & t.mode && (e === null && t.memoizedProps.unstable_avoidThisFallback !== !0 || 1 & Ct.current ? Ut === Wo && (Ut = Ha) : (Ut !== Wo && Ut !== Ha || (Ut = Wa), Gi !== 0 && Cn !== null && (Zo(Cn, dn), Tc(Cn, Gi)))), (n || r) && (t.effectTag |= 4), null); + return x(Ct), r = t.memoizedState, 64 & t.effectTag ? (t.expirationTime = n, t) : (n = r !== null, r = !1, e === null ? t.memoizedProps.fallback !== void 0 && Va(t) : (r = (a = e.memoizedState) !== null, n || a === null || (a = e.child.sibling) !== null && ((p = t.firstEffect) !== null ? (t.firstEffect = a, a.nextEffect = p) : (t.firstEffect = t.lastEffect = a, a.nextEffect = null), a.effectTag = 8)), n && !r && 2 & t.mode && (e === null && t.memoizedProps.unstable_avoidThisFallback !== !0 || 1 & Ct.current ? Ft === Wo && (Ft = Ha) : (Ft !== Wo && Ft !== Ha || (Ft = Wa), Gi !== 0 && Cn !== null && (Zo(Cn, dn), Tc(Cn, Gi)))), (n || r) && (t.effectTag |= 4), null); case 4: return fi(), Zs(t), null; case 10: - return Uo(t), null; + return Fo(t), null; case 19: if (x(Ct), (r = t.memoizedState) === null) return null; if (a = !!(64 & t.effectTag), (p = r.rendering) === null) { - if (a) Ua(r, !1); - else if (Ut !== Wo || e !== null && 64 & e.effectTag) for (p = t.child; p !== null; ) { + if (a) Fa(r, !1); + else if (Ft !== Wo || e !== null && 64 & e.effectTag) for (p = t.child; p !== null; ) { if ((e = Ia(p)) !== null) { - for (t.effectTag |= 64, Ua(r, !1), (a = e.updateQueue) !== null && (t.updateQueue = a, t.effectTag |= 4), r.lastEffect === null && (t.firstEffect = null), t.lastEffect = r.lastEffect, r = t.child; r !== null; ) p = n, (a = r).effectTag &= 2, a.nextEffect = null, a.firstEffect = null, a.lastEffect = null, (e = a.alternate) === null ? (a.childExpirationTime = 0, a.expirationTime = p, a.child = null, a.memoizedProps = null, a.memoizedState = null, a.updateQueue = null, a.dependencies = null) : (a.childExpirationTime = e.childExpirationTime, a.expirationTime = e.expirationTime, a.child = e.child, a.memoizedProps = e.memoizedProps, a.memoizedState = e.memoizedState, a.updateQueue = e.updateQueue, p = e.dependencies, a.dependencies = p === null ? null : { expirationTime: p.expirationTime, firstContext: p.firstContext, responders: p.responders }), r = r.sibling; + for (t.effectTag |= 64, Fa(r, !1), (a = e.updateQueue) !== null && (t.updateQueue = a, t.effectTag |= 4), r.lastEffect === null && (t.firstEffect = null), t.lastEffect = r.lastEffect, r = t.child; r !== null; ) p = n, (a = r).effectTag &= 2, a.nextEffect = null, a.firstEffect = null, a.lastEffect = null, (e = a.alternate) === null ? (a.childExpirationTime = 0, a.expirationTime = p, a.child = null, a.memoizedProps = null, a.memoizedState = null, a.updateQueue = null, a.dependencies = null) : (a.childExpirationTime = e.childExpirationTime, a.expirationTime = e.expirationTime, a.child = e.child, a.memoizedProps = e.memoizedProps, a.memoizedState = e.memoizedState, a.updateQueue = e.updateQueue, p = e.dependencies, a.dependencies = p === null ? null : { expirationTime: p.expirationTime, firstContext: p.firstContext, responders: p.responders }), r = r.sibling; return z(Ct, 1 & Ct.current | 2), t.child; } p = p.sibling; } } else { if (!a) if ((e = Ia(p)) !== null) { - if (t.effectTag |= 64, a = !0, (n = e.updateQueue) !== null && (t.updateQueue = n, t.effectTag |= 4), Ua(r, !0), r.tail === null && r.tailMode === "hidden" && !p.alternate) return (t = t.lastEffect = r.lastEffect) !== null && (t.nextEffect = null), null; - } else 2 * Nt() - r.renderingStartTime > r.tailExpiration && 1 < n && (t.effectTag |= 64, a = !0, Ua(r, !1), t.expirationTime = t.childExpirationTime = n - 1); + if (t.effectTag |= 64, a = !0, (n = e.updateQueue) !== null && (t.updateQueue = n, t.effectTag |= 4), Fa(r, !0), r.tail === null && r.tailMode === "hidden" && !p.alternate) return (t = t.lastEffect = r.lastEffect) !== null && (t.nextEffect = null), null; + } else 2 * Nt() - r.renderingStartTime > r.tailExpiration && 1 < n && (t.effectTag |= 64, a = !0, Fa(r, !1), t.expirationTime = t.childExpirationTime = n - 1); r.isBackwards ? (p.sibling = t.child, t.child = p) : ((n = r.last) !== null ? n.sibling = p : t.child = p, r.last = p); } return r.tail !== null ? (r.tailExpiration === 0 && (r.tailExpiration = Nt() + 500), n = r.tail, r.rendering = n, r.tail = n.sibling, r.lastEffect = t.lastEffect, r.renderingStartTime = Nt(), n.sibling = null, t = Ct.current, z(Ct, a ? 1 & t | 2 : 1 & t), n) : null; @@ -5014,7 +5044,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); case 4: return fi(), null; case 10: - return Uo(e), null; + return Fo(e), null; default: return null; } @@ -5060,12 +5090,12 @@ https://fb.me/react-async-component-lifecycle-hooks`); for (m in xi(n, r), n = null, p) if (!r.hasOwnProperty(m) && p.hasOwnProperty(m) && p[m] != null) if (m === "style") for (E in H = p[m]) H.hasOwnProperty(E) && (n || (n = {}), n[E] = ""); else m !== "dangerouslySetInnerHTML" && m !== "children" && m !== "suppressContentEditableWarning" && m !== "suppressHydrationWarning" && m !== "autoFocus" && (j.hasOwnProperty(m) ? e || (e = []) : (e = e || []).push(m, null)); for (m in r) { - var U = r[m]; - if (H = p != null ? p[m] : void 0, r.hasOwnProperty(m) && U !== H && (U != null || H != null)) if (m === "style") if (H) { - for (E in H) !H.hasOwnProperty(E) || U && U.hasOwnProperty(E) || (n || (n = {}), n[E] = ""); - for (E in U) U.hasOwnProperty(E) && H[E] !== U[E] && (n || (n = {}), n[E] = U[E]); - } else n || (e || (e = []), e.push(m, n)), n = U; - else m === "dangerouslySetInnerHTML" ? (U = U ? U.__html : void 0, H = H ? H.__html : void 0, U != null && H !== U && (e = e || []).push(m, U)) : m === "children" ? H === U || typeof U != "string" && typeof U != "number" || (e = e || []).push(m, "" + U) : m !== "suppressContentEditableWarning" && m !== "suppressHydrationWarning" && (j.hasOwnProperty(m) ? (U != null && Gn(a, m), e || H === U || (e = [])) : (e = e || []).push(m, U)); + var F = r[m]; + if (H = p != null ? p[m] : void 0, r.hasOwnProperty(m) && F !== H && (F != null || H != null)) if (m === "style") if (H) { + for (E in H) !H.hasOwnProperty(E) || F && F.hasOwnProperty(E) || (n || (n = {}), n[E] = ""); + for (E in F) F.hasOwnProperty(E) && H[E] !== F[E] && (n || (n = {}), n[E] = F[E]); + } else n || (e || (e = []), e.push(m, n)), n = F; + else m === "dangerouslySetInnerHTML" ? (F = F ? F.__html : void 0, H = H ? H.__html : void 0, F != null && H !== F && (e = e || []).push(m, F)) : m === "children" ? H === F || typeof F != "string" && typeof F != "number" || (e = e || []).push(m, "" + F) : m !== "suppressContentEditableWarning" && m !== "suppressHydrationWarning" && (j.hasOwnProperty(m) ? (F != null && Gn(a, m), e || H === F || (e = [])) : (e = e || []).push(m, F)); } n && (e = e || []).push("style", n), a = e, (t.updateQueue = a) && (t.effectTag |= 4); } @@ -5298,7 +5328,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); m = !0; } if (p.tag === 5 || p.tag === 6) { - e: for (var E = e, H = p, U = n, ce = H; ; ) if (ic(E, ce, U), ce.child !== null && ce.tag !== 4) ce.child.return = ce, ce = ce.child; + e: for (var E = e, H = p, F = n, ce = H; ; ) if (ic(E, ce, F), ce.child !== null && ce.tag !== 4) ce.child.return = ce, ce = ce.child; else { if (ce === H) break e; for (; ce.sibling === null; ) { @@ -5428,26 +5458,26 @@ https://fb.me/react-async-component-lifecycle-hooks`); this.componentDidCatch(t.value, { componentStack: m !== null ? m : "" }); }), n; } - var fc, Yc = Math.ceil, $a = et.ReactCurrentDispatcher, hc = et.ReactCurrentOwner, Vt = 0, al = 8, ar = 16, xr = 32, Wo = 0, Ba = 1, mc = 2, Ha = 3, Wa = 4, sl = 5, We = Vt, Cn = null, qe = null, dn = 0, Ut = Wo, qa = null, Hr = 1073741823, Xi = 1073741823, Ka = null, Gi = 0, Qa = !1, ll = 0, gc = 500, Me = null, Ya = !1, cl = null, go = null, Xa = !1, Zi = null, Ji = 90, qo = null, ea = 0, ul = null, Ga = 0; + var fc, Yc = Math.ceil, $a = et.ReactCurrentDispatcher, hc = et.ReactCurrentOwner, Vt = 0, al = 8, ar = 16, xr = 32, Wo = 0, Ba = 1, mc = 2, Ha = 3, Wa = 4, sl = 5, We = Vt, Cn = null, qe = null, dn = 0, Ft = Wo, qa = null, Hr = 1073741823, Xi = 1073741823, Ka = null, Gi = 0, Qa = !1, ll = 0, gc = 500, Me = null, Ya = !1, cl = null, go = null, Xa = !1, Zi = null, Ji = 90, qo = null, ea = 0, ul = null, Ga = 0; function Sr() { return (We & (ar | xr)) !== Vt ? 1073741821 - (Nt() / 10 | 0) : Ga !== 0 ? Ga : Ga = 1073741821 - (Nt() / 10 | 0); } function Ko(e, t, n) { if (!(2 & (t = t.mode))) return 1073741823; - var r = Ft(); + var r = Ut(); if (!(4 & t)) return r === 99 ? 1073741823 : 1073741822; if ((We & ar) !== Vt) return dn; - if (n !== null) e = Fo(e, 0 | n.timeoutMs || 5e3, 250); + if (n !== null) e = Uo(e, 0 | n.timeoutMs || 5e3, 250); else switch (r) { case 99: e = 1073741823; break; case 98: - e = Fo(e, 150, 100); + e = Uo(e, 150, 100); break; case 97: case 96: - e = Fo(e, 5e3, 250); + e = Uo(e, 5e3, 250); break; case 95: e = 2; @@ -5460,7 +5490,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); function yo(e, t) { if (50 < ea) throw ea = 0, ul = null, Error(h(185)); if ((e = Za(e, t)) !== null) { - var n = Ft(); + var n = Ut(); t === 1073741823 ? (We & al) !== Vt && (We & (ar | xr)) === Vt ? dl(e) : (Tn(e), We === Vt && tn()) : Tn(e), (4 & We) === Vt || n !== 98 && n !== 99 || (qo === null ? qo = /* @__PURE__ */ new Map([[e, t]]) : ((n = qo.get(e)) === void 0 || n > t) && qo.set(e, t)); } } @@ -5477,7 +5507,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } r = r.return; } - return a !== null && (Cn === a && (es(t), Ut === Wa && Zo(a, dn)), Tc(a, t)), a; + return a !== null && (Cn === a && (es(t), Ft === Wa && Zo(a, dn)), Tc(a, t)), a; } function Ja(e) { var t = e.lastExpiredTime; @@ -5515,8 +5545,8 @@ https://fb.me/react-async-component-lifecycle-hooks`); } catch (E) { kc(e, E); } - if (ir(), We = r, $a.current = a, Ut === Ba) throw t = qa, Qo(e, n), Zo(e, n), Tn(e), t; - if (qe === null) switch (a = e.finishedWork = e.current.alternate, e.finishedExpirationTime = n, r = Ut, Cn = null, r) { + if (ir(), We = r, $a.current = a, Ft === Ba) throw t = qa, Qo(e, n), Zo(e, n), Tn(e), t; + if (qe === null) switch (a = e.finishedWork = e.current.alternate, e.finishedExpirationTime = n, r = Ft, Cn = null, r) { case Wo: case Ba: throw Error(h(345)); @@ -5589,7 +5619,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } catch (a) { kc(e, a); } - if (ir(), We = n, $a.current = r, Ut === Ba) throw n = qa, Qo(e, t), Zo(e, t), Tn(e), n; + if (ir(), We = n, $a.current = r, Ft === Ba) throw n = qa, Qo(e, t), Zo(e, t), Tn(e), n; if (qe !== null) throw Error(h(261)); e.finishedWork = e.current.alternate, e.finishedExpirationTime = t, Cn = null, Yo(e), Tn(e); } @@ -5636,40 +5666,40 @@ https://fb.me/react-async-component-lifecycle-hooks`); x(Ct); break; case 10: - Uo(r); + Fo(r); } n = n.return; } - Cn = e, qe = Go(e.current, null), dn = t, Ut = Wo, qa = null, Xi = Hr = 1073741823, Ka = null, Gi = 0, Qa = !1; + Cn = e, qe = Go(e.current, null), dn = t, Ft = Wo, qa = null, Xi = Hr = 1073741823, Ka = null, Gi = 0, Qa = !1; } function kc(e, t) { for (; ; ) { try { - if (ir(), Ra.current = Fa, Ma) for (var n = Rt.memoizedState; n !== null; ) { + if (ir(), Ra.current = Ua, Ma) for (var n = Rt.memoizedState; n !== null; ) { var r = n.queue; r !== null && (r.pending = null), n = n.next; } - if (ho = 0, Xt = rn = Rt = null, Ma = !1, qe === null || qe.return === null) return Ut = Ba, qa = t, qe = null; + if (ho = 0, Xt = rn = Rt = null, Ma = !1, qe === null || qe.return === null) return Ft = Ba, qa = t, qe = null; e: { var a = e, p = qe.return, m = qe, E = t; if (t = dn, m.effectTag |= 2048, m.firstEffect = m.lastEffect = null, E !== null && typeof E == "object" && typeof E.then == "function") { var H = E; if (!(2 & m.mode)) { - var U = m.alternate; - U ? (m.updateQueue = U.updateQueue, m.memoizedState = U.memoizedState, m.expirationTime = U.expirationTime) : (m.updateQueue = null, m.memoizedState = null); + var F = m.alternate; + F ? (m.updateQueue = F.updateQueue, m.memoizedState = F.memoizedState, m.expirationTime = F.expirationTime) : (m.updateQueue = null, m.memoizedState = null); } var ce = !!(1 & Ct.current), Re = p; do { - var Ue; - if (Ue = Re.tag === 13) { + var Fe; + if (Fe = Re.tag === 13) { var ot = Re.memoizedState; - if (ot !== null) Ue = ot.dehydrated !== null; + if (ot !== null) Fe = ot.dehydrated !== null; else { - var Un = Re.memoizedProps; - Ue = Un.fallback !== void 0 && (Un.unstable_avoidThisFallback !== !0 || !ce); + var Fn = Re.memoizedProps; + Fe = Fn.fallback !== void 0 && (Fn.unstable_avoidThisFallback !== !0 || !ce); } } - if (Ue) { + if (Fe) { var on = Re.updateQueue; if (on === null) { var W = /* @__PURE__ */ new Set(); @@ -5700,7 +5730,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); Add a component higher in the tree to provide a loading indicator or placeholder to display.` + zt(m)); } - Ut !== sl && (Ut = mc), E = tl(E, m), Re = p; + Ft !== sl && (Ft = mc), E = tl(E, m), Re = p; do { switch (Re.tag) { case 3: @@ -5718,8 +5748,8 @@ Add a component higher in the tree to provide a loading } while (Re !== null); } qe = xc(qe); - } catch (Fe) { - t = Fe; + } catch (Ue) { + t = Ue; continue; } break; @@ -5727,7 +5757,7 @@ Add a component higher in the tree to provide a loading } function wc() { var e = $a.current; - return $a.current = Fa, e === null ? Fa : e; + return $a.current = Ua, e === null ? Ua : e; } function _c(e, t) { e < Hr && 2 < e && (Hr = e), t !== null && e < Xi && 2 < e && (Xi = e, Ka = t); @@ -5766,14 +5796,14 @@ Add a component higher in the tree to provide a loading if ((t = qe.sibling) !== null) return t; qe = e; } while (qe !== null); - return Ut === Wo && (Ut = sl), null; + return Ft === Wo && (Ft = sl), null; } function pl(e) { var t = e.expirationTime; return t > (e = e.childExpirationTime) ? t : e; } function Yo(e) { - var t = Ft(); + var t = Ut(); return or(99, Zc.bind(null, e, t)), null; } function Zc(e, t) { @@ -5796,7 +5826,7 @@ Add a component higher in the tree to provide a loading var H = (E = (E = m.ownerDocument) && E.defaultView || window).getSelection && E.getSelection(); if (H && H.rangeCount !== 0) { E = H.anchorNode; - var U = H.anchorOffset, ce = H.focusNode; + var F = H.anchorOffset, ce = H.focusNode; H = H.focusOffset; try { E.nodeType, ce.nodeType; @@ -5804,17 +5834,17 @@ Add a component higher in the tree to provide a loading E = null; break e; } - var Re = 0, Ue = -1, ot = -1, Un = 0, on = 0, W = m, B = null; + var Re = 0, Fe = -1, ot = -1, Fn = 0, on = 0, W = m, B = null; t: for (; ; ) { - for (var re; W !== E || U !== 0 && W.nodeType !== 3 || (Ue = Re + U), W !== ce || H !== 0 && W.nodeType !== 3 || (ot = Re + H), W.nodeType === 3 && (Re += W.nodeValue.length), (re = W.firstChild) !== null; ) B = W, W = re; + for (var re; W !== E || F !== 0 && W.nodeType !== 3 || (Fe = Re + F), W !== ce || H !== 0 && W.nodeType !== 3 || (ot = Re + H), W.nodeType === 3 && (Re += W.nodeValue.length), (re = W.firstChild) !== null; ) B = W, W = re; for (; ; ) { if (W === m) break t; - if (B === E && ++Un === U && (Ue = Re), B === ce && ++on === H && (ot = Re), (re = W.nextSibling) !== null) break; + if (B === E && ++Fn === F && (Fe = Re), B === ce && ++on === H && (ot = Re), (re = W.nextSibling) !== null) break; B = (W = B).parentNode; } W = re; } - E = Ue === -1 || ot === -1 ? null : { start: Ue, end: ot }; + E = Fe === -1 || ot === -1 ? null : { start: Fe, end: ot }; } else E = null; } E = E || { start: 0, end: 0 }; @@ -5857,7 +5887,7 @@ Add a component higher in the tree to provide a loading il(Me.alternate, Me); break; case 8: - cc(m, U = Me, E), ac(U); + cc(m, F = Me, E), ac(F); } Me = Me.nextEffect; } @@ -5867,15 +5897,15 @@ Add a component higher in the tree to provide a loading } while (Me !== null); if (Ie = Et, xe = la(), ve = Ie.focusedElem, E = Ie.selectionRange, xe !== ve && ve && ve.ownerDocument && Ti(ve.ownerDocument.documentElement, ve)) { - for (E !== null && Oi(ve) && (xe = E.start, (Ie = E.end) === void 0 && (Ie = xe), "selectionStart" in ve ? (ve.selectionStart = xe, ve.selectionEnd = Math.min(Ie, ve.value.length)) : (Ie = (xe = ve.ownerDocument || document) && xe.defaultView || window).getSelection && (Ie = Ie.getSelection(), U = ve.textContent.length, m = Math.min(E.start, U), E = E.end === void 0 ? m : Math.min(E.end, U), !Ie.extend && m > E && (U = E, E = m, m = U), U = sa(ve, m), ce = sa(ve, E), U && ce && (Ie.rangeCount !== 1 || Ie.anchorNode !== U.node || Ie.anchorOffset !== U.offset || Ie.focusNode !== ce.node || Ie.focusOffset !== ce.offset) && ((xe = xe.createRange()).setStart(U.node, U.offset), Ie.removeAllRanges(), m > E ? (Ie.addRange(xe), Ie.extend(ce.node, ce.offset)) : (xe.setEnd(ce.node, ce.offset), Ie.addRange(xe))))), xe = [], Ie = ve; Ie = Ie.parentNode; ) Ie.nodeType === 1 && xe.push({ element: Ie, left: Ie.scrollLeft, top: Ie.scrollTop }); + for (E !== null && Oi(ve) && (xe = E.start, (Ie = E.end) === void 0 && (Ie = xe), "selectionStart" in ve ? (ve.selectionStart = xe, ve.selectionEnd = Math.min(Ie, ve.value.length)) : (Ie = (xe = ve.ownerDocument || document) && xe.defaultView || window).getSelection && (Ie = Ie.getSelection(), F = ve.textContent.length, m = Math.min(E.start, F), E = E.end === void 0 ? m : Math.min(E.end, F), !Ie.extend && m > E && (F = E, E = m, m = F), F = sa(ve, m), ce = sa(ve, E), F && ce && (Ie.rangeCount !== 1 || Ie.anchorNode !== F.node || Ie.anchorOffset !== F.offset || Ie.focusNode !== ce.node || Ie.focusOffset !== ce.offset) && ((xe = xe.createRange()).setStart(F.node, F.offset), Ie.removeAllRanges(), m > E ? (Ie.addRange(xe), Ie.extend(ce.node, ce.offset)) : (xe.setEnd(ce.node, ce.offset), Ie.addRange(xe))))), xe = [], Ie = ve; Ie = Ie.parentNode; ) Ie.nodeType === 1 && xe.push({ element: Ie, left: Ie.scrollLeft, top: Ie.scrollTop }); for (typeof ve.focus == "function" && ve.focus(), ve = 0; ve < xe.length; ve++) (Ie = xe[ve]).element.scrollLeft = Ie.left, Ie.element.scrollTop = Ie.top; } An = !!Do, Et = Do = null, e.current = n, Me = a; do try { for (ve = e; Me !== null; ) { - var Fe = Me.effectTag; - if (36 & Fe && Kc(ve, Me.alternate, Me), 128 & Fe) { + var Ue = Me.effectTag; + if (36 & Ue && Kc(ve, Me.alternate, Me), 128 & Ue) { xe = void 0; var at = Me.ref; if (at !== null) { @@ -5956,7 +5986,7 @@ Add a component higher in the tree to provide a loading } function tu(e, t, n) { var r = e.pingCache; - r !== null && r.delete(t), Cn === e && dn === n ? Ut === Wa || Ut === Ha && Hr === 1073741823 && Nt() - ll < gc ? Qo(e, dn) : Qa = !0 : Cc(e, n) && ((t = e.lastPingedTime) !== 0 && t < n || (e.lastPingedTime = n, Tn(e))); + r !== null && r.delete(t), Cn === e && dn === n ? Ft === Wa || Ft === Ha && Hr === 1073741823 && Nt() - ll < gc ? Qo(e, dn) : Qa = !0 : Cc(e, n) && ((t = e.lastPingedTime) !== 0 && t < n || (e.lastPingedTime = n, Tn(e))); } function nu(e, t) { var n = e.stateNode; @@ -5983,7 +6013,7 @@ Add a component higher in the tree to provide a loading js(t, t.stateNode.containerInfo); break; case 10: - r = t.memoizedProps.value, a = t.type._context, z(Ur, a._currentValue), a._currentValue = r; + r = t.memoizedProps.value, a = t.type._context, z(Fr, a._currentValue), a._currentValue = r; break; case 13: if (t.memoizedState !== null) return (r = t.child.childExpirationTime) !== 0 && r >= n ? Jl(e, t, n) : (z(Ct, 1 & Ct.current), (t = Br(e, t, n)) !== null ? t.sibling : null); @@ -6003,7 +6033,7 @@ Add a component higher in the tree to provide a loading } else Er = !1; switch (t.expirationTime = 0, t.tag) { case 2: - if (r = t.type, e !== null && (e.alternate = null, t.alternate = null, t.effectTag |= 2), e = t.pendingProps, a = me(t, X.current), di(t, n), a = Us(null, t, r, e, a, n), t.effectTag |= 1, typeof a == "object" && a !== null && typeof a.render == "function" && a.$$typeof === void 0) { + if (r = t.type, e !== null && (e.alternate = null, t.alternate = null, t.effectTag |= 2), e = t.pendingProps, a = me(t, X.current), di(t, n), a = Fs(null, t, r, e, a, n), t.effectTag |= 1, typeof a == "object" && a !== null && typeof a.render == "function" && a.$$typeof === void 0) { if (t.tag = 1, t.memoizedState = null, t.updateQueue = null, de(r)) { var p = !0; st(t); @@ -6019,10 +6049,10 @@ Add a component higher in the tree to provide a loading if (ce._status === -1) { ce._status = 0; var Re = ce._ctor; - Re = Re(), ce._result = Re, Re.then(function(Ue) { - ce._status === 0 && (Ue = Ue.default, ce._status = 1, ce._result = Ue); - }, function(Ue) { - ce._status === 0 && (ce._status = 2, ce._result = Ue); + Re = Re(), ce._result = Re, Re.then(function(Fe) { + ce._status === 0 && (Fe = Fe.default, ce._status = 1, ce._result = Fe); + }, function(Fe) { + ce._status === 0 && (ce._status = 2, ce._result = Fe); }); } })(a), a._status !== 1) throw a._result; @@ -6082,7 +6112,7 @@ Add a component higher in the tree to provide a loading e: { r = t.type._context, a = t.pendingProps, m = t.memoizedProps, p = a.value; var E = t.type._context; - if (z(Ur, E._currentValue), E._currentValue = p, m !== null) if (E = m.value, (p = rr(E, p) ? 0 : 0 | (typeof r._calculateChangedBits == "function" ? r._calculateChangedBits(E, p) : 1073741823)) === 0) { + if (z(Fr, E._currentValue), E._currentValue = p, m !== null) if (E = m.value, (p = rr(E, p) ? 0 : 0 | (typeof r._calculateChangedBits == "function" ? r._calculateChangedBits(E, p) : 1073741823)) === 0) { if (m.children === a.children && !ie.current) { t = Br(e, t, n); break e; @@ -6091,12 +6121,12 @@ Add a component higher in the tree to provide a loading var H = E.dependencies; if (H !== null) { m = E.child; - for (var U = H.firstContext; U !== null; ) { - if (U.context === r && (U.observedBits & p) !== 0) { - E.tag === 1 && ((U = po(n, null)).tag = 2, fo(E, U)), E.expirationTime < n && (E.expirationTime = n), (U = E.alternate) !== null && U.expirationTime < n && (U.expirationTime = n), xl(E.return, n), H.expirationTime < n && (H.expirationTime = n); + for (var F = H.firstContext; F !== null; ) { + if (F.context === r && (F.observedBits & p) !== 0) { + E.tag === 1 && ((F = po(n, null)).tag = 2, fo(E, F)), E.expirationTime < n && (E.expirationTime = n), (F = E.alternate) !== null && F.expirationTime < n && (F.expirationTime = n), xl(E.return, n), H.expirationTime < n && (H.expirationTime = n); break; } - U = U.next; + F = F.next; } } else m = E.tag === 10 && E.type === t.type ? null : E.child; if (m !== null) m.return = E; @@ -6246,7 +6276,7 @@ Add a component higher in the tree to provide a loading } } n = E; - } else n = Q; + } else n = K; return t.context === null ? t.context = n : t.pendingContext = n, (t = po(p, m)).payload = { element: e }, (r = r === void 0 ? null : r) !== null && (t.callback = r), fo(a, t), yo(a, p), p; } function vl(e) { @@ -6279,20 +6309,20 @@ Add a component higher in the tree to provide a loading if (typeof a == "function") { var E = a; a = function() { - var U = vl(m); - E.call(U); + var F = vl(m); + E.call(F); }; } ns(t, m, e, a); } else { - if (p = n._reactRootContainer = (function(U, ce) { - if (ce || (ce = !(!(ce = U ? U.nodeType === 9 ? U.documentElement : U.firstChild : null) || ce.nodeType !== 1 || !ce.hasAttribute("data-reactroot"))), !ce) for (var Re; Re = U.lastChild; ) U.removeChild(Re); - return new wl(U, 0, ce ? { hydrate: !0 } : void 0); + if (p = n._reactRootContainer = (function(F, ce) { + if (ce || (ce = !(!(ce = F ? F.nodeType === 9 ? F.documentElement : F.firstChild : null) || ce.nodeType !== 1 || !ce.hasAttribute("data-reactroot"))), !ce) for (var Re; Re = F.lastChild; ) F.removeChild(Re); + return new wl(F, 0, ce ? { hydrate: !0 } : void 0); })(n, r), m = p._internalRoot, typeof a == "function") { var H = a; a = function() { - var U = vl(m); - H.call(U); + var F = vl(m); + H.call(F); }; } vc(function() { @@ -6318,7 +6348,7 @@ Add a component higher in the tree to provide a loading }); }, Ze = function(e) { if (e.tag === 13) { - var t = Fo(Sr(), 150, 100); + var t = Uo(Sr(), 150, 100); yo(e, t), kl(e, t); } }, Yn = function(e) { @@ -6375,7 +6405,7 @@ Add a component higher in the tree to provide a loading (We = n) === Vt && tn(); } }; - var iu = { Events: [kr, Zn, Ri, se, S, Bt, function(e) { + var iu = { Events: [kr, Zn, Ri, ae, S, Bt, function(e) { jt(e, zi); }, le, ge, Po, yn, gi, { current: !1 }] }; (function(e) { @@ -6459,21 +6489,21 @@ Add a component higher in the tree to provide a loading function C() { } C.resetWarningCache = d, i.exports = function() { - function h(N, I, D, L, ae, te) { - if (te !== _) { + function h(N, I, P, L, se, ne) { + if (ne !== _) { var R = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"); throw R.name = "Invariant Violation", R; } } - function b() { + function k() { return h; } h.isRequired = h; - var w = { array: h, bigint: h, bool: h, func: h, number: h, object: h, string: h, symbol: h, any: h, arrayOf: b, element: h, elementType: h, instanceOf: b, node: h, objectOf: b, oneOf: b, oneOfType: b, shape: b, exact: b, checkPropTypes: C, resetWarningCache: d }; + var w = { array: h, bigint: h, bool: h, func: h, number: h, object: h, string: h, symbol: h, any: h, arrayOf: k, element: h, elementType: h, instanceOf: k, node: h, objectOf: k, oneOf: k, oneOfType: k, shape: k, exact: k, checkPropTypes: C, resetWarningCache: d }; return w.PropTypes = w, w; }; }, 2799: (i, u) => { - var f = typeof Symbol == "function" && Symbol.for, _ = f ? Symbol.for("react.element") : 60103, d = f ? Symbol.for("react.portal") : 60106, C = f ? Symbol.for("react.fragment") : 60107, h = f ? Symbol.for("react.strict_mode") : 60108, b = f ? Symbol.for("react.profiler") : 60114, w = f ? Symbol.for("react.provider") : 60109, N = f ? Symbol.for("react.context") : 60110, I = f ? Symbol.for("react.async_mode") : 60111, D = f ? Symbol.for("react.concurrent_mode") : 60111, L = f ? Symbol.for("react.forward_ref") : 60112, ae = f ? Symbol.for("react.suspense") : 60113, te = f ? Symbol.for("react.suspense_list") : 60120, R = f ? Symbol.for("react.memo") : 60115, F = f ? Symbol.for("react.lazy") : 60116, q = f ? Symbol.for("react.block") : 60121, G = f ? Symbol.for("react.fundamental") : 60117, pe = f ? Symbol.for("react.responder") : 60118, oe = f ? Symbol.for("react.scope") : 60119; + var f = typeof Symbol == "function" && Symbol.for, _ = f ? Symbol.for("react.element") : 60103, d = f ? Symbol.for("react.portal") : 60106, C = f ? Symbol.for("react.fragment") : 60107, h = f ? Symbol.for("react.strict_mode") : 60108, k = f ? Symbol.for("react.profiler") : 60114, w = f ? Symbol.for("react.provider") : 60109, N = f ? Symbol.for("react.context") : 60110, I = f ? Symbol.for("react.async_mode") : 60111, P = f ? Symbol.for("react.concurrent_mode") : 60111, L = f ? Symbol.for("react.forward_ref") : 60112, se = f ? Symbol.for("react.suspense") : 60113, ne = f ? Symbol.for("react.suspense_list") : 60120, R = f ? Symbol.for("react.memo") : 60115, U = f ? Symbol.for("react.lazy") : 60116, q = f ? Symbol.for("react.block") : 60121, G = f ? Symbol.for("react.fundamental") : 60117, pe = f ? Symbol.for("react.responder") : 60118, oe = f ? Symbol.for("react.scope") : 60119; function fe(S) { if (typeof S == "object" && S !== null) { var j = S.$$typeof; @@ -6481,17 +6511,17 @@ Add a component higher in the tree to provide a loading case _: switch (S = S.type) { case I: - case D: + case P: case C: - case b: + case k: case h: - case ae: + case se: return S; default: switch (S = S && S.$$typeof) { case N: case L: - case F: + case U: case R: case w: return S; @@ -6505,9 +6535,9 @@ Add a component higher in the tree to provide a loading } } function he(S) { - return fe(S) === D; + return fe(S) === P; } - u.AsyncMode = I, u.ConcurrentMode = D, u.ContextConsumer = N, u.ContextProvider = w, u.Element = _, u.ForwardRef = L, u.Fragment = C, u.Lazy = F, u.Memo = R, u.Portal = d, u.Profiler = b, u.StrictMode = h, u.Suspense = ae, u.isAsyncMode = function(S) { + u.AsyncMode = I, u.ConcurrentMode = P, u.ContextConsumer = N, u.ContextProvider = w, u.Element = _, u.ForwardRef = L, u.Fragment = C, u.Lazy = U, u.Memo = R, u.Portal = d, u.Profiler = k, u.StrictMode = h, u.Suspense = se, u.isAsyncMode = function(S) { return he(S) || fe(S) === I; }, u.isConcurrentMode = he, u.isContextConsumer = function(S) { return fe(S) === N; @@ -6520,19 +6550,19 @@ Add a component higher in the tree to provide a loading }, u.isFragment = function(S) { return fe(S) === C; }, u.isLazy = function(S) { - return fe(S) === F; + return fe(S) === U; }, u.isMemo = function(S) { return fe(S) === R; }, u.isPortal = function(S) { return fe(S) === d; }, u.isProfiler = function(S) { - return fe(S) === b; + return fe(S) === k; }, u.isStrictMode = function(S) { return fe(S) === h; }, u.isSuspense = function(S) { - return fe(S) === ae; + return fe(S) === se; }, u.isValidElementType = function(S) { - return typeof S == "string" || typeof S == "function" || S === C || S === D || S === b || S === h || S === ae || S === te || typeof S == "object" && S !== null && (S.$$typeof === F || S.$$typeof === R || S.$$typeof === w || S.$$typeof === N || S.$$typeof === L || S.$$typeof === G || S.$$typeof === pe || S.$$typeof === oe || S.$$typeof === q); + return typeof S == "string" || typeof S == "function" || S === C || S === P || S === k || S === h || S === se || S === ne || typeof S == "object" && S !== null && (S.$$typeof === U || S.$$typeof === R || S.$$typeof === w || S.$$typeof === N || S.$$typeof === L || S.$$typeof === G || S.$$typeof === pe || S.$$typeof === oe || S.$$typeof === q); }, u.typeOf = fe; }, 2841: (i, u, f) => { f.r(u), f.d(u, { default: () => C }); @@ -6542,21 +6572,21 @@ Add a component higher in the tree to provide a loading d.push([i.id, ".ck-inspector .ck-inspector-checkbox{vertical-align:middle}", ""]); const C = d; }, 3514: (i, u) => { - Object.defineProperty(u, "__esModule", { value: !0 }), u.getPrefix = _, u.browserPrefixToKey = d, u.browserPrefixToStyle = function(h, b) { - return b ? "-".concat(b.toLowerCase(), "-").concat(h) : h; + Object.defineProperty(u, "__esModule", { value: !0 }), u.getPrefix = _, u.browserPrefixToKey = d, u.browserPrefixToStyle = function(h, k) { + return k ? "-".concat(k.toLowerCase(), "-").concat(h) : h; }, u.default = void 0; var f = ["Moz", "Webkit", "O", "ms"]; function _() { var h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform"; if (typeof window > "u" || window.document === void 0) return ""; - var b = window.document.documentElement.style; - if (h in b) return ""; - for (var w = 0; w < f.length; w++) if (d(h, f[w]) in b) return f[w]; + var k = window.document.documentElement.style; + if (h in k) return ""; + for (var w = 0; w < f.length; w++) if (d(h, f[w]) in k) return f[w]; return ""; } - function d(h, b) { - return b ? "".concat(b).concat((function(w) { - for (var N = "", I = !0, D = 0; D < w.length; D++) I ? (N += w[D].toUpperCase(), I = !1) : w[D] === "-" ? I = !0 : N += w[D]; + function d(h, k) { + return k ? "".concat(k).concat((function(w) { + for (var N = "", I = !0, P = 0; P < w.length; P++) I ? (N += w[P].toUpperCase(), I = !1) : w[P] === "-" ? I = !0 : N += w[P]; return N; })(h)) : h; } @@ -6575,32 +6605,32 @@ Add a component higher in the tree to provide a loading d.push([i.id, ".ck-inspector-side-pane{position:relative}", ""]); const C = d; }, 4146: (i, u, f) => { - var _ = f(4363), d = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, C = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, h = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, b = {}; + var _ = f(4363), d = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, C = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, h = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, k = {}; function w(R) { - return _.isMemo(R) ? h : b[R.$$typeof] || d; + return _.isMemo(R) ? h : k[R.$$typeof] || d; } - b[_.ForwardRef] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, b[_.Memo] = h; - var N = Object.defineProperty, I = Object.getOwnPropertyNames, D = Object.getOwnPropertySymbols, L = Object.getOwnPropertyDescriptor, ae = Object.getPrototypeOf, te = Object.prototype; - i.exports = function R(F, q, G) { + k[_.ForwardRef] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, k[_.Memo] = h; + var N = Object.defineProperty, I = Object.getOwnPropertyNames, P = Object.getOwnPropertySymbols, L = Object.getOwnPropertyDescriptor, se = Object.getPrototypeOf, ne = Object.prototype; + i.exports = function R(U, q, G) { if (typeof q != "string") { - if (te) { - var pe = ae(q); - pe && pe !== te && R(F, pe, G); + if (ne) { + var pe = se(q); + pe && pe !== ne && R(U, pe, G); } var oe = I(q); - D && (oe = oe.concat(D(q))); - for (var fe = w(F), he = w(q), S = 0; S < oe.length; ++S) { + P && (oe = oe.concat(P(q))); + for (var fe = w(U), he = w(q), S = 0; S < oe.length; ++S) { var j = oe[S]; if (!(C[j] || G && G[j] || he && he[j] || fe && fe[j])) { var A = L(q, j); try { - N(F, j, A); + N(U, j, A); } catch { } } } } - return F; + return U; }; }, 4343: (i, u, f) => { var _ = f(5072), d = f(7260); @@ -6615,8 +6645,8 @@ Add a component higher in the tree to provide a loading Object.defineProperty(u, "__esModule", { value: !0 }), u.resetState = function() { var C = document.getElementsByTagName("html")[0]; for (var h in f) d(C, f[h]); - var b = document.body; - for (var w in _) d(b, _[w]); + var k = document.body; + for (var w in _) d(k, _[w]); f = {}, _ = {}; }, u.log = function() { }; @@ -6625,31 +6655,31 @@ Add a component higher in the tree to provide a loading C.classList.remove(h); } u.add = function(C, h) { - return b = C.classList, w = C.nodeName.toLowerCase() == "html" ? f : _, void h.split(" ").forEach(function(N) { - (function(I, D) { - I[D] || (I[D] = 0), I[D] += 1; - })(w, N), b.add(N); + return k = C.classList, w = C.nodeName.toLowerCase() == "html" ? f : _, void h.split(" ").forEach(function(N) { + (function(I, P) { + I[P] || (I[P] = 0), I[P] += 1; + })(w, N), k.add(N); }); - var b, w; + var k, w; }, u.remove = function(C, h) { - return b = C.classList, w = C.nodeName.toLowerCase() == "html" ? f : _, void h.split(" ").forEach(function(N) { - (function(I, D) { - I[D] && (I[D] -= 1); - })(w, N), w[N] === 0 && b.remove(N); + return k = C.classList, w = C.nodeName.toLowerCase() == "html" ? f : _, void h.split(" ").forEach(function(N) { + (function(I, P) { + I[P] && (I[P] -= 1); + })(w, N), w[N] === 0 && k.remove(N); }); - var b, w; + var k, w; }; }, 4987: (i) => { - function u(w, N, I, D) { - var L, ae = (L = D) == null || typeof L == "number" || typeof L == "boolean" ? D : I(D), te = N.get(ae); - return te === void 0 && (te = w.call(this, D), N.set(ae, te)), te; + function u(w, N, I, P) { + var L, se = (L = P) == null || typeof L == "number" || typeof L == "boolean" ? P : I(P), ne = N.get(se); + return ne === void 0 && (ne = w.call(this, P), N.set(se, ne)), ne; } function f(w, N, I) { - var D = Array.prototype.slice.call(arguments, 3), L = I(D), ae = N.get(L); - return ae === void 0 && (ae = w.apply(this, D), N.set(L, ae)), ae; + var P = Array.prototype.slice.call(arguments, 3), L = I(P), se = N.get(L); + return se === void 0 && (se = w.apply(this, P), N.set(L, se)), se; } - function _(w, N, I, D, L) { - return I.bind(N, w, D, L); + function _(w, N, I, P, L) { + return I.bind(N, w, P, L); } function d(w, N) { return _(w, this, w.length === 1 ? u : f, N.cache.create(), N.serializer); @@ -6667,12 +6697,12 @@ Add a component higher in the tree to provide a loading }, h.prototype.set = function(w, N) { this.cache[w] = N; }; - var b = { create: function() { + var k = { create: function() { return new h(); } }; i.exports = function(w, N) { - var I = N && N.cache ? N.cache : b, D = N && N.serializer ? N.serializer : C; - return (N && N.strategy ? N.strategy : d)(w, { cache: I, serializer: D }); + var I = N && N.cache ? N.cache : k, P = N && N.serializer ? N.serializer : C; + return (N && N.strategy ? N.strategy : d)(w, { cache: I, serializer: P }); }, i.exports.strategies = { variadic: function(w, N) { return _(w, this, f, N.cache.create(), N.serializer); }, monadic: function(w, N) { @@ -6696,7 +6726,7 @@ Add a component higher in the tree to provide a loading return q[G]; }; })(), h = []; - function b(q) { + function k(q) { for (var G = -1, pe = 0; pe < h.length; pe++) if (h[pe].identifier === q) { G = pe; break; @@ -6707,8 +6737,8 @@ Add a component higher in the tree to provide a loading for (var pe = {}, oe = [], fe = 0; fe < q.length; fe++) { var he = q[fe], S = G.base ? he[0] + G.base : he[0], j = pe[S] || 0, A = "".concat(S, " ").concat(j); pe[S] = j + 1; - var se = b(A), J = { css: he[1], media: he[2], sourceMap: he[3] }; - se !== -1 ? (h[se].references++, h[se].updater(J)) : h.push({ identifier: A, updater: F(J, G), references: 1 }), oe.push(A); + var ae = k(A), J = { css: he[1], media: he[2], sourceMap: he[3] }; + ae !== -1 ? (h[ae].references++, h[ae].updater(J)) : h.push({ identifier: A, updater: U(J, G), references: 1 }), oe.push(A); } return oe; } @@ -6728,19 +6758,19 @@ Add a component higher in the tree to provide a loading } return G; } - var I, D = (I = [], function(q, G) { + var I, P = (I = [], function(q, G) { return I[q] = G, I.filter(Boolean).join(` `); }); function L(q, G, pe, oe) { var fe = pe ? "" : oe.media ? "@media ".concat(oe.media, " {").concat(oe.css, "}") : oe.css; - if (q.styleSheet) q.styleSheet.cssText = D(G, fe); + if (q.styleSheet) q.styleSheet.cssText = P(G, fe); else { var he = document.createTextNode(fe), S = q.childNodes; S[G] && q.removeChild(S[G]), S.length ? q.insertBefore(he, S[G]) : q.appendChild(he); } } - function ae(q, G, pe) { + function se(q, G, pe) { var oe = pe.css, fe = pe.media, he = pe.sourceMap; if (fe ? q.setAttribute("media", fe) : q.removeAttribute("media"), he && typeof btoa < "u" && (oe += ` /*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(he)))), " */")), q.styleSheet) q.styleSheet.cssText = oe; @@ -6749,13 +6779,13 @@ Add a component higher in the tree to provide a loading q.appendChild(document.createTextNode(oe)); } } - var te = null, R = 0; - function F(q, G) { + var ne = null, R = 0; + function U(q, G) { var pe, oe, fe; if (G.singleton) { var he = R++; - pe = te || (te = N(G)), oe = L.bind(null, pe, he, !1), fe = L.bind(null, pe, he, !0); - } else pe = N(G), oe = ae.bind(null, pe, G), fe = function() { + pe = ne || (ne = N(G)), oe = L.bind(null, pe, he, !1), fe = L.bind(null, pe, he, !0); + } else pe = N(G), oe = se.bind(null, pe, G), fe = function() { (function(S) { if (S.parentNode === null) return !1; S.parentNode.removeChild(S); @@ -6774,11 +6804,11 @@ Add a component higher in the tree to provide a loading return function(oe) { if (oe = oe || [], Object.prototype.toString.call(oe) === "[object Array]") { for (var fe = 0; fe < pe.length; fe++) { - var he = b(pe[fe]); + var he = k(pe[fe]); h[he].references--; } for (var S = w(oe, G), j = 0; j < pe.length; j++) { - var A = b(pe[j]); + var A = k(pe[j]); h[A].references === 0 && (h[A].updater(), h.splice(A, 1)); } pe = S; @@ -6788,32 +6818,32 @@ Add a component higher in the tree to provide a loading }, 5180: (i, u, f) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.FunctionParser = u.dedentFunction = u.functionToString = u.USED_METHOD_KEY = void 0; const _ = f(1099), d = { " "() { - } }[" "].toString().charAt(0) === '"', C = { Function: "function ", GeneratorFunction: "function* ", AsyncFunction: "async function ", AsyncGeneratorFunction: "async function* " }, h = { Function: "", GeneratorFunction: "*", AsyncFunction: "async ", AsyncGeneratorFunction: "async *" }, b = new Set("case delete else in instanceof new return throw typeof void , ; : + - ! ~ & | ^ * / % < > ? =".split(" ")); + } }[" "].toString().charAt(0) === '"', C = { Function: "function ", GeneratorFunction: "function* ", AsyncFunction: "async function ", AsyncGeneratorFunction: "async function* " }, h = { Function: "", GeneratorFunction: "*", AsyncFunction: "async ", AsyncGeneratorFunction: "async *" }, k = new Set("case delete else in instanceof new return throw typeof void , ; : + - ! ~ & | ^ * / % < > ? =".split(" ")); u.USED_METHOD_KEY = /* @__PURE__ */ new WeakSet(); function w(I) { - let D; + let P; for (const L of I.split(` `).slice(1)) { - const ae = /^[\s\t]+/.exec(L); - if (!ae) return I; - const [te] = ae; - (D === void 0 || te.length < D.length) && (D = te); + const se = /^[\s\t]+/.exec(L); + if (!se) return I; + const [ne] = se; + (P === void 0 || ne.length < P.length) && (P = ne); } - return D ? I.split(` -${D}`).join(` + return P ? I.split(` +${P}`).join(` `) : I; } - u.functionToString = (I, D, L, ae) => { - const te = typeof ae == "string" ? ae : void 0; - return te !== void 0 && u.USED_METHOD_KEY.add(I), new N(I, D, L, te).stringify(); + u.functionToString = (I, P, L, se) => { + const ne = typeof se == "string" ? se : void 0; + return ne !== void 0 && u.USED_METHOD_KEY.add(I), new N(I, P, L, ne).stringify(); }, u.dedentFunction = w; class N { - constructor(D, L, ae, te) { - this.fn = D, this.indent = L, this.next = ae, this.key = te, this.pos = 0, this.hadKeyword = !1, this.fnString = Function.prototype.toString.call(D), this.fnType = D.constructor.name, this.keyQuote = te === void 0 ? "" : _.quoteKey(te, ae), this.keyPrefix = te === void 0 ? "" : `${this.keyQuote}:${L ? " " : ""}`, this.isMethodCandidate = te !== void 0 && (this.fn.name === "" || this.fn.name === te); + constructor(P, L, se, ne) { + this.fn = P, this.indent = L, this.next = se, this.key = ne, this.pos = 0, this.hadKeyword = !1, this.fnString = Function.prototype.toString.call(P), this.fnType = P.constructor.name, this.keyQuote = ne === void 0 ? "" : _.quoteKey(ne, se), this.keyPrefix = ne === void 0 ? "" : `${this.keyQuote}:${L ? " " : ""}`, this.isMethodCandidate = ne !== void 0 && (this.fn.name === "" || this.fn.name === ne); } stringify() { - const D = this.tryParse(); - return D ? w(D) : `${this.keyPrefix}void ${this.next(this.fnString)}`; + const P = this.tryParse(); + return P ? w(P) : `${this.keyPrefix}void ${this.next(this.fnString)}`; } getPrefix() { return this.isMethodCandidate && !this.hadKeyword ? h[this.fnType] + this.keyQuote : this.keyPrefix + C[this.fnType]; @@ -6824,18 +6854,18 @@ ${D}`).join(` const L = this.tryStrippingName(); if (L) return L; } - const D = this.pos; + const P = this.pos; if (this.consumeSyntax() === "class") return this.fnString; - if (this.pos = D, this.tryParsePrefixTokens()) { + if (this.pos = P, this.tryParsePrefixTokens()) { const L = this.tryStrippingName(); if (L) return L; - let ae = this.pos; + let se = this.pos; switch (this.consumeSyntax("WORD_LIKE")) { case "WORD_LIKE": - this.isMethodCandidate && !this.hadKeyword && (ae = this.pos); + this.isMethodCandidate && !this.hadKeyword && (se = this.pos); case "()": if (this.fnString.substr(this.pos, 2) === "=>") return this.keyPrefix + this.fnString; - this.pos = ae; + this.pos = se; case '"': case "'": case "[]": @@ -6845,19 +6875,19 @@ ${D}`).join(` } tryStrippingName() { if (d) return; - let D = this.pos; + let P = this.pos; const L = this.fnString.substr(this.pos, this.fn.name.length); - if (L === this.fn.name && (this.pos += L.length, this.consumeSyntax() === "()" && this.consumeSyntax() === "{}" && this.pos === this.fnString.length)) return !this.isMethodCandidate && _.isValidVariableName(L) || (D += L.length), this.getPrefix() + this.fnString.substr(D); - this.pos = D; + if (L === this.fn.name && (this.pos += L.length, this.consumeSyntax() === "()" && this.consumeSyntax() === "{}" && this.pos === this.fnString.length)) return !this.isMethodCandidate && _.isValidVariableName(L) || (P += L.length), this.getPrefix() + this.fnString.substr(P); + this.pos = P; } tryParsePrefixTokens() { - let D = this.pos; + let P = this.pos; switch (this.hadKeyword = !1, this.fnType) { case "AsyncFunction": if (this.consumeSyntax() !== "async") return !1; - D = this.pos; + P = this.pos; case "Function": - return this.consumeSyntax() === "function" ? this.hadKeyword = !0 : this.pos = D, !0; + return this.consumeSyntax() === "function" ? this.hadKeyword = !0 : this.pos = P, !0; case "AsyncGeneratorFunction": if (this.consumeSyntax() !== "async") return !1; case "GeneratorFunction": @@ -6865,12 +6895,12 @@ ${D}`).join(` return L === "function" && (L = this.consumeSyntax(), this.hadKeyword = !0), L === "*"; } } - consumeSyntax(D) { + consumeSyntax(P) { const L = this.consumeMatch(/^(?:([A-Za-z_0-9$\xA0-\uFFFF]+)|=>|\+\+|\-\-|.)/); if (!L) return; - const [ae, te] = L; - if (this.consumeWhitespace(), te) return D || te; - switch (ae) { + const [se, ne] = L; + if (this.consumeWhitespace(), ne) return P || ne; + switch (se) { case "(": return this.consumeSyntaxUntil("(", ")"); case "[": @@ -6884,24 +6914,24 @@ ${D}`).join(` case "'": return this.consumeRegExp(/^(?:[^\\']|\\.)*'/, "'"); } - return ae; + return se; } - consumeSyntaxUntil(D, L) { - let ae = !0; + consumeSyntaxUntil(P, L) { + let se = !0; for (; ; ) { - const te = this.consumeSyntax(); - if (te === L) return D + L; - if (!te || te === ")" || te === "]" || te === "}") return; - te === "/" && ae && this.consumeMatch(/^(?:\\.|[^\\\/\n[]|\[(?:\\.|[^\]])*\])+\/[a-z]*/) ? (ae = !1, this.consumeWhitespace()) : ae = b.has(te); + const ne = this.consumeSyntax(); + if (ne === L) return P + L; + if (!ne || ne === ")" || ne === "]" || ne === "}") return; + ne === "/" && se && this.consumeMatch(/^(?:\\.|[^\\\/\n[]|\[(?:\\.|[^\]])*\])+\/[a-z]*/) ? (se = !1, this.consumeWhitespace()) : se = k.has(ne); } } - consumeMatch(D) { - const L = D.exec(this.fnString.substr(this.pos)); + consumeMatch(P) { + const L = P.exec(this.fnString.substr(this.pos)); return L && (this.pos += L[0].length), L; } - consumeRegExp(D, L) { - const ae = D.exec(this.fnString.substr(this.pos)); - if (ae) return this.pos += ae[0].length, this.consumeWhitespace(), L; + consumeRegExp(P, L) { + const se = P.exec(this.fnString.substr(this.pos)); + if (se) return this.pos += se[0].length, this.consumeWhitespace(), L; } consumeTemplate() { for (; ; ) { @@ -6925,31 +6955,31 @@ ${D}`).join(` if (Object.getOwnPropertyNames(C).map(function(w) { return C[w]; }).join("") !== "0123456789") return !1; - var b = {}; + var k = {}; return "abcdefghijklmnopqrst".split("").forEach(function(w) { - b[w] = w; - }), Object.keys(Object.assign({}, b)).join("") === "abcdefghijklmnopqrst"; + k[w] = w; + }), Object.keys(Object.assign({}, k)).join("") === "abcdefghijklmnopqrst"; } catch { return !1; } })() ? Object.assign : function(d, C) { - for (var h, b, w = (function(L) { + for (var h, k, w = (function(L) { if (L == null) throw new TypeError("Object.assign cannot be called with null or undefined"); return Object(L); })(d), N = 1; N < arguments.length; N++) { for (var I in h = Object(arguments[N])) f.call(h, I) && (w[I] = h[I]); if (u) { - b = u(h); - for (var D = 0; D < b.length; D++) _.call(h, b[D]) && (w[b[D]] = h[b[D]]); + k = u(h); + for (var P = 0; P < k.length; P++) _.call(h, k[P]) && (w[k[P]] = h[k[P]]); } } return w; }; }, 5287: (i, u, f) => { - var _ = f(5228), d = typeof Symbol == "function" && Symbol.for, C = d ? Symbol.for("react.element") : 60103, h = d ? Symbol.for("react.portal") : 60106, b = d ? Symbol.for("react.fragment") : 60107, w = d ? Symbol.for("react.strict_mode") : 60108, N = d ? Symbol.for("react.profiler") : 60114, I = d ? Symbol.for("react.provider") : 60109, D = d ? Symbol.for("react.context") : 60110, L = d ? Symbol.for("react.forward_ref") : 60112, ae = d ? Symbol.for("react.suspense") : 60113, te = d ? Symbol.for("react.memo") : 60115, R = d ? Symbol.for("react.lazy") : 60116, F = typeof Symbol == "function" && Symbol.iterator; - function q(P) { - for (var ne = "https://reactjs.org/docs/error-decoder.html?invariant=" + P, we = 1; we < arguments.length; we++) ne += "&args[]=" + encodeURIComponent(arguments[we]); - return "Minified React error #" + P + "; visit " + ne + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; + var _ = f(5228), d = typeof Symbol == "function" && Symbol.for, C = d ? Symbol.for("react.element") : 60103, h = d ? Symbol.for("react.portal") : 60106, k = d ? Symbol.for("react.fragment") : 60107, w = d ? Symbol.for("react.strict_mode") : 60108, N = d ? Symbol.for("react.profiler") : 60114, I = d ? Symbol.for("react.provider") : 60109, P = d ? Symbol.for("react.context") : 60110, L = d ? Symbol.for("react.forward_ref") : 60112, se = d ? Symbol.for("react.suspense") : 60113, ne = d ? Symbol.for("react.memo") : 60115, R = d ? Symbol.for("react.lazy") : 60116, U = typeof Symbol == "function" && Symbol.iterator; + function q(D) { + for (var te = "https://reactjs.org/docs/error-decoder.html?invariant=" + D, we = 1; we < arguments.length; we++) te += "&args[]=" + encodeURIComponent(arguments[we]); + return "Minified React error #" + D + "; visit " + te + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } var G = { isMounted: function() { return !1; @@ -6957,133 +6987,133 @@ ${D}`).join(` }, enqueueReplaceState: function() { }, enqueueSetState: function() { } }, pe = {}; - function oe(P, ne, we) { - this.props = P, this.context = ne, this.refs = pe, this.updater = we || G; + function oe(D, te, we) { + this.props = D, this.context = te, this.refs = pe, this.updater = we || G; } function fe() { } - function he(P, ne, we) { - this.props = P, this.context = ne, this.refs = pe, this.updater = we || G; + function he(D, te, we) { + this.props = D, this.context = te, this.refs = pe, this.updater = we || G; } - oe.prototype.isReactComponent = {}, oe.prototype.setState = function(P, ne) { - if (typeof P != "object" && typeof P != "function" && P != null) throw Error(q(85)); - this.updater.enqueueSetState(this, P, ne, "setState"); - }, oe.prototype.forceUpdate = function(P) { - this.updater.enqueueForceUpdate(this, P, "forceUpdate"); + oe.prototype.isReactComponent = {}, oe.prototype.setState = function(D, te) { + if (typeof D != "object" && typeof D != "function" && D != null) throw Error(q(85)); + this.updater.enqueueSetState(this, D, te, "setState"); + }, oe.prototype.forceUpdate = function(D) { + this.updater.enqueueForceUpdate(this, D, "forceUpdate"); }, fe.prototype = oe.prototype; var S = he.prototype = new fe(); S.constructor = he, _(S, oe.prototype), S.isPureReactComponent = !0; - var j = { current: null }, A = Object.prototype.hasOwnProperty, se = { key: !0, ref: !0, __self: !0, __source: !0 }; - function J(P, ne, we) { + var j = { current: null }, A = Object.prototype.hasOwnProperty, ae = { key: !0, ref: !0, __self: !0, __source: !0 }; + function J(D, te, we) { var Ce, Pe = {}, _e = null, lt = null; - if (ne != null) for (Ce in ne.ref !== void 0 && (lt = ne.ref), ne.key !== void 0 && (_e = "" + ne.key), ne) A.call(ne, Ce) && !se.hasOwnProperty(Ce) && (Pe[Ce] = ne[Ce]); + if (te != null) for (Ce in te.ref !== void 0 && (lt = te.ref), te.key !== void 0 && (_e = "" + te.key), te) A.call(te, Ce) && !ae.hasOwnProperty(Ce) && (Pe[Ce] = te[Ce]); var Qe = arguments.length - 2; if (Qe === 1) Pe.children = we; else if (1 < Qe) { for (var et = Array(Qe), Pt = 0; Pt < Qe; Pt++) et[Pt] = arguments[Pt + 2]; Pe.children = et; } - if (P && P.defaultProps) for (Ce in Qe = P.defaultProps) Pe[Ce] === void 0 && (Pe[Ce] = Qe[Ce]); - return { $$typeof: C, type: P, key: _e, ref: lt, props: Pe, _owner: j.current }; + if (D && D.defaultProps) for (Ce in Qe = D.defaultProps) Pe[Ce] === void 0 && (Pe[Ce] = Qe[Ce]); + return { $$typeof: C, type: D, key: _e, ref: lt, props: Pe, _owner: j.current }; } - function Ee(P) { - return typeof P == "object" && P !== null && P.$$typeof === C; + function Ee(D) { + return typeof D == "object" && D !== null && D.$$typeof === C; } var ee = /\/+/g, V = []; - function Z(P, ne, we, Ce) { + function Z(D, te, we, Ce) { if (V.length) { var Pe = V.pop(); - return Pe.result = P, Pe.keyPrefix = ne, Pe.func = we, Pe.context = Ce, Pe.count = 0, Pe; + return Pe.result = D, Pe.keyPrefix = te, Pe.func = we, Pe.context = Ce, Pe.count = 0, Pe; } - return { result: P, keyPrefix: ne, func: we, context: Ce, count: 0 }; + return { result: D, keyPrefix: te, func: we, context: Ce, count: 0 }; } - function le(P) { - P.result = null, P.keyPrefix = null, P.func = null, P.context = null, P.count = 0, 10 > V.length && V.push(P); + function le(D) { + D.result = null, D.keyPrefix = null, D.func = null, D.context = null, D.count = 0, 10 > V.length && V.push(D); } - function ge(P, ne, we, Ce) { - var Pe = typeof P; - Pe !== "undefined" && Pe !== "boolean" || (P = null); + function ge(D, te, we, Ce) { + var Pe = typeof D; + Pe !== "undefined" && Pe !== "boolean" || (D = null); var _e = !1; - if (P === null) _e = !0; + if (D === null) _e = !0; else switch (Pe) { case "string": case "number": _e = !0; break; case "object": - switch (P.$$typeof) { + switch (D.$$typeof) { case C: case h: _e = !0; } } - if (_e) return we(Ce, P, ne === "" ? "." + Ne(P, 0) : ne), 1; - if (_e = 0, ne = ne === "" ? "." : ne + ":", Array.isArray(P)) for (var lt = 0; lt < P.length; lt++) { - var Qe = ne + Ne(Pe = P[lt], lt); + if (_e) return we(Ce, D, te === "" ? "." + Ne(D, 0) : te), 1; + if (_e = 0, te = te === "" ? "." : te + ":", Array.isArray(D)) for (var lt = 0; lt < D.length; lt++) { + var Qe = te + Ne(Pe = D[lt], lt); _e += ge(Pe, Qe, we, Ce); } - else if (P === null || typeof P != "object" ? Qe = null : Qe = typeof (Qe = F && P[F] || P["@@iterator"]) == "function" ? Qe : null, typeof Qe == "function") for (P = Qe.call(P), lt = 0; !(Pe = P.next()).done; ) _e += ge(Pe = Pe.value, Qe = ne + Ne(Pe, lt++), we, Ce); - else if (Pe === "object") throw we = "" + P, Error(q(31, we === "[object Object]" ? "object with keys {" + Object.keys(P).join(", ") + "}" : we, "")); + else if (D === null || typeof D != "object" ? Qe = null : Qe = typeof (Qe = U && D[U] || D["@@iterator"]) == "function" ? Qe : null, typeof Qe == "function") for (D = Qe.call(D), lt = 0; !(Pe = D.next()).done; ) _e += ge(Pe = Pe.value, Qe = te + Ne(Pe, lt++), we, Ce); + else if (Pe === "object") throw we = "" + D, Error(q(31, we === "[object Object]" ? "object with keys {" + Object.keys(D).join(", ") + "}" : we, "")); return _e; } - function ke(P, ne, we) { - return P == null ? 0 : ge(P, "", ne, we); + function ke(D, te, we) { + return D == null ? 0 : ge(D, "", te, we); } - function Ne(P, ne) { - return typeof P == "object" && P !== null && P.key != null ? (function(we) { + function Ne(D, te) { + return typeof D == "object" && D !== null && D.key != null ? (function(we) { var Ce = { "=": "=0", ":": "=2" }; return "$" + ("" + we).replace(/[=:]/g, function(Pe) { return Ce[Pe]; }); - })(P.key) : ne.toString(36); + })(D.key) : te.toString(36); } - function Ve(P, ne) { - P.func.call(P.context, ne, P.count++); + function Ve(D, te) { + D.func.call(D.context, te, D.count++); } - function Ae(P, ne, we) { - var Ce = P.result, Pe = P.keyPrefix; - P = P.func.call(P.context, ne, P.count++), Array.isArray(P) ? Le(P, Ce, we, function(_e) { + function Ae(D, te, we) { + var Ce = D.result, Pe = D.keyPrefix; + D = D.func.call(D.context, te, D.count++), Array.isArray(D) ? Le(D, Ce, we, function(_e) { return _e; - }) : P != null && (Ee(P) && (P = (function(_e, lt) { + }) : D != null && (Ee(D) && (D = (function(_e, lt) { return { $$typeof: C, type: _e.type, key: lt, ref: _e.ref, props: _e.props, _owner: _e._owner }; - })(P, Pe + (!P.key || ne && ne.key === P.key ? "" : ("" + P.key).replace(ee, "$&/") + "/") + we)), Ce.push(P)); + })(D, Pe + (!D.key || te && te.key === D.key ? "" : ("" + D.key).replace(ee, "$&/") + "/") + we)), Ce.push(D)); } - function Le(P, ne, we, Ce, Pe) { + function Le(D, te, we, Ce, Pe) { var _e = ""; - we != null && (_e = ("" + we).replace(ee, "$&/") + "/"), ke(P, Ae, ne = Z(ne, _e, Ce, Pe)), le(ne); + we != null && (_e = ("" + we).replace(ee, "$&/") + "/"), ke(D, Ae, te = Z(te, _e, Ce, Pe)), le(te); } var Ke = { current: null }; function Je() { - var P = Ke.current; - if (P === null) throw Error(q(321)); - return P; + var D = Ke.current; + if (D === null) throw Error(q(321)); + return D; } var ye = { ReactCurrentDispatcher: Ke, ReactCurrentBatchConfig: { suspense: null }, ReactCurrentOwner: j, IsSomeRendererActing: { current: !1 }, assign: _ }; - u.Children = { map: function(P, ne, we) { - if (P == null) return P; + u.Children = { map: function(D, te, we) { + if (D == null) return D; var Ce = []; - return Le(P, Ce, null, ne, we), Ce; - }, forEach: function(P, ne, we) { - if (P == null) return P; - ke(P, Ve, ne = Z(null, null, ne, we)), le(ne); - }, count: function(P) { - return ke(P, function() { + return Le(D, Ce, null, te, we), Ce; + }, forEach: function(D, te, we) { + if (D == null) return D; + ke(D, Ve, te = Z(null, null, te, we)), le(te); + }, count: function(D) { + return ke(D, function() { return null; }, null); - }, toArray: function(P) { - var ne = []; - return Le(P, ne, null, function(we) { + }, toArray: function(D) { + var te = []; + return Le(D, te, null, function(we) { return we; - }), ne; - }, only: function(P) { - if (!Ee(P)) throw Error(q(143)); - return P; - } }, u.Component = oe, u.Fragment = b, u.Profiler = N, u.PureComponent = he, u.StrictMode = w, u.Suspense = ae, u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ye, u.cloneElement = function(P, ne, we) { - if (P == null) throw Error(q(267, P)); - var Ce = _({}, P.props), Pe = P.key, _e = P.ref, lt = P._owner; - if (ne != null) { - if (ne.ref !== void 0 && (_e = ne.ref, lt = j.current), ne.key !== void 0 && (Pe = "" + ne.key), P.type && P.type.defaultProps) var Qe = P.type.defaultProps; - for (et in ne) A.call(ne, et) && !se.hasOwnProperty(et) && (Ce[et] = ne[et] === void 0 && Qe !== void 0 ? Qe[et] : ne[et]); + }), te; + }, only: function(D) { + if (!Ee(D)) throw Error(q(143)); + return D; + } }, u.Component = oe, u.Fragment = k, u.Profiler = N, u.PureComponent = he, u.StrictMode = w, u.Suspense = se, u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ye, u.cloneElement = function(D, te, we) { + if (D == null) throw Error(q(267, D)); + var Ce = _({}, D.props), Pe = D.key, _e = D.ref, lt = D._owner; + if (te != null) { + if (te.ref !== void 0 && (_e = te.ref, lt = j.current), te.key !== void 0 && (Pe = "" + te.key), D.type && D.type.defaultProps) var Qe = D.type.defaultProps; + for (et in te) A.call(te, et) && !ae.hasOwnProperty(et) && (Ce[et] = te[et] === void 0 && Qe !== void 0 ? Qe[et] : te[et]); } var et = arguments.length - 2; if (et === 1) Ce.children = we; @@ -7092,73 +7122,73 @@ ${D}`).join(` for (var Pt = 0; Pt < et; Pt++) Qe[Pt] = arguments[Pt + 2]; Ce.children = Qe; } - return { $$typeof: C, type: P.type, key: Pe, ref: _e, props: Ce, _owner: lt }; - }, u.createContext = function(P, ne) { - return ne === void 0 && (ne = null), (P = { $$typeof: D, _calculateChangedBits: ne, _currentValue: P, _currentValue2: P, _threadCount: 0, Provider: null, Consumer: null }).Provider = { $$typeof: I, _context: P }, P.Consumer = P; - }, u.createElement = J, u.createFactory = function(P) { - var ne = J.bind(null, P); - return ne.type = P, ne; + return { $$typeof: C, type: D.type, key: Pe, ref: _e, props: Ce, _owner: lt }; + }, u.createContext = function(D, te) { + return te === void 0 && (te = null), (D = { $$typeof: P, _calculateChangedBits: te, _currentValue: D, _currentValue2: D, _threadCount: 0, Provider: null, Consumer: null }).Provider = { $$typeof: I, _context: D }, D.Consumer = D; + }, u.createElement = J, u.createFactory = function(D) { + var te = J.bind(null, D); + return te.type = D, te; }, u.createRef = function() { return { current: null }; - }, u.forwardRef = function(P) { - return { $$typeof: L, render: P }; - }, u.isValidElement = Ee, u.lazy = function(P) { - return { $$typeof: R, _ctor: P, _status: -1, _result: null }; - }, u.memo = function(P, ne) { - return { $$typeof: te, type: P, compare: ne === void 0 ? null : ne }; - }, u.useCallback = function(P, ne) { - return Je().useCallback(P, ne); - }, u.useContext = function(P, ne) { - return Je().useContext(P, ne); + }, u.forwardRef = function(D) { + return { $$typeof: L, render: D }; + }, u.isValidElement = Ee, u.lazy = function(D) { + return { $$typeof: R, _ctor: D, _status: -1, _result: null }; + }, u.memo = function(D, te) { + return { $$typeof: ne, type: D, compare: te === void 0 ? null : te }; + }, u.useCallback = function(D, te) { + return Je().useCallback(D, te); + }, u.useContext = function(D, te) { + return Je().useContext(D, te); }, u.useDebugValue = function() { - }, u.useEffect = function(P, ne) { - return Je().useEffect(P, ne); - }, u.useImperativeHandle = function(P, ne, we) { - return Je().useImperativeHandle(P, ne, we); - }, u.useLayoutEffect = function(P, ne) { - return Je().useLayoutEffect(P, ne); - }, u.useMemo = function(P, ne) { - return Je().useMemo(P, ne); - }, u.useReducer = function(P, ne, we) { - return Je().useReducer(P, ne, we); - }, u.useRef = function(P) { - return Je().useRef(P); - }, u.useState = function(P) { - return Je().useState(P); + }, u.useEffect = function(D, te) { + return Je().useEffect(D, te); + }, u.useImperativeHandle = function(D, te, we) { + return Je().useImperativeHandle(D, te, we); + }, u.useLayoutEffect = function(D, te) { + return Je().useLayoutEffect(D, te); + }, u.useMemo = function(D, te) { + return Je().useMemo(D, te); + }, u.useReducer = function(D, te, we) { + return Je().useReducer(D, te, we); + }, u.useRef = function(D) { + return Je().useRef(D); + }, u.useState = function(D) { + return Je().useState(D); }, u.version = "16.14.0"; }, 5323: (i, u, f) => { u.A = void 0; const _ = f(42), d = f(1099), C = Symbol("root"); - u.A = function(h, b, w, N = {}) { - const I = typeof w == "string" ? w : " ".repeat(w || 0), D = [], L = /* @__PURE__ */ new Set(), ae = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ new Map(); + u.A = function(h, k, w, N = {}) { + const I = typeof w == "string" ? w : " ".repeat(w || 0), P = [], L = /* @__PURE__ */ new Set(), se = /* @__PURE__ */ new Map(), ne = /* @__PURE__ */ new Map(); let R = 0; - const { maxDepth: F = 100, references: q = !1, skipUndefinedProperties: G = !1, maxValues: pe = 1e5 } = N, oe = (function(j) { - return j ? (A, se, J, Ee) => j(A, se, (ee) => _.toString(ee, se, J, Ee), Ee) : _.toString; - })(b), fe = (j, A) => { - if (++R > pe || G && j === void 0 || D.length > F) return; + const { maxDepth: U = 100, references: q = !1, skipUndefinedProperties: G = !1, maxValues: pe = 1e5 } = N, oe = (function(j) { + return j ? (A, ae, J, Ee) => j(A, ae, (ee) => _.toString(ee, ae, J, Ee), Ee) : _.toString; + })(k), fe = (j, A) => { + if (++R > pe || G && j === void 0 || P.length > U) return; if (A === void 0) return oe(j, I, fe, A); - D.push(A); - const se = he(j, A === C ? void 0 : A); - return D.pop(), se; + P.push(A); + const ae = he(j, A === C ? void 0 : A); + return P.pop(), ae; }, he = q ? (j, A) => { if (j !== null && (typeof j == "object" || typeof j == "function" || typeof j == "symbol")) { - if (ae.has(j)) return te.set(D.slice(1), ae.get(j)), oe(void 0, I, fe, A); - ae.set(j, D.slice(1)); + if (se.has(j)) return ne.set(P.slice(1), se.get(j)), oe(void 0, I, fe, A); + se.set(j, P.slice(1)); } return oe(j, I, fe, A); } : (j, A) => { if (L.has(j)) return; L.add(j); - const se = oe(j, I, fe, A); - return L.delete(j), se; + const ae = oe(j, I, fe, A); + return L.delete(j), ae; }, S = fe(h, C); - if (te.size) { + if (ne.size) { const j = I ? " " : "", A = I ? ` ` : ""; - let se = `var x${j}=${j}${S};${A}`; - for (const [J, Ee] of te.entries()) - se += `x${d.stringifyPath(J, fe)}${j}=${j}x${d.stringifyPath(Ee, fe)};${A}`; - return `(function${j}()${j}{${A}${se}return x;${A}}())`; + let ae = `var x${j}=${j}${S};${A}`; + for (const [J, Ee] of ne.entries()) + ae += `x${d.stringifyPath(J, fe)}${j}=${j}x${d.stringifyPath(Ee, fe)};${A}`; + return `(function${j}()${j}{${A}${ae}return x;${A}}())`; } return S; }; @@ -7185,8 +7215,8 @@ ${D}`).join(` } }), u.default = void 0; var _ = (function(ee) { if (ee && ee.__esModule) return ee; - if (ee === null || te(ee) !== "object" && typeof ee != "function") return { default: ee }; - var V = ae(); + if (ee === null || ne(ee) !== "object" && typeof ee != "function") return { default: ee }; + var V = se(); if (V && V.has(ee)) return V.get(ee); var Z = {}, le = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var ge in ee) if (Object.prototype.hasOwnProperty.call(ee, ge)) { @@ -7194,23 +7224,23 @@ ${D}`).join(` ke && (ke.get || ke.set) ? Object.defineProperty(Z, ge, ke) : Z[ge] = ee[ge]; } return Z.default = ee, V && V.set(ee, Z), Z; - })(f(6540)), d = L(f(5556)), C = L(f(961)), h = L(f(6942)), b = f(1089), w = f(1726), N = f(7056), I = L(f(6888)), D = L(f(8696)); + })(f(6540)), d = L(f(5556)), C = L(f(961)), h = L(f(6942)), k = f(1089), w = f(1726), N = f(7056), I = L(f(6888)), P = L(f(8696)); function L(ee) { return ee && ee.__esModule ? ee : { default: ee }; } - function ae() { + function se() { if (typeof WeakMap != "function") return null; var ee = /* @__PURE__ */ new WeakMap(); - return ae = function() { + return se = function() { return ee; }, ee; } - function te(ee) { - return te = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(V) { + function ne(ee) { + return ne = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(V) { return typeof V; } : function(V) { return V && typeof Symbol == "function" && V.constructor === Symbol && V !== Symbol.prototype ? "symbol" : typeof V; - }, te(ee); + }, ne(ee); } function R() { return R = Object.assign || function(ee) { @@ -7221,7 +7251,7 @@ ${D}`).join(` return ee; }, R.apply(this, arguments); } - function F(ee, V) { + function U(ee, V) { if (ee == null) return {}; var Z, le, ge = (function(Ne, Ve) { if (Ne == null) return {}; @@ -7318,13 +7348,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } })(); return function() { - var Z, le = se(ee); + var Z, le = ae(ee); if (V) { - var ge = se(this).constructor; + var ge = ae(this).constructor; Z = Reflect.construct(le, arguments, ge); } else Z = le.apply(this, arguments); return (function(ke, Ne) { - return Ne && (te(Ne) === "object" || typeof Ne == "function") ? Ne : A(ke); + return Ne && (ne(Ne) === "object" || typeof Ne == "function") ? Ne : A(ke); })(this, Z); }; } @@ -7332,10 +7362,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (ee === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return ee; } - function se(ee) { - return se = Object.setPrototypeOf ? Object.getPrototypeOf : function(V) { + function ae(ee) { + return ae = Object.setPrototypeOf ? Object.getPrototypeOf : function(V) { return V.__proto__ || Object.getPrototypeOf(V); - }, se(ee); + }, ae(ee); } function J(ee, V, Z) { return V in ee ? Object.defineProperty(ee, V, { value: Z, enumerable: !0, configurable: !0, writable: !0 }) : ee[V] = Z, ee; @@ -7351,23 +7381,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return (function(ke, Ne) { if (!(ke instanceof Ne)) throw new TypeError("Cannot call a class as a function"); })(this, Z), J(A(ge = V.call(this, le)), "onDragStart", function(ke, Ne) { - if ((0, D.default)("Draggable: onDragStart: %j", Ne), ge.props.onStart(ke, (0, w.createDraggableData)(A(ge), Ne)) === !1) return !1; + if ((0, P.default)("Draggable: onDragStart: %j", Ne), ge.props.onStart(ke, (0, w.createDraggableData)(A(ge), Ne)) === !1) return !1; ge.setState({ dragging: !0, dragged: !0 }); }), J(A(ge), "onDrag", function(ke, Ne) { if (!ge.state.dragging) return !1; - (0, D.default)("Draggable: onDrag: %j", Ne); + (0, P.default)("Draggable: onDrag: %j", Ne); var Ve = (0, w.createDraggableData)(A(ge), Ne), Ae = { x: Ve.x, y: Ve.y }; if (ge.props.bounds) { var Le = Ae.x, Ke = Ae.y; Ae.x += ge.state.slackX, Ae.y += ge.state.slackY; - var Je = q((0, w.getBoundPosition)(A(ge), Ae.x, Ae.y), 2), ye = Je[0], P = Je[1]; - Ae.x = ye, Ae.y = P, Ae.slackX = ge.state.slackX + (Le - Ae.x), Ae.slackY = ge.state.slackY + (Ke - Ae.y), Ve.x = Ae.x, Ve.y = Ae.y, Ve.deltaX = Ae.x - ge.state.x, Ve.deltaY = Ae.y - ge.state.y; + var Je = q((0, w.getBoundPosition)(A(ge), Ae.x, Ae.y), 2), ye = Je[0], D = Je[1]; + Ae.x = ye, Ae.y = D, Ae.slackX = ge.state.slackX + (Le - Ae.x), Ae.slackY = ge.state.slackY + (Ke - Ae.y), Ve.x = Ae.x, Ve.y = Ae.y, Ve.deltaX = Ae.x - ge.state.x, Ve.deltaY = Ae.y - ge.state.y; } if (ge.props.onDrag(ke, Ve) === !1) return !1; ge.setState(Ae); }), J(A(ge), "onDragStop", function(ke, Ne) { if (!ge.state.dragging || ge.props.onStop(ke, (0, w.createDraggableData)(A(ge), Ne)) === !1) return !1; - (0, D.default)("Draggable: onDragStop: %j", Ne); + (0, P.default)("Draggable: onDragStop: %j", Ne); var Ve = { dragging: !1, slackX: 0, slackY: 0 }; if (ge.props.position) { var Ae = ge.props.position, Le = Ae.x, Ke = Ae.y; @@ -7378,7 +7408,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } return he(Z, null, [{ key: "getDerivedStateFromProps", value: function(le, ge) { var ke = le.position, Ne = ge.prevPropsPosition; - return !ke || Ne && ke.x === Ne.x && ke.y === Ne.y ? null : ((0, D.default)("Draggable: getDerivedStateFromProps %j", { position: ke, prevPropsPosition: Ne }), { x: ke.x, y: ke.y, prevPropsPosition: oe({}, ke) }); + return !ke || Ne && ke.x === Ne.x && ke.y === Ne.y ? null : ((0, P.default)("Draggable: getDerivedStateFromProps %j", { position: ke, prevPropsPosition: Ne }), { x: ke.x, y: ke.y, prevPropsPosition: oe({}, ke) }); } }]), he(Z, [{ key: "componentDidMount", value: function() { window.SVGElement !== void 0 && this.findDOMNode() instanceof window.SVGElement && this.setState({ isElementSVG: !0 }); } }, { key: "componentWillUnmount", value: function() { @@ -7386,10 +7416,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }, { key: "findDOMNode", value: function() { return this.props.nodeRef ? this.props.nodeRef.current : C.default.findDOMNode(this); } }, { key: "render", value: function() { - var le, ge = this.props, ke = (ge.axis, ge.bounds, ge.children), Ne = ge.defaultPosition, Ve = ge.defaultClassName, Ae = ge.defaultClassNameDragging, Le = ge.defaultClassNameDragged, Ke = ge.position, Je = ge.positionOffset, ye = (ge.scale, F(ge, ["axis", "bounds", "children", "defaultPosition", "defaultClassName", "defaultClassNameDragging", "defaultClassNameDragged", "position", "positionOffset", "scale"])), P = {}, ne = null, we = !Ke || this.state.dragging, Ce = Ke || Ne, Pe = { x: (0, w.canDragX)(this) && we ? this.state.x : Ce.x, y: (0, w.canDragY)(this) && we ? this.state.y : Ce.y }; - this.state.isElementSVG ? ne = (0, b.createSVGTransform)(Pe, Je) : P = (0, b.createCSSTransform)(Pe, Je); + var le, ge = this.props, ke = (ge.axis, ge.bounds, ge.children), Ne = ge.defaultPosition, Ve = ge.defaultClassName, Ae = ge.defaultClassNameDragging, Le = ge.defaultClassNameDragged, Ke = ge.position, Je = ge.positionOffset, ye = (ge.scale, U(ge, ["axis", "bounds", "children", "defaultPosition", "defaultClassName", "defaultClassNameDragging", "defaultClassNameDragged", "position", "positionOffset", "scale"])), D = {}, te = null, we = !Ke || this.state.dragging, Ce = Ke || Ne, Pe = { x: (0, w.canDragX)(this) && we ? this.state.x : Ce.x, y: (0, w.canDragY)(this) && we ? this.state.y : Ce.y }; + this.state.isElementSVG ? te = (0, k.createSVGTransform)(Pe, Je) : D = (0, k.createCSSTransform)(Pe, Je); var _e = (0, h.default)(ke.props.className || "", Ve, (J(le = {}, Ae, this.state.dragging), J(le, Le, this.state.dragged), le)); - return _.createElement(I.default, R({}, ye, { onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop }), _.cloneElement(_.Children.only(ke), { className: _e, style: oe(oe({}, ke.props.style), P), transform: ne })); + return _.createElement(I.default, R({}, ye, { onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop }), _.cloneElement(_.Children.only(ke), { className: _e, style: oe(oe({}, ke.props.style), D), transform: te })); } }]), Z; })(_.Component); u.default = Ee, J(Ee, "displayName", "Draggable"), J(Ee, "propTypes", oe(oe({}, I.default.propTypes), {}, { axis: d.default.oneOf(["both", "x", "y", "none"]), bounds: d.default.oneOfType([d.default.shape({ left: d.default.number, right: d.default.number, top: d.default.number, bottom: d.default.number }), d.default.string, d.default.oneOf([!1])]), defaultClassName: d.default.string, defaultClassNameDragging: d.default.string, defaultClassNameDragged: d.default.string, defaultPosition: d.default.shape({ x: d.default.number, y: d.default.number }), positionOffset: d.default.shape({ x: d.default.oneOfType([d.default.number, d.default.string]), y: d.default.oneOfType([d.default.number, d.default.string]) }), position: d.default.shape({ x: d.default.number, y: d.default.number }), className: N.dontSetMe, style: N.dontSetMe, transform: N.dontSetMe })), J(Ee, "defaultProps", oe(oe({}, I.default.defaultProps), {}, { axis: "both", bounds: !1, defaultClassName: "react-draggable", defaultClassNameDragging: "react-draggable-dragging", defaultClassNameDragged: "react-draggable-dragged", defaultPosition: { x: 0, y: 0 }, position: null, scale: 1 })); @@ -7404,8 +7434,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, f.i = function(_, d, C) { typeof _ == "string" && (_ = [[null, _, ""]]); var h = {}; - if (C) for (var b = 0; b < this.length; b++) { - var w = this[b][0]; + if (C) for (var k = 0; k < this.length; k++) { + var w = this[k][0]; w != null && (h[w] = !0); } for (var N = 0; N < _.length; N++) { @@ -7443,57 +7473,57 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; }, 6462: (i, u, f) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.resetState = function() { - b && (b.removeAttribute ? b.removeAttribute("aria-hidden") : b.length != null ? b.forEach(function(I) { + k && (k.removeAttribute ? k.removeAttribute("aria-hidden") : k.length != null ? k.forEach(function(I) { return I.removeAttribute("aria-hidden"); - }) : document.querySelectorAll(b).forEach(function(I) { + }) : document.querySelectorAll(k).forEach(function(I) { return I.removeAttribute("aria-hidden"); - })), b = null; + })), k = null; }, u.log = function() { }, u.assertNodeList = w, u.setElement = function(I) { - var D = I; - if (typeof D == "string" && h.canUseDOM) { - var L = document.querySelectorAll(D); - w(L, D), D = L; + var P = I; + if (typeof P == "string" && h.canUseDOM) { + var L = document.querySelectorAll(P); + w(L, P), P = L; } - return b = D || b; + return k = P || k; }, u.validateElement = N, u.hide = function(I) { - var D = !0, L = !1, ae = void 0; + var P = !0, L = !1, se = void 0; try { - for (var te, R = N(I)[Symbol.iterator](); !(D = (te = R.next()).done); D = !0) - te.value.setAttribute("aria-hidden", "true"); - } catch (F) { - L = !0, ae = F; + for (var ne, R = N(I)[Symbol.iterator](); !(P = (ne = R.next()).done); P = !0) + ne.value.setAttribute("aria-hidden", "true"); + } catch (U) { + L = !0, se = U; } finally { try { - !D && R.return && R.return(); + !P && R.return && R.return(); } finally { - if (L) throw ae; + if (L) throw se; } } }, u.show = function(I) { - var D = !0, L = !1, ae = void 0; + var P = !0, L = !1, se = void 0; try { - for (var te, R = N(I)[Symbol.iterator](); !(D = (te = R.next()).done); D = !0) - te.value.removeAttribute("aria-hidden"); - } catch (F) { - L = !0, ae = F; + for (var ne, R = N(I)[Symbol.iterator](); !(P = (ne = R.next()).done); P = !0) + ne.value.removeAttribute("aria-hidden"); + } catch (U) { + L = !0, se = U; } finally { try { - !D && R.return && R.return(); + !P && R.return && R.return(); } finally { - if (L) throw ae; + if (L) throw se; } } }, u.documentNotReadyOrSSRTesting = function() { - b = null; + k = null; }; - var _, d = f(9771), C = (_ = d) && _.__esModule ? _ : { default: _ }, h = f(834), b = null; - function w(I, D) { - if (!I || !I.length) throw new Error("react-modal: No elements were found for selector " + D + "."); + var _, d = f(9771), C = (_ = d) && _.__esModule ? _ : { default: _ }, h = f(834), k = null; + function w(I, P) { + if (!I || !I.length) throw new Error("react-modal: No elements were found for selector " + P + "."); } function N(I) { - var D = I || b; - return D ? Array.isArray(D) || D instanceof HTMLCollection || D instanceof NodeList ? D : [D] : ((0, C.default)(!1, ["react-modal: App element is not defined.", "Please use `Modal.setAppElement(el)` or set `appElement={el}`.", "This is needed so screen readers don't see main content", "when modal is opened. It is not recommended, but you can opt-out", "by setting `ariaHideApp={false}`."].join(" ")), []); + var P = I || k; + return P ? Array.isArray(P) || P instanceof HTMLCollection || P instanceof NodeList ? P : [P] : ((0, C.default)(!1, ["react-modal: App element is not defined.", "Please use `Modal.setAppElement(el)` or set `appElement={el}`.", "This is needed so screen readers don't see main content", "when modal is opened. It is not recommended, but you can opt-out", "by setting `ariaHideApp={false}`."].join(" ")), []); } }, 6540: (i, u, f) => { i.exports = f(5287); @@ -7507,33 +7537,33 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var _ = (function(A) { if (A && A.__esModule) return A; if (A === null || L(A) !== "object" && typeof A != "function") return { default: A }; - var se = D(); - if (se && se.has(A)) return se.get(A); + var ae = P(); + if (ae && ae.has(A)) return ae.get(A); var J = {}, Ee = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var ee in A) if (Object.prototype.hasOwnProperty.call(A, ee)) { var V = Ee ? Object.getOwnPropertyDescriptor(A, ee) : null; V && (V.get || V.set) ? Object.defineProperty(J, ee, V) : J[ee] = A[ee]; } - return J.default = A, se && se.set(A, J), J; - })(f(6540)), d = I(f(5556)), C = I(f(961)), h = f(1089), b = f(1726), w = f(7056), N = I(f(8696)); + return J.default = A, ae && ae.set(A, J), J; + })(f(6540)), d = I(f(5556)), C = I(f(961)), h = f(1089), k = f(1726), w = f(7056), N = I(f(8696)); function I(A) { return A && A.__esModule ? A : { default: A }; } - function D() { + function P() { if (typeof WeakMap != "function") return null; var A = /* @__PURE__ */ new WeakMap(); - return D = function() { + return P = function() { return A; }, A; } function L(A) { - return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(se) { - return typeof se; - } : function(se) { - return se && typeof Symbol == "function" && se.constructor === Symbol && se !== Symbol.prototype ? "symbol" : typeof se; + return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(ae) { + return typeof ae; + } : function(ae) { + return ae && typeof Symbol == "function" && ae.constructor === Symbol && ae !== Symbol.prototype ? "symbol" : typeof ae; }, L(A); } - function ae(A, se) { + function se(A, ae) { return (function(J) { if (Array.isArray(J)) return J; })(A) || (function(J, Ee) { @@ -7552,36 +7582,36 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } return ee; } - })(A, se) || (function(J, Ee) { + })(A, ae) || (function(J, Ee) { if (J) { - if (typeof J == "string") return te(J, Ee); + if (typeof J == "string") return ne(J, Ee); var ee = Object.prototype.toString.call(J).slice(8, -1); if (ee === "Object" && J.constructor && (ee = J.constructor.name), ee === "Map" || ee === "Set") return Array.from(J); - if (ee === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ee)) return te(J, Ee); + if (ee === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ee)) return ne(J, Ee); } - })(A, se) || (function() { + })(A, ae) || (function() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); })(); } - function te(A, se) { - (se == null || se > A.length) && (se = A.length); - for (var J = 0, Ee = new Array(se); J < se; J++) Ee[J] = A[J]; + function ne(A, ae) { + (ae == null || ae > A.length) && (ae = A.length); + for (var J = 0, Ee = new Array(ae); J < ae; J++) Ee[J] = A[J]; return Ee; } - function R(A, se) { - for (var J = 0; J < se.length; J++) { - var Ee = se[J]; + function R(A, ae) { + for (var J = 0; J < ae.length; J++) { + var Ee = ae[J]; Ee.enumerable = Ee.enumerable || !1, Ee.configurable = !0, "value" in Ee && (Ee.writable = !0), Object.defineProperty(A, Ee.key, Ee); } } - function F(A, se) { - return F = Object.setPrototypeOf || function(J, Ee) { + function U(A, ae) { + return U = Object.setPrototypeOf || function(J, Ee) { return J.__proto__ = Ee, J; - }, F(A, se); + }, U(A, ae); } function q(A) { - var se = (function() { + var ae = (function() { if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1; if (typeof Proxy == "function") return !0; try { @@ -7593,7 +7623,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho })(); return function() { var J, Ee = pe(A); - if (se) { + if (ae) { var ee = pe(this).constructor; J = Reflect.construct(Ee, arguments, ee); } else J = Ee.apply(this, arguments); @@ -7607,19 +7637,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return A; } function pe(A) { - return pe = Object.setPrototypeOf ? Object.getPrototypeOf : function(se) { - return se.__proto__ || Object.getPrototypeOf(se); + return pe = Object.setPrototypeOf ? Object.getPrototypeOf : function(ae) { + return ae.__proto__ || Object.getPrototypeOf(ae); }, pe(A); } - function oe(A, se, J) { - return se in A ? Object.defineProperty(A, se, { value: J, enumerable: !0, configurable: !0, writable: !0 }) : A[se] = J, A; + function oe(A, ae, J) { + return ae in A ? Object.defineProperty(A, ae, { value: J, enumerable: !0, configurable: !0, writable: !0 }) : A[ae] = J, A; } var fe = { start: "touchstart", move: "touchmove", stop: "touchend" }, he = { start: "mousedown", move: "mousemove", stop: "mouseup" }, S = he, j = (function(A) { (function(V, Z) { if (typeof Z != "function" && Z !== null) throw new TypeError("Super expression must either be null or a function"); - V.prototype = Object.create(Z && Z.prototype, { constructor: { value: V, writable: !0, configurable: !0 } }), Z && F(V, Z); + V.prototype = Object.create(Z && Z.prototype, { constructor: { value: V, writable: !0, configurable: !0 } }), Z && U(V, Z); })(ee, A); - var se, J, Ee = q(ee); + var ae, J, Ee = q(ee); function ee() { var V; (function(ke, Ne) { @@ -7635,35 +7665,35 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ke.type === "touchstart" && ke.preventDefault(); var Ae = (0, h.getTouchIdentifier)(ke); V.setState({ touchIdentifier: Ae }); - var Le = (0, b.getControlPosition)(ke, Ae, G(V)); + var Le = (0, k.getControlPosition)(ke, Ae, G(V)); if (Le != null) { - var Ke = Le.x, Je = Le.y, ye = (0, b.createCoreData)(G(V), Ke, Je); + var Ke = Le.x, Je = Le.y, ye = (0, k.createCoreData)(G(V), Ke, Je); (0, N.default)("DraggableCore: handleDragStart: %j", ye), (0, N.default)("calling", V.props.onStart), V.props.onStart(ke, ye) !== !1 && V.mounted !== !1 && (V.props.enableUserSelectHack && (0, h.addUserSelectStyles)(Ve), V.setState({ dragging: !0, lastX: Ke, lastY: Je }), (0, h.addEvent)(Ve, S.move, V.handleDrag), (0, h.addEvent)(Ve, S.stop, V.handleDragStop)); } } }), oe(G(V), "handleDrag", function(ke) { - var Ne = (0, b.getControlPosition)(ke, V.state.touchIdentifier, G(V)); + var Ne = (0, k.getControlPosition)(ke, V.state.touchIdentifier, G(V)); if (Ne != null) { var Ve = Ne.x, Ae = Ne.y; if (Array.isArray(V.props.grid)) { - var Le = Ve - V.state.lastX, Ke = Ae - V.state.lastY, Je = ae((0, b.snapToGrid)(V.props.grid, Le, Ke), 2); + var Le = Ve - V.state.lastX, Ke = Ae - V.state.lastY, Je = se((0, k.snapToGrid)(V.props.grid, Le, Ke), 2); if (Le = Je[0], Ke = Je[1], !Le && !Ke) return; Ve = V.state.lastX + Le, Ae = V.state.lastY + Ke; } - var ye = (0, b.createCoreData)(G(V), Ve, Ae); + var ye = (0, k.createCoreData)(G(V), Ve, Ae); if ((0, N.default)("DraggableCore: handleDrag: %j", ye), V.props.onDrag(ke, ye) !== !1 && V.mounted !== !1) V.setState({ lastX: Ve, lastY: Ae }); else try { V.handleDragStop(new MouseEvent("mouseup")); } catch { - var P = document.createEvent("MouseEvents"); - P.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), V.handleDragStop(P); + var D = document.createEvent("MouseEvents"); + D.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), V.handleDragStop(D); } } }), oe(G(V), "handleDragStop", function(ke) { if (V.state.dragging) { - var Ne = (0, b.getControlPosition)(ke, V.state.touchIdentifier, G(V)); + var Ne = (0, k.getControlPosition)(ke, V.state.touchIdentifier, G(V)); if (Ne != null) { - var Ve = Ne.x, Ae = Ne.y, Le = (0, b.createCoreData)(G(V), Ve, Ae); + var Ve = Ne.x, Ae = Ne.y, Le = (0, k.createCoreData)(G(V), Ve, Ae); if (V.props.onStop(ke, Le) === !1 || V.mounted === !1) return !1; var Ke = V.findDOMNode(); Ke && V.props.enableUserSelectHack && (0, h.removeUserSelectStyles)(Ke.ownerDocument), (0, N.default)("DraggableCore: handleDragStop: %j", Le), V.setState({ dragging: !1, lastX: NaN, lastY: NaN }), Ke && ((0, N.default)("DraggableCore: Removing handlers"), (0, h.removeEvent)(Ke.ownerDocument, S.move, V.handleDrag), (0, h.removeEvent)(Ke.ownerDocument, S.stop, V.handleDragStop)); @@ -7679,7 +7709,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return S = fe, V.handleDragStop(ke); }), V; } - return se = ee, (J = [{ key: "componentDidMount", value: function() { + return ae = ee, (J = [{ key: "componentDidMount", value: function() { this.mounted = !0; var V = this.findDOMNode(); V && (0, h.addEvent)(V, fe.start, this.onTouchStart, { passive: !1 }); @@ -7694,10 +7724,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return this.props.nodeRef ? this.props.nodeRef.current : C.default.findDOMNode(this); } }, { key: "render", value: function() { return _.cloneElement(_.Children.only(this.props.children), { onMouseDown: this.onMouseDown, onMouseUp: this.onMouseUp, onTouchEnd: this.onTouchEnd }); - } }]) && R(se.prototype, J), ee; + } }]) && R(ae.prototype, J), ee; })(_.Component); - u.default = j, oe(j, "displayName", "DraggableCore"), oe(j, "propTypes", { allowAnyClick: d.default.bool, disabled: d.default.bool, enableUserSelectHack: d.default.bool, offsetParent: function(A, se) { - if (A[se] && A[se].nodeType !== 1) throw new Error("Draggable's offsetParent must be a DOM Node."); + u.default = j, oe(j, "displayName", "DraggableCore"), oe(j, "propTypes", { allowAnyClick: d.default.bool, disabled: d.default.bool, enableUserSelectHack: d.default.bool, offsetParent: function(A, ae) { + if (A[ae] && A[ae].nodeType !== 1) throw new Error("Draggable's offsetParent must be a DOM Node."); }, grid: d.default.arrayOf(d.default.number), handle: d.default.string, cancel: d.default.string, nodeRef: d.default.object, onStart: d.default.func, onDrag: d.default.func, onStop: d.default.func, onMouseDown: d.default.func, scale: d.default.number, className: w.dontSetMe, style: w.dontSetMe, transform: w.dontSetMe }), oe(j, "defaultProps", { allowAnyClick: !1, cancel: null, disabled: !1, enableUserSelectHack: !0, offsetParent: null, handle: null, grid: null, transform: null, onStart: function() { }, onDrag: function() { }, onStop: function() { @@ -7710,23 +7740,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho (function() { var _ = {}.hasOwnProperty; function d() { - for (var b = "", w = 0; w < arguments.length; w++) { + for (var k = "", w = 0; w < arguments.length; w++) { var N = arguments[w]; - N && (b = h(b, C(N))); + N && (k = h(k, C(N))); } - return b; + return k; } - function C(b) { - if (typeof b == "string" || typeof b == "number") return b; - if (typeof b != "object") return ""; - if (Array.isArray(b)) return d.apply(null, b); - if (b.toString !== Object.prototype.toString && !b.toString.toString().includes("[native code]")) return b.toString(); + function C(k) { + if (typeof k == "string" || typeof k == "number") return k; + if (typeof k != "object") return ""; + if (Array.isArray(k)) return d.apply(null, k); + if (k.toString !== Object.prototype.toString && !k.toString.toString().includes("[native code]")) return k.toString(); var w = ""; - for (var N in b) _.call(b, N) && b[N] && (w = h(w, N)); + for (var N in k) _.call(k, N) && k[N] && (w = h(w, N)); return w; } - function h(b, w) { - return w ? b ? b + " " + w : b + w : b; + function h(k, w) { + return w ? k ? k + " " + w : k + w : k; } i.exports ? (d.default = d, i.exports = d) : (f = (function() { return d; @@ -7750,26 +7780,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (f[_]) return new Error("Invalid prop ".concat(_, " passed to ").concat(d, " - do not set this, set it on the child.")); }; }, 7067: (i, u, f) => { - Object.defineProperty(u, "__esModule", { value: !0 }), u.default = function(b, w) { - var N = (0, C.default)(b); + Object.defineProperty(u, "__esModule", { value: !0 }), u.default = function(k, w) { + var N = (0, C.default)(k); if (!N.length) return void w.preventDefault(); - var I = void 0, D = w.shiftKey, L = N[0], ae = N[N.length - 1], te = h(); - if (b === te) { - if (!D) return; - I = ae; + var I = void 0, P = w.shiftKey, L = N[0], se = N[N.length - 1], ne = h(); + if (k === ne) { + if (!P) return; + I = se; } - if (ae !== te || D || (I = L), L === te && D && (I = ae), I) return w.preventDefault(), void I.focus(); + if (se !== ne || P || (I = L), L === ne && P && (I = se), I) return w.preventDefault(), void I.focus(); var R = /(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent); if (!(R == null || R[1] == "Chrome" || /\biPod\b|\biPad\b/g.exec(navigator.userAgent) != null)) { - var F = N.indexOf(te); - if (F > -1 && (F += D ? -1 : 1), (I = N[F]) === void 0) return w.preventDefault(), void (I = D ? ae : L).focus(); + var U = N.indexOf(ne); + if (U > -1 && (U += P ? -1 : 1), (I = N[U]) === void 0) return w.preventDefault(), void (I = P ? se : L).focus(); w.preventDefault(), I.focus(); } }; var _, d = f(2411), C = (_ = d) && _.__esModule ? _ : { default: _ }; function h() { - var b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document; - return b.activeElement.shadowRoot ? h(b.activeElement.shadowRoot) : b.activeElement; + var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document; + return k.activeElement.shadowRoot ? h(k.activeElement.shadowRoot) : k.activeElement; } i.exports = u.default; }, 7195: (i, u, f) => { @@ -7789,20 +7819,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, 7463: (i, u) => { var f, _, d, C, h; if (typeof window > "u" || typeof MessageChannel != "function") { - var b = null, w = null, N = function() { - if (b !== null) try { + var k = null, w = null, N = function() { + if (k !== null) try { var ye = u.unstable_now(); - b(!0, ye), b = null; - } catch (P) { - throw setTimeout(N, 0), P; + k(!0, ye), k = null; + } catch (D) { + throw setTimeout(N, 0), D; } }, I = Date.now(); u.unstable_now = function() { return Date.now() - I; }, f = function(ye) { - b !== null ? setTimeout(f, 0, ye) : (b = ye, setTimeout(N, 0)); - }, _ = function(ye, P) { - w = setTimeout(ye, P); + k !== null ? setTimeout(f, 0, ye) : (k = ye, setTimeout(N, 0)); + }, _ = function(ye, D) { + w = setTimeout(ye, D); }, d = function() { clearTimeout(w); }, C = function() { @@ -7810,18 +7840,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, h = u.unstable_forceFrameRate = function() { }; } else { - var D = window.performance, L = window.Date, ae = window.setTimeout, te = window.clearTimeout; + var P = window.performance, L = window.Date, se = window.setTimeout, ne = window.clearTimeout; if (typeof console < "u") { var R = window.cancelAnimationFrame; typeof window.requestAnimationFrame != "function" && console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"), typeof R != "function" && console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"); } - if (typeof D == "object" && typeof D.now == "function") u.unstable_now = function() { - return D.now(); + if (typeof P == "object" && typeof P.now == "function") u.unstable_now = function() { + return P.now(); }; else { - var F = L.now(); + var U = L.now(); u.unstable_now = function() { - return L.now() - F; + return L.now() - U; }; } var q = !1, G = null, pe = -1, oe = 5, fe = 0; @@ -7838,94 +7868,94 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho fe = ye + oe; try { G(!0, ye) ? S.postMessage(null) : (q = !1, G = null); - } catch (P) { - throw S.postMessage(null), P; + } catch (D) { + throw S.postMessage(null), D; } } else q = !1; }, f = function(ye) { G = ye, q || (q = !0, S.postMessage(null)); - }, _ = function(ye, P) { - pe = ae(function() { + }, _ = function(ye, D) { + pe = se(function() { ye(u.unstable_now()); - }, P); + }, D); }, d = function() { - te(pe), pe = -1; + ne(pe), pe = -1; }; } - function j(ye, P) { - var ne = ye.length; - ye.push(P); + function j(ye, D) { + var te = ye.length; + ye.push(D); e: for (; ; ) { - var we = ne - 1 >>> 1, Ce = ye[we]; - if (!(Ce !== void 0 && 0 < J(Ce, P))) break e; - ye[we] = P, ye[ne] = Ce, ne = we; + var we = te - 1 >>> 1, Ce = ye[we]; + if (!(Ce !== void 0 && 0 < J(Ce, D))) break e; + ye[we] = D, ye[te] = Ce, te = we; } } function A(ye) { return (ye = ye[0]) === void 0 ? null : ye; } - function se(ye) { - var P = ye[0]; - if (P !== void 0) { - var ne = ye.pop(); - if (ne !== P) { - ye[0] = ne; + function ae(ye) { + var D = ye[0]; + if (D !== void 0) { + var te = ye.pop(); + if (te !== D) { + ye[0] = te; e: for (var we = 0, Ce = ye.length; we < Ce; ) { var Pe = 2 * (we + 1) - 1, _e = ye[Pe], lt = Pe + 1, Qe = ye[lt]; - if (_e !== void 0 && 0 > J(_e, ne)) Qe !== void 0 && 0 > J(Qe, _e) ? (ye[we] = Qe, ye[lt] = ne, we = lt) : (ye[we] = _e, ye[Pe] = ne, we = Pe); + if (_e !== void 0 && 0 > J(_e, te)) Qe !== void 0 && 0 > J(Qe, _e) ? (ye[we] = Qe, ye[lt] = te, we = lt) : (ye[we] = _e, ye[Pe] = te, we = Pe); else { - if (!(Qe !== void 0 && 0 > J(Qe, ne))) break e; - ye[we] = Qe, ye[lt] = ne, we = lt; + if (!(Qe !== void 0 && 0 > J(Qe, te))) break e; + ye[we] = Qe, ye[lt] = te, we = lt; } } } - return P; + return D; } return null; } - function J(ye, P) { - var ne = ye.sortIndex - P.sortIndex; - return ne !== 0 ? ne : ye.id - P.id; + function J(ye, D) { + var te = ye.sortIndex - D.sortIndex; + return te !== 0 ? te : ye.id - D.id; } var Ee = [], ee = [], V = 1, Z = null, le = 3, ge = !1, ke = !1, Ne = !1; function Ve(ye) { - for (var P = A(ee); P !== null; ) { - if (P.callback === null) se(ee); + for (var D = A(ee); D !== null; ) { + if (D.callback === null) ae(ee); else { - if (!(P.startTime <= ye)) break; - se(ee), P.sortIndex = P.expirationTime, j(Ee, P); + if (!(D.startTime <= ye)) break; + ae(ee), D.sortIndex = D.expirationTime, j(Ee, D); } - P = A(ee); + D = A(ee); } } function Ae(ye) { if (Ne = !1, Ve(ye), !ke) if (A(Ee) !== null) ke = !0, f(Le); else { - var P = A(ee); - P !== null && _(Ae, P.startTime - ye); + var D = A(ee); + D !== null && _(Ae, D.startTime - ye); } } - function Le(ye, P) { + function Le(ye, D) { ke = !1, Ne && (Ne = !1, d()), ge = !0; - var ne = le; + var te = le; try { - for (Ve(P), Z = A(Ee); Z !== null && (!(Z.expirationTime > P) || ye && !C()); ) { + for (Ve(D), Z = A(Ee); Z !== null && (!(Z.expirationTime > D) || ye && !C()); ) { var we = Z.callback; if (we !== null) { Z.callback = null, le = Z.priorityLevel; - var Ce = we(Z.expirationTime <= P); - P = u.unstable_now(), typeof Ce == "function" ? Z.callback = Ce : Z === A(Ee) && se(Ee), Ve(P); - } else se(Ee); + var Ce = we(Z.expirationTime <= D); + D = u.unstable_now(), typeof Ce == "function" ? Z.callback = Ce : Z === A(Ee) && ae(Ee), Ve(D); + } else ae(Ee); Z = A(Ee); } if (Z !== null) var Pe = !0; else { var _e = A(ee); - _e !== null && _(Ae, _e.startTime - P), Pe = !1; + _e !== null && _(Ae, _e.startTime - D), Pe = !1; } return Pe; } finally { - Z = null, le = ne, ge = !1; + Z = null, le = te, ge = !1; } } function Ke(ye) { @@ -7956,20 +7986,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho case 1: case 2: case 3: - var P = 3; + var D = 3; break; default: - P = le; + D = le; } - var ne = le; - le = P; + var te = le; + le = D; try { return ye(); } finally { - le = ne; + le = te; } }, u.unstable_pauseExecution = function() { - }, u.unstable_requestPaint = Je, u.unstable_runWithPriority = function(ye, P) { + }, u.unstable_requestPaint = Je, u.unstable_runWithPriority = function(ye, D) { switch (ye) { case 1: case 2: @@ -7980,58 +8010,58 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho default: ye = 3; } - var ne = le; + var te = le; le = ye; try { - return P(); + return D(); } finally { - le = ne; + le = te; } - }, u.unstable_scheduleCallback = function(ye, P, ne) { + }, u.unstable_scheduleCallback = function(ye, D, te) { var we = u.unstable_now(); - if (typeof ne == "object" && ne !== null) { - var Ce = ne.delay; - Ce = typeof Ce == "number" && 0 < Ce ? we + Ce : we, ne = typeof ne.timeout == "number" ? ne.timeout : Ke(ye); - } else ne = Ke(ye), Ce = we; - return ye = { id: V++, callback: P, priorityLevel: ye, startTime: Ce, expirationTime: ne = Ce + ne, sortIndex: -1 }, Ce > we ? (ye.sortIndex = Ce, j(ee, ye), A(Ee) === null && ye === A(ee) && (Ne ? d() : Ne = !0, _(Ae, Ce - we))) : (ye.sortIndex = ne, j(Ee, ye), ke || ge || (ke = !0, f(Le))), ye; + if (typeof te == "object" && te !== null) { + var Ce = te.delay; + Ce = typeof Ce == "number" && 0 < Ce ? we + Ce : we, te = typeof te.timeout == "number" ? te.timeout : Ke(ye); + } else te = Ke(ye), Ce = we; + return ye = { id: V++, callback: D, priorityLevel: ye, startTime: Ce, expirationTime: te = Ce + te, sortIndex: -1 }, Ce > we ? (ye.sortIndex = Ce, j(ee, ye), A(Ee) === null && ye === A(ee) && (Ne ? d() : Ne = !0, _(Ae, Ce - we))) : (ye.sortIndex = te, j(Ee, ye), ke || ge || (ke = !0, f(Le))), ye; }, u.unstable_shouldYield = function() { var ye = u.unstable_now(); Ve(ye); - var P = A(Ee); - return P !== Z && Z !== null && P !== null && P.callback !== null && P.startTime <= ye && P.expirationTime < Z.expirationTime || C(); + var D = A(Ee); + return D !== Z && Z !== null && D !== null && D.callback !== null && D.startTime <= ye && D.expirationTime < Z.expirationTime || C(); }, u.unstable_wrapCallback = function(ye) { - var P = le; + var D = le; return function() { - var ne = le; - le = P; + var te = le; + le = D; try { return ye.apply(this, arguments); } finally { - le = ne; + le = te; } }; }; }, 7727: (i, u, f) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.resetState = function() { - for (var I = [h, b], D = 0; D < I.length; D++) { - var L = I[D]; + for (var I = [h, k], P = 0; P < I.length; P++) { + var L = I[P]; L && L.parentNode && L.parentNode.removeChild(L); } - h = b = null, w = []; + h = k = null, w = []; }, u.log = function() { console.log("bodyTrap ----------"), console.log(w.length); - for (var I = [h, b], D = 0; D < I.length; D++) { - var L = I[D] || {}; + for (var I = [h, k], P = 0; P < I.length; P++) { + var L = I[P] || {}; console.log(L.nodeName, L.className, L.id); } console.log("edn bodyTrap ----------"); }; - var _, d = f(9628), C = (_ = d) && _.__esModule ? _ : { default: _ }, h = void 0, b = void 0, w = []; + var _, d = f(9628), C = (_ = d) && _.__esModule ? _ : { default: _ }, h = void 0, k = void 0, w = []; function N() { w.length !== 0 && w[w.length - 1].focusContent(); } - C.default.subscribe(function(I, D) { - h || b || ((h = document.createElement("div")).setAttribute("data-react-modal-body-trap", ""), h.style.position = "absolute", h.style.opacity = "0", h.setAttribute("tabindex", "0"), h.addEventListener("focus", N), (b = h.cloneNode()).addEventListener("focus", N)), (w = D).length > 0 ? (document.body.firstChild !== h && document.body.insertBefore(h, document.body.firstChild), document.body.lastChild !== b && document.body.appendChild(b)) : (h.parentElement && h.parentElement.removeChild(h), b.parentElement && b.parentElement.removeChild(b)); + C.default.subscribe(function(I, P) { + h || k || ((h = document.createElement("div")).setAttribute("data-react-modal-body-trap", ""), h.style.position = "absolute", h.style.opacity = "0", h.setAttribute("tabindex", "0"), h.addEventListener("focus", N), (k = h.cloneNode()).addEventListener("focus", N)), (w = P).length > 0 ? (document.body.firstChild !== h && document.body.insertBefore(h, document.body.firstChild), document.body.lastChild !== k && document.body.appendChild(k)) : (h.parentElement && h.parentElement.removeChild(h), k.parentElement && k.parentElement.removeChild(k)); }); }, 7785: (i, u, f) => { var _ = f(5072), d = f(2444); @@ -8045,87 +8075,87 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, u.handleBlur = N, u.handleFocus = I, u.markForFocusLater = function() { h.push(document.activeElement); }, u.returnFocus = function() { - var D = arguments.length > 0 && arguments[0] !== void 0 && arguments[0], L = null; + var P = arguments.length > 0 && arguments[0] !== void 0 && arguments[0], L = null; try { - return void (h.length !== 0 && (L = h.pop()).focus({ preventScroll: D })); + return void (h.length !== 0 && (L = h.pop()).focus({ preventScroll: P })); } catch { console.warn(["You tried to return focus to", L, "but it is not in the DOM anymore"].join(" ")); } }, u.popWithoutFocus = function() { h.length > 0 && h.pop(); - }, u.setupScopedFocus = function(D) { - b = D, window.addEventListener ? (window.addEventListener("blur", N, !1), document.addEventListener("focus", I, !0)) : (window.attachEvent("onBlur", N), document.attachEvent("onFocus", I)); + }, u.setupScopedFocus = function(P) { + k = P, window.addEventListener ? (window.addEventListener("blur", N, !1), document.addEventListener("focus", I, !0)) : (window.attachEvent("onBlur", N), document.attachEvent("onFocus", I)); }, u.teardownScopedFocus = function() { - b = null, window.addEventListener ? (window.removeEventListener("blur", N), document.removeEventListener("focus", I)) : (window.detachEvent("onBlur", N), document.detachEvent("onFocus", I)); + k = null, window.addEventListener ? (window.removeEventListener("blur", N), document.removeEventListener("focus", I)) : (window.detachEvent("onBlur", N), document.detachEvent("onFocus", I)); }; - var _, d = f(2411), C = (_ = d) && _.__esModule ? _ : { default: _ }, h = [], b = null, w = !1; + var _, d = f(2411), C = (_ = d) && _.__esModule ? _ : { default: _ }, h = [], k = null, w = !1; function N() { w = !0; } function I() { if (w) { - if (w = !1, !b) return; + if (w = !1, !k) return; setTimeout(function() { - b.contains(document.activeElement) || ((0, C.default)(b)[0] || b).focus(); + k.contains(document.activeElement) || ((0, C.default)(k)[0] || k).focus(); }, 0); } } }, 7860: (i, u, f) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.objectToString = void 0; const _ = f(1099), d = f(5180), C = f(8814); - u.objectToString = (w, N, I, D) => { + u.objectToString = (w, N, I, P) => { if (typeof Buffer == "function" && Buffer.isBuffer(w)) return `Buffer.from(${I(w.toString("base64"))}, 'base64')`; if (typeof f.g == "object" && w === f.g) return h(w, N, I); - const L = b[Object.prototype.toString.call(w)]; - return L ? L(w, N, I, D) : void 0; + const L = k[Object.prototype.toString.call(w)]; + return L ? L(w, N, I, P) : void 0; }; - const h = (w, N, I) => `Function(${I("return this")})()`, b = { "[object Array]": C.arrayToString, "[object Object]": (w, N, I, D) => { + const h = (w, N, I) => `Function(${I("return this")})()`, k = { "[object Array]": C.arrayToString, "[object Object]": (w, N, I, P) => { const L = N ? ` -` : "", ae = N ? " " : "", te = Object.keys(w).reduce(function(R, F) { - const q = w[F], G = I(q, F); +` : "", se = N ? " " : "", ne = Object.keys(w).reduce(function(R, U) { + const q = w[U], G = I(q, U); if (G === void 0) return R; const pe = G.split(` `).join(` ${N}`); - return d.USED_METHOD_KEY.has(q) ? (R.push(`${N}${pe}`), R) : (R.push(`${N}${_.quoteKey(F, I)}:${ae}${pe}`), R); + return d.USED_METHOD_KEY.has(q) ? (R.push(`${N}${pe}`), R) : (R.push(`${N}${_.quoteKey(U, I)}:${se}${pe}`), R); }, []).join(`,${L}`); - return te === "" ? "{}" : `{${L}${te}${L}}`; + return ne === "" ? "{}" : `{${L}${ne}${L}}`; }, "[object Error]": (w, N, I) => `new Error(${I(w.message)})`, "[object Date]": (w) => `new Date(${w.getTime()})`, "[object String]": (w, N, I) => `new String(${I(w.toString())})`, "[object Number]": (w) => `new Number(${w})`, "[object Boolean]": (w) => `new Boolean(${w})`, "[object Set]": (w, N, I) => `new Set(${I(Array.from(w))})`, "[object Map]": (w, N, I) => `new Map(${I(Array.from(w))})`, "[object RegExp]": String, "[object global]": h, "[object Window]": h }; }, 7965: (i, u, f) => { var _ = f(6426), d = { "text/plain": "Text", "text/html": "Url", default: "Text" }; i.exports = function(C, h) { - var b, w, N, I, D, L, ae = !1; - h || (h = {}), b = h.debug || !1; + var k, w, N, I, P, L, se = !1; + h || (h = {}), k = h.debug || !1; try { - if (N = _(), I = document.createRange(), D = document.getSelection(), (L = document.createElement("span")).textContent = C, L.ariaHidden = "true", L.style.all = "unset", L.style.position = "fixed", L.style.top = 0, L.style.clip = "rect(0, 0, 0, 0)", L.style.whiteSpace = "pre", L.style.webkitUserSelect = "text", L.style.MozUserSelect = "text", L.style.msUserSelect = "text", L.style.userSelect = "text", L.addEventListener("copy", function(te) { - if (te.stopPropagation(), h.format) if (te.preventDefault(), te.clipboardData === void 0) { - b && console.warn("unable to use e.clipboardData"), b && console.warn("trying IE specific stuff"), window.clipboardData.clearData(); + if (N = _(), I = document.createRange(), P = document.getSelection(), (L = document.createElement("span")).textContent = C, L.ariaHidden = "true", L.style.all = "unset", L.style.position = "fixed", L.style.top = 0, L.style.clip = "rect(0, 0, 0, 0)", L.style.whiteSpace = "pre", L.style.webkitUserSelect = "text", L.style.MozUserSelect = "text", L.style.msUserSelect = "text", L.style.userSelect = "text", L.addEventListener("copy", function(ne) { + if (ne.stopPropagation(), h.format) if (ne.preventDefault(), ne.clipboardData === void 0) { + k && console.warn("unable to use e.clipboardData"), k && console.warn("trying IE specific stuff"), window.clipboardData.clearData(); var R = d[h.format] || d.default; window.clipboardData.setData(R, C); - } else te.clipboardData.clearData(), te.clipboardData.setData(h.format, C); - h.onCopy && (te.preventDefault(), h.onCopy(te.clipboardData)); - }), document.body.appendChild(L), I.selectNodeContents(L), D.addRange(I), !document.execCommand("copy")) throw new Error("copy command was unsuccessful"); - ae = !0; - } catch (te) { - b && console.error("unable to copy using execCommand: ", te), b && console.warn("trying IE specific stuff"); + } else ne.clipboardData.clearData(), ne.clipboardData.setData(h.format, C); + h.onCopy && (ne.preventDefault(), h.onCopy(ne.clipboardData)); + }), document.body.appendChild(L), I.selectNodeContents(L), P.addRange(I), !document.execCommand("copy")) throw new Error("copy command was unsuccessful"); + se = !0; + } catch (ne) { + k && console.error("unable to copy using execCommand: ", ne), k && console.warn("trying IE specific stuff"); try { - window.clipboardData.setData(h.format || "text", C), h.onCopy && h.onCopy(window.clipboardData), ae = !0; + window.clipboardData.setData(h.format || "text", C), h.onCopy && h.onCopy(window.clipboardData), se = !0; } catch (R) { - b && console.error("unable to copy using clipboardData: ", R), b && console.error("falling back to prompt"), w = (function(F) { + k && console.error("unable to copy using clipboardData: ", R), k && console.error("falling back to prompt"), w = (function(U) { var q = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C"; - return F.replace(/#{\s*key\s*}/g, q); + return U.replace(/#{\s*key\s*}/g, q); })("message" in h ? h.message : "Copy to clipboard: #{key}, Enter"), window.prompt(w, C); } } finally { - D && (typeof D.removeRange == "function" ? D.removeRange(I) : D.removeAllRanges()), L && document.body.removeChild(L), N(); + P && (typeof P.removeRange == "function" ? P.removeRange(I) : P.removeAllRanges()), L && document.body.removeChild(L), N(); } - return ae; + return se; }; }, 8142: (i, u, f) => { i = f.nmd(i); - var _ = "__lodash_hash_undefined__", d = 9007199254740991, C = "[object Arguments]", h = "[object Array]", b = "[object Boolean]", w = "[object Date]", N = "[object Error]", I = "[object Function]", D = "[object Map]", L = "[object Number]", ae = "[object Object]", te = "[object Promise]", R = "[object RegExp]", F = "[object Set]", q = "[object String]", G = "[object Symbol]", pe = "[object WeakMap]", oe = "[object ArrayBuffer]", fe = "[object DataView]", he = /^\[object .+?Constructor\]$/, S = /^(?:0|[1-9]\d*)$/, j = {}; - j["[object Float32Array]"] = j["[object Float64Array]"] = j["[object Int8Array]"] = j["[object Int16Array]"] = j["[object Int32Array]"] = j["[object Uint8Array]"] = j["[object Uint8ClampedArray]"] = j["[object Uint16Array]"] = j["[object Uint32Array]"] = !0, j[C] = j[h] = j[oe] = j[b] = j[fe] = j[w] = j[N] = j[I] = j[D] = j[L] = j[ae] = j[R] = j[F] = j[q] = j[pe] = !1; - var A = typeof f.g == "object" && f.g && f.g.Object === Object && f.g, se = typeof self == "object" && self && self.Object === Object && self, J = A || se || Function("return this")(), Ee = u && !u.nodeType && u, ee = Ee && i && !i.nodeType && i, V = ee && ee.exports === Ee, Z = V && A.process, le = (function() { + var _ = "__lodash_hash_undefined__", d = 9007199254740991, C = "[object Arguments]", h = "[object Array]", k = "[object Boolean]", w = "[object Date]", N = "[object Error]", I = "[object Function]", P = "[object Map]", L = "[object Number]", se = "[object Object]", ne = "[object Promise]", R = "[object RegExp]", U = "[object Set]", q = "[object String]", G = "[object Symbol]", pe = "[object WeakMap]", oe = "[object ArrayBuffer]", fe = "[object DataView]", he = /^\[object .+?Constructor\]$/, S = /^(?:0|[1-9]\d*)$/, j = {}; + j["[object Float32Array]"] = j["[object Float64Array]"] = j["[object Int8Array]"] = j["[object Int16Array]"] = j["[object Int32Array]"] = j["[object Uint8Array]"] = j["[object Uint8ClampedArray]"] = j["[object Uint16Array]"] = j["[object Uint32Array]"] = !0, j[C] = j[h] = j[oe] = j[k] = j[fe] = j[w] = j[N] = j[I] = j[P] = j[L] = j[se] = j[R] = j[U] = j[q] = j[pe] = !1; + var A = typeof f.g == "object" && f.g && f.g.Object === Object && f.g, ae = typeof self == "object" && self && self.Object === Object && self, J = A || ae || Function("return this")(), Ee = u && !u.nodeType && u, ee = Ee && i && !i.nodeType && i, V = ee && ee.exports === Ee, Z = V && A.process, le = (function() { try { return Z && Z.binding && Z.binding("util"); } catch { @@ -8147,7 +8177,7 @@ ${N}`); be[++Y] = De; }), be; } - var Ae, Le, Ke, Je = Array.prototype, ye = Function.prototype, P = Object.prototype, ne = J["__core-js_shared__"], we = ye.toString, Ce = P.hasOwnProperty, Pe = (Ae = /[^.]+$/.exec(ne && ne.keys && ne.keys.IE_PROTO || "")) ? "Symbol(src)_1." + Ae : "", _e = P.toString, lt = RegExp("^" + we.call(Ce).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Qe = V ? J.Buffer : void 0, et = J.Symbol, Pt = J.Uint8Array, ko = P.propertyIsEnumerable, Dt = Je.splice, Gt = et ? et.toStringTag : void 0, On = Object.getOwnPropertySymbols, Nn = Qe ? Qe.isBuffer : void 0, wo = (Le = Object.keys, Ke = Object, function(M) { + var Ae, Le, Ke, Je = Array.prototype, ye = Function.prototype, D = Object.prototype, te = J["__core-js_shared__"], we = ye.toString, Ce = D.hasOwnProperty, Pe = (Ae = /[^.]+$/.exec(te && te.keys && te.keys.IE_PROTO || "")) ? "Symbol(src)_1." + Ae : "", _e = D.toString, lt = RegExp("^" + we.call(Ce).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Qe = V ? J.Buffer : void 0, et = J.Symbol, Pt = J.Uint8Array, ko = D.propertyIsEnumerable, Dt = Je.splice, Gt = et ? et.toStringTag : void 0, On = Object.getOwnPropertySymbols, Nn = Qe ? Qe.isBuffer : void 0, wo = (Le = Object.keys, Ke = Object, function(M) { return Le(Ke(M)); }), Bn = In(J, "DataView"), Hn = In(J, "Map"), an = In(J, "Promise"), pn = In(J, "Set"), sr = In(J, "WeakMap"), $t = In(Object, "create"), Wr = mn(Bn), qr = mn(Hn), _o = mn(an), Eo = mn(pn), xo = mn(sr), Wn = et ? et.prototype : void 0, Kt = Wn ? Wn.valueOf : void 0; function zt(M) { @@ -8210,7 +8240,7 @@ ${N}`); } function Qr(M, Y, be, De, tt) { return M === Y || (M == null || Y == null || !Rn(M) && !Rn(Y) ? M != M && Y != Y : (function($e, Ge, rt, At, ft, ht) { - var kt = ct($e), jt = ct(Ge), yt = kt ? h : hn($e), bt = jt ? h : hn(Ge), yn = (yt = yt == C ? ae : yt) == ae, ur = (bt = bt == C ? ae : bt) == ae, Mn = yt == bt; + var kt = ct($e), jt = ct(Ge), yt = kt ? h : hn($e), bt = jt ? h : hn(Ge), yn = (yt = yt == C ? se : yt) == se, ur = (bt = bt == C ? se : bt) == se, Mn = yt == bt; if (Mn && Dr($e)) { if (!Dr(Ge)) return !1; kt = !0, yn = !1; @@ -8222,7 +8252,7 @@ ${N}`); nt = nt.buffer, Ze = Ze.buffer; case oe: return !(nt.byteLength != Ze.byteLength || !ut(new Pt(nt), new Pt(Ze))); - case b: + case k: case w: case L: return Yr(+nt, +Ze); @@ -8231,9 +8261,9 @@ ${N}`); case R: case q: return nt == Ze + ""; - case D: + case P: var Tt = Ne; - case F: + case U: var Lt = 1 & vn; if (Tt || (Tt = Ve), nt.size != Ze.size && !Lt) return !1; var kn = wt.get(nt); @@ -8287,7 +8317,7 @@ ${N}`); })(M)) && (Kn(M) ? lt : he).test(mn(M)); } function Nr(M) { - if (be = (Y = M) && Y.constructor, De = typeof be == "function" && be.prototype || P, Y !== De) return wo(M); + if (be = (Y = M) && Y.constructor, De = typeof be == "function" && be.prototype || D, Y !== De) return wo(M); var Y, be, De, tt = []; for (var $e in Object(M)) Ce.call(M, $e) && $e != "constructor" && tt.push($e); return tt; @@ -8437,17 +8467,17 @@ ${N}`); function Yr(M, Y) { return M === Y || M != M && Y != Y; } - (Bn && hn(new Bn(new ArrayBuffer(1))) != fe || Hn && hn(new Hn()) != D || an && hn(an.resolve()) != te || pn && hn(new pn()) != F || sr && hn(new sr()) != pe) && (hn = function(M) { - var Y = fn(M), be = Y == ae ? M.constructor : void 0, De = be ? mn(be) : ""; + (Bn && hn(new Bn(new ArrayBuffer(1))) != fe || Hn && hn(new Hn()) != P || an && hn(an.resolve()) != ne || pn && hn(new pn()) != U || sr && hn(new sr()) != pe) && (hn = function(M) { + var Y = fn(M), be = Y == se ? M.constructor : void 0, De = be ? mn(be) : ""; if (De) switch (De) { case Wr: return fe; case qr: - return D; + return P; case _o: - return te; + return ne; case Eo: - return F; + return U; case xo: return pe; } @@ -8520,8 +8550,8 @@ ${N}`); const C = d; }, 8814: (i, u) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.arrayToString = void 0, u.arrayToString = (f, _, d) => { - const C = f.map(function(b, w) { - const N = d(b, w); + const C = f.map(function(k, w) { + const N = d(k, w); return N === void 0 ? String(N) : _ + N.split(` `).join(` ${_}`); @@ -8543,31 +8573,31 @@ ${_}`); var C = { injectType: "singletonStyleTag", attributes: { "data-cke-inspector": !0 }, insert: "head", singleton: !0 }; _(d, C), i.exports = d.locals || {}; }, 8989: (i, u) => { - var f = 60103, _ = 60106, d = 60107, C = 60108, h = 60114, b = 60109, w = 60110, N = 60112, I = 60113, D = 60120, L = 60115, ae = 60116; + var f = 60103, _ = 60106, d = 60107, C = 60108, h = 60114, k = 60109, w = 60110, N = 60112, I = 60113, P = 60120, L = 60115, se = 60116; if (typeof Symbol == "function" && Symbol.for) { - var te = Symbol.for; - f = te("react.element"), _ = te("react.portal"), d = te("react.fragment"), C = te("react.strict_mode"), h = te("react.profiler"), b = te("react.provider"), w = te("react.context"), N = te("react.forward_ref"), I = te("react.suspense"), D = te("react.suspense_list"), L = te("react.memo"), ae = te("react.lazy"), te("react.block"), te("react.server.block"), te("react.fundamental"), te("react.debug_trace_mode"), te("react.legacy_hidden"); + var ne = Symbol.for; + f = ne("react.element"), _ = ne("react.portal"), d = ne("react.fragment"), C = ne("react.strict_mode"), h = ne("react.profiler"), k = ne("react.provider"), w = ne("react.context"), N = ne("react.forward_ref"), I = ne("react.suspense"), P = ne("react.suspense_list"), L = ne("react.memo"), se = ne("react.lazy"), ne("react.block"), ne("react.server.block"), ne("react.fundamental"), ne("react.debug_trace_mode"), ne("react.legacy_hidden"); } - function R(F) { - if (typeof F == "object" && F !== null) { - var q = F.$$typeof; + function R(U) { + if (typeof U == "object" && U !== null) { + var q = U.$$typeof; switch (q) { case f: - switch (F = F.type) { + switch (U = U.type) { case d: case h: case C: case I: - case D: - return F; + case P: + return U; default: - switch (F = F && F.$$typeof) { + switch (U = U && U.$$typeof) { case w: case N: - case ae: + case se: case L: - case b: - return F; + case k: + return U; default: return q; } @@ -8577,8 +8607,8 @@ ${_}`); } } } - u.isContextConsumer = function(F) { - return R(F) === w; + u.isContextConsumer = function(U) { + return R(U) === w; }; }, 9090: (i, u, f) => { Object.defineProperty(u, "__esModule", { value: !0 }); @@ -8602,14 +8632,14 @@ ${_}`); return function(fe, he, S) { return he && oe(fe.prototype, he), S && oe(fe, S), fe; }; - })(), h = f(6540), b = F(f(5556)), w = R(f(7791)), N = F(f(7067)), I = R(f(6462)), D = R(f(4838)), L = f(834), ae = F(L), te = F(f(9628)); + })(), h = f(6540), k = U(f(5556)), w = R(f(7791)), N = U(f(7067)), I = R(f(6462)), P = R(f(4838)), L = f(834), se = U(L), ne = U(f(9628)); function R(oe) { if (oe && oe.__esModule) return oe; var fe = {}; if (oe != null) for (var he in oe) Object.prototype.hasOwnProperty.call(oe, he) && (fe[he] = oe[he]); return fe.default = oe, fe; } - function F(oe) { + function U(oe) { return oe && oe.__esModule ? oe : { default: oe }; } f(7727); @@ -8627,8 +8657,8 @@ ${_}`); }, S.setContentRef = function(j) { S.content = j, S.props.contentRef && S.props.contentRef(j); }, S.afterClose = function() { - var j = S.props, A = j.appElement, se = j.ariaHideApp, J = j.htmlOpenClassName, Ee = j.bodyOpenClassName, ee = j.parentSelector, V = ee && ee().ownerDocument || document; - Ee && D.remove(V.body, Ee), J && D.remove(V.getElementsByTagName("html")[0], J), se && G > 0 && (G -= 1) === 0 && I.show(A), S.props.shouldFocusAfterRender && (S.props.shouldReturnFocusAfterClose ? (w.returnFocus(S.props.preventScroll), w.teardownScopedFocus()) : w.popWithoutFocus()), S.props.onAfterClose && S.props.onAfterClose(), te.default.deregister(S); + var j = S.props, A = j.appElement, ae = j.ariaHideApp, J = j.htmlOpenClassName, Ee = j.bodyOpenClassName, ee = j.parentSelector, V = ee && ee().ownerDocument || document; + Ee && P.remove(V.body, Ee), J && P.remove(V.getElementsByTagName("html")[0], J), ae && G > 0 && (G -= 1) === 0 && I.show(A), S.props.shouldFocusAfterRender && (S.props.shouldReturnFocusAfterClose ? (w.returnFocus(S.props.preventScroll), w.teardownScopedFocus()) : w.popWithoutFocus()), S.props.onAfterClose && S.props.onAfterClose(), ne.default.deregister(S); }, S.open = function() { S.beforeOpen(), S.state.afterOpen && S.state.beforeClose ? (clearTimeout(S.closeTimer), S.setState({ beforeClose: !1 })) : (S.props.shouldFocusAfterRender && (w.setupScopedFocus(S.node), w.markForFocusLater()), S.setState({ isOpen: !0 }, function() { S.openAnimationFrame = requestAnimationFrame(function() { @@ -8671,11 +8701,11 @@ ${_}`); }, S.contentHasFocus = function() { return document.activeElement === S.content || S.content.contains(document.activeElement); }, S.buildClassName = function(j, A) { - var se = (A === void 0 ? "undefined" : d(A)) === "object" ? A : { base: q[j], afterOpen: q[j] + "--after-open", beforeClose: q[j] + "--before-close" }, J = se.base; - return S.state.afterOpen && (J = J + " " + se.afterOpen), S.state.beforeClose && (J = J + " " + se.beforeClose), typeof A == "string" && A ? J + " " + A : J; + var ae = (A === void 0 ? "undefined" : d(A)) === "object" ? A : { base: q[j], afterOpen: q[j] + "--after-open", beforeClose: q[j] + "--before-close" }, J = ae.base; + return S.state.afterOpen && (J = J + " " + ae.afterOpen), S.state.beforeClose && (J = J + " " + ae.beforeClose), typeof A == "string" && A ? J + " " + A : J; }, S.attributesFromObject = function(j, A) { - return Object.keys(A).reduce(function(se, J) { - return se[j + "-" + J] = A[J], se; + return Object.keys(A).reduce(function(ae, J) { + return ae[j + "-" + J] = A[J], ae; }, {}); }, S.state = { afterOpen: !1, beforeClose: !1 }, S.shouldClose = null, S.moveFromContentToOverlay = null, S; } @@ -8689,16 +8719,16 @@ ${_}`); } }, { key: "componentWillUnmount", value: function() { this.state.isOpen && this.afterClose(), clearTimeout(this.closeTimer), cancelAnimationFrame(this.openAnimationFrame); } }, { key: "beforeOpen", value: function() { - var he = this.props, S = he.appElement, j = he.ariaHideApp, A = he.htmlOpenClassName, se = he.bodyOpenClassName, J = he.parentSelector, Ee = J && J().ownerDocument || document; - se && D.add(Ee.body, se), A && D.add(Ee.getElementsByTagName("html")[0], A), j && (G += 1, I.hide(S)), te.default.register(this); + var he = this.props, S = he.appElement, j = he.ariaHideApp, A = he.htmlOpenClassName, ae = he.bodyOpenClassName, J = he.parentSelector, Ee = J && J().ownerDocument || document; + ae && P.add(Ee.body, ae), A && P.add(Ee.getElementsByTagName("html")[0], A), j && (G += 1, I.hide(S)), ne.default.register(this); } }, { key: "render", value: function() { - var he = this.props, S = he.id, j = he.className, A = he.overlayClassName, se = he.defaultStyles, J = he.children, Ee = j ? {} : se.content, ee = A ? {} : se.overlay; + var he = this.props, S = he.id, j = he.className, A = he.overlayClassName, ae = he.defaultStyles, J = he.children, Ee = j ? {} : ae.content, ee = A ? {} : ae.overlay; if (this.shouldBeClosed()) return null; var V = { ref: this.setOverlayRef, className: this.buildClassName("overlay", A), style: _({}, ee, this.props.style.overlay), onClick: this.handleOverlayOnClick, onMouseDown: this.handleOverlayOnMouseDown }, Z = _({ id: S, ref: this.setContentRef, style: _({}, Ee, this.props.style.content), className: this.buildClassName("content", j), tabIndex: "-1", onKeyDown: this.handleKeyDown, onMouseDown: this.handleContentOnMouseDown, onMouseUp: this.handleContentOnMouseUp, onClick: this.handleContentOnClick, role: this.props.role, "aria-label": this.props.contentLabel }, this.attributesFromObject("aria", _({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), { "data-testid": this.props.testId }), le = this.props.contentElement(Z, J); return this.props.overlayElement(V, le); } }]), fe; })(h.Component); - pe.defaultProps = { style: { overlay: {}, content: {} }, defaultStyles: {} }, pe.propTypes = { isOpen: b.default.bool.isRequired, defaultStyles: b.default.shape({ content: b.default.object, overlay: b.default.object }), style: b.default.shape({ content: b.default.object, overlay: b.default.object }), className: b.default.oneOfType([b.default.string, b.default.object]), overlayClassName: b.default.oneOfType([b.default.string, b.default.object]), parentSelector: b.default.func, bodyOpenClassName: b.default.string, htmlOpenClassName: b.default.string, ariaHideApp: b.default.bool, appElement: b.default.oneOfType([b.default.instanceOf(ae.default), b.default.instanceOf(L.SafeHTMLCollection), b.default.instanceOf(L.SafeNodeList), b.default.arrayOf(b.default.instanceOf(ae.default))]), onAfterOpen: b.default.func, onAfterClose: b.default.func, onRequestClose: b.default.func, closeTimeoutMS: b.default.number, shouldFocusAfterRender: b.default.bool, shouldCloseOnOverlayClick: b.default.bool, shouldReturnFocusAfterClose: b.default.bool, preventScroll: b.default.bool, role: b.default.string, contentLabel: b.default.string, aria: b.default.object, data: b.default.object, children: b.default.node, shouldCloseOnEsc: b.default.bool, overlayRef: b.default.func, contentRef: b.default.func, id: b.default.string, overlayElement: b.default.func, contentElement: b.default.func, testId: b.default.string }, u.default = pe, i.exports = u.default; + pe.defaultProps = { style: { overlay: {}, content: {} }, defaultStyles: {} }, pe.propTypes = { isOpen: k.default.bool.isRequired, defaultStyles: k.default.shape({ content: k.default.object, overlay: k.default.object }), style: k.default.shape({ content: k.default.object, overlay: k.default.object }), className: k.default.oneOfType([k.default.string, k.default.object]), overlayClassName: k.default.oneOfType([k.default.string, k.default.object]), parentSelector: k.default.func, bodyOpenClassName: k.default.string, htmlOpenClassName: k.default.string, ariaHideApp: k.default.bool, appElement: k.default.oneOfType([k.default.instanceOf(se.default), k.default.instanceOf(L.SafeHTMLCollection), k.default.instanceOf(L.SafeNodeList), k.default.arrayOf(k.default.instanceOf(se.default))]), onAfterOpen: k.default.func, onAfterClose: k.default.func, onRequestClose: k.default.func, closeTimeoutMS: k.default.number, shouldFocusAfterRender: k.default.bool, shouldCloseOnOverlayClick: k.default.bool, shouldReturnFocusAfterClose: k.default.bool, preventScroll: k.default.bool, role: k.default.string, contentLabel: k.default.string, aria: k.default.object, data: k.default.object, children: k.default.node, shouldCloseOnEsc: k.default.bool, overlayRef: k.default.func, contentRef: k.default.func, id: k.default.string, overlayElement: k.default.func, contentElement: k.default.func, testId: k.default.string }, u.default = pe, i.exports = u.default; }, 9628: (i, u) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.log = function() { console.log("portalOpenInstances ----------"), console.log(_.openInstances.length), _.openInstances.forEach(function(d) { @@ -8709,18 +8739,18 @@ ${_}`); }; var f = function d() { var C = this; - (function(h, b) { - if (!(h instanceof b)) throw new TypeError("Cannot call a class as a function"); + (function(h, k) { + if (!(h instanceof k)) throw new TypeError("Cannot call a class as a function"); })(this, d), this.register = function(h) { C.openInstances.indexOf(h) === -1 && (C.openInstances.push(h), C.emit("register")); }, this.deregister = function(h) { - var b = C.openInstances.indexOf(h); - b !== -1 && (C.openInstances.splice(b, 1), C.emit("deregister")); + var k = C.openInstances.indexOf(h); + k !== -1 && (C.openInstances.splice(k, 1), C.emit("deregister")); }, this.subscribe = function(h) { C.subscribers.push(h); }, this.emit = function(h) { - C.subscribers.forEach(function(b) { - return b(h, C.openInstances.slice()); + C.subscribers.forEach(function(k) { + return k(h, C.openInstances.slice()); }); }, this.openInstances = [], this.subscribers = []; }, _ = new f(); @@ -8753,7 +8783,7 @@ ${_}`); var u = T[i]; if (u !== void 0) return u.exports; var f = T[i] = { id: i, loaded: !1, exports: {} }; - return v[i](f, f.exports, O), f.loaded = !0, f.exports; + return b[i](f, f.exports, O), f.loaded = !0, f.exports; } O.n = (i) => { var u = i && i.__esModule ? () => i.default : () => i; @@ -8770,9 +8800,9 @@ ${_}`); })(), O.o = (i, u) => Object.prototype.hasOwnProperty.call(i, u), O.r = (i) => { typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(i, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(i, "__esModule", { value: !0 }); }, O.nmd = (i) => (i.paths = [], i.children || (i.children = []), i), O.nc = void 0; - var K = {}; + var Q = {}; return (() => { - O.d(K, { default: () => Be }); + O.d(Q, { default: () => Be }); var i = O(6540), u = O(961); function f(l) { return "Minified Redux error #" + l + "; visit https://redux.js.org/Errors?code=" + l + " for the full message or use the non-minified dev environment for full errors. "; @@ -8785,29 +8815,29 @@ ${_}`); for (var o = l; Object.getPrototypeOf(o) !== null; ) o = Object.getPrototypeOf(o); return Object.getPrototypeOf(l) === o; } - function b(l, o, s) { + function k(l, o, s) { var c; if (typeof o == "function" && typeof s == "function" || typeof s == "function" && typeof arguments[3] == "function") throw new Error(f(0)); if (typeof o == "function" && s === void 0 && (s = o, o = void 0), s !== void 0) { if (typeof s != "function") throw new Error(f(1)); - return s(b)(l, o); + return s(k)(l, o); } if (typeof l != "function") throw new Error(f(2)); - var g = l, y = o, x = [], z = x, Q = !1; + var g = l, y = o, x = [], z = x, K = !1; function X() { z === x && (z = x.slice()); } function ie() { - if (Q) throw new Error(f(3)); + if (K) throw new Error(f(3)); return y; } function ue(de) { if (typeof de != "function") throw new Error(f(4)); - if (Q) throw new Error(f(5)); + if (K) throw new Error(f(5)); var Oe = !0; return X(), z.push(de), function() { if (Oe) { - if (Q) throw new Error(f(6)); + if (K) throw new Error(f(6)); Oe = !1, X(); var Te = z.indexOf(de); z.splice(Te, 1), x = null; @@ -8817,11 +8847,11 @@ ${_}`); function me(de) { if (!h(de)) throw new Error(f(7)); if (de.type === void 0) throw new Error(f(8)); - if (Q) throw new Error(f(9)); + if (K) throw new Error(f(9)); try { - Q = !0, y = g(y, de); + K = !0, y = g(y, de); } finally { - Q = !1; + K = !1; } for (var Oe = x = z, Te = 0; Te < Oe.length; Te++) (0, Oe[Te])(); @@ -8847,31 +8877,31 @@ ${_}`); l(); }, I = function() { return N; - }, D = { notify: function() { + }, P = { notify: function() { }, get: function() { return []; } }; function L(l, o) { - var s, c = D; + var s, c = P; function g() { x.onStateChange && x.onStateChange(); } function y() { s || (s = o ? o.addNestedSub(g) : l.subscribe(g), c = (function() { - var z = I(), Q = null, X = null; + var z = I(), K = null, X = null; return { clear: function() { - Q = null, X = null; + K = null, X = null; }, notify: function() { z(function() { - for (var ie = Q; ie; ) ie.callback(), ie = ie.next; + for (var ie = K; ie; ) ie.callback(), ie = ie.next; }); }, get: function() { - for (var ie = [], ue = Q; ue; ) ie.push(ue), ue = ue.next; + for (var ie = [], ue = K; ue; ) ie.push(ue), ue = ue.next; return ie; }, subscribe: function(ie) { var ue = !0, me = X = { callback: ie, next: null, prev: X }; - return me.prev ? me.prev.next = me : Q = me, function() { - ue && Q !== null && (ue = !1, me.next ? me.next.prev = me.prev : X = me.prev, me.prev ? me.prev.next = me.next : Q = me.next); + return me.prev ? me.prev.next = me : K = me, function() { + ue && K !== null && (ue = !1, me.next ? me.next.prev = me.prev : X = me.prev, me.prev ? me.prev.next = me.next : K = me.next); }; } }; })()); @@ -8883,21 +8913,21 @@ ${_}`); }, handleChangeWrapper: g, isSubscribed: function() { return !!s; }, trySubscribe: y, tryUnsubscribe: function() { - s && (s(), s = void 0, c.clear(), c = D); + s && (s(), s = void 0, c.clear(), c = P); }, getListeners: function() { return c; } }; return x; } - var ae = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? i.useLayoutEffect : i.useEffect; - const te = function(l) { + var se = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? i.useLayoutEffect : i.useEffect; + const ne = function(l) { var o = l.store, s = l.context, c = l.children, g = (0, i.useMemo)(function() { var z = L(o); return { store: o, subscription: z }; }, [o]), y = (0, i.useMemo)(function() { return o.getState(); }, [o]); - ae(function() { + se(function() { var z = g.subscription; return z.onStateChange = z.notifyNestedSubs, z.trySubscribe(), y !== o.getState() && z.notifyNestedSubs(), function() { z.tryUnsubscribe(), z.onStateChange = null; @@ -8915,7 +8945,7 @@ ${_}`); return l; }, R.apply(null, arguments); } - function F(l, o) { + function U(l, o) { if (l == null) return {}; var s = {}; for (var c in l) if ({}.hasOwnProperty.call(l, c)) { @@ -8930,14 +8960,14 @@ ${_}`); return [o.payload, s + 1]; } function A(l, o, s) { - ae(function() { + se(function() { return l.apply(void 0, o); }, s); } - function se(l, o, s, c, g, y, x) { + function ae(l, o, s, c, g, y, x) { l.current = c, o.current = g, s.current = !1, y.current && (y.current = null, x()); } - function J(l, o, s, c, g, y, x, z, Q, X) { + function J(l, o, s, c, g, y, x, z, K, X) { if (l) { var ie = !1, ue = null, me = function() { if (!ie) { @@ -8947,7 +8977,7 @@ ${_}`); } catch (ze) { Oe = ze, ue = ze; } - Oe || (ue = null), de === y.current ? x.current || Q() : (y.current = de, z.current = de, x.current = !0, X({ type: "STORE_UPDATED", payload: { error: Oe } })); + Oe || (ue = null), de === y.current ? x.current || K() : (y.current = de, z.current = de, x.current = !0, X({ type: "STORE_UPDATED", payload: { error: Oe } })); } }; return s.onStateChange = me, s.trySubscribe(), me(), function() { @@ -8962,15 +8992,15 @@ ${_}`); o === void 0 && (o = {}); var s = o, c = s.getDisplayName, g = c === void 0 ? function(je) { return "ConnectAdvanced(" + je + ")"; - } : c, y = s.methodName, x = y === void 0 ? "connectAdvanced" : y, z = s.renderCountProp, Q = z === void 0 ? void 0 : z, X = s.shouldHandleStateChanges, ie = X === void 0 || X, ue = s.storeKey, me = ue === void 0 ? "store" : ue, de = (s.withRef, s.forwardRef), Oe = de !== void 0 && de, Te = s.context, ze = Te === void 0 ? w : Te, st = F(s, oe), He = ze; + } : c, y = s.methodName, x = y === void 0 ? "connectAdvanced" : y, z = s.renderCountProp, K = z === void 0 ? void 0 : z, X = s.shouldHandleStateChanges, ie = X === void 0 || X, ue = s.storeKey, me = ue === void 0 ? "store" : ue, de = (s.withRef, s.forwardRef), Oe = de !== void 0 && de, Te = s.context, ze = Te === void 0 ? w : Te, st = U(s, oe), He = ze; return function(je) { - var dt = je.displayName || je.name || "Component", vt = g(dt), Ht = R({}, st, { getDisplayName: g, methodName: x, renderCountProp: Q, shouldHandleStateChanges: ie, storeKey: me, displayName: vt, wrappedComponentName: dt, WrappedComponent: je }), xt = st.pure, It = xt ? i.useMemo : function(it) { + var dt = je.displayName || je.name || "Component", vt = g(dt), Ht = R({}, st, { getDisplayName: g, methodName: x, renderCountProp: K, shouldHandleStateChanges: ie, storeKey: me, displayName: vt, wrappedComponentName: dt, WrappedComponent: je }), xt = st.pure, It = xt ? i.useMemo : function(it) { return it(); }; function St(it) { var xn = (0, i.useMemo)(function() { - var ir = it.reactReduxForwardedRef, Uo = F(it, fe); - return [it.context, ir, Uo]; + var ir = it.reactReduxForwardedRef, Fo = U(it, fe); + return [it.context, ir, Fo]; }, [it]), jn = xn[0], lo = xn[1], Wt = xn[2], Jt = (0, i.useMemo)(function() { return jn && jn.Consumer && (0, pe.isContextConsumer)(i.createElement(jn.Consumer, null)) ? jn : He; }, [jn, He]), en = (0, i.useContext)(Jt), qt = !!it.store && !!it.store.getState && !!it.store.dispatch; @@ -8979,18 +9009,18 @@ ${_}`); return (function(ir) { return l(ir.dispatch, Ht); })(cn); - }, [cn]), Ft = (0, i.useMemo)(function() { + }, [cn]), Ut = (0, i.useMemo)(function() { if (!ie) return S; - var ir = L(cn, qt ? null : en.subscription), Uo = ir.notifyNestedSubs.bind(ir); - return [ir, Uo]; - }, [cn, qt, en]), un = Ft[0], or = Ft[1], $i = (0, i.useMemo)(function() { + var ir = L(cn, qt ? null : en.subscription), Fo = ir.notifyNestedSubs.bind(ir); + return [ir, Fo]; + }, [cn, qt, en]), un = Ut[0], or = Ut[1], $i = (0, i.useMemo)(function() { return qt ? en : R({}, en, { subscription: un }); }, [qt, en, un]), Bi = (0, i.useReducer)(j, he, Ee), tn = Bi[0][0], Ta = Bi[1]; if (tn && tn.error) throw tn.error; - var Fo = (0, i.useRef)(), nn = (0, i.useRef)(Wt), Ur = (0, i.useRef)(), Vo = (0, i.useRef)(!1), wr = It(function() { - return Ur.current && Wt === nn.current ? Ur.current : Nt(cn.getState(), Wt); + var Uo = (0, i.useRef)(), nn = (0, i.useRef)(Wt), Fr = (0, i.useRef)(), Vo = (0, i.useRef)(!1), wr = It(function() { + return Fr.current && Wt === nn.current ? Fr.current : Nt(cn.getState(), Wt); }, [cn, tn, Wt]); - A(se, [nn, Fo, Vo, Wt, wr, Ur, or]), A(J, [ie, cn, un, Nt, nn, Fo, Vo, Ur, or, Ta], [cn, un, Nt]); + A(ae, [nn, Uo, Vo, Wt, wr, Fr, or]), A(J, [ie, cn, un, Nt, nn, Uo, Vo, Fr, or, Ta], [cn, un, Nt]); var co = (0, i.useMemo)(function() { return i.createElement(je, R({}, wr, { ref: lo })); }, [lo, je, wr]); @@ -9054,9 +9084,9 @@ ${_}`); return l && typeof l == "object" ? le(function(o) { return (function(s, c) { var g = {}, y = function(z) { - var Q = s[z]; - typeof Q == "function" && (g[z] = function() { - return c(Q.apply(void 0, arguments)); + var K = s[z]; + typeof K == "function" && (g[z] = function() { + return c(K.apply(void 0, arguments)); }); }; for (var x in s) y(x); @@ -9078,8 +9108,8 @@ ${_}`); return function(s, c) { c.displayName; var g, y = c.pure, x = c.areMergedPropsEqual, z = !1; - return function(Q, X, ie) { - var ue = o(Q, X, ie); + return function(K, X, ie) { + var ue = o(K, X, ie); return z ? y && x(ue, g) || (g = ue) : (z = !0, g = ue), g; }; }; @@ -9096,20 +9126,20 @@ ${_}`); }; } function ye(l, o, s, c, g) { - var y, x, z, Q, X, ie = g.areStatesEqual, ue = g.areOwnPropsEqual, me = g.areStatePropsEqual, de = !1; + var y, x, z, K, X, ie = g.areStatesEqual, ue = g.areOwnPropsEqual, me = g.areStatePropsEqual, de = !1; function Oe(Te, ze) { var st, He, je = !ue(ze, x), dt = !ie(Te, y, ze, x); - return y = Te, x = ze, je && dt ? (z = l(y, x), o.dependsOnOwnProps && (Q = o(c, x)), X = s(z, Q, x)) : je ? (l.dependsOnOwnProps && (z = l(y, x)), o.dependsOnOwnProps && (Q = o(c, x)), X = s(z, Q, x)) : (dt && (st = l(y, x), He = !me(st, z), z = st, He && (X = s(z, Q, x))), X); + return y = Te, x = ze, je && dt ? (z = l(y, x), o.dependsOnOwnProps && (K = o(c, x)), X = s(z, K, x)) : je ? (l.dependsOnOwnProps && (z = l(y, x)), o.dependsOnOwnProps && (K = o(c, x)), X = s(z, K, x)) : (dt && (st = l(y, x), He = !me(st, z), z = st, He && (X = s(z, K, x))), X); } return function(Te, ze) { - return de ? Oe(Te, ze) : (z = l(y = Te, x = ze), Q = o(c, x), X = s(z, Q, x), de = !0, X); + return de ? Oe(Te, ze) : (z = l(y = Te, x = ze), K = o(c, x), X = s(z, K, x), de = !0, X); }; } - function P(l, o) { - var s = o.initMapStateToProps, c = o.initMapDispatchToProps, g = o.initMergeProps, y = F(o, Ke), x = s(l, y), z = c(l, y), Q = g(l, y); - return (y.pure ? ye : Je)(x, z, Q, l, y); + function D(l, o) { + var s = o.initMapStateToProps, c = o.initMapDispatchToProps, g = o.initMergeProps, y = U(o, Ke), x = s(l, y), z = c(l, y), K = g(l, y); + return (y.pure ? ye : Je)(x, z, K, l, y); } - var ne = ["pure", "areStatesEqual", "areOwnPropsEqual", "areStatePropsEqual", "areMergedPropsEqual"]; + var te = ["pure", "areStatesEqual", "areOwnPropsEqual", "areStatePropsEqual", "areMergedPropsEqual"]; function we(l, o, s) { for (var c = o.length - 1; c >= 0; c--) { var g = o[c](l); @@ -9123,10 +9153,10 @@ ${_}`); return l === o; } function Pe(l) { - var o = {}, s = o.connectHOC, c = s === void 0 ? ee : s, g = o.mapStateToPropsFactories, y = g === void 0 ? Ve : g, x = o.mapDispatchToPropsFactories, z = x === void 0 ? Ne : x, Q = o.mergePropsFactories, X = Q === void 0 ? Le : Q, ie = o.selectorFactory, ue = ie === void 0 ? P : ie; + var o = {}, s = o.connectHOC, c = s === void 0 ? ee : s, g = o.mapStateToPropsFactories, y = g === void 0 ? Ve : g, x = o.mapDispatchToPropsFactories, z = x === void 0 ? Ne : x, K = o.mergePropsFactories, X = K === void 0 ? Le : K, ie = o.selectorFactory, ue = ie === void 0 ? D : ie; return function(me, de, Oe, Te) { Te === void 0 && (Te = {}); - var ze = Te, st = ze.pure, He = st === void 0 || st, je = ze.areStatesEqual, dt = je === void 0 ? Ce : je, vt = ze.areOwnPropsEqual, Ht = vt === void 0 ? Z : vt, xt = ze.areStatePropsEqual, It = xt === void 0 ? Z : xt, St = ze.areMergedPropsEqual, mt = St === void 0 ? Z : St, En = F(ze, ne), it = we(me, y, "mapStateToProps"), xn = we(de, z, "mapDispatchToProps"), jn = we(Oe, X, "mergeProps"); + var ze = Te, st = ze.pure, He = st === void 0 || st, je = ze.areStatesEqual, dt = je === void 0 ? Ce : je, vt = ze.areOwnPropsEqual, Ht = vt === void 0 ? Z : vt, xt = ze.areStatePropsEqual, It = xt === void 0 ? Z : xt, St = ze.areMergedPropsEqual, mt = St === void 0 ? Z : St, En = U(ze, te), it = we(me, y, "mapStateToProps"), xn = we(de, z, "mapDispatchToProps"), jn = we(Oe, X, "mergeProps"); return c(ue, R({ methodName: "connect", getDisplayName: function(lo) { return "Connect(" + lo + ")"; }, shouldHandleStateChanges: !!me, initMapStateToProps: it, initMapDispatchToProps: xn, initMergeProps: jn, pure: He, areStatesEqual: dt, areOwnPropsEqual: Ht, areStatePropsEqual: It, areMergedPropsEqual: mt }, En)); @@ -9242,27 +9272,27 @@ ${_}`); return Object.assign(s, { startOffset: c, endOffset: g, node: l, path: l.getPath(), positionsBefore: [], positionsAfter: [] }), xo(l) ? (function(y, x) { const z = y.node; Object.assign(y, { type: "element", name: z.name, children: [], maxOffset: z.maxOffset, positions: [] }); - for (const Q of z.getChildren()) y.children.push(In(Q, x)); - (function(Q, X) { + for (const K of z.getChildren()) y.children.push(In(K, x)); + (function(K, X) { for (const ie of X) { - const ue = bi(Q, ie); + const ue = bi(K, ie); for (const me of ue) { const de = me.offset; if (de === 0) { - const Oe = Q.children[0]; - Oe ? Oe.positionsBefore.push(me) : Q.positions.push(me); - } else if (de === Q.maxOffset) { - const Oe = Q.children[Q.children.length - 1]; - Oe ? Oe.positionsAfter.push(me) : Q.positions.push(me); + const Oe = K.children[0]; + Oe ? Oe.positionsBefore.push(me) : K.positions.push(me); + } else if (de === K.maxOffset) { + const Oe = K.children[K.children.length - 1]; + Oe ? Oe.positionsAfter.push(me) : K.positions.push(me); } else { - let Oe = me.isEnd ? 0 : Q.children.length - 1, Te = Q.children[Oe]; + let Oe = me.isEnd ? 0 : K.children.length - 1, Te = K.children[Oe]; for (; Te; ) { if (Te.startOffset === de) { Te.positionsBefore.push(me); break; } if (Te.endOffset === de) { - const ze = Q.children[Oe + 1], st = Te.type === "text" && ze && ze.type === "element", He = Te.type === "element" && ze && ze.type === "text", je = Te.type === "text" && ze && ze.type === "text"; + const ze = K.children[Oe + 1], st = Te.type === "text" && ze && ze.type === "element", He = Te.type === "element" && ze && ze.type === "text", je = Te.type === "text" && ze && ze.type === "text"; me.isEnd && (st || He || je) ? ze.positionsBefore.push(me) : Te.positionsAfter.push(me); break; } @@ -9270,7 +9300,7 @@ ${_}`); Te.positions.push(me); break; } - Oe += me.isEnd ? 1 : -1, Te = Q.children[Oe]; + Oe += me.isEnd ? 1 : -1, Te = K.children[Oe]; } } } @@ -9324,9 +9354,9 @@ ${_}`); if (!y) return Rn(g, y); switch (x.type) { case Qe: - return (function(z, Q, X) { + return (function(z, K, X) { const ie = X.currentRootName; - return { ...Q, ...Ir(z, Q, { currentRootName: ie }), currentNode: null, currentNodeDefinition: null, currentRootName: ie }; + return { ...K, ...Ir(z, K, { currentRootName: ie }), currentNode: null, currentNodeDefinition: null, currentRootName: ie }; })(g, y, x); case et: return { ...y, currentNode: x.currentNode, currentNodeDefinition: lr(gn(g), x.currentNode) }; @@ -9383,11 +9413,11 @@ ${_}`); dt.root.rootName === me && de.push({ type: "marker", marker: ze, name: st, affectsData: He, managedUsingOperations: je, presentation: { color: Dn[Te++ % (Dn.length - 1)] }, start: zt(dt), end: zt(vt) }); } return de; - })(c, y), Q = (function({ currentEditor: ue, currentRootName: me, ranges: de, markers: Oe }) { + })(c, y), K = (function({ currentEditor: ue, currentRootName: me, ranges: de, markers: Oe }) { return ue ? [In(ue.model.document.getRoot(me), [...de, ...Oe])] : []; })({ currentEditor: c, currentRootName: g.currentRootName, ranges: x, markers: z }); let X = g.currentNode, ie = g.currentNodeDefinition; - return X ? X.root.rootName !== y || !Wn(X) && !X.parent ? (X = null, ie = null) : ie = lr(c, X) : ie = null, { treeDefinition: Q, currentNode: X, currentNodeDefinition: ie, ranges: x, markers: z }; + return X ? X.root.rootName !== y || !Wn(X) && !X.parent ? (X = null, ie = null) : ie = lr(c, X) : ie = null, { treeDefinition: K, currentNode: X, currentNodeDefinition: ie, ranges: x, markers: z }; } const Rr = "SET_VIEW_CURRENT_ROOT_NAME", M = "SET_VIEW_CURRENT_NODE", Y = "SET_VIEW_ACTIVE_TAB", be = "TOGGLE_VIEW_SHOW_ELEMENT_TYPES", De = "UPDATE_VIEW_STATE"; function tt(l) { @@ -9443,8 +9473,8 @@ ${_}`); Object.assign(c, { type: "element", children: [], positions: [] }), c.name = y.name, rt(y) ? c.elementType = "attribute" : kt(y) ? c.elementType = "root" : At(y) ? c.elementType = "empty" : ft(y) ? c.elementType = "ui" : ht(y) ? c.elementType = "raw" : c.elementType = "container", At(y) ? c.presentation = { isEmpty: !0 } : ft(y) ? c.children.push({ type: "comment", text: yn }) : ht(y) && c.children.push({ type: "comment", text: ur }); for (const x of y.getChildren()) c.children.push(Xr(x, g)); (function(x, z) { - for (const Q of z) { - const X = To(x, Q); + for (const K of z) { + const X = To(x, K); for (const ie of X) { const ue = ie.offset; if (ue === 0) { @@ -9470,7 +9500,7 @@ ${_}`); } } })(c, g), c.attributes = (function(x) { - const z = nt(x).map(([Q, X]) => [Q, fn(X, !1)]); + const z = nt(x).map(([K, X]) => [K, fn(X, !1)]); return new Map(z); })(y); })(s, o) : (function(c, g) { @@ -9498,9 +9528,9 @@ ${_}`); if (!y) return dr(g, y); switch (x.type) { case Rr: - return (function(z, Q, X) { + return (function(z, K, X) { const ie = X.currentRootName; - return { ...Q, ...ut(z, Q, { currentRootName: ie }), currentNode: null, currentNodeDefinition: null, currentRootName: ie }; + return { ...K, ...ut(z, K, { currentRootName: ie }), currentNode: null, currentNodeDefinition: null, currentRootName: ie }; })(g, y, x); case M: return { ...y, currentNode: x.currentNode, currentNodeDefinition: bn(x.currentNode) }; @@ -9518,13 +9548,13 @@ ${_}`); if (!y) return { activeTab: ct.get(Ze) || "Inspect", showElementTypes: ct.get(Yn) === "true" }; switch (x.type) { case Y: - return (function(z, Q) { - return ct.set(Ze, Q.tabName), { ...z, activeTab: Q.tabName }; + return (function(z, K) { + return ct.set(Ze, K.tabName), { ...z, activeTab: K.tabName }; })(y, x); case be: - return (function(z, Q) { - const X = !Q.showElementTypes; - return ct.set(Yn, X), { ...Q, showElementTypes: X }; + return (function(z, K) { + const X = !K.showElementTypes; + return ct.set(Yn, X), { ...K, showElementTypes: X }; })(0, y); default: return y; @@ -9544,8 +9574,8 @@ ${_}`); })(gn(l), g), x = (function({ currentEditor: X, currentRootName: ie, ranges: ue }) { return X && ie ? [Xr(X.editing.view.document.getRoot(ie), [...ue])] : null; })({ currentEditor: gn(l), currentRootName: g, ranges: y }); - let z = c.currentNode, Q = c.currentNodeDefinition; - return z ? z.root.rootName !== g || !kt(z) && !z.parent ? (z = null, Q = null) : Q = bn(z) : Q = null, { treeDefinition: x, currentNode: z, currentNodeDefinition: Q, ranges: y }; + let z = c.currentNode, K = c.currentNodeDefinition; + return z ? z.root.rootName !== g || !kt(z) && !z.parent ? (z = null, K = null) : K = bn(z) : K = null, { treeDefinition: x, currentNode: z, currentNodeDefinition: K, ranges: y }; } const wt = "SET_COMMANDS_CURRENT_COMMAND_NAME", Tt = "UPDATE_COMMANDS_STATE"; function Lt() { @@ -9576,18 +9606,18 @@ ${_}`); function _n({ editors: l, currentEditorName: o }, s) { if (!s) return null; const c = l.get(o).model.schema, g = c.getDefinitions()[s], y = {}, x = {}, z = {}; - let Q = {}; + let K = {}; for (const X of pr) g[X] && (y[X] = { value: g[X] }); for (const X of g.allowChildren.sort()) x[X] = { value: !0, title: `Click to see the definition of ${X}` }; for (const X of g.allowIn.sort()) z[X] = { value: !0, title: `Click to see the definition of ${X}` }; - for (const X of g.allowAttributes.sort()) Q[X] = { value: !0 }; - Q = pt(Q); - for (const X in Q) { + for (const X of g.allowAttributes.sort()) K[X] = { value: !0 }; + K = pt(K); + for (const X in K) { const ie = c.getAttributeProperties(X), ue = {}; for (const me in ie) ue[me] = { value: ie[me] }; - Q[X].subProperties = pt(ue); + K[X].subProperties = pt(ue); } - return { currentSchemaDefinitionName: s, type: "SchemaCompiledItemDefinition", urls: { general: Xn + "module_engine_model_schema-SchemaCompiledItemDefinition.html", allowAttributes: Xn + "module_engine_model_schema-SchemaItemDefinition.html#member-allowAttributes", allowChildren: Xn + "module_engine_model_schema-SchemaItemDefinition.html#member-allowChildren", allowIn: Xn + "module_engine_model_schema-SchemaItemDefinition.html#member-allowIn" }, properties: pt(y), allowChildren: pt(x), allowIn: pt(z), allowAttributes: Q, definition: g }; + return { currentSchemaDefinitionName: s, type: "SchemaCompiledItemDefinition", urls: { general: Xn + "module_engine_model_schema-SchemaCompiledItemDefinition.html", allowAttributes: Xn + "module_engine_model_schema-SchemaItemDefinition.html#member-allowAttributes", allowChildren: Xn + "module_engine_model_schema-SchemaItemDefinition.html#member-allowChildren", allowIn: Xn + "module_engine_model_schema-SchemaItemDefinition.html#member-allowIn" }, properties: pt(y), allowChildren: pt(x), allowIn: pt(z), allowAttributes: K, definition: g }; } function Mr({ editors: l, currentEditorName: o }) { if (!l.get(o)) return []; @@ -9827,17 +9857,17 @@ ${_}`); var g = this.propsSize && this.propsSize[c]; return this.state[c] !== "auto" || this.state.original[c] !== s || g !== void 0 && g !== "auto" ? s : "auto"; }, o.prototype.calculateNewMaxFromBoundary = function(s, c) { - var g, y, x = this.props.boundsByDirection, z = this.state.direction, Q = x && mr("left", z), X = x && mr("top", z); + var g, y, x = this.props.boundsByDirection, z = this.state.direction, K = x && mr("left", z), X = x && mr("top", z); if (this.props.bounds === "parent") { var ie = this.parentNode; - ie && (g = Q ? this.resizableRight - this.parentLeft : ie.offsetWidth + (this.parentLeft - this.resizableLeft), y = X ? this.resizableBottom - this.parentTop : ie.offsetHeight + (this.parentTop - this.resizableTop)); - } else this.props.bounds === "window" ? this.window && (g = Q ? this.resizableRight : this.window.innerWidth - this.resizableLeft, y = X ? this.resizableBottom : this.window.innerHeight - this.resizableTop) : this.props.bounds && (g = Q ? this.resizableRight - this.targetLeft : this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft), y = X ? this.resizableBottom - this.targetTop : this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop)); + ie && (g = K ? this.resizableRight - this.parentLeft : ie.offsetWidth + (this.parentLeft - this.resizableLeft), y = X ? this.resizableBottom - this.parentTop : ie.offsetHeight + (this.parentTop - this.resizableTop)); + } else this.props.bounds === "window" ? this.window && (g = K ? this.resizableRight : this.window.innerWidth - this.resizableLeft, y = X ? this.resizableBottom : this.window.innerHeight - this.resizableTop) : this.props.bounds && (g = K ? this.resizableRight - this.targetLeft : this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft), y = X ? this.resizableBottom - this.targetTop : this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop)); return g && Number.isFinite(g) && (s = s && s < g ? s : g), y && Number.isFinite(y) && (c = c && c < y ? c : y), { maxWidth: s, maxHeight: c }; }, o.prototype.calculateNewSizeFromDirection = function(s, c) { - var g = this.props.scale || 1, y = this.props.resizeRatio || 1, x = this.state, z = x.direction, Q = x.original, X = this.props, ie = X.lockAspectRatio, ue = X.lockAspectRatioExtraHeight, me = X.lockAspectRatioExtraWidth, de = Q.width, Oe = Q.height, Te = ue || 0, ze = me || 0; - return mr("right", z) && (de = Q.width + (s - Q.x) * y / g, ie && (Oe = (de - ze) / this.ratio + Te)), mr("left", z) && (de = Q.width - (s - Q.x) * y / g, ie && (Oe = (de - ze) / this.ratio + Te)), mr("bottom", z) && (Oe = Q.height + (c - Q.y) * y / g, ie && (de = (Oe - Te) * this.ratio + ze)), mr("top", z) && (Oe = Q.height - (c - Q.y) * y / g, ie && (de = (Oe - Te) * this.ratio + ze)), { newWidth: de, newHeight: Oe }; + var g = this.props.scale || 1, y = this.props.resizeRatio || 1, x = this.state, z = x.direction, K = x.original, X = this.props, ie = X.lockAspectRatio, ue = X.lockAspectRatioExtraHeight, me = X.lockAspectRatioExtraWidth, de = K.width, Oe = K.height, Te = ue || 0, ze = me || 0; + return mr("right", z) && (de = K.width + (s - K.x) * y / g, ie && (Oe = (de - ze) / this.ratio + Te)), mr("left", z) && (de = K.width - (s - K.x) * y / g, ie && (Oe = (de - ze) / this.ratio + Te)), mr("bottom", z) && (Oe = K.height + (c - K.y) * y / g, ie && (de = (Oe - Te) * this.ratio + ze)), mr("top", z) && (Oe = K.height - (c - K.y) * y / g, ie && (de = (Oe - Te) * this.ratio + ze)), { newWidth: de, newHeight: Oe }; }, o.prototype.calculateNewSizeFromAspectRatio = function(s, c, g, y) { - var x = this.props, z = x.lockAspectRatio, Q = x.lockAspectRatioExtraHeight, X = x.lockAspectRatioExtraWidth, ie = y.width === void 0 ? 10 : y.width, ue = g.width === void 0 || g.width < 0 ? s : g.width, me = y.height === void 0 ? 10 : y.height, de = g.height === void 0 || g.height < 0 ? c : g.height, Oe = Q || 0, Te = X || 0; + var x = this.props, z = x.lockAspectRatio, K = x.lockAspectRatioExtraHeight, X = x.lockAspectRatioExtraWidth, ie = y.width === void 0 ? 10 : y.width, ue = g.width === void 0 || g.width < 0 ? s : g.width, me = y.height === void 0 ? 10 : y.height, de = g.height === void 0 || g.height < 0 ? c : g.height, Oe = K || 0, Te = X || 0; if (z) { var ze = (me - Oe) * this.ratio + Te, st = (de - Oe) * this.ratio + Te, He = (ie - Te) / this.ratio + Oe, je = (ue - Te) / this.ratio + Oe, dt = Math.max(ie, ze), vt = Math.min(ue, st), Ht = Math.max(me, He), xt = Math.min(de, je); s = ei(s, dt, vt), c = ei(c, Ht, xt); @@ -9856,8 +9886,8 @@ ${_}`); this.targetLeft = g.left, this.targetTop = g.top; } if (this.resizable) { - var y = this.resizable.getBoundingClientRect(), x = y.left, z = y.top, Q = y.right, X = y.bottom; - this.resizableLeft = x, this.resizableRight = Q, this.resizableTop = z, this.resizableBottom = X; + var y = this.resizable.getBoundingClientRect(), x = y.left, z = y.top, K = y.right, X = y.bottom; + this.resizableLeft = x, this.resizableRight = K, this.resizableTop = z, this.resizableBottom = X; } }, o.prototype.onResizeStart = function(s, c) { if (this.resizable && this.window) { @@ -9871,9 +9901,9 @@ ${_}`); this.props.size && (this.props.size.height !== void 0 && this.props.size.height !== this.state.height && this.setState({ height: this.props.size.height }), this.props.size.width !== void 0 && this.props.size.width !== this.state.width && this.setState({ width: this.props.size.width })), this.ratio = typeof this.props.lockAspectRatio == "number" ? this.props.lockAspectRatio : this.size.width / this.size.height; var z = this.window.getComputedStyle(this.resizable); if (z.flexBasis !== "auto") { - var Q = this.parentNode; - if (Q) { - var X = this.window.getComputedStyle(Q).flexDirection; + var K = this.parentNode; + if (K) { + var X = this.window.getComputedStyle(K).flexDirection; this.flexDir = X.startsWith("row") ? "row" : "column", g = z.flexBasis; } } @@ -9887,9 +9917,9 @@ ${_}`); s.preventDefault(), s.stopPropagation(); } catch { } - var c = this.props, g = c.maxWidth, y = c.maxHeight, x = c.minWidth, z = c.minHeight, Q = gr(s) ? s.touches[0].clientX : s.clientX, X = gr(s) ? s.touches[0].clientY : s.clientY, ie = this.state, ue = ie.direction, me = ie.original, de = ie.width, Oe = ie.height, Te = this.getParentSize(), ze = xi(Te, this.window.innerWidth, this.window.innerHeight, g, y, x, z); + var c = this.props, g = c.maxWidth, y = c.maxHeight, x = c.minWidth, z = c.minHeight, K = gr(s) ? s.touches[0].clientX : s.clientX, X = gr(s) ? s.touches[0].clientY : s.clientY, ie = this.state, ue = ie.direction, me = ie.original, de = ie.width, Oe = ie.height, Te = this.getParentSize(), ze = xi(Te, this.window.innerWidth, this.window.innerHeight, g, y, x, z); g = ze.maxWidth, y = ze.maxHeight, x = ze.minWidth, z = ze.minHeight; - var st = this.calculateNewSizeFromDirection(Q, X), He = st.newHeight, je = st.newWidth, dt = this.calculateNewMaxFromBoundary(g, y), vt = this.calculateNewSizeFromAspectRatio(je, He, { width: dt.maxWidth, height: dt.maxHeight }, { width: x, height: z }); + var st = this.calculateNewSizeFromDirection(K, X), He = st.newHeight, je = st.newWidth, dt = this.calculateNewMaxFromBoundary(g, y), vt = this.calculateNewSizeFromAspectRatio(je, He, { width: dt.maxWidth, height: dt.maxHeight }, { width: x, height: z }); if (je = vt.newWidth, He = vt.newHeight, this.props.grid) { var Ht = Po(je, this.props.grid[0]), xt = Po(He, this.props.grid[1]), It = this.props.snapGap || 0; je = It === 0 || Math.abs(Ht - je) <= It ? Ht : je, He = It === 0 || Math.abs(xt - He) <= It ? xt : He; @@ -9909,12 +9939,12 @@ ${_}`); }, o.prototype.updateSize = function(s) { this.setState({ width: s.width, height: s.height }); }, o.prototype.renderResizer = function() { - var s = this, c = this.props, g = c.enable, y = c.handleStyles, x = c.handleClasses, z = c.handleWrapperStyle, Q = c.handleWrapperClass, X = c.handleComponent; + var s = this, c = this.props, g = c.enable, y = c.handleStyles, x = c.handleClasses, z = c.handleWrapperStyle, K = c.handleWrapperClass, X = c.handleComponent; if (!g) return null; var ie = Object.keys(g).map(function(ue) { return g[ue] !== !1 ? i.createElement(as, { key: ue, direction: ue, onResizeStart: s.onResizeStart, replaceStyles: y && y[ue], className: x && x[ue] }, X && X[ue] ? X[ue] : null) : null; }); - return i.createElement("div", { className: Q, style: z }, ie); + return i.createElement("div", { className: K, style: z }, ie); }, o.prototype.render = function() { var s = this, c = Object.keys(this.props).reduce(function(x, z) { return Si.indexOf(z) !== -1 || (x[z] = s.props[z]), x; @@ -9992,7 +10022,7 @@ ${_}`); if (this.props.bounds === "parent") g = y; else { if (this.props.bounds === "body") { - var z = y.getBoundingClientRect(), Q = z.left, X = z.top, ie = document.body.getBoundingClientRect(), ue = -(Q - y.offsetLeft * x - ie.left) / x, me = -(X - y.offsetTop * x - ie.top) / x, de = (document.body.offsetWidth - this.resizable.size.width * x) / x + ue, Oe = (document.body.offsetHeight - this.resizable.size.height * x) / x + me; + var z = y.getBoundingClientRect(), K = z.left, X = z.top, ie = document.body.getBoundingClientRect(), ue = -(K - y.offsetLeft * x - ie.left) / x, me = -(X - y.offsetTop * x - ie.top) / x, de = (document.body.offsetWidth - this.resizable.size.width * x) / x + ue, Oe = (document.body.offsetHeight - this.resizable.size.height * x) / x + me; return this.setState({ bounds: { top: me, right: de, bottom: Oe, left: ue } }); } if (this.props.bounds === "window") { @@ -10025,10 +10055,10 @@ ${_}`); s.stopPropagation(), this.resizing = !0; var y = this.props.scale, x = this.offsetFromParent, z = this.getDraggablePosition(); if (this.resizingPosition = { x: z.x + x.left, y: z.y + x.top }, this.setState({ original: z }), this.props.bounds) { - var Q = this.getParent(), X = void 0; - X = this.props.bounds === "parent" ? Q : this.props.bounds === "body" ? document.body : this.props.bounds === "window" ? window : document.querySelector(this.props.bounds); + var K = this.getParent(), X = void 0; + X = this.props.bounds === "parent" ? K : this.props.bounds === "body" ? document.body : this.props.bounds === "window" ? window : document.querySelector(this.props.bounds); var ie = this.getSelfElement(); - if (ie instanceof Element && (X instanceof HTMLElement || X === window) && Q instanceof HTMLElement) { + if (ie instanceof Element && (X instanceof HTMLElement || X === window) && K instanceof HTMLElement) { var ue = this.getMaxSizesFromProps(), me = ue.maxWidth, de = ue.maxHeight, Oe = this.getParentSize(); if (me && typeof me == "string") if (me.endsWith("%")) { var Te = Number(me.replace("%", "")) / 100; @@ -10045,14 +10075,14 @@ ${_}`); } else this.setState({ maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight }); this.props.onResizeStart && this.props.onResizeStart(s, c, g); }, o.prototype.onResize = function(s, c, g, y) { - var x = { x: this.state.original.x, y: this.state.original.y }, z = -y.width, Q = -y.height; - ["top", "left", "topLeft", "bottomLeft", "topRight"].indexOf(c) !== -1 && (c === "bottomLeft" ? x.x += z : (c === "topRight" || (x.x += z), x.y += Q)), x.x === this.draggable.state.x && x.y === this.draggable.state.y || this.draggable.setState(x), this.updateOffsetFromParent(); + var x = { x: this.state.original.x, y: this.state.original.y }, z = -y.width, K = -y.height; + ["top", "left", "topLeft", "bottomLeft", "topRight"].indexOf(c) !== -1 && (c === "bottomLeft" ? x.x += z : (c === "topRight" || (x.x += z), x.y += K)), x.x === this.draggable.state.x && x.y === this.draggable.state.y || this.draggable.setState(x), this.updateOffsetFromParent(); var X = this.offsetFromParent, ie = this.getDraggablePosition().x + X.left, ue = this.getDraggablePosition().y + X.top; this.resizingPosition = { x: ie, y: ue }, this.props.onResize && this.props.onResize(s, c, g, y, { x: ie, y: ue }); }, o.prototype.onResizeStop = function(s, c, g, y) { this.resizing = !1; - var x = this.getMaxSizesFromProps(), z = x.maxWidth, Q = x.maxHeight; - this.setState({ maxWidth: z, maxHeight: Q }), this.props.onResizeStop && this.props.onResizeStop(s, c, g, y, this.resizingPosition); + var x = this.getMaxSizesFromProps(), z = x.maxWidth, K = x.maxHeight; + this.setState({ maxWidth: z, maxHeight: K }), this.props.onResizeStop && this.props.onResizeStop(s, c, g, y, this.resizingPosition); }, o.prototype.updateSize = function(s) { this.resizable && this.resizable.updateSize({ width: s.width, height: s.height }); }, o.prototype.updatePosition = function(s) { @@ -10060,15 +10090,15 @@ ${_}`); }, o.prototype.updateOffsetFromParent = function() { var s = this.props.scale, c = this.getParent(), g = this.getSelfElement(); if (!c || g === null) return { top: 0, left: 0 }; - var y = c.getBoundingClientRect(), x = y.left, z = y.top, Q = g.getBoundingClientRect(), X = this.getDraggablePosition(); - this.offsetFromParent = { left: Q.left - x - X.x * s, top: Q.top - z - X.y * s }; + var y = c.getBoundingClientRect(), x = y.left, z = y.top, K = g.getBoundingClientRect(), X = this.getDraggablePosition(); + this.offsetFromParent = { left: K.left - x - X.x * s, top: K.top - z - X.y * s }; }, o.prototype.render = function() { - var s = this.props, c = s.disableDragging, g = s.style, y = s.dragHandleClassName, x = s.position, z = s.onMouseDown, Q = s.onMouseUp, X = s.dragAxis, ie = s.dragGrid, ue = s.bounds, me = s.enableUserSelectHack, de = s.cancel, Oe = s.children, Te = (s.onResizeStart, s.onResize, s.onResizeStop, s.onDragStart, s.onDrag, s.onDragStop, s.resizeHandleStyles), ze = s.resizeHandleClasses, st = s.resizeHandleComponent, He = s.enableResizing, je = s.resizeGrid, dt = s.resizeHandleWrapperClass, vt = s.resizeHandleWrapperStyle, Ht = s.scale, xt = s.allowAnyClick, It = (function(qt, cn) { + var s = this.props, c = s.disableDragging, g = s.style, y = s.dragHandleClassName, x = s.position, z = s.onMouseDown, K = s.onMouseUp, X = s.dragAxis, ie = s.dragGrid, ue = s.bounds, me = s.enableUserSelectHack, de = s.cancel, Oe = s.children, Te = (s.onResizeStart, s.onResize, s.onResizeStop, s.onDragStart, s.onDrag, s.onDragStop, s.resizeHandleStyles), ze = s.resizeHandleClasses, st = s.resizeHandleComponent, He = s.enableResizing, je = s.resizeGrid, dt = s.resizeHandleWrapperClass, vt = s.resizeHandleWrapperStyle, Ht = s.scale, xt = s.allowAnyClick, It = (function(qt, cn) { var Nt = {}; - for (var Ft in qt) Object.prototype.hasOwnProperty.call(qt, Ft) && cn.indexOf(Ft) < 0 && (Nt[Ft] = qt[Ft]); + for (var Ut in qt) Object.prototype.hasOwnProperty.call(qt, Ut) && cn.indexOf(Ut) < 0 && (Nt[Ut] = qt[Ut]); if (qt != null && typeof Object.getOwnPropertySymbols == "function") { var un = 0; - for (Ft = Object.getOwnPropertySymbols(qt); un < Ft.length; un++) cn.indexOf(Ft[un]) < 0 && Object.prototype.propertyIsEnumerable.call(qt, Ft[un]) && (Nt[Ft[un]] = qt[Ft[un]]); + for (Ut = Object.getOwnPropertySymbols(qt); un < Ut.length; un++) cn.indexOf(Ut[un]) < 0 && Object.prototype.propertyIsEnumerable.call(qt, Ut[un]) && (Nt[Ut[un]] = qt[Ut[un]]); } return Nt; })(s, ["disableDragging", "style", "dragHandleClassName", "position", "onMouseDown", "onMouseUp", "dragAxis", "dragGrid", "bounds", "enableUserSelectHack", "cancel", "children", "onResizeStart", "onResize", "onResizeStop", "onDragStart", "onDrag", "onDragStop", "resizeHandleStyles", "resizeHandleClasses", "resizeHandleComponent", "enableResizing", "resizeGrid", "resizeHandleWrapperClass", "resizeHandleWrapperStyle", "scale", "allowAnyClick"]), St = this.props.default ? Zt({}, this.props.default) : void 0; @@ -10076,7 +10106,7 @@ ${_}`); var mt, En = c || y ? { cursor: "auto" } : { cursor: "move" }, it = Zt(Zt(Zt({}, sa), En), g), xn = this.offsetFromParent, jn = xn.left, lo = xn.top; x && (mt = { x: x.x - jn, y: x.y - lo }); var Wt, Jt = this.resizing ? void 0 : mt, en = this.resizing ? "both" : X; - return (0, i.createElement)(aa, { ref: this.refDraggable, handle: y ? "." + y : void 0, defaultPosition: St, onMouseDown: z, onMouseUp: Q, onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop, axis: en, disabled: c, grid: ie, bounds: ue ? this.state.bounds : void 0, position: Jt, enableUserSelectHack: me, cancel: de, scale: Ht, allowAnyClick: xt, nodeRef: this.resizableElement }, (0, i.createElement)(Gn, Zt({}, It, { ref: this.refResizable, defaultSize: St, size: this.props.size, enable: typeof He == "boolean" ? (Wt = He, { bottom: Wt, bottomLeft: Wt, bottomRight: Wt, left: Wt, right: Wt, top: Wt, topLeft: Wt, topRight: Wt }) : He, onResizeStart: this.onResizeStart, onResize: this.onResize, onResizeStop: this.onResizeStop, style: it, minWidth: this.props.minWidth, minHeight: this.props.minHeight, maxWidth: this.resizing ? this.state.maxWidth : this.props.maxWidth, maxHeight: this.resizing ? this.state.maxHeight : this.props.maxHeight, grid: je, handleWrapperClass: dt, handleWrapperStyle: vt, lockAspectRatio: this.props.lockAspectRatio, lockAspectRatioExtraWidth: this.props.lockAspectRatioExtraWidth, lockAspectRatioExtraHeight: this.props.lockAspectRatioExtraHeight, handleStyles: Te, handleClasses: ze, handleComponent: st, scale: this.props.scale }), Oe)); + return (0, i.createElement)(aa, { ref: this.refDraggable, handle: y ? "." + y : void 0, defaultPosition: St, onMouseDown: z, onMouseUp: K, onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop, axis: en, disabled: c, grid: ie, bounds: ue ? this.state.bounds : void 0, position: Jt, enableUserSelectHack: me, cancel: de, scale: Ht, allowAnyClick: xt, nodeRef: this.resizableElement }, (0, i.createElement)(Gn, Zt({}, It, { ref: this.refResizable, defaultSize: St, size: this.props.size, enable: typeof He == "boolean" ? (Wt = He, { bottom: Wt, bottomLeft: Wt, bottomRight: Wt, left: Wt, right: Wt, top: Wt, topLeft: Wt, topRight: Wt }) : He, onResizeStart: this.onResizeStart, onResize: this.onResize, onResizeStop: this.onResizeStop, style: it, minWidth: this.props.minWidth, minHeight: this.props.minHeight, maxWidth: this.resizing ? this.state.maxWidth : this.props.maxWidth, maxHeight: this.resizing ? this.state.maxHeight : this.props.maxHeight, grid: je, handleWrapperClass: dt, handleWrapperStyle: vt, lockAspectRatio: this.props.lockAspectRatio, lockAspectRatioExtraWidth: this.props.lockAspectRatioExtraWidth, lockAspectRatioExtraHeight: this.props.lockAspectRatioExtraHeight, handleStyles: Te, handleClasses: ze, handleComponent: st, scale: this.props.scale }), Oe)); }, o.defaultProps = { maxWidth: Number.MAX_SAFE_INTEGER, maxHeight: Number.MAX_SAFE_INTEGER, scale: 1, onResizeStart: function() { }, onResize: function() { }, onResizeStop: function() { @@ -10200,16 +10230,16 @@ ${_}`); } class vr extends Ar { render() { - const o = this.definition, s = o.presentation, c = s && s.isEmpty, g = s && s.cssClass, y = this.getChildren(), x = ["ck-inspector-code", "ck-inspector-tree-node", this.isActive ? "ck-inspector-tree-node_active" : "", c ? "ck-inspector-tree-node_empty" : "", g], z = [], Q = []; + const o = this.definition, s = o.presentation, c = s && s.isEmpty, g = s && s.cssClass, y = this.getChildren(), x = ["ck-inspector-code", "ck-inspector-tree-node", this.isActive ? "ck-inspector-tree-node_active" : "", c ? "ck-inspector-tree-node_empty" : "", g], z = [], K = []; o.positionsBefore && o.positionsBefore.forEach((ie, ue) => { z.push(i.createElement(br, { key: "position-before:" + ue, definition: ie })); }), o.positionsAfter && o.positionsAfter.forEach((ie, ue) => { - Q.push(i.createElement(br, { key: "position-after:" + ue, definition: ie })); + K.push(i.createElement(br, { key: "position-after:" + ue, definition: ie })); }), o.positions && o.positions.forEach((ie, ue) => { y.push(i.createElement(br, { key: "position" + ue, definition: ie })); }); let X = o.name; - return this.globalTreeProps.showElementTypes && (X = o.elementType + ":" + X), i.createElement("div", { className: x.join(" "), onClick: this.handleClick }, z, i.createElement("span", { className: "ck-inspector-tree-node__name" }, i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_open" }), X, this.getAttributes(), c ? "" : i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_close" })), i.createElement("div", { className: "ck-inspector-tree-node__content" }, y), c ? "" : i.createElement("span", { className: "ck-inspector-tree-node__name ck-inspector-tree-node__name_close" }, i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_open" }), "/", X, i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_close" }), Q)); + return this.globalTreeProps.showElementTypes && (X = o.elementType + ":" + X), i.createElement("div", { className: x.join(" "), onClick: this.handleClick }, z, i.createElement("span", { className: "ck-inspector-tree-node__name" }, i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_open" }), X, this.getAttributes(), c ? "" : i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_close" })), i.createElement("div", { className: "ck-inspector-tree-node__content" }, y), c ? "" : i.createElement("span", { className: "ck-inspector-tree-node__name ck-inspector-tree-node__name_close" }, i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_open" }), "/", X, i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_close" }), K)); } getAttributes() { const o = [], s = this.definition; @@ -10293,7 +10323,7 @@ ${_}`); render() { const o = this.props.presentation && this.props.presentation.expandCollapsibles, s = []; for (const c in this.props.itemDefinitions) { - const g = this.props.itemDefinitions[c], { subProperties: y, presentation: x = {} } = g, z = y && Object.keys(y).length, Q = Qr(String(g.value), 2e3), X = [i.createElement(ca, { key: `${this.props.name}-${c}-name`, name: c, listUid: this.props.name, canCollapse: z, colorBox: x.colorBox, expandCollapsibles: o, onClick: this.props.onPropertyTitleClick, title: g.title }), i.createElement("dd", { key: `${this.props.name}-${c}-value` }, i.createElement("input", { id: `${this.props.name}-${c}-value-input`, type: "text", value: Q, readOnly: !0 }))]; + const g = this.props.itemDefinitions[c], { subProperties: y, presentation: x = {} } = g, z = y && Object.keys(y).length, K = Qr(String(g.value), 2e3), X = [i.createElement(ca, { key: `${this.props.name}-${c}-name`, name: c, listUid: this.props.name, canCollapse: z, colorBox: x.colorBox, expandCollapsibles: o, onClick: this.props.onPropertyTitleClick, title: g.title }), i.createElement("dd", { key: `${this.props.name}-${c}-value` }, i.createElement("input", { id: `${this.props.name}-${c}-value-input`, type: "text", value: K, readOnly: !0 }))]; z && X.push(i.createElement(ii, { name: `${this.props.name}-${c}`, key: `${this.props.name}-${c}`, itemDefinitions: y, presentation: this.props.presentation })), s.push(X); } return i.createElement("dl", { className: "ck-inspector-property-list ck-inspector-code" }, s); @@ -10398,7 +10428,7 @@ ${_}`); } const us = _e(({ editors: l, currentEditorName: o, model: { ranges: s } }) => { const c = l.get(o), g = (function(y, x) { - const z = y.model.document.selection, Q = z.anchor, X = z.focus, ie = { properties: { isCollapsed: { value: z.isCollapsed }, isBackward: { value: z.isBackward }, isGravityOverridden: { value: z.isGravityOverridden }, rangeCount: { value: z.rangeCount } }, attributes: {}, anchor: Mo(zt(Q)), focus: Mo(zt(X)), ranges: {} }; + const z = y.model.document.selection, K = z.anchor, X = z.focus, ie = { properties: { isCollapsed: { value: z.isCollapsed }, isBackward: { value: z.isBackward }, isGravityOverridden: { value: z.isGravityOverridden }, rangeCount: { value: z.rangeCount } }, attributes: {}, anchor: Mo(zt(K)), focus: Mo(zt(X)), ranges: {} }; for (const [ue, me] of z.getAttributes()) ie.attributes[ue] = { value: me }; x.forEach((ue, me) => { ie.ranges[me] = { value: "", subProperties: { start: { value: "", subProperties: pt(Mo(ue.start)) }, end: { value: "", subProperties: pt(Mo(ue.end)) } } }; @@ -10417,10 +10447,10 @@ ${_}`); const y = {}; for (const x of g) { const z = x.name.split(":"); - let Q = y; + let K = y; for (const X of z) { const ie = X === z[z.length - 1]; - Q = Q[X] ? Q[X] : Q[X] = ie ? x : {}; + K = K[X] ? K[X] : K[X] = ie ? x : {}; } } return y; @@ -10507,12 +10537,12 @@ ${_}`); } const io = _e(({ editors: l, currentEditorName: o, view: { ranges: s } }) => { const c = l.get(o), g = (function(y, x) { - const z = y.editing.view.document.selection, Q = { properties: { isCollapsed: { value: z.isCollapsed }, isBackward: { value: z.isBackward }, isFake: { value: z.isFake }, rangeCount: { value: z.rangeCount } }, anchor: si(jt(z.anchor)), focus: si(jt(z.focus)), ranges: {} }; + const z = y.editing.view.document.selection, K = { properties: { isCollapsed: { value: z.isCollapsed }, isBackward: { value: z.isBackward }, isFake: { value: z.isFake }, rangeCount: { value: z.rangeCount } }, anchor: si(jt(z.anchor)), focus: si(jt(z.focus)), ranges: {} }; x.forEach((X, ie) => { - Q.ranges[ie] = { value: "", subProperties: { start: { value: "", subProperties: pt(si(X.start)) }, end: { value: "", subProperties: pt(si(X.end)) } } }; + K.ranges[ie] = { value: "", subProperties: { start: { value: "", subProperties: pt(si(X.start)) }, end: { value: "", subProperties: pt(si(X.end)) } } }; }); - for (const X in Q) X !== "ranges" && (Q[X] = pt(Q[X])); - return Q; + for (const X in K) X !== "ranges" && (K[X] = pt(K[X])); + return K; })(c, s); return { editor: c, currentEditorName: o, info: g }; }, {})(ma); @@ -10676,18 +10706,18 @@ ${_}`); }, rr.apply(null, arguments); } const Ss = ({ styles: l = {}, ...o }) => i.createElement("svg", rr({ viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg" }, o), i.createElement("path", { d: "M2.284 2.498c-.239.266-.184.617-.184 1.002V4H2a.5.5 0 00-.492.41L1.5 4.5V17a1 1 0 00.883.993L2.5 18h10a1 1 0 00.97-.752l-.081-.062c.438.368.976.54 1.507.526a2.5 2.5 0 01-2.232 1.783l-.164.005h-10a2.5 2.5 0 01-2.495-2.336L0 17V4.5a2 2 0 011.85-1.995L2 2.5l.284-.002zm10.532 0L13 2.5a2 2 0 011.995 1.85L15 4.5v2.28a2.243 2.243 0 00-1.5.404V4.5a.5.5 0 00-.41-.492L13 4v-.5l-.007-.144c-.031-.329.032-.626-.177-.858z" }), i.createElement("path", { d: "M6 .49l-.144.006a1.75 1.75 0 00-1.41.94l-.029.058.083-.004c-.69 0-1.25.56-1.25 1.25v1c0 .69.56 1.25 1.25 1.25h6c.69 0 1.25-.56 1.25-1.25v-1l-.006-.128a1.25 1.25 0 00-1.116-1.116l-.046-.002-.027-.058A1.75 1.75 0 009 .49H6zm0 1.5h3a.25.25 0 01.25.25l.007.102A.75.75 0 0010 2.99h.25v.5h-5.5v-.5H5a.75.75 0 00.743-.648l.007-.102A.25.25 0 016 1.99zm9.374 6.55a.75.75 0 01-.093 1.056l-2.33 1.954h6.127a.75.75 0 010 1.501h-5.949l2.19 1.837a.75.75 0 11-.966 1.15l-3.788-3.18a.747.747 0 01-.21-.285.75.75 0 01.17-.945l3.792-3.182a.75.75 0 011.057.093z" })); - function Fr() { - return Fr = Object.assign ? Object.assign.bind() : function(l) { + function Ur() { + return Ur = Object.assign ? Object.assign.bind() : function(l) { for (var o = 1; o < arguments.length; o++) { var s = arguments[o]; for (var c in s) ({}).hasOwnProperty.call(s, c) && (l[c] = s[c]); } return l; - }, Fr.apply(null, arguments); + }, Ur.apply(null, arguments); } - const Cs = ({ styles: l = {}, ...o }) => i.createElement("svg", Fr({ viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg" }, o), i.createElement("path", { fill: "#4fa800", d: "M6.972 16.615a.997.997 0 01-.744-.292l-4.596-4.596a1 1 0 111.414-1.414l3.926 3.926 9.937-9.937a1 1 0 011.414 1.415L7.717 16.323a.997.997 0 01-.745.292z" })); + const Cs = ({ styles: l = {}, ...o }) => i.createElement("svg", Ur({ viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg" }, o), i.createElement("path", { fill: "#4fa800", d: "M6.972 16.615a.997.997 0 01-.744-.292l-4.596-4.596a1 1 0 111.414-1.414l3.926 3.926 9.937-9.937a1 1 0 011.414 1.415L7.717 16.323a.997.997 0 01-.745.292z" })); O(4343); - const Fi = "Lock from Inspector (@ckeditor/ckeditor5-inspector)"; + const Ui = "Lock from Inspector (@ckeditor/ckeditor5-inspector)"; class so extends i.Component { constructor(o) { super(o), this.state = { isShiftKeyPressed: !1, wasEditorDataJustCopied: !1 }, this._keyDownHandler = this._handleKeyDown.bind(this), this._keyUpHandler = this._handleKeyUp.bind(this), this._readOnlyHandler = this._handleReadOnly.bind(this), this._editorDataJustCopiedTimeout = null; @@ -10719,7 +10749,7 @@ ${_}`); this.setState({ isShiftKeyPressed: !1 }); } _handleReadOnly() { - this.props.editor.isReadOnly ? this.props.editor.disableReadOnlyMode(Fi) : this.props.editor.enableReadOnlyMode(Fi); + this.props.editor.isReadOnly ? this.props.editor.disableReadOnlyMode(Ui) : this.props.editor.enableReadOnlyMode(Ui); } } const Vi = _e(({ editors: l, currentEditorName: o, currentEditorGlobals: { isReadOnly: s } }) => ({ editor: l.get(o), isReadOnly: s }), {})(so); @@ -10732,7 +10762,7 @@ ${_}`); return l; }, Vr.apply(null, arguments); } - const Ui = ({ styles: l = {}, ...o }) => i.createElement("svg", Vr({ viewBox: "0 0 19 19", xmlns: "http://www.w3.org/2000/svg" }, o), i.createElement("path", { d: "M17.03 6.47a.75.75 0 01.073.976l-.072.084-6.984 7a.75.75 0 01-.977.073l-.084-.072-7.016-7a.75.75 0 01.976-1.134l.084.072 6.485 6.47 6.454-6.469a.75.75 0 01.977-.073l.084.072z" })); + const Fi = ({ styles: l = {}, ...o }) => i.createElement("svg", Vr({ viewBox: "0 0 19 19", xmlns: "http://www.w3.org/2000/svg" }, o), i.createElement("path", { d: "M17.03 6.47a.75.75 0 01.073.976l-.072.084-6.984 7a.75.75 0 01-.977.073l-.084-.072-7.016-7a.75.75 0 01.976-1.134l.084.072 6.485 6.47 6.454-6.469a.75.75 0 01.977-.073l.084.072z" })); O(9938); const Sa = { position: "fixed", bottom: "0", left: "0", right: "0", top: "auto" }; class Ts extends i.Component { @@ -10763,7 +10793,7 @@ ${_}`); super(o), this.handleShortcut = this.handleShortcut.bind(this); } render() { - return i.createElement(Et, { text: "Toggle inspector", icon: i.createElement(Ui, null), onClick: this.props.toggleIsCollapsed, title: "Toggle inspector (Alt+F12)", className: ["ck-inspector-navbox__navigation__toggle", this.props.isCollapsed ? " ck-inspector-navbox__navigation__toggle_up" : ""].join(" ") }); + return i.createElement(Et, { text: "Toggle inspector", icon: i.createElement(Fi, null), onClick: this.props.toggleIsCollapsed, title: "Toggle inspector (Alt+F12)", className: ["ck-inspector-navbox__navigation__toggle", this.props.isCollapsed ? " ck-inspector-navbox__navigation__toggle_up" : ""].join(" ") }); } componentDidMount() { window.addEventListener("keydown", this.handleShortcut); @@ -10839,20 +10869,20 @@ ${_}`); y.getState().ui.isCollapsed || y.dispatch($e()); }, onReadOnlyChange() { Be._store.dispatch({ type: sr }); - } }), Be._store = b(oa, { editors: Be._editors, currentEditorName: sn(Be._editors), currentEditorGlobals: {}, ui: { isCollapsed: o.isCollapsed } }), Be._store.subscribe(() => { + } }), Be._store = k(oa, { editors: Be._editors, currentEditorName: sn(Be._editors), currentEditorGlobals: {}, ui: { isCollapsed: o.isCollapsed } }), Be._store.subscribe(() => { const y = Be._store.getState(), x = y.editors.get(y.currentEditorName); c !== x && (c && Be._editorListener.stopListening(c), x && Be._editorListener.startListening(x), c = x); }), Be._store.subscribe(() => { const y = Be._store, x = y.getState().ui.isCollapsed, z = g && !x; g = x, z && (y.dispatch(Nn()), y.dispatch(Lt()), y.dispatch($e())); - }), u.render(i.createElement(te, { store: Be._store }, i.createElement(Os, null)), s); + }), u.render(i.createElement(ne, { store: Be._store }, i.createElement(Os, null)), s); } static _isAttachedTo(o) { return [...Be._editors.values()].includes(o); } } Be._editors = /* @__PURE__ */ new Map(), Be._wrapper = null; - })(), K = K.default; + })(), Q = Q.default; })()); })(_l)), _l.exports; } @@ -10864,7 +10894,7 @@ const Yu = /* @__PURE__ */ qu(Qu); * @license GPL-3.0-or-later */ const Xu = function(Se) { - const k = Se.plugins.get(Ac), v = $(Se.ui.view.element), T = $(Se.sourceElement), O = `ckeditor${Math.floor(Math.random() * 1e9)}`, K = [ + const v = Se.plugins.get(Ac), b = $(Se.ui.view.element), T = $(Se.sourceElement), O = `ckeditor${Math.floor(Math.random() * 1e9)}`, Q = [ "keypress", "keyup", "change", @@ -10874,77 +10904,77 @@ const Xu = function(Se) { "mousedown", "mouseup" ].map((i) => `${i}.${O}`).join(" "); - k.on("change:isSourceEditingMode", () => { - const i = v.find( + v.on("change:isSourceEditingMode", () => { + const i = b.find( ".ck-source-editing-area" ); - if (k.isSourceEditingMode) { + if (v.isSourceEditingMode) { let u = i.attr("data-value"); - i.on(K, () => { + i.on(Q, () => { u !== (u = i.attr("data-value")) && T.val(u); }); } else i.off(`.${O}`); }); -}, Gu = function(Se, k) { - if (k.heading !== void 0) { - var v = k.heading.options; - v.find((T) => T.view === "h1") !== void 0 && Se.keystrokes.set( +}, Gu = function(Se, v) { + if (v.heading !== void 0) { + var b = v.heading.options; + b.find((T) => T.view === "h1") !== void 0 && Se.keystrokes.set( "Ctrl+Alt+1", () => Se.execute("heading", { value: "heading1" }) - ), v.find((T) => T.view === "h2") !== void 0 && Se.keystrokes.set( + ), b.find((T) => T.view === "h2") !== void 0 && Se.keystrokes.set( "Ctrl+Alt+2", () => Se.execute("heading", { value: "heading2" }) - ), v.find((T) => T.view === "h3") !== void 0 && Se.keystrokes.set( + ), b.find((T) => T.view === "h3") !== void 0 && Se.keystrokes.set( "Ctrl+Alt+3", () => Se.execute("heading", { value: "heading3" }) - ), v.find((T) => T.view === "h4") !== void 0 && Se.keystrokes.set( + ), b.find((T) => T.view === "h4") !== void 0 && Se.keystrokes.set( "Ctrl+Alt+4", () => Se.execute("heading", { value: "heading4" }) - ), v.find((T) => T.view === "h5") !== void 0 && Se.keystrokes.set( + ), b.find((T) => T.view === "h5") !== void 0 && Se.keystrokes.set( "Ctrl+Alt+5", () => Se.execute("heading", { value: "heading5" }) - ), v.find((T) => T.view === "h6") !== void 0 && Se.keystrokes.set( + ), b.find((T) => T.view === "h6") !== void 0 && Se.keystrokes.set( "Ctrl+Alt+6", () => Se.execute("heading", { value: "heading6" }) - ), v.find((T) => T.model === "paragraph") !== void 0 && Se.keystrokes.set("Ctrl+Alt+p", "paragraph"); + ), b.find((T) => T.model === "paragraph") !== void 0 && Se.keystrokes.set("Ctrl+Alt+p", "paragraph"); } -}, Zu = function(Se, k) { - let v = null; +}, Zu = function(Se, v) { + let b = null; const T = Se.editing.view.document, O = Se.plugins.get("ClipboardPipeline"); - T.on("clipboardOutput", (K, i) => { - v = Se.id; - }), T.on("clipboardInput", async (K, i) => { + T.on("clipboardOutput", (Q, i) => { + b = Se.id; + }), T.on("clipboardInput", async (Q, i) => { let u = i.dataTransfer.getData("text/html"); - if (u && u.includes(" 0) { - let ae = $(L[0]).find("div.ckeditor-container"); - ae.length > 0 && (C = $(ae[0]).data("element-id")); + let se = $(L[0]).find("div.ckeditor-container"); + se.length > 0 && (C = $(se[0]).data("element-id")); } - C == null && (C = D.settings.elementId), h = N.parents(".field").data("layoutElement"); - for (let ae = 0; ae < w.length; ae++) { - let te = null; - w[ae][1] && (te = w[ae][1]); + C == null && (C = P.settings.elementId), h = N.parents(".field").data("layoutElement"); + for (let se = 0; se < w.length; se++) { + let ne = null; + w[se][1] && (ne = w[se][1]); let R = null; - if (w[ae][2] && (R = w[ae][2]), te !== null) { - const F = new RegExp('data-entry-id="' + te + '"'); - if (!(v === Se.id && !F.test(b))) { + if (w[se][2] && (R = w[se][2]), ne !== null) { + const U = new RegExp('data-entry-id="' + ne + '"'); + if (!(b === Se.id && !U.test(k))) { let q = null; - v !== Se.id && (k.includes(Vu) ? q = Se.config.get("entryTypeOptions").map((G) => G.value) : (Craft.cp.displayError( + b !== Se.id && (v.includes(Vu) ? q = Se.config.get("entryTypeOptions").map((G) => G.value) : (Craft.cp.displayError( Craft.t( "ckeditor", "This field doesn’t allow nested entries." @@ -10954,7 +10984,7 @@ const Xu = function(Se) { "ckeditor/ckeditor/duplicate-nested-entry", { data: { - entryId: te, + entryId: ne, targetSiteId: d, sourceSiteId: R, targetEntryTypeIds: q, @@ -10964,7 +10994,7 @@ const Xu = function(Se) { } ).then((G) => { G.data.newEntryId && (f = f.replace( - 'data-entry-id="' + te + '"', + 'data-entry-id="' + ne + '"', 'data-entry-id="' + G.data.newEntryId + '"' )), G.data.newSiteId && (f = f.replace( 'data-site-id="' + R + '"', @@ -10981,37 +11011,37 @@ const Xu = function(Se) { } } }); -}, id = async function(Se, k) { - typeof Se == "string" && (Se = document.querySelector(`#${Se}`)), k.licenseKey = "GPL", k.attachTo = Se; - const v = await xu.create(k); - Craft.showCkeditorInspector && Craft.userIsAdmin && Yu.attach(v), v.editing.view.change((i) => { - const u = v.editing.view.document.getRoot(); - if (typeof k.accessibleFieldName < "u" && k.accessibleFieldName.length) { +}, id = async function(Se, v) { + typeof Se == "string" && (Se = document.querySelector(`#${Se}`)), v.licenseKey = "GPL", v.attachTo = Se; + const b = await xu.create(v); + Craft.showCkeditorInspector && Craft.userIsAdmin && Yu.attach(b), b.editing.view.change((i) => { + const u = b.editing.view.document.getRoot(); + if (typeof v.accessibleFieldName < "u" && v.accessibleFieldName.length) { let f = u.getAttribute("aria-label"); i.setAttribute( "aria-label", - k.accessibleFieldName + ", " + f, + v.accessibleFieldName + ", " + f, u ); } - typeof k.describedBy < "u" && k.describedBy.length && i.setAttribute( + typeof v.describedBy < "u" && v.describedBy.length && i.setAttribute( "aria-describedby", - k.describedBy, + v.describedBy, u ); }); - let K = $(v.ui.view.element).parents("form").data("elementEditor"); - if (!K) - v.updateSourceElement(); + let Q = $(b.ui.view.element).parents("form").data("elementEditor"); + if (!Q) + b.updateSourceElement(); else { - const i = v.sourceElement.name, u = $(v.sourceElement).val(); - K.pause(), v.updateSourceElement(); - const f = $(v.sourceElement).val(); + const i = b.sourceElement.name, u = $(b.sourceElement).val(); + Q.pause(), b.updateSourceElement(); + const f = $(b.sourceElement).val(); if (u !== f) { - const _ = K.$container.data( + const _ = Q.$container.data( "initialSerializedValue" ); - typeof _ == "string" && K.$container.data( + typeof _ == "string" && Q.$container.data( "initialSerializedValue", _.replace( $.param({ [i]: u }), @@ -11019,11 +11049,11 @@ const Xu = function(Se) { ) ); } - K.resume(); + Q.resume(); } - return v.model.document.on("change:data", () => { - v.updateSourceElement(); - }), k.plugins.includes(Ac) && Xu(v), k.plugins.includes(Su) && Gu(v, k), Zu(v, k.plugins), v; + return b.model.document.on("change:data", () => { + b.updateSourceElement(); + }), v.plugins.includes(Ac) && Xu(b), v.plugins.includes(Su) && Gu(b, v), Zu(b, v.plugins), b; }; export { Vu as CraftEntries, diff --git a/src/web/assets/ckeditor/src/link/linkui.js b/src/web/assets/ckeditor/src/link/linkui.js index 0fde55cc..a2aa3fcb 100644 --- a/src/web/assets/ckeditor/src/link/linkui.js +++ b/src/web/assets/ckeditor/src/link/linkui.js @@ -39,6 +39,7 @@ export default class CraftLinkUI extends Plugin { this.advancedView = null; this.elementInputView = null; this.sitesView = null; + this.urlSuffixInputView = null; this.previousLinkValue = null; this.linkTypeDropdownView = null; @@ -482,7 +483,10 @@ export default class CraftLinkUI extends Plugin { onSelect: (elements) => { if (elements.length) { const element = elements[0]; - const url = `${element.url}#${linkOption.refHandle}:${element.id}@${element.siteId}`; + // include the URL suffix, in case it was provided before the element was selected + const urlSuffix = + this.urlSuffixInputView?.fieldView.element.value.trim() ?? ''; + const url = `${element.url}${urlSuffix}#${linkOption.refHandle}:${element.id}@${element.siteId}`; editor.editing.view.focus(); if ((!isCollapsed || currentLinkElement) && range) { @@ -640,66 +644,66 @@ export default class CraftLinkUI extends Plugin { linkCommand[attributeModel] || ''; } } else if (advancedField.value === 'urlSuffix') { - let labeledInputView = this._addLabeledField(advancedField); + this.urlSuffixInputView = this._addLabeledField(advancedField); // when you focus out of the urlSuffix field, update the main URL input field value with urlSuffix this.listenTo( - labeledInputView.fieldView, + this.urlSuffixInputView.fieldView, 'change:isFocused', (evt, name, value, oldValue) => { if (value !== oldValue && !value) { - let urlSuffix = evt.source.element.value; - let inputValue = null; - - const match = this._urlInputRefMatch(this.urlWithRefHandleRE); - if (match) { - // match[1] is the whole URL that shows before the {refTag} - inputValue = match[1]; - } else { - // if no match found then it's a "regular" link, e.g. https://craftcms.com or a relative one e.g. /my-page - inputValue = this._urlInputValue(); + // if no link target has been set yet, don't write the suffix into the main URL field; + // it'll get applied once the target is chosen + if (this._urlInputValue().trim() === '') { + return; } - // check if it's a "valid" absolute URL, if yes - proceed as with the matches, - // if not still extract query params and anchor - try { - let url = new URL(inputValue); - let search = url.search; - let hash = url.hash; - let baseUrl = inputValue.replace(hash, '').replace(search, ''); - - const newUrl = this._urlInputValue().replace( - inputValue, - baseUrl + urlSuffix, - ); - formView.urlInputView.fieldView.set('value', newUrl); - } catch (e) { - // it might be a relative URL, and we still need to proceed - // get the path, query params and anchor - let [base, hash] = inputValue.split('#'); - let [path, search] = base.split('?'); - - const newUrl = this._urlInputValue().replace( - inputValue, - path + urlSuffix, - ); - formView.urlInputView.fieldView.set('value', newUrl); - } + this._applyUrlSuffix(evt.source.element.value); } }, ); // update the URL Suffix form field when main URL field is loaded this.listenTo(formView.urlInputView.fieldView, 'change:value', (ev) => { - this._toggleUrlSuffixInputView(labeledInputView, ev.source.isEmpty); + this._toggleUrlSuffixInputView( + this.urlSuffixInputView, + ev.source.isEmpty, + ); }); + let urlWasEmptyOnFocus = false; // update the URL Suffix form field when main URL field is focused into and out of this.listenTo( formView.urlInputView.fieldView, 'change:isFocused', - (ev) => { - this._toggleUrlSuffixInputView(labeledInputView, ev.source.isEmpty); + (ev, name, isFocused) => { + const urlIsEmpty = this._urlInputValue().trim() === ''; + if (isFocused) { + urlWasEmptyOnFocus = urlIsEmpty; + } + + // don't clear the URL Suffix if it was provided before the URL + if (urlIsEmpty) { + return; + } + + // if the URL was provided after the URL Suffix, apply the suffix to it + const urlSuffix = + this.urlSuffixInputView?.fieldView.element.value.trim(); + if ( + !isFocused && + urlWasEmptyOnFocus && + urlSuffix !== '' && + this._getUrlSuffix() === '' + ) { + this._applyUrlSuffix(urlSuffix); + return; + } + + this._toggleUrlSuffixInputView( + this.urlSuffixInputView, + ev.source.isEmpty, + ); }, ); } @@ -733,42 +737,75 @@ export default class CraftLinkUI extends Plugin { * ensure the value is also showing in the URL Suffix advanced field. */ _toggleUrlSuffixInputView(labeledInputView, isEmpty) { - if (isEmpty) { - labeledInputView.fieldView.set('value', ''); - } else { - const match = this._urlInputRefMatch(this.urlWithRefHandleRE); - let inputValue = null; + labeledInputView.fieldView.set( + 'value', + isEmpty ? '' : this._getUrlSuffix(), + ); + } - if (match) { - // match[1] is the whole URL that shows before the {refTag} - inputValue = match[1]; - } else { - // if no match found then it's a "regular" link, e.g. https://craftcms.com or a relative one e.g. /my-page - inputValue = this._urlInputValue(); - } + /** + * Get the URL field value without the {refTag} portion. + */ + _getUrlWithoutRefTag() { + const match = this._urlInputRefMatch(this.urlWithRefHandleRE); + + // match[1] is the whole URL that shows before the {refTag}; + // if no match found then it's a "regular" link, e.g. https://craftcms.com or a relative one e.g. /my-page + return match ? match[1] : this._urlInputValue(); + } + + /** + * Get the query params and anchor from the URL field value. + */ + _getUrlSuffix() { + const inputValue = this._getUrlWithoutRefTag(); - // check if it's a "valid" absolute URL, if yes - proceed as with the matches, - // if not still extract query params and anchor - try { - let url = new URL(inputValue); - let search = url.search; - let hash = url.hash; + // check if it's a "valid" absolute URL, if yes - proceed as with the matches, + // if not still extract query params and anchor + try { + let url = new URL(inputValue); - labeledInputView.fieldView.set('value', search + hash); - } catch (e) { - // it might be a relative URL, and we still need to proceed - // get the path, query params and anchor - let [base, hash] = inputValue.split('#'); - let [path, search] = base.split('?'); + return url.search + url.hash; + } catch (e) { + // it might be a relative URL, and we still need to proceed + // get the path, query params and anchor + let [base, hash] = inputValue.split('#'); + let [path, search] = base.split('?'); - hash = hash ? '#' + hash : ''; - search = search ? '?' + search : ''; + hash = hash ? '#' + hash : ''; + search = search ? '?' + search : ''; - labeledInputView.fieldView.set('value', search + hash); - } + return search + hash; } } + /** + * Replace the query params and anchor in the URL field value with given URL suffix. + */ + _applyUrlSuffix(urlSuffix) { + const {formView} = this._linkUI; + const inputValue = this._getUrlWithoutRefTag(); + let baseUrl; + + // check if it's a "valid" absolute URL, if yes - proceed as with the matches, + // if not still extract query params and anchor + try { + let url = new URL(inputValue); + baseUrl = inputValue.replace(url.hash, '').replace(url.search, ''); + } catch (e) { + // it might be a relative URL, and we still need to proceed + // get the path as our baseUrl + let [base, hash] = inputValue.split('#'); + let [baseUrl, search] = base.split('?'); + } + + const newUrl = this._urlInputValue().replace( + inputValue, + baseUrl + urlSuffix, + ); + formView.urlInputView.fieldView.set('value', newUrl); + } + /** * When link form is submitted, pass the advanced field values the link command. */ From d8bdbdd2a2c2420d26d1c3b81ce689440c5cb39a Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Mon, 28 Sep 2026 10:04:31 -0700 Subject: [PATCH 2/2] Release note [ci skip] --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a4835b31..5cd65955 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - Fixed a bug where grouped toolbar items from third-party packages weren’t matched against the field’s toolbar. - Fixed a bug where all of a package’s toolbar items were shown as a single group in the toolbar builder, instead of as separately-placeable items and groups. - Fixed a bug where the “Displayed text” value was ignored when inserting a new element link, and the element’s title was used instead. ([#617](https://github.com/craftcms/ckeditor/pull/617)) +- Fixed a bug where links’ types would change to “URL” if a URL suffix was entered before an element was chosen. ([#619](https://github.com/craftcms/ckeditor/issues/619), [#624](https://github.com/craftcms/ckeditor/pull/624)) ## 5.7.0 - 2026-08-10