From 9931c8e0d33e8f08327807d5c1c1c5a26c0739c6 Mon Sep 17 00:00:00 2001 From: biss Date: Thu, 23 Jul 2026 22:24:21 +0800 Subject: [PATCH] 2 --- .../IAdminArrangementService.cs | 1 + .../Administration/IAdminExcelService.cs | 1 + .../Administration/IAdminResultService.cs | 4 +- .../AdminAdmissionService.Documents.cs | 7 +- .../Administration/AdminArrangementService.cs | 6 +- .../Administration/AdminExcelService.cs | 51 +- .../Administration/AdminNoticeService.cs | 15 +- .../Administration/AdminResultService.cs | 2 + .../Spreadsheets/SystemWorkbook.cs | 8 + .../NativeAdminReadEndpoints.cs | 11 +- src/Eis.Web/ClientApp/package-lock.json | 2596 +++++++++++ src/Eis.Web/ClientApp/package.json | 2 + .../components/admin/NoticeRichTextEditor.vue | 121 + .../components/admin/QualificationLedger.vue | 48 + .../src/components/common/ExcelActionBar.vue | 39 + .../src/components/common/LedgerPager.vue | 36 + .../ClientApp/src/composables/useLedger.js | 47 + .../ClientApp/src/lib/export-selection.js | 10 + src/Eis.Web/ClientApp/src/styles/app.css | 4071 ++++++++++++++--- .../views/admin/AdminAdmissionWorkspace.vue | 1429 +++++- .../src/views/admin/AdminCoreWorkspace.vue | 1811 +++++++- .../src/views/admin/AdminExamWorkspace.vue | 1474 +++++- .../src/views/admin/AdminSystemWorkspace.vue | 1453 +++++- src/Eis.Web/wwwroot/vue-app/app.css | 2 +- src/Eis.Web/wwwroot/vue-app/app.js | 17 +- .../Administration/AdminNoticeServiceTests.cs | 29 + 26 files changed, 12438 insertions(+), 853 deletions(-) create mode 100644 src/Eis.Web/ClientApp/src/components/admin/NoticeRichTextEditor.vue create mode 100644 src/Eis.Web/ClientApp/src/components/admin/QualificationLedger.vue create mode 100644 src/Eis.Web/ClientApp/src/components/common/ExcelActionBar.vue create mode 100644 src/Eis.Web/ClientApp/src/components/common/LedgerPager.vue create mode 100644 src/Eis.Web/ClientApp/src/composables/useLedger.js create mode 100644 src/Eis.Web/ClientApp/src/lib/export-selection.js create mode 100644 tests/Eis.Infrastructure.Tests/Administration/AdminNoticeServiceTests.cs diff --git a/src/Eis.Application/Administration/IAdminArrangementService.cs b/src/Eis.Application/Administration/IAdminArrangementService.cs index fbaa3c3..6e5f346 100644 --- a/src/Eis.Application/Administration/IAdminArrangementService.cs +++ b/src/Eis.Application/Administration/IAdminArrangementService.cs @@ -33,5 +33,6 @@ public interface IAdminArrangementService string sessionToken, string type, string examId, + IReadOnlySet selectedIds, CancellationToken cancellationToken); } diff --git a/src/Eis.Application/Administration/IAdminExcelService.cs b/src/Eis.Application/Administration/IAdminExcelService.cs index c6afd15..90209ae 100644 --- a/src/Eis.Application/Administration/IAdminExcelService.cs +++ b/src/Eis.Application/Administration/IAdminExcelService.cs @@ -8,6 +8,7 @@ public interface IAdminExcelService bool template, string examId, string batchId, + IReadOnlySet selectedIds, CancellationToken cancellationToken); Task ImportAsync( diff --git a/src/Eis.Application/Administration/IAdminResultService.cs b/src/Eis.Application/Administration/IAdminResultService.cs index ac2f476..4fd2d7b 100644 --- a/src/Eis.Application/Administration/IAdminResultService.cs +++ b/src/Eis.Application/Administration/IAdminResultService.cs @@ -19,5 +19,7 @@ public interface IAdminResultService Task SaveFeatureAsync(string sessionToken, string registrationId, JsonObject body, CancellationToken cancellationToken); Task ReviewAppealAsync(string sessionToken, string resultId, JsonObject body, CancellationToken cancellationToken); Task RefreshCacheAsync(string sessionToken, CancellationToken cancellationToken); - Task ExportAsync(string sessionToken, string examId, CancellationToken cancellationToken); + Task ExportAsync( + string sessionToken, string examId, IReadOnlySet selectedIds, + CancellationToken cancellationToken); } diff --git a/src/Eis.Infrastructure/Administration/AdminAdmissionService.Documents.cs b/src/Eis.Infrastructure/Administration/AdminAdmissionService.Documents.cs index 526bd94..375111a 100644 --- a/src/Eis.Infrastructure/Administration/AdminAdmissionService.Documents.cs +++ b/src/Eis.Infrastructure/Administration/AdminAdmissionService.Documents.cs @@ -628,10 +628,15 @@ internal sealed partial class AdminAdmissionService IReadOnlyDictionary filters) { var query = filters.GetValueOrDefault("q", "").Trim(); + var selectedIds = filters.GetValueOrDefault("ids", "") + .Split(',', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries) + .Take(1000) + .ToHashSet(StringComparer.Ordinal); foreach (var item in rows) { + if (selectedIds.Count > 0 && !selectedIds.Contains(Text(item["id"]))) continue; var payload = item["payload"] as JsonObject; - var matches = new[] { "examId", "schoolId", "sourceSchoolId", "status", "round" }.All(key => + var matches = new[] { "examId", "schoolId", "sourceSchoolId", "status", "fillStatus", "round" }.All(key => { var expected = filters.GetValueOrDefault(key, ""); return expected.Length == 0 || Text(item[key]) == expected || Text(payload?[key]) == expected; diff --git a/src/Eis.Infrastructure/Administration/AdminArrangementService.cs b/src/Eis.Infrastructure/Administration/AdminArrangementService.cs index 11fbdfb..8660bee 100644 --- a/src/Eis.Infrastructure/Administration/AdminArrangementService.cs +++ b/src/Eis.Infrastructure/Administration/AdminArrangementService.cs @@ -114,6 +114,7 @@ internal sealed class AdminArrangementService( string sessionToken, string type, string examId, + IReadOnlySet selectedIds, CancellationToken cancellationToken) { var context = await ResolveAsync(sessionToken, superOnly: false, cancellationToken); @@ -135,7 +136,7 @@ internal sealed class AdminArrangementService( .Select(item => item.Id) .ToHashSet(StringComparer.Ordinal); var registrations = operational.Registrations - .Where(item => item.ExamId == exam.Id && item.Data["admitCard"] is JsonObject card && + .Where(item => item.ExamId == exam.Id && (selectedIds.Count == 0 || selectedIds.Contains(item.Id)) && item.Data["admitCard"] is JsonObject card && centerIds.Contains(Text(card, "centerId"))) .ToArray(); var rows = BuildExportRows(operational, centers, directory, registrations); @@ -150,7 +151,8 @@ internal sealed class AdminArrangementService( var scoped = operational.Registrations.Where(item => { - if (item.ExamId != exam.Id || item.Data["admitCard"] is null) return false; + if (item.ExamId != exam.Id || item.Data["admitCard"] is null || + selectedIds.Count > 0 && !selectedIds.Contains(item.Id)) return false; var profile = operational.Profiles.FirstOrDefault(profile => profile.UserId == item.UserId); return profile is not null && InScope(user, profile); }).ToArray(); diff --git a/src/Eis.Infrastructure/Administration/AdminExcelService.cs b/src/Eis.Infrastructure/Administration/AdminExcelService.cs index 59a4f07..598032e 100644 --- a/src/Eis.Infrastructure/Administration/AdminExcelService.cs +++ b/src/Eis.Infrastructure/Administration/AdminExcelService.cs @@ -29,6 +29,7 @@ internal sealed class AdminExcelService( ["account_quotas"] = "报名号班级配额", ["account_results"] = "报名号下发结果", ["candidates"] = "考生资料", + ["registrations"] = "考试报名台账", ["payments"] = "考试缴费名单", ["centers"] = "考点考场档案", ["results"] = "成绩台账" @@ -40,6 +41,7 @@ internal sealed class AdminExcelService( bool template, string examId, string batchId, + IReadOnlySet selectedIds, CancellationToken cancellationToken) { var context = await ResolveAsync(sessionToken, cancellationToken); @@ -49,9 +51,9 @@ internal sealed class AdminExcelService( var user = context.User!; if (!CanRead(user, resource)) return DocumentError(Error(403, "当前账号不能导出该数据")); if (resource == "results") - return await resultService.ExportAsync(sessionToken, examId, cancellationToken); + return await resultService.ExportAsync(sessionToken, examId, selectedIds, cancellationToken); var rows = template ? Array.Empty() : - await ExportRowsAsync(user, resource, batchId, cancellationToken); + await ExportRowsAsync(user, resource, batchId, selectedIds, cancellationToken); if (rows is null) return DocumentError(Error(404, "批次不存在或不在当前学校范围内")); var content = SystemWorkbook.Build(resource, rows, template); var name = $"{ResourceNames[resource]}-{(template ? "导入模板" : "导出")}-{DateTime.UtcNow:yyyy-MM-dd}.xlsx"; @@ -69,7 +71,7 @@ internal sealed class AdminExcelService( if (context.Error is not null) return context.Error; if (!ResourceNames.ContainsKey(resource) || !SystemWorkbook.Supports(resource)) return Error(404, "Excel 数据类型不存在"); - if (resource is "account_results" or "payments") + if (resource is "account_results" or "registrations" or "payments") return Error(400, "该清单只支持导出"); IReadOnlyList rows; try @@ -101,6 +103,7 @@ internal sealed class AdminExcelService( AuthenticationUser user, string resource, string batchId, + IReadOnlySet selectedIds, CancellationToken cancellationToken) { var directory = await directoryLoader.LoadAsync(cancellationToken); @@ -108,14 +111,14 @@ internal sealed class AdminExcelService( ? directory.Schools.Select(item => item.Id).ToHashSet(StringComparer.Ordinal) : new HashSet(user.SchoolId is null ? [] : [user.SchoolId], StringComparer.Ordinal); if (resource == "classes") - return directory.Classes.Where(item => schoolIds.Contains(item.SchoolId)).Select(item => + return directory.Classes.Where(item => schoolIds.Contains(item.SchoolId) && Selected(item.Id, selectedIds)).Select(item => new JsonObject { ["schoolCode"] = directory.Schools.FirstOrDefault(school => school.Id == item.SchoolId)?.Code ?? "", ["grade"] = item.Grade, ["name"] = item.Name, ["status"] = item.Active ? "启用" : "停用" }).ToArray(); if (resource == "class_admins") - return directory.Users.Where(item => item.Role == "admin" && item.AdminLevel == "class" && + return directory.Users.Where(item => item.Role == "admin" && item.AdminLevel == "class" && Selected(item.Id, selectedIds) && item.SchoolId is not null && schoolIds.Contains(item.SchoolId)) .Select(item => new JsonObject { @@ -125,14 +128,14 @@ internal sealed class AdminExcelService( ["status"] = item.Active ? "启用" : "停用" }).ToArray(); if (resource == "account_quotas") - return directory.Classes.Where(item => item.Active && schoolIds.Contains(item.SchoolId)) + return directory.Classes.Where(item => item.Active && schoolIds.Contains(item.SchoolId) && Selected(item.Id, selectedIds)) .Select(item => new JsonObject { ["className"] = item.Name, ["count"] = 0 }).ToArray(); if (resource == "account_results") { var batch = directory.Batches.FirstOrDefault(item => item.Id == batchId && schoolIds.Contains(item.SchoolId)); if (batch is null) return null; - return directory.Items.Where(item => item.BatchId == batch.Id) + return directory.Items.Where(item => item.BatchId == batch.Id && Selected(item.Id, selectedIds)) .OrderBy(item => item.Position).Select(item => new JsonObject { ["batchId"] = batch.Id, @@ -143,7 +146,7 @@ internal sealed class AdminExcelService( } var operational = await operationalLoader.LoadAsync(cancellationToken); if (resource == "candidates") - return operational.Profiles.Where(item => InScope(user, item)).Select(profile => + return operational.Profiles.Where(item => InScope(user, item) && Selected(item.UserId, selectedIds)).Select(profile => new JsonObject { ["candidateNumber"] = operational.Users.FirstOrDefault(item => item.Id == profile.UserId)?.CandidateNumber ?? "", @@ -159,8 +162,33 @@ internal sealed class AdminExcelService( ["postalCode"] = Text(profile.Data["postalCode"]), ["guardianName"] = Text(profile.Data["guardianName"]), ["guardianPhone"] = Text(profile.Data["guardianPhone"]) }).ToArray(); + if (resource == "registrations") + return operational.Registrations.Where(item => Selected(item.Id, selectedIds)) + .Select(registration => (Registration: registration, + Profile: operational.Profiles.FirstOrDefault(profile => profile.UserId == registration.UserId))) + .Where(item => item.Profile is not null && InScope(user, item.Profile)) + .Select(item => + { + var profile = item.Profile!; + var exam = operational.Exams.FirstOrDefault(exam => exam.Id == item.Registration.ExamId); + var account = operational.Users.FirstOrDefault(account => account.Id == item.Registration.UserId); + var subjectIds = (item.Registration.Data["subjectIds"] as JsonArray ?? []).Select(Text).ToHashSet(StringComparer.Ordinal); + var subjects = (exam?.Subjects ?? []).Where(subject => subjectIds.Contains(Text(subject["id"]))).ToArray(); + return new JsonObject + { + ["candidateNumber"] = account?.CandidateNumber ?? Text(item.Registration.Data["registrationNumber"]), + ["candidateName"] = Text(profile.Data["name"]) is { Length: > 0 } name ? name : account?.DisplayName ?? "", + ["schoolName"] = directory.Schools.FirstOrDefault(school => school.Id == profile.SchoolId)?.Name ?? Text(profile.Data["school"]), + ["className"] = directory.Classes.FirstOrDefault(entry => entry.Id == profile.ClassId)?.Name ?? Text(profile.Data["grade"]), + ["examCode"] = Text(exam?.Data["code"]), ["examName"] = Text(exam?.Data["name"]), + ["subjectNames"] = string.Join('、', subjects.Select(subject => Text(subject["name"]))), + ["registrationStatus"] = item.Registration.Status switch { "approved" => "已通过", "rejected" => "已退回", _ => "待审核" }, + ["paymentStatus"] = item.Registration.PaymentStatus == "paid" ? "已缴费" : "待缴费", + ["reviewNote"] = Text(item.Registration.Data["reviewNote"]) + }; + }).ToArray(); if (resource == "payments") - return operational.Registrations.Where(item => item.Status == "approved") + return operational.Registrations.Where(item => item.Status == "approved" && Selected(item.Id, selectedIds)) .Select(registration => (Registration: registration, Profile: operational.Profiles.FirstOrDefault(profile => profile.UserId == registration.UserId))) .Where(item => item.Profile is not null && InScope(user, item.Profile)) @@ -188,7 +216,7 @@ internal sealed class AdminExcelService( if (resource == "centers") { var centers = await centerLoader.LoadAsync(cancellationToken); - return centers.Centers.Where(item => schoolIds.Contains(item.SchoolId)).SelectMany(center => + return centers.Centers.Where(item => schoolIds.Contains(item.SchoolId) && Selected(item.Id, selectedIds)).SelectMany(center => { var rooms = centers.Rooms.Where(item => item.CenterId == center.Id).ToArray(); if (rooms.Length == 0) rooms = [new AdminCenterRoom("", center.Id, "", "", "", "", 0, "", 1, 0, "", "active", "")]; @@ -213,6 +241,9 @@ internal sealed class AdminExcelService( return []; } + private static bool Selected(string id, IReadOnlySet selectedIds) => + selectedIds.Count == 0 || selectedIds.Contains(id); + private async Task ImportClassesAsync( AuthenticationUser user, IReadOnlyList rows, diff --git a/src/Eis.Infrastructure/Administration/AdminNoticeService.cs b/src/Eis.Infrastructure/Administration/AdminNoticeService.cs index 33d0091..cbb6724 100644 --- a/src/Eis.Infrastructure/Administration/AdminNoticeService.cs +++ b/src/Eis.Infrastructure/Administration/AdminNoticeService.cs @@ -76,9 +76,9 @@ internal sealed class AdminNoticeService( if (existing is null) return Error(404, "通知不存在"); var notice = existing with { - Title = body["title"] is null ? existing.Title : Clean(Text(body["title"]), 260), + Title = body["title"] is null ? existing.Title : Clean(Text(body["title"]), 120), Summary = body["summary"] is null ? existing.Summary : Clean(Text(body["summary"]), 260), - Category = body["category"] is null ? existing.Category : Clean(Text(body["category"]), 260), + Category = body["category"] is null ? existing.Category : Clean(Text(body["category"]), 30), Pinned = body["pinned"] is null ? existing.Pinned : JsBoolean(body["pinned"]) }; if (body["content"] is not null) @@ -87,6 +87,8 @@ internal sealed class AdminNoticeService( if (formatter.PlainText(content).Length == 0) return Error(400, "通知正文不能为空"); notice = notice with { Content = content }; } + if (notice.Title.Length == 0 || formatter.PlainText(notice.Content).Length == 0) + return Error(400, "通知标题和正文不能为空"); var requestedStatus = Text(body["status"]); if (requestedStatus is "draft" or "published") { @@ -116,7 +118,7 @@ internal sealed class AdminNoticeService( var snapshot = await repository.LoadManagementAsync(cancellationToken); var existing = AdminPublicationProjector.FindSourceRecord(snapshot.Records, sourceType, publicationId); if (existing is null) return Error(404, "系统公示不存在"); - if (body["visible"] is not JsonValue value || !value.TryGetValue(out var visible)) + if (!TryReadPublicVisibility(body, out var visible)) { return Error(400, "请明确设置是否显示"); } @@ -176,6 +178,13 @@ internal sealed class AdminNoticeService( return true; } + internal static bool TryReadPublicVisibility(JsonObject body, out bool visible) + { + visible = false; + var value = body["publicVisible"] ?? body["visible"]; + return value is JsonValue jsonValue && jsonValue.TryGetValue(out visible); + } + private static string Text(JsonNode? node) => node is JsonValue value && value.TryGetValue(out var text) ? text : node?.ToString() ?? ""; private static string Clean(string value, int maximum) { var cleaned = value.Trim(); return cleaned[..Math.Min(cleaned.Length, maximum)]; } diff --git a/src/Eis.Infrastructure/Administration/AdminResultService.cs b/src/Eis.Infrastructure/Administration/AdminResultService.cs index 615c0dd..97bfca9 100644 --- a/src/Eis.Infrastructure/Administration/AdminResultService.cs +++ b/src/Eis.Infrastructure/Administration/AdminResultService.cs @@ -729,6 +729,7 @@ internal sealed class AdminResultService( public async Task ExportAsync( string sessionToken, string examId, + IReadOnlySet selectedIds, CancellationToken cancellationToken) { var context = await ResolveAsync(sessionToken, superOnly: false, cancellationToken); @@ -756,6 +757,7 @@ internal sealed class AdminResultService( { var result = allResults.FirstOrDefault(item => item.RegistrationId == registration.Id && item.SubjectId == Text(subject["id"])); + if (selectedIds.Count > 0 && (result is null || !selectedIds.Contains(result.Id))) continue; var card = registration.Data["admitCard"] as JsonObject; rows.Add(new( account?.CandidateNumber ?? Text(registration.Data["registrationNumber"]), diff --git a/src/Eis.Infrastructure/Spreadsheets/SystemWorkbook.cs b/src/Eis.Infrastructure/Spreadsheets/SystemWorkbook.cs index 228cc53..0624157 100644 --- a/src/Eis.Infrastructure/Spreadsheets/SystemWorkbook.cs +++ b/src/Eis.Infrastructure/Spreadsheets/SystemWorkbook.cs @@ -63,6 +63,14 @@ internal static class SystemWorkbook C("paymentStatus", "缴费状态", 14, ""), C("paidAt", "确认时间", 24, ""), C("paidByName", "确认人", 16, "") ]), + ["registrations"] = new("考试报名审核台账", "考试报名", + [ + C("candidateNumber", "报名号", 26, ""), C("candidateName", "考生姓名", 16, ""), + C("schoolName", "学校", 24, ""), C("className", "班级", 20, ""), + C("examCode", "考试代码", 18, ""), C("examName", "考试名称", 28, ""), + C("subjectNames", "报考科目", 34, ""), C("registrationStatus", "报名状态", 14, ""), + C("paymentStatus", "缴费状态", 14, ""), C("reviewNote", "审核意见", 28, "") + ]), ["centers"] = new("考点考场档案", "考点考场", [ C("schoolCode", "学校代码*", 14, "HZ01"), C("centerCode", "考点代码*", 18, "HZ01-C02"), diff --git a/src/Eis.Web/Administration/NativeAdminReadEndpoints.cs b/src/Eis.Web/Administration/NativeAdminReadEndpoints.cs index 19f1467..85b7b31 100644 --- a/src/Eis.Web/Administration/NativeAdminReadEndpoints.cs +++ b/src/Eis.Web/Administration/NativeAdminReadEndpoints.cs @@ -19,7 +19,7 @@ public static class NativeAdminReadEndpoints endpoints.MapGet("/api/admin/schools", (HttpContext context, IAdminReadService service, CancellationToken cancellationToken) => Execute(context, service.GetSchoolsAsync(Token(context), cancellationToken))); endpoints.MapGet( - "/api/admin/excel/{resource:regex(^(classes|class_admins|account_quotas|account_results|candidates|payments|centers|results)$)}", + "/api/admin/excel/{resource:regex(^(classes|class_admins|account_quotas|account_results|candidates|registrations|payments|centers|results)$)}", (HttpContext context, string resource, IAdminExcelService service, CancellationToken cancellationToken) => ExecuteDocument( context, @@ -29,6 +29,7 @@ public static class NativeAdminReadEndpoints context.Request.Query.ContainsKey("template"), context.Request.Query["examId"].ToString(), context.Request.Query["batchId"].ToString(), + SelectedIds(context), cancellationToken))); endpoints.MapPost( "/api/admin/excel/{resource:regex(^(classes|class_admins|account_quotas|candidates|centers|results)$)}", @@ -181,6 +182,7 @@ public static class NativeAdminReadEndpoints Token(context), type, context.Request.Query["examId"].ToString(), + SelectedIds(context), cancellationToken))); endpoints.MapPost("/api/admin/registrations/{registrationId}/admit-card", (HttpContext context, string registrationId, IAdminArrangementService service, CancellationToken cancellationToken) => @@ -377,6 +379,13 @@ public static class NativeAdminReadEndpoints return endpoints; } + private static IReadOnlySet SelectedIds(HttpContext context) => + context.Request.Query["ids"].ToString() + .Split(',', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries) + .Where(item => item.Length <= 128) + .Take(1000) + .ToHashSet(StringComparer.Ordinal); + private static async Task Execute(HttpContext context, Task operation) { var result = await operation; diff --git a/src/Eis.Web/ClientApp/package-lock.json b/src/Eis.Web/ClientApp/package-lock.json index 227e065..6a98342 100644 --- a/src/Eis.Web/ClientApp/package-lock.json +++ b/src/Eis.Web/ClientApp/package-lock.json @@ -8,6 +8,8 @@ "name": "eis-web-client", "version": "1.0.0", "dependencies": { + "@ckeditor/ckeditor5-vue": "^8.2.0", + "ckeditor5": "^48.3.1", "vue": "3.5.40", "vue-router": "5.2.0" }, @@ -125,6 +127,871 @@ "node": ">=6.9.0" } }, + "node_modules/@ckeditor/ckeditor5-adapter-ckfinder": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-adapter-ckfinder/-/ckeditor5-adapter-ckfinder-48.3.1.tgz", + "integrity": "sha512-xv072kFznzCLzG6Kiro9Pwb6v3FNXMu6/NWQX+NCl0wlqit85hRbIMJW0WyWxuYY4XgcDn4cgB89vRJ5p0zKsQ==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-upload": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-alignment": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-alignment/-/ckeditor5-alignment-48.3.1.tgz", + "integrity": "sha512-ayiSLBtw4xvtMEPl6AhMX66Io6ajmq+2y2+FePfwu+9B8f8JblEApcWFLlj0HXxfWfJ470sEVMvwUJAwPLH9Jg==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-autoformat": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-autoformat/-/ckeditor5-autoformat-48.3.1.tgz", + "integrity": "sha512-65TMkSDpfE63WquypME53ESV209U1iXuhX32x95nc45hSi4CMn25oxqansrCpxIlHWww3d7z3tUgSRFGXpFSag==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-heading": "48.3.1", + "@ckeditor/ckeditor5-typing": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-autosave": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-autosave/-/ckeditor5-autosave-48.3.1.tgz", + "integrity": "sha512-mc9UmTpyVBUn+V/pmzkP8PKJNuijytY8RuV7bckeq9OmxXOz2AD0lqlp+X48OcrgcefCA6e01D1hgElMhHQ/Hw==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-basic-styles": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-basic-styles/-/ckeditor5-basic-styles-48.3.1.tgz", + "integrity": "sha512-uVbKZLNScqYyvj/Wg3uP2sWCHVuvYyFCGSNA1osnmI4DwKi3BS4TW/rm3IYUPrD6q2y/GGJK05OyHr3hyw4oig==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-typing": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-block-quote": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-block-quote/-/ckeditor5-block-quote-48.3.1.tgz", + "integrity": "sha512-9T03V/VjWYu6dhyKWZVrlggeOumQXpUt4lygK6NQuSQ9lIMEnhFgzjqtZsGe9l90zvnPaUvV9IC3u1xUFZvzhg==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-enter": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-typing": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-bookmark": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-bookmark/-/ckeditor5-bookmark-48.3.1.tgz", + "integrity": "sha512-EC5fmzUT5GKyIwQw+4tnHHJD4kUIBbiwP/+0gjHVZnHisRLfBOC3GAIczzq/AXDBIuaHqC9DZOAQQp+ltItHfQ==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-link": "48.3.1", + "@ckeditor/ckeditor5-typing": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "@ckeditor/ckeditor5-widget": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-ckbox": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ckbox/-/ckeditor5-ckbox-48.3.1.tgz", + "integrity": "sha512-ZaonwyuQjqjsho4iKDGSTn/M+SFs/OTl0WMkFU3tOhWpUikWKejNM94z+T6OR9oELWJVb58Jg6ubV6+ZYaLL7A==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-cloud-services": "48.3.1", + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-image": "48.3.1", + "@ckeditor/ckeditor5-link": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-upload": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "blurhash": "2.0.5", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-ckfinder": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ckfinder/-/ckeditor5-ckfinder-48.3.1.tgz", + "integrity": "sha512-kZBp/eDhr8Y/CcE2UQZxFp3fZ+w4WYdYxmyuQ70mg4cOS1TMV9eh26Zz5khWAt+oAJsxVIDL5KNodak/hFpJ2w==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-adapter-ckfinder": "48.3.1", + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-image": "48.3.1", + "@ckeditor/ckeditor5-link": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-clipboard": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-clipboard/-/ckeditor5-clipboard-48.3.1.tgz", + "integrity": "sha512-PNI7yw9ese+fyQz0LzExRPY1CkjA6q9XqLDeMuLgp92Mkd7Vp1wftbB0ZLVyrzTIw8DEUudKziVsY3A4mT5aWA==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "@ckeditor/ckeditor5-widget": "48.3.1", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-cloud-services": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-cloud-services/-/ckeditor5-cloud-services-48.3.1.tgz", + "integrity": "sha512-pHJAj5RRhTV7uyexs0ryFj82zZNex91VtmwTOB/z+VPXSHq4jzpxFE1fVuoHgkydUF5S5Dl6TiFru48yYlK4YA==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-upload": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-code-block": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-code-block/-/ckeditor5-code-block-48.3.1.tgz", + "integrity": "sha512-9mwgtcrNCTK/06HXH+o8yNbrN/nCAflQtJ6LmAf1Gw/6Fed9gQslMcs5+ADO98Jer5OetpuKeqgmBACAuQUTmg==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-clipboard": "48.3.1", + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-enter": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-core": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-core/-/ckeditor5-core-48.3.1.tgz", + "integrity": "sha512-wrAhYK5R8MkGAE0VrOMFQN9LSRpSATS7DFKr4CCJod9EgBT873SCu34Ey0fzSqGxeOqamlcXQJVh/77+3JP4SQ==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "@ckeditor/ckeditor5-watchdog": "48.3.1", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-easy-image": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-easy-image/-/ckeditor5-easy-image-48.3.1.tgz", + "integrity": "sha512-A63AcmaAAGVUhALHVtwHrlBaWEaRjBhxWTwkQoy3RFPpSAXi1k0Cy55HhkVrnqVZSuKmljcX3FttpjOb6MQq8g==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-cloud-services": "48.3.1", + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-image": "48.3.1", + "@ckeditor/ckeditor5-upload": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-editor-balloon": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-editor-balloon/-/ckeditor5-editor-balloon-48.3.1.tgz", + "integrity": "sha512-Unmzb3E+O83gIAvIT/RHyV1EzaxQGOzBiXGJhQahhQg++EvHUt4tmAJ6VzSLgJbtr8z3rMkA+lYpD5+OzpGT4w==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-editor-classic": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-editor-classic/-/ckeditor5-editor-classic-48.3.1.tgz", + "integrity": "sha512-7azS8ry8+c3H8S1RM1Aphq8wCig4mmLpK/kTmdF2/+JkPUszRoVK1HThSmBkstKCHDv4UuSVR+FcJ6Co6Tavog==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-editor-decoupled": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-editor-decoupled/-/ckeditor5-editor-decoupled-48.3.1.tgz", + "integrity": "sha512-S9xGZS7Hl2jWQrZFVwk3o7x9Wwl7tgbQl8TCujr0Bi0zxoM286WkHbBUej9oLVVtDHvq7xDSafmUURbL/K5ZXw==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-editor-inline": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-editor-inline/-/ckeditor5-editor-inline-48.3.1.tgz", + "integrity": "sha512-uoXl+lfvGzH6HPHyjgcQcwK/WSDxchmkQvPrMHxTCyeimn4ffzFKzIH4WiOz39t1lXpMjI0hTy66eTB8F/+qvg==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-editor-multi-root": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-editor-multi-root/-/ckeditor5-editor-multi-root-48.3.1.tgz", + "integrity": "sha512-5BUDEfVCsj4Al6lHWPDxUCRUymoWwmwwg9hZqd6iSkBtDOuZfiGC9IitMb6qYvrD2Q0MLRoiW0z9n6My4ZMHfQ==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-emoji": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-emoji/-/ckeditor5-emoji-48.3.1.tgz", + "integrity": "sha512-JQGLX9rMMnMY5/d8bJrF2htxKGxFfrW+E+rAy+Uc5FZ+cOCQCUfI0+kYpZYj/oyt5BH6VXn099e1Uu4xjicgAA==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-mention": "48.3.1", + "@ckeditor/ckeditor5-typing": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "es-toolkit": "1.45.1", + "fuzzysort": "3.1.0" + } + }, + "node_modules/@ckeditor/ckeditor5-engine": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-engine/-/ckeditor5-engine-48.3.1.tgz", + "integrity": "sha512-CbOuKrm3g8T2Df6WMEYtQMm4DJTAlmRutQQFj94zaXqDPyb8dSLpdPZ0Z89Qg2tagh9IEw0maG40ei2H4FETiQ==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-utils": "48.3.1", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-enter": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-enter/-/ckeditor5-enter-48.3.1.tgz", + "integrity": "sha512-+gs7yLyWSfYlBofKA1ce4O4fPBoMw4mSXNun9CZP2FgByvsnS/5sOE3c3UTJS2bSLYabNkZRH3SG4XWKKhunGg==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-essentials": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-essentials/-/ckeditor5-essentials-48.3.1.tgz", + "integrity": "sha512-/yYMvcdYpwfQOumLNFccOnQvWfJoXN4Ny5a8m9OO/syGqeMtgpLy+Pn8be3nq4/pxdU6Qz0VnGVzU9OaHXxw4A==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-clipboard": "48.3.1", + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-enter": "48.3.1", + "@ckeditor/ckeditor5-select-all": "48.3.1", + "@ckeditor/ckeditor5-typing": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-undo": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-find-and-replace": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-find-and-replace/-/ckeditor5-find-and-replace-48.3.1.tgz", + "integrity": "sha512-R4DPKGC5XmN68W2HuUBRo8VJJ1KCB5Y8gr6JbNDNGQ7aJWrgAjQU7H7d9EEwxU6wjxzNAT7MJqPOEX/WixUBhA==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-font": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-font/-/ckeditor5-font-48.3.1.tgz", + "integrity": "sha512-Q8EVEjVix3HOleJ6XtJpXDqD7WGMU3WZR/9eK1hMvOHnvRWkHwXJve5IoaBseJXSSQopG98D1rvWuNvE+qsZNg==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-fullscreen": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-fullscreen/-/ckeditor5-fullscreen-48.3.1.tgz", + "integrity": "sha512-/UQzJFhOMJrDBB+02jSNJVD6E0cjNZ43KgsR8croTDEPLQ2pRH50aUkBZTZn7TfSYx7X2aeaYbyegvSB+pfw6g==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-editor-classic": "48.3.1", + "@ckeditor/ckeditor5-editor-decoupled": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-heading": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-heading/-/ckeditor5-heading-48.3.1.tgz", + "integrity": "sha512-CPlf4wSatQLqbgsj7DWPaOtjTgqchQX4Mv57NbV/2ZvDnqDOpjMi06d49yQngiPFv/6zqszr8U1raUX1OUhfYA==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-enter": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-paragraph": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-highlight": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-highlight/-/ckeditor5-highlight-48.3.1.tgz", + "integrity": "sha512-wlqHoOuHeA2qrE9rBeVHgVK75puzTFWn/V8IhAcVBCPB2AApLYNTO7fkfhOEpxqodE2It1lPpN4JfVRWUkoCIw==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-horizontal-line": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-horizontal-line/-/ckeditor5-horizontal-line-48.3.1.tgz", + "integrity": "sha512-yl25cVmB5T+fsC2VqJvDLnmS9ymn+4LLaGSnue2D8Tg1WK/YTyWxKg3n0anPzMWBBLr1XcKAyVmnGFI66AKwvA==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "@ckeditor/ckeditor5-widget": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-html-embed": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-html-embed/-/ckeditor5-html-embed-48.3.1.tgz", + "integrity": "sha512-AuXaTHSnxR6chWIz9Z9UY2x4ANHN6Uf0jkfiAFcP6POWaD7YLsviTEYk+YGYw/kcXExMw3CQriDK5KdsjZtnkA==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "@ckeditor/ckeditor5-widget": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-html-support": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-html-support/-/ckeditor5-html-support-48.3.1.tgz", + "integrity": "sha512-aQ0ZHvvOATsUBykQJcGCFOTJjBDX3OULfeJWV1bqdVWAQt0BHC5xkq6d1IpbyKDaW9IkcB19GOS9nQgs1FasNg==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-clipboard": "48.3.1", + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-enter": "48.3.1", + "@ckeditor/ckeditor5-heading": "48.3.1", + "@ckeditor/ckeditor5-image": "48.3.1", + "@ckeditor/ckeditor5-list": "48.3.1", + "@ckeditor/ckeditor5-remove-format": "48.3.1", + "@ckeditor/ckeditor5-table": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "@ckeditor/ckeditor5-widget": "48.3.1", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-icons": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-icons/-/ckeditor5-icons-48.3.1.tgz", + "integrity": "sha512-a8mE5oTQ8TKf/325UmDixhhqGbDyzd749kcrANyzxwc89PtTMdUayl+D0Sj92Xp5fqMHgDEqipUcoohH9OSFBg==", + "license": "SEE LICENSE IN LICENSE.md" + }, + "node_modules/@ckeditor/ckeditor5-image": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-image/-/ckeditor5-image-48.3.1.tgz", + "integrity": "sha512-3lQY0LEpUNle2nUrONOtOXax62JQE9ZYltMDkOhMy9hcto0BoIngBebBsBBKZmpPugvMTf4qPYh1VkorOAdH0g==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-clipboard": "48.3.1", + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-typing": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-undo": "48.3.1", + "@ckeditor/ckeditor5-upload": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "@ckeditor/ckeditor5-widget": "48.3.1", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-indent": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-indent/-/ckeditor5-indent-48.3.1.tgz", + "integrity": "sha512-hRuAPVDex46Ky86wuWNoPLpkPYQt0jGECKPnSYsjavm/il6rm57J/Y/jk7CKGJJVIovVLFftvWsI0yHLcsAP1w==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-heading": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-list": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-integrations-common": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-integrations-common/-/ckeditor5-integrations-common-2.4.1.tgz", + "integrity": "sha512-DKBMAoKuNWebCFQurX748FP/D8QzfQs7cW5BCJVYRjz0bgbhV33Wj15zKVtByaNLLLOy/fKcYPGHv06KVc4k/Q==", + "license": "SEE LICENSE IN LICENSE.md", + "peerDependencies": { + "ckeditor5": ">=42.0.0 || ^0.0.0-nightly" + } + }, + "node_modules/@ckeditor/ckeditor5-language": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-language/-/ckeditor5-language-48.3.1.tgz", + "integrity": "sha512-DGOxZyTvrXisV+3FhFEcagfSlTC7m2tdhD2CJJmBRkKX+2ZOdeP1D0QCD6ybFlO3D/wT57Po2QX2nCVI6U79dQ==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-link": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-link/-/ckeditor5-link-48.3.1.tgz", + "integrity": "sha512-E3pAhuNy77F55JUnX40apemSbsOC3RbUPIgPclNlh/1PXs1uN/bjkkyDVYQ/rT5MrophY3tw/bLZ/cRrbEuKBg==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-clipboard": "48.3.1", + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-enter": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-image": "48.3.1", + "@ckeditor/ckeditor5-typing": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "@ckeditor/ckeditor5-widget": "48.3.1", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-list": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-list/-/ckeditor5-list-48.3.1.tgz", + "integrity": "sha512-KyuXH0aAiiQCOB+yJAru/C5GJqT7a+OoHoanjZMsFq5jjK9r5Tjrh6hUfqXpw+okU1x7Ow+/J4QLVI3QqSnluQ==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-clipboard": "48.3.1", + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-enter": "48.3.1", + "@ckeditor/ckeditor5-font": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-typing": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-markdown-gfm": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-markdown-gfm/-/ckeditor5-markdown-gfm-48.3.1.tgz", + "integrity": "sha512-y+aa3uPNwaTKxSXRcW3DNP4CfXBmXDmQk24mDVE4q7rl6lWkdnAUeEvUsaGYTRjs4szvY+HIaCts8OcSgKfvhA==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-clipboard": "48.3.1", + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@types/hast": "3.0.4", + "hast-util-from-dom": "5.0.1", + "hast-util-to-html": "9.0.5", + "hast-util-to-mdast": "10.1.2", + "hastscript": "9.0.1", + "rehype-dom-parse": "5.0.2", + "rehype-dom-stringify": "4.0.2", + "rehype-remark": "10.0.1", + "remark-breaks": "4.0.0", + "remark-gfm": "4.0.1", + "remark-parse": "11.0.0", + "remark-rehype": "11.1.2", + "remark-stringify": "11.0.0", + "unified": "11.0.5", + "unist-util-visit": "5.0.0" + } + }, + "node_modules/@ckeditor/ckeditor5-media-embed": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-media-embed/-/ckeditor5-media-embed-48.3.1.tgz", + "integrity": "sha512-Asq6B/nuhhHCka4mtjbIM4RrHAOWwCAYmR4kaX8xh6G81FfXKI/X26rJ8TjLno5J7lNgacdB6OznNu/UcJO0gQ==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-clipboard": "48.3.1", + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-typing": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-undo": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "@ckeditor/ckeditor5-widget": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-mention": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-mention/-/ckeditor5-mention-48.3.1.tgz", + "integrity": "sha512-TdmXZ+NnBXdbMtbA6Yo93mZpTs0oz9HfN8jY9yEJXsECOC0XPC1+nghQQrxJ3a9+eq6qba/JNLLM+ZV0W6DOaA==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-typing": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-minimap": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-minimap/-/ckeditor5-minimap-48.3.1.tgz", + "integrity": "sha512-kDJfTRv31WrFisXBKzHNtKhAseiSsJKw1oWIPqqLIN9rnYXnEpjqa5BRgypfFbS7LW0wgjKvCOH/yHMyPrv64A==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-page-break": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-page-break/-/ckeditor5-page-break-48.3.1.tgz", + "integrity": "sha512-Wbsq6ZEOQN+zmfhMx05Ey0mda6qCj74j34yEZrnJ5nfFAoody7q3hJ7yJ9Edu10zF8+LXfC8+ebpaXQr77IvLg==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "@ckeditor/ckeditor5-widget": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-paragraph": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-paragraph/-/ckeditor5-paragraph-48.3.1.tgz", + "integrity": "sha512-TnfBhRiFMBbGoXaPOpUiG109IpUFjbdEQEtjlBfiB4bMG71J1pdVYBe+qN1kvr34cYgdR96P/wbUnqC4BZA6Jw==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-paste-from-office": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-paste-from-office/-/ckeditor5-paste-from-office-48.3.1.tgz", + "integrity": "sha512-PAyMPmRRTY9MvvfhLdfPwgDOAlzm9u9C97aS7S/JbeKl2uys9uJ7nZRBC9v+9zf6eJMHx90ThKyVBtstKDC6LQ==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-clipboard": "48.3.1", + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-remove-format": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-remove-format/-/ckeditor5-remove-format-48.3.1.tgz", + "integrity": "sha512-ZVuLTxUupAnoilnhC6Sjev1+qdzzSJxZ0h1h41boaRHSoqXGtnvXosb4MYZ416LiLYDBkFdL1yLJhhPOsWNXMg==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-restricted-editing": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-restricted-editing/-/ckeditor5-restricted-editing-48.3.1.tgz", + "integrity": "sha512-53u38P5fpz/8qwanJtGYtgmi5Szqg+6VhqnbSyPWOWK8dlJAUi0aMJy/ihseFkUFt2AfaUZHlUW7WzpwttbDCw==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-clipboard": "48.3.1", + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-typing": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-select-all": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-select-all/-/ckeditor5-select-all-48.3.1.tgz", + "integrity": "sha512-bPXjCzqNeroJxnpW+dHXtBb5vigap7cwANJ6LS9lvTbQGKk3Ocq6jO0RlhmJ9RvcuHwAMH60a+23zW3PJAOkAQ==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-show-blocks": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-show-blocks/-/ckeditor5-show-blocks-48.3.1.tgz", + "integrity": "sha512-Frzw96nYEET7ymiEUvMHjkJ/QClUfsGTd+jJufXaT9hUx7t1nONVQVhzIEIruy8dgqt8prIRqVpczD3mQS8T4Q==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-source-editing": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-source-editing/-/ckeditor5-source-editing-48.3.1.tgz", + "integrity": "sha512-20rfbBZgZjEYnFCpS69U27TKZq9ZLMzKCBSXv8Kmv4qObHGgZMBY+R5UsG1VpIRG5DdUjP9lBWgmCVkzlof1EA==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-special-characters": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-special-characters/-/ckeditor5-special-characters-48.3.1.tgz", + "integrity": "sha512-gqfxywMLASyjJV7AvhV3WCX3QYuizjWG0SxUy7zOils00UjIeImfQW07X5u/FSi2GLeUsOjSfttsAbtJXQXHzg==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-typing": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-style": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-style/-/ckeditor5-style-48.3.1.tgz", + "integrity": "sha512-rYikWptU+1Kd4UbzZ0s04tO6CqlEoPzfX09jfdwWSNYLbgB9+CfrxnkbnFvfg3SCAgtFDactc07TBtxsH9+Eag==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-html-support": "48.3.1", + "@ckeditor/ckeditor5-list": "48.3.1", + "@ckeditor/ckeditor5-table": "48.3.1", + "@ckeditor/ckeditor5-typing": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-table": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-table/-/ckeditor5-table-48.3.1.tgz", + "integrity": "sha512-aoVzI5Srl5g0AP2XslxNugJFeogQGstk8JiCwPN1cRvtOb/e7pvMYBsAXhqdf3GFeq3E7HMw/fceXmDLlWJPgw==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-clipboard": "48.3.1", + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-typing": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "@ckeditor/ckeditor5-widget": "48.3.1", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-typing": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-typing/-/ckeditor5-typing-48.3.1.tgz", + "integrity": "sha512-kBtgdIA9oWqrmTk24WRxaK/p91N00Mz0XE9/w7NDiOLAPBJNeBvt8Le4zOzyeLt8tn+DCP2h/BQg0t04oFveNQ==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-ui": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ui/-/ckeditor5-ui-48.3.1.tgz", + "integrity": "sha512-bs0VgxH3xfs8B14it+5dNK9I5YIWDI27qxArJqmfDFbnVBVtxlaLtnntyykbrNWCck53LKZ2qCpDueVsCV2JmA==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-editor-multi-root": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "@types/color-convert": "2.0.4", + "color-convert": "3.1.0", + "color-parse": "2.0.2", + "es-toolkit": "1.45.1", + "vanilla-colorful": "0.7.2" + } + }, + "node_modules/@ckeditor/ckeditor5-undo": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-undo/-/ckeditor5-undo-48.3.1.tgz", + "integrity": "sha512-psJd40k7knNqfbdCaBc6D6cC88exr4Y6AwQihUn/9DaQv8vBjJDNsifVsSgfBemT7QIchUDIoJwYkF8hmUDT9Q==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-upload": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-upload/-/ckeditor5-upload-48.3.1.tgz", + "integrity": "sha512-6hEOB4rAgtbDhntBw7Vw1wyn6BxR03mXNSGaKHyJ+OCZ1FzNAcCCkHI+6CI5INpAiAp8ISXfzblKec+EB0iA0Q==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1" + } + }, + "node_modules/@ckeditor/ckeditor5-utils": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-utils/-/ckeditor5-utils-48.3.1.tgz", + "integrity": "sha512-hLZLjgwWSQKB3/a7AULSB5066PujeqwQiiUwU71ObxLGAHJA5EWD102Jp093BmiFvf5k8/hXFqOtUuaihDCXtg==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-ui": "48.3.1", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-vue": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-vue/-/ckeditor5-vue-8.2.0.tgz", + "integrity": "sha512-XqcwSJupjGubflxL5/O7oAZ0/IwYgdATCfkxp+n8pfmgoIYP/hNUzlJczTq7+ilLCsSDyIdFzQxs2W/CM6Ea6w==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-integrations-common": "^2.4.0", + "lodash-es": "^4.18.1" + }, + "peerDependencies": { + "ckeditor5": ">=42.0.0 || ^0.0.0-nightly || ^0.0.0-internal", + "vue": "^3.4.0" + } + }, + "node_modules/@ckeditor/ckeditor5-watchdog": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-watchdog/-/ckeditor5-watchdog-48.3.1.tgz", + "integrity": "sha512-qv0D8GdaRdP9kM5LFYNNZTT3kN70jeEilZIA8wqLDf2+nIkz68xNZiwMbad9yrjGbMe2iQqrURTmML1/2+FRqA==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-widget": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-widget/-/ckeditor5-widget-48.3.1.tgz", + "integrity": "sha512-2XrBEd0pz/aVmSlXYC/Q3vgGVLadtN2KK5T3euQv3MSWTZtA66ZQKeKLFwl5pNvv/ItnCHUDz/RMEAP1CqsfTg==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-enter": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-typing": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "es-toolkit": "1.45.1" + } + }, + "node_modules/@ckeditor/ckeditor5-word-count": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-word-count/-/ckeditor5-word-count-48.3.1.tgz", + "integrity": "sha512-ylAMJ0LNVJasul0cVbZFSIXK4tdZ/850NXPjtTiL63K//2bYfxRj3Xwh+mN14H4NX3ozkJhN2jaA9PU6Gmfs3Q==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "es-toolkit": "1.45.1" + } + }, "node_modules/@emnapi/core": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.1.tgz", @@ -506,12 +1373,72 @@ "tslib": "^2.4.0" } }, + "node_modules/@types/color-convert": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/color-convert/-/color-convert-2.0.4.tgz", + "integrity": "sha512-Ub1MmDdyZ7mX//g25uBAoH/mWGd9swVbt8BseymnaE18SU4po/PjmCrHxqIIRjBo3hV/vh1KGr0eMxUhp+t+dQ==", + "license": "MIT", + "dependencies": { + "@types/color-name": "^1.1.0" + } + }, + "node_modules/@types/color-name": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.5.tgz", + "integrity": "sha512-j2K5UJqGTxeesj6oQuGpMgifpT5k9HprgQd8D1Y0lOFqKHl3PJu5GMeS4Y5EgjS55AE6OQxf8mPED9uaGbf4Cg==", + "license": "MIT" + }, + "node_modules/@types/debug": { + "version": "4.1.13", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz", + "integrity": "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==", + "license": "MIT", + "dependencies": { + "@types/ms": "*" + } + }, + "node_modules/@types/hast": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz", + "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==", + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, "node_modules/@types/jsesc": { "version": "2.5.1", "resolved": "https://registry.npmjs.org/@types/jsesc/-/jsesc-2.5.1.tgz", "integrity": "sha512-9VN+6yxLOPLOav+7PwjZbxiID2bVaeq0ED4qSQmdQTdjnXJSaCVKTR58t15oqH1H5t8Ng2ZX1SabJVoN9Q34bw==", "license": "MIT" }, + "node_modules/@types/mdast": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz", + "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==", + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/ms": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz", + "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==", + "license": "MIT" + }, + "node_modules/@types/unist": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", + "license": "MIT" + }, + "node_modules/@ungap/structured-clone": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.3.tgz", + "integrity": "sha512-60YRaenCQcVjYEKOcG824+DRGGIQ3VKErcBoAEDJZz5bKIs2ZG+X/H9Nk+Q6EVkwJk5QNApxbrc5QtBSwtrXAg==", + "license": "ISC" + }, "node_modules/@vitejs/plugin-vue": { "version": "6.0.8", "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-6.0.8.tgz", @@ -726,6 +1653,16 @@ "url": "https://github.com/sponsors/sxzz" } }, + "node_modules/bail": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", + "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/birpc": { "version": "2.9.0", "resolved": "https://registry.npmjs.org/birpc/-/birpc-2.9.0.tgz", @@ -735,6 +1672,52 @@ "url": "https://github.com/sponsors/antfu" } }, + "node_modules/blurhash": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/blurhash/-/blurhash-2.0.5.tgz", + "integrity": "sha512-cRygWd7kGBQO3VEhPiTgq4Wc43ctsM+o46urrmPOiuAe+07fzlSB9OJVdpgDL0jPqXUVQ9ht7aq7kxOeJHRK+w==", + "license": "MIT" + }, + "node_modules/ccount": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", + "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz", + "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-html4": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz", + "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-legacy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz", + "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/chokidar": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz", @@ -750,6 +1733,114 @@ "url": "https://paulmillr.com/funding/" } }, + "node_modules/ckeditor5": { + "version": "48.3.1", + "resolved": "https://registry.npmjs.org/ckeditor5/-/ckeditor5-48.3.1.tgz", + "integrity": "sha512-uuWdrM7mHVO0NsO3DTGDXp2zBkcuSYoS78+Ovpuci3B1pxzG7eHeLfeaNKIltWorhcWCxY4G+JTWOobcwflCTA==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@ckeditor/ckeditor5-adapter-ckfinder": "48.3.1", + "@ckeditor/ckeditor5-alignment": "48.3.1", + "@ckeditor/ckeditor5-autoformat": "48.3.1", + "@ckeditor/ckeditor5-autosave": "48.3.1", + "@ckeditor/ckeditor5-basic-styles": "48.3.1", + "@ckeditor/ckeditor5-block-quote": "48.3.1", + "@ckeditor/ckeditor5-bookmark": "48.3.1", + "@ckeditor/ckeditor5-ckbox": "48.3.1", + "@ckeditor/ckeditor5-ckfinder": "48.3.1", + "@ckeditor/ckeditor5-clipboard": "48.3.1", + "@ckeditor/ckeditor5-cloud-services": "48.3.1", + "@ckeditor/ckeditor5-code-block": "48.3.1", + "@ckeditor/ckeditor5-core": "48.3.1", + "@ckeditor/ckeditor5-easy-image": "48.3.1", + "@ckeditor/ckeditor5-editor-balloon": "48.3.1", + "@ckeditor/ckeditor5-editor-classic": "48.3.1", + "@ckeditor/ckeditor5-editor-decoupled": "48.3.1", + "@ckeditor/ckeditor5-editor-inline": "48.3.1", + "@ckeditor/ckeditor5-editor-multi-root": "48.3.1", + "@ckeditor/ckeditor5-emoji": "48.3.1", + "@ckeditor/ckeditor5-engine": "48.3.1", + "@ckeditor/ckeditor5-enter": "48.3.1", + "@ckeditor/ckeditor5-essentials": "48.3.1", + "@ckeditor/ckeditor5-find-and-replace": "48.3.1", + "@ckeditor/ckeditor5-font": "48.3.1", + "@ckeditor/ckeditor5-fullscreen": "48.3.1", + "@ckeditor/ckeditor5-heading": "48.3.1", + "@ckeditor/ckeditor5-highlight": "48.3.1", + "@ckeditor/ckeditor5-horizontal-line": "48.3.1", + "@ckeditor/ckeditor5-html-embed": "48.3.1", + "@ckeditor/ckeditor5-html-support": "48.3.1", + "@ckeditor/ckeditor5-icons": "48.3.1", + "@ckeditor/ckeditor5-image": "48.3.1", + "@ckeditor/ckeditor5-indent": "48.3.1", + "@ckeditor/ckeditor5-language": "48.3.1", + "@ckeditor/ckeditor5-link": "48.3.1", + "@ckeditor/ckeditor5-list": "48.3.1", + "@ckeditor/ckeditor5-markdown-gfm": "48.3.1", + "@ckeditor/ckeditor5-media-embed": "48.3.1", + "@ckeditor/ckeditor5-mention": "48.3.1", + "@ckeditor/ckeditor5-minimap": "48.3.1", + "@ckeditor/ckeditor5-page-break": "48.3.1", + "@ckeditor/ckeditor5-paragraph": "48.3.1", + "@ckeditor/ckeditor5-paste-from-office": "48.3.1", + "@ckeditor/ckeditor5-remove-format": "48.3.1", + "@ckeditor/ckeditor5-restricted-editing": "48.3.1", + "@ckeditor/ckeditor5-select-all": "48.3.1", + "@ckeditor/ckeditor5-show-blocks": "48.3.1", + "@ckeditor/ckeditor5-source-editing": "48.3.1", + "@ckeditor/ckeditor5-special-characters": "48.3.1", + "@ckeditor/ckeditor5-style": "48.3.1", + "@ckeditor/ckeditor5-table": "48.3.1", + "@ckeditor/ckeditor5-typing": "48.3.1", + "@ckeditor/ckeditor5-ui": "48.3.1", + "@ckeditor/ckeditor5-undo": "48.3.1", + "@ckeditor/ckeditor5-upload": "48.3.1", + "@ckeditor/ckeditor5-utils": "48.3.1", + "@ckeditor/ckeditor5-watchdog": "48.3.1", + "@ckeditor/ckeditor5-widget": "48.3.1", + "@ckeditor/ckeditor5-word-count": "48.3.1" + } + }, + "node_modules/color-convert": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-3.1.0.tgz", + "integrity": "sha512-TVoqAq8ZDIpK5lsQY874DDnu65CSsc9vzq0wLpNQ6UMBq81GSZocVazPiBbYGzngzBOIRahpkTzCLVe2at4MfA==", + "license": "MIT", + "dependencies": { + "color-name": "^2.0.0" + }, + "engines": { + "node": ">=14.6" + } + }, + "node_modules/color-name": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-2.1.1.tgz", + "integrity": "sha512-p2FdgwVx1a9yWBHP2wI0VgShkDpgN4kZISkxdNipGBJWpa5G6b04OINlVWCyJj0JmfvcPrgqt95E9k8yvaOJFg==", + "license": "MIT", + "engines": { + "node": ">=12.20" + } + }, + "node_modules/color-parse": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/color-parse/-/color-parse-2.0.2.tgz", + "integrity": "sha512-eCtOz5w5ttWIUcaKLiktF+DxZO1R9KLNY/xhbV6CkhM7sR3GhVghmt6X6yOnzeaM24po+Z9/S1apbXMwA3Iepw==", + "license": "MIT", + "dependencies": { + "color-name": "^2.0.0" + } + }, + "node_modules/comma-separated-tokens": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", + "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/confbox": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.2.4.tgz", @@ -762,6 +1853,45 @@ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", "license": "MIT" }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decode-named-character-reference": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz", + "integrity": "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==", + "license": "MIT", + "dependencies": { + "character-entities": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/detect-libc": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", @@ -772,6 +1902,19 @@ "node": ">=8" } }, + "node_modules/devlop": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", + "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==", + "license": "MIT", + "dependencies": { + "dequal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/entities": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz", @@ -784,6 +1927,28 @@ "url": "https://github.com/fb55/entities?sponsor=1" } }, + "node_modules/es-toolkit": { + "version": "1.45.1", + "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.45.1.tgz", + "integrity": "sha512-/jhoOj/Fx+A+IIyDNOvO3TItGmlMKhtX8ISAHKE90c4b/k1tqaqEZ+uUqfpU8DMnW5cgNJv606zS55jGvza0Xw==", + "license": "MIT", + "workspaces": [ + "docs", + "benchmarks" + ] + }, + "node_modules/escape-string-regexp": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", + "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/estree-walker": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", @@ -796,6 +1961,12 @@ "integrity": "sha512-D+42+T12DdIlJM3uepa55qGiL3sYdLBOxIl2ifQCzCHz4c7eiolaHsi3BIqEr7JxBzxv2pYZQX9kw16ziMcEmw==", "license": "MIT" }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "license": "MIT" + }, "node_modules/fdir": { "version": "6.5.0", "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", @@ -827,12 +1998,265 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, + "node_modules/fuzzysort": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/fuzzysort/-/fuzzysort-3.1.0.tgz", + "integrity": "sha512-sR9BNCjBg6LNgwvxlBd0sBABvQitkLzoVY9MYYROQVX/FvfJ4Mai9LsGhDgd8qYdds0bY77VzYd5iuB+v5rwQQ==", + "license": "MIT" + }, + "node_modules/hast-util-embedded": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/hast-util-embedded/-/hast-util-embedded-3.0.0.tgz", + "integrity": "sha512-naH8sld4Pe2ep03qqULEtvYr7EjrLK2QHY8KJR6RJkTUjPGObe1vnx585uzem2hGra+s1q08DZZpfgDVYRbaXA==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "hast-util-is-element": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-from-dom": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/hast-util-from-dom/-/hast-util-from-dom-5.0.1.tgz", + "integrity": "sha512-N+LqofjR2zuzTjCPzyDUdSshy4Ma6li7p/c3pA78uTwzFgENbgbUrm2ugwsOdcjI1muO+o6Dgzp9p8WHtn/39Q==", + "license": "ISC", + "dependencies": { + "@types/hast": "^3.0.0", + "hastscript": "^9.0.0", + "web-namespaces": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-has-property": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/hast-util-has-property/-/hast-util-has-property-3.0.0.tgz", + "integrity": "sha512-MNilsvEKLFpV604hwfhVStK0usFY/QmM5zX16bo7EjnAEGofr5YyI37kzopBlZJkHD4t887i+q/C8/tr5Q94cA==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-is-body-ok-link": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/hast-util-is-body-ok-link/-/hast-util-is-body-ok-link-3.0.1.tgz", + "integrity": "sha512-0qpnzOBLztXHbHQenVB8uNuxTnm/QBFUOmdOSsEn7GnBtyY07+ENTWVFBAnXd/zEgd9/SUG3lRY7hSIBWRgGpQ==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-is-element": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/hast-util-is-element/-/hast-util-is-element-3.0.0.tgz", + "integrity": "sha512-Val9mnv2IWpLbNPqc/pUem+a7Ipj2aHacCwgNfTiK0vJKl0LF+4Ba4+v1oPHFpf3bLYmreq0/l3Gud9S5OH42g==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-minify-whitespace": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/hast-util-minify-whitespace/-/hast-util-minify-whitespace-1.0.1.tgz", + "integrity": "sha512-L96fPOVpnclQE0xzdWb/D12VT5FabA7SnZOUMtL1DbXmYiHJMXZvFkIZfiMmTCNJHUeO2K9UYNXoVyfz+QHuOw==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "hast-util-embedded": "^3.0.0", + "hast-util-is-element": "^3.0.0", + "hast-util-whitespace": "^3.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-parse-selector": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-4.0.0.tgz", + "integrity": "sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-phrasing": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/hast-util-phrasing/-/hast-util-phrasing-3.0.1.tgz", + "integrity": "sha512-6h60VfI3uBQUxHqTyMymMZnEbNl1XmEGtOxxKYL7stY2o601COo62AWAYBQR9lZbYXYSBoxag8UpPRXK+9fqSQ==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "hast-util-embedded": "^3.0.0", + "hast-util-has-property": "^3.0.0", + "hast-util-is-body-ok-link": "^3.0.0", + "hast-util-is-element": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-to-dom": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/hast-util-to-dom/-/hast-util-to-dom-4.0.1.tgz", + "integrity": "sha512-z1VE7sZ8uFzS2baF3LEflX1IPw2gSzrdo3QFEsyoi23MkCVY3FoE9x6nLgOgjwJu8VNWgo+07iaxtONhDzKrUQ==", + "license": "ISC", + "dependencies": { + "@types/hast": "^3.0.0", + "property-information": "^7.0.0", + "web-namespaces": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-to-html": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.5.tgz", + "integrity": "sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "ccount": "^2.0.0", + "comma-separated-tokens": "^2.0.0", + "hast-util-whitespace": "^3.0.0", + "html-void-elements": "^3.0.0", + "mdast-util-to-hast": "^13.0.0", + "property-information": "^7.0.0", + "space-separated-tokens": "^2.0.0", + "stringify-entities": "^4.0.0", + "zwitch": "^2.0.4" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-to-mdast": { + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/hast-util-to-mdast/-/hast-util-to-mdast-10.1.2.tgz", + "integrity": "sha512-FiCRI7NmOvM4y+f5w32jPRzcxDIz+PUqDwEqn1A+1q2cdp3B8Gx7aVrXORdOKjMNDQsD1ogOr896+0jJHW1EFQ==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "@ungap/structured-clone": "^1.0.0", + "hast-util-phrasing": "^3.0.0", + "hast-util-to-html": "^9.0.0", + "hast-util-to-text": "^4.0.0", + "hast-util-whitespace": "^3.0.0", + "mdast-util-phrasing": "^4.0.0", + "mdast-util-to-hast": "^13.0.0", + "mdast-util-to-string": "^4.0.0", + "rehype-minify-whitespace": "^6.0.0", + "trim-trailing-lines": "^2.0.0", + "unist-util-position": "^5.0.0", + "unist-util-visit": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-to-text": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/hast-util-to-text/-/hast-util-to-text-4.0.2.tgz", + "integrity": "sha512-KK6y/BN8lbaq654j7JgBydev7wuNMcID54lkRav1P0CaE1e47P72AWWPiGKXTJU271ooYzcvTAn/Zt0REnvc7A==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "hast-util-is-element": "^3.0.0", + "unist-util-find-after": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-whitespace": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz", + "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hastscript": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-9.0.1.tgz", + "integrity": "sha512-g7df9rMFX/SPi34tyGCyUBREQoKkapwdY/T04Qn9TDWfHhAYt4/I0gMVirzK5wEzeUqIjEB+LXC/ypb7Aqno5w==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "comma-separated-tokens": "^2.0.0", + "hast-util-parse-selector": "^4.0.0", + "property-information": "^7.0.0", + "space-separated-tokens": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, "node_modules/hookable": { "version": "5.5.3", "resolved": "https://registry.npmjs.org/hookable/-/hookable-5.5.3.tgz", "integrity": "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==", "license": "MIT" }, + "node_modules/html-void-elements": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-3.0.0.tgz", + "integrity": "sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-plain-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", + "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/jsesc": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", @@ -1136,6 +2560,22 @@ "url": "https://github.com/sponsors/antfu" } }, + "node_modules/lodash-es": { + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.18.1.tgz", + "integrity": "sha512-J8xewKD/Gk22OZbhpOVSwcs60zhd95ESDwezOFuA3/099925PdHJ7OFHNTGtajL3AlZkykD32HykiMo+BIBI8A==", + "license": "MIT" + }, + "node_modules/longest-streak": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz", + "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/magic-string": { "version": "0.30.21", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", @@ -1160,6 +2600,803 @@ "url": "https://github.com/sponsors/sxzz" } }, + "node_modules/markdown-table": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.4.tgz", + "integrity": "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/mdast-util-find-and-replace": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.2.tgz", + "integrity": "sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "escape-string-regexp": "^5.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-from-markdown": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.3.tgz", + "integrity": "sha512-W4mAWTvSlKvf8L6J+VN9yLSqQ9AOAAvHuoDAmPkz4dHf553m5gVj2ejadHJhoJmcmxEnOv6Pa8XJhpxE93kb8Q==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "mdast-util-to-string": "^4.0.0", + "micromark": "^4.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-decode-string": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0", + "unist-util-stringify-position": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-3.1.0.tgz", + "integrity": "sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==", + "license": "MIT", + "dependencies": { + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-gfm-autolink-literal": "^2.0.0", + "mdast-util-gfm-footnote": "^2.0.0", + "mdast-util-gfm-strikethrough": "^2.0.0", + "mdast-util-gfm-table": "^2.0.0", + "mdast-util-gfm-task-list-item": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-autolink-literal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.0.1.tgz", + "integrity": "sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "ccount": "^2.0.0", + "devlop": "^1.0.0", + "mdast-util-find-and-replace": "^3.0.0", + "micromark-util-character": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-footnote": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-2.1.0.tgz", + "integrity": "sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.1.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-strikethrough": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.0.tgz", + "integrity": "sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-table": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.0.tgz", + "integrity": "sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "markdown-table": "^3.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-task-list-item": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.0.tgz", + "integrity": "sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-newline-to-break": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-newline-to-break/-/mdast-util-newline-to-break-2.0.0.tgz", + "integrity": "sha512-MbgeFca0hLYIEx/2zGsszCSEJJ1JSCdiY5xQxRcLDDGa8EPvlLPupJ4DSajbMPAnC0je8jfb9TiUATnxxrHUog==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-find-and-replace": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-phrasing": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz", + "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-hast": { + "version": "13.2.1", + "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz", + "integrity": "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "@ungap/structured-clone": "^1.0.0", + "devlop": "^1.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "trim-lines": "^3.0.0", + "unist-util-position": "^5.0.0", + "unist-util-visit": "^5.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-markdown": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.2.tgz", + "integrity": "sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "longest-streak": "^3.0.0", + "mdast-util-phrasing": "^4.0.0", + "mdast-util-to-string": "^4.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-decode-string": "^2.0.0", + "unist-util-visit": "^5.0.0", + "zwitch": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz", + "integrity": "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.2.tgz", + "integrity": "sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "@types/debug": "^4.0.0", + "debug": "^4.0.0", + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "micromark-core-commonmark": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-combine-extensions": "^2.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-subtokenize": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-core-commonmark": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz", + "integrity": "sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "micromark-factory-destination": "^2.0.0", + "micromark-factory-label": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-factory-title": "^2.0.0", + "micromark-factory-whitespace": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-html-tag-name": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-subtokenize": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-extension-gfm": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-3.0.0.tgz", + "integrity": "sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==", + "license": "MIT", + "dependencies": { + "micromark-extension-gfm-autolink-literal": "^2.0.0", + "micromark-extension-gfm-footnote": "^2.0.0", + "micromark-extension-gfm-strikethrough": "^2.0.0", + "micromark-extension-gfm-table": "^2.0.0", + "micromark-extension-gfm-tagfilter": "^2.0.0", + "micromark-extension-gfm-task-list-item": "^2.0.0", + "micromark-util-combine-extensions": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-autolink-literal": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-2.1.0.tgz", + "integrity": "sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==", + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-footnote": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-2.1.0.tgz", + "integrity": "sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==", + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-core-commonmark": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-strikethrough": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-2.1.0.tgz", + "integrity": "sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==", + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-table": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.1.tgz", + "integrity": "sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg==", + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-tagfilter": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-2.0.0.tgz", + "integrity": "sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==", + "license": "MIT", + "dependencies": { + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-task-list-item": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-2.1.0.tgz", + "integrity": "sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==", + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-factory-destination": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz", + "integrity": "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-label": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz", + "integrity": "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-space": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.1.tgz", + "integrity": "sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-title": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz", + "integrity": "sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-whitespace": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz", + "integrity": "sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-character": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz", + "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-chunked": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz", + "integrity": "sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-classify-character": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz", + "integrity": "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-combine-extensions": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz", + "integrity": "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-chunked": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-decode-numeric-character-reference": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz", + "integrity": "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-decode-string": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz", + "integrity": "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "decode-named-character-reference": "^1.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-encode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz", + "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-html-tag-name": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz", + "integrity": "sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-normalize-identifier": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz", + "integrity": "sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-resolve-all": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz", + "integrity": "sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-sanitize-uri": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz", + "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-subtokenize": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz", + "integrity": "sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-symbol": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz", + "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-types": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz", + "integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, "node_modules/mlly": { "version": "1.8.2", "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.2.tgz", @@ -1189,6 +3426,12 @@ "pathe": "^2.0.1" } }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, "node_modules/muggle-string": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.4.1.tgz", @@ -1288,6 +3531,16 @@ "node": "^10 || ^12 || >=14" } }, + "node_modules/property-information": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/property-information/-/property-information-7.2.0.tgz", + "integrity": "sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/quansync": { "version": "0.2.11", "resolved": "https://registry.npmjs.org/quansync/-/quansync-0.2.11.tgz", @@ -1317,6 +3570,140 @@ "url": "https://paulmillr.com/funding/" } }, + "node_modules/rehype-dom-parse": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/rehype-dom-parse/-/rehype-dom-parse-5.0.2.tgz", + "integrity": "sha512-8CqP11KaqvtWsMqVEC2yM3cZWZsDNqqpr8nPvogjraLuh45stabgcpXadCAxu1n6JaUNJ/Xr3GIqXP7okbNqLg==", + "license": "ISC", + "dependencies": { + "@types/hast": "^3.0.0", + "hast-util-from-dom": "^5.0.0", + "unified": "^11.0.0" + } + }, + "node_modules/rehype-dom-stringify": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/rehype-dom-stringify/-/rehype-dom-stringify-4.0.2.tgz", + "integrity": "sha512-2HVFYbtmm5W3C2j8QsV9lcHdIMc2Yn/ytlPKcSC85/tRx2haZbU8V67Wxyh8STT38ZClvKlZ993Me/Hw8g88Aw==", + "license": "ISC", + "dependencies": { + "@types/hast": "^3.0.0", + "hast-util-to-dom": "^4.0.0", + "unified": "^11.0.0" + } + }, + "node_modules/rehype-minify-whitespace": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/rehype-minify-whitespace/-/rehype-minify-whitespace-6.0.2.tgz", + "integrity": "sha512-Zk0pyQ06A3Lyxhe9vGtOtzz3Z0+qZ5+7icZ/PL/2x1SHPbKao5oB/g/rlc6BCTajqBb33JcOe71Ye1oFsuYbnw==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "hast-util-minify-whitespace": "^1.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/rehype-remark": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/rehype-remark/-/rehype-remark-10.0.1.tgz", + "integrity": "sha512-EmDndlb5NVwXGfUa4c9GPK+lXeItTilLhE6ADSaQuHr4JUlKw9MidzGzx4HpqZrNCt6vnHmEifXQiiA+CEnjYQ==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "hast-util-to-mdast": "^10.0.0", + "unified": "^11.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-breaks": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/remark-breaks/-/remark-breaks-4.0.0.tgz", + "integrity": "sha512-IjEjJOkH4FuJvHZVIW0QCDWxcG96kCq7An/KVH2NfJe6rKZU2AsHeB3OEjPNRxi4QC34Xdx7I2KGYn6IpT7gxQ==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-newline-to-break": "^2.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-gfm": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/remark-gfm/-/remark-gfm-4.0.1.tgz", + "integrity": "sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-gfm": "^3.0.0", + "micromark-extension-gfm": "^3.0.0", + "remark-parse": "^11.0.0", + "remark-stringify": "^11.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-parse": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz", + "integrity": "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-from-markdown": "^2.0.0", + "micromark-util-types": "^2.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-rehype": { + "version": "11.1.2", + "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-11.1.2.tgz", + "integrity": "sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "mdast-util-to-hast": "^13.0.0", + "unified": "^11.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-stringify": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-11.0.0.tgz", + "integrity": "sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-to-markdown": "^2.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, "node_modules/rolldown": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.1.5.tgz", @@ -1366,6 +3753,30 @@ "node": ">=0.10.0" } }, + "node_modules/space-separated-tokens": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz", + "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/stringify-entities": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz", + "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==", + "license": "MIT", + "dependencies": { + "character-entities-html4": "^2.0.0", + "character-entities-legacy": "^3.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/tinyglobby": { "version": "0.2.17", "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", @@ -1382,6 +3793,36 @@ "url": "https://github.com/sponsors/SuperchupuDev" } }, + "node_modules/trim-lines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", + "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/trim-trailing-lines": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/trim-trailing-lines/-/trim-trailing-lines-2.1.0.tgz", + "integrity": "sha512-5UR5Biq4VlVOtzqkm2AZlgvSlDJtME46uV0br0gENbwN4l5+mMKT4b9gJKqWtuL2zAIqajGJGuvbCbcAJUZqBg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/trough": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/trough/-/trough-2.2.0.tgz", + "integrity": "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/tslib": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", @@ -1395,6 +3836,107 @@ "integrity": "sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==", "license": "MIT" }, + "node_modules/unified": { + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz", + "integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "bail": "^2.0.0", + "devlop": "^1.0.0", + "extend": "^3.0.0", + "is-plain-obj": "^4.0.0", + "trough": "^2.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-find-after": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-find-after/-/unist-util-find-after-5.0.0.tgz", + "integrity": "sha512-amQa0Ep2m6hE2g72AugUItjbuM8X8cGQnFoHk0pGfrFeT9GZhzN5SW8nRsiGKK7Aif4CrACPENkA6P/Lw6fHGQ==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-is": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz", + "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-position": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz", + "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-stringify-position": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz", + "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.0.0.tgz", + "integrity": "sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit-parents": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz", + "integrity": "sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, "node_modules/unplugin": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-3.3.0.tgz", @@ -1465,6 +4007,40 @@ "url": "https://github.com/sponsors/sxzz" } }, + "node_modules/vanilla-colorful": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/vanilla-colorful/-/vanilla-colorful-0.7.2.tgz", + "integrity": "sha512-z2YZusTFC6KnLERx1cgoIRX2CjPRP0W75N+3CC6gbvdX5Ch47rZkEMGO2Xnf+IEmi3RiFLxS18gayMA27iU7Kg==", + "license": "MIT" + }, + "node_modules/vfile": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz", + "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "vfile-message": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile-message": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz", + "integrity": "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-stringify-position": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, "node_modules/vite": { "version": "8.1.5", "resolved": "https://registry.npmjs.org/vite/-/vite-8.1.5.tgz", @@ -1614,6 +4190,16 @@ } } }, + "node_modules/web-namespaces": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz", + "integrity": "sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/webpack-virtual-modules": { "version": "0.6.2", "resolved": "https://registry.npmjs.org/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz", @@ -1634,6 +4220,16 @@ "funding": { "url": "https://github.com/sponsors/eemeli" } + }, + "node_modules/zwitch": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", + "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } } } } diff --git a/src/Eis.Web/ClientApp/package.json b/src/Eis.Web/ClientApp/package.json index 1fbce2e..56bf12b 100644 --- a/src/Eis.Web/ClientApp/package.json +++ b/src/Eis.Web/ClientApp/package.json @@ -9,6 +9,8 @@ "preview": "vite preview" }, "dependencies": { + "@ckeditor/ckeditor5-vue": "^8.2.0", + "ckeditor5": "^48.3.1", "vue": "3.5.40", "vue-router": "5.2.0" }, diff --git a/src/Eis.Web/ClientApp/src/components/admin/NoticeRichTextEditor.vue b/src/Eis.Web/ClientApp/src/components/admin/NoticeRichTextEditor.vue new file mode 100644 index 0000000..b1ed90d --- /dev/null +++ b/src/Eis.Web/ClientApp/src/components/admin/NoticeRichTextEditor.vue @@ -0,0 +1,121 @@ + + + diff --git a/src/Eis.Web/ClientApp/src/components/admin/QualificationLedger.vue b/src/Eis.Web/ClientApp/src/components/admin/QualificationLedger.vue new file mode 100644 index 0000000..e685e13 --- /dev/null +++ b/src/Eis.Web/ClientApp/src/components/admin/QualificationLedger.vue @@ -0,0 +1,48 @@ + + + diff --git a/src/Eis.Web/ClientApp/src/components/common/ExcelActionBar.vue b/src/Eis.Web/ClientApp/src/components/common/ExcelActionBar.vue new file mode 100644 index 0000000..c46d400 --- /dev/null +++ b/src/Eis.Web/ClientApp/src/components/common/ExcelActionBar.vue @@ -0,0 +1,39 @@ + + + diff --git a/src/Eis.Web/ClientApp/src/components/common/LedgerPager.vue b/src/Eis.Web/ClientApp/src/components/common/LedgerPager.vue new file mode 100644 index 0000000..cf34fca --- /dev/null +++ b/src/Eis.Web/ClientApp/src/components/common/LedgerPager.vue @@ -0,0 +1,36 @@ + + + diff --git a/src/Eis.Web/ClientApp/src/composables/useLedger.js b/src/Eis.Web/ClientApp/src/composables/useLedger.js new file mode 100644 index 0000000..eb22987 --- /dev/null +++ b/src/Eis.Web/ClientApp/src/composables/useLedger.js @@ -0,0 +1,47 @@ +import { computed, reactive, ref, watch } from 'vue'; + +function rowsFrom(source) { + const value = typeof source === 'function' ? source() : source?.value ?? source; + return Array.isArray(value) ? value : []; +} + +export function useLedger(source, options = {}) { + const query = ref(''); + const filters = reactive(Object.fromEntries(Object.keys(options.filters || {}).map(key => [key, '']))); + const page = ref(1); + const pageSize = ref(options.pageSize || 20); + const sourceRows = computed(() => rowsFrom(source)); + const filtered = computed(() => { + const needle = query.value.trim().toLocaleLowerCase('zh-CN'); + return sourceRows.value.filter(row => { + if (needle) { + const haystack = options.searchText ? options.searchText(row) : JSON.stringify(row); + if (!String(haystack || '').toLocaleLowerCase('zh-CN').includes(needle)) return false; + } + return Object.entries(options.filters || {}).every(([key, predicate]) => { + const value = filters[key]; + return !value || predicate(row, value); + }); + }); + }); + const total = computed(() => filtered.value.length); + const totalPages = computed(() => Math.max(1, Math.ceil(total.value / pageSize.value))); + const rows = computed(() => { + const start = (page.value - 1) * pageSize.value; + return filtered.value.slice(start, start + pageSize.value); + }); + const pageRows = computed(() => rows.value); + const rangeStart = computed(() => total.value ? (page.value - 1) * pageSize.value + 1 : 0); + const rangeEnd = computed(() => Math.min(total.value, page.value * pageSize.value)); + + watch([query, pageSize, ...Object.keys(filters).map(key => () => filters[key])], () => { page.value = 1; }); + watch(totalPages, count => { if (page.value > count) page.value = count; }); + + function clear() { + query.value = ''; + for (const key of Object.keys(filters)) filters[key] = ''; + page.value = 1; + } + + return reactive({ query, filters, page, pageSize, sourceRows, filtered, total, totalPages, rows, pageRows, rangeStart, rangeEnd, clear }); +} diff --git a/src/Eis.Web/ClientApp/src/lib/export-selection.js b/src/Eis.Web/ClientApp/src/lib/export-selection.js new file mode 100644 index 0000000..3686262 --- /dev/null +++ b/src/Eis.Web/ClientApp/src/lib/export-selection.js @@ -0,0 +1,10 @@ +export function downloadSelectedExcel(resource, ids, parameters = {}) { + const selected = [...new Set((ids || []).filter(Boolean))]; + if (!selected.length) return false; + const params = new URLSearchParams(parameters); + params.set('ids', selected.join(',')); + const anchor = document.createElement('a'); + anchor.href = `/api/admin/excel/${resource}?${params}`; + anchor.click(); + return true; +} diff --git a/src/Eis.Web/ClientApp/src/styles/app.css b/src/Eis.Web/ClientApp/src/styles/app.css index 89037b5..9a82706 100644 --- a/src/Eis.Web/ClientApp/src/styles/app.css +++ b/src/Eis.Web/ClientApp/src/styles/app.css @@ -7,465 +7,2804 @@ --app-line: #d7e0e9; --app-bg: #f3f6f9; --app-white: #fff; - --app-shadow: 0 10px 28px rgba(13, 45, 84, .07); - --app-title: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif; + --app-shadow: 0 10px 28px rgba(13, 45, 84, 0.07); + --app-title: + "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif; --app-body: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; } -*, *::before, *::after { box-sizing: border-box; } -body { margin: 0; min-width: 320px; background: var(--app-bg); color: var(--app-ink); font-family: var(--app-body); font-size: 14px; line-height: 1.55; } -button, input, select, textarea { box-sizing: border-box; font: inherit; } -button, a { -webkit-tap-highlight-color: transparent; } -button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #e1ab24; outline-offset: 2px; } -.app-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; } +*, +*::before, +*::after { + box-sizing: border-box; +} +body { + margin: 0; + min-width: 320px; + background: var(--app-bg); + color: var(--app-ink); + font-family: var(--app-body); + font-size: 14px; + line-height: 1.55; +} +button, +input, +select, +textarea { + box-sizing: border-box; + font: inherit; +} +button, +a { + -webkit-tap-highlight-color: transparent; +} +button:focus-visible, +a:focus-visible, +input:focus-visible, +select:focus-visible, +textarea:focus-visible { + outline: 3px solid #e1ab24; + outline-offset: 2px; +} +.app-container { + width: min(1180px, calc(100% - 48px)); + margin-inline: auto; +} -.app-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--app-navy); text-decoration: none; } -.app-brand > span { width: 42px; height: 42px; display: grid; place-items: center; background: var(--app-red); color: #fff; font-family: var(--app-title); font-size: 22px; font-weight: 800; box-shadow: inset 0 0 0 3px rgba(255,255,255,.25); } -.app-brand > div { display: flex; flex-direction: column; line-height: 1.1; } -.app-brand strong { font-family: var(--app-title); font-size: 18px; letter-spacing: .08em; } -.app-brand small { margin-top: 6px; font-size: 8px; font-weight: 700; letter-spacing: .1em; } -.app-brand--light { color: #fff; } +.app-brand { + display: inline-flex; + align-items: center; + gap: 12px; + color: var(--app-navy); + text-decoration: none; +} +.app-brand > span { + width: 42px; + height: 42px; + display: grid; + place-items: center; + background: var(--app-red); + color: #fff; + font-family: var(--app-title); + font-size: 22px; + font-weight: 800; + box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.25); +} +.app-brand > div { + display: flex; + flex-direction: column; + line-height: 1.1; +} +.app-brand strong { + font-family: var(--app-title); + font-size: 18px; + letter-spacing: 0.08em; +} +.app-brand small { + margin-top: 6px; + font-size: 8px; + font-weight: 700; + letter-spacing: 0.1em; +} +.app-brand--light { + color: #fff; +} -.app-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid var(--app-line); border-radius: 2px; background: #fff; color: var(--app-navy); font-weight: 700; text-decoration: none; cursor: pointer; } -.app-button--primary { border-color: var(--app-navy); background: var(--app-navy); color: #fff; } -.app-button--primary:hover { background: #071c35; } -.app-button--large { min-height: 49px; } -.app-button:disabled { opacity: .55; cursor: not-allowed; } -.app-link-button { border: 0; background: transparent; color: var(--app-muted); cursor: pointer; } +.app-button { + min-height: 40px; + display: inline-flex; + align-items: center; + justify-content: center; + padding: 0 18px; + border: 1px solid var(--app-line); + border-radius: 2px; + background: #fff; + color: var(--app-navy); + font-weight: 700; + text-decoration: none; + cursor: pointer; +} +.app-button--primary { + border-color: var(--app-navy); + background: var(--app-navy); + color: #fff; +} +.app-button--primary:hover { + background: #071c35; +} +.app-button--large { + min-height: 49px; +} +.app-button:disabled { + opacity: 0.55; + cursor: not-allowed; +} +.app-link-button { + border: 0; + background: transparent; + color: var(--app-muted); + cursor: pointer; +} -.public-frame { min-height: 100vh; display: flex; flex-direction: column; background: #fff; } -.public-frame__utility { min-height: 36px; display: flex; align-items: center; background: #071c35; color: #d8e5f1; font-size: 11px; } -.public-frame__utility .app-container { display: flex; justify-content: space-between; } -.public-frame__header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid var(--app-line); background: rgba(255,255,255,.97); box-shadow: 0 7px 22px rgba(12,42,73,.06); backdrop-filter: blur(14px); } -.public-frame__header > .app-container { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 35px; } -.public-frame__header nav { display: flex; justify-content: center; gap: 7px; } -.public-frame__header nav a { padding: 12px 15px; color: #33465c; font-size: 13px; font-weight: 700; text-decoration: none; } -.public-frame__header nav a.router-link-active { color: var(--app-navy); box-shadow: inset 0 -3px var(--app-red); } -.public-frame__actions { display: flex; align-items: center; gap: 8px; } -.public-frame__menu { width: 42px; height: 42px; display: none; border: 0; background: transparent; color: var(--app-navy); font-size: 21px; } -.public-frame__main { flex: 1; } -.public-frame__footer { margin-top: 80px; border-top: 1px solid var(--app-line); background: #e9eef3; } -.public-frame__footer .app-container { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 30px; } -.public-frame__footer div > div { display: flex; flex-direction: column; } -.public-frame__footer strong { color: var(--app-navy); font-family: var(--app-title); } -.public-frame__footer span { color: var(--app-muted); font-size: 11px; } +.public-frame { + min-height: 100vh; + display: flex; + flex-direction: column; + background: #fff; +} +.public-frame__utility { + min-height: 36px; + display: flex; + align-items: center; + background: #071c35; + color: #d8e5f1; + font-size: 11px; +} +.public-frame__utility .app-container { + display: flex; + justify-content: space-between; +} +.public-frame__header { + position: sticky; + z-index: 30; + top: 0; + border-bottom: 1px solid var(--app-line); + background: rgba(255, 255, 255, 0.97); + box-shadow: 0 7px 22px rgba(12, 42, 73, 0.06); + backdrop-filter: blur(14px); +} +.public-frame__header > .app-container { + min-height: 76px; + display: grid; + grid-template-columns: auto 1fr auto; + align-items: center; + gap: 35px; +} +.public-frame__header nav { + display: flex; + justify-content: center; + gap: 7px; +} +.public-frame__header nav a { + padding: 12px 15px; + color: #33465c; + font-size: 13px; + font-weight: 700; + text-decoration: none; +} +.public-frame__header nav a.router-link-active { + color: var(--app-navy); + box-shadow: inset 0 -3px var(--app-red); +} +.public-frame__actions { + display: flex; + align-items: center; + gap: 8px; +} +.public-frame__menu { + width: 42px; + height: 42px; + display: none; + border: 0; + background: transparent; + color: var(--app-navy); + font-size: 21px; +} +.public-frame__main { + flex: 1; +} +.public-frame__footer { + margin-top: 80px; + border-top: 1px solid var(--app-line); + background: #e9eef3; +} +.public-frame__footer .app-container { + min-height: 110px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 30px; +} +.public-frame__footer div > div { + display: flex; + flex-direction: column; +} +.public-frame__footer strong { + color: var(--app-navy); + font-family: var(--app-title); +} +.public-frame__footer span { + color: var(--app-muted); + font-size: 11px; +} -.public-page-head { padding: 62px 0; background: var(--app-navy); color: #fff; } -.public-page-head p, .verification-page__intro p, .auth-card > p, .business-form > p, .record-panel > header span { margin: 0 0 9px; color: #79add8; font-size: 10px; font-weight: 800; letter-spacing: .18em; } -.public-page-head h1 { margin: 0; font-family: var(--app-title); font-size: 38px; } -.public-page-head span { display: block; margin-top: 12px; color: #b9cbdb; font-size: 13px; } +.public-page-head { + padding: 62px 0; + background: var(--app-navy); + color: #fff; +} +.public-page-head p, +.verification-page__intro p, +.auth-card > p, +.business-form > p, +.record-panel > header span { + margin: 0 0 9px; + color: #79add8; + font-size: 10px; + font-weight: 800; + letter-spacing: 0.18em; +} +.public-page-head h1 { + margin: 0; + font-family: var(--app-title); + font-size: 38px; +} +.public-page-head span { + display: block; + margin-top: 12px; + color: #b9cbdb; + font-size: 13px; +} -.public-directory { display: grid; grid-template-columns: 230px 1fr; gap: 44px; padding-top: 54px; } -.public-directory > .page-state { grid-column: 1 / -1; } -.public-directory > :not(.page-state) { display: contents; } -.public-directory__filters { align-self: start; display: flex; flex-direction: column; border-top: 3px solid var(--app-navy); background: var(--app-bg); } -.public-directory__filters > strong { padding: 20px; font-family: var(--app-title); } -.public-directory__filters button { display: flex; justify-content: space-between; padding: 12px 20px; border: 0; border-top: 1px solid var(--app-line); background: transparent; color: #45586d; text-align: left; cursor: pointer; } -.public-directory__filters button.active { background: var(--app-navy); color: #fff; } -.public-directory__filters button span { font-size: 10px; } -.directory-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; } -.directory-toolbar label { flex: 1; display: flex; flex-direction: column; gap: 7px; color: var(--app-muted); font-size: 11px; } -.directory-toolbar input, .record-search input { min-height: 45px; padding: 0 14px; border: 1px solid var(--app-line); background: #fff; } -.directory-list { border-top: 2px solid var(--app-navy); } -.directory-list > button { width: 100%; min-height: 108px; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 22px; padding: 16px; border: 0; border-bottom: 1px solid var(--app-line); background: #fff; color: var(--app-ink); text-align: left; cursor: pointer; } -.directory-list > button:hover { background: #f7f9fb; } -.directory-list time { display: flex; align-items: center; flex-direction: column; border-right: 1px solid var(--app-line); } -.directory-list time strong { font-family: var(--app-title); font-size: 26px; } -.directory-list time span { color: var(--app-muted); font-size: 9px; } -.directory-list > button > span { min-width: 0; display: flex; flex-direction: column; } -.directory-list em { color: var(--app-red); font-size: 10px; font-style: normal; } -.directory-list > button > span strong { margin: 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -.directory-list small { color: var(--app-muted); font-size: 11px; } -.directory-list i { color: var(--app-blue); font-style: normal; } -.app-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding-top: 24px; } -.app-pagination button { padding: 8px 14px; border: 1px solid var(--app-line); background: #fff; cursor: pointer; } -.app-pagination button:disabled { opacity: .45; } -.app-pagination span { color: var(--app-muted); font-size: 11px; } +.public-directory { + display: grid; + grid-template-columns: 230px 1fr; + gap: 44px; + padding-top: 54px; +} +.public-directory > .page-state { + grid-column: 1 / -1; +} +.public-directory > :not(.page-state) { + display: contents; +} +.public-directory__filters { + align-self: start; + display: flex; + flex-direction: column; + border-top: 3px solid var(--app-navy); + background: var(--app-bg); +} +.public-directory__filters > strong { + padding: 20px; + font-family: var(--app-title); +} +.public-directory__filters button { + display: flex; + justify-content: space-between; + padding: 12px 20px; + border: 0; + border-top: 1px solid var(--app-line); + background: transparent; + color: #45586d; + text-align: left; + cursor: pointer; +} +.public-directory__filters button.active { + background: var(--app-navy); + color: #fff; +} +.public-directory__filters button span { + font-size: 10px; +} +.directory-toolbar { + display: flex; + align-items: end; + justify-content: space-between; + gap: 20px; + margin-bottom: 18px; +} +.directory-toolbar label { + flex: 1; + display: flex; + flex-direction: column; + gap: 7px; + color: var(--app-muted); + font-size: 11px; +} +.directory-toolbar input, +.record-search input { + min-height: 45px; + padding: 0 14px; + border: 1px solid var(--app-line); + background: #fff; +} +.directory-list { + border-top: 2px solid var(--app-navy); +} +.directory-list > button { + width: 100%; + min-height: 108px; + display: grid; + grid-template-columns: 70px 1fr auto; + align-items: center; + gap: 22px; + padding: 16px; + border: 0; + border-bottom: 1px solid var(--app-line); + background: #fff; + color: var(--app-ink); + text-align: left; + cursor: pointer; +} +.directory-list > button:hover { + background: #f7f9fb; +} +.directory-list time { + display: flex; + align-items: center; + flex-direction: column; + border-right: 1px solid var(--app-line); +} +.directory-list time strong { + font-family: var(--app-title); + font-size: 26px; +} +.directory-list time span { + color: var(--app-muted); + font-size: 9px; +} +.directory-list > button > span { + min-width: 0; + display: flex; + flex-direction: column; +} +.directory-list em { + color: var(--app-red); + font-size: 10px; + font-style: normal; +} +.directory-list > button > span strong { + margin: 4px 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.directory-list small { + color: var(--app-muted); + font-size: 11px; +} +.directory-list i { + color: var(--app-blue); + font-style: normal; +} +.app-pagination { + display: flex; + align-items: center; + justify-content: center; + gap: 18px; + padding-top: 24px; +} +.app-pagination button { + padding: 8px 14px; + border: 1px solid var(--app-line); + background: #fff; + cursor: pointer; +} +.app-pagination button:disabled { + opacity: 0.45; +} +.app-pagination span { + color: var(--app-muted); + font-size: 11px; +} -.document-page { padding-top: 38px; } -.document-page__back { margin-bottom: 18px; padding: 8px 0; border: 0; background: transparent; color: var(--app-blue); cursor: pointer; } -.public-document { overflow: hidden; border: 1px solid var(--app-line); background: #fff; box-shadow: 0 20px 45px rgba(13,45,84,.07); } -.public-document > header { padding: 48px max(32px, 8vw); border-bottom: 1px solid var(--app-line); background: #f7f9fb; text-align: center; } -.public-document > header span { color: var(--app-red); font-size: 11px; font-weight: 800; letter-spacing: .08em; } -.public-document > header h1 { margin: 16px 0 10px; font-family: var(--app-title); font-size: 32px; line-height: 1.5; } -.public-document > header p { color: var(--app-muted); font-size: 11px; } -.public-document > section { padding: 42px max(30px, 7vw); } -.document-richtext { font-size: 15px; line-height: 2; } -.document-richtext img { max-width: 100%; } -.document-table-wrap { overflow-x: auto; } -.document-table-wrap > p { color: var(--app-muted); } -.document-table-wrap table, .record-table-wrap table { width: 100%; border-collapse: collapse; font-size: 12px; } -.document-table-wrap th, .document-table-wrap td, .record-table-wrap th, .record-table-wrap td { padding: 12px 14px; border-bottom: 1px solid var(--app-line); text-align: left; vertical-align: top; } -.document-table-wrap th, .record-table-wrap th { background: #edf2f6; color: #42566b; font-size: 10px; white-space: nowrap; } -.record-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; } -.record-metrics article { min-height: 105px; display: flex; justify-content: center; flex-direction: column; padding: 18px; border: 1px solid var(--app-line); background: #fff; } -.record-metrics article span { color: var(--app-muted); font-size: 11px; } -.record-metrics article strong { margin-top: 5px; color: var(--app-navy); font-family: var(--app-title); font-size: 25px; } +.document-page { + padding-top: 38px; +} +.document-page__back { + margin-bottom: 18px; + padding: 8px 0; + border: 0; + background: transparent; + color: var(--app-blue); + cursor: pointer; +} +.public-document { + overflow: hidden; + border: 1px solid var(--app-line); + background: #fff; + box-shadow: 0 20px 45px rgba(13, 45, 84, 0.07); +} +.public-document > header { + padding: 48px max(32px, 8vw); + border-bottom: 1px solid var(--app-line); + background: #f7f9fb; + text-align: center; +} +.public-document > header span { + color: var(--app-red); + font-size: 11px; + font-weight: 800; + letter-spacing: 0.08em; +} +.public-document > header h1 { + margin: 16px 0 10px; + font-family: var(--app-title); + font-size: 32px; + line-height: 1.5; +} +.public-document > header p { + color: var(--app-muted); + font-size: 11px; +} +.public-document > section { + padding: 42px max(30px, 7vw); +} +.document-richtext { + font-size: 15px; + line-height: 2; +} +.document-richtext img { + max-width: 100%; +} +.document-table-wrap { + overflow-x: auto; +} +.document-table-wrap > p { + color: var(--app-muted); +} +.document-table-wrap table, +.record-table-wrap table { + width: 100%; + border-collapse: collapse; + font-size: 12px; +} +.document-table-wrap th, +.document-table-wrap td, +.record-table-wrap th, +.record-table-wrap td { + padding: 12px 14px; + border-bottom: 1px solid var(--app-line); + text-align: left; + vertical-align: top; +} +.document-table-wrap th, +.record-table-wrap th { + background: #edf2f6; + color: #42566b; + font-size: 10px; + white-space: nowrap; +} +.record-metrics { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); + gap: 12px; +} +.record-metrics article { + min-height: 105px; + display: flex; + justify-content: center; + flex-direction: column; + padding: 18px; + border: 1px solid var(--app-line); + background: #fff; +} +.record-metrics article span { + color: var(--app-muted); + font-size: 11px; +} +.record-metrics article strong { + margin-top: 5px; + color: var(--app-navy); + font-family: var(--app-title); + font-size: 25px; +} -.verification-page { padding-top: 70px; } -.verification-page__intro { max-width: 700px; } -.verification-page__intro h1 { margin: 0; color: var(--app-navy); font-family: var(--app-title); font-size: 42px; } -.verification-page__intro > span { color: var(--app-muted); } -.verification-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 34px 0; padding: 22px; border: 1px solid var(--app-line); background: #fff; } -.verification-form label { display: flex; flex-direction: column; gap: 7px; color: var(--app-muted); font-size: 11px; } -.verification-form input { min-height: 46px; padding: 0 15px; border: 1px solid var(--app-line); font-family: ui-monospace, Consolas, monospace; } -.verification-form button { align-self: end; min-height: 46px; padding: 0 25px; border: 0; background: var(--app-navy); color: #fff; font-weight: 700; } -.verification-result { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 30px; border: 1px solid var(--app-line); background: #fff; } -.verification-result > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #e2f3e9; color: #197346; font-size: 24px; } -.verification-result.is-invalid > span { background: #f8e8e8; color: var(--app-red); } -.verification-result h2 { margin: 3px 0; font-family: var(--app-title); } -.verification-result p { margin: 0; color: var(--app-muted); } -.verification-result dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; margin: 12px 0 0; background: var(--app-line); } -.verification-result dl div { padding: 15px; background: #f8fafb; } -.verification-result dt { color: var(--app-muted); font-size: 10px; } -.verification-result dd { margin: 5px 0 0; font-weight: 700; } -.verification-safety { margin-top: 18px; padding: 18px 20px; border-left: 3px solid var(--app-blue); background: #eaf1f7; } -.verification-safety p { margin: 4px 0 0; color: var(--app-muted); font-size: 11px; } +.verification-page { + padding-top: 70px; +} +.verification-page__intro { + max-width: 700px; +} +.verification-page__intro h1 { + margin: 0; + color: var(--app-navy); + font-family: var(--app-title); + font-size: 42px; +} +.verification-page__intro > span { + color: var(--app-muted); +} +.verification-form { + display: grid; + grid-template-columns: 1fr auto; + gap: 12px; + margin: 34px 0; + padding: 22px; + border: 1px solid var(--app-line); + background: #fff; +} +.verification-form label { + display: flex; + flex-direction: column; + gap: 7px; + color: var(--app-muted); + font-size: 11px; +} +.verification-form input { + min-height: 46px; + padding: 0 15px; + border: 1px solid var(--app-line); + font-family: ui-monospace, Consolas, monospace; +} +.verification-form button { + align-self: end; + min-height: 46px; + padding: 0 25px; + border: 0; + background: var(--app-navy); + color: #fff; + font-weight: 700; +} +.verification-result { + display: grid; + grid-template-columns: auto 1fr; + gap: 22px; + padding: 30px; + border: 1px solid var(--app-line); + background: #fff; +} +.verification-result > span { + width: 52px; + height: 52px; + display: grid; + place-items: center; + border-radius: 50%; + background: #e2f3e9; + color: #197346; + font-size: 24px; +} +.verification-result.is-invalid > span { + background: #f8e8e8; + color: var(--app-red); +} +.verification-result h2 { + margin: 3px 0; + font-family: var(--app-title); +} +.verification-result p { + margin: 0; + color: var(--app-muted); +} +.verification-result dl { + grid-column: 1 / -1; + display: grid; + grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); + gap: 1px; + margin: 12px 0 0; + background: var(--app-line); +} +.verification-result dl div { + padding: 15px; + background: #f8fafb; +} +.verification-result dt { + color: var(--app-muted); + font-size: 10px; +} +.verification-result dd { + margin: 5px 0 0; + font-weight: 700; +} +.verification-safety { + margin-top: 18px; + padding: 18px 20px; + border-left: 3px solid var(--app-blue); + background: #eaf1f7; +} +.verification-safety p { + margin: 4px 0 0; + color: var(--app-muted); + font-size: 11px; +} -.auth-view { min-height: 100vh; display: grid; grid-template-columns: minmax(330px, .8fr) minmax(520px, 1.2fr); background: #fff; } -.auth-view__identity { min-height: 100vh; display: flex; justify-content: space-between; flex-direction: column; padding: 48px 9vw 48px 5vw; background: var(--app-navy); color: #fff; } -.auth-view__identity > div p { color: #7db0da; font-size: 10px; font-weight: 800; letter-spacing: .18em; } -.auth-view__identity h1 { max-width: 540px; margin: 14px 0; font-family: var(--app-title); font-size: clamp(36px, 4vw, 58px); line-height: 1.35; } -.auth-view__identity > div > span, .auth-view__identity > small { color: #aebfd0; line-height: 1.9; } -.auth-view__panel { display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 50px 6vw; } -.auth-view__back { align-self: flex-start; color: var(--app-blue); font-size: 12px; text-decoration: none; } -.auth-card { width: min(520px, 100%); display: flex; flex-direction: column; margin: auto; } -.auth-card h2, .business-form h2 { margin: 4px 0 8px; color: var(--app-navy); font-family: var(--app-title); font-size: 30px; } -.auth-card > span, .business-form > span { margin-bottom: 25px; color: var(--app-muted); font-size: 12px; line-height: 1.8; } -.auth-card label, .business-form label { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; color: #506175; font-size: 11px; } -.auth-card input, .auth-card select, .business-form input, .business-form select, .business-form textarea, .preference-row select { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #cbd6e1; background: #fff; color: var(--app-ink); } -.auth-card textarea, .business-form textarea { resize: vertical; } -.auth-card__switch { color: var(--app-muted); font-size: 11px; text-align: center; } -.auth-card__switch a { color: var(--app-blue); } -.form-error { margin-bottom: 16px; padding: 12px 14px; border-left: 3px solid var(--app-red); background: #f9ebeb; color: #8c2c33; font-size: 12px; } -.issued-card > strong { margin: 25px 0; padding: 20px; border: 1px dashed var(--app-red); color: var(--app-navy); font-family: ui-monospace, Consolas, monospace; font-size: 25px; text-align: center; } -.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 15px; } -.form-grid .wide { grid-column: 1 / -1; } +.auth-view { + min-height: 100vh; + display: grid; + grid-template-columns: minmax(330px, 0.8fr) minmax(520px, 1.2fr); + background: #fff; +} +.auth-view__identity { + min-height: 100vh; + display: flex; + justify-content: space-between; + flex-direction: column; + padding: 48px 9vw 48px 5vw; + background: var(--app-navy); + color: #fff; +} +.auth-view__identity > div p { + color: #7db0da; + font-size: 10px; + font-weight: 800; + letter-spacing: 0.18em; +} +.auth-view__identity h1 { + max-width: 540px; + margin: 14px 0; + font-family: var(--app-title); + font-size: clamp(36px, 4vw, 58px); + line-height: 1.35; +} +.auth-view__identity > div > span, +.auth-view__identity > small { + color: #aebfd0; + line-height: 1.9; +} +.auth-view__panel { + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; + padding: 50px 6vw; +} +.auth-view__back { + align-self: flex-start; + color: var(--app-blue); + font-size: 12px; + text-decoration: none; +} +.auth-card { + width: min(520px, 100%); + display: flex; + flex-direction: column; + margin: auto; +} +.auth-card h2, +.business-form h2 { + margin: 4px 0 8px; + color: var(--app-navy); + font-family: var(--app-title); + font-size: 30px; +} +.auth-card > span, +.business-form > span { + margin-bottom: 25px; + color: var(--app-muted); + font-size: 12px; + line-height: 1.8; +} +.auth-card label, +.business-form label { + display: flex; + flex-direction: column; + gap: 7px; + margin-bottom: 15px; + color: #506175; + font-size: 11px; +} +.auth-card input, +.auth-card select, +.business-form input, +.business-form select, +.business-form textarea, +.preference-row select { + width: 100%; + min-height: 44px; + padding: 9px 12px; + border: 1px solid #cbd6e1; + background: #fff; + color: var(--app-ink); +} +.auth-card textarea, +.business-form textarea { + resize: vertical; +} +.auth-card__switch { + color: var(--app-muted); + font-size: 11px; + text-align: center; +} +.auth-card__switch a { + color: var(--app-blue); +} +.form-error { + margin-bottom: 16px; + padding: 12px 14px; + border-left: 3px solid var(--app-red); + background: #f9ebeb; + color: #8c2c33; + font-size: 12px; +} +.issued-card > strong { + margin: 25px 0; + padding: 20px; + border: 1px dashed var(--app-red); + color: var(--app-navy); + font-family: ui-monospace, Consolas, monospace; + font-size: 25px; + text-align: center; +} +.form-grid { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 0 15px; +} +.form-grid .wide { + grid-column: 1 / -1; +} -.portal-shell { min-height: 100vh; background: var(--app-bg); } -.portal-shell__sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; width: 252px; display: flex; flex-direction: column; overflow-y: auto; background: #0a2748; color: #fff; } -.portal-shell__brand { display: flex; align-items: center; gap: 10px; min-height: 74px; padding: 0 20px; color: #fff; text-decoration: none; } -.portal-shell__brand > span { width: 38px; height: 38px; display: grid; place-items: center; background: var(--app-red); font-family: var(--app-title); font-size: 20px; } -.portal-shell__brand div { display: flex; flex-direction: column; } -.portal-shell__brand strong { font-family: var(--app-title); font-size: 15px; } -.portal-shell__brand small { color: #8eabc6; font-size: 7px; letter-spacing: .12em; } -.portal-shell__close { display: none; } -.portal-shell__role { margin: 0; padding: 12px 20px; border-block: 1px solid rgba(255,255,255,.1); color: #a9bfd4; font-size: 11px; } -.portal-shell__sidebar nav { padding: 13px 10px 25px; } -.portal-shell__sidebar nav section > strong { display: block; padding: 15px 10px 5px; color: #7895b0; font-size: 9px; letter-spacing: .14em; } -.portal-shell__sidebar nav a { min-height: 39px; display: flex; align-items: center; gap: 11px; padding: 0 10px; border-radius: 2px; color: #cad8e5; font-size: 12px; text-decoration: none; } -.portal-shell__sidebar nav a > span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.13); color: #9fb5ca; font-family: var(--app-title); font-size: 10px; } -.portal-shell__sidebar nav a:hover, .portal-shell__sidebar nav a.router-link-active { background: #17456f; color: #fff; } -.portal-shell__scope { margin: auto 14px 16px; padding: 14px; background: rgba(255,255,255,.07); } -.portal-shell__scope span, .portal-shell__scope small { display: block; color: #8fa9c1; font-size: 9px; } -.portal-shell__scope strong { display: block; margin: 5px 0; font-size: 11px; } -.portal-shell__main { min-height: 100vh; margin-left: 252px; } -.portal-shell__topbar { position: sticky; z-index: 25; top: 0; min-height: 64px; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 0 30px; border-bottom: 1px solid var(--app-line); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); } -.portal-shell__topbar > button { display: none; } -.portal-shell__topbar > div:first-of-type { display: flex; align-items: center; gap: 9px; color: var(--app-muted); font-size: 11px; } -.portal-shell__topbar b { color: #b9c4cf; } -.portal-shell__topbar strong { color: var(--app-navy); } -.portal-shell__user { display: flex; align-items: center; gap: 9px; } -.portal-shell__user > i { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #dce8f2; color: var(--app-navy); font-family: var(--app-title); font-style: normal; } -.portal-shell__user > span { display: flex; flex-direction: column; } -.portal-shell__user small { max-width: 170px; overflow: hidden; color: var(--app-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; } -.portal-shell__user > button { border: 0; background: transparent; color: var(--app-muted); font-size: 10px; cursor: pointer; } -.portal-shell__content { padding: 30px; } -.portal-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; } -.portal-page-heading p { margin: 0 0 4px; color: var(--app-blue); font-size: 9px; font-weight: 800; letter-spacing: .18em; } -.portal-page-heading h1 { margin: 0; color: var(--app-navy); font-family: var(--app-title); font-size: 29px; } -.portal-page-heading span { display: block; margin-top: 5px; color: var(--app-muted); font-size: 11px; } +.portal-shell { + min-height: 100vh; + background: var(--app-bg); +} +.portal-shell__sidebar { + position: fixed; + z-index: 50; + inset: 0 auto 0 0; + width: 252px; + display: flex; + flex-direction: column; + overflow-y: auto; + background: #0a2748; + color: #fff; +} +.portal-shell__brand { + display: flex; + align-items: center; + gap: 10px; + min-height: 74px; + padding: 0 20px; + color: #fff; + text-decoration: none; +} +.portal-shell__brand > span { + width: 38px; + height: 38px; + display: grid; + place-items: center; + background: var(--app-red); + font-family: var(--app-title); + font-size: 20px; +} +.portal-shell__brand div { + display: flex; + flex-direction: column; +} +.portal-shell__brand strong { + font-family: var(--app-title); + font-size: 15px; +} +.portal-shell__brand small { + color: #8eabc6; + font-size: 7px; + letter-spacing: 0.12em; +} +.portal-shell__close { + display: none; +} +.portal-shell__role { + margin: 0; + padding: 12px 20px; + border-block: 1px solid rgba(255, 255, 255, 0.1); + color: #a9bfd4; + font-size: 11px; +} +.portal-shell__sidebar nav { + padding: 13px 10px 25px; +} +.portal-shell__sidebar nav section > strong { + display: block; + padding: 15px 10px 5px; + color: #7895b0; + font-size: 9px; + letter-spacing: 0.14em; +} +.portal-shell__sidebar nav a { + min-height: 39px; + display: flex; + align-items: center; + gap: 11px; + padding: 0 10px; + border-radius: 2px; + color: #cad8e5; + font-size: 12px; + text-decoration: none; +} +.portal-shell__sidebar nav a > span { + width: 24px; + height: 24px; + display: grid; + place-items: center; + border: 1px solid rgba(255, 255, 255, 0.13); + color: #9fb5ca; + font-family: var(--app-title); + font-size: 10px; +} +.portal-shell__sidebar nav a:hover, +.portal-shell__sidebar nav a.router-link-active { + background: #17456f; + color: #fff; +} +.portal-shell__scope { + margin: auto 14px 16px; + padding: 14px; + background: rgba(255, 255, 255, 0.07); +} +.portal-shell__scope span, +.portal-shell__scope small { + display: block; + color: #8fa9c1; + font-size: 9px; +} +.portal-shell__scope strong { + display: block; + margin: 5px 0; + font-size: 11px; +} +.portal-shell__main { + min-height: 100vh; + margin-left: 252px; +} +.portal-shell__topbar { + position: sticky; + z-index: 25; + top: 0; + min-height: 64px; + display: grid; + grid-template-columns: 1fr auto; + align-items: center; + padding: 0 30px; + border-bottom: 1px solid var(--app-line); + background: rgba(255, 255, 255, 0.97); + backdrop-filter: blur(12px); +} +.portal-shell__topbar > button { + display: none; +} +.portal-shell__topbar > div:first-of-type { + display: flex; + align-items: center; + gap: 9px; + color: var(--app-muted); + font-size: 11px; +} +.portal-shell__topbar b { + color: #b9c4cf; +} +.portal-shell__topbar strong { + color: var(--app-navy); +} +.portal-shell__user { + display: flex; + align-items: center; + gap: 9px; +} +.portal-shell__user > i { + width: 35px; + height: 35px; + display: grid; + place-items: center; + border-radius: 50%; + background: #dce8f2; + color: var(--app-navy); + font-family: var(--app-title); + font-style: normal; +} +.portal-shell__user > span { + display: flex; + flex-direction: column; +} +.portal-shell__user small { + max-width: 170px; + overflow: hidden; + color: var(--app-muted); + font-size: 9px; + text-overflow: ellipsis; + white-space: nowrap; +} +.portal-shell__user > button { + border: 0; + background: transparent; + color: var(--app-muted); + font-size: 10px; + cursor: pointer; +} +.portal-shell__content { + padding: 30px; +} +.portal-page-heading { + display: flex; + align-items: end; + justify-content: space-between; + gap: 20px; + margin-bottom: 25px; +} +.portal-page-heading p { + margin: 0 0 4px; + color: var(--app-blue); + font-size: 9px; + font-weight: 800; + letter-spacing: 0.18em; +} +.portal-page-heading h1 { + margin: 0; + color: var(--app-navy); + font-family: var(--app-title); + font-size: 29px; +} +.portal-page-heading span { + display: block; + margin-top: 5px; + color: var(--app-muted); + font-size: 11px; +} -.record-explorer { display: flex; flex-direction: column; gap: 18px; } -.record-search { display: flex; flex-direction: column; gap: 6px; color: var(--app-muted); font-size: 10px; } -.record-panel { overflow: hidden; border: 1px solid var(--app-line); background: #fff; } -.record-panel > header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 20px; border-bottom: 1px solid var(--app-line); } -.record-panel > header h2 { margin: 0; color: var(--app-navy); font-family: var(--app-title); font-size: 17px; } -.record-panel > header p { margin: 2px 0 0; color: var(--app-muted); font-size: 10px; } -.record-table-wrap { overflow-x: auto; } -.record-table-wrap td { max-width: 330px; word-break: break-word; } -.status-badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 20px; background: #e9eef3; color: #53657a; font-size: 9px; font-weight: 750; white-space: nowrap; } -.status-badge.is-approved, .status-badge.is-active, .status-badge.is-open, .status-badge.is-paid, .status-badge.is-final, .status-badge.is-reported { background: #e1f3e8; color: #197044; } -.status-badge.is-pending, .status-badge.is-upcoming, .status-badge.is-school-review, .status-badge.is-withdrawal-pending { background: #fff1d7; color: #8a5c11; } -.status-badge.is-rejected, .status-badge.is-disabled, .status-badge.is-not-reported { background: #f8e5e7; color: #922f38; } -.status-badge.is-published { background: #dfeaf6; color: #195c93; } +.record-explorer { + display: flex; + flex-direction: column; + gap: 18px; +} +.record-search { + display: flex; + flex-direction: column; + gap: 6px; + color: var(--app-muted); + font-size: 10px; +} +.record-panel { + overflow: hidden; + border: 1px solid var(--app-line); + background: #fff; +} +.record-panel > header { + min-height: 62px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 20px; + padding: 0 20px; + border-bottom: 1px solid var(--app-line); +} +.record-panel > header h2 { + margin: 0; + color: var(--app-navy); + font-family: var(--app-title); + font-size: 17px; +} +.record-panel > header p { + margin: 2px 0 0; + color: var(--app-muted); + font-size: 10px; +} +.record-table-wrap { + overflow-x: auto; +} +.record-table-wrap td { + max-width: 330px; + word-break: break-word; +} +.status-badge { + display: inline-flex; + align-items: center; + padding: 4px 8px; + border-radius: 20px; + background: #e9eef3; + color: #53657a; + font-size: 9px; + font-weight: 750; + white-space: nowrap; +} +.status-badge.is-approved, +.status-badge.is-active, +.status-badge.is-open, +.status-badge.is-paid, +.status-badge.is-final, +.status-badge.is-reported { + background: #e1f3e8; + color: #197044; +} +.status-badge.is-pending, +.status-badge.is-upcoming, +.status-badge.is-school-review, +.status-badge.is-withdrawal-pending { + background: #fff1d7; + color: #8a5c11; +} +.status-badge.is-rejected, +.status-badge.is-disabled, +.status-badge.is-not-reported { + background: #f8e5e7; + color: #922f38; +} +.status-badge.is-published { + background: #dfeaf6; + color: #195c93; +} -.page-state { min-height: 270px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 28px; border: 1px solid var(--app-line); background: #fff; text-align: center; } -.page-state p { max-width: 560px; margin: 6px 0; color: var(--app-muted); font-size: 11px; } -.page-state button { margin-top: 12px; padding: 9px 16px; border: 0; background: var(--app-navy); color: #fff; cursor: pointer; } -.page-state--loading i { width: 24px; height: 24px; margin-bottom: 12px; border: 3px solid #d8e2ec; border-top-color: var(--app-blue); border-radius: 50%; animation: app-spin .8s linear infinite; } -.page-state--error > span { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 50%; background: #f8e4e5; color: var(--app-red); font-weight: 800; } -@keyframes app-spin { to { transform: rotate(360deg); } } +.page-state { + min-height: 270px; + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; + padding: 28px; + border: 1px solid var(--app-line); + background: #fff; + text-align: center; +} +.page-state p { + max-width: 560px; + margin: 6px 0; + color: var(--app-muted); + font-size: 11px; +} +.page-state button { + margin-top: 12px; + padding: 9px 16px; + border: 0; + background: var(--app-navy); + color: #fff; + cursor: pointer; +} +.page-state--loading i { + width: 24px; + height: 24px; + margin-bottom: 12px; + border: 3px solid #d8e2ec; + border-top-color: var(--app-blue); + border-radius: 50%; + animation: app-spin 0.8s linear infinite; +} +.page-state--error > span { + width: 38px; + height: 38px; + display: grid; + place-items: center; + margin-bottom: 10px; + border-radius: 50%; + background: #f8e4e5; + color: var(--app-red); + font-weight: 800; +} +@keyframes app-spin { + to { + transform: rotate(360deg); + } +} -.candidate-welcome-vue { min-height: 180px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 32px; background: var(--app-navy); color: #fff; } -.candidate-welcome-vue > div > span { color: #82b1d7; font-size: 11px; } -.candidate-welcome-vue h2 { margin: 7px 0; font-family: var(--app-title); font-size: 28px; } -.candidate-welcome-vue p { margin: 0; color: #b6c8d8; font-size: 12px; } -.candidate-welcome-vue > strong { width: 72px; height: 72px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.5); color: rgba(255,255,255,.75); font-family: var(--app-title); font-size: 22px; line-height: 1.1; text-align: center; } -.candidate-dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 15px; } -.dashboard-row, .notice-list-vue > button { width: 100%; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 20px; border: 0; border-bottom: 1px solid var(--app-line); background: #fff; color: var(--app-ink); text-align: left; cursor: pointer; } -.dashboard-row > span, .notice-list-vue > button > span { min-width: 0; display: flex; flex-direction: column; } -.dashboard-row small, .notice-list-vue small { color: var(--app-muted); font-size: 9px; } -.business-form { padding: 26px; border: 1px solid var(--app-line); background: #fff; } -.business-form > h2 { margin-top: 0; } -.profile-fields > h2 { margin: 28px 0 15px; padding-bottom: 8px; border-bottom: 1px solid var(--app-line); color: var(--app-navy); font-family: var(--app-title); font-size: 18px; } -.profile-fields > h2:first-child { margin-top: 0; } -.form-callout { margin: 15px 0; padding: 15px; border-left: 3px solid var(--app-blue); background: #eaf1f7; } -.form-callout p { margin: 4px 0 0; color: var(--app-muted); font-size: 11px; } -.business-card-list { display: flex; flex-direction: column; gap: 16px; } -.exam-apply-card, .registration-vue-card, .admit-card-vue { padding: 25px; border: 1px solid var(--app-line); background: #fff; } -.exam-apply-card > header, .registration-vue-card > header, .admit-card-vue > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; } -.exam-apply-card > header > span, .registration-vue-card header span, .admit-card-vue header span { color: var(--app-blue); font-family: ui-monospace, Consolas, monospace; font-size: 10px; } -.exam-apply-card h2, .registration-vue-card h2, .admit-card-vue h2 { margin: 18px 0 8px; color: var(--app-navy); font-family: var(--app-title); } -.exam-apply-card > p, .registration-vue-card > p { color: var(--app-muted); font-size: 11px; } -.exam-apply-card dl, .registration-vue-card dl, .admit-card-vue dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; margin: 20px 0; background: var(--app-line); } -.exam-apply-card dl div, .registration-vue-card dl div, .admit-card-vue dl div { padding: 12px; background: #f8fafb; } -.exam-apply-card dt, .registration-vue-card dt, .admit-card-vue dt { color: var(--app-muted); font-size: 9px; } -.exam-apply-card dd, .registration-vue-card dd, .admit-card-vue dd { margin: 4px 0 0; font-size: 11px; font-weight: 700; } -.subject-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin: 20px 0; } -.subject-choice-grid label { margin: 0; cursor: pointer; } -.subject-choice-grid input { position: absolute; opacity: 0; } -.subject-choice-grid label > span { min-height: 75px; display: flex; flex-direction: column; padding: 13px; border: 1px solid var(--app-line); } -.subject-choice-grid input:checked + span { border-color: var(--app-blue); background: #edf5fb; box-shadow: inset 3px 0 var(--app-blue); } -.subject-choice-grid small { color: var(--app-muted); font-size: 9px; } -.subject-choice-grid em { margin-top: auto; color: var(--app-red); font-size: 10px; font-style: normal; } -.exam-apply-card > footer { display: flex; align-items: center; justify-content: space-between; padding: 13px; background: #edf5f0; } -.chip-list { display: flex; flex-wrap: wrap; gap: 7px; } -.chip-list > span { display: flex; flex-direction: column; padding: 7px 10px; border: 1px solid var(--app-line); background: #f8fafb; font-size: 10px; } -.chip-list small { color: var(--app-muted); font-size: 8px; } -.admit-card-vue > div { margin: 20px 0; padding: 20px; background: var(--app-navy); color: #fff; } -.admit-card-vue > div small { display: block; color: #a9bfd3; } -.admit-card-vue > div strong { font-family: ui-monospace, Consolas, monospace; font-size: 25px; } -.result-group > header { padding: 16px 20px; } -.result-group > header h2 { margin: 3px 0 0; } -.result-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; padding: 16px; } -.result-card-grid article { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--app-line); } -.result-card-grid article > span { color: var(--app-blue); font-size: 10px; } -.result-card-grid article > strong { margin: 5px 0; color: var(--app-navy); font-family: var(--app-title); font-size: 32px; } -.result-card-grid article > strong small { color: var(--app-muted); font-family: var(--app-body); font-size: 11px; } -.result-card-grid article > em { margin-bottom: 12px; color: var(--app-muted); font-size: 9px; font-style: normal; } -.result-card-grid form { display: flex; flex-direction: column; gap: 7px; margin-top: auto; } -.result-card-grid textarea { padding: 9px; border: 1px solid var(--app-line); resize: vertical; } -.result-card-grid form button { align-self: flex-end; padding: 7px 11px; border: 0; background: var(--app-navy); color: #fff; font-size: 9px; } -.admission-candidate-vue > header { padding: 18px 20px; } -.admission-candidate-vue > .record-metrics, .admission-candidate-vue > .form-callout, .admission-candidate-vue > p { margin: 16px; } -.preference-editor { padding: 16px; border-top: 1px solid var(--app-line); } -.preference-row { display: grid; grid-template-columns: 45px 1fr 1fr; gap: 10px; margin-bottom: 9px; } -.preference-row > b { display: grid; place-items: center; background: #e8eef4; color: var(--app-navy); font-size: 10px; } -.notice-list-vue > button time { color: var(--app-muted); font-size: 9px; } -.notice-list-vue em { color: var(--app-red); font-size: 9px; font-style: normal; } -.security-stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; } -.security-stack > .form-error, .security-stack > .recovery-code-panel { grid-column: 1 / -1; } -.security-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; } -.security-card > header h2, .security-card > header p { margin: 0; } -.security-card > span { display: block; margin-bottom: 18px; color: var(--app-muted); line-height: 1.7; } -.inline-security-form, .security-protected-actions { display: grid; gap: 12px; } -.security-protected-actions > div { display: flex; flex-wrap: wrap; gap: 8px; } -.app-button--danger { border-color: #b22e35 !important; color: #a5222a !important; background: #fff !important; } -.totp-setup-grid { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; margin: 8px 0 20px; padding: 18px; border: 1px solid var(--app-line); background: #f7f9fb; } -.totp-setup-grid img { display: block; width: 100%; height: auto; background: #fff; } -.totp-setup-grid > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; } -.totp-setup-grid code { overflow-wrap: anywhere; color: var(--app-navy); font-size: 14px; font-weight: 700; line-height: 1.7; } -.totp-setup-grid small { color: var(--app-muted); } -.recovery-code-panel { padding: 24px; border-left: 5px solid #d28b1d; background: #fff9eb; box-shadow: var(--app-shadow); } -.recovery-code-panel h2, .recovery-code-panel p { margin: 0; } -.recovery-code-panel span { color: #766540; } -.recovery-code-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 18px 0; } -.recovery-code-grid code { padding: 10px; border: 1px dashed #c69b43; background: #fff; text-align: center; font-size: 13px; font-weight: 800; } -.admission-command-banner { min-height: 190px; display: flex; align-items: flex-end; padding: 30px; color: #fff; background: linear-gradient(112deg, rgba(7,35,62,.97), rgba(14,68,104,.86)), repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,.04) 18px 19px); box-shadow: var(--app-shadow); } -.admission-command-banner span { color: #80b5da; font-size: 9px; letter-spacing: .17em; } -.admission-command-banner h2 { margin: 6px 0; font-family: var(--app-title); font-size: 28px; } -.admission-command-banner p { max-width: 720px; margin: 0; color: #c6d5e2; } -.admission-progress-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 16px 0; } -.admission-progress-grid article { padding: 18px; border: 1px solid var(--app-line); background: #fff; } -.admission-progress-grid header { display: flex; justify-content: space-between; gap: 12px; } -.admission-progress-grid header strong { color: var(--app-red); font-size: 18px; } -.admission-progress-grid article > div { height: 5px; margin: 12px 0; overflow: hidden; background: #e5ebef; } -.admission-progress-grid article > div i { display: block; height: 100%; background: var(--app-red); } -.admission-progress-grid p, .admission-progress-grid small { margin: 0; color: var(--app-muted); } -.admission-dashboard-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; } -.admission-dashboard-grid .dashboard-row > b { display: grid; width: 34px; height: 34px; place-items: center; background: #eaf0f5; color: var(--app-navy); } -.admission-plan-form { margin-bottom: 16px; } -.admission-plan-form > header h2, .admission-plan-form > header p { margin: 0; } -.plan-category-list { display: grid; gap: 12px; } -.plan-category-card { border: 1px solid var(--app-line); background: #fafbfc; } -.plan-category-card > header, .plan-category-card > section > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; border-bottom: 1px solid var(--app-line); } -.plan-category-card > header button, .plan-category-card > section button, .allocation-row button { border: 0; background: transparent; color: var(--app-red); } -.plan-category-card > .form-grid { padding: 14px; } -.plan-category-card > section { margin: 0 14px 14px; border: 1px solid var(--app-line); background: #fff; } -.plan-category-card > section small { display: block; color: var(--app-muted); font-weight: 400; } -.allocation-row { display: grid; grid-template-columns: 1fr 140px auto; gap: 8px; padding: 9px 12px; border-top: 1px solid #eef1f3; } -.table-stack { display: flex; flex-direction: column; margin-bottom: 4px; } -.ledger-panel > header, .admission-plan-history > header { padding: 18px 20px; } -.ledger-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) 220px 170px; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--app-line); background: #f6f8fa; } -.ledger-bulk { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 11px 16px; border-top: 1px solid var(--app-line); border-bottom: 1px solid var(--app-line); } -.ledger-bulk > strong { margin-right: auto; } -.row-review-form { min-width: 190px; display: grid; gap: 5px; } -.row-review-form button { padding: 7px; border: 0; background: var(--app-navy); color: #fff; } -.admission-export-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding: 18px 20px; background: #fff; box-shadow: var(--app-shadow); } -.admission-export-bar > div { display: flex; flex: 1; flex-direction: column; } -.admission-export-bar > div > span { color: var(--app-red); font-size: 9px; } -.admission-export-bar small { color: var(--app-muted); } -.app-button.disabled { pointer-events: none; opacity: .45; } -.reporting-workbench { margin-bottom: 18px; border: 1px solid var(--app-line); background: #fff; box-shadow: var(--app-shadow); } -.reporting-workbench > header { display: flex; justify-content: space-between; gap: 18px; padding: 22px; background: var(--app-navy); color: #fff; } -.reporting-workbench > header h2 { margin: 4px 0; } -.reporting-workbench > header p { margin: 0; color: #b9ccdb; } -.reporting-workbench > header > strong { font-family: var(--app-title); font-size: 30px; text-align: right; } -.reporting-workbench > header > strong small { display: block; color: #9cb5c9; font-family: var(--app-body); font-size: 9px; } -.reporting-stat-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding: 11px 18px; background: #e9eef3; } -.reporting-stat-strip .status-badge { margin-left: auto; } -.reporting-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; } -.reporting-tools > div, .reporting-tools > form { display: flex; flex-direction: column; gap: 8px; padding: 15px; border: 1px solid var(--app-line); } -.reporting-tools small { color: var(--app-muted); } -.reporting-tools > div > span { display: flex; gap: 8px; } -.reporting-workbench form > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 16px; } -.scan-preview { margin: 0 16px 16px; padding: 16px; border: 2px solid #218252; background: #f2faf6; } -.scan-preview > header { display: flex; justify-content: space-between; } -.scan-preview dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } -.scan-preview dl > div { padding: 9px; background: #fff; } -.scan-preview dt { color: var(--app-muted); font-size: 9px; } -.scan-preview dd { margin: 2px 0 0; font-weight: 700; } -.reporting-decision { display: grid; grid-template-columns: 1fr 180px minmax(220px, 1fr) auto; gap: 10px; align-items: center; padding: 18px; } -.reporting-decision p { margin: 3px 0 0; color: var(--app-muted); } -.notice-template-studio { display: grid; grid-template-columns: minmax(380px, .85fr) minmax(420px, 1.15fr); gap: 18px; } -.notice-template-preview { padding: 14px; background: #dce1e5; } -.notice-template-preview > div { position: relative; min-height: 700px; padding: 64px; border: 12px solid #fff; outline: 2px solid var(--template-accent); outline-offset: -22px; background: #fff; color: #24313b; } -.notice-template-preview > div::before { content: ''; position: absolute; inset: 0 0 auto; height: 12px; background: var(--template-primary); } -.notice-template-preview h2 { margin: 30px 0 8px; color: var(--template-primary); font-family: var(--app-title); font-size: 32px; letter-spacing: .3em; text-align: center; } -.notice-template-preview h3 { text-align: center; } -.notice-template-preview em { display: block; margin: 36px 0; color: #6f7780; font-size: 9px; font-style: normal; } -.notice-template-preview > div > p { min-height: 180px; line-height: 2; } -.notice-template-preview footer { display: flex; flex-direction: column; align-items: flex-end; margin-top: 35px; } -.notice-template-preview > div > i { position: absolute; right: 42px; bottom: 38px; width: 72px; height: 72px; display: grid; place-items: center; border: 1px dashed #9da7ae; color: #7b858c; font-size: 8px; font-style: normal; } -.notice-template-preview > p { color: #596672; font-size: 9px; } -.admin-core-workspace { display: grid; gap: 16px; } -.admin-core-workspace > .form-error { margin: 0; } -.issued-credential { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; padding: 22px; border-left: 5px solid #d28b1d; background: #fff8e8; box-shadow: var(--app-shadow); } -.issued-credential h2, .issued-credential p { margin: 0; } -.issued-credential > div > span { color: #a06b13; font-size: 9px; letter-spacing: .16em; } -.issued-credential dl { display: flex; gap: 24px; margin: 0; } -.issued-credential dt { color: var(--app-muted); font-size: 9px; } -.issued-credential dd { margin: 3px 0 0; font-family: ui-monospace, Consolas, monospace; font-size: 16px; font-weight: 800; } -.scope-banner-vue { display: flex; align-items: center; gap: 15px; padding: 18px 22px; color: #fff; background: var(--app-navy); } -.scope-banner-vue > span { padding: 7px 9px; background: var(--app-red); font-size: 9px; text-transform: uppercase; } -.scope-banner-vue > div { display: flex; flex-direction: column; } -.scope-banner-vue small { color: #aabfd0; } -.audit-ledger > header { padding: 16px 20px; } -.admin-create-strip > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; } -.admin-create-strip > header h2, .admin-create-strip > header p { margin: 0; } -.check-row { display: flex; flex-wrap: wrap; gap: 18px; } -.check-row label { flex-direction: row !important; } -.excel-action-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 11px 14px; border: 1px solid var(--app-line); background: #edf2f5; } -.excel-action-bar a, .excel-action-bar label { cursor: pointer; padding: 7px 11px; border: 1px solid #aebdca; background: #fff; color: var(--app-navy); font-size: 9px; text-decoration: none; } -.organization-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; } -.org-card > header { padding: 16px; } -.org-card > strong { display: block; padding: 12px 16px; color: var(--app-navy); font-size: 20px; } -.org-card > footer { padding: 12px 16px; border-top: 1px solid var(--app-line); } -.table-action { margin: 2px; padding: 6px 8px; border: 1px solid #b8c4cd; background: #fff; color: var(--app-navy); font-size: 9px; } -.table-action:disabled { opacity: .4; } -.quota-grid-vue { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 9px; } -.quota-grid-vue label { display: grid !important; grid-template-columns: 1fr 80px; align-items: center; padding: 12px; border: 1px solid var(--app-line); background: #f8fafb; } -.quota-grid-vue label > span { display: flex; flex-direction: column; } -.batch-ledger-vue { display: grid; gap: 12px; } -.batch-card-vue > header { padding: 16px 20px; } -.batch-card-vue > .chip-list, .batch-card-vue > .row-decision, .batch-card-vue > .app-button { margin: 14px 18px; } -.row-decision { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 230px; } -.row-decision input { min-width: 150px; flex: 1; } -.row-decision button { padding: 6px 8px; border: 0; background: var(--app-navy); color: #fff; font-size: 9px; } -.archive-console-vue { display: grid; grid-template-columns: 1fr 120px 220px 120px auto; gap: 10px; align-items: end; padding: 19px; border-left: 5px solid #d28b1d; background: #fff8e8; } -.archive-console-vue h2, .archive-console-vue p { margin: 0; } -.archive-console-vue span { color: var(--app-muted); } -.admin-exam-workspace { display: grid; gap: 16px; } -.exam-builder-vue > header h2, .exam-builder-vue > header p { margin: 0; } -.exam-subject-builder { border: 1px solid var(--app-line); background: #f7f9fa; } -.exam-subject-builder > header { display: flex; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid var(--app-line); } -.exam-subject-builder > header button, .exam-subject-builder article > button { border: 0; background: transparent; color: var(--app-red); } -.exam-subject-builder article { margin: 12px; padding: 12px; border: 1px solid var(--app-line); background: #fff; } -.admin-exam-grid-vue { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; } -.admin-exam-grid-vue .exam-apply-card > footer { display: flex; align-items: center; justify-content: space-between; } -.arrangement-console-vue pre { max-height: 360px; overflow: auto; padding: 15px; background: #102941; color: #d6e5ef; font-size: 10px; white-space: pre-wrap; } -.result-exam-picker { display: flex; gap: 8px; overflow: auto; padding-bottom: 5px; } -.result-exam-picker button { min-width: 210px; display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--app-line); background: #fff; text-align: left; } -.result-exam-picker button.active { border-color: var(--app-red); box-shadow: inset 0 -3px var(--app-red); } -.result-exam-picker span { color: var(--app-blue); font-size: 9px; } -.result-exam-picker small { color: var(--app-muted); } -.result-entry-vue > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; } -.result-entry-vue > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 16px; } -.admin-admission-workspace, .admin-system-workspace { display: grid; gap: 16px; } -.admission-admin-setting > footer { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--app-line); } -.plan-admin-row { display: grid; grid-template-columns: 1fr 120px 1fr 1fr auto; gap: 7px; } -.plan-admin-row > button { border: 0; background: transparent; color: var(--app-red); } -.notice-editor-vue > header, .workflow-design-grid-vue form > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; } -.notice-editor-vue > header h2, .notice-editor-vue > header p { margin: 0; } -.check-inline { flex-direction: row !important; align-items: center; } -.room-editor-list { border: 1px solid var(--app-line); background: #f7f9fa; } -.room-editor-list > header { display: flex; justify-content: space-between; padding: 12px 15px; } -.room-editor-list > header button, .room-editor-list article > button { border: 0; background: transparent; color: var(--app-red); } -.room-editor-list article { margin: 0 12px 12px; padding: 12px; border: 1px solid var(--app-line); background: #fff; } -.workflow-grid-vue, .workflow-design-grid-vue { display: grid; grid-template-columns: repeat(auto-fit, minmax(390px, 1fr)); gap: 14px; } -.flow-card-vue > header { padding: 16px 18px; } -.workflow-track-vue { display: flex; overflow: auto; gap: 4px; padding: 16px; } -.workflow-track-vue > span { min-width: 115px; display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; padding: 9px; color: var(--app-muted); background: #edf1f4; } -.workflow-track-vue i { grid-row: 1 / 3; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #ccd5dd; font-style: normal; } -.workflow-track-vue span.done, .workflow-track-vue span.current { color: var(--app-navy); background: #e5f3ed; } -.workflow-track-vue span.done i, .workflow-track-vue span.current i { background: #24845a; color: #fff; } -.workflow-track-vue small { font-size: 8px; } -.flow-card-vue > footer { display: flex; align-items: center; gap: 5px; padding: 12px 16px; border-top: 1px solid var(--app-line); } -.flow-card-vue > footer > div { display: flex; flex: 1; flex-direction: column; } -.workflow-step-row-vue { display: grid; grid-template-columns: 32px 1fr 150px 30px; gap: 7px; align-items: center; } -.workflow-step-row-vue > b { display: grid; height: 30px; place-items: center; background: #e8eef3; } -.workflow-step-row-vue > button { border: 0; background: transparent; color: var(--app-red); } -.account-number-principle-vue { padding: 26px; color: #fff; background: var(--app-navy); } -.account-number-principle-vue span { color: #7eb0d4; font-size: 9px; } -.account-number-principle-vue h2 { margin: 5px 0; } -.account-number-principle-vue p { margin: 0; color: #bed0dd; } -.number-rule-layout-vue { display: grid; grid-template-columns: 1fr 330px; gap: 16px; } -.number-rule-layout-vue > aside { display: flex; flex-direction: column; justify-content: center; padding: 28px; background: #f0e8d8; } -.number-rule-layout-vue > aside > strong { margin: 12px 0; color: var(--app-red); font-family: ui-monospace, Consolas, monospace; font-size: 24px; overflow-wrap: anywhere; } -.rule-segment-grid { display: grid; gap: 8px; } -.rule-segment-grid label { display: grid !important; grid-template-columns: auto 1fr 100px; align-items: center; padding: 10px; border: 1px solid var(--app-line); } -.candidate-onboarding { min-height: 100vh; display: grid; grid-template-columns: 360px 1fr; } -.candidate-onboarding > aside { display: flex; flex-direction: column; padding: 45px; background: var(--app-navy); color: #fff; } -.candidate-onboarding > aside > p { margin-top: 90px; color: #85b2d7; font-size: 10px; } -.candidate-onboarding > aside > strong { font-family: ui-monospace, Consolas, monospace; font-size: 22px; } -.candidate-onboarding > aside > span { margin-top: 15px; color: #b5c7d8; font-size: 11px; line-height: 1.8; } -.candidate-onboarding > section { display: flex; align-items: center; justify-content: center; padding: 45px; } -.candidate-onboarding .business-form { width: min(760px, 100%); } -.onboarding-form { max-width: 520px; } +.candidate-welcome-vue { + min-height: 180px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 30px; + padding: 32px; + background: var(--app-navy); + color: #fff; +} +.candidate-welcome-vue > div > span { + color: #82b1d7; + font-size: 11px; +} +.candidate-welcome-vue h2 { + margin: 7px 0; + font-family: var(--app-title); + font-size: 28px; +} +.candidate-welcome-vue p { + margin: 0; + color: #b6c8d8; + font-size: 12px; +} +.candidate-welcome-vue > strong { + width: 72px; + height: 72px; + display: grid; + place-items: center; + border: 2px solid rgba(255, 255, 255, 0.5); + color: rgba(255, 255, 255, 0.75); + font-family: var(--app-title); + font-size: 22px; + line-height: 1.1; + text-align: center; +} +.candidate-dashboard-grid { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 15px; + margin-top: 15px; +} +.dashboard-row, +.notice-list-vue > button { + width: 100%; + min-height: 66px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 18px; + padding: 10px 20px; + border: 0; + border-bottom: 1px solid var(--app-line); + background: #fff; + color: var(--app-ink); + text-align: left; + cursor: pointer; +} +.dashboard-row > span, +.notice-list-vue > button > span { + min-width: 0; + display: flex; + flex-direction: column; +} +.dashboard-row small, +.notice-list-vue small { + color: var(--app-muted); + font-size: 9px; +} +.business-form { + padding: 26px; + border: 1px solid var(--app-line); + background: #fff; +} +.business-form > h2 { + margin-top: 0; +} +.profile-fields > h2 { + margin: 28px 0 15px; + padding-bottom: 8px; + border-bottom: 1px solid var(--app-line); + color: var(--app-navy); + font-family: var(--app-title); + font-size: 18px; +} +.profile-fields > h2:first-child { + margin-top: 0; +} +.form-callout { + margin: 15px 0; + padding: 15px; + border-left: 3px solid var(--app-blue); + background: #eaf1f7; +} +.form-callout p { + margin: 4px 0 0; + color: var(--app-muted); + font-size: 11px; +} +.business-card-list { + display: flex; + flex-direction: column; + gap: 16px; +} +.exam-apply-card, +.registration-vue-card, +.admit-card-vue { + padding: 25px; + border: 1px solid var(--app-line); + background: #fff; +} +.exam-apply-card > header, +.registration-vue-card > header, +.admit-card-vue > header { + display: flex; + align-items: center; + justify-content: space-between; + gap: 15px; +} +.exam-apply-card > header > span, +.registration-vue-card header span, +.admit-card-vue header span { + color: var(--app-blue); + font-family: ui-monospace, Consolas, monospace; + font-size: 10px; +} +.exam-apply-card h2, +.registration-vue-card h2, +.admit-card-vue h2 { + margin: 18px 0 8px; + color: var(--app-navy); + font-family: var(--app-title); +} +.exam-apply-card > p, +.registration-vue-card > p { + color: var(--app-muted); + font-size: 11px; +} +.exam-apply-card dl, +.registration-vue-card dl, +.admit-card-vue dl { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); + gap: 1px; + margin: 20px 0; + background: var(--app-line); +} +.exam-apply-card dl div, +.registration-vue-card dl div, +.admit-card-vue dl div { + padding: 12px; + background: #f8fafb; +} +.exam-apply-card dt, +.registration-vue-card dt, +.admit-card-vue dt { + color: var(--app-muted); + font-size: 9px; +} +.exam-apply-card dd, +.registration-vue-card dd, +.admit-card-vue dd { + margin: 4px 0 0; + font-size: 11px; + font-weight: 700; +} +.subject-choice-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); + gap: 8px; + margin: 20px 0; +} +.subject-choice-grid label { + margin: 0; + cursor: pointer; +} +.subject-choice-grid input { + position: absolute; + opacity: 0; +} +.subject-choice-grid label > span { + min-height: 75px; + display: flex; + flex-direction: column; + padding: 13px; + border: 1px solid var(--app-line); +} +.subject-choice-grid input:checked + span { + border-color: var(--app-blue); + background: #edf5fb; + box-shadow: inset 3px 0 var(--app-blue); +} +.subject-choice-grid small { + color: var(--app-muted); + font-size: 9px; +} +.subject-choice-grid em { + margin-top: auto; + color: var(--app-red); + font-size: 10px; + font-style: normal; +} +.exam-apply-card > footer { + display: flex; + align-items: center; + justify-content: space-between; + padding: 13px; + background: #edf5f0; +} +.chip-list { + display: flex; + flex-wrap: wrap; + gap: 7px; +} +.chip-list > span { + display: flex; + flex-direction: column; + padding: 7px 10px; + border: 1px solid var(--app-line); + background: #f8fafb; + font-size: 10px; +} +.chip-list small { + color: var(--app-muted); + font-size: 8px; +} +.admit-card-vue > div { + margin: 20px 0; + padding: 20px; + background: var(--app-navy); + color: #fff; +} +.admit-card-vue > div small { + display: block; + color: #a9bfd3; +} +.admit-card-vue > div strong { + font-family: ui-monospace, Consolas, monospace; + font-size: 25px; +} +.result-group > header { + padding: 16px 20px; +} +.result-group > header h2 { + margin: 3px 0 0; +} +.result-card-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); + gap: 12px; + padding: 16px; +} +.result-card-grid article { + display: flex; + flex-direction: column; + padding: 18px; + border: 1px solid var(--app-line); +} +.result-card-grid article > span { + color: var(--app-blue); + font-size: 10px; +} +.result-card-grid article > strong { + margin: 5px 0; + color: var(--app-navy); + font-family: var(--app-title); + font-size: 32px; +} +.result-card-grid article > strong small { + color: var(--app-muted); + font-family: var(--app-body); + font-size: 11px; +} +.result-card-grid article > em { + margin-bottom: 12px; + color: var(--app-muted); + font-size: 9px; + font-style: normal; +} +.result-card-grid form { + display: flex; + flex-direction: column; + gap: 7px; + margin-top: auto; +} +.result-card-grid textarea { + padding: 9px; + border: 1px solid var(--app-line); + resize: vertical; +} +.result-card-grid form button { + align-self: flex-end; + padding: 7px 11px; + border: 0; + background: var(--app-navy); + color: #fff; + font-size: 9px; +} +.admission-candidate-vue > header { + padding: 18px 20px; +} +.admission-candidate-vue > .record-metrics, +.admission-candidate-vue > .form-callout, +.admission-candidate-vue > p { + margin: 16px; +} +.preference-editor { + padding: 16px; + border-top: 1px solid var(--app-line); +} +.preference-row { + display: grid; + grid-template-columns: 45px 1fr 1fr; + gap: 10px; + margin-bottom: 9px; +} +.preference-row > b { + display: grid; + place-items: center; + background: #e8eef4; + color: var(--app-navy); + font-size: 10px; +} +.notice-list-vue > button time { + color: var(--app-muted); + font-size: 9px; +} +.notice-list-vue em { + color: var(--app-red); + font-size: 9px; + font-style: normal; +} +.security-stack { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 16px; +} +.security-stack > .form-error, +.security-stack > .recovery-code-panel { + grid-column: 1 / -1; +} +.security-card > header { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 16px; + margin-bottom: 8px; +} +.security-card > header h2, +.security-card > header p { + margin: 0; +} +.security-card > span { + display: block; + margin-bottom: 18px; + color: var(--app-muted); + line-height: 1.7; +} +.inline-security-form, +.security-protected-actions { + display: grid; + gap: 12px; +} +.security-protected-actions > div { + display: flex; + flex-wrap: wrap; + gap: 8px; +} +.app-button--danger { + border-color: #b22e35 !important; + color: #a5222a !important; + background: #fff !important; +} +.totp-setup-grid { + display: grid; + grid-template-columns: 220px 1fr; + gap: 22px; + align-items: center; + margin: 8px 0 20px; + padding: 18px; + border: 1px solid var(--app-line); + background: #f7f9fb; +} +.totp-setup-grid img { + display: block; + width: 100%; + height: auto; + background: #fff; +} +.totp-setup-grid > div { + display: flex; + flex-direction: column; + gap: 10px; + min-width: 0; +} +.totp-setup-grid code { + overflow-wrap: anywhere; + color: var(--app-navy); + font-size: 14px; + font-weight: 700; + line-height: 1.7; +} +.totp-setup-grid small { + color: var(--app-muted); +} +.recovery-code-panel { + padding: 24px; + border-left: 5px solid #d28b1d; + background: #fff9eb; + box-shadow: var(--app-shadow); +} +.recovery-code-panel h2, +.recovery-code-panel p { + margin: 0; +} +.recovery-code-panel span { + color: #766540; +} +.recovery-code-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); + gap: 8px; + margin: 18px 0; +} +.recovery-code-grid code { + padding: 10px; + border: 1px dashed #c69b43; + background: #fff; + text-align: center; + font-size: 13px; + font-weight: 800; +} +.admission-command-banner { + min-height: 190px; + display: flex; + align-items: flex-end; + padding: 30px; + color: #fff; + background: + linear-gradient(112deg, rgba(7, 35, 62, 0.97), rgba(14, 68, 104, 0.86)), + repeating-linear-gradient( + 135deg, + transparent 0 18px, + rgba(255, 255, 255, 0.04) 18px 19px + ); + box-shadow: var(--app-shadow); +} +.admission-command-banner span { + color: #80b5da; + font-size: 9px; + letter-spacing: 0.17em; +} +.admission-command-banner h2 { + margin: 6px 0; + font-family: var(--app-title); + font-size: 28px; +} +.admission-command-banner p { + max-width: 720px; + margin: 0; + color: #c6d5e2; +} +.admission-progress-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 14px; + margin: 16px 0; +} +.admission-progress-grid article { + padding: 18px; + border: 1px solid var(--app-line); + background: #fff; +} +.admission-progress-grid header { + display: flex; + justify-content: space-between; + gap: 12px; +} +.admission-progress-grid header strong { + color: var(--app-red); + font-size: 18px; +} +.admission-progress-grid article > div { + height: 5px; + margin: 12px 0; + overflow: hidden; + background: #e5ebef; +} +.admission-progress-grid article > div i { + display: block; + height: 100%; + background: var(--app-red); +} +.admission-progress-grid p, +.admission-progress-grid small { + margin: 0; + color: var(--app-muted); +} +.admission-dashboard-grid { + display: grid; + grid-template-columns: 1.1fr 0.9fr; + gap: 16px; +} +.admission-dashboard-grid .dashboard-row > b { + display: grid; + width: 34px; + height: 34px; + place-items: center; + background: #eaf0f5; + color: var(--app-navy); +} +.admission-plan-form { + margin-bottom: 16px; +} +.admission-plan-form > header h2, +.admission-plan-form > header p { + margin: 0; +} +.plan-category-list { + display: grid; + gap: 12px; +} +.plan-category-card { + border: 1px solid var(--app-line); + background: #fafbfc; +} +.plan-category-card > header, +.plan-category-card > section > header { + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + padding: 12px 15px; + border-bottom: 1px solid var(--app-line); +} +.plan-category-card > header button, +.plan-category-card > section button, +.allocation-row button { + border: 0; + background: transparent; + color: var(--app-red); +} +.plan-category-card > .form-grid { + padding: 14px; +} +.plan-category-card > section { + margin: 0 14px 14px; + border: 1px solid var(--app-line); + background: #fff; +} +.plan-category-card > section small { + display: block; + color: var(--app-muted); + font-weight: 400; +} +.allocation-row { + display: grid; + grid-template-columns: 1fr 140px auto; + gap: 8px; + padding: 9px 12px; + border-top: 1px solid #eef1f3; +} +.table-stack { + display: flex; + flex-direction: column; + margin-bottom: 4px; +} +.ledger-panel > header, +.admission-plan-history > header { + padding: 18px 20px; +} +.ledger-toolbar { + display: grid; + grid-template-columns: minmax(240px, 1fr) 220px 170px; + gap: 8px; + padding: 12px 16px; + border-top: 1px solid var(--app-line); + background: #f6f8fa; +} +.ledger-toolbar--wide { + grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); + align-items: end; +} +.ledger-toolbar label { + display: flex; + min-width: 0; + flex-direction: column; + gap: 6px; + color: #526477; + font-size: 12px; + font-weight: 700; +} +.ledger-toolbar input, +.ledger-toolbar select { + width: 100%; +} +.ledger-toolbar > button { + min-height: 40px; + align-self: end; +} +.ledger-bulk { + display: flex; + min-height: 54px; + align-items: center; + flex-wrap: wrap; + gap: 9px; + padding: 9px 16px; + border-top: 1px solid var(--app-line); + border-bottom: 1px solid var(--app-line); + background: #fff; +} +.ledger-bulk label { + display: inline-flex; + align-items: center; + gap: 8px; + color: #334b62; + font-size: 13px; + font-weight: 650; +} +.ledger-bulk input[type="checkbox"], +.table-scroll input[type="checkbox"] { + width: 17px; + height: 17px; + accent-color: var(--app-blue); +} +.ledger-bulk button { + min-height: 34px; + padding: 0 12px; + border: 1px solid #b9c8d5; + border-radius: 3px; + background: #fff; + color: var(--app-navy); + font-size: 12px; + font-weight: 700; + cursor: pointer; +} +.ledger-bulk button:hover:not(:disabled) { + border-color: var(--app-blue); + background: #edf5fb; + color: var(--app-blue); +} +.ledger-bulk button:disabled { + opacity: 0.45; + cursor: not-allowed; +} +.ledger-bulk > span { + color: var(--app-muted); + font-size: 12px; +} +.ledger-bulk > strong { + margin-right: auto; +} +.row-review-form { + min-width: 190px; + display: grid; + gap: 5px; +} +.row-review-form button { + padding: 7px; + border: 0; + background: var(--app-navy); + color: #fff; +} +.admission-export-bar { + display: flex; + align-items: center; + gap: 16px; + margin-bottom: 16px; + padding: 18px 20px; + background: #fff; + box-shadow: var(--app-shadow); +} +.admission-export-bar > div { + display: flex; + flex: 1; + flex-direction: column; +} +.admission-export-bar > div > span { + color: var(--app-red); + font-size: 9px; +} +.admission-export-bar small { + color: var(--app-muted); +} +.app-button.disabled { + pointer-events: none; + opacity: 0.45; +} +.reporting-workbench { + margin-bottom: 18px; + border: 1px solid var(--app-line); + background: #fff; + box-shadow: var(--app-shadow); +} +.reporting-workbench > header { + display: flex; + justify-content: space-between; + gap: 18px; + padding: 22px; + background: var(--app-navy); + color: #fff; +} +.reporting-workbench > header h2 { + margin: 4px 0; +} +.reporting-workbench > header p { + margin: 0; + color: #b9ccdb; +} +.reporting-workbench > header > strong { + font-family: var(--app-title); + font-size: 30px; + text-align: right; +} +.reporting-workbench > header > strong small { + display: block; + color: #9cb5c9; + font-family: var(--app-body); + font-size: 9px; +} +.reporting-stat-strip { + display: flex; + align-items: center; + flex-wrap: wrap; + gap: 20px; + padding: 11px 18px; + background: #e9eef3; +} +.reporting-stat-strip .status-badge { + margin-left: auto; +} +.reporting-tools { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 12px; + padding: 16px; +} +.reporting-tools > div, +.reporting-tools > form { + display: flex; + flex-direction: column; + gap: 8px; + padding: 15px; + border: 1px solid var(--app-line); +} +.reporting-tools small { + color: var(--app-muted); +} +.reporting-tools > div > span { + display: flex; + gap: 8px; +} +.reporting-workbench form > footer { + display: flex; + justify-content: flex-end; + gap: 8px; + padding: 14px 16px; +} +.scan-preview { + margin: 0 16px 16px; + padding: 16px; + border: 2px solid #218252; + background: #f2faf6; +} +.scan-preview > header { + display: flex; + justify-content: space-between; +} +.scan-preview dl { + display: grid; + grid-template-columns: repeat(4, 1fr); + gap: 8px; +} +.scan-preview dl > div { + padding: 9px; + background: #fff; +} +.scan-preview dt { + color: var(--app-muted); + font-size: 9px; +} +.scan-preview dd { + margin: 2px 0 0; + font-weight: 700; +} +.reporting-decision { + display: grid; + grid-template-columns: 1fr 180px minmax(220px, 1fr) auto; + gap: 10px; + align-items: center; + padding: 18px; +} +.reporting-decision p { + margin: 3px 0 0; + color: var(--app-muted); +} +.notice-template-studio { + display: grid; + grid-template-columns: minmax(380px, 0.85fr) minmax(420px, 1.15fr); + gap: 18px; +} +.notice-template-preview { + padding: 14px; + background: #dce1e5; +} +.notice-template-preview > div { + position: relative; + min-height: 700px; + padding: 64px; + border: 12px solid #fff; + outline: 2px solid var(--template-accent); + outline-offset: -22px; + background: #fff; + color: #24313b; +} +.notice-template-preview > div::before { + content: ""; + position: absolute; + inset: 0 0 auto; + height: 12px; + background: var(--template-primary); +} +.notice-template-preview h2 { + margin: 30px 0 8px; + color: var(--template-primary); + font-family: var(--app-title); + font-size: 32px; + letter-spacing: 0.3em; + text-align: center; +} +.notice-template-preview h3 { + text-align: center; +} +.notice-template-preview em { + display: block; + margin: 36px 0; + color: #6f7780; + font-size: 9px; + font-style: normal; +} +.notice-template-preview > div > p { + min-height: 180px; + line-height: 2; +} +.notice-template-preview footer { + display: flex; + flex-direction: column; + align-items: flex-end; + margin-top: 35px; +} +.notice-template-preview > div > i { + position: absolute; + right: 42px; + bottom: 38px; + width: 72px; + height: 72px; + display: grid; + place-items: center; + border: 1px dashed #9da7ae; + color: #7b858c; + font-size: 8px; + font-style: normal; +} +.notice-template-preview > p { + color: #596672; + font-size: 9px; +} +.admin-core-workspace { + display: grid; + gap: 16px; +} +.admin-core-workspace > .form-error { + margin: 0; +} +.issued-credential { + display: grid; + grid-template-columns: 1fr auto auto; + align-items: center; + gap: 24px; + padding: 22px; + border-left: 5px solid #d28b1d; + background: #fff8e8; + box-shadow: var(--app-shadow); +} +.issued-credential h2, +.issued-credential p { + margin: 0; +} +.issued-credential > div > span { + color: #a06b13; + font-size: 9px; + letter-spacing: 0.16em; +} +.issued-credential dl { + display: flex; + gap: 24px; + margin: 0; +} +.issued-credential dt { + color: var(--app-muted); + font-size: 9px; +} +.issued-credential dd { + margin: 3px 0 0; + font-family: ui-monospace, Consolas, monospace; + font-size: 16px; + font-weight: 800; +} +.scope-banner-vue { + display: flex; + align-items: center; + gap: 15px; + padding: 18px 22px; + color: #fff; + background: var(--app-navy); +} +.scope-banner-vue > span { + padding: 7px 9px; + background: var(--app-red); + font-size: 9px; + text-transform: uppercase; +} +.scope-banner-vue > div { + display: flex; + flex-direction: column; +} +.scope-banner-vue small { + color: #aabfd0; +} +.audit-ledger > header { + padding: 16px 20px; +} +.admin-create-strip > header { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 16px; +} +.admin-create-strip > header h2, +.admin-create-strip > header p { + margin: 0; +} +.check-row { + display: flex; + flex-wrap: wrap; + gap: 18px; +} +.check-row label { + flex-direction: row !important; +} +.excel-action-bar { + display: flex; + align-items: center; + flex-wrap: wrap; + gap: 8px; + padding: 11px 14px; + border: 1px solid var(--app-line); + background: #edf2f5; +} +.excel-action-bar a, +.excel-action-bar label { + cursor: pointer; + padding: 7px 11px; + border: 1px solid #aebdca; + background: #fff; + color: var(--app-navy); + font-size: 9px; + text-decoration: none; +} +.organization-card-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); + gap: 14px; +} +.org-card > header { + padding: 16px; +} +.org-card > strong { + display: block; + padding: 12px 16px; + color: var(--app-navy); + font-size: 20px; +} +.org-card > footer { + padding: 12px 16px; + border-top: 1px solid var(--app-line); +} +.table-action { + margin: 2px; + padding: 6px 8px; + border: 1px solid #b8c4cd; + background: #fff; + color: var(--app-navy); + font-size: 9px; +} +.table-action:disabled { + opacity: 0.4; +} +.quota-grid-vue { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); + gap: 9px; +} +.quota-grid-vue label { + display: grid !important; + grid-template-columns: 1fr 80px; + align-items: center; + padding: 12px; + border: 1px solid var(--app-line); + background: #f8fafb; +} +.quota-grid-vue label > span { + display: flex; + flex-direction: column; +} +.batch-ledger-vue { + display: grid; + gap: 12px; +} +.batch-card-vue > header { + padding: 16px 20px; +} +.batch-card-vue > .chip-list, +.batch-card-vue > .row-decision, +.batch-card-vue > .app-button { + margin: 14px 18px; +} +.row-decision { + display: flex; + align-items: center; + flex-wrap: wrap; + gap: 5px; + min-width: 230px; +} +.row-decision input { + min-width: 150px; + flex: 1; +} +.row-decision button { + padding: 6px 8px; + border: 0; + background: var(--app-navy); + color: #fff; + font-size: 9px; +} +.archive-console-vue { + display: grid; + grid-template-columns: 1fr 120px 220px 120px auto; + gap: 10px; + align-items: end; + padding: 19px; + border-left: 5px solid #d28b1d; + background: #fff8e8; +} +.archive-console-vue h2, +.archive-console-vue p { + margin: 0; +} +.archive-console-vue span { + color: var(--app-muted); +} +.admin-exam-workspace { + display: grid; + gap: 16px; +} +.exam-builder-vue > header h2, +.exam-builder-vue > header p { + margin: 0; +} +.exam-subject-builder { + border: 1px solid var(--app-line); + background: #f7f9fa; +} +.exam-subject-builder > header { + display: flex; + justify-content: space-between; + padding: 12px 15px; + border-bottom: 1px solid var(--app-line); +} +.exam-subject-builder > header button, +.exam-subject-builder article > button { + border: 0; + background: transparent; + color: var(--app-red); +} +.exam-subject-builder article { + margin: 12px; + padding: 12px; + border: 1px solid var(--app-line); + background: #fff; +} +.admin-exam-grid-vue { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); + gap: 14px; +} +.admin-exam-grid-vue .exam-apply-card > footer { + display: flex; + align-items: center; + justify-content: space-between; +} +.arrangement-console-vue pre { + max-height: 360px; + overflow: auto; + padding: 15px; + background: #102941; + color: #d6e5ef; + font-size: 10px; + white-space: pre-wrap; +} +.result-exam-picker { + display: flex; + gap: 8px; + overflow: auto; + padding-bottom: 5px; +} +.result-exam-picker button { + min-width: 210px; + display: flex; + flex-direction: column; + padding: 14px 16px; + border: 1px solid var(--app-line); + background: #fff; + text-align: left; +} +.result-exam-picker button.active { + border-color: var(--app-red); + box-shadow: inset 0 -3px var(--app-red); +} +.result-exam-picker span { + color: var(--app-blue); + font-size: 9px; +} +.result-exam-picker small { + color: var(--app-muted); +} +.result-entry-vue > header { + display: flex; + align-items: center; + justify-content: space-between; + gap: 16px; + padding: 16px 20px; +} +.result-entry-vue > footer { + display: flex; + justify-content: flex-end; + gap: 8px; + padding: 13px 16px; +} +.admin-admission-workspace, +.admin-system-workspace { + display: grid; + gap: 16px; +} +.admission-admin-setting > footer { + display: flex; + flex-wrap: wrap; + gap: 8px; + padding-top: 14px; + border-top: 1px solid var(--app-line); +} +.plan-admin-row { + display: grid; + grid-template-columns: 1fr 120px 1fr 1fr auto; + gap: 7px; +} +.plan-admin-row > button { + border: 0; + background: transparent; + color: var(--app-red); +} +.notice-editor-vue > header, +.workflow-design-grid-vue form > header { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 12px; +} +.notice-editor-vue > header h2, +.notice-editor-vue > header p { + margin: 0; +} +.notice-editor-studio { + overflow: hidden; + padding: 0; + border-top: 4px solid var(--app-red); +} +.notice-editor-studio__header { + align-items: center !important; + padding: 22px 26px; + border-bottom: 1px solid var(--app-line); + background: linear-gradient(135deg, #f8fafc 0%, #eef3f7 100%); +} +.notice-editor-studio__header > div:first-child { + min-width: 0; +} +.notice-editor-studio__header p { + color: var(--app-blue); + font-size: 10px; + font-weight: 800; + letter-spacing: 0.18em; +} +.notice-editor-studio__header h2 { + margin-top: 4px !important; + color: var(--app-navy); + font-family: var(--app-title); + font-size: 24px; +} +.notice-editor-studio__header span { + display: block; + margin-top: 5px; + color: var(--app-muted); + font-size: 12px; +} +.notice-editor-studio__identity { + min-width: 215px; + padding: 12px 15px; + border-left: 3px solid var(--app-blue); + background: #fff; +} +.notice-editor-studio__identity small, +.notice-editor-studio__identity strong { + display: block; +} +.notice-editor-studio__identity small { + color: var(--app-muted); + font-size: 10px; +} +.notice-editor-studio__identity strong { + overflow: hidden; + margin-top: 3px; + color: var(--app-navy); + font-family: ui-monospace, Consolas, monospace; + font-size: 12px; + text-overflow: ellipsis; + white-space: nowrap; +} +.notice-editor-studio__body { + display: grid; + grid-template-columns: minmax(0, 1fr) 270px; +} +.notice-editor-studio__manuscript { + min-width: 0; + padding: 25px 26px 28px; +} +.notice-editor-studio__manuscript > label { + margin-bottom: 17px; +} +.notice-title-field input { + min-height: 54px !important; + color: #17314f !important; + font-family: var(--app-title); + font-size: 19px !important; + font-weight: 700; +} +.notice-editor-label { + margin-bottom: 7px !important; +} +.notice-editor-studio__settings { + display: flex; + flex-direction: column; + gap: 17px; + padding: 25px 22px; + border-left: 1px solid var(--app-line); + background: #f5f7f9; +} +.notice-editor-studio__settings > div:first-child { + padding-bottom: 14px; + border-bottom: 1px solid #d8e0e7; +} +.notice-editor-studio__settings > div:first-child small { + color: var(--app-red); + font-size: 10px; + font-weight: 800; + letter-spacing: 0.14em; +} +.notice-editor-studio__settings h3 { + margin: 5px 0 7px; + color: var(--app-navy); + font-family: var(--app-title); + font-size: 18px; +} +.notice-editor-studio__settings p { + margin: 0; + color: var(--app-muted); + font-size: 11px; + line-height: 1.7; +} +.notice-editor-studio__settings label { + margin: 0; +} +.notice-pin-control { + flex-direction: row !important; + align-items: center; + gap: 10px !important; + padding: 12px; + border: 1px solid #d3dde5; + background: #fff; + cursor: pointer; +} +.notice-pin-control > span { + display: flex; + flex-direction: column; + gap: 2px; +} +.notice-pin-control strong { + color: var(--app-navy); + font-size: 12px; +} +.notice-pin-control small { + color: var(--app-muted); + font-size: 10px; + font-weight: 400; +} +.notice-release-state { + display: flex; + align-items: center; + gap: 10px; + margin-top: auto; + padding: 13px; + border: 1px solid #d8e0e7; + background: #fff; +} +.notice-release-state > i { + width: 9px; + height: 9px; + flex: 0 0 9px; + border-radius: 50%; + background: #9aa7b4; + box-shadow: 0 0 0 4px #eef1f3; +} +.notice-release-state.is-published > i { + background: #238054; + box-shadow: 0 0 0 4px #e4f2eb; +} +.notice-release-state > span { + display: flex; + flex-direction: column; + gap: 2px; +} +.notice-release-state strong { + color: var(--app-navy); + font-size: 12px; +} +.notice-release-state small { + color: var(--app-muted); + font-size: 10px; +} +.notice-editor-studio__actions { + display: flex; + justify-content: flex-end; + gap: 8px; + padding: 15px 26px; + border-top: 1px solid var(--app-line); + background: #f8fafb; +} +.notice-rich-editor { + --ck-color-base-border: #c7d3de; + --ck-color-toolbar-background: #edf3f7; + --ck-color-focus-border: var(--app-blue); + --ck-color-button-on-background: #dceaf5; + --ck-color-button-on-color: var(--app-navy); +} +.notice-rich-editor .ck.ck-editor { + border-radius: 3px; +} +.notice-rich-editor .ck.ck-toolbar { + border-radius: 3px 3px 0 0; +} +.notice-rich-editor .ck.ck-editor__main > .ck-editor__editable { + min-height: 360px; + padding: 24px 30px; + border-radius: 0 0 3px 3px; + color: #26384b; + font-family: var(--app-body); + font-size: 14px; + line-height: 1.9; +} +.notice-rich-editor .ck-content h2, +.notice-rich-editor .ck-content h3, +.notice-rich-editor .ck-content h4 { + color: var(--app-navy); + font-family: var(--app-title); +} +.notice-rich-editor .ck-content blockquote { + border-left-color: var(--app-red); + background: #f8f4f2; +} +.notice-rich-editor > footer { + display: flex; + justify-content: space-between; + gap: 18px; + padding: 8px 11px; + border: 1px solid #c7d3de; + border-top: 0; + background: #f8fafb; + color: var(--app-muted); + font-size: 10px; +} +.notice-rich-editor > footer strong { + color: var(--app-navy); + white-space: nowrap; +} +.notice-ledger-panel .ledger-empty { + height: 110px; + color: var(--app-muted); + text-align: center; +} +.notice-ledger-panel .table-action { + display: inline-flex; + align-items: center; + text-decoration: none; +} +.check-inline { + flex-direction: row !important; + align-items: center; +} +.room-editor-list { + border: 1px solid var(--app-line); + background: #f7f9fa; +} +.room-editor-list > header { + display: flex; + justify-content: space-between; + padding: 12px 15px; +} +.room-editor-list > header button, +.room-editor-list article > button { + border: 0; + background: transparent; + color: var(--app-red); +} +.room-editor-list article { + margin: 0 12px 12px; + padding: 12px; + border: 1px solid var(--app-line); + background: #fff; +} +.workflow-grid-vue, +.workflow-design-grid-vue { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(390px, 1fr)); + gap: 14px; +} +.flow-card-vue > header { + padding: 16px 18px; +} +.workflow-track-vue { + display: flex; + overflow: auto; + gap: 4px; + padding: 16px; +} +.workflow-track-vue > span { + min-width: 115px; + display: grid; + grid-template-columns: 26px 1fr; + grid-template-rows: auto auto; + padding: 9px; + color: var(--app-muted); + background: #edf1f4; +} +.workflow-track-vue i { + grid-row: 1 / 3; + width: 22px; + height: 22px; + display: grid; + place-items: center; + border-radius: 50%; + background: #ccd5dd; + font-style: normal; +} +.workflow-track-vue span.done, +.workflow-track-vue span.current { + color: var(--app-navy); + background: #e5f3ed; +} +.workflow-track-vue span.done i, +.workflow-track-vue span.current i { + background: #24845a; + color: #fff; +} +.workflow-track-vue small { + font-size: 8px; +} +.flow-card-vue > footer { + display: flex; + align-items: center; + gap: 5px; + padding: 12px 16px; + border-top: 1px solid var(--app-line); +} +.flow-card-vue > footer > div { + display: flex; + flex: 1; + flex-direction: column; +} +.workflow-step-row-vue { + display: grid; + grid-template-columns: 32px 1fr 150px 30px; + gap: 7px; + align-items: center; +} +.workflow-step-row-vue > b { + display: grid; + height: 30px; + place-items: center; + background: #e8eef3; +} +.workflow-step-row-vue > button { + border: 0; + background: transparent; + color: var(--app-red); +} +.account-number-principle-vue { + padding: 26px; + color: #fff; + background: var(--app-navy); +} +.account-number-principle-vue span { + color: #7eb0d4; + font-size: 9px; +} +.account-number-principle-vue h2 { + margin: 5px 0; +} +.account-number-principle-vue p { + margin: 0; + color: #bed0dd; +} +.number-rule-layout-vue { + display: grid; + grid-template-columns: 1fr 330px; + gap: 16px; +} +.number-rule-layout-vue > aside { + display: flex; + flex-direction: column; + justify-content: center; + padding: 28px; + background: #f0e8d8; +} +.number-rule-layout-vue > aside > strong { + margin: 12px 0; + color: var(--app-red); + font-family: ui-monospace, Consolas, monospace; + font-size: 24px; + overflow-wrap: anywhere; +} +.rule-segment-grid { + display: grid; + gap: 8px; +} +.rule-segment-grid label { + display: grid !important; + grid-template-columns: auto 1fr 100px; + align-items: center; + padding: 10px; + border: 1px solid var(--app-line); +} +.candidate-onboarding { + min-height: 100vh; + display: grid; + grid-template-columns: 360px 1fr; +} +.candidate-onboarding > aside { + display: flex; + flex-direction: column; + padding: 45px; + background: var(--app-navy); + color: #fff; +} +.candidate-onboarding > aside > p { + margin-top: 90px; + color: #85b2d7; + font-size: 10px; +} +.candidate-onboarding > aside > strong { + font-family: ui-monospace, Consolas, monospace; + font-size: 22px; +} +.candidate-onboarding > aside > span { + margin-top: 15px; + color: #b5c7d8; + font-size: 11px; + line-height: 1.8; +} +.candidate-onboarding > section { + display: flex; + align-items: center; + justify-content: center; + padding: 45px; +} +.candidate-onboarding .business-form { + width: min(760px, 100%); +} +.onboarding-form { + max-width: 520px; +} -.app-toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; min-width: 270px; display: flex; flex-direction: column; padding: 15px 18px; border-left: 4px solid #218252; background: #fff; box-shadow: 0 18px 45px rgba(8,32,58,.2); } -.app-toast.is-warning { border-color: #d28b1d; } -.app-toast.is-error { border-color: var(--app-red); } -.app-toast span { margin-top: 3px; color: var(--app-muted); font-size: 10px; } -.toast-enter-active, .toast-leave-active { transition: opacity .18s ease, transform .18s ease; } -.toast-enter-from, .toast-leave-to { opacity: 0; transform: translateY(10px); } -.app-modal-backdrop { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(4,20,39,.66); } -.route-message { min-height: 100vh; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 30px; text-align: center; } -.route-message > span { color: var(--app-red); font-size: 12px; font-weight: 800; } -.route-message h1 { font-family: var(--app-title); } -.route-message p { color: var(--app-muted); } -.route-message button { padding: 10px 18px; border: 0; background: var(--app-navy); color: #fff; } +.app-toast { + position: fixed; + z-index: 100; + right: 22px; + bottom: 22px; + min-width: 270px; + display: flex; + flex-direction: column; + padding: 15px 18px; + border-left: 4px solid #218252; + background: #fff; + box-shadow: 0 18px 45px rgba(8, 32, 58, 0.2); +} +.app-toast.is-warning { + border-color: #d28b1d; +} +.app-toast.is-error { + border-color: var(--app-red); +} +.app-toast span { + margin-top: 3px; + color: var(--app-muted); + font-size: 10px; +} +.toast-enter-active, +.toast-leave-active { + transition: + opacity 0.18s ease, + transform 0.18s ease; +} +.toast-enter-from, +.toast-leave-to { + opacity: 0; + transform: translateY(10px); +} +.app-modal-backdrop { + position: fixed; + z-index: 90; + inset: 0; + display: grid; + place-items: center; + padding: 24px; + background: rgba(4, 20, 39, 0.66); +} +.route-message { + min-height: 100vh; + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; + padding: 30px; + text-align: center; +} +.route-message > span { + color: var(--app-red); + font-size: 12px; + font-weight: 800; +} +.route-message h1 { + font-family: var(--app-title); +} +.route-message p { + color: var(--app-muted); +} +.route-message button { + padding: 10px 18px; + border: 0; + background: var(--app-navy); + color: #fff; +} /* Administration workspace: restrained public-service typography and dense, readable ledgers. */ -.portal-shell { width: 100%; overflow-x: clip; } -.portal-shell__main, .portal-shell__content, .admin-core-workspace, .record-panel { min-width: 0; } -.portal-shell__topbar { min-width: 0; } -.portal-shell__topbar > div:first-of-type { font-size: 13px; } -.portal-shell__user small { font-size: 12px; } -.portal-shell__user > button { min-height: 36px; padding: 0 8px; font-size: 13px; } -.portal-shell__brand strong { font-size: 17px; } -.portal-shell__brand small { font-size: 9px; } -.portal-shell__role { font-size: 13px; } -.portal-shell__sidebar nav section > strong { padding-top: 18px; font-size: 11px; } -.portal-shell__sidebar nav a { min-height: 43px; font-size: 14px; } -.portal-shell__sidebar nav a > span { font-size: 12px; } -.portal-shell__scope span, .portal-shell__scope small { font-size: 11px; } -.portal-shell__scope strong { font-size: 13px; } -.portal-page-heading { align-items: center; margin-bottom: 24px; padding-left: 17px; border-left: 4px solid var(--app-red); } -.portal-page-heading p { margin-bottom: 5px; font-size: 11px; } -.portal-page-heading h1 { font-size: clamp(28px, 2.3vw, 34px); line-height: 1.25; } -.portal-page-heading span { margin-top: 7px; font-size: 13px; } +.portal-shell { + width: 100%; + overflow-x: clip; +} +.portal-shell__main, +.portal-shell__content, +.admin-core-workspace, +.record-panel { + min-width: 0; +} +.portal-shell__topbar { + min-width: 0; +} +.portal-shell__topbar > div:first-of-type { + font-size: 13px; +} +.portal-shell__user small { + font-size: 12px; +} +.portal-shell__user > button { + min-height: 36px; + padding: 0 8px; + font-size: 13px; +} +.portal-shell__brand strong { + font-size: 17px; +} +.portal-shell__brand small { + font-size: 9px; +} +.portal-shell__role { + font-size: 13px; +} +.portal-shell__sidebar nav section > strong { + padding-top: 18px; + font-size: 11px; +} +.portal-shell__sidebar nav a { + min-height: 43px; + font-size: 14px; +} +.portal-shell__sidebar nav a > span { + font-size: 12px; +} +.portal-shell__scope span, +.portal-shell__scope small { + font-size: 11px; +} +.portal-shell__scope strong { + font-size: 13px; +} +.portal-page-heading { + align-items: center; + margin-bottom: 24px; + padding-left: 17px; + border-left: 4px solid var(--app-red); +} +.portal-page-heading p { + margin-bottom: 5px; + font-size: 11px; +} +.portal-page-heading h1 { + font-size: clamp(28px, 2.3vw, 34px); + line-height: 1.25; +} +.portal-page-heading span { + margin-top: 7px; + font-size: 13px; +} .portal-shell__content .record-metrics article span, .portal-shell__content .dashboard-row small, .portal-shell__content .notice-list-vue small, @@ -476,7 +2815,10 @@ button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible .portal-shell__content .reporting-workbench small, .portal-shell__content .scan-preview dt, .portal-shell__content .issued-credential dt, -.portal-shell__content .workflow-track-vue small { font-size: 12px; line-height: 1.5; } +.portal-shell__content .workflow-track-vue small { + font-size: 12px; + line-height: 1.5; +} .portal-shell__content .exam-apply-card > header > span, .portal-shell__content .registration-vue-card header span, .portal-shell__content .admit-card-vue header span, @@ -484,41 +2826,113 @@ button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible .portal-shell__content .result-exam-picker span, .portal-shell__content .admission-export-bar > div > span, .portal-shell__content .issued-credential > div > span, -.portal-shell__content .scope-banner-vue > span { font-size: 11px; } +.portal-shell__content .scope-banner-vue > span { + font-size: 11px; +} .portal-shell__content .exam-apply-card dt, .portal-shell__content .registration-vue-card dt, -.portal-shell__content .admit-card-vue dt { font-size: 12px; } +.portal-shell__content .admit-card-vue dt { + font-size: 12px; +} .portal-shell__content .exam-apply-card dd, .portal-shell__content .registration-vue-card dd, -.portal-shell__content .admit-card-vue dd { font-size: 14px; } -.portal-shell__content .chip-list > span { font-size: 12px; } -.portal-shell__content .chip-list small { font-size: 11px; } -.portal-shell__content .result-card-grid form button { font-size: 12px; } +.portal-shell__content .admit-card-vue dd { + font-size: 14px; +} +.portal-shell__content .chip-list > span { + font-size: 12px; +} +.portal-shell__content .chip-list small { + font-size: 11px; +} +.portal-shell__content .result-card-grid form button { + font-size: 12px; +} -.app-button { border-radius: 4px; font-size: 13px; } -.business-form, .record-panel { border-color: #d4dee7; border-radius: 4px; box-shadow: 0 5px 18px rgba(13, 45, 84, .045); } -.business-form { padding: 24px; } -.auth-card h2, .business-form h2 { font-size: 28px; line-height: 1.35; } -.auth-card > span, .business-form > span { font-size: 13px; } -.auth-card label, .business-form label { color: #425469; font-size: 13px; font-weight: 650; } -.auth-card input, .auth-card select, .business-form input:not([type='checkbox']):not([type='radio']), .business-form select, .business-form textarea, .preference-row select { +.app-button { + border-radius: 4px; + font-size: 13px; +} +.business-form, +.record-panel { + border-color: #d4dee7; + border-radius: 4px; + box-shadow: 0 5px 18px rgba(13, 45, 84, 0.045); +} +.business-form { + padding: 24px; +} +.auth-card h2, +.business-form h2 { + font-size: 28px; + line-height: 1.35; +} +.auth-card > span, +.business-form > span { + font-size: 13px; +} +.auth-card label, +.business-form label { + color: #425469; + font-size: 13px; + font-weight: 650; +} +.auth-card input, +.auth-card select, +.business-form input:not([type="checkbox"]):not([type="radio"]), +.business-form select, +.business-form textarea, +.preference-row select { border-radius: 3px; font-size: 14px; - transition: border-color .16s ease, box-shadow .16s ease; + transition: + border-color 0.16s ease, + box-shadow 0.16s ease; } -.auth-card input:focus, .auth-card select:focus, .business-form input:focus, .business-form select:focus, .business-form textarea:focus { +.auth-card input:focus, +.auth-card select:focus, +.business-form input:focus, +.business-form select:focus, +.business-form textarea:focus { border-color: #4b7da7; - box-shadow: 0 0 0 3px rgba(23, 85, 143, .10); + box-shadow: 0 0 0 3px rgba(23, 85, 143, 0.1); } -.admin-create-strip { padding: 24px 26px; } -.admin-create-strip > header { margin-bottom: 18px; } -.admin-create-strip > header p { color: var(--app-blue); font-size: 11px; font-weight: 800; letter-spacing: .16em; } -.admin-create-strip .form-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 15px 18px; } -.admin-create-strip .form-grid label { margin: 0; } -.admin-create-strip > .app-button { margin-top: 18px; } -.check-row { align-items: center; gap: 12px 24px; margin-top: 18px; } -.check-row label { align-items: center; gap: 9px; margin: 0; font-size: 13px; cursor: pointer; } -.business-form input[type='checkbox'], .business-form input[type='radio'] { +.admin-create-strip { + padding: 24px 26px; +} +.admin-create-strip > header { + margin-bottom: 18px; +} +.admin-create-strip > header p { + color: var(--app-blue); + font-size: 11px; + font-weight: 800; + letter-spacing: 0.16em; +} +.admin-create-strip .form-grid { + grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); + gap: 15px 18px; +} +.admin-create-strip .form-grid label { + margin: 0; +} +.admin-create-strip > .app-button { + margin-top: 18px; +} +.check-row { + align-items: center; + gap: 12px 24px; + margin-top: 18px; +} +.check-row label { + align-items: center; + gap: 9px; + margin: 0; + font-size: 13px; + cursor: pointer; +} +.business-form input[type="checkbox"], +.business-form input[type="radio"] { width: 18px; height: 18px; min-height: 18px; @@ -528,12 +2942,24 @@ button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible accent-color: var(--app-blue); } -.record-panel > header { min-height: 70px; padding: 14px 20px; } -.record-panel > header h2 { font-size: 19px; line-height: 1.4; } -.record-panel > header p { font-size: 12px; line-height: 1.5; } -.record-panel > header input, .record-panel > header select, -.ledger-toolbar input, .ledger-toolbar select, -.archive-console-vue select, .row-decision input { +.record-panel > header { + min-height: 70px; + padding: 14px 20px; +} +.record-panel > header h2 { + font-size: 19px; + line-height: 1.4; +} +.record-panel > header p { + font-size: 12px; + line-height: 1.5; +} +.record-panel > header input, +.record-panel > header select, +.ledger-toolbar input, +.ledger-toolbar select, +.archive-console-vue select, +.row-decision input { min-height: 40px; padding: 8px 11px; border: 1px solid #c7d3de; @@ -542,130 +2968,607 @@ button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible color: var(--app-ink); font-size: 13px; } -.record-panel > header input { width: min(330px, 42vw); } -.record-panel > header input::placeholder, .row-decision input::placeholder { color: #8795a4; } -.status-badge { padding: 4px 9px; font-size: 12px; font-weight: 700; } +.record-panel > header input { + width: min(330px, 42vw); +} +.record-panel > header input::placeholder, +.row-decision input::placeholder { + color: #8795a4; +} +.status-badge { + padding: 4px 9px; + font-size: 12px; + font-weight: 700; +} -.table-scroll { width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: #aebdca #eef2f5; } -.table-scroll table { width: 100%; min-width: 760px; border-spacing: 0; border-collapse: separate; color: #26384b; font-size: 14px; } -.table-scroll th, .table-scroll td { padding: 12px 14px; border-bottom: 1px solid #e1e7ed; text-align: left; vertical-align: middle; } -.table-scroll th { position: relative; background: #edf3f7; color: #324a61; font-size: 13px; font-weight: 750; white-space: nowrap; } -.table-scroll tbody tr:nth-child(even) td { background: #fbfcfd; } -.table-scroll tbody tr:hover td { background: #f2f7fb; } -.table-scroll tbody tr:last-child td { border-bottom: 0; } -.table-scroll td > strong { display: block; color: #152f4d; font-weight: 750; } -.table-scroll td > small { display: block; margin-top: 3px; color: #66778a; font-size: 12px; line-height: 1.45; } -.table-scroll td:last-child { white-space: nowrap; } -.table-empty { height: 120px; color: var(--app-muted); text-align: center !important; } -.table-action { min-height: 32px; margin: 2px; padding: 0 10px; border-radius: 3px; font-size: 12px; font-weight: 650; cursor: pointer; } -.table-action:hover:not(:disabled) { border-color: var(--app-blue); background: #eef5fb; color: var(--app-blue); } -.row-decision { min-width: 370px; flex-wrap: nowrap; gap: 6px; } -.row-decision input { min-width: 145px; } -.row-decision button { min-height: 34px; padding: 0 10px; border-radius: 3px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; } -.row-decision button:first-of-type { background: #fff; color: var(--app-red); box-shadow: inset 0 0 0 1px #d5a6aa; } -.excel-action-bar { gap: 9px; padding: 12px 14px; border-radius: 4px; } -.excel-action-bar a, .excel-action-bar label { min-height: 36px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 3px; font-size: 12px; font-weight: 650; } +.table-scroll { + width: 100%; + min-width: 0; + overflow-x: auto; + overscroll-behavior-inline: contain; + scrollbar-color: #aebdca #eef2f5; +} +.table-scroll table { + width: 100%; + min-width: 760px; + border-spacing: 0; + border-collapse: separate; + color: #26384b; + font-size: 14px; +} +.table-scroll th, +.table-scroll td { + padding: 12px 14px; + border-bottom: 1px solid #e1e7ed; + text-align: left; + vertical-align: middle; +} +.table-scroll th { + position: relative; + background: #edf3f7; + color: #324a61; + font-size: 13px; + font-weight: 750; + white-space: nowrap; +} +.table-scroll tbody tr:nth-child(even) td { + background: #fbfcfd; +} +.table-scroll tbody tr:hover td { + background: #f2f7fb; +} +.table-scroll tbody tr:last-child td { + border-bottom: 0; +} +.table-scroll td > strong { + display: block; + color: #152f4d; + font-weight: 750; +} +.table-scroll td > small { + display: block; + margin-top: 3px; + color: #66778a; + font-size: 12px; + line-height: 1.45; +} +.table-scroll td:last-child { + white-space: nowrap; +} +.table-empty { + height: 120px; + color: var(--app-muted); + text-align: center !important; +} +.table-action { + min-height: 32px; + margin: 2px; + padding: 0 10px; + border-radius: 3px; + font-size: 12px; + font-weight: 650; + cursor: pointer; +} +.table-action:hover:not(:disabled) { + border-color: var(--app-blue); + background: #eef5fb; + color: var(--app-blue); +} +.row-decision { + min-width: 370px; + flex-wrap: nowrap; + gap: 6px; +} +.row-decision input { + min-width: 145px; +} +.row-decision button { + min-height: 34px; + padding: 0 10px; + border-radius: 3px; + font-size: 12px; + font-weight: 700; + cursor: pointer; + white-space: nowrap; +} +.row-decision button:first-of-type { + background: #fff; + color: var(--app-red); + box-shadow: inset 0 0 0 1px #d5a6aa; +} +.excel-action-bar { + gap: 9px; + padding: 12px 14px; + border-radius: 4px; +} +.excel-action-bar--descriptive { + display: flex; + align-items: center; + justify-content: space-between; + gap: 18px; + padding: 14px 18px; + border-left: 4px solid var(--app-blue); + background: #fff; +} +.excel-action-bar--descriptive > span { + display: flex; + min-width: 180px; + flex-direction: column; + gap: 2px; +} +.excel-action-bar--descriptive > span strong { + color: var(--app-navy); + font-size: 14px; +} +.excel-action-bar--descriptive > span small { + color: var(--app-muted); + font-size: 11px; +} +.excel-action-bar--descriptive > div { + display: flex; + flex-wrap: wrap; + justify-content: flex-end; + gap: 8px; +} +.excel-action-bar a, +.excel-action-bar label { + min-height: 36px; + display: inline-flex; + align-items: center; + padding: 0 13px; + border-radius: 3px; + font-size: 12px; + font-weight: 650; +} -.candidate-ledger__toolbar { grid-template-columns: minmax(230px, 1.3fr) minmax(180px, .9fr) minmax(150px, .7fr) 120px; gap: 12px; padding: 14px 20px; } -.candidate-ledger__toolbar label { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: #526477; font-size: 12px; font-weight: 650; } -.candidate-ledger__toolbar input, .candidate-ledger__toolbar select { width: 100%; } -.candidate-ledger table { min-width: 1040px; } -.candidate-ledger th:last-child { min-width: 390px; } -.ledger-pagination { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 20px; border-top: 1px solid var(--app-line); background: #f8fafc; color: var(--app-muted); font-size: 13px; } -.ledger-pagination > div { display: flex; gap: 8px; } -.ledger-pagination button { min-height: 34px; padding: 0 13px; border: 1px solid #b9c8d5; border-radius: 3px; background: #fff; color: var(--app-navy); font-size: 12px; font-weight: 650; cursor: pointer; } -.ledger-pagination button:disabled { opacity: .45; cursor: not-allowed; } +.candidate-ledger__toolbar { + grid-template-columns: minmax(230px, 1.3fr) minmax(180px, 0.9fr) minmax( + 150px, + 0.7fr + ) 120px; + gap: 12px; + padding: 14px 20px; +} +.candidate-ledger__toolbar label { + display: flex; + min-width: 0; + flex-direction: column; + gap: 6px; + color: #526477; + font-size: 12px; + font-weight: 650; +} +.candidate-ledger__toolbar input, +.candidate-ledger__toolbar select { + width: 100%; +} +.candidate-ledger table { + min-width: 1040px; +} +.candidate-ledger th:last-child { + min-width: 390px; +} +.ledger-pagination { + min-height: 58px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 18px; + padding: 10px 20px; + border-top: 1px solid var(--app-line); + background: #f8fafc; + color: var(--app-muted); + font-size: 13px; +} +.ledger-pagination > div { + display: flex; + align-items: center; + flex-wrap: wrap; + gap: 8px; +} +.ledger-pagination button { + min-height: 34px; + padding: 0 13px; + border: 1px solid #b9c8d5; + border-radius: 3px; + background: #fff; + color: var(--app-navy); + font-size: 12px; + font-weight: 650; + cursor: pointer; +} +.ledger-pagination button.active { + border-color: var(--app-blue); + background: var(--app-blue); + color: #fff; +} +.ledger-pagination button:disabled { + opacity: 0.45; + cursor: not-allowed; +} +.ledger-pagination label { + display: inline-flex; + align-items: center; + gap: 6px; + margin-left: 4px; +} +.ledger-pagination select { + min-height: 34px; + border: 1px solid #b9c8d5; + border-radius: 3px; + background: #fff; + color: var(--app-navy); +} -.auth-view { overflow: hidden; } -.auth-view__identity { position: relative; isolation: isolate; } -.auth-view__identity::after { content: ''; position: absolute; z-index: -1; right: -110px; bottom: -150px; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 48px rgba(255,255,255,.025), 0 0 0 96px rgba(255,255,255,.018); } -.auth-view__identity > div p { font-size: 11px; } -.auth-view__identity h1 { max-width: 500px; font-size: clamp(36px, 3vw, 44px); } -.auth-view__identity h1 > span { display: block; white-space: nowrap; } -.auth-view__identity > div > span, .auth-view__identity > small { font-size: 13px; } -.auth-view__panel { position: relative; background: linear-gradient(135deg, #fff 0%, #f9fbfd 100%); } -.auth-view__back { position: absolute; top: 34px; left: 6vw; font-size: 13px; } -.auth-card { padding: 30px 32px 32px; border-top: 4px solid var(--app-navy); background: #fff; box-shadow: 0 18px 55px rgba(13,45,84,.12); } -.auth-card > p { font-size: 11px; } -.auth-card__switch { margin: 18px 0 0 !important; font-size: 13px; } +.auth-view { + overflow: hidden; +} +.auth-view__identity { + position: relative; + isolation: isolate; +} +.auth-view__identity::after { + content: ""; + position: absolute; + z-index: -1; + right: -110px; + bottom: -150px; + width: 360px; + height: 360px; + border: 1px solid rgba(255, 255, 255, 0.09); + border-radius: 50%; + box-shadow: + 0 0 0 48px rgba(255, 255, 255, 0.025), + 0 0 0 96px rgba(255, 255, 255, 0.018); +} +.auth-view__identity > div p { + font-size: 11px; +} +.auth-view__identity h1 { + max-width: 500px; + font-size: clamp(36px, 3vw, 44px); +} +.auth-view__identity h1 > span { + display: block; + white-space: nowrap; +} +.auth-view__identity > div > span, +.auth-view__identity > small { + font-size: 13px; +} +.auth-view__panel { + position: relative; + background: linear-gradient(135deg, #fff 0%, #f9fbfd 100%); +} +.auth-view__back { + position: absolute; + top: 34px; + left: 6vw; + font-size: 13px; +} +.auth-card { + padding: 30px 32px 32px; + border-top: 4px solid var(--app-navy); + background: #fff; + box-shadow: 0 18px 55px rgba(13, 45, 84, 0.12); +} +.auth-card > p { + font-size: 11px; +} +.auth-card__switch { + margin: 18px 0 0 !important; + font-size: 13px; +} @media (min-width: 761px) { - html.auth-login-active, html.auth-login-active body, html.auth-login-active #app { height: 100%; overflow: hidden; } - .auth-view--login { height: 100dvh; min-height: 0; } - .auth-view--login .auth-view__identity, .auth-view--login .auth-view__panel { height: 100%; min-height: 0; } - .auth-view--login .auth-view__panel { padding-block: 32px; } + html.auth-login-active, + html.auth-login-active body, + html.auth-login-active #app { + height: 100%; + overflow: hidden; + } + .auth-view--login { + height: 100dvh; + min-height: 0; + } + .auth-view--login .auth-view__identity, + .auth-view--login .auth-view__panel { + height: 100%; + min-height: 0; + } + .auth-view--login .auth-view__panel { + padding-block: 32px; + } } @media (max-width: 960px) { - .public-frame__header > .app-container { grid-template-columns: 1fr auto; } - .public-frame__menu { display: block; } - .public-frame__header nav { position: absolute; top: 76px; right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; padding: 12px 20px; border-bottom: 1px solid var(--app-line); background: #fff; } - .public-frame__header nav.is-open { display: flex; } - .public-directory { grid-template-columns: 190px 1fr; gap: 25px; } - .auth-view { grid-template-columns: 330px 1fr; } - .auth-view__identity { padding-inline: 36px; } - .portal-shell__sidebar { width: 220px; } - .portal-shell__main { margin-left: 220px; } - .candidate-dashboard-grid, .security-stack, .admission-dashboard-grid, .notice-template-studio { grid-template-columns: 1fr; } - .ledger-toolbar { grid-template-columns: 1fr; } - .candidate-ledger__toolbar { grid-template-columns: 1fr 1fr; } + .public-frame__header > .app-container { + grid-template-columns: 1fr auto; + } + .public-frame__menu { + display: block; + } + .public-frame__header nav { + position: absolute; + top: 76px; + right: 0; + left: 0; + display: none; + align-items: stretch; + flex-direction: column; + padding: 12px 20px; + border-bottom: 1px solid var(--app-line); + background: #fff; + } + .public-frame__header nav.is-open { + display: flex; + } + .public-directory { + grid-template-columns: 190px 1fr; + gap: 25px; + } + .auth-view { + grid-template-columns: 330px 1fr; + } + .auth-view__identity { + padding-inline: 36px; + } + .portal-shell__sidebar { + width: 220px; + } + .portal-shell__main { + margin-left: 220px; + } + .candidate-dashboard-grid, + .security-stack, + .admission-dashboard-grid, + .notice-template-studio { + grid-template-columns: 1fr; + } + .ledger-toolbar { + grid-template-columns: 1fr; + } + .candidate-ledger__toolbar { + grid-template-columns: 1fr 1fr; + } + .notice-editor-studio__body { + grid-template-columns: 1fr; + } + .notice-editor-studio__settings { + border-top: 1px solid var(--app-line); + border-left: 0; + } } @media (max-width: 760px) { - .app-container { width: calc(100% - 28px); } - .app-brand small { display: none; } - .public-frame__utility .app-container span:last-child { display: none; } - .public-frame__footer .app-container { align-items: flex-start; flex-direction: column; justify-content: center; } - .public-directory { display: block; } - .public-directory__filters { margin-bottom: 24px; } - .directory-list > button { grid-template-columns: 54px 1fr auto; gap: 12px; } - .public-document > header { padding-inline: 22px; } - .public-document > header h1 { font-size: 25px; } - .public-document > section { padding-inline: 18px; } - .verification-form { grid-template-columns: 1fr; } - .auth-view { grid-template-columns: 1fr; } - .auth-view__identity { min-height: auto; padding: 28px; } - .auth-view__identity > div { margin: 65px 0; } - .auth-view__identity h1 { font-size: 38px; } - .auth-view__panel { min-height: 650px; padding: 30px 22px; } - .portal-shell__sidebar { width: min(285px, 86vw); transform: translateX(-105%); transition: transform .18s ease; } - .portal-shell__sidebar.is-open { transform: translateX(0); } - .portal-shell__close { position: absolute; top: 18px; right: 14px; display: block; border: 0; background: transparent; color: #fff; font-size: 23px; } - .portal-shell__scrim { position: fixed; z-index: 45; inset: 0; background: rgba(4,20,39,.45); } - .portal-shell__main { margin-left: 0; } - .portal-shell__topbar { grid-template-columns: auto 1fr auto; gap: 12px; padding: 0 14px; } - .portal-shell__topbar > button { display: block; border: 0; background: transparent; color: var(--app-navy); font-size: 19px; } - .portal-shell__topbar > div:first-of-type span, .portal-shell__topbar > div:first-of-type b { display: none; } - .portal-shell__user > span { display: none; } - .portal-shell__content { padding: 20px 14px; } - .portal-page-heading { padding-left: 13px; } - .record-panel > header { align-items: flex-start; flex-direction: column; } - .record-panel > header input { width: 100%; } - .candidate-ledger__toolbar { grid-template-columns: 1fr; } - .ledger-pagination { align-items: stretch; flex-direction: column; } - .ledger-pagination > div, .ledger-pagination button { flex: 1; } - .form-grid, .preference-row { grid-template-columns: 1fr; } - .totp-setup-grid { grid-template-columns: 1fr; } - .totp-setup-grid img { max-width: 220px; } - .preference-row > b { min-height: 30px; } - .candidate-onboarding { grid-template-columns: 1fr; } - .candidate-onboarding > aside { padding: 26px; } - .candidate-onboarding > aside > p { margin-top: 55px; } - .candidate-onboarding > section { padding: 24px 14px; } - .allocation-row, .reporting-tools, .reporting-decision { grid-template-columns: 1fr; } - .admission-export-bar { align-items: stretch; flex-direction: column; } - .scan-preview dl { grid-template-columns: 1fr 1fr; } - .notice-template-preview > div { min-height: 600px; padding: 42px 30px; } - .issued-credential, .archive-console-vue { grid-template-columns: 1fr; align-items: stretch; } - .issued-credential dl { flex-direction: column; gap: 8px; } - .plan-admin-row, .number-rule-layout-vue { grid-template-columns: 1fr; } - .workflow-grid-vue, .workflow-design-grid-vue { grid-template-columns: 1fr; } - .workflow-step-row-vue { grid-template-columns: 30px 1fr; } + .app-container { + width: calc(100% - 28px); + } + .app-brand small { + display: none; + } + .public-frame__utility .app-container span:last-child { + display: none; + } + .public-frame__footer .app-container { + align-items: flex-start; + flex-direction: column; + justify-content: center; + } + .public-directory { + display: block; + } + .public-directory__filters { + margin-bottom: 24px; + } + .directory-list > button { + grid-template-columns: 54px 1fr auto; + gap: 12px; + } + .public-document > header { + padding-inline: 22px; + } + .public-document > header h1 { + font-size: 25px; + } + .public-document > section { + padding-inline: 18px; + } + .verification-form { + grid-template-columns: 1fr; + } + .auth-view { + grid-template-columns: 1fr; + } + .auth-view__identity { + min-height: auto; + padding: 28px; + } + .auth-view__identity > div { + margin: 65px 0; + } + .auth-view__identity h1 { + font-size: 38px; + } + .auth-view__panel { + min-height: 650px; + padding: 30px 22px; + } + .portal-shell__sidebar { + width: min(285px, 86vw); + transform: translateX(-105%); + transition: transform 0.18s ease; + } + .portal-shell__sidebar.is-open { + transform: translateX(0); + } + .portal-shell__close { + position: absolute; + top: 18px; + right: 14px; + display: block; + border: 0; + background: transparent; + color: #fff; + font-size: 23px; + } + .portal-shell__scrim { + position: fixed; + z-index: 45; + inset: 0; + background: rgba(4, 20, 39, 0.45); + } + .portal-shell__main { + margin-left: 0; + } + .portal-shell__topbar { + grid-template-columns: auto 1fr auto; + gap: 12px; + padding: 0 14px; + } + .portal-shell__topbar > button { + display: block; + border: 0; + background: transparent; + color: var(--app-navy); + font-size: 19px; + } + .portal-shell__topbar > div:first-of-type span, + .portal-shell__topbar > div:first-of-type b { + display: none; + } + .portal-shell__user > span { + display: none; + } + .portal-shell__content { + padding: 20px 14px; + } + .portal-page-heading { + padding-left: 13px; + } + .record-panel > header { + align-items: flex-start; + flex-direction: column; + } + .record-panel > header input { + width: 100%; + } + .candidate-ledger__toolbar { + grid-template-columns: 1fr; + } + .ledger-pagination { + align-items: stretch; + flex-direction: column; + } + .ledger-pagination > div, + .ledger-pagination button { + flex: 1; + } + .form-grid, + .preference-row { + grid-template-columns: 1fr; + } + .totp-setup-grid { + grid-template-columns: 1fr; + } + .totp-setup-grid img { + max-width: 220px; + } + .preference-row > b { + min-height: 30px; + } + .candidate-onboarding { + grid-template-columns: 1fr; + } + .candidate-onboarding > aside { + padding: 26px; + } + .candidate-onboarding > aside > p { + margin-top: 55px; + } + .candidate-onboarding > section { + padding: 24px 14px; + } + .allocation-row, + .reporting-tools, + .reporting-decision { + grid-template-columns: 1fr; + } + .admission-export-bar { + align-items: stretch; + flex-direction: column; + } + .scan-preview dl { + grid-template-columns: 1fr 1fr; + } + .notice-template-preview > div { + min-height: 600px; + padding: 42px 30px; + } + .issued-credential, + .archive-console-vue { + grid-template-columns: 1fr; + align-items: stretch; + } + .issued-credential dl { + flex-direction: column; + gap: 8px; + } + .plan-admin-row, + .number-rule-layout-vue { + grid-template-columns: 1fr; + } + .workflow-grid-vue, + .workflow-design-grid-vue { + grid-template-columns: 1fr; + } + .workflow-step-row-vue { + grid-template-columns: 30px 1fr; + } + .notice-editor-studio__header { + align-items: stretch !important; + flex-direction: column; + } + .notice-editor-studio__identity { + min-width: 0; + } + .notice-editor-studio__manuscript { + padding: 20px 16px; + } + .notice-editor-studio__settings { + padding: 20px 16px; + } + .notice-editor-studio__actions { + align-items: stretch; + flex-direction: column; + padding: 14px 16px; + } + .notice-rich-editor .ck.ck-editor__main > .ck-editor__editable { + min-height: 300px; + padding: 18px; + } } -.center-edit-picker .chip-list button { border: 1px solid var(--app-line); border-radius: 999px; padding: 8px 13px; background: #fff; color: var(--app-navy); cursor: pointer; } -.center-edit-picker .chip-list button.active { border-color: var(--app-blue); background: #e9f2fb; color: var(--app-blue); } +.center-edit-picker .chip-list button { + border: 1px solid var(--app-line); + border-radius: 999px; + padding: 8px 13px; + background: #fff; + color: var(--app-navy); + cursor: pointer; +} +.center-edit-picker .chip-list button.active { + border-color: var(--app-blue); + background: #e9f2fb; + color: var(--app-blue); +} @media (prefers-reduced-motion: reduce) { - *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } + *, + *::before, + *::after { + scroll-behavior: auto !important; + animation-duration: 0.01ms !important; + transition-duration: 0.01ms !important; + } } diff --git a/src/Eis.Web/ClientApp/src/views/admin/AdminAdmissionWorkspace.vue b/src/Eis.Web/ClientApp/src/views/admin/AdminAdmissionWorkspace.vue index 83a456a..e68b0d9 100644 --- a/src/Eis.Web/ClientApp/src/views/admin/AdminAdmissionWorkspace.vue +++ b/src/Eis.Web/ClientApp/src/views/admin/AdminAdmissionWorkspace.vue @@ -1,76 +1,1413 @@ diff --git a/src/Eis.Web/ClientApp/src/views/admin/AdminCoreWorkspace.vue b/src/Eis.Web/ClientApp/src/views/admin/AdminCoreWorkspace.vue index a884958..a5c45c9 100644 --- a/src/Eis.Web/ClientApp/src/views/admin/AdminCoreWorkspace.vue +++ b/src/Eis.Web/ClientApp/src/views/admin/AdminCoreWorkspace.vue @@ -1,119 +1,1772 @@ diff --git a/src/Eis.Web/ClientApp/src/views/admin/AdminExamWorkspace.vue b/src/Eis.Web/ClientApp/src/views/admin/AdminExamWorkspace.vue index 5e8dfd8..3068f86 100644 --- a/src/Eis.Web/ClientApp/src/views/admin/AdminExamWorkspace.vue +++ b/src/Eis.Web/ClientApp/src/views/admin/AdminExamWorkspace.vue @@ -1,20 +1,30 @@ diff --git a/src/Eis.Web/ClientApp/src/views/admin/AdminSystemWorkspace.vue b/src/Eis.Web/ClientApp/src/views/admin/AdminSystemWorkspace.vue index 8a6be27..6891585 100644 --- a/src/Eis.Web/ClientApp/src/views/admin/AdminSystemWorkspace.vue +++ b/src/Eis.Web/ClientApp/src/views/admin/AdminSystemWorkspace.vue @@ -1,70 +1,1427 @@ diff --git a/src/Eis.Web/wwwroot/vue-app/app.css b/src/Eis.Web/wwwroot/vue-app/app.css index e5d57c4..4b23da2 100644 --- a/src/Eis.Web/wwwroot/vue-app/app.css +++ b/src/Eis.Web/wwwroot/vue-app/app.css @@ -1,2 +1,2 @@ -:root{--hz-navy-950:#071c35;--hz-navy-900:#0d2d54;--hz-navy-800:#113b6c;--hz-blue-700:#17558f;--hz-blue-100:#e8f0f8;--hz-red-700:#9f3038;--hz-red-100:#f8e9e9;--hz-ink:#182536;--hz-muted:#5d6c7d;--hz-line:#d5dee8;--hz-paper:#f4f7fa;--hz-white:#fff;--hz-title:"Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;--hz-body:"Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;color:var(--hz-ink);font-family:var(--hz-body);font-synthesis:none}html{scroll-behavior:smooth}body{background:var(--hz-white);min-width:320px;color:var(--hz-ink);margin:0}.hz-site,.hz-site *{box-sizing:border-box}.hz-site{background:var(--hz-white);min-height:100vh;color:var(--hz-ink);font-family:var(--hz-body);line-height:1.6}.hz-site button,.hz-failure button{font:inherit;border:0;margin:0}.hz-site button{cursor:pointer}.hz-site button:focus-visible,.hz-site a:focus-visible,.hz-failure button:focus-visible{outline-offset:3px;outline:3px solid #e2a918}.hz-container{width:min(1180px,100% - 48px);margin-inline:auto}.hz-skip{z-index:100;background:var(--hz-white);color:var(--hz-navy-900);border-radius:3px;padding:10px 16px;font-weight:700;transition:transform .16s;position:fixed;top:10px;left:10px;transform:translateY(-160%)}.hz-skip:focus{transform:translateY(0)}.hz-service-bar{background:var(--hz-navy-950);color:#dbe7f4;letter-spacing:.04em;min-height:38px;font-size:12px}.hz-service-bar__inner{justify-content:space-between;align-items:center;gap:24px;min-height:38px;display:flex}.hz-service-bar p,.hz-service-bar div{align-items:center;gap:18px;margin:0;display:flex}.hz-service-bar p span{background:#5ba8e5;border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 4px #5ba8e524}.hz-service-bar button{color:#fff;background:0 0;border-left:1px solid #fff3;padding:0 0 0 18px;font-size:12px}.hz-header{z-index:30;border-bottom:1px solid var(--hz-line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#fffffff7;position:sticky;top:0;box-shadow:0 6px 22px #09223e0f}.hz-header__inner{grid-template-columns:auto 1fr auto;align-items:center;gap:34px;min-height:78px;display:grid}.hz-brand{color:var(--hz-navy-900);text-align:left;background:0 0;align-items:center;gap:13px;padding:0;display:inline-flex}.hz-brand__seal{border:2px solid var(--hz-red-700);background:var(--hz-red-700);color:#fff;width:44px;height:44px;font-family:var(--hz-title);flex:0 0 44px;place-items:center;font-size:24px;font-weight:800;line-height:1;display:grid;box-shadow:inset 0 0 0 3px #ffffff3d}.hz-brand__copy{flex-direction:column;line-height:1.1;display:flex}.hz-brand__copy strong{font-family:var(--hz-title);letter-spacing:.08em;font-size:20px}.hz-brand__copy small{color:#63758b;letter-spacing:.12em;margin-top:7px;font-size:8px;font-weight:700}.hz-nav{justify-content:center;align-self:stretch;align-items:stretch;gap:2px;display:flex}.hz-nav button{color:#34465c;background:0 0;padding:0 17px;font-size:14px;font-weight:650;position:relative}.hz-nav button:after{content:"";background:var(--hz-red-700);height:3px;transition:transform .18s;position:absolute;bottom:-1px;left:17px;right:17px;transform:scaleX(0)}.hz-nav button:hover,.hz-nav button.is-current{color:var(--hz-navy-900)}.hz-nav button:hover:after,.hz-nav button.is-current:after{transform:scaleX(1)}.hz-header__actions{align-items:center;gap:8px;display:flex}.hz-account-link{background:var(--hz-navy-800);color:#fff;border-radius:2px;min-height:40px;padding:0 16px;border:1px solid var(--hz-navy-800)!important;font-size:13px!important;font-weight:700!important}.hz-account-link:hover{background:var(--hz-navy-950)}.hz-exit-link{color:var(--hz-muted);background:0 0;padding:9px 4px;font-size:13px!important}.hz-menu{background:0 0;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:42px;height:42px;display:none}.hz-menu span{background:var(--hz-navy-900);width:22px;height:2px}.hz-hero{border-bottom:1px solid var(--hz-line);background:linear-gradient(90deg,#113b6c0b 1px,#0000 1px) 0 0/62px 62px,linear-gradient(#113b6c0b 1px,#0000 1px) 0 0/62px 62px,linear-gradient(118deg,#f8fafc 0%,#f3f7fb 63%,#edf3f8 100%);position:relative;overflow:hidden}.hz-hero:before{content:"准";color:#0d2d5409;font-family:var(--hz-title);pointer-events:none;font-size:530px;font-weight:900;line-height:1;position:absolute;bottom:-160px;right:max(-30px,50vw - 670px)}.hz-latest{z-index:1;width:100%;min-height:46px;color:var(--hz-ink);text-align:left;background:#ffffffc7;grid-template-columns:auto 1fr auto auto;align-items:center;gap:18px;margin-top:22px;padding:0 18px 0 0;display:grid;position:relative;border:1px solid #cfd9e5!important;border-left:0!important}.hz-latest>span{background:var(--hz-red-700);color:#fff;letter-spacing:.08em;align-self:stretch;place-items:center;padding:0 16px;font-size:12px;font-weight:700;display:grid}.hz-latest strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.hz-latest time{color:var(--hz-muted);font-size:12px}.hz-latest i{color:var(--hz-red-700);font-style:normal}.hz-hero__grid{z-index:1;grid-template-columns:minmax(0,1.18fr) minmax(380px,.82fr);align-items:center;gap:74px;padding:74px 0 82px;display:grid;position:relative}.hz-kicker,.hz-section-heading p,.hz-guide__intro>p{color:var(--hz-blue-700);letter-spacing:.2em;text-transform:uppercase;margin:0 0 15px;font-size:11px;font-weight:800}.hz-kicker:before{content:"";vertical-align:middle;background:var(--hz-red-700);width:28px;height:2px;margin-right:12px;display:inline-block}.hz-hero__content h1{max-width:700px;color:var(--hz-navy-950);font-family:var(--hz-title);letter-spacing:-.035em;margin:0;font-size:clamp(42px,4.6vw,67px);font-weight:800;line-height:1.25}.hz-hero__content h1 em{color:var(--hz-navy-800);font-style:normal;display:block}.hz-hero__lead{color:#52657a;max-width:680px;margin:26px 0 0;font-size:17px;line-height:1.9}.hz-hero__actions{gap:12px;margin-top:34px;display:flex}.hz-button{border-radius:2px;justify-content:center;align-items:center;gap:26px;min-height:50px;padding:0 22px;transition:transform .16s,box-shadow .16s,background .16s;display:inline-flex;font-size:14px!important;font-weight:750!important}.hz-button:hover{transform:translateY(-2px)}.hz-button--primary{background:var(--hz-navy-800);color:#fff;box-shadow:0 12px 25px #113b6c2e}.hz-button--primary:hover{background:var(--hz-navy-950);box-shadow:0 15px 30px #113b6c40}.hz-button--secondary{color:var(--hz-navy-900);background:#ffffff80;border:1px solid #b9c7d6!important}.hz-button--secondary:hover{background:#fff;border-color:var(--hz-navy-800)!important}.hz-trust-list{flex-wrap:wrap;gap:10px 28px;margin:34px 0 0;display:flex}.hz-trust-list div{align-items:center;gap:8px;display:flex}.hz-trust-list dt{color:var(--hz-red-700);font-size:11px;font-weight:800}.hz-trust-list dd{color:#53677c;margin:0;font-size:12px}.hz-exam-docket{background:#fff;border:1px solid #bdcad8;position:relative;box-shadow:0 28px 65px #0e2d4e24}.hz-exam-docket:before,.hz-exam-docket:after{content:"";background:#eff4f8;border:1px solid #bdcad8;width:17px;height:34px;position:absolute;top:50%;transform:translateY(-50%)}.hz-exam-docket:before{border-left:0;border-radius:0 24px 24px 0;left:-1px}.hz-exam-docket:after{border-right:0;border-radius:24px 0 0 24px;right:-1px}.hz-exam-docket>header{background:#f9fbfd;border-bottom:1px dashed #c4cfdb;justify-content:space-between;align-items:center;gap:16px;min-height:59px;padding:0 24px;display:flex}.hz-exam-docket>header div{align-items:center;gap:12px;display:flex}.hz-exam-docket>header span{color:var(--hz-navy-900);font-weight:800}.hz-exam-docket>header small{color:var(--hz-muted);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px}.hz-exam-docket em,.hz-exam-card em{color:var(--hz-muted);align-items:center;gap:6px;font-size:12px;font-style:normal;font-weight:700;display:inline-flex}.hz-exam-docket em:before,.hz-exam-card em:before{content:"";background:#8392a2;border-radius:50%;width:7px;height:7px}.hz-exam-docket em.is-open,.hz-exam-card em.is-open{color:#17673d}.hz-exam-docket em.is-open:before,.hz-exam-card em.is-open:before{background:#259557;box-shadow:0 0 0 4px #e3f4e9}.hz-exam-docket em.is-upcoming,.hz-exam-card em.is-upcoming{color:#8a5714}.hz-exam-docket em.is-upcoming:before,.hz-exam-card em.is-upcoming:before{background:#d99625}.hz-exam-docket__body{padding:29px 30px 31px}.hz-exam-docket__body>p{color:#8290a0;letter-spacing:.18em;margin:0 0 6px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:9px}.hz-exam-docket__body h2{color:var(--hz-navy-950);font-family:var(--hz-title);margin:0 0 26px;font-size:25px;line-height:1.45}.hz-exam-docket__body dl{margin:0}.hz-exam-docket__body dl div{border-top:1px solid #e6ebf0;grid-template-columns:72px 1fr;gap:14px;padding:9px 0;display:grid}.hz-exam-docket__body dt{color:#738296;font-size:12px}.hz-exam-docket__body dd{color:#28384c;margin:0;font-size:12px;font-weight:650}.hz-subjects{flex-wrap:wrap;gap:6px;margin-top:18px;display:flex}.hz-subjects span{color:#506174;background:#f7f9fb;border:1px solid #d4dde6;padding:4px 8px;font-size:11px}.hz-exam-docket>footer{background:var(--hz-navy-900);color:#fff;border-top:1px dashed #c4cfdb;justify-content:space-between;align-items:center;gap:20px;min-height:73px;padding:0 30px;display:flex}.hz-exam-docket>footer p{align-items:baseline;gap:7px;margin:0;display:flex}.hz-exam-docket>footer strong{font-family:var(--hz-title);font-size:25px}.hz-exam-docket>footer span{color:#b8cce0;font-size:11px}.hz-exam-docket>footer button{color:#fff;background:0 0;padding:8px 0 8px 20px;font-size:13px;font-weight:700}.hz-exam-docket--empty{flex-direction:column;justify-content:center;min-height:330px;padding:40px;display:flex}.hz-exam-docket--empty:before,.hz-exam-docket--empty:after{display:none}.hz-exam-docket--empty>span{color:var(--hz-red-700);font-size:12px;font-weight:800}.hz-exam-docket--empty h2{font-family:var(--hz-title);margin:12px 0}.hz-exam-docket--empty p{color:var(--hz-muted)}.hz-entry-section{background:#fff;padding:62px 0 72px}.hz-section-heading{justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px;display:flex}.hz-section-heading p{margin-bottom:7px}.hz-section-heading h2{color:var(--hz-navy-950);font-family:var(--hz-title);letter-spacing:.01em;margin:0;font-size:30px}.hz-section-heading>span{max-width:410px;color:var(--hz-muted);text-align:right;font-size:13px}.hz-section-heading>button{color:var(--hz-blue-700);background:0 0;padding:8px 0;font-size:13px;font-weight:750}.hz-section-heading--compact{margin-bottom:20px}.hz-service-grid{border:1px solid var(--hz-line);grid-template-columns:repeat(4,1fr);display:grid}.hz-service-grid>button{border-right:1px solid var(--hz-line);min-height:190px;color:var(--hz-ink);text-align:left;background:#fff;flex-direction:column;align-items:flex-start;padding:24px 26px 22px;transition:background .18s,transform .18s,box-shadow .18s;display:flex}.hz-service-grid>button:last-child{border-right:0}.hz-service-grid>button:hover{z-index:1;background:var(--hz-navy-900);color:#fff;transform:translateY(-5px);box-shadow:0 16px 35px #0d2d5430}.hz-service-grid__index{color:var(--hz-red-700);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;font-weight:800}.hz-service-grid strong{font-family:var(--hz-title);margin-top:20px;font-size:18px}.hz-service-grid small{color:var(--hz-muted);margin-top:8px;font-size:12px;line-height:1.7}.hz-service-grid i{color:var(--hz-blue-700);margin-top:auto;font-size:12px;font-style:normal;font-weight:750}.hz-service-grid>button:hover small{color:#c3d2e1}.hz-service-grid>button:hover i,.hz-service-grid>button:hover .hz-service-grid__index{color:#fff}.hz-public-records{background:var(--hz-paper);border-block:1px solid var(--hz-line);padding:78px 0}.hz-records-grid{grid-template-columns:minmax(0,1.5fr) minmax(290px,.5fr);gap:52px;display:grid}.hz-featured-notice{border-top:3px solid var(--hz-navy-800);background:#fff;padding:30px 32px;box-shadow:0 14px 30px #0f2a4612}.hz-featured-notice>div{justify-content:space-between;gap:20px;display:flex}.hz-featured-notice>div span{color:var(--hz-red-700);font-size:12px;font-weight:800}.hz-featured-notice time{color:var(--hz-muted);font-size:12px}.hz-featured-notice h3{color:var(--hz-navy-950);font-family:var(--hz-title);margin:18px 0 10px;font-size:24px;line-height:1.5}.hz-featured-notice p{color:var(--hz-muted);margin:0;font-size:13px;line-height:1.8}.hz-featured-notice>button{color:var(--hz-blue-700);background:0 0;gap:16px;margin-top:22px;padding:7px 0;font-size:12px;font-weight:750;display:inline-flex}.hz-notice-list{border-top:1px solid var(--hz-line);margin-top:12px}.hz-notice-list>button{border-bottom:1px solid var(--hz-line);width:100%;min-height:85px;color:var(--hz-ink);text-align:left;background:0 0;grid-template-columns:62px 1fr auto;align-items:center;gap:18px;padding:12px 8px;display:grid}.hz-notice-list>button:hover{background:#fff}.hz-notice-list time{border-right:1px solid var(--hz-line);flex-direction:column;align-items:center;line-height:1.1;display:flex}.hz-notice-list time strong{color:var(--hz-navy-900);font-family:var(--hz-title);font-size:22px}.hz-notice-list time span{color:var(--hz-muted);margin-top:5px;font-size:9px}.hz-notice-list>button>span{flex-direction:column;min-width:0;display:flex}.hz-notice-list em{color:var(--hz-red-700);font-size:10px;font-style:normal}.hz-notice-list>button>span strong{text-overflow:ellipsis;white-space:nowrap;margin-top:4px;font-size:13px;overflow:hidden}.hz-notice-list i{color:var(--hz-blue-700);font-style:normal}.hz-operation-board{background:var(--hz-navy-900);color:#fff;border:1px solid #c5d0dc;align-self:start}.hz-operation-board>header{border-bottom:1px solid #ffffff29;justify-content:space-between;padding:20px 22px;display:flex}.hz-operation-board>header span{font-family:var(--hz-title);font-size:17px;font-weight:800}.hz-operation-board>header small{color:#9db2c7;font-size:10px}.hz-operation-board>dl{margin:0;padding:8px 22px}.hz-operation-board>dl div{border-bottom:1px solid #ffffff21;justify-content:space-between;align-items:baseline;padding:18px 0;display:flex}.hz-operation-board dt{color:#bdd0e1;font-size:12px}.hz-operation-board dd{font-family:var(--hz-title);margin:0;font-size:29px;font-weight:800}.hz-operation-board dd small{color:#9db2c7;font-family:var(--hz-body);margin-left:5px;font-size:10px;font-weight:500}.hz-operation-board>section{background:#ffffff14;margin:14px;padding:19px}.hz-operation-board>section strong{font-size:12px}.hz-operation-board>section p{color:#bdccdb;margin:8px 0 15px;font-size:11px;line-height:1.8}.hz-operation-board>section button{color:#fff;background:0 0;padding:6px 0;font-size:11px;font-weight:700}.hz-exams{background:#fff;padding:82px 0 92px;scroll-margin-top:78px}.hz-exam-grid{grid-template-columns:repeat(3,1fr);gap:18px;display:grid}.hz-exam-card{border:1px solid var(--hz-line);background:#fff;flex-direction:column;min-height:390px;padding:25px;transition:border .18s,box-shadow .18s,transform .18s;display:flex}.hz-exam-card:hover{border-color:#9fb2c5;transform:translateY(-4px);box-shadow:0 18px 38px #0c2c4e17}.hz-exam-card>header{justify-content:space-between;gap:14px;display:flex}.hz-exam-card>header>span{color:var(--hz-blue-700);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;font-weight:800}.hz-exam-card h3{color:var(--hz-navy-950);font-family:var(--hz-title);margin:25px 0 10px;font-size:21px;line-height:1.5}.hz-exam-card>p{color:var(--hz-muted);margin:0;font-size:12px;line-height:1.75}.hz-exam-card dl{margin:23px 0}.hz-exam-card dl div{border-top:1px solid #e6ebf0;grid-template-columns:64px 1fr;gap:12px;padding:8px 0;display:grid}.hz-exam-card dt{color:#778597;font-size:11px}.hz-exam-card dd{color:#34475b;margin:0;font-size:11px;font-weight:650}.hz-exam-card>footer{border-top:1px solid var(--hz-line);justify-content:space-between;align-items:center;gap:16px;margin-top:auto;padding-top:17px;display:flex}.hz-exam-card>footer span{color:var(--hz-muted);font-size:11px}.hz-exam-card>footer button{color:var(--hz-blue-700);background:0 0;padding:6px 0;font-size:11px;font-weight:800}.hz-guide{background:var(--hz-navy-950);color:#fff;padding:80px 0;scroll-margin-top:78px}.hz-guide .hz-container{grid-template-columns:.72fr 1.28fr;gap:78px;display:grid}.hz-guide__intro>p{color:#7cb2de}.hz-guide__intro h2{font-family:var(--hz-title);margin:0;font-size:32px;line-height:1.45}.hz-guide__intro>span{color:#a9bed3;margin-top:18px;font-size:13px;line-height:1.9;display:block}.hz-guide ol{border-top:1px solid #ffffff29;border-left:1px solid #ffffff29;grid-template-columns:repeat(2,1fr);gap:0;margin:0;padding:0;list-style:none;display:grid}.hz-guide li{border-bottom:1px solid #ffffff29;border-right:1px solid #ffffff29;gap:17px;min-height:145px;padding:25px;display:flex}.hz-guide li>span{color:#9fc0dc;width:28px;height:28px;font-family:var(--hz-title);border:1px solid #6e91b1;flex:0 0 28px;place-items:center;font-size:13px;display:grid}.hz-guide li strong{font-family:var(--hz-title);font-size:16px}.hz-guide li p{color:#a9bed3;margin:8px 0 0;font-size:11px;line-height:1.8}.hz-footer{border-top:1px solid var(--hz-line);background:#f0f3f6}.hz-footer__main{grid-template-columns:.85fr 1.35fr .5fr;align-items:center;gap:55px;min-height:178px;display:grid}.hz-footer__brand{align-items:center;gap:14px;display:flex}.hz-footer__brand>div{flex-direction:column;display:flex}.hz-footer__brand strong{color:var(--hz-navy-950);font-family:var(--hz-title);font-size:18px}.hz-footer__brand small{color:var(--hz-muted);letter-spacing:.14em;margin-top:6px;font-size:10px}.hz-footer dl{border-left:1px solid var(--hz-line);margin:0;padding-left:30px}.hz-footer dl div{grid-template-columns:72px 1fr;gap:15px;padding:3px 0;display:grid}.hz-footer dt{color:var(--hz-muted);font-size:11px}.hz-footer dd{color:#304155;margin:0;font-size:11px}.hz-footer__links{flex-direction:column;align-items:flex-start;display:flex}.hz-footer__links button{color:#405469;background:0 0;padding:4px 0;font-size:11px}.hz-footer__legal{color:#657486;background:#e4e9ee;align-items:center;min-height:47px;font-size:10px;display:flex}.hz-footer__legal .hz-container{justify-content:space-between;gap:24px;display:flex}.hz-empty{color:var(--hz-muted);text-align:center;border:1px dashed #bdc9d5;padding:30px;font-size:13px}.hz-empty--large{padding:70px 30px}.hz-loading,.hz-failure{min-height:100vh;color:var(--hz-navy-900);font-family:var(--hz-body);background:#f3f6f9;flex-direction:column;justify-content:center;align-items:center;display:flex}.hz-loading__seal{background:var(--hz-red-700);color:#fff;width:54px;height:54px;font-family:var(--hz-title);place-items:center;margin-bottom:18px;font-size:28px;display:grid;box-shadow:inset 0 0 0 4px #ffffff40}.hz-loading strong{font-family:var(--hz-title);letter-spacing:.08em}.hz-loading small{color:var(--hz-muted);margin-top:8px}.hz-failure{text-align:center;padding:30px}.hz-failure>span{color:var(--hz-red-700);font-size:12px;font-weight:800}.hz-failure h1{font-family:var(--hz-title);margin:12px 0 4px}.hz-failure p{color:var(--hz-muted)}.hz-failure button{background:var(--hz-navy-800);color:#fff;cursor:pointer;margin-top:16px;padding:11px 20px}@media (width<=1060px){.hz-header__inner{gap:16px}.hz-nav button{padding-inline:10px;font-size:13px}.hz-nav button:after{left:10px;right:10px}.hz-hero__grid{grid-template-columns:1fr 370px;gap:36px}.hz-hero__content h1{font-size:46px}.hz-service-grid{grid-template-columns:repeat(2,1fr)}.hz-service-grid>button:nth-child(2){border-right:0}.hz-service-grid>button:nth-child(-n+2){border-bottom:1px solid var(--hz-line)}.hz-records-grid{gap:28px}.hz-exam-grid{grid-template-columns:repeat(2,1fr)}.hz-footer__main{grid-template-columns:1fr 1.4fr}.hz-footer__links{display:none}}@media (width<=820px){.hz-container{width:min(100% - 32px,700px)}.hz-service-bar__inner>div span{display:none}.hz-header__inner{grid-template-columns:1fr auto;min-height:70px}.hz-brand__seal{flex-basis:39px;width:39px;height:39px;font-size:21px}.hz-brand__copy strong{font-size:17px}.hz-brand__copy small{display:none}.hz-menu{display:flex}.hz-nav{border-bottom:1px solid var(--hz-line);background:#fff;flex-direction:column;align-items:stretch;padding:10px 16px 16px;display:none;position:absolute;top:70px;left:0;right:0;box-shadow:0 16px 28px #0a23401a}.hz-nav.is-open{display:flex}.hz-nav button{text-align:left;min-height:45px}.hz-nav button:after{display:none}.hz-hero__grid{grid-template-columns:1fr;padding:55px 0 62px}.hz-hero__content h1{max-width:650px;font-size:clamp(39px,8vw,54px)}.hz-exam-docket{max-width:560px}.hz-records-grid{grid-template-columns:1fr}.hz-operation-board{max-width:none}.hz-guide .hz-container{grid-template-columns:1fr;gap:38px}.hz-footer__main{grid-template-columns:1fr;gap:24px;padding-block:42px}.hz-footer dl{border-top:1px solid var(--hz-line);border-left:0;padding:22px 0 0}}@media (width<=580px){.hz-container{width:calc(100% - 28px)}.hz-service-bar__inner{justify-content:center}.hz-service-bar__inner>div{display:none}.hz-account-link{text-overflow:ellipsis;white-space:nowrap;max-width:132px;overflow:hidden}.hz-exit-link{display:none}.hz-latest{grid-template-columns:auto 1fr auto;gap:10px;padding-right:12px}.hz-latest time{display:none}.hz-latest>span{padding-inline:10px}.hz-hero__grid{padding-top:46px}.hz-hero__content h1{font-size:38px;line-height:1.35}.hz-hero__lead{font-size:14px}.hz-hero__actions{flex-direction:column;align-items:stretch}.hz-trust-list{flex-direction:column;align-items:flex-start}.hz-exam-docket__body{padding:25px 22px}.hz-exam-docket>footer{padding-inline:22px}.hz-section-heading{flex-direction:column;align-items:flex-start}.hz-section-heading>span{text-align:left}.hz-service-grid{grid-template-columns:1fr}.hz-service-grid>button{border-right:0;border-bottom:1px solid var(--hz-line);min-height:170px}.hz-service-grid>button:last-child{border-bottom:0}.hz-records-grid{gap:38px}.hz-featured-notice{padding:25px 22px}.hz-featured-notice h3{font-size:20px}.hz-notice-list>button{grid-template-columns:52px 1fr auto;gap:10px}.hz-exam-grid{grid-template-columns:1fr}.hz-exam-card{min-height:360px}.hz-guide ol{grid-template-columns:1fr}.hz-guide__intro h2{font-size:27px}.hz-footer__legal .hz-container{flex-direction:column;gap:2px;padding-block:10px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}:root{--app-navy:#0d2d54;--app-blue:#17558f;--app-red:#9f3038;--app-ink:#172538;--app-muted:#647386;--app-line:#d7e0e9;--app-bg:#f3f6f9;--app-white:#fff;--app-shadow:0 10px 28px #0d2d5412;--app-title:"Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;--app-body:"PingFang SC", "Microsoft YaHei", system-ui, sans-serif}*,:before,:after{box-sizing:border-box}body{background:var(--app-bg);min-width:320px;color:var(--app-ink);font-family:var(--app-body);margin:0;font-size:14px;line-height:1.55}button,input,select,textarea{box-sizing:border-box;font:inherit}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:2px;outline:3px solid #e1ab24}.app-container{width:min(1180px,100% - 48px);margin-inline:auto}.app-brand{color:var(--app-navy);align-items:center;gap:12px;text-decoration:none;display:inline-flex}.app-brand>span{background:var(--app-red);color:#fff;width:42px;height:42px;font-family:var(--app-title);place-items:center;font-size:22px;font-weight:800;display:grid;box-shadow:inset 0 0 0 3px #ffffff40}.app-brand>div{flex-direction:column;line-height:1.1;display:flex}.app-brand strong{font-family:var(--app-title);letter-spacing:.08em;font-size:18px}.app-brand small{letter-spacing:.1em;margin-top:6px;font-size:8px;font-weight:700}.app-brand--light{color:#fff}.app-button{border:1px solid var(--app-line);min-height:40px;color:var(--app-navy);cursor:pointer;background:#fff;border-radius:2px;justify-content:center;align-items:center;padding:0 18px;font-weight:700;text-decoration:none;display:inline-flex}.app-button--primary{border-color:var(--app-navy);background:var(--app-navy);color:#fff}.app-button--primary:hover{background:#071c35}.app-button--large{min-height:49px}.app-button:disabled{opacity:.55;cursor:not-allowed}.app-link-button{color:var(--app-muted);cursor:pointer;background:0 0;border:0}.public-frame{background:#fff;flex-direction:column;min-height:100vh;display:flex}.public-frame__utility{color:#d8e5f1;background:#071c35;align-items:center;min-height:36px;font-size:11px;display:flex}.public-frame__utility .app-container{justify-content:space-between;display:flex}.public-frame__header{z-index:30;border-bottom:1px solid var(--app-line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#fffffff7;position:sticky;top:0;box-shadow:0 7px 22px #0c2a490f}.public-frame__header>.app-container{grid-template-columns:auto 1fr auto;align-items:center;gap:35px;min-height:76px;display:grid}.public-frame__header nav{justify-content:center;gap:7px;display:flex}.public-frame__header nav a{color:#33465c;padding:12px 15px;font-size:13px;font-weight:700;text-decoration:none}.public-frame__header nav a.router-link-active{color:var(--app-navy);box-shadow:inset 0 -3px var(--app-red)}.public-frame__actions{align-items:center;gap:8px;display:flex}.public-frame__menu{width:42px;height:42px;color:var(--app-navy);background:0 0;border:0;font-size:21px;display:none}.public-frame__main{flex:1}.public-frame__footer{border-top:1px solid var(--app-line);background:#e9eef3;margin-top:80px}.public-frame__footer .app-container{justify-content:space-between;align-items:center;gap:30px;min-height:110px;display:flex}.public-frame__footer div>div{flex-direction:column;display:flex}.public-frame__footer strong{color:var(--app-navy);font-family:var(--app-title)}.public-frame__footer span{color:var(--app-muted);font-size:11px}.public-page-head{background:var(--app-navy);color:#fff;padding:62px 0}.public-page-head p,.verification-page__intro p,.auth-card>p,.business-form>p,.record-panel>header span{color:#79add8;letter-spacing:.18em;margin:0 0 9px;font-size:10px;font-weight:800}.public-page-head h1{font-family:var(--app-title);margin:0;font-size:38px}.public-page-head span{color:#b9cbdb;margin-top:12px;font-size:13px;display:block}.public-directory{grid-template-columns:230px 1fr;gap:44px;padding-top:54px;display:grid}.public-directory>.page-state{grid-column:1/-1}.public-directory>:not(.page-state){display:contents}.public-directory__filters{border-top:3px solid var(--app-navy);background:var(--app-bg);flex-direction:column;align-self:start;display:flex}.public-directory__filters>strong{font-family:var(--app-title);padding:20px}.public-directory__filters button{border:0;border-top:1px solid var(--app-line);color:#45586d;text-align:left;cursor:pointer;background:0 0;justify-content:space-between;padding:12px 20px;display:flex}.public-directory__filters button.active{background:var(--app-navy);color:#fff}.public-directory__filters button span{font-size:10px}.directory-toolbar{justify-content:space-between;align-items:end;gap:20px;margin-bottom:18px;display:flex}.directory-toolbar label{color:var(--app-muted);flex-direction:column;flex:1;gap:7px;font-size:11px;display:flex}.directory-toolbar input,.record-search input{border:1px solid var(--app-line);background:#fff;min-height:45px;padding:0 14px}.directory-list{border-top:2px solid var(--app-navy)}.directory-list>button{border:0;border-bottom:1px solid var(--app-line);width:100%;min-height:108px;color:var(--app-ink);text-align:left;cursor:pointer;background:#fff;grid-template-columns:70px 1fr auto;align-items:center;gap:22px;padding:16px;display:grid}.directory-list>button:hover{background:#f7f9fb}.directory-list time{border-right:1px solid var(--app-line);flex-direction:column;align-items:center;display:flex}.directory-list time strong{font-family:var(--app-title);font-size:26px}.directory-list time span{color:var(--app-muted);font-size:9px}.directory-list>button>span{flex-direction:column;min-width:0;display:flex}.directory-list em{color:var(--app-red);font-size:10px;font-style:normal}.directory-list>button>span strong{text-overflow:ellipsis;white-space:nowrap;margin:4px 0;overflow:hidden}.directory-list small{color:var(--app-muted);font-size:11px}.directory-list i{color:var(--app-blue);font-style:normal}.app-pagination{justify-content:center;align-items:center;gap:18px;padding-top:24px;display:flex}.app-pagination button{border:1px solid var(--app-line);cursor:pointer;background:#fff;padding:8px 14px}.app-pagination button:disabled{opacity:.45}.app-pagination span{color:var(--app-muted);font-size:11px}.document-page{padding-top:38px}.document-page__back{color:var(--app-blue);cursor:pointer;background:0 0;border:0;margin-bottom:18px;padding:8px 0}.public-document{border:1px solid var(--app-line);background:#fff;overflow:hidden;box-shadow:0 20px 45px #0d2d5412}.public-document>header{border-bottom:1px solid var(--app-line);text-align:center;background:#f7f9fb;padding:48px max(32px,8vw)}.public-document>header span{color:var(--app-red);letter-spacing:.08em;font-size:11px;font-weight:800}.public-document>header h1{font-family:var(--app-title);margin:16px 0 10px;font-size:32px;line-height:1.5}.public-document>header p{color:var(--app-muted);font-size:11px}.public-document>section{padding:42px max(30px,7vw)}.document-richtext{font-size:15px;line-height:2}.document-richtext img{max-width:100%}.document-table-wrap{overflow-x:auto}.document-table-wrap>p{color:var(--app-muted)}.document-table-wrap table,.record-table-wrap table{border-collapse:collapse;width:100%;font-size:12px}.document-table-wrap th,.document-table-wrap td,.record-table-wrap th,.record-table-wrap td{border-bottom:1px solid var(--app-line);text-align:left;vertical-align:top;padding:12px 14px}.document-table-wrap th,.record-table-wrap th{color:#42566b;white-space:nowrap;background:#edf2f6;font-size:10px}.record-metrics{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;display:grid}.record-metrics article{border:1px solid var(--app-line);background:#fff;flex-direction:column;justify-content:center;min-height:105px;padding:18px;display:flex}.record-metrics article span{color:var(--app-muted);font-size:11px}.record-metrics article strong{color:var(--app-navy);font-family:var(--app-title);margin-top:5px;font-size:25px}.verification-page{padding-top:70px}.verification-page__intro{max-width:700px}.verification-page__intro h1{color:var(--app-navy);font-family:var(--app-title);margin:0;font-size:42px}.verification-page__intro>span{color:var(--app-muted)}.verification-form{border:1px solid var(--app-line);background:#fff;grid-template-columns:1fr auto;gap:12px;margin:34px 0;padding:22px;display:grid}.verification-form label{color:var(--app-muted);flex-direction:column;gap:7px;font-size:11px;display:flex}.verification-form input{border:1px solid var(--app-line);min-height:46px;padding:0 15px;font-family:ui-monospace,Consolas,monospace}.verification-form button{background:var(--app-navy);color:#fff;border:0;align-self:end;min-height:46px;padding:0 25px;font-weight:700}.verification-result{border:1px solid var(--app-line);background:#fff;grid-template-columns:auto 1fr;gap:22px;padding:30px;display:grid}.verification-result>span{color:#197346;background:#e2f3e9;border-radius:50%;place-items:center;width:52px;height:52px;font-size:24px;display:grid}.verification-result.is-invalid>span{color:var(--app-red);background:#f8e8e8}.verification-result h2{font-family:var(--app-title);margin:3px 0}.verification-result p{color:var(--app-muted);margin:0}.verification-result dl{background:var(--app-line);grid-column:1/-1;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1px;margin:12px 0 0;display:grid}.verification-result dl div{background:#f8fafb;padding:15px}.verification-result dt{color:var(--app-muted);font-size:10px}.verification-result dd{margin:5px 0 0;font-weight:700}.verification-safety{border-left:3px solid var(--app-blue);background:#eaf1f7;margin-top:18px;padding:18px 20px}.verification-safety p{color:var(--app-muted);margin:4px 0 0;font-size:11px}.auth-view{background:#fff;grid-template-columns:minmax(330px,.8fr) minmax(520px,1.2fr);min-height:100vh;display:grid}.auth-view__identity{background:var(--app-navy);color:#fff;flex-direction:column;justify-content:space-between;min-height:100vh;padding:48px 9vw 48px 5vw;display:flex}.auth-view__identity>div p{color:#7db0da;letter-spacing:.18em;font-size:10px;font-weight:800}.auth-view__identity h1{max-width:540px;font-family:var(--app-title);margin:14px 0;font-size:clamp(36px,4vw,58px);line-height:1.35}.auth-view__identity>div>span,.auth-view__identity>small{color:#aebfd0;line-height:1.9}.auth-view__panel{flex-direction:column;justify-content:center;align-items:center;padding:50px 6vw;display:flex}.auth-view__back{color:var(--app-blue);align-self:flex-start;font-size:12px;text-decoration:none}.auth-card{flex-direction:column;width:min(520px,100%);margin:auto;display:flex}.auth-card h2,.business-form h2{color:var(--app-navy);font-family:var(--app-title);margin:4px 0 8px;font-size:30px}.auth-card>span,.business-form>span{color:var(--app-muted);margin-bottom:25px;font-size:12px;line-height:1.8}.auth-card label,.business-form label{color:#506175;flex-direction:column;gap:7px;margin-bottom:15px;font-size:11px;display:flex}.auth-card input,.auth-card select,.business-form input,.business-form select,.business-form textarea,.preference-row select{width:100%;min-height:44px;color:var(--app-ink);background:#fff;border:1px solid #cbd6e1;padding:9px 12px}.auth-card textarea,.business-form textarea{resize:vertical}.auth-card__switch{color:var(--app-muted);text-align:center;font-size:11px}.auth-card__switch a{color:var(--app-blue)}.form-error{border-left:3px solid var(--app-red);color:#8c2c33;background:#f9ebeb;margin-bottom:16px;padding:12px 14px;font-size:12px}.issued-card>strong{border:1px dashed var(--app-red);color:var(--app-navy);text-align:center;margin:25px 0;padding:20px;font-family:ui-monospace,Consolas,monospace;font-size:25px}.form-grid{grid-template-columns:repeat(2,1fr);gap:0 15px;display:grid}.form-grid .wide{grid-column:1/-1}.portal-shell{background:var(--app-bg);min-height:100vh}.portal-shell__sidebar{z-index:50;color:#fff;background:#0a2748;flex-direction:column;width:252px;display:flex;position:fixed;inset:0 auto 0 0;overflow-y:auto}.portal-shell__brand{color:#fff;align-items:center;gap:10px;min-height:74px;padding:0 20px;text-decoration:none;display:flex}.portal-shell__brand>span{background:var(--app-red);width:38px;height:38px;font-family:var(--app-title);place-items:center;font-size:20px;display:grid}.portal-shell__brand div{flex-direction:column;display:flex}.portal-shell__brand strong{font-family:var(--app-title);font-size:15px}.portal-shell__brand small{color:#8eabc6;letter-spacing:.12em;font-size:7px}.portal-shell__close{display:none}.portal-shell__role{color:#a9bfd4;border-block:1px solid #ffffff1a;margin:0;padding:12px 20px;font-size:11px}.portal-shell__sidebar nav{padding:13px 10px 25px}.portal-shell__sidebar nav section>strong{color:#7895b0;letter-spacing:.14em;padding:15px 10px 5px;font-size:9px;display:block}.portal-shell__sidebar nav a{color:#cad8e5;border-radius:2px;align-items:center;gap:11px;min-height:39px;padding:0 10px;font-size:12px;text-decoration:none;display:flex}.portal-shell__sidebar nav a>span{color:#9fb5ca;width:24px;height:24px;font-family:var(--app-title);border:1px solid #ffffff21;place-items:center;font-size:10px;display:grid}.portal-shell__sidebar nav a:hover,.portal-shell__sidebar nav a.router-link-active{color:#fff;background:#17456f}.portal-shell__scope{background:#ffffff12;margin:auto 14px 16px;padding:14px}.portal-shell__scope span,.portal-shell__scope small{color:#8fa9c1;font-size:9px;display:block}.portal-shell__scope strong{margin:5px 0;font-size:11px;display:block}.portal-shell__main{min-height:100vh;margin-left:252px}.portal-shell__topbar{z-index:25;border-bottom:1px solid var(--app-line);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffffff7;grid-template-columns:1fr auto;align-items:center;min-height:64px;padding:0 30px;display:grid;position:sticky;top:0}.portal-shell__topbar>button{display:none}.portal-shell__topbar>div:first-of-type{color:var(--app-muted);align-items:center;gap:9px;font-size:11px;display:flex}.portal-shell__topbar b{color:#b9c4cf}.portal-shell__topbar strong{color:var(--app-navy)}.portal-shell__user{align-items:center;gap:9px;display:flex}.portal-shell__user>i{width:35px;height:35px;color:var(--app-navy);font-family:var(--app-title);background:#dce8f2;border-radius:50%;place-items:center;font-style:normal;display:grid}.portal-shell__user>span{flex-direction:column;display:flex}.portal-shell__user small{max-width:170px;color:var(--app-muted);text-overflow:ellipsis;white-space:nowrap;font-size:9px;overflow:hidden}.portal-shell__user>button{color:var(--app-muted);cursor:pointer;background:0 0;border:0;font-size:10px}.portal-shell__content{padding:30px}.portal-page-heading{justify-content:space-between;align-items:end;gap:20px;margin-bottom:25px;display:flex}.portal-page-heading p{color:var(--app-blue);letter-spacing:.18em;margin:0 0 4px;font-size:9px;font-weight:800}.portal-page-heading h1{color:var(--app-navy);font-family:var(--app-title);margin:0;font-size:29px}.portal-page-heading span{color:var(--app-muted);margin-top:5px;font-size:11px;display:block}.record-explorer{flex-direction:column;gap:18px;display:flex}.record-search{color:var(--app-muted);flex-direction:column;gap:6px;font-size:10px;display:flex}.record-panel{border:1px solid var(--app-line);background:#fff;overflow:hidden}.record-panel>header{border-bottom:1px solid var(--app-line);justify-content:space-between;align-items:center;gap:20px;min-height:62px;padding:0 20px;display:flex}.record-panel>header h2{color:var(--app-navy);font-family:var(--app-title);margin:0;font-size:17px}.record-panel>header p{color:var(--app-muted);margin:2px 0 0;font-size:10px}.record-table-wrap{overflow-x:auto}.record-table-wrap td{word-break:break-word;max-width:330px}.status-badge{color:#53657a;white-space:nowrap;background:#e9eef3;border-radius:20px;align-items:center;padding:4px 8px;font-size:9px;font-weight:750;display:inline-flex}.status-badge.is-approved,.status-badge.is-active,.status-badge.is-open,.status-badge.is-paid,.status-badge.is-final,.status-badge.is-reported{color:#197044;background:#e1f3e8}.status-badge.is-pending,.status-badge.is-upcoming,.status-badge.is-school-review,.status-badge.is-withdrawal-pending{color:#8a5c11;background:#fff1d7}.status-badge.is-rejected,.status-badge.is-disabled,.status-badge.is-not-reported{color:#922f38;background:#f8e5e7}.status-badge.is-published{color:#195c93;background:#dfeaf6}.page-state{border:1px solid var(--app-line);text-align:center;background:#fff;flex-direction:column;justify-content:center;align-items:center;min-height:270px;padding:28px;display:flex}.page-state p{max-width:560px;color:var(--app-muted);margin:6px 0;font-size:11px}.page-state button{background:var(--app-navy);color:#fff;cursor:pointer;border:0;margin-top:12px;padding:9px 16px}.page-state--loading i{border:3px solid #d8e2ec;border-top-color:var(--app-blue);border-radius:50%;width:24px;height:24px;margin-bottom:12px;animation:.8s linear infinite app-spin}.page-state--error>span{width:38px;height:38px;color:var(--app-red);background:#f8e4e5;border-radius:50%;place-items:center;margin-bottom:10px;font-weight:800;display:grid}@keyframes app-spin{to{transform:rotate(360deg)}}.candidate-welcome-vue{background:var(--app-navy);color:#fff;justify-content:space-between;align-items:center;gap:30px;min-height:180px;padding:32px;display:flex}.candidate-welcome-vue>div>span{color:#82b1d7;font-size:11px}.candidate-welcome-vue h2{font-family:var(--app-title);margin:7px 0;font-size:28px}.candidate-welcome-vue p{color:#b6c8d8;margin:0;font-size:12px}.candidate-welcome-vue>strong{color:#ffffffbf;width:72px;height:72px;font-family:var(--app-title);text-align:center;border:2px solid #ffffff80;place-items:center;font-size:22px;line-height:1.1;display:grid}.candidate-dashboard-grid{grid-template-columns:repeat(2,1fr);gap:15px;margin-top:15px;display:grid}.dashboard-row,.notice-list-vue>button{border:0;border-bottom:1px solid var(--app-line);width:100%;min-height:66px;color:var(--app-ink);text-align:left;cursor:pointer;background:#fff;justify-content:space-between;align-items:center;gap:18px;padding:10px 20px;display:flex}.dashboard-row>span,.notice-list-vue>button>span{flex-direction:column;min-width:0;display:flex}.dashboard-row small,.notice-list-vue small{color:var(--app-muted);font-size:9px}.business-form{border:1px solid var(--app-line);background:#fff;padding:26px}.business-form>h2{margin-top:0}.profile-fields>h2{border-bottom:1px solid var(--app-line);color:var(--app-navy);font-family:var(--app-title);margin:28px 0 15px;padding-bottom:8px;font-size:18px}.profile-fields>h2:first-child{margin-top:0}.form-callout{border-left:3px solid var(--app-blue);background:#eaf1f7;margin:15px 0;padding:15px}.form-callout p{color:var(--app-muted);margin:4px 0 0;font-size:11px}.business-card-list{flex-direction:column;gap:16px;display:flex}.exam-apply-card,.registration-vue-card,.admit-card-vue{border:1px solid var(--app-line);background:#fff;padding:25px}.exam-apply-card>header,.registration-vue-card>header,.admit-card-vue>header{justify-content:space-between;align-items:center;gap:15px;display:flex}.exam-apply-card>header>span,.registration-vue-card header span,.admit-card-vue header span{color:var(--app-blue);font-family:ui-monospace,Consolas,monospace;font-size:10px}.exam-apply-card h2,.registration-vue-card h2,.admit-card-vue h2{color:var(--app-navy);font-family:var(--app-title);margin:18px 0 8px}.exam-apply-card>p,.registration-vue-card>p{color:var(--app-muted);font-size:11px}.exam-apply-card dl,.registration-vue-card dl,.admit-card-vue dl{background:var(--app-line);grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1px;margin:20px 0;display:grid}.exam-apply-card dl div,.registration-vue-card dl div,.admit-card-vue dl div{background:#f8fafb;padding:12px}.exam-apply-card dt,.registration-vue-card dt,.admit-card-vue dt{color:var(--app-muted);font-size:9px}.exam-apply-card dd,.registration-vue-card dd,.admit-card-vue dd{margin:4px 0 0;font-size:11px;font-weight:700}.subject-choice-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;margin:20px 0;display:grid}.subject-choice-grid label{cursor:pointer;margin:0}.subject-choice-grid input{opacity:0;position:absolute}.subject-choice-grid label>span{border:1px solid var(--app-line);flex-direction:column;min-height:75px;padding:13px;display:flex}.subject-choice-grid input:checked+span{border-color:var(--app-blue);box-shadow:inset 3px 0 var(--app-blue);background:#edf5fb}.subject-choice-grid small{color:var(--app-muted);font-size:9px}.subject-choice-grid em{color:var(--app-red);margin-top:auto;font-size:10px;font-style:normal}.exam-apply-card>footer{background:#edf5f0;justify-content:space-between;align-items:center;padding:13px;display:flex}.chip-list{flex-wrap:wrap;gap:7px;display:flex}.chip-list>span{border:1px solid var(--app-line);background:#f8fafb;flex-direction:column;padding:7px 10px;font-size:10px;display:flex}.chip-list small{color:var(--app-muted);font-size:8px}.admit-card-vue>div{background:var(--app-navy);color:#fff;margin:20px 0;padding:20px}.admit-card-vue>div small{color:#a9bfd3;display:block}.admit-card-vue>div strong{font-family:ui-monospace,Consolas,monospace;font-size:25px}.result-group>header{padding:16px 20px}.result-group>header h2{margin:3px 0 0}.result-card-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;padding:16px;display:grid}.result-card-grid article{border:1px solid var(--app-line);flex-direction:column;padding:18px;display:flex}.result-card-grid article>span{color:var(--app-blue);font-size:10px}.result-card-grid article>strong{color:var(--app-navy);font-family:var(--app-title);margin:5px 0;font-size:32px}.result-card-grid article>strong small{color:var(--app-muted);font-family:var(--app-body);font-size:11px}.result-card-grid article>em{color:var(--app-muted);margin-bottom:12px;font-size:9px;font-style:normal}.result-card-grid form{flex-direction:column;gap:7px;margin-top:auto;display:flex}.result-card-grid textarea{border:1px solid var(--app-line);resize:vertical;padding:9px}.result-card-grid form button{background:var(--app-navy);color:#fff;border:0;align-self:flex-end;padding:7px 11px;font-size:9px}.admission-candidate-vue>header{padding:18px 20px}.admission-candidate-vue>.record-metrics,.admission-candidate-vue>.form-callout,.admission-candidate-vue>p{margin:16px}.preference-editor{border-top:1px solid var(--app-line);padding:16px}.preference-row{grid-template-columns:45px 1fr 1fr;gap:10px;margin-bottom:9px;display:grid}.preference-row>b{color:var(--app-navy);background:#e8eef4;place-items:center;font-size:10px;display:grid}.notice-list-vue>button time{color:var(--app-muted);font-size:9px}.notice-list-vue em{color:var(--app-red);font-size:9px;font-style:normal}.security-stack{grid-template-columns:repeat(2,1fr);gap:16px;display:grid}.security-stack>.form-error,.security-stack>.recovery-code-panel{grid-column:1/-1}.security-card>header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:8px;display:flex}.security-card>header h2,.security-card>header p{margin:0}.security-card>span{color:var(--app-muted);margin-bottom:18px;line-height:1.7;display:block}.inline-security-form,.security-protected-actions{gap:12px;display:grid}.security-protected-actions>div{flex-wrap:wrap;gap:8px;display:flex}.app-button--danger{color:#a5222a!important;background:#fff!important;border-color:#b22e35!important}.totp-setup-grid{border:1px solid var(--app-line);background:#f7f9fb;grid-template-columns:220px 1fr;align-items:center;gap:22px;margin:8px 0 20px;padding:18px;display:grid}.totp-setup-grid img{background:#fff;width:100%;height:auto;display:block}.totp-setup-grid>div{flex-direction:column;gap:10px;min-width:0;display:flex}.totp-setup-grid code{overflow-wrap:anywhere;color:var(--app-navy);font-size:14px;font-weight:700;line-height:1.7}.totp-setup-grid small{color:var(--app-muted)}.recovery-code-panel{box-shadow:var(--app-shadow);background:#fff9eb;border-left:5px solid #d28b1d;padding:24px}.recovery-code-panel h2,.recovery-code-panel p{margin:0}.recovery-code-panel span{color:#766540}.recovery-code-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:18px 0;display:grid}.recovery-code-grid code{text-align:center;background:#fff;border:1px dashed #c69b43;padding:10px;font-size:13px;font-weight:800}.admission-command-banner{color:#fff;min-height:190px;box-shadow:var(--app-shadow);background:linear-gradient(112deg,#07233ef7,#0e4468db),repeating-linear-gradient(135deg,#0000 0 18px,#ffffff0a 18px 19px);align-items:flex-end;padding:30px;display:flex}.admission-command-banner span{color:#80b5da;letter-spacing:.17em;font-size:9px}.admission-command-banner h2{font-family:var(--app-title);margin:6px 0;font-size:28px}.admission-command-banner p{color:#c6d5e2;max-width:720px;margin:0}.admission-progress-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px;margin:16px 0;display:grid}.admission-progress-grid article{border:1px solid var(--app-line);background:#fff;padding:18px}.admission-progress-grid header{justify-content:space-between;gap:12px;display:flex}.admission-progress-grid header strong{color:var(--app-red);font-size:18px}.admission-progress-grid article>div{background:#e5ebef;height:5px;margin:12px 0;overflow:hidden}.admission-progress-grid article>div i{background:var(--app-red);height:100%;display:block}.admission-progress-grid p,.admission-progress-grid small{color:var(--app-muted);margin:0}.admission-dashboard-grid{grid-template-columns:1.1fr .9fr;gap:16px;display:grid}.admission-dashboard-grid .dashboard-row>b{width:34px;height:34px;color:var(--app-navy);background:#eaf0f5;place-items:center;display:grid}.admission-plan-form{margin-bottom:16px}.admission-plan-form>header h2,.admission-plan-form>header p{margin:0}.plan-category-list{gap:12px;display:grid}.plan-category-card{border:1px solid var(--app-line);background:#fafbfc}.plan-category-card>header,.plan-category-card>section>header{border-bottom:1px solid var(--app-line);justify-content:space-between;align-items:center;gap:12px;padding:12px 15px;display:flex}.plan-category-card>header button,.plan-category-card>section button,.allocation-row button{color:var(--app-red);background:0 0;border:0}.plan-category-card>.form-grid{padding:14px}.plan-category-card>section{border:1px solid var(--app-line);background:#fff;margin:0 14px 14px}.plan-category-card>section small{color:var(--app-muted);font-weight:400;display:block}.allocation-row{border-top:1px solid #eef1f3;grid-template-columns:1fr 140px auto;gap:8px;padding:9px 12px;display:grid}.table-stack{flex-direction:column;margin-bottom:4px;display:flex}.ledger-panel>header,.admission-plan-history>header{padding:18px 20px}.ledger-toolbar{border-top:1px solid var(--app-line);background:#f6f8fa;grid-template-columns:minmax(240px,1fr) 220px 170px;gap:8px;padding:12px 16px;display:grid}.ledger-bulk{border-top:1px solid var(--app-line);border-bottom:1px solid var(--app-line);flex-wrap:wrap;align-items:center;gap:9px;padding:11px 16px;display:flex}.ledger-bulk>strong{margin-right:auto}.row-review-form{gap:5px;min-width:190px;display:grid}.row-review-form button{background:var(--app-navy);color:#fff;border:0;padding:7px}.admission-export-bar{box-shadow:var(--app-shadow);background:#fff;align-items:center;gap:16px;margin-bottom:16px;padding:18px 20px;display:flex}.admission-export-bar>div{flex-direction:column;flex:1;display:flex}.admission-export-bar>div>span{color:var(--app-red);font-size:9px}.admission-export-bar small{color:var(--app-muted)}.app-button.disabled{pointer-events:none;opacity:.45}.reporting-workbench{border:1px solid var(--app-line);box-shadow:var(--app-shadow);background:#fff;margin-bottom:18px}.reporting-workbench>header{background:var(--app-navy);color:#fff;justify-content:space-between;gap:18px;padding:22px;display:flex}.reporting-workbench>header h2{margin:4px 0}.reporting-workbench>header p{color:#b9ccdb;margin:0}.reporting-workbench>header>strong{font-family:var(--app-title);text-align:right;font-size:30px}.reporting-workbench>header>strong small{color:#9cb5c9;font-family:var(--app-body);font-size:9px;display:block}.reporting-stat-strip{background:#e9eef3;flex-wrap:wrap;align-items:center;gap:20px;padding:11px 18px;display:flex}.reporting-stat-strip .status-badge{margin-left:auto}.reporting-tools{grid-template-columns:1fr 1fr;gap:12px;padding:16px;display:grid}.reporting-tools>div,.reporting-tools>form{border:1px solid var(--app-line);flex-direction:column;gap:8px;padding:15px;display:flex}.reporting-tools small{color:var(--app-muted)}.reporting-tools>div>span{gap:8px;display:flex}.reporting-workbench form>footer{justify-content:flex-end;gap:8px;padding:14px 16px;display:flex}.scan-preview{background:#f2faf6;border:2px solid #218252;margin:0 16px 16px;padding:16px}.scan-preview>header{justify-content:space-between;display:flex}.scan-preview dl{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.scan-preview dl>div{background:#fff;padding:9px}.scan-preview dt{color:var(--app-muted);font-size:9px}.scan-preview dd{margin:2px 0 0;font-weight:700}.reporting-decision{grid-template-columns:1fr 180px minmax(220px,1fr) auto;align-items:center;gap:10px;padding:18px;display:grid}.reporting-decision p{color:var(--app-muted);margin:3px 0 0}.notice-template-studio{grid-template-columns:minmax(380px,.85fr) minmax(420px,1.15fr);gap:18px;display:grid}.notice-template-preview{background:#dce1e5;padding:14px}.notice-template-preview>div{outline:2px solid var(--template-accent);outline-offset:-22px;color:#24313b;background:#fff;border:12px solid #fff;min-height:700px;padding:64px;position:relative}.notice-template-preview>div:before{content:"";background:var(--template-primary);height:12px;position:absolute;inset:0 0 auto}.notice-template-preview h2{color:var(--template-primary);font-family:var(--app-title);letter-spacing:.3em;text-align:center;margin:30px 0 8px;font-size:32px}.notice-template-preview h3{text-align:center}.notice-template-preview em{color:#6f7780;margin:36px 0;font-size:9px;font-style:normal;display:block}.notice-template-preview>div>p{min-height:180px;line-height:2}.notice-template-preview footer{flex-direction:column;align-items:flex-end;margin-top:35px;display:flex}.notice-template-preview>div>i{color:#7b858c;border:1px dashed #9da7ae;place-items:center;width:72px;height:72px;font-size:8px;font-style:normal;display:grid;position:absolute;bottom:38px;right:42px}.notice-template-preview>p{color:#596672;font-size:9px}.admin-core-workspace{gap:16px;display:grid}.admin-core-workspace>.form-error{margin:0}.issued-credential{box-shadow:var(--app-shadow);background:#fff8e8;border-left:5px solid #d28b1d;grid-template-columns:1fr auto auto;align-items:center;gap:24px;padding:22px;display:grid}.issued-credential h2,.issued-credential p{margin:0}.issued-credential>div>span{color:#a06b13;letter-spacing:.16em;font-size:9px}.issued-credential dl{gap:24px;margin:0;display:flex}.issued-credential dt{color:var(--app-muted);font-size:9px}.issued-credential dd{margin:3px 0 0;font-family:ui-monospace,Consolas,monospace;font-size:16px;font-weight:800}.scope-banner-vue{color:#fff;background:var(--app-navy);align-items:center;gap:15px;padding:18px 22px;display:flex}.scope-banner-vue>span{background:var(--app-red);text-transform:uppercase;padding:7px 9px;font-size:9px}.scope-banner-vue>div{flex-direction:column;display:flex}.scope-banner-vue small{color:#aabfd0}.audit-ledger>header{padding:16px 20px}.admin-create-strip>header{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.admin-create-strip>header h2,.admin-create-strip>header p{margin:0}.check-row{flex-wrap:wrap;gap:18px;display:flex}.check-row label{flex-direction:row!important}.excel-action-bar{border:1px solid var(--app-line);background:#edf2f5;flex-wrap:wrap;align-items:center;gap:8px;padding:11px 14px;display:flex}.excel-action-bar a,.excel-action-bar label{cursor:pointer;color:var(--app-navy);background:#fff;border:1px solid #aebdca;padding:7px 11px;font-size:9px;text-decoration:none}.organization-card-grid{grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:14px;display:grid}.org-card>header{padding:16px}.org-card>strong{color:var(--app-navy);padding:12px 16px;font-size:20px;display:block}.org-card>footer{border-top:1px solid var(--app-line);padding:12px 16px}.table-action{color:var(--app-navy);background:#fff;border:1px solid #b8c4cd;margin:2px;padding:6px 8px;font-size:9px}.table-action:disabled{opacity:.4}.quota-grid-vue{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:9px;display:grid}.quota-grid-vue label{border:1px solid var(--app-line);background:#f8fafb;grid-template-columns:1fr 80px;align-items:center;padding:12px;display:grid!important}.quota-grid-vue label>span{flex-direction:column;display:flex}.batch-ledger-vue{gap:12px;display:grid}.batch-card-vue>header{padding:16px 20px}.batch-card-vue>.chip-list,.batch-card-vue>.row-decision,.batch-card-vue>.app-button{margin:14px 18px}.row-decision{flex-wrap:wrap;align-items:center;gap:5px;min-width:230px;display:flex}.row-decision input{flex:1;min-width:150px}.row-decision button{background:var(--app-navy);color:#fff;border:0;padding:6px 8px;font-size:9px}.archive-console-vue{background:#fff8e8;border-left:5px solid #d28b1d;grid-template-columns:1fr 120px 220px 120px auto;align-items:end;gap:10px;padding:19px;display:grid}.archive-console-vue h2,.archive-console-vue p{margin:0}.archive-console-vue span{color:var(--app-muted)}.admin-exam-workspace{gap:16px;display:grid}.exam-builder-vue>header h2,.exam-builder-vue>header p{margin:0}.exam-subject-builder{border:1px solid var(--app-line);background:#f7f9fa}.exam-subject-builder>header{border-bottom:1px solid var(--app-line);justify-content:space-between;padding:12px 15px;display:flex}.exam-subject-builder>header button,.exam-subject-builder article>button{color:var(--app-red);background:0 0;border:0}.exam-subject-builder article{border:1px solid var(--app-line);background:#fff;margin:12px;padding:12px}.admin-exam-grid-vue{grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:14px;display:grid}.admin-exam-grid-vue .exam-apply-card>footer{justify-content:space-between;align-items:center;display:flex}.arrangement-console-vue pre{color:#d6e5ef;white-space:pre-wrap;background:#102941;max-height:360px;padding:15px;font-size:10px;overflow:auto}.result-exam-picker{gap:8px;padding-bottom:5px;display:flex;overflow:auto}.result-exam-picker button{border:1px solid var(--app-line);text-align:left;background:#fff;flex-direction:column;min-width:210px;padding:14px 16px;display:flex}.result-exam-picker button.active{border-color:var(--app-red);box-shadow:inset 0 -3px var(--app-red)}.result-exam-picker span{color:var(--app-blue);font-size:9px}.result-exam-picker small{color:var(--app-muted)}.result-entry-vue>header{justify-content:space-between;align-items:center;gap:16px;padding:16px 20px;display:flex}.result-entry-vue>footer{justify-content:flex-end;gap:8px;padding:13px 16px;display:flex}.admin-admission-workspace,.admin-system-workspace{gap:16px;display:grid}.admission-admin-setting>footer{border-top:1px solid var(--app-line);flex-wrap:wrap;gap:8px;padding-top:14px;display:flex}.plan-admin-row{grid-template-columns:1fr 120px 1fr 1fr auto;gap:7px;display:grid}.plan-admin-row>button{color:var(--app-red);background:0 0;border:0}.notice-editor-vue>header,.workflow-design-grid-vue form>header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.notice-editor-vue>header h2,.notice-editor-vue>header p{margin:0}.check-inline{align-items:center;flex-direction:row!important}.room-editor-list{border:1px solid var(--app-line);background:#f7f9fa}.room-editor-list>header{justify-content:space-between;padding:12px 15px;display:flex}.room-editor-list>header button,.room-editor-list article>button{color:var(--app-red);background:0 0;border:0}.room-editor-list article{border:1px solid var(--app-line);background:#fff;margin:0 12px 12px;padding:12px}.workflow-grid-vue,.workflow-design-grid-vue{grid-template-columns:repeat(auto-fit,minmax(390px,1fr));gap:14px;display:grid}.flow-card-vue>header{padding:16px 18px}.workflow-track-vue{gap:4px;padding:16px;display:flex;overflow:auto}.workflow-track-vue>span{min-width:115px;color:var(--app-muted);background:#edf1f4;grid-template-rows:auto auto;grid-template-columns:26px 1fr;padding:9px;display:grid}.workflow-track-vue i{background:#ccd5dd;border-radius:50%;grid-row:1/3;place-items:center;width:22px;height:22px;font-style:normal;display:grid}.workflow-track-vue span.done,.workflow-track-vue span.current{color:var(--app-navy);background:#e5f3ed}.workflow-track-vue span.done i,.workflow-track-vue span.current i{color:#fff;background:#24845a}.workflow-track-vue small{font-size:8px}.flow-card-vue>footer{border-top:1px solid var(--app-line);align-items:center;gap:5px;padding:12px 16px;display:flex}.flow-card-vue>footer>div{flex-direction:column;flex:1;display:flex}.workflow-step-row-vue{grid-template-columns:32px 1fr 150px 30px;align-items:center;gap:7px;display:grid}.workflow-step-row-vue>b{background:#e8eef3;place-items:center;height:30px;display:grid}.workflow-step-row-vue>button{color:var(--app-red);background:0 0;border:0}.account-number-principle-vue{color:#fff;background:var(--app-navy);padding:26px}.account-number-principle-vue span{color:#7eb0d4;font-size:9px}.account-number-principle-vue h2{margin:5px 0}.account-number-principle-vue p{color:#bed0dd;margin:0}.number-rule-layout-vue{grid-template-columns:1fr 330px;gap:16px;display:grid}.number-rule-layout-vue>aside{background:#f0e8d8;flex-direction:column;justify-content:center;padding:28px;display:flex}.number-rule-layout-vue>aside>strong{color:var(--app-red);overflow-wrap:anywhere;margin:12px 0;font-family:ui-monospace,Consolas,monospace;font-size:24px}.rule-segment-grid{gap:8px;display:grid}.rule-segment-grid label{border:1px solid var(--app-line);grid-template-columns:auto 1fr 100px;align-items:center;padding:10px;display:grid!important}.candidate-onboarding{grid-template-columns:360px 1fr;min-height:100vh;display:grid}.candidate-onboarding>aside{background:var(--app-navy);color:#fff;flex-direction:column;padding:45px;display:flex}.candidate-onboarding>aside>p{color:#85b2d7;margin-top:90px;font-size:10px}.candidate-onboarding>aside>strong{font-family:ui-monospace,Consolas,monospace;font-size:22px}.candidate-onboarding>aside>span{color:#b5c7d8;margin-top:15px;font-size:11px;line-height:1.8}.candidate-onboarding>section{justify-content:center;align-items:center;padding:45px;display:flex}.candidate-onboarding .business-form{width:min(760px,100%)}.onboarding-form{max-width:520px}.app-toast{z-index:100;background:#fff;border-left:4px solid #218252;flex-direction:column;min-width:270px;padding:15px 18px;display:flex;position:fixed;bottom:22px;right:22px;box-shadow:0 18px 45px #08203a33}.app-toast.is-warning{border-color:#d28b1d}.app-toast.is-error{border-color:var(--app-red)}.app-toast span{color:var(--app-muted);margin-top:3px;font-size:10px}.toast-enter-active,.toast-leave-active{transition:opacity .18s,transform .18s}.toast-enter-from,.toast-leave-to{opacity:0;transform:translateY(10px)}.app-modal-backdrop{z-index:90;background:#041427a8;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.route-message{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;padding:30px;display:flex}.route-message>span{color:var(--app-red);font-size:12px;font-weight:800}.route-message h1{font-family:var(--app-title)}.route-message p{color:var(--app-muted)}.route-message button{background:var(--app-navy);color:#fff;border:0;padding:10px 18px}.portal-shell{width:100%;overflow-x:clip}.portal-shell__main,.portal-shell__content,.admin-core-workspace,.record-panel,.portal-shell__topbar{min-width:0}.portal-shell__topbar>div:first-of-type{font-size:13px}.portal-shell__user small{font-size:12px}.portal-shell__user>button{min-height:36px;padding:0 8px;font-size:13px}.portal-shell__brand strong{font-size:17px}.portal-shell__brand small{font-size:9px}.portal-shell__role{font-size:13px}.portal-shell__sidebar nav section>strong{padding-top:18px;font-size:11px}.portal-shell__sidebar nav a{min-height:43px;font-size:14px}.portal-shell__sidebar nav a>span{font-size:12px}.portal-shell__scope span,.portal-shell__scope small{font-size:11px}.portal-shell__scope strong{font-size:13px}.portal-page-heading{border-left:4px solid var(--app-red);align-items:center;margin-bottom:24px;padding-left:17px}.portal-page-heading p{margin-bottom:5px;font-size:11px}.portal-page-heading h1{font-size:clamp(28px,2.3vw,34px);line-height:1.25}.portal-page-heading span{margin-top:7px;font-size:13px}.portal-shell__content .record-metrics article span,.portal-shell__content .dashboard-row small,.portal-shell__content .notice-list-vue small,.portal-shell__content .page-state p,.portal-shell__content .form-callout p,.portal-shell__content .exam-apply-card>p,.portal-shell__content .registration-vue-card>p,.portal-shell__content .reporting-workbench small,.portal-shell__content .scan-preview dt,.portal-shell__content .issued-credential dt,.portal-shell__content .workflow-track-vue small{font-size:12px;line-height:1.5}.portal-shell__content .exam-apply-card>header>span,.portal-shell__content .registration-vue-card header span,.portal-shell__content .admit-card-vue header span,.portal-shell__content .result-card-grid article>span,.portal-shell__content .result-exam-picker span,.portal-shell__content .admission-export-bar>div>span,.portal-shell__content .issued-credential>div>span,.portal-shell__content .scope-banner-vue>span{font-size:11px}.portal-shell__content .exam-apply-card dt,.portal-shell__content .registration-vue-card dt,.portal-shell__content .admit-card-vue dt{font-size:12px}.portal-shell__content .exam-apply-card dd,.portal-shell__content .registration-vue-card dd,.portal-shell__content .admit-card-vue dd{font-size:14px}.portal-shell__content .chip-list>span{font-size:12px}.portal-shell__content .chip-list small{font-size:11px}.portal-shell__content .result-card-grid form button{font-size:12px}.app-button{border-radius:4px;font-size:13px}.business-form,.record-panel{border-color:#d4dee7;border-radius:4px;box-shadow:0 5px 18px #0d2d540b}.business-form{padding:24px}.auth-card h2,.business-form h2{font-size:28px;line-height:1.35}.auth-card>span,.business-form>span{font-size:13px}.auth-card label,.business-form label{color:#425469;font-size:13px;font-weight:650}.auth-card input,.auth-card select,.business-form input:not([type=checkbox]):not([type=radio]),.business-form select,.business-form textarea,.preference-row select{border-radius:3px;font-size:14px;transition:border-color .16s,box-shadow .16s}.auth-card input:focus,.auth-card select:focus,.business-form input:focus,.business-form select:focus,.business-form textarea:focus{border-color:#4b7da7;box-shadow:0 0 0 3px #17558f1a}.admin-create-strip{padding:24px 26px}.admin-create-strip>header{margin-bottom:18px}.admin-create-strip>header p{color:var(--app-blue);letter-spacing:.16em;font-size:11px;font-weight:800}.admin-create-strip .form-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:15px 18px}.admin-create-strip .form-grid label{margin:0}.admin-create-strip>.app-button{margin-top:18px}.check-row{align-items:center;gap:12px 24px;margin-top:18px}.check-row label{cursor:pointer;align-items:center;gap:9px;margin:0;font-size:13px}.business-form input[type=checkbox],.business-form input[type=radio]{width:18px;height:18px;min-height:18px;accent-color:var(--app-blue);flex:0 0 18px;margin:0;padding:0}.record-panel>header{min-height:70px;padding:14px 20px}.record-panel>header h2{font-size:19px;line-height:1.4}.record-panel>header p{font-size:12px;line-height:1.5}.record-panel>header input,.record-panel>header select,.ledger-toolbar input,.ledger-toolbar select,.archive-console-vue select,.row-decision input{min-height:40px;color:var(--app-ink);background:#fff;border:1px solid #c7d3de;border-radius:3px;padding:8px 11px;font-size:13px}.record-panel>header input{width:min(330px,42vw)}.record-panel>header input::placeholder,.row-decision input::placeholder{color:#8795a4}.status-badge{padding:4px 9px;font-size:12px;font-weight:700}.table-scroll{overscroll-behavior-inline:contain;scrollbar-color:#aebdca #eef2f5;width:100%;min-width:0;overflow-x:auto}.table-scroll table{border-spacing:0;border-collapse:separate;color:#26384b;width:100%;min-width:760px;font-size:14px}.table-scroll th,.table-scroll td{text-align:left;vertical-align:middle;border-bottom:1px solid #e1e7ed;padding:12px 14px}.table-scroll th{color:#324a61;white-space:nowrap;background:#edf3f7;font-size:13px;font-weight:750;position:relative}.table-scroll tbody tr:nth-child(2n) td{background:#fbfcfd}.table-scroll tbody tr:hover td{background:#f2f7fb}.table-scroll tbody tr:last-child td{border-bottom:0}.table-scroll td>strong{color:#152f4d;font-weight:750;display:block}.table-scroll td>small{color:#66778a;margin-top:3px;font-size:12px;line-height:1.45;display:block}.table-scroll td:last-child{white-space:nowrap}.table-empty{height:120px;color:var(--app-muted);text-align:center!important}.table-action{cursor:pointer;border-radius:3px;min-height:32px;margin:2px;padding:0 10px;font-size:12px;font-weight:650}.table-action:hover:not(:disabled){border-color:var(--app-blue);color:var(--app-blue);background:#eef5fb}.row-decision{flex-wrap:nowrap;gap:6px;min-width:370px}.row-decision input{min-width:145px}.row-decision button{cursor:pointer;white-space:nowrap;border-radius:3px;min-height:34px;padding:0 10px;font-size:12px;font-weight:700}.row-decision button:first-of-type{color:var(--app-red);background:#fff;box-shadow:inset 0 0 0 1px #d5a6aa}.excel-action-bar{border-radius:4px;gap:9px;padding:12px 14px}.excel-action-bar a,.excel-action-bar label{border-radius:3px;align-items:center;min-height:36px;padding:0 13px;font-size:12px;font-weight:650;display:inline-flex}.candidate-ledger__toolbar{grid-template-columns:minmax(230px,1.3fr) minmax(180px,.9fr) minmax(150px,.7fr) 120px;gap:12px;padding:14px 20px}.candidate-ledger__toolbar label{color:#526477;flex-direction:column;gap:6px;min-width:0;font-size:12px;font-weight:650;display:flex}.candidate-ledger__toolbar input,.candidate-ledger__toolbar select{width:100%}.candidate-ledger table{min-width:1040px}.candidate-ledger th:last-child{min-width:390px}.ledger-pagination{border-top:1px solid var(--app-line);min-height:58px;color:var(--app-muted);background:#f8fafc;justify-content:space-between;align-items:center;gap:18px;padding:10px 20px;font-size:13px;display:flex}.ledger-pagination>div{gap:8px;display:flex}.ledger-pagination button{min-height:34px;color:var(--app-navy);cursor:pointer;background:#fff;border:1px solid #b9c8d5;border-radius:3px;padding:0 13px;font-size:12px;font-weight:650}.ledger-pagination button:disabled{opacity:.45;cursor:not-allowed}.auth-view{overflow:hidden}.auth-view__identity{isolation:isolate;position:relative}.auth-view__identity:after{content:"";z-index:-1;border:1px solid #ffffff17;border-radius:50%;width:360px;height:360px;position:absolute;bottom:-150px;right:-110px;box-shadow:0 0 0 48px #ffffff06,0 0 0 96px #ffffff05}.auth-view__identity>div p{font-size:11px}.auth-view__identity h1{max-width:500px;font-size:clamp(36px,3vw,44px)}.auth-view__identity h1>span{white-space:nowrap;display:block}.auth-view__identity>div>span,.auth-view__identity>small{font-size:13px}.auth-view__panel{background:linear-gradient(135deg,#fff 0%,#f9fbfd 100%);position:relative}.auth-view__back{font-size:13px;position:absolute;top:34px;left:6vw}.auth-card{border-top:4px solid var(--app-navy);background:#fff;padding:30px 32px 32px;box-shadow:0 18px 55px #0d2d541f}.auth-card>p{font-size:11px}.auth-card__switch{font-size:13px;margin:18px 0 0!important}@media (width>=761px){html.auth-login-active,html.auth-login-active body,html.auth-login-active #app{height:100%;overflow:hidden}.auth-view--login{height:100dvh;min-height:0}.auth-view--login .auth-view__identity,.auth-view--login .auth-view__panel{height:100%;min-height:0}.auth-view--login .auth-view__panel{padding-block:32px}}@media (width<=960px){.public-frame__header>.app-container{grid-template-columns:1fr auto}.public-frame__menu{display:block}.public-frame__header nav{border-bottom:1px solid var(--app-line);background:#fff;flex-direction:column;align-items:stretch;padding:12px 20px;display:none;position:absolute;top:76px;left:0;right:0}.public-frame__header nav.is-open{display:flex}.public-directory{grid-template-columns:190px 1fr;gap:25px}.auth-view{grid-template-columns:330px 1fr}.auth-view__identity{padding-inline:36px}.portal-shell__sidebar{width:220px}.portal-shell__main{margin-left:220px}.candidate-dashboard-grid,.security-stack,.admission-dashboard-grid,.notice-template-studio,.ledger-toolbar{grid-template-columns:1fr}.candidate-ledger__toolbar{grid-template-columns:1fr 1fr}}@media (width<=760px){.app-container{width:calc(100% - 28px)}.app-brand small,.public-frame__utility .app-container span:last-child{display:none}.public-frame__footer .app-container{flex-direction:column;justify-content:center;align-items:flex-start}.public-directory{display:block}.public-directory__filters{margin-bottom:24px}.directory-list>button{grid-template-columns:54px 1fr auto;gap:12px}.public-document>header{padding-inline:22px}.public-document>header h1{font-size:25px}.public-document>section{padding-inline:18px}.verification-form,.auth-view{grid-template-columns:1fr}.auth-view__identity{min-height:auto;padding:28px}.auth-view__identity>div{margin:65px 0}.auth-view__identity h1{font-size:38px}.auth-view__panel{min-height:650px;padding:30px 22px}.portal-shell__sidebar{width:min(285px,86vw);transition:transform .18s;transform:translate(-105%)}.portal-shell__sidebar.is-open{transform:translate(0)}.portal-shell__close{color:#fff;background:0 0;border:0;font-size:23px;display:block;position:absolute;top:18px;right:14px}.portal-shell__scrim{z-index:45;background:#04142773;position:fixed;inset:0}.portal-shell__main{margin-left:0}.portal-shell__topbar{grid-template-columns:auto 1fr auto;gap:12px;padding:0 14px}.portal-shell__topbar>button{color:var(--app-navy);background:0 0;border:0;font-size:19px;display:block}.portal-shell__topbar>div:first-of-type span,.portal-shell__topbar>div:first-of-type b,.portal-shell__user>span{display:none}.portal-shell__content{padding:20px 14px}.portal-page-heading{padding-left:13px}.record-panel>header{flex-direction:column;align-items:flex-start}.record-panel>header input{width:100%}.candidate-ledger__toolbar{grid-template-columns:1fr}.ledger-pagination{flex-direction:column;align-items:stretch}.ledger-pagination>div,.ledger-pagination button{flex:1}.form-grid,.preference-row,.totp-setup-grid{grid-template-columns:1fr}.totp-setup-grid img{max-width:220px}.preference-row>b{min-height:30px}.candidate-onboarding{grid-template-columns:1fr}.candidate-onboarding>aside{padding:26px}.candidate-onboarding>aside>p{margin-top:55px}.candidate-onboarding>section{padding:24px 14px}.allocation-row,.reporting-tools,.reporting-decision{grid-template-columns:1fr}.admission-export-bar{flex-direction:column;align-items:stretch}.scan-preview dl{grid-template-columns:1fr 1fr}.notice-template-preview>div{min-height:600px;padding:42px 30px}.issued-credential,.archive-console-vue{grid-template-columns:1fr;align-items:stretch}.issued-credential dl{flex-direction:column;gap:8px}.plan-admin-row,.number-rule-layout-vue,.workflow-grid-vue,.workflow-design-grid-vue{grid-template-columns:1fr}.workflow-step-row-vue{grid-template-columns:30px 1fr}}.center-edit-picker .chip-list button{border:1px solid var(--app-line);color:var(--app-navy);cursor:pointer;background:#fff;border-radius:999px;padding:8px 13px}.center-edit-picker .chip-list button.active{border-color:var(--app-blue);color:var(--app-blue);background:#e9f2fb}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}} +:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218, 81.8%, 56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:#77baf84d;--ck-color-focus-error-shadow:#ff401f4d;--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:#00000026;--ck-color-shadow-drop-active:#0003;--ck-color-shadow-inner:#0000001a;--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:#0000001a;--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-dialog-background:var(--ck-custom-background);--ck-color-dialog-form-header-border:var(--ck-custom-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:var(--ck-color-base-border);--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:var(--ck-color-base-border);--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-background);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:#1fb0ff1a;--ck-color-link-fake-selection:#1fb0ff4d;--ck-color-highlight-background:#ff0;--ck-color-light-red:#fcc;--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica, Arial, Tahoma, Verdana, Sans-Serif;--ck-font-size-tiny:.7em;--ck-font-size-small:.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck.ck-reset,.ck.ck-reset_all,.ck-reset_all :not(.ck-reset_all-excluded,.ck-reset_all-excluded *){box-sizing:border-box;vertical-align:middle;word-wrap:break-word;background:0 0;border:0;width:auto;height:auto;margin:0;padding:0;text-decoration:none;transition:none;position:static}.ck.ck-reset_all,.ck-reset_all :not(.ck-reset_all-excluded,.ck-reset_all-excluded *){border-collapse:collapse;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);color:var(--ck-color-text);text-align:left;white-space:nowrap;cursor:auto;float:none}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded,.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all textarea:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-rounded-corners-radius:0}.ck-rounded-corners{--ck-rounded-corners-radius:var(--ck-border-radius)}:root{--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:.6em;--ck-spacing-extra-large:calc(var(--ck-spacing-unit) * 2);--ck-spacing-large:calc(var(--ck-spacing-unit) * 1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit) * .8);--ck-spacing-medium-small:calc(var(--ck-spacing-unit) * .667);--ck-spacing-small:calc(var(--ck-spacing-unit) * .5);--ck-spacing-tiny:calc(var(--ck-spacing-unit) * .3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit) * .16)}.ck-hidden{display:none!important}:root{--ck-z-default:1;--ck-z-panel:calc(var(--ck-z-default) + 999);--ck-z-dialog:9999}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-powered-by-font-size:calc(var(--ck-font-size-base) * 7.5 / 13);--ck-powered-by-line-height:calc(var(--ck-font-size-base) * 10 / 13);--ck-powered-by-letter-spacing:calc(var(--ck-font-size-base) * -.2 / 13);--ck-powered-by-padding-vertical:2px;--ck-powered-by-padding-horizontal:4px;--ck-powered-by-text-color:#4f4f4f;--ck-powered-by-border-radius:var(--ck-border-radius);--ck-powered-by-background:#fff;--ck-powered-by-border-color:var(--ck-color-focus-border);--ck-powered-by-svg-width:53;--ck-powered-by-svg-height:10;--ck-powered-by-icon-width:calc(var(--ck-font-size-base) * var(--ck-powered-by-svg-width) / 13);--ck-powered-by-icon-height:calc(var(--ck-font-size-base) * var(--ck-powered-by-svg-height) / 13)}.ck.ck-balloon-panel.ck-powered-by-balloon{--ck-border-radius:var(--ck-powered-by-border-radius);box-shadow:none;background:var(--ck-powered-by-background);min-height:unset;z-index:calc(var(--ck-z-panel) - 1)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by{line-height:var(--ck-powered-by-line-height)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by a{cursor:pointer;opacity:.66;filter:grayscale(80%);line-height:var(--ck-powered-by-line-height);padding:var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal);align-items:center;display:flex}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-powered-by__label{font-size:var(--ck-powered-by-font-size);letter-spacing:var(--ck-powered-by-letter-spacing);text-transform:uppercase;cursor:pointer;color:var(--ck-powered-by-text-color);margin-right:4px;padding-left:2px;font-weight:700;line-height:normal}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-icon{cursor:pointer;width:var(--ck-powered-by-icon-width);height:var(--ck-powered-by-icon-height);display:block}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by:hover a{filter:grayscale(0%);opacity:1}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_inside]{border-color:#0000}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_border]{border:var(--ck-focus-ring);border-color:var(--ck-powered-by-border-color)}:root{--ck-evaluation-badge-font-size:calc(var(--ck-font-size-base) * 7.5 / 13);--ck-evaluation-badge-line-height:calc(var(--ck-font-size-base) * 7.5 / 13);--ck-evaluation-badge-letter-spacing:calc(var(--ck-font-size-base) * -.2 / 13);--ck-evaluation-badge-padding-vertical:2px;--ck-evaluation-badge-padding-horizontal:4px;--ck-evaluation-badge-text-color:#4f4f4f;--ck-evaluation-badge-border-radius:var(--ck-border-radius);--ck-evaluation-badge-background:#fff;--ck-evaluation-badge-border-color:var(--ck-color-focus-border)}.ck.ck-balloon-panel.ck-evaluation-badge-balloon{--ck-border-radius:var(--ck-evaluation-badge-border-radius);box-shadow:none;background:var(--ck-evaluation-badge-background);min-height:unset;z-index:calc(var(--ck-z-panel) - 1)}.ck.ck-balloon-panel.ck-evaluation-badge-balloon .ck.ck-evaluation-badge{line-height:var(--ck-evaluation-badge-line-height);padding:var(--ck-evaluation-badge-padding-vertical) var(--ck-evaluation-badge-padding-horizontal)}.ck.ck-balloon-panel.ck-evaluation-badge-balloon .ck.ck-evaluation-badge .ck-evaluation-badge__label{font-size:var(--ck-evaluation-badge-font-size);letter-spacing:var(--ck-evaluation-badge-letter-spacing);text-transform:uppercase;color:var(--ck-evaluation-badge-text-color);padding:0 2px;font-weight:700;line-height:normal;display:block}.ck.ck-balloon-panel.ck-evaluation-badge-balloon[class*=position_inside]{border-color:#0000}.ck.ck-balloon-panel.ck-evaluation-badge-balloon[class*=position_border]{border:var(--ck-focus-ring);border-color:var(--ck-evaluation-badge-border-color)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (width<=600px){.ck.ck-responsive-form{width:calc(.8 * var(--ck-input-width));padding:0}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text,.ck.ck-responsive-form .ck-labeled-field-view .ck-input-number{width:100%;min-width:0}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-large);border-radius:0}:is(.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2)):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] :is(.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2)),[dir=rtl] :is(.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2)){margin-left:0}[dir=rtl] :is(.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2)):last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form .ck-button:after{content:"";z-index:1;width:0;position:absolute;top:-1px;bottom:-1px;right:-1px}.ck.ck-responsive-form .ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck-vertical-form .ck-button:after{content:"";z-index:1;width:0;position:absolute;top:-1px;bottom:-1px;right:-1px}.ck-vertical-form .ck-button:focus:after{display:none}:root{--ck-form-default-width:340px}.ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form.ck-form_default-width{width:var(--ck-form-default-width)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text,.ck.ck-form .ck.ck-input-number{width:0;min-width:100%}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}@media screen and (width<=600px){.ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_with-submit{flex-direction:column;align-items:stretch;padding:0}.ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_with-submit>.ck{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_with-submit .ck-button_with-text{justify-content:center}.ck.ck-form.ck-responsive-form .ck.ck-form__row.ck-form__row_large-bottom-padding{padding-bottom:var(--ck-spacing-large)}}[dir=ltr] .ck.ck-form.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-form.ck-responsive-form>:not(:last-child){margin-left:0}.ck.ck-aria-live-announcer{position:absolute;top:-10000px;left:-10000px}.ck.ck-aria-live-region-list{list-style-type:none}:root{--ck-accessibility-help-dialog-max-width:600px;--ck-accessibility-help-dialog-max-height:400px;--ck-accessibility-help-dialog-border-color:#ccced1;--ck-accessibility-help-dialog-code-background-color:#ededed;--ck-accessibility-help-dialog-kbd-shadow-color:#9c9c9c}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content{padding:var(--ck-spacing-large);max-width:var(--ck-accessibility-help-dialog-max-width);max-height:var(--ck-accessibility-help-dialog-max-height);-webkit-user-select:text;user-select:text;border:1px solid #0000;overflow:auto}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow), 0 0;outline:none}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content *{white-space:normal}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content .ck-label{display:none}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h3{font-size:1.2em;font-weight:700}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h4{font-size:1em;font-weight:700}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content p,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h3,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h4,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content table{margin:1em 0}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl{border-top:1px solid var(--ck-accessibility-help-dialog-border-color);border-bottom:none;grid-template-columns:2fr 1fr;display:grid}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dt,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dd{border-bottom:1px solid var(--ck-accessibility-help-dialog-border-color);padding:.4em 0}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dt{grid-column-start:1}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dd{text-align:right;grid-column-start:2}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content code{background:var(--ck-accessibility-help-dialog-code-background-color);vertical-align:middle;text-align:center;border-radius:2px;padding:.4em;font-size:.9em;line-height:1;display:inline-block}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content code{font-family:monospace}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd{min-width:1.8em;box-shadow:0px 1px 1px var(--ck-accessibility-help-dialog-kbd-shadow-color);margin:0 1px}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd+kbd{margin-left:2px}.ck.ck-button,:where(a).ck.ck-button{--ck-button-background:var(--ck-color-button-default-background);--ck-button-hover-background:var(--ck-color-button-default-hover-background);--ck-button-active-background:var(--ck-color-button-default-active-background);--ck-button-disabled-background:var(--ck-color-button-default-disabled-background);background:var(--ck-button-background)}:is(.ck.ck-button,:where(a).ck.ck-button):not(.ck-disabled):hover{background:var(--ck-button-hover-background)}:is(.ck.ck-button,:where(a).ck.ck-button):not(.ck-disabled):active{background:var(--ck-button-active-background)}.ck.ck-button,:where(a).ck.ck-button{border-radius:var(--ck-rounded-corners-radius);white-space:nowrap;cursor:default;vertical-align:middle;padding:var(--ck-spacing-tiny);text-align:center;min-width:var(--ck-ui-component-min-height);min-height:var(--ck-ui-component-min-height);line-height:1;font-size:inherit;-webkit-appearance:none;-webkit-user-select:none;user-select:none;border:1px solid #0000;align-items:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;display:inline-flex;position:relative}@media (prefers-reduced-motion:reduce){.ck.ck-button,:where(a).ck.ck-button{transition:none}}:is(.ck.ck-button,:where(a).ck.ck-button):active,:is(.ck.ck-button,:where(a).ck.ck-button):focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow), 0 0;outline:none}:is(.ck.ck-button,:where(a).ck.ck-button) .ck-button__icon use,:is(.ck.ck-button,:where(a).ck.ck-button) .ck-button__icon use *{color:inherit}:is(.ck.ck-button,:where(a).ck.ck-button) .ck-button__label{font-size:inherit;font-weight:inherit;color:inherit;cursor:inherit;vertical-align:middle}[dir=ltr] :is(:is(.ck.ck-button,:where(a).ck.ck-button) .ck-button__label){text-align:left}[dir=rtl] :is(:is(.ck.ck-button,:where(a).ck.ck-button) .ck-button__label){text-align:right}:is(.ck.ck-button,:where(a).ck.ck-button) .ck-button__label{display:none}:is(.ck.ck-button,:where(a).ck.ck-button) .ck-button__keystroke{color:inherit;opacity:.5}[dir=ltr] :is(:is(.ck.ck-button,:where(a).ck.ck-button) .ck-button__keystroke){margin-left:var(--ck-spacing-large)}[dir=rtl] :is(:is(.ck.ck-button,:where(a).ck.ck-button) .ck-button__keystroke){margin-right:var(--ck-spacing-large)}:is(.ck.ck-button,:where(a).ck.ck-button).ck-disabled{background:var(--ck-button-disabled-background)}:is(.ck.ck-button,:where(a).ck.ck-button).ck-disabled:active,:is(.ck.ck-button,:where(a).ck.ck-button).ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow), 0 0}:is(.ck.ck-button,:where(a).ck.ck-button).ck-disabled .ck-button__icon,:is(.ck.ck-button,:where(a).ck.ck-button).ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}:is(.ck.ck-button,:where(a).ck.ck-button).ck-disabled .ck-button__keystroke{opacity:.3}:is(.ck.ck-button,:where(a).ck.ck-button).ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] :is(:is(.ck.ck-button,:where(a).ck.ck-button).ck-button_with-text .ck-button__icon){margin-right:var(--ck-spacing-medium)}[dir=rtl] :is(:is(.ck.ck-button,:where(a).ck.ck-button).ck-button_with-text .ck-button__icon){margin-left:var(--ck-spacing-medium)}:is(.ck.ck-button,:where(a).ck.ck-button).ck-button_with-text .ck-button__label{display:inline-block}:is(.ck.ck-button,:where(a).ck.ck-button).ck-button_with-keystroke .ck-button__label{flex-grow:1}:is(.ck.ck-button,:where(a).ck.ck-button).ck-on{--ck-button-background:var(--ck-color-button-on-background);--ck-button-hover-background:var(--ck-color-button-on-hover-background);--ck-button-active-background:var(--ck-color-button-on-active-background);--ck-button-disabled-background:var(--ck-color-button-on-disabled-background);color:var(--ck-color-button-on-color)}:is(.ck.ck-button,:where(a).ck.ck-button).ck-button-save{color:var(--ck-color-button-save)}:is(.ck.ck-button,:where(a).ck.ck-button).ck-button-cancel{color:var(--ck-color-button-cancel)}[dir=ltr] :is(.ck.ck-button,:where(a).ck.ck-button){justify-content:left}[dir=rtl] :is(.ck.ck-button,:where(a).ck.ck-button){justify-content:right}:is(.ck.ck-button,:where(a).ck.ck-button):not(.ck-button_with-text){justify-content:center}.ck.ck-button-action,a.ck.ck-button-action{--ck-button-background:var(--ck-color-button-action-background);--ck-button-hover-background:var(--ck-color-button-action-hover-background);--ck-button-active-background:var(--ck-color-button-action-active-background);--ck-button-disabled-background:var(--ck-color-button-action-disabled-background);color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}:root{--ck-switch-button-toggle-width:2.61538em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px );--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton:hover,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:active{color:inherit;background:0 0}[dir=ltr] :is(.ck.ck-button.ck-switchbutton .ck-button__label){margin-right:calc(2 * var(--ck-spacing-large))}[dir=rtl] :is(.ck.ck-button.ck-switchbutton .ck-button__label){margin-left:calc(2 * var(--ck-spacing-large))}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:var(--ck-rounded-corners-radius);width:var(--ck-switch-button-toggle-width);background:var(--ck-color-switch-button-off-background);border:1px solid #0000;transition:background .4s,box-shadow .2s ease-in-out,outline .2s ease-in-out}[dir=ltr] :is(.ck.ck-button.ck-switchbutton .ck-button__toggle){margin-left:auto}[dir=rtl] :is(.ck.ck-button.ck-switchbutton .ck-button__toggle){margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:calc(.5 * var(--ck-rounded-corners-radius));width:var(--ck-switch-button-toggle-inner-size);height:var(--ck-switch-button-toggle-inner-size);background:var(--ck-color-switch-button-inner-background);transition:all .3s}@media (prefers-reduced-motion:reduce){.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{transition:none}}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton .ck-button__toggle{display:block}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{box-shadow:none;border-color:#0000;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);outline-offset:1px;outline:var(--ck-focus-ring)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] :is(.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner){transform:translateX(var(--ck-switch-button-translation))}[dir=rtl] :is(.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner){transform:translateX(calc(-1 * var(--ck-switch-button-translation)))}.ck.ck-button.ck-list-item-button{padding:var(--ck-spacing-tiny) calc(2 * var(--ck-spacing-standard))}.ck.ck-button.ck-list-item-button,.ck.ck-button.ck-list-item-button.ck-on{background:var(--ck-color-list-background);color:var(--ck-color-text)}[dir=ltr] .ck.ck-button.ck-list-item-button:has(.ck-list-item-button__check-holder){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-list-item-button:has(.ck-list-item-button__check-holder){padding-right:var(--ck-spacing-small)}.ck.ck-button.ck-list-item-button:hover:not(.ck-disabled),.ck.ck-button.ck-list-item-button.ck-button.ck-on:hover,.ck.ck-button.ck-list-item-button.ck-on:not(.ck-list-item-button_toggleable),.ck.ck-button.ck-list-item-button.ck-on:hover{background:var(--ck-color-list-button-hover-background)}:is(.ck.ck-button.ck-list-item-button:hover:not(.ck-disabled),.ck.ck-button.ck-list-item-button.ck-button.ck-on:hover,.ck.ck-button.ck-list-item-button.ck-on:not(.ck-list-item-button_toggleable),.ck.ck-button.ck-list-item-button.ck-on:hover):not(.ck-disabled){color:var(--ck-color-text)}.ck.ck-list-item-button{min-height:unset;border-radius:0;width:100%}[dir=ltr] .ck.ck-list-item-button{text-align:left}[dir=rtl] .ck.ck-list-item-button{text-align:right}[dir=ltr] .ck.ck-list-item-button.ck-list-item-button_toggleable{padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-list-item-button.ck-list-item-button_toggleable{padding-right:var(--ck-spacing-small)}.ck.ck-list-item-button .ck-list-item-button__check-holder{width:.9em;height:.9em;display:inline-flex}[dir=ltr] :is(.ck.ck-list-item-button .ck-list-item-button__check-holder){margin-right:var(--ck-spacing-small)}[dir=rtl] :is(.ck.ck-list-item-button .ck-list-item-button__check-holder){margin-left:var(--ck-spacing-small)}.ck.ck-list-item-button .ck-list-item-button__check-icon{height:100%}:root{--ck-collapsible-arrow-size:calc(.5 * var(--ck-icon-size))}.ck.ck-collapsible>.ck.ck-button{width:100%;color:inherit;border-radius:0;font-weight:700}.ck.ck-collapsible>.ck.ck-button:focus{background:0 0}.ck.ck-collapsible>.ck.ck-button:active,.ck.ck-collapsible>.ck.ck-button:not(:focus),.ck.ck-collapsible>.ck.ck-button:hover:not(:focus){box-shadow:none;background:0 0;border-color:#0000}.ck.ck-collapsible>.ck.ck-button>.ck-icon{margin-right:var(--ck-spacing-medium);width:var(--ck-collapsible-arrow-size)}.ck.ck-collapsible>.ck-collapsible__children{padding:var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck-collapsible__children{display:none}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px;display:grid}.ck.ck-color-grid__tile{transition:box-shadow .2s}@media (forced-colors:none){.ck.ck-color-grid__tile{width:var(--ck-color-grid-tile-size);height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);border:0;padding:0}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border)}}@media (forced-colors:active){.ck.ck-color-grid__tile{width:unset;height:unset;min-width:unset;min-height:unset;padding:0 var(--ck-spacing-small)}.ck.ck-color-grid__tile .ck-button__label{display:inline-block}}@media (prefers-reduced-motion:reduce){.ck.ck-color-grid__tile{transition:none}}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}.color-picker-hex-input{width:max-content}.color-picker-hex-input .ck.ck-input{min-width:unset}.ck.ck-color-picker__row{margin:var(--ck-spacing-large) 0 0;width:unset;flex-flow:row;justify-content:space-between;display:flex}.ck.ck-color-picker__row .ck.ck-labeled-field-view{padding-top:unset}.ck.ck-color-picker__row .ck.ck-input-text{width:unset}.ck.ck-color-picker__row .ck-color-picker__hash-view{padding-top:var(--ck-spacing-tiny);padding-right:var(--ck-spacing-medium)}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker{align-items:center;width:100%;display:flex}[dir=rtl] :is(.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker){justify-content:flex-start}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker{padding:calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);border-bottom-right-radius:0;border-bottom-left-radius:0}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] :is(.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon){margin-right:var(--ck-spacing-standard)}[dir=rtl] :is(.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon){margin-left:var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment label.ck.ck-color-grid__label{font-weight:unset}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker{padding:8px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker{min-width:180px;height:100px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation){border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue){border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius)}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation-pointer),.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue-pointer){width:15px;height:15px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{flex-direction:row;justify-content:space-around;padding:0 8px 8px;display:flex}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-save,.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-cancel{flex:1}:root{--ck-dialog-overlay-background-color:#00000080;--ck-dialog-drop-shadow:0px 0px 6px 2px #00000026;--ck-dialog-max-width:100vw;--ck-dialog-max-height:90vh;--ck-color-dialog-background:var(--ck-color-base-background);--ck-color-dialog-form-header-border:var(--ck-color-base-border)}.ck.ck-dialog-overlay{background:var(--ck-dialog-overlay-background-color);z-index:var(--ck-z-dialog);-webkit-user-select:none;user-select:none;overscroll-behavior:none;animation:.3s ck-dialog-fade-in;position:fixed;inset:0}.ck.ck-dialog-overlay.ck-dialog-overlay__transparent{pointer-events:none;background:0 0;animation:none}.ck.ck-dialog{border-radius:var(--ck-rounded-corners-radius);box-shadow:var(--ck-drop-shadow), 0 0;--ck-drop-shadow:var(--ck-dialog-drop-shadow);background:var(--ck-color-dialog-background);max-height:var(--ck-dialog-max-height);max-width:var(--ck-dialog-max-width);border:1px solid var(--ck-color-base-border);overscroll-behavior:contain;overscroll-behavior:none;width:fit-content;position:absolute}.ck.ck-dialog .ck.ck-form__header{border-bottom:1px solid var(--ck-color-dialog-form-header-border);flex-shrink:0}.ck.ck-dialog:not(.ck-dialog_modal) .ck.ck-form__header .ck-form__header__label{cursor:grab}.ck.ck-dialog-overlay.ck-dialog-overlay__transparent .ck.ck-dialog{pointer-events:all}.ck-dialog-scroll-locked{overflow:hidden}@keyframes ck-dialog-fade-in{0%{background:0 0}to{background:var(--ck-dialog-overlay-background-color)}}.ck.ck-dialog .ck.ck-dialog__actions{padding:var(--ck-spacing-large);display:flex}.ck.ck-dialog .ck.ck-dialog__actions>*+*{margin-left:var(--ck-spacing-large)}.ck.ck-dialog .ck.ck-dialog__actions{justify-content:flex-end}:root{--ck-dropdown-arrow-size:calc(.5 * var(--ck-icon-size));--ck-dropdown-max-width:75vw}.ck.ck-dropdown{font-size:inherit;display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size);pointer-events:none;z-index:var(--ck-z-default)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] :is(.ck.ck-dropdown .ck-button.ck-dropdown__button):not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] :is(.ck.ck-dropdown .ck-button.ck-dropdown__button):not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{text-overflow:ellipsis;width:7em;overflow:hidden}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-right-radius:0;border-bottom-left-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}:is(.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active):focus{box-shadow:var(--ck-focus-outer-shadow), 0 0}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{z-index:var(--ck-z-panel);max-width:var(--ck-dropdown-max-width);display:none;position:absolute}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{top:100%;bottom:auto}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n{left:50%;transform:translate(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translate(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translate(-25%)}.ck.ck-dropdown__panel{border-radius:var(--ck-rounded-corners-radius);box-shadow:var(--ck-drop-shadow), 0 0;background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);min-width:100%;bottom:0}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}.ck.ck-dropdown__panel:focus{outline:none}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-panel) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}[dir=ltr] :is(.ck.ck-splitbutton:hover>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action){border-top-right-radius:unset;border-bottom-right-radius:unset}[dir=rtl] :is(.ck.ck-splitbutton:hover>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action){border-top-left-radius:unset;border-bottom-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] :is(.ck.ck-splitbutton>.ck-splitbutton__arrow){border-top-left-radius:unset;border-bottom-left-radius:unset}[dir=rtl] :is(.ck.ck-splitbutton>.ck-splitbutton__arrow){border-top-right-radius:unset;border-bottom-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-top-width:0;border-bottom-width:0}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:var(--ck-rounded-corners-radius)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action{border-bottom-left-radius:0}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow{border-bottom-right-radius:0}:is(.ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton:hover)>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}:is(.ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton:hover)>.ck-splitbutton__arrow:not(.ck-disabled):after{content:"";background-color:var(--ck-color-split-button-hover-border);width:1px;height:100%;position:absolute}:is(.ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton:hover)>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-border)}[dir=ltr] :is(.ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton:hover)>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] :is(.ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton:hover)>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}:is(.ck.ck-splitbutton.ck-splitbutton_flatten:hover,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open)>.ck-splitbutton__action:not(.ck-disabled),:is(.ck.ck-splitbutton.ck-splitbutton_flatten:hover,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open)>.ck-splitbutton__arrow:not(.ck-disabled),:is(.ck.ck-splitbutton.ck-splitbutton_flatten:hover,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open)>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}:is(:is(.ck.ck-splitbutton.ck-splitbutton_flatten:hover,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open)>.ck-splitbutton__action:not(.ck-disabled),:is(.ck.ck-splitbutton.ck-splitbutton_flatten:hover,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open)>.ck-splitbutton__arrow:not(.ck-disabled),:is(.ck.ck-splitbutton.ck-splitbutton_flatten:hover,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open)>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover)):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}.ck.ck-splitbutton{font-size:inherit}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}:root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{width:max-content;max-width:var(--ck-toolbar-dropdown-max-width)}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-dropdown>.ck-dropdown__panel>.ck-list{border-radius:var(--ck-rounded-corners-radius);border-top-left-radius:0}.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:first-child>.ck-button{border-radius:var(--ck-rounded-corners-radius);border-top-left-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:last-child>.ck-button{border-radius:var(--ck-rounded-corners-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-dropdown-menu-list__nested-menu{display:block}:root{--ck-dropdown-menu-menu-item-min-width:18em}.ck.ck-dropdown-menu-list__nested-menu__item{min-width:var(--ck-dropdown-menu-menu-item-min-width)}.ck-button.ck-dropdown-menu-list__nested-menu__item__button{border-radius:0}.ck-button.ck-dropdown-menu-list__nested-menu__item__button>.ck-spinner-container,.ck-button.ck-dropdown-menu-list__nested-menu__item__button>.ck-spinner-container .ck-spinner{--ck-toolbar-spinner-size:20px}.ck-button.ck-dropdown-menu-list__nested-menu__item__button>.ck-spinner-container{margin-left:calc(-1 * var(--ck-spacing-small));margin-right:var(--ck-spacing-small)}.ck-button.ck-dropdown-menu-list__nested-menu__item__button:focus{box-shadow:none;border-color:#0000}.ck-button.ck-dropdown-menu-list__nested-menu__item__button:focus:not(.ck-on){background:var(--ck-color-button-default-hover-background)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button{width:100%;padding:var(--ck-spacing-tiny) calc(2 * var(--ck-spacing-standard));border-radius:0}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button:focus{box-shadow:none;border-color:#0000}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button:focus:not(.ck-on){background:var(--ck-color-button-default-hover-background)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-button__label{text-overflow:ellipsis;flex-grow:1;overflow:hidden}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button.ck-disabled>.ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button.ck-icon-spacing:not(:has(.ck-button__icon))>.ck-button__label{margin-left:calc(var(--ck-icon-size) - var(--ck-spacing-small))}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{width:var(--ck-dropdown-arrow-size);pointer-events:none;z-index:var(--ck-z-default)}[dir=ltr] :is(.ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow){right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-standard);margin-right:calc(-1 * var(--ck-spacing-small));transform:rotate(-90deg)}[dir=rtl] :is(.ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow){left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small);margin-left:calc(-1 * var(--ck-spacing-small));transform:rotate(90deg)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button.ck-disabled>.ck-dropdown-menu-list__nested-menu__button__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}:root{--ck-dropdown-menu-menu-panel-max-width:75vw}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel{box-shadow:var(--ck-drop-shadow), 0 0;background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);height:fit-content;max-width:var(--ck-dropdown-menu-menu-panel-max-width);max-height:314px;position:absolute;bottom:0;overflow-y:auto}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel:after,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel:before{display:none}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_es,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_se{border-top-left-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_ws,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_sw{border-top-right-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_en,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_ne{border-bottom-left-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_wn,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_nw{border-bottom-right-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel:focus{outline:none}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel{z-index:calc(var(--ck-z-panel) + 1)}:root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content{border-radius:var(--ck-rounded-corners-radius);border:1px solid var(--ck-color-base-border);border-bottom-width:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content.ck-sticky-panel__content_sticky{border-bottom-width:1px}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content .ck-menu-bar{border:0;border-bottom:1px solid var(--ck-color-base-border)}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content .ck-toolbar{border:0}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:var(--ck-rounded-corners-radius)}.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow), 0 0;outline:none}.ck.ck-editor__editable_inline{padding:0 var(--ck-spacing-standard);border:1px solid #0000;overflow:auto}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-editor__editable_inline.ck-editor__editable_inline-root br{margin-top:0;margin-bottom:0}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background)}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0;flex-direction:row;justify-content:space-between;align-items:flex-start;display:flex}.ck.ck-form__row.ck-form__row_large-top-padding{padding-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-form__row_large-bottom-padding{padding-bottom:var(--ck-spacing-large)}.ck.ck-form__row.ck-form__row_with-submit{flex-wrap:nowrap}.ck.ck-form__row.ck-form__row_with-submit>:not(:first-child){margin-inline-start:var(--ck-spacing-standard)}.ck.ck-form__row>.ck.ck-form__row{padding:0}:root{--ck-form-header-height:3.384em}.ck.ck-form__header{padding:var(--ck-spacing-small) var(--ck-spacing-large);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);border-bottom:1px solid var(--ck-color-base-border);flex-flow:row;flex-shrink:0;justify-content:space-between;align-items:center;display:flex}.ck.ck-form__header>.ck-icon{flex-shrink:0;margin-inline-end:var(--ck-spacing-medium)}.ck.ck-form__header .ck-form__header__label{--ck-font-size-base:1.153em;font-weight:700}.ck.ck-form__header:has(.ck-button-back.ck-hidden){padding-inline:var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-form__header:has(.ck-button-back:not(.ck-hidden)){padding-inline:var(--ck-spacing-small) var(--ck-spacing-small)}.ck.ck-form__header>.ck-button-back{margin-inline-end:var(--ck-spacing-small)}.ck.ck-form__header>.ck.ck-button{flex-shrink:0}.ck.ck-form__header h2.ck-form__header__label{text-overflow:ellipsis;flex-grow:1;overflow:hidden}:root{--ck-icon-size:calc(var(--ck-line-height-base) * var(--ck-font-size-normal));--ck-icon-font-size:.833335em}.ck.ck-icon{width:var(--ck-icon-size);height:var(--ck-icon-size);font-size:var(--ck-icon-font-size);cursor:inherit}.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}.ck.ck-icon{vertical-align:middle}:root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:var(--ck-rounded-corners-radius);background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);min-width:var(--ck-input-width);min-height:var(--ck-ui-component-min-height);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}@media (prefers-reduced-motion:reduce){.ck.ck-input{transition:none}}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow), 0 0;outline:none}.ck.ck-input[readonly]{border:1px solid var(--ck-color-input-disabled-border);background:var(--ck-color-input-disabled-background);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow), 0 0}.ck.ck-input.ck-error{border-color:var(--ck-color-input-error-border);animation:.3s both ck-input-shake}@media (prefers-reduced-motion:reduce){.ck.ck-input.ck-error{animation:none}}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow), 0 0}@keyframes ck-input-shake{20%{transform:translate(-2px)}40%{transform:translate(2px)}60%{transform:translate(-1px)}80%{transform:translate(1px)}}.ck-textarea{overflow-x:hidden}.ck.ck-label{font-weight:700;display:block}.ck.ck-voice-label{display:none}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0, 0, .24, .95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(.6 * var(--ck-font-size-base));--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:var(--ck-rounded-corners-radius)}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%;display:flex}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{pointer-events:none;background:var(--ck-color-labeled-field-label-background);padding:0 calc(.5 * var(--ck-font-size-tiny));line-height:initial;text-overflow:ellipsis;max-width:100%;transition:transform var(--ck-labeled-field-view-transition), padding var(--ck-labeled-field-view-transition), background var(--ck-labeled-field-view-transition);font-weight:400;top:0;overflow:hidden}[dir=ltr] :is(.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label){transform-origin:0 0;transform:translate(var(--ck-spacing-medium), -6px) scale(.75);left:0}[dir=rtl] :is(.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label){transform-origin:100% 0;transform:translate(calc(-1 * var(--ck-spacing-medium)), -6px) scale(.75);right:0}@media (prefers-reduced-motion:reduce){.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transition:none}}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{position:relative}.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] :is(.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label){transform:translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] :is(.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label){transform:translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));background:0 0;padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:0 0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}.ck.ck-labeled-field-view.ck-labeled-field-view_full-width{flex-grow:1}.ck.ck-labeled-input .ck-labeled-input__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-input .ck-labeled-input__status_error{color:var(--ck-color-base-error)}.ck.ck-list{border-radius:var(--ck-rounded-corners-radius);background:var(--ck-color-list-background);padding:var(--ck-spacing-small) 0;-webkit-user-select:none;user-select:none;flex-direction:column;list-style-type:none;display:flex}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{z-index:var(--ck-z-default);position:relative}.ck.ck-list__item{cursor:default;min-width:15em}.ck.ck-list__item>.ck-button:not(.ck-list-item-button){padding:var(--ck-spacing-tiny) calc(2 * var(--ck-spacing-standard));min-height:unset;border-radius:0;width:100%}[dir=ltr] :is(.ck.ck-list__item>.ck-button:not(.ck-list-item-button)){text-align:left}[dir=rtl] :is(.ck.ck-list__item>.ck-button:not(.ck-list-item-button)){text-align:right}.ck.ck-list__item>.ck-button:not(.ck-list-item-button) .ck-button__label{line-height:calc(var(--ck-line-height-base) * var(--ck-font-size-base))}.ck.ck-list__item>.ck-button:not(.ck-list-item-button):active{box-shadow:none}.ck.ck-list__item>.ck-button:not(.ck-list-item-button).ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item>.ck-button:not(.ck-list-item-button).ck-on:active{box-shadow:none}.ck.ck-list__item>.ck-button:not(.ck-list-item-button).ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item>.ck-button:not(.ck-list-item-button).ck-on:focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item>.ck-button:not(.ck-list-item-button):hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item>.ck-button.ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item>.ck-button.ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck-list .ck-list__group{padding-top:var(--ck-spacing-medium)}.ck-list .ck-list__group:first-child{padding-top:0}:not(.ck-hidden)~:is(.ck-list .ck-list__group){border-top:1px solid var(--ck-color-base-border)}.ck-list .ck-list__group>.ck-label{padding:var(--ck-spacing-medium) var(--ck-spacing-large) 0;font-size:11px;font-weight:700}.ck.ck-list__separator{background:var(--ck-color-base-border);width:100%;height:1px;margin:var(--ck-spacing-small) 0}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop);--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{border-radius:var(--ck-rounded-corners-radius);box-shadow:var(--ck-drop-shadow), 0 0;background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);min-height:15px;z-index:var(--ck-z-panel);display:none;position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{content:"";border-style:solid;width:0;height:0;position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before,.ck.ck-balloon-panel[class*=arrow_n]:after{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(-1 * var(--ck-balloon-border-width));z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width));z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before,.ck.ck-balloon-panel[class*=arrow_s]:after{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(-1 * var(--ck-balloon-border-width));z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width));z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_e]:before,.ck.ck-balloon-panel[class*=arrow_e]:after{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(-1 * var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:before,.ck.ck-balloon-panel[class*=arrow_w]:after{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(-1 * var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after{margin-left:calc(-1 * var(--ck-balloon-arrow-half-width));left:50%;top:calc(-1 * var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after{left:calc(2 * var(--ck-balloon-arrow-half-width));top:calc(-1 * var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after{right:calc(2 * var(--ck-balloon-arrow-half-width));top:calc(-1 * var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after{margin-left:calc(-1 * var(--ck-balloon-arrow-half-width));left:50%;bottom:calc(-1 * var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after{left:calc(2 * var(--ck-balloon-arrow-half-width));bottom:calc(-1 * var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after{right:calc(2 * var(--ck-balloon-arrow-half-width));bottom:calc(-1 * var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after{margin-right:calc(2 * var(--ck-balloon-arrow-half-width));right:25%;bottom:calc(-1 * var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after{margin-left:calc(2 * var(--ck-balloon-arrow-half-width));left:25%;bottom:calc(-1 * var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after{margin-right:calc(2 * var(--ck-balloon-arrow-half-width));right:25%;top:calc(-1 * var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after{margin-left:calc(2 * var(--ck-balloon-arrow-half-width));left:25%;top:calc(-1 * var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after{right:calc(-1 * var(--ck-balloon-arrow-height));margin-top:calc(-1 * var(--ck-balloon-arrow-half-width));top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after{left:calc(-1 * var(--ck-balloon-arrow-height));margin-top:calc(-1 * var(--ck-balloon-arrow-half-width));top:50%}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small);align-items:center;display:flex}.ck .ck-balloon-rotator__navigation>*{margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation{justify-content:center}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{box-shadow:var(--ck-drop-shadow), 0 0;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);width:100%;height:100%;min-height:15px;position:absolute}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical);z-index:2}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);z-index:1}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical) * 3)}.ck .ck-fake-panel{z-index:calc(var(--ck-z-panel) - 1);position:absolute}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{box-shadow:var(--ck-drop-shadow), 0 0;z-index:var(--ck-z-panel);border-width:0 1px 1px;border-top-left-radius:0;border-top-right-radius:0;position:fixed;top:0}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-autocomplete>.ck-search__results{border-radius:var(--ck-rounded-corners-radius);box-shadow:var(--ck-drop-shadow), 0 0;background:var(--ck-color-base-background);border:1px solid var(--ck-color-dropdown-panel-border);min-width:auto;max-height:200px;position:absolute;overflow-y:auto}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{border-bottom-right-radius:0;border-bottom-left-radius:0;margin-bottom:-1px;bottom:100%}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px;top:100%;bottom:auto}.ck.ck-autocomplete>.ck-search__results{z-index:var(--ck-z-panel)}.ck.ck-autocomplete{position:relative}:root{--ck-search-field-view-horizontal-spacing:calc(var(--ck-icon-size) + var(--ck-spacing-medium))}.ck.ck-search>.ck-labeled-field-view .ck-input{width:100%}.ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{position:absolute;top:50%;transform:translateY(-50%)}[dir=ltr] :is(.ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon){left:var(--ck-spacing-medium)}[dir=rtl] :is(.ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon){right:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view .ck-search__reset{position:absolute;top:50%;transform:translateY(-50%)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon{--ck-labeled-field-label-default-position-x:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon>.ck-labeled-field-view__input-wrapper>.ck-icon{opacity:.5;pointer-events:none}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input{width:100%}[dir=ltr] :is(.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input),[dir=rtl] :is(.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input):not(.ck-input-text_empty){padding-left:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset{--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset.ck-labeled-field-view_empty{--ck-labeled-field-empty-unfocused-max-width:100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{opacity:.5;background:0 0;min-width:auto;min-height:auto;padding:0}[dir=ltr] :is(.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset){right:var(--ck-spacing-medium)}[dir=rtl] :is(.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset){left:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset:hover{opacity:1}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{width:100%}[dir=ltr] :is(.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input):not(.ck-input-text_empty),[dir=rtl] :is(.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input){padding-right:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-search__results{min-width:100%}.ck.ck-search>.ck-search__results>.ck-search__info{width:100%;padding:var(--ck-spacing-medium) var(--ck-spacing-large)}.ck.ck-search>.ck-search__results>.ck-search__info *{white-space:normal}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{font-weight:700;display:block}.ck.ck-search>.ck-search__results>.ck-search__info>span:last-child{margin-top:var(--ck-spacing-medium)}.ck.ck-search>.ck-search__results>.ck-search__info:not(.ck-hidden)~*{display:none}.ck.ck-highlighted-text mark{background:var(--ck-color-highlight-background);vertical-align:initial;font-weight:inherit;line-height:inherit;font-size:inherit}.ck.ck-balloon-panel.ck-tooltip{--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-tooltip-text-padding:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);padding:0 var(--ck-spacing-medium);box-shadow:none;-webkit-user-select:none;user-select:none}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip.ck-tooltip_multi-line .ck-tooltip__text{white-space:break-spaces;padding:var(--ck-tooltip-text-padding) 0;max-width:200px;display:inline-block}.ck.ck-balloon-panel.ck-tooltip:before{display:none}.ck.ck-balloon-panel.ck-tooltip{z-index:calc(var(--ck-z-dialog) + 100)}:root{--ck-toolbar-spinner-size:18px}.ck.ck-spinner-container{width:var(--ck-toolbar-spinner-size);height:var(--ck-toolbar-spinner-size);animation:1.5s linear infinite ck-spinner-rotate;display:block}@media (prefers-reduced-motion:reduce){.ck.ck-spinner-container{animation-duration:3s}}.ck.ck-spinner-container{position:relative}.ck.ck-spinner{width:var(--ck-toolbar-spinner-size);height:var(--ck-toolbar-spinner-size);border:2px solid var(--ck-color-text);z-index:1;border-top-color:#0000;border-radius:50%;margin:0 auto;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%)}@keyframes ck-spinner-rotate{to{transform:rotate(360deg)}}.ck.ck-toolbar{border-radius:var(--ck-rounded-corners-radius);background:var(--ck-color-toolbar-background);padding:0 var(--ck-spacing-small);border:1px solid var(--ck-color-toolbar-border);-webkit-user-select:none;user-select:none;flex-flow:row;align-items:center;display:flex}.ck.ck-toolbar .ck.ck-toolbar__separator{height:var(--ck-icon-size);background:var(--ck-color-toolbar-border);width:1px;min-width:1px;margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small);display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%;height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items{flex-flow:wrap;flex-grow:1;align-items:center;display:flex}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;width:100%;margin:0}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{width:auto;max-width:7em}.ck.ck-toolbar:focus{outline:none}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}:is([dir=rtl] .ck.ck-toolbar,.ck.ck-toolbar[dir=rtl])>.ck-toolbar__items>.ck{margin-right:0}:is([dir=rtl] .ck.ck-toolbar,.ck.ck-toolbar[dir=rtl]):not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}:is([dir=rtl] .ck.ck-toolbar,.ck.ck-toolbar[dir=rtl])>.ck-toolbar__items>.ck:last-child{margin-left:0}:is([dir=rtl] .ck.ck-toolbar,.ck.ck-toolbar[dir=rtl]).ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-left-radius:0;border-bottom-left-radius:0}:is([dir=rtl] .ck.ck-toolbar,.ck.ck-toolbar[dir=rtl]).ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-right-radius:0;border-bottom-right-radius:0}:is([dir=rtl] .ck.ck-toolbar,.ck.ck-toolbar[dir=rtl])>.ck.ck-toolbar__separator,:is([dir=rtl] .ck.ck-toolbar,.ck.ck-toolbar[dir=rtl]).ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-left:var(--ck-spacing-small)}:is([dir=ltr] .ck.ck-toolbar,.ck.ck-toolbar[dir=ltr])>.ck-toolbar__items>.ck:last-child{margin-right:0}:is([dir=ltr] .ck.ck-toolbar,.ck.ck-toolbar[dir=ltr]).ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-right-radius:0;border-bottom-right-radius:0}:is([dir=ltr] .ck.ck-toolbar,.ck.ck-toolbar[dir=ltr]).ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-left-radius:0;border-bottom-left-radius:0}:is([dir=ltr] .ck.ck-toolbar,.ck.ck-toolbar[dir=ltr])>.ck.ck-toolbar__separator,:is([dir=ltr] .ck.ck-toolbar,.ck.ck-toolbar[dir=ltr]).ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-right:var(--ck-spacing-small)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size);z-index:var(--ck-z-default);position:absolute}.ck.ck-menu-bar{background:var(--ck-color-base-background);padding:var(--ck-spacing-small);justify-content:flex-start;gap:var(--ck-spacing-small);border:1px solid var(--ck-color-toolbar-border);flex-wrap:wrap;width:100%;display:flex}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button{width:100%}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button>.ck-button__label{text-overflow:ellipsis;flex-grow:1;overflow:hidden}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button.ck-disabled>.ck-button__label{opacity:var(--ck-disabled-opacity)}[dir=ltr] :is(.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button):not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] :is(.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button):not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button{padding:var(--ck-spacing-small) var(--ck-spacing-medium);min-height:unset}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button .ck-button__label{width:unset;line-height:unset;overflow:visible}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button.ck-on{border-bottom-right-radius:0;border-bottom-left-radius:0}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button .ck-icon{display:none}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button{border-radius:0}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] :is(.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow){margin-left:var(--ck-spacing-standard);margin-right:calc(-1 * var(--ck-spacing-small));transform:rotate(-90deg)}[dir=rtl] :is(.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow){left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small);margin-left:calc(-1 * var(--ck-spacing-small));transform:rotate(90deg)}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button.ck-disabled>.ck-menu-bar__menu__button__arrow{opacity:var(--ck-disabled-opacity)}:root{--ck-menu-bar-menu-max-width:75vw;--ck-menu-bar-nested-menu-horizontal-offset:5px}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel{border-radius:var(--ck-rounded-corners-radius);box-shadow:var(--ck-drop-shadow), 0 0;background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);height:fit-content;z-index:var(--ck-z-panel);max-width:var(--ck-menu-bar-menu-max-width);position:absolute;bottom:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se{border-top-left-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw{border-top-right-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne{border-bottom-left-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw{border-bottom-right-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel:focus{outline:none}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw{bottom:100%}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw{top:100%;bottom:auto}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se{left:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw{right:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en{left:calc(100% - var(--ck-menu-bar-nested-menu-horizontal-offset))}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es{top:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en{bottom:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn{right:calc(100% - var(--ck-menu-bar-nested-menu-horizontal-offset))}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{top:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn{bottom:0}.ck.ck-menu-bar .ck-list-item-button:focus,.ck.ck-menu-bar .ck-list-item-button:active{box-shadow:none;border-color:#0000}.ck.ck-menu-bar.ck-menu-bar_focus-border-enabled .ck-list-item-button:focus,.ck.ck-menu-bar.ck-menu-bar_focus-border-enabled .ck-list-item-button:active{z-index:2;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow), 0 0;outline:none;position:relative}.ck.ck-menu-bar__menu{font-size:inherit;display:block}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level{max-width:100%}.ck.ck-menu-bar__menu{position:relative}:root{--ck-menu-bar-menu-item-min-width:18em}.ck.ck-menu-bar__menu .ck.ck-menu-bar__menu__item{min-width:var(--ck-menu-bar-menu-item-min-width)}.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button{border-radius:0}.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container,.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container .ck-spinner{--ck-toolbar-spinner-size:20px}.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container{font-size:var(--ck-icon-font-size)}[dir=ltr] :is(.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container){margin-right:var(--ck-spacing-medium)}[dir=rtl] :is(.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container){margin-left:var(--ck-spacing-medium)}.ck-content code{background-color:#c7c7c74d;border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:#c7c7c780}.ck-content blockquote{border-left:5px solid #ccc;margin-left:0;margin-right:0;padding-left:1.5em;padding-right:1.5em;font-style:italic;overflow:hidden}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}:root{--ck-bookmark-icon-hover-fill-color:var(--ck-color-widget-hover-border);--ck-bookmark-icon-selected-fill-color:var(--ck-color-focus-border);--ck-bookmark-icon-animation-duration:var(--ck-widget-handler-animation-duration);--ck-bookmark-icon-animation-curve:var(--ck-widget-handler-animation-curve)}.ck .ck-bookmark.ck-widget{outline:none;display:inline-block}.ck .ck-bookmark.ck-widget .ck-bookmark__icon .ck-icon__fill{transition:fill var(--ck-bookmark-icon-animation-duration) var(--ck-bookmark-icon-animation-curve)}.ck .ck-bookmark.ck-widget:hover .ck-bookmark__icon .ck-icon__fill{fill:var(--ck-bookmark-icon-hover-fill-color)}.ck .ck-bookmark.ck-widget.ck-widget_selected .ck-bookmark__icon .ck-icon__fill{fill:var(--ck-bookmark-icon-selected-fill-color)}.ck .ck-bookmark.ck-widget.ck-widget_selected,.ck .ck-bookmark.ck-widget.ck-widget_selected:hover{outline:none}.ck .ck-bookmark.ck-widget .ck-bookmark__icon{display:block;position:relative;top:-.1em}.ck .ck-bookmark.ck-widget .ck-bookmark__icon .ck-icon{vertical-align:middle;width:auto;height:1.2em}.ck .ck-fake-bookmark-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-bookmark-selection_collapsed{border-right:1px solid var(--ck-color-base-text);outline:1px solid #ffffff80;height:100%;margin-right:-1px}.ck.ck-bookmark-balloon .ck.ck-toolbar>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-bookmark-toolbar__preview{padding:0 var(--ck-spacing-medium);max-width:var(--ck-input-width);text-overflow:ellipsis;text-align:center;-webkit-user-select:none;user-select:none;cursor:default;min-width:3em;font-weight:400;overflow:hidden}:root{--ck-bookmark-form-width:340px}@media screen and (width<=600px){:root{--ck-bookmark-form-width:300px}}.ck.ck-bookmark-form{width:var(--ck-bookmark-form-width)}:root{--ck-image-processing-highlight-color:#f9fafa;--ck-image-processing-background-color:#e3e5e8}.ck.ck-editor__editable .image.image-processing{position:relative}.ck.ck-editor__editable .image.image-processing:before{content:"";z-index:1;background:linear-gradient(90deg, var(--ck-image-processing-background-color), var(--ck-image-processing-highlight-color), var(--ck-image-processing-background-color));background-size:200% 100%;width:100%;height:100%;animation:2s linear infinite ck-image-processing-animation;position:absolute;top:0;left:0}.ck.ck-editor__editable .image.image-processing img{height:100%}@keyframes ck-image-processing-animation{0%{background-position:200% 0}to{background-position:-200% 0}}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{bottom:calc(-.5 * var(--ck-clipboard-drop-target-dot-height));top:calc(-.5 * var(--ck-clipboard-drop-target-dot-height));border:1px solid var(--ck-clipboard-drop-target-color);background:var(--ck-clipboard-drop-target-color);margin-left:-1px;position:absolute}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{content:"";width:0;height:0;left:50%;top:calc(-.5 * var(--ck-clipboard-drop-target-dot-height));border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));border-style:solid;display:block;position:absolute;transform:translate(-50%)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{width:0}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{pointer-events:none;display:inline;position:relative}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}:is(.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around){display:none}.ck.ck-clipboard-drop-target-line{border:1px solid var(--ck-clipboard-drop-target-color);background:var(--ck-clipboard-drop-target-color);height:0;z-index:var(--ck-z-default);margin-top:-1px;position:absolute}.ck.ck-clipboard-drop-target-line:before{content:"";top:calc(-.5 * var(--ck-clipboard-drop-target-dot-width));border-style:solid;width:0;height:0;position:absolute}.ck.ck-clipboard-drop-target-line{pointer-events:none}[dir=ltr] .ck.ck-clipboard-drop-target-line:before{border-width:calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height);border-color:transparent transparent transparent var(--ck-clipboard-drop-target-color);left:-1px}[dir=rtl] .ck.ck-clipboard-drop-target-line:before{border-width:calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0;border-color:transparent var(--ck-clipboard-drop-target-color) transparent transparent;right:-1px}:root{--ck-color-code-block-label-background:#757575}.ck.ck-editor__editable pre[data-language]:after{content:attr(data-language);background:var(--ck-color-code-block-label-background);font-size:10px;font-family:var(--ck-font-face);padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);color:#fff;white-space:nowrap;line-height:16px;position:absolute;top:-1px;right:10px}.ck.ck-code-block-dropdown .ck-dropdown__panel{max-height:250px;overflow:hidden auto}.ck-content pre{color:#353535;text-align:left;tab-size:4;white-space:pre-wrap;direction:ltr;background:#c7c7c74d;border:1px solid #c4c4c4;border-radius:2px;min-width:200px;margin:.9em 0;padding:1em;font-style:normal}.ck-content pre code{background:unset;border-radius:0;padding:0}.ck.ck-editor__editable pre{position:relative}:root{--ck-content-font-family:Helvetica, Arial, Tahoma, Verdana, Sans-Serif;--ck-content-font-size:medium;--ck-content-font-color:#000;--ck-content-line-height:1.5;--ck-content-word-break:normal;--ck-content-overflow-wrap:break-word}.ck-content{font-family:var(--ck-content-font-family);font-size:var(--ck-content-font-size);color:var(--ck-content-font-color);line-height:var(--ck-content-line-height);word-break:var(--ck-content-word-break);overflow-wrap:var(--ck-content-overflow-wrap)}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:var(--ck-rounded-corners-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}.ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-panel)}.ck.ck-menu-bar{border:none;border-bottom:1px solid var(--ck-color-toolbar-border)}.ck.ck-emoji{width:320px}.ck .ck.ck-emoji__search{padding:var(--ck-spacing-large);padding-bottom:var(--ck-spacing-medium);justify-content:space-between;align-items:center;display:flex}.ck .ck.ck-emoji__search>.ck.ck-search{flex:1}.ck .ck-fake-emoji-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-emoji-selection_collapsed{border-right:1px solid var(--ck-color-base-text);outline:1px solid #ffffff80;height:100%;margin-right:-1px}div.ck.ck-balloon-panel.ck-emoji-picker-balloon{z-index:calc(var(--ck-z-dialog) + 1)}.ck.ck-emoji__categories-list{margin:0 var(--ck-spacing-large);justify-content:space-between;display:flex}.ck.ck-emoji__categories-list>.ck.ck-button.ck-button_with-text{font-size:var(--ck-font-size-big);min-width:var(--ck-font-size-big);min-height:var(--ck-font-size-big);border-width:0 0 2px;border-bottom-style:solid;border-bottom-color:#0000;padding:0}.ck.ck-emoji__categories-list>.ck.ck-button.ck-button_with-text.ck-emoji__category-item.ck-on{border-bottom-color:var(--ck-color-base-active)}.ck.ck-emoji__categories-list>.ck.ck-button.ck-button_with-text>span{margin:auto}:root{--ck-emoji-grid-tile-size:27px}.ck.ck-emoji .ck.ck-emoji__tiles{border-top:1px solid var(--ck-color-base-border);max-width:100%;max-height:min(265px,40vh);overflow:hidden auto}.ck.ck-emoji .ck.ck-emoji__tiles .ck-emoji__grid{grid-template-columns:repeat(auto-fill, minmax(var(--ck-emoji-grid-tile-size), 1fr));margin:var(--ck-spacing-standard) var(--ck-spacing-large);grid-gap:var(--ck-spacing-small);display:grid}.ck.ck-emoji .ck.ck-emoji__tiles .ck-emoji__tile{width:var(--ck-emoji-grid-tile-size);height:var(--ck-emoji-grid-tile-size);min-width:var(--ck-emoji-grid-tile-size);min-height:var(--ck-emoji-grid-tile-size);border:0;padding:0;font-size:1.5em;transition:box-shadow .2s}@media (prefers-reduced-motion:reduce){.ck.ck-emoji .ck.ck-emoji__tiles .ck-emoji__tile{transition:none}}.ck.ck-emoji .ck.ck-emoji__tiles .ck-emoji__tile:focus:not(.ck-disabled),.ck.ck-emoji .ck.ck-emoji__tiles .ck-emoji__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);border:0}.ck.ck-emoji .ck.ck-emoji__tiles .ck-emoji__tile .ck-button__label{line-height:var(--ck-emoji-grid-tile-size);text-align:center;width:100%}.ck.ck-form.ck-emoji-picker-form{padding-bottom:0}.ck.ck-form.ck-emoji-picker-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border-color:#0000}.ck.ck-emoji__skin-tone{margin-left:var(--ck-spacing-standard)}.ck.ck-emoji__skin-tone>.ck.ck-dropdown .ck.ck-list__item{min-width:1em}.ck.ck-emoji__skin-tone>.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{width:initial}.ck.ck-placeholder,.ck .ck-placeholder{position:relative}@media (forced-colors:active){.ck.ck-placeholder,.ck .ck-placeholder{forced-color-adjust:preserve-parent-color}}:is(.ck.ck-placeholder,.ck .ck-placeholder):before{content:attr(data-placeholder);cursor:text;pointer-events:none;padding-left:inherit;padding-right:inherit;box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;position:absolute;left:0;right:0;overflow:hidden}@media (forced-colors:none){:is(.ck.ck-placeholder,.ck .ck-placeholder):before{color:var(--ck-color-engine-placeholder-text)}}@media (forced-colors:active){:is(.ck.ck-placeholder,.ck .ck-placeholder):before{margin-left:1px;font-style:italic}}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}.ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}.ck-find-result{background:var(--ck-color-highlight-background);color:var(--ck-color-text)}.ck-find-result_selected{background:#ff9633}.ck.ck-find-and-replace-form{width:400px;max-width:100%}.ck.ck-find-and-replace-form:focus{outline:none}.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs,.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions{padding:var(--ck-spacing-large);flex-flow:wrap;flex:auto;align-content:stretch;align-items:center;margin:0;display:flex}:is(.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs,.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions)>.ck-button{flex:none}[dir=ltr] :is(.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs,.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions)>*+*{margin-left:var(--ck-spacing-standard)}[dir=rtl] :is(.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs,.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions)>*+*{margin-right:var(--ck-spacing-standard)}:is(.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs,.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions) .ck-labeled-field-view{flex:auto}:is(.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs,.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions) .ck-labeled-field-view .ck-input{width:100%;min-width:50px}.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs{align-items:flex-start}.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs>.ck-button-prev>.ck-icon{transform:rotate(90deg)}.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs>.ck-button-next>.ck-icon{transform:rotate(-90deg)}.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs .ck-results-counter{color:var(--ck-color-base-border);position:absolute;top:50%;transform:translateY(-50%)}[dir=ltr] :is(.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs .ck-results-counter){right:var(--ck-spacing-standard)}[dir=rtl] :is(.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs .ck-results-counter){left:var(--ck-spacing-standard)}.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs>.ck-labeled-field-replace{padding-top:var(--ck-spacing-standard);flex:0 0 100%}[dir=ltr] :is(.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs>.ck-labeled-field-replace){margin-left:0}[dir=rtl] :is(.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs>.ck-labeled-field-replace){margin-right:0}.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions{margin-top:calc(-1 * var(--ck-spacing-large));flex-wrap:wrap;justify-content:flex-end}.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions>.ck-button-find{font-weight:700}.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions>.ck-button-find .ck-button__label{padding-left:var(--ck-spacing-large);padding-right:var(--ck-spacing-large)}.ck.ck-find-and-replace-form .ck-switchbutton{flex-flow:row;justify-content:space-between;align-items:center;width:100%;display:flex}@media screen and (width<=600px){.ck.ck-find-and-replace-form{width:300px;max-width:100%}.ck.ck-find-and-replace-form.ck-find-and-replace-form__input{flex-wrap:wrap}.ck.ck-find-and-replace-form.ck-find-and-replace-form__input .ck-labeled-field-view{width:100%;margin-bottom:var(--ck-spacing-standard);flex:1 0 auto}.ck.ck-find-and-replace-form.ck-find-and-replace-form__input>.ck-button{text-align:center}.ck.ck-find-and-replace-form.ck-find-and-replace-form__input>.ck-button:first-of-type{flex:auto}[dir=ltr] .ck.ck-find-and-replace-form.ck-find-and-replace-form__input>.ck-button:first-of-type{margin-left:0}[dir=rtl] .ck.ck-find-and-replace-form.ck-find-and-replace-form__input>.ck-button:first-of-type{margin-right:0}.ck.ck-find-and-replace-form.ck-find-and-replace-form__input>.ck-button:first-of-type .ck-button__label{text-align:center;width:100%}.ck.ck-find-and-replace-form.ck-find-and-replace-form__actions>:not(.ck-labeled-field-view){flex-wrap:wrap;flex:auto}.ck.ck-find-and-replace-form.ck-find-and-replace-form__actions>:not(.ck-labeled-field-view)>.ck-button{text-align:center}.ck.ck-find-and-replace-form.ck-find-and-replace-form__actions>:not(.ck-labeled-field-view)>.ck-button:first-of-type{flex:auto}[dir=ltr] .ck.ck-find-and-replace-form.ck-find-and-replace-form__actions>:not(.ck-labeled-field-view)>.ck-button:first-of-type{margin-left:0}[dir=rtl] .ck.ck-find-and-replace-form.ck-find-and-replace-form__actions>:not(.ck-labeled-field-view)>.ck-button:first-of-type{margin-right:0}.ck.ck-find-and-replace-form.ck-find-and-replace-form__actions>:not(.ck-labeled-field-view)>.ck-button .ck-button__label{text-align:center;width:100%}}:root{--ck-content-font-size-tiny:.7em;--ck-content-font-size-small:.85em;--ck-content-font-size-big:1.4em;--ck-content-font-size-huge:1.8em}.ck-content .text-tiny{font-size:var(--ck-content-font-size-tiny)}.ck-content .text-small{font-size:var(--ck-content-font-size-small)}.ck-content .text-big{font-size:var(--ck-content-font-size-big)}.ck-content .text-huge{font-size:var(--ck-content-font-size-huge)}html.ck-fullscreen,body.ck-fullscreen{--ck-z-fullscreen:10000;--ck-z-default:calc(var(--ck-z-fullscreen) + 1);--ck-z-panel:calc(var(--ck-z-default) + 999);--ck-z-dialog:100000;overflow:hidden}:is(html.ck-fullscreen,body.ck-fullscreen) .ckbox:not(#n){--ckbox-z-index-root:calc(var(--ck-z-dialog) + 1);position:absolute}:is(html.ck-fullscreen,body.ck-fullscreen) .ckbox:not(#n) .ckbox-img-editor{--ckbox-z-index-preview:calc(var(--ck-z-dialog) + 1)}:is(html.ck-fullscreen,body.ck-fullscreen) .ck-pagination-view-line{z-index:calc(var(--ck-z-fullscreen) + 1)}:is(html.ck-fullscreen,body.ck-fullscreen) .page-break__label{z-index:calc(var(--ck-z-fullscreen) + 2)}.ck.ck-fullscreen__main-wrapper{width:100%;height:100%;z-index:var(--ck-z-fullscreen);background:var(--ck-color-base-foreground);flex-direction:column;display:flex;position:fixed;top:0;left:0}.ck.ck-fullscreen__main-wrapper .ck.ck-revision-history-ui__changes-navigation{margin-top:0;margin-bottom:0}:not(body>.ck-fullscreen__main-wrapper).ck-fullscreen__main-wrapper{position:absolute}:not(body>.ck-fullscreen__main-wrapper).ck-fullscreen__main-wrapper .ck-fullscreen__top-wrapper{border-top:1px solid var(--ck-color-base-border);border-left:1px solid var(--ck-color-base-border);border-right:1px solid var(--ck-color-base-border);border-radius:var(--ck-border-radius) 0}.ck-fullscreen__menu-bar .ck.ck-menu-bar{border:none}.ck.ck-fullscreen__toolbar .ck-toolbar{border-left:0;border-right:0;border-radius:0}.ck-fullscreen__main-wrapper .ck-fullscreen__editable-wrapper{--ck-fullscreen-editor-top-margin:28px;--ck-fullscreen-editor-bottom-margin:28px;justify-content:flex-start;max-height:100%;display:flex;overflow:auto}.ck-fullscreen__main-wrapper .ck-fullscreen__editable{margin-top:var(--ck-fullscreen-editor-top-margin);height:100%;margin-left:auto}.ck-fullscreen__main-wrapper .ck-fullscreen__editable:after{content:"";height:var(--ck-fullscreen-editor-bottom-margin);display:block}.ck-fullscreen__main-wrapper .ck-fullscreen__editable .ck.ck-editor__editable:not(.ck-editor__nested-editable){box-sizing:border-box;border:1px var(--ck-color-base-border) solid;background:#fff;width:795.701px;max-width:795.701px;height:fit-content;min-height:297mm;margin:0;padding:20mm 12mm;box-shadow:0 2px 3px #00000014}.ck-fullscreen__main-wrapper .ck-fullscreen__editable .ck-source-editing-area{width:795.701px}.ck-fullscreen__sidebar{width:270px;margin-top:var(--ck-fullscreen-editor-top-margin);margin-left:10px}.ck-fullscreen__left-sidebar{--ck-user-avatar-size:28px;box-sizing:border-box;background-color:#0000;flex-direction:column;align-self:flex-start;height:100%;margin-top:0;margin-right:10px;font-family:Helvetica,Arial,sans-serif;display:flex;position:sticky;top:0}.ck-fullscreen__left-sidebar .ck-button.ck-fullscreen__left-sidebar-toggle-button{--ck-icon-size:20px;--ck-ui-component-min-height:0px;margin-top:var(--ck-fullscreen-editor-top-margin);margin-bottom:var(--ck-spacing-large);opacity:.5;border-radius:100%;align-self:flex-start;padding-top:0}.ck-fullscreen__left-sidebar>.ck-fullscreen__left-sidebar-sticky{min-width:270px}.ck-fullscreen__left-sidebar>.ck-fullscreen__left-sidebar-sticky:first-child{padding-top:var(--ck-fullscreen-editor-top-margin)}.ck-fullscreen__left-sidebar.ck-fullscreen__left-sidebar--collapsed{width:65px}.ck-fullscreen__left-sidebar.ck-fullscreen__left-sidebar--collapsed>:not(.ck-fullscreen__left-sidebar-toggle-button){display:none}.ck-fullscreen__left-sidebar .ck.ck-presence-list--collapsed{--ck-user-avatar-size:32px}.ck-fullscreen__left-sidebar .ck-user,.ck-fullscreen__left-sidebar .ck-presence-list__users-counter__text{font-size:.85em}.ck-fullscreen__left-sidebar-item{padding:var(--ck-spacing-medium);margin-bottom:var(--ck-spacing-medium)}.ck-fullscreen__left-sidebar-item:first-child{padding-top:0}.ck-fullscreen__left-sidebar-item:last-child{margin-bottom:0}.ck-fullscreen__left-sidebar-header{--ck-fullscreen-presence-list-header-font-size:.875em;font-size:var(--ck-fullscreen-presence-list-header-font-size);color:var(--ck-document-outline-item-default-color);white-space:nowrap;text-overflow:ellipsis;font-weight:700;overflow:hidden}.ck-fullscreen__left-sidebar--sticky{position:sticky;top:0}.ck-fullscreen__left-sidebar--sticky>:first-child{padding-top:0}.ck-fullscreen__presence-list{margin-top:var(--ck-spacing-medium)}.ck-fullscreen__left-sidebar-item--no-margin{margin:0}.ck-fullscreen__left-sidebar .ck.ck-document-outline{padding-top:0;padding-left:0;padding-right:0}.ck-fullscreen__document-outline-wrapper{padding-top:0;overflow-y:auto}.ck-fullscreen__sidebar.ck-fullscreen__right-sidebar{margin-top:var(--ck-fullscreen-editor-top-margin);margin-right:auto}.ck-fullscreen__sidebar.ck-fullscreen__right-sidebar:not(.ck-fullscreen__right-sidebar--collapsed)>:first-child{min-width:270px}.ck-fullscreen__sidebar.ck-fullscreen__right-sidebar.ck-fullscreen__right-sidebar--collapsed{width:65px}.ck-fullscreen__sidebar.ck-fullscreen__right-sidebar.ck-fullscreen__right-sidebar--collapsed>:first-child{min-width:65px}.ck.ck-fullscreen__right-edge{margin-top:0;margin-left:10px;position:sticky;top:0}.ck.ck-fullscreen__right-edge>:first-child{border-top:none;border-bottom:none;border-right:none;width:495px;height:100%}.ck.ck-heading_heading1 .ck-button__label{font-size:20px}.ck.ck-heading_heading2 .ck-button__label{font-size:17px}.ck.ck-heading_heading3 .ck-button__label{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}:root{--ck-content-highlight-marker-yellow:#fdfd77;--ck-content-highlight-marker-green:#62f962;--ck-content-highlight-marker-pink:#fc7899;--ck-content-highlight-marker-blue:#72ccfd;--ck-content-highlight-pen-red:#e71313;--ck-content-highlight-pen-green:#128a00}.ck-content .marker-yellow{background-color:var(--ck-content-highlight-marker-yellow)}.ck-content .marker-green{background-color:var(--ck-content-highlight-marker-green)}.ck-content .marker-pink{background-color:var(--ck-content-highlight-marker-pink)}.ck-content .marker-blue{background-color:var(--ck-content-highlight-marker-blue)}.ck-content .pen-red{color:var(--ck-content-highlight-pen-red);background-color:#0000}.ck-content .pen-green{color:var(--ck-content-highlight-pen-green);background-color:#0000}.ck-editor__editable .ck-horizontal-line{display:flow-root}.ck-content hr{vertical-align:middle;background:#dedede;border:0;width:100%;height:4px;margin:15px 0;display:inline-block}:root{--ck-html-embed-content-width:calc(100% - 1.5 * var(--ck-icon-size));--ck-html-embed-source-height:10em;--ck-html-embed-unfocused-outline-width:1px;--ck-html-embed-content-min-height:calc(var(--ck-icon-size) + var(--ck-spacing-standard));--ck-html-embed-source-disabled-background:var(--ck-color-base-foreground);--ck-html-embed-source-disabled-color:#737373}.ck-widget.raw-html-embed{font-size:var(--ck-font-size-base);background-color:var(--ck-color-base-foreground);min-width:15em;margin:.9em auto;display:flow-root;position:relative}.ck-widget.raw-html-embed:not(.ck-widget_selected):not(:hover){outline:var(--ck-html-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border)}.ck-widget.raw-html-embed[dir=ltr]{text-align:left}.ck-widget.raw-html-embed[dir=rtl]{text-align:right}.ck-widget.raw-html-embed:before{content:attr(data-html-embed-label);top:calc(-1 * var(--ck-html-embed-unfocused-outline-width));left:var(--ck-spacing-standard);transition:background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);padding:calc(var(--ck-spacing-tiny) + var(--ck-html-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius);color:var(--ck-color-base-background);font-size:var(--ck-font-size-tiny);font-family:var(--ck-font-face);z-index:1;background:#999;position:absolute}.ck-widget.raw-html-embed[dir=rtl]:before{left:auto;right:var(--ck-spacing-standard)}.ck-widget.raw-html-embed[dir=ltr] .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before{margin-left:50px}.ck.ck-editor__editable.ck-blurred .ck-widget.raw-html-embed.ck-widget_selected:before{padding:var(--ck-spacing-tiny) var(--ck-spacing-small);top:0}.ck.ck-editor__editable:not(.ck-blurred) .ck-widget.raw-html-embed.ck-widget_selected:before{padding:var(--ck-spacing-tiny) var(--ck-spacing-small);background:var(--ck-color-focus-border);top:0}.ck.ck-editor__editable .ck-widget.raw-html-embed:not(.ck-widget_selected):hover:before{padding:var(--ck-spacing-tiny) var(--ck-spacing-small);top:0}.ck-widget.raw-html-embed .raw-html-embed__content-wrapper{padding:var(--ck-spacing-standard)}.ck-widget.raw-html-embed .raw-html-embed__buttons-wrapper{top:var(--ck-spacing-standard);right:var(--ck-spacing-standard);display:flex;position:absolute}.ck-widget.raw-html-embed .raw-html-embed__buttons-wrapper .ck-button.raw-html-embed__save-button{color:var(--ck-color-button-save)}.ck-widget.raw-html-embed .raw-html-embed__buttons-wrapper .ck-button.raw-html-embed__cancel-button{color:var(--ck-color-button-cancel)}.ck-widget.raw-html-embed .raw-html-embed__buttons-wrapper .ck-button:not(:first-child){margin-top:var(--ck-spacing-small)}.ck-widget.raw-html-embed .raw-html-embed__buttons-wrapper{flex-direction:column}.ck-widget.raw-html-embed[dir=rtl] .raw-html-embed__buttons-wrapper{left:var(--ck-spacing-standard);right:auto}.ck-widget.raw-html-embed .raw-html-embed__source{box-sizing:border-box;height:var(--ck-html-embed-source-height);width:var(--ck-html-embed-content-width);resize:none;min-width:0;padding:var(--ck-spacing-standard);tab-size:4;white-space:pre-wrap;font-family:monospace;font-size:var(--ck-font-size-base);text-align:left;direction:ltr}.ck-widget.raw-html-embed .raw-html-embed__source[disabled]{background:var(--ck-html-embed-source-disabled-background);color:var(--ck-html-embed-source-disabled-color);-webkit-text-fill-color:var(--ck-html-embed-source-disabled-color);opacity:1}.ck-widget.raw-html-embed .raw-html-embed__preview{min-height:var(--ck-html-embed-content-min-height);width:var(--ck-html-embed-content-width);position:relative;overflow:hidden}.ck-editor__editable:not(.ck-read-only) :is(.ck-widget.raw-html-embed .raw-html-embed__preview){pointer-events:none}.ck-widget.raw-html-embed .raw-html-embed__preview{display:flex}.ck-widget.raw-html-embed .raw-html-embed__preview-content{box-sizing:border-box;background-color:var(--ck-color-base-foreground);border-collapse:separate;width:100%;margin:auto;display:table;position:relative}.ck-widget.raw-html-embed .raw-html-embed__preview-content>*{margin-left:auto;margin-right:auto}.ck-widget.raw-html-embed .raw-html-embed__preview-content{border-spacing:7px}.ck-widget.raw-html-embed .raw-html-embed__preview-placeholder{color:var(--ck-html-embed-source-disabled-color);justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.ck-widget.raw-html-embed{font-style:normal}:root{--ck-html-object-embed-unfocused-outline-width:1px}.ck-widget.html-object-embed{font-size:var(--ck-font-size-base);background-color:var(--ck-color-base-foreground);padding:var(--ck-spacing-small);padding-top:calc(var(--ck-font-size-tiny) + var(--ck-spacing-large));min-width:calc(76px + var(--ck-spacing-standard))}.ck-widget.html-object-embed:not(.ck-widget_selected):not(:hover){outline:var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border)}.ck-widget.html-object-embed:before{content:attr(data-html-object-embed-label);top:0;left:var(--ck-spacing-standard);transition:background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);padding:calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius);color:var(--ck-color-base-background);font-style:normal;font-weight:400;font-size:var(--ck-font-size-tiny);font-family:var(--ck-font-face);background:#999;position:absolute}.ck-widget.html-object-embed .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before{margin-left:50px}.ck-widget.html-object-embed .html-object-embed__content{pointer-events:none}div.ck-widget.html-object-embed{margin:1em auto}span.ck-widget.html-object-embed{display:inline-block}:root{--ck-content-color-image-caption-background:#f7f7f7;--ck-content-color-image-caption-text:#333;--ck-color-image-caption-highlighted-background:#fd0}.ck-content .image>figcaption{caption-side:bottom;word-break:normal;overflow-wrap:anywhere;break-before:avoid;color:var(--ck-content-color-image-caption-text);background-color:var(--ck-content-color-image-caption-background);outline-offset:-1px;padding:.6em;font-size:.75em;display:table-caption}@media (forced-colors:active){.ck-content .image>figcaption{background-color:unset;color:unset}}@media (forced-colors:none){.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:.6s ease-out ck-image-caption-highlight}}@media (prefers-reduced-motion:reduce){.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:none}}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highlighted-background)}to{background-color:var(--ck-content-color-image-caption-background)}}.ck-content img.image_resized{height:auto}.ck-content .image.image_resized{box-sizing:border-box;max-width:100%;display:block}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}:is(.ck.ck-editor__editable td,.ck.ck-editor__editable th) .image-inline.image_resized img{max-width:100%}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}:root{--ck-content-image-style-spacing:1.5em;--ck-content-inline-image-style-spacing:calc(var(--ck-content-image-style-spacing) / 2)}.ck-content .image.image-style-block-align-left,.ck-content .image.image-style-block-align-right{max-width:calc(100% - var(--ck-content-image-style-spacing))}.ck-content .image.image-style-align-left,.ck-content .image.image-style-align-right{clear:none}.ck-content .image.image-style-side{float:right;margin-left:var(--ck-content-image-style-spacing);max-width:50%}.ck-content .image.image-style-align-left{float:left;margin-right:var(--ck-content-image-style-spacing)}.ck-content .image.image-style-align-right{float:right;margin-left:var(--ck-content-image-style-spacing)}.ck-content .image.image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image.image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-content-image-style-spacing)}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-content-image-style-spacing)}.ck-content p+.image.image-style-align-left,.ck-content p+.image.image-style-align-right,.ck-content p+.image.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-top:var(--ck-content-inline-image-style-spacing);margin-bottom:var(--ck-content-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-content-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-content-inline-image-style-spacing)}:is(.ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline).ck-appear{animation:.7s fadeIn}@media (prefers-reduced-motion:reduce){:is(.ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline).ck-appear{opacity:1;animation:none}}.ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);width:0;height:2px;transition:width .1s;position:absolute;top:0;left:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px, 100% - 50px, 1px)}.ck-image-upload-complete-icon{opacity:0;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px * var(--ck-image-upload-icon-size));width:calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));top:min(var(--ck-spacing-medium), 6%);right:min(var(--ck-spacing-medium), 6%);border-radius:50%;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;animation-duration:.5s,.5s;animation-delay:0s,3s;animation-fill-mode:forwards,forwards;display:block;position:absolute;overflow:hidden}.ck-image-upload-complete-icon:after{opacity:0;transform-origin:0 0;border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;content:"";width:0;height:0;animation-name:ck-upload-complete-icon-check;animation-duration:.5s;animation-delay:.5s;animation-fill-mode:forwards;position:absolute;top:50%;left:25%;transform:scaleX(-1)rotate(135deg)}@media (prefers-reduced-motion:reduce){.ck-image-upload-complete-icon{animation-duration:0s}.ck-image-upload-complete-icon:after{opacity:1;width:.3em;height:.45em;animation:none}}.ck-image-upload-complete-icon{z-index:1}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{opacity:1;width:0;height:0}33%{width:.3em;height:0}to{opacity:1;width:.3em;height:.45em}}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{width:100%;margin:0}.ck .ck-image-upload-placeholder.image-inline{width:calc(2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{width:var(--ck-upload-placeholder-loader-size);height:var(--ck-upload-placeholder-loader-size);border-top:3px solid var(--ck-color-upload-placeholder-loader);content:"";border-right:2px solid #0000;border-radius:50%;animation:1s linear infinite ck-upload-placeholder-loader;position:relative}.ck .ck-upload-placeholder-loader{left:0}@keyframes ck-upload-placeholder-loader{to{transform:rotate(360deg)}}.ck-content .image{clear:both;text-align:center;min-width:50px;margin:.9em auto;display:table}.ck-content .image img{min-width:100%;max-width:100%;height:auto;margin:0 auto;display:block}.ck-content .image-inline{align-items:flex-start;max-width:100%;display:inline-flex}.ck-content .image-inline picture{display:flex}.ck-content .image-inline picture,.ck-content .image-inline img{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{padding-left:inherit;padding-right:inherit;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ck.ck-editor__editable .image{z-index:1}.ck.ck-editor__editable .image.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable .image-inline img{height:auto}:is(.ck.ck-editor__editable td,.ck.ck-editor__editable th) .image-inline img{max-width:none}.ck.ck-editor__editable img.image_placeholder{background-size:100% 100%}:root{--ck-image-insert-insert-by-url-width:250px}.ck.ck-image-insert-url{--ck-input-width:100%;width:400px}.ck.ck-image-insert-url .ck-image-insert-url__action-row{grid-column-gap:var(--ck-spacing-large);margin-top:var(--ck-spacing-large);display:grid}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-save,.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-cancel{justify-content:center;min-width:auto}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}.ck.ck-image-insert-url .ck-image-insert-url__action-row{grid-template-columns:repeat(2,1fr)}.ck.ck-image-insert-url{padding:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-image-insert-form>.ck.ck-button{width:100%;display:block}[dir=ltr] :is(.ck.ck-image-insert-form>.ck.ck-button){text-align:left}[dir=rtl] :is(.ck.ck-image-insert-form>.ck.ck-button){text-align:right}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:first-child){border-top:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:last-child){border-bottom:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-collapsible{min-width:var(--ck-image-insert-insert-by-url-width)}.ck.ck-image-insert-form>.ck.ck-image-insert-url{min-width:var(--ck-image-insert-insert-by-url-width);padding:var(--ck-spacing-large)}.ck.ck-image-insert-form:focus{outline:none}:root{--ck-image-custom-resize-form-width:340px}@media screen and (width<=600px){:root{--ck-image-custom-resize-form-width:300px}}.ck.ck-image-custom-resize-form.ck-responsive-form{width:var(--ck-image-custom-resize-form-width)}:root{--ck-text-alternative-form-width:340px}@media screen and (width<=600px){:root{--ck-text-alternative-form-width:300px}}.ck.ck-text-alternative-form.ck-responsive-form{width:var(--ck-text-alternative-form-width)}.ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);outline:1px solid #ffffff80;height:100%;margin-right:-1px}:root{--ck-link-bookmark-icon-size:calc(var(--ck-icon-size) * .7)}.ck.ck-toolbar.ck-link-toolbar>.ck-toolbar__items{flex-wrap:nowrap}a.ck.ck-button.ck-link-toolbar__preview{padding:0 var(--ck-spacing-medium);color:var(--ck-color-link-default);cursor:pointer;flex-direction:row;justify-content:center;align-items:center;display:flex}a.ck.ck-button.ck-link-toolbar__preview .ck.ck-button__label{text-overflow:ellipsis;max-width:var(--ck-input-width)}a.ck.ck-button.ck-link-toolbar__preview,a.ck.ck-button.ck-link-toolbar__preview:hover,a.ck.ck-button.ck-link-toolbar__preview:focus,a.ck.ck-button.ck-link-toolbar__preview:active{background:0 0}a.ck.ck-button.ck-link-toolbar__preview:active{box-shadow:none}a.ck.ck-button.ck-link-toolbar__preview:hover,a.ck.ck-button.ck-link-toolbar__preview:focus{text-decoration:underline}a.ck.ck-button.ck-link-toolbar__preview.ck-button_with-text .ck.ck-icon.ck-button__icon{width:var(--ck-link-bookmark-icon-size);height:var(--ck-link-bookmark-icon-size)}[dir=ltr] :is(a.ck.ck-button.ck-link-toolbar__preview.ck-button_with-text .ck.ck-icon.ck-button__icon){margin-right:var(--ck-spacing-tiny);margin-left:var(--ck-spacing-small)}[dir=rtl] :is(a.ck.ck-button.ck-link-toolbar__preview.ck-button_with-text .ck.ck-icon.ck-button__icon){margin-left:var(--ck-spacing-tiny);margin-right:var(--ck-spacing-small)}a.ck.ck-button.ck-link-toolbar__preview:has(.ck-icon){padding-left:var(--ck-spacing-extra-tiny)}.ck.ck-link-toolbar__preview{display:inline-block}.ck.ck-link-toolbar__preview .ck-button__label{overflow:hidden}:root{--ck-link-image-indicator-icon-size:20;--ck-link-image-indicator-icon-is-visible:clamp(0px, 100% - 50px, 1px)}:is(.ck.ck-editor__editable figure.image>a,.ck.ck-editor__editable a span.image-inline):after{content:"";top:min(var(--ck-spacing-medium), 6%);right:min(var(--ck-spacing-medium), 6%);width:calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));height:calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));background-color:#0006;background-image:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+);background-position:50%;background-repeat:no-repeat;background-size:14px;border-radius:100%;display:block;position:absolute;overflow:hidden}:root{--ck-link-panel-width:340px;--ck-link-provider-list-item-text-height:calc(var(--ck-line-height-base) * var(--ck-font-size-base));--ck-link-provider-list-item-height:calc(var(--ck-link-provider-list-item-text-height) + var(--ck-spacing-small) + var(--ck-spacing-small))}@media screen and (width<=600px){:root{--ck-link-panel-width:300px}}.ck.ck-form.ck-link-form{width:var(--ck-link-panel-width);padding-bottom:0}@media screen and (width<=600px){.ck.ck-form.ck-link-form.ck-responsive-form .ck-labeled-field-view{margin:0}}.ck.ck-form.ck-link-form .ck-link-form__providers-list{border-top:1px solid var(--ck-color-base-border);flex-direction:column;display:flex}.ck.ck-form.ck-link-form .ck-link-form__providers-list:has(.ck-list__item:nth-child(n+5)){max-height:calc(var(--ck-link-provider-list-item-height) * 4 + var(--ck-spacing-large) + 1px);overflow:auto}.ck.ck-form.ck-link-form .ck-link-form__providers-list .ck-link__button{padding:var(--ck-spacing-small) var(--ck-spacing-large);border-radius:0}.ck.ck-form.ck-link-form .ck-link-form__providers-list .ck-link__button>.ck-button__label{text-overflow:ellipsis;flex-grow:1;overflow:hidden}.ck.ck-link-form .ck-link__items:empty{display:none}:root{--ck-link-properties-width:340px}@media screen and (width<=600px){:root{--ck-link-properties-width:300px}}.ck.ck-link-properties{width:var(--ck-link-properties-width)}:root{--ck-link-providers-width:340px;--ck-link-list-view-max-height:240px;--ck-link-list-view-icon-size:calc(var(--ck-icon-size) * .8)}@media screen and (width<=600px){:root{--ck-link-providers-width:300px}}.ck.ck-link-providers{width:var(--ck-link-providers-width)}.ck.ck-link-providers .ck-form__header__label{text-overflow:ellipsis;overflow:hidden}.ck.ck-link-providers>.ck-link-providers__list{max-height:min(var(--ck-link-list-view-max-height), 40vh);overflow:hidden auto}.ck.ck-link-providers>.ck-link-providers__list .ck-button>.ck-icon{width:var(--ck-link-list-view-icon-size);height:var(--ck-link-list-view-icon-size);flex-shrink:0}.ck.ck-link-providers>.ck-link-providers__list .ck-button>.ck-button__label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ck.ck-link-providers>.ck-link-providers__list{overscroll-behavior:contain}.ck.ck-link-providers .ck-link__empty-list-info{padding:calc(2 * var(--ck-spacing-large)) var(--ck-spacing-medium);text-align:center;font-style:italic}.ck-editor__editable .ck-list-bogus-paragraph{display:block}:root{--ck-list-style-button-size:44px}.ck.ck-list-styles-list{row-gap:var(--ck-spacing-medium);column-gap:var(--ck-spacing-medium);padding:var(--ck-spacing-large);grid-template-columns:repeat(3,auto)}.ck.ck-list-styles-list .ck-button{width:var(--ck-list-style-button-size);height:var(--ck-list-style-button-size);box-sizing:content-box;margin:0;padding:0}.ck.ck-list-styles-list .ck-button .ck-icon{width:var(--ck-list-style-button-size);height:var(--ck-list-style-button-size)}.ck.ck-list-styles-list{display:grid}.ck.ck-list-properties.ck-list-properties_without-styles{padding:var(--ck-spacing-large)}.ck.ck-list-properties.ck-list-properties_without-styles>*{min-width:14em}.ck.ck-list-properties.ck-list-properties_without-styles>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-list-styles-list{grid-template-columns:repeat(4,auto)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*{width:100%}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties .ck.ck-numbered-list-properties__start-index .ck-input{width:100%;min-width:auto}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order{margin-bottom:calc(-1 * var(--ck-spacing-tiny));background:0 0;padding-left:0;padding-right:0}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:active,.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:hover{box-shadow:none;background:0 0;border-color:#0000}:root{--ck-content-list-marker-color:var(--ck-content-font-color);--ck-content-list-marker-font-family:var(--ck-content-font-family);--ck-content-list-marker-font-size:var(--ck-content-font-size)}.ck-content li>p:first-of-type{margin-top:0}.ck-content li>p:only-of-type{margin-top:0;margin-bottom:0}.ck-content li.ck-list-marker-bold::marker{font-weight:700}.ck-content li.ck-list-marker-italic::marker{font-style:italic}.ck-content li.ck-list-marker-color::marker{color:var(--ck-content-list-marker-color)}.ck-content li.ck-list-marker-font-family::marker{font-family:var(--ck-content-list-marker-font-family)}.ck-content li.ck-list-marker-font-size::marker{font-size:var(--ck-content-list-marker-font-size)}.ck-content li.ck-list-marker-font-size-tiny::marker{font-size:var(--ck-content-font-size-tiny)}.ck-content li.ck-list-marker-font-size-small::marker{font-size:var(--ck-content-font-size-small)}.ck-content li.ck-list-marker-font-size-big::marker{font-size:var(--ck-content-font-size-big)}.ck-content li.ck-list-marker-font-size-huge::marker{font-size:var(--ck-content-font-size-huge)}.ck-content ol{list-style-type:decimal}.ck-content ol ol{list-style-type:lower-latin}.ck-content ol ol ol{list-style-type:lower-roman}.ck-content ol ol ol ol{list-style-type:upper-latin}.ck-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content ul{list-style-type:disc}.ck-content ul ul{list-style-type:circle}.ck-content ul ul ul,.ck-content ul ul ul ul{list-style-type:square}:root{--ck-content-todo-list-checkmark-size:16px}.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{-webkit-appearance:none;width:var(--ck-content-todo-list-checkmark-size);height:var(--ck-content-todo-list-checkmark-size);vertical-align:middle;border:0;margin-left:0;margin-right:-15px;display:inline-block;position:relative;left:-25px;right:0}[dir=rtl]:is(.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input){margin-left:-15px;margin-right:0;left:0;right:-25px}:is(.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input):before{box-sizing:border-box;content:"";border:1px solid #333;border-radius:2px;width:100%;height:100%;transition:box-shadow .25s ease-in-out;display:block;position:absolute}@media (prefers-reduced-motion:reduce){:is(.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input):before{transition:none}}:is(.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input):after{box-sizing:content-box;pointer-events:none;content:"";left:calc(var(--ck-content-todo-list-checkmark-size) / 3);top:calc(var(--ck-content-todo-list-checkmark-size) / 5.3);width:calc(var(--ck-content-todo-list-checkmark-size) / 5.3);height:calc(var(--ck-content-todo-list-checkmark-size) / 2.6);border-style:solid;border-color:#0000;border-width:0 calc(var(--ck-content-todo-list-checkmark-size) / 8) calc(var(--ck-content-todo-list-checkmark-size) / 8) 0;display:block;position:absolute;transform:rotate(45deg)}:is(.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input)[checked]:before{background:#26ab33;border-color:#26ab33}:is(.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input)[checked]:after{border-color:#fff}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{margin-bottom:5px;position:relative}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}.ck-editor__editable.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{cursor:pointer}:is(.ck-editor__editable.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input):hover:before{box-shadow:0 0 0 5px #0000001a}.ck-editor__editable.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}.ck-content .media{clear:both;min-width:15em;margin:.9em auto;display:block}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{padding:calc(3 * var(--ck-spacing-standard));background:var(--ck-color-base-foreground);flex-direction:column;align-items:center;display:flex}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{min-width:var(--ck-media-embed-placeholder-icon-size);height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);background-position:50%;background-size:cover}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{width:100%;height:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);white-space:nowrap;text-align:center;text-overflow:ellipsis;font-style:italic}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+)}.ck-media__wrapper[data-oembed-url*=facebook\.com] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*=facebook\.com] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+)}.ck-media__wrapper[data-oembed-url*=facebook\.com] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*=facebook\.com] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*=instagram\.com] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*=instagram\.com] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*=instagram\.com] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*=instagram\.com] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*=twitter\.com] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*=twitter\.com] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+)}.ck-media__wrapper[data-oembed-url*=twitter\.com] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*=twitter\.com] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}:is(.ck-media__wrapper[data-oembed-url*=twitter\.com],.ck-media__wrapper[data-oembed-url*="google.com/maps"],.ck-media__wrapper[data-oembed-url*="goo.gl/maps"],.ck-media__wrapper[data-oembed-url*="maps.google.com"],.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"],.ck-media__wrapper[data-oembed-url*=facebook\.com],.ck-media__wrapper[data-oembed-url*=instagram\.com]) .ck-media__placeholder__icon *{display:none}.ck-content .media:has(>div[data-oembed-url*="open.spotify.com"]){width:300px;min-width:286px}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}.ck-content .media.media_resized{box-sizing:border-box;max-width:100%;display:block}.ck-content .media.media_resized>div[data-oembed-url]{width:100%}.ck .ck-widget.media:-webkit-drag>.ck-widget__resizer{display:none}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-media-embed-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-media-embed-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-media-embed-button .ck-button__label{width:4em}:root{--ck-media-embed-custom-resize-form-width:340px}@media screen and (width<=600px){:root{--ck-media-embed-custom-resize-form-width:300px}}.ck.ck-media-embed-custom-resize-form.ck-responsive-form{width:var(--ck-media-embed-custom-resize-form-width)}:root{--ck-content-media-style-spacing:1.5em}.ck-content .media.media-style-align-left,.ck-content .media.media-style-align-right{clear:none;width:100%}.ck-content .media.media-style-align-left{float:left;margin-right:var(--ck-content-media-style-spacing)}.ck-content .media.media-style-align-right{float:right;margin-left:var(--ck-content-media-style-spacing)}.ck-content .media.media-style-block-align-left{margin-left:0;margin-right:auto}.ck-content .media.media-style-block-align-right{margin-left:auto;margin-right:0}.ck.ck-media-form{flex-flow:row;align-items:flex-start;width:400px;display:flex}.ck.ck-media-form .ck-labeled-field-view{width:100%;display:inline-block}.ck.ck-media-form .ck-label{display:none}.ck.ck-media-form .ck-input{width:100%}@media screen and (width<=600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}:root{--ck-content-color-mention-background:#9900301a;--ck-content-color-mention-text:#990030}.ck-content .mention{background:var(--ck-content-color-mention-background);color:var(--ck-content-color-mention-text)}:root{--ck-mention-list-max-height:300px}.ck.ck-mentions{max-height:var(--ck-mention-list-max-height);overscroll-behavior:contain;overflow:hidden auto}.ck.ck-mentions>.ck-list__item{flex-shrink:0;overflow:hidden}div.ck.ck-balloon-panel.ck-mention-balloon{z-index:calc(var(--ck-z-dialog) + 1)}:root{--ck-color-minimap-tracker-background:208, 0%, 51%;--ck-color-minimap-iframe-outline:#bfbfbf;--ck-color-minimap-iframe-shadow:#0000001c;--ck-color-minimap-progress-background:#666}.ck.ck-minimap{-webkit-user-select:none;user-select:none;background:var(--ck-color-base-background);position:absolute}.ck.ck-minimap,.ck.ck-minimap iframe{width:100%;height:100%}.ck.ck-minimap iframe{pointer-events:none;outline:1px solid var(--ck-color-minimap-iframe-outline);box-shadow:0 2px 5px var(--ck-color-minimap-iframe-shadow);border:0;margin:0;position:relative}.ck.ck-minimap .ck.ck-minimap__position-tracker{background:hsla(var(--ck-color-minimap-tracker-background), .2);z-index:1;width:100%;transition:background .1s ease-in-out;position:absolute;top:0}@media (prefers-reduced-motion:reduce){.ck.ck-minimap .ck.ck-minimap__position-tracker{transition:none}}.ck.ck-minimap .ck.ck-minimap__position-tracker:hover{background:hsla(var(--ck-color-minimap-tracker-background), .3)}.ck.ck-minimap .ck.ck-minimap__position-tracker.ck-minimap__position-tracker_dragging,.ck.ck-minimap .ck.ck-minimap__position-tracker.ck-minimap__position-tracker_dragging:hover{background:hsla(var(--ck-color-minimap-tracker-background), .4)}:is(.ck.ck-minimap .ck.ck-minimap__position-tracker.ck-minimap__position-tracker_dragging,.ck.ck-minimap .ck.ck-minimap__position-tracker.ck-minimap__position-tracker_dragging:hover):after{opacity:1}.ck.ck-minimap .ck.ck-minimap__position-tracker:after{content:attr(data-progress) "%";background:var(--ck-color-minimap-progress-background);color:var(--ck-color-base-background);border:1px solid var(--ck-color-base-background);opacity:0;border-radius:3px;padding:2px 4px;font-size:10px;transition:opacity .1s ease-in-out;position:absolute;top:5px;right:5px}@media (prefers-reduced-motion:reduce){.ck.ck-minimap .ck.ck-minimap__position-tracker:after{transition:none}}.ck-content .page-break{clear:both;justify-content:center;align-items:center;padding:5px 0;display:flex;position:relative}.ck-content .page-break:after{content:"";border-bottom:2px dashed #c4c4c4;width:100%;position:absolute}.ck-content .page-break__label{z-index:1;text-transform:uppercase;color:#333;-webkit-user-select:none;user-select:none;background:#fff;border:1px solid #c4c4c4;border-radius:2px;padding:.3em .6em;font-size:.75em;font-weight:700;display:block;position:relative;box-shadow:2px 2px 1px #00000026}@media print{.ck-content .page-break{padding:0}.ck-content .page-break:after{display:none}.ck-content :has(+.page-break){margin-bottom:0}}:root{--ck-color-restricted-editing-exception-background:#ffa94c33;--ck-color-restricted-editing-exception-hover-background:#ffa94c59;--ck-color-restricted-editing-exception-brackets:#cc690066;--ck-color-restricted-editing-selected-exception-background:#ffa94c80;--ck-color-restricted-editing-selected-exception-brackets:#cc690099}.ck-editor__editable .restricted-editing-exception{background-color:var(--ck-color-restricted-editing-exception-background);border:1px solid;border-image:linear-gradient(to right, var(--ck-color-restricted-editing-exception-brackets) 0%, var(--ck-color-restricted-editing-exception-brackets) 5px, #0000 6px, #0000 calc(100% - 6px), var(--ck-color-restricted-editing-exception-brackets) calc(100% - 5px), var(--ck-color-restricted-editing-exception-brackets) 100%) 1;transition:background .2s ease-in-out}@media (prefers-reduced-motion:reduce){.ck-editor__editable .restricted-editing-exception{transition:none}}.ck-editor__editable .restricted-editing-exception.restricted-editing-exception_selected{background-color:var(--ck-color-restricted-editing-selected-exception-background);border-image:linear-gradient(to right, var(--ck-color-restricted-editing-selected-exception-brackets) 0%, var(--ck-color-restricted-editing-selected-exception-brackets) 5px, var(--ck-color-restricted-editing-selected-exception-brackets) calc(100% - 5px), var(--ck-color-restricted-editing-selected-exception-brackets) 100%) 1}.ck-editor__editable .restricted-editing-exception.restricted-editing-exception_collapsed{padding-left:1ch}.ck-restricted-editing_mode_restricted,.ck-restricted-editing_mode_restricted *{cursor:default}.ck-restricted-editing_mode_restricted .restricted-editing-exception,.ck-restricted-editing_mode_restricted .restricted-editing-exception *{cursor:text}.ck-restricted-editing_mode_restricted .restricted-editing-exception:hover{background:var(--ck-color-restricted-editing-exception-hover-background)}:root{--ck-show-blocks-border-color:#757575}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) address{--ck-show-blocks-label-ltr:var(--ck-show-blocks-label-address-ltr);--ck-show-blocks-label-rtl:var(--ck-show-blocks-label-address-rtl)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) aside{--ck-show-blocks-label-ltr:var(--ck-show-blocks-label-aside-ltr);--ck-show-blocks-label-rtl:var(--ck-show-blocks-label-aside-rtl)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) blockquote{--ck-show-blocks-label-ltr:var(--ck-show-blocks-label-blockquote-ltr);--ck-show-blocks-label-rtl:var(--ck-show-blocks-label-blockquote-rtl)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) details{--ck-show-blocks-label-ltr:var(--ck-show-blocks-label-details-ltr);--ck-show-blocks-label-rtl:var(--ck-show-blocks-label-details-rtl)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) div:not(.ck-widget,.ck-widget *){--ck-show-blocks-label-ltr:var(--ck-show-blocks-label-div-ltr);--ck-show-blocks-label-rtl:var(--ck-show-blocks-label-div-rtl)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) footer{--ck-show-blocks-label-ltr:var(--ck-show-blocks-label-footer-ltr);--ck-show-blocks-label-rtl:var(--ck-show-blocks-label-footer-rtl)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h1{--ck-show-blocks-label-ltr:var(--ck-show-blocks-label-h1-ltr);--ck-show-blocks-label-rtl:var(--ck-show-blocks-label-h1-rtl)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h2{--ck-show-blocks-label-ltr:var(--ck-show-blocks-label-h2-ltr);--ck-show-blocks-label-rtl:var(--ck-show-blocks-label-h2-rtl)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h3{--ck-show-blocks-label-ltr:var(--ck-show-blocks-label-h3-ltr);--ck-show-blocks-label-rtl:var(--ck-show-blocks-label-h3-rtl)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h4{--ck-show-blocks-label-ltr:var(--ck-show-blocks-label-h4-ltr);--ck-show-blocks-label-rtl:var(--ck-show-blocks-label-h4-rtl)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h5{--ck-show-blocks-label-ltr:var(--ck-show-blocks-label-h5-ltr);--ck-show-blocks-label-rtl:var(--ck-show-blocks-label-h5-rtl)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h6{--ck-show-blocks-label-ltr:var(--ck-show-blocks-label-h6-ltr);--ck-show-blocks-label-rtl:var(--ck-show-blocks-label-h6-rtl)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) header{--ck-show-blocks-label-ltr:var(--ck-show-blocks-label-header-ltr);--ck-show-blocks-label-rtl:var(--ck-show-blocks-label-header-rtl)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) main{--ck-show-blocks-label-ltr:var(--ck-show-blocks-label-main-ltr);--ck-show-blocks-label-rtl:var(--ck-show-blocks-label-main-rtl)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) nav{--ck-show-blocks-label-ltr:var(--ck-show-blocks-label-nav-ltr);--ck-show-blocks-label-rtl:var(--ck-show-blocks-label-nav-rtl)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) pre{--ck-show-blocks-label-ltr:var(--ck-show-blocks-label-pre-ltr);--ck-show-blocks-label-rtl:var(--ck-show-blocks-label-pre-rtl)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) ol{--ck-show-blocks-label-ltr:var(--ck-show-blocks-label-ol-ltr);--ck-show-blocks-label-rtl:var(--ck-show-blocks-label-ol-rtl)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) ul{--ck-show-blocks-label-ltr:var(--ck-show-blocks-label-ul-ltr);--ck-show-blocks-label-rtl:var(--ck-show-blocks-label-ul-rtl)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) p{--ck-show-blocks-label-ltr:var(--ck-show-blocks-label-p-ltr);--ck-show-blocks-label-rtl:var(--ck-show-blocks-label-p-rtl)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) section{--ck-show-blocks-label-ltr:var(--ck-show-blocks-label-section-ltr);--ck-show-blocks-label-rtl:var(--ck-show-blocks-label-section-rtl)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) :where(figure.image,figure.table) figcaption{--ck-show-blocks-label-ltr:var(--ck-show-blocks-label-figcaption-ltr);--ck-show-blocks-label-rtl:var(--ck-show-blocks-label-figcaption-rtl)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) :where(address,aside,blockquote,details,div:not(.ck-widget,.ck-widget *),footer,h1,h2,h3,h4,h5,h6,header,main,nav,pre,ol,ul,p,section,:where(figure.image,figure.table) figcaption){background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) :where(address,aside,blockquote,details,div:not(.ck-widget,.ck-widget *),footer,h1,h2,h3,h4,h5,h6,header,main,nav,pre,ol,ul,p,section,:where(figure.image,figure.table) figcaption):where(:not(.ck-widget_selected):not(.ck-widget:hover)){outline:1px dashed var(--ck-show-blocks-border-color)}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget):not(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) :where(address,aside,blockquote,details,div:not(.ck-widget,.ck-widget *),footer,h1,h2,h3,h4,h5,h6,header,main,nav,pre,ol,ul,p,section,:where(figure.image,figure.table) figcaption){background-image:var(--ck-show-blocks-label-ltr);background-position:1px 1px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget):is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) :where(address,aside,blockquote,details,div:not(.ck-widget,.ck-widget *),footer,h1,h2,h3,h4,h5,h6,header,main,nav,pre,ol,ul,p,section,:where(figure.image,figure.table) figcaption){background-image:var(--ck-show-blocks-label-rtl);background-position:calc(100% - 1px) 1px}.ck-source-editing-area{position:relative;overflow:hidden}.ck-source-editing-area:after,.ck-source-editing-area textarea{padding:var(--ck-spacing-large);line-height:var(--ck-line-height-base);font-size:var(--ck-font-size-normal);white-space:pre-wrap;border:1px solid #0000;margin:0;font-family:monospace}.ck-source-editing-area:after{content:attr(data-value) " ";visibility:hidden;display:block}.ck-source-editing-area textarea{resize:none;box-sizing:border-box;border-color:var(--ck-color-base-border);border-radius:var(--ck-rounded-corners-radius);border-top-left-radius:0;border-top-right-radius:0;outline:none;width:100%;height:100%;position:absolute;overflow:hidden}.ck-source-editing-area textarea:not([readonly]):focus{border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow), 0 0;outline:none}.ck.ck-special-characters-navigation>.ck-label{text-overflow:ellipsis;max-width:160px;overflow:hidden}.ck.ck-special-characters-navigation>.ck-dropdown .ck-dropdown__panel{max-height:250px;overflow:hidden auto}@media screen and (width<=600px){.ck.ck-special-characters-navigation{max-width:190px}.ck.ck-special-characters-navigation>.ck-form__header__label{text-overflow:ellipsis;overflow:hidden}}.ck.ck-special-characters>.ck-dialog__content>div{grid-column-gap:0px;grid-row-gap:0px;grid-template-rows:auto 1fr auto;grid-template-columns:1fr;width:350px;max-width:100%;height:100%;display:grid}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories{padding:var(--ck-spacing-medium) var(--ck-spacing-large);grid-area:1/1/2/2}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories>.ck-labeled-field-view{padding-top:var(--ck-spacing-standard);width:100%}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories>.ck-labeled-field-view .ck.ck-labeled-field-view__status{background:var(--ck-color-base-error);color:var(--ck-color-base-background);padding:var(--ck-spacing-small) var(--ck-spacing-medium);min-width:var(--ck-table-properties-min-error-width);text-align:center;animation:.15s both ck-table-form-labeled-view-status-appear}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories>.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);border-style:solid}@media (prefers-reduced-motion:reduce){.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories>.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:none}}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories>.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories>.ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories .ck-dropdown{width:100%;display:block}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories .ck-dropdown>button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories .ck-dropdown>button>span{width:100%}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-grid{grid-area:2/1/3/2;max-height:200px}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-info{grid-area:3/1/4/2}:root{--ck-character-grid-tile-size:24px}.ck.ck-character-grid{overflow:hidden auto}.ck.ck-character-grid .ck-character-grid__tiles{grid-template-columns:repeat(auto-fill, minmax(var(--ck-character-grid-tile-size), 1fr));margin:var(--ck-spacing-standard) var(--ck-spacing-large);grid-gap:var(--ck-spacing-standard);display:grid}.ck.ck-character-grid .ck-character-grid__tile{width:var(--ck-character-grid-tile-size);height:var(--ck-character-grid-tile-size);min-width:var(--ck-character-grid-tile-size);min-height:var(--ck-character-grid-tile-size);border:0;padding:0;font-size:1.5em;transition:box-shadow .2s}@media (prefers-reduced-motion:reduce){.ck.ck-character-grid .ck-character-grid__tile{transition:none}}.ck.ck-character-grid .ck-character-grid__tile:focus:not(.ck-disabled),.ck.ck-character-grid .ck-character-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);border:0}.ck.ck-character-grid .ck-character-grid__tile .ck-button__label{line-height:var(--ck-character-grid-tile-size);text-align:center;width:100%}.ck.ck-character-grid{max-width:100%}.ck.ck-character-info{padding:var(--ck-spacing-small) var(--ck-spacing-large);border-top:1px solid var(--ck-color-base-border);display:flex}.ck.ck-character-info>*{text-transform:uppercase;font-size:var(--ck-font-size-small)}.ck.ck-character-info .ck-character-info__name{text-overflow:ellipsis;max-width:280px;overflow:hidden}.ck.ck-character-info .ck-character-info__code{opacity:.6}.ck.ck-character-info{justify-content:space-between}.ck.ck-dropdown.ck-style-dropdown.ck-style-dropdown_multiple-active>.ck-button>.ck-button__label{font-style:italic}:root{--ck-style-panel-button-width:120px;--ck-style-panel-button-height:80px;--ck-style-panel-button-label-background:#f0f0f0;--ck-style-panel-button-hover-label-background:#ebebeb;--ck-style-panel-button-hover-border-color:#b3b3b3;--ck-style-panel-columns:3}.ck.ck-style-panel .ck-style-grid{row-gap:var(--ck-spacing-large);column-gap:var(--ck-spacing-large);grid-template-columns:repeat(var(--ck-style-panel-columns),auto);display:grid}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button{--ck-color-button-default-hover-background:var(--ck-color-base-background);--ck-color-button-default-active-background:var(--ck-color-base-background);width:var(--ck-style-panel-button-width);height:var(--ck-style-panel-button-height);justify-content:space-between;padding:0;display:flex}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button .ck-button__label{width:100%;height:22px;padding:0 var(--ck-spacing-medium);text-overflow:ellipsis;flex-shrink:0;line-height:22px;overflow:hidden}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button .ck-style-grid__button__preview{opacity:.9;width:100%;padding:var(--ck-spacing-medium);background:var(--ck-color-base-background);border:2px solid var(--ck-color-base-background);flex-grow:1;flex-basis:100%;place-content:center flex-start;align-items:center;display:flex;overflow:hidden}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-disabled{--ck-color-button-default-disabled-background:var(--ck-color-base-foreground)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-disabled:not(:focus){border-color:var(--ck-style-panel-button-label-background)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-disabled .ck-style-grid__button__preview{opacity:.4;border-color:var(--ck-color-base-foreground);filter:saturate(.3)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-on{border-color:var(--ck-color-base-active)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-on .ck-button__label{box-shadow:0 -1px 0 var(--ck-color-base-active);z-index:1}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-on:hover{border-color:var(--ck-color-base-active-focus)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:not(.ck-on) .ck-button__label{background:var(--ck-style-panel-button-label-background)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:not(.ck-on):hover .ck-button__label{background:var(--ck-style-panel-button-hover-label-background)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:hover:not(.ck-disabled):not(.ck-on){border-color:var(--ck-style-panel-button-hover-border-color)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:hover:not(.ck-disabled):not(.ck-on) .ck-style-grid__button__preview{opacity:1}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button{flex-direction:column}.ck.ck-style-panel .ck-style-grid{justify-content:start}.ck.ck-style-panel .ck-style-panel__style-group>.ck-label{margin:var(--ck-spacing-large) 0}.ck.ck-style-panel .ck-style-panel__style-group:first-child>.ck-label{margin-top:0}:root{--ck-style-panel-max-height:470px}.ck.ck-style-panel{padding:var(--ck-spacing-large);max-height:var(--ck-style-panel-max-height);overflow-y:auto}.ck-content .table th{text-align:start}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-content figure.table:not(.layout-table){display:table}.ck-content figure.table:not(.layout-table)>table{width:100%;height:100%}.ck-content .table:not(.layout-table){margin:.9em auto}.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table{border-collapse:collapse;border-spacing:0;border:1px double #b3b3b3}:is(:is(.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table)>thead,:is(.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table)>tfoot,:is(.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table)>tbody)>tr>th{background:#0000000d;font-weight:700}:is(:is(:is(.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table)>thead,:is(.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table)>tfoot,:is(.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table)>tbody)>tr>td,:is(:is(.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table)>thead,:is(.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table)>tfoot,:is(.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table)>tbody)>tr>th)>p:first-of-type{margin-top:0}:is(:is(:is(.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table)>thead,:is(.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table)>tfoot,:is(.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table)>tbody)>tr>td,:is(:is(.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table)>thead,:is(.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table)>tfoot,:is(.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table)>tbody)>tr>th)>p:last-of-type{margin-bottom:0}:is(:is(.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table)>thead,:is(.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table)>tfoot,:is(.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table)>tbody)>tr>td,:is(:is(.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table)>thead,:is(.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table)>tfoot,:is(.ck-content table.table:not(.layout-table),.ck-content figure.table:not(.layout-table)>table)>tbody)>tr>th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}@media print{.ck-content figure.table:not(.layout-table){width:fit-content;height:fit-content}.ck-content figure.table:not(.layout-table)>table{height:initial}}.ck-editor__editable .ck-table-bogus-paragraph{width:100%;display:inline-block}:root{--ck-color-table-focused-cell-background:#9ec9fa4d;--ck-table-content-default-border-color:#d4d4d4;--ck-table-border-none-helper-line-color:#d4d4d4;--ck-table-border-none-helper-line-style:dashed;--ck-table-border-none-helper-line-width:1px}.ck-widget.table table[style*=border\:none],.ck-widget.table table[style*=border-style\:none],.ck-widget.table table[style*=border\:0],.ck-widget.table table[style*=border-width\:0]{outline:var(--ck-table-content-default-border-color) 1px dashed}:is(.ck-widget.table td,.ck-widget.table th).ck-editor__nested-editable{outline:unset}:is(.ck-widget.table td,.ck-widget.table th).ck-editor__nested-editable:not(.ck-editor__editable_selected).ck-editor__nested-editable_focused,:is(.ck-widget.table td,.ck-widget.table th).ck-editor__nested-editable:not(.ck-editor__editable_selected):focus{background:var(--ck-color-table-focused-cell-background);outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}:where(.ck.ck-editor__editable.ck-table-show-hidden-borders .ck-widget.table){--ck-table-border-none-helper-line:var(--ck-table-border-none-helper-line-width) var(--ck-table-border-none-helper-line-style) var(--ck-table-border-none-helper-line-color)}:where(.ck.ck-editor__editable.ck-table-show-hidden-borders .ck-widget.table) :where(td,th):where([style*=border\:none],[style*=border\:0],[style*=border-style\:none],[style*=border-width\:0]){border:var(--ck-table-border-none-helper-line)!important}:where(.ck.ck-editor__editable.ck-table-show-hidden-borders .ck-widget.table) :where(table,td,th):where([style*=border-top-style\:none],[style*=border-top-width\:0]){border-top:var(--ck-table-border-none-helper-line)!important}:where(.ck.ck-editor__editable.ck-table-show-hidden-borders .ck-widget.table) :where(table,td,th):where([style*=border-right-style\:none],[style*=border-right-width\:0]){border-right:var(--ck-table-border-none-helper-line)!important}:where(.ck.ck-editor__editable.ck-table-show-hidden-borders .ck-widget.table) :where(table,td,th):where([style*=border-bottom-style\:none],[style*=border-bottom-width\:0]){border-bottom:var(--ck-table-border-none-helper-line)!important}:where(.ck.ck-editor__editable.ck-table-show-hidden-borders .ck-widget.table) :where(table,td,th):where([style*=border-left-style\:none],[style*=border-left-width\:0]){border-left:var(--ck-table-border-none-helper-line)!important}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;width:25%;padding:0}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{margin-top:var(--ck-spacing-standard);background:0 0}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar.ck-table-cell-properties-form__horizontal-alignment-toolbar{--ck-table-form-dimensions-input-width:calc(var(--ck-table-form-default-input-width) * 2 + var(--ck-spacing-large));width:var(--ck-table-form-dimensions-input-width);max-width:var(--ck-table-form-dimensions-input-width);min-width:var(--ck-table-form-dimensions-input-width);padding:0}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar.ck-table-cell-properties-form__vertical-alignment-toolbar{flex-grow:1}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-cell-properties-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{width:80px;min-width:80px;max-width:80px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-form__dimensions-row{--ck-table-form-dimensions-input-width:calc(var(--ck-table-form-default-input-width) * 2 + var(--ck-spacing-large));width:var(--ck-table-form-dimensions-input-width);max-width:var(--ck-table-form-dimensions-input-width);min-width:var(--ck-table-form-dimensions-input-width);padding:0}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width,.ck.ck-table-cell-properties-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height{width:var(--ck-table-form-default-input-width);min-width:var(--ck-table-form-default-input-width);max-width:var(--ck-table-form-default-input-width);margin:0}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{width:0;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small);align-self:flex-end;display:inline-block;position:relative;left:-.5ch;overflow:visible}.ck.ck-table-cell-properties-form .ck-form__row.ck-form__row.ck-table-form__action-row>.ck.ck-button{flex-grow:initial}.ck.ck-table-cell-properties-form .ck-form__row.ck-form__row.ck-table-form__action-row>.ck.ck-button .ck-button__label{color:currentColor}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-form__cell-type-row{--ck-table-form-dimensions-input-width:calc(var(--ck-table-form-default-input-width) * 2 + var(--ck-spacing-large));width:var(--ck-table-form-dimensions-input-width);max-width:var(--ck-table-form-dimensions-input-width);min-width:var(--ck-table-form-dimensions-input-width);padding:0}:root{--ck-table-layout-widget-type-around-button-size:16px;--ck-table-layout-widget-type-around-icon-width:10px;--ck-table-layout-widget-type-around-icon-height:8px;--ck-table-layout-widget-handler-icon-size:10px;--ck-table-layout-default-border-color:#d4d4d4}.ck-content table.table.layout-table,.ck-content figure.table.layout-table{margin-top:0;margin-bottom:0}.ck-content table.table.layout-table,.ck-content figure.table.layout-table>table{border-spacing:0}.ck-editor__editable .table.layout-table>table{border-collapse:revert;width:100%;height:100%}.ck-editor__editable .table.layout-table>table:not([style*=border\:],[style*=border-top],[style*=border-bottom],[style*=border-left],[style*=border-right],[style*=border-width],[style*=border-style],[style*=border-color]){border-width:0;border-color:#0000;outline:none}.ck-editor__editable .table.layout-table>table>tbody>tr>td{box-shadow:revert;padding:revert;text-indent:1px;border-color:var(--ck-table-layout-default-border-color);border-style:dashed;min-width:2em}.ck-editor__editable .table.layout-table>table>tbody>tr>td[style^=width\:],.ck-editor__editable .table.layout-table>table>tbody>tr>td[style*=" width:"],.ck-editor__editable .table.layout-table>table>tbody>tr>td[style*=";width:"]{min-width:auto}.ck-editor__editable .table.layout-table>table>tbody>tr>td:focus{background-color:#0000}.ck-editor__editable .table.layout-table>table>tbody>tr>td:not([style*=border\:],[style*=border-top],[style*=border-bottom],[style*=border-left],[style*=border-right],[style*=border-width],[style*=border-style],[style*=border-color]){outline:var(--ck-table-layout-default-border-color) 1px dashed;outline-offset:-1px;border-width:0;border-color:#0000}.ck-editor__editable .table.layout-table>table>tbody>tr>td:not([style*=border\:],[style*=border-top],[style*=border-bottom],[style*=border-left],[style*=border-right],[style*=border-width],[style*=border-style],[style*=border-color]):focus{outline:var(--ck-color-focus-border) 1px solid}.ck-editor__editable .table.layout-table>table>tbody>tr>td>.ck-table-bogus-paragraph{text-indent:0;width:calc(100% - 1px)}.ck-editor__editable .table.layout-table.ck-widget>.ck-widget__type-around{--ck-widget-type-around-button-size:var(--ck-table-layout-widget-type-around-button-size)}.ck-editor__editable .table.layout-table.ck-widget>.ck-widget__type-around>.ck-widget__type-around__button.ck-widget__type-around__button_before,.ck-editor__editable .table.layout-table.ck-widget>.ck-widget__type-around>.ck-widget__type-around__button.ck-widget__type-around__button_after{z-index:2;transform:translateY(0)}.ck-editor__editable .table.layout-table.ck-widget>.ck-widget__type-around>.ck-widget__type-around__button.ck-widget__type-around__button_before{margin-left:var(--ck-table-layout-widget-type-around-button-size);border-radius:0 0 100px 100px;left:min(10%,30px)}.ck-editor__editable .table.layout-table.ck-widget>.ck-widget__type-around>.ck-widget__type-around__button.ck-widget__type-around__button_before:after{border-radius:0 0 100px 100px}.ck-editor__editable .table.layout-table.ck-widget>.ck-widget__type-around>.ck-widget__type-around__button.ck-widget__type-around__button_after,.ck-editor__editable .table.layout-table.ck-widget>.ck-widget__type-around>.ck-widget__type-around__button.ck-widget__type-around__button_after:after{border-radius:100px 100px 0 0}.ck-editor__editable .table.layout-table.ck-widget>.ck-widget__type-around>.ck-widget__type-around__button svg{width:var(--ck-table-layout-widget-type-around-icon-width);height:var(--ck-table-layout-widget-type-around-icon-height)}.ck-editor__editable .table.layout-table.ck-widget.ck-widget_with-selection-handle>.ck-widget__selection-handle{--ck-widget-handler-icon-size:var(--ck-table-layout-widget-handler-icon-size);transform:translateY(calc(0px - var(--ck-widget-outline-thickness)));z-index:3}.ck-editor__editable .table.layout-table.ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{top:0}.ck-editor__editable .table.layout-table.ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:0}.ck-editor__editable .table.layout-table.ck-widget:hover{z-index:var(--ck-z-default)}.ck-editor__editable .table.layout-table.ck-widget:hover>.ck-widget__selection-handle{opacity:.75;visibility:visible}.ck-editor__editable .table.layout-table.ck-widget:hover>.ck-widget__selection-handle:hover{opacity:1}.ck-editor__editable .table.layout-table.ck-widget:has(.ck-widget.table:hover)>.ck-widget__selection-handle{opacity:0;visibility:hidden}.ck-editor__editable .table.layout-table.ck-widget.ck-widget_selected{z-index:var(--ck-z-default)}.ck-editor__editable .table.layout-table{margin:0;display:table}.ck-editor__editable.ck-editor__editable_inline>.ck-widget.ck-widget_with-selection-handle.layout-table:first-child{margin-top:var(--ck-spacing-large)}:is(.ck-editor__editable.ck-editor__editable_inline>.ck-widget.ck-widget_with-selection-handle.layout-table:last-child,.ck-editor__editable.ck-editor__editable_inline>.ck-widget.ck-widget_with-selection-handle.layout-table:nth-last-child(2):has(+.ck-fake-selection-container)){margin-bottom:var(--ck-spacing-large)}.ck.ck-form__row>:not(.ck-label)+*{margin-inline-start:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{width:100%;min-width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large);justify-content:flex-end}.ck.ck-form__row.ck-table-form__action-row .ck-button-save,.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel{justify-content:center}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form{--ck-table-form-default-input-width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{width:var(--ck-table-form-default-input-width);min-width:var(--ck-table-form-default-input-width);max-width:var(--ck-table-form-default-input-width)}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{--ck-table-form-dimensions-input-width:calc(var(--ck-table-form-default-input-width) * 2 + var(--ck-spacing-large));width:var(--ck-table-form-dimensions-input-width);max-width:var(--ck-table-form-dimensions-input-width);min-width:var(--ck-table-form-dimensions-input-width);padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height{width:var(--ck-table-form-default-input-width);min-width:var(--ck-table-form-default-input-width);max-width:var(--ck-table-form-default-input-width);margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{width:0;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small);align-self:flex-end;display:inline-block;position:relative;left:-.5ch;overflow:visible}.ck.ck-table-form .ck-form__row.ck-table-form__border-row,.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__cell-type-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row,.ck.ck-table-form .ck-form__row.ck-table-form__cell-type-row{flex-wrap:wrap;align-items:center}:is(.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row,.ck.ck-table-form .ck-form__row.ck-table-form__cell-type-row) .ck-labeled-field-view{flex-direction:column-reverse;align-items:center;display:flex}:is(.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row,.ck.ck-table-form .ck-form__row.ck-table-form__cell-type-row) .ck-labeled-field-view .ck.ck-dropdown{flex-grow:0}.ck.ck-table-form .ck-form__row:not(.ck-table-form__action-row)>:not(.ck-label,.ck-table-form__dimension-operator){flex-grow:1}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:var(--ck-rounded-corners-radius);background:var(--ck-color-base-error);color:var(--ck-color-base-background);padding:var(--ck-spacing-small) var(--ck-spacing-medium);min-width:var(--ck-table-properties-min-error-width);text-align:center;left:50%;bottom:calc(-1 * var(--ck-table-properties-error-arrow-size));animation:.15s both ck-table-form-labeled-view-status-appear;position:absolute;transform:translate(-50%,100%)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);content:"";top:calc(-1 * var(--ck-table-properties-error-arrow-size));border-style:solid;position:absolute;left:50%;transform:translate(-50%)}@media (prefers-reduced-motion:reduce){.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:none}}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{flex-wrap:wrap;flex-basis:0;align-content:baseline;align-self:flex-end}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{margin-top:var(--ck-spacing-standard);background:0 0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{flex:1}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}:root{--ck-content-table-style-spacing:1.5em}.ck-content .table.table-style-align-left{float:left;margin-right:var(--ck-content-table-style-spacing)}.ck-content .table.table-style-align-right{float:right;margin-left:var(--ck-content-table-style-spacing)}.ck-content .table.table-style-align-center{margin-left:auto;margin-right:auto}.ck-content .table.table-style-block-align-left{margin-left:0;margin-right:auto}.ck-content .table.table-style-block-align-right{margin-left:auto;margin-right:0}.ck-editor__editable .table.layout-table.table-style-align-center{margin-left:auto;margin-right:auto}.ck-editor__editable .table.layout-table.table-style-align-left{margin-right:var(--ck-content-table-style-spacing)}.ck-editor__editable .table.layout-table.table-style-align-right{margin-left:var(--ck-content-table-style-spacing)}.ck-editor__editable .table.layout-table.table-style-block-align-left{margin-left:0;margin-right:auto}.ck-editor__editable .table.layout-table.table-style-block-align-right{margin-left:auto;margin-right:0}:root{--ck-content-color-table-caption-background:#f7f7f7;--ck-content-color-table-caption-text:#333;--ck-color-table-caption-highlighted-background:#fd0}.ck-content .table>figcaption,.ck-content figure.table>table>caption{caption-side:top;word-break:normal;overflow-wrap:anywhere;text-align:center;color:var(--ck-content-color-table-caption-text);background-color:var(--ck-content-color-table-caption-background);outline-offset:-1px;padding:.6em;font-size:.75em;display:table-caption}@media (forced-colors:active){.ck-content .table>figcaption,.ck-content figure.table>table>caption{background-color:unset;color:unset}}@media (forced-colors:none){:is(.ck.ck-editor__editable .table>figcaption,.ck.ck-editor__editable figure.table>table>caption).table__caption_highlighted{animation:.6s ease-out ck-table-caption-highlight}}:is(.ck.ck-editor__editable .table>figcaption,.ck.ck-editor__editable figure.table>table>caption).ck-placeholder:before{padding-left:inherit;padding-right:inherit;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-table-caption-highlighted-background)}to{background-color:var(--ck-content-color-table-caption-background)}}:root{--ck-table-selected-cell-background:#9ecffa4d}.ck.ck-editor__editable .table table :where(td,th).ck-editor__editable_selected{caret-color:#0000;box-shadow:unset;position:relative}.ck.ck-editor__editable .table table :where(td,th).ck-editor__editable_selected:after{content:"";pointer-events:none;background-color:var(--ck-table-selected-cell-background);position:absolute;inset:0}.ck.ck-editor__editable .table table :where(td,th).ck-editor__editable_selected:focus{background-color:#0000}.ck.ck-editor__editable .table table :where(td,th).ck-editor__editable_selected ::selection{background-color:#0000}.ck.ck-editor__editable .table table :where(td,th).ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table :where(td,th).ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}:root{--ck-color-table-column-resizer-hover:var(--ck-color-base-active);--ck-table-column-resizer-width:7px;--ck-table-column-resizer-position-offset:calc(var(--ck-table-column-resizer-width) * -.5 - .5px)}.ck-content .table .ck-table-resized{table-layout:fixed}.ck-content .table td,.ck-content .table th{overflow-wrap:break-word}.ck.ck-editor__editable .table td,.ck.ck-editor__editable .table th{position:relative}.ck.ck-editor__editable .table .ck-table-column-resizer{top:0;bottom:0;right:var(--ck-table-column-resizer-position-offset);width:var(--ck-table-column-resizer-width);cursor:col-resize;-webkit-user-select:none;user-select:none;z-index:var(--ck-z-default);position:absolute}.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer,.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer{display:none}.ck.ck-editor__editable .table .ck-table-column-resizer:hover,.ck.ck-editor__editable .table .ck-table-column-resizer__active{background-color:var(--ck-color-table-column-resizer-hover);opacity:.25}.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer{left:var(--ck-table-column-resizer-position-offset);right:unset}[dir=ltr] :is(.ck.ck-input-color>.ck.ck-input-text){border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] :is(.ck.ck-input-color>.ck.ck-input-text){border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-input-color>.ck.ck-input-text:focus{z-index:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0;display:flex}[dir=ltr] :is(.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button){border-top-left-radius:0;border-bottom-left-radius:0}[dir=ltr] :is(.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button):not(:focus){border-left:1px solid #0000}[dir=rtl] :is(.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button){border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] :is(.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button):not(:focus){border-right:1px solid #0000}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:var(--ck-rounded-corners-radius);border:1px solid var(--ck-color-input-border);width:20px;height:20px;position:relative;overflow:hidden}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{transform-origin:50%;background:red;border-radius:2px;width:8%;height:150%;display:block;position:absolute;top:-30%;left:50%;transform:rotate(45deg)}.ck.ck-input-color .ck.ck-input-color__remove-color{width:100%;padding:calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);border-bottom-right-radius:0;border-bottom-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] :is(.ck.ck-input-color .ck.ck-input-color__remove-color){border-top-right-radius:0}[dir=rtl] :is(.ck.ck-input-color .ck.ck-input-color__remove-color){border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] :is(.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon){margin-right:0;margin-left:var(--ck-spacing-standard)}.ck.ck-input-color{flex-direction:row-reverse;width:100%;display:flex}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{width:calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;flex-flow:wrap;display:flex}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{min-width:var(--ck-insert-table-dropdown-box-width);min-height:var(--ck-insert-table-dropdown-box-height);margin:var(--ck-insert-table-dropdown-box-margin);border:1px solid var(--ck-color-base-border);border-radius:1px;outline:none;transition:none}@media (prefers-reduced-motion:reduce){.ck .ck-insert-table-dropdown-grid-box{transition:none}}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{border-color:var(--ck-color-focus-border);background:var(--ck-color-focus-outer-shadow)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:.2s;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background);--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small) * 2 + 10px)}.ck .ck-widget{outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);outline-style:solid;outline-color:#0000}@media (prefers-reduced-motion:reduce){.ck .ck-widget{transition:none}}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget{position:relative}.ck .ck-editor__nested-editable{border:1px solid #0000}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{box-shadow:var(--ck-inner-shadow), 0 0}@media (forced-colors:none){.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background)}}:is(.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus):not(td,th){border:var(--ck-focus-ring);outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{box-sizing:border-box;opacity:0;transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;left:calc(0px - var(--ck-widget-outline-thickness));background-color:#0000;padding:4px;top:0;transform:translateY(-100%)}@media (prefers-reduced-motion:reduce){.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{transition:none}}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{width:var(--ck-widget-handler-icon-size);height:var(--ck-widget-handler-icon-size);color:var(--ck-color-widget-drag-handler-icon-color)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}@media (prefers-reduced-motion:reduce){.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{transition:none}}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-widget-hover-border);visibility:visible}:is(.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover)>.ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-focus-border);visibility:visible}:is(.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover)>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck .ck-widget:has(.ck-widget.table:hover){outline-color:#0000}.ck .ck-widget.ck-widget_with-selection-handle:has(.ck-widget.table:hover)>.ck-widget__selection-handle{opacity:0;visibility:hidden}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}:is(.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover).ck-widget_with-selection-handle>.ck-widget__selection-handle,:is(.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover).ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable:not(.ck-pagination-view)>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable:not(.ck-pagination-view) blockquote>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);color:var(--ck-color-resizer-tooltip-text);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);font-size:var(--ck-font-size-tiny);padding:0 var(--ck-spacing-small);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);display:block}.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-above-center{position:absolute}.ck .ck-size-view.ck-orientation-top-left{top:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{top:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{top:calc(var(--ck-resizer-tooltip-height) * -1);left:50%;transform:translate(-50%)}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(( var(--ck-resizer-size) / -2 ) - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer);pointer-events:none;display:none;position:absolute;top:0;left:0}.ck .ck-widget__resizer__handle{width:var(--ck-resizer-size);height:var(--ck-resizer-size);background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{top:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{top:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{cursor:nesw-resize}.ck .ck-widget_with-resizer{position:relative}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{width:var(--ck-widget-type-around-button-size);height:var(--ck-widget-type-around-button-size);background:var(--ck-color-widget-type-around-button);transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);opacity:0;pointer-events:none;z-index:var(--ck-z-default);border-radius:100px;display:block;position:absolute;overflow:hidden}@media (prefers-reduced-motion:reduce){.ck .ck-widget .ck-widget__type-around__button{transition:none}}.ck .ck-widget .ck-widget__type-around__button svg{width:10px;height:8px;margin-top:1px;transition:transform .5s;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}@media (prefers-reduced-motion:reduce){.ck .ck-widget .ck-widget__type-around__button svg{transition:none}}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button svg{z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button:hover{animation:1s infinite ck-widget-type-around-button-sonar}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:2s linear ck-widget-type-around-arrow-dash}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:2s linear ck-widget-type-around-arrow-tip-dash}@media (prefers-reduced-motion:reduce){.ck .ck-widget .ck-widget__type-around__button:hover,.ck .ck-widget .ck-widget__type-around__button:hover svg polyline,.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:none}}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{top:calc(-.5 * var(--ck-widget-outline-thickness));left:min(10%,30px);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(-.5 * var(--ck-widget-outline-thickness));right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}:is(.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover):after{width:calc(var(--ck-widget-type-around-button-size) - 2px);height:calc(var(--ck-widget-type-around-button-size) - 2px);content:"";z-index:calc(var(--ck-z-default) + 1);background:linear-gradient(135deg,#fff0 0%,#ffffff4d 100%);border-radius:100px;display:block;position:absolute;top:1px;left:1px}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after{outline-color:#0000}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{pointer-events:none;background:var(--ck-color-base-text);outline:1px solid #ffffff80;height:1px;animation:1s linear infinite forwards ck-widget-type-around-fake-caret-pulse}:is(.ck .ck-widget.ck-widget_type-around_show-fake-caret_before,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after).ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}:is(.ck .ck-widget.ck-widget_type-around_show-fake-caret_before,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after)>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}:is(:is(.ck .ck-widget.ck-widget_type-around_show-fake-caret_before,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after).ck-widget_with-selection-handle.ck-widget_selected,:is(.ck .ck-widget.ck-widget_type-around_show-fake-caret_before,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after).ck-widget_with-selection-handle.ck-widget_selected:hover)>.ck-widget__selection-handle,:is(.ck .ck-widget.ck-widget_type-around_show-fake-caret_before,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after).ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer{opacity:0}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;position:absolute;left:0;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(-1 * var(--ck-widget-outline-thickness));right:calc(-1 * var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{top:calc(-1 * var(--ck-widget-outline-thickness) - 1px);display:block}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(-1 * var(--ck-widget-outline-thickness) - 1px);display:block}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}:is(.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover)>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget:has(.ck-widget.table:hover)>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10px}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7px}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around{display:none}.ck.ck-editor__editable.ck-restricted-editing_mode_restricted div.restricted-editing-exception .ck-widget__type-around{display:initial}:root{--hz-navy-950:#071c35;--hz-navy-900:#0d2d54;--hz-navy-800:#113b6c;--hz-blue-700:#17558f;--hz-blue-100:#e8f0f8;--hz-red-700:#9f3038;--hz-red-100:#f8e9e9;--hz-ink:#182536;--hz-muted:#5d6c7d;--hz-line:#d5dee8;--hz-paper:#f4f7fa;--hz-white:#fff;--hz-title:"Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;--hz-body:"Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;color:var(--hz-ink);font-family:var(--hz-body);font-synthesis:none}html{scroll-behavior:smooth}body{background:var(--hz-white);min-width:320px;color:var(--hz-ink);margin:0}.hz-site,.hz-site *{box-sizing:border-box}.hz-site{background:var(--hz-white);min-height:100vh;color:var(--hz-ink);font-family:var(--hz-body);line-height:1.6}.hz-site button,.hz-failure button{font:inherit;border:0;margin:0}.hz-site button{cursor:pointer}.hz-site button:focus-visible,.hz-site a:focus-visible,.hz-failure button:focus-visible{outline-offset:3px;outline:3px solid #e2a918}.hz-container{width:min(1180px,100% - 48px);margin-inline:auto}.hz-skip{z-index:100;background:var(--hz-white);color:var(--hz-navy-900);border-radius:3px;padding:10px 16px;font-weight:700;transition:transform .16s;position:fixed;top:10px;left:10px;transform:translateY(-160%)}.hz-skip:focus{transform:translateY(0)}.hz-service-bar{background:var(--hz-navy-950);color:#dbe7f4;letter-spacing:.04em;min-height:38px;font-size:12px}.hz-service-bar__inner{justify-content:space-between;align-items:center;gap:24px;min-height:38px;display:flex}.hz-service-bar p,.hz-service-bar div{align-items:center;gap:18px;margin:0;display:flex}.hz-service-bar p span{background:#5ba8e5;border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 4px #5ba8e524}.hz-service-bar button{color:#fff;background:0 0;border-left:1px solid #fff3;padding:0 0 0 18px;font-size:12px}.hz-header{z-index:30;border-bottom:1px solid var(--hz-line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#fffffff7;position:sticky;top:0;box-shadow:0 6px 22px #09223e0f}.hz-header__inner{grid-template-columns:auto 1fr auto;align-items:center;gap:34px;min-height:78px;display:grid}.hz-brand{color:var(--hz-navy-900);text-align:left;background:0 0;align-items:center;gap:13px;padding:0;display:inline-flex}.hz-brand__seal{border:2px solid var(--hz-red-700);background:var(--hz-red-700);color:#fff;width:44px;height:44px;font-family:var(--hz-title);flex:0 0 44px;place-items:center;font-size:24px;font-weight:800;line-height:1;display:grid;box-shadow:inset 0 0 0 3px #ffffff3d}.hz-brand__copy{flex-direction:column;line-height:1.1;display:flex}.hz-brand__copy strong{font-family:var(--hz-title);letter-spacing:.08em;font-size:20px}.hz-brand__copy small{color:#63758b;letter-spacing:.12em;margin-top:7px;font-size:8px;font-weight:700}.hz-nav{justify-content:center;align-self:stretch;align-items:stretch;gap:2px;display:flex}.hz-nav button{color:#34465c;background:0 0;padding:0 17px;font-size:14px;font-weight:650;position:relative}.hz-nav button:after{content:"";background:var(--hz-red-700);height:3px;transition:transform .18s;position:absolute;bottom:-1px;left:17px;right:17px;transform:scaleX(0)}.hz-nav button:hover,.hz-nav button.is-current{color:var(--hz-navy-900)}.hz-nav button:hover:after,.hz-nav button.is-current:after{transform:scaleX(1)}.hz-header__actions{align-items:center;gap:8px;display:flex}.hz-account-link{background:var(--hz-navy-800);color:#fff;border-radius:2px;min-height:40px;padding:0 16px;border:1px solid var(--hz-navy-800)!important;font-size:13px!important;font-weight:700!important}.hz-account-link:hover{background:var(--hz-navy-950)}.hz-exit-link{color:var(--hz-muted);background:0 0;padding:9px 4px;font-size:13px!important}.hz-menu{background:0 0;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:42px;height:42px;display:none}.hz-menu span{background:var(--hz-navy-900);width:22px;height:2px}.hz-hero{border-bottom:1px solid var(--hz-line);background:linear-gradient(90deg,#113b6c0b 1px,#0000 1px) 0 0/62px 62px,linear-gradient(#113b6c0b 1px,#0000 1px) 0 0/62px 62px,linear-gradient(118deg,#f8fafc 0%,#f3f7fb 63%,#edf3f8 100%);position:relative;overflow:hidden}.hz-hero:before{content:"准";color:#0d2d5409;font-family:var(--hz-title);pointer-events:none;font-size:530px;font-weight:900;line-height:1;position:absolute;bottom:-160px;right:max(-30px,50vw - 670px)}.hz-latest{z-index:1;width:100%;min-height:46px;color:var(--hz-ink);text-align:left;background:#ffffffc7;grid-template-columns:auto 1fr auto auto;align-items:center;gap:18px;margin-top:22px;padding:0 18px 0 0;display:grid;position:relative;border:1px solid #cfd9e5!important;border-left:0!important}.hz-latest>span{background:var(--hz-red-700);color:#fff;letter-spacing:.08em;align-self:stretch;place-items:center;padding:0 16px;font-size:12px;font-weight:700;display:grid}.hz-latest strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.hz-latest time{color:var(--hz-muted);font-size:12px}.hz-latest i{color:var(--hz-red-700);font-style:normal}.hz-hero__grid{z-index:1;grid-template-columns:minmax(0,1.18fr) minmax(380px,.82fr);align-items:center;gap:74px;padding:74px 0 82px;display:grid;position:relative}.hz-kicker,.hz-section-heading p,.hz-guide__intro>p{color:var(--hz-blue-700);letter-spacing:.2em;text-transform:uppercase;margin:0 0 15px;font-size:11px;font-weight:800}.hz-kicker:before{content:"";vertical-align:middle;background:var(--hz-red-700);width:28px;height:2px;margin-right:12px;display:inline-block}.hz-hero__content h1{max-width:700px;color:var(--hz-navy-950);font-family:var(--hz-title);letter-spacing:-.035em;margin:0;font-size:clamp(42px,4.6vw,67px);font-weight:800;line-height:1.25}.hz-hero__content h1 em{color:var(--hz-navy-800);font-style:normal;display:block}.hz-hero__lead{color:#52657a;max-width:680px;margin:26px 0 0;font-size:17px;line-height:1.9}.hz-hero__actions{gap:12px;margin-top:34px;display:flex}.hz-button{border-radius:2px;justify-content:center;align-items:center;gap:26px;min-height:50px;padding:0 22px;transition:transform .16s,box-shadow .16s,background .16s;display:inline-flex;font-size:14px!important;font-weight:750!important}.hz-button:hover{transform:translateY(-2px)}.hz-button--primary{background:var(--hz-navy-800);color:#fff;box-shadow:0 12px 25px #113b6c2e}.hz-button--primary:hover{background:var(--hz-navy-950);box-shadow:0 15px 30px #113b6c40}.hz-button--secondary{color:var(--hz-navy-900);background:#ffffff80;border:1px solid #b9c7d6!important}.hz-button--secondary:hover{background:#fff;border-color:var(--hz-navy-800)!important}.hz-trust-list{flex-wrap:wrap;gap:10px 28px;margin:34px 0 0;display:flex}.hz-trust-list div{align-items:center;gap:8px;display:flex}.hz-trust-list dt{color:var(--hz-red-700);font-size:11px;font-weight:800}.hz-trust-list dd{color:#53677c;margin:0;font-size:12px}.hz-exam-docket{background:#fff;border:1px solid #bdcad8;position:relative;box-shadow:0 28px 65px #0e2d4e24}.hz-exam-docket:before,.hz-exam-docket:after{content:"";background:#eff4f8;border:1px solid #bdcad8;width:17px;height:34px;position:absolute;top:50%;transform:translateY(-50%)}.hz-exam-docket:before{border-left:0;border-radius:0 24px 24px 0;left:-1px}.hz-exam-docket:after{border-right:0;border-radius:24px 0 0 24px;right:-1px}.hz-exam-docket>header{background:#f9fbfd;border-bottom:1px dashed #c4cfdb;justify-content:space-between;align-items:center;gap:16px;min-height:59px;padding:0 24px;display:flex}.hz-exam-docket>header div{align-items:center;gap:12px;display:flex}.hz-exam-docket>header span{color:var(--hz-navy-900);font-weight:800}.hz-exam-docket>header small{color:var(--hz-muted);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px}.hz-exam-docket em,.hz-exam-card em{color:var(--hz-muted);align-items:center;gap:6px;font-size:12px;font-style:normal;font-weight:700;display:inline-flex}.hz-exam-docket em:before,.hz-exam-card em:before{content:"";background:#8392a2;border-radius:50%;width:7px;height:7px}.hz-exam-docket em.is-open,.hz-exam-card em.is-open{color:#17673d}.hz-exam-docket em.is-open:before,.hz-exam-card em.is-open:before{background:#259557;box-shadow:0 0 0 4px #e3f4e9}.hz-exam-docket em.is-upcoming,.hz-exam-card em.is-upcoming{color:#8a5714}.hz-exam-docket em.is-upcoming:before,.hz-exam-card em.is-upcoming:before{background:#d99625}.hz-exam-docket__body{padding:29px 30px 31px}.hz-exam-docket__body>p{color:#8290a0;letter-spacing:.18em;margin:0 0 6px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:9px}.hz-exam-docket__body h2{color:var(--hz-navy-950);font-family:var(--hz-title);margin:0 0 26px;font-size:25px;line-height:1.45}.hz-exam-docket__body dl{margin:0}.hz-exam-docket__body dl div{border-top:1px solid #e6ebf0;grid-template-columns:72px 1fr;gap:14px;padding:9px 0;display:grid}.hz-exam-docket__body dt{color:#738296;font-size:12px}.hz-exam-docket__body dd{color:#28384c;margin:0;font-size:12px;font-weight:650}.hz-subjects{flex-wrap:wrap;gap:6px;margin-top:18px;display:flex}.hz-subjects span{color:#506174;background:#f7f9fb;border:1px solid #d4dde6;padding:4px 8px;font-size:11px}.hz-exam-docket>footer{background:var(--hz-navy-900);color:#fff;border-top:1px dashed #c4cfdb;justify-content:space-between;align-items:center;gap:20px;min-height:73px;padding:0 30px;display:flex}.hz-exam-docket>footer p{align-items:baseline;gap:7px;margin:0;display:flex}.hz-exam-docket>footer strong{font-family:var(--hz-title);font-size:25px}.hz-exam-docket>footer span{color:#b8cce0;font-size:11px}.hz-exam-docket>footer button{color:#fff;background:0 0;padding:8px 0 8px 20px;font-size:13px;font-weight:700}.hz-exam-docket--empty{flex-direction:column;justify-content:center;min-height:330px;padding:40px;display:flex}.hz-exam-docket--empty:before,.hz-exam-docket--empty:after{display:none}.hz-exam-docket--empty>span{color:var(--hz-red-700);font-size:12px;font-weight:800}.hz-exam-docket--empty h2{font-family:var(--hz-title);margin:12px 0}.hz-exam-docket--empty p{color:var(--hz-muted)}.hz-entry-section{background:#fff;padding:62px 0 72px}.hz-section-heading{justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px;display:flex}.hz-section-heading p{margin-bottom:7px}.hz-section-heading h2{color:var(--hz-navy-950);font-family:var(--hz-title);letter-spacing:.01em;margin:0;font-size:30px}.hz-section-heading>span{max-width:410px;color:var(--hz-muted);text-align:right;font-size:13px}.hz-section-heading>button{color:var(--hz-blue-700);background:0 0;padding:8px 0;font-size:13px;font-weight:750}.hz-section-heading--compact{margin-bottom:20px}.hz-service-grid{border:1px solid var(--hz-line);grid-template-columns:repeat(4,1fr);display:grid}.hz-service-grid>button{border-right:1px solid var(--hz-line);min-height:190px;color:var(--hz-ink);text-align:left;background:#fff;flex-direction:column;align-items:flex-start;padding:24px 26px 22px;transition:background .18s,transform .18s,box-shadow .18s;display:flex}.hz-service-grid>button:last-child{border-right:0}.hz-service-grid>button:hover{z-index:1;background:var(--hz-navy-900);color:#fff;transform:translateY(-5px);box-shadow:0 16px 35px #0d2d5430}.hz-service-grid__index{color:var(--hz-red-700);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;font-weight:800}.hz-service-grid strong{font-family:var(--hz-title);margin-top:20px;font-size:18px}.hz-service-grid small{color:var(--hz-muted);margin-top:8px;font-size:12px;line-height:1.7}.hz-service-grid i{color:var(--hz-blue-700);margin-top:auto;font-size:12px;font-style:normal;font-weight:750}.hz-service-grid>button:hover small{color:#c3d2e1}.hz-service-grid>button:hover i,.hz-service-grid>button:hover .hz-service-grid__index{color:#fff}.hz-public-records{background:var(--hz-paper);border-block:1px solid var(--hz-line);padding:78px 0}.hz-records-grid{grid-template-columns:minmax(0,1.5fr) minmax(290px,.5fr);gap:52px;display:grid}.hz-featured-notice{border-top:3px solid var(--hz-navy-800);background:#fff;padding:30px 32px;box-shadow:0 14px 30px #0f2a4612}.hz-featured-notice>div{justify-content:space-between;gap:20px;display:flex}.hz-featured-notice>div span{color:var(--hz-red-700);font-size:12px;font-weight:800}.hz-featured-notice time{color:var(--hz-muted);font-size:12px}.hz-featured-notice h3{color:var(--hz-navy-950);font-family:var(--hz-title);margin:18px 0 10px;font-size:24px;line-height:1.5}.hz-featured-notice p{color:var(--hz-muted);margin:0;font-size:13px;line-height:1.8}.hz-featured-notice>button{color:var(--hz-blue-700);background:0 0;gap:16px;margin-top:22px;padding:7px 0;font-size:12px;font-weight:750;display:inline-flex}.hz-notice-list{border-top:1px solid var(--hz-line);margin-top:12px}.hz-notice-list>button{border-bottom:1px solid var(--hz-line);width:100%;min-height:85px;color:var(--hz-ink);text-align:left;background:0 0;grid-template-columns:62px 1fr auto;align-items:center;gap:18px;padding:12px 8px;display:grid}.hz-notice-list>button:hover{background:#fff}.hz-notice-list time{border-right:1px solid var(--hz-line);flex-direction:column;align-items:center;line-height:1.1;display:flex}.hz-notice-list time strong{color:var(--hz-navy-900);font-family:var(--hz-title);font-size:22px}.hz-notice-list time span{color:var(--hz-muted);margin-top:5px;font-size:9px}.hz-notice-list>button>span{flex-direction:column;min-width:0;display:flex}.hz-notice-list em{color:var(--hz-red-700);font-size:10px;font-style:normal}.hz-notice-list>button>span strong{text-overflow:ellipsis;white-space:nowrap;margin-top:4px;font-size:13px;overflow:hidden}.hz-notice-list i{color:var(--hz-blue-700);font-style:normal}.hz-operation-board{background:var(--hz-navy-900);color:#fff;border:1px solid #c5d0dc;align-self:start}.hz-operation-board>header{border-bottom:1px solid #ffffff29;justify-content:space-between;padding:20px 22px;display:flex}.hz-operation-board>header span{font-family:var(--hz-title);font-size:17px;font-weight:800}.hz-operation-board>header small{color:#9db2c7;font-size:10px}.hz-operation-board>dl{margin:0;padding:8px 22px}.hz-operation-board>dl div{border-bottom:1px solid #ffffff21;justify-content:space-between;align-items:baseline;padding:18px 0;display:flex}.hz-operation-board dt{color:#bdd0e1;font-size:12px}.hz-operation-board dd{font-family:var(--hz-title);margin:0;font-size:29px;font-weight:800}.hz-operation-board dd small{color:#9db2c7;font-family:var(--hz-body);margin-left:5px;font-size:10px;font-weight:500}.hz-operation-board>section{background:#ffffff14;margin:14px;padding:19px}.hz-operation-board>section strong{font-size:12px}.hz-operation-board>section p{color:#bdccdb;margin:8px 0 15px;font-size:11px;line-height:1.8}.hz-operation-board>section button{color:#fff;background:0 0;padding:6px 0;font-size:11px;font-weight:700}.hz-exams{background:#fff;padding:82px 0 92px;scroll-margin-top:78px}.hz-exam-grid{grid-template-columns:repeat(3,1fr);gap:18px;display:grid}.hz-exam-card{border:1px solid var(--hz-line);background:#fff;flex-direction:column;min-height:390px;padding:25px;transition:border .18s,box-shadow .18s,transform .18s;display:flex}.hz-exam-card:hover{border-color:#9fb2c5;transform:translateY(-4px);box-shadow:0 18px 38px #0c2c4e17}.hz-exam-card>header{justify-content:space-between;gap:14px;display:flex}.hz-exam-card>header>span{color:var(--hz-blue-700);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;font-weight:800}.hz-exam-card h3{color:var(--hz-navy-950);font-family:var(--hz-title);margin:25px 0 10px;font-size:21px;line-height:1.5}.hz-exam-card>p{color:var(--hz-muted);margin:0;font-size:12px;line-height:1.75}.hz-exam-card dl{margin:23px 0}.hz-exam-card dl div{border-top:1px solid #e6ebf0;grid-template-columns:64px 1fr;gap:12px;padding:8px 0;display:grid}.hz-exam-card dt{color:#778597;font-size:11px}.hz-exam-card dd{color:#34475b;margin:0;font-size:11px;font-weight:650}.hz-exam-card>footer{border-top:1px solid var(--hz-line);justify-content:space-between;align-items:center;gap:16px;margin-top:auto;padding-top:17px;display:flex}.hz-exam-card>footer span{color:var(--hz-muted);font-size:11px}.hz-exam-card>footer button{color:var(--hz-blue-700);background:0 0;padding:6px 0;font-size:11px;font-weight:800}.hz-guide{background:var(--hz-navy-950);color:#fff;padding:80px 0;scroll-margin-top:78px}.hz-guide .hz-container{grid-template-columns:.72fr 1.28fr;gap:78px;display:grid}.hz-guide__intro>p{color:#7cb2de}.hz-guide__intro h2{font-family:var(--hz-title);margin:0;font-size:32px;line-height:1.45}.hz-guide__intro>span{color:#a9bed3;margin-top:18px;font-size:13px;line-height:1.9;display:block}.hz-guide ol{border-top:1px solid #ffffff29;border-left:1px solid #ffffff29;grid-template-columns:repeat(2,1fr);gap:0;margin:0;padding:0;list-style:none;display:grid}.hz-guide li{border-bottom:1px solid #ffffff29;border-right:1px solid #ffffff29;gap:17px;min-height:145px;padding:25px;display:flex}.hz-guide li>span{color:#9fc0dc;width:28px;height:28px;font-family:var(--hz-title);border:1px solid #6e91b1;flex:0 0 28px;place-items:center;font-size:13px;display:grid}.hz-guide li strong{font-family:var(--hz-title);font-size:16px}.hz-guide li p{color:#a9bed3;margin:8px 0 0;font-size:11px;line-height:1.8}.hz-footer{border-top:1px solid var(--hz-line);background:#f0f3f6}.hz-footer__main{grid-template-columns:.85fr 1.35fr .5fr;align-items:center;gap:55px;min-height:178px;display:grid}.hz-footer__brand{align-items:center;gap:14px;display:flex}.hz-footer__brand>div{flex-direction:column;display:flex}.hz-footer__brand strong{color:var(--hz-navy-950);font-family:var(--hz-title);font-size:18px}.hz-footer__brand small{color:var(--hz-muted);letter-spacing:.14em;margin-top:6px;font-size:10px}.hz-footer dl{border-left:1px solid var(--hz-line);margin:0;padding-left:30px}.hz-footer dl div{grid-template-columns:72px 1fr;gap:15px;padding:3px 0;display:grid}.hz-footer dt{color:var(--hz-muted);font-size:11px}.hz-footer dd{color:#304155;margin:0;font-size:11px}.hz-footer__links{flex-direction:column;align-items:flex-start;display:flex}.hz-footer__links button{color:#405469;background:0 0;padding:4px 0;font-size:11px}.hz-footer__legal{color:#657486;background:#e4e9ee;align-items:center;min-height:47px;font-size:10px;display:flex}.hz-footer__legal .hz-container{justify-content:space-between;gap:24px;display:flex}.hz-empty{color:var(--hz-muted);text-align:center;border:1px dashed #bdc9d5;padding:30px;font-size:13px}.hz-empty--large{padding:70px 30px}.hz-loading,.hz-failure{min-height:100vh;color:var(--hz-navy-900);font-family:var(--hz-body);background:#f3f6f9;flex-direction:column;justify-content:center;align-items:center;display:flex}.hz-loading__seal{background:var(--hz-red-700);color:#fff;width:54px;height:54px;font-family:var(--hz-title);place-items:center;margin-bottom:18px;font-size:28px;display:grid;box-shadow:inset 0 0 0 4px #ffffff40}.hz-loading strong{font-family:var(--hz-title);letter-spacing:.08em}.hz-loading small{color:var(--hz-muted);margin-top:8px}.hz-failure{text-align:center;padding:30px}.hz-failure>span{color:var(--hz-red-700);font-size:12px;font-weight:800}.hz-failure h1{font-family:var(--hz-title);margin:12px 0 4px}.hz-failure p{color:var(--hz-muted)}.hz-failure button{background:var(--hz-navy-800);color:#fff;cursor:pointer;margin-top:16px;padding:11px 20px}@media (width<=1060px){.hz-header__inner{gap:16px}.hz-nav button{padding-inline:10px;font-size:13px}.hz-nav button:after{left:10px;right:10px}.hz-hero__grid{grid-template-columns:1fr 370px;gap:36px}.hz-hero__content h1{font-size:46px}.hz-service-grid{grid-template-columns:repeat(2,1fr)}.hz-service-grid>button:nth-child(2){border-right:0}.hz-service-grid>button:nth-child(-n+2){border-bottom:1px solid var(--hz-line)}.hz-records-grid{gap:28px}.hz-exam-grid{grid-template-columns:repeat(2,1fr)}.hz-footer__main{grid-template-columns:1fr 1.4fr}.hz-footer__links{display:none}}@media (width<=820px){.hz-container{width:min(100% - 32px,700px)}.hz-service-bar__inner>div span{display:none}.hz-header__inner{grid-template-columns:1fr auto;min-height:70px}.hz-brand__seal{flex-basis:39px;width:39px;height:39px;font-size:21px}.hz-brand__copy strong{font-size:17px}.hz-brand__copy small{display:none}.hz-menu{display:flex}.hz-nav{border-bottom:1px solid var(--hz-line);background:#fff;flex-direction:column;align-items:stretch;padding:10px 16px 16px;display:none;position:absolute;top:70px;left:0;right:0;box-shadow:0 16px 28px #0a23401a}.hz-nav.is-open{display:flex}.hz-nav button{text-align:left;min-height:45px}.hz-nav button:after{display:none}.hz-hero__grid{grid-template-columns:1fr;padding:55px 0 62px}.hz-hero__content h1{max-width:650px;font-size:clamp(39px,8vw,54px)}.hz-exam-docket{max-width:560px}.hz-records-grid{grid-template-columns:1fr}.hz-operation-board{max-width:none}.hz-guide .hz-container{grid-template-columns:1fr;gap:38px}.hz-footer__main{grid-template-columns:1fr;gap:24px;padding-block:42px}.hz-footer dl{border-top:1px solid var(--hz-line);border-left:0;padding:22px 0 0}}@media (width<=580px){.hz-container{width:calc(100% - 28px)}.hz-service-bar__inner{justify-content:center}.hz-service-bar__inner>div{display:none}.hz-account-link{text-overflow:ellipsis;white-space:nowrap;max-width:132px;overflow:hidden}.hz-exit-link{display:none}.hz-latest{grid-template-columns:auto 1fr auto;gap:10px;padding-right:12px}.hz-latest time{display:none}.hz-latest>span{padding-inline:10px}.hz-hero__grid{padding-top:46px}.hz-hero__content h1{font-size:38px;line-height:1.35}.hz-hero__lead{font-size:14px}.hz-hero__actions{flex-direction:column;align-items:stretch}.hz-trust-list{flex-direction:column;align-items:flex-start}.hz-exam-docket__body{padding:25px 22px}.hz-exam-docket>footer{padding-inline:22px}.hz-section-heading{flex-direction:column;align-items:flex-start}.hz-section-heading>span{text-align:left}.hz-service-grid{grid-template-columns:1fr}.hz-service-grid>button{border-right:0;border-bottom:1px solid var(--hz-line);min-height:170px}.hz-service-grid>button:last-child{border-bottom:0}.hz-records-grid{gap:38px}.hz-featured-notice{padding:25px 22px}.hz-featured-notice h3{font-size:20px}.hz-notice-list>button{grid-template-columns:52px 1fr auto;gap:10px}.hz-exam-grid{grid-template-columns:1fr}.hz-exam-card{min-height:360px}.hz-guide ol{grid-template-columns:1fr}.hz-guide__intro h2{font-size:27px}.hz-footer__legal .hz-container{flex-direction:column;gap:2px;padding-block:10px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}:root{--app-navy:#0d2d54;--app-blue:#17558f;--app-red:#9f3038;--app-ink:#172538;--app-muted:#647386;--app-line:#d7e0e9;--app-bg:#f3f6f9;--app-white:#fff;--app-shadow:0 10px 28px #0d2d5412;--app-title:"Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;--app-body:"PingFang SC", "Microsoft YaHei", system-ui, sans-serif}*,:before,:after{box-sizing:border-box}body{background:var(--app-bg);min-width:320px;color:var(--app-ink);font-family:var(--app-body);margin:0;font-size:14px;line-height:1.55}button,input,select,textarea{box-sizing:border-box;font:inherit}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:2px;outline:3px solid #e1ab24}.app-container{width:min(1180px,100% - 48px);margin-inline:auto}.app-brand{color:var(--app-navy);align-items:center;gap:12px;text-decoration:none;display:inline-flex}.app-brand>span{background:var(--app-red);color:#fff;width:42px;height:42px;font-family:var(--app-title);place-items:center;font-size:22px;font-weight:800;display:grid;box-shadow:inset 0 0 0 3px #ffffff40}.app-brand>div{flex-direction:column;line-height:1.1;display:flex}.app-brand strong{font-family:var(--app-title);letter-spacing:.08em;font-size:18px}.app-brand small{letter-spacing:.1em;margin-top:6px;font-size:8px;font-weight:700}.app-brand--light{color:#fff}.app-button{border:1px solid var(--app-line);min-height:40px;color:var(--app-navy);cursor:pointer;background:#fff;border-radius:2px;justify-content:center;align-items:center;padding:0 18px;font-weight:700;text-decoration:none;display:inline-flex}.app-button--primary{border-color:var(--app-navy);background:var(--app-navy);color:#fff}.app-button--primary:hover{background:#071c35}.app-button--large{min-height:49px}.app-button:disabled{opacity:.55;cursor:not-allowed}.app-link-button{color:var(--app-muted);cursor:pointer;background:0 0;border:0}.public-frame{background:#fff;flex-direction:column;min-height:100vh;display:flex}.public-frame__utility{color:#d8e5f1;background:#071c35;align-items:center;min-height:36px;font-size:11px;display:flex}.public-frame__utility .app-container{justify-content:space-between;display:flex}.public-frame__header{z-index:30;border-bottom:1px solid var(--app-line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#fffffff7;position:sticky;top:0;box-shadow:0 7px 22px #0c2a490f}.public-frame__header>.app-container{grid-template-columns:auto 1fr auto;align-items:center;gap:35px;min-height:76px;display:grid}.public-frame__header nav{justify-content:center;gap:7px;display:flex}.public-frame__header nav a{color:#33465c;padding:12px 15px;font-size:13px;font-weight:700;text-decoration:none}.public-frame__header nav a.router-link-active{color:var(--app-navy);box-shadow:inset 0 -3px var(--app-red)}.public-frame__actions{align-items:center;gap:8px;display:flex}.public-frame__menu{width:42px;height:42px;color:var(--app-navy);background:0 0;border:0;font-size:21px;display:none}.public-frame__main{flex:1}.public-frame__footer{border-top:1px solid var(--app-line);background:#e9eef3;margin-top:80px}.public-frame__footer .app-container{justify-content:space-between;align-items:center;gap:30px;min-height:110px;display:flex}.public-frame__footer div>div{flex-direction:column;display:flex}.public-frame__footer strong{color:var(--app-navy);font-family:var(--app-title)}.public-frame__footer span{color:var(--app-muted);font-size:11px}.public-page-head{background:var(--app-navy);color:#fff;padding:62px 0}.public-page-head p,.verification-page__intro p,.auth-card>p,.business-form>p,.record-panel>header span{color:#79add8;letter-spacing:.18em;margin:0 0 9px;font-size:10px;font-weight:800}.public-page-head h1{font-family:var(--app-title);margin:0;font-size:38px}.public-page-head span{color:#b9cbdb;margin-top:12px;font-size:13px;display:block}.public-directory{grid-template-columns:230px 1fr;gap:44px;padding-top:54px;display:grid}.public-directory>.page-state{grid-column:1/-1}.public-directory>:not(.page-state){display:contents}.public-directory__filters{border-top:3px solid var(--app-navy);background:var(--app-bg);flex-direction:column;align-self:start;display:flex}.public-directory__filters>strong{font-family:var(--app-title);padding:20px}.public-directory__filters button{border:0;border-top:1px solid var(--app-line);color:#45586d;text-align:left;cursor:pointer;background:0 0;justify-content:space-between;padding:12px 20px;display:flex}.public-directory__filters button.active{background:var(--app-navy);color:#fff}.public-directory__filters button span{font-size:10px}.directory-toolbar{justify-content:space-between;align-items:end;gap:20px;margin-bottom:18px;display:flex}.directory-toolbar label{color:var(--app-muted);flex-direction:column;flex:1;gap:7px;font-size:11px;display:flex}.directory-toolbar input,.record-search input{border:1px solid var(--app-line);background:#fff;min-height:45px;padding:0 14px}.directory-list{border-top:2px solid var(--app-navy)}.directory-list>button{border:0;border-bottom:1px solid var(--app-line);width:100%;min-height:108px;color:var(--app-ink);text-align:left;cursor:pointer;background:#fff;grid-template-columns:70px 1fr auto;align-items:center;gap:22px;padding:16px;display:grid}.directory-list>button:hover{background:#f7f9fb}.directory-list time{border-right:1px solid var(--app-line);flex-direction:column;align-items:center;display:flex}.directory-list time strong{font-family:var(--app-title);font-size:26px}.directory-list time span{color:var(--app-muted);font-size:9px}.directory-list>button>span{flex-direction:column;min-width:0;display:flex}.directory-list em{color:var(--app-red);font-size:10px;font-style:normal}.directory-list>button>span strong{text-overflow:ellipsis;white-space:nowrap;margin:4px 0;overflow:hidden}.directory-list small{color:var(--app-muted);font-size:11px}.directory-list i{color:var(--app-blue);font-style:normal}.app-pagination{justify-content:center;align-items:center;gap:18px;padding-top:24px;display:flex}.app-pagination button{border:1px solid var(--app-line);cursor:pointer;background:#fff;padding:8px 14px}.app-pagination button:disabled{opacity:.45}.app-pagination span{color:var(--app-muted);font-size:11px}.document-page{padding-top:38px}.document-page__back{color:var(--app-blue);cursor:pointer;background:0 0;border:0;margin-bottom:18px;padding:8px 0}.public-document{border:1px solid var(--app-line);background:#fff;overflow:hidden;box-shadow:0 20px 45px #0d2d5412}.public-document>header{border-bottom:1px solid var(--app-line);text-align:center;background:#f7f9fb;padding:48px max(32px,8vw)}.public-document>header span{color:var(--app-red);letter-spacing:.08em;font-size:11px;font-weight:800}.public-document>header h1{font-family:var(--app-title);margin:16px 0 10px;font-size:32px;line-height:1.5}.public-document>header p{color:var(--app-muted);font-size:11px}.public-document>section{padding:42px max(30px,7vw)}.document-richtext{font-size:15px;line-height:2}.document-richtext img{max-width:100%}.document-table-wrap{overflow-x:auto}.document-table-wrap>p{color:var(--app-muted)}.document-table-wrap table,.record-table-wrap table{border-collapse:collapse;width:100%;font-size:12px}.document-table-wrap th,.document-table-wrap td,.record-table-wrap th,.record-table-wrap td{border-bottom:1px solid var(--app-line);text-align:left;vertical-align:top;padding:12px 14px}.document-table-wrap th,.record-table-wrap th{color:#42566b;white-space:nowrap;background:#edf2f6;font-size:10px}.record-metrics{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;display:grid}.record-metrics article{border:1px solid var(--app-line);background:#fff;flex-direction:column;justify-content:center;min-height:105px;padding:18px;display:flex}.record-metrics article span{color:var(--app-muted);font-size:11px}.record-metrics article strong{color:var(--app-navy);font-family:var(--app-title);margin-top:5px;font-size:25px}.verification-page{padding-top:70px}.verification-page__intro{max-width:700px}.verification-page__intro h1{color:var(--app-navy);font-family:var(--app-title);margin:0;font-size:42px}.verification-page__intro>span{color:var(--app-muted)}.verification-form{border:1px solid var(--app-line);background:#fff;grid-template-columns:1fr auto;gap:12px;margin:34px 0;padding:22px;display:grid}.verification-form label{color:var(--app-muted);flex-direction:column;gap:7px;font-size:11px;display:flex}.verification-form input{border:1px solid var(--app-line);min-height:46px;padding:0 15px;font-family:ui-monospace,Consolas,monospace}.verification-form button{background:var(--app-navy);color:#fff;border:0;align-self:end;min-height:46px;padding:0 25px;font-weight:700}.verification-result{border:1px solid var(--app-line);background:#fff;grid-template-columns:auto 1fr;gap:22px;padding:30px;display:grid}.verification-result>span{color:#197346;background:#e2f3e9;border-radius:50%;place-items:center;width:52px;height:52px;font-size:24px;display:grid}.verification-result.is-invalid>span{color:var(--app-red);background:#f8e8e8}.verification-result h2{font-family:var(--app-title);margin:3px 0}.verification-result p{color:var(--app-muted);margin:0}.verification-result dl{background:var(--app-line);grid-column:1/-1;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1px;margin:12px 0 0;display:grid}.verification-result dl div{background:#f8fafb;padding:15px}.verification-result dt{color:var(--app-muted);font-size:10px}.verification-result dd{margin:5px 0 0;font-weight:700}.verification-safety{border-left:3px solid var(--app-blue);background:#eaf1f7;margin-top:18px;padding:18px 20px}.verification-safety p{color:var(--app-muted);margin:4px 0 0;font-size:11px}.auth-view{background:#fff;grid-template-columns:minmax(330px,.8fr) minmax(520px,1.2fr);min-height:100vh;display:grid}.auth-view__identity{background:var(--app-navy);color:#fff;flex-direction:column;justify-content:space-between;min-height:100vh;padding:48px 9vw 48px 5vw;display:flex}.auth-view__identity>div p{color:#7db0da;letter-spacing:.18em;font-size:10px;font-weight:800}.auth-view__identity h1{max-width:540px;font-family:var(--app-title);margin:14px 0;font-size:clamp(36px,4vw,58px);line-height:1.35}.auth-view__identity>div>span,.auth-view__identity>small{color:#aebfd0;line-height:1.9}.auth-view__panel{flex-direction:column;justify-content:center;align-items:center;padding:50px 6vw;display:flex}.auth-view__back{color:var(--app-blue);align-self:flex-start;font-size:12px;text-decoration:none}.auth-card{flex-direction:column;width:min(520px,100%);margin:auto;display:flex}.auth-card h2,.business-form h2{color:var(--app-navy);font-family:var(--app-title);margin:4px 0 8px;font-size:30px}.auth-card>span,.business-form>span{color:var(--app-muted);margin-bottom:25px;font-size:12px;line-height:1.8}.auth-card label,.business-form label{color:#506175;flex-direction:column;gap:7px;margin-bottom:15px;font-size:11px;display:flex}.auth-card input,.auth-card select,.business-form input,.business-form select,.business-form textarea,.preference-row select{width:100%;min-height:44px;color:var(--app-ink);background:#fff;border:1px solid #cbd6e1;padding:9px 12px}.auth-card textarea,.business-form textarea{resize:vertical}.auth-card__switch{color:var(--app-muted);text-align:center;font-size:11px}.auth-card__switch a{color:var(--app-blue)}.form-error{border-left:3px solid var(--app-red);color:#8c2c33;background:#f9ebeb;margin-bottom:16px;padding:12px 14px;font-size:12px}.issued-card>strong{border:1px dashed var(--app-red);color:var(--app-navy);text-align:center;margin:25px 0;padding:20px;font-family:ui-monospace,Consolas,monospace;font-size:25px}.form-grid{grid-template-columns:repeat(2,1fr);gap:0 15px;display:grid}.form-grid .wide{grid-column:1/-1}.portal-shell{background:var(--app-bg);min-height:100vh}.portal-shell__sidebar{z-index:50;color:#fff;background:#0a2748;flex-direction:column;width:252px;display:flex;position:fixed;inset:0 auto 0 0;overflow-y:auto}.portal-shell__brand{color:#fff;align-items:center;gap:10px;min-height:74px;padding:0 20px;text-decoration:none;display:flex}.portal-shell__brand>span{background:var(--app-red);width:38px;height:38px;font-family:var(--app-title);place-items:center;font-size:20px;display:grid}.portal-shell__brand div{flex-direction:column;display:flex}.portal-shell__brand strong{font-family:var(--app-title);font-size:15px}.portal-shell__brand small{color:#8eabc6;letter-spacing:.12em;font-size:7px}.portal-shell__close{display:none}.portal-shell__role{color:#a9bfd4;border-block:1px solid #ffffff1a;margin:0;padding:12px 20px;font-size:11px}.portal-shell__sidebar nav{padding:13px 10px 25px}.portal-shell__sidebar nav section>strong{color:#7895b0;letter-spacing:.14em;padding:15px 10px 5px;font-size:9px;display:block}.portal-shell__sidebar nav a{color:#cad8e5;border-radius:2px;align-items:center;gap:11px;min-height:39px;padding:0 10px;font-size:12px;text-decoration:none;display:flex}.portal-shell__sidebar nav a>span{color:#9fb5ca;width:24px;height:24px;font-family:var(--app-title);border:1px solid #ffffff21;place-items:center;font-size:10px;display:grid}.portal-shell__sidebar nav a:hover,.portal-shell__sidebar nav a.router-link-active{color:#fff;background:#17456f}.portal-shell__scope{background:#ffffff12;margin:auto 14px 16px;padding:14px}.portal-shell__scope span,.portal-shell__scope small{color:#8fa9c1;font-size:9px;display:block}.portal-shell__scope strong{margin:5px 0;font-size:11px;display:block}.portal-shell__main{min-height:100vh;margin-left:252px}.portal-shell__topbar{z-index:25;border-bottom:1px solid var(--app-line);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffffff7;grid-template-columns:1fr auto;align-items:center;min-height:64px;padding:0 30px;display:grid;position:sticky;top:0}.portal-shell__topbar>button{display:none}.portal-shell__topbar>div:first-of-type{color:var(--app-muted);align-items:center;gap:9px;font-size:11px;display:flex}.portal-shell__topbar b{color:#b9c4cf}.portal-shell__topbar strong{color:var(--app-navy)}.portal-shell__user{align-items:center;gap:9px;display:flex}.portal-shell__user>i{width:35px;height:35px;color:var(--app-navy);font-family:var(--app-title);background:#dce8f2;border-radius:50%;place-items:center;font-style:normal;display:grid}.portal-shell__user>span{flex-direction:column;display:flex}.portal-shell__user small{max-width:170px;color:var(--app-muted);text-overflow:ellipsis;white-space:nowrap;font-size:9px;overflow:hidden}.portal-shell__user>button{color:var(--app-muted);cursor:pointer;background:0 0;border:0;font-size:10px}.portal-shell__content{padding:30px}.portal-page-heading{justify-content:space-between;align-items:end;gap:20px;margin-bottom:25px;display:flex}.portal-page-heading p{color:var(--app-blue);letter-spacing:.18em;margin:0 0 4px;font-size:9px;font-weight:800}.portal-page-heading h1{color:var(--app-navy);font-family:var(--app-title);margin:0;font-size:29px}.portal-page-heading span{color:var(--app-muted);margin-top:5px;font-size:11px;display:block}.record-explorer{flex-direction:column;gap:18px;display:flex}.record-search{color:var(--app-muted);flex-direction:column;gap:6px;font-size:10px;display:flex}.record-panel{border:1px solid var(--app-line);background:#fff;overflow:hidden}.record-panel>header{border-bottom:1px solid var(--app-line);justify-content:space-between;align-items:center;gap:20px;min-height:62px;padding:0 20px;display:flex}.record-panel>header h2{color:var(--app-navy);font-family:var(--app-title);margin:0;font-size:17px}.record-panel>header p{color:var(--app-muted);margin:2px 0 0;font-size:10px}.record-table-wrap{overflow-x:auto}.record-table-wrap td{word-break:break-word;max-width:330px}.status-badge{color:#53657a;white-space:nowrap;background:#e9eef3;border-radius:20px;align-items:center;padding:4px 8px;font-size:9px;font-weight:750;display:inline-flex}.status-badge.is-approved,.status-badge.is-active,.status-badge.is-open,.status-badge.is-paid,.status-badge.is-final,.status-badge.is-reported{color:#197044;background:#e1f3e8}.status-badge.is-pending,.status-badge.is-upcoming,.status-badge.is-school-review,.status-badge.is-withdrawal-pending{color:#8a5c11;background:#fff1d7}.status-badge.is-rejected,.status-badge.is-disabled,.status-badge.is-not-reported{color:#922f38;background:#f8e5e7}.status-badge.is-published{color:#195c93;background:#dfeaf6}.page-state{border:1px solid var(--app-line);text-align:center;background:#fff;flex-direction:column;justify-content:center;align-items:center;min-height:270px;padding:28px;display:flex}.page-state p{max-width:560px;color:var(--app-muted);margin:6px 0;font-size:11px}.page-state button{background:var(--app-navy);color:#fff;cursor:pointer;border:0;margin-top:12px;padding:9px 16px}.page-state--loading i{border:3px solid #d8e2ec;border-top-color:var(--app-blue);border-radius:50%;width:24px;height:24px;margin-bottom:12px;animation:.8s linear infinite app-spin}.page-state--error>span{width:38px;height:38px;color:var(--app-red);background:#f8e4e5;border-radius:50%;place-items:center;margin-bottom:10px;font-weight:800;display:grid}@keyframes app-spin{to{transform:rotate(360deg)}}.candidate-welcome-vue{background:var(--app-navy);color:#fff;justify-content:space-between;align-items:center;gap:30px;min-height:180px;padding:32px;display:flex}.candidate-welcome-vue>div>span{color:#82b1d7;font-size:11px}.candidate-welcome-vue h2{font-family:var(--app-title);margin:7px 0;font-size:28px}.candidate-welcome-vue p{color:#b6c8d8;margin:0;font-size:12px}.candidate-welcome-vue>strong{color:#ffffffbf;width:72px;height:72px;font-family:var(--app-title);text-align:center;border:2px solid #ffffff80;place-items:center;font-size:22px;line-height:1.1;display:grid}.candidate-dashboard-grid{grid-template-columns:repeat(2,1fr);gap:15px;margin-top:15px;display:grid}.dashboard-row,.notice-list-vue>button{border:0;border-bottom:1px solid var(--app-line);width:100%;min-height:66px;color:var(--app-ink);text-align:left;cursor:pointer;background:#fff;justify-content:space-between;align-items:center;gap:18px;padding:10px 20px;display:flex}.dashboard-row>span,.notice-list-vue>button>span{flex-direction:column;min-width:0;display:flex}.dashboard-row small,.notice-list-vue small{color:var(--app-muted);font-size:9px}.business-form{border:1px solid var(--app-line);background:#fff;padding:26px}.business-form>h2{margin-top:0}.profile-fields>h2{border-bottom:1px solid var(--app-line);color:var(--app-navy);font-family:var(--app-title);margin:28px 0 15px;padding-bottom:8px;font-size:18px}.profile-fields>h2:first-child{margin-top:0}.form-callout{border-left:3px solid var(--app-blue);background:#eaf1f7;margin:15px 0;padding:15px}.form-callout p{color:var(--app-muted);margin:4px 0 0;font-size:11px}.business-card-list{flex-direction:column;gap:16px;display:flex}.exam-apply-card,.registration-vue-card,.admit-card-vue{border:1px solid var(--app-line);background:#fff;padding:25px}.exam-apply-card>header,.registration-vue-card>header,.admit-card-vue>header{justify-content:space-between;align-items:center;gap:15px;display:flex}.exam-apply-card>header>span,.registration-vue-card header span,.admit-card-vue header span{color:var(--app-blue);font-family:ui-monospace,Consolas,monospace;font-size:10px}.exam-apply-card h2,.registration-vue-card h2,.admit-card-vue h2{color:var(--app-navy);font-family:var(--app-title);margin:18px 0 8px}.exam-apply-card>p,.registration-vue-card>p{color:var(--app-muted);font-size:11px}.exam-apply-card dl,.registration-vue-card dl,.admit-card-vue dl{background:var(--app-line);grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1px;margin:20px 0;display:grid}.exam-apply-card dl div,.registration-vue-card dl div,.admit-card-vue dl div{background:#f8fafb;padding:12px}.exam-apply-card dt,.registration-vue-card dt,.admit-card-vue dt{color:var(--app-muted);font-size:9px}.exam-apply-card dd,.registration-vue-card dd,.admit-card-vue dd{margin:4px 0 0;font-size:11px;font-weight:700}.subject-choice-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;margin:20px 0;display:grid}.subject-choice-grid label{cursor:pointer;margin:0}.subject-choice-grid input{opacity:0;position:absolute}.subject-choice-grid label>span{border:1px solid var(--app-line);flex-direction:column;min-height:75px;padding:13px;display:flex}.subject-choice-grid input:checked+span{border-color:var(--app-blue);box-shadow:inset 3px 0 var(--app-blue);background:#edf5fb}.subject-choice-grid small{color:var(--app-muted);font-size:9px}.subject-choice-grid em{color:var(--app-red);margin-top:auto;font-size:10px;font-style:normal}.exam-apply-card>footer{background:#edf5f0;justify-content:space-between;align-items:center;padding:13px;display:flex}.chip-list{flex-wrap:wrap;gap:7px;display:flex}.chip-list>span{border:1px solid var(--app-line);background:#f8fafb;flex-direction:column;padding:7px 10px;font-size:10px;display:flex}.chip-list small{color:var(--app-muted);font-size:8px}.admit-card-vue>div{background:var(--app-navy);color:#fff;margin:20px 0;padding:20px}.admit-card-vue>div small{color:#a9bfd3;display:block}.admit-card-vue>div strong{font-family:ui-monospace,Consolas,monospace;font-size:25px}.result-group>header{padding:16px 20px}.result-group>header h2{margin:3px 0 0}.result-card-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;padding:16px;display:grid}.result-card-grid article{border:1px solid var(--app-line);flex-direction:column;padding:18px;display:flex}.result-card-grid article>span{color:var(--app-blue);font-size:10px}.result-card-grid article>strong{color:var(--app-navy);font-family:var(--app-title);margin:5px 0;font-size:32px}.result-card-grid article>strong small{color:var(--app-muted);font-family:var(--app-body);font-size:11px}.result-card-grid article>em{color:var(--app-muted);margin-bottom:12px;font-size:9px;font-style:normal}.result-card-grid form{flex-direction:column;gap:7px;margin-top:auto;display:flex}.result-card-grid textarea{border:1px solid var(--app-line);resize:vertical;padding:9px}.result-card-grid form button{background:var(--app-navy);color:#fff;border:0;align-self:flex-end;padding:7px 11px;font-size:9px}.admission-candidate-vue>header{padding:18px 20px}.admission-candidate-vue>.record-metrics,.admission-candidate-vue>.form-callout,.admission-candidate-vue>p{margin:16px}.preference-editor{border-top:1px solid var(--app-line);padding:16px}.preference-row{grid-template-columns:45px 1fr 1fr;gap:10px;margin-bottom:9px;display:grid}.preference-row>b{color:var(--app-navy);background:#e8eef4;place-items:center;font-size:10px;display:grid}.notice-list-vue>button time{color:var(--app-muted);font-size:9px}.notice-list-vue em{color:var(--app-red);font-size:9px;font-style:normal}.security-stack{grid-template-columns:repeat(2,1fr);gap:16px;display:grid}.security-stack>.form-error,.security-stack>.recovery-code-panel{grid-column:1/-1}.security-card>header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:8px;display:flex}.security-card>header h2,.security-card>header p{margin:0}.security-card>span{color:var(--app-muted);margin-bottom:18px;line-height:1.7;display:block}.inline-security-form,.security-protected-actions{gap:12px;display:grid}.security-protected-actions>div{flex-wrap:wrap;gap:8px;display:flex}.app-button--danger{color:#a5222a!important;background:#fff!important;border-color:#b22e35!important}.totp-setup-grid{border:1px solid var(--app-line);background:#f7f9fb;grid-template-columns:220px 1fr;align-items:center;gap:22px;margin:8px 0 20px;padding:18px;display:grid}.totp-setup-grid img{background:#fff;width:100%;height:auto;display:block}.totp-setup-grid>div{flex-direction:column;gap:10px;min-width:0;display:flex}.totp-setup-grid code{overflow-wrap:anywhere;color:var(--app-navy);font-size:14px;font-weight:700;line-height:1.7}.totp-setup-grid small{color:var(--app-muted)}.recovery-code-panel{box-shadow:var(--app-shadow);background:#fff9eb;border-left:5px solid #d28b1d;padding:24px}.recovery-code-panel h2,.recovery-code-panel p{margin:0}.recovery-code-panel span{color:#766540}.recovery-code-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:18px 0;display:grid}.recovery-code-grid code{text-align:center;background:#fff;border:1px dashed #c69b43;padding:10px;font-size:13px;font-weight:800}.admission-command-banner{color:#fff;min-height:190px;box-shadow:var(--app-shadow);background:linear-gradient(112deg,#07233ef7,#0e4468db),repeating-linear-gradient(135deg,#0000 0 18px,#ffffff0a 18px 19px);align-items:flex-end;padding:30px;display:flex}.admission-command-banner span{color:#80b5da;letter-spacing:.17em;font-size:9px}.admission-command-banner h2{font-family:var(--app-title);margin:6px 0;font-size:28px}.admission-command-banner p{color:#c6d5e2;max-width:720px;margin:0}.admission-progress-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px;margin:16px 0;display:grid}.admission-progress-grid article{border:1px solid var(--app-line);background:#fff;padding:18px}.admission-progress-grid header{justify-content:space-between;gap:12px;display:flex}.admission-progress-grid header strong{color:var(--app-red);font-size:18px}.admission-progress-grid article>div{background:#e5ebef;height:5px;margin:12px 0;overflow:hidden}.admission-progress-grid article>div i{background:var(--app-red);height:100%;display:block}.admission-progress-grid p,.admission-progress-grid small{color:var(--app-muted);margin:0}.admission-dashboard-grid{grid-template-columns:1.1fr .9fr;gap:16px;display:grid}.admission-dashboard-grid .dashboard-row>b{width:34px;height:34px;color:var(--app-navy);background:#eaf0f5;place-items:center;display:grid}.admission-plan-form{margin-bottom:16px}.admission-plan-form>header h2,.admission-plan-form>header p{margin:0}.plan-category-list{gap:12px;display:grid}.plan-category-card{border:1px solid var(--app-line);background:#fafbfc}.plan-category-card>header,.plan-category-card>section>header{border-bottom:1px solid var(--app-line);justify-content:space-between;align-items:center;gap:12px;padding:12px 15px;display:flex}.plan-category-card>header button,.plan-category-card>section button,.allocation-row button{color:var(--app-red);background:0 0;border:0}.plan-category-card>.form-grid{padding:14px}.plan-category-card>section{border:1px solid var(--app-line);background:#fff;margin:0 14px 14px}.plan-category-card>section small{color:var(--app-muted);font-weight:400;display:block}.allocation-row{border-top:1px solid #eef1f3;grid-template-columns:1fr 140px auto;gap:8px;padding:9px 12px;display:grid}.table-stack{flex-direction:column;margin-bottom:4px;display:flex}.ledger-panel>header,.admission-plan-history>header{padding:18px 20px}.ledger-toolbar{border-top:1px solid var(--app-line);background:#f6f8fa;grid-template-columns:minmax(240px,1fr) 220px 170px;gap:8px;padding:12px 16px;display:grid}.ledger-toolbar--wide{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));align-items:end}.ledger-toolbar label{color:#526477;flex-direction:column;gap:6px;min-width:0;font-size:12px;font-weight:700;display:flex}.ledger-toolbar input,.ledger-toolbar select{width:100%}.ledger-toolbar>button{align-self:end;min-height:40px}.ledger-bulk{border-top:1px solid var(--app-line);border-bottom:1px solid var(--app-line);background:#fff;flex-wrap:wrap;align-items:center;gap:9px;min-height:54px;padding:9px 16px;display:flex}.ledger-bulk label{color:#334b62;align-items:center;gap:8px;font-size:13px;font-weight:650;display:inline-flex}.ledger-bulk input[type=checkbox],.table-scroll input[type=checkbox]{width:17px;height:17px;accent-color:var(--app-blue)}.ledger-bulk button{min-height:34px;color:var(--app-navy);cursor:pointer;background:#fff;border:1px solid #b9c8d5;border-radius:3px;padding:0 12px;font-size:12px;font-weight:700}.ledger-bulk button:hover:not(:disabled){border-color:var(--app-blue);color:var(--app-blue);background:#edf5fb}.ledger-bulk button:disabled{opacity:.45;cursor:not-allowed}.ledger-bulk>span{color:var(--app-muted);font-size:12px}.ledger-bulk>strong{margin-right:auto}.row-review-form{gap:5px;min-width:190px;display:grid}.row-review-form button{background:var(--app-navy);color:#fff;border:0;padding:7px}.admission-export-bar{box-shadow:var(--app-shadow);background:#fff;align-items:center;gap:16px;margin-bottom:16px;padding:18px 20px;display:flex}.admission-export-bar>div{flex-direction:column;flex:1;display:flex}.admission-export-bar>div>span{color:var(--app-red);font-size:9px}.admission-export-bar small{color:var(--app-muted)}.app-button.disabled{pointer-events:none;opacity:.45}.reporting-workbench{border:1px solid var(--app-line);box-shadow:var(--app-shadow);background:#fff;margin-bottom:18px}.reporting-workbench>header{background:var(--app-navy);color:#fff;justify-content:space-between;gap:18px;padding:22px;display:flex}.reporting-workbench>header h2{margin:4px 0}.reporting-workbench>header p{color:#b9ccdb;margin:0}.reporting-workbench>header>strong{font-family:var(--app-title);text-align:right;font-size:30px}.reporting-workbench>header>strong small{color:#9cb5c9;font-family:var(--app-body);font-size:9px;display:block}.reporting-stat-strip{background:#e9eef3;flex-wrap:wrap;align-items:center;gap:20px;padding:11px 18px;display:flex}.reporting-stat-strip .status-badge{margin-left:auto}.reporting-tools{grid-template-columns:1fr 1fr;gap:12px;padding:16px;display:grid}.reporting-tools>div,.reporting-tools>form{border:1px solid var(--app-line);flex-direction:column;gap:8px;padding:15px;display:flex}.reporting-tools small{color:var(--app-muted)}.reporting-tools>div>span{gap:8px;display:flex}.reporting-workbench form>footer{justify-content:flex-end;gap:8px;padding:14px 16px;display:flex}.scan-preview{background:#f2faf6;border:2px solid #218252;margin:0 16px 16px;padding:16px}.scan-preview>header{justify-content:space-between;display:flex}.scan-preview dl{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.scan-preview dl>div{background:#fff;padding:9px}.scan-preview dt{color:var(--app-muted);font-size:9px}.scan-preview dd{margin:2px 0 0;font-weight:700}.reporting-decision{grid-template-columns:1fr 180px minmax(220px,1fr) auto;align-items:center;gap:10px;padding:18px;display:grid}.reporting-decision p{color:var(--app-muted);margin:3px 0 0}.notice-template-studio{grid-template-columns:minmax(380px,.85fr) minmax(420px,1.15fr);gap:18px;display:grid}.notice-template-preview{background:#dce1e5;padding:14px}.notice-template-preview>div{outline:2px solid var(--template-accent);outline-offset:-22px;color:#24313b;background:#fff;border:12px solid #fff;min-height:700px;padding:64px;position:relative}.notice-template-preview>div:before{content:"";background:var(--template-primary);height:12px;position:absolute;inset:0 0 auto}.notice-template-preview h2{color:var(--template-primary);font-family:var(--app-title);letter-spacing:.3em;text-align:center;margin:30px 0 8px;font-size:32px}.notice-template-preview h3{text-align:center}.notice-template-preview em{color:#6f7780;margin:36px 0;font-size:9px;font-style:normal;display:block}.notice-template-preview>div>p{min-height:180px;line-height:2}.notice-template-preview footer{flex-direction:column;align-items:flex-end;margin-top:35px;display:flex}.notice-template-preview>div>i{color:#7b858c;border:1px dashed #9da7ae;place-items:center;width:72px;height:72px;font-size:8px;font-style:normal;display:grid;position:absolute;bottom:38px;right:42px}.notice-template-preview>p{color:#596672;font-size:9px}.admin-core-workspace{gap:16px;display:grid}.admin-core-workspace>.form-error{margin:0}.issued-credential{box-shadow:var(--app-shadow);background:#fff8e8;border-left:5px solid #d28b1d;grid-template-columns:1fr auto auto;align-items:center;gap:24px;padding:22px;display:grid}.issued-credential h2,.issued-credential p{margin:0}.issued-credential>div>span{color:#a06b13;letter-spacing:.16em;font-size:9px}.issued-credential dl{gap:24px;margin:0;display:flex}.issued-credential dt{color:var(--app-muted);font-size:9px}.issued-credential dd{margin:3px 0 0;font-family:ui-monospace,Consolas,monospace;font-size:16px;font-weight:800}.scope-banner-vue{color:#fff;background:var(--app-navy);align-items:center;gap:15px;padding:18px 22px;display:flex}.scope-banner-vue>span{background:var(--app-red);text-transform:uppercase;padding:7px 9px;font-size:9px}.scope-banner-vue>div{flex-direction:column;display:flex}.scope-banner-vue small{color:#aabfd0}.audit-ledger>header{padding:16px 20px}.admin-create-strip>header{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.admin-create-strip>header h2,.admin-create-strip>header p{margin:0}.check-row{flex-wrap:wrap;gap:18px;display:flex}.check-row label{flex-direction:row!important}.excel-action-bar{border:1px solid var(--app-line);background:#edf2f5;flex-wrap:wrap;align-items:center;gap:8px;padding:11px 14px;display:flex}.excel-action-bar a,.excel-action-bar label{cursor:pointer;color:var(--app-navy);background:#fff;border:1px solid #aebdca;padding:7px 11px;font-size:9px;text-decoration:none}.organization-card-grid{grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:14px;display:grid}.org-card>header{padding:16px}.org-card>strong{color:var(--app-navy);padding:12px 16px;font-size:20px;display:block}.org-card>footer{border-top:1px solid var(--app-line);padding:12px 16px}.table-action{color:var(--app-navy);background:#fff;border:1px solid #b8c4cd;margin:2px;padding:6px 8px;font-size:9px}.table-action:disabled{opacity:.4}.quota-grid-vue{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:9px;display:grid}.quota-grid-vue label{border:1px solid var(--app-line);background:#f8fafb;grid-template-columns:1fr 80px;align-items:center;padding:12px;display:grid!important}.quota-grid-vue label>span{flex-direction:column;display:flex}.batch-ledger-vue{gap:12px;display:grid}.batch-card-vue>header{padding:16px 20px}.batch-card-vue>.chip-list,.batch-card-vue>.row-decision,.batch-card-vue>.app-button{margin:14px 18px}.row-decision{flex-wrap:wrap;align-items:center;gap:5px;min-width:230px;display:flex}.row-decision input{flex:1;min-width:150px}.row-decision button{background:var(--app-navy);color:#fff;border:0;padding:6px 8px;font-size:9px}.archive-console-vue{background:#fff8e8;border-left:5px solid #d28b1d;grid-template-columns:1fr 120px 220px 120px auto;align-items:end;gap:10px;padding:19px;display:grid}.archive-console-vue h2,.archive-console-vue p{margin:0}.archive-console-vue span{color:var(--app-muted)}.admin-exam-workspace{gap:16px;display:grid}.exam-builder-vue>header h2,.exam-builder-vue>header p{margin:0}.exam-subject-builder{border:1px solid var(--app-line);background:#f7f9fa}.exam-subject-builder>header{border-bottom:1px solid var(--app-line);justify-content:space-between;padding:12px 15px;display:flex}.exam-subject-builder>header button,.exam-subject-builder article>button{color:var(--app-red);background:0 0;border:0}.exam-subject-builder article{border:1px solid var(--app-line);background:#fff;margin:12px;padding:12px}.admin-exam-grid-vue{grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:14px;display:grid}.admin-exam-grid-vue .exam-apply-card>footer{justify-content:space-between;align-items:center;display:flex}.arrangement-console-vue pre{color:#d6e5ef;white-space:pre-wrap;background:#102941;max-height:360px;padding:15px;font-size:10px;overflow:auto}.result-exam-picker{gap:8px;padding-bottom:5px;display:flex;overflow:auto}.result-exam-picker button{border:1px solid var(--app-line);text-align:left;background:#fff;flex-direction:column;min-width:210px;padding:14px 16px;display:flex}.result-exam-picker button.active{border-color:var(--app-red);box-shadow:inset 0 -3px var(--app-red)}.result-exam-picker span{color:var(--app-blue);font-size:9px}.result-exam-picker small{color:var(--app-muted)}.result-entry-vue>header{justify-content:space-between;align-items:center;gap:16px;padding:16px 20px;display:flex}.result-entry-vue>footer{justify-content:flex-end;gap:8px;padding:13px 16px;display:flex}.admin-admission-workspace,.admin-system-workspace{gap:16px;display:grid}.admission-admin-setting>footer{border-top:1px solid var(--app-line);flex-wrap:wrap;gap:8px;padding-top:14px;display:flex}.plan-admin-row{grid-template-columns:1fr 120px 1fr 1fr auto;gap:7px;display:grid}.plan-admin-row>button{color:var(--app-red);background:0 0;border:0}.notice-editor-vue>header,.workflow-design-grid-vue form>header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.notice-editor-vue>header h2,.notice-editor-vue>header p{margin:0}.notice-editor-studio{border-top:4px solid var(--app-red);padding:0;overflow:hidden}.notice-editor-studio__header{border-bottom:1px solid var(--app-line);background:linear-gradient(135deg,#f8fafc 0%,#eef3f7 100%);padding:22px 26px;align-items:center!important}.notice-editor-studio__header>div:first-child{min-width:0}.notice-editor-studio__header p{color:var(--app-blue);letter-spacing:.18em;font-size:10px;font-weight:800}.notice-editor-studio__header h2{color:var(--app-navy);font-family:var(--app-title);font-size:24px;margin-top:4px!important}.notice-editor-studio__header span{color:var(--app-muted);margin-top:5px;font-size:12px;display:block}.notice-editor-studio__identity{border-left:3px solid var(--app-blue);background:#fff;min-width:215px;padding:12px 15px}.notice-editor-studio__identity small,.notice-editor-studio__identity strong{display:block}.notice-editor-studio__identity small{color:var(--app-muted);font-size:10px}.notice-editor-studio__identity strong{color:var(--app-navy);text-overflow:ellipsis;white-space:nowrap;margin-top:3px;font-family:ui-monospace,Consolas,monospace;font-size:12px;overflow:hidden}.notice-editor-studio__body{grid-template-columns:minmax(0,1fr) 270px;display:grid}.notice-editor-studio__manuscript{min-width:0;padding:25px 26px 28px}.notice-editor-studio__manuscript>label{margin-bottom:17px}.notice-title-field input{font-family:var(--app-title);font-weight:700;color:#17314f!important;min-height:54px!important;font-size:19px!important}.notice-editor-label{margin-bottom:7px!important}.notice-editor-studio__settings{border-left:1px solid var(--app-line);background:#f5f7f9;flex-direction:column;gap:17px;padding:25px 22px;display:flex}.notice-editor-studio__settings>div:first-child{border-bottom:1px solid #d8e0e7;padding-bottom:14px}.notice-editor-studio__settings>div:first-child small{color:var(--app-red);letter-spacing:.14em;font-size:10px;font-weight:800}.notice-editor-studio__settings h3{color:var(--app-navy);font-family:var(--app-title);margin:5px 0 7px;font-size:18px}.notice-editor-studio__settings p{color:var(--app-muted);margin:0;font-size:11px;line-height:1.7}.notice-editor-studio__settings label{margin:0}.notice-pin-control{cursor:pointer;background:#fff;border:1px solid #d3dde5;align-items:center;padding:12px;flex-direction:row!important;gap:10px!important}.notice-pin-control>span{flex-direction:column;gap:2px;display:flex}.notice-pin-control strong{color:var(--app-navy);font-size:12px}.notice-pin-control small{color:var(--app-muted);font-size:10px;font-weight:400}.notice-release-state{background:#fff;border:1px solid #d8e0e7;align-items:center;gap:10px;margin-top:auto;padding:13px;display:flex}.notice-release-state>i{background:#9aa7b4;border-radius:50%;flex:0 0 9px;width:9px;height:9px;box-shadow:0 0 0 4px #eef1f3}.notice-release-state.is-published>i{background:#238054;box-shadow:0 0 0 4px #e4f2eb}.notice-release-state>span{flex-direction:column;gap:2px;display:flex}.notice-release-state strong{color:var(--app-navy);font-size:12px}.notice-release-state small{color:var(--app-muted);font-size:10px}.notice-editor-studio__actions{border-top:1px solid var(--app-line);background:#f8fafb;justify-content:flex-end;gap:8px;padding:15px 26px;display:flex}.notice-rich-editor{--ck-color-base-border:#c7d3de;--ck-color-toolbar-background:#edf3f7;--ck-color-focus-border:var(--app-blue);--ck-color-button-on-background:#dceaf5;--ck-color-button-on-color:var(--app-navy)}.notice-rich-editor .ck.ck-editor{border-radius:3px}.notice-rich-editor .ck.ck-toolbar{border-radius:3px 3px 0 0}.notice-rich-editor .ck.ck-editor__main>.ck-editor__editable{color:#26384b;min-height:360px;font-family:var(--app-body);border-radius:0 0 3px 3px;padding:24px 30px;font-size:14px;line-height:1.9}.notice-rich-editor .ck-content h2,.notice-rich-editor .ck-content h3,.notice-rich-editor .ck-content h4{color:var(--app-navy);font-family:var(--app-title)}.notice-rich-editor .ck-content blockquote{border-left-color:var(--app-red);background:#f8f4f2}.notice-rich-editor>footer{color:var(--app-muted);background:#f8fafb;border:1px solid #c7d3de;border-top:0;justify-content:space-between;gap:18px;padding:8px 11px;font-size:10px;display:flex}.notice-rich-editor>footer strong{color:var(--app-navy);white-space:nowrap}.notice-ledger-panel .ledger-empty{height:110px;color:var(--app-muted);text-align:center}.notice-ledger-panel .table-action{align-items:center;text-decoration:none;display:inline-flex}.check-inline{align-items:center;flex-direction:row!important}.room-editor-list{border:1px solid var(--app-line);background:#f7f9fa}.room-editor-list>header{justify-content:space-between;padding:12px 15px;display:flex}.room-editor-list>header button,.room-editor-list article>button{color:var(--app-red);background:0 0;border:0}.room-editor-list article{border:1px solid var(--app-line);background:#fff;margin:0 12px 12px;padding:12px}.workflow-grid-vue,.workflow-design-grid-vue{grid-template-columns:repeat(auto-fit,minmax(390px,1fr));gap:14px;display:grid}.flow-card-vue>header{padding:16px 18px}.workflow-track-vue{gap:4px;padding:16px;display:flex;overflow:auto}.workflow-track-vue>span{min-width:115px;color:var(--app-muted);background:#edf1f4;grid-template-rows:auto auto;grid-template-columns:26px 1fr;padding:9px;display:grid}.workflow-track-vue i{background:#ccd5dd;border-radius:50%;grid-row:1/3;place-items:center;width:22px;height:22px;font-style:normal;display:grid}.workflow-track-vue span.done,.workflow-track-vue span.current{color:var(--app-navy);background:#e5f3ed}.workflow-track-vue span.done i,.workflow-track-vue span.current i{color:#fff;background:#24845a}.workflow-track-vue small{font-size:8px}.flow-card-vue>footer{border-top:1px solid var(--app-line);align-items:center;gap:5px;padding:12px 16px;display:flex}.flow-card-vue>footer>div{flex-direction:column;flex:1;display:flex}.workflow-step-row-vue{grid-template-columns:32px 1fr 150px 30px;align-items:center;gap:7px;display:grid}.workflow-step-row-vue>b{background:#e8eef3;place-items:center;height:30px;display:grid}.workflow-step-row-vue>button{color:var(--app-red);background:0 0;border:0}.account-number-principle-vue{color:#fff;background:var(--app-navy);padding:26px}.account-number-principle-vue span{color:#7eb0d4;font-size:9px}.account-number-principle-vue h2{margin:5px 0}.account-number-principle-vue p{color:#bed0dd;margin:0}.number-rule-layout-vue{grid-template-columns:1fr 330px;gap:16px;display:grid}.number-rule-layout-vue>aside{background:#f0e8d8;flex-direction:column;justify-content:center;padding:28px;display:flex}.number-rule-layout-vue>aside>strong{color:var(--app-red);overflow-wrap:anywhere;margin:12px 0;font-family:ui-monospace,Consolas,monospace;font-size:24px}.rule-segment-grid{gap:8px;display:grid}.rule-segment-grid label{border:1px solid var(--app-line);grid-template-columns:auto 1fr 100px;align-items:center;padding:10px;display:grid!important}.candidate-onboarding{grid-template-columns:360px 1fr;min-height:100vh;display:grid}.candidate-onboarding>aside{background:var(--app-navy);color:#fff;flex-direction:column;padding:45px;display:flex}.candidate-onboarding>aside>p{color:#85b2d7;margin-top:90px;font-size:10px}.candidate-onboarding>aside>strong{font-family:ui-monospace,Consolas,monospace;font-size:22px}.candidate-onboarding>aside>span{color:#b5c7d8;margin-top:15px;font-size:11px;line-height:1.8}.candidate-onboarding>section{justify-content:center;align-items:center;padding:45px;display:flex}.candidate-onboarding .business-form{width:min(760px,100%)}.onboarding-form{max-width:520px}.app-toast{z-index:100;background:#fff;border-left:4px solid #218252;flex-direction:column;min-width:270px;padding:15px 18px;display:flex;position:fixed;bottom:22px;right:22px;box-shadow:0 18px 45px #08203a33}.app-toast.is-warning{border-color:#d28b1d}.app-toast.is-error{border-color:var(--app-red)}.app-toast span{color:var(--app-muted);margin-top:3px;font-size:10px}.toast-enter-active,.toast-leave-active{transition:opacity .18s,transform .18s}.toast-enter-from,.toast-leave-to{opacity:0;transform:translateY(10px)}.app-modal-backdrop{z-index:90;background:#041427a8;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.route-message{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;padding:30px;display:flex}.route-message>span{color:var(--app-red);font-size:12px;font-weight:800}.route-message h1{font-family:var(--app-title)}.route-message p{color:var(--app-muted)}.route-message button{background:var(--app-navy);color:#fff;border:0;padding:10px 18px}.portal-shell{width:100%;overflow-x:clip}.portal-shell__main,.portal-shell__content,.admin-core-workspace,.record-panel,.portal-shell__topbar{min-width:0}.portal-shell__topbar>div:first-of-type{font-size:13px}.portal-shell__user small{font-size:12px}.portal-shell__user>button{min-height:36px;padding:0 8px;font-size:13px}.portal-shell__brand strong{font-size:17px}.portal-shell__brand small{font-size:9px}.portal-shell__role{font-size:13px}.portal-shell__sidebar nav section>strong{padding-top:18px;font-size:11px}.portal-shell__sidebar nav a{min-height:43px;font-size:14px}.portal-shell__sidebar nav a>span{font-size:12px}.portal-shell__scope span,.portal-shell__scope small{font-size:11px}.portal-shell__scope strong{font-size:13px}.portal-page-heading{border-left:4px solid var(--app-red);align-items:center;margin-bottom:24px;padding-left:17px}.portal-page-heading p{margin-bottom:5px;font-size:11px}.portal-page-heading h1{font-size:clamp(28px,2.3vw,34px);line-height:1.25}.portal-page-heading span{margin-top:7px;font-size:13px}.portal-shell__content .record-metrics article span,.portal-shell__content .dashboard-row small,.portal-shell__content .notice-list-vue small,.portal-shell__content .page-state p,.portal-shell__content .form-callout p,.portal-shell__content .exam-apply-card>p,.portal-shell__content .registration-vue-card>p,.portal-shell__content .reporting-workbench small,.portal-shell__content .scan-preview dt,.portal-shell__content .issued-credential dt,.portal-shell__content .workflow-track-vue small{font-size:12px;line-height:1.5}.portal-shell__content .exam-apply-card>header>span,.portal-shell__content .registration-vue-card header span,.portal-shell__content .admit-card-vue header span,.portal-shell__content .result-card-grid article>span,.portal-shell__content .result-exam-picker span,.portal-shell__content .admission-export-bar>div>span,.portal-shell__content .issued-credential>div>span,.portal-shell__content .scope-banner-vue>span{font-size:11px}.portal-shell__content .exam-apply-card dt,.portal-shell__content .registration-vue-card dt,.portal-shell__content .admit-card-vue dt{font-size:12px}.portal-shell__content .exam-apply-card dd,.portal-shell__content .registration-vue-card dd,.portal-shell__content .admit-card-vue dd{font-size:14px}.portal-shell__content .chip-list>span{font-size:12px}.portal-shell__content .chip-list small{font-size:11px}.portal-shell__content .result-card-grid form button{font-size:12px}.app-button{border-radius:4px;font-size:13px}.business-form,.record-panel{border-color:#d4dee7;border-radius:4px;box-shadow:0 5px 18px #0d2d540b}.business-form{padding:24px}.auth-card h2,.business-form h2{font-size:28px;line-height:1.35}.auth-card>span,.business-form>span{font-size:13px}.auth-card label,.business-form label{color:#425469;font-size:13px;font-weight:650}.auth-card input,.auth-card select,.business-form input:not([type=checkbox]):not([type=radio]),.business-form select,.business-form textarea,.preference-row select{border-radius:3px;font-size:14px;transition:border-color .16s,box-shadow .16s}.auth-card input:focus,.auth-card select:focus,.business-form input:focus,.business-form select:focus,.business-form textarea:focus{border-color:#4b7da7;box-shadow:0 0 0 3px #17558f1a}.admin-create-strip{padding:24px 26px}.admin-create-strip>header{margin-bottom:18px}.admin-create-strip>header p{color:var(--app-blue);letter-spacing:.16em;font-size:11px;font-weight:800}.admin-create-strip .form-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:15px 18px}.admin-create-strip .form-grid label{margin:0}.admin-create-strip>.app-button{margin-top:18px}.check-row{align-items:center;gap:12px 24px;margin-top:18px}.check-row label{cursor:pointer;align-items:center;gap:9px;margin:0;font-size:13px}.business-form input[type=checkbox],.business-form input[type=radio]{width:18px;height:18px;min-height:18px;accent-color:var(--app-blue);flex:0 0 18px;margin:0;padding:0}.record-panel>header{min-height:70px;padding:14px 20px}.record-panel>header h2{font-size:19px;line-height:1.4}.record-panel>header p{font-size:12px;line-height:1.5}.record-panel>header input,.record-panel>header select,.ledger-toolbar input,.ledger-toolbar select,.archive-console-vue select,.row-decision input{min-height:40px;color:var(--app-ink);background:#fff;border:1px solid #c7d3de;border-radius:3px;padding:8px 11px;font-size:13px}.record-panel>header input{width:min(330px,42vw)}.record-panel>header input::placeholder,.row-decision input::placeholder{color:#8795a4}.status-badge{padding:4px 9px;font-size:12px;font-weight:700}.table-scroll{overscroll-behavior-inline:contain;scrollbar-color:#aebdca #eef2f5;width:100%;min-width:0;overflow-x:auto}.table-scroll table{border-spacing:0;border-collapse:separate;color:#26384b;width:100%;min-width:760px;font-size:14px}.table-scroll th,.table-scroll td{text-align:left;vertical-align:middle;border-bottom:1px solid #e1e7ed;padding:12px 14px}.table-scroll th{color:#324a61;white-space:nowrap;background:#edf3f7;font-size:13px;font-weight:750;position:relative}.table-scroll tbody tr:nth-child(2n) td{background:#fbfcfd}.table-scroll tbody tr:hover td{background:#f2f7fb}.table-scroll tbody tr:last-child td{border-bottom:0}.table-scroll td>strong{color:#152f4d;font-weight:750;display:block}.table-scroll td>small{color:#66778a;margin-top:3px;font-size:12px;line-height:1.45;display:block}.table-scroll td:last-child{white-space:nowrap}.table-empty{height:120px;color:var(--app-muted);text-align:center!important}.table-action{cursor:pointer;border-radius:3px;min-height:32px;margin:2px;padding:0 10px;font-size:12px;font-weight:650}.table-action:hover:not(:disabled){border-color:var(--app-blue);color:var(--app-blue);background:#eef5fb}.row-decision{flex-wrap:nowrap;gap:6px;min-width:370px}.row-decision input{min-width:145px}.row-decision button{cursor:pointer;white-space:nowrap;border-radius:3px;min-height:34px;padding:0 10px;font-size:12px;font-weight:700}.row-decision button:first-of-type{color:var(--app-red);background:#fff;box-shadow:inset 0 0 0 1px #d5a6aa}.excel-action-bar{border-radius:4px;gap:9px;padding:12px 14px}.excel-action-bar--descriptive{border-left:4px solid var(--app-blue);background:#fff;justify-content:space-between;align-items:center;gap:18px;padding:14px 18px;display:flex}.excel-action-bar--descriptive>span{flex-direction:column;gap:2px;min-width:180px;display:flex}.excel-action-bar--descriptive>span strong{color:var(--app-navy);font-size:14px}.excel-action-bar--descriptive>span small{color:var(--app-muted);font-size:11px}.excel-action-bar--descriptive>div{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.excel-action-bar a,.excel-action-bar label{border-radius:3px;align-items:center;min-height:36px;padding:0 13px;font-size:12px;font-weight:650;display:inline-flex}.candidate-ledger__toolbar{grid-template-columns:minmax(230px,1.3fr) minmax(180px,.9fr) minmax(150px,.7fr) 120px;gap:12px;padding:14px 20px}.candidate-ledger__toolbar label{color:#526477;flex-direction:column;gap:6px;min-width:0;font-size:12px;font-weight:650;display:flex}.candidate-ledger__toolbar input,.candidate-ledger__toolbar select{width:100%}.candidate-ledger table{min-width:1040px}.candidate-ledger th:last-child{min-width:390px}.ledger-pagination{border-top:1px solid var(--app-line);min-height:58px;color:var(--app-muted);background:#f8fafc;justify-content:space-between;align-items:center;gap:18px;padding:10px 20px;font-size:13px;display:flex}.ledger-pagination>div{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.ledger-pagination button{min-height:34px;color:var(--app-navy);cursor:pointer;background:#fff;border:1px solid #b9c8d5;border-radius:3px;padding:0 13px;font-size:12px;font-weight:650}.ledger-pagination button.active{border-color:var(--app-blue);background:var(--app-blue);color:#fff}.ledger-pagination button:disabled{opacity:.45;cursor:not-allowed}.ledger-pagination label{align-items:center;gap:6px;margin-left:4px;display:inline-flex}.ledger-pagination select{min-height:34px;color:var(--app-navy);background:#fff;border:1px solid #b9c8d5;border-radius:3px}.auth-view{overflow:hidden}.auth-view__identity{isolation:isolate;position:relative}.auth-view__identity:after{content:"";z-index:-1;border:1px solid #ffffff17;border-radius:50%;width:360px;height:360px;position:absolute;bottom:-150px;right:-110px;box-shadow:0 0 0 48px #ffffff06,0 0 0 96px #ffffff05}.auth-view__identity>div p{font-size:11px}.auth-view__identity h1{max-width:500px;font-size:clamp(36px,3vw,44px)}.auth-view__identity h1>span{white-space:nowrap;display:block}.auth-view__identity>div>span,.auth-view__identity>small{font-size:13px}.auth-view__panel{background:linear-gradient(135deg,#fff 0%,#f9fbfd 100%);position:relative}.auth-view__back{font-size:13px;position:absolute;top:34px;left:6vw}.auth-card{border-top:4px solid var(--app-navy);background:#fff;padding:30px 32px 32px;box-shadow:0 18px 55px #0d2d541f}.auth-card>p{font-size:11px}.auth-card__switch{font-size:13px;margin:18px 0 0!important}@media (width>=761px){html.auth-login-active,html.auth-login-active body,html.auth-login-active #app{height:100%;overflow:hidden}.auth-view--login{height:100dvh;min-height:0}.auth-view--login .auth-view__identity,.auth-view--login .auth-view__panel{height:100%;min-height:0}.auth-view--login .auth-view__panel{padding-block:32px}}@media (width<=960px){.public-frame__header>.app-container{grid-template-columns:1fr auto}.public-frame__menu{display:block}.public-frame__header nav{border-bottom:1px solid var(--app-line);background:#fff;flex-direction:column;align-items:stretch;padding:12px 20px;display:none;position:absolute;top:76px;left:0;right:0}.public-frame__header nav.is-open{display:flex}.public-directory{grid-template-columns:190px 1fr;gap:25px}.auth-view{grid-template-columns:330px 1fr}.auth-view__identity{padding-inline:36px}.portal-shell__sidebar{width:220px}.portal-shell__main{margin-left:220px}.candidate-dashboard-grid,.security-stack,.admission-dashboard-grid,.notice-template-studio,.ledger-toolbar{grid-template-columns:1fr}.candidate-ledger__toolbar{grid-template-columns:1fr 1fr}.notice-editor-studio__body{grid-template-columns:1fr}.notice-editor-studio__settings{border-top:1px solid var(--app-line);border-left:0}}@media (width<=760px){.app-container{width:calc(100% - 28px)}.app-brand small,.public-frame__utility .app-container span:last-child{display:none}.public-frame__footer .app-container{flex-direction:column;justify-content:center;align-items:flex-start}.public-directory{display:block}.public-directory__filters{margin-bottom:24px}.directory-list>button{grid-template-columns:54px 1fr auto;gap:12px}.public-document>header{padding-inline:22px}.public-document>header h1{font-size:25px}.public-document>section{padding-inline:18px}.verification-form,.auth-view{grid-template-columns:1fr}.auth-view__identity{min-height:auto;padding:28px}.auth-view__identity>div{margin:65px 0}.auth-view__identity h1{font-size:38px}.auth-view__panel{min-height:650px;padding:30px 22px}.portal-shell__sidebar{width:min(285px,86vw);transition:transform .18s;transform:translate(-105%)}.portal-shell__sidebar.is-open{transform:translate(0)}.portal-shell__close{color:#fff;background:0 0;border:0;font-size:23px;display:block;position:absolute;top:18px;right:14px}.portal-shell__scrim{z-index:45;background:#04142773;position:fixed;inset:0}.portal-shell__main{margin-left:0}.portal-shell__topbar{grid-template-columns:auto 1fr auto;gap:12px;padding:0 14px}.portal-shell__topbar>button{color:var(--app-navy);background:0 0;border:0;font-size:19px;display:block}.portal-shell__topbar>div:first-of-type span,.portal-shell__topbar>div:first-of-type b,.portal-shell__user>span{display:none}.portal-shell__content{padding:20px 14px}.portal-page-heading{padding-left:13px}.record-panel>header{flex-direction:column;align-items:flex-start}.record-panel>header input{width:100%}.candidate-ledger__toolbar{grid-template-columns:1fr}.ledger-pagination{flex-direction:column;align-items:stretch}.ledger-pagination>div,.ledger-pagination button{flex:1}.form-grid,.preference-row,.totp-setup-grid{grid-template-columns:1fr}.totp-setup-grid img{max-width:220px}.preference-row>b{min-height:30px}.candidate-onboarding{grid-template-columns:1fr}.candidate-onboarding>aside{padding:26px}.candidate-onboarding>aside>p{margin-top:55px}.candidate-onboarding>section{padding:24px 14px}.allocation-row,.reporting-tools,.reporting-decision{grid-template-columns:1fr}.admission-export-bar{flex-direction:column;align-items:stretch}.scan-preview dl{grid-template-columns:1fr 1fr}.notice-template-preview>div{min-height:600px;padding:42px 30px}.issued-credential,.archive-console-vue{grid-template-columns:1fr;align-items:stretch}.issued-credential dl{flex-direction:column;gap:8px}.plan-admin-row,.number-rule-layout-vue,.workflow-grid-vue,.workflow-design-grid-vue{grid-template-columns:1fr}.workflow-step-row-vue{grid-template-columns:30px 1fr}.notice-editor-studio__header{flex-direction:column;align-items:stretch!important}.notice-editor-studio__identity{min-width:0}.notice-editor-studio__manuscript,.notice-editor-studio__settings{padding:20px 16px}.notice-editor-studio__actions{flex-direction:column;align-items:stretch;padding:14px 16px}.notice-rich-editor .ck.ck-editor__main>.ck-editor__editable{min-height:300px;padding:18px}}.center-edit-picker .chip-list button{border:1px solid var(--app-line);color:var(--app-navy);cursor:pointer;background:#fff;border-radius:999px;padding:8px 13px}.center-edit-picker .chip-list button.active{border-color:var(--app-blue);color:var(--app-blue);background:#e9f2fb}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}} /*$vite$:1*/ \ No newline at end of file diff --git a/src/Eis.Web/wwwroot/vue-app/app.js b/src/Eis.Web/wwwroot/vue-app/app.js index bf02c31..b6d4828 100644 --- a/src/Eis.Web/wwwroot/vue-app/app.js +++ b/src/Eis.Web/wwwroot/vue-app/app.js @@ -1,3 +1,14 @@ -function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>x(e)===`[object Map]`,p=e=>x(e)===`[object Set]`,m=e=>x(e)===`[object Date]`,h=e=>typeof e==`function`,g=e=>typeof e==`string`,_=e=>typeof e==`symbol`,v=e=>typeof e==`object`&&!!e,y=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),b=Object.prototype.toString,x=e=>b.call(e),S=e=>x(e).slice(8,-1),C=e=>x(e)===`[object Object]`,w=e=>g(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,T=e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ee=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},te=/-\w/g,E=ee(e=>e.replace(te,e=>e.slice(1).toUpperCase())),ne=/\B([A-Z])/g,re=ee(e=>e.replace(ne,`-$1`).toLowerCase()),ie=ee(e=>e.charAt(0).toUpperCase()+e.slice(1)),ae=ee(e=>e?`on${ie(e)}`:``),oe=(e,t)=>!Object.is(e,t),se=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ce=e=>{let t=parseFloat(e);return isNaN(t)?e:t},le=e=>{let t=g(e)?Number(e):NaN;return isNaN(t)?e:t},ue,de=()=>ue||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function fe(e){if(d(e)){let t={};for(let n=0;n{if(e){let n=e.split(me);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function _e(e){let t=``;if(g(e))t=e;else if(d(e))for(let n=0;nSe(e,t))}var we=e=>!!(e&&e.__v_isRef===!0),O=e=>g(e)?e:e==null?``:d(e)||v(e)&&(e.toString===b||!h(e.toString))?we(e)?O(e.value):JSON.stringify(e,Te,2):String(e),Te=(e,t)=>we(t)?Te(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ee(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ee(e))}:_(t)?Ee(t):v(t)&&!d(t)&&!C(t)?String(t):t,Ee=(e,t=``)=>_(e)?`Symbol(${e.description??t})`:e,De,Oe=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&De&&(De.active?(this.parent=De,this.index=(De.scopes||=[]).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e0&&--this._on===0){if(De===this)De=this.prevScope;else{let e=De;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t0)return;if(Pe){let e=Pe;for(Pe=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ne;){let t=Ne;for(Ne=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Re(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ze(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),He(r),Ue(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Be(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ve(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ve(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ye)||(e.globalVersion=Ye,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Be(e))))return;e.flags|=2;let t=e.dep,n=k,r=We;k=e,We=!0;try{Re(e);let n=e.fn(e._value);(t.version===0||oe(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{k=n,We=r,ze(e),e.flags&=-3}}function He(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)He(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ue(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var We=!0,Ge=[];function Ke(){Ge.push(We),We=!1}function qe(){let e=Ge.pop();We=e===void 0||e}function Je(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=k;k=void 0;try{t()}finally{k=e}}}var Ye=0,Xe=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Ze=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!k||!We||k===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==k)t=this.activeLink=new Xe(k,this),k.deps?(t.prevDep=k.depsTail,k.depsTail.nextDep=t,k.depsTail=t):k.deps=k.depsTail=t,Qe(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=k.depsTail,t.nextDep=void 0,k.depsTail.nextDep=t,k.depsTail=t,k.deps===t&&(k.deps=e)}return t}trigger(e){this.version++,Ye++,this.notify(e)}notify(e){Ie();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Le()}}};function Qe(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Qe(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var $e=new WeakMap,et=Symbol(``),tt=Symbol(``),nt=Symbol(``);function rt(e,t,n){if(We&&k){let t=$e.get(e);t||$e.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Ze),r.map=t,r.key=n),r.track()}}function it(e,t,n,r,i,a){let o=$e.get(e);if(!o){Ye++;return}let s=e=>{e&&e.trigger()};if(Ie(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&w(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===nt||!_(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(nt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(et)),f(e)&&s(o.get(tt)));break;case`delete`:i||(s(o.get(et)),f(e)&&s(o.get(tt)));break;case`set`:f(e)&&s(o.get(et));break}}Le()}function at(e){let t=j(e);return t===e?t:(rt(t,`iterate`,nt),Ut(e)?t:t.map(Kt))}function ot(e){return rt(e=j(e),`iterate`,nt),e}function st(e,t){return Ht(e)?qt(Vt(e)?Kt(t):t):Kt(t)}var ct={__proto__:null,[Symbol.iterator](){return lt(this,Symbol.iterator,e=>st(this,e))},concat(...e){return at(this).concat(...e.map(e=>d(e)?at(e):e))},entries(){return lt(this,`entries`,e=>(e[1]=st(this,e[1]),e))},every(e,t){return dt(this,`every`,e,t,void 0,arguments)},filter(e,t){return dt(this,`filter`,e,t,e=>e.map(e=>st(this,e)),arguments)},find(e,t){return dt(this,`find`,e,t,e=>st(this,e),arguments)},findIndex(e,t){return dt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return dt(this,`findLast`,e,t,e=>st(this,e),arguments)},findLastIndex(e,t){return dt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return dt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return pt(this,`includes`,e)},indexOf(...e){return pt(this,`indexOf`,e)},join(e){return at(this).join(e)},lastIndexOf(...e){return pt(this,`lastIndexOf`,e)},map(e,t){return dt(this,`map`,e,t,void 0,arguments)},pop(){return mt(this,`pop`)},push(...e){return mt(this,`push`,e)},reduce(e,...t){return ft(this,`reduce`,e,t)},reduceRight(e,...t){return ft(this,`reduceRight`,e,t)},shift(){return mt(this,`shift`)},some(e,t){return dt(this,`some`,e,t,void 0,arguments)},splice(...e){return mt(this,`splice`,e)},toReversed(){return at(this).toReversed()},toSorted(e){return at(this).toSorted(e)},toSpliced(...e){return at(this).toSpliced(...e)},unshift(...e){return mt(this,`unshift`,e)},values(){return lt(this,`values`,e=>st(this,e))}};function lt(e,t,n){let r=ot(e),i=r[t]();return r!==e&&!Ut(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var ut=Array.prototype;function dt(e,t,n,r,i,a){let o=ot(e),s=o!==e&&!Ut(e),c=o[t];if(c!==ut[t]){let t=c.apply(e,a);return s?Kt(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,st(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function ft(e,t,n,r){let i=ot(e),a=i!==e&&!Ut(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=st(e,t)),n.call(this,t,st(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?st(e,c):c}function pt(e,t,n){let r=j(e);rt(r,`iterate`,nt);let i=r[t](...n);return(i===-1||i===!1)&&Wt(n[0])?(n[0]=j(n[0]),r[t](...n)):i}function mt(e,t,n=[]){Ke(),Ie();let r=j(e)[t].apply(e,n);return Le(),qe(),r}var ht=e(`__proto__,__v_isRef,__isVue`),gt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(_));function _t(e){_(e)||(e=String(e));let t=j(this);return rt(t,`has`,e),t.hasOwnProperty(e)}var vt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?It:Ft:i?Pt:Nt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=ct[t]))return e;if(t===`hasOwnProperty`)return _t}let o=Reflect.get(e,t,Jt(e)?e:n);if((_(t)?gt.has(t):ht(t))||(r||rt(e,`get`,t),i))return o;if(Jt(o)){let e=a&&w(t)?o:o.value;return r&&v(e)?zt(e):e}return v(o)?r?zt(o):A(o):o}},yt=class extends vt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&w(t);if(!this._isShallow){let e=Ht(i);if(!Ut(n)&&!Ht(n)&&(i=j(i),n=j(n)),!a&&Jt(i)&&!Jt(n))return e||(i.value=n),!0}let o=a?Number(t)e,Tt=e=>Reflect.getPrototypeOf(e);function Et(e,t,n){return function(...r){let i=this.__v_raw,a=j(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?wt:t?qt:Kt;return!t&&rt(a,`iterate`,l?tt:et),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Dt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Ot(e,t){let n={get(n){let r=this.__v_raw,i=j(r),a=j(n);e||(oe(n,a)&&rt(i,`get`,n),rt(i,`get`,a));let{has:o}=Tt(i),s=t?wt:e?qt:Kt;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&rt(j(t),`iterate`,et),t.size},has(t){let n=this.__v_raw,r=j(n),i=j(t);return e||(oe(t,i)&&rt(r,`has`,t),rt(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=j(a),s=t?wt:e?qt:Kt;return!e&&rt(o,`iterate`,et),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:Dt(`add`),set:Dt(`set`),delete:Dt(`delete`),clear:Dt(`clear`)}:{add(e){let n=j(this),r=Tt(n),i=j(e),a=!t&&!Ut(e)&&!Ht(e)?i:e;return r.has.call(n,a)||oe(e,a)&&r.has.call(n,e)||oe(i,a)&&r.has.call(n,i)||(n.add(a),it(n,`add`,a,a)),this},set(e,n){!t&&!Ut(n)&&!Ht(n)&&(n=j(n));let r=j(this),{has:i,get:a}=Tt(r),o=i.call(r,e);o||=(e=j(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?oe(n,s)&&it(r,`set`,e,n,s):it(r,`add`,e,n),this},delete(e){let t=j(this),{has:n,get:r}=Tt(t),i=n.call(t,e);i||=(e=j(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&it(t,`delete`,e,void 0,a),o},clear(){let e=j(this),t=e.size!==0,n=e.clear();return t&&it(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Et(r,e,t)}),n}function kt(e,t){let n=Ot(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(u(n,r)&&r in t?n:t,r,i)}var At={get:kt(!1,!1)},jt={get:kt(!1,!0)},Mt={get:kt(!0,!1)},Nt=new WeakMap,Pt=new WeakMap,Ft=new WeakMap,It=new WeakMap;function Lt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function A(e){return Ht(e)?e:Bt(e,!1,xt,At,Nt)}function Rt(e){return Bt(e,!1,Ct,jt,Pt)}function zt(e){return Bt(e,!0,St,Mt,Ft)}function Bt(e,t,n,r,i){if(!v(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=Lt(S(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function Vt(e){return Ht(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function Ht(e){return!!(e&&e.__v_isReadonly)}function Ut(e){return!!(e&&e.__v_isShallow)}function Wt(e){return e?!!e.__v_raw:!1}function j(e){let t=e&&e.__v_raw;return t?j(t):e}function Gt(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&D(e,`__v_skip`,!0),e}var Kt=e=>v(e)?A(e):e,qt=e=>v(e)?zt(e):e;function Jt(e){return e?e.__v_isRef===!0:!1}function M(e){return Xt(e,!1)}function Yt(e){return Xt(e,!0)}function Xt(e,t){return Jt(e)?e:new Zt(e,t)}var Zt=class{constructor(e,t){this.dep=new Ze,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:j(e),this._value=t?e:Kt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||Ut(e)||Ht(e);e=n?e:j(e),oe(e,t)&&(this._rawValue=e,this._value=n?e:Kt(e),this.dep.trigger())}};function N(e){return Jt(e)?e.value:e}var Qt={get:(e,t,n)=>t===`__v_raw`?e:N(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return Jt(i)&&!Jt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function $t(e){return Vt(e)?e:new Proxy(e,Qt)}var en=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ze(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ye-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&k!==this)return Fe(this,!0),!0}get value(){let e=this.dep.track();return Ve(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function tn(e,t,n=!1){let r,i;return h(e)?r=e:(r=e.get,i=e.set),new en(r,i,n)}var nn={},rn=new WeakMap,an=void 0;function on(e,t=!1,n=an){if(n){let t=rn.get(n);t||rn.set(n,t=[]),t.push(e)}}function sn(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:Ut(e)||o===!1||o===0?cn(e,1):cn(e),m,g,_,v,y=!1,b=!1;if(Jt(e)?(g=()=>e.value,y=Ut(e)):Vt(e)?(g=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>Vt(e)||Ut(e)),g=()=>e.map(e=>{if(Jt(e))return e.value;if(Vt(e))return p(e);if(h(e))return f?f(e,2):e()})):g=h(e)?n?f?()=>f(e,2):e:()=>{if(_){Ke();try{_()}finally{qe()}}let t=an;an=m;try{return f?f(e,3,[v]):e(v)}finally{an=t}}:r,n&&o){let e=g,t=o===!0?1/0:o;g=()=>cn(e(),t)}let x=ke(),S=()=>{m.stop(),x&&x.active&&c(x.effects,m)};if(s&&n){let e=n;n=(...t)=>{let n=e(...t);return S(),n}}let C=b?Array(e.length).fill(nn):nn,w=e=>{if(!(!(m.flags&1)||!m.dirty&&!e))if(n){let t=m.run();if(e||o||y||(b?t.some((e,t)=>oe(e,C[t])):oe(t,C))){_&&_();let e=an;an=m;try{let e=[t,C===nn?void 0:b&&C[0]===nn?[]:C,v];C=t,f?f(n,3,e):n(...e)}finally{an=e}}}else m.run()};return u&&u(w),m=new je(g),m.scheduler=l?()=>l(w,!1):w,v=e=>on(e,!1,m),_=m.onStop=()=>{let e=rn.get(m);if(e){if(f)f(e,4);else for(let t of e)t();rn.delete(m)}},n?a?w(!0):C=m.run():l?l(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function cn(e,t=1/0,n){if(t<=0||!v(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Jt(e))cn(e.value,t,n);else if(d(e))for(let r=0;r{cn(e,t,n)});else if(C(e)){for(let r in e)cn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&cn(e[r],t,n)}return e}function ln(e,t,n,r){try{return r?e(...r):e()}catch(e){dn(e,t,n)}}function un(e,t,n,r){if(h(e)){let i=ln(e,t,n,r);return i&&y(i)&&i.catch(e=>{dn(e,t,n)}),i}if(d(e)){let i=[];for(let a=0;a>>1,i=pn[r],a=Dn(i);a=Dn(n)?pn.push(e):pn.splice(xn(t),0,e),e.flags|=1,Cn()}}function Cn(){yn||=vn.then(On)}function wn(e){d(e)?hn.push(...e):gn&&e.id===-1?gn.splice(_n+1,0,e):e.flags&1||(hn.push(e),e.flags|=1),Cn()}function Tn(e,t,n=mn+1){for(;nDn(e)-Dn(t));if(hn.length=0,gn){gn.push(...e);return}for(gn=e,_n=0;_ne.id==null?e.flags&2?-1:1/0:e.id;function On(e){try{for(mn=0;mn{r._d&&ma(-1);let i=jn(t),a=ua.length,o;try{o=e(...n)}finally{for(let e=ua.length;e>a;e--)fa();jn(i),r._d&&ma(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function F(e,n){if(kn===null)return e;let r=Ya(kn),i=e.dirs||=[];for(let e=0;e1)return n&&h(t)?t.call(r&&r.proxy):t}}var Fn=Symbol.for(`v-scx`),In=()=>Pn(Fn);function Ln(e,t,n){return Rn(e,t,n)}function Rn(e,n,i=t){let{immediate:a,deep:o,flush:c,once:l}=i,u=s({},i),d=n&&a||!n&&c!==`post`,f;if(Ba){if(c===`sync`){let e=In();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}}let p=Na;u.call=(e,t,n)=>un(e,p,t,n);let m=!1;c===`post`?u.scheduler=e=>{Ji(e,p&&p.suspense)}:c!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():Sn(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=sn(e,n,u);return Ba&&(f?f.push(h):d&&h()),h}function zn(e,t,n){let r=this.proxy,i=g(e)?e.includes(`.`)?Bn(r,e):()=>r[e]:e.bind(r,r),a;h(t)?a=t:(a=t.handler,n=t);let o=La(this),s=Rn(i,a.bind(r),n);return o(),s}function Bn(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;ee.__isTeleport,Wn=e=>e&&(e.disabled||e.disabled===``),Gn=e=>e&&(e.defer||e.defer===``),Kn=e=>typeof SVGElement<`u`&&e instanceof SVGElement,qn=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,Jn=(e,t)=>{let n=e&&e.to;return g(n)?t?t(n):null:n},Yn={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=Wn(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=Wn(e.props),r=e.target=Jn(e.props,m),a=er(r,e,h,p);r&&(o!==`svg`&&Kn(r)?o=`svg`:o!==`mathml`&&qn(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),$n(e,!1)))},S=e=>{let t=()=>{if(Vn.get(e)===t){if(Vn.delete(e),Wn(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),$n(e,!0)}x(e)}};Vn.set(e,t),Ji(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),Gn(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),$n(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Vn.get(e);if(u){u.flags|=8,Vn.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Wn(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||Kn(p)?o=`svg`:(o===`mathml`||qn(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),ea(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Xn(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=Jn(t.props,m);e&&(t.target=e,Xn(t,e,null,l,0))}else g&&Xn(t,p,h,l,1);$n(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=Wn(f),m=a||!p,h=Vn.get(e);if(h&&(h.flags|=8,Vn.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e{e.isMounted=!0}),Pr(()=>{e.isUnmounting=!0}),e}var ir=[Function,Array],ar={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ir,onEnter:ir,onAfterEnter:ir,onEnterCancelled:ir,onBeforeLeave:ir,onLeave:ir,onAfterLeave:ir,onLeaveCancelled:ir,onBeforeAppear:ir,onAppear:ir,onAfterAppear:ir,onAppearCancelled:ir},or=e=>{let t=e.subTree;return t.component?or(t.component):t},sr={name:`BaseTransition`,props:ar,setup(e,{slots:t}){let n=Pa(),r=rr();return()=>{let i=t.default&&hr(t.default(),!0),a=i&&i.length?cr(i):n.subTree?U():void 0;if(!a)return;let o=j(e),{mode:s}=o;if(r.isLeaving)return fr(a);let c=pr(a);if(!c)return fr(a);let l=dr(c,o,r,n,e=>l=e);c.type!==ca&&mr(c,l);let u=n.subTree&&pr(n.subTree);if(u&&u.type!==ca&&!va(u,c)&&or(n).type!==ca){let e=dr(u,o,r,n);if(mr(u,e),s===`out-in`&&c.type!==ca)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},fr(a);s===`in-out`&&c.type!==ca?e.delayLeave=(e,t,n)=>{let i=ur(r,u);i[String(u.key)]=u,e[tr]=()=>{t(),e[tr]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function cr(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==ca){t=n;break}}return t}var lr=sr;function ur(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function dr(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=ur(n,e),C=(e,t)=>{e&&un(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),d(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=_||c;else return;t[tr]&&t[tr](!0);let i=S[x];i&&va(e,i)&&i.el[tr]&&i.el[tr](),C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=f;if(!n.isMounted)if(a)r=v||l,i=y||u,o=b||f;else return;let s=!1;t[nr]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[nr]=void 0)};let c=t[nr].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[nr]&&t[nr](!0),n.isUnmounting)return r();C(p,[t]);let a=!1;t[tr]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[tr]=void 0,S[i]===e&&delete S[i])};let o=t[tr].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=dr(e,t,n,r,i);return i&&i(a),a}};return T}function fr(e){if(Cr(e))return e=Ca(e),e.children=null,e}function pr(e){if(!Cr(e))return Un(e.type)&&e.children?cr(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&h(n.default))return n.default()}}function mr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,mr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function hr(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let e=0;ebr(e,n&&(d(n)?n[t]:n),r,a,o));return}if(Sr(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&br(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?Ya(a.component):a.el,l=o?null:s,{i:f,r:p}=e,m=n&&n.r,_=f.refs===t?f.refs={}:f.refs,v=f.setupState,y=j(v),b=v===t?i:e=>!vr(_,e)&&u(y,e),x=(e,t)=>!(t&&vr(_,t));if(m!=null&&m!==p){if(xr(n),g(m))_[m]=null,b(m)&&(v[m]=null);else if(Jt(m)){let e=n;x(m,e.k)&&(m.value=null),e.k&&(_[e.k]=null)}}if(h(p))ln(p,f,12,[l,_]);else{let t=g(p),n=Jt(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?v[p]:_[p]:x(p)||!e.k?p.value:_[e.k];if(o)d(n)&&c(n,s);else if(d(n))n.includes(s)||n.push(s);else if(t)_[p]=[s],b(p)&&(v[p]=_[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(_[e.k]=t)}}else t?(_[p]=l,b(p)&&(v[p]=l)):n&&(x(p,e.k)&&(p.value=l),e.k&&(_[e.k]=l))};if(l){let t=()=>{i(),yr.delete(e)};t.id=-1,yr.set(e,t),Ji(t,r)}else xr(e),i()}}}function xr(e){let t=yr.get(e);t&&(t.flags|=8,yr.delete(e))}de().requestIdleCallback,de().cancelIdleCallback;var Sr=e=>!!e.type.__asyncLoader,Cr=e=>e.type.__isKeepAlive;function wr(e,t){Er(e,`a`,t)}function Tr(e,t){Er(e,`da`,t)}function Er(e,t,n=Na){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Or(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Cr(e.parent.vnode)&&Dr(r,t,n,e),e=e.parent}}function Dr(e,t,n,r){let i=Or(t,e,r,!0);Fr(()=>{c(r[t],i)},n)}function Or(e,t,n=Na,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Ke();let i=La(n),a=un(t,n,e,r);return i(),qe(),a};return r?i.unshift(a):i.push(a),a}}var kr=e=>(t,n=Na)=>{(!Ba||e===`sp`)&&Or(e,(...e)=>t(...e),n)},Ar=kr(`bm`),jr=kr(`m`),Mr=kr(`bu`),Nr=kr(`u`),Pr=kr(`bum`),Fr=kr(`um`),Ir=kr(`sp`),Lr=kr(`rtg`),Rr=kr(`rtc`);function zr(e,t=Na){Or(`ec`,e,t)}var Br=`components`;function Vr(e,t){return Wr(Br,e,!0,t)||e}var Hr=Symbol.for(`v-ndc`);function Ur(e){return g(e)?Wr(Br,e,!1)||e:e||Hr}function Wr(e,t,n=!0,r=!1){let i=kn||Na;if(i){let n=i.type;if(e===Br){let e=Xa(n,!1);if(e&&(e===t||e===E(t)||e===ie(E(t))))return n}let a=Gr(i[e]||n[e],t)||Gr(i.appContext[e],t);return!a&&r?n:a}}function Gr(e,t){return e&&(e[t]||e[E(t)]||e[ie(E(t))])}function I(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||g(e)){let n=o&&Vt(e),r=!1,s=!1;n&&(r=!Ut(e),s=Ht(e),e=ot(e)),i=Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r0;return t!=="default"&&(e.name=t),R(),ga(L,null,[V(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let c=ua.length;R();let l;try{let i=o&&qr(o(n)),s=n.key||a||i&&i.key;l=ga(L,{key:(s&&!_(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=ua.length;e>c;e--)fa();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+`-s`]),l}function qr(e){return e.some(e=>!_a(e)||!(e.type===ca||e.type===L&&!qr(e.children)))?e:null}var Jr=e=>e?za(e)?Ya(e):Jr(e.parent):null,Yr=s(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Jr(e.parent),$root:e=>Jr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ii(e),$forceUpdate:e=>e.f||=()=>{Sn(e.update)},$nextTick:e=>e.n||=bn.bind(e.proxy),$watch:e=>zn.bind(e)}),Xr=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),Zr={get({_:e},n){if(n===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(n[0]!==`$`){let e=s[n];if(e!==void 0)switch(e){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return o[n]}else if(Xr(i,n))return s[n]=1,i[n];else if(a!==t&&u(a,n))return s[n]=2,a[n];else if(u(o,n))return s[n]=3,o[n];else if(r!==t&&u(r,n))return s[n]=4,r[n];else $r&&(s[n]=0)}let d=Yr[n],f,p;if(d)return n===`$attrs`&&rt(e.attrs,`get`,``),d(e);if((f=c.__cssModules)&&(f=f[n]))return f;if(r!==t&&u(r,n))return s[n]=4,r[n];if(p=l.config.globalProperties,u(p,n))return p[n]},set({_:e},n,r){let{data:i,setupState:a,ctx:o}=e;return Xr(a,n)?(a[n]=r,!0):i!==t&&u(i,n)?(i[n]=r,!0):u(e.props,n)||n[0]===`$`&&n.slice(1)in e?!1:(o[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==t&&c[0]!==`$`&&u(e,c)||Xr(n,c)||u(o,c)||u(i,c)||u(Yr,c)||u(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?u(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function Qr(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var $r=!0;function ei(e){let t=ii(e),n=e.proxy,i=e.ctx;$r=!1,t.beforeCreate&&ni(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:f,beforeMount:p,mounted:m,beforeUpdate:g,updated:_,activated:y,deactivated:b,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:ee,renderTriggered:te,errorCaptured:E,serverPrefetch:ne,expose:re,inheritAttrs:ie,components:ae,directives:oe,filters:se}=t;if(u&&ti(u,i,null),s)for(let e in s){let t=s[e];h(t)&&(i[e]=t.bind(n))}if(a){let t=a.call(n,n);v(t)&&(e.data=A(t))}if($r=!0,o)for(let e in o){let t=o[e],a=W({get:h(t)?t.bind(n,n):h(t.get)?t.get.bind(n,n):r,set:!h(t)&&h(t.set)?t.set.bind(n):r});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)ri(c[e],i,n,e);if(l){let e=h(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Nn(t,e[t])})}f&&ni(f,e,`c`);function D(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(D(Ar,p),D(jr,m),D(Mr,g),D(Nr,_),D(wr,y),D(Tr,b),D(zr,E),D(Rr,ee),D(Lr,te),D(Pr,S),D(Fr,w),D(Ir,ne),d(re))if(re.length){let t=e.exposed||={};re.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};T&&e.render===r&&(e.render=T),ie!=null&&(e.inheritAttrs=ie),ae&&(e.components=ae),oe&&(e.directives=oe),ne&&_r(e)}function ti(e,t,n=r){d(e)&&(e=li(e));for(let n in e){let r=e[n],i;i=v(r)?`default`in r?Pn(r.from||n,r.default,!0):Pn(r.from||n):Pn(r),Jt(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function ni(e,t,n){un(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function ri(e,t,n,r){let i=r.includes(`.`)?Bn(n,r):()=>n[r];if(g(e)){let n=t[e];h(n)&&Ln(i,n)}else if(h(e))Ln(i,e.bind(n));else if(v(e))if(d(e))e.forEach(e=>ri(e,t,n,r));else{let r=h(e.handler)?e.handler.bind(n):t[e.handler];h(r)&&Ln(i,r,e)}}function ii(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>ai(c,e,o,!0)),ai(c,t,o)),v(t)&&a.set(t,c),c}function ai(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&ai(e,a,n,!0),i&&i.forEach(t=>ai(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=oi[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var oi={data:si,props:fi,emits:fi,methods:di,computed:di,beforeCreate:ui,created:ui,beforeMount:ui,mounted:ui,beforeUpdate:ui,updated:ui,beforeDestroy:ui,beforeUnmount:ui,destroyed:ui,unmounted:ui,activated:ui,deactivated:ui,errorCaptured:ui,serverPrefetch:ui,components:di,directives:di,watch:pi,provide:si,inject:ci};function si(e,t){return t?e?function(){return s(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function ci(e,t){return di(li(e),li(t))}function li(e){if(d(e)){let t={};for(let n=0;nt===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${E(t)}Modifiers`]||e[`${re(t)}Modifiers`];function yi(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&vi(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>g(e)?e.trim():e)),s.number&&(a=r.map(ce)));let c,l=i[c=ae(n)]||i[c=ae(E(n))];!l&&o&&(l=i[c=ae(re(n))]),l&&un(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,un(u,e,6,a)}}var bi=new WeakMap;function xi(e,t,n=!1){let r=n?bi:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},c=!1;if(!h(e)){let r=e=>{let n=xi(e,t,!0);n&&(c=!0,s(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!c?(v(e)&&r.set(e,null),null):(d(a)?a.forEach(e=>o[e]=null):s(o,a),v(e)&&r.set(e,o),o)}function Si(e,t){return!e||!a(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),u(e,t[0].toLowerCase()+t.slice(1))||u(e,re(t))||u(e,t))}function Ci(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=jn(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Ta(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=Ta(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),y=t.props?c:wi(c)}}catch(t){ua.length=0,dn(t,e,1),v=V(ca)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(o)&&(y=Ti(y,a)),b=Ca(b,y,!1,!0))}return n.dirs&&(b=Ca(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&mr(b,n.transition),v=b,jn(_),v}var wi=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},Ti=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Ei(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Di(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;tObject.create(Ai),Mi=e=>Object.getPrototypeOf(e)===Ai;function Ni(e,t,n,r=!1){let i={},a=ji();e.propsDefaults=Object.create(null),Fi(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:Rt(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function Pi(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=j(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r{p=!0;let[t,n]=Ri(e,r,!0);s(l,t),n&&f.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!p)return v(e)&&a.set(e,n),n;if(d(c))for(let e=0;ee===`_`||e===`_ctx`||e===`$stable`,Vi=e=>d(e)?e.map(Ta):[Ta(e)],Hi=(e,t,n)=>{if(t._n)return t;let r=P((...e)=>Vi(t(...e)),n);return r._c=!1,r},Ui=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Bi(n))continue;let i=e[n];if(h(i))t[n]=Hi(n,i,r);else if(i!=null){let e=Vi(i);t[n]=()=>e}}},Wi=(e,t)=>{let n=Vi(t);e.slots.default=()=>n},Gi=(e,t,n)=>{for(let r in t)(n||!Bi(r))&&(e[r]=t[r])},Ki=(e,t,n)=>{let r=e.slots=ji();if(e.vnode.shapeFlag&32){let e=t._;e?(Gi(r,t,n),n&&D(r,`_`,e,!0)):Ui(t,r)}else t&&Wi(e,t)},qi=(e,n,r)=>{let{vnode:i,slots:a}=e,o=!0,s=t;if(i.shapeFlag&32){let e=n._;e?r&&e===1?o=!1:Gi(a,n,r):(o=!n.$stable,Ui(n,a)),s=n}else n&&(Wi(e,n),s={default:1});if(o)for(let e in a)!Bi(e)&&s[e]==null&&delete a[e]},Ji=oa;function Yi(e){return Xi(e)}function Xi(e,i){let a=de();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=r,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!va(e,t)&&(r=xe(e),ge(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case sa:y(e,t,n,r);break;case ca:b(e,t,n,r);break;case la:e??x(t,n,r,o);break;case L:ae(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?oe(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,we)}u!=null&&i?br(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&br(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)ee(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ne(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},ee=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&E(e.children,d,null,r,i,Zi(e,a),s,u),_&&Mn(e,null,r,`created`),te(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!T(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&ka(f,r,e)}_&&Mn(e,null,r,`beforeMount`);let v=$i(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&Ji(()=>{try{f&&ka(f,r,e),v&&g.enter(d),_&&Mn(e,null,r,`mounted`)}finally{}},i)},te=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t{for(let l=c;l{let l=n.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=e.patchFlag&16;let m=e.props||t,h=n.props||t,g;if(r&&Qi(r,!1),(g=h.onVnodeBeforeUpdate)&&ka(g,r,n,e),f&&Mn(n,e,r,`beforeUpdate`),r&&Qi(r,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?re(e.dynamicChildren,d,l,r,i,Zi(n,a),o):s||fe(e,n,l,null,r,i,Zi(n,a),o,!1),u>0){if(u&16)ie(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=n.dynamicProps;for(let t=0;t{g&&ka(g,r,n,e),f&&Mn(n,e,r,`updated`)},i)},re=(e,t,n,r,i,a,o)=>{for(let s=0;s{if(n!==r){if(n!==t)for(let t in n)!T(t)&&!(t in r)&&c(e,t,n[t],null,a,i);for(let t in r){if(T(t))continue;let o=r[t],s=n[t];o!==s&&t!==`value`&&c(e,t,s,o,a,i)}`value`in r&&c(e,`value`,n.value,r.value,a)}},ae=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),E(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(re(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&ea(e,t,!0)):fe(e,t,n,f,i,a,s,c,l)},oe=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):D(t,n,r,i,a,o,c):ce(e,t,c)},D=(e,t,n,r,i,a,o)=>{let s=e.component=Ma(e,r,i);if(Cr(e)&&(s.ctx.renderer=we),Va(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,le,o),!e.el){let r=s.subTree=V(ca);b(null,r,t,n),e.placeholder=r.el}}else le(s,e,t,n,i,a,o)},ce=(e,t,n)=>{let r=t.component=e.component;if(Ei(e,t,n))if(r.asyncDep&&!r.asyncResolved){ue(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},le=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=na(e);if(n){t&&(t.el=c.el,ue(e,t,o)),n.asyncDep.then(()=>{Ji(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Qi(e,!1),t?(t.el=c.el,ue(e,t,o)):t=c,n&&se(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&ka(d,s,t,c),Qi(e,!0);let f=Ci(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),xe(p),e,i,a),t.el=f.el,u===null&&ki(e,f.el),r&&Ji(r,i),(d=t.props&&t.props.onVnodeUpdated)&&Ji(()=>ka(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Sr(t);if(Qi(e,!1),l&&se(l),!m&&(o=c&&c.onVnodeBeforeMount)&&ka(o,d,t),Qi(e,!0),s&&Te){let t=()=>{e.subTree=Ci(e),Te(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Ci(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&Ji(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;Ji(()=>ka(o,d,e),i)}(t.shapeFlag&256||d&&Sr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&Ji(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new je(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Sn(u),Qi(e,!0),l()},ue=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Pi(e,t.props,r,n),qi(e,t.children,n),Ke(),Tn(e),qe()},fe=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){me(l,d,n,r,i,a,o,s,c);return}else if(f&256){pe(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&be(l,i,a),d!==l&&p(n,d)):u&16?m&16?me(l,d,n,r,i,a,o,s,c):be(l,i,a,!0):(u&8&&p(n,``),m&16&&E(d,n,r,i,a,o,s,c))},pe=(e,t,r,i,a,o,s,c,l)=>{e||=n,t||=n;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;pd?be(e,a,o,!0,!1,f):E(t,r,i,a,o,s,c,l,f)},me=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?Ea(t[u]):Ta(t[u]);if(va(n,i))v(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?Ea(t[p]):Ta(t[p]);if(va(n,i))v(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=ep)for(;u<=f;)ge(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Ea(t[u]):Ta(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u=b){ge(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&va(n,t[_])){i=_;break}i===void 0?ge(n,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(n,t[i],r,null,a,o,s,c,l),y++)}let w=x?ta(C):n;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){he(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,we);return}if(c===L){o(a,t,n);for(let e=0;el.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[tr];a._isLeaving&&a[tr](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}else o(a,t,n)},ge=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(Ke(),br(s,null,n,e,!0),qe()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Sr(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&ka(_,t,e),u&6)ye(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Mn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,we,r):l&&!l.hasOnce&&(a!==L||d>0&&d&64)?be(l,t,n,!1,!0):(a===L&&d&384||!i&&u&16)&&be(c,t,n),r&&_e(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&Ji(()=>{_&&ka(_,t,e),h&&Mn(e,null,t,`unmounted`),v&&(e.el=null)},n)},_e=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===L){ve(n,r);return}if(t===la){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},ve=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},ye=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;ra(c),ra(l),r&&se(r),i.stop(),a&&(a.flags|=8,ge(o,e,t,n)),s&&Ji(s,t),Ji(()=>{e.isUnmounted=!0},t)},be=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{if(e.shapeFlag&6)return xe(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Hn];return n?h(n):t},Se=!1,Ce=(e,t,n)=>{let r;e==null?t._vnode&&(ge(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Se||=(Se=!0,Tn(r),En(),!1)},we={p:v,um:ge,m:he,r:_e,mt:D,mc:E,pc:fe,pbc:re,n:xe,o:e},O,Te;return i&&([O,Te]=i(we)),{render:Ce,hydrate:O,createApp:gi(Ce,O)}}function Zi({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Qi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function $i(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ea(e,t,n=!1){let r=e.children,i=t.children;if(d(r)&&d(i))for(let e=0;e>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function na(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:na(t)}function ra(e){if(e)for(let t=0;te.__isSuspense;function oa(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):wn(e)}var L=Symbol.for(`v-fgt`),sa=Symbol.for(`v-txt`),ca=Symbol.for(`v-cmt`),la=Symbol.for(`v-stc`),ua=[],da=null;function R(e=!1){ua.push(da=e?null:[])}function fa(){ua.pop(),da=ua[ua.length-1]||null}var pa=1;function ma(e,t=!1){pa+=e,e<0&&da&&t&&(da.hasOnce=!0)}function ha(e){return e.dynamicChildren=pa>0?da||n:null,fa(),pa>0&&da&&da.push(e),e}function z(e,t,n,r,i,a){return ha(B(e,t,n,r,i,a,!0))}function ga(e,t,n,r,i){return ha(V(e,t,n,r,i,!0))}function _a(e){return e?e.__v_isVNode===!0:!1}function va(e,t){return e.type===t.type&&e.key===t.key}var ya=({key:e})=>e??null,ba=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:g(e)||Jt(e)||h(e)?{i:kn,r:e,k:t,f:!!n}:e);function B(e,t=null,n=null,r=0,i=null,a=e===L?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ya(t),ref:t&&ba(t),scopeId:An,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:kn};return s?(Da(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=g(n)?8:16),pa>0&&!o&&da&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&da.push(c),c}var V=xa;function xa(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Hr)&&(e=ca),_a(e)){let r=Ca(e,t,!0);return n&&Da(r,n),pa>0&&!a&&da&&(r.shapeFlag&6?da[da.indexOf(e)]=r:da.push(r)),r.patchFlag=-2,r}if(Za(e)&&(e=e.__vccOpts),t){t=Sa(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=_e(e)),v(n)&&(Wt(n)&&!d(n)&&(n=s({},n)),t.style=fe(n))}let o=g(e)?1:aa(e)?128:Un(e)?64:v(e)?4:h(e)?2:0;return B(e,t,n,r,i,o,a,!0)}function Sa(e){return e?Wt(e)||Mi(e)?s({},e):e:null}function Ca(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Oa(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ya(l),ref:t&&t.ref?n&&a?d(a)?a.concat(ba(t)):[a,ba(t)]:ba(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==L?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ca(e.ssContent),ssFallback:e.ssFallback&&Ca(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&mr(u,c.clone(u)),u}function H(e=` `,t=0){return V(sa,null,e,t)}function wa(e,t){let n=V(la,null,e);return n.staticCount=t,n}function U(e=``,t=!1){return t?(R(),ga(ca,null,e)):V(ca,null,e)}function Ta(e){return e==null||typeof e==`boolean`?V(ca):d(e)?V(L,null,e.slice()):_a(e)?Ea(e):V(sa,null,String(e))}function Ea(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ca(e)}function Da(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(d(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Da(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!Mi(t)?t._ctx=kn:r===3&&kn&&(kn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(h(t)){if(r&65){Da(e,{default:t});return}t={default:t,_ctx:kn},n=32}else t=String(t),r&64?(n=16,t=[H(t)]):n=8;e.children=t,e.shapeFlag|=n}function Oa(...e){let t={};for(let n=0;nNa||kn,Fa,Ia;{let e=de(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Fa=t(`__VUE_INSTANCE_SETTERS__`,e=>Na=e),Ia=t(`__VUE_SSR_SETTERS__`,e=>Ba=e)}var La=e=>{let t=Na;return Fa(e),e.scope.on(),()=>{e.scope.off(),Fa(t)}},Ra=()=>{Na&&Na.scope.off(),Fa(null)};function za(e){return e.vnode.shapeFlag&4}var Ba=!1;function Va(e,t=!1,n=!1){t&&Ia(t);let{props:r,children:i}=e.vnode,a=za(e);Ni(e,r,a,t),Ki(e,i,n||t);let o=a?Ha(e,t):void 0;return t&&Ia(!1),o}function Ha(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Zr);let{setup:r}=n;if(r){Ke();let n=e.setupContext=r.length>1?Ja(e):null,i=La(e),a=ln(r,e,0,[e.props,n]),o=y(a);if(qe(),i(),(o||e.sp)&&!Sr(e)&&_r(e),o){if(a.then(Ra,Ra),t)return a.then(n=>{Ua(e,n,t)}).catch(t=>{dn(t,e,0)});e.asyncDep=a}else Ua(e,a,t)}else Ka(e,t)}function Ua(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:v(t)&&(e.setupState=$t(t)),Ka(e,n)}var Wa,Ga;function Ka(e,t,n){let i=e.type;if(!e.render){if(!t&&Wa&&!i.render){let t=i.template||ii(e).template;if(t){let{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:o}=i;i.render=Wa(t,s(s({isCustomElement:n,delimiters:a},r),o))}}e.render=i.render||r,Ga&&Ga(e)}{let t=La(e);Ke();try{ei(e)}finally{qe(),t()}}}var qa={get(e,t){return rt(e,`get`,``),e[t]}};function Ja(e){return{attrs:new Proxy(e.attrs,qa),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Ya(e){return e.exposed?e.exposeProxy||=new Proxy($t(Gt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Yr)return Yr[n](e)},has(e,t){return t in e||t in Yr}}):e.proxy}function Xa(e,t=!0){return h(e)?e.displayName||e.name:e.name||t&&e.__name}function Za(e){return h(e)&&`__vccOpts`in e}var W=(e,t)=>tn(e,t,Ba);function Qa(e,t,n){try{ma(-1);let r=arguments.length;return r===2?v(t)&&!d(t)?_a(t)?V(e,null,[t]):V(e,t):V(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&_a(n)&&(n=[n]),V(e,t,n))}finally{ma(1)}}var $a=`3.5.40`,eo=void 0,to=typeof window<`u`&&window.trustedTypes;if(to)try{eo=to.createPolicy(`vue`,{createHTML:e=>e})}catch{}var no=eo?e=>eo.createHTML(e):e=>e,ro=`http://www.w3.org/2000/svg`,io=`http://www.w3.org/1998/Math/MathML`,ao=typeof document<`u`?document:null,oo=ao&&ao.createElement(`template`),so={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?ao.createElementNS(ro,e):t===`mathml`?ao.createElementNS(io,e):n?ao.createElement(e,{is:n}):ao.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>ao.createTextNode(e),createComment:e=>ao.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ao.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{oo.innerHTML=no(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=oo.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},co=`transition`,lo=`animation`,uo=Symbol(`_vtc`),fo={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},po=s({},ar,fo),mo=(e=>(e.displayName=`Transition`,e.props=po,e))((e,{slots:t})=>Qa(lr,_o(e),t)),ho=(e,t=[])=>{d(e)?e.forEach(e=>e(...t)):e&&e(...t)},go=e=>e?d(e)?e.some(e=>e.length>1):e.length>1:!1;function _o(e){let t={};for(let n in e)n in fo||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:d=c,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=vo(i),g=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:T=b}=t,ee=(e,t,n,r)=>{e._enterCancelled=r,xo(e,t?d:c),xo(e,t?u:o),n&&n()},te=(e,t)=>{e._isLeaving=!1,xo(e,f),xo(e,m),xo(e,p),t&&t()},E=e=>(t,n)=>{let i=e?w:y,o=()=>ee(t,e,n);ho(i,[t,o]),So(()=>{xo(t,e?l:a),bo(t,e?d:c),go(i)||wo(t,r,g,o)})};return s(t,{onBeforeEnter(e){ho(v,[e]),bo(e,a),bo(e,o)},onBeforeAppear(e){ho(C,[e]),bo(e,l),bo(e,u)},onEnter:E(!1),onAppear:E(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>te(e,t);bo(e,f),e._enterCancelled?(bo(e,p),Oo(e)):(Oo(e),bo(e,p)),So(()=>{e._isLeaving&&(xo(e,f),bo(e,m),go(x)||wo(e,r,_,n))}),ho(x,[e,n])},onEnterCancelled(e){ee(e,!1,void 0,!0),ho(b,[e])},onAppearCancelled(e){ee(e,!0,void 0,!0),ho(T,[e])},onLeaveCancelled(e){te(e),ho(S,[e])}})}function vo(e){if(e==null)return null;if(v(e))return[yo(e.enter),yo(e.leave)];{let t=yo(e);return[t,t]}}function yo(e){return le(e)}function bo(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[uo]||(e[uo]=new Set)).add(t)}function xo(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[uo];n&&(n.delete(t),n.size||(e[uo]=void 0))}function So(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Co=0;function wo(e,t,n,r){let i=e._endId=++Co,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=To(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u(n[e]||``).split(`, `),i=r(`${co}Delay`),a=r(`${co}Duration`),o=Eo(i,a),s=r(`${lo}Delay`),c=r(`${lo}Duration`),l=Eo(s,c),u=null,d=0,f=0;t===co?o>0&&(u=co,d=o,f=a.length):t===lo?l>0&&(u=lo,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?co:lo:null,f=u?u===co?a.length:c.length:0);let p=u===co&&/\b(?:transform|all)(?:,|$)/.test(r(`${co}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Eo(e,t){for(;e.lengthDo(t)+Do(e[n])))}function Do(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Oo(e){return(e?e.ownerDocument:document).body.offsetHeight}function ko(e,t,n){let r=e[uo];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Ao=Symbol(`_vod`),jo=Symbol(`_vsh`),Mo=Symbol(``),No=/(?:^|;)\s*display\s*:/;function Po(e,t,n){let r=e.style,i=g(n),a=!1;if(n&&!i){if(t)if(g(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Io(r,t,``)}else for(let e in t)n[e]??Io(r,e,``);for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Io(r,i,``):Bo(e,i,!g(t)&&t?t[i]:void 0,o)||Io(r,i,o)}}else if(i){if(t!==n){let e=r[Mo];e&&(n+=`;`+e),r.cssText=n,a=No.test(n)}}else t&&e.removeAttribute(`style`);Ao in e&&(e[Ao]=a?r.display:``,e[jo]&&(r.display=`none`))}var Fo=/\s*!important$/;function Io(e,t,n){if(d(n))n.forEach(n=>Io(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=zo(e,t);Fo.test(n)?e.setProperty(re(r),n.replace(Fo,``),`important`):e[r]=n}}var Lo=[`Webkit`,`Moz`,`ms`],Ro={};function zo(e,t){let n=Ro[t];if(n)return n;let r=E(t);if(r!==`filter`&&r in e)return Ro[t]=r;r=ie(r);for(let n=0;nZo||=(Qo.then(()=>Zo=0),Date.now());function es(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(d(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;ne.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ns=(e,t,n,r,i,s)=>{let c=i===`svg`;t===`class`?ko(e,r,c):t===`style`?Po(e,n,r):a(t)?o(t)||qo(e,t,n,r,s):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):rs(e,t,r,c))?(Uo(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Ho(e,t,r,c,s,t!==`value`)):e._isVueCE&&(is(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!g(r)))?Uo(e,E(t),r,s,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Ho(e,t,r,c))};function rs(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&ts(t)&&h(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return ts(t)&&g(n)?!1:t in e}function is(e,t){let n=e._def.props;if(!n)return!1;let r=E(t);return Array.isArray(n)?n.some(e=>E(e)===r):Object.keys(n).some(e=>E(e)===r)}var as=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return d(t)?e=>se(t,e):t};function os(e){e.target.composing=!0}function ss(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var cs=Symbol(`_assign`);function ls(e,t,n){return t&&(e=e.trim()),n&&(e=ce(e)),e}var G={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[cs]=as(i);let a=r||i.props&&i.props.type===`number`;Wo(e,t?`change`:`input`,t=>{t.target.composing||e[cs](ls(e.value,n,a))}),(n||a)&&Wo(e,`change`,()=>{e.value=ls(e.value,n,a)}),t||(Wo(e,`compositionstart`,os),Wo(e,`compositionend`,ss),Wo(e,`change`,ss))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[cs]=as(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?ce(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},us={deep:!0,created(e,t,n){e[cs]=as(n),Wo(e,`change`,()=>{let t=e._modelValue,n=ps(e),r=e.checked,i=e[cs];if(d(t)){let e=Ce(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(p(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(ms(e,r))})},mounted:ds,beforeUpdate(e,t,n){e[cs]=as(n),ds(e,t,n)}};function ds(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(d(t))i=Ce(t,r.props.value)>-1;else if(p(t))i=t.has(r.props.value);else{if(t===n)return;i=Se(t,ms(e,!0))}e.checked!==i&&(e.checked=i)}var K={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,Wo(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?ce(ps(e)):ps(e));e[cs](e.multiple?p(e._modelValue)?new Set(t):t:t[0]),e._assigning=!0,bn(()=>{e._assigning=!1})}),e[cs]=as(r)},mounted(e,{value:t}){fs(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[cs]=as(n)},updated(e,{value:t}){e._assigning||fs(e,t)}};function fs(e,t){let n=e.multiple,r=d(t);if(!(n&&!r&&!p(t))){for(let i=0,a=e.options.length;iString(e)===String(o)):a.selected=Ce(t,o)>-1}else a.selected=t.has(o);else if(Se(ps(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ps(e){return`_value`in e?e._value:e.value}function ms(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var hs=[`ctrl`,`shift`,`alt`,`meta`],gs={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>hs.some(n=>e[`${n}Key`]&&!t.includes(n))},q=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e{let t=ys().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Ss(e);if(!r)return;let i=t._component;!h(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,xs(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function xs(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Ss(e){return g(e)?document.querySelector(e):e}function Cs(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function ws(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Cs(e.default)}var J=Object.assign;function Ts(e,t){let n={};for(let r in t){let i=t[r];n[r]=Ds(i)?i.map(e):e(i)}return n}var Es=()=>{},Ds=Array.isArray;function Os(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var ks=Symbol(``);function As(e,t){return J(Error(),{type:e,[ks]:!0},t)}function js(e,t){return e instanceof Error&&ks in e&&(t==null||!!(e.type&t))}var Ms=Symbol(``),Ns=Symbol(``),Ps=Symbol(``),Fs=Symbol(``),Is=Symbol(``);function Ls(){return Pn(Ps)}function Rs(e){return Pn(Fs)}var zs=typeof document<`u`,Bs=/#/g,Vs=/&/g,Hs=/\//g,Us=/=/g,Ws=/\?/g,Gs=/\+/g,Ks=/%5B/g,qs=/%5D/g,Js=/%5E/g,Ys=/%60/g,Xs=/%7B/g,Zs=/%7C/g,Qs=/%7D/g,$s=/%20/g;function ec(e){return e==null?``:encodeURI(``+e).replace(Zs,`|`).replace(Ks,`[`).replace(qs,`]`)}function tc(e){return ec(e).replace(Xs,`{`).replace(Qs,`}`).replace(Js,`^`)}function nc(e){return ec(e).replace(Gs,`%2B`).replace($s,`+`).replace(Bs,`%23`).replace(Vs,`%26`).replace(Ys,"`").replace(Xs,`{`).replace(Qs,`}`).replace(Js,`^`)}function rc(e){return nc(e).replace(Us,`%3D`)}function ic(e){return ec(e).replace(Bs,`%23`).replace(Ws,`%3F`)}function ac(e){return ic(e).replace(Hs,`%2F`)}function oc(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var sc=/\/$/,cc=e=>e.replace(sc,``);function lc(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=_c(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:oc(o)}}function uc(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function dc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function fc(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&pc(t.matched[r],n.matched[i])&&mc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function pc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function mc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!hc(e[n],t[n]))return!1;return!0}function hc(e,t){return Ds(e)?gc(e,t):Ds(t)?gc(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function gc(e,t){return Ds(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function _c(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var vc={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function yc(e){if(!e)if(zs){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),cc(e)}var bc=/^[^#]+#/;function xc(e,t){return e.replace(bc,`#`)+t}function Sc(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var Cc=()=>({left:window.scrollX,top:window.scrollY});function wc(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Sc(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Tc(e,t){return(history.state?history.state.position-t:-1)+e}var Ec=new Map;function Dc(e,t){Ec.set(e,t)}function Oc(e){let t=Ec.get(e);return Ec.delete(e),t}function kc(e){return typeof e==`string`||e&&typeof e==`object`}function Ac(e){return typeof e==`string`||typeof e==`symbol`}function jc(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;ee&&nc(e)):[r&&nc(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Nc(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=Ds(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Pc(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Fc(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(As(4,{from:n,to:t})):e instanceof Error?c(e):kc(e)?c(As(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Ic(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(Cs(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Fc(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=ws(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Fc(c,n,r,o,e,i)()}))}}return a}function Lc(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;opc(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>pc(e,s))||i.push(s))}return[n,r,i]}var Rc=()=>location.protocol+`//`+location.host;function zc(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),dc(n,``)}return dc(n,e)+r+i}function Bc(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=zc(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(J({},e.state,{scroll:Cc()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Vc(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Cc():null}}function Hc(e){let{history:t,location:n}=window,r={value:zc(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Rc()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,J({},t.state,Vc(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=J({},i.value,t.state,{forward:e,scroll:Cc()});a(o.current,o,!0),a(e,J({},Vc(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Uc(e){e=yc(e);let t=Hc(e),n=Bc(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=J({location:``,base:e,go:r,createHref:xc.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var Wc={type:0,value:``},Gc=/[a-zA-Z0-9_]/;function Kc(e){if(!e)return[[]];if(e===`/`)return[[Wc]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;st.length?t.length===1&&t[0]===80?1:-1:0}function Qc(e,t){let n=0,r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}var el={strict:!1,end:!0,sensitive:!1};function tl(e,t,n){let r=J(Xc(Kc(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function nl(e,t){let n=[],r=new Map;t=Os(el,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=il(e);s.aliasOf=r&&r.record;let l=Os(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(il(J({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=tl(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!ol(d)&&o(e.name)),ul(d)&&c(d),s.children){let e=s.children;for(let t=0;t{o(f)}:Es}function o(e){if(Ac(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=cl(e,n);n.splice(t,0,e),e.record.name&&!ol(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw As(1,{location:e});s=i.record.name,a=J(rl(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&rl(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw As(1,{location:e,currentLocation:t});s=i.record.name,a=J({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:sl(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function rl(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function il(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:al(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function al(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function ol(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function sl(e){return e.reduce((e,t)=>J(e,t.meta),{})}function cl(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Qc(e,t[i])<0?r=i:n=i+1}let i=ll(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function ll(e){let t=e;for(;t=t.parent;)if(ul(t)&&Qc(e,t)===0)return t}function ul({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function dl(e){let t=Pn(Ps),n=Pn(Fs),r=W(()=>{let n=N(e.to);return t.resolve(n)}),i=W(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(pc.bind(null,i));if(o>-1)return o;let s=gl(e[t-2]);return t>1&&gl(i)===s&&a[a.length-1].path!==s?a.findIndex(pc.bind(null,e[t-2])):o}),a=W(()=>i.value>-1&&hl(n.params,r.value.params)),o=W(()=>i.value>-1&&i.value===n.matched.length-1&&mc(n.params,r.value.params));function s(n={}){if(ml(n)){let n=t[N(e.replace)?`replace`:`push`](N(e.to)).catch(Es);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:W(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function fl(e){return e.length===1?e[0]:e}var pl=gr({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:dl,setup(e,{slots:t}){let n=A(dl(e)),{options:r}=Pn(Ps),i=W(()=>({[_l(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[_l(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&fl(t.default(n));return e.custom?r:Qa(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function ml(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function hl(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!Ds(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function gl(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var _l=(e,t,n)=>e??t??n,vl=gr({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=Pn(Is),i=W(()=>e.route||r.value),a=Pn(Ns,0),o=W(()=>{let e=N(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=W(()=>i.value.matched[o.value]);Nn(Ns,W(()=>o.value+1)),Nn(Ms,s),Nn(Is,i);let c=M();return Ln(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!pc(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return yl(n.default,{Component:l,route:r});let u=o.props[a],d=Qa(l,J({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return yl(n.default,{Component:d,route:r})||d}}});function yl(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var bl=vl;function xl(e){let t=nl(e.routes,e),n=e.parseQuery||jc,r=e.stringifyQuery||Mc,i=e.history,a=Pc(),o=Pc(),s=Pc(),c=Yt(vc),l=vc;zs&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=Ts.bind(null,e=>``+e),d=Ts.bind(null,ac),f=Ts.bind(null,oc);function p(e,n){let r,i;return Ac(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=J({},a||c.value),typeof e==`string`){let r=lc(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return J(r,o,{params:f(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=J({},e,{path:lc(n,e.path,a.path).path});else{let t=J({},e.params);for(let e in t)t[e]??delete t[e];o=J({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=uc(r,J({},e,{hash:tc(l),path:s.path})),m=i.createHref(p);return J({fullPath:p,hash:l,query:r===Mc?Nc(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?lc(n,e,c.value.path):J({},e)}function y(e,t){if(l!==e)return As(8,{from:t,to:e})}function b(e){return C(e)}function x(e){return b(J(v(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),J({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n,i);if(u)return C(J(v(u),{state:typeof u==`object`?J({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&fc(r,i,n)&&(f=As(16,{to:d,from:i}),le(i,i,!0,!1)),(f?Promise.resolve(f):ee(d,i)).catch(e=>js(e)?js(e,2)?e:ce(e):se(e,d,i)).then(e=>{if(e){if(js(e,2))return C(J({replace:s},v(e.to),{state:typeof e.to==`object`?J({},a,e.to.state):a,force:o}),t||d)}else e=E(d,i,!0,s,a);return te(d,i,e),e})}function w(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function T(e){let t=fe.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function ee(e,t){let n,[r,i,s]=Lc(e,t);n=Ic(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Fc(r,e,t))});let c=w.bind(null,e,t);return n.push(c),me(n).then(()=>{n=[];for(let r of a.list())n.push(Fc(r,e,t));return n.push(c),me(n)}).then(()=>{n=Ic(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Fc(r,e,t))});return n.push(c),me(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(Ds(r.beforeEnter))for(let i of r.beforeEnter)n.push(Fc(i,e,t));else n.push(Fc(r.beforeEnter,e,t));return n.push(c),me(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Ic(s,`beforeRouteEnter`,e,t,T),n.push(c),me(n))).then(()=>{n=[];for(let r of o.list())n.push(Fc(r,e,t));return n.push(c),me(n)}).catch(e=>js(e,8)?e:Promise.reject(e))}function te(e,t,n){s.list().forEach(r=>T(()=>r(e,t,n)))}function E(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===vc,l=zs?history.state:{};n&&(r||s?i.replace(e.fullPath,J({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,le(e,t,n,s),ce()}let ne;function re(){ne||=i.listen((e,t,n)=>{if(!pe.listening)return;let r=_(e),a=S(r,pe.currentRoute.value);if(a){C(J(a,{replace:!0,force:!0}),r).catch(Es);return}l=r;let o=c.value;zs&&Dc(Tc(o.fullPath,n.delta),Cc()),ee(r,o).catch(e=>js(e,12)?e:js(e,2)?(C(J(v(e.to),{force:!0}),r).then(e=>{js(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(Es),Promise.reject()):(n.delta&&i.go(-n.delta,!1),se(e,r,o))).then(e=>{e||=E(r,o,!1),e&&(n.delta&&!js(e,8)?i.go(-n.delta,!1):n.type===`pop`&&js(e,20)&&i.go(-1,!1)),te(r,o,e)}).catch(Es)})}let ie=Pc(),ae=Pc(),oe;function se(e,t,n){ce(e);let r=ae.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function D(){return oe&&c.value!==vc?Promise.resolve():new Promise((e,t)=>{ie.add([e,t])})}function ce(e){return oe||(oe=!e,re(),ie.list().forEach(([t,n])=>e?n(e):t()),ie.reset()),e}function le(t,n,r,i){let{scrollBehavior:a}=e;if(!zs||!a)return Promise.resolve();let o=!r&&Oc(Tc(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return bn().then(()=>a(t,n,o)).then(e=>t===c.value&&e&&wc(e)).catch(e=>t===c.value&&se(e,t,n))}let ue=e=>i.go(e),de,fe=new Set,pe={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:ue,back:()=>ue(-1),forward:()=>ue(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:ae.add,isReady:D,install(e){e.component(`RouterLink`,pl),e.component(`RouterView`,bl),e.config.globalProperties.$router=pe,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>N(c)}),zs&&!de&&c.value===vc&&(de=!0,b(i.location).catch(e=>{}));let t={};for(let e in vc)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(Ps,pe),e.provide(Fs,Rt(t)),e.provide(Is,c);let n=e.unmount;fe.add(e),e.unmount=function(){fe.delete(e),fe.size<1&&(l=vc,ne&&ne(),ne=null,c.value=vc,de=!1,oe=!1),n()}}};function me(e){return e.reduce((e,t)=>e.then(()=>T(t)),Promise.resolve())}return pe}var Sl=A({toast:null,modal:null,sidebarOpen:!1}),Cl;function wl(e,t=``,n=`success`){Sl.toast={title:e,message:t,tone:n},clearTimeout(Cl),Cl=setTimeout(()=>{Sl.toast=null},3200)}function Tl(e,t={}){Sl.modal={component:e,props:t}}function El(){Sl.modal=null}var Y={state:Sl,notify:wl,openModal:Tl,closeModal:El},Dl=new Map;async function Ol(e,t={}){let n=t.body instanceof ArrayBuffer||t.body instanceof Blob||t.body instanceof FormData,r=await fetch(e,{credentials:`same-origin`,headers:{...t.body&&!n?{"Content-Type":`application/json`}:{},...t.headers},...t,body:t.body&&typeof t.body!=`string`&&!n?JSON.stringify(t.body):t.body}),i=(r.headers.get(`content-type`)||``).includes(`application/json`)?await r.json():await r.text();if(!r.ok){let t=Error(i?.message||`操作未完成,请稍后重试`);throw t.status=r.status,r.status===401&&![`/api/auth/me`,`/api/auth/login`,`/api/auth/login/totp`].includes(e)&&window.dispatchEvent(new CustomEvent(`eis:session-expired`)),t}return i}function X(e,t={}){if(String(t.method||`GET`).toUpperCase()!==`GET`||t.body!=null||t.signal)return Ol(e,t);let n=String(e);if(Dl.has(n))return Dl.get(n);let r=Ol(e,t).finally(()=>{Dl.get(n)===r&&Dl.delete(n)});return Dl.set(n,r),r}var Z=A({initialized:!1,loading:!1,error:``,publicData:{organization:{},notices:[],exams:[],stats:{}},user:null,profile:null,permissions:[],scopeLabel:``}),kl;async function Al(){return Z.publicData=await X(`/api/public/home`),Z.publicData}async function jl(){try{let e=await X(`/api/auth/me`);return Z.user=e.user||null,Z.profile=e.profile||null,Z.permissions=e.permissions||[],Z.scopeLabel=e.scopeLabel||``,e}catch(e){if(e.status!==401)throw e;return Pl(),{user:null,profile:null,permissions:[]}}}async function Ml({refresh:e=!1}={}){return Z.initialized&&!e?Z:kl&&!e?kl:(Z.loading=!0,Z.error=``,kl=Promise.all([Al(),jl()]).then(()=>(Z.initialized=!0,Z)).catch(e=>{throw Z.error=e.message||`系统基础信息加载失败`,e}).finally(()=>{Z.loading=!1,kl=null}),kl)}function Nl(e){Z.user=e.user||null,Z.profile=e.profile||null,Z.permissions=e.permissions||[],Z.scopeLabel=e.scopeLabel||``}function Pl(){Z.user=null,Z.profile=null,Z.permissions=[],Z.scopeLabel=``}async function Fl(){await X(`/api/auth/logout`,{method:`POST`}),Pl(),await Al()}function Il(e=Z.user){return e?e.role===`candidate`?e.mustChangePassword||!Z.profile?.profileCompleted?`/candidate/onboarding`:`/candidate/dashboard`:e.role===`admission_school`?`/admission/dashboard`:`/admin/dashboard`:`/auth/login`}var Q={state:Z,user:W(()=>Z.user),profile:W(()=>Z.profile),publicData:W(()=>Z.publicData),isAuthenticated:W(()=>!!Z.user),bootstrap:Ml,loadPublic:Al,refreshSession:jl,setSession:Nl,clearSession:Pl,logout:Fl,homeFor:Il},Ll={__name:`App`,setup(e){let t=Ls(),n=Rs();function r(){Q.clearSession(),Y.notify(`登录状态已失效`,`请重新登录后继续办理`,`warning`),n.path!==`/auth/login`&&t.replace({path:`/auth/login`,query:{redirect:n.fullPath}})}return jr(()=>window.addEventListener(`eis:session-expired`,r)),Pr(()=>window.removeEventListener(`eis:session-expired`,r)),(e,t)=>(R(),z(L,null,[V(N(bl)),V(mo,{name:`toast`},{default:P(()=>[N(Y).state.toast?(R(),z(`aside`,{key:0,class:_e([`app-toast`,`is-${N(Y).state.toast.tone}`]),role:`status`},[B(`strong`,null,O(N(Y).state.toast.title),1),B(`span`,null,O(N(Y).state.toast.message),1)],2)):U(``,!0)]),_:1}),(R(),ga(Qn,{to:`body`},[N(Y).state.modal?(R(),z(`div`,{key:0,class:`app-modal-backdrop`,onClick:t[1]||=q(e=>N(Y).closeModal(),[`self`])},[(R(),ga(Ur(N(Y).state.modal.component),Oa(N(Y).state.modal.props,{onClose:t[0]||=e=>N(Y).closeModal()}),null,16))])):U(``,!0)]))],64))}};function Rl(e,t=!1){if(!e)return`—`;let n=new Date(e);return Number.isNaN(n.getTime())?String(e):new Intl.DateTimeFormat(`zh-CN`,{year:`numeric`,month:`2-digit`,day:`2-digit`,...t?{hour:`2-digit`,minute:`2-digit`,hour12:!1}:{}}).format(n)}function zl(e,t){if(!e&&!t)return`时间待发布`;let n=e?new Date(e):null,r=t?new Date(t):null;if(!n||Number.isNaN(n.getTime()))return Rl(t);if(!r||Number.isNaN(r.getTime()))return Rl(e);let i=e=>new Intl.DateTimeFormat(`zh-CN`,{year:`numeric`,month:`2-digit`,day:`2-digit`}).format(e);return`${i(n)} — ${i(r)}`}function Bl(e){return{open:`报名开放`,upcoming:`即将开放`,closed:`报名结束`}[e]||`已发布`}function Vl(e){return new Intl.NumberFormat(`zh-CN`,{style:`currency`,currency:`CNY`}).format(Number(e||0))}function Hl(e={}){return{fixed_score:`固定总分线 ${e.passValue??`—`} 分`,rank_percent:`总成绩排名前 ${e.passValue??`—`}%`,subject_scores:`所有单科均达线`,none:`不判定合格`}[e.passPolicy]||`按考试规则判定`}function Ul(e){return e?e.role===`candidate`?`/candidate/dashboard`:e.role===`admission_school`?`/admission/dashboard`:`/admin/dashboard`:`/auth/login`}var Wl={class:`hz-site`},Gl={class:`hz-service-bar`},Kl={class:`hz-container hz-service-bar__inner`},ql={key:0},Jl={class:`hz-header`},Yl={class:`hz-container hz-header__inner`},Xl={class:`hz-header__actions`},Zl=[`aria-expanded`],Ql={id:`hz-main`},$l={class:`hz-hero`},eu={class:`hz-container`},tu={class:`hz-hero__grid`},nu={class:`hz-hero__content`},ru={class:`hz-hero__lead`},iu={class:`hz-hero__actions`},au={key:0,class:`hz-exam-docket`,"aria-label":`重点考试`},ou={class:`hz-exam-docket__body`},su={class:`hz-subjects`},cu={key:0},lu={key:1,class:`hz-exam-docket hz-exam-docket--empty`},uu={class:`hz-entry-section`,"aria-labelledby":`hz-entry-title`},du={class:`hz-container`},fu={class:`hz-service-grid`},pu={class:`hz-public-records`},mu={class:`hz-container hz-records-grid`},hu={class:`hz-notices`},gu={class:`hz-section-heading`},_u={key:0,class:`hz-featured-notice`},vu={key:1,class:`hz-empty`},yu={class:`hz-notice-list`},bu=[`onClick`],xu={class:`hz-operation-board`,"aria-label":`平台运行概况`},Su={id:`hz-exams`,class:`hz-exams`},Cu={class:`hz-container`},wu={key:0,class:`hz-exam-grid`},Tu={key:1,class:`hz-empty hz-empty--large`},Eu={class:`hz-footer`},Du={class:`hz-container hz-footer__main`},Ou={key:0},ku={key:1},Au={class:`hz-footer__links`},ju={class:`hz-footer__legal`},Mu={class:`hz-container`},Nu={__name:`HomePage`,props:{publicData:{type:Object,required:!0},session:{type:Object,required:!0}},emits:[`logout`],setup(e,{emit:t}){let n=e,r=t,i=M(!1),a=Ls(),o=W(()=>n.publicData.notices||[]),s=W(()=>n.publicData.exams||[]),c=W(()=>n.publicData.stats||{}),l=W(()=>n.publicData.organization||{}),u=W(()=>n.publicData.siteCopy||{}),d=W(()=>n.session.user||null),f=W(()=>s.value.find(e=>e.registrationState===`open`)||s.value[0]||null),p=W(()=>o.value[0]||null),m=W(()=>d.value?d.value.role===`candidate`?`进入考生中心`:d.value.role===`admission_school`?`进入招生学校端`:`进入管理后台`:`登录`),h=W(()=>d.value?Ul(d.value):n.publicData.selfRegistrationEnabled?`/auth/register`:`/auth/login`),g=W(()=>d.value?m.value:n.publicData.selfRegistrationEnabled?`申请固定报名号`:`使用报名号登录`);function _(e){i.value=!1,a.push(e)}function v(e){i.value=!1,document.querySelector(`#${e}`)?.scrollIntoView({behavior:`smooth`,block:`start`})}function y(){_(d.value?.role===`candidate`?`/candidate/exams`:`/auth/login`)}function b(e){return new Intl.NumberFormat(`zh-CN`).format(Number(e||0))}return(e,t)=>(R(),z(`div`,Wl,[t[66]||=B(`a`,{class:`hz-skip`,href:`#hz-main`},`跳到主要内容`,-1),B(`div`,Gl,[B(`div`,Kl,[t[23]||=B(`p`,null,[B(`span`,{"aria-hidden":`true`}),H(`考试信息公共服务平台`)],-1),B(`div`,null,[l.value.phone?(R(),z(`span`,ql,`咨询电话:`+O(l.value.phone),1)):U(``,!0),B(`button`,{type:`button`,onClick:t[0]||=e=>_(`/verify`)},`文书防伪查询`)])])]),B(`header`,Jl,[B(`div`,Yl,[B(`button`,{class:`hz-brand`,type:`button`,"aria-label":`返回首页`,onClick:t[1]||=e=>_(`/`)},[...t[24]||=[B(`span`,{class:`hz-brand__seal`,"aria-hidden":`true`},`衡`,-1),B(`span`,{class:`hz-brand__copy`},[B(`strong`,null,`衡准考试服务`),B(`small`,null,`EXAMINATION INFORMATION SERVICE`)],-1)]]),B(`nav`,{class:_e([`hz-nav`,{"is-open":i.value}]),"aria-label":`主要导航`},[B(`button`,{type:`button`,class:`is-current`,onClick:t[2]||=e=>_(`/`)},`首页`),B(`button`,{type:`button`,onClick:t[3]||=e=>v(`hz-exams`)},`考试报名`),B(`button`,{type:`button`,onClick:t[4]||=e=>_(`/announcements`)},`通知公告`),B(`button`,{type:`button`,onClick:t[5]||=e=>_(`/verify`)},`防伪查询`),B(`button`,{type:`button`,onClick:t[6]||=e=>v(`hz-guide`)},`办事指南`)],2),B(`div`,Xl,[B(`button`,{class:`hz-account-link`,type:`button`,onClick:t[7]||=e=>_(N(Ul)(d.value))},O(m.value),1),d.value?(R(),z(`button`,{key:0,class:`hz-exit-link`,type:`button`,onClick:t[8]||=e=>r(`logout`)},`退出`)):U(``,!0),B(`button`,{class:`hz-menu`,type:`button`,"aria-expanded":i.value,"aria-label":`打开导航`,onClick:t[9]||=e=>i.value=!i.value},[...t[25]||=[B(`span`,null,null,-1),B(`span`,null,null,-1),B(`span`,null,null,-1)]],8,Zl)])])]),B(`main`,Ql,[B(`section`,$l,[B(`div`,eu,[p.value?(R(),z(`button`,{key:0,class:`hz-latest`,type:`button`,onClick:t[10]||=e=>_(`/announcements/${p.value.id}`)},[t[26]||=B(`span`,null,`最新发布`,-1),B(`strong`,null,O(p.value.title),1),B(`time`,null,O(N(Rl)(p.value.publishAt)),1),t[27]||=B(`i`,{"aria-hidden":`true`},`→`,-1)])):U(``,!0),B(`div`,tu,[B(`div`,nu,[t[29]||=B(`p`,{class:`hz-kicker`},`统一入口 · 规范办理 · 全程留痕`,-1),B(`h1`,null,[H(O(u.value.heroTitle||`让每一次考试办理,`)+` `,1),B(`em`,null,O(u.value.heroHighlight||`都有清晰、可信的依据。`),1)]),B(`p`,ru,O(u.value.heroDescription||`面向考生、学校和考试管理机构,统一提供报名、准考证、成绩、录取与公开信息服务。`),1),B(`div`,iu,[B(`button`,{class:`hz-button hz-button--primary`,type:`button`,onClick:t[11]||=e=>_(h.value)},[H(O(g.value),1),t[28]||=B(`span`,{"aria-hidden":`true`},`→`,-1)]),B(`button`,{class:`hz-button hz-button--secondary`,type:`button`,onClick:t[12]||=e=>v(`hz-exams`)},` 查看已发布考试 `)]),t[30]||=B(`dl`,{class:`hz-trust-list`},[B(`div`,null,[B(`dt`,null,`账户原则`),B(`dd`,null,`一个报名号长期使用`)]),B(`div`,null,[B(`dt`,null,`信息原则`),B(`dd`,null,`以平台正式发布为准`)]),B(`div`,null,[B(`dt`,null,`安全原则`),B(`dd`,null,`重要文书支持在线核验`)])],-1)]),f.value?(R(),z(`aside`,au,[B(`header`,null,[B(`div`,null,[t[31]||=B(`span`,null,`重点考试`,-1),B(`small`,null,O(f.value.code),1)]),B(`em`,{class:_e(`is-${f.value.registrationState}`)},O(N(Bl)(f.value.registrationState)),3)]),B(`div`,ou,[t[35]||=B(`p`,null,`EXAMINATION NOTICE`,-1),B(`h2`,null,O(f.value.name),1),B(`dl`,null,[B(`div`,null,[t[32]||=B(`dt`,null,`报名时间`,-1),B(`dd`,null,O(N(zl)(f.value.registrationStart,f.value.registrationEnd)),1)]),B(`div`,null,[t[33]||=B(`dt`,null,`考试时间`,-1),B(`dd`,null,O(N(zl)(f.value.examStart,f.value.examEnd)),1)]),B(`div`,null,[t[34]||=B(`dt`,null,`考试地点`,-1),B(`dd`,null,O(f.value.location||`以准考证公布为准`),1)])]),B(`div`,su,[(R(!0),z(L,null,I(f.value.subjects?.slice(0,5),e=>(R(),z(`span`,{key:e.id||e.name},O(e.name),1))),128)),f.value.subjects?.length>5?(R(),z(`span`,cu,`+`+O(f.value.subjects.length-5),1)):U(``,!0)])]),B(`footer`,null,[B(`p`,null,[B(`strong`,null,O(b(f.value.registrationCount)),1),t[36]||=B(`span`,null,`人已报名`,-1)]),B(`button`,{type:`button`,onClick:y},O(f.value.registrationState===`open`?`办理报名`:`查看考试`)+` →`,1)])])):(R(),z(`aside`,lu,[...t[37]||=[B(`span`,null,`考试发布栏`,-1),B(`h2`,null,`当前暂无已发布考试`,-1),B(`p`,null,`新考试发布后,将在此展示报名时间、考试安排和办理入口。`,-1)]]))])])]),B(`section`,uu,[B(`div`,du,[t[43]||=B(`div`,{class:`hz-section-heading hz-section-heading--compact`},[B(`div`,null,[B(`p`,null,`ONLINE SERVICES`),B(`h2`,{id:`hz-entry-title`},`常用服务`)]),B(`span`,null,`按事项进入,减少查找和重复填写`)],-1),B(`div`,fu,[B(`button`,{type:`button`,onClick:t[13]||=e=>_(h.value)},[t[38]||=B(`span`,{class:`hz-service-grid__index`},`01`,-1),B(`strong`,null,O(d.value?`个人业务中心`:`报名号登录`),1),B(`small`,null,O(d.value?`继续办理当前账户下的考试事项`:`使用固定报名号进入考生服务`),1),t[39]||=B(`i`,null,`进入服务 →`,-1)]),B(`button`,{type:`button`,onClick:t[14]||=e=>v(`hz-exams`)},[...t[40]||=[B(`span`,{class:`hz-service-grid__index`},`02`,-1),B(`strong`,null,`考试报名`,-1),B(`small`,null,`查看开放考试、报名日期与科目安排`,-1),B(`i`,null,`查看考试 →`,-1)]]),B(`button`,{type:`button`,onClick:t[15]||=e=>_(d.value?.role===`candidate`?`/candidate/results`:`/auth/login`)},[...t[41]||=[B(`span`,{class:`hz-service-grid__index`},`03`,-1),B(`strong`,null,`成绩与准考证`,-1),B(`small`,null,`下载准考证,查询已正式发布的成绩`,-1),B(`i`,null,`办理查询 →`,-1)]]),B(`button`,{type:`button`,onClick:t[16]||=e=>_(`/verify`)},[...t[42]||=[B(`span`,{class:`hz-service-grid__index`},`04`,-1),B(`strong`,null,`文书防伪核验`,-1),B(`small`,null,`核对成绩单、录取通知书签发记录`,-1),B(`i`,null,`立即核验 →`,-1)]])])])]),B(`section`,pu,[B(`div`,mu,[B(`div`,hu,[B(`div`,gu,[t[44]||=B(`div`,null,[B(`p`,null,`PUBLIC INFORMATION`),B(`h2`,null,`通知公告`)],-1),B(`button`,{type:`button`,onClick:t[17]||=e=>_(`/announcements`)},`查看全部 →`)]),p.value?(R(),z(`article`,_u,[B(`div`,null,[B(`span`,null,O(p.value.category||`通知公告`),1),B(`time`,null,O(N(Rl)(p.value.publishAt)),1)]),B(`h3`,null,O(p.value.title),1),B(`p`,null,O(p.value.summary||`请进入公告正文查看完整内容和办理要求。`),1),B(`button`,{type:`button`,onClick:t[18]||=e=>_(`/announcements/${p.value.id}`)},[...t[45]||=[H(`阅读全文 `,-1),B(`span`,null,`→`,-1)]])])):(R(),z(`div`,vu,`当前暂无通知公告`)),B(`div`,yu,[(R(!0),z(L,null,I(o.value.slice(1,5),e=>(R(),z(`button`,{key:e.id,type:`button`,onClick:t=>_(`/announcements/${e.id}`)},[B(`time`,null,[B(`strong`,null,O(String(new Date(e.publishAt).getDate()).padStart(2,`0`)),1),B(`span`,null,O(new Date(e.publishAt).toLocaleDateString(`zh-CN`,{year:`numeric`,month:`2-digit`}).replace(`/`,`.`)),1)]),B(`span`,null,[B(`em`,null,O(e.category||`通知`),1),B(`strong`,null,O(e.title),1)]),t[46]||=B(`i`,null,`→`,-1)],8,bu))),128))])]),B(`aside`,xu,[t[55]||=B(`header`,null,[B(`span`,null,`服务概况`),B(`small`,null,`数据随业务实时更新`)],-1),B(`dl`,null,[B(`div`,null,[t[48]||=B(`dt`,null,`在册考生`,-1),B(`dd`,null,[H(O(b(c.value.candidates)),1),t[47]||=B(`small`,null,`人`,-1)])]),B(`div`,null,[t[50]||=B(`dt`,null,`累计报名记录`,-1),B(`dd`,null,[H(O(b(c.value.registrations)),1),t[49]||=B(`small`,null,`条`,-1)])]),B(`div`,null,[t[52]||=B(`dt`,null,`当前开放考试`,-1),B(`dd`,null,[H(O(b(c.value.exams)),1),t[51]||=B(`small`,null,`项`,-1)])])]),B(`section`,null,[t[53]||=B(`strong`,null,`公开信息说明`,-1),t[54]||=B(`p`,null,`考试安排、录取公示及其他重要事项,以平台通知公告栏目正式发布内容为准。`,-1),B(`button`,{type:`button`,onClick:t[19]||=e=>_(`/announcements`)},`进入公开信息目录`)])])])]),B(`section`,Su,[B(`div`,Cu,[t[59]||=B(`div`,{class:`hz-section-heading`},[B(`div`,null,[B(`p`,null,`EXAMINATIONS`),B(`h2`,null,`已发布考试`)]),B(`span`,null,`登录后按考试要求选择科目并提交报名`)],-1),s.value.length?(R(),z(`div`,wu,[(R(!0),z(L,null,I(s.value,e=>(R(),z(`article`,{key:e.id,class:`hz-exam-card`},[B(`header`,null,[B(`span`,null,O(e.code),1),B(`em`,{class:_e(`is-${e.registrationState}`)},O(N(Bl)(e.registrationState)),3)]),B(`h3`,null,O(e.name),1),B(`p`,null,O(e.description||`考试具体安排与报名要求请以正式通知为准。`),1),B(`dl`,null,[B(`div`,null,[t[56]||=B(`dt`,null,`报名日期`,-1),B(`dd`,null,O(N(zl)(e.registrationStart,e.registrationEnd)),1)]),B(`div`,null,[t[57]||=B(`dt`,null,`考试日期`,-1),B(`dd`,null,O(N(zl)(e.examStart,e.examEnd)),1)]),B(`div`,null,[t[58]||=B(`dt`,null,`科目`,-1),B(`dd`,null,O(e.subjects?.length||0)+` 科 · 总分 `+O(e.totalScore||0)+` 分`,1)])]),B(`footer`,null,[B(`span`,null,O(b(e.registrationCount))+` 人已报名`,1),B(`button`,{type:`button`,onClick:y},O(e.registrationState===`open`?`选择科目报名`:`查看考试`)+` →`,1)])]))),128))])):(R(),z(`div`,Tu,`当前没有已发布的考试,请留意通知公告。`))])]),t[60]||=wa(`

办事指南

一个报名号,贯穿完整考试服务

报名号是考生的长期账户。每场考试新增报名记录,不重复创建个人账户。
  1. 1
    领取报名号

    由学校创建,或在开放自主注册时在线申请。

  2. 2
    完善个人资料

    首次登录修改密码,并按要求提交真实资料。

  3. 3
    选择考试科目

    资料审核通过后,在开放期内完成报名。

  4. 4
    办理后续事项

    使用同一报名号下载准考证、查分和查看录取。

`,1)]),B(`footer`,Eu,[B(`div`,Du,[t[64]||=B(`div`,{class:`hz-footer__brand`},[B(`span`,{class:`hz-brand__seal`,"aria-hidden":`true`},`衡`),B(`div`,null,[B(`strong`,null,`衡准考试服务`),B(`small`,null,`规范 · 准确 · 可追溯`)])],-1),B(`dl`,null,[B(`div`,null,[t[61]||=B(`dt`,null,`主管单位`,-1),B(`dd`,null,O(l.value.name||`考试信息管理机构`),1)]),l.value.phone?(R(),z(`div`,Ou,[t[62]||=B(`dt`,null,`咨询电话`,-1),B(`dd`,null,O(l.value.phone),1)])):U(``,!0),l.value.address?(R(),z(`div`,ku,[t[63]||=B(`dt`,null,`联系地址`,-1),B(`dd`,null,O(l.value.address),1)])):U(``,!0)]),B(`div`,Au,[B(`button`,{type:`button`,onClick:t[20]||=e=>_(`/announcements`)},`通知公告`),B(`button`,{type:`button`,onClick:t[21]||=e=>_(`/verify`)},`文书核验`),B(`button`,{type:`button`,onClick:t[22]||=e=>_(`/auth/login`)},`服务登录`)])]),B(`div`,ju,[B(`div`,Mu,[B(`span`,null,O(u.value.footerNotice||`公开信息以本平台正式发布内容为准`),1),t[65]||=B(`span`,null,`请勿在非官方页面提交密码或验证码`,-1)])])])]))}},Pu={__name:`HomeView`,setup(e){async function t(){await Q.logout()}return(e,n)=>(R(),ga(Nu,{"public-data":N(Q).state.publicData,session:N(Q).state,onLogout:t},null,8,[`public-data`,`session`]))}},Fu={class:`public-frame`},Iu={class:`public-frame__utility`},Lu={class:`app-container`},Ru={key:0},zu={class:`public-frame__header`},Bu={class:`app-container`},Vu={class:`public-frame__actions`},Hu=[`aria-expanded`],Uu={class:`public-frame__main`},Wu={class:`public-frame__footer`},Gu={class:`app-container`},Ku={__name:`PublicFrame`,setup(e){let t=Ls(),n=M(!1),r=W(()=>Q.state.publicData.organization||{});async function i(){await Q.logout(),await t.push(`/`)}return(e,t)=>(R(),z(`div`,Fu,[B(`div`,Iu,[B(`div`,Lu,[t[2]||=B(`span`,null,`考试信息公共服务平台`,-1),r.value.phone?(R(),z(`span`,Ru,`咨询电话:`+O(r.value.phone),1)):U(``,!0)])]),B(`header`,zu,[B(`div`,Bu,[V(N(pl),{class:`app-brand`,to:`/`,onClick:t[0]||=e=>n.value=!1},{default:P(()=>[...t[3]||=[B(`span`,null,`衡`,-1),B(`div`,null,[B(`strong`,null,`衡准考试服务`),B(`small`,null,`EXAMINATION INFORMATION SERVICE`)],-1)]]),_:1}),B(`nav`,{class:_e({"is-open":n.value}),"aria-label":`公共服务导航`},[V(N(pl),{to:`/`},{default:P(()=>[...t[4]||=[H(`首页`,-1)]]),_:1}),V(N(pl),{to:`/announcements`},{default:P(()=>[...t[5]||=[H(`通知公告`,-1)]]),_:1}),V(N(pl),{to:`/verify`},{default:P(()=>[...t[6]||=[H(`文书核验`,-1)]]),_:1})],2),B(`div`,Vu,[N(Q).state.user?(R(),ga(N(pl),{key:1,class:`app-button app-button--primary`,to:N(Q).homeFor()},{default:P(()=>[...t[8]||=[H(`进入业务中心`,-1)]]),_:1},8,[`to`])):(R(),ga(N(pl),{key:0,class:`app-button app-button--primary`,to:`/auth/login`},{default:P(()=>[...t[7]||=[H(`登录`,-1)]]),_:1})),N(Q).state.user?(R(),z(`button`,{key:2,class:`app-link-button`,type:`button`,onClick:i},`退出`)):U(``,!0),B(`button`,{class:`public-frame__menu`,type:`button`,"aria-expanded":n.value,"aria-label":`打开导航`,onClick:t[1]||=e=>n.value=!n.value},`☰`,8,Hu)])])]),B(`main`,Uu,[Kr(e.$slots,`default`)]),B(`footer`,Wu,[B(`div`,Gu,[B(`div`,null,[B(`strong`,null,O(r.value.name||`考试信息管理机构`),1),B(`span`,null,O(r.value.address||`统一考试公共服务平台`),1)]),t[9]||=B(`span`,null,`公开信息以本平台正式发布内容为准`,-1)])])]))}},qu={key:0,class:`page-state page-state--loading`,role:`status`},Ju={key:1,class:`page-state page-state--error`},Yu={key:2,class:`page-state page-state--empty`},Xu={__name:`PageState`,props:{loading:Boolean,error:{type:String,default:``},empty:Boolean,emptyTitle:{type:String,default:`暂无数据`},emptyText:{type:String,default:`当前没有可显示的业务记录。`}},emits:[`retry`],setup(e){return(t,n)=>e.loading?(R(),z(`div`,qu,[...n[1]||=[B(`i`,null,null,-1),B(`strong`,null,`正在读取数据`,-1)]])):e.error?(R(),z(`div`,Ju,[n[2]||=B(`span`,null,`!`,-1),n[3]||=B(`strong`,null,`页面加载失败`,-1),B(`p`,null,O(e.error),1),B(`button`,{type:`button`,onClick:n[0]||=e=>t.$emit(`retry`)},`重新加载`)])):e.empty?(R(),z(`div`,Yu,[B(`strong`,null,O(e.emptyTitle),1),B(`p`,null,O(e.emptyText),1)])):Kr(t.$slots,`default`,{},void 0,void 0,3)}};function Zu(e,t={}){let n=(e.notices||[]).filter(e=>!String(e.id).startsWith(`system-`)).map(e=>({...e,documentId:String(e.id),documentType:`notice`,subtype:e.category||`通知公告`,publishedAt:e.publishAt})),r=(t.plans||[]).map(e=>({...e,documentId:`plan-${e.id}`,documentType:`plan`,category:`招生公示`,subtype:`招生计划`,title:`${e.examName} · ${e.schoolName}招生计划公示`,summary:`共 ${e.rows?.reduce((e,t)=>e+Number(t.quota||0),0)||0} 个招生名额。`})),i=(t.qualifications||[]).map(e=>({...e,documentId:`qualification-${e.id}`,documentType:`qualification`,category:`录取公示`,subtype:`指标资格`,title:`${e.examName} · ${e.schoolName}指标分配资格公示`,summary:`公开 ${e.rows?.length||0} 名考生的指标分配资格。`})),a=(t.admissions||[]).map(e=>({...e,documentId:`admission-${e.id}`,documentType:`admission`,category:`录取公示`,subtype:e.round?`第 ${e.round} 轮录取名单`:`最终录取名单`,title:e.title||`${e.examName}最终录取名单`,summary:`共 ${e.rows?.length||0} 名考生正式录取。`})),o=(t.cutoffs||[]).map(e=>({...e,documentId:`cutoff-${e.id}`,documentType:`cutoff`,category:`录取公示`,subtype:`录取分数线`,title:`${e.examName}录取分数线`,summary:`公布 ${e.rows?.length||0} 条学校及类别录取分数线。`})),s=(t.reports||[]).map(e=>({...e,documentId:`reporting-${e.id}`,documentType:`reporting`,category:`录取公示`,subtype:e.supplementDecision===`supplement`?`报到与补录`:`报到情况`}));return[...n,...r,...i,...a,...o,...s].sort((e,t)=>new Date(t.publishedAt)-new Date(e.publishedAt))}var Qu={class:`app-container public-directory`},$u={class:`public-directory__filters`},ed=[`onClick`],td={class:`public-directory__content`},nd={class:`directory-toolbar`},rd={class:`directory-list`},id=[`onClick`],ad={key:0,class:`page-state page-state--empty`},od={key:0,class:`app-pagination`,"aria-label":`公告分页`},sd=[`disabled`],cd=[`disabled`],ld=10,ud={__name:`AnnouncementListView`,setup(e){let t=Ls(),n=M(!0),r=M(``),i=M([]),a=M(``),o=M(`全部`),s=M(1),c=W(()=>[`全部`,...new Set(i.value.map(e=>e.category||`通知公告`))]),l=W(()=>{let e=a.value.trim().toLowerCase();return i.value.filter(t=>(o.value===`全部`||t.category===o.value)&&(!e||[t.title,t.summary,t.category,t.subtype].join(` `).toLowerCase().includes(e)))}),u=W(()=>Math.max(1,Math.ceil(l.value.length/ld))),d=W(()=>l.value.slice((s.value-1)*ld,s.value*ld));async function f(){n.value=!0,r.value=``;try{let e=await X(`/api/public/announcements`);i.value=Zu(Q.state.publicData,e)}catch(e){r.value=e.message}finally{n.value=!1}}function p(e){o.value=e,s.value=1}function m(){s.value=1}return jr(f),(e,h)=>(R(),ga(Ku,null,{default:P(()=>[h[7]||=B(`section`,{class:`public-page-head`},[B(`div`,{class:`app-container`},[B(`p`,null,`PUBLIC RECORDS`),B(`h1`,null,`通知公告与公开公示`),B(`span`,null,`考试通知、成绩发布、招生计划和录取公示统一归档。`)])],-1),B(`section`,Qu,[V(Xu,{loading:n.value,error:r.value,empty:!i.value.length,onRetry:f},{default:P(()=>[B(`aside`,$u,[h[3]||=B(`strong`,null,`信息分类`,-1),(R(!0),z(L,null,I(c.value,e=>(R(),z(`button`,{key:e,class:_e({active:o.value===e}),type:`button`,onClick:t=>p(e)},[H(O(e),1),B(`span`,null,O(e===`全部`?i.value.length:i.value.filter(t=>t.category===e).length),1)],10,ed))),128))]),B(`div`,td,[B(`div`,nd,[B(`label`,null,[h[4]||=B(`span`,null,`搜索公开信息`,-1),F(B(`input`,{"onUpdate:modelValue":h[0]||=e=>a.value=e,placeholder:`输入标题、分类或摘要`,onInput:m},null,544),[[G,a.value]])]),B(`small`,null,`共 `+O(l.value.length)+` 条`,1)]),B(`div`,rd,[(R(!0),z(L,null,I(d.value,e=>(R(),z(`button`,{key:e.documentId,type:`button`,onClick:n=>N(t).push(`/announcements/${e.documentId}`)},[B(`time`,null,[B(`strong`,null,O(String(new Date(e.publishedAt).getDate()).padStart(2,`0`)),1),B(`span`,null,O(N(Rl)(e.publishedAt).slice(0,7)),1)]),B(`span`,null,[B(`em`,null,O(e.subtype),1),B(`strong`,null,O(e.title),1),B(`small`,null,O(e.summary||`进入查看完整公开内容`),1)]),h[5]||=B(`i`,null,`→`,-1)],8,id))),128)),d.value.length?U(``,!0):(R(),z(`div`,ad,[...h[6]||=[B(`strong`,null,`没有符合条件的信息`,-1),B(`p`,null,`请调整分类或搜索关键词。`,-1)]]))]),u.value>1?(R(),z(`nav`,od,[B(`button`,{type:`button`,disabled:s.value<=1,onClick:h[1]||=e=>s.value--},`上一页`,8,sd),B(`span`,null,`第 `+O(s.value)+` / `+O(u.value)+` 页`,1),B(`button`,{type:`button`,disabled:s.value>=u.value,onClick:h[2]||=e=>s.value++},`下一页`,8,cd)])):U(``,!0)])]),_:1},8,[`loading`,`error`,`empty`])])]),_:1}))}},$={__name:`StatusBadge`,props:{value:{type:[String,Boolean,Number],default:``}},setup(e){let t=e,n={approved:`已通过`,pending:`待处理`,rejected:`已退回`,draft:`草稿`,published:`已发布`,open:`开放中`,upcoming:`即将开放`,closed:`已结束`,archived:`已归档`,completed:`已完成`,active:`正常`,disabled:`已停用`,unpaid:`未缴费`,paid:`已缴费`,final:`正式录取`,school_review:`学校审核`,withdrawal_pending:`退档待审`,reported:`已报到`,not_reported:`未报到`};return(e,r)=>(R(),z(`span`,{class:_e([`status-badge`,`is-${String(t.value).replaceAll(`_`,`-`)}`])},O(n[t.value]||t.value||`—`),3))}},dd={class:`app-container document-page`},fd={key:0,class:`public-document`},pd=[`innerHTML`],md={key:1,class:`document-reporting`},hd={class:`record-metrics`},gd={key:2,class:`document-table-wrap`},_d={key:0},vd={key:1},yd={key:2},bd={key:3},xd={__name:`AnnouncementDetailView`,setup(e){let t=Rs(),n=Ls(),r=M(!0),i=M(``),a=M(null);async function o(){r.value=!0,i.value=``;try{let e=String(t.params.id),n=await X(`/api/public/announcements`);if(a.value=Zu(Q.state.publicData,n).find(t=>t.documentId===e)||null,a.value?.documentType===`notice`){let t=await X(`/api/public/notices/${encodeURIComponent(e)}`);a.value={...a.value,...t.notice}}if(!a.value)throw Error(`公告不存在或尚未公开`)}catch(e){i.value=e.message}finally{r.value=!1}}return jr(o),(e,t)=>(R(),ga(Ku,null,{default:P(()=>[B(`section`,dd,[B(`button`,{class:`document-page__back`,type:`button`,onClick:t[0]||=e=>N(n).push(`/announcements`)},`← 返回公开信息目录`),V(Xu,{loading:r.value,error:i.value,onRetry:o},{default:P(()=>[a.value?(R(),z(`article`,fd,[B(`header`,null,[B(`span`,null,O(a.value.category)+` · `+O(a.value.subtype),1),B(`h1`,null,O(a.value.title),1),B(`p`,null,[H(O(N(Rl)(a.value.publishedAt||a.value.publishAt,!0)),1),a.value.author?(R(),z(L,{key:0},[H(` · `+O(a.value.author),1)],64)):U(``,!0)])]),a.value.documentType===`notice`?(R(),z(`section`,{key:0,class:`document-richtext`,innerHTML:a.value.contentHtml||`

${String(a.value.content||``).replaceAll(` -`,`

`)}

`},null,8,pd)):a.value.documentType===`reporting`?(R(),z(`section`,md,[B(`div`,hd,[B(`article`,null,[t[1]||=B(`span`,null,`招生计划`,-1),B(`strong`,null,O(a.value.statistics?.totalQuota||0),1)]),B(`article`,null,[t[2]||=B(`span`,null,`正式录取`,-1),B(`strong`,null,O(a.value.statistics?.finalCount||0),1)]),B(`article`,null,[t[3]||=B(`span`,null,`已报到`,-1),B(`strong`,null,O(a.value.statistics?.reportedCount||0),1)]),B(`article`,null,[t[4]||=B(`span`,null,`完成率`,-1),B(`strong`,null,O(a.value.statistics?.reportingRate||0)+`%`,1)])]),B(`p`,null,O(a.value.decisionNote||a.value.summary),1)])):(R(),z(`section`,gd,[B(`p`,null,O(a.value.summary),1),a.value.documentType===`plan`?(R(),z(`table`,_d,[t[5]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`类别代码`),B(`th`,null,`招生类别`),B(`th`,null,`计划人数`),B(`th`,null,`定向指标`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(a.value.rows,e=>(R(),z(`tr`,{key:e.code},[B(`td`,null,O(e.code),1),B(`td`,null,O(e.name),1),B(`td`,null,O(e.quota),1),B(`td`,null,O(e.indicatorQuota||0),1)]))),128))])])):a.value.documentType===`qualification`?(R(),z(`table`,vd,[t[6]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`报名号`),B(`th`,null,`姓名`),B(`th`,null,`指标资格`),B(`th`,null,`特长类型`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(a.value.rows,e=>(R(),z(`tr`,{key:e.registrationNumber},[B(`td`,null,O(e.registrationNumber),1),B(`td`,null,O(e.name),1),B(`td`,null,[V($,{value:e.eligible?`approved`:`rejected`},null,8,[`value`])]),B(`td`,null,O(e.specialtyLabel||`普通生`),1)]))),128))])])):a.value.documentType===`admission`?(R(),z(`table`,yd,[t[7]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`报名号`),B(`th`,null,`姓名`),B(`th`,null,`总成绩`),B(`th`,null,`录取学校`),B(`th`,null,`录取类别`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(a.value.rows,e=>(R(),z(`tr`,{key:e.registrationNumber},[B(`td`,null,O(e.registrationNumber),1),B(`td`,null,O(e.name),1),B(`td`,null,O(e.totalScore),1),B(`td`,null,O(e.admittedSchool),1),B(`td`,null,O(e.categoryName),1)]))),128))])])):(R(),z(`table`,bd,[t[8]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`招生学校`),B(`th`,null,`招生类别`),B(`th`,null,`计划数`),B(`th`,null,`录取数`),B(`th`,null,`最高分`),B(`th`,null,`分数线`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(a.value.rows,e=>(R(),z(`tr`,{key:`${e.schoolName}-${e.categoryName}`},[B(`td`,null,O(e.schoolName),1),B(`td`,null,O(e.categoryName),1),B(`td`,null,O(e.planQuota),1),B(`td`,null,O(e.admittedCount),1),B(`td`,null,O(e.highestScore),1),B(`td`,null,[B(`strong`,null,O(e.cutoffScore),1)])]))),128))])]))]))])):U(``,!0)]),_:1},8,[`loading`,`error`])])]),_:1}))}},Sd={class:`verification-page app-container`},Cd=[`disabled`],wd={key:0,class:`verification-result is-valid`},Td={key:0},Ed={key:1,class:`verification-result is-invalid`},Dd={__name:`VerificationView`,setup(e){let t=Rs(),n=Ls(),r=M(String(t.params.code||``)),i=M(!1),a=M(null),o=M(``);async function s(e=r.value){let s=e.trim().toUpperCase();if(s){if(String(t.params.code||``)!==s){await n.push(`/verify/${encodeURIComponent(s)}`);return}i.value=!0,a.value=null,o.value=``;try{a.value=await X(`/api/public/verifications/${encodeURIComponent(s)}`)}catch(e){o.value=e.message}finally{i.value=!1}}}return Ln(()=>t.params.code,e=>{r.value=String(e||``),e&&s(String(e))}),jr(()=>{t.params.code&&s(String(t.params.code))}),(e,t)=>(R(),ga(Ku,null,{default:P(()=>[B(`section`,Sd,[t[13]||=B(`div`,{class:`verification-page__intro`},[B(`p`,null,`DOCUMENT AUTHENTICITY`),B(`h1`,null,`文书防伪查询`),B(`span`,null,`核对成绩单和录取通知书的系统签发记录。`)],-1),B(`form`,{class:`verification-form`,onSubmit:t[1]||=q(e=>s(),[`prevent`])},[B(`label`,null,[t[2]||=B(`span`,null,`防伪查询码`,-1),F(B(`input`,{"onUpdate:modelValue":t[0]||=e=>r.value=e,required:``,autocomplete:`off`,placeholder:`例如 SR-XXXXXXXXXXXXXXXXXXXXXXXX`},null,512),[[G,r.value]])]),B(`button`,{type:`submit`,disabled:i.value},O(i.value?`正在核验…`:`立即核验`),9,Cd)],32),a.value?.document?(R(),z(`section`,wd,[t[8]||=B(`span`,null,`✓`,-1),t[9]||=B(`div`,null,[B(`small`,null,`VERIFIED DOCUMENT`),B(`h2`,null,`文书真实有效`),B(`p`,null,`查询码与系统签发记录一致。`)],-1),B(`dl`,null,[B(`div`,null,[t[3]||=B(`dt`,null,`文书类型`,-1),B(`dd`,null,O(a.value.document.typeName),1)]),B(`div`,null,[t[4]||=B(`dt`,null,`考生`,-1),B(`dd`,null,O(a.value.document.candidateName),1)]),B(`div`,null,[t[5]||=B(`dt`,null,`考试`,-1),B(`dd`,null,O(a.value.document.examName),1)]),a.value.document.schoolName?(R(),z(`div`,Td,[t[6]||=B(`dt`,null,`录取学校`,-1),B(`dd`,null,O(a.value.document.schoolName),1)])):U(``,!0),B(`div`,null,[t[7]||=B(`dt`,null,`签发时间`,-1),B(`dd`,null,O(N(Rl)(a.value.document.issuedAt,!0)),1)])])])):o.value?(R(),z(`section`,Ed,[t[12]||=B(`span`,null,`!`,-1),B(`div`,null,[t[10]||=B(`small`,null,`NOT VERIFIED`,-1),t[11]||=B(`h2`,null,`未找到有效文书`,-1),B(`p`,null,O(o.value),1)])])):U(``,!0),t[14]||=B(`aside`,{class:`verification-safety`},[B(`strong`,null,`安全提示`),B(`p`,null,`查询结果只展示脱敏身份与文书摘要。请勿在非官方页面提交密码或验证码。`)],-1)])]),_:1}))}},Od={class:`auth-view__identity`},kd={class:`auth-view__panel`},Ad={key:0,class:`form-error`},jd={key:2},Md=[`disabled`],Nd={key:4,class:`auth-card__switch`},Pd={key:0,class:`form-error`},Fd={class:`form-grid`},Id=[`value`],Ld=[`value`],Rd=[`disabled`],zd={class:`auth-card__switch`},Bd={key:2,class:`auth-card issued-card`},Vd={key:3,class:`auth-card`},Hd={__name:`AuthView`,props:{mode:{type:String,required:!0}},setup(e){let t=e,n=Rs(),r=Ls(),i=M(!1),a=M(``),o=M(``),s=M(``),c=A({username:``,password:``,code:``}),l=A({name:``,gender:``,schoolId:``,classId:``,password:``}),u=W(()=>Q.state.publicData.schools||[]),d=W(()=>(Q.state.publicData.classes||[]).filter(e=>e.schoolId===l.schoolId)),f=W(()=>!!Q.state.publicData.selfRegistrationEnabled);async function p(){i.value=!0,a.value=``;try{let e=o.value?await X(`/api/auth/login/totp`,{method:`POST`,body:{challenge:o.value,code:c.code}}):await X(`/api/auth/login`,{method:`POST`,body:{username:c.username,password:c.password}});if(e.requiresTotp){o.value=e.challenge;return}Q.setSession(e),await Q.refreshSession();let t=typeof n.query.redirect==`string`?n.query.redirect:Q.homeFor(e.user);await r.replace(t)}catch(e){a.value=e.message}finally{i.value=!1}}async function m(){i.value=!0,a.value=``;try{let e=await X(`/api/auth/register`,{method:`POST`,body:l});s.value=e.registrationNumber}catch(e){a.value=e.message}finally{i.value=!1}}function h(){document.documentElement.classList.toggle(`auth-login-active`,t.mode===`login`)}return Ln(()=>t.mode,()=>{a.value=``,o.value=``,s.value=``,h()}),jr(h),Fr(()=>document.documentElement.classList.remove(`auth-login-active`)),(t,n)=>(R(),z(`main`,{class:_e([`auth-view`,`auth-view--${e.mode}`])},[B(`section`,Od,[V(N(pl),{class:`app-brand app-brand--light`,to:`/`},{default:P(()=>[...n[10]||=[B(`span`,null,`衡`,-1),B(`div`,null,[B(`strong`,null,`衡准考试服务`),B(`small`,null,`EXAMINATION INFORMATION SERVICE`)],-1)]]),_:1}),B(`div`,null,[n[15]||=B(`p`,null,`CANDIDATE SERVICE`,-1),B(`h1`,null,[e.mode===`login`?(R(),z(L,{key:0},[n[11]||=B(`span`,null,`一个报名号,`,-1),n[12]||=B(`span`,null,`办理每一次考试。`,-1)],64)):(R(),z(L,{key:1},[n[13]||=B(`span`,null,`申请长期使用的`,-1),n[14]||=B(`span`,null,`固定报名号。`,-1)],64))]),n[16]||=B(`span`,null,`报名号就是考生账户,不因考试、科目或年度报名而改变。`,-1)]),n[17]||=B(`small`,null,`统一身份 · 全程留痕 · 文书可核验`,-1)]),B(`section`,kd,[V(N(pl),{class:`auth-view__back`,to:`/`},{default:P(()=>[...n[18]||=[H(`← 返回首页`,-1)]]),_:1}),e.mode===`login`?(R(),z(`form`,{key:0,class:`auth-card`,onSubmit:q(p,[`prevent`])},[B(`p`,null,O(o.value?`SECOND STEP`:`ACCOUNT LOGIN`),1),B(`h2`,null,O(o.value?`输入动态验证码`:`报名号登录`),1),B(`span`,null,O(o.value?`输入验证器当前显示的 6 位验证码,或使用一个恢复码。`:`考生填写报名号和密码;管理员使用管理账号。`),1),a.value?(R(),z(`div`,Ad,O(a.value),1)):U(``,!0),o.value?(R(),z(`label`,jd,[n[21]||=B(`span`,null,`动态验证码或恢复码`,-1),F(B(`input`,{"onUpdate:modelValue":n[2]||=e=>c.code=e,autocomplete:`one-time-code`,required:``,autofocus:``},null,512),[[G,c.code]])])):(R(),z(L,{key:1},[B(`label`,null,[n[19]||=B(`span`,null,`报名号 / 管理员账号`,-1),F(B(`input`,{"onUpdate:modelValue":n[0]||=e=>c.username=e,autocomplete:`username`,required:``},null,512),[[G,c.username]])]),B(`label`,null,[n[20]||=B(`span`,null,`密码`,-1),F(B(`input`,{"onUpdate:modelValue":n[1]||=e=>c.password=e,type:`password`,autocomplete:`current-password`,required:``},null,512),[[G,c.password]])])],64)),B(`button`,{class:`app-button app-button--primary app-button--large`,type:`submit`,disabled:i.value},O(i.value?`正在处理…`:o.value?`验证并登录`:`登录系统`),9,Md),o.value?(R(),z(`button`,{key:3,class:`app-link-button`,type:`button`,onClick:n[3]||=e=>{o.value=``,c.code=``}},`返回账号密码登录`)):U(``,!0),f.value?(R(),z(`p`,Nd,[n[23]||=H(`还没有报名号?`,-1),V(N(pl),{to:`/auth/register`},{default:P(()=>[...n[22]||=[H(`在线申请`,-1)]]),_:1})])):U(``,!0)],32)):f.value&&!s.value?(R(),z(`form`,{key:1,class:`auth-card`,onSubmit:q(m,[`prevent`])},[n[34]||=B(`p`,null,`CANDIDATE NUMBER`,-1),n[35]||=B(`h2`,null,`申请固定报名号`,-1),n[36]||=B(`span`,null,`提交基础学籍范围后,系统会生成长期使用的报名号。`,-1),a.value?(R(),z(`div`,Pd,O(a.value),1)):U(``,!0),B(`div`,Fd,[B(`label`,null,[n[24]||=B(`span`,null,`考生姓名`,-1),F(B(`input`,{"onUpdate:modelValue":n[4]||=e=>l.name=e,required:``},null,512),[[G,l.name]])]),B(`label`,null,[n[26]||=B(`span`,null,`性别`,-1),F(B(`select`,{"onUpdate:modelValue":n[5]||=e=>l.gender=e,required:``},[...n[25]||=[B(`option`,{value:``},`请选择`,-1),B(`option`,null,`男`,-1),B(`option`,null,`女`,-1)]],512),[[K,l.gender]])]),B(`label`,null,[n[28]||=B(`span`,null,`就读学校`,-1),F(B(`select`,{"onUpdate:modelValue":n[6]||=e=>l.schoolId=e,required:``,onChange:n[7]||=e=>l.classId=``},[n[27]||=B(`option`,{value:``},`请选择`,-1),(R(!0),z(L,null,I(u.value,e=>(R(),z(`option`,{key:e.id,value:e.id},O(e.name),9,Id))),128))],544),[[K,l.schoolId]])]),B(`label`,null,[n[30]||=B(`span`,null,`班级`,-1),F(B(`select`,{"onUpdate:modelValue":n[8]||=e=>l.classId=e,required:``},[n[29]||=B(`option`,{value:``},`请选择`,-1),(R(!0),z(L,null,I(d.value,e=>(R(),z(`option`,{key:e.id,value:e.id},O(e.name),9,Ld))),128))],512),[[K,l.classId]])])]),B(`label`,null,[n[31]||=B(`span`,null,`设置登录密码`,-1),F(B(`input`,{"onUpdate:modelValue":n[9]||=e=>l.password=e,type:`password`,minlength:`8`,required:``},null,512),[[G,l.password]])]),B(`button`,{class:`app-button app-button--primary app-button--large`,type:`submit`,disabled:i.value},O(i.value?`正在生成…`:`生成我的报名号`),9,Rd),B(`p`,zd,[n[33]||=H(`已有报名号?`,-1),V(N(pl),{to:`/auth/login`},{default:P(()=>[...n[32]||=[H(`返回登录`,-1)]]),_:1})])],32)):s.value?(R(),z(`section`,Bd,[n[38]||=B(`p`,null,`CANDIDATE NUMBER`,-1),n[39]||=B(`h2`,null,`请保存你的报名号`,-1),B(`strong`,null,O(s.value),1),n[40]||=B(`span`,null,`以后报名不同考试仍使用这个号码,请立即抄写并安全保存。`,-1),V(N(pl),{class:`app-button app-button--primary app-button--large`,to:`/auth/login`},{default:P(()=>[...n[37]||=[H(`前往登录`,-1)]]),_:1})])):(R(),z(`section`,Vd,[n[42]||=B(`p`,null,`REGISTRATION CLOSED`,-1),n[43]||=B(`h2`,null,`自主注册暂未开放`,-1),n[44]||=B(`span`,null,`请联系学校领取报名号和初始密码。`,-1),V(N(pl),{class:`app-button app-button--primary app-button--large`,to:`/auth/login`},{default:P(()=>[...n[41]||=[H(`返回登录`,-1)]]),_:1})]))])],2))}},Ud=[{page:`dashboard`,label:`总览`,group:`个人总览`},{page:`profile`,label:`个人资料`,group:`账户与档案`},{page:`security`,label:`账户安全`,group:`账户与档案`},{page:`exams`,label:`考试报名`,group:`考试服务`},{page:`registrations`,label:`我的报名`,group:`考试服务`},{page:`admit`,label:`准考证`,group:`考试服务`},{page:`results`,label:`成绩查询`,group:`考试服务`},{page:`admissions`,label:`志愿与录取`,group:`招生录取`},{page:`notices`,label:`通知公告`,group:`招生录取`}],Wd=[{page:`dashboard`,label:`工作台`,group:`运行总览`,levels:[`super`,`school`,`class`]},{page:`schools`,label:`学校管理`,group:`组织与账户`,levels:[`super`]},{page:`organization`,label:`本校组织`,group:`组织与账户`,levels:[`school`]},{page:`admins`,label:`管理员`,group:`组织与账户`,levels:[`super`]},{page:`account-batches`,label:`批量建号`,group:`组织与账户`,levels:[`school`]},{page:`candidates`,label:`考生信息`,group:`报名考务`,levels:[`super`,`school`,`class`]},{page:`indicator-qualifications`,label:`指标资格确认`,group:`招生录取`,levels:[`school`]},{page:`registrations`,label:`报名审核`,group:`报名考务`,levels:[`super`,`school`,`class`]},{page:`payments`,label:`缴费名单`,group:`报名考务`,levels:[`super`,`school`,`class`]},{page:`admit`,label:`准考证`,group:`报名考务`,levels:[`super`,`school`,`class`]},{page:`exams`,label:`考试与科目`,group:`考试与成绩`,levels:[`super`]},{page:`results`,label:`成绩管理`,group:`考试与成绩`,levels:[`super`,`school`,`class`]},{page:`admission-settings`,label:`录取设置`,group:`招生录取`,levels:[`super`]},{page:`admission-accounts`,label:`招生账户`,group:`招生录取`,levels:[`super`]},{page:`admission-plans`,label:`招生计划`,group:`招生录取`,levels:[`super`]},{page:`admission-reporting`,label:`报到与补录`,group:`招生录取`,levels:[`super`]},{page:`admission-supervision`,label:`投档监督`,group:`招生录取`,levels:[`super`]},{page:`notices`,label:`通知发布`,group:`公开信息`,levels:[`super`]},{page:`centers`,label:`考场信息`,group:`场所与流程`,levels:[`super`,`school`]},{page:`flows`,label:`流程中心`,group:`场所与流程`,levels:[`super`,`school`,`class`]},{page:`flow-design`,label:`流程设计`,group:`系统配置`,levels:[`super`]},{page:`number-rules`,label:`报名号规则`,group:`系统配置`,levels:[`super`]},{page:`security`,label:`账户安全`,group:`系统配置`,levels:[`super`,`school`,`class`]}];function Gd(e=`super`){return Wd.filter(t=>t.levels.includes(e))}var Kd=[{page:`dashboard`,label:`工作台`,group:`总览`},{page:`plans`,label:`招生计划`,group:`招生业务`},{page:`placements`,label:`投档审核`,group:`招生业务`},{page:`reporting`,label:`考生报到`,group:`招生业务`},{page:`notice-template`,label:`通知书模板`,group:`文书中心`}];function qd(e,t){return e===`candidate`?Ud:e===`admission_school`?Kd:Gd(t)}function Jd(e,t){return e===`admission_school`?`/admission/${t}`:`/${e}/${t}`}var Yd={class:`portal-shell`},Xd={class:`portal-shell__role`},Zd={"aria-label":`业务导航`},Qd={class:`portal-shell__scope`},$d={class:`portal-shell__main`},ef={class:`portal-shell__topbar`},tf={class:`portal-shell__user`},nf={class:`portal-shell__content`},rf={class:`portal-page-heading`},af={__name:`PortalShell`,props:{role:{type:String,required:!0},page:{type:String,required:!0},title:{type:String,required:!0},description:{type:String,default:``}},setup(e){let t=e,n=Ls(),r=M(!1),i=W(()=>Q.state.user||{}),a=W(()=>qd(t.role,i.value.adminLevel)),o=W(()=>[...new Set(a.value.map(e=>e.group))]),s=W(()=>t.role===`candidate`?`考生中心`:t.role===`admission_school`?`招生学校工作台`:`考试管理后台`),c=W(()=>t.role===`candidate`?`仅本人数据`:t.role===`admission_school`?`仅本校招生数据`:Q.state.scopeLabel||`当前权限范围`);async function l(){await Q.logout(),await n.replace(`/auth/login`)}return(t,n)=>(R(),z(`div`,Yd,[B(`aside`,{class:_e([`portal-shell__sidebar`,{"is-open":r.value}])},[V(N(pl),{class:`portal-shell__brand`,to:`/`},{default:P(()=>[...n[4]||=[B(`span`,null,`衡`,-1),B(`div`,null,[B(`strong`,null,`衡准考试服务`),B(`small`,null,`OPERATIONS CONSOLE`)],-1)]]),_:1}),B(`button`,{class:`portal-shell__close`,type:`button`,"aria-label":`关闭菜单`,onClick:n[0]||=e=>r.value=!1},`×`),B(`p`,Xd,O(s.value),1),B(`nav`,Zd,[(R(!0),z(L,null,I(o.value,t=>(R(),z(`section`,{key:t},[B(`strong`,null,O(t),1),(R(!0),z(L,null,I(a.value.filter(e=>e.group===t),t=>(R(),ga(N(pl),{key:t.page,to:N(Jd)(e.role,t.page),onClick:n[1]||=e=>r.value=!1},{default:P(()=>[B(`span`,null,O(t.label.slice(0,1)),1),H(O(t.label),1)]),_:2},1032,[`to`]))),128))]))),128))]),B(`div`,Qd,[n[5]||=B(`span`,null,`当前数据范围`,-1),B(`strong`,null,O(c.value),1),n[6]||=B(`small`,null,`权限由服务端同步校验`,-1)])],2),r.value?(R(),z(`div`,{key:0,class:`portal-shell__scrim`,onClick:n[2]||=e=>r.value=!1})):U(``,!0),B(`main`,$d,[B(`header`,ef,[B(`button`,{type:`button`,"aria-label":`打开菜单`,onClick:n[3]||=e=>r.value=!0},`☰`),B(`div`,null,[B(`span`,null,O(s.value),1),n[7]||=B(`b`,null,`/`,-1),B(`strong`,null,O(e.title),1)]),B(`div`,tf,[B(`i`,null,O(String(i.value.displayName||`用`).slice(0,1)),1),B(`span`,null,[B(`strong`,null,O(i.value.displayName||i.value.username),1),B(`small`,null,O(c.value),1)]),B(`button`,{type:`button`,title:`退出登录`,onClick:l},`退出`)])]),B(`section`,nf,[B(`header`,rf,[B(`div`,null,[B(`p`,null,O(e.role===`candidate`?`CANDIDATE SERVICE`:e.role===`admission_school`?`SCHOOL ADMISSION`:`EXAM OPERATIONS`),1),B(`h1`,null,O(e.title),1),B(`span`,null,O(e.description),1)]),Kr(t.$slots,`actions`)]),Kr(t.$slots,`default`)])])]))}},of=[{code:`110000`,name:`北京市`,cities:[{code:`110100`,name:`北京市`,districts:[{code:`110101`,name:`东城区`},{code:`110102`,name:`西城区`},{code:`110105`,name:`朝阳区`},{code:`110106`,name:`丰台区`},{code:`110107`,name:`石景山区`},{code:`110108`,name:`海淀区`},{code:`110109`,name:`门头沟区`},{code:`110111`,name:`房山区`},{code:`110112`,name:`通州区`},{code:`110113`,name:`顺义区`},{code:`110114`,name:`昌平区`},{code:`110115`,name:`大兴区`},{code:`110116`,name:`怀柔区`},{code:`110117`,name:`平谷区`},{code:`110118`,name:`密云区`},{code:`110119`,name:`延庆区`}]}]},{code:`120000`,name:`天津市`,cities:[{code:`120100`,name:`天津市`,districts:[{code:`120101`,name:`和平区`},{code:`120102`,name:`河东区`},{code:`120103`,name:`河西区`},{code:`120104`,name:`南开区`},{code:`120105`,name:`河北区`},{code:`120106`,name:`红桥区`},{code:`120110`,name:`东丽区`},{code:`120111`,name:`西青区`},{code:`120112`,name:`津南区`},{code:`120113`,name:`北辰区`},{code:`120114`,name:`武清区`},{code:`120115`,name:`宝坻区`},{code:`120116`,name:`滨海新区`},{code:`120117`,name:`宁河区`},{code:`120118`,name:`静海区`},{code:`120119`,name:`蓟州区`}]}]},{code:`130000`,name:`河北省`,cities:[{code:`130100`,name:`石家庄市`,districts:[{code:`130102`,name:`长安区`},{code:`130104`,name:`桥西区`},{code:`130105`,name:`新华区`},{code:`130107`,name:`井陉矿区`},{code:`130108`,name:`裕华区`},{code:`130109`,name:`藁城区`},{code:`130110`,name:`鹿泉区`},{code:`130111`,name:`栾城区`},{code:`130121`,name:`井陉县`},{code:`130123`,name:`正定县`},{code:`130125`,name:`行唐县`},{code:`130126`,name:`灵寿县`},{code:`130127`,name:`高邑县`},{code:`130128`,name:`深泽县`},{code:`130129`,name:`赞皇县`},{code:`130130`,name:`无极县`},{code:`130131`,name:`平山县`},{code:`130132`,name:`元氏县`},{code:`130133`,name:`赵县`},{code:`130181`,name:`辛集市`},{code:`130183`,name:`晋州市`},{code:`130184`,name:`新乐市`}]},{code:`130200`,name:`唐山市`,districts:[{code:`130202`,name:`路南区`},{code:`130203`,name:`路北区`},{code:`130204`,name:`古冶区`},{code:`130205`,name:`开平区`},{code:`130207`,name:`丰南区`},{code:`130208`,name:`丰润区`},{code:`130209`,name:`曹妃甸区`},{code:`130224`,name:`滦南县`},{code:`130225`,name:`乐亭县`},{code:`130227`,name:`迁西县`},{code:`130229`,name:`玉田县`},{code:`130281`,name:`遵化市`},{code:`130283`,name:`迁安市`},{code:`130284`,name:`滦州市`}]},{code:`130300`,name:`秦皇岛市`,districts:[{code:`130302`,name:`海港区`},{code:`130303`,name:`山海关区`},{code:`130304`,name:`北戴河区`},{code:`130306`,name:`抚宁区`},{code:`130321`,name:`青龙满族自治县`},{code:`130322`,name:`昌黎县`},{code:`130324`,name:`卢龙县`}]},{code:`130400`,name:`邯郸市`,districts:[{code:`130402`,name:`邯山区`},{code:`130403`,name:`丛台区`},{code:`130404`,name:`复兴区`},{code:`130406`,name:`峰峰矿区`},{code:`130407`,name:`肥乡区`},{code:`130408`,name:`永年区`},{code:`130423`,name:`临漳县`},{code:`130424`,name:`成安县`},{code:`130425`,name:`大名县`},{code:`130426`,name:`涉县`},{code:`130427`,name:`磁县`},{code:`130430`,name:`邱县`},{code:`130431`,name:`鸡泽县`},{code:`130432`,name:`广平县`},{code:`130433`,name:`馆陶县`},{code:`130434`,name:`魏县`},{code:`130435`,name:`曲周县`},{code:`130481`,name:`武安市`}]},{code:`130500`,name:`邢台市`,districts:[{code:`130502`,name:`襄都区`},{code:`130503`,name:`信都区`},{code:`130505`,name:`任泽区`},{code:`130506`,name:`南和区`},{code:`130522`,name:`临城县`},{code:`130523`,name:`内丘县`},{code:`130524`,name:`柏乡县`},{code:`130525`,name:`隆尧县`},{code:`130528`,name:`宁晋县`},{code:`130529`,name:`巨鹿县`},{code:`130530`,name:`新河县`},{code:`130531`,name:`广宗县`},{code:`130532`,name:`平乡县`},{code:`130533`,name:`威县`},{code:`130534`,name:`清河县`},{code:`130535`,name:`临西县`},{code:`130581`,name:`南宫市`},{code:`130582`,name:`沙河市`}]},{code:`130600`,name:`保定市`,districts:[{code:`130602`,name:`竞秀区`},{code:`130606`,name:`莲池区`},{code:`130607`,name:`满城区`},{code:`130608`,name:`清苑区`},{code:`130609`,name:`徐水区`},{code:`130623`,name:`涞水县`},{code:`130624`,name:`阜平县`},{code:`130626`,name:`定兴县`},{code:`130627`,name:`唐县`},{code:`130628`,name:`高阳县`},{code:`130629`,name:`容城县`},{code:`130630`,name:`涞源县`},{code:`130631`,name:`望都县`},{code:`130632`,name:`安新县`},{code:`130633`,name:`易县`},{code:`130634`,name:`曲阳县`},{code:`130635`,name:`蠡县`},{code:`130636`,name:`顺平县`},{code:`130637`,name:`博野县`},{code:`130638`,name:`雄县`},{code:`130681`,name:`涿州市`},{code:`130682`,name:`定州市`},{code:`130683`,name:`安国市`},{code:`130684`,name:`高碑店市`}]},{code:`130700`,name:`张家口市`,districts:[{code:`130702`,name:`桥东区`},{code:`130703`,name:`桥西区`},{code:`130705`,name:`宣化区`},{code:`130706`,name:`下花园区`},{code:`130708`,name:`万全区`},{code:`130709`,name:`崇礼区`},{code:`130722`,name:`张北县`},{code:`130723`,name:`康保县`},{code:`130724`,name:`沽源县`},{code:`130725`,name:`尚义县`},{code:`130726`,name:`蔚县`},{code:`130727`,name:`阳原县`},{code:`130728`,name:`怀安县`},{code:`130730`,name:`怀来县`},{code:`130731`,name:`涿鹿县`},{code:`130732`,name:`赤城县`}]},{code:`130800`,name:`承德市`,districts:[{code:`130802`,name:`双桥区`},{code:`130803`,name:`双滦区`},{code:`130804`,name:`鹰手营子矿区`},{code:`130821`,name:`承德县`},{code:`130822`,name:`兴隆县`},{code:`130824`,name:`滦平县`},{code:`130825`,name:`隆化县`},{code:`130826`,name:`丰宁满族自治县`},{code:`130827`,name:`宽城满族自治县`},{code:`130828`,name:`围场满族蒙古族自治县`},{code:`130881`,name:`平泉市`}]},{code:`130900`,name:`沧州市`,districts:[{code:`130902`,name:`新华区`},{code:`130903`,name:`运河区`},{code:`130921`,name:`沧县`},{code:`130922`,name:`青县`},{code:`130923`,name:`东光县`},{code:`130924`,name:`海兴县`},{code:`130925`,name:`盐山县`},{code:`130926`,name:`肃宁县`},{code:`130927`,name:`南皮县`},{code:`130928`,name:`吴桥县`},{code:`130929`,name:`献县`},{code:`130930`,name:`孟村回族自治县`},{code:`130981`,name:`泊头市`},{code:`130982`,name:`任丘市`},{code:`130983`,name:`黄骅市`},{code:`130984`,name:`河间市`}]},{code:`131000`,name:`廊坊市`,districts:[{code:`131002`,name:`安次区`},{code:`131003`,name:`广阳区`},{code:`131022`,name:`固安县`},{code:`131023`,name:`永清县`},{code:`131024`,name:`香河县`},{code:`131025`,name:`大城县`},{code:`131026`,name:`文安县`},{code:`131028`,name:`大厂回族自治县`},{code:`131081`,name:`霸州市`},{code:`131082`,name:`三河市`}]},{code:`131100`,name:`衡水市`,districts:[{code:`131102`,name:`桃城区`},{code:`131103`,name:`冀州区`},{code:`131121`,name:`枣强县`},{code:`131122`,name:`武邑县`},{code:`131123`,name:`武强县`},{code:`131124`,name:`饶阳县`},{code:`131125`,name:`安平县`},{code:`131126`,name:`故城县`},{code:`131127`,name:`景县`},{code:`131128`,name:`阜城县`},{code:`131182`,name:`深州市`}]}]},{code:`140000`,name:`山西省`,cities:[{code:`140100`,name:`太原市`,districts:[{code:`140105`,name:`小店区`},{code:`140106`,name:`迎泽区`},{code:`140107`,name:`杏花岭区`},{code:`140108`,name:`尖草坪区`},{code:`140109`,name:`万柏林区`},{code:`140110`,name:`晋源区`},{code:`140121`,name:`清徐县`},{code:`140122`,name:`阳曲县`},{code:`140123`,name:`娄烦县`},{code:`140181`,name:`古交市`}]},{code:`140200`,name:`大同市`,districts:[{code:`140212`,name:`新荣区`},{code:`140213`,name:`平城区`},{code:`140214`,name:`云冈区`},{code:`140215`,name:`云州区`},{code:`140221`,name:`阳高县`},{code:`140222`,name:`天镇县`},{code:`140223`,name:`广灵县`},{code:`140224`,name:`灵丘县`},{code:`140225`,name:`浑源县`},{code:`140226`,name:`左云县`}]},{code:`140300`,name:`阳泉市`,districts:[{code:`140302`,name:`城区`},{code:`140303`,name:`矿区`},{code:`140311`,name:`郊区`},{code:`140321`,name:`平定县`},{code:`140322`,name:`盂县`}]},{code:`140400`,name:`长治市`,districts:[{code:`140403`,name:`潞州区`},{code:`140404`,name:`上党区`},{code:`140405`,name:`屯留区`},{code:`140406`,name:`潞城区`},{code:`140423`,name:`襄垣县`},{code:`140425`,name:`平顺县`},{code:`140426`,name:`黎城县`},{code:`140427`,name:`壶关县`},{code:`140428`,name:`长子县`},{code:`140429`,name:`武乡县`},{code:`140430`,name:`沁县`},{code:`140431`,name:`沁源县`}]},{code:`140500`,name:`晋城市`,districts:[{code:`140502`,name:`城区`},{code:`140521`,name:`沁水县`},{code:`140522`,name:`阳城县`},{code:`140524`,name:`陵川县`},{code:`140525`,name:`泽州县`},{code:`140581`,name:`高平市`}]},{code:`140600`,name:`朔州市`,districts:[{code:`140602`,name:`朔城区`},{code:`140603`,name:`平鲁区`},{code:`140621`,name:`山阴县`},{code:`140622`,name:`应县`},{code:`140623`,name:`右玉县`},{code:`140681`,name:`怀仁市`}]},{code:`140700`,name:`晋中市`,districts:[{code:`140702`,name:`榆次区`},{code:`140703`,name:`太谷区`},{code:`140721`,name:`榆社县`},{code:`140722`,name:`左权县`},{code:`140723`,name:`和顺县`},{code:`140724`,name:`昔阳县`},{code:`140725`,name:`寿阳县`},{code:`140727`,name:`祁县`},{code:`140728`,name:`平遥县`},{code:`140729`,name:`灵石县`},{code:`140781`,name:`介休市`}]},{code:`140800`,name:`运城市`,districts:[{code:`140802`,name:`盐湖区`},{code:`140821`,name:`临猗县`},{code:`140822`,name:`万荣县`},{code:`140823`,name:`闻喜县`},{code:`140824`,name:`稷山县`},{code:`140825`,name:`新绛县`},{code:`140826`,name:`绛县`},{code:`140827`,name:`垣曲县`},{code:`140828`,name:`夏县`},{code:`140829`,name:`平陆县`},{code:`140830`,name:`芮城县`},{code:`140881`,name:`永济市`},{code:`140882`,name:`河津市`}]},{code:`140900`,name:`忻州市`,districts:[{code:`140902`,name:`忻府区`},{code:`140921`,name:`定襄县`},{code:`140922`,name:`五台县`},{code:`140923`,name:`代县`},{code:`140924`,name:`繁峙县`},{code:`140925`,name:`宁武县`},{code:`140926`,name:`静乐县`},{code:`140927`,name:`神池县`},{code:`140928`,name:`五寨县`},{code:`140929`,name:`岢岚县`},{code:`140930`,name:`河曲县`},{code:`140931`,name:`保德县`},{code:`140932`,name:`偏关县`},{code:`140981`,name:`原平市`}]},{code:`141000`,name:`临汾市`,districts:[{code:`141002`,name:`尧都区`},{code:`141021`,name:`曲沃县`},{code:`141022`,name:`翼城县`},{code:`141023`,name:`襄汾县`},{code:`141024`,name:`洪洞县`},{code:`141025`,name:`古县`},{code:`141026`,name:`安泽县`},{code:`141027`,name:`浮山县`},{code:`141028`,name:`吉县`},{code:`141029`,name:`乡宁县`},{code:`141030`,name:`大宁县`},{code:`141031`,name:`隰县`},{code:`141032`,name:`永和县`},{code:`141033`,name:`蒲县`},{code:`141034`,name:`汾西县`},{code:`141081`,name:`侯马市`},{code:`141082`,name:`霍州市`}]},{code:`141100`,name:`吕梁市`,districts:[{code:`141102`,name:`离石区`},{code:`141121`,name:`文水县`},{code:`141122`,name:`交城县`},{code:`141123`,name:`兴县`},{code:`141124`,name:`临县`},{code:`141125`,name:`柳林县`},{code:`141126`,name:`石楼县`},{code:`141127`,name:`岚县`},{code:`141128`,name:`方山县`},{code:`141129`,name:`中阳县`},{code:`141130`,name:`交口县`},{code:`141181`,name:`孝义市`},{code:`141182`,name:`汾阳市`}]}]},{code:`150000`,name:`内蒙古自治区`,cities:[{code:`150100`,name:`呼和浩特市`,districts:[{code:`150102`,name:`新城区`},{code:`150103`,name:`回民区`},{code:`150104`,name:`玉泉区`},{code:`150105`,name:`赛罕区`},{code:`150121`,name:`土默特左旗`},{code:`150122`,name:`托克托县`},{code:`150123`,name:`和林格尔县`},{code:`150124`,name:`清水河县`},{code:`150125`,name:`武川县`}]},{code:`150200`,name:`包头市`,districts:[{code:`150202`,name:`东河区`},{code:`150203`,name:`昆都仑区`},{code:`150204`,name:`青山区`},{code:`150205`,name:`石拐区`},{code:`150206`,name:`白云鄂博矿区`},{code:`150207`,name:`九原区`},{code:`150221`,name:`土默特右旗`},{code:`150222`,name:`固阳县`},{code:`150223`,name:`达尔罕茂明安联合旗`}]},{code:`150300`,name:`乌海市`,districts:[{code:`150302`,name:`海勃湾区`},{code:`150303`,name:`海南区`},{code:`150304`,name:`乌达区`}]},{code:`150400`,name:`赤峰市`,districts:[{code:`150402`,name:`红山区`},{code:`150403`,name:`元宝山区`},{code:`150404`,name:`松山区`},{code:`150421`,name:`阿鲁科尔沁旗`},{code:`150422`,name:`巴林左旗`},{code:`150423`,name:`巴林右旗`},{code:`150424`,name:`林西县`},{code:`150425`,name:`克什克腾旗`},{code:`150426`,name:`翁牛特旗`},{code:`150428`,name:`喀喇沁旗`},{code:`150429`,name:`宁城县`},{code:`150430`,name:`敖汉旗`}]},{code:`150500`,name:`通辽市`,districts:[{code:`150502`,name:`科尔沁区`},{code:`150521`,name:`科尔沁左翼中旗`},{code:`150522`,name:`科尔沁左翼后旗`},{code:`150523`,name:`开鲁县`},{code:`150524`,name:`库伦旗`},{code:`150525`,name:`奈曼旗`},{code:`150526`,name:`扎鲁特旗`},{code:`150581`,name:`霍林郭勒市`}]},{code:`150600`,name:`鄂尔多斯市`,districts:[{code:`150602`,name:`东胜区`},{code:`150603`,name:`康巴什区`},{code:`150621`,name:`达拉特旗`},{code:`150622`,name:`准格尔旗`},{code:`150623`,name:`鄂托克前旗`},{code:`150624`,name:`鄂托克旗`},{code:`150625`,name:`杭锦旗`},{code:`150626`,name:`乌审旗`},{code:`150627`,name:`伊金霍洛旗`}]},{code:`150700`,name:`呼伦贝尔市`,districts:[{code:`150702`,name:`海拉尔区`},{code:`150703`,name:`扎赉诺尔区`},{code:`150721`,name:`阿荣旗`},{code:`150722`,name:`莫力达瓦达斡尔族自治旗`},{code:`150723`,name:`鄂伦春自治旗`},{code:`150724`,name:`鄂温克族自治旗`},{code:`150725`,name:`陈巴尔虎旗`},{code:`150726`,name:`新巴尔虎左旗`},{code:`150727`,name:`新巴尔虎右旗`},{code:`150781`,name:`满洲里市`},{code:`150782`,name:`牙克石市`},{code:`150783`,name:`扎兰屯市`},{code:`150784`,name:`额尔古纳市`},{code:`150785`,name:`根河市`}]},{code:`150800`,name:`巴彦淖尔市`,districts:[{code:`150802`,name:`临河区`},{code:`150821`,name:`五原县`},{code:`150822`,name:`磴口县`},{code:`150823`,name:`乌拉特前旗`},{code:`150824`,name:`乌拉特中旗`},{code:`150825`,name:`乌拉特后旗`},{code:`150826`,name:`杭锦后旗`}]},{code:`150900`,name:`乌兰察布市`,districts:[{code:`150902`,name:`集宁区`},{code:`150921`,name:`卓资县`},{code:`150922`,name:`化德县`},{code:`150923`,name:`商都县`},{code:`150924`,name:`兴和县`},{code:`150925`,name:`凉城县`},{code:`150926`,name:`察哈尔右翼前旗`},{code:`150927`,name:`察哈尔右翼中旗`},{code:`150928`,name:`察哈尔右翼后旗`},{code:`150929`,name:`四子王旗`},{code:`150981`,name:`丰镇市`}]},{code:`152200`,name:`兴安盟`,districts:[{code:`152201`,name:`乌兰浩特市`},{code:`152202`,name:`阿尔山市`},{code:`152221`,name:`科尔沁右翼前旗`},{code:`152222`,name:`科尔沁右翼中旗`},{code:`152223`,name:`扎赉特旗`},{code:`152224`,name:`突泉县`}]},{code:`152500`,name:`锡林郭勒盟`,districts:[{code:`152501`,name:`二连浩特市`},{code:`152502`,name:`锡林浩特市`},{code:`152522`,name:`阿巴嘎旗`},{code:`152523`,name:`苏尼特左旗`},{code:`152524`,name:`苏尼特右旗`},{code:`152525`,name:`东乌珠穆沁旗`},{code:`152526`,name:`西乌珠穆沁旗`},{code:`152527`,name:`太仆寺旗`},{code:`152528`,name:`镶黄旗`},{code:`152529`,name:`正镶白旗`},{code:`152530`,name:`正蓝旗`},{code:`152531`,name:`多伦县`}]},{code:`152900`,name:`阿拉善盟`,districts:[{code:`152921`,name:`阿拉善左旗`},{code:`152922`,name:`阿拉善右旗`},{code:`152923`,name:`额济纳旗`}]}]},{code:`210000`,name:`辽宁省`,cities:[{code:`210100`,name:`沈阳市`,districts:[{code:`210102`,name:`和平区`},{code:`210103`,name:`沈河区`},{code:`210104`,name:`大东区`},{code:`210105`,name:`皇姑区`},{code:`210106`,name:`铁西区`},{code:`210111`,name:`苏家屯区`},{code:`210112`,name:`浑南区`},{code:`210113`,name:`沈北新区`},{code:`210114`,name:`于洪区`},{code:`210115`,name:`辽中区`},{code:`210123`,name:`康平县`},{code:`210124`,name:`法库县`},{code:`210181`,name:`新民市`}]},{code:`210200`,name:`大连市`,districts:[{code:`210202`,name:`中山区`},{code:`210203`,name:`西岗区`},{code:`210204`,name:`沙河口区`},{code:`210211`,name:`甘井子区`},{code:`210212`,name:`旅顺口区`},{code:`210213`,name:`金州区`},{code:`210214`,name:`普兰店区`},{code:`210224`,name:`长海县`},{code:`210281`,name:`瓦房店市`},{code:`210283`,name:`庄河市`}]},{code:`210300`,name:`鞍山市`,districts:[{code:`210302`,name:`铁东区`},{code:`210303`,name:`铁西区`},{code:`210304`,name:`立山区`},{code:`210311`,name:`千山区`},{code:`210321`,name:`台安县`},{code:`210323`,name:`岫岩满族自治县`},{code:`210381`,name:`海城市`}]},{code:`210400`,name:`抚顺市`,districts:[{code:`210402`,name:`新抚区`},{code:`210403`,name:`东洲区`},{code:`210404`,name:`望花区`},{code:`210411`,name:`顺城区`},{code:`210421`,name:`抚顺县`},{code:`210422`,name:`新宾满族自治县`},{code:`210423`,name:`清原满族自治县`}]},{code:`210500`,name:`本溪市`,districts:[{code:`210502`,name:`平山区`},{code:`210503`,name:`溪湖区`},{code:`210504`,name:`明山区`},{code:`210505`,name:`南芬区`},{code:`210521`,name:`本溪满族自治县`},{code:`210522`,name:`桓仁满族自治县`}]},{code:`210600`,name:`丹东市`,districts:[{code:`210602`,name:`元宝区`},{code:`210603`,name:`振兴区`},{code:`210604`,name:`振安区`},{code:`210624`,name:`宽甸满族自治县`},{code:`210681`,name:`东港市`},{code:`210682`,name:`凤城市`}]},{code:`210700`,name:`锦州市`,districts:[{code:`210702`,name:`古塔区`},{code:`210703`,name:`凌河区`},{code:`210711`,name:`太和区`},{code:`210726`,name:`黑山县`},{code:`210727`,name:`义县`},{code:`210781`,name:`凌海市`},{code:`210782`,name:`北镇市`}]},{code:`210800`,name:`营口市`,districts:[{code:`210802`,name:`站前区`},{code:`210803`,name:`西市区`},{code:`210804`,name:`鲅鱼圈区`},{code:`210811`,name:`老边区`},{code:`210881`,name:`盖州市`},{code:`210882`,name:`大石桥市`}]},{code:`210900`,name:`阜新市`,districts:[{code:`210902`,name:`海州区`},{code:`210903`,name:`新邱区`},{code:`210904`,name:`太平区`},{code:`210905`,name:`清河门区`},{code:`210911`,name:`细河区`},{code:`210921`,name:`阜新蒙古族自治县`},{code:`210922`,name:`彰武县`}]},{code:`211000`,name:`辽阳市`,districts:[{code:`211002`,name:`白塔区`},{code:`211003`,name:`文圣区`},{code:`211004`,name:`宏伟区`},{code:`211005`,name:`弓长岭区`},{code:`211011`,name:`太子河区`},{code:`211021`,name:`辽阳县`},{code:`211081`,name:`灯塔市`}]},{code:`211100`,name:`盘锦市`,districts:[{code:`211102`,name:`双台子区`},{code:`211103`,name:`兴隆台区`},{code:`211104`,name:`大洼区`},{code:`211122`,name:`盘山县`}]},{code:`211200`,name:`铁岭市`,districts:[{code:`211202`,name:`银州区`},{code:`211204`,name:`清河区`},{code:`211221`,name:`铁岭县`},{code:`211223`,name:`西丰县`},{code:`211224`,name:`昌图县`},{code:`211281`,name:`调兵山市`},{code:`211282`,name:`开原市`}]},{code:`211300`,name:`朝阳市`,districts:[{code:`211302`,name:`双塔区`},{code:`211303`,name:`龙城区`},{code:`211321`,name:`朝阳县`},{code:`211322`,name:`建平县`},{code:`211324`,name:`喀喇沁左翼蒙古族自治县`},{code:`211381`,name:`北票市`},{code:`211382`,name:`凌源市`}]},{code:`211400`,name:`葫芦岛市`,districts:[{code:`211402`,name:`连山区`},{code:`211403`,name:`龙港区`},{code:`211404`,name:`南票区`},{code:`211421`,name:`绥中县`},{code:`211422`,name:`建昌县`},{code:`211481`,name:`兴城市`}]}]},{code:`220000`,name:`吉林省`,cities:[{code:`220100`,name:`长春市`,districts:[{code:`220102`,name:`南关区`},{code:`220103`,name:`宽城区`},{code:`220104`,name:`朝阳区`},{code:`220105`,name:`二道区`},{code:`220106`,name:`绿园区`},{code:`220112`,name:`双阳区`},{code:`220113`,name:`九台区`},{code:`220122`,name:`农安县`},{code:`220182`,name:`榆树市`},{code:`220183`,name:`德惠市`},{code:`220184`,name:`公主岭市`}]},{code:`220200`,name:`吉林市`,districts:[{code:`220202`,name:`昌邑区`},{code:`220203`,name:`龙潭区`},{code:`220204`,name:`船营区`},{code:`220211`,name:`丰满区`},{code:`220221`,name:`永吉县`},{code:`220281`,name:`蛟河市`},{code:`220282`,name:`桦甸市`},{code:`220283`,name:`舒兰市`},{code:`220284`,name:`磐石市`}]},{code:`220300`,name:`四平市`,districts:[{code:`220302`,name:`铁西区`},{code:`220303`,name:`铁东区`},{code:`220322`,name:`梨树县`},{code:`220323`,name:`伊通满族自治县`},{code:`220382`,name:`双辽市`}]},{code:`220400`,name:`辽源市`,districts:[{code:`220402`,name:`龙山区`},{code:`220403`,name:`西安区`},{code:`220421`,name:`东丰县`},{code:`220422`,name:`东辽县`}]},{code:`220500`,name:`通化市`,districts:[{code:`220502`,name:`东昌区`},{code:`220503`,name:`二道江区`},{code:`220521`,name:`通化县`},{code:`220523`,name:`辉南县`},{code:`220524`,name:`柳河县`},{code:`220581`,name:`梅河口市`},{code:`220582`,name:`集安市`}]},{code:`220600`,name:`白山市`,districts:[{code:`220602`,name:`浑江区`},{code:`220605`,name:`江源区`},{code:`220621`,name:`抚松县`},{code:`220622`,name:`靖宇县`},{code:`220623`,name:`长白朝鲜族自治县`},{code:`220681`,name:`临江市`}]},{code:`220700`,name:`松原市`,districts:[{code:`220702`,name:`宁江区`},{code:`220721`,name:`前郭尔罗斯蒙古族自治县`},{code:`220722`,name:`长岭县`},{code:`220723`,name:`乾安县`},{code:`220781`,name:`扶余市`}]},{code:`220800`,name:`白城市`,districts:[{code:`220802`,name:`洮北区`},{code:`220821`,name:`镇赉县`},{code:`220822`,name:`通榆县`},{code:`220881`,name:`洮南市`},{code:`220882`,name:`大安市`}]},{code:`222400`,name:`延边朝鲜族自治州`,districts:[{code:`222401`,name:`延吉市`},{code:`222402`,name:`图们市`},{code:`222403`,name:`敦化市`},{code:`222404`,name:`珲春市`},{code:`222405`,name:`龙井市`},{code:`222406`,name:`和龙市`},{code:`222424`,name:`汪清县`},{code:`222426`,name:`安图县`}]}]},{code:`230000`,name:`黑龙江省`,cities:[{code:`230100`,name:`哈尔滨市`,districts:[{code:`230102`,name:`道里区`},{code:`230103`,name:`南岗区`},{code:`230104`,name:`道外区`},{code:`230108`,name:`平房区`},{code:`230109`,name:`松北区`},{code:`230110`,name:`香坊区`},{code:`230111`,name:`呼兰区`},{code:`230112`,name:`阿城区`},{code:`230113`,name:`双城区`},{code:`230123`,name:`依兰县`},{code:`230124`,name:`方正县`},{code:`230125`,name:`宾县`},{code:`230126`,name:`巴彦县`},{code:`230127`,name:`木兰县`},{code:`230128`,name:`通河县`},{code:`230129`,name:`延寿县`},{code:`230183`,name:`尚志市`},{code:`230184`,name:`五常市`}]},{code:`230200`,name:`齐齐哈尔市`,districts:[{code:`230202`,name:`龙沙区`},{code:`230203`,name:`建华区`},{code:`230204`,name:`铁锋区`},{code:`230205`,name:`昂昂溪区`},{code:`230206`,name:`富拉尔基区`},{code:`230207`,name:`碾子山区`},{code:`230208`,name:`梅里斯达斡尔族区`},{code:`230221`,name:`龙江县`},{code:`230223`,name:`依安县`},{code:`230224`,name:`泰来县`},{code:`230225`,name:`甘南县`},{code:`230227`,name:`富裕县`},{code:`230229`,name:`克山县`},{code:`230230`,name:`克东县`},{code:`230231`,name:`拜泉县`},{code:`230281`,name:`讷河市`}]},{code:`230300`,name:`鸡西市`,districts:[{code:`230302`,name:`鸡冠区`},{code:`230303`,name:`恒山区`},{code:`230304`,name:`滴道区`},{code:`230305`,name:`梨树区`},{code:`230306`,name:`城子河区`},{code:`230307`,name:`麻山区`},{code:`230321`,name:`鸡东县`},{code:`230381`,name:`虎林市`},{code:`230382`,name:`密山市`}]},{code:`230400`,name:`鹤岗市`,districts:[{code:`230402`,name:`向阳区`},{code:`230403`,name:`工农区`},{code:`230404`,name:`南山区`},{code:`230405`,name:`兴安区`},{code:`230406`,name:`东山区`},{code:`230407`,name:`兴山区`},{code:`230421`,name:`萝北县`},{code:`230422`,name:`绥滨县`}]},{code:`230500`,name:`双鸭山市`,districts:[{code:`230502`,name:`尖山区`},{code:`230503`,name:`岭东区`},{code:`230505`,name:`四方台区`},{code:`230506`,name:`宝山区`},{code:`230521`,name:`集贤县`},{code:`230522`,name:`友谊县`},{code:`230523`,name:`宝清县`},{code:`230524`,name:`饶河县`}]},{code:`230600`,name:`大庆市`,districts:[{code:`230602`,name:`萨尔图区`},{code:`230603`,name:`龙凤区`},{code:`230604`,name:`让胡路区`},{code:`230605`,name:`红岗区`},{code:`230606`,name:`大同区`},{code:`230621`,name:`肇州县`},{code:`230622`,name:`肇源县`},{code:`230623`,name:`林甸县`},{code:`230624`,name:`杜尔伯特蒙古族自治县`}]},{code:`230700`,name:`伊春市`,districts:[{code:`230717`,name:`伊美区`},{code:`230718`,name:`乌翠区`},{code:`230719`,name:`友好区`},{code:`230722`,name:`嘉荫县`},{code:`230723`,name:`汤旺县`},{code:`230724`,name:`丰林县`},{code:`230725`,name:`大箐山县`},{code:`230726`,name:`南岔县`},{code:`230751`,name:`金林区`},{code:`230781`,name:`铁力市`}]},{code:`230800`,name:`佳木斯市`,districts:[{code:`230803`,name:`向阳区`},{code:`230804`,name:`前进区`},{code:`230805`,name:`东风区`},{code:`230811`,name:`郊区`},{code:`230822`,name:`桦南县`},{code:`230826`,name:`桦川县`},{code:`230828`,name:`汤原县`},{code:`230881`,name:`同江市`},{code:`230882`,name:`富锦市`},{code:`230883`,name:`抚远市`}]},{code:`230900`,name:`七台河市`,districts:[{code:`230902`,name:`新兴区`},{code:`230903`,name:`桃山区`},{code:`230904`,name:`茄子河区`},{code:`230921`,name:`勃利县`}]},{code:`231000`,name:`牡丹江市`,districts:[{code:`231002`,name:`东安区`},{code:`231003`,name:`阳明区`},{code:`231004`,name:`爱民区`},{code:`231005`,name:`西安区`},{code:`231025`,name:`林口县`},{code:`231081`,name:`绥芬河市`},{code:`231083`,name:`海林市`},{code:`231084`,name:`宁安市`},{code:`231085`,name:`穆棱市`},{code:`231086`,name:`东宁市`}]},{code:`231100`,name:`黑河市`,districts:[{code:`231102`,name:`爱辉区`},{code:`231123`,name:`逊克县`},{code:`231124`,name:`孙吴县`},{code:`231181`,name:`北安市`},{code:`231182`,name:`五大连池市`},{code:`231183`,name:`嫩江市`}]},{code:`231200`,name:`绥化市`,districts:[{code:`231202`,name:`北林区`},{code:`231221`,name:`望奎县`},{code:`231222`,name:`兰西县`},{code:`231223`,name:`青冈县`},{code:`231224`,name:`庆安县`},{code:`231225`,name:`明水县`},{code:`231226`,name:`绥棱县`},{code:`231281`,name:`安达市`},{code:`231282`,name:`肇东市`},{code:`231283`,name:`海伦市`}]},{code:`232700`,name:`大兴安岭地区`,districts:[{code:`232701`,name:`漠河市`},{code:`232721`,name:`呼玛县`},{code:`232722`,name:`塔河县`},{code:`232761`,name:`加格达奇区`}]}]},{code:`310000`,name:`上海市`,cities:[{code:`310100`,name:`上海市`,districts:[{code:`310101`,name:`黄浦区`},{code:`310104`,name:`徐汇区`},{code:`310105`,name:`长宁区`},{code:`310106`,name:`静安区`},{code:`310107`,name:`普陀区`},{code:`310109`,name:`虹口区`},{code:`310110`,name:`杨浦区`},{code:`310112`,name:`闵行区`},{code:`310113`,name:`宝山区`},{code:`310114`,name:`嘉定区`},{code:`310115`,name:`浦东新区`},{code:`310116`,name:`金山区`},{code:`310117`,name:`松江区`},{code:`310118`,name:`青浦区`},{code:`310120`,name:`奉贤区`},{code:`310151`,name:`崇明区`}]}]},{code:`320000`,name:`江苏省`,cities:[{code:`320100`,name:`南京市`,districts:[{code:`320102`,name:`玄武区`},{code:`320104`,name:`秦淮区`},{code:`320105`,name:`建邺区`},{code:`320106`,name:`鼓楼区`},{code:`320111`,name:`浦口区`},{code:`320113`,name:`栖霞区`},{code:`320114`,name:`雨花台区`},{code:`320115`,name:`江宁区`},{code:`320116`,name:`六合区`},{code:`320117`,name:`溧水区`},{code:`320118`,name:`高淳区`}]},{code:`320200`,name:`无锡市`,districts:[{code:`320205`,name:`锡山区`},{code:`320206`,name:`惠山区`},{code:`320211`,name:`滨湖区`},{code:`320213`,name:`梁溪区`},{code:`320214`,name:`新吴区`},{code:`320281`,name:`江阴市`},{code:`320282`,name:`宜兴市`}]},{code:`320300`,name:`徐州市`,districts:[{code:`320302`,name:`鼓楼区`},{code:`320303`,name:`云龙区`},{code:`320305`,name:`贾汪区`},{code:`320311`,name:`泉山区`},{code:`320312`,name:`铜山区`},{code:`320321`,name:`丰县`},{code:`320322`,name:`沛县`},{code:`320324`,name:`睢宁县`},{code:`320381`,name:`新沂市`},{code:`320382`,name:`邳州市`}]},{code:`320400`,name:`常州市`,districts:[{code:`320402`,name:`天宁区`},{code:`320404`,name:`钟楼区`},{code:`320411`,name:`新北区`},{code:`320412`,name:`武进区`},{code:`320413`,name:`金坛区`},{code:`320481`,name:`溧阳市`}]},{code:`320500`,name:`苏州市`,districts:[{code:`320505`,name:`虎丘区`},{code:`320506`,name:`吴中区`},{code:`320507`,name:`相城区`},{code:`320508`,name:`姑苏区`},{code:`320509`,name:`吴江区`},{code:`320581`,name:`常熟市`},{code:`320582`,name:`张家港市`},{code:`320583`,name:`昆山市`},{code:`320585`,name:`太仓市`}]},{code:`320600`,name:`南通市`,districts:[{code:`320612`,name:`通州区`},{code:`320613`,name:`崇川区`},{code:`320614`,name:`海门区`},{code:`320623`,name:`如东县`},{code:`320681`,name:`启东市`},{code:`320682`,name:`如皋市`},{code:`320685`,name:`海安市`}]},{code:`320700`,name:`连云港市`,districts:[{code:`320703`,name:`连云区`},{code:`320706`,name:`海州区`},{code:`320707`,name:`赣榆区`},{code:`320722`,name:`东海县`},{code:`320723`,name:`灌云县`},{code:`320724`,name:`灌南县`}]},{code:`320800`,name:`淮安市`,districts:[{code:`320803`,name:`淮安区`},{code:`320804`,name:`淮阴区`},{code:`320812`,name:`清江浦区`},{code:`320813`,name:`洪泽区`},{code:`320826`,name:`涟水县`},{code:`320830`,name:`盱眙县`},{code:`320831`,name:`金湖县`}]},{code:`320900`,name:`盐城市`,districts:[{code:`320902`,name:`亭湖区`},{code:`320903`,name:`盐都区`},{code:`320904`,name:`大丰区`},{code:`320921`,name:`响水县`},{code:`320922`,name:`滨海县`},{code:`320923`,name:`阜宁县`},{code:`320924`,name:`射阳县`},{code:`320925`,name:`建湖县`},{code:`320981`,name:`东台市`}]},{code:`321000`,name:`扬州市`,districts:[{code:`321002`,name:`广陵区`},{code:`321003`,name:`邗江区`},{code:`321012`,name:`江都区`},{code:`321023`,name:`宝应县`},{code:`321081`,name:`仪征市`},{code:`321084`,name:`高邮市`}]},{code:`321100`,name:`镇江市`,districts:[{code:`321102`,name:`京口区`},{code:`321111`,name:`润州区`},{code:`321112`,name:`丹徒区`},{code:`321181`,name:`丹阳市`},{code:`321182`,name:`扬中市`},{code:`321183`,name:`句容市`}]},{code:`321200`,name:`泰州市`,districts:[{code:`321202`,name:`海陵区`},{code:`321203`,name:`高港区`},{code:`321204`,name:`姜堰区`},{code:`321281`,name:`兴化市`},{code:`321282`,name:`靖江市`},{code:`321283`,name:`泰兴市`}]},{code:`321300`,name:`宿迁市`,districts:[{code:`321302`,name:`宿城区`},{code:`321311`,name:`宿豫区`},{code:`321322`,name:`沭阳县`},{code:`321323`,name:`泗阳县`},{code:`321324`,name:`泗洪县`}]}]},{code:`330000`,name:`浙江省`,cities:[{code:`330100`,name:`杭州市`,districts:[{code:`330102`,name:`上城区`},{code:`330105`,name:`拱墅区`},{code:`330106`,name:`西湖区`},{code:`330108`,name:`滨江区`},{code:`330109`,name:`萧山区`},{code:`330110`,name:`余杭区`},{code:`330111`,name:`富阳区`},{code:`330112`,name:`临安区`},{code:`330113`,name:`临平区`},{code:`330114`,name:`钱塘区`},{code:`330122`,name:`桐庐县`},{code:`330127`,name:`淳安县`},{code:`330182`,name:`建德市`}]},{code:`330200`,name:`宁波市`,districts:[{code:`330203`,name:`海曙区`},{code:`330205`,name:`江北区`},{code:`330206`,name:`北仑区`},{code:`330211`,name:`镇海区`},{code:`330212`,name:`鄞州区`},{code:`330213`,name:`奉化区`},{code:`330225`,name:`象山县`},{code:`330226`,name:`宁海县`},{code:`330281`,name:`余姚市`},{code:`330282`,name:`慈溪市`}]},{code:`330300`,name:`温州市`,districts:[{code:`330302`,name:`鹿城区`},{code:`330303`,name:`龙湾区`},{code:`330304`,name:`瓯海区`},{code:`330305`,name:`洞头区`},{code:`330324`,name:`永嘉县`},{code:`330326`,name:`平阳县`},{code:`330327`,name:`苍南县`},{code:`330328`,name:`文成县`},{code:`330329`,name:`泰顺县`},{code:`330381`,name:`瑞安市`},{code:`330382`,name:`乐清市`},{code:`330383`,name:`龙港市`}]},{code:`330400`,name:`嘉兴市`,districts:[{code:`330402`,name:`南湖区`},{code:`330411`,name:`秀洲区`},{code:`330421`,name:`嘉善县`},{code:`330424`,name:`海盐县`},{code:`330481`,name:`海宁市`},{code:`330482`,name:`平湖市`},{code:`330483`,name:`桐乡市`}]},{code:`330500`,name:`湖州市`,districts:[{code:`330502`,name:`吴兴区`},{code:`330503`,name:`南浔区`},{code:`330521`,name:`德清县`},{code:`330522`,name:`长兴县`},{code:`330523`,name:`安吉县`}]},{code:`330600`,name:`绍兴市`,districts:[{code:`330602`,name:`越城区`},{code:`330603`,name:`柯桥区`},{code:`330604`,name:`上虞区`},{code:`330624`,name:`新昌县`},{code:`330681`,name:`诸暨市`},{code:`330683`,name:`嵊州市`}]},{code:`330700`,name:`金华市`,districts:[{code:`330702`,name:`婺城区`},{code:`330703`,name:`金东区`},{code:`330723`,name:`武义县`},{code:`330726`,name:`浦江县`},{code:`330727`,name:`磐安县`},{code:`330781`,name:`兰溪市`},{code:`330782`,name:`义乌市`},{code:`330783`,name:`东阳市`},{code:`330784`,name:`永康市`}]},{code:`330800`,name:`衢州市`,districts:[{code:`330802`,name:`柯城区`},{code:`330803`,name:`衢江区`},{code:`330822`,name:`常山县`},{code:`330824`,name:`开化县`},{code:`330825`,name:`龙游县`},{code:`330881`,name:`江山市`}]},{code:`330900`,name:`舟山市`,districts:[{code:`330902`,name:`定海区`},{code:`330903`,name:`普陀区`},{code:`330921`,name:`岱山县`},{code:`330922`,name:`嵊泗县`}]},{code:`331000`,name:`台州市`,districts:[{code:`331002`,name:`椒江区`},{code:`331003`,name:`黄岩区`},{code:`331004`,name:`路桥区`},{code:`331022`,name:`三门县`},{code:`331023`,name:`天台县`},{code:`331024`,name:`仙居县`},{code:`331081`,name:`温岭市`},{code:`331082`,name:`临海市`},{code:`331083`,name:`玉环市`}]},{code:`331100`,name:`丽水市`,districts:[{code:`331102`,name:`莲都区`},{code:`331121`,name:`青田县`},{code:`331122`,name:`缙云县`},{code:`331123`,name:`遂昌县`},{code:`331124`,name:`松阳县`},{code:`331125`,name:`云和县`},{code:`331126`,name:`庆元县`},{code:`331127`,name:`景宁畲族自治县`},{code:`331181`,name:`龙泉市`}]}]},{code:`340000`,name:`安徽省`,cities:[{code:`340100`,name:`合肥市`,districts:[{code:`340102`,name:`瑶海区`},{code:`340103`,name:`庐阳区`},{code:`340104`,name:`蜀山区`},{code:`340111`,name:`包河区`},{code:`340121`,name:`长丰县`},{code:`340122`,name:`肥东县`},{code:`340123`,name:`肥西县`},{code:`340124`,name:`庐江县`},{code:`340181`,name:`巢湖市`}]},{code:`340200`,name:`芜湖市`,districts:[{code:`340202`,name:`镜湖区`},{code:`340207`,name:`鸠江区`},{code:`340209`,name:`弋江区`},{code:`340210`,name:`湾沚区`},{code:`340212`,name:`繁昌区`},{code:`340223`,name:`南陵县`},{code:`340281`,name:`无为市`}]},{code:`340300`,name:`蚌埠市`,districts:[{code:`340302`,name:`龙子湖区`},{code:`340303`,name:`蚌山区`},{code:`340304`,name:`禹会区`},{code:`340311`,name:`淮上区`},{code:`340321`,name:`怀远县`},{code:`340322`,name:`五河县`},{code:`340323`,name:`固镇县`}]},{code:`340400`,name:`淮南市`,districts:[{code:`340402`,name:`大通区`},{code:`340403`,name:`田家庵区`},{code:`340404`,name:`谢家集区`},{code:`340405`,name:`八公山区`},{code:`340406`,name:`潘集区`},{code:`340421`,name:`凤台县`},{code:`340422`,name:`寿县`}]},{code:`340500`,name:`马鞍山市`,districts:[{code:`340503`,name:`花山区`},{code:`340504`,name:`雨山区`},{code:`340506`,name:`博望区`},{code:`340521`,name:`当涂县`},{code:`340522`,name:`含山县`},{code:`340523`,name:`和县`}]},{code:`340600`,name:`淮北市`,districts:[{code:`340602`,name:`杜集区`},{code:`340603`,name:`相山区`},{code:`340604`,name:`烈山区`},{code:`340621`,name:`濉溪县`}]},{code:`340700`,name:`铜陵市`,districts:[{code:`340705`,name:`铜官区`},{code:`340706`,name:`义安区`},{code:`340711`,name:`郊区`},{code:`340722`,name:`枞阳县`}]},{code:`340800`,name:`安庆市`,districts:[{code:`340802`,name:`迎江区`},{code:`340803`,name:`大观区`},{code:`340811`,name:`宜秀区`},{code:`340822`,name:`怀宁县`},{code:`340825`,name:`太湖县`},{code:`340826`,name:`宿松县`},{code:`340827`,name:`望江县`},{code:`340828`,name:`岳西县`},{code:`340881`,name:`桐城市`},{code:`340882`,name:`潜山市`}]},{code:`341000`,name:`黄山市`,districts:[{code:`341002`,name:`屯溪区`},{code:`341003`,name:`黄山区`},{code:`341004`,name:`徽州区`},{code:`341021`,name:`歙县`},{code:`341022`,name:`休宁县`},{code:`341023`,name:`黟县`},{code:`341024`,name:`祁门县`}]},{code:`341100`,name:`滁州市`,districts:[{code:`341102`,name:`琅琊区`},{code:`341103`,name:`南谯区`},{code:`341122`,name:`来安县`},{code:`341124`,name:`全椒县`},{code:`341125`,name:`定远县`},{code:`341126`,name:`凤阳县`},{code:`341181`,name:`天长市`},{code:`341182`,name:`明光市`}]},{code:`341200`,name:`阜阳市`,districts:[{code:`341202`,name:`颍州区`},{code:`341203`,name:`颍东区`},{code:`341204`,name:`颍泉区`},{code:`341221`,name:`临泉县`},{code:`341222`,name:`太和县`},{code:`341225`,name:`阜南县`},{code:`341226`,name:`颍上县`},{code:`341282`,name:`界首市`}]},{code:`341300`,name:`宿州市`,districts:[{code:`341302`,name:`埇桥区`},{code:`341321`,name:`砀山县`},{code:`341322`,name:`萧县`},{code:`341323`,name:`灵璧县`},{code:`341324`,name:`泗县`}]},{code:`341500`,name:`六安市`,districts:[{code:`341502`,name:`金安区`},{code:`341503`,name:`裕安区`},{code:`341504`,name:`叶集区`},{code:`341522`,name:`霍邱县`},{code:`341523`,name:`舒城县`},{code:`341524`,name:`金寨县`},{code:`341525`,name:`霍山县`}]},{code:`341600`,name:`亳州市`,districts:[{code:`341602`,name:`谯城区`},{code:`341621`,name:`涡阳县`},{code:`341622`,name:`蒙城县`},{code:`341623`,name:`利辛县`}]},{code:`341700`,name:`池州市`,districts:[{code:`341702`,name:`贵池区`},{code:`341721`,name:`东至县`},{code:`341722`,name:`石台县`},{code:`341723`,name:`青阳县`}]},{code:`341800`,name:`宣城市`,districts:[{code:`341802`,name:`宣州区`},{code:`341821`,name:`郎溪县`},{code:`341823`,name:`泾县`},{code:`341824`,name:`绩溪县`},{code:`341825`,name:`旌德县`},{code:`341881`,name:`宁国市`},{code:`341882`,name:`广德市`}]}]},{code:`350000`,name:`福建省`,cities:[{code:`350100`,name:`福州市`,districts:[{code:`350102`,name:`鼓楼区`},{code:`350103`,name:`台江区`},{code:`350104`,name:`仓山区`},{code:`350105`,name:`马尾区`},{code:`350111`,name:`晋安区`},{code:`350112`,name:`长乐区`},{code:`350121`,name:`闽侯县`},{code:`350122`,name:`连江县`},{code:`350123`,name:`罗源县`},{code:`350124`,name:`闽清县`},{code:`350125`,name:`永泰县`},{code:`350128`,name:`平潭县`},{code:`350181`,name:`福清市`}]},{code:`350200`,name:`厦门市`,districts:[{code:`350203`,name:`思明区`},{code:`350205`,name:`海沧区`},{code:`350206`,name:`湖里区`},{code:`350211`,name:`集美区`},{code:`350212`,name:`同安区`},{code:`350213`,name:`翔安区`}]},{code:`350300`,name:`莆田市`,districts:[{code:`350302`,name:`城厢区`},{code:`350303`,name:`涵江区`},{code:`350304`,name:`荔城区`},{code:`350305`,name:`秀屿区`},{code:`350322`,name:`仙游县`}]},{code:`350400`,name:`三明市`,districts:[{code:`350404`,name:`三元区`},{code:`350405`,name:`沙县区`},{code:`350421`,name:`明溪县`},{code:`350423`,name:`清流县`},{code:`350424`,name:`宁化县`},{code:`350425`,name:`大田县`},{code:`350426`,name:`尤溪县`},{code:`350428`,name:`将乐县`},{code:`350429`,name:`泰宁县`},{code:`350430`,name:`建宁县`},{code:`350481`,name:`永安市`}]},{code:`350500`,name:`泉州市`,districts:[{code:`350502`,name:`鲤城区`},{code:`350503`,name:`丰泽区`},{code:`350504`,name:`洛江区`},{code:`350505`,name:`泉港区`},{code:`350521`,name:`惠安县`},{code:`350524`,name:`安溪县`},{code:`350525`,name:`永春县`},{code:`350526`,name:`德化县`},{code:`350527`,name:`金门县`},{code:`350581`,name:`石狮市`},{code:`350582`,name:`晋江市`},{code:`350583`,name:`南安市`}]},{code:`350600`,name:`漳州市`,districts:[{code:`350602`,name:`芗城区`},{code:`350603`,name:`龙文区`},{code:`350604`,name:`龙海区`},{code:`350605`,name:`长泰区`},{code:`350622`,name:`云霄县`},{code:`350623`,name:`漳浦县`},{code:`350624`,name:`诏安县`},{code:`350626`,name:`东山县`},{code:`350627`,name:`南靖县`},{code:`350628`,name:`平和县`},{code:`350629`,name:`华安县`}]},{code:`350700`,name:`南平市`,districts:[{code:`350702`,name:`延平区`},{code:`350703`,name:`建阳区`},{code:`350721`,name:`顺昌县`},{code:`350722`,name:`浦城县`},{code:`350723`,name:`光泽县`},{code:`350724`,name:`松溪县`},{code:`350725`,name:`政和县`},{code:`350781`,name:`邵武市`},{code:`350782`,name:`武夷山市`},{code:`350783`,name:`建瓯市`}]},{code:`350800`,name:`龙岩市`,districts:[{code:`350802`,name:`新罗区`},{code:`350803`,name:`永定区`},{code:`350821`,name:`长汀县`},{code:`350823`,name:`上杭县`},{code:`350824`,name:`武平县`},{code:`350825`,name:`连城县`},{code:`350881`,name:`漳平市`}]},{code:`350900`,name:`宁德市`,districts:[{code:`350902`,name:`蕉城区`},{code:`350921`,name:`霞浦县`},{code:`350922`,name:`古田县`},{code:`350923`,name:`屏南县`},{code:`350924`,name:`寿宁县`},{code:`350925`,name:`周宁县`},{code:`350926`,name:`柘荣县`},{code:`350981`,name:`福安市`},{code:`350982`,name:`福鼎市`}]}]},{code:`360000`,name:`江西省`,cities:[{code:`360100`,name:`南昌市`,districts:[{code:`360102`,name:`东湖区`},{code:`360103`,name:`西湖区`},{code:`360104`,name:`青云谱区`},{code:`360111`,name:`青山湖区`},{code:`360112`,name:`新建区`},{code:`360113`,name:`红谷滩区`},{code:`360121`,name:`南昌县`},{code:`360123`,name:`安义县`},{code:`360124`,name:`进贤县`}]},{code:`360200`,name:`景德镇市`,districts:[{code:`360202`,name:`昌江区`},{code:`360203`,name:`珠山区`},{code:`360222`,name:`浮梁县`},{code:`360281`,name:`乐平市`}]},{code:`360300`,name:`萍乡市`,districts:[{code:`360302`,name:`安源区`},{code:`360313`,name:`湘东区`},{code:`360321`,name:`莲花县`},{code:`360322`,name:`上栗县`},{code:`360323`,name:`芦溪县`}]},{code:`360400`,name:`九江市`,districts:[{code:`360402`,name:`濂溪区`},{code:`360403`,name:`浔阳区`},{code:`360404`,name:`柴桑区`},{code:`360423`,name:`武宁县`},{code:`360424`,name:`修水县`},{code:`360425`,name:`永修县`},{code:`360426`,name:`德安县`},{code:`360428`,name:`都昌县`},{code:`360429`,name:`湖口县`},{code:`360430`,name:`彭泽县`},{code:`360481`,name:`瑞昌市`},{code:`360482`,name:`共青城市`},{code:`360483`,name:`庐山市`}]},{code:`360500`,name:`新余市`,districts:[{code:`360502`,name:`渝水区`},{code:`360521`,name:`分宜县`}]},{code:`360600`,name:`鹰潭市`,districts:[{code:`360602`,name:`月湖区`},{code:`360603`,name:`余江区`},{code:`360681`,name:`贵溪市`}]},{code:`360700`,name:`赣州市`,districts:[{code:`360702`,name:`章贡区`},{code:`360703`,name:`南康区`},{code:`360704`,name:`赣县区`},{code:`360722`,name:`信丰县`},{code:`360723`,name:`大余县`},{code:`360724`,name:`上犹县`},{code:`360725`,name:`崇义县`},{code:`360726`,name:`安远县`},{code:`360728`,name:`定南县`},{code:`360729`,name:`全南县`},{code:`360730`,name:`宁都县`},{code:`360731`,name:`于都县`},{code:`360732`,name:`兴国县`},{code:`360733`,name:`会昌县`},{code:`360734`,name:`寻乌县`},{code:`360735`,name:`石城县`},{code:`360781`,name:`瑞金市`},{code:`360783`,name:`龙南市`}]},{code:`360800`,name:`吉安市`,districts:[{code:`360802`,name:`吉州区`},{code:`360803`,name:`青原区`},{code:`360821`,name:`吉安县`},{code:`360822`,name:`吉水县`},{code:`360823`,name:`峡江县`},{code:`360824`,name:`新干县`},{code:`360825`,name:`永丰县`},{code:`360826`,name:`泰和县`},{code:`360827`,name:`遂川县`},{code:`360828`,name:`万安县`},{code:`360829`,name:`安福县`},{code:`360830`,name:`永新县`},{code:`360881`,name:`井冈山市`}]},{code:`360900`,name:`宜春市`,districts:[{code:`360902`,name:`袁州区`},{code:`360921`,name:`奉新县`},{code:`360922`,name:`万载县`},{code:`360923`,name:`上高县`},{code:`360924`,name:`宜丰县`},{code:`360925`,name:`靖安县`},{code:`360926`,name:`铜鼓县`},{code:`360981`,name:`丰城市`},{code:`360982`,name:`樟树市`},{code:`360983`,name:`高安市`}]},{code:`361000`,name:`抚州市`,districts:[{code:`361002`,name:`临川区`},{code:`361003`,name:`东乡区`},{code:`361021`,name:`南城县`},{code:`361022`,name:`黎川县`},{code:`361023`,name:`南丰县`},{code:`361024`,name:`崇仁县`},{code:`361025`,name:`乐安县`},{code:`361026`,name:`宜黄县`},{code:`361027`,name:`金溪县`},{code:`361028`,name:`资溪县`},{code:`361030`,name:`广昌县`}]},{code:`361100`,name:`上饶市`,districts:[{code:`361102`,name:`信州区`},{code:`361103`,name:`广丰区`},{code:`361104`,name:`广信区`},{code:`361123`,name:`玉山县`},{code:`361124`,name:`铅山县`},{code:`361125`,name:`横峰县`},{code:`361126`,name:`弋阳县`},{code:`361127`,name:`余干县`},{code:`361128`,name:`鄱阳县`},{code:`361129`,name:`万年县`},{code:`361130`,name:`婺源县`},{code:`361181`,name:`德兴市`}]}]},{code:`370000`,name:`山东省`,cities:[{code:`370100`,name:`济南市`,districts:[{code:`370102`,name:`历下区`},{code:`370103`,name:`市中区`},{code:`370104`,name:`槐荫区`},{code:`370105`,name:`天桥区`},{code:`370112`,name:`历城区`},{code:`370113`,name:`长清区`},{code:`370114`,name:`章丘区`},{code:`370115`,name:`济阳区`},{code:`370116`,name:`莱芜区`},{code:`370117`,name:`钢城区`},{code:`370124`,name:`平阴县`},{code:`370126`,name:`商河县`}]},{code:`370200`,name:`青岛市`,districts:[{code:`370202`,name:`市南区`},{code:`370203`,name:`市北区`},{code:`370211`,name:`黄岛区`},{code:`370212`,name:`崂山区`},{code:`370213`,name:`李沧区`},{code:`370214`,name:`城阳区`},{code:`370215`,name:`即墨区`},{code:`370281`,name:`胶州市`},{code:`370283`,name:`平度市`},{code:`370285`,name:`莱西市`}]},{code:`370300`,name:`淄博市`,districts:[{code:`370302`,name:`淄川区`},{code:`370303`,name:`张店区`},{code:`370304`,name:`博山区`},{code:`370305`,name:`临淄区`},{code:`370306`,name:`周村区`},{code:`370321`,name:`桓台县`},{code:`370322`,name:`高青县`},{code:`370323`,name:`沂源县`}]},{code:`370400`,name:`枣庄市`,districts:[{code:`370402`,name:`市中区`},{code:`370403`,name:`薛城区`},{code:`370404`,name:`峄城区`},{code:`370405`,name:`台儿庄区`},{code:`370406`,name:`山亭区`},{code:`370481`,name:`滕州市`}]},{code:`370500`,name:`东营市`,districts:[{code:`370502`,name:`东营区`},{code:`370503`,name:`河口区`},{code:`370505`,name:`垦利区`},{code:`370522`,name:`利津县`},{code:`370523`,name:`广饶县`}]},{code:`370600`,name:`烟台市`,districts:[{code:`370602`,name:`芝罘区`},{code:`370611`,name:`福山区`},{code:`370612`,name:`牟平区`},{code:`370613`,name:`莱山区`},{code:`370614`,name:`蓬莱区`},{code:`370681`,name:`龙口市`},{code:`370682`,name:`莱阳市`},{code:`370683`,name:`莱州市`},{code:`370685`,name:`招远市`},{code:`370686`,name:`栖霞市`},{code:`370687`,name:`海阳市`}]},{code:`370700`,name:`潍坊市`,districts:[{code:`370702`,name:`潍城区`},{code:`370703`,name:`寒亭区`},{code:`370704`,name:`坊子区`},{code:`370705`,name:`奎文区`},{code:`370724`,name:`临朐县`},{code:`370725`,name:`昌乐县`},{code:`370781`,name:`青州市`},{code:`370782`,name:`诸城市`},{code:`370783`,name:`寿光市`},{code:`370784`,name:`安丘市`},{code:`370785`,name:`高密市`},{code:`370786`,name:`昌邑市`}]},{code:`370800`,name:`济宁市`,districts:[{code:`370811`,name:`任城区`},{code:`370812`,name:`兖州区`},{code:`370826`,name:`微山县`},{code:`370827`,name:`鱼台县`},{code:`370828`,name:`金乡县`},{code:`370829`,name:`嘉祥县`},{code:`370830`,name:`汶上县`},{code:`370831`,name:`泗水县`},{code:`370832`,name:`梁山县`},{code:`370881`,name:`曲阜市`},{code:`370883`,name:`邹城市`}]},{code:`370900`,name:`泰安市`,districts:[{code:`370902`,name:`泰山区`},{code:`370911`,name:`岱岳区`},{code:`370921`,name:`宁阳县`},{code:`370923`,name:`东平县`},{code:`370982`,name:`新泰市`},{code:`370983`,name:`肥城市`}]},{code:`371000`,name:`威海市`,districts:[{code:`371002`,name:`环翠区`},{code:`371003`,name:`文登区`},{code:`371082`,name:`荣成市`},{code:`371083`,name:`乳山市`}]},{code:`371100`,name:`日照市`,districts:[{code:`371102`,name:`东港区`},{code:`371103`,name:`岚山区`},{code:`371121`,name:`五莲县`},{code:`371122`,name:`莒县`}]},{code:`371300`,name:`临沂市`,districts:[{code:`371302`,name:`兰山区`},{code:`371311`,name:`罗庄区`},{code:`371312`,name:`河东区`},{code:`371321`,name:`沂南县`},{code:`371322`,name:`郯城县`},{code:`371323`,name:`沂水县`},{code:`371324`,name:`兰陵县`},{code:`371325`,name:`费县`},{code:`371326`,name:`平邑县`},{code:`371327`,name:`莒南县`},{code:`371328`,name:`蒙阴县`},{code:`371329`,name:`临沭县`}]},{code:`371400`,name:`德州市`,districts:[{code:`371402`,name:`德城区`},{code:`371403`,name:`陵城区`},{code:`371422`,name:`宁津县`},{code:`371423`,name:`庆云县`},{code:`371424`,name:`临邑县`},{code:`371425`,name:`齐河县`},{code:`371426`,name:`平原县`},{code:`371427`,name:`夏津县`},{code:`371428`,name:`武城县`},{code:`371481`,name:`乐陵市`},{code:`371482`,name:`禹城市`}]},{code:`371500`,name:`聊城市`,districts:[{code:`371502`,name:`东昌府区`},{code:`371503`,name:`茌平区`},{code:`371521`,name:`阳谷县`},{code:`371522`,name:`莘县`},{code:`371524`,name:`东阿县`},{code:`371525`,name:`冠县`},{code:`371526`,name:`高唐县`},{code:`371581`,name:`临清市`}]},{code:`371600`,name:`滨州市`,districts:[{code:`371602`,name:`滨城区`},{code:`371603`,name:`沾化区`},{code:`371621`,name:`惠民县`},{code:`371622`,name:`阳信县`},{code:`371623`,name:`无棣县`},{code:`371625`,name:`博兴县`},{code:`371681`,name:`邹平市`}]},{code:`371700`,name:`菏泽市`,districts:[{code:`371702`,name:`牡丹区`},{code:`371703`,name:`定陶区`},{code:`371721`,name:`曹县`},{code:`371722`,name:`单县`},{code:`371723`,name:`成武县`},{code:`371724`,name:`巨野县`},{code:`371725`,name:`郓城县`},{code:`371726`,name:`鄄城县`},{code:`371728`,name:`东明县`}]}]},{code:`410000`,name:`河南省`,cities:[{code:`410100`,name:`郑州市`,districts:[{code:`410102`,name:`中原区`},{code:`410103`,name:`二七区`},{code:`410104`,name:`管城回族区`},{code:`410105`,name:`金水区`},{code:`410106`,name:`上街区`},{code:`410108`,name:`惠济区`},{code:`410122`,name:`中牟县`},{code:`410181`,name:`巩义市`},{code:`410182`,name:`荥阳市`},{code:`410183`,name:`新密市`},{code:`410184`,name:`新郑市`},{code:`410185`,name:`登封市`}]},{code:`410200`,name:`开封市`,districts:[{code:`410202`,name:`龙亭区`},{code:`410203`,name:`顺河回族区`},{code:`410204`,name:`鼓楼区`},{code:`410205`,name:`禹王台区`},{code:`410212`,name:`祥符区`},{code:`410221`,name:`杞县`},{code:`410222`,name:`通许县`},{code:`410223`,name:`尉氏县`},{code:`410225`,name:`兰考县`}]},{code:`410300`,name:`洛阳市`,districts:[{code:`410302`,name:`老城区`},{code:`410303`,name:`西工区`},{code:`410304`,name:`瀍河回族区`},{code:`410305`,name:`涧西区`},{code:`410307`,name:`偃师区`},{code:`410308`,name:`孟津区`},{code:`410311`,name:`洛龙区`},{code:`410323`,name:`新安县`},{code:`410324`,name:`栾川县`},{code:`410325`,name:`嵩县`},{code:`410326`,name:`汝阳县`},{code:`410327`,name:`宜阳县`},{code:`410328`,name:`洛宁县`},{code:`410329`,name:`伊川县`}]},{code:`410400`,name:`平顶山市`,districts:[{code:`410402`,name:`新华区`},{code:`410403`,name:`卫东区`},{code:`410404`,name:`石龙区`},{code:`410411`,name:`湛河区`},{code:`410421`,name:`宝丰县`},{code:`410422`,name:`叶县`},{code:`410423`,name:`鲁山县`},{code:`410425`,name:`郏县`},{code:`410481`,name:`舞钢市`},{code:`410482`,name:`汝州市`}]},{code:`410500`,name:`安阳市`,districts:[{code:`410502`,name:`文峰区`},{code:`410503`,name:`北关区`},{code:`410505`,name:`殷都区`},{code:`410506`,name:`龙安区`},{code:`410522`,name:`安阳县`},{code:`410523`,name:`汤阴县`},{code:`410526`,name:`滑县`},{code:`410527`,name:`内黄县`},{code:`410581`,name:`林州市`}]},{code:`410600`,name:`鹤壁市`,districts:[{code:`410602`,name:`鹤山区`},{code:`410603`,name:`山城区`},{code:`410611`,name:`淇滨区`},{code:`410621`,name:`浚县`},{code:`410622`,name:`淇县`}]},{code:`410700`,name:`新乡市`,districts:[{code:`410702`,name:`红旗区`},{code:`410703`,name:`卫滨区`},{code:`410704`,name:`凤泉区`},{code:`410711`,name:`牧野区`},{code:`410721`,name:`新乡县`},{code:`410724`,name:`获嘉县`},{code:`410725`,name:`原阳县`},{code:`410726`,name:`延津县`},{code:`410727`,name:`封丘县`},{code:`410781`,name:`卫辉市`},{code:`410782`,name:`辉县市`},{code:`410783`,name:`长垣市`}]},{code:`410800`,name:`焦作市`,districts:[{code:`410802`,name:`解放区`},{code:`410803`,name:`中站区`},{code:`410804`,name:`马村区`},{code:`410811`,name:`山阳区`},{code:`410821`,name:`修武县`},{code:`410822`,name:`博爱县`},{code:`410823`,name:`武陟县`},{code:`410825`,name:`温县`},{code:`410882`,name:`沁阳市`},{code:`410883`,name:`孟州市`}]},{code:`410900`,name:`濮阳市`,districts:[{code:`410902`,name:`华龙区`},{code:`410922`,name:`清丰县`},{code:`410923`,name:`南乐县`},{code:`410926`,name:`范县`},{code:`410927`,name:`台前县`},{code:`410928`,name:`濮阳县`}]},{code:`411000`,name:`许昌市`,districts:[{code:`411002`,name:`魏都区`},{code:`411003`,name:`建安区`},{code:`411024`,name:`鄢陵县`},{code:`411025`,name:`襄城县`},{code:`411081`,name:`禹州市`},{code:`411082`,name:`长葛市`}]},{code:`411100`,name:`漯河市`,districts:[{code:`411102`,name:`源汇区`},{code:`411103`,name:`郾城区`},{code:`411104`,name:`召陵区`},{code:`411121`,name:`舞阳县`},{code:`411122`,name:`临颍县`}]},{code:`411200`,name:`三门峡市`,districts:[{code:`411202`,name:`湖滨区`},{code:`411203`,name:`陕州区`},{code:`411221`,name:`渑池县`},{code:`411224`,name:`卢氏县`},{code:`411281`,name:`义马市`},{code:`411282`,name:`灵宝市`}]},{code:`411300`,name:`南阳市`,districts:[{code:`411302`,name:`宛城区`},{code:`411303`,name:`卧龙区`},{code:`411321`,name:`南召县`},{code:`411322`,name:`方城县`},{code:`411323`,name:`西峡县`},{code:`411324`,name:`镇平县`},{code:`411325`,name:`内乡县`},{code:`411326`,name:`淅川县`},{code:`411327`,name:`社旗县`},{code:`411328`,name:`唐河县`},{code:`411329`,name:`新野县`},{code:`411330`,name:`桐柏县`},{code:`411381`,name:`邓州市`}]},{code:`411400`,name:`商丘市`,districts:[{code:`411402`,name:`梁园区`},{code:`411403`,name:`睢阳区`},{code:`411421`,name:`民权县`},{code:`411422`,name:`睢县`},{code:`411423`,name:`宁陵县`},{code:`411424`,name:`柘城县`},{code:`411425`,name:`虞城县`},{code:`411426`,name:`夏邑县`},{code:`411481`,name:`永城市`}]},{code:`411500`,name:`信阳市`,districts:[{code:`411502`,name:`浉河区`},{code:`411503`,name:`平桥区`},{code:`411521`,name:`罗山县`},{code:`411522`,name:`光山县`},{code:`411523`,name:`新县`},{code:`411524`,name:`商城县`},{code:`411525`,name:`固始县`},{code:`411526`,name:`潢川县`},{code:`411527`,name:`淮滨县`},{code:`411528`,name:`息县`}]},{code:`411600`,name:`周口市`,districts:[{code:`411602`,name:`川汇区`},{code:`411603`,name:`淮阳区`},{code:`411621`,name:`扶沟县`},{code:`411622`,name:`西华县`},{code:`411623`,name:`商水县`},{code:`411624`,name:`沈丘县`},{code:`411625`,name:`郸城县`},{code:`411627`,name:`太康县`},{code:`411628`,name:`鹿邑县`},{code:`411681`,name:`项城市`}]},{code:`411700`,name:`驻马店市`,districts:[{code:`411702`,name:`驿城区`},{code:`411721`,name:`西平县`},{code:`411722`,name:`上蔡县`},{code:`411723`,name:`平舆县`},{code:`411724`,name:`正阳县`},{code:`411725`,name:`确山县`},{code:`411726`,name:`泌阳县`},{code:`411727`,name:`汝南县`},{code:`411728`,name:`遂平县`},{code:`411729`,name:`新蔡县`}]},{code:`419001`,name:`济源市`,districts:[{code:`419001`,name:`济源市`}]}]},{code:`420000`,name:`湖北省`,cities:[{code:`420100`,name:`武汉市`,districts:[{code:`420102`,name:`江岸区`},{code:`420103`,name:`江汉区`},{code:`420104`,name:`硚口区`},{code:`420105`,name:`汉阳区`},{code:`420106`,name:`武昌区`},{code:`420107`,name:`青山区`},{code:`420111`,name:`洪山区`},{code:`420112`,name:`东西湖区`},{code:`420113`,name:`汉南区`},{code:`420114`,name:`蔡甸区`},{code:`420115`,name:`江夏区`},{code:`420116`,name:`黄陂区`},{code:`420117`,name:`新洲区`}]},{code:`420200`,name:`黄石市`,districts:[{code:`420202`,name:`黄石港区`},{code:`420203`,name:`西塞山区`},{code:`420204`,name:`下陆区`},{code:`420205`,name:`铁山区`},{code:`420222`,name:`阳新县`},{code:`420281`,name:`大冶市`}]},{code:`420300`,name:`十堰市`,districts:[{code:`420302`,name:`茅箭区`},{code:`420303`,name:`张湾区`},{code:`420304`,name:`郧阳区`},{code:`420322`,name:`郧西县`},{code:`420323`,name:`竹山县`},{code:`420324`,name:`竹溪县`},{code:`420325`,name:`房县`},{code:`420381`,name:`丹江口市`}]},{code:`420500`,name:`宜昌市`,districts:[{code:`420502`,name:`西陵区`},{code:`420503`,name:`伍家岗区`},{code:`420504`,name:`点军区`},{code:`420505`,name:`猇亭区`},{code:`420506`,name:`夷陵区`},{code:`420525`,name:`远安县`},{code:`420526`,name:`兴山县`},{code:`420527`,name:`秭归县`},{code:`420528`,name:`长阳土家族自治县`},{code:`420529`,name:`五峰土家族自治县`},{code:`420581`,name:`宜都市`},{code:`420582`,name:`当阳市`},{code:`420583`,name:`枝江市`}]},{code:`420600`,name:`襄阳市`,districts:[{code:`420602`,name:`襄城区`},{code:`420606`,name:`樊城区`},{code:`420607`,name:`襄州区`},{code:`420624`,name:`南漳县`},{code:`420625`,name:`谷城县`},{code:`420626`,name:`保康县`},{code:`420682`,name:`老河口市`},{code:`420683`,name:`枣阳市`},{code:`420684`,name:`宜城市`}]},{code:`420700`,name:`鄂州市`,districts:[{code:`420702`,name:`梁子湖区`},{code:`420703`,name:`华容区`},{code:`420704`,name:`鄂城区`}]},{code:`420800`,name:`荆门市`,districts:[{code:`420802`,name:`东宝区`},{code:`420804`,name:`掇刀区`},{code:`420822`,name:`沙洋县`},{code:`420881`,name:`钟祥市`},{code:`420882`,name:`京山市`}]},{code:`420900`,name:`孝感市`,districts:[{code:`420902`,name:`孝南区`},{code:`420921`,name:`孝昌县`},{code:`420922`,name:`大悟县`},{code:`420923`,name:`云梦县`},{code:`420981`,name:`应城市`},{code:`420982`,name:`安陆市`},{code:`420984`,name:`汉川市`}]},{code:`421000`,name:`荆州市`,districts:[{code:`421002`,name:`沙市区`},{code:`421003`,name:`荆州区`},{code:`421022`,name:`公安县`},{code:`421024`,name:`江陵县`},{code:`421081`,name:`石首市`},{code:`421083`,name:`洪湖市`},{code:`421087`,name:`松滋市`},{code:`421088`,name:`监利市`}]},{code:`421100`,name:`黄冈市`,districts:[{code:`421102`,name:`黄州区`},{code:`421121`,name:`团风县`},{code:`421122`,name:`红安县`},{code:`421123`,name:`罗田县`},{code:`421124`,name:`英山县`},{code:`421125`,name:`浠水县`},{code:`421126`,name:`蕲春县`},{code:`421127`,name:`黄梅县`},{code:`421181`,name:`麻城市`},{code:`421182`,name:`武穴市`}]},{code:`421200`,name:`咸宁市`,districts:[{code:`421202`,name:`咸安区`},{code:`421221`,name:`嘉鱼县`},{code:`421222`,name:`通城县`},{code:`421223`,name:`崇阳县`},{code:`421224`,name:`通山县`},{code:`421281`,name:`赤壁市`}]},{code:`421300`,name:`随州市`,districts:[{code:`421303`,name:`曾都区`},{code:`421321`,name:`随县`},{code:`421381`,name:`广水市`}]},{code:`422800`,name:`恩施土家族苗族自治州`,districts:[{code:`422801`,name:`恩施市`},{code:`422802`,name:`利川市`},{code:`422822`,name:`建始县`},{code:`422823`,name:`巴东县`},{code:`422825`,name:`宣恩县`},{code:`422826`,name:`咸丰县`},{code:`422827`,name:`来凤县`},{code:`422828`,name:`鹤峰县`}]},{code:`429004`,name:`仙桃市`,districts:[{code:`429004`,name:`仙桃市`}]},{code:`429005`,name:`潜江市`,districts:[{code:`429005`,name:`潜江市`}]},{code:`429006`,name:`天门市`,districts:[{code:`429006`,name:`天门市`}]},{code:`429021`,name:`神农架林区`,districts:[{code:`429021`,name:`神农架林区`}]}]},{code:`430000`,name:`湖南省`,cities:[{code:`430100`,name:`长沙市`,districts:[{code:`430102`,name:`芙蓉区`},{code:`430103`,name:`天心区`},{code:`430104`,name:`岳麓区`},{code:`430105`,name:`开福区`},{code:`430111`,name:`雨花区`},{code:`430112`,name:`望城区`},{code:`430121`,name:`长沙县`},{code:`430181`,name:`浏阳市`},{code:`430182`,name:`宁乡市`}]},{code:`430200`,name:`株洲市`,districts:[{code:`430202`,name:`荷塘区`},{code:`430203`,name:`芦淞区`},{code:`430204`,name:`石峰区`},{code:`430211`,name:`天元区`},{code:`430212`,name:`渌口区`},{code:`430223`,name:`攸县`},{code:`430224`,name:`茶陵县`},{code:`430225`,name:`炎陵县`},{code:`430281`,name:`醴陵市`}]},{code:`430300`,name:`湘潭市`,districts:[{code:`430302`,name:`雨湖区`},{code:`430304`,name:`岳塘区`},{code:`430321`,name:`湘潭县`},{code:`430381`,name:`湘乡市`},{code:`430382`,name:`韶山市`}]},{code:`430400`,name:`衡阳市`,districts:[{code:`430405`,name:`珠晖区`},{code:`430406`,name:`雁峰区`},{code:`430407`,name:`石鼓区`},{code:`430408`,name:`蒸湘区`},{code:`430412`,name:`南岳区`},{code:`430421`,name:`衡阳县`},{code:`430422`,name:`衡南县`},{code:`430423`,name:`衡山县`},{code:`430424`,name:`衡东县`},{code:`430426`,name:`祁东县`},{code:`430481`,name:`耒阳市`},{code:`430482`,name:`常宁市`}]},{code:`430500`,name:`邵阳市`,districts:[{code:`430502`,name:`双清区`},{code:`430503`,name:`大祥区`},{code:`430511`,name:`北塔区`},{code:`430522`,name:`新邵县`},{code:`430523`,name:`邵阳县`},{code:`430524`,name:`隆回县`},{code:`430525`,name:`洞口县`},{code:`430527`,name:`绥宁县`},{code:`430528`,name:`新宁县`},{code:`430529`,name:`城步苗族自治县`},{code:`430581`,name:`武冈市`},{code:`430582`,name:`邵东市`}]},{code:`430600`,name:`岳阳市`,districts:[{code:`430602`,name:`岳阳楼区`},{code:`430603`,name:`云溪区`},{code:`430611`,name:`君山区`},{code:`430621`,name:`岳阳县`},{code:`430623`,name:`华容县`},{code:`430624`,name:`湘阴县`},{code:`430626`,name:`平江县`},{code:`430681`,name:`汨罗市`},{code:`430682`,name:`临湘市`}]},{code:`430700`,name:`常德市`,districts:[{code:`430702`,name:`武陵区`},{code:`430703`,name:`鼎城区`},{code:`430721`,name:`安乡县`},{code:`430722`,name:`汉寿县`},{code:`430723`,name:`澧县`},{code:`430724`,name:`临澧县`},{code:`430725`,name:`桃源县`},{code:`430726`,name:`石门县`},{code:`430781`,name:`津市市`}]},{code:`430800`,name:`张家界市`,districts:[{code:`430802`,name:`永定区`},{code:`430811`,name:`武陵源区`},{code:`430821`,name:`慈利县`},{code:`430822`,name:`桑植县`}]},{code:`430900`,name:`益阳市`,districts:[{code:`430902`,name:`资阳区`},{code:`430903`,name:`赫山区`},{code:`430921`,name:`南县`},{code:`430922`,name:`桃江县`},{code:`430923`,name:`安化县`},{code:`430981`,name:`沅江市`}]},{code:`431000`,name:`郴州市`,districts:[{code:`431002`,name:`北湖区`},{code:`431003`,name:`苏仙区`},{code:`431021`,name:`桂阳县`},{code:`431022`,name:`宜章县`},{code:`431023`,name:`永兴县`},{code:`431024`,name:`嘉禾县`},{code:`431025`,name:`临武县`},{code:`431026`,name:`汝城县`},{code:`431027`,name:`桂东县`},{code:`431028`,name:`安仁县`},{code:`431081`,name:`资兴市`}]},{code:`431100`,name:`永州市`,districts:[{code:`431102`,name:`零陵区`},{code:`431103`,name:`冷水滩区`},{code:`431122`,name:`东安县`},{code:`431123`,name:`双牌县`},{code:`431124`,name:`道县`},{code:`431125`,name:`江永县`},{code:`431126`,name:`宁远县`},{code:`431127`,name:`蓝山县`},{code:`431128`,name:`新田县`},{code:`431129`,name:`江华瑶族自治县`},{code:`431181`,name:`祁阳市`}]},{code:`431200`,name:`怀化市`,districts:[{code:`431202`,name:`鹤城区`},{code:`431221`,name:`中方县`},{code:`431222`,name:`沅陵县`},{code:`431223`,name:`辰溪县`},{code:`431224`,name:`溆浦县`},{code:`431225`,name:`会同县`},{code:`431226`,name:`麻阳苗族自治县`},{code:`431227`,name:`新晃侗族自治县`},{code:`431228`,name:`芷江侗族自治县`},{code:`431229`,name:`靖州苗族侗族自治县`},{code:`431230`,name:`通道侗族自治县`},{code:`431281`,name:`洪江市`}]},{code:`431300`,name:`娄底市`,districts:[{code:`431302`,name:`娄星区`},{code:`431321`,name:`双峰县`},{code:`431322`,name:`新化县`},{code:`431381`,name:`冷水江市`},{code:`431382`,name:`涟源市`}]},{code:`433100`,name:`湘西土家族苗族自治州`,districts:[{code:`433101`,name:`吉首市`},{code:`433122`,name:`泸溪县`},{code:`433123`,name:`凤凰县`},{code:`433124`,name:`花垣县`},{code:`433125`,name:`保靖县`},{code:`433126`,name:`古丈县`},{code:`433127`,name:`永顺县`},{code:`433130`,name:`龙山县`}]}]},{code:`440000`,name:`广东省`,cities:[{code:`440100`,name:`广州市`,districts:[{code:`440103`,name:`荔湾区`},{code:`440104`,name:`越秀区`},{code:`440105`,name:`海珠区`},{code:`440106`,name:`天河区`},{code:`440111`,name:`白云区`},{code:`440112`,name:`黄埔区`},{code:`440113`,name:`番禺区`},{code:`440114`,name:`花都区`},{code:`440115`,name:`南沙区`},{code:`440117`,name:`从化区`},{code:`440118`,name:`增城区`}]},{code:`440200`,name:`韶关市`,districts:[{code:`440203`,name:`武江区`},{code:`440204`,name:`浈江区`},{code:`440205`,name:`曲江区`},{code:`440222`,name:`始兴县`},{code:`440224`,name:`仁化县`},{code:`440229`,name:`翁源县`},{code:`440232`,name:`乳源瑶族自治县`},{code:`440233`,name:`新丰县`},{code:`440281`,name:`乐昌市`},{code:`440282`,name:`南雄市`}]},{code:`440300`,name:`深圳市`,districts:[{code:`440303`,name:`罗湖区`},{code:`440304`,name:`福田区`},{code:`440305`,name:`南山区`},{code:`440306`,name:`宝安区`},{code:`440307`,name:`龙岗区`},{code:`440308`,name:`盐田区`},{code:`440309`,name:`龙华区`},{code:`440310`,name:`坪山区`},{code:`440311`,name:`光明区`}]},{code:`440400`,name:`珠海市`,districts:[{code:`440402`,name:`香洲区`},{code:`440403`,name:`斗门区`},{code:`440404`,name:`金湾区`}]},{code:`440500`,name:`汕头市`,districts:[{code:`440507`,name:`龙湖区`},{code:`440511`,name:`金平区`},{code:`440512`,name:`濠江区`},{code:`440513`,name:`潮阳区`},{code:`440514`,name:`潮南区`},{code:`440515`,name:`澄海区`},{code:`440523`,name:`南澳县`}]},{code:`440600`,name:`佛山市`,districts:[{code:`440604`,name:`禅城区`},{code:`440605`,name:`南海区`},{code:`440606`,name:`顺德区`},{code:`440607`,name:`三水区`},{code:`440608`,name:`高明区`}]},{code:`440700`,name:`江门市`,districts:[{code:`440703`,name:`蓬江区`},{code:`440704`,name:`江海区`},{code:`440705`,name:`新会区`},{code:`440781`,name:`台山市`},{code:`440783`,name:`开平市`},{code:`440784`,name:`鹤山市`},{code:`440785`,name:`恩平市`}]},{code:`440800`,name:`湛江市`,districts:[{code:`440802`,name:`赤坎区`},{code:`440803`,name:`霞山区`},{code:`440804`,name:`坡头区`},{code:`440811`,name:`麻章区`},{code:`440823`,name:`遂溪县`},{code:`440825`,name:`徐闻县`},{code:`440881`,name:`廉江市`},{code:`440882`,name:`雷州市`},{code:`440883`,name:`吴川市`}]},{code:`440900`,name:`茂名市`,districts:[{code:`440902`,name:`茂南区`},{code:`440904`,name:`电白区`},{code:`440981`,name:`高州市`},{code:`440982`,name:`化州市`},{code:`440983`,name:`信宜市`}]},{code:`441200`,name:`肇庆市`,districts:[{code:`441202`,name:`端州区`},{code:`441203`,name:`鼎湖区`},{code:`441204`,name:`高要区`},{code:`441223`,name:`广宁县`},{code:`441224`,name:`怀集县`},{code:`441225`,name:`封开县`},{code:`441226`,name:`德庆县`},{code:`441284`,name:`四会市`}]},{code:`441300`,name:`惠州市`,districts:[{code:`441302`,name:`惠城区`},{code:`441303`,name:`惠阳区`},{code:`441322`,name:`博罗县`},{code:`441323`,name:`惠东县`},{code:`441324`,name:`龙门县`}]},{code:`441400`,name:`梅州市`,districts:[{code:`441402`,name:`梅江区`},{code:`441403`,name:`梅县区`},{code:`441422`,name:`大埔县`},{code:`441423`,name:`丰顺县`},{code:`441424`,name:`五华县`},{code:`441426`,name:`平远县`},{code:`441427`,name:`蕉岭县`},{code:`441481`,name:`兴宁市`}]},{code:`441500`,name:`汕尾市`,districts:[{code:`441502`,name:`城区`},{code:`441521`,name:`海丰县`},{code:`441523`,name:`陆河县`},{code:`441581`,name:`陆丰市`}]},{code:`441600`,name:`河源市`,districts:[{code:`441602`,name:`源城区`},{code:`441621`,name:`紫金县`},{code:`441622`,name:`龙川县`},{code:`441623`,name:`连平县`},{code:`441624`,name:`和平县`},{code:`441625`,name:`东源县`}]},{code:`441700`,name:`阳江市`,districts:[{code:`441702`,name:`江城区`},{code:`441704`,name:`阳东区`},{code:`441721`,name:`阳西县`},{code:`441781`,name:`阳春市`}]},{code:`441800`,name:`清远市`,districts:[{code:`441802`,name:`清城区`},{code:`441803`,name:`清新区`},{code:`441821`,name:`佛冈县`},{code:`441823`,name:`阳山县`},{code:`441825`,name:`连山壮族瑶族自治县`},{code:`441826`,name:`连南瑶族自治县`},{code:`441881`,name:`英德市`},{code:`441882`,name:`连州市`}]},{code:`441900`,name:`东莞市`,districts:[{code:`441900`,name:`东莞市`}]},{code:`442000`,name:`中山市`,districts:[{code:`442000`,name:`中山市`}]},{code:`445100`,name:`潮州市`,districts:[{code:`445102`,name:`湘桥区`},{code:`445103`,name:`潮安区`},{code:`445122`,name:`饶平县`}]},{code:`445200`,name:`揭阳市`,districts:[{code:`445202`,name:`榕城区`},{code:`445203`,name:`揭东区`},{code:`445222`,name:`揭西县`},{code:`445224`,name:`惠来县`},{code:`445281`,name:`普宁市`}]},{code:`445300`,name:`云浮市`,districts:[{code:`445302`,name:`云城区`},{code:`445303`,name:`云安区`},{code:`445321`,name:`新兴县`},{code:`445322`,name:`郁南县`},{code:`445381`,name:`罗定市`}]}]},{code:`450000`,name:`广西壮族自治区`,cities:[{code:`450100`,name:`南宁市`,districts:[{code:`450102`,name:`兴宁区`},{code:`450103`,name:`青秀区`},{code:`450105`,name:`江南区`},{code:`450107`,name:`西乡塘区`},{code:`450108`,name:`良庆区`},{code:`450109`,name:`邕宁区`},{code:`450110`,name:`武鸣区`},{code:`450123`,name:`隆安县`},{code:`450124`,name:`马山县`},{code:`450125`,name:`上林县`},{code:`450126`,name:`宾阳县`},{code:`450181`,name:`横州市`}]},{code:`450200`,name:`柳州市`,districts:[{code:`450202`,name:`城中区`},{code:`450203`,name:`鱼峰区`},{code:`450204`,name:`柳南区`},{code:`450205`,name:`柳北区`},{code:`450206`,name:`柳江区`},{code:`450222`,name:`柳城县`},{code:`450223`,name:`鹿寨县`},{code:`450224`,name:`融安县`},{code:`450225`,name:`融水苗族自治县`},{code:`450226`,name:`三江侗族自治县`}]},{code:`450300`,name:`桂林市`,districts:[{code:`450302`,name:`秀峰区`},{code:`450303`,name:`叠彩区`},{code:`450304`,name:`象山区`},{code:`450305`,name:`七星区`},{code:`450311`,name:`雁山区`},{code:`450312`,name:`临桂区`},{code:`450321`,name:`阳朔县`},{code:`450323`,name:`灵川县`},{code:`450324`,name:`全州县`},{code:`450325`,name:`兴安县`},{code:`450326`,name:`永福县`},{code:`450327`,name:`灌阳县`},{code:`450328`,name:`龙胜各族自治县`},{code:`450329`,name:`资源县`},{code:`450330`,name:`平乐县`},{code:`450332`,name:`恭城瑶族自治县`},{code:`450381`,name:`荔浦市`}]},{code:`450400`,name:`梧州市`,districts:[{code:`450403`,name:`万秀区`},{code:`450405`,name:`长洲区`},{code:`450406`,name:`龙圩区`},{code:`450421`,name:`苍梧县`},{code:`450422`,name:`藤县`},{code:`450423`,name:`蒙山县`},{code:`450481`,name:`岑溪市`}]},{code:`450500`,name:`北海市`,districts:[{code:`450502`,name:`海城区`},{code:`450503`,name:`银海区`},{code:`450512`,name:`铁山港区`},{code:`450521`,name:`合浦县`}]},{code:`450600`,name:`防城港市`,districts:[{code:`450602`,name:`港口区`},{code:`450603`,name:`防城区`},{code:`450621`,name:`上思县`},{code:`450681`,name:`东兴市`}]},{code:`450700`,name:`钦州市`,districts:[{code:`450702`,name:`钦南区`},{code:`450703`,name:`钦北区`},{code:`450721`,name:`灵山县`},{code:`450722`,name:`浦北县`}]},{code:`450800`,name:`贵港市`,districts:[{code:`450802`,name:`港北区`},{code:`450803`,name:`港南区`},{code:`450804`,name:`覃塘区`},{code:`450821`,name:`平南县`},{code:`450881`,name:`桂平市`}]},{code:`450900`,name:`玉林市`,districts:[{code:`450902`,name:`玉州区`},{code:`450903`,name:`福绵区`},{code:`450921`,name:`容县`},{code:`450922`,name:`陆川县`},{code:`450923`,name:`博白县`},{code:`450924`,name:`兴业县`},{code:`450981`,name:`北流市`}]},{code:`451000`,name:`百色市`,districts:[{code:`451002`,name:`右江区`},{code:`451003`,name:`田阳区`},{code:`451022`,name:`田东县`},{code:`451024`,name:`德保县`},{code:`451026`,name:`那坡县`},{code:`451027`,name:`凌云县`},{code:`451028`,name:`乐业县`},{code:`451029`,name:`田林县`},{code:`451030`,name:`西林县`},{code:`451031`,name:`隆林各族自治县`},{code:`451081`,name:`靖西市`},{code:`451082`,name:`平果市`}]},{code:`451100`,name:`贺州市`,districts:[{code:`451102`,name:`八步区`},{code:`451103`,name:`平桂区`},{code:`451121`,name:`昭平县`},{code:`451122`,name:`钟山县`},{code:`451123`,name:`富川瑶族自治县`}]},{code:`451200`,name:`河池市`,districts:[{code:`451202`,name:`金城江区`},{code:`451203`,name:`宜州区`},{code:`451221`,name:`南丹县`},{code:`451222`,name:`天峨县`},{code:`451223`,name:`凤山县`},{code:`451224`,name:`东兰县`},{code:`451225`,name:`罗城仫佬族自治县`},{code:`451226`,name:`环江毛南族自治县`},{code:`451227`,name:`巴马瑶族自治县`},{code:`451228`,name:`都安瑶族自治县`},{code:`451229`,name:`大化瑶族自治县`}]},{code:`451300`,name:`来宾市`,districts:[{code:`451302`,name:`兴宾区`},{code:`451321`,name:`忻城县`},{code:`451322`,name:`象州县`},{code:`451323`,name:`武宣县`},{code:`451324`,name:`金秀瑶族自治县`},{code:`451381`,name:`合山市`}]},{code:`451400`,name:`崇左市`,districts:[{code:`451402`,name:`江州区`},{code:`451421`,name:`扶绥县`},{code:`451422`,name:`宁明县`},{code:`451423`,name:`龙州县`},{code:`451424`,name:`大新县`},{code:`451425`,name:`天等县`},{code:`451481`,name:`凭祥市`}]}]},{code:`460000`,name:`海南省`,cities:[{code:`460100`,name:`海口市`,districts:[{code:`460105`,name:`秀英区`},{code:`460106`,name:`龙华区`},{code:`460107`,name:`琼山区`},{code:`460108`,name:`美兰区`}]},{code:`460200`,name:`三亚市`,districts:[{code:`460202`,name:`海棠区`},{code:`460203`,name:`吉阳区`},{code:`460204`,name:`天涯区`},{code:`460205`,name:`崖州区`}]},{code:`460300`,name:`三沙市`,districts:[{code:`460302`,name:`西沙区`},{code:`460303`,name:`南沙区`}]},{code:`460400`,name:`儋州市`,districts:[{code:`460400`,name:`儋州市`}]},{code:`469001`,name:`五指山市`,districts:[{code:`469001`,name:`五指山市`}]},{code:`469002`,name:`琼海市`,districts:[{code:`469002`,name:`琼海市`}]},{code:`469005`,name:`文昌市`,districts:[{code:`469005`,name:`文昌市`}]},{code:`469006`,name:`万宁市`,districts:[{code:`469006`,name:`万宁市`}]},{code:`469007`,name:`东方市`,districts:[{code:`469007`,name:`东方市`}]},{code:`469021`,name:`定安县`,districts:[{code:`469021`,name:`定安县`}]},{code:`469022`,name:`屯昌县`,districts:[{code:`469022`,name:`屯昌县`}]},{code:`469023`,name:`澄迈县`,districts:[{code:`469023`,name:`澄迈县`}]},{code:`469024`,name:`临高县`,districts:[{code:`469024`,name:`临高县`}]},{code:`469025`,name:`白沙黎族自治县`,districts:[{code:`469025`,name:`白沙黎族自治县`}]},{code:`469026`,name:`昌江黎族自治县`,districts:[{code:`469026`,name:`昌江黎族自治县`}]},{code:`469027`,name:`乐东黎族自治县`,districts:[{code:`469027`,name:`乐东黎族自治县`}]},{code:`469028`,name:`陵水黎族自治县`,districts:[{code:`469028`,name:`陵水黎族自治县`}]},{code:`469029`,name:`保亭黎族苗族自治县`,districts:[{code:`469029`,name:`保亭黎族苗族自治县`}]},{code:`469030`,name:`琼中黎族苗族自治县`,districts:[{code:`469030`,name:`琼中黎族苗族自治县`}]}]},{code:`500000`,name:`重庆市`,cities:[{code:`500100`,name:`重庆城区`,districts:[{code:`500101`,name:`万州区`},{code:`500102`,name:`涪陵区`},{code:`500103`,name:`渝中区`},{code:`500104`,name:`大渡口区`},{code:`500106`,name:`沙坪坝区`},{code:`500107`,name:`九龙坡区`},{code:`500108`,name:`南岸区`},{code:`500109`,name:`北碚区`},{code:`500110`,name:`綦江区`},{code:`500111`,name:`大足区`},{code:`500113`,name:`巴南区`},{code:`500114`,name:`黔江区`},{code:`500115`,name:`长寿区`},{code:`500116`,name:`江津区`},{code:`500117`,name:`合川区`},{code:`500118`,name:`永川区`},{code:`500119`,name:`南川区`},{code:`500120`,name:`璧山区`},{code:`500151`,name:`铜梁区`},{code:`500152`,name:`潼南区`},{code:`500153`,name:`荣昌区`},{code:`500154`,name:`开州区`},{code:`500155`,name:`梁平区`},{code:`500156`,name:`武隆区`},{code:`500157`,name:`两江新区`}]},{code:`500200`,name:`重庆郊县`,districts:[{code:`500229`,name:`城口县`},{code:`500230`,name:`丰都县`},{code:`500231`,name:`垫江县`},{code:`500233`,name:`忠县`},{code:`500235`,name:`云阳县`},{code:`500236`,name:`奉节县`},{code:`500237`,name:`巫山县`},{code:`500238`,name:`巫溪县`},{code:`500240`,name:`石柱土家族自治县`},{code:`500241`,name:`秀山土家族苗族自治县`},{code:`500242`,name:`酉阳土家族苗族自治县`},{code:`500243`,name:`彭水苗族土家族自治县`}]}]},{code:`510000`,name:`四川省`,cities:[{code:`510100`,name:`成都市`,districts:[{code:`510104`,name:`锦江区`},{code:`510105`,name:`青羊区`},{code:`510106`,name:`金牛区`},{code:`510107`,name:`武侯区`},{code:`510108`,name:`成华区`},{code:`510112`,name:`龙泉驿区`},{code:`510113`,name:`青白江区`},{code:`510114`,name:`新都区`},{code:`510115`,name:`温江区`},{code:`510116`,name:`双流区`},{code:`510117`,name:`郫都区`},{code:`510118`,name:`新津区`},{code:`510121`,name:`金堂县`},{code:`510129`,name:`大邑县`},{code:`510131`,name:`蒲江县`},{code:`510181`,name:`都江堰市`},{code:`510182`,name:`彭州市`},{code:`510183`,name:`邛崃市`},{code:`510184`,name:`崇州市`},{code:`510185`,name:`简阳市`}]},{code:`510300`,name:`自贡市`,districts:[{code:`510302`,name:`自流井区`},{code:`510303`,name:`贡井区`},{code:`510304`,name:`大安区`},{code:`510311`,name:`沿滩区`},{code:`510321`,name:`荣县`},{code:`510322`,name:`富顺县`}]},{code:`510400`,name:`攀枝花市`,districts:[{code:`510402`,name:`东区`},{code:`510403`,name:`西区`},{code:`510411`,name:`仁和区`},{code:`510421`,name:`米易县`},{code:`510422`,name:`盐边县`}]},{code:`510500`,name:`泸州市`,districts:[{code:`510502`,name:`江阳区`},{code:`510503`,name:`纳溪区`},{code:`510504`,name:`龙马潭区`},{code:`510521`,name:`泸县`},{code:`510522`,name:`合江县`},{code:`510524`,name:`叙永县`},{code:`510525`,name:`古蔺县`}]},{code:`510600`,name:`德阳市`,districts:[{code:`510603`,name:`旌阳区`},{code:`510604`,name:`罗江区`},{code:`510623`,name:`中江县`},{code:`510681`,name:`广汉市`},{code:`510682`,name:`什邡市`},{code:`510683`,name:`绵竹市`}]},{code:`510700`,name:`绵阳市`,districts:[{code:`510703`,name:`涪城区`},{code:`510704`,name:`游仙区`},{code:`510705`,name:`安州区`},{code:`510722`,name:`三台县`},{code:`510723`,name:`盐亭县`},{code:`510725`,name:`梓潼县`},{code:`510726`,name:`北川羌族自治县`},{code:`510727`,name:`平武县`},{code:`510781`,name:`江油市`}]},{code:`510800`,name:`广元市`,districts:[{code:`510802`,name:`利州区`},{code:`510811`,name:`昭化区`},{code:`510812`,name:`朝天区`},{code:`510821`,name:`旺苍县`},{code:`510822`,name:`青川县`},{code:`510823`,name:`剑阁县`},{code:`510824`,name:`苍溪县`}]},{code:`510900`,name:`遂宁市`,districts:[{code:`510903`,name:`船山区`},{code:`510904`,name:`安居区`},{code:`510921`,name:`蓬溪县`},{code:`510923`,name:`大英县`},{code:`510981`,name:`射洪市`}]},{code:`511000`,name:`内江市`,districts:[{code:`511002`,name:`市中区`},{code:`511011`,name:`东兴区`},{code:`511024`,name:`威远县`},{code:`511025`,name:`资中县`},{code:`511083`,name:`隆昌市`}]},{code:`511100`,name:`乐山市`,districts:[{code:`511102`,name:`市中区`},{code:`511111`,name:`沙湾区`},{code:`511112`,name:`五通桥区`},{code:`511113`,name:`金口河区`},{code:`511123`,name:`犍为县`},{code:`511124`,name:`井研县`},{code:`511126`,name:`夹江县`},{code:`511129`,name:`沐川县`},{code:`511132`,name:`峨边彝族自治县`},{code:`511133`,name:`马边彝族自治县`},{code:`511181`,name:`峨眉山市`}]},{code:`511300`,name:`南充市`,districts:[{code:`511302`,name:`顺庆区`},{code:`511303`,name:`高坪区`},{code:`511304`,name:`嘉陵区`},{code:`511321`,name:`南部县`},{code:`511322`,name:`营山县`},{code:`511323`,name:`蓬安县`},{code:`511324`,name:`仪陇县`},{code:`511325`,name:`西充县`},{code:`511381`,name:`阆中市`}]},{code:`511400`,name:`眉山市`,districts:[{code:`511402`,name:`东坡区`},{code:`511403`,name:`彭山区`},{code:`511421`,name:`仁寿县`},{code:`511423`,name:`洪雅县`},{code:`511424`,name:`丹棱县`},{code:`511425`,name:`青神县`}]},{code:`511500`,name:`宜宾市`,districts:[{code:`511502`,name:`翠屏区`},{code:`511503`,name:`南溪区`},{code:`511504`,name:`叙州区`},{code:`511523`,name:`江安县`},{code:`511524`,name:`长宁县`},{code:`511525`,name:`高县`},{code:`511526`,name:`珙县`},{code:`511527`,name:`筠连县`},{code:`511528`,name:`兴文县`},{code:`511529`,name:`屏山县`}]},{code:`511600`,name:`广安市`,districts:[{code:`511602`,name:`广安区`},{code:`511603`,name:`前锋区`},{code:`511621`,name:`岳池县`},{code:`511622`,name:`武胜县`},{code:`511623`,name:`邻水县`},{code:`511681`,name:`华蓥市`}]},{code:`511700`,name:`达州市`,districts:[{code:`511702`,name:`通川区`},{code:`511703`,name:`达川区`},{code:`511722`,name:`宣汉县`},{code:`511723`,name:`开江县`},{code:`511724`,name:`大竹县`},{code:`511725`,name:`渠县`},{code:`511781`,name:`万源市`}]},{code:`511800`,name:`雅安市`,districts:[{code:`511802`,name:`雨城区`},{code:`511803`,name:`名山区`},{code:`511822`,name:`荥经县`},{code:`511823`,name:`汉源县`},{code:`511824`,name:`石棉县`},{code:`511825`,name:`天全县`},{code:`511826`,name:`芦山县`},{code:`511827`,name:`宝兴县`}]},{code:`511900`,name:`巴中市`,districts:[{code:`511902`,name:`巴州区`},{code:`511903`,name:`恩阳区`},{code:`511921`,name:`通江县`},{code:`511922`,name:`南江县`},{code:`511923`,name:`平昌县`}]},{code:`512000`,name:`资阳市`,districts:[{code:`512002`,name:`雁江区`},{code:`512021`,name:`安岳县`},{code:`512022`,name:`乐至县`}]},{code:`513200`,name:`阿坝藏族羌族自治州`,districts:[{code:`513201`,name:`马尔康市`},{code:`513221`,name:`汶川县`},{code:`513222`,name:`理县`},{code:`513223`,name:`茂县`},{code:`513224`,name:`松潘县`},{code:`513225`,name:`九寨沟县`},{code:`513226`,name:`金川县`},{code:`513227`,name:`小金县`},{code:`513228`,name:`黑水县`},{code:`513230`,name:`壤塘县`},{code:`513231`,name:`阿坝县`},{code:`513232`,name:`若尔盖县`},{code:`513233`,name:`红原县`}]},{code:`513300`,name:`甘孜藏族自治州`,districts:[{code:`513301`,name:`康定市`},{code:`513322`,name:`泸定县`},{code:`513323`,name:`丹巴县`},{code:`513324`,name:`九龙县`},{code:`513325`,name:`雅江县`},{code:`513326`,name:`道孚县`},{code:`513327`,name:`炉霍县`},{code:`513328`,name:`甘孜县`},{code:`513329`,name:`新龙县`},{code:`513330`,name:`德格县`},{code:`513331`,name:`白玉县`},{code:`513332`,name:`石渠县`},{code:`513333`,name:`色达县`},{code:`513334`,name:`理塘县`},{code:`513335`,name:`巴塘县`},{code:`513336`,name:`乡城县`},{code:`513337`,name:`稻城县`},{code:`513338`,name:`得荣县`}]},{code:`513400`,name:`凉山彝族自治州`,districts:[{code:`513401`,name:`西昌市`},{code:`513402`,name:`会理市`},{code:`513422`,name:`木里藏族自治县`},{code:`513423`,name:`盐源县`},{code:`513424`,name:`德昌县`},{code:`513426`,name:`会东县`},{code:`513427`,name:`宁南县`},{code:`513428`,name:`普格县`},{code:`513429`,name:`布拖县`},{code:`513430`,name:`金阳县`},{code:`513431`,name:`昭觉县`},{code:`513432`,name:`喜德县`},{code:`513433`,name:`冕宁县`},{code:`513434`,name:`越西县`},{code:`513435`,name:`甘洛县`},{code:`513436`,name:`美姑县`},{code:`513437`,name:`雷波县`}]}]},{code:`520000`,name:`贵州省`,cities:[{code:`520100`,name:`贵阳市`,districts:[{code:`520102`,name:`南明区`},{code:`520103`,name:`云岩区`},{code:`520111`,name:`花溪区`},{code:`520112`,name:`乌当区`},{code:`520113`,name:`白云区`},{code:`520115`,name:`观山湖区`},{code:`520121`,name:`开阳县`},{code:`520122`,name:`息烽县`},{code:`520123`,name:`修文县`},{code:`520181`,name:`清镇市`}]},{code:`520200`,name:`六盘水市`,districts:[{code:`520201`,name:`钟山区`},{code:`520203`,name:`六枝特区`},{code:`520204`,name:`水城区`},{code:`520281`,name:`盘州市`}]},{code:`520300`,name:`遵义市`,districts:[{code:`520302`,name:`红花岗区`},{code:`520303`,name:`汇川区`},{code:`520304`,name:`播州区`},{code:`520322`,name:`桐梓县`},{code:`520323`,name:`绥阳县`},{code:`520324`,name:`正安县`},{code:`520325`,name:`道真仡佬族苗族自治县`},{code:`520326`,name:`务川仡佬族苗族自治县`},{code:`520327`,name:`凤冈县`},{code:`520328`,name:`湄潭县`},{code:`520329`,name:`余庆县`},{code:`520330`,name:`习水县`},{code:`520381`,name:`赤水市`},{code:`520382`,name:`仁怀市`}]},{code:`520400`,name:`安顺市`,districts:[{code:`520402`,name:`西秀区`},{code:`520403`,name:`平坝区`},{code:`520422`,name:`普定县`},{code:`520423`,name:`镇宁布依族苗族自治县`},{code:`520424`,name:`关岭布依族苗族自治县`},{code:`520425`,name:`紫云苗族布依族自治县`}]},{code:`520500`,name:`毕节市`,districts:[{code:`520502`,name:`七星关区`},{code:`520521`,name:`大方县`},{code:`520523`,name:`金沙县`},{code:`520524`,name:`织金县`},{code:`520525`,name:`纳雍县`},{code:`520526`,name:`威宁彝族回族苗族自治县`},{code:`520527`,name:`赫章县`},{code:`520581`,name:`黔西市`}]},{code:`520600`,name:`铜仁市`,districts:[{code:`520602`,name:`碧江区`},{code:`520603`,name:`万山区`},{code:`520621`,name:`江口县`},{code:`520622`,name:`玉屏侗族自治县`},{code:`520623`,name:`石阡县`},{code:`520624`,name:`思南县`},{code:`520625`,name:`印江土家族苗族自治县`},{code:`520626`,name:`德江县`},{code:`520627`,name:`沿河土家族自治县`},{code:`520628`,name:`松桃苗族自治县`}]},{code:`522300`,name:`黔西南布依族苗族自治州`,districts:[{code:`522301`,name:`兴义市`},{code:`522302`,name:`兴仁市`},{code:`522323`,name:`普安县`},{code:`522324`,name:`晴隆县`},{code:`522325`,name:`贞丰县`},{code:`522326`,name:`望谟县`},{code:`522327`,name:`册亨县`},{code:`522328`,name:`安龙县`}]},{code:`522600`,name:`黔东南苗族侗族自治州`,districts:[{code:`522601`,name:`凯里市`},{code:`522622`,name:`黄平县`},{code:`522623`,name:`施秉县`},{code:`522624`,name:`三穗县`},{code:`522625`,name:`镇远县`},{code:`522626`,name:`岑巩县`},{code:`522627`,name:`天柱县`},{code:`522628`,name:`锦屏县`},{code:`522629`,name:`剑河县`},{code:`522630`,name:`台江县`},{code:`522631`,name:`黎平县`},{code:`522632`,name:`榕江县`},{code:`522633`,name:`从江县`},{code:`522634`,name:`雷山县`},{code:`522635`,name:`麻江县`},{code:`522636`,name:`丹寨县`}]},{code:`522700`,name:`黔南布依族苗族自治州`,districts:[{code:`522701`,name:`都匀市`},{code:`522702`,name:`福泉市`},{code:`522722`,name:`荔波县`},{code:`522723`,name:`贵定县`},{code:`522725`,name:`瓮安县`},{code:`522726`,name:`独山县`},{code:`522727`,name:`平塘县`},{code:`522728`,name:`罗甸县`},{code:`522729`,name:`长顺县`},{code:`522730`,name:`龙里县`},{code:`522731`,name:`惠水县`},{code:`522732`,name:`三都水族自治县`}]}]},{code:`530000`,name:`云南省`,cities:[{code:`530100`,name:`昆明市`,districts:[{code:`530102`,name:`五华区`},{code:`530103`,name:`盘龙区`},{code:`530111`,name:`官渡区`},{code:`530112`,name:`西山区`},{code:`530113`,name:`东川区`},{code:`530114`,name:`呈贡区`},{code:`530115`,name:`晋宁区`},{code:`530124`,name:`富民县`},{code:`530125`,name:`宜良县`},{code:`530126`,name:`石林彝族自治县`},{code:`530127`,name:`嵩明县`},{code:`530128`,name:`禄劝彝族苗族自治县`},{code:`530129`,name:`寻甸回族彝族自治县`},{code:`530181`,name:`安宁市`}]},{code:`530300`,name:`曲靖市`,districts:[{code:`530302`,name:`麒麟区`},{code:`530303`,name:`沾益区`},{code:`530304`,name:`马龙区`},{code:`530322`,name:`陆良县`},{code:`530323`,name:`师宗县`},{code:`530324`,name:`罗平县`},{code:`530325`,name:`富源县`},{code:`530326`,name:`会泽县`},{code:`530381`,name:`宣威市`}]},{code:`530400`,name:`玉溪市`,districts:[{code:`530402`,name:`红塔区`},{code:`530403`,name:`江川区`},{code:`530423`,name:`通海县`},{code:`530424`,name:`华宁县`},{code:`530425`,name:`易门县`},{code:`530426`,name:`峨山彝族自治县`},{code:`530427`,name:`新平彝族傣族自治县`},{code:`530428`,name:`元江哈尼族彝族傣族自治县`},{code:`530481`,name:`澄江市`}]},{code:`530500`,name:`保山市`,districts:[{code:`530502`,name:`隆阳区`},{code:`530521`,name:`施甸县`},{code:`530523`,name:`龙陵县`},{code:`530524`,name:`昌宁县`},{code:`530581`,name:`腾冲市`}]},{code:`530600`,name:`昭通市`,districts:[{code:`530602`,name:`昭阳区`},{code:`530621`,name:`鲁甸县`},{code:`530622`,name:`巧家县`},{code:`530623`,name:`盐津县`},{code:`530624`,name:`大关县`},{code:`530625`,name:`永善县`},{code:`530626`,name:`绥江县`},{code:`530627`,name:`镇雄县`},{code:`530628`,name:`彝良县`},{code:`530629`,name:`威信县`},{code:`530681`,name:`水富市`}]},{code:`530700`,name:`丽江市`,districts:[{code:`530702`,name:`古城区`},{code:`530721`,name:`玉龙纳西族自治县`},{code:`530722`,name:`永胜县`},{code:`530723`,name:`华坪县`},{code:`530724`,name:`宁蒗彝族自治县`}]},{code:`530800`,name:`普洱市`,districts:[{code:`530802`,name:`思茅区`},{code:`530821`,name:`宁洱哈尼族彝族自治县`},{code:`530822`,name:`墨江哈尼族自治县`},{code:`530823`,name:`景东彝族自治县`},{code:`530824`,name:`景谷傣族彝族自治县`},{code:`530825`,name:`镇沅彝族哈尼族拉祜族自治县`},{code:`530826`,name:`江城哈尼族彝族自治县`},{code:`530827`,name:`孟连傣族拉祜族佤族自治县`},{code:`530828`,name:`澜沧拉祜族自治县`},{code:`530829`,name:`西盟佤族自治县`}]},{code:`530900`,name:`临沧市`,districts:[{code:`530902`,name:`临翔区`},{code:`530921`,name:`凤庆县`},{code:`530922`,name:`云县`},{code:`530923`,name:`永德县`},{code:`530924`,name:`镇康县`},{code:`530925`,name:`双江拉祜族佤族布朗族傣族自治县`},{code:`530926`,name:`耿马傣族佤族自治县`},{code:`530927`,name:`沧源佤族自治县`}]},{code:`532300`,name:`楚雄彝族自治州`,districts:[{code:`532301`,name:`楚雄市`},{code:`532302`,name:`禄丰市`},{code:`532322`,name:`双柏县`},{code:`532323`,name:`牟定县`},{code:`532324`,name:`南华县`},{code:`532325`,name:`姚安县`},{code:`532326`,name:`大姚县`},{code:`532327`,name:`永仁县`},{code:`532328`,name:`元谋县`},{code:`532329`,name:`武定县`}]},{code:`532500`,name:`红河哈尼族彝族自治州`,districts:[{code:`532501`,name:`个旧市`},{code:`532502`,name:`开远市`},{code:`532503`,name:`蒙自市`},{code:`532504`,name:`弥勒市`},{code:`532523`,name:`屏边苗族自治县`},{code:`532524`,name:`建水县`},{code:`532525`,name:`石屏县`},{code:`532527`,name:`泸西县`},{code:`532528`,name:`元阳县`},{code:`532529`,name:`红河县`},{code:`532530`,name:`金平苗族瑶族傣族自治县`},{code:`532531`,name:`绿春县`},{code:`532532`,name:`河口瑶族自治县`}]},{code:`532600`,name:`文山壮族苗族自治州`,districts:[{code:`532601`,name:`文山市`},{code:`532622`,name:`砚山县`},{code:`532623`,name:`西畴县`},{code:`532624`,name:`麻栗坡县`},{code:`532625`,name:`马关县`},{code:`532626`,name:`丘北县`},{code:`532627`,name:`广南县`},{code:`532628`,name:`富宁县`}]},{code:`532800`,name:`西双版纳傣族自治州`,districts:[{code:`532801`,name:`景洪市`},{code:`532822`,name:`勐海县`},{code:`532823`,name:`勐腊县`}]},{code:`532900`,name:`大理白族自治州`,districts:[{code:`532901`,name:`大理市`},{code:`532922`,name:`漾濞彝族自治县`},{code:`532923`,name:`祥云县`},{code:`532924`,name:`宾川县`},{code:`532925`,name:`弥渡县`},{code:`532926`,name:`南涧彝族自治县`},{code:`532927`,name:`巍山彝族回族自治县`},{code:`532928`,name:`永平县`},{code:`532929`,name:`云龙县`},{code:`532930`,name:`洱源县`},{code:`532931`,name:`剑川县`},{code:`532932`,name:`鹤庆县`}]},{code:`533100`,name:`德宏傣族景颇族自治州`,districts:[{code:`533102`,name:`瑞丽市`},{code:`533103`,name:`芒市`},{code:`533122`,name:`梁河县`},{code:`533123`,name:`盈江县`},{code:`533124`,name:`陇川县`}]},{code:`533300`,name:`怒江傈僳族自治州`,districts:[{code:`533301`,name:`泸水市`},{code:`533323`,name:`福贡县`},{code:`533324`,name:`贡山独龙族怒族自治县`},{code:`533325`,name:`兰坪白族普米族自治县`}]},{code:`533400`,name:`迪庆藏族自治州`,districts:[{code:`533401`,name:`香格里拉市`},{code:`533422`,name:`德钦县`},{code:`533423`,name:`维西傈僳族自治县`}]}]},{code:`540000`,name:`西藏自治区`,cities:[{code:`540100`,name:`拉萨市`,districts:[{code:`540102`,name:`城关区`},{code:`540103`,name:`堆龙德庆区`},{code:`540104`,name:`达孜区`},{code:`540121`,name:`林周县`},{code:`540122`,name:`当雄县`},{code:`540123`,name:`尼木县`},{code:`540124`,name:`曲水县`},{code:`540127`,name:`墨竹工卡县`}]},{code:`540200`,name:`日喀则市`,districts:[{code:`540202`,name:`桑珠孜区`},{code:`540221`,name:`南木林县`},{code:`540222`,name:`江孜县`},{code:`540223`,name:`定日县`},{code:`540224`,name:`萨迦县`},{code:`540225`,name:`拉孜县`},{code:`540226`,name:`昂仁县`},{code:`540227`,name:`谢通门县`},{code:`540228`,name:`白朗县`},{code:`540229`,name:`仁布县`},{code:`540230`,name:`康马县`},{code:`540231`,name:`定结县`},{code:`540232`,name:`仲巴县`},{code:`540233`,name:`亚东县`},{code:`540234`,name:`吉隆县`},{code:`540235`,name:`聂拉木县`},{code:`540236`,name:`萨嘎县`},{code:`540237`,name:`岗巴县`}]},{code:`540300`,name:`昌都市`,districts:[{code:`540302`,name:`卡若区`},{code:`540321`,name:`江达县`},{code:`540322`,name:`贡觉县`},{code:`540323`,name:`类乌齐县`},{code:`540324`,name:`丁青县`},{code:`540325`,name:`察雅县`},{code:`540326`,name:`八宿县`},{code:`540327`,name:`左贡县`},{code:`540328`,name:`芒康县`},{code:`540329`,name:`洛隆县`},{code:`540330`,name:`边坝县`}]},{code:`540400`,name:`林芝市`,districts:[{code:`540402`,name:`巴宜区`},{code:`540421`,name:`工布江达县`},{code:`540423`,name:`墨脱县`},{code:`540424`,name:`波密县`},{code:`540425`,name:`察隅县`},{code:`540426`,name:`朗县`},{code:`540481`,name:`米林市`}]},{code:`540500`,name:`山南市`,districts:[{code:`540502`,name:`乃东区`},{code:`540521`,name:`扎囊县`},{code:`540522`,name:`贡嘎县`},{code:`540523`,name:`桑日县`},{code:`540524`,name:`琼结县`},{code:`540525`,name:`曲松县`},{code:`540526`,name:`措美县`},{code:`540527`,name:`洛扎县`},{code:`540528`,name:`加查县`},{code:`540529`,name:`隆子县`},{code:`540531`,name:`浪卡子县`},{code:`540581`,name:`错那市`}]},{code:`540600`,name:`那曲市`,districts:[{code:`540602`,name:`色尼区`},{code:`540621`,name:`嘉黎县`},{code:`540622`,name:`比如县`},{code:`540623`,name:`聂荣县`},{code:`540624`,name:`安多县`},{code:`540625`,name:`申扎县`},{code:`540626`,name:`索县`},{code:`540627`,name:`班戈县`},{code:`540628`,name:`巴青县`},{code:`540629`,name:`尼玛县`},{code:`540630`,name:`双湖县`}]},{code:`542500`,name:`阿里地区`,districts:[{code:`542521`,name:`普兰县`},{code:`542522`,name:`札达县`},{code:`542523`,name:`噶尔县`},{code:`542524`,name:`日土县`},{code:`542525`,name:`革吉县`},{code:`542526`,name:`改则县`},{code:`542527`,name:`措勤县`}]}]},{code:`610000`,name:`陕西省`,cities:[{code:`610100`,name:`西安市`,districts:[{code:`610102`,name:`新城区`},{code:`610103`,name:`碑林区`},{code:`610104`,name:`莲湖区`},{code:`610111`,name:`灞桥区`},{code:`610112`,name:`未央区`},{code:`610113`,name:`雁塔区`},{code:`610114`,name:`阎良区`},{code:`610115`,name:`临潼区`},{code:`610116`,name:`长安区`},{code:`610117`,name:`高陵区`},{code:`610118`,name:`鄠邑区`},{code:`610122`,name:`蓝田县`},{code:`610124`,name:`周至县`}]},{code:`610200`,name:`铜川市`,districts:[{code:`610202`,name:`王益区`},{code:`610203`,name:`印台区`},{code:`610204`,name:`耀州区`},{code:`610222`,name:`宜君县`}]},{code:`610300`,name:`宝鸡市`,districts:[{code:`610302`,name:`渭滨区`},{code:`610303`,name:`金台区`},{code:`610304`,name:`陈仓区`},{code:`610305`,name:`凤翔区`},{code:`610323`,name:`岐山县`},{code:`610324`,name:`扶风县`},{code:`610326`,name:`眉县`},{code:`610327`,name:`陇县`},{code:`610328`,name:`千阳县`},{code:`610329`,name:`麟游县`},{code:`610330`,name:`凤县`},{code:`610331`,name:`太白县`}]},{code:`610400`,name:`咸阳市`,districts:[{code:`610402`,name:`秦都区`},{code:`610403`,name:`杨陵区`},{code:`610404`,name:`渭城区`},{code:`610422`,name:`三原县`},{code:`610423`,name:`泾阳县`},{code:`610424`,name:`乾县`},{code:`610425`,name:`礼泉县`},{code:`610426`,name:`永寿县`},{code:`610428`,name:`长武县`},{code:`610429`,name:`旬邑县`},{code:`610430`,name:`淳化县`},{code:`610431`,name:`武功县`},{code:`610481`,name:`兴平市`},{code:`610482`,name:`彬州市`}]},{code:`610500`,name:`渭南市`,districts:[{code:`610502`,name:`临渭区`},{code:`610503`,name:`华州区`},{code:`610522`,name:`潼关县`},{code:`610523`,name:`大荔县`},{code:`610524`,name:`合阳县`},{code:`610525`,name:`澄城县`},{code:`610526`,name:`蒲城县`},{code:`610527`,name:`白水县`},{code:`610528`,name:`富平县`},{code:`610581`,name:`韩城市`},{code:`610582`,name:`华阴市`}]},{code:`610600`,name:`延安市`,districts:[{code:`610602`,name:`宝塔区`},{code:`610603`,name:`安塞区`},{code:`610621`,name:`延长县`},{code:`610622`,name:`延川县`},{code:`610625`,name:`志丹县`},{code:`610626`,name:`吴起县`},{code:`610627`,name:`甘泉县`},{code:`610628`,name:`富县`},{code:`610629`,name:`洛川县`},{code:`610630`,name:`宜川县`},{code:`610631`,name:`黄龙县`},{code:`610632`,name:`黄陵县`},{code:`610681`,name:`子长市`}]},{code:`610700`,name:`汉中市`,districts:[{code:`610702`,name:`汉台区`},{code:`610703`,name:`南郑区`},{code:`610722`,name:`城固县`},{code:`610723`,name:`洋县`},{code:`610724`,name:`西乡县`},{code:`610725`,name:`勉县`},{code:`610726`,name:`宁强县`},{code:`610727`,name:`略阳县`},{code:`610728`,name:`镇巴县`},{code:`610729`,name:`留坝县`},{code:`610730`,name:`佛坪县`}]},{code:`610800`,name:`榆林市`,districts:[{code:`610802`,name:`榆阳区`},{code:`610803`,name:`横山区`},{code:`610822`,name:`府谷县`},{code:`610824`,name:`靖边县`},{code:`610825`,name:`定边县`},{code:`610826`,name:`绥德县`},{code:`610827`,name:`米脂县`},{code:`610828`,name:`佳县`},{code:`610829`,name:`吴堡县`},{code:`610830`,name:`清涧县`},{code:`610831`,name:`子洲县`},{code:`610881`,name:`神木市`}]},{code:`610900`,name:`安康市`,districts:[{code:`610902`,name:`汉滨区`},{code:`610921`,name:`汉阴县`},{code:`610922`,name:`石泉县`},{code:`610923`,name:`宁陕县`},{code:`610924`,name:`紫阳县`},{code:`610925`,name:`岚皋县`},{code:`610926`,name:`平利县`},{code:`610927`,name:`镇坪县`},{code:`610929`,name:`白河县`},{code:`610981`,name:`旬阳市`}]},{code:`611000`,name:`商洛市`,districts:[{code:`611002`,name:`商州区`},{code:`611021`,name:`洛南县`},{code:`611022`,name:`丹凤县`},{code:`611023`,name:`商南县`},{code:`611024`,name:`山阳县`},{code:`611025`,name:`镇安县`},{code:`611026`,name:`柞水县`}]}]},{code:`620000`,name:`甘肃省`,cities:[{code:`620100`,name:`兰州市`,districts:[{code:`620102`,name:`城关区`},{code:`620103`,name:`七里河区`},{code:`620104`,name:`西固区`},{code:`620105`,name:`安宁区`},{code:`620111`,name:`红古区`},{code:`620121`,name:`永登县`},{code:`620122`,name:`皋兰县`},{code:`620123`,name:`榆中县`}]},{code:`620200`,name:`嘉峪关市`,districts:[{code:`620200`,name:`嘉峪关市`}]},{code:`620300`,name:`金昌市`,districts:[{code:`620302`,name:`金川区`},{code:`620321`,name:`永昌县`}]},{code:`620400`,name:`白银市`,districts:[{code:`620402`,name:`白银区`},{code:`620403`,name:`平川区`},{code:`620421`,name:`靖远县`},{code:`620422`,name:`会宁县`},{code:`620423`,name:`景泰县`}]},{code:`620500`,name:`天水市`,districts:[{code:`620502`,name:`秦州区`},{code:`620503`,name:`麦积区`},{code:`620521`,name:`清水县`},{code:`620522`,name:`秦安县`},{code:`620523`,name:`甘谷县`},{code:`620524`,name:`武山县`},{code:`620525`,name:`张家川回族自治县`}]},{code:`620600`,name:`武威市`,districts:[{code:`620602`,name:`凉州区`},{code:`620621`,name:`民勤县`},{code:`620622`,name:`古浪县`},{code:`620623`,name:`天祝藏族自治县`}]},{code:`620700`,name:`张掖市`,districts:[{code:`620702`,name:`甘州区`},{code:`620721`,name:`肃南裕固族自治县`},{code:`620722`,name:`民乐县`},{code:`620723`,name:`临泽县`},{code:`620724`,name:`高台县`},{code:`620725`,name:`山丹县`}]},{code:`620800`,name:`平凉市`,districts:[{code:`620802`,name:`崆峒区`},{code:`620821`,name:`泾川县`},{code:`620822`,name:`灵台县`},{code:`620823`,name:`崇信县`},{code:`620825`,name:`庄浪县`},{code:`620826`,name:`静宁县`},{code:`620881`,name:`华亭市`}]},{code:`620900`,name:`酒泉市`,districts:[{code:`620902`,name:`肃州区`},{code:`620921`,name:`金塔县`},{code:`620922`,name:`瓜州县`},{code:`620923`,name:`肃北蒙古族自治县`},{code:`620924`,name:`阿克塞哈萨克族自治县`},{code:`620981`,name:`玉门市`},{code:`620982`,name:`敦煌市`}]},{code:`621000`,name:`庆阳市`,districts:[{code:`621002`,name:`西峰区`},{code:`621021`,name:`庆城县`},{code:`621022`,name:`环县`},{code:`621023`,name:`华池县`},{code:`621024`,name:`合水县`},{code:`621025`,name:`正宁县`},{code:`621026`,name:`宁县`},{code:`621027`,name:`镇原县`}]},{code:`621100`,name:`定西市`,districts:[{code:`621102`,name:`安定区`},{code:`621121`,name:`通渭县`},{code:`621122`,name:`陇西县`},{code:`621123`,name:`渭源县`},{code:`621124`,name:`临洮县`},{code:`621125`,name:`漳县`},{code:`621126`,name:`岷县`}]},{code:`621200`,name:`陇南市`,districts:[{code:`621202`,name:`武都区`},{code:`621221`,name:`成县`},{code:`621222`,name:`文县`},{code:`621223`,name:`宕昌县`},{code:`621224`,name:`康县`},{code:`621225`,name:`西和县`},{code:`621226`,name:`礼县`},{code:`621227`,name:`徽县`},{code:`621228`,name:`两当县`}]},{code:`622900`,name:`临夏回族自治州`,districts:[{code:`622901`,name:`临夏市`},{code:`622921`,name:`临夏县`},{code:`622922`,name:`康乐县`},{code:`622923`,name:`永靖县`},{code:`622924`,name:`广河县`},{code:`622925`,name:`和政县`},{code:`622926`,name:`东乡族自治县`},{code:`622927`,name:`积石山保安族东乡族撒拉族自治县`}]},{code:`623000`,name:`甘南藏族自治州`,districts:[{code:`623001`,name:`合作市`},{code:`623021`,name:`临潭县`},{code:`623022`,name:`卓尼县`},{code:`623023`,name:`舟曲县`},{code:`623024`,name:`迭部县`},{code:`623025`,name:`玛曲县`},{code:`623026`,name:`碌曲县`},{code:`623027`,name:`夏河县`}]}]},{code:`630000`,name:`青海省`,cities:[{code:`630100`,name:`西宁市`,districts:[{code:`630102`,name:`城东区`},{code:`630103`,name:`城中区`},{code:`630104`,name:`城西区`},{code:`630105`,name:`城北区`},{code:`630106`,name:`湟中区`},{code:`630121`,name:`大通回族土族自治县`},{code:`630123`,name:`湟源县`}]},{code:`630200`,name:`海东市`,districts:[{code:`630202`,name:`乐都区`},{code:`630203`,name:`平安区`},{code:`630222`,name:`民和回族土族自治县`},{code:`630223`,name:`互助土族自治县`},{code:`630224`,name:`化隆回族自治县`},{code:`630225`,name:`循化撒拉族自治县`}]},{code:`632200`,name:`海北藏族自治州`,districts:[{code:`632221`,name:`门源回族自治县`},{code:`632222`,name:`祁连县`},{code:`632223`,name:`海晏县`},{code:`632224`,name:`刚察县`}]},{code:`632300`,name:`黄南藏族自治州`,districts:[{code:`632301`,name:`同仁市`},{code:`632322`,name:`尖扎县`},{code:`632323`,name:`泽库县`},{code:`632324`,name:`河南蒙古族自治县`}]},{code:`632500`,name:`海南藏族自治州`,districts:[{code:`632521`,name:`共和县`},{code:`632522`,name:`同德县`},{code:`632523`,name:`贵德县`},{code:`632524`,name:`兴海县`},{code:`632525`,name:`贵南县`}]},{code:`632600`,name:`果洛藏族自治州`,districts:[{code:`632621`,name:`玛沁县`},{code:`632622`,name:`班玛县`},{code:`632623`,name:`甘德县`},{code:`632624`,name:`达日县`},{code:`632625`,name:`久治县`},{code:`632626`,name:`玛多县`}]},{code:`632700`,name:`玉树藏族自治州`,districts:[{code:`632701`,name:`玉树市`},{code:`632722`,name:`杂多县`},{code:`632723`,name:`称多县`},{code:`632724`,name:`治多县`},{code:`632725`,name:`囊谦县`},{code:`632726`,name:`曲麻莱县`}]},{code:`632800`,name:`海西蒙古族藏族自治州`,districts:[{code:`632801`,name:`格尔木市`},{code:`632802`,name:`德令哈市`},{code:`632803`,name:`茫崖市`},{code:`632821`,name:`乌兰县`},{code:`632822`,name:`都兰县`},{code:`632823`,name:`天峻县`},{code:`632825`,name:`大柴旦行政委员会`}]}]},{code:`640000`,name:`宁夏回族自治区`,cities:[{code:`640100`,name:`银川市`,districts:[{code:`640104`,name:`兴庆区`},{code:`640105`,name:`西夏区`},{code:`640106`,name:`金凤区`},{code:`640121`,name:`永宁县`},{code:`640122`,name:`贺兰县`},{code:`640181`,name:`灵武市`}]},{code:`640200`,name:`石嘴山市`,districts:[{code:`640202`,name:`大武口区`},{code:`640205`,name:`惠农区`},{code:`640221`,name:`平罗县`}]},{code:`640300`,name:`吴忠市`,districts:[{code:`640302`,name:`利通区`},{code:`640303`,name:`红寺堡区`},{code:`640323`,name:`盐池县`},{code:`640324`,name:`同心县`},{code:`640381`,name:`青铜峡市`}]},{code:`640400`,name:`固原市`,districts:[{code:`640402`,name:`原州区`},{code:`640422`,name:`西吉县`},{code:`640423`,name:`隆德县`},{code:`640424`,name:`泾源县`},{code:`640425`,name:`彭阳县`}]},{code:`640500`,name:`中卫市`,districts:[{code:`640502`,name:`沙坡头区`},{code:`640521`,name:`中宁县`},{code:`640522`,name:`海原县`}]}]},{code:`650000`,name:`新疆维吾尔自治区`,cities:[{code:`650100`,name:`乌鲁木齐市`,districts:[{code:`650102`,name:`天山区`},{code:`650103`,name:`沙依巴克区`},{code:`650104`,name:`新市区`},{code:`650105`,name:`水磨沟区`},{code:`650106`,name:`头屯河区`},{code:`650107`,name:`达坂城区`},{code:`650109`,name:`米东区`},{code:`650121`,name:`乌鲁木齐县`}]},{code:`650200`,name:`克拉玛依市`,districts:[{code:`650202`,name:`独山子区`},{code:`650203`,name:`克拉玛依区`},{code:`650204`,name:`白碱滩区`},{code:`650205`,name:`乌尔禾区`}]},{code:`650400`,name:`吐鲁番市`,districts:[{code:`650402`,name:`高昌区`},{code:`650421`,name:`鄯善县`},{code:`650422`,name:`托克逊县`}]},{code:`650500`,name:`哈密市`,districts:[{code:`650502`,name:`伊州区`},{code:`650521`,name:`巴里坤哈萨克自治县`},{code:`650522`,name:`伊吾县`}]},{code:`652300`,name:`昌吉回族自治州`,districts:[{code:`652301`,name:`昌吉市`},{code:`652302`,name:`阜康市`},{code:`652323`,name:`呼图壁县`},{code:`652324`,name:`玛纳斯县`},{code:`652325`,name:`奇台县`},{code:`652327`,name:`吉木萨尔县`},{code:`652328`,name:`木垒哈萨克自治县`}]},{code:`652700`,name:`博尔塔拉蒙古自治州`,districts:[{code:`652701`,name:`博乐市`},{code:`652702`,name:`阿拉山口市`},{code:`652722`,name:`精河县`},{code:`652723`,name:`温泉县`}]},{code:`652800`,name:`巴音郭楞蒙古自治州`,districts:[{code:`652801`,name:`库尔勒市`},{code:`652822`,name:`轮台县`},{code:`652823`,name:`尉犁县`},{code:`652824`,name:`若羌县`},{code:`652825`,name:`且末县`},{code:`652826`,name:`焉耆回族自治县`},{code:`652827`,name:`和静县`},{code:`652828`,name:`和硕县`},{code:`652829`,name:`博湖县`}]},{code:`652900`,name:`阿克苏地区`,districts:[{code:`652901`,name:`阿克苏市`},{code:`652902`,name:`库车市`},{code:`652922`,name:`温宿县`},{code:`652924`,name:`沙雅县`},{code:`652925`,name:`新和县`},{code:`652926`,name:`拜城县`},{code:`652927`,name:`乌什县`},{code:`652928`,name:`阿瓦提县`},{code:`652929`,name:`柯坪县`}]},{code:`653000`,name:`克孜勒苏柯尔克孜自治州`,districts:[{code:`653001`,name:`阿图什市`},{code:`653022`,name:`阿克陶县`},{code:`653023`,name:`阿合奇县`},{code:`653024`,name:`乌恰县`}]},{code:`653100`,name:`喀什地区`,districts:[{code:`653101`,name:`喀什市`},{code:`653121`,name:`疏附县`},{code:`653122`,name:`疏勒县`},{code:`653123`,name:`英吉沙县`},{code:`653124`,name:`泽普县`},{code:`653125`,name:`莎车县`},{code:`653126`,name:`叶城县`},{code:`653127`,name:`麦盖提县`},{code:`653128`,name:`岳普湖县`},{code:`653129`,name:`伽师县`},{code:`653130`,name:`巴楚县`},{code:`653131`,name:`塔什库尔干塔吉克自治县`}]},{code:`653200`,name:`和田地区`,districts:[{code:`653201`,name:`和田市`},{code:`653221`,name:`和田县`},{code:`653222`,name:`墨玉县`},{code:`653223`,name:`皮山县`},{code:`653224`,name:`洛浦县`},{code:`653225`,name:`策勒县`},{code:`653226`,name:`于田县`},{code:`653227`,name:`民丰县`},{code:`653228`,name:`和康县`},{code:`653229`,name:`和安县`}]},{code:`654000`,name:`伊犁哈萨克自治州`,districts:[{code:`654002`,name:`伊宁市`},{code:`654003`,name:`奎屯市`},{code:`654004`,name:`霍尔果斯市`},{code:`654021`,name:`伊宁县`},{code:`654022`,name:`察布查尔锡伯自治县`},{code:`654023`,name:`霍城县`},{code:`654024`,name:`巩留县`},{code:`654025`,name:`新源县`},{code:`654026`,name:`昭苏县`},{code:`654027`,name:`特克斯县`},{code:`654028`,name:`尼勒克县`}]},{code:`654200`,name:`塔城地区`,districts:[{code:`654201`,name:`塔城市`},{code:`654202`,name:`乌苏市`},{code:`654203`,name:`沙湾市`},{code:`654221`,name:`额敏县`},{code:`654224`,name:`托里县`},{code:`654225`,name:`裕民县`},{code:`654226`,name:`和布克赛尔蒙古自治县`}]},{code:`654300`,name:`阿勒泰地区`,districts:[{code:`654301`,name:`阿勒泰市`},{code:`654321`,name:`布尔津县`},{code:`654322`,name:`富蕴县`},{code:`654323`,name:`福海县`},{code:`654324`,name:`哈巴河县`},{code:`654325`,name:`青河县`},{code:`654326`,name:`吉木乃县`}]},{code:`659001`,name:`石河子市`,districts:[{code:`659001`,name:`石河子市`}]},{code:`659002`,name:`阿拉尔市`,districts:[{code:`659002`,name:`阿拉尔市`}]},{code:`659003`,name:`图木舒克市`,districts:[{code:`659003`,name:`图木舒克市`}]},{code:`659004`,name:`五家渠市`,districts:[{code:`659004`,name:`五家渠市`}]},{code:`659005`,name:`北屯市`,districts:[{code:`659005`,name:`北屯市`}]},{code:`659006`,name:`铁门关市`,districts:[{code:`659006`,name:`铁门关市`}]},{code:`659007`,name:`双河市`,districts:[{code:`659007`,name:`双河市`}]},{code:`659008`,name:`可克达拉市`,districts:[{code:`659008`,name:`可克达拉市`}]},{code:`659009`,name:`昆玉市`,districts:[{code:`659009`,name:`昆玉市`}]},{code:`659010`,name:`胡杨河市`,districts:[{code:`659010`,name:`胡杨河市`}]},{code:`659011`,name:`新星市`,districts:[{code:`659011`,name:`新星市`}]},{code:`659012`,name:`白杨市`,districts:[{code:`659012`,name:`白杨市`}]}]},{code:`710000`,name:`台湾省`,cities:[{code:`710100`,name:`台北市`,districts:[{code:`710101`,name:`中正区`},{code:`710102`,name:`大同区`},{code:`710103`,name:`中山区`},{code:`710104`,name:`松山区`},{code:`710105`,name:`大安区`},{code:`710106`,name:`万华区`},{code:`710107`,name:`信义区`},{code:`710108`,name:`士林区`},{code:`710109`,name:`北投区`},{code:`710110`,name:`内湖区`},{code:`710111`,name:`南港区`},{code:`710112`,name:`文山区`}]},{code:`710200`,name:`高雄市`,districts:[{code:`710201`,name:`新兴区`},{code:`710202`,name:`前金区`},{code:`710203`,name:`苓雅区`},{code:`710204`,name:`盐埕区`},{code:`710205`,name:`鼓山区`},{code:`710206`,name:`旗津区`},{code:`710207`,name:`前镇区`},{code:`710208`,name:`三民区`},{code:`710209`,name:`左营区`},{code:`710210`,name:`楠梓区`},{code:`710211`,name:`小港区`},{code:`710242`,name:`仁武区`},{code:`710243`,name:`大社区`},{code:`710244`,name:`冈山区`},{code:`710245`,name:`路竹区`},{code:`710246`,name:`阿莲区`},{code:`710247`,name:`田寮区`},{code:`710248`,name:`燕巢区`},{code:`710249`,name:`桥头区`},{code:`710250`,name:`梓官区`},{code:`710251`,name:`弥陀区`},{code:`710252`,name:`永安区`},{code:`710253`,name:`湖内区`},{code:`710254`,name:`凤山区`},{code:`710255`,name:`大寮区`},{code:`710256`,name:`林园区`},{code:`710257`,name:`鸟松区`},{code:`710258`,name:`大树区`},{code:`710259`,name:`旗山区`},{code:`710260`,name:`美浓区`},{code:`710261`,name:`六龟区`},{code:`710262`,name:`内门区`},{code:`710263`,name:`杉林区`},{code:`710264`,name:`甲仙区`},{code:`710265`,name:`桃源区`},{code:`710266`,name:`那玛夏区`},{code:`710267`,name:`茂林区`},{code:`710268`,name:`茄萣区`}]},{code:`710300`,name:`台南市`,districts:[{code:`710301`,name:`中西区`},{code:`710302`,name:`东区`},{code:`710303`,name:`南区`},{code:`710304`,name:`北区`},{code:`710305`,name:`安平区`},{code:`710306`,name:`安南区`},{code:`710339`,name:`永康区`},{code:`710340`,name:`归仁区`},{code:`710341`,name:`新化区`},{code:`710342`,name:`左镇区`},{code:`710343`,name:`玉井区`},{code:`710344`,name:`楠西区`},{code:`710345`,name:`南化区`},{code:`710346`,name:`仁德区`},{code:`710347`,name:`关庙区`},{code:`710348`,name:`龙崎区`},{code:`710349`,name:`官田区`},{code:`710350`,name:`麻豆区`},{code:`710351`,name:`佳里区`},{code:`710352`,name:`西港区`},{code:`710353`,name:`七股区`},{code:`710354`,name:`将军区`},{code:`710355`,name:`学甲区`},{code:`710356`,name:`北门区`},{code:`710357`,name:`新营区`},{code:`710358`,name:`后壁区`},{code:`710359`,name:`白河区`},{code:`710360`,name:`东山区`},{code:`710361`,name:`六甲区`},{code:`710362`,name:`下营区`},{code:`710363`,name:`柳营区`},{code:`710364`,name:`盐水区`},{code:`710365`,name:`善化区`},{code:`710366`,name:`大内区`},{code:`710367`,name:`山上区`},{code:`710368`,name:`新市区`},{code:`710369`,name:`安定区`}]},{code:`710400`,name:`台中市`,districts:[{code:`710401`,name:`中区`},{code:`710402`,name:`东区`},{code:`710403`,name:`南区`},{code:`710404`,name:`西区`},{code:`710405`,name:`北区`},{code:`710406`,name:`北屯区`},{code:`710407`,name:`西屯区`},{code:`710408`,name:`南屯区`},{code:`710431`,name:`太平区`},{code:`710432`,name:`大里区`},{code:`710433`,name:`雾峰区`},{code:`710434`,name:`乌日区`},{code:`710435`,name:`丰原区`},{code:`710436`,name:`后里区`},{code:`710437`,name:`石冈区`},{code:`710438`,name:`东势区`},{code:`710439`,name:`和平区`},{code:`710440`,name:`新社区`},{code:`710441`,name:`潭子区`},{code:`710442`,name:`大雅区`},{code:`710443`,name:`神冈区`},{code:`710444`,name:`大肚区`},{code:`710445`,name:`沙鹿区`},{code:`710446`,name:`龙井区`},{code:`710447`,name:`梧栖区`},{code:`710448`,name:`清水区`},{code:`710449`,name:`大甲区`},{code:`710450`,name:`外埔区`},{code:`710451`,name:`大安区`}]},{code:`710600`,name:`南投县`,districts:[{code:`710614`,name:`南投市`},{code:`710615`,name:`中寮乡`},{code:`710616`,name:`草屯镇`},{code:`710617`,name:`国姓乡`},{code:`710618`,name:`埔里镇`},{code:`710619`,name:`仁爱乡`},{code:`710620`,name:`名间乡`},{code:`710621`,name:`集集镇`},{code:`710622`,name:`水里乡`},{code:`710623`,name:`鱼池乡`},{code:`710624`,name:`信义乡`},{code:`710625`,name:`竹山镇`},{code:`710626`,name:`鹿谷乡`}]},{code:`710700`,name:`基隆市`,districts:[{code:`710701`,name:`仁爱区`},{code:`710702`,name:`信义区`},{code:`710703`,name:`中正区`},{code:`710704`,name:`中山区`},{code:`710705`,name:`安乐区`},{code:`710706`,name:`暖暖区`},{code:`710707`,name:`七堵区`}]},{code:`710800`,name:`新竹市`,districts:[{code:`710801`,name:`东区`},{code:`710802`,name:`北区`},{code:`710803`,name:`香山区`}]},{code:`710900`,name:`嘉义市`,districts:[{code:`710901`,name:`东区`},{code:`710902`,name:`西区`}]},{code:`711100`,name:`新北市`,districts:[{code:`711130`,name:`万里区`},{code:`711131`,name:`金山区`},{code:`711132`,name:`板桥区`},{code:`711133`,name:`汐止区`},{code:`711134`,name:`深坑区`},{code:`711135`,name:`石碇区`},{code:`711136`,name:`瑞芳区`},{code:`711137`,name:`平溪区`},{code:`711138`,name:`双溪区`},{code:`711139`,name:`贡寮区`},{code:`711140`,name:`新店区`},{code:`711141`,name:`坪林区`},{code:`711142`,name:`乌来区`},{code:`711143`,name:`永和区`},{code:`711144`,name:`中和区`},{code:`711145`,name:`土城区`},{code:`711146`,name:`三峡区`},{code:`711147`,name:`树林区`},{code:`711148`,name:`莺歌区`},{code:`711149`,name:`三重区`},{code:`711150`,name:`新庄区`},{code:`711151`,name:`泰山区`},{code:`711152`,name:`林口区`},{code:`711153`,name:`芦洲区`},{code:`711154`,name:`五股区`},{code:`711155`,name:`八里区`},{code:`711156`,name:`淡水区`},{code:`711157`,name:`三芝区`},{code:`711158`,name:`石门区`}]},{code:`711200`,name:`宜兰县`,districts:[{code:`711214`,name:`宜兰市`},{code:`711215`,name:`头城镇`},{code:`711216`,name:`礁溪乡`},{code:`711217`,name:`壮围乡`},{code:`711218`,name:`员山乡`},{code:`711219`,name:`罗东镇`},{code:`711220`,name:`三星乡`},{code:`711221`,name:`大同乡`},{code:`711222`,name:`五结乡`},{code:`711223`,name:`冬山乡`},{code:`711224`,name:`苏澳镇`},{code:`711225`,name:`南澳乡`}]},{code:`711300`,name:`新竹县`,districts:[{code:`711314`,name:`竹北市`},{code:`711315`,name:`湖口乡`},{code:`711316`,name:`新丰乡`},{code:`711317`,name:`新埔镇`},{code:`711318`,name:`关西镇`},{code:`711319`,name:`芎林乡`},{code:`711320`,name:`宝山乡`},{code:`711321`,name:`竹东镇`},{code:`711322`,name:`五峰乡`},{code:`711323`,name:`横山乡`},{code:`711324`,name:`尖石乡`},{code:`711325`,name:`北埔乡`},{code:`711326`,name:`峨眉乡`}]},{code:`711400`,name:`桃园市`,districts:[{code:`711414`,name:`中坜区`},{code:`711415`,name:`平镇区`},{code:`711416`,name:`龙潭区`},{code:`711417`,name:`杨梅区`},{code:`711418`,name:`新屋区`},{code:`711419`,name:`观音区`},{code:`711420`,name:`桃园区`},{code:`711421`,name:`龟山区`},{code:`711422`,name:`八德区`},{code:`711423`,name:`大溪区`},{code:`711424`,name:`复兴区`},{code:`711425`,name:`大园区`},{code:`711426`,name:`芦竹区`}]},{code:`711500`,name:`苗栗县`,districts:[{code:`711519`,name:`竹南镇`},{code:`711520`,name:`头份市`},{code:`711521`,name:`三湾乡`},{code:`711522`,name:`南庄乡`},{code:`711523`,name:`狮潭乡`},{code:`711524`,name:`后龙镇`},{code:`711525`,name:`通霄镇`},{code:`711526`,name:`苑里镇`},{code:`711527`,name:`苗栗市`},{code:`711528`,name:`造桥乡`},{code:`711529`,name:`头屋乡`},{code:`711530`,name:`公馆乡`},{code:`711531`,name:`大湖乡`},{code:`711532`,name:`泰安乡`},{code:`711533`,name:`铜锣乡`},{code:`711534`,name:`三义乡`},{code:`711535`,name:`西湖乡`},{code:`711536`,name:`卓兰镇`}]},{code:`711700`,name:`彰化县`,districts:[{code:`711727`,name:`彰化市`},{code:`711728`,name:`芬园乡`},{code:`711729`,name:`花坛乡`},{code:`711730`,name:`秀水乡`},{code:`711731`,name:`鹿港镇`},{code:`711732`,name:`福兴乡`},{code:`711733`,name:`线西乡`},{code:`711734`,name:`和美镇`},{code:`711735`,name:`伸港乡`},{code:`711736`,name:`员林市`},{code:`711737`,name:`社头乡`},{code:`711738`,name:`永靖乡`},{code:`711739`,name:`埔心乡`},{code:`711740`,name:`溪湖镇`},{code:`711741`,name:`大村乡`},{code:`711742`,name:`埔盐乡`},{code:`711743`,name:`田中镇`},{code:`711744`,name:`北斗镇`},{code:`711745`,name:`田尾乡`},{code:`711746`,name:`埤头乡`},{code:`711747`,name:`溪州乡`},{code:`711748`,name:`竹塘乡`},{code:`711749`,name:`二林镇`},{code:`711750`,name:`大城乡`},{code:`711751`,name:`芳苑乡`},{code:`711752`,name:`二水乡`}]},{code:`711900`,name:`嘉义县`,districts:[{code:`711919`,name:`番路乡`},{code:`711920`,name:`梅山乡`},{code:`711921`,name:`竹崎乡`},{code:`711922`,name:`阿里山乡`},{code:`711923`,name:`中埔乡`},{code:`711924`,name:`大埔乡`},{code:`711925`,name:`水上乡`},{code:`711926`,name:`鹿草乡`},{code:`711927`,name:`太保市`},{code:`711928`,name:`朴子市`},{code:`711929`,name:`东石乡`},{code:`711930`,name:`六脚乡`},{code:`711931`,name:`新港乡`},{code:`711932`,name:`民雄乡`},{code:`711933`,name:`大林镇`},{code:`711934`,name:`溪口乡`},{code:`711935`,name:`义竹乡`},{code:`711936`,name:`布袋镇`}]},{code:`712100`,name:`云林县`,districts:[{code:`712121`,name:`斗南镇`},{code:`712122`,name:`大埤乡`},{code:`712123`,name:`虎尾镇`},{code:`712124`,name:`土库镇`},{code:`712125`,name:`褒忠乡`},{code:`712126`,name:`东势乡`},{code:`712127`,name:`台西乡`},{code:`712128`,name:`仑背乡`},{code:`712129`,name:`麦寮乡`},{code:`712130`,name:`斗六市`},{code:`712131`,name:`林内乡`},{code:`712132`,name:`古坑乡`},{code:`712133`,name:`莿桐乡`},{code:`712134`,name:`西螺镇`},{code:`712135`,name:`二仑乡`},{code:`712136`,name:`北港镇`},{code:`712137`,name:`水林乡`},{code:`712138`,name:`口湖乡`},{code:`712139`,name:`四湖乡`},{code:`712140`,name:`元长乡`}]},{code:`712400`,name:`屏东县`,districts:[{code:`712434`,name:`屏东市`},{code:`712435`,name:`三地门乡`},{code:`712436`,name:`雾台乡`},{code:`712437`,name:`玛家乡`},{code:`712438`,name:`九如乡`},{code:`712439`,name:`里港乡`},{code:`712440`,name:`高树乡`},{code:`712441`,name:`盐埔乡`},{code:`712442`,name:`长治乡`},{code:`712443`,name:`麟洛乡`},{code:`712444`,name:`竹田乡`},{code:`712445`,name:`内埔乡`},{code:`712446`,name:`万丹乡`},{code:`712447`,name:`潮州镇`},{code:`712448`,name:`泰武乡`},{code:`712449`,name:`来义乡`},{code:`712450`,name:`万峦乡`},{code:`712451`,name:`崁顶乡`},{code:`712452`,name:`新埤乡`},{code:`712453`,name:`南州乡`},{code:`712454`,name:`林边乡`},{code:`712455`,name:`东港镇`},{code:`712456`,name:`琉球乡`},{code:`712457`,name:`佳冬乡`},{code:`712458`,name:`新园乡`},{code:`712459`,name:`枋寮乡`},{code:`712460`,name:`枋山乡`},{code:`712461`,name:`春日乡`},{code:`712462`,name:`狮子乡`},{code:`712463`,name:`车城乡`},{code:`712464`,name:`牡丹乡`},{code:`712465`,name:`恒春镇`},{code:`712466`,name:`满州乡`}]},{code:`712500`,name:`台东县`,districts:[{code:`712517`,name:`台东市`},{code:`712518`,name:`绿岛乡`},{code:`712519`,name:`兰屿乡`},{code:`712520`,name:`延平乡`},{code:`712521`,name:`卑南乡`},{code:`712522`,name:`鹿野乡`},{code:`712523`,name:`关山镇`},{code:`712524`,name:`海端乡`},{code:`712525`,name:`池上乡`},{code:`712526`,name:`东河乡`},{code:`712527`,name:`成功镇`},{code:`712528`,name:`长滨乡`},{code:`712529`,name:`金峰乡`},{code:`712530`,name:`大武乡`},{code:`712531`,name:`达仁乡`},{code:`712532`,name:`太麻里乡`}]},{code:`712600`,name:`花莲县`,districts:[{code:`712615`,name:`花莲市`},{code:`712616`,name:`新城乡`},{code:`712618`,name:`秀林乡`},{code:`712619`,name:`吉安乡`},{code:`712620`,name:`寿丰乡`},{code:`712621`,name:`凤林镇`},{code:`712622`,name:`光复乡`},{code:`712623`,name:`丰滨乡`},{code:`712624`,name:`瑞穗乡`},{code:`712625`,name:`万荣乡`},{code:`712626`,name:`玉里镇`},{code:`712627`,name:`卓溪乡`},{code:`712628`,name:`富里乡`}]},{code:`712700`,name:`澎湖县`,districts:[{code:`712707`,name:`马公市`},{code:`712708`,name:`西屿乡`},{code:`712709`,name:`望安乡`},{code:`712710`,name:`七美乡`},{code:`712711`,name:`白沙乡`},{code:`712712`,name:`湖西乡`}]}]},{code:`810000`,name:`香港特别行政区`,cities:[{code:`810000`,name:`香港特别行政区`,districts:[{code:`810000`,name:`香港特别行政区`}]}]},{code:`820000`,name:`澳门特别行政区`,cities:[{code:`820000`,name:`澳门特别行政区`,districts:[{code:`820000`,name:`澳门特别行政区`}]}]}],sf=[{code:`sports`,name:`体育`,types:[[`track_field`,`田径`],[`basketball`,`篮球`],[`football`,`足球`],[`volleyball`,`排球`],[`table_tennis`,`乒乓球`],[`badminton`,`羽毛球`],[`swimming`,`游泳`],[`martial_arts`,`武术`],[`aerobics_cheer`,`健美操与啦啦操`]]},{code:`arts`,name:`艺术`,types:[[`vocal_music`,`声乐`],[`instrumental_music`,`器乐`],[`dance`,`舞蹈`],[`fine_arts`,`美术`],[`calligraphy`,`书法`],[`drama_broadcasting`,`戏剧与播音`]]}];function cf(e){return sf.find(t=>t.code===e)?.types||[]}var lf={class:`profile-fields`},uf={class:`form-grid`},df={class:`form-grid`},ff=[`value`],pf=[`value`],mf={class:`form-grid`},hf=[`value`],gf=[`disabled`],_f=[`value`],vf=[`disabled`],yf=[`value`],bf={class:`wide`},xf={class:`form-grid`},Sf=[`value`],Cf=[`disabled`],wf=[`value`],Tf={class:`wide`},Ef={__name:`ProfileFields`,props:{form:{type:Object,required:!0},schools:{type:Array,default:()=>[]},classes:{type:Array,default:()=>[]}},setup(e){let t=e,n=W(()=>cf(t.form.specialtyCategory)),r=W(()=>of.find(e=>e.code===t.form.provinceCode)?.cities||[]),i=W(()=>r.value.find(e=>e.code===t.form.cityCode)?.districts||[]);function a(){t.form.specialtyType=``}function o(){t.form.cityCode=``,t.form.districtCode=``}function s(){t.form.districtCode=``}return(t,c)=>(R(),z(`div`,lf,[c[55]||=B(`h2`,null,`身份信息`,-1),B(`div`,uf,[B(`label`,null,[c[24]||=B(`span`,null,`考生姓名 *`,-1),F(B(`input`,{"onUpdate:modelValue":c[0]||=t=>e.form.name=t,required:``},null,512),[[G,e.form.name]])]),B(`label`,null,[c[26]||=B(`span`,null,`性别 *`,-1),F(B(`select`,{"onUpdate:modelValue":c[1]||=t=>e.form.gender=t,required:``},[...c[25]||=[B(`option`,{value:``},`请选择`,-1),B(`option`,null,`男`,-1),B(`option`,null,`女`,-1)]],512),[[K,e.form.gender]])]),B(`label`,null,[c[27]||=B(`span`,null,`证件号码 *`,-1),F(B(`input`,{"onUpdate:modelValue":c[2]||=t=>e.form.idNumber=t,required:``},null,512),[[G,e.form.idNumber]])]),B(`label`,null,[c[28]||=B(`span`,null,`出生日期`,-1),F(B(`input`,{"onUpdate:modelValue":c[3]||=t=>e.form.birthDate=t,type:`date`},null,512),[[G,e.form.birthDate]])]),B(`label`,null,[c[29]||=B(`span`,null,`籍贯 *`,-1),F(B(`input`,{"onUpdate:modelValue":c[4]||=t=>e.form.nativePlace=t,required:``},null,512),[[G,e.form.nativePlace]])]),B(`label`,null,[c[30]||=B(`span`,null,`民族`,-1),F(B(`input`,{"onUpdate:modelValue":c[5]||=t=>e.form.ethnicity=t},null,512),[[G,e.form.ethnicity]])])]),c[56]||=B(`h2`,null,`学校与班级`,-1),B(`div`,df,[B(`label`,null,[c[32]||=B(`span`,null,`就读学校 *`,-1),F(B(`select`,{"onUpdate:modelValue":c[6]||=t=>e.form.schoolId=t,required:``,onChange:c[7]||=t=>e.form.classId=``},[c[31]||=B(`option`,{value:``},`请选择`,-1),(R(!0),z(L,null,I(e.schools,e=>(R(),z(`option`,{key:e.id,value:e.id},O(e.name),9,ff))),128))],544),[[K,e.form.schoolId]])]),B(`label`,null,[c[34]||=B(`span`,null,`班级 *`,-1),F(B(`select`,{"onUpdate:modelValue":c[8]||=t=>e.form.classId=t,required:``},[c[33]||=B(`option`,{value:``},`请选择`,-1),(R(!0),z(L,null,I(e.classes,e=>(R(),z(`option`,{key:e.id,value:e.id},O(e.name),9,pf))),128))],512),[[K,e.form.classId]])])]),c[57]||=B(`h2`,null,`家庭与联系信息`,-1),B(`div`,mf,[B(`label`,null,[c[36]||=B(`span`,null,`所在省份 *`,-1),F(B(`select`,{"onUpdate:modelValue":c[9]||=t=>e.form.provinceCode=t,required:``,onChange:o},[c[35]||=B(`option`,{value:``},`请选择`,-1),(R(!0),z(L,null,I(N(of),e=>(R(),z(`option`,{key:e.code,value:e.code},O(e.name),9,hf))),128))],544),[[K,e.form.provinceCode]])]),B(`label`,null,[c[38]||=B(`span`,null,`所在城市 *`,-1),F(B(`select`,{"onUpdate:modelValue":c[10]||=t=>e.form.cityCode=t,required:``,disabled:!e.form.provinceCode,onChange:s},[c[37]||=B(`option`,{value:``},`请选择`,-1),(R(!0),z(L,null,I(r.value,e=>(R(),z(`option`,{key:e.code,value:e.code},O(e.name),9,_f))),128))],40,gf),[[K,e.form.cityCode]])]),B(`label`,null,[c[40]||=B(`span`,null,`所在区县 *`,-1),F(B(`select`,{"onUpdate:modelValue":c[11]||=t=>e.form.districtCode=t,required:``,disabled:!e.form.cityCode},[c[39]||=B(`option`,{value:``},`请选择`,-1),(R(!0),z(L,null,I(i.value,e=>(R(),z(`option`,{key:e.code,value:e.code},O(e.name),9,yf))),128))],8,vf),[[K,e.form.districtCode]])]),B(`label`,null,[c[41]||=B(`span`,null,`手机号 *`,-1),F(B(`input`,{"onUpdate:modelValue":c[12]||=t=>e.form.phone=t,required:``},null,512),[[G,e.form.phone]])]),B(`label`,null,[c[42]||=B(`span`,null,`电子邮箱 *`,-1),F(B(`input`,{"onUpdate:modelValue":c[13]||=t=>e.form.email=t,type:`email`,required:``},null,512),[[G,e.form.email]])]),B(`label`,bf,[c[43]||=B(`span`,null,`家庭住址 *`,-1),F(B(`input`,{"onUpdate:modelValue":c[14]||=t=>e.form.address=t,required:``},null,512),[[G,e.form.address]])]),B(`label`,null,[c[44]||=B(`span`,null,`邮政编码`,-1),F(B(`input`,{"onUpdate:modelValue":c[15]||=t=>e.form.postalCode=t},null,512),[[G,e.form.postalCode]])]),B(`label`,null,[c[45]||=B(`span`,null,`监护人姓名`,-1),F(B(`input`,{"onUpdate:modelValue":c[16]||=t=>e.form.guardianName=t},null,512),[[G,e.form.guardianName]])]),B(`label`,null,[c[46]||=B(`span`,null,`监护人电话`,-1),F(B(`input`,{"onUpdate:modelValue":c[17]||=t=>e.form.guardianPhone=t},null,512),[[G,e.form.guardianPhone]])]),B(`label`,null,[c[47]||=B(`span`,null,`紧急联系人`,-1),F(B(`input`,{"onUpdate:modelValue":c[18]||=t=>e.form.emergencyContact=t},null,512),[[G,e.form.emergencyContact]])]),B(`label`,null,[c[48]||=B(`span`,null,`紧急联系电话`,-1),F(B(`input`,{"onUpdate:modelValue":c[19]||=t=>e.form.emergencyPhone=t},null,512),[[G,e.form.emergencyPhone]])])]),c[58]||=B(`h2`,null,`招生资格`,-1),B(`div`,xf,[B(`label`,null,[c[50]||=B(`span`,null,`特长生大类`,-1),F(B(`select`,{"onUpdate:modelValue":c[20]||=t=>e.form.specialtyCategory=t,onChange:a},[c[49]||=B(`option`,{value:``},`无特长资格`,-1),(R(!0),z(L,null,I(N(sf),e=>(R(),z(`option`,{key:e.code,value:e.code},O(e.name),9,Sf))),128))],544),[[K,e.form.specialtyCategory]])]),B(`label`,null,[c[52]||=B(`span`,null,`特长项目`,-1),F(B(`select`,{"onUpdate:modelValue":c[21]||=t=>e.form.specialtyType=t,disabled:!e.form.specialtyCategory},[c[51]||=B(`option`,{value:``},`请选择`,-1),(R(!0),z(L,null,I(n.value,e=>(R(),z(`option`,{key:e[0],value:e[0]},O(e[1]),9,wf))),128))],8,Cf),[[K,e.form.specialtyType]])]),B(`label`,null,[c[53]||=B(`span`,null,`特长证明编号`,-1),F(B(`input`,{"onUpdate:modelValue":c[22]||=t=>e.form.specialtyCertificate=t},null,512),[[G,e.form.specialtyCertificate]])]),B(`label`,Tf,[c[54]||=B(`span`,null,`政策资格说明`,-1),F(B(`input`,{"onUpdate:modelValue":c[23]||=t=>e.form.policyEligibility=t},null,512),[[G,e.form.policyEligibility]])])])]))}},Df={class:`security-stack`},Of={key:0,class:`form-error`},kf={key:1,class:`recovery-code-panel`},Af={class:`recovery-code-grid`},jf=[`disabled`],Mf={class:`business-form security-card`},Nf=[`disabled`],Pf={class:`totp-setup-grid`},Ff=[`src`],If=[`disabled`],Lf={class:`security-protected-actions`},Rf=[`disabled`],zf=[`disabled`],Bf={__name:`AccountSecurity`,props:{status:{type:Object,default:()=>({})}},emits:[`updated`],setup(e,{emit:t}){let n=t,r=M(!1),i=M(``),a=M(null),o=M([]),s=A({currentPassword:``,newPassword:``,confirmPassword:``}),c=M(``),l=M(``),u=A({currentPassword:``,code:``});async function d(e){r.value=!0,i.value=``;try{await e()}catch(e){i.value=e.message}finally{r.value=!1}}function f(){return d(async()=>{if(s.newPassword!==s.confirmPassword)throw Error(`两次输入的新密码不一致`);await X(`/api/auth/change-password`,{method:`POST`,body:s}),Object.assign(s,{currentPassword:``,newPassword:``,confirmPassword:``}),Y.notify(`密码修改成功`,`下次登录请使用新密码`)})}function p(){return d(async()=>{a.value=await X(`/api/auth/totp/setup`,{method:`POST`,body:{currentPassword:c.value}}),c.value=``})}function m(){return d(async()=>{let e=await X(`/api/auth/totp/enable`,{method:`POST`,body:{code:l.value}});o.value=e.recoveryCodes||[],a.value=null,l.value=``,await Q.refreshSession(),n(`updated`),Y.notify(`二次验证已开启`,`请立即保存恢复码`)})}function h(){return d(async()=>{let e=await X(`/api/auth/totp/recovery-codes`,{method:`POST`,body:u});o.value=e.recoveryCodes||[],Object.assign(u,{currentPassword:``,code:``}),n(`updated`)})}function g(){return d(async()=>{await X(`/api/auth/totp/disable`,{method:`POST`,body:u}),Object.assign(u,{currentPassword:``,code:``}),o.value=[],await Q.refreshSession(),n(`updated`),Y.notify(`二次验证已关闭`,`账户现在仅使用密码登录`)})}async function _(){await navigator.clipboard.writeText(o.value.join(` -`)),Y.notify(`恢复码已复制`,`请保存到安全的位置`)}return(t,n)=>(R(),z(`div`,Df,[i.value?(R(),z(`div`,Of,O(i.value),1)):U(``,!0),o.value.length?(R(),z(`section`,kf,[n[7]||=B(`div`,null,[B(`p`,null,`RECOVERY CODES`),B(`h2`,null,`立即保存恢复码`),B(`span`,null,`每个恢复码只能使用一次,关闭页面后系统不会再次展示本组代码。`)],-1),B(`div`,Af,[(R(!0),z(L,null,I(o.value,e=>(R(),z(`code`,{key:e},O(e),1))),128))]),B(`button`,{class:`app-button app-button--primary`,type:`button`,onClick:_},`复制全部恢复码`)])):U(``,!0),B(`form`,{class:`business-form security-card`,onSubmit:q(f,[`prevent`])},[B(`header`,null,[n[8]||=B(`div`,null,[B(`p`,null,`LOGIN PASSWORD`),B(`h2`,null,`修改登录密码`)],-1),V($,{value:`active`})]),B(`span`,null,`账号:`+O(N(Q).state.user?.username||N(Q).state.user?.candidateNumber)+`。新密码至少 8 位,并应与当前密码不同。`,1),B(`label`,null,[n[9]||=B(`span`,null,`当前密码`,-1),F(B(`input`,{"onUpdate:modelValue":n[0]||=e=>s.currentPassword=e,type:`password`,autocomplete:`current-password`,required:``},null,512),[[G,s.currentPassword]])]),B(`label`,null,[n[10]||=B(`span`,null,`新密码`,-1),F(B(`input`,{"onUpdate:modelValue":n[1]||=e=>s.newPassword=e,type:`password`,autocomplete:`new-password`,minlength:`8`,required:``},null,512),[[G,s.newPassword]])]),B(`label`,null,[n[11]||=B(`span`,null,`再次输入新密码`,-1),F(B(`input`,{"onUpdate:modelValue":n[2]||=e=>s.confirmPassword=e,type:`password`,autocomplete:`new-password`,minlength:`8`,required:``},null,512),[[G,s.confirmPassword]])]),B(`button`,{class:`app-button app-button--primary`,disabled:r.value},`保存新密码`,8,jf)],32),B(`section`,Mf,[B(`header`,null,[n[12]||=B(`div`,null,[B(`p`,null,`TWO-STEP VERIFICATION`),B(`h2`,null,`TOTP 二次验证`)],-1),V($,{value:e.status.enabled?`active`:`disabled`},null,8,[`value`])]),!e.status.enabled&&!a.value?(R(),z(L,{key:0},[n[14]||=B(`span`,null,`使用验证器应用生成的动态验证码,为账号增加独立于密码的第二层保护。`,-1),B(`form`,{class:`inline-security-form`,onSubmit:q(p,[`prevent`])},[B(`label`,null,[n[13]||=B(`span`,null,`确认当前密码`,-1),F(B(`input`,{"onUpdate:modelValue":n[3]||=e=>c.value=e,type:`password`,autocomplete:`current-password`,required:``},null,512),[[G,c.value]])]),B(`button`,{class:`app-button app-button--primary`,disabled:r.value},`开始绑定验证器`,8,Nf)],32)],64)):a.value?(R(),z(L,{key:1},[B(`div`,Pf,[B(`img`,{src:a.value.qrCode,alt:`TOTP 绑定二维码`,width:`220`,height:`220`},null,8,Ff),B(`div`,null,[n[15]||=B(`span`,null,`无法扫码时手动输入密钥`,-1),B(`code`,null,O(a.value.secret?.match(/.{1,4}/g)?.join(` `)||a.value.secret),1),n[16]||=B(`small`,null,`基于时间 · 6 位 · 每 30 秒更新`,-1)])]),B(`form`,{class:`inline-security-form`,onSubmit:q(m,[`prevent`])},[B(`label`,null,[n[17]||=B(`span`,null,`验证器中的 6 位验证码`,-1),F(B(`input`,{"onUpdate:modelValue":n[4]||=e=>l.value=e,inputmode:`numeric`,autocomplete:`one-time-code`,pattern:`[0-9]{6}`,maxlength:`6`,required:``},null,512),[[G,l.value]])]),B(`button`,{class:`app-button app-button--primary`,disabled:r.value},`验证并启用`,8,If)],32)],64)):(R(),z(L,{key:2},[B(`span`,null,`二次验证正在保护此账号,当前剩余 `+O(e.status.recoveryCodesRemaining)+` 个恢复码。`,1),B(`div`,Lf,[B(`label`,null,[n[18]||=B(`span`,null,`当前密码`,-1),F(B(`input`,{"onUpdate:modelValue":n[5]||=e=>u.currentPassword=e,type:`password`,autocomplete:`current-password`},null,512),[[G,u.currentPassword]])]),B(`label`,null,[n[19]||=B(`span`,null,`动态验证码或恢复码`,-1),F(B(`input`,{"onUpdate:modelValue":n[6]||=e=>u.code=e,autocomplete:`one-time-code`},null,512),[[G,u.code]])]),B(`div`,null,[B(`button`,{class:`app-button`,type:`button`,disabled:r.value,onClick:h},`重新生成恢复码`,8,Rf),B(`button`,{class:`app-button app-button--danger`,type:`button`,disabled:r.value,onClick:g},`关闭二次验证`,8,zf)])])],64))])]))}},Vf=`modulepreload`,Hf=function(e){return`/`+e},Uf={},Wf=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Hf(t,n),t=s(t),t in Uf)return;Uf[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Vf,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Gf={key:0,class:`candidate-onboarding`},Kf=[`disabled`],qf=[`disabled`],Jf={class:`candidate-welcome-vue`},Yf={class:`record-metrics`},Xf={class:`candidate-dashboard-grid`},Zf={class:`record-panel`},Qf={class:`record-panel`},$f=[`onClick`],ep={key:0,class:`form-callout`},tp=[`disabled`],np={key:2,class:`business-card-list`},rp={class:`subject-choice-grid`},ip=[`onUpdate:modelValue`,`value`,`disabled`],ap={key:0},op=[`disabled`,`onClick`],sp={key:3,class:`business-card-list`},cp={class:`chip-list`},lp={key:0},up={key:0,class:`page-state page-state--empty`},dp={key:4,class:`business-card-list`},fp=[`disabled`,`onClick`],pp={key:0,class:`page-state page-state--empty`},mp={key:5,class:`business-card-list`},hp=[`onClick`],gp={class:`result-card-grid`},_p=[`onSubmit`],vp=[`onUpdate:modelValue`],yp={key:0,class:`page-state page-state--empty`},bp={key:6,class:`business-card-list`},xp={class:`record-metrics`},Sp={key:0,class:`form-callout`},Cp=[`onClick`],wp=[`onSubmit`],Tp=[`onUpdate:modelValue`,`onChange`],Ep=[`value`],Dp=[`onUpdate:modelValue`,`disabled`],Op=[`value`],kp={key:2},Ap={key:0,class:`page-state page-state--empty`},jp={key:7,class:`record-panel notice-list-vue`},Mp=[`onClick`],Np={__name:`CandidatePage`,props:{page:{type:String,required:!0}},setup(e){let t=e,n=Ls(),r=M(!0),i=M(``),a=M({}),o=A({}),s=A({}),c=A({}),l=A({}),u=A({currentPassword:``,newPassword:``,confirmPassword:``}),d=M(!1),f=W(()=>({dashboard:[`总览`,`查看资料、报名、准考证与成绩状态。`],profile:[`个人资料`,`维护实名、学籍和联系信息。`],exams:[`考试报名`,`在开放时间内选择考试和报考科目。`],registrations:[`我的报名`,`查看考试、科目和审核进度。`],admit:[`准考证`,`在规定时间内下载已经生成的准考证。`],results:[`成绩查询`,`查看正式发布的成绩并申请复议。`],admissions:[`志愿填报与录取`,`填报本人志愿并查看投档与录取进度。`],notices:[`通知公告`,`查看与考试相关的最新通知。`],security:[`账户安全`,`修改登录密码并管理二次验证。`],onboarding:[`首次登录`,`完成密码更新和个人资料建档。`]})[t.page]||[`考生中心`,`办理个人考试事项。`]),p=W(()=>({dashboard:`dashboard`,profile:`profile`,exams:`exams`,registrations:`registrations`,admit:`registrations`,results:`results`,admissions:`admissions`,notices:`notices`})[t.page]),m=W(()=>a.value.registrations||(Array.isArray(a.value)?a.value:[])),h=W(()=>Object.values((a.value.results||[]).reduce((e,t)=>((e[t.examId]||=[]).push(t),e),{}))),g=W(()=>(a.value.classes||[]).filter(e=>e.schoolId===l.schoolId));async function _(){r.value=!0,i.value=``;try{t.page===`onboarding`?Q.state.user?.mustChangePassword?a.value={stage:`password`}:a.value=await X(`/api/candidate/profile`):t.page===`security`?a.value=await X(`/api/auth/totp`):a.value=await X(`/api/candidate/${p.value}`),v()}catch(e){i.value=e.message}finally{r.value=!1}}function v(){let e=a.value.profile||{};Object.keys(l).forEach(e=>delete l[e]),Object.assign(l,e,{idNumber:String(e.idNumber||``).startsWith(`PENDING-`)?``:e.idNumber||``});for(let e of a.value.exams||[])o[e.id]=[...e.registration?.subjectIds||[]];for(let e of a.value.admissions||[]){let t=e.preference?.payload?.choices||[],n=t.find(e=>e.preferenceType===`indicator`)||{schoolId:``,categoryCode:``,preferenceType:`indicator`},r=t.filter(e=>e.preferenceType!==`indicator`);c[e.examId]=[n,...Array.from({length:Number(e.payload?.maxChoices||5)},(e,t)=>({schoolId:r[t]?.schoolId||``,categoryCode:r[t]?.categoryCode||``,preferenceType:`general`}))]}}async function y(e=!1){if(u.newPassword!==u.confirmPassword){i.value=`两次输入的新密码不一致`;return}d.value=!0,i.value=``;try{await X(`/api/auth/change-password`,{method:`POST`,body:u}),Object.assign(u,{currentPassword:``,newPassword:``,confirmPassword:``}),await Q.refreshSession(),Y.notify(`密码修改成功`,e?`请继续补全个人资料`:`下次登录请使用新密码`),e&&await _()}catch(e){i.value=e.message}finally{d.value=!1}}async function b(e=!1){d.value=!0,i.value=``;try{let t=await X(`/api/candidate/profile`,{method:`PUT`,body:Object.fromEntries([`name`,`gender`,`idNumber`,`birthDate`,`nativePlace`,`ethnicity`,`schoolId`,`classId`,`provinceCode`,`cityCode`,`districtCode`,`phone`,`email`,`address`,`postalCode`,`guardianName`,`guardianPhone`,`emergencyContact`,`emergencyPhone`,`specialtyCategory`,`specialtyType`,`specialtyCertificate`,`policyEligibility`].map(e=>[e,l[e]??``]))});Q.state.profile=t.profile,await Q.refreshSession(),Y.notify(`资料已提交`,`管理员审核后会更新状态`),e?await n.replace(`/candidate/dashboard`):await _()}catch(e){i.value=e.message}finally{d.value=!1}}async function x(e){let t=o[e.id]||[];if(!t.length){Y.notify(`请选择科目`,`至少选择一个报考科目`,`warning`);return}d.value=!0;try{await X(`/api/candidate/registrations`,{method:`POST`,body:{examId:e.id,subjectIds:t}}),Y.notify(`报名已提交`,`已选择 ${t.length} 个科目`),await _()}catch(e){i.value=e.message}finally{d.value=!1}}async function S(e){let t=String(s[e.id]||``).trim();if(t.length<5){Y.notify(`请补充复议理由`,`至少填写 5 个字`,`warning`);return}try{await X(`/api/candidate/results/${e.id}/appeals`,{method:`POST`,body:{reason:t}}),s[e.id]=``,Y.notify(`成绩复议已提交`,`可在本页查看处理进度`),await _()}catch(e){i.value=e.message}}function C(e,t){return(e.plans||[]).filter(e=>(e.categories||[]).some(e=>(e.preferenceTypes||[]).includes(t)))}function w(e,t){return((e.plans||[]).find(e=>e.schoolId===t.schoolId)?.categories||[]).filter(e=>(e.preferenceTypes||[]).includes(t.preferenceType))}async function T(e){let t=(c[e.examId]||[]).filter(e=>e.schoolId&&e.categoryCode);try{let n=await X(`/api/candidate/admissions/${e.examId}/preferences`,{method:`PUT`,body:{choices:t}});Y.notify(n.locked?`志愿已保存并锁定`:`志愿已保存`,n.locked?`提交次数已达到上限`:`还可提交 ${n.remainingSubmissions} 次`),await _()}catch(e){i.value=e.message}}function ee(e){window.location.href=`/api/candidate/registrations/${e}/admit-card`}async function te(e){let t=(a.value.summaries||[]).find(t=>t.examId===e[0].examId)||{},{downloadScoreReport:n}=await Wf(async()=>{let{downloadScoreReport:e}=await import(`/js/client/pdf-export.js`);return{downloadScoreReport:e}},[]);await n({organization:Q.state.publicData.organization,candidate:a.value.candidate||{name:Q.state.profile?.name||Q.state.user?.displayName,candidateNumber:Q.state.user?.candidateNumber},exam:{id:e[0].examId,name:e[0].examName,code:e[0].examCode},results:e,summary:{...t,publishedAt:[...e].sort((e,t)=>new Date(t.publishedAt)-new Date(e.publishedAt))[0]?.publishedAt},verificationCode:t.verificationCode,verificationQr:t.verificationQr,verificationUrl:`${location.origin}/verify/${t.verificationCode}`})}async function E(e){let{downloadAdmissionNotice:t}=await Wf(async()=>{let{downloadAdmissionNotice:e}=await import(`/js/client/pdf-export.js`);return{downloadAdmissionNotice:e}},[]);await t({organization:Q.state.publicData.organization,candidate:{name:Q.state.profile?.name||Q.state.user?.displayName},exam:e.exam,placement:e.placement,school:e.placementSchool||{name:e.placement?.schoolName||`招生学校`},template:e.noticeTemplate||{},verificationCode:e.noticeVerificationCode,verificationQr:e.noticeVerificationQr,noticeNumber:e.noticeNumber,verificationUrl:`${location.origin}/verify/${e.noticeVerificationCode}`})}function ne(e){n.push(`/announcements/${e}`)}return Ln(()=>t.page,_),jr(_),(t,p)=>{let v=Vr(`RouterLink`);return e.page===`onboarding`?(R(),z(`main`,Gf,[B(`aside`,null,[V(v,{class:`app-brand app-brand--light`,to:`/`},{default:P(()=>[...p[7]||=[B(`span`,null,`衡`,-1),B(`div`,null,[B(`strong`,null,`衡准考试服务`),B(`small`,null,`FIRST SIGN-IN`)],-1)]]),_:1}),p[8]||=B(`p`,null,`固定报名号`,-1),B(`strong`,null,O(N(Q).state.user?.candidateNumber),1),p[9]||=B(`span`,null,`完成首次登录设置后,这个号码将用于所有考试事项。`,-1)]),B(`section`,null,[V(Xu,{loading:r.value,error:i.value,onRetry:_},{default:P(()=>[N(Q).state.user?.mustChangePassword?(R(),z(`form`,{key:0,class:`business-form onboarding-form`,onSubmit:p[3]||=q(e=>y(!0),[`prevent`])},[p[13]||=B(`p`,null,`STEP 1`,-1),p[14]||=B(`h1`,null,`先保护你的账户`,-1),p[15]||=B(`span`,null,`初始密码只用于第一次登录,请设置仅本人知道的新密码。`,-1),B(`label`,null,[p[10]||=B(`span`,null,`当前初始密码`,-1),F(B(`input`,{"onUpdate:modelValue":p[0]||=e=>u.currentPassword=e,type:`password`,required:``},null,512),[[G,u.currentPassword]])]),B(`label`,null,[p[11]||=B(`span`,null,`设置新密码`,-1),F(B(`input`,{"onUpdate:modelValue":p[1]||=e=>u.newPassword=e,type:`password`,minlength:`8`,required:``},null,512),[[G,u.newPassword]])]),B(`label`,null,[p[12]||=B(`span`,null,`再次输入新密码`,-1),F(B(`input`,{"onUpdate:modelValue":p[2]||=e=>u.confirmPassword=e,type:`password`,minlength:`8`,required:``},null,512),[[G,u.confirmPassword]])]),B(`button`,{class:`app-button app-button--primary app-button--large`,disabled:d.value},`保存新密码并继续`,8,Kf)],32)):(R(),z(`form`,{key:1,class:`business-form profile-editor`,onSubmit:p[4]||=q(e=>b(!0),[`prevent`])},[p[16]||=B(`p`,null,`STEP 2`,-1),p[17]||=B(`h1`,null,`建立完整考生档案`,-1),V(Ef,{form:l,schools:a.value.schools||[],classes:g.value},null,8,[`form`,`schools`,`classes`]),B(`button`,{class:`app-button app-button--primary app-button--large`,disabled:d.value},`提交个人信息`,8,qf)],32))]),_:1},8,[`loading`,`error`])])])):(R(),ga(af,{key:1,role:`candidate`,page:e.page,title:f.value[0],description:f.value[1]},{default:P(()=>[V(Xu,{loading:r.value,error:i.value,onRetry:_},{default:P(()=>[e.page===`dashboard`?(R(),z(L,{key:0},[B(`section`,Jf,[B(`div`,null,[B(`span`,null,O(new Date().getHours()<12?`上午好`:`下午好`),1),B(`h2`,null,O(a.value.profile?.name||N(Q).state.user?.displayName)+`,欢迎回来。`,1),B(`p`,null,O(a.value.profile?.status===`approved`?`资料已通过审核,可以继续办理考试事项。`:`个人资料正在审核中,通过后即可报名考试。`),1)]),p[18]||=B(`strong`,null,[H(`准`),B(`br`),H(`考`)],-1)]),B(`section`,Yf,[B(`article`,null,[p[19]||=B(`span`,null,`个人资料`,-1),B(`strong`,null,[V($,{value:a.value.profile?.status||`pending`},null,8,[`value`])])]),B(`article`,null,[p[20]||=B(`span`,null,`已报名考试`,-1),B(`strong`,null,O(a.value.registrations?.length||0),1)]),B(`article`,null,[p[21]||=B(`span`,null,`可下载准考证`,-1),B(`strong`,null,O(a.value.registrations?.filter(e=>e.admitCard).length||0),1)]),B(`article`,null,[p[22]||=B(`span`,null,`已发布成绩`,-1),B(`strong`,null,O(a.value.results?.length||0),1)])]),B(`div`,Xf,[B(`section`,Zf,[p[23]||=B(`header`,null,[B(`div`,null,[B(`h2`,null,`最近报名`),B(`p`,null,`考试办理状态实时更新`)])],-1),(R(!0),z(L,null,I(a.value.registrations?.slice(0,4),e=>(R(),z(`button`,{key:e.id,class:`dashboard-row`,type:`button`,onClick:p[5]||=e=>N(n).push(`/candidate/registrations`)},[B(`span`,null,[B(`strong`,null,O(e.exam?.name),1),B(`small`,null,O(e.subjects?.length||0)+` 个科目`,1)]),V($,{value:e.status},null,8,[`value`])]))),128))]),B(`section`,Qf,[p[25]||=B(`header`,null,[B(`div`,null,[B(`h2`,null,`最近通知`),B(`p`,null,`考试中心正式发布`)])],-1),(R(!0),z(L,null,I(a.value.notices?.slice(0,5),e=>(R(),z(`button`,{key:e.id,class:`dashboard-row`,type:`button`,onClick:t=>ne(e.id)},[B(`span`,null,[B(`strong`,null,O(e.title),1),B(`small`,null,O(N(Rl)(e.publishAt)),1)]),p[24]||=B(`i`,null,`→`,-1)],8,$f))),128))])])],64)):e.page===`profile`?(R(),z(`form`,{key:1,class:`business-form profile-editor`,onSubmit:p[6]||=q(e=>b(!1),[`prevent`])},[V(Ef,{form:l,schools:a.value.schools||[],classes:g.value},null,8,[`form`,`schools`,`classes`]),a.value.profile?.reviewNote?(R(),z(`div`,ep,[p[26]||=B(`strong`,null,`审核意见`,-1),B(`p`,null,O(a.value.profile.reviewNote),1)])):U(``,!0),B(`button`,{class:`app-button app-button--primary`,disabled:d.value},`保存并提交审批`,8,tp)],32)):e.page===`exams`?(R(),z(`div`,np,[(R(!0),z(L,null,I(a.value.exams,e=>(R(),z(`article`,{key:e.id,class:`exam-apply-card`},[B(`header`,null,[B(`span`,null,O(e.code),1),V($,{value:e.registrationState},null,8,[`value`])]),B(`h2`,null,O(e.name),1),B(`p`,null,O(e.description),1),B(`dl`,null,[B(`div`,null,[p[27]||=B(`dt`,null,`报名期限`,-1),B(`dd`,null,O(N(zl)(e.registrationStart,e.registrationEnd)),1)]),B(`div`,null,[p[28]||=B(`dt`,null,`考试时间`,-1),B(`dd`,null,O(N(zl)(e.examStart,e.examEnd)),1)]),B(`div`,null,[p[29]||=B(`dt`,null,`计分规则`,-1),B(`dd`,null,`总分 `+O(e.totalScore)+` · `+O(N(Hl)(e)),1)])]),B(`div`,rp,[(R(!0),z(L,null,I(e.subjects,t=>(R(),z(`label`,{key:t.id},[F(B(`input`,{"onUpdate:modelValue":t=>o[e.id]=t,type:`checkbox`,value:t.id,disabled:!!e.registration},null,8,ip),[[us,o[e.id]]]),B(`span`,null,[B(`strong`,null,O(t.name),1),B(`small`,null,O(t.date)+` `+O(t.start)+` · 满分 `+O(t.fullScore),1),B(`em`,null,O(N(Vl)(t.fee)),1)])]))),128))]),e.registration?(R(),z(`footer`,ap,[B(`span`,null,`已提交 `+O(e.registration.subjectIds?.length||0)+` 个科目`,1),V($,{value:e.registration.status},null,8,[`value`])])):(R(),z(`button`,{key:1,class:`app-button app-button--primary`,type:`button`,disabled:d.value||e.registrationState!==`open`||a.value.profileStatus!==`approved`,onClick:t=>x(e)},O(a.value.profileStatus===`approved`?`提交考试报名`:`资料审核通过后可报名`),9,op))]))),128))])):e.page===`registrations`?(R(),z(`div`,sp,[(R(!0),z(L,null,I(m.value,e=>(R(),z(`article`,{key:e.id,class:`registration-vue-card`},[B(`header`,null,[B(`div`,null,[B(`span`,null,O(e.exam?.code),1),B(`h2`,null,O(e.exam?.name),1)]),V($,{value:e.exam?.archivedAt?`archived`:e.status},null,8,[`value`])]),B(`dl`,null,[B(`div`,null,[p[30]||=B(`dt`,null,`账户报名号`,-1),B(`dd`,null,O(e.registrationNumber||N(Q).state.user?.candidateNumber),1)]),B(`div`,null,[p[31]||=B(`dt`,null,`当前审批`,-1),B(`dd`,null,O(e.workflow?.currentStepDetail?.name||e.workflow?.status||`待提交`),1)]),B(`div`,null,[p[32]||=B(`dt`,null,`应缴金额`,-1),B(`dd`,null,O(N(Vl)(e.amountDue)),1)]),B(`div`,null,[p[33]||=B(`dt`,null,`缴费状态`,-1),B(`dd`,null,[V($,{value:e.paymentStatus},null,8,[`value`])])])]),B(`div`,cp,[(R(!0),z(L,null,I(e.subjects,e=>(R(),z(`span`,{key:e.id},[H(O(e.name),1),B(`small`,null,O(e.date)+` `+O(e.start),1)]))),128))]),e.reviewNote?(R(),z(`p`,lp,`审核意见:`+O(e.reviewNote),1)):U(``,!0)]))),128)),m.value.length?U(``,!0):(R(),z(`div`,up,[...p[34]||=[B(`strong`,null,`还没有考试报名`,-1),B(`p`,null,`资料审核通过后,可在“考试报名”中选择考试与科目。`,-1)]]))])):e.page===`admit`?(R(),z(`div`,dp,[(R(!0),z(L,null,I(m.value.filter(e=>e.admitCard),e=>(R(),z(`article`,{key:e.id,class:`admit-card-vue`},[B(`header`,null,[B(`span`,null,O(e.exam.code),1),V($,{value:e.exam.archivedAt?`archived`:`open`},null,8,[`value`])]),B(`h2`,null,O(e.exam.name),1),B(`div`,null,[p[35]||=B(`small`,null,`准考证号`,-1),B(`strong`,null,O(e.admitCard.number),1)]),B(`dl`,null,[B(`div`,null,[p[36]||=B(`dt`,null,`固定考点`,-1),B(`dd`,null,O(e.admitCard.testCenter),1)]),B(`div`,null,[p[37]||=B(`dt`,null,`下载时间`,-1),B(`dd`,null,O(N(zl)(e.exam.admitDownloadStart,e.exam.admitDownloadEnd)),1)])]),B(`button`,{class:`app-button app-button--primary`,type:`button`,disabled:!!e.exam.archivedAt,onClick:t=>ee(e.id)},`下载准考证`,8,fp)]))),128)),m.value.some(e=>e.admitCard)?U(``,!0):(R(),z(`div`,pp,[...p[38]||=[B(`strong`,null,`准考证尚未生成`,-1),B(`p`,null,`管理员统一编排后会显示在这里。`,-1)]]))])):e.page===`results`?(R(),z(`div`,mp,[(R(!0),z(L,null,I(h.value,e=>(R(),z(`section`,{key:e[0].examId,class:`record-panel result-group`},[B(`header`,null,[B(`div`,null,[B(`span`,null,O(e[0].examCode),1),B(`h2`,null,O(e[0].examName),1)]),B(`button`,{class:`app-button app-button--primary`,type:`button`,onClick:t=>te(e)},`下载 PDF 成绩单`,8,hp)]),B(`div`,gp,[(R(!0),z(L,null,I(e,e=>(R(),z(`article`,{key:e.id},[B(`span`,null,O(e.subjectName),1),B(`strong`,null,[H(O(e.score),1),B(`small`,null,`/ `+O(e.fullScore),1)]),B(`em`,null,O(e.grade)+` · 第 `+O(e.rank)+` / `+O(e.cohortSize)+` 名`,1),e.appeal?(R(),ga($,{key:0,value:e.appeal.status},null,8,[`value`])):(R(),z(`form`,{key:1,onSubmit:q(t=>S(e),[`prevent`])},[F(B(`textarea`,{"onUpdate:modelValue":t=>s[e.id]=t,rows:`2`,placeholder:`填写成绩复议理由`},null,8,vp),[[G,s[e.id]]]),p[39]||=B(`button`,{type:`submit`},`申请复议`,-1)],40,_p))]))),128))])]))),128)),h.value.length?U(``,!0):(R(),z(`div`,yp,[...p[40]||=[B(`strong`,null,`暂时没有已发布成绩`,-1),B(`p`,null,`成绩发布后会显示在这里。`,-1)]]))])):e.page===`admissions`?(R(),z(`div`,bp,[(R(!0),z(L,null,I(a.value.admissions,e=>(R(),z(`section`,{key:e.examId,class:`record-panel admission-candidate-vue`},[B(`header`,null,[B(`div`,null,[B(`span`,null,O(e.exam.code)+` · 第 `+O(e.payload?.round||1)+` 轮`,1),B(`h2`,null,O(e.exam.name),1)]),V($,{value:e.status},null,8,[`value`])]),B(`div`,xp,[B(`article`,null,[p[41]||=B(`span`,null,`本场总成绩`,-1),B(`strong`,null,O(e.totalScore??`未完整发布`),1)]),B(`article`,null,[p[42]||=B(`span`,null,`特征分`,-1),B(`strong`,null,O(e.featureScore||0),1)]),B(`article`,null,[p[43]||=B(`span`,null,`已提交志愿`,-1),B(`strong`,null,O(e.submissionCount||0)+` / `+O(e.maxSubmissions||e.payload?.maxSubmissions||0),1)])]),e.placement?(R(),z(`div`,Sp,[B(`strong`,null,`当前录取结果:`+O(e.placementSchool?.name||e.placement.schoolName||`招生学校`),1),B(`p`,null,O(e.placement.payload?.categoryName)+` · `+O(e.placement.status),1),e.placement.status===`final`?(R(),z(`button`,{key:0,class:`app-button app-button--primary`,type:`button`,onClick:t=>E(e)},`下载录取通知书 PDF`,8,Cp)):U(``,!0)])):U(``,!0),[`filling`,`supplementary`].includes(e.status)&&!e.preferenceLocked&&e.supplementEligible!==!1?(R(),z(`form`,{key:1,class:`preference-editor`,onSubmit:q(t=>T(e),[`prevent`])},[(R(!0),z(L,null,I(c[e.examId],(t,n)=>(R(),z(`div`,{key:n,class:`preference-row`},[B(`b`,null,O(t.preferenceType===`indicator`?`指标`:n),1),F(B(`select`,{"onUpdate:modelValue":e=>t.schoolId=e,onChange:e=>t.categoryCode=``},[p[44]||=B(`option`,{value:``},`选择招生学校`,-1),(R(!0),z(L,null,I(C(e,t.preferenceType),e=>(R(),z(`option`,{key:e.schoolId,value:e.schoolId},O(e.schoolCode)+` · `+O(e.schoolName),9,Ep))),128))],40,Tp),[[K,t.schoolId]]),F(B(`select`,{"onUpdate:modelValue":e=>t.categoryCode=e,disabled:!t.schoolId},[p[45]||=B(`option`,{value:``},`选择招生类别`,-1),(R(!0),z(L,null,I(w(e,t),e=>(R(),z(`option`,{key:e.code,value:e.code},O(e.name),9,Op))),128))],8,Dp),[[K,t.categoryCode]])]))),128)),p[46]||=B(`button`,{class:`app-button app-button--primary`},`保存本人志愿`,-1)],40,wp)):(R(),z(`p`,kp,O(e.supplementIneligibilityReason||e.payload?.progress||`当前阶段不能修改志愿。`),1))]))),128)),a.value.admissions?.length?U(``,!0):(R(),z(`div`,Ap,[...p[47]||=[B(`strong`,null,`暂无志愿填报安排`,-1),B(`p`,null,`成绩发布且考试启用志愿后会显示在这里。`,-1)]]))])):e.page===`notices`?(R(),z(`section`,jp,[(R(!0),z(L,null,I(a.value.notices,e=>(R(),z(`button`,{key:e.id,type:`button`,onClick:t=>ne(e.id)},[B(`time`,null,O(N(Rl)(e.publishAt)),1),B(`span`,null,[B(`em`,null,O(e.category),1),B(`strong`,null,O(e.title),1),B(`small`,null,O(e.summary),1)]),p[48]||=B(`i`,null,`→`,-1)],8,Mp))),128))])):e.page===`security`?(R(),ga(Bf,{key:8,status:a.value,onUpdated:_},null,8,[`status`])):U(``,!0)]),_:1},8,[`loading`,`error`])]),_:1},8,[`page`,`title`,`description`]))}}},Pp={class:`admin-core-workspace`},Fp={key:0,class:`form-error`},Ip={key:1,class:`issued-credential`},Lp={class:`scope-banner-vue`},Rp={class:`record-metrics`},zp={class:`record-panel audit-ledger`},Bp={class:`form-grid`},Vp={class:`check-row`},Hp=[`disabled`],Up={class:`record-panel`},Wp={class:`table-scroll`},Gp=[`onClick`],Kp={class:`excel-action-bar`},qp={class:`form-grid`},Jp={class:`organization-card-grid`},Yp=[`onClick`],Xp={class:`form-grid`},Zp=[`value`],Qp={class:`form-grid`},$p={key:0},em=[`value`],tm={key:1},nm=[`value`],rm={class:`record-panel`},im={class:`table-scroll`},am=[`disabled`,`onClick`],om=[`disabled`,`onClick`],sm={class:`quota-grid-vue`},cm=[`onUpdate:modelValue`],lm={class:`batch-ledger-vue`},um={class:`chip-list`},dm={key:0,class:`row-decision`},fm=[`onUpdate:modelValue`],pm=[`onClick`],mm=[`onClick`],hm=[`href`],gm={class:`excel-action-bar`},_m=[`value`],vm={class:`record-panel candidate-ledger`},ym={class:`ledger-toolbar candidate-ledger__toolbar`},bm=[`value`],xm=[`value`],Sm={class:`table-scroll`},Cm={class:`row-decision`},wm=[`onUpdate:modelValue`],Tm=[`onClick`],Em=[`onClick`],Dm=[`onClick`],Om={key:0},km={class:`ledger-pagination`},Am=[`disabled`],jm=[`disabled`],Mm=[`onClick`],Nm=[`onClick`],Pm={class:`table-scroll`},Fm=[`onClick`],Im=[`onClick`],Lm={key:9,class:`record-panel`},Rm={class:`table-scroll`},zm={class:`row-decision`},Bm=[`onUpdate:modelValue`],Vm=[`onClick`],Hm=[`onClick`],Um={class:`record-panel`},Wm={class:`table-scroll`},Gm=[`onClick`],Km=[`onClick`],qm={__name:`AdminCoreWorkspace`,props:{page:{type:String,required:!0},data:{type:Object,default:()=>({})}},emits:[`reload`],setup(e,{emit:t}){let n=e,r=t,i=M(!1),a=M(``),o=M(null),s=A({name:``,code:``,address:``,isSourceSchool:!0,isAdmissionSchool:!1,active:!0}),c=A({grade:``,name:``,active:!0}),l=A({displayName:``,username:``,password:``,adminLevel:`school`,schoolId:``,classId:``}),u=A({scopeType:`class`,scopeValue:``,archived:!0}),d=A({}),f=A({}),p=M(``),m=M(``),h=M(``),g=M(1),_=M(20),v=W(()=>{let e=n.data.candidates||[],t=p.value.trim().toLowerCase();return e.filter(e=>!(t&&!JSON.stringify(e).toLowerCase().includes(t)||m.value&&e.school!==m.value||h.value&&e.status!==h.value))}),y=W(()=>[...new Set((n.data.candidates||[]).map(e=>e.school).filter(Boolean))].sort((e,t)=>e.localeCompare(t,`zh-CN`))),b=W(()=>[...new Set((n.data.candidates||[]).map(e=>e.status).filter(Boolean))]),x=W(()=>Math.max(1,Math.ceil(v.value.length/_.value))),S=W(()=>{let e=(g.value-1)*_.value;return v.value.slice(e,e+_.value)}),C=W(()=>n.page===`organization`||Q.state.user?.adminLevel===`school`?n.data.classes||[]:(n.data.classes||[]).filter(e=>!l.schoolId||e.schoolId===l.schoolId));Ln([p,m,h,_],()=>{g.value=1}),Ln(x,e=>{g.value>e&&(g.value=e)}),Ln(()=>n.page,()=>{g.value=1});function w(e){return{pending:`待审核`,school_review:`学校审核`,approved:`已通过`,rejected:`已退回`}[e]||e}async function T(e,t,n=!0){i.value=!0,a.value=``;try{let i=await e();return t&&Y.notify(t),n&&r(`reload`),i}catch(e){return a.value=e.message,null}finally{i.value=!1}}function ee(){T(()=>X(`/api/admin/schools`,{method:`POST`,body:s}),`学校档案已创建`)}function te(e){T(()=>X(`/api/admin/schools/${e.id}`,{method:`PATCH`,body:{active:!e.active}}),e.active?`学校已停用`:`学校已启用`)}function E(){T(()=>X(`/api/admin/classes`,{method:`POST`,body:c}),`班级已创建`)}function ne(e){T(()=>X(`/api/admin/classes/${e.id}`,{method:`PATCH`,body:{active:!e.active}}),e.active?`班级已停用`:`班级已启用`)}function re(){let e={...l};Q.state.user?.adminLevel===`school`&&Object.assign(e,{adminLevel:`class`,schoolId:Q.state.user.schoolId}),T(()=>X(`/api/admin/admins`,{method:`POST`,body:e}),`管理员已创建`)}function ie(e){T(()=>X(`/api/admin/admins/${e.id}`,{method:`PATCH`,body:{active:!e.active,classId:e.classId}}),e.active?`管理员已停用`:`管理员已启用`)}async function ae(e){let t=await T(()=>X(`/api/admin/admins/${e.id}/reset-password`,{method:`POST`}),``,!1);t&&(o.value={title:`管理员临时密码`,account:t.username,password:t.temporaryPassword})}function oe(e){T(()=>X(`/api/admin/settings/self-registration`,{method:`PUT`,body:{enabled:e}}),e?`自主注册已开启`:`自主注册已关闭`)}function se(){let e=(n.data.classes||[]).map(e=>({classId:e.id,count:Number(f[e.id]||0)})).filter(e=>e.count>0);if(!e.length){a.value=`请至少为一个班级填写申领数量`;return}T(()=>X(`/api/admin/candidate-account-batches`,{method:`POST`,body:{quotas:e}}),`批量报名号申领已提交`)}function D(e,t){T(()=>X(`/api/admin/candidate-account-batches/${e.id}`,{method:`PATCH`,body:{status:t,reviewNote:d[e.id]||``}}),t===`approved`?`批次审批已通过`:`批次已退回`)}function ce(e,t){T(()=>X(`/api/admin/candidates/${e.id}`,{method:`PATCH`,body:{status:t,reviewNote:d[e.id]||``}}),t===`approved`?`考生资料已通过当前步骤`:`考生资料已退回`)}async function le(e){let t=await T(()=>X(`/api/admin/candidates/${e.id}/reset-password`,{method:`POST`}),``,!1);t&&(o.value={title:`考生临时密码`,account:t.candidateNumber,password:t.temporaryPassword})}function ue(){T(()=>X(`/api/admin/candidate-accounts/archive`,{method:`POST`,body:u}),u.archived?`范围内账户已归档`:`范围内账户已恢复`)}function de(e,t){T(()=>X(`/api/admin/registrations/${e.id}`,{method:`PATCH`,body:{status:t,reviewNote:d[e.id]||``}}),t===`approved`?`考试报名已通过当前步骤`:`考试报名已退回`)}function fe(e,t){T(()=>X(`/api/admin/payments/${e.id}`,{method:`PATCH`,body:{status:t}}),`缴费状态已更新`)}function pe(e,t,n){T(()=>X(`/api/admin/indicator-qualifications/${e.exam.id}/${t.userId}`,{method:`PUT`,body:{eligible:n}}),`指标资格已确认`)}function me(e,t){let n=(e.qualificationStatus?.rows||[]).map(e=>e.userId);T(()=>X(`/api/admin/indicator-qualifications/${e.exam.id}/bulk`,{method:`PUT`,body:{userIds:n,eligible:t}}),`本场指标资格已批量确认`)}async function he(e,t){let n=t.target.files?.[0];n&&(await T(()=>X(`/api/admin/excel/${e}`,{method:`POST`,headers:{"Content-Type":`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`},body:n}),`Excel 已导入`),t.target.value=``)}return(t,n)=>(R(),z(`div`,Pp,[a.value?(R(),z(`div`,Fp,O(a.value),1)):U(``,!0),o.value?(R(),z(`section`,Ip,[B(`div`,null,[n[32]||=B(`span`,null,`ONE-TIME CREDENTIAL`,-1),B(`h2`,null,O(o.value.title),1),n[33]||=B(`p`,null,`请通过线下安全渠道交付;关闭后不再展示。`,-1)]),B(`dl`,null,[B(`div`,null,[n[34]||=B(`dt`,null,`登录账号`,-1),B(`dd`,null,O(o.value.account),1)]),B(`div`,null,[n[35]||=B(`dt`,null,`临时密码`,-1),B(`dd`,null,O(o.value.password),1)])]),B(`button`,{class:`app-button`,onClick:n[0]||=e=>o.value=null},`我已保存`)])):U(``,!0),e.page===`dashboard`?(R(),z(L,{key:2},[B(`section`,Lp,[B(`span`,null,O(N(Q).state.user?.adminLevel),1),B(`div`,null,[B(`strong`,null,O(e.data.scopeLabel),1),n[36]||=B(`small`,null,`以下指标已按当前管理员数据范围过滤`,-1)])]),B(`section`,Rp,[(R(!0),z(L,null,I(e.data.metrics,(e,t)=>(R(),z(`article`,{key:t},[B(`span`,null,O(t),1),B(`strong`,null,O(e),1)]))),128))]),B(`section`,zp,[n[37]||=B(`header`,null,[B(`div`,null,[B(`h2`,null,`最近操作`),B(`p`,null,`系统审计日志`)])],-1),(R(!0),z(L,null,I(e.data.logs,e=>(R(),z(`div`,{key:e.id,class:`dashboard-row`},[B(`b`,null,O(String(e.actorName||`系`).slice(0,1)),1),B(`span`,null,[B(`strong`,null,O(e.actorName)+` · `+O(e.action),1),B(`small`,null,O(e.detail),1)]),B(`time`,null,O(e.createdAt),1)]))),128))])],64)):e.page===`schools`?(R(),z(L,{key:3},[B(`form`,{class:`business-form admin-create-strip`,onSubmit:q(ee,[`prevent`])},[n[44]||=B(`header`,null,[B(`div`,null,[B(`p`,null,`ORGANIZATION`),B(`h2`,null,`新增学校档案`)])],-1),B(`div`,Bp,[B(`label`,null,[n[38]||=B(`span`,null,`学校名称`,-1),F(B(`input`,{"onUpdate:modelValue":n[1]||=e=>s.name=e,required:``},null,512),[[G,s.name]])]),B(`label`,null,[n[39]||=B(`span`,null,`学校代码`,-1),F(B(`input`,{"onUpdate:modelValue":n[2]||=e=>s.code=e,required:``},null,512),[[G,s.code]])]),B(`label`,null,[n[40]||=B(`span`,null,`地址`,-1),F(B(`input`,{"onUpdate:modelValue":n[3]||=e=>s.address=e},null,512),[[G,s.address]])])]),B(`div`,Vp,[B(`label`,null,[F(B(`input`,{"onUpdate:modelValue":n[4]||=e=>s.isSourceSchool=e,type:`checkbox`},null,512),[[us,s.isSourceSchool]]),n[41]||=H(` 生源学校`,-1)]),B(`label`,null,[F(B(`input`,{"onUpdate:modelValue":n[5]||=e=>s.isAdmissionSchool=e,type:`checkbox`},null,512),[[us,s.isAdmissionSchool]]),n[42]||=H(` 招生学校`,-1)]),B(`label`,null,[F(B(`input`,{"onUpdate:modelValue":n[6]||=e=>s.active=e,type:`checkbox`},null,512),[[us,s.active]]),n[43]||=H(` 创建后启用`,-1)])]),B(`button`,{class:`app-button app-button--primary`,disabled:i.value},`创建学校`,8,Hp)],32),B(`section`,Up,[B(`header`,null,[B(`div`,null,[n[45]||=B(`h2`,null,`学校名录`,-1),B(`p`,null,`共 `+O(e.data.schools?.length||0)+` 所`,1)])]),B(`div`,Wp,[B(`table`,null,[n[46]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`学校 / 代码`),B(`th`,null,`类型`),B(`th`,null,`地址`),B(`th`,null,`班级`),B(`th`,null,`考生`),B(`th`,null,`状态`),B(`th`,null,`操作`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(e.data.schools,e=>(R(),z(`tr`,{key:e.id},[B(`td`,null,[B(`strong`,null,O(e.name),1),B(`small`,null,O(e.code),1)]),B(`td`,null,O([e.isSourceSchool&&`生源校`,e.isAdmissionSchool&&`招生校`].filter(Boolean).join(` / `)),1),B(`td`,null,O(e.address||`未填写`),1),B(`td`,null,O(e.classCount),1),B(`td`,null,O(e.candidateCount),1),B(`td`,null,[V($,{value:e.active?`active`:`disabled`},null,8,[`value`])]),B(`td`,null,[B(`button`,{class:`table-action`,onClick:t=>te(e)},O(e.active?`停用`:`启用`),9,Gp)])]))),128))])])])])],64)):e.page===`organization`?(R(),z(L,{key:4},[B(`div`,Kp,[n[48]||=B(`a`,{href:`/api/admin/excel/classes?template=1`},`下载班级模板`,-1),B(`label`,null,[n[47]||=H(`导入班级 Excel`,-1),B(`input`,{type:`file`,accept:`.xlsx`,hidden:``,onChange:n[7]||=e=>he(`classes`,e)},null,32)]),n[49]||=B(`a`,{href:`/api/admin/excel/classes`},`导出班级台账`,-1),n[50]||=B(`a`,{href:`/api/admin/excel/class_admins`},`导出管理员台账`,-1)]),B(`form`,{class:`business-form admin-create-strip`,onSubmit:q(E,[`prevent`])},[n[53]||=B(`h2`,null,`新增本校班级`,-1),B(`div`,qp,[B(`label`,null,[n[51]||=B(`span`,null,`年级`,-1),F(B(`input`,{"onUpdate:modelValue":n[8]||=e=>c.grade=e,required:``,placeholder:`例如:九年级`},null,512),[[G,c.grade]])]),B(`label`,null,[n[52]||=B(`span`,null,`班级名称`,-1),F(B(`input`,{"onUpdate:modelValue":n[9]||=e=>c.name=e,required:``,placeholder:`例如:1 班`},null,512),[[G,c.name]])])]),n[54]||=B(`button`,{class:`app-button app-button--primary`},`创建班级`,-1)],32),B(`section`,Jp,[(R(!0),z(L,null,I(e.data.classes,e=>(R(),z(`article`,{key:e.id,class:`record-panel org-card`},[B(`header`,null,[B(`div`,null,[B(`span`,null,O(e.grade),1),B(`h2`,null,O(e.name),1)]),V($,{value:e.active?`active`:`disabled`},null,8,[`value`])]),B(`strong`,null,O(e.candidateCount)+` 名考生`,1),(R(!0),z(L,null,I(e.admins,e=>(R(),z(`div`,{key:e.id,class:`dashboard-row`},[B(`b`,null,O(e.displayName?.slice(0,1)),1),B(`span`,null,[B(`strong`,null,O(e.displayName),1),B(`small`,null,O(e.username),1)]),V($,{value:e.active?`active`:`disabled`},null,8,[`value`])]))),128)),B(`footer`,null,[B(`button`,{class:`table-action`,onClick:t=>ne(e)},O(e.active?`停用班级`:`启用班级`),9,Yp)])]))),128))]),B(`form`,{class:`business-form admin-create-strip`,onSubmit:q(re,[`prevent`])},[n[60]||=B(`h2`,null,`新增班级管理员`,-1),B(`div`,Xp,[B(`label`,null,[n[55]||=B(`span`,null,`姓名`,-1),F(B(`input`,{"onUpdate:modelValue":n[10]||=e=>l.displayName=e,required:``},null,512),[[G,l.displayName]])]),B(`label`,null,[n[56]||=B(`span`,null,`账号`,-1),F(B(`input`,{"onUpdate:modelValue":n[11]||=e=>l.username=e,required:``},null,512),[[G,l.username]])]),B(`label`,null,[n[57]||=B(`span`,null,`初始密码`,-1),F(B(`input`,{"onUpdate:modelValue":n[12]||=e=>l.password=e,type:`password`,minlength:`8`,required:``},null,512),[[G,l.password]])]),B(`label`,null,[n[59]||=B(`span`,null,`绑定班级`,-1),F(B(`select`,{"onUpdate:modelValue":n[13]||=e=>l.classId=e,required:``},[n[58]||=B(`option`,{value:``},`请选择`,-1),(R(!0),z(L,null,I(e.data.classes,e=>(R(),z(`option`,{key:e.id,value:e.id},O(e.grade)+` · `+O(e.name),9,Zp))),128))],512),[[K,l.classId]])])]),n[61]||=B(`button`,{class:`app-button app-button--primary`},`创建班级管理员`,-1)],32)],64)):e.page===`admins`?(R(),z(L,{key:5},[B(`form`,{class:`business-form admin-create-strip`,onSubmit:q(re,[`prevent`])},[B(`header`,null,[n[62]||=B(`div`,null,[B(`p`,null,`ACCOUNT AUTHORITY`),B(`h2`,null,`创建管理员`)],-1),B(`button`,{type:`button`,class:`app-button`,onClick:n[14]||=t=>oe(!e.data.selfRegistrationEnabled)},O(e.data.selfRegistrationEnabled?`关闭自主注册`:`开启自主注册`),1)]),B(`div`,Qp,[B(`label`,null,[n[63]||=B(`span`,null,`姓名`,-1),F(B(`input`,{"onUpdate:modelValue":n[15]||=e=>l.displayName=e,required:``},null,512),[[G,l.displayName]])]),B(`label`,null,[n[64]||=B(`span`,null,`登录账号`,-1),F(B(`input`,{"onUpdate:modelValue":n[16]||=e=>l.username=e,required:``},null,512),[[G,l.username]])]),B(`label`,null,[n[65]||=B(`span`,null,`初始密码`,-1),F(B(`input`,{"onUpdate:modelValue":n[17]||=e=>l.password=e,type:`password`,minlength:`8`,required:``},null,512),[[G,l.password]])]),B(`label`,null,[n[67]||=B(`span`,null,`管理员层级`,-1),F(B(`select`,{"onUpdate:modelValue":n[18]||=e=>l.adminLevel=e},[...n[66]||=[B(`option`,{value:`super`},`超级管理员`,-1),B(`option`,{value:`school`},`校级管理员`,-1),B(`option`,{value:`class`},`班级管理员`,-1)]],512),[[K,l.adminLevel]])]),l.adminLevel===`super`?U(``,!0):(R(),z(`label`,$p,[n[69]||=B(`span`,null,`绑定学校`,-1),F(B(`select`,{"onUpdate:modelValue":n[19]||=e=>l.schoolId=e,required:``},[n[68]||=B(`option`,{value:``},`请选择`,-1),(R(!0),z(L,null,I(e.data.schools,e=>(R(),z(`option`,{key:e.id,value:e.id},O(e.name),9,em))),128))],512),[[K,l.schoolId]])])),l.adminLevel===`class`?(R(),z(`label`,tm,[n[71]||=B(`span`,null,`绑定班级`,-1),F(B(`select`,{"onUpdate:modelValue":n[20]||=e=>l.classId=e,required:``},[n[70]||=B(`option`,{value:``},`请选择`,-1),(R(!0),z(L,null,I(C.value,e=>(R(),z(`option`,{key:e.id,value:e.id},O(e.grade)+` · `+O(e.name),9,nm))),128))],512),[[K,l.classId]])])):U(``,!0)]),n[72]||=B(`button`,{class:`app-button app-button--primary`},`创建管理员`,-1)],32),B(`section`,rm,[n[74]||=B(`header`,null,[B(`div`,null,[B(`h2`,null,`管理员账户`),B(`p`,null,`账户不物理删除,停用后保留历史审批记录。`)])],-1),B(`div`,im,[B(`table`,null,[n[73]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`管理员`),B(`th`,null,`账号`),B(`th`,null,`层级`),B(`th`,null,`范围`),B(`th`,null,`状态`),B(`th`,null,`操作`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(e.data.admins,e=>(R(),z(`tr`,{key:e.id},[B(`td`,null,O(e.displayName),1),B(`td`,null,O(e.username),1),B(`td`,null,O(e.levelName||e.adminLevel),1),B(`td`,null,O(e.schoolName||`全局`)+` `+O(e.className||``),1),B(`td`,null,[V($,{value:e.active?`active`:`disabled`},null,8,[`value`])]),B(`td`,null,[B(`button`,{class:`table-action`,disabled:e.id===N(Q).state.user?.id,onClick:t=>ae(e)},`重置密码`,8,am),B(`button`,{class:`table-action`,disabled:e.id===N(Q).state.user?.id,onClick:t=>ie(e)},O(e.active?`停用`:`启用`),9,om)])]))),128))])])])])],64)):e.page===`account-batches`?(R(),z(L,{key:6},[n[78]||=B(`div`,{class:`excel-action-bar`},[B(`a`,{href:`/api/admin/excel/account_quotas?template=1`},`下载配额模板`),B(`a`,{href:`/api/admin/excel/account_quotas`},`导出申领配额`)],-1),B(`form`,{class:`business-form`,onSubmit:q(se,[`prevent`])},[n[75]||=B(`p`,null,`SCHOOL ACCOUNT REQUEST`,-1),n[76]||=B(`h2`,null,`按班级申领报名号`,-1),B(`div`,sm,[(R(!0),z(L,null,I(e.data.classes,e=>(R(),z(`label`,{key:e.id},[B(`span`,null,[B(`strong`,null,O(e.name),1),B(`small`,null,O(e.grade),1)]),F(B(`input`,{"onUpdate:modelValue":t=>f[e.id]=t,type:`number`,min:`0`,max:`200`},null,8,cm),[[G,f[e.id]]])]))),128))]),n[77]||=B(`button`,{class:`app-button app-button--primary`},`提交批量申领`,-1)],32),B(`section`,lm,[(R(!0),z(L,null,I(e.data.batches,e=>(R(),z(`article`,{key:e.id,class:`record-panel batch-card-vue`},[B(`header`,null,[B(`div`,null,[B(`span`,null,O(e.id),1),B(`h2`,null,O(e.schoolName)+` · `+O(e.totalCount)+` 个报名号`,1)]),V($,{value:e.status},null,8,[`value`])]),B(`div`,um,[(R(!0),z(L,null,I(e.quotas,e=>(R(),z(`span`,{key:e.classId},[H(O(e.className),1),B(`small`,null,O(e.count)+` 人`,1)]))),128))]),e.status===`pending`?(R(),z(`div`,dm,[F(B(`input`,{"onUpdate:modelValue":t=>d[e.id]=t,placeholder:`审批意见`},null,8,fm),[[G,d[e.id]]]),B(`button`,{onClick:t=>D(e,`rejected`)},`退回`,8,pm),B(`button`,{onClick:t=>D(e,`approved`)},`通过`,8,mm)])):U(``,!0),e.status===`approved`?(R(),z(`a`,{key:1,class:`app-button`,href:`/api/admin/excel/account_results?batchId=${e.id}`},`导出账号下发清单`,8,hm)):U(``,!0)]))),128))])],64)):e.page===`candidates`?(R(),z(L,{key:7},[B(`div`,gm,[n[80]||=B(`a`,{href:`/api/admin/excel/candidates?template=1`},`下载导入模板`,-1),B(`label`,null,[n[79]||=H(`导入考生 Excel`,-1),B(`input`,{type:`file`,accept:`.xlsx`,hidden:``,onChange:n[21]||=e=>he(`candidates`,e)},null,32)]),n[81]||=B(`a`,{href:`/api/admin/excel/candidates`},`导出考生台账`,-1)]),N(Q).state.user?.adminLevel===`school`?(R(),z(`form`,{key:0,class:`archive-console-vue`,onSubmit:q(ue,[`prevent`])},[n[85]||=B(`div`,null,[B(`p`,null,`SCHOOL ACCOUNT ARCHIVE`),B(`h2`,null,`按班级或年级归档账户`),B(`span`,null,`只冻结登录,不删除报名、准考证、成绩和审计记录。`)],-1),F(B(`select`,{"onUpdate:modelValue":n[22]||=e=>u.scopeType=e},[...n[82]||=[B(`option`,{value:`class`},`按班级`,-1),B(`option`,{value:`grade`},`按年级`,-1)]],512),[[K,u.scopeType]]),F(B(`select`,{"onUpdate:modelValue":n[23]||=e=>u.scopeValue=e,required:``},[n[83]||=B(`option`,{value:``},`请选择范围`,-1),(R(!0),z(L,null,I(u.scopeType===`class`?e.data.classes:[...new Set((e.data.classes||[]).map(e=>e.grade))].map(e=>({id:e,name:e})),e=>(R(),z(`option`,{key:e.id,value:e.id},O(e.grade?`${e.grade} · ${e.name}`:e.name),9,_m))),128))],512),[[K,u.scopeValue]]),F(B(`select`,{"onUpdate:modelValue":n[24]||=e=>u.archived=e},[...n[84]||=[B(`option`,{value:!0},`归档账户`,-1),B(`option`,{value:!1},`恢复账户`,-1)]],512),[[K,u.archived]]),n[86]||=B(`button`,{class:`app-button app-button--primary`},`执行`,-1)],32)):U(``,!0),B(`section`,vm,[B(`header`,null,[B(`div`,null,[n[87]||=B(`h2`,null,`考生资料审核台账`,-1),B(`p`,null,`筛选结果 `+O(v.value.length)+` 人,共 `+O(e.data.candidates?.length||0)+` 人`,1)])]),B(`div`,ym,[B(`label`,null,[n[88]||=B(`span`,null,`关键词`,-1),F(B(`input`,{"onUpdate:modelValue":n[25]||=e=>p.value=e,placeholder:`姓名、报名号、证件号`},null,512),[[G,p.value]])]),B(`label`,null,[n[90]||=B(`span`,null,`学校`,-1),F(B(`select`,{"onUpdate:modelValue":n[26]||=e=>m.value=e},[n[89]||=B(`option`,{value:``},`全部学校`,-1),(R(!0),z(L,null,I(y.value,e=>(R(),z(`option`,{key:e,value:e},O(e),9,bm))),128))],512),[[K,m.value]])]),B(`label`,null,[n[92]||=B(`span`,null,`审核状态`,-1),F(B(`select`,{"onUpdate:modelValue":n[27]||=e=>h.value=e},[n[91]||=B(`option`,{value:``},`全部状态`,-1),(R(!0),z(L,null,I(b.value,e=>(R(),z(`option`,{key:e,value:e},O(w(e)),9,xm))),128))],512),[[K,h.value]])]),B(`label`,null,[n[94]||=B(`span`,null,`每页显示`,-1),F(B(`select`,{"onUpdate:modelValue":n[28]||=e=>_.value=e},[...n[93]||=[B(`option`,{value:20},`20 条`,-1),B(`option`,{value:50},`50 条`,-1),B(`option`,{value:100},`100 条`,-1)]],512),[[K,_.value]])])]),B(`div`,Sm,[B(`table`,null,[n[96]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`考生`),B(`th`,null,`证件`),B(`th`,null,`学校班级`),B(`th`,null,`账户`),B(`th`,null,`状态`),B(`th`,null,`审核`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(S.value,e=>(R(),z(`tr`,{key:e.id},[B(`td`,null,[B(`strong`,null,O(e.name),1),B(`small`,null,O(e.candidateNumber),1)]),B(`td`,null,O(e.idNumberMasked),1),B(`td`,null,[H(O(e.school),1),B(`small`,null,O(e.grade),1)]),B(`td`,null,O(e.accountArchived?`已归档`:e.mustChangePassword?`待首次改密`:`正常`),1),B(`td`,null,[V($,{value:e.status},null,8,[`value`])]),B(`td`,null,[B(`div`,Cm,[F(B(`input`,{"onUpdate:modelValue":t=>d[e.id]=t,placeholder:`审核意见`},null,8,wm),[[G,d[e.id]]]),B(`button`,{onClick:t=>ce(e,`rejected`)},`退回`,8,Tm),B(`button`,{onClick:t=>ce(e,`approved`)},`通过`,8,Em),N(Q).state.user?.adminLevel===`super`?(R(),z(`button`,{key:0,onClick:t=>le(e)},`重置密码`,8,Dm)):U(``,!0)])])]))),128)),S.value.length?U(``,!0):(R(),z(`tr`,Om,[...n[95]||=[B(`td`,{class:`table-empty`,colspan:`6`},`没有符合当前条件的考生`,-1)]]))])])]),B(`footer`,km,[B(`span`,null,`第 `+O(g.value)+` / `+O(x.value)+` 页`,1),B(`div`,null,[B(`button`,{disabled:g.value<=1,onClick:n[29]||=e=>g.value--},`上一页`,8,Am),B(`button`,{disabled:g.value>=x.value,onClick:n[30]||=e=>g.value++},`下一页`,8,jm)])])])],64)):e.page===`indicator-qualifications`?(R(!0),z(L,{key:8},I(e.data.exams,e=>(R(),z(`section`,{key:e.exam?.id||e.id,class:`record-panel`},[B(`header`,null,[B(`div`,null,[B(`h2`,null,O(e.exam?.name||e.name),1),B(`p`,null,`已确认 `+O(e.qualificationStatus?.confirmed||0)+` / `+O(e.qualificationStatus?.total||0)+` 人;全部确认后系统自动公示。`,1)]),B(`div`,null,[B(`button`,{class:`table-action`,onClick:t=>me(e,!1)},`全部无资格`,8,Mm),B(`button`,{class:`table-action`,onClick:t=>me(e,!0)},`全部有资格`,8,Nm)])]),B(`div`,Pm,[B(`table`,null,[n[97]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`考生`),B(`th`,null,`报名号`),B(`th`,null,`特长`),B(`th`,null,`确认状态`),B(`th`,null,`当前资格`),B(`th`,null,`确认`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(e.qualificationStatus?.rows||[],t=>(R(),z(`tr`,{key:t.userId},[B(`td`,null,O(t.name),1),B(`td`,null,O(t.registrationNumber),1),B(`td`,null,O(t.specialtyLabel||`普通生`),1),B(`td`,null,O(t.confirmed?`已确认`:`待确认`),1),B(`td`,null,[V($,{value:t.confirmed?t.eligible?`approved`:`rejected`:`pending`},null,8,[`value`])]),B(`td`,null,[B(`button`,{class:`table-action`,onClick:n=>pe(e,t,!1)},`无资格`,8,Fm),B(`button`,{class:`table-action`,onClick:n=>pe(e,t,!0)},`有资格`,8,Im)])]))),128))])])])]))),128)):e.page===`registrations`?(R(),z(`section`,Lm,[B(`header`,null,[B(`div`,null,[n[98]||=B(`h2`,null,`考试报名审核台账`,-1),B(`p`,null,O(e.data.registrations?.length||0)+` 条`,1)])]),B(`div`,Rm,[B(`table`,null,[n[99]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`考生`),B(`th`,null,`考试`),B(`th`,null,`科目`),B(`th`,null,`缴费`),B(`th`,null,`状态`),B(`th`,null,`审核`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(e.data.registrations,e=>(R(),z(`tr`,{key:e.id},[B(`td`,null,[B(`strong`,null,O(e.candidate?.name||e.candidateName),1),B(`small`,null,O(e.registrationNumber),1)]),B(`td`,null,O(e.exam?.name||e.examName),1),B(`td`,null,O(e.subjects?.map(e=>e.name).join(`、`)),1),B(`td`,null,[V($,{value:e.paymentStatus},null,8,[`value`])]),B(`td`,null,[V($,{value:e.status},null,8,[`value`])]),B(`td`,null,[B(`div`,zm,[F(B(`input`,{"onUpdate:modelValue":t=>d[e.id]=t,placeholder:`审核意见`},null,8,Bm),[[G,d[e.id]]]),B(`button`,{onClick:t=>de(e,`rejected`)},`退回`,8,Vm),B(`button`,{onClick:t=>de(e,`approved`)},`通过`,8,Hm)])])]))),128))])])])])):e.page===`payments`?(R(),z(L,{key:10},[n[102]||=B(`div`,{class:`excel-action-bar`},[B(`a`,{href:`/api/admin/excel/payments`},`导出缴费名单`)],-1),B(`section`,Um,[B(`header`,null,[B(`div`,null,[n[100]||=B(`h2`,null,`线下缴费台账`,-1),B(`p`,null,O(e.data.registrations?.length||e.data.payments?.length||0)+` 条`,1)])]),B(`div`,Wm,[B(`table`,null,[n[101]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`考生`),B(`th`,null,`考试`),B(`th`,null,`应缴金额`),B(`th`,null,`状态`),B(`th`,null,`更新`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(e.data.registrations||e.data.payments,e=>(R(),z(`tr`,{key:e.id},[B(`td`,null,[H(O(e.candidate?.name||e.candidateName),1),B(`small`,null,O(e.registrationNumber),1)]),B(`td`,null,O(e.exam?.name||e.examName),1),B(`td`,null,O(e.amountDue),1),B(`td`,null,[V($,{value:e.paymentStatus},null,8,[`value`])]),B(`td`,null,[B(`button`,{class:`table-action`,onClick:t=>fe(e,`unpaid`)},`标记待缴`,8,Gm),B(`button`,{class:`table-action`,onClick:t=>fe(e,`paid`)},`确认已缴`,8,Km)])]))),128))])])])])],64)):e.page===`security`?(R(),ga(Bf,{key:11,status:e.data,onUpdated:n[31]||=e=>r(`reload`)},null,8,[`status`])):U(``,!0)]))}},Jm={class:`admin-exam-workspace`},Ym={key:0,class:`form-error`},Xm={key:1,class:`record-panel import-preview-vue`},Zm={class:`record-metrics`},Qm={class:`table-scroll`},$m={key:0,class:`form-error`},eh={key:1},th=[`disabled`],nh={class:`form-grid`},rh={class:`form-grid`},ih={class:`exam-subject-builder`},ah={class:`form-grid`},oh=[`onUpdate:modelValue`],sh=[`onUpdate:modelValue`],ch=[`onUpdate:modelValue`],lh=[`onUpdate:modelValue`],uh=[`onUpdate:modelValue`],dh=[`onUpdate:modelValue`],fh=[`onUpdate:modelValue`],ph=[`onUpdate:modelValue`],mh=[`onClick`],hh={class:`form-grid`},gh=[`disabled`],_h={class:`admin-exam-grid-vue`},vh={class:`chip-list`},yh={key:0},bh=[`onClick`],xh=[`onClick`],Sh={key:0,class:`business-form arrangement-console-vue`},Ch={class:`form-grid`},wh=[`value`],Th=[`value`],Eh=[`value`],Dh={key:0},Oh={class:`excel-action-bar`},kh=[`href`],Ah={class:`record-panel`},jh={class:`table-scroll`},Mh={class:`result-exam-picker`},Nh=[`onClick`],Ph={class:`excel-action-bar`},Fh=[`href`],Ih={key:0},Lh=[`href`],Rh={class:`record-metrics`},zh={key:0,class:`record-panel`},Bh={class:`table-scroll`},Vh={key:0,class:`row-decision`},Hh=[`onUpdate:modelValue`],Uh=[`onClick`],Wh=[`onClick`],Gh={key:1,class:`record-panel result-entry-vue`},Kh=[`value`],qh={class:`table-scroll`},Jh=[`onUpdate:modelValue`,`max`],Yh={key:0,class:`app-pagination`},Xh=[`disabled`],Zh=[`disabled`],Qh={key:2,class:`record-panel result-entry-vue`},$h={class:`table-scroll`},eg=[`onUpdate:modelValue`],tg={key:0,class:`app-pagination`},ng=[`disabled`],rg=[`disabled`],ig={class:`record-panel`},ag={class:`table-scroll`},og={key:0,class:`app-pagination`},sg=[`disabled`],cg=[`disabled`],lg={key:1,class:`page-state page-state--empty`},ug={__name:`AdminExamWorkspace`,props:{page:{type:String,required:!0},data:{type:Object,default:()=>({})}},emits:[`reload`],setup(e,{emit:t}){let n=e,r=t,i=M(!1),a=M(``),o=M(null),s=M(null),c=M({exams:Q.state.publicData.exams||[],results:[],appeals:[]}),l=M(``),u=M(``),d=M([]),f=M([]),p=A({}),m=A({}),h=A({}),g=M(1),_=M({page:1,totalPages:1,total:0}),v=M(1),y=M({page:1,totalPages:1,total:0}),b=M(1),x=M({page:1,totalPages:1,total:0}),S=A({examId:``,mixingScope:`school`,numberRuleId:``,seed:``}),C=A({name:``,code:``,description:``,registrationStart:``,registrationEnd:``,examStart:``,examEnd:``,admitDownloadStart:``,admitDownloadEnd:``,passPolicy:`rank_percent`,passValue:60,location:``,status:`draft`,subjects:[]}),w=W(()=>c.value.exams?.find(e=>e.id===l.value)),T=W(()=>w.value?.subjects?.find(e=>e.id===u.value));function ee(){return{name:``,fullScore:100,passRule:`fixed_score`,passValue:60,date:``,start:`09:00`,end:`11:00`,fee:0}}function te(){C.subjects.push(ee())}async function E(e,t,n=!0){i.value=!0,a.value=``;try{let i=await e();return t&&Y.notify(t),n&&r(`reload`),i}catch(e){return a.value=e.message,null}finally{i.value=!1}}function ne(){let e={...C,subjects:C.subjects.map(e=>({...e,fullScore:Number(e.fullScore),passValue:Number(e.passValue),fee:Number(e.fee)}))};for(let t of[`registrationStart`,`registrationEnd`,`examStart`,`examEnd`,`admitDownloadStart`,`admitDownloadEnd`])e[t]=new Date(e[t]).toISOString();e.passValue=[`subject_scores`,`none`].includes(e.passPolicy)?0:Number(e.passValue),E(()=>X(`/api/admin/exams`,{method:`POST`,body:e}),`考试计划已创建`)}function re(e){E(()=>X(`/api/admin/exams/${e.id}`,{method:`PATCH`,body:{status:e.status===`published`?`draft`:`published`}}),e.status===`published`?`考试已撤回为草稿`:`考试已发布`)}function ie(e){window.confirm(`确认归档“${e.name}”并永久锁定成绩吗?`)&&E(()=>X(`/api/admin/exams/${e.id}/archive`,{method:`POST`}),`考试已归档`)}function ae(e){S.examId=e.id,S.seed||=e.code,S.numberRuleId||=n.data.rules?.[0]?.id||``}async function oe(){o.value=await E(()=>X(`/api/admin/exams/${S.examId}/admission-arrangement/preview`,{method:`POST`,body:S}),`容量与档案预检完成`,!1)}function se(){window.confirm(`确认生成或替换本场考试全部准考证编排吗?`)&&E(()=>X(`/api/admin/exams/${S.examId}/admission-arrangement`,{method:`POST`,body:S}),`整场准考证编排已生成`)}async function D(){if(l.value){i.value=!0,a.value=``;try{let e=await X(`/api/admin/results/summary?examId=${encodeURIComponent(l.value)}`);c.value={...e},u.value||=w.value?.subjects?.[0]?.id||``;let[t,n,r]=await Promise.all([X(`/api/admin/results?examId=${encodeURIComponent(l.value)}&page=${g.value}&pageSize=50&status=all`),u.value?X(`/api/admin/results/roster?examId=${encodeURIComponent(l.value)}&subjectId=${encodeURIComponent(u.value)}&page=${v.value}&pageSize=50&status=all`):Promise.resolve({items:[],pagination:{page:1,totalPages:1,total:0}}),X(`/api/admin/results/roster?examId=${encodeURIComponent(l.value)}&mode=feature&page=${b.value}&pageSize=50&status=all`)]);c.value.results=t.items||[],d.value=n.items||[],f.value=r.items||[],_.value=t.pagination||{page:1,totalPages:1,total:0},y.value=n.pagination||{page:1,totalPages:1,total:0},x.value=r.pagination||{page:1,totalPages:1,total:0};for(let e of d.value)p[e.id]=e.result?.score??``;for(let e of f.value)m[e.id]=Number(e.featureScore||0)}catch(e){a.value=e.message}finally{i.value=!1}}}async function ce(){v.value=1,await D()}async function le(e){g.value=e,await D()}async function ue(e){v.value=e,await D()}async function de(e){b.value=e,await D()}function fe(e){let t=d.value.filter(e=>p[e.id]!==``).map(e=>({registrationId:e.id,score:Number(p[e.id])}));if(!t.length){a.value=`请至少录入一条成绩`;return}e&&!window.confirm(`确认发布当前名单 ${t.length} 条成绩吗?`)||E(()=>X(`/api/admin/results/bulk`,{method:`POST`,body:{examId:l.value,subjectId:u.value,published:e,rows:t}}),e?`成绩已发布`:`成绩已暂存`,!1).then(D)}function pe(){let e=f.value.map(e=>({registrationId:e.id,featureScore:Number(m[e.id]||0)}));E(()=>X(`/api/admin/feature-scores/bulk`,{method:`POST`,body:{examId:l.value,rows:e}}),`特征分已保存`,!1).then(D)}function me(){E(()=>X(`/api/admin/results/cache/refresh`,{method:`POST`}),`成绩缓存已刷新`,!1)}function he(e,t){let n=e.currentStep>=(e.steps?.length||1),r=e.result?.score;if(t===`approved`&&n){let t=window.prompt(`请输入复核后的成绩(满分 ${e.result?.fullScore})`,String(e.result?.score??``));if(t==null)return;r=Number(t)}E(()=>X(`/api/admin/score-appeals/${e.result.id}`,{method:`PATCH`,body:{status:t,reviewedScore:r,reviewNote:h[e.id]||``}}),t===`approved`?`成绩复议已处理`:`成绩复议已退回`,!1).then(D)}async function ge(e){let t=e.target.files?.[0];t&&(s.value=await E(()=>X(`/api/admin/excel/results`,{method:`POST`,headers:{"Content-Type":`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`},body:t}),`Excel 已解析,请核对预览后确认写入`,!1),e.target.value=``)}async function ve(){let e=s.value;if(!e||e.summary?.invalid){a.value=`请先修正 Excel 中的无效行并重新上传`;return}window.confirm(`确认写入 ${e.summary?.valid||0} 条成绩吗?`)&&await E(()=>X(`/api/admin/results/import`,{method:`POST`,body:{rows:e.rows}}),`成绩已原子批量写入`,!1)&&(s.value=null,await D())}return jr(()=>{if(n.page===`exams`&&!C.subjects.length&&te(),n.page===`admit`){let e=n.data.exams?.find(e=>!e.archivedAt);e&&ae(e)}}),(t,n)=>(R(),z(`div`,Jm,[a.value?(R(),z(`div`,Ym,O(a.value),1)):U(``,!0),e.page===`results`&&s.value?(R(),z(`section`,Xm,[B(`header`,null,[n[28]||=B(`div`,null,[B(`h2`,null,`成绩 Excel 写入预览`),B(`p`,null,`预览不会修改数据库;只有全部行校验通过后才能确认写入。`)],-1),B(`button`,{class:`app-button`,type:`button`,onClick:n[0]||=e=>s.value=null},`关闭预览`)]),B(`section`,Zm,[B(`article`,null,[n[29]||=B(`span`,null,`总行数`,-1),B(`strong`,null,O(s.value.summary?.total||0),1)]),B(`article`,null,[n[30]||=B(`span`,null,`有效`,-1),B(`strong`,null,O(s.value.summary?.valid||0),1)]),B(`article`,null,[n[31]||=B(`span`,null,`无效`,-1),B(`strong`,null,O(s.value.summary?.invalid||0),1)]),B(`article`,null,[n[32]||=B(`span`,null,`将发布`,-1),B(`strong`,null,O(s.value.summary?.publish||0),1)])]),B(`div`,Qm,[B(`table`,null,[n[33]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`Excel 行`),B(`th`,null,`考生`),B(`th`,null,`考试 / 科目`),B(`th`,null,`成绩`),B(`th`,null,`模式`),B(`th`,null,`校验`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(s.value.rows,e=>(R(),z(`tr`,{key:e.sourceRow},[B(`td`,null,O(e.sourceRow),1),B(`td`,null,[H(O(e.candidateName),1),B(`small`,null,O(e.candidateNumber),1)]),B(`td`,null,[H(O(e.examName),1),B(`small`,null,O(e.subjectName),1)]),B(`td`,null,O(e.score)+` / `+O(e.fullScore),1),B(`td`,null,O(e.mode===`create`?`新增`:`更新`)+` · `+O(e.published?`发布`:`暂存`),1),B(`td`,null,[e.errors?.length?(R(),z(`span`,$m,O(e.errors.join(`;`)),1)):(R(),z(`span`,eh,`通过`))])]))),128))])])]),B(`footer`,null,[B(`button`,{class:`app-button app-button--primary`,type:`button`,disabled:!!s.value.summary?.invalid||i.value,onClick:ve},`确认原子批量写入`,8,th)])])):U(``,!0),e.page===`exams`?(R(),z(L,{key:2},[B(`form`,{class:`business-form exam-builder-vue`,onSubmit:q(ne,[`prevent`])},[n[59]||=B(`header`,null,[B(`div`,null,[B(`p`,null,`NEW EXAM`),B(`h2`,null,`创建考试与科目`),B(`span`,null,`先定义科目计分,再选择整场合格判定方式。`)])],-1),B(`div`,nh,[B(`label`,null,[n[34]||=B(`span`,null,`考试名称`,-1),F(B(`input`,{"onUpdate:modelValue":n[1]||=e=>C.name=e,required:``},null,512),[[G,C.name]])]),B(`label`,null,[n[35]||=B(`span`,null,`考试代码`,-1),F(B(`input`,{"onUpdate:modelValue":n[2]||=e=>C.code=e},null,512),[[G,C.code]])])]),B(`label`,null,[n[36]||=B(`span`,null,`考试说明`,-1),F(B(`textarea`,{"onUpdate:modelValue":n[3]||=e=>C.description=e,rows:`2`},null,512),[[G,C.description]])]),B(`div`,rh,[B(`label`,null,[n[37]||=B(`span`,null,`报名开始`,-1),F(B(`input`,{"onUpdate:modelValue":n[4]||=e=>C.registrationStart=e,type:`datetime-local`,required:``},null,512),[[G,C.registrationStart]])]),B(`label`,null,[n[38]||=B(`span`,null,`报名结束`,-1),F(B(`input`,{"onUpdate:modelValue":n[5]||=e=>C.registrationEnd=e,type:`datetime-local`,required:``},null,512),[[G,C.registrationEnd]])]),B(`label`,null,[n[39]||=B(`span`,null,`考试开始`,-1),F(B(`input`,{"onUpdate:modelValue":n[6]||=e=>C.examStart=e,type:`datetime-local`,required:``},null,512),[[G,C.examStart]])]),B(`label`,null,[n[40]||=B(`span`,null,`考试结束`,-1),F(B(`input`,{"onUpdate:modelValue":n[7]||=e=>C.examEnd=e,type:`datetime-local`,required:``},null,512),[[G,C.examEnd]])]),B(`label`,null,[n[41]||=B(`span`,null,`准考证下载开始`,-1),F(B(`input`,{"onUpdate:modelValue":n[8]||=e=>C.admitDownloadStart=e,type:`datetime-local`,required:``},null,512),[[G,C.admitDownloadStart]])]),B(`label`,null,[n[42]||=B(`span`,null,`准考证下载结束`,-1),F(B(`input`,{"onUpdate:modelValue":n[9]||=e=>C.admitDownloadEnd=e,type:`datetime-local`,required:``},null,512),[[G,C.admitDownloadEnd]])])]),B(`section`,ih,[B(`header`,null,[n[43]||=B(`strong`,null,`考试科目`,-1),B(`button`,{type:`button`,onClick:te},`+ 添加科目`)]),(R(!0),z(L,null,I(C.subjects,(e,t)=>(R(),z(`article`,{key:t},[B(`div`,ah,[B(`label`,null,[n[44]||=B(`span`,null,`科目名称`,-1),F(B(`input`,{"onUpdate:modelValue":t=>e.name=t,required:``},null,8,oh),[[G,e.name]])]),B(`label`,null,[n[45]||=B(`span`,null,`满分`,-1),F(B(`input`,{"onUpdate:modelValue":t=>e.fullScore=t,type:`number`,min:`0.5`,step:`0.5`,required:``},null,8,sh),[[G,e.fullScore]])]),B(`label`,null,[n[47]||=B(`span`,null,`及格线方式`,-1),F(B(`select`,{"onUpdate:modelValue":t=>e.passRule=t},[...n[46]||=[B(`option`,{value:`fixed_score`},`固定分`,-1),B(`option`,{value:`rank_percent`},`排名比例`,-1),B(`option`,{value:`none`},`不设单科线`,-1)]],8,ch),[[K,e.passRule]])]),B(`label`,null,[n[48]||=B(`span`,null,`规则数值`,-1),F(B(`input`,{"onUpdate:modelValue":t=>e.passValue=t,type:`number`,min:`0`},null,8,lh),[[G,e.passValue]])]),B(`label`,null,[n[49]||=B(`span`,null,`日期`,-1),F(B(`input`,{"onUpdate:modelValue":t=>e.date=t,type:`date`,required:``},null,8,uh),[[G,e.date]])]),B(`label`,null,[n[50]||=B(`span`,null,`开始`,-1),F(B(`input`,{"onUpdate:modelValue":t=>e.start=t,type:`time`,required:``},null,8,dh),[[G,e.start]])]),B(`label`,null,[n[51]||=B(`span`,null,`结束`,-1),F(B(`input`,{"onUpdate:modelValue":t=>e.end=t,type:`time`,required:``},null,8,fh),[[G,e.end]])]),B(`label`,null,[n[52]||=B(`span`,null,`费用`,-1),F(B(`input`,{"onUpdate:modelValue":t=>e.fee=t,type:`number`,min:`0`,step:`0.01`},null,8,ph),[[G,e.fee]])])]),B(`button`,{type:`button`,onClick:e=>C.subjects.splice(t,1)},`移除科目`,8,mh)]))),128))]),B(`div`,hh,[B(`label`,null,[n[54]||=B(`span`,null,`整场合格判定`,-1),F(B(`select`,{"onUpdate:modelValue":n[10]||=e=>C.passPolicy=e},[...n[53]||=[wa(``,5)]],512),[[K,C.passPolicy]])]),B(`label`,null,[n[55]||=B(`span`,null,`策略数值`,-1),F(B(`input`,{"onUpdate:modelValue":n[11]||=e=>C.passValue=e,type:`number`,min:`0`},null,512),[[G,C.passValue]])]),B(`label`,null,[n[56]||=B(`span`,null,`考点说明`,-1),F(B(`input`,{"onUpdate:modelValue":n[12]||=e=>C.location=e},null,512),[[G,C.location]])]),B(`label`,null,[n[58]||=B(`span`,null,`创建状态`,-1),F(B(`select`,{"onUpdate:modelValue":n[13]||=e=>C.status=e},[...n[57]||=[B(`option`,{value:`draft`},`草稿`,-1),B(`option`,{value:`published`},`立即发布`,-1)]],512),[[K,C.status]])])]),B(`button`,{class:`app-button app-button--primary`,disabled:i.value},`创建考试计划`,8,gh)],32),B(`section`,_h,[(R(!0),z(L,null,I(e.data.exams,e=>(R(),z(`article`,{key:e.id,class:`exam-apply-card`},[B(`header`,null,[B(`span`,null,O(e.code),1),V($,{value:e.archivedAt?`archived`:e.status},null,8,[`value`])]),B(`h2`,null,O(e.name),1),B(`p`,null,O(e.description),1),B(`dl`,null,[B(`div`,null,[n[60]||=B(`dt`,null,`报名`,-1),B(`dd`,null,O(N(zl)(e.registrationStart,e.registrationEnd)),1)]),B(`div`,null,[n[61]||=B(`dt`,null,`考试`,-1),B(`dd`,null,O(N(zl)(e.examStart,e.examEnd)),1)]),B(`div`,null,[n[62]||=B(`dt`,null,`合格规则`,-1),B(`dd`,null,O(N(Hl)(e)),1)])]),B(`div`,vh,[(R(!0),z(L,null,I(e.subjects,e=>(R(),z(`span`,{key:e.id},[H(O(e.name),1),B(`small`,null,`满分 `+O(e.fullScore)+` · `+O(N(Vl)(e.fee)),1)]))),128))]),B(`footer`,null,[B(`span`,null,O(e.registrationCount||0)+` 人报名`,1),e.archivedAt?U(``,!0):(R(),z(`div`,yh,[B(`button`,{class:`table-action`,onClick:t=>re(e)},O(e.status===`published`?`撤回草稿`:`发布考试`),9,bh),B(`button`,{class:`table-action`,onClick:t=>ie(e)},`归档锁定`,8,xh)]))])]))),128))])],64)):e.page===`admit`?(R(),z(L,{key:3},[e.data.canArrange?(R(),z(`section`,Sh,[n[67]||=B(`p`,null,`ADMIT ARRANGEMENT`,-1),n[68]||=B(`h2`,null,`整场准考证编排`,-1),B(`div`,Ch,[B(`label`,null,[n[63]||=B(`span`,null,`考试`,-1),F(B(`select`,{"onUpdate:modelValue":n[14]||=e=>S.examId=e,onChange:n[15]||=t=>ae(e.data.exams.find(e=>e.id===S.examId))},[(R(!0),z(L,null,I(e.data.exams,e=>(R(),z(`option`,{key:e.id,value:e.id},O(e.name)+`(通过 `+O(e.approvedCount)+` / 已编排 `+O(e.arrangedCount)+`)`,9,wh))),128))],544),[[K,S.examId]])]),B(`label`,null,[n[64]||=B(`span`,null,`混编范围`,-1),F(B(`select`,{"onUpdate:modelValue":n[16]||=e=>S.mixingScope=e},[(R(!0),z(L,null,I(e.data.mixingScopes,e=>(R(),z(`option`,{key:e.code,value:e.code},O(e.name),9,Th))),128))],512),[[K,S.mixingScope]])]),B(`label`,null,[n[65]||=B(`span`,null,`号码规则`,-1),F(B(`select`,{"onUpdate:modelValue":n[17]||=e=>S.numberRuleId=e},[(R(!0),z(L,null,I(e.data.rules,e=>(R(),z(`option`,{key:e.id,value:e.id},O(e.name),9,Eh))),128))],512),[[K,S.numberRuleId]])]),B(`label`,null,[n[66]||=B(`span`,null,`稳定编排种子`,-1),F(B(`input`,{"onUpdate:modelValue":n[18]||=e=>S.seed=e},null,512),[[G,S.seed]])])]),B(`div`,null,[B(`button`,{class:`app-button`,onClick:oe},`仅预检`),B(`button`,{class:`app-button app-button--primary`,onClick:se},`生成整场编排`)]),o.value?(R(),z(`pre`,Dh,O(JSON.stringify(o.value,null,2)),1)):U(``,!0)])):U(``,!0),B(`div`,Oh,[(R(!0),z(L,null,I(e.data.canExportCenterMaterials?[`admit-cards`,`info`,`center-materials`]:[`admit-cards`,`info`],e=>(R(),z(`a`,{key:e,href:`/api/admin/admission-exports/${e}?examId=${encodeURIComponent(S.examId)}`},O(e===`admit-cards`?`批量下载准考证`:e===`info`?`导出准考证信息`:`导出考点材料`),9,kh))),128))]),B(`section`,Ah,[B(`header`,null,[B(`div`,null,[n[69]||=B(`h2`,null,`准考证编排台账`,-1),B(`p`,null,O(e.data.registrations?.length||0)+` 人`,1)])]),B(`div`,jh,[B(`table`,null,[n[70]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`考生`),B(`th`,null,`考试`),B(`th`,null,`准考证号`),B(`th`,null,`固定考点`),B(`th`,null,`分科考场与座位`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(e.data.registrations,e=>(R(),z(`tr`,{key:e.id},[B(`td`,null,[H(O(e.candidate?.name),1),B(`small`,null,O(e.candidate?.school),1)]),B(`td`,null,O(e.exam?.name),1),B(`td`,null,O(e.admitCard?.number||`待编排`),1),B(`td`,null,[H(O(e.admitCard?.testCenter||`—`),1),B(`small`,null,O(e.admitCard?.centerAddress),1)]),B(`td`,null,[(R(!0),z(L,null,I(e.admitCard?.assignments,e=>(R(),z(`span`,{key:e.subjectId,class:`table-stack`},O(e.subjectName)+` · `+O(e.roomName||e.room)+` · 座位 `+O(e.seat),1))),128))])]))),128))])])])])],64)):e.page===`results`?(R(),z(L,{key:4},[B(`section`,Mh,[(R(!0),z(L,null,I(c.value.exams,e=>(R(),z(`button`,{key:e.id,class:_e({active:l.value===e.id}),onClick:t=>{l.value=e.id,u.value=``,g.value=1,v.value=1,b.value=1,D()}},[B(`span`,null,O(e.code),1),B(`strong`,null,O(e.name),1),B(`small`,null,O(e.archivedAt?`已归档锁定`:`${e.registrationCount||0} 人报名`),1)],10,Nh))),128))]),w.value?(R(),z(L,{key:0},[B(`div`,Ph,[B(`a`,{href:`/api/admin/excel/results?template=1&examId=${l.value}`},`下载成绩名单模板`,8,Fh),N(Q).state.user?.adminLevel===`super`?(R(),z(`label`,Ih,[n[71]||=H(`导入成绩 Excel`,-1),B(`input`,{type:`file`,accept:`.xlsx`,hidden:``,onChange:ge},null,32)])):U(``,!0),B(`a`,{href:`/api/admin/excel/results?examId=${l.value}`},`导出本场成绩`,8,Lh),B(`button`,{class:`table-action`,onClick:me},`刷新成绩缓存`)]),B(`section`,Rh,[B(`article`,null,[n[72]||=B(`span`,null,`报名考生`,-1),B(`strong`,null,O(w.value.registrationCount||0),1)]),B(`article`,null,[n[73]||=B(`span`,null,`已录科次`,-1),B(`strong`,null,O(w.value.scored||0)+` / `+O(w.value.enrolledSubjects||0),1)]),B(`article`,null,[n[74]||=B(`span`,null,`已发布`,-1),B(`strong`,null,O(w.value.published||0),1)]),B(`article`,null,[n[75]||=B(`span`,null,`成绩出齐`,-1),B(`strong`,null,O(w.value.complete||0),1)])]),c.value.appeals?.length?(R(),z(`section`,zh,[B(`header`,null,[B(`div`,null,[n[76]||=B(`h2`,null,`成绩复议审批`,-1),B(`p`,null,O(c.value.appeals.filter(e=>e.status===`pending`).length)+` 项待处理`,1)])]),B(`div`,Bh,[B(`table`,null,[n[77]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`考生 / 科目`),B(`th`,null,`当前成绩`),B(`th`,null,`申请理由`),B(`th`,null,`流程`),B(`th`,null,`处理`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(c.value.appeals,e=>(R(),z(`tr`,{key:e.id},[B(`td`,null,[H(O(e.result?.candidateName),1),B(`small`,null,O(e.result?.candidateNumber)+` · `+O(e.result?.subjectName),1)]),B(`td`,null,O(e.result?.score)+` / `+O(e.result?.fullScore),1),B(`td`,null,O(e.reason),1),B(`td`,null,[V($,{value:e.status},null,8,[`value`]),B(`small`,null,O(e.currentStepDetail?.name),1)]),B(`td`,null,[e.status===`pending`?(R(),z(`div`,Vh,[F(B(`input`,{"onUpdate:modelValue":t=>h[e.id]=t,placeholder:`复议意见`},null,8,Hh),[[G,h[e.id]]]),B(`button`,{onClick:t=>he(e,`rejected`)},`退回`,8,Uh),B(`button`,{onClick:t=>he(e,`approved`)},`通过`,8,Wh)])):U(``,!0)])]))),128))])])])])):U(``,!0),N(Q).state.user?.adminLevel===`super`&&!w.value.archivedAt?(R(),z(`section`,Gh,[B(`header`,null,[n[78]||=B(`div`,null,[B(`h2`,null,`按科目批量录入`),B(`p`,null,`成绩须在 0 到科目满分之间。`)],-1),F(B(`select`,{"onUpdate:modelValue":n[19]||=e=>u.value=e,onChange:ce},[(R(!0),z(L,null,I(w.value.subjects,e=>(R(),z(`option`,{key:e.id,value:e.id},O(e.name)+` · 满分 `+O(e.fullScore),9,Kh))),128))],544),[[K,u.value]])]),B(`div`,qh,[B(`table`,null,[n[79]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`考生`),B(`th`,null,`报名号`),B(`th`,null,`准考证号`),B(`th`,null,`成绩`),B(`th`,null,`状态`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(d.value,e=>(R(),z(`tr`,{key:e.id},[B(`td`,null,[H(O(e.candidateName),1),B(`small`,null,O(e.schoolName)+` · `+O(e.className),1)]),B(`td`,null,O(e.candidateNumber),1),B(`td`,null,O(e.admitCard?.number||`待编排`),1),B(`td`,null,[F(B(`input`,{"onUpdate:modelValue":t=>p[e.id]=t,type:`number`,min:`0`,max:T.value?.fullScore,step:`0.5`},null,8,Jh),[[G,p[e.id]]])]),B(`td`,null,[V($,{value:e.result?.published?`published`:e.result?`draft`:`pending`},null,8,[`value`])])]))),128))])])]),y.value.totalPages>1?(R(),z(`nav`,Yh,[B(`button`,{disabled:y.value.page<=1,onClick:n[20]||=e=>ue(y.value.page-1)},`上一页`,8,Xh),B(`span`,null,`第 `+O(y.value.page)+` / `+O(y.value.totalPages)+` 页 · `+O(y.value.total)+` 人`,1),B(`button`,{disabled:y.value.page>=y.value.totalPages,onClick:n[21]||=e=>ue(y.value.page+1)},`下一页`,8,Zh)])):U(``,!0),B(`footer`,null,[B(`button`,{class:`app-button`,onClick:n[22]||=e=>fe(!1)},`暂存当前页`),B(`button`,{class:`app-button app-button--primary`,onClick:n[23]||=e=>fe(!0)},`发布当前页`)])])):U(``,!0),N(Q).state.user?.adminLevel===`super`&&!w.value.archivedAt?(R(),z(`section`,Qh,[B(`header`,null,[n[80]||=B(`div`,null,[B(`h2`,null,`特征分登记`),B(`p`,null,`普通类别不计,特长生类别投档时加入文化课总分。`)],-1),B(`button`,{class:`app-button app-button--primary`,onClick:pe},`保存当前页特征分`)]),B(`div`,$h,[B(`table`,null,[n[81]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`考生`),B(`th`,null,`报名号`),B(`th`,null,`特长资格`),B(`th`,null,`特征分`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(f.value,e=>(R(),z(`tr`,{key:e.id},[B(`td`,null,O(e.candidateName),1),B(`td`,null,O(e.candidateNumber),1),B(`td`,null,O(e.specialtyLabel||`普通生`),1),B(`td`,null,[F(B(`input`,{"onUpdate:modelValue":t=>m[e.id]=t,type:`number`,min:`0`,max:`1000`},null,8,eg),[[G,m[e.id]]])])]))),128))])])]),x.value.totalPages>1?(R(),z(`nav`,tg,[B(`button`,{disabled:x.value.page<=1,onClick:n[24]||=e=>de(x.value.page-1)},`上一页`,8,ng),B(`span`,null,`第 `+O(x.value.page)+` / `+O(x.value.totalPages)+` 页 · `+O(x.value.total)+` 人`,1),B(`button`,{disabled:x.value.page>=x.value.totalPages,onClick:n[25]||=e=>de(x.value.page+1)},`下一页`,8,rg)])):U(``,!0)])):U(``,!0),B(`section`,ig,[B(`header`,null,[B(`div`,null,[n[82]||=B(`h2`,null,`本场成绩台账`,-1),B(`p`,null,O(_.value.total||0)+` 条`,1)])]),B(`div`,ag,[B(`table`,null,[n[83]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`考生`),B(`th`,null,`科目`),B(`th`,null,`成绩`),B(`th`,null,`排名 / 等级`),B(`th`,null,`达线`),B(`th`,null,`发布`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(c.value.results,e=>(R(),z(`tr`,{key:e.id},[B(`td`,null,[H(O(e.candidateName),1),B(`small`,null,O(e.candidateNumber),1)]),B(`td`,null,O(e.subjectName),1),B(`td`,null,[B(`strong`,null,O(e.score)+` / `+O(e.fullScore),1)]),B(`td`,null,`第 `+O(e.rank)+` / `+O(e.cohortSize)+` · `+O(e.grade),1),B(`td`,null,O(e.qualified==null?`不判定`:e.qualified?`达线`:`未达线`),1),B(`td`,null,[V($,{value:e.published?`published`:`draft`},null,8,[`value`])])]))),128))])])]),_.value.totalPages>1?(R(),z(`nav`,og,[B(`button`,{disabled:_.value.page<=1,onClick:n[26]||=e=>le(_.value.page-1)},`上一页`,8,sg),B(`span`,null,`第 `+O(_.value.page)+` / `+O(_.value.totalPages)+` 页 · `+O(_.value.total)+` 条`,1),B(`button`,{disabled:_.value.page>=_.value.totalPages,onClick:n[27]||=e=>le(_.value.page+1)},`下一页`,8,cg)])):U(``,!0)])],64)):(R(),z(`div`,lg,[...n[84]||=[B(`strong`,null,`请选择考试`,-1),B(`p`,null,`选中考试后加载成绩录入、分析与复议数据。`,-1)]]))],64)):U(``,!0)]))}},dg={class:`admin-admission-workspace`},fg={key:0,class:`form-error`},pg={key:1,class:`issued-credential`},mg=[`value`],hg={class:`form-grid`},gg=[`value`],_g={class:`check-row`},vg={class:`record-metrics`},yg={class:`form-grid`},bg=[`value`],xg={class:`record-panel`},Sg={class:`table-scroll`},Cg=[`onClick`],wg=[`onClick`],Tg={class:`form-grid`},Eg=[`value`],Dg=[`value`],Og=[`onUpdate:modelValue`],kg=[`onUpdate:modelValue`],Ag=[`onUpdate:modelValue`,`onChange`],jg=[`value`],Mg=[`onUpdate:modelValue`,`disabled`],Ng=[`value`],Pg=[`onClick`],Fg={class:`record-panel`},Ig={class:`table-scroll`},Lg={key:0,class:`row-decision`},Rg=[`onUpdate:modelValue`],zg=[`onClick`],Bg=[`onClick`],Vg={key:1},Hg={key:5,class:`record-panel`},Ug={class:`table-scroll`},Wg={key:0,class:`row-decision`},Gg=[`onUpdate:modelValue`],Kg=[`onClick`],qg=[`onClick`],Jg={key:1},Yg={class:`ledger-toolbar`},Xg=[`value`],Zg=[`href`],Qg=[`href`],$g={class:`record-panel`},e_={class:`table-scroll`},t_={key:0,class:`row-decision`},n_=[`onUpdate:modelValue`,`placeholder`],r_=[`onClick`],i_=[`onClick`],a_={class:`record-panel`},o_={class:`table-scroll`},s_={__name:`AdminAdmissionWorkspace`,props:{page:{type:String,required:!0},data:{type:Object,default:()=>({})}},emits:[`reload`],setup(e,{emit:t}){let n=e,r=t,i=M(!1),a=M(``),o=M(null),s=M(``),c=M(``),l=A({}),u=A({examId:``,preferenceStart:``,preferenceEnd:``,status:`draft`,maxChoices:5,maxSubmissions:3,progress:``,enabled:!1,autoPublish:!0}),d=A({schoolId:``,username:``,password:``,displayName:``}),f=A({examId:``,schoolId:``,note:``,categories:[{name:`普通生`,quota:1,specialtyCategory:``,specialtyType:``}]}),p=W(()=>n.data.settings?.find(e=>e.examId===u.examId)),m=W(()=>(n.data.placements||[]).filter(e=>(!c.value||e.examId===c.value)&&(!s.value||JSON.stringify(e).toLowerCase().includes(s.value.toLowerCase())))),h=W(()=>(n.data.preferenceRows||[]).filter(e=>(!c.value||e.examId===c.value)&&(!s.value||JSON.stringify(e).toLowerCase().includes(s.value.toLowerCase()))));function g(){let e=p.value||n.data.settings?.[0];if(!e){u.examId||=n.data.exams?.[0]?.id||``;return}Object.assign(u,{examId:e.examId,preferenceStart:e.payload?.preferenceStart?.slice(0,16)||``,preferenceEnd:e.payload?.preferenceEnd?.slice(0,16)||``,status:e.status||`draft`,maxChoices:e.payload?.maxChoices||5,maxSubmissions:e.payload?.maxSubmissions||3,progress:e.payload?.progress||``,enabled:!!e.payload?.enabled,autoPublish:e.payload?.autoPublish!==!1})}function _(){f.categories.push({name:``,quota:1,specialtyCategory:``,specialtyType:``})}function v(e){e.specialtyType=``}async function y(e,t,n=!0){i.value=!0,a.value=``;try{let i=await e();return t&&Y.notify(t),n&&r(`reload`),i}catch(e){return a.value=e.message,null}finally{i.value=!1}}function b(){y(()=>X(`/api/admin/admissions/${u.examId}/setting`,{method:`PUT`,body:{...u,maxChoices:Number(u.maxChoices),maxSubmissions:Number(u.maxSubmissions),preferenceStart:u.preferenceStart?new Date(u.preferenceStart).toISOString():``,preferenceEnd:u.preferenceEnd?new Date(u.preferenceEnd).toISOString():``}}),`志愿设置已保存`)}function x(e){let t={match:`按规则投档`,finalize:`签发通知书并开启报到`,supplementary:`开启补录`};window.confirm(`确认执行“${t[e]}”吗?该操作会改变本场录取状态。`)&&y(()=>X(`/api/admin/admissions/${u.examId}/${e}`,{method:`POST`,body:{}}),`${t[e]}已完成`)}async function S(){let e=await y(()=>X(`/api/admin/admission-school-accounts`,{method:`POST`,body:d}),`招生学校账户已创建`,!1);e&&(o.value=e.temporaryPassword?{account:e.username,password:e.temporaryPassword}:null,r(`reload`))}function C(e){y(()=>X(`/api/admin/admission-school-accounts/${e.id}`,{method:`PATCH`,body:{active:!e.active}}),e.active?`招生账户已停用`:`招生账户已启用`)}async function w(e){let t=await y(()=>X(`/api/admin/admission-school-accounts/${e.id}/reset-password`,{method:`POST`}),``,!1);t&&(o.value={account:t.username,password:t.temporaryPassword})}function T(){let e=f.categories.map((e,t)=>({code:`category_${t+1}`,name:e.name.trim(),quota:Number(e.quota),isSpecialty:!!e.specialtyCategory,specialtyCategory:e.specialtyCategory,specialtyType:e.specialtyType,indicatorAllocations:[]})).filter(e=>e.name&&e.quota>0);if(e.some(e=>e.isSpecialty&&!e.specialtyType)){a.value=`特长生类别必须选择具体特长项目`;return}y(()=>X(`/api/admin/admission-plans`,{method:`POST`,body:{examId:f.examId,schoolId:f.schoolId,note:f.note,categories:e}}),`招生计划已代上传并通过`)}function ee(e,t){y(()=>X(`/api/admin/admission-plans/${e.id}`,{method:`PATCH`,body:{status:t,reviewNote:l[e.id]||``}}),t===`approved`?`招生计划已通过`:`招生计划已退回`)}function te(e,t){let n=t&&e.payload?.supplementDecision===`supplement`&&window.prompt(`补录志愿结束时间(ISO 或本地日期时间)`,``)||``;t&&e.payload?.supplementDecision===`supplement`&&!n||y(()=>X(`/api/admin/admission-reporting/${e.id}`,{method:`PATCH`,body:{approved:t,approvalNote:l[e.id]||``,preferenceEnd:n}}),t?`报到与补录决定已批准`:`报到决定已退回`)}function E(e,t){y(()=>X(`/api/admin/admission-withdrawals/${e.id}`,{method:`PATCH`,body:{approved:t,reviewNote:l[e.id]||``}}),t?`退档申请已批准`:`退档申请已驳回`)}return g(),(t,n)=>(R(),z(`div`,dg,[a.value?(R(),z(`div`,fg,O(a.value),1)):U(``,!0),o.value?(R(),z(`section`,pg,[n[24]||=B(`div`,null,[B(`span`,null,`ONE-TIME CREDENTIAL`),B(`h2`,null,`招生学校临时密码`),B(`p`,null,`关闭后不再展示,请安全交付。`)],-1),B(`dl`,null,[B(`div`,null,[n[22]||=B(`dt`,null,`账号`,-1),B(`dd`,null,O(o.value.account),1)]),B(`div`,null,[n[23]||=B(`dt`,null,`临时密码`,-1),B(`dd`,null,O(o.value.password),1)])]),B(`button`,{class:`app-button`,onClick:n[0]||=e=>o.value=null},`我已保存`)])):U(``,!0),n[68]||=B(`section`,{class:`admission-command-banner`},[B(`div`,null,[B(`span`,null,`ADMISSION COMMAND`),B(`h2`,null,`中考招生录取控制台`),B(`p`,null,`志愿内容仅超级管理员可见且不可代改;投档和录取变更全部进入审计日志。`)])],-1),e.page===`admission-settings`?(R(),z(L,{key:2},[B(`form`,{class:`business-form admission-admin-setting`,onSubmit:q(b,[`prevent`])},[n[34]||=B(`p`,null,`EXAM PREFERENCE SETTING`,-1),n[35]||=B(`h2`,null,`考试志愿与录取阶段`,-1),B(`label`,null,[n[25]||=B(`span`,null,`考试`,-1),F(B(`select`,{"onUpdate:modelValue":n[1]||=e=>u.examId=e,onChange:g},[(R(!0),z(L,null,I(e.data.exams,e=>(R(),z(`option`,{key:e.id,value:e.id},O(e.name),9,mg))),128))],544),[[K,u.examId]])]),B(`div`,hg,[B(`label`,null,[n[26]||=B(`span`,null,`填报开始`,-1),F(B(`input`,{"onUpdate:modelValue":n[2]||=e=>u.preferenceStart=e,type:`datetime-local`},null,512),[[G,u.preferenceStart]])]),B(`label`,null,[n[27]||=B(`span`,null,`填报结束`,-1),F(B(`input`,{"onUpdate:modelValue":n[3]||=e=>u.preferenceEnd=e,type:`datetime-local`},null,512),[[G,u.preferenceEnd]])]),B(`label`,null,[n[28]||=B(`span`,null,`当前阶段`,-1),F(B(`select`,{"onUpdate:modelValue":n[4]||=e=>u.status=e},[(R(),z(L,null,I({draft:`草稿`,filling:`志愿填报中`,closed:`填报截止`,matching:`投档中`,school_review:`学校审核`,reporting:`考生报到`,supplementary:`补录填报`,completed:`录取完成`},(e,t)=>B(`option`,{key:t,value:t},O(e),9,gg)),64))],512),[[K,u.status]])]),B(`label`,null,[n[29]||=B(`span`,null,`普通志愿数`,-1),F(B(`input`,{"onUpdate:modelValue":n[5]||=e=>u.maxChoices=e,type:`number`,min:`1`,max:`20`},null,512),[[G,u.maxChoices]])]),B(`label`,null,[n[30]||=B(`span`,null,`最多提交次数`,-1),F(B(`input`,{"onUpdate:modelValue":n[6]||=e=>u.maxSubmissions=e,type:`number`,min:`1`,max:`50`},null,512),[[G,u.maxSubmissions]])]),B(`label`,null,[n[31]||=B(`span`,null,`考生进度说明`,-1),F(B(`input`,{"onUpdate:modelValue":n[7]||=e=>u.progress=e},null,512),[[G,u.progress]])])]),B(`div`,_g,[B(`label`,null,[F(B(`input`,{"onUpdate:modelValue":n[8]||=e=>u.enabled=e,type:`checkbox`},null,512),[[us,u.enabled]]),n[32]||=H(` 启用志愿填报`,-1)]),B(`label`,null,[F(B(`input`,{"onUpdate:modelValue":n[9]||=e=>u.autoPublish=e,type:`checkbox`},null,512),[[us,u.autoPublish]]),n[33]||=H(` 完成后自动公示`,-1)])]),n[36]||=B(`button`,{class:`app-button app-button--primary`},`保存志愿设置`,-1),B(`footer`,null,[B(`button`,{class:`app-button`,type:`button`,onClick:n[10]||=e=>x(`match`)},`按规则投档`),B(`button`,{class:`app-button`,type:`button`,onClick:n[11]||=e=>x(`finalize`)},`签发通知书并开启报到`),B(`button`,{class:`app-button`,type:`button`,onClick:n[12]||=e=>x(`supplementary`)},`开启补录`)])],32),B(`section`,vg,[B(`article`,null,[n[37]||=B(`span`,null,`待审计划`,-1),B(`strong`,null,O(e.data.plans?.filter(e=>e.status===`pending`).length||0),1)]),B(`article`,null,[n[38]||=B(`span`,null,`学校审核中`,-1),B(`strong`,null,O(e.data.placements?.filter(e=>e.status===`school_review`).length||0),1)]),B(`article`,null,[n[39]||=B(`span`,null,`退档待审`,-1),B(`strong`,null,O(e.data.placements?.filter(e=>e.status===`withdrawal_pending`).length||0),1)]),B(`article`,null,[n[40]||=B(`span`,null,`正式录取`,-1),B(`strong`,null,O(e.data.placements?.filter(e=>e.status===`final`).length||0),1)])])],64)):e.page===`admission-accounts`?(R(),z(L,{key:3},[B(`form`,{class:`business-form`,onSubmit:q(S,[`prevent`])},[n[46]||=B(`p`,null,`ADMISSION SCHOOL ACCOUNT`,-1),n[47]||=B(`h2`,null,`创建招生学校账户`,-1),B(`div`,yg,[B(`label`,null,[n[42]||=B(`span`,null,`招生学校`,-1),F(B(`select`,{"onUpdate:modelValue":n[13]||=e=>d.schoolId=e,required:``},[n[41]||=B(`option`,{value:``},`请选择`,-1),(R(!0),z(L,null,I(e.data.admissionSchools||e.data.schools,e=>(R(),z(`option`,{key:e.id,value:e.id},O(e.code)+` · `+O(e.name),9,bg))),128))],512),[[K,d.schoolId]])]),B(`label`,null,[n[43]||=B(`span`,null,`显示名称`,-1),F(B(`input`,{"onUpdate:modelValue":n[14]||=e=>d.displayName=e,placeholder:`学校招生办公室`},null,512),[[G,d.displayName]])]),B(`label`,null,[n[44]||=B(`span`,null,`登录账号`,-1),F(B(`input`,{"onUpdate:modelValue":n[15]||=e=>d.username=e,required:``},null,512),[[G,d.username]])]),B(`label`,null,[n[45]||=B(`span`,null,`初始密码`,-1),F(B(`input`,{"onUpdate:modelValue":n[16]||=e=>d.password=e,type:`password`,minlength:`8`,required:``},null,512),[[G,d.password]])])]),n[48]||=B(`button`,{class:`app-button app-button--primary`},`创建招生账户`,-1)],32),B(`section`,xg,[B(`header`,null,[B(`div`,null,[n[49]||=B(`h2`,null,`招生学校账户台账`,-1),B(`p`,null,O(e.data.schoolAccounts?.length||0)+` 个`,1)])]),B(`div`,Sg,[B(`table`,null,[n[50]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`显示名称`),B(`th`,null,`账号`),B(`th`,null,`学校`),B(`th`,null,`状态`),B(`th`,null,`操作`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(e.data.schoolAccounts,e=>(R(),z(`tr`,{key:e.id},[B(`td`,null,O(e.displayName),1),B(`td`,null,O(e.username),1),B(`td`,null,[H(O(e.schoolName),1),B(`small`,null,O(e.schoolCode),1)]),B(`td`,null,[V($,{value:e.active?`active`:`disabled`},null,8,[`value`])]),B(`td`,null,[B(`button`,{class:`table-action`,onClick:t=>w(e)},`重置密码`,8,Cg),B(`button`,{class:`table-action`,onClick:t=>C(e)},O(e.active?`停用`:`启用`),9,wg)])]))),128))])])])])],64)):e.page===`admission-plans`?(R(),z(L,{key:4},[B(`form`,{class:`business-form`,onSubmit:q(T,[`prevent`])},[n[56]||=B(`p`,null,`PLAN ON BEHALF`,-1),n[57]||=B(`h2`,null,`代上传招生计划`,-1),B(`div`,Tg,[B(`label`,null,[n[51]||=B(`span`,null,`考试`,-1),F(B(`select`,{"onUpdate:modelValue":n[17]||=e=>f.examId=e,required:``},[(R(!0),z(L,null,I(e.data.exams,e=>(R(),z(`option`,{key:e.id,value:e.id},O(e.name),9,Eg))),128))],512),[[K,f.examId]])]),B(`label`,null,[n[52]||=B(`span`,null,`招生学校`,-1),F(B(`select`,{"onUpdate:modelValue":n[18]||=e=>f.schoolId=e,required:``},[(R(!0),z(L,null,I(e.data.admissionSchools||e.data.schools,e=>(R(),z(`option`,{key:e.id,value:e.id},O(e.name),9,Dg))),128))],512),[[K,f.schoolId]])])]),(R(!0),z(L,null,I(f.categories,(e,t)=>(R(),z(`div`,{key:t,class:`plan-admin-row`},[F(B(`input`,{"onUpdate:modelValue":t=>e.name=t,required:``,placeholder:`类别名称`},null,8,Og),[[G,e.name]]),F(B(`input`,{"onUpdate:modelValue":t=>e.quota=t,type:`number`,min:`1`,required:``,placeholder:`计划人数`},null,8,kg),[[G,e.quota]]),F(B(`select`,{"onUpdate:modelValue":t=>e.specialtyCategory=t,onChange:t=>v(e)},[n[53]||=B(`option`,{value:``},`普通 / 政策类`,-1),(R(!0),z(L,null,I(N(sf),e=>(R(),z(`option`,{key:e.code,value:e.code},O(e.name)+`特长生`,9,jg))),128))],40,Ag),[[K,e.specialtyCategory]]),F(B(`select`,{"onUpdate:modelValue":t=>e.specialtyType=t,disabled:!e.specialtyCategory},[n[54]||=B(`option`,{value:``},`选择特长项目`,-1),(R(!0),z(L,null,I(N(cf)(e.specialtyCategory),e=>(R(),z(`option`,{key:e[0],value:e[0]},O(e[1]),9,Ng))),128))],8,Mg),[[K,e.specialtyType]]),B(`button`,{type:`button`,onClick:e=>f.categories.splice(t,1)},`移除`,8,Pg)]))),128)),B(`button`,{class:`app-button`,type:`button`,onClick:_},`+ 添加类别`),B(`label`,null,[n[55]||=B(`span`,null,`计划说明`,-1),F(B(`textarea`,{"onUpdate:modelValue":n[19]||=e=>f.note=e},null,512),[[G,f.note]])]),n[58]||=B(`button`,{class:`app-button app-button--primary`},`代上传并审核通过`,-1)],32),B(`section`,Fg,[B(`header`,null,[B(`div`,null,[n[59]||=B(`h2`,null,`招生计划审核台账`,-1),B(`p`,null,O(e.data.plans?.filter(e=>e.status===`pending`).length||0)+` 份待审`,1)])]),B(`div`,Ig,[B(`table`,null,[n[60]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`考试 / 学校`),B(`th`,null,`计划构成`),B(`th`,null,`状态`),B(`th`,null,`审核`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(e.data.plans,e=>(R(),z(`tr`,{key:e.id},[B(`td`,null,[H(O(e.examName),1),B(`small`,null,O(e.schoolName),1)]),B(`td`,null,[(R(!0),z(L,null,I(e.payload?.categories,e=>(R(),z(`span`,{key:e.code,class:`table-stack`},O(e.name)+` `+O(e.quota)+` 人`,1))),128))]),B(`td`,null,[V($,{value:e.status},null,8,[`value`])]),B(`td`,null,[e.status===`pending`?(R(),z(`div`,Lg,[F(B(`input`,{"onUpdate:modelValue":t=>l[e.id]=t,placeholder:`审核意见`},null,8,Rg),[[G,l[e.id]]]),B(`button`,{onClick:t=>ee(e,`rejected`)},`退回`,8,zg),B(`button`,{onClick:t=>ee(e,`approved`)},`通过`,8,Bg)])):(R(),z(`span`,Vg,O(e.payload?.reviewNote),1))])]))),128))])])])])],64)):e.page===`admission-reporting`?(R(),z(`section`,Hg,[n[62]||=B(`header`,null,[B(`div`,null,[B(`h2`,null,`学校报到与补录决定`),B(`p`,null,`批准后按决定公开报到统计或进入补录阶段。`)])],-1),B(`div`,Ug,[B(`table`,null,[n[61]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`考试 / 学校`),B(`th`,null,`轮次`),B(`th`,null,`报到统计`),B(`th`,null,`学校决定`),B(`th`,null,`状态`),B(`th`,null,`审批`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(e.data.reportingRequests,e=>(R(),z(`tr`,{key:e.id},[B(`td`,null,[H(O(e.examName),1),B(`small`,null,O(e.schoolName),1)]),B(`td`,null,`第 `+O(e.payload?.round||1)+` 轮`,1),B(`td`,null,`计划 `+O(e.progress?.totalQuota)+` · 报到 `+O(e.progress?.reportedCount)+` · 缺额 `+O(e.progress?.reportingGap),1),B(`td`,null,[H(O(e.payload?.supplementDecision===`supplement`?`申请补录`:`不补录`),1),B(`small`,null,O(e.payload?.decisionNote),1)]),B(`td`,null,[V($,{value:e.status},null,8,[`value`])]),B(`td`,null,[e.status===`pending_approval`?(R(),z(`div`,Wg,[F(B(`input`,{"onUpdate:modelValue":t=>l[e.id]=t,placeholder:`审批意见`},null,8,Gg),[[G,l[e.id]]]),B(`button`,{onClick:t=>te(e,!1)},`退回`,8,Kg),B(`button`,{onClick:t=>te(e,!0)},`批准`,8,qg)])):(R(),z(`span`,Jg,O(e.payload?.approvalNote),1))])]))),128))])])])])):e.page===`admission-supervision`?(R(),z(L,{key:6},[B(`div`,Yg,[F(B(`input`,{"onUpdate:modelValue":n[20]||=e=>s.value=e,placeholder:`搜索考生、报名号、学校、类别`},null,512),[[G,s.value]]),F(B(`select`,{"onUpdate:modelValue":n[21]||=e=>c.value=e},[n[63]||=B(`option`,{value:``},`全部考试`,-1),(R(!0),z(L,null,I(e.data.exams,e=>(R(),z(`option`,{key:e.id,value:e.id},O(e.name),9,Xg))),128))],512),[[K,c.value]]),B(`a`,{class:`app-button`,href:`/api/admin/admissions/placements/export?examId=${encodeURIComponent(c.value)}`},`导出投档台账`,8,Zg),B(`a`,{class:`app-button`,href:`/api/admin/admissions/preferences/export?examId=${encodeURIComponent(c.value)}`},`导出志愿快照`,8,Qg)]),B(`section`,$g,[n[65]||=B(`header`,null,[B(`div`,null,[B(`h2`,null,`投档与退档监督`),B(`p`,null,`投档记录可审核特殊退档,考生志愿保持只读。`)])],-1),B(`div`,e_,[B(`table`,null,[n[64]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`考生`),B(`th`,null,`考试 / 分数`),B(`th`,null,`投档学校`),B(`th`,null,`类别 / 志愿`),B(`th`,null,`状态`),B(`th`,null,`退档审批`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(m.value,e=>(R(),z(`tr`,{key:e.id},[B(`td`,null,[H(O(e.candidate?.name),1),B(`small`,null,O(e.candidate?.registrationNumber),1)]),B(`td`,null,[H(O(e.examName),1),B(`small`,null,O(e.payload?.totalScore)+` 分`,1)]),B(`td`,null,O(e.schoolName),1),B(`td`,null,O(e.payload?.categoryName)+` · 第 `+O(e.payload?.preferenceOrder)+` 志愿`,1),B(`td`,null,[V($,{value:e.status},null,8,[`value`])]),B(`td`,null,[e.status===`withdrawal_pending`?(R(),z(`div`,t_,[F(B(`input`,{"onUpdate:modelValue":t=>l[e.id]=t,placeholder:e.payload?.withdrawalReason||`审批意见`},null,8,n_),[[G,l[e.id]]]),B(`button`,{onClick:t=>E(e,!1)},`驳回`,8,r_),B(`button`,{onClick:t=>E(e,!0)},`批准`,8,i_)])):U(``,!0)])]))),128))])])])]),B(`section`,a_,[B(`header`,null,[B(`div`,null,[n[66]||=B(`h2`,null,`考生志愿实时快照`,-1),B(`p`,null,O(h.value.length)+` 人;仅监督和导出,不提供代改入口。`,1)])]),B(`div`,o_,[B(`table`,null,[n[67]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`考生 / 报名号`),B(`th`,null,`考试 / 生源校`),B(`th`,null,`轮次 / 状态`),B(`th`,null,`志愿顺序`),B(`th`,null,`提交次数`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(h.value,e=>(R(),z(`tr`,{key:`${e.examId}-${e.candidate?.registrationNumber}`},[B(`td`,null,[H(O(e.candidate?.name),1),B(`small`,null,O(e.candidate?.registrationNumber),1)]),B(`td`,null,[H(O(e.examName),1),B(`small`,null,O(e.sourceSchoolName),1)]),B(`td`,null,`第 `+O(e.round)+` 轮 · `+O(e.fillStatus),1),B(`td`,null,[(R(!0),z(L,null,I(e.choices,(e,t)=>(R(),z(`span`,{key:t,class:`table-stack`},O(e.preferenceType===`indicator`?`指标`:t+1)+` · `+O(e.schoolName)+` · `+O(e.categoryName),1))),128))]),B(`td`,null,O(e.submissionCount)+` / `+O(e.maxSubmissions),1)]))),128))])])])])],64)):U(``,!0)]))}},c_={class:`admin-system-workspace`},l_={key:0,class:`form-error`},u_={key:1,class:`record-panel center-edit-picker`},d_={class:`chip-list`},f_=[`onClick`],p_={key:0,class:`form-callout`},m_={class:`form-grid`},h_={class:`check-inline`},g_={class:`record-panel`},__={class:`table-scroll`},v_=[`onClick`],y_=[`onClick`],b_={class:`record-panel`},x_={class:`table-scroll`},S_=[`onClick`],C_={key:0},w_=[`value`],T_={class:`form-grid`},E_=[`value`],D_=[`disabled`],O_=[`value`],k_=[`disabled`],A_=[`value`],j_={class:`room-editor-list`},M_={class:`form-grid`},N_=[`onUpdate:modelValue`],P_=[`onUpdate:modelValue`],F_=[`onUpdate:modelValue`],I_=[`onUpdate:modelValue`],L_=[`onUpdate:modelValue`],R_=[`onUpdate:modelValue`],z_=[`onClick`],B_={class:`record-panel`},V_={class:`table-scroll`},H_={class:`record-panel`},U_={class:`table-scroll`},W_={key:0,class:`row-decision`},G_=[`onUpdate:modelValue`],K_=[`onClick`],q_=[`onClick`],J_={class:`record-search`},Y_={class:`workflow-grid-vue`},X_={class:`workflow-track-vue`},Z_=[`onUpdate:modelValue`],Q_=[`onClick`],$_=[`onClick`],ev=[`onClick`],tv={key:5,class:`workflow-design-grid-vue`},nv=[`onSubmit`],rv=[`onClick`],iv=[`onUpdate:modelValue`],av=[`onUpdate:modelValue`],ov=[`onUpdate:modelValue`],sv=[`onClick`],cv={class:`number-rule-layout-vue`},lv={class:`form-grid`},uv={class:`rule-segment-grid`},dv={__name:`AdminSystemWorkspace`,props:{page:{type:String,required:!0},data:{type:Object,default:()=>({})}},emits:[`reload`],setup(e,{emit:t}){let n=e,r=t,i=M(!1),a=M(``),o=M(``),s=A({}),c=A({id:``,category:`报名通知`,status:`draft`,title:``,summary:``,content:``,pinned:!1}),l=A({id:``,schoolId:``,code:``,name:``,provinceCode:``,cityCode:``,districtCode:``,address:``,managerName:``,managerPhone:``,contact:``,emergencyPhone:``,gateOpenTime:``,status:`active`,transport:``,notes:``,rooms:[{code:``,name:``,building:``,floor:``,capacity:30,seatPlan:``,roomType:`standard`,status:`active`,notes:``}]}),u=A({id:``,name:`固定报名号规则`,separator:`-`,year:!0,school_code:!0,gender:!1,literal:!1,literalValue:``,yearWidth:4,sequenceWidth:4}),d=W(()=>of.find(e=>e.code===l.provinceCode)?.cities||[]),f=W(()=>d.value.find(e=>e.code===l.cityCode)?.districts||[]);async function p(e,t){i.value=!0,a.value=``;try{await e(),t&&Y.notify(t),r(`reload`)}catch(e){a.value=e.message}finally{i.value=!1}}function m(e){Object.assign(c,{id:e.id,category:e.category,status:e.status,title:e.title,summary:e.summary||``,content:e.content||``,pinned:!!e.pinned}),window.scrollTo({top:0,behavior:`smooth`})}function h(){p(()=>X(c.id?`/api/admin/notices/${c.id}`:`/api/admin/notices`,{method:c.id?`PATCH`:`POST`,body:c}),c.status===`published`?`通知已发布`:`通知草稿已保存`)}function g(e){p(()=>X(`/api/admin/notices/${e.id}`,{method:`PATCH`,body:{status:e.status===`published`?`draft`:`published`}}),e.status===`published`?`通知已撤回`:`通知已发布`)}function _(e){p(()=>X(`/api/admin/publications/${e.sourceType}/${e.id}`,{method:`PATCH`,body:{publicVisible:!e.publicVisible}}),e.publicVisible?`系统公示已隐藏`:`系统公示已公开`)}function v(){l.rooms.push({code:``,name:``,building:``,floor:``,capacity:30,seatPlan:``,roomType:`standard`,status:`active`,notes:``})}function y(){Object.assign(l,{id:``,schoolId:``,code:``,name:``,provinceCode:``,cityCode:``,districtCode:``,address:``,managerName:``,managerPhone:``,contact:``,emergencyPhone:``,gateOpenTime:``,status:`active`,transport:``,notes:``,rooms:[{code:``,name:``,building:``,floor:``,capacity:30,seatPlan:``,roomType:`standard`,status:`active`,notes:``}]})}function b(e){Object.assign(l,{...e,id:e.id,rooms:(e.rooms||[]).map(e=>({...e}))}),window.scrollTo({top:0,behavior:`smooth`})}function x(){let e=!!l.id;p(()=>X(e?`/api/admin/centers/${l.id}`:`/api/admin/centers`,{method:e?`PATCH`:`POST`,body:{...l,rooms:l.rooms.map(e=>({...e,capacity:Number(e.capacity)}))}}),e?`考点变更已提交审批`:`新考点档案已提交审批`)}function S(e,t){p(()=>X(`/api/admin/center-change-requests/${e.id}`,{method:`PATCH`,body:{status:t,reviewNote:s[e.id]||``}}),t===`approved`?`考点变更已通过`:`考点变更已退回`)}function C(e){return e.businessType===`profile_change`?`/api/admin/candidates/${e.businessId}`:e.businessType===`registration_review`?`/api/admin/registrations/${e.businessId}`:e.businessType===`center_change`?`/api/admin/center-change-requests/${e.businessId}`:e.businessType===`candidate_account_batch`?`/api/admin/candidate-account-batches/${e.businessId}`:`/api/admin/score-appeals/${e.businessId}`}function w(e,t){let n={status:t,reviewNote:s[e.id]||``};e.businessType===`score_appeal`&&t===`approved`&&(n.reviewedScore=Number(window.prompt(`请输入复议后的成绩`,e.appealResult?.score??``)||e.appealResult?.score)),p(()=>X(C(e),{method:`PATCH`,body:n}),t===`approved`?`流程已通过当前步骤`:`流程已退回`)}function T(e){let t=window.prompt(`请输入目标管理员 ID`,``)||``;t&&p(()=>X(`/api/admin/workflow-instances/${e.id}/transfer`,{method:`PATCH`,body:{assigneeId:t,note:s[e.id]||``}}),`流程已转交`)}function ee(e){p(()=>X(`/api/admin/workflows/${e.businessType}`,{method:`PUT`,body:{name:e.name,steps:e.steps.map(e=>({name:e.name,adminLevel:e.adminLevel}))}}),`审批流程已保存`)}function te(e){e.steps.push({name:`新增审批步骤`,adminLevel:`school`,position:e.steps.length+1})}function E(){let e=[{type:`year`,include:u.year,width:Number(u.yearWidth)},{type:`school_code`,include:u.school_code},{type:`gender`,include:u.gender},{type:`literal`,include:u.literal,value:u.literalValue},{type:`sequence`,include:!0,width:Number(u.sequenceWidth)}].filter(e=>e.include).map((e,t)=>({type:e.type,position:t+1,value:e.value||``,width:e.width||0}));p(()=>X(`/api/admin/number-rules`,{method:`POST`,body:{id:u.id||void 0,name:u.name,separator:u.separator,segments:e}}),`报名号规则已启用`)}if(n.page===`number-rules`&&n.data.activeRule){let e=n.data.activeRule;u.id=e.id,u.name=e.name,u.separator=e.separator;for(let t of e.segments||[])u[t.type]=!0,t.type===`literal`&&(u.literalValue=t.value),t.type===`year`&&(u.yearWidth=t.width),t.type===`sequence`&&(u.sequenceWidth=t.width)}return(t,n)=>(R(),z(`div`,c_,[a.value?(R(),z(`div`,l_,O(a.value),1)):U(``,!0),e.page===`centers`&&e.data.centers?.length?(R(),z(`section`,u_,[B(`header`,null,[n[32]||=B(`div`,null,[B(`h2`,null,`维护已有考点`),B(`p`,null,`选择考点后,下面的档案表单会切换为变更申请。`)],-1),l.id?(R(),z(`button`,{key:0,class:`app-button`,type:`button`,onClick:y},`取消编辑`)):U(``,!0)]),B(`div`,d_,[(R(!0),z(L,null,I(e.data.centers,e=>(R(),z(`button`,{key:e.id,type:`button`,class:_e({active:l.id===e.id}),onClick:t=>b(e)},O(e.code)+` · `+O(e.name),11,f_))),128))]),l.id?(R(),z(`div`,p_,[B(`strong`,null,`正在提交“`+O(l.name)+`”的变更`,1),n[33]||=B(`p`,null,`审批通过前,当前正式考点档案不会变化。`,-1)])):U(``,!0)])):U(``,!0),e.page===`notices`?(R(),z(L,{key:2},[B(`form`,{class:`business-form notice-editor-vue`,onSubmit:q(h,[`prevent`])},[B(`header`,null,[B(`div`,null,[n[34]||=B(`p`,null,`PUBLIC INFORMATION`,-1),B(`h2`,null,O(c.id?`编辑通知`:`新建通知公告`),1)]),c.id?(R(),z(`button`,{key:0,type:`button`,class:`app-button`,onClick:n[0]||=e=>Object.assign(c,{id:``,category:`报名通知`,status:`draft`,title:``,summary:``,content:``,pinned:!1})},`新建另一条`)):U(``,!0)]),B(`div`,m_,[B(`label`,null,[n[35]||=B(`span`,null,`分类`,-1),F(B(`select`,{"onUpdate:modelValue":n[1]||=e=>c.category=e},[(R(),z(L,null,I([`报名通知`,`考试须知`,`考点公告`,`成绩通知`,`系统公告`],e=>B(`option`,{key:e},O(e),1)),64))],512),[[K,c.category]])]),B(`label`,null,[n[37]||=B(`span`,null,`发布方式`,-1),F(B(`select`,{"onUpdate:modelValue":n[2]||=e=>c.status=e},[...n[36]||=[B(`option`,{value:`draft`},`保存草稿`,-1),B(`option`,{value:`published`},`立即发布`,-1)]],512),[[K,c.status]])])]),B(`label`,null,[n[38]||=B(`span`,null,`通知标题`,-1),F(B(`input`,{"onUpdate:modelValue":n[3]||=e=>c.title=e,required:``},null,512),[[G,c.title]])]),B(`label`,null,[n[39]||=B(`span`,null,`首页摘要`,-1),F(B(`input`,{"onUpdate:modelValue":n[4]||=e=>c.summary=e},null,512),[[G,c.summary]])]),B(`label`,null,[n[40]||=B(`span`,null,`通知正文(支持安全 HTML)`,-1),F(B(`textarea`,{"onUpdate:modelValue":n[5]||=e=>c.content=e,rows:`12`,required:``},null,512),[[G,c.content]])]),B(`label`,h_,[F(B(`input`,{"onUpdate:modelValue":n[6]||=e=>c.pinned=e,type:`checkbox`},null,512),[[us,c.pinned]]),n[41]||=H(` 在公开首页置顶`,-1)]),n[42]||=B(`button`,{class:`app-button app-button--primary`},`保存通知`,-1)],32),B(`section`,g_,[B(`header`,null,[B(`div`,null,[n[43]||=B(`h2`,null,`人工通知`,-1),B(`p`,null,O(e.data.notices?.length||0)+` 条`,1)])]),B(`div`,__,[B(`table`,null,[n[44]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`标题`),B(`th`,null,`分类`),B(`th`,null,`状态`),B(`th`,null,`置顶`),B(`th`,null,`操作`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(e.data.notices,e=>(R(),z(`tr`,{key:e.id},[B(`td`,null,[H(O(e.title),1),B(`small`,null,O(e.summary),1)]),B(`td`,null,O(e.category),1),B(`td`,null,[V($,{value:e.status},null,8,[`value`])]),B(`td`,null,O(e.pinned?`是`:`否`),1),B(`td`,null,[B(`button`,{class:`table-action`,onClick:t=>m(e)},`编辑`,8,v_),B(`button`,{class:`table-action`,onClick:t=>g(e)},O(e.status===`published`?`撤回`:`发布`),9,y_)])]))),128))])])])]),B(`section`,b_,[n[46]||=B(`header`,null,[B(`div`,null,[B(`h2`,null,`系统自动公示`),B(`p`,null,`业务事实不可编辑,只控制公开可见性。`)])],-1),B(`div`,x_,[B(`table`,null,[n[45]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`标题`),B(`th`,null,`类型`),B(`th`,null,`状态`),B(`th`,null,`公开`),B(`th`,null,`操作`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(e.data.publications,e=>(R(),z(`tr`,{key:e.id},[B(`td`,null,O(e.title),1),B(`td`,null,O(e.sourceType),1),B(`td`,null,[V($,{value:e.status},null,8,[`value`])]),B(`td`,null,O(e.publicVisible?`公开`:`隐藏`),1),B(`td`,null,[B(`button`,{class:`table-action`,onClick:t=>_(e)},O(e.publicVisible?`隐藏`:`公开`),9,S_)])]))),128))])])])])],64)):e.page===`centers`?(R(),z(L,{key:3},[n[80]||=B(`div`,{class:`excel-action-bar`},[B(`a`,{href:`/api/admin/excel/centers?template=1`},`下载考点模板`),B(`a`,{href:`/api/admin/excel/centers`},`导出考点档案`)],-1),B(`form`,{class:`business-form center-editor-vue`,onSubmit:q(x,[`prevent`])},[n[72]||=B(`p`,null,`CONTROLLED DOSSIER`,-1),n[73]||=B(`h2`,null,`提交新考点档案`,-1),n[74]||=B(`span`,null,`提交后进入考点考场变更审批,通过前不会改动正式档案。`,-1),N(Q).state.user?.adminLevel===`super`?(R(),z(`label`,C_,[n[48]||=B(`span`,null,`所属学校`,-1),F(B(`select`,{"onUpdate:modelValue":n[7]||=e=>l.schoolId=e,required:``},[n[47]||=B(`option`,{value:``},`请选择`,-1),(R(!0),z(L,null,I(e.data.schools,e=>(R(),z(`option`,{key:e.id,value:e.id},O(e.name),9,w_))),128))],512),[[K,l.schoolId]])])):U(``,!0),B(`div`,T_,[B(`label`,null,[n[49]||=B(`span`,null,`考点代码`,-1),F(B(`input`,{"onUpdate:modelValue":n[8]||=e=>l.code=e,required:``},null,512),[[G,l.code]])]),B(`label`,null,[n[50]||=B(`span`,null,`考点名称`,-1),F(B(`input`,{"onUpdate:modelValue":n[9]||=e=>l.name=e,required:``},null,512),[[G,l.name]])]),B(`label`,null,[n[52]||=B(`span`,null,`省份`,-1),F(B(`select`,{"onUpdate:modelValue":n[10]||=e=>l.provinceCode=e,required:``,onChange:n[11]||=e=>{l.cityCode=``,l.districtCode=``}},[n[51]||=B(`option`,{value:``},`请选择`,-1),(R(!0),z(L,null,I(N(of),e=>(R(),z(`option`,{key:e.code,value:e.code},O(e.name),9,E_))),128))],544),[[K,l.provinceCode]])]),B(`label`,null,[n[54]||=B(`span`,null,`城市`,-1),F(B(`select`,{"onUpdate:modelValue":n[12]||=e=>l.cityCode=e,required:``,disabled:!l.provinceCode,onChange:n[13]||=e=>l.districtCode=``},[n[53]||=B(`option`,{value:``},`请选择`,-1),(R(!0),z(L,null,I(d.value,e=>(R(),z(`option`,{key:e.code,value:e.code},O(e.name),9,O_))),128))],40,D_),[[K,l.cityCode]])]),B(`label`,null,[n[56]||=B(`span`,null,`区县`,-1),F(B(`select`,{"onUpdate:modelValue":n[14]||=e=>l.districtCode=e,required:``,disabled:!l.cityCode},[n[55]||=B(`option`,{value:``},`请选择`,-1),(R(!0),z(L,null,I(f.value,e=>(R(),z(`option`,{key:e.code,value:e.code},O(e.name),9,A_))),128))],8,k_),[[K,l.districtCode]])]),B(`label`,null,[n[57]||=B(`span`,null,`详细地址`,-1),F(B(`input`,{"onUpdate:modelValue":n[15]||=e=>l.address=e,required:``},null,512),[[G,l.address]])]),B(`label`,null,[n[58]||=B(`span`,null,`负责人`,-1),F(B(`input`,{"onUpdate:modelValue":n[16]||=e=>l.managerName=e},null,512),[[G,l.managerName]])]),B(`label`,null,[n[59]||=B(`span`,null,`负责人手机`,-1),F(B(`input`,{"onUpdate:modelValue":n[17]||=e=>l.managerPhone=e},null,512),[[G,l.managerPhone]])]),B(`label`,null,[n[60]||=B(`span`,null,`值班电话`,-1),F(B(`input`,{"onUpdate:modelValue":n[18]||=e=>l.contact=e},null,512),[[G,l.contact]])]),B(`label`,null,[n[61]||=B(`span`,null,`应急电话`,-1),F(B(`input`,{"onUpdate:modelValue":n[19]||=e=>l.emergencyPhone=e},null,512),[[G,l.emergencyPhone]])]),B(`label`,null,[n[62]||=B(`span`,null,`开放时间`,-1),F(B(`input`,{"onUpdate:modelValue":n[20]||=e=>l.gateOpenTime=e,type:`time`},null,512),[[G,l.gateOpenTime]])])]),B(`label`,null,[n[63]||=B(`span`,null,`交通与入场提示`,-1),F(B(`textarea`,{"onUpdate:modelValue":n[21]||=e=>l.transport=e},null,512),[[G,l.transport]])]),B(`section`,j_,[B(`header`,null,[n[64]||=B(`strong`,null,`考场明细`,-1),B(`button`,{type:`button`,onClick:v},`+ 添加考场`)]),(R(!0),z(L,null,I(l.rooms,(e,t)=>(R(),z(`article`,{key:t},[B(`div`,M_,[B(`label`,null,[n[65]||=B(`span`,null,`场地代码`,-1),F(B(`input`,{"onUpdate:modelValue":t=>e.code=t,required:``},null,8,N_),[[G,e.code]])]),B(`label`,null,[n[66]||=B(`span`,null,`考场名称`,-1),F(B(`input`,{"onUpdate:modelValue":t=>e.name=t,required:``},null,8,P_),[[G,e.name]])]),B(`label`,null,[n[67]||=B(`span`,null,`楼栋`,-1),F(B(`input`,{"onUpdate:modelValue":t=>e.building=t,required:``},null,8,F_),[[G,e.building]])]),B(`label`,null,[n[68]||=B(`span`,null,`楼层`,-1),F(B(`input`,{"onUpdate:modelValue":t=>e.floor=t},null,8,I_),[[G,e.floor]])]),B(`label`,null,[n[69]||=B(`span`,null,`容量`,-1),F(B(`input`,{"onUpdate:modelValue":t=>e.capacity=t,type:`number`,min:`1`,required:``},null,8,L_),[[G,e.capacity]])]),B(`label`,null,[n[71]||=B(`span`,null,`考场类型`,-1),F(B(`select`,{"onUpdate:modelValue":t=>e.roomType=t},[...n[70]||=[B(`option`,{value:`standard`},`标准考场`,-1),B(`option`,{value:`computer`},`机考考场`,-1),B(`option`,{value:`accessible`},`无障碍考场`,-1),B(`option`,{value:`spare`},`备用考场`,-1)]],8,R_),[[K,e.roomType]])])]),B(`button`,{type:`button`,onClick:e=>l.rooms.splice(t,1)},`移除`,8,z_)]))),128))]),n[75]||=B(`button`,{class:`app-button app-button--primary`},`提交审批`,-1)],32),B(`section`,B_,[B(`header`,null,[B(`div`,null,[n[76]||=B(`h2`,null,`正式考点与考场`,-1),B(`p`,null,O(e.data.centers?.length||0)+` 个考点`,1)])]),B(`div`,V_,[B(`table`,null,[n[77]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`考点`),B(`th`,null,`学校`),B(`th`,null,`地址`),B(`th`,null,`考场 / 席位`),B(`th`,null,`负责人`),B(`th`,null,`状态`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(e.data.centers,e=>(R(),z(`tr`,{key:e.id},[B(`td`,null,[H(O(e.name),1),B(`small`,null,O(e.code),1)]),B(`td`,null,O(e.schoolName),1),B(`td`,null,O(e.address),1),B(`td`,null,O(e.rooms?.length)+` 个 / `+O(e.totalCapacity)+` 席`,1),B(`td`,null,[H(O(e.managerName),1),B(`small`,null,O(e.managerPhone),1)]),B(`td`,null,[V($,{value:e.status},null,8,[`value`])])]))),128))])])])]),B(`section`,H_,[B(`header`,null,[B(`div`,null,[n[78]||=B(`h2`,null,`考点变更审批台账`,-1),B(`p`,null,O(e.data.changeRequests?.length||0)+` 条`,1)])]),B(`div`,U_,[B(`table`,null,[n[79]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`类型`),B(`th`,null,`考点 / 学校`),B(`th`,null,`考场`),B(`th`,null,`状态`),B(`th`,null,`审批`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(e.data.changeRequests,e=>(R(),z(`tr`,{key:e.id},[B(`td`,null,O(e.requestType===`create`?`新增`:`修改`),1),B(`td`,null,[H(O(e.name),1),B(`small`,null,O(e.schoolName),1)]),B(`td`,null,O(e.rooms?.length)+` 个`,1),B(`td`,null,[V($,{value:e.status},null,8,[`value`])]),B(`td`,null,[e.status===`pending`?(R(),z(`div`,W_,[F(B(`input`,{"onUpdate:modelValue":t=>s[e.id]=t,placeholder:`审批意见`},null,8,G_),[[G,s[e.id]]]),B(`button`,{onClick:t=>S(e,`rejected`)},`退回`,8,K_),B(`button`,{onClick:t=>S(e,`approved`)},`通过`,8,q_)])):U(``,!0)])]))),128))])])])])],64)):e.page===`flows`?(R(),z(L,{key:4},[B(`label`,J_,[n[81]||=B(`span`,null,`搜索流程`,-1),F(B(`input`,{"onUpdate:modelValue":n[22]||=e=>o.value=e,placeholder:`考生、学校、考试、责任人或流程`},null,512),[[G,o.value]])]),B(`section`,Y_,[(R(!0),z(L,null,I(e.data.instances?.filter(e=>!o.value||JSON.stringify(e).toLowerCase().includes(o.value.toLowerCase())),e=>(R(),z(`article`,{key:e.id,class:`record-panel flow-card-vue`},[B(`header`,null,[B(`div`,null,[B(`span`,null,O(e.businessType),1),B(`h2`,null,O(e.candidateName||e.centerName||e.schoolName||e.id),1),B(`p`,null,O(e.examName)+` `+O(e.className),1)]),V($,{value:e.status},null,8,[`value`])]),B(`div`,X_,[(R(!0),z(L,null,I(e.steps,t=>(R(),z(`span`,{key:t.position,class:_e({done:t.positions[e.id]=t,placeholder:`处理意见`},null,8,Z_),[[G,s[e.id]]])]),e.status===`pending`?(R(),z(`button`,{key:0,class:`table-action`,onClick:t=>T(e)},`转交`,8,Q_)):U(``,!0),e.status===`pending`?(R(),z(`button`,{key:1,class:`table-action`,onClick:t=>w(e,`rejected`)},`退回`,8,$_)):U(``,!0),e.status===`pending`?(R(),z(`button`,{key:2,class:`table-action`,onClick:t=>w(e,`approved`)},`通过`,8,ev)):U(``,!0)])]))),128))])],64)):e.page===`flow-design`?(R(),z(`section`,tv,[(R(!0),z(L,null,I(e.data.workflows,e=>(R(),z(`form`,{key:e.businessType,class:`business-form`,onSubmit:q(t=>ee(e),[`prevent`])},[B(`header`,null,[B(`div`,null,[B(`p`,null,O(e.businessType),1),B(`h2`,null,O(e.name),1)]),B(`button`,{type:`button`,class:`app-button`,onClick:t=>te(e)},`添加步骤`,8,rv)]),B(`label`,null,[n[82]||=B(`span`,null,`流程名称`,-1),F(B(`input`,{"onUpdate:modelValue":t=>e.name=t,required:``},null,8,iv),[[G,e.name]])]),(R(!0),z(L,null,I(e.steps,(t,r)=>(R(),z(`div`,{key:r,class:`workflow-step-row-vue`},[B(`b`,null,O(r+1),1),F(B(`input`,{"onUpdate:modelValue":e=>t.name=e,required:``},null,8,av),[[G,t.name]]),F(B(`select`,{"onUpdate:modelValue":e=>t.adminLevel=e},[...n[83]||=[B(`option`,{value:`class`},`班级管理员`,-1),B(`option`,{value:`school`},`校级管理员`,-1),B(`option`,{value:`super`},`超级管理员`,-1)]],8,ov),[[K,t.adminLevel]]),B(`button`,{type:`button`,onClick:t=>e.steps.splice(r,1)},`×`,8,sv)]))),128)),n[84]||=B(`button`,{class:`app-button app-button--primary`},`保存流程`,-1)],40,nv))),128))])):e.page===`number-rules`?(R(),z(L,{key:6},[n[97]||=B(`section`,{class:`account-number-principle-vue`},[B(`span`,null,`ONE CANDIDATE · ONE NUMBER`),B(`h2`,null,`超级管理员只设计号码规则`),B(`p`,null,`学校按班级提交申领,最终批准后系统才创建长期考生账户。`)],-1),B(`div`,cv,[B(`form`,{class:`business-form`,onSubmit:q(E,[`prevent`])},[n[93]||=B(`h2`,null,`报名号组成`,-1),B(`div`,lv,[B(`label`,null,[n[85]||=B(`span`,null,`规则名称`,-1),F(B(`input`,{"onUpdate:modelValue":n[23]||=e=>u.name=e,required:``},null,512),[[G,u.name]])]),B(`label`,null,[n[86]||=B(`span`,null,`分隔符`,-1),F(B(`input`,{"onUpdate:modelValue":n[24]||=e=>u.separator=e,maxlength:`3`},null,512),[[G,u.separator]])])]),B(`div`,uv,[B(`label`,null,[F(B(`input`,{"onUpdate:modelValue":n[25]||=e=>u.year=e,type:`checkbox`},null,512),[[us,u.year]]),n[87]||=H(` 年份 `,-1),F(B(`input`,{"onUpdate:modelValue":n[26]||=e=>u.yearWidth=e,type:`number`,min:`2`,max:`6`},null,512),[[G,u.yearWidth]])]),B(`label`,null,[F(B(`input`,{"onUpdate:modelValue":n[27]||=e=>u.school_code=e,type:`checkbox`},null,512),[[us,u.school_code]]),n[88]||=H(` 学校代码`,-1)]),B(`label`,null,[F(B(`input`,{"onUpdate:modelValue":n[28]||=e=>u.gender=e,type:`checkbox`},null,512),[[us,u.gender]]),n[89]||=H(` 性别 M/F/X`,-1)]),B(`label`,null,[F(B(`input`,{"onUpdate:modelValue":n[29]||=e=>u.literal=e,type:`checkbox`},null,512),[[us,u.literal]]),n[90]||=H(` 固定值 `,-1),F(B(`input`,{"onUpdate:modelValue":n[30]||=e=>u.literalValue=e},null,512),[[G,u.literalValue]])]),B(`label`,null,[n[91]||=B(`input`,{type:`checkbox`,checked:``,disabled:``},null,-1),n[92]||=H(` 流水号 `,-1),F(B(`input`,{"onUpdate:modelValue":n[31]||=e=>u.sequenceWidth=e,type:`number`,min:`1`,max:`12`},null,512),[[G,u.sequenceWidth]])])]),n[94]||=B(`button`,{class:`app-button app-button--primary`},`保存并启用规则`,-1)],32),B(`aside`,null,[n[95]||=B(`span`,null,`审批后账户样例`,-1),B(`strong`,null,O(e.data.preview||`2026-HZ01-X-0001`),1),n[96]||=B(`p`,null,`报名号创建后保持不变。`,-1)])])],64)):U(``,!0)]))}},fv={key:4,class:`page-state page-state--empty`},pv={__name:`AdminPage`,props:{page:{type:String,required:!0}},setup(e){let t=e,n=M(!0),r=M(``),i=M({}),a=new Set([`dashboard`,`schools`,`organization`,`admins`,`account-batches`,`candidates`,`indicator-qualifications`,`registrations`,`payments`,`security`]),o=new Set([`exams`,`admit`,`results`]),s=new Set([`admission-settings`,`admission-accounts`,`admission-plans`,`admission-reporting`,`admission-supervision`]),c=new Set([`notices`,`centers`,`flows`,`flow-design`,`number-rules`]),l=W(()=>({dashboard:[`考务工作台`,`掌握当前报名、审核和发布任务。`],schools:[`学校管理`,`创建和维护学校档案及公开状态。`],organization:[`本校组织与权限`,`维护本校班级和班级管理员。`],admins:[`分级管理员`,`维护管理员账号和权限范围。`],"account-batches":[`批量报名号申领`,`按班级提交申领人数并跟踪审批结果。`],candidates:[`考生资料审核`,`核验实名、学籍与联系信息。`],"indicator-qualifications":[`指标分配资格确认`,`由生源校逐人确认指标分配资格。`],registrations:[`考试报名审核`,`审核考试、科目和报名状态。`],payments:[`缴费名单`,`查看、导出并维护线下缴费状态。`],admit:[`准考证编排`,`查看或批量编排准考证。`],exams:[`考试与科目`,`创建考试并配置科目和时间。`],results:[`成绩管理中心`,`录入、发布并分析考试成绩。`],"admission-settings":[`录取设置`,`设置志愿窗口和录取阶段。`],"admission-accounts":[`招生学校账户`,`创建、停用和维护招生学校账户。`],"admission-plans":[`招生计划`,`审核招生计划并查看完成率。`],"admission-reporting":[`报到与补录`,`审批报到统计和补录决定。`],"admission-supervision":[`投档与退档监督`,`监督投档记录并审批特殊退档。`],notices:[`通知发布`,`维护草稿、发布通知和公开状态。`],centers:[`考务场所档案`,`管理考点、考场容量和变更申请。`],flows:[`流程中心`,`处理、转交或监督审批流程。`],"flow-design":[`流程设计`,`配置各类业务审批步骤。`],"number-rules":[`报名号规则`,`设计报名号组成和流水规则。`],security:[`账户安全`,`修改密码并管理二次验证。`]})[t.page]||[t.page,`管理当前业务数据。`]);function u(){return t.page===`admit`?`admission-arrangements`:t.page===`flows`?`workflow-instances`:t.page===`flow-design`?`workflows`:t.page===`account-batches`?`candidate-account-batches`:t.page===`organization`?`school-organization`:t.page.startsWith(`admission-`)?`admissions`:t.page}async function d(){n.value=!0,r.value=``;try{i.value=t.page===`security`?await X(`/api/auth/totp`):t.page===`results`?{exams:Q.state.publicData.exams||[],results:[],message:`请选择考试后加载成绩`}:await X(`/api/admin/${u()}`)}catch(e){r.value=e.message}finally{n.value=!1}}return Ln(()=>t.page,d),jr(d),(t,u)=>(R(),ga(af,{role:`admin`,page:e.page,title:l.value[0],description:l.value[1]},{default:P(()=>[V(Xu,{loading:n.value,error:r.value,onRetry:d},{default:P(()=>[N(a).has(e.page)?(R(),ga(qm,{key:0,page:e.page,data:i.value,onReload:d},null,8,[`page`,`data`])):N(o).has(e.page)?(R(),ga(ug,{key:1,page:e.page,data:i.value,onReload:d},null,8,[`page`,`data`])):N(s).has(e.page)?(R(),ga(s_,{key:2,page:e.page,data:i.value,onReload:d},null,8,[`page`,`data`])):N(c).has(e.page)?(R(),ga(dv,{key:3,page:e.page,data:i.value,onReload:d},null,8,[`page`,`data`])):(R(),z(`div`,fv,[...u[0]||=[B(`strong`,null,`页面配置不存在`,-1),B(`p`,null,`请从左侧导航重新选择业务页面。`,-1)]]))]),_:1},8,[`loading`,`error`])]),_:1},8,[`page`,`title`,`description`]))}},mv={class:`admission-command-banner`},hv={class:`admission-progress-grid`},gv={class:`admission-dashboard-grid`},_v={class:`record-panel`},vv={class:`record-panel`},yv=[`onClick`],bv=[`value`],xv={class:`plan-category-list`},Sv=[`onClick`],Cv={class:`form-grid`},wv=[`onUpdate:modelValue`],Tv=[`onUpdate:modelValue`],Ev=[`onUpdate:modelValue`,`onChange`],Dv={key:0},Ov=[`onUpdate:modelValue`,`onChange`],kv=[`value`],Av={key:1},jv=[`onUpdate:modelValue`,`disabled`],Mv=[`value`],Nv=[`onClick`],Pv=[`onUpdate:modelValue`],Fv=[`value`],Iv=[`onUpdate:modelValue`],Lv=[`onClick`],Rv=[`disabled`],zv={class:`record-panel admission-plan-history`},Bv={class:`table-scroll`},Vv={key:0,class:`admission-export-bar`},Hv=[`value`],Uv=[`href`],Wv={class:`record-panel ledger-panel`},Gv={class:`ledger-toolbar`},Kv=[`value`],qv={class:`ledger-bulk`},Jv={class:`table-scroll`},Yv=[`value`,`disabled`],Xv=[`onSubmit`],Zv=[`onUpdate:modelValue`],Qv=[`onUpdate:modelValue`],$v={key:1},ey={key:0},ty={class:`reporting-stat-strip`},ny={key:0,class:`reporting-tools`},ry=[`href`],iy={class:`app-button`},ay=[`onChange`],oy=[`onSubmit`],sy=[`onSubmit`],cy={class:`ledger-bulk`},ly=[`onClick`],uy=[`onClick`],dy={class:`table-scroll`},fy=[`onUpdate:modelValue`],py=[`onUpdate:modelValue`],my=[`onUpdate:modelValue`],hy=[`onClick`],gy=[`onSubmit`],_y={name:`supplement`},vy=[`disabled`],yy={key:4,class:`form-callout`},by={key:0,class:`page-state page-state--empty`},xy={key:4,class:`notice-template-studio`},Sy=[`value`],Cy={class:`form-grid`},wy={class:`form-grid`},Ty=[`disabled`],Ey={__name:`AdmissionPage`,props:{page:{type:String,required:!0}},setup(e){let t=e,n=Ls(),r=M(!0),i=M(!1),a=M(``),o=M({}),s=M(``),c=M(`all`),l=M(``),u=M([]),d=A({}),f=A({}),p=A({examId:``,code:``,preview:null,status:`reported`,note:``}),m=A({examId:``,note:``,categories:[]}),h=A({examId:``,eyebrow:`ADMISSION NOTICE`,title:`录 取 通 知 书`,body:``,footer:``,primaryColor:`#8d2028`,accentColor:`#c9a45b`}),g=W(()=>({dashboard:[`招生工作台`,`查看本校计划完成率、报到进度和待办事项。`],plans:[`本校招生计划`,`提交普通生、特长生计划及指标分配。`],placements:[`投档考生审核`,`核对投档考生资料和当次成绩。`],reporting:[`考生报到`,`暂存报到状态,支持 Excel 与通知书扫码核验。`],"notice-template":[`录取通知书模板`,`设计本校录取通知书标题、正文与配色。`]})[t.page]),_=W(()=>(o.value.placements||[]).filter(e=>{let t=`${e.candidate?.name||``} ${e.candidate?.registrationNumber||``} ${e.examName||``} ${e.payload?.categoryName||``} ${e.candidate?.specialtyLabel||``}`.toLowerCase();return(!s.value||t.includes(s.value.toLowerCase()))&&(c.value===`all`||e.status===c.value)&&(!l.value||e.examId===l.value)})),v=W(()=>[...new Map((o.value.placements||[]).map(e=>[e.examId,e.examName])).entries()]),y=W(()=>_.value.filter(e=>e.status===`school_review`&&u.value.includes(e.id))),b=W(()=>h.body.replaceAll(`{{考生姓名}}`,`张同学`).replaceAll(`{{考试名称}}`,`示例考试`).replaceAll(`{{录取学校}}`,o.value.school?.name||`本校`).replaceAll(`{{录取类别}}`,`普通生`));function x(){return{name:`普通生`,quota:``,kind:`general`,specialtyCategory:``,specialtyType:``,indicatorAllocations:[]}}function S(){m.categories.push(x())}function C(e){e.indicatorAllocations.push({sourceSchoolId:``,quota:``})}function w(e){e.specialtyCategory=``,e.specialtyType=``}async function T(){r.value=!0,a.value=``,s.value=``,c.value=`all`,l.value=``,u.value=[];try{o.value=await X(`/api/admission/${t.page===`dashboard`?`context`:t.page}`),ee()}catch(e){a.value=e.message}finally{r.value=!1}}function ee(){if(t.page===`plans`&&(m.examId=o.value.exams?.[0]?.id||``,m.note=``,m.categories=[x()]),t.page===`placements`)for(let e of o.value.placements||[])d[e.id]={decision:`accept`,note:``};if(t.page===`reporting`)for(let e of o.value.batches||[])for(let t of e.rows||[])f[t.placementId]={status:t.status,note:t.note||``,selected:!1};t.page===`notice-template`&&Object.assign(h,{examId:o.value.exams?.[0]?.id||``,eyebrow:o.value.template?.eyebrow||`ADMISSION NOTICE`,title:o.value.template?.title||`录 取 通 知 书`,body:o.value.template?.body||``,footer:o.value.template?.footer||``,primaryColor:o.value.template?.primaryColor||`#8d2028`,accentColor:o.value.template?.accentColor||`#c9a45b`})}async function te(e,t){i.value=!0,a.value=``;try{await e(),t&&Y.notify(t),await T()}catch(e){a.value=e.message}finally{i.value=!1}}function E(){let e=m.categories.map((e,t)=>({code:`category_${t+1}`,name:String(e.name).trim(),quota:Number(e.quota||0),isSpecialty:e.kind===`specialty`,specialtyCategory:e.kind===`specialty`?e.specialtyCategory:``,specialtyType:e.kind===`specialty`?e.specialtyType:``,indicatorAllocations:e.indicatorAllocations.map(e=>({sourceSchoolId:e.sourceSchoolId,quota:Number(e.quota||0)})).filter(e=>e.sourceSchoolId&&e.quota>0)})).filter(e=>e.name&&e.quota>0);if(!e.length){a.value=`请至少添加一个有效招生类别`;return}if(e.some(e=>e.isSpecialty&&(!e.specialtyCategory||!e.specialtyType))){a.value=`特长生类别必须填写特长大类和小类`;return}te(()=>X(`/api/admission/plans`,{method:`POST`,body:{examId:m.examId,note:m.note,categories:e}}),`招生计划已提交审核`)}function ne(e){let t=d[e.id];if(t.decision===`withdraw`&&t.note.trim().length<8){a.value=`申请退档须填写至少 8 个字的特殊理由`;return}te(()=>X(`/api/admission/placements/${e.id}`,{method:`PATCH`,body:t}),t.decision===`accept`?`已接收投档考生`:`退档申请已提交`)}function re(e){if(!y.value.length){a.value=`请先选择待审核考生`;return}let t=``;if(e===`withdraw`){if(t=window.prompt(`为所选 ${y.value.length} 名考生填写统一退档理由(至少 8 个字)`,``)||``,!t)return;if(t.trim().length<8){a.value=`退档理由至少需要 8 个字`;return}}else if(!window.confirm(`确认接收所选 ${y.value.length} 名投档考生吗?`))return;te(()=>X(`/api/admission/placements/bulk`,{method:`POST`,body:{ids:y.value.map(e=>e.id),decision:e,note:t}}),e===`accept`?`批量接收完成`:`批量退档申请已提交`)}function ie(e){let t=_.value.filter(e=>e.status===`school_review`).map(e=>e.id);u.value=e?[...new Set([...u.value,...t])]:u.value.filter(e=>!t.includes(e))}function ae(e){let t=e.rows.map(e=>({placementId:e.placementId,status:f[e.placementId].status,note:f[e.placementId].note}));te(()=>X(`/api/admission/reporting/draft`,{method:`PUT`,body:{examId:e.exam.id,rows:t}}),`报到状态已暂存`)}function oe(e,t){for(let n of e.rows)f[n.placementId]?.selected&&(f[n.placementId].status=t)}function se(e){window.confirm(`确认正式提交“${e.exam.name}”全部报到情况吗?提交后将不能继续编辑。`)&&te(()=>X(`/api/admission/reporting/submit`,{method:`POST`,body:{examId:e.exam.id}}),`报到情况已正式提交`)}function D(e,t){let n=new FormData(t.currentTarget);te(()=>X(`/api/admission/reporting/decision`,{method:`POST`,body:{examId:e.exam.id,supplement:n.get(`supplement`)===`true`,decisionNote:n.get(`decisionNote`)}}),`学校补录决定已提交`)}async function ce(e,t){let n=t.target.files?.[0];if(n){i.value=!0,a.value=``;try{let t=await X(`/api/admission/reporting/import?examId=${encodeURIComponent(e.exam.id)}`,{method:`POST`,headers:{"Content-Type":`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`},body:await n.arrayBuffer()});Y.notify(`Excel 已导入暂存`,`读取 ${t.count||0} 行,更新 ${t.changedCount||0} 人`),await T()}catch(e){a.value=e.message}finally{i.value=!1,t.target.value=``}}}function le(e){p.examId=e.exam.id,te(async()=>{p.preview=await X(`/api/admission/reporting/scan-preview`,{method:`POST`,body:{code:p.code,examId:e.exam.id}})},`通知书核验通过`)}async function ue(){i.value=!0,a.value=``;try{await X(`/api/admission/reporting/scan`,{method:`POST`,body:{examId:p.examId,code:p.code,status:p.status,note:p.note}}),Object.assign(p,{examId:``,code:``,preview:null,status:`reported`,note:``}),Y.notify(`扫码结果已暂存`),await T()}catch(e){a.value=e.message}finally{i.value=!1}}function de(){te(()=>X(`/api/admission/notice-template`,{method:`PUT`,body:h}),`录取通知书模板已保存`)}return Ln(()=>t.page,T),jr(T),(t,x)=>(R(),ga(af,{role:`admission_school`,page:e.page,title:g.value[0],description:g.value[1]},{default:P(()=>[V(Xu,{loading:r.value,error:a.value,onRetry:T},{default:P(()=>[e.page===`dashboard`?(R(),z(L,{key:0},[B(`section`,mv,[B(`div`,null,[x[24]||=B(`span`,null,`ADMISSION OFFICE`,-1),B(`h2`,null,O(o.value.school?.name),1),x[25]||=B(`p`,null,`学校只接收超级管理员正式投档的数据,不可查看考生完整志愿表。`,-1)])]),B(`section`,hv,[(R(!0),z(L,null,I(o.value.plans,e=>(R(),z(`article`,{key:e.examId},[B(`header`,null,[B(`span`,null,O(e.examName),1),B(`strong`,null,O(e.progress?.admissionRate||0)+`%`,1)]),B(`div`,null,[B(`i`,{style:fe({width:`${Math.min(100,e.progress?.admissionRate||0)}%`})},null,4)]),B(`p`,null,`计划 `+O(e.progress?.totalQuota||0)+` 人 · 正式录取 `+O(e.progress?.finalCount||0)+` 人 · 已报到 `+O(e.progress?.reportedCount||0)+` 人`,1),B(`small`,null,`实际报到完成率 `+O(e.progress?.reportingRate||0)+`%`,1)]))),128))]),B(`div`,gv,[B(`section`,_v,[B(`header`,null,[B(`div`,null,[x[26]||=B(`h2`,null,`本校工作入口`,-1),B(`p`,null,O(o.value.exams?.length||0)+` 场考试已启用招生`,1)])]),B(`button`,{class:`dashboard-row`,onClick:x[0]||=e=>N(n).push(`/admission/plans`)},[...x[27]||=[B(`b`,null,`计`,-1),B(`span`,null,[B(`strong`,null,`上传招生计划`),B(`small`,null,`类别、特长资格与指标分配`)],-1),B(`i`,null,`→`,-1)]]),B(`button`,{class:`dashboard-row`,onClick:x[1]||=e=>N(n).push(`/admission/placements`)},[...x[28]||=[B(`b`,null,`审`,-1),B(`span`,null,[B(`strong`,null,`审核投档考生`),B(`small`,null,`接收或申请特殊退档`)],-1),B(`i`,null,`→`,-1)]]),B(`button`,{class:`dashboard-row`,onClick:x[2]||=e=>N(n).push(`/admission/reporting`)},[...x[29]||=[B(`b`,null,`到`,-1),B(`span`,null,[B(`strong`,null,`登记考生报到`),B(`small`,null,`台账、Excel 与通知书核验`)],-1),B(`i`,null,`→`,-1)]])]),B(`section`,vv,[B(`header`,null,[B(`div`,null,[x[30]||=B(`h2`,null,`系统通知`,-1),B(`p`,null,O(o.value.notifications?.length||0)+` 条`,1)])]),(R(!0),z(L,null,I(o.value.notifications,e=>(R(),z(`button`,{key:e.id,class:`dashboard-row`,onClick:t=>N(n).push(`/announcements/${e.id}`)},[B(`time`,null,O(N(Rl)(e.publishAt)),1),B(`span`,null,[B(`strong`,null,O(e.title),1)]),x[31]||=B(`i`,null,`→`,-1)],8,yv))),128))])])],64)):e.page===`plans`?(R(),z(L,{key:1},[B(`form`,{class:`business-form admission-plan-form`,onSubmit:q(E,[`prevent`])},[x[44]||=B(`header`,null,[B(`div`,null,[B(`p`,null,`PLAN SUBMISSION`),B(`h2`,null,`提交本校招生计划`),B(`span`,null,`提交后由超级管理员审核;各类别指标合计不得超过该类别计划人数。`)])],-1),B(`label`,null,[x[32]||=B(`span`,null,`招生考试`,-1),F(B(`select`,{"onUpdate:modelValue":x[3]||=e=>m.examId=e,required:``},[(R(!0),z(L,null,I(o.value.exams,e=>(R(),z(`option`,{key:e.id,value:e.id},O(e.code)+` · `+O(e.name),9,bv))),128))],512),[[K,m.examId]])]),B(`div`,xv,[(R(!0),z(L,null,I(m.categories,(e,t)=>(R(),z(`article`,{key:t,class:`plan-category-card`},[B(`header`,null,[B(`strong`,null,`招生类别 `+O(t+1),1),B(`button`,{type:`button`,onClick:e=>m.categories.splice(t,1)},`移除`,8,Sv)]),B(`div`,Cv,[B(`label`,null,[x[33]||=B(`span`,null,`类别名称`,-1),F(B(`input`,{"onUpdate:modelValue":t=>e.name=t,required:``,placeholder:`例如:普通生`},null,8,wv),[[G,e.name]])]),B(`label`,null,[x[34]||=B(`span`,null,`计划人数`,-1),F(B(`input`,{"onUpdate:modelValue":t=>e.quota=t,type:`number`,min:`1`,required:``},null,8,Tv),[[G,e.quota]])]),B(`label`,null,[x[36]||=B(`span`,null,`类别性质`,-1),F(B(`select`,{"onUpdate:modelValue":t=>e.kind=t,onChange:t=>w(e)},[...x[35]||=[B(`option`,{value:`general`},`普通 / 政策类`,-1),B(`option`,{value:`specialty`},`特长生`,-1)]],40,Ev),[[K,e.kind]])]),e.kind===`specialty`?(R(),z(`label`,Dv,[x[38]||=B(`span`,null,`特长大类`,-1),F(B(`select`,{"onUpdate:modelValue":t=>e.specialtyCategory=t,required:``,onChange:t=>e.specialtyType=``},[x[37]||=B(`option`,{value:``},`请选择`,-1),(R(!0),z(L,null,I(N(sf),e=>(R(),z(`option`,{key:e.code,value:e.code},O(e.name),9,kv))),128))],40,Ov),[[K,e.specialtyCategory]])])):U(``,!0),e.kind===`specialty`?(R(),z(`label`,Av,[x[40]||=B(`span`,null,`特长项目`,-1),F(B(`select`,{"onUpdate:modelValue":t=>e.specialtyType=t,required:``,disabled:!e.specialtyCategory},[x[39]||=B(`option`,{value:``},`请选择`,-1),(R(!0),z(L,null,I(N(cf)(e.specialtyCategory),e=>(R(),z(`option`,{key:e[0],value:e[0]},O(e[1]),9,Mv))),128))],8,jv),[[K,e.specialtyType]])])):U(``,!0)]),B(`section`,null,[B(`header`,null,[x[41]||=B(`div`,null,[B(`strong`,null,`生源校指标`),B(`small`,null,`仅填写需要定向分配的学校`)],-1),B(`button`,{type:`button`,onClick:t=>C(e)},`添加指标`,8,Nv)]),(R(!0),z(L,null,I(e.indicatorAllocations,(t,n)=>(R(),z(`div`,{key:n,class:`allocation-row`},[F(B(`select`,{"onUpdate:modelValue":e=>t.sourceSchoolId=e},[x[42]||=B(`option`,{value:``},`选择生源学校`,-1),(R(!0),z(L,null,I(o.value.sourceSchools,e=>(R(),z(`option`,{key:e.id,value:e.id},O(e.code)+` · `+O(e.name),9,Fv))),128))],8,Pv),[[K,t.sourceSchoolId]]),F(B(`input`,{"onUpdate:modelValue":e=>t.quota=e,type:`number`,min:`1`,placeholder:`名额`},null,8,Iv),[[G,t.quota]]),B(`button`,{type:`button`,onClick:t=>e.indicatorAllocations.splice(n,1)},`移除`,8,Lv)]))),128))])]))),128))]),B(`button`,{class:`app-button`,type:`button`,onClick:S},`+ 添加招生类别`),B(`label`,null,[x[43]||=B(`span`,null,`计划说明`,-1),F(B(`textarea`,{"onUpdate:modelValue":x[4]||=e=>m.note=e,rows:`3`,placeholder:`政策依据或补充说明`},null,512),[[G,m.note]])]),B(`button`,{class:`app-button app-button--primary`,disabled:i.value},`提交超级管理员审核`,8,Rv)],32),B(`section`,zv,[x[46]||=B(`header`,null,[B(`div`,null,[B(`h2`,null,`提交记录`),B(`p`,null,`本校历次计划及实时完成率`)])],-1),B(`div`,Bv,[B(`table`,null,[x[45]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`考试`),B(`th`,null,`类别计划`),B(`th`,null,`完成进度`),B(`th`,null,`状态`),B(`th`,null,`审核意见`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(o.value.plans,e=>(R(),z(`tr`,{key:e.id},[B(`td`,null,O(o.value.exams?.find(t=>t.id===e.examId)?.name||e.examId),1),B(`td`,null,[(R(!0),z(L,null,I(e.payload?.categories,e=>(R(),z(`span`,{key:e.code,class:`table-stack`},[B(`strong`,null,O(e.name)+` `+O(e.quota)+` 人`,1),B(`small`,null,O(e.isSpecialty?`特长生`:`普通 / 政策类`),1)]))),128))]),B(`td`,null,[B(`strong`,null,O(e.progress?.admissionRate||0)+`%`,1),B(`small`,null,`录取 `+O(e.progress?.finalCount||0)+` / `+O(e.progress?.totalQuota||0),1)]),B(`td`,null,[V($,{value:e.status},null,8,[`value`])]),B(`td`,null,O(e.payload?.reviewNote||`等待审核`),1)]))),128))])])])])],64)):e.page===`placements`?(R(),z(L,{key:2},[o.value.completedExams?.length?(R(),z(`section`,Vv,[x[48]||=B(`div`,null,[B(`span`,null,`FINAL ROSTER`),B(`strong`,null,`正式录取考生信息`),B(`small`,null,`仅录取工作结束后开放下载。`)],-1),F(B(`select`,{"onUpdate:modelValue":x[5]||=e=>l.value=e},[x[47]||=B(`option`,{value:``},`选择已完成考试`,-1),(R(!0),z(L,null,I(o.value.completedExams,e=>(R(),z(`option`,{key:e.id,value:e.id},O(e.name),9,Hv))),128))],512),[[K,l.value]]),B(`a`,{class:_e([`app-button app-button--primary`,{disabled:!l.value}]),href:`/api/admission/placements/export?examId=${encodeURIComponent(l.value)}`},`下载 Excel`,10,Uv)])):U(``,!0),B(`section`,Wv,[B(`header`,null,[B(`div`,null,[x[49]||=B(`h2`,null,`本校投档审核台账`,-1),B(`p`,null,O(o.value.placements?.filter(e=>e.status===`school_review`).length||0)+` 人待审核 / 共 `+O(o.value.placements?.length||0)+` 人`,1)])]),B(`div`,Gv,[F(B(`input`,{"onUpdate:modelValue":x[6]||=e=>s.value=e,placeholder:`搜索姓名、报名号、考试、类别或资格`},null,512),[[G,s.value]]),F(B(`select`,{"onUpdate:modelValue":x[7]||=e=>l.value=e},[x[50]||=B(`option`,{value:``},`全部考试`,-1),(R(!0),z(L,null,I(v.value,([e,t])=>(R(),z(`option`,{key:e,value:e},O(t),9,Kv))),128))],512),[[K,l.value]]),F(B(`select`,{"onUpdate:modelValue":x[8]||=e=>c.value=e},[...x[51]||=[B(`option`,{value:`all`},`全部状态`,-1),B(`option`,{value:`school_review`},`待学校审核`,-1),B(`option`,{value:`admitted`},`已接收`,-1),B(`option`,{value:`withdrawal_pending`},`退档待审`,-1),B(`option`,{value:`final`},`正式录取`,-1)]],512),[[K,c.value]])]),B(`div`,qv,[B(`label`,null,[B(`input`,{type:`checkbox`,onChange:x[9]||=e=>ie(e.target.checked)},null,32),x[52]||=H(`选择当前筛选结果中的待审核考生`,-1)]),B(`strong`,null,`已选 `+O(y.value.length)+` 人`,1),B(`button`,{class:`app-button`,onClick:x[10]||=e=>re(`withdraw`)},`批量申请退档`),B(`button`,{class:`app-button app-button--primary`,onClick:x[11]||=e=>re(`accept`)},`批量接收`)]),B(`div`,Jv,[B(`table`,null,[x[56]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`选择`),B(`th`,null,`考生 / 考试`),B(`th`,null,`资格`),B(`th`,null,`当次成绩`),B(`th`,null,`投档类别`),B(`th`,null,`状态`),B(`th`,null,`审核`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(_.value,e=>(R(),z(`tr`,{key:e.id},[B(`td`,null,[F(B(`input`,{"onUpdate:modelValue":x[12]||=e=>u.value=e,type:`checkbox`,value:e.id,disabled:e.status!==`school_review`},null,8,Yv),[[us,u.value]])]),B(`td`,null,[B(`strong`,null,O(e.candidate?.name),1),B(`small`,null,O(e.candidate?.registrationNumber)+` · `+O(e.candidate?.idNumberMasked),1),B(`small`,null,O(e.examName),1)]),B(`td`,null,[H(O(e.candidate?.specialtyLabel||`普通生`),1),B(`small`,null,O(e.candidate?.policyEligibility),1)]),B(`td`,null,[(R(!0),z(L,null,I(e.results,e=>(R(),z(`span`,{key:e.subjectId,class:`table-stack`},O(e.subjectName)+` `+O(e.score),1))),128)),B(`strong`,null,`投档分 `+O(e.payload?.totalScore)+` · 特征分 `+O(e.featureScore||0),1)]),B(`td`,null,[H(O(e.payload?.categoryName),1),B(`small`,null,`第 `+O(e.payload?.preferenceOrder)+` 志愿`,1)]),B(`td`,null,[V($,{value:e.status},null,8,[`value`])]),B(`td`,null,[e.status===`school_review`?(R(),z(`form`,{key:0,class:`row-review-form`,onSubmit:q(t=>ne(e),[`prevent`])},[F(B(`select`,{"onUpdate:modelValue":t=>d[e.id].decision=t},[...x[53]||=[B(`option`,{value:`accept`},`接收`,-1),B(`option`,{value:`withdraw`},`申请退档`,-1)]],8,Zv),[[K,d[e.id].decision]]),F(B(`input`,{"onUpdate:modelValue":t=>d[e.id].note=t,placeholder:`退档理由至少 8 字`},null,8,Qv),[[G,d[e.id].note]]),x[54]||=B(`button`,null,`确认`,-1)],40,Xv)):(R(),z(`small`,$v,O(e.payload?.schoolDecisionNote||`已处理`),1))])]))),128)),_.value.length?U(``,!0):(R(),z(`tr`,ey,[...x[55]||=[B(`td`,{colspan:`7`},`没有符合条件的记录`,-1)]]))])])])])],64)):e.page===`reporting`?(R(),z(L,{key:3},[(R(!0),z(L,null,I(o.value.batches,e=>(R(),z(`section`,{key:`${e.exam.id}-${e.round}`,class:`reporting-workbench`},[B(`header`,null,[B(`div`,null,[B(`span`,null,O(e.exam.code)+` · 第 `+O(e.round)+` 轮`,1),B(`h2`,null,O(e.exam.name),1),B(`p`,null,`计划 `+O(e.progress?.totalQuota)+` 人,正式录取 `+O(e.progress?.finalCount)+` 人,已报到 `+O(e.progress?.reportedCount)+` 人。`,1)]),B(`strong`,null,[H(O(e.progress?.reportingRate||0)+`%`,1),x[57]||=B(`small`,null,`计划报到完成率`,-1)])]),B(`div`,ty,[B(`span`,null,[x[58]||=H(`正式录取 `,-1),B(`b`,null,O(e.progress?.finalCount),1)]),B(`span`,null,[x[59]||=H(`已报到 `,-1),B(`b`,null,O(e.progress?.reportedCount),1)]),B(`span`,null,[x[60]||=H(`未报到 `,-1),B(`b`,null,O(e.progress?.notReportedCount),1)]),B(`span`,null,[x[61]||=H(`计划缺额 `,-1),B(`b`,null,O(e.progress?.reportingGap),1)]),V($,{value:e.status},null,8,[`value`])]),[`draft`,`rejected`].includes(e.status)?(R(),z(`section`,ny,[B(`div`,null,[x[63]||=B(`strong`,null,`Excel 批量维护`,-1),x[64]||=B(`small`,null,`导入只暂存,不会直接提交。`,-1),B(`span`,null,[B(`a`,{class:`app-button`,href:`/api/admission/reporting/export?examId=${encodeURIComponent(e.exam.id)}`},`导出 Excel`,8,ry),B(`label`,iy,[x[62]||=H(`导入暂存`,-1),B(`input`,{type:`file`,accept:`.xlsx`,hidden:``,onChange:t=>ce(e,t)},null,40,ay)])])]),B(`form`,{onSubmit:q(t=>le(e),[`prevent`])},[x[65]||=B(`strong`,null,`通知书二维码核验`,-1),x[66]||=B(`small`,null,`粘贴 AN 防伪码或二维码链接,核对身份后再暂存。`,-1),F(B(`input`,{"onUpdate:modelValue":x[13]||=e=>p.code=e,required:``,placeholder:`AN 防伪码或二维码链接`},null,512),[[G,p.code]]),x[67]||=B(`button`,{class:`app-button`},`核验`,-1)],40,oy)])):U(``,!0),p.preview&&p.examId===e.exam.id?(R(),z(`form`,{key:1,class:`scan-preview`,onSubmit:q(ue,[`prevent`])},[B(`header`,null,[x[68]||=B(`div`,null,[B(`span`,null,`NOTICE VERIFIED`),B(`h3`,null,`核对考生报到信息`)],-1),B(`button`,{type:`button`,onClick:x[14]||=e=>p.preview=null},`关闭`)]),B(`dl`,null,[B(`div`,null,[x[69]||=B(`dt`,null,`考生`,-1),B(`dd`,null,O(p.preview.row?.name),1)]),B(`div`,null,[x[70]||=B(`dt`,null,`报名号`,-1),B(`dd`,null,O(p.preview.row?.candidateNumber),1)]),B(`div`,null,[x[71]||=B(`dt`,null,`通知书`,-1),B(`dd`,null,O(p.preview.row?.noticeNumber),1)]),B(`div`,null,[x[72]||=B(`dt`,null,`录取类别`,-1),B(`dd`,null,O(p.preview.row?.categoryName),1)])]),F(B(`select`,{"onUpdate:modelValue":x[15]||=e=>p.status=e},[...x[73]||=[B(`option`,{value:`reported`},`Y · 已报到`,-1),B(`option`,{value:`not_reported`},`N · 未报到`,-1),B(`option`,{value:`pending`},`P · 待确认`,-1)]],512),[[K,p.status]]),F(B(`input`,{"onUpdate:modelValue":x[16]||=e=>p.note=e,placeholder:`报到备注`},null,512),[[G,p.note]]),x[74]||=B(`button`,{class:`app-button app-button--primary`},`确认并暂存`,-1)],32)):U(``,!0),[`draft`,`rejected`].includes(e.status)?(R(),z(`form`,{key:2,onSubmit:q(t=>ae(e),[`prevent`])},[B(`div`,cy,[x[75]||=B(`strong`,null,`本轮报到台账`,-1),B(`button`,{type:`button`,class:`app-button`,onClick:t=>oe(e,`reported`)},`所选设为已报到`,8,ly),B(`button`,{type:`button`,class:`app-button`,onClick:t=>oe(e,`not_reported`)},`所选设为未报到`,8,uy)]),B(`div`,dy,[B(`table`,null,[x[77]||=B(`thead`,null,[B(`tr`,null,[B(`th`,null,`选择`),B(`th`,null,`考生`),B(`th`,null,`通知书 / 类别`),B(`th`,null,`状态`),B(`th`,null,`备注`)])],-1),B(`tbody`,null,[(R(!0),z(L,null,I(e.rows,e=>(R(),z(`tr`,{key:e.placementId},[B(`td`,null,[F(B(`input`,{"onUpdate:modelValue":t=>f[e.placementId].selected=t,type:`checkbox`},null,8,fy),[[us,f[e.placementId].selected]])]),B(`td`,null,[B(`strong`,null,O(e.name),1),B(`small`,null,O(e.candidateNumber),1)]),B(`td`,null,[B(`strong`,null,O(e.noticeNumber),1),B(`small`,null,O(e.categoryName),1)]),B(`td`,null,[F(B(`select`,{"onUpdate:modelValue":t=>f[e.placementId].status=t},[...x[76]||=[B(`option`,{value:`pending`},`P · 待确认`,-1),B(`option`,{value:`reported`},`Y · 已报到`,-1),B(`option`,{value:`not_reported`},`N · 未报到`,-1)]],8,py),[[K,f[e.placementId].status]])]),B(`td`,null,[F(B(`input`,{"onUpdate:modelValue":t=>f[e.placementId].note=t,placeholder:`选填报到备注`},null,8,my),[[G,f[e.placementId].note]])])]))),128))])])]),B(`footer`,null,[x[78]||=B(`button`,{class:`app-button`},`暂存全部状态`,-1),B(`button`,{class:`app-button app-button--primary`,type:`button`,onClick:t=>se(e)},`正式提交报到情况`,8,hy)])],40,sy)):e.status===`submitted`?(R(),z(`form`,{key:3,class:`reporting-decision`,onSubmit:q(t=>D(e,t),[`prevent`])},[x[80]||=B(`div`,null,[B(`strong`,null,`报到情况已提交`),B(`p`,null,`请选择是否申请补录,学校决定将提交超级管理员审批。`)],-1),B(`select`,_y,[x[79]||=B(`option`,{value:`false`},`不进行补录`,-1),B(`option`,{value:`true`,disabled:!e.progress?.reportingGap},`申请补录 `+O(e.progress?.reportingGap)+` 人`,9,vy)]),x[81]||=B(`input`,{name:`decisionNote`,placeholder:`补录原因或不补录说明`},null,-1),x[82]||=B(`button`,{class:`app-button app-button--primary`},`提交学校决定`,-1)],40,gy)):(R(),z(`div`,yy,[x[83]||=B(`strong`,null,`当前批次已锁定`,-1),B(`p`,null,O(e.approvalNote||e.decisionNote||`等待下一步处理`),1)]))]))),128)),o.value.batches?.length?U(``,!0):(R(),z(`div`,by,[...x[84]||=[B(`strong`,null,`暂无报到批次`,-1),B(`p`,null,`正式录取签发并开启报到后,本页会生成台账。`,-1)]]))],64)):e.page===`notice-template`?(R(),z(`section`,xy,[B(`form`,{class:`business-form`,onSubmit:q(de,[`prevent`])},[x[92]||=B(`p`,null,`TEMPLATE STUDIO`,-1),x[93]||=B(`h2`,null,`模板设计`,-1),x[94]||=B(`span`,null,`正文支持:{{考生姓名}}、{{考试名称}}、{{录取学校}}、{{录取类别}}`,-1),B(`label`,null,[x[85]||=B(`span`,null,`适用考试`,-1),F(B(`select`,{"onUpdate:modelValue":x[17]||=e=>h.examId=e},[(R(!0),z(L,null,I(o.value.exams,e=>(R(),z(`option`,{key:e.id,value:e.id},O(e.name),9,Sy))),128))],512),[[K,h.examId]])]),B(`div`,Cy,[B(`label`,null,[x[86]||=B(`span`,null,`英文眉题`,-1),F(B(`input`,{"onUpdate:modelValue":x[18]||=e=>h.eyebrow=e,maxlength:`60`},null,512),[[G,h.eyebrow]])]),B(`label`,null,[x[87]||=B(`span`,null,`中文主标题`,-1),F(B(`input`,{"onUpdate:modelValue":x[19]||=e=>h.title=e,maxlength:`80`,required:``},null,512),[[G,h.title]])])]),B(`label`,null,[x[88]||=B(`span`,null,`通知书正文`,-1),F(B(`textarea`,{"onUpdate:modelValue":x[20]||=e=>h.body=e,rows:`9`,maxlength:`1600`,required:``},null,512),[[G,h.body]])]),B(`label`,null,[x[89]||=B(`span`,null,`页脚说明`,-1),F(B(`textarea`,{"onUpdate:modelValue":x[21]||=e=>h.footer=e,rows:`3`,maxlength:`300`},null,512),[[G,h.footer]])]),B(`div`,wy,[B(`label`,null,[x[90]||=B(`span`,null,`学校主色`,-1),F(B(`input`,{"onUpdate:modelValue":x[22]||=e=>h.primaryColor=e,type:`color`},null,512),[[G,h.primaryColor]])]),B(`label`,null,[x[91]||=B(`span`,null,`强调色`,-1),F(B(`input`,{"onUpdate:modelValue":x[23]||=e=>h.accentColor=e,type:`color`},null,512),[[G,h.accentColor]])])]),B(`button`,{class:`app-button app-button--primary`,disabled:i.value},`保存并启用模板`,8,Ty)],32),B(`article`,{class:`notice-template-preview`,style:fe({"--template-primary":h.primaryColor,"--template-accent":h.accentColor})},[B(`div`,null,[B(`small`,null,O(h.eyebrow),1),B(`h2`,null,O(h.title),1),B(`h3`,null,O(o.value.school?.name),1),x[95]||=B(`em`,null,`通知书编号:AD01-EX-2026-ZK-000001`,-1),x[96]||=B(`strong`,null,`张同学:`,-1),B(`p`,null,O(b.value),1),B(`footer`,null,[B(`span`,null,O(h.footer),1),B(`b`,null,O(o.value.school?.name),1)]),x[97]||=B(`i`,null,`防伪二维码`,-1)]),x[98]||=B(`p`,null,`右侧为 A4 通知书预览;正式件会自动写入编号、防伪查询码与二维码。`,-1)],4)])):U(``,!0)]),_:1},8,[`loading`,`error`])]),_:1},8,[`page`,`title`,`description`]))}},Dy={class:`route-message`},Oy={__name:`NotFoundView`,setup(e){let t=Ls();return(e,n)=>(R(),z(`main`,Dy,[n[1]||=B(`span`,null,`404`,-1),n[2]||=B(`h1`,null,`没有找到这个页面`,-1),n[3]||=B(`p`,null,`地址可能已经调整。你可以返回首页,或从业务中心重新进入。`,-1),B(`button`,{type:`button`,onClick:n[0]||=e=>N(t).push(`/`)},`返回首页`)]))}},ky=[[`onboarding`,`首次登录`],[`dashboard`,`总览`],[`profile`,`个人资料`],[`exams`,`考试报名`],[`registrations`,`我的报名`],[`admit`,`准考证`],[`results`,`成绩查询`],[`admissions`,`志愿与录取`],[`notices`,`通知公告`],[`security`,`账户安全`]],Ay=[[`dashboard`,`考务工作台`],[`schools`,`学校管理`],[`organization`,`本校组织`],[`admins`,`管理员`],[`account-batches`,`批量建号`],[`candidates`,`考生信息`],[`indicator-qualifications`,`指标资格确认`],[`registrations`,`报名审核`],[`payments`,`缴费名单`],[`admit`,`准考证编排`],[`exams`,`考试与科目`],[`results`,`成绩管理`],[`admission-settings`,`录取设置`],[`admission-accounts`,`招生账户`],[`admission-plans`,`招生计划`],[`admission-reporting`,`报到与补录`],[`admission-supervision`,`投档监督`],[`notices`,`通知发布`],[`centers`,`考场信息`],[`flows`,`流程中心`],[`flow-design`,`流程设计`],[`number-rules`,`报名号规则`],[`security`,`账户安全`]],jy=[[`dashboard`,`招生工作台`],[`plans`,`招生计划`],[`placements`,`投档审核`],[`reporting`,`考生报到`],[`notice-template`,`通知书模板`]],My=[{path:`/`,name:`home`,component:Pu,meta:{public:!0,title:`首页`}},{path:`/announcements`,name:`announcements`,component:ud,meta:{public:!0,title:`通知公告`}},{path:`/announcements/:id`,name:`announcement-detail`,component:xd,meta:{public:!0,title:`公告详情`}},{path:`/verify/:code?`,name:`verification`,component:Dd,meta:{public:!0,title:`文书防伪查询`}},{path:`/auth/login`,name:`login`,component:Hd,props:{mode:`login`},meta:{public:!0,guest:!0,title:`登录`}},{path:`/auth/register`,name:`register`,component:Hd,props:{mode:`register`},meta:{public:!0,guest:!0,title:`考生注册`}},{path:`/candidate`,redirect:`/candidate/dashboard`},...ky.map(([e,t])=>({path:`/candidate/${e}`,name:`candidate-${e}`,component:Np,props:{page:e},meta:{roles:[`candidate`],title:t}})),{path:`/admin`,redirect:`/admin/dashboard`},...Ay.map(([e,t])=>({path:`/admin/${e}`,name:`admin-${e}`,component:pv,props:{page:e},meta:{roles:[`admin`],title:t}})),{path:`/admission`,redirect:`/admission/dashboard`},...jy.map(([e,t])=>({path:`/admission/${e}`,name:`admission-${e}`,component:Ey,props:{page:e},meta:{roles:[`admission_school`],title:t}})),{path:`/:pathMatch(.*)*`,name:`not-found`,component:Oy,meta:{public:!0,title:`页面不存在`}}],Ny=xl({history:Uc(`/`),routes:My,scrollBehavior(e,t,n){return n||(e.hash?{el:e.hash,behavior:`smooth`}:{top:0})}});Ny.beforeEach(async e=>{try{await Q.bootstrap()}catch{if(!e.meta.public)return{name:`home`}}let t=Q.state.user;if(e.meta.guest&&t)return Q.homeFor(t);if(e.meta.roles?.length){if(!t)return{name:`login`,query:{redirect:e.fullPath}};if(!e.meta.roles.includes(t.role))return Q.homeFor(t);if(t.role===`candidate`&&e.path!==`/candidate/onboarding`&&(t.mustChangePassword||!Q.state.profile?.profileCompleted))return`/candidate/onboarding`}return document.title=`${e.meta.title||`服务`} · 衡准考试信息管理系统`,!0});var Py=bs(Ll);Py.use(Ny),Py.mount(`#app`); \ No newline at end of file +function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>x(e)===`[object Map]`,p=e=>x(e)===`[object Set]`,m=e=>x(e)===`[object Date]`,h=e=>typeof e==`function`,g=e=>typeof e==`string`,_=e=>typeof e==`symbol`,v=e=>typeof e==`object`&&!!e,y=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),b=Object.prototype.toString,x=e=>b.call(e),S=e=>x(e).slice(8,-1),C=e=>x(e)===`[object Object]`,ee=e=>g(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,te=e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ne=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},re=/-\w/g,ie=ne(e=>e.replace(re,e=>e.slice(1).toUpperCase())),ae=/\B([A-Z])/g,oe=ne(e=>e.replace(ae,`-$1`).toLowerCase()),se=ne(e=>e.charAt(0).toUpperCase()+e.slice(1)),ce=ne(e=>e?`on${se(e)}`:``),le=(e,t)=>!Object.is(e,t),ue=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},de=e=>{let t=parseFloat(e);return isNaN(t)?e:t},fe=e=>{let t=g(e)?Number(e):NaN;return isNaN(t)?e:t},pe,me=()=>pe||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function he(e){if(d(e)){let t={};for(let n=0;n{if(e){let n=e.split(_e);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function be(e){let t=``;if(g(e))t=e;else if(d(e))for(let n=0;nTe(e,t))}var De=e=>!!(e&&e.__v_isRef===!0),T=e=>g(e)?e:e==null?``:d(e)||v(e)&&(e.toString===b||!h(e.toString))?De(e)?T(e.value):JSON.stringify(e,Oe,2):String(e),Oe=(e,t)=>De(t)?Oe(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[ke(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>ke(e))}:_(t)?ke(t):v(t)&&!d(t)&&!C(t)?String(t):t,ke=(e,t=``)=>_(e)?`Symbol(${e.description??t})`:e,Ae,je=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Ae&&(Ae.active?(this.parent=Ae,this.index=(Ae.scopes||=[]).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e0&&--this._on===0){if(Ae===this)Ae=this.prevScope;else{let e=Ae;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t0)return;if(Re){let e=Re;for(Re=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Le;){let t=Le;for(Le=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function He(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ue(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Ke(r),qe(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function We(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ge(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ge(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===$e)||(e.globalVersion=$e,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!We(e))))return;e.flags|=2;let t=e.dep,n=Ne,r=Je;Ne=e,Je=!0;try{He(e);let n=e.fn(e._value);(t.version===0||le(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{Ne=n,Je=r,Ue(e),e.flags&=-3}}function Ke(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Ke(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function qe(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var Je=!0,Ye=[];function Xe(){Ye.push(Je),Je=!1}function Ze(){let e=Ye.pop();Je=e===void 0||e}function Qe(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=Ne;Ne=void 0;try{t()}finally{Ne=e}}}var $e=0,et=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},tt=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Ne||!Je||Ne===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Ne)t=this.activeLink=new et(Ne,this),Ne.deps?(t.prevDep=Ne.depsTail,Ne.depsTail.nextDep=t,Ne.depsTail=t):Ne.deps=Ne.depsTail=t,nt(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=Ne.depsTail,t.nextDep=void 0,Ne.depsTail.nextDep=t,Ne.depsTail=t,Ne.deps===t&&(Ne.deps=e)}return t}trigger(e){this.version++,$e++,this.notify(e)}notify(e){Be();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ve()}}};function nt(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)nt(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var rt=new WeakMap,it=Symbol(``),at=Symbol(``),ot=Symbol(``);function st(e,t,n){if(Je&&Ne){let t=rt.get(e);t||rt.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new tt),r.map=t,r.key=n),r.track()}}function ct(e,t,n,r,i,a){let o=rt.get(e);if(!o){$e++;return}let s=e=>{e&&e.trigger()};if(Be(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&ee(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===ot||!_(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(ot)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(it)),f(e)&&s(o.get(at)));break;case`delete`:i||(s(o.get(it)),f(e)&&s(o.get(at)));break;case`set`:f(e)&&s(o.get(it));break}}Ve()}function lt(e){let t=Yt(e);return t===e?t:(st(t,`iterate`,ot),qt(e)?t:t.map(Zt))}function ut(e){return st(e=Yt(e),`iterate`,ot),e}function dt(e,t){return Kt(e)?Qt(Gt(e)?Zt(t):t):Zt(t)}var ft={__proto__:null,[Symbol.iterator](){return pt(this,Symbol.iterator,e=>dt(this,e))},concat(...e){return lt(this).concat(...e.map(e=>d(e)?lt(e):e))},entries(){return pt(this,`entries`,e=>(e[1]=dt(this,e[1]),e))},every(e,t){return ht(this,`every`,e,t,void 0,arguments)},filter(e,t){return ht(this,`filter`,e,t,e=>e.map(e=>dt(this,e)),arguments)},find(e,t){return ht(this,`find`,e,t,e=>dt(this,e),arguments)},findIndex(e,t){return ht(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return ht(this,`findLast`,e,t,e=>dt(this,e),arguments)},findLastIndex(e,t){return ht(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return ht(this,`forEach`,e,t,void 0,arguments)},includes(...e){return _t(this,`includes`,e)},indexOf(...e){return _t(this,`indexOf`,e)},join(e){return lt(this).join(e)},lastIndexOf(...e){return _t(this,`lastIndexOf`,e)},map(e,t){return ht(this,`map`,e,t,void 0,arguments)},pop(){return vt(this,`pop`)},push(...e){return vt(this,`push`,e)},reduce(e,...t){return gt(this,`reduce`,e,t)},reduceRight(e,...t){return gt(this,`reduceRight`,e,t)},shift(){return vt(this,`shift`)},some(e,t){return ht(this,`some`,e,t,void 0,arguments)},splice(...e){return vt(this,`splice`,e)},toReversed(){return lt(this).toReversed()},toSorted(e){return lt(this).toSorted(e)},toSpliced(...e){return lt(this).toSpliced(...e)},unshift(...e){return vt(this,`unshift`,e)},values(){return pt(this,`values`,e=>dt(this,e))}};function pt(e,t,n){let r=ut(e),i=r[t]();return r!==e&&!qt(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var mt=Array.prototype;function ht(e,t,n,r,i,a){let o=ut(e),s=o!==e&&!qt(e),c=o[t];if(c!==mt[t]){let t=c.apply(e,a);return s?Zt(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,dt(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function gt(e,t,n,r){let i=ut(e),a=i!==e&&!qt(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=dt(e,t)),n.call(this,t,dt(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?dt(e,c):c}function _t(e,t,n){let r=Yt(e);st(r,`iterate`,ot);let i=r[t](...n);return(i===-1||i===!1)&&Jt(n[0])?(n[0]=Yt(n[0]),r[t](...n)):i}function vt(e,t,n=[]){Xe(),Be();let r=Yt(e)[t].apply(e,n);return Ve(),Ze(),r}var yt=e(`__proto__,__v_isRef,__isVue`),bt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(_));function xt(e){_(e)||(e=String(e));let t=Yt(this);return st(t,`has`,e),t.hasOwnProperty(e)}var St=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Bt:zt:i?Rt:Lt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=ft[t]))return e;if(t===`hasOwnProperty`)return xt}let o=Reflect.get(e,t,$t(e)?e:n);if((_(t)?bt.has(t):yt(t))||(r||st(e,`get`,t),i))return o;if($t(o)){let e=a&&ee(t)?o:o.value;return r&&v(e)?Ut(e):e}return v(o)?r?Ut(o):E(o):o}},Ct=class extends St{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&ee(t);if(!this._isShallow){let e=Kt(i);if(!qt(n)&&!Kt(n)&&(i=Yt(i),n=Yt(n)),!a&&$t(i)&&!$t(n))return e||(i.value=n),!0}let o=a?Number(t)e,kt=e=>Reflect.getPrototypeOf(e);function At(e,t,n){return function(...r){let i=this.__v_raw,a=Yt(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?Ot:t?Qt:Zt;return!t&&st(a,`iterate`,l?at:it),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function jt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Mt(e,t){let n={get(n){let r=this.__v_raw,i=Yt(r),a=Yt(n);e||(le(n,a)&&st(i,`get`,n),st(i,`get`,a));let{has:o}=kt(i),s=t?Ot:e?Qt:Zt;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&st(Yt(t),`iterate`,it),t.size},has(t){let n=this.__v_raw,r=Yt(n),i=Yt(t);return e||(le(t,i)&&st(r,`has`,t),st(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=Yt(a),s=t?Ot:e?Qt:Zt;return!e&&st(o,`iterate`,it),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:jt(`add`),set:jt(`set`),delete:jt(`delete`),clear:jt(`clear`)}:{add(e){let n=Yt(this),r=kt(n),i=Yt(e),a=!t&&!qt(e)&&!Kt(e)?i:e;return r.has.call(n,a)||le(e,a)&&r.has.call(n,e)||le(i,a)&&r.has.call(n,i)||(n.add(a),ct(n,`add`,a,a)),this},set(e,n){!t&&!qt(n)&&!Kt(n)&&(n=Yt(n));let r=Yt(this),{has:i,get:a}=kt(r),o=i.call(r,e);o||=(e=Yt(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?le(n,s)&&ct(r,`set`,e,n,s):ct(r,`add`,e,n),this},delete(e){let t=Yt(this),{has:n,get:r}=kt(t),i=n.call(t,e);i||=(e=Yt(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&ct(t,`delete`,e,void 0,a),o},clear(){let e=Yt(this),t=e.size!==0,n=e.clear();return t&&ct(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=At(r,e,t)}),n}function Nt(e,t){let n=Mt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(u(n,r)&&r in t?n:t,r,i)}var Pt={get:Nt(!1,!1)},Ft={get:Nt(!1,!0)},It={get:Nt(!0,!1)},Lt=new WeakMap,Rt=new WeakMap,zt=new WeakMap,Bt=new WeakMap;function Vt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function E(e){return Kt(e)?e:Wt(e,!1,Tt,Pt,Lt)}function Ht(e){return Wt(e,!1,Dt,Ft,Rt)}function Ut(e){return Wt(e,!0,Et,It,zt)}function Wt(e,t,n,r,i){if(!v(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=Vt(S(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function Gt(e){return Kt(e)?Gt(e.__v_raw):!!(e&&e.__v_isReactive)}function Kt(e){return!!(e&&e.__v_isReadonly)}function qt(e){return!!(e&&e.__v_isShallow)}function Jt(e){return e?!!e.__v_raw:!1}function Yt(e){let t=e&&e.__v_raw;return t?Yt(t):e}function Xt(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&w(e,`__v_skip`,!0),e}var Zt=e=>v(e)?E(e):e,Qt=e=>v(e)?Ut(e):e;function $t(e){return e?e.__v_isRef===!0:!1}function D(e){return tn(e,!1)}function en(e){return tn(e,!0)}function tn(e,t){return $t(e)?e:new nn(e,t)}var nn=class{constructor(e,t){this.dep=new tt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Yt(e),this._value=t?e:Zt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||qt(e)||Kt(e);e=n?e:Yt(e),le(e,t)&&(this._rawValue=e,this._value=n?e:Zt(e),this.dep.trigger())}};function O(e){return $t(e)?e.value:e}function rn(e){return h(e)?e():O(e)}var an={get:(e,t,n)=>t===`__v_raw`?e:O(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return $t(i)&&!$t(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function on(e){return Gt(e)?e:new Proxy(e,an)}var sn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new tt,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function cn(e){return new sn(e)}var ln=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new tt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=$e-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Ne!==this)return ze(this,!0),!0}get value(){let e=this.dep.track();return Ge(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function un(e,t,n=!1){let r,i;return h(e)?r=e:(r=e.get,i=e.set),new ln(r,i,n)}var dn={},fn=new WeakMap,pn=void 0;function mn(e,t=!1,n=pn){if(n){let t=fn.get(n);t||fn.set(n,t=[]),t.push(e)}}function hn(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:qt(e)||o===!1||o===0?gn(e,1):gn(e),m,g,_,v,y=!1,b=!1;if($t(e)?(g=()=>e.value,y=qt(e)):Gt(e)?(g=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>Gt(e)||qt(e)),g=()=>e.map(e=>{if($t(e))return e.value;if(Gt(e))return p(e);if(h(e))return f?f(e,2):e()})):g=h(e)?n?f?()=>f(e,2):e:()=>{if(_){Xe();try{_()}finally{Ze()}}let t=pn;pn=m;try{return f?f(e,3,[v]):e(v)}finally{pn=t}}:r,n&&o){let e=g,t=o===!0?1/0:o;g=()=>gn(e(),t)}let x=Me(),S=()=>{m.stop(),x&&x.active&&c(x.effects,m)};if(s&&n){let e=n;n=(...t)=>{let n=e(...t);return S(),n}}let C=b?Array(e.length).fill(dn):dn,ee=e=>{if(!(!(m.flags&1)||!m.dirty&&!e))if(n){let t=m.run();if(e||o||y||(b?t.some((e,t)=>le(e,C[t])):le(t,C))){_&&_();let e=pn;pn=m;try{let e=[t,C===dn?void 0:b&&C[0]===dn?[]:C,v];C=t,f?f(n,3,e):n(...e)}finally{pn=e}}}else m.run()};return u&&u(ee),m=new Fe(g),m.scheduler=l?()=>l(ee,!1):ee,v=e=>mn(e,!1,m),_=m.onStop=()=>{let e=fn.get(m);if(e){if(f)f(e,4);else for(let t of e)t();fn.delete(m)}},n?a?ee(!0):C=m.run():l?l(ee.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function gn(e,t=1/0,n){if(t<=0||!v(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,$t(e))gn(e.value,t,n);else if(d(e))for(let r=0;r{gn(e,t,n)});else if(C(e)){for(let r in e)gn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&gn(e[r],t,n)}return e}function _n(e,t,n,r){try{return r?e(...r):e()}catch(e){yn(e,t,n)}}function vn(e,t,n,r){if(h(e)){let i=_n(e,t,n,r);return i&&y(i)&&i.catch(e=>{yn(e,t,n)}),i}if(d(e)){let i=[];for(let a=0;a>>1,i=xn[r],a=Fn(i);a=Fn(n)?xn.push(e):xn.splice(kn(t),0,e),e.flags|=1,jn()}}function jn(){Dn||=En.then(In)}function Mn(e){d(e)?Cn.push(...e):wn&&e.id===-1?wn.splice(Tn+1,0,e):e.flags&1||(Cn.push(e),e.flags|=1),jn()}function Nn(e,t,n=Sn+1){for(;nFn(e)-Fn(t));if(Cn.length=0,wn){wn.push(...e);return}for(wn=e,Tn=0;Tne.id==null?e.flags&2?-1:1/0:e.id;function In(e){try{for(Sn=0;Sn{r._d&&Da(-1);let i=zn(t),a=Ca.length,o;try{o=e(...n)}finally{for(let e=Ca.length;e>a;e--)Ta();zn(i),r._d&&Da(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function k(e,n){if(Ln===null)return e;let r=co(Ln),i=e.dirs||=[];for(let e=0;e1)return n&&h(t)?t.call(r&&r.proxy):t}}var Wn=Symbol.for(`v-scx`),Gn=()=>Un(Wn);function Kn(e,t){return Yn(e,null,t)}function qn(e,t){return Yn(e,null,{flush:`sync`})}function Jn(e,t,n){return Yn(e,t,n)}function Yn(e,n,i=t){let{immediate:a,deep:o,flush:c,once:l}=i,u=s({},i),d=n&&a||!n&&c!==`post`,f;if($a){if(c===`sync`){let e=Gn();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}}let p=Ka;u.call=(e,t,n)=>vn(e,p,t,n);let m=!1;c===`post`?u.scheduler=e=>{sa(e,p&&p.suspense)}:c!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():An(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=hn(e,n,u);return $a&&(f?f.push(h):d&&h()),h}function Xn(e,t,n){let r=this.proxy,i=g(e)?e.includes(`.`)?Zn(r,e):()=>r[e]:e.bind(r,r),a;h(t)?a=t:(a=t.handler,n=t);let o=Xa(this),s=Yn(i,a.bind(r),n);return o(),s}function Zn(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;ee.__isTeleport,tr=e=>e&&(e.disabled||e.disabled===``),nr=e=>e&&(e.defer||e.defer===``),rr=e=>typeof SVGElement<`u`&&e instanceof SVGElement,ir=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,ar=(e,t)=>{let n=e&&e.to;return g(n)?t?t(n):null:n},or={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=tr(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=tr(e.props),r=e.target=ar(e.props,m),a=dr(r,e,h,p);r&&(o!==`svg`&&rr(r)?o=`svg`:o!==`mathml`&&ir(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),ur(e,!1)))},S=e=>{let t=()=>{if(Qn.get(e)===t){if(Qn.delete(e),tr(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),ur(e,!0)}x(e)}};Qn.set(e,t),sa(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),nr(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),ur(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Qn.get(e);if(u){u.flags|=8,Qn.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=tr(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||rr(p)?o=`svg`:(o===`mathml`||ir(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),pa(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):sr(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=ar(t.props,m);e&&(t.target=e,sr(t,e,null,l,0))}else g&&sr(t,p,h,l,1);ur(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=tr(f),m=a||!p,h=Qn.get(e);if(h&&(h.flags|=8,Qn.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e{e.isMounted=!0}),Gr(()=>{e.isUnmounting=!0}),e}var hr=[Function,Array],gr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:hr,onEnter:hr,onAfterEnter:hr,onEnterCancelled:hr,onBeforeLeave:hr,onLeave:hr,onAfterLeave:hr,onLeaveCancelled:hr,onBeforeAppear:hr,onAppear:hr,onAfterAppear:hr,onAppearCancelled:hr},_r=e=>{let t=e.subTree;return t.component?_r(t.component):t},vr={name:`BaseTransition`,props:gr,setup(e,{slots:t}){let n=qa(),r=mr();return()=>{let i=t.default&&Er(t.default(),!0),a=i&&i.length?yr(i):n.subTree?L():void 0;if(!a)return;let o=Yt(e),{mode:s}=o;if(r.isLeaving)return Cr(a);let c=wr(a);if(!c)return Cr(a);let l=Sr(c,o,r,n,e=>l=e);c.type!==xa&&Tr(c,l);let u=n.subTree&&wr(n.subTree);if(u&&u.type!==xa&&!ja(u,c)&&_r(n).type!==xa){let e=Sr(u,o,r,n);if(Tr(u,e),s===`out-in`&&c.type!==xa)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},Cr(a);s===`in-out`&&c.type!==xa?e.delayLeave=(e,t,n)=>{let i=xr(r,u);i[String(u.key)]=u,e[fr]=()=>{t(),e[fr]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function yr(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==xa){t=n;break}}return t}var br=vr;function xr(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Sr(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=xr(n,e),C=(e,t)=>{e&&vn(e,r,9,t)},ee=(e,t)=>{let n=t[1];C(e,t),d(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},te={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=_||c;else return;t[fr]&&t[fr](!0);let i=S[x];i&&ja(e,i)&&i.el[fr]&&i.el[fr](),C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=f;if(!n.isMounted)if(a)r=v||l,i=y||u,o=b||f;else return;let s=!1;t[pr]=e=>{s||(s=!0,C(e?o:i,[t]),te.delayedLeave&&te.delayedLeave(),t[pr]=void 0)};let c=t[pr].bind(null,!1);r?ee(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[pr]&&t[pr](!0),n.isUnmounting)return r();C(p,[t]);let a=!1;t[fr]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[fr]=void 0,S[i]===e&&delete S[i])};let o=t[fr].bind(null,!1);S[i]=e,m?ee(m,[t,o]):o()},clone(e){let a=Sr(e,t,n,r,i);return i&&i(a),a}};return te}function Cr(e){if(Pr(e))return e=Ia(e),e.children=null,e}function wr(e){if(!Pr(e))return er(e.type)&&e.children?yr(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&h(n.default))return n.default()}}function Tr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Tr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Er(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let e=0;ejr(e,n&&(d(n)?n[t]:n),r,a,o));return}if(Nr(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&jr(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?co(a.component):a.el,l=o?null:s,{i:f,r:p}=e,m=n&&n.r,_=f.refs===t?f.refs={}:f.refs,v=f.setupState,y=Yt(v),b=v===t?i:e=>!kr(_,e)&&u(y,e),x=(e,t)=>!(t&&kr(_,t));if(m!=null&&m!==p){if(Mr(n),g(m))_[m]=null,b(m)&&(v[m]=null);else if($t(m)){let e=n;x(m,e.k)&&(m.value=null),e.k&&(_[e.k]=null)}}if(h(p))_n(p,f,12,[l,_]);else{let t=g(p),n=$t(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?v[p]:_[p]:x(p)||!e.k?p.value:_[e.k];if(o)d(n)&&c(n,s);else if(d(n))n.includes(s)||n.push(s);else if(t)_[p]=[s],b(p)&&(v[p]=_[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(_[e.k]=t)}}else t?(_[p]=l,b(p)&&(v[p]=l)):n&&(x(p,e.k)&&(p.value=l),e.k&&(_[e.k]=l))};if(l){let t=()=>{i(),Ar.delete(e)};t.id=-1,Ar.set(e,t),sa(t,r)}else Mr(e),i()}}}function Mr(e){let t=Ar.get(e);t&&(t.flags|=8,Ar.delete(e))}me().requestIdleCallback,me().cancelIdleCallback;var Nr=e=>!!e.type.__asyncLoader,Pr=e=>e.type.__isKeepAlive;function Fr(e,t){Lr(e,`a`,t)}function Ir(e,t){Lr(e,`da`,t)}function Lr(e,t,n=Ka){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(zr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Pr(e.parent.vnode)&&Rr(r,t,n,e),e=e.parent}}function Rr(e,t,n,r){let i=zr(t,e,r,!0);Kr(()=>{c(r[t],i)},n)}function zr(e,t,n=Ka,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Xe();let i=Xa(n),a=vn(t,n,e,r);return i(),Ze(),a};return r?i.unshift(a):i.push(a),a}}var Br=e=>(t,n=Ka)=>{(!$a||e===`sp`)&&zr(e,(...e)=>t(...e),n)},Vr=Br(`bm`),Hr=Br(`m`),Ur=Br(`bu`),Wr=Br(`u`),Gr=Br(`bum`),Kr=Br(`um`),qr=Br(`sp`),Jr=Br(`rtg`),Yr=Br(`rtc`);function Xr(e,t=Ka){zr(`ec`,e,t)}var Zr=`components`;function Qr(e,t){return ti(Zr,e,!0,t)||e}var $r=Symbol.for(`v-ndc`);function ei(e){return g(e)?ti(Zr,e,!1)||e:e||$r}function ti(e,t,n=!0,r=!1){let i=Ln||Ka;if(i){let n=i.type;if(e===Zr){let e=lo(n,!1);if(e&&(e===t||e===ie(t)||e===se(ie(t))))return n}let a=ni(i[e]||n[e],t)||ni(i.appContext[e],t);return!a&&r?n:a}}function ni(e,t){return e&&(e[t]||e[ie(t)]||e[se(ie(t))])}function A(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||g(e)){let n=o&&Gt(e),r=!1,s=!1;n&&(r=!qt(e),s=Kt(e),e=ut(e)),i=Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r0;return t!=="default"&&(e.name=t),M(),ka(j,null,[F(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let c=Ca.length;M();let l;try{let i=o&&ii(o(n)),s=n.key||a||i&&i.key;l=ka(j,{key:(s&&!_(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=Ca.length;e>c;e--)Ta();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+`-s`]),l}function ii(e){return e.some(e=>!Aa(e)||!(e.type===xa||e.type===j&&!ii(e.children)))?e:null}var ai=e=>e?Qa(e)?co(e):ai(e.parent):null,oi=s(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ai(e.parent),$root:e=>ai(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>gi(e),$forceUpdate:e=>e.f||=()=>{An(e.update)},$nextTick:e=>e.n||=On.bind(e.proxy),$watch:e=>Xn.bind(e)}),si=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),ci={get({_:e},n){if(n===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(n[0]!==`$`){let e=s[n];if(e!==void 0)switch(e){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return o[n]}else if(si(i,n))return s[n]=1,i[n];else if(a!==t&&u(a,n))return s[n]=2,a[n];else if(u(o,n))return s[n]=3,o[n];else if(r!==t&&u(r,n))return s[n]=4,r[n];else di&&(s[n]=0)}let d=oi[n],f,p;if(d)return n===`$attrs`&&st(e.attrs,`get`,``),d(e);if((f=c.__cssModules)&&(f=f[n]))return f;if(r!==t&&u(r,n))return s[n]=4,r[n];if(p=l.config.globalProperties,u(p,n))return p[n]},set({_:e},n,r){let{data:i,setupState:a,ctx:o}=e;return si(a,n)?(a[n]=r,!0):i!==t&&u(i,n)?(i[n]=r,!0):u(e.props,n)||n[0]===`$`&&n.slice(1)in e?!1:(o[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==t&&c[0]!==`$`&&u(e,c)||si(n,c)||u(o,c)||u(i,c)||u(oi,c)||u(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?u(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function li(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function ui(e,t){return!e||!t?e||t:d(e)&&d(t)?e.concat(t):s({},li(e),li(t))}var di=!0;function fi(e){let t=gi(e),n=e.proxy,i=e.ctx;di=!1,t.beforeCreate&&mi(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:f,beforeMount:p,mounted:m,beforeUpdate:g,updated:_,activated:y,deactivated:b,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:ee,render:te,renderTracked:ne,renderTriggered:re,errorCaptured:ie,serverPrefetch:ae,expose:oe,inheritAttrs:se,components:ce,directives:le,filters:ue}=t;if(u&&pi(u,i,null),s)for(let e in s){let t=s[e];h(t)&&(i[e]=t.bind(n))}if(a){let t=a.call(n,n);v(t)&&(e.data=E(t))}if(di=!0,o)for(let e in o){let t=o[e],a=R({get:h(t)?t.bind(n,n):h(t.get)?t.get.bind(n,n):r,set:!h(t)&&h(t.set)?t.set.bind(n):r});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)hi(c[e],i,n,e);if(l){let e=h(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Hn(t,e[t])})}f&&mi(f,e,`c`);function w(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(w(Vr,p),w(Hr,m),w(Ur,g),w(Wr,_),w(Fr,y),w(Ir,b),w(Xr,ie),w(Yr,ne),w(Jr,re),w(Gr,S),w(Kr,ee),w(qr,ae),d(oe))if(oe.length){let t=e.exposed||={};oe.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};te&&e.render===r&&(e.render=te),se!=null&&(e.inheritAttrs=se),ce&&(e.components=ce),le&&(e.directives=le),ae&&Or(e)}function pi(e,t,n=r){d(e)&&(e=xi(e));for(let n in e){let r=e[n],i;i=v(r)?`default`in r?Un(r.from||n,r.default,!0):Un(r.from||n):Un(r),$t(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function mi(e,t,n){vn(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function hi(e,t,n,r){let i=r.includes(`.`)?Zn(n,r):()=>n[r];if(g(e)){let n=t[e];h(n)&&Jn(i,n)}else if(h(e))Jn(i,e.bind(n));else if(v(e))if(d(e))e.forEach(e=>hi(e,t,n,r));else{let r=h(e.handler)?e.handler.bind(n):t[e.handler];h(r)&&Jn(i,r,e)}}function gi(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>_i(c,e,o,!0)),_i(c,t,o)),v(t)&&a.set(t,c),c}function _i(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&_i(e,a,n,!0),i&&i.forEach(t=>_i(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=vi[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var vi={data:yi,props:wi,emits:wi,methods:Ci,computed:Ci,beforeCreate:Si,created:Si,beforeMount:Si,mounted:Si,beforeUpdate:Si,updated:Si,beforeDestroy:Si,beforeUnmount:Si,destroyed:Si,unmounted:Si,activated:Si,deactivated:Si,errorCaptured:Si,serverPrefetch:Si,components:Ci,directives:Ci,watch:Ti,provide:yi,inject:bi};function yi(e,t){return t?e?function(){return s(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function bi(e,t){return Ci(xi(e),xi(t))}function xi(e){if(d(e)){let t={};for(let n=0;n{let l,u=t,d;return qn(()=>{let t=e[a];le(l,t)&&(l=t,c())}),{get(){return s(),r.get?r.get(l):l},set(e){let s=r.set?r.set(e):e;if(!le(s,l)&&!(u!==t&&le(e,u)))return;let f=i.vnode.props,p=!!(f&&(n in f||a in f||o in f)&&(`onUpdate:${n}`in f||`onUpdate:${a}`in f||`onUpdate:${o}`in f));p||(l=e,c()),i.emit(`update:${n}`,s),le(e,u)&&(le(e,s)&&!le(s,d)||p&&u!==t&&!le(s,l))&&c(),u=e,d=s}}});return c[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?s||t:c,done:!1}:{done:!0}}}},c}var ji=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${ie(t)}Modifiers`]||e[`${oe(t)}Modifiers`];function Mi(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&ji(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>g(e)?e.trim():e)),s.number&&(a=r.map(de)));let c,l=i[c=ce(n)]||i[c=ce(ie(n))];!l&&o&&(l=i[c=ce(oe(n))]),l&&vn(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,vn(u,e,6,a)}}var Ni=new WeakMap;function Pi(e,t,n=!1){let r=n?Ni:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},c=!1;if(!h(e)){let r=e=>{let n=Pi(e,t,!0);n&&(c=!0,s(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!c?(v(e)&&r.set(e,null),null):(d(a)?a.forEach(e=>o[e]=null):s(o,a),v(e)&&r.set(e,o),o)}function Fi(e,t){return!e||!a(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),u(e,t[0].toLowerCase()+t.slice(1))||u(e,oe(t))||u(e,t))}function Ii(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=zn(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Ra(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=Ra(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),y=t.props?c:Li(c)}}catch(t){Ca.length=0,yn(t,e,1),v=F(xa)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(o)&&(y=Ri(y,a)),b=Ia(b,y,!1,!0))}return n.dirs&&(b=Ia(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Tr(b,n.transition),v=b,zn(_),v}var Li=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},Ri=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function zi(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Bi(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;tObject.create(Ui),Gi=e=>Object.getPrototypeOf(e)===Ui;function Ki(e,t,n,r=!1){let i={},a=Wi();e.propsDefaults=Object.create(null),Ji(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:Ht(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function qi(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=Yt(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r{p=!0;let[t,n]=Zi(e,r,!0);s(l,t),n&&f.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!p)return v(e)&&a.set(e,n),n;if(d(c))for(let e=0;ee===`_`||e===`_ctx`||e===`$stable`,ea=e=>d(e)?e.map(Ra):[Ra(e)],ta=(e,t,n)=>{if(t._n)return t;let r=Bn((...e)=>ea(t(...e)),n);return r._c=!1,r},na=(e,t,n)=>{let r=e._ctx;for(let n in e){if($i(n))continue;let i=e[n];if(h(i))t[n]=ta(n,i,r);else if(i!=null){let e=ea(i);t[n]=()=>e}}},ra=(e,t)=>{let n=ea(t);e.slots.default=()=>n},ia=(e,t,n)=>{for(let r in t)(n||!$i(r))&&(e[r]=t[r])},aa=(e,t,n)=>{let r=e.slots=Wi();if(e.vnode.shapeFlag&32){let e=t._;e?(ia(r,t,n),n&&w(r,`_`,e,!0)):na(t,r)}else t&&ra(e,t)},oa=(e,n,r)=>{let{vnode:i,slots:a}=e,o=!0,s=t;if(i.shapeFlag&32){let e=n._;e?r&&e===1?o=!1:ia(a,n,r):(o=!n.$stable,na(n,a)),s=n}else n&&(ra(e,n),s={default:1});if(o)for(let e in a)!$i(e)&&s[e]==null&&delete a[e]},sa=ya;function ca(e){return la(e)}function la(e,i){let a=me();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=r,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!ja(e,t)&&(r=we(e),ye(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case ba:y(e,t,n,r);break;case xa:b(e,t,n,r);break;case Sa:e??x(t,n,r,o);break;case j:ce(e,t,n,r,i,a,o,s,c);break;default:d&1?ee(e,t,n,r,i,a,o,s,c):d&6?le(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,De)}u!=null&&i?jr(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&jr(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},ee=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)ne(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ae(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},ne=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&ie(e.children,d,null,r,i,ua(e,a),s,u),_&&Vn(e,null,r,`created`),re(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!te(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Ha(f,r,e)}_&&Vn(e,null,r,`beforeMount`);let v=fa(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&sa(()=>{try{f&&Ha(f,r,e),v&&g.enter(d),_&&Vn(e,null,r,`mounted`)}finally{}},i)},re=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t{for(let l=c;l{let l=n.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=e.patchFlag&16;let m=e.props||t,h=n.props||t,g;if(r&&da(r,!1),(g=h.onVnodeBeforeUpdate)&&Ha(g,r,n,e),f&&Vn(n,e,r,`beforeUpdate`),r&&da(r,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?oe(e.dynamicChildren,d,l,r,i,ua(n,a),o):s||he(e,n,l,null,r,i,ua(n,a),o,!1),u>0){if(u&16)se(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=n.dynamicProps;for(let t=0;t{g&&Ha(g,r,n,e),f&&Vn(n,e,r,`updated`)},i)},oe=(e,t,n,r,i,a,o)=>{for(let s=0;s{if(n!==r){if(n!==t)for(let t in n)!te(t)&&!(t in r)&&c(e,t,n[t],null,a,i);for(let t in r){if(te(t))continue;let o=r[t],s=n[t];o!==s&&t!==`value`&&c(e,t,s,o,a,i)}`value`in r&&c(e,`value`,n.value,r.value,a)}},ce=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),ie(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(oe(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&pa(e,t,!0)):he(e,t,n,f,i,a,s,c,l)},le=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):w(t,n,r,i,a,o,c):de(e,t,c)},w=(e,t,n,r,i,a,o)=>{let s=e.component=Ga(e,r,i);if(Pr(e)&&(s.ctx.renderer=De),eo(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,fe,o),!e.el){let r=s.subTree=F(xa);b(null,r,t,n),e.placeholder=r.el}}else fe(s,e,t,n,i,a,o)},de=(e,t,n)=>{let r=t.component=e.component;if(zi(e,t,n))if(r.asyncDep&&!r.asyncResolved){pe(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},fe=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=ha(e);if(n){t&&(t.el=c.el,pe(e,t,o)),n.asyncDep.then(()=>{sa(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;da(e,!1),t?(t.el=c.el,pe(e,t,o)):t=c,n&&ue(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Ha(d,s,t,c),da(e,!0);let f=Ii(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),we(p),e,i,a),t.el=f.el,u===null&&Hi(e,f.el),r&&sa(r,i),(d=t.props&&t.props.onVnodeUpdated)&&sa(()=>Ha(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Nr(t);if(da(e,!1),l&&ue(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Ha(o,d,t),da(e,!0),s&&Oe){let t=()=>{e.subTree=Ii(e),Oe(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Ii(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&sa(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;sa(()=>Ha(o,d,e),i)}(t.shapeFlag&256||d&&Nr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&sa(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Fe(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>An(u),da(e,!0),l()},pe=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,qi(e,t.props,r,n),oa(e,t.children,n),Xe(),Nn(e),Ze()},he=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){_e(l,d,n,r,i,a,o,s,c);return}else if(f&256){ge(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&Ce(l,i,a),d!==l&&p(n,d)):u&16?m&16?_e(l,d,n,r,i,a,o,s,c):Ce(l,i,a,!0):(u&8&&p(n,``),m&16&&ie(d,n,r,i,a,o,s,c))},ge=(e,t,r,i,a,o,s,c,l)=>{e||=n,t||=n;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;pd?Ce(e,a,o,!0,!1,f):ie(t,r,i,a,o,s,c,l,f)},_e=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?za(t[u]):Ra(t[u]);if(ja(n,i))v(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?za(t[p]):Ra(t[p]);if(ja(n,i))v(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=ep)for(;u<=f;)ye(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?za(t[u]):Ra(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u=b){ye(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&ja(n,t[_])){i=_;break}i===void 0?ye(n,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(n,t[i],r,null,a,o,s,c,l),y++)}let ee=x?ma(C):n;for(_=ee.length-1,u=b-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){ve(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,De);return}if(c===j){o(a,t,n);for(let e=0;el.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[fr];a._isLeaving&&a[fr](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}else o(a,t,n)},ye=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(Xe(),jr(s,null,n,e,!0),Ze()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Nr(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Ha(_,t,e),u&6)Se(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Vn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,De,r):l&&!l.hasOnce&&(a!==j||d>0&&d&64)?Ce(l,t,n,!1,!0):(a===j&&d&384||!i&&u&16)&&Ce(c,t,n),r&&be(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&sa(()=>{_&&Ha(_,t,e),h&&Vn(e,null,t,`unmounted`),v&&(e.el=null)},n)},be=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===j){xe(n,r);return}if(t===Sa){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},xe=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},Se=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;ga(c),ga(l),r&&ue(r),i.stop(),a&&(a.flags|=8,ye(o,e,t,n)),s&&sa(s,t),sa(()=>{e.isUnmounted=!0},t)},Ce=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{if(e.shapeFlag&6)return we(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[$n];return n?h(n):t},Te=!1,Ee=(e,t,n)=>{let r;e==null?t._vnode&&(ye(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Te||=(Te=!0,Nn(r),Pn(),!1)},De={p:v,um:ye,m:ve,r:be,mt:w,mc:ie,pc:he,pbc:oe,n:we,o:e},T,Oe;return i&&([T,Oe]=i(De)),{render:Ee,hydrate:T,createApp:Oi(Ee,T)}}function ua({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function da({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function fa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function pa(e,t,n=!1){let r=e.children,i=t.children;if(d(r)&&d(i))for(let e=0;e>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function ha(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ha(t)}function ga(e){if(e)for(let t=0;te.__isSuspense;function ya(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):Mn(e)}var j=Symbol.for(`v-fgt`),ba=Symbol.for(`v-txt`),xa=Symbol.for(`v-cmt`),Sa=Symbol.for(`v-stc`),Ca=[],wa=null;function M(e=!1){Ca.push(wa=e?null:[])}function Ta(){Ca.pop(),wa=Ca[Ca.length-1]||null}var Ea=1;function Da(e,t=!1){Ea+=e,e<0&&wa&&t&&(wa.hasOnce=!0)}function Oa(e){return e.dynamicChildren=Ea>0?wa||n:null,Ta(),Ea>0&&wa&&wa.push(e),e}function N(e,t,n,r,i,a){return Oa(P(e,t,n,r,i,a,!0))}function ka(e,t,n,r,i){return Oa(F(e,t,n,r,i,!0))}function Aa(e){return e?e.__v_isVNode===!0:!1}function ja(e,t){return e.type===t.type&&e.key===t.key}var Ma=({key:e})=>e??null,Na=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:g(e)||$t(e)||h(e)?{i:Ln,r:e,k:t,f:!!n}:e);function P(e,t=null,n=null,r=0,i=null,a=e===j?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ma(t),ref:t&&Na(t),scopeId:Rn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ln};return s?(Ba(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=g(n)?8:16),Ea>0&&!o&&wa&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&wa.push(c),c}var F=Pa;function Pa(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===$r)&&(e=xa),Aa(e)){let r=Ia(e,t,!0);return n&&Ba(r,n),Ea>0&&!a&&wa&&(r.shapeFlag&6?wa[wa.indexOf(e)]=r:wa.push(r)),r.patchFlag=-2,r}if(uo(e)&&(e=e.__vccOpts),t){t=Fa(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=be(e)),v(n)&&(Jt(n)&&!d(n)&&(n=s({},n)),t.style=he(n))}let o=g(e)?1:va(e)?128:er(e)?64:v(e)?4:h(e)?2:0;return P(e,t,n,r,i,o,a,!0)}function Fa(e){return e?Jt(e)||Gi(e)?s({},e):e:null}function Ia(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Va(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ma(l),ref:t&&t.ref?n&&a?d(a)?a.concat(Na(t)):[a,Na(t)]:Na(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==j?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ia(e.ssContent),ssFallback:e.ssFallback&&Ia(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Tr(u,c.clone(u)),u}function I(e=` `,t=0){return F(ba,null,e,t)}function La(e,t){let n=F(Sa,null,e);return n.staticCount=t,n}function L(e=``,t=!1){return t?(M(),ka(xa,null,e)):F(xa,null,e)}function Ra(e){return e==null||typeof e==`boolean`?F(xa):d(e)?F(j,null,e.slice()):Aa(e)?za(e):F(ba,null,String(e))}function za(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ia(e)}function Ba(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(d(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Ba(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!Gi(t)?t._ctx=Ln:r===3&&Ln&&(Ln.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(h(t)){if(r&65){Ba(e,{default:t});return}t={default:t,_ctx:Ln},n=32}else t=String(t),r&64?(n=16,t=[I(t)]):n=8;e.children=t,e.shapeFlag|=n}function Va(...e){let t={};for(let n=0;nKa||Ln,Ja,Ya;{let e=me(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Ja=t(`__VUE_INSTANCE_SETTERS__`,e=>Ka=e),Ya=t(`__VUE_SSR_SETTERS__`,e=>$a=e)}var Xa=e=>{let t=Ka;return Ja(e),e.scope.on(),()=>{e.scope.off(),Ja(t)}},Za=()=>{Ka&&Ka.scope.off(),Ja(null)};function Qa(e){return e.vnode.shapeFlag&4}var $a=!1;function eo(e,t=!1,n=!1){t&&Ya(t);let{props:r,children:i}=e.vnode,a=Qa(e);Ki(e,r,a,t),aa(e,i,n||t);let o=a?to(e,t):void 0;return t&&Ya(!1),o}function to(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ci);let{setup:r}=n;if(r){Xe();let n=e.setupContext=r.length>1?so(e):null,i=Xa(e),a=_n(r,e,0,[e.props,n]),o=y(a);if(Ze(),i(),(o||e.sp)&&!Nr(e)&&Or(e),o){if(a.then(Za,Za),t)return a.then(n=>{no(e,n,t)}).catch(t=>{yn(t,e,0)});e.asyncDep=a}else no(e,a,t)}else ao(e,t)}function no(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:v(t)&&(e.setupState=on(t)),ao(e,n)}var ro,io;function ao(e,t,n){let i=e.type;if(!e.render){if(!t&&ro&&!i.render){let t=i.template||gi(e).template;if(t){let{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:o}=i;i.render=ro(t,s(s({isCustomElement:n,delimiters:a},r),o))}}e.render=i.render||r,io&&io(e)}{let t=Xa(e);Xe();try{fi(e)}finally{Ze(),t()}}}var oo={get(e,t){return st(e,`get`,``),e[t]}};function so(e){return{attrs:new Proxy(e.attrs,oo),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function co(e){return e.exposed?e.exposeProxy||=new Proxy(on(Xt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in oi)return oi[n](e)},has(e,t){return t in e||t in oi}}):e.proxy}function lo(e,t=!0){return h(e)?e.displayName||e.name:e.name||t&&e.__name}function uo(e){return h(e)&&`__vccOpts`in e}var R=(e,t)=>un(e,t,$a);function fo(e,t,n){try{Da(-1);let r=arguments.length;return r===2?v(t)&&!d(t)?Aa(t)?F(e,null,[t]):F(e,t):F(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Aa(n)&&(n=[n]),F(e,t,n))}finally{Da(1)}}var po=`3.5.40`,mo=void 0,ho=typeof window<`u`&&window.trustedTypes;if(ho)try{mo=ho.createPolicy(`vue`,{createHTML:e=>e})}catch{}var go=mo?e=>mo.createHTML(e):e=>e,_o=`http://www.w3.org/2000/svg`,vo=`http://www.w3.org/1998/Math/MathML`,yo=typeof document<`u`?document:null,bo=yo&&yo.createElement(`template`),xo={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?yo.createElementNS(_o,e):t===`mathml`?yo.createElementNS(vo,e):n?yo.createElement(e,{is:n}):yo.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>yo.createTextNode(e),createComment:e=>yo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yo.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{bo.innerHTML=go(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=bo.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},So=`transition`,Co=`animation`,wo=Symbol(`_vtc`),To={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Eo=s({},gr,To),Do=(e=>(e.displayName=`Transition`,e.props=Eo,e))((e,{slots:t})=>fo(br,Ao(e),t)),Oo=(e,t=[])=>{d(e)?e.forEach(e=>e(...t)):e&&e(...t)},ko=e=>e?d(e)?e.some(e=>e.length>1):e.length>1:!1;function Ao(e){let t={};for(let n in e)n in To||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:d=c,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=jo(i),g=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:ee=y,onAppearCancelled:te=b}=t,ne=(e,t,n,r)=>{e._enterCancelled=r,Po(e,t?d:c),Po(e,t?u:o),n&&n()},re=(e,t)=>{e._isLeaving=!1,Po(e,f),Po(e,m),Po(e,p),t&&t()},ie=e=>(t,n)=>{let i=e?ee:y,o=()=>ne(t,e,n);Oo(i,[t,o]),Fo(()=>{Po(t,e?l:a),No(t,e?d:c),ko(i)||Lo(t,r,g,o)})};return s(t,{onBeforeEnter(e){Oo(v,[e]),No(e,a),No(e,o)},onBeforeAppear(e){Oo(C,[e]),No(e,l),No(e,u)},onEnter:ie(!1),onAppear:ie(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>re(e,t);No(e,f),e._enterCancelled?(No(e,p),Vo(e)):(Vo(e),No(e,p)),Fo(()=>{e._isLeaving&&(Po(e,f),No(e,m),ko(x)||Lo(e,r,_,n))}),Oo(x,[e,n])},onEnterCancelled(e){ne(e,!1,void 0,!0),Oo(b,[e])},onAppearCancelled(e){ne(e,!0,void 0,!0),Oo(te,[e])},onLeaveCancelled(e){re(e),Oo(S,[e])}})}function jo(e){if(e==null)return null;if(v(e))return[Mo(e.enter),Mo(e.leave)];{let t=Mo(e);return[t,t]}}function Mo(e){return fe(e)}function No(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[wo]||(e[wo]=new Set)).add(t)}function Po(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[wo];n&&(n.delete(t),n.size||(e[wo]=void 0))}function Fo(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Io=0;function Lo(e,t,n,r){let i=e._endId=++Io,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Ro(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u(n[e]||``).split(`, `),i=r(`${So}Delay`),a=r(`${So}Duration`),o=zo(i,a),s=r(`${Co}Delay`),c=r(`${Co}Duration`),l=zo(s,c),u=null,d=0,f=0;t===So?o>0&&(u=So,d=o,f=a.length):t===Co?l>0&&(u=Co,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?So:Co:null,f=u?u===So?a.length:c.length:0);let p=u===So&&/\b(?:transform|all)(?:,|$)/.test(r(`${So}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function zo(e,t){for(;e.lengthBo(t)+Bo(e[n])))}function Bo(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Vo(e){return(e?e.ownerDocument:document).body.offsetHeight}function Ho(e,t,n){let r=e[wo];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Uo=Symbol(`_vod`),Wo=Symbol(`_vsh`),Go=Symbol(``),Ko=/(?:^|;)\s*display\s*:/;function qo(e,t,n){let r=e.style,i=g(n),a=!1;if(n&&!i){if(t)if(g(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Yo(r,t,``)}else for(let e in t)n[e]??Yo(r,e,``);for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Yo(r,i,``):$o(e,i,!g(t)&&t?t[i]:void 0,o)||Yo(r,i,o)}}else if(i){if(t!==n){let e=r[Go];e&&(n+=`;`+e),r.cssText=n,a=Ko.test(n)}}else t&&e.removeAttribute(`style`);Uo in e&&(e[Uo]=a?r.display:``,e[Wo]&&(r.display=`none`))}var Jo=/\s*!important$/;function Yo(e,t,n){if(d(n))n.forEach(n=>Yo(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=Qo(e,t);Jo.test(n)?e.setProperty(oe(r),n.replace(Jo,``),`important`):e[r]=n}}var Xo=[`Webkit`,`Moz`,`ms`],Zo={};function Qo(e,t){let n=Zo[t];if(n)return n;let r=ie(t);if(r!==`filter`&&r in e)return Zo[t]=r;r=se(r);for(let n=0;nus||=(ds.then(()=>us=0),Date.now());function ps(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(d(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;ne.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,hs=(e,t,n,r,i,s)=>{let c=i===`svg`;t===`class`?Ho(e,r,c):t===`style`?qo(e,n,r):a(t)?o(t)||os(e,t,n,r,s):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):gs(e,t,r,c))?(ns(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&ts(e,t,r,c,s,t!==`value`)):e._isVueCE&&(_s(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!g(r)))?ns(e,ie(t),r,s,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),ts(e,t,r,c))};function gs(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&ms(t)&&h(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return ms(t)&&g(n)?!1:t in e}function _s(e,t){let n=e._def.props;if(!n)return!1;let r=ie(t);return Array.isArray(n)?n.some(e=>ie(e)===r):Object.keys(n).some(e=>ie(e)===r)}var vs=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return d(t)?e=>ue(t,e):t};function ys(e){e.target.composing=!0}function bs(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var xs=Symbol(`_assign`);function Ss(e,t,n){return t&&(e=e.trim()),n&&(e=de(e)),e}var z={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[xs]=vs(i);let a=r||i.props&&i.props.type===`number`;rs(e,t?`change`:`input`,t=>{t.target.composing||e[xs](Ss(e.value,n,a))}),(n||a)&&rs(e,`change`,()=>{e.value=Ss(e.value,n,a)}),t||(rs(e,`compositionstart`,ys),rs(e,`compositionend`,bs),rs(e,`change`,bs))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[xs]=vs(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?de(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Cs={deep:!0,created(e,t,n){e[xs]=vs(n),rs(e,`change`,()=>{let t=e._modelValue,n=Es(e),r=e.checked,i=e[xs];if(d(t)){let e=Ee(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(p(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Ds(e,r))})},mounted:ws,beforeUpdate(e,t,n){e[xs]=vs(n),ws(e,t,n)}};function ws(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(d(t))i=Ee(t,r.props.value)>-1;else if(p(t))i=t.has(r.props.value);else{if(t===n)return;i=Te(t,Ds(e,!0))}e.checked!==i&&(e.checked=i)}var B={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,rs(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?de(Es(e)):Es(e));e[xs](e.multiple?p(e._modelValue)?new Set(t):t:t[0]),e._assigning=!0,On(()=>{e._assigning=!1})}),e[xs]=vs(r)},mounted(e,{value:t}){Ts(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[xs]=vs(n)},updated(e,{value:t}){e._assigning||Ts(e,t)}};function Ts(e,t){let n=e.multiple,r=d(t);if(!(n&&!r&&!p(t))){for(let i=0,a=e.options.length;iString(e)===String(o)):a.selected=Ee(t,o)>-1}else a.selected=t.has(o);else if(Te(Es(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Es(e){return`_value`in e?e._value:e.value}function Ds(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Os=[`ctrl`,`shift`,`alt`,`meta`],ks={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Os.some(n=>e[`${n}Key`]&&!t.includes(n))},As=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=oe(n.key);if(t.some(e=>e===r||js[e]===r))return e(n)}))},Ns=s({patchProp:hs},xo),Ps;function Fs(){return Ps||=ca(Ns)}var Is=((...e)=>{let t=Fs().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Rs(e);if(!r)return;let i=t._component;!h(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Ls(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Ls(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Rs(e){return g(e)?document.querySelector(e):e}function zs(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Bs(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&zs(e.default)}var Vs=Object.assign;function Hs(e,t){let n={};for(let r in t){let i=t[r];n[r]=Ws(i)?i.map(e):e(i)}return n}var Us=()=>{},Ws=Array.isArray;function Gs(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var Ks=Symbol(``);function qs(e,t){return Vs(Error(),{type:e,[Ks]:!0},t)}function Js(e,t){return e instanceof Error&&Ks in e&&(t==null||!!(e.type&t))}var Ys=Symbol(``),Xs=Symbol(``),Zs=Symbol(``),Qs=Symbol(``),$s=Symbol(``);function ec(){return Un(Zs)}function tc(e){return Un(Qs)}var nc=typeof document<`u`,rc=/#/g,ic=/&/g,ac=/\//g,oc=/=/g,sc=/\?/g,cc=/\+/g,lc=/%5B/g,uc=/%5D/g,dc=/%5E/g,fc=/%60/g,pc=/%7B/g,mc=/%7C/g,hc=/%7D/g,gc=/%20/g;function _c(e){return e==null?``:encodeURI(``+e).replace(mc,`|`).replace(lc,`[`).replace(uc,`]`)}function vc(e){return _c(e).replace(pc,`{`).replace(hc,`}`).replace(dc,`^`)}function yc(e){return _c(e).replace(cc,`%2B`).replace(gc,`+`).replace(rc,`%23`).replace(ic,`%26`).replace(fc,"`").replace(pc,`{`).replace(hc,`}`).replace(dc,`^`)}function bc(e){return yc(e).replace(oc,`%3D`)}function xc(e){return _c(e).replace(rc,`%23`).replace(sc,`%3F`)}function Sc(e){return xc(e).replace(ac,`%2F`)}function Cc(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var wc=/\/$/,Tc=e=>e.replace(wc,``);function Ec(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Pc(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:Cc(o)}}function Dc(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Oc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function kc(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Ac(t.matched[r],n.matched[i])&&jc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ac(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function jc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Mc(e[n],t[n]))return!1;return!0}function Mc(e,t){return Ws(e)?Nc(e,t):Ws(t)?Nc(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Nc(e,t){return Ws(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Pc(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var Fc={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function Ic(e){if(!e)if(nc){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Tc(e)}var Lc=/^[^#]+#/;function Rc(e,t){return e.replace(Lc,`#`)+t}function zc(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var Bc=()=>({left:window.scrollX,top:window.scrollY});function Vc(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=zc(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Hc(e,t){return(history.state?history.state.position-t:-1)+e}var Uc=new Map;function Wc(e,t){Uc.set(e,t)}function Gc(e){let t=Uc.get(e);return Uc.delete(e),t}function Kc(e){return typeof e==`string`||e&&typeof e==`object`}function qc(e){return typeof e==`string`||typeof e==`symbol`}function Jc(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;ee&&yc(e)):[r&&yc(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Xc(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=Ws(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Zc(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Qc(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(qs(4,{from:n,to:t})):e instanceof Error?c(e):Kc(e)?c(qs(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function $c(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(zs(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Qc(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Bs(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Qc(c,n,r,o,e,i)()}))}}return a}function el(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oAc(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>Ac(e,s))||i.push(s))}return[n,r,i]}var tl=()=>location.protocol+`//`+location.host;function nl(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Oc(n,``)}return Oc(n,e)+r+i}function rl(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=nl(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(Vs({},e.state,{scroll:Bc()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function il(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Bc():null}}function al(e){let{history:t,location:n}=window,r={value:nl(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:tl()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,Vs({},t.state,il(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=Vs({},i.value,t.state,{forward:e,scroll:Bc()});a(o.current,o,!0),a(e,Vs({},il(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function ol(e){e=Ic(e);let t=al(e),n=rl(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=Vs({location:``,base:e,go:r,createHref:Rc.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var sl={type:0,value:``},cl=/[a-zA-Z0-9_]/;function ll(e){if(!e)return[[]];if(e===`/`)return[[sl]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;st.length?t.length===1&&t[0]===80?1:-1:0}function hl(e,t){let n=0,r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}var _l={strict:!1,end:!0,sensitive:!1};function vl(e,t,n){let r=Vs(pl(ll(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function yl(e,t){let n=[],r=new Map;t=Gs(_l,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=xl(e);s.aliasOf=r&&r.record;let l=Gs(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(xl(Vs({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=vl(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Cl(d)&&o(e.name)),Dl(d)&&c(d),s.children){let e=s.children;for(let t=0;t{o(f)}:Us}function o(e){if(qc(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Tl(e,n);n.splice(t,0,e),e.record.name&&!Cl(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw qs(1,{location:e});s=i.record.name,a=Vs(bl(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&bl(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw qs(1,{location:e,currentLocation:t});s=i.record.name,a=Vs({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:wl(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function bl(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function xl(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Sl(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Sl(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Cl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function wl(e){return e.reduce((e,t)=>Vs(e,t.meta),{})}function Tl(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;hl(e,t[i])<0?r=i:n=i+1}let i=El(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function El(e){let t=e;for(;t=t.parent;)if(Dl(t)&&hl(e,t)===0)return t}function Dl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ol(e){let t=Un(Zs),n=Un(Qs),r=R(()=>{let n=O(e.to);return t.resolve(n)}),i=R(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(Ac.bind(null,i));if(o>-1)return o;let s=Nl(e[t-2]);return t>1&&Nl(i)===s&&a[a.length-1].path!==s?a.findIndex(Ac.bind(null,e[t-2])):o}),a=R(()=>i.value>-1&&Ml(n.params,r.value.params)),o=R(()=>i.value>-1&&i.value===n.matched.length-1&&jc(n.params,r.value.params));function s(n={}){if(jl(n)){let n=t[O(e.replace)?`replace`:`push`](O(e.to)).catch(Us);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:R(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function kl(e){return e.length===1?e[0]:e}var Al=Dr({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Ol,setup(e,{slots:t}){let n=E(Ol(e)),{options:r}=Un(Zs),i=R(()=>({[Pl(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Pl(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&kl(t.default(n));return e.custom?r:fo(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function jl(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ml(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!Ws(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function Nl(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Pl=(e,t,n)=>e??t??n,Fl=Dr({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=Un($s),i=R(()=>e.route||r.value),a=Un(Xs,0),o=R(()=>{let e=O(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=R(()=>i.value.matched[o.value]);Hn(Xs,R(()=>o.value+1)),Hn(Ys,s),Hn($s,i);let c=D();return Jn(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!Ac(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return Il(n.default,{Component:l,route:r});let u=o.props[a],d=fo(l,Vs({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return Il(n.default,{Component:d,route:r})||d}}});function Il(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Ll=Fl;function Rl(e){let t=yl(e.routes,e),n=e.parseQuery||Jc,r=e.stringifyQuery||Yc,i=e.history,a=Zc(),o=Zc(),s=Zc(),c=en(Fc),l=Fc;nc&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=Hs.bind(null,e=>``+e),d=Hs.bind(null,Sc),f=Hs.bind(null,Cc);function p(e,n){let r,i;return qc(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=Vs({},a||c.value),typeof e==`string`){let r=Ec(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return Vs(r,o,{params:f(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=Vs({},e,{path:Ec(n,e.path,a.path).path});else{let t=Vs({},e.params);for(let e in t)t[e]??delete t[e];o=Vs({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=Dc(r,Vs({},e,{hash:vc(l),path:s.path})),m=i.createHref(p);return Vs({fullPath:p,hash:l,query:r===Yc?Xc(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?Ec(n,e,c.value.path):Vs({},e)}function y(e,t){if(l!==e)return qs(8,{from:t,to:e})}function b(e){return C(e)}function x(e){return b(Vs(v(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),Vs({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n,i);if(u)return C(Vs(v(u),{state:typeof u==`object`?Vs({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&kc(r,i,n)&&(f=qs(16,{to:d,from:i}),fe(i,i,!0,!1)),(f?Promise.resolve(f):ne(d,i)).catch(e=>Js(e)?Js(e,2)?e:de(e):ue(e,d,i)).then(e=>{if(e){if(Js(e,2))return C(Vs({replace:s},v(e.to),{state:typeof e.to==`object`?Vs({},a,e.to.state):a,force:o}),t||d)}else e=ie(d,i,!0,s,a);return re(d,i,e),e})}function ee(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function te(e){let t=he.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function ne(e,t){let n,[r,i,s]=el(e,t);n=$c(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Qc(r,e,t))});let c=ee.bind(null,e,t);return n.push(c),_e(n).then(()=>{n=[];for(let r of a.list())n.push(Qc(r,e,t));return n.push(c),_e(n)}).then(()=>{n=$c(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Qc(r,e,t))});return n.push(c),_e(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(Ws(r.beforeEnter))for(let i of r.beforeEnter)n.push(Qc(i,e,t));else n.push(Qc(r.beforeEnter,e,t));return n.push(c),_e(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=$c(s,`beforeRouteEnter`,e,t,te),n.push(c),_e(n))).then(()=>{n=[];for(let r of o.list())n.push(Qc(r,e,t));return n.push(c),_e(n)}).catch(e=>Js(e,8)?e:Promise.reject(e))}function re(e,t,n){s.list().forEach(r=>te(()=>r(e,t,n)))}function ie(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===Fc,l=nc?history.state:{};n&&(r||s?i.replace(e.fullPath,Vs({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,fe(e,t,n,s),de()}let ae;function oe(){ae||=i.listen((e,t,n)=>{if(!ge.listening)return;let r=_(e),a=S(r,ge.currentRoute.value);if(a){C(Vs(a,{replace:!0,force:!0}),r).catch(Us);return}l=r;let o=c.value;nc&&Wc(Hc(o.fullPath,n.delta),Bc()),ne(r,o).catch(e=>Js(e,12)?e:Js(e,2)?(C(Vs(v(e.to),{force:!0}),r).then(e=>{Js(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(Us),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ue(e,r,o))).then(e=>{e||=ie(r,o,!1),e&&(n.delta&&!Js(e,8)?i.go(-n.delta,!1):n.type===`pop`&&Js(e,20)&&i.go(-1,!1)),re(r,o,e)}).catch(Us)})}let se=Zc(),ce=Zc(),le;function ue(e,t,n){de(e);let r=ce.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function w(){return le&&c.value!==Fc?Promise.resolve():new Promise((e,t)=>{se.add([e,t])})}function de(e){return le||(le=!e,oe(),se.list().forEach(([t,n])=>e?n(e):t()),se.reset()),e}function fe(t,n,r,i){let{scrollBehavior:a}=e;if(!nc||!a)return Promise.resolve();let o=!r&&Gc(Hc(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return On().then(()=>a(t,n,o)).then(e=>t===c.value&&e&&Vc(e)).catch(e=>t===c.value&&ue(e,t,n))}let pe=e=>i.go(e),me,he=new Set,ge={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:ce.add,isReady:w,install(e){e.component(`RouterLink`,Al),e.component(`RouterView`,Ll),e.config.globalProperties.$router=ge,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>O(c)}),nc&&!me&&c.value===Fc&&(me=!0,b(i.location).catch(e=>{}));let t={};for(let e in Fc)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(Zs,ge),e.provide(Qs,Ht(t)),e.provide($s,c);let n=e.unmount;he.add(e),e.unmount=function(){he.delete(e),he.size<1&&(l=Fc,ae&&ae(),ae=null,c.value=Fc,me=!1,le=!1),n()}}};function _e(e){return e.reduce((e,t)=>e.then(()=>te(t)),Promise.resolve())}return ge}var zl=E({toast:null,modal:null,sidebarOpen:!1}),Bl;function Vl(e,t=``,n=`success`){zl.toast={title:e,message:t,tone:n},clearTimeout(Bl),Bl=setTimeout(()=>{zl.toast=null},3200)}function Hl(e,t={}){zl.modal={component:e,props:t}}function Ul(){zl.modal=null}var Wl={state:zl,notify:Vl,openModal:Hl,closeModal:Ul},Gl=new Map;async function Kl(e,t={}){let n=t.body instanceof ArrayBuffer||t.body instanceof Blob||t.body instanceof FormData,r=await fetch(e,{credentials:`same-origin`,headers:{...t.body&&!n?{"Content-Type":`application/json`}:{},...t.headers},...t,body:t.body&&typeof t.body!=`string`&&!n?JSON.stringify(t.body):t.body}),i=(r.headers.get(`content-type`)||``).includes(`application/json`)?await r.json():await r.text();if(!r.ok){let t=Error(i?.message||`操作未完成,请稍后重试`);throw t.status=r.status,r.status===401&&![`/api/auth/me`,`/api/auth/login`,`/api/auth/login/totp`].includes(e)&&window.dispatchEvent(new CustomEvent(`eis:session-expired`)),t}return i}function V(e,t={}){if(String(t.method||`GET`).toUpperCase()!==`GET`||t.body!=null||t.signal)return Kl(e,t);let n=String(e);if(Gl.has(n))return Gl.get(n);let r=Kl(e,t).finally(()=>{Gl.get(n)===r&&Gl.delete(n)});return Gl.set(n,r),r}var ql=E({initialized:!1,loading:!1,error:``,publicData:{organization:{},notices:[],exams:[],stats:{}},user:null,profile:null,permissions:[],scopeLabel:``}),Jl;async function Yl(){return ql.publicData=await V(`/api/public/home`),ql.publicData}async function Xl(){try{let e=await V(`/api/auth/me`);return ql.user=e.user||null,ql.profile=e.profile||null,ql.permissions=e.permissions||[],ql.scopeLabel=e.scopeLabel||``,e}catch(e){if(e.status!==401)throw e;return $l(),{user:null,profile:null,permissions:[]}}}async function Zl({refresh:e=!1}={}){return ql.initialized&&!e?ql:Jl&&!e?Jl:(ql.loading=!0,ql.error=``,Jl=Promise.all([Yl(),Xl()]).then(()=>(ql.initialized=!0,ql)).catch(e=>{throw ql.error=e.message||`系统基础信息加载失败`,e}).finally(()=>{ql.loading=!1,Jl=null}),Jl)}function Ql(e){ql.user=e.user||null,ql.profile=e.profile||null,ql.permissions=e.permissions||[],ql.scopeLabel=e.scopeLabel||``}function $l(){ql.user=null,ql.profile=null,ql.permissions=[],ql.scopeLabel=``}async function eu(){await V(`/api/auth/logout`,{method:`POST`}),$l(),await Yl()}function tu(e=ql.user){return e?e.role===`candidate`?e.mustChangePassword||!ql.profile?.profileCompleted?`/candidate/onboarding`:`/candidate/dashboard`:e.role===`admission_school`?`/admission/dashboard`:`/admin/dashboard`:`/auth/login`}var H={state:ql,user:R(()=>ql.user),profile:R(()=>ql.profile),publicData:R(()=>ql.publicData),isAuthenticated:R(()=>!!ql.user),bootstrap:Zl,loadPublic:Yl,refreshSession:Xl,setSession:Ql,clearSession:$l,logout:eu,homeFor:tu},nu={__name:`App`,setup(e){let t=ec(),n=tc();function r(){H.clearSession(),Wl.notify(`登录状态已失效`,`请重新登录后继续办理`,`warning`),n.path!==`/auth/login`&&t.replace({path:`/auth/login`,query:{redirect:n.fullPath}})}return Hr(()=>window.addEventListener(`eis:session-expired`,r)),Gr(()=>window.removeEventListener(`eis:session-expired`,r)),(e,t)=>(M(),N(j,null,[F(O(Ll)),F(Do,{name:`toast`},{default:Bn(()=>[O(Wl).state.toast?(M(),N(`aside`,{key:0,class:be([`app-toast`,`is-${O(Wl).state.toast.tone}`]),role:`status`},[P(`strong`,null,T(O(Wl).state.toast.title),1),P(`span`,null,T(O(Wl).state.toast.message),1)],2)):L(``,!0)]),_:1}),(M(),ka(lr,{to:`body`},[O(Wl).state.modal?(M(),N(`div`,{key:0,class:`app-modal-backdrop`,onClick:t[1]||=As(e=>O(Wl).closeModal(),[`self`])},[(M(),ka(ei(O(Wl).state.modal.component),Va(O(Wl).state.modal.props,{onClose:t[0]||=e=>O(Wl).closeModal()}),null,16))])):L(``,!0)]))],64))}};function ru(e,t=!1){if(!e)return`—`;let n=new Date(e);return Number.isNaN(n.getTime())?String(e):new Intl.DateTimeFormat(`zh-CN`,{year:`numeric`,month:`2-digit`,day:`2-digit`,...t?{hour:`2-digit`,minute:`2-digit`,hour12:!1}:{}}).format(n)}function iu(e,t){if(!e&&!t)return`时间待发布`;let n=e?new Date(e):null,r=t?new Date(t):null;if(!n||Number.isNaN(n.getTime()))return ru(t);if(!r||Number.isNaN(r.getTime()))return ru(e);let i=e=>new Intl.DateTimeFormat(`zh-CN`,{year:`numeric`,month:`2-digit`,day:`2-digit`}).format(e);return`${i(n)} — ${i(r)}`}function au(e){return{open:`报名开放`,upcoming:`即将开放`,closed:`报名结束`}[e]||`已发布`}function ou(e){return new Intl.NumberFormat(`zh-CN`,{style:`currency`,currency:`CNY`}).format(Number(e||0))}function su(e={}){return{fixed_score:`固定总分线 ${e.passValue??`—`} 分`,rank_percent:`总成绩排名前 ${e.passValue??`—`}%`,subject_scores:`所有单科均达线`,none:`不判定合格`}[e.passPolicy]||`按考试规则判定`}function cu(e){return e?e.role===`candidate`?`/candidate/dashboard`:e.role===`admission_school`?`/admission/dashboard`:`/admin/dashboard`:`/auth/login`}var lu={class:`hz-site`},uu={class:`hz-service-bar`},du={class:`hz-container hz-service-bar__inner`},fu={key:0},pu={class:`hz-header`},mu={class:`hz-container hz-header__inner`},hu={class:`hz-header__actions`},gu=[`aria-expanded`],_u={id:`hz-main`},vu={class:`hz-hero`},yu={class:`hz-container`},bu={class:`hz-hero__grid`},xu={class:`hz-hero__content`},Su={class:`hz-hero__lead`},Cu={class:`hz-hero__actions`},wu={key:0,class:`hz-exam-docket`,"aria-label":`重点考试`},Tu={class:`hz-exam-docket__body`},Eu={class:`hz-subjects`},Du={key:0},Ou={key:1,class:`hz-exam-docket hz-exam-docket--empty`},ku={class:`hz-entry-section`,"aria-labelledby":`hz-entry-title`},Au={class:`hz-container`},ju={class:`hz-service-grid`},Mu={class:`hz-public-records`},Nu={class:`hz-container hz-records-grid`},Pu={class:`hz-notices`},Fu={class:`hz-section-heading`},Iu={key:0,class:`hz-featured-notice`},Lu={key:1,class:`hz-empty`},Ru={class:`hz-notice-list`},zu=[`onClick`],Bu={class:`hz-operation-board`,"aria-label":`平台运行概况`},Vu={id:`hz-exams`,class:`hz-exams`},Hu={class:`hz-container`},Uu={key:0,class:`hz-exam-grid`},Wu={key:1,class:`hz-empty hz-empty--large`},Gu={class:`hz-footer`},Ku={class:`hz-container hz-footer__main`},qu={key:0},Ju={key:1},Yu={class:`hz-footer__links`},Xu={class:`hz-footer__legal`},Zu={class:`hz-container`},Qu={__name:`HomePage`,props:{publicData:{type:Object,required:!0},session:{type:Object,required:!0}},emits:[`logout`],setup(e,{emit:t}){let n=e,r=t,i=D(!1),a=ec(),o=R(()=>n.publicData.notices||[]),s=R(()=>n.publicData.exams||[]),c=R(()=>n.publicData.stats||{}),l=R(()=>n.publicData.organization||{}),u=R(()=>n.publicData.siteCopy||{}),d=R(()=>n.session.user||null),f=R(()=>s.value.find(e=>e.registrationState===`open`)||s.value[0]||null),p=R(()=>o.value[0]||null),m=R(()=>d.value?d.value.role===`candidate`?`进入考生中心`:d.value.role===`admission_school`?`进入招生学校端`:`进入管理后台`:`登录`),h=R(()=>d.value?cu(d.value):n.publicData.selfRegistrationEnabled?`/auth/register`:`/auth/login`),g=R(()=>d.value?m.value:n.publicData.selfRegistrationEnabled?`申请固定报名号`:`使用报名号登录`);function _(e){i.value=!1,a.push(e)}function v(e){i.value=!1,document.querySelector(`#${e}`)?.scrollIntoView({behavior:`smooth`,block:`start`})}function y(){_(d.value?.role===`candidate`?`/candidate/exams`:`/auth/login`)}function b(e){return new Intl.NumberFormat(`zh-CN`).format(Number(e||0))}return(e,t)=>(M(),N(`div`,lu,[t[66]||=P(`a`,{class:`hz-skip`,href:`#hz-main`},`跳到主要内容`,-1),P(`div`,uu,[P(`div`,du,[t[23]||=P(`p`,null,[P(`span`,{"aria-hidden":`true`}),I(`考试信息公共服务平台`)],-1),P(`div`,null,[l.value.phone?(M(),N(`span`,fu,`咨询电话:`+T(l.value.phone),1)):L(``,!0),P(`button`,{type:`button`,onClick:t[0]||=e=>_(`/verify`)},`文书防伪查询`)])])]),P(`header`,pu,[P(`div`,mu,[P(`button`,{class:`hz-brand`,type:`button`,"aria-label":`返回首页`,onClick:t[1]||=e=>_(`/`)},[...t[24]||=[P(`span`,{class:`hz-brand__seal`,"aria-hidden":`true`},`衡`,-1),P(`span`,{class:`hz-brand__copy`},[P(`strong`,null,`衡准考试服务`),P(`small`,null,`EXAMINATION INFORMATION SERVICE`)],-1)]]),P(`nav`,{class:be([`hz-nav`,{"is-open":i.value}]),"aria-label":`主要导航`},[P(`button`,{type:`button`,class:`is-current`,onClick:t[2]||=e=>_(`/`)},`首页`),P(`button`,{type:`button`,onClick:t[3]||=e=>v(`hz-exams`)},`考试报名`),P(`button`,{type:`button`,onClick:t[4]||=e=>_(`/announcements`)},`通知公告`),P(`button`,{type:`button`,onClick:t[5]||=e=>_(`/verify`)},`防伪查询`),P(`button`,{type:`button`,onClick:t[6]||=e=>v(`hz-guide`)},`办事指南`)],2),P(`div`,hu,[P(`button`,{class:`hz-account-link`,type:`button`,onClick:t[7]||=e=>_(O(cu)(d.value))},T(m.value),1),d.value?(M(),N(`button`,{key:0,class:`hz-exit-link`,type:`button`,onClick:t[8]||=e=>r(`logout`)},`退出`)):L(``,!0),P(`button`,{class:`hz-menu`,type:`button`,"aria-expanded":i.value,"aria-label":`打开导航`,onClick:t[9]||=e=>i.value=!i.value},[...t[25]||=[P(`span`,null,null,-1),P(`span`,null,null,-1),P(`span`,null,null,-1)]],8,gu)])])]),P(`main`,_u,[P(`section`,vu,[P(`div`,yu,[p.value?(M(),N(`button`,{key:0,class:`hz-latest`,type:`button`,onClick:t[10]||=e=>_(`/announcements/${p.value.id}`)},[t[26]||=P(`span`,null,`最新发布`,-1),P(`strong`,null,T(p.value.title),1),P(`time`,null,T(O(ru)(p.value.publishAt)),1),t[27]||=P(`i`,{"aria-hidden":`true`},`→`,-1)])):L(``,!0),P(`div`,bu,[P(`div`,xu,[t[29]||=P(`p`,{class:`hz-kicker`},`统一入口 · 规范办理 · 全程留痕`,-1),P(`h1`,null,[I(T(u.value.heroTitle||`让每一次考试办理,`)+` `,1),P(`em`,null,T(u.value.heroHighlight||`都有清晰、可信的依据。`),1)]),P(`p`,Su,T(u.value.heroDescription||`面向考生、学校和考试管理机构,统一提供报名、准考证、成绩、录取与公开信息服务。`),1),P(`div`,Cu,[P(`button`,{class:`hz-button hz-button--primary`,type:`button`,onClick:t[11]||=e=>_(h.value)},[I(T(g.value),1),t[28]||=P(`span`,{"aria-hidden":`true`},`→`,-1)]),P(`button`,{class:`hz-button hz-button--secondary`,type:`button`,onClick:t[12]||=e=>v(`hz-exams`)},` 查看已发布考试 `)]),t[30]||=P(`dl`,{class:`hz-trust-list`},[P(`div`,null,[P(`dt`,null,`账户原则`),P(`dd`,null,`一个报名号长期使用`)]),P(`div`,null,[P(`dt`,null,`信息原则`),P(`dd`,null,`以平台正式发布为准`)]),P(`div`,null,[P(`dt`,null,`安全原则`),P(`dd`,null,`重要文书支持在线核验`)])],-1)]),f.value?(M(),N(`aside`,wu,[P(`header`,null,[P(`div`,null,[t[31]||=P(`span`,null,`重点考试`,-1),P(`small`,null,T(f.value.code),1)]),P(`em`,{class:be(`is-${f.value.registrationState}`)},T(O(au)(f.value.registrationState)),3)]),P(`div`,Tu,[t[35]||=P(`p`,null,`EXAMINATION NOTICE`,-1),P(`h2`,null,T(f.value.name),1),P(`dl`,null,[P(`div`,null,[t[32]||=P(`dt`,null,`报名时间`,-1),P(`dd`,null,T(O(iu)(f.value.registrationStart,f.value.registrationEnd)),1)]),P(`div`,null,[t[33]||=P(`dt`,null,`考试时间`,-1),P(`dd`,null,T(O(iu)(f.value.examStart,f.value.examEnd)),1)]),P(`div`,null,[t[34]||=P(`dt`,null,`考试地点`,-1),P(`dd`,null,T(f.value.location||`以准考证公布为准`),1)])]),P(`div`,Eu,[(M(!0),N(j,null,A(f.value.subjects?.slice(0,5),e=>(M(),N(`span`,{key:e.id||e.name},T(e.name),1))),128)),f.value.subjects?.length>5?(M(),N(`span`,Du,`+`+T(f.value.subjects.length-5),1)):L(``,!0)])]),P(`footer`,null,[P(`p`,null,[P(`strong`,null,T(b(f.value.registrationCount)),1),t[36]||=P(`span`,null,`人已报名`,-1)]),P(`button`,{type:`button`,onClick:y},T(f.value.registrationState===`open`?`办理报名`:`查看考试`)+` →`,1)])])):(M(),N(`aside`,Ou,[...t[37]||=[P(`span`,null,`考试发布栏`,-1),P(`h2`,null,`当前暂无已发布考试`,-1),P(`p`,null,`新考试发布后,将在此展示报名时间、考试安排和办理入口。`,-1)]]))])])]),P(`section`,ku,[P(`div`,Au,[t[43]||=P(`div`,{class:`hz-section-heading hz-section-heading--compact`},[P(`div`,null,[P(`p`,null,`ONLINE SERVICES`),P(`h2`,{id:`hz-entry-title`},`常用服务`)]),P(`span`,null,`按事项进入,减少查找和重复填写`)],-1),P(`div`,ju,[P(`button`,{type:`button`,onClick:t[13]||=e=>_(h.value)},[t[38]||=P(`span`,{class:`hz-service-grid__index`},`01`,-1),P(`strong`,null,T(d.value?`个人业务中心`:`报名号登录`),1),P(`small`,null,T(d.value?`继续办理当前账户下的考试事项`:`使用固定报名号进入考生服务`),1),t[39]||=P(`i`,null,`进入服务 →`,-1)]),P(`button`,{type:`button`,onClick:t[14]||=e=>v(`hz-exams`)},[...t[40]||=[P(`span`,{class:`hz-service-grid__index`},`02`,-1),P(`strong`,null,`考试报名`,-1),P(`small`,null,`查看开放考试、报名日期与科目安排`,-1),P(`i`,null,`查看考试 →`,-1)]]),P(`button`,{type:`button`,onClick:t[15]||=e=>_(d.value?.role===`candidate`?`/candidate/results`:`/auth/login`)},[...t[41]||=[P(`span`,{class:`hz-service-grid__index`},`03`,-1),P(`strong`,null,`成绩与准考证`,-1),P(`small`,null,`下载准考证,查询已正式发布的成绩`,-1),P(`i`,null,`办理查询 →`,-1)]]),P(`button`,{type:`button`,onClick:t[16]||=e=>_(`/verify`)},[...t[42]||=[P(`span`,{class:`hz-service-grid__index`},`04`,-1),P(`strong`,null,`文书防伪核验`,-1),P(`small`,null,`核对成绩单、录取通知书签发记录`,-1),P(`i`,null,`立即核验 →`,-1)]])])])]),P(`section`,Mu,[P(`div`,Nu,[P(`div`,Pu,[P(`div`,Fu,[t[44]||=P(`div`,null,[P(`p`,null,`PUBLIC INFORMATION`),P(`h2`,null,`通知公告`)],-1),P(`button`,{type:`button`,onClick:t[17]||=e=>_(`/announcements`)},`查看全部 →`)]),p.value?(M(),N(`article`,Iu,[P(`div`,null,[P(`span`,null,T(p.value.category||`通知公告`),1),P(`time`,null,T(O(ru)(p.value.publishAt)),1)]),P(`h3`,null,T(p.value.title),1),P(`p`,null,T(p.value.summary||`请进入公告正文查看完整内容和办理要求。`),1),P(`button`,{type:`button`,onClick:t[18]||=e=>_(`/announcements/${p.value.id}`)},[...t[45]||=[I(`阅读全文 `,-1),P(`span`,null,`→`,-1)]])])):(M(),N(`div`,Lu,`当前暂无通知公告`)),P(`div`,Ru,[(M(!0),N(j,null,A(o.value.slice(1,5),e=>(M(),N(`button`,{key:e.id,type:`button`,onClick:t=>_(`/announcements/${e.id}`)},[P(`time`,null,[P(`strong`,null,T(String(new Date(e.publishAt).getDate()).padStart(2,`0`)),1),P(`span`,null,T(new Date(e.publishAt).toLocaleDateString(`zh-CN`,{year:`numeric`,month:`2-digit`}).replace(`/`,`.`)),1)]),P(`span`,null,[P(`em`,null,T(e.category||`通知`),1),P(`strong`,null,T(e.title),1)]),t[46]||=P(`i`,null,`→`,-1)],8,zu))),128))])]),P(`aside`,Bu,[t[55]||=P(`header`,null,[P(`span`,null,`服务概况`),P(`small`,null,`数据随业务实时更新`)],-1),P(`dl`,null,[P(`div`,null,[t[48]||=P(`dt`,null,`在册考生`,-1),P(`dd`,null,[I(T(b(c.value.candidates)),1),t[47]||=P(`small`,null,`人`,-1)])]),P(`div`,null,[t[50]||=P(`dt`,null,`累计报名记录`,-1),P(`dd`,null,[I(T(b(c.value.registrations)),1),t[49]||=P(`small`,null,`条`,-1)])]),P(`div`,null,[t[52]||=P(`dt`,null,`当前开放考试`,-1),P(`dd`,null,[I(T(b(c.value.exams)),1),t[51]||=P(`small`,null,`项`,-1)])])]),P(`section`,null,[t[53]||=P(`strong`,null,`公开信息说明`,-1),t[54]||=P(`p`,null,`考试安排、录取公示及其他重要事项,以平台通知公告栏目正式发布内容为准。`,-1),P(`button`,{type:`button`,onClick:t[19]||=e=>_(`/announcements`)},`进入公开信息目录`)])])])]),P(`section`,Vu,[P(`div`,Hu,[t[59]||=P(`div`,{class:`hz-section-heading`},[P(`div`,null,[P(`p`,null,`EXAMINATIONS`),P(`h2`,null,`已发布考试`)]),P(`span`,null,`登录后按考试要求选择科目并提交报名`)],-1),s.value.length?(M(),N(`div`,Uu,[(M(!0),N(j,null,A(s.value,e=>(M(),N(`article`,{key:e.id,class:`hz-exam-card`},[P(`header`,null,[P(`span`,null,T(e.code),1),P(`em`,{class:be(`is-${e.registrationState}`)},T(O(au)(e.registrationState)),3)]),P(`h3`,null,T(e.name),1),P(`p`,null,T(e.description||`考试具体安排与报名要求请以正式通知为准。`),1),P(`dl`,null,[P(`div`,null,[t[56]||=P(`dt`,null,`报名日期`,-1),P(`dd`,null,T(O(iu)(e.registrationStart,e.registrationEnd)),1)]),P(`div`,null,[t[57]||=P(`dt`,null,`考试日期`,-1),P(`dd`,null,T(O(iu)(e.examStart,e.examEnd)),1)]),P(`div`,null,[t[58]||=P(`dt`,null,`科目`,-1),P(`dd`,null,T(e.subjects?.length||0)+` 科 · 总分 `+T(e.totalScore||0)+` 分`,1)])]),P(`footer`,null,[P(`span`,null,T(b(e.registrationCount))+` 人已报名`,1),P(`button`,{type:`button`,onClick:y},T(e.registrationState===`open`?`选择科目报名`:`查看考试`)+` →`,1)])]))),128))])):(M(),N(`div`,Wu,`当前没有已发布的考试,请留意通知公告。`))])]),t[60]||=La(`

办事指南

一个报名号,贯穿完整考试服务

报名号是考生的长期账户。每场考试新增报名记录,不重复创建个人账户。
  1. 1
    领取报名号

    由学校创建,或在开放自主注册时在线申请。

  2. 2
    完善个人资料

    首次登录修改密码,并按要求提交真实资料。

  3. 3
    选择考试科目

    资料审核通过后,在开放期内完成报名。

  4. 4
    办理后续事项

    使用同一报名号下载准考证、查分和查看录取。

`,1)]),P(`footer`,Gu,[P(`div`,Ku,[t[64]||=P(`div`,{class:`hz-footer__brand`},[P(`span`,{class:`hz-brand__seal`,"aria-hidden":`true`},`衡`),P(`div`,null,[P(`strong`,null,`衡准考试服务`),P(`small`,null,`规范 · 准确 · 可追溯`)])],-1),P(`dl`,null,[P(`div`,null,[t[61]||=P(`dt`,null,`主管单位`,-1),P(`dd`,null,T(l.value.name||`考试信息管理机构`),1)]),l.value.phone?(M(),N(`div`,qu,[t[62]||=P(`dt`,null,`咨询电话`,-1),P(`dd`,null,T(l.value.phone),1)])):L(``,!0),l.value.address?(M(),N(`div`,Ju,[t[63]||=P(`dt`,null,`联系地址`,-1),P(`dd`,null,T(l.value.address),1)])):L(``,!0)]),P(`div`,Yu,[P(`button`,{type:`button`,onClick:t[20]||=e=>_(`/announcements`)},`通知公告`),P(`button`,{type:`button`,onClick:t[21]||=e=>_(`/verify`)},`文书核验`),P(`button`,{type:`button`,onClick:t[22]||=e=>_(`/auth/login`)},`服务登录`)])]),P(`div`,Xu,[P(`div`,Zu,[P(`span`,null,T(u.value.footerNotice||`公开信息以本平台正式发布内容为准`),1),t[65]||=P(`span`,null,`请勿在非官方页面提交密码或验证码`,-1)])])])]))}},$u={__name:`HomeView`,setup(e){async function t(){await H.logout()}return(e,n)=>(M(),ka(Qu,{"public-data":O(H).state.publicData,session:O(H).state,onLogout:t},null,8,[`public-data`,`session`]))}},ed={class:`public-frame`},td={class:`public-frame__utility`},nd={class:`app-container`},rd={key:0},id={class:`public-frame__header`},ad={class:`app-container`},od={class:`public-frame__actions`},sd=[`aria-expanded`],cd={class:`public-frame__main`},ld={class:`public-frame__footer`},ud={class:`app-container`},dd={__name:`PublicFrame`,setup(e){let t=ec(),n=D(!1),r=R(()=>H.state.publicData.organization||{});async function i(){await H.logout(),await t.push(`/`)}return(e,t)=>(M(),N(`div`,ed,[P(`div`,td,[P(`div`,nd,[t[2]||=P(`span`,null,`考试信息公共服务平台`,-1),r.value.phone?(M(),N(`span`,rd,`咨询电话:`+T(r.value.phone),1)):L(``,!0)])]),P(`header`,id,[P(`div`,ad,[F(O(Al),{class:`app-brand`,to:`/`,onClick:t[0]||=e=>n.value=!1},{default:Bn(()=>[...t[3]||=[P(`span`,null,`衡`,-1),P(`div`,null,[P(`strong`,null,`衡准考试服务`),P(`small`,null,`EXAMINATION INFORMATION SERVICE`)],-1)]]),_:1}),P(`nav`,{class:be({"is-open":n.value}),"aria-label":`公共服务导航`},[F(O(Al),{to:`/`},{default:Bn(()=>[...t[4]||=[I(`首页`,-1)]]),_:1}),F(O(Al),{to:`/announcements`},{default:Bn(()=>[...t[5]||=[I(`通知公告`,-1)]]),_:1}),F(O(Al),{to:`/verify`},{default:Bn(()=>[...t[6]||=[I(`文书核验`,-1)]]),_:1})],2),P(`div`,od,[O(H).state.user?(M(),ka(O(Al),{key:1,class:`app-button app-button--primary`,to:O(H).homeFor()},{default:Bn(()=>[...t[8]||=[I(`进入业务中心`,-1)]]),_:1},8,[`to`])):(M(),ka(O(Al),{key:0,class:`app-button app-button--primary`,to:`/auth/login`},{default:Bn(()=>[...t[7]||=[I(`登录`,-1)]]),_:1})),O(H).state.user?(M(),N(`button`,{key:2,class:`app-link-button`,type:`button`,onClick:i},`退出`)):L(``,!0),P(`button`,{class:`public-frame__menu`,type:`button`,"aria-expanded":n.value,"aria-label":`打开导航`,onClick:t[1]||=e=>n.value=!n.value},`☰`,8,sd)])])]),P(`main`,cd,[ri(e.$slots,`default`)]),P(`footer`,ld,[P(`div`,ud,[P(`div`,null,[P(`strong`,null,T(r.value.name||`考试信息管理机构`),1),P(`span`,null,T(r.value.address||`统一考试公共服务平台`),1)]),t[9]||=P(`span`,null,`公开信息以本平台正式发布内容为准`,-1)])])]))}},fd={key:0,class:`page-state page-state--loading`,role:`status`},pd={key:1,class:`page-state page-state--error`},md={key:2,class:`page-state page-state--empty`},hd={__name:`PageState`,props:{loading:Boolean,error:{type:String,default:``},empty:Boolean,emptyTitle:{type:String,default:`暂无数据`},emptyText:{type:String,default:`当前没有可显示的业务记录。`}},emits:[`retry`],setup(e){return(t,n)=>e.loading?(M(),N(`div`,fd,[...n[1]||=[P(`i`,null,null,-1),P(`strong`,null,`正在读取数据`,-1)]])):e.error?(M(),N(`div`,pd,[n[2]||=P(`span`,null,`!`,-1),n[3]||=P(`strong`,null,`页面加载失败`,-1),P(`p`,null,T(e.error),1),P(`button`,{type:`button`,onClick:n[0]||=e=>t.$emit(`retry`)},`重新加载`)])):e.empty?(M(),N(`div`,md,[P(`strong`,null,T(e.emptyTitle),1),P(`p`,null,T(e.emptyText),1)])):ri(t.$slots,`default`,{},void 0,void 0,3)}};function gd(e,t={}){let n=(e.notices||[]).filter(e=>!String(e.id).startsWith(`system-`)).map(e=>({...e,documentId:String(e.id),documentType:`notice`,subtype:e.category||`通知公告`,publishedAt:e.publishAt})),r=(t.plans||[]).map(e=>({...e,documentId:`plan-${e.id}`,documentType:`plan`,category:`招生公示`,subtype:`招生计划`,title:`${e.examName} · ${e.schoolName}招生计划公示`,summary:`共 ${e.rows?.reduce((e,t)=>e+Number(t.quota||0),0)||0} 个招生名额。`})),i=(t.qualifications||[]).map(e=>({...e,documentId:`qualification-${e.id}`,documentType:`qualification`,category:`录取公示`,subtype:`指标资格`,title:`${e.examName} · ${e.schoolName}指标分配资格公示`,summary:`公开 ${e.rows?.length||0} 名考生的指标分配资格。`})),a=(t.admissions||[]).map(e=>({...e,documentId:`admission-${e.id}`,documentType:`admission`,category:`录取公示`,subtype:e.round?`第 ${e.round} 轮录取名单`:`最终录取名单`,title:e.title||`${e.examName}最终录取名单`,summary:`共 ${e.rows?.length||0} 名考生正式录取。`})),o=(t.cutoffs||[]).map(e=>({...e,documentId:`cutoff-${e.id}`,documentType:`cutoff`,category:`录取公示`,subtype:`录取分数线`,title:`${e.examName}录取分数线`,summary:`公布 ${e.rows?.length||0} 条学校及类别录取分数线。`})),s=(t.reports||[]).map(e=>({...e,documentId:`reporting-${e.id}`,documentType:`reporting`,category:`录取公示`,subtype:e.supplementDecision===`supplement`?`报到与补录`:`报到情况`}));return[...n,...r,...i,...a,...o,...s].sort((e,t)=>new Date(t.publishedAt)-new Date(e.publishedAt))}var _d={class:`app-container public-directory`},vd={class:`public-directory__filters`},yd=[`onClick`],bd={class:`public-directory__content`},xd={class:`directory-toolbar`},Sd={class:`directory-list`},Cd=[`onClick`],wd={key:0,class:`page-state page-state--empty`},Td={key:0,class:`app-pagination`,"aria-label":`公告分页`},Ed=[`disabled`],Dd=[`disabled`],Od=10,kd={__name:`AnnouncementListView`,setup(e){let t=ec(),n=D(!0),r=D(``),i=D([]),a=D(``),o=D(`全部`),s=D(1),c=R(()=>[`全部`,...new Set(i.value.map(e=>e.category||`通知公告`))]),l=R(()=>{let e=a.value.trim().toLowerCase();return i.value.filter(t=>(o.value===`全部`||t.category===o.value)&&(!e||[t.title,t.summary,t.category,t.subtype].join(` `).toLowerCase().includes(e)))}),u=R(()=>Math.max(1,Math.ceil(l.value.length/Od))),d=R(()=>l.value.slice((s.value-1)*Od,s.value*Od));async function f(){n.value=!0,r.value=``;try{let e=await V(`/api/public/announcements`);i.value=gd(H.state.publicData,e)}catch(e){r.value=e.message}finally{n.value=!1}}function p(e){o.value=e,s.value=1}function m(){s.value=1}return Hr(f),(e,h)=>(M(),ka(dd,null,{default:Bn(()=>[h[7]||=P(`section`,{class:`public-page-head`},[P(`div`,{class:`app-container`},[P(`p`,null,`PUBLIC RECORDS`),P(`h1`,null,`通知公告与公开公示`),P(`span`,null,`考试通知、成绩发布、招生计划和录取公示统一归档。`)])],-1),P(`section`,_d,[F(hd,{loading:n.value,error:r.value,empty:!i.value.length,onRetry:f},{default:Bn(()=>[P(`aside`,vd,[h[3]||=P(`strong`,null,`信息分类`,-1),(M(!0),N(j,null,A(c.value,e=>(M(),N(`button`,{key:e,class:be({active:o.value===e}),type:`button`,onClick:t=>p(e)},[I(T(e),1),P(`span`,null,T(e===`全部`?i.value.length:i.value.filter(t=>t.category===e).length),1)],10,yd))),128))]),P(`div`,bd,[P(`div`,xd,[P(`label`,null,[h[4]||=P(`span`,null,`搜索公开信息`,-1),k(P(`input`,{"onUpdate:modelValue":h[0]||=e=>a.value=e,placeholder:`输入标题、分类或摘要`,onInput:m},null,544),[[z,a.value]])]),P(`small`,null,`共 `+T(l.value.length)+` 条`,1)]),P(`div`,Sd,[(M(!0),N(j,null,A(d.value,e=>(M(),N(`button`,{key:e.documentId,type:`button`,onClick:n=>O(t).push(`/announcements/${e.documentId}`)},[P(`time`,null,[P(`strong`,null,T(String(new Date(e.publishedAt).getDate()).padStart(2,`0`)),1),P(`span`,null,T(O(ru)(e.publishedAt).slice(0,7)),1)]),P(`span`,null,[P(`em`,null,T(e.subtype),1),P(`strong`,null,T(e.title),1),P(`small`,null,T(e.summary||`进入查看完整公开内容`),1)]),h[5]||=P(`i`,null,`→`,-1)],8,Cd))),128)),d.value.length?L(``,!0):(M(),N(`div`,wd,[...h[6]||=[P(`strong`,null,`没有符合条件的信息`,-1),P(`p`,null,`请调整分类或搜索关键词。`,-1)]]))]),u.value>1?(M(),N(`nav`,Td,[P(`button`,{type:`button`,disabled:s.value<=1,onClick:h[1]||=e=>s.value--},`上一页`,8,Ed),P(`span`,null,`第 `+T(s.value)+` / `+T(u.value)+` 页`,1),P(`button`,{type:`button`,disabled:s.value>=u.value,onClick:h[2]||=e=>s.value++},`下一页`,8,Dd)])):L(``,!0)])]),_:1},8,[`loading`,`error`,`empty`])])]),_:1}))}},U={__name:`StatusBadge`,props:{value:{type:[String,Boolean,Number],default:``}},setup(e){let t=e,n={approved:`已通过`,pending:`待处理`,rejected:`已退回`,draft:`草稿`,published:`已发布`,open:`开放中`,upcoming:`即将开放`,closed:`已结束`,archived:`已归档`,completed:`已完成`,active:`正常`,disabled:`已停用`,unpaid:`未缴费`,paid:`已缴费`,final:`正式录取`,school_review:`学校审核`,withdrawal_pending:`退档待审`,reported:`已报到`,not_reported:`未报到`};return(e,r)=>(M(),N(`span`,{class:be([`status-badge`,`is-${String(t.value).replaceAll(`_`,`-`)}`])},T(n[t.value]||t.value||`—`),3))}},Ad={class:`app-container document-page`},jd={key:0,class:`public-document`},Md=[`innerHTML`],Nd={key:1,class:`document-reporting`},Pd={class:`record-metrics`},Fd={key:2,class:`document-table-wrap`},Id={key:0},Ld={key:1},Rd={key:2},zd={key:3},Bd={__name:`AnnouncementDetailView`,setup(e){let t=tc(),n=ec(),r=D(!0),i=D(``),a=D(null);async function o(){r.value=!0,i.value=``;try{let e=String(t.params.id),n=await V(`/api/public/announcements`);if(a.value=gd(H.state.publicData,n).find(t=>t.documentId===e)||null,a.value?.documentType===`notice`){let t=await V(`/api/public/notices/${encodeURIComponent(e)}`);a.value={...a.value,...t.notice}}if(!a.value)throw Error(`公告不存在或尚未公开`)}catch(e){i.value=e.message}finally{r.value=!1}}return Hr(o),(e,t)=>(M(),ka(dd,null,{default:Bn(()=>[P(`section`,Ad,[P(`button`,{class:`document-page__back`,type:`button`,onClick:t[0]||=e=>O(n).push(`/announcements`)},`← 返回公开信息目录`),F(hd,{loading:r.value,error:i.value,onRetry:o},{default:Bn(()=>[a.value?(M(),N(`article`,jd,[P(`header`,null,[P(`span`,null,T(a.value.category)+` · `+T(a.value.subtype),1),P(`h1`,null,T(a.value.title),1),P(`p`,null,[I(T(O(ru)(a.value.publishedAt||a.value.publishAt,!0)),1),a.value.author?(M(),N(j,{key:0},[I(` · `+T(a.value.author),1)],64)):L(``,!0)])]),a.value.documentType===`notice`?(M(),N(`section`,{key:0,class:`document-richtext`,innerHTML:a.value.contentHtml||`

${String(a.value.content||``).replaceAll(` +`,`

`)}

`},null,8,Md)):a.value.documentType===`reporting`?(M(),N(`section`,Nd,[P(`div`,Pd,[P(`article`,null,[t[1]||=P(`span`,null,`招生计划`,-1),P(`strong`,null,T(a.value.statistics?.totalQuota||0),1)]),P(`article`,null,[t[2]||=P(`span`,null,`正式录取`,-1),P(`strong`,null,T(a.value.statistics?.finalCount||0),1)]),P(`article`,null,[t[3]||=P(`span`,null,`已报到`,-1),P(`strong`,null,T(a.value.statistics?.reportedCount||0),1)]),P(`article`,null,[t[4]||=P(`span`,null,`完成率`,-1),P(`strong`,null,T(a.value.statistics?.reportingRate||0)+`%`,1)])]),P(`p`,null,T(a.value.decisionNote||a.value.summary),1)])):(M(),N(`section`,Fd,[P(`p`,null,T(a.value.summary),1),a.value.documentType===`plan`?(M(),N(`table`,Id,[t[5]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`类别代码`),P(`th`,null,`招生类别`),P(`th`,null,`计划人数`),P(`th`,null,`定向指标`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(a.value.rows,e=>(M(),N(`tr`,{key:e.code},[P(`td`,null,T(e.code),1),P(`td`,null,T(e.name),1),P(`td`,null,T(e.quota),1),P(`td`,null,T(e.indicatorQuota||0),1)]))),128))])])):a.value.documentType===`qualification`?(M(),N(`table`,Ld,[t[6]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`报名号`),P(`th`,null,`姓名`),P(`th`,null,`指标资格`),P(`th`,null,`特长类型`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(a.value.rows,e=>(M(),N(`tr`,{key:e.registrationNumber},[P(`td`,null,T(e.registrationNumber),1),P(`td`,null,T(e.name),1),P(`td`,null,[F(U,{value:e.eligible?`approved`:`rejected`},null,8,[`value`])]),P(`td`,null,T(e.specialtyLabel||`普通生`),1)]))),128))])])):a.value.documentType===`admission`?(M(),N(`table`,Rd,[t[7]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`报名号`),P(`th`,null,`姓名`),P(`th`,null,`总成绩`),P(`th`,null,`录取学校`),P(`th`,null,`录取类别`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(a.value.rows,e=>(M(),N(`tr`,{key:e.registrationNumber},[P(`td`,null,T(e.registrationNumber),1),P(`td`,null,T(e.name),1),P(`td`,null,T(e.totalScore),1),P(`td`,null,T(e.admittedSchool),1),P(`td`,null,T(e.categoryName),1)]))),128))])])):(M(),N(`table`,zd,[t[8]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`招生学校`),P(`th`,null,`招生类别`),P(`th`,null,`计划数`),P(`th`,null,`录取数`),P(`th`,null,`最高分`),P(`th`,null,`分数线`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(a.value.rows,e=>(M(),N(`tr`,{key:`${e.schoolName}-${e.categoryName}`},[P(`td`,null,T(e.schoolName),1),P(`td`,null,T(e.categoryName),1),P(`td`,null,T(e.planQuota),1),P(`td`,null,T(e.admittedCount),1),P(`td`,null,T(e.highestScore),1),P(`td`,null,[P(`strong`,null,T(e.cutoffScore),1)])]))),128))])]))]))])):L(``,!0)]),_:1},8,[`loading`,`error`])])]),_:1}))}},Vd={class:`verification-page app-container`},Hd=[`disabled`],Ud={key:0,class:`verification-result is-valid`},Wd={key:0},Gd={key:1,class:`verification-result is-invalid`},Kd={__name:`VerificationView`,setup(e){let t=tc(),n=ec(),r=D(String(t.params.code||``)),i=D(!1),a=D(null),o=D(``);async function s(e=r.value){let s=e.trim().toUpperCase();if(s){if(String(t.params.code||``)!==s){await n.push(`/verify/${encodeURIComponent(s)}`);return}i.value=!0,a.value=null,o.value=``;try{a.value=await V(`/api/public/verifications/${encodeURIComponent(s)}`)}catch(e){o.value=e.message}finally{i.value=!1}}}return Jn(()=>t.params.code,e=>{r.value=String(e||``),e&&s(String(e))}),Hr(()=>{t.params.code&&s(String(t.params.code))}),(e,t)=>(M(),ka(dd,null,{default:Bn(()=>[P(`section`,Vd,[t[13]||=P(`div`,{class:`verification-page__intro`},[P(`p`,null,`DOCUMENT AUTHENTICITY`),P(`h1`,null,`文书防伪查询`),P(`span`,null,`核对成绩单和录取通知书的系统签发记录。`)],-1),P(`form`,{class:`verification-form`,onSubmit:t[1]||=As(e=>s(),[`prevent`])},[P(`label`,null,[t[2]||=P(`span`,null,`防伪查询码`,-1),k(P(`input`,{"onUpdate:modelValue":t[0]||=e=>r.value=e,required:``,autocomplete:`off`,placeholder:`例如 SR-XXXXXXXXXXXXXXXXXXXXXXXX`},null,512),[[z,r.value]])]),P(`button`,{type:`submit`,disabled:i.value},T(i.value?`正在核验…`:`立即核验`),9,Hd)],32),a.value?.document?(M(),N(`section`,Ud,[t[8]||=P(`span`,null,`✓`,-1),t[9]||=P(`div`,null,[P(`small`,null,`VERIFIED DOCUMENT`),P(`h2`,null,`文书真实有效`),P(`p`,null,`查询码与系统签发记录一致。`)],-1),P(`dl`,null,[P(`div`,null,[t[3]||=P(`dt`,null,`文书类型`,-1),P(`dd`,null,T(a.value.document.typeName),1)]),P(`div`,null,[t[4]||=P(`dt`,null,`考生`,-1),P(`dd`,null,T(a.value.document.candidateName),1)]),P(`div`,null,[t[5]||=P(`dt`,null,`考试`,-1),P(`dd`,null,T(a.value.document.examName),1)]),a.value.document.schoolName?(M(),N(`div`,Wd,[t[6]||=P(`dt`,null,`录取学校`,-1),P(`dd`,null,T(a.value.document.schoolName),1)])):L(``,!0),P(`div`,null,[t[7]||=P(`dt`,null,`签发时间`,-1),P(`dd`,null,T(O(ru)(a.value.document.issuedAt,!0)),1)])])])):o.value?(M(),N(`section`,Gd,[t[12]||=P(`span`,null,`!`,-1),P(`div`,null,[t[10]||=P(`small`,null,`NOT VERIFIED`,-1),t[11]||=P(`h2`,null,`未找到有效文书`,-1),P(`p`,null,T(o.value),1)])])):L(``,!0),t[14]||=P(`aside`,{class:`verification-safety`},[P(`strong`,null,`安全提示`),P(`p`,null,`查询结果只展示脱敏身份与文书摘要。请勿在非官方页面提交密码或验证码。`)],-1)])]),_:1}))}},qd={class:`auth-view__identity`},Jd={class:`auth-view__panel`},Yd={key:0,class:`form-error`},Xd={key:2},Zd=[`disabled`],Qd={key:4,class:`auth-card__switch`},$d={key:0,class:`form-error`},ef={class:`form-grid`},tf=[`value`],nf=[`value`],rf=[`disabled`],af={class:`auth-card__switch`},of={key:2,class:`auth-card issued-card`},sf={key:3,class:`auth-card`},cf={__name:`AuthView`,props:{mode:{type:String,required:!0}},setup(e){let t=e,n=tc(),r=ec(),i=D(!1),a=D(``),o=D(``),s=D(``),c=E({username:``,password:``,code:``}),l=E({name:``,gender:``,schoolId:``,classId:``,password:``}),u=R(()=>H.state.publicData.schools||[]),d=R(()=>(H.state.publicData.classes||[]).filter(e=>e.schoolId===l.schoolId)),f=R(()=>!!H.state.publicData.selfRegistrationEnabled);async function p(){i.value=!0,a.value=``;try{let e=o.value?await V(`/api/auth/login/totp`,{method:`POST`,body:{challenge:o.value,code:c.code}}):await V(`/api/auth/login`,{method:`POST`,body:{username:c.username,password:c.password}});if(e.requiresTotp){o.value=e.challenge;return}H.setSession(e),await H.refreshSession();let t=typeof n.query.redirect==`string`?n.query.redirect:H.homeFor(e.user);await r.replace(t)}catch(e){a.value=e.message}finally{i.value=!1}}async function m(){i.value=!0,a.value=``;try{let e=await V(`/api/auth/register`,{method:`POST`,body:l});s.value=e.registrationNumber}catch(e){a.value=e.message}finally{i.value=!1}}function h(){document.documentElement.classList.toggle(`auth-login-active`,t.mode===`login`)}return Jn(()=>t.mode,()=>{a.value=``,o.value=``,s.value=``,h()}),Hr(h),Kr(()=>document.documentElement.classList.remove(`auth-login-active`)),(t,n)=>(M(),N(`main`,{class:be([`auth-view`,`auth-view--${e.mode}`])},[P(`section`,qd,[F(O(Al),{class:`app-brand app-brand--light`,to:`/`},{default:Bn(()=>[...n[10]||=[P(`span`,null,`衡`,-1),P(`div`,null,[P(`strong`,null,`衡准考试服务`),P(`small`,null,`EXAMINATION INFORMATION SERVICE`)],-1)]]),_:1}),P(`div`,null,[n[15]||=P(`p`,null,`CANDIDATE SERVICE`,-1),P(`h1`,null,[e.mode===`login`?(M(),N(j,{key:0},[n[11]||=P(`span`,null,`一个报名号,`,-1),n[12]||=P(`span`,null,`办理每一次考试。`,-1)],64)):(M(),N(j,{key:1},[n[13]||=P(`span`,null,`申请长期使用的`,-1),n[14]||=P(`span`,null,`固定报名号。`,-1)],64))]),n[16]||=P(`span`,null,`报名号就是考生账户,不因考试、科目或年度报名而改变。`,-1)]),n[17]||=P(`small`,null,`统一身份 · 全程留痕 · 文书可核验`,-1)]),P(`section`,Jd,[F(O(Al),{class:`auth-view__back`,to:`/`},{default:Bn(()=>[...n[18]||=[I(`← 返回首页`,-1)]]),_:1}),e.mode===`login`?(M(),N(`form`,{key:0,class:`auth-card`,onSubmit:As(p,[`prevent`])},[P(`p`,null,T(o.value?`SECOND STEP`:`ACCOUNT LOGIN`),1),P(`h2`,null,T(o.value?`输入动态验证码`:`报名号登录`),1),P(`span`,null,T(o.value?`输入验证器当前显示的 6 位验证码,或使用一个恢复码。`:`考生填写报名号和密码;管理员使用管理账号。`),1),a.value?(M(),N(`div`,Yd,T(a.value),1)):L(``,!0),o.value?(M(),N(`label`,Xd,[n[21]||=P(`span`,null,`动态验证码或恢复码`,-1),k(P(`input`,{"onUpdate:modelValue":n[2]||=e=>c.code=e,autocomplete:`one-time-code`,required:``,autofocus:``},null,512),[[z,c.code]])])):(M(),N(j,{key:1},[P(`label`,null,[n[19]||=P(`span`,null,`报名号 / 管理员账号`,-1),k(P(`input`,{"onUpdate:modelValue":n[0]||=e=>c.username=e,autocomplete:`username`,required:``},null,512),[[z,c.username]])]),P(`label`,null,[n[20]||=P(`span`,null,`密码`,-1),k(P(`input`,{"onUpdate:modelValue":n[1]||=e=>c.password=e,type:`password`,autocomplete:`current-password`,required:``},null,512),[[z,c.password]])])],64)),P(`button`,{class:`app-button app-button--primary app-button--large`,type:`submit`,disabled:i.value},T(i.value?`正在处理…`:o.value?`验证并登录`:`登录系统`),9,Zd),o.value?(M(),N(`button`,{key:3,class:`app-link-button`,type:`button`,onClick:n[3]||=e=>{o.value=``,c.code=``}},`返回账号密码登录`)):L(``,!0),f.value?(M(),N(`p`,Qd,[n[23]||=I(`还没有报名号?`,-1),F(O(Al),{to:`/auth/register`},{default:Bn(()=>[...n[22]||=[I(`在线申请`,-1)]]),_:1})])):L(``,!0)],32)):f.value&&!s.value?(M(),N(`form`,{key:1,class:`auth-card`,onSubmit:As(m,[`prevent`])},[n[34]||=P(`p`,null,`CANDIDATE NUMBER`,-1),n[35]||=P(`h2`,null,`申请固定报名号`,-1),n[36]||=P(`span`,null,`提交基础学籍范围后,系统会生成长期使用的报名号。`,-1),a.value?(M(),N(`div`,$d,T(a.value),1)):L(``,!0),P(`div`,ef,[P(`label`,null,[n[24]||=P(`span`,null,`考生姓名`,-1),k(P(`input`,{"onUpdate:modelValue":n[4]||=e=>l.name=e,required:``},null,512),[[z,l.name]])]),P(`label`,null,[n[26]||=P(`span`,null,`性别`,-1),k(P(`select`,{"onUpdate:modelValue":n[5]||=e=>l.gender=e,required:``},[...n[25]||=[P(`option`,{value:``},`请选择`,-1),P(`option`,null,`男`,-1),P(`option`,null,`女`,-1)]],512),[[B,l.gender]])]),P(`label`,null,[n[28]||=P(`span`,null,`就读学校`,-1),k(P(`select`,{"onUpdate:modelValue":n[6]||=e=>l.schoolId=e,required:``,onChange:n[7]||=e=>l.classId=``},[n[27]||=P(`option`,{value:``},`请选择`,-1),(M(!0),N(j,null,A(u.value,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,tf))),128))],544),[[B,l.schoolId]])]),P(`label`,null,[n[30]||=P(`span`,null,`班级`,-1),k(P(`select`,{"onUpdate:modelValue":n[8]||=e=>l.classId=e,required:``},[n[29]||=P(`option`,{value:``},`请选择`,-1),(M(!0),N(j,null,A(d.value,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,nf))),128))],512),[[B,l.classId]])])]),P(`label`,null,[n[31]||=P(`span`,null,`设置登录密码`,-1),k(P(`input`,{"onUpdate:modelValue":n[9]||=e=>l.password=e,type:`password`,minlength:`8`,required:``},null,512),[[z,l.password]])]),P(`button`,{class:`app-button app-button--primary app-button--large`,type:`submit`,disabled:i.value},T(i.value?`正在生成…`:`生成我的报名号`),9,rf),P(`p`,af,[n[33]||=I(`已有报名号?`,-1),F(O(Al),{to:`/auth/login`},{default:Bn(()=>[...n[32]||=[I(`返回登录`,-1)]]),_:1})])],32)):s.value?(M(),N(`section`,of,[n[38]||=P(`p`,null,`CANDIDATE NUMBER`,-1),n[39]||=P(`h2`,null,`请保存你的报名号`,-1),P(`strong`,null,T(s.value),1),n[40]||=P(`span`,null,`以后报名不同考试仍使用这个号码,请立即抄写并安全保存。`,-1),F(O(Al),{class:`app-button app-button--primary app-button--large`,to:`/auth/login`},{default:Bn(()=>[...n[37]||=[I(`前往登录`,-1)]]),_:1})])):(M(),N(`section`,sf,[n[42]||=P(`p`,null,`REGISTRATION CLOSED`,-1),n[43]||=P(`h2`,null,`自主注册暂未开放`,-1),n[44]||=P(`span`,null,`请联系学校领取报名号和初始密码。`,-1),F(O(Al),{class:`app-button app-button--primary app-button--large`,to:`/auth/login`},{default:Bn(()=>[...n[41]||=[I(`返回登录`,-1)]]),_:1})]))])],2))}},lf=[{page:`dashboard`,label:`总览`,group:`个人总览`},{page:`profile`,label:`个人资料`,group:`账户与档案`},{page:`security`,label:`账户安全`,group:`账户与档案`},{page:`exams`,label:`考试报名`,group:`考试服务`},{page:`registrations`,label:`我的报名`,group:`考试服务`},{page:`admit`,label:`准考证`,group:`考试服务`},{page:`results`,label:`成绩查询`,group:`考试服务`},{page:`admissions`,label:`志愿与录取`,group:`招生录取`},{page:`notices`,label:`通知公告`,group:`招生录取`}],uf=[{page:`dashboard`,label:`工作台`,group:`运行总览`,levels:[`super`,`school`,`class`]},{page:`schools`,label:`学校管理`,group:`组织与账户`,levels:[`super`]},{page:`organization`,label:`本校组织`,group:`组织与账户`,levels:[`school`]},{page:`admins`,label:`管理员`,group:`组织与账户`,levels:[`super`]},{page:`account-batches`,label:`批量建号`,group:`组织与账户`,levels:[`school`]},{page:`candidates`,label:`考生信息`,group:`报名考务`,levels:[`super`,`school`,`class`]},{page:`indicator-qualifications`,label:`指标资格确认`,group:`招生录取`,levels:[`school`]},{page:`registrations`,label:`报名审核`,group:`报名考务`,levels:[`super`,`school`,`class`]},{page:`payments`,label:`缴费名单`,group:`报名考务`,levels:[`super`,`school`,`class`]},{page:`admit`,label:`准考证`,group:`报名考务`,levels:[`super`,`school`,`class`]},{page:`exams`,label:`考试与科目`,group:`考试与成绩`,levels:[`super`]},{page:`results`,label:`成绩管理`,group:`考试与成绩`,levels:[`super`,`school`,`class`]},{page:`admission-settings`,label:`录取设置`,group:`招生录取`,levels:[`super`]},{page:`admission-accounts`,label:`招生账户`,group:`招生录取`,levels:[`super`]},{page:`admission-plans`,label:`招生计划`,group:`招生录取`,levels:[`super`]},{page:`admission-reporting`,label:`报到与补录`,group:`招生录取`,levels:[`super`]},{page:`admission-supervision`,label:`投档监督`,group:`招生录取`,levels:[`super`]},{page:`notices`,label:`通知发布`,group:`公开信息`,levels:[`super`]},{page:`centers`,label:`考场信息`,group:`场所与流程`,levels:[`super`,`school`]},{page:`flows`,label:`流程中心`,group:`场所与流程`,levels:[`super`,`school`,`class`]},{page:`flow-design`,label:`流程设计`,group:`系统配置`,levels:[`super`]},{page:`number-rules`,label:`报名号规则`,group:`系统配置`,levels:[`super`]},{page:`security`,label:`账户安全`,group:`系统配置`,levels:[`super`,`school`,`class`]}];function df(e=`super`){return uf.filter(t=>t.levels.includes(e))}var ff=[{page:`dashboard`,label:`工作台`,group:`总览`},{page:`plans`,label:`招生计划`,group:`招生业务`},{page:`placements`,label:`投档审核`,group:`招生业务`},{page:`reporting`,label:`考生报到`,group:`招生业务`},{page:`notice-template`,label:`通知书模板`,group:`文书中心`}];function pf(e,t){return e===`candidate`?lf:e===`admission_school`?ff:df(t)}function mf(e,t){return e===`admission_school`?`/admission/${t}`:`/${e}/${t}`}var hf={class:`portal-shell`},gf={class:`portal-shell__role`},_f={"aria-label":`业务导航`},vf={class:`portal-shell__scope`},yf={class:`portal-shell__main`},bf={class:`portal-shell__topbar`},xf={class:`portal-shell__user`},Sf={class:`portal-shell__content`},Cf={class:`portal-page-heading`},wf={__name:`PortalShell`,props:{role:{type:String,required:!0},page:{type:String,required:!0},title:{type:String,required:!0},description:{type:String,default:``}},setup(e){let t=e,n=ec(),r=D(!1),i=R(()=>H.state.user||{}),a=R(()=>pf(t.role,i.value.adminLevel)),o=R(()=>[...new Set(a.value.map(e=>e.group))]),s=R(()=>t.role===`candidate`?`考生中心`:t.role===`admission_school`?`招生学校工作台`:`考试管理后台`),c=R(()=>t.role===`candidate`?`仅本人数据`:t.role===`admission_school`?`仅本校招生数据`:H.state.scopeLabel||`当前权限范围`);async function l(){await H.logout(),await n.replace(`/auth/login`)}return(t,n)=>(M(),N(`div`,hf,[P(`aside`,{class:be([`portal-shell__sidebar`,{"is-open":r.value}])},[F(O(Al),{class:`portal-shell__brand`,to:`/`},{default:Bn(()=>[...n[4]||=[P(`span`,null,`衡`,-1),P(`div`,null,[P(`strong`,null,`衡准考试服务`),P(`small`,null,`OPERATIONS CONSOLE`)],-1)]]),_:1}),P(`button`,{class:`portal-shell__close`,type:`button`,"aria-label":`关闭菜单`,onClick:n[0]||=e=>r.value=!1},`×`),P(`p`,gf,T(s.value),1),P(`nav`,_f,[(M(!0),N(j,null,A(o.value,t=>(M(),N(`section`,{key:t},[P(`strong`,null,T(t),1),(M(!0),N(j,null,A(a.value.filter(e=>e.group===t),t=>(M(),ka(O(Al),{key:t.page,to:O(mf)(e.role,t.page),onClick:n[1]||=e=>r.value=!1},{default:Bn(()=>[P(`span`,null,T(t.label.slice(0,1)),1),I(T(t.label),1)]),_:2},1032,[`to`]))),128))]))),128))]),P(`div`,vf,[n[5]||=P(`span`,null,`当前数据范围`,-1),P(`strong`,null,T(c.value),1),n[6]||=P(`small`,null,`权限由服务端同步校验`,-1)])],2),r.value?(M(),N(`div`,{key:0,class:`portal-shell__scrim`,onClick:n[2]||=e=>r.value=!1})):L(``,!0),P(`main`,yf,[P(`header`,bf,[P(`button`,{type:`button`,"aria-label":`打开菜单`,onClick:n[3]||=e=>r.value=!0},`☰`),P(`div`,null,[P(`span`,null,T(s.value),1),n[7]||=P(`b`,null,`/`,-1),P(`strong`,null,T(e.title),1)]),P(`div`,xf,[P(`i`,null,T(String(i.value.displayName||`用`).slice(0,1)),1),P(`span`,null,[P(`strong`,null,T(i.value.displayName||i.value.username),1),P(`small`,null,T(c.value),1)]),P(`button`,{type:`button`,title:`退出登录`,onClick:l},`退出`)])]),P(`section`,Sf,[P(`header`,Cf,[P(`div`,null,[P(`p`,null,T(e.role===`candidate`?`CANDIDATE SERVICE`:e.role===`admission_school`?`SCHOOL ADMISSION`:`EXAM OPERATIONS`),1),P(`h1`,null,T(e.title),1),P(`span`,null,T(e.description),1)]),ri(t.$slots,`actions`)]),ri(t.$slots,`default`)])])]))}},Tf=[{code:`110000`,name:`北京市`,cities:[{code:`110100`,name:`北京市`,districts:[{code:`110101`,name:`东城区`},{code:`110102`,name:`西城区`},{code:`110105`,name:`朝阳区`},{code:`110106`,name:`丰台区`},{code:`110107`,name:`石景山区`},{code:`110108`,name:`海淀区`},{code:`110109`,name:`门头沟区`},{code:`110111`,name:`房山区`},{code:`110112`,name:`通州区`},{code:`110113`,name:`顺义区`},{code:`110114`,name:`昌平区`},{code:`110115`,name:`大兴区`},{code:`110116`,name:`怀柔区`},{code:`110117`,name:`平谷区`},{code:`110118`,name:`密云区`},{code:`110119`,name:`延庆区`}]}]},{code:`120000`,name:`天津市`,cities:[{code:`120100`,name:`天津市`,districts:[{code:`120101`,name:`和平区`},{code:`120102`,name:`河东区`},{code:`120103`,name:`河西区`},{code:`120104`,name:`南开区`},{code:`120105`,name:`河北区`},{code:`120106`,name:`红桥区`},{code:`120110`,name:`东丽区`},{code:`120111`,name:`西青区`},{code:`120112`,name:`津南区`},{code:`120113`,name:`北辰区`},{code:`120114`,name:`武清区`},{code:`120115`,name:`宝坻区`},{code:`120116`,name:`滨海新区`},{code:`120117`,name:`宁河区`},{code:`120118`,name:`静海区`},{code:`120119`,name:`蓟州区`}]}]},{code:`130000`,name:`河北省`,cities:[{code:`130100`,name:`石家庄市`,districts:[{code:`130102`,name:`长安区`},{code:`130104`,name:`桥西区`},{code:`130105`,name:`新华区`},{code:`130107`,name:`井陉矿区`},{code:`130108`,name:`裕华区`},{code:`130109`,name:`藁城区`},{code:`130110`,name:`鹿泉区`},{code:`130111`,name:`栾城区`},{code:`130121`,name:`井陉县`},{code:`130123`,name:`正定县`},{code:`130125`,name:`行唐县`},{code:`130126`,name:`灵寿县`},{code:`130127`,name:`高邑县`},{code:`130128`,name:`深泽县`},{code:`130129`,name:`赞皇县`},{code:`130130`,name:`无极县`},{code:`130131`,name:`平山县`},{code:`130132`,name:`元氏县`},{code:`130133`,name:`赵县`},{code:`130181`,name:`辛集市`},{code:`130183`,name:`晋州市`},{code:`130184`,name:`新乐市`}]},{code:`130200`,name:`唐山市`,districts:[{code:`130202`,name:`路南区`},{code:`130203`,name:`路北区`},{code:`130204`,name:`古冶区`},{code:`130205`,name:`开平区`},{code:`130207`,name:`丰南区`},{code:`130208`,name:`丰润区`},{code:`130209`,name:`曹妃甸区`},{code:`130224`,name:`滦南县`},{code:`130225`,name:`乐亭县`},{code:`130227`,name:`迁西县`},{code:`130229`,name:`玉田县`},{code:`130281`,name:`遵化市`},{code:`130283`,name:`迁安市`},{code:`130284`,name:`滦州市`}]},{code:`130300`,name:`秦皇岛市`,districts:[{code:`130302`,name:`海港区`},{code:`130303`,name:`山海关区`},{code:`130304`,name:`北戴河区`},{code:`130306`,name:`抚宁区`},{code:`130321`,name:`青龙满族自治县`},{code:`130322`,name:`昌黎县`},{code:`130324`,name:`卢龙县`}]},{code:`130400`,name:`邯郸市`,districts:[{code:`130402`,name:`邯山区`},{code:`130403`,name:`丛台区`},{code:`130404`,name:`复兴区`},{code:`130406`,name:`峰峰矿区`},{code:`130407`,name:`肥乡区`},{code:`130408`,name:`永年区`},{code:`130423`,name:`临漳县`},{code:`130424`,name:`成安县`},{code:`130425`,name:`大名县`},{code:`130426`,name:`涉县`},{code:`130427`,name:`磁县`},{code:`130430`,name:`邱县`},{code:`130431`,name:`鸡泽县`},{code:`130432`,name:`广平县`},{code:`130433`,name:`馆陶县`},{code:`130434`,name:`魏县`},{code:`130435`,name:`曲周县`},{code:`130481`,name:`武安市`}]},{code:`130500`,name:`邢台市`,districts:[{code:`130502`,name:`襄都区`},{code:`130503`,name:`信都区`},{code:`130505`,name:`任泽区`},{code:`130506`,name:`南和区`},{code:`130522`,name:`临城县`},{code:`130523`,name:`内丘县`},{code:`130524`,name:`柏乡县`},{code:`130525`,name:`隆尧县`},{code:`130528`,name:`宁晋县`},{code:`130529`,name:`巨鹿县`},{code:`130530`,name:`新河县`},{code:`130531`,name:`广宗县`},{code:`130532`,name:`平乡县`},{code:`130533`,name:`威县`},{code:`130534`,name:`清河县`},{code:`130535`,name:`临西县`},{code:`130581`,name:`南宫市`},{code:`130582`,name:`沙河市`}]},{code:`130600`,name:`保定市`,districts:[{code:`130602`,name:`竞秀区`},{code:`130606`,name:`莲池区`},{code:`130607`,name:`满城区`},{code:`130608`,name:`清苑区`},{code:`130609`,name:`徐水区`},{code:`130623`,name:`涞水县`},{code:`130624`,name:`阜平县`},{code:`130626`,name:`定兴县`},{code:`130627`,name:`唐县`},{code:`130628`,name:`高阳县`},{code:`130629`,name:`容城县`},{code:`130630`,name:`涞源县`},{code:`130631`,name:`望都县`},{code:`130632`,name:`安新县`},{code:`130633`,name:`易县`},{code:`130634`,name:`曲阳县`},{code:`130635`,name:`蠡县`},{code:`130636`,name:`顺平县`},{code:`130637`,name:`博野县`},{code:`130638`,name:`雄县`},{code:`130681`,name:`涿州市`},{code:`130682`,name:`定州市`},{code:`130683`,name:`安国市`},{code:`130684`,name:`高碑店市`}]},{code:`130700`,name:`张家口市`,districts:[{code:`130702`,name:`桥东区`},{code:`130703`,name:`桥西区`},{code:`130705`,name:`宣化区`},{code:`130706`,name:`下花园区`},{code:`130708`,name:`万全区`},{code:`130709`,name:`崇礼区`},{code:`130722`,name:`张北县`},{code:`130723`,name:`康保县`},{code:`130724`,name:`沽源县`},{code:`130725`,name:`尚义县`},{code:`130726`,name:`蔚县`},{code:`130727`,name:`阳原县`},{code:`130728`,name:`怀安县`},{code:`130730`,name:`怀来县`},{code:`130731`,name:`涿鹿县`},{code:`130732`,name:`赤城县`}]},{code:`130800`,name:`承德市`,districts:[{code:`130802`,name:`双桥区`},{code:`130803`,name:`双滦区`},{code:`130804`,name:`鹰手营子矿区`},{code:`130821`,name:`承德县`},{code:`130822`,name:`兴隆县`},{code:`130824`,name:`滦平县`},{code:`130825`,name:`隆化县`},{code:`130826`,name:`丰宁满族自治县`},{code:`130827`,name:`宽城满族自治县`},{code:`130828`,name:`围场满族蒙古族自治县`},{code:`130881`,name:`平泉市`}]},{code:`130900`,name:`沧州市`,districts:[{code:`130902`,name:`新华区`},{code:`130903`,name:`运河区`},{code:`130921`,name:`沧县`},{code:`130922`,name:`青县`},{code:`130923`,name:`东光县`},{code:`130924`,name:`海兴县`},{code:`130925`,name:`盐山县`},{code:`130926`,name:`肃宁县`},{code:`130927`,name:`南皮县`},{code:`130928`,name:`吴桥县`},{code:`130929`,name:`献县`},{code:`130930`,name:`孟村回族自治县`},{code:`130981`,name:`泊头市`},{code:`130982`,name:`任丘市`},{code:`130983`,name:`黄骅市`},{code:`130984`,name:`河间市`}]},{code:`131000`,name:`廊坊市`,districts:[{code:`131002`,name:`安次区`},{code:`131003`,name:`广阳区`},{code:`131022`,name:`固安县`},{code:`131023`,name:`永清县`},{code:`131024`,name:`香河县`},{code:`131025`,name:`大城县`},{code:`131026`,name:`文安县`},{code:`131028`,name:`大厂回族自治县`},{code:`131081`,name:`霸州市`},{code:`131082`,name:`三河市`}]},{code:`131100`,name:`衡水市`,districts:[{code:`131102`,name:`桃城区`},{code:`131103`,name:`冀州区`},{code:`131121`,name:`枣强县`},{code:`131122`,name:`武邑县`},{code:`131123`,name:`武强县`},{code:`131124`,name:`饶阳县`},{code:`131125`,name:`安平县`},{code:`131126`,name:`故城县`},{code:`131127`,name:`景县`},{code:`131128`,name:`阜城县`},{code:`131182`,name:`深州市`}]}]},{code:`140000`,name:`山西省`,cities:[{code:`140100`,name:`太原市`,districts:[{code:`140105`,name:`小店区`},{code:`140106`,name:`迎泽区`},{code:`140107`,name:`杏花岭区`},{code:`140108`,name:`尖草坪区`},{code:`140109`,name:`万柏林区`},{code:`140110`,name:`晋源区`},{code:`140121`,name:`清徐县`},{code:`140122`,name:`阳曲县`},{code:`140123`,name:`娄烦县`},{code:`140181`,name:`古交市`}]},{code:`140200`,name:`大同市`,districts:[{code:`140212`,name:`新荣区`},{code:`140213`,name:`平城区`},{code:`140214`,name:`云冈区`},{code:`140215`,name:`云州区`},{code:`140221`,name:`阳高县`},{code:`140222`,name:`天镇县`},{code:`140223`,name:`广灵县`},{code:`140224`,name:`灵丘县`},{code:`140225`,name:`浑源县`},{code:`140226`,name:`左云县`}]},{code:`140300`,name:`阳泉市`,districts:[{code:`140302`,name:`城区`},{code:`140303`,name:`矿区`},{code:`140311`,name:`郊区`},{code:`140321`,name:`平定县`},{code:`140322`,name:`盂县`}]},{code:`140400`,name:`长治市`,districts:[{code:`140403`,name:`潞州区`},{code:`140404`,name:`上党区`},{code:`140405`,name:`屯留区`},{code:`140406`,name:`潞城区`},{code:`140423`,name:`襄垣县`},{code:`140425`,name:`平顺县`},{code:`140426`,name:`黎城县`},{code:`140427`,name:`壶关县`},{code:`140428`,name:`长子县`},{code:`140429`,name:`武乡县`},{code:`140430`,name:`沁县`},{code:`140431`,name:`沁源县`}]},{code:`140500`,name:`晋城市`,districts:[{code:`140502`,name:`城区`},{code:`140521`,name:`沁水县`},{code:`140522`,name:`阳城县`},{code:`140524`,name:`陵川县`},{code:`140525`,name:`泽州县`},{code:`140581`,name:`高平市`}]},{code:`140600`,name:`朔州市`,districts:[{code:`140602`,name:`朔城区`},{code:`140603`,name:`平鲁区`},{code:`140621`,name:`山阴县`},{code:`140622`,name:`应县`},{code:`140623`,name:`右玉县`},{code:`140681`,name:`怀仁市`}]},{code:`140700`,name:`晋中市`,districts:[{code:`140702`,name:`榆次区`},{code:`140703`,name:`太谷区`},{code:`140721`,name:`榆社县`},{code:`140722`,name:`左权县`},{code:`140723`,name:`和顺县`},{code:`140724`,name:`昔阳县`},{code:`140725`,name:`寿阳县`},{code:`140727`,name:`祁县`},{code:`140728`,name:`平遥县`},{code:`140729`,name:`灵石县`},{code:`140781`,name:`介休市`}]},{code:`140800`,name:`运城市`,districts:[{code:`140802`,name:`盐湖区`},{code:`140821`,name:`临猗县`},{code:`140822`,name:`万荣县`},{code:`140823`,name:`闻喜县`},{code:`140824`,name:`稷山县`},{code:`140825`,name:`新绛县`},{code:`140826`,name:`绛县`},{code:`140827`,name:`垣曲县`},{code:`140828`,name:`夏县`},{code:`140829`,name:`平陆县`},{code:`140830`,name:`芮城县`},{code:`140881`,name:`永济市`},{code:`140882`,name:`河津市`}]},{code:`140900`,name:`忻州市`,districts:[{code:`140902`,name:`忻府区`},{code:`140921`,name:`定襄县`},{code:`140922`,name:`五台县`},{code:`140923`,name:`代县`},{code:`140924`,name:`繁峙县`},{code:`140925`,name:`宁武县`},{code:`140926`,name:`静乐县`},{code:`140927`,name:`神池县`},{code:`140928`,name:`五寨县`},{code:`140929`,name:`岢岚县`},{code:`140930`,name:`河曲县`},{code:`140931`,name:`保德县`},{code:`140932`,name:`偏关县`},{code:`140981`,name:`原平市`}]},{code:`141000`,name:`临汾市`,districts:[{code:`141002`,name:`尧都区`},{code:`141021`,name:`曲沃县`},{code:`141022`,name:`翼城县`},{code:`141023`,name:`襄汾县`},{code:`141024`,name:`洪洞县`},{code:`141025`,name:`古县`},{code:`141026`,name:`安泽县`},{code:`141027`,name:`浮山县`},{code:`141028`,name:`吉县`},{code:`141029`,name:`乡宁县`},{code:`141030`,name:`大宁县`},{code:`141031`,name:`隰县`},{code:`141032`,name:`永和县`},{code:`141033`,name:`蒲县`},{code:`141034`,name:`汾西县`},{code:`141081`,name:`侯马市`},{code:`141082`,name:`霍州市`}]},{code:`141100`,name:`吕梁市`,districts:[{code:`141102`,name:`离石区`},{code:`141121`,name:`文水县`},{code:`141122`,name:`交城县`},{code:`141123`,name:`兴县`},{code:`141124`,name:`临县`},{code:`141125`,name:`柳林县`},{code:`141126`,name:`石楼县`},{code:`141127`,name:`岚县`},{code:`141128`,name:`方山县`},{code:`141129`,name:`中阳县`},{code:`141130`,name:`交口县`},{code:`141181`,name:`孝义市`},{code:`141182`,name:`汾阳市`}]}]},{code:`150000`,name:`内蒙古自治区`,cities:[{code:`150100`,name:`呼和浩特市`,districts:[{code:`150102`,name:`新城区`},{code:`150103`,name:`回民区`},{code:`150104`,name:`玉泉区`},{code:`150105`,name:`赛罕区`},{code:`150121`,name:`土默特左旗`},{code:`150122`,name:`托克托县`},{code:`150123`,name:`和林格尔县`},{code:`150124`,name:`清水河县`},{code:`150125`,name:`武川县`}]},{code:`150200`,name:`包头市`,districts:[{code:`150202`,name:`东河区`},{code:`150203`,name:`昆都仑区`},{code:`150204`,name:`青山区`},{code:`150205`,name:`石拐区`},{code:`150206`,name:`白云鄂博矿区`},{code:`150207`,name:`九原区`},{code:`150221`,name:`土默特右旗`},{code:`150222`,name:`固阳县`},{code:`150223`,name:`达尔罕茂明安联合旗`}]},{code:`150300`,name:`乌海市`,districts:[{code:`150302`,name:`海勃湾区`},{code:`150303`,name:`海南区`},{code:`150304`,name:`乌达区`}]},{code:`150400`,name:`赤峰市`,districts:[{code:`150402`,name:`红山区`},{code:`150403`,name:`元宝山区`},{code:`150404`,name:`松山区`},{code:`150421`,name:`阿鲁科尔沁旗`},{code:`150422`,name:`巴林左旗`},{code:`150423`,name:`巴林右旗`},{code:`150424`,name:`林西县`},{code:`150425`,name:`克什克腾旗`},{code:`150426`,name:`翁牛特旗`},{code:`150428`,name:`喀喇沁旗`},{code:`150429`,name:`宁城县`},{code:`150430`,name:`敖汉旗`}]},{code:`150500`,name:`通辽市`,districts:[{code:`150502`,name:`科尔沁区`},{code:`150521`,name:`科尔沁左翼中旗`},{code:`150522`,name:`科尔沁左翼后旗`},{code:`150523`,name:`开鲁县`},{code:`150524`,name:`库伦旗`},{code:`150525`,name:`奈曼旗`},{code:`150526`,name:`扎鲁特旗`},{code:`150581`,name:`霍林郭勒市`}]},{code:`150600`,name:`鄂尔多斯市`,districts:[{code:`150602`,name:`东胜区`},{code:`150603`,name:`康巴什区`},{code:`150621`,name:`达拉特旗`},{code:`150622`,name:`准格尔旗`},{code:`150623`,name:`鄂托克前旗`},{code:`150624`,name:`鄂托克旗`},{code:`150625`,name:`杭锦旗`},{code:`150626`,name:`乌审旗`},{code:`150627`,name:`伊金霍洛旗`}]},{code:`150700`,name:`呼伦贝尔市`,districts:[{code:`150702`,name:`海拉尔区`},{code:`150703`,name:`扎赉诺尔区`},{code:`150721`,name:`阿荣旗`},{code:`150722`,name:`莫力达瓦达斡尔族自治旗`},{code:`150723`,name:`鄂伦春自治旗`},{code:`150724`,name:`鄂温克族自治旗`},{code:`150725`,name:`陈巴尔虎旗`},{code:`150726`,name:`新巴尔虎左旗`},{code:`150727`,name:`新巴尔虎右旗`},{code:`150781`,name:`满洲里市`},{code:`150782`,name:`牙克石市`},{code:`150783`,name:`扎兰屯市`},{code:`150784`,name:`额尔古纳市`},{code:`150785`,name:`根河市`}]},{code:`150800`,name:`巴彦淖尔市`,districts:[{code:`150802`,name:`临河区`},{code:`150821`,name:`五原县`},{code:`150822`,name:`磴口县`},{code:`150823`,name:`乌拉特前旗`},{code:`150824`,name:`乌拉特中旗`},{code:`150825`,name:`乌拉特后旗`},{code:`150826`,name:`杭锦后旗`}]},{code:`150900`,name:`乌兰察布市`,districts:[{code:`150902`,name:`集宁区`},{code:`150921`,name:`卓资县`},{code:`150922`,name:`化德县`},{code:`150923`,name:`商都县`},{code:`150924`,name:`兴和县`},{code:`150925`,name:`凉城县`},{code:`150926`,name:`察哈尔右翼前旗`},{code:`150927`,name:`察哈尔右翼中旗`},{code:`150928`,name:`察哈尔右翼后旗`},{code:`150929`,name:`四子王旗`},{code:`150981`,name:`丰镇市`}]},{code:`152200`,name:`兴安盟`,districts:[{code:`152201`,name:`乌兰浩特市`},{code:`152202`,name:`阿尔山市`},{code:`152221`,name:`科尔沁右翼前旗`},{code:`152222`,name:`科尔沁右翼中旗`},{code:`152223`,name:`扎赉特旗`},{code:`152224`,name:`突泉县`}]},{code:`152500`,name:`锡林郭勒盟`,districts:[{code:`152501`,name:`二连浩特市`},{code:`152502`,name:`锡林浩特市`},{code:`152522`,name:`阿巴嘎旗`},{code:`152523`,name:`苏尼特左旗`},{code:`152524`,name:`苏尼特右旗`},{code:`152525`,name:`东乌珠穆沁旗`},{code:`152526`,name:`西乌珠穆沁旗`},{code:`152527`,name:`太仆寺旗`},{code:`152528`,name:`镶黄旗`},{code:`152529`,name:`正镶白旗`},{code:`152530`,name:`正蓝旗`},{code:`152531`,name:`多伦县`}]},{code:`152900`,name:`阿拉善盟`,districts:[{code:`152921`,name:`阿拉善左旗`},{code:`152922`,name:`阿拉善右旗`},{code:`152923`,name:`额济纳旗`}]}]},{code:`210000`,name:`辽宁省`,cities:[{code:`210100`,name:`沈阳市`,districts:[{code:`210102`,name:`和平区`},{code:`210103`,name:`沈河区`},{code:`210104`,name:`大东区`},{code:`210105`,name:`皇姑区`},{code:`210106`,name:`铁西区`},{code:`210111`,name:`苏家屯区`},{code:`210112`,name:`浑南区`},{code:`210113`,name:`沈北新区`},{code:`210114`,name:`于洪区`},{code:`210115`,name:`辽中区`},{code:`210123`,name:`康平县`},{code:`210124`,name:`法库县`},{code:`210181`,name:`新民市`}]},{code:`210200`,name:`大连市`,districts:[{code:`210202`,name:`中山区`},{code:`210203`,name:`西岗区`},{code:`210204`,name:`沙河口区`},{code:`210211`,name:`甘井子区`},{code:`210212`,name:`旅顺口区`},{code:`210213`,name:`金州区`},{code:`210214`,name:`普兰店区`},{code:`210224`,name:`长海县`},{code:`210281`,name:`瓦房店市`},{code:`210283`,name:`庄河市`}]},{code:`210300`,name:`鞍山市`,districts:[{code:`210302`,name:`铁东区`},{code:`210303`,name:`铁西区`},{code:`210304`,name:`立山区`},{code:`210311`,name:`千山区`},{code:`210321`,name:`台安县`},{code:`210323`,name:`岫岩满族自治县`},{code:`210381`,name:`海城市`}]},{code:`210400`,name:`抚顺市`,districts:[{code:`210402`,name:`新抚区`},{code:`210403`,name:`东洲区`},{code:`210404`,name:`望花区`},{code:`210411`,name:`顺城区`},{code:`210421`,name:`抚顺县`},{code:`210422`,name:`新宾满族自治县`},{code:`210423`,name:`清原满族自治县`}]},{code:`210500`,name:`本溪市`,districts:[{code:`210502`,name:`平山区`},{code:`210503`,name:`溪湖区`},{code:`210504`,name:`明山区`},{code:`210505`,name:`南芬区`},{code:`210521`,name:`本溪满族自治县`},{code:`210522`,name:`桓仁满族自治县`}]},{code:`210600`,name:`丹东市`,districts:[{code:`210602`,name:`元宝区`},{code:`210603`,name:`振兴区`},{code:`210604`,name:`振安区`},{code:`210624`,name:`宽甸满族自治县`},{code:`210681`,name:`东港市`},{code:`210682`,name:`凤城市`}]},{code:`210700`,name:`锦州市`,districts:[{code:`210702`,name:`古塔区`},{code:`210703`,name:`凌河区`},{code:`210711`,name:`太和区`},{code:`210726`,name:`黑山县`},{code:`210727`,name:`义县`},{code:`210781`,name:`凌海市`},{code:`210782`,name:`北镇市`}]},{code:`210800`,name:`营口市`,districts:[{code:`210802`,name:`站前区`},{code:`210803`,name:`西市区`},{code:`210804`,name:`鲅鱼圈区`},{code:`210811`,name:`老边区`},{code:`210881`,name:`盖州市`},{code:`210882`,name:`大石桥市`}]},{code:`210900`,name:`阜新市`,districts:[{code:`210902`,name:`海州区`},{code:`210903`,name:`新邱区`},{code:`210904`,name:`太平区`},{code:`210905`,name:`清河门区`},{code:`210911`,name:`细河区`},{code:`210921`,name:`阜新蒙古族自治县`},{code:`210922`,name:`彰武县`}]},{code:`211000`,name:`辽阳市`,districts:[{code:`211002`,name:`白塔区`},{code:`211003`,name:`文圣区`},{code:`211004`,name:`宏伟区`},{code:`211005`,name:`弓长岭区`},{code:`211011`,name:`太子河区`},{code:`211021`,name:`辽阳县`},{code:`211081`,name:`灯塔市`}]},{code:`211100`,name:`盘锦市`,districts:[{code:`211102`,name:`双台子区`},{code:`211103`,name:`兴隆台区`},{code:`211104`,name:`大洼区`},{code:`211122`,name:`盘山县`}]},{code:`211200`,name:`铁岭市`,districts:[{code:`211202`,name:`银州区`},{code:`211204`,name:`清河区`},{code:`211221`,name:`铁岭县`},{code:`211223`,name:`西丰县`},{code:`211224`,name:`昌图县`},{code:`211281`,name:`调兵山市`},{code:`211282`,name:`开原市`}]},{code:`211300`,name:`朝阳市`,districts:[{code:`211302`,name:`双塔区`},{code:`211303`,name:`龙城区`},{code:`211321`,name:`朝阳县`},{code:`211322`,name:`建平县`},{code:`211324`,name:`喀喇沁左翼蒙古族自治县`},{code:`211381`,name:`北票市`},{code:`211382`,name:`凌源市`}]},{code:`211400`,name:`葫芦岛市`,districts:[{code:`211402`,name:`连山区`},{code:`211403`,name:`龙港区`},{code:`211404`,name:`南票区`},{code:`211421`,name:`绥中县`},{code:`211422`,name:`建昌县`},{code:`211481`,name:`兴城市`}]}]},{code:`220000`,name:`吉林省`,cities:[{code:`220100`,name:`长春市`,districts:[{code:`220102`,name:`南关区`},{code:`220103`,name:`宽城区`},{code:`220104`,name:`朝阳区`},{code:`220105`,name:`二道区`},{code:`220106`,name:`绿园区`},{code:`220112`,name:`双阳区`},{code:`220113`,name:`九台区`},{code:`220122`,name:`农安县`},{code:`220182`,name:`榆树市`},{code:`220183`,name:`德惠市`},{code:`220184`,name:`公主岭市`}]},{code:`220200`,name:`吉林市`,districts:[{code:`220202`,name:`昌邑区`},{code:`220203`,name:`龙潭区`},{code:`220204`,name:`船营区`},{code:`220211`,name:`丰满区`},{code:`220221`,name:`永吉县`},{code:`220281`,name:`蛟河市`},{code:`220282`,name:`桦甸市`},{code:`220283`,name:`舒兰市`},{code:`220284`,name:`磐石市`}]},{code:`220300`,name:`四平市`,districts:[{code:`220302`,name:`铁西区`},{code:`220303`,name:`铁东区`},{code:`220322`,name:`梨树县`},{code:`220323`,name:`伊通满族自治县`},{code:`220382`,name:`双辽市`}]},{code:`220400`,name:`辽源市`,districts:[{code:`220402`,name:`龙山区`},{code:`220403`,name:`西安区`},{code:`220421`,name:`东丰县`},{code:`220422`,name:`东辽县`}]},{code:`220500`,name:`通化市`,districts:[{code:`220502`,name:`东昌区`},{code:`220503`,name:`二道江区`},{code:`220521`,name:`通化县`},{code:`220523`,name:`辉南县`},{code:`220524`,name:`柳河县`},{code:`220581`,name:`梅河口市`},{code:`220582`,name:`集安市`}]},{code:`220600`,name:`白山市`,districts:[{code:`220602`,name:`浑江区`},{code:`220605`,name:`江源区`},{code:`220621`,name:`抚松县`},{code:`220622`,name:`靖宇县`},{code:`220623`,name:`长白朝鲜族自治县`},{code:`220681`,name:`临江市`}]},{code:`220700`,name:`松原市`,districts:[{code:`220702`,name:`宁江区`},{code:`220721`,name:`前郭尔罗斯蒙古族自治县`},{code:`220722`,name:`长岭县`},{code:`220723`,name:`乾安县`},{code:`220781`,name:`扶余市`}]},{code:`220800`,name:`白城市`,districts:[{code:`220802`,name:`洮北区`},{code:`220821`,name:`镇赉县`},{code:`220822`,name:`通榆县`},{code:`220881`,name:`洮南市`},{code:`220882`,name:`大安市`}]},{code:`222400`,name:`延边朝鲜族自治州`,districts:[{code:`222401`,name:`延吉市`},{code:`222402`,name:`图们市`},{code:`222403`,name:`敦化市`},{code:`222404`,name:`珲春市`},{code:`222405`,name:`龙井市`},{code:`222406`,name:`和龙市`},{code:`222424`,name:`汪清县`},{code:`222426`,name:`安图县`}]}]},{code:`230000`,name:`黑龙江省`,cities:[{code:`230100`,name:`哈尔滨市`,districts:[{code:`230102`,name:`道里区`},{code:`230103`,name:`南岗区`},{code:`230104`,name:`道外区`},{code:`230108`,name:`平房区`},{code:`230109`,name:`松北区`},{code:`230110`,name:`香坊区`},{code:`230111`,name:`呼兰区`},{code:`230112`,name:`阿城区`},{code:`230113`,name:`双城区`},{code:`230123`,name:`依兰县`},{code:`230124`,name:`方正县`},{code:`230125`,name:`宾县`},{code:`230126`,name:`巴彦县`},{code:`230127`,name:`木兰县`},{code:`230128`,name:`通河县`},{code:`230129`,name:`延寿县`},{code:`230183`,name:`尚志市`},{code:`230184`,name:`五常市`}]},{code:`230200`,name:`齐齐哈尔市`,districts:[{code:`230202`,name:`龙沙区`},{code:`230203`,name:`建华区`},{code:`230204`,name:`铁锋区`},{code:`230205`,name:`昂昂溪区`},{code:`230206`,name:`富拉尔基区`},{code:`230207`,name:`碾子山区`},{code:`230208`,name:`梅里斯达斡尔族区`},{code:`230221`,name:`龙江县`},{code:`230223`,name:`依安县`},{code:`230224`,name:`泰来县`},{code:`230225`,name:`甘南县`},{code:`230227`,name:`富裕县`},{code:`230229`,name:`克山县`},{code:`230230`,name:`克东县`},{code:`230231`,name:`拜泉县`},{code:`230281`,name:`讷河市`}]},{code:`230300`,name:`鸡西市`,districts:[{code:`230302`,name:`鸡冠区`},{code:`230303`,name:`恒山区`},{code:`230304`,name:`滴道区`},{code:`230305`,name:`梨树区`},{code:`230306`,name:`城子河区`},{code:`230307`,name:`麻山区`},{code:`230321`,name:`鸡东县`},{code:`230381`,name:`虎林市`},{code:`230382`,name:`密山市`}]},{code:`230400`,name:`鹤岗市`,districts:[{code:`230402`,name:`向阳区`},{code:`230403`,name:`工农区`},{code:`230404`,name:`南山区`},{code:`230405`,name:`兴安区`},{code:`230406`,name:`东山区`},{code:`230407`,name:`兴山区`},{code:`230421`,name:`萝北县`},{code:`230422`,name:`绥滨县`}]},{code:`230500`,name:`双鸭山市`,districts:[{code:`230502`,name:`尖山区`},{code:`230503`,name:`岭东区`},{code:`230505`,name:`四方台区`},{code:`230506`,name:`宝山区`},{code:`230521`,name:`集贤县`},{code:`230522`,name:`友谊县`},{code:`230523`,name:`宝清县`},{code:`230524`,name:`饶河县`}]},{code:`230600`,name:`大庆市`,districts:[{code:`230602`,name:`萨尔图区`},{code:`230603`,name:`龙凤区`},{code:`230604`,name:`让胡路区`},{code:`230605`,name:`红岗区`},{code:`230606`,name:`大同区`},{code:`230621`,name:`肇州县`},{code:`230622`,name:`肇源县`},{code:`230623`,name:`林甸县`},{code:`230624`,name:`杜尔伯特蒙古族自治县`}]},{code:`230700`,name:`伊春市`,districts:[{code:`230717`,name:`伊美区`},{code:`230718`,name:`乌翠区`},{code:`230719`,name:`友好区`},{code:`230722`,name:`嘉荫县`},{code:`230723`,name:`汤旺县`},{code:`230724`,name:`丰林县`},{code:`230725`,name:`大箐山县`},{code:`230726`,name:`南岔县`},{code:`230751`,name:`金林区`},{code:`230781`,name:`铁力市`}]},{code:`230800`,name:`佳木斯市`,districts:[{code:`230803`,name:`向阳区`},{code:`230804`,name:`前进区`},{code:`230805`,name:`东风区`},{code:`230811`,name:`郊区`},{code:`230822`,name:`桦南县`},{code:`230826`,name:`桦川县`},{code:`230828`,name:`汤原县`},{code:`230881`,name:`同江市`},{code:`230882`,name:`富锦市`},{code:`230883`,name:`抚远市`}]},{code:`230900`,name:`七台河市`,districts:[{code:`230902`,name:`新兴区`},{code:`230903`,name:`桃山区`},{code:`230904`,name:`茄子河区`},{code:`230921`,name:`勃利县`}]},{code:`231000`,name:`牡丹江市`,districts:[{code:`231002`,name:`东安区`},{code:`231003`,name:`阳明区`},{code:`231004`,name:`爱民区`},{code:`231005`,name:`西安区`},{code:`231025`,name:`林口县`},{code:`231081`,name:`绥芬河市`},{code:`231083`,name:`海林市`},{code:`231084`,name:`宁安市`},{code:`231085`,name:`穆棱市`},{code:`231086`,name:`东宁市`}]},{code:`231100`,name:`黑河市`,districts:[{code:`231102`,name:`爱辉区`},{code:`231123`,name:`逊克县`},{code:`231124`,name:`孙吴县`},{code:`231181`,name:`北安市`},{code:`231182`,name:`五大连池市`},{code:`231183`,name:`嫩江市`}]},{code:`231200`,name:`绥化市`,districts:[{code:`231202`,name:`北林区`},{code:`231221`,name:`望奎县`},{code:`231222`,name:`兰西县`},{code:`231223`,name:`青冈县`},{code:`231224`,name:`庆安县`},{code:`231225`,name:`明水县`},{code:`231226`,name:`绥棱县`},{code:`231281`,name:`安达市`},{code:`231282`,name:`肇东市`},{code:`231283`,name:`海伦市`}]},{code:`232700`,name:`大兴安岭地区`,districts:[{code:`232701`,name:`漠河市`},{code:`232721`,name:`呼玛县`},{code:`232722`,name:`塔河县`},{code:`232761`,name:`加格达奇区`}]}]},{code:`310000`,name:`上海市`,cities:[{code:`310100`,name:`上海市`,districts:[{code:`310101`,name:`黄浦区`},{code:`310104`,name:`徐汇区`},{code:`310105`,name:`长宁区`},{code:`310106`,name:`静安区`},{code:`310107`,name:`普陀区`},{code:`310109`,name:`虹口区`},{code:`310110`,name:`杨浦区`},{code:`310112`,name:`闵行区`},{code:`310113`,name:`宝山区`},{code:`310114`,name:`嘉定区`},{code:`310115`,name:`浦东新区`},{code:`310116`,name:`金山区`},{code:`310117`,name:`松江区`},{code:`310118`,name:`青浦区`},{code:`310120`,name:`奉贤区`},{code:`310151`,name:`崇明区`}]}]},{code:`320000`,name:`江苏省`,cities:[{code:`320100`,name:`南京市`,districts:[{code:`320102`,name:`玄武区`},{code:`320104`,name:`秦淮区`},{code:`320105`,name:`建邺区`},{code:`320106`,name:`鼓楼区`},{code:`320111`,name:`浦口区`},{code:`320113`,name:`栖霞区`},{code:`320114`,name:`雨花台区`},{code:`320115`,name:`江宁区`},{code:`320116`,name:`六合区`},{code:`320117`,name:`溧水区`},{code:`320118`,name:`高淳区`}]},{code:`320200`,name:`无锡市`,districts:[{code:`320205`,name:`锡山区`},{code:`320206`,name:`惠山区`},{code:`320211`,name:`滨湖区`},{code:`320213`,name:`梁溪区`},{code:`320214`,name:`新吴区`},{code:`320281`,name:`江阴市`},{code:`320282`,name:`宜兴市`}]},{code:`320300`,name:`徐州市`,districts:[{code:`320302`,name:`鼓楼区`},{code:`320303`,name:`云龙区`},{code:`320305`,name:`贾汪区`},{code:`320311`,name:`泉山区`},{code:`320312`,name:`铜山区`},{code:`320321`,name:`丰县`},{code:`320322`,name:`沛县`},{code:`320324`,name:`睢宁县`},{code:`320381`,name:`新沂市`},{code:`320382`,name:`邳州市`}]},{code:`320400`,name:`常州市`,districts:[{code:`320402`,name:`天宁区`},{code:`320404`,name:`钟楼区`},{code:`320411`,name:`新北区`},{code:`320412`,name:`武进区`},{code:`320413`,name:`金坛区`},{code:`320481`,name:`溧阳市`}]},{code:`320500`,name:`苏州市`,districts:[{code:`320505`,name:`虎丘区`},{code:`320506`,name:`吴中区`},{code:`320507`,name:`相城区`},{code:`320508`,name:`姑苏区`},{code:`320509`,name:`吴江区`},{code:`320581`,name:`常熟市`},{code:`320582`,name:`张家港市`},{code:`320583`,name:`昆山市`},{code:`320585`,name:`太仓市`}]},{code:`320600`,name:`南通市`,districts:[{code:`320612`,name:`通州区`},{code:`320613`,name:`崇川区`},{code:`320614`,name:`海门区`},{code:`320623`,name:`如东县`},{code:`320681`,name:`启东市`},{code:`320682`,name:`如皋市`},{code:`320685`,name:`海安市`}]},{code:`320700`,name:`连云港市`,districts:[{code:`320703`,name:`连云区`},{code:`320706`,name:`海州区`},{code:`320707`,name:`赣榆区`},{code:`320722`,name:`东海县`},{code:`320723`,name:`灌云县`},{code:`320724`,name:`灌南县`}]},{code:`320800`,name:`淮安市`,districts:[{code:`320803`,name:`淮安区`},{code:`320804`,name:`淮阴区`},{code:`320812`,name:`清江浦区`},{code:`320813`,name:`洪泽区`},{code:`320826`,name:`涟水县`},{code:`320830`,name:`盱眙县`},{code:`320831`,name:`金湖县`}]},{code:`320900`,name:`盐城市`,districts:[{code:`320902`,name:`亭湖区`},{code:`320903`,name:`盐都区`},{code:`320904`,name:`大丰区`},{code:`320921`,name:`响水县`},{code:`320922`,name:`滨海县`},{code:`320923`,name:`阜宁县`},{code:`320924`,name:`射阳县`},{code:`320925`,name:`建湖县`},{code:`320981`,name:`东台市`}]},{code:`321000`,name:`扬州市`,districts:[{code:`321002`,name:`广陵区`},{code:`321003`,name:`邗江区`},{code:`321012`,name:`江都区`},{code:`321023`,name:`宝应县`},{code:`321081`,name:`仪征市`},{code:`321084`,name:`高邮市`}]},{code:`321100`,name:`镇江市`,districts:[{code:`321102`,name:`京口区`},{code:`321111`,name:`润州区`},{code:`321112`,name:`丹徒区`},{code:`321181`,name:`丹阳市`},{code:`321182`,name:`扬中市`},{code:`321183`,name:`句容市`}]},{code:`321200`,name:`泰州市`,districts:[{code:`321202`,name:`海陵区`},{code:`321203`,name:`高港区`},{code:`321204`,name:`姜堰区`},{code:`321281`,name:`兴化市`},{code:`321282`,name:`靖江市`},{code:`321283`,name:`泰兴市`}]},{code:`321300`,name:`宿迁市`,districts:[{code:`321302`,name:`宿城区`},{code:`321311`,name:`宿豫区`},{code:`321322`,name:`沭阳县`},{code:`321323`,name:`泗阳县`},{code:`321324`,name:`泗洪县`}]}]},{code:`330000`,name:`浙江省`,cities:[{code:`330100`,name:`杭州市`,districts:[{code:`330102`,name:`上城区`},{code:`330105`,name:`拱墅区`},{code:`330106`,name:`西湖区`},{code:`330108`,name:`滨江区`},{code:`330109`,name:`萧山区`},{code:`330110`,name:`余杭区`},{code:`330111`,name:`富阳区`},{code:`330112`,name:`临安区`},{code:`330113`,name:`临平区`},{code:`330114`,name:`钱塘区`},{code:`330122`,name:`桐庐县`},{code:`330127`,name:`淳安县`},{code:`330182`,name:`建德市`}]},{code:`330200`,name:`宁波市`,districts:[{code:`330203`,name:`海曙区`},{code:`330205`,name:`江北区`},{code:`330206`,name:`北仑区`},{code:`330211`,name:`镇海区`},{code:`330212`,name:`鄞州区`},{code:`330213`,name:`奉化区`},{code:`330225`,name:`象山县`},{code:`330226`,name:`宁海县`},{code:`330281`,name:`余姚市`},{code:`330282`,name:`慈溪市`}]},{code:`330300`,name:`温州市`,districts:[{code:`330302`,name:`鹿城区`},{code:`330303`,name:`龙湾区`},{code:`330304`,name:`瓯海区`},{code:`330305`,name:`洞头区`},{code:`330324`,name:`永嘉县`},{code:`330326`,name:`平阳县`},{code:`330327`,name:`苍南县`},{code:`330328`,name:`文成县`},{code:`330329`,name:`泰顺县`},{code:`330381`,name:`瑞安市`},{code:`330382`,name:`乐清市`},{code:`330383`,name:`龙港市`}]},{code:`330400`,name:`嘉兴市`,districts:[{code:`330402`,name:`南湖区`},{code:`330411`,name:`秀洲区`},{code:`330421`,name:`嘉善县`},{code:`330424`,name:`海盐县`},{code:`330481`,name:`海宁市`},{code:`330482`,name:`平湖市`},{code:`330483`,name:`桐乡市`}]},{code:`330500`,name:`湖州市`,districts:[{code:`330502`,name:`吴兴区`},{code:`330503`,name:`南浔区`},{code:`330521`,name:`德清县`},{code:`330522`,name:`长兴县`},{code:`330523`,name:`安吉县`}]},{code:`330600`,name:`绍兴市`,districts:[{code:`330602`,name:`越城区`},{code:`330603`,name:`柯桥区`},{code:`330604`,name:`上虞区`},{code:`330624`,name:`新昌县`},{code:`330681`,name:`诸暨市`},{code:`330683`,name:`嵊州市`}]},{code:`330700`,name:`金华市`,districts:[{code:`330702`,name:`婺城区`},{code:`330703`,name:`金东区`},{code:`330723`,name:`武义县`},{code:`330726`,name:`浦江县`},{code:`330727`,name:`磐安县`},{code:`330781`,name:`兰溪市`},{code:`330782`,name:`义乌市`},{code:`330783`,name:`东阳市`},{code:`330784`,name:`永康市`}]},{code:`330800`,name:`衢州市`,districts:[{code:`330802`,name:`柯城区`},{code:`330803`,name:`衢江区`},{code:`330822`,name:`常山县`},{code:`330824`,name:`开化县`},{code:`330825`,name:`龙游县`},{code:`330881`,name:`江山市`}]},{code:`330900`,name:`舟山市`,districts:[{code:`330902`,name:`定海区`},{code:`330903`,name:`普陀区`},{code:`330921`,name:`岱山县`},{code:`330922`,name:`嵊泗县`}]},{code:`331000`,name:`台州市`,districts:[{code:`331002`,name:`椒江区`},{code:`331003`,name:`黄岩区`},{code:`331004`,name:`路桥区`},{code:`331022`,name:`三门县`},{code:`331023`,name:`天台县`},{code:`331024`,name:`仙居县`},{code:`331081`,name:`温岭市`},{code:`331082`,name:`临海市`},{code:`331083`,name:`玉环市`}]},{code:`331100`,name:`丽水市`,districts:[{code:`331102`,name:`莲都区`},{code:`331121`,name:`青田县`},{code:`331122`,name:`缙云县`},{code:`331123`,name:`遂昌县`},{code:`331124`,name:`松阳县`},{code:`331125`,name:`云和县`},{code:`331126`,name:`庆元县`},{code:`331127`,name:`景宁畲族自治县`},{code:`331181`,name:`龙泉市`}]}]},{code:`340000`,name:`安徽省`,cities:[{code:`340100`,name:`合肥市`,districts:[{code:`340102`,name:`瑶海区`},{code:`340103`,name:`庐阳区`},{code:`340104`,name:`蜀山区`},{code:`340111`,name:`包河区`},{code:`340121`,name:`长丰县`},{code:`340122`,name:`肥东县`},{code:`340123`,name:`肥西县`},{code:`340124`,name:`庐江县`},{code:`340181`,name:`巢湖市`}]},{code:`340200`,name:`芜湖市`,districts:[{code:`340202`,name:`镜湖区`},{code:`340207`,name:`鸠江区`},{code:`340209`,name:`弋江区`},{code:`340210`,name:`湾沚区`},{code:`340212`,name:`繁昌区`},{code:`340223`,name:`南陵县`},{code:`340281`,name:`无为市`}]},{code:`340300`,name:`蚌埠市`,districts:[{code:`340302`,name:`龙子湖区`},{code:`340303`,name:`蚌山区`},{code:`340304`,name:`禹会区`},{code:`340311`,name:`淮上区`},{code:`340321`,name:`怀远县`},{code:`340322`,name:`五河县`},{code:`340323`,name:`固镇县`}]},{code:`340400`,name:`淮南市`,districts:[{code:`340402`,name:`大通区`},{code:`340403`,name:`田家庵区`},{code:`340404`,name:`谢家集区`},{code:`340405`,name:`八公山区`},{code:`340406`,name:`潘集区`},{code:`340421`,name:`凤台县`},{code:`340422`,name:`寿县`}]},{code:`340500`,name:`马鞍山市`,districts:[{code:`340503`,name:`花山区`},{code:`340504`,name:`雨山区`},{code:`340506`,name:`博望区`},{code:`340521`,name:`当涂县`},{code:`340522`,name:`含山县`},{code:`340523`,name:`和县`}]},{code:`340600`,name:`淮北市`,districts:[{code:`340602`,name:`杜集区`},{code:`340603`,name:`相山区`},{code:`340604`,name:`烈山区`},{code:`340621`,name:`濉溪县`}]},{code:`340700`,name:`铜陵市`,districts:[{code:`340705`,name:`铜官区`},{code:`340706`,name:`义安区`},{code:`340711`,name:`郊区`},{code:`340722`,name:`枞阳县`}]},{code:`340800`,name:`安庆市`,districts:[{code:`340802`,name:`迎江区`},{code:`340803`,name:`大观区`},{code:`340811`,name:`宜秀区`},{code:`340822`,name:`怀宁县`},{code:`340825`,name:`太湖县`},{code:`340826`,name:`宿松县`},{code:`340827`,name:`望江县`},{code:`340828`,name:`岳西县`},{code:`340881`,name:`桐城市`},{code:`340882`,name:`潜山市`}]},{code:`341000`,name:`黄山市`,districts:[{code:`341002`,name:`屯溪区`},{code:`341003`,name:`黄山区`},{code:`341004`,name:`徽州区`},{code:`341021`,name:`歙县`},{code:`341022`,name:`休宁县`},{code:`341023`,name:`黟县`},{code:`341024`,name:`祁门县`}]},{code:`341100`,name:`滁州市`,districts:[{code:`341102`,name:`琅琊区`},{code:`341103`,name:`南谯区`},{code:`341122`,name:`来安县`},{code:`341124`,name:`全椒县`},{code:`341125`,name:`定远县`},{code:`341126`,name:`凤阳县`},{code:`341181`,name:`天长市`},{code:`341182`,name:`明光市`}]},{code:`341200`,name:`阜阳市`,districts:[{code:`341202`,name:`颍州区`},{code:`341203`,name:`颍东区`},{code:`341204`,name:`颍泉区`},{code:`341221`,name:`临泉县`},{code:`341222`,name:`太和县`},{code:`341225`,name:`阜南县`},{code:`341226`,name:`颍上县`},{code:`341282`,name:`界首市`}]},{code:`341300`,name:`宿州市`,districts:[{code:`341302`,name:`埇桥区`},{code:`341321`,name:`砀山县`},{code:`341322`,name:`萧县`},{code:`341323`,name:`灵璧县`},{code:`341324`,name:`泗县`}]},{code:`341500`,name:`六安市`,districts:[{code:`341502`,name:`金安区`},{code:`341503`,name:`裕安区`},{code:`341504`,name:`叶集区`},{code:`341522`,name:`霍邱县`},{code:`341523`,name:`舒城县`},{code:`341524`,name:`金寨县`},{code:`341525`,name:`霍山县`}]},{code:`341600`,name:`亳州市`,districts:[{code:`341602`,name:`谯城区`},{code:`341621`,name:`涡阳县`},{code:`341622`,name:`蒙城县`},{code:`341623`,name:`利辛县`}]},{code:`341700`,name:`池州市`,districts:[{code:`341702`,name:`贵池区`},{code:`341721`,name:`东至县`},{code:`341722`,name:`石台县`},{code:`341723`,name:`青阳县`}]},{code:`341800`,name:`宣城市`,districts:[{code:`341802`,name:`宣州区`},{code:`341821`,name:`郎溪县`},{code:`341823`,name:`泾县`},{code:`341824`,name:`绩溪县`},{code:`341825`,name:`旌德县`},{code:`341881`,name:`宁国市`},{code:`341882`,name:`广德市`}]}]},{code:`350000`,name:`福建省`,cities:[{code:`350100`,name:`福州市`,districts:[{code:`350102`,name:`鼓楼区`},{code:`350103`,name:`台江区`},{code:`350104`,name:`仓山区`},{code:`350105`,name:`马尾区`},{code:`350111`,name:`晋安区`},{code:`350112`,name:`长乐区`},{code:`350121`,name:`闽侯县`},{code:`350122`,name:`连江县`},{code:`350123`,name:`罗源县`},{code:`350124`,name:`闽清县`},{code:`350125`,name:`永泰县`},{code:`350128`,name:`平潭县`},{code:`350181`,name:`福清市`}]},{code:`350200`,name:`厦门市`,districts:[{code:`350203`,name:`思明区`},{code:`350205`,name:`海沧区`},{code:`350206`,name:`湖里区`},{code:`350211`,name:`集美区`},{code:`350212`,name:`同安区`},{code:`350213`,name:`翔安区`}]},{code:`350300`,name:`莆田市`,districts:[{code:`350302`,name:`城厢区`},{code:`350303`,name:`涵江区`},{code:`350304`,name:`荔城区`},{code:`350305`,name:`秀屿区`},{code:`350322`,name:`仙游县`}]},{code:`350400`,name:`三明市`,districts:[{code:`350404`,name:`三元区`},{code:`350405`,name:`沙县区`},{code:`350421`,name:`明溪县`},{code:`350423`,name:`清流县`},{code:`350424`,name:`宁化县`},{code:`350425`,name:`大田县`},{code:`350426`,name:`尤溪县`},{code:`350428`,name:`将乐县`},{code:`350429`,name:`泰宁县`},{code:`350430`,name:`建宁县`},{code:`350481`,name:`永安市`}]},{code:`350500`,name:`泉州市`,districts:[{code:`350502`,name:`鲤城区`},{code:`350503`,name:`丰泽区`},{code:`350504`,name:`洛江区`},{code:`350505`,name:`泉港区`},{code:`350521`,name:`惠安县`},{code:`350524`,name:`安溪县`},{code:`350525`,name:`永春县`},{code:`350526`,name:`德化县`},{code:`350527`,name:`金门县`},{code:`350581`,name:`石狮市`},{code:`350582`,name:`晋江市`},{code:`350583`,name:`南安市`}]},{code:`350600`,name:`漳州市`,districts:[{code:`350602`,name:`芗城区`},{code:`350603`,name:`龙文区`},{code:`350604`,name:`龙海区`},{code:`350605`,name:`长泰区`},{code:`350622`,name:`云霄县`},{code:`350623`,name:`漳浦县`},{code:`350624`,name:`诏安县`},{code:`350626`,name:`东山县`},{code:`350627`,name:`南靖县`},{code:`350628`,name:`平和县`},{code:`350629`,name:`华安县`}]},{code:`350700`,name:`南平市`,districts:[{code:`350702`,name:`延平区`},{code:`350703`,name:`建阳区`},{code:`350721`,name:`顺昌县`},{code:`350722`,name:`浦城县`},{code:`350723`,name:`光泽县`},{code:`350724`,name:`松溪县`},{code:`350725`,name:`政和县`},{code:`350781`,name:`邵武市`},{code:`350782`,name:`武夷山市`},{code:`350783`,name:`建瓯市`}]},{code:`350800`,name:`龙岩市`,districts:[{code:`350802`,name:`新罗区`},{code:`350803`,name:`永定区`},{code:`350821`,name:`长汀县`},{code:`350823`,name:`上杭县`},{code:`350824`,name:`武平县`},{code:`350825`,name:`连城县`},{code:`350881`,name:`漳平市`}]},{code:`350900`,name:`宁德市`,districts:[{code:`350902`,name:`蕉城区`},{code:`350921`,name:`霞浦县`},{code:`350922`,name:`古田县`},{code:`350923`,name:`屏南县`},{code:`350924`,name:`寿宁县`},{code:`350925`,name:`周宁县`},{code:`350926`,name:`柘荣县`},{code:`350981`,name:`福安市`},{code:`350982`,name:`福鼎市`}]}]},{code:`360000`,name:`江西省`,cities:[{code:`360100`,name:`南昌市`,districts:[{code:`360102`,name:`东湖区`},{code:`360103`,name:`西湖区`},{code:`360104`,name:`青云谱区`},{code:`360111`,name:`青山湖区`},{code:`360112`,name:`新建区`},{code:`360113`,name:`红谷滩区`},{code:`360121`,name:`南昌县`},{code:`360123`,name:`安义县`},{code:`360124`,name:`进贤县`}]},{code:`360200`,name:`景德镇市`,districts:[{code:`360202`,name:`昌江区`},{code:`360203`,name:`珠山区`},{code:`360222`,name:`浮梁县`},{code:`360281`,name:`乐平市`}]},{code:`360300`,name:`萍乡市`,districts:[{code:`360302`,name:`安源区`},{code:`360313`,name:`湘东区`},{code:`360321`,name:`莲花县`},{code:`360322`,name:`上栗县`},{code:`360323`,name:`芦溪县`}]},{code:`360400`,name:`九江市`,districts:[{code:`360402`,name:`濂溪区`},{code:`360403`,name:`浔阳区`},{code:`360404`,name:`柴桑区`},{code:`360423`,name:`武宁县`},{code:`360424`,name:`修水县`},{code:`360425`,name:`永修县`},{code:`360426`,name:`德安县`},{code:`360428`,name:`都昌县`},{code:`360429`,name:`湖口县`},{code:`360430`,name:`彭泽县`},{code:`360481`,name:`瑞昌市`},{code:`360482`,name:`共青城市`},{code:`360483`,name:`庐山市`}]},{code:`360500`,name:`新余市`,districts:[{code:`360502`,name:`渝水区`},{code:`360521`,name:`分宜县`}]},{code:`360600`,name:`鹰潭市`,districts:[{code:`360602`,name:`月湖区`},{code:`360603`,name:`余江区`},{code:`360681`,name:`贵溪市`}]},{code:`360700`,name:`赣州市`,districts:[{code:`360702`,name:`章贡区`},{code:`360703`,name:`南康区`},{code:`360704`,name:`赣县区`},{code:`360722`,name:`信丰县`},{code:`360723`,name:`大余县`},{code:`360724`,name:`上犹县`},{code:`360725`,name:`崇义县`},{code:`360726`,name:`安远县`},{code:`360728`,name:`定南县`},{code:`360729`,name:`全南县`},{code:`360730`,name:`宁都县`},{code:`360731`,name:`于都县`},{code:`360732`,name:`兴国县`},{code:`360733`,name:`会昌县`},{code:`360734`,name:`寻乌县`},{code:`360735`,name:`石城县`},{code:`360781`,name:`瑞金市`},{code:`360783`,name:`龙南市`}]},{code:`360800`,name:`吉安市`,districts:[{code:`360802`,name:`吉州区`},{code:`360803`,name:`青原区`},{code:`360821`,name:`吉安县`},{code:`360822`,name:`吉水县`},{code:`360823`,name:`峡江县`},{code:`360824`,name:`新干县`},{code:`360825`,name:`永丰县`},{code:`360826`,name:`泰和县`},{code:`360827`,name:`遂川县`},{code:`360828`,name:`万安县`},{code:`360829`,name:`安福县`},{code:`360830`,name:`永新县`},{code:`360881`,name:`井冈山市`}]},{code:`360900`,name:`宜春市`,districts:[{code:`360902`,name:`袁州区`},{code:`360921`,name:`奉新县`},{code:`360922`,name:`万载县`},{code:`360923`,name:`上高县`},{code:`360924`,name:`宜丰县`},{code:`360925`,name:`靖安县`},{code:`360926`,name:`铜鼓县`},{code:`360981`,name:`丰城市`},{code:`360982`,name:`樟树市`},{code:`360983`,name:`高安市`}]},{code:`361000`,name:`抚州市`,districts:[{code:`361002`,name:`临川区`},{code:`361003`,name:`东乡区`},{code:`361021`,name:`南城县`},{code:`361022`,name:`黎川县`},{code:`361023`,name:`南丰县`},{code:`361024`,name:`崇仁县`},{code:`361025`,name:`乐安县`},{code:`361026`,name:`宜黄县`},{code:`361027`,name:`金溪县`},{code:`361028`,name:`资溪县`},{code:`361030`,name:`广昌县`}]},{code:`361100`,name:`上饶市`,districts:[{code:`361102`,name:`信州区`},{code:`361103`,name:`广丰区`},{code:`361104`,name:`广信区`},{code:`361123`,name:`玉山县`},{code:`361124`,name:`铅山县`},{code:`361125`,name:`横峰县`},{code:`361126`,name:`弋阳县`},{code:`361127`,name:`余干县`},{code:`361128`,name:`鄱阳县`},{code:`361129`,name:`万年县`},{code:`361130`,name:`婺源县`},{code:`361181`,name:`德兴市`}]}]},{code:`370000`,name:`山东省`,cities:[{code:`370100`,name:`济南市`,districts:[{code:`370102`,name:`历下区`},{code:`370103`,name:`市中区`},{code:`370104`,name:`槐荫区`},{code:`370105`,name:`天桥区`},{code:`370112`,name:`历城区`},{code:`370113`,name:`长清区`},{code:`370114`,name:`章丘区`},{code:`370115`,name:`济阳区`},{code:`370116`,name:`莱芜区`},{code:`370117`,name:`钢城区`},{code:`370124`,name:`平阴县`},{code:`370126`,name:`商河县`}]},{code:`370200`,name:`青岛市`,districts:[{code:`370202`,name:`市南区`},{code:`370203`,name:`市北区`},{code:`370211`,name:`黄岛区`},{code:`370212`,name:`崂山区`},{code:`370213`,name:`李沧区`},{code:`370214`,name:`城阳区`},{code:`370215`,name:`即墨区`},{code:`370281`,name:`胶州市`},{code:`370283`,name:`平度市`},{code:`370285`,name:`莱西市`}]},{code:`370300`,name:`淄博市`,districts:[{code:`370302`,name:`淄川区`},{code:`370303`,name:`张店区`},{code:`370304`,name:`博山区`},{code:`370305`,name:`临淄区`},{code:`370306`,name:`周村区`},{code:`370321`,name:`桓台县`},{code:`370322`,name:`高青县`},{code:`370323`,name:`沂源县`}]},{code:`370400`,name:`枣庄市`,districts:[{code:`370402`,name:`市中区`},{code:`370403`,name:`薛城区`},{code:`370404`,name:`峄城区`},{code:`370405`,name:`台儿庄区`},{code:`370406`,name:`山亭区`},{code:`370481`,name:`滕州市`}]},{code:`370500`,name:`东营市`,districts:[{code:`370502`,name:`东营区`},{code:`370503`,name:`河口区`},{code:`370505`,name:`垦利区`},{code:`370522`,name:`利津县`},{code:`370523`,name:`广饶县`}]},{code:`370600`,name:`烟台市`,districts:[{code:`370602`,name:`芝罘区`},{code:`370611`,name:`福山区`},{code:`370612`,name:`牟平区`},{code:`370613`,name:`莱山区`},{code:`370614`,name:`蓬莱区`},{code:`370681`,name:`龙口市`},{code:`370682`,name:`莱阳市`},{code:`370683`,name:`莱州市`},{code:`370685`,name:`招远市`},{code:`370686`,name:`栖霞市`},{code:`370687`,name:`海阳市`}]},{code:`370700`,name:`潍坊市`,districts:[{code:`370702`,name:`潍城区`},{code:`370703`,name:`寒亭区`},{code:`370704`,name:`坊子区`},{code:`370705`,name:`奎文区`},{code:`370724`,name:`临朐县`},{code:`370725`,name:`昌乐县`},{code:`370781`,name:`青州市`},{code:`370782`,name:`诸城市`},{code:`370783`,name:`寿光市`},{code:`370784`,name:`安丘市`},{code:`370785`,name:`高密市`},{code:`370786`,name:`昌邑市`}]},{code:`370800`,name:`济宁市`,districts:[{code:`370811`,name:`任城区`},{code:`370812`,name:`兖州区`},{code:`370826`,name:`微山县`},{code:`370827`,name:`鱼台县`},{code:`370828`,name:`金乡县`},{code:`370829`,name:`嘉祥县`},{code:`370830`,name:`汶上县`},{code:`370831`,name:`泗水县`},{code:`370832`,name:`梁山县`},{code:`370881`,name:`曲阜市`},{code:`370883`,name:`邹城市`}]},{code:`370900`,name:`泰安市`,districts:[{code:`370902`,name:`泰山区`},{code:`370911`,name:`岱岳区`},{code:`370921`,name:`宁阳县`},{code:`370923`,name:`东平县`},{code:`370982`,name:`新泰市`},{code:`370983`,name:`肥城市`}]},{code:`371000`,name:`威海市`,districts:[{code:`371002`,name:`环翠区`},{code:`371003`,name:`文登区`},{code:`371082`,name:`荣成市`},{code:`371083`,name:`乳山市`}]},{code:`371100`,name:`日照市`,districts:[{code:`371102`,name:`东港区`},{code:`371103`,name:`岚山区`},{code:`371121`,name:`五莲县`},{code:`371122`,name:`莒县`}]},{code:`371300`,name:`临沂市`,districts:[{code:`371302`,name:`兰山区`},{code:`371311`,name:`罗庄区`},{code:`371312`,name:`河东区`},{code:`371321`,name:`沂南县`},{code:`371322`,name:`郯城县`},{code:`371323`,name:`沂水县`},{code:`371324`,name:`兰陵县`},{code:`371325`,name:`费县`},{code:`371326`,name:`平邑县`},{code:`371327`,name:`莒南县`},{code:`371328`,name:`蒙阴县`},{code:`371329`,name:`临沭县`}]},{code:`371400`,name:`德州市`,districts:[{code:`371402`,name:`德城区`},{code:`371403`,name:`陵城区`},{code:`371422`,name:`宁津县`},{code:`371423`,name:`庆云县`},{code:`371424`,name:`临邑县`},{code:`371425`,name:`齐河县`},{code:`371426`,name:`平原县`},{code:`371427`,name:`夏津县`},{code:`371428`,name:`武城县`},{code:`371481`,name:`乐陵市`},{code:`371482`,name:`禹城市`}]},{code:`371500`,name:`聊城市`,districts:[{code:`371502`,name:`东昌府区`},{code:`371503`,name:`茌平区`},{code:`371521`,name:`阳谷县`},{code:`371522`,name:`莘县`},{code:`371524`,name:`东阿县`},{code:`371525`,name:`冠县`},{code:`371526`,name:`高唐县`},{code:`371581`,name:`临清市`}]},{code:`371600`,name:`滨州市`,districts:[{code:`371602`,name:`滨城区`},{code:`371603`,name:`沾化区`},{code:`371621`,name:`惠民县`},{code:`371622`,name:`阳信县`},{code:`371623`,name:`无棣县`},{code:`371625`,name:`博兴县`},{code:`371681`,name:`邹平市`}]},{code:`371700`,name:`菏泽市`,districts:[{code:`371702`,name:`牡丹区`},{code:`371703`,name:`定陶区`},{code:`371721`,name:`曹县`},{code:`371722`,name:`单县`},{code:`371723`,name:`成武县`},{code:`371724`,name:`巨野县`},{code:`371725`,name:`郓城县`},{code:`371726`,name:`鄄城县`},{code:`371728`,name:`东明县`}]}]},{code:`410000`,name:`河南省`,cities:[{code:`410100`,name:`郑州市`,districts:[{code:`410102`,name:`中原区`},{code:`410103`,name:`二七区`},{code:`410104`,name:`管城回族区`},{code:`410105`,name:`金水区`},{code:`410106`,name:`上街区`},{code:`410108`,name:`惠济区`},{code:`410122`,name:`中牟县`},{code:`410181`,name:`巩义市`},{code:`410182`,name:`荥阳市`},{code:`410183`,name:`新密市`},{code:`410184`,name:`新郑市`},{code:`410185`,name:`登封市`}]},{code:`410200`,name:`开封市`,districts:[{code:`410202`,name:`龙亭区`},{code:`410203`,name:`顺河回族区`},{code:`410204`,name:`鼓楼区`},{code:`410205`,name:`禹王台区`},{code:`410212`,name:`祥符区`},{code:`410221`,name:`杞县`},{code:`410222`,name:`通许县`},{code:`410223`,name:`尉氏县`},{code:`410225`,name:`兰考县`}]},{code:`410300`,name:`洛阳市`,districts:[{code:`410302`,name:`老城区`},{code:`410303`,name:`西工区`},{code:`410304`,name:`瀍河回族区`},{code:`410305`,name:`涧西区`},{code:`410307`,name:`偃师区`},{code:`410308`,name:`孟津区`},{code:`410311`,name:`洛龙区`},{code:`410323`,name:`新安县`},{code:`410324`,name:`栾川县`},{code:`410325`,name:`嵩县`},{code:`410326`,name:`汝阳县`},{code:`410327`,name:`宜阳县`},{code:`410328`,name:`洛宁县`},{code:`410329`,name:`伊川县`}]},{code:`410400`,name:`平顶山市`,districts:[{code:`410402`,name:`新华区`},{code:`410403`,name:`卫东区`},{code:`410404`,name:`石龙区`},{code:`410411`,name:`湛河区`},{code:`410421`,name:`宝丰县`},{code:`410422`,name:`叶县`},{code:`410423`,name:`鲁山县`},{code:`410425`,name:`郏县`},{code:`410481`,name:`舞钢市`},{code:`410482`,name:`汝州市`}]},{code:`410500`,name:`安阳市`,districts:[{code:`410502`,name:`文峰区`},{code:`410503`,name:`北关区`},{code:`410505`,name:`殷都区`},{code:`410506`,name:`龙安区`},{code:`410522`,name:`安阳县`},{code:`410523`,name:`汤阴县`},{code:`410526`,name:`滑县`},{code:`410527`,name:`内黄县`},{code:`410581`,name:`林州市`}]},{code:`410600`,name:`鹤壁市`,districts:[{code:`410602`,name:`鹤山区`},{code:`410603`,name:`山城区`},{code:`410611`,name:`淇滨区`},{code:`410621`,name:`浚县`},{code:`410622`,name:`淇县`}]},{code:`410700`,name:`新乡市`,districts:[{code:`410702`,name:`红旗区`},{code:`410703`,name:`卫滨区`},{code:`410704`,name:`凤泉区`},{code:`410711`,name:`牧野区`},{code:`410721`,name:`新乡县`},{code:`410724`,name:`获嘉县`},{code:`410725`,name:`原阳县`},{code:`410726`,name:`延津县`},{code:`410727`,name:`封丘县`},{code:`410781`,name:`卫辉市`},{code:`410782`,name:`辉县市`},{code:`410783`,name:`长垣市`}]},{code:`410800`,name:`焦作市`,districts:[{code:`410802`,name:`解放区`},{code:`410803`,name:`中站区`},{code:`410804`,name:`马村区`},{code:`410811`,name:`山阳区`},{code:`410821`,name:`修武县`},{code:`410822`,name:`博爱县`},{code:`410823`,name:`武陟县`},{code:`410825`,name:`温县`},{code:`410882`,name:`沁阳市`},{code:`410883`,name:`孟州市`}]},{code:`410900`,name:`濮阳市`,districts:[{code:`410902`,name:`华龙区`},{code:`410922`,name:`清丰县`},{code:`410923`,name:`南乐县`},{code:`410926`,name:`范县`},{code:`410927`,name:`台前县`},{code:`410928`,name:`濮阳县`}]},{code:`411000`,name:`许昌市`,districts:[{code:`411002`,name:`魏都区`},{code:`411003`,name:`建安区`},{code:`411024`,name:`鄢陵县`},{code:`411025`,name:`襄城县`},{code:`411081`,name:`禹州市`},{code:`411082`,name:`长葛市`}]},{code:`411100`,name:`漯河市`,districts:[{code:`411102`,name:`源汇区`},{code:`411103`,name:`郾城区`},{code:`411104`,name:`召陵区`},{code:`411121`,name:`舞阳县`},{code:`411122`,name:`临颍县`}]},{code:`411200`,name:`三门峡市`,districts:[{code:`411202`,name:`湖滨区`},{code:`411203`,name:`陕州区`},{code:`411221`,name:`渑池县`},{code:`411224`,name:`卢氏县`},{code:`411281`,name:`义马市`},{code:`411282`,name:`灵宝市`}]},{code:`411300`,name:`南阳市`,districts:[{code:`411302`,name:`宛城区`},{code:`411303`,name:`卧龙区`},{code:`411321`,name:`南召县`},{code:`411322`,name:`方城县`},{code:`411323`,name:`西峡县`},{code:`411324`,name:`镇平县`},{code:`411325`,name:`内乡县`},{code:`411326`,name:`淅川县`},{code:`411327`,name:`社旗县`},{code:`411328`,name:`唐河县`},{code:`411329`,name:`新野县`},{code:`411330`,name:`桐柏县`},{code:`411381`,name:`邓州市`}]},{code:`411400`,name:`商丘市`,districts:[{code:`411402`,name:`梁园区`},{code:`411403`,name:`睢阳区`},{code:`411421`,name:`民权县`},{code:`411422`,name:`睢县`},{code:`411423`,name:`宁陵县`},{code:`411424`,name:`柘城县`},{code:`411425`,name:`虞城县`},{code:`411426`,name:`夏邑县`},{code:`411481`,name:`永城市`}]},{code:`411500`,name:`信阳市`,districts:[{code:`411502`,name:`浉河区`},{code:`411503`,name:`平桥区`},{code:`411521`,name:`罗山县`},{code:`411522`,name:`光山县`},{code:`411523`,name:`新县`},{code:`411524`,name:`商城县`},{code:`411525`,name:`固始县`},{code:`411526`,name:`潢川县`},{code:`411527`,name:`淮滨县`},{code:`411528`,name:`息县`}]},{code:`411600`,name:`周口市`,districts:[{code:`411602`,name:`川汇区`},{code:`411603`,name:`淮阳区`},{code:`411621`,name:`扶沟县`},{code:`411622`,name:`西华县`},{code:`411623`,name:`商水县`},{code:`411624`,name:`沈丘县`},{code:`411625`,name:`郸城县`},{code:`411627`,name:`太康县`},{code:`411628`,name:`鹿邑县`},{code:`411681`,name:`项城市`}]},{code:`411700`,name:`驻马店市`,districts:[{code:`411702`,name:`驿城区`},{code:`411721`,name:`西平县`},{code:`411722`,name:`上蔡县`},{code:`411723`,name:`平舆县`},{code:`411724`,name:`正阳县`},{code:`411725`,name:`确山县`},{code:`411726`,name:`泌阳县`},{code:`411727`,name:`汝南县`},{code:`411728`,name:`遂平县`},{code:`411729`,name:`新蔡县`}]},{code:`419001`,name:`济源市`,districts:[{code:`419001`,name:`济源市`}]}]},{code:`420000`,name:`湖北省`,cities:[{code:`420100`,name:`武汉市`,districts:[{code:`420102`,name:`江岸区`},{code:`420103`,name:`江汉区`},{code:`420104`,name:`硚口区`},{code:`420105`,name:`汉阳区`},{code:`420106`,name:`武昌区`},{code:`420107`,name:`青山区`},{code:`420111`,name:`洪山区`},{code:`420112`,name:`东西湖区`},{code:`420113`,name:`汉南区`},{code:`420114`,name:`蔡甸区`},{code:`420115`,name:`江夏区`},{code:`420116`,name:`黄陂区`},{code:`420117`,name:`新洲区`}]},{code:`420200`,name:`黄石市`,districts:[{code:`420202`,name:`黄石港区`},{code:`420203`,name:`西塞山区`},{code:`420204`,name:`下陆区`},{code:`420205`,name:`铁山区`},{code:`420222`,name:`阳新县`},{code:`420281`,name:`大冶市`}]},{code:`420300`,name:`十堰市`,districts:[{code:`420302`,name:`茅箭区`},{code:`420303`,name:`张湾区`},{code:`420304`,name:`郧阳区`},{code:`420322`,name:`郧西县`},{code:`420323`,name:`竹山县`},{code:`420324`,name:`竹溪县`},{code:`420325`,name:`房县`},{code:`420381`,name:`丹江口市`}]},{code:`420500`,name:`宜昌市`,districts:[{code:`420502`,name:`西陵区`},{code:`420503`,name:`伍家岗区`},{code:`420504`,name:`点军区`},{code:`420505`,name:`猇亭区`},{code:`420506`,name:`夷陵区`},{code:`420525`,name:`远安县`},{code:`420526`,name:`兴山县`},{code:`420527`,name:`秭归县`},{code:`420528`,name:`长阳土家族自治县`},{code:`420529`,name:`五峰土家族自治县`},{code:`420581`,name:`宜都市`},{code:`420582`,name:`当阳市`},{code:`420583`,name:`枝江市`}]},{code:`420600`,name:`襄阳市`,districts:[{code:`420602`,name:`襄城区`},{code:`420606`,name:`樊城区`},{code:`420607`,name:`襄州区`},{code:`420624`,name:`南漳县`},{code:`420625`,name:`谷城县`},{code:`420626`,name:`保康县`},{code:`420682`,name:`老河口市`},{code:`420683`,name:`枣阳市`},{code:`420684`,name:`宜城市`}]},{code:`420700`,name:`鄂州市`,districts:[{code:`420702`,name:`梁子湖区`},{code:`420703`,name:`华容区`},{code:`420704`,name:`鄂城区`}]},{code:`420800`,name:`荆门市`,districts:[{code:`420802`,name:`东宝区`},{code:`420804`,name:`掇刀区`},{code:`420822`,name:`沙洋县`},{code:`420881`,name:`钟祥市`},{code:`420882`,name:`京山市`}]},{code:`420900`,name:`孝感市`,districts:[{code:`420902`,name:`孝南区`},{code:`420921`,name:`孝昌县`},{code:`420922`,name:`大悟县`},{code:`420923`,name:`云梦县`},{code:`420981`,name:`应城市`},{code:`420982`,name:`安陆市`},{code:`420984`,name:`汉川市`}]},{code:`421000`,name:`荆州市`,districts:[{code:`421002`,name:`沙市区`},{code:`421003`,name:`荆州区`},{code:`421022`,name:`公安县`},{code:`421024`,name:`江陵县`},{code:`421081`,name:`石首市`},{code:`421083`,name:`洪湖市`},{code:`421087`,name:`松滋市`},{code:`421088`,name:`监利市`}]},{code:`421100`,name:`黄冈市`,districts:[{code:`421102`,name:`黄州区`},{code:`421121`,name:`团风县`},{code:`421122`,name:`红安县`},{code:`421123`,name:`罗田县`},{code:`421124`,name:`英山县`},{code:`421125`,name:`浠水县`},{code:`421126`,name:`蕲春县`},{code:`421127`,name:`黄梅县`},{code:`421181`,name:`麻城市`},{code:`421182`,name:`武穴市`}]},{code:`421200`,name:`咸宁市`,districts:[{code:`421202`,name:`咸安区`},{code:`421221`,name:`嘉鱼县`},{code:`421222`,name:`通城县`},{code:`421223`,name:`崇阳县`},{code:`421224`,name:`通山县`},{code:`421281`,name:`赤壁市`}]},{code:`421300`,name:`随州市`,districts:[{code:`421303`,name:`曾都区`},{code:`421321`,name:`随县`},{code:`421381`,name:`广水市`}]},{code:`422800`,name:`恩施土家族苗族自治州`,districts:[{code:`422801`,name:`恩施市`},{code:`422802`,name:`利川市`},{code:`422822`,name:`建始县`},{code:`422823`,name:`巴东县`},{code:`422825`,name:`宣恩县`},{code:`422826`,name:`咸丰县`},{code:`422827`,name:`来凤县`},{code:`422828`,name:`鹤峰县`}]},{code:`429004`,name:`仙桃市`,districts:[{code:`429004`,name:`仙桃市`}]},{code:`429005`,name:`潜江市`,districts:[{code:`429005`,name:`潜江市`}]},{code:`429006`,name:`天门市`,districts:[{code:`429006`,name:`天门市`}]},{code:`429021`,name:`神农架林区`,districts:[{code:`429021`,name:`神农架林区`}]}]},{code:`430000`,name:`湖南省`,cities:[{code:`430100`,name:`长沙市`,districts:[{code:`430102`,name:`芙蓉区`},{code:`430103`,name:`天心区`},{code:`430104`,name:`岳麓区`},{code:`430105`,name:`开福区`},{code:`430111`,name:`雨花区`},{code:`430112`,name:`望城区`},{code:`430121`,name:`长沙县`},{code:`430181`,name:`浏阳市`},{code:`430182`,name:`宁乡市`}]},{code:`430200`,name:`株洲市`,districts:[{code:`430202`,name:`荷塘区`},{code:`430203`,name:`芦淞区`},{code:`430204`,name:`石峰区`},{code:`430211`,name:`天元区`},{code:`430212`,name:`渌口区`},{code:`430223`,name:`攸县`},{code:`430224`,name:`茶陵县`},{code:`430225`,name:`炎陵县`},{code:`430281`,name:`醴陵市`}]},{code:`430300`,name:`湘潭市`,districts:[{code:`430302`,name:`雨湖区`},{code:`430304`,name:`岳塘区`},{code:`430321`,name:`湘潭县`},{code:`430381`,name:`湘乡市`},{code:`430382`,name:`韶山市`}]},{code:`430400`,name:`衡阳市`,districts:[{code:`430405`,name:`珠晖区`},{code:`430406`,name:`雁峰区`},{code:`430407`,name:`石鼓区`},{code:`430408`,name:`蒸湘区`},{code:`430412`,name:`南岳区`},{code:`430421`,name:`衡阳县`},{code:`430422`,name:`衡南县`},{code:`430423`,name:`衡山县`},{code:`430424`,name:`衡东县`},{code:`430426`,name:`祁东县`},{code:`430481`,name:`耒阳市`},{code:`430482`,name:`常宁市`}]},{code:`430500`,name:`邵阳市`,districts:[{code:`430502`,name:`双清区`},{code:`430503`,name:`大祥区`},{code:`430511`,name:`北塔区`},{code:`430522`,name:`新邵县`},{code:`430523`,name:`邵阳县`},{code:`430524`,name:`隆回县`},{code:`430525`,name:`洞口县`},{code:`430527`,name:`绥宁县`},{code:`430528`,name:`新宁县`},{code:`430529`,name:`城步苗族自治县`},{code:`430581`,name:`武冈市`},{code:`430582`,name:`邵东市`}]},{code:`430600`,name:`岳阳市`,districts:[{code:`430602`,name:`岳阳楼区`},{code:`430603`,name:`云溪区`},{code:`430611`,name:`君山区`},{code:`430621`,name:`岳阳县`},{code:`430623`,name:`华容县`},{code:`430624`,name:`湘阴县`},{code:`430626`,name:`平江县`},{code:`430681`,name:`汨罗市`},{code:`430682`,name:`临湘市`}]},{code:`430700`,name:`常德市`,districts:[{code:`430702`,name:`武陵区`},{code:`430703`,name:`鼎城区`},{code:`430721`,name:`安乡县`},{code:`430722`,name:`汉寿县`},{code:`430723`,name:`澧县`},{code:`430724`,name:`临澧县`},{code:`430725`,name:`桃源县`},{code:`430726`,name:`石门县`},{code:`430781`,name:`津市市`}]},{code:`430800`,name:`张家界市`,districts:[{code:`430802`,name:`永定区`},{code:`430811`,name:`武陵源区`},{code:`430821`,name:`慈利县`},{code:`430822`,name:`桑植县`}]},{code:`430900`,name:`益阳市`,districts:[{code:`430902`,name:`资阳区`},{code:`430903`,name:`赫山区`},{code:`430921`,name:`南县`},{code:`430922`,name:`桃江县`},{code:`430923`,name:`安化县`},{code:`430981`,name:`沅江市`}]},{code:`431000`,name:`郴州市`,districts:[{code:`431002`,name:`北湖区`},{code:`431003`,name:`苏仙区`},{code:`431021`,name:`桂阳县`},{code:`431022`,name:`宜章县`},{code:`431023`,name:`永兴县`},{code:`431024`,name:`嘉禾县`},{code:`431025`,name:`临武县`},{code:`431026`,name:`汝城县`},{code:`431027`,name:`桂东县`},{code:`431028`,name:`安仁县`},{code:`431081`,name:`资兴市`}]},{code:`431100`,name:`永州市`,districts:[{code:`431102`,name:`零陵区`},{code:`431103`,name:`冷水滩区`},{code:`431122`,name:`东安县`},{code:`431123`,name:`双牌县`},{code:`431124`,name:`道县`},{code:`431125`,name:`江永县`},{code:`431126`,name:`宁远县`},{code:`431127`,name:`蓝山县`},{code:`431128`,name:`新田县`},{code:`431129`,name:`江华瑶族自治县`},{code:`431181`,name:`祁阳市`}]},{code:`431200`,name:`怀化市`,districts:[{code:`431202`,name:`鹤城区`},{code:`431221`,name:`中方县`},{code:`431222`,name:`沅陵县`},{code:`431223`,name:`辰溪县`},{code:`431224`,name:`溆浦县`},{code:`431225`,name:`会同县`},{code:`431226`,name:`麻阳苗族自治县`},{code:`431227`,name:`新晃侗族自治县`},{code:`431228`,name:`芷江侗族自治县`},{code:`431229`,name:`靖州苗族侗族自治县`},{code:`431230`,name:`通道侗族自治县`},{code:`431281`,name:`洪江市`}]},{code:`431300`,name:`娄底市`,districts:[{code:`431302`,name:`娄星区`},{code:`431321`,name:`双峰县`},{code:`431322`,name:`新化县`},{code:`431381`,name:`冷水江市`},{code:`431382`,name:`涟源市`}]},{code:`433100`,name:`湘西土家族苗族自治州`,districts:[{code:`433101`,name:`吉首市`},{code:`433122`,name:`泸溪县`},{code:`433123`,name:`凤凰县`},{code:`433124`,name:`花垣县`},{code:`433125`,name:`保靖县`},{code:`433126`,name:`古丈县`},{code:`433127`,name:`永顺县`},{code:`433130`,name:`龙山县`}]}]},{code:`440000`,name:`广东省`,cities:[{code:`440100`,name:`广州市`,districts:[{code:`440103`,name:`荔湾区`},{code:`440104`,name:`越秀区`},{code:`440105`,name:`海珠区`},{code:`440106`,name:`天河区`},{code:`440111`,name:`白云区`},{code:`440112`,name:`黄埔区`},{code:`440113`,name:`番禺区`},{code:`440114`,name:`花都区`},{code:`440115`,name:`南沙区`},{code:`440117`,name:`从化区`},{code:`440118`,name:`增城区`}]},{code:`440200`,name:`韶关市`,districts:[{code:`440203`,name:`武江区`},{code:`440204`,name:`浈江区`},{code:`440205`,name:`曲江区`},{code:`440222`,name:`始兴县`},{code:`440224`,name:`仁化县`},{code:`440229`,name:`翁源县`},{code:`440232`,name:`乳源瑶族自治县`},{code:`440233`,name:`新丰县`},{code:`440281`,name:`乐昌市`},{code:`440282`,name:`南雄市`}]},{code:`440300`,name:`深圳市`,districts:[{code:`440303`,name:`罗湖区`},{code:`440304`,name:`福田区`},{code:`440305`,name:`南山区`},{code:`440306`,name:`宝安区`},{code:`440307`,name:`龙岗区`},{code:`440308`,name:`盐田区`},{code:`440309`,name:`龙华区`},{code:`440310`,name:`坪山区`},{code:`440311`,name:`光明区`}]},{code:`440400`,name:`珠海市`,districts:[{code:`440402`,name:`香洲区`},{code:`440403`,name:`斗门区`},{code:`440404`,name:`金湾区`}]},{code:`440500`,name:`汕头市`,districts:[{code:`440507`,name:`龙湖区`},{code:`440511`,name:`金平区`},{code:`440512`,name:`濠江区`},{code:`440513`,name:`潮阳区`},{code:`440514`,name:`潮南区`},{code:`440515`,name:`澄海区`},{code:`440523`,name:`南澳县`}]},{code:`440600`,name:`佛山市`,districts:[{code:`440604`,name:`禅城区`},{code:`440605`,name:`南海区`},{code:`440606`,name:`顺德区`},{code:`440607`,name:`三水区`},{code:`440608`,name:`高明区`}]},{code:`440700`,name:`江门市`,districts:[{code:`440703`,name:`蓬江区`},{code:`440704`,name:`江海区`},{code:`440705`,name:`新会区`},{code:`440781`,name:`台山市`},{code:`440783`,name:`开平市`},{code:`440784`,name:`鹤山市`},{code:`440785`,name:`恩平市`}]},{code:`440800`,name:`湛江市`,districts:[{code:`440802`,name:`赤坎区`},{code:`440803`,name:`霞山区`},{code:`440804`,name:`坡头区`},{code:`440811`,name:`麻章区`},{code:`440823`,name:`遂溪县`},{code:`440825`,name:`徐闻县`},{code:`440881`,name:`廉江市`},{code:`440882`,name:`雷州市`},{code:`440883`,name:`吴川市`}]},{code:`440900`,name:`茂名市`,districts:[{code:`440902`,name:`茂南区`},{code:`440904`,name:`电白区`},{code:`440981`,name:`高州市`},{code:`440982`,name:`化州市`},{code:`440983`,name:`信宜市`}]},{code:`441200`,name:`肇庆市`,districts:[{code:`441202`,name:`端州区`},{code:`441203`,name:`鼎湖区`},{code:`441204`,name:`高要区`},{code:`441223`,name:`广宁县`},{code:`441224`,name:`怀集县`},{code:`441225`,name:`封开县`},{code:`441226`,name:`德庆县`},{code:`441284`,name:`四会市`}]},{code:`441300`,name:`惠州市`,districts:[{code:`441302`,name:`惠城区`},{code:`441303`,name:`惠阳区`},{code:`441322`,name:`博罗县`},{code:`441323`,name:`惠东县`},{code:`441324`,name:`龙门县`}]},{code:`441400`,name:`梅州市`,districts:[{code:`441402`,name:`梅江区`},{code:`441403`,name:`梅县区`},{code:`441422`,name:`大埔县`},{code:`441423`,name:`丰顺县`},{code:`441424`,name:`五华县`},{code:`441426`,name:`平远县`},{code:`441427`,name:`蕉岭县`},{code:`441481`,name:`兴宁市`}]},{code:`441500`,name:`汕尾市`,districts:[{code:`441502`,name:`城区`},{code:`441521`,name:`海丰县`},{code:`441523`,name:`陆河县`},{code:`441581`,name:`陆丰市`}]},{code:`441600`,name:`河源市`,districts:[{code:`441602`,name:`源城区`},{code:`441621`,name:`紫金县`},{code:`441622`,name:`龙川县`},{code:`441623`,name:`连平县`},{code:`441624`,name:`和平县`},{code:`441625`,name:`东源县`}]},{code:`441700`,name:`阳江市`,districts:[{code:`441702`,name:`江城区`},{code:`441704`,name:`阳东区`},{code:`441721`,name:`阳西县`},{code:`441781`,name:`阳春市`}]},{code:`441800`,name:`清远市`,districts:[{code:`441802`,name:`清城区`},{code:`441803`,name:`清新区`},{code:`441821`,name:`佛冈县`},{code:`441823`,name:`阳山县`},{code:`441825`,name:`连山壮族瑶族自治县`},{code:`441826`,name:`连南瑶族自治县`},{code:`441881`,name:`英德市`},{code:`441882`,name:`连州市`}]},{code:`441900`,name:`东莞市`,districts:[{code:`441900`,name:`东莞市`}]},{code:`442000`,name:`中山市`,districts:[{code:`442000`,name:`中山市`}]},{code:`445100`,name:`潮州市`,districts:[{code:`445102`,name:`湘桥区`},{code:`445103`,name:`潮安区`},{code:`445122`,name:`饶平县`}]},{code:`445200`,name:`揭阳市`,districts:[{code:`445202`,name:`榕城区`},{code:`445203`,name:`揭东区`},{code:`445222`,name:`揭西县`},{code:`445224`,name:`惠来县`},{code:`445281`,name:`普宁市`}]},{code:`445300`,name:`云浮市`,districts:[{code:`445302`,name:`云城区`},{code:`445303`,name:`云安区`},{code:`445321`,name:`新兴县`},{code:`445322`,name:`郁南县`},{code:`445381`,name:`罗定市`}]}]},{code:`450000`,name:`广西壮族自治区`,cities:[{code:`450100`,name:`南宁市`,districts:[{code:`450102`,name:`兴宁区`},{code:`450103`,name:`青秀区`},{code:`450105`,name:`江南区`},{code:`450107`,name:`西乡塘区`},{code:`450108`,name:`良庆区`},{code:`450109`,name:`邕宁区`},{code:`450110`,name:`武鸣区`},{code:`450123`,name:`隆安县`},{code:`450124`,name:`马山县`},{code:`450125`,name:`上林县`},{code:`450126`,name:`宾阳县`},{code:`450181`,name:`横州市`}]},{code:`450200`,name:`柳州市`,districts:[{code:`450202`,name:`城中区`},{code:`450203`,name:`鱼峰区`},{code:`450204`,name:`柳南区`},{code:`450205`,name:`柳北区`},{code:`450206`,name:`柳江区`},{code:`450222`,name:`柳城县`},{code:`450223`,name:`鹿寨县`},{code:`450224`,name:`融安县`},{code:`450225`,name:`融水苗族自治县`},{code:`450226`,name:`三江侗族自治县`}]},{code:`450300`,name:`桂林市`,districts:[{code:`450302`,name:`秀峰区`},{code:`450303`,name:`叠彩区`},{code:`450304`,name:`象山区`},{code:`450305`,name:`七星区`},{code:`450311`,name:`雁山区`},{code:`450312`,name:`临桂区`},{code:`450321`,name:`阳朔县`},{code:`450323`,name:`灵川县`},{code:`450324`,name:`全州县`},{code:`450325`,name:`兴安县`},{code:`450326`,name:`永福县`},{code:`450327`,name:`灌阳县`},{code:`450328`,name:`龙胜各族自治县`},{code:`450329`,name:`资源县`},{code:`450330`,name:`平乐县`},{code:`450332`,name:`恭城瑶族自治县`},{code:`450381`,name:`荔浦市`}]},{code:`450400`,name:`梧州市`,districts:[{code:`450403`,name:`万秀区`},{code:`450405`,name:`长洲区`},{code:`450406`,name:`龙圩区`},{code:`450421`,name:`苍梧县`},{code:`450422`,name:`藤县`},{code:`450423`,name:`蒙山县`},{code:`450481`,name:`岑溪市`}]},{code:`450500`,name:`北海市`,districts:[{code:`450502`,name:`海城区`},{code:`450503`,name:`银海区`},{code:`450512`,name:`铁山港区`},{code:`450521`,name:`合浦县`}]},{code:`450600`,name:`防城港市`,districts:[{code:`450602`,name:`港口区`},{code:`450603`,name:`防城区`},{code:`450621`,name:`上思县`},{code:`450681`,name:`东兴市`}]},{code:`450700`,name:`钦州市`,districts:[{code:`450702`,name:`钦南区`},{code:`450703`,name:`钦北区`},{code:`450721`,name:`灵山县`},{code:`450722`,name:`浦北县`}]},{code:`450800`,name:`贵港市`,districts:[{code:`450802`,name:`港北区`},{code:`450803`,name:`港南区`},{code:`450804`,name:`覃塘区`},{code:`450821`,name:`平南县`},{code:`450881`,name:`桂平市`}]},{code:`450900`,name:`玉林市`,districts:[{code:`450902`,name:`玉州区`},{code:`450903`,name:`福绵区`},{code:`450921`,name:`容县`},{code:`450922`,name:`陆川县`},{code:`450923`,name:`博白县`},{code:`450924`,name:`兴业县`},{code:`450981`,name:`北流市`}]},{code:`451000`,name:`百色市`,districts:[{code:`451002`,name:`右江区`},{code:`451003`,name:`田阳区`},{code:`451022`,name:`田东县`},{code:`451024`,name:`德保县`},{code:`451026`,name:`那坡县`},{code:`451027`,name:`凌云县`},{code:`451028`,name:`乐业县`},{code:`451029`,name:`田林县`},{code:`451030`,name:`西林县`},{code:`451031`,name:`隆林各族自治县`},{code:`451081`,name:`靖西市`},{code:`451082`,name:`平果市`}]},{code:`451100`,name:`贺州市`,districts:[{code:`451102`,name:`八步区`},{code:`451103`,name:`平桂区`},{code:`451121`,name:`昭平县`},{code:`451122`,name:`钟山县`},{code:`451123`,name:`富川瑶族自治县`}]},{code:`451200`,name:`河池市`,districts:[{code:`451202`,name:`金城江区`},{code:`451203`,name:`宜州区`},{code:`451221`,name:`南丹县`},{code:`451222`,name:`天峨县`},{code:`451223`,name:`凤山县`},{code:`451224`,name:`东兰县`},{code:`451225`,name:`罗城仫佬族自治县`},{code:`451226`,name:`环江毛南族自治县`},{code:`451227`,name:`巴马瑶族自治县`},{code:`451228`,name:`都安瑶族自治县`},{code:`451229`,name:`大化瑶族自治县`}]},{code:`451300`,name:`来宾市`,districts:[{code:`451302`,name:`兴宾区`},{code:`451321`,name:`忻城县`},{code:`451322`,name:`象州县`},{code:`451323`,name:`武宣县`},{code:`451324`,name:`金秀瑶族自治县`},{code:`451381`,name:`合山市`}]},{code:`451400`,name:`崇左市`,districts:[{code:`451402`,name:`江州区`},{code:`451421`,name:`扶绥县`},{code:`451422`,name:`宁明县`},{code:`451423`,name:`龙州县`},{code:`451424`,name:`大新县`},{code:`451425`,name:`天等县`},{code:`451481`,name:`凭祥市`}]}]},{code:`460000`,name:`海南省`,cities:[{code:`460100`,name:`海口市`,districts:[{code:`460105`,name:`秀英区`},{code:`460106`,name:`龙华区`},{code:`460107`,name:`琼山区`},{code:`460108`,name:`美兰区`}]},{code:`460200`,name:`三亚市`,districts:[{code:`460202`,name:`海棠区`},{code:`460203`,name:`吉阳区`},{code:`460204`,name:`天涯区`},{code:`460205`,name:`崖州区`}]},{code:`460300`,name:`三沙市`,districts:[{code:`460302`,name:`西沙区`},{code:`460303`,name:`南沙区`}]},{code:`460400`,name:`儋州市`,districts:[{code:`460400`,name:`儋州市`}]},{code:`469001`,name:`五指山市`,districts:[{code:`469001`,name:`五指山市`}]},{code:`469002`,name:`琼海市`,districts:[{code:`469002`,name:`琼海市`}]},{code:`469005`,name:`文昌市`,districts:[{code:`469005`,name:`文昌市`}]},{code:`469006`,name:`万宁市`,districts:[{code:`469006`,name:`万宁市`}]},{code:`469007`,name:`东方市`,districts:[{code:`469007`,name:`东方市`}]},{code:`469021`,name:`定安县`,districts:[{code:`469021`,name:`定安县`}]},{code:`469022`,name:`屯昌县`,districts:[{code:`469022`,name:`屯昌县`}]},{code:`469023`,name:`澄迈县`,districts:[{code:`469023`,name:`澄迈县`}]},{code:`469024`,name:`临高县`,districts:[{code:`469024`,name:`临高县`}]},{code:`469025`,name:`白沙黎族自治县`,districts:[{code:`469025`,name:`白沙黎族自治县`}]},{code:`469026`,name:`昌江黎族自治县`,districts:[{code:`469026`,name:`昌江黎族自治县`}]},{code:`469027`,name:`乐东黎族自治县`,districts:[{code:`469027`,name:`乐东黎族自治县`}]},{code:`469028`,name:`陵水黎族自治县`,districts:[{code:`469028`,name:`陵水黎族自治县`}]},{code:`469029`,name:`保亭黎族苗族自治县`,districts:[{code:`469029`,name:`保亭黎族苗族自治县`}]},{code:`469030`,name:`琼中黎族苗族自治县`,districts:[{code:`469030`,name:`琼中黎族苗族自治县`}]}]},{code:`500000`,name:`重庆市`,cities:[{code:`500100`,name:`重庆城区`,districts:[{code:`500101`,name:`万州区`},{code:`500102`,name:`涪陵区`},{code:`500103`,name:`渝中区`},{code:`500104`,name:`大渡口区`},{code:`500106`,name:`沙坪坝区`},{code:`500107`,name:`九龙坡区`},{code:`500108`,name:`南岸区`},{code:`500109`,name:`北碚区`},{code:`500110`,name:`綦江区`},{code:`500111`,name:`大足区`},{code:`500113`,name:`巴南区`},{code:`500114`,name:`黔江区`},{code:`500115`,name:`长寿区`},{code:`500116`,name:`江津区`},{code:`500117`,name:`合川区`},{code:`500118`,name:`永川区`},{code:`500119`,name:`南川区`},{code:`500120`,name:`璧山区`},{code:`500151`,name:`铜梁区`},{code:`500152`,name:`潼南区`},{code:`500153`,name:`荣昌区`},{code:`500154`,name:`开州区`},{code:`500155`,name:`梁平区`},{code:`500156`,name:`武隆区`},{code:`500157`,name:`两江新区`}]},{code:`500200`,name:`重庆郊县`,districts:[{code:`500229`,name:`城口县`},{code:`500230`,name:`丰都县`},{code:`500231`,name:`垫江县`},{code:`500233`,name:`忠县`},{code:`500235`,name:`云阳县`},{code:`500236`,name:`奉节县`},{code:`500237`,name:`巫山县`},{code:`500238`,name:`巫溪县`},{code:`500240`,name:`石柱土家族自治县`},{code:`500241`,name:`秀山土家族苗族自治县`},{code:`500242`,name:`酉阳土家族苗族自治县`},{code:`500243`,name:`彭水苗族土家族自治县`}]}]},{code:`510000`,name:`四川省`,cities:[{code:`510100`,name:`成都市`,districts:[{code:`510104`,name:`锦江区`},{code:`510105`,name:`青羊区`},{code:`510106`,name:`金牛区`},{code:`510107`,name:`武侯区`},{code:`510108`,name:`成华区`},{code:`510112`,name:`龙泉驿区`},{code:`510113`,name:`青白江区`},{code:`510114`,name:`新都区`},{code:`510115`,name:`温江区`},{code:`510116`,name:`双流区`},{code:`510117`,name:`郫都区`},{code:`510118`,name:`新津区`},{code:`510121`,name:`金堂县`},{code:`510129`,name:`大邑县`},{code:`510131`,name:`蒲江县`},{code:`510181`,name:`都江堰市`},{code:`510182`,name:`彭州市`},{code:`510183`,name:`邛崃市`},{code:`510184`,name:`崇州市`},{code:`510185`,name:`简阳市`}]},{code:`510300`,name:`自贡市`,districts:[{code:`510302`,name:`自流井区`},{code:`510303`,name:`贡井区`},{code:`510304`,name:`大安区`},{code:`510311`,name:`沿滩区`},{code:`510321`,name:`荣县`},{code:`510322`,name:`富顺县`}]},{code:`510400`,name:`攀枝花市`,districts:[{code:`510402`,name:`东区`},{code:`510403`,name:`西区`},{code:`510411`,name:`仁和区`},{code:`510421`,name:`米易县`},{code:`510422`,name:`盐边县`}]},{code:`510500`,name:`泸州市`,districts:[{code:`510502`,name:`江阳区`},{code:`510503`,name:`纳溪区`},{code:`510504`,name:`龙马潭区`},{code:`510521`,name:`泸县`},{code:`510522`,name:`合江县`},{code:`510524`,name:`叙永县`},{code:`510525`,name:`古蔺县`}]},{code:`510600`,name:`德阳市`,districts:[{code:`510603`,name:`旌阳区`},{code:`510604`,name:`罗江区`},{code:`510623`,name:`中江县`},{code:`510681`,name:`广汉市`},{code:`510682`,name:`什邡市`},{code:`510683`,name:`绵竹市`}]},{code:`510700`,name:`绵阳市`,districts:[{code:`510703`,name:`涪城区`},{code:`510704`,name:`游仙区`},{code:`510705`,name:`安州区`},{code:`510722`,name:`三台县`},{code:`510723`,name:`盐亭县`},{code:`510725`,name:`梓潼县`},{code:`510726`,name:`北川羌族自治县`},{code:`510727`,name:`平武县`},{code:`510781`,name:`江油市`}]},{code:`510800`,name:`广元市`,districts:[{code:`510802`,name:`利州区`},{code:`510811`,name:`昭化区`},{code:`510812`,name:`朝天区`},{code:`510821`,name:`旺苍县`},{code:`510822`,name:`青川县`},{code:`510823`,name:`剑阁县`},{code:`510824`,name:`苍溪县`}]},{code:`510900`,name:`遂宁市`,districts:[{code:`510903`,name:`船山区`},{code:`510904`,name:`安居区`},{code:`510921`,name:`蓬溪县`},{code:`510923`,name:`大英县`},{code:`510981`,name:`射洪市`}]},{code:`511000`,name:`内江市`,districts:[{code:`511002`,name:`市中区`},{code:`511011`,name:`东兴区`},{code:`511024`,name:`威远县`},{code:`511025`,name:`资中县`},{code:`511083`,name:`隆昌市`}]},{code:`511100`,name:`乐山市`,districts:[{code:`511102`,name:`市中区`},{code:`511111`,name:`沙湾区`},{code:`511112`,name:`五通桥区`},{code:`511113`,name:`金口河区`},{code:`511123`,name:`犍为县`},{code:`511124`,name:`井研县`},{code:`511126`,name:`夹江县`},{code:`511129`,name:`沐川县`},{code:`511132`,name:`峨边彝族自治县`},{code:`511133`,name:`马边彝族自治县`},{code:`511181`,name:`峨眉山市`}]},{code:`511300`,name:`南充市`,districts:[{code:`511302`,name:`顺庆区`},{code:`511303`,name:`高坪区`},{code:`511304`,name:`嘉陵区`},{code:`511321`,name:`南部县`},{code:`511322`,name:`营山县`},{code:`511323`,name:`蓬安县`},{code:`511324`,name:`仪陇县`},{code:`511325`,name:`西充县`},{code:`511381`,name:`阆中市`}]},{code:`511400`,name:`眉山市`,districts:[{code:`511402`,name:`东坡区`},{code:`511403`,name:`彭山区`},{code:`511421`,name:`仁寿县`},{code:`511423`,name:`洪雅县`},{code:`511424`,name:`丹棱县`},{code:`511425`,name:`青神县`}]},{code:`511500`,name:`宜宾市`,districts:[{code:`511502`,name:`翠屏区`},{code:`511503`,name:`南溪区`},{code:`511504`,name:`叙州区`},{code:`511523`,name:`江安县`},{code:`511524`,name:`长宁县`},{code:`511525`,name:`高县`},{code:`511526`,name:`珙县`},{code:`511527`,name:`筠连县`},{code:`511528`,name:`兴文县`},{code:`511529`,name:`屏山县`}]},{code:`511600`,name:`广安市`,districts:[{code:`511602`,name:`广安区`},{code:`511603`,name:`前锋区`},{code:`511621`,name:`岳池县`},{code:`511622`,name:`武胜县`},{code:`511623`,name:`邻水县`},{code:`511681`,name:`华蓥市`}]},{code:`511700`,name:`达州市`,districts:[{code:`511702`,name:`通川区`},{code:`511703`,name:`达川区`},{code:`511722`,name:`宣汉县`},{code:`511723`,name:`开江县`},{code:`511724`,name:`大竹县`},{code:`511725`,name:`渠县`},{code:`511781`,name:`万源市`}]},{code:`511800`,name:`雅安市`,districts:[{code:`511802`,name:`雨城区`},{code:`511803`,name:`名山区`},{code:`511822`,name:`荥经县`},{code:`511823`,name:`汉源县`},{code:`511824`,name:`石棉县`},{code:`511825`,name:`天全县`},{code:`511826`,name:`芦山县`},{code:`511827`,name:`宝兴县`}]},{code:`511900`,name:`巴中市`,districts:[{code:`511902`,name:`巴州区`},{code:`511903`,name:`恩阳区`},{code:`511921`,name:`通江县`},{code:`511922`,name:`南江县`},{code:`511923`,name:`平昌县`}]},{code:`512000`,name:`资阳市`,districts:[{code:`512002`,name:`雁江区`},{code:`512021`,name:`安岳县`},{code:`512022`,name:`乐至县`}]},{code:`513200`,name:`阿坝藏族羌族自治州`,districts:[{code:`513201`,name:`马尔康市`},{code:`513221`,name:`汶川县`},{code:`513222`,name:`理县`},{code:`513223`,name:`茂县`},{code:`513224`,name:`松潘县`},{code:`513225`,name:`九寨沟县`},{code:`513226`,name:`金川县`},{code:`513227`,name:`小金县`},{code:`513228`,name:`黑水县`},{code:`513230`,name:`壤塘县`},{code:`513231`,name:`阿坝县`},{code:`513232`,name:`若尔盖县`},{code:`513233`,name:`红原县`}]},{code:`513300`,name:`甘孜藏族自治州`,districts:[{code:`513301`,name:`康定市`},{code:`513322`,name:`泸定县`},{code:`513323`,name:`丹巴县`},{code:`513324`,name:`九龙县`},{code:`513325`,name:`雅江县`},{code:`513326`,name:`道孚县`},{code:`513327`,name:`炉霍县`},{code:`513328`,name:`甘孜县`},{code:`513329`,name:`新龙县`},{code:`513330`,name:`德格县`},{code:`513331`,name:`白玉县`},{code:`513332`,name:`石渠县`},{code:`513333`,name:`色达县`},{code:`513334`,name:`理塘县`},{code:`513335`,name:`巴塘县`},{code:`513336`,name:`乡城县`},{code:`513337`,name:`稻城县`},{code:`513338`,name:`得荣县`}]},{code:`513400`,name:`凉山彝族自治州`,districts:[{code:`513401`,name:`西昌市`},{code:`513402`,name:`会理市`},{code:`513422`,name:`木里藏族自治县`},{code:`513423`,name:`盐源县`},{code:`513424`,name:`德昌县`},{code:`513426`,name:`会东县`},{code:`513427`,name:`宁南县`},{code:`513428`,name:`普格县`},{code:`513429`,name:`布拖县`},{code:`513430`,name:`金阳县`},{code:`513431`,name:`昭觉县`},{code:`513432`,name:`喜德县`},{code:`513433`,name:`冕宁县`},{code:`513434`,name:`越西县`},{code:`513435`,name:`甘洛县`},{code:`513436`,name:`美姑县`},{code:`513437`,name:`雷波县`}]}]},{code:`520000`,name:`贵州省`,cities:[{code:`520100`,name:`贵阳市`,districts:[{code:`520102`,name:`南明区`},{code:`520103`,name:`云岩区`},{code:`520111`,name:`花溪区`},{code:`520112`,name:`乌当区`},{code:`520113`,name:`白云区`},{code:`520115`,name:`观山湖区`},{code:`520121`,name:`开阳县`},{code:`520122`,name:`息烽县`},{code:`520123`,name:`修文县`},{code:`520181`,name:`清镇市`}]},{code:`520200`,name:`六盘水市`,districts:[{code:`520201`,name:`钟山区`},{code:`520203`,name:`六枝特区`},{code:`520204`,name:`水城区`},{code:`520281`,name:`盘州市`}]},{code:`520300`,name:`遵义市`,districts:[{code:`520302`,name:`红花岗区`},{code:`520303`,name:`汇川区`},{code:`520304`,name:`播州区`},{code:`520322`,name:`桐梓县`},{code:`520323`,name:`绥阳县`},{code:`520324`,name:`正安县`},{code:`520325`,name:`道真仡佬族苗族自治县`},{code:`520326`,name:`务川仡佬族苗族自治县`},{code:`520327`,name:`凤冈县`},{code:`520328`,name:`湄潭县`},{code:`520329`,name:`余庆县`},{code:`520330`,name:`习水县`},{code:`520381`,name:`赤水市`},{code:`520382`,name:`仁怀市`}]},{code:`520400`,name:`安顺市`,districts:[{code:`520402`,name:`西秀区`},{code:`520403`,name:`平坝区`},{code:`520422`,name:`普定县`},{code:`520423`,name:`镇宁布依族苗族自治县`},{code:`520424`,name:`关岭布依族苗族自治县`},{code:`520425`,name:`紫云苗族布依族自治县`}]},{code:`520500`,name:`毕节市`,districts:[{code:`520502`,name:`七星关区`},{code:`520521`,name:`大方县`},{code:`520523`,name:`金沙县`},{code:`520524`,name:`织金县`},{code:`520525`,name:`纳雍县`},{code:`520526`,name:`威宁彝族回族苗族自治县`},{code:`520527`,name:`赫章县`},{code:`520581`,name:`黔西市`}]},{code:`520600`,name:`铜仁市`,districts:[{code:`520602`,name:`碧江区`},{code:`520603`,name:`万山区`},{code:`520621`,name:`江口县`},{code:`520622`,name:`玉屏侗族自治县`},{code:`520623`,name:`石阡县`},{code:`520624`,name:`思南县`},{code:`520625`,name:`印江土家族苗族自治县`},{code:`520626`,name:`德江县`},{code:`520627`,name:`沿河土家族自治县`},{code:`520628`,name:`松桃苗族自治县`}]},{code:`522300`,name:`黔西南布依族苗族自治州`,districts:[{code:`522301`,name:`兴义市`},{code:`522302`,name:`兴仁市`},{code:`522323`,name:`普安县`},{code:`522324`,name:`晴隆县`},{code:`522325`,name:`贞丰县`},{code:`522326`,name:`望谟县`},{code:`522327`,name:`册亨县`},{code:`522328`,name:`安龙县`}]},{code:`522600`,name:`黔东南苗族侗族自治州`,districts:[{code:`522601`,name:`凯里市`},{code:`522622`,name:`黄平县`},{code:`522623`,name:`施秉县`},{code:`522624`,name:`三穗县`},{code:`522625`,name:`镇远县`},{code:`522626`,name:`岑巩县`},{code:`522627`,name:`天柱县`},{code:`522628`,name:`锦屏县`},{code:`522629`,name:`剑河县`},{code:`522630`,name:`台江县`},{code:`522631`,name:`黎平县`},{code:`522632`,name:`榕江县`},{code:`522633`,name:`从江县`},{code:`522634`,name:`雷山县`},{code:`522635`,name:`麻江县`},{code:`522636`,name:`丹寨县`}]},{code:`522700`,name:`黔南布依族苗族自治州`,districts:[{code:`522701`,name:`都匀市`},{code:`522702`,name:`福泉市`},{code:`522722`,name:`荔波县`},{code:`522723`,name:`贵定县`},{code:`522725`,name:`瓮安县`},{code:`522726`,name:`独山县`},{code:`522727`,name:`平塘县`},{code:`522728`,name:`罗甸县`},{code:`522729`,name:`长顺县`},{code:`522730`,name:`龙里县`},{code:`522731`,name:`惠水县`},{code:`522732`,name:`三都水族自治县`}]}]},{code:`530000`,name:`云南省`,cities:[{code:`530100`,name:`昆明市`,districts:[{code:`530102`,name:`五华区`},{code:`530103`,name:`盘龙区`},{code:`530111`,name:`官渡区`},{code:`530112`,name:`西山区`},{code:`530113`,name:`东川区`},{code:`530114`,name:`呈贡区`},{code:`530115`,name:`晋宁区`},{code:`530124`,name:`富民县`},{code:`530125`,name:`宜良县`},{code:`530126`,name:`石林彝族自治县`},{code:`530127`,name:`嵩明县`},{code:`530128`,name:`禄劝彝族苗族自治县`},{code:`530129`,name:`寻甸回族彝族自治县`},{code:`530181`,name:`安宁市`}]},{code:`530300`,name:`曲靖市`,districts:[{code:`530302`,name:`麒麟区`},{code:`530303`,name:`沾益区`},{code:`530304`,name:`马龙区`},{code:`530322`,name:`陆良县`},{code:`530323`,name:`师宗县`},{code:`530324`,name:`罗平县`},{code:`530325`,name:`富源县`},{code:`530326`,name:`会泽县`},{code:`530381`,name:`宣威市`}]},{code:`530400`,name:`玉溪市`,districts:[{code:`530402`,name:`红塔区`},{code:`530403`,name:`江川区`},{code:`530423`,name:`通海县`},{code:`530424`,name:`华宁县`},{code:`530425`,name:`易门县`},{code:`530426`,name:`峨山彝族自治县`},{code:`530427`,name:`新平彝族傣族自治县`},{code:`530428`,name:`元江哈尼族彝族傣族自治县`},{code:`530481`,name:`澄江市`}]},{code:`530500`,name:`保山市`,districts:[{code:`530502`,name:`隆阳区`},{code:`530521`,name:`施甸县`},{code:`530523`,name:`龙陵县`},{code:`530524`,name:`昌宁县`},{code:`530581`,name:`腾冲市`}]},{code:`530600`,name:`昭通市`,districts:[{code:`530602`,name:`昭阳区`},{code:`530621`,name:`鲁甸县`},{code:`530622`,name:`巧家县`},{code:`530623`,name:`盐津县`},{code:`530624`,name:`大关县`},{code:`530625`,name:`永善县`},{code:`530626`,name:`绥江县`},{code:`530627`,name:`镇雄县`},{code:`530628`,name:`彝良县`},{code:`530629`,name:`威信县`},{code:`530681`,name:`水富市`}]},{code:`530700`,name:`丽江市`,districts:[{code:`530702`,name:`古城区`},{code:`530721`,name:`玉龙纳西族自治县`},{code:`530722`,name:`永胜县`},{code:`530723`,name:`华坪县`},{code:`530724`,name:`宁蒗彝族自治县`}]},{code:`530800`,name:`普洱市`,districts:[{code:`530802`,name:`思茅区`},{code:`530821`,name:`宁洱哈尼族彝族自治县`},{code:`530822`,name:`墨江哈尼族自治县`},{code:`530823`,name:`景东彝族自治县`},{code:`530824`,name:`景谷傣族彝族自治县`},{code:`530825`,name:`镇沅彝族哈尼族拉祜族自治县`},{code:`530826`,name:`江城哈尼族彝族自治县`},{code:`530827`,name:`孟连傣族拉祜族佤族自治县`},{code:`530828`,name:`澜沧拉祜族自治县`},{code:`530829`,name:`西盟佤族自治县`}]},{code:`530900`,name:`临沧市`,districts:[{code:`530902`,name:`临翔区`},{code:`530921`,name:`凤庆县`},{code:`530922`,name:`云县`},{code:`530923`,name:`永德县`},{code:`530924`,name:`镇康县`},{code:`530925`,name:`双江拉祜族佤族布朗族傣族自治县`},{code:`530926`,name:`耿马傣族佤族自治县`},{code:`530927`,name:`沧源佤族自治县`}]},{code:`532300`,name:`楚雄彝族自治州`,districts:[{code:`532301`,name:`楚雄市`},{code:`532302`,name:`禄丰市`},{code:`532322`,name:`双柏县`},{code:`532323`,name:`牟定县`},{code:`532324`,name:`南华县`},{code:`532325`,name:`姚安县`},{code:`532326`,name:`大姚县`},{code:`532327`,name:`永仁县`},{code:`532328`,name:`元谋县`},{code:`532329`,name:`武定县`}]},{code:`532500`,name:`红河哈尼族彝族自治州`,districts:[{code:`532501`,name:`个旧市`},{code:`532502`,name:`开远市`},{code:`532503`,name:`蒙自市`},{code:`532504`,name:`弥勒市`},{code:`532523`,name:`屏边苗族自治县`},{code:`532524`,name:`建水县`},{code:`532525`,name:`石屏县`},{code:`532527`,name:`泸西县`},{code:`532528`,name:`元阳县`},{code:`532529`,name:`红河县`},{code:`532530`,name:`金平苗族瑶族傣族自治县`},{code:`532531`,name:`绿春县`},{code:`532532`,name:`河口瑶族自治县`}]},{code:`532600`,name:`文山壮族苗族自治州`,districts:[{code:`532601`,name:`文山市`},{code:`532622`,name:`砚山县`},{code:`532623`,name:`西畴县`},{code:`532624`,name:`麻栗坡县`},{code:`532625`,name:`马关县`},{code:`532626`,name:`丘北县`},{code:`532627`,name:`广南县`},{code:`532628`,name:`富宁县`}]},{code:`532800`,name:`西双版纳傣族自治州`,districts:[{code:`532801`,name:`景洪市`},{code:`532822`,name:`勐海县`},{code:`532823`,name:`勐腊县`}]},{code:`532900`,name:`大理白族自治州`,districts:[{code:`532901`,name:`大理市`},{code:`532922`,name:`漾濞彝族自治县`},{code:`532923`,name:`祥云县`},{code:`532924`,name:`宾川县`},{code:`532925`,name:`弥渡县`},{code:`532926`,name:`南涧彝族自治县`},{code:`532927`,name:`巍山彝族回族自治县`},{code:`532928`,name:`永平县`},{code:`532929`,name:`云龙县`},{code:`532930`,name:`洱源县`},{code:`532931`,name:`剑川县`},{code:`532932`,name:`鹤庆县`}]},{code:`533100`,name:`德宏傣族景颇族自治州`,districts:[{code:`533102`,name:`瑞丽市`},{code:`533103`,name:`芒市`},{code:`533122`,name:`梁河县`},{code:`533123`,name:`盈江县`},{code:`533124`,name:`陇川县`}]},{code:`533300`,name:`怒江傈僳族自治州`,districts:[{code:`533301`,name:`泸水市`},{code:`533323`,name:`福贡县`},{code:`533324`,name:`贡山独龙族怒族自治县`},{code:`533325`,name:`兰坪白族普米族自治县`}]},{code:`533400`,name:`迪庆藏族自治州`,districts:[{code:`533401`,name:`香格里拉市`},{code:`533422`,name:`德钦县`},{code:`533423`,name:`维西傈僳族自治县`}]}]},{code:`540000`,name:`西藏自治区`,cities:[{code:`540100`,name:`拉萨市`,districts:[{code:`540102`,name:`城关区`},{code:`540103`,name:`堆龙德庆区`},{code:`540104`,name:`达孜区`},{code:`540121`,name:`林周县`},{code:`540122`,name:`当雄县`},{code:`540123`,name:`尼木县`},{code:`540124`,name:`曲水县`},{code:`540127`,name:`墨竹工卡县`}]},{code:`540200`,name:`日喀则市`,districts:[{code:`540202`,name:`桑珠孜区`},{code:`540221`,name:`南木林县`},{code:`540222`,name:`江孜县`},{code:`540223`,name:`定日县`},{code:`540224`,name:`萨迦县`},{code:`540225`,name:`拉孜县`},{code:`540226`,name:`昂仁县`},{code:`540227`,name:`谢通门县`},{code:`540228`,name:`白朗县`},{code:`540229`,name:`仁布县`},{code:`540230`,name:`康马县`},{code:`540231`,name:`定结县`},{code:`540232`,name:`仲巴县`},{code:`540233`,name:`亚东县`},{code:`540234`,name:`吉隆县`},{code:`540235`,name:`聂拉木县`},{code:`540236`,name:`萨嘎县`},{code:`540237`,name:`岗巴县`}]},{code:`540300`,name:`昌都市`,districts:[{code:`540302`,name:`卡若区`},{code:`540321`,name:`江达县`},{code:`540322`,name:`贡觉县`},{code:`540323`,name:`类乌齐县`},{code:`540324`,name:`丁青县`},{code:`540325`,name:`察雅县`},{code:`540326`,name:`八宿县`},{code:`540327`,name:`左贡县`},{code:`540328`,name:`芒康县`},{code:`540329`,name:`洛隆县`},{code:`540330`,name:`边坝县`}]},{code:`540400`,name:`林芝市`,districts:[{code:`540402`,name:`巴宜区`},{code:`540421`,name:`工布江达县`},{code:`540423`,name:`墨脱县`},{code:`540424`,name:`波密县`},{code:`540425`,name:`察隅县`},{code:`540426`,name:`朗县`},{code:`540481`,name:`米林市`}]},{code:`540500`,name:`山南市`,districts:[{code:`540502`,name:`乃东区`},{code:`540521`,name:`扎囊县`},{code:`540522`,name:`贡嘎县`},{code:`540523`,name:`桑日县`},{code:`540524`,name:`琼结县`},{code:`540525`,name:`曲松县`},{code:`540526`,name:`措美县`},{code:`540527`,name:`洛扎县`},{code:`540528`,name:`加查县`},{code:`540529`,name:`隆子县`},{code:`540531`,name:`浪卡子县`},{code:`540581`,name:`错那市`}]},{code:`540600`,name:`那曲市`,districts:[{code:`540602`,name:`色尼区`},{code:`540621`,name:`嘉黎县`},{code:`540622`,name:`比如县`},{code:`540623`,name:`聂荣县`},{code:`540624`,name:`安多县`},{code:`540625`,name:`申扎县`},{code:`540626`,name:`索县`},{code:`540627`,name:`班戈县`},{code:`540628`,name:`巴青县`},{code:`540629`,name:`尼玛县`},{code:`540630`,name:`双湖县`}]},{code:`542500`,name:`阿里地区`,districts:[{code:`542521`,name:`普兰县`},{code:`542522`,name:`札达县`},{code:`542523`,name:`噶尔县`},{code:`542524`,name:`日土县`},{code:`542525`,name:`革吉县`},{code:`542526`,name:`改则县`},{code:`542527`,name:`措勤县`}]}]},{code:`610000`,name:`陕西省`,cities:[{code:`610100`,name:`西安市`,districts:[{code:`610102`,name:`新城区`},{code:`610103`,name:`碑林区`},{code:`610104`,name:`莲湖区`},{code:`610111`,name:`灞桥区`},{code:`610112`,name:`未央区`},{code:`610113`,name:`雁塔区`},{code:`610114`,name:`阎良区`},{code:`610115`,name:`临潼区`},{code:`610116`,name:`长安区`},{code:`610117`,name:`高陵区`},{code:`610118`,name:`鄠邑区`},{code:`610122`,name:`蓝田县`},{code:`610124`,name:`周至县`}]},{code:`610200`,name:`铜川市`,districts:[{code:`610202`,name:`王益区`},{code:`610203`,name:`印台区`},{code:`610204`,name:`耀州区`},{code:`610222`,name:`宜君县`}]},{code:`610300`,name:`宝鸡市`,districts:[{code:`610302`,name:`渭滨区`},{code:`610303`,name:`金台区`},{code:`610304`,name:`陈仓区`},{code:`610305`,name:`凤翔区`},{code:`610323`,name:`岐山县`},{code:`610324`,name:`扶风县`},{code:`610326`,name:`眉县`},{code:`610327`,name:`陇县`},{code:`610328`,name:`千阳县`},{code:`610329`,name:`麟游县`},{code:`610330`,name:`凤县`},{code:`610331`,name:`太白县`}]},{code:`610400`,name:`咸阳市`,districts:[{code:`610402`,name:`秦都区`},{code:`610403`,name:`杨陵区`},{code:`610404`,name:`渭城区`},{code:`610422`,name:`三原县`},{code:`610423`,name:`泾阳县`},{code:`610424`,name:`乾县`},{code:`610425`,name:`礼泉县`},{code:`610426`,name:`永寿县`},{code:`610428`,name:`长武县`},{code:`610429`,name:`旬邑县`},{code:`610430`,name:`淳化县`},{code:`610431`,name:`武功县`},{code:`610481`,name:`兴平市`},{code:`610482`,name:`彬州市`}]},{code:`610500`,name:`渭南市`,districts:[{code:`610502`,name:`临渭区`},{code:`610503`,name:`华州区`},{code:`610522`,name:`潼关县`},{code:`610523`,name:`大荔县`},{code:`610524`,name:`合阳县`},{code:`610525`,name:`澄城县`},{code:`610526`,name:`蒲城县`},{code:`610527`,name:`白水县`},{code:`610528`,name:`富平县`},{code:`610581`,name:`韩城市`},{code:`610582`,name:`华阴市`}]},{code:`610600`,name:`延安市`,districts:[{code:`610602`,name:`宝塔区`},{code:`610603`,name:`安塞区`},{code:`610621`,name:`延长县`},{code:`610622`,name:`延川县`},{code:`610625`,name:`志丹县`},{code:`610626`,name:`吴起县`},{code:`610627`,name:`甘泉县`},{code:`610628`,name:`富县`},{code:`610629`,name:`洛川县`},{code:`610630`,name:`宜川县`},{code:`610631`,name:`黄龙县`},{code:`610632`,name:`黄陵县`},{code:`610681`,name:`子长市`}]},{code:`610700`,name:`汉中市`,districts:[{code:`610702`,name:`汉台区`},{code:`610703`,name:`南郑区`},{code:`610722`,name:`城固县`},{code:`610723`,name:`洋县`},{code:`610724`,name:`西乡县`},{code:`610725`,name:`勉县`},{code:`610726`,name:`宁强县`},{code:`610727`,name:`略阳县`},{code:`610728`,name:`镇巴县`},{code:`610729`,name:`留坝县`},{code:`610730`,name:`佛坪县`}]},{code:`610800`,name:`榆林市`,districts:[{code:`610802`,name:`榆阳区`},{code:`610803`,name:`横山区`},{code:`610822`,name:`府谷县`},{code:`610824`,name:`靖边县`},{code:`610825`,name:`定边县`},{code:`610826`,name:`绥德县`},{code:`610827`,name:`米脂县`},{code:`610828`,name:`佳县`},{code:`610829`,name:`吴堡县`},{code:`610830`,name:`清涧县`},{code:`610831`,name:`子洲县`},{code:`610881`,name:`神木市`}]},{code:`610900`,name:`安康市`,districts:[{code:`610902`,name:`汉滨区`},{code:`610921`,name:`汉阴县`},{code:`610922`,name:`石泉县`},{code:`610923`,name:`宁陕县`},{code:`610924`,name:`紫阳县`},{code:`610925`,name:`岚皋县`},{code:`610926`,name:`平利县`},{code:`610927`,name:`镇坪县`},{code:`610929`,name:`白河县`},{code:`610981`,name:`旬阳市`}]},{code:`611000`,name:`商洛市`,districts:[{code:`611002`,name:`商州区`},{code:`611021`,name:`洛南县`},{code:`611022`,name:`丹凤县`},{code:`611023`,name:`商南县`},{code:`611024`,name:`山阳县`},{code:`611025`,name:`镇安县`},{code:`611026`,name:`柞水县`}]}]},{code:`620000`,name:`甘肃省`,cities:[{code:`620100`,name:`兰州市`,districts:[{code:`620102`,name:`城关区`},{code:`620103`,name:`七里河区`},{code:`620104`,name:`西固区`},{code:`620105`,name:`安宁区`},{code:`620111`,name:`红古区`},{code:`620121`,name:`永登县`},{code:`620122`,name:`皋兰县`},{code:`620123`,name:`榆中县`}]},{code:`620200`,name:`嘉峪关市`,districts:[{code:`620200`,name:`嘉峪关市`}]},{code:`620300`,name:`金昌市`,districts:[{code:`620302`,name:`金川区`},{code:`620321`,name:`永昌县`}]},{code:`620400`,name:`白银市`,districts:[{code:`620402`,name:`白银区`},{code:`620403`,name:`平川区`},{code:`620421`,name:`靖远县`},{code:`620422`,name:`会宁县`},{code:`620423`,name:`景泰县`}]},{code:`620500`,name:`天水市`,districts:[{code:`620502`,name:`秦州区`},{code:`620503`,name:`麦积区`},{code:`620521`,name:`清水县`},{code:`620522`,name:`秦安县`},{code:`620523`,name:`甘谷县`},{code:`620524`,name:`武山县`},{code:`620525`,name:`张家川回族自治县`}]},{code:`620600`,name:`武威市`,districts:[{code:`620602`,name:`凉州区`},{code:`620621`,name:`民勤县`},{code:`620622`,name:`古浪县`},{code:`620623`,name:`天祝藏族自治县`}]},{code:`620700`,name:`张掖市`,districts:[{code:`620702`,name:`甘州区`},{code:`620721`,name:`肃南裕固族自治县`},{code:`620722`,name:`民乐县`},{code:`620723`,name:`临泽县`},{code:`620724`,name:`高台县`},{code:`620725`,name:`山丹县`}]},{code:`620800`,name:`平凉市`,districts:[{code:`620802`,name:`崆峒区`},{code:`620821`,name:`泾川县`},{code:`620822`,name:`灵台县`},{code:`620823`,name:`崇信县`},{code:`620825`,name:`庄浪县`},{code:`620826`,name:`静宁县`},{code:`620881`,name:`华亭市`}]},{code:`620900`,name:`酒泉市`,districts:[{code:`620902`,name:`肃州区`},{code:`620921`,name:`金塔县`},{code:`620922`,name:`瓜州县`},{code:`620923`,name:`肃北蒙古族自治县`},{code:`620924`,name:`阿克塞哈萨克族自治县`},{code:`620981`,name:`玉门市`},{code:`620982`,name:`敦煌市`}]},{code:`621000`,name:`庆阳市`,districts:[{code:`621002`,name:`西峰区`},{code:`621021`,name:`庆城县`},{code:`621022`,name:`环县`},{code:`621023`,name:`华池县`},{code:`621024`,name:`合水县`},{code:`621025`,name:`正宁县`},{code:`621026`,name:`宁县`},{code:`621027`,name:`镇原县`}]},{code:`621100`,name:`定西市`,districts:[{code:`621102`,name:`安定区`},{code:`621121`,name:`通渭县`},{code:`621122`,name:`陇西县`},{code:`621123`,name:`渭源县`},{code:`621124`,name:`临洮县`},{code:`621125`,name:`漳县`},{code:`621126`,name:`岷县`}]},{code:`621200`,name:`陇南市`,districts:[{code:`621202`,name:`武都区`},{code:`621221`,name:`成县`},{code:`621222`,name:`文县`},{code:`621223`,name:`宕昌县`},{code:`621224`,name:`康县`},{code:`621225`,name:`西和县`},{code:`621226`,name:`礼县`},{code:`621227`,name:`徽县`},{code:`621228`,name:`两当县`}]},{code:`622900`,name:`临夏回族自治州`,districts:[{code:`622901`,name:`临夏市`},{code:`622921`,name:`临夏县`},{code:`622922`,name:`康乐县`},{code:`622923`,name:`永靖县`},{code:`622924`,name:`广河县`},{code:`622925`,name:`和政县`},{code:`622926`,name:`东乡族自治县`},{code:`622927`,name:`积石山保安族东乡族撒拉族自治县`}]},{code:`623000`,name:`甘南藏族自治州`,districts:[{code:`623001`,name:`合作市`},{code:`623021`,name:`临潭县`},{code:`623022`,name:`卓尼县`},{code:`623023`,name:`舟曲县`},{code:`623024`,name:`迭部县`},{code:`623025`,name:`玛曲县`},{code:`623026`,name:`碌曲县`},{code:`623027`,name:`夏河县`}]}]},{code:`630000`,name:`青海省`,cities:[{code:`630100`,name:`西宁市`,districts:[{code:`630102`,name:`城东区`},{code:`630103`,name:`城中区`},{code:`630104`,name:`城西区`},{code:`630105`,name:`城北区`},{code:`630106`,name:`湟中区`},{code:`630121`,name:`大通回族土族自治县`},{code:`630123`,name:`湟源县`}]},{code:`630200`,name:`海东市`,districts:[{code:`630202`,name:`乐都区`},{code:`630203`,name:`平安区`},{code:`630222`,name:`民和回族土族自治县`},{code:`630223`,name:`互助土族自治县`},{code:`630224`,name:`化隆回族自治县`},{code:`630225`,name:`循化撒拉族自治县`}]},{code:`632200`,name:`海北藏族自治州`,districts:[{code:`632221`,name:`门源回族自治县`},{code:`632222`,name:`祁连县`},{code:`632223`,name:`海晏县`},{code:`632224`,name:`刚察县`}]},{code:`632300`,name:`黄南藏族自治州`,districts:[{code:`632301`,name:`同仁市`},{code:`632322`,name:`尖扎县`},{code:`632323`,name:`泽库县`},{code:`632324`,name:`河南蒙古族自治县`}]},{code:`632500`,name:`海南藏族自治州`,districts:[{code:`632521`,name:`共和县`},{code:`632522`,name:`同德县`},{code:`632523`,name:`贵德县`},{code:`632524`,name:`兴海县`},{code:`632525`,name:`贵南县`}]},{code:`632600`,name:`果洛藏族自治州`,districts:[{code:`632621`,name:`玛沁县`},{code:`632622`,name:`班玛县`},{code:`632623`,name:`甘德县`},{code:`632624`,name:`达日县`},{code:`632625`,name:`久治县`},{code:`632626`,name:`玛多县`}]},{code:`632700`,name:`玉树藏族自治州`,districts:[{code:`632701`,name:`玉树市`},{code:`632722`,name:`杂多县`},{code:`632723`,name:`称多县`},{code:`632724`,name:`治多县`},{code:`632725`,name:`囊谦县`},{code:`632726`,name:`曲麻莱县`}]},{code:`632800`,name:`海西蒙古族藏族自治州`,districts:[{code:`632801`,name:`格尔木市`},{code:`632802`,name:`德令哈市`},{code:`632803`,name:`茫崖市`},{code:`632821`,name:`乌兰县`},{code:`632822`,name:`都兰县`},{code:`632823`,name:`天峻县`},{code:`632825`,name:`大柴旦行政委员会`}]}]},{code:`640000`,name:`宁夏回族自治区`,cities:[{code:`640100`,name:`银川市`,districts:[{code:`640104`,name:`兴庆区`},{code:`640105`,name:`西夏区`},{code:`640106`,name:`金凤区`},{code:`640121`,name:`永宁县`},{code:`640122`,name:`贺兰县`},{code:`640181`,name:`灵武市`}]},{code:`640200`,name:`石嘴山市`,districts:[{code:`640202`,name:`大武口区`},{code:`640205`,name:`惠农区`},{code:`640221`,name:`平罗县`}]},{code:`640300`,name:`吴忠市`,districts:[{code:`640302`,name:`利通区`},{code:`640303`,name:`红寺堡区`},{code:`640323`,name:`盐池县`},{code:`640324`,name:`同心县`},{code:`640381`,name:`青铜峡市`}]},{code:`640400`,name:`固原市`,districts:[{code:`640402`,name:`原州区`},{code:`640422`,name:`西吉县`},{code:`640423`,name:`隆德县`},{code:`640424`,name:`泾源县`},{code:`640425`,name:`彭阳县`}]},{code:`640500`,name:`中卫市`,districts:[{code:`640502`,name:`沙坡头区`},{code:`640521`,name:`中宁县`},{code:`640522`,name:`海原县`}]}]},{code:`650000`,name:`新疆维吾尔自治区`,cities:[{code:`650100`,name:`乌鲁木齐市`,districts:[{code:`650102`,name:`天山区`},{code:`650103`,name:`沙依巴克区`},{code:`650104`,name:`新市区`},{code:`650105`,name:`水磨沟区`},{code:`650106`,name:`头屯河区`},{code:`650107`,name:`达坂城区`},{code:`650109`,name:`米东区`},{code:`650121`,name:`乌鲁木齐县`}]},{code:`650200`,name:`克拉玛依市`,districts:[{code:`650202`,name:`独山子区`},{code:`650203`,name:`克拉玛依区`},{code:`650204`,name:`白碱滩区`},{code:`650205`,name:`乌尔禾区`}]},{code:`650400`,name:`吐鲁番市`,districts:[{code:`650402`,name:`高昌区`},{code:`650421`,name:`鄯善县`},{code:`650422`,name:`托克逊县`}]},{code:`650500`,name:`哈密市`,districts:[{code:`650502`,name:`伊州区`},{code:`650521`,name:`巴里坤哈萨克自治县`},{code:`650522`,name:`伊吾县`}]},{code:`652300`,name:`昌吉回族自治州`,districts:[{code:`652301`,name:`昌吉市`},{code:`652302`,name:`阜康市`},{code:`652323`,name:`呼图壁县`},{code:`652324`,name:`玛纳斯县`},{code:`652325`,name:`奇台县`},{code:`652327`,name:`吉木萨尔县`},{code:`652328`,name:`木垒哈萨克自治县`}]},{code:`652700`,name:`博尔塔拉蒙古自治州`,districts:[{code:`652701`,name:`博乐市`},{code:`652702`,name:`阿拉山口市`},{code:`652722`,name:`精河县`},{code:`652723`,name:`温泉县`}]},{code:`652800`,name:`巴音郭楞蒙古自治州`,districts:[{code:`652801`,name:`库尔勒市`},{code:`652822`,name:`轮台县`},{code:`652823`,name:`尉犁县`},{code:`652824`,name:`若羌县`},{code:`652825`,name:`且末县`},{code:`652826`,name:`焉耆回族自治县`},{code:`652827`,name:`和静县`},{code:`652828`,name:`和硕县`},{code:`652829`,name:`博湖县`}]},{code:`652900`,name:`阿克苏地区`,districts:[{code:`652901`,name:`阿克苏市`},{code:`652902`,name:`库车市`},{code:`652922`,name:`温宿县`},{code:`652924`,name:`沙雅县`},{code:`652925`,name:`新和县`},{code:`652926`,name:`拜城县`},{code:`652927`,name:`乌什县`},{code:`652928`,name:`阿瓦提县`},{code:`652929`,name:`柯坪县`}]},{code:`653000`,name:`克孜勒苏柯尔克孜自治州`,districts:[{code:`653001`,name:`阿图什市`},{code:`653022`,name:`阿克陶县`},{code:`653023`,name:`阿合奇县`},{code:`653024`,name:`乌恰县`}]},{code:`653100`,name:`喀什地区`,districts:[{code:`653101`,name:`喀什市`},{code:`653121`,name:`疏附县`},{code:`653122`,name:`疏勒县`},{code:`653123`,name:`英吉沙县`},{code:`653124`,name:`泽普县`},{code:`653125`,name:`莎车县`},{code:`653126`,name:`叶城县`},{code:`653127`,name:`麦盖提县`},{code:`653128`,name:`岳普湖县`},{code:`653129`,name:`伽师县`},{code:`653130`,name:`巴楚县`},{code:`653131`,name:`塔什库尔干塔吉克自治县`}]},{code:`653200`,name:`和田地区`,districts:[{code:`653201`,name:`和田市`},{code:`653221`,name:`和田县`},{code:`653222`,name:`墨玉县`},{code:`653223`,name:`皮山县`},{code:`653224`,name:`洛浦县`},{code:`653225`,name:`策勒县`},{code:`653226`,name:`于田县`},{code:`653227`,name:`民丰县`},{code:`653228`,name:`和康县`},{code:`653229`,name:`和安县`}]},{code:`654000`,name:`伊犁哈萨克自治州`,districts:[{code:`654002`,name:`伊宁市`},{code:`654003`,name:`奎屯市`},{code:`654004`,name:`霍尔果斯市`},{code:`654021`,name:`伊宁县`},{code:`654022`,name:`察布查尔锡伯自治县`},{code:`654023`,name:`霍城县`},{code:`654024`,name:`巩留县`},{code:`654025`,name:`新源县`},{code:`654026`,name:`昭苏县`},{code:`654027`,name:`特克斯县`},{code:`654028`,name:`尼勒克县`}]},{code:`654200`,name:`塔城地区`,districts:[{code:`654201`,name:`塔城市`},{code:`654202`,name:`乌苏市`},{code:`654203`,name:`沙湾市`},{code:`654221`,name:`额敏县`},{code:`654224`,name:`托里县`},{code:`654225`,name:`裕民县`},{code:`654226`,name:`和布克赛尔蒙古自治县`}]},{code:`654300`,name:`阿勒泰地区`,districts:[{code:`654301`,name:`阿勒泰市`},{code:`654321`,name:`布尔津县`},{code:`654322`,name:`富蕴县`},{code:`654323`,name:`福海县`},{code:`654324`,name:`哈巴河县`},{code:`654325`,name:`青河县`},{code:`654326`,name:`吉木乃县`}]},{code:`659001`,name:`石河子市`,districts:[{code:`659001`,name:`石河子市`}]},{code:`659002`,name:`阿拉尔市`,districts:[{code:`659002`,name:`阿拉尔市`}]},{code:`659003`,name:`图木舒克市`,districts:[{code:`659003`,name:`图木舒克市`}]},{code:`659004`,name:`五家渠市`,districts:[{code:`659004`,name:`五家渠市`}]},{code:`659005`,name:`北屯市`,districts:[{code:`659005`,name:`北屯市`}]},{code:`659006`,name:`铁门关市`,districts:[{code:`659006`,name:`铁门关市`}]},{code:`659007`,name:`双河市`,districts:[{code:`659007`,name:`双河市`}]},{code:`659008`,name:`可克达拉市`,districts:[{code:`659008`,name:`可克达拉市`}]},{code:`659009`,name:`昆玉市`,districts:[{code:`659009`,name:`昆玉市`}]},{code:`659010`,name:`胡杨河市`,districts:[{code:`659010`,name:`胡杨河市`}]},{code:`659011`,name:`新星市`,districts:[{code:`659011`,name:`新星市`}]},{code:`659012`,name:`白杨市`,districts:[{code:`659012`,name:`白杨市`}]}]},{code:`710000`,name:`台湾省`,cities:[{code:`710100`,name:`台北市`,districts:[{code:`710101`,name:`中正区`},{code:`710102`,name:`大同区`},{code:`710103`,name:`中山区`},{code:`710104`,name:`松山区`},{code:`710105`,name:`大安区`},{code:`710106`,name:`万华区`},{code:`710107`,name:`信义区`},{code:`710108`,name:`士林区`},{code:`710109`,name:`北投区`},{code:`710110`,name:`内湖区`},{code:`710111`,name:`南港区`},{code:`710112`,name:`文山区`}]},{code:`710200`,name:`高雄市`,districts:[{code:`710201`,name:`新兴区`},{code:`710202`,name:`前金区`},{code:`710203`,name:`苓雅区`},{code:`710204`,name:`盐埕区`},{code:`710205`,name:`鼓山区`},{code:`710206`,name:`旗津区`},{code:`710207`,name:`前镇区`},{code:`710208`,name:`三民区`},{code:`710209`,name:`左营区`},{code:`710210`,name:`楠梓区`},{code:`710211`,name:`小港区`},{code:`710242`,name:`仁武区`},{code:`710243`,name:`大社区`},{code:`710244`,name:`冈山区`},{code:`710245`,name:`路竹区`},{code:`710246`,name:`阿莲区`},{code:`710247`,name:`田寮区`},{code:`710248`,name:`燕巢区`},{code:`710249`,name:`桥头区`},{code:`710250`,name:`梓官区`},{code:`710251`,name:`弥陀区`},{code:`710252`,name:`永安区`},{code:`710253`,name:`湖内区`},{code:`710254`,name:`凤山区`},{code:`710255`,name:`大寮区`},{code:`710256`,name:`林园区`},{code:`710257`,name:`鸟松区`},{code:`710258`,name:`大树区`},{code:`710259`,name:`旗山区`},{code:`710260`,name:`美浓区`},{code:`710261`,name:`六龟区`},{code:`710262`,name:`内门区`},{code:`710263`,name:`杉林区`},{code:`710264`,name:`甲仙区`},{code:`710265`,name:`桃源区`},{code:`710266`,name:`那玛夏区`},{code:`710267`,name:`茂林区`},{code:`710268`,name:`茄萣区`}]},{code:`710300`,name:`台南市`,districts:[{code:`710301`,name:`中西区`},{code:`710302`,name:`东区`},{code:`710303`,name:`南区`},{code:`710304`,name:`北区`},{code:`710305`,name:`安平区`},{code:`710306`,name:`安南区`},{code:`710339`,name:`永康区`},{code:`710340`,name:`归仁区`},{code:`710341`,name:`新化区`},{code:`710342`,name:`左镇区`},{code:`710343`,name:`玉井区`},{code:`710344`,name:`楠西区`},{code:`710345`,name:`南化区`},{code:`710346`,name:`仁德区`},{code:`710347`,name:`关庙区`},{code:`710348`,name:`龙崎区`},{code:`710349`,name:`官田区`},{code:`710350`,name:`麻豆区`},{code:`710351`,name:`佳里区`},{code:`710352`,name:`西港区`},{code:`710353`,name:`七股区`},{code:`710354`,name:`将军区`},{code:`710355`,name:`学甲区`},{code:`710356`,name:`北门区`},{code:`710357`,name:`新营区`},{code:`710358`,name:`后壁区`},{code:`710359`,name:`白河区`},{code:`710360`,name:`东山区`},{code:`710361`,name:`六甲区`},{code:`710362`,name:`下营区`},{code:`710363`,name:`柳营区`},{code:`710364`,name:`盐水区`},{code:`710365`,name:`善化区`},{code:`710366`,name:`大内区`},{code:`710367`,name:`山上区`},{code:`710368`,name:`新市区`},{code:`710369`,name:`安定区`}]},{code:`710400`,name:`台中市`,districts:[{code:`710401`,name:`中区`},{code:`710402`,name:`东区`},{code:`710403`,name:`南区`},{code:`710404`,name:`西区`},{code:`710405`,name:`北区`},{code:`710406`,name:`北屯区`},{code:`710407`,name:`西屯区`},{code:`710408`,name:`南屯区`},{code:`710431`,name:`太平区`},{code:`710432`,name:`大里区`},{code:`710433`,name:`雾峰区`},{code:`710434`,name:`乌日区`},{code:`710435`,name:`丰原区`},{code:`710436`,name:`后里区`},{code:`710437`,name:`石冈区`},{code:`710438`,name:`东势区`},{code:`710439`,name:`和平区`},{code:`710440`,name:`新社区`},{code:`710441`,name:`潭子区`},{code:`710442`,name:`大雅区`},{code:`710443`,name:`神冈区`},{code:`710444`,name:`大肚区`},{code:`710445`,name:`沙鹿区`},{code:`710446`,name:`龙井区`},{code:`710447`,name:`梧栖区`},{code:`710448`,name:`清水区`},{code:`710449`,name:`大甲区`},{code:`710450`,name:`外埔区`},{code:`710451`,name:`大安区`}]},{code:`710600`,name:`南投县`,districts:[{code:`710614`,name:`南投市`},{code:`710615`,name:`中寮乡`},{code:`710616`,name:`草屯镇`},{code:`710617`,name:`国姓乡`},{code:`710618`,name:`埔里镇`},{code:`710619`,name:`仁爱乡`},{code:`710620`,name:`名间乡`},{code:`710621`,name:`集集镇`},{code:`710622`,name:`水里乡`},{code:`710623`,name:`鱼池乡`},{code:`710624`,name:`信义乡`},{code:`710625`,name:`竹山镇`},{code:`710626`,name:`鹿谷乡`}]},{code:`710700`,name:`基隆市`,districts:[{code:`710701`,name:`仁爱区`},{code:`710702`,name:`信义区`},{code:`710703`,name:`中正区`},{code:`710704`,name:`中山区`},{code:`710705`,name:`安乐区`},{code:`710706`,name:`暖暖区`},{code:`710707`,name:`七堵区`}]},{code:`710800`,name:`新竹市`,districts:[{code:`710801`,name:`东区`},{code:`710802`,name:`北区`},{code:`710803`,name:`香山区`}]},{code:`710900`,name:`嘉义市`,districts:[{code:`710901`,name:`东区`},{code:`710902`,name:`西区`}]},{code:`711100`,name:`新北市`,districts:[{code:`711130`,name:`万里区`},{code:`711131`,name:`金山区`},{code:`711132`,name:`板桥区`},{code:`711133`,name:`汐止区`},{code:`711134`,name:`深坑区`},{code:`711135`,name:`石碇区`},{code:`711136`,name:`瑞芳区`},{code:`711137`,name:`平溪区`},{code:`711138`,name:`双溪区`},{code:`711139`,name:`贡寮区`},{code:`711140`,name:`新店区`},{code:`711141`,name:`坪林区`},{code:`711142`,name:`乌来区`},{code:`711143`,name:`永和区`},{code:`711144`,name:`中和区`},{code:`711145`,name:`土城区`},{code:`711146`,name:`三峡区`},{code:`711147`,name:`树林区`},{code:`711148`,name:`莺歌区`},{code:`711149`,name:`三重区`},{code:`711150`,name:`新庄区`},{code:`711151`,name:`泰山区`},{code:`711152`,name:`林口区`},{code:`711153`,name:`芦洲区`},{code:`711154`,name:`五股区`},{code:`711155`,name:`八里区`},{code:`711156`,name:`淡水区`},{code:`711157`,name:`三芝区`},{code:`711158`,name:`石门区`}]},{code:`711200`,name:`宜兰县`,districts:[{code:`711214`,name:`宜兰市`},{code:`711215`,name:`头城镇`},{code:`711216`,name:`礁溪乡`},{code:`711217`,name:`壮围乡`},{code:`711218`,name:`员山乡`},{code:`711219`,name:`罗东镇`},{code:`711220`,name:`三星乡`},{code:`711221`,name:`大同乡`},{code:`711222`,name:`五结乡`},{code:`711223`,name:`冬山乡`},{code:`711224`,name:`苏澳镇`},{code:`711225`,name:`南澳乡`}]},{code:`711300`,name:`新竹县`,districts:[{code:`711314`,name:`竹北市`},{code:`711315`,name:`湖口乡`},{code:`711316`,name:`新丰乡`},{code:`711317`,name:`新埔镇`},{code:`711318`,name:`关西镇`},{code:`711319`,name:`芎林乡`},{code:`711320`,name:`宝山乡`},{code:`711321`,name:`竹东镇`},{code:`711322`,name:`五峰乡`},{code:`711323`,name:`横山乡`},{code:`711324`,name:`尖石乡`},{code:`711325`,name:`北埔乡`},{code:`711326`,name:`峨眉乡`}]},{code:`711400`,name:`桃园市`,districts:[{code:`711414`,name:`中坜区`},{code:`711415`,name:`平镇区`},{code:`711416`,name:`龙潭区`},{code:`711417`,name:`杨梅区`},{code:`711418`,name:`新屋区`},{code:`711419`,name:`观音区`},{code:`711420`,name:`桃园区`},{code:`711421`,name:`龟山区`},{code:`711422`,name:`八德区`},{code:`711423`,name:`大溪区`},{code:`711424`,name:`复兴区`},{code:`711425`,name:`大园区`},{code:`711426`,name:`芦竹区`}]},{code:`711500`,name:`苗栗县`,districts:[{code:`711519`,name:`竹南镇`},{code:`711520`,name:`头份市`},{code:`711521`,name:`三湾乡`},{code:`711522`,name:`南庄乡`},{code:`711523`,name:`狮潭乡`},{code:`711524`,name:`后龙镇`},{code:`711525`,name:`通霄镇`},{code:`711526`,name:`苑里镇`},{code:`711527`,name:`苗栗市`},{code:`711528`,name:`造桥乡`},{code:`711529`,name:`头屋乡`},{code:`711530`,name:`公馆乡`},{code:`711531`,name:`大湖乡`},{code:`711532`,name:`泰安乡`},{code:`711533`,name:`铜锣乡`},{code:`711534`,name:`三义乡`},{code:`711535`,name:`西湖乡`},{code:`711536`,name:`卓兰镇`}]},{code:`711700`,name:`彰化县`,districts:[{code:`711727`,name:`彰化市`},{code:`711728`,name:`芬园乡`},{code:`711729`,name:`花坛乡`},{code:`711730`,name:`秀水乡`},{code:`711731`,name:`鹿港镇`},{code:`711732`,name:`福兴乡`},{code:`711733`,name:`线西乡`},{code:`711734`,name:`和美镇`},{code:`711735`,name:`伸港乡`},{code:`711736`,name:`员林市`},{code:`711737`,name:`社头乡`},{code:`711738`,name:`永靖乡`},{code:`711739`,name:`埔心乡`},{code:`711740`,name:`溪湖镇`},{code:`711741`,name:`大村乡`},{code:`711742`,name:`埔盐乡`},{code:`711743`,name:`田中镇`},{code:`711744`,name:`北斗镇`},{code:`711745`,name:`田尾乡`},{code:`711746`,name:`埤头乡`},{code:`711747`,name:`溪州乡`},{code:`711748`,name:`竹塘乡`},{code:`711749`,name:`二林镇`},{code:`711750`,name:`大城乡`},{code:`711751`,name:`芳苑乡`},{code:`711752`,name:`二水乡`}]},{code:`711900`,name:`嘉义县`,districts:[{code:`711919`,name:`番路乡`},{code:`711920`,name:`梅山乡`},{code:`711921`,name:`竹崎乡`},{code:`711922`,name:`阿里山乡`},{code:`711923`,name:`中埔乡`},{code:`711924`,name:`大埔乡`},{code:`711925`,name:`水上乡`},{code:`711926`,name:`鹿草乡`},{code:`711927`,name:`太保市`},{code:`711928`,name:`朴子市`},{code:`711929`,name:`东石乡`},{code:`711930`,name:`六脚乡`},{code:`711931`,name:`新港乡`},{code:`711932`,name:`民雄乡`},{code:`711933`,name:`大林镇`},{code:`711934`,name:`溪口乡`},{code:`711935`,name:`义竹乡`},{code:`711936`,name:`布袋镇`}]},{code:`712100`,name:`云林县`,districts:[{code:`712121`,name:`斗南镇`},{code:`712122`,name:`大埤乡`},{code:`712123`,name:`虎尾镇`},{code:`712124`,name:`土库镇`},{code:`712125`,name:`褒忠乡`},{code:`712126`,name:`东势乡`},{code:`712127`,name:`台西乡`},{code:`712128`,name:`仑背乡`},{code:`712129`,name:`麦寮乡`},{code:`712130`,name:`斗六市`},{code:`712131`,name:`林内乡`},{code:`712132`,name:`古坑乡`},{code:`712133`,name:`莿桐乡`},{code:`712134`,name:`西螺镇`},{code:`712135`,name:`二仑乡`},{code:`712136`,name:`北港镇`},{code:`712137`,name:`水林乡`},{code:`712138`,name:`口湖乡`},{code:`712139`,name:`四湖乡`},{code:`712140`,name:`元长乡`}]},{code:`712400`,name:`屏东县`,districts:[{code:`712434`,name:`屏东市`},{code:`712435`,name:`三地门乡`},{code:`712436`,name:`雾台乡`},{code:`712437`,name:`玛家乡`},{code:`712438`,name:`九如乡`},{code:`712439`,name:`里港乡`},{code:`712440`,name:`高树乡`},{code:`712441`,name:`盐埔乡`},{code:`712442`,name:`长治乡`},{code:`712443`,name:`麟洛乡`},{code:`712444`,name:`竹田乡`},{code:`712445`,name:`内埔乡`},{code:`712446`,name:`万丹乡`},{code:`712447`,name:`潮州镇`},{code:`712448`,name:`泰武乡`},{code:`712449`,name:`来义乡`},{code:`712450`,name:`万峦乡`},{code:`712451`,name:`崁顶乡`},{code:`712452`,name:`新埤乡`},{code:`712453`,name:`南州乡`},{code:`712454`,name:`林边乡`},{code:`712455`,name:`东港镇`},{code:`712456`,name:`琉球乡`},{code:`712457`,name:`佳冬乡`},{code:`712458`,name:`新园乡`},{code:`712459`,name:`枋寮乡`},{code:`712460`,name:`枋山乡`},{code:`712461`,name:`春日乡`},{code:`712462`,name:`狮子乡`},{code:`712463`,name:`车城乡`},{code:`712464`,name:`牡丹乡`},{code:`712465`,name:`恒春镇`},{code:`712466`,name:`满州乡`}]},{code:`712500`,name:`台东县`,districts:[{code:`712517`,name:`台东市`},{code:`712518`,name:`绿岛乡`},{code:`712519`,name:`兰屿乡`},{code:`712520`,name:`延平乡`},{code:`712521`,name:`卑南乡`},{code:`712522`,name:`鹿野乡`},{code:`712523`,name:`关山镇`},{code:`712524`,name:`海端乡`},{code:`712525`,name:`池上乡`},{code:`712526`,name:`东河乡`},{code:`712527`,name:`成功镇`},{code:`712528`,name:`长滨乡`},{code:`712529`,name:`金峰乡`},{code:`712530`,name:`大武乡`},{code:`712531`,name:`达仁乡`},{code:`712532`,name:`太麻里乡`}]},{code:`712600`,name:`花莲县`,districts:[{code:`712615`,name:`花莲市`},{code:`712616`,name:`新城乡`},{code:`712618`,name:`秀林乡`},{code:`712619`,name:`吉安乡`},{code:`712620`,name:`寿丰乡`},{code:`712621`,name:`凤林镇`},{code:`712622`,name:`光复乡`},{code:`712623`,name:`丰滨乡`},{code:`712624`,name:`瑞穗乡`},{code:`712625`,name:`万荣乡`},{code:`712626`,name:`玉里镇`},{code:`712627`,name:`卓溪乡`},{code:`712628`,name:`富里乡`}]},{code:`712700`,name:`澎湖县`,districts:[{code:`712707`,name:`马公市`},{code:`712708`,name:`西屿乡`},{code:`712709`,name:`望安乡`},{code:`712710`,name:`七美乡`},{code:`712711`,name:`白沙乡`},{code:`712712`,name:`湖西乡`}]}]},{code:`810000`,name:`香港特别行政区`,cities:[{code:`810000`,name:`香港特别行政区`,districts:[{code:`810000`,name:`香港特别行政区`}]}]},{code:`820000`,name:`澳门特别行政区`,cities:[{code:`820000`,name:`澳门特别行政区`,districts:[{code:`820000`,name:`澳门特别行政区`}]}]}],Ef=[{code:`sports`,name:`体育`,types:[[`track_field`,`田径`],[`basketball`,`篮球`],[`football`,`足球`],[`volleyball`,`排球`],[`table_tennis`,`乒乓球`],[`badminton`,`羽毛球`],[`swimming`,`游泳`],[`martial_arts`,`武术`],[`aerobics_cheer`,`健美操与啦啦操`]]},{code:`arts`,name:`艺术`,types:[[`vocal_music`,`声乐`],[`instrumental_music`,`器乐`],[`dance`,`舞蹈`],[`fine_arts`,`美术`],[`calligraphy`,`书法`],[`drama_broadcasting`,`戏剧与播音`]]}];function Df(e){return Ef.find(t=>t.code===e)?.types||[]}var Of={class:`profile-fields`},kf={class:`form-grid`},Af={class:`form-grid`},jf=[`value`],Mf=[`value`],Nf={class:`form-grid`},Pf=[`value`],Ff=[`disabled`],If=[`value`],Lf=[`disabled`],Rf=[`value`],zf={class:`wide`},Bf={class:`form-grid`},Vf=[`value`],Hf=[`disabled`],Uf=[`value`],Wf={class:`wide`},Gf={__name:`ProfileFields`,props:{form:{type:Object,required:!0},schools:{type:Array,default:()=>[]},classes:{type:Array,default:()=>[]}},setup(e){let t=e,n=R(()=>Df(t.form.specialtyCategory)),r=R(()=>Tf.find(e=>e.code===t.form.provinceCode)?.cities||[]),i=R(()=>r.value.find(e=>e.code===t.form.cityCode)?.districts||[]);function a(){t.form.specialtyType=``}function o(){t.form.cityCode=``,t.form.districtCode=``}function s(){t.form.districtCode=``}return(t,c)=>(M(),N(`div`,Of,[c[55]||=P(`h2`,null,`身份信息`,-1),P(`div`,kf,[P(`label`,null,[c[24]||=P(`span`,null,`考生姓名 *`,-1),k(P(`input`,{"onUpdate:modelValue":c[0]||=t=>e.form.name=t,required:``},null,512),[[z,e.form.name]])]),P(`label`,null,[c[26]||=P(`span`,null,`性别 *`,-1),k(P(`select`,{"onUpdate:modelValue":c[1]||=t=>e.form.gender=t,required:``},[...c[25]||=[P(`option`,{value:``},`请选择`,-1),P(`option`,null,`男`,-1),P(`option`,null,`女`,-1)]],512),[[B,e.form.gender]])]),P(`label`,null,[c[27]||=P(`span`,null,`证件号码 *`,-1),k(P(`input`,{"onUpdate:modelValue":c[2]||=t=>e.form.idNumber=t,required:``},null,512),[[z,e.form.idNumber]])]),P(`label`,null,[c[28]||=P(`span`,null,`出生日期`,-1),k(P(`input`,{"onUpdate:modelValue":c[3]||=t=>e.form.birthDate=t,type:`date`},null,512),[[z,e.form.birthDate]])]),P(`label`,null,[c[29]||=P(`span`,null,`籍贯 *`,-1),k(P(`input`,{"onUpdate:modelValue":c[4]||=t=>e.form.nativePlace=t,required:``},null,512),[[z,e.form.nativePlace]])]),P(`label`,null,[c[30]||=P(`span`,null,`民族`,-1),k(P(`input`,{"onUpdate:modelValue":c[5]||=t=>e.form.ethnicity=t},null,512),[[z,e.form.ethnicity]])])]),c[56]||=P(`h2`,null,`学校与班级`,-1),P(`div`,Af,[P(`label`,null,[c[32]||=P(`span`,null,`就读学校 *`,-1),k(P(`select`,{"onUpdate:modelValue":c[6]||=t=>e.form.schoolId=t,required:``,onChange:c[7]||=t=>e.form.classId=``},[c[31]||=P(`option`,{value:``},`请选择`,-1),(M(!0),N(j,null,A(e.schools,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,jf))),128))],544),[[B,e.form.schoolId]])]),P(`label`,null,[c[34]||=P(`span`,null,`班级 *`,-1),k(P(`select`,{"onUpdate:modelValue":c[8]||=t=>e.form.classId=t,required:``},[c[33]||=P(`option`,{value:``},`请选择`,-1),(M(!0),N(j,null,A(e.classes,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,Mf))),128))],512),[[B,e.form.classId]])])]),c[57]||=P(`h2`,null,`家庭与联系信息`,-1),P(`div`,Nf,[P(`label`,null,[c[36]||=P(`span`,null,`所在省份 *`,-1),k(P(`select`,{"onUpdate:modelValue":c[9]||=t=>e.form.provinceCode=t,required:``,onChange:o},[c[35]||=P(`option`,{value:``},`请选择`,-1),(M(!0),N(j,null,A(O(Tf),e=>(M(),N(`option`,{key:e.code,value:e.code},T(e.name),9,Pf))),128))],544),[[B,e.form.provinceCode]])]),P(`label`,null,[c[38]||=P(`span`,null,`所在城市 *`,-1),k(P(`select`,{"onUpdate:modelValue":c[10]||=t=>e.form.cityCode=t,required:``,disabled:!e.form.provinceCode,onChange:s},[c[37]||=P(`option`,{value:``},`请选择`,-1),(M(!0),N(j,null,A(r.value,e=>(M(),N(`option`,{key:e.code,value:e.code},T(e.name),9,If))),128))],40,Ff),[[B,e.form.cityCode]])]),P(`label`,null,[c[40]||=P(`span`,null,`所在区县 *`,-1),k(P(`select`,{"onUpdate:modelValue":c[11]||=t=>e.form.districtCode=t,required:``,disabled:!e.form.cityCode},[c[39]||=P(`option`,{value:``},`请选择`,-1),(M(!0),N(j,null,A(i.value,e=>(M(),N(`option`,{key:e.code,value:e.code},T(e.name),9,Rf))),128))],8,Lf),[[B,e.form.districtCode]])]),P(`label`,null,[c[41]||=P(`span`,null,`手机号 *`,-1),k(P(`input`,{"onUpdate:modelValue":c[12]||=t=>e.form.phone=t,required:``},null,512),[[z,e.form.phone]])]),P(`label`,null,[c[42]||=P(`span`,null,`电子邮箱 *`,-1),k(P(`input`,{"onUpdate:modelValue":c[13]||=t=>e.form.email=t,type:`email`,required:``},null,512),[[z,e.form.email]])]),P(`label`,zf,[c[43]||=P(`span`,null,`家庭住址 *`,-1),k(P(`input`,{"onUpdate:modelValue":c[14]||=t=>e.form.address=t,required:``},null,512),[[z,e.form.address]])]),P(`label`,null,[c[44]||=P(`span`,null,`邮政编码`,-1),k(P(`input`,{"onUpdate:modelValue":c[15]||=t=>e.form.postalCode=t},null,512),[[z,e.form.postalCode]])]),P(`label`,null,[c[45]||=P(`span`,null,`监护人姓名`,-1),k(P(`input`,{"onUpdate:modelValue":c[16]||=t=>e.form.guardianName=t},null,512),[[z,e.form.guardianName]])]),P(`label`,null,[c[46]||=P(`span`,null,`监护人电话`,-1),k(P(`input`,{"onUpdate:modelValue":c[17]||=t=>e.form.guardianPhone=t},null,512),[[z,e.form.guardianPhone]])]),P(`label`,null,[c[47]||=P(`span`,null,`紧急联系人`,-1),k(P(`input`,{"onUpdate:modelValue":c[18]||=t=>e.form.emergencyContact=t},null,512),[[z,e.form.emergencyContact]])]),P(`label`,null,[c[48]||=P(`span`,null,`紧急联系电话`,-1),k(P(`input`,{"onUpdate:modelValue":c[19]||=t=>e.form.emergencyPhone=t},null,512),[[z,e.form.emergencyPhone]])])]),c[58]||=P(`h2`,null,`招生资格`,-1),P(`div`,Bf,[P(`label`,null,[c[50]||=P(`span`,null,`特长生大类`,-1),k(P(`select`,{"onUpdate:modelValue":c[20]||=t=>e.form.specialtyCategory=t,onChange:a},[c[49]||=P(`option`,{value:``},`无特长资格`,-1),(M(!0),N(j,null,A(O(Ef),e=>(M(),N(`option`,{key:e.code,value:e.code},T(e.name),9,Vf))),128))],544),[[B,e.form.specialtyCategory]])]),P(`label`,null,[c[52]||=P(`span`,null,`特长项目`,-1),k(P(`select`,{"onUpdate:modelValue":c[21]||=t=>e.form.specialtyType=t,disabled:!e.form.specialtyCategory},[c[51]||=P(`option`,{value:``},`请选择`,-1),(M(!0),N(j,null,A(n.value,e=>(M(),N(`option`,{key:e[0],value:e[0]},T(e[1]),9,Uf))),128))],8,Hf),[[B,e.form.specialtyType]])]),P(`label`,null,[c[53]||=P(`span`,null,`特长证明编号`,-1),k(P(`input`,{"onUpdate:modelValue":c[22]||=t=>e.form.specialtyCertificate=t},null,512),[[z,e.form.specialtyCertificate]])]),P(`label`,Wf,[c[54]||=P(`span`,null,`政策资格说明`,-1),k(P(`input`,{"onUpdate:modelValue":c[23]||=t=>e.form.policyEligibility=t},null,512),[[z,e.form.policyEligibility]])])])]))}},Kf={class:`security-stack`},qf={key:0,class:`form-error`},Jf={key:1,class:`recovery-code-panel`},Yf={class:`recovery-code-grid`},Xf=[`disabled`],Zf={class:`business-form security-card`},Qf=[`disabled`],$f={class:`totp-setup-grid`},ep=[`src`],tp=[`disabled`],np={class:`security-protected-actions`},rp=[`disabled`],ip=[`disabled`],ap={__name:`AccountSecurity`,props:{status:{type:Object,default:()=>({})}},emits:[`updated`],setup(e,{emit:t}){let n=t,r=D(!1),i=D(``),a=D(null),o=D([]),s=E({currentPassword:``,newPassword:``,confirmPassword:``}),c=D(``),l=D(``),u=E({currentPassword:``,code:``});async function d(e){r.value=!0,i.value=``;try{await e()}catch(e){i.value=e.message}finally{r.value=!1}}function f(){return d(async()=>{if(s.newPassword!==s.confirmPassword)throw Error(`两次输入的新密码不一致`);await V(`/api/auth/change-password`,{method:`POST`,body:s}),Object.assign(s,{currentPassword:``,newPassword:``,confirmPassword:``}),Wl.notify(`密码修改成功`,`下次登录请使用新密码`)})}function p(){return d(async()=>{a.value=await V(`/api/auth/totp/setup`,{method:`POST`,body:{currentPassword:c.value}}),c.value=``})}function m(){return d(async()=>{let e=await V(`/api/auth/totp/enable`,{method:`POST`,body:{code:l.value}});o.value=e.recoveryCodes||[],a.value=null,l.value=``,await H.refreshSession(),n(`updated`),Wl.notify(`二次验证已开启`,`请立即保存恢复码`)})}function h(){return d(async()=>{let e=await V(`/api/auth/totp/recovery-codes`,{method:`POST`,body:u});o.value=e.recoveryCodes||[],Object.assign(u,{currentPassword:``,code:``}),n(`updated`)})}function g(){return d(async()=>{await V(`/api/auth/totp/disable`,{method:`POST`,body:u}),Object.assign(u,{currentPassword:``,code:``}),o.value=[],await H.refreshSession(),n(`updated`),Wl.notify(`二次验证已关闭`,`账户现在仅使用密码登录`)})}async function _(){await navigator.clipboard.writeText(o.value.join(` +`)),Wl.notify(`恢复码已复制`,`请保存到安全的位置`)}return(t,n)=>(M(),N(`div`,Kf,[i.value?(M(),N(`div`,qf,T(i.value),1)):L(``,!0),o.value.length?(M(),N(`section`,Jf,[n[7]||=P(`div`,null,[P(`p`,null,`RECOVERY CODES`),P(`h2`,null,`立即保存恢复码`),P(`span`,null,`每个恢复码只能使用一次,关闭页面后系统不会再次展示本组代码。`)],-1),P(`div`,Yf,[(M(!0),N(j,null,A(o.value,e=>(M(),N(`code`,{key:e},T(e),1))),128))]),P(`button`,{class:`app-button app-button--primary`,type:`button`,onClick:_},`复制全部恢复码`)])):L(``,!0),P(`form`,{class:`business-form security-card`,onSubmit:As(f,[`prevent`])},[P(`header`,null,[n[8]||=P(`div`,null,[P(`p`,null,`LOGIN PASSWORD`),P(`h2`,null,`修改登录密码`)],-1),F(U,{value:`active`})]),P(`span`,null,`账号:`+T(O(H).state.user?.username||O(H).state.user?.candidateNumber)+`。新密码至少 8 位,并应与当前密码不同。`,1),P(`label`,null,[n[9]||=P(`span`,null,`当前密码`,-1),k(P(`input`,{"onUpdate:modelValue":n[0]||=e=>s.currentPassword=e,type:`password`,autocomplete:`current-password`,required:``},null,512),[[z,s.currentPassword]])]),P(`label`,null,[n[10]||=P(`span`,null,`新密码`,-1),k(P(`input`,{"onUpdate:modelValue":n[1]||=e=>s.newPassword=e,type:`password`,autocomplete:`new-password`,minlength:`8`,required:``},null,512),[[z,s.newPassword]])]),P(`label`,null,[n[11]||=P(`span`,null,`再次输入新密码`,-1),k(P(`input`,{"onUpdate:modelValue":n[2]||=e=>s.confirmPassword=e,type:`password`,autocomplete:`new-password`,minlength:`8`,required:``},null,512),[[z,s.confirmPassword]])]),P(`button`,{class:`app-button app-button--primary`,disabled:r.value},`保存新密码`,8,Xf)],32),P(`section`,Zf,[P(`header`,null,[n[12]||=P(`div`,null,[P(`p`,null,`TWO-STEP VERIFICATION`),P(`h2`,null,`TOTP 二次验证`)],-1),F(U,{value:e.status.enabled?`active`:`disabled`},null,8,[`value`])]),!e.status.enabled&&!a.value?(M(),N(j,{key:0},[n[14]||=P(`span`,null,`使用验证器应用生成的动态验证码,为账号增加独立于密码的第二层保护。`,-1),P(`form`,{class:`inline-security-form`,onSubmit:As(p,[`prevent`])},[P(`label`,null,[n[13]||=P(`span`,null,`确认当前密码`,-1),k(P(`input`,{"onUpdate:modelValue":n[3]||=e=>c.value=e,type:`password`,autocomplete:`current-password`,required:``},null,512),[[z,c.value]])]),P(`button`,{class:`app-button app-button--primary`,disabled:r.value},`开始绑定验证器`,8,Qf)],32)],64)):a.value?(M(),N(j,{key:1},[P(`div`,$f,[P(`img`,{src:a.value.qrCode,alt:`TOTP 绑定二维码`,width:`220`,height:`220`},null,8,ep),P(`div`,null,[n[15]||=P(`span`,null,`无法扫码时手动输入密钥`,-1),P(`code`,null,T(a.value.secret?.match(/.{1,4}/g)?.join(` `)||a.value.secret),1),n[16]||=P(`small`,null,`基于时间 · 6 位 · 每 30 秒更新`,-1)])]),P(`form`,{class:`inline-security-form`,onSubmit:As(m,[`prevent`])},[P(`label`,null,[n[17]||=P(`span`,null,`验证器中的 6 位验证码`,-1),k(P(`input`,{"onUpdate:modelValue":n[4]||=e=>l.value=e,inputmode:`numeric`,autocomplete:`one-time-code`,pattern:`[0-9]{6}`,maxlength:`6`,required:``},null,512),[[z,l.value]])]),P(`button`,{class:`app-button app-button--primary`,disabled:r.value},`验证并启用`,8,tp)],32)],64)):(M(),N(j,{key:2},[P(`span`,null,`二次验证正在保护此账号,当前剩余 `+T(e.status.recoveryCodesRemaining)+` 个恢复码。`,1),P(`div`,np,[P(`label`,null,[n[18]||=P(`span`,null,`当前密码`,-1),k(P(`input`,{"onUpdate:modelValue":n[5]||=e=>u.currentPassword=e,type:`password`,autocomplete:`current-password`},null,512),[[z,u.currentPassword]])]),P(`label`,null,[n[19]||=P(`span`,null,`动态验证码或恢复码`,-1),k(P(`input`,{"onUpdate:modelValue":n[6]||=e=>u.code=e,autocomplete:`one-time-code`},null,512),[[z,u.code]])]),P(`div`,null,[P(`button`,{class:`app-button`,type:`button`,disabled:r.value,onClick:h},`重新生成恢复码`,8,rp),P(`button`,{class:`app-button app-button--danger`,type:`button`,disabled:r.value,onClick:g},`关闭二次验证`,8,ip)])])],64))])]))}},op=`modulepreload`,sp=function(e){return`/`+e},cp={},lp=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=sp(t,n),t=s(t),t in cp)return;cp[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:op,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},up={key:0,class:`candidate-onboarding`},dp=[`disabled`],fp=[`disabled`],pp={class:`candidate-welcome-vue`},mp={class:`record-metrics`},hp={class:`candidate-dashboard-grid`},gp={class:`record-panel`},_p={class:`record-panel`},vp=[`onClick`],yp={key:0,class:`form-callout`},bp=[`disabled`],xp={key:2,class:`business-card-list`},Sp={class:`subject-choice-grid`},Cp=[`onUpdate:modelValue`,`value`,`disabled`],wp={key:0},Tp=[`disabled`,`onClick`],Ep={key:3,class:`business-card-list`},Dp={class:`chip-list`},Op={key:0},kp={key:0,class:`page-state page-state--empty`},Ap={key:4,class:`business-card-list`},jp=[`disabled`,`onClick`],Mp={key:0,class:`page-state page-state--empty`},Np={key:5,class:`business-card-list`},Pp=[`onClick`],Fp={class:`result-card-grid`},Ip=[`onSubmit`],Lp=[`onUpdate:modelValue`],Rp={key:0,class:`page-state page-state--empty`},zp={key:6,class:`business-card-list`},Bp={class:`record-metrics`},Vp={key:0,class:`form-callout`},Hp=[`onClick`],Up=[`onSubmit`],Wp=[`onUpdate:modelValue`,`onChange`],Gp=[`value`],Kp=[`onUpdate:modelValue`,`disabled`],qp=[`value`],Jp={key:2},Yp={key:0,class:`page-state page-state--empty`},Xp={key:7,class:`record-panel notice-list-vue`},Zp=[`onClick`],Qp={__name:`CandidatePage`,props:{page:{type:String,required:!0}},setup(e){let t=e,n=ec(),r=D(!0),i=D(``),a=D({}),o=E({}),s=E({}),c=E({}),l=E({}),u=E({currentPassword:``,newPassword:``,confirmPassword:``}),d=D(!1),f=R(()=>({dashboard:[`总览`,`查看资料、报名、准考证与成绩状态。`],profile:[`个人资料`,`维护实名、学籍和联系信息。`],exams:[`考试报名`,`在开放时间内选择考试和报考科目。`],registrations:[`我的报名`,`查看考试、科目和审核进度。`],admit:[`准考证`,`在规定时间内下载已经生成的准考证。`],results:[`成绩查询`,`查看正式发布的成绩并申请复议。`],admissions:[`志愿填报与录取`,`填报本人志愿并查看投档与录取进度。`],notices:[`通知公告`,`查看与考试相关的最新通知。`],security:[`账户安全`,`修改登录密码并管理二次验证。`],onboarding:[`首次登录`,`完成密码更新和个人资料建档。`]})[t.page]||[`考生中心`,`办理个人考试事项。`]),p=R(()=>({dashboard:`dashboard`,profile:`profile`,exams:`exams`,registrations:`registrations`,admit:`registrations`,results:`results`,admissions:`admissions`,notices:`notices`})[t.page]),m=R(()=>a.value.registrations||(Array.isArray(a.value)?a.value:[])),h=R(()=>Object.values((a.value.results||[]).reduce((e,t)=>((e[t.examId]||=[]).push(t),e),{}))),g=R(()=>(a.value.classes||[]).filter(e=>e.schoolId===l.schoolId));async function _(){r.value=!0,i.value=``;try{t.page===`onboarding`?H.state.user?.mustChangePassword?a.value={stage:`password`}:a.value=await V(`/api/candidate/profile`):t.page===`security`?a.value=await V(`/api/auth/totp`):a.value=await V(`/api/candidate/${p.value}`),v()}catch(e){i.value=e.message}finally{r.value=!1}}function v(){let e=a.value.profile||{};Object.keys(l).forEach(e=>delete l[e]),Object.assign(l,e,{idNumber:String(e.idNumber||``).startsWith(`PENDING-`)?``:e.idNumber||``});for(let e of a.value.exams||[])o[e.id]=[...e.registration?.subjectIds||[]];for(let e of a.value.admissions||[]){let t=e.preference?.payload?.choices||[],n=t.find(e=>e.preferenceType===`indicator`)||{schoolId:``,categoryCode:``,preferenceType:`indicator`},r=t.filter(e=>e.preferenceType!==`indicator`);c[e.examId]=[n,...Array.from({length:Number(e.payload?.maxChoices||5)},(e,t)=>({schoolId:r[t]?.schoolId||``,categoryCode:r[t]?.categoryCode||``,preferenceType:`general`}))]}}async function y(e=!1){if(u.newPassword!==u.confirmPassword){i.value=`两次输入的新密码不一致`;return}d.value=!0,i.value=``;try{await V(`/api/auth/change-password`,{method:`POST`,body:u}),Object.assign(u,{currentPassword:``,newPassword:``,confirmPassword:``}),await H.refreshSession(),Wl.notify(`密码修改成功`,e?`请继续补全个人资料`:`下次登录请使用新密码`),e&&await _()}catch(e){i.value=e.message}finally{d.value=!1}}async function b(e=!1){d.value=!0,i.value=``;try{let t=await V(`/api/candidate/profile`,{method:`PUT`,body:Object.fromEntries([`name`,`gender`,`idNumber`,`birthDate`,`nativePlace`,`ethnicity`,`schoolId`,`classId`,`provinceCode`,`cityCode`,`districtCode`,`phone`,`email`,`address`,`postalCode`,`guardianName`,`guardianPhone`,`emergencyContact`,`emergencyPhone`,`specialtyCategory`,`specialtyType`,`specialtyCertificate`,`policyEligibility`].map(e=>[e,l[e]??``]))});H.state.profile=t.profile,await H.refreshSession(),Wl.notify(`资料已提交`,`管理员审核后会更新状态`),e?await n.replace(`/candidate/dashboard`):await _()}catch(e){i.value=e.message}finally{d.value=!1}}async function x(e){let t=o[e.id]||[];if(!t.length){Wl.notify(`请选择科目`,`至少选择一个报考科目`,`warning`);return}d.value=!0;try{await V(`/api/candidate/registrations`,{method:`POST`,body:{examId:e.id,subjectIds:t}}),Wl.notify(`报名已提交`,`已选择 ${t.length} 个科目`),await _()}catch(e){i.value=e.message}finally{d.value=!1}}async function S(e){let t=String(s[e.id]||``).trim();if(t.length<5){Wl.notify(`请补充复议理由`,`至少填写 5 个字`,`warning`);return}try{await V(`/api/candidate/results/${e.id}/appeals`,{method:`POST`,body:{reason:t}}),s[e.id]=``,Wl.notify(`成绩复议已提交`,`可在本页查看处理进度`),await _()}catch(e){i.value=e.message}}function C(e,t){return(e.plans||[]).filter(e=>(e.categories||[]).some(e=>(e.preferenceTypes||[]).includes(t)))}function ee(e,t){return((e.plans||[]).find(e=>e.schoolId===t.schoolId)?.categories||[]).filter(e=>(e.preferenceTypes||[]).includes(t.preferenceType))}async function te(e){let t=(c[e.examId]||[]).filter(e=>e.schoolId&&e.categoryCode);try{let n=await V(`/api/candidate/admissions/${e.examId}/preferences`,{method:`PUT`,body:{choices:t}});Wl.notify(n.locked?`志愿已保存并锁定`:`志愿已保存`,n.locked?`提交次数已达到上限`:`还可提交 ${n.remainingSubmissions} 次`),await _()}catch(e){i.value=e.message}}function ne(e){window.location.href=`/api/candidate/registrations/${e}/admit-card`}async function re(e){let t=(a.value.summaries||[]).find(t=>t.examId===e[0].examId)||{},{downloadScoreReport:n}=await lp(async()=>{let{downloadScoreReport:e}=await import(`/js/client/pdf-export.js`);return{downloadScoreReport:e}},[]);await n({organization:H.state.publicData.organization,candidate:a.value.candidate||{name:H.state.profile?.name||H.state.user?.displayName,candidateNumber:H.state.user?.candidateNumber},exam:{id:e[0].examId,name:e[0].examName,code:e[0].examCode},results:e,summary:{...t,publishedAt:[...e].sort((e,t)=>new Date(t.publishedAt)-new Date(e.publishedAt))[0]?.publishedAt},verificationCode:t.verificationCode,verificationQr:t.verificationQr,verificationUrl:`${location.origin}/verify/${t.verificationCode}`})}async function ie(e){let{downloadAdmissionNotice:t}=await lp(async()=>{let{downloadAdmissionNotice:e}=await import(`/js/client/pdf-export.js`);return{downloadAdmissionNotice:e}},[]);await t({organization:H.state.publicData.organization,candidate:{name:H.state.profile?.name||H.state.user?.displayName},exam:e.exam,placement:e.placement,school:e.placementSchool||{name:e.placement?.schoolName||`招生学校`},template:e.noticeTemplate||{},verificationCode:e.noticeVerificationCode,verificationQr:e.noticeVerificationQr,noticeNumber:e.noticeNumber,verificationUrl:`${location.origin}/verify/${e.noticeVerificationCode}`})}function ae(e){n.push(`/announcements/${e}`)}return Jn(()=>t.page,_),Hr(_),(t,p)=>{let v=Qr(`RouterLink`);return e.page===`onboarding`?(M(),N(`main`,up,[P(`aside`,null,[F(v,{class:`app-brand app-brand--light`,to:`/`},{default:Bn(()=>[...p[7]||=[P(`span`,null,`衡`,-1),P(`div`,null,[P(`strong`,null,`衡准考试服务`),P(`small`,null,`FIRST SIGN-IN`)],-1)]]),_:1}),p[8]||=P(`p`,null,`固定报名号`,-1),P(`strong`,null,T(O(H).state.user?.candidateNumber),1),p[9]||=P(`span`,null,`完成首次登录设置后,这个号码将用于所有考试事项。`,-1)]),P(`section`,null,[F(hd,{loading:r.value,error:i.value,onRetry:_},{default:Bn(()=>[O(H).state.user?.mustChangePassword?(M(),N(`form`,{key:0,class:`business-form onboarding-form`,onSubmit:p[3]||=As(e=>y(!0),[`prevent`])},[p[13]||=P(`p`,null,`STEP 1`,-1),p[14]||=P(`h1`,null,`先保护你的账户`,-1),p[15]||=P(`span`,null,`初始密码只用于第一次登录,请设置仅本人知道的新密码。`,-1),P(`label`,null,[p[10]||=P(`span`,null,`当前初始密码`,-1),k(P(`input`,{"onUpdate:modelValue":p[0]||=e=>u.currentPassword=e,type:`password`,required:``},null,512),[[z,u.currentPassword]])]),P(`label`,null,[p[11]||=P(`span`,null,`设置新密码`,-1),k(P(`input`,{"onUpdate:modelValue":p[1]||=e=>u.newPassword=e,type:`password`,minlength:`8`,required:``},null,512),[[z,u.newPassword]])]),P(`label`,null,[p[12]||=P(`span`,null,`再次输入新密码`,-1),k(P(`input`,{"onUpdate:modelValue":p[2]||=e=>u.confirmPassword=e,type:`password`,minlength:`8`,required:``},null,512),[[z,u.confirmPassword]])]),P(`button`,{class:`app-button app-button--primary app-button--large`,disabled:d.value},`保存新密码并继续`,8,dp)],32)):(M(),N(`form`,{key:1,class:`business-form profile-editor`,onSubmit:p[4]||=As(e=>b(!0),[`prevent`])},[p[16]||=P(`p`,null,`STEP 2`,-1),p[17]||=P(`h1`,null,`建立完整考生档案`,-1),F(Gf,{form:l,schools:a.value.schools||[],classes:g.value},null,8,[`form`,`schools`,`classes`]),P(`button`,{class:`app-button app-button--primary app-button--large`,disabled:d.value},`提交个人信息`,8,fp)],32))]),_:1},8,[`loading`,`error`])])])):(M(),ka(wf,{key:1,role:`candidate`,page:e.page,title:f.value[0],description:f.value[1]},{default:Bn(()=>[F(hd,{loading:r.value,error:i.value,onRetry:_},{default:Bn(()=>[e.page===`dashboard`?(M(),N(j,{key:0},[P(`section`,pp,[P(`div`,null,[P(`span`,null,T(new Date().getHours()<12?`上午好`:`下午好`),1),P(`h2`,null,T(a.value.profile?.name||O(H).state.user?.displayName)+`,欢迎回来。`,1),P(`p`,null,T(a.value.profile?.status===`approved`?`资料已通过审核,可以继续办理考试事项。`:`个人资料正在审核中,通过后即可报名考试。`),1)]),p[18]||=P(`strong`,null,[I(`准`),P(`br`),I(`考`)],-1)]),P(`section`,mp,[P(`article`,null,[p[19]||=P(`span`,null,`个人资料`,-1),P(`strong`,null,[F(U,{value:a.value.profile?.status||`pending`},null,8,[`value`])])]),P(`article`,null,[p[20]||=P(`span`,null,`已报名考试`,-1),P(`strong`,null,T(a.value.registrations?.length||0),1)]),P(`article`,null,[p[21]||=P(`span`,null,`可下载准考证`,-1),P(`strong`,null,T(a.value.registrations?.filter(e=>e.admitCard).length||0),1)]),P(`article`,null,[p[22]||=P(`span`,null,`已发布成绩`,-1),P(`strong`,null,T(a.value.results?.length||0),1)])]),P(`div`,hp,[P(`section`,gp,[p[23]||=P(`header`,null,[P(`div`,null,[P(`h2`,null,`最近报名`),P(`p`,null,`考试办理状态实时更新`)])],-1),(M(!0),N(j,null,A(a.value.registrations?.slice(0,4),e=>(M(),N(`button`,{key:e.id,class:`dashboard-row`,type:`button`,onClick:p[5]||=e=>O(n).push(`/candidate/registrations`)},[P(`span`,null,[P(`strong`,null,T(e.exam?.name),1),P(`small`,null,T(e.subjects?.length||0)+` 个科目`,1)]),F(U,{value:e.status},null,8,[`value`])]))),128))]),P(`section`,_p,[p[25]||=P(`header`,null,[P(`div`,null,[P(`h2`,null,`最近通知`),P(`p`,null,`考试中心正式发布`)])],-1),(M(!0),N(j,null,A(a.value.notices?.slice(0,5),e=>(M(),N(`button`,{key:e.id,class:`dashboard-row`,type:`button`,onClick:t=>ae(e.id)},[P(`span`,null,[P(`strong`,null,T(e.title),1),P(`small`,null,T(O(ru)(e.publishAt)),1)]),p[24]||=P(`i`,null,`→`,-1)],8,vp))),128))])])],64)):e.page===`profile`?(M(),N(`form`,{key:1,class:`business-form profile-editor`,onSubmit:p[6]||=As(e=>b(!1),[`prevent`])},[F(Gf,{form:l,schools:a.value.schools||[],classes:g.value},null,8,[`form`,`schools`,`classes`]),a.value.profile?.reviewNote?(M(),N(`div`,yp,[p[26]||=P(`strong`,null,`审核意见`,-1),P(`p`,null,T(a.value.profile.reviewNote),1)])):L(``,!0),P(`button`,{class:`app-button app-button--primary`,disabled:d.value},`保存并提交审批`,8,bp)],32)):e.page===`exams`?(M(),N(`div`,xp,[(M(!0),N(j,null,A(a.value.exams,e=>(M(),N(`article`,{key:e.id,class:`exam-apply-card`},[P(`header`,null,[P(`span`,null,T(e.code),1),F(U,{value:e.registrationState},null,8,[`value`])]),P(`h2`,null,T(e.name),1),P(`p`,null,T(e.description),1),P(`dl`,null,[P(`div`,null,[p[27]||=P(`dt`,null,`报名期限`,-1),P(`dd`,null,T(O(iu)(e.registrationStart,e.registrationEnd)),1)]),P(`div`,null,[p[28]||=P(`dt`,null,`考试时间`,-1),P(`dd`,null,T(O(iu)(e.examStart,e.examEnd)),1)]),P(`div`,null,[p[29]||=P(`dt`,null,`计分规则`,-1),P(`dd`,null,`总分 `+T(e.totalScore)+` · `+T(O(su)(e)),1)])]),P(`div`,Sp,[(M(!0),N(j,null,A(e.subjects,t=>(M(),N(`label`,{key:t.id},[k(P(`input`,{"onUpdate:modelValue":t=>o[e.id]=t,type:`checkbox`,value:t.id,disabled:!!e.registration},null,8,Cp),[[Cs,o[e.id]]]),P(`span`,null,[P(`strong`,null,T(t.name),1),P(`small`,null,T(t.date)+` `+T(t.start)+` · 满分 `+T(t.fullScore),1),P(`em`,null,T(O(ou)(t.fee)),1)])]))),128))]),e.registration?(M(),N(`footer`,wp,[P(`span`,null,`已提交 `+T(e.registration.subjectIds?.length||0)+` 个科目`,1),F(U,{value:e.registration.status},null,8,[`value`])])):(M(),N(`button`,{key:1,class:`app-button app-button--primary`,type:`button`,disabled:d.value||e.registrationState!==`open`||a.value.profileStatus!==`approved`,onClick:t=>x(e)},T(a.value.profileStatus===`approved`?`提交考试报名`:`资料审核通过后可报名`),9,Tp))]))),128))])):e.page===`registrations`?(M(),N(`div`,Ep,[(M(!0),N(j,null,A(m.value,e=>(M(),N(`article`,{key:e.id,class:`registration-vue-card`},[P(`header`,null,[P(`div`,null,[P(`span`,null,T(e.exam?.code),1),P(`h2`,null,T(e.exam?.name),1)]),F(U,{value:e.exam?.archivedAt?`archived`:e.status},null,8,[`value`])]),P(`dl`,null,[P(`div`,null,[p[30]||=P(`dt`,null,`账户报名号`,-1),P(`dd`,null,T(e.registrationNumber||O(H).state.user?.candidateNumber),1)]),P(`div`,null,[p[31]||=P(`dt`,null,`当前审批`,-1),P(`dd`,null,T(e.workflow?.currentStepDetail?.name||e.workflow?.status||`待提交`),1)]),P(`div`,null,[p[32]||=P(`dt`,null,`应缴金额`,-1),P(`dd`,null,T(O(ou)(e.amountDue)),1)]),P(`div`,null,[p[33]||=P(`dt`,null,`缴费状态`,-1),P(`dd`,null,[F(U,{value:e.paymentStatus},null,8,[`value`])])])]),P(`div`,Dp,[(M(!0),N(j,null,A(e.subjects,e=>(M(),N(`span`,{key:e.id},[I(T(e.name),1),P(`small`,null,T(e.date)+` `+T(e.start),1)]))),128))]),e.reviewNote?(M(),N(`p`,Op,`审核意见:`+T(e.reviewNote),1)):L(``,!0)]))),128)),m.value.length?L(``,!0):(M(),N(`div`,kp,[...p[34]||=[P(`strong`,null,`还没有考试报名`,-1),P(`p`,null,`资料审核通过后,可在“考试报名”中选择考试与科目。`,-1)]]))])):e.page===`admit`?(M(),N(`div`,Ap,[(M(!0),N(j,null,A(m.value.filter(e=>e.admitCard),e=>(M(),N(`article`,{key:e.id,class:`admit-card-vue`},[P(`header`,null,[P(`span`,null,T(e.exam.code),1),F(U,{value:e.exam.archivedAt?`archived`:`open`},null,8,[`value`])]),P(`h2`,null,T(e.exam.name),1),P(`div`,null,[p[35]||=P(`small`,null,`准考证号`,-1),P(`strong`,null,T(e.admitCard.number),1)]),P(`dl`,null,[P(`div`,null,[p[36]||=P(`dt`,null,`固定考点`,-1),P(`dd`,null,T(e.admitCard.testCenter),1)]),P(`div`,null,[p[37]||=P(`dt`,null,`下载时间`,-1),P(`dd`,null,T(O(iu)(e.exam.admitDownloadStart,e.exam.admitDownloadEnd)),1)])]),P(`button`,{class:`app-button app-button--primary`,type:`button`,disabled:!!e.exam.archivedAt,onClick:t=>ne(e.id)},`下载准考证`,8,jp)]))),128)),m.value.some(e=>e.admitCard)?L(``,!0):(M(),N(`div`,Mp,[...p[38]||=[P(`strong`,null,`准考证尚未生成`,-1),P(`p`,null,`管理员统一编排后会显示在这里。`,-1)]]))])):e.page===`results`?(M(),N(`div`,Np,[(M(!0),N(j,null,A(h.value,e=>(M(),N(`section`,{key:e[0].examId,class:`record-panel result-group`},[P(`header`,null,[P(`div`,null,[P(`span`,null,T(e[0].examCode),1),P(`h2`,null,T(e[0].examName),1)]),P(`button`,{class:`app-button app-button--primary`,type:`button`,onClick:t=>re(e)},`下载 PDF 成绩单`,8,Pp)]),P(`div`,Fp,[(M(!0),N(j,null,A(e,e=>(M(),N(`article`,{key:e.id},[P(`span`,null,T(e.subjectName),1),P(`strong`,null,[I(T(e.score),1),P(`small`,null,`/ `+T(e.fullScore),1)]),P(`em`,null,T(e.grade)+` · 第 `+T(e.rank)+` / `+T(e.cohortSize)+` 名`,1),e.appeal?(M(),ka(U,{key:0,value:e.appeal.status},null,8,[`value`])):(M(),N(`form`,{key:1,onSubmit:As(t=>S(e),[`prevent`])},[k(P(`textarea`,{"onUpdate:modelValue":t=>s[e.id]=t,rows:`2`,placeholder:`填写成绩复议理由`},null,8,Lp),[[z,s[e.id]]]),p[39]||=P(`button`,{type:`submit`},`申请复议`,-1)],40,Ip))]))),128))])]))),128)),h.value.length?L(``,!0):(M(),N(`div`,Rp,[...p[40]||=[P(`strong`,null,`暂时没有已发布成绩`,-1),P(`p`,null,`成绩发布后会显示在这里。`,-1)]]))])):e.page===`admissions`?(M(),N(`div`,zp,[(M(!0),N(j,null,A(a.value.admissions,e=>(M(),N(`section`,{key:e.examId,class:`record-panel admission-candidate-vue`},[P(`header`,null,[P(`div`,null,[P(`span`,null,T(e.exam.code)+` · 第 `+T(e.payload?.round||1)+` 轮`,1),P(`h2`,null,T(e.exam.name),1)]),F(U,{value:e.status},null,8,[`value`])]),P(`div`,Bp,[P(`article`,null,[p[41]||=P(`span`,null,`本场总成绩`,-1),P(`strong`,null,T(e.totalScore??`未完整发布`),1)]),P(`article`,null,[p[42]||=P(`span`,null,`特征分`,-1),P(`strong`,null,T(e.featureScore||0),1)]),P(`article`,null,[p[43]||=P(`span`,null,`已提交志愿`,-1),P(`strong`,null,T(e.submissionCount||0)+` / `+T(e.maxSubmissions||e.payload?.maxSubmissions||0),1)])]),e.placement?(M(),N(`div`,Vp,[P(`strong`,null,`当前录取结果:`+T(e.placementSchool?.name||e.placement.schoolName||`招生学校`),1),P(`p`,null,T(e.placement.payload?.categoryName)+` · `+T(e.placement.status),1),e.placement.status===`final`?(M(),N(`button`,{key:0,class:`app-button app-button--primary`,type:`button`,onClick:t=>ie(e)},`下载录取通知书 PDF`,8,Hp)):L(``,!0)])):L(``,!0),[`filling`,`supplementary`].includes(e.status)&&!e.preferenceLocked&&e.supplementEligible!==!1?(M(),N(`form`,{key:1,class:`preference-editor`,onSubmit:As(t=>te(e),[`prevent`])},[(M(!0),N(j,null,A(c[e.examId],(t,n)=>(M(),N(`div`,{key:n,class:`preference-row`},[P(`b`,null,T(t.preferenceType===`indicator`?`指标`:n),1),k(P(`select`,{"onUpdate:modelValue":e=>t.schoolId=e,onChange:e=>t.categoryCode=``},[p[44]||=P(`option`,{value:``},`选择招生学校`,-1),(M(!0),N(j,null,A(C(e,t.preferenceType),e=>(M(),N(`option`,{key:e.schoolId,value:e.schoolId},T(e.schoolCode)+` · `+T(e.schoolName),9,Gp))),128))],40,Wp),[[B,t.schoolId]]),k(P(`select`,{"onUpdate:modelValue":e=>t.categoryCode=e,disabled:!t.schoolId},[p[45]||=P(`option`,{value:``},`选择招生类别`,-1),(M(!0),N(j,null,A(ee(e,t),e=>(M(),N(`option`,{key:e.code,value:e.code},T(e.name),9,qp))),128))],8,Kp),[[B,t.categoryCode]])]))),128)),p[46]||=P(`button`,{class:`app-button app-button--primary`},`保存本人志愿`,-1)],40,Up)):(M(),N(`p`,Jp,T(e.supplementIneligibilityReason||e.payload?.progress||`当前阶段不能修改志愿。`),1))]))),128)),a.value.admissions?.length?L(``,!0):(M(),N(`div`,Yp,[...p[47]||=[P(`strong`,null,`暂无志愿填报安排`,-1),P(`p`,null,`成绩发布且考试启用志愿后会显示在这里。`,-1)]]))])):e.page===`notices`?(M(),N(`section`,Xp,[(M(!0),N(j,null,A(a.value.notices,e=>(M(),N(`button`,{key:e.id,type:`button`,onClick:t=>ae(e.id)},[P(`time`,null,T(O(ru)(e.publishAt)),1),P(`span`,null,[P(`em`,null,T(e.category),1),P(`strong`,null,T(e.title),1),P(`small`,null,T(e.summary),1)]),p[48]||=P(`i`,null,`→`,-1)],8,Zp))),128))])):e.page===`security`?(M(),ka(ap,{key:8,status:a.value,onUpdated:_},null,8,[`status`])):L(``,!0)]),_:1},8,[`loading`,`error`])]),_:1},8,[`page`,`title`,`description`]))}}},$p={class:`excel-action-bar excel-action-bar--descriptive`},em=[`href`],tm=[`href`],nm={key:1},rm={__name:`ExcelActionBar`,props:{resource:{type:String,required:!0},label:{type:String,default:`数据`},template:{type:Boolean,default:!0},importable:{type:Boolean,default:!0},examId:{type:String,default:``},batchId:{type:String,default:``}},emits:[`import`],setup(e,{emit:t}){let n=e,r=t,i=R(()=>{let e=new URLSearchParams;return n.examId&&e.set(`examId`,n.examId),n.batchId&&e.set(`batchId`,n.batchId),e.toString()});function a(e=!1){let t=new URLSearchParams(i.value);return e&&t.set(`template`,`1`),`/api/admin/excel/${n.resource}${t.size?`?${t}`:``}`}function o(e){let t=e.target.files?.[0];t&&r(`import`,{file:t,input:e.target})}return(t,n)=>(M(),N(`div`,$p,[P(`span`,null,[P(`strong`,null,T(e.label)+` Excel`,1),P(`small`,null,T(e.importable?`使用系统模板可获得逐行校验`:`按当前账号数据范围导出`),1)]),P(`div`,null,[e.template?(M(),N(`a`,{key:0,href:a(!0)},`下载模板`,8,em)):L(``,!0),P(`a`,{href:a(!1)},`导出当前数据`,8,tm),e.importable?(M(),N(`label`,nm,[n[0]||=I(`导入 Excel`,-1),P(`input`,{type:`file`,accept:`.xlsx`,hidden:``,onChange:o},null,32)])):L(``,!0)])]))}},im={class:`ledger-pagination`,"aria-label":`列表分页`},am=[`disabled`],om={key:0},sm=[`onClick`],cm=[`disabled`],lm=[`value`],um=[`value`],dm={__name:`LedgerPager`,props:{total:{type:Number,default:0},page:{type:Number,default:1},pageSize:{type:Number,default:20},totalPages:{type:Number,default:0},sizes:{type:Array,default:()=>[20,50,100]}},emits:[`update:page`,`update:pageSize`],setup(e,{emit:t}){let n=e,r=t,i=R(()=>n.totalPages||Math.max(1,Math.ceil(n.total/n.pageSize))),a=R(()=>n.total?(n.page-1)*n.pageSize+1:0),o=R(()=>Math.min(n.total,n.page*n.pageSize)),s=R(()=>[...new Set([1,n.page-1,n.page,n.page+1,i.value])].filter(e=>e>=1&&e<=i.value));return(t,n)=>(M(),N(`nav`,im,[P(`span`,null,`第 `+T(a.value)+`—`+T(o.value)+` 条,共 `+T(e.total)+` 条`,1),P(`div`,null,[P(`button`,{type:`button`,disabled:e.page<=1,onClick:n[0]||=t=>r(`update:page`,e.page-1)},`上一页`,8,am),(M(!0),N(j,null,A(s.value,(t,n)=>(M(),N(j,{key:t},[n&&t-s.value[n-1]>1?(M(),N(`i`,om,`…`)):L(``,!0),P(`button`,{type:`button`,class:be({active:t===e.page}),onClick:e=>r(`update:page`,t)},T(t),11,sm)],64))),128)),P(`button`,{type:`button`,disabled:e.page>=i.value,onClick:n[1]||=t=>r(`update:page`,e.page+1)},`下一页`,8,cm),P(`label`,null,[n[3]||=I(`每页 `,-1),P(`select`,{value:e.pageSize,onChange:n[2]||=e=>r(`update:pageSize`,Number(e.target.value))},[(M(!0),N(j,null,A(e.sizes,e=>(M(),N(`option`,{key:e,value:e},T(e),9,um))),128))],40,lm),n[4]||=I(` 条 `,-1)])])]))}};function fm(e){let t=typeof e==`function`?e():e?.value??e;return Array.isArray(t)?t:[]}function pm(e,t={}){let n=D(``),r=E(Object.fromEntries(Object.keys(t.filters||{}).map(e=>[e,``]))),i=D(1),a=D(t.pageSize||20),o=R(()=>fm(e)),s=R(()=>{let e=n.value.trim().toLocaleLowerCase(`zh-CN`);return o.value.filter(n=>{if(e){let r=t.searchText?t.searchText(n):JSON.stringify(n);if(!String(r||``).toLocaleLowerCase(`zh-CN`).includes(e))return!1}return Object.entries(t.filters||{}).every(([e,t])=>{let i=r[e];return!i||t(n,i)})})}),c=R(()=>s.value.length),l=R(()=>Math.max(1,Math.ceil(c.value/a.value))),u=R(()=>{let e=(i.value-1)*a.value;return s.value.slice(e,e+a.value)}),d=R(()=>u.value),f=R(()=>c.value?(i.value-1)*a.value+1:0),p=R(()=>Math.min(c.value,i.value*a.value));Jn([n,a,...Object.keys(r).map(e=>()=>r[e])],()=>{i.value=1}),Jn(l,e=>{i.value>e&&(i.value=e)});function m(){n.value=``;for(let e of Object.keys(r))r[e]=``;i.value=1}return E({query:n,filters:r,page:i,pageSize:a,sourceRows:o,filtered:s,total:c,totalPages:l,rows:u,pageRows:d,rangeStart:f,rangeEnd:p,clear:m})}var mm={class:`record-panel qualification-ledger-vue`},hm={class:`ledger-toolbar ledger-toolbar--wide`},gm=[`value`],_m={class:`ledger-bulk`},vm=[`checked`],ym=[`disabled`],bm=[`disabled`],xm={class:`table-scroll`},Sm=[`value`,`aria-label`],Cm=[`onClick`],wm=[`onClick`],Tm={key:0},Em={__name:`QualificationLedger`,props:{group:{type:Object,required:!0},busy:{type:Boolean,default:!1}},emits:[`save`,`bulk`],setup(e,{emit:t}){let n=e,r=t,i=D([]),a=R(()=>n.group.qualificationStatus?.rows||[]),o=pm(a,{searchText:e=>[e.name,e.registrationNumber,e.specialtyLabel].join(` `),filters:{status:(e,t)=>t===`unconfirmed`?!e.confirmed:t===`eligible`?e.confirmed&&e.eligible:e.confirmed&&!e.eligible,specialty:(e,t)=>e.specialtyLabel===t}}),s=R(()=>[...new Set(a.value.map(e=>e.specialtyLabel).filter(Boolean))].sort((e,t)=>e.localeCompare(t,`zh-CN`))),c=R(()=>o.rows.map(e=>e.userId)),l=R(()=>c.value.length>0&&c.value.every(e=>i.value.includes(e)));function u(){l.value?i.value=i.value.filter(e=>!c.value.includes(e)):i.value=[...new Set([...i.value,...c.value])]}function d(e){i.value.length&&(r(`bulk`,{userIds:[...i.value],eligible:e}),i.value=[])}return(t,n)=>(M(),N(`section`,mm,[P(`header`,null,[P(`div`,null,[P(`h2`,null,T(e.group.exam?.name||e.group.name),1),P(`p`,null,`已确认 `+T(e.group.qualificationStatus?.confirmed||0)+` / `+T(e.group.qualificationStatus?.total||0)+` 人;全部确认后系统自动公示。`,1)]),F(U,{value:e.group.qualificationStatus?.complete?`approved`:`pending`},null,8,[`value`])]),P(`div`,hm,[P(`label`,null,[n[9]||=P(`span`,null,`关键词`,-1),k(P(`input`,{"onUpdate:modelValue":n[0]||=e=>O(o).query=e,placeholder:`姓名、报名号、特长类型`},null,512),[[z,O(o).query]])]),P(`label`,null,[n[11]||=P(`span`,null,`确认状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[1]||=e=>O(o).filters.status=e},[...n[10]||=[P(`option`,{value:``},`全部状态`,-1),P(`option`,{value:`unconfirmed`},`待确认`,-1),P(`option`,{value:`eligible`},`有资格`,-1),P(`option`,{value:`ineligible`},`无资格`,-1)]],512),[[B,O(o).filters.status]])]),P(`label`,null,[n[13]||=P(`span`,null,`特长类型`,-1),k(P(`select`,{"onUpdate:modelValue":n[2]||=e=>O(o).filters.specialty=e},[n[12]||=P(`option`,{value:``},`全部类型`,-1),(M(!0),N(j,null,A(s.value,e=>(M(),N(`option`,{key:e,value:e},T(e),9,gm))),128))],512),[[B,O(o).filters.specialty]])]),P(`button`,{class:`table-action`,type:`button`,onClick:n[3]||=(...e)=>O(o).clear&&O(o).clear(...e)},`清除筛选`)]),P(`div`,_m,[P(`label`,null,[P(`input`,{type:`checkbox`,checked:l.value,onChange:u},null,40,vm),n[14]||=I(` 选择当前页`,-1)]),P(`strong`,null,`已选 `+T(i.value.length)+` 人`,1),P(`button`,{class:`table-action`,disabled:!i.value.length||e.busy,onClick:n[4]||=e=>d(!1)},`批量无资格`,8,ym),P(`button`,{class:`table-action table-action--primary`,disabled:!i.value.length||e.busy,onClick:n[5]||=e=>d(!0)},`批量有资格`,8,bm)]),P(`div`,xm,[P(`table`,null,[n[16]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`选择`),P(`th`,null,`考生`),P(`th`,null,`报名号`),P(`th`,null,`特长`),P(`th`,null,`确认状态`),P(`th`,null,`当前资格`),P(`th`,null,`确认`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(O(o).rows,e=>(M(),N(`tr`,{key:e.userId},[P(`td`,null,[k(P(`input`,{"onUpdate:modelValue":n[6]||=e=>i.value=e,type:`checkbox`,value:e.userId,"aria-label":`选择 ${e.name}`},null,8,Sm),[[Cs,i.value]])]),P(`td`,null,T(e.name),1),P(`td`,null,T(e.registrationNumber),1),P(`td`,null,T(e.specialtyLabel||`普通生`),1),P(`td`,null,T(e.confirmed?`已确认`:`待确认`),1),P(`td`,null,[F(U,{value:e.confirmed?e.eligible?`approved`:`rejected`:`pending`},null,8,[`value`])]),P(`td`,null,[P(`button`,{class:`table-action`,onClick:t=>r(`save`,{item:e,eligible:!1})},`无资格`,8,Cm),P(`button`,{class:`table-action table-action--primary`,onClick:t=>r(`save`,{item:e,eligible:!0})},`有资格`,8,wm)])]))),128)),O(o).rows.length?L(``,!0):(M(),N(`tr`,Tm,[...n[15]||=[P(`td`,{class:`table-empty`,colspan:`7`},`没有符合当前条件的考生`,-1)]]))])])]),F(dm,{page:O(o).page,"onUpdate:page":n[7]||=e=>O(o).page=e,"page-size":O(o).pageSize,"onUpdate:pageSize":n[8]||=e=>O(o).pageSize=e,total:O(o).total},null,8,[`page`,`page-size`,`total`])]))}};function Dm(e,t,n={}){let r=[...new Set((t||[]).filter(Boolean))];if(!r.length)return!1;let i=new URLSearchParams(n);i.set(`ids`,r.join(`,`));let a=document.createElement(`a`);return a.href=`/api/admin/excel/${e}?${i}`,a.click(),!0}var Om={class:`admin-core-workspace`},km={key:0,class:`form-error`},Am={key:1,class:`issued-credential`},jm={class:`scope-banner-vue`},Mm={class:`record-metrics`},Nm={class:`record-panel audit-ledger`},Pm={class:`form-grid`},Fm={class:`check-row`},Im=[`disabled`],Lm={class:`record-panel`},Rm={class:`ledger-toolbar`},zm={class:`table-scroll`},Bm=[`onClick`],Vm={class:`form-grid`},Hm={class:`organization-card-grid`},Um=[`onClick`],Wm={class:`form-grid`},Gm=[`value`],Km={class:`form-grid`},qm={key:0},Jm=[`value`],Ym={key:1},Xm=[`value`],Zm={class:`record-panel`},Qm={class:`ledger-toolbar`},$m={class:`table-scroll`},eh=[`disabled`,`onClick`],th=[`disabled`,`onClick`],nh={class:`quota-grid-vue`},rh=[`onUpdate:modelValue`],ih={class:`record-panel`},ah={class:`ledger-toolbar`},oh={class:`batch-ledger-vue`},sh={class:`chip-list`},ch={key:0,class:`row-decision`},lh=[`onUpdate:modelValue`],uh=[`onClick`],dh=[`onClick`],fh=[`value`],ph={class:`record-panel candidate-ledger`},mh={class:`ledger-toolbar ledger-toolbar--wide`},hh=[`value`],gh=[`value`],_h={class:`ledger-bulk`},vh=[`disabled`],yh=[`disabled`],bh=[`disabled`],xh={class:`table-scroll`},Sh=[`value`],Ch={key:0},wh={class:`row-decision`},Th=[`onUpdate:modelValue`],Eh=[`onClick`],Dh=[`onClick`],Oh=[`onClick`],kh={key:0},Ah={class:`record-panel`},jh={class:`ledger-toolbar ledger-toolbar--wide`},Mh=[`value`],Nh=[`value`],Ph={class:`ledger-bulk`},Fh=[`disabled`],Ih=[`disabled`],Lh=[`disabled`],Rh={class:`table-scroll`},zh=[`value`],Bh={class:`row-decision`},Vh=[`onUpdate:modelValue`],Hh=[`onClick`],Uh=[`onClick`],Wh={class:`record-metrics`},Gh={class:`record-panel`},Kh={class:`ledger-toolbar ledger-toolbar--wide`},qh=[`value`],Jh={class:`ledger-bulk`},Yh=[`disabled`],Xh=[`disabled`],Zh=[`disabled`],Qh={class:`table-scroll`},$h=[`value`],eg=[`onClick`],tg=[`onClick`],ng={key:1},rg={__name:`AdminCoreWorkspace`,props:{page:{type:String,required:!0},data:{type:Object,default:()=>({})}},emits:[`reload`],setup(e,{emit:t}){let n=e,r=t,i=D(!1),a=D(``),o=D(null),s=E({name:``,code:``,address:``,isSourceSchool:!0,isAdmissionSchool:!1,active:!0}),c=E({grade:``,name:``,active:!0}),l=E({displayName:``,username:``,password:``,adminLevel:`school`,schoolId:``,classId:``}),u=E({scopeType:`class`,scopeValue:``,archived:!0}),d=E({}),f=E({}),p=D([]),m=D([]),h=D([]),g=R(()=>new Map((n.data.classes||[]).map(e=>[e.id,e]))),_=R(()=>n.data.registrations||n.data.payments||[]),v=pm(()=>n.data.schools||[],{searchText:e=>[e.name,e.code,e.address,e.isSourceSchool&&`生源校`,e.isAdmissionSchool&&`招生校`].filter(Boolean).join(` `),filters:{status:(e,t)=>t===`active`?e.active:!e.active,type:(e,t)=>t===`source`?e.isSourceSchool:e.isAdmissionSchool}}),y=pm(()=>n.data.admins||[],{searchText:e=>[e.displayName,e.username,e.levelName,e.adminLevel,e.schoolName,e.className].join(` `),filters:{status:(e,t)=>t===`active`?e.active:!e.active,level:(e,t)=>e.adminLevel===t}}),b=pm(()=>n.data.batches||[],{searchText:e=>[e.id,e.schoolName,e.requesterName,e.status,...(e.quotas||[]).map(e=>e.className)].join(` `),filters:{status:(e,t)=>e.status===t}}),x=pm(()=>n.data.candidates||[],{searchText:e=>[e.name,e.candidateNumber,e.idNumberMasked,e.school,e.grade,e.status,...(e.registrations||[]).flatMap(e=>[e.exam?.name,...(e.subjects||[]).map(e=>e.name)])].join(` `),filters:{school:(e,t)=>e.school===t,grade:(e,t)=>_e(e)?.grade===t,class:(e,t)=>(_e(e)?.name||e.grade)===t,exam:(e,t)=>(e.registrations||[]).some(e=>e.exam?.id===t||e.examId===t),status:(e,t)=>t===`archived`?e.accountArchived:!e.accountArchived&&e.status===t}}),S=pm(()=>n.data.registrations||[],{searchText:e=>[e.candidate?.name,e.candidateName,e.registrationNumber,e.exam?.name,e.examName,e.schoolName,e.gradeName,e.className,...(e.subjects||[]).map(e=>e.name)].join(` `),filters:{status:(e,t)=>e.status===t,exam:(e,t)=>(e.exam?.id||e.examId)===t,subject:(e,t)=>(e.subjects||[]).some(e=>e.id===t||e.name===t),school:(e,t)=>e.schoolName===t,grade:(e,t)=>e.gradeName===t,class:(e,t)=>e.className===t}}),C=pm(_,{searchText:e=>[e.candidate?.name,e.candidateName,e.registrationNumber,e.exam?.name,e.examName,e.schoolName,e.gradeName,e.className,...(e.subjects||[]).map(e=>e.name)].join(` `),filters:{status:(e,t)=>e.paymentStatus===t,exam:(e,t)=>(e.exam?.id||e.examId)===t,school:(e,t)=>e.schoolName===t,grade:(e,t)=>e.gradeName===t,class:(e,t)=>e.className===t}}),ee=R(()=>n.page===`organization`||H.state.user?.adminLevel===`school`?n.data.classes||[]:(n.data.classes||[]).filter(e=>!l.schoolId||e.schoolId===l.schoolId)),te=R(()=>he((n.data.candidates||[]).map(e=>e.school))),ne=R(()=>he((n.data.candidates||[]).map(e=>_e(e)?.grade))),re=R(()=>he((n.data.candidates||[]).map(e=>_e(e)?.name||e.grade))),ie=R(()=>ge((n.data.registrations||[]).map(e=>e.exam||{id:e.examId,name:e.examName}))),ae=R(()=>ge((n.data.registrations||[]).flatMap(e=>e.subjects||[]),`name`)),oe=R(()=>he((n.data.registrations||[]).map(e=>e.schoolName))),se=R(()=>he((n.data.registrations||[]).map(e=>e.gradeName))),ce=R(()=>he((n.data.registrations||[]).map(e=>e.className))),le=R(()=>ge(_.value.map(e=>e.exam||{id:e.examId,name:e.examName}))),ue=R(()=>he(_.value.map(e=>e.schoolName))),w=R(()=>he(_.value.map(e=>e.gradeName))),de=R(()=>he(_.value.map(e=>e.className))),fe=R(()=>_.value.filter(e=>e.paymentStatus===`paid`).length),pe=R(()=>_.value.reduce((e,t)=>e+Number(t.amountDue||0),0)),me=R(()=>_.value.filter(e=>e.paymentStatus===`paid`).reduce((e,t)=>e+Number(t.amountDue||0),0));function he(e){return[...new Set(e.filter(Boolean))].sort((e,t)=>String(e).localeCompare(String(t),`zh-CN`))}function ge(e,t=`id`){let n=new Map;for(let r of e.filter(Boolean)){let e=r[t]||r.name;e&&!n.has(e)&&n.set(e,r)}return[...n.values()]}function _e(e){return g.value.get(e.classId)}function ve(e){return{pending:`待审核`,school_review:`学校审核`,approved:`已通过`,rejected:`已退回`,archived:`已归档`}[e]||e}function ye(e){return e.profileCompleted!==!1&&!e.accountArchived&&e.status===`pending`&&(!e.workflow||e.workflow.status===`pending`)&&(H.state.user?.adminLevel===`super`||!e.workflow?.assignee||e.workflow.assignee.id===H.state.user?.id)}function be(e){return e.status===`pending`&&!e.exam?.archivedAt&&(!e.workflow||e.workflow.status===`pending`)&&(H.state.user?.adminLevel===`super`||!e.workflow?.assignee||e.workflow.assignee.id===H.state.user?.id)}function xe(e,t,n=()=>!0){let r=t.filter(n).map(e=>e.id),i=Array.isArray(e)?e:e.value,a=r.length&&r.every(e=>i.includes(e))?i.filter(e=>!r.includes(e)):[...new Set([...i,...r])];Array.isArray(e)?e.splice(0,e.length,...a):e.value=a}function Se(){Dm(`candidates`,p.value)}function Ce(){Dm(`registrations`,m.value)}function we(){Dm(`payments`,h.value)}async function Te(e,t,n=!0){i.value=!0,a.value=``;try{let i=await e();return t&&Wl.notify(t),n&&r(`reload`),i}catch(e){return a.value=e.message,null}finally{i.value=!1}}function Ee(){return Te(()=>V(`/api/admin/schools`,{method:`POST`,body:s}),`学校档案已创建`)}function De(e){return Te(()=>V(`/api/admin/schools/${e.id}`,{method:`PATCH`,body:{active:!e.active}}),e.active?`学校已停用`:`学校已启用`)}function Oe(){return Te(()=>V(`/api/admin/classes`,{method:`POST`,body:c}),`班级已创建`)}function ke(e){return Te(()=>V(`/api/admin/classes/${e.id}`,{method:`PATCH`,body:{active:!e.active}}),e.active?`班级已停用`:`班级已启用`)}function Ae(){let e={...l};return H.state.user?.adminLevel===`school`&&Object.assign(e,{adminLevel:`class`,schoolId:H.state.user.schoolId}),Te(()=>V(`/api/admin/admins`,{method:`POST`,body:e}),`管理员已创建`)}function je(e){return Te(()=>V(`/api/admin/admins/${e.id}`,{method:`PATCH`,body:{active:!e.active,classId:e.classId}}),e.active?`管理员已停用`:`管理员已启用`)}async function Me(e){let t=await Te(()=>V(`/api/admin/admins/${e.id}/reset-password`,{method:`POST`}),``,!1);t&&(o.value={title:`管理员临时密码`,account:t.username,password:t.temporaryPassword})}function Ne(e){return Te(()=>V(`/api/admin/settings/self-registration`,{method:`PUT`,body:{enabled:e}}),e?`自主注册已开启`:`自主注册已关闭`)}function Pe(){let e=(n.data.classes||[]).map(e=>({classId:e.id,count:Number(f[e.id]||0)})).filter(e=>e.count>0);if(!e.length){a.value=`请至少为一个班级填写申领数量`;return}return Te(()=>V(`/api/admin/candidate-account-batches`,{method:`POST`,body:{quotas:e}}),`批量报名号申领已提交`)}function Fe(e,t){return Te(()=>V(`/api/admin/candidate-account-batches/${e.id}`,{method:`PATCH`,body:{status:t,reviewNote:d[e.id]||``}}),t===`approved`?`批次审批已通过`:`批次已退回`)}function Ie(e,t){return Te(()=>V(`/api/admin/candidates/${e.id}`,{method:`PATCH`,body:{status:t,reviewNote:d[e.id]||``}}),t===`approved`?`考生资料已通过当前步骤`:`考生资料已退回`)}async function Le(e){let t=await Te(()=>V(`/api/admin/candidates/${e.id}/reset-password`,{method:`POST`}),``,!1);t&&(o.value={title:`考生临时密码`,account:t.candidateNumber,password:t.temporaryPassword})}function Re(){return Te(()=>V(`/api/admin/candidate-accounts/archive`,{method:`POST`,body:u}),u.archived?`范围内账户已归档`:`范围内账户已恢复`)}function ze(e,t){return Te(()=>V(`/api/admin/registrations/${e.id}`,{method:`PATCH`,body:{status:t,reviewNote:d[e.id]||``}}),t===`approved`?`考试报名已通过当前步骤`:`考试报名已退回`)}function Be(e,t){return Te(()=>V(`/api/admin/payments/${e.id}`,{method:`PATCH`,body:{status:t}}),`缴费状态已更新`)}function Ve(e,t,n){return Te(()=>V(`/api/admin/indicator-qualifications/${e.exam.id}/${t.userId}`,{method:`PUT`,body:{eligible:n}}),`指标资格已确认`)}function He(e,t,n){return Te(()=>V(`/api/admin/indicator-qualifications/${e.exam.id}/bulk`,{method:`PUT`,body:{userIds:n,eligible:t}}),`已批量设置 ${n.length} 人资格`)}async function Ue(e,t,o){let s=e===`candidates`?n.data.candidates||[]:n.data.registrations||[],c=e===`candidates`?ye:be,l=s.filter(e=>t.includes(e.id)&&c(e)).map(e=>e.id);if(!l.length){a.value=`选中记录中没有处于当前账号可处理步骤的数据`;return}let u=o===`rejected`,d=window.prompt(u?`请填写批量退回原因(必填)`:`填写批量审核意见(可留空)`,``);if(d===null||u&&!d.trim())return;i.value=!0,a.value=``;let f=0;try{for(let t of l)try{await V(`/api/admin/${e}/${t}`,{method:`PATCH`,body:{status:o,reviewNote:d}}),f++}catch(e){a.value=e.message}Wl.notify(`已处理 ${f} 条记录`),r(`reload`),e===`candidates`?p.value=[]:m.value=[]}finally{i.value=!1}}async function We(e){let t=_.value.filter(t=>h.value.includes(t.id)&&t.paymentStatus!==e&&!t.exam?.archivedAt);if(!t.length||!window.confirm(`确认将 ${t.length} 条缴费记录改为“${e===`paid`?`已缴费`:`待缴费`}”吗?`))return;i.value=!0,a.value=``;let n=0;try{for(let r of t)try{await V(`/api/admin/payments/${r.id}`,{method:`PATCH`,body:{status:e}}),n++}catch(e){a.value=e.message}Wl.notify(`已更新 ${n} 条缴费记录`),h.value=[],r(`reload`)}finally{i.value=!1}}async function Ge(e,t){let n=t?.input||t?.target,r=t?.file||n?.files?.[0];if(!r)return;let i=await Te(()=>V(`/api/admin/excel/${e}`,{method:`POST`,headers:{"Content-Type":`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`},body:r}),e===`account_quotas`?``:`Excel 已导入`,e!==`account_quotas`);if(e===`account_quotas`&&i){for(let e of Object.keys(f))f[e]=0;for(let e of i.quotas||[])f[e.classId]=e.count;Wl.notify(`已读取 ${i.quotas?.length||0} 个班级配额,请核对后提交`)}n&&(n.value=``)}return(t,n)=>(M(),N(`div`,Om,[a.value?(M(),N(`div`,km,T(a.value),1)):L(``,!0),o.value?(M(),N(`section`,Am,[P(`div`,null,[n[80]||=P(`span`,null,`ONE-TIME CREDENTIAL`,-1),P(`h2`,null,T(o.value.title),1),n[81]||=P(`p`,null,`请通过线下安全渠道交付;关闭后不再展示。`,-1)]),P(`dl`,null,[P(`div`,null,[n[82]||=P(`dt`,null,`登录账号`,-1),P(`dd`,null,T(o.value.account),1)]),P(`div`,null,[n[83]||=P(`dt`,null,`临时密码`,-1),P(`dd`,null,T(o.value.password),1)])]),P(`button`,{class:`app-button`,onClick:n[0]||=e=>o.value=null},`我已保存`)])):L(``,!0),e.page===`dashboard`?(M(),N(j,{key:2},[P(`section`,jm,[P(`span`,null,T(O(H).state.user?.adminLevel),1),P(`div`,null,[P(`strong`,null,T(e.data.scopeLabel),1),n[84]||=P(`small`,null,`以下指标已按当前管理员数据范围过滤`,-1)])]),P(`section`,Mm,[(M(!0),N(j,null,A(e.data.metrics,(e,t)=>(M(),N(`article`,{key:t},[P(`span`,null,T(t),1),P(`strong`,null,T(e),1)]))),128))]),P(`section`,Nm,[n[85]||=P(`header`,null,[P(`div`,null,[P(`h2`,null,`最近操作`),P(`p`,null,`系统审计日志`)])],-1),(M(!0),N(j,null,A(e.data.logs,e=>(M(),N(`div`,{key:e.id,class:`dashboard-row`},[P(`b`,null,T(String(e.actorName||`系`).slice(0,1)),1),P(`span`,null,[P(`strong`,null,T(e.actorName)+` · `+T(e.action),1),P(`small`,null,T(e.detail),1)]),P(`time`,null,T(e.createdAt),1)]))),128))])],64)):e.page===`schools`?(M(),N(j,{key:3},[P(`form`,{class:`business-form admin-create-strip`,onSubmit:As(Ee,[`prevent`])},[n[92]||=P(`header`,null,[P(`div`,null,[P(`p`,null,`ORGANIZATION`),P(`h2`,null,`新增学校档案`)])],-1),P(`div`,Pm,[P(`label`,null,[n[86]||=P(`span`,null,`学校名称`,-1),k(P(`input`,{"onUpdate:modelValue":n[1]||=e=>s.name=e,required:``},null,512),[[z,s.name]])]),P(`label`,null,[n[87]||=P(`span`,null,`学校代码`,-1),k(P(`input`,{"onUpdate:modelValue":n[2]||=e=>s.code=e,required:``},null,512),[[z,s.code]])]),P(`label`,null,[n[88]||=P(`span`,null,`地址`,-1),k(P(`input`,{"onUpdate:modelValue":n[3]||=e=>s.address=e},null,512),[[z,s.address]])])]),P(`div`,Fm,[P(`label`,null,[k(P(`input`,{"onUpdate:modelValue":n[4]||=e=>s.isSourceSchool=e,type:`checkbox`},null,512),[[Cs,s.isSourceSchool]]),n[89]||=I(` 生源学校`,-1)]),P(`label`,null,[k(P(`input`,{"onUpdate:modelValue":n[5]||=e=>s.isAdmissionSchool=e,type:`checkbox`},null,512),[[Cs,s.isAdmissionSchool]]),n[90]||=I(` 招生学校`,-1)]),P(`label`,null,[k(P(`input`,{"onUpdate:modelValue":n[6]||=e=>s.active=e,type:`checkbox`},null,512),[[Cs,s.active]]),n[91]||=I(` 创建后启用`,-1)])]),P(`button`,{class:`app-button app-button--primary`,disabled:i.value},` 创建学校 `,8,Im)],32),P(`section`,Lm,[P(`header`,null,[P(`div`,null,[n[93]||=P(`h2`,null,`学校名录`,-1),P(`p`,null,` 筛选结果 `+T(O(v).total)+` / 共 `+T(e.data.schools?.length||0)+` 所 `,1)])]),P(`div`,Rm,[P(`label`,null,[n[94]||=P(`span`,null,`关键词`,-1),k(P(`input`,{"onUpdate:modelValue":n[7]||=e=>O(v).query=e,placeholder:`学校名称、代码、类型或地址`},null,512),[[z,O(v).query]])]),P(`label`,null,[n[96]||=P(`span`,null,`状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[8]||=e=>O(v).filters.status=e},[...n[95]||=[P(`option`,{value:``},`全部状态`,-1),P(`option`,{value:`active`},`已启用`,-1),P(`option`,{value:`disabled`},`已停用`,-1)]],512),[[B,O(v).filters.status]])]),P(`label`,null,[n[98]||=P(`span`,null,`学校类型`,-1),k(P(`select`,{"onUpdate:modelValue":n[9]||=e=>O(v).filters.type=e},[...n[97]||=[P(`option`,{value:``},`全部类型`,-1),P(`option`,{value:`source`},`生源学校`,-1),P(`option`,{value:`admission`},`招生学校`,-1)]],512),[[B,O(v).filters.type]])])]),P(`div`,zm,[P(`table`,null,[n[99]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`学校 / 代码`),P(`th`,null,`类型`),P(`th`,null,`地址`),P(`th`,null,`班级`),P(`th`,null,`考生`),P(`th`,null,`状态`),P(`th`,null,`操作`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(O(v).rows,e=>(M(),N(`tr`,{key:e.id},[P(`td`,null,[P(`strong`,null,T(e.name),1),P(`small`,null,T(e.code),1)]),P(`td`,null,T([e.isSourceSchool&&`生源校`,e.isAdmissionSchool&&`招生校`].filter(Boolean).join(` / `)),1),P(`td`,null,T(e.address||`未填写`),1),P(`td`,null,T(e.classCount),1),P(`td`,null,T(e.candidateCount),1),P(`td`,null,[F(U,{value:e.active?`active`:`disabled`},null,8,[`value`])]),P(`td`,null,[P(`button`,{class:`table-action`,onClick:t=>De(e)},T(e.active?`停用`:`启用`),9,Bm)])]))),128))])])]),F(dm,{page:O(v).page,"onUpdate:page":n[10]||=e=>O(v).page=e,"page-size":O(v).pageSize,"onUpdate:pageSize":n[11]||=e=>O(v).pageSize=e,total:O(v).total},null,8,[`page`,`page-size`,`total`])])],64)):e.page===`organization`?(M(),N(j,{key:4},[F(rm,{resource:`classes`,label:`班级台账`,onImport:n[12]||=e=>Ge(`classes`,e)}),F(rm,{resource:`class_admins`,label:`班级管理员`,onImport:n[13]||=e=>Ge(`class_admins`,e)}),P(`form`,{class:`business-form admin-create-strip`,onSubmit:As(Oe,[`prevent`])},[n[102]||=P(`h2`,null,`新增本校班级`,-1),P(`div`,Vm,[P(`label`,null,[n[100]||=P(`span`,null,`年级`,-1),k(P(`input`,{"onUpdate:modelValue":n[14]||=e=>c.grade=e,required:``,placeholder:`例如:九年级`},null,512),[[z,c.grade]])]),P(`label`,null,[n[101]||=P(`span`,null,`班级名称`,-1),k(P(`input`,{"onUpdate:modelValue":n[15]||=e=>c.name=e,required:``,placeholder:`例如:1 班`},null,512),[[z,c.name]])])]),n[103]||=P(`button`,{class:`app-button app-button--primary`},`创建班级`,-1)],32),P(`section`,Hm,[(M(!0),N(j,null,A(e.data.classes,e=>(M(),N(`article`,{key:e.id,class:`record-panel org-card`},[P(`header`,null,[P(`div`,null,[P(`span`,null,T(e.grade),1),P(`h2`,null,T(e.name),1)]),F(U,{value:e.active?`active`:`disabled`},null,8,[`value`])]),P(`strong`,null,T(e.candidateCount)+` 名考生`,1),(M(!0),N(j,null,A(e.admins,e=>(M(),N(`div`,{key:e.id,class:`dashboard-row`},[P(`b`,null,T(e.displayName?.slice(0,1)),1),P(`span`,null,[P(`strong`,null,T(e.displayName),1),P(`small`,null,T(e.username),1)]),F(U,{value:e.active?`active`:`disabled`},null,8,[`value`])]))),128)),P(`footer`,null,[P(`button`,{class:`table-action`,onClick:t=>ke(e)},T(e.active?`停用班级`:`启用班级`),9,Um)])]))),128))]),P(`form`,{class:`business-form admin-create-strip`,onSubmit:As(Ae,[`prevent`])},[n[109]||=P(`h2`,null,`新增班级管理员`,-1),P(`div`,Wm,[P(`label`,null,[n[104]||=P(`span`,null,`姓名`,-1),k(P(`input`,{"onUpdate:modelValue":n[16]||=e=>l.displayName=e,required:``},null,512),[[z,l.displayName]])]),P(`label`,null,[n[105]||=P(`span`,null,`账号`,-1),k(P(`input`,{"onUpdate:modelValue":n[17]||=e=>l.username=e,required:``},null,512),[[z,l.username]])]),P(`label`,null,[n[106]||=P(`span`,null,`初始密码`,-1),k(P(`input`,{"onUpdate:modelValue":n[18]||=e=>l.password=e,type:`password`,minlength:`8`,required:``},null,512),[[z,l.password]])]),P(`label`,null,[n[108]||=P(`span`,null,`绑定班级`,-1),k(P(`select`,{"onUpdate:modelValue":n[19]||=e=>l.classId=e,required:``},[n[107]||=P(`option`,{value:``},`请选择`,-1),(M(!0),N(j,null,A(e.data.classes,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.grade)+` · `+T(e.name),9,Gm))),128))],512),[[B,l.classId]])])]),n[110]||=P(`button`,{class:`app-button app-button--primary`},`创建班级管理员`,-1)],32)],64)):e.page===`admins`?(M(),N(j,{key:5},[P(`form`,{class:`business-form admin-create-strip`,onSubmit:As(Ae,[`prevent`])},[P(`header`,null,[n[111]||=P(`div`,null,[P(`p`,null,`ACCOUNT AUTHORITY`),P(`h2`,null,`创建管理员`)],-1),P(`button`,{type:`button`,class:`app-button`,onClick:n[20]||=t=>Ne(!e.data.selfRegistrationEnabled)},T(e.data.selfRegistrationEnabled?`关闭自主注册`:`开启自主注册`),1)]),P(`div`,Km,[P(`label`,null,[n[112]||=P(`span`,null,`姓名`,-1),k(P(`input`,{"onUpdate:modelValue":n[21]||=e=>l.displayName=e,required:``},null,512),[[z,l.displayName]])]),P(`label`,null,[n[113]||=P(`span`,null,`登录账号`,-1),k(P(`input`,{"onUpdate:modelValue":n[22]||=e=>l.username=e,required:``},null,512),[[z,l.username]])]),P(`label`,null,[n[114]||=P(`span`,null,`初始密码`,-1),k(P(`input`,{"onUpdate:modelValue":n[23]||=e=>l.password=e,type:`password`,minlength:`8`,required:``},null,512),[[z,l.password]])]),P(`label`,null,[n[116]||=P(`span`,null,`管理员层级`,-1),k(P(`select`,{"onUpdate:modelValue":n[24]||=e=>l.adminLevel=e},[...n[115]||=[P(`option`,{value:`super`},`超级管理员`,-1),P(`option`,{value:`school`},`校级管理员`,-1),P(`option`,{value:`class`},`班级管理员`,-1)]],512),[[B,l.adminLevel]])]),l.adminLevel===`super`?L(``,!0):(M(),N(`label`,qm,[n[118]||=P(`span`,null,`绑定学校`,-1),k(P(`select`,{"onUpdate:modelValue":n[25]||=e=>l.schoolId=e,required:``},[n[117]||=P(`option`,{value:``},`请选择`,-1),(M(!0),N(j,null,A(e.data.schools,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,Jm))),128))],512),[[B,l.schoolId]])])),l.adminLevel===`class`?(M(),N(`label`,Ym,[n[120]||=P(`span`,null,`绑定班级`,-1),k(P(`select`,{"onUpdate:modelValue":n[26]||=e=>l.classId=e,required:``},[n[119]||=P(`option`,{value:``},`请选择`,-1),(M(!0),N(j,null,A(ee.value,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.grade)+` · `+T(e.name),9,Xm))),128))],512),[[B,l.classId]])])):L(``,!0)]),n[121]||=P(`button`,{class:`app-button app-button--primary`},`创建管理员`,-1)],32),P(`section`,Zm,[P(`header`,null,[P(`div`,null,[n[122]||=P(`h2`,null,`管理员账户`,-1),P(`p`,null,` 筛选结果 `+T(O(y).total)+` / 共 `+T(e.data.admins?.length||0)+` 个;停用不删除历史记录。 `,1)])]),P(`div`,Qm,[P(`label`,null,[n[123]||=P(`span`,null,`关键词`,-1),k(P(`input`,{"onUpdate:modelValue":n[27]||=e=>O(y).query=e,placeholder:`姓名、账号、学校或班级`},null,512),[[z,O(y).query]])]),P(`label`,null,[n[125]||=P(`span`,null,`层级`,-1),k(P(`select`,{"onUpdate:modelValue":n[28]||=e=>O(y).filters.level=e},[...n[124]||=[P(`option`,{value:``},`全部层级`,-1),P(`option`,{value:`super`},`超级管理员`,-1),P(`option`,{value:`school`},`校级管理员`,-1),P(`option`,{value:`class`},`班级管理员`,-1)]],512),[[B,O(y).filters.level]])]),P(`label`,null,[n[127]||=P(`span`,null,`状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[29]||=e=>O(y).filters.status=e},[...n[126]||=[P(`option`,{value:``},`全部状态`,-1),P(`option`,{value:`active`},`已启用`,-1),P(`option`,{value:`disabled`},`已停用`,-1)]],512),[[B,O(y).filters.status]])])]),P(`div`,$m,[P(`table`,null,[n[128]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`管理员`),P(`th`,null,`账号`),P(`th`,null,`层级`),P(`th`,null,`范围`),P(`th`,null,`状态`),P(`th`,null,`操作`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(O(y).rows,e=>(M(),N(`tr`,{key:e.id},[P(`td`,null,T(e.displayName),1),P(`td`,null,T(e.username),1),P(`td`,null,T(e.levelName||e.adminLevel),1),P(`td`,null,T(e.schoolName||`全局`)+` `+T(e.className||``),1),P(`td`,null,[F(U,{value:e.active?`active`:`disabled`},null,8,[`value`])]),P(`td`,null,[P(`button`,{class:`table-action`,disabled:e.id===O(H).state.user?.id,onClick:t=>Me(e)},` 重置密码`,8,eh),P(`button`,{class:`table-action`,disabled:e.id===O(H).state.user?.id,onClick:t=>je(e)},T(e.active?`停用`:`启用`),9,th)])]))),128))])])]),F(dm,{page:O(y).page,"onUpdate:page":n[30]||=e=>O(y).page=e,"page-size":O(y).pageSize,"onUpdate:pageSize":n[31]||=e=>O(y).pageSize=e,total:O(y).total},null,8,[`page`,`page-size`,`total`])])],64)):e.page===`account-batches`?(M(),N(j,{key:6},[F(rm,{resource:`account_quotas`,label:`班级申领配额`,onImport:n[32]||=e=>Ge(`account_quotas`,e)}),P(`form`,{class:`business-form`,onSubmit:As(Pe,[`prevent`])},[n[129]||=P(`p`,null,`SCHOOL ACCOUNT REQUEST`,-1),n[130]||=P(`h2`,null,`按班级申领报名号`,-1),P(`div`,nh,[(M(!0),N(j,null,A(e.data.classes,e=>(M(),N(`label`,{key:e.id},[P(`span`,null,[P(`strong`,null,T(e.name),1),P(`small`,null,T(e.grade),1)]),k(P(`input`,{"onUpdate:modelValue":t=>f[e.id]=t,type:`number`,min:`0`,max:`200`},null,8,rh),[[z,f[e.id]]])]))),128))]),n[131]||=P(`button`,{class:`app-button app-button--primary`},`提交批量申领`,-1)],32),P(`section`,ih,[P(`header`,null,[P(`div`,null,[n[132]||=P(`h2`,null,`申领批次与返回结果`,-1),P(`p`,null,` 筛选结果 `+T(O(b).total)+` / 共 `+T(e.data.batches?.length||0)+` 批 `,1)])]),P(`div`,ah,[P(`label`,null,[n[133]||=P(`span`,null,`关键词`,-1),k(P(`input`,{"onUpdate:modelValue":n[33]||=e=>O(b).query=e,placeholder:`批次、学校、班级或提交人`},null,512),[[z,O(b).query]])]),P(`label`,null,[n[135]||=P(`span`,null,`审批状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[34]||=e=>O(b).filters.status=e},[...n[134]||=[P(`option`,{value:``},`全部状态`,-1),P(`option`,{value:`pending`},`审批中`,-1),P(`option`,{value:`approved`},`已通过`,-1),P(`option`,{value:`rejected`},`已退回`,-1)]],512),[[B,O(b).filters.status]])])]),P(`div`,oh,[(M(!0),N(j,null,A(O(b).rows,e=>(M(),N(`article`,{key:e.id,class:`record-panel batch-card-vue`},[P(`header`,null,[P(`div`,null,[P(`span`,null,T(e.id),1),P(`h2`,null,T(e.schoolName)+` · `+T(e.totalCount)+` 个报名号 `,1)]),F(U,{value:e.status},null,8,[`value`])]),P(`div`,sh,[(M(!0),N(j,null,A(e.quotas,e=>(M(),N(`span`,{key:e.classId},[I(T(e.className),1),P(`small`,null,T(e.count)+` 人`,1)]))),128))]),e.status===`pending`?(M(),N(`div`,ch,[k(P(`input`,{"onUpdate:modelValue":t=>d[e.id]=t,placeholder:`审批意见`},null,8,lh),[[z,d[e.id]]]),P(`button`,{onClick:t=>Fe(e,`rejected`)},`退回`,8,uh),P(`button`,{onClick:t=>Fe(e,`approved`)},`通过`,8,dh)])):L(``,!0),e.status===`approved`?(M(),ka(rm,{key:1,resource:`account_results`,label:`账号下发清单`,template:!1,importable:!1,"batch-id":e.id},null,8,[`batch-id`])):L(``,!0)]))),128))]),F(dm,{page:O(b).page,"onUpdate:page":n[35]||=e=>O(b).page=e,"page-size":O(b).pageSize,"onUpdate:pageSize":n[36]||=e=>O(b).pageSize=e,total:O(b).total},null,8,[`page`,`page-size`,`total`])])],64)):e.page===`candidates`?(M(),N(j,{key:7},[F(rm,{resource:`candidates`,label:`考生资料`,onImport:n[37]||=e=>Ge(`candidates`,e)}),O(H).state.user?.adminLevel===`school`?(M(),N(`form`,{key:0,class:`archive-console-vue`,onSubmit:As(Re,[`prevent`])},[n[139]||=P(`div`,null,[P(`p`,null,`SCHOOL ACCOUNT ARCHIVE`),P(`h2`,null,`按班级或年级归档账户`),P(`span`,null,`只冻结登录,不删除报名、准考证、成绩和审计记录。`)],-1),k(P(`select`,{"onUpdate:modelValue":n[38]||=e=>u.scopeType=e},[...n[136]||=[P(`option`,{value:`class`},`按班级`,-1),P(`option`,{value:`grade`},`按年级`,-1)]],512),[[B,u.scopeType]]),k(P(`select`,{"onUpdate:modelValue":n[39]||=e=>u.scopeValue=e,required:``},[n[137]||=P(`option`,{value:``},`请选择范围`,-1),(M(!0),N(j,null,A(u.scopeType===`class`?e.data.classes:[...new Set((e.data.classes||[]).map(e=>e.grade))].map(e=>({id:e,name:e})),e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.grade?`${e.grade} · ${e.name}`:e.name),9,fh))),128))],512),[[B,u.scopeValue]]),k(P(`select`,{"onUpdate:modelValue":n[40]||=e=>u.archived=e},[...n[138]||=[P(`option`,{value:!0},`归档账户`,-1),P(`option`,{value:!1},`恢复账户`,-1)]],512),[[B,u.archived]]),n[140]||=P(`button`,{class:`app-button app-button--primary`},`执行`,-1)],32)):L(``,!0),P(`section`,ph,[P(`header`,null,[P(`div`,null,[n[141]||=P(`h2`,null,`考生资料审核台账`,-1),P(`p`,null,` 筛选结果 `+T(O(x).total)+` / 共 `+T(e.data.candidates?.length||0)+` 人 `,1)])]),P(`div`,mh,[P(`label`,null,[n[142]||=P(`span`,null,`关键词`,-1),k(P(`input`,{"onUpdate:modelValue":n[41]||=e=>O(x).query=e,placeholder:`姓名、报名号、证件号、科目`},null,512),[[z,O(x).query]])]),P(`label`,null,[n[144]||=P(`span`,null,`学校`,-1),k(P(`select`,{"onUpdate:modelValue":n[42]||=e=>O(x).filters.school=e},[n[143]||=P(`option`,{value:``},`全部学校`,-1),(M(!0),N(j,null,A(te.value,e=>(M(),N(`option`,{key:e},T(e),1))),128))],512),[[B,O(x).filters.school]])]),P(`label`,null,[n[146]||=P(`span`,null,`年级`,-1),k(P(`select`,{"onUpdate:modelValue":n[43]||=e=>O(x).filters.grade=e},[n[145]||=P(`option`,{value:``},`全部年级`,-1),(M(!0),N(j,null,A(ne.value,e=>(M(),N(`option`,{key:e},T(e),1))),128))],512),[[B,O(x).filters.grade]])]),P(`label`,null,[n[148]||=P(`span`,null,`班级`,-1),k(P(`select`,{"onUpdate:modelValue":n[44]||=e=>O(x).filters.class=e},[n[147]||=P(`option`,{value:``},`全部班级`,-1),(M(!0),N(j,null,A(re.value,e=>(M(),N(`option`,{key:e},T(e),1))),128))],512),[[B,O(x).filters.class]])]),P(`label`,null,[n[150]||=P(`span`,null,`关联考试`,-1),k(P(`select`,{"onUpdate:modelValue":n[45]||=e=>O(x).filters.exam=e},[n[149]||=P(`option`,{value:``},`全部考试`,-1),(M(!0),N(j,null,A(e.data.exams,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,hh))),128))],512),[[B,O(x).filters.exam]])]),P(`label`,null,[n[152]||=P(`span`,null,`资料状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[46]||=e=>O(x).filters.status=e},[n[151]||=P(`option`,{value:``},`全部状态`,-1),(M(),N(j,null,A([`pending`,`approved`,`rejected`,`archived`],e=>P(`option`,{key:e,value:e},T(ve(e)),9,gh)),64))],512),[[B,O(x).filters.status]])]),P(`button`,{class:`table-action`,onClick:n[47]||=(...e)=>O(x).clear&&O(x).clear(...e)},` 清除筛选 `)]),P(`div`,_h,[P(`label`,null,[P(`input`,{type:`checkbox`,onChange:n[48]||=e=>xe(p.value,O(x).rows)},null,32),n[153]||=I(` 选择当前页可处理项`,-1)]),P(`strong`,null,`已选 `+T(p.value.length)+` 人`,1),P(`button`,{class:`table-action`,disabled:!p.value.length||i.value,onClick:n[49]||=e=>Ue(`candidates`,p.value,`rejected`)},` 批量退回`,8,vh),P(`button`,{class:`table-action table-action--primary`,disabled:!p.value.length||i.value,onClick:n[50]||=e=>Ue(`candidates`,p.value,`approved`)},` 批量通过`,8,yh),P(`button`,{class:`table-action`,disabled:!p.value.length,onClick:Se},` 导出选中项 `,8,bh)]),P(`div`,xh,[P(`table`,null,[n[155]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`选择`),P(`th`,null,`考生`),P(`th`,null,`证件`),P(`th`,null,`学校班级`),P(`th`,null,`关联考试`),P(`th`,null,`账户`),P(`th`,null,`状态`),P(`th`,null,`审核`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(O(x).rows,e=>(M(),N(`tr`,{key:e.id},[P(`td`,null,[k(P(`input`,{"onUpdate:modelValue":n[51]||=e=>p.value=e,type:`checkbox`,value:e.id},null,8,Sh),[[Cs,p.value]])]),P(`td`,null,[P(`strong`,null,T(e.name),1),P(`small`,null,T(e.candidateNumber),1)]),P(`td`,null,T(e.idNumberMasked),1),P(`td`,null,[I(T(e.school),1),P(`small`,null,T(_e(e)?.grade)+` · `+T(_e(e)?.name||e.grade),1)]),P(`td`,null,[(M(!0),N(j,null,A(e.registrations,e=>(M(),N(`span`,{key:e.id,class:`table-stack`},T(e.exam?.name)+` · `+T(e.subjects?.map(e=>e.name).join(`、`)),1))),128)),e.registrations?.length?L(``,!0):(M(),N(`span`,Ch,`暂无报名`))]),P(`td`,null,T(e.accountArchived?`已归档`:e.mustChangePassword?`待首次改密`:`正常`),1),P(`td`,null,[F(U,{value:e.status},null,8,[`value`])]),P(`td`,null,[P(`div`,wh,[k(P(`input`,{"onUpdate:modelValue":t=>d[e.id]=t,placeholder:`审核意见`},null,8,Th),[[z,d[e.id]]]),P(`button`,{onClick:t=>Ie(e,`rejected`)},` 退回`,8,Eh),P(`button`,{onClick:t=>Ie(e,`approved`)},` 通过`,8,Dh),O(H).state.user?.adminLevel===`super`?(M(),N(`button`,{key:0,onClick:t=>Le(e)},` 重置密码 `,8,Oh)):L(``,!0)])])]))),128)),O(x).rows.length?L(``,!0):(M(),N(`tr`,kh,[...n[154]||=[P(`td`,{class:`table-empty`,colspan:`8`},`没有符合当前条件的考生`,-1)]]))])])]),F(dm,{page:O(x).page,"onUpdate:page":n[52]||=e=>O(x).page=e,"page-size":O(x).pageSize,"onUpdate:pageSize":n[53]||=e=>O(x).pageSize=e,total:O(x).total},null,8,[`page`,`page-size`,`total`])])],64)):e.page===`indicator-qualifications`?(M(!0),N(j,{key:8},A(e.data.exams,e=>(M(),ka(Em,{key:e.exam?.id||e.id,group:e,busy:i.value,onSave:t=>Ve(e,t.item,t.eligible),onBulk:t=>He(e,t.eligible,t.userIds)},null,8,[`group`,`busy`,`onSave`,`onBulk`]))),128)):e.page===`registrations`?(M(),N(j,{key:9},[F(rm,{resource:`registrations`,label:`考试报名台账`,template:!1,importable:!1}),P(`section`,Ah,[P(`header`,null,[P(`div`,null,[n[156]||=P(`h2`,null,`考试报名审核台账`,-1),P(`p`,null,` 筛选结果 `+T(O(S).total)+` / 共 `+T(e.data.registrations?.length||0)+` 条 `,1)])]),P(`div`,jh,[P(`label`,null,[n[157]||=P(`span`,null,`关键词`,-1),k(P(`input`,{"onUpdate:modelValue":n[54]||=e=>O(S).query=e,placeholder:`考生、报名号、考试或科目`},null,512),[[z,O(S).query]])]),P(`label`,null,[n[159]||=P(`span`,null,`状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[55]||=e=>O(S).filters.status=e},[...n[158]||=[P(`option`,{value:``},`全部状态`,-1),P(`option`,{value:`pending`},`待审核`,-1),P(`option`,{value:`approved`},`已通过`,-1),P(`option`,{value:`rejected`},`已退回`,-1)]],512),[[B,O(S).filters.status]])]),P(`label`,null,[n[161]||=P(`span`,null,`考试`,-1),k(P(`select`,{"onUpdate:modelValue":n[56]||=e=>O(S).filters.exam=e},[n[160]||=P(`option`,{value:``},`全部考试`,-1),(M(!0),N(j,null,A(ie.value,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,Mh))),128))],512),[[B,O(S).filters.exam]])]),P(`label`,null,[n[163]||=P(`span`,null,`科目`,-1),k(P(`select`,{"onUpdate:modelValue":n[57]||=e=>O(S).filters.subject=e},[n[162]||=P(`option`,{value:``},`全部科目`,-1),(M(!0),N(j,null,A(ae.value,e=>(M(),N(`option`,{key:e.id||e.name,value:e.id||e.name},T(e.name),9,Nh))),128))],512),[[B,O(S).filters.subject]])]),P(`label`,null,[n[165]||=P(`span`,null,`学校`,-1),k(P(`select`,{"onUpdate:modelValue":n[58]||=e=>O(S).filters.school=e},[n[164]||=P(`option`,{value:``},`全部学校`,-1),(M(!0),N(j,null,A(oe.value,e=>(M(),N(`option`,{key:e},T(e),1))),128))],512),[[B,O(S).filters.school]])]),P(`label`,null,[n[167]||=P(`span`,null,`年级`,-1),k(P(`select`,{"onUpdate:modelValue":n[59]||=e=>O(S).filters.grade=e},[n[166]||=P(`option`,{value:``},`全部年级`,-1),(M(!0),N(j,null,A(se.value,e=>(M(),N(`option`,{key:e},T(e),1))),128))],512),[[B,O(S).filters.grade]])]),P(`label`,null,[n[169]||=P(`span`,null,`班级`,-1),k(P(`select`,{"onUpdate:modelValue":n[60]||=e=>O(S).filters.class=e},[n[168]||=P(`option`,{value:``},`全部班级`,-1),(M(!0),N(j,null,A(ce.value,e=>(M(),N(`option`,{key:e},T(e),1))),128))],512),[[B,O(S).filters.class]])])]),P(`div`,Ph,[P(`label`,null,[P(`input`,{type:`checkbox`,onChange:n[61]||=e=>xe(m.value,O(S).rows)},null,32),n[170]||=I(` 选择当前页可处理项`,-1)]),P(`strong`,null,`已选 `+T(m.value.length)+` 条`,1),P(`button`,{class:`table-action`,disabled:!m.value.length||i.value,onClick:n[62]||=e=>Ue(`registrations`,m.value,`rejected`)},` 批量退回`,8,Fh),P(`button`,{class:`table-action table-action--primary`,disabled:!m.value.length||i.value,onClick:n[63]||=e=>Ue(`registrations`,m.value,`approved`)},` 批量通过`,8,Ih),P(`button`,{class:`table-action`,disabled:!m.value.length,onClick:Ce},` 导出选中项 `,8,Lh)]),P(`div`,Rh,[P(`table`,null,[n[171]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`选择`),P(`th`,null,`考生`),P(`th`,null,`学校班级`),P(`th`,null,`考试 / 科目`),P(`th`,null,`缴费`),P(`th`,null,`状态`),P(`th`,null,`审核`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(O(S).rows,e=>(M(),N(`tr`,{key:e.id},[P(`td`,null,[k(P(`input`,{"onUpdate:modelValue":n[64]||=e=>m.value=e,type:`checkbox`,value:e.id},null,8,zh),[[Cs,m.value]])]),P(`td`,null,[P(`strong`,null,T(e.candidate?.name||e.candidateName),1),P(`small`,null,T(e.registrationNumber),1)]),P(`td`,null,[I(T(e.schoolName),1),P(`small`,null,T(e.gradeName)+` · `+T(e.className),1)]),P(`td`,null,[I(T(e.exam?.name||e.examName),1),P(`small`,null,T(e.subjects?.map(e=>e.name).join(`、`)),1)]),P(`td`,null,[F(U,{value:e.paymentStatus},null,8,[`value`])]),P(`td`,null,[F(U,{value:e.status},null,8,[`value`])]),P(`td`,null,[P(`div`,Bh,[k(P(`input`,{"onUpdate:modelValue":t=>d[e.id]=t,placeholder:`审核意见`},null,8,Vh),[[z,d[e.id]]]),P(`button`,{onClick:t=>ze(e,`rejected`)},` 退回`,8,Hh),P(`button`,{onClick:t=>ze(e,`approved`)},` 通过 `,8,Uh)])])]))),128))])])]),F(dm,{page:O(S).page,"onUpdate:page":n[65]||=e=>O(S).page=e,"page-size":O(S).pageSize,"onUpdate:pageSize":n[66]||=e=>O(S).pageSize=e,total:O(S).total},null,8,[`page`,`page-size`,`total`])])],64)):e.page===`payments`?(M(),N(j,{key:10},[F(rm,{resource:`payments`,label:`缴费名单`,template:!1,importable:!1}),P(`section`,Wh,[P(`article`,null,[n[172]||=P(`span`,null,`报名人数`,-1),P(`strong`,null,T(_.value.length),1)]),P(`article`,null,[n[173]||=P(`span`,null,`待缴费`,-1),P(`strong`,null,T(_.value.length-fe.value),1)]),P(`article`,null,[n[174]||=P(`span`,null,`已缴费`,-1),P(`strong`,null,T(fe.value),1)]),P(`article`,null,[n[175]||=P(`span`,null,`应缴合计`,-1),P(`strong`,null,`¥ `+T(pe.value.toFixed(2)),1)]),P(`article`,null,[n[176]||=P(`span`,null,`已缴合计`,-1),P(`strong`,null,`¥ `+T(me.value.toFixed(2)),1)])]),P(`section`,Gh,[P(`header`,null,[P(`div`,null,[n[177]||=P(`h2`,null,`线下缴费台账`,-1),P(`p`,null,` 筛选结果 `+T(O(C).total)+` / 共 `+T(_.value.length)+` 条 `,1)])]),P(`div`,Kh,[P(`label`,null,[n[178]||=P(`span`,null,`关键词`,-1),k(P(`input`,{"onUpdate:modelValue":n[67]||=e=>O(C).query=e,placeholder:`考生、报名号、考试、科目`},null,512),[[z,O(C).query]])]),P(`label`,null,[n[180]||=P(`span`,null,`缴费状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[68]||=e=>O(C).filters.status=e},[...n[179]||=[P(`option`,{value:``},`全部状态`,-1),P(`option`,{value:`unpaid`},`待缴费`,-1),P(`option`,{value:`paid`},`已缴费`,-1)]],512),[[B,O(C).filters.status]])]),P(`label`,null,[n[182]||=P(`span`,null,`考试`,-1),k(P(`select`,{"onUpdate:modelValue":n[69]||=e=>O(C).filters.exam=e},[n[181]||=P(`option`,{value:``},`全部考试`,-1),(M(!0),N(j,null,A(le.value,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,qh))),128))],512),[[B,O(C).filters.exam]])]),P(`label`,null,[n[184]||=P(`span`,null,`学校`,-1),k(P(`select`,{"onUpdate:modelValue":n[70]||=e=>O(C).filters.school=e},[n[183]||=P(`option`,{value:``},`全部学校`,-1),(M(!0),N(j,null,A(ue.value,e=>(M(),N(`option`,{key:e},T(e),1))),128))],512),[[B,O(C).filters.school]])]),P(`label`,null,[n[186]||=P(`span`,null,`年级`,-1),k(P(`select`,{"onUpdate:modelValue":n[71]||=e=>O(C).filters.grade=e},[n[185]||=P(`option`,{value:``},`全部年级`,-1),(M(!0),N(j,null,A(w.value,e=>(M(),N(`option`,{key:e},T(e),1))),128))],512),[[B,O(C).filters.grade]])]),P(`label`,null,[n[188]||=P(`span`,null,`班级`,-1),k(P(`select`,{"onUpdate:modelValue":n[72]||=e=>O(C).filters.class=e},[n[187]||=P(`option`,{value:``},`全部班级`,-1),(M(!0),N(j,null,A(de.value,e=>(M(),N(`option`,{key:e},T(e),1))),128))],512),[[B,O(C).filters.class]])])]),P(`div`,Jh,[P(`label`,null,[P(`input`,{type:`checkbox`,onChange:n[73]||=e=>xe(h.value,O(C).rows,e=>!0)},null,32),n[189]||=I(` 选择当前页`,-1)]),P(`strong`,null,`已选 `+T(h.value.length)+` 条`,1),e.data.canUpdatePayment===!1?L(``,!0):(M(),N(`button`,{key:0,class:`table-action`,disabled:!h.value.length||i.value,onClick:n[74]||=e=>We(`unpaid`)},` 批量改为待缴费`,8,Yh)),e.data.canUpdatePayment===!1?L(``,!0):(M(),N(`button`,{key:1,class:`table-action table-action--primary`,disabled:!h.value.length||i.value,onClick:n[75]||=e=>We(`paid`)},` 批量标记已缴费`,8,Xh)),P(`button`,{class:`table-action`,disabled:!h.value.length,onClick:we},` 导出选中项 `,8,Zh)]),P(`div`,Qh,[P(`table`,null,[n[190]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`选择`),P(`th`,null,`考生 / 报名号`),P(`th`,null,`学校班级`),P(`th`,null,`考试 / 科目`),P(`th`,null,`应缴金额`),P(`th`,null,`状态`),P(`th`,null,`确认记录`),P(`th`,null,`更新`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(O(C).rows,t=>(M(),N(`tr`,{key:t.id},[P(`td`,null,[k(P(`input`,{"onUpdate:modelValue":n[76]||=e=>h.value=e,type:`checkbox`,value:t.id},null,8,$h),[[Cs,h.value]])]),P(`td`,null,[P(`strong`,null,T(t.candidate?.name||t.candidateName),1),P(`small`,null,T(t.registrationNumber),1)]),P(`td`,null,[I(T(t.schoolName),1),P(`small`,null,T(t.gradeName)+` · `+T(t.className),1)]),P(`td`,null,[I(T(t.exam?.name||t.examName),1),P(`small`,null,T(t.subjects?.map(e=>e.name).join(`、`)),1)]),P(`td`,null,`¥ `+T(Number(t.amountDue||0).toFixed(2)),1),P(`td`,null,[F(U,{value:t.paymentStatus},null,8,[`value`])]),P(`td`,null,[I(T(t.paidAt||`—`),1),P(`small`,null,T(t.paidByName),1)]),P(`td`,null,[e.data.canUpdatePayment!==!1&&!t.exam?.archivedAt?(M(),N(j,{key:0},[P(`button`,{class:`table-action`,onClick:e=>Be(t,`unpaid`)},` 标记待缴`,8,eg),P(`button`,{class:`table-action table-action--primary`,onClick:e=>Be(t,`paid`)},` 确认已缴 `,8,tg)],64)):(M(),N(`span`,ng,`只读`))])]))),128))])])]),F(dm,{page:O(C).page,"onUpdate:page":n[77]||=e=>O(C).page=e,"page-size":O(C).pageSize,"onUpdate:pageSize":n[78]||=e=>O(C).pageSize=e,total:O(C).total},null,8,[`page`,`page-size`,`total`])])],64)):e.page===`security`?(M(),ka(ap,{key:11,status:e.data,onUpdated:n[79]||=e=>r(`reload`)},null,8,[`status`])):L(``,!0)]))}},ig={class:`admin-exam-workspace`},ag={key:0,class:`form-error`},og={key:1,class:`record-panel import-preview-vue`},sg={class:`record-metrics`},cg={class:`table-scroll`},lg={key:0,class:`form-error`},ug={key:1},dg=[`disabled`],fg={class:`form-grid`},pg={class:`form-grid`},mg={class:`exam-subject-builder`},hg={class:`form-grid`},gg=[`onUpdate:modelValue`],_g=[`onUpdate:modelValue`],vg=[`onUpdate:modelValue`],yg=[`onUpdate:modelValue`],bg=[`onUpdate:modelValue`],xg=[`onUpdate:modelValue`],Sg=[`onUpdate:modelValue`],Cg=[`onUpdate:modelValue`],wg=[`onClick`],Tg={class:`form-grid`},Eg=[`disabled`],Dg={class:`admin-exam-grid-vue`},Og={class:`chip-list`},kg={key:0},Ag=[`onClick`],jg=[`onClick`],Mg={key:0,class:`business-form arrangement-console-vue`},Ng={class:`form-grid`},Pg=[`value`],Fg=[`value`],Ig=[`value`],Lg={key:0},Rg={class:`excel-action-bar`},zg=[`href`],Bg={class:`record-panel`},Vg={class:`ledger-toolbar ledger-toolbar--wide`},Hg=[`value`],Ug=[`value`],Wg={class:`ledger-bulk`},Gg=[`disabled`],Kg={class:`table-scroll`},qg=[`value`],Jg={class:`result-exam-picker`},Yg=[`onClick`],Xg={class:`excel-action-bar`},Zg=[`href`],Qg={key:0},$g=[`href`],e_={class:`record-metrics`},t_={key:0,class:`record-panel`},n_={class:`ledger-toolbar`},r_={class:`table-scroll`},i_={key:0,class:`row-decision`},a_=[`onUpdate:modelValue`],o_=[`onClick`],s_=[`onClick`],c_={key:1,class:`record-panel result-entry-vue`},l_=[`value`],u_={class:`table-scroll`},d_=[`onUpdate:modelValue`,`max`],f_={key:2,class:`record-panel result-entry-vue`},p_={class:`ledger-toolbar`},m_={class:`table-scroll`},h_=[`onUpdate:modelValue`],g_={class:`record-panel`},__={class:`ledger-toolbar ledger-toolbar--wide`},v_={class:`ledger-bulk`},y_=[`disabled`],b_=[`disabled`],x_=[`disabled`],S_={class:`table-scroll`},C_=[`value`],w_={key:1,class:`page-state page-state--empty`},T_={__name:`AdminExamWorkspace`,props:{page:{type:String,required:!0},data:{type:Object,default:()=>({})}},emits:[`reload`],setup(e,{emit:t}){let n=e,r=t,i=D(!1),a=D(``),o=D(null),s=D(null),c=D({exams:H.state.publicData.exams||[],results:[],appeals:[]}),l=D(``),u=D(``),d=D([]),f=D([]),p=E({}),m=E({}),h=E({}),g=D(1),_=D({page:1,totalPages:1,total:0}),v=D(1),y=D({page:1,totalPages:1,total:0}),b=D(1),x=D({page:1,totalPages:1,total:0}),S=D(``),C=D(`all`),ee=D(50),te=D(``),ne=D(`all`),re=D(50),ie=D(``),ae=D(`all`),oe=D(50),se=D([]),ce=D([]),le=new Map,ue=E({examId:``,mixingScope:`school`,numberRuleId:``,seed:``}),w=E({name:``,code:``,description:``,registrationStart:``,registrationEnd:``,examStart:``,examEnd:``,admitDownloadStart:``,admitDownloadEnd:``,passPolicy:`rank_percent`,passValue:60,location:``,status:`draft`,subjects:[]}),de=R(()=>c.value.exams?.find(e=>e.id===l.value)),fe=R(()=>de.value?.subjects?.find(e=>e.id===u.value)),pe=pm(()=>n.data.registrations||[],{filters:{exam:(e,t)=>(e.exam?.id||e.examId)===t,school:(e,t)=>(e.candidate?.school||e.schoolName)===t,status:(e,t)=>t===`arranged`?!!e.admitCard?.number:!e.admitCard?.number,center:(e,t)=>(e.admitCard?.centerId||e.admitCard?.testCenter)===t},searchText:e=>[e.candidate?.name,e.candidate?.candidateNumber,e.registrationNumber,e.exam?.name,e.admitCard?.number,e.admitCard?.testCenter,...(e.admitCard?.assignments||[]).map(e=>`${e.subjectName} ${e.roomName||e.room} ${e.seat}`)].join(` `)}),me=R(()=>[...new Set((n.data.registrations||[]).map(e=>e.candidate?.school||e.schoolName).filter(Boolean))]),he=R(()=>{let e=new Map;for(let t of n.data.registrations||[]){let n=t.admitCard?.centerId||t.admitCard?.testCenter;n&&e.set(n,t.admitCard?.testCenter||n)}return[...e].map(([e,t])=>({id:e,name:t}))});function ge(e,t){let n=t.map(e=>e.id),r=Array.isArray(e)?e:e.value,i=n.length>0&&n.every(e=>r.includes(e))?r.filter(e=>!n.includes(e)):[...new Set([...r,...n])];Array.isArray(e)?e.splice(0,e.length,...i):e.value=i}function _e(){if(!ce.value.length)return;let e=document.createElement(`a`);e.href=`/api/admin/admission-exports/info?examId=${encodeURIComponent(pe.filters.exam||ue.examId)}&ids=${encodeURIComponent(ce.value.join(`,`))}`,e.click()}function ve(){Dm(`results`,se.value,{examId:l.value})}function ye(){for(let e of c.value.results||[])se.value.includes(e.id)&&le.set(e.id,e)}function xe(){return ye(),se.value.map(e=>le.get(e)).filter(Boolean)}function Se(){return{name:``,fullScore:100,passRule:`fixed_score`,passValue:60,date:``,start:`09:00`,end:`11:00`,fee:0}}function Ce(){w.subjects.push(Se())}async function we(e,t,n=!0){i.value=!0,a.value=``;try{let i=await e();return t&&Wl.notify(t),n&&r(`reload`),i}catch(e){return a.value=e.message,null}finally{i.value=!1}}function Te(){let e={...w,subjects:w.subjects.map(e=>({...e,fullScore:Number(e.fullScore),passValue:Number(e.passValue),fee:Number(e.fee)}))};for(let t of[`registrationStart`,`registrationEnd`,`examStart`,`examEnd`,`admitDownloadStart`,`admitDownloadEnd`])e[t]=new Date(e[t]).toISOString();e.passValue=[`subject_scores`,`none`].includes(e.passPolicy)?0:Number(e.passValue),we(()=>V(`/api/admin/exams`,{method:`POST`,body:e}),`考试计划已创建`)}function Ee(e){we(()=>V(`/api/admin/exams/${e.id}`,{method:`PATCH`,body:{status:e.status===`published`?`draft`:`published`}}),e.status===`published`?`考试已撤回为草稿`:`考试已发布`)}function De(e){window.confirm(`确认归档“${e.name}”并永久锁定成绩吗?`)&&we(()=>V(`/api/admin/exams/${e.id}/archive`,{method:`POST`}),`考试已归档`)}function Oe(e){e&&(ue.examId=e.id,pe.filters.exam=e.id,ue.seed||=e.code,ue.numberRuleId||=n.data.rules?.[0]?.id||``)}async function ke(){o.value=await we(()=>V(`/api/admin/exams/${ue.examId}/admission-arrangement/preview`,{method:`POST`,body:ue}),`容量与档案预检完成`,!1)}function Ae(){window.confirm(`确认生成或替换本场考试全部准考证编排吗?`)&&we(()=>V(`/api/admin/exams/${ue.examId}/admission-arrangement`,{method:`POST`,body:ue}),`整场准考证编排已生成`)}async function je(){if(l.value){ye(),i.value=!0,a.value=``;try{let e=await V(`/api/admin/results/summary?examId=${encodeURIComponent(l.value)}`);c.value={...e},u.value||=de.value?.subjects?.[0]?.id||``;let t=new URLSearchParams({examId:l.value,page:String(g.value),pageSize:String(ee.value),status:C.value,query:S.value}),n=new URLSearchParams({examId:l.value,subjectId:u.value,page:String(v.value),pageSize:String(re.value),status:ne.value,query:te.value}),r=new URLSearchParams({examId:l.value,mode:`feature`,page:String(b.value),pageSize:String(oe.value),status:ae.value,query:ie.value}),[i,a,o]=await Promise.all([V(`/api/admin/results?${t}`),u.value?V(`/api/admin/results/roster?${n}`):Promise.resolve({items:[],pagination:{page:1,totalPages:1,total:0}}),V(`/api/admin/results/roster?${r}`)]);c.value.results=i.items||[],d.value=a.items||[],f.value=o.items||[],_.value=i.pagination||{page:1,totalPages:1,total:0},y.value=a.pagination||{page:1,totalPages:1,total:0},x.value=o.pagination||{page:1,totalPages:1,total:0};for(let e of d.value)p[e.id]=e.result?.score??``;for(let e of f.value)m[e.id]=Number(e.featureScore||0)}catch(e){a.value=e.message}finally{i.value=!1}}}function Me(e){l.value=e.id,u.value=``,g.value=1,v.value=1,b.value=1,se.value=[],le.clear(),je()}async function Ne(){v.value=1,await je()}async function Pe(e){g.value=e,await je()}async function Fe(e){v.value=e,await je()}async function Ie(e){b.value=e,await je()}async function Le(e){ee.value=e,g.value=1,await je()}async function Re(e){re.value=e,v.value=1,await je()}async function ze(e){oe.value=e,b.value=1,await je()}async function Be(){g.value=1,await je()}async function Ve(){v.value=1,await je()}async function He(){b.value=1,await je()}function Ue(e){let t=d.value.filter(e=>p[e.id]!==``).map(e=>({registrationId:e.id,score:Number(p[e.id])}));if(!t.length){a.value=`请至少录入一条成绩`;return}e&&!window.confirm(`确认发布当前名单 ${t.length} 条成绩吗?`)||we(()=>V(`/api/admin/results/bulk`,{method:`POST`,body:{examId:l.value,subjectId:u.value,published:e,rows:t}}),e?`成绩已发布`:`成绩已暂存`,!1).then(je)}async function We(e){let t=xe();if(!(!t.length||!window.confirm(`确认将选中的 ${t.length} 条成绩统一改为“${e?`已发布`:`未发布`}”吗?`))){i.value=!0,a.value=``;try{let n=new Map;for(let e of t)n.set(e.subjectId,[...n.get(e.subjectId)||[],e]);for(let[t,r]of n)await V(`/api/admin/results/bulk`,{method:`POST`,body:{examId:l.value,subjectId:t,published:e,rows:r.map(e=>({registrationId:e.registrationId,score:e.score}))}});Wl.notify(`已更新 ${t.length} 条成绩状态`),se.value=[],le.clear(),await je()}catch(e){a.value=e.message}finally{i.value=!1}}}function Ge(){let e=f.value.map(e=>({registrationId:e.id,featureScore:Number(m[e.id]||0)}));we(()=>V(`/api/admin/feature-scores/bulk`,{method:`POST`,body:{examId:l.value,rows:e}}),`特征分已保存`,!1).then(je)}function Ke(){we(()=>V(`/api/admin/results/cache/refresh`,{method:`POST`}),`成绩缓存已刷新`,!1)}function qe(e,t){let n=e.currentStep>=(e.steps?.length||1),r=e.result?.score;if(t===`approved`&&n){let t=window.prompt(`请输入复核后的成绩(满分 ${e.result?.fullScore})`,String(e.result?.score??``));if(t==null)return;r=Number(t)}we(()=>V(`/api/admin/score-appeals/${e.result.id}`,{method:`PATCH`,body:{status:t,reviewedScore:r,reviewNote:h[e.id]||``}}),t===`approved`?`成绩复议已处理`:`成绩复议已退回`,!1).then(je)}async function Je(e){let t=e.target.files?.[0];t&&(s.value=await we(()=>V(`/api/admin/excel/results`,{method:`POST`,headers:{"Content-Type":`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`},body:t}),`Excel 已解析,请核对预览后确认写入`,!1),e.target.value=``)}async function Ye(){let e=s.value;if(!e||e.summary?.invalid){a.value=`请先修正 Excel 中的无效行并重新上传`;return}window.confirm(`确认写入 ${e.summary?.valid||0} 条成绩吗?`)&&await we(()=>V(`/api/admin/results/import`,{method:`POST`,body:{rows:e.rows}}),`成绩已原子批量写入`,!1)&&(s.value=null,await je())}return Hr(()=>{if(n.page===`exams`&&!w.subjects.length&&Ce(),n.page===`admit`){let e=n.data.exams?.find(e=>!e.archivedAt);e&&Oe(e)}}),(t,n)=>(M(),N(`div`,ig,[a.value?(M(),N(`div`,ag,T(a.value),1)):L(``,!0),e.page===`results`&&s.value?(M(),N(`section`,og,[P(`header`,null,[n[42]||=P(`div`,null,[P(`h2`,null,`成绩 Excel 写入预览`),P(`p`,null,`预览不会修改数据库;只有全部行校验通过后才能确认写入。`)],-1),P(`button`,{class:`app-button`,type:`button`,onClick:n[0]||=e=>s.value=null},` 关闭预览 `)]),P(`section`,sg,[P(`article`,null,[n[43]||=P(`span`,null,`总行数`,-1),P(`strong`,null,T(s.value.summary?.total||0),1)]),P(`article`,null,[n[44]||=P(`span`,null,`有效`,-1),P(`strong`,null,T(s.value.summary?.valid||0),1)]),P(`article`,null,[n[45]||=P(`span`,null,`无效`,-1),P(`strong`,null,T(s.value.summary?.invalid||0),1)]),P(`article`,null,[n[46]||=P(`span`,null,`将发布`,-1),P(`strong`,null,T(s.value.summary?.publish||0),1)])]),P(`div`,cg,[P(`table`,null,[n[47]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`Excel 行`),P(`th`,null,`考生`),P(`th`,null,`考试 / 科目`),P(`th`,null,`成绩`),P(`th`,null,`模式`),P(`th`,null,`校验`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(s.value.rows,e=>(M(),N(`tr`,{key:e.sourceRow},[P(`td`,null,T(e.sourceRow),1),P(`td`,null,[I(T(e.candidateName),1),P(`small`,null,T(e.candidateNumber),1)]),P(`td`,null,[I(T(e.examName),1),P(`small`,null,T(e.subjectName),1)]),P(`td`,null,T(e.score)+` / `+T(e.fullScore),1),P(`td`,null,T(e.mode===`create`?`新增`:`更新`)+` · `+T(e.published?`发布`:`暂存`),1),P(`td`,null,[e.errors?.length?(M(),N(`span`,lg,T(e.errors.join(`;`)),1)):(M(),N(`span`,ug,`通过`))])]))),128))])])]),P(`footer`,null,[P(`button`,{class:`app-button app-button--primary`,type:`button`,disabled:!!s.value.summary?.invalid||i.value,onClick:Ye},` 确认原子批量写入 `,8,dg)])])):L(``,!0),e.page===`exams`?(M(),N(j,{key:2},[P(`form`,{class:`business-form exam-builder-vue`,onSubmit:As(Te,[`prevent`])},[n[73]||=P(`header`,null,[P(`div`,null,[P(`p`,null,`NEW EXAM`),P(`h2`,null,`创建考试与科目`),P(`span`,null,`先定义科目计分,再选择整场合格判定方式。`)])],-1),P(`div`,fg,[P(`label`,null,[n[48]||=P(`span`,null,`考试名称`,-1),k(P(`input`,{"onUpdate:modelValue":n[1]||=e=>w.name=e,required:``},null,512),[[z,w.name]])]),P(`label`,null,[n[49]||=P(`span`,null,`考试代码`,-1),k(P(`input`,{"onUpdate:modelValue":n[2]||=e=>w.code=e},null,512),[[z,w.code]])])]),P(`label`,null,[n[50]||=P(`span`,null,`考试说明`,-1),k(P(`textarea`,{"onUpdate:modelValue":n[3]||=e=>w.description=e,rows:`2`},null,512),[[z,w.description]])]),P(`div`,pg,[P(`label`,null,[n[51]||=P(`span`,null,`报名开始`,-1),k(P(`input`,{"onUpdate:modelValue":n[4]||=e=>w.registrationStart=e,type:`datetime-local`,required:``},null,512),[[z,w.registrationStart]])]),P(`label`,null,[n[52]||=P(`span`,null,`报名结束`,-1),k(P(`input`,{"onUpdate:modelValue":n[5]||=e=>w.registrationEnd=e,type:`datetime-local`,required:``},null,512),[[z,w.registrationEnd]])]),P(`label`,null,[n[53]||=P(`span`,null,`考试开始`,-1),k(P(`input`,{"onUpdate:modelValue":n[6]||=e=>w.examStart=e,type:`datetime-local`,required:``},null,512),[[z,w.examStart]])]),P(`label`,null,[n[54]||=P(`span`,null,`考试结束`,-1),k(P(`input`,{"onUpdate:modelValue":n[7]||=e=>w.examEnd=e,type:`datetime-local`,required:``},null,512),[[z,w.examEnd]])]),P(`label`,null,[n[55]||=P(`span`,null,`准考证下载开始`,-1),k(P(`input`,{"onUpdate:modelValue":n[8]||=e=>w.admitDownloadStart=e,type:`datetime-local`,required:``},null,512),[[z,w.admitDownloadStart]])]),P(`label`,null,[n[56]||=P(`span`,null,`准考证下载结束`,-1),k(P(`input`,{"onUpdate:modelValue":n[9]||=e=>w.admitDownloadEnd=e,type:`datetime-local`,required:``},null,512),[[z,w.admitDownloadEnd]])])]),P(`section`,mg,[P(`header`,null,[n[57]||=P(`strong`,null,`考试科目`,-1),P(`button`,{type:`button`,onClick:Ce},`+ 添加科目`)]),(M(!0),N(j,null,A(w.subjects,(e,t)=>(M(),N(`article`,{key:t},[P(`div`,hg,[P(`label`,null,[n[58]||=P(`span`,null,`科目名称`,-1),k(P(`input`,{"onUpdate:modelValue":t=>e.name=t,required:``},null,8,gg),[[z,e.name]])]),P(`label`,null,[n[59]||=P(`span`,null,`满分`,-1),k(P(`input`,{"onUpdate:modelValue":t=>e.fullScore=t,type:`number`,min:`0.5`,step:`0.5`,required:``},null,8,_g),[[z,e.fullScore]])]),P(`label`,null,[n[61]||=P(`span`,null,`及格线方式`,-1),k(P(`select`,{"onUpdate:modelValue":t=>e.passRule=t},[...n[60]||=[P(`option`,{value:`fixed_score`},`固定分`,-1),P(`option`,{value:`rank_percent`},`排名比例`,-1),P(`option`,{value:`none`},`不设单科线`,-1)]],8,vg),[[B,e.passRule]])]),P(`label`,null,[n[62]||=P(`span`,null,`规则数值`,-1),k(P(`input`,{"onUpdate:modelValue":t=>e.passValue=t,type:`number`,min:`0`},null,8,yg),[[z,e.passValue]])]),P(`label`,null,[n[63]||=P(`span`,null,`日期`,-1),k(P(`input`,{"onUpdate:modelValue":t=>e.date=t,type:`date`,required:``},null,8,bg),[[z,e.date]])]),P(`label`,null,[n[64]||=P(`span`,null,`开始`,-1),k(P(`input`,{"onUpdate:modelValue":t=>e.start=t,type:`time`,required:``},null,8,xg),[[z,e.start]])]),P(`label`,null,[n[65]||=P(`span`,null,`结束`,-1),k(P(`input`,{"onUpdate:modelValue":t=>e.end=t,type:`time`,required:``},null,8,Sg),[[z,e.end]])]),P(`label`,null,[n[66]||=P(`span`,null,`费用`,-1),k(P(`input`,{"onUpdate:modelValue":t=>e.fee=t,type:`number`,min:`0`,step:`0.01`},null,8,Cg),[[z,e.fee]])])]),P(`button`,{type:`button`,onClick:e=>w.subjects.splice(t,1)},` 移除科目 `,8,wg)]))),128))]),P(`div`,Tg,[P(`label`,null,[n[68]||=P(`span`,null,`整场合格判定`,-1),k(P(`select`,{"onUpdate:modelValue":n[10]||=e=>w.passPolicy=e},[...n[67]||=[La(``,5)]],512),[[B,w.passPolicy]])]),P(`label`,null,[n[69]||=P(`span`,null,`策略数值`,-1),k(P(`input`,{"onUpdate:modelValue":n[11]||=e=>w.passValue=e,type:`number`,min:`0`},null,512),[[z,w.passValue]])]),P(`label`,null,[n[70]||=P(`span`,null,`考点说明`,-1),k(P(`input`,{"onUpdate:modelValue":n[12]||=e=>w.location=e},null,512),[[z,w.location]])]),P(`label`,null,[n[72]||=P(`span`,null,`创建状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[13]||=e=>w.status=e},[...n[71]||=[P(`option`,{value:`draft`},`草稿`,-1),P(`option`,{value:`published`},`立即发布`,-1)]],512),[[B,w.status]])])]),P(`button`,{class:`app-button app-button--primary`,disabled:i.value},` 创建考试计划 `,8,Eg)],32),P(`section`,Dg,[(M(!0),N(j,null,A(e.data.exams,e=>(M(),N(`article`,{key:e.id,class:`exam-apply-card`},[P(`header`,null,[P(`span`,null,T(e.code),1),F(U,{value:e.archivedAt?`archived`:e.status},null,8,[`value`])]),P(`h2`,null,T(e.name),1),P(`p`,null,T(e.description),1),P(`dl`,null,[P(`div`,null,[n[74]||=P(`dt`,null,`报名`,-1),P(`dd`,null,T(O(iu)(e.registrationStart,e.registrationEnd)),1)]),P(`div`,null,[n[75]||=P(`dt`,null,`考试`,-1),P(`dd`,null,T(O(iu)(e.examStart,e.examEnd)),1)]),P(`div`,null,[n[76]||=P(`dt`,null,`合格规则`,-1),P(`dd`,null,T(O(su)(e)),1)])]),P(`div`,Og,[(M(!0),N(j,null,A(e.subjects,e=>(M(),N(`span`,{key:e.id},[I(T(e.name),1),P(`small`,null,`满分 `+T(e.fullScore)+` · `+T(O(ou)(e.fee)),1)]))),128))]),P(`footer`,null,[P(`span`,null,T(e.registrationCount||0)+` 人报名`,1),e.archivedAt?L(``,!0):(M(),N(`div`,kg,[P(`button`,{class:`table-action`,onClick:t=>Ee(e)},T(e.status===`published`?`撤回草稿`:`发布考试`),9,Ag),P(`button`,{class:`table-action`,onClick:t=>De(e)},` 归档锁定 `,8,jg)]))])]))),128))])],64)):e.page===`admit`?(M(),N(j,{key:3},[e.data.canArrange?(M(),N(`section`,Mg,[n[81]||=P(`p`,null,`ADMIT ARRANGEMENT`,-1),n[82]||=P(`h2`,null,`整场准考证编排`,-1),P(`div`,Ng,[P(`label`,null,[n[77]||=P(`span`,null,`考试`,-1),k(P(`select`,{"onUpdate:modelValue":n[14]||=e=>ue.examId=e,onChange:n[15]||=t=>Oe(e.data.exams.find(e=>e.id===ue.examId))},[(M(!0),N(j,null,A(e.data.exams,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name)+`(通过 `+T(e.approvedCount)+` / 已编排 `+T(e.arrangedCount)+`) `,9,Pg))),128))],544),[[B,ue.examId]])]),P(`label`,null,[n[78]||=P(`span`,null,`混编范围`,-1),k(P(`select`,{"onUpdate:modelValue":n[16]||=e=>ue.mixingScope=e},[(M(!0),N(j,null,A(e.data.mixingScopes,e=>(M(),N(`option`,{key:e.code,value:e.code},T(e.name),9,Fg))),128))],512),[[B,ue.mixingScope]])]),P(`label`,null,[n[79]||=P(`span`,null,`号码规则`,-1),k(P(`select`,{"onUpdate:modelValue":n[17]||=e=>ue.numberRuleId=e},[(M(!0),N(j,null,A(e.data.rules,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,Ig))),128))],512),[[B,ue.numberRuleId]])]),P(`label`,null,[n[80]||=P(`span`,null,`稳定编排种子`,-1),k(P(`input`,{"onUpdate:modelValue":n[18]||=e=>ue.seed=e},null,512),[[z,ue.seed]])])]),P(`div`,null,[P(`button`,{class:`app-button`,onClick:ke},`仅预检`),P(`button`,{class:`app-button app-button--primary`,onClick:Ae},` 生成整场编排 `)]),o.value?(M(),N(`pre`,Lg,T(JSON.stringify(o.value,null,2)),1)):L(``,!0)])):L(``,!0),P(`div`,Rg,[(M(!0),N(j,null,A(e.data.canExportCenterMaterials?[`admit-cards`,`info`,`center-materials`]:[`admit-cards`,`info`],e=>(M(),N(`a`,{key:e,href:`/api/admin/admission-exports/${e}?examId=${encodeURIComponent(ue.examId)}`},T(e===`admit-cards`?`批量下载准考证`:e===`info`?`导出准考证信息`:`导出考点材料`),9,zg))),128))]),P(`section`,Bg,[P(`header`,null,[P(`div`,null,[n[83]||=P(`h2`,null,`准考证编排台账`,-1),P(`p`,null,` 筛选结果 `+T(O(pe).total)+` / 共 `+T(e.data.registrations?.length||0)+` 人 `,1)])]),P(`div`,Vg,[P(`label`,null,[n[84]||=P(`span`,null,`关键词`,-1),k(P(`input`,{"onUpdate:modelValue":n[19]||=e=>O(pe).query=e,placeholder:`考生、报名号、准考证号、考点、考场`},null,512),[[z,O(pe).query]])]),P(`label`,null,[n[86]||=P(`span`,null,`考试`,-1),k(P(`select`,{"onUpdate:modelValue":n[20]||=e=>O(pe).filters.exam=e},[n[85]||=P(`option`,{value:``},`全部考试`,-1),(M(!0),N(j,null,A(e.data.exams,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,Hg))),128))],512),[[B,O(pe).filters.exam]])]),P(`label`,null,[n[88]||=P(`span`,null,`生源学校`,-1),k(P(`select`,{"onUpdate:modelValue":n[21]||=e=>O(pe).filters.school=e},[n[87]||=P(`option`,{value:``},`全部学校`,-1),(M(!0),N(j,null,A(me.value,e=>(M(),N(`option`,{key:e},T(e),1))),128))],512),[[B,O(pe).filters.school]])]),P(`label`,null,[n[90]||=P(`span`,null,`编排状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[22]||=e=>O(pe).filters.status=e},[...n[89]||=[P(`option`,{value:``},`全部状态`,-1),P(`option`,{value:`arranged`},`已编排`,-1),P(`option`,{value:`pending`},`待编排`,-1)]],512),[[B,O(pe).filters.status]])]),P(`label`,null,[n[92]||=P(`span`,null,`固定考点`,-1),k(P(`select`,{"onUpdate:modelValue":n[23]||=e=>O(pe).filters.center=e},[n[91]||=P(`option`,{value:``},`全部考点`,-1),(M(!0),N(j,null,A(he.value,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,Ug))),128))],512),[[B,O(pe).filters.center]])]),P(`button`,{class:`table-action`,onClick:n[24]||=(...e)=>O(pe).clear&&O(pe).clear(...e)},` 清除筛选 `)]),P(`div`,Wg,[P(`label`,null,[P(`input`,{type:`checkbox`,onChange:n[25]||=e=>ge(ce.value,O(pe).rows)},null,32),n[93]||=I(` 选择当前页`,-1)]),P(`strong`,null,`已选 `+T(ce.value.length)+` 人`,1),n[94]||=P(`span`,null,`选择会跨页保留`,-1),P(`button`,{disabled:!ce.value.length,onClick:_e},` 导出选中项 XLSX `,8,Gg)]),P(`div`,Kg,[P(`table`,null,[n[95]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`选择`),P(`th`,null,`考生`),P(`th`,null,`考试`),P(`th`,null,`准考证号`),P(`th`,null,`固定考点`),P(`th`,null,`分科考场与座位`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(O(pe).rows,e=>(M(),N(`tr`,{key:e.id},[P(`td`,null,[k(P(`input`,{"onUpdate:modelValue":n[26]||=e=>ce.value=e,type:`checkbox`,value:e.id},null,8,qg),[[Cs,ce.value]])]),P(`td`,null,[I(T(e.candidate?.name),1),P(`small`,null,T(e.candidate?.school),1)]),P(`td`,null,T(e.exam?.name),1),P(`td`,null,T(e.admitCard?.number||`待编排`),1),P(`td`,null,[I(T(e.admitCard?.testCenter||`—`),1),P(`small`,null,T(e.admitCard?.centerAddress),1)]),P(`td`,null,[(M(!0),N(j,null,A(e.admitCard?.assignments,e=>(M(),N(`span`,{key:e.subjectId,class:`table-stack`},T(e.subjectName)+` · `+T(e.roomName||e.room)+` · 座位 `+T(e.seat),1))),128))])]))),128))])])]),F(dm,{page:O(pe).page,"onUpdate:page":n[27]||=e=>O(pe).page=e,"page-size":O(pe).pageSize,"onUpdate:pageSize":n[28]||=e=>O(pe).pageSize=e,total:O(pe).total},null,8,[`page`,`page-size`,`total`])])],64)):e.page===`results`?(M(),N(j,{key:4},[P(`section`,Jg,[(M(!0),N(j,null,A(c.value.exams,e=>(M(),N(`button`,{key:e.id,class:be({active:l.value===e.id}),onClick:t=>Me(e)},[P(`span`,null,T(e.code),1),P(`strong`,null,T(e.name),1),P(`small`,null,T(e.archivedAt?`已归档锁定`:`${e.registrationCount||0} 人报名`),1)],10,Yg))),128))]),de.value?(M(),N(j,{key:0},[P(`div`,Xg,[P(`a`,{href:`/api/admin/excel/results?template=1&examId=${l.value}`},`下载成绩名单模板`,8,Zg),O(H).state.user?.adminLevel===`super`?(M(),N(`label`,Qg,[n[96]||=I(`导入成绩 Excel`,-1),P(`input`,{type:`file`,accept:`.xlsx`,hidden:``,onChange:Je},null,32)])):L(``,!0),P(`a`,{href:`/api/admin/excel/results?examId=${l.value}`},`导出本场成绩`,8,$g),P(`button`,{class:`table-action`,onClick:Ke},` 刷新成绩缓存 `)]),P(`section`,e_,[P(`article`,null,[n[97]||=P(`span`,null,`报名考生`,-1),P(`strong`,null,T(de.value.registrationCount||0),1)]),P(`article`,null,[n[98]||=P(`span`,null,`已录科次`,-1),P(`strong`,null,T(de.value.scored||0)+` / `+T(de.value.enrolledSubjects||0),1)]),P(`article`,null,[n[99]||=P(`span`,null,`已发布`,-1),P(`strong`,null,T(de.value.published||0),1)]),P(`article`,null,[n[100]||=P(`span`,null,`成绩出齐`,-1),P(`strong`,null,T(de.value.complete||0),1)])]),c.value.appeals?.length?(M(),N(`section`,t_,[P(`header`,null,[P(`div`,null,[n[101]||=P(`h2`,null,`成绩复议审批`,-1),P(`p`,null,T(c.value.appeals.filter(e=>e.status===`pending`).length)+` 项待处理 `,1)])]),P(`div`,n_,[P(`label`,null,[n[102]||=P(`span`,null,`名单搜索`,-1),k(P(`input`,{"onUpdate:modelValue":n[29]||=e=>te.value=e,placeholder:`考生、报名号、学校、准考证号`,onKeyup:Ms(Ve,[`enter`])},null,544),[[z,te.value]])]),P(`label`,null,[n[104]||=P(`span`,null,`录入状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[30]||=e=>ne.value=e},[...n[103]||=[P(`option`,{value:`all`},`全部状态`,-1),P(`option`,{value:`pending`},`未录入`,-1),P(`option`,{value:`draft`},`未发布`,-1),P(`option`,{value:`published`},`已发布`,-1)]],512),[[B,ne.value]])]),P(`button`,{class:`table-action`,onClick:Ve},` 应用筛选 `)]),P(`div`,r_,[P(`table`,null,[n[105]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`考生 / 科目`),P(`th`,null,`当前成绩`),P(`th`,null,`申请理由`),P(`th`,null,`流程`),P(`th`,null,`处理`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(c.value.appeals,e=>(M(),N(`tr`,{key:e.id},[P(`td`,null,[I(T(e.result?.candidateName),1),P(`small`,null,T(e.result?.candidateNumber)+` · `+T(e.result?.subjectName),1)]),P(`td`,null,T(e.result?.score)+` / `+T(e.result?.fullScore),1),P(`td`,null,T(e.reason),1),P(`td`,null,[F(U,{value:e.status},null,8,[`value`]),P(`small`,null,T(e.currentStepDetail?.name),1)]),P(`td`,null,[e.status===`pending`?(M(),N(`div`,i_,[k(P(`input`,{"onUpdate:modelValue":t=>h[e.id]=t,placeholder:`复议意见`},null,8,a_),[[z,h[e.id]]]),P(`button`,{onClick:t=>qe(e,`rejected`)},` 退回`,8,o_),P(`button`,{onClick:t=>qe(e,`approved`)},` 通过 `,8,s_)])):L(``,!0)])]))),128))])])])])):L(``,!0),O(H).state.user?.adminLevel===`super`&&!de.value.archivedAt?(M(),N(`section`,c_,[P(`header`,null,[n[106]||=P(`div`,null,[P(`h2`,null,`按科目批量录入`),P(`p`,null,`成绩须在 0 到科目满分之间。`)],-1),k(P(`select`,{"onUpdate:modelValue":n[31]||=e=>u.value=e,onChange:Ne},[(M(!0),N(j,null,A(de.value.subjects,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name)+` · 满分 `+T(e.fullScore),9,l_))),128))],544),[[B,u.value]])]),P(`div`,u_,[P(`table`,null,[n[107]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`考生`),P(`th`,null,`报名号`),P(`th`,null,`准考证号`),P(`th`,null,`成绩`),P(`th`,null,`状态`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(d.value,e=>(M(),N(`tr`,{key:e.id},[P(`td`,null,[I(T(e.candidateName),1),P(`small`,null,T(e.schoolName)+` · `+T(e.className),1)]),P(`td`,null,T(e.candidateNumber),1),P(`td`,null,T(e.admitCard?.number||`待编排`),1),P(`td`,null,[k(P(`input`,{"onUpdate:modelValue":t=>p[e.id]=t,type:`number`,min:`0`,max:fe.value?.fullScore,step:`0.5`},null,8,d_),[[z,p[e.id]]])]),P(`td`,null,[F(U,{value:e.result?.published?`published`:e.result?`draft`:`pending`},null,8,[`value`])])]))),128))])])]),F(dm,{page:y.value.page,"page-size":re.value,total:y.value.total,"total-pages":y.value.totalPages,"onUpdate:page":Fe,"onUpdate:pageSize":Re},null,8,[`page`,`page-size`,`total`,`total-pages`]),P(`footer`,null,[P(`button`,{class:`app-button`,onClick:n[32]||=e=>Ue(!1)},` 暂存当前页`),P(`button`,{class:`app-button app-button--primary`,onClick:n[33]||=e=>Ue(!0)},` 发布当前页 `)])])):L(``,!0),O(H).state.user?.adminLevel===`super`&&!de.value.archivedAt?(M(),N(`section`,f_,[P(`header`,null,[n[108]||=P(`div`,null,[P(`h2`,null,`特征分登记`),P(`p`,null,`普通类别不计,特长生类别投档时加入文化课总分。`)],-1),P(`button`,{class:`app-button app-button--primary`,onClick:Ge},` 保存当前页特征分 `)]),P(`div`,p_,[P(`label`,null,[n[109]||=P(`span`,null,`名单搜索`,-1),k(P(`input`,{"onUpdate:modelValue":n[34]||=e=>ie.value=e,placeholder:`考生、报名号、学校、特长项目`,onKeyup:Ms(He,[`enter`])},null,544),[[z,ie.value]])]),P(`label`,null,[n[111]||=P(`span`,null,`登记状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[35]||=e=>ae.value=e},[...n[110]||=[P(`option`,{value:`all`},`全部状态`,-1),P(`option`,{value:`modified`},`已登记`,-1),P(`option`,{value:`pending`},`未登记`,-1),P(`option`,{value:`specialty`},`特长生`,-1)]],512),[[B,ae.value]])]),P(`button`,{class:`table-action`,onClick:He},` 应用筛选 `)]),P(`div`,m_,[P(`table`,null,[n[112]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`考生`),P(`th`,null,`报名号`),P(`th`,null,`特长资格`),P(`th`,null,`特征分`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(f.value,e=>(M(),N(`tr`,{key:e.id},[P(`td`,null,T(e.candidateName),1),P(`td`,null,T(e.candidateNumber),1),P(`td`,null,T(e.specialtyLabel||`普通生`),1),P(`td`,null,[k(P(`input`,{"onUpdate:modelValue":t=>m[e.id]=t,type:`number`,min:`0`,max:`1000`},null,8,h_),[[z,m[e.id]]])])]))),128))])])]),F(dm,{page:x.value.page,"page-size":oe.value,total:x.value.total,"total-pages":x.value.totalPages,"onUpdate:page":Ie,"onUpdate:pageSize":ze},null,8,[`page`,`page-size`,`total`,`total-pages`])])):L(``,!0),P(`section`,g_,[P(`header`,null,[P(`div`,null,[n[113]||=P(`h2`,null,`本场成绩台账`,-1),P(`p`,null,T(_.value.total||0)+` 条`,1)])]),P(`div`,__,[P(`label`,null,[n[114]||=P(`span`,null,`关键词`,-1),k(P(`input`,{"onUpdate:modelValue":n[36]||=e=>S.value=e,placeholder:`考生、报名号、学校、科目`,onKeyup:Ms(Be,[`enter`])},null,544),[[z,S.value]])]),P(`label`,null,[n[116]||=P(`span`,null,`成绩状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[37]||=e=>C.value=e},[...n[115]||=[La(``,5)]],512),[[B,C.value]])]),P(`button`,{class:`table-action`,onClick:Be},` 应用筛选 `)]),P(`div`,v_,[P(`label`,null,[P(`input`,{type:`checkbox`,onChange:n[38]||=e=>ge(se.value,c.value.results)},null,32),n[117]||=I(` 选择当前页`,-1)]),P(`strong`,null,`已选 `+T(se.value.length)+` 条`,1),O(H).state.user?.adminLevel===`super`&&!de.value.archivedAt?(M(),N(`button`,{key:0,disabled:!se.value.length||i.value,onClick:n[39]||=e=>We(!1)},` 批量改为未发布`,8,y_)):L(``,!0),O(H).state.user?.adminLevel===`super`&&!de.value.archivedAt?(M(),N(`button`,{key:1,disabled:!se.value.length||i.value,onClick:n[40]||=e=>We(!0)},` 批量发布`,8,b_)):L(``,!0),P(`button`,{disabled:!se.value.length,onClick:ve},` 导出选中项 XLSX `,8,x_)]),P(`div`,S_,[P(`table`,null,[n[118]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`选择`),P(`th`,null,`考生`),P(`th`,null,`科目`),P(`th`,null,`成绩`),P(`th`,null,`排名 / 等级`),P(`th`,null,`达线`),P(`th`,null,`发布`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(c.value.results,e=>(M(),N(`tr`,{key:e.id},[P(`td`,null,[k(P(`input`,{"onUpdate:modelValue":n[41]||=e=>se.value=e,type:`checkbox`,value:e.id},null,8,C_),[[Cs,se.value]])]),P(`td`,null,[I(T(e.candidateName),1),P(`small`,null,T(e.candidateNumber),1)]),P(`td`,null,T(e.subjectName),1),P(`td`,null,[P(`strong`,null,T(e.score)+` / `+T(e.fullScore),1)]),P(`td`,null,` 第 `+T(e.rank)+` / `+T(e.cohortSize)+` · `+T(e.grade),1),P(`td`,null,T(e.qualified==null?`不判定`:e.qualified?`达线`:`未达线`),1),P(`td`,null,[F(U,{value:e.published?`published`:`draft`},null,8,[`value`])])]))),128))])])]),F(dm,{page:_.value.page,"page-size":ee.value,total:_.value.total,"total-pages":_.value.totalPages,"onUpdate:page":Pe,"onUpdate:pageSize":Le},null,8,[`page`,`page-size`,`total`,`total-pages`])])],64)):(M(),N(`div`,w_,[...n[119]||=[P(`strong`,null,`请选择考试`,-1),P(`p`,null,`选中考试后加载成绩录入、分析与复议数据。`,-1)]]))],64)):L(``,!0)]))}},E_={class:`admin-admission-workspace`},D_={key:0,class:`form-error`},O_={key:1,class:`issued-credential`},k_=[`value`],A_={class:`form-grid`},j_=[`value`],M_={class:`check-row`},N_={class:`record-metrics`},P_={class:`form-grid`},F_=[`value`],I_={class:`record-panel`},L_={class:`ledger-toolbar`},R_={class:`ledger-bulk`},z_=[`disabled`],B_=[`disabled`],V_={class:`table-scroll`},H_=[`value`],U_=[`onClick`],W_=[`onClick`],G_={class:`form-grid`},K_=[`value`],q_=[`value`],J_=[`onUpdate:modelValue`],Y_=[`onUpdate:modelValue`],X_=[`onUpdate:modelValue`,`onChange`],Z_=[`value`],Q_=[`onUpdate:modelValue`,`disabled`],$_=[`value`],ev=[`onClick`],tv={class:`record-panel`},nv={class:`ledger-toolbar ledger-toolbar--wide`},rv=[`value`],iv=[`value`],av={class:`ledger-bulk`},ov=[`disabled`],sv=[`disabled`],cv={class:`table-scroll`},lv=[`value`],uv={key:0,class:`row-decision`},dv=[`onUpdate:modelValue`],fv=[`onClick`],pv=[`onClick`],mv={key:1},hv={key:5,class:`record-panel`},gv={class:`ledger-toolbar ledger-toolbar--wide`},_v=[`value`],vv=[`value`],yv={class:`ledger-bulk`},bv=[`disabled`],xv=[`disabled`],Sv={class:`table-scroll`},Cv=[`value`],wv={key:0,class:`row-decision`},Tv=[`onUpdate:modelValue`],Ev=[`onClick`],Dv=[`onClick`],Ov={key:1},kv={class:`record-panel`},Av=[`href`],jv={class:`ledger-toolbar ledger-toolbar--wide`},Mv=[`value`],Nv=[`value`],Pv=[`value`],Fv={class:`ledger-bulk`},Iv=[`disabled`],Lv=[`disabled`],Rv=[`disabled`],zv={class:`table-scroll`},Bv=[`value`],Vv={key:0,class:`row-decision`},Hv=[`onUpdate:modelValue`,`placeholder`],Uv=[`onClick`],Wv=[`onClick`],Gv={class:`record-panel`},Kv=[`href`],qv={class:`ledger-toolbar ledger-toolbar--wide`},Jv=[`value`],Yv=[`value`],Xv=[`value`],Zv={class:`ledger-bulk`},Qv=[`disabled`],$v={class:`table-scroll`},ey=[`value`],ty={__name:`AdminAdmissionWorkspace`,props:{page:{type:String,required:!0},data:{type:Object,default:()=>({})}},emits:[`reload`],setup(e,{emit:t}){let n=e,r=t,i=D(!1),a=D(``),o=D(null),s=E({}),c=E({examId:``,preferenceStart:``,preferenceEnd:``,status:`draft`,maxChoices:5,maxSubmissions:3,progress:``,enabled:!1,autoPublish:!0}),l=E({schoolId:``,username:``,password:``,displayName:``}),u=E({examId:``,schoolId:``,note:``,categories:[{name:`普通生`,quota:1,specialtyCategory:``,specialtyType:``}]}),d=D([]),f=D([]),p=D([]),m=D([]),h=D([]),g=pm(()=>n.data.schoolAccounts||[],{filters:{status:(e,t)=>(e.active?`active`:`disabled`)===t},searchText:e=>`${e.displayName} ${e.username} ${e.schoolName} ${e.schoolCode}`}),_=pm(()=>n.data.plans||[],{filters:{exam:(e,t)=>e.examId===t,school:(e,t)=>e.schoolId===t,status:(e,t)=>e.status===t},searchText:e=>`${e.examName} ${e.schoolName} ${e.payload?.note||``} ${JSON.stringify(e.payload?.categories||[])}`}),v=pm(()=>n.data.reportingRequests||[],{filters:{exam:(e,t)=>e.examId===t,school:(e,t)=>e.schoolId===t,status:(e,t)=>e.status===t},searchText:e=>`${e.examName} ${e.schoolName} ${e.payload?.decisionNote||``} ${e.payload?.approvalNote||``}`}),y=pm(()=>n.data.placements||[],{filters:{exam:(e,t)=>e.examId===t,school:(e,t)=>e.schoolId===t,status:(e,t)=>e.status===t},searchText:e=>`${e.candidate?.name} ${e.candidate?.registrationNumber} ${e.examName} ${e.schoolName} ${e.payload?.categoryName}`}),b=pm(()=>n.data.preferenceRows||[],{filters:{exam:(e,t)=>e.examId===t,school:(e,t)=>e.sourceSchoolId===t||e.sourceSchoolName===t,status:(e,t)=>e.fillStatus===t},searchText:e=>`${e.candidate?.name} ${e.candidate?.registrationNumber} ${e.examName} ${e.sourceSchoolName} ${JSON.stringify(e.choices||[])}`}),x=R(()=>n.data.settings?.find(e=>e.examId===c.examId)),S=R(()=>n.data.admissionSchools||n.data.schools||[]),C=R(()=>[...new Set((n.data.preferenceRows||[]).map(e=>e.sourceSchoolName).filter(Boolean))]),ee=R(()=>[...new Set((n.data.placements||[]).map(e=>e.status).filter(Boolean))]),te=R(()=>[...new Set((n.data.preferenceRows||[]).map(e=>e.fillStatus).filter(Boolean))]);function ne(){let e=x.value||n.data.settings?.[0];if(!e){c.examId||=n.data.exams?.[0]?.id||``;return}Object.assign(c,{examId:e.examId,preferenceStart:e.payload?.preferenceStart?.slice(0,16)||``,preferenceEnd:e.payload?.preferenceEnd?.slice(0,16)||``,status:e.status||`draft`,maxChoices:e.payload?.maxChoices||5,maxSubmissions:e.payload?.maxSubmissions||3,progress:e.payload?.progress||``,enabled:!!e.payload?.enabled,autoPublish:e.payload?.autoPublish!==!1})}function re(){u.categories.push({name:``,quota:1,specialtyCategory:``,specialtyType:``})}function ie(e){e.specialtyType=``}function ae(e,t,n=()=>!0){let r=t.filter(n).map(e=>e.id||`${e.examId}:${e.candidate?.registrationNumber}`);e.value=r.length>0&&r.every(t=>e.value.includes(t))?e.value.filter(e=>!r.includes(e)):[...new Set([...e.value,...r])]}function oe(e,t){return t.filter(t=>e.value.includes(t.id||`${t.examId}:${t.candidate?.registrationNumber}`))}async function se(e,t,n=!0){i.value=!0,a.value=``;try{let i=await e();return t&&Wl.notify(t),n&&r(`reload`),i}catch(e){return a.value=e.message,null}finally{i.value=!1}}async function ce(e,t,n){if(!e.length)return;i.value=!0,a.value=``;let o=0;try{for(let n of e)await t(n),o+=1;Wl.notify(`${n},共 ${o} 条`),r(`reload`)}catch(e){a.value=`${o} 条已完成;${e.message}`}finally{i.value=!1}}function le(){se(()=>V(`/api/admin/admissions/${c.examId}/setting`,{method:`PUT`,body:{...c,maxChoices:Number(c.maxChoices),maxSubmissions:Number(c.maxSubmissions),preferenceStart:c.preferenceStart?new Date(c.preferenceStart).toISOString():``,preferenceEnd:c.preferenceEnd?new Date(c.preferenceEnd).toISOString():``}}),`志愿设置已保存`)}function ue(e){let t={match:`按规则投档`,finalize:`签发通知书并开启报到`,supplementary:`开启补录`};window.confirm(`确认执行“${t[e]}”吗?该操作会改变本场录取状态。`)&&se(()=>V(`/api/admin/admissions/${c.examId}/${e}`,{method:`POST`,body:{}}),`${t[e]}已完成`)}async function w(){let e=await se(()=>V(`/api/admin/admission-school-accounts`,{method:`POST`,body:l}),`招生学校账户已创建`,!1);e&&(o.value=e.temporaryPassword?{account:e.username,password:e.temporaryPassword}:null,r(`reload`))}function de(e){return V(`/api/admin/admission-school-accounts/${e.id}`,{method:`PATCH`,body:{active:!e.active}})}async function fe(e){let t=await se(()=>V(`/api/admin/admission-school-accounts/${e.id}/reset-password`,{method:`POST`}),``,!1);t&&(o.value={account:t.username,password:t.temporaryPassword})}function pe(e){ce(oe(d,n.data.schoolAccounts||[]).filter(t=>t.active!==e),t=>V(`/api/admin/admission-school-accounts/${t.id}`,{method:`PATCH`,body:{active:e}}),e?`已批量启用招生账户`:`已批量停用招生账户`).then(()=>{d.value=[]})}function me(){let e=u.categories.map((e,t)=>({code:`category_${t+1}`,name:e.name.trim(),quota:Number(e.quota),isSpecialty:!!e.specialtyCategory,specialtyCategory:e.specialtyCategory,specialtyType:e.specialtyType,indicatorAllocations:[]})).filter(e=>e.name&&e.quota>0);if(e.some(e=>e.isSpecialty&&!e.specialtyType)){a.value=`特长生类别必须选择具体特长项目`;return}se(()=>V(`/api/admin/admission-plans`,{method:`POST`,body:{examId:u.examId,schoolId:u.schoolId,note:u.note,categories:e}}),`招生计划已代上传并通过`)}function he(e,t){return V(`/api/admin/admission-plans/${e.id}`,{method:`PATCH`,body:{status:t,reviewNote:s[e.id]||``}})}function ge(e){ce(oe(f,n.data.plans||[]).filter(e=>e.status===`pending`),t=>he(t,e),e===`approved`?`招生计划已批量通过`:`招生计划已批量退回`).then(()=>{f.value=[]})}function _e(e,t,n=``){return{approved:t,approvalNote:s[e.id]||``,preferenceEnd:n}}function ve(e,t){let n=t&&e.payload?.supplementDecision===`supplement`&&window.prompt(`补录志愿结束时间(ISO 或本地日期时间)`,``)||``;t&&e.payload?.supplementDecision===`supplement`&&!n||se(()=>V(`/api/admin/admission-reporting/${e.id}`,{method:`PATCH`,body:_e(e,t,n)}),t?`报到与补录决定已批准`:`报到决定已退回`)}function ye(e){let t=oe(p,n.data.reportingRequests||[]).filter(e=>e.status===`pending_approval`),r=``;e&&t.some(e=>e.payload?.supplementDecision===`supplement`)&&(r=window.prompt(`批量批准中的补录申请统一结束时间(ISO 或本地日期时间)`,``)||``,!r)||ce(t,t=>V(`/api/admin/admission-reporting/${t.id}`,{method:`PATCH`,body:_e(t,e,t.payload?.supplementDecision===`supplement`?r:``)}),e?`报到决定已批量批准`:`报到决定已批量退回`).then(()=>{p.value=[]})}function be(e,t){return V(`/api/admin/admission-withdrawals/${e.id}`,{method:`PATCH`,body:{approved:t,reviewNote:s[e.id]||``}})}function xe(e){ce(oe(m,n.data.placements||[]).filter(e=>e.status===`withdrawal_pending`),t=>be(t,e),e?`退档申请已批量批准`:`退档申请已批量驳回`).then(()=>{m.value=[]})}function Se(e,t){let n=new URLSearchParams;t.query&&n.set(`q`,t.query);for(let[r,i]of Object.entries(t.filters))i&&n.set(r===`school`?e===`preferences`?`sourceSchool`:`schoolId`:r===`exam`?`examId`:r===`status`&&e===`preferences`?`fillStatus`:r,i);return`/api/admin/admissions/${e}/export?${n}`}function Ce(e,t){let n=Array.isArray(t)?t:t.value;if(!n.length)return;let r=document.createElement(`a`);r.href=`/api/admin/admissions/${e}/export?ids=${encodeURIComponent(n.join(`,`))}`,r.click()}return ne(),(t,n)=>(M(),N(`div`,E_,[a.value?(M(),N(`div`,D_,T(a.value),1)):L(``,!0),o.value?(M(),N(`section`,O_,[n[71]||=P(`div`,null,[P(`span`,null,`ONE-TIME CREDENTIAL`),P(`h2`,null,`招生学校临时密码`),P(`p`,null,`关闭后不再展示,请安全交付。`)],-1),P(`dl`,null,[P(`div`,null,[n[69]||=P(`dt`,null,`账号`,-1),P(`dd`,null,T(o.value.account),1)]),P(`div`,null,[n[70]||=P(`dt`,null,`临时密码`,-1),P(`dd`,null,T(o.value.password),1)])]),P(`button`,{class:`app-button`,onClick:n[0]||=e=>o.value=null},`我已保存`)])):L(``,!0),n[151]||=P(`section`,{class:`admission-command-banner`},[P(`div`,null,[P(`span`,null,`ADMISSION COMMAND`),P(`h2`,null,`中考招生录取控制台`),P(`p`,null,` 志愿内容仅超级管理员可见且不可代改;投档和录取变更全部进入审计日志。 `)])],-1),e.page===`admission-settings`?(M(),N(j,{key:2},[P(`form`,{class:`business-form admission-admin-setting`,onSubmit:As(le,[`prevent`])},[n[81]||=P(`p`,null,`EXAM PREFERENCE SETTING`,-1),n[82]||=P(`h2`,null,`考试志愿与录取阶段`,-1),P(`label`,null,[n[72]||=P(`span`,null,`考试`,-1),k(P(`select`,{"onUpdate:modelValue":n[1]||=e=>c.examId=e,onChange:ne},[(M(!0),N(j,null,A(e.data.exams,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,k_))),128))],544),[[B,c.examId]])]),P(`div`,A_,[P(`label`,null,[n[73]||=P(`span`,null,`填报开始`,-1),k(P(`input`,{"onUpdate:modelValue":n[2]||=e=>c.preferenceStart=e,type:`datetime-local`},null,512),[[z,c.preferenceStart]])]),P(`label`,null,[n[74]||=P(`span`,null,`填报结束`,-1),k(P(`input`,{"onUpdate:modelValue":n[3]||=e=>c.preferenceEnd=e,type:`datetime-local`},null,512),[[z,c.preferenceEnd]])]),P(`label`,null,[n[75]||=P(`span`,null,`当前阶段`,-1),k(P(`select`,{"onUpdate:modelValue":n[4]||=e=>c.status=e},[(M(),N(j,null,A({draft:`草稿`,filling:`志愿填报中`,closed:`填报截止`,matching:`投档中`,school_review:`学校审核`,reporting:`考生报到`,supplementary:`补录填报`,completed:`录取完成`},(e,t)=>P(`option`,{key:t,value:t},T(e),9,j_)),64))],512),[[B,c.status]])]),P(`label`,null,[n[76]||=P(`span`,null,`普通志愿数`,-1),k(P(`input`,{"onUpdate:modelValue":n[5]||=e=>c.maxChoices=e,type:`number`,min:`1`,max:`20`},null,512),[[z,c.maxChoices]])]),P(`label`,null,[n[77]||=P(`span`,null,`最多提交次数`,-1),k(P(`input`,{"onUpdate:modelValue":n[6]||=e=>c.maxSubmissions=e,type:`number`,min:`1`,max:`50`},null,512),[[z,c.maxSubmissions]])]),P(`label`,null,[n[78]||=P(`span`,null,`考生进度说明`,-1),k(P(`input`,{"onUpdate:modelValue":n[7]||=e=>c.progress=e},null,512),[[z,c.progress]])])]),P(`div`,M_,[P(`label`,null,[k(P(`input`,{"onUpdate:modelValue":n[8]||=e=>c.enabled=e,type:`checkbox`},null,512),[[Cs,c.enabled]]),n[79]||=I(` 启用志愿填报`,-1)]),P(`label`,null,[k(P(`input`,{"onUpdate:modelValue":n[9]||=e=>c.autoPublish=e,type:`checkbox`},null,512),[[Cs,c.autoPublish]]),n[80]||=I(` 完成后自动公示`,-1)])]),n[83]||=P(`button`,{class:`app-button app-button--primary`},`保存志愿设置`,-1),P(`footer`,null,[P(`button`,{class:`app-button`,type:`button`,onClick:n[10]||=e=>ue(`match`)},` 按规则投档`),P(`button`,{class:`app-button`,type:`button`,onClick:n[11]||=e=>ue(`finalize`)},` 签发通知书并开启报到`),P(`button`,{class:`app-button`,type:`button`,onClick:n[12]||=e=>ue(`supplementary`)},` 开启补录 `)])],32),P(`section`,N_,[P(`article`,null,[n[84]||=P(`span`,null,`待审计划`,-1),P(`strong`,null,T(e.data.plans?.filter(e=>e.status===`pending`).length||0),1)]),P(`article`,null,[n[85]||=P(`span`,null,`学校审核中`,-1),P(`strong`,null,T(e.data.placements?.filter(e=>e.status===`school_review`).length||0),1)]),P(`article`,null,[n[86]||=P(`span`,null,`退档待审`,-1),P(`strong`,null,T(e.data.placements?.filter(e=>e.status===`withdrawal_pending`).length||0),1)]),P(`article`,null,[n[87]||=P(`span`,null,`正式录取`,-1),P(`strong`,null,T(e.data.placements?.filter(e=>e.status===`final`).length||0),1)])])],64)):e.page===`admission-accounts`?(M(),N(j,{key:3},[P(`form`,{class:`business-form`,onSubmit:As(w,[`prevent`])},[n[93]||=P(`p`,null,`ADMISSION SCHOOL ACCOUNT`,-1),n[94]||=P(`h2`,null,`创建招生学校账户`,-1),P(`div`,P_,[P(`label`,null,[n[89]||=P(`span`,null,`招生学校`,-1),k(P(`select`,{"onUpdate:modelValue":n[13]||=e=>l.schoolId=e,required:``},[n[88]||=P(`option`,{value:``},`请选择`,-1),(M(!0),N(j,null,A(S.value,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.code)+` · `+T(e.name),9,F_))),128))],512),[[B,l.schoolId]])]),P(`label`,null,[n[90]||=P(`span`,null,`显示名称`,-1),k(P(`input`,{"onUpdate:modelValue":n[14]||=e=>l.displayName=e,placeholder:`学校招生办公室`},null,512),[[z,l.displayName]])]),P(`label`,null,[n[91]||=P(`span`,null,`登录账号`,-1),k(P(`input`,{"onUpdate:modelValue":n[15]||=e=>l.username=e,required:``},null,512),[[z,l.username]])]),P(`label`,null,[n[92]||=P(`span`,null,`初始密码`,-1),k(P(`input`,{"onUpdate:modelValue":n[16]||=e=>l.password=e,type:`password`,minlength:`8`,required:``},null,512),[[z,l.password]])])]),n[95]||=P(`button`,{class:`app-button app-button--primary`},`创建招生账户`,-1)],32),P(`section`,I_,[P(`header`,null,[P(`div`,null,[n[96]||=P(`h2`,null,`招生学校账户台账`,-1),P(`p`,null,` 筛选结果 `+T(O(g).total)+` / 共 `+T(e.data.schoolAccounts?.length||0)+` 个 `,1)])]),P(`div`,L_,[P(`label`,null,[n[97]||=P(`span`,null,`关键词`,-1),k(P(`input`,{"onUpdate:modelValue":n[17]||=e=>O(g).query=e,placeholder:`名称、账号、学校代码`},null,512),[[z,O(g).query]])]),P(`label`,null,[n[99]||=P(`span`,null,`状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[18]||=e=>O(g).filters.status=e},[...n[98]||=[P(`option`,{value:``},`全部状态`,-1),P(`option`,{value:`active`},`启用`,-1),P(`option`,{value:`disabled`},`停用`,-1)]],512),[[B,O(g).filters.status]])]),P(`button`,{class:`table-action`,onClick:n[19]||=(...e)=>O(g).clear&&O(g).clear(...e)},` 清除筛选 `)]),P(`div`,R_,[P(`label`,null,[P(`input`,{type:`checkbox`,onChange:n[20]||=e=>ae(d.value,O(g).rows)},null,32),n[100]||=I(` 选择当前页`,-1)]),P(`strong`,null,`已选 `+T(d.value.length)+` 个`,1),P(`button`,{disabled:!d.value.length||i.value,onClick:n[21]||=e=>pe(!0)},` 批量启用`,8,z_),P(`button`,{disabled:!d.value.length||i.value,onClick:n[22]||=e=>pe(!1)},` 批量停用 `,8,B_)]),P(`div`,V_,[P(`table`,null,[n[101]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`选择`),P(`th`,null,`显示名称`),P(`th`,null,`账号`),P(`th`,null,`学校`),P(`th`,null,`状态`),P(`th`,null,`操作`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(O(g).rows,e=>(M(),N(`tr`,{key:e.id},[P(`td`,null,[k(P(`input`,{"onUpdate:modelValue":n[23]||=e=>d.value=e,type:`checkbox`,value:e.id},null,8,H_),[[Cs,d.value]])]),P(`td`,null,T(e.displayName),1),P(`td`,null,T(e.username),1),P(`td`,null,[I(T(e.schoolName),1),P(`small`,null,T(e.schoolCode),1)]),P(`td`,null,[F(U,{value:e.active?`active`:`disabled`},null,8,[`value`])]),P(`td`,null,[P(`button`,{class:`table-action`,onClick:t=>fe(e)},` 重置密码`,8,U_),P(`button`,{class:`table-action`,onClick:t=>se(()=>de(e),e.active?`招生账户已停用`:`招生账户已启用`)},T(e.active?`停用`:`启用`),9,W_)])]))),128))])])]),F(dm,{page:O(g).page,"onUpdate:page":n[24]||=e=>O(g).page=e,"page-size":O(g).pageSize,"onUpdate:pageSize":n[25]||=e=>O(g).pageSize=e,total:O(g).total},null,8,[`page`,`page-size`,`total`])])],64)):e.page===`admission-plans`?(M(),N(j,{key:4},[P(`form`,{class:`business-form`,onSubmit:As(me,[`prevent`])},[n[107]||=P(`p`,null,`PLAN ON BEHALF`,-1),n[108]||=P(`h2`,null,`代上传招生计划`,-1),P(`div`,G_,[P(`label`,null,[n[102]||=P(`span`,null,`考试`,-1),k(P(`select`,{"onUpdate:modelValue":n[26]||=e=>u.examId=e,required:``},[(M(!0),N(j,null,A(e.data.exams,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,K_))),128))],512),[[B,u.examId]])]),P(`label`,null,[n[103]||=P(`span`,null,`招生学校`,-1),k(P(`select`,{"onUpdate:modelValue":n[27]||=e=>u.schoolId=e,required:``},[(M(!0),N(j,null,A(S.value,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,q_))),128))],512),[[B,u.schoolId]])])]),(M(!0),N(j,null,A(u.categories,(e,t)=>(M(),N(`div`,{key:t,class:`plan-admin-row`},[k(P(`input`,{"onUpdate:modelValue":t=>e.name=t,required:``,placeholder:`类别名称`},null,8,J_),[[z,e.name]]),k(P(`input`,{"onUpdate:modelValue":t=>e.quota=t,type:`number`,min:`1`,required:``,placeholder:`计划人数`},null,8,Y_),[[z,e.quota]]),k(P(`select`,{"onUpdate:modelValue":t=>e.specialtyCategory=t,onChange:t=>ie(e)},[n[104]||=P(`option`,{value:``},`普通 / 政策类`,-1),(M(!0),N(j,null,A(O(Ef),e=>(M(),N(`option`,{key:e.code,value:e.code},T(e.name)+`特长生 `,9,Z_))),128))],40,X_),[[B,e.specialtyCategory]]),k(P(`select`,{"onUpdate:modelValue":t=>e.specialtyType=t,disabled:!e.specialtyCategory},[n[105]||=P(`option`,{value:``},`选择特长项目`,-1),(M(!0),N(j,null,A(O(Df)(e.specialtyCategory),e=>(M(),N(`option`,{key:e[0],value:e[0]},T(e[1]),9,$_))),128))],8,Q_),[[B,e.specialtyType]]),P(`button`,{type:`button`,onClick:e=>u.categories.splice(t,1)},` 移除 `,8,ev)]))),128)),P(`button`,{class:`app-button`,type:`button`,onClick:re},` + 添加类别`),P(`label`,null,[n[106]||=P(`span`,null,`计划说明`,-1),k(P(`textarea`,{"onUpdate:modelValue":n[28]||=e=>u.note=e},null,512),[[z,u.note]])]),n[109]||=P(`button`,{class:`app-button app-button--primary`},` 代上传并审核通过 `,-1)],32),P(`section`,tv,[P(`header`,null,[P(`div`,null,[n[110]||=P(`h2`,null,`招生计划审核台账`,-1),P(`p`,null,` 筛选结果 `+T(O(_).total)+` / 共 `+T(e.data.plans?.length||0)+` 份 `,1)])]),P(`div`,nv,[P(`label`,null,[n[111]||=P(`span`,null,`关键词`,-1),k(P(`input`,{"onUpdate:modelValue":n[29]||=e=>O(_).query=e,placeholder:`考试、学校、计划类别`},null,512),[[z,O(_).query]])]),P(`label`,null,[n[113]||=P(`span`,null,`考试`,-1),k(P(`select`,{"onUpdate:modelValue":n[30]||=e=>O(_).filters.exam=e},[n[112]||=P(`option`,{value:``},`全部考试`,-1),(M(!0),N(j,null,A(e.data.exams,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,rv))),128))],512),[[B,O(_).filters.exam]])]),P(`label`,null,[n[115]||=P(`span`,null,`学校`,-1),k(P(`select`,{"onUpdate:modelValue":n[31]||=e=>O(_).filters.school=e},[n[114]||=P(`option`,{value:``},`全部学校`,-1),(M(!0),N(j,null,A(S.value,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,iv))),128))],512),[[B,O(_).filters.school]])]),P(`label`,null,[n[117]||=P(`span`,null,`状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[32]||=e=>O(_).filters.status=e},[...n[116]||=[P(`option`,{value:``},`全部状态`,-1),P(`option`,{value:`pending`},`待审核`,-1),P(`option`,{value:`approved`},`已通过`,-1),P(`option`,{value:`rejected`},`已退回`,-1)]],512),[[B,O(_).filters.status]])])]),P(`div`,av,[P(`label`,null,[P(`input`,{type:`checkbox`,onChange:n[33]||=e=>ae(f.value,O(_).rows,e=>e.status===`pending`)},null,32),n[118]||=I(` 选择当前页待审项`,-1)]),P(`strong`,null,`已选 `+T(f.value.length)+` 份`,1),P(`button`,{disabled:!f.value.length||i.value,onClick:n[34]||=e=>ge(`rejected`)},` 批量退回`,8,ov),P(`button`,{disabled:!f.value.length||i.value,onClick:n[35]||=e=>ge(`approved`)},` 批量通过 `,8,sv)]),P(`div`,cv,[P(`table`,null,[n[119]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`选择`),P(`th`,null,`考试 / 学校`),P(`th`,null,`计划构成`),P(`th`,null,`状态`),P(`th`,null,`审核`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(O(_).rows,e=>(M(),N(`tr`,{key:e.id},[P(`td`,null,[k(P(`input`,{"onUpdate:modelValue":n[36]||=e=>f.value=e,type:`checkbox`,value:e.id},null,8,lv),[[Cs,f.value]])]),P(`td`,null,[I(T(e.examName),1),P(`small`,null,T(e.schoolName),1)]),P(`td`,null,[(M(!0),N(j,null,A(e.payload?.categories,e=>(M(),N(`span`,{key:e.code,class:`table-stack`},T(e.name)+` `+T(e.quota)+` 人`,1))),128))]),P(`td`,null,[F(U,{value:e.status},null,8,[`value`])]),P(`td`,null,[e.status===`pending`?(M(),N(`div`,uv,[k(P(`input`,{"onUpdate:modelValue":t=>s[e.id]=t,placeholder:`审核意见`},null,8,dv),[[z,s[e.id]]]),P(`button`,{onClick:t=>se(()=>he(e,`rejected`),`招生计划已退回`)},` 退回`,8,fv),P(`button`,{onClick:t=>se(()=>he(e,`approved`),`招生计划已通过`)},` 通过 `,8,pv)])):(M(),N(`span`,mv,T(e.payload?.reviewNote),1))])]))),128))])])]),F(dm,{page:O(_).page,"onUpdate:page":n[37]||=e=>O(_).page=e,"page-size":O(_).pageSize,"onUpdate:pageSize":n[38]||=e=>O(_).pageSize=e,total:O(_).total},null,8,[`page`,`page-size`,`total`])])],64)):e.page===`admission-reporting`?(M(),N(`section`,hv,[P(`header`,null,[P(`div`,null,[n[120]||=P(`h2`,null,`学校报到与补录决定`,-1),P(`p`,null,` 筛选结果 `+T(O(v).total)+` / 共 `+T(e.data.reportingRequests?.length||0)+` 条 `,1)])]),P(`div`,gv,[P(`label`,null,[n[121]||=P(`span`,null,`关键词`,-1),k(P(`input`,{"onUpdate:modelValue":n[39]||=e=>O(v).query=e,placeholder:`考试、学校、决定说明`},null,512),[[z,O(v).query]])]),P(`label`,null,[n[123]||=P(`span`,null,`考试`,-1),k(P(`select`,{"onUpdate:modelValue":n[40]||=e=>O(v).filters.exam=e},[n[122]||=P(`option`,{value:``},`全部考试`,-1),(M(!0),N(j,null,A(e.data.exams,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,_v))),128))],512),[[B,O(v).filters.exam]])]),P(`label`,null,[n[125]||=P(`span`,null,`学校`,-1),k(P(`select`,{"onUpdate:modelValue":n[41]||=e=>O(v).filters.school=e},[n[124]||=P(`option`,{value:``},`全部学校`,-1),(M(!0),N(j,null,A(S.value,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,vv))),128))],512),[[B,O(v).filters.school]])]),P(`label`,null,[n[127]||=P(`span`,null,`状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[42]||=e=>O(v).filters.status=e},[...n[126]||=[P(`option`,{value:``},`全部状态`,-1),P(`option`,{value:`pending_approval`},`待审批`,-1),P(`option`,{value:`approved`},`已批准`,-1),P(`option`,{value:`rejected`},`已退回`,-1)]],512),[[B,O(v).filters.status]])])]),P(`div`,yv,[P(`label`,null,[P(`input`,{type:`checkbox`,onChange:n[43]||=e=>ae(p.value,O(v).rows,e=>e.status===`pending_approval`)},null,32),n[128]||=I(` 选择当前页待审项`,-1)]),P(`strong`,null,`已选 `+T(p.value.length)+` 条`,1),P(`button`,{disabled:!p.value.length||i.value,onClick:n[44]||=e=>ye(!1)},` 批量退回`,8,bv),P(`button`,{disabled:!p.value.length||i.value,onClick:n[45]||=e=>ye(!0)},` 批量批准 `,8,xv)]),P(`div`,Sv,[P(`table`,null,[n[129]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`选择`),P(`th`,null,`考试 / 学校`),P(`th`,null,`轮次`),P(`th`,null,`报到统计`),P(`th`,null,`学校决定`),P(`th`,null,`状态`),P(`th`,null,`审批`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(O(v).rows,e=>(M(),N(`tr`,{key:e.id},[P(`td`,null,[k(P(`input`,{"onUpdate:modelValue":n[46]||=e=>p.value=e,type:`checkbox`,value:e.id},null,8,Cv),[[Cs,p.value]])]),P(`td`,null,[I(T(e.examName),1),P(`small`,null,T(e.schoolName),1)]),P(`td`,null,`第 `+T(e.payload?.round||1)+` 轮`,1),P(`td`,null,` 计划 `+T(e.progress?.totalQuota)+` · 报到 `+T(e.progress?.reportedCount)+` · 缺额 `+T(e.progress?.reportingGap),1),P(`td`,null,[I(T(e.payload?.supplementDecision===`supplement`?`申请补录`:`不补录`),1),P(`small`,null,T(e.payload?.decisionNote),1)]),P(`td`,null,[F(U,{value:e.status},null,8,[`value`])]),P(`td`,null,[e.status===`pending_approval`?(M(),N(`div`,wv,[k(P(`input`,{"onUpdate:modelValue":t=>s[e.id]=t,placeholder:`审批意见`},null,8,Tv),[[z,s[e.id]]]),P(`button`,{onClick:t=>ve(e,!1)},`退回`,8,Ev),P(`button`,{onClick:t=>ve(e,!0)},`批准`,8,Dv)])):(M(),N(`span`,Ov,T(e.payload?.approvalNote),1))])]))),128))])])]),F(dm,{page:O(v).page,"onUpdate:page":n[47]||=e=>O(v).page=e,"page-size":O(v).pageSize,"onUpdate:pageSize":n[48]||=e=>O(v).pageSize=e,total:O(v).total},null,8,[`page`,`page-size`,`total`])])):e.page===`admission-supervision`?(M(),N(j,{key:6},[P(`section`,kv,[P(`header`,null,[P(`div`,null,[n[130]||=P(`h2`,null,`投档与退档监督`,-1),P(`p`,null,` 筛选结果 `+T(O(y).total)+` / 共 `+T(e.data.placements?.length||0)+` 条 `,1)]),P(`a`,{class:`app-button`,href:Se(`placements`,O(y))},`导出当前筛选结果`,8,Av)]),P(`div`,jv,[P(`label`,null,[n[131]||=P(`span`,null,`关键词`,-1),k(P(`input`,{"onUpdate:modelValue":n[49]||=e=>O(y).query=e,placeholder:`考生、报名号、学校、类别`},null,512),[[z,O(y).query]])]),P(`label`,null,[n[133]||=P(`span`,null,`考试`,-1),k(P(`select`,{"onUpdate:modelValue":n[50]||=e=>O(y).filters.exam=e},[n[132]||=P(`option`,{value:``},`全部考试`,-1),(M(!0),N(j,null,A(e.data.exams,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,Mv))),128))],512),[[B,O(y).filters.exam]])]),P(`label`,null,[n[135]||=P(`span`,null,`投档学校`,-1),k(P(`select`,{"onUpdate:modelValue":n[51]||=e=>O(y).filters.school=e},[n[134]||=P(`option`,{value:``},`全部学校`,-1),(M(!0),N(j,null,A(S.value,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,Nv))),128))],512),[[B,O(y).filters.school]])]),P(`label`,null,[n[137]||=P(`span`,null,`状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[52]||=e=>O(y).filters.status=e},[n[136]||=P(`option`,{value:``},`全部状态`,-1),(M(!0),N(j,null,A(ee.value,e=>(M(),N(`option`,{key:e,value:e},T(e),9,Pv))),128))],512),[[B,O(y).filters.status]])])]),P(`div`,Fv,[P(`label`,null,[P(`input`,{type:`checkbox`,onChange:n[53]||=e=>ae(m.value,O(y).rows)},null,32),n[138]||=I(` 选择当前页`,-1)]),P(`strong`,null,`已选 `+T(m.value.length)+` 条`,1),P(`button`,{disabled:!m.value.length||i.value,onClick:n[54]||=e=>xe(!1)},` 批量驳回退档`,8,Iv),P(`button`,{disabled:!m.value.length||i.value,onClick:n[55]||=e=>xe(!0)},` 批量批准退档`,8,Lv),P(`button`,{disabled:!m.value.length,onClick:n[56]||=e=>Ce(`placements`,m.value)},` 导出选中项 XLSX `,8,Rv)]),P(`div`,zv,[P(`table`,null,[n[139]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`选择`),P(`th`,null,`考生`),P(`th`,null,`考试 / 分数`),P(`th`,null,`投档学校`),P(`th`,null,`类别 / 志愿`),P(`th`,null,`状态`),P(`th`,null,`退档审批`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(O(y).rows,e=>(M(),N(`tr`,{key:e.id},[P(`td`,null,[k(P(`input`,{"onUpdate:modelValue":n[57]||=e=>m.value=e,type:`checkbox`,value:e.id},null,8,Bv),[[Cs,m.value]])]),P(`td`,null,[I(T(e.candidate?.name),1),P(`small`,null,T(e.candidate?.registrationNumber),1)]),P(`td`,null,[I(T(e.examName),1),P(`small`,null,T(e.payload?.totalScore)+` 分`,1)]),P(`td`,null,T(e.schoolName),1),P(`td`,null,T(e.payload?.categoryName)+` · 第 `+T(e.payload?.preferenceOrder)+` 志愿 `,1),P(`td`,null,[F(U,{value:e.status},null,8,[`value`])]),P(`td`,null,[e.status===`withdrawal_pending`?(M(),N(`div`,Vv,[k(P(`input`,{"onUpdate:modelValue":t=>s[e.id]=t,placeholder:e.payload?.withdrawalReason||`审批意见`},null,8,Hv),[[z,s[e.id]]]),P(`button`,{onClick:t=>se(()=>be(e,!1),`退档申请已驳回`)},` 驳回`,8,Uv),P(`button`,{onClick:t=>se(()=>be(e,!0),`退档申请已批准`)},` 批准 `,8,Wv)])):L(``,!0)])]))),128))])])]),F(dm,{page:O(y).page,"onUpdate:page":n[58]||=e=>O(y).page=e,"page-size":O(y).pageSize,"onUpdate:pageSize":n[59]||=e=>O(y).pageSize=e,total:O(y).total},null,8,[`page`,`page-size`,`total`])]),P(`section`,Gv,[P(`header`,null,[P(`div`,null,[n[140]||=P(`h2`,null,`考生志愿实时快照`,-1),P(`p`,null,` 筛选结果 `+T(O(b).total)+` / 共 `+T(e.data.preferenceRows?.length||0)+` 人;只读监督 `,1)]),P(`a`,{class:`app-button`,href:Se(`preferences`,O(b))},`导出当前筛选结果`,8,Kv)]),P(`div`,qv,[P(`label`,null,[n[141]||=P(`span`,null,`关键词`,-1),k(P(`input`,{"onUpdate:modelValue":n[60]||=e=>O(b).query=e,placeholder:`考生、报名号、生源校、志愿学校`},null,512),[[z,O(b).query]])]),P(`label`,null,[n[143]||=P(`span`,null,`考试`,-1),k(P(`select`,{"onUpdate:modelValue":n[61]||=e=>O(b).filters.exam=e},[n[142]||=P(`option`,{value:``},`全部考试`,-1),(M(!0),N(j,null,A(e.data.exams,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,Jv))),128))],512),[[B,O(b).filters.exam]])]),P(`label`,null,[n[145]||=P(`span`,null,`生源学校`,-1),k(P(`select`,{"onUpdate:modelValue":n[62]||=e=>O(b).filters.school=e},[n[144]||=P(`option`,{value:``},`全部学校`,-1),(M(!0),N(j,null,A(C.value,e=>(M(),N(`option`,{key:e,value:e},T(e),9,Yv))),128))],512),[[B,O(b).filters.school]])]),P(`label`,null,[n[147]||=P(`span`,null,`填报状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[63]||=e=>O(b).filters.status=e},[n[146]||=P(`option`,{value:``},`全部状态`,-1),(M(!0),N(j,null,A(te.value,e=>(M(),N(`option`,{key:e,value:e},T(e),9,Xv))),128))],512),[[B,O(b).filters.status]])])]),P(`div`,Zv,[P(`label`,null,[P(`input`,{type:`checkbox`,onChange:n[64]||=e=>ae(h.value,O(b).rows)},null,32),n[148]||=I(` 选择当前页`,-1)]),P(`strong`,null,`已选 `+T(h.value.length)+` 人`,1),n[149]||=P(`span`,null,`志愿快照为只读数据,不允许批量改写`,-1),P(`button`,{disabled:!h.value.length,onClick:n[65]||=e=>Ce(`preferences`,h.value)},` 导出选中项 XLSX `,8,Qv)]),P(`div`,$v,[P(`table`,null,[n[150]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`选择`),P(`th`,null,`考生 / 报名号`),P(`th`,null,`考试 / 生源校`),P(`th`,null,`轮次 / 状态`),P(`th`,null,`志愿顺序`),P(`th`,null,`提交次数`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(O(b).rows,e=>(M(),N(`tr`,{key:e.id},[P(`td`,null,[k(P(`input`,{"onUpdate:modelValue":n[66]||=e=>h.value=e,type:`checkbox`,value:e.id},null,8,ey),[[Cs,h.value]])]),P(`td`,null,[I(T(e.candidate?.name),1),P(`small`,null,T(e.candidate?.registrationNumber),1)]),P(`td`,null,[I(T(e.examName),1),P(`small`,null,T(e.sourceSchoolName),1)]),P(`td`,null,`第 `+T(e.round)+` 轮 · `+T(e.fillStatus),1),P(`td`,null,[(M(!0),N(j,null,A(e.choices,(e,t)=>(M(),N(`span`,{key:t,class:`table-stack`},T(e.preferenceType===`indicator`?`指标`:t+1)+` · `+T(e.schoolName)+` · `+T(e.categoryName),1))),128))]),P(`td`,null,T(e.submissionCount)+` / `+T(e.maxSubmissions),1)]))),128))])])]),F(dm,{page:O(b).page,"onUpdate:page":n[67]||=e=>O(b).page=e,"page-size":O(b).pageSize,"onUpdate:pageSize":n[68]||=e=>O(b).pageSize=e,total:O(b).total},null,8,[`page`,`page-size`,`total`])])],64)):L(``,!0)]))}};Array(256).fill(``).map((e,t)=>(`0`+t.toString(16)).slice(-2));function ny(e){return!!e&&/^\d+\.\d+\.\d+/.test(e)}function ry(e){if(!ny(e))throw Error(`Invalid semantic version: ${e||``}.`);let[t,n,r]=e.split(`.`);return{major:Number.parseInt(t,10),minor:Number.parseInt(n,10),patch:Number.parseInt(r,10)}}function iy(e,t){let n=ry(e),r=ry(t);return Math.sign(n.major-r.major||n.minor-r.minor||n.patch-r.patch)}function ay(e){return e?[`nightly`,`alpha`,`internal`,`nightly-`,`staging`].some(t=>e.includes(t)):!1}function oy(e){return!!e?.startsWith(`0.0.0-`)}function sy(e){return ny(e)||ay(e)}function cy(e,t){let n=e.extraPlugins||[];return{...e,extraPlugins:[...n,...t.filter(e=>!n.includes(e))]}}function ly(e){if(ay(e))return 3;let{major:t}=ry(e);switch(!0){case t>=44:return 3;case t>=38:return 2;default:return 1}}function uy(){let{CKEDITOR_VERSION:e,CKEDITOR:t}=window;return sy(e)?{source:t?`cdn`:`npm`,version:e}:null}function dy(){let e=uy();return e?ly(e.version):null}function fy(e,t){switch(t||=dy()||void 0,t){case 1:case 2:return e===void 0;case 3:return e===`GPL`;default:return!1}}function py(e,t){return function(n){fy(n.config.get(`licenseKey`))||n.on(`collectUsageData`,(n,{setUsageData:r})=>{r(`integration.${e}`,t)})}}function my(e){let t=uy()?.version;return t?oy(e)?-1:!ny(t)||oy(t)?1:iy(t,e):null}function hy(){let e=my(`48.0.0`),t=e!==null&&e>=0;return{rootsConfigEntry:t,elementConfigAttachment:t}}function gy(e,t,n){if(!e.editorName||e.editorName===`ClassicEditor`)return{...n,attachTo:t};let r={...n,roots:{...n.roots,main:{...n.root,...n.roots?.main,element:t}}};return delete r.root,r}function _y(e){return hy().rootsConfigEntry&&(e.roots?.main?.initialData||e.root?.initialData)||e.initialData}function vy(e,t,n){let r=hy(),i=n?null:_y(e);if(r.rootsConfigEntry){let n={...e,roots:{...e.roots,main:{...e.root,...e.roots?.main,initialData:i||t||``}}};return t&&i&&console.warn("Editor data should be provided either via the config (`config.root.initialData`) or the component's `data` property, but not both. The configuration value takes precedence."),delete n.root,delete n.initialData,n}return t&&i&&console.warn("Editor data should be provided either via the config (`config.initialData`) or the component's `data` property, but not both. The configuration value takes precedence."),{...e,initialData:i||t||``}}var yy=typeof global==`object`&&global&&global.Object===Object&&global,by=typeof self==`object`&&self&&self.Object===Object&&self,xy=yy||by||Function(`return this`)(),Sy=xy.Symbol,Cy=Object.prototype,wy=Cy.hasOwnProperty,Ty=Cy.toString,Ey=Sy?Sy.toStringTag:void 0;function Dy(e){var t=wy.call(e,Ey),n=e[Ey];try{e[Ey]=void 0;var r=!0}catch{}var i=Ty.call(e);return r&&(t?e[Ey]=n:delete e[Ey]),i}var Oy=Object.prototype.toString;function ky(e){return Oy.call(e)}var Ay=`[object Null]`,jy=`[object Undefined]`,My=Sy?Sy.toStringTag:void 0;function Ny(e){return e==null?e===void 0?jy:Ay:My&&My in Object(e)?Dy(e):ky(e)}function Py(e){return typeof e==`object`&&!!e}var Fy=`[object Symbol]`;function Iy(e){return typeof e==`symbol`||Py(e)&&Ny(e)==Fy}var Ly=/\s/;function Ry(e){for(var t=e.length;t--&&Ly.test(e.charAt(t)););return t}var zy=/^\s+/;function By(e){return e&&e.slice(0,Ry(e)+1).replace(zy,``)}function Vy(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var Hy=NaN,Uy=/^[-+]0x[0-9a-f]+$/i,Wy=/^0b[01]+$/i,Gy=/^0o[0-7]+$/i,Ky=parseInt;function qy(e){if(typeof e==`number`)return e;if(Iy(e))return Hy;if(Vy(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Vy(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=By(e);var n=Wy.test(e);return n||Gy.test(e)?Ky(e.slice(2),n?2:8):Uy.test(e)?Hy:+e}var Jy=function(){return xy.Date.now()},Yy=`Expected a function`,Xy=Math.max,Zy=Math.min;function Qy(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(Yy);t=qy(t)||0,Vy(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?Xy(qy(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function m(e){return l=e,s=setTimeout(_,t),u?p(e):o}function h(e){var n=e-c,r=e-l,i=t-n;return d?Zy(i,a-r):i}function g(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function _(){var e=Jy();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(Jy())}function x(){var e=Jy(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}var $y=py(`vue`,{version:`8.2.0`,frameworkVersion:po});function eb(e){return fy(e.licenseKey)?e:cy(e,[$y])}function tb(e){var t;let n=e.ui?.element;n?.isConnected&&n.remove();let r=(t=e.ui)==null||(t=t.view)==null||(t=t.body)==null?void 0:t._bodyCollectionContainer;r?.isConnected&&r.remove();let i=e.editing?.view;if(i)for(let e of i.domRoots.values())e instanceof HTMLElement&&(e.removeAttribute(`contenteditable`),e.removeAttribute(`role`),e.removeAttribute(`aria-label`),e.removeAttribute(`aria-multiline`),e.removeAttribute(`spellcheck`),e.classList.remove(`ck`,`ck-content`,`ck-editor__editable`,`ck-rounded-corners`,`ck-editor__editable_inline`,`ck-blurred`,`ck-focused`))}var nb=Symbol.for(`vue-editor-watchdog`);function rb(e,t,n){return t?e:ib(e,n)}function ib(e,t){let{EditorWatchdog:n}=e;if(!n)return e;let r=new n(e,t);return r.setCreator(async(...t)=>{let n=await e.create(...t);return n[nb]=r,n}),{...e,editorName:e.editorName,create:async(...e)=>(await r.create(...e),r.editor)}}function ab(e){return e[nb]??null}function ob(e,{isUnmounted:t,onError:n}){let r=ab(e);return r?(r.on(`error`,(e,{error:i,causesRestart:a})=>{t()||n({error:i,causesRestart:a,watchdog:r,editor:r.editor})}),r):null}async function sb(e){let t=ab(e);t?await t.destroy():await e.destroy()}function cb(){let e=D(!1);return Gr(()=>{e.value=!0}),e}function lb(e,t){Jn(e,e=>{if(!e)return;let{document:n}=e.editing.view;n.on(`focus`,n=>t(`focus`,n,e)),n.on(`blur`,n=>t(`blur`,n,e)),t(`ready`,e),e.once(`destroy`,()=>{t(`destroy`,e)})},{flush:`post`})}var ub=300;function db({disableTwoWayDataBinding:e,emit:t,instance:n,model:r}){let i=D(),a=cb();function o(e,n=null){let r=i.value=e.data.get();t(`update:modelValue`,r,n,e),t(`input`,r,n,e)}return Jn(r,e=>{n.value&&e!==i.value&&n.value.data.set(e)}),Jn(n,(t,n,r)=>{if(!t)return;let i=Qy(n=>{rn(e)||a.value||o(t,n)},ub,{leading:!0});t.model.document.on(`change:data`,i),t.once(`destroy`,()=>{i.cancel()}),r(()=>{i.cancel()})}),{lastEditorData:i,assignEditorDataToModel:o}}var fb=`Lock from Vue integration (@ckeditor/ckeditor5-vue)`;function pb(e,t){Kn(()=>{let n=rn(e),r=!!rn(t);n&&mb(n,r)},{flush:`sync`})}function mb(e,t){t?e.enableReadOnlyMode(fb):e.disableReadOnlyMode(fb)}function hb(){switch(my(`42.0.0`)){case null:console.warn(`Cannot find the "CKEDITOR_VERSION" in the "window" scope.`);break;case-1:console.warn(`The component requires using CKEditor 5 in version 42+ or nightly build.`);break}}function gb(e){return!e.editorName||e.editorName===`ClassicEditor`}function _b({Editor:e,config:t,defaultElementName:n}){return R(()=>{let r=rn(t);if(!gb(rn(e))){var i;let e=((i=r.roots)==null||(i=i.main)==null?void 0:i.element)??r.root?.element;if(e)return e}return rn(n)})}function vb(e){if(typeof HTMLElement<`u`&&e instanceof HTMLElement)throw Error(`An HTMLElement cannot be used as an editor element definition. Please pass a string or an object definition.`);return typeof e!=`object`||!e?{name:e}:e}var yb=Dr({__name:`DynamicElement`,props:{definition:{default:null}},setup(e,{expose:t}){let n=e,r=D();t({elementRef:r});let i=R(()=>vb(n.definition??`div`));return(e,t)=>(M(),ka(ei(i.value.name),Va({ref_key:`elementRef`,ref:r},i.value.attributes,{class:i.value.classes,style:i.value.styles}),null,16,[`class`,`style`]))}}),bb=Dr({name:`CKEditor`,__name:`Ckeditor`,props:ui({editor:{},config:{default:()=>({})},disabled:{type:Boolean,default:!1},disableTwoWayDataBinding:{type:Boolean,default:!1},watchdogConfig:{},disableWatchdog:{type:Boolean,default:!1},tagName:{default:`div`}},{modelValue:{type:String,default:``},modelModifiers:{}}),emits:ui([`ready`,`destroy`,`blur`,`focus`,`input`,`update:modelValue`,`error`],[`update:modelValue`]),setup(e,{expose:t,emit:n}){let r=Ai(e,`modelValue`),i=e,a=n,o=qa(),s=()=>{var e;return!!(!(o==null||(e=o.vnode.props)==null)&&e.onError)},c=D(),l=D(),u=cb(),{lastEditorData:d,assignEditorDataToModel:f}=db({disableTwoWayDataBinding:()=>i.disableTwoWayDataBinding,model:r,emit:a,instance:l}),p=_b({Editor:()=>i.editor,config:()=>i.config,defaultElementName:()=>i.tagName});return hb(),lb(l,a),pb(l,()=>i.disabled),t({instance:l,lastEditorData:d}),Hr(async()=>{let e=hy(),t=eb({...i.config}),n=r.value;r.value&&(t=vy(t,r.value,!0));let o=rb(i.editor,i.disableWatchdog,i.watchdogConfig);try{let i=c.value?.elementRef;if(!i)throw Error(`Editor element is not available. Make sure the component is mounted.`);let d=await(e.elementConfigAttachment?o.create(gy(o,i,t)):o.create(i,t));if(u.value){await sb(d);return}r.value!==n&&d.data.set(r.value);let p=ob(d,{isUnmounted:()=>u.value,onError:({error:e,watchdog:t,editor:n,causesRestart:r})=>{s()||console.error(e),a(`error`,e,{phase:`runtime`,watchdog:t,editor:n,causesRestart:r})}});p&&p.on(`restart`,()=>{try{l.value&&gb(o)&&tb(l.value)}catch(e){console.error(e)}u.value||(l.value=Xt(p.editor),f(l.value))}),l.value=Xt(d)}catch(e){if(u.value)return;s()||console.error(e),a(`error`,e,{phase:`initialization`})}}),Gr(async()=>{let e=l.value;e&&(l.value=void 0,await sb(e))}),(e,t)=>(M(),ka(yb,{ref_key:`editorElementRef`,ref:c,definition:O(p)},null,8,[`definition`]))}});function xb(e){return Number.isSafeInteger(e)&&e>=0}function Sb(e){return e!=null&&typeof e!=`function`&&xb(e.length)}function Cb(e){return e}function wb(e){return e===`__proto__`}function Tb(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}function Eb(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function Db(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(Db).join(`,`);let t=String(e);return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function Ob(e){if(Array.isArray(e))return e.map(Eb);if(typeof e==`symbol`)return[e];e=Db(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1;for(e.charCodeAt(0)===46&&(t.push(``),r++);rvoid 0)}function Ib(e,t,n,r){if(t===e)return!0;switch(typeof t){case`object`:return Lb(e,t,n,r);case`function`:return Object.keys(t).length>0?Ib(e,{...t},n,r):Pb(e,t);default:return Mb(e)?typeof t!=`string`||t===``:Pb(e,t)}}function Lb(e,t,n,r){if(t==null)return!0;if(Array.isArray(t))return zb(e,t,n,r);if(t instanceof Map)return Rb(e,t,n,r);if(t instanceof Set)return Bb(e,t,n,r);let i=Object.keys(t);if(e==null||Nb(e))return i.length===0;if(i.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let a=0;avoid 0)}function Hb(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Ub(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Wb=`[object RegExp]`,Gb=`[object String]`,Kb=`[object Number]`,qb=`[object Boolean]`,Jb=`[object Arguments]`,Yb=`[object Symbol]`,Xb=`[object Date]`,Zb=`[object Map]`,Qb=`[object Set]`,$b=`[object Array]`,ex=`[object Function]`,tx=`[object ArrayBuffer]`,nx=`[object Object]`,rx=`[object Error]`,ix=`[object DataView]`,ax=`[object Uint8Array]`,ox=`[object Uint8ClampedArray]`,sx=`[object Uint16Array]`,cx=`[object Uint32Array]`,lx=`[object BigUint64Array]`,ux=`[object Int8Array]`,dx=`[object Int16Array]`,fx=`[object Int32Array]`,px=`[object BigInt64Array]`,mx=`[object Float32Array]`,hx=`[object Float64Array]`;function gx(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function _x(e,t){return vx(e,void 0,e,new Map,t)}function vx(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(Nb(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;aVb(t,e)}function Cx(e,t){return _x(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(Ub(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),yx(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case Kb:case Gb:case qb:{let t=new e.constructor(e?.valueOf());return yx(t,e),t}case Jb:{let t={};return yx(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function wx(e){return Cx(e)}var Tx=/^(?:0|[1-9]\d*)$/;function Ex(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e{let r=e[t];(!(Object.hasOwn(e,t)&&Pb(r,n))||n===void 0&&!(t in e))&&(e[t]=n)};function Ux(e,t,n,r){if(e==null&&!Mb(e))return e;let i;i=Bx(t,e)?[t]:Array.isArray(t)?t:Ob(t);let a=n(kb(e,i)),o=e;for(let t=0;tn,()=>void 0)}function Gx(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function Kx(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=Gx(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?(s=e.apply(this,t),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function qx(e,t=0,n={}){let{leading:r=!0,trailing:i=!0}=n;return Kx(e,t,{leading:r,maxWait:t,trailing:i})}function Jx(e){if(!e||typeof e!=`object`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)===`[object Object]`:!1}function Yx(e,t,n){return Xx(e,t,void 0,void 0,void 0,void 0,n)}function Xx(e,t,n,r,i,a,o){let s=o(e,t,n,r,i,a);if(s!==void 0)return s;if(typeof e==typeof t)switch(typeof e){case`bigint`:case`string`:case`boolean`:case`symbol`:case`undefined`:return e===t;case`number`:return e===t||Object.is(e,t);case`function`:return e===t;case`object`:return Zx(e,t,a,o)}return Zx(e,t,a,o)}function Zx(e,t,n,r){if(Object.is(e,t))return!0;let i=Ub(e),a=Ub(t);if(i===`[object Arguments]`&&(i=nx),a===`[object Arguments]`&&(a=nx),i!==a)return!1;switch(i){case Gb:return e.toString()===t.toString();case Kb:return Pb(e.valueOf(),t.valueOf());case qb:case Xb:case Yb:return Object.is(e.valueOf(),t.valueOf());case Wb:return e.source===t.source&&e.flags===t.flags;case ex:return e===t}n??=new Map;let o=n.get(e),s=n.get(t);if(o!=null&&s!=null)return o===t;n.set(e,t),n.set(t,e);try{switch(i){case Zb:if(e.size!==t.size)return!1;for(let[i,a]of e.entries())if(!t.has(i)||!Xx(a,t.get(i),i,e,t,n,r))return!1;return!0;case Qb:{if(e.size!==t.size)return!1;let i=Array.from(e.values()),a=Array.from(t.values());for(let o=0;oXx(s,i,void 0,e,t,n,r));if(c===-1)return!1;a.splice(c,1)}return!0}case $b:case ax:case ox:case sx:case cx:case lx:case ux:case dx:case fx:case px:case mx:case hx:if(typeof Buffer<`u`&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let i=0;ie!==`constructor`)}function sS(e){let t=rS(e.length,e=>`${e}`),n=new Set(t);eS(e)&&(n.add(`offset`),n.add(`parent`)),nS(e)&&(n.add(`buffer`),n.add(`byteLength`),n.add(`byteOffset`));let r=aS(e).filter(e=>!n.has(e));return Array.isArray(e)?[...t,...r]:[...t.filter(t=>Object.hasOwn(e,t)),...r]}function cS(e,...t){for(let n=0;n0&&typeof e[0]==`string`&&Object.hasOwn(e,`index`)&&(t.index=e.index,t.input=e.input),t}if(nS(e)){let t=e,n=t.constructor;return new n(t.buffer,t.byteOffset,t.length)}if(t===`[object ArrayBuffer]`)return new ArrayBuffer(e.byteLength);if(t===`[object DataView]`){let t=e,n=t.buffer,r=t.byteOffset,i=t.byteLength,a=new ArrayBuffer(i),o=new Uint8Array(n,r,i);return new Uint8Array(a).set(o),new DataView(a)}if(t===`[object Boolean]`||t===`[object Number]`||t===`[object String]`){let n=e.constructor,r=new n(e.valueOf());return t===`[object String]`?mS(r,e):fS(r,e),r}if(t===`[object Date]`)return new Date(Number(e));if(t===`[object RegExp]`){let t=e,n=new RegExp(t.source,t.flags);return n.lastIndex=t.lastIndex,n}if(t===`[object Symbol]`)return Object(Symbol.prototype.valueOf.call(e));if(t===`[object Map]`){let t=e,n=new Map;return t.forEach((e,t)=>{n.set(t,e)}),n}if(t===`[object Set]`){let t=e,n=new Set;return t.forEach(e=>{n.add(e)}),n}if(t===`[object Arguments]`){let t=e,n={};return fS(n,t),n.length=t.length,n[Symbol.iterator]=t[Symbol.iterator],n}let n={};return hS(n,e),fS(n,e),pS(n,e),n}function dS(e){switch(Ub(e)){case Jb:case $b:case tx:case ix:case qb:case Xb:case mx:case hx:case ux:case dx:case fx:case Zb:case Kb:case nx:case Wb:case Qb:case Gb:case Yb:case ax:case ox:case sx:case cx:return!0;default:return!1}}function fS(e,t){for(let n in t)Object.hasOwn(t,n)&&(e[n]=t[n])}function pS(e,t){let n=Object.getOwnPropertySymbols(t);for(let r=0;r=n)&&(e[r]=t[r])}function hS(e,t){let n=Object.getPrototypeOf(t);n!==null&&typeof t.constructor==`function`&&Object.setPrototypeOf(e,n)}function gS(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function _S(e,t){let n={},r=Object.keys(e);for(let i=0;i{if(++n>=e)return t(...r)}}function ES(e,t,n){return typeof n!=`function`&&(n=()=>void 0),Yx(e,t,(...r)=>{let i=n(...r);if(i!==void 0)return!!i;if(e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set)return ES(Array.from(e),Array.from(t),TS(2,n))})}function DS(e){return e.substring(0,1).toUpperCase()+e.substring(1)}function OS(e){return DS(Db(e))}var W;try{W={window,document}}catch{W={window:{},document:{}}}function kS(){try{return navigator.userAgent.toLowerCase()}catch{return``}}var AS=kS(),G={isMac:jS(AS),isWindows:MS(AS),isGecko:NS(AS),isSafari:PS(AS),isiOS:FS(AS),isAndroid:IS(AS),isBlink:LS(AS),get isMediaForcedColors(){return zS()},get isMotionReduced(){return BS()},features:{isRegExpUnicodePropertySupported:RS()}};function jS(e){return e.indexOf(`macintosh`)>-1}function MS(e){return e.indexOf(`windows`)>-1}function NS(e){return!!e.match(/gecko\/\d+/)}function PS(e){return e.indexOf(` applewebkit/`)>-1&&e.indexOf(`chrome`)===-1}function FS(e){return!!e.match(/iphone|ipad/i)||jS(e)&&navigator.maxTouchPoints>0}function IS(e){return e.indexOf(`android`)>-1}function LS(e){return e.indexOf(`chrome/`)>-1&&e.indexOf(`edge/`)<0}function RS(){let e=!1;try{e=`ć`.search(RegExp(`[\\p{L}]`,`u`))===0}catch{}return e}function zS(){return W.window.matchMedia?W.window.matchMedia(`(forced-colors: active)`).matches:!1}function BS(){return W.window.matchMedia?W.window.matchMedia(`(prefers-reduced-motion)`).matches:!1}function VS(e,t,n,r){n||=function(e,t){return e===t};let i=Array.isArray(e)?e:Array.prototype.slice.call(e),a=Array.isArray(t)?t:Array.prototype.slice.call(t),o=HS(i,a,n);return r?KS(o,a.length):GS(a,o)}function HS(e,t,n){let r=US(e,t,n);if(r===-1)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};let i=US(WS(e,r),WS(t,r),n);return{firstIndex:r,lastIndexOld:e.length-i,lastIndexNew:t.length-i}}function US(e,t,n){for(let r=0;r0&&n.push({index:r,type:`insert`,values:e.slice(r,a)}),i-r>0&&n.push({index:r+(a-r),type:`delete`,howMany:i-r}),n}function KS(e,t){let{firstIndex:n,lastIndexOld:r,lastIndexNew:i}=e;if(n===-1)return Array(t).fill(`equal`);let a=[];return n>0&&(a=a.concat(Array(n).fill(`equal`))),i-n>0&&(a=a.concat(Array(i-n).fill(`insert`))),r-n>0&&(a=a.concat(Array(r-n).fill(`delete`))),i200||i>200||r+i>300)return qS.fastDiff(e,t,n,!0);let a,o;if(il?-1:1;u[r+f]&&(u[r]=u[r+f].slice(0)),u[r]||(u[r]=[]),u[r].push(i>l?a:o);let p=Math.max(i,l),m=p-r;for(;ml;m--)d[m]=f(m);d[l]=f(l),p++}while(d[l]!==c);return u[l].slice(1)};qS.fastDiff=VS;function JS(){return function e(){e.called=!0}}var YS=class{source;name;path;stop;off;return;constructor(e,t){this.source=e,this.name=t,this.path=[],this.stop=JS(),this.off=JS()}},XS=Array(256).fill(``).map((e,t)=>(`0`+t.toString(16)).slice(-2));function ZS(){let[e,t,n,r]=crypto.getRandomValues(new Uint32Array(4));return`e`+XS[e>>0&255]+XS[e>>8&255]+XS[e>>16&255]+XS[e>>24&255]+XS[t>>0&255]+XS[t>>8&255]+XS[t>>16&255]+XS[t>>24&255]+XS[n>>0&255]+XS[n>>8&255]+XS[n>>16&255]+XS[n>>24&255]+XS[r>>0&255]+XS[r>>8&255]+XS[r>>16&255]+XS[r>>24&255]}var QS={get(e=`normal`){return typeof e==`number`?e:this[e]||this.normal},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function $S(e,t){let n=QS.get(t.priority),r=0,i=e.length;for(;r>1;QS.get(e[t].priority){if(typeof t==`object`&&t){if(r.has(t))return`[object ${t.constructor.name}]`;r.add(t)}return t})}`:``,a=rC(e),o=n?`\nOriginal error: ${n.name}: ${n.message}`:``;return e+i+a+o}function aC(e,t){let n=rC(e);return t?[e,t,n]:[e,n]}var oC=`48.3.1`,sC=new Date(2026,5,2);if(globalThis.CKEDITOR_VERSION)throw new K(`ckeditor-duplicated-modules`,null);globalThis.CKEDITOR_VERSION=oC;var cC=Symbol(`listeningTo`),lC=Symbol(`emitterId`),uC=Symbol(`delegations`),dC=fC(Object);function fC(e){if(!e)return dC;class t extends e{on(e,t,n){this.listenTo(this,e,t,n)}once(e,t,n){let r=!1;this.listenTo(this,e,(e,...n)=>{r||(r=!0,e.off(),t.call(this,e,...n))},n)}off(e,t){this.stopListening(this,e,t)}listenTo(e,t,n,r={}){let i,a;this[cC]||(this[cC]={});let o=this[cC];hC(e)||mC(e);let s=hC(e);(i=o[s])||(i=o[s]={emitter:e,callbacks:{}}),(a=i.callbacks[t])||(a=i.callbacks[t]=[]),a.push(n),SC(this,e,t,n,r)}stopListening(e,t,n){let r=this[cC],i=e&&hC(e),a=r&&i?r[i]:void 0,o=a&&t?a.callbacks[t]:void 0;if(!(!r||e&&!a||t&&!o))if(n)CC(this,e,t,n),o.indexOf(n)!==-1&&(o.length===1?delete a.callbacks[t]:CC(this,e,t,n));else if(o){for(;n=o.pop();)CC(this,e,t,n);delete a.callbacks[t]}else if(a){for(t in a.callbacks)this.stopListening(e,t);delete r[i]}else{for(i in r)this.stopListening(r[i].emitter);delete this[cC]}}fire(e,...t){try{let n=e instanceof YS?e:new YS(this,e),r=n.name,i=bC(this,r);if(n.path.push(this),i){i=i.slice();for(let e=0;e{this[uC]||(this[uC]=new Map),e.forEach(e=>{let r=this[uC].get(e);r?r.set(t,n):this[uC].set(e,new Map([[t,n]]))})}}}stopDelegating(e,t){if(this[uC])if(!e)this[uC].clear();else if(!t)this[uC].delete(e);else{let n=this[uC].get(e);n&&n.delete(t)}}_addEventListener(e,t,n){vC(this,e);let r=yC(this,e),i={callback:t,priority:QS.get(n.priority)};for(let e of r)$S(e,i)}_removeEventListener(e,t){let n=yC(this,e);for(let e of n)for(let n=0;n-1?n.substring(0,r):``}while(n);return null}function xC(e,t,n){for(let[r,i]of e){i?typeof i==`function`&&(i=i(t.name)):i=t.name;let e=new YS(t.source,i);e.path=[...t.path],r.fire(e,...n)}}function SC(e,t,n,r,i){t._addEventListener?t._addEventListener(n,r,i):e._addEventListener.call(t,n,r,i)}function CC(e,t,n,r){t._removeEventListener?t._removeEventListener(n,r):e._removeEventListener.call(t,n,r)}var wC=Symbol(`observableProperties`),TC=Symbol(`boundObservables`),EC=Symbol(`boundProperties`),DC=Symbol(`decoratedMethods`),OC=Symbol(`decoratedOriginal`),kC=AC(fC());function AC(e){if(!e)return kC;class t extends e{set(e,t){if(Mb(e)){Object.keys(e).forEach(t=>{this.set(t,e[t])},this);return}jC(this);let n=this[wC];if(e in this&&!n.has(e))throw new K(`observable-set-cannot-override`,this);Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get(){return n.get(e)},set(t){let r=n.get(e),i=this.fire(`set:${e}`,e,t,r);i===void 0&&(i=t),(r!==i||!n.has(e))&&(n.set(e,i),this.fire(`change:${e}`,e,i,r))}}),this[e]=t}bind(...e){if(!e.length||!FC(e))throw new K(`observable-bind-wrong-properties`,this);if(new Set(e).size!==e.length)throw new K(`observable-bind-duplicate-properties`,this);jC(this);let t=this[EC];e.forEach(e=>{if(t.has(e))throw new K(`observable-bind-rebind`,this)});let n=new Map;return e.forEach(e=>{let r={property:e,to:[]};t.set(e,r),n.set(e,r)}),{to:MC,toMany:NC,_observable:this,_bindProperties:e,_to:[],_bindings:n}}unbind(...e){if(!this[wC])return;let t=this[EC],n=this[TC];if(e.length){if(!FC(e))throw new K(`observable-unbind-wrong-properties`,this);e.forEach(e=>{let r=t.get(e);r&&(r.to.forEach(([e,t])=>{let i=n.get(e),a=i[t];a.delete(r),a.size||delete i[t],Object.keys(i).length||(n.delete(e),this.stopListening(e,`change`))}),t.delete(e))})}else n.forEach((e,t)=>{this.stopListening(t,`change`)}),n.clear(),t.clear()}decorate(e){jC(this);let t=this[e];if(!t)throw new K(`observablemixin-cannot-decorate-undefined`,this,{object:this,methodName:e});this.on(e,(e,n)=>{e.return=t.apply(this,n)}),this[e]=function(...t){return this.fire(e,t)},this[e][OC]=t,this[DC]||(this[DC]=[]),this[DC].push(e)}stopListening(e,t,n){if(!e&&this[DC]){for(let e of this[DC])this[e]=this[e][OC];delete this[DC]}super.stopListening(e,t,n)}[wC];[DC];[EC];[TC]}return t}function jC(e){e[wC]||(Object.defineProperty(e,wC,{value:new Map}),Object.defineProperty(e,TC,{value:new Map}),Object.defineProperty(e,EC,{value:new Map}))}function MC(...e){let t=IC(...e),n=Array.from(this._bindings.keys()),r=n.length;if(!t.callback&&t.to.length>1)throw new K(`observable-bind-to-no-callback`,this);if(r>1&&t.callback)throw new K(`observable-bind-to-extra-callback`,this);t.to.forEach(e=>{if(e.properties.length&&e.properties.length!==r)throw new K(`observable-bind-to-properties-length`,this);e.properties.length||(e.properties=this._bindProperties)}),this._to=t.to,t.callback&&(this._bindings.get(n[0]).callback=t.callback),BC(this._observable,this._to),RC(this),this._bindProperties.forEach(e=>{zC(this._observable,e)})}function NC(e,t,n){if(this._bindings.size>1)throw new K(`observable-bind-to-many-not-one-binding`,this);this.to(...PC(e,t),n)}function PC(e,t){let n=e.map(e=>[e,t]);return Array.prototype.concat.apply([],n)}function FC(e){return e.every(e=>typeof e==`string`)}function IC(...e){if(!e.length)throw new K(`observable-bind-to-parse-error`,null);let t={to:[]},n;return typeof e[e.length-1]==`function`&&(t.callback=e.pop()),e.forEach(e=>{if(typeof e==`string`)n.properties.push(e);else if(typeof e==`object`)n={observable:e,properties:[]},t.to.push(n);else throw new K(`observable-bind-to-parse-error`,null)}),t}function LC(e,t,n,r){let i=e[TC],a=i.get(n),o=a||{};o[r]||(o[r]=new Set),o[r].add(t),a||i.set(n,o)}function RC(e){let t;e._bindings.forEach((n,r)=>{e._to.forEach(i=>{t=i.properties[n.callback?0:e._bindProperties.indexOf(r)],n.to.push([i.observable,t]),LC(e._observable,n,i.observable,t)})})}function zC(e,t){let n=e[EC].get(t),r;n.callback?r=n.callback.apply(e,n.to.map(e=>e[0][e[1]])):(r=n.to[0],r=r[0][r[1]]),Object.prototype.hasOwnProperty.call(e,t)?e[t]=r:e.set(t,r)}function BC(e,t){t.forEach(t=>{let n=e[TC],r;n.get(t.observable)||e.listenTo(t.observable,`change`,(i,a)=>{r=n.get(t.observable)[a],r&&r.forEach(t=>{zC(e,t.property)})})})}var VC=class{_replacedElements;constructor(){this._replacedElements=[]}replace(e,t){this._replacedElements.push({element:e,newElement:t}),e.style.display=`none`,t&&e.parentNode.insertBefore(t,e.nextSibling)}restore(){this._replacedElements.forEach(({element:e,newElement:t})=>{e.style.display=``,t&&t.remove()}),this._replacedElements=[]}};function HC(e){let t=0;for(let n of e)t++;return t}function UC(e,t){let n=Math.min(e.length,t.length);for(let r=0;r{this._setToTarget(e,r,t[r],n)})}};function qC(e){return Cx(e,JC)}function JC(e){return wS(e)||typeof e==`function`?e:void 0}function YC(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}function XC(e){let t=Object.prototype.toString.apply(e);return t==`[object Window]`||t==`[object global]`}var ZC=$C(fC()),QC=fC();function $C(e){if(!e)return ZC;class t extends e{listenTo(e,t,n,r={}){if(YC(e)||XC(e)||e instanceof W.window.EventTarget){let i={capture:!!r.useCapture,passive:!!r.usePassive},a=this._getProxyEmitter(e,i)||new ew(e,i);this.listenTo(a,t,n,r)}else super.listenTo(e,t,n,r)}stopListening(e,t,n){if(YC(e)||XC(e)||e instanceof W.window.EventTarget){let r=this._getAllProxyEmitters(e);for(let e of r)this.stopListening(e,t,n)}else super.stopListening(e,t,n)}_getProxyEmitter(e,t){return pC(this,nw(e,t))}_getAllProxyEmitters(e){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(t=>this._getProxyEmitter(e,t)).filter(e=>!!e)}}return t}var ew=class extends QC{_domNode;_options;constructor(e,t){super(),mC(this,nw(e,t)),this._domNode=e,this._options=t}_domListeners;attach(e){if(this._domListeners&&this._domListeners[e])return;let t=this._createDomListener(e);this._domNode.addEventListener(e,t,this._options),this._domListeners||={},this._domListeners[e]=t}detach(e){let t;this._domListeners[e]&&(!(t=this._events[e])||!t.callbacks.length)&&this._domListeners[e].removeListener()}_addEventListener(e,t,n){this.attach(e),fC().prototype._addEventListener.call(this,e,t,n)}_removeEventListener(e,t){fC().prototype._removeEventListener.call(this,e,t),this.detach(e)}_createDomListener(e){let t=t=>{this.fire(e,t)};return t.removeListener=()=>{this._domNode.removeEventListener(e,t,this._options),delete this._domListeners[e]},t}};function tw(e){return e[`data-ck-expando`]||=ZS()}function nw(e,t){let n=tw(e);for(let e of Object.keys(t).sort())t[e]&&(n+=`-`+e);return n}function rw(e){let t=[],n=e;for(;n&&n.nodeType!=Node.DOCUMENT_NODE;)t.unshift(n),n=n.parentNode;return t}function iw(e){return e instanceof HTMLTextAreaElement?e.value:e.innerHTML}function aw(e){let t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}function ow(e){if(!e.target)return null;let t=e.target.ownerDocument,n=e.clientX,r=e.clientY,i=null;return t.caretRangeFromPoint&&t.caretRangeFromPoint(n,r)?i=t.caretRangeFromPoint(n,r):e.rangeParent&&(i=t.createRange(),i.setStart(e.rangeParent,e.rangeOffset),i.collapse(!0)),i}function sw(e){return!e||!e.parentNode||e.offsetParent===W.document.body?null:e.offsetParent}function cw(e){return Object.prototype.toString.call(e)==`[object Text]`}function lw(e){return Object.prototype.toString.apply(e)==`[object Range]`}var uw=[`top`,`right`,`bottom`,`left`,`width`,`height`],dw=new Set([`relative`,`absolute`,`fixed`,`sticky`]),fw=class e{top;right;bottom;left;width;height;_source;constructor(t){let n=lw(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),hw(t)||n)if(n){let n=e.getDomRangeRects(t);pw(this,e.getBoundingRect(n))}else pw(this,t.getBoundingClientRect());else if(XC(t)){let{innerWidth:e,innerHeight:n}=t;pw(this,{top:0,right:e,bottom:n,left:0,width:e,height:n})}else pw(this,t)}clone(){return new e(this)}moveTo(e,t){return this.top=t,this.right=e+this.width,this.bottom=t+this.height,this.left=e,this}moveBy(e,t){return this.top+=t,this.right+=e,this.left+=e,this.bottom+=t,this}getIntersection(t){let n={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left),width:0,height:0};if(n.width=n.right-n.left,n.height=n.bottom-n.top,n.width<0||n.height<0)return null;{let t=new e(n);return t._source=this._source,t}}getIntersectionArea(e){let t=this.getIntersection(e);return t?t.getArea():0}getArea(){return this.width*this.height}getVisible(){let t=this._source,n=this.clone();if(mw(t))return n;let r=t,i=t.parentNode||t.commonAncestorContainer,a;for(;i&&!mw(i);){let t=_w(i)===`visible`;if(vw(r)&&(a=r),t||a&&gw(a)===`absolute`&&!vw(i)){r=i,i=i.parentNode;continue}let o=new e(i),s=n.getIntersection(o);if(s)s.getArea(){let r=new e(n);return r._source=t,r})}static getBoundingRect(t){let n={left:1/0,top:1/0,right:-1/0,bottom:-1/0,width:0,height:0},r=0;for(let e of t)r++,n.left=Math.min(n.left,e.left),n.top=Math.min(n.top,e.top),n.right=Math.max(n.right,e.right),n.bottom=Math.max(n.bottom,e.bottom);return r==0?null:(n.width=n.right-n.left,n.height=n.bottom-n.top,new e(n))}};function pw(e,t){for(let n of uw)e[n]=t[n]}function mw(e){return hw(e)?e===e.ownerDocument.body:!1}function hw(e){return typeof e==`object`&&!!e&&e.nodeType===1&&typeof e.getBoundingClientRect==`function`}function gw(e){return e.ownerDocument.defaultView.getComputedStyle(e).position}function _w(e){return e instanceof HTMLElement?e.ownerDocument.defaultView.getComputedStyle(e).overflow:`visible`}function vw(e){return e instanceof HTMLElement&&dw.has(gw(e))}function yw(e,t){let n=new fw(t),r=aw(t),i=0,a=0;i-=n.left,a-=n.top,i+=t.scrollLeft,a+=t.scrollTop,i-=r.left,a-=r.top,e.moveBy(i,a)}var bw=class e{_element;_callback;static _observerInstance=null;static _elementCallbacks=null;constructor(t,n){e._observerInstance||e._createObserver(),this._element=t,this._callback=n,e._addElementCallback(t,n),e._observerInstance.observe(t)}get element(){return this._element}destroy(){e._deleteElementCallback(this._element,this._callback)}static _addElementCallback(t,n){e._elementCallbacks||=new Map;let r=e._elementCallbacks.get(t);r||(r=new Set,e._elementCallbacks.set(t,r)),r.add(n)}static _deleteElementCallback(t,n){let r=e._getElementCallbacks(t);r&&(r.delete(n),r.size||(e._elementCallbacks.delete(t),e._observerInstance.unobserve(t))),e._elementCallbacks&&!e._elementCallbacks.size&&(e._observerInstance=null,e._elementCallbacks=null)}static _getElementCallbacks(t){return e._elementCallbacks?e._elementCallbacks.get(t):null}static _createObserver(){e._observerInstance=new W.window.ResizeObserver(t=>{for(let n of t){let t=e._getElementCallbacks(n.target);if(t)for(let e of t)e(n)}})}};function xw(e,t){e instanceof HTMLTextAreaElement&&(e.value=t),e.innerHTML=t}function Sw(e){return t=>t+e}function Cw(e){let t=0;for(;e.previousSibling;)e=e.previousSibling,t++;return t}function ww(e,t,n){e.insertBefore(n,e.childNodes[t]||null)}function Tw(e){return e&&e.nodeType===Node.COMMENT_NODE}function Ew(e){try{W.document.createAttribute(e)}catch{return!1}return!0}function Dw(e){return e?cw(e)?Dw(e.parentElement):e.getClientRects?!!e.getClientRects().length:!1:!1}function Ow({element:e,target:t,positions:n,limiter:r,fitInViewport:i,viewportOffsetConfig:a}){CS(t)&&(t=t()),CS(r)&&(r=r());let o=sw(e),s=Aw(a),c=new fw(e),l=kw(t,s),u;if(!l||!s.getIntersection(l))return null;let d={targetRect:l,elementRect:c,positionedElementAncestor:o,viewportRect:s};if(!r&&!i)u=new Mw(n[0],d);else{if(r){let e=kw(r,s);e&&(d.limiterRect=e)}u=jw(n,d)}return u}function kw(e,t){let n=new fw(e).getVisible();return n?n.getIntersection(t):null}function Aw(e){e=Object.assign({top:0,bottom:0,left:0,right:0},e);let t=new fw(W.window);return t.top+=e.top,t.height-=e.top,t.bottom-=e.bottom,t.height-=e.bottom,t.left+=e.left,t.right-=e.right,t.width-=e.left+e.right,t}function jw(e,t){let{elementRect:n}=t,r=n.getArea(),i=e.map(e=>new Mw(e,t)).filter(e=>!!e.name),a=0,o=null;for(let e of i){let{limiterIntersectionArea:t,viewportIntersectionArea:n}=e;if(t===r)return e;let i=n**2+t**2;i>a&&(a=i,o=e)}return o}var Mw=class{name;config;_positioningFunctionCoordinates;_options;_cachedRect;_cachedAbsoluteRect;constructor(e,t){let n=e(t.targetRect,t.elementRect,t.viewportRect,t.limiterRect);if(!n)return;let{left:r,top:i,name:a,config:o}=n;this.name=a,this.config=o,this._positioningFunctionCoordinates={left:r,top:i},this._options=t}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){let e=this._options.limiterRect;return e?e.getIntersectionArea(this._rect):0}get viewportIntersectionArea(){return this._options.viewportRect.getIntersectionArea(this._rect)}get _rect(){return this._cachedRect||=this._options.elementRect.clone().moveTo(this._positioningFunctionCoordinates.left,this._positioningFunctionCoordinates.top),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||=this._rect.toAbsoluteRect(),this._cachedAbsoluteRect}};function Nw(e){let t=e.parentNode;t&&t.removeChild(e)}function Pw(){let e=W.window.visualViewport;return!e||!(G.isiOS||G.isSafari)?{left:0,top:0}:{left:Math.max(Math.round(e.offsetLeft),0),top:Math.max(Math.round(e.offsetTop),0)}}function Fw({target:e,viewportOffset:t=0,ancestorOffset:n=0,alignToTop:r,forceScroll:i}){let a=Hw(e),o=a,s=null;for(t=Gw(t);o;){let c;c=Uw(o==a?e:s),Lw({parent:c,getRect:()=>Ww(e,o),alignToTop:r,ancestorOffset:n,forceScroll:i});let l=Ww(e,o),u=Ww(c,o);if(l.height>u.height){let e=l.getIntersection(u);e&&(l=e)}if(Iw({window:o,rect:l,viewportOffset:t,alignToTop:r,forceScroll:i}),o.parent!=o){if(s=o.frameElement,o=o.parent,!s)return}else o=null}}function Iw({window:e,rect:t,alignToTop:n,forceScroll:r,viewportOffset:i}){let a=t.clone().moveBy(0,i.bottom),o=t.clone().moveBy(0,-i.top),s=new fw(e).excludeScrollbarsAndBorders(),c=[o,a],l=n&&r,u=c.every(e=>s.contains(e)),{scrollX:d,scrollY:f}=e,p=d,m=f;l?f-=s.top-t.top+i.top:u||(zw(o,s)?f-=s.top-t.top+i.top:Rw(a,s)&&(n?f+=t.top-s.top-i.top:f+=t.bottom-s.bottom+i.bottom)),u||(Bw(t,s)?d-=s.left-t.left+i.left:Vw(t,s)&&(d+=t.right-s.right+i.right)),(d!=p||f!==m)&&e.scrollTo(d,f)}function Lw({parent:e,getRect:t,alignToTop:n,forceScroll:r,ancestorOffset:i=0,limiterElement:a}){let o=Hw(e),s=n&&r,c,l,u,d=a||o.document.body;for(;e!=d;)l=t(),c=new fw(e).excludeScrollbarsAndBorders(),u=c.contains(l),s?e.scrollTop-=c.top-l.top+i:u||(zw(l,c)?e.scrollTop-=c.top-l.top+i:Rw(l,c)&&(n?e.scrollTop+=l.top-c.top-i:e.scrollTop+=l.bottom-c.bottom+i)),u||(Bw(l,c)?e.scrollLeft-=c.left-l.left+i:Vw(l,c)&&(e.scrollLeft+=l.right-c.right+i)),e=e.parentNode}function Rw(e,t){return e.bottom>t.bottom}function zw(e,t){return e.topt.right}function Hw(e){return lw(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function Uw(e){if(lw(e)){let t=e.commonAncestorContainer;return cw(t)&&(t=t.parentNode),t}else return e.parentNode}function Ww(e,t){let n=Hw(e),r=new fw(e);if(n===t)return r;{let e=n;for(;e!=t;){let t=e.frameElement,n=new fw(t).excludeScrollbarsAndBorders();r.moveBy(n.left,n.top),e=e.parent}}return r}function Gw(e){return typeof e==`number`?{top:e,bottom:e,left:e,right:e}:e}var Kw={ctrl:`⌃`,cmd:`⌘`,alt:`⌥`,shift:`⇧`},qw={ctrl:`Ctrl+`,alt:`Alt+`,shift:`Shift+`},Jw={37:`←`,38:`↑`,39:`→`,40:`↓`,9:`⇥`,33:`Page Up`,34:`Page Down`},q=rT(),Yw=Object.fromEntries(Object.entries(q).map(([e,t])=>{let n;return n=t in Jw?Jw[t]:e.charAt(0).toUpperCase()+e.slice(1),[t,n]}));function Xw(e){let t;if(typeof e==`string`){if(t=q[e.toLowerCase()],!t)throw new K(`keyboard-unknown-key`,null,{key:e})}else t=e.keyCode+(e.altKey?q.alt:0)+(e.ctrlKey?q.ctrl:0)+(e.shiftKey?q.shift:0)+(e.metaKey?q.cmd:0);return t}function Zw(e){return typeof e==`string`&&(e=iT(e)),e.map(e=>typeof e==`string`?tT(e):e).reduce((e,t)=>t+e,0)}function Qw(e,t){let n=Zw(e),r=t?t===`Mac`:G.isMac||G.isiOS;return Object.entries(r?Kw:qw).reduce((e,[t,r])=>((n&q[t])!=0&&(n&=~q[t],e+=r),e),``)+(n?Yw[n]:``)}function $w(e){return e==q.arrowright||e==q.arrowleft||e==q.arrowup||e==q.arrowdown}function eT(e,t){let n=t===`ltr`;switch(e){case q.arrowleft:return n?`left`:`right`;case q.arrowright:return n?`right`:`left`;case q.arrowup:return`up`;case q.arrowdown:return`down`}}function tT(e){if(e.endsWith(`!`))return Xw(e.slice(0,-1));let t=Xw(e);return(G.isMac||G.isiOS)&&t==q.ctrl?q.cmd:t}function nT(e,t){let n=eT(e,t);return n===`down`||n===`right`}function rT(){let e={pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let t=65;t<=90;t++){let n=String.fromCharCode(t);e[n.toLowerCase()]=t}for(let t=48;t<=57;t++)e[t-48]=t;for(let t=112;t<=123;t++)e[`f`+(t-111)]=t;return Object.assign(e,{"'":222,",":108,"-":109,".":110,"/":111,";":186,"=":187,"[":219,"\\":220,"]":221,"`":223}),e}function iT(e){return e.split(`+`).map(e=>e.trim())}var aT=[`ar`,`ara`,`dv`,`div`,`fa`,`per`,`fas`,`he`,`heb`,`ku`,`kur`,`ug`,`uig`,`ur`,`urd`];function oT(e){return aT.includes(e)?`rtl`:`ltr`}function sT(e){return Array.isArray(e)?e:[e]}W.window.CKEDITOR_TRANSLATIONS||(W.window.CKEDITOR_TRANSLATIONS={});function cT(e,t,n=1,r){if(typeof n!=`number`)throw new K(`translation-service-quantity-not-a-number`,null,{quantity:n});let i=r||W.window.CKEDITOR_TRANSLATIONS,a=dT(i);a===1&&(e=Object.keys(i)[0]);let o=t.id||t.string;if(a===0||!uT(e,o,i))return n===1?t.string:t.plural;let s=i[e].dictionary,c=i[e].getPluralForm||(e=>e===1?0:1),l=s[o];return typeof l==`string`?l:l[Number(c(n))]}function lT(e){return Array.isArray(e)?e.reduce((e,t)=>SS(e,t)):e}function uT(e,t,n){return!!n[e]&&!!n[e].dictionary[t]}function dT(e){return Object.keys(e).length}var fT=class{uiLanguage;uiLanguageDirection;contentLanguage;contentLanguageDirection;t;translations;constructor({uiLanguage:e=`en`,contentLanguage:t,translations:n}={}){this.uiLanguage=e,this.contentLanguage=t||this.uiLanguage,this.uiLanguageDirection=oT(this.uiLanguage),this.contentLanguageDirection=oT(this.contentLanguage),this.translations=lT(n),this.t=(e,t)=>this._t(e,t)}_t(e,t=[]){t=sT(t),typeof e==`string`&&(e={string:e});let n=e.plural?t[0]:1;return pT(cT(this.uiLanguage,e,n,this.translations),t)}};function pT(e,t){return e.replace(/%(\d+)/g,(e,n)=>nthis._items.length||t<0)throw new K(`collection-add-item-invalid-index`,this);let n=0;for(let r of e){let e=this._getItemIdBeforeAdding(r),i=t+n;this._items.splice(i,0,r),this._itemMap.set(e,r),this.fire(`add`,r,i),n++}return this.fire(`change`,{added:e,removed:[],index:t}),this}get(e){let t;if(typeof e==`string`)t=this._itemMap.get(e);else if(typeof e==`number`)t=this._items[e];else throw new K(`collection-get-invalid-arg`,this);return t||null}has(e){if(typeof e==`string`)return this._itemMap.has(e);{let t=e[this._idProperty];return t&&this._itemMap.has(t)}}getIndex(e){let t;return t=typeof e==`string`?this._itemMap.get(e):e,t?this._items.indexOf(t):-1}remove(e){let[t,n]=this._remove(e);return this.fire(`change`,{added:[],removed:[t],index:n}),t}map(e,t){return this._items.map(e,t)}forEach(e,t){this._items.forEach(e,t)}find(e,t){return this._items.find(e,t)}filter(e,t){return this._items.filter(e,t)}clear(){this._bindToCollection&&=(this.stopListening(this._bindToCollection),null);let e=Array.from(this._items);for(;this.length;)this._remove(0);this.fire(`change`,{added:[],removed:e,index:0})}bindTo(e){if(this._bindToCollection)throw new K(`collection-bind-to-rebind`,this);return this._bindToCollection=e,{as:e=>{this._setUpBindToBinding(t=>new e(t))},using:e=>{typeof e==`function`?this._setUpBindToBinding(e):this._setUpBindToBinding(t=>t[e])}}}_setUpBindToBinding(e){let t=this._bindToCollection,n=(n,r,i)=>{let a=t._bindToCollection==this,o=t._bindToInternalToExternalMap.get(r);if(a&&o)this._bindToExternalToInternalMap.set(r,o),this._bindToInternalToExternalMap.set(o,r);else{let n=e(r);if(!n){this._skippedIndexesFromExternal.push(i);return}let a=i;for(let e of this._skippedIndexesFromExternal)i>e&&a--;for(let e of t._skippedIndexesFromExternal)a>=e&&a++;this._bindToExternalToInternalMap.set(r,n),this._bindToInternalToExternalMap.set(n,r),this.add(n,a);for(let e=0;e{let r=this._bindToExternalToInternalMap.get(t);r&&this.remove(r),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((e,t)=>(nt&&e.push(t),e),[])})}_getItemIdBeforeAdding(e){let t=this._idProperty,n;if(t in e){if(n=e[t],typeof n!=`string`)throw new K(`collection-add-invalid-id`,this);if(this.get(n))throw new K(`collection-add-item-already-exists`,this)}else e[t]=n=ZS();return n}_remove(e){let t,n,r,i=!1,a=this._idProperty;if(typeof e==`string`?(n=e,r=this._itemMap.get(n),i=!r,r&&(t=this._items.indexOf(r))):typeof e==`number`?(t=e,r=this._items[t],i=!r,r&&(n=r[a])):(r=e,n=r[a],t=this._items.indexOf(r),i=t==-1||!this._itemMap.get(n)),i)throw new K(`collection-remove-404`,this);this._items.splice(t,1),this._itemMap.delete(n);let o=this._bindToInternalToExternalMap.get(r);return this._bindToInternalToExternalMap.delete(r),this._bindToExternalToInternalMap.delete(o),this.fire(`remove`,r,t),[r,t]}[Symbol.iterator](){return this._items[Symbol.iterator]()}};function gT(e){let t=e.next();return t.done?null:t.value}var _T=$C(AC()),vT=class extends _T{_elements=new Set;_externalViews=new Set;_blurTimeout=null;constructor(){super(),this.set(`isFocused`,!1),this.set(`focusedElement`,null)}get elements(){return Array.from(this._elements.values())}get externalViews(){return Array.from(this._externalViews.values())}add(e){if(bT(e))this._addElement(e);else if(yT(e))this._addView(e);else{if(!e.element)throw new K(`focustracker-add-view-missing-element`,{focusTracker:this,view:e});this._addElement(e.element)}}remove(e){bT(e)?this._removeElement(e):yT(e)?this._removeView(e):this._removeElement(e.element)}_addElement(e){if(this._elements.has(e))throw new K(`focustracker-add-element-already-exist`,this);this.listenTo(e,`focus`,()=>{let t=this.externalViews.find(t=>xT(e,t));t?this._focus(t.element):this._focus(e)},{useCapture:!0}),this.listenTo(e,`blur`,()=>{this._blur()},{useCapture:!0}),this._elements.add(e)}_removeElement(e){this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e)),e===this.focusedElement&&this._blur()}_addView(e){e.element&&this._addElement(e.element),this.listenTo(e.focusTracker,`change:focusedElement`,()=>{e.focusTracker.focusedElement?e.element&&this._focus(e.element):this._blur()}),this._externalViews.add(e)}_removeView(e){e.element&&this._removeElement(e.element),this.stopListening(e.focusTracker),this._externalViews.delete(e)}destroy(){this.stopListening(),this._elements.clear(),this._externalViews.clear(),this.isFocused=!1,this.focusedElement=null}_focus(e){this._clearBlurTimeout(),this.focusedElement=e,this.isFocused=!0}_blur(){this.elements.find(e=>e.contains(document.activeElement))||this.externalViews.find(e=>e.focusTracker.isFocused&&!e.focusTracker._blurTimeout)||(this._clearBlurTimeout(),this._blurTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0))}_clearBlurTimeout(){clearTimeout(this._blurTimeout),this._blurTimeout=null}};function yT(e){return`focusTracker`in e&&e.focusTracker instanceof vT}function bT(e){return wS(e)}function xT(e,t){return ST(e,t)?!0:!!t.focusTracker.externalViews.find(t=>ST(e,t))}function ST(e,t){return!!t.element&&t.element.contains(document.activeElement)&&e.contains(t.element)}var CT=class{_listener;constructor(){this._listener=new($C())}listenTo(e){this._listener.listenTo(e,`keydown`,(e,t)=>{this._listener.fire(`_keydown:`+Xw(t),t)})}set(e,t,n={}){let r=Zw(e),i=n.priority;this._listener.listenTo(this._listener,`_keydown:`+r,(e,r)=>{n.filter&&!n.filter(r)||(t(r,()=>{r.preventDefault(),r.stopPropagation(),e.stop()}),e.return=!0)},{priority:i})}press(e){return!!this._listener.fire(`_keydown:`+Xw(e),e)}stopListening(e){this._listener.stopListening(e)}destroy(){this.stopListening()}};function wT(e){let t=new Map;for(let n in e)t.set(n,e[n]);return t}function TT(e){return WC(e)?new Map(e):wT(e)}function ET(e,t,n){let r=e.length,i=t.length;for(let t=r-1;t>=n;t--)e[t+i]=e[t];for(let r=0;re(...i),t)}return r.cancel=()=>{clearTimeout(n)},r}function OT(e){try{if(!e.startsWith(`ey`))return null;let t=atob(e.replace(/-/g,`+`).replace(/_/g,`/`));return JSON.parse(t)}catch{return null}}function kT(){let e=[];for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n&1?n=3988292384^n>>>1:n>>>=1;e[t]=n}return e}function AT(e){let t=Array.isArray(e)?e:[e],n=kT(),r=-1,i=t.map(e=>Array.isArray(e)?e.join(``):String(e)).join(``);for(let e=0;e>>8^n[(r^t)&255]}return r=(r^-1)>>>0,r.toString(16).padStart(8,`0`)}function jT(e){return!!e&&e.length==1&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(e)}function MT(e){return!!e&&e.length==1&&/[\ud800-\udbff]/.test(e)}function NT(e){return!!e&&e.length==1&&/[\udc00-\udfff]/.test(e)}function PT(e,t){return MT(e.charAt(t-1))&&NT(e.charAt(t))}function FT(e,t){return jT(e.charAt(t))}var IT=RT();function LT(e,t){let n=String(e).matchAll(IT);return Array.from(n).some(e=>e.indexe.source).join(`|`)+`)`,r=`${t}|${n}(?:\u{200D}${n})*`;return new RegExp(r,`ug`)}function zT(e){if(!e)return null;let t=BT(e);return t?OT(t):null}function BT(e){let t=e.split(`.`);return t.length==3?t[1]:null}function VT(e,t){return(e.removeFeatures||[]).includes(t)}var HT=new WeakMap,UT=!1;function WT({view:e,element:t,text:n,isDirectHost:r=!0,keepOnFocus:i=!1}){let a=e.document;HT.has(a)||(HT.set(a,new Map),a.registerPostFixer(e=>YT(HT.get(a),e)),a.on(`change:isComposing`,()=>{e.change(e=>YT(HT.get(a),e))},{priority:`high`})),t.is(`editableElement`)&&t.on(`change:placeholder`,(e,t,n)=>o(n)),t.placeholder?o(t.placeholder):n&&o(n),n&&QT();function o(n){let o={text:n,isDirectHost:r,keepOnFocus:i,hostElement:r?t:null};HT.get(a).set(t,o),e.change(e=>YT([[t,o]],e))}}function GT(e,t){return t.hasClass(`ck-placeholder`)?!1:(e.addClass(`ck-placeholder`,t),!0)}function KT(e,t){return t.hasClass(`ck-placeholder`)?(e.removeClass(`ck-placeholder`,t),!0):!1}function qT(e,t){if(!e.isAttached()||JT(e))return!1;let n=e.document,r=n.selection.anchor;return n.isComposing&&r&&r.parent===e?!1:t||!n.isFocused?!0:!!r&&r.parent!==e}function JT(e){for(let t of e.getChildren())if(!t.is(`uiElement`))return!0;return!1}function YT(e,t){let n=[],r=!1;for(let[i,a]of e)a.isDirectHost&&(n.push(i),XT(t,i,a)&&(r=!0));for(let[i,a]of e){if(a.isDirectHost)continue;let e=ZT(i);e!==a.hostElement&&a.hostElement&&(t.removeAttribute(`data-placeholder`,a.hostElement),KT(t,a.hostElement),a.hostElement=null,r=!0),e&&(n.includes(e)||(a.hostElement=e,XT(t,i,a)&&(r=!0)))}return r}function XT(e,t,n){let{text:r,isDirectHost:i,hostElement:a}=n,o=!1;return a.getAttribute(`data-placeholder`)!==r&&(e.setAttribute(`data-placeholder`,r,a),o=!0),(i||t.childCount==1)&&qT(a,n.keepOnFocus)?GT(e,a)&&(o=!0):KT(e,a)&&(o=!0),o}function ZT(e){if(e.childCount){let t=e.getChild(0);if(t.is(`element`)&&!t.is(`uiElement`)&&!t.is(`attributeElement`))return t}return null}function QT(){UT||tC(`enableViewPlaceholder-deprecated-text-option`),UT=!0}var $T=class{is(){throw Error(`is() method is abstract`)}},eE=fC($T),tE=class extends eE{document;parent;constructor(e){super(),this.document=e,this.parent=null}get index(){let e;if(!this.parent)return null;if((e=this.parent.getChildIndex(this))==-1)throw new K(`view-node-not-found-in-parent`,this);return e}get nextSibling(){let e=this.index;return e!==null&&this.parent.getChild(e+1)||null}get previousSibling(){let e=this.index;return e!==null&&this.parent.getChild(e-1)||null}get root(){let e=this;for(;e.parent;)e=e.parent;return e}isAttached(){return this.root.is(`rootElement`)}getPath(){let e=[],t=this;for(;t.parent;)e.unshift(t.index),t=t.parent;return e}getAncestors(e={}){let t=[],n=e.includeSelf?this:this.parent;for(;n;)t[e.parentFirst?`push`:`unshift`](n),n=n.parent;return t}getCommonAncestor(e,t={}){let n=this.getAncestors(t),r=e.getAncestors(t),i=0;for(;n[i]==r[i]&&n[i];)i++;return i===0?null:n[i-1]}isBefore(e){if(this==e||this.root!==e.root)return!1;let t=this.getPath(),n=e.getPath(),r=UC(t,n);switch(r){case`prefix`:return!0;case`extension`:return!1;default:return t[r]e.data.length)throw new K(`view-textproxy-wrong-offsetintext`,this);if(n<0||t+n>e.data.length)throw new K(`view-textproxy-wrong-length`,this);this.data=e.data.substring(t,t+n),this.offsetInText=t}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}getAncestors(e={}){let t=[],n=e.includeSelf?this.textNode:this.parent;for(;n!==null;)t[e.parentFirst?`push`:`unshift`](n),n=n.parent;return t}};rE.prototype.is=function(e){return e===`$textProxy`||e===`view:$textProxy`||e===`textProxy`||e===`view:textProxy`};var iE=class e{_consumables=new Map;add(e,t){let n;if(e.is(`$text`)||e.is(`documentFragment`)){this._consumables.set(e,!0);return}this._consumables.has(e)?n=this._consumables.get(e):(n=new aE(e),this._consumables.set(e,n)),n.add(t?oE(t):e._getConsumables())}test(e,t){let n=this._consumables.get(e);return n===void 0?null:e.is(`$text`)||e.is(`documentFragment`)?n:n.test(oE(t))}consume(e,t){if(e.is(`$text`)||e.is(`documentFragment`))return this.test(e,t)?(this._consumables.set(e,!1),!0):!1;let n=this._consumables.get(e);return n!==void 0&&n.consume(oE(t))}revert(e,t){let n=this._consumables.get(e);n!==void 0&&(e.is(`$text`)||e.is(`documentFragment`)?this._consumables.set(e,!0):n.revert(oE(t)))}static createFrom(t,n){if(n||=new e,t.is(`$text`))n.add(t);else if(t.is(`element`)||t.is(`documentFragment`)){n.add(t);for(let r of t.getChildren())e.createFrom(r,n)}return n}},aE=class{element;_canConsumeName=null;_attributes=new Map;constructor(e){this.element=e}add(e){e.name&&(this._canConsumeName=!0);for(let[t,n]of e.attributes)if(n){let e=this._attributes.get(t);(!e||typeof e==`boolean`)&&(e=new Map,this._attributes.set(t,e)),e.set(n,!0)}else if(t==`style`||t==`class`)throw new K(`viewconsumable-invalid-attribute`,this);else this._attributes.set(t,!0)}test(e){if(e.name&&!this._canConsumeName)return this._canConsumeName;for(let[t,n]of e.attributes){let e=this._attributes.get(t);if(e===void 0)return null;if(e===!1)return!1;if(e!==!0){if(n){let t=e.get(n);if(t===void 0)return null;if(!t)return!1}else for(let t of e.values())if(!t)return!1}}return!0}consume(e){if(!this.test(e))return!1;e.name&&(this._canConsumeName=!1);for(let[t,n]of e.attributes){let e=this._attributes.get(t);if(typeof e==`boolean`)for(let[e]of this.element._getConsumables(t,n).attributes)this._attributes.set(e,!1);else if(n)for(let[,r]of this.element._getConsumables(t,n).attributes)e.set(r,!1);else for(let t of e.keys())e.set(t,!1)}return!0}revert(e){e.name&&(this._canConsumeName=!0);for(let[t,n]of e.attributes){let e=this._attributes.get(t);if(e===!1){this._attributes.set(t,!0);continue}if(!(e===void 0||e===!0))if(n)e.get(n)===!1&&e.set(n,!0);else for(let t of e.keys())e.set(t,!0)}}};function oE(e){let t=[];return`attributes`in e&&e.attributes&&sE(t,e.attributes),`classes`in e&&e.classes&&sE(t,e.classes,`class`),`styles`in e&&e.styles&&sE(t,e.styles,`style`),{name:e.name||!1,attributes:t}}function sE(e,t,n){if(typeof t==`string`){e.push(n?[n,t]:[t]);return}for(let r of t)Array.isArray(r)?e.push(r):e.push(n?[n,r]:[r])}var cE=class{_patterns=[];constructor(...e){this.add(...e)}add(...e){for(let t of e)(typeof t==`string`||t instanceof RegExp)&&(t={name:t}),this._patterns.push(t)}match(...e){for(let t of e)for(let e of this._patterns){let n=this._isElementMatching(t,e);if(n)return{element:t,pattern:e,match:n}}return null}matchAll(...e){let t=[];for(let n of e)for(let e of this._patterns){let r=this._isElementMatching(n,e);r&&t.push({element:n,pattern:e,match:r})}return t.length>0?t:null}getElementName(){if(this._patterns.length!==1)return null;let e=this._patterns[0],t=e.name;return typeof e!=`function`&&t&&!(t instanceof RegExp)?t:null}_isElementMatching(e,t){if(typeof t==`function`){let n=t(e);return!n||typeof n!=`object`?n:oE(n)}let n={};if(t.name&&(n.name=uE(t.name,e.name),!n.name))return null;let r=[];return t.attributes&&!fE(t.attributes,e,r)||t.classes&&!pE(t.classes,e,r)||t.styles&&!mE(t.styles,e,r)?null:(r.length&&(n.attributes=r),n)}};function lE(e,t){return e===!0||e===t||e instanceof RegExp&&!!String(t).match(e)}function uE(e,t){return e instanceof RegExp?!!t.match(e):e===t}function dE(e,t){if(Array.isArray(e))return e.map(e=>typeof e!=`object`||e instanceof RegExp?t?[t,e,!0]:[e,!0]:((e.key===void 0||e.value===void 0)&&tC(`matcher-pattern-missing-key-or-value`,e),t?[t,e.key,e.value]:[e.key,e.value]));if(typeof e!=`object`||e instanceof RegExp)return[t?[t,e,!0]:[e,!0]];let n=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.push(t?[t,r,e[r]]:[r,e[r]]);return n}function fE(e,t,n){let r;return typeof e==`object`&&!(e instanceof RegExp)&&!Array.isArray(e)?(e.style!==void 0&&tC(`matcher-pattern-deprecated-attributes-style-key`,e),e.class!==void 0&&tC(`matcher-pattern-deprecated-attributes-class-key`,e)):r=[`class`,`style`],t._collectAttributesMatch(dE(e),n,r)}function pE(e,t,n){return t._collectAttributesMatch(dE(e,`class`),n)}function mE(e,t,n){return t._collectAttributesMatch(dE(e,`style`),n)}var hE=class{_styles;_cachedStyleNames=null;_cachedExpandedStyleNames=null;_styleProcessor;constructor(e){this._styles={},this._styleProcessor=e}get isEmpty(){return!Object.entries(this._styles).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(e){this.clear();let t=_E(e);for(let[e,n]of t)this._styleProcessor.toNormalizedForm(e,n,this._styles);return this}has(e){if(this.isEmpty)return!1;let t=this._styleProcessor.getReducedForm(e,this._styles).find(([t])=>t===e);return Array.isArray(t)}set(e,t){if(this._cachedStyleNames=null,this._cachedExpandedStyleNames=null,Mb(e))for(let[t,n]of Object.entries(e))this._styleProcessor.toNormalizedForm(t,n,this._styles);else this._styleProcessor.toNormalizedForm(e,t,this._styles)}remove(e){let t={};for(let n of sT(e)){let e=vE(n),r=kb(this._styles,e);if(r)yE(t,e,r);else{let e=this.getAsString(n);e!==void 0&&this._styleProcessor.toNormalizedForm(n,e,t)}}Object.keys(t).length&&(bE(this._styles,t),this._cachedStyleNames=null,this._cachedExpandedStyleNames=null)}getNormalized(e){return this._styleProcessor.getNormalized(e,this._styles)}toString(){return this.isEmpty?``:this.getStylesEntries().map(e=>e.join(`:`)).sort().join(`;`)+`;`}getAsString(e){if(this.isEmpty)return;if(this._styles[e]&&!Mb(this._styles[e]))return this._styles[e];let t=this._styleProcessor.getReducedForm(e,this._styles).find(([t])=>t===e);if(Array.isArray(t))return t[1]}getStyleNames(e=!1){return this.isEmpty?[]:e?(this._cachedExpandedStyleNames||=this._styleProcessor.getStyleNames(this._styles),this._cachedExpandedStyleNames):(this._cachedStyleNames||=this.getStylesEntries().map(([e])=>e),this._cachedStyleNames)}keys(){return this.getStyleNames()}clear(){this._styles={},this._cachedStyleNames=null,this._cachedExpandedStyleNames=null}isSimilar(e){if(this.size!==e.size)return!1;for(let t of this.getStyleNames())if(!e.has(t)||e.getAsString(t)!==this.getAsString(t))return!1;return!0}getStylesEntries(){let e=[],t=Object.keys(this._styles);for(let n of t)e.push(...this._styleProcessor.getReducedForm(n,this._styles));return e}_clone(){let e=new this.constructor(this._styleProcessor);return e.set(this.getNormalized()),e}_getTokensMatch(e,t){let n=[];for(let r of this.getStyleNames(!0))if(lE(e,r)){if(t===!0){n.push(r);continue}lE(t,this.getAsString(r))&&n.push(r)}return n.length?n:void 0}_getConsumables(e){let t=[];if(e){t.push(e);for(let n of this._styleProcessor.getRelatedStyles(e))t.push(n)}else for(let e of this.getStyleNames()){for(let n of this._styleProcessor.getRelatedStyles(e))t.push(n);t.push(e)}return t}_canMergeFrom(e){for(let t of e.getStyleNames())if(this.has(t)&&this.getAsString(t)!==e.getAsString(t))return!1;return!0}_mergeFrom(e){for(let t of e.getStyleNames())this.has(t)||this.set(t,e.getAsString(t))}_isMatching(e){for(let t of e.getStyleNames())if(!this.has(t)||this.getAsString(t)!==e.getAsString(t))return!1;return!0}},gE=class{_normalizers;_extractors;_reducers;_consumables;constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(e,t,n){if(Mb(t)){yE(n,vE(e),t);return}if(this._normalizers.has(e)){let{path:r,value:i}=this._normalizers.get(e)(t);yE(n,r,i)}else yE(n,e,t)}getNormalized(e,t){if(!e)return SS({},t);if(t[e]!==void 0)return t[e];if(this._extractors.has(e)){let n=this._extractors.get(e);if(typeof n==`string`)return kb(t,n);let r=n(e,t);if(r)return r}return kb(t,vE(e))}getReducedForm(e,t){let n=this.getNormalized(e,t);return n===void 0?[]:this._reducers.has(e)?this._reducers.get(e)(n):[[e,n]]}getStyleNames(e){let t=new Set;for(let n of this._consumables.keys()){let r=this.getNormalized(n,e);r&&(typeof r!=`object`||Object.keys(r).length)&&t.add(n)}for(let n of Object.keys(e))t.add(n);return Array.from(t)}getRelatedStyles(e){return this._consumables.get(e)||[]}setNormalizer(e,t){this._normalizers.set(e,t)}setExtractor(e,t){this._extractors.set(e,t)}setReducer(e,t){this._reducers.set(e,t)}setStyleRelation(e,t){this._mapStyleNames(e,t);for(let n of t)this._mapStyleNames(n,[e])}_mapStyleNames(e,t){this._consumables.has(e)||this._consumables.set(e,[]),this._consumables.get(e).push(...t)}};function _E(e){let t=null,n=0,r=0,i=null,a=new Map;if(e===``)return a;e.charAt(e.length-1)!=`;`&&(e+=`;`);for(let o=0;oe!=`style`&&e!=`class`).map(e=>`${e[0]}="${e[1]}"`).sort().join(` `);return this.name+(e==``?``:` class="${e}"`)+(t?` style="${t}"`:``)+(n==``?``:` ${n}`)}shouldRenderUnsafeAttribute(e){return this._unsafeAttributesToRender.includes(e)}toJSON(){let e=super.toJSON();if(e.name=this.name,e.type=`Element`,this._attrs.size&&(e.attributes=Object.fromEntries(this.getAttributes())),this._children.length>0){e.children=[];for(let t of this._children)e.children.push(t.toJSON())}return e}_clone(e=!1){let t=[];if(e)for(let n of this.getChildren())t.push(n._clone(e));let n=new this.constructor(this.document,this.name,this._attrs,t);return n._customProperties=new Map(this._customProperties),n.getFillerOffset=this.getFillerOffset,n._unsafeAttributesToRender=this._unsafeAttributesToRender,n}_appendChild(e){return this._insertChild(this.childCount,e)}_insertChild(e,t){this._fireChange(`children`,this,{index:e});let n=0,r=CE(this.document,t);for(let t of r)t.parent!==null&&t._remove(),t.parent=this,t.document=this.document,this._children.splice(e,0,t),e++,n++;return n}_removeChildren(e,t=1){this._fireChange(`children`,this,{index:e});for(let n=e;nt&&e.selection.editableElement==this),this.listenTo(e.selection,`change`,()=>{this.isFocused=e.isFocused&&e.selection.editableElement==this})}destroy(){this.stopListening()}toJSON(){let e=super.toJSON();return e.type=`EditableElement`,e.isReadOnly=this.isReadOnly,e.isFocused=this.isFocused,e}};kE.prototype.is=function(e,t){return t?t===this.name&&(e===`editableElement`||e===`view:editableElement`||e===`containerElement`||e===`view:containerElement`||e===`element`||e===`view:element`):e===`editableElement`||e===`view:editableElement`||e===`containerElement`||e===`view:containerElement`||e===`element`||e===`view:element`||e===`node`||e===`view:node`};var AE=Symbol(`rootName`),jE=class extends kE{constructor(e,t){super(e,t),this.rootName=`main`}get rootName(){return this.getCustomProperty(AE)}set rootName(e){this._setCustomProperty(AE,e)}toJSON(){return this.rootName}set _name(e){this.name=e}};jE.prototype.is=function(e,t){return t?t===this.name&&(e===`rootElement`||e===`view:rootElement`||e===`editableElement`||e===`view:editableElement`||e===`containerElement`||e===`view:containerElement`||e===`element`||e===`view:element`):e===`rootElement`||e===`view:rootElement`||e===`editableElement`||e===`view:editableElement`||e===`containerElement`||e===`view:containerElement`||e===`element`||e===`view:element`||e===`node`||e===`view:node`};var ME=class{direction;boundaries;singleCharacters;shallow;ignoreElementEnd;_position;_boundaryStartParent;_boundaryEndParent;constructor(e={}){if(!e.boundaries&&!e.startPosition)throw new K(`view-tree-walker-no-start-position`,null);if(e.direction&&e.direction!=`forward`&&e.direction!=`backward`)throw new K(`view-tree-walker-unknown-direction`,e.startPosition,{direction:e.direction});this.boundaries=e.boundaries||null,e.startPosition?this._position=J._createAt(e.startPosition):this._position=J._createAt(e.boundaries[e.direction==`backward`?`end`:`start`]),this.direction=e.direction||`forward`,this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}get position(){return this._position}skip(e){let t,n;do n=this.position,t=this.next();while(!t.done&&e(t.value));t.done||(this._position=n)}jumpTo(e){this._boundaryStartParent&&e.isBefore(this.boundaries.start)?e=this.boundaries.start:this._boundaryEndParent&&e.isAfter(this.boundaries.end)&&(e=this.boundaries.end),this._position=e.clone()}next(){return this.direction==`forward`?this._next():this._previous()}_next(){let e=this.position.clone(),t=this.position,n=e.parent;if(n.parent===null&&e.offset===n.childCount||n===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let r;if(n&&n.is(`view:$text`)){if(e.isAtEnd)return this._position=J._createAfter(n),this._next();r=n.data[e.offset]}else r=n.getChild(e.offset);if(typeof r==`string`){let r;r=this.singleCharacters?1:(n===this._boundaryEndParent?this.boundaries.end.offset:n.data.length)-e.offset;let i=new rE(n,e.offset,r);return e.offset+=r,this._position=e,this._formatReturnValue(`text`,i,t,e,r)}if(r&&r.is(`view:element`)){if(!this.shallow)e=new J(r,0);else{if(this.boundaries&&this.boundaries.end.isBefore(e))return{done:!0,value:void 0};e.offset++}return this._position=e,this._formatReturnValue(`elementStart`,r,t,e,1)}if(r&&r.is(`view:$text`)){if(this.singleCharacters)return e=new J(r,0),this._position=e,this._next();let n=r.data.length,i;return r==this._boundaryEndParent?(n=this.boundaries.end.offset,i=new rE(r,0,n),e=J._createAfter(i)):(i=new rE(r,0,r.data.length),e.offset++),this._position=e,this._formatReturnValue(`text`,i,t,e,n)}return e=J._createAfter(n),this._position=e,this.ignoreElementEnd?this._next():this._formatReturnValue(`elementEnd`,n,t,e)}_previous(){let e=this.position.clone(),t=this.position,n=e.parent;if(n.parent===null&&e.offset===0||n==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let r;if(n.is(`view:$text`)){if(e.isAtStart)return this._position=J._createBefore(n),this._previous();r=n.data[e.offset-1]}else r=n.getChild(e.offset-1);if(typeof r==`string`){let r;if(this.singleCharacters)r=1;else{let t=n===this._boundaryStartParent?this.boundaries.start.offset:0;r=e.offset-t}e.offset-=r;let i=new rE(n,e.offset,r);return this._position=e,this._formatReturnValue(`text`,i,t,e,r)}if(r&&r.is(`view:element`))return this.shallow?(e.offset--,this._position=e,this._formatReturnValue(`elementStart`,r,t,e,1)):(e=new J(r,r.childCount),this._position=e,this.ignoreElementEnd?this._previous():this._formatReturnValue(`elementEnd`,r,t,e));if(r&&r.is(`view:$text`)){if(this.singleCharacters)return e=new J(r,r.data.length),this._position=e,this._previous();let n=r.data.length,i;if(r==this._boundaryStartParent){let t=this.boundaries.start.offset;i=new rE(r,t,r.data.length-t),n=i.data.length,e=J._createBefore(i)}else i=new rE(r,0,r.data.length),e.offset--;return this._position=e,this._formatReturnValue(`text`,i,t,e,n)}return e=J._createBefore(n),this._position=e,this._formatReturnValue(`elementStart`,n,t,e,1)}_formatReturnValue(e,t,n,r,i){return t.is(`view:$textProxy`)&&(t.offsetInText+t.data.length==t.textNode.data.length&&(this.direction==`forward`&&!(this.boundaries&&this.boundaries.end.isEqual(this.position))?(r=J._createAfter(t.textNode),this._position=r):n=J._createAfter(t.textNode)),t.offsetInText===0&&(this.direction==`backward`&&!(this.boundaries&&this.boundaries.start.isEqual(this.position))?(r=J._createBefore(t.textNode),this._position=r):n=J._createBefore(t.textNode))),{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:r,length:i}}}},J=class e extends $T{parent;offset;constructor(e,t){super(),this.parent=e,this.offset=t}get nodeAfter(){return this.parent.is(`$text`)?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is(`$text`)?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return this.offset===0}get isAtEnd(){let e=this.parent.is(`$text`)?this.parent.data.length:this.parent.childCount;return this.offset===e}get root(){return this.parent.root}get editableElement(){let e=this.parent;for(;!(e instanceof kE);)if(e.parent)e=e.parent;else return null;return e}getShiftedBy(t){let n=e._createAt(this),r=n.offset+t;return n.offset=r<0?0:r,n}getLastMatchingPosition(e,t={}){t.startPosition=this;let n=new ME(t);return n.skip(e),n.position}getAncestors(){return this.parent.is(`documentFragment`)?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(e){let t=this.getAncestors(),n=e.getAncestors(),r=0;for(;t[r]==n[r]&&t[r];)r++;return r===0?null:t[r-1]}isEqual(e){return this.parent==e.parent&&this.offset==e.offset}isBefore(e){return this.compareWith(e)==`before`}isAfter(e){return this.compareWith(e)==`after`}compareWith(e){if(this.root!==e.root)return`different`;if(this.isEqual(e))return`same`;let t=this.parent.is(`node`)?this.parent.getPath():[],n=e.parent.is(`node`)?e.parent.getPath():[];t.push(this.offset),n.push(e.offset);let r=UC(t,n);switch(r){case`prefix`:return`before`;case`extension`:return`after`;default:return t[r]0?new this(n,r):new this(r,n)}static _createIn(e){return this._createFromParentsAndOffsets(e,0,e,e.childCount)}static _createOn(e){let t=e.is(`$textProxy`)?e.offsetSize:1;return this._createFromPositionAndShift(J._createBefore(e),t)}};NE.prototype.is=function(e){return e===`range`||e===`view:range`};function PE(e){return!!(e.item.is(`attributeElement`)||e.item.is(`uiElement`))}var FE=fC($T),IE=class e extends FE{_ranges;_lastRangeBackward;_isFake;_fakeSelectionLabel;constructor(...e){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel=``,e.length&&this.setTo(...e)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;let e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.end:e.start).clone()}get focus(){if(!this._ranges.length)return null;let e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.start:e.end).clone()}get isCollapsed(){return this.rangeCount===1&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(let e of this._ranges)yield e.clone()}getFirstRange(){let e=null;for(let t of this._ranges)(!e||t.start.isBefore(e.start))&&(e=t);return e?e.clone():null}getLastRange(){let e=null;for(let t of this._ranges)(!e||t.end.isAfter(e.end))&&(e=t);return e?e.clone():null}getFirstPosition(){let e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){let e=this.getLastRange();return e?e.end.clone():null}isEqual(e){if(this.isFake!=e.isFake||this.isFake&&this.fakeSelectionLabel!=e.fakeSelectionLabel||this.rangeCount!=e.rangeCount)return!1;if(this.rangeCount===0)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;for(let t of this._ranges){let n=!1;for(let r of e._ranges)if(t.isEqual(r)){n=!0;break}if(!n)return!1}return!0}isSimilar(e){if(this.isBackward!=e.isBackward)return!1;let t=HC(this.getRanges());if(t!=HC(e.getRanges()))return!1;if(t==0)return!0;for(let t of this.getRanges()){t=t.getTrimmed();let n=!1;for(let r of e.getRanges())if(r=r.getTrimmed(),t.start.isEqual(r.start)&&t.end.isEqual(r.end)){n=!0;break}if(!n)return!1}return!0}getSelectedElement(){return this.rangeCount===1?this.getFirstRange().getContainedElement():null}setTo(...t){let[n,r,i]=t;if(typeof r==`object`&&(i=r,r=void 0),n===null)this._setRanges([]),this._setFakeOptions(i);else if(n instanceof e||n instanceof RE)this._setRanges(n.getRanges(),n.isBackward),this._setFakeOptions({fake:n.isFake,label:n.fakeSelectionLabel});else if(n instanceof NE)this._setRanges([n],i&&i.backward),this._setFakeOptions(i);else if(n instanceof J)this._setRanges([new NE(n)]),this._setFakeOptions(i);else if(n instanceof tE){let e=!!i&&!!i.backward,t;if(r===void 0)throw new K(`view-selection-setto-required-second-parameter`,this);t=r==`in`?NE._createIn(n):r==`on`?NE._createOn(n):new NE(J._createAt(n,r)),this._setRanges([t],e),this._setFakeOptions(i)}else if(WC(n))this._setRanges(n,i&&i.backward),this._setFakeOptions(i);else throw new K(`view-selection-setto-not-selectable`,this);this.fire(`change`)}setFocus(e,t){if(this.anchor===null)throw new K(`view-selection-setfocus-no-ranges`,this);let n=J._createAt(e,t);if(n.compareWith(this.focus)==`same`)return;let r=this.anchor;this._ranges.pop(),n.compareWith(r)==`before`?this._addRange(new NE(n,r),!0):this._addRange(new NE(r,n)),this.fire(`change`)}toJSON(){let e={ranges:Array.from(this.getRanges()).map(e=>e.toJSON())};return this.isBackward&&(e.isBackward=!0),this.isFake&&(e.isFake=!0),e}_setRanges(e,t=!1){e=Array.from(e),this._ranges=[];for(let t of e)this._addRange(t);this._lastRangeBackward=!!t}_setFakeOptions(e={}){this._isFake=!!e.fake,this._fakeSelectionLabel=e.fake&&e.label||``}_addRange(e,t=!1){if(!(e instanceof NE))throw new K(`view-selection-add-range-not-range`,this);this._pushRange(e),this._lastRangeBackward=!!t}_pushRange(e){for(let t of this._ranges)if(e.isIntersecting(t))throw new K(`view-selection-range-intersects`,this,{addedRange:e,intersectingRange:t});this._ranges.push(new NE(e.start,e.end))}};IE.prototype.is=function(e){return e===`selection`||e===`view:selection`};var LE=fC($T),RE=class extends LE{_selection;constructor(...e){super(),this._selection=new IE,this._selection.delegate(`change`).to(this),e.length&&this._selection.setTo(...e)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(e){return this._selection.isEqual(e)}isSimilar(e){return this._selection.isSimilar(e)}toJSON(){return this._selection.toJSON()}_setTo(...e){this._selection.setTo(...e)}_setFocus(e,t){this._selection.setFocus(e,t)}};RE.prototype.is=function(e){return e===`selection`||e==`documentSelection`||e==`view:selection`||e==`view:documentSelection`};var zE=class extends YS{startRange;_eventPhase;_currentTarget;constructor(e,t,n){super(e,t),this.startRange=n,this._eventPhase=`none`,this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}},BE=Symbol(`bubblingEmitter`),VE=Symbol(`bubblingCallbacks`),HE=Symbol(`bubblingContexts`);function UE(e){class t extends e{fire(e,...t){try{let n=e instanceof YS?e:new YS(this,e),r=qE(this),i=YE(this);if(WE(n,`capturing`,this),GE(r,`$capture`,n,...t))return n.return;let a=n.startRange||this.selection.getFirstRange(),o=a?a.getContainedElement():null,s=o?XE(i,o):!1,c=o||ZE(a);if(WE(n,`atTarget`,c),!s){if(GE(r,`$text`,n,...t))return n.return;WE(n,`bubbling`,c)}for(;c;){if(c.is(`element`)&&GE(r,c,n,...t))return n.return;c=c.parent,WE(n,`bubbling`,c)}return WE(n,`bubbling`,this),GE(r,`$document`,n,...t),n.return}catch(e){K.rethrowUnexpectedError(e,this)}}_addEventListener(e,t,n){let r=sT(n.context||`$document`),i=qE(this),a=JE(this);for(let e of r)typeof e==`function`&&YE(this).add(e);let o=KE(this,r,t);a.set(t,o),this.listenTo(i,e,o,n)}_removeEventListener(e,t){let n=qE(this),r=JE(this),i=r.get(t);i&&(r.delete(t),this.stopListening(n,e,i))}}return t}function WE(e,t,n){e instanceof zE&&(e._eventPhase=t,e._currentTarget=n)}function GE(e,t,n,...r){return e.fire(n,{currentTarget:t,eventArgs:r}),!!n.stop.called}function KE(e,t,n){return function(r,i){let{currentTarget:a,eventArgs:o}=i;if(typeof a==`string`){t.includes(a)&&n.call(e,r,...o);return}if(a.is(`rootElement`)&&t.includes(`$root`)){n.call(e,r,...o);return}if(t.includes(a.name)){n.call(e,r,...o);return}for(let i of t)if(typeof i==`function`&&i(a)){n.call(e,r,...o);return}}}function qE(e){return e[BE]||(e[BE]=new(fC())),e[BE]}function JE(e){return e[VE]||(e[VE]=new Map),e[VE]}function YE(e){return e[HE]||(e[HE]=new Set),e[HE]}function XE(e,t){for(let n of e)if(n(t))return!0;return!1}function ZE(e){if(!e)return null;let t=e.start.parent,n=e.end.parent,r=t.getPath(),i=n.getPath();return r.length>i.length?t:n}var QE=UE(AC()),$E=class extends QE{selection;roots;stylesProcessor;_postFixers=new Set;constructor(e){super(),this.selection=new RE,this.roots=new hT({idProperty:`rootName`}),this.stylesProcessor=e,this.set(`isReadOnly`,!1),this.set(`isFocused`,!1),this.set(`isSelecting`,!1),this.set(`isComposing`,!1)}getRoot(e=`main`){return this.roots.get(e)}getRoots(){return Array.from(this.roots)}registerPostFixer(e){this._postFixers.add(e)}destroy(){this.roots.forEach(e=>e.destroy()),this.stopListening()}_callPostFixers(e){let t=!1;do for(let n of this._postFixers)if(t=n(e),t)break;while(t)}},eD=10,tD=class extends SE{static DEFAULT_PRIORITY=eD;_priority=eD;_id=null;_clonesGroup=null;constructor(e,t,n,r){super(e,t,n,r),this.getFillerOffset=nD}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(this.id===null)throw new K(`attribute-element-get-elements-with-same-id-no-id`,this);return new Set(this._clonesGroup)}isSimilar(e){return this.id!==null||e.id!==null?this.id===e.id:super.isSimilar(e)&&this.priority==e.priority}toJSON(){let e=super.toJSON();return e.type=`AttributeElement`,e}_clone(e=!1){let t=super._clone(e);return t._priority=this._priority,t._id=this._id,t}_canMergeAttributesFrom(e){return this.id!==null||e.id!==null||this.priority!==e.priority?!1:super._canMergeAttributesFrom(e)}_canSubtractAttributesOf(e){return this.id!==null||e.id!==null||this.priority!==e.priority?!1:super._canSubtractAttributesOf(e)}};tD.prototype.is=function(e,t){return t?t===this.name&&(e===`attributeElement`||e===`view:attributeElement`||e===`element`||e===`view:element`):e===`attributeElement`||e===`view:attributeElement`||e===`element`||e===`view:element`||e===`node`||e===`view:node`};function nD(){if(rD(this))return null;let e=this.parent;for(;e&&e.is(`attributeElement`);){if(rD(e)>1)return null;e=e.parent}return!e||rD(e)>1?null:this.childCount}function rD(e){return Array.from(e.getChildren()).filter(e=>!e.is(`uiElement`)).length}var iD=class extends SE{constructor(e,t,n,r){super(e,t,n,r),this.getFillerOffset=aD}toJSON(){let e=super.toJSON();return e.type=`EmptyElement`,e}_insertChild(e,t){if(t&&(t instanceof tE||Array.from(t).length>0))throw new K(`view-emptyelement-cannot-add`,[this,t]);return 0}};iD.prototype.is=function(e,t){return t?t===this.name&&(e===`emptyElement`||e===`view:emptyElement`||e===`element`||e===`view:element`):e===`emptyElement`||e===`view:emptyElement`||e===`element`||e===`view:element`||e===`node`||e===`view:node`};function aD(){return null}var oD=class extends SE{constructor(e,t,n,r){super(e,t,n,r),this.getFillerOffset=cD}_insertChild(e,t){if(t&&(t instanceof tE||Array.from(t).length>0))throw new K(`view-uielement-cannot-add`,[this,t]);return 0}render(e,t){return this.toDomElement(e)}toDomElement(e){let t=e.createElement(this.name);for(let e of this.getAttributeKeys())t.setAttribute(e,this.getAttribute(e));return t}toJSON(){let e=super.toJSON();return e.type=`UIElement`,e}};oD.prototype.is=function(e,t){return t?t===this.name&&(e===`uiElement`||e===`view:uiElement`||e===`element`||e===`view:element`):e===`uiElement`||e===`view:uiElement`||e===`element`||e===`view:element`||e===`node`||e===`view:node`};function sD(e){e.document.on(`arrowKey`,(t,n)=>lD(t,n,e.domConverter),{priority:`low`})}function cD(){return null}function lD(e,t,n){if(t.keyCode==q.arrowright){let e=t.domTarget.ownerDocument.defaultView.getSelection(),r=e.rangeCount==1&&e.getRangeAt(0).collapsed;if(r||t.shiftKey){let t=e.focusNode,i=e.focusOffset,a=n.domPositionToView(t,i);if(a===null)return;let o=!1,s=a.getLastMatchingPosition(e=>(e.item.is(`uiElement`)&&(o=!0),!!(e.item.is(`uiElement`)||e.item.is(`attributeElement`))));if(o){let t=n.viewPositionToDom(s);r?e.collapse(t.parent,t.offset):e.extend(t.parent,t.offset)}}}}var uD=class extends SE{constructor(e,t,n,r){super(e,t,n,r),this.getFillerOffset=dD}toJSON(){let e=super.toJSON();return e.type=`RawElement`,e}_insertChild(e,t){if(t&&(t instanceof tE||Array.from(t).length>0))throw new K(`view-rawelement-cannot-add`,[this,t]);return 0}render(e,t){}};uD.prototype.is=function(e,t){return t?t===this.name&&(e===`rawElement`||e===`view:rawElement`||e===`element`||e===`view:element`):e===`rawElement`||e===`view:rawElement`||e===this.name||e===`view:`+this.name||e===`element`||e===`view:element`||e===`node`||e===`view:node`};function dD(){return null}var fD=fC($T),pD=class extends fD{document;_children=[];_customProperties=new Map;constructor(e,t){super(),this.document=e,t&&this._insertChild(0,t)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return this.childCount===0}get root(){return this}get parent(){return null}get name(){}get getFillerOffset(){}getCustomProperty(e){return this._customProperties.get(e)}*getCustomProperties(){yield*this._customProperties.entries()}toJSON(){let e=[];for(let t of this._children)e.push(t.toJSON());return e}_appendChild(e){return this._insertChild(this.childCount,e)}getChild(e){return this._children[e]}getChildIndex(e){return this._children.indexOf(e)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(e,t){this._fireChange(`children`,this,{index:e});let n=0,r=mD(this.document,t);for(let t of r)t.parent!==null&&t._remove(),t.parent=this,this._children.splice(e,0,t),e++,n++;return n}_removeChildren(e,t=1){this._fireChange(`children`,this,{index:e});for(let n=e;ntypeof t==`string`?new nE(e,t):t instanceof rE?new nE(e,t.data):t))}var hD=class{document;_cloneGroups=new Map;_slotFactory=null;constructor(e){this.document=e}setSelection(...e){this.document.selection._setTo(...e)}setSelectionFocus(e,t){this.document.selection._setFocus(e,t)}createDocumentFragment(e){return new pD(this.document,e)}createText(e){return new nE(this.document,e)}createAttributeElement(e,t,n={}){let r=new tD(this.document,e,t);return typeof n.priority==`number`&&(r._priority=n.priority),n.id&&(r._id=n.id),n.renderUnsafeAttributes&&r._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),r}createContainerElement(e,t,n={},r={}){let i;ED(n)?r=n:i=n;let a=new EE(this.document,e,t,i);return r.renderUnsafeAttributes&&a._unsafeAttributesToRender.push(...r.renderUnsafeAttributes),a}createEditableElement(e,t,n={}){let r=new kE(this.document,e,t);return n.renderUnsafeAttributes&&r._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),r}createEmptyElement(e,t,n={}){let r=new iD(this.document,e,t);return n.renderUnsafeAttributes&&r._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),r}createUIElement(e,t,n){let r=new oD(this.document,e,t);return n&&(r.render=n),r}createRawElement(e,t,n,r={}){let i=new uD(this.document,e,t);return n&&(i.render=n),r.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...r.renderUnsafeAttributes),i}setAttribute(e,t,n,r){r===void 0?n._setAttribute(e,t):r._setAttribute(e,t,n)}removeAttribute(e,t,n){n===void 0?t._removeAttribute(e):n._removeAttribute(e,t)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,n){gS(e)&&n===void 0?t._setStyle(e):n._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,n){n._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}breakAttributes(e){return e instanceof J?this._breakAttributes(e):this._breakAttributesRange(e)}breakContainer(e){let t=e.parent;if(!t.is(`containerElement`))throw new K(`view-writer-break-non-container-element`,this.document);if(!t.parent)throw new K(`view-writer-break-root`,this.document);if(e.isAtStart)return J._createBefore(t);if(!e.isAtEnd){let n=t._clone(!1);this.insert(J._createAfter(t),n);let r=new NE(e,J._createAt(t,`end`)),i=new J(n,0);this.move(r,i)}return J._createAfter(t)}mergeAttributes(e){let t=e.offset,n=e.parent;if(n.is(`$text`))return e;if(n.is(`attributeElement`)&&n.childCount===0){let e=n.parent,t=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new J(e,t))}let r=n.getChild(t-1),i=n.getChild(t);if(!r||!i)return e;if(r.is(`$text`)&&i.is(`$text`))return xD(r,i);if(r.is(`attributeElement`)&&i.is(`attributeElement`)&&r.isSimilar(i)){let e=r.childCount;return r._appendChild(i.getChildren()),i._remove(),this._removeFromClonedElementsGroup(i),this.mergeAttributes(new J(r,e))}return e}mergeContainers(e){let t=e.nodeBefore,n=e.nodeAfter;if(!t||!n||!t.is(`containerElement`)||!n.is(`containerElement`))throw new K(`view-writer-merge-containers-invalid-position`,this.document);let r=t.getChild(t.childCount-1),i=r instanceof nE?J._createAt(r,`end`):J._createAt(t,`end`);return this.move(NE._createIn(n),J._createAt(t,`end`)),this.remove(NE._createOn(n)),i}insert(e,t){t=WC(t)?[...t]:[t],CD(t,this.document);let n=t.reduce((e,t)=>{let n=e[e.length-1],r=!t.is(`uiElement`);return!n||n.breakAttributes!=r?e.push({breakAttributes:r,nodes:[t]}):n.nodes.push(t),e},[]),r=null,i=e;for(let{nodes:e,breakAttributes:t}of n){let n=this._insertNodes(i,e,t);r||=n.start,i=n.end}return r?new NE(r,i):new NE(e)}remove(e){let t=e instanceof NE?e:NE._createOn(e);if(TD(t,this.document),t.isCollapsed)return new pD(this.document);let{start:n,end:r}=this._breakAttributesRange(t,!0),i=n.parent,a=r.offset-n.offset,o=i._removeChildren(n.offset,a);for(let e of o)this._removeFromClonedElementsGroup(e);let s=this.mergeAttributes(n);return t.start=s,t.end=s.clone(),new pD(this.document,o)}clear(e,t){TD(e,this.document);let n=e.getWalker({direction:`backward`,ignoreElementEnd:!0});for(let r of n){let n=r.item,i;if(n.is(`element`)&&t.isSimilar(n))i=NE._createOn(n);else if(!r.nextPosition.isAfter(e.start)&&n.is(`$textProxy`)){let e=n.getAncestors().find(e=>e.is(`element`)&&t.isSimilar(e));e&&(i=NE._createIn(e))}i&&(i.end.isAfter(e.end)&&(i.end=e.end),i.start.isBefore(e.start)&&(i.start=e.start),this.remove(i))}}move(e,t){let n;if(t.isAfter(e.end)){t=this._breakAttributes(t,!0);let r=t.parent,i=r.childCount;e=this._breakAttributesRange(e,!0),n=this.remove(e),t.offset+=r.childCount-i}else n=this.remove(e);return this.insert(t,n)}wrap(e,t){if(!(t instanceof tD))throw new K(`view-writer-wrap-invalid-attribute`,this.document);if(TD(e,this.document),e.isCollapsed){let n=e.start;n.parent.is(`element`)&&!gD(n.parent)&&(n=n.getLastMatchingPosition(e=>e.item.is(`uiElement`))),n=this._wrapPosition(n,t);let r=this.document.selection;return r.isCollapsed&&r.getFirstPosition().isEqual(e.start)&&this.setSelection(n),new NE(n)}else return this._wrapRange(e,t)}unwrap(e,t){if(!(t instanceof tD))throw new K(`view-writer-unwrap-invalid-attribute`,this.document);if(TD(e,this.document),e.isCollapsed)return e;let{start:n,end:r}=this._breakAttributesRange(e,!0),i=n.parent,a=this._unwrapChildren(i,n.offset,r.offset,t),o=this.mergeAttributes(a.start);return o.isEqual(a.start)||a.end.offset--,new NE(o,this.mergeAttributes(a.end))}rename(e,t){let n=new EE(this.document,e,t.getAttributes());return this.insert(J._createAfter(t),n),this.move(NE._createIn(t),J._createAt(n,0)),this.remove(NE._createOn(t)),n}clearClonedElementsGroup(e){this._cloneGroups.delete(e)}createPositionAt(e,t){return J._createAt(e,t)}createPositionAfter(e){return J._createAfter(e)}createPositionBefore(e){return J._createBefore(e)}createRange(e,t){return new NE(e,t)}createRangeOn(e){return NE._createOn(e)}createRangeIn(e){return NE._createIn(e)}createSelection(...e){return new IE(...e)}createSlot(e=`children`){if(!this._slotFactory)throw new K(`view-writer-invalid-create-slot-context`,this.document);return this._slotFactory(this,e)}_registerSlotFactory(e){this._slotFactory=e}_clearSlotFactory(){this._slotFactory=null}_insertNodes(e,t,n){let r;if(r=n?_D(e):e.parent.is(`$text`)?e.parent.parent:e.parent,!r)throw new K(`view-writer-invalid-position-container`,this.document);let i;i=n?this._breakAttributes(e,!0):e.parent.is(`$text`)?bD(e):e;let a=r._insertChild(i.offset,t);for(let e of t)this._addToClonedElementsGroup(e);let o=i.getShiftedBy(a),s=this.mergeAttributes(i);return s.isEqual(i)||o.offset--,new NE(s,this.mergeAttributes(o))}_wrapChildren(e,t,n,r){let i=t,a=[];for(;i!1,e.parent._insertChild(e.offset,n);let r=new NE(e,e.getShiftedBy(1));this.wrap(r,t);let i=new J(n.parent,n.index);n._remove();let a=i.nodeBefore,o=i.nodeAfter;return a&&a.is(`view:$text`)&&o&&o.is(`view:$text`)?xD(a,o):yD(i)}_breakAttributesRange(e,t=!1){let n=e.start,r=e.end;if(TD(e,this.document),e.isCollapsed){let n=this._breakAttributes(e.start,t);return new NE(n,n)}let i=this._breakAttributes(r,t),a=i.parent.childCount,o=this._breakAttributes(n,t);return i.offset+=i.parent.childCount-a,new NE(o,i)}_breakAttributes(e,t=!1){let n=e.offset,r=e.parent;if(e.parent.is(`emptyElement`))throw new K(`view-writer-cannot-break-empty-element`,this.document);if(e.parent.is(`uiElement`))throw new K(`view-writer-cannot-break-ui-element`,this.document);if(e.parent.is(`rawElement`))throw new K(`view-writer-cannot-break-raw-element`,this.document);if(!t&&r.is(`$text`)&&wD(r.parent)||wD(r))return e.clone();if(r.is(`$text`))return this._breakAttributes(bD(e),t);if(n==r.childCount){let e=new J(r.parent,r.index+1);return this._breakAttributes(e,t)}else if(n===0){let e=new J(r.parent,r.index);return this._breakAttributes(e,t)}else{let e=r.index+1,i=r._clone();r.parent._insertChild(e,i),this._addToClonedElementsGroup(i);let a=r.childCount-n,o=r._removeChildren(n,a);i._appendChild(o);let s=new J(r.parent,e);return this._breakAttributes(s,t)}}_addToClonedElementsGroup(e){if(!e.root.is(`rootElement`))return;if(e.is(`element`))for(let t of e.getChildren())this._addToClonedElementsGroup(t);let t=e.id;if(!t)return;let n=this._cloneGroups.get(t);n||(n=new Set,this._cloneGroups.set(t,n)),n.add(e),e._clonesGroup=n}_removeFromClonedElementsGroup(e){if(e.is(`element`))for(let t of e.getChildren())this._removeFromClonedElementsGroup(t);let t=e.id;if(!t)return;let n=this._cloneGroups.get(t);n&&n.delete(e)}};function gD(e){return Array.from(e.getChildren()).some(e=>!e.is(`uiElement`))}function _D(e){let t=e.parent;for(;!wD(t);){if(!t)return;t=t.parent}return t}function vD(e,t){return e.priorityt.priority?!1:e.getIdentity()n instanceof e))throw new K(`view-writer-insert-invalid-node-type`,t);n.is(`$text`)||CD(n.getChildren(),t)}}function wD(e){return e&&(e.is(`containerElement`)||e.is(`documentFragment`))}function TD(e,t){let n=_D(e.start),r=_D(e.end);if(!n||!r||n!==r)throw new K(`view-writer-invalid-range-container`,t)}function ED(e){return gS(e)}var DD=e=>e.createTextNode(`\xA0`),OD=e=>{let t=e.createElement(`span`);return t.dataset.ckeFiller=`true`,t.innerText=`\xA0`,t},kD=e=>{let t=e.createElement(`br`);return t.dataset.ckeFiller=`true`,t},AD=`⁠`.repeat(7);function jD(e){return typeof e==`string`?e.substr(0,7)===AD:cw(e)&&e.data.substr(0,7)===AD}function MD(e){return e.data.length==7&&jD(e)}function ND(e){let t=typeof e==`string`?e:e.data;return jD(e)?t.slice(7):t}function PD(e){e.document.on(`arrowKey`,FD,{priority:`low`})}function FD(e,t){if(t.keyCode==q.arrowleft){let e=t.domTarget.ownerDocument.defaultView.getSelection();if(e.rangeCount==1&&e.getRangeAt(0).collapsed){let t=e.getRangeAt(0).startContainer,n=e.getRangeAt(0).startOffset;jD(t)&&n<=7&&e.collapse(t,0)}}}var ID=AC(),LD=class extends ID{domDocuments=new Set;domConverter;markedAttributes=new Set;markedChildren=new Set;markedTexts=new Set;selection;_inlineFiller=null;_fakeSelectionContainer=null;constructor(e,t){super(),this.domConverter=e,this.selection=t,this.set(`isFocused`,!1),this.set(`isSelecting`,!1),this.set(`isComposing`,!1),G.isBlink&&!G.isAndroid&&this.on(`change:isSelecting`,()=>{this.isSelecting||this.render()})}markToSync(e,t){if(e===`text`)this.domConverter.mapViewToDom(t.parent)&&this.markedTexts.add(t);else{if(!this.domConverter.mapViewToDom(t))return;if(e===`attributes`)this.markedAttributes.add(t);else if(e===`children`)this.markedChildren.add(t);else throw new K(`view-renderer-unknown-type`,this)}}render(){if(this.isComposing&&!G.isAndroid)return;let e=null,t=G.isBlink&&!G.isAndroid?!this.isSelecting:!0;for(let e of this.markedChildren)this._updateChildrenMappings(e);t?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?e=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(e=this.selection.getFirstPosition(),this.markedChildren.add(e.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(e=this.domConverter.domPositionToView(this._inlineFiller),e&&e.parent.is(`$text`)&&(e=J._createBefore(e.parent)));for(let e of this.markedAttributes)this._updateAttrs(e);for(let t of this.markedChildren)this._updateChildren(t,{inlineFillerPosition:e});for(let t of this.markedTexts)!this.markedChildren.has(t.parent)&&this.domConverter.mapViewToDom(t.parent)&&this._updateText(t,{inlineFillerPosition:e});if(t)if(e){let t=this.domConverter.viewPositionToDom(e),n=t.parent.ownerDocument;jD(t.parent)?this._inlineFiller=t.parent:this._inlineFiller=zD(n,t.parent,t.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.domConverter._clearTemporaryCustomProperties(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(e){let t=this.domConverter.mapViewToDom(e);if(!t)return;let n=Array.from(t.childNodes),r=Array.from(this.domConverter.viewChildrenToDom(e,{withChildren:!1})),i=this._diffNodeLists(n,r),a=this._findUpdateActions(i,n,r,BD);if(a.indexOf(`update`)!==-1){let t={equal:0,insert:0,delete:0};for(let i of a)if(i===`update`){let i=t.equal+t.insert,a=t.equal+t.delete,o=e.getChild(i);o&&!o.is(`uiElement`)&&!o.is(`rawElement`)&&this._updateElementMappings(o,n[a]),Nw(r[i]),t.equal++}else t[i]++}}_updateElementMappings(e,t){this.domConverter.unbindDomElement(t),this.domConverter.bindElements(t,e),this.markedChildren.add(e),this.markedAttributes.add(e)}_getInlineFillerPosition(){let e=this.selection.getFirstPosition();return e.parent.is(`$text`)?J._createBefore(e.parent):e}_isSelectionInInlineFiller(){if(this.selection.rangeCount!=1||!this.selection.isCollapsed)return!1;let e=this.selection.getFirstPosition(),t=this.domConverter.viewPositionToDom(e);return!!(t&&cw(t.parent)&&jD(t.parent))}_removeInlineFiller(){let e=this._inlineFiller;if(!jD(e))throw new K(`view-renderer-filler-was-lost`,this);MD(e)?e.remove():e.data=e.data.substr(7),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(this.selection.rangeCount!=1||!this.selection.isCollapsed)return!1;let e=this.selection.getFirstPosition(),t=e.parent,n=e.offset;if(!this.domConverter.mapViewToDom(t.root)||!t.is(`element`)||!RD(t))return!1;let r=e.nodeBefore,i=e.nodeAfter;return!(r instanceof nE||i instanceof nE||n===t.getFillerOffset()&&(!r||!r.is(`element`,`br`))||G.isAndroid&&(r||i))}_updateText(e,t){let n=this.domConverter.findCorrespondingDomText(e),r=this.domConverter.viewToDom(e).data,i=t.inlineFillerPosition;i&&i.parent==e.parent&&i.offset==e.index&&(r=AD+r),this._updateTextNode(n,r)}_updateAttrs(e){let t=this.domConverter.mapViewToDom(e);if(t){for(let n of Array.from(t.attributes)){let r=n.name;e.hasAttribute(r)||this.domConverter.removeDomElementAttribute(t,r)}for(let n of e.getAttributeKeys())this.domConverter.setDomElementAttribute(t,n,e.getAttribute(n),e)}}_updateChildren(e,t){let n=this.domConverter.mapViewToDom(e);if(!n)return;if(G.isAndroid){let e=null;for(let t of Array.from(n.childNodes)){if(e&&cw(e)&&cw(t)){n.normalize();break}e=t}}let r=t.inlineFillerPosition,i=n.childNodes,a=Array.from(this.domConverter.viewChildrenToDom(e,{bind:!0}));r&&r.parent===e&&zD(n.ownerDocument,a,r.offset);let o=this._diffNodeLists(i,a),s=this._findUpdateActions(o,i,a,VD),c=0,l=new Set;for(let e of s)e===`delete`?(l.add(i[c]),Nw(i[c])):(e===`equal`||e===`update`)&&c++;c=0;for(let e of s)e===`insert`?(ww(n,c,a[c]),c++):e===`update`?(this._updateTextNode(i[c],a[c].data),c++):e===`equal`&&(this._markDescendantTextToSync(this.domConverter.domToView(a[c])),c++);for(let e of l)e.parentNode||this.domConverter.unbindDomElement(e)}_diffNodeLists(e,t){return e=WD(e,this._fakeSelectionContainer),qS(e,t,HD.bind(null,this.domConverter))}_findUpdateActions(e,t,n,r){if(e.indexOf(`insert`)===-1||e.indexOf(`delete`)===-1)return e;let i=[],a=[],o=[],s={equal:0,insert:0,delete:0};for(let c of e)c===`insert`?o.push(n[s.equal+s.insert]):c===`delete`?a.push(t[s.equal+s.delete]):(i=i.concat(qS(a,o,r).map(e=>e===`equal`?`update`:e)),i.push(`equal`),a=[],o=[]),s[c]++;return i.concat(qS(a,o,r).map(e=>e===`equal`?`update`:e))}_updateTextNode(e,t){let n=e.data;n!=t&&(G.isAndroid&&this.isComposing&&n.replace(/\u00A0/g,` `)==t.replace(/\u00A0/g,` `)||this._updateTextNodeInternal(e,t))}_updateTextNodeInternal(e,t){let n=VS(e.data,t);for(let t of n)t.type===`insert`?e.insertData(t.index,t.values.join(``)):e.deleteData(t.index,t.howMany)}_markDescendantTextToSync(e){if(e){if(e.is(`$text`))this.markedTexts.add(e);else if(e.is(`element`))for(let t of e.getChildren())this._markDescendantTextToSync(t)}}_updateSelection(){if(G.isBlink&&!G.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(this.selection.rangeCount===0){this._removeDomSelection(),this._removeFakeSelection();return}let e=this.domConverter.mapViewToDom(this.selection.editableElement);if(!this.isFocused||!e){!this.selection.isFake&&this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected&&this._removeFakeSelection();return}this.selection.isFake?this._updateFakeSelection(e):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(e)):this.isComposing&&G.isAndroid||this._updateDomSelection(e)}_updateFakeSelection(e){let t=e.ownerDocument;this._fakeSelectionContainer||=GD(t);let n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),!this._fakeSelectionNeedsUpdate(e))return;(!n.parentElement||n.parentElement!=e)&&e.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||`\xA0`;let r=t.getSelection(),i=t.createRange();r.removeAllRanges(),i.selectNodeContents(n),r.addRange(i)}_updateDomSelection(e){let t=e.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(t))return;let n=this.domConverter.viewPositionToDom(this.selection.anchor),r=this.domConverter.viewPositionToDom(this.selection.focus);t.setBaseAndExtent(n.parent,n.offset,r.parent,r.offset),G.isGecko&&UD(r,t)}_domSelectionNeedsUpdate(e){if(!this.domConverter.isDomSelectionCorrect(e))return!0;let t=e&&this.domConverter.domSelectionToView(e);return!(t&&this.selection.isEqual(t)||!this.selection.isCollapsed&&this.selection.isSimilar(t))}_fakeSelectionNeedsUpdate(e){let t=this._fakeSelectionContainer,n=e.ownerDocument.getSelection();return!t||t.parentElement!==e||n.anchorNode!==t&&!t.contains(n.anchorNode)||t.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(let e of this.domDocuments){let t=e.getSelection();if(t.rangeCount){let n=e.activeElement,r=this.domConverter.mapDomToView(n);n&&r&&t.removeAllRanges()}}}_removeFakeSelection(){let e=this._fakeSelectionContainer;e&&e.remove()}_updateFocus(){if(this.isFocused){let e=this.selection.editableElement;e&&this.domConverter.focus(e)}}};function RD(e){if(e.getAttribute(`contenteditable`)==`false`)return!1;let t=e.findAncestor(e=>e.hasAttribute(`contenteditable`));return!t||t.getAttribute(`contenteditable`)==`true`}function zD(e,t,n){let r=t instanceof Array?t:t.childNodes,i=r[n];if(cw(i))return i.data=AD+i.data,i;{let i=e.createTextNode(AD);return Array.isArray(t)?r.splice(n,0,i):ww(t,n,i),i}}function BD(e,t){return YC(e)&&YC(t)&&!cw(e)&&!cw(t)&&!Tw(e)&&!Tw(t)&&e.tagName.toLowerCase()===t.tagName.toLowerCase()}function VD(e,t){return YC(e)&&YC(t)&&cw(e)&&cw(t)}function HD(e,t,n){return t===n?!0:cw(t)&&cw(n)?t.data===n.data:!!(e.isBlockFiller(t)&&e.isBlockFiller(n))}function UD(e,t){let n=e.parent,r=e.offset;if(cw(n)&&MD(n)&&(r=Cw(n)+1,n=n.parentNode),n.nodeType!=Node.ELEMENT_NODE||r!=n.childNodes.length-1)return;let i=n.childNodes[r];i&&i.tagName==`BR`&&t.addRange(t.getRangeAt(0))}function WD(e,t){let n=Array.from(e);return n.length==0||!t||n[n.length-1]==t&&n.pop(),n}function GD(e){let t=e.createElement(`div`);return t.className=`ck-fake-selection-container`,Object.assign(t.style,{position:`fixed`,top:0,left:`-9999px`,width:`42px`}),t.textContent=`\xA0`,t}var KD=kD(W.document),qD=DD(W.document),JD=OD(W.document),YD=`data-ck-unsafe-attribute-`,XD=`data-ck-unsafe-element`,ZD=class{document;renderingMode;blockFillerMode;preElements;blockElements;inlineObjectElements;unsafeElements;_domDocument;_domToViewMapping=new WeakMap;_viewToDomMapping=new WeakMap;_fakeSelectionMapping=new WeakMap;_rawContentElementMatcher=new cE;_inlineObjectElementMatcher=new cE;_elementsWithTemporaryCustomProperties=new Set;constructor(e,{blockFillerMode:t,renderingMode:n=`editing`}={}){this.document=e,this.renderingMode=n,this.blockFillerMode=t||(n===`editing`?`br`:`nbsp`),this.preElements=[`pre`,`textarea`],this.blockElements=`address.article.aside.blockquote.caption.center.dd.details.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.legend.li.main.menu.nav.ol.p.pre.section.summary.table.tbody.td.tfoot.th.thead.tr.ul`.split(`.`),this.inlineObjectElements=[`object`,`iframe`,`input`,`button`,`textarea`,`select`,`option`,`video`,`embed`,`audio`,`img`,`canvas`],this.unsafeElements=[`script`,`style`],this._domDocument=this.renderingMode===`editing`?W.document:W.document.implementation.createHTMLDocument(``)}get domDocument(){return this._domDocument}bindFakeSelection(e,t){this._fakeSelectionMapping.set(e,new IE(t))}fakeSelectionToView(e){return this._fakeSelectionMapping.get(e)}bindElements(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}unbindDomElement(e){let t=this._domToViewMapping.get(e);if(t){this._domToViewMapping.delete(e),this._viewToDomMapping.delete(t);for(let t of e.children)this.unbindDomElement(t)}}bindDocumentFragments(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}shouldRenderAttribute(e,t,n){return this.renderingMode===`data`?!0:(e=e.toLowerCase(),e.startsWith(`on`)||e===`srcdoc`?!1:n===`img`&&(e===`src`||e===`srcset`)||n===`source`&&e===`srcset`||!t.replace(/\s+/g,``).match(/^(javascript:|data:(image\/svg|text\/x?html))/i))}setContentOf(e,t){if(this.renderingMode===`data`){e.innerHTML=t;return}let n=new DOMParser().parseFromString(t,`text/html`),r=n.createDocumentFragment(),i=n.body.childNodes;for(;i.length>0;)r.appendChild(i[0]);let a=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT),o=[],s;for(;s=a.nextNode();)o.push(s);for(let e of o){for(let t of e.getAttributeNames())this.setDomElementAttribute(e,t,e.getAttribute(t));let t=e.tagName.toLowerCase();this._shouldRenameElement(t)&&(oO(t),e.replaceWith(this._createReplacementDomElement(t,e)))}for(;e.firstChild;)e.firstChild.remove();e.append(r)}viewToDom(e,t={}){if(e.is(`$text`)){let t=this._processDataFromViewText(e);return this._domDocument.createTextNode(t)}else{let n=e;if(this.mapViewToDom(n))if(n.getCustomProperty(`editingPipeline:doNotReuseOnce`))this._elementsWithTemporaryCustomProperties.add(n);else return this.mapViewToDom(n);let r;if(n.is(`documentFragment`))r=this._domDocument.createDocumentFragment(),t.bind&&this.bindDocumentFragments(r,n);else if(n.is(`uiElement`))return r=n.name===`$comment`?this._domDocument.createComment(n.getCustomProperty(`$rawContent`)):n.render(this._domDocument,this),t.bind&&this.bindElements(r,n),r;else{this._shouldRenameElement(n.name)?(oO(n.name),r=this._createReplacementDomElement(n.name)):r=n.hasAttribute(`xmlns`)?this._domDocument.createElementNS(n.getAttribute(`xmlns`),n.name):this._domDocument.createElement(n.name),n.is(`rawElement`)&&n.render(r,this),t.bind&&this.bindElements(r,n);for(let e of n.getAttributeKeys())this.setDomElementAttribute(r,e,n.getAttribute(e),n)}if(t.withChildren!==!1)for(let e of this.viewChildrenToDom(n,t))r instanceof HTMLTemplateElement?r.content.appendChild(e):r.appendChild(e);return r}}setDomElementAttribute(e,t,n,r){let i=this.shouldRenderAttribute(t,n,e.tagName.toLowerCase())||r&&r.shouldRenderUnsafeAttribute(t);if(i||tC(`domconverter-unsafe-attribute-detected`,{domElement:e,key:t,value:n}),!Ew(t)){tC(`domconverter-invalid-attribute-detected`,{domElement:e,key:t,value:n});return}e.hasAttribute(t)&&!i?e.removeAttribute(t):e.hasAttribute(YD+t)&&i&&e.removeAttribute(YD+t),e.setAttribute(i?t:YD+t,n)}removeDomElementAttribute(e,t){t!=XD&&(e.removeAttribute(t),e.removeAttribute(YD+t))}*viewChildrenToDom(e,t={}){let n=e.getFillerOffset&&e.getFillerOffset(),r=0;for(let i of e.getChildren()){n===r&&(yield this._getBlockFiller());let e=i.is(`element`)&&!!i.getCustomProperty(`dataPipeline:transparentRendering`)&&!gT(i.getAttributes());if(e&&this.renderingMode==`data`)if(i.is(`rawElement`)){let e=this._domDocument.createElement(i.name);i.render(e,this),yield*[...e.childNodes]}else yield*this.viewChildrenToDom(i,t);else e&&tC(`domconverter-transparent-rendering-unsupported-in-editing-pipeline`,{viewElement:i}),yield this.viewToDom(i,t);r++}n===r&&(yield this._getBlockFiller())}viewRangeToDom(e){let t=this.viewPositionToDom(e.start),n=this.viewPositionToDom(e.end),r=this._domDocument.createRange();return r.setStart(t.parent,t.offset),r.setEnd(n.parent,n.offset),r}viewPositionToDom(e){let t=e.parent;if(t.is(`$text`)){let n=this.findCorrespondingDomText(t);if(!n)return null;let r=e.offset;return jD(n)&&(r+=7),n.data&&r>n.data.length&&(r=n.data.length),{parent:n,offset:r}}else{let n,r,i;if(e.offset===0){if(n=this.mapViewToDom(t),!n)return null;i=n.childNodes[0]}else{let t=e.nodeBefore;if(r=t.is(`$text`)?this.findCorrespondingDomText(t):this.mapViewToDom(t),!r)return null;n=r.parentNode,i=r.nextSibling}if(cw(i)&&jD(i))return{parent:i,offset:7};let a=r?Cw(r)+1:0;return{parent:n,offset:a}}}domToView(e,t={}){let n=[],r=this._domToView(e,t,n),i=r.next().value;return!i||(r.next(),this._processDomInlineNodes(null,n,t),this.blockFillerMode==`br`&&iO(i))||i.is(`$text`)&&i.data.length==0?null:i}*domChildrenToView(e,t={},n=[]){let r=[];r=e instanceof HTMLTemplateElement?[...e.content.childNodes]:[...e.childNodes];for(let i=0;i{let{scrollLeft:t,scrollTop:n}=e;i.push([t,n])}),t.focus({preventScroll:!0}),$D(t,e=>{let[t,n]=i.shift();e.scrollLeft=t,e.scrollTop=n}),W.window.scrollTo(n,r)}_clearDomSelection(){let e=this.mapViewToDom(this.document.selection.editableElement);if(!e)return;let t=e.ownerDocument.defaultView.getSelection(),n=this.domSelectionToView(t);n&&n.rangeCount>0&&t.removeAllRanges()}isElement(e){return e&&e.nodeType==Node.ELEMENT_NODE}isDocumentFragment(e){return e&&e.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(e){return this.blockFillerMode==`br`?e.isEqualNode(KD):aO(e,this.blockElements)?!0:e.isEqualNode(JD)||eO(e,this.blockElements)}isDomSelectionBackward(e){if(e.isCollapsed)return!1;let t=this._domDocument.createRange();try{t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset)}catch{return!1}let n=t.collapsed;return t.detach(),n}getHostViewElement(e){let t=rw(e);for(t.pop();t.length;){let e=t.pop(),n=this._domToViewMapping.get(e);if(n&&(n.is(`uiElement`)||n.is(`rawElement`)))return n}return null}isDomSelectionCorrect(e){return this._isDomSelectionPositionCorrect(e.anchorNode,e.anchorOffset)&&this._isDomSelectionPositionCorrect(e.focusNode,e.focusOffset)}registerRawContentMatcher(e){this._rawContentElementMatcher.add(e)}registerInlineObjectMatcher(e){this._inlineObjectElementMatcher.add(e)}_clearTemporaryCustomProperties(){for(let e of this._elementsWithTemporaryCustomProperties)e._removeCustomProperty(`editingPipeline:doNotReuseOnce`);this._elementsWithTemporaryCustomProperties.clear()}_getBlockFiller(){switch(this.blockFillerMode){case`nbsp`:return DD(this._domDocument);case`markedNbsp`:return OD(this._domDocument);case`br`:return kD(this._domDocument)}}_isDomSelectionPositionCorrect(e,t){if(cw(e)&&jD(e)&&t<7||this.isElement(e)&&jD(e.childNodes[t]))return!1;let n=this.mapDomToView(e);return!(n&&(n.is(`uiElement`)||n.is(`rawElement`)))}*_domToView(e,t,n){if(this.blockFillerMode!=`br`&&aO(e,this.blockElements))return null;let r=this.getHostViewElement(e);if(r)return r;if(Tw(e)&&t.skipComments)return null;if(cw(e)){if(MD(e))return null;{let t=e.data;if(t===``)return null;let r=new nE(this.document,t);return n.push(r),r}}else{let r=this.mapDomToView(e);if(r)return this._isInlineObjectElement(r)&&n.push(r),r;if(this.isDocumentFragment(e))r=new pD(this.document),t.bind&&this.bindDocumentFragments(e,r);else{r=this._createViewElement(e,t),t.bind&&this.bindElements(e,r);let i=e.attributes;if(i)for(let e=i.length,t=0;t0?t[e-1]:null,c=e+1e.is(`element`)&&t.includes(e.name))}function $D(e,t){let n=e;for(;n;)t(n),n=n.parentElement}function eO(e,t){return e.isEqualNode(qD)&&tO(e,t)&&e.parentNode.childNodes.length===1}function tO(e,t){let n=e.parentNode;return!!n&&!!n.tagName&&t.includes(n.tagName.toLowerCase())}function nO(e,t,n){return t==`\xA0`&&e&&e.is(`element`)&&e.childCount==1&&n.includes(e.name)}function rO(e,t){return t==`\xA0`&&e&&e.is(`element`,`span`)&&e.childCount==1&&e.hasAttribute(`data-cke-filler`)}function iO(e){return e.is(`element`,`br`)&&e.hasAttribute(`data-cke-filler`)}function aO(e,t){return e.tagName===`BR`&&tO(e,t)&&e.parentNode.childNodes.length===1}function oO(e){e===`script`&&tC(`domconverter-unsafe-script-element-detected`),e===`style`&&tC(`domconverter-unsafe-style-element-detected`)}function sO(e){if(!G.isGecko||!e.rangeCount)return!1;let t=e.getRangeAt(0).startContainer;try{Object.prototype.toString.call(t)}catch{return!0}return!1}var cO=$C(),lO=class extends cO{view;document;_isEnabled=!1;constructor(e){super(),this.view=e,this.document=e.document}get isEnabled(){return this._isEnabled}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(e){return e&&e.nodeType===3&&(e=e.parentNode),!e||e.nodeType!==1?!1:e.matches(`[data-cke-ignore-events], [data-cke-ignore-events] *`)}},uO=class{view;document;domEvent;domTarget;constructor(e,t,n){this.view=e,this.document=e.document,this.domEvent=t,this.domTarget=t.target,cS(this,n)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}},dO=class extends lO{useCapture=!1;usePassive=!1;observe(e){(typeof this.domEventType==`string`?[this.domEventType]:this.domEventType).forEach(t=>{this.listenTo(e,t,(e,t)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(t.target)&&this.onDomEvent(t)},{useCapture:this.useCapture,usePassive:this.usePassive})})}stopObserving(e){this.stopListening(e)}fire(e,t,n){this.isEnabled&&this.document.fire(e,new uO(this.view,t,n))}},fO=class extends dO{domEventType=[`keydown`,`keyup`];onDomEvent(e){let t={keyCode:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,get keystroke(){return Xw(this)}};this.fire(e.type,e,t)}},pO=class extends lO{_fireSelectionChangeDoneDebounced;constructor(e){super(e),this._fireSelectionChangeDoneDebounced=Kx(e=>{this.document.fire(`selectionChangeDone`,e)},200)}observe(){let e=this.document;e.on(`arrowKey`,(t,n)=>{e.selection.isFake&&this.isEnabled&&n.preventDefault()},{context:`$capture`}),e.on(`arrowKey`,(t,n)=>{e.selection.isFake&&this.isEnabled&&this._handleSelectionMove(n.keyCode)},{priority:`lowest`})}stopObserving(){}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(e){let t=this.document.selection,n=new IE(t.getRanges(),{backward:t.isBackward,fake:!1});(e==q.arrowleft||e==q.arrowup)&&n.setTo(n.getFirstPosition()),(e==q.arrowright||e==q.arrowdown)&&n.setTo(n.getLastPosition());let r={oldSelection:t,newSelection:n,domSelection:null};this.document.fire(`selectionChange`,r),this._fireSelectionChangeDoneDebounced(r)}},mO=class extends lO{domConverter;_config;_domElements;_mutationObserver;constructor(e){super(e),this._config={childList:!0,characterData:!0,subtree:!0},this.domConverter=e.domConverter,this._domElements=new Set,this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(e){this._domElements.add(e),this.isEnabled&&this._mutationObserver.observe(e,this._config)}stopObserving(e){if(this._domElements.delete(e),this.isEnabled){this._mutationObserver.disconnect();for(let e of this._domElements)this._mutationObserver.observe(e,this._config)}}enable(){super.enable();for(let e of this._domElements)this._mutationObserver.observe(e,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(e){if(e.length===0)return;let t=this.domConverter,n=new Set,r=new Set;for(let n of e){let e=t.mapDomToView(n.target);e&&(e.is(`uiElement`)||e.is(`rawElement`)||n.type===`childList`&&!this._isBogusBrMutation(n)&&r.add(e))}for(let i of e){let e=t.mapDomToView(i.target);if(!(e&&(e.is(`uiElement`)||e.is(`rawElement`)))&&i.type===`characterData`){let e=t.findCorrespondingViewText(i.target);e&&!r.has(e.parent)?n.add(e):!e&&jD(i.target)&&r.add(t.mapDomToView(i.target.parentNode))}}let i=[];for(let e of n)i.push({type:`text`,node:e});for(let e of r){let n=t.mapViewToDom(e);ES(Array.from(e.getChildren()),Array.from(t.domChildrenToView(n,{withChildren:!1})),hO)||i.push({type:`children`,node:e})}i.length&&this.document.fire(`mutations`,{mutations:i})}_isBogusBrMutation(e){let t=null;return e.nextSibling===null&&e.removedNodes.length===0&&e.addedNodes.length==1&&(t=this.domConverter.domToView(e.addedNodes[0],{withChildren:!1})),t&&t.is(`element`,`br`)}};function hO(e,t){if(!Array.isArray(e))return e===t?!0:e.is(`$text`)&&t.is(`$text`)?e.data===t.data:!1}var gO=class extends dO{_renderTimeoutId=null;_isFocusChanging=!1;domEventType=[`focus`,`blur`];constructor(e){super(e),this.useCapture=!0;let t=this.document;t.on(`focus`,()=>this._handleFocus()),t.on(`blur`,(e,t)=>this._handleBlur(t)),t.on(`beforeinput`,()=>{t.isFocused||this._handleFocus()},{priority:`highest`})}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(e){this.fire(e.type,e)}destroy(){this._clearTimeout(),super.destroy()}_handleFocus(){this._clearTimeout(),this._isFocusChanging=!0,this._renderTimeoutId=setTimeout(()=>{this._renderTimeoutId=null,this.flush(),this.view.change(()=>{})},50)}_handleBlur(e){let t=this.document.selection.editableElement;(t===null||t===e.target)&&(this.document.isFocused=!1,this._isFocusChanging=!1,this.view.change(()=>{}))}_clearTimeout(){this._renderTimeoutId&&=(clearTimeout(this._renderTimeoutId),null)}},_O=class extends lO{mutationObserver;focusObserver;selection;domConverter;_documents=new WeakSet;_fireSelectionChangeDoneDebounced;_clearInfiniteLoopInterval;_documentIsSelectingInactivityTimeoutDebounced;_loopbackCounter=0;_pendingSelectionChange=new Set;constructor(e){super(e),this.mutationObserver=e.getObserver(mO),this.focusObserver=e.getObserver(gO),this.selection=this.document.selection,this.domConverter=e.domConverter,this._fireSelectionChangeDoneDebounced=Kx(e=>{this.document.fire(`selectionChangeDone`,e)},200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._documentIsSelectingInactivityTimeoutDebounced=Kx(()=>this.document.isSelecting=!1,5e3),this.view.document.on(`change:isFocused`,(e,t,n)=>{if(n&&this._pendingSelectionChange.size){for(let e of Array.from(this._pendingSelectionChange))this._handleSelectionChange(e);this._pendingSelectionChange.clear()}})}observe(e){let t=e.ownerDocument,n=()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()},r=()=>{this.document.isSelecting&&(this._handleSelectionChange(t),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(e,`selectstart`,n,{priority:`highest`}),this.listenTo(e,`keydown`,r,{priority:`highest`,useCapture:!0}),this.listenTo(e,`keyup`,r,{priority:`highest`,useCapture:!0}),!this._documents.has(t)&&(this.listenTo(t,`mouseup`,r,{priority:`highest`,useCapture:!0}),this.listenTo(t,`selectionchange`,()=>{this.document.isComposing&&!G.isAndroid||(this._handleSelectionChange(t),this._documentIsSelectingInactivityTimeoutDebounced())}),this.listenTo(this.view.document,`compositionstart`,()=>{this._handleSelectionChange(t)},{priority:`lowest`}),this._documents.add(t))}stopObserving(e){this.stopListening(e)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(e){if(!this.isEnabled)return;let t=e.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(t.anchorNode))return;this.mutationObserver.flush();let n=this.domConverter.domSelectionToView(t);if(n.rangeCount==0){this.view.hasDomSelection=!1;return}if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!this.view.document.isFocused&&!this.view.document.isReadOnly){this._pendingSelectionChange.add(e);return}if(this._pendingSelectionChange.delete(e),!(this.selection.isEqual(n)&&this.domConverter.isDomSelectionCorrect(t))){if(++this._loopbackCounter>60){this._reportInfiniteLoop();return}if(!vO(n))this.view.forceRender();else if(this.selection.isSimilar(n))this.view.forceRender();else{let e={oldSelection:this.selection,newSelection:n,domSelection:t};this.document.fire(`selectionChange`,e),this._fireSelectionChangeDoneDebounced(e)}}}_clearInfiniteLoop(){this._loopbackCounter=0}};function vO(e){return Array.from(e.getRanges()).flatMap(e=>[e.start.root,e.end.root]).every(e=>e&&e.is(`rootElement`))}var yO=class extends dO{domEventType=[`compositionstart`,`compositionupdate`,`compositionend`];constructor(e){super(e);let t=this.document;t.on(`compositionstart`,()=>{t.isComposing=!0}),t.on(`compositionend`,()=>{t.isComposing=!1})}onDomEvent(e){this.fire(e.type,e,{data:e.data})}},bO=class{_files;_native;constructor(e,t={}){this._files=t.cacheFiles?xO(e):null,this._native=e}get files(){return this._files||=xO(this._native),this._files}get types(){return this._native.types}getData(e){return this._native.getData(e)}setData(e,t){this._native.setData(e,t)}set effectAllowed(e){this._native.effectAllowed=e}get effectAllowed(){return this._native.effectAllowed}set dropEffect(e){this._native.dropEffect=e}get dropEffect(){return this._native.dropEffect}setDragImage(e,t,n){this._native.setDragImage(e,t,n)}get isCanceled(){return this._native.dropEffect==`none`||!!this._native.mozUserCancelled}};function xO(e){let t=Array.from(e.files||[]),n=Array.from(e.items||[]);return t.length?t:n.filter(e=>e.kind===`file`).map(e=>e.getAsFile())}var SO=class extends dO{domEventType=`beforeinput`;onDomEvent(e){let t=e.getTargetRanges(),n=this.view,r=n.document,i=null,a=null,o=[];if(e.dataTransfer&&(i=new bO(e.dataTransfer)),e.data===null?i&&(a=i.getData(`text/plain`)):a=e.data,r.selection.isFake)o=Array.from(r.selection.getRanges()),e.preventDefault();else if(t.length)o=t.map(t=>{let r=n.domConverter.domPositionToView(t.startContainer,t.startOffset),i=n.domConverter.domPositionToView(t.endContainer,t.endOffset);if(r&&jD(t.startContainer)&&t.startOffset<7){e.preventDefault();let n=7-t.startOffset;r=r.getLastMatchingPosition(e=>!!(e.item.is(`attributeElement`)||e.item.is(`uiElement`)||e.item.is(`$textProxy`)&&n--),{direction:`backward`,singleCharacters:!0})}if(CO(t.endContainer,t.endOffset)&&e.preventDefault(),r)return n.createRange(r,i);if(i)return n.createRange(i)}).filter(e=>!!e);else if(G.isAndroid){let t=e.target.ownerDocument.defaultView.getSelection();o=Array.from(n.domConverter.domSelectionToView(t).getRanges())}if(G.isAndroid&&e.inputType==`insertCompositionText`&&a&&a.endsWith(` +`)){this.fire(e.type,e,{inputType:`insertParagraph`,targetRanges:[n.createRange(o[0].end)]});return}if([`insertText`,`insertReplacementText`].includes(e.inputType)&&a&&a.includes(` +`)){let t=a.split(/\n{1,2}/g),n=o;e.preventDefault();for(let a=0;a{if(this.isEnabled&&$w(t.keyCode)){let n=new zE(this.document,`arrowKey`,this.document.selection.getFirstRange());this.document.fire(n,t),n.stop.called&&e.stop()}})}observe(){}stopObserving(){}},TO=class extends lO{constructor(e){super(e);let t=this.document;t.on(`keydown`,(e,n)=>{if(!this.isEnabled||n.keyCode!=q.tab||n.ctrlKey)return;let r=new zE(t,`tab`,t.selection.getFirstRange());t.fire(r,n),r.stop.called&&e.stop()})}observe(){}stopObserving(){}},EO=AC(),DO=class extends EO{document;domConverter;domRoots=new Map;_renderer;_initialDomRootAttributes=new WeakMap;_observers=new Map;_writer;_ongoingChange=!1;_postFixersInProgress=!1;_renderingDisabled=!1;_hasChangedSinceTheLastRendering=!1;constructor(e){super(),this.document=new $E(e),this.domConverter=new ZD(this.document),this.set(`isRenderingInProgress`,!1),this.set(`hasDomSelection`,!1),this._renderer=new LD(this.domConverter,this.document.selection),this._renderer.bind(`isFocused`,`isSelecting`,`isComposing`).to(this.document,`isFocused`,`isSelecting`,`isComposing`),this._writer=new hD(this.document),this.addObserver(mO),this.addObserver(gO),this.addObserver(_O),this.addObserver(fO),this.addObserver(pO),this.addObserver(yO),this.addObserver(wO),this.addObserver(SO),this.addObserver(TO),PD(this),sD(this),this.on(`render`,()=>{this._render(),this.document.fire(`layoutChanged`),this._hasChangedSinceTheLastRendering=!1}),this.listenTo(this.document.selection,`change`,()=>{this._hasChangedSinceTheLastRendering=!0}),this.listenTo(this.document,`change:isFocused`,()=>{this._hasChangedSinceTheLastRendering=!0}),G.isiOS&&this.listenTo(this.document,`blur`,(e,t)=>{this.domConverter.mapDomToView(t.domEvent.relatedTarget)||this.domConverter._clearDomSelection()}),this.listenTo(this.document,`mutations`,(e,{mutations:t})=>{t.forEach(e=>this._renderer.markToSync(e.type,e.node))},{priority:`low`}),this.listenTo(this.document,`mutations`,()=>{this.forceRender()},{priority:`lowest`})}attachDomRoot(e,t=`main`){let n=this.document.getRoot(t);n._name=e.tagName.toLowerCase();let r={};for(let{name:t,value:i}of Array.from(e.attributes))r[t]=i,t===`class`?this._writer.addClass(i.split(` `),n):n.hasAttribute(t)||this._writer.setAttribute(t,i,n);this._initialDomRootAttributes.set(e,r);let i=()=>{this._writer.setAttribute(`contenteditable`,(!n.isReadOnly).toString(),n),n.isReadOnly?this._writer.addClass(`ck-read-only`,n):this._writer.removeClass(`ck-read-only`,n)};i(),this.domRoots.set(t,e),this.domConverter.bindElements(e,n),this._renderer.markToSync(`children`,n),this._renderer.markToSync(`attributes`,n),this._renderer.domDocuments.add(e.ownerDocument),n.on(`change:children`,(e,t)=>this._renderer.markToSync(`children`,t)),n.on(`change:attributes`,(e,t)=>this._renderer.markToSync(`attributes`,t)),n.on(`change:text`,(e,t)=>this._renderer.markToSync(`text`,t)),n.on(`change:isReadOnly`,()=>this.change(i)),n.on(`change`,()=>{this._hasChangedSinceTheLastRendering=!0});for(let n of this._observers.values())n.observe(e,t)}detachDomRoot(e){let t=this.domRoots.get(e);Array.from(t.attributes).forEach(({name:e})=>t.removeAttribute(e));let n=this._initialDomRootAttributes.get(t);for(let e in n)t.setAttribute(e,n[e]);this.domRoots.delete(e),this.domConverter.unbindDomElement(t);for(let e of this._observers.values())e.stopObserving(t)}getDomRoot(e=`main`){return this.domRoots.get(e)}addObserver(e){let t=this._observers.get(e);if(t)return t;t=new e(this),this._observers.set(e,t);for(let[e,n]of this.domRoots)t.observe(n,e);return t.enable(),t}getObserver(e){return this._observers.get(e)}disableObservers(){for(let e of this._observers.values())e.disable()}enableObservers(){for(let e of this._observers.values())e.enable()}scrollToTheSelection({alignToTop:e,forceScroll:t,viewportOffset:n=20,ancestorOffset:r=20}={}){let i=this.document.selection.getFirstRange();if(!i)return;let a=wx({alignToTop:e,forceScroll:t,viewportOffset:n,ancestorOffset:r});typeof n==`number`&&(n={top:n,bottom:n,left:n,right:n});let o={target:this.domConverter.viewRangeToDom(i),viewportOffset:n,ancestorOffset:r,alignToTop:e,forceScroll:t};this.fire(`scrollToTheSelection`,o,a),Fw(o)}focus(){if(!this.document.isFocused){let e=this.document.selection.editableElement;e&&(this.domConverter.focus(e),this.forceRender())}}change(e){if(this.isRenderingInProgress||this._postFixersInProgress)throw new K(`cannot-change-view-tree`,this);try{if(this._ongoingChange)return e(this._writer);this._ongoingChange=!0;let t=e(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire(`render`)),t}catch(e){K.rethrowUnexpectedError(e,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(gO).flush(),this.change(()=>{})}destroy(){for(let e of this._observers.values())e.destroy();this.document.destroy(),this.stopListening()}createPositionAt(e,t){return J._createAt(e,t)}createPositionAfter(e){return J._createAfter(e)}createPositionBefore(e){return J._createBefore(e)}createRange(e,t){return new NE(e,t)}createRangeOn(e){return NE._createOn(e)}createRangeIn(e){return NE._createIn(e)}createSelection(...e){return new IE(...e)}_disableRendering(e){this._renderingDisabled=e,e==0&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}},OO=class{is(){throw Error(`is() method is abstract`)}},kO=class extends OO{textNode;data;offsetInText;constructor(e,t,n){if(super(),this.textNode=e,t<0||t>e.offsetSize)throw new K(`model-textproxy-wrong-offsetintext`,this);if(n<0||t+n>e.offsetSize)throw new K(`model-textproxy-wrong-length`,this);this.data=e.data.substring(t,t+n),this.offsetInText=t}get startOffset(){return this.textNode.startOffset===null?null:this.textNode.startOffset+this.offsetInText}get offsetSize(){return this.data.length}get endOffset(){return this.startOffset===null?null:this.startOffset+this.offsetSize}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}getPath(){let e=this.textNode.getPath();return e.length>0&&(e[e.length-1]+=this.offsetInText),e}getAncestors(e={}){let t=[],n=e.includeSelf?this:this.parent;for(;n;)t[e.parentFirst?`push`:`unshift`](n),n=n.parent;return t}hasAttribute(e){return this.textNode.hasAttribute(e)}getAttribute(e){return this.textNode.getAttribute(e)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}};kO.prototype.is=function(e){return e===`$textProxy`||e===`model:$textProxy`||e===`textProxy`||e===`model:textProxy`};var AO=class{direction;boundaries;singleCharacters;shallow;ignoreElementEnd;_position;_boundaryStartParent;_boundaryEndParent;_visitedParent;constructor(e){if(!e||!e.boundaries&&!e.startPosition)throw new K(`model-tree-walker-no-start-position`,null);let t=e.direction||`forward`;if(t!=`forward`&&t!=`backward`)throw new K(`model-tree-walker-unknown-direction`,e,{direction:t});this.direction=t,this.boundaries=e.boundaries||null,e.startPosition?this._position=e.startPosition.clone():this._position=Y._createAt(this.boundaries[this.direction==`backward`?`end`:`start`]),this.position.stickiness=`toNone`,this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}get position(){return this._position}skip(e){let t,n,r,i;do r=this.position,i=this._visitedParent,{done:t,value:n}=this.next();while(!t&&e(n));t||(this._position=r,this._visitedParent=i)}jumpTo(e){this._boundaryStartParent&&e.isBefore(this.boundaries.start)?e=this.boundaries.start:this._boundaryEndParent&&e.isAfter(this.boundaries.end)&&(e=this.boundaries.end),this._position=e.clone(),this._visitedParent=e.parent}next(){return this.direction==`forward`?this._next():this._previous()}_next(){let e=this.position,t=this.position.clone(),n=this._visitedParent;if(n.parent===null&&t.offset===n.maxOffset||n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let r=MO(t,n),i=r||NO(t,n,r);if(i&&i.is(`model:element`)){if(!this.shallow)t.path.push(0),this._visitedParent=i;else{if(this.boundaries&&this.boundaries.end.isBefore(t))return{done:!0,value:void 0};t.offset++}return this._position=t,jO(`elementStart`,i,e,t,1)}if(i&&i.is(`model:$text`)){let r;if(this.singleCharacters)r=1;else{let e=i.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offsete&&(e=this.boundaries.start.offset),r=t.offset-e}let i=new kO(a,t.offset-a.startOffset-r,r);return t.offset-=r,this._position=t,jO(`text`,i,e,t,r)}return t.path.pop(),this._position=t,this._visitedParent=n.parent,jO(`elementStart`,n,e,t,1)}};function jO(e,t,n,r,i){return{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:r,length:i}}}var Y=class e extends OO{root;path;stickiness;constructor(e,t,n=`toNone`){if(super(),!e.is(`element`)&&!e.is(`documentFragment`))throw new K(`model-position-root-invalid`,e);if(!Array.isArray(t)||t.length===0)throw new K(`model-position-path-incorrect-format`,e,{path:t});e.is(`rootElement`)?t=t.slice():(t=[...e.getPath(),...t],e=e.root),this.root=e,this.path=t,this.stickiness=n}get offset(){return this.path[this.path.length-1]}set offset(e){this.path[this.path.length-1]=e}get parent(){let e=this.root;for(let t=0;t1)return!1;if(t===1)return FO(e,this,n);if(t===-1)return FO(this,e,n)}return this.path.length===e.path.length?!0:this.path.length>e.path.length?IO(this.path,t):IO(e.path,t)}hasSameParentAs(e){return this.root===e.root&&UC(this.getParentPath(),e.getParentPath())==`same`}getTransformedByOperation(t){let n;switch(t.type){case`insert`:n=this._getTransformedByInsertOperation(t);break;case`move`:case`remove`:case`reinsert`:n=this._getTransformedByMoveOperation(t);break;case`split`:n=this._getTransformedBySplitOperation(t);break;case`merge`:n=this._getTransformedByMergeOperation(t);break;default:n=e._createAt(this);break}return n}_getTransformedByInsertOperation(e){return this._getTransformedByInsertion(e.position,e.howMany)}_getTransformedByMoveOperation(e){return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany)}_getTransformedBySplitOperation(e){let t=e.movedRange;return t.containsPosition(this)||t.start.isEqual(this)&&this.stickiness==`toNext`?this._getCombined(e.splitPosition,e.moveTargetPosition):e.graveyardPosition?this._getTransformedByMove(e.graveyardPosition,e.insertionPosition,1):this._getTransformedByInsertion(e.insertionPosition,1)}_getTransformedByMergeOperation(t){let n=t.movedRange,r=n.containsPosition(this)||n.start.isEqual(this),i;return r?(i=this._getCombined(t.sourcePosition,t.targetPosition),t.sourcePosition.isBefore(t.targetPosition)&&(i=i._getTransformedByDeletion(t.deletionPosition,1))):i=this.isEqual(t.deletionPosition)?e._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),i}_getTransformedByDeletion(t,n){let r=e._createAt(this);if(this.root!=t.root)return r;if(UC(t.getParentPath(),this.getParentPath())==`same`){if(t.offsetthis.offset)return null;r.offset-=n}}else if(UC(t.getParentPath(),this.getParentPath())==`prefix`){let e=t.path.length-1;if(t.offset<=this.path[e]){if(t.offset+n>this.path[e])return null;r.path[e]-=n}}return r}_getTransformedByInsertion(t,n){let r=e._createAt(this);if(this.root!=t.root)return r;if(UC(t.getParentPath(),this.getParentPath())==`same`)(t.offset=t;){if(e.path[r]+i!==n.maxOffset)return!1;i=1,r--,n=n.parent}return!0}var X=class e extends OO{start;end;constructor(e,t){super(),this.start=Y._createAt(e),this.end=t?Y._createAt(t):Y._createAt(e),this.start.stickiness=this.isCollapsed?`toNone`:`toNext`,this.end.stickiness=this.isCollapsed?`toNone`:`toPrevious`}*[Symbol.iterator](){yield*new AO({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return UC(this.start.getParentPath(),this.end.getParentPath())==`same`}get root(){return this.start.root}containsPosition(e){return e.isAfter(this.start)&&e.isBefore(this.end)}containsRange(e,t=!1){e.isCollapsed&&(t=!1);let n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),r=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&r}containsItem(e){let t=Y._createBefore(e);return this.containsPosition(t)||this.start.isEqual(t)}isEqual(e){return this.start.isEqual(e.start)&&this.end.isEqual(e.end)}isIntersecting(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}getDifference(t){let n=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&n.push(new e(this.start,t.start)),this.containsPosition(t.end)&&n.push(new e(t.end,this.end))):n.push(new e(this.start,this.end)),n}getIntersection(t){if(this.isIntersecting(t)){let n=this.start,r=this.end;return this.containsPosition(t.start)&&(n=t.start),this.containsPosition(t.end)&&(r=t.end),new e(n,r)}return null}getJoined(t,n=!1){let r=this.isIntersecting(t);if(r||=this.start.isBefore(t.start)?n?this.end.isTouching(t.start):this.end.isEqual(t.start):n?t.end.isTouching(this.start):t.end.isEqual(this.start),!r)return null;let i=this.start,a=this.end;return t.start.isBefore(i)&&(i=t.start),t.end.isAfter(a)&&(a=t.end),new e(i,a)}getMinimalFlatRanges(){let t=[],n=this.start.getCommonPath(this.end).length,r=Y._createAt(this.start),i=r.parent;for(;r.path.length>n+1;){let n=i.maxOffset-r.offset;n!==0&&t.push(new e(r,r.getShiftedBy(n))),r.path=r.path.slice(0,-1),r.offset++,i=i.parent}for(;r.path.length<=this.end.path.length;){let n=this.end.path[r.path.length-1],i=n-r.offset;i!==0&&t.push(new e(r,r.getShiftedBy(i))),r.offset=n,r.path.push(0)}return t}getWalker(e={}){return e.boundaries=this,new AO(e)}*getItems(e={}){e.boundaries=this,e.ignoreElementEnd=!0;let t=new AO(e);for(let e of t)yield e.item}*getPositions(e={}){e.boundaries=this;let t=new AO(e);yield t.position;for(let e of t)yield e.nextPosition}getTransformedByOperation(t){switch(t.type){case`insert`:return this._getTransformedByInsertOperation(t);case`move`:case`remove`:case`reinsert`:return this._getTransformedByMoveOperation(t);case`split`:return[this._getTransformedBySplitOperation(t)];case`merge`:return[this._getTransformedByMergeOperation(t)]}return[new e(this.start,this.end)]}getTransformedByOperations(t){let n=[new e(this.start,this.end)];for(let e of t)for(let t=0;t0?new this(n,r):new this(r,n)}static _createIn(e){return new this(Y._createAt(e,0),Y._createAt(e,e.maxOffset))}static _createOn(e){return this._createFromPositionAndShift(Y._createBefore(e),e.offsetSize)}static _createFromRanges(e){if(e.length===0)throw new K(`range-create-from-ranges-empty-array`,null);if(e.length==1)return e[0].clone();let t=e[0];e.sort((e,t)=>e.start.isAfter(t.start)?1:-1);let n=e.indexOf(t),r=new this(t.start,t.end);for(let t=n-1;t>=0&&e[t].end.isEqual(r.start);t--)r.start=Y._createAt(e[t].start);for(let t=n+1;t{if(t.viewPosition)return;let n=this._modelToViewMapping.get(t.modelPosition.parent);if(!n)throw new K(`mapping-model-position-view-parent-not-found`,this,{modelPosition:t.modelPosition});t.viewPosition=this.findPositionIn(n,t.modelPosition.offset)},{priority:`low`}),this.on(`viewToModelPosition`,(e,t)=>{if(t.modelPosition)return;let n=this.findMappedViewAncestor(t.viewPosition),r=this._viewToModelMapping.get(n),i=this._toModelOffset(t.viewPosition.parent,t.viewPosition.offset,n);t.modelPosition=Y._createAt(r,i)},{priority:`low`})}bindElements(e,t){this._modelToViewMapping.set(e,t),this._viewToModelMapping.set(t,e)}unbindViewElement(e,t={}){let n=this.toModelElement(e);if(this._elementToMarkerNames.has(e))for(let t of this._elementToMarkerNames.get(e))this._unboundMarkerNames.add(t);t.defer?this._deferredBindingRemovals.set(e,e.root):(this._viewToModelMapping.delete(e)&&this._cache.stopTracking(e),this._modelToViewMapping.get(n)==e&&this._modelToViewMapping.delete(n))}unbindModelElement(e){let t=this.toViewElement(e);this._modelToViewMapping.delete(e),this._viewToModelMapping.get(t)==e&&this._viewToModelMapping.delete(t)&&this._cache.stopTracking(t)}bindElementToMarker(e,t){let n=this._markerNameToElements.get(t)||new Set;n.add(e);let r=this._elementToMarkerNames.get(e)||new Set;r.add(t),this._markerNameToElements.set(t,n),this._elementToMarkerNames.set(e,r)}unbindElementFromMarkerName(e,t){let n=this._markerNameToElements.get(t);n&&(n.delete(e),n.size==0&&this._markerNameToElements.delete(t));let r=this._elementToMarkerNames.get(e);r&&(r.delete(t),r.size==0&&this._elementToMarkerNames.delete(e))}flushUnboundMarkerNames(){let e=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),e}flushDeferredBindings(){for(let[e,t]of this._deferredBindingRemovals)e.root==t&&this.unbindViewElement(e);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(e){return this._viewToModelMapping.get(e)}toViewElement(e){return this._modelToViewMapping.get(e)}toModelRange(e){return new X(this.toModelPosition(e.start),this.toModelPosition(e.end))}toViewRange(e){return new NE(this.toViewPosition(e.start),this.toViewPosition(e.end))}toModelPosition(e){let t={viewPosition:e,mapper:this};return this.fire(`viewToModelPosition`,t),t.modelPosition}toViewPosition(e,t={}){let n={modelPosition:e,mapper:this,isPhantom:t.isPhantom};return this.fire(`modelToViewPosition`,n),n.viewPosition}markerNameToElements(e){let t=this._markerNameToElements.get(e);if(!t)return null;let n=new Set;for(let e of t)if(e.is(`attributeElement`))for(let t of e.getElementsWithSameId())n.add(t);else n.add(e);return n}registerViewToModelLength(e,t){this._viewToModelLengthCallbacks.set(e,t)}findMappedViewAncestor(e){let t=e.parent;for(;!this._viewToModelMapping.has(t);)t=t.parent;return t}_toModelOffset(e,t,n){if(n!=e)return this._toModelOffset(e.parent,e.index,n)+this._toModelOffset(e,t,e);if(e.is(`$text`))return t;let r=0;for(let n=0;n0;){let e=t.pop(),r=e.name&&this._viewToModelLengthCallbacks.size>0&&this._viewToModelLengthCallbacks.get(e.name);if(r)n+=r(e);else if(this._viewToModelMapping.has(e))n+=1;else if(e.is(`$text`))n+=e.data.length;else if(e.is(`uiElement`))continue;else for(let n of e.getChildren())t.push(n)}return n}findPositionIn(e,t){if(t===0)return this._moveViewPositionToTextNode(new J(e,0));if(this._viewToModelLengthCallbacks.size==0&&this._viewToModelMapping.has(e)){let n=this._cache.getClosest(e,t);return this._findPositionStartingFrom(n.viewPosition,n.modelOffset,t,e,!0)}else return this._findPositionStartingFrom(new J(e,0),0,t,e,!1)}_findPositionStartingFrom(e,t,n,r,i){let a=e.parent,o=e.offset;if(a.is(`$text`))return new J(a,n-t);let s,c=t,l=0;for(;c{this._clearCacheInsideParent(t,n.index)};_invalidateOnTextChangeCallback=(e,t)=>{this._clearCacheAfter(t)};save(e,t,n,r){let i=this._cachedMapping.get(n),a=i.cacheMap.get(r);if(a){let n=e.getChild(t-1),r=a.viewPosition.nodeBefore?this._nodeToCacheListIndex.get(a.viewPosition.nodeBefore):0;this._nodeToCacheListIndex.set(n,r);return}let o={viewPosition:new J(e,t),modelOffset:r};i.maxModelOffset=r>i.maxModelOffset?r:i.maxModelOffset,i.cacheMap.set(r,o);let s=i.cacheList.length-1;for(;s>=0&&i.cacheList[s].modelOffset>r;)s--;if(i.cacheList.splice(s+1,0,o),t>0){let n=e.getChild(t-1);this._nodeToCacheListIndex.set(n,s+1)}}getClosest(e,t){let n=this._cachedMapping.get(e),r;return r=n?t>n.maxModelOffset?n.cacheList[n.cacheList.length-1]:n.cacheMap.get(t)||this._findInCacheList(n.cacheList,t):this.startTracking(e),{modelOffset:r.modelOffset,viewPosition:r.viewPosition.clone()}}startTracking(e){let t={viewPosition:new J(e,0),modelOffset:0},n={maxModelOffset:0,cacheList:[t],cacheMap:new Map([[0,t]])};return this._cachedMapping.set(e,n),e.on(`change:children`,this._invalidateOnChildrenChangeCallback),e.on(`change:text`,this._invalidateOnTextChangeCallback),t}stopTracking(e){e.off(`change:children`,this._invalidateOnChildrenChangeCallback),e.off(`change:text`,this._invalidateOnTextChangeCallback),this._cachedMapping.delete(e)}_clearCacheInsideParent(e,t){if(t==0)this._cachedMapping.has(e)?this._clearCacheAll(e):this._clearCacheInsideParent(e.parent,e.index);else{let n=e.getChild(t-1);this._clearCacheAfter(n)}}_clearCacheAll(e){let t=this._cachedMapping.get(e);t.maxModelOffset>0&&(t.maxModelOffset=0,t.cacheList.length=1,t.cacheMap.clear(),t.cacheMap.set(0,t.cacheList[0]))}_clearCacheAfter(e){let t=this._nodeToCacheListIndex.get(e);if(t===void 0){let t=e.parent;this._cachedMapping.has(t)||this._clearCacheInsideParent(t.parent,t.index);return}let n=e.parent;for(;!this._cachedMapping.has(n);)n=n.parent;this._clearCacheFromCacheIndex(n,t)}_clearCacheFromCacheIndex(e,t){t===0&&(t=1);let n=this._cachedMapping.get(e),r=n.cacheList[t-1];if(!r)return;n.maxModelOffset=r.modelOffset;let i=n.cacheList.splice(t);for(let e of i){n.cacheMap.delete(e.modelOffset);let t=e.viewPosition.nodeBefore;this._nodeToCacheListIndex.delete(t)}}_findInCacheList(e,t){let n=0,r=e.length-1,i=r-n>>1,a=e[i];for(;n>1),a=e[i];return a.modelOffset<=t?a:e[i-1]}},HO=class{_consumable=new Map;_textProxyRegistry=new Map;add(e,t){t=UO(t),e instanceof kO&&(e=this._getSymbolForTextProxy(e)),this._consumable.has(e)||this._consumable.set(e,new Map),this._consumable.get(e).set(t,!0)}consume(e,t){return t=UO(t),e instanceof kO&&(e=this._getSymbolForTextProxy(e)),this.test(e,t)?(this._consumable.get(e).set(t,!1),!0):!1}test(e,t){t=UO(t),e instanceof kO&&(e=this._getSymbolForTextProxy(e));let n=this._consumable.get(e);if(n===void 0)return null;let r=n.get(t);return r===void 0?null:r}revert(e,t){t=UO(t),e instanceof kO&&(e=this._getSymbolForTextProxy(e));let n=this.test(e,t);return n===!1?(this._consumable.get(e).set(t,!0),!0):n!==!0&&null}verifyAllConsumed(e){let t=[];for(let[n,r]of this._consumable)for(let[i,a]of r){let r=i.split(`:`)[0];a&&e==r&&t.push({event:i,item:n.name||n.description})}if(t.length)throw new K(`conversion-model-consumable-not-consumed`,null,{items:t})}_getSymbolForTextProxy(e){let t=null,n=this._textProxyRegistry.get(e.startOffset);if(n){let r=n.get(e.endOffset);r&&(t=r.get(e.parent))}return t||=this._addSymbolForTextProxy(e),t}_addSymbolForTextProxy(e){let t=e.startOffset,n=e.endOffset,r=e.parent,i=Symbol(`$textProxy:`+e.data),a,o;return a=this._textProxyRegistry.get(t),a||(a=new Map,this._textProxyRegistry.set(t,a)),o=a.get(n),o||(o=new Map,a.set(n,o)),o.set(r,i),i}};function UO(e){let t=e.split(`:`);return t[0]==`insert`?t[0]:t[0]==`addMarker`||t[0]==`removeMarker`?e:t.length>1?t[0]+`:`+t[1]:t[0]}function WO([e,t],[n,r]){if(t.end.compareWith(r.start)!==`after`)return 1;if(t.start.compareWith(r.end)!==`before`)return-1;switch(t.start.compareWith(r.start)){case`before`:return 1;case`after`:return-1;default:switch(t.end.compareWith(r.end)){case`before`:return-1;case`after`:return 1;default:return n.localeCompare(e)}}}var GO=fC(),KO=class extends GO{_conversionApi;_firedEventsMap;constructor(e){super(),this._conversionApi={dispatcher:this,...e},this._firedEventsMap=new WeakMap}convertChanges(e,t,n){let r=e.getRefreshedItems(),i=this._createConversionApi(n,r);for(let t of e.getMarkersToRemove())this._convertMarkerRemove(t.name,t.range,i);let a=this._reduceChanges(e.getChanges(),r);for(let e of a)e.type===`insert`?this._convertInsert(X._createFromPositionAndShift(e.position,e.length),i):e.type===`reinsert`?this._convertReinsert(X._createFromPositionAndShift(e.position,e.length),i):e.type===`remove`?this._convertRemove(e.position,e.length,e.name,i):this._convertAttribute(e.range,e.attributeKey,e.attributeOldValue,e.attributeNewValue,i);i.mapper.flushDeferredBindings();for(let e of i.mapper.flushUnboundMarkerNames()){let n=t.get(e).getRange();this._convertMarkerRemove(e,n,i),this._convertMarkerAdd(e,n,i)}let o=e.getMarkersToAdd().sort((e,t)=>WO([e.name,e.range],[t.name,t.range]));for(let e of o)this._convertMarkerAdd(e.name,e.range,i);i.consumable.verifyAllConsumed(`insert`)}convert(e,t,n,r={}){let i=this._createConversionApi(n,void 0,r);this._convertInsert(e,i);for(let[e,n]of Array.from(t).sort(WO))this._convertMarkerAdd(e,n,i);i.consumable.verifyAllConsumed(`insert`)}convertSelection(e,t,n){let r=this._createConversionApi(n);this.fire(`cleanSelection`,{selection:e},r);let i=e.getFirstPosition().root;if(!r.mapper.toViewElement(i))return;let a=Array.from(t.getMarkersAtPosition(e.getFirstPosition()));if(this._addConsumablesForSelection(r.consumable,e,a),this.fire(`selection`,{selection:e},r),e.isCollapsed){for(let t of a)if(r.consumable.test(e,`addMarker:`+t.name)){let n=t.getRange();if(!qO(e.getFirstPosition(),t,r.mapper))continue;let i={item:e,markerName:t.name,markerRange:n};this.fire(`addMarker:${t.name}`,i,r)}for(let t of e.getAttributeKeys())if(r.consumable.test(e,`attribute:`+t)){let n={item:e,range:e.getFirstRange(),attributeKey:t,attributeOldValue:null,attributeNewValue:e.getAttribute(t)};this.fire(`attribute:${t}:$text`,n,r)}}}_convertInsert(e,t,n={}){n.doNotAddConsumables||this._addConsumablesForInsert(t.consumable,e);for(let n of e.getWalker({shallow:!0}))this._testAndFire(`insert`,YO(n),t)}_convertRemove(e,t,n,r){this.fire(`remove:${n}`,{position:e,length:t},r)}_convertAttribute(e,t,n,r,i){this._addConsumablesForRange(i.consumable,e,`attribute:${t}`);for(let a of e){let e={item:a.item,range:X._createFromPositionAndShift(a.previousPosition,a.length),attributeKey:t,attributeOldValue:n,attributeNewValue:r};this._testAndFire(`attribute:${t}`,e,i)}}_convertReinsert(e,t){let n=Array.from(e.getWalker({shallow:!0}));this._addConsumablesForInsert(t.consumable,n);for(let e of n.map(YO))this.fire(`remove:${e.item.is(`element`)?e.item.name:`$text`}`,{position:e.range.start,length:e.item.offsetSize,reconversion:!0},t),this._testAndFire(`insert`,{...e,reconversion:!0},t)}_convertMarkerAdd(e,t,n){if(t.root.rootName==`$graveyard`)return;let r=`addMarker:${e}`;if(n.consumable.add(t,r),this.fire(r,{markerName:e,markerRange:t},n),n.consumable.consume(t,r)){this._addConsumablesForRange(n.consumable,t,r);for(let i of t.getItems()){if(!n.consumable.test(i,r))continue;let a={item:i,range:X._createOn(i),markerName:e,markerRange:t};this.fire(r,a,n)}}}_convertMarkerRemove(e,t,n){t.root.rootName!=`$graveyard`&&this.fire(`removeMarker:${e}`,{markerName:e,markerRange:t},n)}_reduceChanges(e,t){let n={changes:e,refreshedItems:t};return this.fire(`reduceChanges`,n),n.changes}_addConsumablesForInsert(e,t){for(let n of t){let t=n.item;if(e.test(t,`insert`)===null){e.add(t,`insert`);for(let n of t.getAttributeKeys())e.add(t,`attribute:`+n)}}return e}_addConsumablesForRange(e,t,n){for(let r of t.getItems())e.add(r,n);return e}_addConsumablesForSelection(e,t,n){e.add(t,`selection`);for(let r of n)e.add(t,`addMarker:`+r.name);for(let n of t.getAttributeKeys())e.add(t,`attribute:`+n);return e}_testAndFire(e,t,n){let r=JO(e,t),i=t.item.is(`$textProxy`)?n.consumable._getSymbolForTextProxy(t.item):t.item,a=this._firedEventsMap.get(n),o=a.get(i);if(!o)a.set(i,new Set([r]));else if(!o.has(r))o.add(r);else return;this.fire(r,t,n)}_testAndFireAddAttributes(e,t){let n={item:e,range:X._createOn(e)};for(let e of n.item.getAttributeKeys())n.attributeKey=e,n.attributeOldValue=null,n.attributeNewValue=n.item.getAttribute(e),this._testAndFire(`attribute:${e}`,n,t)}_createConversionApi(e,t=new Set,n={}){let r={...this._conversionApi,consumable:new HO,writer:e,options:n,convertItem:e=>this._convertInsert(X._createOn(e),r),convertChildren:e=>this._convertInsert(X._createIn(e),r,{doNotAddConsumables:!0}),convertAttributes:e=>this._testAndFireAddAttributes(e,r),canReuseView:e=>!t.has(r.mapper.toModelElement(e))};return this._firedEventsMap.set(r,new Map),r}};function qO(e,t,n){let r=t.getRange(),i=Array.from(e.getAncestors());return i.shift(),i.reverse(),!i.some(e=>{if(r.containsItem(e))return!!n.toViewElement(e).getCustomProperty(`addHighlight`)})}function JO(e,t){return`${e}:${t.item.is(`element`)?t.item.name:`$text`}`}function YO(e){return{item:e.item,range:X._createFromPositionAndShift(e.previousPosition,e.length)}}var XO=class extends OO{parent=null;_attrs;_index=null;_startOffset=null;constructor(e){super(),this._attrs=TT(e)}get document(){return null}get index(){return this._index}get startOffset(){return this._startOffset}get offsetSize(){return 1}get endOffset(){return this.startOffset===null?null:this.startOffset+this.offsetSize}get nextSibling(){let e=this.index;return e!==null&&this.parent.getChild(e+1)||null}get previousSibling(){let e=this.index;return e!==null&&this.parent.getChild(e-1)||null}get root(){let e=this;for(;e.parent;)e=e.parent;return e}isAttached(){return this.parent!==null&&this.root.isAttached()}getPath(){let e=[],t=this;for(;t.parent;)e.unshift(t.startOffset),t=t.parent;return e}getAncestors(e={}){let t=[],n=e.includeSelf?this:this.parent;for(;n;)t[e.parentFirst?`push`:`unshift`](n),n=n.parent;return t}getCommonAncestor(e,t={}){let n=this.getAncestors(t),r=e.getAncestors(t),i=0;for(;n[i]==r[i]&&n[i];)i++;return i===0?null:n[i-1]}isBefore(e){if(this==e||this.root!==e.root)return!1;let t=this.getPath(),n=e.getPath(),r=UC(t,n);switch(r){case`prefix`:return!0;case`extension`:return!1;default:return t[r](e[t[0]]=t[1],e),{})),e}_clone(e){return new this.constructor(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(e,t){this._attrs.set(e,t)}_setAttributesTo(e){this._attrs=TT(e)}_removeAttribute(e){return this._attrs.delete(e)}_clearAttributes(){this._attrs.clear()}};XO.prototype.is=function(e){return e===`node`||e===`model:node`};var ZO=fC(OO),QO=class e extends ZO{_lastRangeBackward=!1;_attrs=new Map;_ranges=[];constructor(...e){super(),e.length&&this.setTo(...e)}get anchor(){if(this._ranges.length>0){let e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.end:e.start}return null}get focus(){if(this._ranges.length>0){let e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.start:e.end}return null}get isCollapsed(){return this._ranges.length===1&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(e){if(this.rangeCount!=e.rangeCount)return!1;if(this.rangeCount===0)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;for(let t of this._ranges){let n=!1;for(let r of e._ranges)if(t.isEqual(r)){n=!0;break}if(!n)return!1}return!0}*getRanges(){for(let e of this._ranges)yield new X(e.start,e.end)}getFirstRange(){let e=null;for(let t of this._ranges)(!e||t.start.isBefore(e.start))&&(e=t);return e?new X(e.start,e.end):null}getLastRange(){let e=null;for(let t of this._ranges)(!e||t.end.isAfter(e.end))&&(e=t);return e?new X(e.start,e.end):null}getFirstPosition(){let e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){let e=this.getLastRange();return e?e.end.clone():null}setTo(...t){let[n,r,i]=t;if(typeof r==`object`&&(i=r,r=void 0),n===null)this._setRanges([]);else if(n instanceof e)this._setRanges(n.getRanges(),n.isBackward);else if(n&&typeof n.getRanges==`function`)this._setRanges(n.getRanges(),n.isBackward);else if(n instanceof X)this._setRanges([n],!!i&&!!i.backward);else if(n instanceof Y)this._setRanges([new X(n)]);else if(n instanceof XO){let e=!!i&&!!i.backward,t;if(r==`in`)t=X._createIn(n);else if(r==`on`)t=X._createOn(n);else if(r!==void 0)t=new X(Y._createAt(n,r));else throw new K(`model-selection-setto-required-second-parameter`,[this,n]);this._setRanges([t],e)}else if(WC(n))this._setRanges(n,i&&!!i.backward);else throw new K(`model-selection-setto-not-selectable`,[this,n])}_setRanges(e,t=!1){let n=Array.from(e),r=n.some(t=>{if(!(t instanceof X))throw new K(`model-selection-set-ranges-not-range`,[this,e]);return this._ranges.every(e=>!e.isEqual(t))});n.length===this._ranges.length&&!r||(this._replaceAllRanges(n),this._lastRangeBackward=!!t,this.fire(`change:range`,{directChange:!0}))}setFocus(e,t){if(this.anchor===null)throw new K(`model-selection-setfocus-no-ranges`,[this,e]);let n=Y._createAt(e,t);if(n.compareWith(this.focus)==`same`)return;let r=this.anchor;this._ranges.length&&this._popRange(),n.compareWith(r)==`before`?(this._pushRange(new X(n,r)),this._lastRangeBackward=!0):(this._pushRange(new X(r,n)),this._lastRangeBackward=!1),this.fire(`change:range`,{directChange:!0})}getAttribute(e){return this._attrs.get(e)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(e){return this._attrs.has(e)}removeAttribute(e){this.hasAttribute(e)&&(this._attrs.delete(e),this.fire(`change:attribute`,{attributeKeys:[e],directChange:!0}))}setAttribute(e,t){this.getAttribute(e)!==t&&(this._attrs.set(e,t),this.fire(`change:attribute`,{attributeKeys:[e],directChange:!0}))}getSelectedElement(){return this.rangeCount===1?this.getFirstRange().getContainedElement():null}*getSelectedBlocks(){let e=new WeakSet;for(let t of this.getRanges()){let n=tk(t.start,e);rk(n,t)&&(yield n);let r=t.getWalker();for(let n of r){let i=n.item;n.type==`elementEnd`&&ek(i,e,t)?yield i:n.type==`elementStart`&&i.is(`model:element`)&&i.root.document.model.schema.isBlock(i)&&r.jumpTo(Y._createAt(i,`end`))}let i=tk(t.end,e);ik(i,t)&&(yield i)}}containsEntireContent(e=this.anchor.root){let t=Y._createAt(e,0),n=Y._createAt(e,`end`);return t.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}toJSON(){let e={ranges:Array.from(this.getRanges()).map(e=>e.toJSON())},t=Object.fromEntries(this.getAttributes());return Object.keys(t).length&&(e.attributes=t),this.isBackward&&(e.isBackward=!0),e}_pushRange(e){this._checkRange(e),this._ranges.push(new X(e.start,e.end))}_checkRange(e){for(let t=0;t0;)this._popRange()}_popRange(){this._ranges.pop()}};QO.prototype.is=function(e){return e===`selection`||e===`model:selection`};function $O(e,t){return t.has(e)?!1:(t.add(e),e.root.document.model.schema.isBlock(e)&&!!e.parent)}function ek(e,t,n){return $O(e,t)&&nk(e,n)}function tk(e,t){let n=e.parent.root.document.model.schema,r=e.parent.getAncestors({parentFirst:!0,includeSelf:!0}),i=!1,a=r.find(e=>i?!1:(i=n.isLimit(e),!i&&$O(e,t)));return r.forEach(e=>t.add(e)),a}function nk(e,t){let n=ak(e);return!n||!t.containsRange(X._createOn(n),!0)}function rk(e,t){return e?t.isCollapsed||e.isEmpty?!0:!t.start.isTouching(Y._createAt(e,e.maxOffset))&&nk(e,t):!1}function ik(e,t){return e?t.isCollapsed||e.isEmpty?!0:!t.end.isTouching(Y._createAt(e,0))&&nk(e,t):!1}function ak(e){let t=e.root.document.model.schema,n=e.parent;for(;n;){if(t.isBlock(n))return n;n=n.parent}}var ok=fC(X),sk=class e extends ok{constructor(e,t){super(e,t),ck.call(this)}detach(){this.stopListening()}toRange(){return new X(this.start,this.end)}static fromRange(t){return new e(t.start,t.end)}};sk.prototype.is=function(e){return e===`liveRange`||e===`model:liveRange`||e==`range`||e===`model:range`};function ck(){this.listenTo(this.root.document.model,`applyOperation`,(e,t)=>{let n=t[0];n.isDocumentOperation&&lk.call(this,n)},{priority:`low`})}function lk(e){let t=this.getTransformedByOperation(e),n=X._createFromRanges(t),r=!n.isEqual(this),i=uk(this,e),a=null;if(r){n.root.rootName==`$graveyard`&&(a=e.type==`remove`?e.sourcePosition:e.deletionPosition);let t=this.toRange();this.start=n.start,this.end=n.end,this.fire(`change:range`,t,{deletionPosition:a})}else i&&this.fire(`change:content`,this.toRange(),{deletionPosition:a})}function uk(e,t){switch(t.type){case`insert`:return e.containsPosition(t.position);case`move`:case`remove`:case`reinsert`:case`merge`:return e.containsPosition(t.sourcePosition)||e.start.isEqual(t.sourcePosition)||e.containsPosition(t.targetPosition);case`split`:return e.containsPosition(t.splitPosition)||e.containsPosition(t.insertionPosition)}return!1}var dk=class e extends XO{_data;constructor(e,t){super(t),this._data=e||``}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){let e=super.toJSON();return e.data=this.data,e}_clone(){return new e(this.data,this.getAttributes())}static fromJSON(t){return new e(t.data,t.attributes)}};dk.prototype.is=function(e){return e===`$text`||e===`model:$text`||e===`text`||e===`model:text`||e===`node`||e===`model:node`};var fk=`selection:`,pk=fC(OO),mk=class extends pk{_selection;constructor(e){super(),this._selection=new hk(e),this._selection.delegate(`change:range`).to(this),this._selection.delegate(`change:attribute`).to(this),this._selection.delegate(`change:marker`).to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(e){return this._selection.containsEntireContent(e)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(e){return this._selection.getAttribute(e)}hasAttribute(e){return this._selection.hasAttribute(e)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(e){this._selection.observeMarkers(e)}toJSON(){return this._selection.toJSON()}_setFocus(e,t){this._selection.setFocus(e,t)}_setTo(...e){this._selection.setTo(...e)}_setAttribute(e,t){this._selection.setAttribute(e,t)}_removeAttribute(e){this._selection.removeAttribute(e)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(e){this._selection.restoreGravity(e)}static _getStoreAttributeKey(e){return fk+e}static _isStoreAttributeKey(e){return e.startsWith(fk)}};mk.prototype.is=function(e){return e===`selection`||e==`model:selection`||e==`documentSelection`||e==`model:documentSelection`};var hk=class extends QO{markers=new hT({idProperty:`name`});_model;_document;_attributePriority=new Map;_selectionRestorePosition=null;_hasChangedRange=!1;_overriddenGravityRegister=new Set;_observedMarkers=new Set;constructor(e){super(),this._model=e.model,this._document=e,this.listenTo(this._model,`applyOperation`,(e,t)=>{let n=t[0];!n.isDocumentOperation||n.type==`marker`||n.type==`rename`||n.type==`noop`||(this._ranges.length==0&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire(`change:range`,{directChange:!1})))},{priority:`lowest`}),this.on(`change:range`,()=>{this._validateSelectionRanges(this.getRanges())}),this.listenTo(this._model.markers,`update`,(e,t,n,r)=>{this._updateMarker(t,r)}),this.listenTo(this._document,`change`,(e,t)=>{vk(this._model,t)})}get isCollapsed(){return this._ranges.length===0?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let e=0;ee.toJSON())),e}_validateSelectionRanges(e){for(let t of e)if(!this._document._validateSelectionRange(t))throw new K(`document-selection-wrong-position`,this,{range:t})}_prepareRange(e){if(this._checkRange(e),e.root==this._document.graveyard)return;let t=sk.fromRange(e);return t.on(`change:range`,(e,n,r)=>{if(this._hasChangedRange=!0,t.root==this._document.graveyard){this._selectionRestorePosition=r.deletionPosition;let e=this._ranges.indexOf(t);this._ranges.splice(e,1),t.detach()}}),t}updateMarkers(){if(!this._observedMarkers.size)return;let e=[],t=!1;for(let t of this._model.markers){let n=t.name.split(`:`,1)[0];if(!this._observedMarkers.has(n))continue;let r=t.getRange();for(let n of this.getRanges())r.containsRange(n,!n.isCollapsed)&&e.push(t)}let n=Array.from(this.markers);for(let n of e)this.markers.has(n)||(this.markers.add(n),t=!0);for(let n of Array.from(this.markers))e.includes(n)||(this.markers.remove(n),t=!0);t&&this.fire(`change:marker`,{oldMarkers:n,directChange:!1})}_updateMarker(e,t){let n=e.name.split(`:`,1)[0];if(!this._observedMarkers.has(n))return;let r=!1,i=Array.from(this.markers),a=this.markers.has(e);if(!t)a&&(this.markers.remove(e),r=!0);else{let n=!1;for(let e of this.getRanges())if(t.containsRange(e,!e.isCollapsed)){n=!0;break}n&&!a?(this.markers.add(e),r=!0):!n&&a&&(this.markers.remove(e),r=!0)}r&&this.fire(`change:marker`,{oldMarkers:i,directChange:!1})}_updateAttributes(e){let t=TT(this._getSurroundingAttributes()),n=TT(this.getAttributes());if(e)this._attributePriority=new Map,this._attrs=new Map;else for(let[e,t]of this._attributePriority)t==`low`&&(this._attrs.delete(e),this._attributePriority.delete(e));this._setAttributesTo(t);let r=[];for(let[e,t]of this.getAttributes())(!n.has(e)||n.get(e)!==t)&&r.push(e);for(let[e]of n)this.hasAttribute(e)||r.push(e);r.length>0&&this.fire(`change:attribute`,{attributeKeys:r,directChange:!1})}_setAttribute(e,t,n=!0){let r=n?`normal`:`low`;return r==`low`&&this._attributePriority.get(e)==`normal`||super.getAttribute(e)===t?!1:(this._attrs.set(e,t),this._attributePriority.set(e,r),!0)}_removeAttribute(e,t=!0){let n=t?`normal`:`low`;return n==`low`&&this._attributePriority.get(e)==`normal`||(this._attributePriority.set(e,n),!super.hasAttribute(e))?!1:(this._attrs.delete(e),!0)}_setAttributesTo(e){let t=new Set;for(let[t,n]of this.getAttributes())e.get(t)!==n&&this._removeAttribute(t,!1);for(let[n,r]of e)this._setAttribute(n,r,!1)&&t.add(n);return t}*getStoredAttributes(){let e=this.getFirstPosition().parent;if(this.isCollapsed&&e.isEmpty)for(let t of e.getAttributeKeys())t.startsWith(fk)&&(yield[t.substr(10),e.getAttribute(t)])}_getSurroundingAttributes(){let e=this.getFirstPosition(),t=this._model.schema;if(e.root.rootName==`$graveyard`)return null;let n=null;if(this.isCollapsed){let r=e.textNode?e.textNode:e.nodeBefore,i=e.textNode?e.textNode:e.nodeAfter;this.isGravityOverridden||(n=gk(r,t)),n||=gk(i,t),!this.isGravityOverridden&&!n&&(n=gk(r,t,`backward`)),n||=gk(i,t,`forward`),n||=this.getStoredAttributes()}else{let e=this.getFirstRange();for(let r of e){if(r.item.is(`element`)&&t.isObject(r.item)){n=gk(r.item,t);break}if(r.type==`text`){n=r.item.getAttributes();break}}}return n}_fixGraveyardSelection(e){let t=this._model.schema.getNearestSelectionRange(e);t&&this._pushRange(t)}};function gk(e,t,n=`self`){if(!e)return null;for(let r of _k(e,n)){if(!r)return null;if(r instanceof dk)return r.getAttributes();if(!t.isInline(r))continue;let e=t.isObject(r),n=[];for(let[i,a]of r.getAttributes())t.checkAttribute(`$text`,i)&&(!e||t.getAttributeProperties(i).copyFromObject!==!1)&&n.push([i,a]);return n}return null}function*_k(e,t){if(t==`self`)yield e;else{let n=e;for(;n;)n=t==`backward`?n.previousSibling:n.nextSibling,yield n}return null}function vk(e,t){let n=e.document.differ;for(let r of n.getChanges()){if(r.type!=`insert`)continue;let n=r.position.parent;r.length===n.maxOffset&&e.enqueueChange(t,e=>{let t=Array.from(n.getAttributeKeys()).filter(e=>e.startsWith(fk));for(let r of t)e.removeAttribute(r,n)})}}var yk=class{_nodes=[];_offsetToNode=[];constructor(e){e&&this._insertNodes(0,e)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._offsetToNode.length}getNode(e){return this._nodes[e]||null}getNodeAtOffset(e){return this._offsetToNode[e]||null}getNodeIndex(e){return e.index}getNodeStartOffset(e){return e.startOffset}indexToOffset(e){if(e==this._nodes.length)return this.maxOffset;let t=this._nodes[e];if(!t)throw new K(`model-nodelist-index-out-of-bounds`,this);return this.getNodeStartOffset(t)}offsetToIndex(e){if(e==this._offsetToNode.length)return this._nodes.length;let t=this._offsetToNode[e];if(!t)throw new K(`model-nodelist-offset-out-of-bounds`,this,{offset:e,nodeList:this});return this.getNodeIndex(t)}_insertNodes(e,t){let n=[];for(let e of t){if(!(e instanceof XO))throw new K(`model-nodelist-insertnodes-not-node`,this);n.push(e)}let r=this.indexToOffset(e);ET(this._nodes,n,e),ET(this._offsetToNode,bk(n),r);for(let t=e;te.index!==null),this._offsetToNode=this._offsetToNode.filter(e=>e.index!==null);let t=0;for(let e=0;ee.toJSON())}};function bk(e){let t=[],n=0;for(let r of e)for(let e=0;e0){e.children=[];for(let t of this._children)e.children.push(t.toJSON())}return e}_clone(t=!1){let n=t?Ck(this._children):void 0;return new e(this.name,this.getAttributes(),n)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){let n=Sk(t);for(let e of n)e.parent!==null&&e._remove(),e.parent=this;this._children._insertNodes(e,n)}_removeChildren(e,t=1){let n=this._children._removeNodes(e,t);for(let e of n)e.parent=null;return n}_removeChildrenArray(e){this._children._removeNodesArray(e);for(let t of e)t.parent=null}static fromJSON(t){let n;if(t.children){n=[];for(let r of t.children)r.name?n.push(e.fromJSON(r)):n.push(dk.fromJSON(r))}return new e(t.name,t.attributes,n)}};xk.prototype.is=function(e,t){return t?t===this.name&&(e===`element`||e===`model:element`):e===`element`||e===`model:element`||e===`node`||e===`model:node`};function Sk(e){if(typeof e==`string`)return[new dk(e)];WC(e)||(e=[e]);let t=[];for(let n of e)typeof n==`string`?t.push(new dk(n)):n instanceof kO?t.push(new dk(n.data,n.getAttributes())):t.push(n);return t}function Ck(e){let t=[];for(let n of e)t.push(n._clone(!0));return t}var wk=class{_dispatchers;constructor(e){this._dispatchers=e}add(e){for(let t of this._dispatchers)e(t);return this}},Tk=class extends wk{elementToElement(e){return this.add(Yk(e))}elementToStructure(e){return this.add(Xk(e))}attributeToElement(e){return this.add(Zk(e))}attributeToAttribute(e){return this.add(Qk(e))}markerToElement(e){return this.add($k(e))}markerToHighlight(e){return this.add(tA(e))}markerToData(e){return this.add(eA(e))}};function Ek(){return(e,t,n)=>{if(!n.consumable.consume(t.item,e.name))return;let r=n.writer,i=n.mapper.toViewPosition(t.range.start),a=r.createText(t.item.data);r.insert(i,a)}}function Dk(){return(e,t,n)=>{n.convertAttributes(t.item),!t.reconversion&&t.item.is(`element`)&&!t.item.isEmpty&&n.convertChildren(t.item)}}function Ok(){return(e,t,n)=>{if(t.reconversion)return;let r=n.mapper.toViewPosition(t.position),i=t.position.getShiftedBy(t.length),a=n.mapper.toViewPosition(i,{isPhantom:!0});Lk(n.writer.createRange(r,a).getTrimmed(),n)}}function kk(e,t){let n=e.createAttributeElement(`span`,t.attributes);return t.classes&&n._addClass(t.classes),typeof t.priority==`number`&&(n._priority=t.priority),n._id=t.id,n}function Ak(){return(e,t,n)=>{let r=t.selection;if(r.isCollapsed||!n.consumable.consume(r,`selection`))return;let i=[];for(let e of r.getRanges())i.push(n.mapper.toViewRange(e));n.writer.setSelection(i,{backward:r.isBackward})}}function jk(){return(e,t,n)=>{let r=t.selection;if(!r.isCollapsed||!n.consumable.consume(r,`selection`))return;let i=n.writer,a=r.getFirstPosition(),o=n.mapper.toViewPosition(a),s=i.breakAttributes(o);i.setSelection(s)}}function Mk(){return(e,t,n)=>{let r=n.writer,i=r.document.selection;for(let e of i.getRanges())e.isCollapsed&&e.end.parent.isAttached()&&n.writer.mergeAttributes(e.start);r.setSelection(null)}}function Nk(e){return(t,n,r)=>{if(!r.consumable.test(n.item,t.name))return;let i=e(n.attributeOldValue,r,n),a=e(n.attributeNewValue,r,n);if(!i&&!a)return;r.consumable.consume(n.item,t.name);let o=r.writer,s=o.document.selection;if(n.item instanceof QO||n.item instanceof mk)o.wrap(s.getFirstRange(),a);else{let e=r.mapper.toViewRange(n.range);n.attributeOldValue!==null&&i&&(e=o.unwrap(e,i)),n.attributeNewValue!==null&&a&&o.wrap(e,a)}}}function Pk(e,t=gA){return(n,r,i)=>{if(!t(r.item,i.consumable,{preflight:!0}))return;let a=e(r.item,i,r);if(!a)return;t(r.item,i.consumable);let o=r.reconversion&&Rk(r.item,i)||i.mapper.toViewPosition(r.range.start);i.mapper.bindElements(r.item,a),i.writer.insert(o,a),i.convertAttributes(r.item),mA(a,r.item.getChildren(),i,{reconversion:r.reconversion})}}function Fk(e,t){return(n,r,i)=>{if(!t(r.item,i.consumable,{preflight:!0}))return;let a=new Map;i.writer._registerSlotFactory(dA(r.item,a,i));let o=e(r.item,i,r);if(i.writer._clearSlotFactory(),!o)return;fA(r.item,a,i),t(r.item,i.consumable);let s=r.reconversion&&Rk(r.item,i)||i.mapper.toViewPosition(r.range.start);i.mapper.bindElements(r.item,o),i.writer.insert(s,o),i.convertAttributes(r.item),pA(o,a,i,{reconversion:r.reconversion})}}function Ik(e){return(t,n,r)=>{n.isOpening=!0;let i=e(n,r);n.isOpening=!1;let a=e(n,r);if(!i||!a)return;let{markerRange:o,markerName:s}=n;if(o.isCollapsed&&!r.consumable.consume(o,t.name))return;for(let e of o)if(!r.consumable.consume(e.item,t.name))return;let c=r.mapper,l=r.writer;l.setCustomProperty(`markerBoundaryType`,`start`,i),l.setCustomProperty(`markerBoundaryName`,s,i),l.setCustomProperty(`markerBoundaryType`,`end`,a),l.setCustomProperty(`markerBoundaryName`,s,a);let u=(e,t)=>{let n=c.markerNameToElements(e);if(n){for(let e of n)if(e.getCustomProperty(`markerBoundaryType`)===t)return c.toModelPosition(l.createPositionBefore(e))}return null};if(!o.isCollapsed){let e=c.toViewPosition(o.end).getLastMatchingPosition(({item:e})=>{if(!e.is(`uiElement`)||e.getCustomProperty(`markerBoundaryType`)!==`end`)return!1;let t=e.getCustomProperty(`markerBoundaryName`),n=u(t,`start`);if(!n)return!1;let r=n.compareWith(o.start);return r===`same`?t.localeCompare(s)>0:r===`after`});l.insert(e,a),c.bindElementToMarker(a,s)}let d=c.toViewPosition(o.start).getLastMatchingPosition(({item:e})=>{if(!e.is(`uiElement`))return!1;let t=e.getCustomProperty(`markerBoundaryType`);if(!t)return!1;if(t===`end`)return!0;let n=e.getCustomProperty(`markerBoundaryName`),r=u(n,`end`);if(!r)return o.isCollapsed;if(o.isCollapsed)return!0;let i=r.compareWith(o.end);return i===`same`?n.localeCompare(s)<0:i===`after`});l.insert(d,i),c.bindElementToMarker(i,s),t.stop()}}function Lk(e,t){let n=t.writer.remove(e);for(let e of t.writer.createRangeIn(n).getItems())t.mapper.unbindViewElement(e,{defer:!0});return e.start}function Rk(e,t){let n=t.mapper.toViewElement(e);return n&&Lk(t.writer.createRangeOn(n),t)}function zk(){return(e,t,n)=>{let r=n.mapper.markerNameToElements(t.markerName);if(r){for(let e of r)n.mapper.unbindElementFromMarkerName(e,t.markerName),n.writer.clear(n.writer.createRangeOn(e),e);n.writer.clearClonedElementsGroup(t.markerName),e.stop()}}}function Bk(e){return(t,n,r)=>{let i=e(n.markerName,r);if(!i)return;let a=n.markerRange;r.consumable.consume(a,t.name)&&(Vk(a,!1,r,n,i),Vk(a,!0,r,n,i),t.stop())}}function Vk(e,t,n,r,i){let a=t?e.start:e.end,o=a.nodeAfter&&a.nodeAfter.is(`element`)?a.nodeAfter:null,s=a.nodeBefore&&a.nodeBefore.is(`element`)?a.nodeBefore:null;if(o||s){let e,a;t&&o||!t&&!s?(e=o,a=!0):(e=s,a=!1);let c=n.mapper.toViewElement(e);if(c){Hk(c,t,a,n,r,i);return}}Uk(n.mapper.toViewPosition(a),t,n,r,i)}function Hk(e,t,n,r,i,a){let o=`data-${a.group}-${t?`start`:`end`}-${n?`before`:`after`}`,s=e.hasAttribute(o)?e.getAttribute(o).split(`,`):[];s.unshift(a.name),r.writer.setAttribute(o,s.join(`,`),e),r.mapper.bindElementToMarker(e,i.markerName)}function Uk(e,t,n,r,i){let a=`${i.group}-${t?`start`:`end`}`,o=i.name?{name:i.name}:null,s=n.writer.createUIElement(a,o);n.writer.insert(e,s),n.mapper.bindElementToMarker(s,r.markerName)}function Wk(e){return(t,n,r)=>{let i=e(n.markerName,r);if(!i)return;let a=r.mapper.markerNameToElements(n.markerName);if(!a)return;for(let e of a)r.mapper.unbindElementFromMarkerName(e,n.markerName),e.is(`containerElement`)?(o(`data-${i.group}-start-before`,e),o(`data-${i.group}-start-after`,e),o(`data-${i.group}-end-before`,e),o(`data-${i.group}-end-after`,e)):r.writer.clear(r.writer.createRangeOn(e),e);r.writer.clearClonedElementsGroup(n.markerName),t.stop();function o(e,t){if(t.hasAttribute(e)){let n=new Set(t.getAttribute(e).split(`,`));n.delete(i.name),n.size==0?r.writer.removeAttribute(e,t):r.writer.setAttribute(e,Array.from(n).join(`,`),t)}}}}function Gk(e){return(t,n,r)=>{if(!r.consumable.test(n.item,t.name))return;let i=e(n.attributeOldValue,r,n),a=e(n.attributeNewValue,r,n);if(!i&&!a)return;r.consumable.consume(n.item,t.name);let o=r.mapper.toViewElement(n.item),s=r.writer;if(!o)throw new K(`conversion-attribute-to-attribute-on-text`,r.dispatcher,n);if(n.attributeOldValue!==null&&i){let e=i.value;i.key==`style`&&(e=typeof i.value==`string`?new hE(s.document.stylesProcessor).setTo(i.value).getStylesEntries().map(([e])=>e):Object.keys(i.value)),s.removeAttribute(i.key,e,o)}if(n.attributeNewValue!==null&&a){let e=a.value;a.key==`style`&&typeof a.value==`string`&&(e=Object.fromEntries(new hE(s.document.stylesProcessor).setTo(a.value).getStylesEntries())),s.setAttribute(a.key,e,!1,o)}}}function Kk(e){return(t,n,r)=>{if(!n.item||!(n.item instanceof QO||n.item instanceof mk)&&!n.item.is(`$textProxy`))return;let i=sA(e,n,r);if(!i||!r.consumable.consume(n.item,t.name))return;let a=r.writer,o=kk(a,i),s=a.document.selection;if(n.item instanceof QO||n.item instanceof mk)a.wrap(s.getFirstRange(),o);else{let e=r.mapper.toViewRange(n.range),t=a.wrap(e,o);for(let e of t.getItems())if(e.is(`attributeElement`)&&e.isSimilar(o)){r.mapper.bindElementToMarker(e,n.markerName);break}}}}function qk(e){return(t,n,r)=>{if(!n.item||!(n.item instanceof xk))return;let i=sA(e,n,r);if(!i||!r.consumable.test(n.item,t.name))return;let a=r.mapper.toViewElement(n.item);if(a&&a.getCustomProperty(`addHighlight`)){r.consumable.consume(n.item,t.name);for(let e of X._createIn(n.item))r.consumable.consume(e.item,t.name);a.getCustomProperty(`addHighlight`)(a,i,r.writer),r.mapper.bindElementToMarker(a,n.markerName)}}}function Jk(e){return(t,n,r)=>{if(n.markerRange.isCollapsed)return;let i=sA(e,n,r);if(!i)return;let a=kk(r.writer,i),o=r.mapper.markerNameToElements(n.markerName);if(o){for(let e of o)r.mapper.unbindElementFromMarkerName(e,n.markerName),e.is(`attributeElement`)?r.writer.unwrap(r.writer.createRangeOn(e),a):e.getCustomProperty(`removeHighlight`)(e,i.id,r.writer);r.writer.clearClonedElementsGroup(n.markerName),t.stop()}}}function Yk(e){let t=nA(e.model),n=rA(e.view,`container`);return t.attributes.length&&(t.children=!0),r=>{r.on(`insert:${t.name}`,Pk(n,uA(t)),{priority:e.converterPriority||`normal`}),(t.children||t.attributes.length)&&r.on(`reduceChanges`,lA(t),{priority:`low`})}}function Xk(e){let t=nA(e.model),n=rA(e.view,`container`);return t.children=!0,r=>{if(r._conversionApi.schema.checkChild(t.name,`$text`))throw new K(`conversion-element-to-structure-disallowed-text`,r,{elementName:t.name});r.on(`insert:${t.name}`,Fk(n,uA(t)),{priority:e.converterPriority||`normal`}),r.on(`reduceChanges`,lA(t),{priority:`low`})}}function Zk(e){e=wx(e);let t=e.model;typeof t==`string`&&(t={key:t});let n=`attribute:${t.key}`;if(t.name&&(n+=`:`+t.name),t.values)for(let n of t.values)e.view[n]=rA(e.view[n],`attribute`);else e.view=rA(e.view,`attribute`);let r=aA(e);return t=>{t.on(n,Nk(r),{priority:e.converterPriority||`normal`})}}function Qk(e){e=wx(e);let t=e.model;typeof t==`string`&&(t={key:t});let n=`attribute:${t.key}`;if(t.name&&(n+=`:`+t.name),t.values)for(let n of t.values)e.view[n]=oA(e.view[n]);else e.view=oA(e.view);let r=aA(e);return t=>{t.on(n,Gk(r),{priority:e.converterPriority||`normal`})}}function $k(e){let t=rA(e.view,`ui`);return n=>{n.on(`addMarker:${e.model}`,Ik(t),{priority:e.converterPriority||`normal`}),n.on(`removeMarker:${e.model}`,zk(),{priority:e.converterPriority||`normal`})}}function eA(e){e=wx(e);let t=e.model,n=e.view;return n||=n=>({group:t,name:n.substr(e.model.length+1)}),r=>{r.on(`addMarker:${t}`,Bk(n),{priority:e.converterPriority||`normal`}),r.on(`removeMarker:${t}`,Wk(n),{priority:e.converterPriority||`normal`})}}function tA(e){return t=>{t.on(`addMarker:${e.model}`,Kk(e.view),{priority:e.converterPriority||`normal`}),t.on(`addMarker:${e.model}`,qk(e.view),{priority:e.converterPriority||`normal`}),t.on(`removeMarker:${e.model}`,Jk(e.view),{priority:e.converterPriority||`normal`})}}function nA(e){return typeof e==`string`&&(e={name:e}),{name:e.name,attributes:e.attributes?sT(e.attributes):[],children:!!e.children}}function rA(e,t){return typeof e==`function`?e:((n,r)=>iA(e,r,t))}function iA(e,t,n){typeof e==`string`&&(e={name:e});let r,i=t.writer,a=Object.assign({},e.attributes);if(n==`container`)r=i.createContainerElement(e.name,a);else if(n==`attribute`){let t={priority:e.priority||tD.DEFAULT_PRIORITY};r=i.createAttributeElement(e.name,a,t)}else r=i.createUIElement(e.name,a);if(e.styles){let t=Object.keys(e.styles);for(let n of t)i.setStyle(n,e.styles[n],r)}if(e.classes){let t=e.classes;if(typeof t==`string`)i.addClass(t,r);else for(let e of t)i.addClass(e,r)}return r}function aA(e){return e.model.values?((t,n,r)=>{let i=e.view[t];return i?i(t,n,r):null}):e.view}function oA(e){return typeof e==`string`?t=>({key:e,value:t}):typeof e==`object`?e.value?()=>e:t=>({key:e.key,value:t}):e}function sA(e,t,n){let r=typeof e==`function`?e(t,n):{...e};return r?(r.priority||=10,r.id||=t.markerName,r):null}function cA(e){return(t,n)=>{if(!t.is(`element`,e.name))return!1;if(n.type==`attribute`){if(e.attributes.includes(n.attributeKey))return!0}else if(e.children)return!0;return!1}}function lA(e){let t=cA(e);return(e,n)=>{let r=[];n.reconvertedElements||=new Set;for(let e of n.changes){let i=e.type==`attribute`?e.range.start.nodeAfter:e.position.parent;if(!i||!t(i,e)||e.type==`reinsert`){r.push(e);continue}if(e.type==`insert`&&e.action==`rename`&&n.refreshedItems.add(e.position.nodeAfter),!n.reconvertedElements.has(i)){n.reconvertedElements.add(i);let e=Y._createBefore(i),t=r.length;for(let n=r.length-1;n>=0;n--){let i=r[n],a=(i.type==`attribute`?i.range.start:i.position).compareWith(e);if(a==`before`||i.type==`remove`&&a==`same`)break;t=n}r.splice(t,0,{type:`reinsert`,name:i.name,position:e,length:1})}}n.changes=r}}function uA(e){return(t,n,r={})=>{let i=[`insert`];for(let n of e.attributes)t.hasAttribute(n)&&i.push(`attribute:${n}`);return i.every(e=>n.test(t,e))?(r.preflight||i.forEach(e=>n.consume(t,e)),!0):!1}}function dA(e,t,n){return(r,i)=>{let a=r.createContainerElement(`$slot`),o=null;if(i===`children`)o=Array.from(e.getChildren());else if(typeof i==`function`)o=Array.from(e.getChildren()).filter(e=>i(e));else throw new K(`conversion-slot-mode-unknown`,n.dispatcher,{modeOrFilter:i});return t.set(a,o),a}}function fA(e,t,n){let r=Array.from(t.values()).flat(),i=new Set(r);if(i.size!=r.length)throw new K(`conversion-slot-filter-overlap`,n.dispatcher,{element:e});if(i.size!=e.childCount)throw new K(`conversion-slot-filter-incomplete`,n.dispatcher,{element:e})}function pA(e,t,n,r){n.mapper.on(`modelToViewPosition`,o,{priority:`highest`});let i=null,a=null;for([i,a]of t)mA(e,a,n,r),n.writer.setCustomProperty(`$structureSlotParent`,!0,i.parent),n.writer.move(n.writer.createRangeIn(i),n.writer.createPositionBefore(i)),n.writer.remove(i);n.mapper.off(`modelToViewPosition`,o);function o(e,t){let n=t.modelPosition.nodeAfter,r=a.indexOf(n);r<0||(t.viewPosition=t.mapper.findPositionIn(i,r))}}function mA(e,t,n,r){for(let i of t)hA(e.root,i,n,r)||n.convertItem(i)}function hA(e,t,n,r){let{writer:i,mapper:a}=n;if(!r.reconversion)return!1;let o=a.toViewElement(t);return!o||o.root==e||!n.canReuseView(o)?!1:(i.move(i.createRangeOn(o),a.toViewPosition(Y._createBefore(t))),!0)}function gA(e,t,{preflight:n}={}){return n?t.test(e,`insert`):t.consume(e,`insert`)}function _A(e){let{schema:t,document:n}=e.model;for(let r of n.getRoots())if(r.isEmpty&&!t.checkChild(r,`$text`)&&t.checkChild(r,`paragraph`))return e.insertElement(`paragraph`,r),!0;return!1}function vA(e,t,n){let r=n.createContext(e);return!(!n.checkChild(r,`paragraph`)||!n.checkChild(r.push(`paragraph`),t))}function yA(e,t){let n=t.createElement(`paragraph`);return t.insert(n,e),t.createPositionAt(n,0)}var bA=class extends wk{elementToElement(e){return this.add(wA(e))}elementToAttribute(e){return this.add(TA(e))}attributeToAttribute(e){return this.add(EA(e))}elementToMarker(e){return this.add(DA(e))}dataToMarker(e){return this.add(OA(e))}};function xA(){return(e,t,n)=>{if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){let{modelRange:e,modelCursor:r}=n.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=r}}}function SA(){return(e,t,{schema:n,consumable:r,writer:i})=>{let a=t.modelCursor;if(!r.test(t.viewItem))return;if(!n.checkChild(a,`$text`)){if(!vA(a,`$text`,n)||t.viewItem.data.trim().length==0)return;a=yA(a,i)}r.consume(t.viewItem);let o=i.createText(t.viewItem.data);i.insert(o,a),t.modelRange=i.createRange(a,a.getShiftedBy(o.offsetSize)),t.modelCursor=t.modelRange.end}}function CA(e,t){return(n,r)=>{let i=r.newSelection,a=[];for(let e of i.getRanges())a.push(t.toModelRange(e));let o=e.createSelection(a,{backward:i.isBackward});o.isEqual(e.document.selection)||e.change(e=>{e.setSelection(o)})}}function wA(e){e=wx(e);let t=jA(e),n=AA(e.view),r=n?`element:${n}`:`element`;return n=>{n.on(r,t,{priority:e.converterPriority||`normal`})}}function TA(e){e=wx(e),PA(e);let t=FA(e,!1),n=AA(e.view),r=n?`element:${n}`:`element`;return n=>{n.on(r,t,{priority:e.converterPriority||`low`})}}function EA(e){e=wx(e);let t=null;(typeof e.view==`string`||e.view.key)&&(t=NA(e)),PA(e,t);let n=FA(e,!0);return t=>{t.on(`element`,n,{priority:e.converterPriority||`low`})}}function DA(e){let t=RA(e.model);return wA({...e,model:t})}function OA(e){e=wx(e),e.model||=t=>t?e.view+`:`+t:e.view;let t={view:e.view,model:e.model},n=jA(zA(t,`start`)),r=jA(zA(t,`end`));return i=>{i.on(`element:${e.view}-start`,n,{priority:e.converterPriority||`normal`}),i.on(`element:${e.view}-end`,r,{priority:e.converterPriority||`normal`});let a=QS.low,o=QS.highest,s=QS.get(e.converterPriority)/o;i.on(`element`,kA(t),{priority:a+s})}}function kA(e){return(t,n,r)=>{let i=`data-${e.view}`;if(!r.consumable.test(n.viewItem,{attributes:i+`-end-after`})&&!r.consumable.test(n.viewItem,{attributes:i+`-start-after`})&&!r.consumable.test(n.viewItem,{attributes:i+`-end-before`})&&!r.consumable.test(n.viewItem,{attributes:i+`-start-before`}))return;n.modelRange||Object.assign(n,r.convertChildren(n.viewItem,n.modelCursor)),r.consumable.consume(n.viewItem,{attributes:i+`-end-after`})&&a(n.modelRange.end,n.viewItem.getAttribute(i+`-end-after`).split(`,`)),r.consumable.consume(n.viewItem,{attributes:i+`-start-after`})&&a(n.modelRange.end,n.viewItem.getAttribute(i+`-start-after`).split(`,`)),r.consumable.consume(n.viewItem,{attributes:i+`-end-before`})&&a(n.modelRange.start,n.viewItem.getAttribute(i+`-end-before`).split(`,`)),r.consumable.consume(n.viewItem,{attributes:i+`-start-before`})&&a(n.modelRange.start,n.viewItem.getAttribute(i+`-start-before`).split(`,`));function a(t,i){for(let a of i){let i=e.model(a,r),o=r.writer.createElement(`$marker`,{"data-name":i});r.writer.insert(o,t),n.modelCursor.isEqual(t)?n.modelCursor=n.modelCursor.getShiftedBy(1):n.modelCursor=n.modelCursor._getTransformedByInsertion(t,1),n.modelRange=n.modelRange._getTransformedByInsertion(t,1)[0]}}}}function AA(e){return typeof e==`string`?e:typeof e==`object`&&typeof e.name==`string`?e.name:null}function jA(e){let t=new cE(e.view);return(n,r,i)=>{let a=t.match(r.viewItem);if(!a)return;let o=a.match;if(o.name=!0,!i.consumable.test(r.viewItem,o))return;let s=MA(e.model,r.viewItem,i);s&&i.safeInsert(s,r.modelCursor)&&(i.consumable.consume(r.viewItem,o),i.convertChildren(r.viewItem,s),i.updateConversionResult(s,r))}}function MA(e,t,n){return e instanceof Function?e(t,n):n.writer.createElement(e)}function NA(e){typeof e.view==`string`&&(e.view={key:e.view});let t=e.view.key,n=e.view.value===void 0?/[\s\S]*/:e.view.value,r;return r=t==`class`||t==`style`?{[t==`class`?`classes`:`styles`]:n}:{attributes:{[t]:n}},e.view.name&&(r.name=e.view.name),e.view=r,t}function PA(e,t=null){let n=t===null?!0:e=>e.getAttribute(t);e.model={key:typeof e.model==`object`?e.model.key:e.model,value:typeof e.model!=`object`||e.model.value===void 0?n:e.model.value}}function FA(e,t){let n=new cE(e.view);return(r,i,a)=>{if(!i.modelRange&&t)return;let o=n.match(i.viewItem);if(!o||(IA(e.view,i.viewItem)?o.match.name=!0:delete o.match.name,!a.consumable.test(i.viewItem,o.match)))return;let s=e.model.key,c=typeof e.model.value==`function`?e.model.value(i.viewItem,a,i):e.model.value;c!=null&&(i.modelRange||Object.assign(i,a.convertChildren(i.viewItem,i.modelCursor)),LA(i.modelRange,{key:s,value:c},t,a)&&(a.consumable.test(i.viewItem,{name:!0})&&(o.match.name=!0),a.consumable.consume(i.viewItem,o.match)))}}function IA(e,t){let n=typeof e==`function`?e(t):e;return typeof n==`object`&&!AA(n)?!1:!n.classes&&!n.attributes&&!n.styles}function LA(e,t,n,r){let i=!1;for(let a of Array.from(e.getItems({shallow:n})))r.schema.checkAttribute(a,t.key)&&(i=!0,!a.hasAttribute(t.key)&&r.writer.setAttribute(t.key,t.value,a));return i}function RA(e){return(t,n)=>{let r=typeof e==`string`?e:e(t,n);return n.writer.createElement(`$marker`,{"data-name":r})}}function zA(e,t){return{view:`${e.view}-${t}`,model:(t,n)=>{let r=t.getAttribute(`name`),i=e.model(r,n);return n.writer.createElement(`$marker`,{"data-name":i})}}}var BA=AC(),VA=class extends BA{model;view;mapper;downcastDispatcher;constructor(e,t){super(),this.model=e,this.view=new DO(t),this.mapper=new BO,this.downcastDispatcher=new KO({mapper:this.mapper,schema:e.schema});let n=this.model.document,r=n.selection,i=this.model.markers;this.listenTo(this.model,`_beforeChanges`,()=>{this.view._disableRendering(!0)},{priority:`highest`}),this.listenTo(this.model,`_afterChanges`,()=>{this.view._disableRendering(!1)},{priority:`lowest`}),this.listenTo(n,`change`,()=>{this.view.change(e=>{this.downcastDispatcher.convertChanges(n.differ,i,e),this.downcastDispatcher.convertSelection(r,i,e)})},{priority:`low`}),this.listenTo(this.view.document,`selectionChange`,CA(this.model,this.mapper)),this.downcastDispatcher.on(`insert:$text`,Ek(),{priority:`lowest`}),this.downcastDispatcher.on(`insert`,Dk(),{priority:`lowest`}),this.downcastDispatcher.on(`remove`,Ok(),{priority:`low`}),this.downcastDispatcher.on(`cleanSelection`,Mk()),this.downcastDispatcher.on(`selection`,Ak(),{priority:`low`}),this.downcastDispatcher.on(`selection`,jk(),{priority:`low`}),this.view.document.roots.bindTo(this.model.document.roots).using(e=>{if(e.rootName==`$graveyard`)return null;let t=new jE(this.view.document,e.name);return t.rootName=e.rootName,this.mapper.bindElements(e,t),t})}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(e){let t=typeof e==`string`?e:e.name,n=this.model.markers.get(t);if(!n)throw new K(`editingcontroller-reconvertmarker-marker-not-exist`,this,{markerName:t});this.model.change(()=>{this.model.markers._refresh(n)})}reconvertItem(e){this.model.change(()=>{this.model.document.differ._refreshItem(e)})}},HA=AC(),UA=class extends HA{_sourceDefinitions={};_attributeProperties=Object.create(null);_customChildChecks=new Map;_customAttributeChecks=new Map;_genericCheckSymbol=Symbol(`$generic`);_compiledDefinitions;constructor(){super(),this.decorate(`checkChild`),this.decorate(`checkAttribute`),this.on(`checkAttribute`,(e,t)=>{t[0]=new WA(t[0])},{priority:`highest`}),this.on(`checkChild`,(e,t)=>{t[0]=new WA(t[0]),t[1]=this.getDefinition(t[1])},{priority:`highest`})}register(e,t){if(this._sourceDefinitions[e])throw new K(`schema-cannot-register-item-twice`,this,{itemName:e});this._sourceDefinitions[e]=[Object.assign({},t)],this._clearCache()}extend(e,t){if(!this._sourceDefinitions[e])throw new K(`schema-cannot-extend-missing-item`,this,{itemName:e});this._sourceDefinitions[e].push(Object.assign({},t)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(e){let t;return t=typeof e==`string`?e:`is`in e&&(e.is(`$text`)||e.is(`$textProxy`))?`$text`:e.name,this.getDefinitions()[t]}isRegistered(e){return!!this.getDefinition(e)}isBlock(e){let t=this.getDefinition(e);return!!(t&&t.isBlock)}isLimit(e){let t=this.getDefinition(e);return t?!!(t.isLimit||t.isObject):!1}isObject(e){let t=this.getDefinition(e);return t?!!(t.isObject||t.isLimit&&t.isSelectable&&t.isContent):!1}isInline(e){let t=this.getDefinition(e);return!!(t&&t.isInline)}isSelectable(e){let t=this.getDefinition(e);return t?!!(t.isSelectable||t.isObject):!1}isContent(e){let t=this.getDefinition(e);return t?!!(t.isContent||t.isObject):!1}checkChild(e,t){return t?this._checkContextMatch(e,t):!1}checkAttribute(e,t){let n=this.getDefinition(e.last);if(!n)return!1;let r=this._evaluateAttributeChecks(e,t);return r===void 0?n.allowAttributes.includes(t):r}checkMerge(e,t){if(e instanceof Y){let t=e.nodeBefore,n=e.nodeAfter;if(!(t instanceof xk))throw new K(`schema-check-merge-no-element-before`,this);if(!(n instanceof xk))throw new K(`schema-check-merge-no-element-after`,this);return this.checkMerge(t,n)}if(this.isLimit(e)||this.isLimit(t))return!1;for(let n of t.getChildren())if(!this.checkChild(e,n))return!1;return!0}addChildCheck(e,t){let n=t===void 0?this._genericCheckSymbol:t,r=this._customChildChecks.get(n)||[];r.push(e),this._customChildChecks.set(n,r)}addAttributeCheck(e,t){let n=t===void 0?this._genericCheckSymbol:t,r=this._customAttributeChecks.get(n)||[];r.push(e),this._customAttributeChecks.set(n,r)}setAttributeProperties(e,t){this._attributeProperties[e]=Object.assign(this.getAttributeProperties(e),t)}getAttributeProperties(e){return this._attributeProperties[e]||Object.create(null)}getLimitElement(e){let t;for(t=e instanceof Y?e.parent:(e instanceof X?[e]:Array.from(e.getRanges())).reduce((e,t)=>{let n=t.getCommonAncestor();return e?e.getCommonAncestor(n,{includeSelf:!0}):n},null);!this.isLimit(t)&&t.parent;)t=t.parent;return t}checkAttributeInSelection(e,t){if(e.isCollapsed){let n=[...e.getFirstPosition().getAncestors(),new dk(``,e.getAttributes())];return this.checkAttribute(n,t)}else{let n=e.getRanges();for(let e of n)for(let n of e)if(this.checkAttribute(n.item,t))return!0}return!1}*getValidRanges(e,t,n={}){e=sj(e);for(let r of e)yield*this._getValidRangesForRange(r,t,n)}getNearestSelectionRange(e,t=`both`){if(e.root.rootName==`$graveyard`)return null;if(this.checkChild(e,`$text`))return new X(e);let n,r,i=e.getAncestors().reverse().find(e=>this.isLimit(e))||e.root;(t==`both`||t==`backward`)&&(n=new AO({boundaries:X._createIn(i),startPosition:e,direction:`backward`})),(t==`both`||t==`forward`)&&(r=new AO({boundaries:X._createIn(i),startPosition:e}));for(let e of oj(n,r)){let t=e.walker==n?`elementEnd`:`elementStart`,r=e.value;if(r.type==t&&this.isObject(r.item))return X._createOn(r.item);if(this.checkChild(r.nextPosition,`$text`))return new X(r.nextPosition)}return null}findAllowedParent(e,t){let n=e.parent;for(;n;){if(this.checkChild(n,t))return n;if(this.isLimit(n))return null;n=n.parent}return null}setAllowedAttributes(e,t,n){let r=n.model;for(let[i,a]of Object.entries(t))r.schema.checkAttribute(e,i)&&n.setAttribute(i,a,e)}removeDisallowedAttributes(e,t){for(let n of e)if(n.is(`$text`))cj(this,n,t);else{let e=X._createIn(n).getPositions();for(let n of e){let e=n.nodeBefore||n.parent;cj(this,e,t)}}}getAttributesWithProperty(e,t,n){let r={};for(let[i,a]of e.getAttributes()){let e=this.getAttributeProperties(i);e[t]!==void 0&&(n===void 0||n===e[t])&&(r[i]=a)}return r}createContext(e){return new WA(e)}_clearCache(){this._compiledDefinitions=null}_compile(){let e={},t=this._sourceDefinitions,n=Object.keys(t);for(let r of n)e[r]=GA(t[r],r);let r=Object.values(e);for(let t of r)KA(e,t),qA(e,t),JA(e,t),YA(e,t);for(let t of r)XA(e,t);for(let t of r)ZA(e,t);for(let t of r)QA(e,t);for(let t of r)ej(e,t);for(let t of r)tj(e,t);this._compiledDefinitions=$A(e)}_checkContextMatch(e,t){let n=e.last,r=this._evaluateChildChecks(e,t);if(r=r===void 0?t.allowIn.includes(n.name):r,!r)return!1;let i=this.getDefinition(n),a=e.trimLast();return i?a.length==0||this._checkContextMatch(a,i):!1}_evaluateChildChecks(e,t){let n=this._customChildChecks.get(this._genericCheckSymbol)||[],r=this._customChildChecks.get(t.name)||[];for(let i of[...n,...r]){let n=i(e,t);if(n!==void 0)return n}}_evaluateAttributeChecks(e,t){let n=this._customAttributeChecks.get(this._genericCheckSymbol)||[],r=this._customAttributeChecks.get(t)||[];for(let i of[...n,...r]){let n=i(e,t);if(n!==void 0)return n}}*_getValidRangesForRange(e,t,n){let r=e.start,i=e.start;for(let a of e.getItems({shallow:!0})){if(a.is(`element`))if(n.includeEmptyRanges&&a.isEmpty){let e=this.createContext(a);this.checkChild(e,`$text`)&&this.checkAttribute(e.push(`$text`),t)&&(yield X._createIn(a))}else yield*this._getValidRangesForRange(X._createIn(a),t,n);this.checkAttribute(a,t)||(r.isEqual(i)||(yield new X(r,i)),r=Y._createAfter(a)),i=Y._createAfter(a)}r.isEqual(i)||(yield new X(r,i))}findOptimalInsertionRange(e,t){let n=e.getSelectedElement();if(n&&this.isObject(n)&&!this.isInline(n))return t==`before`||t==`after`?new X(Y._createAt(n,t)):X._createOn(n);let r=gT(e.getSelectedBlocks());if(!r)return new X(e.focus);if(r.isEmpty)return new X(Y._createAt(r,0));let i=Y._createAfter(r);return e.focus.isTouching(i)?new X(i):new X(Y._createBefore(r))}},WA=class e{_items;constructor(t){if(t instanceof e)return t;let n;n=typeof t==`string`?[t]:Array.isArray(t)?t:t.getAncestors({includeSelf:!0}),this._items=n.map(aj)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(t){let n=new e([t]);return n._items=[...this._items,...n._items],n}trimLast(){let t=new e([]);return t._items=this._items.slice(0,-1),t}getItem(e){return this._items[e]}*getNames(){yield*this._items.map(e=>e.name)}endsWith(e){return Array.from(this.getNames()).join(` `).endsWith(e)}startsWith(e){return Array.from(this.getNames()).join(` `).startsWith(e)}};function GA(e,t){let n={name:t,allowIn:new Set,allowChildren:new Set,disallowIn:new Set,disallowChildren:new Set,allowContentOf:new Set,allowWhere:new Set,allowAttributes:new Set,disallowAttributes:new Set,allowAttributesOf:new Set,inheritTypesFrom:new Set};return nj(e,n),rj(e,n,`allowIn`),rj(e,n,`allowChildren`),rj(e,n,`disallowIn`),rj(e,n,`disallowChildren`),rj(e,n,`allowContentOf`),rj(e,n,`allowWhere`),rj(e,n,`allowAttributes`),rj(e,n,`disallowAttributes`),rj(e,n,`allowAttributesOf`),rj(e,n,`inheritTypesFrom`),ij(e,n),n}function KA(e,t){for(let n of t.allowIn){let r=e[n];r?r.allowChildren.add(t.name):t.allowIn.delete(n)}}function qA(e,t){for(let n of t.allowChildren){let r=e[n];r?r.allowIn.add(t.name):t.allowChildren.delete(n)}}function JA(e,t){for(let n of t.disallowIn){let r=e[n];r?r.disallowChildren.add(t.name):t.disallowIn.delete(n)}}function YA(e,t){for(let n of t.disallowChildren){let r=e[n];r?r.disallowIn.add(t.name):t.disallowChildren.delete(n)}}function XA(e,t){for(let e of t.disallowChildren)t.allowChildren.delete(e);for(let e of t.disallowIn)t.allowIn.delete(e);for(let e of t.disallowAttributes)t.allowAttributes.delete(e)}function ZA(e,t){for(let n of t.allowContentOf){let r=e[n];r&&(r.disallowChildren.forEach(n=>{t.allowChildren.has(n)||(t.disallowChildren.add(n),e[n].disallowIn.add(t.name))}),r.allowChildren.forEach(n=>{t.disallowChildren.has(n)||(t.allowChildren.add(n),e[n].allowIn.add(t.name))}))}}function QA(e,t){for(let n of t.allowWhere){let r=e[n];r&&(r.disallowIn.forEach(n=>{t.allowIn.has(n)||(t.disallowIn.add(n),e[n].disallowChildren.add(t.name))}),r.allowIn.forEach(n=>{t.disallowIn.has(n)||(t.allowIn.add(n),e[n].allowChildren.add(t.name))}))}}function $A(e){let t={};for(let n of Object.values(e))t[n.name]={name:n.name,isBlock:!!n.isBlock,isContent:!!n.isContent,isInline:!!n.isInline,isLimit:!!n.isLimit,isObject:!!n.isObject,isSelectable:!!n.isSelectable,allowIn:Array.from(n.allowIn).filter(t=>!!e[t]),allowChildren:Array.from(n.allowChildren).filter(t=>!!e[t]),allowAttributes:Array.from(n.allowAttributes)};return t}function ej(e,t){for(let n of t.allowAttributesOf){let r=e[n];if(!r)return;r.allowAttributes.forEach(e=>{t.disallowAttributes.has(e)||t.allowAttributes.add(e)})}}function tj(e,t){for(let n of t.inheritTypesFrom){let r=e[n];if(r){let e=Object.keys(r).filter(e=>e.startsWith(`is`));for(let n of e)n in t||(t[n]=r[n])}}}function nj(e,t){for(let n of e){let e=Object.keys(n).filter(e=>e.startsWith(`is`));for(let r of e)t[r]=!!n[r]}}function rj(e,t,n){for(let r of e){let e=r[n];typeof e==`string`&&(e=[e]),Array.isArray(e)&&e.forEach(e=>t[n].add(e))}}function ij(e,t){for(let n of e){let e=n.inheritAllFrom;e&&(t.allowContentOf.add(e),t.allowWhere.add(e),t.allowAttributesOf.add(e),t.inheritTypesFrom.add(e))}}function aj(e){return typeof e==`string`||e.is(`documentFragment`)?{name:typeof e==`string`?e:`$documentFragment`,*getAttributeKeys(){},getAttribute(){}}:{name:e.is(`element`)?e.name:`$text`,*getAttributeKeys(){yield*e.getAttributeKeys()},getAttribute(t){return e.getAttribute(t)}}}function*oj(e,t){let n=!1;for(;!n;){if(n=!0,e){let t=e.next();t.done||(n=!1,yield{walker:e,value:t.value})}if(t){let e=t.next();e.done||(n=!1,yield{walker:t,value:e.value})}}}function*sj(e){for(let t of e)yield*t.getMinimalFlatRanges()}function cj(e,t,n){for(let r of t.getAttributeKeys())e.checkAttribute(t,r)||n.removeAttribute(r,t)}var lj=fC(),uj=class extends lj{conversionApi;_splitParts=new Map;_cursorParents=new Map;_modelCursor=null;_emptyElementsToKeep=new Set;constructor(e){super(),this.conversionApi={...e,consumable:null,writer:null,store:null,convertItem:(e,t)=>this._convertItem(e,t),convertChildren:(e,t)=>this._convertChildren(e,t),safeInsert:(e,t)=>this._safeInsert(e,t),updateConversionResult:(e,t)=>this._updateConversionResult(e,t),splitToAllowedParent:(e,t)=>this._splitToAllowedParent(e,t),getSplitParts:e=>this._getSplitParts(e),keepEmptyElement:e=>this._keepEmptyElement(e)}}convert(e,t,n=[`$root`]){this.fire(`viewCleanup`,e),this._modelCursor=fj(n,t),this.conversionApi.writer=t,this.conversionApi.consumable=iE.createFrom(e),this.conversionApi.store={};let{modelRange:r}=this._convertItem(e,this._modelCursor),i=t.createDocumentFragment();if(r){this._removeEmptyElements();let e=this._modelCursor.parent,n=e._removeChildren(0,e.childCount);i._insertChild(0,n),i.markers=dj(i,t)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,i}_convertItem(e,t){let n={viewItem:e,modelCursor:t,modelRange:null};if(e.is(`element`)?this.fire(`element:${e.name}`,n,this.conversionApi):e.is(`$text`)?this.fire(`text`,n,this.conversionApi):this.fire(`documentFragment`,n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof X))throw new K(`view-conversion-dispatcher-incorrect-result`,this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}_convertChildren(e,t){let n=t.is(`position`)?t:Y._createAt(t,0),r=new X(n);for(let t of Array.from(e.getChildren())){let e=this._convertItem(t,n);e.modelRange instanceof X&&(r.end=e.modelRange.end,n=e.modelCursor)}return{modelRange:r,modelCursor:n}}_safeInsert(e,t){let n=this._splitToAllowedParent(e,t);return n?(this.conversionApi.writer.insert(e,n.position),!0):!1}_updateConversionResult(e,t){let n=this._getSplitParts(e),r=this.conversionApi.writer;t.modelRange||=r.createRange(r.createPositionBefore(e),r.createPositionAfter(n[n.length-1]));let i=this._cursorParents.get(e);i?t.modelCursor=r.createPositionAt(i,0):t.modelCursor=t.modelRange.end}_splitToAllowedParent(e,t){let{schema:n,writer:r}=this.conversionApi,i=n.findAllowedParent(t,e);if(i){if(i===t.parent)return{position:t};this._modelCursor.parent.getAncestors().includes(i)&&(i=null)}if(!i)return vA(t,e,n)?{position:yA(t,r)}:null;let a=this.conversionApi.writer.split(t,i),o=[];for(let e of a.range.getWalker())if(e.type==`elementEnd`)o.push(e.item);else{let t=o.pop(),n=e.item;this._registerSplitPair(t,n)}let s=a.range.end.parent;return this._cursorParents.set(e,s),{position:a.position,cursorParent:s}}_registerSplitPair(e,t){this._splitParts.has(e)||this._splitParts.set(e,[e]);let n=this._splitParts.get(e);this._splitParts.set(t,n),n.push(t)}_getSplitParts(e){let t;return t=this._splitParts.has(e)?this._splitParts.get(e):[e],t}_keepEmptyElement(e){this._emptyElementsToKeep.add(e)}_removeEmptyElements(){let e=new Map;for(let t of this._splitParts.keys())if(t.isEmpty&&!this._emptyElementsToKeep.has(t)){let n=e.get(t.parent)||[];n.push(t),this._splitParts.delete(t),e.set(t.parent,n)}for(let[t,n]of e)t._removeChildrenArray(n);e.size&&this._removeEmptyElements()}};function dj(e,t){let n=new Set,r=new Map,i=X._createIn(e).getItems();for(let e of i)e.is(`element`,`$marker`)&&n.add(e);for(let e of n){let n=e.getAttribute(`data-name`),i=t.createPositionBefore(e);r.has(n)?r.get(n).end=i.clone():r.set(n,new X(i.clone())),t.remove(e)}return r}function fj(e,t){let n;for(let r of new WA(e)){let e={};for(let t of r.getAttributeKeys())e[t]=r.getAttribute(t);let i=t.createElement(r.name,e);n&&t.insert(i,n),n=Y._createAt(i,0)}return n}var pj=class{getHtml(e){let t=W.document.implementation.createHTMLDocument(``).createElement(`div`);return t.appendChild(e),t.innerHTML}},mj=class{domParser;domConverter;htmlWriter;skipComments=!0;constructor(e){this.domParser=new DOMParser,this.domConverter=new ZD(e,{renderingMode:`data`}),this.htmlWriter=new pj}toData(e){let t=this.domConverter.viewToDom(e);return this.htmlWriter.getHtml(t)}toView(e){let t=this._toDom(e);return this.domConverter.domToView(t,{skipComments:this.skipComments})}registerRawContentMatcher(e){this.domConverter.registerRawContentMatcher(e)}useFillerType(e){this.domConverter.blockFillerMode=e==`marked`?`markedNbsp`:`nbsp`}_toDom(e){/<(?:html|body|head|meta)(?:\s[^>]*)?>/i.test(e.trim().slice(0,1e4))||(e=`${e}`);let t=this.domParser.parseFromString(e,`text/html`),n=t.createDocumentFragment(),r=t.body.childNodes;for(;r.length>0;)n.appendChild(r[0]);return n}},hj=fC(),gj=class extends hj{model;mapper;downcastDispatcher;upcastDispatcher;viewDocument;stylesProcessor;htmlProcessor;processor;_viewWriter;constructor(e,t){super(),this.model=e,this.mapper=new BO,this.downcastDispatcher=new KO({mapper:this.mapper,schema:e.schema}),this.downcastDispatcher.on(`insert:$text`,Ek(),{priority:`lowest`}),this.downcastDispatcher.on(`insert`,Dk(),{priority:`lowest`}),this.upcastDispatcher=new uj({schema:e.schema}),this.viewDocument=new $E(t),this.stylesProcessor=t,this.htmlProcessor=new mj(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new hD(this.viewDocument),this.upcastDispatcher.on(`text`,SA(),{priority:`lowest`}),this.upcastDispatcher.on(`element`,xA(),{priority:`lowest`}),this.upcastDispatcher.on(`documentFragment`,xA(),{priority:`lowest`}),AC().prototype.decorate.call(this,`init`),AC().prototype.decorate.call(this,`set`),AC().prototype.decorate.call(this,`get`),AC().prototype.decorate.call(this,`toView`),AC().prototype.decorate.call(this,`toModel`),this.on(`init`,()=>{this.fire(`ready`)},{priority:`lowest`}),this.on(`ready`,()=>{this.model.enqueueChange({isUndoable:!1},_A)},{priority:`lowest`})}get(e={}){let{rootName:t=`main`,trim:n=`empty`}=e;if(!this._checkIfRootsExists([t]))throw new K(`datacontroller-get-non-existent-root`,this);let r=this.model.document.getRoot(t);return r.isAttached()||tC(`datacontroller-get-detached-root`,this),n===`empty`&&!this.model.hasContent(r,{ignoreWhitespaces:!0})?``:this.stringify(r,e)}stringify(e,t={}){let n=this.toView(e,t);return this.processor.toData(n)}toView(e,t={}){let n=this.viewDocument,r=this._viewWriter;this.mapper.clearBindings();let i=X._createIn(e),a=new pD(n);this.mapper.bindElements(e,a);let o=e.is(`documentFragment`)?e.markers:_j(e);return this.downcastDispatcher.convert(i,o,r,t),a}init(e){if(this.model.document.version)throw new K(`datacontroller-init-document-not-empty`,this);let t={};if(typeof e==`string`?t.main=e:t=e,!this._checkIfRootsExists(Object.keys(t)))throw new K(`datacontroller-init-non-existent-root`,this);return this.model.enqueueChange({isUndoable:!1},e=>{for(let n of Object.keys(t)){let r=this.model.document.getRoot(n);e.insert(this.parse(t[n],r),r,0)}}),Promise.resolve()}set(e,t={}){let n={};if(typeof e==`string`?n.main=e:n=e,!this._checkIfRootsExists(Object.keys(n)))throw new K(`datacontroller-set-non-existent-root`,this);this.model.enqueueChange(t.batchType||{},e=>{e.setSelection(null),e.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(let t of Object.keys(n)){let r=this.model.document.getRoot(t);e.remove(e.createRangeIn(r)),e.insert(this.parse(n[t],r),r,0)}})}parse(e,t=`$root`){let n=this.processor.toView(e);return this.toModel(n,t)}toModel(e,t=`$root`){return this.model.change(n=>this.upcastDispatcher.convert(e,n,t))}addStyleProcessorRules(e){e(this.stylesProcessor)}registerRawContentMatcher(e){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(e),this.htmlProcessor.registerRawContentMatcher(e)}destroy(){this.stopListening()}_checkIfRootsExists(e){for(let t of e)if(!this.model.document.getRoot(t))return!1;return!0}};function _j(e){let t=[],n=e.root.document;if(!n)return new Map;let r=X._createIn(e);for(let e of n.model.markers){let n=e.getRange(),i=n.isCollapsed,a=n.start.isEqual(r.start)||n.end.isEqual(r.end);if(i&&a)t.push([e.name,n]);else{let i=r.getIntersection(n);i&&t.push([e.name,i])}}return new Map(t)}var vj=class{_helpers=new Map;_downcast;_upcast;constructor(e,t){this._downcast=sT(e),this._createConversionHelpers({name:`downcast`,dispatchers:this._downcast,isDowncast:!0}),this._upcast=sT(t),this._createConversionHelpers({name:`upcast`,dispatchers:this._upcast,isDowncast:!1})}addAlias(e,t){let n=this._downcast.includes(t);if(!this._upcast.includes(t)&&!n)throw new K(`conversion-add-alias-dispatcher-not-registered`,this);this._createConversionHelpers({name:e,dispatchers:[t],isDowncast:n})}for(e){if(!this._helpers.has(e))throw new K(`conversion-for-unknown-group`,this);return this._helpers.get(e)}elementToElement(e){this.for(`downcast`).elementToElement(e);for(let{model:t,view:n}of yj(e))this.for(`upcast`).elementToElement({model:t,view:n,converterPriority:e.converterPriority})}attributeToElement(e){this.for(`downcast`).attributeToElement(e);for(let{model:t,view:n}of yj(e))this.for(`upcast`).elementToAttribute({view:n,model:t,converterPriority:e.converterPriority})}attributeToAttribute(e){this.for(`downcast`).attributeToAttribute(e);for(let{model:t,view:n}of yj(e))this.for(`upcast`).attributeToAttribute({view:n,model:t})}_createConversionHelpers({name:e,dispatchers:t,isDowncast:n}){if(this._helpers.has(e))throw new K(`conversion-group-exists`,this);let r=n?new Tk(t):new bA(t);this._helpers.set(e,r)}};function*yj(e){if(e.model.values)for(let t of e.model.values){let n={key:e.model.key,value:t},r=e.view[t];yield*bj(n,r,e.upcastAlso?e.upcastAlso[t]:void 0)}else yield*bj(e.model,e.view,e.upcastAlso)}function*bj(e,t,n){if(yield{model:e,view:t},n)for(let t of sT(n))yield{model:e,view:t}}var xj=class{baseVersion;isDocumentOperation;batch;constructor(e){this.baseVersion=e,this.isDocumentOperation=this.baseVersion!==null,this.batch=null}_validate(){}toJSON(){let e=Object.assign({},this);return e.__className=this.constructor.className,delete e.batch,delete e.isDocumentOperation,e}static get className(){return`Operation`}static fromJSON(e,t){return new this(e.baseVersion)}};function Sj(e,t){let n=Ej(t),r=n.reduce((e,t)=>e+t.offsetSize,0),i=e.parent;Oj(e);let a=e.index;return i._insertChild(a,n),Dj(i,a+n.length),Dj(i,a),new X(e,e.getShiftedBy(r))}function Cj(e){if(!e.isFlat)throw new K(`operation-utils-remove-range-not-flat`,this);let t=e.start.parent;Oj(e.start),Oj(e.end);let n=t._removeChildren(e.start.index,e.end.index-e.start.index);return Dj(t,e.start.index),n}function wj(e,t){if(!e.isFlat)throw new K(`operation-utils-move-range-not-flat`,this);let n=Cj(e);return t=t._getTransformedByDeletion(e.start,e.end.offset-e.start.offset),Sj(t,n)}function Tj(e,t,n){Oj(e.start),Oj(e.end);for(let r of e.getItems({shallow:!0})){let e=r.is(`$textProxy`)?r.textNode:r;n===null?e._removeAttribute(t):e._setAttribute(t,n),Dj(e.parent,e.index)}Dj(e.end.parent,e.end.index)}function Ej(e){let t=[];function n(e){if(typeof e==`string`)t.push(new dk(e));else if(e instanceof kO)t.push(new dk(e.data,e.getAttributes()));else if(e instanceof XO)t.push(e);else if(WC(e))for(let t of e)n(t)}n(e);for(let e=1;ee.maxOffset)throw new K(`move-operation-nodes-do-not-exist`,this);if(e===t&&n=n&&this.targetPosition.path[e]e._clone(!0))),n=new e(this.position,t,this.baseVersion);return n.shouldReceiveAttributes=this.shouldReceiveAttributes,n}getReversed(){let e=this.position.root.document.graveyard,t=new Y(e,[0]);return new Aj(this.position,this.nodes.maxOffset,t,this.baseVersion+1)}_validate(){let e=this.position.parent;if(!e||e.maxOffsete._clone(!0))),Sj(this.position,e)}toJSON(){let e=super.toJSON();return e.position=this.position.toJSON(),e.nodes=this.nodes.toJSON(),e}static get className(){return`InsertOperation`}static fromJSON(t,n){let r=[];for(let e of t.nodes)e.name?r.push(xk.fromJSON(e)):r.push(dk.fromJSON(e));let i=new e(Y.fromJSON(t.position,n),r,t.baseVersion);return i.shouldReceiveAttributes=t.shouldReceiveAttributes,i}},Mj=class e extends xj{splitPosition;howMany;insertionPosition;graveyardPosition;constructor(e,t,n,r,i){super(i),this.splitPosition=e.clone(),this.splitPosition.stickiness=`toNext`,this.howMany=t,this.insertionPosition=n,this.graveyardPosition=r?r.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness=`toNext`)}get type(){return`split`}get moveTargetPosition(){let e=this.insertionPosition.path.slice();return e.push(0),new Y(this.insertionPosition.root,e)}get movedRange(){let e=this.splitPosition.getShiftedBy(1/0);return new X(this.splitPosition,e)}get affectedSelectable(){let e=[X._createFromPositionAndShift(this.splitPosition,0),X._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&e.push(X._createFromPositionAndShift(this.graveyardPosition,0)),e}clone(){return new e(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){let e=this.splitPosition.root.document.graveyard,t=new Y(e,[0]);return new Nj(this.moveTargetPosition,this.howMany,this.splitPosition,t,this.baseVersion+1)}_validate(){let e=this.splitPosition.parent,t=this.splitPosition.offset;if(!e||e.maxOffset1&&e.sourcePosition.isEqual(t.deletionPosition)?this._setRelation(e,t,`firstToMoveMerged`):e.howMany>1&&e.sourcePosition.getShiftedBy(e.howMany-1).isEqual(t.deletionPosition)&&this._setRelation(e,t,`lastToMoveMerged`):t instanceof Aj&&(e.targetPosition.isEqual(t.sourcePosition)||e.targetPosition.isBefore(t.sourcePosition)?this._setRelation(e,t,`insertBefore`):this._setRelation(e,t,`insertAfter`));else if(e instanceof Mj){if(t instanceof Nj)e.splitPosition.isBefore(t.sourcePosition)&&this._setRelation(e,t,`splitBefore`);else if(t instanceof Aj)if(e.splitPosition.isEqual(t.sourcePosition)||e.splitPosition.isBefore(t.sourcePosition))this._setRelation(e,t,`splitBefore`);else{let n=X._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(e.splitPosition)){let r=n.end.offset-e.splitPosition.offset,i=e.splitPosition.offset-n.start.offset;this._setRelation(e,t,{howMany:r,offset:i})}}}else if(e instanceof Nj)t instanceof Nj?(e.targetPosition.isEqual(t.sourcePosition)||this._setRelation(e,t,`mergeTargetNotMoved`),e.sourcePosition.isEqual(t.targetPosition)&&this._setRelation(e,t,`mergeSourceNotMoved`),e.sourcePosition.isEqual(t.sourcePosition)&&this._setRelation(e,t,`mergeSameElement`)):t instanceof Mj?e.sourcePosition.isEqual(t.splitPosition)&&this._setRelation(e,t,`splitAtSource`):t instanceof Aj&&t.howMany>0&&(e.sourcePosition.isEqual(t.sourcePosition.getShiftedBy(t.howMany))&&this._setRelation(e,t,`mergeSourceAffected`),e.targetPosition.isEqual(t.sourcePosition)&&this._setRelation(e,t,`mergeTargetWasBefore`));else if(e instanceof Pj){let n=e.newRange;if(!n)return;if(t instanceof Nj){let r=n.start.isEqual(t.targetPosition),i=n.start.isEqual(t.deletionPosition),a=n.end.isEqual(t.deletionPosition),o=n.end.isEqual(t.sourcePosition);(r||i||a||o)&&this._setRelation(e,t,{wasInLeftElement:r,wasStartBeforeMergedElement:i,wasEndBeforeMergedElement:a,wasInRightElement:o})}}}getContext(e,t,n){return{aIsStrong:n,aWasUndone:this._wasUndone(e),bWasUndone:this._wasUndone(t),abRelation:this._useRelations?this._getRelation(e,t):null,baRelation:this._useRelations?this._getRelation(t,e):null,forceWeakRemove:this._forceWeakRemove}}_wasUndone(e){let t=this.originalOperations.get(e);return t.wasUndone||this._history.isUndoneOperation(t)}_getRelation(e,t){let n=this.originalOperations.get(t),r=this._history.getUndoneOperation(n);if(!r)return null;let i=this.originalOperations.get(e),a=this._relations.get(i);return a&&a.get(r)||null}_setRelation(e,t,n){let r=this.originalOperations.get(e),i=this.originalOperations.get(t),a=this._relations.get(r);a||(a=new Map,this._relations.set(r,a)),a.set(i,n)}};function Yj(e,t){for(let n of e)n.baseVersion=t++}function Xj(e,t){for(let n=0;n{if(e.key===t.key&&e.range.start.hasSameParentAs(t.range.start)){let r=e.range.getDifference(t.range).map(t=>new Fj(t,e.key,e.oldValue,e.newValue,0)),i=e.range.getIntersection(t.range);return i&&n.aIsStrong&&r.push(new Fj(i,t.key,t.newValue,e.newValue,0)),r.length==0?[new Ij(0)]:r}else return[e]}),Uj(Fj,jj,(e,t)=>{if(e.range.start.hasSameParentAs(t.position)&&e.range.containsPosition(t.position)){let n=e.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map(t=>new Fj(t,e.key,e.oldValue,e.newValue,e.baseVersion));if(t.shouldReceiveAttributes){let r=Qj(t,e.key,e.oldValue);r&&n.unshift(r)}return n}return e.range=e.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[e]});function Qj(e,t,n){let r=e.nodes.getNode(0).getAttribute(t);return r==n?null:new Fj(new X(e.position,e.position.getShiftedBy(e.howMany)),t,r,n,0)}Uj(Fj,Nj,(e,t)=>{let n=[];e.range.start.hasSameParentAs(t.deletionPosition)&&(e.range.containsPosition(t.deletionPosition)||e.range.start.isEqual(t.deletionPosition))&&n.push(X._createFromPositionAndShift(t.graveyardPosition,1));let r=e.range._getTransformedByMergeOperation(t);return r.isCollapsed||n.push(r),n.map(t=>new Fj(t,e.key,e.oldValue,e.newValue,e.baseVersion))}),Uj(Fj,Aj,(e,t)=>$j(e.range,t).map(t=>new Fj(t,e.key,e.oldValue,e.newValue,e.baseVersion)));function $j(e,t){let n=X._createFromPositionAndShift(t.sourcePosition,t.howMany),r=null,i=[];n.containsRange(e,!0)?r=e:e.start.hasSameParentAs(n.start)?(i=e.getDifference(n),r=e.getIntersection(n)):i=[e];let a=[];for(let e of i){e=e._getTransformedByDeletion(t.sourcePosition,t.howMany);let n=t.getMovedRangeStart(),r=e.start.hasSameParentAs(n),i=e._getTransformedByInsertion(n,t.howMany,r);a.push(...i)}return r&&a.push(r._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany,!1)[0]),a}Uj(Fj,Mj,(e,t)=>{if(e.range.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.range.end.offset++,[e];if(e.range.start.hasSameParentAs(t.splitPosition)&&e.range.containsPosition(t.splitPosition)){let n=e.clone();return n.range=new X(t.moveTargetPosition.clone(),e.range.end._getCombined(t.splitPosition,t.moveTargetPosition)),e.range.end=t.splitPosition.clone(),e.range.end.stickiness=`toPrevious`,[e,n]}return e.range=e.range._getTransformedBySplitOperation(t),[e]}),Uj(jj,Fj,(e,t)=>{let n=[e];if(e.shouldReceiveAttributes&&e.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(e.position)){let r=Qj(e,t.key,t.newValue);r&&n.push(r)}return n}),Uj(jj,jj,(e,t,n)=>(e.position.isEqual(t.position)&&n.aIsStrong||(e.position=e.position._getTransformedByInsertOperation(t)),[e])),Uj(jj,Aj,(e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e])),Uj(jj,Mj,(e,t)=>(e.position=e.position._getTransformedBySplitOperation(t),[e])),Uj(jj,Nj,(e,t)=>(e.position=e.position._getTransformedByMergeOperation(t),[e])),Uj(Pj,jj,(e,t)=>(e.oldRange&&=e.oldRange._getTransformedByInsertOperation(t)[0],e.newRange&&=e.newRange._getTransformedByInsertOperation(t)[0],[e])),Uj(Pj,Pj,(e,t,n)=>{if(e.name==t.name)if(n.aIsStrong)e.oldRange=t.newRange?t.newRange.clone():null;else return[new Ij(0)];return[e]}),Uj(Pj,Nj,(e,t)=>(e.oldRange&&=e.oldRange._getTransformedByMergeOperation(t),e.newRange&&=e.newRange._getTransformedByMergeOperation(t),[e])),Uj(Pj,Aj,(e,t)=>{let n=[e];if(e.oldRange&&=X._createFromRanges(e.oldRange._getTransformedByMoveOperation(t)),e.newRange){let r=e.newRange._getTransformedByMoveOperation(t);e.newRange=r[0];for(let t=1;t{if(e.oldRange&&=e.oldRange._getTransformedBySplitOperation(t),e.newRange){if(n.abRelation){let r=e.newRange._getTransformedBySplitOperation(t);return e.newRange.start.isEqual(t.splitPosition)?n.abRelation.wasStartBeforeMergedElement?e.newRange.start=Y._createAt(t.insertionPosition):n.abRelation.wasInLeftElement?e.newRange.start=Y._createAt(e.newRange.start):e.newRange.start=Y._createAt(t.moveTargetPosition):e.newRange.start=r.start,e.newRange.end.isEqual(t.splitPosition)?e.newRange.end.isEqual(t.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?e.newRange.end=Y._createAt(t.insertionPosition):n.abRelation.wasInRightElement?e.newRange.end=Y._createAt(t.moveTargetPosition):e.newRange.end=Y._createAt(e.newRange.end):e.newRange.end=r.end,[e]}e.newRange=e.newRange._getTransformedBySplitOperation(t)}return[e]}),Uj(Nj,jj,(e,t)=>(e.sourcePosition.hasSameParentAs(t.position)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByInsertOperation(t),e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t),[e])),Uj(Nj,Nj,(e,t,n)=>{if(e.sourcePosition.isEqual(t.sourcePosition)&&e.targetPosition.isEqual(t.targetPosition))if(n.bWasUndone){let n=t.graveyardPosition.path.slice();return n.push(0),e.sourcePosition=new Y(t.graveyardPosition.root,n),e.howMany=0,[e]}else return[new Ij(0)];if(e.sourcePosition.isEqual(t.sourcePosition)&&!e.targetPosition.isEqual(t.targetPosition)&&!n.bWasUndone&&n.abRelation!=`splitAtSource`){let r=e.targetPosition.root.rootName==`$graveyard`,i=t.targetPosition.root.rootName==`$graveyard`;if(i&&!r||!(r&&!i)&&n.aIsStrong){let n=t.targetPosition._getTransformedByMergeOperation(t),r=e.targetPosition._getTransformedByMergeOperation(t);return[new Aj(n,e.howMany,r,0)]}else return[new Ij(0)]}return e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMergeOperation(t),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),(!e.graveyardPosition.isEqual(t.graveyardPosition)||!n.aIsStrong)&&(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]}),Uj(Nj,Aj,(e,t,n)=>{let r=X._createFromPositionAndShift(t.sourcePosition,t.howMany);return t.type==`remove`&&!n.bWasUndone&&e.deletionPosition.hasSameParentAs(t.sourcePosition)&&r.containsPosition(e.sourcePosition)?[new Ij(0)]:(t.sourcePosition.getShiftedBy(t.howMany).isEqual(e.sourcePosition)?e.sourcePosition.stickiness=`toNone`:t.targetPosition.isEqual(e.sourcePosition)&&n.abRelation==`mergeSourceAffected`?e.sourcePosition.stickiness=`toNext`:t.sourcePosition.isEqual(e.targetPosition)?(e.targetPosition.stickiness=`toNone`,e.howMany-=t.howMany):t.targetPosition.isEqual(e.targetPosition)&&n.abRelation==`mergeTargetWasBefore`?(e.targetPosition.stickiness=`toPrevious`,e.howMany+=t.howMany):(e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition.hasSameParentAs(t.sourcePosition)&&(e.howMany-=t.howMany)),e.sourcePosition=e.sourcePosition._getTransformedByMoveOperation(t),e.targetPosition=e.targetPosition._getTransformedByMoveOperation(t),e.sourcePosition.stickiness=`toPrevious`,e.targetPosition.stickiness=`toNext`,e.graveyardPosition.isEqual(t.targetPosition)||(e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)),[e])}),Uj(Nj,Mj,(e,t,n)=>{if(t.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByDeletion(t.graveyardPosition,1),e.deletionPosition.isEqual(t.graveyardPosition)&&(e.howMany=t.howMany)),e.targetPosition.isEqual(t.splitPosition)&&(t.graveyardPosition&&e.deletionPosition.isEqual(t.graveyardPosition)||n.abRelation==`mergeTargetNotMoved`))return e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),[e];if(e.sourcePosition.isEqual(t.splitPosition)){if(n.abRelation==`mergeSourceNotMoved`)return e.howMany=0,e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e];if(n.abRelation==`mergeSameElement`||e.sourcePosition.offset>0)return e.sourcePosition=t.moveTargetPosition.clone(),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}return e.sourcePosition.hasSameParentAs(t.splitPosition)&&(e.howMany=t.splitPosition.offset),e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}),Uj(Aj,jj,(e,t)=>{let n=X._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByInsertOperation(t,!1)[0];return e.sourcePosition=n.start,e.howMany=n.end.offset-n.start.offset,e.targetPosition.isEqual(t.position)||(e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t)),[e]}),Uj(Aj,Aj,(e,t,n)=>{let r=X._createFromPositionAndShift(e.sourcePosition,e.howMany),i=X._createFromPositionAndShift(t.sourcePosition,t.howMany),a=n.aIsStrong,o=!n.aIsStrong;n.abRelation==`insertBefore`||n.baRelation==`insertAfter`?o=!0:(n.abRelation==`insertAfter`||n.baRelation==`insertBefore`)&&(o=!1);let s;if(s=e.targetPosition.isEqual(t.targetPosition)&&o?e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):e.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),eM(e,t)&&eM(t,e))return[t.getReversed()];if(r.containsPosition(t.targetPosition)&&r.containsRange(i,!0))return r.start=r.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),r.end=r.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),tM([r],s);if(i.containsPosition(e.targetPosition)&&i.containsRange(r,!0))return r.start=r.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),r.end=r.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),tM([r],s);let c=UC(e.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if(c==`prefix`||c==`extension`)return r.start=r.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),r.end=r.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),tM([r],s);e.type==`remove`&&t.type!=`remove`&&!n.aWasUndone&&!n.forceWeakRemove?a=!0:e.type!=`remove`&&t.type==`remove`&&!n.bWasUndone&&!n.forceWeakRemove&&(a=!1);let l=[],u=r.getDifference(i);for(let e of u){e.start=e.start._getTransformedByDeletion(t.sourcePosition,t.howMany),e.end=e.end._getTransformedByDeletion(t.sourcePosition,t.howMany);let n=UC(e.start.getParentPath(),t.getMovedRangeStart().getParentPath())==`same`,r=e._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,n);l.push(...r)}let d=r.getIntersection(i);return d!==null&&a&&(d.start=d.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),d.end=d.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),l.length===0?l.push(d):l.length==1?i.start.isBefore(r.start)||i.start.isEqual(r.start)?l.unshift(d):l.push(d):l.splice(1,0,d)),l.length===0?[new Ij(e.baseVersion)]:tM(l,s)}),Uj(Aj,Mj,(e,t,n)=>{let r=e.targetPosition.clone();if((!e.targetPosition.isEqual(t.insertionPosition)||!t.graveyardPosition||n.abRelation==`moveTargetAfter`)&&(r=e.targetPosition._getTransformedBySplitOperation(t)),e.sourcePosition.isEqual(t.insertionPosition)&&n.abRelation==`firstToMoveMerged`)return e.howMany++,e.targetPosition=r,[e];let i=X._createFromPositionAndShift(e.sourcePosition,e.howMany);if(i.end.isEqual(t.insertionPosition))return(!t.graveyardPosition||n.abRelation==`lastToMoveMerged`)&&e.howMany++,e.targetPosition=r,[e];if(i.start.hasSameParentAs(t.splitPosition)&&i.containsPosition(t.splitPosition)){let e=new X(t.splitPosition,i.end);return e=e._getTransformedBySplitOperation(t),tM([new X(i.start,t.splitPosition),e],r)}e.targetPosition.isEqual(t.splitPosition)&&n.abRelation==`insertAtSource`&&(r=t.moveTargetPosition),e.targetPosition.isEqual(t.insertionPosition)&&n.abRelation==`insertBetween`&&(r=e.targetPosition);let a=[i._getTransformedBySplitOperation(t)];if(t.graveyardPosition){let r=i.start.isEqual(t.graveyardPosition)||i.containsPosition(t.graveyardPosition);e.howMany>1&&r&&!n.aWasUndone&&a.push(X._createFromPositionAndShift(t.insertionPosition,1))}return tM(a,r)}),Uj(Aj,Nj,(e,t,n)=>{let r=X._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.deletionPosition.hasSameParentAs(e.sourcePosition)&&r.containsPosition(t.sourcePosition)){if(e.type==`remove`&&!n.forceWeakRemove){if(!n.aWasUndone){let n=[],r=t.graveyardPosition.clone(),i=t.targetPosition._getTransformedByMergeOperation(t),a=e.targetPosition.getTransformedByOperation(t);e.howMany>1&&(n.push(new Aj(e.sourcePosition,e.howMany-1,a,0)),r=r._getTransformedByMove(e.sourcePosition,a,e.howMany-1),i=i._getTransformedByMove(e.sourcePosition,a,e.howMany-1));let o=t.deletionPosition._getCombined(e.sourcePosition,a),s=new Aj(r,1,o,0),c=s.getMovedRangeStart().path.slice();c.push(0);let l=new Y(s.targetPosition.root,c);i=i._getTransformedByMove(r,o,1);let u=new Aj(i,t.howMany,l,0);return n.push(s),n.push(u),n}}else if(e.howMany==1)return n.bWasUndone?(e.sourcePosition=t.graveyardPosition.clone(),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]):[new Ij(0)]}let i=X._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByMergeOperation(t);return e.sourcePosition=i.start,e.howMany=i.end.offset-i.start.offset,e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]}),Uj(Lj,jj,(e,t)=>(e.position=e.position._getTransformedByInsertOperation(t),[e])),Uj(Lj,Nj,(e,t)=>e.position.isEqual(t.deletionPosition)?(e.position=t.graveyardPosition.clone(),e.position.stickiness=`toNext`,[e]):(e.position=e.position._getTransformedByMergeOperation(t),[e])),Uj(Lj,Aj,(e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e])),Uj(Lj,Lj,(e,t,n)=>{if(e.position.isEqual(t.position))if(n.aIsStrong)e.oldName=t.newName;else return[new Ij(0)];return[e]}),Uj(Lj,Mj,(e,t)=>{let n=e.position.path;return UC(n,t.splitPosition.getParentPath())==`same`&&!t.graveyardPosition?[e,new Lj(e.position.getShiftedBy(1),e.oldName,e.newName,0)]:(e.position=e.position._getTransformedBySplitOperation(t),[e])}),Uj(Rj,Rj,(e,t,n)=>{if(e.root===t.root&&e.key===t.key)if(n.aIsStrong)e.oldValue=t.newValue;else return[new Ij(0)];return[e]}),Uj(zj,zj,(e,t)=>e.rootName===t.rootName&&e.isAdd===t.isAdd?[new Ij(0)]:[e]),Uj(Mj,jj,(e,t)=>(e.splitPosition.hasSameParentAs(t.position)&&e.splitPosition.offset{if(!e.graveyardPosition&&!n.bWasUndone&&e.splitPosition.hasSameParentAs(t.sourcePosition)){let n=t.graveyardPosition.path.slice();n.push(0);let r=new Mj(new Y(t.graveyardPosition.root,n),0,Mj.getInsertionPosition(new Y(t.graveyardPosition.root,n)),null,0);return e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Mj.getInsertionPosition(e.splitPosition),e.graveyardPosition=r.insertionPosition.clone(),e.graveyardPosition.stickiness=`toNext`,[r,e]}return e.splitPosition.hasSameParentAs(t.deletionPosition)&&!e.splitPosition.isAfter(t.deletionPosition)&&e.howMany--,e.splitPosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Mj.getInsertionPosition(e.splitPosition),e.graveyardPosition&&=e.graveyardPosition._getTransformedByMergeOperation(t),[e]}),Uj(Mj,Aj,(e,t,n)=>{let r=X._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.graveyardPosition){let i=r.start.isEqual(e.graveyardPosition)||r.containsPosition(e.graveyardPosition);if(!n.bWasUndone&&i){let n=e.splitPosition._getTransformedByMoveOperation(t),r=e.graveyardPosition._getTransformedByMoveOperation(t),i=r.path.slice();i.push(0);let a=new Y(r.root,i);return[new Aj(n,e.howMany,a,0)]}e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)}let i=e.splitPosition.isEqual(t.targetPosition);if(i&&(n.baRelation==`insertAtSource`||n.abRelation==`splitBefore`))return e.howMany+=t.howMany,e.splitPosition=e.splitPosition._getTransformedByDeletion(t.sourcePosition,t.howMany),e.insertionPosition=Mj.getInsertionPosition(e.splitPosition),[e];if(i&&n.abRelation&&n.abRelation.howMany){let{howMany:t,offset:r}=n.abRelation;return e.howMany+=t,e.splitPosition=e.splitPosition.getShiftedBy(r),[e]}if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&r.containsPosition(e.splitPosition)){let n=t.howMany-(e.splitPosition.offset-t.sourcePosition.offset);return e.howMany-=n,e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset{if(e.splitPosition.isEqual(t.splitPosition)){if(!e.graveyardPosition&&!t.graveyardPosition||e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition))return[new Ij(0)];if(n.abRelation==`splitBefore`)return e.howMany=0,e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t),[e]}if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition)){let r=e.splitPosition.root.rootName==`$graveyard`,i=t.splitPosition.root.rootName==`$graveyard`;if(i&&!r||!(r&&!i)&&n.aIsStrong){let n=[];return t.howMany&&n.push(new Aj(t.moveTargetPosition,t.howMany,t.splitPosition,0)),e.howMany&&n.push(new Aj(e.splitPosition,e.howMany,e.moveTargetPosition,0)),n}else return[new Ij(0)]}if(e.graveyardPosition&&=e.graveyardPosition._getTransformedBySplitOperation(t),e.splitPosition.isEqual(t.insertionPosition)&&n.abRelation==`splitBefore`)return e.howMany++,[e];if(t.splitPosition.isEqual(e.insertionPosition)&&n.baRelation==`splitBefore`){let n=t.insertionPosition.path.slice();n.push(0);let r=new Y(t.insertionPosition.root,n);return[e,new Aj(e.insertionPosition,1,r,0)]}return e.splitPosition.hasSameParentAs(t.splitPosition)&&e.splitPosition.offset{let n=t[0];n.isDocumentOperation&&aM.call(this,n)},{priority:`low`})}function aM(e){let t=this.getTransformedByOperation(e);if(!this.isEqual(t)){let e=this.toPosition();this.path=t.path,this.root=t.root,this.fire(`change`,e)}}var oM=class{operations;isUndoable;isLocal;isUndo;isTyping;constructor(e={}){typeof e==`string`&&(e=e===`transparent`?{isUndoable:!1}:{},tC(`batch-constructor-deprecated-string-type`));let{isUndoable:t=!0,isLocal:n=!0,isUndo:r=!1,isTyping:i=!1}=e;this.operations=[],this.isUndoable=t,this.isLocal=n,this.isUndo=r,this.isTyping=i}get baseVersion(){for(let e of this.operations)if(e.baseVersion!==null)return e.baseVersion;return null}addOperation(e){return e.isDocumentOperation&&(e.batch=this,this.operations.push(e)),e}},sM=class e{static _statesPriority=[void 0,`refresh`,`rename`,`move`];_markerCollection;_changesInElement=new Map;_elementsSnapshots=new Map;_elementChildrenSnapshots=new Map;_elementState=new Map;_changedMarkers=new Map;_changedRoots=new Map;_changeCount=0;_cachedChanges=null;_cachedChangesWithGraveyard=null;_refreshedItems=new Set;constructor(e){this._markerCollection=e}get isEmpty(){return this._changesInElement.size==0&&this._changedMarkers.size==0&&this._changedRoots.size==0}bufferOperation(e){let t=e;switch(t.type){case`insert`:if(this._isInInsertedElement(t.position.parent))return;this._markInsert(t.position.parent,t.position.offset,t.nodes.maxOffset);break;case`addAttribute`:case`removeAttribute`:case`changeAttribute`:for(let e of t.range.getItems({shallow:!0}))this._isInInsertedElement(e.parent)||this._markAttribute(e);break;case`remove`:case`move`:case`reinsert`:{if(t.sourcePosition.isEqual(t.targetPosition)||t.sourcePosition.getShiftedBy(t.howMany).isEqual(t.targetPosition))return;let e=this._isInInsertedElement(t.sourcePosition.parent),n=this._isInInsertedElement(t.targetPosition.parent);e||this._markRemove(t.sourcePosition.parent,t.sourcePosition.offset,t.howMany),n||this._markInsert(t.targetPosition.parent,t.getMovedRangeStart().offset,t.howMany);let r=X._createFromPositionAndShift(t.sourcePosition,t.howMany);for(let e of r.getItems({shallow:!0}))this._setElementState(e,`move`);break}case`rename`:{if(this._isInInsertedElement(t.position.parent))return;this._markRemove(t.position.parent,t.position.offset,1),this._markInsert(t.position.parent,t.position.offset,1);let e=X._createFromPositionAndShift(t.position,1);for(let t of this._markerCollection.getMarkersIntersectingRange(e)){let e=t.getData();this.bufferMarkerChange(t.name,e,e)}this._setElementState(t.position.nodeAfter,`rename`);break}case`split`:{let e=t.splitPosition.parent;if(!this._isInInsertedElement(e)){this._markRemove(e,t.splitPosition.offset,t.howMany);let n=X._createFromPositionAndShift(t.splitPosition,t.howMany);for(let e of n.getItems({shallow:!0}))this._setElementState(e,`move`)}this._isInInsertedElement(t.insertionPosition.parent)||this._markInsert(t.insertionPosition.parent,t.insertionPosition.offset,1),t.graveyardPosition&&(this._markRemove(t.graveyardPosition.parent,t.graveyardPosition.offset,1),this._setElementState(t.graveyardPosition.nodeAfter,`move`));break}case`merge`:{let e=t.sourcePosition.parent;this._isInInsertedElement(e.parent)||this._markRemove(e.parent,e.startOffset,1);let n=t.graveyardPosition.parent;this._markInsert(n,t.graveyardPosition.offset,1),this._setElementState(e,`move`);let r=t.targetPosition.parent;if(!this._isInInsertedElement(r)){this._markInsert(r,t.targetPosition.offset,e.maxOffset);let n=X._createFromPositionAndShift(t.sourcePosition,t.howMany);for(let e of n.getItems({shallow:!0}))this._setElementState(e,`move`)}break}case`detachRoot`:case`addRoot`:{let e=t.affectedSelectable;if(!e._isLoaded||e.isAttached()==t.isAdd)return;this._bufferRootStateChange(t.rootName,t.isAdd);break}case`addRootAttribute`:case`removeRootAttribute`:case`changeRootAttribute`:{if(!t.root._isLoaded)return;let e=t.root.rootName;this._bufferRootAttributeChange(e,t.key,t.oldValue,t.newValue);break}}this._cachedChanges=null}bufferMarkerChange(e,t,n){t.range&&t.range.root.is(`rootElement`)&&!t.range.root._isLoaded&&(t.range=null),n.range&&n.range.root.is(`rootElement`)&&!n.range.root._isLoaded&&(n.range=null);let r=this._changedMarkers.get(e);r?r.newMarkerData=n:(r={newMarkerData:n,oldMarkerData:t},this._changedMarkers.set(e,r)),r.oldMarkerData.range==null&&n.range==null&&this._changedMarkers.delete(e)}getMarkersToRemove(){let e=[];for(let[t,n]of this._changedMarkers)n.oldMarkerData.range!=null&&e.push({name:t,range:n.oldMarkerData.range});return e}getMarkersToAdd(){let e=[];for(let[t,n]of this._changedMarkers)n.newMarkerData.range!=null&&e.push({name:t,range:n.newMarkerData.range});return e}getChangedMarkers(){return Array.from(this._changedMarkers).map(([e,t])=>({name:e,data:{oldRange:t.oldMarkerData.range,newRange:t.newMarkerData.range}}))}hasDataChanges(){if(this.getChanges().length||this._changedRoots.size>0)return!0;for(let{newMarkerData:e,oldMarkerData:t}of this._changedMarkers.values()){if(e.affectsData!==t.affectsData)return!0;if(e.affectsData){let n=e.range&&!t.range,r=!e.range&&t.range,i=e.range&&t.range&&!e.range.isEqual(t.range);if(n||r||i)return!0}}return!1}getChanges(e={}){if(this._cachedChanges)return e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let t=[];for(let e of this._changesInElement.keys()){let n=this._changesInElement.get(e).sort((e,t)=>e.offset===t.offset?e.type==t.type?0:e.type==`remove`?-1:1:e.offsete.position.root==t.position.root?e.position.isEqual(t.position)?e.changeCount-t.changeCount:e.position.isBefore(t.position)?-1:1:e.position.root.rootNamee);for(let e of t)delete e.changeCount,e.type==`attribute`&&(delete e.position,delete e.length);return this._changeCount=0,this._cachedChangesWithGraveyard=t,this._cachedChanges=t.filter(dM),e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getChangedRoots(){return Array.from(this._changedRoots.values()).map(e=>{let t={...e};return t.state!==void 0&&delete t.attributes,t})}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementChildrenSnapshots.clear(),this._elementsSnapshots.clear(),this._elementState.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems.clear(),this._cachedChanges=null}_refreshItem(e){if(this._isInInsertedElement(e.parent))return;this._markRemove(e.parent,e.startOffset,e.offsetSize),this._markInsert(e.parent,e.startOffset,e.offsetSize),this._refreshedItems.add(e),this._setElementState(e,`refresh`);let t=X._createOn(e);for(let e of this._markerCollection.getMarkersIntersectingRange(t)){let t=e.getData();this.bufferMarkerChange(e.name,t,t)}this._cachedChanges=null}_bufferRootLoad(e){if(e.isAttached()){this._bufferRootStateChange(e.rootName,!0),this._markInsert(e,0,e.maxOffset);for(let t of e.getAttributeKeys())this._bufferRootAttributeChange(e.rootName,t,null,e.getAttribute(t));for(let t of this._markerCollection)if(t.getRange().root==e){let e=t.getData();this.bufferMarkerChange(t.name,{...e,range:null},e)}}}_bufferRootStateChange(e,t){if(!this._changedRoots.has(e)){this._changedRoots.set(e,{name:e,state:t?`attached`:`detached`});return}let n=this._changedRoots.get(e);n.state===void 0?n.state=t?`attached`:`detached`:(delete n.state,n.attributes===void 0&&this._changedRoots.delete(e))}_bufferRootAttributeChange(e,t,n,r){let i=this._changedRoots.get(e)||{name:e},a=i.attributes||{};if(a[t]){let e=a[t];r===e.oldValue?delete a[t]:e.newValue=r}else a[t]={oldValue:n,newValue:r};Object.entries(a).length===0?(delete i.attributes,i.state===void 0&&this._changedRoots.delete(e)):(i.attributes=a,this._changedRoots.set(e,i))}_markInsert(e,t,n){if(e.root.is(`rootElement`)&&!e.root._isLoaded)return;let r={type:`insert`,offset:t,howMany:n,count:this._changeCount++};this._markChange(e,r)}_markRemove(e,t,n){if(e.root.is(`rootElement`)&&!e.root._isLoaded)return;let r={type:`remove`,offset:t,howMany:n,count:this._changeCount++};this._markChange(e,r),this._removeAllNestedChanges(e,t,n)}_markAttribute(e){if(e.root.is(`rootElement`)&&!e.root._isLoaded)return;let t={type:`attribute`,offset:e.startOffset,howMany:e.offsetSize,count:this._changeCount++};this._markChange(e.parent,t)}_markChange(e,t){this._makeSnapshots(e);let n=this._getChangesForElement(e);this._handleChange(t,n),n.push(t);for(let e=0;er&&this._elementState.set(t,n)}_getDiffActionForNode(e,t){if(!e.is(`element`)||!this._elementsSnapshots.has(e))return t;let n=this._elementState.get(e);return!n||n==`move`?t:n}_getChangesForElement(e){let t;return this._changesInElement.has(e)?t=this._changesInElement.get(e):(t=[],this._changesInElement.set(e,t)),t}_makeSnapshots(e){if(this._elementChildrenSnapshots.has(e))return;let t=lM(e.getChildren());this._elementChildrenSnapshots.set(e,t);for(let e of t)this._elementsSnapshots.set(e.node,e)}_handleChange(e,t){e.nodesToHandle=e.howMany;for(let n of t){let r=e.offset+e.howMany,i=n.offset+n.howMany;if(e.type==`insert`&&(n.type==`insert`&&(e.offset<=n.offset?n.offset+=e.howMany:e.offsetn.offset){if(r>i){let e={type:`attribute`,offset:i,howMany:r-i,count:this._changeCount++};this._handleChange(e,t),t.push(e)}e.nodesToHandle=n.offset-e.offset,e.howMany=e.nodesToHandle}else e.offset>=n.offset&&e.offseti?(e.nodesToHandle=r-i,e.offset=i):e.nodesToHandle=0);if(n.type==`remove`&&e.offsetn.offset){let i={type:`attribute`,offset:n.offset,howMany:r-n.offset,count:this._changeCount++};this._handleChange(i,t),t.push(i),e.nodesToHandle=n.offset-e.offset,e.howMany=e.nodesToHandle}n.type==`attribute`&&(e.offset>=n.offset&&r<=i?(e.nodesToHandle=0,e.howMany=0,e.offset=0):e.offset<=n.offset&&r>=i&&(n.howMany=0))}}e.howMany=e.nodesToHandle,delete e.nodesToHandle}_getInsertDiff(e,t,n,r,i){let a={type:`insert`,position:Y._createAt(e,t),name:r.name,attributes:new Map(r.attributes),length:1,changeCount:this._changeCount++,action:n};return n!=`insert`&&i&&(a.before={name:i.name,attributes:new Map(i.attributes)}),a}_getRemoveDiff(e,t,n,r){return{type:`remove`,action:n,position:Y._createAt(e,t),name:r.name,attributes:new Map(r.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(e,t,n){let r=[];n=new Map(n);for(let[i,a]of t){let t=n.has(i)?n.get(i):null;t!==a&&r.push({type:`attribute`,position:e.start,range:e.clone(),length:1,attributeKey:i,attributeOldValue:a,attributeNewValue:t,changeCount:this._changeCount++}),n.delete(i)}for(let[t,i]of n)r.push({type:`attribute`,position:e.start,range:e.clone(),length:1,attributeKey:t,attributeOldValue:null,attributeNewValue:i,changeCount:this._changeCount++});return r}_isInInsertedElement(e){let t=e.parent;if(!t)return!1;let n=this._changesInElement.get(t),r=e.startOffset;if(n){for(let e of n)if(e.type==`insert`&&r>=e.offset&&rr){for(let t=0;t1500)for(let t=0;tthis._version+1&&this._gaps.set(this._version,e),this._version=e}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(e){if(e.baseVersion!==this.version)throw new K(`model-document-history-addoperation-incorrect-version`,this,{operation:e,historyVersion:this.version});this._operations.push(e),this._version++,this._baseVersionToOperationIndex.set(e.baseVersion,this._operations.length-1)}getOperations(e,t=this.version){if(!this._operations.length)return[];let n=this._operations[0];e===void 0&&(e=n.baseVersion);let r=t-1;for(let[t,n]of this._gaps)e>t&&et&&rthis.lastOperation.baseVersion)return[];let i=this._baseVersionToOperationIndex.get(e);i===void 0&&(i=0);let a=this._baseVersionToOperationIndex.get(r);return a===void 0&&(a=this._operations.length-1),this._operations.slice(i,a+1)}getOperation(e){let t=this._baseVersionToOperationIndex.get(e);if(t!==void 0)return this._operations[t]}setOperationAsUndone(e,t){this._undoPairs.set(t,e),this._undoneOperations.add(e)}isUndoingOperation(e){return this._undoPairs.has(e)}isUndoneOperation(e){return this._undoneOperations.has(e)}getUndoneOperation(e){return this._undoPairs.get(e)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}},pM=class extends xk{rootName;_document;_isAttached=!0;_isLoaded=!0;constructor(e,t,n=`main`){super(t),this._document=e,this.rootName=n}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}};pM.prototype.is=function(e,t){return t?t===this.name&&(e===`rootElement`||e===`model:rootElement`||e===`element`||e===`model:element`):e===`rootElement`||e===`model:rootElement`||e===`element`||e===`model:element`||e===`node`||e===`model:node`};var mM=`$graveyard`,hM=fC(),gM=class extends hM{model;history;selection;roots;differ;isReadOnly;_postFixers;_hasSelectionChangedFromTheLastChangeBlock;constructor(e){super(),this.model=e,this.history=new fM,this.selection=new mk(this),this.roots=new hT({idProperty:`rootName`}),this.differ=new sM(e.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot(`$root`,mM),this.listenTo(e,`applyOperation`,(e,t)=>{let n=t[0];n.isDocumentOperation&&this.differ.bufferOperation(n)},{priority:`high`}),this.listenTo(e,`applyOperation`,(e,t)=>{let n=t[0];n.isDocumentOperation&&this.history.addOperation(n)},{priority:`low`}),this.listenTo(this.selection,`change`,()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(e.markers,`update`,(e,t,n,r,i)=>{let a={...t.getData(),range:r};this.differ.bufferMarkerChange(t.name,i,a),n===null&&t.on(`change`,(e,n)=>{let r=t.getData();this.differ.bufferMarkerChange(t.name,{...r,range:n},r)})}),this.registerPostFixer(e=>{let t=!1;for(let n of this.roots)!n.isAttached()&&!n.isEmpty&&(e.remove(e.createRangeIn(n)),t=!0);for(let n of this.model.markers)n.getRange().root.isAttached()||(e.removeMarker(n),t=!0);return t})}get version(){return this.history.version}set version(e){this.history.version=e}get graveyard(){return this.getRoot(mM)}createRoot(e=`$root`,t=`main`){if(this.roots.get(t))throw new K(`model-document-createroot-name-exists`,this,{name:t});let n=new pM(this,e,t);return this.roots.add(n),n}destroy(){this.selection.destroy(),this.stopListening()}getRoot(e=`main`){return this.roots.get(e)}getRootNames(e=!1){return this.getRoots(e).map(e=>e.rootName)}getRoots(e=!1){return this.roots.filter(t=>t!=this.graveyard&&(e||t.isAttached())&&t._isLoaded)}registerPostFixer(e){this._postFixers.add(e)}toJSON(){let e=uS(this);return e.selection=`[engine.model.DocumentSelection]`,e.model=`[engine.model.Model]`,e}_handleChangeBlock(e){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(e),this.selection.refresh(),this.differ.hasDataChanges()?this.fire(`change:data`,e.batch):this.fire(`change`,e.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){let e=this.getRoots();return e.length?e[0]:this.graveyard}_getDefaultRange(){let e=this._getDefaultRoot(),t=this.model,n=t.schema,r=t.createPositionFromPath(e,[0]);return n.getNearestSelectionRange(r)||t.createRange(r)}_validateSelectionRange(e){return e.start.isValid()&&e.end.isValid()&&_M(e.start)&&_M(e.end)}_callPostFixers(e){let t=!1;do for(let n of this._postFixers)if(this.selection.refresh(),t=n(e),t)break;while(t)}};function _M(e){let t=e.textNode;if(t){let n=t.data,r=e.offset-t.startOffset;return!PT(n,r)&&!FT(n,r)}return!0}var vM=fC(),yM=fC(OO),bM=class extends vM{_markers=new Map;[Symbol.iterator](){return this._markers.values()}has(e){let t=e instanceof xM?e.name:e;return this._markers.has(t)}get(e){return this._markers.get(e)||null}_set(e,t,n=!1,r=!1){let i=e instanceof xM?e.name:e;if(i.includes(`,`))throw new K(`markercollection-incorrect-marker-name`,this);let a=this._markers.get(i);if(a){let e=a.getData(),o=a.getRange(),s=!1;return o.isEqual(t)||(a._attachLiveRange(sk.fromRange(t)),s=!0),n!=a.managedUsingOperations&&(a._managedUsingOperations=n,s=!0),typeof r==`boolean`&&r!=a.affectsData&&(a._affectsData=r,s=!0),s&&this.fire(`update:${i}`,a,o,t,e),a}let o=new xM(i,sk.fromRange(t),n,r);return this._markers.set(i,o),this.fire(`update:${i}`,o,null,t,{...o.getData(),range:null}),o}_remove(e){let t=e instanceof xM?e.name:e,n=this._markers.get(t);return n?(this._markers.delete(t),this.fire(`update:${t}`,n,n.getRange(),null,n.getData()),this._destroyMarker(n),!0):!1}_refresh(e){let t=e instanceof xM?e.name:e,n=this._markers.get(t);if(!n)throw new K(`markercollection-refresh-marker-not-exists`,this);let r=n.getRange();this.fire(`update:${t}`,n,r,r,n.getData())}*getMarkersAtPosition(e){for(let t of this)t.getRange().containsPosition(e)&&(yield t)}*getMarkersIntersectingRange(e){for(let t of this)t.getRange().getIntersection(e)!==null&&(yield t)}destroy(){for(let e of this._markers.values())this._destroyMarker(e);this._markers=null,this.stopListening()}*getMarkersGroup(e){for(let t of this._markers.values())t.name.startsWith(e+`:`)&&(yield t)}_destroyMarker(e){e.stopListening(),e._detachLiveRange()}},xM=class extends yM{name;_managedUsingOperations;_affectsData;_liveRange;constructor(e,t,n,r){super(),this.name=e,this._liveRange=this._attachLiveRange(t),this._managedUsingOperations=n,this._affectsData=r}get managedUsingOperations(){if(!this._liveRange)throw new K(`marker-destroyed`,this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new K(`marker-destroyed`,this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new K(`marker-destroyed`,this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new K(`marker-destroyed`,this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new K(`marker-destroyed`,this);return this._liveRange.toRange()}toJSON(){return{name:this.name,range:this._liveRange?.toJSON(),usingOperations:this._managedUsingOperations,affectsData:this._affectsData}}_attachLiveRange(e){return this._liveRange&&this._detachLiveRange(),e.delegate(`change:range`).to(this),e.delegate(`change:content`).to(this),this._liveRange=e,e}_detachLiveRange(){this._liveRange.stopDelegating(`change:range`,this),this._liveRange.stopDelegating(`change:content`,this),this._liveRange.detach(),this._liveRange=null}};xM.prototype.is=function(e){return e===`marker`||e===`model:marker`};var SM=class extends xj{sourcePosition;howMany;constructor(e,t){super(null),this.sourcePosition=e.clone(),this.howMany=t}get type(){return`detach`}get affectedSelectable(){return null}toJSON(){let e=super.toJSON();return e.sourcePosition=this.sourcePosition.toJSON(),e}_validate(){if(this.sourcePosition.root.document)throw new K(`detach-operation-on-document-node`,this)}_execute(){Cj(X._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return`DetachOperation`}},CM=class e extends OO{markers=new Map;_children=new yk;constructor(e){super(),e&&this._insertChild(0,e)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return this.childCount===0}get nextSibling(){return null}get previousSibling(){return null}get root(){return this}get parent(){return null}get document(){return null}isAttached(){return!1}getAncestors(){return[]}getChild(e){return this._children.getNode(e)}getChildAtOffset(e){return this._children.getNodeAtOffset(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}getPath(){return[]}getNodeByPath(e){let t=this;for(let n of e)t=t.getChildAtOffset(n);return t}offsetToIndex(e){return this._children.offsetToIndex(e)}toJSON(){let e=[];for(let t of this._children)e.push(t.toJSON());return e}static fromJSON(t){let n=[];for(let e of t)e.name?n.push(xk.fromJSON(e)):n.push(dk.fromJSON(e));return new e(n)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){let n=wM(t);for(let e of n)e.parent!==null&&e._remove(),e.parent=this;this._children._insertNodes(e,n)}_removeChildren(e,t=1){let n=this._children._removeNodes(e,t);for(let e of n)e.parent=null;return n}_removeChildrenArray(e){this._children._removeNodesArray(e);for(let t of e)t.parent=null}};CM.prototype.is=function(e){return e===`documentFragment`||e===`model:documentFragment`};function wM(e){return typeof e==`string`?[new dk(e)]:(WC(e)||(e=[e]),Array.from(e).map(e=>typeof e==`string`?new dk(e):e instanceof kO?new dk(e.data,e.getAttributes()):e))}var TM=class{model;batch;constructor(e,t){this.model=e,this.batch=t}createText(e,t){return new dk(e,t)}createElement(e,t){return new xk(e,t)}createDocumentFragment(){return new CM}cloneElement(e,t=!0){return e._clone(t)}insert(e,t,n=0){if(this._assertWriterUsedCorrectly(),e instanceof dk&&e.data==``)return;let r=Y._createAt(t,n);if(e.parent)if(AM(e.root,r.root)){this.move(X._createOn(e),r);return}else if(e.root.document)throw new K(`model-writer-insert-forbidden-move`,this);else this.remove(e);let i=r.root.document?r.root.document.version:null,a=new jj(r,e instanceof CM?e._removeChildren(0,e.childCount):e,i);if(e instanceof dk&&(a.shouldReceiveAttributes=!0),this.batch.addOperation(a),this.model.applyOperation(a),e instanceof CM)for(let[t,n]of e.markers){let e=Y._createAt(n.root,0),i={range:new X(n.start._getCombined(e,r),n.end._getCombined(e,r)),usingOperation:!0,affectsData:!0};this.model.markers.has(t)?this.updateMarker(t,i):this.addMarker(t,i)}}insertText(e,t,n,r){t instanceof CM||t instanceof xk||t instanceof Y?this.insert(this.createText(e),t,n):this.insert(this.createText(e,t),n,r)}insertElement(e,t,n,r){t instanceof CM||t instanceof xk||t instanceof Y?this.insert(this.createElement(e),t,n):this.insert(this.createElement(e,t),n,r)}append(e,t){this.insert(e,t,`end`)}appendText(e,t,n){t instanceof CM||t instanceof xk?this.insert(this.createText(e),t,`end`):this.insert(this.createText(e,t),n,`end`)}appendElement(e,t,n){t instanceof CM||t instanceof xk?this.insert(this.createElement(e),t,`end`):this.insert(this.createElement(e,t),n,`end`)}setAttribute(e,t,n){if(this._assertWriterUsedCorrectly(),n instanceof X){let r=n.getMinimalFlatRanges();for(let n of r)EM(this,e,t,n)}else DM(this,e,t,n)}setAttributes(e,t){for(let[n,r]of TT(e))this.setAttribute(n,r,t)}removeAttribute(e,t){if(this._assertWriterUsedCorrectly(),t instanceof X){let n=t.getMinimalFlatRanges();for(let t of n)EM(this,e,null,t)}else DM(this,e,null,t)}clearAttributes(e){this._assertWriterUsedCorrectly();let t=e=>{for(let t of e.getAttributeKeys())this.removeAttribute(t,e)};if(!(e instanceof X))t(e);else for(let n of e.getItems())t(n)}move(e,t,n){if(this._assertWriterUsedCorrectly(),!(e instanceof X))throw new K(`writer-move-invalid-range`,this);if(!e.isFlat)throw new K(`writer-move-range-not-flat`,this);let r=Y._createAt(t,n);if(r.isEqual(e.start))return;if(this._addOperationForAffectedMarkers(`move`,e),!AM(e.root,r.root))throw new K(`writer-move-different-document`,this);let i=e.root.document?e.root.document.version:null,a=new Aj(e.start,e.end.offset-e.start.offset,r,i);this.batch.addOperation(a),this.model.applyOperation(a)}remove(e){this._assertWriterUsedCorrectly();let t=(e instanceof X?e:X._createOn(e)).getMinimalFlatRanges().reverse();for(let e of t)this._addOperationForAffectedMarkers(`move`,e),kM(e.start,e.end.offset-e.start.offset,this.batch,this.model)}merge(e){this._assertWriterUsedCorrectly();let t=e.nodeBefore,n=e.nodeAfter;if(this._addOperationForAffectedMarkers(`merge`,e),!(t instanceof xk))throw new K(`writer-merge-no-element-before`,this);if(!(n instanceof xk))throw new K(`writer-merge-no-element-after`,this);e.root.document?this._merge(e):this._mergeDetached(e)}createPositionFromPath(e,t,n){return this.model.createPositionFromPath(e,t,n)}createPositionAt(e,t){return this.model.createPositionAt(e,t)}createPositionAfter(e){return this.model.createPositionAfter(e)}createPositionBefore(e){return this.model.createPositionBefore(e)}createRange(e,t){return this.model.createRange(e,t)}createRangeIn(e){return this.model.createRangeIn(e)}createRangeOn(e){return this.model.createRangeOn(e)}createSelection(...e){return this.model.createSelection(...e)}_mergeDetached(e){let t=e.nodeBefore,n=e.nodeAfter;this.move(X._createIn(n),Y._createAt(t,`end`)),this.remove(n)}_merge(e){let t=Y._createAt(e.nodeBefore,`end`),n=Y._createAt(e.nodeAfter,0),r=e.root.document.graveyard,i=new Y(r,[0]),a=e.root.document.version,o=new Nj(n,e.nodeAfter.maxOffset,t,i,a);this.batch.addOperation(o),this.model.applyOperation(o)}rename(e,t){if(this._assertWriterUsedCorrectly(),!(e instanceof xk))throw new K(`writer-rename-not-element-instance`,this);let n=e.root.document?e.root.document.version:null,r=new Lj(Y._createBefore(e),e.name,t,n);this.batch.addOperation(r),this.model.applyOperation(r)}split(e,t){this._assertWriterUsedCorrectly();let n=e.parent;if(!n.parent)throw new K(`writer-split-element-no-parent`,this);if(t||=n.parent,!e.parent.getAncestors({includeSelf:!0}).includes(t))throw new K(`writer-split-invalid-limit-element`,this);let r,i;do{let t=n.root.document?n.root.document.version:null,a=n.maxOffset-e.offset,o=Mj.getInsertionPosition(e),s=new Mj(e,a,o,null,t);this.batch.addOperation(s),this.model.applyOperation(s),!r&&!i&&(r=n,i=e.parent.nextSibling),e=this.createPositionAfter(e.parent),n=e.parent}while(n!==t);return{position:e,range:new X(Y._createAt(r,`end`),Y._createAt(i,0))}}wrap(e,t){if(this._assertWriterUsedCorrectly(),!e.isFlat)throw new K(`writer-wrap-range-not-flat`,this);let n=t instanceof xk?t:new xk(t);if(n.childCount>0)throw new K(`writer-wrap-element-not-empty`,this);if(n.parent!==null)throw new K(`writer-wrap-element-attached`,this);this.insert(n,e.start);let r=new X(e.start.getShiftedBy(1),e.end.getShiftedBy(1));this.move(r,Y._createAt(n,0))}unwrap(e){if(this._assertWriterUsedCorrectly(),e.parent===null)throw new K(`writer-unwrap-element-no-parent`,this);this.move(X._createIn(e),this.createPositionAfter(e)),this.remove(e)}addMarker(e,t){if(this._assertWriterUsedCorrectly(),!t||typeof t.usingOperation!=`boolean`)throw new K(`writer-addmarker-no-usingoperation`,this);let n=t.usingOperation,r=t.range,i=t.affectsData!==void 0&&t.affectsData;if(this.model.markers.has(e))throw new K(`writer-addmarker-marker-exists`,this);if(!r)throw new K(`writer-addmarker-no-range`,this);return n?(OM(this,e,null,r,i),this.model.markers.get(e)):this.model.markers._set(e,r,n,i)}updateMarker(e,t){this._assertWriterUsedCorrectly();let n=typeof e==`string`?e:e.name,r=this.model.markers.get(n);if(!r)throw new K(`writer-updatemarker-marker-not-exists`,this);if(!t){tC(`writer-updatemarker-reconvert-using-editingcontroller`,{markerName:n}),this.model.markers._refresh(r);return}let i=typeof t.usingOperation==`boolean`,a=typeof t.affectsData==`boolean`,o=a?t.affectsData:r.affectsData;if(!i&&!t.range&&!a)throw new K(`writer-updatemarker-wrong-options`,this);let s=r.getRange(),c=t.range?t.range:s;if(i&&t.usingOperation!==r.managedUsingOperations){t.usingOperation?OM(this,n,null,c,o):(OM(this,n,s,null,o),this.model.markers._set(n,c,void 0,o));return}r.managedUsingOperations?OM(this,n,s,c,o):this.model.markers._set(n,c,void 0,o)}removeMarker(e){this._assertWriterUsedCorrectly();let t=typeof e==`string`?e:e.name;if(!this.model.markers.has(t))throw new K(`writer-removemarker-no-marker`,this);let n=this.model.markers.get(t);if(!n.managedUsingOperations){this.model.markers._remove(t);return}let r=n.getRange();OM(this,t,r,null,n.affectsData)}addRoot(e,t=`$root`){this._assertWriterUsedCorrectly();let n=this.model.document.getRoot(e);if(n&&n.isAttached())throw new K(`writer-addroot-root-exists`,this);let r=this.model.document,i=new zj(e,t,!0,r,r.version);return this.batch.addOperation(i),this.model.applyOperation(i),this.model.document.getRoot(e)}detachRoot(e){this._assertWriterUsedCorrectly();let t=typeof e==`string`?this.model.document.getRoot(e):e;if(!t||!t.isAttached())throw new K(`writer-detachroot-no-root`,this);for(let e of this.model.markers)e.getRange().root===t&&this.removeMarker(e);for(let e of t.getAttributeKeys())this.removeAttribute(e,t);this.remove(this.createRangeIn(t));let n=this.model.document,r=new zj(t.rootName,t.name,!1,n,n.version);this.batch.addOperation(r),this.model.applyOperation(r)}setSelection(...e){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...e)}setSelectionFocus(e,t){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(e,t)}setSelectionAttribute(e,t){if(this._assertWriterUsedCorrectly(),typeof e==`string`)this._setSelectionAttribute(e,t);else for(let[t,n]of TT(e))this._setSelectionAttribute(t,n)}removeSelectionAttribute(e){if(this._assertWriterUsedCorrectly(),typeof e==`string`)this._removeSelectionAttribute(e);else for(let t of e)this._removeSelectionAttribute(t)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(e){this.model.document.selection._restoreGravity(e)}_setSelectionAttribute(e,t){let n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){let r=mk._getStoreAttributeKey(e);this.setAttribute(r,t,n.anchor.parent)}n._setAttribute(e,t)}_removeSelectionAttribute(e){let t=this.model.document.selection;if(t.isCollapsed&&t.anchor.parent.isEmpty){let n=mk._getStoreAttributeKey(e);this.removeAttribute(n,t.anchor.parent)}t._removeAttribute(e)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new K(`writer-incorrect-use`,this)}_addOperationForAffectedMarkers(e,t){for(let n of this.model.markers){if(!n.managedUsingOperations)continue;let r=n.getRange(),i=!1;if(e===`move`){let e=t;i=e.containsPosition(r.start)||e.start.isEqual(r.start)||e.containsPosition(r.end)||e.end.isEqual(r.end)}else{let e=t,n=e.nodeBefore,a=e.nodeAfter,o=r.start.parent==n&&r.start.isAtEnd,s=r.end.parent==a&&r.end.offset==0,c=r.end.nodeAfter==a,l=r.start.nodeAfter==a;i=o||s||c||l}i&&this.updateMarker(n.name,{range:r})}}};function EM(e,t,n,r){let i=e.model,a=i.document,o=r.start,s,c,l;for(let e of r.getWalker({shallow:!0}))l=e.item.getAttribute(t),s&&c!=l&&(c!=n&&u(),o=s),s=e.nextPosition,c=l;s instanceof Y&&s!=o&&c!=n&&u();function u(){let r=new X(o,s),l=r.root.document?a.version:null,u=new Fj(r,t,c,n,l);e.batch.addOperation(u),i.applyOperation(u)}}function DM(e,t,n,r){let i=e.model,a=i.document,o=r.getAttribute(t),s,c;if(o!=n){if(r.root===r)c=new Rj(r,t,o,n,r.document?a.version:null);else{s=new X(Y._createBefore(r),e.createPositionAfter(r));let i=s.root.document?a.version:null;c=new Fj(s,t,o,n,i)}e.batch.addOperation(c),i.applyOperation(c)}}function OM(e,t,n,r,i){let a=e.model,o=a.document,s=new Pj(t,n,r,a.markers,!!i,o.version);e.batch.addOperation(s),a.applyOperation(s)}function kM(e,t,n,r){let i;if(e.root.document){let n=r.document;i=new Aj(e,t,new Y(n.graveyard,[0]),n.version)}else i=new SM(e,t);n.addOperation(i),r.applyOperation(i)}function AM(e,t){return e===t||e instanceof pM&&t instanceof pM}function jM(e){e.document.registerPostFixer(t=>MM(t,e))}function MM(e,t){let n=t.document.selection,r=t.schema,i=[],a=!1;for(let e of n.getRanges()){let t=NM(e,r);t&&!t.isEqual(e)?(i.push(t),a=!0):i.push(e)}return a&&e.setSelection(RM(i),{backward:n.isBackward}),!1}function NM(e,t){return e.isCollapsed?PM(e,t):FM(e,t)}function PM(e,t){let n=e.start,r=t.getNearestSelectionRange(n);if(!r){let e=n.getAncestors().reverse().find(e=>t.isObject(e));return e?X._createOn(e):null}if(!r.isCollapsed)return r;let i=r.start;return n.isEqual(i)?null:new X(i)}function FM(e,t){let{start:n,end:r}=e,i=t.checkChild(n,`$text`),a=t.checkChild(r,`$text`),o=t.getLimitElement(n),s=t.getLimitElement(r);if(o===s){if(i&&a)return null;if(LM(n,r,t)){let e=n.nodeAfter&&t.isSelectable(n.nodeAfter)?null:t.getNearestSelectionRange(n,`forward`),i=r.nodeBefore&&t.isSelectable(r.nodeBefore)?null:t.getNearestSelectionRange(r,`backward`);return new X(e?e.start:n,i?i.end:r)}}let c=o&&!o.is(`rootElement`),l=s&&!s.is(`rootElement`);if(c||l){let e=n.nodeAfter&&r.nodeBefore&&n.nodeAfter.parent===r.nodeBefore.parent,i=c&&(!e||!zM(n.nodeAfter,t)),a=l&&(!e||!zM(r.nodeBefore,t)),u=n,d=r;return i&&(u=Y._createBefore(IM(o,t))),a&&(d=Y._createAfter(IM(s,t))),new X(u,d)}return null}function IM(e,t){let n=e,r=n;for(;t.isLimit(r)&&r.parent;)n=r,r=r.parent;return n}function LM(e,t,n){let r=e.nodeAfter&&!n.isLimit(e.nodeAfter)||n.checkChild(e,`$text`),i=t.nodeBefore&&!n.isLimit(t.nodeBefore)||n.checkChild(t,`$text`);return r||i}function RM(e){let t=[...e],n=new Set,r=1;for(;r!n.has(t))}function zM(e,t){return e&&t.isSelectable(e)}function BM(e,t,n={}){if(t.isCollapsed)return;let r=t.getFirstRange();if(r.root.rootName==`$graveyard`)return;let i=e.schema,a=e.document.selection,o=nN(t,a,r),s=Array.from(a.getAttributes()),c=!!a.getFirstRange()?.start.parent.isEmpty;e.change(e=>{if(!n.doNotResetEntireContent&&$M(i,t)){QM(e,t);return}let a={};if(!n.doNotAutoparagraph){let e=t.getSelectedElement();e&&Object.assign(a,i.getAttributesWithProperty(e,`copyOnReplace`,!0))}let l,u;n.doNotFixSelection?(l=rM.fromPosition(r.start,`toPrevious`),u=rM.fromPosition(r.end,`toNext`)):[l,u]=VM(r),l.isTouching(u)||e.remove(e.createRange(l,u)),n.leaveUnmerged||(UM(e,l,u),i.removeDisallowedAttributes(l.parent.getChildren(),e)),eN(e,t,l),!n.doNotAutoparagraph&&YM(i,l)&&ZM(e,l,t,a),o&&tN(e,s,c),l.detach(),u.detach()})}function VM(e){let t=e.root.document.model,n=e.start,r=e.end;if(t.hasContent(e,{ignoreMarkers:!0})){let n=HM(r);if(n&&r.isTouching(t.createPositionAt(n,0))){let n=t.createSelection(e);t.modifySelection(n,{direction:`backward`});let i=n.getLastPosition(),a=t.createRange(i,r);t.hasContent(a,{ignoreMarkers:!0})||(r=i)}}return[rM.fromPosition(n,`toPrevious`),rM.fromPosition(r,`toNext`)]}function HM(e){let t=e.parent,n=t.root.document.model.schema,r=t.getAncestors({parentFirst:!0,includeSelf:!0});for(let e of r){if(n.isLimit(e))return null;if(n.isBlock(e))return e}}function UM(e,t,n){let r=e.model;if(!qM(e.model.schema,t,n))return;let[i,a]=JM(t,n);!i||!a||(!r.hasContent(i,{ignoreMarkers:!0})&&r.hasContent(a,{ignoreMarkers:!0})?GM(e,t,n,i.parent):WM(e,t,n,i.parent))}function WM(e,t,n,r){let i=t.parent,a=n.parent;if(!(i==r||a==r)){for(t=e.createPositionAfter(i),n=e.createPositionBefore(a),n.isEqual(t)||e.insert(a,t),e.merge(t);n.parent.isEmpty;){let t=n.parent;n=e.createPositionBefore(t),e.remove(t)}qM(e.model.schema,t,n)&&WM(e,t,n,r)}}function GM(e,t,n,r){let i=t.parent,a=n.parent;if(!(i==r||a==r)){for(t=e.createPositionAfter(i),n=e.createPositionBefore(a),n.isEqual(t)||e.insert(i,n);t.parent.isEmpty;){let n=t.parent;t=e.createPositionBefore(n),e.remove(n)}n=e.createPositionBefore(a),KM(e,n),qM(e.model.schema,t,n)&&GM(e,t,n,r)}}function KM(e,t){let n=t.nodeBefore,r=t.nodeAfter;n.name!=r.name&&e.rename(n,r.name),e.clearAttributes(n),e.setAttributes(Object.fromEntries(r.getAttributes()),n),e.merge(t)}function qM(e,t,n){let r=t.parent,i=n.parent;return r==i||e.isLimit(r)||e.isLimit(i)?!1:XM(t,n,e)}function JM(e,t){let n=e.getAncestors(),r=t.getAncestors(),i=0;for(;n[i]&&n[i]==r[i];)i++;return[n[i],r[i]]}function YM(e,t){let n=e.checkChild(t,`$text`),r=e.checkChild(t,`paragraph`);return!n&&r}function XM(e,t,n){let r=new X(e,t);for(let e of r.getWalker())if(n.isLimit(e.item))return!1;return!0}function ZM(e,t,n,r={}){let i=e.createElement(`paragraph`);e.model.schema.setAllowedAttributes(i,r,e),e.insert(i,t),eN(e,n,e.createPositionAt(i,0))}function QM(e,t){let n=e.model.schema.getLimitElement(t);e.remove(e.createRangeIn(n)),ZM(e,e.createPositionAt(n,0),t)}function $M(e,t){let n=e.getLimitElement(t);if(!t.containsEntireContent(n))return!1;let r=t.getFirstRange();return r.start.parent!=r.end.parent&&e.checkChild(n,`paragraph`)}function eN(e,t,n){t instanceof mk?e.setSelection(n):t.setTo(n)}function tN(e,t,n){if(!t.length)return;let r=e.model.document.selection;if(r.anchor.parent.isEmpty&&!n)for(let[n,i]of t)e.model.schema.getAttributeProperties(n).isFormatting&&e.model.schema.checkAttributeInSelection(r,n)&&e.setSelectionAttribute(n,i)}function nN(e,t,n){if(e instanceof mk)return!0;if(t.isCollapsed){let e=t.getFirstPosition();return e.isEqual(n.start)||e.isEqual(n.end)}return!!t.getFirstRange()?.isIntersecting(n)}function rN(e,t){return e.change(e=>{let n=e.createDocumentFragment(),r=t.getFirstRange();if(!r||r.isCollapsed)return n;let i=r.start.root,a=r.start.getCommonPath(r.end),o=i.getNodeByPath(a),s;s=r.start.parent==r.end.parent?r:e.createRange(e.createPositionAt(o,r.start.path[a.length]),e.createPositionAt(o,r.end.path[a.length]+1));let c=s.end.offset-s.start.offset;for(let t of s.getItems({shallow:!0}))t.is(`$textProxy`)?e.appendText(t.data,t.getAttributes(),n):e.append(e.cloneElement(t,!0),n);if(s!=r){let t=r._getTransformedByMove(s.start,e.createPositionAt(n,0),c)[0],i=e.createRange(e.createPositionAt(n,0),t.start);iN(e.createRange(t.end,e.createPositionAt(n,`end`)),e),iN(i,e)}return n})}function iN(e,t){let n=[];Array.from(e.getItems({direction:`backward`})).map(e=>t.createRangeOn(e)).filter(t=>(t.start.isAfter(e.start)||t.start.isEqual(e.start))&&(t.end.isBefore(e.end)||t.end.isEqual(e.end))).forEach(e=>{n.push(e.start.parent),t.remove(e)}),n.forEach(e=>{let n=e;for(;n.parent&&n.isEmpty;){let e=t.createRangeOn(n);n=n.parent,t.remove(e)}})}function aN(e,t,n){return e.change(r=>{let i=n||e.document.selection;i.isCollapsed||e.deleteContent(i,{doNotAutoparagraph:!0});let a=new oN(e,r,i.anchor),o=[],s;if(t.is(`documentFragment`)){if(t.markers.size){let e=[];for(let[n,r]of t.markers){let{start:t,end:i}=r,a=t.isEqual(i);e.push({position:t,name:n,isCollapsed:a},{position:i,name:n,isCollapsed:a})}e.sort(({position:e},{position:t})=>e.isBefore(t)?1:-1);for(let{position:n,name:i,isCollapsed:a}of e){let e=null,s=null,c=n.parent===t&&n.isAtStart,l=n.parent===t&&n.isAtEnd;!c&&!l?(e=r.createElement(`$marker`),r.insert(e,n)):a&&(s=c?`start`:`end`),o.push({name:i,element:e,collapsed:s})}}s=t.getChildren()}else s=[t];a.handleNodes(s);let c=a.getSelectionRange();if(t.is(`documentFragment`)&&o.length){let e=c?sk.fromRange(c):null,t={};for(let e=o.length-1;e>=0;e--){let{name:n,element:i,collapsed:s}=o[e],c=!t[n];if(c&&(t[n]=[]),i){let e=r.createPositionAt(i,`before`);t[n].push(e),r.remove(i)}else{let e=a.getAffectedRange();if(!e){s&&t[n].push(a.position);continue}s?t[n].push(e[s]):t[n].push(c?e.start:e.end)}}for(let[e,[n,i]]of Object.entries(t))n&&i&&n.root===i.root&&n.root.document&&!r.model.markers.has(e)&&r.addMarker(e,{usingOperation:!0,affectsData:!0,range:new X(n,i)});e&&(c=e.toRange(),e.detach())}c&&(i instanceof mk?r.setSelection(c):i.setTo(c));let l=a.getAffectedRange()||e.createRange(i.anchor);return a.destroy(),l})}var oN=class{model;writer;position;canMergeWith;schema;_documentFragment;_documentFragmentPosition;_firstNode=null;_lastNode=null;_lastAutoParagraph=null;_filterAttributesAndChildrenOf=[];_affectedStart=null;_affectedEnd=null;_nodeToSelect=null;constructor(e,t,n){this.model=e,this.writer=t,this.position=n,this.canMergeWith=new Set([this.position.parent]),this.schema=e.schema,this._documentFragment=t.createDocumentFragment(),this._documentFragmentPosition=t.createPositionAt(this._documentFragment,0)}handleNodes(e){for(let t of Array.from(e))t.offsetSize>0&&this._handleNode(t);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesAndChildrenOf,this.writer),this.model._config?.get(`experimentalFlags.modelInsertContentDeepSchemaVerification`)!==!1&&this._removeDisallowedChildren(this._filterAttributesAndChildrenOf),this._filterAttributesAndChildrenOf=[]}_removeDisallowedChildren(e){let t=Array.from(e);for(let e of t){if(!e.is(`element`))continue;let n=[],r=[],i=this.writer.createRangeIn(e).getWalker({ignoreElementEnd:!0});for(let{item:e}of i){let a=e.parent;this.schema.checkChild(a,e)||(e.is(`element`)&&!this.schema.isObject(e)?(r.push(e),t.push(a)):n.push(e),i.jumpTo(this.writer.createPositionAfter(e)))}for(let e of r)this.writer.unwrap(e);for(let e of n)this.writer.remove(e)}}_updateLastNodeFromAutoParagraph(e){let t=this.writer.createPositionAfter(this._lastNode),n=this.writer.createPositionAfter(e);if(n.isAfter(t)){if(this._lastNode=e,this.position.parent!=e||!this.position.isAtEnd)throw new K(`insertcontent-invalid-insertion-position`,this);this.position=n,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?X._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new X(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(e){if(!this._checkAndSplitToAllowedPosition(e)){this.schema.isObject(e)||this._handleDisallowedNode(e);return}e=this._appendToFragment(e),this._firstNode||=e,this._lastNode=e}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;let e=rM.fromPosition(this.position,`toNext`);this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=e.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=e.toPosition(),e.detach()}_handleDisallowedNode(e){e.is(`element`)&&this.handleNodes(e.getChildren())}_appendToFragment(e){if(!this.schema.checkChild(this.position,e))throw new K(`insertcontent-wrong-position`,this,{node:e,position:this.position});return this.writer.insert(e,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(e.offsetSize),e.parent||(e=this._documentFragmentPosition.nodeBefore),this.schema.isObject(e)&&!this.schema.checkChild(this.position,`$text`)?this._nodeToSelect=e:this._nodeToSelect=null,this._filterAttributesAndChildrenOf.push(e),e}_setAffectedBoundaries(e){this._affectedStart||=rM.fromPosition(e,`toPrevious`),(!this._affectedEnd||this._affectedEnd.isBefore(e))&&(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=rM.fromPosition(e,`toNext`))}_mergeOnLeft(){let e=this._firstNode;if(!(e instanceof xk)||!this._canMergeLeft(e))return;let t=rM._createBefore(e);t.stickiness=`toNext`;let n=rM.fromPosition(this.position,`toNext`);this._affectedStart.isEqual(t)&&(this._affectedStart.detach(),this._affectedStart=rM._createAt(t.nodeBefore,`end`,`toPrevious`)),this._firstNode===this._lastNode&&(this._firstNode=t.nodeBefore,this._lastNode=t.nodeBefore),this.writer.merge(t),t.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=rM._createAt(t.nodeBefore,`end`,`toNext`)),this.position=n.toPosition(),n.detach(),this._filterAttributesAndChildrenOf.push(this.position.parent),t.detach()}_mergeOnRight(){let e=this._lastNode;if(!(e instanceof xk)||!this._canMergeRight(e))return;let t=rM._createAfter(e);if(t.stickiness=`toNext`,!this.position.isEqual(t))throw new K(`insertcontent-invalid-insertion-position`,this);this.position=Y._createAt(t.nodeBefore,`end`);let n=rM.fromPosition(this.position,`toPrevious`);this._affectedEnd.isEqual(t)&&(this._affectedEnd.detach(),this._affectedEnd=rM._createAt(t.nodeBefore,`end`,`toNext`)),this._firstNode===this._lastNode&&(this._firstNode=t.nodeBefore,this._lastNode=t.nodeBefore),this.writer.merge(t),t.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=rM._createAt(t.nodeBefore,0,`toPrevious`)),this.position=n.toPosition(),n.detach(),this._filterAttributesAndChildrenOf.push(this.position.parent),t.detach()}_canMergeLeft(e){let t=e.previousSibling;return t instanceof xk&&this.canMergeWith.has(t)&&this.model.schema.checkMerge(t,e)}_canMergeRight(e){let t=e.nextSibling;return t instanceof xk&&this.canMergeWith.has(t)&&this.model.schema.checkMerge(e,t)}_insertAutoParagraph(){this._insertPartialFragment();let e=this.writer.createElement(`paragraph`);this.writer.insert(e,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=e,this.position=this.writer.createPositionAt(e,0)}_checkAndSplitToAllowedPosition(e){let t=this._getAllowedIn(this.position.parent,e);if(!t)return!1;for(t!=this.position.parent&&this._insertPartialFragment();t!=this.position.parent;)if(this.position.isAtStart){let e=this.position.parent;this.position=this.writer.createPositionBefore(e),e.isEmpty&&e.parent===t&&this.writer.remove(e)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{let e=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=e,this.canMergeWith.add(this.position.nodeAfter)}return this.schema.checkChild(this.position.parent,e)||this._insertAutoParagraph(),!0}_getAllowedIn(e,t){let n=this.schema.createContext(e);return this.schema.checkChild(n,t)||this.schema.checkChild(n,`paragraph`)&&this.schema.checkChild(n.push(`paragraph`),t)?e:this.schema.isLimit(e)?null:this._getAllowedIn(e.parent,t)}};function sN(e,t,n,r={}){if(!e.schema.isObject(t))throw new K(`insertobject-element-not-an-object`,e,{object:t});let i=n||e.document.selection,a=i;r.findOptimalPosition&&e.schema.isBlock(t)&&(a=e.createSelection(e.schema.findOptimalInsertionRange(i,r.findOptimalPosition)));let o=gT(i.getSelectedBlocks()),s={};return o&&Object.assign(s,e.schema.getAttributesWithProperty(o,`copyOnReplace`,!0)),e.change(n=>{a.isCollapsed||e.deleteContent(a,{doNotAutoparagraph:!0});let i=t,o=a.anchor.parent,c=e.schema.createContext(o);!e.schema.checkChild(c,t)&&e.schema.checkChild(c,`paragraph`)&&e.schema.checkChild(c.push(`paragraph`),t)&&(i=n.createElement(`paragraph`),n.insert(t,i)),e.schema.setAllowedAttributes(i,s,n);let l=e.insertContent(i,a);return l.isCollapsed||r.setSelection&&cN(n,t,r.setSelection,s),l})}function cN(e,t,n,r){let i=e.model;if(n==`on`){e.setSelection(t,`on`);return}if(n!=`after`)throw new K(`insertobject-invalid-place-parameter-value`,i);let a=t.nextSibling;if(i.schema.isInline(t)){e.setSelection(t,`after`);return}!(a&&i.schema.checkChild(a,`$text`))&&i.schema.checkChild(t.parent,`paragraph`)&&(a=e.createElement(`paragraph`),i.schema.setAllowedAttributes(a,r,e),i.insertContent(a,e.createPositionAfter(t))),a&&e.setSelection(a,0)}var lN=` ,.?!:;"-()`;function uN(e,t,n={}){let r=e.schema,i=n.direction!=`backward`,a=n.unit?n.unit:`character`,o=!!n.treatEmojiAsSingleUnit,s=t.focus,c=new AO({boundaries:mN(s,i),singleCharacters:!0,direction:i?`forward`:`backward`}),l={walker:c,schema:r,isForward:i,unit:a,treatEmojiAsSingleUnit:o},u;for(;u=c.next();){if(u.done)return;let n=dN(l,u.value);if(n){t instanceof mk?e.change(e=>{e.setSelectionFocus(n)}):t.setFocus(n);return}}}function dN(e,t){let{isForward:n,walker:r,unit:i,schema:a,treatEmojiAsSingleUnit:o}=e,{type:s,item:c,nextPosition:l}=t;if(s==`text`)return e.unit===`word`?pN(r,n):fN(r,i,o);if(s==(n?`elementStart`:`elementEnd`)){if(a.isSelectable(c))return Y._createAt(c,n?`after`:`before`);if(a.checkChild(l,`$text`))return l}else{if(a.isLimit(c)){r.skip(()=>!0);return}if(a.checkChild(l,`$text`))return l}}function fN(e,t,n){let r=e.position.textNode;if(r){let i=r.data,a=e.position.offset-r.startOffset;for(;PT(i,a)||t==`character`&&FT(i,a)||n&<(i,a);)e.next(),a=e.position.offset-r.startOffset}return e.position}function pN(e,t){let n=e.position.textNode;for(n||=t?e.position.nodeAfter:e.position.nodeBefore;n&&n.is(`$text`);){let r=e.position.offset-n.startOffset;if(gN(n,r,t))n=t?e.position.nodeAfter:e.position.nodeBefore;else if(hN(n.data,r,t))break;else e.next()}return e.position}function mN(e,t){let n=e.root,r=Y._createAt(n,t?`end`:0);return t?new X(e,r):new X(r,e)}function hN(e,t,n){let r=t+(n?0:-1);return lN.includes(e.charAt(r))}function gN(e,t,n){return t===(n?e.offsetSize:0)}var _N=AC(),vN=class extends _N{markers;document;schema;_config;_pendingChanges;_currentWriter;constructor(e){super(),this.markers=new bM,this.document=new gM(this),this.schema=new UA,this._config=e,this._pendingChanges=[],this._currentWriter=null,[`deleteContent`,`modifySelection`,`getSelectedContent`,`applyOperation`].forEach(e=>this.decorate(e)),this.on(`applyOperation`,(e,t)=>{t[0]._validate()},{priority:`highest`}),this.schema.register(`$root`,{isLimit:!0}),this.schema.register(`$inlineRoot`,{allowContentOf:`$block`,allowAttributesOf:`$root`,isLimit:!0}),this.schema.register(`$container`,{allowIn:[`$root`,`$container`]}),this.schema.register(`$block`,{allowIn:[`$root`,`$container`],isBlock:!0}),this.schema.register(`$blockObject`,{allowWhere:`$block`,isBlock:!0,isObject:!0}),this.schema.register(`$inlineObject`,{allowWhere:`$text`,allowAttributesOf:`$text`,isInline:!0,isObject:!0}),this.schema.register(`$text`,{allowIn:`$block`,isInline:!0,isContent:!0}),this.schema.register(`$clipboardHolder`,{allowContentOf:[`$root`,`$inlineRoot`],allowChildren:`$text`,isLimit:!0}),this.schema.register(`$documentFragment`,{allowContentOf:[`$root`,`$inlineRoot`],allowChildren:`$text`,isLimit:!0}),this.schema.register(`$marker`),this.schema.addChildCheck(()=>!0,`$marker`),jM(this),this.document.registerPostFixer(_A),this.on(`insertContent`,(e,[t,n])=>{e.return=aN(this,t,n)}),this.on(`insertObject`,(e,[t,n,r])=>{e.return=sN(this,t,n,r)}),this.on(`canEditAt`,e=>{let t=!this.document.isReadOnly;e.return=t,t||e.stop()})}change(e){try{return this._pendingChanges.length===0?(this._pendingChanges.push({batch:new oM,callback:e}),this._runPendingChanges()[0]):e(this._currentWriter)}catch(e){K.rethrowUnexpectedError(e,this)}}enqueueChange(e,t){try{e?typeof e==`function`?(t=e,e=new oM):e instanceof oM||(e=new oM(e)):e=new oM,this._pendingChanges.push({batch:e,callback:t}),this._pendingChanges.length==1&&this._runPendingChanges()}catch(e){K.rethrowUnexpectedError(e,this)}}applyOperation(e){e._execute()}insertContent(e,t,n,...r){let i=yN(t,n);return this.fire(`insertContent`,[e,i,n,...r])}insertObject(e,t,n,r,...i){let a=yN(t,n);return this.fire(`insertObject`,[e,a,r,r,...i])}deleteContent(e,t){BM(this,e,t)}modifySelection(e,t){uN(this,e,t)}getSelectedContent(e){return rN(this,e)}hasContent(e,t={}){let n;n=e.is(`selection`)?Array.from(e.getRanges()):e.is(`range`)?[e]:[X._createIn(e)];for(let e of n)if(this._rangeHasContent(e,t))return!0;return!1}_rangeHasContent(e,t){if(e.isCollapsed)return!1;let{ignoreWhitespaces:n=!1,ignoreMarkers:r=!1}=t;if(!r){for(let t of this.markers.getMarkersIntersectingRange(e))if(t.affectsData)return!0}for(let t of e.getItems())if(this.schema.isContent(t))if(t.is(`$textProxy`)){if(!n||t.data.search(/\S/)!==-1)return!0}else return!0;return!1}canEditAt(e){let t=yN(e);return this.fire(`canEditAt`,[t])}createPositionFromPath(e,t,n){return new Y(e,t,n)}createPositionAt(e,t){return Y._createAt(e,t)}createPositionAfter(e){return Y._createAfter(e)}createPositionBefore(e){return Y._createBefore(e)}createRange(e,t){return new X(e,t)}createRangeIn(e){return X._createIn(e)}createRangeOn(e){return X._createOn(e)}createSelection(...e){return new QO(...e)}createBatch(e){return new oM(e)}createOperationFromJSON(e){return Vj.fromJSON(e,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){let e=[];this.fire(`_beforeChanges`);try{for(;this._pendingChanges.length;){let t=this._pendingChanges[0].batch;this._currentWriter=new TM(this,t);let n=this._pendingChanges[0].callback(this._currentWriter);e.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire(`_afterChanges`)}return e}};function yN(e,t){if(e)return e instanceof QO||e instanceof mk?e:e instanceof XO?t||t===0?new QO(e,t):e.is(`rootElement`)?new QO(e,`in`):new QO(e,`on`):new QO(e)}var bN=class extends dO{domEventType=`click`;onDomEvent(e){this.fire(e.type,e)}},xN=class extends dO{domEventType=[`mousedown`,`mouseup`,`mouseover`,`mouseout`];onDomEvent(e){this.fire(e.type,e)}},SN=class extends dO{domEventType=[`touchstart`,`touchend`,`touchmove`];onDomEvent(e){this.fire(e.type,e)}},CN=class extends dO{domEventType=[`pointerdown`,`pointerup`,`pointermove`];onDomEvent(e){this.fire(e.type,e)}},wN=class{crashes=[];state=`initializing`;_crashNumberLimit;_now=Date.now;_minimumNonErrorTimePeriod;_boundErrorHandler;_listeners;constructor(e){if(this.crashes=[],this._crashNumberLimit=typeof e.crashNumberLimit==`number`?e.crashNumberLimit:3,this._minimumNonErrorTimePeriod=typeof e.minimumNonErrorTimePeriod==`number`?e.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=e=>{let t=`error`in e?e.error:e.reason;t instanceof Error&&this._handleError(t,e)},this._listeners={},!this._restart)throw Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)}off(e,t){this._listeners[e]=this._listeners[e].filter(e=>e!==t)}_fire(e,...t){let n=this._listeners[e]||[];for(let e of n)e.apply(this,[null,...t])}_startErrorHandling(){window.addEventListener(`error`,this._boundErrorHandler),window.addEventListener(`unhandledrejection`,this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener(`error`,this._boundErrorHandler),window.removeEventListener(`unhandledrejection`,this._boundErrorHandler)}_handleError(e,t){if(this._shouldReactToError(e)){this.crashes.push({message:e.message,stack:e.stack,filename:t instanceof ErrorEvent?t.filename:void 0,lineno:t instanceof ErrorEvent?t.lineno:void 0,colno:t instanceof ErrorEvent?t.colno:void 0,date:this._now()});let n=this._shouldRestart();this.state=`crashed`,this._fire(`stateChange`),this._fire(`error`,{error:e,causesRestart:n}),n?this._restart():(this.state=`crashedPermanently`,this._fire(`stateChange`))}}_shouldReactToError(e){return e.is&&e.is(`CKEditorError`)&&e.context!==void 0&&e.context!==null&&this.state===`ready`&&this._isErrorComingFromThisItem(e)}_shouldRestart(){return this.crashes.length<=this._crashNumberLimit||(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}};function TN(e,t=new Set){let n=[e],r=new Set,i=0;for(;n.length>i;){let e=n[i++];if(!(r.has(e)||!EN(e)||t.has(e)))if(r.add(e),Symbol.iterator in e)try{for(let t of e)n.push(t)}catch{}else for(let t in e)t!==`defaultValue`&&n.push(e[t])}return r}function EN(e){let t=Object.prototype.toString.call(e),n=typeof e;return!(n===`number`||n===`boolean`||n===`string`||n===`symbol`||n===`function`||t===`[object Date]`||t===`[object RegExp]`||t===`[object Module]`||e==null||e._watchdogExcluded||e instanceof EventTarget||e instanceof Event)}function DN(e,t,n=new Set){if(e===t&&ON(e))return!0;let r=TN(e,n),i=TN(t,n);for(let e of r)if(i.has(e))return!0;return!1}function ON(e){return typeof e==`object`&&!!e}function kN(e,t,n){let r=t.root,i=t.roots||Object.create(null);n&&!i[n]&&(i[n]=r||Object.create(null));let a=AN(e),o=jN(t,a,n),s=Array.from(new Set([...a?Object.keys(e):[],...Object.keys(i),...Object.keys(o)]));for(let e of s){let n=i[e]||Object.create(null);n.initialData=``,n.placeholder??=MN(t,`placeholder`,e),n.label??=MN(t,`label`,e),i[e]=n}t.roots=i}function AN(e){return!!e&&typeof e==`object`&&!Array.isArray(e)&&!NN(e)}function jN(e,t,n){return t||!n?e.initialData||Object.create(null):{[n]:e.initialData}}function MN(e,t,n){let r=e[t];if(r)return typeof r==`string`?r:r[n]}function NN(e){return wS(e)}var PN=class extends wN{_editor=null;_lifecyclePromise=null;_throttledSave;_data;_lastDocumentVersion;_elementOrData;_editorAttachTo=null;_isSingleRootEditor=!0;_isUsingConfigBasedCreator=!1;_editables={};_config;_excludedProps;constructor(e,t={}){super(t),this._throttledSave=qx(this._save.bind(this),typeof t.saveInterval==`number`?t.saveInterval:5e3),e&&(this._creator=((t,n)=>n===void 0?e.create(t):e.create(t,n))),this._destructor=e=>e.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(e){this._creator=e}setDestructor(e){this._destructor=e}_restart(){return Promise.resolve().then(()=>(this.state=`initializing`,this._fire(`stateChange`),this._destroy())).catch(e=>{console.error(`An error happened during the editor destroying.`,e)}).then(()=>{this._isUsingConfigBasedCreator?kN(this._isSingleRootEditor?``:{},this._config,this._isSingleRootEditor?`main`:!1):kN(this._isSingleRootEditor?this._editorAttachTo||``:this._editables,this._config,this._isSingleRootEditor?`main`:!1);let e={...this._config,extraPlugins:this._config.extraPlugins||[],_watchdogInitialData:this._data};e.extraPlugins.push(FN);let t={};for(let[n,r]of Object.entries(this._data.roots)){let i=e.roots[n]||Object.create(null);i.initialData=``,i.modelElement=r.modelElement,this._isUsingConfigBasedCreator&&(this._editables[n]?.isConnected?i.element=this._editables[n]:r.isLoaded&&!i.element&&Object.assign(i,LN(r.attributes))),r.isLoaded?i.lazyLoad=!1:delete i.modelAttributes,t[n]=i}if(e.roots=t,delete e.initialData,delete e.root,this._isUsingConfigBasedCreator)return this.create(e,e.context);let n=this._isSingleRootEditor?this._editorAttachTo||``:this._editables;return this.create(n,e,e.context)}).then(()=>{this._fire(`restart`)})}create(e=this._isUsingConfigBasedCreator?this._config:this._elementOrData,t=this._isUsingConfigBasedCreator?void 0:this._config,n){let r=this._detectConfigBasedCreator(e,t),i=r?void 0:e,a=r?e:t,o=r?t:n;return this._lifecyclePromise=Promise.resolve(this._lifecyclePromise).then(()=>{if(super._startErrorHandling(),this._isUsingConfigBasedCreator=r,this._elementOrData=i,this._config=this._cloneEditorConfiguration(a||{}),this._config.context=o,r){this._editorAttachTo=null;let e=this._config.roots?Object.keys(this._config.roots).length:0,t=this._config.initialData,n=t&&typeof t==`object`;this._isSingleRootEditor=!n&&e<=1}else this._editorAttachTo=IN(i)?i:null,this._isSingleRootEditor=IN(i)||typeof i==`string`;return r?this._creator(this._config):this._creator(i,this._config)}).then(e=>{this._editor=e,e.model.document.on(`change:data`,this._throttledSave),this._lastDocumentVersion=e.model.document.version,this._data=this._getData(),this._editorAttachTo||(this._editables=this._getEditables()),this.state=`ready`,this._fire(`stateChange`)}).finally(()=>{this._lifecyclePromise=null}),this._lifecyclePromise}destroy(){return this._lifecyclePromise=Promise.resolve(this._lifecyclePromise).then(()=>(this.state=`destroyed`,this._fire(`stateChange`),super.destroy(),this._destroy())).finally(()=>{this._lifecyclePromise=null}),this._lifecyclePromise}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling(),this._throttledSave.cancel();let e=this._editor;return this._editor=null,e.model.document.off(`change:data`,this._throttledSave),this._destructor(e)})}_save(){let e=this._editor.model.document.version;try{this._data=this._getData(),this._editorAttachTo||(this._editables=this._getEditables()),this._lastDocumentVersion=e}catch(e){console.error(e,`An error happened during restoring editor data. Editor will be restored from the previously saved data.`)}}_setExcludedProperties(e){this._excludedProps=e}_getData(){let e=this._editor,t=e.model.document.roots.filter(e=>e.isAttached()&&e.rootName!=`$graveyard`),{plugins:n}=e,r=n.has(`CommentsRepository`)&&n.get(`CommentsRepository`),i=n.has(`TrackChanges`)&&n.get(`TrackChanges`),a={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};t.forEach(e=>{a.roots[e.rootName]={content:JSON.stringify(Array.from(e.getChildren())),attributes:JSON.stringify(Array.from(e.getAttributes())),modelElement:e.name,isLoaded:e._isLoaded}});for(let t of e.model.markers)t._affectsData&&(a.markers[t.name]={rangeJSON:t.getRange().toJSON(),usingOperation:t._managedUsingOperations,affectsData:t._affectsData});return r&&(a.commentThreads=JSON.stringify(r.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),i&&(a.suggestions=JSON.stringify(i.getSuggestions({toJSON:!0,skipNotAttached:!0}))),a}_getEditables(){let e={};for(let t of this.editor.model.document.getRootNames()){let n=this.editor.ui.getEditableElement(t);n&&(e[t]=n)}return e}_isErrorComingFromThisItem(e){return DN(this._editor,e.context,this._excludedProps)}_detectConfigBasedCreator(e,t){if(typeof e==`string`||IN(e)||t&&typeof t==`object`&&!(`destroy`in t)&&Object.keys(t).length>0)return!1;if(e&&typeof e==`object`){let t=Object.values(e);if(t.length>0&&t.every(e=>typeof e==`string`||IN(e)))return!1}return!0}_cloneEditorConfiguration(e){return Cx(e,(e,t)=>{if(IN(e)||t===`context`)return e})}},FN=class{editor;_data;constructor(e){this.editor=e,this._data=e.config.get(`_watchdogInitialData`)}init(){this.editor.data.on(`init`,e=>{e.stop(),this.editor.model.enqueueChange({isUndoable:!1},e=>{this._restoreCollaborationData(),this._restoreEditorData(e)}),this.editor.data.fire(`ready`)},{priority:999})}_createNode(e,t){if(`name`in t){let n=e.createElement(t.name,t.attributes);if(t.children)for(let r of t.children)n._appendChild(this._createNode(e,r));return n}else return e.createText(t.data,t.attributes)}_restoreEditorData(e){let t=this.editor;Object.entries(this._data.roots).forEach(([n,{content:r,attributes:i}])=>{let a=JSON.parse(r),o=JSON.parse(i),s=t.model.document.getRoot(n);for(let[t,n]of o)e.setAttribute(t,n,s);for(let t of a){let n=this._createNode(e,t);e.insert(n,s,`end`)}}),Object.entries(this._data.markers).forEach(([n,r])=>{let{document:i}=t.model,{rangeJSON:{start:a,end:o},...s}=r,c=i.getRoot(a.root),l=e.createPositionFromPath(c,a.path,a.stickiness),u=e.createPositionFromPath(c,o.path,o.stickiness),d=e.createRange(l,u);e.addMarker(n,{range:d,...s})})}_restoreCollaborationData(){let e=JSON.parse(this._data.commentThreads),t=JSON.parse(this._data.suggestions);if(this.editor.plugins.has(`CommentsRepository`)){let t=this.editor.plugins.get(`CommentsRepository`);for(let e of t.getCommentThreads())t._removeCommentThread({threadId:e.id});e.forEach(e=>{let t=this.editor.config.get(`collaboration.channelId`);this.editor.plugins.get(`CommentsRepository`).addCommentThread({channelId:t,...e})})}if(this.editor.plugins.has(`TrackChangesEditing`)){let e=this.editor.plugins.get(`TrackChangesEditing`);for(let t of e.getSuggestions())e._removeSuggestion(t);t.forEach(t=>{e.addSuggestionData(t)})}}};function IN(e){return wS(e)}function LN(e){let{$rootEditableOptions:t}=Object.fromEntries(JSON.parse(e));return!t||typeof t!=`object`?{}:{...t.placeholder&&{placeholder:t.placeholder},...t.label&&{label:t.label},...t.element&&{element:t.element}}}var RN=Symbol(`MainQueueId`),zN=class extends wN{_watchdogs=new Map;_watchdogConfig;_context=null;_contextProps=new Set;_actionQueues=new BN;_contextConfig;_item;constructor(e,t={}){super(t),this._watchdogConfig=t,this._creator=t=>e.create(t),this._destructor=e=>e.destroy(),this._actionQueues.onEmpty(()=>{this.state===`initializing`&&(this.state=`ready`,this._fire(`stateChange`))})}setCreator(e){this._creator=e}setDestructor(e){this._destructor=e}get context(){return this._context}create(e={}){return this._actionQueues.enqueue(RN,()=>(this._contextConfig=e,this._create()))}getItem(e){return this._getWatchdog(e)._item}getItemState(e){return this._getWatchdog(e).state}add(e){let t=VN(e);return Promise.all(t.map(e=>this._actionQueues.enqueue(e.id,()=>{if(this.state===`destroyed`)throw Error(`Cannot add items to destroyed watchdog.`);if(!this._context)throw Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");let t;if(this._watchdogs.has(e.id))throw Error(`Item with the given id is already added: '${e.id}'.`);if(e.type===`editor`)return t=new PN(null,this._watchdogConfig),t.setCreator(e.creator),t._setExcludedProperties(this._contextProps),e.destructor&&t.setDestructor(e.destructor),this._watchdogs.set(e.id,t),t.on(`error`,(n,{error:r,causesRestart:i})=>{this._fire(`itemError`,{itemId:e.id,error:r}),i&&this._actionQueues.enqueue(e.id,()=>new Promise(n=>{let r=()=>{t.off(`restart`,r),this._fire(`itemRestart`,{itemId:e.id}),n()};t.on(`restart`,r)}))}),e.sourceElementOrData===void 0?t.create(e.config,this._context):t.create(e.sourceElementOrData,e.config,this._context);throw Error(`Not supported item type: '${e.type}'.`)})))}remove(e){let t=VN(e);return Promise.all(t.map(e=>this._actionQueues.enqueue(e,()=>{let t=this._getWatchdog(e);return this._watchdogs.delete(e),t.destroy()})))}destroy(){return this._actionQueues.enqueue(RN,()=>(this.state=`destroyed`,this._fire(`stateChange`),super.destroy(),this._destroy()))}_restart(){return this._actionQueues.enqueue(RN,()=>(this.state=`initializing`,this._fire(`stateChange`),this._destroy().catch(e=>{console.error(`An error happened during destroying the context or items.`,e)}).then(()=>this._create()).then(()=>this._fire(`restart`))))}_create(){return Promise.resolve().then(()=>(this._startErrorHandling(),this._creator(this._contextConfig))).then(e=>(this._context=e,this._contextProps=TN(this._context),Promise.all(Array.from(this._watchdogs.values()).map(e=>(e._setExcludedProperties(this._contextProps),e._isUsingConfigBasedCreator?e.create(void 0,this._context):e.create(void 0,void 0,this._context))))))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling();let e=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map(e=>e.destroy())).then(()=>this._destructor(e))})}_getWatchdog(e){let t=this._watchdogs.get(e);if(!t)throw Error(`Item with the given id was not registered: ${e}.`);return t}_isErrorComingFromThisItem(e){for(let t of this._watchdogs.values())if(t._isErrorComingFromThisItem(e))return!1;return DN(this._context,e.context)}},BN=class{_onEmptyCallbacks=[];_queues=new Map;_activeActions=0;onEmpty(e){this._onEmptyCallbacks.push(e)}enqueue(e,t){let n=e===RN;this._activeActions++,this._queues.get(e)||this._queues.set(e,Promise.resolve());let r=(n?Promise.all(this._queues.values()):Promise.all([this._queues.get(RN),this._queues.get(e)])).then(t),i=r.catch(()=>{});return this._queues.set(e,i),r.finally(()=>{this._activeActions--,this._queues.get(e)===i&&this._activeActions===0&&this._onEmptyCallbacks.forEach(e=>e())})}};function VN(e){return Array.isArray(e)?e:[e]}var HN=AC(),Z=class extends HN{editor;_disableStack=new Set;constructor(e){super(),this.editor=e,this.set(`isEnabled`,!0)}forceDisabled(e){this._disableStack.add(e),this._disableStack.size==1&&(this.on(`set:isEnabled`,UN,{priority:`highest`}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),this._disableStack.size==0&&(this.off(`set:isEnabled`,UN),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}static get isOfficialPlugin(){return!1}static get isPremiumPlugin(){return!1}};function UN(e){e.return=!1,e.stop()}var WN=AC(),GN=class extends WN{editor;_isEnabledBasedOnSelection;_affectsData;_disableStack;static get _throwErrorWhenUsedAsAPlugin(){return!0}constructor(e){super(),this.editor=e,this.set(`value`,void 0),this.set(`isEnabled`,!1),this._affectsData=!0,this._isEnabledBasedOnSelection=!0,this._disableStack=new Set,this.decorate(`execute`),this.listenTo(this.editor.model.document,`change`,()=>{this.refresh()}),this.listenTo(e,`change:isReadOnly`,()=>{this.refresh()}),this.on(`set:isEnabled`,t=>{if(!this.affectsData)return;let n=e.model.document.selection,r=n.getFirstPosition().root.rootName!=`$graveyard`&&e.model.canEditAt(n);(e.isReadOnly||this._isEnabledBasedOnSelection&&!r)&&(t.return=!1,t.stop())},{priority:`highest`}),this.on(`execute`,e=>{this.isEnabled||e.stop()},{priority:`high`})}get affectsData(){return this._affectsData}set affectsData(e){this._affectsData=e}refresh(){this.isEnabled=!0}forceDisabled(e){this._disableStack.add(e),this._disableStack.size==1&&(this.on(`set:isEnabled`,KN,{priority:`highest`}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),this._disableStack.size==0&&(this.off(`set:isEnabled`,KN),this.refresh())}execute(...e){}destroy(){this.stopListening()}};function KN(e){e.return=!1,e.stop()}var qN=class{_commands;constructor(){this._commands=new Map}add(e,t){this._commands.set(e,t)}get(e){return this._commands.get(e)}execute(e,...t){let n=this.get(e);if(!n)throw new K(`commandcollection-command-not-found`,this,{commandName:e});return n.execute(...t)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(let e of this.commands())e.destroy()}},JN=fC(),YN=class extends JN{_context;_plugins=new Map;_availablePlugins;_contextPlugins;constructor(e,t=[],n=[]){super(),this._context=e,this._availablePlugins=new Map;for(let e of t)e.pluginName&&this._availablePlugins.set(e.pluginName,e);this._contextPlugins=new Map;for(let[e,t]of n)this._contextPlugins.set(e,t),this._contextPlugins.set(t,e),e.pluginName&&this._availablePlugins.set(e.pluginName,e)}*[Symbol.iterator](){for(let e of this._plugins)typeof e[0]==`function`&&(yield e)}get(e){let t=this._plugins.get(e);if(!t){let t=e;throw typeof e==`function`&&(t=e.pluginName||e.name),new K(`plugincollection-plugin-not-loaded`,this._context,{plugin:t})}return t}has(e){return this._plugins.has(e)}async init(e,t=[],n=[]){let r=this,i=this._context;d(e),p(e);let a=[...f(e.filter(e=>!l(e,t)))];b(a,n);let o=v(a);return await y(o,`init`),await y(o,`afterInit`),o;function s(e){return typeof e==`function`}function c(e){return s(e)&&!!e.isContextPlugin}function l(e,t){return t.some(t=>t===e||u(e)===t||u(t)===e)}function u(e){return s(e)?e.pluginName||e.name:e}function d(e,t=new Set){e.forEach(e=>{s(e)&&(t.has(e)||(t.add(e),e.pluginName&&!r._availablePlugins.has(e.pluginName)&&r._availablePlugins.set(e.pluginName,e),e.requires&&d(e.requires,t)))})}function f(e,t=new Set){return e.map(e=>s(e)?e:r._availablePlugins.get(e)).reduce((e,n)=>t.has(n)?e:(t.add(n),n.requires&&(p(n.requires,n),f(n.requires,t).forEach(t=>e.add(t))),e.add(n)),new Set)}function p(e,t=null){e.map(e=>s(e)?e:r._availablePlugins.get(e)||e).forEach(e=>{m(e),h(e,t),g(e,t),_(e,t)})}function m(e){if(typeof e==`function`&&e._throwErrorWhenUsedAsAPlugin)throw new K(`plugincollection-plugin-invalid-constructor`,i,{name:e.name})}function h(e,t){if(!s(e))throw t?new K(`plugincollection-soft-required`,i,{missingPlugin:e,requiredBy:u(t)}):new K(`plugincollection-plugin-not-found`,i,{plugin:e})}function g(e,t){if(c(t)&&!c(e))throw new K(`plugincollection-context-required`,i,{plugin:u(e),requiredBy:u(t)})}function _(e,n){if(n&&l(e,t))throw new K(`plugincollection-required`,i,{plugin:u(e),requiredBy:u(n)})}function v(e){return e.map(e=>{let t=r._contextPlugins.get(e);return t||=new e(i),r._add(e,t),t})}function y(e,t){return e.reduce((e,n)=>!n[t]||r._contextPlugins.has(n)?e:e.then(n[t].bind(n)),Promise.resolve())}function b(e,t){for(let n of t){if(typeof n!=`function`)throw new K(`plugincollection-replace-plugin-invalid-type`,null,{pluginItem:n});let t=n.pluginName;if(!t)throw new K(`plugincollection-replace-plugin-missing-name`,null,{pluginItem:n});if(n.requires&&n.requires.length)throw new K(`plugincollection-plugin-for-replacing-cannot-have-dependencies`,null,{pluginName:t});let i=r._availablePlugins.get(t);if(!i)throw new K(`plugincollection-plugin-for-replacing-not-exist`,null,{pluginName:t});let a=e.indexOf(i);if(a===-1){if(r._contextPlugins.has(i))return;throw new K(`plugincollection-plugin-for-replacing-not-loaded`,null,{pluginName:t})}if(i.requires&&i.requires.length)throw new K(`plugincollection-replaced-plugin-cannot-have-dependencies`,null,{pluginName:t});e.splice(a,1,n),r._availablePlugins.set(t,n)}}}destroy(){let e=[];for(let[,t]of this)typeof t.destroy==`function`&&!this._contextPlugins.has(t)&&e.push(t.destroy());return Promise.all(e)}_add(e,t){this._plugins.set(e,t);let n=e.pluginName;if(n){if(this._plugins.has(n))throw new K(`plugincollection-plugin-name-conflict`,null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:e});this._plugins.set(n,t)}}},XN=class{config;plugins;locale;t;editors;static defaultConfig;static builtinPlugins;_contextOwner=null;constructor(e){let{translations:t,...n}=e||{};this.config=new KC(n,this.constructor.defaultConfig);let r=this.constructor.builtinPlugins;this.config.define(`plugins`,r),this.plugins=new YN(this,r);let i=this.config.get(`language`)||{};this.locale=new fT({uiLanguage:typeof i==`string`?i:i.ui,contentLanguage:this.config.get(`language.content`),translations:t}),this.t=this.locale.t,this.editors=new hT}initPlugins(){let e=this.config.get(`plugins`)||[],t=this.config.get(`substitutePlugins`)||[];for(let n of e.concat(t)){if(typeof n!=`function`)throw new K(`context-initplugins-constructor-only`,null,{Plugin:n});if(n.isContextPlugin!==!0)throw new K(`context-initplugins-invalid-plugin`,null,{Plugin:n})}return this.plugins.init(e,[],t)}destroy(){return Promise.all(Array.from(this.editors,e=>e.destroy())).then(()=>this.plugins.destroy())}_addEditor(e,t){if(this._contextOwner)throw new K(`context-addeditor-private-context`);this.editors.add(e),t&&(this._contextOwner=e)}_removeEditor(e){return this.editors.has(e)&&this.editors.remove(e),this._contextOwner===e?this.destroy():Promise.resolve()}_getEditorConfig(){let e={};for(let t of this.config.names())[`plugins`,`removePlugins`,`extraPlugins`].includes(t)||(e[t]=this.config.get(t));return e}static create(e){return new Promise(t=>{let n=new this(e);t(n.initPlugins().then(()=>n))})}static get _throwErrorWhenUsedAsAPlugin(){return!0}},ZN=class extends CT{editor;constructor(e){super(),this.editor=e}set(e,t,n={}){if(typeof t==`string`){let e=t;t=(t,n)=>{this.editor.execute(e),n()}}super.set(e,t,n)}},QN=`contentEditing`,$N=`common`,eP=class{keystrokeInfos=new Map;_editor;constructor(e){this._editor=e;let t=e.config.get(`menuBar.isVisible`),n=e.locale.t;this.addKeystrokeInfoCategory({id:QN,label:n(`Content editing keystrokes`),description:n(`These keyboard shortcuts allow for quick access to content editing features.`)});let r=[{label:n(`Close contextual balloons, dropdowns, and dialogs`),keystroke:`Esc`},{label:n(`Open the accessibility help dialog`),keystroke:`Alt+0`},{label:n(`Move focus between form fields (inputs, buttons, etc.)`),keystroke:[[`Tab`],[`Shift+Tab`]]},{label:n(`Move focus to the toolbar, navigate between toolbars`),keystroke:`Alt+F10`,mayRequireFn:!0},{label:n(`Navigate through the toolbar or menu bar`),keystroke:[[`arrowup`],[`arrowright`],[`arrowdown`],[`arrowleft`]]},{label:n(`Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content.`),keystroke:[[`Enter`],[`Space`]]}];t&&r.push({label:n(`Move focus to the menu bar, navigate between menu bars`),keystroke:`Alt+F9`,mayRequireFn:!0}),this.addKeystrokeInfoCategory({id:`navigation`,label:n(`User interface and content navigation keystrokes`),description:n(`Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface.`),groups:[{id:`common`,keystrokes:r}]})}addKeystrokeInfoCategory({id:e,label:t,description:n,groups:r}){this.keystrokeInfos.set(e,{id:e,label:t,description:n,groups:new Map}),this.addKeystrokeInfoGroup({categoryId:e,id:$N}),r&&r.forEach(t=>{this.addKeystrokeInfoGroup({categoryId:e,...t})})}addKeystrokeInfoGroup({categoryId:e=QN,id:t,label:n,keystrokes:r}){let i=this.keystrokeInfos.get(e);if(!i)throw new K(`accessibility-unknown-keystroke-info-category`,this._editor,{groupId:t,categoryId:e});i.groups.set(t,{id:t,label:n,keystrokes:r||[]})}addKeystrokeInfos({categoryId:e=QN,groupId:t=$N,keystrokes:n}){if(!this.keystrokeInfos.has(e))throw new K(`accessibility-unknown-keystroke-info-category`,this._editor,{categoryId:e,keystrokes:n});let r=this.keystrokeInfos.get(e);if(!r.groups.has(t))throw new K(`accessibility-unknown-keystroke-info-group`,this._editor,{groupId:t,categoryId:e,keystrokes:n});r.groups.get(t).keystrokes.push(...n)}};function tP(e){return{sessionId:sP(),pageSessionId:cP(),hostname:window.location.hostname,version:globalThis.CKEDITOR_VERSION,type:nP(e),plugins:rP(e.plugins),distribution:aP(),env:oP(),integration:Object.create(null),menuBar:{isVisible:!!e.config.get(`menuBar.isVisible`)},language:{ui:e.locale.uiLanguage,content:e.locale.contentLanguage},toolbar:{main:iP(e.config.get(`toolbar`)),block:iP(e.config.get(`blockToolbar`)),balloon:iP(e.config.get(`balloonToolbar`))}}}function nP(e){return Object.getPrototypeOf(e).constructor.editorName}function rP(e){return Array.from(e).filter(([e])=>!!e.pluginName).map(([e])=>{let{pluginName:t,isContextPlugin:n,isOfficialPlugin:r,isPremiumPlugin:i}=e;return{isContext:!!n,isOfficial:!!r,isPremium:!!i,name:t}})}function iP(e){if(!e)return;let t=Array.isArray(e)?{items:e}:e,n=i(t.items||[]);return{isMultiline:n.includes(`-`),shouldNotGroupWhenFull:!!t.shouldNotGroupWhenFull,items:r(n)};function r(e){return e.filter(e=>e!==`|`&&e!==`-`)}function i(e){return e.flatMap(e=>typeof e==`string`?[e]:i(e.items))}}function aP(){return{channel:window[Symbol.for(`cke distribution`)]||`sh`}}function oP(){let e=`unknown`,t=`unknown`;return G.isMac?e=`mac`:G.isWindows?e=`windows`:G.isiOS?e=`ios`:G.isAndroid&&(e=`android`),G.isGecko?t=`gecko`:G.isBlink?t=`blink`:G.isSafari&&(t=`safari`),{os:e,browser:t}}function sP(){return localStorage.getItem(`__ckeditor-session-id`)||localStorage.setItem(`__ckeditor-session-id`,ZS()),localStorage.getItem(`__ckeditor-session-id`)}function cP(){return W.window.CKEDITOR_PAGE_SESSION_ID=W.window.CKEDITOR_PAGE_SESSION_ID||ZS(),W.window.CKEDITOR_PAGE_SESSION_ID}var lP=AC(),uP=class extends lP{static get editorName(){return`Editor`}accessibility;commands;config;conversion;data;editing;locale;model;plugins;keystrokes;t;static defaultConfig;static builtinPlugins;_context;_readOnlyLocks;_registeredRootsAttributesKeys=new Set;static get _throwErrorWhenUsedAsAPlugin(){return!0}constructor(e={}){if(super(),typeof e!=`object`||Array.isArray(e))throw new K(`editor-config-invalid-type`);if(`sanitizeHtml`in e)throw new K(`editor-config-sanitizehtml-not-supported`);let t=this.constructor,{translations:n,...r}=t.defaultConfig||{},{translations:i=n,...a}=e,o=e.language||r.language;this._context=e.context||new XN({language:o,translations:i}),this._context._addEditor(this,!e.context);let s=Array.from(t.builtinPlugins||[]);this.config=new KC(a,r),this.config.define(`plugins`,s),this.config.define(this._context._getEditorConfig()),l(this.config),this.plugins=new YN(this,s,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new qN,this.set(`state`,`initializing`),this.once(`ready`,()=>this.state=`ready`,{priority:`high`}),this.once(`destroy`,()=>this.state=`destroyed`,{priority:`high`}),this.model=new vN(this.config),this.on(`change:isReadOnly`,()=>{this.model.document.isReadOnly=this.isReadOnly});let c=new gE;this.data=new gj(this.model,c),this.editing=new VA(this.model,c),this.editing.view.document.bind(`isReadOnly`).to(this),this.conversion=new vj([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias(`dataDowncast`,this.data.downcastDispatcher),this.conversion.addAlias(`editingDowncast`,this.editing.downcastDispatcher),this.keystrokes=new ZN(this),this.keystrokes.listenTo(this.editing.view.document),this.accessibility=new eP(this),u(this);function l(e){let t=e.get(`licenseKey`);if(!t&&window.CKEDITOR_GLOBAL_LICENSE_KEY&&(t=window.CKEDITOR_GLOBAL_LICENSE_KEY,e.set(`licenseKey`,t)),!t)throw new K(`license-key-missing`)}function u(e){let t=e.config.get(`licenseKey`),n=window[Symbol.for(`cke distribution`)]||`sh`;function r(t,n){e.enableReadOnlyMode(Symbol(`invalidLicense`)),e._showLicenseError(t,n)}function i(e){return[`exp`,`jti`,`vc`].every(t=>t in e)}function a(e){return Object.getOwnPropertyNames(e).sort().filter(t=>t!=`vc`&&e[t]!=null).map(t=>e[t])}function o(e){let{hostname:t}=new URL(window.location.href);if(e.includes(t))return!0;let n=t.split(`.`);return e.filter(e=>e.includes(`*`)).map(e=>e.split(`.`)).filter(e=>e.length<=n.length).map(e=>Array(n.length-e.length).fill(e[0]===`*`?`*`:``).concat(e)).some(e=>n.every((t,n)=>e[n]===t||e[n]===`*`))}function s(e){let t=e[0].toUpperCase()+e.slice(1),n=e===`evaluation`?`an`:`a`;console.info(`%cCKEditor 5 ${t} License`,`color: #ffffff; background: #743CCD; font-size: 14px; padding: 4px 8px; border-radius: 4px;`),console.warn(`⚠️ You are using ${n} ${e} license of CKEditor 5${e===`trial`?` which is for evaluation purposes only`:``}. For production usage, please obtain a production license at https://portal.ckeditor.com/`)}if(t==`GPL`){n==`cloud`&&r(`distributionChannel`);return}let c=zT(t);if(!c){r(`invalid`);return}if(!i(c)){r(`invalid`);return}if(c.distributionChannel&&!sT(c.distributionChannel).includes(n)){r(`distributionChannel`);return}if(AT(a(c))!=c.vc.toLowerCase()){r(`invalid`);return}if(new Date(c.exp*1e3)0&&!o(l)){r(`domainLimit`);return}if([`evaluation`,`trial`].includes(c.licenseType)&&c.exp*1e3{r(`evaluationLimit`)},6e5);e.on(`destroy`,()=>{clearTimeout(t)})}c.usageEndpoint&&e.once(`ready`,()=>{let n={requestId:ZS(),requestTime:Math.round(Date.now()/1e3),license:t,editor:dP(e)};e._sendUsageRequest(c.usageEndpoint,n).then(e=>{let{status:t,message:n}=e;n&&console.warn(n),t!=`ok`&&r(`usageLimit`)},()=>{nC(`license-key-validation-endpoint-not-reachable`,{url:c.usageEndpoint})})},{priority:`high`})}}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(e){throw new K(`editor-isreadonly-has-no-setter`)}enableReadOnlyMode(e){if(typeof e!=`string`&&typeof e!=`symbol`)throw new K(`editor-read-only-lock-id-invalid`,null,{lockId:e});this._readOnlyLocks.has(e)||(this._readOnlyLocks.add(e),this._readOnlyLocks.size===1&&this.fire(`change:isReadOnly`,`isReadOnly`,!0,!1))}disableReadOnlyMode(e){if(typeof e!=`string`&&typeof e!=`symbol`)throw new K(`editor-read-only-lock-id-invalid`,null,{lockId:e});this._readOnlyLocks.has(e)&&(this._readOnlyLocks.delete(e),this._readOnlyLocks.size===0&&this.fire(`change:isReadOnly`,`isReadOnly`,!1,!0))}setData(e){this.data.set(e)}getData(e){return this.data.get(e)}async initPlugins(){let e=this.config,t=e.get(`plugins`),n=e.get(`removePlugins`)||[],r=e.get(`extraPlugins`)||[],i=e.get(`substitutePlugins`)||[],a=await this.plugins.init(t.concat(r),n,i);return o(this),a;function o(e){let t=e.config.get(`licenseKey`);if(t===`GPL`)return;let n=zT(t);if(!n)return;let r=[...e.plugins].map(([e])=>e).find(e=>!e.pluginName||!e.licenseFeatureCode?!1:VT(n,e.licenseFeatureCode));r&&(e.enableReadOnlyMode(Symbol(`invalidLicense`)),e._showLicenseError(`pluginNotAllowed`,r.pluginName))}}async destroy(){this.state==`initializing`&&await new Promise(e=>this.once(`ready`,e)),this.fire(`destroy`),this.stopListening(),this.commands.destroy(),await this.plugins.destroy(),this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy(),await this._context._removeEditor(this)}execute(e,...t){try{return this.commands.execute(e,...t)}catch(e){K.rethrowUnexpectedError(e,this)}}focus(){this.editing.view.focus()}registerRootAttribute(e){this._registeredRootsAttributesKeys.has(e)||(this._registeredRootsAttributesKeys.add(e),this.editing.model.schema.extend(`$root`,{allowAttributes:e}))}getRootAttributes(e=`main`){let t=this.model.document.getRoot(e);if(!t)throw new K(`get-root-attributes-missing-root`,this,{rootName:e});let n={};for(let e of this._registeredRootsAttributesKeys)n[e]=t.hasAttribute(e)?t.getAttribute(e):null;return n}static create(...e){throw Error(`This is an abstract method.`)}static Context=XN;static EditorWatchdog=PN;static ContextWatchdog=zN;_showLicenseError(e,t){setTimeout(()=>{if(e==`invalid`)throw new K(`invalid-license-key`);if(e==`expired`)throw new K(`license-key-expired`);if(e==`domainLimit`)throw new K(`license-key-domain-limit`);if(e==`pluginNotAllowed`){let e=t.replace(/(Editing|UI)$/,``);throw new K(`license-key-plugin-not-allowed`,null,{pluginName:this.plugins.has(e)?e:t})}if(e==`featureNotAllowed`)throw new K(`license-key-feature-not-allowed`,null,{featureName:t});if(e==`evaluationLimit`)throw new K(`license-key-evaluation-limit`);if(e==`trialLimit`)throw new K(`license-key-trial-limit`);if(e==`developmentLimit`)throw new K(`license-key-development-limit`);if(e==`usageLimit`)throw new K(`license-key-usage-limit`);if(e==`distributionChannel`)throw new K(`license-key-invalid-distribution-channel`)},0),this._showLicenseError=()=>{}}async _sendUsageRequest(e,t){let n=new Headers({"Content-Type":`application/json`}),r=await fetch(new URL(e),{method:`POST`,headers:n,body:JSON.stringify(t)});if(!r.ok)throw Error(`HTTP Response: ${r.status}`);return r.json()}};function dP(e){let t=tP(e);function n(e,n){if(kb(t,e)!==void 0)throw new K(`editor-usage-data-path-already-set`,{path:e});Wx(t,e,n)}return e.fire(`collectUsageData`,{setUsageData:n}),t}function fP(e){if(!CS(e.updateSourceElement))throw new K(`attachtoform-missing-elementapi-interface`,e);let t=e.sourceElement;if(pP(t)&&t.form){let n,r=t.form,i=()=>e.updateSourceElement();CS(r.submit)&&(n=r.submit,r.submit=()=>{i(),n.apply(r)}),r.addEventListener(`submit`,i),e.on(`destroy`,()=>{r.removeEventListener(`submit`,i),n&&(r.submit=n)})}}function pP(e){return!!e&&e.tagName.toLowerCase()===`textarea`}function mP(e){class t extends e{sourceElement;updateSourceElement(e){if(!this.sourceElement)throw new K(`editor-missing-sourceelement`,this);let t=this.config.get(`updateSourceElementOnDestroy`),n=this.sourceElement instanceof HTMLTextAreaElement;if(!t&&!n){xw(this.sourceElement,``);return}let r=typeof e==`string`?e:this.data.get();xw(this.sourceElement,r)}}return t}var hP=[[`description`,`$description`],[`title`,`$title`]];function gP(e){let t=e.config.get(`roots`);for(let[n,r]of Object.entries(t)){let t=null;for(let[e,n]of hP)r[e]==null||r.modelAttributes&&n in r.modelAttributes||(t||={...r.modelAttributes},t[n]=r[e]);t&&e.config.set(`roots.${n}.modelAttributes`,t)}let n=e.config.get(`roots`),r=!1;for(let t of Object.values(n))for(let n of Object.keys(t.modelAttributes||{}))e.registerRootAttribute(n),r=!0;r&&e.data.once(`init`,()=>{e.model.enqueueChange({isUndoable:!1},t=>{for(let[r,i]of Object.entries(n)){let n=e.model.document.getRoot(r);if(n)for(let[e,r]of Object.entries(i.modelAttributes||{}))r!==null&&t.setAttribute(e,r,n)}})})}function _P(e,t,n=`main`,r=!1){let i=t.get(`root`),a=t.get(`roots`)||Object.create(null);if(!gS(a))throw new K(`editor-create-roots-not-plain-object`,null);if(i){if(!n)throw new K(`editor-create-multi-root-with-main`,null);if(n in a)throw new K(`editor-create-roots-with-main`,null)}n&&!a[n]&&(a[n]=i||Object.create(null));let o=yP(e),s=xP(t,o,n),c=Array.from(new Set([...o?Object.keys(e):[],...Object.keys(a),...Object.keys(s)]));for(let n of c){let i=a[n]||Object.create(null),c=o?e[n]:e;if(!r&&EP(c)){if(i.element)throw new K(`editor-create-root-element-overspecified`,null);i.element=c}if(r&&EP(i.element)&&(tC(`editor-create-root-element-not-supported`),i.element=void 0),i.initialData===void 0)if(s[n]===void 0){let e=EP(i.element)?i.element:void 0;i.initialData=bP(c||e||r&&t.get(`attachTo`)||``)}else if(c&&!EP(c))throw new K(`editor-create-initial-data-overspecified`,null);else i.initialData=s[n];else if(c&&!EP(c))throw new K(`editor-create-root-initial-data-overspecified`,null);else if(s[n]!==void 0)throw new K(`editor-create-legacy-initial-data-overspecified`,null);i.placeholder??=SP(t,`placeholder`,n),i.label??=SP(t,`label`,n),i.modelElement||=`$root`,i.element=CP(i.element),a[n]=i}if(r&&EP(e)){if(t.get(`attachTo`))throw new K(`editor-create-attachto-overspecified`,null);t.set(`attachTo`,e)}if(!r&&t.get(`attachTo`))throw new K(`editor-create-attachto-ignored`,null);t.set(`roots`,a)}function vP(e,t){return typeof e==`string`||EP(e)||t&&Object.keys(t).length?{sourceElementOrData:e,editorConfig:t}:{sourceElementOrData:``,editorConfig:e}}function yP(e){return!!e&&typeof e==`object`&&!Array.isArray(e)&&!EP(e)}function bP(e){return EP(e)?iw(e):e}function xP(e,t,n){return t||!n?e.get(`initialData`)||Object.create(null):{[n]:e.get(`initialData`)}}function SP(e,t,n){let r=e.get(t);if(r)return typeof r==`string`?r:r[n]}function CP(e){if(e==null)return;if(EP(e))return TP(e.tagName),e;if(typeof e==`string`)return TP(e),{name:e};let{name:t,classes:n,styles:r,attributes:i}=e;t!==void 0&&TP(t);let{class:a,style:o,...s}=i||{},c=!!i&&`class`in i,l=!!r&&Object.keys(r).length>0,u=l&&!!o;u&&tC(`editor-root-element-styles-overspecified`);let d=[...wP(n),...wP(a)],f={...s};return c&&(f.class=``),u?f.style=``:o&&(f.style=o),{...t!==void 0&&{name:t},...d.length&&{classes:d},...l&&{styles:r},...Object.keys(f).length&&{attributes:f}}}function wP(e){return e?sT(e).flatMap(e=>e.split(/\s+/)).filter(Boolean):[]}function TP(e){if(typeof e!=`string`||!/^[A-Za-z][A-Za-z0-9_-]*$/.test(e))throw new K(`editor-wrong-element-name`,null,{name:e});if([`textarea`,`input`].includes(e.toLowerCase()))throw new K(`editor-wrong-element`,null)}function EP(e){return wS(e)}function DP(e){let t=e.model.schema,n=e.model.document;for(let e of n.roots)if(!(e===n.graveyard||!e.isAttached())&&!t.isLimit(e))throw new K(`editor-root-element-is-not-limit`,null,{rootName:e.rootName,elementName:e.name})}function OP(e,t){let n=e.model.document.getRoot(t);return e.model.schema.checkChild(n,`$block`)}var kP=``,AP=``,jP=``,MP=``,NP=``,PP=``,FP=``,IP=``,LP=``,RP=``,zP=``,BP=``,VP=``,HP=``,UP=``,WP=``,GP=``,KP=``,qP=``,JP=` +`,YP=``,XP=``,ZP=``,QP=``,$P=` +`,eF=``,tF=``,nF=``,rF=``,iF=``,aF=``,oF=``,sF=``,cF=``,lF=``,uF={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(let e in uF)Object.freeze(uF[e]);var dF=Object.freeze(uF),fF={};for(let e of Object.keys(dF))fF[dF[e]]=e;var Q={rgb:{channels:3,labels:`rgb`},hsl:{channels:3,labels:`hsl`},hsv:{channels:3,labels:`hsv`},hwb:{channels:3,labels:`hwb`},cmyk:{channels:4,labels:`cmyk`},xyz:{channels:3,labels:`xyz`},lab:{channels:3,labels:`lab`},oklab:{channels:3,labels:[`okl`,`oka`,`okb`]},lch:{channels:3,labels:`lch`},oklch:{channels:3,labels:[`okl`,`okc`,`okh`]},hex:{channels:1,labels:[`hex`]},keyword:{channels:1,labels:[`keyword`]},ansi16:{channels:1,labels:[`ansi16`]},ansi256:{channels:1,labels:[`ansi256`]},hcg:{channels:3,labels:[`h`,`c`,`g`]},apple:{channels:3,labels:[`r16`,`g16`,`b16`]},gray:{channels:1,labels:[`gray`]}},pF=(6/29)**3;function mF(e){let t=e>.0031308?1.055*e**(1/2.4)-.055:e*12.92;return Math.min(Math.max(0,t),1)}function hF(e){return e>.04045?((e+.055)/1.055)**2.4:e/12.92}for(let e of Object.keys(Q)){if(!(`channels`in Q[e]))throw Error(`missing channels property: `+e);if(!(`labels`in Q[e]))throw Error(`missing channel labels property: `+e);if(Q[e].labels.length!==Q[e].channels)throw Error(`channel and label counts mismatch: `+e);let{channels:t,labels:n}=Q[e];delete Q[e].channels,delete Q[e].labels,Object.defineProperty(Q[e],"channels",{value:t}),Object.defineProperty(Q[e],"labels",{value:n})}Q.rgb.hsl=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s,c;switch(a){case i:s=0;break;case t:s=(n-r)/o;break;case n:s=2+(r-t)/o;break;case r:s=4+(t-n)/o;break}s=Math.min(s*60,360),s<0&&(s+=360);let l=(i+a)/2;return c=a===i?0:l<=.5?o/(a+i):o/(2-a-i),[s,c*100,l*100]},Q.rgb.hsv=function(e){let t,n,r,i,a,o=e[0]/255,s=e[1]/255,c=e[2]/255,l=Math.max(o,s,c),u=l-Math.min(o,s,c),d=function(e){return(l-e)/6/u+1/2};if(u===0)i=0,a=0;else{switch(a=u/l,t=d(o),n=d(s),r=d(c),l){case o:i=r-n;break;case s:i=1/3+t-r;break;case c:i=2/3+n-t;break}i<0?i+=1:i>1&&--i}return[i*360,a*100,l*100]},Q.rgb.hwb=function(e){let t=e[0],n=e[1],r=e[2],i=Q.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,a*100,r*100]},Q.rgb.oklab=function(e){let t=hF(e[0]/255),n=hF(e[1]/255),r=hF(e[2]/255),i=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*r),a=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*r),o=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*r),s=.2104542553*i+.793617785*a-.0040720468*o,c=1.9779984951*i-2.428592205*a+.4505937099*o,l=.0259040371*i+.7827717662*a-.808675766*o;return[s*100,c*100,l*100]},Q.rgb.cmyk=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,o=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[a*100,o*100,s*100,i*100]};function gF(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Q.rgb.keyword=function(e){let t=fF[e];if(t)return t;let n=1/0,r;for(let t of Object.keys(dF)){let i=dF[t],a=gF(e,i);apF?n**(1/3):7.787*n+16/116,r=r>pF?r**(1/3):7.787*r+16/116,i=i>pF?i**(1/3):7.787*i+16/116,[116*r-16,500*(n-r),200*(r-i)]},Q.hsl.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,i,a;if(n===0)return a=r*255,[a,a,a];let o=r<.5?r*(1+n):r+n-r*n,s=2*r-o,c=[0,0,0];for(let e=0;e<3;e++)i=t+1/3*-(e-1),i<0&&i++,i>1&&i--,a=6*i<1?s+(o-s)*6*i:2*i<1?o:3*i<2?s+(o-s)*(2/3-i)*6:s,c[e]=a*255;return c},Q.hsl.hsv=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,i=n,a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;let o=(r+n)/2;return[t,(r===0?2*i/(a+i):2*n/(r+n))*100,o*100]},Q.hsv.rgb=function(e){let t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,c,o];case 1:return[s,r,o];case 2:return[o,r,c];case 3:return[o,s,r];case 4:return[c,o,r];case 5:return[r,o,s]}},Q.hsv.hsl=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01),a,o;o=(2-n)*r;let s=(2-n)*i;return a=n*i,a/=s<=1?s:2-s,a||=0,o/=2,[t,a*100,o*100]},Q.hwb.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,i=n+r,a;i>1&&(n/=i,r/=i);let o=Math.floor(6*t),s=1-r;a=6*t-o,o&1&&(a=1-a);let c=n+a*(s-n),l,u,d;switch(o){default:case 6:case 0:l=s,u=c,d=n;break;case 1:l=c,u=s,d=n;break;case 2:l=n,u=s,d=c;break;case 3:l=n,u=c,d=s;break;case 4:l=c,u=n,d=s;break;case 5:l=s,u=n,d=c;break}return[l*255,u*255,d*255]},Q.cmyk.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[a*255,o*255,s*255]},Q.xyz.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i,a,o;return i=t*3.2404542+n*-1.5371385+r*-.4985314,a=t*-.969266+n*1.8760108+r*.041556,o=t*.0556434+n*-.2040259+r*1.0572252,i=mF(i),a=mF(a),o=mF(o),[i*255,a*255,o*255]},Q.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>pF?t**(1/3):7.787*t+16/116,n=n>pF?n**(1/3):7.787*n+16/116,r=r>pF?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},Q.xyz.oklab=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i=Math.cbrt(.8189330101*t+.3618667424*n-.1288597137*r),a=Math.cbrt(.0329845436*t+.9293118715*n+.0361456387*r),o=Math.cbrt(.0482003018*t+.2643662691*n+.633851707*r),s=.2104542553*i+.793617785*a-.0040720468*o,c=1.9779984951*i-2.428592205*a+.4505937099*o,l=.0259040371*i+.7827717662*a-.808675766*o;return[s*100,c*100,l*100]},Q.oklab.oklch=function(e){return Q.lab.lch(e)},Q.oklab.xyz=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i=(.999999998*t+.396337792*n+.215803758*r)**3,a=(1.000000008*t-.105561342*n-.063854175*r)**3,o=(1.000000055*t-.089484182*n-1.291485538*r)**3,s=1.227013851*i-.55779998*a+.281256149*o,c=-.040580178*i+1.11225687*a-.071676679*o,l=-.076381285*i-.421481978*a+1.58616322*o;return[s*100,c*100,l*100]},Q.oklab.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i=(t+.3963377774*n+.2158037573*r)**3,a=(t-.1055613458*n-.0638541728*r)**3,o=(t-.0894841775*n-1.291485548*r)**3,s=mF(4.0767416621*i-3.3077115913*a+.2309699292*o),c=mF(-1.2684380046*i+2.6097574011*a-.3413193965*o),l=mF(-.0041960863*i-.7034186147*a+1.707614701*o);return[s*255,c*255,l*255]},Q.oklch.oklab=function(e){return Q.lch.lab(e)},Q.lab.xyz=function(e){let t=e[0],n=e[1],r=e[2],i,a,o;a=(t+16)/116,i=n/500+a,o=a-r/200;let s=a**3,c=i**3,l=o**3;return a=s>pF?s:(a-16/116)/7.787,i=c>pF?c:(i-16/116)/7.787,o=l>pF?l:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]},Q.lab.lch=function(e){let t=e[0],n=e[1],r=e[2],i;return i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360),[t,Math.sqrt(n*n+r*r),i]},Q.lch.lab=function(e){let t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},Q.rgb.ansi16=function(e,t=null){let[n,r,i]=e,a=t===null?Q.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(o+=60),o},Q.hsv.ansi16=function(e){return Q.rgb.ansi16(Q.hsv.rgb(e),e[2])},Q.rgb.ansi256=function(e){let t=e[0],n=e[1],r=e[2];return t>>4==n>>4&&n>>4==r>>4?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},Q.ansi16.rgb=function(e){e=e[0];let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let n=(Math.trunc(e>50)+1)*.5;return[(t&1)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},Q.ansi256.rgb=function(e){if(e=e[0],e>=232){let t=(e-232)*10+8;return[t,t,t]}e-=16;let t;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},Q.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return`000000`.slice(t.length)+t},Q.hex.rgb=function(e){let t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},Q.rgb.hcg=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),o=i-a,s,c=o<1?a/(1-o):0;return s=o<=0?0:i===t?(n-r)/o%6:i===n?2+(r-t)/o:4+(t-n)/o,s/=6,s%=1,[s*360,o*100,c*100]},Q.hsl.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n),i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]},Q.hsv.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},Q.hcg.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];let i=[0,0,0],a=t%1*6,o=a%1,s=1-o,c=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return c=(1-n)*r,[(n*i[0]+c)*255,(n*i[1]+c)*255,(n*i[2]+c)*255]},Q.hcg.hsv=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],r*100,n*100]},Q.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],r*100,n*100]},Q.hcg.hwb=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],(n-t)*100,(1-n)*100]},Q.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},Q.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Q.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Q.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Q.gray.hsl=function(e){return[0,0,e[0]]},Q.gray.hsv=Q.gray.hsl,Q.gray.hwb=function(e){return[0,100,e[0]]},Q.gray.cmyk=function(e){return[0,0,0,e[0]]},Q.gray.lab=function(e){return[e[0],0,0]},Q.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return`000000`.slice(n.length)+n},Q.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};function _F(){let e={},t=Object.keys(Q);for(let{length:n}=t,r=0;r0;){let e=n.pop(),r=Object.keys(Q[e]);for(let{length:i}=r,a=0;a1&&(t=n),e(t))};return`conversion`in e&&(t.conversion=e.conversion),t}function TF(e){let t=function(...t){let n=t[0];if(n==null)return n;n.length>1&&(t=n);let r=e(t);if(typeof r==`object`)for(let{length:e}=r,t=0;t{this._renderViewIntoCollectionParent(t,n)}),this.on(`remove`,(e,t)=>{t.element&&this._parentElement&&t.element.remove()}),this._parentElement=null}destroy(){this.map(e=>e.destroy())}setParent(e){this._parentElement=e;for(let e of this)this._renderViewIntoCollectionParent(e)}delegate(...e){if(!e.length||!DF(e))throw new K(`ui-viewcollection-delegate-wrong-events`,this);return{to:t=>{for(let n of this)for(let r of e)n.delegate(r).to(t);this.on(`add`,(n,r)=>{for(let n of e)r.delegate(n).to(t)}),this.on(`remove`,(n,r)=>{for(let n of e)r.stopDelegating(n,t)})}}}_renderViewIntoCollectionParent(e,t){e.isRendered||e.render(),e.element&&this._parentElement&&this._parentElement.insertBefore(e.element,this._parentElement.children[t])}remove(e){return super.remove(e)}};function DF(e){return e.every(e=>typeof e==`string`)}var OF=`http://www.w3.org/1999/xhtml`,kF=fC(),AF=class extends kF{ns;tag;text;attributes;children;eventListeners;_isRendered;_revertData;constructor(e){super(),Object.assign(this,HF(VF(e))),this._isRendered=!1,this._revertData=null}render(){let e=this._renderNode({intoFragment:!0});return this._isRendered=!0,e}apply(e){return this._revertData=nI(),this._renderNode({node:e,intoFragment:!1,isApplying:!0,revertData:this._revertData}),e}revert(e){if(!this._revertData)throw new K(`ui-template-revert-not-applied`,[this,e]);this._revertTemplateFromNode(e,this._revertData)}*getViews(){function*e(t){if(t.children)for(let n of t.children)QF(n)?yield n:$F(n)&&(yield*e(n))}yield*e(this)}static bind(e,t){return{to(n,r){return new MF({eventNameOrFunction:n,attribute:n,observable:e,emitter:t,callback:r})},if(n,r,i){return new NF({observable:e,emitter:t,attribute:n,valueIfTrue:r,callback:i})}}}static extend(e,t){if(e._isRendered)throw new K(`template-extend-render`,[this,e]);XF(e,HF(VF(t)))}_renderNode(e){let t;if(t=e.node?this.tag&&this.text:this.tag?this.text:!this.text,t)throw new K(`ui-template-wrong-syntax`,this);return this.text?this._renderText(e):this._renderElement(e)}_renderElement(e){let t=e.node;return t||=e.node=document.createElementNS(this.ns||OF,this.tag),this._renderAttributes(e),this._renderElementChildren(e),this._setUpListeners(e),t}_renderText(e){let t=e.node;return t?e.revertData.text=t.textContent:t=e.node=document.createTextNode(``),PF(this.text)?this._bindToObservable({schema:this.text,updater:RF(t),data:e}):t.textContent=this.text.join(``),t}_renderAttributes(e){if(!this.attributes)return;let t=e.node,n=e.revertData;for(let r in this.attributes){let i=t.getAttribute(r),a=this.attributes[r];n&&(n.attributes[r]=i);let o=tI(a)?a[0].ns:null;if(PF(a)){let s=tI(a)?a[0].value:a;n&&rI(r)&&s.unshift(i),this._bindToObservable({schema:s,updater:zF(t,r,o),data:e})}else if(r==`style`&&typeof a[0]!=`string`)this._renderStyleAttribute(a[0],e);else{n&&i&&rI(r)&&a.unshift(i);let e=a.map(e=>e&&(e.value||e)).reduce((e,t)=>e.concat(t),[]).reduce(JF,``);ZF(e)||t.setAttributeNS(o,r,e)}}}_renderStyleAttribute(e,t){let n=t.node;for(let r in e){let i=e[r];PF(i)?this._bindToObservable({schema:[i],updater:BF(n,r),data:t}):FF(r)?n.style.setProperty(r,i):n.style[r]=i}}_renderElementChildren(e){let t=e.node,n=e.intoFragment?document.createDocumentFragment():t,r=e.isApplying,i=0;for(let a of this.children)if(eI(a)){if(!r){a.setParent(t);for(let e of a)n.appendChild(e.element)}}else if(QF(a))r||(a.isRendered||a.render(),n.appendChild(a.element));else if(YC(a))n.appendChild(a);else if(r){let t=e.revertData,r=nI();t.children.push(r),a._renderNode({intoFragment:!1,node:n.childNodes[i++],isApplying:!0,revertData:r})}else n.appendChild(a.render());e.intoFragment&&t.appendChild(n)}_setUpListeners(e){if(this.eventListeners)for(let t in this.eventListeners){let n=this.eventListeners[t].map(n=>{let[r,i]=t.split(`@`);return n.activateDomEventListener(r,i,e)});e.revertData&&e.revertData.bindings.push(n)}}_bindToObservable({schema:e,updater:t,data:n}){let r=n.revertData;LF(e,t,n);let i=e.filter(e=>!ZF(e)).filter(e=>e.observable).map(r=>r.activateAttributeListener(e,t,n));r&&r.bindings.push(i)}_revertTemplateFromNode(e,t){for(let e of t.bindings)for(let t of e)t();if(t.text){e.textContent=t.text;return}let n=e;for(let e in t.attributes){let r=t.attributes[e];r===null?n.removeAttribute(e):n.setAttribute(e,r)}for(let e=0;eLF(e,t,n);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,r),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,r)}}},MF=class extends jF{eventNameOrFunction;constructor(e){super(e),this.eventNameOrFunction=e.eventNameOrFunction}activateDomEventListener(e,t,n){let r=(e,n)=>{(!t||n.target.matches(t))&&(typeof this.eventNameOrFunction==`function`?this.eventNameOrFunction(n):this.observable.fire(this.eventNameOrFunction,n))};return this.emitter.listenTo(n.node,e,r),()=>{this.emitter.stopListening(n.node,e,r)}}},NF=class extends jF{valueIfTrue;constructor(e){super(e),this.valueIfTrue=e.valueIfTrue}getValue(e){return ZF(super.getValue(e))?!1:this.valueIfTrue||!0}};function PF(e){return e?(e.value&&(e=e.value),Array.isArray(e)?e.some(PF):e instanceof jF):!1}function FF(e){return/^--[a-zA-Z_-][\w-]*$/.test(e)}function IF(e,t){return e.map(e=>e instanceof jF?e.getValue(t):e)}function LF(e,t,{node:n}){let r=IF(e,n),i;i=e.length==1&&e[0]instanceof NF?r[0]:r.reduce(JF,``),ZF(i)?t.remove():t.set(i)}function RF(e){return{set(t){e.textContent=t},remove(){e.textContent=``}}}function zF(e,t,n){return{set(r){e.setAttributeNS(n,t,r)},remove(){e.removeAttributeNS(n,t)}}}function BF(e,t){return{set(n){FF(t)?e.style.setProperty(t,n):e.style[t]=n},remove(){FF(t)?e.style.removeProperty(t):e.style[t]=null}}}function VF(e){return Cx(e,e=>{if(e&&(e instanceof jF||$F(e)||QF(e)||eI(e)))return e})}function HF(e){if(typeof e==`string`?e=GF(e):e.text&&KF(e),e.on&&(e.eventListeners=WF(e.on),delete e.on),!e.text){e.attributes&&UF(e.attributes);let t=[];if(e.children)if(eI(e.children))t.push(e.children);else for(let n of e.children)$F(n)||QF(n)||YC(n)?t.push(n):t.push(new AF(n));e.children=t}return e}function UF(e){for(let t in e)e[t].value&&(e[t].value=sT(e[t].value)),qF(e,t)}function WF(e){for(let t in e)qF(e,t);return e}function GF(e){return{text:[e]}}function KF(e){e.text=sT(e.text)}function qF(e,t){e[t]=sT(e[t])}function JF(e,t){return ZF(t)?e:ZF(e)?t:`${e} ${t}`}function YF(e,t){for(let n in t)e[n]?e[n].push(...t[n]):e[n]=t[n]}function XF(e,t){if(t.attributes&&(e.attributes||={},YF(e.attributes,t.attributes)),t.eventListeners&&(e.eventListeners||={},YF(e.eventListeners,t.eventListeners)),t.text&&e.text.push(...t.text),t.children&&t.children.length){if(e.children.length!=t.children.length)throw new K(`ui-template-extend-children-mismatch`,e);let n=0;for(let r of t.children)XF(e.children[n++],r)}}function ZF(e){return!e&&e!==0}function QF(e){return e instanceof $}function $F(e){return e instanceof AF}function eI(e){return e instanceof EF}function tI(e){return Mb(e[0])&&e[0].ns}function nI(){return{children:[],bindings:[],attributes:{}}}function rI(e){return e==`class`||e==`style`}var iI=$C(AC()),$=class extends iI{element;isRendered;locale;t;template;_viewCollections;_unboundChildren;_bindTemplate;constructor(e){super(),this.element=null,this.isRendered=!1,this.locale=e,this.t=e&&e.t,this._viewCollections=new hT,this._unboundChildren=this.createCollection(),this._viewCollections.on(`add`,(t,n)=>{n.locale=e,n.t=e&&e.t}),this.decorate(`render`)}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=AF.bind(this,this)}createCollection(e){let t=new EF(e);return this._viewCollections.add(t),t}registerChild(e){WC(e)||(e=[e]);for(let t of e)this._unboundChildren.add(t)}deregisterChild(e){WC(e)||(e=[e]);for(let t of e)this._unboundChildren.remove(t)}setTemplate(e){this.template=new AF(e)}extendTemplate(e){AF.extend(this.template,e)}render(){if(this.isRendered)throw new K(`ui-view-render-already-rendered`,this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(e=>e.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}},aI={POLITE:`polite`,ASSERTIVE:`assertive`},oI=class{editor;view;constructor(e){this.editor=e,e.once(`ready`,()=>{for(let e of Object.values(aI))this.announce(``,e)})}announce(e,t=aI.POLITE){let n=this.editor;if(!n.ui.view)return;this.view||(this.view=new sI(n.locale),n.ui.view.body.add(this.view));let{politeness:r,isUnsafeHTML:i}=typeof t==`string`?{politeness:t}:t,a=this.view.regionViews.find(e=>e.politeness===r);a||(a=new cI(n,r),this.view.regionViews.add(a)),a.announce({announcement:e,isUnsafeHTML:i})}},sI=class extends ${regionViews;constructor(e){super(e),this.regionViews=this.createCollection(),this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-aria-live-announcer`]},children:this.regionViews})}},cI=class extends ${politeness;_domConverter;_pruneAnnouncementsInterval;constructor(e,t){super(e.locale),this.setTemplate({tag:`div`,attributes:{"aria-live":t,"aria-relevant":`additions`},children:[{tag:`ul`,attributes:{class:[`ck`,`ck-aria-live-region-list`]}}]}),e.on(`destroy`,()=>{this._pruneAnnouncementsInterval!==null&&(clearInterval(this._pruneAnnouncementsInterval),this._pruneAnnouncementsInterval=null)}),this.politeness=t,this._domConverter=e.data.htmlProcessor.domConverter,this._pruneAnnouncementsInterval=setInterval(()=>{this.element&&this._listElement.firstChild&&this._listElement.firstChild.remove()},5e3)}announce({announcement:e,isUnsafeHTML:t}){if(!e.trim().length)return;let n=document.createElement(`li`);t?this._domConverter.setContentOf(n,e):n.innerText=e,this._listElement.appendChild(n)}get _listElement(){return this.element.querySelector(`ul`)}};function lI({emitter:e,activator:t,callback:n,contextElements:r,listenerOptions:i}){e.listenTo(document,`mousedown`,(e,i)=>{if(!t())return;let a=typeof i.composedPath==`function`?i.composedPath():[],o=typeof r==`function`?r():r;for(let e of o)if(e.contains(i.target)||a.includes(e))return;n()},i)}function uI(e){class t extends e{disableCssTransitions(){this._isCssTransitionsDisabled=!0}enableCssTransitions(){this._isCssTransitionsDisabled=!1}constructor(...e){super(...e),this.set(`_isCssTransitionsDisabled`,!1),this.initializeCssTransitionDisablerMixin()}initializeCssTransitionDisablerMixin(){this.template&&this.extendTemplate({attributes:{class:[this.bindTemplate.if(`_isCssTransitionsDisabled`,`ck-transitions-disabled`)]}})}}return t}function dI(e){class t extends e{_onDragBound=this._onDrag.bind(this);_onDragEndBound=this._onDragEnd.bind(this);_lastDraggingCoordinates={x:0,y:0};constructor(...e){super(...e),this.on(`render`,()=>{this._attachListeners()}),this.set(`isDragging`,!1)}_attachListeners(){this.listenTo(this.element,`mousedown`,this._onDragStart.bind(this)),this.listenTo(this.element,`touchstart`,this._onDragStart.bind(this))}_attachDragListeners(){this.listenTo(W.document,`mouseup`,this._onDragEndBound),this.listenTo(W.document,`touchend`,this._onDragEndBound),this.listenTo(W.document,`mousemove`,this._onDragBound),this.listenTo(W.document,`touchmove`,this._onDragBound)}_detachDragListeners(){this.stopListening(W.document,`mouseup`,this._onDragEndBound),this.stopListening(W.document,`touchend`,this._onDragEndBound),this.stopListening(W.document,`mousemove`,this._onDragBound),this.stopListening(W.document,`touchmove`,this._onDragBound)}_onDragStart(e,t){if(!this._isHandleElementPressed(t))return;this._attachDragListeners();let n=0,r=0;t instanceof MouseEvent?(n=t.clientX,r=t.clientY):(n=t.touches[0].clientX,r=t.touches[0].clientY),this._lastDraggingCoordinates={x:n,y:r},this.isDragging=!0}_onDrag(e,t){if(!this.isDragging){this._detachDragListeners();return}let n=0,r=0;t instanceof MouseEvent?(n=t.clientX,r=t.clientY):(n=t.touches[0].clientX,r=t.touches[0].clientY),t.preventDefault(),this.fire(`drag`,{deltaX:Math.round(n-this._lastDraggingCoordinates.x),deltaY:Math.round(r-this._lastDraggingCoordinates.y)}),this._lastDraggingCoordinates={x:n,y:r}}_onDragEnd(){this._detachDragListeners(),this.isDragging=!1}_isHandleElementPressed(e){return this.dragHandleElement?this.dragHandleElement===e.target||e.target instanceof HTMLElement&&this.dragHandleElement.contains(e.target):!1}}return t}function fI({view:e}){e.listenTo(e.element,`submit`,(t,n)=>{n.preventDefault(),e.fire(`submit`)},{useCapture:!0})}function pI({keystrokeHandler:e,focusTracker:t,gridItems:n,numberOfColumns:r,uiLanguageDirection:i}){let a=typeof r==`number`?()=>r:r;e.set(`arrowright`,o((e,t)=>i===`rtl`?c(e,t.length):s(e,t.length))),e.set(`arrowleft`,o((e,t)=>i===`rtl`?s(e,t.length):c(e,t.length))),e.set(`arrowup`,o((e,t)=>{let n=e-a();return n<0&&(n=e+a()*Math.floor(t.length/a()),n>t.length-1&&(n-=a())),n})),e.set(`arrowdown`,o((e,t)=>{let n=e+a();return n>t.length-1&&(n=e%a()),n}));function o(e){return r=>{let i=n.find(e=>e.element===t.focusedElement),a=e(n.getIndex(i),n);n.get(a).focus(),r.stopPropagation(),r.preventDefault()}}function s(e,t){return e===t-1?0:e+1}function c(e,t){return e===0?t-1:e-1}}var mI=class extends ${id;constructor(e){super(e),this.set(`text`,void 0),this.set(`for`,void 0),this.id=`ck-editor__label_${ZS()}`;let t=this.bindTemplate;this.setTemplate({tag:`label`,attributes:{class:[`ck`,`ck-label`],id:this.id,for:t.to(`for`)},children:[{text:t.to(`text`)}]})}},hI=class extends ${constructor(e,t){super(e);let n=e.t,r=new mI;r.text=n(`Help Contents. To close this dialog press ESC.`),this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-accessibility-help-dialog__content`],"aria-labelledby":r.id,role:`document`,tabindex:-1},children:[GC(document,`p`,{},n(`Below, you can find a list of keyboard shortcuts that can be used in the editor.`)),...this._createCategories(Array.from(t.values())),r]})}focus(){this.element.focus()}_createCategories(e){return e.map(e=>{let t=[GC(document,`h3`,{},e.label),...Array.from(e.groups.values()).map(e=>this._createGroup(e)).flat()];return e.description&&t.splice(1,0,GC(document,`p`,{},e.description)),GC(document,`section`,{},t)})}_createGroup(e){let t=e.keystrokes.sort((e,t)=>e.label.localeCompare(t.label)).map(e=>this._createGroupRow(e)).flat(),n=[GC(document,`dl`,{},t)];return e.label&&n.unshift(GC(document,`h4`,{},e.label)),n}_createGroupRow(e){let t=this.locale.t,n=GC(document,`dt`),r=GC(document,`dd`),i=_I(e.keystroke),a=[];for(let e of i)a.push(e.map(gI).join(``));return n.innerHTML=e.label,r.innerHTML=a.join(`, `)+(e.mayRequireFn&&G.isMac?` ${t(`(may require Fn)`)}`:``),[n,r]}};function gI(e){return Qw(e).split(`+`).map(e=>`${e}`).join(`+`)}function _I(e){return typeof e==`string`?[[e]]:typeof e[0]==`string`?[e]:e}var vI=class e extends ${static presentationalAttributeNames=`alignment-baseline.baseline-shift.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-rendering.cursor.direction.display.dominant-baseline.fill.fill-opacity.fill-rule.filter.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.image-rendering.letter-spacing.lighting-color.marker-end.marker-mid.marker-start.mask.opacity.overflow.paint-order.pointer-events.shape-rendering.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.text-anchor.text-decoration.text-overflow.text-rendering.transform.unicode-bidi.vector-effect.visibility.white-space.word-spacing.writing-mode`.split(`.`);constructor(){super();let e=this.bindTemplate;this.set(`content`,``),this.set(`viewBox`,`0 0 20 20`),this.set(`fillColor`,``),this.set(`isColorInherited`,!0),this.set(`isVisible`,!0),this.setTemplate({tag:`svg`,ns:`http://www.w3.org/2000/svg`,attributes:{class:[`ck`,`ck-icon`,e.if(`isVisible`,`ck-hidden`,e=>!e),`ck-reset_all-excluded`,e.if(`isColorInherited`,`ck-icon_inherit-color`)],viewBox:e.to(`viewBox`),"aria-hidden":!0}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on(`change:content`,()=>{this._updateXMLContent(),this._colorFillPaths()}),this.on(`change:fillColor`,()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){let t=new DOMParser().parseFromString(this.content.trim(),`image/svg+xml`).querySelector(`svg`);if(!t)throw new K(`ui-iconview-invalid-svg`,this);let n=t.getAttribute(`viewBox`);n&&(this.viewBox=n);for(let{name:n,value:r}of Array.from(t.attributes))e.presentationalAttributeNames.includes(n)&&this.element.setAttribute(n,r);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;t.childNodes.length>0;)this.element.appendChild(t.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(`.ck-icon__fill`).forEach(e=>{e.style.fill=this.fillColor})}},yI=class extends ${constructor(){super(),this.set({style:void 0,text:void 0,id:void 0});let e=this.bindTemplate;this.setTemplate({tag:`span`,attributes:{class:[`ck`,`ck-button__label`],style:e.to(`style`),id:e.to(`id`)},children:[{text:e.to(`text`)}]})}},bI=class extends ${children;labelView;iconView;keystrokeView;_focusDelayed=null;constructor(e,t=new yI){super(e);let n=this.bindTemplate,r=ZS();this.set(`_ariaPressed`,!1),this.set(`_ariaChecked`,!1),this.set(`ariaLabel`,void 0),this.set(`ariaLabelledBy`,`ck-editor__aria-label_${r}`),this.set(`class`,void 0),this.set(`labelStyle`,void 0),this.set(`icon`,void 0),this.set(`isEnabled`,!0),this.set(`isOn`,!1),this.set(`isVisible`,!0),this.set(`isToggleable`,!1),this.set(`keystroke`,void 0),this.set(`label`,void 0),this.set(`role`,void 0),this.set(`tabindex`,-1),this.set(`tooltip`,!1),this.set(`tooltipPosition`,`s`),this.set(`type`,`button`),this.set(`withText`,!1),this.set(`withKeystroke`,!1),this.children=this.createCollection(),this.labelView=this._setupLabelView(t),this.iconView=new vI,this.iconView.extendTemplate({attributes:{class:`ck-button__icon`}}),this.iconView.bind(`content`).to(this,`icon`),this.keystrokeView=this._createKeystrokeView(),this.bind(`_tooltipString`).to(this,`tooltip`,this,`label`,this,`keystroke`,this._getTooltipString.bind(this));let i={tag:`button`,attributes:{class:[`ck`,`ck-button`,n.to(`class`),n.if(`isEnabled`,`ck-disabled`,e=>!e),n.if(`isVisible`,`ck-hidden`,e=>!e),n.to(`isOn`,e=>e?`ck-on`:`ck-off`),n.if(`withText`,`ck-button_with-text`),n.if(`withKeystroke`,`ck-button_with-keystroke`)],role:n.to(`role`),type:n.to(`type`,e=>e||`button`),tabindex:n.to(`tabindex`),"aria-checked":n.to(`_ariaChecked`),"aria-pressed":n.to(`_ariaPressed`),"aria-label":n.to(`ariaLabel`),"aria-labelledby":n.to(`ariaLabelledBy`),"aria-disabled":n.if(`isEnabled`,!0,e=>!e),"data-cke-tooltip-text":n.to(`_tooltipString`),"data-cke-tooltip-position":n.to(`tooltipPosition`)},children:this.children,on:{click:n.to(e=>{this.isEnabled?this.fire(`execute`):e.preventDefault()})}};this.bind(`_ariaPressed`).to(this,`isOn`,this,`isToggleable`,this,`role`,(e,t,n)=>!t||xI(n)?!1:String(!!e)),this.bind(`_ariaChecked`).to(this,`isOn`,this,`isToggleable`,this,`role`,(e,t,n)=>!t||!xI(n)?!1:String(!!e)),G.isSafari&&(this._focusDelayed||=DT(()=>this.focus(),0),i.on.mousedown=n.to(()=>{this._focusDelayed()}),i.on.mouseup=n.to(()=>{this._focusDelayed.cancel()})),this.setTemplate(i)}render(){super.render(),this.icon&&this.children.add(this.iconView),this.on(`change:icon`,(e,t,n,r)=>{n&&!r?this.children.add(this.iconView,0):!n&&r&&this.children.remove(this.iconView)}),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}destroy(){this._focusDelayed&&this._focusDelayed.cancel(),super.destroy()}_setupLabelView(e){return e.bind(`text`,`style`,`id`).to(this,`label`,`labelStyle`,`ariaLabelledBy`),e}_createKeystrokeView(){let e=new $;return e.setTemplate({tag:`span`,attributes:{class:[`ck`,`ck-button__keystroke`]},children:[{text:this.bindTemplate.to(`keystroke`,e=>Qw(e))}]}),e}_getTooltipString(e,t,n){return e?typeof e==`string`?e:(n&&=Qw(n),e instanceof Function?e(t,n):`${t}${n?` (${n})`:``}`):``}};function xI(e){switch(e){case`radio`:case`checkbox`:case`option`:case`switch`:case`menuitemcheckbox`:case`menuitemradio`:return!0;default:return!1}}var SI=class extends ${children;iconView;constructor(e,t={}){super(e);let n=this.bindTemplate;this.set(`label`,t.label||``),this.set(`class`,t.class||null),this.children=this.createCollection(),this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-form__header`,n.to(`class`)]},children:this.children}),t.icon&&(this.iconView=new vI,this.iconView.content=t.icon,this.children.add(this.iconView));let r=new $(e);r.setTemplate({tag:`h2`,attributes:{class:[`ck`,`ck-form__header__label`],role:`presentation`},children:[{text:n.to(`label`)}]}),this.children.add(r)}},CI=fC(),wI=class extends CI{focusables;focusTracker;keystrokeHandler;actions;constructor(e){if(super(),this.focusables=e.focusables,this.focusTracker=e.focusTracker,this.keystrokeHandler=e.keystrokeHandler,this.actions=e.actions,e.actions&&e.keystrokeHandler)for(let t in e.actions){let n=e.actions[t];typeof n==`string`&&(n=[n]);for(let r of n)e.keystrokeHandler.set(r,(e,n)=>{this[t](),n()},e.keystrokeHandlerOptions)}this.on(`forwardCycle`,()=>this.focusFirst(),{priority:`low`}),this.on(`backwardCycle`,()=>this.focusLast(),{priority:`low`})}get first(){return this.focusables.find(TI)||null}get last(){return this.focusables.filter(TI).slice(-1)[0]||null}get next(){return this._getDomFocusableItem(1)}get previous(){return this._getDomFocusableItem(-1)}get current(){let e=null;return this.focusTracker.focusedElement===null?null:(this.focusables.find((t,n)=>{let r=t.element===this.focusTracker.focusedElement;return r&&(e=n),r}),e)}focusFirst(){this._focus(this.first,1)}focusLast(){this._focus(this.last,-1)}focusNext(){let e=this.next;if(e&&this.focusables.getIndex(e)===this.current){this.fire(`forwardCycle`);return}e===this.first?this.fire(`forwardCycle`):this._focus(e,1)}focusPrevious(){let e=this.previous;if(e&&this.focusables.getIndex(e)===this.current){this.fire(`backwardCycle`);return}e===this.last?this.fire(`backwardCycle`):this._focus(e,-1)}chain(e){let t=()=>this.current===null?null:this.focusables.get(this.current);this.listenTo(e,`forwardCycle`,e=>{let n=t();this.focusNext(),n!==t()&&e.stop()},{priority:`low`}),this.listenTo(e,`backwardCycle`,e=>{let n=t();this.focusPrevious(),n!==t()&&e.stop()},{priority:`low`})}unchain(e){this.stopListening(e)}_focus(e,t){e&&this.focusTracker.focusedElement!==e.element&&e.focus(t)}_getDomFocusableItem(e){let t=this.focusables.length;if(!t)return null;let n=this.current;if(n===null)return this[e===1?`first`:`last`];let r=this.focusables.get(n),i=(n+t+e)%t;do{let n=this.focusables.get(i);if(TI(n)){r=n;break}i=(i+t+e)%t}while(i!==n);return r}};function TI(e){return EI(e)&&Dw(e.element)}function EI(e){return`focus`in e&&typeof e.focus==`function`}function DI(e){return EI(e)&&`focusCycler`in e&&e.focusCycler instanceof wI}var OI=class extends ${children;keystrokes;focusCycler;_focusTracker;_focusables;constructor(e){super(e),this.children=this.createCollection(),this.keystrokes=new CT,this._focusTracker=new vT,this._focusables=new EF,this.focusCycler=new wI({focusables:this._focusables,focusTracker:this._focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:`shift + tab`,focusNext:`tab`}}),this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-dialog__actions`]},children:this.children})}render(){super.render(),this.keystrokes.listenTo(this.element)}setButtons(e){for(let t of e){let e=new bI(this.locale),n;for(n in e.on(`execute`,()=>t.onExecute()),t.onCreate&&t.onCreate(e),t)n!=`onExecute`&&n!=`onCreate`&&e.set(n,t[n]);this.children.add(e)}this._updateFocusCyclableItems()}focus(e){e===-1?this.focusCycler.focusLast():this.focusCycler.focusFirst()}_updateFocusCyclableItems(){Array.from(this.children).forEach(e=>{this._focusables.add(e),this._focusTracker.add(e.element)})}},kI=class extends ${children;constructor(e){super(e),this.children=this.createCollection(),this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-dialog__content`]},children:this.children})}reset(){for(;this.children.length;)this.children.remove(0)}},AI={SCREEN_CENTER:`screen-center`,EDITOR_CENTER:`editor-center`,EDITOR_TOP_SIDE:`editor-top-side`,EDITOR_TOP_CENTER:`editor-top-center`,EDITOR_BOTTOM_CENTER:`editor-bottom-center`,EDITOR_ABOVE_CENTER:`editor-above-center`,EDITOR_BELOW_CENTER:`editor-below-center`},jI=Sw(`px`),MI=dI($),NI=class e extends MI{parts;headerView;closeButtonView;actionsView;static defaultOffset=15;contentView;keystrokes;focusTracker;wasMoved=!1;_getDomRootElement;_getViewportOffset;_focusables;_focusCycler;constructor(e,{getDomRootElement:t,getViewportOffset:n,keystrokeHandlerOptions:r}){super(e);let i=this.bindTemplate,a=e.t;this.set(`className`,``),this.set(`ariaLabel`,a(`Editor dialog`)),this.set(`isModal`,!1),this.set(`position`,AI.SCREEN_CENTER),this.set(`_isVisible`,!1),this.set(`_isTransparent`,!1),this.set(`_top`,0),this.set(`_left`,0),this._getDomRootElement=t,this._getViewportOffset=n,this.decorate(`moveTo`),this.parts=this.createCollection(),this.keystrokes=new CT,this.focusTracker=new vT,this._focusables=new EF,this._focusCycler=new wI({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:`shift + tab`,focusNext:`tab`},keystrokeHandlerOptions:r}),this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-dialog-overlay`,i.if(`isModal`,`ck-dialog-overlay__transparent`,e=>!e),i.if(`_isVisible`,`ck-hidden`,e=>!e)],tabindex:`-1`},children:[{tag:`div`,attributes:{tabindex:`-1`,class:[`ck`,`ck-dialog`,i.if(`isModal`,`ck-dialog_modal`),i.to(`className`)],role:`dialog`,"aria-label":i.to(`ariaLabel`),style:{top:i.to(`_top`,e=>jI(e)),left:i.to(`_left`,e=>jI(e)),visibility:i.if(`_isTransparent`,`hidden`)}},children:this.parts}]})}render(){super.render(),this.keystrokes.set(`Esc`,(e,t)=>{e.defaultPrevented||(this.fire(`close`,{source:`escKeyPress`}),t())}),this.on(`drag`,(e,{deltaX:t,deltaY:n})=>{this.wasMoved=!0,this.moveBy(t,n)}),this.listenTo(W.window,`resize`,()=>{this._isVisible&&!this.wasMoved&&this.updatePosition()}),this.listenTo(W.document,`scroll`,()=>{this._isVisible&&!this.wasMoved&&this.updatePosition()}),this.on(`change:_isVisible`,(e,t,n)=>{n&&(this._isTransparent=!0,setTimeout(()=>{this.updatePosition(),this._isTransparent=!1,this.focus()},10))}),this.keystrokes.listenTo(this.element)}get dragHandleElement(){return this.headerView&&!this.isModal?this.headerView.element:null}setupParts({icon:e,title:t,hasCloseButton:n=!0,content:r,actionButtons:i}){t&&(this.headerView=new SI(this.locale,{icon:e}),n&&(this.closeButtonView=this._createCloseButton(),this.headerView.children.add(this.closeButtonView)),this.headerView.label=t,this.ariaLabel=t,this.parts.add(this.headerView,0)),r&&(r instanceof $&&(r=[r]),this.contentView=new kI(this.locale),this.contentView.children.addMany(r),this.parts.add(this.contentView)),i&&(this.actionsView=new OI(this.locale),this.actionsView.setButtons(i),this.parts.add(this.actionsView)),this._updateFocusCyclableItems()}focus(){this._focusCycler.focusFirst()}moveTo(e,t){let n=this._getViewportRect(),r=this._getDialogRect();e+r.width>n.right&&(e=n.right-r.width),e{this._focusables.add(e),this.focusTracker.add(e.element),DI(e)&&this._focusCycler.chain(e.focusCycler)})}_createCloseButton(){let e=new bI(this.locale),t=this.locale.t;return e.set({label:t(`Close`),tooltip:!0,icon:NP}),e.on(`execute`,()=>this.fire(`close`,{source:`closeButton`})),e}},PI=class e extends Z{view;static _visibleDialogPlugin;_onHide;static get pluginName(){return`Dialog`}static get isOfficialPlugin(){return!0}constructor(e){super(e);let t=e.t;this._initShowHideListeners(),this._initFocusToggler(),this._initMultiRootIntegration(),this.set({id:null,isOpen:!1}),e.accessibility.addKeystrokeInfos({categoryId:`navigation`,keystrokes:[{label:t(`Move focus in and out of an active dialog window`),keystroke:`Ctrl+F6`,mayRequireFn:!0}]})}destroy(){super.destroy(),e._visibleDialogPlugin===this&&this._unlockBodyScroll()}_initShowHideListeners(){this.on(`show`,(e,t)=>{this._show(t)}),this.on(`show`,(e,t)=>{t.onShow&&t.onShow(this)},{priority:`low`}),this.on(`hide`,()=>{e._visibleDialogPlugin&&e._visibleDialogPlugin._hide()}),this.on(`hide`,()=>{this._onHide&&=(this._onHide(this),void 0)},{priority:`low`})}_initFocusToggler(){let e=this.editor;e.keystrokes.set(`Ctrl+F6`,(t,n)=>{!this.isOpen||this.view.isModal||(this.view.focusTracker.isFocused?e.editing.view.focus():this.view.focus(),n())})}_initMultiRootIntegration(){let e=this.editor.model;e.document.on(`change:data`,()=>{if(!this.view)return;let t=e.document.differ.getChangedRoots();for(let e of t)e.state&&this.view.updatePosition()})}show(e){this.hide(),this.fire(`show:${e.id}`,e)}_show({id:t,icon:n,title:r,hasCloseButton:i=!0,content:a,actionButtons:o,className:s,isModal:c,position:l,onHide:u,getRootName:d,keystrokeHandlerOptions:f}){let p=this.editor;this.view=new NI(p.locale,{getDomRootElement:()=>{let e=d?.()??this.editor.model.document.selection.anchor.root.rootName;return!e||!p.editing.view.domRoots.has(e)?null:p.editing.view.getDomRoot(e)??null},getViewportOffset:()=>p.ui.viewportOffset,keystrokeHandlerOptions:f});let m=this.view;m.on(`close`,()=>{this.hide()}),p.ui.view.body.add(m),p.keystrokes.listenTo(m.element),l||=c?AI.SCREEN_CENTER:AI.EDITOR_CENTER,c&&this._lockBodyScroll(),m.set({position:l,_isVisible:!0,className:s,isModal:c}),m.setupParts({icon:n,title:r,hasCloseButton:i,content:a,actionButtons:o}),this.id=t,u&&(this._onHide=u),this.isOpen=!0,e._visibleDialogPlugin=this}hide(){e._visibleDialogPlugin&&e._visibleDialogPlugin.fire(`hide:${e._visibleDialogPlugin.id}`)}_hide(){if(!this.view)return;let t=this.editor,n=this.view;n.isModal&&this._unlockBodyScroll(),n.contentView&&n.contentView.reset(),t.ui.view.body.remove(n),t.ui.focusTracker.remove(n.element),t.keystrokes.stopListening(n.element),n.destroy(),t.editing.view.focus(),this.id=null,this.isOpen=!1,e._visibleDialogPlugin=null}_lockBodyScroll(){document.documentElement.classList.add(`ck-dialog-scroll-locked`)}_unlockBodyScroll(){document.documentElement.classList.remove(`ck-dialog-scroll-locked`)}},FI=class extends bI{_checkIconHolderView=new II;constructor(e,t=new yI){super(e,t),this.set({hasCheckSpace:!1,_hasCheck:this.isToggleable});let n=this.bindTemplate;this.extendTemplate({attributes:{class:[`ck-list-item-button`,n.if(`isToggleable`,`ck-list-item-button_toggleable`)]}}),this.bind(`_hasCheck`).to(this,`hasCheckSpace`,this,`isToggleable`,(e,t)=>e||t)}render(){super.render(),this._hasCheck&&this.children.add(this._checkIconHolderView,0),this._watchCheckIconHolderMount()}_watchCheckIconHolderMount(){this._checkIconHolderView.bind(`isOn`).to(this,`isOn`,e=>this.isToggleable&&e),this.on(`change:_hasCheck`,(e,t,n)=>{let{children:r,_checkIconHolderView:i}=this;n?r.add(i,0):r.remove(i)})}},II=class extends ${children;_checkIconView=this._createCheckIconView();constructor(){super();let e=this.bindTemplate;this.children=this.createCollection(),this.set(`isOn`,!1),this.setTemplate({tag:`span`,children:this.children,attributes:{class:[`ck`,`ck-list-item-button__check-holder`,e.to(`isOn`,e=>e?`ck-on`:`ck-off`)]}})}render(){super.render(),this.isOn&&this.children.add(this._checkIconView,0),this._watchCheckIconMount()}_watchCheckIconMount(){this.on(`change:isOn`,(e,t,n)=>{let{children:r,_checkIconView:i}=this;n&&!r.has(i)?r.add(i):!n&&r.has(i)&&r.remove(i)})}_createCheckIconView(){let e=new vI;return e.content=PP,e.extendTemplate({attributes:{class:`ck-list-item-button__check-icon`}}),e}},LI=class extends FI{constructor(e){super(e),this.set({withText:!0,withKeystroke:!0,tooltip:!1,role:`menuitem`}),this.extendTemplate({attributes:{class:[`ck-menu-bar__menu__item__button`]}})}},RI=class extends Z{contentView=null;static get requires(){return[PI]}static get pluginName(){return`AccessibilityHelp`}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.locale.t;e.ui.componentFactory.add(`accessibilityHelp`,()=>{let e=this._createButton(bI);return e.set({tooltip:!0,withText:!1,label:t(`Accessibility help`)}),e}),e.ui.componentFactory.add(`menuBar:accessibilityHelp`,()=>{let e=this._createButton(LI);return e.label=t(`Accessibility`),e}),e.keystrokes.set(`Alt+0`,(e,t)=>{this._toggleDialog(),t()}),this._setupRootLabels()}_createButton(e){let t=this.editor,n=t.plugins.get(`Dialog`),r=t.locale,i=new e(r);return i.set({keystroke:`Alt+0`,icon:kP,isToggleable:!0}),i.on(`execute`,()=>this._toggleDialog()),i.bind(`isOn`).to(n,`id`,e=>e===`accessibilityHelp`),i}_setupRootLabels(){let e=this.editor,t=e.editing.view,n=e.t;e.ui.on(`ready`,()=>{t.change(e=>{for(let n of t.document.roots)r(e,n)}),e.on(`addRoot`,(n,i)=>{let a=e.editing.view.document.getRoot(i.rootName);t.change(e=>r(e,a))},{priority:`low`})});function r(e,t){let r=[t.getAttribute(`aria-label`),n(`Press %0 for help.`,[Qw(`Alt+0`)])].filter(e=>e).join(`. `);e.setAttribute(`aria-label`,r,t)}}_toggleDialog(){let e=this.editor,t=e.plugins.get(`Dialog`),n=e.locale.t;this.contentView||=new hI(e.locale,e.accessibility.keystrokeInfos),t.id===`accessibilityHelp`?t.hide():t.show({id:`accessibilityHelp`,className:`ck-accessibility-help-dialog`,title:n(`Accessibility help`),icon:kP,hasCloseButton:!0,content:this.contentView})}},zI=class e extends EF{locale;_bodyCollectionContainer;static _bodyWrapper;constructor(e,t=[]){super(t),this.locale=e}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new AF({tag:`div`,attributes:{class:[`ck`,`ck-reset_all`,`ck-body`,`ck-rounded-corners`],dir:this.locale.uiLanguageDirection,role:`application`},children:this}).render(),(!e._bodyWrapper||!e._bodyWrapper.isConnected)&&(e._bodyWrapper=GC(document,`div`,{class:`ck-body-wrapper`}),document.body.appendChild(e._bodyWrapper)),e._bodyWrapper.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove(),e._bodyWrapper&&!e._bodyWrapper.childElementCount&&(e._bodyWrapper.remove(),delete e._bodyWrapper)}},BI=Sw(`px`),VI={top:-99999,left:-99999,name:`arrowless`,config:{withArrow:!1}},HI=class e extends ${content;_pinWhenIsVisibleCallback;_resizeObserver;constructor(e){super(e);let t=this.bindTemplate;this.set(`top`,0),this.set(`left`,0),this.set(`position`,`arrow_nw`),this.set(`isVisible`,!1),this.set(`withArrow`,!0),this.set(`class`,void 0),this._pinWhenIsVisibleCallback=null,this._resizeObserver=null,this.content=this.createCollection(),this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-balloon-panel`,t.to(`position`,e=>`ck-balloon-panel_${e}`),t.if(`isVisible`,`ck-balloon-panel_visible`),t.if(`withArrow`,`ck-balloon-panel_with-arrow`),t.to(`class`)],style:{top:t.to(`top`,BI),left:t.to(`left`,BI)}},children:this.content})}destroy(){this.hide(),super.destroy()}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(t){let n=UI(t.target);if(n&&!Dw(n))return!1;this.show();let r=e.defaultPositions,i=Object.assign({},{element:this.element,positions:[r.southArrowNorth,r.southArrowNorthMiddleWest,r.southArrowNorthMiddleEast,r.southArrowNorthWest,r.southArrowNorthEast,r.northArrowSouth,r.northArrowSouthMiddleWest,r.northArrowSouthMiddleEast,r.northArrowSouthWest,r.northArrowSouthEast,r.viewportStickyNorth],limiter:W.document.body,fitInViewport:!0},t),a=e._getOptimalPosition(i)||VI,o=parseInt(a.left),s=parseInt(a.top),c=a.name,{withArrow:l=!0}=a.config||{};return this.top=s,this.left=o,this.position=c,this.withArrow=l,!0}pin(e){this.unpin(),this._startPinning(e)&&(this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(e):this._stopPinning()},this.listenTo(this,`change:isVisible`,this._pinWhenIsVisibleCallback))}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,`change:isVisible`,this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(e){if(!this.attachTo(e))return!1;let t=UI(e.target),n=e.limiter?UI(e.limiter):W.document.body;if(this.listenTo(W.document,`scroll`,(r,i)=>{let a=i.target,o=t&&a.contains(t),s=n&&a.contains(n);(o||s||!t||!n)&&this.attachTo(e)},{useCapture:!0}),this.listenTo(W.window,`resize`,()=>{this.attachTo(e)}),!this._resizeObserver&&(t&&cw(t)&&(t=t.parentElement),t)){let e=()=>{Dw(t)||this.unpin()};this._resizeObserver=new bw(t,e)}return!0}_stopPinning(){this.stopListening(W.document,`scroll`),this.stopListening(W.window,`resize`),this._resizeObserver&&=(this._resizeObserver.destroy(),null)}static generatePositions(t={}){let{sideOffset:n=e.arrowSideOffset,heightOffset:r=e.arrowHeightOffset,stickyVerticalOffset:i=e.stickyVerticalOffset,config:a}=t;return{northWestArrowSouthWest:(e,t)=>({top:o(e,t),left:e.left-n,name:`arrow_sw`,...a&&{config:a}}),northWestArrowSouthMiddleWest:(e,t)=>({top:o(e,t),left:e.left-t.width*.25-n,name:`arrow_smw`,...a&&{config:a}}),northWestArrowSouth:(e,t)=>({top:o(e,t),left:e.left-t.width/2,name:`arrow_s`,...a&&{config:a}}),northWestArrowSouthMiddleEast:(e,t)=>({top:o(e,t),left:e.left-t.width*.75+n,name:`arrow_sme`,...a&&{config:a}}),northWestArrowSouthEast:(e,t)=>({top:o(e,t),left:e.left-t.width+n,name:`arrow_se`,...a&&{config:a}}),northArrowSouthWest:(e,t)=>({top:o(e,t),left:e.left+e.width/2-n,name:`arrow_sw`,...a&&{config:a}}),northArrowSouthMiddleWest:(e,t)=>({top:o(e,t),left:e.left+e.width/2-t.width*.25-n,name:`arrow_smw`,...a&&{config:a}}),northArrowSouth:(e,t)=>({top:o(e,t),left:e.left+e.width/2-t.width/2,name:`arrow_s`,...a&&{config:a}}),northArrowSouthMiddleEast:(e,t)=>({top:o(e,t),left:e.left+e.width/2-t.width*.75+n,name:`arrow_sme`,...a&&{config:a}}),northArrowSouthEast:(e,t)=>({top:o(e,t),left:e.left+e.width/2-t.width+n,name:`arrow_se`,...a&&{config:a}}),northEastArrowSouthWest:(e,t)=>({top:o(e,t),left:e.right-n,name:`arrow_sw`,...a&&{config:a}}),northEastArrowSouthMiddleWest:(e,t)=>({top:o(e,t),left:e.right-t.width*.25-n,name:`arrow_smw`,...a&&{config:a}}),northEastArrowSouth:(e,t)=>({top:o(e,t),left:e.right-t.width/2,name:`arrow_s`,...a&&{config:a}}),northEastArrowSouthMiddleEast:(e,t)=>({top:o(e,t),left:e.right-t.width*.75+n,name:`arrow_sme`,...a&&{config:a}}),northEastArrowSouthEast:(e,t)=>({top:o(e,t),left:e.right-t.width+n,name:`arrow_se`,...a&&{config:a}}),southWestArrowNorthWest:e=>({top:s(e),left:e.left-n,name:`arrow_nw`,...a&&{config:a}}),southWestArrowNorthMiddleWest:(e,t)=>({top:s(e),left:e.left-t.width*.25-n,name:`arrow_nmw`,...a&&{config:a}}),southWestArrowNorth:(e,t)=>({top:s(e),left:e.left-t.width/2,name:`arrow_n`,...a&&{config:a}}),southWestArrowNorthMiddleEast:(e,t)=>({top:s(e),left:e.left-t.width*.75+n,name:`arrow_nme`,...a&&{config:a}}),southWestArrowNorthEast:(e,t)=>({top:s(e),left:e.left-t.width+n,name:`arrow_ne`,...a&&{config:a}}),southArrowNorthWest:e=>({top:s(e),left:e.left+e.width/2-n,name:`arrow_nw`,...a&&{config:a}}),southArrowNorthMiddleWest:(e,t)=>({top:s(e),left:e.left+e.width/2-t.width*.25-n,name:`arrow_nmw`,...a&&{config:a}}),southArrowNorth:(e,t)=>({top:s(e),left:e.left+e.width/2-t.width/2,name:`arrow_n`,...a&&{config:a}}),southArrowNorthMiddleEast:(e,t)=>({top:s(e),left:e.left+e.width/2-t.width*.75+n,name:`arrow_nme`,...a&&{config:a}}),southArrowNorthEast:(e,t)=>({top:s(e),left:e.left+e.width/2-t.width+n,name:`arrow_ne`,...a&&{config:a}}),southEastArrowNorthWest:e=>({top:s(e),left:e.right-n,name:`arrow_nw`,...a&&{config:a}}),southEastArrowNorthMiddleWest:(e,t)=>({top:s(e),left:e.right-t.width*.25-n,name:`arrow_nmw`,...a&&{config:a}}),southEastArrowNorth:(e,t)=>({top:s(e),left:e.right-t.width/2,name:`arrow_n`,...a&&{config:a}}),southEastArrowNorthMiddleEast:(e,t)=>({top:s(e),left:e.right-t.width*.75+n,name:`arrow_nme`,...a&&{config:a}}),southEastArrowNorthEast:(e,t)=>({top:s(e),left:e.right-t.width+n,name:`arrow_ne`,...a&&{config:a}}),westArrowEast:(e,t)=>({top:e.top+e.height/2-t.height/2,left:e.left-t.width-r,name:`arrow_e`,...a&&{config:a}}),eastArrowWest:(e,t)=>({top:e.top+e.height/2-t.height/2,left:e.right+r,name:`arrow_w`,...a&&{config:a}}),viewportStickyNorth:(e,t,n)=>{let r=new fw(W.document.body).getIntersection(n.getVisible());if(!r)return null;let o=r.getVisible();return!e.getIntersection(o)||!(o.top-e.top-ithis._showBalloon(),50,{leading:!0});_lastFocusedEditableElement=null;_balloonClass;constructor(e,t={}){super(),this.editor=e,this._balloonClass=t.balloonClass,e.on(`ready`,()=>this._handleEditorReady())}destroy(){let e=this._balloonView;e&&(e.unpin(),this._balloonView=null),this._showBalloonThrottled.cancel(),this.stopListening()}_handleEditorReady(){let e=this.editor;this._isEnabled()&&e.ui.view&&(e.ui.focusTracker.on(`change:isFocused`,(e,t,n)=>{this._updateLastFocusedEditableElement(),n?this._showBalloon():this._hideBalloon()}),e.ui.focusTracker.on(`change:focusedElement`,(e,t,n)=>{this._updateLastFocusedEditableElement(),n&&this._showBalloon()}),e.ui.on(`update`,()=>{this._showBalloonThrottled()}))}_getNormalizedConfig(){return{side:this.editor.locale.contentLanguageDirection===`ltr`?`right`:`left`,position:`border`,verticalOffset:0,horizontalOffset:5}}_showBalloon(){let e=this._getBalloonAttachOptions();e&&(this._balloonView||=this._createBalloonView(),this._balloonView.pin(e))}_hideBalloon(){this._balloonView&&this._balloonView.unpin()}_createBalloonView(){let e=this.editor,t=new HI,n=this._createBadgeContent();return t.content.add(n),this._balloonClass&&(t.class=this._balloonClass),e.ui.view.body.add(t),t}_getBalloonAttachOptions(){if(!this._lastFocusedEditableElement)return null;let e=this._getNormalizedConfig(),t=e.side===`right`?JI(this._lastFocusedEditableElement,e):YI(this._lastFocusedEditableElement,e);return{target:this._lastFocusedEditableElement,positions:[t]}}_updateLastFocusedEditableElement(){let e=this.editor,t=e.ui.focusTracker.isFocused,n=e.ui.focusTracker.focusedElement;if(!t||!n){this._lastFocusedEditableElement=null;return}let r=Array.from(e.ui.getEditableElementsNames()).map(t=>e.ui.getEditableElement(t));r.includes(n)?this._lastFocusedEditableElement=n:this._lastFocusedEditableElement=r[0]}};function JI(e,t){return XI(e,t,(e,n)=>e.left+e.width-n.width-t.horizontalOffset)}function YI(e,t){return XI(e,t,e=>e.left+t.horizontalOffset)}function XI(e,t,n){return(r,i)=>{let a=new fw(e);if(a.widthe.preventDefault())}}]})}},eL=class extends bI{toggleSwitchView;constructor(e){super(e),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:`ck-switchbutton`}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){let e=new $;return e.setTemplate({tag:`span`,attributes:{class:[`ck`,`ck-button__toggle`]},children:[{tag:`span`,attributes:{class:[`ck`,`ck-button__toggle__inner`]}}]}),e}},tL=rL(FI),nL=class extends tL{};function rL(e){class t extends e{_fileInputView;constructor(...e){super(...e),this._fileInputView=new iL(this.locale),this._fileInputView.bind(`acceptedType`).to(this),this._fileInputView.bind(`allowMultipleFiles`).to(this),this._fileInputView.delegate(`done`).to(this),this.on(`execute`,()=>{this._fileInputView.open()}),this.extendTemplate({attributes:{class:`ck-file-dialog-button`}})}render(){super.render(),this.children.add(this._fileInputView)}}return t}var iL=class extends ${constructor(e){super(e),this.set(`acceptedType`,void 0),this.set(`allowMultipleFiles`,!1);let t=this.bindTemplate;this.setTemplate({tag:`input`,attributes:{class:[`ck-hidden`],type:`file`,tabindex:`-1`,accept:t.to(`acceptedType`),multiple:t.to(`allowMultipleFiles`)},on:{change:t.to(()=>{this.element?.files?.length&&this.fire(`done`,this.element.files),this.element.value=``})}})}open(){this.element.click()}},aL=class extends ${fieldView;labelView;statusView;fieldWrapperChildren;constructor(e,t){super(e);let n=`ck-labeled-field-view-${ZS()}`,r=`ck-labeled-field-view-status-${ZS()}`;this.fieldView=t(this,n,r),this.set(`label`,void 0),this.set(`isEnabled`,!0),this.set(`isEmpty`,!0),this.set(`isFocused`,!1),this.set(`errorText`,null),this.set(`infoText`,null),this.set(`class`,void 0),this.set(`placeholder`,void 0),this.labelView=this._createLabelView(n),this.statusView=this._createStatusView(r),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind(`_statusText`).to(this,`errorText`,this,`infoText`,(e,t)=>e||t);let i=this.bindTemplate;this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-labeled-field-view`,i.to(`class`),i.if(`isEnabled`,`ck-disabled`,e=>!e),i.if(`isEmpty`,`ck-labeled-field-view_empty`),i.if(`isFocused`,`ck-labeled-field-view_focused`),i.if(`placeholder`,`ck-labeled-field-view_placeholder`),i.if(`errorText`,`ck-error`)]},children:[{tag:`div`,attributes:{class:[`ck`,`ck-labeled-field-view__input-wrapper`]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(e){let t=new mI(this.locale);return t.for=e,t.bind(`text`).to(this,`label`),t}_createStatusView(e){let t=new $(this.locale),n=this.bindTemplate;return t.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-labeled-field-view__status`,n.if(`errorText`,`ck-labeled-field-view__status_error`),n.if(`_statusText`,`ck-hidden`,e=>!e)],id:e,role:n.if(`errorText`,`alert`)},children:[{text:n.to(`_statusText`)}]}),t}focus(e){this.fieldView.focus(e)}},oL=class extends ${focusTracker;constructor(e){super(e),this.set(`value`,void 0),this.set(`id`,void 0),this.set(`placeholder`,void 0),this.set(`tabIndex`,void 0),this.set(`isReadOnly`,!1),this.set(`hasError`,!1),this.set(`ariaDescribedById`,void 0),this.set(`ariaLabel`,void 0),this.focusTracker=new vT,this.bind(`isFocused`).to(this.focusTracker),this.set(`isEmpty`,!0);let t=this.bindTemplate;this.setTemplate({tag:`input`,attributes:{class:[`ck`,`ck-input`,t.if(`isFocused`,`ck-input_focused`),t.if(`isEmpty`,`ck-input-text_empty`),t.if(`hasError`,`ck-error`)],id:t.to(`id`),placeholder:t.to(`placeholder`),tabindex:t.to(`tabIndex`),readonly:t.to(`isReadOnly`),"aria-invalid":t.if(`hasError`,!0),"aria-describedby":t.to(`ariaDescribedById`),"aria-label":t.to(`ariaLabel`)},on:{input:t.to((...e)=>{this.fire(`input`,...e),this._updateIsEmpty()}),change:t.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on(`change:value`,(e,t,n)=>{this._setDomElementValue(n),this._updateIsEmpty()})}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}reset(){this.value=this.element.value=``,this._updateIsEmpty()}_updateIsEmpty(){this.isEmpty=sL(this.element)}_setDomElementValue(e){this.element.value=!e&&e!==0?``:e}};function sL(e){return!e.value}var cL=class extends oL{constructor(e){super(e),this.set(`inputMode`,`text`);let t=this.bindTemplate;this.extendTemplate({attributes:{inputmode:t.to(`inputMode`)}})}},lL=class extends cL{constructor(e){super(e),this.extendTemplate({attributes:{type:`text`,class:[`ck-input-text`]}})}},uL=class extends ${children;constructor(e){super(e);let t=this.bindTemplate;this.set(`isVisible`,!1),this.set(`position`,`se`),this.children=this.createCollection(),this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-reset`,`ck-dropdown__panel`,t.to(`position`,e=>`ck-dropdown__panel_${e}`),t.if(`isVisible`,`ck-dropdown__panel-visible`)],tabindex:`-1`},children:this.children,on:{selectstart:t.to(e=>{let t=e.target;t instanceof Element&&t.tagName.toLocaleLowerCase()===`input`||e.preventDefault()})}})}focus(){if(this.children.length){let e=this.children.first;typeof e.focus==`function`?e.focus():tC(`ui-dropdown-panel-focus-child-missing-focus`,{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){let e=this.children.last;typeof e.focusLast==`function`?e.focusLast():e.focus()}}},dL=class e extends ${buttonView;panelView;focusTracker;keystrokes;listView;toolbarView;menuView;constructor(e,t,n){super(e);let r=this.bindTemplate;this.buttonView=t,this.panelView=n,this.set(`isOpen`,!1),this.set(`isEnabled`,!0),this.set(`class`,void 0),this.set(`id`,void 0),this.set(`panelPosition`,`auto`),this.panelView.bind(`isVisible`).to(this,`isOpen`),this.keystrokes=new CT,this.focusTracker=new vT,this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-dropdown`,r.to(`class`),r.if(`isEnabled`,`ck-disabled`,e=>!e)],id:r.to(`id`),"aria-describedby":r.to(`ariaDescribedById`)},children:[t,n]}),t.extendTemplate({attributes:{class:[`ck-dropdown__button`],"data-cke-tooltip-disabled":r.to(`isOpen`)}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,`open`,()=>{this.isOpen=!this.isOpen}),this.on(`change:isOpen`,(t,n,r)=>{if(r)if(this.panelPosition===`auto`){let t=e._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=t?t.name:this._defaultPanelPositionName}else this.panelView.position=this.panelPosition}),this.keystrokes.listenTo(this.element);let t=(e,t)=>{this.isOpen&&(this.isOpen=!1,t())};this.keystrokes.set(`arrowdown`,(e,t)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,t())}),this.keystrokes.set(`arrowright`,(e,t)=>{this.isOpen&&t()}),this.keystrokes.set(`arrowleft`,t),this.keystrokes.set(`esc`,t)}focus(){this.buttonView.focus()}get _panelPositions(){let{south:t,north:n,southEast:r,southWest:i,northEast:a,northWest:o,southMiddleEast:s,southMiddleWest:c,northMiddleEast:l,northMiddleWest:u}=e.defaultPanelPositions;return this.locale.uiLanguageDirection===`rtl`?[i,r,c,s,t,o,a,u,l,n]:[r,i,s,c,t,a,o,l,u,n]}get _defaultPanelPositionName(){return this.locale.uiLanguageDirection===`rtl`?`sw`:`se`}static defaultPanelPositions={south:(e,t)=>({top:e.bottom,left:e.left-(t.width-e.width)/2,name:`s`}),southEast:e=>({top:e.bottom,left:e.left,name:`se`}),southWest:(e,t)=>({top:e.bottom,left:e.left-t.width+e.width,name:`sw`}),southMiddleEast:(e,t)=>({top:e.bottom,left:e.left-(t.width-e.width)/4,name:`sme`}),southMiddleWest:(e,t)=>({top:e.bottom,left:e.left-(t.width-e.width)*3/4,name:`smw`}),north:(e,t)=>({top:e.top-t.height,left:e.left-(t.width-e.width)/2,name:`n`}),northEast:(e,t)=>({top:e.top-t.height,left:e.left,name:`ne`}),northWest:(e,t)=>({top:e.top-t.height,left:e.left-t.width+e.width,name:`nw`}),northMiddleEast:(e,t)=>({top:e.top-t.height,left:e.left-(t.width-e.width)/4,name:`nme`}),northMiddleWest:(e,t)=>({top:e.top-t.height,left:e.left-(t.width-e.width)*3/4,name:`nmw`})};static _getOptimalPosition=Ow},fL=class extends bI{arrowView;constructor(e){super(e),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to(`isOn`,e=>String(e))}}),this.delegate(`execute`).to(this,`open`)}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){let e=new vI;return e.content=LP,e.extendTemplate({attributes:{class:`ck-dropdown__arrow`}}),e}},pL=class extends ${children;constructor(e){super(e);let t=this.bindTemplate;this.set(`isVisible`,!0),this.children=this.createCollection(),this.setTemplate({tag:`li`,attributes:{class:[`ck`,`ck-list__item`,t.if(`isVisible`,`ck-hidden`,e=>!e)],role:`presentation`},children:this.children})}focus(){this.children.first&&this.children.first.focus()}},mL=class extends ${constructor(e){super(e),this.setTemplate({tag:`li`,attributes:{class:[`ck`,`ck-list__separator`]}})}},hL=class extends ${labelView;items;children;constructor(e,t=new mI){super(e);let n=this.bindTemplate,r=new gL(e);this.set({label:``,isVisible:!0}),this.labelView=t,this.labelView.bind(`text`).to(this,`label`),this.children=this.createCollection(),this.children.addMany([this.labelView,r]),r.set({role:`group`,ariaLabelledBy:t.id}),r.focusTracker.destroy(),r.keystrokes.destroy(),this.items=r.items,this.setTemplate({tag:`li`,attributes:{role:`presentation`,class:[`ck`,`ck-list__group`,n.if(`isVisible`,`ck-hidden`,e=>!e)]},children:this.children})}focus(){if(this.items){let e=this.items.find(e=>!(e instanceof mL));e&&e.focus()}}},gL=class extends ${focusables;items;focusTracker;keystrokes;_focusCycler;_listItemGroupToChangeListeners=new WeakMap;constructor(e){super(e);let t=this.bindTemplate;this.focusables=new EF,this.items=this.createCollection(),this.focusTracker=new vT,this.keystrokes=new CT,this._focusCycler=new wI({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:`arrowup`,focusNext:`arrowdown`}}),this.set(`ariaLabel`,void 0),this.set(`ariaLabelledBy`,void 0),this.set(`role`,void 0),this.setTemplate({tag:`ul`,attributes:{class:[`ck`,`ck-reset`,`ck-list`],role:t.to(`role`),"aria-label":t.to(`ariaLabel`),"aria-labelledby":t.to(`ariaLabelledBy`)},children:this.items})}render(){super.render();for(let e of this.items)e instanceof hL?this._registerFocusableItemsGroup(e):e instanceof pL&&this._registerFocusableListItem(e);this.items.on(`change`,(e,t)=>{for(let e of t.removed)e instanceof hL?this._deregisterFocusableItemsGroup(e):e instanceof pL&&this._deregisterFocusableListItem(e);for(let e of Array.from(t.added).reverse())e instanceof hL?this._registerFocusableItemsGroup(e,t.index):this._registerFocusableListItem(e,t.index)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}_registerFocusableListItem(e,t){this.focusTracker.add(e.element),this.focusables.add(e,t)}_deregisterFocusableListItem(e){this.focusTracker.remove(e.element),this.focusables.remove(e)}_getOnGroupItemsChangeCallback(e){return(t,n)=>{for(let e of n.removed)this._deregisterFocusableListItem(e);for(let t of Array.from(n.added).reverse())this._registerFocusableListItem(t,this.items.getIndex(e)+n.index)}}_registerFocusableItemsGroup(e,t){Array.from(e.items).forEach((e,n)=>{let r=t===void 0?void 0:t+n;this._registerFocusableListItem(e,r)});let n=this._getOnGroupItemsChangeCallback(e);this._listItemGroupToChangeListeners.set(e,n),e.items.on(`change`,n)}_deregisterFocusableItemsGroup(e){for(let t of e.items)this._deregisterFocusableListItem(t);e.items.off(`change`,this._listItemGroupToChangeListeners.get(e)),this._listItemGroupToChangeListeners.delete(e)}},_L=class extends ${constructor(e){super(e),this.setTemplate({tag:`span`,attributes:{class:[`ck`,`ck-toolbar__separator`]}})}},vL=class extends ${constructor(e){super(e),this.setTemplate({tag:`span`,attributes:{class:[`ck`,`ck-toolbar__line-break`]}})}};function yL(e){return e.bindTemplate.to(t=>{t.target===e.element&&t.preventDefault()})}function bL(e){if(Array.isArray(e))return{items:e,removeItems:[]};let t={items:[],removeItems:[]};return e?{...t,...e}:t}var xL={alignLeft:AP,bold:jP,importExport:RP,paragraph:UP,plus:KP,text:aF,threeVerticalDots:oF,pilcrow:GP,dragIndicator:IP},SL=class extends ${options;items;focusTracker;keystrokes;itemsView;children;focusables;_focusCycler;_behavior;constructor(e,t){super(e);let n=this.bindTemplate,r=this.t;this.options=t||{},this.set(`ariaLabel`,r(`Editor toolbar`)),this.set(`maxWidth`,`auto`),this.set(`role`,`toolbar`),this.set(`isGrouping`,!!this.options.shouldGroupWhenFull),this.items=this.createCollection(),this.focusTracker=new vT,this.keystrokes=new CT,this.set(`class`,void 0),this.set(`isCompact`,!1),this.set(`isVertical`,!1),this.itemsView=new CL(e),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();let i=e.uiLanguageDirection===`rtl`;this._focusCycler=new wI({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[i?`arrowright`:`arrowleft`,`arrowup`],focusNext:[i?`arrowleft`:`arrowright`,`arrowdown`]}});let a=[`ck`,`ck-toolbar`,n.to(`class`),n.if(`isCompact`,`ck-toolbar_compact`),n.if(`isGrouping`,`ck-toolbar_grouping`),n.if(`isVertical`,`ck-toolbar_vertical`)];this.options.shouldGroupWhenFull&&this.options.isFloating&&a.push(`ck-toolbar_floating`),this.setTemplate({tag:`div`,attributes:{class:a,role:n.to(`role`),"aria-label":n.to(`ariaLabel`),style:{maxWidth:n.to(`maxWidth`)},tabindex:-1},children:this.children,on:{mousedown:yL(this)}}),this._behavior=this.options.shouldGroupWhenFull?new TL(this):new wL(this)}render(){super.render(),this.focusTracker.add(this.element);for(let e of this.items)this.focusTracker.add(e);this.items.on(`add`,(e,t)=>{this.focusTracker.add(t)}),this.items.on(`remove`,(e,t)=>{this.focusTracker.remove(t)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(e,t,n){this.items.addMany(this._buildItemsFromConfig(e,t,n))}switchBehavior(e){this._behavior.type!==e&&(this._behavior.destroy(),this.itemsView.children.clear(),this.focusables.clear(),e===`dynamic`?(this._behavior=new TL(this),this._behavior.render(this),this._behavior.refreshItems()):(this._behavior=new wL(this),this._behavior.render(this)))}_buildItemsFromConfig(e,t,n){let r=bL(e),i=n||r.removeItems;return this._cleanItemsConfiguration(r.items,t,i).map(e=>Mb(e)?this._createNestedToolbarDropdown(e,t,i):e===`|`?new _L:e===`-`?new vL:t.create(e)).filter(e=>!!e)}_cleanItemsConfiguration(e,t,n){let r=e.filter((e,r,i)=>e===`|`?!0:n.indexOf(e)===-1?e===`-`?this.options.shouldGroupWhenFull?(tC(`toolbarview-line-break-ignored-when-grouping-items`,i),!1):!0:!Mb(e)&&!t.has(e)?(tC(`toolbarview-item-unavailable`,{item:e}),!1):!0:!1);return this._cleanSeparatorsAndLineBreaks(r)}_cleanSeparatorsAndLineBreaks(e){let t=e=>e!==`-`&&e!==`|`,n=e.length,r=e.findIndex(t);if(r===-1)return[];let i=n-e.slice().reverse().findIndex(t);return e.slice(r,i).filter((e,n,r)=>t(e)?!0:!(n>0&&r[n-1]===e))}_createNestedToolbarDropdown(e,t,n){let{label:r,icon:i,items:a,tooltip:o=!0,withText:s=!1}=e;if(a=this._cleanItemsConfiguration(a,t,n),!a.length)return null;let c=this.locale,l=DL(c);return r||tC(`toolbarview-nested-toolbar-dropdown-missing-label`,e),l.class=`ck-toolbar__nested-toolbar-dropdown`,l.buttonView.set({label:r,tooltip:o,withText:!!s}),i===!1?l.buttonView.withText=!0:l.buttonView.icon=xL[i]||i||``,OL(l,()=>l.toolbarView._buildItemsFromConfig(a,t,n)),l}},CL=class extends ${children;constructor(e){super(e),this.children=this.createCollection(),this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-toolbar__items`]},children:this.children})}},wL=class{type=`static`;constructor(e){e.isGrouping=!1,e.itemsView.children.bindTo(e.items).using(e=>e),e.focusables.bindTo(e.items).using(e=>EI(e)?e:null)}render(){}destroy(){}},TL=class{type=`dynamic`;view;viewChildren;viewFocusables;viewItemsView;viewFocusTracker;viewLocale;ungroupedItems;groupedItems;groupedItemsDropdown;resizeObserver=null;cachedPadding=null;shouldUpdateGroupingOnNextResize=!1;viewElement;constructor(e){this.view=e,this.viewChildren=e.children,this.viewFocusables=e.focusables,this.viewItemsView=e.itemsView,this.viewFocusTracker=e.focusTracker,this.viewLocale=e.locale,this.view.isGrouping=!0,this.ungroupedItems=e.createCollection(),this.groupedItems=e.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),e.itemsView.children.bindTo(this.ungroupedItems).using(e=>e),this.ungroupedItems.on(`change`,this._updateFocusCyclableItems.bind(this)),e.children.on(`change`,this._updateFocusCyclableItems.bind(this)),e.items.on(`change`,(e,t)=>{let n=t.index,r=Array.from(t.added);for(let e of t.removed)n>=this.ungroupedItems.length?this.groupedItems.remove(e):this.ungroupedItems.remove(e);for(let e=n;ethis.ungroupedItems.length?this.groupedItems.add(t,e-this.ungroupedItems.length):this.ungroupedItems.add(t,e)}this._updateGrouping()})}render(e){this.viewElement=e.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(e)}destroy(){this.groupedItemsDropdown.destroy(),this.viewChildren.length>1&&(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last)),this.resizeObserver.destroy()}refreshItems(){let e=this.view;if(e.items.length){for(let t=0;tr.right-this.cachedPadding:n.left{(!e||e!==t.contentRect.width||this.shouldUpdateGroupingOnNextResize)&&(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),e=t.contentRect.width)}),this._updateGrouping()}_enableGroupingOnMaxWidthChange(e){e.on(`change:maxWidth`,()=>{this._updateGrouping()})}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new _L),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){let e=this.viewLocale,t=e.t,n=DL(e);return n.class=`ck-toolbar__grouped-dropdown`,n.panelPosition=e.uiLanguageDirection===`ltr`?`sw`:`se`,OL(n,this.groupedItems),n.buttonView.set({label:t(`Show more items`),tooltip:!0,tooltipPosition:e.uiLanguageDirection===`rtl`?`se`:`sw`,icon:oF}),n}_updateFocusCyclableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(e=>{EI(e)&&this.viewFocusables.add(e)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}},EL=class extends ${children;actionView;arrowView;keystrokes;focusTracker;constructor(e,t){super(e);let n=this.bindTemplate;this.set(`class`,void 0),this.set(`labelStyle`,void 0),this.set(`icon`,void 0),this.set(`isEnabled`,!0),this.set(`isOn`,!1),this.set(`isToggleable`,!1),this.set(`isVisible`,!0),this.set(`keystroke`,void 0),this.set(`withKeystroke`,!1),this.set(`label`,void 0),this.set(`tabindex`,-1),this.set(`tooltip`,!1),this.set(`tooltipPosition`,`s`),this.set(`type`,`button`),this.set(`withText`,!1),this.children=this.createCollection(),this.actionView=this._createActionView(t),this.arrowView=this._createArrowView(),this.keystrokes=new CT,this.focusTracker=new vT,this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-splitbutton`,n.to(`class`),n.if(`isVisible`,`ck-hidden`,e=>!e),this.arrowView.bindTemplate.if(`isOn`,`ck-splitbutton_open`)]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set(`arrowright`,(e,t)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),t())}),this.keystrokes.set(`arrowleft`,(e,t)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),t())})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(e){let t=e||new bI;return e||t.bind(`icon`,`isEnabled`,`isOn`,`isToggleable`,`keystroke`,`label`,`tabindex`,`tooltip`,`tooltipPosition`,`type`,`withText`).to(this),t.extendTemplate({attributes:{class:`ck-splitbutton__action`}}),t.delegate(`execute`).to(this),t}_createArrowView(){let e=new bI,t=e.bindTemplate;return e.icon=LP,e.extendTemplate({attributes:{class:[`ck-splitbutton__arrow`],"data-cke-tooltip-disabled":t.to(`isOn`),"aria-haspopup":!0,"aria-expanded":t.to(`isOn`,e=>String(e))}}),e.bind(`isEnabled`).to(this),e.bind(`label`).to(this),e.bind(`tooltip`).to(this),e.delegate(`execute`).to(this,`open`),e}};function DL(e,t=fL){let n=typeof t==`function`?new t(e):t,r=new dL(e,n,new uL(e));return n.bind(`isEnabled`).to(r),n instanceof EL?n.arrowView.bind(`isOn`).to(r,`isOpen`):n.bind(`isOn`).to(r,`isOpen`),NL(r),r}function OL(e,t,n={}){e.extendTemplate({attributes:{class:[`ck-toolbar-dropdown`]}}),e.isOpen?kL(e,t,n):e.once(`change:isOpen`,()=>kL(e,t,n),{priority:`highest`}),n.enableActiveItemFocusOnDropdownOpen&&ML(e,()=>e.toolbarView.items.find(e=>e.isOn))}function kL(e,t,n){let r=e.locale,i=r.t,a=e.toolbarView=new SL(r),o=typeof t==`function`?t():t;a.ariaLabel=n.ariaLabel||i(`Dropdown toolbar`),n.maxWidth&&(a.maxWidth=n.maxWidth),n.class&&(a.class=n.class),n.isCompact&&(a.isCompact=n.isCompact),n.isVertical&&(a.isVertical=!0),o instanceof EF?a.items.bindTo(o).using(e=>e):a.items.addMany(o),e.panelView.children.add(a),e.focusTracker.add(a),a.items.delegate(`execute`).to(e)}function AL(e,t,n={}){e.isOpen?jL(e,t,n):e.once(`change:isOpen`,()=>jL(e,t,n),{priority:`highest`}),ML(e,()=>e.listView.items.find(e=>e instanceof pL&&e.children.first.isOn))}function jL(e,t,n){let r=e.locale,i=e.listView=new gL(r),a=typeof t==`function`?t():t;i.ariaLabel=n.ariaLabel,i.role=n.role,VL(e,i.items,a,r),e.panelView.children.add(i),i.items.delegate(`execute`).to(e)}function ML(e,t){e.on(`change:isOpen`,()=>{if(!e.isOpen)return;let n=t();n&&(typeof n.focus==`function`?n.focus():tC(`ui-dropdown-focus-child-on-open-child-missing-focus`,{view:n}))},{priority:QS.low-10})}function NL(e){PL(e),IL(e),LL(e),RL(e),zL(e),BL(e)}function PL(e){lI({emitter:e,activator:()=>e.isRendered&&e.isOpen,callback:()=>{e.isOpen=!1},contextElements:()=>[e.element,...FL(e.focusTracker).filter(t=>!e.element.contains(t))]})}function FL(e){return[...e.elements,...e.externalViews.flatMap(e=>FL(e.focusTracker))]}function IL(e){e.on(`execute`,t=>{t.source instanceof eL||(e.isOpen=!1)})}function LL(e){e.focusTracker.on(`change:isFocused`,(t,n,r)=>{r||!e.isOpen||(e.isOpen=!1)})}function RL(e){e.keystrokes.set(`arrowdown`,(t,n)=>{e.isOpen&&(e.panelView.focus(),n())}),e.keystrokes.set(`arrowup`,(t,n)=>{e.isOpen&&(e.panelView.focusLast(),n())})}function zL(e){e.on(`change:isOpen`,(t,n,r)=>{r||e.focusTracker.elements.some(e=>e.contains(W.document.activeElement))&&e.buttonView.focus()})}function BL(e){e.on(`change:isOpen`,(t,n,r)=>{r&&e.panelView.focus()},{priority:`low`})}function VL(e,t,n,r){HL(t),t.bindTo(n).using(t=>{if(t.type===`separator`)return new mL(r);if(t.type===`group`){let n=new hL(r);return n.set({label:t.label}),VL(e,n.items,t.items,r),n.items.delegate(`execute`).to(e),n}else if(t.type===`button`||t.type===`switchbutton`){let e=t.model.role===`menuitemcheckbox`||t.model.role===`menuitemradio`,n=new pL(r),i;return t.type===`button`?(i=new FI(r,t.labelView),i.set({isToggleable:e})):i=new eL(r),i.bind(...Object.keys(t.model)).to(t.model),i.delegate(`execute`).to(n),n.children.add(i),n}return null})}function HL(e){let t=0,n=e=>!(e instanceof pL)||!(e.children.first instanceof FI)?null:e.children.first,r=e=>{let t=n(e);return!t||!t.isToggleable?null:t},i=t=>{for(let r of e){let e=n(r);e&&(e.hasCheckSpace=t)}};e.on(`change`,(e,a)=>{let o=t>0;for(let e of a.removed)r(e)&&t--;for(let e of a.added){let r=n(e);r&&(r.isToggleable&&t++,r.hasCheckSpace=t>0)}let s=t>0;o!==s&&i(s)})}var UL=(e,t,n)=>{let r=new lL(e.locale);return r.set({id:t,ariaDescribedById:n}),r.bind(`isReadOnly`).to(e,`isEnabled`,e=>!e),r.bind(`hasError`).to(e,`errorText`,e=>!!e),r.on(`input`,()=>{e.errorText=null}),e.bind(`isEmpty`,`isFocused`,`placeholder`).to(r),r},WL=class{editor;_components=new Map;constructor(e){this.editor=e}*names(){for(let e of this._components.values())yield e.originalName}add(e,t){this._components.set(GL(e),{callback:t,originalName:e})}create(e){if(!this.has(e))throw new K(`componentfactory-item-missing`,this,{name:e});return this._components.get(GL(e)).callback(this.editor.locale)}has(e){return this._components.has(GL(e))}};function GL(e){return String(e).toLowerCase()}var KL=`ck-tooltip`,qL=$C(),JL=class e extends qL{tooltipTextView;balloonPanelView;static defaultBalloonPositions=HI.generatePositions({heightOffset:5,sideOffset:13});_currentElementWithTooltip=null;_currentTooltipPosition=null;_mutationObserver=null;_pinTooltipDebounced;_unpinTooltipDebounced;_watchdogExcluded;static _editors=new Set;static _instance=null;constructor(t){if(super(),e._editors.add(t),e._instance)return e._instance;e._instance=this,this.tooltipTextView=new $(t.locale),this.tooltipTextView.set(`text`,``),this.tooltipTextView.setTemplate({tag:`span`,attributes:{class:[`ck`,`ck-tooltip__text`]},children:[{text:this.tooltipTextView.bindTemplate.to(`text`)}]}),this.balloonPanelView=new HI(t.locale),this.balloonPanelView.class=KL,this.balloonPanelView.content.add(this.tooltipTextView),this._mutationObserver=ZL(()=>{this._updateTooltipPosition()}),this._pinTooltipDebounced=Kx(this._pinTooltip,600),this._unpinTooltipDebounced=Kx(this._unpinTooltip,400),this.listenTo(W.document,`keydown`,this._onKeyDown.bind(this),{useCapture:!0}),this.listenTo(W.document,`mouseenter`,this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(W.document,`mouseleave`,this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(W.document,`focus`,this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(W.document,`blur`,this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(W.document,`scroll`,this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(t){let n=t.ui.view&&t.ui.view.body;e._editors.delete(t),this.stopListening(t.ui),n&&n.has(this.balloonPanelView)&&n.remove(this.balloonPanelView),e._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),e._instance=null)}static getPositioningFunctions(t){let n=e.defaultBalloonPositions;return{s:[n.southArrowNorth,n.southArrowNorthEast,n.southArrowNorthWest],n:[n.northArrowSouth],e:[n.eastArrowWest],w:[n.westArrowEast],sw:[n.southArrowNorthEast],se:[n.southArrowNorthWest]}[t]}_onKeyDown(e,t){t.key===`Escape`&&this._currentElementWithTooltip&&(this._unpinTooltip(),t.stopPropagation())}_onEnterOrFocus(e,{target:t}){let n=YL(t);if(!n){e.name===`focus`&&this._unpinTooltip();return}if(n===this._currentElementWithTooltip){this._unpinTooltipDebounced.cancel();return}this._unpinTooltip(),e.name===`focus`&&!n.matches(`:hover`)||n.matches(`[data-cke-tooltip-instant]`)?this._pinTooltip(n,XL(n)):this._pinTooltipDebounced(n,XL(n))}_onLeaveOrBlur(e,{target:t,relatedTarget:n}){if(e.name===`mouseleave`){if(!wS(t))return;let e=this.balloonPanelView.element,r=e&&(e===n||e.contains(n)),i=!r&&t===e;if(r){this._unpinTooltipDebounced.cancel();return}if(!i&&this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;let a=YL(t),o=YL(n);(i||a&&a!==o)&&(this._pinTooltipDebounced.cancel(),this._currentElementWithTooltip&&this._currentElementWithTooltip.matches(`[data-cke-tooltip-instant]`)||a&&a.matches(`[data-cke-tooltip-instant]`)?this._unpinTooltip():this._unpinTooltipDebounced())}else{if(this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;this._pinTooltipDebounced.cancel(),this._unpinTooltipDebounced()}}_onScroll(e,{target:t}){this._currentElementWithTooltip&&(t.contains(this.balloonPanelView.element)&&t.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(t,{text:n,position:r,cssClass:i}){this._unpinTooltip();let a=gT(e._editors.values()).ui.view.body;a.has(this.balloonPanelView)||a.add(this.balloonPanelView),this.tooltipTextView.text=n,this.balloonPanelView.class=[KL,i].filter(e=>e).join(` `),this.balloonPanelView.pin({target:t,positions:e.getPositioningFunctions(r)}),this._mutationObserver.attach(t);for(let t of e._editors)this.listenTo(t.ui,`update`,this._updateTooltipPosition.bind(this),{priority:`low`});this._currentElementWithTooltip=t,this._currentTooltipPosition=r}_unpinTooltip(){this._unpinTooltipDebounced.cancel(),this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(let t of e._editors)this.stopListening(t.ui,`update`);this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this.tooltipTextView.text=``,this._mutationObserver.detach()}_updateTooltipPosition(){if(!this._currentElementWithTooltip)return;let t=XL(this._currentElementWithTooltip);if(!Dw(this._currentElementWithTooltip)||!t.text){this._unpinTooltip();return}this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:e.getPositioningFunctions(t.position)})}};function YL(e){return wS(e)?e.closest(`[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])`):null}function XL(e){return{text:e.dataset.ckeTooltipText,position:e.dataset.ckeTooltipPosition||`s`,cssClass:e.dataset.ckeTooltipClass||``}}function ZL(e){let t=new MutationObserver(()=>{e()});return{attach(e){t.observe(e,{attributes:!0,attributeFilter:[`data-cke-tooltip-text`,`data-cke-tooltip-position`]})},detach(){t.disconnect()}}}var QL=class extends qI{licenseTypeMessage={evaluation:`For evaluation purposes only`,trial:`For evaluation purposes only`,development:`For development purposes only`};constructor(e){super(e,{balloonClass:`ck-evaluation-badge-balloon`})}_isEnabled(){let e=eR(this.editor.config.get(`licenseKey`));return!!(e&&this.licenseTypeMessage[e])}_createBadgeContent(){let e=eR(this.editor.config.get(`licenseKey`));return new $L(this.editor.locale,this.licenseTypeMessage[e])}_getNormalizedConfig(){let e=super._getNormalizedConfig(),t=this.editor.config.get(`ui.poweredBy`)||{};return{position:t.position||e.position,side:(t.side||e.side)===`left`?`right`:`left`,verticalOffset:e.verticalOffset,horizontalOffset:e.horizontalOffset}}},$L=class extends ${constructor(e,t){super(e),this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-evaluation-badge`],"aria-hidden":!0},children:[{tag:`span`,attributes:{class:[`ck`,`ck-evaluation-badge__label`]},children:[t]}]})}};function eR(e){if(e==`GPL`)return`GPL`;let t=OT(e.split(`.`)[1]);return t?t.licenseType||`production`:null}var tR=class extends pL{constructor(e,t){super(e);let n=this.bindTemplate;this.extendTemplate({attributes:{class:[`ck-menu-bar__menu__item`]},on:{mouseenter:n.to(`mouseenter`)}}),this.delegate(`mouseenter`).to(t)}},nR=5,rR={toggleMenusAndFocusItemsOnHover(e){e.on(`menu:mouseenter`,t=>{if(!(!e.isFocusBorderEnabled&&!e.isOpen)){if(e.isOpen)for(let n of e.menus){let e=t.path[0],r=e instanceof tR&&e.children.first===n;n.isOpen=(t.path.includes(n)||r)&&n.isEnabled}t.source.focus()}})},focusCycleMenusOnArrows(e){let t=e.locale.uiLanguageDirection===`rtl`;e.on(`menu:arrowright`,e=>{n(e.source,t?-1:1)}),e.on(`menu:arrowleft`,e=>{n(e.source,t?1:-1)});function n(t,n){let r=e.children.getIndex(t),i=t.isOpen,a=e.children.length,o=e.children.get((r+a+n)%a);t.isOpen=!1,i&&(o.isOpen=!0),o.buttonView.focus()}},closeMenusWhenTheBarCloses(e){e.on(`change:isOpen`,()=>{e.isOpen||e.menus.forEach(e=>{e.isOpen=!1})})},closeMenuWhenAnotherOnTheSameLevelOpens(e){e.on(`menu:change:isOpen`,(t,n,r)=>{r&&e.menus.filter(e=>t.source.parentMenuView===e.parentMenuView&&t.source!==e&&e.isOpen).forEach(e=>{e.isOpen=!1})})},closeOnClickOutside(e){lI({emitter:e,activator:()=>e.isOpen,callback:()=>e.close(),contextElements:()=>e.children.map(e=>e.element)})},enableFocusHighlightOnInteraction(e){let t=!1;e.on(`change:isOpen`,(n,r,i)=>{i||(t||(e.isFocusBorderEnabled=!1),t=!1)}),e.listenTo(e.element,`keydown`,()=>{t=!0},{useCapture:!0}),e.listenTo(e.element,`keyup`,()=>{t=!1},{useCapture:!0}),e.listenTo(e.element,`focus`,()=>{t&&(e.isFocusBorderEnabled=!0)},{useCapture:!0})}},iR={openAndFocusPanelOnArrowDownKey(e){e.keystrokes.set(`arrowdown`,(t,n)=>{e.isEnabled&&e.focusTracker.focusedElement===e.buttonView.element&&(e.isOpen||=!0,e.panelView.focus(),n())})},openOnArrowRightKey(e){let t=e.locale.uiLanguageDirection===`rtl`?`arrowleft`:`arrowright`;e.keystrokes.set(t,(t,n)=>{e.focusTracker.focusedElement!==e.buttonView.element||!e.isEnabled||(e.isOpen||=!0,e.panelView.focus(),n())})},openOnButtonClick(e){e.buttonView.on(`execute`,()=>{e.isOpen=!0})},toggleOnButtonClick(e){e.buttonView.on(`execute`,()=>{e.isOpen=!e.isOpen})},openAndFocusOnEnterKeyPress(e){e.keystrokes.set(`enter`,(t,n)=>{e.focusTracker.focusedElement===e.buttonView.element&&(e.isOpen=!0,e.panelView.focus(),n())})},closeOnArrowLeftKey(e){let t=e.locale.uiLanguageDirection===`rtl`?`arrowright`:`arrowleft`;e.keystrokes.set(t,(t,n)=>{e.isOpen&&(e.isOpen=!1,e.focus(),n())})},closeOnEscKey(e){e.keystrokes.set(`esc`,(t,n)=>{e.isOpen&&(e.isOpen=!1,e.focus(),n())})},closeOnParentClose(e){e.parentMenuView.on(`change:isOpen`,(t,n,r)=>{!r&&t.source===e.parentMenuView&&(e.isOpen=!1)})}},aR={southEast:e=>({top:e.bottom,left:e.left,name:`se`}),southWest:(e,t)=>({top:e.bottom,left:e.left-t.width+e.width,name:`sw`}),northEast:(e,t)=>({top:e.top-t.height,left:e.left,name:`ne`}),northWest:(e,t)=>({top:e.top-t.height,left:e.left-t.width+e.width,name:`nw`}),eastSouth:e=>({top:e.top,left:e.right-nR,name:`es`}),eastNorth:(e,t)=>({top:e.top-t.height,left:e.right-nR,name:`en`}),westSouth:(e,t)=>({top:e.top,left:e.left-t.width+nR,name:`ws`}),westNorth:(e,t)=>({top:e.top-t.height,left:e.left-t.width+nR,name:`wn`})},oR=[{menuId:`file`,label:`File`,groups:[{groupId:`export`,items:[`menuBar:exportPdf`,`menuBar:exportWord`]},{groupId:`import`,items:[`menuBar:importWord`]},{groupId:`revisionHistory`,items:[`menuBar:revisionHistory`]}]},{menuId:`edit`,label:`Edit`,groups:[{groupId:`undo`,items:[`menuBar:undo`,`menuBar:redo`]},{groupId:`selectAll`,items:[`menuBar:selectAll`]},{groupId:`findAndReplace`,items:[`menuBar:findAndReplace`]}]},{menuId:`view`,label:`View`,groups:[{groupId:`sourceEditingEnhanced`,items:[`menuBar:sourceEditingEnhanced`]},{groupId:`sourceEditing`,items:[`menuBar:sourceEditing`]},{groupId:`showBlocks`,items:[`menuBar:showBlocks`]},{groupId:`previewMergeFields`,items:[`menuBar:previewMergeFields`]},{groupId:`fullscreen`,items:[`menuBar:fullscreen`]},{groupId:`restrictedEditing`,items:[`menuBar:restrictedEditing`]}]},{menuId:`insert`,label:`Insert`,groups:[{groupId:`insertMainWidgets`,items:[`menuBar:insertImage`,`menuBar:ckbox`,`menuBar:ckfinder`,`menuBar:insertTable`,`menuBar:insertTableLayout`]},{groupId:`insertInline`,items:[`menuBar:link`,`menuBar:insertFootnote`,`menuBar:bookmark`,`menuBar:comment`,`menuBar:insertMergeField`,`menuBar:emoji`]},{groupId:`insertMinorWidgets`,items:[`menuBar:mediaEmbed`,`menuBar:insertTemplate`,`menuBar:specialCharacters`,`menuBar:blockQuote`,`menuBar:codeBlock`,`menuBar:htmlEmbed`]},{groupId:`insertStructureWidgets`,items:[`menuBar:horizontalLine`,`menuBar:pageBreak`,`menuBar:tableOfContents`]},{groupId:`restrictedEditingException`,items:[`menuBar:restrictedEditingException:inline`,`menuBar:restrictedEditingException:block`]}]},{menuId:`format`,label:`Format`,groups:[{groupId:`textAndFont`,items:[{menuId:`text`,label:`Text`,groups:[{groupId:`basicStyles`,items:[`menuBar:bold`,`menuBar:italic`,`menuBar:underline`,`menuBar:strikethrough`,`menuBar:superscript`,`menuBar:subscript`,`menuBar:code`]},{groupId:`textPartLanguage`,items:[`menuBar:textPartLanguage`]}]},{menuId:`font`,label:`Font`,groups:[{groupId:`fontProperties`,items:[`menuBar:fontSize`,`menuBar:fontFamily`]},{groupId:`fontColors`,items:[`menuBar:fontColor`,`menuBar:fontBackgroundColor`]},{groupId:`highlight`,items:[`menuBar:highlight`]}]},`menuBar:heading`]},{groupId:`list`,items:[`menuBar:bulletedList`,`menuBar:numberedList`,`menuBar:multiLevelList`,`menuBar:todoList`]},{groupId:`indent`,items:[`menuBar:alignment`,`menuBar:lineHeight`,`menuBar:indent`,`menuBar:outdent`]},{groupId:`caseChange`,items:[`menuBar:caseChange`]},{groupId:`removeFormat`,items:[`menuBar:removeFormat`]}]},{menuId:`tools`,label:`Tools`,groups:[{groupId:`aiTools`,items:[`menuBar:aiAssistant`,`menuBar:aiCommands`,`menuBar:toggleAi`,`menuBar:aiQuickActions`]},{groupId:`tools`,items:[`menuBar:trackChanges`,`menuBar:commentsArchive`]}]},{menuId:`help`,label:`Help`,groups:[{groupId:`help`,items:[`menuBar:accessibilityHelp`]}]}];function sR(e){let t;return t=!(`items`in e)||!e.items?{items:wx(oR),addItems:[],removeItems:[],isVisible:!0,isUsingDefaultConfig:!0,...e}:{items:e.items,removeItems:[],addItems:[],isVisible:!0,isUsingDefaultConfig:!1,...e},t}function cR({normalizedConfig:e,locale:t,componentFactory:n,extraItems:r}){let i=wx(e);return uR(e,i,r),lR(e,i),uR(e,i,i.addItems),fR(e,i,n),pR(e,i),hR(i,t),i}function lR(e,t){let n=t.removeItems,r=[];t.items=t.items.filter(({menuId:e})=>n.includes(e)?(r.push(e),!1):!0),gR(t.items,e=>{e.groups=e.groups.filter(({groupId:e})=>n.includes(e)?(r.push(e),!1):!0);for(let t of e.groups)t.items=t.items.filter(e=>{let t=xR(e);return n.includes(t)?(r.push(t),!1):!0})});for(let t of n)r.includes(t)||tC(`menu-bar-item-could-not-be-removed`,{menuBarConfig:e,itemName:t})}function uR(e,t,n){let r=[];if(n.length!=0){for(let e of n){let n=yR(e.position),i=bR(e.position);if(_R(e))if(!i)n===`start`?(t.items.unshift(e.menu),r.push(e)):n===`end`&&(t.items.push(e.menu),r.push(e));else{let a=t.items.findIndex(e=>e.menuId===i);a==-1?dR(t,e.menu,i,n)&&r.push(e):n===`before`?(t.items.splice(a,0,e.menu),r.push(e)):n===`after`&&(t.items.splice(a+1,0,e.menu),r.push(e))}else vR(e)?gR(t.items,t=>{if(t.menuId===i)n===`start`?(t.groups.unshift(e.group),r.push(e)):n===`end`&&(t.groups.push(e.group),r.push(e));else{let a=t.groups.findIndex(e=>e.groupId===i);a!==-1&&(n===`before`?(t.groups.splice(a,0,e.group),r.push(e)):n===`after`&&(t.groups.splice(a+1,0,e.group),r.push(e)))}}):dR(t,e.item,i,n)&&r.push(e)}for(let t of n)r.includes(t)||tC(`menu-bar-item-could-not-be-added`,{menuBarConfig:e,addedItemConfig:t})}}function dR(e,t,n,r){let i=!1;return gR(e.items,e=>{for(let{groupId:a,items:o}of e.groups){if(i)return;if(a===n)r===`start`?(o.unshift(t),i=!0):r===`end`&&(o.push(t),i=!0);else{let e=o.findIndex(e=>xR(e)===n);e!==-1&&(r===`before`?(o.splice(e,0,t),i=!0):r===`after`&&(o.splice(e+1,0,t),i=!0))}}}),i}function fR(e,t,n){gR(t.items,r=>{for(let i of r.groups)i.items=i.items.filter(i=>{let a=typeof i==`string`&&!n.has(i);return a&&!t.isUsingDefaultConfig&&tC(`menu-bar-item-unavailable`,{menuBarConfig:e,parentMenuConfig:wx(r),componentName:i}),!a})})}function pR(e,t){let n=t.isUsingDefaultConfig,r=!1;if(t.items=t.items.filter(t=>t.groups.length?!0:(mR(e,t,n),!1)),!t.items.length){mR(e,e,n);return}gR(t.items,t=>{t.groups=t.groups.filter(e=>e.items.length?!0:(r=!0,!1));for(let i of t.groups)i.items=i.items.filter(t=>SR(t)&&!t.groups.length?(mR(e,t,n),r=!0,!1):!0)}),r&&pR(e,t)}function mR(e,t,n){n||tC(`menu-bar-menu-empty`,{menuBarConfig:e,emptyMenuConfig:t})}function hR(e,t){let n=t.t,r={File:n({string:`File`,id:`MENU_BAR_MENU_FILE`}),Edit:n({string:`Edit`,id:`MENU_BAR_MENU_EDIT`}),View:n({string:`View`,id:`MENU_BAR_MENU_VIEW`}),Insert:n({string:`Insert`,id:`MENU_BAR_MENU_INSERT`}),Format:n({string:`Format`,id:`MENU_BAR_MENU_FORMAT`}),Tools:n({string:`Tools`,id:`MENU_BAR_MENU_TOOLS`}),Help:n({string:`Help`,id:`MENU_BAR_MENU_HELP`}),Text:n({string:`Text`,id:`MENU_BAR_MENU_TEXT`}),Font:n({string:`Font`,id:`MENU_BAR_MENU_FONT`})};gR(e.items,e=>{e.label in r&&(e.label=r[e.label])})}function gR(e,t){if(Array.isArray(e))for(let t of e)n(t);function n(e){t(e);for(let t of e.groups)for(let e of t.items)SR(e)&&n(e)}}function _R(e){return typeof e==`object`&&`menu`in e}function vR(e){return typeof e==`object`&&`group`in e}function yR(e){return e.startsWith(`start`)?`start`:e.startsWith(`end`)?`end`:e.startsWith(`after`)?`after`:`before`}function bR(e){let t=e.match(/^[^:]+:(.+)/);return t?t[1]:null}function xR(e){return typeof e==`string`?e:e.menuId}function SR(e){return typeof e==`object`&&`menuId`in e}var CR=AC(),wR=class extends CR{editor;componentFactory;focusTracker;tooltipManager;poweredBy;evaluationBadge;ariaLiveAnnouncer;isReady=!1;_editableElementsMap=new Map;_focusableToolbarDefinitions=[];_extraMenuBarElements=[];_lastFocusedForeignElement=null;_domEmitter;constructor(e){super();let t=e.editing.view;this.editor=e,this.componentFactory=new WL(e),this.focusTracker=new vT,this.tooltipManager=new JL(e),this.poweredBy=new QI(e),this.evaluationBadge=new QL(e),this.ariaLiveAnnouncer=new oI(e),this._initViewportOffset(this._readViewportOffsetFromConfig()),this.once(`ready`,()=>{this._bindBodyCollectionWithFocusTracker(),this.isReady=!0}),this.listenTo(t.document,`layoutChanged`,this.update.bind(this)),this.listenTo(t,`scrollToTheSelection`,this._handleScrollToTheSelection.bind(this)),this._initFocusTracking(),this._initVisualViewportSupport()}get element(){return null}update(){this.fire(`update`)}destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor),this.poweredBy.destroy(),this.evaluationBadge.destroy();for(let e of this._editableElementsMap.values())e.ckeditorInstance=null,this.editor.keystrokes.stopListening(e);this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[],this._domEmitter&&this._domEmitter.stopListening()}setEditableElement(e,t){this._editableElementsMap.set(e,t),t.ckeditorInstance||=this.editor,this.focusTracker.add(t);let n=()=>{this.editor.editing.view.getDomRoot(e)||this.editor.keystrokes.listenTo(t)};this.isReady?n():this.once(`ready`,n)}removeEditableElement(e){let t=this._editableElementsMap.get(e);t&&(this._editableElementsMap.delete(e),this.editor.keystrokes.stopListening(t),this.focusTracker.remove(t),t.ckeditorInstance=null)}getEditableElement(e=`main`){return this._editableElementsMap.get(e)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(e,t={}){e.isRendered?(this.focusTracker.add(e),this.editor.keystrokes.listenTo(e.element)):e.once(`render`,()=>{this.focusTracker.add(e),this.editor.keystrokes.listenTo(e.element)}),this._focusableToolbarDefinitions.push({toolbarView:e,options:t})}extendMenuBar(e){this._extraMenuBarElements.push(e)}initMenuBar(e){let t=e.element;this.focusTracker.add(t),this.editor.keystrokes.listenTo(t);let n=sR(this.editor.config.get(`menuBar`)||{});e.fillFromConfig(n,this.componentFactory,this._extraMenuBarElements),this.editor.keystrokes.set(`Esc`,(e,n)=>{t.contains(this.editor.ui.focusTracker.focusedElement)&&(this._lastFocusedForeignElement?(this._lastFocusedForeignElement.focus(),this._lastFocusedForeignElement=null):this.editor.editing.view.focus(),n())}),this.editor.keystrokes.set(`Alt+F9`,(n,r)=>{t.contains(this.editor.ui.focusTracker.focusedElement)||(this._saveLastFocusedForeignElement(),e.isFocusBorderEnabled=!0,e.focus(),r())})}_readViewportOffsetFromConfig(){let e=this.editor,t=e.config.get(`ui.viewportOffset`);if(t)return t;let n=e.config.get(`toolbar.viewportTopOffset`);return n?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:n}):{top:0}}_initFocusTracking(){let e=this.editor,t;e.keystrokes.set(`Alt+F10`,(e,n)=>{this._saveLastFocusedForeignElement();let r=this._getCurrentFocusedToolbarDefinition();(!r||!t)&&(t=this._getFocusableCandidateToolbarDefinitions());for(let e=0;e{let r=this._getCurrentFocusedToolbarDefinition();r&&(this._lastFocusedForeignElement?(this._lastFocusedForeignElement.focus(),this._lastFocusedForeignElement=null):e.editing.view.focus(),r.options.afterBlur&&r.options.afterBlur(),n())})}_saveLastFocusedForeignElement(){let e=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(e)&&!Array.from(this.editor.editing.view.domRoots.values()).includes(e)&&(this._lastFocusedForeignElement=e)}_getFocusableCandidateToolbarDefinitions(){let e=[];for(let t of this._focusableToolbarDefinitions){let{toolbarView:n,options:r}=t;(Dw(n.element)||r.beforeFocus)&&e.push(t)}return e.sort((e,t)=>TR(e)-TR(t)),e}_getCurrentFocusedToolbarDefinition(){for(let e of this._focusableToolbarDefinitions)if(e.toolbarView.element&&e.toolbarView.element.contains(this.focusTracker.focusedElement))return e;return null}_focusFocusableCandidateToolbar(e){let{toolbarView:t,options:{beforeFocus:n}}=e;return n&&n(),Dw(t.element)?(t.focus(),!0):!1}_handleScrollToTheSelection(e,t){let n={top:0,bottom:0,left:0,right:0,...this.viewportOffset};t.viewportOffset.top+=n.top,t.viewportOffset.bottom+=n.bottom,t.viewportOffset.left+=n.left,t.viewportOffset.right+=n.right}_bindBodyCollectionWithFocusTracker(){let e=this.view.body;for(let t of e)this.focusTracker.add(t.element);e.on(`add`,(e,t)=>{this.focusTracker.add(t.element)}),e.on(`remove`,(e,t)=>{this.focusTracker.remove(t.element)})}_initViewportOffset(e){this.on(`set:viewportOffset`,(e,t,n)=>{let r=this._getVisualViewportTopOffset(n);n.visualTop!==r&&(e.return={...n,visualTop:r})}),this.set(`viewportOffset`,e)}_initVisualViewportSupport(){if(!W.window.visualViewport)return;let e=()=>{let e=this._getVisualViewportTopOffset(this.viewportOffset);this.viewportOffset.visualTop!==e&&(this.viewportOffset={...this.viewportOffset,visualTop:e})};this._domEmitter=new($C()),this._domEmitter.listenTo(W.window.visualViewport,`scroll`,e),this._domEmitter.listenTo(W.window.visualViewport,`resize`,e)}_getVisualViewportTopOffset(e){let t=Pw().top,n=e.top||0;return t>n?0:n-t}};function TR(e){let{toolbarView:t,options:n}=e,r=10;return Dw(t.element)&&r--,n.isContextual&&(r-=2),r}var ER=class extends ${body;menuBarView;toolbar;constructor(e){super(e),this.body=new zI(e)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}},DR=class extends ER{top;main;_voiceLabelView;constructor(e){super(e),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-reset`,`ck-editor`,`ck-rounded-corners`],role:`application`,dir:e.uiLanguageDirection,lang:e.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:`div`,attributes:{class:[`ck`,`ck-editor__top`,`ck-reset_all`],role:`presentation`},children:this.top},{tag:`div`,attributes:{class:[`ck`,`ck-editor__main`],role:`presentation`},children:this.main}]})}_createVoiceLabel(){let e=this.t,t=new mI;return t.text=e(`Rich Text Editor`),t.extendTemplate({attributes:{class:`ck-voice-label`}}),t}},OR=class extends ${name=null;_editingView;_editableElement;_hasExternalElement;constructor(e,t,n){super(e);let{name:r,classes:i,styles:a,attributes:o}=(kR(n)?void 0:n)||{};this.set(`isFocused`,!1),this.set(`isInlineRoot`,!1),this.setTemplate({tag:r||`div`,attributes:{...o,class:[`ck`,`ck-content`,`ck-editor__editable`,`ck-rounded-corners`,this.bindTemplate.if(`isInlineRoot`,`ck-editor__editable_inline-root`),...i?sT(i):[]],...a&&{style:a},lang:e.contentLanguage,dir:e.contentLanguageDirection}}),this._editableElement=kR(n)?n:void 0,this._hasExternalElement=!!this._editableElement,this._editingView=t}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on(`change:isFocused`,()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}get hasExternalElement(){return this._hasExternalElement}_updateIsFocusedClasses(){let e=this._editingView;e.isRenderingInProgress?n(this):t(this);function t(t){e.change(n=>{let r=e.document.getRoot(t.name);n.addClass(t.isFocused?`ck-focused`:`ck-blurred`,r),n.removeClass(t.isFocused?`ck-blurred`:`ck-focused`,r)})}function n(r){e.once(`change:isRenderingInProgress`,(e,i,a)=>{a?n(r):t(r)})}}};function kR(e){return wS(e)}var AR=class extends OR{_options;constructor(e,t,n,r={}){super(e,t,n),this._options=r,this.extendTemplate({attributes:{role:`textbox`,class:`ck-editor__editable_inline`}})}render(){super.render();let e=this._editingView;e.change(t=>{let n=e.document.getRoot(this.name);t.setAttribute(`aria-label`,this.getEditableAriaLabel(),n)})}getEditableAriaLabel(){let e=this.locale.t,t=this._options.label,n=this._editableElement,r=this.name;if(typeof t==`string`)return t;if(typeof t==`object`)return t[r];if(typeof t==`function`)return t(this);if(n){let e=n.getAttribute(`aria-label`);if(e)return e}return e(`Rich Text Editor. Editing area: %0`,r)}},jR=class extends ${children;constructor(e,t={}){super(e);let n=this.bindTemplate;this.set(`class`,[`ck`,`ck-form__row`,...sT(t.class||[])]),this.children=this.createCollection(),t.children&&t.children.forEach(e=>this.children.add(e)),this.set(`_role`,null),this.set(`_ariaLabelledBy`,null),t.labelView&&this.set({_role:`group`,_ariaLabelledBy:t.labelView.id}),this.setTemplate({tag:`div`,attributes:{class:n.to(`class`,e=>e.join(` `)),role:n.to(`_role`),"aria-labelledby":n.to(`_ariaLabelledBy`)},children:this.children})}},MR=AC(),NR=class extends MR{constructor(e,t){super(),t&&cS(this,t),e&&this.set(e)}},PR=Sw(`px`),FR=class extends Z{positionLimiter;visibleStack;_viewToStack=new Map;_idToStack=new Map;_view=null;_rotatorView=null;_fakePanelsView=null;static get pluginName(){return`ContextualBalloon`}static get isOfficialPlugin(){return!0}constructor(e){super(e),this.positionLimiter=()=>{let e=this.editor.editing.view,t=e.document.selection.editableElement;return t?e.domConverter.mapViewToDom(t.root):null},this.decorate(`getPositionOptions`),this.set(`visibleView`,null),this.set(`_numberOfStacks`,0),this.set(`_singleViewMode`,!1)}destroy(){super.destroy(),this._view&&this._view.destroy(),this._rotatorView&&this._rotatorView.destroy(),this._fakePanelsView&&this._fakePanelsView.destroy()}get view(){return this._view||this._createPanelView(),this._view}hasView(e){return Array.from(this._viewToStack.keys()).includes(e)}add(e){if(this._view||this._createPanelView(),this.hasView(e.view))throw new K(`contextualballoon-add-view-exist`,[this,e]);let t=e.stackId||`main`;if(!this._idToStack.has(t)){this._idToStack.set(t,new Map([[e.view,e]])),this._viewToStack.set(e.view,this._idToStack.get(t)),this._numberOfStacks=this._idToStack.size,(!this._visibleStack||e.singleViewMode)&&this.showStack(t);return}let n=this._idToStack.get(t);e.singleViewMode&&this.showStack(t),n.set(e.view,e),this._viewToStack.set(e.view,n),n===this._visibleStack&&this._showView(e)}remove(e){if(!this.hasView(e))throw new K(`contextualballoon-remove-view-not-exist`,[this,e]);let t=this._viewToStack.get(e);this._singleViewMode&&this.visibleView===e&&(this._singleViewMode=!1),this.visibleView===e&&(t.size===1?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(t.values())[t.size-2])),t.size===1?(this._idToStack.delete(this._getStackId(t)),this._numberOfStacks=this._idToStack.size):t.delete(e),this._viewToStack.delete(e)}updatePosition(e){e&&(this._visibleStack.get(this.visibleView).position=e),this.view.pin(this.getPositionOptions()),this._fakePanelsView.updatePosition()}getPositionOptions(){let e=Array.from(this._visibleStack.values()).pop().position;return e&&=(e.limiter||(e=Object.assign({},e,{limiter:this.positionLimiter})),Object.assign({},e,{viewportOffsetConfig:{...this.editor.ui.viewportOffset,top:this.editor.ui.viewportOffset.visualTop}})),e}showStack(e){this.visibleStack=e;let t=this._idToStack.get(e);if(!t)throw new K(`contextualballoon-showstack-stack-not-exist`,this);this._visibleStack!==t&&this._showView(Array.from(t.values()).pop())}_createPanelView(){this._view=new HI(this.editor.locale),this.editor.ui.view.body.add(this._view),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(e){return Array.from(this._idToStack.entries()).find(t=>t[1]===e)[0]}_showNextStack(){let e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)+1;e[t]||(t=0),this.showStack(this._getStackId(e[t]))}_showPrevStack(){let e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)-1;e[t]||(t=e.length-1),this.showStack(this._getStackId(e[t]))}_createRotatorView(){let e=new IR(this.editor.locale),t=this.editor.locale.t;return this.view.content.add(e),e.bind(`isNavigationVisible`).to(this,`_numberOfStacks`,this,`_singleViewMode`,(e,t)=>!t&&e>1),e.on(`change:isNavigationVisible`,()=>this.updatePosition(),{priority:`low`}),e.bind(`counter`).to(this,`visibleView`,this,`_numberOfStacks`,(e,n)=>n<2?``:t(`%0 of %1`,[Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1,n])),e.buttonNextView.on(`execute`,()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),e.buttonPrevView.on(`execute`,()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),e}_createFakePanelsView(){let e=new LR(this.editor.locale,this.view);return e.bind(`numberOfPanels`).to(this,`_numberOfStacks`,this,`_singleViewMode`,(e,t)=>!t&&e>=2?Math.min(e-1,2):0),e.listenTo(this.view,`change:top`,()=>e.updatePosition()),e.listenTo(this.view,`change:left`,()=>e.updatePosition()),this.editor.ui.view.body.add(e),e}_showView({view:e,balloonClassName:t=``,withArrow:n=!0,singleViewMode:r=!1}){this.view.class=t,this.view.withArrow=n,this._rotatorView.showView(e),this.visibleView=e,this.view.pin(this.getPositionOptions()),this._fakePanelsView.updatePosition(),r&&(this._singleViewMode=!0)}},IR=class extends ${focusTracker;buttonPrevView;buttonNextView;content;constructor(e){super(e);let t=e.t,n=this.bindTemplate;this.set(`isNavigationVisible`,!0),this.focusTracker=new vT,this.buttonPrevView=this._createButtonView(t(`Previous`),qP),this.buttonNextView=this._createButtonView(t(`Next`),VP),this.content=this.createCollection(),this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-balloon-rotator`],"z-index":`-1`},children:[{tag:`div`,attributes:{class:[`ck-balloon-rotator__navigation`,n.to(`isNavigationVisible`,e=>e?``:`ck-hidden`)]},children:[this.buttonPrevView,{tag:`span`,attributes:{class:[`ck-balloon-rotator__counter`]},children:[{text:n.to(`counter`)}]},this.buttonNextView]},{tag:`div`,attributes:{class:`ck-balloon-rotator__content`},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(e){this.hideView(),this.content.add(e)}hideView(){this.content.clear()}_createButtonView(e,t){let n=new bI(this.locale);return n.set({label:e,icon:t,tooltip:!0}),n}},LR=class extends ${content;_balloonPanelView;constructor(e,t){super(e);let n=this.bindTemplate;this.set(`top`,0),this.set(`left`,0),this.set(`height`,0),this.set(`width`,0),this.set(`numberOfPanels`,0),this.content=this.createCollection(),this._balloonPanelView=t,this.setTemplate({tag:`div`,attributes:{class:[`ck-fake-panel`,n.to(`numberOfPanels`,e=>e?``:`ck-hidden`)],style:{top:n.to(`top`,PR),left:n.to(`left`,PR),width:n.to(`width`,PR),height:n.to(`height`,PR)}},children:this.content}),this.on(`change:numberOfPanels`,(e,t,n,r)=>{n>r?this._addPanels(n-r):this._removePanels(r-n),this.updatePosition()})}_addPanels(e){for(;e--;){let e=new $;e.setTemplate({tag:`div`}),this.content.add(e),this.registerChild(e)}}_removePanels(e){for(;e--;){let e=this.content.last;this.content.remove(e),this.deregisterChild(e),e.destroy()}}updatePosition(){if(this.numberOfPanels){let{top:e,left:t}=this._balloonPanelView,{width:n,height:r}=new fw(this._balloonPanelView.element);Object.assign(this,{top:e,left:t,width:n,height:r})}}},RR=Sw(`px`),zR=class extends ${content;contentPanelElement;_contentPanelPlaceholder;constructor(e){super(e);let t=this.bindTemplate;this.set(`isActive`,!1),this.set(`isSticky`,!1),this.set(`limiterElement`,null),this.set(`limiterBottomOffset`,50),this.set(`viewportTopOffset`,0),this.set(`_marginLeft`,null),this.set(`_isStickyToTheBottomOfLimiter`,!1),this.set(`_stickyTopOffset`,null),this.set(`_stickyBottomOffset`,null),this.content=this.createCollection(),this._contentPanelPlaceholder=new AF({tag:`div`,attributes:{class:[`ck`,`ck-sticky-panel__placeholder`],style:{display:t.to(`isSticky`,e=>e?`block`:`none`),height:t.to(`isSticky`,e=>e?RR(this._contentPanelRect.height):null)}}}).render(),this.contentPanelElement=new AF({tag:`div`,attributes:{class:[`ck`,`ck-sticky-panel__content`,t.if(`isSticky`,`ck-sticky-panel__content_sticky`),t.if(`_isStickyToTheBottomOfLimiter`,`ck-sticky-panel__content_sticky_bottom-limit`)],style:{width:t.to(`isSticky`,e=>e?RR(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:t.to(`_stickyTopOffset`,e=>e&&RR(e)),bottom:t.to(`_stickyBottomOffset`,e=>e&&RR(e)),marginLeft:t.to(`_marginLeft`)}},children:this.content}).render(),this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-sticky-panel`]},children:[this._contentPanelPlaceholder,this.contentPanelElement]})}render(){super.render(),this.checkIfShouldBeSticky(),this.listenTo(W.document,`scroll`,()=>{this.checkIfShouldBeSticky()},{useCapture:!0}),this.listenTo(this,`change:isActive`,()=>{this.checkIfShouldBeSticky()}),W.window.visualViewport&&(this.listenTo(W.window.visualViewport,`scroll`,()=>{this.checkIfShouldBeSticky()}),this.listenTo(W.window.visualViewport,`resize`,()=>{this.checkIfShouldBeSticky()}))}checkIfShouldBeSticky(){if(!this.limiterElement||!this.isActive){this._unstick();return}let e=new fw(this.limiterElement),t=e.getVisible();if(t){let e=new fw(W.window);e.top+=this.viewportTopOffset,e.height-=this.viewportTopOffset,t=t.getIntersection(e)}let{left:n,top:r}=Pw();if(e.moveBy(n,r),t&&t.moveBy(n,r),t&&e.topt.height){let n=Math.max(e.bottom-t.bottom,0)+this.limiterBottomOffset;this._contentPanelRect.height+n+1String(e)),"data-cke-tooltip-disabled":t.to(`isOn`)},on:{mouseenter:t.to(`mouseenter`)}})}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){let e=new vI;return e.content=LP,e.extendTemplate({attributes:{class:`ck-menu-bar__menu__button__arrow`}}),e}},VR=class extends ${children;constructor(e){super(e);let t=this.bindTemplate;this.set(`isVisible`,!1),this.set(`position`,`se`),this.children=this.createCollection(),this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-reset`,`ck-menu-bar__menu__panel`,t.to(`position`,e=>`ck-menu-bar__menu__panel_position_${e}`),t.if(`isVisible`,`ck-hidden`,e=>!e)],tabindex:`-1`},children:this.children,on:{selectstart:t.to(e=>{e.target.tagName.toLocaleLowerCase()!==`input`&&e.preventDefault()})}})}focus(e=1){this.children.length&&(e===1?this.children.first.focus():this.children.last.focus())}},HR=class e extends ${buttonView;panelView;focusTracker;keystrokes;constructor(e){super(e);let t=this.bindTemplate;this.buttonView=new BR(e),this.buttonView.delegate(`mouseenter`).to(this),this.buttonView.bind(`isOn`,`isEnabled`).to(this,`isOpen`,`isEnabled`),this.panelView=new VR(e),this.panelView.bind(`isVisible`).to(this,`isOpen`),this.keystrokes=new CT,this.focusTracker=new vT,this.set(`isOpen`,!1),this.set(`isEnabled`,!0),this.set(`panelPosition`,`w`),this.set(`class`,void 0),this.set(`parentMenuView`,null),this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-menu-bar__menu`,t.to(`class`),t.if(`isEnabled`,`ck-disabled`,e=>!e),t.if(`parentMenuView`,`ck-menu-bar__menu_top-level`,e=>!e)]},children:[this.buttonView,this.panelView]})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.keystrokes.listenTo(this.element),iR.closeOnEscKey(this),this._closeOnDisabled(),this._repositionPanelOnOpen()}_attachBehaviors(){this.parentMenuView?(iR.openOnButtonClick(this),iR.openOnArrowRightKey(this),iR.closeOnArrowLeftKey(this),iR.openAndFocusOnEnterKeyPress(this),iR.closeOnParentClose(this)):(this._propagateArrowKeystrokeEvents(),iR.openAndFocusPanelOnArrowDownKey(this),iR.toggleOnButtonClick(this))}_propagateArrowKeystrokeEvents(){this.keystrokes.set(`arrowright`,(e,t)=>{this.fire(`arrowright`),t()}),this.keystrokes.set(`arrowleft`,(e,t)=>{this.fire(`arrowleft`),t()})}_closeOnDisabled(){this.on(`change:isEnabled`,(e,t,n)=>{n||(this.isOpen=!1)})}_repositionPanelOnOpen(){this.on(`change:isOpen`,(t,n,r)=>{if(!r)return;let i=e._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=i?i.name:this._defaultMenuPositionName})}focus(){this.buttonView.focus()}get _panelPositions(){let{southEast:e,southWest:t,northEast:n,northWest:r,westSouth:i,eastSouth:a,westNorth:o,eastNorth:s}=aR;return this.locale.uiLanguageDirection===`ltr`?this.parentMenuView?[a,s,i,o]:[e,t,n,r]:this.parentMenuView?[i,o,a,s]:[t,e,r,n]}get _defaultMenuPositionName(){return this.locale.uiLanguageDirection===`ltr`?this.parentMenuView?`es`:`se`:this.parentMenuView?`ws`:`sw`}static _getOptimalPosition=Ow},UR=class extends gL{constructor(e){super(e),this.role=`menu`,this.items.on(`change`,this._setItemsCheckSpace.bind(this))}_setItemsCheckSpace(){let e=Array.from(this.items).some(e=>{let t=WR(e);return t&&t.isToggleable});this.items.forEach(t=>{let n=WR(t);n&&(n.hasCheckSpace=e)})}};function WR(e){return e instanceof pL?e.children.map(e=>GR(e)?e.buttonView:e).find(e=>e instanceof FI):null}function GR(e){return typeof e==`object`&&`buttonView`in e&&e.buttonView instanceof bI}var KR=class extends nL{constructor(e){super(e),this.set({withText:!0,withKeystroke:!0,tooltip:!1,role:`menuitem`}),this.extendTemplate({attributes:{class:[`ck-menu-bar__menu__item__button`]}})}},qR=[`mouseenter`,`arrowleft`,`arrowright`,`change:isOpen`],JR=class extends ${children;menus=[];constructor(e){super(e);let t=e.t,n=this.bindTemplate;this.set({isOpen:!1,isFocusBorderEnabled:!1}),this._setupIsOpenUpdater(),this.children=this.createCollection(),this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-menu-bar`,n.if(`isFocusBorderEnabled`,`ck-menu-bar_focus-border-enabled`)],"aria-label":t(`Editor menu bar`),role:`menubar`},children:this.children})}fillFromConfig(e,t,n=[]){let r=this.locale,i=cR({normalizedConfig:e,locale:r,componentFactory:t,extraItems:n}).items.map(e=>this._createMenu({componentFactory:t,menuDefinition:e}));this.children.addMany(i)}render(){super.render(),rR.toggleMenusAndFocusItemsOnHover(this),rR.closeMenusWhenTheBarCloses(this),rR.closeMenuWhenAnotherOnTheSameLevelOpens(this),rR.focusCycleMenusOnArrows(this),rR.closeOnClickOutside(this),rR.enableFocusHighlightOnInteraction(this)}focus(){this.children.first&&this.children.first.focus()}close(){for(let e of this.children)e.isOpen=!1;this.isOpen=!1}disable(){for(let e of this.children)e.isEnabled=!1}enable(){for(let e of this.children)e.isEnabled=!0}registerMenu(e,t=null){t?(e.delegate(...qR).to(t),e.parentMenuView=t):e.delegate(...qR).to(this,e=>`menu:`+e),e._attachBehaviors(),this.menus.push(e)}_createMenu({componentFactory:e,menuDefinition:t,parentMenuView:n}){let r=this.locale,i=new HR(r);return this.registerMenu(i,n),i.buttonView.set({label:t.label}),i.once(`change:isOpen`,()=>{let n=new UR(r);n.ariaLabel=t.label,i.panelView.children.add(n),n.items.addMany(this._createMenuItems({menuDefinition:t,parentMenuView:i,componentFactory:e}))}),i}_createMenuItems({menuDefinition:e,parentMenuView:t,componentFactory:n}){let r=this.locale,i=[];for(let a of e.groups){for(let e of a.items){let a=new tR(r,t);if(Mb(e))a.children.add(this._createMenu({componentFactory:n,menuDefinition:e,parentMenuView:t}));else{let r=this._createMenuItemContentFromFactory({componentName:e,componentFactory:n,parentMenuView:t});if(!r)continue;a.children.add(r)}i.push(a)}a!==e.groups[e.groups.length-1]&&i.push(new mL(r))}return i}_createMenuItemContentFromFactory({componentName:e,parentMenuView:t,componentFactory:n}){let r=n.create(e);return r instanceof HR||r instanceof LI||r instanceof KR?(this._registerMenuTree(r,t),r.on(`execute`,()=>{this.close()}),r):(tC(`menu-bar-component-unsupported`,{componentName:e,componentView:r}),null)}_registerMenuTree(e,t){if(!(e instanceof HR)){e.delegate(`mouseenter`).to(t);return}this.registerMenu(e,t);let n=e.panelView.children.filter(e=>e instanceof UR)[0];if(!n){e.delegate(`mouseenter`).to(t);return}let r=n.items.filter(e=>e instanceof pL);for(let t of r)this._registerMenuTree(t.children.get(0),e)}_setupIsOpenUpdater(){let e;this.on(`menu:change:isOpen`,(t,n,r)=>{clearTimeout(e),r?this.isOpen=!0:e=setTimeout(()=>{this.isOpen=Array.from(this.children).some(e=>e.isOpen)},0)})}},YR=class{model;limit;_isLocked;_size;_batch=null;_changeCallback;_selectionChangeCallback;constructor(e,t=20){this.model=e,this._size=0,this.limit=t,this._isLocked=!1,this._changeCallback=(e,t)=>{t.isLocal&&t.isUndoable&&t!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on(`change`,this._changeCallback),this.model.document.selection.on(`change:range`,this._selectionChangeCallback),this.model.document.selection.on(`change:attribute`,this._selectionChangeCallback)}get batch(){return this._batch||=this.model.createBatch({isTyping:!0}),this._batch}get size(){return this._size}input(e){this._size+=e,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off(`change`,this._changeCallback),this.model.document.selection.off(`change:range`,this._selectionChangeCallback),this.model.document.selection.off(`change:attribute`,this._selectionChangeCallback)}_reset(e=!1){(!this.isLocked||e)&&(this._batch=null,this._size=0)}},XR=class extends GN{_buffer;constructor(e,t){super(e),this._buffer=new YR(e.model,t),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(e={}){let t=this.editor.model,n=t.document,r=e.text||``,i=r.length,a=n.selection;if(e.selection?a=e.selection:e.range&&(a=t.createSelection(e.range)),!t.canEditAt(a))return;let o=e.resultRange;t.enqueueChange(this._buffer.batch,e=>{this._buffer.lock();let s=Array.from(n.selection.getAttributes());t.deleteContent(a),r&&t.insertContent(e.createText(r,s),a),o?e.setSelection(o):a.is(`documentSelection`)||e.setSelection(a),this._buffer.unlock(),this._buffer.input(i)})}},ZR=[`insertText`,`insertReplacementText`],QR=[...ZR,`insertCompositionText`],$R=class extends lO{focusObserver;constructor(e){super(e),this.focusObserver=e.getObserver(gO);let t=G.isAndroid?QR:ZR,n=e.document;n.on(`beforeinput`,(r,i)=>{if(!this.isEnabled)return;let{data:a,targetRanges:o,inputType:s,domEvent:c,isComposing:l}=i;if(!t.includes(s))return;this.focusObserver.flush();let u=new YS(n,`insertText`);n.fire(u,new uO(e,c,{text:a,selection:e.createSelection(o),isComposing:l})),u.stop.called&&r.stop()}),G.isAndroid||n.on(`compositionend`,(t,{data:r,domEvent:i})=>{this.isEnabled&&r&&n.fire(`insertText`,new uO(e,i,{text:r,isComposing:!0}))},{priority:`low`})}observe(){}stopObserving(){}},ez=class extends Z{_typingQueue;static get pluginName(){return`Input`}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.model,n=e.editing.view,r=e.editing.mapper,i=t.document.selection;this._typingQueue=new tz(e),n.addObserver($R);let a=new XR(e,e.config.get(`typing.undoStep`)||20);e.commands.add(`insertText`,a),e.commands.add(`input`,a),this.listenTo(n.document,`beforeinput`,()=>{this._typingQueue.flush(`next beforeinput`)},{priority:`high`}),this.listenTo(n.document,`insertText`,(e,o)=>{let{text:s,selection:c}=o;if(n.document.selection.isFake&&c&&n.document.selection.isSimilar(c)&&o.preventDefault(),c&&Array.from(c.getRanges()).some(e=>!e.isCollapsed)&&o.preventDefault(),!a.isEnabled){o.preventDefault();return}let l;c&&(l=Array.from(c.getRanges()).filter(e=>e.root.is(`rootElement`)).map(e=>r.toModelRange(e)).map(e=>NM(e,t.schema)||e)),(!l||!l.length)&&(l=Array.from(i.getRanges()));let u=s;if(G.isAndroid){let e=Array.from(l[0].getItems()).reduce((e,t)=>e+(t.is(`$textProxy`)?t.data:``),``);if(e&&(e.length<=u.length?u.startsWith(e)&&(u=u.substring(e.length),l[0].start=l[0].start.getShiftedBy(e.length)):e.startsWith(u)&&(l[0].start=l[0].start.getShiftedBy(u.length),u=``)),u.length==0&&l[0].isCollapsed)return}let d={text:u,selection:t.createSelection(l)};this._typingQueue.push(d,!!o.isComposing),o.domEvent.defaultPrevented&&this._typingQueue.flush(`beforeinput default prevented`)}),G.isAndroid?this.listenTo(n.document,`keydown`,(e,r)=>{i.isCollapsed||r.keyCode!=229||!n.document.isComposing||nz(t,a)}):this.listenTo(n.document,`compositionstart`,()=>{i.isCollapsed||nz(t,a)},{priority:`high`}),this.listenTo(n.document,`mutations`,(e,{mutations:t})=>{if(this._typingQueue.hasAffectedElements())for(let{node:e}of t){let t=iz(e,r),n=r.toModelElement(t);if(this._typingQueue.isElementAffected(n)){this._typingQueue.flush(`mutations`);return}}}),this.listenTo(n.document,`compositionend`,()=>{this._typingQueue.flush(`before composition end`)},{priority:`high`}),this.listenTo(n.document,`compositionend`,()=>{this._typingQueue.flush(`after composition end`);let e=[];if(this._typingQueue.hasAffectedElements())for(let t of this._typingQueue.flushAffectedElements()){let n=r.toViewElement(t);n&&e.push({type:`children`,node:n})}(e.length||!G.isAndroid)&&n.document.fire(`mutations`,{mutations:e})},{priority:`lowest`})}destroy(){super.destroy(),this._typingQueue.destroy()}},tz=class{editor;flushDebounced=Kx(()=>this.flush(`timeout`),50);_queue=[];_isComposing=!1;_affectedElements=new Set;constructor(e){this.editor=e}destroy(){for(this.flushDebounced.cancel(),this._affectedElements.clear();this._queue.length;)this.shift()}get length(){return this._queue.length}push(e,t){let n={text:e.text};if(e.selection){n.selectionRanges=[];for(let t of e.selection.getRanges())n.selectionRanges.push(sk.fromRange(t)),this._affectedElements.add(t.start.parent)}this._queue.push(n),this._isComposing||=t,this.flushDebounced()}shift(){let e=this._queue.shift(),t={text:e.text};if(e.selectionRanges){let n=e.selectionRanges.map(e=>rz(e)).filter(e=>!!e);n.length&&(t.selection=this.editor.model.createSelection(n))}return t}flush(e){let t=this.editor,n=t.model,r=t.editing.view;if(this.flushDebounced.cancel(),!this._queue.length)return;let i=t.commands.get(`insertText`).buffer;n.enqueueChange(i.batch,()=>{for(i.lock();this._queue.length;){let e=this.shift();t.execute(`insertText`,e)}i.unlock(),this._isComposing||this._affectedElements.clear(),this._isComposing=!1}),r.scrollToTheSelection()}isElementAffected(e){return this._affectedElements.has(e)}hasAffectedElements(){return this._affectedElements.size>0}flushAffectedElements(){let e=Array.from(this._affectedElements);return this._affectedElements.clear(),e}};function nz(e,t){if(!t.isEnabled)return;let n=t.buffer;n.lock(),e.enqueueChange(n.batch,()=>{e.deleteContent(e.document.selection)}),n.unlock()}function rz(e){let t=e.toRange();return e.detach(),t.root.rootName==`$graveyard`?null:t}function iz(e,t){let n=e.is(`$text`)?e.parent:e;for(;!t.toModelElement(n);)n=n.parent;return n}var az=class extends GN{direction;_buffer;constructor(e,t){super(e),this.direction=t,this._buffer=new YR(e.model,e.config.get(`typing.undoStep`)),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(e={}){let t=this.editor.model,n=t.document;t.enqueueChange(this._buffer.batch,r=>{this._buffer.lock();let i=r.createSelection(e.selection||n.selection);if(!t.canEditAt(i))return;let a=e.sequence||1,o=i.isCollapsed;if(i.isCollapsed&&t.modifySelection(i,{direction:this.direction,unit:e.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(a)){this._replaceEntireContentWithParagraph(r);return}if(this._shouldReplaceFirstBlockWithParagraph(i,a)){this.editor.execute(`paragraph`,{selection:i});return}if(i.isCollapsed)return;let s=0;i.getFirstRange().getMinimalFlatRanges().forEach(e=>{s+=HC(e.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),t.deleteContent(i,{doNotResetEntireContent:o,direction:this.direction}),this._buffer.input(s),r.setSelection(i),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(e){if(e>1)return!1;let t=this.editor.model,n=t.document.selection,r=t.schema.getLimitElement(n);if(!(n.isCollapsed&&n.containsEntireContent(r))||!t.schema.checkChild(r,`paragraph`))return!1;let i=r.getChild(0);return!(i&&i.is(`element`,`paragraph`))}_replaceEntireContentWithParagraph(e){let t=this.editor.model,n=t.document.selection,r=t.schema.getLimitElement(n),i=e.createElement(`paragraph`);e.remove(e.createRangeIn(r)),e.insert(i,r),e.setSelection(i,0)}_shouldReplaceFirstBlockWithParagraph(e,t){let n=this.editor.model;if(t>1||this.direction!=`backward`||!e.isCollapsed)return!1;let r=e.getFirstPosition(),i=n.schema.getLimitElement(r),a=i.getChild(0);return!(r.parent!=a||!e.containsEntireContent(a)||!n.schema.checkChild(i,`paragraph`)||a.name==`paragraph`)}},oz=`character`,sz=`word`,cz=`codePoint`,lz=`selection`,uz=`backward`,dz=`forward`,fz={deleteContent:{unit:lz,direction:uz},deleteContentBackward:{unit:cz,direction:uz},deleteWordBackward:{unit:sz,direction:uz},deleteHardLineBackward:{unit:lz,direction:uz},deleteSoftLineBackward:{unit:lz,direction:uz},deleteContentForward:{unit:oz,direction:dz},deleteWordForward:{unit:sz,direction:dz},deleteHardLineForward:{unit:lz,direction:dz},deleteSoftLineForward:{unit:lz,direction:dz}},pz=class extends lO{constructor(e){super(e);let t=e.document,n=0;t.on(`keydown`,()=>{n++}),t.on(`keyup`,()=>{n=0}),t.on(`beforeinput`,(r,i)=>{if(!this.isEnabled)return;let{targetRanges:a,domEvent:o,inputType:s}=i,c=fz[s];if(!c)return;let l={direction:c.direction,unit:c.unit,sequence:n};l.unit==lz&&(l.selectionToRemove=e.createSelection(a[0])),s===`deleteContentBackward`&&(G.isAndroid&&(l.sequence=1),hz(a)&&(l.unit=lz,l.selectionToRemove=e.createSelection(a)));let u=new zE(t,`delete`,a[0]);t.fire(u,new uO(e,o,l)),u.stop.called&&r.stop()}),G.isBlink&&mz(this)}observe(){}stopObserving(){}};function mz(e){let t=e.view,n=t.document,r=null,i=!1;n.on(`keydown`,(e,{keyCode:t})=>{r=t,i=!1}),n.on(`keyup`,(s,{keyCode:c,domEvent:l})=>{let u=n.selection,d=e.isEnabled&&c==r&&a(c)&&!u.isCollapsed&&!i;if(r=null,d){let e=new zE(n,`delete`,u.getFirstRange()),r={unit:lz,direction:o(c),selectionToRemove:u};n.fire(e,new uO(t,l,r))}}),n.on(`beforeinput`,(e,{inputType:t})=>{let n=fz[t];a(r)&&n&&n.direction==o(r)&&(i=!0)},{priority:`high`}),n.on(`beforeinput`,(e,{inputType:t,data:n})=>{r==q.delete&&t==`insertText`&&n==``&&e.stop()},{priority:`high`});function a(e){return e==q.backspace||e==q.delete}function o(e){return e==q.backspace?uz:dz}}function hz(e){if(e.length!=1||e[0].isCollapsed)return!1;let t=e[0].getWalker({direction:`backward`,singleCharacters:!0,ignoreElementEnd:!0}),n=0;for(let{nextPosition:e,item:r}of t){if(e.parent.is(`$text`)){let t=e.parent.data,r=e.offset;if(PT(t,r)||FT(t,r)||LT(t,r))continue;n++}else(r.is(`containerElement`)||r.is(`emptyElement`))&&n++;if(n>1)return!0}return!1}var gz=class extends Z{_undoOnBackspace;static get pluginName(){return`Delete`}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.editing.view,n=t.document,r=e.model.document;t.addObserver(pz),this._undoOnBackspace=!1;let i=new az(e,`forward`);e.commands.add(`deleteForward`,i),e.commands.add(`forwardDelete`,i),e.commands.add(`delete`,new az(e,`backward`)),this.listenTo(n,`delete`,(r,i)=>{n.isComposing||i.preventDefault();let{direction:a,sequence:o,selectionToRemove:s,unit:c}=i,l=a===`forward`?`deleteForward`:`delete`,u={sequence:o};if(c==`selection`){let t=Array.from(s.getRanges()).map(t=>e.editing.mapper.toModelRange(t)).map(t=>NM(t,e.model.schema)||t);u.selection=e.model.createSelection(t)}else u.unit=c;e.execute(l,u),t.scrollToTheSelection()},{priority:`low`}),this.listenTo(n,`keydown`,(i,a)=>{if(n.isComposing||a.keyCode!=q.backspace||!r.selection.isCollapsed)return;let o=e.model.schema.getLimitElement(r.selection),s=e.model.createPositionAt(o,0);if(s.isTouching(r.selection.getFirstPosition())){a.preventDefault();let r=e.model.schema.getNearestSelectionRange(s,`forward`);if(!r)return;let i=t.createSelection(e.editing.mapper.toViewRange(r)),o=i.getFirstRange(),c=new zE(document,`delete`,o),l={unit:`selection`,direction:`backward`,selectionToRemove:i};n.fire(c,new uO(t,a.domEvent,l))}}),this.editor.plugins.has(`UndoEditing`)&&(this.listenTo(n,`delete`,(t,n)=>{this._undoOnBackspace&&n.direction==`backward`&&n.sequence==1&&n.unit==`codePoint`&&(this._undoOnBackspace=!1,e.execute(`undo`),n.preventDefault(),t.stop())},{context:`$capture`}),this.listenTo(r,`change`,()=>{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has(`UndoEditing`)&&(this._undoOnBackspace=!0)}},_z=class extends Z{static get requires(){return[ez,gz]}static get pluginName(){return`Typing`}static get isOfficialPlugin(){return!0}};function vz(e,t){let n=e.start;return{text:Array.from(e.getWalker({ignoreElementEnd:!1})).reduce((e,{item:r})=>r.is(`$text`)||r.is(`$textProxy`)?e+r.data:(n=t.createPositionAfter(r),``),``),range:t.createRange(n,e.end)}}var yz=AC(),bz=class extends yz{model;testCallback;_hasMatch;constructor(e,t){super(),this.model=e,this.testCallback=t,this._hasMatch=!1,this.set(`isEnabled`,!0),this.on(`change:isEnabled`,()=>{this.isEnabled?this._startListening():(this.stopListening(e.document.selection),this.stopListening(e.document))}),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){let e=this.model.document;this.listenTo(e.selection,`change:range`,(t,{directChange:n})=>{if(n){if(!e.selection.isCollapsed){this.hasMatch&&(this.fire(`unmatched`),this._hasMatch=!1);return}this._evaluateTextBeforeSelection(`selection`)}}),this.listenTo(e,`change:data`,(e,t)=>{t.isUndo||!t.isLocal||this._evaluateTextBeforeSelection(`data`,{batch:t})})}_evaluateTextBeforeSelection(e,t={}){let n=this.model,r=n.document.selection,{text:i,range:a}=vz(n.createRange(n.createPositionAt(r.focus.parent,0),r.focus),n),o=this.testCallback(i);if(!o&&this.hasMatch&&this.fire(`unmatched`),this._hasMatch=!!o,o){let n=Object.assign(t,{text:i,range:a});typeof o==`object`&&Object.assign(n,o),this.fire(`matched:${e}`,n)}}},xz=class extends Z{attributes;_overrideUid;_isNextGravityRestorationSkipped=!1;static get pluginName(){return`TwoStepCaretMovement`}static get isOfficialPlugin(){return!0}constructor(e){super(e),this.attributes=new Set,this._overrideUid=null}init(){let e=this.editor,t=e.model,n=e.editing.view,r=e.locale,i=t.document.selection;this.listenTo(n.document,`arrowKey`,(e,t)=>{if(!i.isCollapsed||t.shiftKey||t.altKey||t.ctrlKey)return;let n=t.keyCode==q.arrowright,a=t.keyCode==q.arrowleft;if(!n&&!a)return;let o=r.contentLanguageDirection,s=!1;s=o===`ltr`&&n||o===`rtl`&&a?this._handleForwardMovement(t):this._handleBackwardMovement(t),s===!0&&e.stop()},{context:`$text`,priority:`highest`}),this.listenTo(i,`change:range`,(e,t)=>{if(this._isNextGravityRestorationSkipped){this._isNextGravityRestorationSkipped=!1;return}this._isGravityOverridden&&(!t.directChange&&Dz(i.getFirstPosition(),this.attributes)||this._restoreGravity())}),this._enableClickingAfterNode(),this._enableInsertContentSelectionAttributesFixer(),this._handleDeleteContentAfterNode()}registerAttribute(e){this.attributes.add(e)}_handleForwardMovement(e){let t=this.attributes,n=this.editor.model,r=n.document.selection,i=r.getFirstPosition();return this._isGravityOverridden||i.isAtStart&&Sz(r,t)?!1:Dz(i,t)?(e&&Tz(e),Sz(r,t)&&Dz(i,t,!0)?wz(n,t):this._overrideGravity(),!0):!1}_handleBackwardMovement(e){let t=this.attributes,n=this.editor.model,r=n.document.selection,i=r.getFirstPosition();return this._isGravityOverridden?(e&&Tz(e),this._restoreGravity(),Dz(i,t,!0)?wz(n,t):Cz(n,t,i),!0):i.isAtStart?Sz(r,t)?(e&&Tz(e),Cz(n,t,i),!0):!1:!Sz(r,t)&&Dz(i,t,!0)?(e&&Tz(e),Cz(n,t,i),!0):Ez(i,t)?i.isAtEnd&&!Sz(r,t)&&Dz(i,t)?(e&&Tz(e),Cz(n,t,i),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):!1}_enableClickingAfterNode(){let e=this.editor,t=e.model,n=t.document.selection,r=e.editing.view.document;e.editing.view.addObserver(xN),e.editing.view.addObserver(SN);let i=!1,a=!1;this.listenTo(r,`touchstart`,()=>{a=!1,i=!0}),this.listenTo(r,`mousedown`,()=>{a=!0}),this.listenTo(r,`selectionChange`,()=>{let e=this.attributes;if(!a&&!i||(a=!1,i=!1,!n.isCollapsed)||!Sz(n,e))return;let r=n.getFirstPosition();Dz(r,e)&&(r.isAtStart||Dz(r,e,!0)?wz(t,e):this._isGravityOverridden||this._overrideGravity())})}_enableInsertContentSelectionAttributesFixer(){let e=this.editor.model,t=e.document.selection,n=this.attributes;this.listenTo(e,`insertContent`,()=>{let r=t.getFirstPosition();Sz(t,n)&&Dz(r,n)&&wz(e,n)},{priority:`low`})}_handleDeleteContentAfterNode(){let e=this.editor,t=e.model,n=t.document.selection,r=e.editing.view,i=!1,a=!1;this.listenTo(r.document,`delete`,(e,t)=>{i=t.direction===`backward`},{priority:`high`}),this.listenTo(t,`deleteContent`,()=>{if(!i)return;let e=n.getFirstPosition();a=Sz(n,this.attributes)&&!Ez(e,this.attributes)},{priority:`high`}),this.listenTo(t,`deleteContent`,()=>{i&&(i=!1,!a&&e.model.enqueueChange(()=>{let e=n.getFirstPosition();Sz(n,this.attributes)&&Dz(e,this.attributes)&&(e.isAtStart||Dz(e,this.attributes,!0)?wz(t,this.attributes):this._isGravityOverridden||this._overrideGravity())}))},{priority:`low`})}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(e=>e.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(e=>{e.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}};function Sz(e,t){for(let n of t)if(e.hasAttribute(n))return!0;return!1}function Cz(e,t,n){let r=n.nodeBefore;e.change(n=>{if(r){let t=[],i=e.schema.isObject(r)&&e.schema.isInline(r);for(let[n,a]of r.getAttributes())e.schema.checkAttribute(`$text`,n)&&(!i||e.schema.getAttributeProperties(n).copyFromObject!==!1)&&t.push([n,a]);n.setSelectionAttribute(t)}else n.removeSelectionAttribute(t)})}function wz(e,t){e.change(e=>{e.removeSelectionAttribute(t)})}function Tz(e){e.preventDefault()}function Ez(e,t){return Dz(e.getShiftedBy(-1),t)}function Dz(e,t,n=!1){let{nodeBefore:r,nodeAfter:i}=e;for(let e of t){let t=r?r.getAttribute(e):void 0,a=i?i.getAttribute(e):void 0;if(!(n&&(t===void 0||a===void 0))&&a!==t)return!0}return!1}Oz(`"`),Oz(`'`),Oz(`'`),Oz(`"`),Oz(`"`),Oz(`'`);function Oz(e){return RegExp(`(^|\\s)(${e})([^${e}]*)(${e})$`)}function kz(e,t,n,r){return r.createRange(Az(e,t,n,!0,r),Az(e,t,n,!1,r))}function Az(e,t,n,r,i){let a=e.textNode||(r?e.nodeBefore:e.nodeAfter),o=null;for(;a&&a.getAttribute(t)==n;)o=a,a=r?a.previousSibling:a.nextSibling;return o?i.createPositionAt(o,r?`before`:`after`):e}function jz(e,t,n,r){let i=e.editing.view,a=new Set;i.document.registerPostFixer(i=>{let o=e.model.document.selection,s=!1;if(o.hasAttribute(t)){let c=kz(o.getFirstPosition(),t,o.getAttribute(t),e.model),l=e.editing.mapper.toViewRange(c);for(let e of l.getItems())e.is(`element`,n)&&!e.hasClass(r)&&(i.addClass(r,e),a.add(e),s=!0)}return s}),e.conversion.for(`editingDowncast`).add(e=>{e.on(`insert`,t,{priority:`highest`}),e.on(`remove`,t,{priority:`highest`}),e.on(`attribute`,t,{priority:`highest`}),e.on(`selection`,t,{priority:`highest`});function t(){i.change(e=>{for(let t of a.values())e.removeClass(r,t),a.delete(t)})}})}var Mz=class extends GN{attributeKey;constructor(e,t){super(e),this.attributeKey=t}refresh(){let e=this.editor.model,t=e.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}execute(e={}){let t=this.editor.model,n=t.document.selection,r=e.forceValue===void 0?!this.value:e.forceValue;t.change(e=>{if(n.isCollapsed)r?e.setSelectionAttribute(this.attributeKey,!0):e.removeSelectionAttribute(this.attributeKey);else{let i=t.schema.getValidRanges(n.getRanges(),this.attributeKey,{includeEmptyRanges:!0});for(let t of i){let n=t,i=this.attributeKey;t.isCollapsed&&(n=t.start.parent,i=mk._getStoreAttributeKey(this.attributeKey)),r?e.setAttribute(i,r,n):e.removeAttribute(i,n)}}})}_getValueFromFirstAllowedNode(){let e=this.editor.model,t=e.schema,n=e.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);for(let e of n.getRanges())for(let n of e.getItems())if(t.checkAttribute(n,this.attributeKey))return n.hasAttribute(this.attributeKey);return!1}},Nz=`bold`,Pz=class extends Z{static get pluginName(){return`BoldEditing`}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=this.editor.t;e.model.schema.extend(`$text`,{allowAttributes:Nz}),e.model.schema.setAttributeProperties(Nz,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:Nz,view:`strong`,upcastAlso:[`b`,e=>{let t=e.getStyle(`font-weight`);return t&&(t==`bold`||Number(t)>=600)?{name:!0,styles:[`font-weight`]}:null}]}),e.commands.add(Nz,new Mz(e,Nz)),e.keystrokes.set(`CTRL+B`,Nz),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t(`Bold text`),keystroke:`CTRL+B`}]})}};function Fz({editor:e,commandName:t,plugin:n,icon:r,label:i,keystroke:a}){return o=>{let s=e.commands.get(t),c=new o(e.locale);return c.set({label:i,icon:r,keystroke:a,isToggleable:!0}),c.bind(`isEnabled`).to(s,`isEnabled`),c.bind(`isOn`).to(s,`value`),c instanceof LI?c.set({role:`menuitemcheckbox`}):c.set({tooltip:!0}),n.listenTo(c,`execute`,()=>{e.execute(t),e.editing.view.focus()}),c}}var Iz=`bold`,Lz=class extends Z{static get pluginName(){return`BoldUI`}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.locale.t,n=Fz({editor:e,commandName:Iz,plugin:this,icon:jP,label:t(`Bold`),keystroke:`CTRL+B`});e.ui.componentFactory.add(Iz,()=>n(bI)),e.ui.componentFactory.add(`menuBar:bold`,()=>n(LI))}},Rz=class extends Z{static get requires(){return[Pz,Lz]}static get pluginName(){return`Bold`}static get isOfficialPlugin(){return!0}},zz=`italic`,Bz=class extends Z{static get pluginName(){return`ItalicEditing`}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=this.editor.t;e.model.schema.extend(`$text`,{allowAttributes:zz}),e.model.schema.setAttributeProperties(zz,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:zz,view:`i`,upcastAlso:[`em`,{styles:{"font-style":`italic`}}]}),e.commands.add(zz,new Mz(e,zz)),e.keystrokes.set(`CTRL+I`,zz),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t(`Italic text`),keystroke:`CTRL+I`}]})}},Vz=`italic`,Hz=class extends Z{static get pluginName(){return`ItalicUI`}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.locale.t,n=Fz({editor:e,commandName:Vz,plugin:this,icon:zP,keystroke:`CTRL+I`,label:t(`Italic`)});e.ui.componentFactory.add(Vz,()=>n(bI)),e.ui.componentFactory.add(`menuBar:italic`,()=>n(LI))}},Uz=class extends Z{static get requires(){return[Bz,Hz]}static get pluginName(){return`Italic`}static get isOfficialPlugin(){return!0}},Wz=`strikethrough`,Gz=class extends Z{static get pluginName(){return`StrikethroughEditing`}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=this.editor.t;e.model.schema.extend(`$text`,{allowAttributes:Wz}),e.model.schema.setAttributeProperties(Wz,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:Wz,view:`s`,upcastAlso:[`del`,`strike`,{styles:{"text-decoration":`line-through`}}]}),e.commands.add(Wz,new Mz(e,Wz)),e.keystrokes.set(`CTRL+SHIFT+X`,`strikethrough`),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t(`Strikethrough text`),keystroke:`CTRL+SHIFT+X`}]})}},Kz=`strikethrough`,qz=class extends Z{static get pluginName(){return`StrikethroughUI`}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.locale.t,n=Fz({editor:e,commandName:Kz,plugin:this,icon:eF,keystroke:`CTRL+SHIFT+X`,label:t(`Strikethrough`)});e.ui.componentFactory.add(Kz,()=>n(bI)),e.ui.componentFactory.add(`menuBar:strikethrough`,()=>n(LI))}},Jz=class extends Z{static get requires(){return[Gz,qz]}static get pluginName(){return`Strikethrough`}static get isOfficialPlugin(){return!0}},Yz=`underline`,Xz=class extends Z{static get pluginName(){return`UnderlineEditing`}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=this.editor.t;e.model.schema.extend(`$text`,{allowAttributes:Yz}),e.model.schema.setAttributeProperties(Yz,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:Yz,view:`u`,upcastAlso:{styles:{"text-decoration":`underline`}}}),e.commands.add(Yz,new Mz(e,Yz)),e.keystrokes.set(`CTRL+U`,`underline`),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t(`Underline text`),keystroke:`CTRL+U`}]})}},Zz=`underline`,Qz=class extends Z{static get pluginName(){return`UnderlineUI`}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.locale.t,n=Fz({editor:e,commandName:Zz,plugin:this,icon:sF,label:t(`Underline`),keystroke:`CTRL+U`});e.ui.componentFactory.add(Zz,()=>n(bI)),e.ui.componentFactory.add(`menuBar:underline`,()=>n(LI))}},$z=class extends Z{static get requires(){return[Xz,Qz]}static get pluginName(){return`Underline`}static get isOfficialPlugin(){return!0}};function*eB(e,t){for(let n of t)n&&e.getAttributeProperties(n[0]).copyOnEnter&&(yield n)}var tB=class extends GN{execute(){this.editor.model.change(e=>{this.enterBlock(e),this.fire(`afterExecute`,{writer:e})})}enterBlock(e){let t=this.editor.model,n=t.document.selection,r=t.schema,i=n.isCollapsed,a=n.getFirstRange(),o=a.start.parent,s=a.end.parent;if(r.isLimit(o)||r.isLimit(s))return!i&&o==s&&t.deleteContent(n),!1;if(i){let t=eB(e.model.schema,n.getAttributes());return nB(e,a.start),e.setSelectionAttribute(t),!0}else{let r=!(a.start.isAtStart&&a.end.isAtEnd),i=o==s;if(t.deleteContent(n,{leaveUnmerged:r}),r){if(i)return nB(e,n.focus),!0;e.setSelection(s,0)}}return!1}};function nB(e,t){e.split(t),e.setSelection(t.parent.nextSibling,0)}var rB={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}},iB=class extends lO{constructor(e){super(e);let t=this.document,n=!1;t.on(`keydown`,(e,t)=>{n=t.shiftKey}),t.on(`beforeinput`,(r,i)=>{if(!this.isEnabled)return;let a=i.inputType;G.isSafari&&n&&a==`insertParagraph`&&(a=`insertLineBreak`);let o=i.domEvent,s=rB[a];if(!s)return;let c=new zE(t,`enter`,i.targetRanges[0]);t.fire(c,new uO(e,o,{isSoft:s.isSoft})),c.stop.called&&r.stop()})}observe(){}stopObserving(){}},aB=class extends Z{static get pluginName(){return`Enter`}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.editing.view,n=t.document,r=this.editor.t;t.addObserver(iB),e.commands.add(`enter`,new tB(e)),this.listenTo(n,`enter`,(r,i)=>{n.isComposing||i.preventDefault(),!i.isSoft&&(e.execute(`enter`),t.scrollToTheSelection())},{priority:`low`}),e.accessibility.addKeystrokeInfos({keystrokes:[{label:r(`Insert a hard break (a new paragraph)`),keystroke:`Enter`}]})}},oB=class extends GN{execute(){let e=this.editor.model,t=e.document;e.change(n=>{cB(e,n,t.selection),this.fire(`afterExecute`,{writer:n})})}refresh(){let e=this.editor.model,t=e.document;this.isEnabled=sB(e.schema,t.selection)}};function sB(e,t){if(t.rangeCount>1)return!1;let n=t.anchor;if(!n||!e.checkChild(n,`softBreak`))return!1;let r=t.getFirstRange(),i=r.start.parent,a=r.end.parent;return!((uB(i,e)||uB(a,e))&&i!==a)}function cB(e,t,n){let r=n.isCollapsed,i=n.getFirstRange(),a=i.start.parent,o=i.end.parent,s=a==o;if(r)lB(e,t,i.end,n.getAttributes());else{let r=!(i.start.isAtStart&&i.end.isAtEnd);e.deleteContent(n,{leaveUnmerged:r}),s?lB(e,t,n.focus,n.getAttributes()):r&&t.setSelection(o,0)}}function lB(e,t,n,r){let i=Array.from(eB(e.schema,r)),a=t.createElement(`softBreak`,i);e.insertContent(a,n),t.setSelection(a,`after`)}function uB(e,t){return e.is(`rootElement`)?!1:t.isLimit(e)||uB(e.parent,t)}var dB=class extends Z{static get pluginName(){return`ShiftEnter`}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.model.schema,n=e.conversion,r=e.editing.view,i=r.document,a=this.editor.t;t.register(`softBreak`,{allowWhere:`$text`,allowAttributesOf:`$text`,isInline:!0}),n.for(`upcast`).elementToElement({model:`softBreak`,view:`br`}),n.for(`downcast`).elementToElement({model:`softBreak`,view:(e,{writer:t})=>t.createEmptyElement(`br`)}),r.addObserver(iB),e.commands.add(`shiftEnter`,new oB(e)),e.model.document.registerPostFixer(e=>fB(e)),this.listenTo(i,`enter`,(t,n)=>{i.isComposing||n.preventDefault(),n.isSoft&&(e.execute(`shiftEnter`),r.scrollToTheSelection())},{priority:`low`}),e.accessibility.addKeystrokeInfos({keystrokes:[{label:a(`Insert a soft break (a <br> element)`),keystroke:`Shift+Enter`}]})}};function fB(e){let t=new Set;for(let n of e.model.document.differ.getChanges())n.type==`insert`||n.type==`remove`?n.position.parent.is(`element`)&&t.add(n.position.parent):n.type==`attribute`&&n.range.start.parent.is(`element`)&&t.add(n.range.start.parent);let n=!1;for(let r of t)for(let t of r.getChildren()){if(!t.is(`element`,`softBreak`))continue;let r=t.nextSibling;if(!r||r.is(`element`))continue;let i=Array.from(t.getAttributes()).filter(([e,t])=>!pB(r,e,t));for(let[r]of i)e.removeAttribute(r,t),n=!0}return n}function pB(e,t,n){return e?.getAttribute(t)===n}var mB=class extends GN{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){let t=this.editor.model,n=t.schema,r=t.document.selection,i=Array.from(r.getSelectedBlocks()),a=e.forceValue===void 0?!this.value:e.forceValue;t.change(e=>{if(!a)this._removeQuote(e,i.filter(hB));else{let t=i.filter(e=>hB(e)||_B(n,e));this._applyQuote(e,t)}})}_getValue(){let e=this.editor.model.document.selection,t=gT(e.getSelectedBlocks());return!!(t&&hB(t))}_checkEnabled(){if(this.value)return!0;let e=this.editor.model.document.selection,t=this.editor.model.schema,n=gT(e.getSelectedBlocks());return n?_B(t,n):!1}_removeQuote(e,t){gB(e,t).reverse().forEach(t=>{if(t.start.isAtStart&&t.end.isAtEnd){e.unwrap(t.start.parent);return}if(t.start.isAtStart){let n=e.createPositionBefore(t.start.parent);e.move(t,n);return}t.end.isAtEnd||e.split(t.end);let n=e.createPositionAfter(t.end.parent);e.move(t,n)})}_applyQuote(e,t){let n=[];gB(e,t).reverse().forEach(t=>{let r=hB(t.start);r||(r=e.createElement(`blockQuote`),e.wrap(t,r)),n.push(r)}),n.reverse().reduce((t,n)=>t.nextSibling==n?(e.merge(e.createPositionAfter(t)),t):n)}};function hB(e){return e.parent.name==`blockQuote`?e.parent:null}function gB(e,t){let n,r=0,i=[];for(;r{let r=e.model.document.differ.getChanges();for(let e of r)if(e.type==`insert`){let r=e.position.nodeAfter;if(!r)continue;if(r.is(`element`,`blockQuote`)&&r.isEmpty)return n.remove(r),!0;if(r.is(`element`,`blockQuote`)&&!t.checkChild(e.position,r))return n.unwrap(r),!0;if(r.is(`element`)){let e=n.createRangeIn(r);for(let r of e.getItems())if(r.is(`element`,`blockQuote`)&&!t.checkChild(n.createPositionBefore(r),r))return n.unwrap(r),!0}}else if(e.type==`remove`){let t=e.position.parent;if(t.is(`element`,`blockQuote`)&&t.isEmpty)return n.remove(t),!0}return!1});let n=this.editor.editing.view.document,r=e.model.document.selection,i=e.commands.get(`blockQuote`);this.listenTo(n,`enter`,(t,n)=>{!r.isCollapsed||!i.value||r.getLastPosition().parent.isEmpty&&(e.execute(`blockQuote`),e.editing.view.scrollToTheSelection(),n.preventDefault(),t.stop())},{context:`blockquote`}),this.listenTo(n,`delete`,(t,n)=>{if(n.direction!=`backward`||!r.isCollapsed||!i.value)return;let a=r.getLastPosition().parent;a.isEmpty&&!a.previousSibling&&(e.execute(`blockQuote`),e.editing.view.scrollToTheSelection(),n.preventDefault(),t.stop())},{context:`blockquote`})}},yB=class extends Z{static get pluginName(){return`BlockQuoteUI`}static get isOfficialPlugin(){return!0}init(){let e=this.editor;e.ui.componentFactory.add(`blockQuote`,()=>{let e=this._createButton(bI);return e.set({tooltip:!0}),e}),e.ui.componentFactory.add(`menuBar:blockQuote`,()=>{let e=this._createButton(LI);return e.set({role:`menuitemcheckbox`}),e})}_createButton(e){let t=this.editor,n=t.locale,r=t.commands.get(`blockQuote`),i=new e(t.locale),a=n.t;return i.set({label:a(`Block quote`),icon:YP,isToggleable:!0}),i.bind(`isEnabled`).to(r,`isEnabled`),i.bind(`isOn`).to(r,`value`),this.listenTo(i,`execute`,()=>{t.execute(`blockQuote`),t.editing.view.focus()}),i}},bB=class extends Z{static get requires(){return[vB,yB]}static get pluginName(){return`BlockQuote`}static get isOfficialPlugin(){return!0}},xB=fC(),SB=class extends xB{_stack=[];add(e,t){let n=this._stack,r=n[0];this._insertDescriptor(e);let i=n[0];r!==i&&!CB(r,i)&&this.fire(`change:top`,{oldDescriptor:r,newDescriptor:i,writer:t})}remove(e,t){let n=this._stack,r=n[0];this._removeDescriptor(e);let i=n[0];r!==i&&!CB(r,i)&&this.fire(`change:top`,{oldDescriptor:r,newDescriptor:i,writer:t})}_insertDescriptor(e){let t=this._stack,n=t.findIndex(t=>t.id===e.id);if(CB(e,t[n]))return;n>-1&&t.splice(n,1);let r=0;for(;t[r]&&wB(t[r],e);)r++;t.splice(r,0,e)}_removeDescriptor(e){let t=this._stack,n=t.findIndex(t=>t.id===e);n>-1&&t.splice(n,1)}};function CB(e,t){return e&&t&&e.priority==t.priority&&TB(e.classes)==TB(t.classes)}function wB(e,t){return e.priority>t.priority?!0:e.priorityTB(t.classes)}function TB(e){return Array.isArray(e)?e.sort().join(`,`):e}var EB=`ck-widget`,DB=`ck-widget_selected`;function OB(e){return e.is(`element`)?!!e.getCustomProperty(`widget`):!1}function kB(e,t,n={}){if(!e.is(`containerElement`))throw new K(`widget-to-widget-wrong-element-type`,null,{element:e});return t.setAttribute(`contenteditable`,`false`,e),t.addClass(EB,e),t.setCustomProperty(`widget`,!0,e),e.getFillerOffset=IB,t.setCustomProperty(`widgetLabel`,[],e),n.label&&NB(e,n.label),n.hasSelectionHandle&&LB(e,t),MB(e,t),e}function AB(e,t,n){if(t.classes&&n.addClass(sT(t.classes),e),t.attributes)for(let r in t.attributes)n.setAttribute(r,t.attributes[r],e)}function jB(e,t,n){if(t.classes&&n.removeClass(sT(t.classes),e),t.attributes)for(let r in t.attributes)n.removeAttribute(r,e)}function MB(e,t,n=AB,r=jB){let i=new SB;i.on(`change:top`,(t,i)=>{i.oldDescriptor&&r(e,i.oldDescriptor,i.writer),i.newDescriptor&&n(e,i.newDescriptor,i.writer)}),t.setCustomProperty(`addHighlight`,(e,t,n)=>i.add(t,n),e),t.setCustomProperty(`removeHighlight`,(e,t,n)=>i.remove(t,n),e)}function NB(e,t){e.getCustomProperty(`widgetLabel`).push(t)}function PB(e){return e.getCustomProperty(`widgetLabel`).reduce((e,t)=>typeof t==`function`?e?e+`. `+t():t():e?e+`. `+t:t,``)}function FB(e,t,n={}){return t.addClass([`ck-editor__editable`,`ck-editor__nested-editable`],e),n.withAriaRole!==!1&&t.setAttribute(`role`,`textbox`,e),e.isReadOnly||t.setAttribute(`tabindex`,`-1`,e),n.label&&t.setAttribute(`aria-label`,n.label,e),t.setAttribute(`contenteditable`,e.isReadOnly?`false`:`true`,e),e.on(`change:isReadOnly`,(n,r,i)=>{t.setAttribute(`contenteditable`,i?`false`:`true`,e),i?t.removeAttribute(`tabindex`,e):t.setAttribute(`tabindex`,`-1`,e)}),e.on(`change:isFocused`,(n,r,i)=>{i?t.addClass(`ck-editor__nested-editable_focused`,e):t.removeClass(`ck-editor__nested-editable_focused`,e)}),MB(e,t),e}function IB(){return null}function LB(e,t){let n=t.createUIElement(`div`,{class:`ck ck-widget__selection-handle`},function(e){let t=this.toDomElement(e),n=new vI;return n.set(`content`,FP),n.render(),t.appendChild(n.element),t});t.insert(t.createPositionAt(e,0),n),t.addClass([`ck-widget_with-selection-handle`],e)}var RB=`widget-type-around`;function zB(e,t,n){return!!e&&OB(e)&&!n.isInline(t)}function BB(e){return e.closest(`.ck-widget__type-around__button`)}function VB(e){return e.classList.contains(`ck-widget__type-around__button_before`)?`before`:`after`}function HB(e,t){let n=e.closest(`.ck-widget`);return t.mapDomToView(n)}function UB(e){return e.getAttribute(RB)}var WB=[`before`,`after`],GB=new DOMParser().parseFromString(ZP,`image/svg+xml`).firstChild,KB=`ck-widget__type-around_disabled`,qB=class extends Z{_currentFakeCaretModelElement=null;static get pluginName(){return`WidgetTypeAround`}static get isOfficialPlugin(){return!0}static get requires(){return[aB,gz]}init(){let e=this.editor,t=e.editing.view;this.on(`change:isEnabled`,(n,r,i)=>{t.change(e=>{for(let n of t.document.roots)i?e.removeClass(KB,n):e.addClass(KB,n)}),i||e.model.change(e=>{e.removeSelectionAttribute(RB)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(e,t){let n=this.editor,r=n.editing.view,i=n.model.schema.getAttributesWithProperty(e,`copyOnReplace`,!0);n.execute(`insertParagraph`,{position:n.model.createPositionAt(e,t),attributes:i}),r.focus(),r.scrollToTheSelection()}_listenToIfEnabled(e,t,n,r){this.listenTo(e,t,(...e)=>{this.isEnabled&&n(...e)},r)}_insertParagraphAccordingToFakeCaretPosition(){let e=this.editor.model.document.selection,t=UB(e);if(!t)return!1;let n=e.getSelectedElement();return this._insertParagraph(n,t),!0}_enableTypeAroundUIInjection(){let e=this.editor,t=e.model.schema,n=e.locale.t,r={before:n(`Insert paragraph before block`),after:n(`Insert paragraph after block`)};e.editing.downcastDispatcher.on(`insert`,(e,i,a)=>{let o=a.mapper.toViewElement(i.item);o&&zB(o,i.item,t)&&(JB(a.writer,r,o),o.getCustomProperty(`widgetLabel`).push(()=>this.isEnabled?n(`Press Enter to type after or press Shift + Enter to type before the widget`):``))},{priority:`low`})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){let e=this.editor,t=e.model,n=t.document.selection,r=t.schema,i=e.editing.view;this._listenToIfEnabled(i.document,`arrowKey`,(e,t)=>{this._handleArrowKeyPress(e,t)},{context:[OB,`$text`],priority:`high`}),this._listenToIfEnabled(n,`change:range`,(t,n)=>{n.directChange&&e.model.change(e=>{e.removeSelectionAttribute(RB)})}),this._listenToIfEnabled(t.document,`change:data`,()=>{let t=n.getSelectedElement();t&&zB(e.editing.mapper.toViewElement(t),t,r)||e.model.change(e=>{e.removeSelectionAttribute(RB)})}),this._listenToIfEnabled(e.editing.downcastDispatcher,`selection`,(e,t,n)=>{let i=n.writer;if(this._currentFakeCaretModelElement){let e=n.mapper.toViewElement(this._currentFakeCaretModelElement);e&&(i.removeClass(WB.map(a),e),this._currentFakeCaretModelElement=null)}let o=t.selection.getSelectedElement();if(!o)return;let s=n.mapper.toViewElement(o);if(!zB(s,o,r))return;let c=UB(t.selection);c&&(i.addClass(a(c),s),this._currentFakeCaretModelElement=o)}),this._listenToIfEnabled(e.ui.focusTracker,`change:isFocused`,(t,n,r)=>{r||e.model.change(e=>{e.removeSelectionAttribute(RB)})});function a(e){return`ck-widget_type-around_show-fake-caret_${e}`}}_handleArrowKeyPress(e,t){let n=this.editor,r=n.model,i=r.document.selection,a=r.schema,o=n.editing.view;if(t.shiftKey)return;let s=t.keyCode,c=nT(s,n.locale.contentLanguageDirection),l=o.document.selection.getSelectedElement(),u=n.editing.mapper.toModelElement(l),d;zB(l,u,a)?d=this._handleArrowKeyPressOnSelectedWidget(c):i.isCollapsed?d=this._handleArrowKeyPressWhenSelectionNextToAWidget(c):t.shiftKey||(d=this._handleArrowKeyPressWhenNonCollapsedSelection(c)),d&&(t.preventDefault(),e.stop())}_handleArrowKeyPressOnSelectedWidget(e){let t=this.editor.model,n=t.document.selection,r=UB(n);return t.change(t=>{if(r){if(r!==(e?`after`:`before`))return t.removeSelectionAttribute(RB),!0}else return t.setSelectionAttribute(RB,e?`after`:`before`),!0;return!1})}_handleArrowKeyPressWhenSelectionNextToAWidget(e){let t=this.editor,n=t.model,r=n.schema,i=t.plugins.get(`Widget`),a=i._getObjectElementNextToSelection(e);return zB(t.editing.mapper.toViewElement(a),a,r)?(n.change(t=>{i._setSelectionOverElement(a),t.setSelectionAttribute(RB,e?`before`:`after`)}),!0):!1}_handleArrowKeyPressWhenNonCollapsedSelection(e){let t=this.editor,n=t.model,r=n.schema,i=t.editing.mapper,a=n.document.selection,o=e?a.getLastPosition().nodeBefore:a.getFirstPosition().nodeAfter;return zB(i.toViewElement(o),o,r)?(n.change(t=>{t.setSelection(o,`on`),t.setSelectionAttribute(RB,e?`after`:`before`)}),!0):!1}_enableInsertingParagraphsOnButtonClick(){let e=this.editor,t=e.editing.view;this._listenToIfEnabled(t.document,`mousedown`,(n,r)=>{let i=BB(r.domTarget);if(!i)return;let a=VB(i),o=HB(i,t.domConverter),s=e.editing.mapper.toModelElement(o);this._insertParagraph(s,a),r.preventDefault(),n.stop()})}_enableInsertingParagraphsOnEnterKeypress(){let e=this.editor,t=e.model.document.selection,n=e.editing.view;this._listenToIfEnabled(n.document,`enter`,(n,r)=>{if(n.eventPhase!=`atTarget`)return;let i=t.getSelectedElement(),a=e.editing.mapper.toViewElement(i),o=e.model.schema,s;this._insertParagraphAccordingToFakeCaretPosition()?s=!0:zB(a,i,o)&&(this._insertParagraph(i,r.isSoft?`before`:`after`),s=!0),s&&(r.preventDefault(),n.stop())},{context:OB})}_enableInsertingParagraphsOnTypingKeystroke(){let e=this.editor.editing.view.document;this._listenToIfEnabled(e,`insertText`,(t,n)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(n.selection=e.selection)},{priority:`high`}),G.isAndroid?this._listenToIfEnabled(e,`keydown`,(e,t)=>{t.keyCode==229&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(e,`compositionstart`,()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:`highest`})}_enableDeleteIntegration(){let e=this.editor,t=e.editing.view,n=e.model,r=n.schema;this._listenToIfEnabled(t.document,`delete`,(t,i)=>{if(t.eventPhase!=`atTarget`)return;let a=UB(n.document.selection);if(!a)return;let o=i.direction,s=n.document.selection.getSelectedElement(),c=a===`before`,l=o==`forward`;if(c===l)e.execute(`delete`,{selection:n.createSelection(s,`on`)});else{let t=r.getNearestSelectionRange(n.createPositionAt(s,a),o);if(t)if(!t.isCollapsed)n.change(n=>{n.setSelection(t),e.execute(l?`deleteForward`:`delete`)});else{let i=n.createSelection(t.start);if(n.modifySelection(i,{direction:o}),!i.focus.isEqual(t.start))n.change(n=>{n.setSelection(t),e.execute(l?`deleteForward`:`delete`)});else{let e=ZB(r,t.start.parent);n.deleteContent(n.createSelection(e,`on`),{doNotAutoparagraph:!0})}}}i.preventDefault(),t.stop()},{context:OB})}_enableInsertContentIntegration(){let e=this.editor,t=this.editor.model,n=t.document.selection;this._listenToIfEnabled(e.model,`insertContent`,(e,[r,i])=>{if(i&&!i.is(`documentSelection`))return;let a=UB(n);if(a)return e.stop(),t.change(e=>{let i=n.getSelectedElement(),o=t.createPositionAt(i,a),s=e.createSelection(o),c=t.insertContent(r,s);return e.setSelection(s),c})},{priority:`high`})}_enableInsertObjectIntegration(){let e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,`insertObject`,(e,n)=>{let[,r,i={}]=n;if(r&&!r.is(`documentSelection`))return;let a=UB(t);a&&(i.findOptimalPosition=a,n[3]=i)},{priority:`high`})}_enableDeleteContentIntegration(){let e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,`deleteContent`,(e,[n])=>{n&&!n.is(`documentSelection`)||UB(t)&&e.stop()},{priority:`high`})}};function JB(e,t,n){let r=e.createUIElement(`div`,{class:`ck ck-reset_all ck-widget__type-around`},function(e){let n=this.toDomElement(e);return YB(n,t),XB(n),n});e.insert(e.createPositionAt(n,`end`),r)}function YB(e,t){for(let n of WB){let r=new AF({tag:`div`,attributes:{class:[`ck`,`ck-widget__type-around__button`,`ck-widget__type-around__button_${n}`],title:t[n],"aria-hidden":`true`},children:[e.ownerDocument.importNode(GB,!0)]});e.appendChild(r.render())}}function XB(e){let t=new AF({tag:`div`,attributes:{class:[`ck`,`ck-widget__type-around__fake-caret`]}});e.appendChild(t.render())}function ZB(e,t){let n=t;for(let r of t.getAncestors({parentFirst:!0})){if(r.childCount>1||e.isLimit(r))break;n=r}return n}function QB(e){let t=e.model;return(n,r)=>{let i=r.keyCode==q.arrowup,a=r.keyCode==q.arrowdown,o=r.shiftKey,s=t.document.selection;if(!i&&!a)return;let c=a,l=$B(e,s,c);if(l){if(l.isCollapsed&&(s.isCollapsed||o))return;(l.isCollapsed||nV(e,l,c))&&(t.change(e=>{let n=c?l.end:l.start;if(o){let r=t.createSelection(s.anchor);r.setFocus(n),e.setSelection(r)}else e.setSelection(n)}),n.stop(),r.preventDefault(),r.stopPropagation())}}}function $B(e,t,n){let r=e.model;if(n){let e=t.focus,n=eV(r,e,`forward`);if(!n)return;let i=r.createRange(e,n),a=tV(r.schema,i,`backward`);if(a)return r.createRange(e,a)}else{let e=t.focus,n=eV(r,e,`backward`);if(!n)return;let i=r.createRange(n,e),a=tV(r.schema,i,`forward`);if(a)return r.createRange(a,e)}}function eV(e,t,n){let r=e.schema,i=e.createRangeIn(t.root),a=n==`forward`?`elementStart`:`elementEnd`;for(let{previousPosition:e,item:o,type:s}of i.getWalker({startPosition:t,direction:n})){if(r.isLimit(o)&&!r.isInline(o))return e;if(s==a&&r.isBlock(o))return null}return null}function tV(e,t,n){let r=n==`backward`?t.end:t.start;if(e.checkChild(r,`$text`))return r;for(let{nextPosition:r}of t.getWalker({direction:n}))if(e.checkChild(r,`$text`))return r}function nV(e,t,n){let r=e.model,i=e.view.domConverter;if(n){let e=r.createSelection(t.start);r.modifySelection(e),!e.focus.isAtEnd&&!t.start.isEqual(e.focus)&&(t=r.createRange(e.focus,t.end))}let a=e.mapper.toViewRange(t),o=i.viewRangeToDom(a),s=fw.getDomRangeRects(o),c;for(let e of s){if(c===void 0){c=Math.round(e.bottom);continue}if(Math.round(e.top)>=c)return!1;c=Math.max(c,Math.round(e.bottom))}return!0}var rV=class extends Z{_previouslySelected=new Set;static get pluginName(){return`Widget`}static get isOfficialPlugin(){return!0}static get requires(){return[qB,gz]}init(){let e=this.editor,t=e.editing.view,n=t.document,r=e.t;this.editor.editing.downcastDispatcher.on(`selection`,(t,n,r)=>{let i=r.writer,a=n.selection;if(a.isCollapsed)return;let o=a.getSelectedElement();if(!o)return;let s=e.editing.mapper.toViewElement(o);OB(s)&&r.consumable.consume(a,`selection`)&&i.setSelection(i.createRangeOn(s),{fake:!0,label:PB(s)})}),this.editor.editing.downcastDispatcher.on(`selection`,(e,t,n)=>{this._clearPreviouslySelectedWidgets(n.writer);let r=n.writer,i=r.document.selection,a=null;for(let e of i.getRanges())for(let t of e){let e=t.item;OB(e)&&!cV(e,a)&&(r.addClass(DB,e),this._previouslySelected.add(e),a=e)}},{priority:`low`}),t.addObserver(xN),t.addObserver(CN),this.listenTo(n,`mousedown`,(...e)=>this._onMousedown(...e)),this.listenTo(n,`pointerdown`,(...e)=>this._onPointerdown(...e)),this.listenTo(n,`arrowKey`,(...e)=>{this._handleSelectionChangeOnArrowKeyPress(...e)},{context:[OB,`$text`]}),this.listenTo(n,`arrowKey`,(...e)=>{this._preventDefaultOnArrowKeyPress(...e)},{context:`$root`}),this.listenTo(n,`arrowKey`,QB(this.editor.editing),{context:`$text`}),this.listenTo(n,`delete`,(e,t)=>{this._handleDelete(t.direction==`forward`)&&(t.preventDefault(),e.stop())},{context:`$root`}),this.listenTo(n,`tab`,(e,n)=>{this._selectNextEditable(n.shiftKey?`backward`:`forward`)&&(t.scrollToTheSelection(),n.preventDefault(),e.stop())},{context:e=>OB(e)||e.is(`editableElement`),priority:`low`}),this.listenTo(n,`keydown`,(e,t)=>{t.keystroke==q.esc&&this._selectAncestorWidget()&&(t.preventDefault(),e.stop())},{context:e=>e.is(`editableElement`),priority:`low`}),e.accessibility.addKeystrokeInfoGroup({id:`widget`,label:r(`Keystrokes that can be used when a widget is selected (for example: image, table, etc.)`),keystrokes:[{label:r(`Move focus from an editable area back to the parent widget`),keystroke:`Esc`},{label:r(`Insert a new paragraph directly after a widget`),keystroke:`Enter`},{label:r(`Insert a new paragraph directly before a widget`),keystroke:`Shift+Enter`},{label:r(`Move the caret to allow typing directly before a widget`),keystroke:[[`arrowup`],[`arrowleft`]]},{label:r(`Move the caret to allow typing directly after a widget`),keystroke:[[`arrowdown`],[`arrowright`]]}]})}_onMousedown(e,t){let n=t.target;n&&t.domEvent.detail>=3&&this._selectBlockContent(n)&&t.preventDefault()}_onPointerdown(e,t){if(!t.domEvent.isPrimary||BB(t.domTarget))return;let n=this.editor,r=n.editing.view,i=r.document,a=t.target;if(!a)return;if(!OB(a)){let e=oV(a);if(!e)return;if(OB(e))a=e;else{let e=sV(r,t);if(e&&OB(e))a=e;else return}}(G.isAndroid||G.isiOS)&&t.preventDefault(),i.isFocused||r.focus();let o=n.editing.mapper.toModelElement(a);this._setSelectionOverElement(o)}_selectBlockContent(e){let t=this.editor,n=t.model,r=t.editing.mapper,i=n.schema,a=r.findMappedViewAncestor(this.editor.editing.view.createPositionAt(e,0)),o=lV(r.toModelElement(a),n.schema);return o?(n.change(e=>{let t=i.isLimit(o)?null:uV(e.createPositionAfter(o),i),n=e.createPositionAt(o,0),r=t?e.createPositionAt(t,0):e.createPositionAt(o,`end`);e.setSelection(e.createRange(n,r))}),!0):!1}_handleSelectionChangeOnArrowKeyPress(e,t){let n=t.keyCode,r=this.editor.model,i=r.schema,a=r.document.selection,o=a.getSelectedElement(),s=eT(n,this.editor.locale.contentLanguageDirection),c=s==`down`||s==`right`,l=s==`up`||s==`down`;if(!t.shiftKey&&!a.isCollapsed){if(iV(a,i)){let n=c?a.getLastPosition():a.getFirstPosition(),o=i.getNearestSelectionRange(n,c?`forward`:`backward`);o&&(r.change(e=>{e.setSelection(o)}),t.preventDefault(),e.stop())}return}let u=aV(r,c),d=r.createSelection(u);if(r.modifySelection(d,{direction:c?`forward`:`backward`}),d.isEqual(u))return;d.focus.isTouching(u.focus)&&i.checkChild(d.focus.parent,`$text`)&&(c?!d.focus.isAtEnd:!d.focus.isAtStart)&&r.modifySelection(d,{direction:c?`forward`:`backward`});let f=c?u.focus.nodeBefore:u.focus.nodeAfter,p=d.focus.nodeBefore,m=d.focus.nodeAfter,h=c?p:m;if(t.shiftKey)(o&&i.isObject(o)||h&&i.isObject(h)||f&&i.isObject(f))&&(r.change(e=>{e.setSelection(d)}),t.preventDefault(),e.stop());else if(h&&i.isObject(h)){if(i.isInline(h)&&l)return;r.change(e=>{e.setSelection(h,`on`)}),t.preventDefault(),e.stop()}}_preventDefaultOnArrowKeyPress(e,t){let n=this.editor.model,r=n.schema,i=n.document.selection.getSelectedElement();i&&r.isObject(i)&&(t.preventDefault(),e.stop())}_handleDelete(e){let t=this.editor.model.document.selection;if(!this.editor.model.canEditAt(t)||!t.isCollapsed)return;let n=this._getObjectElementNextToSelection(e);if(n)return this.editor.model.change(e=>{let r=t.anchor.parent;for(;r.isEmpty;){let t=r;r=t.parent,e.remove(t)}this._setSelectionOverElement(n)}),!0}_setSelectionOverElement(e){this.editor.model.change(t=>{t.setSelection(t.createRangeOn(e))})}_getObjectElementNextToSelection(e){let t=this.editor.model,n=t.schema,r=t.document.selection,i=t.createSelection(r);if(t.modifySelection(i,{direction:e?`forward`:`backward`}),i.isEqual(r))return null;let a=e?i.focus.nodeBefore:i.focus.nodeAfter;return a&&n.isObject(a)?a:null}_clearPreviouslySelectedWidgets(e){for(let t of this._previouslySelected)e.removeClass(DB,t);this._previouslySelected.clear()}_selectNextEditable(e){let t=this.editor.editing,n=t.view,r=this.editor.model,i=n.document.selection,a=r.document.selection,o;if(a.rangeCount>1){let n=a.isBackward?a.getFirstRange():a.getLastRange();o=t.mapper.toViewPosition(e==`forward`?n.end:n.start)}else o=e==`forward`?i.getFirstPosition():i.getLastPosition();let s=this._findNextFocusRange(o,e);return s?(r.change(e=>{e.setSelection(s)}),!0):!1}_findNextFocusRange(e,t){let n=this.editor.editing,r=n.view,i=this.editor.model,a=r.document.selection,o=a.editableElement,s=o.getPath(),c=a.getSelectedElement();c&&!OB(c)&&(c=null);let l=t==`forward`?r.createRange(e,r.createPositionAt(e.root,`end`)):r.createRange(r.createPositionAt(e.root,0),e);for(let{nextPosition:e}of l.getWalker({direction:t})){let r=e.parent;if(OB(r)&&r!=c){let e=n.mapper.toModelElement(r);if(!i.schema.isBlock(e))continue;if(UC(s,r.getPath())!=`extension`)return i.createRangeOn(e)}else if(r.is(`editableElement`)){if(r==o&&!c)continue;let a=n.mapper.toModelPosition(e),l=i.schema.getNearestSelectionRange(a,t);if(!l)continue;return r==o&&c||UC(s,r.getPath())==`extension`?l:i.createRangeIn(i.schema.getLimitElement(l))}}return null}_selectAncestorWidget(){let e=this.editor,t=e.editing.mapper,n=e.editing.view.document.selection.getFirstPosition().parent,r=(n.is(`$text`)?n.parent:n).findAncestor(OB);if(!r)return!1;let i=t.toModelElement(r);return i?(e.model.change(e=>{e.setSelection(i,`on`)}),!0):!1}};function iV(e,t){let n=e.getFirstPosition(),r=e.getLastPosition(),i=n.nodeAfter,a=r.nodeBefore;return!!i&&t.isObject(i)||!!a&&t.isObject(a)}function aV(e,t){let n=e.document.selection,r=n.getSelectedElement(),i=UB(n);return r&&i==`before`?e.createSelection(r,`before`):r&&i==`after`?e.createSelection(r,`after`):e.createSelection(n.getRanges(),{backward:r&&e.schema.isObject(r)?!t:n.isBackward})}function oV(e){let t=e;for(;t;){if(t.is(`editableElement`)||OB(t))return t;t=t.parent}return null}function sV(e,t){let n=ow(t.domEvent),r=null;if(r=n?e.domConverter.domRangeToView(n):e.createRange(e.createPositionAt(t.target,0)),!r)return null;let i=r.start;if(!i.parent)return null;let a=i.parent;return i.parent.is(`editableElement`)&&(i.isAtEnd&&i.nodeBefore?a=i.nodeBefore:i.isAtStart&&i.nodeAfter&&(a=i.nodeAfter)),a.is(`$text`)?a.parent:a}function cV(e,t){return t?Array.from(e.getAncestors()).includes(t):!1}function lV(e,t){for(let n of e.getAncestors({includeSelf:!0,parentFirst:!0})){if(t.checkChild(n,`$text`))return n;if(t.isLimit(n)&&!t.isObject(n))break}return null}function uV(e,t){let n=new AO({startPosition:e});for(let{item:e}of n){if(t.isLimit(e)||!e.is(`element`))return null;if(t.checkChild(e,`$text`))return e}return null}var dV=class extends Z{_toolbarDefinitions=new Map;_balloon;static get requires(){return[FR]}static get pluginName(){return`WidgetToolbarRepository`}static get isOfficialPlugin(){return!0}init(){let e=this.editor;if(e.plugins.has(`BalloonToolbar`)){let t=e.plugins.get(`BalloonToolbar`);this.listenTo(t,`show`,t=>{mV(e.editing.view.document.selection)&&t.stop()},{priority:`high`})}this._balloon=this.editor.plugins.get(`ContextualBalloon`),this.on(`change:isEnabled`,()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui,`update`,()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui.focusTracker,`change:isFocused`,()=>{this._updateToolbarsVisibility()},{priority:`low`})}destroy(){super.destroy();for(let e of this._toolbarDefinitions.values())e.view.destroy()}register(e,{ariaLabel:t,items:n,getRelatedElement:r,balloonClassName:i=`ck-toolbar-container`,positions:a}){if(!n.length){tC(`widget-toolbar-no-items`,{toolbarId:e});return}let o=this.editor,s=o.t,c=new SL(o.locale);if(c.ariaLabel=t||s(`Widget toolbar`),this._toolbarDefinitions.has(e))throw new K(`widget-toolbar-duplicated`,this,{toolbarId:e});let l={view:c,getRelatedElement:r,balloonClassName:i,itemsConfig:n,positions:a,initialized:!1};o.ui.addToolbar(c,{isContextual:!0,beforeFocus:()=>{let e=r(o.editing.view.document.selection);e&&this._showToolbar(l,e)},afterBlur:()=>{this._hideToolbar(l)}}),this._toolbarDefinitions.set(e,l)}_updateToolbarsVisibility(){let e=0,t=null,n=null;for(let r of this._toolbarDefinitions.values()){let i=r.getRelatedElement(this.editor.editing.view.document.selection);if(!this.isEnabled||!i)this._isToolbarInBalloon(r)&&this._hideToolbar(r);else if(!this.editor.ui.focusTracker.isFocused)this._isToolbarVisible(r)&&this._hideToolbar(r);else{let a=i.getAncestors().length;a>e&&(e=a,t=i,n=r)}}n&&this._showToolbar(n,t)}_hideToolbar(e){this._balloon.remove(e.view),this.stopListening(this._balloon,`change:visibleView`)}_showToolbar(e,t){this._isToolbarVisible(e)?fV(this.editor,t,e.positions):this._isToolbarInBalloon(e)||(e.initialized||(e.initialized=!0,e.view.fillFromConfig(e.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:e.view,position:pV(this.editor,t,e.positions),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,`change:visibleView`,()=>{for(let t of this._toolbarDefinitions.values())if(this._isToolbarVisible(t)){let n=t.getRelatedElement(this.editor.editing.view.document.selection);fV(this.editor,n,e.positions)}}))}_isToolbarVisible(e){return this._balloon.visibleView===e.view}_isToolbarInBalloon(e){return this._balloon.hasView(e.view)}};function fV(e,t,n){let r=e.plugins.get(`ContextualBalloon`),i=pV(e,t,n);r.updatePosition(i)}function pV(e,t,n){let r=e.editing.view,i=HI.defaultPositions;return{target:r.domConverter.mapViewToDom(t),positions:n||[i.northArrowSouth,i.northArrowSouthWest,i.northArrowSouthEast,i.southArrowNorth,i.southArrowNorthWest,i.southArrowNorthEast,i.viewportStickyNorth]}}function mV(e){let t=e.getSelectedElement();return!!(t&&OB(t))}function hV(e){return e=e.replace(/&/g,`&`).replace(//g,`>`).replace(/\r?\n\r?\n/g,`

`).replace(/\r?\n/g,`
`).replace(/\t/g,`    `).replace(/^\s/,` `).replace(/\s$/,` `).replace(/\s\s/g,`  `),(e.includes(`

`)||e.includes(`
`))&&(e=`

${e}

`),e}var gV=class extends dO{domEventType=[`paste`,`copy`,`cut`,`drop`,`dragover`,`dragstart`,`dragend`,`dragenter`,`dragleave`];constructor(e){super(e);let t=this.document;this.listenTo(t,`paste`,n(`clipboardInput`),{priority:`low`}),this.listenTo(t,`drop`,n(`clipboardInput`),{priority:`low`}),this.listenTo(t,`dragover`,n(`dragging`),{priority:`low`});function n(e){return(n,r)=>{r.preventDefault();let i=r.dropRange?[r.dropRange]:null,a=r.dataTransfer,o=new YS(t,e),s=``;a.getData(`text/html`)?s=a.getData(`text/html`):a.getData(`text/plain`)&&(s=hV(a.getData(`text/plain`))),t.fire(o,{dataTransfer:a,content:s,method:n.name,targetRanges:i,target:r.target,domEvent:r.domEvent}),o.stop.called&&r.stopPropagation()}}}onDomEvent(e){let t={dataTransfer:new bO(`clipboardData`in e?e.clipboardData:e.dataTransfer,{cacheFiles:e.type==`drop`||e.type==`paste`})};if(e.type==`drop`||e.type==`dragover`){let n=ow(e);t.dropRange=n&&this.view.domConverter.domRangeToView(n)}this.fire(e.type,e,t)}};function _V(e){return e.replace(/(\s+)<\/span>/g,(e,t)=>t.length==1?` `:t).replace(//g,``)}var vV=[`figcaption`,`li`],yV=[`ol`,`ul`];function bV(e,t){if(t.is(`$text`)||t.is(`$textProxy`))return t.data;if(t.is(`element`,`img`)&&t.hasAttribute(`alt`))return t.getAttribute(`alt`);if(t.is(`element`,`br`))return` +`;let n=``,r=null;for(let i of t.getChildren())n+=SV(i,r)+bV(e,i),r=i;if(t.is(`rawElement`)){let r=document.implementation.createHTMLDocument(``).createElement(`div`);t.render(r,e),n+=xV(r)}return n}function xV(e){let t=``;if(e.nodeType===Node.TEXT_NODE)return e.textContent;if(e.tagName===`BR`)return` +`;for(let n of e.childNodes)t+=xV(n);return t}function SV(e,t){return t?e.is(`element`,`li`)&&!e.isEmpty&&e.getChild(0).is(`containerElement`)||yV.includes(e.name)&&yV.includes(t.name)?` + +`:!e.is(`containerElement`)&&!t.is(`containerElement`)?``:vV.includes(e.name)||vV.includes(t.name)?` +`:e.is(`element`)&&e.getCustomProperty(`dataPipeline:transparentRendering`)||t.is(`element`)&&t.getCustomProperty(`dataPipeline:transparentRendering`)?``:` + +`:``}var CV=class extends Z{_markersToCopy=new Map;static get pluginName(){return`ClipboardMarkersUtils`}static get isOfficialPlugin(){return!0}_registerMarkerToCopy(e,t){this._markersToCopy.set(e,t)}_copySelectedFragmentWithMarkers(e,t,n=e=>e.model.getSelectedContent(e.model.document.selection)){return this.editor.model.change(r=>{let i=r.model.document.selection;r.setSelection(t);let a=this._insertFakeMarkersIntoSelection(r,r.model.document.selection,e),o=n(r),s=this._removeFakeMarkersInsideElement(r,o);for(let[e,t]of Object.entries(a)){s[e]||=r.createRangeIn(o);for(let e of t)r.remove(e)}o.markers.clear();for(let[e,t]of Object.entries(s))o.markers.set(e,t);return r.setSelection(i),o})}_pasteMarkersIntoTransformedElement(e,t){let n=this._getPasteMarkersFromRangeMap(e);return this.editor.model.change(e=>{let r=this._insertFakeMarkersElements(e,n),i=t(e),a=this._removeFakeMarkersInsideElement(e,i);for(let t of Object.values(r).flat())e.remove(t);for(let[t,n]of Object.entries(a))e.model.markers.has(t)||e.addMarker(t,{usingOperation:!0,affectsData:!0,range:n});return i})}_pasteFragmentWithMarkers(e){let t=this._getPasteMarkersFromRangeMap(e.markers);e.markers.clear();for(let n of t)e.markers.set(n.name,n.range);return this.editor.model.insertContent(e)}_forceMarkersCopy(e,t,n={allowedActions:`all`,copyPartiallySelected:!0,duplicateOnPaste:!0}){let r=this._markersToCopy.get(e);this._markersToCopy.set(e,n),t(),r?this._markersToCopy.set(e,r):this._markersToCopy.delete(e)}_isMarkerCopyable(e,t){let n=this._getMarkerClipboardConfig(e);if(!n)return!1;if(!t)return!0;let{allowedActions:r}=n;return r===`all`||r.includes(t)}_hasMarkerConfiguration(e){return!!this._getMarkerClipboardConfig(e)}_getMarkerClipboardConfig(e){let[t]=e.split(`:`);return this._markersToCopy.get(t)||null}_insertFakeMarkersIntoSelection(e,t,n){let r=this._getCopyableMarkersFromSelection(e,t,n);return this._insertFakeMarkersElements(e,r)}_getCopyableMarkersFromSelection(e,t,n){let r=Array.from(t.getRanges()),i=new Set(r.flatMap(t=>Array.from(e.model.markers.getMarkersIntersectingRange(t))));return Array.from(i).filter(e=>{if(!this._isMarkerCopyable(e.name,n))return!1;let{copyPartiallySelected:t}=this._getMarkerClipboardConfig(e.name);if(!t){let t=e.getRange();return r.some(e=>e.containsRange(t,!0))}return!0}).map(e=>({name:n===`dragstart`?this._getUniqueMarkerName(e.name):e.name,range:e.getRange()}))}_getPasteMarkersFromRangeMap(e,t=null){let{model:n}=this.editor;return(e instanceof Map?Array.from(e.entries()):Object.entries(e)).flatMap(([e,r])=>{if(!this._hasMarkerConfiguration(e))return[{name:e,range:r}];if(this._isMarkerCopyable(e,t)){let t=this._getMarkerClipboardConfig(e),i=n.markers.has(e)&&n.markers.get(e).getRange().root.rootName===`$graveyard`;return(t.duplicateOnPaste||i)&&(e=this._getUniqueMarkerName(e)),[{name:e,range:r}]}return[]})}_insertFakeMarkersElements(e,t){let n={},r=t.flatMap(e=>{let{start:t,end:n}=e.range;return[{position:t,marker:e,type:`start`},{position:n,marker:e,type:`end`}]}).sort(({position:e},{position:t})=>e.isBefore(t)?1:-1);for(let{position:t,marker:i,type:a}of r){let r=e.createElement(`$marker`,{"data-name":i.name,"data-type":a});n[i.name]||(n[i.name]=[]),n[i.name].push(r),e.insert(r,t)}return n}_removeFakeMarkersInsideElement(e,t){return vS(this._getAllFakeMarkersFromElement(e,t).reduce((t,n)=>{let r=n.markerElement&&e.createPositionBefore(n.markerElement),i=t[n.name],a=!1;return i?.start&&i?.end&&(this._getMarkerClipboardConfig(n.name).duplicateOnPaste?t[this._getUniqueMarkerName(n.name)]=t[n.name]:a=!0,i=null),a||(t[n.name]={...i,[n.type]:r}),n.markerElement&&e.remove(n.markerElement),t},{}),n=>new X(n.start||e.createPositionFromPath(t,[0]),n.end||e.createPositionAt(t,`end`)))}_getAllFakeMarkersFromElement(e,t){let n=Array.from(e.createRangeIn(t)).flatMap(({item:e})=>e.is(`element`,`$marker`)?[{markerElement:e,name:e.getAttribute(`data-name`),type:e.getAttribute(`data-type`)}]:[]),r=[],i=[];for(let e of n)e.type===`end`&&(n.some(t=>t.name===e.name&&t.type===`start`)||r.push({markerElement:null,name:e.name,type:`start`})),e.type===`start`&&(n.some(t=>t.name===e.name&&t.type===`end`)||i.unshift({markerElement:null,name:e.name,type:`end`}));return[...r,...n,...i]}_getUniqueMarkerName(e){let t=e.split(`:`),n=ZS().substring(1,6);return t.length===3?`${t.slice(0,2).join(`:`)}:${n}`:`${t.join(`:`)}:${n}`}},wV=class extends Z{static get pluginName(){return`ClipboardPipeline`}static get isOfficialPlugin(){return!0}static get requires(){return[CV]}init(){this.editor.editing.view.addObserver(gV),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(e,t,n){let r=this.editor.plugins.get(`ClipboardMarkersUtils`);this.editor.model.enqueueChange({isUndoable:n===`cut`},()=>{let i=r._copySelectedFragmentWithMarkers(n,t);this.fire(`outputTransformation`,{dataTransfer:e,content:i,method:n})})}_setupPasteDrop(){let e=this.editor,t=e.model,n=e.editing.view,r=n.document,i=this.editor.plugins.get(`ClipboardMarkersUtils`);this.listenTo(r,`clipboardInput`,(t,n)=>{n.method==`paste`&&!e.model.canEditAt(e.model.document.selection)&&t.stop()},{priority:`highest`}),this.listenTo(r,`clipboardInput`,(e,t)=>{let r=t.dataTransfer,i=new YS(this,`inputTransformation`),a=r.getData(`application/ckeditor5-editor-id`)||null,o=typeof t.content==`string`?this.editor.data.htmlProcessor.toView(_V(t.content)):t.content;this.fire(i,{content:o,dataTransfer:r,sourceEditorId:a,extraContent:t.extraContent,targetRanges:t.targetRanges,method:t.method}),i.stop.called&&e.stop(),n.scrollToTheSelection()},{priority:`low`}),this.listenTo(this,`inputTransformation`,(e,n)=>{if(n.content.isEmpty)return;let r=this.editor.data.toModel(n.content,`$clipboardHolder`);r.childCount!=0&&(e.stop(),t.change(()=>{this.fire(`contentInsertion`,{content:r,method:n.method,sourceEditorId:n.sourceEditorId,dataTransfer:n.dataTransfer,targetRanges:n.targetRanges})}))},{priority:`low`}),this.listenTo(this,`contentInsertion`,(e,t)=>{t.resultRange=i._pasteFragmentWithMarkers(t.content)},{priority:`low`})}_setupCopyCut(){let e=this.editor,t=e.model.document,n=e.editing.view.document,r=(e,n)=>{let r=n.dataTransfer;n.preventDefault(),this._fireOutputTransformationEvent(r,t.selection,e.name)};this.listenTo(n,`copy`,r,{priority:`low`}),this.listenTo(n,`cut`,(t,n)=>{e.model.canEditAt(e.model.document.selection)?r(t,n):n.preventDefault()},{priority:`low`}),this.listenTo(this,`outputTransformation`,(t,r)=>{let i=e.data.toView(r.content,{isClipboardPipeline:!0});n.fire(`clipboardOutput`,{dataTransfer:r.dataTransfer,content:i,method:r.method})},{priority:`low`}),this.listenTo(n,`clipboardOutput`,(n,r)=>{r.content.isEmpty||(r.dataTransfer.setData(`text/html`,this.editor.data.htmlProcessor.toData(r.content)),r.dataTransfer.setData(`text/plain`,bV(e.data.htmlProcessor.domConverter,r.content)),r.dataTransfer.setData(`application/ckeditor5-editor-id`,this.editor.id)),r.method==`cut`&&e.model.deleteContent(t.selection)},{priority:`low`})}},TV=Sw(`px`),EV=class extends ${constructor(){super();let e=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-clipboard-drop-target-line`,e.if(`isVisible`,`ck-hidden`,e=>!e)],style:{left:e.to(`left`,e=>TV(e)),top:e.to(`top`,e=>TV(e)),width:e.to(`width`,e=>TV(e))}}})}},DV=class extends Z{removeDropMarkerDelayed=DT(()=>this.removeDropMarker(),40);_updateDropMarkerThrottled=qx(e=>this._updateDropMarker(e),40);_reconvertMarkerThrottled=qx(()=>{this.editor.model.markers.has(`drop-target`)&&this.editor.editing.reconvertMarker(`drop-target`)},0);_dropTargetLineView=new EV;_domEmitter=new($C());_scrollables=new Map;static get pluginName(){return`DragDropTarget`}static get isOfficialPlugin(){return!0}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(let{resizeObserver:e}of this._scrollables.values())e.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(e,t,n,r,i,a){this.removeDropMarkerDelayed.cancel();let o=OV(this.editor,e,t,n,r,i,a);return o?a&&a.containsRange(o)||o&&!this.editor.model.canEditAt(o)?(this.removeDropMarker(),null):(this._updateDropMarkerThrottled(o),o):null}getFinalDropRange(e,t,n,r,i,a){let o=OV(this.editor,e,t,n,r,i,a);return this.removeDropMarker(),o}removeDropMarker(){let e=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,e.markers.has(`drop-target`)&&e.change(e=>{e.removeMarker(`drop-target`)})}_setupDropMarker(){let e=this.editor;e.ui.view.body.add(this._dropTargetLineView),e.conversion.for(`editingDowncast`).markerToHighlight({model:`drop-target`,view:{classes:[`ck-clipboard-drop-target-range`]}}),e.conversion.for(`editingDowncast`).markerToElement({model:`drop-target`,view:(t,{writer:n})=>{if(e.model.schema.checkChild(t.markerRange.start,`$text`))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(n);t.markerRange.isCollapsed?this._updateDropTargetLine(t.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(e){let t=this.editor,n=t.model.markers;t.model.change(t=>{n.has(`drop-target`)?n.get(`drop-target`).getRange().isEqual(e)||t.updateMarker(`drop-target`,{range:e}):t.addMarker(`drop-target`,{range:e,usingOperation:!1,affectsData:!1})})}_createDropTargetPosition(e){return e.createUIElement(`span`,{class:`ck ck-clipboard-drop-target-position`},function(e){let t=this.toDomElement(e);return t.append(`⁠`,e.createElement(`span`),`⁠`),t})}_updateDropTargetLine(e){let t=this.editor.editing,n=e.start.nodeBefore,r=e.start.nodeAfter,i=e.start.parent,a=n?t.mapper.toViewElement(n):null,o=a?t.view.domConverter.mapViewToDom(a):null,s=r?t.mapper.toViewElement(r):null,c=s?t.view.domConverter.mapViewToDom(s):null,l=t.mapper.toViewElement(i);if(!l)return;let u=t.view.domConverter.mapViewToDom(l),d=this._getScrollableRect(l),{scrollX:f,scrollY:p}=W.window,m=o?new fw(o):null,h=c?new fw(c):null,g=new fw(u).excludeScrollbarsAndBorders(),_=m?m.bottom:g.top,v=h?h.top:g.bottom,y=W.window.getComputedStyle(u),b=_<=v?(_+v)/2:v;if(d.tops.schema.checkChild(a,e))){if(s.schema.checkChild(a,`$text`))return s.createRange(a);if(t)return AV(e,MV(e,t.parent),r,i)}}}else if(s.schema.isInline(l))return AV(e,l,r,i)}if(s.schema.isBlock(l))return AV(e,l,r,i);if(s.schema.checkChild(l,`$block`)){let t=Array.from(l.getChildren()).filter(t=>t.is(`element`)&&!kV(e,t)),n=0,a=t.length;if(a==0)return s.createRange(s.createPositionAt(l,`end`));for(;n{n?(this.forceDisabled(`readOnlyMode`),this._isBlockDragging=!1):this.clearForceDisabled(`readOnlyMode`)}),G.isAndroid&&this.forceDisabled(`noAndroidSupport`),e.plugins.has(`BlockToolbar`)){let t=e.plugins.get(`BlockToolbar`).buttonView.element;this._domEmitter.listenTo(t,`dragstart`,(e,t)=>this._handleBlockDragStart(t)),this._domEmitter.listenTo(W.document,`dragover`,(e,t)=>this._handleBlockDragging(t)),this._domEmitter.listenTo(W.document,`drop`,(e,t)=>this._handleBlockDragging(t)),this._domEmitter.listenTo(W.document,`dragend`,()=>this._handleBlockDragEnd(),{useCapture:!0}),this.isEnabled&&t.setAttribute(`draggable`,`true`),this.on(`change:isEnabled`,(e,n,r)=>{t.setAttribute(`draggable`,r?`true`:`false`)})}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(e){if(!this.isEnabled)return;let t=this.editor.model,n=t.document.selection,r=this.editor.editing.view,i=Array.from(n.getSelectedBlocks()),a=t.createRange(t.createPositionBefore(i[0]),t.createPositionAfter(i[i.length-1]));t.change(e=>e.setSelection(a)),this._isBlockDragging=!0,r.focus(),r.getObserver(gV).onDomEvent(e)}_handleBlockDragging(e){if(!this.isEnabled||!this._isBlockDragging)return;let t=e.clientX+(this.editor.locale.contentLanguageDirection==`ltr`?100:-100),n=e.clientY,r=document.elementFromPoint(t,n),i=this.editor.editing.view;!r||!r.closest(`.ck-editor__editable`)||i.getObserver(gV).onDomEvent({...e,type:e.type,dataTransfer:e.dataTransfer,target:r,clientX:t,clientY:n,preventDefault:()=>e.preventDefault(),stopPropagation:()=>e.stopPropagation()})}_handleBlockDragEnd(){this._isBlockDragging=!1}},FV=class extends Z{_draggedRange;_draggingUid;_draggableElement;_clearDraggableAttributesDelayed=DT(()=>this._clearDraggableAttributes(),40);_blockMode=!1;_domEmitter=new($C());_previewContainer;static get pluginName(){return`DragDrop`}static get isOfficialPlugin(){return!0}static get requires(){return[wV,rV,DV,PV]}init(){let e=this.editor,t=e.editing.view;this._draggedRange=null,this._draggingUid=``,this._draggableElement=null,t.addObserver(gV),t.addObserver(CN),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(e,`change:isReadOnly`,(e,t,n)=>{n?this.forceDisabled(`readOnlyMode`):this.clearForceDisabled(`readOnlyMode`)}),this.on(`change:isEnabled`,(e,t,n)=>{n||this._finalizeDragging(!1)}),G.isAndroid&&this.forceDisabled(`noAndroidSupport`)}destroy(){return this._draggedRange&&=(this._draggedRange.detach(),null),this._previewContainer&&this._previewContainer.remove(),this._domEmitter.stopListening(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){let e=this.editor,t=e.model,n=e.editing.view,r=n.document,i=e.plugins.get(DV);this.listenTo(r,`dragstart`,(n,r)=>{if(r.target?.is(`editableElement`)){r.preventDefault();return}if(this._prepareDraggedRange(r.target),!this._draggedRange){r.preventDefault();return}this._draggingUid=ZS();let i=this.isEnabled&&e.model.canEditAt(this._draggedRange);r.dataTransfer.effectAllowed=i?`copyMove`:`copy`,r.dataTransfer.setData(`application/ckeditor5-dragging-uid`,this._draggingUid);let a=t.createSelection(this._draggedRange.toRange());this.editor.plugins.get(`ClipboardPipeline`)._fireOutputTransformationEvent(r.dataTransfer,a,`dragstart`);let{dataTransfer:o,domTarget:s,domEvent:c}=r,{clientX:l}=c;this._updatePreview({dataTransfer:o,domTarget:s,clientX:l}),r.stopPropagation(),i||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=``)},{priority:`low`}),this.listenTo(r,`dragend`,(e,t)=>{this._finalizeDragging(!t.dataTransfer.isCanceled&&t.dataTransfer.dropEffect==`move`)},{priority:`low`}),this._domEmitter.listenTo(W.document,`dragend`,()=>{this._blockMode=!1},{useCapture:!0}),this.listenTo(r,`dragenter`,()=>{this.isEnabled&&n.focus()}),this.listenTo(r,`dragleave`,()=>{i.removeDropMarkerDelayed()}),this.listenTo(r,`dragging`,(e,t)=>{if(!this.isEnabled){t.dataTransfer.dropEffect=`none`;return}let{clientX:n,clientY:r}=t.domEvent;if(!i.updateDropMarker(t.target,t.targetRanges,n,r,this._blockMode,this._draggedRange)){t.dataTransfer.dropEffect=`none`;return}this._draggedRange||(t.dataTransfer.dropEffect=`copy`),G.isGecko||(t.dataTransfer.effectAllowed==`copy`?t.dataTransfer.dropEffect=`copy`:[`all`,`copyMove`].includes(t.dataTransfer.effectAllowed)&&(t.dataTransfer.dropEffect=`move`)),e.stop()},{priority:`low`})}_setupClipboardInputIntegration(){let e=this.editor,t=e.editing.view.document,n=e.plugins.get(DV);this.listenTo(t,`clipboardInput`,(t,r)=>{if(r.method!=`drop`)return;let{clientX:i,clientY:a}=r.domEvent,o=n.getFinalDropRange(r.target,r.targetRanges,i,a,this._blockMode,this._draggedRange);if(!o){this._finalizeDragging(!1),t.stop();return}if(this._draggedRange&&this._draggingUid!=r.dataTransfer.getData(`application/ckeditor5-dragging-uid`)&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=``),IV(r.dataTransfer)==`move`&&this._draggedRange&&this._draggedRange.containsRange(o,!0)){this._finalizeDragging(!1),t.stop();return}r.targetRanges=[e.editing.mapper.toViewRange(o)]},{priority:`high`})}_setupContentInsertionIntegration(){let e=this.editor.plugins.get(wV);e.on(`contentInsertion`,(e,t)=>{if(!this.isEnabled||t.method!==`drop`)return;let n=t.targetRanges.map(e=>this.editor.editing.mapper.toModelRange(e));this.editor.model.change(e=>e.setSelection(n))},{priority:`high`}),e.on(`contentInsertion`,(e,t)=>{if(!this.isEnabled||t.method!==`drop`)return;let n=IV(t.dataTransfer)==`move`,r=!t.resultRange||!t.resultRange.isCollapsed;this._finalizeDragging(r&&n)},{priority:`lowest`})}_setupDraggableAttributeHandling(){let e=this.editor,t=e.editing.view,n=t.document;this.listenTo(n,`pointerdown`,(r,i)=>{if(G.isAndroid||!i)return;this._clearDraggableAttributesDelayed.cancel();let a=LV(i.target);if(G.isBlink&&!e.isReadOnly&&!a&&!n.selection.isCollapsed){let e=n.selection.getSelectedElement();(!e||!OB(e))&&(a=n.selection.editableElement)}a&&(t.change(e=>{e.setAttribute(`draggable`,`true`,a)}),this._draggableElement=e.editing.mapper.toModelElement(a))}),this.listenTo(n,`pointerup`,()=>{G.isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){let e=this.editor.editing;e.view.change(t=>{this._draggableElement&&this._draggableElement.root.rootName!=`$graveyard`&&t.removeAttribute(`draggable`,e.mapper.toViewElement(this._draggableElement)),this._draggableElement=null})}_finalizeDragging(e){let t=this.editor,n=t.model;t.plugins.get(DV).removeDropMarker(),this._clearDraggableAttributes(),t.plugins.has(`WidgetToolbarRepository`)&&t.plugins.get(`WidgetToolbarRepository`).clearForceDisabled(`dragDrop`),this._draggingUid=``,this._previewContainer&&=(this._previewContainer.remove(),void 0),this._draggedRange&&=(e&&this.isEnabled&&n.change(e=>{let t=n.createSelection(this._draggedRange);n.deleteContent(t,{doNotAutoparagraph:!0});let r=t.getFirstPosition().parent;r.isEmpty&&!n.schema.checkChild(r,`$text`)&&n.schema.checkChild(r,`paragraph`)&&e.insertElement(`paragraph`,r,0)}),this._draggedRange.detach(),null)}_prepareDraggedRange(e){let t=this.editor,n=t.model,r=n.document.selection,i=e?LV(e):null;if(i){let e=t.editing.mapper.toModelElement(i);this._draggedRange=sk.fromRange(n.createRangeOn(e)),this._blockMode=n.schema.isBlock(e),t.plugins.has(`WidgetToolbarRepository`)&&t.plugins.get(`WidgetToolbarRepository`).forceDisabled(`dragDrop`);return}if(r.isCollapsed&&!r.getFirstPosition().parent.isEmpty)return;let a=Array.from(r.getSelectedBlocks()),o=r.getFirstRange();if(a.length==0){this._draggedRange=sk.fromRange(o);return}let s=RV(n,a);if(a.length>1)this._draggedRange=sk.fromRange(s),this._blockMode=!0;else if(a.length==1){let e=o.start.isTouching(s.start)&&o.end.isTouching(s.end);this._draggedRange=sk.fromRange(e?s:o),this._blockMode=e}n.change(e=>e.setSelection(this._draggedRange.toRange()))}_updatePreview({dataTransfer:e,domTarget:t,clientX:n}){let r=this.editor.editing.view,i=r.document.selection.editableElement,a=r.domConverter.mapViewToDom(i),o=W.window.getComputedStyle(a);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=GC(W.document,`div`,{style:`position: fixed; left: -999999px;`}),W.document.body.appendChild(this._previewContainer));let s=GC(W.document,`div`);s.className=`ck ck-content ck-clipboard-preview`;let c=new fw(a),l=parseFloat(o.paddingLeft),u=parseFloat(o.paddingRight),d=parseFloat(o.width)-l-u;if(!a.contains(t))if(G.isiOS)s.style.width=`${d}px`,s.style.backgroundColor=`var(--ck-color-base-background)`;else{let e=c.left-n+l;s.style.width=`${d+e}px`,s.style.paddingLeft=`${e}px`}else if(G.isiOS)s.style.maxWidth=`${d}px`,s.style.padding=`10px`,s.style.minWidth=`200px`,s.style.minHeight=`20px`,s.style.boxSizing=`border-box`,s.style.backgroundColor=`var(--ck-color-base-background)`;else return;r.domConverter.setContentOf(s,e.getData(`text/html`)),e.setDragImage(s,0,0),this._previewContainer.appendChild(s)}};function IV(e){return G.isGecko?e.dropEffect:[`all`,`copyMove`].includes(e.effectAllowed)?`move`:`copy`}function LV(e){if(e.is(`editableElement`))return null;if(e.hasClass(`ck-widget__selection-handle`))return e.findAncestor(OB);if(OB(e))return e;let t=e.findAncestor(e=>OB(e)||e.is(`editableElement`));return OB(t)?t:null}function RV(e,t){let n=t[0],r=t[t.length-1],i=n.getCommonAncestor(r),a=e.createPositionBefore(n),o=e.createPositionAfter(r);if(i&&i.is(`element`)&&!e.schema.isLimit(i)){let t=e.createRangeOn(i),n=a.isTouching(t.start),r=o.isTouching(t.end);if(n&&r)return RV(e,[i])}return e.createRange(a,o)}var zV=class extends Z{static get pluginName(){return`PastePlainText`}static get isOfficialPlugin(){return!0}static get requires(){return[wV]}init(){let e=this.editor,t=e.model,n=e.editing.view,r=t.document.selection;n.addObserver(gV),e.plugins.get(wV).on(`contentInsertion`,(e,n)=>{BV(n.content,t)&&t.change(e=>{let i=Array.from(r.getAttributes()).filter(([e])=>t.schema.getAttributeProperties(e).isFormatting);r.isCollapsed||t.deleteContent(r,{doNotAutoparagraph:!0}),i.push(...r.getAttributes());let a=e.createRangeIn(n.content);for(let n of a.getItems())for(let r of i)t.schema.checkAttribute(n,r[0])&&e.setAttribute(r[0],r[1],n)})})}};function BV(e,t){let n=t.createRangeIn(e);if(e.childCount==1){let r=e.getChild(0);r.is(`element`)&&t.schema.isBlock(r)&&!t.schema.isObject(r)&&!t.schema.isLimit(r)&&(n=t.createRangeIn(r))}for(let e of n.getItems())if(!t.schema.isInline(e)||Array.from(e.getAttributeKeys()).find(e=>t.schema.getAttributeProperties(e).isFormatting))return!1;return!0}var VV=class extends Z{static get pluginName(){return`Clipboard`}static get isOfficialPlugin(){return!0}static get requires(){return[CV,wV,FV,zV]}init(){let e=this.editor,t=this.editor.t;e.accessibility.addKeystrokeInfos({keystrokes:[{label:t(`Copy selected content`),keystroke:`CTRL+C`},{label:t(`Paste content`),keystroke:`CTRL+V`},{label:t(`Paste content as plain text`),keystroke:`CTRL+SHIFT+V`}]})}},HV=class extends GN{_stack=[];_createdBatches=new WeakSet;constructor(e){super(e),this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(e.data,`set`,(e,t)=>{t[1]={...t[1]};let n=t[1];n.batchType||={isUndoable:!1}},{priority:`high`}),this.listenTo(e.data,`set`,(e,t)=>{t[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(e){let t=this.editor.model.document.selection,n={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:n}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(e,t,n){let r=this.editor.model,i=r.document,a=[],o=e.map(e=>e.getTransformedByOperations(n)),s=o.flat();for(let e of o){let t=e.filter(e=>e.root!=i.graveyard).filter(e=>!WV(e,s));t.length&&(UV(t),a.push(t[0]))}a.length&&r.change(e=>{e.setSelection(a,{backward:t})})}_undo(e,t){let n=this.editor.model,r=n.document;this._createdBatches.add(t);let i=e.operations.slice().filter(e=>e.isDocumentOperation);i.reverse();for(let e of i){let i=e.baseVersion+1,a=Array.from(r.history.getOperations(i)),o=qj([e.getReversed()],a,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let i of o){let a=i.affectedSelectable;a&&!n.canEditAt(a)&&(i=new Ij(i.baseVersion)),t.addOperation(i),n.applyOperation(i),r.history.setOperationAsUndone(e,i)}}}};function UV(e){e.sort((e,t)=>e.start.isBefore(t.start)?-1:1);for(let t=1;tt!==e&&t.containsRange(e,!0))}var GV=class extends HV{execute(e=null){let t=e?this._stack.findIndex(t=>t.batch==e):this._stack.length-1,n=this._stack.splice(t,1)[0],r=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(r,()=>{this._undo(n.batch,r);let e=this.editor.model.document.history.getOperations(n.batch.baseVersion);this._restoreSelection(n.selection.ranges,n.selection.isBackward,e)}),this.fire(`revert`,n.batch,r),this.refresh()}},KV=class extends HV{execute(){let e=this._stack.pop(),t=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(t,()=>{let n=e.batch.operations[e.batch.operations.length-1].baseVersion+1,r=this.editor.model.document.history.getOperations(n);this._restoreSelection(e.selection.ranges,e.selection.isBackward,r),this._undo(e.batch,t)}),this.fire(`revert`,e.batch,t),this.refresh()}},qV=class extends Z{_undoCommand;_redoCommand;_batchRegistry=new WeakSet;static get pluginName(){return`UndoEditing`}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.t;this._undoCommand=new GV(e),this._redoCommand=new KV(e),e.commands.add(`undo`,this._undoCommand),e.commands.add(`redo`,this._redoCommand),this.listenTo(e.model,`applyOperation`,(e,t)=>{let n=t[0];if(!n.isDocumentOperation)return;let r=n.batch,i=this._redoCommand.createdBatches.has(r),a=this._undoCommand.createdBatches.has(r);this._batchRegistry.has(r)||(this._batchRegistry.add(r),r.isUndoable&&(i?this._undoCommand.addBatch(r):a||(this._undoCommand.addBatch(r),this._redoCommand.clearStack())))},{priority:`highest`}),this.listenTo(this._undoCommand,`revert`,(e,t,n)=>{this._redoCommand.addBatch(n)}),e.keystrokes.set(`CTRL+Z`,`undo`),e.keystrokes.set(`CTRL+Y`,`redo`),e.keystrokes.set(`CTRL+SHIFT+Z`,`redo`),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t(`Undo`),keystroke:`CTRL+Z`},{label:t(`Redo`),keystroke:[[`CTRL+Y`],[`CTRL+SHIFT+Z`]]}]})}},JV=class extends Z{static get pluginName(){return`UndoUI`}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.locale,n=e.t,r=t.uiLanguageDirection==`ltr`?cF:XP,i=t.uiLanguageDirection==`ltr`?XP:cF;this._addButtonsToFactory(`undo`,n(`Undo`),`CTRL+Z`,r),this._addButtonsToFactory(`redo`,n(`Redo`),`CTRL+Y`,i)}_addButtonsToFactory(e,t,n,r){let i=this.editor;i.ui.componentFactory.add(e,()=>{let i=this._createButton(bI,e,t,n,r);return i.set({tooltip:!0}),i}),i.ui.componentFactory.add(`menuBar:`+e,()=>this._createButton(LI,e,t,n,r))}_createButton(e,t,n,r,i){let a=this.editor,o=a.locale,s=a.commands.get(t),c=new e(o);return c.set({label:n,icon:i,keystroke:r}),c.bind(`isEnabled`).to(s,`isEnabled`),this.listenTo(c,`execute`,()=>{a.execute(t),a.editing.view.focus()}),c}},YV=class extends Z{static get requires(){return[qV,JV]}static get pluginName(){return`Undo`}static get isOfficialPlugin(){return!0}},XV=class{_definitions=new Set;_conflictChecker;get length(){return this._definitions.size}setConflictChecker(e){this._conflictChecker=e}add(e){Array.isArray(e)?e.forEach(e=>this._definitions.add(e)):this._definitions.add(e)}getDispatcher(){return e=>{let t=(e,t)=>{let n=t.createAttributeElement(`a`,e.attributes,{priority:5});e.classes&&t.addClass(e.classes,n);for(let r in e.styles)t.setStyle(r,e.styles[r],n);return t.setCustomProperty(`link`,!0,n),n},n=e=>(n,r,i)=>{if(r.attributeKey.startsWith(`link`)&&!(r.attributeKey==`linkHref`&&!i.consumable.test(r.item,`attribute:linkHref`))&&!(!r.item.is(`selection`)&&!i.schema.isInline(r.item)))for(let n of this._definitions)n.callback(r.item.getAttribute(`linkHref`))&&!this._conflictChecker?.(n,r.item)&&e?r.item.is(`selection`)?i.writer.wrap(i.writer.document.selection.getFirstRange(),t(n,i.writer)):i.writer.wrap(i.mapper.toViewRange(r.range),t(n,i.writer)):i.writer.unwrap(i.mapper.toViewRange(r.range),t(n,i.writer))};e.on(`attribute`,n(!1),{priority:QS.high-1}),e.on(`attribute`,n(!0),{priority:QS.high-2})}}getDispatcherForLinkedImage(){return e=>{let t=e=>(t,n,{writer:r,mapper:i})=>{if(!n.item.is(`element`,`imageBlock`)||!n.attributeKey.startsWith(`link`))return;let a=i.toViewElement(n.item),o=Array.from(a.getChildren()).find(e=>e.is(`element`,`a`));if(o)for(let t of this._definitions){let i=TT(t.attributes);if(t.callback(n.item.getAttribute(`linkHref`))&&!this._conflictChecker?.(t,n.item)&&e){for(let[e,t]of i)e===`class`?r.addClass(t,o):r.setAttribute(e,t,!1,o);t.classes&&r.addClass(t.classes,o);for(let e in t.styles)r.setStyle(e,t.styles[e],o)}else{for(let[e,t]of i)e===`class`?r.removeClass(t,o):r.removeAttribute(e,t,o);t.classes&&r.removeClass(t.classes,o);for(let e in t.styles)r.removeStyle(e,o)}}};e.on(`attribute`,t(!1),{priority:QS.high-1}),e.on(`attribute`,t(!0),{priority:QS.high-2})}}},ZV=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,QV=`^(?:(?:):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))`,$V=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,eH=/^((\w+:(\/{2,})?)|(\W))/i,tH=[`https?`,`ftps?`,`mailto`],nH=`Ctrl+K`;function rH(e){return e.is(`attributeElement`)&&!!e.getCustomProperty(`link`)}function iH(e,{writer:t}){let n=t.createAttributeElement(`a`,{href:e},{priority:5});return t.setCustomProperty(`link`,!0,n),n}function aH(e,t=tH){let n=String(e),r=t.join(`|`);return oH(n,RegExp(`${QV.replace(``,r)}`,`i`))?n:`#`}function oH(e,t){return!!e.replace(ZV,``).match(t)}function sH(e,t){let n={"Open in a new tab":e(`Open in a new tab`),Downloadable:e(`Downloadable`)};return t.forEach(e=>(`label`in e&&n[e.label]&&(e.label=n[e.label]),e)),t}function cH(e){let t=[];if(e)for(let[n,r]of Object.entries(e)){let e=Object.assign({},r,{id:`link${OS(n)}`});t.push(e)}return t}function lH(e,t){return e?t.checkAttribute(e.name,`linkHref`):!1}function uH(e){return $V.test(e)}function dH(e,t){let n=uH(e)?`mailto:`:t,r=!!n&&!fH(e);return e&&r?n+e:e}function fH(e){return eH.test(e)}function pH(e){window.open(e,`_blank`,`noopener`)}function mH(e){let t=``;for(let n of e.getItems()){if(!n.is(`$text`)&&!n.is(`$textProxy`))return;t+=n.data}return t}function hH(e,t){if(e.attributes&&t.attributes&&Object.keys(e.attributes).some(e=>!n(e)&&e in t.attributes)||e.styles&&t.styles&&Object.keys(e.styles).some(e=>e in t.styles))return!0;return!1;function n(e){return e===`class`||e===`style`||e===`rel`}}function gH({decoratorStates:e,allDecorators:t}){let n={...e};for(let i in e)if(e[i]&&r(i)){let e=_H(i,t);for(let t of e)n[t]=!1}function r(e){return t.some(t=>t.id===e&&!t.value)}return n}function _H(e,t){let n=t.find(t=>t.id===e);return n?t.filter(t=>t.id!==e&&hH(n,t)).map(e=>e.id):[]}var vH=class extends GN{manualDecorators=new hT;automaticDecorators=new XV;restoreManualDecoratorStates(){for(let e of this.manualDecorators)e.value=this._getDecoratorStateFromModel(e.id)}refresh(){let e=this.editor.model,t=e.document.selection,n=t.getSelectedElement()||gT(t.getSelectedBlocks());lH(n,e.schema)?(this.value=n.getAttribute(`linkHref`),this.isEnabled=e.schema.checkAttribute(n,`linkHref`)):(this.value=t.getAttribute(`linkHref`),this.isEnabled=e.schema.checkAttributeInSelection(t,`linkHref`));for(let e of this.manualDecorators)e.value=this._getDecoratorStateFromModel(e.id)}execute(e,t={},n){let r=this.editor.model,i=r.document.selection,a=gH({allDecorators:Array.from(this.manualDecorators),decoratorStates:t}),o=[],s=[];for(let e in a)a[e]?o.push(e):s.push(e);r.change(t=>{let a=n=>{t.setAttribute(`linkHref`,e,n),o.forEach(e=>t.setAttribute(e,!0,n)),s.forEach(e=>t.removeAttribute(e,n))},c=(i,o)=>{let s=mH(i);if(!s)return i;let c=n;if(c||=o&&o==s?e:s,c!=s){let e=t.createDocumentFragment();for(let n of i.getItems()){let r=n;t.append(t.createText(r.data,r.getAttributes()),e)}let n=t.createRangeIn(e),o=yH(s,c),l=0;for(let{offset:e,actual:i,expected:s}of o){let o=e+l,c=t.createRange(n.start.getShiftedBy(o),n.start.getShiftedBy(o+i.length)),u=bH(c,n).getAttributes(),d=Array.from(u).filter(([e])=>r.schema.getAttributeProperties(e).isFormatting),f=t.createText(s,d);a(f),t.remove(c),t.insert(f,c.start),l+=s.length}return r.insertContent(e,i),t.createRange(i.start,i.start.getShiftedBy(c.length))}},l=e=>{let{plugins:n}=this.editor;if(t.setSelection(e.end),n.has(`TwoStepCaretMovement`))n.get(`TwoStepCaretMovement`)._handleForwardMovement();else for(let e of[`linkHref`,...o,...s])t.removeSelectionAttribute(e)};if(i.isCollapsed){let s=i.getFirstPosition();if(i.hasAttribute(`linkHref`)){let e=i.getAttribute(`linkHref`),t=kz(s,`linkHref`,e,r),n=c(t,e);a(n||t),n&&l(n)}else if(e!==``){let a=TT(i.getAttributes());a.set(`linkHref`,e),o.forEach(e=>{a.set(e,!0)}),l(r.insertContent(t.createText(n||e,a),s))}}else{let e=Array.from(i.getRanges()),n=r.schema.getValidRanges(e,`linkHref`),o=[];for(let e of i.getSelectedBlocks())r.schema.checkAttribute(e,`linkHref`)&&o.push(t.createRangeOn(e));let s=o.slice();for(let e of n)this._isRangeToUpdate(e,o)&&s.push(e);let l=e.map(e=>({start:rM.fromPosition(e.start,`toPrevious`),end:rM.fromPosition(e.end,`toNext`)}));for(let e of s){let t=(e.start.textNode||e.start.nodeAfter).getAttribute(`linkHref`);e=c(e,t)||e,a(e)}t.setSelection(l.map(e=>{let t=e.start.toPosition(),n=e.end.toPosition();return e.start.detach(),e.end.detach(),r.createRange(t,n)}))}}),this.restoreManualDecoratorStates()}_getDecoratorStateFromModel(e){let t=this.editor.model,n=t.document.selection,r=n.getSelectedElement();return lH(r,t.schema)?r.getAttribute(e):n.getAttribute(e)}_isRangeToUpdate(e,t){for(let n of t)if(n.containsRange(e))return!1;return!0}};function yH(e,t){let n=qS(e,t),r={equal:0,insert:0,delete:0},i=[],a=``,o=``;for(let s of[...n,null])s==`insert`?o+=t[r.equal+r.insert]:s==`delete`?a+=e[r.equal+r.delete]:(a.length||o.length)&&(i.push({offset:r.equal,actual:a,expected:o}),a=``,o=``),s&&r[s]++;return i}function bH(e,t){if(!e.isCollapsed)return gT(e.getItems());let n=e.start;return n.textNode?n.textNode:!n.nodeBefore||n.isEqual(t.start)?n.nodeAfter:n.nodeBefore}var xH=class extends GN{refresh(){let e=this.editor.model,t=e.document.selection,n=t.getSelectedElement();lH(n,e.schema)?this.isEnabled=e.schema.checkAttribute(n,`linkHref`):this.isEnabled=e.schema.checkAttributeInSelection(t,`linkHref`)}execute(){let e=this.editor,t=this.editor.model,n=t.document.selection,r=e.commands.get(`link`);t.change(e=>{let i=n.isCollapsed?[kz(n.getFirstPosition(),`linkHref`,n.getAttribute(`linkHref`),t)]:t.schema.getValidRanges(n.getRanges(),`linkHref`);for(let t of i)if(e.removeAttribute(`linkHref`,t),r)for(let n of r.manualDecorators)e.removeAttribute(n.id,t)})}},SH=AC(),CH=class extends SH{id;defaultValue;label;attributes;classes;styles;constructor({id:e,label:t,attributes:n,classes:r,styles:i,defaultValue:a}){super(),this.id=e,this.set(`value`,void 0),this.defaultValue=a,this.label=t,this.attributes=n,this.classes=r,this.styles=i}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}},wH=`ck-link_selected`,TH=`automatic`,EH=`manual`,DH=/^(https?:)?\/\//,OH=class extends Z{_linkOpeners=[];static get pluginName(){return`LinkEditing`}static get isOfficialPlugin(){return!0}static get requires(){return[xz,ez,wV]}constructor(e){super(e),e.config.define(`link`,{allowCreatingEmptyLinks:!1,addTargetToExternalLinks:!1,toolbar:[`linkPreview`,`|`,`editLink`,`linkProperties`,`unlink`]})}init(){let e=this.editor,t=this.editor.config.get(`link.allowedProtocols`);e.model.schema.extend(`$text`,{allowAttributes:`linkHref`}),e.conversion.for(`dataDowncast`).attributeToElement({model:`linkHref`,view:iH}),e.conversion.for(`editingDowncast`).attributeToElement({model:`linkHref`,view:(e,n)=>iH(aH(e,t),n)}),e.conversion.for(`upcast`).elementToAttribute({view:{name:`a`,attributes:{href:!0}},model:{key:`linkHref`,value:e=>e.getAttribute(`href`)}}),e.commands.add(`link`,new vH(e)),e.commands.add(`unlink`,new xH(e));let n=sH(e.t,cH(e.config.get(`link.decorators`)));this._enableAutomaticDecorators(n.filter(e=>e.mode===TH)),this._enableManualDecorators(n.filter(e=>e.mode===EH)),e.plugins.get(xz).registerAttribute(`linkHref`),jz(e,`linkHref`,`a`,wH),this._enableLinkOpen(),this._enableSelectionAttributesFixer(),this._enableClipboardIntegration(),this._enableDecoratorConflictPostfixer()}_registerLinkOpener(e){this._linkOpeners.push(e)}_enableAutomaticDecorators(e){let t=this.editor,n=t.commands.get(`link`),r=n.automaticDecorators;t.config.get(`link.addTargetToExternalLinks`)&&r.add({id:`linkIsExternal`,mode:TH,callback:e=>!!e&&DH.test(e),attributes:{target:`_blank`,rel:`noopener noreferrer`}}),r.add(e),r.setConflictChecker((e,t)=>{for(let r of n.manualDecorators)if(t.hasAttribute(r.id)&&hH(e,r))return!0}),r.length&&t.conversion.for(`downcast`).add(r.getDispatcher())}_enableManualDecorators(e){if(!e.length)return;let t=this.editor,n=t.commands.get(`link`).manualDecorators;e.forEach(e=>{t.model.schema.extend(`$text`,{allowAttributes:e.id});let r=new CH(e);n.add(r),t.conversion.for(`downcast`).add(e=>{let t=e=>{let t=e.createAttributeElement(`a`,r.attributes,{priority:5});r.classes&&e.addClass(r.classes,t);for(let n in r.styles)e.setStyle(n,r.styles[n],t);return e.setCustomProperty(`link`,!0,t),t},n=e=>(n,r,i)=>{if(!(!r.item.is(`selection`)&&!i.schema.isInline(r.item))){if(!e&&r.attributeOldValue){if(!i.consumable.test(r.item,n.name))return;i.writer.unwrap(i.mapper.toViewRange(r.range),t(i.writer))}if(e&&r.attributeNewValue){if(!i.consumable.consume(r.item,n.name))return;r.item.is(`selection`)?i.writer.wrap(i.writer.document.selection.getFirstRange(),t(i.writer)):i.writer.wrap(i.mapper.toViewRange(r.range),t(i.writer))}}};e.on(`attribute:${r.id}`,n(!1),{priority:QS.high-1}),e.on(`attribute:${r.id}`,n(!0),{priority:QS.high-2})}),t.conversion.for(`upcast`).elementToAttribute({view:{name:`a`,...r._createPattern()},model:{key:r.id}})})}_enableLinkOpen(){let e=this.editor,t=e.editing.view.document,n=e=>{this._linkOpeners.some(t=>t(e))||pH(e)};this.listenTo(t,`click`,(e,t)=>{if(!(G.isMac?t.domEvent.metaKey:t.domEvent.ctrlKey))return;let r=t.domTarget;if(r.tagName.toLowerCase()!=`a`&&(r=r.closest(`a`)),!r)return;let i=r.getAttribute(`href`);i&&(e.stop(),t.preventDefault(),n(i))},{context:`$capture`}),this.listenTo(t,`keydown`,(t,r)=>{let i=e.commands.get(`link`).value;i&&r.keyCode===q.enter&&r.altKey&&(t.stop(),n(i))})}_enableSelectionAttributesFixer(){let e=this.editor.model,t=e.document.selection;this.listenTo(t,`change:attribute`,(n,{attributeKeys:r})=>{!r.includes(`linkHref`)||t.hasAttribute(`linkHref`)||e.change(t=>{kH(t,AH(e.schema))})})}_enableClipboardIntegration(){let e=this.editor,t=e.model,n=this.editor.config.get(`link.defaultProtocol`);n&&this.listenTo(e.plugins.get(`ClipboardPipeline`),`contentInsertion`,(e,r)=>{t.change(e=>{let t=e.createRangeIn(r.content);for(let r of t.getItems())if(r.hasAttribute(`linkHref`)){let t=dH(r.getAttribute(`linkHref`),n);e.setAttribute(`linkHref`,t,r)}})})}_enableDecoratorConflictPostfixer(){let e=this.editor,t=e.model,n=e.commands.get(`link`);t.document.registerPostFixer(e=>{let r=!1,i=t.document.differ.getChanges(),a=new Set,o=new Set(n.manualDecorators.map(e=>e.id));for(let e of i){if(e.type===`attribute`){if(e.attributeKey!==`linkHref`&&!o.has(e.attributeKey))continue;for(let t of e.range.getItems())t.hasAttribute(`linkHref`)&&a.add(t)}e.type===`insert`&&e.attributes.has(`linkHref`)&&e.position.nodeAfter&&a.add(e.position.nodeAfter)}for(let t of a){let i=[];for(let a of n.manualDecorators)if(t.hasAttribute(a.id)){for(let n=i.length-1;n>=0;n--){let o=i[n];hH(o,a)&&(e.removeAttribute(o.id,t),i.splice(n,1),r=!0)}i.push(a)}}return r})}};function kH(e,t){e.removeSelectionAttribute(`linkHref`);for(let n of t)e.removeSelectionAttribute(n)}function AH(e){return e.getDefinition(`$text`).allowAttributes.filter(e=>e.startsWith(`link`))}var jH=class extends bI{constructor(e){super(e);let t=this.bindTemplate;this.set({href:void 0,withText:!0}),this.extendTemplate({attributes:{class:[`ck-link-toolbar__preview`],href:t.to(`href`),target:`_blank`,rel:`noopener noreferrer`},on:{click:t.to(e=>{this.href&&this.fire(`navigate`,this.href,()=>e.preventDefault())})}}),this.template.tag=`a`}},MH=class extends ${focusTracker=new vT;keystrokes=new CT;backButtonView;saveButtonView;displayedTextInputView;urlInputView;children;providersListChildren;_validators;_focusables=new EF;_focusCycler;constructor(e,t){super(e),this._validators=t,this.backButtonView=this._createBackButton(),this.saveButtonView=this._createSaveButton(),this.displayedTextInputView=this._createDisplayedTextInput(),this.urlInputView=this._createUrlInput(),this.providersListChildren=this.createCollection(),this.children=this.createCollection([this._createHeaderView()]),this._createFormChildren(),this.listenTo(this.providersListChildren,`add`,()=>{this.stopListening(this.providersListChildren,`add`),this.children.add(this._createProvidersListView())}),this._focusCycler=new wI({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:`shift + tab`,focusNext:`tab`}}),this.setTemplate({tag:`form`,attributes:{class:[`ck`,`ck-form`,`ck-link-form`,`ck-responsive-form`],tabindex:`-1`},children:this.children})}render(){super.render(),fI({view:this}),[this.urlInputView,this.saveButtonView,...this.providersListChildren,this.backButtonView,this.displayedTextInputView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}isValid(){this.resetFormStatus();for(let e of this._validators){let t=e(this);if(t)return this.urlInputView.errorText=t,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null}_createBackButton(){let e=this.locale.t,t=new bI(this.locale);return t.set({class:`ck-button-back`,label:e(`Back`),icon:qP,tooltip:!0}),t.delegate(`execute`).to(this,`cancel`),t}_createSaveButton(){let e=this.locale.t,t=new bI(this.locale);return t.set({label:e(`Insert`),tooltip:!1,withText:!0,type:`submit`,class:`ck-button-action ck-button-bold`}),t}_createHeaderView(){let e=this.locale.t,t=new SI(this.locale,{label:e(`Link`)});return t.children.add(this.backButtonView,0),t}_createProvidersListView(){let e=new gL(this.locale);return e.extendTemplate({attributes:{class:[`ck-link-form__providers-list`]}}),e.items.bindTo(this.providersListChildren).using(e=>{let t=new pL(this.locale);return t.children.add(e),t}),e}_createDisplayedTextInput(){let e=this.locale.t,t=new aL(this.locale,UL);return t.label=e(`Displayed text`),t.class=`ck-labeled-field-view_full-width`,t}_createUrlInput(){let e=this.locale.t,t=new aL(this.locale,UL);return t.fieldView.inputMode=`url`,t.label=e(`Link URL`),t.class=`ck-labeled-field-view_full-width`,t}_createFormChildren(){this.children.add(new jR(this.locale,{children:[this.displayedTextInputView],class:[`ck-form__row_large-top-padding`]})),this.children.add(new jR(this.locale,{children:[this.urlInputView,this.saveButtonView],class:[`ck-form__row_with-submit`,`ck-form__row_large-top-padding`,`ck-form__row_large-bottom-padding`]}))}get url(){let{element:e}=this.urlInputView.fieldView;return e?e.value.trim():null}},NH=class extends ${focusTracker=new vT;keystrokes=new CT;backButtonView;listView;listChildren;emptyListInformation;children;_focusables=new EF;_focusCycler;constructor(e){super(e),this.listChildren=this.createCollection(),this.backButtonView=this._createBackButton(),this.listView=this._createListView(),this.emptyListInformation=this._createEmptyLinksListItemView(),this.children=this.createCollection([this._createHeaderView(),this.emptyListInformation]),this.set(`title`,``),this.set(`emptyListPlaceholder`,``),this.set(`hasItems`,!1),this.listenTo(this.listChildren,`change`,()=>{this.hasItems=this.listChildren.length>0}),this.on(`change:hasItems`,(e,t,n)=>{n?(this.children.remove(this.emptyListInformation),this.children.add(this.listView)):(this.children.remove(this.listView),this.children.add(this.emptyListInformation))}),this.keystrokes.set(`Esc`,(e,t)=>{this.fire(`cancel`),t()}),this._focusCycler=new wI({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:`shift + tab`,focusNext:`tab`}}),this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-link-providers`],tabindex:`-1`},children:this.children})}render(){super.render(),[this.listView,this.backButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createListView(){let e=new gL(this.locale);return e.extendTemplate({attributes:{class:[`ck-link-providers__list`]}}),e.items.bindTo(this.listChildren).using(e=>{let t=new pL(this.locale);return t.children.add(e),t}),e}_createBackButton(){let e=this.locale.t,t=new bI(this.locale);return t.set({class:`ck-button-back`,label:e(`Back`),icon:qP,tooltip:!0}),t.delegate(`execute`).to(this,`cancel`),t}_createHeaderView(){let e=new SI(this.locale);return e.bind(`label`).to(this,`title`),e.children.add(this.backButtonView,0),e}_createEmptyLinksListItemView(){let e=new $(this.locale);return e.setTemplate({tag:`p`,attributes:{class:[`ck`,`ck-link__empty-list-info`]},children:[{text:this.bindTemplate.to(`emptyListPlaceholder`)}]}),e}},PH=class extends ${focusTracker=new vT;keystrokes=new CT;backButtonView;children;listChildren;_focusables=new EF;_focusCycler;constructor(e){super(e),this.backButtonView=this._createBackButton(),this.listChildren=this.createCollection(),this.children=this.createCollection([this._createHeaderView(),this._createListView()]),this._focusCycler=new wI({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:`shift + tab`,focusNext:`tab`}}),this.setTemplate({tag:`div`,attributes:{class:[`ck`,`ck-link-properties`],tabindex:`-1`},children:this.children}),this.keystrokes.set(`Esc`,(e,t)=>{this.fire(`back`),t()})}render(){super.render(),[...this.listChildren,this.backButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createBackButton(){let e=this.locale.t,t=new bI(this.locale);return t.set({class:`ck-button-back`,label:e(`Back`),icon:qP,tooltip:!0}),t.delegate(`execute`).to(this,`back`),t}_createHeaderView(){let e=this.locale.t,t=new SI(this.locale,{label:e(`Link properties`)});return t.children.add(this.backButtonView,0),t}_createListView(){let e=new gL(this.locale);return e.extendTemplate({attributes:{class:[`ck-link__list`]}}),e.items.bindTo(this.listChildren).using(e=>{let t=new pL(this.locale);return t.children.add(e),t}),e}},FH=class extends bI{arrowView;constructor(e){super(e),this.set({withText:!0}),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{class:[`ck-link__button`]}})}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){let e=new vI;return e.content=VP,e}},IH=`link-ui`,LH=class extends Z{toolbarView=null;formView=null;linkProviderItemsView=null;propertiesView=null;_balloon;_linksProviders=new hT;static get requires(){return[FR,OH]}static get pluginName(){return`LinkUI`}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=this.editor.t;this.set(`selectedLinkableText`,void 0),e.editing.view.addObserver(bN),this._balloon=e.plugins.get(FR),this._registerComponents(),this._registerEditingOpeners(),this._enableBalloonActivators(),e.conversion.for(`editingDowncast`).markerToHighlight({model:IH,view:{classes:[`ck-fake-link-selection`]}}),e.conversion.for(`editingDowncast`).markerToElement({model:IH,view:(e,{writer:t})=>{if(!e.markerRange.isCollapsed)return null;let n=t.createUIElement(`span`);return t.addClass([`ck-fake-link-selection`,`ck-fake-link-selection_collapsed`],n),n}}),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t(`Create link`),keystroke:nH},{label:t(`Move out of a link`),keystroke:[[`arrowleft`,`arrowleft`],[`arrowright`,`arrowright`]]}]})}destroy(){super.destroy(),this.propertiesView&&this.propertiesView.destroy(),this.formView&&this.formView.destroy(),this.toolbarView&&this.toolbarView.destroy(),this.linkProviderItemsView&&this.linkProviderItemsView.destroy()}registerLinksListProvider(e){let t=this._linksProviders.filter(t=>(t.order||0)<=(e.order||0)).length;this._linksProviders.add(e,t)}_createViews(){let e=this.editor.commands.get(`link`);this.toolbarView=this._createToolbarView(),this.formView=this._createFormView(),e.manualDecorators.length&&(this.propertiesView=this._createPropertiesView()),this._enableUserBalloonInteractions()}_createToolbarView(){let e=this.editor,t=new SL(e.locale),n=e.commands.get(`link`);t.class=`ck-link-toolbar`;let r=e.config.get(`link.toolbar`);return n.manualDecorators.length||(r=r.filter(e=>e!==`linkProperties`)),t.fillFromConfig(r,e.ui.componentFactory),t.keystrokes.set(`Esc`,(e,t)=>{this._hideUI(),t()}),t.keystrokes.set(nH,(e,t)=>{this._addFormView(),t()}),e.ui.addToolbar(t,{isContextual:!0,beforeFocus:()=>{this._getSelectedLinkElement()&&!this._isToolbarVisible&&this._showUI(!0)},afterBlur:()=>{this._hideUI(!1)}}),t}_createFormView(){let e=this.editor,t=e.locale.t,n=e.commands.get(`link`),r=e.config.get(`link.defaultProtocol`),i=new(uI(MH))(e.locale,zH(e));return i.displayedTextInputView.bind(`isEnabled`).to(this,`selectedLinkableText`,e=>e!==void 0),i.urlInputView.bind(`isEnabled`).to(n,`isEnabled`),i.saveButtonView.bind(`isEnabled`).to(n,`isEnabled`),i.saveButtonView.bind(`label`).to(n,`value`,e=>t(e?`Update`:`Insert`)),this.listenTo(i,`submit`,()=>{if(i.isValid()){let t=i.urlInputView.fieldView.element.value,n=dH(t,r),a=i.displayedTextInputView.fieldView.element.value;e.execute(`link`,n,this._getDecoratorSwitchesState(),a===this.selectedLinkableText?void 0:a),this._closeFormView()}}),this.listenTo(i.urlInputView,`change:errorText`,()=>{e.ui.update()}),this.listenTo(i,`cancel`,()=>{this._closeFormView()}),i.keystrokes.set(`Esc`,(e,t)=>{this._closeFormView(),t()}),i.providersListChildren.bindTo(this._linksProviders).using(e=>this._createLinksListProviderButton(e)),i}_createLinkProviderListView(e){return e.getListItems().map(({href:e,label:t,icon:n})=>{let r=new bI;return r.set({label:t,icon:n,tooltip:!1,withText:!0}),r.on(`execute`,()=>{this.formView.resetFormStatus(),this.formView.urlInputView.fieldView.value=e,this.editor.editing.view.focus(),this._removeLinksProviderView(),this.formView.focus()}),r})}_createLinkProviderItemsView(e){let t=this.editor,n=t.locale.t,r=new NH(t.locale),{emptyListPlaceholder:i,label:a}=e;return r.emptyListPlaceholder=i||n(`No links available`),r.title=a,this.listenTo(r,`cancel`,()=>{t.editing.view.focus(),this._removeLinksProviderView(),this.formView.focus()}),r}_createPropertiesView(){let e=this.editor,t=this.editor.commands.get(`link`),n=new(uI(PH))(e.locale);return this.listenTo(n,`back`,()=>{e.editing.view.focus(),this._removePropertiesView()}),n.listChildren.bindTo(t.manualDecorators).using(n=>{let r=new eL(e.locale);return r.set({label:n.label,withText:!0}),r.bind(`isOn`).toMany([n,t],`value`,(e,t)=>t===void 0&&e===void 0?!!n.defaultValue:!!e),r.on(`execute`,()=>{e.execute(`link`,t.value,{...this._getDecoratorSwitchesState(),[n.id]:!r.isOn})}),r}),n}_getDecoratorSwitchesState(){let e=this.editor.commands.get(`link`);return Array.from(e.manualDecorators).reduce((t,n)=>{let r=e.value===void 0&&n.value===void 0?n.defaultValue:n.value;return{...t,[n.id]:!!r}},{})}_registerEditingOpeners(){this.editor.plugins.get(OH)._registerLinkOpener(e=>{let t=this._getLinkProviderLinkByHref(e);if(!t)return!1;let{item:n,provider:r}=t;return r.navigate?r.navigate(n):!1})}_registerComponents(){let e=this.editor;e.ui.componentFactory.add(`link`,()=>{let e=this._createButton(bI);return e.set({tooltip:!0}),e}),e.ui.componentFactory.add(`menuBar:link`,()=>{let e=this._createButton(LI);return e.set({role:`menuitemcheckbox`}),e}),e.ui.componentFactory.add(`linkPreview`,t=>{let n=new jH(t),r=e.config.get(`link.allowedProtocols`),i=e.commands.get(`link`),a=t.t;n.bind(`isEnabled`).to(i,`value`,e=>!!e),n.bind(`href`).to(i,`value`,e=>e&&aH(e,r));let o=e=>{if(e===``){n.label=a(`This link has no URL`),n.icon=void 0,n.tooltip=!1;return}if(!e){n.label=void 0,n.icon=void 0,n.tooltip=a(`Open link in new tab`);return}let t=this._getLinkProviderLinkByHref(e);if(t){let{label:e,tooltip:r,icon:i}=t.item;n.label=e,n.tooltip=r||!1,n.icon=i}else n.label=e,n.icon=void 0,n.tooltip=a(`Open link in new tab`)};return o(i.value),this.listenTo(i,`change:value`,(e,t,n)=>{o(n)}),this.listenTo(n,`navigate`,(e,t,n)=>{let r=this._getLinkProviderLinkByHref(t);if(!r)return;let{provider:i,item:a}=r,{navigate:o}=i;o&&o(a)&&(e.stop(),n())}),n}),e.ui.componentFactory.add(`unlink`,t=>{let n=e.commands.get(`unlink`),r=new bI(t),i=t.t;return r.set({label:i(`Unlink`),icon:lF,tooltip:!0}),r.bind(`isEnabled`).to(n),this.listenTo(r,`execute`,()=>{e.execute(`unlink`),this._hideUI()}),r}),e.ui.componentFactory.add(`editLink`,t=>{let n=e.commands.get(`link`),r=new bI(t),i=t.t;return r.set({label:i(`Edit link`),icon:WP,tooltip:!0}),r.bind(`isEnabled`).to(n),this.listenTo(r,`execute`,()=>{this._addFormView()}),r}),e.ui.componentFactory.add(`linkProperties`,t=>{let n=e.commands.get(`link`),r=new bI(t),i=t.t;return r.set({label:i(`Link properties`),icon:$P,tooltip:!0}),r.bind(`isEnabled`).to(n,`isEnabled`,n,`value`,n,`manualDecorators`,(e,t,n)=>e&&!!t&&n.length>0),this.listenTo(r,`execute`,()=>{this._addPropertiesView()}),r})}_createLinksListProviderButton(e){let t=this.editor.locale,n=new FH(t);return n.set({label:e.label}),this.listenTo(n,`execute`,()=>{this._showLinksProviderView(e)}),n}_createButton(e){let t=this.editor,n=t.locale,r=t.commands.get(`link`),i=new e(t.locale),a=n.t;return i.set({label:a(`Link`),icon:BP,keystroke:nH,isToggleable:!0}),i.bind(`isEnabled`).to(r,`isEnabled`),i.bind(`isOn`).to(r,`value`,e=>!!e),this.listenTo(i,`execute`,()=>{t.editing.view.scrollToTheSelection(),this._showUI(!0),this._getSelectedLinkElement()&&this._addFormView()}),i}_enableBalloonActivators(){let e=this.editor,t=e.editing.view.document;this.listenTo(t,`click`,()=>{this._getSelectedLinkElement()&&this._showUI()}),e.keystrokes.set(nH,(t,n)=>{n(),e.commands.get(`link`).isEnabled&&(e.editing.view.scrollToTheSelection(),this._showUI(!0))})}_enableUserBalloonInteractions(){this.editor.keystrokes.set(`Tab`,(e,t)=>{this._isToolbarVisible&&!this.toolbarView.focusTracker.isFocused&&(this.toolbarView.focus(),t())},{priority:`high`}),this.editor.keystrokes.set(`Esc`,(e,t)=>{this._isUIVisible&&(this._hideUI(),t())}),lI({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:()=>[this._balloon.view.element],callback:()=>{this._hideUI(!1)}})}_addToolbarView(){this.toolbarView||this._createViews(),!this._isToolbarInPanel&&this._balloon.add({view:this.toolbarView,position:this._getBalloonPositionData(),balloonClassName:`ck-toolbar-container`})}_addFormView(){if(this.formView||this._createViews(),this._isFormInPanel)return;let e=this.editor.commands.get(`link`);this.formView.disableCssTransitions(),this.formView.resetFormStatus(),this.formView.backButtonView.isVisible=e.isEnabled&&e.value!==void 0,this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this.selectedLinkableText=this._getSelectedLinkableText(),this.formView.displayedTextInputView.fieldView.value=this.selectedLinkableText||``,this.formView.urlInputView.fieldView.value=e.value||``,this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions()}_addPropertiesView(){this.propertiesView||this._createViews(),!this._arePropertiesInPanel&&(this.propertiesView.disableCssTransitions(),this._balloon.add({view:this.propertiesView,position:this._getBalloonPositionData()}),this.propertiesView.enableCssTransitions(),this.propertiesView.focus())}_showLinksProviderView(e){this.linkProviderItemsView&&this._removeLinksProviderView(),this.linkProviderItemsView=this._createLinkProviderItemsView(e),this._addLinkProviderItemsView(e)}_addLinkProviderItemsView(e){this.linkProviderItemsView.listChildren.clear(),this.linkProviderItemsView.listChildren.addMany(this._createLinkProviderListView(e)),this._balloon.add({view:this.linkProviderItemsView,position:this._getBalloonPositionData()}),this.linkProviderItemsView.focus()}_closeFormView(){let e=this.editor.commands.get(`link`);this.selectedLinkableText=void 0,e.value===void 0?this._hideUI():this._removeFormView()}_removePropertiesView(){this._arePropertiesInPanel&&this._balloon.remove(this.propertiesView)}_removeLinksProviderView(){this._isLinksListInPanel&&this._balloon.remove(this.linkProviderItemsView)}_removeFormView(e=!0){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this.formView.displayedTextInputView.fieldView.reset(),this.formView.urlInputView.fieldView.reset(),this._balloon.remove(this.formView),e&&this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(e=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._isToolbarVisible?this._addFormView():this._addToolbarView(),e&&this._balloon.showStack(`main`)):(this._showFakeVisualSelection(),this._addToolbarView(),e&&this._balloon.showStack(`main`),this._addFormView()),this._startUpdatingUI()}_hideUI(e=!0){let t=this.editor;this._isUIInPanel&&(this.stopListening(t.ui,`update`),this.stopListening(this._balloon,`change:visibleView`),e&&t.editing.view.focus(),this._removeLinksProviderView(),this._removePropertiesView(),this._removeFormView(e),this._isToolbarInPanel&&this._balloon.remove(this.toolbarView),this._hideFakeVisualSelection())}_startUpdatingUI(){let e=this.editor,t=e.editing.view.document,n=this._getSelectedLinkElement(),r=a(),i=()=>{let e=this._getSelectedLinkElement(),t=a();n&&!e||!n&&t!==r?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),n=e,r=t};function a(){return t.selection.focus.getAncestors().reverse().find(e=>e.is(`element`))}this.listenTo(e.ui,`update`,i),this.listenTo(this._balloon,`change:visibleView`,i)}get _arePropertiesInPanel(){return!!this.propertiesView&&this._balloon.hasView(this.propertiesView)}get _isLinksListInPanel(){return!!this.linkProviderItemsView&&this._balloon.hasView(this.linkProviderItemsView)}get _isFormInPanel(){return!!this.formView&&this._balloon.hasView(this.formView)}get _isToolbarInPanel(){return!!this.toolbarView&&this._balloon.hasView(this.toolbarView)}get _isPropertiesVisible(){return!!this.propertiesView&&this._balloon.visibleView===this.propertiesView}get _isFormVisible(){return!!this.formView&&this._balloon.visibleView==this.formView}get _isToolbarVisible(){return!!this.toolbarView&&this._balloon.visibleView===this.toolbarView}get _isUIInPanel(){return this._arePropertiesInPanel||this._isLinksListInPanel||this._isFormInPanel||this._isToolbarInPanel}get _isUIVisible(){return this._isPropertiesVisible||this._isLinksListInPanel||this._isFormVisible||this._isToolbarVisible}_getBalloonPositionData(){let e=this.editor.editing.view,t=e.document;if(this.editor.model.markers.has(IH)){let t=this.editor.editing.mapper.markerNameToElements(IH);if(t){let n=Array.from(t),r=e.createRange(e.createPositionBefore(n[0]),e.createPositionAfter(n[n.length-1]));return{target:e.domConverter.viewRangeToDom(r)}}}return{target:()=>{let n=this._getSelectedLinkElement();return n?e.domConverter.mapViewToDom(n):e.domConverter.viewRangeToDom(t.selection.getFirstRange())}}}_getSelectedLinkElement(){let e=this.editor.editing.view,t=e.document.selection,n=t.getSelectedElement();if(t.isCollapsed||n&&OB(n))return RH(t.getFirstPosition());{let n=t.getFirstRange().getTrimmed(),r=RH(n.start),i=RH(n.end);return!r||r!=i?null:e.createRangeIn(r).getTrimmed().isEqual(n)?r:null}}_getSelectedLinkableText(){let e=this.editor.model,t=this.editor.editing,n=this._getSelectedLinkElement();if(!n)return mH(e.document.selection.getFirstRange());let r=t.view.createRangeOn(n);return mH(t.mapper.toModelRange(r))}_getLinkProviderLinkByHref(e){if(!e)return null;for(let t of this._linksProviders){let n=t.getItem?t.getItem(e):t.getListItems().find(t=>t.href===e);if(n)return{provider:t,item:n}}return null}_showFakeVisualSelection(){let e=this.editor.model;e.change(t=>{let n=e.document.selection.getFirstRange();if(e.markers.has(IH))t.updateMarker(IH,{range:n});else if(n.start.isAtEnd){let r=n.start.getLastMatchingPosition(({item:t})=>!e.schema.isContent(t),{boundaries:n});t.addMarker(IH,{usingOperation:!1,affectsData:!1,range:t.createRange(r,n.end)})}else t.addMarker(IH,{usingOperation:!1,affectsData:!1,range:n})})}_hideFakeVisualSelection(){let e=this.editor.model;e.markers.has(IH)&&e.change(e=>{e.removeMarker(IH)})}};function RH(e){return e.getAncestors().find(e=>rH(e))||null}function zH(e){let t=e.t,n=e.config.get(`link.allowCreatingEmptyLinks`);return[e=>{if(!n&&!e.url.length)return t(`Link URL must not be empty.`)}]}var BH=4,VH=RegExp(`(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63}))|localhost)(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$`,`i`),HH=2,UH=class extends Z{static get requires(){return[gz,OH]}static get pluginName(){return`AutoLink`}static get isOfficialPlugin(){return!0}init(){let e=this.editor.model.document.selection;e.on(`change:range`,()=>{this.isEnabled=!e.anchor.parent.is(`element`,`codeBlock`)}),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling(),this._enablePasteLinking()}_expandLinkRange(e,t){return t.textNode&&t.textNode.hasAttribute(`linkHref`)?kz(t,`linkHref`,t.textNode.getAttribute(`linkHref`),e):null}_selectEntireLinks(e,t){let n=this.editor.model,r=n.document.selection,i=r.getFirstPosition(),a=r.getLastPosition(),o=t.getJoined(this._expandLinkRange(n,i)||t);o&&=o.getJoined(this._expandLinkRange(n,a)||t),o&&(o.start.isBefore(i)||o.end.isAfter(a))&&e.setSelection(o)}_enablePasteLinking(){let e=this.editor,t=e.model,n=t.document.selection,r=e.plugins.get(`ClipboardPipeline`),i=e.commands.get(`link`);r.on(`inputTransformation`,(e,r)=>{if(!this.isEnabled||!i.isEnabled||n.isCollapsed||r.method!==`paste`||n.rangeCount>1)return;let a=n.getFirstRange(),o=r.dataTransfer.getData(`text/plain`);if(!o)return;let s=o.match(VH);s&&s[2]===o&&(t.change(e=>{this._selectEntireLinks(e,a),i.execute(o)}),e.stop())},{priority:`high`})}_enableTypingHandling(){let e=this.editor,t=new bz(e.model,e=>{let t=e;if(!WH(t))return;t=t.slice(0,-1),`!.:,;?`.includes(t[t.length-1])&&(t=t.slice(0,-1));let n=GH(t);if(n)return{url:n,removedTrailingCharacters:e.length-t.length}});t.on(`matched:data`,(t,n)=>{let{batch:r,range:i,url:a,removedTrailingCharacters:o}=n;if(!r.isTyping)return;let s=i.end.getShiftedBy(-o),c=s.getShiftedBy(-a.length),l=e.model.createRange(c,s);this._applyAutoLink(a,l)}),t.bind(`isEnabled`).to(this)}_enableEnterHandling(){let e=this.editor,t=e.model,n=e.commands.get(`enter`);n&&n.on(`execute`,()=>{let e=t.document.selection.getFirstPosition(),n;n=e.parent.previousSibling?.is(`element`)?t.createRangeIn(e.parent.previousSibling):t.createRange(t.createPositionAt(e.parent,0),e),this._checkAndApplyAutoLinkOnRange(n)})}_enableShiftEnterHandling(){let e=this.editor,t=e.model,n=e.commands.get(`shiftEnter`);n&&n.on(`execute`,()=>{let e=t.document.selection.getFirstPosition(),n=t.createRange(t.createPositionAt(e.parent,0),e.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(n)})}_checkAndApplyAutoLinkOnRange(e){let t=this.editor.model,{text:n,range:r}=vz(e,t),i=GH(n);if(i){let e=t.createRange(r.end.getShiftedBy(-i.length),r.end);this._applyAutoLink(i,e)}}_applyAutoLink(e,t){let n=this.editor.model,r=dH(e,this.editor.config.get(`link.defaultProtocol`));!this.isEnabled||!KH(t,n)||!fH(r)||qH(t)||this._persistAutoLink(r,t)}_persistAutoLink(e,t){let n=this.editor.model,r=this.editor.plugins.get(`Delete`);n.enqueueChange(i=>{i.setAttribute(`linkHref`,e,t),n.enqueueChange(()=>{r.requestUndoOnBackspace()})})}};function WH(e){return e.length>BH&&e[e.length-1]===` `&&e[e.length-2]!==` `}function GH(e){let t=VH.exec(e);return t?t[HH]:null}function KH(e,t){return t.schema.checkAttributeInSelection(t.createSelection(e),`linkHref`)}function qH(e){let t=e.start.nodeAfter;return!!t&&t.hasAttribute(`linkHref`)}var JH=class extends Z{static get requires(){return[OH,LH,UH]}static get pluginName(){return`Link`}static get isOfficialPlugin(){return!0}},YH=class extends wR{view;_toolbarConfig;_elementReplacer;constructor(e,t){super(e),this.view=t,this._toolbarConfig=bL(e.config.get(`toolbar`)),this._elementReplacer=new VC,this.listenTo(e.editing.view,`scrollToTheSelection`,this._handleScrollToTheSelectionWithStickyPanel.bind(this))}get element(){return this.view.element}init(e){let t=this.editor,n=this.view,r=t.editing.view,i=n.editable,a=r.document.getRoot();i.name=a.rootName,i.isInlineRoot=!OP(t,a.rootName),n.render();let o=i.element;this.setEditableElement(i.name,o),n.editable.bind(`isFocused`).to(this.focusTracker),r.attachDomRoot(o),e&&this._elementReplacer.replace(e,this.element),this._initPlaceholder(),this._initToolbar(),n.menuBarView&&this.initMenuBar(n.menuBarView),this._initDialogPluginIntegration(),this._initContextualBalloonIntegration(),this.fire(`ready`)}destroy(){super.destroy();let e=this.view,t=this.editor.editing.view;this._elementReplacer.restore(),t.getDomRoot(e.editable.name)&&t.detachDomRoot(e.editable.name),e.destroy()}_initToolbar(){let e=this.view;e.stickyPanel.bind(`isActive`).to(this.focusTracker,`isFocused`),e.stickyPanel.limiterElement=e.element,e.stickyPanel.bind(`viewportTopOffset`).to(this,`viewportOffset`,({visualTop:e})=>e||0),e.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(e.toolbar)}_initPlaceholder(){let e=this.editor,t=e.editing.view,n=t.document.getRoot(),r=e.sourceElement,i,a=e.config.get(`roots`)[this.view.editable.name].placeholder;a&&(i=a),!i&&r&&r.tagName.toLowerCase()===`textarea`&&(i=r.getAttribute(`placeholder`)),i&&(n.placeholder=i),WT({view:t,element:n,isDirectHost:this.view.editable.isInlineRoot,keepOnFocus:!0})}_initContextualBalloonIntegration(){if(!this.editor.plugins.has(`ContextualBalloon`))return;let{stickyPanel:e}=this.view,t=this.editor.plugins.get(`ContextualBalloon`);t.on(`getPositionOptions`,t=>{let n=t.return;if(!n||!e.isSticky||!e.element)return;let r=new fw(e.element).height,i=typeof n.target==`function`?n.target():n.target,a=typeof n.limiter==`function`?n.limiter():n.limiter;if(i&&a&&new fw(i).height>=new fw(a).height-r)return;let o={...n.viewportOffsetConfig},s=(o.top||0)+r;t.return={...n,viewportOffsetConfig:{...o,top:s}}},{priority:`low`});let n=()=>{t.visibleView&&t.updatePosition()};this.listenTo(e,`change:isSticky`,n),this.listenTo(this.editor.ui,`change:viewportOffset`,n)}_handleScrollToTheSelectionWithStickyPanel(e,t,n){let r=this.view.stickyPanel;if(r.isSticky){let e=new fw(r.element).height;t.viewportOffset.top+=e}else{let e=()=>{this.editor.editing.view.scrollToTheSelection(n)};this.listenTo(r,`change:isSticky`,e),setTimeout(()=>{this.stopListening(r,`change:isSticky`,e)},20)}}_initDialogPluginIntegration(){if(!this.editor.plugins.has(`Dialog`))return;let e=this.view.stickyPanel,t=this.editor.plugins.get(`Dialog`);t.on(`show`,()=>{let n=t.view;n.on(`moveTo`,(t,r)=>{if(!e.isSticky||n.wasMoved||n.isModal)return;let i=new fw(e.contentPanelElement);r[1]{e.setSelection(n,`in`)})}};function tU(e,t){return e.isLimit(t)&&(e.checkChild(t,`$text`)||e.checkChild(t,`paragraph`))}var nU=Zw(`Ctrl+A`),rU=class extends Z{static get pluginName(){return`SelectAllEditing`}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.t,n=e.editing.view.document;e.commands.add(`selectAll`,new eU(e)),this.listenTo(n,`keydown`,(t,n)=>{Xw(n)===nU&&(e.execute(`selectAll`),n.preventDefault())}),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t(`Select all`),keystroke:`CTRL+A`}]})}},iU=class extends Z{static get pluginName(){return`SelectAllUI`}static get isOfficialPlugin(){return!0}init(){let e=this.editor;e.ui.componentFactory.add(`selectAll`,()=>{let e=this._createButton(bI);return e.set({tooltip:!0}),e}),e.ui.componentFactory.add(`menuBar:selectAll`,()=>this._createButton(LI))}_createButton(e){let t=this.editor,n=t.locale,r=t.commands.get(`selectAll`),i=new e(t.locale),a=n.t;return i.set({label:a(`Select all`),icon:QP,keystroke:`Ctrl+A`}),i.bind(`isEnabled`).to(r,`isEnabled`),this.listenTo(i,`execute`,()=>{t.execute(`selectAll`),t.editing.view.focus()}),i}},aU=class extends Z{static get requires(){return[rU,iU]}static get pluginName(){return`SelectAll`}static get isOfficialPlugin(){return!0}},oU=class extends Z{static get requires(){return[RI,VV,aB,aU,dB,_z,YV]}static get pluginName(){return`Essentials`}static get isOfficialPlugin(){return!0}};function sU(e){return e.map(e=>lU(e)).filter(e=>e!==void 0)}var cU={get tiny(){return{title:`Tiny`,model:`tiny`,view:{name:`span`,classes:`text-tiny`,priority:7}}},get small(){return{title:`Small`,model:`small`,view:{name:`span`,classes:`text-small`,priority:7}}},get big(){return{title:`Big`,model:`big`,view:{name:`span`,classes:`text-big`,priority:7}}},get huge(){return{title:`Huge`,model:`huge`,view:{name:`span`,classes:`text-huge`,priority:7}}}};function lU(e){if(typeof e==`number`&&(e=String(e)),typeof e==`object`&&pU(e))return dU(e);let t=fU(e);if(t)return dU(t);if(e==="default")return{model:void 0,title:`Default`};if(!mU(e))return uU(e)}function uU(e){return typeof e==`string`&&(e={title:e,model:`${parseFloat(e)}px`}),e.view={name:`span`,styles:{"font-size":e.model}},dU(e)}function dU(e){return e.view&&typeof e.view!=`string`&&!e.view.priority&&(e.view.priority=7),e}function fU(e){return typeof e==`string`?cU[e]:cU[e.model]}function pU(e){return e.title&&e.model&&e.view}function mU(e){let t;if(typeof e==`object`)if(e.model)t=parseFloat(e.model);else throw new K(`font-size-invalid-definition`,null,e);else t=parseFloat(e);return isNaN(t)}var hU=class extends GN{constructor(e){super(e),this._isEnabledBasedOnSelection=!1}refresh(){let e=this.editor.model,t=e.document,n=gT(t.selection.getSelectedBlocks());this.value=!!n&&n.is(`element`,`paragraph`),this.isEnabled=!!n&&gU(n,e.schema)}execute(e={}){let t=this.editor.model,n=t.document,r=e.selection||n.selection;t.canEditAt(r)&&t.change(e=>{let n=r.getSelectedBlocks();for(let r of n)!r.is(`element`,`paragraph`)&&gU(r,t.schema)&&e.rename(r,`paragraph`)})}};function gU(e,t){return t.checkChild(e.parent,`paragraph`)&&!t.isObject(e)}var _U=class extends GN{constructor(e){super(e),this._isEnabledBasedOnSelection=!1}execute(e){let t=this.editor.model,n=e.attributes,r=e.position;return t.canEditAt(r)?t.change(e=>{if(r=this._findPositionToInsertParagraph(r,e),!r)return null;let i=e.createElement(`paragraph`);return n&&t.schema.setAllowedAttributes(i,n,e),t.insertContent(i,r),e.setSelection(i,`in`),e.createPositionAt(i,0)}):null}_findPositionToInsertParagraph(e,t){let n=this.editor.model;if(n.schema.checkChild(e,`paragraph`))return e;let r=n.schema.findAllowedParent(e,`paragraph`);if(!r)return null;let i=e.parent,a=n.schema.checkChild(i,`$text`);return i.isEmpty||a&&e.isAtEnd?n.createPositionAfter(i):!i.isEmpty&&a&&e.isAtStart?n.createPositionBefore(i):t.split(e,r).position}},vU=class e extends Z{static get pluginName(){return`Paragraph`}static get isOfficialPlugin(){return!0}init(){let t=this.editor,n=t.model;t.commands.add(`paragraph`,new hU(t)),t.commands.add(`insertParagraph`,new _U(t)),n.schema.register(`paragraph`,{inheritAllFrom:`$block`}),t.conversion.elementToElement({model:`paragraph`,view:`p`}),t.conversion.for(`upcast`).elementToElement({model:(t,{writer:n})=>!e.paragraphLikeElements.has(t.name)||t.isEmpty?null:n.createElement(`paragraph`),view:/.+/,converterPriority:`low`})}static paragraphLikeElements=new Set([`blockquote`,`dd`,`div`,`dt`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`li`,`p`,`td`,`th`])},yU=class extends GN{modelElements;constructor(e,t){super(e),this.modelElements=t}refresh(){let e=gT(this.editor.model.document.selection.getSelectedBlocks());this.value=!!e&&this.modelElements.includes(e.name)&&e.name,this.isEnabled=!!e&&this.modelElements.some(t=>bU(e,t,this.editor.model.schema))}execute(e){let t=this.editor.model,n=t.document,r=e.value;t.change(e=>{let i=Array.from(n.selection.getSelectedBlocks()).filter(e=>bU(e,r,t.schema));for(let t of i)t.is(`element`,r)||e.rename(t,r)})}};function bU(e,t,n){return n.checkChild(e.parent,t)&&!n.isObject(e)}var xU=`paragraph`,SU=class extends Z{static get pluginName(){return`HeadingEditing`}static get isOfficialPlugin(){return!0}constructor(e){super(e),e.config.define(`heading`,{options:[{model:`paragraph`,title:`Paragraph`,class:`ck-heading_paragraph`},{model:`heading1`,view:`h2`,title:`Heading 1`,class:`ck-heading_heading1`},{model:`heading2`,view:`h3`,title:`Heading 2`,class:`ck-heading_heading2`},{model:`heading3`,view:`h4`,title:`Heading 3`,class:`ck-heading_heading3`}]})}static get requires(){return[vU]}init(){let e=this.editor,t=e.config.get(`heading.options`),n=[];for(let r of t)r.model!==`paragraph`&&(e.model.schema.register(r.model,{inheritAllFrom:`$block`}),e.conversion.elementToElement(r),n.push(r.model));this._addDefaultH1Conversion(e),e.commands.add(`heading`,new yU(e,n))}afterInit(){let e=this.editor,t=e.commands.get(`enter`),n=e.config.get(`heading.options`);t&&this.listenTo(t,`afterExecute`,(t,r)=>{let i=e.model.document.selection.getFirstPosition().parent;n.some(e=>i.is(`element`,e.model))&&!i.is(`element`,xU)&&i.childCount===0&&r.writer.rename(i,xU)})}_addDefaultH1Conversion(e){e.conversion.for(`upcast`).elementToElement({model:`heading1`,view:`h1`,converterPriority:QS.low+1})}};function CU(e){let t=e.t,n={Paragraph:t(`Paragraph`),"Heading 1":t(`Heading 1`),"Heading 2":t(`Heading 2`),"Heading 3":t(`Heading 3`),"Heading 4":t(`Heading 4`),"Heading 5":t(`Heading 5`),"Heading 6":t(`Heading 6`)};return e.config.get(`heading.options`).map(e=>{let t=n[e.title];return t&&t!=e.title&&(e.title=t),e})}var wU=class extends Z{static get pluginName(){return`HeadingUI`}static get isOfficialPlugin(){return!0}init(){let e=this.editor,t=e.t,n=CU(e),r=t(`Choose heading`),i=t(`Heading`);e.ui.componentFactory.add(`heading`,t=>{let a={},o=new hT,s=e.commands.get(`heading`),c=e.commands.get(`paragraph`),l=[s];for(let e of n){let t={type:`button`,model:new NR({label:e.title,class:e.class,role:`menuitemradio`,withText:!0})};e.model===`paragraph`?(t.model.bind(`isOn`).to(c,`value`),t.model.set(`commandName`,`paragraph`),l.push(c)):(t.model.bind(`isOn`).to(s,`value`,t=>t===e.model),t.model.set({commandName:`heading`,commandValue:e.model})),o.add(t),a[e.model]=e.title}let u=DL(t);return AL(u,o,{ariaLabel:i,role:`menu`}),u.buttonView.set({ariaLabel:i,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:i}),u.extendTemplate({attributes:{class:[`ck-heading-dropdown`]}}),u.bind(`isEnabled`).toMany(l,`isEnabled`,(...e)=>e.some(e=>e)),u.buttonView.bind(`label`).to(s,`value`,c,`value`,(e,t)=>{let n=t?`paragraph`:e;return typeof n==`boolean`||!a[n]?r:a[n]}),u.buttonView.bind(`ariaLabel`).to(s,`value`,c,`value`,(e,t)=>{let n=t?`paragraph`:e;return typeof n==`boolean`||!a[n]?i:`${a[n]}, ${i}`}),this.listenTo(u,`execute`,t=>{let{commandName:n,commandValue:r}=t.source;e.execute(n,r?{value:r}:void 0),e.editing.view.focus()}),u}),e.ui.componentFactory.add(`menuBar:heading`,r=>{let i=new HR(r),a=e.commands.get(`heading`),o=e.commands.get(`paragraph`),s=[a],c=new UR(r);i.set({class:`ck-heading-dropdown`}),c.set({ariaLabel:t(`Heading`),role:`menu`}),i.buttonView.set({label:t(`Heading`)}),i.panelView.children.add(c);for(let t of n){let n=new tR(r,i),l=new LI(r);n.children.add(l),c.items.add(n),l.set({isToggleable:!0,label:t.title,role:`menuitemradio`,class:t.class}),l.delegate(`execute`).to(i),l.on(`execute`,()=>{let n=t.model===`paragraph`?`paragraph`:`heading`;e.execute(n,{value:t.model}),e.editing.view.focus()}),t.model===`paragraph`?(l.bind(`isOn`).to(o,`value`),s.push(o)):l.bind(`isOn`).to(a,`value`,e=>e===t.model)}return i.bind(`isEnabled`).toMany(s,`isEnabled`,(...e)=>e.some(e=>e)),i})}},TU=class extends Z{static get requires(){return[SU,wU]}static get pluginName(){return`Heading`}static get isOfficialPlugin(){return!0}},EU=class{_startElement;_referenceIndent;_isForward;_includeSelf;_sameAttributes;_sameIndent;_lowerIndent;_higherIndent;constructor(e,t){this._startElement=e,this._referenceIndent=e.getAttribute(`listIndent`),this._isForward=t.direction==`forward`,this._includeSelf=!!t.includeSelf,this._sameAttributes=sT(t.sameAttributes||[]),this._sameIndent=!!t.sameIndent,this._lowerIndent=!!t.lowerIndent,this._higherIndent=!!t.higherIndent}static first(e,t){return gT(new this(e,t)[Symbol.iterator]())}*[Symbol.iterator](){let e=[];for(let{node:t}of new DU(this._getStartNode(),this._isForward?`forward`:`backward`)){let n=t.getAttribute(`listIndent`);if(nthis._referenceIndent){if(!this._higherIndent)continue;if(!this._isForward){e.push(t);continue}}else{if(!this._sameIndent){if(this._higherIndent){e.length&&=(yield*e,0);break}continue}if(this._sameAttributes.some(e=>t.getAttribute(e)!==this._startElement.getAttribute(e)))break}e.length&&=(yield*e,0),yield t}}_getStartNode(){return this._includeSelf?this._startElement:this._isForward?this._startElement.nextSibling:this._startElement.previousSibling}},DU=class{_node;_isForward;_previousNodesByIndent=[];_previous=null;_previousNodeIndent=null;constructor(e,t=`forward`){this._node=e,this._isForward=t===`forward`}[Symbol.iterator](){return this}next(){if(!AU(this._node))return{done:!0,value:void 0};let e=this._node.getAttribute(`listIndent`),t=null;if(this._previous){let n=this._previousNodeIndent;e>n?this._previousNodesByIndent[n]=this._previous:ee.getAttribute(`listIndent`))),o=new Map;for(let e of r)o.set(e,EU.first(e,{lowerIndent:!0}));for(let e of r){if(i.has(e))continue;i.add(e);let r=e.getAttribute(`listIndent`)-1;if(r<0){UU(e,t,n);continue}if(e.getAttribute(`listIndent`)==a&&o.get(e)){let n=ZU(e,o.get(e),t);for(let e of n)i.add(e);if(n.length)continue}t.setAttribute(`listIndent`,r,e)}return KU(i)}function UU(e,t,n){e=sT(e);for(let n of e)n.is(`element`,`listItem`)&&t.rename(n,`paragraph`);for(let r of e)for(let e of r.getAttributeKeys())n.includes(e)&&t.removeAttribute(e,r);return e}function WU(e){if(!e.length)return!1;let t=e[0].getAttribute(`listItemId`);return t?!e.some(e=>e.getAttribute(`listItemId`)!=t):!1}function GU(e,t){let n=[],r=1/0;for(let{node:i}of new DU(e.nextSibling)){let e=i.getAttribute(`listIndent`);if(e==0)break;ee.root.rootName!==`$graveyard`).sort((e,t)=>e.index-t.index)}function qU(e){let t=e.document.selection.getSelectedElement();return t&&e.schema.isObject(t)&&e.schema.isBlock(t)?t:null}function JU(e,t){return t.checkChild(e.parent,`listItem`)&&t.checkChild(e,`$text`)&&!t.isObject(e)}function YU(e){return e==`numbered`||e==`customNumbered`}function XU(e){let t=e.getAttribute(`listIndent`),n=e.getAttribute(`listType`),r=e.getAttribute(`listItemId`),i=e.previousSibling,a=!1;for(;AU(i);){let e=i.getAttribute(`listIndent`);if(ee.index?BU(e,t,n):[]}var QU=class extends GN{_direction;constructor(e,t){super(e),this._direction=t}refresh(){this.isEnabled=this._checkEnabled()}execute(){let e=this.editor,t=e.model,n=$U(t.document.selection),r=e.plugins.get(`ListEditing`).getListAttributeNames();t.change(e=>{let t=[];WU(n)&&!FU(n[0])?(this._direction==`forward`&&t.push(...VU(n,e,{attributeNames:r})),t.push(...zU(n[0],e))):this._direction==`forward`?t.push(...VU(n,e,{expand:!0,attributeNames:r})):t.push(...HU(n,e,{attributeNames:r}));for(let n of t){if(!n.hasAttribute(`listType`))continue;let t=EU.first(n,{sameIndent:!0});t&&e.setAttribute(`listType`,t.getAttribute(`listType`),n)}this._fireAfterExecute(t)})}_fireAfterExecute(e){this.fire(`afterExecute`,KU(new Set(e)))}_checkEnabled(){let e=$U(this.editor.model.document.selection),t=e[0];if(!t)return!1;if(this._direction==`backward`||WU(e)&&!FU(e[0])||this.editor.config.get(`list.enableSkipLevelLists`))return!0;e=LU(e),t=e[0];let n=EU.first(t,{sameIndent:!0});return n?n.getAttribute(`listType`)==t.getAttribute(`listType`):!1}};function $U(e){let t=Array.from(e.getSelectedBlocks()),n=t.findIndex(e=>!AU(e));return n!=-1&&(t.length=n),t}var eW=class extends GN{type;_listWalkerOptions;constructor(e,t,n={}){super(e),this.type=t,this._listWalkerOptions=n.multiLevel?{higherIndent:!0,lowerIndent:!0,sameAttributes:[]}:void 0}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){let t=this.editor.model,n=t.document,r=qU(t),i=Array.from(n.selection.getSelectedBlocks()).filter(e=>t.schema.checkAttribute(e,`listType`)||JU(e,t.schema)),a=e.forceValue===void 0?this.value:!e.forceValue;t.change(o=>{if(a){let e=i[i.length-1],t=this.editor.plugins.get(`ListEditing`).getListAttributeNames(),n=MU(e,{direction:`forward`}),r=[];n.length>1&&r.push(...zU(n[1],o)),r.push(...UU(i,o,t)),r.push(...GU(e,o)),this._fireAfterExecute(r)}else if((r||n.selection.isCollapsed)&&AU(i[0])){let t=PU(r||i[0],this._listWalkerOptions);for(let n of t)o.setAttributes({...e.additionalAttributes,listType:this.type},n);this._fireAfterExecute(t)}else{let n=[];for(let r of i)if(!r.hasAttribute(`listType`))!r.is(`element`,`listItem`)&&JU(r,t.schema)&&o.rename(r,`listItem`),o.setAttributes({...e.additionalAttributes,listIndent:0,listItemId:kU.next(),listType:this.type},r),n.push(r);else for(let t of LU(r,{withNested:!1}))t.getAttribute(`listType`)!=this.type&&(o.setAttributes({...e.additionalAttributes,listType:this.type},t),n.push(t));this._fireAfterExecute(n)}})}_fireAfterExecute(e){this.fire(`afterExecute`,KU(new Set(e)))}_getValue(){let e=this.editor.model.document.selection,t=Array.from(e.getSelectedBlocks());if(!t.length)return!1;for(let e of t)if(e.getAttribute(`listType`)!=this.type)return!1;return!0}_checkEnabled(){let e=this.editor.model,t=e.schema,n=e.document.selection,r=Array.from(n.getSelectedBlocks());if(!r.length)return!1;if(this.value)return!0;for(let e of r)if(t.checkAttribute(e,`listType`)||JU(e,t))return!0;return!1}},tW=class extends GN{_direction;constructor(e,t){super(e),this._direction=t}refresh(){this.isEnabled=this._checkEnabled()}execute({shouldMergeOnBlocksContentLevel:e=!1}={}){let t=this.editor,n=t.model,r=n.document.selection,i=[],a=t.plugins.get(`ListEditing`).getListAttributeNames();n.change(t=>{let{firstElement:o,lastElement:s}=this._getMergeSubjectElements(r,e);if(!o||!s)return;let c=o.getAttribute(`listIndent`)||0,l=s.getAttribute(`listIndent`),u=s.getAttribute(`listItemId`);if(c!=l){let e=NU(s);i.push(...VU([s,...e],t,{indentBy:c-l,expand:c{let t=zU(this._getStartBlock(),e);this._fireAfterExecute(t)})}_fireAfterExecute(e){this.fire(`afterExecute`,KU(new Set(e)))}_checkEnabled(){let e=this.editor.model.document.selection,t=this._getStartBlock();return e.isCollapsed&&AU(t)&&!FU(t)}_getStartBlock(){let e=this.editor.model.document.selection.getFirstPosition().parent;return this._direction==`before`?e:e.nextSibling}},rW=class extends Z{static get pluginName(){return`ListItemBoldIntegration`}static get isOfficialPlugin(){return!0}static get requires(){return[HW]}init(){let e=this.editor,t=e.plugins.get(`ListFormatting`),n=e.plugins.get(HW);!e.plugins.has(`BoldEditing`)||!this.editor.config.get(`list.enableListItemMarkerFormatting`)||(t.registerFormatAttribute(`bold`,`listItemBold`),n.registerDowncastStrategy({scope:`item`,attributeName:`listItemBold`,setAttributeOnDowncast(e,t,n,r){t&&(e.addClass(`ck-list-marker-bold`,n),G.isSafari&&!(r&&r.dataPipeline)&&e.setStyle(`--ck-content-list-marker-dummy-bold`,`0`,n))}}))}afterInit(){let e=this.editor,t=e.model;!e.plugins.has(`BoldEditing`)||!this.editor.config.get(`list.enableListItemMarkerFormatting`)||(t.schema.extend(`$listItem`,{allowAttributes:`listItemBold`}),t.schema.setAttributeProperties(`listItemBold`,{isFormatting:!0}),t.schema.addAttributeCheck(e=>{if(!e.last.getAttribute(`listItemId`))return!1},`listItemBold`),e.conversion.for(`upcast`).attributeToAttribute({model:`listItemBold`,view:{name:`li`,classes:`ck-list-marker-bold`}}))}},iW=class extends Z{static get pluginName(){return`ListItemItalicIntegration`}static get isOfficialPlugin(){return!0}static get requires(){return[HW]}init(){let e=this.editor,t=e.plugins.get(`ListFormatting`),n=e.plugins.get(HW);!e.plugins.has(`ItalicEditing`)||!this.editor.config.get(`list.enableListItemMarkerFormatting`)||(t.registerFormatAttribute(`italic`,`listItemItalic`),n.registerDowncastStrategy({scope:`item`,attributeName:`listItemItalic`,setAttributeOnDowncast(e,t,n,r){t&&(e.addClass(`ck-list-marker-italic`,n),G.isSafari&&!(r&&r.dataPipeline)&&e.setStyle(`--ck-content-list-marker-dummy-italic`,`0`,n))}}))}afterInit(){let e=this.editor,t=e.model;!e.plugins.has(`ItalicEditing`)||!this.editor.config.get(`list.enableListItemMarkerFormatting`)||(t.schema.extend(`$listItem`,{allowAttributes:`listItemItalic`}),t.schema.setAttributeProperties(`listItemItalic`,{isFormatting:!0}),t.schema.addAttributeCheck(e=>{if(!e.last.getAttribute(`listItemId`))return!1},`listItemItalic`),e.conversion.for(`upcast`).attributeToAttribute({model:`listItemItalic`,view:{name:`li`,classes:`ck-list-marker-italic`}}))}},aW=class extends Z{static get pluginName(){return`ListItemFontSizeIntegration`}static get isOfficialPlugin(){return!0}static get requires(){return[HW]}init(){let e=this.editor,t=e.plugins.get(`ListFormatting`),n=e.plugins.get(HW);if(!e.plugins.has(`FontSizeEditing`)||!this.editor.config.get(`list.enableListItemMarkerFormatting`))return;let r=sU(e.config.get(`fontSize.options`));t.registerFormatAttribute(`fontSize`,`listItemFontSize`),n.registerDowncastStrategy({scope:`item`,attributeName:`listItemFontSize`,setAttributeOnDowncast(e,t,n,i){if(t){let a=r.find(e=>e.model==t);a&&a.view&&typeof a.view!=`string`?a.view.styles?(e.addClass(`ck-list-marker-font-size`,n),e.setStyle(`--ck-content-list-marker-font-size`,a.view.styles[`font-size`],n)):a.view.classes&&(e.addClass(`ck-list-marker-font-size-${t}`,n),G.isSafari&&!(i&&i.dataPipeline)&&e.setStyle(`--ck-content-list-marker-dummy-font-size`,`0`,n)):(e.addClass(`ck-list-marker-font-size`,n),e.setStyle(`--ck-content-list-marker-font-size`,t,n))}}})}afterInit(){let e=this.editor,t=e.model;if(!e.plugins.has(`FontSizeEditing`)||!this.editor.config.get(`list.enableListItemMarkerFormatting`))return;t.schema.extend(`$listItem`,{allowAttributes:`listItemFontSize`}),t.schema.setAttributeProperties(`listItemFontSize`,{isFormatting:!0}),t.schema.addAttributeCheck(e=>{if(!e.last.getAttribute(`listItemId`))return!1},`listItemFontSize`),e.conversion.for(`upcast`).elementToAttribute({model:{key:`listItemFontSize`,value:e=>e.getStyle(`--ck-content-list-marker-font-size`)},view:{name:`li`,classes:`ck-list-marker-font-size`,styles:{"--ck-content-list-marker-font-size":/.*/}}});let n=sU(e.config.get(`fontSize.options`));for(let t of n)t.model&&t.view&&e.conversion.for(`upcast`).elementToAttribute({model:{key:`listItemFontSize`,value:t.model},view:{name:`li`,classes:`ck-list-marker-font-size-${t.model}`}})}},oW=class extends Z{static get pluginName(){return`ListItemFontColorIntegration`}static get isOfficialPlugin(){return!0}static get requires(){return[HW]}init(){let e=this.editor,t=e.plugins.get(`ListFormatting`),n=e.plugins.get(HW);!e.plugins.has(`FontColorEditing`)||!this.editor.config.get(`list.enableListItemMarkerFormatting`)||(t.registerFormatAttribute(`fontColor`,`listItemFontColor`),n.registerDowncastStrategy({scope:`item`,attributeName:`listItemFontColor`,setAttributeOnDowncast(e,t,n){t&&(e.addClass(`ck-list-marker-color`,n),e.setStyle(`--ck-content-list-marker-color`,t,n))}}))}afterInit(){let e=this.editor,t=e.model;!e.plugins.has(`FontColorEditing`)||!this.editor.config.get(`list.enableListItemMarkerFormatting`)||(t.schema.extend(`$listItem`,{allowAttributes:`listItemFontColor`}),t.schema.setAttributeProperties(`listItemFontColor`,{isFormatting:!0}),t.schema.addAttributeCheck(e=>{if(!e.last.getAttribute(`listItemId`))return!1},`listItemFontColor`),e.conversion.for(`upcast`).attributeToAttribute({model:{key:`listItemFontColor`,value:e=>e.getStyle(`--ck-content-list-marker-color`)},view:{name:`li`,classes:`ck-list-marker-color`,styles:{"--ck-content-list-marker-color":/.*/}}}))}},sW=class extends Z{static get pluginName(){return`ListItemFontFamilyIntegration`}static get isOfficialPlugin(){return!0}static get requires(){return[HW]}init(){let e=this.editor,t=e.plugins.get(`ListFormatting`),n=e.plugins.get(HW);!e.plugins.has(`FontFamilyEditing`)||!this.editor.config.get(`list.enableListItemMarkerFormatting`)||(t.registerFormatAttribute(`fontFamily`,`listItemFontFamily`),n.registerDowncastStrategy({scope:`item`,attributeName:`listItemFontFamily`,setAttributeOnDowncast(e,t,n){t&&(e.addClass(`ck-list-marker-font-family`,n),e.setStyle(`--ck-content-list-marker-font-family`,t,n))}}))}afterInit(){let e=this.editor,t=e.model;!e.plugins.has(`FontFamilyEditing`)||!this.editor.config.get(`list.enableListItemMarkerFormatting`)||(t.schema.extend(`$listItem`,{allowAttributes:`listItemFontFamily`}),t.schema.setAttributeProperties(`listItemFontFamily`,{isFormatting:!0}),t.schema.addAttributeCheck(e=>{if(!e.last.getAttribute(`listItemId`))return!1},`listItemFontFamily`),e.conversion.for(`upcast`).attributeToAttribute({model:{key:`listItemFontFamily`,value:e=>e.getStyle(`--ck-content-list-marker-font-family`)},view:{name:`li`,classes:`ck-list-marker-font-family`,styles:{"--ck-content-list-marker-font-family":/.*/}}}))}},cW=class extends Z{_loadedFormatting={};static get pluginName(){return`ListFormatting`}static get isOfficialPlugin(){return!0}static get requires(){return[rW,iW,aW,oW,sW]}constructor(e){super(e),e.config.define(`list.enableListItemMarkerFormatting`,!0)}afterInit(){this.editor.config.get(`list.enableListItemMarkerFormatting`)&&this._registerPostfixerForListItemFormatting()}_registerPostfixerForListItemFormatting(){let e=this.editor.model;e.document.registerPostFixer(t=>{let n=e.document.differ.getChanges(),r=new Set,i=!1;for(let e of n)if(e.type===`attribute`)(e.attributeKey==`listItemId`||e.attributeKey==`listType`||this._isInlineOrSelectionFormatting(e.attributeKey)||Object.values(this._loadedFormatting).includes(e.attributeKey))&&(AU(e.range.start.nodeAfter)?r.add(e.range.start.nodeAfter):AU(e.range.start.parent)&&r.add(e.range.start.parent));else if(AU(e.position.nodeAfter)&&r.add(e.position.nodeAfter),AU(e.position.nodeBefore)&&r.add(e.position.nodeBefore),AU(e.position.parent)&&r.add(e.position.parent),e.type==`insert`&&e.name!=`$text`){let n=t.createRangeIn(e.position.nodeAfter);for(let e of n.getItems())AU(e)&&r.add(e)}for(let n of r){let r=lW(e,n,Object.keys(this._loadedFormatting));for(let[e,a]of Object.entries(r)){let r=this._loadedFormatting[e];(a&&dW(t,n,r,a)||!a&&fW(t,n,r))&&(i=!0)}}return i})}registerFormatAttribute(e,t){this._loadedFormatting[e]=t}_isInlineOrSelectionFormatting(e){return e.replace(/^selection:/,``)in this._loadedFormatting}};function lW(e,t,n){return FU(t)?uW(e,t,n):uW(e,jU(t)[0],n)}function uW(e,t,n){if(!pW(t)||e.schema.isLimit(t))return Object.fromEntries(n.map(e=>[e]));if(t.isEmpty)return Object.fromEntries(n.map(e=>[e,t.getAttribute(`selection:${e}`)]));let r=new Set(n),i={},a=e.createRangeIn(t).getWalker({ignoreElementEnd:!0});for(let{item:t}of a){for(let n of r)if(e.schema.checkAttribute(t,n)){let e=t.getAttribute(n);e===void 0?(r.delete(n),i[n]=void 0):i[n]===void 0?i[n]=e:i[n]!==e&&(r.delete(n),i[n]=void 0)}else n in i||(i[n]=void 0);if(!r.size)break;e.schema.isLimit(t)&&a.jumpTo(e.createPositionAfter(t))}return i}function dW(e,t,n,r){let i=jU(t),a=!1;for(let t of i)(!t.hasAttribute(n)||t.getAttribute(n)!==r)&&(e.setAttribute(n,r,t),a=!0);return a}function fW(e,t,n){let r=jU(t),i=!1;for(let t of r)t.hasAttribute(n)&&(e.removeAttribute(n,t),i=!0);return i}function pW(e){return[`numbered`,`bulleted`,`customNumbered`,`customBulleted`].includes(e.getAttribute(`listType`))}var mW=class extends Z{static get pluginName(){return`ListUtils`}static get isOfficialPlugin(){return!0}expandListBlocksToCompleteList(e){return RU(e)}isFirstBlockOfListItem(e){return FU(e)}isListItemBlock(e){return AU(e)}expandListBlocksToCompleteItems(e,t={}){return LU(e,t)}isNumberedListType(e){return YU(e)}isFirstListItemInList(e){return XU(e)}};function hW(e){return e.is(`element`,`ol`)||e.is(`element`,`ul`)}function gW(e){return e.is(`element`,`li`)}function _W(e){let t=0,n=e.parent;for(;n;){if(gW(n))t++;else{let e=n.previousSibling;e&&gW(e)&&t++}n=n.parent}return t}function vW(e,t,n,r=xW(n,t)){return e.createAttributeElement(bW(n),null,{priority:2*t/100-100,id:r})}function yW(e,t,n){return e.createAttributeElement(`li`,null,{priority:(2*t+1)/100-100,id:n})}function bW(e){return e==`numbered`||e==`customNumbered`?`ol`:`ul`}function xW(e,t){return`list-${e}-${t}`}function SW(e,t,n){let r=e.nodeBefore;if(AU(r)){let e=r;for(let{node:i}of new DU(e,`backward`))if(e=i,n.has(e)||(n.add(e),t.has(r)))return;t.add(e)}else{let n=e.nodeAfter;AU(n)&&t.add(n)}}function CW(e,t){let n=0,r=-1,i=null,a=!1;for(let{node:o}of e){let e=o.getAttribute(`listIndent`);if(e>n){let s;i===null?(i=e-n,s=n):(i>e&&(i=e),s=e-i),s>r+1&&(s=r+1),t.setAttribute(`listIndent`,s,o),a=!0,r=s}else i=null,n=e+1,r=e}return a}function wW(e,t,n){let r=new Set,i=!1;for(let{node:a}of e){if(r.has(a))continue;let e=a.getAttribute(`listType`),o=a.getAttribute(`listItemId`);if(t.has(o)&&(o=kU.next()),t.add(o),a.is(`element`,`listItem`)){a.getAttribute(`listItemId`)!=o&&(n.setAttribute(`listItemId`,o,a),i=!0);continue}for(let t of MU(a,{direction:`forward`}))r.add(t),t.getAttribute(`listType`)!=e&&(o=kU.next(),e=t.getAttribute(`listType`)),t.getAttribute(`listItemId`)!=o&&(n.setAttribute(`listItemId`,o,t),i=!0)}return i}function TW(){return(e,t,n)=>{let r=t.viewItem;if(r.getStyle(`list-style-type`)!==`none`||!EW(r)||!n.consumable.consume(r,{name:!0}))return;let{modelRange:i,modelCursor:a}=n.convertChildren(r,t.modelCursor);t.modelRange=i,t.modelCursor=a}}function EW(e){let t=!1;for(let n of e.getChildren()){if(n.is(`element`,`ul`)||n.is(`element`,`ol`)){t=!0;continue}return!1}return t}function DW(){return(e,t,n)=>{let{writer:r,schema:i}=n;if(!t.modelRange)return;let a=Array.from(t.modelRange.getItems({shallow:!0})).filter(e=>i.checkAttribute(e,`listItemId`));if(!a.length||a.every(e=>e.hasAttribute(`listItemId`)))return;let o=t.viewItem.getAttribute(`data-list-item-id`)||kU.next();n.consumable.consume(t.viewItem,{attributes:`data-list-item-id`});let s=_W(t.viewItem),c=t.viewItem.parent&&t.viewItem.parent.is(`element`,`ol`)?`numbered`:`bulleted`,l=a[0].getAttribute(`listType`);l&&(c=l);let u={listItemId:o,listIndent:s,listType:c};for(let e of a)e.hasAttribute(`listItemId`)||r.setAttributes(u,e);a.length>1&&a[1].getAttribute(`listItemId`)!=u.listItemId&&n.keepEmptyElement(a[0])}}function OW(e,t,n,r){return()=>{let r=e.document.differ.getChanges(),a=[],o=new Set,c=new Set,l=new Set;for(let e of r)if(e.type==`insert`&&e.name!=`$text`)SW(e.position,o,l),e.attributes.has(`listItemId`)?c.add(e.position.nodeAfter):SW(e.position.getShiftedBy(e.length),o,l);else if(e.type==`remove`&&e.attributes.has(`listItemId`))SW(e.position,o,l);else if(e.type==`attribute`){let t=e.range.start.nodeAfter;n.includes(e.attributeKey)?(SW(e.range.start,o,l),e.attributeNewValue===null?(SW(e.range.start.getShiftedBy(1),o,l),s(t)&&a.push(t)):c.add(t)):AU(t)&&s(t)&&a.push(t)}for(let e of o.values())a.push(...i(e,c));for(let e of new Set(a))t.reconvertItem(e)};function i(e,t){let n=[],r=new Set,i=[];for(let{node:c,previous:u}of new DU(e)){if(r.has(c))continue;let e=c.getAttribute(`listIndent`);u&&en.includes(e)))}function o(e,t,n){for(let r=t-1;r>=0&&!n[r];r--){let t=RW(e,r),i=null;if(!t){for(let e=r-1;e>=0;e--)if(n[e]){i=n[e].modelElement;break}}let o=t||i||e;n[r]={modelAttributes:{...a(o),listItemId:`list-item-skip-${r}`,listIndent:r},modelElement:o}}}function s(e,i){let a=t.mapper.toViewElement(e);if(!a)return!1;if(c(a)||r.fire(`checkElement`,{modelElement:e,viewElement:a}))return!0;if(!e.is(`element`,`paragraph`)&&!e.is(`element`,`listItem`))return!1;let o=BW(e,n,i);return o&&a.is(`element`,`p`)?!0:!!(!o&&a.is(`element`,`span`))}function c(e){for(e=e.parent;e.is(`attributeElement`)&&[`ol`,`ul`,`li`].includes(e.name);)e=e.parent;return!!(e.getCustomProperty(`$structureSlotParent`)&&!t.mapper.toModelElement(e))}function l(e,n,i){if(i.has(e))return!1;let a=t.mapper.toViewElement(e),o=n.length-1;for(let e=a.parent;!e.is(`editableElement`);e=e.parent){let t=gW(e),i=hW(e);if(!(!i&&!t)){if(n[o]){let i=`checkAttributes:${t?`item`:`list`}`;if(r.fire(i,{viewElement:e,modelAttributes:n[o].modelAttributes,modelReferenceElement:n[o].modelElement}))break}if(i&&(o--,o<0))return!1}}return!0}}function kW(e,t,n,{dataPipeline:r,enableSkipLevelLists:i}){let a=zW(e,t);return(o,s,c)=>{let{writer:l,mapper:u,consumable:d}=c,f=s.item;if(!e.includes(s.attributeKey)||!a(f,d))return;let p={...c.options,dataPipeline:r,enableSkipLevelLists:i},m=MW(f,u,n,l);PW(m,l,u),IW(m,l),LW(f,FW(f,m,t,l,p),t,l,p)}}function AW(e){return(t,n,r)=>{let{writer:i,mapper:a}=r,o=t.name.split(`:`)[1];if(!e.checkAttribute(o,`listItemId`))return;let s=a.toViewPosition(n.position),c=n.position.getShiftedBy(n.length),l=a.toViewPosition(c,{isPhantom:!0}),u=i.createRange(s,l).getTrimmed().end.nodeBefore;u&&PW(u,i,a)}}function jW(e,{dataPipeline:t}={}){return(n,{writer:r})=>{if(!BW(n,e))return null;if(!t)return r.createContainerElement(`span`,{class:`ck-list-bogus-paragraph`});let i=r.createContainerElement(`p`);return r.setCustomProperty(`dataPipeline:transparentRendering`,!0,i),i}}function MW(e,t,n,r){let i=n.createRangeOn(e),a=t.toViewRange(i).getTrimmed().getWalker();for(let{item:e}of a)if(e.is(`element`)&&e.getCustomProperty(`listItemMarker`))a.jumpTo(r.createPositionAfter(e));else if(e.is(`element`)&&!e.getCustomProperty(`listItemWrapper`))return e}function NW(e,t){return(n,r)=>{if(r.modelPosition.offset>0)return;let i=r.modelPosition.parent;if(!AU(i)||!e.some(e=>e.scope==`itemMarker`&&e.canInjectMarkerIntoElement&&e.canInjectMarkerIntoElement(i)))return;let a=r.mapper.toViewElement(i),o=t.createRangeIn(a),s=o.getWalker(),c=o.start;for(let{item:e}of s){if(e.is(`element`)&&r.mapper.toModelElement(e)||e.is(`$textProxy`))break;e.is(`element`)&&e.getCustomProperty(`listItemMarker`)&&(c=t.createPositionAfter(e),s.skip(({previousPosition:e})=>!e.isEqual(c)))}r.viewPosition=c}}function PW(e,t,n){for(;e.parent.is(`attributeElement`)&&e.parent.getCustomProperty(`listItemWrapper`);)t.unwrap(t.createRangeOn(e),e.parent);let r=[];i(t.createPositionBefore(e).getWalker({direction:`backward`})),i(t.createRangeIn(e).getWalker());for(let e of r)t.remove(e);function i(e){for(let{item:t}of e){if(t.is(`element`)&&n.toModelElement(t))break;t.is(`element`)&&t.getCustomProperty(`listItemMarker`)&&r.push(t)}}}function FW(e,t,n,r,{dataPipeline:i}){let a=r.createRangeOn(t);if(!FU(e))return a;for(let o of n){if(o.scope!=`itemMarker`)continue;let n=o.createElement(r,e,{dataPipeline:i});if(!n||(r.setCustomProperty(`listItemMarker`,!0,n),o.canInjectMarkerIntoElement&&o.canInjectMarkerIntoElement(e)?r.insert(r.createPositionAt(t,0),n):(r.insert(a.start,n),a=r.createRange(r.createPositionBefore(n),r.createPositionAfter(t))),!o.createWrapperElement||!o.canWrapElement))continue;let s=o.createWrapperElement(r,e,{dataPipeline:i});r.setCustomProperty(`listItemWrapper`,!0,s),o.canWrapElement(e)?a=r.wrap(a,s):(a=r.wrap(r.createRangeOn(n),s),a=r.createRange(a.start,r.createPositionAfter(t)))}return a}function IW(e,t){let n=e.parent;for(;n.is(`attributeElement`)&&[`ul`,`ol`,`li`].includes(n.name);){let r=n.parent;t.unwrap(t.createRangeOn(e),n),n=r}}function LW(e,t,n,r,i){if(!e.hasAttribute(`listIndent`))return;let a=e.getAttribute(`listIndent`),o=i.enableSkipLevelLists,s=e;for(let c=a;c>=0;c--){let a=s.getAttribute(`listIndent`)!==c;if(a){let a=RW(e,c)||s,o=a.getAttribute(`listType`),l=yW(r,c,`list-item-skip-${c}`),u=vW(r,c,o);r.setStyle(`list-style-type`,`none`,l);for(let e of n)e.scope==`list`&&a.hasAttribute(e.attributeName)&&e.setAttributeOnDowncast(r,a.getAttribute(e.attributeName),u,i,a);t=r.wrap(t,l),t=r.wrap(t,u)}else{let e=yW(r,c,s.getAttribute(`listItemId`)),a=vW(r,c,s.getAttribute(`listType`));for(let t of n)(t.scope==`list`||t.scope==`item`)&&s.hasAttribute(t.attributeName)&&t.setAttributeOnDowncast(r,s.getAttribute(t.attributeName),t.scope==`list`?a:e,i,s);t=r.wrap(t,e),t=r.wrap(t,a)}if(c==0)break;if(!a){let e=EU.first(s,{lowerIndent:!0});if(e)s=e;else if(!o)break}}}function RW(e,t){let n=e.nextSibling;for(;n&&AU(n);){let e=n.getAttribute(`listIndent`);if(ee.consume===!1).map(e=>e.attributeName);return(t,r)=>{let i=[];for(let r of e)t.hasAttribute(r)&&!n.includes(r)&&i.push(`attribute:${r}`);return i.every(e=>r.test(t,e)!==!1)?(i.forEach(e=>r.consume(t,e)),!0):!1}}function BW(e,t,n=jU(e)){if(!AU(e))return!1;for(let n of e.getAttributeKeys())if(!(n.startsWith(`selection:`)||n==`htmlEmptyBlock`)&&!t.includes(n))return!1;return n.length<2}var VW=[`listType`,`listIndent`,`listItemId`],HW=class extends Z{_downcastStrategies=[];static get pluginName(){return`ListEditing`}static get isOfficialPlugin(){return!0}static get requires(){return[aB,gz,mW,wV,cW]}constructor(e){super(e),e.config.define(`list.multiBlock`,!0)}init(){let e=this.editor,t=e.model,n=e.config.get(`list.multiBlock`);if(e.plugins.has(`LegacyListEditing`))throw new K(`list-feature-conflict`,this,{conflictPlugin:`LegacyListEditing`});t.schema.register(`$listItem`,{allowAttributes:VW}),n?(t.schema.extend(`$container`,{allowAttributesOf:`$listItem`}),t.schema.extend(`$block`,{allowAttributesOf:`$listItem`}),t.schema.extend(`$blockObject`,{allowAttributesOf:`$listItem`})):t.schema.register(`listItem`,{inheritAllFrom:`$block`,allowAttributesOf:`$listItem`});for(let e of VW)t.schema.setAttributeProperties(e,{copyOnReplace:!0});e.commands.add(`numberedList`,new eW(e,`numbered`)),e.commands.add(`bulletedList`,new eW(e,`bulleted`)),e.commands.add(`customNumberedList`,new eW(e,`customNumbered`,{multiLevel:!0})),e.commands.add(`customBulletedList`,new eW(e,`customBulleted`,{multiLevel:!0})),e.commands.add(`indentList`,new QU(e,`forward`)),e.commands.add(`outdentList`,new QU(e,`backward`)),e.commands.add(`splitListItemBefore`,new nW(e,`before`)),e.commands.add(`splitListItemAfter`,new nW(e,`after`)),n&&(e.commands.add(`mergeListItemBackward`,new tW(e,`backward`)),e.commands.add(`mergeListItemForward`,new tW(e,`forward`))),this._setupDeleteIntegration(),this._setupEnterIntegration(),this._setupTabIntegration(),this._setupClipboardIntegration(),this._setupAccessibilityIntegration(),this._setupListItemIdConversionStrategy()}afterInit(){let e=this.editor.commands,t=e.get(`indent`),n=e.get(`outdent`);t&&t.registerChildCommand(e.get(`indentList`),{priority:`high`}),n&&n.registerChildCommand(e.get(`outdentList`),{priority:`lowest`}),this._setupModelPostFixing(),this._setupConversion()}registerDowncastStrategy(e){this._downcastStrategies.push(e)}getListAttributeNames(){return[...VW,...this._downcastStrategies.map(e=>e.attributeName)]}_setupDeleteIntegration(){let e=this.editor,t=e.commands.get(`mergeListItemBackward`),n=e.commands.get(`mergeListItemForward`);this.listenTo(e.editing.view.document,`delete`,(r,i)=>{let a=e.model.document.selection;qU(e.model)||e.model.change(()=>{let o=a.getFirstPosition();if(a.isCollapsed&&i.direction==`backward`){if(!o.isAtStart)return;let n=o.parent;if(!AU(n))return;let a=EU.first(n,{sameAttributes:`listType`,sameIndent:!0}),s=n.getAttribute(`listIndent`)===0||!AU(n.previousSibling);if(!a&&s)IU(n)||e.execute(`splitListItemAfter`),e.execute(`outdentList`);else{if(!t||!t.isEnabled)return;t.execute({shouldMergeOnBlocksContentLevel:GW(e.model,`backward`)})}i.preventDefault(),r.stop()}else{if(a.isCollapsed&&!a.getLastPosition().isAtEnd||!n||!n.isEnabled)return;n.execute({shouldMergeOnBlocksContentLevel:GW(e.model,`forward`)}),i.preventDefault(),r.stop()}})},{context:`li`})}_setupEnterIntegration(){let e=this.editor,t=e.model,n=e.commands,r=n.get(`enter`);this.listenTo(e.editing.view.document,`enter`,(n,r)=>{let i=t.document,a=i.selection.getFirstPosition().parent;if(i.selection.isCollapsed&&AU(a)&&a.isEmpty&&!r.isSoft){let t=FU(a),i=IU(a);t&&i?(e.execute(`outdentList`),r.preventDefault(),n.stop()):t&&!i?(e.execute(`splitListItemAfter`),r.preventDefault(),n.stop()):i&&(e.execute(`splitListItemBefore`),r.preventDefault(),n.stop())}},{context:`li`}),this.listenTo(r,`afterExecute`,()=>{let t=n.get(`splitListItemBefore`);if(t.refresh(),!t.isEnabled)return;let r=e.model.document.selection.getLastPosition().parent;jU(r).length===2&&t.execute()})}_setupTabIntegration(){let e=this.editor;this.listenTo(e.editing.view.document,`tab`,(t,n)=>{let r=n.shiftKey?`outdentList`:`indentList`;this.editor.commands.get(r).isEnabled&&(e.execute(r),n.stopPropagation(),n.preventDefault(),t.stop())},{context:`li`})}_setupConversion(){let e=this.editor,t=e.model,n=this.getListAttributeNames(),r=e.config.get(`list.multiBlock`),i=r?`paragraph`:`listItem`,a=!!e.config.get(`list.enableSkipLevelLists`);e.conversion.for(`upcast`).elementToElement({view:`li`,model:(e,{writer:t})=>t.createElement(i,{listType:``})}).elementToElement({view:`p`,model:(e,{writer:t})=>e.parent&&e.parent.is(`element`,`li`)?t.createElement(i,{listType:``}):null,converterPriority:`high`}).add(e=>{e.on(`element:p`,(e,t,n)=>{let r=t.viewItem;if(!r.parent||!r.parent.is(`element`,`li`)||r.isEmpty||!r.getAttributeKeys().next().done)return;for(let e of r.parent.getChildren())if(e!==r&&!(e.is(`element`,`ol`)||e.is(`element`,`ul`)))return;n.consumable.consume(r,{name:!0});let{modelRange:i,modelCursor:a}=n.convertChildren(r,t.modelCursor);t.modelRange=i,t.modelCursor=a},{priority:`highest`}),a&&e.on(`element:li`,TW(),{priority:`high`}),e.on(`element:li`,DW())}),r||e.conversion.for(`downcast`).elementToElement({model:`listItem`,view:`p`}),e.conversion.for(`editingDowncast`).elementToElement({model:i,view:jW(n),converterPriority:`high`}).add(e=>{e.on(`attribute`,kW(n,this._downcastStrategies,t,{enableSkipLevelLists:a})),e.on(`remove`,AW(t.schema))}),e.conversion.for(`dataDowncast`).elementToElement({model:i,view:jW(n,{dataPipeline:!0}),converterPriority:`high`}).add(e=>{e.on(`attribute`,kW(n,this._downcastStrategies,t,{dataPipeline:!0,enableSkipLevelLists:a}))});let o=NW(this._downcastStrategies,e.editing.view);e.editing.mapper.on(`modelToViewPosition`,o),e.data.mapper.on(`modelToViewPosition`,o),this.listenTo(t.document,`change:data`,OW(t,e.editing,n,this),{priority:`high`}),this.on(`checkAttributes:item`,(e,{viewElement:t,modelAttributes:n})=>{t.id!=n.listItemId&&(e.return=!0,e.stop())}),this.on(`checkAttributes:list`,(e,{viewElement:t,modelAttributes:n})=>{(t.name!=bW(n.listType)||t.id!=xW(n.listType,n.listIndent))&&(e.return=!0,e.stop())})}_setupModelPostFixing(){let e=this.editor.model,t=this.getListAttributeNames();e.document.registerPostFixer(n=>UW(e,n,t,this)),this.editor.config.get(`list.enableSkipLevelLists`)||this.on(`postFixer`,(e,{listNodes:t,writer:n})=>{e.return=CW(t,n)||e.return},{priority:`high`}),this.on(`postFixer`,(e,{listNodes:t,writer:n,seenIds:r})=>{e.return=wW(t,r,n)||e.return},{priority:`high`})}_setupClipboardIntegration(){let e=this.editor.model,t=this.editor.plugins.get(`ClipboardPipeline`);this.listenTo(e,`insertContent`,WW(e),{priority:`high`}),this.listenTo(t,`outputTransformation`,(t,n)=>{e.change(e=>{let t=Array.from(n.content.getChildren()),r=t[t.length-1];if(t.length>1&&r.is(`element`)&&r.isEmpty&&t.slice(0,-1).every(AU)&&e.remove(r),n.method==`copy`||n.method==`cut`){let t=Array.from(n.content.getChildren());WU(t)&&UU(t,e,this.getListAttributeNames())}})})}_setupAccessibilityIntegration(){let e=this.editor,t=e.t;e.accessibility.addKeystrokeInfoGroup({id:`list`,label:t(`Keystrokes that can be used in a list`),keystrokes:[{label:t(`Increase list item indent`),keystroke:`Tab`},{label:t(`Decrease list item indent`),keystroke:`Shift+Tab`}]})}_setupListItemIdConversionStrategy(){this.registerDowncastStrategy({scope:`item`,attributeName:`listItemId`,setAttributeOnDowncast(e,t,n,r){r&&(r.skipListItemIds||r.isClipboardPipeline)||e.setAttribute(`data-list-item-id`,t,n)}})}};function UW(e,t,n,r){let i=e.document.differ.getChanges(),a=new Set,o=new Set,s=r.editor.config.get(`list.multiBlock`),c=!1;for(let r of i){if(r.type==`insert`&&r.name!=`$text`){let i=r.position.nodeAfter;if(!e.schema.checkAttribute(i,`listItemId`))for(let e of Array.from(i.getAttributeKeys()))n.includes(e)&&(t.removeAttribute(e,i),c=!0);SW(r.position,o,a),r.attributes.has(`listItemId`)||SW(r.position.getShiftedBy(r.length),o,a);for(let{item:t,previousPosition:n}of e.createRangeIn(i))AU(t)&&SW(n,o,a)}else r.type==`remove`?SW(r.position,o,a):r.type==`attribute`&&n.includes(r.attributeKey)&&(SW(r.range.start,o,a),r.attributeNewValue===null&&SW(r.range.start.getShiftedBy(1),o,a));if(!s&&r.type==`attribute`&&VW.includes(r.attributeKey)){let e=r.range.start.nodeAfter;r.attributeNewValue===null&&e&&e.is(`element`,`listItem`)?(t.rename(e,`paragraph`),c=!0):r.attributeOldValue===null&&e&&e.is(`element`)&&e.name!=`listItem`&&(t.rename(e,`listItem`),c=!0)}}let l=new Set;for(let e of o.values())c=r.fire(`postFixer`,{listNodes:new OU(e),listHead:e,writer:t,seenIds:l})||c;return c}function WW(e){return(t,[n,r])=>{let i=(n.is(`documentFragment`)?Array.from(n.getChildren()):[n]).filter(t=>!e.schema.isInline(t));if(!i.length)return;let a=(r?e.createSelection(r):e.document.selection).getFirstPosition(),o;if(AU(a.parent))o=a.parent;else if(AU(a.nodeBefore)&&AU(a.nodeAfter))o=a.nodeBefore;else return;e.change(e=>{let t=o.getAttribute(`listType`),n=o.getAttribute(`listIndent`),r=i[0].getAttribute(`listIndent`)||0,a=Math.max(n-r,0);for(let n of i){let r=AU(n);o.is(`element`,`listItem`)&&n.is(`element`,`paragraph`)&&e.rename(n,`listItem`),e.setAttributes({listIndent:(r?n.getAttribute(`listIndent`):0)+a,listItemId:r?n.getAttribute(`listItemId`):kU.next(),listType:t},n)}})}}function GW(e,t){let n=e.document.selection;if(!n.isCollapsed)return!qU(e);if(t===`forward`)return!0;let r=n.getFirstPosition().parent,i=r.previousSibling;return e.schema.isObject(i)?!1:i.isEmpty?!0:WU([r,i])}function KW(e,t,n,r){e.ui.componentFactory.add(t,()=>{let i=qW(bI,e,t,n,r);return i.set({tooltip:!0,isToggleable:!0}),i}),e.ui.componentFactory.add(`menuBar:${t}`,()=>{let i=qW(LI,e,t,n,r);return i.set({role:`menuitemcheckbox`,isToggleable:!0}),i})}function qW(e,t,n,r,i){let a=t.commands.get(n),o=new e(t.locale);return o.set({label:r,icon:i}),o.bind(`isOn`,`isEnabled`).to(a,`value`,`isEnabled`),o.on(`execute`,()=>{t.execute(n),t.editing.view.focus()}),o}var JW=class extends Z{static get pluginName(){return`ListUI`}static get isOfficialPlugin(){return!0}init(){let e=this.editor.t;this.editor.ui.componentFactory.has(`numberedList`)||KW(this.editor,`numberedList`,e(`Numbered List`),HP),this.editor.ui.componentFactory.has(`bulletedList`)||KW(this.editor,`bulletedList`,e(`Bulleted List`),MP)}},YW=class extends Z{static get requires(){return[HW,JW]}static get pluginName(){return`List`}static get isOfficialPlugin(){return!0}},XW={},ZW={},QW={};for(let{listStyle:e,typeAttribute:t,listType:n}of[{listStyle:`disc`,typeAttribute:`disc`,listType:`bulleted`},{listStyle:`circle`,typeAttribute:`circle`,listType:`bulleted`},{listStyle:`square`,typeAttribute:`square`,listType:`bulleted`},{listStyle:`decimal`,typeAttribute:`1`,listType:`numbered`},{listStyle:`decimal-leading-zero`,typeAttribute:null,listType:`numbered`},{listStyle:`lower-roman`,typeAttribute:`i`,listType:`numbered`},{listStyle:`upper-roman`,typeAttribute:`I`,listType:`numbered`},{listStyle:`lower-alpha`,typeAttribute:`a`,listType:`numbered`},{listStyle:`upper-alpha`,typeAttribute:`A`,listType:`numbered`},{listStyle:`lower-latin`,typeAttribute:`a`,listType:`numbered`},{listStyle:`upper-latin`,typeAttribute:`A`,listType:`numbered`},{listStyle:`arabic-indic`,typeAttribute:null,listType:`numbered`}])XW[e]=n,ZW[e]=t,t&&(QW[t]=e);var $W={left:{className:`table-style-align-left`},center:{className:`table-style-align-center`},right:{className:`table-style-align-right`},blockLeft:{className:`table-style-block-align-left`},blockRight:{className:`table-style-block-align-right`}};$W.right.className,$W.center.className,$W.blockLeft.className,$W.blockRight.className;var eG={center:{align:`center`,style:`margin-left: auto; margin-right: auto;`,className:`table-style-align-center`},left:{align:`left`,style:`float: left;`,className:`table-style-align-left`},right:{align:`right`,style:`float: right;`,className:`table-style-align-right`},blockLeft:{align:void 0,style:`margin-left: 0; margin-right: auto;`,className:$W.blockLeft.className},blockRight:{align:void 0,style:`margin-left: auto; margin-right: 0;`,className:$W.blockRight.className}},tG=class{_table;_startRow;_endRow;_startColumn;_endColumn;_includeAllSlots;_skipRows;_row;_rowIndex;_column;_cellIndex;_spannedCells;_nextCellAtColumn;_jumpedToStartRow=!1;constructor(e,t={}){this._table=e,this._startRow=t.row===void 0?t.startRow||0:t.row,this._endRow=t.row===void 0?t.endRow:t.row,this._startColumn=t.column===void 0?t.startColumn||0:t.column,this._endColumn=t.column===void 0?t.endColumn:t.column,this._includeAllSlots=!!t.includeAllSlots,this._skipRows=new Set,this._row=0,this._rowIndex=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}[Symbol.iterator](){return this}next(){this._canJumpToStartRow()&&this._jumpToNonSpannedRowClosestToStartRow();let e=this._table.getChild(this._rowIndex);if(!e||this._isOverEndRow())return{done:!0,value:void 0};if(!e.is(`element`,`tableRow`))return this._rowIndex++,this.next();if(this._isOverEndColumn())return this._advanceToNextRow();let t=null,n=this._getSpanned();if(n)this._includeAllSlots&&!this._shouldSkipSlot()&&(t=this._formatOutValue(n.cell,n.row,n.column));else{let n=e.getChild(this._cellIndex);if(!n)return this._advanceToNextRow();let r=parseInt(n.getAttribute(`colspan`)||`1`),i=parseInt(n.getAttribute(`rowspan`)||`1`);(r>1||i>1)&&this._recordSpans(n,i,r),this._shouldSkipSlot()||(t=this._formatOutValue(n)),this._nextCellAtColumn=this._column+r}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,t||this.next()}skipRow(e){this._skipRows.add(e)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return this._endRow!==void 0&&this._row>this._endRow}_isOverEndColumn(){return this._endColumn!==void 0&&this._column>this._endColumn}_formatOutValue(e,t=this._row,n=this._column){return{done:!1,value:new nG(this,e,t,n)}}_shouldSkipSlot(){let e=this._skipRows.has(this._row),t=this._rowthis._endColumn;return e||t||n||r}_getSpanned(){let e=this._spannedCells.get(this._row);return e&&e.get(this._column)||null}_recordSpans(e,t,n){let r={cell:e,row:this._row,column:this._column};for(let e=this._row;e0&&!this._jumpedToStartRow}_jumpToNonSpannedRowClosestToStartRow(){let e=this._getRowLength(0);for(let t=this._startRow;!this._jumpedToStartRow;t--)e===this._getRowLength(t)&&(this._row=t,this._rowIndex=t,this._jumpedToStartRow=!0)}_getRowLength(e){return[...this._table.getChild(e).getChildren()].reduce((e,t)=>e+parseInt(t.getAttribute(`colspan`)||`1`),0)}},nG=class{cell;row;column;cellAnchorRow;cellAnchorColumn;_cellIndex;_rowIndex;_table;constructor(e,t,n,r){this.cell=t,this.row=e._row,this.column=e._column,this.cellAnchorRow=n,this.cellAnchorColumn=r,this._cellIndex=e._cellIndex,this._rowIndex=e._rowIndex,this._table=e._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute(`colspan`)||`1`)}get cellHeight(){return parseInt(this.cell.getAttribute(`rowspan`)||`1`)}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}};function rG(e){return e===`header`||e===`header-row`||e===`header-column`}function iG(e,t,n,r,i=1){t!=null&&i!=null&&t>i?r.setAttribute(e,t,n):r.removeAttribute(e,n)}function aG(e,t,n={}){let r=e.createElement(`tableCell`,n);return e.insertElement(`paragraph`,r),e.insert(r,t),r}function oG(e,t){let n=t.parent.parent,r=parseInt(n.getAttribute(`headingColumns`)||`0`),{column:i}=e.getCellLocation(t);return!!r&&i1&&(c.rowspan=l);let u=parseInt(e.getAttribute(`colspan`)||`1`);u>1&&(c.colspan=u);let d=a,f=d+s,p=[...new tG(i,{startRow:d,endRow:f,includeAllSlots:!0})],m=null,h;for(let t of p){let{row:r,column:i,cell:a}=t;a===e&&h===void 0&&(h=i),h!==void 0&&h===i&&r===f&&(m=aG(n,t.getPositionBefore(),c))}return iG(`rowspan`,s,e,n),m}function fG(e,t){let n=[],r=new tG(e);for(let e of r){let{column:r,cellWidth:i}=e,a=r+i-1;r1&&(o.colspan=s);let c=parseInt(e.getAttribute(`rowspan`)||`1`);c>1&&(o.rowspan=c);let l=aG(r,r.createPositionAfter(e),o);return iG(`colspan`,a,e,r),l}function mG(e,t,n,r,i,a){let o=parseInt(e.getAttribute(`colspan`)||`1`),s=parseInt(e.getAttribute(`rowspan`)||`1`);n+o-1>i&&iG(`colspan`,i-n+1,e,a,1),t+s-1>r&&iG(`rowspan`,r-t+1,e,a,1)}function hG(e,t,n,r,i){let a=parseInt(t.getAttribute(`headingRows`)||`0`);a>0&&iG(`headingRows`,a-n,e,i,0);let o=parseInt(t.getAttribute(`headingColumns`)||`0`);o>0&&iG(`headingColumns`,o-r,e,i,0)}function gG(e,t,n,r,i){let a=Array.from(t.getChildren()).reduce((e,t)=>t.is(`element`,`tableRow`)?e+1:e,0),o=parseInt(t.getAttribute(`footerRows`)||`0`),s=a-o;if(o<1)return;let c=0;r>=s&&(c=r-Math.max(s,n)+1),iG(`footerRows`,c,e,i,0)}function _G(e,t){let n=t.getColumns(e),r=Array(n).fill(0);for(let{column:t}of new tG(e))r[t]++;let i=r.reduce((e,t,n)=>t?e:[...e,n],[]);if(i.length>0){let n=i[i.length-1];return t.removeColumns(e,{at:n}),!0}return!1}function vG(e,t){let n=[],r=t.getRows(e);for(let t=0;t0){let r=n[n.length-1];return t.removeRows(e,{at:r}),!0}return!1}function yG(e,t){_G(e,t)||vG(e,t)}function bG(e,t){let n=Array.from(new tG(e,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));if(n.every(({cellHeight:e})=>e===1))return t.lastRow;let r=n[0].cellHeight-1;return t.lastRow+r}function xG(e,t){let n=Array.from(new tG(e,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));if(n.every(({cellWidth:e})=>e===1))return t.lastColumn;let r=n[0].cellWidth-1;return t.lastColumn+r}function SG(e){for(let t of e.getChildren())if(t.is(`element`,`table`))return t}function CG(){return e=>{e.on(`element:figure`,(e,t,n)=>{if(!n.consumable.test(t.viewItem,{name:!0,classes:`table`}))return;let r=SG(t.viewItem);if(!r||!n.consumable.test(r,{name:!0}))return;n.consumable.consume(t.viewItem,{name:!0,classes:`table`});let i=n.convertItem(r,t.modelCursor);if(!i.modelRange){n.consumable.revert(t.viewItem,{name:!0,classes:`table`});return}let a=gT(i.modelRange.getItems());if(!a||!a.is(`element`,`table`)){n.consumable.revert(t.viewItem,{name:!0,classes:`table`}),i.modelRange.isCollapsed||(t.modelRange=i.modelRange,t.modelCursor=i.modelCursor);return}n.convertChildren(t.viewItem,n.writer.createPositionAt(a,`end`)),n.updateConversionResult(a,t)})}}function wG(e){return t=>{t.on(`element:table`,(t,n,r)=>{let i=n.viewItem;if(!r.consumable.test(i,{name:!0}))return;let{rows:a,headingRows:o,headingColumns:s,footerRows:c}=DG(i),l={};s&&(l.headingColumns=s),o&&(l.headingRows=o),e.enableFooters&&c&&(l.footerRows=c);let u=r.writer.createElement(`table`,l);if(r.safeInsert(u,n.modelCursor)){if(r.consumable.consume(i,{name:!0}),a.forEach(e=>r.convertItem(e,r.writer.createPositionAt(u,`end`))),r.convertChildren(i,r.writer.createPositionAt(u,`end`)),u.isEmpty){let e=r.writer.createElement(`tableRow`);r.writer.insert(e,r.writer.createPositionAt(u,`end`)),aG(r.writer,r.writer.createPositionAt(e,`end`))}r.updateConversionResult(u,n)}})}}function TG(){return e=>{e.on(`element:tr`,(e,t)=>{t.viewItem.isEmpty&&t.modelCursor.index==0&&e.stop()},{priority:`high`})}}function EG(e){return t=>{t.on(`element:${e}`,(e,t,{writer:n})=>{if(!t.modelRange)return;let r=t.modelRange.start.nodeAfter,i=n.createPositionAt(r,0);if(t.viewItem.isEmpty){n.insertElement(`paragraph`,i);return}let a=Array.from(r.getChildren());if(a.every(e=>e.is(`element`,`$marker`))){let e=n.createElement(`paragraph`);n.insert(e,n.createPositionAt(r,0));for(let t of a)n.move(n.createRangeOn(t),n.createPositionAt(e,`end`))}},{priority:`low`})}}function DG(e){let t,n=!0,r=[],i=[],a=[],o=null,s=null,c=Array.from(e.getChildren());for(let e=0;ee.is(`element`,`tr`)),u=null,d=null;for(let f of l){let p=Array.from(f.getChildren()).filter(e=>e.is(`element`,`td`)||e.is(`element`,`th`));if(t.name===`tfoot`){s||={element:t,rows:l},n=!1;let r=s.element===t;if(!r&&d===null)for(let t=e;t0&&(u===null||p.length===u)&&p.every(e=>e.is(`element`,`th`))&&n?(r.push(f),n=!0):(i.push(f),n=!1),u=Math.max(u||0,p.length)}}let l=OG(i);for(let e of l){let n=0;for(;n{let r=[],i=Array.from(e.getChildren()).filter(e=>e.name===`th`||e.name===`td`),a=new Map;for(;i.length||r.length0)r.push(e.cell);else{let e=i.shift();if(e){let t=parseInt(e.getAttribute(`colspan`)||`1`),n=parseInt(e.getAttribute(`rowspan`)||`1`);for(let i=0;i1&&a.set(r.length,{cell:e,remaining:n-1}),r.push(e)}else{r.push(null);continue}}}for(let[e,n]of t.entries())--n.remaining,n.remaining>0&&!a.has(e)&&a.set(e,n);return t=a,n=Math.max(n,r.length),r});for(let e of r)for(;e.lengthe.is(`element`,`tableColumnGroup`))}function AG(e){let t=kG(e);return t?Array.from(t.getChildren()):[]}var jG=class extends Z{static get pluginName(){return`TableUtils`}static get isOfficialPlugin(){return!0}init(){this.decorate(`insertColumns`),this.decorate(`insertRows`)}getCellLocation(e){let t=e.parent,n=t.parent,r=new tG(n,{row:n.getChildIndex(t)});for(let{cell:t,row:n,column:i}of r)if(t===e)return{row:n,column:i}}createTable(e,t){let n=e.createElement(`table`);return MG(e,n,0,t.rows||2,t.columns||2),t.footerRows&&this.setFooterRowsCount(e,n,t.footerRows),t.headingRows&&this.setHeadingRowsCount(e,n,t.headingRows),t.headingColumns&&this.setHeadingColumnsCount(e,n,t.headingColumns),n}insertRows(e,t={}){let n=this.editor.model,r=t.at||0,i=t.rows||1,a=t.copyStructureFromAbove!==void 0,o=t.copyStructureFromAbove?r-1:r,s=cG(this.editor),c=!!this.editor.config.get(`table.tableCellProperties.scopedHeaders`),l=this.getRows(e),u=this.getColumns(e);if(r>l)throw new K(`tableutils-insertrows-insert-out-of-range`,this,{options:t});n.change(t=>{let n=e.getAttribute(`headingRows`)||0,d=e.getAttribute(`footerRows`)||0;if(n>r&&(n+=i),d&&r>l-d&&(d+=i),!a&&(r===0||r===l)){let n=MG(t,e,r,i,u);if(s)for(let i=0;i0){let i=aG(t,u,o>1?{colspan:o}:void 0);s&&HG({table:e,writer:t,cell:i,row:r+n,column:a,scopedHeaders:c})}a+=Math.abs(o)-1}}}this.setFooterRowsCount(t,e,d),this.setHeadingRowsCount(t,e,n,{updateCellType:!1})})}insertColumns(e,t={}){let n=this.editor.model,r=t.at||0,i=t.columns||1,a=cG(this.editor),o=!!this.editor.config.get(`table.tableCellProperties.scopedHeaders`);n.change(t=>{let n=e.getAttribute(`headingColumns`);ri-1)throw new K(`tableutils-removerows-row-index-out-of-range`,this,{table:e,options:t});n.change(t=>{let n={first:a,last:o},{cellsToMove:r,cellsToTrim:s}=RG(e,n);r.size&&zG(e,o+1,r,t);for(let n=o;n>=a;n--)t.remove(e.getChild(n));for(let{rowspan:e,cell:n}of s)iG(`rowspan`,e,n,t);if(IG(e,n,t),LG(e,i,n,t),_G(e,this)||vG(e,this),cG(this.editor)){let n=e.getAttribute(`headingRows`)||0,r=this.getRows(e);for(;n{FG(e,{first:r,last:a},t);let n=AG(e);for(let i=a;i>=r;i--){for(let{cell:n,column:r,cellWidth:a}of[...new tG(e)])r<=i&&a>1&&r+a>i?iG(`colspan`,a-1,n,t):r===i&&t.remove(n);if(n[i]){let e=i===0?n[1]:n[i-1],r=parseFloat(n[i].getAttribute(`columnWidth`)),a=parseFloat(e.getAttribute(`columnWidth`));t.remove(n[i]),t.setAttribute(`columnWidth`,r+a+`%`,e)}}if(vG(e,this)||_G(e,this),cG(this.editor)){let n=e.getAttribute(`headingColumns`)||0,r=this.getColumns(e);for(;n{if(a>1){let{newCellsSpan:r,updatedSpan:o}=PG(a,t);iG(`colspan`,o,e,n);let s={};r>1&&(s.colspan=r),i>1&&(s.rowspan=i),NG(a>t?t-1:a-1,n,n.createPositionAfter(e),s)}if(at===e),l=s.filter(({cell:t,cellWidth:n,column:r})=>{let i=t!==e&&r===c,a=rc;return i||a});for(let{cell:e,cellWidth:t}of l)n.setAttribute(`colspan`,t+o,e);let u={};i>1&&(u.rowspan=i),NG(o,n,n.createPositionAfter(e),u);let d=r.getAttribute(`headingColumns`)||0;d>c&&iG(`headingColumns`,d+o,r,n)}})}splitCellHorizontally(e,t=2){let n=this.editor.model,r=e.parent,i=r.parent,a=i.getChildIndex(r),o=parseInt(e.getAttribute(`rowspan`)||`1`),s=parseInt(e.getAttribute(`colspan`)||`1`);n.change(n=>{if(o>1){let r=[...new tG(i,{startRow:a,endRow:a+o-1,includeAllSlots:!0})],{newCellsSpan:c,updatedSpan:l}=PG(o,t);iG(`rowspan`,l,e,n);let{column:u}=r.find(({cell:t})=>t===e),d={};c>1&&(d.rowspan=c),s>1&&(d.colspan=s);let f=0;for(let e of r){let{column:t,row:r}=e,i=r>=a+l,o=t===u;f>=c&&o&&(f=0),i&&o&&(f||NG(1,n,e.getPositionBefore(),d),f++)}}if(oa){let e=i+r;n.setAttribute(`rowspan`,e,t)}let u={};s>1&&(u.colspan=s),MG(n,i,a+1,r,1,u);let d=i.getAttribute(`headingRows`)||0;d>a&&iG(`headingRows`,d+r,i,n);let f=i.getAttribute(`footerRows`)||0;c-f<=a&&iG(`footerRows`,f+r,i,n)}})}getColumns(e){return[...e.getChild(0).getChildren()].filter(e=>e.is(`element`,`tableCell`)).reduce((e,t)=>e+parseInt(t.getAttribute(`colspan`)||`1`),0)}getRows(e){return Array.from(e.getChildren()).reduce((e,t)=>t.is(`element`,`tableRow`)?e+1:e,0)}createTableWalker(e,t={}){return new tG(e,t)}getSelectedTableCells(e){let t=[];for(let n of this.sortRanges(e.getRanges())){let e=n.getContainedElement();e&&e.is(`element`,`tableCell`)&&t.push(e)}return t}setFooterRowsCount(e,t,n){if(!this.editor.config.get(`table.enableFooters`))return;let r=t.getAttribute(`headingRows`)||0,i=this.getRows(t),a=Math.min(n,i);if(iG(`footerRows`,a,t,e,0),r+a>i){let n=i-a;this.setHeadingRowsCount(e,t,n)}}setHeadingRowsCount(e,t,n,r={}){let{updateCellType:i=!0,resetFormerHeadingCells:a=!0,autoExpand:o=!0}=r,s=this.getRows(t),c=!!this.editor.config.get(`table.tableCellProperties.scopedHeaders`),l=t.getAttribute(`headingRows`)||0,u=Math.min(n,s);if(u===l)return;iG(`headingRows`,u,t,e,0);let d=t.getAttribute(`footerRows`)||0;if(u+d>s){let n=s-u;this.setFooterRowsCount(e,t,n)}if(cG(this.editor)){if(i){for(let{cell:n,row:r,column:i}of new tG(t,{endRow:u-1}))HG({table:t,writer:e,cell:n,row:r,column:i,scopedHeaders:c});if(a&&ul){for(;uc){for(;ue.parent.index);return this._getFirstLastIndexesObject(t)}getColumnIndexes(e){let t=[...new tG(e[0].findAncestor(`table`))].filter(t=>e.includes(t.cell)).map(e=>e.column);return this._getFirstLastIndexesObject(t)}isSelectionRectangular(e){if(e.length<2||!this._areCellInTheSameTableSection(e))return!1;let t=new Set,n=new Set,r=0;for(let i of e){let{row:e,column:a}=this.getCellLocation(i),o=parseInt(i.getAttribute(`rowspan`))||1,s=parseInt(i.getAttribute(`colspan`))||1;t.add(e),n.add(a),o>1&&t.add(e+o-1),s>1&&n.add(a+s-1),r+=o*s}return VG(t,n)==r}sortRanges(e){return Array.from(e).sort(BG)}_getFirstLastIndexesObject(e){let t=e.sort((e,t)=>e-t);return{first:t[0],last:t[t.length-1]}}_areCellInTheSameTableSection(e){let t=e[0].findAncestor(`table`),n=this.getRows(t),r=this.getRowIndexes(e),i=parseInt(t.getAttribute(`headingRows`))||0,a=parseInt(t.getAttribute(`footerRows`))||0;if(!this._areIndexesInSameHeadingSection(r,i)||!this._areIndexesInSameFooterSection(r,n,a))return!1;let o=this.getColumnIndexes(e),s=parseInt(t.getAttribute(`headingColumns`))||0;return this._areIndexesInSameHeadingSection(o,s)}_areIndexesInSameHeadingSection({first:e,last:t},n){return e=i==t>=i}};function MG(e,t,n,r,i,a={}){let o=[];for(let s=0;s=o&&iG(`footerRows`,n>=o?a-(r-n+1):t-1-r,e,i,0)}function RG(e,{first:t,last:n}){let r=new Map,i=[];for(let{row:a,column:o,cellHeight:s,cell:c}of new tG(e,{endRow:n})){let e=a+s-1;if(a>=t&&a<=n&&e>n){let e=s-(n-a+1);r.set(o,{cell:c,rowspan:e})}if(a=t){let r;r=e>=n?n-t+1:e-t+1,i.push({cell:c,rowspan:s-r})}}return{cellsToMove:r,cellsToTrim:i}}function zG(e,t,n,r){let i=[...new tG(e,{includeAllSlots:!0,row:t})],a=e.getChild(t),o;for(let{column:e,cell:t,isAnchor:s}of i)if(n.has(e)){let{cell:t,rowspan:i}=n.get(e),s=o?r.createPositionAfter(o):r.createPositionAt(a,0);r.move(r.createRangeOn(t),s),iG(`rowspan`,i,t,r),o=t}else s&&(o=t)}function BG(e,t){let n=e.start,r=t.start;return n.isBefore(r)?-1:1}function VG(e,t){let n=Array.from(e.values()),r=Array.from(t.values()),i=Math.max(...n),a=Math.min(...n),o=Math.max(...r),s=Math.min(...r);return(i-a+1)*(o-s+1)}function HG({writer:e,table:t,row:n,column:r,cell:i,scopedHeaders:a}){let o=t.getAttribute(`headingRows`)||0,s=t.getAttribute(`headingColumns`)||0;if(n>=o&&r>=s){e.removeAttribute(`tableCellType`,i);return}let c=`header`;a&&(c=n{let i=n.getAttribute(`headingRows`)||0,a=n.getAttribute(`footerRows`)||0,o=r.createContainerElement(`table`,null,[]),s=r.createContainerElement(`figure`,{class:`table`},o),c=e.getRows(n);i>0&&r.insert(r.createPositionAt(o,`end`),r.createContainerElement(`thead`,null,r.createSlot(e=>e.is(`element`,`tableRow`)&&e.indexe.is(`element`,`tableRow`)&&e.index>=i&&e.index0&&r.insert(r.createPositionAt(o,`end`),r.createContainerElement(`tfoot`,null,r.createSlot(e=>e.is(`element`,`tableRow`)&&e.index>=c-a)));for(let{positionOffset:e,filter:n}of t.additionalSlots)r.insert(r.createPositionAt(o,e),r.createSlot(n));return r.insert(r.createPositionAt(o,`after`),r.createSlot(e=>!e.is(`element`,`tableRow`)&&!t.additionalSlots.some(({filter:t})=>t(e)))),t.asWidget?XG(s,r):s}}function KG(){return(e,{writer:t})=>e.isEmpty?t.createEmptyElement(`tr`):t.createContainerElement(`tr`)}function qG(e){return(n,{writer:r})=>{if(e.cellTypeEnabled?.())return t(r,rG(n.getAttribute(`tableCellType`))?`th`:`td`);let i=n.parent,a=i.parent,o=new tG(a,{row:a.getChildIndex(i)}),s=a.getAttribute(`headingRows`)||0,c=a.getAttribute(`headingColumns`)||0,l=null;for(let e of o)if(e.cell==n){l=t(r,e.row{if(!t.parent.is(`element`,`tableCell`)||!YG(t))return null;if(e.asWidget)return n.createContainerElement(`span`,{class:`ck-table-bogus-paragraph`});{let e=n.createContainerElement(`p`);return n.setCustomProperty(`dataPipeline:transparentRendering`,!0,e),e}}}function YG(e){return e.parent.childCount==1&&!ZG(e)}function XG(e,t){return t.setCustomProperty(`table`,!0,e),kB(e,t,{hasSelectionHandle:!0})}function ZG(e){for(let t of e.getAttributeKeys())if(!(t.startsWith(`selection:`)||t==`htmlEmptyBlock`))return!0;return!1}function QG(e){return(t,n)=>{let r=e.plugins.has(`PlainTableOutput`),i=n.options.isClipboardPipeline,a=nK(e,t);return r||a||i?eK(t,n,e):null}}function $G(e){return(t,{writer:n,options:r})=>{let i=e.plugins.has(`PlainTableOutput`),a=r.isClipboardPipeline,o=nK(e,t);return(i||o||a)&&t.parent.name===`table`?n.createContainerElement(`caption`):null}}function eK(e,t,n){let r=n.plugins.get(jG),i=t.writer,a=r.getRows(e),o=e.getAttribute(`headingRows`)||0,s=e.getAttribute(`footerRows`)||0,c=a-s,l=i.createSlot(e=>e.is(`element`,`tableRow`)&&e.indexe.is(`element`,`tableRow`)&&e.index>=o&&e.indexe.is(`element`,`tableRow`)&&e.index>=c),f=i.createSlot(e=>!e.is(`element`,`tableRow`)),p=i.createContainerElement(`thead`,null,l),m=i.createContainerElement(`tbody`,null,u),h=i.createContainerElement(`tfoot`,null,d),g=[];o&&g.push(p),o+sr.on(`attribute:${n}:table`,(n,r,i)=>{let{item:a,attributeNewValue:o}=r,{mapper:s,writer:c}=i,l=e.plugins.has(`PlainTableOutput`),u=i.options.isClipboardPipeline,d=nK(e,a);if(!(l||d||u)||!i.consumable.consume(a,n.name))return;let f=s.toViewElement(a);o?c.setStyle(t,o,f):c.removeStyle(t,f)},{priority:`high`}))}function nK(e,t){let n=e.plugins.has(`TableLayoutEditing`),r=e.config.get(`table.tableLayout.stripFigureFromContentTable`)??!1,i=t.findAncestor(`table`,{includeSelf:!0})?.getAttribute(`tableType`);return n&&(r||i===`layout`)}var rK=class extends GN{refresh(){let e=this.editor.model,t=e.document.selection,n=e.schema;this.isEnabled=iK(t,n)}execute(e={}){let t=this.editor,n=t.model,r=t.plugins.get(`TableUtils`),i=!!t.config.get(`table.enableFooters`),a=t.config.get(`table.defaultHeadings.rows`),o=t.config.get(`table.defaultHeadings.columns`),s=t.config.get(`table.defaultFooters`);e.headingRows===void 0&&a&&(e.headingRows=a),e.headingColumns===void 0&&o&&(e.headingColumns=o),i&&e.footerRows===void 0&&s&&(e.footerRows=s),!i&&`footerRows`in e&&delete e.footerRows,n.change(t=>{let i=r.createTable(t,e);n.insertObject(i,null,null,{findOptimalPosition:`auto`}),t.setSelection(t.createPositionAt(i.getNodeByPath([0,0,0]),0))})}};function iK(e,t){let n=e.getFirstPosition().parent,r=n===n.root?n:n.parent;return t.checkChild(r,`table`)}var aK=class extends GN{order;constructor(e,t={}){super(e),this.order=t.order||`below`}refresh(){let e=this.editor.model.document.selection,t=!!this.editor.plugins.get(`TableUtils`).getSelectionAffectedTableCells(e).length;this.isEnabled=t}execute(){let e=this.editor,t=e.model.document.selection,n=e.plugins.get(`TableUtils`),r=this.order===`above`,i=n.getSelectionAffectedTableCells(t),a=n.getRowIndexes(i),o=r?a.first:a.last,s=i[0].findAncestor(`table`);n.insertRows(s,{at:r?o:o+1,copyStructureFromAbove:!r})}},oK=class extends GN{order;constructor(e,t={}){super(e),this.order=t.order||`right`}refresh(){let e=this.editor.model.document.selection,t=!!this.editor.plugins.get(`TableUtils`).getSelectionAffectedTableCells(e).length;this.isEnabled=t}execute(){let e=this.editor,t=e.model.document.selection,n=e.plugins.get(`TableUtils`),r=this.order===`left`,i=n.getSelectionAffectedTableCells(t),a=n.getColumnIndexes(i),o=r?a.first:a.last,s=i[0].findAncestor(`table`);n.insertColumns(s,{columns:1,at:r?o:o+1})}},sK=class extends GN{direction;constructor(e,t={}){super(e),this.direction=t.direction||`horizontally`}refresh(){let e=this.editor.plugins.get(`TableUtils`).getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.length===1}execute(){let e=this.editor.plugins.get(`TableUtils`),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];this.direction===`horizontally`?e.splitCellHorizontally(t,2):e.splitCellVertically(t,2)}},cK=class extends GN{direction;isHorizontal;constructor(e,t){super(e),this.direction=t.direction,this.isHorizontal=this.direction==`right`||this.direction==`left`}refresh(){let e=this._getMergeableCell();this.value=e,this.isEnabled=!!e}execute(){let e=this.editor.model,t=e.document,n=this.editor.plugins.get(`TableUtils`).getTableCellsContainingSelection(t.selection)[0],r=this.value,i=this.direction;e.change(e=>{let t=i==`right`||i==`down`,a=t?n:r,o=t?r:n,s=o.parent;dK(o,a,e);let c=this.isHorizontal?`colspan`:`rowspan`,l=parseInt(n.getAttribute(c)||`1`),u=parseInt(r.getAttribute(c)||`1`);e.setAttribute(c,l+u,a),e.setSelection(e.createRangeIn(a));let d=this.editor.plugins.get(`TableUtils`);yG(s.findAncestor(`table`),d)})}_getMergeableCell(){let e=this.editor.model.document,t=this.editor.plugins.get(`TableUtils`),n=t.getTableCellsContainingSelection(e.selection)[0];if(!n)return;let r=this.isHorizontal?lK(n,this.direction,t):uK(n,this.direction,t);if(!r)return;let i=this.isHorizontal?`rowspan`:`colspan`,a=parseInt(n.getAttribute(i)||`1`);if(parseInt(r.getAttribute(i)||`1`)===a)return r}};function lK(e,t,n){let r=e.parent.parent,i=t==`right`?e.nextSibling:e.previousSibling,a=(r.getAttribute(`headingColumns`)||0)>0;if(!i)return;let o=t==`right`?e:i,s=t==`right`?i:e,{column:c}=n.getCellLocation(o),{column:l}=n.getCellLocation(s),u=parseInt(o.getAttribute(`colspan`)||`1`),d=oG(n,o),f=oG(n,s);if(!(a&&d!=f))return c+u===l?i:void 0}function uK(e,t,n){let r=e.parent,i=r.parent,a=i.getChildIndex(r),o=n.getRows(i);if(t==`down`&&a===o-1||t==`up`&&a===0)return null;let s=parseInt(e.getAttribute(`rowspan`)||`1`),c=i.getAttribute(`headingRows`)||0,l=i.getAttribute(`footerRows`)||0,u=o-l,d=t==`up`&&a===u,f=t==`up`&&a===c,p=t==`down`&&a+s===c,m=t==`down`&&a+s===u;if(c&&(p||f)||l&&(d||m))return null;let h=parseInt(e.getAttribute(`rowspan`)||`1`),g=t==`down`?a+h:a,_=[...new tG(i,{endRow:g})],v=_.find(t=>t.cell===e).column,y=_.find(({row:e,cellHeight:n,column:r})=>r===v?t==`down`?e===g:g===e+n:!1);return y&&y.cell?y.cell:null}function dK(e,t,n){fK(e)||(fK(t)&&n.remove(n.createRangeIn(t)),n.move(n.createRangeIn(e),n.createPositionAt(t,`end`))),n.remove(e)}function fK(e){let t=e.getChild(0);return e.childCount==1&&t.is(`element`,`paragraph`)&&t.isEmpty}var pK=class extends GN{refresh(){let e=this.editor.plugins.get(`TableUtils`),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection),n=t[0];if(n){let r=n.findAncestor(`table`),i=e.getRows(r)-1,a=e.getRowIndexes(t),o=a.first===0&&a.last===i;this.isEnabled=!o}else this.isEnabled=!1}execute(){let e=this.editor.model,t=this.editor.plugins.get(`TableUtils`),n=t.getSelectionAffectedTableCells(e.document.selection),r=t.getRowIndexes(n),i=n[0],a=i.findAncestor(`table`),o=t.getCellLocation(i).column;e.change(e=>{let n=r.last-r.first+1;t.removeRows(a,{at:r.first,rows:n});let i=mK(a,r.first,o,t.getRows(a));e.setSelection(e.createPositionAt(i,0))})}};function mK(e,t,n,r){let i=e.getChild(Math.min(t,r-1)),a=i.getChild(0),o=0;for(let e of i.getChildren()){if(o>n)return a;a=e,o+=parseInt(e.getAttribute(`colspan`)||`1`)}return a}var hK=class extends GN{refresh(){let e=this.editor.plugins.get(`TableUtils`),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection),n=t[0];if(n){let r=n.findAncestor(`table`),i=e.getColumns(r),{first:a,last:o}=e.getColumnIndexes(t);this.isEnabled=o-ae.cell===t).column,last:i.find(e=>e.cell===n).column},o=gK(i,t,n,a);this.editor.model.change(t=>{let n=a.last-a.first+1;e.removeColumns(r,{at:a.first,columns:n}),t.setSelection(t.createPositionAt(o,0))})}};function gK(e,t,n,r){return parseInt(n.getAttribute(`colspan`)||`1`)>1?n:t.previousSibling||n.nextSibling?n.nextSibling||t.previousSibling:r.first?e.reverse().find(({column:e})=>ee>r.last).cell}function _K(e,t){let n=t.getSelectionAffectedTableCells(e),r=n[0],i=n.pop(),a=[r,i];return r.isBefore(i)?a:a.reverse()}var vK=class extends GN{refresh(){let e=this.editor.plugins.get(`TableUtils`),t=this.editor.model,n=e.getSelectionAffectedTableCells(t.document.selection);if(n.length===0){this.isEnabled=!1,this.value=!1;return}let r=n[0].findAncestor(`table`);this.isEnabled=t.schema.checkAttribute(r,`headingRows`),this.value=n.every(e=>this._isInHeading(e,e.parent.parent))}execute(e={}){if(e.forceValue===this.value)return;let t=this.editor.plugins.get(`TableUtils`),n=this.editor.model,r=t.getSelectionAffectedTableCells(n.document.selection),i=r[0].findAncestor(`table`),{first:a,last:o}=t.getRowIndexes(r),s=this.value?a:o+1,c=i.getAttribute(`headingRows`)||0;n.change(e=>{if(s){let t=uG(i,s,s>c?c:0);for(let{cell:n}of t)dG(n,s,e)}t.setHeadingRowsCount(e,i,s)})}_isInHeading(e,t){let n=parseInt(t.getAttribute(`headingRows`)||`0`);return!!n&&e.parent.indexthis._isInFooter(e,r))}execute(e={}){if(e.forceValue===this.value)return;let t=this.editor.plugins.get(`TableUtils`),n=this.editor.model,r=t.getSelectionAffectedTableCells(n.document.selection),i=r[0].findAncestor(`table`),{first:a,last:o}=t.getRowIndexes(r),s=t.getRows(i),c=this.value?s-(o+1):s-a,l=i.getAttribute(`footerRows`)||0;n.change(e=>{if(c){let t=s-c,n=s-l,r=uG(i,t,t>n?n:0);for(let{cell:n}of r)dG(n,t,e)}t.setFooterRowsCount(e,i,c)})}_isInFooter(e,t){let n=parseInt(t.getAttribute(`footerRows`)||`0`),r=this.editor.plugins.get(`TableUtils`).getRows(t),i=e.parent.index;return!!n&&i>=r-n}},bK=class extends GN{refresh(){let e=this.editor.plugins.get(`TableUtils`),t=this.editor.model,n=e.getSelectionAffectedTableCells(t.document.selection);if(n.length===0){this.isEnabled=!1,this.value=!1;return}let r=n[0].findAncestor(`table`);this.isEnabled=t.schema.checkAttribute(r,`headingColumns`),this.value=n.every(t=>oG(e,t))}execute(e={}){if(e.forceValue===this.value)return;let t=this.editor.plugins.get(`TableUtils`),n=this.editor.model,r=t.getSelectionAffectedTableCells(n.document.selection),i=r[0].findAncestor(`table`),{first:a,last:o}=t.getColumnIndexes(r),s=this.value?a:o+1;n.change(e=>{if(s){let t=fG(i,s);for(let{cell:n,column:r}of t)pG(n,r,s,e)}t.setHeadingColumnsCount(e,i,s)})}},xK=class extends GN{refresh(){let e=this.editor.plugins.get(jG),t=e.getSelectedTableCells(this.editor.model.document.selection);this.isEnabled=e.isSelectionRectangular(t)}execute(){let e=this.editor.model,t=this.editor.plugins.get(jG);e.change(n=>{let r=t.getSelectedTableCells(e.document.selection),i=r.shift(),{mergeWidth:a,mergeHeight:o}=wK(i,r,t);iG(`colspan`,a,i,n),iG(`rowspan`,o,i,n);for(let e of r)SK(e,i,n);yG(i.findAncestor(`table`),t),n.setSelection(i,`in`)})}};function SK(e,t,n){CK(e)||(CK(t)&&n.remove(n.createRangeIn(t)),n.move(n.createRangeIn(e),n.createPositionAt(t,`end`))),n.remove(e)}function CK(e){let t=e.getChild(0);return e.childCount==1&&t.is(`element`,`paragraph`)&&t.isEmpty}function wK(e,t,n){let r=0,i=0;for(let e of t){let{row:t,column:a}=n.getCellLocation(e);r=TK(e,a,r,`colspan`),i=TK(e,t,i,`rowspan`)}let{row:a,column:o}=n.getCellLocation(e);return{mergeWidth:r-o,mergeHeight:i-a}}function TK(e,t,n,r){let i=parseInt(e.getAttribute(r)||`1`);return Math.max(n,t+i)}var EK=class extends GN{constructor(e){super(e),this.affectsData=!1}refresh(){let e=this.editor.plugins.get(`TableUtils`).getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){let e=this.editor.model,t=this.editor.plugins.get(`TableUtils`),n=t.getSelectionAffectedTableCells(e.document.selection),r=t.getRowIndexes(n),i=n[0].findAncestor(`table`),a=[];for(let t=r.first;t<=r.last;t++)for(let n of i.getChild(t).getChildren())a.push(e.createRangeOn(n));e.change(e=>{e.setSelection(a)})}},DK=class extends GN{constructor(e){super(e),this.affectsData=!1}refresh(){let e=this.editor.plugins.get(`TableUtils`).getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){let e=this.editor.plugins.get(`TableUtils`),t=this.editor.model,n=e.getSelectionAffectedTableCells(t.document.selection),r=n[0],i=n.pop(),a=r.findAncestor(`table`),o=e.getCellLocation(r),s=e.getCellLocation(i),c=Math.min(o.column,s.column),l=Math.max(o.column,s.column),u=[];for(let e of new tG(a,{startColumn:c,endColumn:l}))u.push(t.createRangeOn(e.cell));t.change(e=>{e.setSelection(u)})}};function OK(e){e.document.registerPostFixer(t=>kK(t,e))}function kK(e,t){let n=t.document.differ.getChanges(),r=!1,i=new Set;for(let t of n){let n=null;t.type==`insert`&&t.name==`table`&&(n=t.position.nodeAfter),(t.type==`insert`||t.type==`remove`)&&(t.name==`tableRow`||t.name==`tableCell`)&&(n=t.position.findAncestor(`table`)),PK(t)&&(n=t.range.start.findAncestor(`table`)),n&&!i.has(n)&&(r=AK(n,e)||r,r=jK(n,e)||r,i.add(n))}return r}function AK(e,t){let n=!1,r=MK(e);if(r.length){n=!0;for(let e of r)iG(`rowspan`,e.rowspan,e.cell,t,1)}return n}function jK(e,t){let n=!1,r=NK(e),i=[];for(let[t,n]of r.entries())!n&&e.getChild(t).is(`element`,`tableRow`)&&i.push(t);if(i.length){n=!0;for(let n of i.reverse())t.remove(e.getChild(n)),r.splice(n,1)}let a=r.filter((t,n)=>e.getChild(n).is(`element`,`tableRow`)),o=a[0];if(!a.every(e=>e===o)){let r=a.reduce((e,t)=>t>e?t:e,0);for(let[i,o]of a.entries()){let a=r-o;if(a){for(let n=0;nt.is(`element`,`tableRow`)?e+1:e,0),i=r-n,a=[];for(let{row:n,cell:o,cellHeight:s}of new tG(e)){if(s<2)continue;let e=n=i,l;if(l=e?t:c?r:i,n+s>l){let e=l-n;a.push({cell:o,rowspan:e})}}return a}function NK(e){let t=Array(e.childCount).fill(0);for(let{rowIndex:n}of new tG(e,{includeAllSlots:!0}))t[n]++;return t}function PK(e){if(e.type!==`attribute`)return!1;let t=e.attributeKey;return t===`headingRows`||t===`colspan`||t===`rowspan`}function FK(e){e.document.registerPostFixer(t=>IK(t,e))}function IK(e,t){let n=t.document.differ.getChanges(),r=!1;for(let t of n)t.type==`insert`&&t.name==`table`&&(r=LK(t.position.nodeAfter,e)||r),t.type==`insert`&&t.name==`tableRow`&&(r=RK(t.position.nodeAfter,e)||r),t.type==`insert`&&t.name==`tableCell`&&(r=zK(t.position.nodeAfter,e)||r),(t.type==`remove`||t.type==`insert`)&&BK(t)&&(r=zK(t.position.parent,e)||r);return r}function LK(e,t){let n=!1;for(let r of e.getChildren())r.is(`element`,`tableRow`)&&(n=RK(r,t)||n);return n}function RK(e,t){let n=!1;for(let r of e.getChildren())n=zK(r,t)||n;return n}function zK(e,t){if(e.childCount==0)return t.insertElement(`paragraph`,e),!0;let n=Array.from(e.getChildren()).filter(e=>e.is(`$text`));for(let e of n)t.wrap(t.createRangeOn(e),`paragraph`);return!!n.length}function BK(e){return e.position.parent.is(`element`,`tableCell`)?e.type==`insert`&&e.name==`$text`||e.type==`remove`:!1}function VK(e){let{model:t}=e,n=e.plugins.get(jG);t.document.registerPostFixer(e=>{let r=!1,i=t.document.differ.getChanges(),a=new Set;for(let e of i){let t=null;e.type==`attribute`&&(e.attributeKey==`headingRows`||e.attributeKey==`footerRows`)?t=e.range.start.nodeAfter:(e.type==`insert`&&e.name==`tableRow`||e.type==`remove`&&e.name==`tableRow`)&&(t=e.position.parent),t&&t.is(`element`,`table`)&&a.add(t)}for(let t of a)HK(n,e,t)&&(r=!0);return r})}function HK(e,t,n){let r=n.getAttribute(`headingRows`)||0,i=n.getAttribute(`footerRows`)||0,a=e.getRows(n);return r+i>a?(iG(`footerRows`,Math.max(0,a-r),n,t,0),!0):!1}function UK(e,t){let n=e.document.differ,r=new Set,i=new Set,a=new Set;for(let e of n.getChanges()){let n;if(e.type==`attribute`){let t=e.range.start.nodeAfter;if(!t||!t.is(`element`,`table`)||e.attributeKey!=`headingRows`&&e.attributeKey!=`headingColumns`&&e.attributeKey!=`footerRows`)continue;n=t}else(e.name==`tableRow`||e.name==`tableCell`)&&(n=e.position.findAncestor(`table`));if(!n)continue;e.type==`insert`&&e.name==`tableRow`&&t.mapper.toViewElement(e.position.nodeAfter)&&r.add(e.position.nodeAfter);let o=n.getAttribute(`headingRows`)||0,s=n.getAttribute(`headingColumns`)||0,c=new tG(n);for(let e of c){let n=t.mapper.toViewElement(e.cell);if(!n||!n.is(`element`))continue;let c=e.rowGK(e,t.mapper));for(let e of n)t.reconvertItem(e)}}function GK(e,t){if(!e.is(`element`,`paragraph`))return!1;let n=t.toViewElement(e);return n?YG(e)!==n.is(`element`,`span`):!1}var KK=class extends Z{_additionalSlots;static get pluginName(){return`TableEditing`}static get isOfficialPlugin(){return!0}static get requires(){return[jG]}constructor(e){super(e),this._additionalSlots=[]}init(){let e=this.editor,t=e.model,n=t.schema,r=e.conversion,i=e.plugins.get(jG);e.config.define(`table.enableFooters`,!1);let a=!!e.config.get(`table.enableFooters`);n.register(`table`,{inheritAllFrom:`$blockObject`,allowAttributes:[`headingRows`,`headingColumns`,...a?[`footerRows`]:[]]}),n.register(`tableRow`,{allowIn:`table`,isLimit:!0}),n.register(`tableCell`,{allowContentOf:`$container`,allowIn:`tableRow`,allowAttributes:[`colspan`,`rowspan`],isLimit:!0,isSelectable:!0}),r.for(`upcast`).add(CG()),r.for(`upcast`).add(wG({enableFooters:a})),r.for(`editingDowncast`).elementToStructure({model:{name:`table`,attributes:[`headingRows`,...a?[`footerRows`]:[]]},view:GG(i,{asWidget:!0,additionalSlots:this._additionalSlots})}),r.for(`dataDowncast`).elementToStructure({model:{name:`table`,attributes:[`headingRows`,...a?[`footerRows`]:[]]},view:GG(i,{additionalSlots:this._additionalSlots})}),r.for(`upcast`).elementToElement({model:`tableRow`,view:`tr`}),r.for(`upcast`).add(TG()),r.for(`downcast`).elementToElement({model:`tableRow`,view:KG()}),r.for(`upcast`).elementToElement({model:`tableCell`,view:`td`}),r.for(`upcast`).elementToElement({model:`tableCell`,view:`th`}),r.for(`upcast`).add(EG(`td`)),r.for(`upcast`).add(EG(`th`)),r.for(`editingDowncast`).elementToElement({model:`tableCell`,view:qG({asWidget:!0,cellTypeEnabled:()=>cG(this.editor)})}),r.for(`dataDowncast`).elementToElement({model:`tableCell`,view:qG({cellTypeEnabled:()=>cG(this.editor)})}),r.for(`editingDowncast`).elementToElement({model:`paragraph`,view:JG({asWidget:!0}),converterPriority:`high`}),r.for(`dataDowncast`).elementToElement({model:`paragraph`,view:JG(),converterPriority:`high`}),r.for(`downcast`).attributeToAttribute({model:`colspan`,view:`colspan`}),r.for(`upcast`).attributeToAttribute({model:{key:`colspan`,value:qK(`colspan`)},view:`colspan`}),r.for(`downcast`).attributeToAttribute({model:`rowspan`,view:`rowspan`}),r.for(`upcast`).attributeToAttribute({model:{key:`rowspan`,value:qK(`rowspan`)},view:`rowspan`}),this._addPlainTableOutputConverters(),e.config.define(`table.defaultHeadings.rows`,0),e.config.define(`table.defaultHeadings.columns`,0),e.config.define(`table.defaultFooters`,0),e.config.define(`table.showHiddenBorders`,!0),e.config.get(`table.showHiddenBorders`)&&e.editing.view.change(t=>{for(let n of e.editing.view.document.roots)t.addClass(`ck-table-show-hidden-borders`,n)}),e.commands.add(`insertTable`,new rK(e)),e.commands.add(`insertTableRowAbove`,new aK(e,{order:`above`})),e.commands.add(`insertTableRowBelow`,new aK(e,{order:`below`})),e.commands.add(`insertTableColumnLeft`,new oK(e,{order:`left`})),e.commands.add(`insertTableColumnRight`,new oK(e,{order:`right`})),e.commands.add(`removeTableRow`,new pK(e)),e.commands.add(`removeTableColumn`,new hK(e)),e.commands.add(`splitTableCellVertically`,new sK(e,{direction:`vertically`})),e.commands.add(`splitTableCellHorizontally`,new sK(e,{direction:`horizontally`})),e.commands.add(`mergeTableCells`,new xK(e)),e.commands.add(`mergeTableCellRight`,new cK(e,{direction:`right`})),e.commands.add(`mergeTableCellLeft`,new cK(e,{direction:`left`})),e.commands.add(`mergeTableCellDown`,new cK(e,{direction:`down`})),e.commands.add(`mergeTableCellUp`,new cK(e,{direction:`up`})),e.commands.add(`setTableColumnHeader`,new bK(e)),e.commands.add(`setTableRowHeader`,new vK(e)),a&&e.commands.add(`setTableFooterRow`,new yK(e)),e.commands.add(`selectTableRow`,new EK(e)),e.commands.add(`selectTableColumn`,new DK(e)),OK(t),FK(t),a&&VK(e),this.listenTo(t.document,`change:data`,()=>{cG(e)||UK(t,e.editing),WK(t,e.editing)})}registerAdditionalSlot(e){this._additionalSlots.push(e)}_addPlainTableOutputConverters(){let e=this.editor;e.conversion.for(`dataDowncast`).elementToStructure({model:`table`,view:QG(e),converterPriority:`high`}),e.plugins.has(`TableCaptionEditing`)&&e.conversion.for(`dataDowncast`).elementToElement({model:`caption`,view:$G(e),converterPriority:`high`}),e.plugins.has(`TablePropertiesEditing`)&&tK(e)}};function qK(e){return t=>{let n=parseInt(t.getAttribute(e));return Number.isNaN(n)||n<=0?null:n}}var JK=class extends ${items;keystrokes;focusTracker;constructor(e){super(e);let t=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new CT,this.focusTracker=new vT,this.set(`rows`,0),this.set(`columns`,0),this.bind(`label`).to(this,`columns`,this,`rows`,(e,t)=>`${t} × ${e}`),this.setTemplate({tag:`div`,attributes:{class:[`ck`]},children:[{tag:`div`,attributes:{class:[`ck-insert-table-dropdown__grid`]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":t.to(`boxover`)},children:this.items},{tag:`div`,attributes:{class:[`ck`,`ck-insert-table-dropdown__label`],"aria-hidden":!0},children:[{text:t.to(`label`)}]}],on:{mousedown:t.to(e=>{e.preventDefault()}),click:t.to(()=>{this.fire(`execute`)})}}),this.on(`boxover`,(e,t)=>{let{row:n,column:r}=t.target.dataset;this.items.get((parseInt(n,10)-1)*10+(parseInt(r,10)-1)).focus()}),this.focusTracker.on(`change:focusedElement`,(e,t,n)=>{if(!n)return;let{row:r,column:i}=n.dataset;this.set({rows:parseInt(r),columns:parseInt(i)})}),this.on(`change:columns`,()=>this._highlightGridBoxes()),this.on(`change:rows`,()=>this._highlightGridBoxes())}render(){super.render(),pI({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(let e of this.items)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element)}reset(){this.set({rows:1,columns:1})}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){let e=this.rows,t=this.columns;this.items.map((n,r)=>{let i=Math.floor(r/10),a=r%10,o=i{let r=e.commands.get(`insertTable`),i=DL(n);i.bind(`isEnabled`).to(r),i.buttonView.set({icon:iF,label:t(`Insert table`),tooltip:!0});let a;return i.on(`change:isOpen`,()=>{a||(a=new JK(n),i.panelView.children.add(a),a.delegate(`execute`).to(i),i.on(`execute`,()=>{e.execute(`insertTable`,{rows:a.rows,columns:a.columns}),e.editing.view.focus()}))}),i}),e.ui.componentFactory.add(`menuBar:insertTable`,n=>{let r=e.commands.get(`insertTable`),i=new HR(n),a=new JK(n);return a.delegate(`execute`).to(i),i.on(`change:isOpen`,(e,t,n)=>{n||a.reset()}),a.on(`execute`,()=>{e.execute(`insertTable`,{rows:a.rows,columns:a.columns}),e.editing.view.focus()}),i.buttonView.set({label:t(`Table`),icon:iF}),i.panelView.children.add(a),i.bind(`isEnabled`).to(r),i}),e.ui.componentFactory.add(`tableColumn`,e=>{let r=[{type:`switchbutton`,model:{commandName:`setTableColumnHeader`,label:t(`Header column`),bindIsOn:!0}},{type:`separator`},{type:`button`,model:{commandName:n?`insertTableColumnLeft`:`insertTableColumnRight`,label:t(`Insert column left`)}},{type:`button`,model:{commandName:n?`insertTableColumnRight`:`insertTableColumnLeft`,label:t(`Insert column right`)}},{type:`button`,model:{commandName:`removeTableColumn`,label:t(`Delete column`)}},{type:`button`,model:{commandName:`selectTableColumn`,label:t(`Select column`)}}];return this._prepareDropdown(t(`Column`),tF,r,e)}),e.ui.componentFactory.add(`tableRow`,e=>{let n=[{type:`switchbutton`,model:{commandName:`setTableRowHeader`,label:t(`Header row`),bindIsOn:!0}},r&&{type:`switchbutton`,model:{commandName:`setTableFooterRow`,label:t(`Footer row`),bindIsOn:!0}},{type:`separator`},{type:`button`,model:{commandName:`insertTableRowAbove`,label:t(`Insert row above`)}},{type:`button`,model:{commandName:`insertTableRowBelow`,label:t(`Insert row below`)}},{type:`button`,model:{commandName:`removeTableRow`,label:t(`Delete row`)}},{type:`button`,model:{commandName:`selectTableRow`,label:t(`Select row`)}}].filter(Boolean);return this._prepareDropdown(t(`Row`),rF,n,e)}),e.ui.componentFactory.add(`mergeTableCells`,e=>{let r=[{type:`button`,model:{commandName:`mergeTableCellUp`,label:t(`Merge cell up`)}},{type:`button`,model:{commandName:n?`mergeTableCellRight`:`mergeTableCellLeft`,label:t(`Merge cell right`)}},{type:`button`,model:{commandName:`mergeTableCellDown`,label:t(`Merge cell down`)}},{type:`button`,model:{commandName:n?`mergeTableCellLeft`:`mergeTableCellRight`,label:t(`Merge cell left`)}},{type:`separator`},{type:`button`,model:{commandName:`splitTableCellVertically`,label:t(`Split cell vertically`)}},{type:`button`,model:{commandName:`splitTableCellHorizontally`,label:t(`Split cell horizontally`)}}];return this._prepareMergeSplitButtonDropdown(t(`Merge cells`),nF,r,e)})}_prepareDropdown(e,t,n,r){let i=this.editor,a=DL(r),o=this._fillDropdownWithListOptions(a,n);return a.buttonView.set({label:e,icon:t,tooltip:!0}),a.bind(`isEnabled`).toMany(o,`isEnabled`,(...e)=>e.some(e=>e)),this.listenTo(a,`execute`,e=>{i.execute(e.source.commandName),e.source instanceof eL||i.editing.view.focus()}),a}_prepareMergeSplitButtonDropdown(e,t,n,r){let i=this.editor,a=DL(r,EL),o=`mergeTableCells`,s=i.commands.get(o),c=this._fillDropdownWithListOptions(a,n);return a.buttonView.set({label:e,icon:t,tooltip:!0,isEnabled:!0}),a.bind(`isEnabled`).toMany([s,...c],`isEnabled`,(...e)=>e.some(e=>e)),this.listenTo(a.buttonView,`execute`,()=>{i.execute(o),i.editing.view.focus()}),this.listenTo(a,`execute`,e=>{i.execute(e.source.commandName),i.editing.view.focus()}),a}_fillDropdownWithListOptions(e,t){let n=this.editor,r=[],i=new hT;for(let e of t)XK(e,n,r,i);return AL(e,i),r}};function XK(e,t,n,r){if(e.type===`button`||e.type===`switchbutton`){let r=e.model=new NR(e.model),{commandName:i,bindIsOn:a}=e.model,o=t.commands.get(i);n.push(o),r.set({commandName:i}),r.bind(`isEnabled`).to(o),a&&r.bind(`isOn`).to(o,`value`),r.set({withText:!0})}r.add(e)}var ZK=class extends Z{static get pluginName(){return`TableSelection`}static get isOfficialPlugin(){return!0}static get requires(){return[jG,jG]}init(){let e=this.editor,t=e.model,n=e.editing.view;this.listenTo(t,`deleteContent`,(e,t)=>this._handleDeleteContent(e,t),{priority:`high`}),this.listenTo(n.document,`insertText`,(e,t)=>this._handleInsertTextEvent(e,t),{priority:`high`}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){let e=this.editor.plugins.get(jG),t=this.editor.model.document.selection,n=e.getSelectedTableCells(t);return n.length==0?null:n}getSelectionAsFragment(){let e=this.editor.plugins.get(jG),t=this.getSelectedTableCells();return t?this.editor.model.change(n=>{let r=n.createDocumentFragment(),{first:i,last:a}=e.getColumnIndexes(t),{first:o,last:s}=e.getRowIndexes(t),c=t[0].findAncestor(`table`),l=s,u=a;if(e.isSelectionRectangular(t)){let e={firstColumn:i,lastColumn:a,firstRow:o,lastRow:s};l=bG(c,e),u=xG(c,e)}let d=lG(c,{startRow:o,startColumn:i,endRow:l,endColumn:u},n);return n.insert(d,r,0),r}):null}setCellSelection(e,t){let n=this._getCellsToSelect(e,t);this.editor.model.change(e=>{e.setSelection(n.cells.map(t=>e.createRangeOn(t)),{backward:n.backward})})}getFocusCell(){let e=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return e&&e.is(`element`,`tableCell`)?e:null}getAnchorCell(){let e=this.editor.model.document.selection,t=gT(e.getRanges()).getContainedElement();return t&&t.is(`element`,`tableCell`)?t:null}_defineSelectionConverter(){let e=this.editor,t=new Set;e.conversion.for(`editingDowncast`).add(e=>e.on(`selection`,(e,r,i)=>{let a=i.writer;n(a);let o=this.getSelectedTableCells();if(!o)return;for(let e of o){let n=i.mapper.toViewElement(e);a.addClass(`ck-editor__editable_selected`,n),t.add(n)}let s=i.mapper.toViewElement(o[o.length-1]);a.setSelection(s,0)},{priority:`lowest`}));function n(e){for(let n of t)e.removeClass(`ck-editor__editable_selected`,n);t.clear()}}_enablePluginDisabling(){let e=this.editor;this.on(`change:isEnabled`,()=>{if(!this.isEnabled){let t=this.getSelectedTableCells();if(!t)return;e.model.change(n=>{let r=n.createPositionAt(t[0],0),i=e.model.schema.getNearestSelectionRange(r);n.setSelection(i)})}})}_handleDeleteContent(e,t){let n=this.editor.plugins.get(jG),r=t[0],i=t[1],a=this.editor.model,o=!i||i.direction==`backward`,s=n.getSelectedTableCells(r);s.length&&(e.stop(),a.change(e=>{let t=s[o?s.length-1:0];a.change(e=>{for(let t of s)a.deleteContent(e.createSelection(t,`in`))});let n=a.schema.getNearestSelectionRange(e.createPositionAt(t,0));r.is(`documentSelection`)?e.setSelection(n):r.setTo(n)}))}_handleInsertTextEvent(e,t){let n=this.editor,r=this.getSelectedTableCells();if(!r)return;let i=n.editing.view,a=n.editing.mapper,o=r.map(e=>i.createRangeOn(a.toViewElement(e)));t.selection=i.createSelection(o),t.preventDefault()}_getCellsToSelect(e,t){let n=this.editor.plugins.get(`TableUtils`),r=n.getCellLocation(e),i=n.getCellLocation(t),a=Math.min(r.row,i.row),o=Math.max(r.row,i.row),s=Math.min(r.column,i.column),c=parseInt(t.getAttribute(`colspan`)||`1`)-1,l=Math.max(r.column,i.column+c),u=Array(o-a+1).fill(null).map(()=>[]),d={startRow:a,endRow:o,startColumn:s,endColumn:l};for(let{row:t,cell:n}of new tG(e.findAncestor(`table`),d))u[t-a].push(n);let f=i.rowe.reverse()),{cells:u.flat(),backward:f||p}}},QK=class extends Z{static get pluginName(){return`TableClipboard`}static get isOfficialPlugin(){return!0}static get requires(){return[CV,wV,ZK,jG]}init(){let e=this.editor.editing.view.document;this.listenTo(e,`copy`,(e,t)=>this._onCopyCut(e,t)),this.listenTo(e,`cut`,(e,t)=>this._onCopyCut(e,t)),this._listenToContentInsertion(),this.decorate(`_replaceTableSlotCell`)}_listenToContentInsertion(){let{editor:e}=this,t=e.plugins.get(wV),n=e.plugins.get(ZK),r=!1;t.on(`contentInsertion`,(e,t)=>{r=t.method===`paste`}),this.listenTo(e.model,`insertContent`,(e,[t,i])=>{(r||n.getSelectedTableCells()!==null)&&this._onInsertContent(e,t,i)},{priority:`high`}),t.on(`contentInsertion`,()=>{r=!1},{priority:`lowest`})}_onCopyCut(e,t){let n=this.editor.editing.view,r=this.editor.plugins.get(ZK),i=this.editor.plugins.get(CV);r.getSelectedTableCells()&&(e.name==`cut`&&!this.editor.model.canEditAt(this.editor.model.document.selection)||(t.preventDefault(),e.stop(),this.editor.model.enqueueChange({isUndoable:e.name===`cut`},()=>{let a=i._copySelectedFragmentWithMarkers(e.name,this.editor.model.document.selection,()=>r.getSelectionAsFragment());n.document.fire(`clipboardOutput`,{dataTransfer:t.dataTransfer,content:this.editor.data.toView(a),method:e.name})})))}_onInsertContent(e,t,n){if(n&&!n.is(`documentSelection`))return;let r=this.editor.model,i=this.editor.plugins.get(jG),a=this.editor.plugins.get(CV),o=this.getTableIfOnlyTableInContent(t,r);if(!o)return;let s=i.getSelectionAffectedTableCells(r.document.selection);if(!s.length){yG(o,i);return}e.stop(),t.is(`documentFragment`)?a._pasteMarkersIntoTransformedElement(t.markers,e=>this._replaceSelectedCells(o,s,e)):this.editor.model.change(e=>{this._replaceSelectedCells(o,s,e)})}_replaceSelectedCells(e,t,n){let r=this.editor.plugins.get(jG),i={width:r.getColumns(e),height:r.getRows(e)},a=$K(t,i,n,r),o=a.lastRow-a.firstRow+1,s=a.lastColumn-a.firstColumn+1,c={startRow:0,startColumn:0,endRow:Math.min(o,i.height)-1,endColumn:Math.min(s,i.width)-1};e=lG(e,c,n);let l=t[0].findAncestor(`table`),u=this._replaceSelectedCellsWithPasted(e,i,l,a,n,r);if(this.editor.plugins.get(`TableSelection`).isEnabled){let e=r.sortRanges(u.map(e=>n.createRangeOn(e)));n.setSelection(e)}else n.setSelection(u[0],0);return l}_replaceSelectedCellsWithPasted(e,t,n,r,i,a){let{width:o,height:s}=t,c=tq(e,o,s),l=[...new tG(n,{startRow:r.firstRow,endRow:r.lastRow,startColumn:r.firstColumn,endColumn:r.lastColumn,includeAllSlots:!0})],u=[],d;for(let e of l){let{row:t,column:n}=e;n===r.firstColumn&&(d=e.getPositionBefore());let a=t-r.firstRow,l=n-r.firstColumn,f=c[a%s][l%o],p=f?i.cloneElement(f):null,m=this._replaceTableSlotCell(e,p,d,i);m&&(mG(m,t,n,r.lastRow,r.lastColumn,i),u.push(m),d=i.createPositionAfter(m))}let f=parseInt(n.getAttribute(`headingRows`)||`0`),p=parseInt(n.getAttribute(`headingColumns`)||`0`),m=parseInt(n.getAttribute(`footerRows`)||`0`),h=a.getRows(n)-m,g=r.firstRowi&&r.insertColumns(e,{at:i,columns:n-i}),t>a&&r.insertRows(e,{at:a,rows:t-a})}function tq(e,t,n){let r=Array(n).fill(null).map(()=>Array(t).fill(null));for(let{column:t,row:n,cell:i}of new tG(e))r[n][t]=i;return r}function nq(e,t,n){let{firstRow:r,lastRow:i,firstColumn:a,lastColumn:o}=t,s={first:r,last:i},c={first:a,last:o};iq(e,a,s,n),iq(e,o+1,s,n),rq(e,r,c,n),rq(e,i+1,c,n,r)}function rq(e,t,n,r,i=0){if(!(t<1))return uG(e,t,i).filter(({column:e,cellWidth:t})=>aq(e,t,n)).map(({cell:e})=>dG(e,t,r))}function iq(e,t,n,r){if(!(t<1))return fG(e,t).filter(({row:e,cellHeight:t})=>aq(e,t,n)).map(({cell:e,column:n})=>pG(e,n,t,r))}function aq(e,t,n){let r=e+t-1,{first:i,last:a}=n;return e>=i&&e<=a||e=i}var oq=class extends Z{static get pluginName(){return`TableKeyboard`}static get isOfficialPlugin(){return!0}static get requires(){return[ZK,jG]}init(){let e=this.editor,t=e.editing.view.document,n=e.t;this.listenTo(t,`arrowKey`,(...e)=>this._onArrowKey(...e),{context:`table`}),this.listenTo(t,`tab`,(...e)=>this._handleTabOnSelectedTable(...e),{context:`figure`}),this.listenTo(t,`tab`,(...e)=>this._handleTab(...e),{context:[`th`,`td`]}),e.accessibility.addKeystrokeInfoGroup({id:`table`,label:n(`Keystrokes that can be used in a table cell`),keystrokes:[{label:n(`Move the selection to the next cell`),keystroke:`Tab`},{label:n(`Move the selection to the previous cell`),keystroke:`Shift+Tab`},{label:n(`Insert a new table row (when in the last cell of a table)`),keystroke:`Tab`},{label:n(`Navigate through the table`),keystroke:[[`arrowup`],[`arrowright`],[`arrowdown`],[`arrowleft`]]}]})}_handleTabOnSelectedTable(e,t){let n=this.editor.model.document.selection.getSelectedElement();!n||!n.is(`element`,`table`)||t.stopPropagation()}_handleTab(e,t){let n=this.editor,r=this.editor.plugins.get(jG),i=this.editor.plugins.get(`TableSelection`),a=n.model.document.selection,o=!t.shiftKey,s=r.getTableCellsContainingSelection(a)[0];if(s||=i.getFocusCell(),!s)return;t.stopPropagation();let c=s.parent,l=c.parent,u=l.getChildIndex(c),d=c.getChildIndex(s)===c.childCount-1,f=u===r.getRows(l)-1;o&&f&&d&&n.execute(`insertTableRowBelow`)}_onArrowKey(e,t){let n=this.editor,r=t.keyCode,i=eT(r,n.locale.contentLanguageDirection);this._handleArrowKeys(i,t.shiftKey)&&(t.preventDefault(),t.stopPropagation(),e.stop())}_handleArrowKeys(e,t){let n=this.editor.plugins.get(jG),r=this.editor.plugins.get(`TableSelection`),i=this.editor.model,a=i.document.selection,o=[`right`,`down`].includes(e),s=n.getSelectedTableCells(a);if(s.length){let n;return n=t?r.getFocusCell():o?s[s.length-1]:s[0],this._navigateFromCellInDirection(n,e,t),!0}let c=a.focus.findAncestor(`tableCell`);if(!c)return!1;if(!a.isCollapsed)if(t){if(a.isBackward==o&&!a.containsEntireContent(c))return!1}else{let e=a.getSelectedElement();if(!e||!i.schema.isObject(e))return!1}return this._isSelectionAtCellEdge(a,c,o)?(this._navigateFromCellInDirection(c,e,t),!0):!1}_isSelectionAtCellEdge(e,t,n){let r=this.editor.model,i=this.editor.model.schema,a=n?e.getLastPosition():e.getFirstPosition();if(!i.getLimitElement(a).is(`element`,`tableCell`))return r.createPositionAt(t,n?`end`:0).isTouching(a);let o=r.createSelection(a);return r.modifySelection(o,{direction:n?`forward`:`backward`}),a.isEqual(o.focus)}_navigateFromCellInDirection(e,t,n=!1){let r=this.editor.model,i=e.findAncestor(`table`),a=[...new tG(i,{includeAllSlots:!0})],{row:o,column:s}=a[a.length-1],c=a.find(({cell:t})=>t==e),{row:l,column:u}=c;switch(t){case`left`:u--;break;case`up`:l--;break;case`right`:u+=c.cellWidth;break;case`down`:l+=c.cellHeight;break}if(l<0||l>o||u<0&&l<=0||u>s&&l>=o){r.change(e=>{e.setSelection(e.createRangeOn(i))});return}u<0?(u=n?0:s,l--):u>s&&(u=n?s:0,l++);let d=a.find(e=>e.row==l&&e.column==u).cell,f=[`right`,`down`].includes(t),p=this.editor.plugins.get(`TableSelection`);if(n&&p.isEnabled){let t=p.getAnchorCell()||e;p.setCellSelection(t,d)}else{let e=r.createPositionAt(d,f?0:`end`);r.change(t=>{t.setSelection(e)})}}},sq=class extends dO{domEventType=[`mousemove`,`mouseleave`];onDomEvent(e){this.fire(e.type,e)}},cq=class extends Z{static get pluginName(){return`TableMouse`}static get isOfficialPlugin(){return!0}static get requires(){return[ZK,jG]}init(){this.editor.editing.view.addObserver(sq),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){let e=this.editor,t=e.plugins.get(jG),n=!1,r=e.plugins.get(ZK);this.listenTo(e.editing.view.document,`mousedown`,(i,a)=>{let o=e.model.document.selection;if(!this.isEnabled||!r.isEnabled||!a.domEvent.shiftKey)return;let s=r.getAnchorCell()||t.getTableCellsContainingSelection(o)[0];if(!s)return;let c=this._getModelTableCellFromDomEvent(a);c&&lq(s,c)&&(n=!0,r.setCellSelection(s,c),a.preventDefault())}),this.listenTo(e.editing.view.document,`mouseup`,()=>{n=!1}),this.listenTo(e.editing.view.document,`selectionChange`,e=>{n&&e.stop()},{priority:`highest`})}_enableMouseDragSelection(){let e=this.editor,t,n,r=!1,i=!1,a=e.plugins.get(ZK);this.listenTo(e.editing.view.document,`mousedown`,(e,n)=>{!this.isEnabled||!a.isEnabled||n.domEvent.shiftKey||n.domEvent.ctrlKey||n.domEvent.altKey||(t=this._getModelTableCellFromDomEvent(n))}),this.listenTo(e.editing.view.document,`mousemove`,(e,o)=>{if(!o.domEvent.buttons||!t)return;let s=this._getModelTableCellFromDomEvent(o);s&&lq(t,s)&&(n=s,!r&&n!=t&&(r=!0)),r&&(i=!0,a.setCellSelection(t,n),o.preventDefault())}),this.listenTo(e.editing.view.document,`mouseup`,()=>{r=!1,i=!1,t=null,n=null}),this.listenTo(e.editing.view.document,`selectionChange`,e=>{i&&e.stop()},{priority:`highest`})}_getModelTableCellFromDomEvent(e){let t=e.target,n=this.editor.editing.view.createPositionAt(t,0);return this.editor.editing.mapper.toModelPosition(n).parent.findAncestor(`tableCell`,{includeSelf:!0})}};function lq(e,t){return e.parent.parent==t.parent.parent}var uq=class extends Z{static get requires(){return[KK,YK,ZK,cq,oq,QK,rV]}static get pluginName(){return`Table`}static get isOfficialPlugin(){return!0}};function dq(e){let t=e.getSelectedElement();return t&&pq(t)?t:null}function fq(e){let t=e.getFirstPosition();if(!t)return null;let n=t.parent;for(;n;){if(n.is(`element`)&&pq(n))return n;n=n.parent}return null}function pq(e){return e.is(`element`)&&!!e.getCustomProperty(`table`)&&OB(e)}var mq=class extends Z{static get requires(){return[dV]}static get pluginName(){return`TableToolbar`}static get isOfficialPlugin(){return!0}afterInit(){let e=this.editor,t=e.t,n=e.plugins.get(dV),r=e.config.get(`table.contentToolbar`),i=e.config.get(`table.tableToolbar`);r&&n.register(`tableContent`,{ariaLabel:t(`Table toolbar`),items:r,getRelatedElement:fq}),i&&n.register(`table`,{ariaLabel:t(`Table toolbar`),items:i,getRelatedElement:dq})}},hq={"zh-cn":{dictionary:{"Words: %0":`单词数:%0`,"Characters: %0":`字符数:%0`,"Widget toolbar":`小部件工具栏`,"Insert paragraph before block":`在前面插入段落`,"Insert paragraph after block":`在后面插入段落`,"Press Enter to type after or press Shift + Enter to type before the widget":`按下“Enter”键,在小组件后输入;按下“Shift+Enter”键,在小组件前输入`,"Keystrokes that can be used when a widget is selected (for example: image, table, etc.)":`当小组件被选中时(例如:图片、表格等)可以使用的按键`,"Insert a new paragraph directly after a widget":`直接在小组件之后插入新段落`,"Insert a new paragraph directly before a widget":`直接在小组件之前插入新段落`,"Move the caret to allow typing directly before a widget":`移动插入符,以允许在小组件之前直接输入文字`,"Move the caret to allow typing directly after a widget":`移动插入符,以允许在小组件之后直接输入文字`,"Move focus from an editable area back to the parent widget":`将焦点从可编辑区域移回父窗口小组件`,"Upload in progress":`正在上传`,Undo:`撤销`,Redo:`重做`,"Rich Text Editor":`富文本编辑器`,"Edit block":`编辑框`,"Click to edit block":`单击以编辑块`,"Drag to move":`拖拽以移动`,Next:`下一步`,Previous:`上一步`,"Editor toolbar":`编辑器工具栏`,"Dropdown toolbar":`下拉工具栏`,"Dropdown menu":`下拉菜单`,Black:`黑色`,"Dim grey":`暗灰色`,Grey:`灰色`,"Light grey":`浅灰色`,White:`白色`,Red:`红色`,Orange:`橙色`,Yellow:`黄色`,"Light green":`浅绿色`,Green:`绿色`,Aquamarine:`海蓝色`,Turquoise:`青色`,"Light blue":`浅蓝色`,Blue:`蓝色`,Purple:`紫色`,"Editor block content toolbar":`编辑器块内容工具栏`,"Editor contextual toolbar":`编辑器上下文工具栏`,HEX:`十六进制`,"No results found":`未找到结果`,"No searchable items":`没有可搜索的项目`,"Editor dialog":`编辑器对话框`,Close:`关闭`,"Help Contents. To close this dialog press ESC.":`帮助内容。要关闭此对话框,请按 ESC 键。`,"Below, you can find a list of keyboard shortcuts that can be used in the editor.":`您可以在下方找到可在编辑器中使用的键盘快捷键列表。`,"(may require Fn)":`(可能需要用到 Fn键)`,Accessibility:`可访问性`,"Accessibility help":`无障碍辅助功能帮助`,"Press %0 for help.":`按 %0 获取帮助。`,"Move focus in and out of an active dialog window":`将焦点移入或移出活跃的对话框窗口`,MENU_BAR_MENU_FILE:`文件`,MENU_BAR_MENU_EDIT:`编辑`,MENU_BAR_MENU_VIEW:`查看`,MENU_BAR_MENU_INSERT:`插入`,MENU_BAR_MENU_FORMAT:`格式`,MENU_BAR_MENU_TOOLS:`工具`,MENU_BAR_MENU_HELP:`帮助`,MENU_BAR_MENU_TEXT:`文本`,MENU_BAR_MENU_FONT:`字体`,"Editor menu bar":`编辑器菜单栏`,'Please enter a valid color (e.g. "ff0000").':`请输入有效的颜色(例如“ff0000”)。`,"Insert table":`插入表格`,"Header column":`标题列`,"Insert column left":`左侧插入列`,"Insert column right":`右侧插入列`,"Delete column":`删除本列`,"Select column":`选择列`,Column:`列`,"Header row":`标题行`,"Insert row below":`在下面插入一行`,"Insert row above":`在上面插入一行`,"Delete row":`删除本行`,"Select row":`选择行`,Row:`行`,"Merge cell up":`向上合并单元格`,"Merge cell right":`向右合并单元格`,"Merge cell down":`向下合并单元格`,"Merge cell left":`向左合并单元格`,"Split cell vertically":`纵向拆分单元格`,"Split cell horizontally":`横向拆分单元格`,"Merge cells":`合并单元格`,"Table toolbar":`表格工具栏`,"Table properties":`表格属性`,"Cell properties":`单元格属性`,Border:`边框`,Style:`样式`,Width:`宽度`,Height:`高度`,Color:`颜色`,Background:`背景`,Padding:`内边距`,Dimensions:`尺寸`,"Table cell text alignment":`表格单元格中的文本水平对齐`,"Horizontal text alignment toolbar":`水平文本对齐工具栏`,"Vertical text alignment toolbar":`垂直文本对齐工具栏`,"Table alignment toolbar":`表格对齐工具栏`,None:`无`,Solid:`实线`,Dotted:`点状虚线`,Dashed:`虚线`,Double:`双线`,Groove:`凹槽边框`,Ridge:`垄状边框`,Inset:`凹边框`,Outset:`凸边框`,"Align cell text to the left":`使单元格文本左对齐`,"Align cell text to the center":`使单元格文本水平居中`,"Align cell text to the right":`使单元格文本右对齐`,"Justify cell text":`对齐单元格文本`,"Align cell text to the top":`使单元格文本对齐到顶部`,"Align cell text to the middle":`使单元格文本垂直居中`,"Align cell text to the bottom":`使单元格文本对齐到底部`,'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':`颜色无效。尝试使用"#FF0000"、"rgb(255,0,0)"或者"red"。`,'The value is invalid. Try "10px" or "2em" or simply "2".':`无效值。尝试使用“10px”、“2ex”或者只写“2”。`,"Enter table caption":`输入表标题`,"Keystrokes that can be used in a table cell":`可在表格单元格中使用的按键`,"Move the selection to the next cell":`将所选内容移动到下一个单元格`,"Move the selection to the previous cell":`将所选内容移至上一个单元格`,"Insert a new table row (when in the last cell of a table)":`插入新的表格行(当位于表格的最后一个单元格时)`,"Navigate through the table":`在表格中进行导览`,Table:`表格`,"Insert table layout":`插入表格布局`,"Table layout":`表格布局`,"Layout table":`布局表格`,"Content table":`内容表格`,"Choose table type":`选择表格类型`,"Table type":`表格类型`,"Table type options":`表格类型选项`,"Table Alignment":`表格对齐方式`,"Align table to the left with text wrapping":`表格左对齐,文字环绕`,"Center table with no text wrapping":`表格居中,无文字环绕`,"Align table to the right with text wrapping":`表格右对齐,文字环绕`,"Align table to the left with no text wrapping":`表格左对齐,无文字环绕`,"Align table to the right with no text wrapping":`表格右对齐,无文字环绕`,"Cell type":`单元格类型`,"Data cell":`数据单元格`,"Header cell":`表头单元格`,"Footer row":`脚注行`,"Column header":`列标题`,"Row header":`行标题`,Styles:`样式`,"Multiple styles":`多样式`,"Block styles":`块级样式`,"Text styles":`文本样式`,"Special characters":`特殊字符`,Category:`类别`,All:`全部`,Arrows:`箭头`,Currency:`货币`,Latin:`拉丁文`,Mathematical:`数学`,Text:`文本`,"leftwards simple arrow":`向左简单箭头`,"rightwards simple arrow":`向右简单箭头`,"upwards simple arrow":`向上简单箭头`,"downwards simple arrow":`向下简单箭头`,"leftwards double arrow":`向左双箭头`,"rightwards double arrow":`向右双箭头`,"upwards double arrow":`向上双箭头`,"downwards double arrow":`向下双箭头`,"leftwards dashed arrow":`向左虚线箭头`,"rightwards dashed arrow":`向右虚线箭头`,"upwards dashed arrow":`向上虚线箭头`,"downwards dashed arrow":`向下虚线箭头`,"leftwards arrow to bar":`头部带杠的向左箭头`,"rightwards arrow to bar":`头部带杠的向右箭头`,"upwards arrow to bar":`头部带杠的向上箭头`,"downwards arrow to bar":`头部带杠的向下箭头`,"up down arrow with base":`处于基线的上下箭头`,"back with leftwards arrow above":`带有back标识的向左箭头`,"end with leftwards arrow above":`带有end标识的向左箭头`,"on with exclamation mark with left right arrow above":`带有NO!标识的左右双向箭头`,"soon with rightwards arrow above":`带有soon标识的向右箭头`,"top with upwards arrow above":`带有top标识的向上箭头`,"Dollar sign":`美元符号`,"Euro sign":`欧元符号`,"Yen sign":`日元符号`,"Pound sign":`英镑符号`,"Cent sign":`分币符号`,"Euro-currency sign":`欧元货币符号`,"Colon sign":`科朗符号`,"Cruzeiro sign":`克鲁塞罗符号`,"French franc sign":`法国法郎符号`,"Lira sign":`里拉符号`,"Currency sign":`货币符号`,"Bitcoin sign":`比特币符号`,"Mill sign":`密尔符号`,"Naira sign":`奈拉符号`,"Peseta sign":`比塞塔符号`,"Rupee sign":`卢比符号`,"Won sign":`韩元符号`,"New sheqel sign":`新谢克尔符号`,"Dong sign":`越南盾符号`,"Kip sign":` 基普符号`,"Tugrik sign":`图格里克符号`,"Drachma sign":`德拉克马符号`,"German penny sign":`德国便士符号`,"Peso sign":`比索符号`,"Guarani sign":`瓜拉尼货币符号`,"Austral sign":`澳大利亚货币符号`,"Hryvnia sign":`戈里夫纳符号`,"Cedi sign":`塞地符号`,"Livre tournois sign":`里弗尔符号`,"Spesmilo sign":`斯佩斯米洛符号`,"Tenge sign":`坚戈符号`,"Indian rupee sign":`印度卢比符号`,"Turkish lira sign":`土耳其里拉符号`,"Nordic mark sign":`北欧马克征符号`,"Manat sign":`马纳特符号`,"Ruble sign":`俄罗斯卢布`,"Latin capital letter a with macron":`带长音符的大写拉丁字母a`,"Latin small letter a with macron":`带长音符的小写拉丁字母a`,"Latin capital letter a with breve":`带短音符的大写拉丁字母a`,"Latin small letter a with breve":`带短音符的小写拉丁字母a`,"Latin capital letter a with ogonek":`带反尾形符的大写拉丁字母a`,"Latin small letter a with ogonek":`带反尾形符的小写拉丁字母a`,"Latin capital letter c with acute":`带锐音符的大写拉丁字母c`,"Latin small letter c with acute":`带锐音符的小写拉丁字母c`,"Latin capital letter c with circumflex":`带扬抑符的大写拉丁字母c`,"Latin small letter c with circumflex":`带扬抑符的小写拉丁字母c`,"Latin capital letter c with dot above":`带上点的大写拉丁字母c`,"Latin small letter c with dot above":`带上点的小写拉丁字母c`,"Latin capital letter c with caron":`带抑扬符的大写拉丁字母c`,"Latin small letter c with caron":`带抑扬符的小写拉丁字母c`,"Latin capital letter d with caron":`带抑扬符的大写拉丁字母d`,"Latin small letter d with caron":`带抑扬符的小写拉丁字母d`,"Latin capital letter d with stroke":`带删节线的大写拉丁字母d`,"Latin small letter d with stroke":`带删节线的小写拉丁字母d`,"Latin capital letter e with macron":`带长音符的大写拉丁字母e`,"Latin small letter e with macron":`带长音符的小写拉丁字母e`,"Latin capital letter e with breve":`带短音符的大写拉丁字母e`,"Latin small letter e with breve":`带短音符的小写拉丁字母e`,"Latin capital letter e with dot above":`带上点的大写拉丁字母e`,"Latin small letter e with dot above":`带上点的小写拉丁字母e`,"Latin capital letter e with ogonek":`带反尾形符的大写拉丁字母e`,"Latin small letter e with ogonek":`带反尾形符的小写拉丁字母e`,"Latin capital letter e with caron":`带抑扬符的大写拉丁字母e`,"Latin small letter e with caron":`带抑扬符的小写拉丁字母e`,"Latin capital letter g with circumflex":`带扬抑符的大写拉丁字母g`,"Latin small letter g with circumflex":`带扬抑符的小写拉丁字母g`,"Latin capital letter g with breve":`带短音符的大写拉丁字母g`,"Latin small letter g with breve":`带短音符的小写拉丁字母g`,"Latin capital letter g with dot above":`带上点的大写拉丁字母g`,"Latin small letter g with dot above":`带上点的小写拉丁字母g`,"Latin capital letter g with cedilla":`带软音符的大写拉丁字母g`,"Latin small letter g with cedilla":`带软音符的小写拉丁字母g`,"Latin capital letter h with circumflex":`带扬抑符的大写拉丁字母h`,"Latin small letter h with circumflex":`带扬抑符的小写拉丁字母h`,"Latin capital letter h with stroke":`带删节线的大写拉丁字母h`,"Latin small letter h with stroke":`带删节线的小写拉丁字母h`,"Latin capital letter i with tilde":`带腭化符的大写拉丁字母i`,"Latin small letter i with tilde":`带腭化符的小写拉丁字母i`,"Latin capital letter i with macron":`带长音符的大写拉丁字母i`,"Latin small letter i with macron":`带长音符的小写拉丁字母i`,"Latin capital letter i with breve":`带短音符的大写拉丁字母i`,"Latin small letter i with breve":`带短音符的小写拉丁字母i`,"Latin capital letter i with ogonek":`带反尾形符的大写拉丁字母i`,"Latin small letter i with ogonek":`带反尾形符的小写拉丁字母i`,"Latin capital letter i with dot above":`带上点的大写拉丁字母i`,"Latin small letter dotless i":`没有点的小写拉丁字母i`,"Latin capital ligature ij":`大写拉丁连字符ij`,"Latin small ligature ij":`小写拉丁连字符ij`,"Latin capital letter j with circumflex":`带扬抑符的大写拉丁字母j`,"Latin small letter j with circumflex":`带扬抑符的小写拉丁字母j`,"Latin capital letter k with cedilla":`带软音符的大写拉丁字母k`,"Latin small letter k with cedilla":`带软音符的小写拉丁字母k`,"Latin small letter kra":`小写拉丁字母kra`,"Latin capital letter l with acute":`带锐音符的大写拉丁字母l`,"Latin small letter l with acute":`带锐音符的小写拉丁字母l`,"Latin capital letter l with cedilla":`带软音符的大写拉丁字母l`,"Latin small letter l with cedilla":`带软音符的小写拉丁字母l`,"Latin capital letter l with caron":`带抑扬符的大写拉丁字母l`,"Latin small letter l with caron":`带抑扬符的小写拉丁字母l`,"Latin capital letter l with middle dot":`带中点的大写拉丁字母l`,"Latin small letter l with middle dot":`带中点的小写拉丁字母l`,"Latin capital letter l with stroke":`带删节线的大写拉丁字母l`,"Latin small letter l with stroke":`带删节线的小写拉丁字母l`,"Latin capital letter n with acute":`带锐音符的大写拉丁字母n`,"Latin small letter n with acute":`带锐音符的小写拉丁字母n`,"Latin capital letter n with cedilla":`带软音符的大写拉丁字母n`,"Latin small letter n with cedilla":`带软音符的小写拉丁字母n`,"Latin capital letter n with caron":`带抑扬符的大写拉丁字母n`,"Latin small letter n with caron":`带抑扬符的小写拉丁字母n`,"Latin small letter n preceded by apostrophe":`冠以撇号的小写拉丁字母n`,"Latin capital letter eng":`大写拉丁字母eng`,"Latin small letter eng":`小写拉丁字母eng`,"Latin capital letter o with macron":`带长音符的大写拉丁字母o`,"Latin small letter o with macron":`带长音符的小写拉丁字母o`,"Latin capital letter o with breve":`带短音符的大写拉丁字母o`,"Latin small letter o with breve":`带短音符的小写拉丁字母o`,"Latin capital letter o with double acute":`带双锐音符的大写拉丁字母o`,"Latin small letter o with double acute":`带双锐音符的小写拉丁字母o`,"Latin capital ligature oe":`大写拉丁连字符oe`,"Latin small ligature oe":`小写拉丁连字符oe`,"Latin capital letter r with acute":`带锐音符的大写拉丁字母r`,"Latin small letter r with acute":`带锐音符的小写拉丁字母r`,"Latin capital letter r with cedilla":`带软音符的大写拉丁字母r`,"Latin small letter r with cedilla":`带软音符的小写拉丁字母r`,"Latin capital letter r with caron":`带抑扬符的大写拉丁字母r`,"Latin small letter r with caron":`带抑扬符的小写拉丁字母r`,"Latin capital letter s with acute":`带锐音符的大写拉丁字母s`,"Latin small letter s with acute":`带锐音符的小写拉丁字母s`,"Latin capital letter s with circumflex":`带扬抑符的大写拉丁字母s`,"Latin small letter s with circumflex":`带扬抑符的小写拉丁字母s`,"Latin capital letter s with cedilla":`带软音符的大写拉丁字母s`,"Latin small letter s with cedilla":`带软音符的小写拉丁字母s`,"Latin capital letter s with caron":`带抑扬符的大写拉丁字母s`,"Latin small letter s with caron":`带抑扬符的小写拉丁字母s`,"Latin capital letter t with cedilla":`带软音符的大写拉丁字母t`,"Latin small letter t with cedilla":`带软音符的小写拉丁字母t`,"Latin capital letter t with caron":`带抑扬符的大写拉丁字母t`,"Latin small letter t with caron":`带抑扬符的小写拉丁字母t`,"Latin capital letter t with stroke":`带删节线的大写拉丁字母t`,"Latin small letter t with stroke":`带删节线的小写拉丁字母t`,"Latin capital letter u with tilde":`带腭化符的大写拉丁字母u`,"Latin small letter u with tilde":`带腭化符的小写拉丁字母u`,"Latin capital letter u with macron":`带长音符的大写拉丁字母u`,"Latin small letter u with macron":`带长音符的小写拉丁字母u`,"Latin capital letter u with breve":`带短音符的大写拉丁字母u`,"Latin small letter u with breve":`带短音符的小写拉丁字母u`,"Latin capital letter u with ring above":`带上圆圈的大写拉丁字母u`,"Latin small letter u with ring above":`带上圆圈的小写拉丁字母u`,"Latin capital letter u with double acute":`带双锐音符的大写拉丁字母u`,"Latin small letter u with double acute":`带双锐音符的小写拉丁字母u`,"Latin capital letter u with ogonek":`带反尾形符的大写拉丁字母u`,"Latin small letter u with ogonek":`带反尾形符的小写拉丁字母u`,"Latin capital letter w with circumflex":`带扬抑符的大写拉丁字母w`,"Latin small letter w with circumflex":`带扬抑符的小写拉丁字母w`,"Latin capital letter y with circumflex":`带扬抑符的大写拉丁字母y`,"Latin small letter y with circumflex":`带扬抑符的小写拉丁字母y`,"Latin capital letter y with diaeresis":`带分音符的大写拉丁字母y`,"Latin capital letter z with acute":`带锐音符的大写拉丁字母z`,"Latin small letter z with acute":`带锐音符的小写拉丁字母z`,"Latin capital letter z with dot above":`带上点的大写拉丁字母z`,"Latin small letter z with dot above":`带上点的小写拉丁字母z`,"Latin capital letter z with caron":`带抑扬符的大写拉丁字母z`,"Latin small letter z with caron":`带抑扬符的小写拉丁字母z`,"Latin small letter long s":`小写拉丁字母长s`,"Less-than sign":`小于号`,"Greater-than sign":`大于号`,"Less-than or equal to":`小于等于`,"Greater-than or equal to":`大于等于`,"En dash":`短破折号`,"Em dash":`长破折号`,Macron:`长音符号`,Overline:`上划线`,"Degree sign":`度数符号`,"Minus sign":`负号`,"Plus-minus sign":`正负号`,"Division sign":`除号`,"Fraction slash":`分数斜线`,"Multiplication sign":`称号`,"Latin small letter f with hook":`带钩的拉丁文小写字母 F`,Integral:`积分`,"N-ary summation":`N 元求和`,Infinity:`无穷大`,"Square root":`平方根`,"Tilde operator":`波浪线运算符`,"Approximately equal to":`近似等于`,"Almost equal to":`约等于`,"Not equal to":`不等于`,"Identical to":`恒等于`,"Element of":`属于`,"Not an element of":`不属于`,"Contains as member":`包含`,"N-ary product":`N 元乘积`,"Logical and":`逻辑与`,"Logical or":`逻辑或`,"Not sign":`非`,Intersection:`交集`,Union:`并集`,"Partial differential":`偏微分`,"For all":`对于全部`,"There exists":`存在`,"Empty set":`空集`,Nabla:`劈形算符`,"Asterisk operator":`星号运算符`,"Proportional to":`比例`,Angle:`角`,"Vulgar fraction one quarter":`普通分数四分之一`,"Vulgar fraction one half":`普通分数二分之一`,"Vulgar fraction three quarters":`普通分数四分之三`,"Single left-pointing angle quotation mark":`单左尖括号`,"Single right-pointing angle quotation mark":`单右尖括号`,"Left-pointing double angle quotation mark":`双左尖括号`,"Right-pointing double angle quotation mark":`双右尖括号`,"Left single quotation mark":`左单引号`,"Right single quotation mark":`右单引号`,"Left double quotation mark":`左双引号`,"Right double quotation mark":`右双引号`,"Single low-9 quotation mark":`低位后单引号`,"Double low-9 quotation mark":`低位后双引号`,"Inverted exclamation mark":`反感叹号`,"Inverted question mark":`反问号`,"Two dot leader":`二点前导符`,"Horizontal ellipsis":`省略号`,"Double dagger":`双剑号`,"Per mille sign":`千分号`,"Per ten thousand sign":`万分号`,"Double exclamation mark":`双叹号`,"Question exclamation mark":`疑问感叹号`,"Exclamation question mark":`感叹疑问号`,"Double question mark":`双问号`,"Copyright sign":`版权符号`,"Registered sign":`注册商标`,"Trade mark sign":`商标符号`,"Section sign":`节标记`,"Paragraph sign":`段落符号`,"Reversed paragraph sign":`反向段落符号`,"Show source":`显示源代码`,"Show blocks":`显示区块`,"Select all":`全选`,"Enable editing":`允许编辑`,"Previous editable region":`上一个可编辑区域`,"Next editable region":`下一个可编辑区域`,"Navigate editable regions":`导航至可编辑区域`,"Disable inline editing":`禁用行内编辑`,"Enable inline editing":`启用行内编辑`,"Disable block editing":`禁用块编辑`,"Enable block editing":`启用块编辑`,"Disable editing":`禁用编辑`,"Remove Format":`移除格式`,"Page break":`分页符`,"media widget":`媒体小部件`,"Media URL":`媒体URL`,"Paste the media URL in the input.":`在输入中粘贴媒体URL`,"Tip: Paste the URL into the content to embed faster.":`提示:将URL粘贴到内容中可更快地嵌入`,"The URL must not be empty.":`URL不可以为空。`,"This media URL is not supported.":`不支持此媒体URL。`,"Insert media":`插入媒体`,Media:`媒体`,"Media toolbar":`媒体工具栏`,"Open media in new tab":`在新标签页打开媒体`,"Media embed":`已嵌入媒体`,"Left aligned media":`左对齐媒体`,"Centered media":`居中媒体`,"Right aligned media":`右对齐媒体`,"Resize media":`调整素材尺寸`,"Resize media to %0":`将素材尺寸调整为 %0`,"Resize media to the original size":`将素材恢复为原始尺寸`,"Resize media (in %0)":`调整素材尺寸(位于 %0 内)`,"Custom media size":`自定义素材尺寸`,"Media resize list":`素材尺寸调整列表`,"Media Resize":`素材尺寸调整`,"Numbered List":`项目编号列表`,"Bulleted List":`项目符号列表`,"To-do List":`待办列表`,"Bulleted list styles toolbar":`项目符号列表样式工具条`,"Numbered list styles toolbar":`项目编号列表样式工具条`,"Toggle the disc list style":`切换实心原点列表样式`,"Toggle the circle list style":`切换空心原点列表样式`,"Toggle the square list style":`切换实心方块列表样式`,"Toggle the decimal list style":`切换阿拉伯数字列表样式`,"Toggle the decimal with leading zero list style":`切换前导零阿拉伯数字列表样式`,"Toggle the lower–roman list style":`切换小写罗马数字列表样式`,"Toggle the upper–roman list style":`切换大写罗马数字列表样式`,"Toggle the lower–latin list style":`切换小写拉丁字母列表样式`,"Toggle the upper–latin list style":`切换大写拉丁字母列表样式`,Disc:`实心圆点`,Circle:`空心圆点`,Square:`实心方块`,Decimal:`阿拉伯数字`,"Decimal with leading zero":`前导零阿拉伯数字`,"Lower–roman":`小写罗马数字`,"Upper-roman":`大写罗马数字`,"Lower-latin":`小写拉丁字母`,"Upper-latin":`大写拉丁字母`,"List properties":`列表属性`,"Start at":`起始编号`,"Invalid start index value.":`无效的起始索引值。`,"Start index must be greater than 0.":`起始编号必须大于0。`,"Reversed order":`顺序反转`,"Keystrokes that can be used in a list":`可在列表中使用的按键`,"Increase list item indent":`增加列表项的缩进`,"Decrease list item indent":`减少列表项的缩进`,"Entering a to-do list":`正在输入待办事项清单`,"Leaving a to-do list":`正在退出待办事项清单`,"Toggle the arabic-indic list style":`切换阿拉伯-印度数字列表样式`,"Arabic-indic":`阿拉伯-印度数字`,Unlink:`取消超链接`,Link:`超链接`,"Link URL":`链接网址`,"Link URL must not be empty.":`链接 URL 不能为空。`,"Link image":`链接图片`,"Edit link":`修改链接`,"Open link in new tab":`在新标签页中打开链接`,"Open in a new tab":`在新标签页中打开`,Downloadable:`可下载`,"Create link":`创建链接`,"Move out of a link":`移出链接`,"Link properties":`链接属性`,"Displayed text":`显示的文本`,"No links available":`无可用链接`,"This link has no URL":`该链接没有 URL`,Language:`语言`,"Choose language":`选择语言`,"Remove language":`移除语言`,"Increase indent":`增加缩进`,"Decrease indent":`减少缩进`,"image widget":`图片组件`,"In line":`行内`,"Side image":`图片侧边显示`,"Full size image":`全尺寸图片`,"Left aligned image":`图片左侧对齐`,"Centered image":`图片居中`,"Right aligned image":`图片右侧对齐`,"Change image text alternative":`更改图片替换文本`,"Text alternative":`替换文本`,"Enter image caption":`输入图片标题`,"Insert image":`插入图像`,"Replace image":`替换图片`,"Upload from computer":`从电脑上传`,"Replace from computer":`从电脑替换`,"Upload image from computer":`从电脑上传图片`,"Image from computer":`从计算机中选择图片`,"From computer":`从电脑`,"Replace image from computer":`从电脑替换图片`,"Upload failed":`上传失败`,"You have no image upload permissions.":`您没有上传图片的权限。`,"Image toolbar":`图片工具栏`,"Resize image":`调整图像大小`,"Resize image to %0":`调整图像大小为%0`,"Resize image to the original size":`调整图像大小为原始大小`,"Resize image (in %0)":`调整图片大小(单位为 %0)`,"Custom image size":`自定义图片大小`,"Image resize list":`图片大小列表`,"Insert image via URL":`通过URL地址插入图片`,"Insert via URL":`通过 URL 插入`,"Image via URL":`来自 URL 的图像`,"Via URL":`通过 URL`,"Update image URL":`更新图片URL地址`,"Caption for the image":`图片说明:`,"Caption for image: %0":`图片说明:%0`,"Uploading image":`正在上传图片`,"Image upload complete":`图片上传完成`,"Error during image upload":`图片上传时出错`,Image:`图像`,"Image Resize":`调整图片尺寸`,"Text Alternative":`替代文本`,"HTML object":`HTML对象`,"Insert HTML":`插入 HTML`,"HTML snippet":`HTML 代码片段`,"Paste raw HTML here...":`在这里粘贴 HTML 源代码`,"Edit source":`编辑源代码`,"Save changes":`保存更改`,"No preview available":`预览不可用`,"Empty snippet content":`空片段内容`,"Horizontal line":`水平线`,"Yellow marker":`黄色标记`,"Green marker":`绿色标记`,"Pink marker":`粉色标记`,"Blue marker":`蓝色标记`,"Red pen":`红色笔`,"Green pen":`绿色笔`,"Remove highlight":`清除高亮`,Highlight:`高亮`,"Text highlight toolbar":`文本高亮工具栏`,Heading:`标题`,"Choose heading":`标题类型`,"Heading 1":`标题 1`,"Heading 2":`标题 2`,"Heading 3":`标题 3`,"Heading 4":`标题 4`,"Heading 5":`标题 5`,"Heading 6":`标题 6`,"Type your title":`输入标题`,"Type or paste your content here.":`在这里输入或粘贴内容`,"Enter fullscreen mode":`进入全屏模式`,"Leave fullscreen mode":`退出全屏模式`,"Fullscreen mode":`全屏模式`,"Toggle fullscreen mode":`切换全屏模式`,"Document outline":`文档大纲`,"Connected users":`已连接用户`,"Show left sidebar":`显示左侧边栏`,"Hide left sidebar":`隐藏左侧边栏`,"Toggle sidebar":`切换侧边栏`,"Font Size":`字体大小`,Tiny:`极小`,Small:`小`,Big:`大`,Huge:`极大`,"Font Family":`字体`,Default:`默认`,"Font Color":`字体颜色`,"Font Background Color":`字体背景色`,"Document colors":`文档中的颜色`,"Find and replace":`查找和替换`,"Find in text…":`查找的文本`,Find:`查找`,"Previous result":`上一个匹配项`,"Next result":`下一个匹配项`,Replace:`替换`,"Replace all":`全部替换`,"Match case":`区分大小写`,"Whole words only":`单词`,"Replace with…":`替换的文本`,"Text to find must not be empty.":`查找的文本不可为空`,"Tip: Find some text first in order to replace it.":`提示:先查找文本再替换`,"Advanced options":`高级选项`,"Find in the document":`在文档中查找`,"Insert a soft break (a <br> element)":`插入软换行(一个<br> 元素)`,"Insert a hard break (a new paragraph)":`插入硬换行(新段落)`,Emoji:`表情符号`,"Show all emoji...":`显示所有表情符号...`,"Find an emoji (min. 2 characters)":`查找表情符号(最少 2 个字符)`,'No emojis were found matching "%0".':`未找到与“%0”匹配的表情符号。`,"Keep on typing to see the emoji.":`继续键入以查看表情符号。`,"The query must contain at least two characters.":`查询必须至少包含两个字符。`,"Smileys & Expressions":`笑脸符与表情`,"Gestures & People":`手势与人物`,"Animals & Nature":`动物与自然`,"Food & Drinks":`食物与饮料`,"Travel & Places":`旅行与地点`,Activities:`活动`,Objects:`物品`,Symbols:`符号`,Flags:`旗帜`,"Select skin tone":`选择肤色`,"Default skin tone":`默认肤色`,"Light skin tone":`浅肤色`,"Medium Light skin tone":`中等偏浅肤色`,"Medium skin tone":`中等肤色`,"Medium Dark skin tone":`中等偏深肤色`,"Dark skin tone":`深肤色`,"Emoji picker":`表情符号选择器`,Cancel:`取消`,Clear:`清除`,"Remove color":`移除颜色`,"Restore default":`恢复默认`,Save:`保存`,"Show more items":`显示更多`,"%0 of %1":`第 %0 步,共 %1 步`,"Cannot upload file:":`无法上传的文件:`,"Rich Text Editor. Editing area: %0":`富文本编辑器。编辑区域:%0`,"Insert with file manager":`使用文件管理器插入`,"Replace with file manager":`使用文件管理器替换`,"Insert image with file manager":`使用文件管理器插入图片`,"Replace image with file manager":`使用文件管理器替换图片`,File:`文件`,"With file manager":`通过文件管理器`,"Toggle caption off":`关闭表标题`,"Toggle caption on":`打开表标题`,"Content editing keystrokes":`内容编辑按键`,"These keyboard shortcuts allow for quick access to content editing features.":`这些键盘快捷键允许快速访问内容编辑功能。`,"User interface and content navigation keystrokes":`用户界面和内容导航按键`,"Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface.":`使用以下按键可以在 CKEditor 5 用户界面中进行更有效地导览。`,"Close contextual balloons, dropdowns, and dialogs":`关闭上下文气泡框、下拉菜单和对话框`,"Open the accessibility help dialog":`打开“无障碍辅助功能帮助”对话框`,"Move focus between form fields (inputs, buttons, etc.)":`在表单字段(输入、按钮等)之间移动焦点`,"Move focus to the menu bar, navigate between menu bars":`将焦点移到菜单栏,在菜单栏之间导航`,"Move focus to the toolbar, navigate between toolbars":`将焦点移至工具栏,在工具栏之间导览`,"Navigate through the toolbar or menu bar":`通过工具栏或菜单栏进行导航`,"Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content.":`执行当前聚焦的按钮。执行与编辑器内容交互的按钮将焦点返回到内容。`,Accept:`接受`,Paragraph:`段落`,"Color picker":`颜色选择器`,"Please try a different phrase or check the spelling.":`请尝试使用不同的短语或检查拼写。`,Source:`源`,Insert:`插入`,Update:`更新`,Back:`返回`,"Wrap text":`文字环绕`,"Break text":`文字断行`,Custom:`自定义`,Original:`原始大小`,"The value must not be empty.":`该值不能为空。`,"The value should be a plain number.":`该值应当为纯数字。`,"Insert code block":`插入代码块`,"Plain text":`纯文本`,"Leaving %0 code snippet":`正在退出 %0 代码片段`,"Entering %0 code snippet":`正在输入 %0 代码片段`,"Entering code snippet":`正在输入代码片段`,"Leaving code snippet":`正在退出代码片段`,"Code block":`代码块`,"Copy selected content":`复制选定的内容`,"Paste content":`粘贴内容`,"Paste content as plain text":`将内容粘贴为纯文本`,"Insert image or file":`插入图片或文件`,"Could not obtain resized image URL.":`无法获取重设大小的图片URL`,"Selecting resized image failed":`选择重设大小的图片失败`,"Could not insert image at the current position.":`无法在当前位置插入图片`,"Inserting image failed":`插入图片失败`,"Open file manager":`打开文件管理器`,"Cannot determine a category for the uploaded file.":`无法确定上传文件的类别。`,"Cannot access default workspace.":`无法访问默认工作区`,"You have no image editing permissions.":`您没有编辑图片的权限。`,"Edit image":`编辑图片`,"Processing the edited image.":`正在处理已编辑的图片。`,"Server failed to process the image.":`服务器未能处理图片。`,"Failed to determine category of edited image.":`未能确定已编辑图片的类别。`,Bookmark:`书签`,"Edit bookmark":`编辑书签`,"Remove bookmark":`删除书签`,"Bookmark name":`书签名称`,"Enter the bookmark name without spaces.":`输入书签名称,不带空格。`,"Bookmark must not be empty.":`书签不能为空。`,"Bookmark name cannot contain space characters.":`书签名称不能包含空格。`,"Bookmark name already exists.":`书签名称已存在。`,"bookmark widget":`书签小组件`,"Bookmark toolbar":`书签工具栏`,Bookmarks:`书签`,"No bookmarks available.":`无可用书签。`,"Scroll to bookmark":`滚动到书签`,"Block quote":`块引用`,Bold:`加粗`,Italic:`倾斜`,Underline:`下划线`,Code:`代码`,Strikethrough:`删除线`,Subscript:`下标`,Superscript:`上标`,"Italic text":`斜体文本`,"Move out of an inline code style":`摆脱内联代码风格`,"Bold text":`加粗字体`,"Underline text":`给文本添加下划线`,"Strikethrough text":`给文本添加删除线`,"Saving changes":`正在保存更改`,"Revert autoformatting action":`恢复自动格式化操作`,"Align left":`左对齐`,"Align right":`右对齐`,"Align center":`居中对齐`,Justify:`两端对齐`,"Text alignment":`对齐`,"Text alignment toolbar":`对齐工具栏`},getPluralForm(e){return 0}}},gq={__name:`NoticeRichTextEditor`,props:ui({disabled:{type:Boolean,default:!1}},{modelValue:{type:String,default:``},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=Ai(e,`modelValue`),n={licenseKey:`GPL`,language:`zh-cn`,translations:[hq],plugins:[oU,vU,TU,Rz,Uz,$z,Jz,JH,YW,bB,uq,mq],toolbar:{items:[`undo`,`redo`,`|`,`heading`,`|`,`bold`,`italic`,`underline`,`strikethrough`,`|`,`link`,`bulletedList`,`numberedList`,`blockQuote`,`insertTable`],shouldNotGroupWhenFull:!1},heading:{options:[{model:`paragraph`,title:`正文`,class:`ck-heading_paragraph`},{model:`heading2`,view:`h2`,title:`一级标题`,class:`ck-heading_heading2`},{model:`heading3`,view:`h3`,title:`二级标题`,class:`ck-heading_heading3`},{model:`heading4`,view:`h4`,title:`三级标题`,class:`ck-heading_heading4`}]},link:{addTargetToExternalLinks:!0,defaultProtocol:`https://`},table:{contentToolbar:[`tableColumn`,`tableRow`,`mergeTableCells`]},placeholder:`在此编写通知正文……`},r=R(()=>String(t.value||``).replace(/<[^>]*>/g,` `).replace(/ /g,` `).replace(/\s+/g,` `).trim().length);return(i,a)=>(M(),N(`div`,{class:be([`notice-rich-editor`,{"is-disabled":e.disabled}])},[F(O(bb),{modelValue:t.value,"onUpdate:modelValue":a[0]||=e=>t.value=e,editor:O(QH),config:n,disabled:e.disabled},null,8,[`modelValue`,`editor`,`disabled`]),P(`footer`,null,[a[1]||=P(`span`,null,`支持标题、链接、列表、引用和表格;保存时会再次执行安全过滤。`,-1),P(`strong`,null,T(r.value)+` 字`,1)])],2))}},_q={class:`admin-system-workspace`},vq={key:0,class:`form-error`},yq={key:1,class:`record-panel center-edit-picker`},bq={class:`chip-list`},xq=[`onClick`],Sq={key:0,class:`form-callout`},Cq={class:`notice-editor-studio__header`},wq={class:`notice-editor-studio__identity`},Tq={class:`notice-editor-studio__body`},Eq={class:`notice-editor-studio__manuscript`},Dq={class:`notice-title-field`},Oq={class:`notice-editor-studio__settings`},kq=[`value`],Aq={class:`notice-pin-control`},jq={class:`notice-editor-studio__actions`},Mq=[`disabled`],Nq=[`disabled`],Pq=[`disabled`],Fq={class:`record-panel notice-ledger-panel`},Iq={class:`ledger-toolbar ledger-toolbar--wide`},Lq=[`value`],Rq={class:`table-scroll`},zq=[`onClick`],Bq=[`href`],Vq=[`onClick`],Hq={key:0},Uq={class:`record-panel notice-ledger-panel`},Wq={class:`ledger-toolbar ledger-toolbar--wide`},Gq=[`value`],Kq={class:`table-scroll`},qq=[`onClick`],Jq={key:0},Yq={key:0},Xq=[`value`],Zq={class:`form-grid`},Qq=[`value`],$q=[`disabled`],eJ=[`value`],tJ=[`disabled`],nJ=[`value`],rJ={class:`room-editor-list`},iJ={class:`form-grid`},aJ=[`onUpdate:modelValue`],oJ=[`onUpdate:modelValue`],sJ=[`onUpdate:modelValue`],cJ=[`onUpdate:modelValue`],lJ=[`onUpdate:modelValue`],uJ=[`onUpdate:modelValue`],dJ=[`onClick`],fJ={class:`record-panel`},pJ={class:`ledger-toolbar ledger-toolbar--wide`},mJ=[`value`],hJ={class:`ledger-bulk`},gJ=[`disabled`],_J={class:`table-scroll`},vJ=[`value`],yJ={class:`record-panel`},bJ={class:`ledger-toolbar ledger-toolbar--wide`},xJ={class:`ledger-bulk`},SJ=[`disabled`],CJ=[`disabled`],wJ={class:`table-scroll`},TJ=[`value`,`disabled`],EJ={key:0,class:`row-decision`},DJ=[`onUpdate:modelValue`],OJ=[`onClick`],kJ=[`onClick`],AJ={class:`ledger-toolbar ledger-toolbar--wide`},jJ=[`value`],MJ={class:`workflow-grid-vue`},NJ={class:`workflow-track-vue`},PJ=[`onUpdate:modelValue`],FJ=[`onClick`],IJ=[`onClick`],LJ=[`onClick`],RJ={key:5,class:`workflow-design-grid-vue`},zJ=[`onSubmit`],BJ=[`onClick`],VJ=[`onUpdate:modelValue`],HJ=[`onUpdate:modelValue`],UJ=[`onUpdate:modelValue`],WJ=[`onClick`],GJ={class:`number-rule-layout-vue`},KJ={class:`form-grid`},qJ={class:`rule-segment-grid`},JJ={__name:`AdminSystemWorkspace`,props:{page:{type:String,required:!0},data:{type:Object,default:()=>({})}},emits:[`reload`],setup(e,{emit:t}){let n=e,r=t,i=D(!1),a=D(``),o=D([]),s=D([]),c=E({}),l=E({id:``,category:`报名通知`,status:`draft`,title:``,summary:``,content:``,pinned:!1}),u=E({id:``,schoolId:``,code:``,name:``,provinceCode:``,cityCode:``,districtCode:``,address:``,managerName:``,managerPhone:``,contact:``,emergencyPhone:``,gateOpenTime:``,status:`active`,transport:``,notes:``,rooms:[{code:``,name:``,building:``,floor:``,capacity:30,seatPlan:``,roomType:`standard`,status:`active`,notes:``}]}),d=E({id:``,name:`固定报名号规则`,separator:`-`,year:!0,school_code:!0,gender:!1,literal:!1,literalValue:``,yearWidth:4,sequenceWidth:4}),f=R(()=>Tf.find(e=>e.code===u.provinceCode)?.cities||[]),p=R(()=>f.value.find(e=>e.code===u.cityCode)?.districts||[]),m=pm(()=>n.data.centers||[],{filters:{status:(e,t)=>e.status===t,school:(e,t)=>e.schoolId===t},searchText:e=>[e.code,e.name,e.schoolName,e.address,e.managerName,e.managerPhone,...(e.rooms||[]).map(e=>`${e.code} ${e.name} ${e.building}`)].join(` `)}),h=pm(()=>n.data.changeRequests||[],{filters:{status:(e,t)=>e.status===t,type:(e,t)=>e.requestType===t},searchText:e=>[e.name,e.code,e.schoolName,e.requestType,e.status].join(` `)}),g=pm(()=>n.data.instances||[],{filters:{status:(e,t)=>e.status===t,type:(e,t)=>e.businessType===t},searchText:e=>[e.candidateName,e.centerName,e.schoolName,e.examName,e.className,e.assignee?.displayName,e.businessType].join(` `)}),_=pm(()=>n.data.notices||[],{filters:{status:(e,t)=>e.status===t,category:(e,t)=>e.category===t},searchText:e=>[e.title,e.summary,e.category,e.author].join(` `)}),v=pm(()=>n.data.publications||[],{filters:{visibility:(e,t)=>t===`visible`?e.publicVisible:!e.publicVisible,type:(e,t)=>e.sourceType===t},searchText:e=>[e.title,e.sourceType,e.examName,e.schoolName].join(` `)}),y=R(()=>[...new Set([`报名通知`,`考试须知`,`考点公告`,`成绩通知`,`系统公告`,...(n.data.notices||[]).map(e=>e.category)].filter(Boolean))]),b=R(()=>[...new Set((n.data.publications||[]).map(e=>e.sourceType).filter(Boolean))]);function x(e){return{plan:`招生计划`,qualification:`指标资格`,admission:`录取结果`,cutoff:`录取分数线`,reporting:`报到情况`}[e]||e}let S=R(()=>[...new Set((n.data.instances||[]).map(e=>e.businessType).filter(Boolean))]);function C(e,t,n=()=>!0){let r=t.filter(n).map(e=>e.id),i=Array.isArray(e)?e:e.value,a=r.length>0&&r.every(e=>i.includes(e))?i.filter(e=>!r.includes(e)):[...new Set([...i,...r])];Array.isArray(e)?e.splice(0,e.length,...a):e.value=a}async function ee(e,t){i.value=!0,a.value=``;try{let n=await e();return t&&Wl.notify(t),r(`reload`),n}catch(e){return a.value=e.message,null}finally{i.value=!1}}function te(){Object.assign(l,{id:``,category:`报名通知`,status:`draft`,title:``,summary:``,content:``,pinned:!1})}function ne(e){Object.assign(l,{id:e.id,category:e.category,status:e.status,title:e.title,summary:e.summary||``,content:e.contentHtml||e.content||``,pinned:!!e.pinned}),window.scrollTo({top:0,behavior:`smooth`})}async function re(){let e=l.content.replace(/<[^>]*>/g,` `).replace(/ /g,` `).replace(/\s+/g,` `).trim();if(!l.title.trim()||!e){a.value=`请填写通知标题和正文`;return}if(l.content.length>2e4){a.value=`通知正文内容过长,请精简至 20000 个字符以内`;return}let t=!!l.id;await ee(()=>V(l.id?`/api/admin/notices/${l.id}`:`/api/admin/notices`,{method:l.id?`PATCH`:`POST`,body:{title:l.title.trim(),summary:l.summary.trim(),category:l.category,status:l.status,content:l.content,pinned:l.pinned}}),l.status===`published`?t?`已发布通知已更新`:`通知已发布`:t?`通知草稿已更新`:`通知草稿已保存`)&&te()}function ie(e){ee(()=>V(`/api/admin/notices/${e.id}`,{method:`PATCH`,body:{status:e.status===`published`?`draft`:`published`}}),e.status===`published`?`通知已撤回`:`通知已发布`)}function ae(e){ee(()=>V(`/api/admin/publications/${e.sourceType}/${e.id}`,{method:`PATCH`,body:{publicVisible:!e.publicVisible}}),e.publicVisible?`系统公示已隐藏`:`系统公示已公开`)}function oe(){u.rooms.push({code:``,name:``,building:``,floor:``,capacity:30,seatPlan:``,roomType:`standard`,status:`active`,notes:``})}function se(){Object.assign(u,{id:``,schoolId:``,code:``,name:``,provinceCode:``,cityCode:``,districtCode:``,address:``,managerName:``,managerPhone:``,contact:``,emergencyPhone:``,gateOpenTime:``,status:`active`,transport:``,notes:``,rooms:[{code:``,name:``,building:``,floor:``,capacity:30,seatPlan:``,roomType:`standard`,status:`active`,notes:``}]})}function ce(e){Object.assign(u,{...e,id:e.id,rooms:(e.rooms||[]).map(e=>({...e}))}),window.scrollTo({top:0,behavior:`smooth`})}function le(){let e=!!u.id;ee(()=>V(e?`/api/admin/centers/${u.id}`:`/api/admin/centers`,{method:e?`PATCH`:`POST`,body:{...u,rooms:u.rooms.map(e=>({...e,capacity:Number(e.capacity)}))}}),e?`考点变更已提交审批`:`新考点档案已提交审批`)}function ue(e,t){ee(()=>V(`/api/admin/center-change-requests/${e.id}`,{method:`PATCH`,body:{status:t,reviewNote:c[e.id]||``}}),t===`approved`?`考点变更已通过`:`考点变更已退回`)}async function w({file:e,input:t}){await ee(()=>V(`/api/admin/excel/centers`,{method:`POST`,headers:{"Content-Type":`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`},body:e}),`考点考场 Excel 已导入`),t.value=``}function de(){Dm(`centers`,o.value)}async function fe(e){let t=(n.data.changeRequests||[]).filter(e=>s.value.includes(e.id)&&e.status===`pending`);if(!t.length)return;let o=window.prompt(e===`rejected`?`请填写统一退回原因`:`填写统一审批意见(可留空)`,``);if(o===null||e===`rejected`&&!o.trim())return;i.value=!0,a.value=``;let c=0;try{for(let n of t)await V(`/api/admin/center-change-requests/${n.id}`,{method:`PATCH`,body:{status:e,reviewNote:o}}),c+=1;Wl.notify(`已处理 ${c} 条考点变更申请`),s.value=[],r(`reload`)}catch(e){a.value=`${c} 条已完成;${e.message}`}finally{i.value=!1}}function pe(e){return e.businessType===`profile_change`?`/api/admin/candidates/${e.businessId}`:e.businessType===`registration_review`?`/api/admin/registrations/${e.businessId}`:e.businessType===`center_change`?`/api/admin/center-change-requests/${e.businessId}`:e.businessType===`candidate_account_batch`?`/api/admin/candidate-account-batches/${e.businessId}`:`/api/admin/score-appeals/${e.businessId}`}function me(e,t){let n={status:t,reviewNote:c[e.id]||``};e.businessType===`score_appeal`&&t===`approved`&&(n.reviewedScore=Number(window.prompt(`请输入复议后的成绩`,e.appealResult?.score??``)||e.appealResult?.score)),ee(()=>V(pe(e),{method:`PATCH`,body:n}),t===`approved`?`流程已通过当前步骤`:`流程已退回`)}function he(e){let t=window.prompt(`请输入目标管理员 ID`,``)||``;t&&ee(()=>V(`/api/admin/workflow-instances/${e.id}/transfer`,{method:`PATCH`,body:{assigneeId:t,note:c[e.id]||``}}),`流程已转交`)}function ge(e){ee(()=>V(`/api/admin/workflows/${e.businessType}`,{method:`PUT`,body:{name:e.name,steps:e.steps.map(e=>({name:e.name,adminLevel:e.adminLevel}))}}),`审批流程已保存`)}function _e(e){e.steps.push({name:`新增审批步骤`,adminLevel:`school`,position:e.steps.length+1})}function ve(){let e=[{type:`year`,include:d.year,width:Number(d.yearWidth)},{type:`school_code`,include:d.school_code},{type:`gender`,include:d.gender},{type:`literal`,include:d.literal,value:d.literalValue},{type:`sequence`,include:!0,width:Number(d.sequenceWidth)}].filter(e=>e.include).map((e,t)=>({type:e.type,position:t+1,value:e.value||``,width:e.width||0}));ee(()=>V(`/api/admin/number-rules`,{method:`POST`,body:{id:d.id||void 0,name:d.name,separator:d.separator,segments:e}}),`报名号规则已启用`)}if(n.page===`number-rules`&&n.data.activeRule){let e=n.data.activeRule;d.id=e.id,d.name=e.name,d.separator=e.separator;for(let t of e.segments||[])d[t.type]=!0,t.type===`literal`&&(d.literalValue=t.value),t.type===`year`&&(d.yearWidth=t.width),t.type===`sequence`&&(d.sequenceWidth=t.width)}return(t,n)=>(M(),N(`div`,_q,[a.value?(M(),N(`div`,vq,T(a.value),1)):L(``,!0),e.page===`centers`&&e.data.centers?.length?(M(),N(`section`,yq,[P(`header`,null,[n[65]||=P(`div`,null,[P(`h2`,null,`维护已有考点`),P(`p`,null,`选择考点后,下面的档案表单会切换为变更申请。`)],-1),u.id?(M(),N(`button`,{key:0,class:`app-button`,type:`button`,onClick:se},` 取消编辑 `)):L(``,!0)]),P(`div`,bq,[(M(!0),N(j,null,A(e.data.centers,e=>(M(),N(`button`,{key:e.id,type:`button`,class:be({active:u.id===e.id}),onClick:t=>ce(e)},T(e.code)+` · `+T(e.name),11,xq))),128))]),u.id?(M(),N(`div`,Sq,[P(`strong`,null,`正在提交“`+T(u.name)+`”的变更`,1),n[66]||=P(`p`,null,`审批通过前,当前正式考点档案不会变化。`,-1)])):L(``,!0)])):L(``,!0),e.page===`notices`?(M(),N(j,{key:2},[P(`form`,{class:`business-form notice-editor-vue notice-editor-studio`,onSubmit:As(re,[`prevent`])},[P(`header`,Cq,[P(`div`,null,[n[67]||=P(`p`,null,`OFFICIAL NOTICE DESK`,-1),P(`h2`,null,T(l.id?`编辑人工通知`:`起草新的通知公告`),1),n[68]||=P(`span`,null,`正文由 CKEditor 编辑,发布前由服务端统一清理不安全内容。`,-1)]),P(`div`,wq,[P(`small`,null,T(l.id?`正在修改`:`新建文稿`),1),P(`strong`,null,T(l.id||`尚未生成文号`),1)])]),P(`div`,Tq,[P(`section`,Eq,[P(`label`,Dq,[n[69]||=P(`span`,null,`通知标题`,-1),k(P(`input`,{"onUpdate:modelValue":n[0]||=e=>l.title=e,maxlength:`120`,placeholder:`输入完整、明确的通知标题`,required:``},null,512),[[z,l.title]])]),P(`label`,null,[n[70]||=P(`span`,null,`首页摘要`,-1),k(P(`textarea`,{"onUpdate:modelValue":n[1]||=e=>l.summary=e,rows:`2`,maxlength:`260`,placeholder:`用于首页和公告目录,留空时将自动截取正文`},null,512),[[z,l.summary]])]),n[71]||=P(`label`,{class:`notice-editor-label`},[P(`span`,null,`通知正文`)],-1),F(gq,{modelValue:l.content,"onUpdate:modelValue":n[2]||=e=>l.content=e,disabled:i.value},null,8,[`modelValue`,`disabled`])]),P(`aside`,Oq,[n[77]||=P(`div`,null,[P(`small`,null,`发布设置`),P(`h3`,null,`公开范围与状态`),P(`p`,null,`保存草稿不会出现在公开首页;立即发布后公众可直接查看。`)],-1),P(`label`,null,[n[72]||=P(`span`,null,`公告分类`,-1),k(P(`select`,{"onUpdate:modelValue":n[3]||=e=>l.category=e},[(M(!0),N(j,null,A(y.value,e=>(M(),N(`option`,{key:e,value:e},T(e),9,kq))),128))],512),[[B,l.category]])]),P(`label`,null,[n[74]||=P(`span`,null,`保存后的状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[4]||=e=>l.status=e},[...n[73]||=[P(`option`,{value:`draft`},`草稿,不公开`,-1),P(`option`,{value:`published`},`正式发布`,-1)]],512),[[B,l.status]])]),P(`label`,Aq,[k(P(`input`,{"onUpdate:modelValue":n[5]||=e=>l.pinned=e,type:`checkbox`},null,512),[[Cs,l.pinned]]),n[75]||=P(`span`,null,[P(`strong`,null,`公开首页置顶`),P(`small`,null,`仅对已发布通知生效`)],-1)]),P(`div`,{class:be([`notice-release-state`,{"is-published":l.status===`published`}])},[n[76]||=P(`i`,null,null,-1),P(`span`,null,[P(`strong`,null,T(l.status===`published`?`将正式发布`:`将保存为草稿`),1),P(`small`,null,T(l.status===`published`?`提交后立即进入公开公告目录`:`可继续编辑,不会对公众显示`),1)])],2)])]),P(`footer`,jq,[l.id?(M(),N(`button`,{key:0,type:`button`,class:`app-button`,disabled:i.value,onClick:te},` 取消编辑 `,8,Mq)):L(``,!0),P(`button`,{type:`button`,class:`app-button`,disabled:i.value,onClick:te},` 清空文稿 `,8,Nq),P(`button`,{class:`app-button app-button--primary`,disabled:i.value},T(i.value?`正在保存…`:l.status===`published`?l.id?`更新已发布通知`:`发布通知`:l.id?`更新草稿`:`保存草稿`),9,Pq)])],32),P(`section`,Fq,[P(`header`,null,[P(`div`,null,[n[78]||=P(`h2`,null,`人工通知`,-1),P(`p`,null,` 筛选结果 `+T(O(_).total)+` / 共 `+T(e.data.notices?.length||0)+` 条 `,1)])]),P(`div`,Iq,[P(`label`,null,[n[79]||=P(`span`,null,`搜索通知`,-1),k(P(`input`,{"onUpdate:modelValue":n[6]||=e=>O(_).query=e,placeholder:`标题、摘要、作者`},null,512),[[z,O(_).query]])]),P(`label`,null,[n[81]||=P(`span`,null,`发布状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[7]||=e=>O(_).filters.status=e},[...n[80]||=[P(`option`,{value:``},`全部状态`,-1),P(`option`,{value:`draft`},`草稿`,-1),P(`option`,{value:`published`},`已发布`,-1)]],512),[[B,O(_).filters.status]])]),P(`label`,null,[n[83]||=P(`span`,null,`公告分类`,-1),k(P(`select`,{"onUpdate:modelValue":n[8]||=e=>O(_).filters.category=e},[n[82]||=P(`option`,{value:``},`全部分类`,-1),(M(!0),N(j,null,A(y.value,e=>(M(),N(`option`,{key:e,value:e},T(e),9,Lq))),128))],512),[[B,O(_).filters.category]])]),P(`button`,{type:`button`,class:`table-action`,onClick:n[9]||=(...e)=>O(_).clear&&O(_).clear(...e)},` 清除筛选 `)]),P(`div`,Rq,[P(`table`,null,[n[85]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`标题`),P(`th`,null,`分类`),P(`th`,null,`状态`),P(`th`,null,`置顶`),P(`th`,null,`发布时间`),P(`th`,null,`操作`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(O(_).rows,e=>(M(),N(`tr`,{key:e.id},[P(`td`,null,[I(T(e.title),1),P(`small`,null,T(e.summary),1)]),P(`td`,null,T(e.category),1),P(`td`,null,[F(U,{value:e.status},null,8,[`value`])]),P(`td`,null,T(e.pinned?`是`:`否`),1),P(`td`,null,T(O(ru)(e.publishAt||e.createdAt,!0)),1),P(`td`,null,[P(`button`,{type:`button`,class:`table-action`,onClick:t=>ne(e)},` 编辑`,8,zq),e.status===`published`?(M(),N(`a`,{key:0,class:`table-action`,href:`/announcements/`+e.id,target:`_blank`,rel:`noopener`},`预览`,8,Bq)):L(``,!0),P(`button`,{type:`button`,class:`table-action`,onClick:t=>ie(e)},T(e.status===`published`?`撤回`:`发布`),9,Vq)])]))),128)),O(_).rows.length?L(``,!0):(M(),N(`tr`,Hq,[...n[84]||=[P(`td`,{colspan:`6`,class:`ledger-empty`},`没有符合条件的人工通知`,-1)]]))])])]),F(dm,{page:O(_).page,"onUpdate:page":n[10]||=e=>O(_).page=e,"page-size":O(_).pageSize,"onUpdate:pageSize":n[11]||=e=>O(_).pageSize=e,total:O(_).total},null,8,[`page`,`page-size`,`total`])]),P(`section`,Uq,[P(`header`,null,[P(`div`,null,[n[86]||=P(`h2`,null,`系统自动公示`,-1),P(`p`,null,` 筛选结果 `+T(O(v).total)+` / 共 `+T(e.data.publications?.length||0)+` 条;业务事实不可编辑。 `,1)])]),P(`div`,Wq,[P(`label`,null,[n[87]||=P(`span`,null,`搜索公示`,-1),k(P(`input`,{"onUpdate:modelValue":n[12]||=e=>O(v).query=e,placeholder:`标题、考试、学校`},null,512),[[z,O(v).query]])]),P(`label`,null,[n[89]||=P(`span`,null,`公示类型`,-1),k(P(`select`,{"onUpdate:modelValue":n[13]||=e=>O(v).filters.type=e},[n[88]||=P(`option`,{value:``},`全部类型`,-1),(M(!0),N(j,null,A(b.value,e=>(M(),N(`option`,{key:e,value:e},T(x(e)),9,Gq))),128))],512),[[B,O(v).filters.type]])]),P(`label`,null,[n[91]||=P(`span`,null,`公开状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[14]||=e=>O(v).filters.visibility=e},[...n[90]||=[P(`option`,{value:``},`全部状态`,-1),P(`option`,{value:`visible`},`正在公开`,-1),P(`option`,{value:`hidden`},`已隐藏`,-1)]],512),[[B,O(v).filters.visibility]])]),P(`button`,{type:`button`,class:`table-action`,onClick:n[15]||=(...e)=>O(v).clear&&O(v).clear(...e)},` 清除筛选 `)]),P(`div`,Kq,[P(`table`,null,[n[93]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`标题`),P(`th`,null,`类型`),P(`th`,null,`状态`),P(`th`,null,`公开`),P(`th`,null,`操作`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(O(v).rows,e=>(M(),N(`tr`,{key:e.sourceType+`-`+e.id},[P(`td`,null,T(e.title),1),P(`td`,null,T(x(e.sourceType)),1),P(`td`,null,[F(U,{value:e.status},null,8,[`value`])]),P(`td`,null,T(e.publicVisible?`公开`:`隐藏`),1),P(`td`,null,[P(`button`,{type:`button`,class:`table-action`,onClick:t=>ae(e)},T(e.publicVisible?`隐藏`:`公开`),9,qq)])]))),128)),O(v).rows.length?L(``,!0):(M(),N(`tr`,Jq,[...n[92]||=[P(`td`,{colspan:`5`,class:`ledger-empty`},`没有符合条件的系统公示`,-1)]]))])])]),F(dm,{page:O(v).page,"onUpdate:page":n[16]||=e=>O(v).page=e,"page-size":O(v).pageSize,"onUpdate:pageSize":n[17]||=e=>O(v).pageSize=e,total:O(v).total},null,8,[`page`,`page-size`,`total`])])],64)):e.page===`centers`?(M(),N(j,{key:3},[F(rm,{resource:`centers`,label:`考点考场档案`,onImport:w}),P(`form`,{class:`business-form center-editor-vue`,onSubmit:As(le,[`prevent`])},[n[119]||=P(`p`,null,`CONTROLLED DOSSIER`,-1),n[120]||=P(`h2`,null,`提交新考点档案`,-1),n[121]||=P(`span`,null,`提交后进入考点考场变更审批,通过前不会改动正式档案。`,-1),O(H).state.user?.adminLevel===`super`?(M(),N(`label`,Yq,[n[95]||=P(`span`,null,`所属学校`,-1),k(P(`select`,{"onUpdate:modelValue":n[18]||=e=>u.schoolId=e,required:``},[n[94]||=P(`option`,{value:``},`请选择`,-1),(M(!0),N(j,null,A(e.data.schools,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,Xq))),128))],512),[[B,u.schoolId]])])):L(``,!0),P(`div`,Zq,[P(`label`,null,[n[96]||=P(`span`,null,`考点代码`,-1),k(P(`input`,{"onUpdate:modelValue":n[19]||=e=>u.code=e,required:``},null,512),[[z,u.code]])]),P(`label`,null,[n[97]||=P(`span`,null,`考点名称`,-1),k(P(`input`,{"onUpdate:modelValue":n[20]||=e=>u.name=e,required:``},null,512),[[z,u.name]])]),P(`label`,null,[n[99]||=P(`span`,null,`省份`,-1),k(P(`select`,{"onUpdate:modelValue":n[21]||=e=>u.provinceCode=e,required:``,onChange:n[22]||=e=>{u.cityCode=``,u.districtCode=``}},[n[98]||=P(`option`,{value:``},`请选择`,-1),(M(!0),N(j,null,A(O(Tf),e=>(M(),N(`option`,{key:e.code,value:e.code},T(e.name),9,Qq))),128))],544),[[B,u.provinceCode]])]),P(`label`,null,[n[101]||=P(`span`,null,`城市`,-1),k(P(`select`,{"onUpdate:modelValue":n[23]||=e=>u.cityCode=e,required:``,disabled:!u.provinceCode,onChange:n[24]||=e=>u.districtCode=``},[n[100]||=P(`option`,{value:``},`请选择`,-1),(M(!0),N(j,null,A(f.value,e=>(M(),N(`option`,{key:e.code,value:e.code},T(e.name),9,eJ))),128))],40,$q),[[B,u.cityCode]])]),P(`label`,null,[n[103]||=P(`span`,null,`区县`,-1),k(P(`select`,{"onUpdate:modelValue":n[25]||=e=>u.districtCode=e,required:``,disabled:!u.cityCode},[n[102]||=P(`option`,{value:``},`请选择`,-1),(M(!0),N(j,null,A(p.value,e=>(M(),N(`option`,{key:e.code,value:e.code},T(e.name),9,nJ))),128))],8,tJ),[[B,u.districtCode]])]),P(`label`,null,[n[104]||=P(`span`,null,`详细地址`,-1),k(P(`input`,{"onUpdate:modelValue":n[26]||=e=>u.address=e,required:``},null,512),[[z,u.address]])]),P(`label`,null,[n[105]||=P(`span`,null,`负责人`,-1),k(P(`input`,{"onUpdate:modelValue":n[27]||=e=>u.managerName=e},null,512),[[z,u.managerName]])]),P(`label`,null,[n[106]||=P(`span`,null,`负责人手机`,-1),k(P(`input`,{"onUpdate:modelValue":n[28]||=e=>u.managerPhone=e},null,512),[[z,u.managerPhone]])]),P(`label`,null,[n[107]||=P(`span`,null,`值班电话`,-1),k(P(`input`,{"onUpdate:modelValue":n[29]||=e=>u.contact=e},null,512),[[z,u.contact]])]),P(`label`,null,[n[108]||=P(`span`,null,`应急电话`,-1),k(P(`input`,{"onUpdate:modelValue":n[30]||=e=>u.emergencyPhone=e},null,512),[[z,u.emergencyPhone]])]),P(`label`,null,[n[109]||=P(`span`,null,`开放时间`,-1),k(P(`input`,{"onUpdate:modelValue":n[31]||=e=>u.gateOpenTime=e,type:`time`},null,512),[[z,u.gateOpenTime]])])]),P(`label`,null,[n[110]||=P(`span`,null,`交通与入场提示`,-1),k(P(`textarea`,{"onUpdate:modelValue":n[32]||=e=>u.transport=e},null,512),[[z,u.transport]])]),P(`section`,rJ,[P(`header`,null,[n[111]||=P(`strong`,null,`考场明细`,-1),P(`button`,{type:`button`,onClick:oe},`+ 添加考场`)]),(M(!0),N(j,null,A(u.rooms,(e,t)=>(M(),N(`article`,{key:t},[P(`div`,iJ,[P(`label`,null,[n[112]||=P(`span`,null,`场地代码`,-1),k(P(`input`,{"onUpdate:modelValue":t=>e.code=t,required:``},null,8,aJ),[[z,e.code]])]),P(`label`,null,[n[113]||=P(`span`,null,`考场名称`,-1),k(P(`input`,{"onUpdate:modelValue":t=>e.name=t,required:``},null,8,oJ),[[z,e.name]])]),P(`label`,null,[n[114]||=P(`span`,null,`楼栋`,-1),k(P(`input`,{"onUpdate:modelValue":t=>e.building=t,required:``},null,8,sJ),[[z,e.building]])]),P(`label`,null,[n[115]||=P(`span`,null,`楼层`,-1),k(P(`input`,{"onUpdate:modelValue":t=>e.floor=t},null,8,cJ),[[z,e.floor]])]),P(`label`,null,[n[116]||=P(`span`,null,`容量`,-1),k(P(`input`,{"onUpdate:modelValue":t=>e.capacity=t,type:`number`,min:`1`,required:``},null,8,lJ),[[z,e.capacity]])]),P(`label`,null,[n[118]||=P(`span`,null,`考场类型`,-1),k(P(`select`,{"onUpdate:modelValue":t=>e.roomType=t},[...n[117]||=[P(`option`,{value:`standard`},`标准考场`,-1),P(`option`,{value:`computer`},`机考考场`,-1),P(`option`,{value:`accessible`},`无障碍考场`,-1),P(`option`,{value:`spare`},`备用考场`,-1)]],8,uJ),[[B,e.roomType]])])]),P(`button`,{type:`button`,onClick:e=>u.rooms.splice(t,1)},` 移除 `,8,dJ)]))),128))]),n[122]||=P(`button`,{class:`app-button app-button--primary`},`提交审批`,-1)],32),P(`section`,fJ,[P(`header`,null,[P(`div`,null,[n[123]||=P(`h2`,null,`正式考点与考场`,-1),P(`p`,null,` 筛选结果 `+T(O(m).total)+` / 共 `+T(e.data.centers?.length||0)+` 个考点 `,1)])]),P(`div`,pJ,[P(`label`,null,[n[124]||=P(`span`,null,`关键词`,-1),k(P(`input`,{"onUpdate:modelValue":n[33]||=e=>O(m).query=e,placeholder:`代码、考点、学校、地址、负责人、考场`},null,512),[[z,O(m).query]])]),P(`label`,null,[n[126]||=P(`span`,null,`所属学校`,-1),k(P(`select`,{"onUpdate:modelValue":n[34]||=e=>O(m).filters.school=e},[n[125]||=P(`option`,{value:``},`全部学校`,-1),(M(!0),N(j,null,A(e.data.schools,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,mJ))),128))],512),[[B,O(m).filters.school]])]),P(`label`,null,[n[128]||=P(`span`,null,`状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[35]||=e=>O(m).filters.status=e},[...n[127]||=[P(`option`,{value:``},`全部状态`,-1),P(`option`,{value:`active`},`启用`,-1),P(`option`,{value:`inactive`},`停用`,-1)]],512),[[B,O(m).filters.status]])]),P(`button`,{class:`table-action`,onClick:n[36]||=(...e)=>O(m).clear&&O(m).clear(...e)},` 清除筛选 `)]),P(`div`,hJ,[P(`label`,null,[P(`input`,{type:`checkbox`,onChange:n[37]||=e=>C(o.value,O(m).rows)},null,32),n[129]||=I(` 选择当前页`,-1)]),P(`strong`,null,`已选 `+T(o.value.length)+` 个`,1),P(`button`,{disabled:!o.value.length,onClick:de},` 导出选中项 XLSX `,8,gJ)]),P(`div`,_J,[P(`table`,null,[n[130]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`选择`),P(`th`,null,`考点`),P(`th`,null,`学校`),P(`th`,null,`地址`),P(`th`,null,`考场 / 席位`),P(`th`,null,`负责人`),P(`th`,null,`状态`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(O(m).rows,e=>(M(),N(`tr`,{key:e.id},[P(`td`,null,[k(P(`input`,{"onUpdate:modelValue":n[38]||=e=>o.value=e,type:`checkbox`,value:e.id},null,8,vJ),[[Cs,o.value]])]),P(`td`,null,[I(T(e.name),1),P(`small`,null,T(e.code),1)]),P(`td`,null,T(e.schoolName),1),P(`td`,null,T(e.address),1),P(`td`,null,T(e.rooms?.length)+` 个 / `+T(e.totalCapacity)+` 席 `,1),P(`td`,null,[I(T(e.managerName),1),P(`small`,null,T(e.managerPhone),1)]),P(`td`,null,[F(U,{value:e.status},null,8,[`value`])])]))),128))])])]),F(dm,{page:O(m).page,"onUpdate:page":n[39]||=e=>O(m).page=e,"page-size":O(m).pageSize,"onUpdate:pageSize":n[40]||=e=>O(m).pageSize=e,total:O(m).total},null,8,[`page`,`page-size`,`total`])]),P(`section`,yJ,[P(`header`,null,[P(`div`,null,[n[131]||=P(`h2`,null,`考点变更审批台账`,-1),P(`p`,null,` 筛选结果 `+T(O(h).total)+` / 共 `+T(e.data.changeRequests?.length||0)+` 条 `,1)])]),P(`div`,bJ,[P(`label`,null,[n[132]||=P(`span`,null,`关键词`,-1),k(P(`input`,{"onUpdate:modelValue":n[41]||=e=>O(h).query=e,placeholder:`考点、代码、学校`},null,512),[[z,O(h).query]])]),P(`label`,null,[n[134]||=P(`span`,null,`申请类型`,-1),k(P(`select`,{"onUpdate:modelValue":n[42]||=e=>O(h).filters.type=e},[...n[133]||=[P(`option`,{value:``},`全部类型`,-1),P(`option`,{value:`create`},`新增`,-1),P(`option`,{value:`update`},`修改`,-1)]],512),[[B,O(h).filters.type]])]),P(`label`,null,[n[136]||=P(`span`,null,`审批状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[43]||=e=>O(h).filters.status=e},[...n[135]||=[P(`option`,{value:``},`全部状态`,-1),P(`option`,{value:`pending`},`待审批`,-1),P(`option`,{value:`approved`},`已通过`,-1),P(`option`,{value:`rejected`},`已退回`,-1)]],512),[[B,O(h).filters.status]])])]),P(`div`,xJ,[P(`label`,null,[P(`input`,{type:`checkbox`,onChange:n[44]||=e=>C(s.value,O(h).rows,e=>e.status===`pending`)},null,32),n[137]||=I(` 选择当前页待审项`,-1)]),P(`strong`,null,`已选 `+T(s.value.length)+` 条`,1),P(`button`,{disabled:!s.value.length||i.value,onClick:n[45]||=e=>fe(`rejected`)},` 批量退回`,8,SJ),P(`button`,{disabled:!s.value.length||i.value,onClick:n[46]||=e=>fe(`approved`)},` 批量通过 `,8,CJ)]),P(`div`,wJ,[P(`table`,null,[n[138]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`选择`),P(`th`,null,`类型`),P(`th`,null,`考点 / 学校`),P(`th`,null,`考场`),P(`th`,null,`状态`),P(`th`,null,`审批`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(O(h).rows,e=>(M(),N(`tr`,{key:e.id},[P(`td`,null,[k(P(`input`,{"onUpdate:modelValue":n[47]||=e=>s.value=e,type:`checkbox`,value:e.id,disabled:e.status!==`pending`},null,8,TJ),[[Cs,s.value]])]),P(`td`,null,T(e.requestType===`create`?`新增`:`修改`),1),P(`td`,null,[I(T(e.name),1),P(`small`,null,T(e.schoolName),1)]),P(`td`,null,T(e.rooms?.length)+` 个`,1),P(`td`,null,[F(U,{value:e.status},null,8,[`value`])]),P(`td`,null,[e.status===`pending`?(M(),N(`div`,EJ,[k(P(`input`,{"onUpdate:modelValue":t=>c[e.id]=t,placeholder:`审批意见`},null,8,DJ),[[z,c[e.id]]]),P(`button`,{onClick:t=>ue(e,`rejected`)},` 退回`,8,OJ),P(`button`,{onClick:t=>ue(e,`approved`)},` 通过 `,8,kJ)])):L(``,!0)])]))),128))])])]),F(dm,{page:O(h).page,"onUpdate:page":n[48]||=e=>O(h).page=e,"page-size":O(h).pageSize,"onUpdate:pageSize":n[49]||=e=>O(h).pageSize=e,total:O(h).total},null,8,[`page`,`page-size`,`total`])])],64)):e.page===`flows`?(M(),N(j,{key:4},[P(`div`,AJ,[P(`label`,null,[n[139]||=P(`span`,null,`关键词`,-1),k(P(`input`,{"onUpdate:modelValue":n[50]||=e=>O(g).query=e,placeholder:`考生、学校、考试、责任人或流程`},null,512),[[z,O(g).query]])]),P(`label`,null,[n[141]||=P(`span`,null,`业务类型`,-1),k(P(`select`,{"onUpdate:modelValue":n[51]||=e=>O(g).filters.type=e},[n[140]||=P(`option`,{value:``},`全部类型`,-1),(M(!0),N(j,null,A(S.value,e=>(M(),N(`option`,{key:e,value:e},T(e),9,jJ))),128))],512),[[B,O(g).filters.type]])]),P(`label`,null,[n[143]||=P(`span`,null,`流程状态`,-1),k(P(`select`,{"onUpdate:modelValue":n[52]||=e=>O(g).filters.status=e},[...n[142]||=[P(`option`,{value:``},`全部状态`,-1),P(`option`,{value:`pending`},`处理中`,-1),P(`option`,{value:`approved`},`已通过`,-1),P(`option`,{value:`rejected`},`已退回`,-1)]],512),[[B,O(g).filters.status]])]),P(`button`,{class:`table-action`,onClick:n[53]||=(...e)=>O(g).clear&&O(g).clear(...e)},` 清除筛选 `)]),P(`section`,MJ,[(M(!0),N(j,null,A(O(g).rows,e=>(M(),N(`article`,{key:e.id,class:`record-panel flow-card-vue`},[P(`header`,null,[P(`div`,null,[P(`span`,null,T(e.businessType),1),P(`h2`,null,T(e.candidateName||e.centerName||e.schoolName||e.id),1),P(`p`,null,T(e.examName)+` `+T(e.className),1)]),F(U,{value:e.status},null,8,[`value`])]),P(`div`,NJ,[(M(!0),N(j,null,A(e.steps,t=>(M(),N(`span`,{key:t.position,class:be({done:t.positionc[e.id]=t,placeholder:`处理意见`},null,8,PJ),[[z,c[e.id]]])]),e.status===`pending`?(M(),N(`button`,{key:0,class:`table-action`,onClick:t=>he(e)},` 转交`,8,FJ)):L(``,!0),e.status===`pending`?(M(),N(`button`,{key:1,class:`table-action`,onClick:t=>me(e,`rejected`)},` 退回`,8,IJ)):L(``,!0),e.status===`pending`?(M(),N(`button`,{key:2,class:`table-action`,onClick:t=>me(e,`approved`)},` 通过 `,8,LJ)):L(``,!0)])]))),128))]),F(dm,{page:O(g).page,"onUpdate:page":n[54]||=e=>O(g).page=e,"page-size":O(g).pageSize,"onUpdate:pageSize":n[55]||=e=>O(g).pageSize=e,total:O(g).total},null,8,[`page`,`page-size`,`total`])],64)):e.page===`flow-design`?(M(),N(`section`,RJ,[(M(!0),N(j,null,A(e.data.workflows,e=>(M(),N(`form`,{key:e.businessType,class:`business-form`,onSubmit:As(t=>ge(e),[`prevent`])},[P(`header`,null,[P(`div`,null,[P(`p`,null,T(e.businessType),1),P(`h2`,null,T(e.name),1)]),P(`button`,{type:`button`,class:`app-button`,onClick:t=>_e(e)},` 添加步骤 `,8,BJ)]),P(`label`,null,[n[144]||=P(`span`,null,`流程名称`,-1),k(P(`input`,{"onUpdate:modelValue":t=>e.name=t,required:``},null,8,VJ),[[z,e.name]])]),(M(!0),N(j,null,A(e.steps,(t,r)=>(M(),N(`div`,{key:r,class:`workflow-step-row-vue`},[P(`b`,null,T(r+1),1),k(P(`input`,{"onUpdate:modelValue":e=>t.name=e,required:``},null,8,HJ),[[z,t.name]]),k(P(`select`,{"onUpdate:modelValue":e=>t.adminLevel=e},[...n[145]||=[P(`option`,{value:`class`},`班级管理员`,-1),P(`option`,{value:`school`},`校级管理员`,-1),P(`option`,{value:`super`},`超级管理员`,-1)]],8,UJ),[[B,t.adminLevel]]),P(`button`,{type:`button`,onClick:t=>e.steps.splice(r,1)},` × `,8,WJ)]))),128)),n[146]||=P(`button`,{class:`app-button app-button--primary`},`保存流程`,-1)],40,zJ))),128))])):e.page===`number-rules`?(M(),N(j,{key:6},[n[159]||=P(`section`,{class:`account-number-principle-vue`},[P(`span`,null,`ONE CANDIDATE · ONE NUMBER`),P(`h2`,null,`超级管理员只设计号码规则`),P(`p`,null,`学校按班级提交申领,最终批准后系统才创建长期考生账户。`)],-1),P(`div`,GJ,[P(`form`,{class:`business-form`,onSubmit:As(ve,[`prevent`])},[n[155]||=P(`h2`,null,`报名号组成`,-1),P(`div`,KJ,[P(`label`,null,[n[147]||=P(`span`,null,`规则名称`,-1),k(P(`input`,{"onUpdate:modelValue":n[56]||=e=>d.name=e,required:``},null,512),[[z,d.name]])]),P(`label`,null,[n[148]||=P(`span`,null,`分隔符`,-1),k(P(`input`,{"onUpdate:modelValue":n[57]||=e=>d.separator=e,maxlength:`3`},null,512),[[z,d.separator]])])]),P(`div`,qJ,[P(`label`,null,[k(P(`input`,{"onUpdate:modelValue":n[58]||=e=>d.year=e,type:`checkbox`},null,512),[[Cs,d.year]]),n[149]||=I(` 年份 `,-1),k(P(`input`,{"onUpdate:modelValue":n[59]||=e=>d.yearWidth=e,type:`number`,min:`2`,max:`6`},null,512),[[z,d.yearWidth]])]),P(`label`,null,[k(P(`input`,{"onUpdate:modelValue":n[60]||=e=>d.school_code=e,type:`checkbox`},null,512),[[Cs,d.school_code]]),n[150]||=I(` 学校代码`,-1)]),P(`label`,null,[k(P(`input`,{"onUpdate:modelValue":n[61]||=e=>d.gender=e,type:`checkbox`},null,512),[[Cs,d.gender]]),n[151]||=I(` 性别 M/F/X`,-1)]),P(`label`,null,[k(P(`input`,{"onUpdate:modelValue":n[62]||=e=>d.literal=e,type:`checkbox`},null,512),[[Cs,d.literal]]),n[152]||=I(` 固定值 `,-1),k(P(`input`,{"onUpdate:modelValue":n[63]||=e=>d.literalValue=e},null,512),[[z,d.literalValue]])]),P(`label`,null,[n[153]||=P(`input`,{type:`checkbox`,checked:``,disabled:``},null,-1),n[154]||=I(` 流水号 `,-1),k(P(`input`,{"onUpdate:modelValue":n[64]||=e=>d.sequenceWidth=e,type:`number`,min:`1`,max:`12`},null,512),[[z,d.sequenceWidth]])])]),n[156]||=P(`button`,{class:`app-button app-button--primary`},`保存并启用规则`,-1)],32),P(`aside`,null,[n[157]||=P(`span`,null,`审批后账户样例`,-1),P(`strong`,null,T(e.data.preview||`2026-HZ01-X-0001`),1),n[158]||=P(`p`,null,`报名号创建后保持不变。`,-1)])])],64)):L(``,!0)]))}},YJ={key:4,class:`page-state page-state--empty`},XJ={__name:`AdminPage`,props:{page:{type:String,required:!0}},setup(e){let t=e,n=D(!0),r=D(``),i=D({}),a=new Set([`dashboard`,`schools`,`organization`,`admins`,`account-batches`,`candidates`,`indicator-qualifications`,`registrations`,`payments`,`security`]),o=new Set([`exams`,`admit`,`results`]),s=new Set([`admission-settings`,`admission-accounts`,`admission-plans`,`admission-reporting`,`admission-supervision`]),c=new Set([`notices`,`centers`,`flows`,`flow-design`,`number-rules`]),l=R(()=>({dashboard:[`考务工作台`,`掌握当前报名、审核和发布任务。`],schools:[`学校管理`,`创建和维护学校档案及公开状态。`],organization:[`本校组织与权限`,`维护本校班级和班级管理员。`],admins:[`分级管理员`,`维护管理员账号和权限范围。`],"account-batches":[`批量报名号申领`,`按班级提交申领人数并跟踪审批结果。`],candidates:[`考生资料审核`,`核验实名、学籍与联系信息。`],"indicator-qualifications":[`指标分配资格确认`,`由生源校逐人确认指标分配资格。`],registrations:[`考试报名审核`,`审核考试、科目和报名状态。`],payments:[`缴费名单`,`查看、导出并维护线下缴费状态。`],admit:[`准考证编排`,`查看或批量编排准考证。`],exams:[`考试与科目`,`创建考试并配置科目和时间。`],results:[`成绩管理中心`,`录入、发布并分析考试成绩。`],"admission-settings":[`录取设置`,`设置志愿窗口和录取阶段。`],"admission-accounts":[`招生学校账户`,`创建、停用和维护招生学校账户。`],"admission-plans":[`招生计划`,`审核招生计划并查看完成率。`],"admission-reporting":[`报到与补录`,`审批报到统计和补录决定。`],"admission-supervision":[`投档与退档监督`,`监督投档记录并审批特殊退档。`],notices:[`通知发布`,`维护草稿、发布通知和公开状态。`],centers:[`考务场所档案`,`管理考点、考场容量和变更申请。`],flows:[`流程中心`,`处理、转交或监督审批流程。`],"flow-design":[`流程设计`,`配置各类业务审批步骤。`],"number-rules":[`报名号规则`,`设计报名号组成和流水规则。`],security:[`账户安全`,`修改密码并管理二次验证。`]})[t.page]||[t.page,`管理当前业务数据。`]);function u(){return t.page===`admit`?`admission-arrangements`:t.page===`flows`?`workflow-instances`:t.page===`flow-design`?`workflows`:t.page===`account-batches`?`candidate-account-batches`:t.page===`organization`?`school-organization`:t.page.startsWith(`admission-`)?`admissions`:t.page}async function d(){n.value=!0,r.value=``;try{i.value=t.page===`security`?await V(`/api/auth/totp`):t.page===`results`?{exams:H.state.publicData.exams||[],results:[],message:`请选择考试后加载成绩`}:await V(`/api/admin/${u()}`)}catch(e){r.value=e.message}finally{n.value=!1}}return Jn(()=>t.page,d),Hr(d),(t,u)=>(M(),ka(wf,{role:`admin`,page:e.page,title:l.value[0],description:l.value[1]},{default:Bn(()=>[F(hd,{loading:n.value,error:r.value,onRetry:d},{default:Bn(()=>[O(a).has(e.page)?(M(),ka(rg,{key:0,page:e.page,data:i.value,onReload:d},null,8,[`page`,`data`])):O(o).has(e.page)?(M(),ka(T_,{key:1,page:e.page,data:i.value,onReload:d},null,8,[`page`,`data`])):O(s).has(e.page)?(M(),ka(ty,{key:2,page:e.page,data:i.value,onReload:d},null,8,[`page`,`data`])):O(c).has(e.page)?(M(),ka(JJ,{key:3,page:e.page,data:i.value,onReload:d},null,8,[`page`,`data`])):(M(),N(`div`,YJ,[...u[0]||=[P(`strong`,null,`页面配置不存在`,-1),P(`p`,null,`请从左侧导航重新选择业务页面。`,-1)]]))]),_:1},8,[`loading`,`error`])]),_:1},8,[`page`,`title`,`description`]))}},ZJ={class:`admission-command-banner`},QJ={class:`admission-progress-grid`},$J={class:`admission-dashboard-grid`},eY={class:`record-panel`},tY={class:`record-panel`},nY=[`onClick`],rY=[`value`],iY={class:`plan-category-list`},aY=[`onClick`],oY={class:`form-grid`},sY=[`onUpdate:modelValue`],cY=[`onUpdate:modelValue`],lY=[`onUpdate:modelValue`,`onChange`],uY={key:0},dY=[`onUpdate:modelValue`,`onChange`],fY=[`value`],pY={key:1},mY=[`onUpdate:modelValue`,`disabled`],hY=[`value`],gY=[`onClick`],_Y=[`onUpdate:modelValue`],vY=[`value`],yY=[`onUpdate:modelValue`],bY=[`onClick`],xY=[`disabled`],SY={class:`record-panel admission-plan-history`},CY={class:`table-scroll`},wY={key:0,class:`admission-export-bar`},TY=[`value`],EY=[`href`],DY={class:`record-panel ledger-panel`},OY={class:`ledger-toolbar`},kY=[`value`],AY={class:`ledger-bulk`},jY={class:`table-scroll`},MY=[`value`,`disabled`],NY=[`onSubmit`],PY=[`onUpdate:modelValue`],FY=[`onUpdate:modelValue`],IY={key:1},LY={key:0},RY={class:`reporting-stat-strip`},zY={key:0,class:`reporting-tools`},BY=[`href`],VY={class:`app-button`},HY=[`onChange`],UY=[`onSubmit`],WY=[`onSubmit`],GY={class:`ledger-bulk`},KY=[`onClick`],qY=[`onClick`],JY={class:`table-scroll`},YY=[`onUpdate:modelValue`],XY=[`onUpdate:modelValue`],ZY=[`onUpdate:modelValue`],QY=[`onClick`],$Y=[`onSubmit`],eX={name:`supplement`},tX=[`disabled`],nX={key:4,class:`form-callout`},rX={key:0,class:`page-state page-state--empty`},iX={key:4,class:`notice-template-studio`},aX=[`value`],oX={class:`form-grid`},sX={class:`form-grid`},cX=[`disabled`],lX={__name:`AdmissionPage`,props:{page:{type:String,required:!0}},setup(e){let t=e,n=ec(),r=D(!0),i=D(!1),a=D(``),o=D({}),s=D(``),c=D(`all`),l=D(``),u=D([]),d=E({}),f=E({}),p=E({examId:``,code:``,preview:null,status:`reported`,note:``}),m=E({examId:``,note:``,categories:[]}),h=E({examId:``,eyebrow:`ADMISSION NOTICE`,title:`录 取 通 知 书`,body:``,footer:``,primaryColor:`#8d2028`,accentColor:`#c9a45b`}),g=R(()=>({dashboard:[`招生工作台`,`查看本校计划完成率、报到进度和待办事项。`],plans:[`本校招生计划`,`提交普通生、特长生计划及指标分配。`],placements:[`投档考生审核`,`核对投档考生资料和当次成绩。`],reporting:[`考生报到`,`暂存报到状态,支持 Excel 与通知书扫码核验。`],"notice-template":[`录取通知书模板`,`设计本校录取通知书标题、正文与配色。`]})[t.page]),_=R(()=>(o.value.placements||[]).filter(e=>{let t=`${e.candidate?.name||``} ${e.candidate?.registrationNumber||``} ${e.examName||``} ${e.payload?.categoryName||``} ${e.candidate?.specialtyLabel||``}`.toLowerCase();return(!s.value||t.includes(s.value.toLowerCase()))&&(c.value===`all`||e.status===c.value)&&(!l.value||e.examId===l.value)})),v=R(()=>[...new Map((o.value.placements||[]).map(e=>[e.examId,e.examName])).entries()]),y=R(()=>_.value.filter(e=>e.status===`school_review`&&u.value.includes(e.id))),b=R(()=>h.body.replaceAll(`{{考生姓名}}`,`张同学`).replaceAll(`{{考试名称}}`,`示例考试`).replaceAll(`{{录取学校}}`,o.value.school?.name||`本校`).replaceAll(`{{录取类别}}`,`普通生`));function x(){return{name:`普通生`,quota:``,kind:`general`,specialtyCategory:``,specialtyType:``,indicatorAllocations:[]}}function S(){m.categories.push(x())}function C(e){e.indicatorAllocations.push({sourceSchoolId:``,quota:``})}function ee(e){e.specialtyCategory=``,e.specialtyType=``}async function te(){r.value=!0,a.value=``,s.value=``,c.value=`all`,l.value=``,u.value=[];try{o.value=await V(`/api/admission/${t.page===`dashboard`?`context`:t.page}`),ne()}catch(e){a.value=e.message}finally{r.value=!1}}function ne(){if(t.page===`plans`&&(m.examId=o.value.exams?.[0]?.id||``,m.note=``,m.categories=[x()]),t.page===`placements`)for(let e of o.value.placements||[])d[e.id]={decision:`accept`,note:``};if(t.page===`reporting`)for(let e of o.value.batches||[])for(let t of e.rows||[])f[t.placementId]={status:t.status,note:t.note||``,selected:!1};t.page===`notice-template`&&Object.assign(h,{examId:o.value.exams?.[0]?.id||``,eyebrow:o.value.template?.eyebrow||`ADMISSION NOTICE`,title:o.value.template?.title||`录 取 通 知 书`,body:o.value.template?.body||``,footer:o.value.template?.footer||``,primaryColor:o.value.template?.primaryColor||`#8d2028`,accentColor:o.value.template?.accentColor||`#c9a45b`})}async function re(e,t){i.value=!0,a.value=``;try{await e(),t&&Wl.notify(t),await te()}catch(e){a.value=e.message}finally{i.value=!1}}function ie(){let e=m.categories.map((e,t)=>({code:`category_${t+1}`,name:String(e.name).trim(),quota:Number(e.quota||0),isSpecialty:e.kind===`specialty`,specialtyCategory:e.kind===`specialty`?e.specialtyCategory:``,specialtyType:e.kind===`specialty`?e.specialtyType:``,indicatorAllocations:e.indicatorAllocations.map(e=>({sourceSchoolId:e.sourceSchoolId,quota:Number(e.quota||0)})).filter(e=>e.sourceSchoolId&&e.quota>0)})).filter(e=>e.name&&e.quota>0);if(!e.length){a.value=`请至少添加一个有效招生类别`;return}if(e.some(e=>e.isSpecialty&&(!e.specialtyCategory||!e.specialtyType))){a.value=`特长生类别必须填写特长大类和小类`;return}re(()=>V(`/api/admission/plans`,{method:`POST`,body:{examId:m.examId,note:m.note,categories:e}}),`招生计划已提交审核`)}function ae(e){let t=d[e.id];if(t.decision===`withdraw`&&t.note.trim().length<8){a.value=`申请退档须填写至少 8 个字的特殊理由`;return}re(()=>V(`/api/admission/placements/${e.id}`,{method:`PATCH`,body:t}),t.decision===`accept`?`已接收投档考生`:`退档申请已提交`)}function oe(e){if(!y.value.length){a.value=`请先选择待审核考生`;return}let t=``;if(e===`withdraw`){if(t=window.prompt(`为所选 ${y.value.length} 名考生填写统一退档理由(至少 8 个字)`,``)||``,!t)return;if(t.trim().length<8){a.value=`退档理由至少需要 8 个字`;return}}else if(!window.confirm(`确认接收所选 ${y.value.length} 名投档考生吗?`))return;re(()=>V(`/api/admission/placements/bulk`,{method:`POST`,body:{ids:y.value.map(e=>e.id),decision:e,note:t}}),e===`accept`?`批量接收完成`:`批量退档申请已提交`)}function se(e){let t=_.value.filter(e=>e.status===`school_review`).map(e=>e.id);u.value=e?[...new Set([...u.value,...t])]:u.value.filter(e=>!t.includes(e))}function ce(e){let t=e.rows.map(e=>({placementId:e.placementId,status:f[e.placementId].status,note:f[e.placementId].note}));re(()=>V(`/api/admission/reporting/draft`,{method:`PUT`,body:{examId:e.exam.id,rows:t}}),`报到状态已暂存`)}function le(e,t){for(let n of e.rows)f[n.placementId]?.selected&&(f[n.placementId].status=t)}function ue(e){window.confirm(`确认正式提交“${e.exam.name}”全部报到情况吗?提交后将不能继续编辑。`)&&re(()=>V(`/api/admission/reporting/submit`,{method:`POST`,body:{examId:e.exam.id}}),`报到情况已正式提交`)}function w(e,t){let n=new FormData(t.currentTarget);re(()=>V(`/api/admission/reporting/decision`,{method:`POST`,body:{examId:e.exam.id,supplement:n.get(`supplement`)===`true`,decisionNote:n.get(`decisionNote`)}}),`学校补录决定已提交`)}async function de(e,t){let n=t.target.files?.[0];if(n){i.value=!0,a.value=``;try{let t=await V(`/api/admission/reporting/import?examId=${encodeURIComponent(e.exam.id)}`,{method:`POST`,headers:{"Content-Type":`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`},body:await n.arrayBuffer()});Wl.notify(`Excel 已导入暂存`,`读取 ${t.count||0} 行,更新 ${t.changedCount||0} 人`),await te()}catch(e){a.value=e.message}finally{i.value=!1,t.target.value=``}}}function fe(e){p.examId=e.exam.id,re(async()=>{p.preview=await V(`/api/admission/reporting/scan-preview`,{method:`POST`,body:{code:p.code,examId:e.exam.id}})},`通知书核验通过`)}async function pe(){i.value=!0,a.value=``;try{await V(`/api/admission/reporting/scan`,{method:`POST`,body:{examId:p.examId,code:p.code,status:p.status,note:p.note}}),Object.assign(p,{examId:``,code:``,preview:null,status:`reported`,note:``}),Wl.notify(`扫码结果已暂存`),await te()}catch(e){a.value=e.message}finally{i.value=!1}}function me(){re(()=>V(`/api/admission/notice-template`,{method:`PUT`,body:h}),`录取通知书模板已保存`)}return Jn(()=>t.page,te),Hr(te),(t,x)=>(M(),ka(wf,{role:`admission_school`,page:e.page,title:g.value[0],description:g.value[1]},{default:Bn(()=>[F(hd,{loading:r.value,error:a.value,onRetry:te},{default:Bn(()=>[e.page===`dashboard`?(M(),N(j,{key:0},[P(`section`,ZJ,[P(`div`,null,[x[24]||=P(`span`,null,`ADMISSION OFFICE`,-1),P(`h2`,null,T(o.value.school?.name),1),x[25]||=P(`p`,null,`学校只接收超级管理员正式投档的数据,不可查看考生完整志愿表。`,-1)])]),P(`section`,QJ,[(M(!0),N(j,null,A(o.value.plans,e=>(M(),N(`article`,{key:e.examId},[P(`header`,null,[P(`span`,null,T(e.examName),1),P(`strong`,null,T(e.progress?.admissionRate||0)+`%`,1)]),P(`div`,null,[P(`i`,{style:he({width:`${Math.min(100,e.progress?.admissionRate||0)}%`})},null,4)]),P(`p`,null,`计划 `+T(e.progress?.totalQuota||0)+` 人 · 正式录取 `+T(e.progress?.finalCount||0)+` 人 · 已报到 `+T(e.progress?.reportedCount||0)+` 人`,1),P(`small`,null,`实际报到完成率 `+T(e.progress?.reportingRate||0)+`%`,1)]))),128))]),P(`div`,$J,[P(`section`,eY,[P(`header`,null,[P(`div`,null,[x[26]||=P(`h2`,null,`本校工作入口`,-1),P(`p`,null,T(o.value.exams?.length||0)+` 场考试已启用招生`,1)])]),P(`button`,{class:`dashboard-row`,onClick:x[0]||=e=>O(n).push(`/admission/plans`)},[...x[27]||=[P(`b`,null,`计`,-1),P(`span`,null,[P(`strong`,null,`上传招生计划`),P(`small`,null,`类别、特长资格与指标分配`)],-1),P(`i`,null,`→`,-1)]]),P(`button`,{class:`dashboard-row`,onClick:x[1]||=e=>O(n).push(`/admission/placements`)},[...x[28]||=[P(`b`,null,`审`,-1),P(`span`,null,[P(`strong`,null,`审核投档考生`),P(`small`,null,`接收或申请特殊退档`)],-1),P(`i`,null,`→`,-1)]]),P(`button`,{class:`dashboard-row`,onClick:x[2]||=e=>O(n).push(`/admission/reporting`)},[...x[29]||=[P(`b`,null,`到`,-1),P(`span`,null,[P(`strong`,null,`登记考生报到`),P(`small`,null,`台账、Excel 与通知书核验`)],-1),P(`i`,null,`→`,-1)]])]),P(`section`,tY,[P(`header`,null,[P(`div`,null,[x[30]||=P(`h2`,null,`系统通知`,-1),P(`p`,null,T(o.value.notifications?.length||0)+` 条`,1)])]),(M(!0),N(j,null,A(o.value.notifications,e=>(M(),N(`button`,{key:e.id,class:`dashboard-row`,onClick:t=>O(n).push(`/announcements/${e.id}`)},[P(`time`,null,T(O(ru)(e.publishAt)),1),P(`span`,null,[P(`strong`,null,T(e.title),1)]),x[31]||=P(`i`,null,`→`,-1)],8,nY))),128))])])],64)):e.page===`plans`?(M(),N(j,{key:1},[P(`form`,{class:`business-form admission-plan-form`,onSubmit:As(ie,[`prevent`])},[x[44]||=P(`header`,null,[P(`div`,null,[P(`p`,null,`PLAN SUBMISSION`),P(`h2`,null,`提交本校招生计划`),P(`span`,null,`提交后由超级管理员审核;各类别指标合计不得超过该类别计划人数。`)])],-1),P(`label`,null,[x[32]||=P(`span`,null,`招生考试`,-1),k(P(`select`,{"onUpdate:modelValue":x[3]||=e=>m.examId=e,required:``},[(M(!0),N(j,null,A(o.value.exams,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.code)+` · `+T(e.name),9,rY))),128))],512),[[B,m.examId]])]),P(`div`,iY,[(M(!0),N(j,null,A(m.categories,(e,t)=>(M(),N(`article`,{key:t,class:`plan-category-card`},[P(`header`,null,[P(`strong`,null,`招生类别 `+T(t+1),1),P(`button`,{type:`button`,onClick:e=>m.categories.splice(t,1)},`移除`,8,aY)]),P(`div`,oY,[P(`label`,null,[x[33]||=P(`span`,null,`类别名称`,-1),k(P(`input`,{"onUpdate:modelValue":t=>e.name=t,required:``,placeholder:`例如:普通生`},null,8,sY),[[z,e.name]])]),P(`label`,null,[x[34]||=P(`span`,null,`计划人数`,-1),k(P(`input`,{"onUpdate:modelValue":t=>e.quota=t,type:`number`,min:`1`,required:``},null,8,cY),[[z,e.quota]])]),P(`label`,null,[x[36]||=P(`span`,null,`类别性质`,-1),k(P(`select`,{"onUpdate:modelValue":t=>e.kind=t,onChange:t=>ee(e)},[...x[35]||=[P(`option`,{value:`general`},`普通 / 政策类`,-1),P(`option`,{value:`specialty`},`特长生`,-1)]],40,lY),[[B,e.kind]])]),e.kind===`specialty`?(M(),N(`label`,uY,[x[38]||=P(`span`,null,`特长大类`,-1),k(P(`select`,{"onUpdate:modelValue":t=>e.specialtyCategory=t,required:``,onChange:t=>e.specialtyType=``},[x[37]||=P(`option`,{value:``},`请选择`,-1),(M(!0),N(j,null,A(O(Ef),e=>(M(),N(`option`,{key:e.code,value:e.code},T(e.name),9,fY))),128))],40,dY),[[B,e.specialtyCategory]])])):L(``,!0),e.kind===`specialty`?(M(),N(`label`,pY,[x[40]||=P(`span`,null,`特长项目`,-1),k(P(`select`,{"onUpdate:modelValue":t=>e.specialtyType=t,required:``,disabled:!e.specialtyCategory},[x[39]||=P(`option`,{value:``},`请选择`,-1),(M(!0),N(j,null,A(O(Df)(e.specialtyCategory),e=>(M(),N(`option`,{key:e[0],value:e[0]},T(e[1]),9,hY))),128))],8,mY),[[B,e.specialtyType]])])):L(``,!0)]),P(`section`,null,[P(`header`,null,[x[41]||=P(`div`,null,[P(`strong`,null,`生源校指标`),P(`small`,null,`仅填写需要定向分配的学校`)],-1),P(`button`,{type:`button`,onClick:t=>C(e)},`添加指标`,8,gY)]),(M(!0),N(j,null,A(e.indicatorAllocations,(t,n)=>(M(),N(`div`,{key:n,class:`allocation-row`},[k(P(`select`,{"onUpdate:modelValue":e=>t.sourceSchoolId=e},[x[42]||=P(`option`,{value:``},`选择生源学校`,-1),(M(!0),N(j,null,A(o.value.sourceSchools,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.code)+` · `+T(e.name),9,vY))),128))],8,_Y),[[B,t.sourceSchoolId]]),k(P(`input`,{"onUpdate:modelValue":e=>t.quota=e,type:`number`,min:`1`,placeholder:`名额`},null,8,yY),[[z,t.quota]]),P(`button`,{type:`button`,onClick:t=>e.indicatorAllocations.splice(n,1)},`移除`,8,bY)]))),128))])]))),128))]),P(`button`,{class:`app-button`,type:`button`,onClick:S},`+ 添加招生类别`),P(`label`,null,[x[43]||=P(`span`,null,`计划说明`,-1),k(P(`textarea`,{"onUpdate:modelValue":x[4]||=e=>m.note=e,rows:`3`,placeholder:`政策依据或补充说明`},null,512),[[z,m.note]])]),P(`button`,{class:`app-button app-button--primary`,disabled:i.value},`提交超级管理员审核`,8,xY)],32),P(`section`,SY,[x[46]||=P(`header`,null,[P(`div`,null,[P(`h2`,null,`提交记录`),P(`p`,null,`本校历次计划及实时完成率`)])],-1),P(`div`,CY,[P(`table`,null,[x[45]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`考试`),P(`th`,null,`类别计划`),P(`th`,null,`完成进度`),P(`th`,null,`状态`),P(`th`,null,`审核意见`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(o.value.plans,e=>(M(),N(`tr`,{key:e.id},[P(`td`,null,T(o.value.exams?.find(t=>t.id===e.examId)?.name||e.examId),1),P(`td`,null,[(M(!0),N(j,null,A(e.payload?.categories,e=>(M(),N(`span`,{key:e.code,class:`table-stack`},[P(`strong`,null,T(e.name)+` `+T(e.quota)+` 人`,1),P(`small`,null,T(e.isSpecialty?`特长生`:`普通 / 政策类`),1)]))),128))]),P(`td`,null,[P(`strong`,null,T(e.progress?.admissionRate||0)+`%`,1),P(`small`,null,`录取 `+T(e.progress?.finalCount||0)+` / `+T(e.progress?.totalQuota||0),1)]),P(`td`,null,[F(U,{value:e.status},null,8,[`value`])]),P(`td`,null,T(e.payload?.reviewNote||`等待审核`),1)]))),128))])])])])],64)):e.page===`placements`?(M(),N(j,{key:2},[o.value.completedExams?.length?(M(),N(`section`,wY,[x[48]||=P(`div`,null,[P(`span`,null,`FINAL ROSTER`),P(`strong`,null,`正式录取考生信息`),P(`small`,null,`仅录取工作结束后开放下载。`)],-1),k(P(`select`,{"onUpdate:modelValue":x[5]||=e=>l.value=e},[x[47]||=P(`option`,{value:``},`选择已完成考试`,-1),(M(!0),N(j,null,A(o.value.completedExams,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,TY))),128))],512),[[B,l.value]]),P(`a`,{class:be([`app-button app-button--primary`,{disabled:!l.value}]),href:`/api/admission/placements/export?examId=${encodeURIComponent(l.value)}`},`下载 Excel`,10,EY)])):L(``,!0),P(`section`,DY,[P(`header`,null,[P(`div`,null,[x[49]||=P(`h2`,null,`本校投档审核台账`,-1),P(`p`,null,T(o.value.placements?.filter(e=>e.status===`school_review`).length||0)+` 人待审核 / 共 `+T(o.value.placements?.length||0)+` 人`,1)])]),P(`div`,OY,[k(P(`input`,{"onUpdate:modelValue":x[6]||=e=>s.value=e,placeholder:`搜索姓名、报名号、考试、类别或资格`},null,512),[[z,s.value]]),k(P(`select`,{"onUpdate:modelValue":x[7]||=e=>l.value=e},[x[50]||=P(`option`,{value:``},`全部考试`,-1),(M(!0),N(j,null,A(v.value,([e,t])=>(M(),N(`option`,{key:e,value:e},T(t),9,kY))),128))],512),[[B,l.value]]),k(P(`select`,{"onUpdate:modelValue":x[8]||=e=>c.value=e},[...x[51]||=[P(`option`,{value:`all`},`全部状态`,-1),P(`option`,{value:`school_review`},`待学校审核`,-1),P(`option`,{value:`admitted`},`已接收`,-1),P(`option`,{value:`withdrawal_pending`},`退档待审`,-1),P(`option`,{value:`final`},`正式录取`,-1)]],512),[[B,c.value]])]),P(`div`,AY,[P(`label`,null,[P(`input`,{type:`checkbox`,onChange:x[9]||=e=>se(e.target.checked)},null,32),x[52]||=I(`选择当前筛选结果中的待审核考生`,-1)]),P(`strong`,null,`已选 `+T(y.value.length)+` 人`,1),P(`button`,{class:`app-button`,onClick:x[10]||=e=>oe(`withdraw`)},`批量申请退档`),P(`button`,{class:`app-button app-button--primary`,onClick:x[11]||=e=>oe(`accept`)},`批量接收`)]),P(`div`,jY,[P(`table`,null,[x[56]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`选择`),P(`th`,null,`考生 / 考试`),P(`th`,null,`资格`),P(`th`,null,`当次成绩`),P(`th`,null,`投档类别`),P(`th`,null,`状态`),P(`th`,null,`审核`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(_.value,e=>(M(),N(`tr`,{key:e.id},[P(`td`,null,[k(P(`input`,{"onUpdate:modelValue":x[12]||=e=>u.value=e,type:`checkbox`,value:e.id,disabled:e.status!==`school_review`},null,8,MY),[[Cs,u.value]])]),P(`td`,null,[P(`strong`,null,T(e.candidate?.name),1),P(`small`,null,T(e.candidate?.registrationNumber)+` · `+T(e.candidate?.idNumberMasked),1),P(`small`,null,T(e.examName),1)]),P(`td`,null,[I(T(e.candidate?.specialtyLabel||`普通生`),1),P(`small`,null,T(e.candidate?.policyEligibility),1)]),P(`td`,null,[(M(!0),N(j,null,A(e.results,e=>(M(),N(`span`,{key:e.subjectId,class:`table-stack`},T(e.subjectName)+` `+T(e.score),1))),128)),P(`strong`,null,`投档分 `+T(e.payload?.totalScore)+` · 特征分 `+T(e.featureScore||0),1)]),P(`td`,null,[I(T(e.payload?.categoryName),1),P(`small`,null,`第 `+T(e.payload?.preferenceOrder)+` 志愿`,1)]),P(`td`,null,[F(U,{value:e.status},null,8,[`value`])]),P(`td`,null,[e.status===`school_review`?(M(),N(`form`,{key:0,class:`row-review-form`,onSubmit:As(t=>ae(e),[`prevent`])},[k(P(`select`,{"onUpdate:modelValue":t=>d[e.id].decision=t},[...x[53]||=[P(`option`,{value:`accept`},`接收`,-1),P(`option`,{value:`withdraw`},`申请退档`,-1)]],8,PY),[[B,d[e.id].decision]]),k(P(`input`,{"onUpdate:modelValue":t=>d[e.id].note=t,placeholder:`退档理由至少 8 字`},null,8,FY),[[z,d[e.id].note]]),x[54]||=P(`button`,null,`确认`,-1)],40,NY)):(M(),N(`small`,IY,T(e.payload?.schoolDecisionNote||`已处理`),1))])]))),128)),_.value.length?L(``,!0):(M(),N(`tr`,LY,[...x[55]||=[P(`td`,{colspan:`7`},`没有符合条件的记录`,-1)]]))])])])])],64)):e.page===`reporting`?(M(),N(j,{key:3},[(M(!0),N(j,null,A(o.value.batches,e=>(M(),N(`section`,{key:`${e.exam.id}-${e.round}`,class:`reporting-workbench`},[P(`header`,null,[P(`div`,null,[P(`span`,null,T(e.exam.code)+` · 第 `+T(e.round)+` 轮`,1),P(`h2`,null,T(e.exam.name),1),P(`p`,null,`计划 `+T(e.progress?.totalQuota)+` 人,正式录取 `+T(e.progress?.finalCount)+` 人,已报到 `+T(e.progress?.reportedCount)+` 人。`,1)]),P(`strong`,null,[I(T(e.progress?.reportingRate||0)+`%`,1),x[57]||=P(`small`,null,`计划报到完成率`,-1)])]),P(`div`,RY,[P(`span`,null,[x[58]||=I(`正式录取 `,-1),P(`b`,null,T(e.progress?.finalCount),1)]),P(`span`,null,[x[59]||=I(`已报到 `,-1),P(`b`,null,T(e.progress?.reportedCount),1)]),P(`span`,null,[x[60]||=I(`未报到 `,-1),P(`b`,null,T(e.progress?.notReportedCount),1)]),P(`span`,null,[x[61]||=I(`计划缺额 `,-1),P(`b`,null,T(e.progress?.reportingGap),1)]),F(U,{value:e.status},null,8,[`value`])]),[`draft`,`rejected`].includes(e.status)?(M(),N(`section`,zY,[P(`div`,null,[x[63]||=P(`strong`,null,`Excel 批量维护`,-1),x[64]||=P(`small`,null,`导入只暂存,不会直接提交。`,-1),P(`span`,null,[P(`a`,{class:`app-button`,href:`/api/admission/reporting/export?examId=${encodeURIComponent(e.exam.id)}`},`导出 Excel`,8,BY),P(`label`,VY,[x[62]||=I(`导入暂存`,-1),P(`input`,{type:`file`,accept:`.xlsx`,hidden:``,onChange:t=>de(e,t)},null,40,HY)])])]),P(`form`,{onSubmit:As(t=>fe(e),[`prevent`])},[x[65]||=P(`strong`,null,`通知书二维码核验`,-1),x[66]||=P(`small`,null,`粘贴 AN 防伪码或二维码链接,核对身份后再暂存。`,-1),k(P(`input`,{"onUpdate:modelValue":x[13]||=e=>p.code=e,required:``,placeholder:`AN 防伪码或二维码链接`},null,512),[[z,p.code]]),x[67]||=P(`button`,{class:`app-button`},`核验`,-1)],40,UY)])):L(``,!0),p.preview&&p.examId===e.exam.id?(M(),N(`form`,{key:1,class:`scan-preview`,onSubmit:As(pe,[`prevent`])},[P(`header`,null,[x[68]||=P(`div`,null,[P(`span`,null,`NOTICE VERIFIED`),P(`h3`,null,`核对考生报到信息`)],-1),P(`button`,{type:`button`,onClick:x[14]||=e=>p.preview=null},`关闭`)]),P(`dl`,null,[P(`div`,null,[x[69]||=P(`dt`,null,`考生`,-1),P(`dd`,null,T(p.preview.row?.name),1)]),P(`div`,null,[x[70]||=P(`dt`,null,`报名号`,-1),P(`dd`,null,T(p.preview.row?.candidateNumber),1)]),P(`div`,null,[x[71]||=P(`dt`,null,`通知书`,-1),P(`dd`,null,T(p.preview.row?.noticeNumber),1)]),P(`div`,null,[x[72]||=P(`dt`,null,`录取类别`,-1),P(`dd`,null,T(p.preview.row?.categoryName),1)])]),k(P(`select`,{"onUpdate:modelValue":x[15]||=e=>p.status=e},[...x[73]||=[P(`option`,{value:`reported`},`Y · 已报到`,-1),P(`option`,{value:`not_reported`},`N · 未报到`,-1),P(`option`,{value:`pending`},`P · 待确认`,-1)]],512),[[B,p.status]]),k(P(`input`,{"onUpdate:modelValue":x[16]||=e=>p.note=e,placeholder:`报到备注`},null,512),[[z,p.note]]),x[74]||=P(`button`,{class:`app-button app-button--primary`},`确认并暂存`,-1)],32)):L(``,!0),[`draft`,`rejected`].includes(e.status)?(M(),N(`form`,{key:2,onSubmit:As(t=>ce(e),[`prevent`])},[P(`div`,GY,[x[75]||=P(`strong`,null,`本轮报到台账`,-1),P(`button`,{type:`button`,class:`app-button`,onClick:t=>le(e,`reported`)},`所选设为已报到`,8,KY),P(`button`,{type:`button`,class:`app-button`,onClick:t=>le(e,`not_reported`)},`所选设为未报到`,8,qY)]),P(`div`,JY,[P(`table`,null,[x[77]||=P(`thead`,null,[P(`tr`,null,[P(`th`,null,`选择`),P(`th`,null,`考生`),P(`th`,null,`通知书 / 类别`),P(`th`,null,`状态`),P(`th`,null,`备注`)])],-1),P(`tbody`,null,[(M(!0),N(j,null,A(e.rows,e=>(M(),N(`tr`,{key:e.placementId},[P(`td`,null,[k(P(`input`,{"onUpdate:modelValue":t=>f[e.placementId].selected=t,type:`checkbox`},null,8,YY),[[Cs,f[e.placementId].selected]])]),P(`td`,null,[P(`strong`,null,T(e.name),1),P(`small`,null,T(e.candidateNumber),1)]),P(`td`,null,[P(`strong`,null,T(e.noticeNumber),1),P(`small`,null,T(e.categoryName),1)]),P(`td`,null,[k(P(`select`,{"onUpdate:modelValue":t=>f[e.placementId].status=t},[...x[76]||=[P(`option`,{value:`pending`},`P · 待确认`,-1),P(`option`,{value:`reported`},`Y · 已报到`,-1),P(`option`,{value:`not_reported`},`N · 未报到`,-1)]],8,XY),[[B,f[e.placementId].status]])]),P(`td`,null,[k(P(`input`,{"onUpdate:modelValue":t=>f[e.placementId].note=t,placeholder:`选填报到备注`},null,8,ZY),[[z,f[e.placementId].note]])])]))),128))])])]),P(`footer`,null,[x[78]||=P(`button`,{class:`app-button`},`暂存全部状态`,-1),P(`button`,{class:`app-button app-button--primary`,type:`button`,onClick:t=>ue(e)},`正式提交报到情况`,8,QY)])],40,WY)):e.status===`submitted`?(M(),N(`form`,{key:3,class:`reporting-decision`,onSubmit:As(t=>w(e,t),[`prevent`])},[x[80]||=P(`div`,null,[P(`strong`,null,`报到情况已提交`),P(`p`,null,`请选择是否申请补录,学校决定将提交超级管理员审批。`)],-1),P(`select`,eX,[x[79]||=P(`option`,{value:`false`},`不进行补录`,-1),P(`option`,{value:`true`,disabled:!e.progress?.reportingGap},`申请补录 `+T(e.progress?.reportingGap)+` 人`,9,tX)]),x[81]||=P(`input`,{name:`decisionNote`,placeholder:`补录原因或不补录说明`},null,-1),x[82]||=P(`button`,{class:`app-button app-button--primary`},`提交学校决定`,-1)],40,$Y)):(M(),N(`div`,nX,[x[83]||=P(`strong`,null,`当前批次已锁定`,-1),P(`p`,null,T(e.approvalNote||e.decisionNote||`等待下一步处理`),1)]))]))),128)),o.value.batches?.length?L(``,!0):(M(),N(`div`,rX,[...x[84]||=[P(`strong`,null,`暂无报到批次`,-1),P(`p`,null,`正式录取签发并开启报到后,本页会生成台账。`,-1)]]))],64)):e.page===`notice-template`?(M(),N(`section`,iX,[P(`form`,{class:`business-form`,onSubmit:As(me,[`prevent`])},[x[92]||=P(`p`,null,`TEMPLATE STUDIO`,-1),x[93]||=P(`h2`,null,`模板设计`,-1),x[94]||=P(`span`,null,`正文支持:{{考生姓名}}、{{考试名称}}、{{录取学校}}、{{录取类别}}`,-1),P(`label`,null,[x[85]||=P(`span`,null,`适用考试`,-1),k(P(`select`,{"onUpdate:modelValue":x[17]||=e=>h.examId=e},[(M(!0),N(j,null,A(o.value.exams,e=>(M(),N(`option`,{key:e.id,value:e.id},T(e.name),9,aX))),128))],512),[[B,h.examId]])]),P(`div`,oX,[P(`label`,null,[x[86]||=P(`span`,null,`英文眉题`,-1),k(P(`input`,{"onUpdate:modelValue":x[18]||=e=>h.eyebrow=e,maxlength:`60`},null,512),[[z,h.eyebrow]])]),P(`label`,null,[x[87]||=P(`span`,null,`中文主标题`,-1),k(P(`input`,{"onUpdate:modelValue":x[19]||=e=>h.title=e,maxlength:`80`,required:``},null,512),[[z,h.title]])])]),P(`label`,null,[x[88]||=P(`span`,null,`通知书正文`,-1),k(P(`textarea`,{"onUpdate:modelValue":x[20]||=e=>h.body=e,rows:`9`,maxlength:`1600`,required:``},null,512),[[z,h.body]])]),P(`label`,null,[x[89]||=P(`span`,null,`页脚说明`,-1),k(P(`textarea`,{"onUpdate:modelValue":x[21]||=e=>h.footer=e,rows:`3`,maxlength:`300`},null,512),[[z,h.footer]])]),P(`div`,sX,[P(`label`,null,[x[90]||=P(`span`,null,`学校主色`,-1),k(P(`input`,{"onUpdate:modelValue":x[22]||=e=>h.primaryColor=e,type:`color`},null,512),[[z,h.primaryColor]])]),P(`label`,null,[x[91]||=P(`span`,null,`强调色`,-1),k(P(`input`,{"onUpdate:modelValue":x[23]||=e=>h.accentColor=e,type:`color`},null,512),[[z,h.accentColor]])])]),P(`button`,{class:`app-button app-button--primary`,disabled:i.value},`保存并启用模板`,8,cX)],32),P(`article`,{class:`notice-template-preview`,style:he({"--template-primary":h.primaryColor,"--template-accent":h.accentColor})},[P(`div`,null,[P(`small`,null,T(h.eyebrow),1),P(`h2`,null,T(h.title),1),P(`h3`,null,T(o.value.school?.name),1),x[95]||=P(`em`,null,`通知书编号:AD01-EX-2026-ZK-000001`,-1),x[96]||=P(`strong`,null,`张同学:`,-1),P(`p`,null,T(b.value),1),P(`footer`,null,[P(`span`,null,T(h.footer),1),P(`b`,null,T(o.value.school?.name),1)]),x[97]||=P(`i`,null,`防伪二维码`,-1)]),x[98]||=P(`p`,null,`右侧为 A4 通知书预览;正式件会自动写入编号、防伪查询码与二维码。`,-1)],4)])):L(``,!0)]),_:1},8,[`loading`,`error`])]),_:1},8,[`page`,`title`,`description`]))}},uX={class:`route-message`},dX={__name:`NotFoundView`,setup(e){let t=ec();return(e,n)=>(M(),N(`main`,uX,[n[1]||=P(`span`,null,`404`,-1),n[2]||=P(`h1`,null,`没有找到这个页面`,-1),n[3]||=P(`p`,null,`地址可能已经调整。你可以返回首页,或从业务中心重新进入。`,-1),P(`button`,{type:`button`,onClick:n[0]||=e=>O(t).push(`/`)},`返回首页`)]))}},fX=[[`onboarding`,`首次登录`],[`dashboard`,`总览`],[`profile`,`个人资料`],[`exams`,`考试报名`],[`registrations`,`我的报名`],[`admit`,`准考证`],[`results`,`成绩查询`],[`admissions`,`志愿与录取`],[`notices`,`通知公告`],[`security`,`账户安全`]],pX=[[`dashboard`,`考务工作台`],[`schools`,`学校管理`],[`organization`,`本校组织`],[`admins`,`管理员`],[`account-batches`,`批量建号`],[`candidates`,`考生信息`],[`indicator-qualifications`,`指标资格确认`],[`registrations`,`报名审核`],[`payments`,`缴费名单`],[`admit`,`准考证编排`],[`exams`,`考试与科目`],[`results`,`成绩管理`],[`admission-settings`,`录取设置`],[`admission-accounts`,`招生账户`],[`admission-plans`,`招生计划`],[`admission-reporting`,`报到与补录`],[`admission-supervision`,`投档监督`],[`notices`,`通知发布`],[`centers`,`考场信息`],[`flows`,`流程中心`],[`flow-design`,`流程设计`],[`number-rules`,`报名号规则`],[`security`,`账户安全`]],mX=[[`dashboard`,`招生工作台`],[`plans`,`招生计划`],[`placements`,`投档审核`],[`reporting`,`考生报到`],[`notice-template`,`通知书模板`]],hX=[{path:`/`,name:`home`,component:$u,meta:{public:!0,title:`首页`}},{path:`/announcements`,name:`announcements`,component:kd,meta:{public:!0,title:`通知公告`}},{path:`/announcements/:id`,name:`announcement-detail`,component:Bd,meta:{public:!0,title:`公告详情`}},{path:`/verify/:code?`,name:`verification`,component:Kd,meta:{public:!0,title:`文书防伪查询`}},{path:`/auth/login`,name:`login`,component:cf,props:{mode:`login`},meta:{public:!0,guest:!0,title:`登录`}},{path:`/auth/register`,name:`register`,component:cf,props:{mode:`register`},meta:{public:!0,guest:!0,title:`考生注册`}},{path:`/candidate`,redirect:`/candidate/dashboard`},...fX.map(([e,t])=>({path:`/candidate/${e}`,name:`candidate-${e}`,component:Qp,props:{page:e},meta:{roles:[`candidate`],title:t}})),{path:`/admin`,redirect:`/admin/dashboard`},...pX.map(([e,t])=>({path:`/admin/${e}`,name:`admin-${e}`,component:XJ,props:{page:e},meta:{roles:[`admin`],title:t}})),{path:`/admission`,redirect:`/admission/dashboard`},...mX.map(([e,t])=>({path:`/admission/${e}`,name:`admission-${e}`,component:lX,props:{page:e},meta:{roles:[`admission_school`],title:t}})),{path:`/:pathMatch(.*)*`,name:`not-found`,component:dX,meta:{public:!0,title:`页面不存在`}}],gX=Rl({history:ol(`/`),routes:hX,scrollBehavior(e,t,n){return n||(e.hash?{el:e.hash,behavior:`smooth`}:{top:0})}});gX.beforeEach(async e=>{try{await H.bootstrap()}catch{if(!e.meta.public)return{name:`home`}}let t=H.state.user;if(e.meta.guest&&t)return H.homeFor(t);if(e.meta.roles?.length){if(!t)return{name:`login`,query:{redirect:e.fullPath}};if(!e.meta.roles.includes(t.role))return H.homeFor(t);if(t.role===`candidate`&&e.path!==`/candidate/onboarding`&&(t.mustChangePassword||!H.state.profile?.profileCompleted))return`/candidate/onboarding`}return document.title=`${e.meta.title||`服务`} · 衡准考试信息管理系统`,!0});var _X=Is(nu);_X.use(gX),_X.mount(`#app`); \ No newline at end of file diff --git a/tests/Eis.Infrastructure.Tests/Administration/AdminNoticeServiceTests.cs b/tests/Eis.Infrastructure.Tests/Administration/AdminNoticeServiceTests.cs new file mode 100644 index 0000000..5319357 --- /dev/null +++ b/tests/Eis.Infrastructure.Tests/Administration/AdminNoticeServiceTests.cs @@ -0,0 +1,29 @@ +using System.Text.Json.Nodes; +using Eis.Infrastructure.Administration; + +namespace Eis.Infrastructure.Tests.Administration; + +public sealed class AdminNoticeServiceTests +{ + [Theory] + [InlineData("publicVisible")] + [InlineData("visible")] + public void TryReadPublicVisibility_AcceptsCurrentAndLegacyKeys(string key) + { + var body = new JsonObject { [key] = false }; + + var parsed = AdminNoticeService.TryReadPublicVisibility(body, out var visible); + + Assert.True(parsed); + Assert.False(visible); + } + + [Fact] + public void TryReadPublicVisibility_RejectsMissingOrNonBooleanValue() + { + Assert.False(AdminNoticeService.TryReadPublicVisibility(new JsonObject(), out _)); + Assert.False(AdminNoticeService.TryReadPublicVisibility( + new JsonObject { ["publicVisible"] = "false" }, + out _)); + } +}