From 48c94a5f69710fb8fe6fb475aad0714d38a513b0 Mon Sep 17 00:00:00 2001 From: iSmartCoding Date: Fri, 9 Feb 2024 11:59:58 +0800 Subject: [PATCH] Fix permissions bug --- app/build.gradle.kts | 4 +- .../plain/features/Permissions.kt | 54 +++-- .../plain/ui/base/TextWithLinkSupport.kt | 15 +- .../ismartcoding/plain/ui/call/CallsDialog.kt | 10 +- .../plain/ui/contact/ContactsDialog.kt | 10 +- .../ui/extensions/ViewPageListBinding.kt | 6 +- .../ismartcoding/plain/ui/sms/SmsDialog.kt | 3 +- .../com/ismartcoding/plain/web/SXGraphQL.kt | 33 +-- ...iew-5c3a7058.js => AIChatView-f6c42528.js} | 2 +- ...d28f6b2.js => AIChatsRootView-73b761f6.js} | 2 +- ...ew-27a66c8b.js => AIChatsView-f4407fd2.js} | 2 +- ...w-892b79ca.js => AppsRootView-89b3b686.js} | 2 +- ...sView-c40d17f3.js => AppsView-5bd18fd7.js} | 2 +- ...e0180d1e.js => AudiosRootView-2f0eaa28.js} | 2 +- ...iew-6773d3eb.js => AudiosView-0bd07bb3.js} | 2 +- ...umb-fef16e9c.js => Breadcrumb-cba2b95b.js} | 2 +- ...vuevuetypescriptsetuptruelang-a57962d6.js} | 2 +- ...-b57e0e78.js => CallsRootView-43ec86ab.js} | 2 +- ...View-668479b4.js => CallsView-f34a9b1c.js} | 2 +- ...3b4cb6.js => ContactsRootView-00218d5e.js} | 2 +- ...w-387674f7.js => ContactsView-95867a11.js} | 2 +- ...efec82d1.js => DeviceInfoView-94e62ae8.js} | 2 +- ...ew-4b6ac906.js => DevicesView-85d94535.js} | 2 +- ...vuevuetypescriptsetuptruelang-7ece134f.js} | 2 +- ...f5302cb7.js => EditValueModal-1892701b.js} | 2 +- ...-0ec0e957.js => FeedEntryView-9e621dfe.js} | 2 +- ...-c68c486e.js => FeedsRootView-d5f30b79.js} | 2 +- ...View-e4c7f92f.js => FeedsView-7617097f.js} | 2 +- ...835eabc.js => FilesRecentView-1ca09bb5.js} | 2 +- ...-6d10cd7d.js => FilesRootView-bcef819e.js} | 2 +- ...View-a6d45fbd.js => FilesView-66532308.js} | 2 +- ...eView-5177e39f.js => HomeView-ff8014e8.js} | 2 +- ...05531514.js => ImagesRootView-a25f8692.js} | 2 +- ...iew-ef9d1104.js => ImagesView-8f315b20.js} | 2 +- ...ec331ad2.js => JsonViewerView-38aa3e3c.js} | 2 +- ...View-801bb47e.js => LoginView-5d854c8b.js} | 2 +- ...bdd183.js => MessagesRootView-9e04ac1b.js} | 2 +- ...w-11e13c43.js => MessagesView-b10b36c7.js} | 2 +- ...vuevuetypescriptsetuptruelang-fd107f07.js} | 4 +- ...ew-9136e20d.js => NetworkView-96e9f184.js} | 2 +- ...w-a6e64fa4.js => NoteEditView-ad9b8303.js} | 2 +- ...-8dfcfff8.js => NotesRootView-b6a592d7.js} | 2 +- ...20648cd8.js => NotesTrashView-61909739.js} | 2 +- ...View-39166570.js => NotesView-f471e3c0.js} | 2 +- ...d9b.js => QrCodeGeneratorView-1a8fb03e.js} | 2 +- ...iew-18d4e81d.js => RoutesView-b32e54c2.js} | 2 +- ...View-302ccf52.js => RulesView-9c939214.js} | 2 +- ...f2c6b3.js => ScreenMirrorView-c489642d.js} | 2 +- ...vuevuetypescriptsetuptruelang-2bcd90c5.js} | 2 +- ...e1ebfad1.js => VideosRootView-73ce23ee.js} | 2 +- ...iew-a3b5c492.js => VideosView-ca3e8a9e.js} | 2 +- ...iView-9bc265a3.js => WiFiView-0928129a.js} | 2 +- ...fc3e1.js => WireGuardEditView-a63a2fe8.js} | 2 +- ...-ed53e206.js => WireGuardView-95567278.js} | 2 +- ...94.js => call-outline-rounded-72631358.js} | 2 +- ...ssMode-4585b121.js => cssMode-dcf8258c.js} | 2 +- ...r2-c07316a7.js => freemarker2-c9252b5a.js} | 2 +- ... => grid-view-outline-rounded-5cff260c.js} | 2 +- ...ars-8607b260.js => handlebars-bc0c539b.js} | 2 +- .../{html-ff5bd743.js => html-c7a0cc22.js} | 2 +- ...lMode-aaba28d0.js => htmlMode-4a192f0e.js} | 2 +- ...{index-91412b8b.css => index-015d7a00.css} | 2 +- .../{index-b6c39163.js => index-1dff6785.js} | 202 +++++++++--------- ...ipt-85ebb9c2.js => javascript-0e2f15f8.js} | 2 +- ...nMode-32ce06a3.js => jsonMode-6e1721bb.js} | 2 +- ...{liquid-80536354.js => liquid-db33d9e0.js} | 2 +- .../{list-6c4ddffc.js => list-0d76acfa.js} | 2 +- ...kdown-1f5e90f8.js => markdown-a8cc08c7.js} | 2 +- ...f.js => print-outline-rounded-a531ab61.js} | 2 +- ...{python-2a6696fb.js => python-18c11ebb.js} | 2 +- ...a.js => question-mark-rounded-5a883e33.js} | 2 +- .../{razor-a2bb4527.js => razor-562e72e5.js} | 2 +- ...1837882.js => refresh-rounded-e92a6833.js} | 2 +- ...d-4981fcb6.js => sort-rounded-b8d8e47a.js} | 2 +- ...-f516e17d.js => splitpanes.es-e9e41ca8.js} | 2 +- .../{tags-3bd6efbc.js => tags-ba1ad11a.js} | 2 +- ...{tsMode-12774190.js => tsMode-8396ad24.js} | 2 +- ...ipt-79351655.js => typescript-346cf81a.js} | 2 +- ...a4e04a4c.js => upload-rounded-dd35ce68.js} | 2 +- ...fad591.js => vee-validate.esm-b0b47415.js} | 2 +- .../{xml-1d9b265d.js => xml-6491c8d8.js} | 2 +- .../{yaml-e6bfac86.js => yaml-745200cc.js} | 2 +- app/src/main/resources/web/index.html | 4 +- 83 files changed, 265 insertions(+), 224 deletions(-) rename app/src/main/resources/web/assets/{AIChatView-5c3a7058.js => AIChatView-f6c42528.js} (95%) rename app/src/main/resources/web/assets/{AIChatsRootView-ad28f6b2.js => AIChatsRootView-73b761f6.js} (91%) rename app/src/main/resources/web/assets/{AIChatsView-27a66c8b.js => AIChatsView-f4407fd2.js} (93%) rename app/src/main/resources/web/assets/{AppsRootView-892b79ca.js => AppsRootView-89b3b686.js} (93%) rename app/src/main/resources/web/assets/{AppsView-c40d17f3.js => AppsView-5bd18fd7.js} (96%) rename app/src/main/resources/web/assets/{AudiosRootView-e0180d1e.js => AudiosRootView-2f0eaa28.js} (70%) rename app/src/main/resources/web/assets/{AudiosView-6773d3eb.js => AudiosView-0bd07bb3.js} (96%) rename app/src/main/resources/web/assets/{Breadcrumb-fef16e9c.js => Breadcrumb-cba2b95b.js} (81%) rename app/src/main/resources/web/assets/{BucketFilter.vuevuetypescriptsetuptruelang-659b6189.js => BucketFilter.vuevuetypescriptsetuptruelang-a57962d6.js} (93%) rename app/src/main/resources/web/assets/{CallsRootView-b57e0e78.js => CallsRootView-43ec86ab.js} (74%) rename app/src/main/resources/web/assets/{CallsView-668479b4.js => CallsView-f34a9b1c.js} (94%) rename app/src/main/resources/web/assets/{ContactsRootView-333b4cb6.js => ContactsRootView-00218d5e.js} (69%) rename app/src/main/resources/web/assets/{ContactsView-387674f7.js => ContactsView-95867a11.js} (98%) rename app/src/main/resources/web/assets/{DeviceInfoView-efec82d1.js => DeviceInfoView-94e62ae8.js} (96%) rename app/src/main/resources/web/assets/{DevicesView-4b6ac906.js => DevicesView-85d94535.js} (92%) rename app/src/main/resources/web/assets/{EditToolbar.vuevuetypescriptsetuptruelang-305dbf63.js => EditToolbar.vuevuetypescriptsetuptruelang-7ece134f.js} (92%) rename app/src/main/resources/web/assets/{EditValueModal-f5302cb7.js => EditValueModal-1892701b.js} (91%) rename app/src/main/resources/web/assets/{FeedEntryView-0ec0e957.js => FeedEntryView-9e621dfe.js} (95%) rename app/src/main/resources/web/assets/{FeedsRootView-c68c486e.js => FeedsRootView-d5f30b79.js} (95%) rename app/src/main/resources/web/assets/{FeedsView-e4c7f92f.js => FeedsView-7617097f.js} (95%) rename app/src/main/resources/web/assets/{FilesRecentView-1835eabc.js => FilesRecentView-1ca09bb5.js} (96%) rename app/src/main/resources/web/assets/{FilesRootView-6d10cd7d.js => FilesRootView-bcef819e.js} (91%) rename app/src/main/resources/web/assets/{FilesView-a6d45fbd.js => FilesView-66532308.js} (96%) rename app/src/main/resources/web/assets/{HomeView-5177e39f.js => HomeView-ff8014e8.js} (98%) rename app/src/main/resources/web/assets/{ImagesRootView-05531514.js => ImagesRootView-a25f8692.js} (70%) rename app/src/main/resources/web/assets/{ImagesView-ef9d1104.js => ImagesView-8f315b20.js} (94%) rename app/src/main/resources/web/assets/{JsonViewerView-ec331ad2.js => JsonViewerView-38aa3e3c.js} (96%) rename app/src/main/resources/web/assets/{LoginView-801bb47e.js => LoginView-5d854c8b.js} (98%) rename app/src/main/resources/web/assets/{MessagesRootView-28bdd183.js => MessagesRootView-9e04ac1b.js} (75%) rename app/src/main/resources/web/assets/{MessagesView-11e13c43.js => MessagesView-b10b36c7.js} (95%) rename app/src/main/resources/web/assets/{MonacoEditor.vuevuetypescriptsetuptruelang-1dd835fe.js => MonacoEditor.vuevuetypescriptsetuptruelang-fd107f07.js} (99%) rename app/src/main/resources/web/assets/{NetworkView-9136e20d.js => NetworkView-96e9f184.js} (84%) rename app/src/main/resources/web/assets/{NoteEditView-a6e64fa4.js => NoteEditView-ad9b8303.js} (93%) rename app/src/main/resources/web/assets/{NotesRootView-8dfcfff8.js => NotesRootView-b6a592d7.js} (72%) rename app/src/main/resources/web/assets/{NotesTrashView-20648cd8.js => NotesTrashView-61909739.js} (93%) rename app/src/main/resources/web/assets/{NotesView-39166570.js => NotesView-f471e3c0.js} (95%) rename app/src/main/resources/web/assets/{QrCodeGeneratorView-41768d9b.js => QrCodeGeneratorView-1a8fb03e.js} (99%) rename app/src/main/resources/web/assets/{RoutesView-18d4e81d.js => RoutesView-b32e54c2.js} (97%) rename app/src/main/resources/web/assets/{RulesView-302ccf52.js => RulesView-9c939214.js} (97%) rename app/src/main/resources/web/assets/{ScreenMirrorView-13f2c6b3.js => ScreenMirrorView-c489642d.js} (97%) rename app/src/main/resources/web/assets/{TagFilter.vuevuetypescriptsetuptruelang-873baaa8.js => TagFilter.vuevuetypescriptsetuptruelang-2bcd90c5.js} (94%) rename app/src/main/resources/web/assets/{VideosRootView-e1ebfad1.js => VideosRootView-73ce23ee.js} (70%) rename app/src/main/resources/web/assets/{VideosView-a3b5c492.js => VideosView-ca3e8a9e.js} (95%) rename app/src/main/resources/web/assets/{WiFiView-9bc265a3.js => WiFiView-0928129a.js} (95%) rename app/src/main/resources/web/assets/{WireGuardEditView-cbefc3e1.js => WireGuardEditView-a63a2fe8.js} (92%) rename app/src/main/resources/web/assets/{WireGuardView-ed53e206.js => WireGuardView-95567278.js} (94%) rename app/src/main/resources/web/assets/{call-outline-rounded-48005e94.js => call-outline-rounded-72631358.js} (91%) rename app/src/main/resources/web/assets/{cssMode-4585b121.js => cssMode-dcf8258c.js} (99%) rename app/src/main/resources/web/assets/{freemarker2-c07316a7.js => freemarker2-c9252b5a.js} (99%) rename app/src/main/resources/web/assets/{grid-view-outline-rounded-a088250d.js => grid-view-outline-rounded-5cff260c.js} (95%) rename app/src/main/resources/web/assets/{handlebars-8607b260.js => handlebars-bc0c539b.js} (99%) rename app/src/main/resources/web/assets/{html-ff5bd743.js => html-c7a0cc22.js} (98%) rename app/src/main/resources/web/assets/{htmlMode-aaba28d0.js => htmlMode-4a192f0e.js} (99%) rename app/src/main/resources/web/assets/{index-91412b8b.css => index-015d7a00.css} (99%) rename app/src/main/resources/web/assets/{index-b6c39163.js => index-1dff6785.js} (84%) rename app/src/main/resources/web/assets/{javascript-85ebb9c2.js => javascript-0e2f15f8.js} (77%) rename app/src/main/resources/web/assets/{jsonMode-32ce06a3.js => jsonMode-6e1721bb.js} (99%) rename app/src/main/resources/web/assets/{liquid-80536354.js => liquid-db33d9e0.js} (98%) rename app/src/main/resources/web/assets/{list-6c4ddffc.js => list-0d76acfa.js} (97%) rename app/src/main/resources/web/assets/{markdown-1f5e90f8.js => markdown-a8cc08c7.js} (99%) rename app/src/main/resources/web/assets/{print-outline-rounded-b6b10f6f.js => print-outline-rounded-a531ab61.js} (91%) rename app/src/main/resources/web/assets/{python-2a6696fb.js => python-18c11ebb.js} (98%) rename app/src/main/resources/web/assets/{question-mark-rounded-f9dc54fa.js => question-mark-rounded-5a883e33.js} (97%) rename app/src/main/resources/web/assets/{razor-a2bb4527.js => razor-562e72e5.js} (99%) rename app/src/main/resources/web/assets/{refresh-rounded-d1837882.js => refresh-rounded-e92a6833.js} (90%) rename app/src/main/resources/web/assets/{sort-rounded-4981fcb6.js => sort-rounded-b8d8e47a.js} (88%) rename app/src/main/resources/web/assets/{splitpanes.es-f516e17d.js => splitpanes.es-e9e41ca8.js} (99%) rename app/src/main/resources/web/assets/{tags-3bd6efbc.js => tags-ba1ad11a.js} (96%) rename app/src/main/resources/web/assets/{tsMode-12774190.js => tsMode-8396ad24.js} (99%) rename app/src/main/resources/web/assets/{typescript-79351655.js => typescript-346cf81a.js} (98%) rename app/src/main/resources/web/assets/{upload-rounded-a4e04a4c.js => upload-rounded-dd35ce68.js} (90%) rename app/src/main/resources/web/assets/{vee-validate.esm-03fad591.js => vee-validate.esm-b0b47415.js} (99%) rename app/src/main/resources/web/assets/{xml-1d9b265d.js => xml-6491c8d8.js} (94%) rename app/src/main/resources/web/assets/{yaml-e6bfac86.js => yaml-745200cc.js} (98%) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index cef07b66..f617f117 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -37,9 +37,9 @@ android { else -> 0 } - val vCode = 241 + val vCode = 244 versionCode = vCode - singleAbiNum - versionName = "1.2.36" + versionName = "1.2.37" ndk { //noinspection ChromeOsAbiSupport diff --git a/app/src/main/java/com/ismartcoding/plain/features/Permissions.kt b/app/src/main/java/com/ismartcoding/plain/features/Permissions.kt index 4e60c1dc..0585dec7 100644 --- a/app/src/main/java/com/ismartcoding/plain/features/Permissions.kt +++ b/app/src/main/java/com/ismartcoding/plain/features/Permissions.kt @@ -243,7 +243,16 @@ enum class Permission { } } -data class PermissionItem(val icon: ImageVector?, val permission: Permission, val permissions: Set, val granted: Boolean) +data class PermissionItem(val icon: ImageVector?, val permission: Permission, val permissions: Set, var granted: Boolean = false) { + + companion object { + fun create(context: Context, icon: ImageVector?, permission: Permission, permissions: Set = setOf(permission)): PermissionItem { + return PermissionItem(icon, permission, permissions).apply { + granted = permissions.all { it.can(context) } + } + } + } +} object Permissions { private val launcherMap = mutableMapOf>() @@ -252,46 +261,51 @@ object Permissions { private lateinit var multipleLauncher: ActivityResultLauncher> suspend fun checkAsync(context: Context, permissions: Set) { - val ps = permissions.map { it.toString() } - val apiPermissions = ApiPermissionsPreference.getAsync(context) - if (!apiPermissions.all { ps.contains(it) }) { - throw Exception("no_permission") + val apiPermissions = ApiPermissionsPreference.getAsync(context).toMutableSet() + if (apiPermissions.contains(Permission.WRITE_CONTACTS.toString())) { + apiPermissions.add(Permission.READ_CONTACTS.toString()) + } + if (apiPermissions.contains(Permission.WRITE_CALL_LOG.toString())) { + apiPermissions.add(Permission.READ_CALL_LOG.toString()) + } + for (item in permissions.map { it.toString() }) { + if (!apiPermissions.contains(item)) { + throw Exception("no_permission") + } } } - fun anyCan(context: Context, permissions: Set): Boolean { - return permissions.any { it.can(context) } + fun allCan(context: Context, permissions: Set): Boolean { + return permissions.all { it.can(context) } } fun getWebList(context: Context): List { val list = mutableListOf() list.add( - PermissionItem(Icons.Outlined.Folder, Permission.WRITE_EXTERNAL_STORAGE, setOf(Permission.WRITE_EXTERNAL_STORAGE), - setOf(Permission.WRITE_EXTERNAL_STORAGE).all { it.can(context) }) + PermissionItem.create( + context, Icons.Outlined.Folder, Permission.WRITE_EXTERNAL_STORAGE + ) ) if (AppFeatureType.NOTIFICATIONS.has()) { list.add( - PermissionItem(Icons.Outlined.Notifications, Permission.NOTIFICATION_LISTENER, setOf(Permission.NOTIFICATION_LISTENER), - setOf(Permission.NOTIFICATION_LISTENER).all { it.can(context) }) + PermissionItem.create(context, Icons.Outlined.Notifications, Permission.NOTIFICATION_LISTENER) ) } list.add( - PermissionItem(Icons.Outlined.Contacts, Permission.WRITE_CONTACTS, setOf(Permission.WRITE_CONTACTS), - setOf(Permission.WRITE_CONTACTS).all { it.can(context) }) + PermissionItem.create(context, Icons.Outlined.Contacts, Permission.WRITE_CONTACTS, setOf(Permission.READ_CONTACTS, Permission.WRITE_CONTACTS)) ) + if (AppFeatureType.SOCIAL.has()) { - list.add(PermissionItem(Icons.Outlined.Sms, Permission.READ_SMS, setOf(Permission.READ_SMS), setOf(Permission.READ_SMS).all { it.can(context) })) - list.add(PermissionItem(Icons.AutoMirrored.Outlined.List, Permission.WRITE_CALL_LOG, setOf(Permission.WRITE_CALL_LOG), setOf(Permission.WRITE_CALL_LOG).all { it.can(context) })) + list.add(PermissionItem.create(context, Icons.Outlined.Sms, Permission.READ_SMS)) + list.add(PermissionItem.create(context, Icons.AutoMirrored.Outlined.List, Permission.WRITE_CALL_LOG, setOf(Permission.READ_CALL_LOG, Permission.WRITE_CALL_LOG))) } list.add( - PermissionItem(Icons.Outlined.Call, Permission.CALL_PHONE, setOf(Permission.CALL_PHONE), - setOf(Permission.CALL_PHONE).all { it.can(context) }) + PermissionItem.create(context, Icons.Outlined.Call, Permission.CALL_PHONE) ) list.add( - PermissionItem(Icons.Outlined.Numbers, Permission.READ_PHONE_NUMBERS, setOf(Permission.READ_PHONE_STATE, Permission.READ_PHONE_NUMBERS), - setOf(Permission.READ_PHONE_STATE, Permission.READ_PHONE_NUMBERS).all { it.can(context) }) + PermissionItem.create(context, Icons.Outlined.Numbers, Permission.READ_PHONE_NUMBERS, setOf(Permission.READ_PHONE_STATE, Permission.READ_PHONE_NUMBERS)) ) - list.add(PermissionItem(null, Permission.NONE, setOf(Permission.NONE), false)) + list.add(PermissionItem(null, Permission.NONE, setOf(Permission.NONE))) return list } diff --git a/app/src/main/java/com/ismartcoding/plain/ui/base/TextWithLinkSupport.kt b/app/src/main/java/com/ismartcoding/plain/ui/base/TextWithLinkSupport.kt index 171484ad..efb74279 100644 --- a/app/src/main/java/com/ismartcoding/plain/ui/base/TextWithLinkSupport.kt +++ b/app/src/main/java/com/ismartcoding/plain/ui/base/TextWithLinkSupport.kt @@ -7,6 +7,9 @@ import androidx.compose.ui.text.AnnotatedString import androidx.compose.ui.text.SpanStyle import androidx.compose.ui.text.buildAnnotatedString import androidx.compose.ui.text.withStyle +import com.ismartcoding.plain.R +import com.ismartcoding.plain.packageManager +import com.ismartcoding.plain.ui.helpers.DialogHelper import com.ismartcoding.plain.ui.helpers.WebHelper import java.util.regex.Matcher import java.util.regex.Pattern @@ -93,13 +96,21 @@ fun AnnotatedString.urlAt( "EMAIL" -> { val emailIntent = Intent(Intent.ACTION_SENDTO, Uri.parse("mailto:${it.item}")) - context.startActivity(emailIntent) + if (emailIntent.resolveActivity(packageManager) != null) { + context.startActivity(emailIntent) + } else { + DialogHelper.showMessage(R.string.not_supported_error) + } return } "PHONE" -> { val phoneIntent = Intent(Intent.ACTION_DIAL, Uri.parse("tel:${it.item}")) - context.startActivity(phoneIntent) + if (phoneIntent.resolveActivity(packageManager) != null) { + context.startActivity(phoneIntent) + } else { + DialogHelper.showMessage(R.string.not_supported_error) + } return } } diff --git a/app/src/main/java/com/ismartcoding/plain/ui/call/CallsDialog.kt b/app/src/main/java/com/ismartcoding/plain/ui/call/CallsDialog.kt index 01ab69aa..d7b5b647 100644 --- a/app/src/main/java/com/ismartcoding/plain/ui/call/CallsDialog.kt +++ b/app/src/main/java/com/ismartcoding/plain/ui/call/CallsDialog.kt @@ -17,6 +17,7 @@ import com.ismartcoding.plain.extensions.formatDateTime import com.ismartcoding.plain.features.ActionEvent import com.ismartcoding.plain.features.Permission import com.ismartcoding.plain.features.PermissionResultEvent +import com.ismartcoding.plain.features.PermissionsResultEvent import com.ismartcoding.plain.features.call.CallHelper import com.ismartcoding.plain.features.call.DCall import com.ismartcoding.plain.features.tag.TagHelper @@ -57,6 +58,7 @@ class CallsDialog : BaseListDrawerDialog() { } } } + R.id.delete -> { if (!Permission.WRITE_CALL_LOG.can(requireContext())) { Permission.WRITE_CALL_LOG.grant(requireContext()) @@ -78,6 +80,7 @@ class CallsDialog : BaseListDrawerDialog() { } } } + else -> { BottomMenuHelper.onMenuItemClick(viewModel, binding, this) } @@ -87,9 +90,7 @@ class CallsDialog : BaseListDrawerDialog() { override fun initEvents() { receiveEvent { event -> - if (setOf(Permission.READ_CALL_LOG, Permission.WRITE_CALL_LOG).contains(event.permission)) { - checkPermission() - } else if (event.permission == Permission.CALL_PHONE) { + if (event.permission == Permission.CALL_PHONE) { if (Permission.CALL_PHONE.can(requireContext())) { CallHelper.call(requireContext(), phoneNumberToCall) } else { @@ -97,6 +98,9 @@ class CallsDialog : BaseListDrawerDialog() { } } } + receiveEvent { event -> + checkPermission() + } receiveEvent { event -> if (event.source == ActionSourceType.CALL) { binding.list.page.refresh() diff --git a/app/src/main/java/com/ismartcoding/plain/ui/contact/ContactsDialog.kt b/app/src/main/java/com/ismartcoding/plain/ui/contact/ContactsDialog.kt index 80241324..7d74b85f 100644 --- a/app/src/main/java/com/ismartcoding/plain/ui/contact/ContactsDialog.kt +++ b/app/src/main/java/com/ismartcoding/plain/ui/contact/ContactsDialog.kt @@ -17,6 +17,7 @@ import com.ismartcoding.plain.data.enums.DataType import com.ismartcoding.plain.features.ActionEvent import com.ismartcoding.plain.features.Permission import com.ismartcoding.plain.features.PermissionResultEvent +import com.ismartcoding.plain.features.PermissionsResultEvent import com.ismartcoding.plain.features.call.CallHelper import com.ismartcoding.plain.features.contact.ContactHelper import com.ismartcoding.plain.features.contact.DContact @@ -62,6 +63,7 @@ class ContactsDialog : BaseListDrawerDialog() { } } } + R.id.delete -> { if (!Permission.WRITE_CONTACTS.can(requireContext())) { Permission.WRITE_CONTACTS.grant(requireContext()) @@ -83,6 +85,7 @@ class ContactsDialog : BaseListDrawerDialog() { } } } + else -> { BottomMenuHelper.onMenuItemClick(viewModel, binding, this) } @@ -97,9 +100,7 @@ class ContactsDialog : BaseListDrawerDialog() { override fun initEvents() { receiveEvent { event -> - if (event.permission == Permission.READ_CONTACTS) { - checkPermission() - } else if (event.permission == Permission.CALL_PHONE) { + if (event.permission == Permission.CALL_PHONE) { if (Permission.CALL_PHONE.can(requireContext())) { CallHelper.call(requireContext(), phoneNumberToCall) } else { @@ -107,6 +108,9 @@ class ContactsDialog : BaseListDrawerDialog() { } } } + receiveEvent { event -> + checkPermission() + } receiveEvent { event -> if (event.source == ActionSourceType.CONTACT) { binding.list.page.refresh() diff --git a/app/src/main/java/com/ismartcoding/plain/ui/extensions/ViewPageListBinding.kt b/app/src/main/java/com/ismartcoding/plain/ui/extensions/ViewPageListBinding.kt index 71c999a3..762f2c8c 100644 --- a/app/src/main/java/com/ismartcoding/plain/ui/extensions/ViewPageListBinding.kt +++ b/app/src/main/java/com/ismartcoding/plain/ui/extensions/ViewPageListBinding.kt @@ -3,10 +3,12 @@ package com.ismartcoding.plain.ui.extensions import android.content.Context import android.view.View import androidx.core.view.isVisible +import com.ismartcoding.lib.channel.sendEvent import com.ismartcoding.plain.R import com.ismartcoding.plain.databinding.ViewPageListBinding import com.ismartcoding.plain.features.Permission import com.ismartcoding.plain.features.Permissions +import com.ismartcoding.plain.features.RequestPermissionsEvent import com.ismartcoding.plain.features.locale.LocaleHelper.getString fun ViewPageListBinding.checkPermission( @@ -14,7 +16,7 @@ fun ViewPageListBinding.checkPermission( permissions: Set, permission: Permission, ) { - if (Permissions.anyCan(context, permissions)) { + if (Permissions.allCan(context, permissions)) { page.visibility = View.VISIBLE empty.root.isVisible = false page.showLoading() @@ -26,7 +28,7 @@ fun ViewPageListBinding.checkPermission( button.text = getString(R.string.grant_access) button.isVisible = true button.setSafeClick { - permission.grant(context) + sendEvent(RequestPermissionsEvent(permissions.toSet())) } } } diff --git a/app/src/main/java/com/ismartcoding/plain/ui/sms/SmsDialog.kt b/app/src/main/java/com/ismartcoding/plain/ui/sms/SmsDialog.kt index 2ddc199e..456ae460 100644 --- a/app/src/main/java/com/ismartcoding/plain/ui/sms/SmsDialog.kt +++ b/app/src/main/java/com/ismartcoding/plain/ui/sms/SmsDialog.kt @@ -15,6 +15,7 @@ import com.ismartcoding.plain.extensions.formatDateTime import com.ismartcoding.plain.features.ActionEvent import com.ismartcoding.plain.features.Permission import com.ismartcoding.plain.features.PermissionResultEvent +import com.ismartcoding.plain.features.PermissionsResultEvent import com.ismartcoding.plain.features.sms.DMessage import com.ismartcoding.plain.features.sms.SmsHelper import com.ismartcoding.plain.ui.BaseListDrawerDialog @@ -45,7 +46,7 @@ class SmsDialog : BaseListDrawerDialog() { } override fun initEvents() { - receiveEvent { + receiveEvent { checkPermission() } receiveEvent { event -> diff --git a/app/src/main/java/com/ismartcoding/plain/web/SXGraphQL.kt b/app/src/main/java/com/ismartcoding/plain/web/SXGraphQL.kt index a88f7698..779d4dea 100644 --- a/app/src/main/java/com/ismartcoding/plain/web/SXGraphQL.kt +++ b/app/src/main/java/com/ismartcoding/plain/web/SXGraphQL.kt @@ -282,8 +282,9 @@ class SXGraphQL(val schema: Schema) { } query("imageCount") { resolver { query: String -> - if (Permission.WRITE_EXTERNAL_STORAGE.can(MainApp.instance)) { - ImageHelper.count(MainApp.instance, QueryHelper.prepareQuery(query)) + val context = MainApp.instance + if (Permission.WRITE_EXTERNAL_STORAGE.can(context)) { + ImageHelper.count(context, QueryHelper.prepareQuery(query)) } else { 0 } @@ -374,9 +375,10 @@ class SXGraphQL(val schema: Schema) { executor = Executor.DataLoaderPrepared } resolver { offset: Int, limit: Int, query: String -> - Permissions.checkAsync(MainApp.instance, setOf(Permission.READ_CONTACTS, Permission.WRITE_CONTACTS)) + val context = MainApp.instance + Permissions.checkAsync(context, setOf(Permission.READ_CONTACTS)) try { - ContactHelper.search(MainApp.instance, QueryHelper.prepareQuery(query), limit, offset).map { it.toModel() } + ContactHelper.search(context, QueryHelper.prepareQuery(query), limit, offset).map { it.toModel() } } catch (ex: Exception) { LogCat.e(ex) emptyList() @@ -393,8 +395,9 @@ class SXGraphQL(val schema: Schema) { } query("contactCount") { resolver { query: String -> - if (Permissions.anyCan(MainApp.instance, setOf(Permission.READ_CONTACTS, Permission.WRITE_CONTACTS))) { - ContactHelper.count(MainApp.instance, QueryHelper.prepareQuery(query)) + val context = MainApp.instance + if (Permission.READ_CONTACTS.can(context)) { + ContactHelper.count(context, QueryHelper.prepareQuery(query)) } else { 0 } @@ -402,13 +405,13 @@ class SXGraphQL(val schema: Schema) { } query("contactSources") { resolver { -> - Permissions.checkAsync(MainApp.instance, setOf(Permission.READ_CONTACTS, Permission.WRITE_CONTACTS)) + Permissions.checkAsync(MainApp.instance, setOf(Permission.READ_CONTACTS)) SourceHelper.getAll().map { it.toModel() } } } query("contactGroups") { resolver { node: Execution.Node -> - Permissions.checkAsync(MainApp.instance, setOf(Permission.READ_CONTACTS, Permission.WRITE_CONTACTS)) + Permissions.checkAsync(MainApp.instance, setOf(Permission.READ_CONTACTS)) val groups = GroupHelper.getAll().map { it.toModel() } val fields = node.getFields() if (fields.contains(ContactGroup::contactCount.name)) { @@ -422,7 +425,7 @@ class SXGraphQL(val schema: Schema) { executor = Executor.DataLoaderPrepared } resolver { offset: Int, limit: Int, query: String -> - Permissions.checkAsync(MainApp.instance, setOf(Permission.READ_CALL_LOG, Permission.WRITE_CALL_LOG)) + Permissions.checkAsync(MainApp.instance, setOf(Permission.READ_CALL_LOG)) CallHelper.search(MainApp.instance, QueryHelper.prepareQuery(query), limit, offset).map { it.toModel() } } type { @@ -436,8 +439,9 @@ class SXGraphQL(val schema: Schema) { } query("callCount") { resolver { query: String -> - if (Permissions.anyCan(MainApp.instance, setOf(Permission.READ_CALL_LOG, Permission.WRITE_CALL_LOG))) { - CallHelper.count(MainApp.instance, QueryHelper.prepareQuery(query)) + val context = MainApp.instance + if (Permission.READ_CALL_LOG.can(context)) { + CallHelper.count(context, QueryHelper.prepareQuery(query)) } else { 0 } @@ -606,9 +610,10 @@ class SXGraphQL(val schema: Schema) { } query("deviceInfo") { resolver { -> - val apiPermissions = ApiPermissionsPreference.getAsync(MainApp.instance) - val readPhoneNumber = apiPermissions.contains(Permission.READ_PHONE_STATE.toString()) && apiPermissions.contains(Permission.READ_PHONE_NUMBERS.toString()) - DeviceInfoHelper.getDeviceInfo(MainApp.instance, readPhoneNumber).toModel() + val context = MainApp.instance + val apiPermissions = ApiPermissionsPreference.getAsync(context) + val readPhoneNumber = apiPermissions.contains(Permission.READ_PHONE_NUMBERS.toString()) + DeviceInfoHelper.getDeviceInfo(context, readPhoneNumber).toModel() } } query("battery") { diff --git a/app/src/main/resources/web/assets/AIChatView-5c3a7058.js b/app/src/main/resources/web/assets/AIChatView-f6c42528.js similarity index 95% rename from app/src/main/resources/web/assets/AIChatView-5c3a7058.js rename to app/src/main/resources/web/assets/AIChatView-f6c42528.js index 90494e04..71382a20 100644 --- a/app/src/main/resources/web/assets/AIChatView-5c3a7058.js +++ b/app/src/main/resources/web/assets/AIChatView-f6c42528.js @@ -1,4 +1,4 @@ -import{d as Z,e as ee,u as te,D as ae,r,s as se,f as ne,g as oe,i as R,aR as ie,U as B,O as le,P as N,Q as ce,R as de,c as u,a as s,p as h,H as f,j as l,x as re,b0 as ue,b1 as pe,b2 as _e,o as c,F as ve,J as me,t as p,b3 as I,k as Q,S as he,m as x,Y as K,h as z,b4 as F,v as fe,ap as y,l as m,b5 as ye,at as ge,b6 as Ce,A as be,B as ke,_ as Ae}from"./index-b6c39163.js";import{g as G,M as we}from"./splitpanes.es-f516e17d.js";import{u as Me}from"./markdown-1f5e90f8.js";const Ie=g=>(be("data-v-511dc1cd"),g=g(),ke(),g),xe={class:"page-container"},Te={class:"main"},$e={key:0,class:"date"},De={class:"chat-title"},Le={class:"name"},Se={class:"time"},Ve={class:"menu-items"},He=["onClick","disabled"],Re={slot:"headline"},Be={key:2,class:"chat-title"},Ne={class:"name"},Qe={class:"time"},Ke=["innerHTML"],ze={key:0,class:"chat-item replying"},Fe={class:"chat-title"},Ge={class:"name"},Ue=["innerHTML"],qe=["placeholder","onKeydown"],Pe={class:"btns"},je=["onClick"],Ee=Ie(()=>s("md-ripple",null,null,-1)),Je=Z({__name:"AIChatView",setup(g){const U=ee(),{t:q}=te(),P=ae(),d=r(P.params.id),i=r(""),_=r([]),C=r(!1),b=r(""),A=r(""),{app:j,urlTokenKey:E}=se(ne()),T=r(),{render:k}=Me(j,E);function w(){return d.value==="create"}function J(e,t){let n=!1;if(t==0)n=!0;else{const o=t>0?_.value[t-1]:null;o!=null&&I(o.createdAt)!==I(e.createdAt)&&(n=!0)}return n}w()||oe({handle:async(e,t)=>{if(t)re(q(t),"error");else{const n=[];n.push({...e.aiChat,md:await k(e.aiChat.content)});for(const o of e.aiChats)n.push({...o,md:await k(o.content)});_.value=n,await B(),L()}},document:ue,variables:()=>({id:d.value,query:`parent_id:${d.value} sort:created_at-asc`}),appApi:!0});const{mutate:$,onDone:O}=R({document:pe,appApi:!0});function D(){!i.value||C.value||$({id:w()?"":d.value,message:i.value,isMe:!0})}O(async e=>{var n;const t=e.data.createAIChat;if(t){for(const v of t)(n=_.value)==null||n.push({...v,md:await k(v.content)});w()&&(d.value=t[0].id,ie(U,`/aichats/${d.value}`)),i.value="",C.value=!C.value,b.value="",A.value='',await B(),L()}});function L(){const e=T.value;e&&(e.scrollTop=e.scrollHeight)}const M=r(""),{mutate:Y,loading:W}=R({document:_e,options:{update:e=>{var n,o;e.evict({id:e.identify({__typename:"AIChat",id:M.value})});const t=(n=_.value)==null?void 0:n.findIndex(v=>v.id===M.value);t!==null&&((o=_.value)==null||o.splice(t,1))}},appApi:!0});function X(e){M.value=e,Y({query:`ids:${e}`})}const S=async e=>{e.parentId===d.value&&(b.value+=e.content,A.value=await k(b.value+''),e.finishReason==="stop"&&$({id:d.value,message:b.value,isMe:!1}))};return le(()=>{N.on("ai_chat_replied",S)}),ce(()=>{N.off("ai_chat_replied",S)}),(e,t)=>{const n=ye,o=ge,v=Ce,V=de("tooltip");return c(),u("div",xe,[s("div",Te,[h(l(we),{class:"chat-container",horizontal:""},{default:f(()=>[h(l(G),{size:"80"},{default:f(()=>[s("div",{class:"chat-items",ref_key:"scrollContainer",ref:T},[(c(!0),u(ve,null,me(_.value,(a,H)=>(c(),u("div",{key:a.id,class:"chat-item"},[J(a,H)?(c(),u("div",$e,p(l(I)(a.createdAt)),1)):Q("",!0),H>0?(c(),he(o,{key:1},{content:f(()=>[s("div",Ve,[s("md-menu-item",{onClick:Oe=>X(a.id),disabled:l(W)},[s("div",Re,p(e.$t("delete_message")),1)],8,He)])]),default:f(()=>[s("div",De,[s("span",Le,p(e.$t(a.isMe?"me":"ai")),1),x((c(),u("span",Se,[z(p(l(F)(a.createdAt)),1)])),[[V,l(K)(a.createdAt)]]),h(n,{class:"bi bi-more"})])]),_:2},1024)):(c(),u("div",Be,[s("span",Ne,p(e.$t(a.isMe?"me":"ai")),1),x((c(),u("span",Qe,[z(p(l(F)(a.createdAt)),1)])),[[V,l(K)(a.createdAt)]])])),s("div",{class:"chat-content md-container",innerHTML:a.md},null,8,Ke)]))),128)),C.value?(c(),u("div",ze,[s("div",Fe,[s("span",Ge,p(e.$t("ai")),1)]),s("div",{class:"chat-content md-container",innerHTML:A.value},null,8,Ue)])):Q("",!0)],512)]),_:1}),h(l(G),{class:"chat-input",size:"12",style:{"min-height":"80px"}},{default:f(()=>[x(s("md-outlined-text-field",{class:"textarea",type:"textarea","onUpdate:modelValue":t[0]||(t[0]=a=>i.value=a),autocomplete:"off",placeholder:e.$t("chat_input_hint"),onKeydown:[y(m(D,["exact","prevent"]),["enter"]),t[1]||(t[1]=y(m(a=>i.value+=` +import{d as Z,e as ee,u as te,D as ae,r,s as se,f as ne,g as oe,i as R,aR as ie,U as B,O as le,P as N,Q as ce,R as de,c as u,a as s,p as h,H as f,j as l,x as re,b0 as ue,b1 as pe,b2 as _e,o as c,F as ve,J as me,t as p,b3 as I,k as Q,S as he,m as x,Y as K,h as z,b4 as F,v as fe,ap as y,l as m,b5 as ye,at as ge,b6 as Ce,A as be,B as ke,_ as Ae}from"./index-1dff6785.js";import{g as G,M as we}from"./splitpanes.es-e9e41ca8.js";import{u as Me}from"./markdown-a8cc08c7.js";const Ie=g=>(be("data-v-511dc1cd"),g=g(),ke(),g),xe={class:"page-container"},Te={class:"main"},$e={key:0,class:"date"},De={class:"chat-title"},Le={class:"name"},Se={class:"time"},Ve={class:"menu-items"},He=["onClick","disabled"],Re={slot:"headline"},Be={key:2,class:"chat-title"},Ne={class:"name"},Qe={class:"time"},Ke=["innerHTML"],ze={key:0,class:"chat-item replying"},Fe={class:"chat-title"},Ge={class:"name"},Ue=["innerHTML"],qe=["placeholder","onKeydown"],Pe={class:"btns"},je=["onClick"],Ee=Ie(()=>s("md-ripple",null,null,-1)),Je=Z({__name:"AIChatView",setup(g){const U=ee(),{t:q}=te(),P=ae(),d=r(P.params.id),i=r(""),_=r([]),C=r(!1),b=r(""),A=r(""),{app:j,urlTokenKey:E}=se(ne()),T=r(),{render:k}=Me(j,E);function w(){return d.value==="create"}function J(e,t){let n=!1;if(t==0)n=!0;else{const o=t>0?_.value[t-1]:null;o!=null&&I(o.createdAt)!==I(e.createdAt)&&(n=!0)}return n}w()||oe({handle:async(e,t)=>{if(t)re(q(t),"error");else{const n=[];n.push({...e.aiChat,md:await k(e.aiChat.content)});for(const o of e.aiChats)n.push({...o,md:await k(o.content)});_.value=n,await B(),L()}},document:ue,variables:()=>({id:d.value,query:`parent_id:${d.value} sort:created_at-asc`}),appApi:!0});const{mutate:$,onDone:O}=R({document:pe,appApi:!0});function D(){!i.value||C.value||$({id:w()?"":d.value,message:i.value,isMe:!0})}O(async e=>{var n;const t=e.data.createAIChat;if(t){for(const v of t)(n=_.value)==null||n.push({...v,md:await k(v.content)});w()&&(d.value=t[0].id,ie(U,`/aichats/${d.value}`)),i.value="",C.value=!C.value,b.value="",A.value='',await B(),L()}});function L(){const e=T.value;e&&(e.scrollTop=e.scrollHeight)}const M=r(""),{mutate:Y,loading:W}=R({document:_e,options:{update:e=>{var n,o;e.evict({id:e.identify({__typename:"AIChat",id:M.value})});const t=(n=_.value)==null?void 0:n.findIndex(v=>v.id===M.value);t!==null&&((o=_.value)==null||o.splice(t,1))}},appApi:!0});function X(e){M.value=e,Y({query:`ids:${e}`})}const S=async e=>{e.parentId===d.value&&(b.value+=e.content,A.value=await k(b.value+''),e.finishReason==="stop"&&$({id:d.value,message:b.value,isMe:!1}))};return le(()=>{N.on("ai_chat_replied",S)}),ce(()=>{N.off("ai_chat_replied",S)}),(e,t)=>{const n=ye,o=ge,v=Ce,V=de("tooltip");return c(),u("div",xe,[s("div",Te,[h(l(we),{class:"chat-container",horizontal:""},{default:f(()=>[h(l(G),{size:"80"},{default:f(()=>[s("div",{class:"chat-items",ref_key:"scrollContainer",ref:T},[(c(!0),u(ve,null,me(_.value,(a,H)=>(c(),u("div",{key:a.id,class:"chat-item"},[J(a,H)?(c(),u("div",$e,p(l(I)(a.createdAt)),1)):Q("",!0),H>0?(c(),he(o,{key:1},{content:f(()=>[s("div",Ve,[s("md-menu-item",{onClick:Oe=>X(a.id),disabled:l(W)},[s("div",Re,p(e.$t("delete_message")),1)],8,He)])]),default:f(()=>[s("div",De,[s("span",Le,p(e.$t(a.isMe?"me":"ai")),1),x((c(),u("span",Se,[z(p(l(F)(a.createdAt)),1)])),[[V,l(K)(a.createdAt)]]),h(n,{class:"bi bi-more"})])]),_:2},1024)):(c(),u("div",Be,[s("span",Ne,p(e.$t(a.isMe?"me":"ai")),1),x((c(),u("span",Qe,[z(p(l(F)(a.createdAt)),1)])),[[V,l(K)(a.createdAt)]])])),s("div",{class:"chat-content md-container",innerHTML:a.md},null,8,Ke)]))),128)),C.value?(c(),u("div",ze,[s("div",Fe,[s("span",Ge,p(e.$t("ai")),1)]),s("div",{class:"chat-content md-container",innerHTML:A.value},null,8,Ue)])):Q("",!0)],512)]),_:1}),h(l(G),{class:"chat-input",size:"12",style:{"min-height":"80px"}},{default:f(()=>[x(s("md-outlined-text-field",{class:"textarea",type:"textarea","onUpdate:modelValue":t[0]||(t[0]=a=>i.value=a),autocomplete:"off",placeholder:e.$t("chat_input_hint"),onKeydown:[y(m(D,["exact","prevent"]),["enter"]),t[1]||(t[1]=y(m(a=>i.value+=` `,["shift","exact","prevent"]),["enter"])),t[2]||(t[2]=y(m(a=>i.value+=` `,["ctrl","exact","prevent"]),["enter"])),t[3]||(t[3]=y(m(a=>i.value+=` `,["alt","exact","prevent"]),["enter"])),t[4]||(t[4]=y(m(a=>i.value+=` diff --git a/app/src/main/resources/web/assets/AIChatsRootView-ad28f6b2.js b/app/src/main/resources/web/assets/AIChatsRootView-73b761f6.js similarity index 91% rename from app/src/main/resources/web/assets/AIChatsRootView-ad28f6b2.js rename to app/src/main/resources/web/assets/AIChatsRootView-73b761f6.js index 5c2ce10e..a7b44b7d 100644 --- a/app/src/main/resources/web/assets/AIChatsRootView-ad28f6b2.js +++ b/app/src/main/resources/web/assets/AIChatsRootView-73b761f6.js @@ -1 +1 @@ -import{_ as A}from"./TagFilter.vuevuetypescriptsetuptruelang-873baaa8.js";import{o as p,c as _,a as e,d as k,r as M,u as L,i as V,b7 as x,an as G,g as I,x as D,b8 as N,U as S,ao as C,m as w,v as Z,j as t,n as B,ap as K,t as m,D as P,e as Q,E as R,G as z,R as E,p as i,H as $,h as F,l as b,I as H,C as U,a2 as j}from"./index-b6c39163.js";import{g as y,M as J}from"./splitpanes.es-f516e17d.js";import{u as O,a as W}from"./vee-validate.esm-03fad591.js";import"./EditValueModal-f5302cb7.js";const X={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Y=e("path",{fill:"currentColor",d:"m9.25 22l-.4-3.2q-.325-.125-.613-.3t-.562-.375L4.7 19.375l-2.75-4.75l2.575-1.95Q4.5 12.5 4.5 12.337v-.674q0-.163.025-.338L1.95 9.375l2.75-4.75l2.975 1.25q.275-.2.575-.375t.6-.3l.4-3.2h5.5l.4 3.2q.325.125.613.3t.562.375l2.975-1.25l2.75 4.75l-2.575 1.95q.025.175.025.338v.674q0 .163-.05.338l2.575 1.95l-2.75 4.75l-2.95-1.25q-.275.2-.575.375t-.6.3l-.4 3.2h-5.5Zm2.8-6.5q1.45 0 2.475-1.025T15.55 12q0-1.45-1.025-2.475T12.05 8.5q-1.475 0-2.488 1.025T8.55 12q0 1.45 1.012 2.475T12.05 15.5Zm0-2q-.625 0-1.063-.438T10.55 12q0-.625.438-1.063t1.062-.437q.625 0 1.063.438T13.55 12q0 .625-.438 1.063t-1.062.437ZM12 12Zm-1 8h1.975l.35-2.65q.775-.2 1.438-.588t1.212-.937l2.475 1.025l.975-1.7l-2.15-1.625q.125-.35.175-.737T17.5 12q0-.4-.05-.787t-.175-.738l2.15-1.625l-.975-1.7l-2.475 1.05q-.55-.575-1.212-.962t-1.438-.588L13 4h-1.975l-.35 2.65q-.775.2-1.437.588t-1.213.937L5.55 7.15l-.975 1.7l2.15 1.6q-.125.375-.175.75t-.05.8q0 .4.05.775t.175.75l-2.15 1.625l.975 1.7l2.475-1.05q.55.575 1.213.963t1.437.587L11 20Z"},null,-1),tt=[Y];function et(h,r){return p(),_("svg",X,tt)}const ot={name:"material-symbols-settings-outline",render:et},st=e("div",{slot:"headline"},"ChatGPT",-1),at={slot:"content"},nt=["label","error","error-text"],lt={slot:"actions"},it=["disabled"],rt=k({__name:"AIChatConfigModal",props:{value:{type:String}},setup(h){const r=h,{handleSubmit:v}=O(),c=M(),{t:f}=L(),{mutate:q,loading:u,onDone:T}=V({document:x,options:{update:()=>{}},appApi:!0}),{value:a,resetField:g,errorMessage:d}=W("inputValue",G());a.value=r.value??"",a.value||g(),I({handle:(s,o)=>{o?D(f(o),"error"):s&&(a.value=s.aiChatConfig.chatGPTApiKey)},document:N,variables:null,appApi:!0}),(async()=>{var s;await S(),(s=c.value)==null||s.focus()})();const l=v(()=>{q({chatGPTApiKey:a.value??""})});return T(()=>{C()}),(s,o)=>(p(),_("md-dialog",null,[st,e("div",at,[w(e("md-outlined-text-field",{ref_key:"input",ref:c,label:s.$t("api_key"),class:"form-control","onUpdate:modelValue":o[0]||(o[0]=n=>B(a)?a.value=n:null),onKeyup:o[1]||(o[1]=K((...n)=>t(l)&&t(l)(...n),["enter"])),error:t(d),"error-text":t(d)?s.$t(t(d)):""},null,40,nt),[[Z,t(a)]])]),e("div",lt,[e("md-outlined-button",{value:"cancel",onClick:o[2]||(o[2]=(...n)=>t(C)&&t(C)(...n))},m(s.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:t(u),onClick:o[3]||(o[3]=(...n)=>t(l)&&t(l)(...n)),autofocus:""},m(s.$t("save")),9,it)])]))}}),ct={class:"page-container"},ut={class:"sidebar"},dt={class:"nav-title"},pt=["onClick"],_t=e("md-ripple",null,null,-1),mt={class:"nav"},ht=["onClick"],vt={class:"main"},Tt=k({__name:"AIChatsRootView",setup(h){const r=P(),v=Q(),c=R(r.query);function f(){U(v,"/aichats")}function q(){j(rt)}return(u,T)=>{const a=ot,g=A,d=z("router-view"),l=E("tooltip");return p(),_("div",ct,[i(t(J),null,{default:$(()=>[i(t(y),{size:"20","min-size":"10"},{default:$(()=>[e("div",ut,[e("h2",dt,[F(m(u.$t("page_title.aichats"))+" ",1),w((p(),_("button",{class:"icon-button",onClick:b(q,["prevent"])},[_t,i(a)],8,pt)),[[l,u.$t("config")]])]),e("ul",mt,[e("li",{onClick:b(f,["prevent"]),class:H({active:t(r).path==="/aichats"&&!t(c)})},m(u.$t("all")),11,ht)]),i(g,{type:"AI_CHAT",selected:t(c)},null,8,["selected"])])]),_:1}),i(t(y),null,{default:$(()=>[e("div",vt,[i(d)])]),_:1})]),_:1})])}}});export{Tt as default}; +import{_ as A}from"./TagFilter.vuevuetypescriptsetuptruelang-2bcd90c5.js";import{o as p,c as _,a as e,d as k,r as M,u as L,i as V,b7 as x,an as G,g as I,x as D,b8 as N,U as S,ao as C,m as w,v as Z,j as t,n as B,ap as K,t as m,D as P,e as Q,E as R,G as z,R as E,p as i,H as $,h as F,l as b,I as H,C as U,a2 as j}from"./index-1dff6785.js";import{g as y,M as J}from"./splitpanes.es-e9e41ca8.js";import{u as O,a as W}from"./vee-validate.esm-b0b47415.js";import"./EditValueModal-1892701b.js";const X={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Y=e("path",{fill:"currentColor",d:"m9.25 22l-.4-3.2q-.325-.125-.613-.3t-.562-.375L4.7 19.375l-2.75-4.75l2.575-1.95Q4.5 12.5 4.5 12.337v-.674q0-.163.025-.338L1.95 9.375l2.75-4.75l2.975 1.25q.275-.2.575-.375t.6-.3l.4-3.2h5.5l.4 3.2q.325.125.613.3t.562.375l2.975-1.25l2.75 4.75l-2.575 1.95q.025.175.025.338v.674q0 .163-.05.338l2.575 1.95l-2.75 4.75l-2.95-1.25q-.275.2-.575.375t-.6.3l-.4 3.2h-5.5Zm2.8-6.5q1.45 0 2.475-1.025T15.55 12q0-1.45-1.025-2.475T12.05 8.5q-1.475 0-2.488 1.025T8.55 12q0 1.45 1.012 2.475T12.05 15.5Zm0-2q-.625 0-1.063-.438T10.55 12q0-.625.438-1.063t1.062-.437q.625 0 1.063.438T13.55 12q0 .625-.438 1.063t-1.062.437ZM12 12Zm-1 8h1.975l.35-2.65q.775-.2 1.438-.588t1.212-.937l2.475 1.025l.975-1.7l-2.15-1.625q.125-.35.175-.737T17.5 12q0-.4-.05-.787t-.175-.738l2.15-1.625l-.975-1.7l-2.475 1.05q-.55-.575-1.212-.962t-1.438-.588L13 4h-1.975l-.35 2.65q-.775.2-1.437.588t-1.213.937L5.55 7.15l-.975 1.7l2.15 1.6q-.125.375-.175.75t-.05.8q0 .4.05.775t.175.75l-2.15 1.625l.975 1.7l2.475-1.05q.55.575 1.213.963t1.437.587L11 20Z"},null,-1),tt=[Y];function et(h,r){return p(),_("svg",X,tt)}const ot={name:"material-symbols-settings-outline",render:et},st=e("div",{slot:"headline"},"ChatGPT",-1),at={slot:"content"},nt=["label","error","error-text"],lt={slot:"actions"},it=["disabled"],rt=k({__name:"AIChatConfigModal",props:{value:{type:String}},setup(h){const r=h,{handleSubmit:v}=O(),c=M(),{t:f}=L(),{mutate:q,loading:u,onDone:T}=V({document:x,options:{update:()=>{}},appApi:!0}),{value:a,resetField:g,errorMessage:d}=W("inputValue",G());a.value=r.value??"",a.value||g(),I({handle:(s,o)=>{o?D(f(o),"error"):s&&(a.value=s.aiChatConfig.chatGPTApiKey)},document:N,variables:null,appApi:!0}),(async()=>{var s;await S(),(s=c.value)==null||s.focus()})();const l=v(()=>{q({chatGPTApiKey:a.value??""})});return T(()=>{C()}),(s,o)=>(p(),_("md-dialog",null,[st,e("div",at,[w(e("md-outlined-text-field",{ref_key:"input",ref:c,label:s.$t("api_key"),class:"form-control","onUpdate:modelValue":o[0]||(o[0]=n=>B(a)?a.value=n:null),onKeyup:o[1]||(o[1]=K((...n)=>t(l)&&t(l)(...n),["enter"])),error:t(d),"error-text":t(d)?s.$t(t(d)):""},null,40,nt),[[Z,t(a)]])]),e("div",lt,[e("md-outlined-button",{value:"cancel",onClick:o[2]||(o[2]=(...n)=>t(C)&&t(C)(...n))},m(s.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:t(u),onClick:o[3]||(o[3]=(...n)=>t(l)&&t(l)(...n)),autofocus:""},m(s.$t("save")),9,it)])]))}}),ct={class:"page-container"},ut={class:"sidebar"},dt={class:"nav-title"},pt=["onClick"],_t=e("md-ripple",null,null,-1),mt={class:"nav"},ht=["onClick"],vt={class:"main"},Tt=k({__name:"AIChatsRootView",setup(h){const r=P(),v=Q(),c=R(r.query);function f(){U(v,"/aichats")}function q(){j(rt)}return(u,T)=>{const a=ot,g=A,d=z("router-view"),l=E("tooltip");return p(),_("div",ct,[i(t(J),null,{default:$(()=>[i(t(y),{size:"20","min-size":"10"},{default:$(()=>[e("div",ut,[e("h2",dt,[F(m(u.$t("page_title.aichats"))+" ",1),w((p(),_("button",{class:"icon-button",onClick:b(q,["prevent"])},[_t,i(a)],8,pt)),[[l,u.$t("config")]])]),e("ul",mt,[e("li",{onClick:b(f,["prevent"]),class:H({active:t(r).path==="/aichats"&&!t(c)})},m(u.$t("all")),11,ht)]),i(g,{type:"AI_CHAT",selected:t(c)},null,8,["selected"])])]),_:1}),i(t(y),null,{default:$(()=>[e("div",vt,[i(d)])]),_:1})]),_:1})])}}});export{Tt as default}; diff --git a/app/src/main/resources/web/assets/AIChatsView-27a66c8b.js b/app/src/main/resources/web/assets/AIChatsView-f4407fd2.js similarity index 93% rename from app/src/main/resources/web/assets/AIChatsView-27a66c8b.js rename to app/src/main/resources/web/assets/AIChatsView-f4407fd2.js index 25173e43..7b24e626 100644 --- a/app/src/main/resources/web/assets/AIChatsView-27a66c8b.js +++ b/app/src/main/resources/web/assets/AIChatsView-f4407fd2.js @@ -1,4 +1,4 @@ -import{c as fe,u as ve,_ as ke,a as be,b as $e}from"./list-6c4ddffc.js";import{d as Ce,e as ye,r as k,u as Ae,K as Te,L as we,D as Ie,M as Se,N as qe,w as De,O as Ve,P as b,Q as Qe,R as Ue,c as o,a as t,p as c,j as s,F as T,m as _,l as u,k as S,t as d,H as Be,J as K,S as Me,T as Ne,U as Re,b2 as Le,x as Fe,b9 as He,C as j,W as E,o as n,v as ze,I as Pe,aS as Ge,Y as J,h as O,Z as W,$ as Ke,a0 as je,a1 as Ee,ba as Y,a2 as Z,ab as Je,ac as Oe,a3 as We,ad as Ye,a4 as Ze,a5 as Xe,a6 as xe}from"./index-b6c39163.js";import{_ as et}from"./Breadcrumb-fef16e9c.js";import{u as tt,a as at}from"./tags-3bd6efbc.js";import"./vee-validate.esm-03fad591.js";const st={class:"v-toolbar"},lt=t("md-ripple",null,null,-1),nt=t("md-ripple",null,null,-1),ot=["onClick"],dt={class:"filters"},ct=["label"],it={class:"form-label"},ut=["label","selected","onClick"],rt={class:"buttons"},_t=["onClick"],pt={class:"table-responsive"},ht={class:"table"},mt=["checked","indeterminate"],gt=t("th",null,"ID",-1),ft=t("th",null,null,-1),vt=["onClick"],kt=["checked"],bt=["onClick"],$t={class:"nowrap"},Ct={class:"action-btns"},yt=["onClick"],At=t("md-ripple",null,null,-1),Tt=["onClick"],wt=t("md-ripple",null,null,-1),It={class:"nowrap"},St={class:"nowrap"},qt={key:0},Dt={colspan:"7"},Vt={class:"no-data-placeholder"},$=50,Ft=Ce({__name:"AIChatsView",setup(Qt){var H,z;const q=ye(),p=k([]),D=k(),{t:X}=Ae(),i=Te({text:"",tags:[]}),r=we.AI_CHAT,V=Ie().query,C=k(parseInt(((H=V.page)==null?void 0:H.toString())??"1")),h=k(Se(((z=V.q)==null?void 0:z.toString())??"")),y=k(""),{tags:A}=tt(r,h,i,async e=>{e.push({name:"parent_id",op:"",value:""}),y.value=Ne(e),await Re(),ne()}),{addToTags:x}=at(r,p,A),{deleteItems:ee}=fe(Le,()=>{I()},p),{allChecked:Q,realAllChecked:w,selectRealAll:te,allCheckedAlertVisible:ae,clearSelection:U,toggleAllChecked:B,toggleItemChecked:M,toggleRow:se,total:m,checked:N}=ve(p),{loading:le,load:ne,refetch:I}=qe({handle:(e,l)=>{l?Fe(X(l),"error"):e&&(p.value=e.aiChats.map(v=>({...v,checked:!1})),m.value=e.aiChatCount)},document:He,variables:()=>({offset:(C.value-1)*$,limit:$,query:y.value}),appApi:!0});De(C,e=>{j(q,`/aichats?page=${e}&q=${E(h.value)}`)});function oe(e){i.tags.includes(e)?je(i.tags,l=>l.id===e.id):i.tags.push(e)}function de(){h.value=Ee(i),R(),D.value.dismiss()}function R(){j(q,`/aichats?q=${E(h.value)}`)}const L=e=>{e.type===r&&(U(),I())},F=e=>{e.type===r&&I()};Ve(()=>{b.on("item_tags_updated",F),b.on("items_tags_updated",L)}),Qe(()=>{b.off("item_tags_updated",F),b.off("items_tags_updated",L)});function ce(e){Y(`/aichats/${e.id}`)}function ie(){Y("/aichats/create")}function ue(e){Z(Oe,{id:e.id,name:e.id,gql:Je` +import{c as fe,u as ve,_ as ke,a as be,b as $e}from"./list-0d76acfa.js";import{d as Ce,e as ye,r as k,u as Ae,K as Te,L as we,D as Ie,M as Se,N as qe,w as De,O as Ve,P as b,Q as Qe,R as Ue,c as o,a as t,p as c,j as s,F as T,m as _,l as u,k as S,t as d,H as Be,J as K,S as Me,T as Ne,U as Re,b2 as Le,x as Fe,b9 as He,C as j,W as E,o as n,v as ze,I as Pe,aS as Ge,Y as J,h as O,Z as W,$ as Ke,a0 as je,a1 as Ee,ba as Y,a2 as Z,ab as Je,ac as Oe,a3 as We,ad as Ye,a4 as Ze,a5 as Xe,a6 as xe}from"./index-1dff6785.js";import{_ as et}from"./Breadcrumb-cba2b95b.js";import{u as tt,a as at}from"./tags-ba1ad11a.js";import"./vee-validate.esm-b0b47415.js";const st={class:"v-toolbar"},lt=t("md-ripple",null,null,-1),nt=t("md-ripple",null,null,-1),ot=["onClick"],dt={class:"filters"},ct=["label"],it={class:"form-label"},ut=["label","selected","onClick"],rt={class:"buttons"},_t=["onClick"],pt={class:"table-responsive"},ht={class:"table"},mt=["checked","indeterminate"],gt=t("th",null,"ID",-1),ft=t("th",null,null,-1),vt=["onClick"],kt=["checked"],bt=["onClick"],$t={class:"nowrap"},Ct={class:"action-btns"},yt=["onClick"],At=t("md-ripple",null,null,-1),Tt=["onClick"],wt=t("md-ripple",null,null,-1),It={class:"nowrap"},St={class:"nowrap"},qt={key:0},Dt={colspan:"7"},Vt={class:"no-data-placeholder"},$=50,Ft=Ce({__name:"AIChatsView",setup(Qt){var H,z;const q=ye(),p=k([]),D=k(),{t:X}=Ae(),i=Te({text:"",tags:[]}),r=we.AI_CHAT,V=Ie().query,C=k(parseInt(((H=V.page)==null?void 0:H.toString())??"1")),h=k(Se(((z=V.q)==null?void 0:z.toString())??"")),y=k(""),{tags:A}=tt(r,h,i,async e=>{e.push({name:"parent_id",op:"",value:""}),y.value=Ne(e),await Re(),ne()}),{addToTags:x}=at(r,p,A),{deleteItems:ee}=fe(Le,()=>{I()},p),{allChecked:Q,realAllChecked:w,selectRealAll:te,allCheckedAlertVisible:ae,clearSelection:U,toggleAllChecked:B,toggleItemChecked:M,toggleRow:se,total:m,checked:N}=ve(p),{loading:le,load:ne,refetch:I}=qe({handle:(e,l)=>{l?Fe(X(l),"error"):e&&(p.value=e.aiChats.map(v=>({...v,checked:!1})),m.value=e.aiChatCount)},document:He,variables:()=>({offset:(C.value-1)*$,limit:$,query:y.value}),appApi:!0});De(C,e=>{j(q,`/aichats?page=${e}&q=${E(h.value)}`)});function oe(e){i.tags.includes(e)?je(i.tags,l=>l.id===e.id):i.tags.push(e)}function de(){h.value=Ee(i),R(),D.value.dismiss()}function R(){j(q,`/aichats?q=${E(h.value)}`)}const L=e=>{e.type===r&&(U(),I())},F=e=>{e.type===r&&I()};Ve(()=>{b.on("item_tags_updated",F),b.on("items_tags_updated",L)}),Qe(()=>{b.off("item_tags_updated",F),b.off("items_tags_updated",L)});function ce(e){Y(`/aichats/${e.id}`)}function ie(){Y("/aichats/create")}function ue(e){Z(Oe,{id:e.id,name:e.id,gql:Je` mutation DeleteAIChat($query: String!) { deleteAIChats(query: $query) } diff --git a/app/src/main/resources/web/assets/AppsRootView-892b79ca.js b/app/src/main/resources/web/assets/AppsRootView-89b3b686.js similarity index 93% rename from app/src/main/resources/web/assets/AppsRootView-892b79ca.js rename to app/src/main/resources/web/assets/AppsRootView-89b3b686.js index 010f3ac2..a4979720 100644 --- a/app/src/main/resources/web/assets/AppsRootView-892b79ca.js +++ b/app/src/main/resources/web/assets/AppsRootView-89b3b686.js @@ -1 +1 @@ -import{d as k,D as $,e as g,G as w,c as p,p as o,H as n,j as t,o as r,a as e,t as i,l as _,I as u,F as B,J as z,C as d}from"./index-b6c39163.js";import{g as m,M}from"./splitpanes.es-f516e17d.js";const S={class:"page-container"},V={class:"sidebar"},D={class:"nav-title"},F={class:"nav"},N=["onClick"],R=["onClick"],b={class:"main"},I=k({__name:"AppsRootView",setup(j){const l=$(),c=g(),h=l.params.type;function v(s){d(c,`/apps/${s}`)}const f=["user","system"];function y(){d(c,"/apps")}return(s,A)=>{const C=w("router-view");return r(),p("div",S,[o(t(M),null,{default:n(()=>[o(t(m),{size:"20","min-size":"10"},{default:n(()=>[e("div",V,[e("h2",D,i(s.$t("page_title.apps")),1),e("ul",F,[e("li",{onClick:_(y,["prevent"]),class:u({active:t(l).path==="/apps"})},i(s.$t("all")),11,N),(r(),p(B,null,z(f,a=>e("li",{key:a,onClick:_(E=>v(a),["prevent"]),class:u({active:a===t(h)})},i(s.$t(`app_type.${a}`)),11,R)),64))])])]),_:1}),o(t(m),null,{default:n(()=>[e("div",b,[o(C)])]),_:1})]),_:1})])}}});export{I as default}; +import{d as k,D as $,e as g,G as w,c as p,p as o,H as n,j as t,o as r,a as e,t as i,l as _,I as u,F as B,J as z,C as d}from"./index-1dff6785.js";import{g as m,M}from"./splitpanes.es-e9e41ca8.js";const S={class:"page-container"},V={class:"sidebar"},D={class:"nav-title"},F={class:"nav"},N=["onClick"],R=["onClick"],b={class:"main"},I=k({__name:"AppsRootView",setup(j){const l=$(),c=g(),h=l.params.type;function v(s){d(c,`/apps/${s}`)}const f=["user","system"];function y(){d(c,"/apps")}return(s,A)=>{const C=w("router-view");return r(),p("div",S,[o(t(M),null,{default:n(()=>[o(t(m),{size:"20","min-size":"10"},{default:n(()=>[e("div",V,[e("h2",D,i(s.$t("page_title.apps")),1),e("ul",F,[e("li",{onClick:_(y,["prevent"]),class:u({active:t(l).path==="/apps"})},i(s.$t("all")),11,N),(r(),p(B,null,z(f,a=>e("li",{key:a,onClick:_(E=>v(a),["prevent"]),class:u({active:a===t(h)})},i(s.$t(`app_type.${a}`)),11,R)),64))])])]),_:1}),o(t(m),null,{default:n(()=>[e("div",b,[o(C)])]),_:1})]),_:1})])}}});export{I as default}; diff --git a/app/src/main/resources/web/assets/AppsView-c40d17f3.js b/app/src/main/resources/web/assets/AppsView-5bd18fd7.js similarity index 96% rename from app/src/main/resources/web/assets/AppsView-c40d17f3.js rename to app/src/main/resources/web/assets/AppsView-5bd18fd7.js index ff52c5f1..f01cf369 100644 --- a/app/src/main/resources/web/assets/AppsView-c40d17f3.js +++ b/app/src/main/resources/web/assets/AppsView-5bd18fd7.js @@ -1 +1 @@ -import{u as $e,_ as be,a as Ce,b as we}from"./list-6c4ddffc.js";import{P,d as Se,ae as Ae,e as De,r as g,u as Ie,s as Ve,f as Ue,K as Te,af as qe,L as Pe,D as Qe,M as Be,ag as Fe,T as Y,g as Le,w as ze,i as Me,N as Re,O as Ne,Q as Ge,R as Ke,c as i,a as t,p as r,j as n,m as p,l as _,k as T,h as A,t as a,H as je,F as q,J as xe,S as Ee,x as He,ah as Je,ai as Oe,C as D,W as I,aj as We,ak as Ye,o,v as Ze,I as Xe,z as et,Y as Z,Z as X,$ as tt,al as st,am as nt,a5 as lt,ad as at}from"./index-b6c39163.js";import{_ as ot}from"./Breadcrumb-fef16e9c.js";const ee=m=>{P.emit("tap_phone",m)};function it(m,V){const $=m.findIndex(b=>b.id===V);$!==-1&&m.splice($,1)}const ct={class:"v-toolbar"},dt=t("md-ripple",null,null,-1),ut=["onClick"],rt=t("md-ripple",null,null,-1),pt={class:"filters"},_t={class:"form-row"},ht=["label"],ft={class:"buttons"},mt=["onClick"],kt={class:"table-responsive"},vt={class:"table"},gt=["checked","indeterminate"],yt=t("th",null,null,-1),$t=t("th",null,null,-1),bt=["onClick"],Ct=["checked"],wt=["src"],St={class:"v-center"},At={class:"nowrap"},Dt={class:"action-btns"},It={indeterminate:"",class:"spinner-sm"},Vt=["onClick"],Ut=["onClick"],Tt=t("md-ripple",null,null,-1),qt=["onClick"],Pt=t("md-ripple",null,null,-1),Qt={class:"nowrap"},Bt={class:"nowrap"},Ft={class:"nowrap"},Lt={class:"nowrap"},zt={key:0},Mt={colspan:"8"},Rt={class:"no-data-placeholder"},y=50,jt=Se({__name:"AppsView",setup(m){var J,O;const{input:V,upload:$,uploadChanged:b}=Ae(),C=De(),c=g([]),Q=g(),{t:B}=Ie(),{app:te,urlTokenKey:U}=Ve(Ue()),w=Te({text:"",tags:[]}),{allChecked:F,realAllChecked:L,selectRealAll:se,allCheckedAlertVisible:ne,clearSelection:z,toggleAllChecked:M,toggleItemChecked:R,toggleRow:le,total:k,checked:N}=$e(c),{downloadItems:ae}=qe(U,Pe.PACKAGE,c,z,"apps.zip"),{downloadFile:oe}=st(U),G=Qe(),K=G.query,S=g(parseInt(((J=K.page)==null?void 0:J.toString())??"1")),d=g(Be(((O=K.q)==null?void 0:O.toString())??"")),j=Fe(d.value),h=G.params.type;h&&j.push({name:"type",op:"",value:h});const x=g(Y(j)),ie=()=>{$(te.value.downloadsDir)},ce=e=>{e.isUninstalling=!1},{loading:de}=Le({handle:(e,l)=>{l?He(B(l),"error"):e&&(c.value=e.packages.map(u=>({...u,checked:!1,icon:Je(U.value,"pkgicon://"+u.id)})),k.value=e.packageCount)},document:Oe,variables:()=>({offset:(S.value-1)*y,limit:y,query:x.value}),appApi:!0});ze(S,e=>{h?D(C,`/apps/${h}?page=${e}&q=${I(d.value)}`):D(C,`/apps?page=${e}&q=${I(d.value)}`)});function ue(){const e=[];w.text&&e.push({name:"text",op:"",value:w.text}),d.value=Y(e),E(),Q.value.dismiss()}function E(){h?D(C,`/apps/${h}?q=${I(d.value)}`):D(C,`/apps?q=${I(d.value)}`)}const{mutate:re}=Me({document:We,appApi:!0});function pe(e){e.isUninstalling=!0,ee(B("confirm_uninstallation_on_phone")),re({id:e.id})}const{loading:_e,load:he,refetch:fe}=Re({handle:(e,l)=>{if(e)for(const u of e.packageStatuses)u.exist||(it(c.value,u.id),ee(""))},document:Ye,variables:()=>({ids:c.value.filter(e=>e.isUninstalling).map(e=>e.id)}),appApi:!0}),H=e=>{e.status};return Ne(()=>{P.on("upload_task_done",H);let e=!0;setInterval(()=>{c.value.some(l=>l.isUninstalling)&&!_e.value&&(e?(he(),e=!1):fe())},1e3)}),Ge(()=>{P.off("upload_task_done",H)}),(e,l)=>{const u=ot,W=nt,me=be,ke=Ce,ve=lt,ge=at,ye=we,f=Ke("tooltip");return o(),i(q,null,[t("div",ct,[r(u,{current:()=>`${e.$t("page_title.apps")} (${n(k)})`},null,8,["current"]),n(N)?p((o(),i("button",{key:0,class:"icon-button",onClick:l[0]||(l[0]=_(s=>n(ae)(n(L),x.value),["stop"]))},[dt,r(W)])),[[f,e.$t("download")]]):T("",!0),t("button",{class:"icon-button",onClick:_(ie,["stop"]),style:{display:"none"}},[rt,A(" "+a(e.$t("install")),1)],8,ut),r(me,{ref_key:"searchInputRef",ref:Q,modelValue:d.value,"onUpdate:modelValue":l[2]||(l[2]=s=>d.value=s),search:E},{filters:je(()=>[t("div",pt,[t("div",_t,[p(t("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":l[1]||(l[1]=s=>w.text=s),"keyup.enter":"applyAndDoSearch"},null,8,ht),[[Ze,w.text]])]),t("div",ft,[t("md-filled-button",{onClick:_(ue,["stop"])},a(e.$t("search")),9,mt)])])]),_:1},8,["modelValue"])]),r(ke,{limit:y,total:n(k),"all-checked-alert-visible":n(ne),"real-all-checked":n(L),"select-real-all":n(se),"clear-selection":n(z)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t("div",kt,[t("table",vt,[t("thead",null,[t("tr",null,[t("th",null,[t("md-checkbox",{"touch-target":"wrapper",onChange:l[3]||(l[3]=(...s)=>n(M)&&n(M)(...s)),checked:n(F),indeterminate:!n(F)&&n(N)},null,40,gt)]),yt,t("th",null,a(e.$t("name")),1),$t,t("th",null,a(e.$t("size")),1),t("th",null,a(e.$t("type")),1),t("th",null,a(e.$t("installed_at")),1),t("th",null,a(e.$t("updated_at")),1)])]),t("tbody",null,[(o(!0),i(q,null,xe(c.value,s=>(o(),i("tr",{key:s.id,class:Xe({selected:s.checked}),onClick:_(v=>n(le)(s),["stop"])},[t("td",null,[t("md-checkbox",{"touch-target":"wrapper",onChange:l[4]||(l[4]=(...v)=>n(R)&&n(R)(...v)),checked:s.checked},null,40,Ct)]),t("td",null,[t("img",{width:"50",height:"50",src:s.icon},null,8,wt)]),t("td",null,[t("strong",St,a(s.name)+" ("+a(s.version)+")",1),r(ve,{id:s.id,raw:s},null,8,["id","raw"])]),t("td",At,[t("div",Dt,[s.isUninstalling?(o(),i(q,{key:0},[p(t("md-circular-progress",It,null,512),[[f,e.$t("uninstalling")]]),A("  "),t("md-outlined-button",{class:"btn-sm",onClick:_(v=>ce(s),["stop"])},a(e.$t("cancel")),9,Vt)],64)):p((o(),i("button",{key:1,class:"icon-button",onClick:_(v=>pe(s),["stop"])},[Tt,r(ge)],8,Ut)),[[f,e.$t("uninstall")]]),p((o(),i("button",{class:"icon-button",onClick:_(v=>n(oe)(s.path,`${s.name.replace(" ","")}-${s.id}.apk`),["stop"])},[Pt,r(W)],8,qt)),[[f,e.$t("download")]])])]),t("td",Qt,a(n(et)(s.size)),1),t("td",Bt,a(e.$t("app_type."+s.type)),1),t("td",Ft,[p((o(),i("span",null,[A(a(n(X)(s.installedAt)),1)])),[[f,n(Z)(s.installedAt)]])]),t("td",Lt,[p((o(),i("span",null,[A(a(n(X)(s.updatedAt)),1)])),[[f,n(Z)(s.updatedAt)]])])],10,bt))),128))]),c.value.length?T("",!0):(o(),i("tfoot",zt,[t("tr",null,[t("td",Mt,[t("div",Rt,a(e.$t(n(tt)(n(de)))),1)])])]))])]),n(k)>y?(o(),Ee(ye,{key:0,modelValue:S.value,"onUpdate:modelValue":l[5]||(l[5]=s=>S.value=s),total:n(k),limit:y},null,8,["modelValue","total"])):T("",!0),t("input",{ref_key:"fileInput",ref:V,style:{display:"none"},type:"file",accept:".apk",multiple:"",onChange:l[6]||(l[6]=(...s)=>n(b)&&n(b)(...s))},null,544)],64)}}});export{jt as default}; +import{u as $e,_ as be,a as Ce,b as we}from"./list-0d76acfa.js";import{P,d as Se,ae as Ae,e as De,r as g,u as Ie,s as Ve,f as Ue,K as Te,af as qe,L as Pe,D as Qe,M as Be,ag as Fe,T as Y,g as Le,w as ze,i as Me,N as Re,O as Ne,Q as Ge,R as Ke,c as i,a as t,p as r,j as n,m as p,l as _,k as T,h as A,t as a,H as je,F as q,J as xe,S as Ee,x as He,ah as Je,ai as Oe,C as D,W as I,aj as We,ak as Ye,o,v as Ze,I as Xe,z as et,Y as Z,Z as X,$ as tt,al as st,am as nt,a5 as lt,ad as at}from"./index-1dff6785.js";import{_ as ot}from"./Breadcrumb-cba2b95b.js";const ee=m=>{P.emit("tap_phone",m)};function it(m,V){const $=m.findIndex(b=>b.id===V);$!==-1&&m.splice($,1)}const ct={class:"v-toolbar"},dt=t("md-ripple",null,null,-1),ut=["onClick"],rt=t("md-ripple",null,null,-1),pt={class:"filters"},_t={class:"form-row"},ht=["label"],ft={class:"buttons"},mt=["onClick"],kt={class:"table-responsive"},vt={class:"table"},gt=["checked","indeterminate"],yt=t("th",null,null,-1),$t=t("th",null,null,-1),bt=["onClick"],Ct=["checked"],wt=["src"],St={class:"v-center"},At={class:"nowrap"},Dt={class:"action-btns"},It={indeterminate:"",class:"spinner-sm"},Vt=["onClick"],Ut=["onClick"],Tt=t("md-ripple",null,null,-1),qt=["onClick"],Pt=t("md-ripple",null,null,-1),Qt={class:"nowrap"},Bt={class:"nowrap"},Ft={class:"nowrap"},Lt={class:"nowrap"},zt={key:0},Mt={colspan:"8"},Rt={class:"no-data-placeholder"},y=50,jt=Se({__name:"AppsView",setup(m){var J,O;const{input:V,upload:$,uploadChanged:b}=Ae(),C=De(),c=g([]),Q=g(),{t:B}=Ie(),{app:te,urlTokenKey:U}=Ve(Ue()),w=Te({text:"",tags:[]}),{allChecked:F,realAllChecked:L,selectRealAll:se,allCheckedAlertVisible:ne,clearSelection:z,toggleAllChecked:M,toggleItemChecked:R,toggleRow:le,total:k,checked:N}=$e(c),{downloadItems:ae}=qe(U,Pe.PACKAGE,c,z,"apps.zip"),{downloadFile:oe}=st(U),G=Qe(),K=G.query,S=g(parseInt(((J=K.page)==null?void 0:J.toString())??"1")),d=g(Be(((O=K.q)==null?void 0:O.toString())??"")),j=Fe(d.value),h=G.params.type;h&&j.push({name:"type",op:"",value:h});const x=g(Y(j)),ie=()=>{$(te.value.downloadsDir)},ce=e=>{e.isUninstalling=!1},{loading:de}=Le({handle:(e,l)=>{l?He(B(l),"error"):e&&(c.value=e.packages.map(u=>({...u,checked:!1,icon:Je(U.value,"pkgicon://"+u.id)})),k.value=e.packageCount)},document:Oe,variables:()=>({offset:(S.value-1)*y,limit:y,query:x.value}),appApi:!0});ze(S,e=>{h?D(C,`/apps/${h}?page=${e}&q=${I(d.value)}`):D(C,`/apps?page=${e}&q=${I(d.value)}`)});function ue(){const e=[];w.text&&e.push({name:"text",op:"",value:w.text}),d.value=Y(e),E(),Q.value.dismiss()}function E(){h?D(C,`/apps/${h}?q=${I(d.value)}`):D(C,`/apps?q=${I(d.value)}`)}const{mutate:re}=Me({document:We,appApi:!0});function pe(e){e.isUninstalling=!0,ee(B("confirm_uninstallation_on_phone")),re({id:e.id})}const{loading:_e,load:he,refetch:fe}=Re({handle:(e,l)=>{if(e)for(const u of e.packageStatuses)u.exist||(it(c.value,u.id),ee(""))},document:Ye,variables:()=>({ids:c.value.filter(e=>e.isUninstalling).map(e=>e.id)}),appApi:!0}),H=e=>{e.status};return Ne(()=>{P.on("upload_task_done",H);let e=!0;setInterval(()=>{c.value.some(l=>l.isUninstalling)&&!_e.value&&(e?(he(),e=!1):fe())},1e3)}),Ge(()=>{P.off("upload_task_done",H)}),(e,l)=>{const u=ot,W=nt,me=be,ke=Ce,ve=lt,ge=at,ye=we,f=Ke("tooltip");return o(),i(q,null,[t("div",ct,[r(u,{current:()=>`${e.$t("page_title.apps")} (${n(k)})`},null,8,["current"]),n(N)?p((o(),i("button",{key:0,class:"icon-button",onClick:l[0]||(l[0]=_(s=>n(ae)(n(L),x.value),["stop"]))},[dt,r(W)])),[[f,e.$t("download")]]):T("",!0),t("button",{class:"icon-button",onClick:_(ie,["stop"]),style:{display:"none"}},[rt,A(" "+a(e.$t("install")),1)],8,ut),r(me,{ref_key:"searchInputRef",ref:Q,modelValue:d.value,"onUpdate:modelValue":l[2]||(l[2]=s=>d.value=s),search:E},{filters:je(()=>[t("div",pt,[t("div",_t,[p(t("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":l[1]||(l[1]=s=>w.text=s),"keyup.enter":"applyAndDoSearch"},null,8,ht),[[Ze,w.text]])]),t("div",ft,[t("md-filled-button",{onClick:_(ue,["stop"])},a(e.$t("search")),9,mt)])])]),_:1},8,["modelValue"])]),r(ke,{limit:y,total:n(k),"all-checked-alert-visible":n(ne),"real-all-checked":n(L),"select-real-all":n(se),"clear-selection":n(z)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t("div",kt,[t("table",vt,[t("thead",null,[t("tr",null,[t("th",null,[t("md-checkbox",{"touch-target":"wrapper",onChange:l[3]||(l[3]=(...s)=>n(M)&&n(M)(...s)),checked:n(F),indeterminate:!n(F)&&n(N)},null,40,gt)]),yt,t("th",null,a(e.$t("name")),1),$t,t("th",null,a(e.$t("size")),1),t("th",null,a(e.$t("type")),1),t("th",null,a(e.$t("installed_at")),1),t("th",null,a(e.$t("updated_at")),1)])]),t("tbody",null,[(o(!0),i(q,null,xe(c.value,s=>(o(),i("tr",{key:s.id,class:Xe({selected:s.checked}),onClick:_(v=>n(le)(s),["stop"])},[t("td",null,[t("md-checkbox",{"touch-target":"wrapper",onChange:l[4]||(l[4]=(...v)=>n(R)&&n(R)(...v)),checked:s.checked},null,40,Ct)]),t("td",null,[t("img",{width:"50",height:"50",src:s.icon},null,8,wt)]),t("td",null,[t("strong",St,a(s.name)+" ("+a(s.version)+")",1),r(ve,{id:s.id,raw:s},null,8,["id","raw"])]),t("td",At,[t("div",Dt,[s.isUninstalling?(o(),i(q,{key:0},[p(t("md-circular-progress",It,null,512),[[f,e.$t("uninstalling")]]),A("  "),t("md-outlined-button",{class:"btn-sm",onClick:_(v=>ce(s),["stop"])},a(e.$t("cancel")),9,Vt)],64)):p((o(),i("button",{key:1,class:"icon-button",onClick:_(v=>pe(s),["stop"])},[Tt,r(ge)],8,Ut)),[[f,e.$t("uninstall")]]),p((o(),i("button",{class:"icon-button",onClick:_(v=>n(oe)(s.path,`${s.name.replace(" ","")}-${s.id}.apk`),["stop"])},[Pt,r(W)],8,qt)),[[f,e.$t("download")]])])]),t("td",Qt,a(n(et)(s.size)),1),t("td",Bt,a(e.$t("app_type."+s.type)),1),t("td",Ft,[p((o(),i("span",null,[A(a(n(X)(s.installedAt)),1)])),[[f,n(Z)(s.installedAt)]])]),t("td",Lt,[p((o(),i("span",null,[A(a(n(X)(s.updatedAt)),1)])),[[f,n(Z)(s.updatedAt)]])])],10,bt))),128))]),c.value.length?T("",!0):(o(),i("tfoot",zt,[t("tr",null,[t("td",Mt,[t("div",Rt,a(e.$t(n(tt)(n(de)))),1)])])]))])]),n(k)>y?(o(),Ee(ye,{key:0,modelValue:S.value,"onUpdate:modelValue":l[5]||(l[5]=s=>S.value=s),total:n(k),limit:y},null,8,["modelValue","total"])):T("",!0),t("input",{ref_key:"fileInput",ref:V,style:{display:"none"},type:"file",accept:".apk",multiple:"",onChange:l[6]||(l[6]=(...s)=>n(b)&&n(b)(...s))},null,544)],64)}}});export{jt as default}; diff --git a/app/src/main/resources/web/assets/AudiosRootView-e0180d1e.js b/app/src/main/resources/web/assets/AudiosRootView-2f0eaa28.js similarity index 70% rename from app/src/main/resources/web/assets/AudiosRootView-e0180d1e.js rename to app/src/main/resources/web/assets/AudiosRootView-2f0eaa28.js index 7db48308..03e11fb9 100644 --- a/app/src/main/resources/web/assets/AudiosRootView-e0180d1e.js +++ b/app/src/main/resources/web/assets/AudiosRootView-2f0eaa28.js @@ -1 +1 @@ -import{_ as g}from"./TagFilter.vuevuetypescriptsetuptruelang-873baaa8.js";import{_ as k}from"./BucketFilter.vuevuetypescriptsetuptruelang-659b6189.js";import{d as C,D as w,e as y,az as z,G as B,c as D,p as s,H as o,j as e,o as I,a,t as d,l as $,I as b,C as A}from"./index-b6c39163.js";import{g as u,M}from"./splitpanes.es-f516e17d.js";import"./EditValueModal-f5302cb7.js";import"./vee-validate.esm-03fad591.js";const N={class:"page-container"},S={class:"sidebar"},V={class:"nav-title"},O={class:"nav"},R=["onClick"],U={class:"main"},Q=C({__name:"AudiosRootView",setup(j){var r,_;const n=w(),m=y(),i=z(n.query),c=((r=i.find(t=>t.name==="tag"))==null?void 0:r.value)??"",l=((_=i.find(t=>t.name==="bucket_id"))==null?void 0:_.value)??"";function p(){A(m,"/audios")}return(t,q)=>{const f=k,h=g,v=B("router-view");return I(),D("div",N,[s(e(M),null,{default:o(()=>[s(e(u),{size:"20","min-size":"10"},{default:o(()=>[a("aside",S,[a("h2",V,d(t.$t("page_title.audios")),1),a("ul",O,[a("li",{onClick:$(p,["prevent"]),class:b({active:e(n).path==="/audios"&&!e(c)&&!e(l)})},d(t.$t("all")),11,R),s(f,{type:"AUDIO",selected:e(l)},null,8,["selected"])]),s(h,{type:"AUDIO",selected:e(c)},null,8,["selected"])])]),_:1}),s(e(u),null,{default:o(()=>[a("main",U,[s(v)])]),_:1})]),_:1})])}}});export{Q as default}; +import{_ as g}from"./TagFilter.vuevuetypescriptsetuptruelang-2bcd90c5.js";import{_ as k}from"./BucketFilter.vuevuetypescriptsetuptruelang-a57962d6.js";import{d as C,D as w,e as y,az as z,G as B,c as D,p as s,H as o,j as e,o as I,a,t as d,l as $,I as b,C as A}from"./index-1dff6785.js";import{g as u,M}from"./splitpanes.es-e9e41ca8.js";import"./EditValueModal-1892701b.js";import"./vee-validate.esm-b0b47415.js";const N={class:"page-container"},S={class:"sidebar"},V={class:"nav-title"},O={class:"nav"},R=["onClick"],U={class:"main"},Q=C({__name:"AudiosRootView",setup(j){var r,_;const n=w(),m=y(),i=z(n.query),c=((r=i.find(t=>t.name==="tag"))==null?void 0:r.value)??"",l=((_=i.find(t=>t.name==="bucket_id"))==null?void 0:_.value)??"";function p(){A(m,"/audios")}return(t,q)=>{const f=k,h=g,v=B("router-view");return I(),D("div",N,[s(e(M),null,{default:o(()=>[s(e(u),{size:"20","min-size":"10"},{default:o(()=>[a("aside",S,[a("h2",V,d(t.$t("page_title.audios")),1),a("ul",O,[a("li",{onClick:$(p,["prevent"]),class:b({active:e(n).path==="/audios"&&!e(c)&&!e(l)})},d(t.$t("all")),11,R),s(f,{type:"AUDIO",selected:e(l)},null,8,["selected"])]),s(h,{type:"AUDIO",selected:e(c)},null,8,["selected"])])]),_:1}),s(e(u),null,{default:o(()=>[a("main",U,[s(v)])]),_:1})]),_:1})])}}});export{Q as default}; diff --git a/app/src/main/resources/web/assets/AudiosView-6773d3eb.js b/app/src/main/resources/web/assets/AudiosView-0bd07bb3.js similarity index 96% rename from app/src/main/resources/web/assets/AudiosView-6773d3eb.js rename to app/src/main/resources/web/assets/AudiosView-0bd07bb3.js index 08f5266b..2b8fcf28 100644 --- a/app/src/main/resources/web/assets/AudiosView-6773d3eb.js +++ b/app/src/main/resources/web/assets/AudiosView-0bd07bb3.js @@ -1 +1 @@ -import{u as Ge,_ as Ke,a as Oe,b as je}from"./list-6c4ddffc.js";import{o as l,c as a,a as e,i as ce,aL as We,u as ue,P as b,x as _e,r as D,aM as xe,d as Je,e as Xe,s as le,f as Ye,K as et,L as tt,D as ot,M as st,aB as nt,af as lt,aA as at,N as it,w as dt,O as ct,Q as ut,R as _t,p as d,j as o,F as P,m,l as h,k as F,H,t as f,J as N,S as rt,T as pt,U as mt,aN as ht,C as ae,W as ie,at as ft,v as vt,I as gt,aF as yt,a9 as bt,z as kt,$ as $t,A as Tt,B as qt,al as Ct,aG as wt,as as It,aH as At,a0 as St,a1 as Bt,a2 as Dt,a3 as Vt,ad as Rt,am as Mt,a4 as Pt,a5 as Zt,a6 as Et,_ as Lt}from"./index-b6c39163.js";import{_ as Qt}from"./sort-rounded-4981fcb6.js";import{_ as zt}from"./upload-rounded-a4e04a4c.js";import{_ as Ft}from"./Breadcrumb-fef16e9c.js";import{u as Ht,a as Nt}from"./tags-3bd6efbc.js";import"./vee-validate.esm-03fad591.js";const Ut={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Gt=e("path",{fill:"currentColor",d:"M9.5 9.325v5.35q0 .6.525.875t1.025-.05l4.15-2.65q.475-.275.475-.85t-.475-.85L11.05 8.5q-.5-.325-1.025-.05t-.525.875ZM12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Z"},null,-1),Kt=[Gt];function Ot(c,v){return l(),a("svg",Ut,Kt)}const jt={name:"material-symbols-play-circle-outline-rounded",render:Ot},Wt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},xt=e("path",{fill:"currentColor",d:"M10 16q.425 0 .713-.288T11 15V8.975q0-.425-.288-.7T10 8q-.425 0-.713.288T9 9v6.025q0 .425.288.7T10 16Zm4 0q.425 0 .713-.288T15 15V8.975q0-.425-.288-.7T14 8q-.425 0-.713.288T13 9v6.025q0 .425.288.7T14 16Zm-2 6q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Z"},null,-1),Jt=[xt];function Xt(c,v){return l(),a("svg",Wt,Jt)}const Yt={name:"material-symbols-pause-circle-outline-rounded",render:Xt},eo={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},to=e("path",{fill:"currentColor",d:"M3 16v-2h7v2H3Zm0-4v-2h11v2H3Zm0-4V6h11v2H3Zm13 12v-4h-4v-2h4v-4h2v4h4v2h-4v4h-2Z"},null,-1),oo=[to];function so(c,v){return l(),a("svg",eo,oo)}const no={name:"material-symbols-playlist-add",render:so};function de(c,v,k=500){const i=c.cloneNode(!0),_=c.getBoundingClientRect(),C=v.getBoundingClientRect();i.style.position="absolute",i.style.top=_.top+"px",i.style.left=_.left+"px",i.style.opacity=1,document.body.appendChild(i);let $=0;function T(q){$||($=q);const u=q-$,w=Math.min(u/k,1);i.style.top=_.top+(C.top-_.top)*w+"px",i.style.left=_.left+(C.left-_.left)*w+"px",w<1?requestAnimationFrame(T):document.body.removeChild(i)}requestAnimationFrame(T)}const lo=(c,v)=>{const{mutate:k,loading:i,onDone:_}=ce({document:We,appApi:!0}),{t:C}=ue();return _(()=>{b.emit("refetch_app"),v()}),{loading:i,addItemsToPlaylist:($,T,q)=>{let u=q;if(!T){const Q=c.value.filter(I=>I.checked);if(Q.length===0){_e(C("select_first"),"error");return}u=`ids:${Q.map(I=>I.id).join(",")}`}const w=$.target,g=document.getElementById("quick-audio");de(w,g),k({query:u})},addToPlaylist:($,T)=>{const q=$.target,u=document.getElementById("quick-audio");de(q,u),k({query:`ids:${T.id}`})}}},ao=()=>{const c=D(""),{mutate:v,loading:k,onDone:i}=ce({document:xe,appApi:!0});return i(()=>{b.emit("play_audio")}),{loading:k,playPath:c,play:_=>{c.value=_.path,v({path:_.path})},pause:()=>{b.emit("pause_audio")}}},p=c=>(Tt("data-v-dd874a81"),c=c(),qt(),c),io={class:"v-toolbar"},co=p(()=>e("md-ripple",null,null,-1)),uo=p(()=>e("md-ripple",null,null,-1)),_o=p(()=>e("md-ripple",null,null,-1)),ro=p(()=>e("md-ripple",null,null,-1)),po=["onClick"],mo=p(()=>e("md-ripple",null,null,-1)),ho={class:"icon-button btn-sort"},fo=p(()=>e("md-ripple",null,null,-1)),vo={class:"menu-items"},go=["onClick","selected"],yo={slot:"headline"},bo={class:"filters"},ko=["label"],$o={class:"form-label"},To=["label","selected","onClick"],qo={class:"buttons"},Co=["onClick"],wo={class:"table-responsive"},Io={class:"table"},Ao=["checked","indeterminate"],So=p(()=>e("th",null,"ID",-1)),Bo=p(()=>e("th",null,null,-1)),Do={class:"artist"},Vo=["onClick"],Ro=["checked"],Mo={class:"title"},Po={class:"nowrap"},Zo={class:"action-btns"},Eo=["onClick"],Lo=p(()=>e("md-ripple",null,null,-1)),Qo=["onClick"],zo=p(()=>e("md-ripple",null,null,-1)),Fo=["onClick"],Ho=p(()=>e("md-ripple",null,null,-1)),No=["onClick"],Uo=p(()=>e("md-ripple",null,null,-1)),Go={key:0,indeterminate:"",class:"spinner-sm"},Ko=p(()=>e("md-ripple",null,null,-1)),Oo=["onClick"],jo=p(()=>e("md-ripple",null,null,-1)),Wo={class:"nowrap"},xo={class:"nowrap"},Jo={key:0},Xo={colspan:"8"},Yo={class:"no-data-placeholder"},Z=50,es=Je({__name:"AudiosView",setup(c){var Y,ee;const v=Xe(),{audioSortBy:k}=le(v),i=D([]),_=D(),{t:C}=ue(),{app:$,urlTokenKey:T,audioPlaying:q}=le(Ye()),u=et({text:"",tags:[]}),w=t=>{var n;return q.value&&((n=$.value)==null?void 0:n.audioCurrent)===t.path},g=tt.AUDIO,I=ot().query,E=D(parseInt(((Y=I.page)==null?void 0:Y.toString())??"1")),A=D(st(((ee=I.q)==null?void 0:ee.toString())??"")),S=D(""),{tags:L}=Ht(g,A,u,async t=>{S.value=pt(t),await mt(),Se()}),{addToTags:re}=Nt(g,i,L),{deleteItems:pe,deleteItem:me}=nt(),{allChecked:U,realAllChecked:V,selectRealAll:he,allCheckedAlertVisible:fe,clearSelection:R,toggleAllChecked:G,toggleRow:ve,toggleItemChecked:K,total:B,checked:O}=Ge(i),{downloadItems:ge}=lt(T,g,i,R,"audios.zip"),{downloadFile:ye}=Ct(T),{addItemsToPlaylist:be,addToPlaylist:ke}=lo(i,R),$e=wt(),Te=at(),{play:qe,playPath:Ce,loading:we,pause:Ie}=ao(),{loading:Ae,load:Se,refetch:z}=it({handle:(t,n)=>{n?_e(C(n),"error"):t&&(i.value=t.audios.map(M=>({...M,checked:!1})),B.value=t.audioCount)},document:ht,variables:()=>({offset:(E.value-1)*Z,limit:Z,query:S.value,sortBy:k.value}),appApi:!0});dt(E,t=>{ae(v,`/audios?page=${t}&q=${ie(A.value)}`)});function Be(){Te.push("/files"),It(At,{message:C("upload_audios")})}function De(t,n){k.value=n,t.close()}function Ve(t){u.tags.includes(t)?St(u.tags,n=>n.id===t.id):u.tags.push(t)}function Re(){A.value=Bt(u),j(),_.value.dismiss()}function j(){ae(v,`/audios?q=${ie(A.value)}`)}const W=t=>{t.type===g&&(R(),z())},x=t=>{t.type===g&&z()},J=t=>{t.type===g&&(R(),z())},X=()=>{B.value--};ct(()=>{b.on("item_tags_updated",x),b.on("items_tags_updated",W),b.on("media_item_deleted",X),b.on("media_items_deleted",J)}),ut(()=>{b.off("item_tags_updated",x),b.off("items_tags_updated",W),b.off("media_item_deleted",X),b.off("media_items_deleted",J)});function Me(t){Dt(Vt,{type:g,tags:L.value,item:{key:t.id,title:t.title,size:t.size},selected:L.value.filter(n=>t.tags.some(M=>M.id===n.id))})}return(t,n)=>{const M=Ft,te=Rt,oe=Mt,se=no,ne=Pt,Pe=zt,Ze=Qt,Ee=ft,Le=Ke,Qe=Oe,ze=Zt,Fe=Yt,He=jt,Ne=Et,Ue=je,y=_t("tooltip");return l(),a(P,null,[e("div",io,[d(M,{current:()=>`${t.$t("page_title.audios")} (${o(B)})`},null,8,["current"]),o(O)?(l(),a(P,{key:0},[m((l(),a("button",{class:"icon-button",onClick:n[0]||(n[0]=h(s=>o(pe)(o(g),i.value,o(V),S.value),["stop"]))},[co,d(te)])),[[y,t.$t("delete")]]),m((l(),a("button",{class:"icon-button",onClick:n[1]||(n[1]=h(s=>o(ge)(o(V),S.value),["stop"]))},[uo,d(oe)])),[[y,t.$t("download")]]),m((l(),a("button",{class:"icon-button",onClick:n[2]||(n[2]=h(s=>o(be)(s,o(V),S.value),["stop"]))},[_o,d(se)])),[[y,t.$t("add_to_playlist")]]),m((l(),a("button",{class:"icon-button",onClick:n[3]||(n[3]=h(s=>o(re)(o(V),S.value),["stop"]))},[ro,d(ne)])),[[y,t.$t("add_to_tags")]])],64)):F("",!0),m((l(),a("button",{class:"icon-button",onClick:h(Be,["stop"])},[mo,d(Pe)],8,po)),[[y,t.$t("upload")]]),d(Ee,null,{content:H(s=>[e("div",vo,[(l(!0),a(P,null,N(o($e),r=>(l(),a("md-menu-item",{onClick:ts=>De(s,r.value),selected:r.value===o(k)},[e("div",yo,f(t.$t(r.label)),1)],8,go))),256))])]),default:H(()=>[m((l(),a("button",ho,[fo,d(Ze)])),[[y,t.$t("sort")]])]),_:1}),d(Le,{ref_key:"searchInputRef",ref:_,modelValue:A.value,"onUpdate:modelValue":n[5]||(n[5]=s=>A.value=s),search:j},{filters:H(()=>[e("div",bo,[m(e("md-outlined-text-field",{label:t.$t("keywords"),"onUpdate:modelValue":n[4]||(n[4]=s=>u.text=s),"keyup.enter":"applyAndDoSearch"},null,8,ko),[[vt,u.text]]),e("label",$o,f(t.$t("tags")),1),e("md-chip-set",null,[(l(!0),a(P,null,N(o(L),s=>(l(),a("md-filter-chip",{key:s.id,label:s.name,selected:u.tags.includes(s),onClick:r=>Ve(s)},null,8,To))),128))]),e("div",qo,[e("md-filled-button",{onClick:h(Re,["stop"])},f(t.$t("search")),9,Co)])])]),_:1},8,["modelValue"])]),d(Qe,{limit:Z,total:o(B),"all-checked-alert-visible":o(fe),"real-all-checked":o(V),"select-real-all":o(he),"clear-selection":o(R)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),e("div",wo,[e("table",Io,[e("thead",null,[e("tr",null,[e("th",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:n[6]||(n[6]=(...s)=>o(G)&&o(G)(...s)),checked:o(U),indeterminate:!o(U)&&o(O)},null,40,Ao)]),So,e("th",null,f(t.$t("name")),1),Bo,e("th",Do,f(t.$t("artist")),1),e("th",null,f(t.$t("tags")),1),e("th",null,f(t.$t("duration")),1),e("th",null,f(t.$t("file_size")),1)])]),e("tbody",null,[(l(!0),a(P,null,N(i.value,s=>(l(),a("tr",{key:s.id,class:gt({selected:s.checked}),onClick:h(r=>o(ve)(s),["stop"])},[e("td",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:n[7]||(n[7]=(...r)=>o(K)&&o(K)(...r)),checked:s.checked},null,40,Ro)]),e("td",null,[d(ze,{id:s.id,raw:s},null,8,["id","raw"])]),e("td",Mo,f(s.title),1),e("td",Po,[e("div",Zo,[m((l(),a("button",{class:"icon-button",onClick:h(r=>o(me)(o(g),s),["stop"])},[Lo,d(te)],8,Eo)),[[y,t.$t("delete")]]),m((l(),a("button",{class:"icon-button",onClick:h(r=>o(ye)(s.path,o(yt)(s.path).replace(" ","-")),["stop"])},[zo,d(oe)],8,Qo)),[[y,t.$t("download")]]),m((l(),a("button",{class:"icon-button",onClick:h(r=>o(ke)(r,s),["stop"])},[Ho,d(se)],8,Fo)),[[y,t.$t("add_to_playlist")]]),m((l(),a("button",{class:"icon-button",onClick:h(r=>Me(s),["stop"])},[Uo,d(ne)],8,No)),[[y,t.$t("add_to_tags")]]),o(we)&&s.path===o(Ce)?(l(),a("md-circular-progress",Go)):w(s)?m((l(),a("button",{key:1,class:"icon-button",onClick:n[8]||(n[8]=h(r=>o(Ie)(),["stop"]))},[Ko,d(Fe)])),[[y,t.$t("pause")]]):m((l(),a("button",{key:2,class:"icon-button",onClick:h(r=>o(qe)(s),["stop"])},[jo,d(He)],8,Oo)),[[y,t.$t("play")]])])]),e("td",null,f(s.artist),1),e("td",null,[d(Ne,{tags:s.tags,type:o(g)},null,8,["tags","type"])]),e("td",Wo,f(o(bt)(s.duration)),1),e("td",xo,f(o(kt)(s.size)),1)],10,Vo))),128))]),i.value.length?F("",!0):(l(),a("tfoot",Jo,[e("tr",null,[e("td",Xo,[e("div",Yo,f(t.$t(o($t)(o(Ae),o($).permissions,"WRITE_EXTERNAL_STORAGE"))),1)])])]))])]),o(B)>Z?(l(),rt(Ue,{key:0,modelValue:E.value,"onUpdate:modelValue":n[9]||(n[9]=s=>E.value=s),total:o(B),limit:Z},null,8,["modelValue","total"])):F("",!0)],64)}}});const cs=Lt(es,[["__scopeId","data-v-dd874a81"]]);export{cs as default}; +import{u as Ge,_ as Ke,a as Oe,b as je}from"./list-0d76acfa.js";import{o as l,c as a,a as e,i as ce,aL as We,u as ue,P as b,x as _e,r as D,aM as xe,d as Je,e as Xe,s as le,f as Ye,K as et,L as tt,D as ot,M as st,aB as nt,af as lt,aA as at,N as it,w as dt,O as ct,Q as ut,R as _t,p as d,j as o,F as P,m,l as h,k as F,H,t as f,J as N,S as rt,T as pt,U as mt,aN as ht,C as ae,W as ie,at as ft,v as vt,I as gt,aF as yt,a9 as bt,z as kt,$ as $t,A as Tt,B as qt,al as Ct,aG as wt,as as It,aH as At,a0 as St,a1 as Bt,a2 as Dt,a3 as Vt,ad as Rt,am as Mt,a4 as Pt,a5 as Zt,a6 as Et,_ as Lt}from"./index-1dff6785.js";import{_ as Qt}from"./sort-rounded-b8d8e47a.js";import{_ as zt}from"./upload-rounded-dd35ce68.js";import{_ as Ft}from"./Breadcrumb-cba2b95b.js";import{u as Ht,a as Nt}from"./tags-ba1ad11a.js";import"./vee-validate.esm-b0b47415.js";const Ut={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Gt=e("path",{fill:"currentColor",d:"M9.5 9.325v5.35q0 .6.525.875t1.025-.05l4.15-2.65q.475-.275.475-.85t-.475-.85L11.05 8.5q-.5-.325-1.025-.05t-.525.875ZM12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Z"},null,-1),Kt=[Gt];function Ot(c,v){return l(),a("svg",Ut,Kt)}const jt={name:"material-symbols-play-circle-outline-rounded",render:Ot},Wt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},xt=e("path",{fill:"currentColor",d:"M10 16q.425 0 .713-.288T11 15V8.975q0-.425-.288-.7T10 8q-.425 0-.713.288T9 9v6.025q0 .425.288.7T10 16Zm4 0q.425 0 .713-.288T15 15V8.975q0-.425-.288-.7T14 8q-.425 0-.713.288T13 9v6.025q0 .425.288.7T14 16Zm-2 6q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Z"},null,-1),Jt=[xt];function Xt(c,v){return l(),a("svg",Wt,Jt)}const Yt={name:"material-symbols-pause-circle-outline-rounded",render:Xt},eo={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},to=e("path",{fill:"currentColor",d:"M3 16v-2h7v2H3Zm0-4v-2h11v2H3Zm0-4V6h11v2H3Zm13 12v-4h-4v-2h4v-4h2v4h4v2h-4v4h-2Z"},null,-1),oo=[to];function so(c,v){return l(),a("svg",eo,oo)}const no={name:"material-symbols-playlist-add",render:so};function de(c,v,k=500){const i=c.cloneNode(!0),_=c.getBoundingClientRect(),C=v.getBoundingClientRect();i.style.position="absolute",i.style.top=_.top+"px",i.style.left=_.left+"px",i.style.opacity=1,document.body.appendChild(i);let $=0;function T(q){$||($=q);const u=q-$,w=Math.min(u/k,1);i.style.top=_.top+(C.top-_.top)*w+"px",i.style.left=_.left+(C.left-_.left)*w+"px",w<1?requestAnimationFrame(T):document.body.removeChild(i)}requestAnimationFrame(T)}const lo=(c,v)=>{const{mutate:k,loading:i,onDone:_}=ce({document:We,appApi:!0}),{t:C}=ue();return _(()=>{b.emit("refetch_app"),v()}),{loading:i,addItemsToPlaylist:($,T,q)=>{let u=q;if(!T){const Q=c.value.filter(I=>I.checked);if(Q.length===0){_e(C("select_first"),"error");return}u=`ids:${Q.map(I=>I.id).join(",")}`}const w=$.target,g=document.getElementById("quick-audio");de(w,g),k({query:u})},addToPlaylist:($,T)=>{const q=$.target,u=document.getElementById("quick-audio");de(q,u),k({query:`ids:${T.id}`})}}},ao=()=>{const c=D(""),{mutate:v,loading:k,onDone:i}=ce({document:xe,appApi:!0});return i(()=>{b.emit("play_audio")}),{loading:k,playPath:c,play:_=>{c.value=_.path,v({path:_.path})},pause:()=>{b.emit("pause_audio")}}},p=c=>(Tt("data-v-dd874a81"),c=c(),qt(),c),io={class:"v-toolbar"},co=p(()=>e("md-ripple",null,null,-1)),uo=p(()=>e("md-ripple",null,null,-1)),_o=p(()=>e("md-ripple",null,null,-1)),ro=p(()=>e("md-ripple",null,null,-1)),po=["onClick"],mo=p(()=>e("md-ripple",null,null,-1)),ho={class:"icon-button btn-sort"},fo=p(()=>e("md-ripple",null,null,-1)),vo={class:"menu-items"},go=["onClick","selected"],yo={slot:"headline"},bo={class:"filters"},ko=["label"],$o={class:"form-label"},To=["label","selected","onClick"],qo={class:"buttons"},Co=["onClick"],wo={class:"table-responsive"},Io={class:"table"},Ao=["checked","indeterminate"],So=p(()=>e("th",null,"ID",-1)),Bo=p(()=>e("th",null,null,-1)),Do={class:"artist"},Vo=["onClick"],Ro=["checked"],Mo={class:"title"},Po={class:"nowrap"},Zo={class:"action-btns"},Eo=["onClick"],Lo=p(()=>e("md-ripple",null,null,-1)),Qo=["onClick"],zo=p(()=>e("md-ripple",null,null,-1)),Fo=["onClick"],Ho=p(()=>e("md-ripple",null,null,-1)),No=["onClick"],Uo=p(()=>e("md-ripple",null,null,-1)),Go={key:0,indeterminate:"",class:"spinner-sm"},Ko=p(()=>e("md-ripple",null,null,-1)),Oo=["onClick"],jo=p(()=>e("md-ripple",null,null,-1)),Wo={class:"nowrap"},xo={class:"nowrap"},Jo={key:0},Xo={colspan:"8"},Yo={class:"no-data-placeholder"},Z=50,es=Je({__name:"AudiosView",setup(c){var Y,ee;const v=Xe(),{audioSortBy:k}=le(v),i=D([]),_=D(),{t:C}=ue(),{app:$,urlTokenKey:T,audioPlaying:q}=le(Ye()),u=et({text:"",tags:[]}),w=t=>{var n;return q.value&&((n=$.value)==null?void 0:n.audioCurrent)===t.path},g=tt.AUDIO,I=ot().query,E=D(parseInt(((Y=I.page)==null?void 0:Y.toString())??"1")),A=D(st(((ee=I.q)==null?void 0:ee.toString())??"")),S=D(""),{tags:L}=Ht(g,A,u,async t=>{S.value=pt(t),await mt(),Se()}),{addToTags:re}=Nt(g,i,L),{deleteItems:pe,deleteItem:me}=nt(),{allChecked:U,realAllChecked:V,selectRealAll:he,allCheckedAlertVisible:fe,clearSelection:R,toggleAllChecked:G,toggleRow:ve,toggleItemChecked:K,total:B,checked:O}=Ge(i),{downloadItems:ge}=lt(T,g,i,R,"audios.zip"),{downloadFile:ye}=Ct(T),{addItemsToPlaylist:be,addToPlaylist:ke}=lo(i,R),$e=wt(),Te=at(),{play:qe,playPath:Ce,loading:we,pause:Ie}=ao(),{loading:Ae,load:Se,refetch:z}=it({handle:(t,n)=>{n?_e(C(n),"error"):t&&(i.value=t.audios.map(M=>({...M,checked:!1})),B.value=t.audioCount)},document:ht,variables:()=>({offset:(E.value-1)*Z,limit:Z,query:S.value,sortBy:k.value}),appApi:!0});dt(E,t=>{ae(v,`/audios?page=${t}&q=${ie(A.value)}`)});function Be(){Te.push("/files"),It(At,{message:C("upload_audios")})}function De(t,n){k.value=n,t.close()}function Ve(t){u.tags.includes(t)?St(u.tags,n=>n.id===t.id):u.tags.push(t)}function Re(){A.value=Bt(u),j(),_.value.dismiss()}function j(){ae(v,`/audios?q=${ie(A.value)}`)}const W=t=>{t.type===g&&(R(),z())},x=t=>{t.type===g&&z()},J=t=>{t.type===g&&(R(),z())},X=()=>{B.value--};ct(()=>{b.on("item_tags_updated",x),b.on("items_tags_updated",W),b.on("media_item_deleted",X),b.on("media_items_deleted",J)}),ut(()=>{b.off("item_tags_updated",x),b.off("items_tags_updated",W),b.off("media_item_deleted",X),b.off("media_items_deleted",J)});function Me(t){Dt(Vt,{type:g,tags:L.value,item:{key:t.id,title:t.title,size:t.size},selected:L.value.filter(n=>t.tags.some(M=>M.id===n.id))})}return(t,n)=>{const M=Ft,te=Rt,oe=Mt,se=no,ne=Pt,Pe=zt,Ze=Qt,Ee=ft,Le=Ke,Qe=Oe,ze=Zt,Fe=Yt,He=jt,Ne=Et,Ue=je,y=_t("tooltip");return l(),a(P,null,[e("div",io,[d(M,{current:()=>`${t.$t("page_title.audios")} (${o(B)})`},null,8,["current"]),o(O)?(l(),a(P,{key:0},[m((l(),a("button",{class:"icon-button",onClick:n[0]||(n[0]=h(s=>o(pe)(o(g),i.value,o(V),S.value),["stop"]))},[co,d(te)])),[[y,t.$t("delete")]]),m((l(),a("button",{class:"icon-button",onClick:n[1]||(n[1]=h(s=>o(ge)(o(V),S.value),["stop"]))},[uo,d(oe)])),[[y,t.$t("download")]]),m((l(),a("button",{class:"icon-button",onClick:n[2]||(n[2]=h(s=>o(be)(s,o(V),S.value),["stop"]))},[_o,d(se)])),[[y,t.$t("add_to_playlist")]]),m((l(),a("button",{class:"icon-button",onClick:n[3]||(n[3]=h(s=>o(re)(o(V),S.value),["stop"]))},[ro,d(ne)])),[[y,t.$t("add_to_tags")]])],64)):F("",!0),m((l(),a("button",{class:"icon-button",onClick:h(Be,["stop"])},[mo,d(Pe)],8,po)),[[y,t.$t("upload")]]),d(Ee,null,{content:H(s=>[e("div",vo,[(l(!0),a(P,null,N(o($e),r=>(l(),a("md-menu-item",{onClick:ts=>De(s,r.value),selected:r.value===o(k)},[e("div",yo,f(t.$t(r.label)),1)],8,go))),256))])]),default:H(()=>[m((l(),a("button",ho,[fo,d(Ze)])),[[y,t.$t("sort")]])]),_:1}),d(Le,{ref_key:"searchInputRef",ref:_,modelValue:A.value,"onUpdate:modelValue":n[5]||(n[5]=s=>A.value=s),search:j},{filters:H(()=>[e("div",bo,[m(e("md-outlined-text-field",{label:t.$t("keywords"),"onUpdate:modelValue":n[4]||(n[4]=s=>u.text=s),"keyup.enter":"applyAndDoSearch"},null,8,ko),[[vt,u.text]]),e("label",$o,f(t.$t("tags")),1),e("md-chip-set",null,[(l(!0),a(P,null,N(o(L),s=>(l(),a("md-filter-chip",{key:s.id,label:s.name,selected:u.tags.includes(s),onClick:r=>Ve(s)},null,8,To))),128))]),e("div",qo,[e("md-filled-button",{onClick:h(Re,["stop"])},f(t.$t("search")),9,Co)])])]),_:1},8,["modelValue"])]),d(Qe,{limit:Z,total:o(B),"all-checked-alert-visible":o(fe),"real-all-checked":o(V),"select-real-all":o(he),"clear-selection":o(R)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),e("div",wo,[e("table",Io,[e("thead",null,[e("tr",null,[e("th",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:n[6]||(n[6]=(...s)=>o(G)&&o(G)(...s)),checked:o(U),indeterminate:!o(U)&&o(O)},null,40,Ao)]),So,e("th",null,f(t.$t("name")),1),Bo,e("th",Do,f(t.$t("artist")),1),e("th",null,f(t.$t("tags")),1),e("th",null,f(t.$t("duration")),1),e("th",null,f(t.$t("file_size")),1)])]),e("tbody",null,[(l(!0),a(P,null,N(i.value,s=>(l(),a("tr",{key:s.id,class:gt({selected:s.checked}),onClick:h(r=>o(ve)(s),["stop"])},[e("td",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:n[7]||(n[7]=(...r)=>o(K)&&o(K)(...r)),checked:s.checked},null,40,Ro)]),e("td",null,[d(ze,{id:s.id,raw:s},null,8,["id","raw"])]),e("td",Mo,f(s.title),1),e("td",Po,[e("div",Zo,[m((l(),a("button",{class:"icon-button",onClick:h(r=>o(me)(o(g),s),["stop"])},[Lo,d(te)],8,Eo)),[[y,t.$t("delete")]]),m((l(),a("button",{class:"icon-button",onClick:h(r=>o(ye)(s.path,o(yt)(s.path).replace(" ","-")),["stop"])},[zo,d(oe)],8,Qo)),[[y,t.$t("download")]]),m((l(),a("button",{class:"icon-button",onClick:h(r=>o(ke)(r,s),["stop"])},[Ho,d(se)],8,Fo)),[[y,t.$t("add_to_playlist")]]),m((l(),a("button",{class:"icon-button",onClick:h(r=>Me(s),["stop"])},[Uo,d(ne)],8,No)),[[y,t.$t("add_to_tags")]]),o(we)&&s.path===o(Ce)?(l(),a("md-circular-progress",Go)):w(s)?m((l(),a("button",{key:1,class:"icon-button",onClick:n[8]||(n[8]=h(r=>o(Ie)(),["stop"]))},[Ko,d(Fe)])),[[y,t.$t("pause")]]):m((l(),a("button",{key:2,class:"icon-button",onClick:h(r=>o(qe)(s),["stop"])},[jo,d(He)],8,Oo)),[[y,t.$t("play")]])])]),e("td",null,f(s.artist),1),e("td",null,[d(Ne,{tags:s.tags,type:o(g)},null,8,["tags","type"])]),e("td",Wo,f(o(bt)(s.duration)),1),e("td",xo,f(o(kt)(s.size)),1)],10,Vo))),128))]),i.value.length?F("",!0):(l(),a("tfoot",Jo,[e("tr",null,[e("td",Xo,[e("div",Yo,f(t.$t(o($t)(o(Ae),o($).permissions,"WRITE_EXTERNAL_STORAGE"))),1)])])]))])]),o(B)>Z?(l(),rt(Ue,{key:0,modelValue:E.value,"onUpdate:modelValue":n[9]||(n[9]=s=>E.value=s),total:o(B),limit:Z},null,8,["modelValue","total"])):F("",!0)],64)}}});const cs=Lt(es,[["__scopeId","data-v-dd874a81"]]);export{cs as default}; diff --git a/app/src/main/resources/web/assets/Breadcrumb-fef16e9c.js b/app/src/main/resources/web/assets/Breadcrumb-cba2b95b.js similarity index 81% rename from app/src/main/resources/web/assets/Breadcrumb-fef16e9c.js rename to app/src/main/resources/web/assets/Breadcrumb-cba2b95b.js index 88d775c0..704c2d6d 100644 --- a/app/src/main/resources/web/assets/Breadcrumb-fef16e9c.js +++ b/app/src/main/resources/web/assets/Breadcrumb-cba2b95b.js @@ -1 +1 @@ -import{d as _,e as l,o as s,c as r,F as d,J as p,a,t as o,j as f,bS as h,l as m,h as b,bH as g,C as y,_ as v}from"./index-b6c39163.js";const k={class:"breadcrumb"},B=["onClick"],S={class:"active"},C=_({__name:"Breadcrumb",props:{current:{type:[String,Function]},paths:{type:Array,default:()=>[]}},setup(e){const c=e,u=l();function i(t){y(u,t)}return(t,$)=>(s(),r("ol",k,[(s(!0),r(d,null,p(c.paths,n=>(s(),r("li",{key:n},[a("a",{href:"#",onClick:m(x=>i(n),["prevent"])},o(t.$t(`page_title.${f(h)(n)}`)),9,B)]))),128)),a("li",S,[b(o(typeof e.current=="function"?e.current():e.current),1),g(t.$slots,"current",{},void 0,!0)])]))}});const N=v(C,[["__scopeId","data-v-d292b348"]]);export{N as _}; +import{d as _,e as l,o as s,c as r,F as d,J as p,a,t as o,j as f,bS as h,l as m,h as b,bH as g,C as y,_ as v}from"./index-1dff6785.js";const k={class:"breadcrumb"},B=["onClick"],S={class:"active"},C=_({__name:"Breadcrumb",props:{current:{type:[String,Function]},paths:{type:Array,default:()=>[]}},setup(e){const c=e,u=l();function i(t){y(u,t)}return(t,$)=>(s(),r("ol",k,[(s(!0),r(d,null,p(c.paths,n=>(s(),r("li",{key:n},[a("a",{href:"#",onClick:m(x=>i(n),["prevent"])},o(t.$t(`page_title.${f(h)(n)}`)),9,B)]))),128)),a("li",S,[b(o(typeof e.current=="function"?e.current():e.current),1),g(t.$slots,"current",{},void 0,!0)])]))}});const N=v(C,[["__scopeId","data-v-d292b348"]]);export{N as _}; diff --git a/app/src/main/resources/web/assets/BucketFilter.vuevuetypescriptsetuptruelang-659b6189.js b/app/src/main/resources/web/assets/BucketFilter.vuevuetypescriptsetuptruelang-a57962d6.js similarity index 93% rename from app/src/main/resources/web/assets/BucketFilter.vuevuetypescriptsetuptruelang-659b6189.js rename to app/src/main/resources/web/assets/BucketFilter.vuevuetypescriptsetuptruelang-a57962d6.js index 1d137d52..cd790e89 100644 --- a/app/src/main/resources/web/assets/BucketFilter.vuevuetypescriptsetuptruelang-659b6189.js +++ b/app/src/main/resources/web/assets/BucketFilter.vuevuetypescriptsetuptruelang-a57962d6.js @@ -1 +1 @@ -import{d as _,u as k,e as v,r as I,g as B,x as g,aK as h,O as C,P as n,Q as D,o as l,c as u,J as S,l as b,I as q,t as m,F as M,T as Q,C as x,W as A}from"./index-b6c39163.js";const E=["onClick"],$=_({__name:"BucketFilter",props:{type:{type:String,required:!0},selected:{type:String,required:!0}},setup(i){const a=i,{t:p}=k(),f=v(),o=I([]),{refetch:d}=B({handle:(e,s)=>{s?g(p(s),"error"):e&&(o.value=e.mediaBuckets)},document:h,variables:{type:a.type},appApi:!0});function y(e){const s=Q([{name:"bucket_id",op:"",value:e.id}]);x(f,`/${{AUDIO:"audios",IMAGE:"images",VIDEO:"videos"}[a.type]}?q=${A(s)}`)}const r=e=>{e.type===a.type&&d()},c=e=>{e.item.bucketId&&e.type===a.type&&d()};return C(()=>{n.on("media_items_deleted",r),n.on("media_item_deleted",c)}),D(()=>{n.off("media_items_deleted",r),n.off("media_item_deleted",c)}),(e,s)=>(l(!0),u(M,null,S(o.value,t=>(l(),u("li",{key:t.id,onClick:b(F=>y(t),["prevent"]),class:q({active:i.selected&&t.id===i.selected})},m(t.name)+" ("+m(t.itemCount)+")",11,E))),128))}});export{$ as _}; +import{d as _,u as k,e as v,r as I,g as B,x as g,aK as h,O as C,P as n,Q as D,o as l,c as u,J as S,l as b,I as q,t as m,F as M,T as Q,C as x,W as A}from"./index-1dff6785.js";const E=["onClick"],$=_({__name:"BucketFilter",props:{type:{type:String,required:!0},selected:{type:String,required:!0}},setup(i){const a=i,{t:p}=k(),f=v(),o=I([]),{refetch:d}=B({handle:(e,s)=>{s?g(p(s),"error"):e&&(o.value=e.mediaBuckets)},document:h,variables:{type:a.type},appApi:!0});function y(e){const s=Q([{name:"bucket_id",op:"",value:e.id}]);x(f,`/${{AUDIO:"audios",IMAGE:"images",VIDEO:"videos"}[a.type]}?q=${A(s)}`)}const r=e=>{e.type===a.type&&d()},c=e=>{e.item.bucketId&&e.type===a.type&&d()};return C(()=>{n.on("media_items_deleted",r),n.on("media_item_deleted",c)}),D(()=>{n.off("media_items_deleted",r),n.off("media_item_deleted",c)}),(e,s)=>(l(!0),u(M,null,S(o.value,t=>(l(),u("li",{key:t.id,onClick:b(F=>y(t),["prevent"]),class:q({active:i.selected&&t.id===i.selected})},m(t.name)+" ("+m(t.itemCount)+")",11,E))),128))}});export{$ as _}; diff --git a/app/src/main/resources/web/assets/CallsRootView-b57e0e78.js b/app/src/main/resources/web/assets/CallsRootView-43ec86ab.js similarity index 74% rename from app/src/main/resources/web/assets/CallsRootView-b57e0e78.js rename to app/src/main/resources/web/assets/CallsRootView-43ec86ab.js index faab5b94..b769b62f 100644 --- a/app/src/main/resources/web/assets/CallsRootView-b57e0e78.js +++ b/app/src/main/resources/web/assets/CallsRootView-43ec86ab.js @@ -1 +1 @@ -import{_ as $}from"./TagFilter.vuevuetypescriptsetuptruelang-873baaa8.js";import{d as w,D as B,e as N,E as z,G as L,c as p,p as a,H as l,j as e,o as m,a as s,t as i,l as d,I as u,F as M,J as S,C as f}from"./index-b6c39163.js";import{g as h,M as T}from"./splitpanes.es-f516e17d.js";import"./EditValueModal-f5302cb7.js";import"./vee-validate.esm-03fad591.js";const V={class:"page-container"},D={class:"sidebar"},E={class:"nav-title"},F={class:"nav"},R=["onClick"],b=["onClick"],j={class:"main"},K=w({__name:"CallsRootView",setup(q){const n=B(),c=N(),r=n.params.type,_=r?"":z(n.query);function v(t){f(c,`/calls/${t}`)}const g=["incoming","outgoing","missed"];function C(){f(c,"/calls")}return(t,A)=>{const y=$,k=L("router-view");return m(),p("div",V,[a(e(T),null,{default:l(()=>[a(e(h),{size:"20","min-size":"10"},{default:l(()=>[s("div",D,[s("h2",E,i(t.$t("page_title.calls")),1),s("ul",F,[s("li",{onClick:d(C,["prevent"]),class:u({active:e(n).path==="/calls"&&!e(_)})},i(t.$t("all")),11,R),(m(),p(M,null,S(g,o=>s("li",{key:o,onClick:d(G=>v(o),["prevent"]),class:u({active:o===e(r)})},i(t.$t(`call_type.${o}`)),11,b)),64))]),a(y,{type:"CALL",selected:e(_)},null,8,["selected"])])]),_:1}),a(e(h),null,{default:l(()=>[s("div",j,[a(k)])]),_:1})]),_:1})])}}});export{K as default}; +import{_ as $}from"./TagFilter.vuevuetypescriptsetuptruelang-2bcd90c5.js";import{d as w,D as B,e as N,E as z,G as L,c as p,p as a,H as l,j as e,o as m,a as s,t as i,l as d,I as u,F as M,J as S,C as f}from"./index-1dff6785.js";import{g as h,M as T}from"./splitpanes.es-e9e41ca8.js";import"./EditValueModal-1892701b.js";import"./vee-validate.esm-b0b47415.js";const V={class:"page-container"},D={class:"sidebar"},E={class:"nav-title"},F={class:"nav"},R=["onClick"],b=["onClick"],j={class:"main"},K=w({__name:"CallsRootView",setup(q){const n=B(),c=N(),r=n.params.type,_=r?"":z(n.query);function v(t){f(c,`/calls/${t}`)}const g=["incoming","outgoing","missed"];function C(){f(c,"/calls")}return(t,A)=>{const y=$,k=L("router-view");return m(),p("div",V,[a(e(T),null,{default:l(()=>[a(e(h),{size:"20","min-size":"10"},{default:l(()=>[s("div",D,[s("h2",E,i(t.$t("page_title.calls")),1),s("ul",F,[s("li",{onClick:d(C,["prevent"]),class:u({active:e(n).path==="/calls"&&!e(_)})},i(t.$t("all")),11,R),(m(),p(M,null,S(g,o=>s("li",{key:o,onClick:d(G=>v(o),["prevent"]),class:u({active:o===e(r)})},i(t.$t(`call_type.${o}`)),11,b)),64))]),a(y,{type:"CALL",selected:e(_)},null,8,["selected"])])]),_:1}),a(e(h),null,{default:l(()=>[s("div",j,[a(k)])]),_:1})]),_:1})])}}});export{K as default}; diff --git a/app/src/main/resources/web/assets/CallsView-668479b4.js b/app/src/main/resources/web/assets/CallsView-f34a9b1c.js similarity index 94% rename from app/src/main/resources/web/assets/CallsView-668479b4.js rename to app/src/main/resources/web/assets/CallsView-f34a9b1c.js index f94b14f4..f1750ea1 100644 --- a/app/src/main/resources/web/assets/CallsView-668479b4.js +++ b/app/src/main/resources/web/assets/CallsView-f34a9b1c.js @@ -1,4 +1,4 @@ -import{c as be,u as Ce,_ as Te,a as we,b as qe}from"./list-6c4ddffc.js";import{d as Se,e as Ae,s as De,f as Ve,r as k,u as Ie,K as Le,L as Re,D as Me,M as Qe,N as Ue,w as Be,O as Ne,P as y,Q as Ge,i as ze,R as Ee,c as i,a as t,p as d,j as l,F as S,m as p,l as _,k as R,H as Fe,t as n,J,S as He,T as Y,U as je,a7 as Ke,x as Oe,a8 as Pe,C as A,W as D,q as We,o,v as xe,I as Je,a9 as Ye,Y as Ze,h as Xe,Z as et,$ as tt,a2 as Z,a3 as st,a0 as lt,aa as at,ab as nt,ac as ot,ad as it,a4 as ct,a5 as dt,a6 as ut}from"./index-b6c39163.js";import{_ as rt}from"./call-outline-rounded-48005e94.js";import{_ as pt}from"./Breadcrumb-fef16e9c.js";import{u as _t,a as mt}from"./tags-3bd6efbc.js";import"./vee-validate.esm-03fad591.js";const ht={class:"v-toolbar"},ft=t("md-ripple",null,null,-1),gt=t("md-ripple",null,null,-1),vt={class:"filters"},kt=["label"],yt={class:"form-label"},$t=["label","selected","onClick"],bt={class:"buttons"},Ct=["onClick"],Tt={class:"table-responsive"},wt={class:"table"},qt=["checked","indeterminate"],St=t("th",null,"ID",-1),At=t("th",null,null,-1),Dt=["onClick"],Vt=["checked"],It={class:"v-center"},Lt={class:"nowrap"},Rt={class:"action-btns"},Mt=["onClick"],Qt=t("md-ripple",null,null,-1),Ut={key:0,indeterminate:"",class:"spinner-sm"},Bt=["onClick"],Nt=t("md-ripple",null,null,-1),Gt=["onClick"],zt=t("md-ripple",null,null,-1),Et={class:"nowrap"},Ft={class:"nowrap"},Ht={class:"nowrap"},jt={key:0},Kt={colspan:"10"},Ot={class:"no-data-placeholder"},b=50,es=Se({__name:"CallsView",setup(Pt){var O,P;const C=Ae(),{app:X}=De(Ve()),m=k([]),M=k(),{t:Q}=Ie(),c=Le({text:"",tags:[]}),u=Re.CALL,U=Me(),B=U.query,T=k(parseInt(((O=B.page)==null?void 0:O.toString())??"1")),r=k(Qe(((P=B.q)==null?void 0:P.toString())??"")),w=k(""),{tags:q}=_t(u,r,c,async e=>{f&&e.push({name:"type",op:"",value:ie[f].toString()}),w.value=Y(e),await je(),oe()}),{addToTags:ee}=mt(u,m,q),{deleteItems:te}=be(Ke,()=>{I(),L(),y.emit("refetch_tags",u)},m),{allChecked:N,realAllChecked:V,selectRealAll:se,allCheckedAlertVisible:le,clearSelection:I,toggleAllChecked:G,toggleItemChecked:z,toggleRow:ae,total:h,checked:E}=Ce(m),{loading:ne,load:oe,refetch:L}=Ue({handle:(e,a)=>{a?Oe(Q(a),"error"):e&&(m.value=e.calls.map($=>({...$,checked:!1})),h.value=e.callCount)},document:Pe,variables:()=>({offset:(T.value-1)*b,limit:b,query:w.value}),appApi:!0}),f=U.params.type,ie={incoming:1,outgoing:2,missed:3};Be(T,e=>{f?A(C,`/calls/${f}?page=${e}&q=${D(r.value)}`):A(C,`/calls?page=${e}&q=${D(r.value)}`)});function ce(e){Z(st,{type:u,tags:q.value,item:{key:e.id,title:"",size:0},selected:q.value.filter(a=>e.tags.some($=>$.id===a.id))})}function de(e){c.tags.includes(e)?lt(c.tags,a=>a.id===e.id):c.tags.push(e)}function ue(){const e=[];for(const a of c.tags)e.push({name:"tag",op:"",value:at.kebabCase(a.name)});c.text&&e.push({name:"text",op:"",value:c.text}),r.value=Y(e),F(),M.value.dismiss()}function F(){f?A(C,`/calls/${f}?q=${D(r.value)}`):A(C,`/calls?q=${D(r.value)}`)}const H=e=>{e.type===u&&(I(),L())},j=e=>{e.type===u&&L()};Ne(()=>{y.on("item_tags_updated",j),y.on("items_tags_updated",H)}),Ge(()=>{y.off("item_tags_updated",j),y.off("items_tags_updated",H)});function re(e){if(!e)return"";const a=[];return e.isp&&a.push(Q("phone_isp_type."+e.isp)),e.city===e.province?a.push(e.city):a.push(`${e.province}${e.city}`),a.join(", ")}const K=k(""),{mutate:pe,loading:_e}=ze({document:We,appApi:!0});function me(e){K.value=e.id,pe({number:e.number})}function he(e){Z(ot,{id:e.id,name:e.id,gql:nt` +import{c as be,u as Ce,_ as Te,a as we,b as qe}from"./list-0d76acfa.js";import{d as Se,e as Ae,s as De,f as Ve,r as k,u as Ie,K as Le,L as Re,D as Me,M as Qe,N as Ue,w as Be,O as Ne,P as y,Q as Ge,i as ze,R as Ee,c as i,a as t,p as d,j as l,F as S,m as p,l as _,k as R,H as Fe,t as n,J,S as He,T as Y,U as je,a7 as Ke,x as Oe,a8 as Pe,C as A,W as D,q as We,o,v as xe,I as Je,a9 as Ye,Y as Ze,h as Xe,Z as et,$ as tt,a2 as Z,a3 as st,a0 as lt,aa as at,ab as nt,ac as ot,ad as it,a4 as ct,a5 as dt,a6 as ut}from"./index-1dff6785.js";import{_ as rt}from"./call-outline-rounded-72631358.js";import{_ as pt}from"./Breadcrumb-cba2b95b.js";import{u as _t,a as mt}from"./tags-ba1ad11a.js";import"./vee-validate.esm-b0b47415.js";const ht={class:"v-toolbar"},ft=t("md-ripple",null,null,-1),gt=t("md-ripple",null,null,-1),vt={class:"filters"},kt=["label"],yt={class:"form-label"},$t=["label","selected","onClick"],bt={class:"buttons"},Ct=["onClick"],Tt={class:"table-responsive"},wt={class:"table"},qt=["checked","indeterminate"],St=t("th",null,"ID",-1),At=t("th",null,null,-1),Dt=["onClick"],Vt=["checked"],It={class:"v-center"},Lt={class:"nowrap"},Rt={class:"action-btns"},Mt=["onClick"],Qt=t("md-ripple",null,null,-1),Ut={key:0,indeterminate:"",class:"spinner-sm"},Bt=["onClick"],Nt=t("md-ripple",null,null,-1),Gt=["onClick"],zt=t("md-ripple",null,null,-1),Et={class:"nowrap"},Ft={class:"nowrap"},Ht={class:"nowrap"},jt={key:0},Kt={colspan:"10"},Ot={class:"no-data-placeholder"},b=50,es=Se({__name:"CallsView",setup(Pt){var O,P;const C=Ae(),{app:X}=De(Ve()),m=k([]),M=k(),{t:Q}=Ie(),c=Le({text:"",tags:[]}),u=Re.CALL,U=Me(),B=U.query,T=k(parseInt(((O=B.page)==null?void 0:O.toString())??"1")),r=k(Qe(((P=B.q)==null?void 0:P.toString())??"")),w=k(""),{tags:q}=_t(u,r,c,async e=>{f&&e.push({name:"type",op:"",value:ie[f].toString()}),w.value=Y(e),await je(),oe()}),{addToTags:ee}=mt(u,m,q),{deleteItems:te}=be(Ke,()=>{I(),L(),y.emit("refetch_tags",u)},m),{allChecked:N,realAllChecked:V,selectRealAll:se,allCheckedAlertVisible:le,clearSelection:I,toggleAllChecked:G,toggleItemChecked:z,toggleRow:ae,total:h,checked:E}=Ce(m),{loading:ne,load:oe,refetch:L}=Ue({handle:(e,a)=>{a?Oe(Q(a),"error"):e&&(m.value=e.calls.map($=>({...$,checked:!1})),h.value=e.callCount)},document:Pe,variables:()=>({offset:(T.value-1)*b,limit:b,query:w.value}),appApi:!0}),f=U.params.type,ie={incoming:1,outgoing:2,missed:3};Be(T,e=>{f?A(C,`/calls/${f}?page=${e}&q=${D(r.value)}`):A(C,`/calls?page=${e}&q=${D(r.value)}`)});function ce(e){Z(st,{type:u,tags:q.value,item:{key:e.id,title:"",size:0},selected:q.value.filter(a=>e.tags.some($=>$.id===a.id))})}function de(e){c.tags.includes(e)?lt(c.tags,a=>a.id===e.id):c.tags.push(e)}function ue(){const e=[];for(const a of c.tags)e.push({name:"tag",op:"",value:at.kebabCase(a.name)});c.text&&e.push({name:"text",op:"",value:c.text}),r.value=Y(e),F(),M.value.dismiss()}function F(){f?A(C,`/calls/${f}?q=${D(r.value)}`):A(C,`/calls?q=${D(r.value)}`)}const H=e=>{e.type===u&&(I(),L())},j=e=>{e.type===u&&L()};Ne(()=>{y.on("item_tags_updated",j),y.on("items_tags_updated",H)}),Ge(()=>{y.off("item_tags_updated",j),y.off("items_tags_updated",H)});function re(e){if(!e)return"";const a=[];return e.isp&&a.push(Q("phone_isp_type."+e.isp)),e.city===e.province?a.push(e.city):a.push(`${e.province}${e.city}`),a.join(", ")}const K=k(""),{mutate:pe,loading:_e}=ze({document:We,appApi:!0});function me(e){K.value=e.id,pe({number:e.number})}function he(e){Z(ot,{id:e.id,name:e.id,gql:nt` mutation DeleteCall($query: String!) { deleteCalls(query: $query) } diff --git a/app/src/main/resources/web/assets/ContactsRootView-333b4cb6.js b/app/src/main/resources/web/assets/ContactsRootView-00218d5e.js similarity index 69% rename from app/src/main/resources/web/assets/ContactsRootView-333b4cb6.js rename to app/src/main/resources/web/assets/ContactsRootView-00218d5e.js index 3063edfd..c7caf05e 100644 --- a/app/src/main/resources/web/assets/ContactsRootView-333b4cb6.js +++ b/app/src/main/resources/web/assets/ContactsRootView-00218d5e.js @@ -1 +1 @@ -import{_ as m}from"./TagFilter.vuevuetypescriptsetuptruelang-873baaa8.js";import{d as u,D as f,e as h,E as v,G as C,c as g,p as t,H as a,j as e,o as w,a as s,t as i,l as N,I as k,C as T}from"./index-b6c39163.js";import{g as l,M as y}from"./splitpanes.es-f516e17d.js";import"./EditValueModal-f5302cb7.js";import"./vee-validate.esm-03fad591.js";const z={class:"page-container"},B={class:"sidebar"},M={class:"nav-title"},S={class:"nav"},V=["onClick"],$={class:"main"},A=u({__name:"ContactsRootView",setup(D){const o=f(),r=h(),n=v(o.query);function _(){T(r,"/contacts")}return(c,E)=>{const p=m,d=C("router-view");return w(),g("div",z,[t(e(y),null,{default:a(()=>[t(e(l),{size:"20","min-size":"10"},{default:a(()=>[s("div",B,[s("h2",M,i(c.$t("page_title.contacts")),1),s("ul",S,[s("li",{onClick:N(_,["prevent"]),class:k({active:e(o).path==="/contacts"&&!e(n)})},i(c.$t("all")),11,V)]),t(p,{type:"CONTACT",selected:e(n)},null,8,["selected"])])]),_:1}),t(e(l),null,{default:a(()=>[s("div",$,[t(d)])]),_:1})]),_:1})])}}});export{A as default}; +import{_ as m}from"./TagFilter.vuevuetypescriptsetuptruelang-2bcd90c5.js";import{d as u,D as f,e as h,E as v,G as C,c as g,p as t,H as a,j as e,o as w,a as s,t as i,l as N,I as k,C as T}from"./index-1dff6785.js";import{g as l,M as y}from"./splitpanes.es-e9e41ca8.js";import"./EditValueModal-1892701b.js";import"./vee-validate.esm-b0b47415.js";const z={class:"page-container"},B={class:"sidebar"},M={class:"nav-title"},S={class:"nav"},V=["onClick"],$={class:"main"},A=u({__name:"ContactsRootView",setup(D){const o=f(),r=h(),n=v(o.query);function _(){T(r,"/contacts")}return(c,E)=>{const p=m,d=C("router-view");return w(),g("div",z,[t(e(y),null,{default:a(()=>[t(e(l),{size:"20","min-size":"10"},{default:a(()=>[s("div",B,[s("h2",M,i(c.$t("page_title.contacts")),1),s("ul",S,[s("li",{onClick:N(_,["prevent"]),class:k({active:e(o).path==="/contacts"&&!e(n)})},i(c.$t("all")),11,V)]),t(p,{type:"CONTACT",selected:e(n)},null,8,["selected"])])]),_:1}),t(e(l),null,{default:a(()=>[s("div",$,[t(d)])]),_:1})]),_:1})])}}});export{A as default}; diff --git a/app/src/main/resources/web/assets/ContactsView-387674f7.js b/app/src/main/resources/web/assets/ContactsView-95867a11.js similarity index 98% rename from app/src/main/resources/web/assets/ContactsView-387674f7.js rename to app/src/main/resources/web/assets/ContactsView-95867a11.js index d6926a88..8e0547a8 100644 --- a/app/src/main/resources/web/assets/ContactsView-387674f7.js +++ b/app/src/main/resources/web/assets/ContactsView-95867a11.js @@ -1,4 +1,4 @@ -import{c as We,u as Je,_ as Pe,a as Ye,b as Xe}from"./list-6c4ddffc.js";import{o,c as n,a as e,d as de,r as I,an as Ne,ao as j,U as qe,t as u,m,v as f,j as i,n as et,ap as tt,_ as Te,K as Ve,u as Ue,i as se,aq as fe,ar as be,k as V,p as h,F as v,J as b,H as ae,as as lt,ad as Ie,at as ot,e as nt,s as st,f as at,L as dt,D as it,M as ut,N as rt,g as ct,w as _t,O as pt,P as G,Q as mt,R as ht,l as B,S as vt,T as ft,au as bt,x as $e,av as $t,aw as yt,C as ye,W as ge,a2 as te,q as gt,I as kt,ax as Ct,h as ke,Y as wt,Z as Nt,$ as qt,A as Tt,B as Vt,a1 as Ut,a3 as It,ay as Ce,a0 as St,ab as At,ac as Lt,am as Dt,a4 as Mt,a5 as Ft,a6 as xt}from"./index-b6c39163.js";import{_ as Rt}from"./call-outline-rounded-48005e94.js";import{_ as Bt}from"./Breadcrumb-fef16e9c.js";import{u as Se,a as Ae}from"./vee-validate.esm-03fad591.js";import{u as Qt,a as Zt}from"./tags-3bd6efbc.js";const zt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ot=e("path",{fill:"currentColor",d:"m19.3 8.925l-4.25-4.2l1.4-1.4q.575-.575 1.413-.575t1.412.575l1.4 1.4q.575.575.6 1.388t-.55 1.387L19.3 8.925ZM17.85 10.4L7.25 21H3v-4.25l10.6-10.6l4.25 4.25Z"},null,-1),jt=[Ot];function Et(g,$){return o(),n("svg",zt,jt)}const Gt={name:"material-symbols-edit",render:Et},Ht={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Kt=e("path",{fill:"currentColor",d:"M6.7 11.7q-.275-.275-.275-.7t.275-.7l4.6-4.6q.15-.15.325-.212T12 5.425q.2 0 .375.063t.325.212l4.6 4.6q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275L12 7.825L8.1 11.7q-.275.275-.688.288T6.7 11.7Zm0 6q-.275-.275-.275-.7t.275-.7l4.6-4.6q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.6 4.6q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275L12 13.825L8.1 17.7q-.275.275-.688.288T6.7 17.7Z"},null,-1),Wt=[Kt];function Jt(g,$){return o(),n("svg",Ht,Wt)}const Pt={name:"material-symbols-keyboard-double-arrow-up-rounded",render:Jt},Yt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Xt=e("path",{fill:"currentColor",d:"M12 12.575q-.2 0-.375-.062T11.3 12.3L6.7 7.7q-.275-.275-.288-.688T6.7 6.3q.275-.275.7-.275t.7.275l3.9 3.875L15.9 6.3q.275-.275.688-.287t.712.287q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062Zm0 6q-.2 0-.375-.062T11.3 18.3l-4.6-4.6q-.275-.275-.288-.687T6.7 12.3q.275-.275.7-.275t.7.275l3.9 3.875l3.9-3.875q.275-.275.688-.288t.712.288q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062Z"},null,-1),el=[Xt];function tl(g,$){return o(),n("svg",Yt,el)}const ll={name:"material-symbols-keyboard-double-arrow-down-rounded",render:tl};function H(g){return Array.from({length:g},($,Q)=>Q+1).concat(-1)}const P={phoneNumberTypes:H(20),emailTypes:H(4),addressTypes:H(3),eventTypes:H(3),imTypes:H(8),websiteTypes:H(7)},ol={slot:"headline"},nl={slot:"content"},sl=["error","error-text"],al={slot:"actions"},dl=de({__name:"PromptModal",props:{do:{type:Function,required:!0},title:{type:String,required:!0},value:{type:String}},setup(g){const $=g,{handleSubmit:Q}=Se(),d=I(),{value:C,resetField:M,errorMessage:w}=Ae("inputValue",Ne().required()),k=Q(()=>{$.do(C.value??""),j()});return C.value=$.value,$.value||M(),(async()=>{var A;await qe(),(A=d.value)==null||A.focus()})(),(A,q)=>(o(),n("md-dialog",null,[e("div",ol,u(g.title),1),e("div",nl,[m(e("md-outlined-text-field",{ref_key:"inputRef",ref:d,class:"form-control",error:i(w),"error-text":i(w)?A.$t(i(w)):"","onUpdate:modelValue":q[0]||(q[0]=N=>et(C)?C.value=N:null),onKeyup:q[1]||(q[1]=tt((...N)=>i(k)&&i(k)(...N),["enter"]))},null,40,sl),[[f,i(C)]])]),e("div",al,[e("md-outlined-button",{value:"cancel",onClick:q[2]||(q[2]=(...N)=>i(j)&&i(j)(...N))},u(A.$t("cancel")),1),e("md-filled-button",{value:"ok",onClick:q[3]||(q[3]=(...N)=>i(k)&&i(k)(...N)),autofocus:""},u(A.$t("ok")),1)])]))}});const il=Te(dl,[["__scopeId","data-v-f510d520"]]),ul={slot:"headline"},rl={slot:"content"},cl={class:"form-label"},_l={class:"form-row"},pl=["label"],ml=["label"],hl=["label"],vl={key:1,class:"v-center"},fl=e("md-ripple",null,null,-1),bl={key:0,class:"form-row"},$l=["label"],yl=["label"],gl={class:"v-center"},kl=e("md-ripple",null,null,-1),Cl={class:"form-label"},wl=["onUpdate:modelValue","onChange"],Nl=["value"],ql={slot:"headline"},Tl=["placeholder","onUpdate:modelValue"],Vl={class:"v-center"},Ul=["onClick"],Il=e("md-ripple",null,null,-1),Sl={key:1,class:"form-label"},Al=["onUpdate:modelValue","onChange"],Ll=["value"],Dl={slot:"headline"},Ml=["label","onUpdate:modelValue"],Fl={class:"v-center"},xl=["onClick"],Rl=e("md-ripple",null,null,-1),Bl={key:2,class:"form-label"},Ql=["onUpdate:modelValue","onChange"],Zl=["value"],zl={slot:"headline"},Ol=["label","onUpdate:modelValue"],jl={class:"v-center"},El=["onClick"],Gl=e("md-ripple",null,null,-1),Hl={key:3,class:"form-label"},Kl=["onUpdate:modelValue","onChange"],Wl=["value"],Jl={slot:"headline"},Pl=["placeholder","onUpdate:modelValue"],Yl={class:"v-center"},Xl=["onClick"],eo=e("md-ripple",null,null,-1),to={key:4,class:"form-label"},lo=["onUpdate:modelValue","onChange"],oo=["value"],no={slot:"headline"},so=["placeholder","onUpdate:modelValue"],ao={class:"v-center"},io=["onClick"],uo=e("md-ripple",null,null,-1),ro={class:"form-row",style:{display:"block",position:"relative"}},co={class:"menu-items"},_o=["onClick"],po={slot:"headline"},mo=["onClick"],ho={slot:"headline"},vo=["onClick"],fo={slot:"headline"},bo=["onClick"],$o={slot:"headline"},yo=["onClick"],go={slot:"headline"},ko={class:"form-row"},Co=["label"],wo={slot:"actions"},No=["disabled"],we=de({__name:"EditContactModal",props:{data:{type:Object},sources:{type:Array},done:{type:Function,required:!0}},setup(g){const $=g,{handleSubmit:Q}=Se(),d=Ve({firstName:"",middleName:"",lastName:"",prefix:"",suffix:"",nickname:"",organization:null,notes:"",source:"",starred:0,phoneNumbers:[],emails:[],addresses:[],websites:[],events:[],ims:[],groupIds:[]}),C=I(!1),{t:M}=Ue(),{mutate:w,loading:k,onDone:A}=se({document:fe` +import{c as We,u as Je,_ as Pe,a as Ye,b as Xe}from"./list-0d76acfa.js";import{o,c as n,a as e,d as de,r as I,an as Ne,ao as j,U as qe,t as u,m,v as f,j as i,n as et,ap as tt,_ as Te,K as Ve,u as Ue,i as se,aq as fe,ar as be,k as V,p as h,F as v,J as b,H as ae,as as lt,ad as Ie,at as ot,e as nt,s as st,f as at,L as dt,D as it,M as ut,N as rt,g as ct,w as _t,O as pt,P as G,Q as mt,R as ht,l as B,S as vt,T as ft,au as bt,x as $e,av as $t,aw as yt,C as ye,W as ge,a2 as te,q as gt,I as kt,ax as Ct,h as ke,Y as wt,Z as Nt,$ as qt,A as Tt,B as Vt,a1 as Ut,a3 as It,ay as Ce,a0 as St,ab as At,ac as Lt,am as Dt,a4 as Mt,a5 as Ft,a6 as xt}from"./index-1dff6785.js";import{_ as Rt}from"./call-outline-rounded-72631358.js";import{_ as Bt}from"./Breadcrumb-cba2b95b.js";import{u as Se,a as Ae}from"./vee-validate.esm-b0b47415.js";import{u as Qt,a as Zt}from"./tags-ba1ad11a.js";const zt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ot=e("path",{fill:"currentColor",d:"m19.3 8.925l-4.25-4.2l1.4-1.4q.575-.575 1.413-.575t1.412.575l1.4 1.4q.575.575.6 1.388t-.55 1.387L19.3 8.925ZM17.85 10.4L7.25 21H3v-4.25l10.6-10.6l4.25 4.25Z"},null,-1),jt=[Ot];function Et(g,$){return o(),n("svg",zt,jt)}const Gt={name:"material-symbols-edit",render:Et},Ht={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Kt=e("path",{fill:"currentColor",d:"M6.7 11.7q-.275-.275-.275-.7t.275-.7l4.6-4.6q.15-.15.325-.212T12 5.425q.2 0 .375.063t.325.212l4.6 4.6q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275L12 7.825L8.1 11.7q-.275.275-.688.288T6.7 11.7Zm0 6q-.275-.275-.275-.7t.275-.7l4.6-4.6q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.6 4.6q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275L12 13.825L8.1 17.7q-.275.275-.688.288T6.7 17.7Z"},null,-1),Wt=[Kt];function Jt(g,$){return o(),n("svg",Ht,Wt)}const Pt={name:"material-symbols-keyboard-double-arrow-up-rounded",render:Jt},Yt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Xt=e("path",{fill:"currentColor",d:"M12 12.575q-.2 0-.375-.062T11.3 12.3L6.7 7.7q-.275-.275-.288-.688T6.7 6.3q.275-.275.7-.275t.7.275l3.9 3.875L15.9 6.3q.275-.275.688-.287t.712.287q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062Zm0 6q-.2 0-.375-.062T11.3 18.3l-4.6-4.6q-.275-.275-.288-.687T6.7 12.3q.275-.275.7-.275t.7.275l3.9 3.875l3.9-3.875q.275-.275.688-.288t.712.288q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062Z"},null,-1),el=[Xt];function tl(g,$){return o(),n("svg",Yt,el)}const ll={name:"material-symbols-keyboard-double-arrow-down-rounded",render:tl};function H(g){return Array.from({length:g},($,Q)=>Q+1).concat(-1)}const P={phoneNumberTypes:H(20),emailTypes:H(4),addressTypes:H(3),eventTypes:H(3),imTypes:H(8),websiteTypes:H(7)},ol={slot:"headline"},nl={slot:"content"},sl=["error","error-text"],al={slot:"actions"},dl=de({__name:"PromptModal",props:{do:{type:Function,required:!0},title:{type:String,required:!0},value:{type:String}},setup(g){const $=g,{handleSubmit:Q}=Se(),d=I(),{value:C,resetField:M,errorMessage:w}=Ae("inputValue",Ne().required()),k=Q(()=>{$.do(C.value??""),j()});return C.value=$.value,$.value||M(),(async()=>{var A;await qe(),(A=d.value)==null||A.focus()})(),(A,q)=>(o(),n("md-dialog",null,[e("div",ol,u(g.title),1),e("div",nl,[m(e("md-outlined-text-field",{ref_key:"inputRef",ref:d,class:"form-control",error:i(w),"error-text":i(w)?A.$t(i(w)):"","onUpdate:modelValue":q[0]||(q[0]=N=>et(C)?C.value=N:null),onKeyup:q[1]||(q[1]=tt((...N)=>i(k)&&i(k)(...N),["enter"]))},null,40,sl),[[f,i(C)]])]),e("div",al,[e("md-outlined-button",{value:"cancel",onClick:q[2]||(q[2]=(...N)=>i(j)&&i(j)(...N))},u(A.$t("cancel")),1),e("md-filled-button",{value:"ok",onClick:q[3]||(q[3]=(...N)=>i(k)&&i(k)(...N)),autofocus:""},u(A.$t("ok")),1)])]))}});const il=Te(dl,[["__scopeId","data-v-f510d520"]]),ul={slot:"headline"},rl={slot:"content"},cl={class:"form-label"},_l={class:"form-row"},pl=["label"],ml=["label"],hl=["label"],vl={key:1,class:"v-center"},fl=e("md-ripple",null,null,-1),bl={key:0,class:"form-row"},$l=["label"],yl=["label"],gl={class:"v-center"},kl=e("md-ripple",null,null,-1),Cl={class:"form-label"},wl=["onUpdate:modelValue","onChange"],Nl=["value"],ql={slot:"headline"},Tl=["placeholder","onUpdate:modelValue"],Vl={class:"v-center"},Ul=["onClick"],Il=e("md-ripple",null,null,-1),Sl={key:1,class:"form-label"},Al=["onUpdate:modelValue","onChange"],Ll=["value"],Dl={slot:"headline"},Ml=["label","onUpdate:modelValue"],Fl={class:"v-center"},xl=["onClick"],Rl=e("md-ripple",null,null,-1),Bl={key:2,class:"form-label"},Ql=["onUpdate:modelValue","onChange"],Zl=["value"],zl={slot:"headline"},Ol=["label","onUpdate:modelValue"],jl={class:"v-center"},El=["onClick"],Gl=e("md-ripple",null,null,-1),Hl={key:3,class:"form-label"},Kl=["onUpdate:modelValue","onChange"],Wl=["value"],Jl={slot:"headline"},Pl=["placeholder","onUpdate:modelValue"],Yl={class:"v-center"},Xl=["onClick"],eo=e("md-ripple",null,null,-1),to={key:4,class:"form-label"},lo=["onUpdate:modelValue","onChange"],oo=["value"],no={slot:"headline"},so=["placeholder","onUpdate:modelValue"],ao={class:"v-center"},io=["onClick"],uo=e("md-ripple",null,null,-1),ro={class:"form-row",style:{display:"block",position:"relative"}},co={class:"menu-items"},_o=["onClick"],po={slot:"headline"},mo=["onClick"],ho={slot:"headline"},vo=["onClick"],fo={slot:"headline"},bo=["onClick"],$o={slot:"headline"},yo=["onClick"],go={slot:"headline"},ko={class:"form-row"},Co=["label"],wo={slot:"actions"},No=["disabled"],we=de({__name:"EditContactModal",props:{data:{type:Object},sources:{type:Array},done:{type:Function,required:!0}},setup(g){const $=g,{handleSubmit:Q}=Se(),d=Ve({firstName:"",middleName:"",lastName:"",prefix:"",suffix:"",nickname:"",organization:null,notes:"",source:"",starred:0,phoneNumbers:[],emails:[],addresses:[],websites:[],events:[],ims:[],groupIds:[]}),C=I(!1),{t:M}=Ue(),{mutate:w,loading:k,onDone:A}=se({document:fe` mutation createContact($input: ContactInput!) { createContact(input: $input) { ...ContactFragment diff --git a/app/src/main/resources/web/assets/DeviceInfoView-efec82d1.js b/app/src/main/resources/web/assets/DeviceInfoView-94e62ae8.js similarity index 96% rename from app/src/main/resources/web/assets/DeviceInfoView-efec82d1.js rename to app/src/main/resources/web/assets/DeviceInfoView-94e62ae8.js index 89ece620..7db6875d 100644 --- a/app/src/main/resources/web/assets/DeviceInfoView-efec82d1.js +++ b/app/src/main/resources/web/assets/DeviceInfoView-94e62ae8.js @@ -1 +1 @@ -import{_ as V}from"./Breadcrumb-fef16e9c.js";import{d as $,u as I,r as p,g as A,R as D,c as l,a,p as w,t as o,F as r,J as i,x as N,a9 as T,by as B,o as t,m as y,j as d,Y as m,h as u,Z as f,_ as j}from"./index-b6c39163.js";const F={class:"page-container"},x={class:"main"},E={class:"v-toolbar"},L={class:"panel-container"},Q={class:"grid"},S={class:"g-col-6 g-col-md-4"},C={class:"card"},G={class:"card-body"},J={class:"card-title"},P={class:"card-text"},R={class:"key-value"},Y={class:"key"},Z={class:"value"},q={key:0,class:"time"},z={class:"g-col-6 g-col-md-4"},H={class:"card"},K={class:"card-body"},M={class:"card-title"},O={class:"card-text"},U={class:"key-value"},W={class:"key"},X={class:"value"},ee={key:0,class:"time"},ae={class:"g-col-6 g-col-md-4"},se={class:"card"},le={class:"card-body"},te={class:"card-title"},oe={class:"card-text"},ce={class:"key-value"},ne={class:"key"},re={class:"value"},ie={key:0,class:"time"},de=$({__name:"DeviceInfoView",setup(ue){const{t:_}=I(),b=p([]),g=p([]),k=p([]);return A({handle:(n,h)=>{if(h)N(_(h),"error");else{const s=n.deviceInfo;b.value=[{label:"device_name",value:s.deviceName},{label:"model",value:s.model},{label:"manufacturer",value:s.manufacturer},{label:"device",value:s.device},{label:"board",value:s.board},{label:"hardware",value:s.hardware},{label:"brand",value:s.buildBrand},{label:"build_fingerprint",value:s.fingerprint}],s.phoneNumbers.length>0&&b.value.push({label:"phone_number",value:s.phoneNumbers.map(e=>e.name+" "+e.number)}),g.value=[{label:"android_version",value:s.releaseBuildVersion+" ("+s.sdkVersion+")"},{label:"security_patch",value:s.securityPatch},{label:"bootloader",value:s.bootloader},{label:"build_number",value:s.displayVersion},{label:"baseband",value:s.radioVersion},{label:"java_vm",value:s.javaVmVersion},{label:"kernel",value:s.kernelVersion},{label:"opengl_es",value:s.glEsVersion},{label:"uptime",value:T(s.uptime/1e3)}];const c=n.battery;k.value=[{label:"health",value:_(`battery_health.${c.health}`)},{label:"remaining",value:`${c.level}%`},{label:"status",value:_(`battery_status.${c.status}`)},{label:"power_source",value:_(`battery_plugged.${c.plugged}`)},{label:"technology",value:c.technology},{label:"temperature",value:`${c.temperature} ℃`},{label:"voltage",value:`${c.voltage} mV`},{label:"capacity",value:c.capacity+" mAh"}]}},document:B,appApi:!0}),(n,h)=>{const s=V,c=D("tooltip");return t(),l("div",F,[a("div",x,[a("div",E,[w(s,{current:()=>n.$t("device_info")},null,8,["current"])]),a("div",L,[a("div",Q,[a("div",S,[a("section",C,[a("div",G,[a("h5",J,o(n.$t("device")),1),a("p",P,[(t(!0),l(r,null,i(b.value,e=>(t(),l("div",R,[a("div",Y,o(n.$t(e.label)),1),a("div",Z,[e.isTime?y((t(),l("span",q,[u(o(d(f)(e.value)),1)])),[[c,d(m)(e.value)]]):Array.isArray(e.value)?(t(!0),l(r,{key:1},i(e.value,v=>(t(),l("div",null,o(v),1))),256)):(t(),l(r,{key:2},[u(o(e.value),1)],64))])]))),256))])])])]),a("div",z,[a("section",H,[a("div",K,[a("h5",M,o(n.$t("system")),1),a("p",O,[(t(!0),l(r,null,i(g.value,e=>(t(),l("div",U,[a("div",W,o(n.$t(e.label)),1),a("div",X,[e.isTime?y((t(),l("span",ee,[u(o(d(f)(e.value)),1)])),[[c,d(m)(e.value)]]):Array.isArray(e.value)?(t(!0),l(r,{key:1},i(e.value,v=>(t(),l("div",null,o(v),1))),256)):(t(),l(r,{key:2},[u(o(e.value),1)],64))])]))),256))])])])]),a("div",ae,[a("section",se,[a("div",le,[a("h5",te,o(n.$t("battery")),1),a("p",oe,[(t(!0),l(r,null,i(k.value,e=>(t(),l("div",ce,[a("div",ne,o(n.$t(e.label)),1),a("div",re,[e.isTime?y((t(),l("span",ie,[u(o(d(f)(e.value)),1)])),[[c,d(m)(e.value)]]):Array.isArray(e.value)?(t(!0),l(r,{key:1},i(e.value,v=>(t(),l("div",null,o(v),1))),256)):(t(),l(r,{key:2},[u(o(e.value),1)],64))])]))),256))])])])])])])])])}}});const be=j(de,[["__scopeId","data-v-c9cf5e1a"]]);export{be as default}; +import{_ as V}from"./Breadcrumb-cba2b95b.js";import{d as $,u as I,r as p,g as A,R as D,c as l,a,p as w,t as o,F as r,J as i,x as N,a9 as T,by as B,o as t,m as y,j as d,Y as m,h as u,Z as f,_ as j}from"./index-1dff6785.js";const F={class:"page-container"},x={class:"main"},E={class:"v-toolbar"},L={class:"panel-container"},Q={class:"grid"},S={class:"g-col-6 g-col-md-4"},C={class:"card"},G={class:"card-body"},J={class:"card-title"},P={class:"card-text"},R={class:"key-value"},Y={class:"key"},Z={class:"value"},q={key:0,class:"time"},z={class:"g-col-6 g-col-md-4"},H={class:"card"},K={class:"card-body"},M={class:"card-title"},O={class:"card-text"},U={class:"key-value"},W={class:"key"},X={class:"value"},ee={key:0,class:"time"},ae={class:"g-col-6 g-col-md-4"},se={class:"card"},le={class:"card-body"},te={class:"card-title"},oe={class:"card-text"},ce={class:"key-value"},ne={class:"key"},re={class:"value"},ie={key:0,class:"time"},de=$({__name:"DeviceInfoView",setup(ue){const{t:_}=I(),b=p([]),g=p([]),k=p([]);return A({handle:(n,h)=>{if(h)N(_(h),"error");else{const s=n.deviceInfo;b.value=[{label:"device_name",value:s.deviceName},{label:"model",value:s.model},{label:"manufacturer",value:s.manufacturer},{label:"device",value:s.device},{label:"board",value:s.board},{label:"hardware",value:s.hardware},{label:"brand",value:s.buildBrand},{label:"build_fingerprint",value:s.fingerprint}],s.phoneNumbers.length>0&&b.value.push({label:"phone_number",value:s.phoneNumbers.map(e=>e.name+" "+e.number)}),g.value=[{label:"android_version",value:s.releaseBuildVersion+" ("+s.sdkVersion+")"},{label:"security_patch",value:s.securityPatch},{label:"bootloader",value:s.bootloader},{label:"build_number",value:s.displayVersion},{label:"baseband",value:s.radioVersion},{label:"java_vm",value:s.javaVmVersion},{label:"kernel",value:s.kernelVersion},{label:"opengl_es",value:s.glEsVersion},{label:"uptime",value:T(s.uptime/1e3)}];const c=n.battery;k.value=[{label:"health",value:_(`battery_health.${c.health}`)},{label:"remaining",value:`${c.level}%`},{label:"status",value:_(`battery_status.${c.status}`)},{label:"power_source",value:_(`battery_plugged.${c.plugged}`)},{label:"technology",value:c.technology},{label:"temperature",value:`${c.temperature} ℃`},{label:"voltage",value:`${c.voltage} mV`},{label:"capacity",value:c.capacity+" mAh"}]}},document:B,appApi:!0}),(n,h)=>{const s=V,c=D("tooltip");return t(),l("div",F,[a("div",x,[a("div",E,[w(s,{current:()=>n.$t("device_info")},null,8,["current"])]),a("div",L,[a("div",Q,[a("div",S,[a("section",C,[a("div",G,[a("h5",J,o(n.$t("device")),1),a("p",P,[(t(!0),l(r,null,i(b.value,e=>(t(),l("div",R,[a("div",Y,o(n.$t(e.label)),1),a("div",Z,[e.isTime?y((t(),l("span",q,[u(o(d(f)(e.value)),1)])),[[c,d(m)(e.value)]]):Array.isArray(e.value)?(t(!0),l(r,{key:1},i(e.value,v=>(t(),l("div",null,o(v),1))),256)):(t(),l(r,{key:2},[u(o(e.value),1)],64))])]))),256))])])])]),a("div",z,[a("section",H,[a("div",K,[a("h5",M,o(n.$t("system")),1),a("p",O,[(t(!0),l(r,null,i(g.value,e=>(t(),l("div",U,[a("div",W,o(n.$t(e.label)),1),a("div",X,[e.isTime?y((t(),l("span",ee,[u(o(d(f)(e.value)),1)])),[[c,d(m)(e.value)]]):Array.isArray(e.value)?(t(!0),l(r,{key:1},i(e.value,v=>(t(),l("div",null,o(v),1))),256)):(t(),l(r,{key:2},[u(o(e.value),1)],64))])]))),256))])])])]),a("div",ae,[a("section",se,[a("div",le,[a("h5",te,o(n.$t("battery")),1),a("p",oe,[(t(!0),l(r,null,i(k.value,e=>(t(),l("div",ce,[a("div",ne,o(n.$t(e.label)),1),a("div",re,[e.isTime?y((t(),l("span",ie,[u(o(d(f)(e.value)),1)])),[[c,d(m)(e.value)]]):Array.isArray(e.value)?(t(!0),l(r,{key:1},i(e.value,v=>(t(),l("div",null,o(v),1))),256)):(t(),l(r,{key:2},[u(o(e.value),1)],64))])]))),256))])])])])])])])])}}});const be=j(de,[["__scopeId","data-v-c9cf5e1a"]]);export{be as default}; diff --git a/app/src/main/resources/web/assets/DevicesView-4b6ac906.js b/app/src/main/resources/web/assets/DevicesView-85d94535.js similarity index 92% rename from app/src/main/resources/web/assets/DevicesView-4b6ac906.js rename to app/src/main/resources/web/assets/DevicesView-85d94535.js index 8bb0d550..b303e604 100644 --- a/app/src/main/resources/web/assets/DevicesView-4b6ac906.js +++ b/app/src/main/resources/web/assets/DevicesView-85d94535.js @@ -1,4 +1,4 @@ -import{d as y,u as A,r as C,g as F,x as N,ab as r,c3 as p,R as I,c as o,a as e,p as m,t,F as M,J as q,o as i,l as _,m as v,j as d,Y as h,h as $,Z as f,a2 as D,ac as B,i as E,a5 as T}from"./index-b6c39163.js";import{_ as S}from"./Breadcrumb-fef16e9c.js";import{E as j}from"./EditValueModal-f5302cb7.js";import"./vee-validate.esm-03fad591.js";const J={class:"page-container"},L={class:"main"},O={class:"table-responsive"},Q={class:"table"},R=e("th",null,"ID",-1),U={class:"actions one"},Y=["onClick"],Z={class:"nowrap"},z={class:"nowrap"},G={class:"actions one"},H=["onClick"],ee=y({__name:"DevicesView",setup(K){const{t:s}=A(),c=C([]);F({handle:(n,l)=>{l?N(s(l),"error"):c.value=[...n.devices]},document:r` +import{d as y,u as A,r as C,g as F,x as N,ab as r,c3 as p,R as I,c as o,a as e,p as m,t,F as M,J as q,o as i,l as _,m as v,j as d,Y as h,h as $,Z as f,a2 as D,ac as B,i as E,a5 as T}from"./index-1dff6785.js";import{_ as S}from"./Breadcrumb-cba2b95b.js";import{E as j}from"./EditValueModal-1892701b.js";import"./vee-validate.esm-b0b47415.js";const J={class:"page-container"},L={class:"main"},O={class:"table-responsive"},Q={class:"table"},R=e("th",null,"ID",-1),U={class:"actions one"},Y=["onClick"],Z={class:"nowrap"},z={class:"nowrap"},G={class:"actions one"},H=["onClick"],ee=y({__name:"DevicesView",setup(K){const{t:s}=A(),c=C([]);F({handle:(n,l)=>{l?N(s(l),"error"):c.value=[...n.devices]},document:r` query { devices { ...DeviceFragment diff --git a/app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-305dbf63.js b/app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-7ece134f.js similarity index 92% rename from app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-305dbf63.js rename to app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-7ece134f.js index 89308810..8a3d25bd 100644 --- a/app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-305dbf63.js +++ b/app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-7ece134f.js @@ -1 +1 @@ -import{d as b,r as m,o,c as l,a as r,F as v,J as p,I as y,t as c}from"./index-b6c39163.js";const f={class:"v-toolbar"},g={class:"v-tabs"},h=["onClick"],k=["disabled"],F=b({__name:"EditToolbar",props:{modelValue:{type:Number,default:0},save:{type:Function},loading:{type:Boolean},tabs:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(e,{emit:d}){const n=m(e.modelValue);function u(t){n.value=t,d("update:modelValue",t)}return(t,i)=>(o(),l("div",f,[r("ul",g,[(o(!0),l(v,null,p(e.tabs,(a,s)=>(o(),l("li",{key:s,onClick:V=>u(s),class:y({active:n.value===s})},c(a.startsWith("t:")?t.$t(a.slice(2)):a),11,h))),128))]),r("button",{type:"button",disabled:e.loading,class:"btn right-actions",onClick:i[0]||(i[0]=(...a)=>e.save&&e.save(...a))},c(t.$t(e.loading?"saving":"save")),9,k)]))}});export{F as _}; +import{d as b,r as m,o,c as l,a as r,F as v,J as p,I as y,t as c}from"./index-1dff6785.js";const f={class:"v-toolbar"},g={class:"v-tabs"},h=["onClick"],k=["disabled"],F=b({__name:"EditToolbar",props:{modelValue:{type:Number,default:0},save:{type:Function},loading:{type:Boolean},tabs:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(e,{emit:d}){const n=m(e.modelValue);function u(t){n.value=t,d("update:modelValue",t)}return(t,i)=>(o(),l("div",f,[r("ul",g,[(o(!0),l(v,null,p(e.tabs,(a,s)=>(o(),l("li",{key:s,onClick:V=>u(s),class:y({active:n.value===s})},c(a.startsWith("t:")?t.$t(a.slice(2)):a),11,h))),128))]),r("button",{type:"button",disabled:e.loading,class:"btn right-actions",onClick:i[0]||(i[0]=(...a)=>e.save&&e.save(...a))},c(t.$t(e.loading?"saving":"save")),9,k)]))}});export{F as _}; diff --git a/app/src/main/resources/web/assets/EditValueModal-f5302cb7.js b/app/src/main/resources/web/assets/EditValueModal-1892701b.js similarity index 91% rename from app/src/main/resources/web/assets/EditValueModal-f5302cb7.js rename to app/src/main/resources/web/assets/EditValueModal-1892701b.js index e4f44c8b..a47cdb1d 100644 --- a/app/src/main/resources/web/assets/EditValueModal-f5302cb7.js +++ b/app/src/main/resources/web/assets/EditValueModal-1892701b.js @@ -1 +1 @@ -import{d as h,r as V,an as b,U as k,ao as p,o as x,c as E,a as n,t as d,m as F,v as M,j as t,n as S,ap as q,_ as w}from"./index-b6c39163.js";import{u as B,a as C}from"./vee-validate.esm-03fad591.js";const D={slot:"headline"},R={slot:"content"},$=["placeholder","error","error-text"],K={slot:"actions"},T=["disabled"],U=h({__name:"EditValueModal",props:{getVariables:{type:Function,required:!0},title:{type:String,required:!0},placeholder:{type:String},value:{type:String},mutation:{type:Function,required:!0},done:{type:Function}},setup(r){const s=r,{handleSubmit:v}=B(),c=V(),{mutate:f,loading:m,onDone:_}=s.mutation(),{value:o,resetField:y,errorMessage:u}=C("inputValue",b().required());o.value=s.value??"",o.value||y();function g(){p()}(async()=>{var e;await k(),(e=c.value)==null||e.focus()})();const i=v(()=>{f(s.getVariables(o.value??""))});return _(()=>{var e;(e=s.done)==null||e.call(this,o.value),p()}),(e,a)=>(x(),E("md-dialog",null,[n("div",D,d(r.title),1),n("div",R,[F(n("md-outlined-text-field",{ref_key:"inputRef",ref:c,placeholder:r.placeholder,"onUpdate:modelValue":a[0]||(a[0]=l=>S(o)?o.value=l:null),onKeyup:a[1]||(a[1]=q((...l)=>t(i)&&t(i)(...l),["enter"])),error:t(u),"error-text":t(u)?e.$t(t(u)):""},null,40,$),[[M,t(o)]])]),n("div",K,[n("md-outlined-button",{value:"cancel",onClick:g},d(e.$t("cancel")),1),n("md-filled-button",{value:"save",disabled:t(m),onClick:a[2]||(a[2]=(...l)=>t(i)&&t(i)(...l)),autofocus:""},d(e.$t("save")),9,T)])]))}});const I=w(U,[["__scopeId","data-v-78f7a9dc"]]);export{I as E}; +import{d as h,r as V,an as b,U as k,ao as p,o as x,c as E,a as n,t as d,m as F,v as M,j as t,n as S,ap as q,_ as w}from"./index-1dff6785.js";import{u as B,a as C}from"./vee-validate.esm-b0b47415.js";const D={slot:"headline"},R={slot:"content"},$=["placeholder","error","error-text"],K={slot:"actions"},T=["disabled"],U=h({__name:"EditValueModal",props:{getVariables:{type:Function,required:!0},title:{type:String,required:!0},placeholder:{type:String},value:{type:String},mutation:{type:Function,required:!0},done:{type:Function}},setup(r){const s=r,{handleSubmit:v}=B(),c=V(),{mutate:f,loading:m,onDone:_}=s.mutation(),{value:o,resetField:y,errorMessage:u}=C("inputValue",b().required());o.value=s.value??"",o.value||y();function g(){p()}(async()=>{var e;await k(),(e=c.value)==null||e.focus()})();const i=v(()=>{f(s.getVariables(o.value??""))});return _(()=>{var e;(e=s.done)==null||e.call(this,o.value),p()}),(e,a)=>(x(),E("md-dialog",null,[n("div",D,d(r.title),1),n("div",R,[F(n("md-outlined-text-field",{ref_key:"inputRef",ref:c,placeholder:r.placeholder,"onUpdate:modelValue":a[0]||(a[0]=l=>S(o)?o.value=l:null),onKeyup:a[1]||(a[1]=q((...l)=>t(i)&&t(i)(...l),["enter"])),error:t(u),"error-text":t(u)?e.$t(t(u)):""},null,40,$),[[M,t(o)]])]),n("div",K,[n("md-outlined-button",{value:"cancel",onClick:g},d(e.$t("cancel")),1),n("md-filled-button",{value:"save",disabled:t(m),onClick:a[2]||(a[2]=(...l)=>t(i)&&t(i)(...l)),autofocus:""},d(e.$t("save")),9,T)])]))}});const I=w(U,[["__scopeId","data-v-78f7a9dc"]]);export{I as E}; diff --git a/app/src/main/resources/web/assets/FeedEntryView-0ec0e957.js b/app/src/main/resources/web/assets/FeedEntryView-9e621dfe.js similarity index 95% rename from app/src/main/resources/web/assets/FeedEntryView-0ec0e957.js rename to app/src/main/resources/web/assets/FeedEntryView-9e621dfe.js index 9c9c72d0..69e0a43a 100644 --- a/app/src/main/resources/web/assets/FeedEntryView-0ec0e957.js +++ b/app/src/main/resources/web/assets/FeedEntryView-9e621dfe.js @@ -1 +1 @@ -import{_ as P}from"./print-outline-rounded-b6b10f6f.js";import{o as s,c as o,a,d as Y,u as W,D as X,r as _,s as ee,f as te,g as S,i as ne,O as se,P as r,Q as oe,R as ae,t as q,S as ie,j as g,k as I,F as ce,J as le,m as u,l as b,p,x as Q,cm as de,aT as _e,cn as re,a5 as ue,Z as pe,A as me,B as he,a2 as ve,a3 as Te,a4 as ye,_ as fe}from"./index-b6c39163.js";import{u as qe}from"./markdown-1f5e90f8.js";const ge={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},be=a("path",{fill:"currentColor",d:"M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h6q.425 0 .713.288T12 4q0 .425-.288.713T11 5H5v14h14v-6q0-.425.288-.713T20 12q.425 0 .713.288T21 13v6q0 .825-.588 1.413T19 21H5Zm4-6q-.275-.275-.275-.7T9 13.6L17.6 5H15q-.425 0-.713-.288T14 4q0-.425.288-.713T15 3h5q.425 0 .713.288T21 4v5q0 .425-.288.713T20 10q-.425 0-.713-.288T19 9V6.4l-8.625 8.625q-.275.275-.675.275T9 15Z"},null,-1),we=[be];function ke(i,c){return s(),o("svg",ge,we)}const Ce={name:"material-symbols-open-in-new-rounded",render:ke},$e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ee=a("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038T14 18.275q0-.25.163-.487t.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.187T16.25 7.8L16 7.55V9q0 .425-.288.713T15 10q-.425 0-.713-.288T14 9V5q0-.425.288-.713T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6h-1.75l.4.35q1.225 1.225 1.788 2.663T20 11.95q0 2.4-1.25 4.363t-3.375 2.937ZM5 20q-.425 0-.713-.288T4 19q0-.425.288-.713T5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.663T4 12.05q0-2.4 1.25-4.362T8.625 4.75q.525-.25.95.038t.425.937q0 .25-.163.488t-.412.362q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.188T7.75 16.2l.25.25V15q0-.425.288-.713T9 14q.425 0 .713.288T10 15v4q0 .425-.288.713T9 20H5Z"},null,-1),Fe=[Ee];function Ve(i,c){return s(),o("svg",$e,Fe)}const Me={name:"material-symbols-sync-rounded",render:Ve},h=i=>(me("data-v-5b41a86a"),i=i(),he(),i),Le={class:"container"},De={class:"title"},He={class:"subtitle v-center"},Be={key:1,class:"author"},xe=["onClick"],Ae=h(()=>a("md-ripple",null,null,-1)),Se={key:2,indeterminate:"",class:"spinner-sm"},Ie=["disabled","onClick"],Qe=h(()=>a("md-ripple",null,null,-1)),Ze=["href"],Ne={class:"icon-button"},Re=h(()=>a("md-ripple",null,null,-1)),Ge=["onClick"],Ue=h(()=>a("md-ripple",null,null,-1)),je=["innerHTML"],m="FEED_ENTRY",ze=Y({__name:"FeedEntryView",setup(i){const{t:c}=W(),Z=X(),w=_(Z.params.id),n=_(),v=_(""),T=_(),{app:N,urlTokenKey:R}=ee(te()),{render:k}=qe(N,R),{refetch:C}=S({handle:async(e,t)=>{t?Q(c(t),"error"):(n.value=e.feedEntry,v.value=await k(e.feedEntry.content||e.feedEntry.description))},document:de,variables:()=>({id:w.value}),appApi:!0});S({handle:(e,t)=>{t?Q(c(t),"error"):e&&(T.value=e.tags)},document:_e,variables:{type:m},appApi:!0});const G=()=>{window.print()};function U(){var e,t;ve(Te,{type:m,tags:T.value,item:{key:(e=n.value)==null?void 0:e.id,title:"",size:0},selected:(t=T.value)==null?void 0:t.filter(y=>{var l;return(l=n.value)==null?void 0:l.tags.some(f=>f.id===y.id)})})}const{mutate:j,loading:$,onDone:z}=ne({document:re,appApi:!0});z(async e=>{const t=e.data;n.value=t.syncFeedContent,v.value=await k(t.syncFeedContent.content||t.syncFeedContent.description)});const J=()=>{j({id:w.value})},E=e=>{e.type===m&&C()},F=e=>{e.type===m&&C()};return se(()=>{r.on("item_tags_updated",F),r.on("items_tags_updated",E)}),oe(()=>{r.off("item_tags_updated",F),r.off("items_tags_updated",E)}),(e,t)=>{var V,M,L,D,H,B,x;const y=ue,l=ye,f=Me,K=Ce,O=P,d=ae("tooltip");return s(),o("div",Le,[a("h2",De,q((V=n.value)==null?void 0:V.title),1),a("div",He,[(M=n.value)!=null&&M.publishedAt?(s(),ie(y,{key:0,class:"time",id:g(pe)((L=n.value)==null?void 0:L.publishedAt),raw:n.value},null,8,["id","raw"])):I("",!0),(D=n.value)!=null&&D.author?(s(),o("span",Be,q((H=n.value)==null?void 0:H.author),1)):I("",!0),(s(!0),o(ce,null,le((B=n.value)==null?void 0:B.tags,A=>(s(),o("span",{key:A.id,class:"badge"},q(A.name),1))),128)),u((s(),o("button",{class:"icon-button",onClick:b(U,["prevent"]),style:{"margin-inline-start":"8px"}},[Ae,p(l)],8,xe)),[[d,e.$t("add_to_tags")]]),g($)?(s(),o("md-circular-progress",Se)):u((s(),o("button",{key:3,class:"icon-button btn-icon",disabled:g($),onClick:b(J,["prevent"])},[Qe,p(f)],8,Ie)),[[d,e.$t("sync_content")]]),u((s(),o("a",{href:(x=n.value)==null?void 0:x.url,target:"_blank"},[a("button",Ne,[Re,p(K)])],8,Ze)),[[d,e.$t("view_original_article")]]),u((s(),o("button",{class:"icon-button",onClick:b(G,["prevent"])},[Ue,p(O)],8,Ge)),[[d,e.$t("print")]])]),a("div",{class:"md-container",innerHTML:v.value},null,8,je)])}}});const Pe=fe(ze,[["__scopeId","data-v-5b41a86a"]]);export{Pe as default}; +import{_ as P}from"./print-outline-rounded-a531ab61.js";import{o as s,c as o,a,d as Y,u as W,D as X,r as _,s as ee,f as te,g as S,i as ne,O as se,P as r,Q as oe,R as ae,t as q,S as ie,j as g,k as I,F as ce,J as le,m as u,l as b,p,x as Q,cm as de,aT as _e,cn as re,a5 as ue,Z as pe,A as me,B as he,a2 as ve,a3 as Te,a4 as ye,_ as fe}from"./index-1dff6785.js";import{u as qe}from"./markdown-a8cc08c7.js";const ge={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},be=a("path",{fill:"currentColor",d:"M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h6q.425 0 .713.288T12 4q0 .425-.288.713T11 5H5v14h14v-6q0-.425.288-.713T20 12q.425 0 .713.288T21 13v6q0 .825-.588 1.413T19 21H5Zm4-6q-.275-.275-.275-.7T9 13.6L17.6 5H15q-.425 0-.713-.288T14 4q0-.425.288-.713T15 3h5q.425 0 .713.288T21 4v5q0 .425-.288.713T20 10q-.425 0-.713-.288T19 9V6.4l-8.625 8.625q-.275.275-.675.275T9 15Z"},null,-1),we=[be];function ke(i,c){return s(),o("svg",ge,we)}const Ce={name:"material-symbols-open-in-new-rounded",render:ke},$e={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ee=a("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038T14 18.275q0-.25.163-.487t.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.187T16.25 7.8L16 7.55V9q0 .425-.288.713T15 10q-.425 0-.713-.288T14 9V5q0-.425.288-.713T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6h-1.75l.4.35q1.225 1.225 1.788 2.663T20 11.95q0 2.4-1.25 4.363t-3.375 2.937ZM5 20q-.425 0-.713-.288T4 19q0-.425.288-.713T5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.663T4 12.05q0-2.4 1.25-4.362T8.625 4.75q.525-.25.95.038t.425.937q0 .25-.163.488t-.412.362q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.188T7.75 16.2l.25.25V15q0-.425.288-.713T9 14q.425 0 .713.288T10 15v4q0 .425-.288.713T9 20H5Z"},null,-1),Fe=[Ee];function Ve(i,c){return s(),o("svg",$e,Fe)}const Me={name:"material-symbols-sync-rounded",render:Ve},h=i=>(me("data-v-5b41a86a"),i=i(),he(),i),Le={class:"container"},De={class:"title"},He={class:"subtitle v-center"},Be={key:1,class:"author"},xe=["onClick"],Ae=h(()=>a("md-ripple",null,null,-1)),Se={key:2,indeterminate:"",class:"spinner-sm"},Ie=["disabled","onClick"],Qe=h(()=>a("md-ripple",null,null,-1)),Ze=["href"],Ne={class:"icon-button"},Re=h(()=>a("md-ripple",null,null,-1)),Ge=["onClick"],Ue=h(()=>a("md-ripple",null,null,-1)),je=["innerHTML"],m="FEED_ENTRY",ze=Y({__name:"FeedEntryView",setup(i){const{t:c}=W(),Z=X(),w=_(Z.params.id),n=_(),v=_(""),T=_(),{app:N,urlTokenKey:R}=ee(te()),{render:k}=qe(N,R),{refetch:C}=S({handle:async(e,t)=>{t?Q(c(t),"error"):(n.value=e.feedEntry,v.value=await k(e.feedEntry.content||e.feedEntry.description))},document:de,variables:()=>({id:w.value}),appApi:!0});S({handle:(e,t)=>{t?Q(c(t),"error"):e&&(T.value=e.tags)},document:_e,variables:{type:m},appApi:!0});const G=()=>{window.print()};function U(){var e,t;ve(Te,{type:m,tags:T.value,item:{key:(e=n.value)==null?void 0:e.id,title:"",size:0},selected:(t=T.value)==null?void 0:t.filter(y=>{var l;return(l=n.value)==null?void 0:l.tags.some(f=>f.id===y.id)})})}const{mutate:j,loading:$,onDone:z}=ne({document:re,appApi:!0});z(async e=>{const t=e.data;n.value=t.syncFeedContent,v.value=await k(t.syncFeedContent.content||t.syncFeedContent.description)});const J=()=>{j({id:w.value})},E=e=>{e.type===m&&C()},F=e=>{e.type===m&&C()};return se(()=>{r.on("item_tags_updated",F),r.on("items_tags_updated",E)}),oe(()=>{r.off("item_tags_updated",F),r.off("items_tags_updated",E)}),(e,t)=>{var V,M,L,D,H,B,x;const y=ue,l=ye,f=Me,K=Ce,O=P,d=ae("tooltip");return s(),o("div",Le,[a("h2",De,q((V=n.value)==null?void 0:V.title),1),a("div",He,[(M=n.value)!=null&&M.publishedAt?(s(),ie(y,{key:0,class:"time",id:g(pe)((L=n.value)==null?void 0:L.publishedAt),raw:n.value},null,8,["id","raw"])):I("",!0),(D=n.value)!=null&&D.author?(s(),o("span",Be,q((H=n.value)==null?void 0:H.author),1)):I("",!0),(s(!0),o(ce,null,le((B=n.value)==null?void 0:B.tags,A=>(s(),o("span",{key:A.id,class:"badge"},q(A.name),1))),128)),u((s(),o("button",{class:"icon-button",onClick:b(U,["prevent"]),style:{"margin-inline-start":"8px"}},[Ae,p(l)],8,xe)),[[d,e.$t("add_to_tags")]]),g($)?(s(),o("md-circular-progress",Se)):u((s(),o("button",{key:3,class:"icon-button btn-icon",disabled:g($),onClick:b(J,["prevent"])},[Qe,p(f)],8,Ie)),[[d,e.$t("sync_content")]]),u((s(),o("a",{href:(x=n.value)==null?void 0:x.url,target:"_blank"},[a("button",Ne,[Re,p(K)])],8,Ze)),[[d,e.$t("view_original_article")]]),u((s(),o("button",{class:"icon-button",onClick:b(G,["prevent"])},[Ue,p(O)],8,Ge)),[[d,e.$t("print")]])]),a("div",{class:"md-container",innerHTML:v.value},null,8,je)])}}});const Pe=fe(ze,[["__scopeId","data-v-5b41a86a"]]);export{Pe as default}; diff --git a/app/src/main/resources/web/assets/FeedsRootView-c68c486e.js b/app/src/main/resources/web/assets/FeedsRootView-d5f30b79.js similarity index 95% rename from app/src/main/resources/web/assets/FeedsRootView-c68c486e.js rename to app/src/main/resources/web/assets/FeedsRootView-d5f30b79.js index fb014f08..f4986f8b 100644 --- a/app/src/main/resources/web/assets/FeedsRootView-c68c486e.js +++ b/app/src/main/resources/web/assets/FeedsRootView-d5f30b79.js @@ -1 +1 @@ -import{a as ae,_ as le}from"./TagFilter.vuevuetypescriptsetuptruelang-873baaa8.js";import{d as I,r as y,i as D,ca as ie,an as P,U,ao as V,o as C,c as g,a as t,t as i,m as N,v as j,j as e,n as H,ap as J,h as q,_ as de,cb as ce,u as re,e as ue,D as pe,E as _e,cc as fe,g as me,cd as ve,x as T,G as he,R as $e,p as w,H as L,ce as be,cf as ke,cg as Ce,F as G,J as S,l as B,I as z,bC as K,a2 as R,T as ge,C as E,W as ye,aI as Fe,ch as xe,ac as we}from"./index-b6c39163.js";import{g as O,M as Me}from"./splitpanes.es-f516e17d.js";import{u as W,a as Y}from"./vee-validate.esm-03fad591.js";import"./EditValueModal-f5302cb7.js";const Ae={slot:"headline"},Ve={slot:"content"},De={class:"form-row"},Le=["label","error","error-text"],Re={class:"form-row"},Ee={class:"form-check-label"},Ie=["checked"],Ne={slot:"actions"},qe=["disabled"],Qe=I({__name:"AddFeedModal",props:{done:{type:Function}},setup(M){const d=M,{handleSubmit:$}=W(),f=y(),c=y(!1);function b(o){c.value=o.target.checked}const{mutate:m,loading:F,onDone:k}=D({document:ie,appApi:!0}),{value:l,resetField:v,errorMessage:r}=Y("inputValue",P().required());v();function x(){V()}(async()=>{var o;await U(),(o=f.value)==null||o.focus()})();const p=$(()=>{m({url:l.value??"",fetchContent:c.value})});return k(()=>{var o;(o=d.done)==null||o.call(this),V()}),(o,n)=>(C(),g("md-dialog",null,[t("div",Ae,i(o.$t("add_subscription")),1),t("div",Ve,[t("div",De,[N(t("md-outlined-text-field",{ref_key:"inputRef",ref:f,label:o.$t("rss_url"),"onUpdate:modelValue":n[0]||(n[0]=u=>H(l)?l.value=u:null),onKeyup:n[1]||(n[1]=J((...u)=>e(p)&&e(p)(...u),["enter"])),error:e(r),"error-text":e(r)?o.$t(e(r)):""},null,40,Le),[[j,e(l)]])]),t("div",Re,[t("label",Ee,[t("md-checkbox",{"touch-target":"wrapper",onChange:b,checked:c.value},null,40,Ie),q(" "+i(o.$t("fetch_content_automatically")),1)])])]),t("div",Ne,[t("md-outlined-button",{value:"cancel",onClick:x},i(o.$t("cancel")),1),t("md-filled-button",{value:"save",disabled:e(F),onClick:n[2]||(n[2]=(...u)=>e(p)&&e(p)(...u)),autofocus:""},i(o.$t("save")),9,qe)])]))}});const Te=de(Qe,[["__scopeId","data-v-24d21569"]]),Ge={slot:"headline"},Se={slot:"content"},Be={class:"form-label"},ze={class:"form-row"},Ke=["label","error","error-text"],Oe={class:"form-row"},Pe={class:"form-check-label"},Ue=["checked"],je={slot:"actions"},He=["disabled"],Je=I({__name:"FeedModal",props:{data:{type:Object}},setup(M){var x,p;const d=M,{handleSubmit:$}=W(),f=y(),c=y(!1);function b(o){c.value=o.target.checked}const{mutate:m,loading:F,onDone:k}=D({document:ce,appApi:!0}),{value:l,errorMessage:v}=Y("inputValue",P().required());l.value=((x=d.data)==null?void 0:x.name)??"",c.value=((p=d.data)==null?void 0:p.fetchContent)??!1,(async()=>{var o;await U(),(o=f.value)==null||o.focus()})();const r=$(()=>{var o;m({id:(o=d.data)==null?void 0:o.id,name:l.value,fetchContent:c.value})});return k(()=>{V()}),(o,n)=>{var u;return C(),g("md-dialog",null,[t("div",Ge,i(o.$t("update_subscription")),1),t("div",Se,[t("div",Be,i((u=M.data)==null?void 0:u.url),1),t("div",ze,[N(t("md-outlined-text-field",{ref_key:"inputRef",ref:f,class:"form-control",label:o.$t("name"),error:e(v),"error-text":e(v)?o.$t(e(v)):"","onUpdate:modelValue":n[0]||(n[0]=_=>H(l)?l.value=_:null),onKeyup:n[1]||(n[1]=J((..._)=>e(r)&&e(r)(..._),["enter"]))},null,40,Ke),[[j,e(l)]])]),t("div",Oe,[t("label",Pe,[t("md-checkbox",{"touch-target":"wrapper",onChange:b,checked:c.value},null,40,Ue),q(" "+i(o.$t("fetch_content_automatically")),1)])])]),t("div",je,[t("md-outlined-button",{value:"cancel",onClick:n[2]||(n[2]=(..._)=>e(V)&&e(V)(..._))},i(o.$t("cancel")),1),t("md-filled-button",{value:"save",disabled:e(F),onClick:n[3]||(n[3]=(..._)=>e(r)&&e(r)(..._)),autofocus:""},i(o.$t("save")),9,He)])])}}}),We={class:"page-container"},Ye={class:"sidebar"},Xe={class:"nav-title"},Ze={style:{position:"relative"}},et=t("md-ripple",null,null,-1),tt=["open"],ot=["onClick"],nt={slot:"headline"},st={class:"nav"},at=["onClick"],lt=["onClick","onContextmenu"],it={class:"main"},_t=I({__name:"FeedsRootView",setup(M){const{t:d}=re(),$=ue(),f=y([]),c=[{text:"add_subscription",click:x},{text:"import_opml_file",click:_},{text:"export_opml_file",click:X}],b=y(!1),m=pe(),F=_e(m.query),k=fe(m.query),l=y(),{refetch:v}=me({handle:(s,a)=>{a?T(d(a),"error"):s&&(f.value=s.feeds)},document:be,appApi:!0});function r(s){const a=s.target.files;if(!a)return;const A=new FileReader;A.addEventListener("load",()=>{n({content:A.result})},!1),A.readAsText(a[0])}function x(){R(Te,{done:()=>{v()}})}const{mutate:p,onDone:o}=D({document:ke,appApi:!0});o(s=>{ve(s.data.exportFeeds,"application/xml","feeds.xml")});const{mutate:n,onDone:u}=D({document:Ce,appApi:!0});u(()=>{T(d("imported")),v()});function _(){l.value.value="",l.value.click()}function X(){p()}function Z(s){const a=ge([{name:"feed",op:"",value:K(s.name)}]);E($,`/feeds?q=${ye(a)}`)}function ee(s,a){s.preventDefault(),Fe({x:s.x,y:s.y,items:[{label:d("edit"),onClick:()=>{R(Je,{data:a})}},{label:d("delete"),onClick:()=>{R(we,{id:a.id,name:a.name,gql:xe,appApi:!0,typeName:"Feed",done:()=>{E($,"/feeds")}})}}]})}function te(){E($,"/feeds")}return(s,a)=>{const A=ae,oe=le,ne=he("router-view"),se=$e("tooltip");return C(),g("div",We,[w(e(Me),null,{default:L(()=>[w(e(O),{size:"20","min-size":"10"},{default:L(()=>[t("div",Ye,[t("h2",Xe,[q(i(s.$t("page_title.feeds"))+" ",1),t("div",Ze,[N((C(),g("button",{class:"icon-button",id:"add-feed-ref",onClick:a[0]||(a[0]=()=>b.value=!0)},[et,w(A)])),[[se,e(d)("add_subscription")]]),t("md-menu",{anchor:"add-feed-ref",positioning:"fixed","stay-open-on-focusout":"",quick:"",open:b.value,onClosed:a[1]||(a[1]=()=>b.value=!1)},[(C(),g(G,null,S(c,h=>t("md-menu-item",{onClick:h.click},[t("div",nt,i(s.$t(h.text)),1)],8,ot)),64))],40,tt)])]),t("ul",st,[t("li",{onClick:B(te,["prevent"]),class:z({active:e(m).path==="/feeds"&&!e(F)&&!e(k)})},i(s.$t("all")),11,at),(C(!0),g(G,null,S(f.value,h=>(C(),g("li",{onClick:B(Q=>Z(h),["stop","prevent"]),onContextmenu:Q=>ee(Q,h),class:z({active:e(m).params.feedId===h.id||e(k)&&e(K)(h.name)===e(k)})},i(h.name),43,lt))),256))]),w(oe,{type:"FEED_ENTRY",selected:e(F)},null,8,["selected"])])]),_:1}),w(e(O),null,{default:L(()=>[t("div",it,[w(ne)])]),_:1})]),_:1}),t("input",{ref_key:"fileInput",ref:l,style:{display:"none"},accept:".xml",type:"file",onChange:r},null,544)])}}});export{_t as default}; +import{a as ae,_ as le}from"./TagFilter.vuevuetypescriptsetuptruelang-2bcd90c5.js";import{d as I,r as y,i as D,ca as ie,an as P,U,ao as V,o as C,c as g,a as t,t as i,m as N,v as j,j as e,n as H,ap as J,h as q,_ as de,cb as ce,u as re,e as ue,D as pe,E as _e,cc as fe,g as me,cd as ve,x as T,G as he,R as $e,p as w,H as L,ce as be,cf as ke,cg as Ce,F as G,J as S,l as B,I as z,bC as K,a2 as R,T as ge,C as E,W as ye,aI as Fe,ch as xe,ac as we}from"./index-1dff6785.js";import{g as O,M as Me}from"./splitpanes.es-e9e41ca8.js";import{u as W,a as Y}from"./vee-validate.esm-b0b47415.js";import"./EditValueModal-1892701b.js";const Ae={slot:"headline"},Ve={slot:"content"},De={class:"form-row"},Le=["label","error","error-text"],Re={class:"form-row"},Ee={class:"form-check-label"},Ie=["checked"],Ne={slot:"actions"},qe=["disabled"],Qe=I({__name:"AddFeedModal",props:{done:{type:Function}},setup(M){const d=M,{handleSubmit:$}=W(),f=y(),c=y(!1);function b(o){c.value=o.target.checked}const{mutate:m,loading:F,onDone:k}=D({document:ie,appApi:!0}),{value:l,resetField:v,errorMessage:r}=Y("inputValue",P().required());v();function x(){V()}(async()=>{var o;await U(),(o=f.value)==null||o.focus()})();const p=$(()=>{m({url:l.value??"",fetchContent:c.value})});return k(()=>{var o;(o=d.done)==null||o.call(this),V()}),(o,n)=>(C(),g("md-dialog",null,[t("div",Ae,i(o.$t("add_subscription")),1),t("div",Ve,[t("div",De,[N(t("md-outlined-text-field",{ref_key:"inputRef",ref:f,label:o.$t("rss_url"),"onUpdate:modelValue":n[0]||(n[0]=u=>H(l)?l.value=u:null),onKeyup:n[1]||(n[1]=J((...u)=>e(p)&&e(p)(...u),["enter"])),error:e(r),"error-text":e(r)?o.$t(e(r)):""},null,40,Le),[[j,e(l)]])]),t("div",Re,[t("label",Ee,[t("md-checkbox",{"touch-target":"wrapper",onChange:b,checked:c.value},null,40,Ie),q(" "+i(o.$t("fetch_content_automatically")),1)])])]),t("div",Ne,[t("md-outlined-button",{value:"cancel",onClick:x},i(o.$t("cancel")),1),t("md-filled-button",{value:"save",disabled:e(F),onClick:n[2]||(n[2]=(...u)=>e(p)&&e(p)(...u)),autofocus:""},i(o.$t("save")),9,qe)])]))}});const Te=de(Qe,[["__scopeId","data-v-24d21569"]]),Ge={slot:"headline"},Se={slot:"content"},Be={class:"form-label"},ze={class:"form-row"},Ke=["label","error","error-text"],Oe={class:"form-row"},Pe={class:"form-check-label"},Ue=["checked"],je={slot:"actions"},He=["disabled"],Je=I({__name:"FeedModal",props:{data:{type:Object}},setup(M){var x,p;const d=M,{handleSubmit:$}=W(),f=y(),c=y(!1);function b(o){c.value=o.target.checked}const{mutate:m,loading:F,onDone:k}=D({document:ce,appApi:!0}),{value:l,errorMessage:v}=Y("inputValue",P().required());l.value=((x=d.data)==null?void 0:x.name)??"",c.value=((p=d.data)==null?void 0:p.fetchContent)??!1,(async()=>{var o;await U(),(o=f.value)==null||o.focus()})();const r=$(()=>{var o;m({id:(o=d.data)==null?void 0:o.id,name:l.value,fetchContent:c.value})});return k(()=>{V()}),(o,n)=>{var u;return C(),g("md-dialog",null,[t("div",Ge,i(o.$t("update_subscription")),1),t("div",Se,[t("div",Be,i((u=M.data)==null?void 0:u.url),1),t("div",ze,[N(t("md-outlined-text-field",{ref_key:"inputRef",ref:f,class:"form-control",label:o.$t("name"),error:e(v),"error-text":e(v)?o.$t(e(v)):"","onUpdate:modelValue":n[0]||(n[0]=_=>H(l)?l.value=_:null),onKeyup:n[1]||(n[1]=J((..._)=>e(r)&&e(r)(..._),["enter"]))},null,40,Ke),[[j,e(l)]])]),t("div",Oe,[t("label",Pe,[t("md-checkbox",{"touch-target":"wrapper",onChange:b,checked:c.value},null,40,Ue),q(" "+i(o.$t("fetch_content_automatically")),1)])])]),t("div",je,[t("md-outlined-button",{value:"cancel",onClick:n[2]||(n[2]=(..._)=>e(V)&&e(V)(..._))},i(o.$t("cancel")),1),t("md-filled-button",{value:"save",disabled:e(F),onClick:n[3]||(n[3]=(..._)=>e(r)&&e(r)(..._)),autofocus:""},i(o.$t("save")),9,He)])])}}}),We={class:"page-container"},Ye={class:"sidebar"},Xe={class:"nav-title"},Ze={style:{position:"relative"}},et=t("md-ripple",null,null,-1),tt=["open"],ot=["onClick"],nt={slot:"headline"},st={class:"nav"},at=["onClick"],lt=["onClick","onContextmenu"],it={class:"main"},_t=I({__name:"FeedsRootView",setup(M){const{t:d}=re(),$=ue(),f=y([]),c=[{text:"add_subscription",click:x},{text:"import_opml_file",click:_},{text:"export_opml_file",click:X}],b=y(!1),m=pe(),F=_e(m.query),k=fe(m.query),l=y(),{refetch:v}=me({handle:(s,a)=>{a?T(d(a),"error"):s&&(f.value=s.feeds)},document:be,appApi:!0});function r(s){const a=s.target.files;if(!a)return;const A=new FileReader;A.addEventListener("load",()=>{n({content:A.result})},!1),A.readAsText(a[0])}function x(){R(Te,{done:()=>{v()}})}const{mutate:p,onDone:o}=D({document:ke,appApi:!0});o(s=>{ve(s.data.exportFeeds,"application/xml","feeds.xml")});const{mutate:n,onDone:u}=D({document:Ce,appApi:!0});u(()=>{T(d("imported")),v()});function _(){l.value.value="",l.value.click()}function X(){p()}function Z(s){const a=ge([{name:"feed",op:"",value:K(s.name)}]);E($,`/feeds?q=${ye(a)}`)}function ee(s,a){s.preventDefault(),Fe({x:s.x,y:s.y,items:[{label:d("edit"),onClick:()=>{R(Je,{data:a})}},{label:d("delete"),onClick:()=>{R(we,{id:a.id,name:a.name,gql:xe,appApi:!0,typeName:"Feed",done:()=>{E($,"/feeds")}})}}]})}function te(){E($,"/feeds")}return(s,a)=>{const A=ae,oe=le,ne=he("router-view"),se=$e("tooltip");return C(),g("div",We,[w(e(Me),null,{default:L(()=>[w(e(O),{size:"20","min-size":"10"},{default:L(()=>[t("div",Ye,[t("h2",Xe,[q(i(s.$t("page_title.feeds"))+" ",1),t("div",Ze,[N((C(),g("button",{class:"icon-button",id:"add-feed-ref",onClick:a[0]||(a[0]=()=>b.value=!0)},[et,w(A)])),[[se,e(d)("add_subscription")]]),t("md-menu",{anchor:"add-feed-ref",positioning:"fixed","stay-open-on-focusout":"",quick:"",open:b.value,onClosed:a[1]||(a[1]=()=>b.value=!1)},[(C(),g(G,null,S(c,h=>t("md-menu-item",{onClick:h.click},[t("div",nt,i(s.$t(h.text)),1)],8,ot)),64))],40,tt)])]),t("ul",st,[t("li",{onClick:B(te,["prevent"]),class:z({active:e(m).path==="/feeds"&&!e(F)&&!e(k)})},i(s.$t("all")),11,at),(C(!0),g(G,null,S(f.value,h=>(C(),g("li",{onClick:B(Q=>Z(h),["stop","prevent"]),onContextmenu:Q=>ee(Q,h),class:z({active:e(m).params.feedId===h.id||e(k)&&e(K)(h.name)===e(k)})},i(h.name),43,lt))),256))]),w(oe,{type:"FEED_ENTRY",selected:e(F)},null,8,["selected"])])]),_:1}),w(e(O),null,{default:L(()=>[t("div",it,[w(ne)])]),_:1})]),_:1}),t("input",{ref_key:"fileInput",ref:l,style:{display:"none"},accept:".xml",type:"file",onChange:r},null,544)])}}});export{_t as default}; diff --git a/app/src/main/resources/web/assets/FeedsView-e4c7f92f.js b/app/src/main/resources/web/assets/FeedsView-7617097f.js similarity index 95% rename from app/src/main/resources/web/assets/FeedsView-e4c7f92f.js rename to app/src/main/resources/web/assets/FeedsView-7617097f.js index cefdc221..a707268b 100644 --- a/app/src/main/resources/web/assets/FeedsView-e4c7f92f.js +++ b/app/src/main/resources/web/assets/FeedsView-7617097f.js @@ -1,4 +1,4 @@ -import{c as ke,u as ye,_ as be,a as $e,b as Ce}from"./list-6c4ddffc.js";import{d as we,e as Te,r as _,u as Fe,K as Ee,L as Se,D as qe,M as Ae,N as Ve,g as De,w as Ie,O as Qe,P as f,Q as Ue,i as Le,R as Me,c as d,a as t,p as h,j as l,F as I,m as C,l as m,k as Q,t as c,H as Ne,J as X,S as Re,ci as Be,x as N,cj as Ge,ag as He,bC as ee,T as ze,U as je,ck as Ke,C as te,W as se,cl as Pe,o,v as Ye,I as Ze,ax as xe,Y as Je,h as Oe,Z as We,$ as Xe,a2 as le,ab as et,ac as tt,a3 as st,a0 as lt,a1 as at,aZ as nt,ad as ot,a4 as dt,a6 as it}from"./index-b6c39163.js";import{_ as ct}from"./Breadcrumb-fef16e9c.js";import{a as ut}from"./tags-3bd6efbc.js";import"./vee-validate.esm-03fad591.js";const rt={class:"v-toolbar"},pt=t("md-ripple",null,null,-1),_t=t("md-ripple",null,null,-1),ft=["disabled","onClick"],ht={class:"filters"},mt=["label"],gt={class:"form-label"},vt=["label","selected","onClick"],kt={class:"buttons"},yt=["onClick"],bt={class:"table-responsive"},$t={class:"table"},Ct=["checked","indeterminate"],wt=t("th",null,null,-1),Tt=t("th",null,null,-1),Ft=["onClick"],Et=["checked"],St=["src"],qt={style:{"min-width":"200px"}},At=["href","onClick"],Vt={class:"nowrap"},Dt={class:"action-btns"},It=["onClick"],Qt=t("md-ripple",null,null,-1),Ut=["onClick"],Lt=t("md-ripple",null,null,-1),Mt={class:"nowrap"},Nt={class:"nowrap"},Rt={key:0},Bt={colspan:"7"},Gt={class:"no-data-placeholder"},S=50,xt=we({__name:"FeedsView",setup(Ht){var O,W;const R=Te(),g=_([]),B=_(),{t:U}=Fe(),i=Ee({text:"",feeds:[],tags:[]}),r=Se.FEED_ENTRY,G=qe().query,q=_(parseInt(((O=G.page)==null?void 0:O.toString())??"1")),w=_([]),ae=_([]),v=_(Ae(((W=G.q)==null?void 0:W.toString())??"")),A=_(""),{addToTags:ne}=ut(r,g,w),{deleteItems:oe}=ke(Be,()=>{D(),M(),g.value.some(e=>e.tags.length)&&f.emit("refetch_tags",r)},g),V=_(!1),{allChecked:H,realAllChecked:L,selectRealAll:de,allCheckedAlertVisible:ie,clearSelection:D,toggleAllChecked:z,toggleItemChecked:j,toggleRow:ce,total:k,checked:K}=ye(g),{loading:ue,load:re,refetch:M}=Ve({handle:(e,a)=>{a?N(U(a),"error"):e&&(g.value=e.feedEntries.map(p=>({...p,checked:!1})),k.value=e.feedEntryCount)},document:Ge,variables:()=>({offset:(q.value-1)*S,limit:S,query:A.value}),appApi:!0});function pe(e){le(tt,{id:e.id,name:e.title,gql:et` +import{c as ke,u as ye,_ as be,a as $e,b as Ce}from"./list-0d76acfa.js";import{d as we,e as Te,r as _,u as Fe,K as Ee,L as Se,D as qe,M as Ae,N as Ve,g as De,w as Ie,O as Qe,P as f,Q as Ue,i as Le,R as Me,c as d,a as t,p as h,j as l,F as I,m as C,l as m,k as Q,t as c,H as Ne,J as X,S as Re,ci as Be,x as N,cj as Ge,ag as He,bC as ee,T as ze,U as je,ck as Ke,C as te,W as se,cl as Pe,o,v as Ye,I as Ze,ax as xe,Y as Je,h as Oe,Z as We,$ as Xe,a2 as le,ab as et,ac as tt,a3 as st,a0 as lt,a1 as at,aZ as nt,ad as ot,a4 as dt,a6 as it}from"./index-1dff6785.js";import{_ as ct}from"./Breadcrumb-cba2b95b.js";import{a as ut}from"./tags-ba1ad11a.js";import"./vee-validate.esm-b0b47415.js";const rt={class:"v-toolbar"},pt=t("md-ripple",null,null,-1),_t=t("md-ripple",null,null,-1),ft=["disabled","onClick"],ht={class:"filters"},mt=["label"],gt={class:"form-label"},vt=["label","selected","onClick"],kt={class:"buttons"},yt=["onClick"],bt={class:"table-responsive"},$t={class:"table"},Ct=["checked","indeterminate"],wt=t("th",null,null,-1),Tt=t("th",null,null,-1),Ft=["onClick"],Et=["checked"],St=["src"],qt={style:{"min-width":"200px"}},At=["href","onClick"],Vt={class:"nowrap"},Dt={class:"action-btns"},It=["onClick"],Qt=t("md-ripple",null,null,-1),Ut=["onClick"],Lt=t("md-ripple",null,null,-1),Mt={class:"nowrap"},Nt={class:"nowrap"},Rt={key:0},Bt={colspan:"7"},Gt={class:"no-data-placeholder"},S=50,xt=we({__name:"FeedsView",setup(Ht){var O,W;const R=Te(),g=_([]),B=_(),{t:U}=Fe(),i=Ee({text:"",feeds:[],tags:[]}),r=Se.FEED_ENTRY,G=qe().query,q=_(parseInt(((O=G.page)==null?void 0:O.toString())??"1")),w=_([]),ae=_([]),v=_(Ae(((W=G.q)==null?void 0:W.toString())??"")),A=_(""),{addToTags:ne}=ut(r,g,w),{deleteItems:oe}=ke(Be,()=>{D(),M(),g.value.some(e=>e.tags.length)&&f.emit("refetch_tags",r)},g),V=_(!1),{allChecked:H,realAllChecked:L,selectRealAll:de,allCheckedAlertVisible:ie,clearSelection:D,toggleAllChecked:z,toggleItemChecked:j,toggleRow:ce,total:k,checked:K}=ye(g),{loading:ue,load:re,refetch:M}=Ve({handle:(e,a)=>{a?N(U(a),"error"):e&&(g.value=e.feedEntries.map(p=>({...p,checked:!1})),k.value=e.feedEntryCount)},document:Ge,variables:()=>({offset:(q.value-1)*S,limit:S,query:A.value}),appApi:!0});function pe(e){le(tt,{id:e.id,name:e.title,gql:et` mutation deleteFeedEntry($query: String!) { deleteFeedEntries(query: $query) } diff --git a/app/src/main/resources/web/assets/FilesRecentView-1835eabc.js b/app/src/main/resources/web/assets/FilesRecentView-1ca09bb5.js similarity index 96% rename from app/src/main/resources/web/assets/FilesRecentView-1835eabc.js rename to app/src/main/resources/web/assets/FilesRecentView-1ca09bb5.js index f482d909..4a895b59 100644 --- a/app/src/main/resources/web/assets/FilesRecentView-1835eabc.js +++ b/app/src/main/resources/web/assets/FilesRecentView-1ca09bb5.js @@ -1 +1 @@ -import{d as K,u as W,r as b,f as X,s as q,br as P,i as Q,aC as Z,R as H,c as a,a as l,p as V,m as Y,l as F,k as i,h as m,t as d,j as o,F as w,J as ee,al as te,bh as se,o as n,I as oe,bi as ae,bj as ne,ax as le,Z as ce,z as ie,$ as de,A as re,B as ue,bl as _e,bn as R,ah as S,bo as g,aI as pe,am as he,bq as me,_ as ke}from"./index-b6c39163.js";import{_ as ve}from"./Breadcrumb-fef16e9c.js";const be=_=>(re("data-v-e2791d49"),_=_(),ue(),_),we={class:"v-toolbar"},ge={class:"right-actions"},ye=["onClick"],fe=be(()=>l("md-ripple",null,null,-1)),Ie={class:"form-check-label"},Ce=["checked"],De={class:"panel-container"},Te={key:0,class:"file-items"},Ve=["onClick","onDblclick","onContextmenu"],Fe=["checked"],Re=["src"],Se={class:"title"},Ee={style:{"font-size":"0.75rem"}},xe={key:1,class:"no-data-placeholder"},$e={key:0,class:"file-item-info"},Ae=K({__name:"FilesRecentView",setup(_){const{t:k}=W(),E=b([]),u=b(!1),y=X(),{app:f,urlTokenKey:p}=q(y),{loading:x,files:r}=P(p),{downloadFile:I,downloadDir:$,downloadFiles:A}=te(p),{view:C}=me(E,(e,t)=>{y.lightbox={sources:e,index:t,visible:!0}}),h=b(null),{mutate:N,onDone:B}=Q({document:se,appApi:!0});B(e=>{A(e.data.setTempValue.key),r.value.forEach(t=>{t.checked=!1})});const D=()=>{const e=[];return r.value.forEach(t=>{t.checked&&e.push({path:t.path})}),e};function z(e){u.value=e.target.checked}const M=()=>{N({key:_e(),value:JSON.stringify(D())})},L=Z(()=>D().length>0);function O(e){if(u.value){e.checked=!e.checked;return}h.value=e}function U(e){R(e.name)?window.open(S(p.value,e.path),"_blank"):g(e.name)?C(r.value,e):I(e.path)}function G(e,t){e.preventDefault();let c;t.isDir?c=[{label:k("download"),onClick:()=>{$(t.path)}}]:(c=[],(R(t.name)||g(t.name))&&c.push({label:k("open"),onClick:()=>{g(t.name)?C(r.value,t):window.open(S(p.value,t.path),"_blank")}}),c.push({label:k("download"),onClick:()=>{I(t.path)}})),pe({x:e.x,y:e.y,items:c})}return(e,t)=>{const c=ve,j=he,J=H("tooltip");return n(),a(w,null,[l("div",we,[V(c,{current:e.$t("recent_files")},null,8,["current"]),l("div",ge,[u.value&&L.value?Y((n(),a("button",{key:0,class:"icon-button",onClick:F(M,["stop"])},[fe,V(j)],8,ye)),[[J,e.$t("download")]]):i("",!0),l("label",Ie,[l("md-checkbox",{"touch-target":"wrapper",onChange:z,checked:u.value},null,40,Ce),m(d(e.$t("select_mode")),1)])])]),l("div",De,[o(f).permissions.includes("WRITE_EXTERNAL_STORAGE")?(n(),a("div",Te,[(n(!0),a(w,null,ee(o(r),s=>{var T;return n(),a("div",{key:s.path,class:oe(["file-item",{active:((T=h.value)==null?void 0:T.path)===s.path}]),onClick:v=>O(s),onDblclick:F(v=>U(s),["prevent"]),onContextmenu:v=>G(v,s)},[u.value?(n(),a("md-checkbox",{key:0,"touch-target":"wrapper",checked:s.checked},null,8,Fe)):i("",!0),o(ae)(s.name)||o(ne)(s.name)?(n(),a("img",{key:1,src:o(le)(s.fileId)+"&w=50&h=50",width:"50",height:"50"},null,8,Re)):i("",!0),l("div",Se,[m(d(s.name)+" ",1),l("div",Ee,[m(d(o(ce)(s.updatedAt)),1),s.isDir?i("",!0):(n(),a(w,{key:0},[m(", "+d(o(ie)(s.size)),1)],64))])])],42,Ve)}),128))])):i("",!0),o(r).length===0?(n(),a("div",xe,d(e.$t(o(de)(o(x),o(f).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):i("",!0)]),h.value?(n(),a("div",$e,d(e.$t("path"))+": "+d(h.value.path),1)):i("",!0)],64)}}});const ze=ke(Ae,[["__scopeId","data-v-e2791d49"]]);export{ze as default}; +import{d as K,u as W,r as b,f as X,s as q,br as P,i as Q,aC as Z,R as H,c as a,a as l,p as V,m as Y,l as F,k as i,h as m,t as d,j as o,F as w,J as ee,al as te,bh as se,o as n,I as oe,bi as ae,bj as ne,ax as le,Z as ce,z as ie,$ as de,A as re,B as ue,bl as _e,bn as R,ah as S,bo as g,aI as pe,am as he,bq as me,_ as ke}from"./index-1dff6785.js";import{_ as ve}from"./Breadcrumb-cba2b95b.js";const be=_=>(re("data-v-e2791d49"),_=_(),ue(),_),we={class:"v-toolbar"},ge={class:"right-actions"},ye=["onClick"],fe=be(()=>l("md-ripple",null,null,-1)),Ie={class:"form-check-label"},Ce=["checked"],De={class:"panel-container"},Te={key:0,class:"file-items"},Ve=["onClick","onDblclick","onContextmenu"],Fe=["checked"],Re=["src"],Se={class:"title"},Ee={style:{"font-size":"0.75rem"}},xe={key:1,class:"no-data-placeholder"},$e={key:0,class:"file-item-info"},Ae=K({__name:"FilesRecentView",setup(_){const{t:k}=W(),E=b([]),u=b(!1),y=X(),{app:f,urlTokenKey:p}=q(y),{loading:x,files:r}=P(p),{downloadFile:I,downloadDir:$,downloadFiles:A}=te(p),{view:C}=me(E,(e,t)=>{y.lightbox={sources:e,index:t,visible:!0}}),h=b(null),{mutate:N,onDone:B}=Q({document:se,appApi:!0});B(e=>{A(e.data.setTempValue.key),r.value.forEach(t=>{t.checked=!1})});const D=()=>{const e=[];return r.value.forEach(t=>{t.checked&&e.push({path:t.path})}),e};function z(e){u.value=e.target.checked}const M=()=>{N({key:_e(),value:JSON.stringify(D())})},L=Z(()=>D().length>0);function O(e){if(u.value){e.checked=!e.checked;return}h.value=e}function U(e){R(e.name)?window.open(S(p.value,e.path),"_blank"):g(e.name)?C(r.value,e):I(e.path)}function G(e,t){e.preventDefault();let c;t.isDir?c=[{label:k("download"),onClick:()=>{$(t.path)}}]:(c=[],(R(t.name)||g(t.name))&&c.push({label:k("open"),onClick:()=>{g(t.name)?C(r.value,t):window.open(S(p.value,t.path),"_blank")}}),c.push({label:k("download"),onClick:()=>{I(t.path)}})),pe({x:e.x,y:e.y,items:c})}return(e,t)=>{const c=ve,j=he,J=H("tooltip");return n(),a(w,null,[l("div",we,[V(c,{current:e.$t("recent_files")},null,8,["current"]),l("div",ge,[u.value&&L.value?Y((n(),a("button",{key:0,class:"icon-button",onClick:F(M,["stop"])},[fe,V(j)],8,ye)),[[J,e.$t("download")]]):i("",!0),l("label",Ie,[l("md-checkbox",{"touch-target":"wrapper",onChange:z,checked:u.value},null,40,Ce),m(d(e.$t("select_mode")),1)])])]),l("div",De,[o(f).permissions.includes("WRITE_EXTERNAL_STORAGE")?(n(),a("div",Te,[(n(!0),a(w,null,ee(o(r),s=>{var T;return n(),a("div",{key:s.path,class:oe(["file-item",{active:((T=h.value)==null?void 0:T.path)===s.path}]),onClick:v=>O(s),onDblclick:F(v=>U(s),["prevent"]),onContextmenu:v=>G(v,s)},[u.value?(n(),a("md-checkbox",{key:0,"touch-target":"wrapper",checked:s.checked},null,8,Fe)):i("",!0),o(ae)(s.name)||o(ne)(s.name)?(n(),a("img",{key:1,src:o(le)(s.fileId)+"&w=50&h=50",width:"50",height:"50"},null,8,Re)):i("",!0),l("div",Se,[m(d(s.name)+" ",1),l("div",Ee,[m(d(o(ce)(s.updatedAt)),1),s.isDir?i("",!0):(n(),a(w,{key:0},[m(", "+d(o(ie)(s.size)),1)],64))])])],42,Ve)}),128))])):i("",!0),o(r).length===0?(n(),a("div",xe,d(e.$t(o(de)(o(x),o(f).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):i("",!0)]),h.value?(n(),a("div",$e,d(e.$t("path"))+": "+d(h.value.path),1)):i("",!0)],64)}}});const ze=ke(Ae,[["__scopeId","data-v-e2791d49"]]);export{ze as default}; diff --git a/app/src/main/resources/web/assets/FilesRootView-6d10cd7d.js b/app/src/main/resources/web/assets/FilesRootView-bcef819e.js similarity index 91% rename from app/src/main/resources/web/assets/FilesRootView-6d10cd7d.js rename to app/src/main/resources/web/assets/FilesRootView-bcef819e.js index 03be460f..ee291776 100644 --- a/app/src/main/resources/web/assets/FilesRootView-6d10cd7d.js +++ b/app/src/main/resources/web/assets/FilesRootView-bcef819e.js @@ -1 +1 @@ -import{d as y,D as b,e as w,s as B,f as S,G as V,c as l,p as c,H as m,j as e,o as p,a as t,t as n,l as o,I as i,k as z,F as D,J as F,C as $}from"./index-b6c39163.js";import{g as k,M}from"./splitpanes.es-f516e17d.js";const N={class:"page-container"},P={class:"sidebar"},R={class:"nav-title"},T={class:"nav"},j=["onClick"],E=["onClick"],G={class:"main"},q=y({__name:"FilesRootView",setup(H){const d=b(),f=w(),{app:C}=B(S()),u=d.params.type;function r(s){$(f,`/files/${s}`)}function h(){$(f,"/files")}return(s,a)=>{const g=V("router-view");return p(),l("div",N,[c(e(M),null,{default:m(()=>[c(e(k),{size:"20","min-size":"10"},{default:m(()=>[t("div",P,[t("h2",R,n(s.$t("page_title.files")),1),t("ul",T,[t("li",{onClick:a[0]||(a[0]=o(v=>r("recent"),["prevent"])),class:i({active:e(d).path==="/files/recent"})},n(s.$t("recents")),3),t("li",{onClick:o(h,["prevent"]),class:i({active:e(d).path==="/files"})},n(s.$t("internal_storage")),11,j),e(C).sdcardPath?(p(),l("li",{key:0,onClick:a[1]||(a[1]=o(v=>r("sdcard"),["prevent"])),class:i({active:e(u)==="sdcard"})},n(s.$t("sdcard")),3)):z("",!0),(p(!0),l(D,null,F(e(C).usbDiskPaths,(v,_)=>(p(),l("li",{onClick:o(I=>r(`usb${_+1}`),["prevent"]),class:i({active:e(u)===`usb${_+1}`})},n(s.$t("usb_storage")+" "+(_+1)),11,E))),256)),t("li",{onClick:a[2]||(a[2]=o(v=>r("app"),["prevent"])),class:i({active:e(u)==="app"})},n(s.$t("app_name")),3)])])]),_:1}),c(e(k),null,{default:m(()=>[t("div",G,[c(g)])]),_:1})]),_:1})])}}});export{q as default}; +import{d as y,D as b,e as w,s as B,f as S,G as V,c as l,p as c,H as m,j as e,o as p,a as t,t as n,l as o,I as i,k as z,F as D,J as F,C as $}from"./index-1dff6785.js";import{g as k,M}from"./splitpanes.es-e9e41ca8.js";const N={class:"page-container"},P={class:"sidebar"},R={class:"nav-title"},T={class:"nav"},j=["onClick"],E=["onClick"],G={class:"main"},q=y({__name:"FilesRootView",setup(H){const d=b(),f=w(),{app:C}=B(S()),u=d.params.type;function r(s){$(f,`/files/${s}`)}function h(){$(f,"/files")}return(s,a)=>{const g=V("router-view");return p(),l("div",N,[c(e(M),null,{default:m(()=>[c(e(k),{size:"20","min-size":"10"},{default:m(()=>[t("div",P,[t("h2",R,n(s.$t("page_title.files")),1),t("ul",T,[t("li",{onClick:a[0]||(a[0]=o(v=>r("recent"),["prevent"])),class:i({active:e(d).path==="/files/recent"})},n(s.$t("recents")),3),t("li",{onClick:o(h,["prevent"]),class:i({active:e(d).path==="/files"})},n(s.$t("internal_storage")),11,j),e(C).sdcardPath?(p(),l("li",{key:0,onClick:a[1]||(a[1]=o(v=>r("sdcard"),["prevent"])),class:i({active:e(u)==="sdcard"})},n(s.$t("sdcard")),3)):z("",!0),(p(!0),l(D,null,F(e(C).usbDiskPaths,(v,_)=>(p(),l("li",{onClick:o(I=>r(`usb${_+1}`),["prevent"]),class:i({active:e(u)===`usb${_+1}`})},n(s.$t("usb_storage")+" "+(_+1)),11,E))),256)),t("li",{onClick:a[2]||(a[2]=o(v=>r("app"),["prevent"])),class:i({active:e(u)==="app"})},n(s.$t("app_name")),3)])])]),_:1}),c(e(k),null,{default:m(()=>[t("div",G,[c(g)])]),_:1})]),_:1})])}}});export{q as default}; diff --git a/app/src/main/resources/web/assets/FilesView-a6d45fbd.js b/app/src/main/resources/web/assets/FilesView-66532308.js similarity index 96% rename from app/src/main/resources/web/assets/FilesView-a6d45fbd.js rename to app/src/main/resources/web/assets/FilesView-66532308.js index 18a996cd..375dbf34 100644 --- a/app/src/main/resources/web/assets/FilesView-a6d45fbd.js +++ b/app/src/main/resources/web/assets/FilesView-66532308.js @@ -1 +1 @@ -import{o as a,c,a as i,d as dt,u as _t,r as V,D as pt,M as mt,ag as ht,e as ft,s as ve,f as bt,bb as vt,bc as kt,bd as gt,be as yt,bf as Ct,bg as Tt,ae as ke,i as qt,aC as wt,w as Dt,O as $t,P as H,Q as It,R as St,p as m,F as v,m as C,l as F,k as h,h as T,t as p,j as n,H as M,al as Vt,bh as Ft,at as Mt,J,S as K,I as Bt,bi as xt,bj as Et,ax as Pt,Z as Zt,z as k,$ as Ht,A as Lt,B as Rt,aG as Ut,bk as Wt,bl as zt,a2 as L,bm as ge,bn as ye,ah as Ce,bo as X,aI as Te,ad as Nt,am as At,bp as Ot,bq as Gt,_ as Qt}from"./index-b6c39163.js";import{_ as jt}from"./sort-rounded-4981fcb6.js";import{_ as Jt}from"./refresh-rounded-d1837882.js";import{_ as Kt}from"./Breadcrumb-fef16e9c.js";import{g as qe,M as Xt}from"./splitpanes.es-f516e17d.js";import{E as we}from"./EditValueModal-f5302cb7.js";import"./vee-validate.esm-03fad591.js";const Yt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},eo=i("path",{fill:"currentColor",d:"M19.6 21.6L12 14l-2.35 2.35q.2.375.275.8T10 18q0 1.65-1.175 2.825T6 22q-1.65 0-2.825-1.175T2 18q0-1.65 1.175-2.825T6 14q.425 0 .85.075t.8.275L10 12L7.65 9.65q-.375.2-.8.275T6 10q-1.65 0-2.825-1.175T2 6q0-1.65 1.175-2.825T6 2q1.65 0 2.825 1.175T10 6q0 .425-.075.85t-.275.8L21.6 19.6q.425.425.425 1t-.425 1q-.425.425-1 .425t-1-.425ZM15 11l-2-2l6.6-6.6q.425-.425 1-.425t1 .425q.425.425.425 1t-.425 1L15 11ZM6 8q.825 0 1.413-.588T8 6q0-.825-.588-1.413T6 4q-.825 0-1.413.588T4 6q0 .825.588 1.413T6 8Zm6 4.5q.225 0 .363-.138T12.5 12q0-.225-.138-.363T12 11.5q-.225 0-.363.138T11.5 12q0 .225.138.363T12 12.5ZM6 20q.825 0 1.413-.588T8 18q0-.825-.588-1.413T6 16q-.825 0-1.413.588T4 18q0 .825.588 1.413T6 20Z"},null,-1),to=[eo];function oo(g,s){return a(),c("svg",Yt,to)}const so={name:"material-symbols-content-cut-rounded",render:oo},no={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},lo=i("path",{fill:"currentColor",d:"M9 18q-.825 0-1.413-.588T7 16V4q0-.825.588-1.413T9 2h9q.825 0 1.413.588T20 4v12q0 .825-.588 1.413T18 18H9Zm0-2h9V4H9v12Zm-4 6q-.825 0-1.413-.588T3 20V7q0-.425.288-.713T4 6q.425 0 .713.288T5 7v13h10q.425 0 .713.288T16 21q0 .425-.288.713T15 22H5ZM9 4v12V4Z"},null,-1),ao=[lo];function io(g,s){return a(),c("svg",no,ao)}const co={name:"material-symbols-content-copy-outline-rounded",render:io},q=g=>(Lt("data-v-1bb14a91"),g=g(),Rt(),g),ro={class:"v-toolbar"},uo={class:"right-actions"},_o=q(()=>i("md-ripple",null,null,-1)),po=q(()=>i("md-ripple",null,null,-1)),mo=["onClick"],ho=q(()=>i("md-ripple",null,null,-1)),fo=["onClick"],bo=q(()=>i("md-ripple",null,null,-1)),vo={class:"form-check"},ko={class:"form-check-label"},go=["checked"],yo={class:"form-check"},Co={class:"form-check-label"},To=["checked"],qo=q(()=>i("md-ripple",null,null,-1)),wo={class:"icon-button btn-sort"},Do=q(()=>i("md-ripple",null,null,-1)),$o={class:"menu-items"},Io=["onClick","selected"],So={slot:"headline"},Vo={class:"file-items"},Fo=["onClick","onDblclick","onContextmenu"],Mo=["checked"],Bo=["src"],xo={class:"title"},Eo={style:{"font-size":"0.75rem"}},Po=["onContextmenu"],Zo={key:0,class:"no-files"},Ho={key:0,class:"file-item-info"},Lo=dt({__name:"FilesView",setup(g){var me,he,fe,be;const{t:s}=_t(),De=V([]),Y=pt(),$e=Y.query,d=Y.params.type,ee=V(mt(((me=$e.q)==null?void 0:me.toString())??"")),R=ht(ee.value),b=V(((he=R.find(e=>e.name==="path"))==null?void 0:he.value)??"");let B=((fe=R.find(e=>e.name==="dir"))==null?void 0:fe.value)??"";B||(((be=R.find(t=>t.name==="isDir"))==null?void 0:be.value)==="1"?B=b.value:B=b.value.substring(0,b.value.lastIndexOf("/")));const Ie=V(B),Se=Ut(),w=V(!1),te=ft(),{fileShowHidden:D,fileSortBy:U}=ve(te),oe=bt(),{app:$,urlTokenKey:I,selectedFiles:Ve}=ve(oe);let x=$.value.internalStoragePath;d&&(d==="sdcard"?x=$.value.sdcardPath:d.startsWith("usb")?x=$.value.usbDiskPaths[parseInt(d.substring(3))-1]:d==="app"&&(x=$.value.externalFilesDir));const{loading:Fe,panels:_,currentDir:E,refetch:W}=vt(I,x,Ie.value,U),{createPath:Me,createVariables:Be,createMutation:xe}=kt(I,_),{renameValue:Ee,renamePath:Pe,renameDone:Ze,renameMutation:He,renameVariables:Le}=gt(_),{internal:se,sdcard:ne,usb:Re,refetch:z}=yt(),{onDeleted:N}=Wt(_,E,z),{downloadFile:le,downloadDir:Ue,downloadFiles:We}=Vt(I),{view:A}=Gt(De,(e,t)=>{oe.lightbox={sources:e,index:t,visible:!0}}),{selectedItem:P,select:ze}=Ct(E,d,ee,te),{canPaste:ae,copy:O,cut:ie,paste:G}=Tt(Ve,W,z),{input:Ne,upload:ce,uploadChanged:re}=ke(),{input:Ae,upload:ue,uploadChanged:de}=ke(),{mutate:Oe,onDone:Ge}=qt({document:Ft,appApi:!0});Ge(e=>{We(e.data.setTempValue.key),_.value.forEach(t=>{t.items.forEach(o=>{o.checked=!1})})});const S=()=>{const e=[];return _.value.forEach(t=>{t.items.forEach(o=>{o.checked&&(o.panel=t,e.push(o))})}),e};function Qe(e){w.value=e.target.checked}function je(e){D.value=e.target.checked}const Je=()=>{Oe({key:zt(),value:JSON.stringify(S().map(e=>({path:e.path})))})},Ke=wt(()=>S().length>0),Xe=()=>{L(ge,{files:S(),onDone:N})};b.value&&Dt(()=>_.value.length,()=>{if(_.value.length>0&&b.value){const t=_.value[_.value.length-1].items.find(o=>o.path===b.value);t&&(P.value=t,b.value="")}});function Ye(){var e,t,o,r;if(d){if(d==="sdcard")return`${s("sdcard")} (${s("storage_free_total",{free:k(((e=ne.value)==null?void 0:e.freeBytes)??0),total:k(((t=ne.value)==null?void 0:t.totalBytes)??0)})})`;if(d==="app")return s("app_name");if(d.startsWith("usb")){const Z=parseInt(d.substring(3)),f=Re.value[Z-1];return`${s("usb_storage")} ${Z} (${s("storage_free_total",{free:k((f==null?void 0:f.freeBytes)??0),total:k((f==null?void 0:f.totalBytes)??0)})})`}}return`${s("page_title.files")} (${s("storage_free_total",{free:k(((o=se.value)==null?void 0:o.freeBytes)??0),total:k(((r=se.value)==null?void 0:r.totalBytes)??0)})})`}function et(e,t){if(w.value){t.checked=!t.checked;return}ze(e,t)}function tt(e,t){U.value=t,e.close()}function ot(){W(E.value)}function st(e,t){t.isDir||(ye(t.name)?window.open(Ce(I.value,t.path),"_blank"):X(t.name)?A(D?e.items:e.items.filter(o=>!o.name.startsWith(".")),t):le(t.path))}function nt(e,t){e.preventDefault();const o=[{label:s("create_folder"),onClick:()=>{Me.value=t,L(we,{title:s("name"),placeholder:s("name"),mutation:xe,getVariables:Be})}},{label:s("upload_files"),onClick:()=>{ce(t)}},{label:s("upload_folder"),onClick:()=>{ue(t)}}];ae()&&o.push({label:s("paste"),onClick:()=>{G(t)}}),Te({x:e.x,y:e.y,items:o})}function lt(e,t,o){e.preventDefault();let r;o.isDir?r=[{label:s("upload_files"),onClick:()=>{ce(o.path)}},{label:s("upload_folder"),onClick:()=>{ue(o.path)}},{label:s("download"),onClick:()=>{Ue(o.path)}}]:(r=[],(ye(o.name)||X(o.name))&&r.push({label:s("open"),onClick:()=>{X(o.name)?A(t.items,o):window.open(Ce(I.value,o.path),"_blank")}}),r.push({label:s("download"),onClick:()=>{le(o.path)}})),r.push({label:s("duplicate"),onClick:()=>{O([o]),G(t.dir)}}),r.push({label:s("cut"),onClick:()=>{o.panel=t,ie([o])}}),r.push({label:s("copy"),onClick:()=>{O([o])}}),o.isDir&&ae()&&r.push({label:s("paste"),onClick:()=>{G(o.path)}}),r=[...r,{label:s("rename"),onClick:()=>{Ee.value=o.name,Pe.value=o.path,L(we,{title:s("rename"),placeholder:s("name"),value:o.name,mutation:He,getVariables:Le,done:Ze})}},{label:s("delete"),onClick:()=>{L(ge,{files:[o],onDone:N})}}],Te({x:e.x,y:e.y,items:r})}const _e=e=>{e.status==="done"&&setTimeout(()=>{W(e.dir),z()},1e3)},pe=e=>{N([e.item])};return $t(()=>{H.on("upload_task_done",_e),H.on("file_deleted",pe)}),It(()=>{H.off("upload_task_done",_e),H.off("file_deleted",pe)}),(e,t)=>{const o=Kt,r=co,Z=so,f=Nt,at=At,it=Jt,ct=jt,rt=Mt,ut=Ot,y=St("tooltip");return a(),c(v,null,[i("div",ro,[m(o,{current:Ye}),i("div",uo,[w.value&&Ke.value?(a(),c(v,{key:0},[C((a(),c("button",{class:"icon-button",onClick:t[0]||(t[0]=F(()=>n(O)(S()),["stop"]))},[_o,m(r)])),[[y,e.$t("copy")]]),C((a(),c("button",{class:"icon-button",onClick:t[1]||(t[1]=F(()=>n(ie)(S()),["stop"]))},[po,m(Z)])),[[y,e.$t("cut")]]),C((a(),c("button",{class:"icon-button",onClick:F(Xe,["stop"])},[ho,m(f)],8,mo)),[[y,e.$t("delete")]]),C((a(),c("button",{class:"icon-button",onClick:F(Je,["stop"])},[bo,m(at)],8,fo)),[[y,e.$t("download")]])],64)):h("",!0),i("div",vo,[i("label",ko,[i("md-checkbox",{"touch-target":"wrapper",onChange:Qe,checked:w.value},null,40,go),T(" "+p(e.$t("select_mode")),1)])]),i("div",yo,[i("label",Co,[i("md-checkbox",{"touch-target":"wrapper",onChange:je,checked:n(D)},null,40,To),T(p(e.$t("show_hidden")),1)])]),C((a(),c("button",{class:"icon-button btn-refresh",onClick:ot},[qo,m(it)])),[[y,e.$t("refresh")]]),m(rt,null,{content:M(u=>[i("div",$o,[(a(!0),c(v,null,J(n(Se),l=>(a(),c("md-menu-item",{onClick:Q=>tt(u,l.value),selected:l.value===n(U)},[i("div",So,p(e.$t(l.label)),1)],8,Io))),256))])]),default:M(()=>[C((a(),c("button",wo,[Do,m(ct)])),[[y,e.$t("sort")]])]),_:1})])]),m(n(Xt),{class:"panel-container"},{default:M(()=>[(a(!0),c(v,null,J(n(_),u=>(a(),K(n(qe),{key:u.dir},{default:M(()=>[i("div",Vo,[(a(!0),c(v,null,J(u.items,l=>{var Q;return a(),c(v,{key:l.path},[!l.name.startsWith(".")||n(D)?(a(),c("div",{key:0,class:Bt(["file-item",{active:(n(E)+"/").startsWith(l.path+"/")||((Q=n(P))==null?void 0:Q.path)===l.path}]),onClick:j=>et(u,l),onDblclick:F(j=>st(u,l),["prevent"]),onContextmenu:j=>lt(j,u,l)},[w.value?(a(),c("md-checkbox",{key:0,"touch-target":"wrapper",checked:l.checked},null,8,Mo)):h("",!0),l.isDir?(a(),K(ut,{key:1})):h("",!0),n(xt)(l.name)||n(Et)(l.name)?(a(),c("img",{key:2,src:n(Pt)(l.fileId)+"&w=50&h=50",width:"50",height:"50"},null,8,Bo)):h("",!0),i("div",xo,[T(p(l.name)+" ",1),i("div",Eo,[T(p(n(Zt)(l.updatedAt)),1),l.isDir?h("",!0):(a(),c(v,{key:0},[T(", "+p(n(k)(l.size)),1)],64))])])],42,Fo)):h("",!0)],64)}),128)),i("div",{class:"empty",onContextmenu:l=>nt(l,u.dir)},[u.items.filter(l=>!l.name.startsWith(".")||n(D)).length===0?(a(),c("div",Zo,p(e.$t("no_files")),1)):h("",!0)],40,Po)])]),_:2},1024))),128)),n(_).length===0?(a(),K(n(qe),{key:0,class:"no-data-placeholder"},{default:M(()=>[T(p(e.$t(n(Ht)(n(Fe),n($).permissions,"WRITE_EXTERNAL_STORAGE"))),1)]),_:1})):h("",!0)]),_:1}),n(P)?(a(),c("div",Ho,p(e.$t("path"))+": "+p(n(P).path),1)):h("",!0),i("input",{ref_key:"fileInput",ref:Ne,style:{display:"none"},type:"file",multiple:"",onChange:t[2]||(t[2]=(...u)=>n(re)&&n(re)(...u))},null,544),i("input",{ref_key:"dirFileInput",ref:Ae,style:{display:"none"},type:"file",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:t[3]||(t[3]=(...u)=>n(de)&&n(de)(...u))},null,544)],64)}}});const Go=Qt(Lo,[["__scopeId","data-v-1bb14a91"]]);export{Go as default}; +import{o as a,c,a as i,d as dt,u as _t,r as V,D as pt,M as mt,ag as ht,e as ft,s as ve,f as bt,bb as vt,bc as kt,bd as gt,be as yt,bf as Ct,bg as Tt,ae as ke,i as qt,aC as wt,w as Dt,O as $t,P as H,Q as It,R as St,p as m,F as v,m as C,l as F,k as h,h as T,t as p,j as n,H as M,al as Vt,bh as Ft,at as Mt,J,S as K,I as Bt,bi as xt,bj as Et,ax as Pt,Z as Zt,z as k,$ as Ht,A as Lt,B as Rt,aG as Ut,bk as Wt,bl as zt,a2 as L,bm as ge,bn as ye,ah as Ce,bo as X,aI as Te,ad as Nt,am as At,bp as Ot,bq as Gt,_ as Qt}from"./index-1dff6785.js";import{_ as jt}from"./sort-rounded-b8d8e47a.js";import{_ as Jt}from"./refresh-rounded-e92a6833.js";import{_ as Kt}from"./Breadcrumb-cba2b95b.js";import{g as qe,M as Xt}from"./splitpanes.es-e9e41ca8.js";import{E as we}from"./EditValueModal-1892701b.js";import"./vee-validate.esm-b0b47415.js";const Yt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},eo=i("path",{fill:"currentColor",d:"M19.6 21.6L12 14l-2.35 2.35q.2.375.275.8T10 18q0 1.65-1.175 2.825T6 22q-1.65 0-2.825-1.175T2 18q0-1.65 1.175-2.825T6 14q.425 0 .85.075t.8.275L10 12L7.65 9.65q-.375.2-.8.275T6 10q-1.65 0-2.825-1.175T2 6q0-1.65 1.175-2.825T6 2q1.65 0 2.825 1.175T10 6q0 .425-.075.85t-.275.8L21.6 19.6q.425.425.425 1t-.425 1q-.425.425-1 .425t-1-.425ZM15 11l-2-2l6.6-6.6q.425-.425 1-.425t1 .425q.425.425.425 1t-.425 1L15 11ZM6 8q.825 0 1.413-.588T8 6q0-.825-.588-1.413T6 4q-.825 0-1.413.588T4 6q0 .825.588 1.413T6 8Zm6 4.5q.225 0 .363-.138T12.5 12q0-.225-.138-.363T12 11.5q-.225 0-.363.138T11.5 12q0 .225.138.363T12 12.5ZM6 20q.825 0 1.413-.588T8 18q0-.825-.588-1.413T6 16q-.825 0-1.413.588T4 18q0 .825.588 1.413T6 20Z"},null,-1),to=[eo];function oo(g,s){return a(),c("svg",Yt,to)}const so={name:"material-symbols-content-cut-rounded",render:oo},no={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},lo=i("path",{fill:"currentColor",d:"M9 18q-.825 0-1.413-.588T7 16V4q0-.825.588-1.413T9 2h9q.825 0 1.413.588T20 4v12q0 .825-.588 1.413T18 18H9Zm0-2h9V4H9v12Zm-4 6q-.825 0-1.413-.588T3 20V7q0-.425.288-.713T4 6q.425 0 .713.288T5 7v13h10q.425 0 .713.288T16 21q0 .425-.288.713T15 22H5ZM9 4v12V4Z"},null,-1),ao=[lo];function io(g,s){return a(),c("svg",no,ao)}const co={name:"material-symbols-content-copy-outline-rounded",render:io},q=g=>(Lt("data-v-1bb14a91"),g=g(),Rt(),g),ro={class:"v-toolbar"},uo={class:"right-actions"},_o=q(()=>i("md-ripple",null,null,-1)),po=q(()=>i("md-ripple",null,null,-1)),mo=["onClick"],ho=q(()=>i("md-ripple",null,null,-1)),fo=["onClick"],bo=q(()=>i("md-ripple",null,null,-1)),vo={class:"form-check"},ko={class:"form-check-label"},go=["checked"],yo={class:"form-check"},Co={class:"form-check-label"},To=["checked"],qo=q(()=>i("md-ripple",null,null,-1)),wo={class:"icon-button btn-sort"},Do=q(()=>i("md-ripple",null,null,-1)),$o={class:"menu-items"},Io=["onClick","selected"],So={slot:"headline"},Vo={class:"file-items"},Fo=["onClick","onDblclick","onContextmenu"],Mo=["checked"],Bo=["src"],xo={class:"title"},Eo={style:{"font-size":"0.75rem"}},Po=["onContextmenu"],Zo={key:0,class:"no-files"},Ho={key:0,class:"file-item-info"},Lo=dt({__name:"FilesView",setup(g){var me,he,fe,be;const{t:s}=_t(),De=V([]),Y=pt(),$e=Y.query,d=Y.params.type,ee=V(mt(((me=$e.q)==null?void 0:me.toString())??"")),R=ht(ee.value),b=V(((he=R.find(e=>e.name==="path"))==null?void 0:he.value)??"");let B=((fe=R.find(e=>e.name==="dir"))==null?void 0:fe.value)??"";B||(((be=R.find(t=>t.name==="isDir"))==null?void 0:be.value)==="1"?B=b.value:B=b.value.substring(0,b.value.lastIndexOf("/")));const Ie=V(B),Se=Ut(),w=V(!1),te=ft(),{fileShowHidden:D,fileSortBy:U}=ve(te),oe=bt(),{app:$,urlTokenKey:I,selectedFiles:Ve}=ve(oe);let x=$.value.internalStoragePath;d&&(d==="sdcard"?x=$.value.sdcardPath:d.startsWith("usb")?x=$.value.usbDiskPaths[parseInt(d.substring(3))-1]:d==="app"&&(x=$.value.externalFilesDir));const{loading:Fe,panels:_,currentDir:E,refetch:W}=vt(I,x,Ie.value,U),{createPath:Me,createVariables:Be,createMutation:xe}=kt(I,_),{renameValue:Ee,renamePath:Pe,renameDone:Ze,renameMutation:He,renameVariables:Le}=gt(_),{internal:se,sdcard:ne,usb:Re,refetch:z}=yt(),{onDeleted:N}=Wt(_,E,z),{downloadFile:le,downloadDir:Ue,downloadFiles:We}=Vt(I),{view:A}=Gt(De,(e,t)=>{oe.lightbox={sources:e,index:t,visible:!0}}),{selectedItem:P,select:ze}=Ct(E,d,ee,te),{canPaste:ae,copy:O,cut:ie,paste:G}=Tt(Ve,W,z),{input:Ne,upload:ce,uploadChanged:re}=ke(),{input:Ae,upload:ue,uploadChanged:de}=ke(),{mutate:Oe,onDone:Ge}=qt({document:Ft,appApi:!0});Ge(e=>{We(e.data.setTempValue.key),_.value.forEach(t=>{t.items.forEach(o=>{o.checked=!1})})});const S=()=>{const e=[];return _.value.forEach(t=>{t.items.forEach(o=>{o.checked&&(o.panel=t,e.push(o))})}),e};function Qe(e){w.value=e.target.checked}function je(e){D.value=e.target.checked}const Je=()=>{Oe({key:zt(),value:JSON.stringify(S().map(e=>({path:e.path})))})},Ke=wt(()=>S().length>0),Xe=()=>{L(ge,{files:S(),onDone:N})};b.value&&Dt(()=>_.value.length,()=>{if(_.value.length>0&&b.value){const t=_.value[_.value.length-1].items.find(o=>o.path===b.value);t&&(P.value=t,b.value="")}});function Ye(){var e,t,o,r;if(d){if(d==="sdcard")return`${s("sdcard")} (${s("storage_free_total",{free:k(((e=ne.value)==null?void 0:e.freeBytes)??0),total:k(((t=ne.value)==null?void 0:t.totalBytes)??0)})})`;if(d==="app")return s("app_name");if(d.startsWith("usb")){const Z=parseInt(d.substring(3)),f=Re.value[Z-1];return`${s("usb_storage")} ${Z} (${s("storage_free_total",{free:k((f==null?void 0:f.freeBytes)??0),total:k((f==null?void 0:f.totalBytes)??0)})})`}}return`${s("page_title.files")} (${s("storage_free_total",{free:k(((o=se.value)==null?void 0:o.freeBytes)??0),total:k(((r=se.value)==null?void 0:r.totalBytes)??0)})})`}function et(e,t){if(w.value){t.checked=!t.checked;return}ze(e,t)}function tt(e,t){U.value=t,e.close()}function ot(){W(E.value)}function st(e,t){t.isDir||(ye(t.name)?window.open(Ce(I.value,t.path),"_blank"):X(t.name)?A(D?e.items:e.items.filter(o=>!o.name.startsWith(".")),t):le(t.path))}function nt(e,t){e.preventDefault();const o=[{label:s("create_folder"),onClick:()=>{Me.value=t,L(we,{title:s("name"),placeholder:s("name"),mutation:xe,getVariables:Be})}},{label:s("upload_files"),onClick:()=>{ce(t)}},{label:s("upload_folder"),onClick:()=>{ue(t)}}];ae()&&o.push({label:s("paste"),onClick:()=>{G(t)}}),Te({x:e.x,y:e.y,items:o})}function lt(e,t,o){e.preventDefault();let r;o.isDir?r=[{label:s("upload_files"),onClick:()=>{ce(o.path)}},{label:s("upload_folder"),onClick:()=>{ue(o.path)}},{label:s("download"),onClick:()=>{Ue(o.path)}}]:(r=[],(ye(o.name)||X(o.name))&&r.push({label:s("open"),onClick:()=>{X(o.name)?A(t.items,o):window.open(Ce(I.value,o.path),"_blank")}}),r.push({label:s("download"),onClick:()=>{le(o.path)}})),r.push({label:s("duplicate"),onClick:()=>{O([o]),G(t.dir)}}),r.push({label:s("cut"),onClick:()=>{o.panel=t,ie([o])}}),r.push({label:s("copy"),onClick:()=>{O([o])}}),o.isDir&&ae()&&r.push({label:s("paste"),onClick:()=>{G(o.path)}}),r=[...r,{label:s("rename"),onClick:()=>{Ee.value=o.name,Pe.value=o.path,L(we,{title:s("rename"),placeholder:s("name"),value:o.name,mutation:He,getVariables:Le,done:Ze})}},{label:s("delete"),onClick:()=>{L(ge,{files:[o],onDone:N})}}],Te({x:e.x,y:e.y,items:r})}const _e=e=>{e.status==="done"&&setTimeout(()=>{W(e.dir),z()},1e3)},pe=e=>{N([e.item])};return $t(()=>{H.on("upload_task_done",_e),H.on("file_deleted",pe)}),It(()=>{H.off("upload_task_done",_e),H.off("file_deleted",pe)}),(e,t)=>{const o=Kt,r=co,Z=so,f=Nt,at=At,it=Jt,ct=jt,rt=Mt,ut=Ot,y=St("tooltip");return a(),c(v,null,[i("div",ro,[m(o,{current:Ye}),i("div",uo,[w.value&&Ke.value?(a(),c(v,{key:0},[C((a(),c("button",{class:"icon-button",onClick:t[0]||(t[0]=F(()=>n(O)(S()),["stop"]))},[_o,m(r)])),[[y,e.$t("copy")]]),C((a(),c("button",{class:"icon-button",onClick:t[1]||(t[1]=F(()=>n(ie)(S()),["stop"]))},[po,m(Z)])),[[y,e.$t("cut")]]),C((a(),c("button",{class:"icon-button",onClick:F(Xe,["stop"])},[ho,m(f)],8,mo)),[[y,e.$t("delete")]]),C((a(),c("button",{class:"icon-button",onClick:F(Je,["stop"])},[bo,m(at)],8,fo)),[[y,e.$t("download")]])],64)):h("",!0),i("div",vo,[i("label",ko,[i("md-checkbox",{"touch-target":"wrapper",onChange:Qe,checked:w.value},null,40,go),T(" "+p(e.$t("select_mode")),1)])]),i("div",yo,[i("label",Co,[i("md-checkbox",{"touch-target":"wrapper",onChange:je,checked:n(D)},null,40,To),T(p(e.$t("show_hidden")),1)])]),C((a(),c("button",{class:"icon-button btn-refresh",onClick:ot},[qo,m(it)])),[[y,e.$t("refresh")]]),m(rt,null,{content:M(u=>[i("div",$o,[(a(!0),c(v,null,J(n(Se),l=>(a(),c("md-menu-item",{onClick:Q=>tt(u,l.value),selected:l.value===n(U)},[i("div",So,p(e.$t(l.label)),1)],8,Io))),256))])]),default:M(()=>[C((a(),c("button",wo,[Do,m(ct)])),[[y,e.$t("sort")]])]),_:1})])]),m(n(Xt),{class:"panel-container"},{default:M(()=>[(a(!0),c(v,null,J(n(_),u=>(a(),K(n(qe),{key:u.dir},{default:M(()=>[i("div",Vo,[(a(!0),c(v,null,J(u.items,l=>{var Q;return a(),c(v,{key:l.path},[!l.name.startsWith(".")||n(D)?(a(),c("div",{key:0,class:Bt(["file-item",{active:(n(E)+"/").startsWith(l.path+"/")||((Q=n(P))==null?void 0:Q.path)===l.path}]),onClick:j=>et(u,l),onDblclick:F(j=>st(u,l),["prevent"]),onContextmenu:j=>lt(j,u,l)},[w.value?(a(),c("md-checkbox",{key:0,"touch-target":"wrapper",checked:l.checked},null,8,Mo)):h("",!0),l.isDir?(a(),K(ut,{key:1})):h("",!0),n(xt)(l.name)||n(Et)(l.name)?(a(),c("img",{key:2,src:n(Pt)(l.fileId)+"&w=50&h=50",width:"50",height:"50"},null,8,Bo)):h("",!0),i("div",xo,[T(p(l.name)+" ",1),i("div",Eo,[T(p(n(Zt)(l.updatedAt)),1),l.isDir?h("",!0):(a(),c(v,{key:0},[T(", "+p(n(k)(l.size)),1)],64))])])],42,Fo)):h("",!0)],64)}),128)),i("div",{class:"empty",onContextmenu:l=>nt(l,u.dir)},[u.items.filter(l=>!l.name.startsWith(".")||n(D)).length===0?(a(),c("div",Zo,p(e.$t("no_files")),1)):h("",!0)],40,Po)])]),_:2},1024))),128)),n(_).length===0?(a(),K(n(qe),{key:0,class:"no-data-placeholder"},{default:M(()=>[T(p(e.$t(n(Ht)(n(Fe),n($).permissions,"WRITE_EXTERNAL_STORAGE"))),1)]),_:1})):h("",!0)]),_:1}),n(P)?(a(),c("div",Ho,p(e.$t("path"))+": "+p(n(P).path),1)):h("",!0),i("input",{ref_key:"fileInput",ref:Ne,style:{display:"none"},type:"file",multiple:"",onChange:t[2]||(t[2]=(...u)=>n(re)&&n(re)(...u))},null,544),i("input",{ref_key:"dirFileInput",ref:Ae,style:{display:"none"},type:"file",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:t[3]||(t[3]=(...u)=>n(de)&&n(de)(...u))},null,544)],64)}}});const Go=Qt(Lo,[["__scopeId","data-v-1bb14a91"]]);export{Go as default}; diff --git a/app/src/main/resources/web/assets/HomeView-5177e39f.js b/app/src/main/resources/web/assets/HomeView-ff8014e8.js similarity index 98% rename from app/src/main/resources/web/assets/HomeView-5177e39f.js rename to app/src/main/resources/web/assets/HomeView-ff8014e8.js index 47656c39..07101912 100644 --- a/app/src/main/resources/web/assets/HomeView-5177e39f.js +++ b/app/src/main/resources/web/assets/HomeView-ff8014e8.js @@ -1 +1 @@ -import{b as L,o as d,c,a as e,d as M,u as O,e as E,s as B,r as h,f as j,i as A,w as F,g as P,h as p,t as o,j as f,k as m,l,F as w,m as Q,v as Z,n as z,p as D,q as R,x as U,y as J,z as S,A as K,B as W,C as X,_ as Y}from"./index-b6c39163.js";function x(i,_){for(var u,r=-1,g=i.length;++r(K("data-v-2b7c24f3"),i=i(),W(),i),ae={class:"page-container"},ie={class:"main"},re={class:"grid"},de={class:"g-col-lg-6 g-col-md-12"},ce={class:"card"},ue={class:"card-body"},ve={class:"card-title"},pe={key:0,class:"total-bytes"},fe={class:"stats-items"},me={class:"g-col-lg-6 g-col-md-12"},_e={class:"card"},he={class:"card-body"},ge={class:"card-title"},$e={class:"stats-items"},be={class:"g-col-lg-6 g-col-md-12"},ke={class:"card"},Ce={class:"card-body"},ye={class:"card-title"},Te={class:"stats-items"},qe={class:"g-col-lg-6 g-col-md-12"},we={class:"card"},Be={class:"card-body"},Se={class:"card-title"},Ve={class:"stats-items"},Ge={class:"g-col-lg-6 g-col-md-12"},He={class:"card"},Ne={class:"card-body"},Ie={class:"card-title"},Le={class:"form-row"},Me=["label","error","error-text"],Oe=["onClick"],Ee=le(()=>e("md-ripple",null,null,-1)),je=["onClick","disabled"],Ae=M({__name:"HomeView",setup(i){const{t:_}=O(),u=E(),{callNumber:r}=B(u),g=h(!1),{app:v}=B(j()),C=h(-1),y=h(-1),T=h(-1),$=h(-1),k=h(-1);function G(){navigator.clipboard.readText().then(t=>{r.value=t})}const{mutate:H,loading:N}=A({document:R,appApi:!0}),I=()=>{if(!r.value){g.value=!0;return}H({number:r.value})};F(r,()=>{g.value=!1}),P({handle:(t,s)=>{if(s)U(_(s),"error");else if(t){C.value=t.messageCount,y.value=t.contactCount,T.value=t.callCount,$.value=t.storageStats.internal.totalBytes,k.value=t.storageStats.internal.freeBytes;const b=t.storageStats.sdcard;b&&($.value+=b.totalBytes,k.value+=b.freeBytes);const n=t.storageStats.usb;n.length&&($.value+=V(n,q=>q.totalBytes),k.value+=V(n,q=>q.freeBytes))}},document:J,variables:null,appApi:!0});function a(t){X(u,t)}return(t,s)=>{const b=ne;return d(),c("div",ae,[e("div",ie,[e("div",re,[e("div",de,[e("section",ce,[e("div",ue,[e("h5",ve,[p(o(t.$t("storage")),1),$.value>=0?(d(),c("span",pe,o(t.$t("storage_free_total",{free:f(S)(k.value),total:f(S)($.value)})),1)):m("",!0)]),e("p",fe,[e("a",{href:"#",onClick:s[0]||(s[0]=l(n=>a("/images"),["prevent"]))},o(t.$t("images")),1),e("a",{href:"#",onClick:s[1]||(s[1]=l(n=>a("/audios"),["prevent"]))},o(t.$t("audios")),1),e("a",{href:"#",onClick:s[2]||(s[2]=l(n=>a("/videos"),["prevent"]))},o(t.$t("videos")),1),e("a",{href:"#",onClick:s[3]||(s[3]=l(n=>a("/files"),["prevent"]))},o(t.$t("files")),1),f(v).channel!=="GOOGLE"?(d(),c("a",{key:0,href:"#",onClick:s[4]||(s[4]=l(n=>a("/apps"),["prevent"]))},o(t.$t("apps")),1)):m("",!0)])])])]),e("div",me,[e("section",_e,[e("div",he,[e("h5",ge,o(t.$t("work")),1),e("p",$e,[e("a",{href:"#",onClick:s[5]||(s[5]=l(n=>a("/notes"),["prevent"]))},o(t.$t("page_title.notes")),1),e("a",{style:{display:"none"},href:"#",onClick:s[6]||(s[6]=l(n=>a("/books"),["prevent"]))},o(t.$t("page_title.books")),1),e("a",{href:"#",onClick:s[7]||(s[7]=l(n=>a("/feeds"),["prevent"]))},o(t.$t("page_title.feeds")),1)])])])]),e("div",be,[e("section",ke,[e("div",Ce,[e("h5",ye,o(t.$t("social")),1),e("p",Te,[f(v).channel!=="GOOGLE"?(d(),c("a",{key:0,href:"#",onClick:s[8]||(s[8]=l(n=>a("/messages"),["prevent"]))},[p(o(t.$t("messages")),1),C.value>=0?(d(),c(w,{key:0},[p("("+o(C.value)+")",1)],64)):m("",!0)])):m("",!0),f(v).channel!=="GOOGLE"?(d(),c("a",{key:1,href:"#",onClick:s[9]||(s[9]=l(n=>a("/calls"),["prevent"]))},[p(o(t.$t("calls")),1),T.value>=0?(d(),c(w,{key:0},[p("("+o(T.value)+")",1)],64)):m("",!0)])):m("",!0),e("a",{href:"#",onClick:s[10]||(s[10]=l(n=>a("/contacts"),["prevent"]))},[p(o(t.$t("contacts")),1),y.value>=0?(d(),c(w,{key:0},[p("("+o(y.value)+")",1)],64)):m("",!0)])])])])]),e("div",qe,[e("section",we,[e("div",Be,[e("h5",Se,o(t.$t("tools")),1),e("p",Ve,[e("a",{href:"#",onClick:s[11]||(s[11]=l(n=>a("/screen-mirror"),["prevent"]))},o(t.$t("screen_mirror")),1),e("a",{href:"#",onClick:s[12]||(s[12]=l(n=>a("/device-info"),["prevent"]))},o(t.$t("device_info")),1),e("a",{href:"#",onClick:s[13]||(s[13]=l(n=>a("/qrcode-generator"),["prevent"]))},o(t.$t("qrcode_generator")),1),e("a",{href:"#",onClick:s[14]||(s[14]=l(n=>a("/json-viewer"),["prevent"]))},o(t.$t("json_viewer")),1)])])])]),e("div",Ge,[e("section",He,[e("div",Ne,[e("h5",Ie,o(t.$t("call_phone")),1),e("p",Le,[Q(e("md-outlined-text-field",{type:"tel",label:t.$t("phone_number"),class:"form-control flex-3","onUpdate:modelValue":s[15]||(s[15]=n=>z(r)?r.value=n:null),error:g.value,"error-text":t.$t("valid.required")},[e("button",{class:"icon-button",slot:"trailing-icon",onClick:l(G,["prevent"])},[Ee,D(b)],8,Oe)],8,Me),[[Z,f(r)]]),e("md-filled-button",{class:"btn-lg",onClick:l(I,["prevent"]),disabled:f(N)},o(t.$t("call")),9,je)])])])])])])])}}});const Pe=Y(Ae,[["__scopeId","data-v-2b7c24f3"]]);export{Pe as default}; +import{b as L,o as d,c,a as e,d as M,u as O,e as E,s as B,r as h,f as j,i as A,w as F,g as P,h as p,t as o,j as f,k as m,l,F as w,m as Q,v as Z,n as z,p as D,q as R,x as U,y as J,z as S,A as K,B as W,C as X,_ as Y}from"./index-1dff6785.js";function x(i,_){for(var u,r=-1,g=i.length;++r(K("data-v-2b7c24f3"),i=i(),W(),i),ae={class:"page-container"},ie={class:"main"},re={class:"grid"},de={class:"g-col-lg-6 g-col-md-12"},ce={class:"card"},ue={class:"card-body"},ve={class:"card-title"},pe={key:0,class:"total-bytes"},fe={class:"stats-items"},me={class:"g-col-lg-6 g-col-md-12"},_e={class:"card"},he={class:"card-body"},ge={class:"card-title"},$e={class:"stats-items"},be={class:"g-col-lg-6 g-col-md-12"},ke={class:"card"},Ce={class:"card-body"},ye={class:"card-title"},Te={class:"stats-items"},qe={class:"g-col-lg-6 g-col-md-12"},we={class:"card"},Be={class:"card-body"},Se={class:"card-title"},Ve={class:"stats-items"},Ge={class:"g-col-lg-6 g-col-md-12"},He={class:"card"},Ne={class:"card-body"},Ie={class:"card-title"},Le={class:"form-row"},Me=["label","error","error-text"],Oe=["onClick"],Ee=le(()=>e("md-ripple",null,null,-1)),je=["onClick","disabled"],Ae=M({__name:"HomeView",setup(i){const{t:_}=O(),u=E(),{callNumber:r}=B(u),g=h(!1),{app:v}=B(j()),C=h(-1),y=h(-1),T=h(-1),$=h(-1),k=h(-1);function G(){navigator.clipboard.readText().then(t=>{r.value=t})}const{mutate:H,loading:N}=A({document:R,appApi:!0}),I=()=>{if(!r.value){g.value=!0;return}H({number:r.value})};F(r,()=>{g.value=!1}),P({handle:(t,s)=>{if(s)U(_(s),"error");else if(t){C.value=t.messageCount,y.value=t.contactCount,T.value=t.callCount,$.value=t.storageStats.internal.totalBytes,k.value=t.storageStats.internal.freeBytes;const b=t.storageStats.sdcard;b&&($.value+=b.totalBytes,k.value+=b.freeBytes);const n=t.storageStats.usb;n.length&&($.value+=V(n,q=>q.totalBytes),k.value+=V(n,q=>q.freeBytes))}},document:J,variables:null,appApi:!0});function a(t){X(u,t)}return(t,s)=>{const b=ne;return d(),c("div",ae,[e("div",ie,[e("div",re,[e("div",de,[e("section",ce,[e("div",ue,[e("h5",ve,[p(o(t.$t("storage")),1),$.value>=0?(d(),c("span",pe,o(t.$t("storage_free_total",{free:f(S)(k.value),total:f(S)($.value)})),1)):m("",!0)]),e("p",fe,[e("a",{href:"#",onClick:s[0]||(s[0]=l(n=>a("/images"),["prevent"]))},o(t.$t("images")),1),e("a",{href:"#",onClick:s[1]||(s[1]=l(n=>a("/audios"),["prevent"]))},o(t.$t("audios")),1),e("a",{href:"#",onClick:s[2]||(s[2]=l(n=>a("/videos"),["prevent"]))},o(t.$t("videos")),1),e("a",{href:"#",onClick:s[3]||(s[3]=l(n=>a("/files"),["prevent"]))},o(t.$t("files")),1),f(v).channel!=="GOOGLE"?(d(),c("a",{key:0,href:"#",onClick:s[4]||(s[4]=l(n=>a("/apps"),["prevent"]))},o(t.$t("apps")),1)):m("",!0)])])])]),e("div",me,[e("section",_e,[e("div",he,[e("h5",ge,o(t.$t("work")),1),e("p",$e,[e("a",{href:"#",onClick:s[5]||(s[5]=l(n=>a("/notes"),["prevent"]))},o(t.$t("page_title.notes")),1),e("a",{style:{display:"none"},href:"#",onClick:s[6]||(s[6]=l(n=>a("/books"),["prevent"]))},o(t.$t("page_title.books")),1),e("a",{href:"#",onClick:s[7]||(s[7]=l(n=>a("/feeds"),["prevent"]))},o(t.$t("page_title.feeds")),1)])])])]),e("div",be,[e("section",ke,[e("div",Ce,[e("h5",ye,o(t.$t("social")),1),e("p",Te,[f(v).channel!=="GOOGLE"?(d(),c("a",{key:0,href:"#",onClick:s[8]||(s[8]=l(n=>a("/messages"),["prevent"]))},[p(o(t.$t("messages")),1),C.value>=0?(d(),c(w,{key:0},[p("("+o(C.value)+")",1)],64)):m("",!0)])):m("",!0),f(v).channel!=="GOOGLE"?(d(),c("a",{key:1,href:"#",onClick:s[9]||(s[9]=l(n=>a("/calls"),["prevent"]))},[p(o(t.$t("calls")),1),T.value>=0?(d(),c(w,{key:0},[p("("+o(T.value)+")",1)],64)):m("",!0)])):m("",!0),e("a",{href:"#",onClick:s[10]||(s[10]=l(n=>a("/contacts"),["prevent"]))},[p(o(t.$t("contacts")),1),y.value>=0?(d(),c(w,{key:0},[p("("+o(y.value)+")",1)],64)):m("",!0)])])])])]),e("div",qe,[e("section",we,[e("div",Be,[e("h5",Se,o(t.$t("tools")),1),e("p",Ve,[e("a",{href:"#",onClick:s[11]||(s[11]=l(n=>a("/screen-mirror"),["prevent"]))},o(t.$t("screen_mirror")),1),e("a",{href:"#",onClick:s[12]||(s[12]=l(n=>a("/device-info"),["prevent"]))},o(t.$t("device_info")),1),e("a",{href:"#",onClick:s[13]||(s[13]=l(n=>a("/qrcode-generator"),["prevent"]))},o(t.$t("qrcode_generator")),1),e("a",{href:"#",onClick:s[14]||(s[14]=l(n=>a("/json-viewer"),["prevent"]))},o(t.$t("json_viewer")),1)])])])]),e("div",Ge,[e("section",He,[e("div",Ne,[e("h5",Ie,o(t.$t("call_phone")),1),e("p",Le,[Q(e("md-outlined-text-field",{type:"tel",label:t.$t("phone_number"),class:"form-control flex-3","onUpdate:modelValue":s[15]||(s[15]=n=>z(r)?r.value=n:null),error:g.value,"error-text":t.$t("valid.required")},[e("button",{class:"icon-button",slot:"trailing-icon",onClick:l(G,["prevent"])},[Ee,D(b)],8,Oe)],8,Me),[[Z,f(r)]]),e("md-filled-button",{class:"btn-lg",onClick:l(I,["prevent"]),disabled:f(N)},o(t.$t("call")),9,je)])])])])])])])}}});const Pe=Y(Ae,[["__scopeId","data-v-2b7c24f3"]]);export{Pe as default}; diff --git a/app/src/main/resources/web/assets/ImagesRootView-05531514.js b/app/src/main/resources/web/assets/ImagesRootView-a25f8692.js similarity index 70% rename from app/src/main/resources/web/assets/ImagesRootView-05531514.js rename to app/src/main/resources/web/assets/ImagesRootView-a25f8692.js index ccbe3a2e..7837acd3 100644 --- a/app/src/main/resources/web/assets/ImagesRootView-05531514.js +++ b/app/src/main/resources/web/assets/ImagesRootView-a25f8692.js @@ -1 +1 @@ -import{_ as g}from"./TagFilter.vuevuetypescriptsetuptruelang-873baaa8.js";import{_ as k}from"./BucketFilter.vuevuetypescriptsetuptruelang-659b6189.js";import{d as C,D as w,e as y,az as I,G as M,c as z,p as s,H as o,j as e,o as B,a,t as m,l as $,I as b,C as E}from"./index-b6c39163.js";import{g as d,M as G}from"./splitpanes.es-f516e17d.js";import"./EditValueModal-f5302cb7.js";import"./vee-validate.esm-03fad591.js";const N={class:"page-container"},S={class:"sidebar"},V={class:"nav-title"},A={class:"nav"},D=["onClick"],R={class:"main"},F=C({__name:"ImagesRootView",setup(j){var r,_;const n=w(),u=y(),i=I(n.query),c=((r=i.find(t=>t.name==="tag"))==null?void 0:r.value)??"",l=((_=i.find(t=>t.name==="bucket_id"))==null?void 0:_.value)??"";function p(){E(u,"/images")}return(t,q)=>{const f=k,h=g,v=M("router-view");return B(),z("div",N,[s(e(G),null,{default:o(()=>[s(e(d),{size:"20","min-size":"10"},{default:o(()=>[a("div",S,[a("h2",V,m(t.$t("page_title.images")),1),a("ul",A,[a("li",{onClick:$(p,["prevent"]),class:b({active:e(n).path==="/images"&&!e(c)&&!e(l)})},m(t.$t("all")),11,D),s(f,{type:"IMAGE",selected:e(l)},null,8,["selected"])]),s(h,{type:"IMAGE",selected:e(c)},null,8,["selected"])])]),_:1}),s(e(d),null,{default:o(()=>[a("div",R,[s(v)])]),_:1})]),_:1})])}}});export{F as default}; +import{_ as g}from"./TagFilter.vuevuetypescriptsetuptruelang-2bcd90c5.js";import{_ as k}from"./BucketFilter.vuevuetypescriptsetuptruelang-a57962d6.js";import{d as C,D as w,e as y,az as I,G as M,c as z,p as s,H as o,j as e,o as B,a,t as m,l as $,I as b,C as E}from"./index-1dff6785.js";import{g as d,M as G}from"./splitpanes.es-e9e41ca8.js";import"./EditValueModal-1892701b.js";import"./vee-validate.esm-b0b47415.js";const N={class:"page-container"},S={class:"sidebar"},V={class:"nav-title"},A={class:"nav"},D=["onClick"],R={class:"main"},F=C({__name:"ImagesRootView",setup(j){var r,_;const n=w(),u=y(),i=I(n.query),c=((r=i.find(t=>t.name==="tag"))==null?void 0:r.value)??"",l=((_=i.find(t=>t.name==="bucket_id"))==null?void 0:_.value)??"";function p(){E(u,"/images")}return(t,q)=>{const f=k,h=g,v=M("router-view");return B(),z("div",N,[s(e(G),null,{default:o(()=>[s(e(d),{size:"20","min-size":"10"},{default:o(()=>[a("div",S,[a("h2",V,m(t.$t("page_title.images")),1),a("ul",A,[a("li",{onClick:$(p,["prevent"]),class:b({active:e(n).path==="/images"&&!e(c)&&!e(l)})},m(t.$t("all")),11,D),s(f,{type:"IMAGE",selected:e(l)},null,8,["selected"])]),s(h,{type:"IMAGE",selected:e(c)},null,8,["selected"])])]),_:1}),s(e(d),null,{default:o(()=>[a("div",R,[s(v)])]),_:1})]),_:1})])}}});export{F as default}; diff --git a/app/src/main/resources/web/assets/ImagesView-ef9d1104.js b/app/src/main/resources/web/assets/ImagesView-8f315b20.js similarity index 94% rename from app/src/main/resources/web/assets/ImagesView-ef9d1104.js rename to app/src/main/resources/web/assets/ImagesView-8f315b20.js index b76c2819..f5b9c963 100644 --- a/app/src/main/resources/web/assets/ImagesView-ef9d1104.js +++ b/app/src/main/resources/web/assets/ImagesView-8f315b20.js @@ -1 +1 @@ -import{u as Ge,_ as xe,a as Ke,b as Oe}from"./list-6c4ddffc.js";import{d as We,aA as Pe,e as Xe,s as _e,r as D,u as je,f as Je,K as Ye,L as Ze,D as et,M as tt,aB as st,af as ot,aC as lt,N as nt,w as at,O as it,P as k,Q as dt,R as ct,c as a,a as s,p as i,j as t,F as C,m,l as _,k as y,S as L,H as Q,J as F,t as r,T as ut,U as _t,x as rt,aD as pt,aE as mt,C as re,W as pe,at as ht,o as n,v as gt,z as me,I as vt,ax as he,aF as M,$ as ge,A as ft,B as kt,al as yt,aG as bt,a2 as $t,a3 as wt,a0 as Ct,a1 as Tt,as as It,aH as Vt,aI as St,ad as Dt,am as At,a4 as Rt,a5 as zt,a6 as Et,_ as Bt}from"./index-b6c39163.js";import{_ as Ft}from"./sort-rounded-4981fcb6.js";import{_ as Mt}from"./upload-rounded-a4e04a4c.js";import{_ as Ut,a as qt}from"./grid-view-outline-rounded-a088250d.js";import{_ as Nt}from"./Breadcrumb-fef16e9c.js";import{u as Ht,a as Lt}from"./tags-3bd6efbc.js";import"./vee-validate.esm-03fad591.js";const u=R=>(ft("data-v-d2032d39"),R=R(),kt(),R),Qt={class:"v-toolbar"},Gt=u(()=>s("md-ripple",null,null,-1)),xt=u(()=>s("md-ripple",null,null,-1)),Kt=u(()=>s("md-ripple",null,null,-1)),Ot=["onClick"],Wt=u(()=>s("md-ripple",null,null,-1)),Pt=["onClick"],Xt=u(()=>s("md-ripple",null,null,-1)),jt={class:"icon-button btn-sort"},Jt=u(()=>s("md-ripple",null,null,-1)),Yt={class:"menu-items"},Zt=["onClick","selected"],es={slot:"headline"},ts={class:"filters"},ss=["label"],os={class:"form-label"},ls=["label","selected","onClick"],ns={class:"buttons"},as=["onClick"],is={key:0,class:"image-container",style:{"margin-bottom":"24px"}},ds=["onClick","onContextmenu"],cs=["src"],us={class:"duration"},_s={key:1,class:"table-responsive"},rs={class:"table"},ps=["checked","indeterminate"],ms=u(()=>s("th",null,"ID",-1)),hs=u(()=>s("th",null,null,-1)),gs=u(()=>s("th",null,null,-1)),vs=["onClick"],fs=["checked"],ks=["src","onClick"],ys={class:"nowrap"},bs={class:"action-btns"},$s=["onClick"],ws=u(()=>s("md-ripple",null,null,-1)),Cs=["onClick"],Ts=u(()=>s("md-ripple",null,null,-1)),Is=["onClick"],Vs=u(()=>s("md-ripple",null,null,-1)),Ss={class:"nowrap"},Ds={key:0},As={colspan:"7"},Rs={class:"no-data-placeholder"},zs={key:2,class:"no-data-placeholder"},A=48,Es=We({__name:"ImagesView",setup(R){var ie,de;const ve=Pe(),d=Xe(),{imageSortBy:U}=_e(d),g=D([]),G=D(),{t:T}=je(),x=Je(),{app:K,urlTokenKey:q}=_e(x),v=Ye({text:"",tags:[]}),c=Ze.IMAGE,O=et().query,I=D(parseInt(((ie=O.page)==null?void 0:ie.toString())??"1")),b=D(tt(((de=O.q)==null?void 0:de.toString())??"")),V=D(""),{tags:z}=Ht(c,b,v,async e=>{V.value=ut(e),await _t(),Ie()}),{addToTags:fe}=Lt(c,g,z),{deleteItems:ke,deleteItem:W}=st(),{allChecked:P,realAllChecked:E,selectRealAll:ye,allCheckedAlertVisible:be,clearSelection:B,toggleAllChecked:X,toggleItemChecked:j,toggleRow:$e,total:$,checked:J}=Ge(g),{downloadItems:we}=ot(q,c,g,B,"images.zip"),{downloadFile:Y}=yt(q),Ce=bt(),N=lt(()=>g.value.map(e=>({src:he(e.fileId),name:M(e.path),duration:0,size:e.size,path:e.path,type:c,data:e})));function Z(e){x.lightbox={sources:N.value,index:e,visible:!0}}function ee(e){$t(wt,{type:c,tags:z.value,item:{key:e.id,title:e.title,size:e.size},selected:z.value.filter(l=>e.tags.some(w=>w.id===l.id))})}function Te(e,l){U.value=l,e.close()}const{loading:te,load:Ie,refetch:H}=nt({handle:async(e,l)=>{if(l)rt(T(l),"error");else if(e){const w=[];for(const S of e.images)w.push({...S,checked:!1,fileId:pt(q.value,S.path)});g.value=w,$.value=e.imageCount}},document:mt,variables:()=>({offset:(I.value-1)*A,limit:A,query:V.value,sortBy:U.value}),appApi:!0});function Ve(){re(d,`/images?page=${I.value}&q=${pe(b.value)}`)}at(I,()=>{Ve()});function Se(e){v.tags.includes(e)?Ct(v.tags,l=>l.id===e.id):v.tags.push(e)}function De(){b.value=Tt(v),se(),G.value.dismiss()}function se(){re(d,`/images?q=${pe(b.value)}`)}function Ae(){d.imageViewType==="grid"?d.imageViewType="list":d.imageViewType="grid"}function Re(){ve.push("/files"),It(Vt,{message:T("upload_images")})}function ze(e,l){e.preventDefault(),St({x:e.x,y:e.y,items:[{label:T("add_to_tags"),onClick:()=>{ee(l)}},{label:T("download"),onClick:()=>{Y(l.path,M(l.path).replace(" ","-"))}},{label:T("delete"),onClick:()=>{W(c,l)}}]})}const oe=e=>{e.type===c&&(B(),H())},le=e=>{e.type===c&&H()},ne=e=>{e.type===c&&(B(),H())},ae=()=>{$.value--};return it(()=>{k.on("item_tags_updated",le),k.on("items_tags_updated",oe),k.on("media_item_deleted",ae),k.on("media_items_deleted",ne)}),dt(()=>{k.off("item_tags_updated",le),k.off("items_tags_updated",oe),k.off("media_item_deleted",ae),k.off("media_items_deleted",ne)}),(e,l)=>{const w=Nt,S=Dt,ce=At,ue=Rt,Ee=Ut,Be=qt,Fe=Mt,Me=Ft,Ue=ht,qe=xe,Ne=Ke,He=zt,Le=Et,Qe=Oe,h=ct("tooltip");return n(),a(C,null,[s("div",Qt,[i(w,{current:()=>`${e.$t("page_title.images")} (${t($)})`},null,8,["current"]),t(J)&&t(d).imageViewType==="list"?(n(),a(C,{key:0},[m((n(),a("button",{class:"icon-button",onClick:l[0]||(l[0]=_(o=>t(ke)(t(c),g.value,t(E),V.value),["stop"]))},[Gt,i(S)])),[[h,e.$t("delete")]]),m((n(),a("button",{class:"icon-button",onClick:l[1]||(l[1]=_(o=>t(we)(t(E),V.value),["stop"]))},[xt,i(ce)])),[[h,e.$t("download")]]),m((n(),a("button",{class:"icon-button",onClick:l[2]||(l[2]=_(o=>t(fe)(t(E),V.value),["stop"]))},[Kt,i(ue)])),[[h,e.$t("add_to_tags")]])],64)):y("",!0),m((n(),a("button",{class:"icon-button",onClick:_(Ae,["stop"])},[Wt,t(d).imageViewType==="list"?(n(),L(Ee,{key:0})):y("",!0),t(d).imageViewType==="grid"?(n(),L(Be,{key:1})):y("",!0)],8,Ot)),[[h,e.$t(t(d).imageViewType==="list"?"view_as_grid":"view_as_list")]]),m((n(),a("button",{class:"icon-button",onClick:_(Re,["prevent"])},[Xt,i(Fe)],8,Pt)),[[h,e.$t("upload")]]),i(Ue,null,{content:Q(o=>[s("div",Yt,[(n(!0),a(C,null,F(t(Ce),f=>(n(),a("md-menu-item",{onClick:p=>Te(o,f.value),selected:f.value===t(U)},[s("div",es,r(e.$t(f.label)),1)],8,Zt))),256))])]),default:Q(()=>[m((n(),a("button",jt,[Jt,i(Me)])),[[h,e.$t("sort")]])]),_:1}),i(qe,{ref_key:"searchInputRef",ref:G,modelValue:b.value,"onUpdate:modelValue":l[4]||(l[4]=o=>b.value=o),search:se},{filters:Q(()=>[s("div",ts,[m(s("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":l[3]||(l[3]=o=>v.text=o),"keyup.enter":"applyAndDoSearch"},null,8,ss),[[gt,v.text]]),s("label",os,r(e.$t("tags")),1),s("md-chip-set",null,[(n(!0),a(C,null,F(t(z),o=>(n(),a("md-filter-chip",{key:o.id,label:o.name,selected:v.tags.includes(o),onClick:f=>Se(o)},null,8,ls))),128))]),s("div",ns,[s("md-filled-button",{onClick:_(De,["stop"])},r(e.$t("search")),9,as)])])]),_:1},8,["modelValue"])]),t(d).imageViewType==="grid"?(n(),a("div",is,[(n(!0),a(C,null,F(N.value,(o,f)=>(n(),a("div",{class:"item",onClick:p=>Z(f),onContextmenu:p=>ze(p,o.data)},[s("img",{class:"image",src:o.src+"&w=300&h=300"},null,8,cs),s("span",us,r(t(me)(o.size)),1)],40,ds))),256))])):y("",!0),i(Ne,{limit:A,total:t($),"all-checked-alert-visible":t(be),"real-all-checked":t(E),"select-real-all":t(ye),"clear-selection":t(B)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t(d).imageViewType==="list"?(n(),a("div",_s,[s("table",rs,[s("thead",null,[s("tr",null,[s("th",null,[s("md-checkbox",{"touch-target":"wrapper",onChange:l[5]||(l[5]=(...o)=>t(X)&&t(X)(...o)),checked:t(P),indeterminate:!t(P)&&t(J)},null,40,ps)]),ms,hs,s("th",null,r(e.$t("name")),1),gs,s("th",null,r(e.$t("tags")),1),s("th",null,r(e.$t("file_size")),1)])]),s("tbody",null,[(n(!0),a(C,null,F(g.value,(o,f)=>(n(),a("tr",{key:o.id,class:vt({selected:o.checked}),onClick:_(p=>t($e)(o),["stop"])},[s("td",null,[s("md-checkbox",{"touch-target":"wrapper",onChange:l[6]||(l[6]=(...p)=>t(j)&&t(j)(...p)),checked:o.checked},null,40,fs)]),s("td",null,[i(He,{id:o.id,raw:o},null,8,["id","raw"])]),s("td",null,[s("img",{src:t(he)(o.fileId)+"&w=300&h=300",width:"50",height:"50",onClick:_(p=>Z(f),["stop"]),style:{cursor:"pointer"}},null,8,ks)]),s("td",null,r(t(M)(o.path)),1),s("td",ys,[s("div",bs,[m((n(),a("button",{class:"icon-button",onClick:_(p=>t(W)(t(c),o),["stop"])},[ws,i(S)],8,$s)),[[h,e.$t("delete")]]),m((n(),a("button",{class:"icon-button",onClick:_(p=>t(Y)(o.path,t(M)(o.path).replace(" ","-")),["stop"])},[Ts,i(ce)],8,Cs)),[[h,e.$t("download")]]),m((n(),a("button",{class:"icon-button",onClick:_(p=>ee(o),["stop"])},[Vs,i(ue)],8,Is)),[[h,e.$t("add_to_tags")]])])]),s("td",null,[i(Le,{tags:o.tags,type:t(c)},null,8,["tags","type"])]),s("td",Ss,r(t(me)(o.size)),1)],10,vs))),128))]),g.value.length?y("",!0):(n(),a("tfoot",Ds,[s("tr",null,[s("td",As,[s("div",Rs,r(e.$t(t(ge)(t(te),t(K).permissions,"WRITE_EXTERNAL_STORAGE"))),1)])])]))])])):y("",!0),t(d).imageViewType==="grid"&&N.value.length===0?(n(),a("div",zs,r(e.$t(t(ge)(t(te),t(K).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):y("",!0),t($)>A?(n(),L(Qe,{key:3,modelValue:I.value,"onUpdate:modelValue":l[7]||(l[7]=o=>I.value=o),total:t($),limit:A},null,8,["modelValue","total"])):y("",!0)],64)}}});const Gs=Bt(Es,[["__scopeId","data-v-d2032d39"]]);export{Gs as default}; +import{u as Ge,_ as xe,a as Ke,b as Oe}from"./list-0d76acfa.js";import{d as We,aA as Pe,e as Xe,s as _e,r as D,u as je,f as Je,K as Ye,L as Ze,D as et,M as tt,aB as st,af as ot,aC as lt,N as nt,w as at,O as it,P as k,Q as dt,R as ct,c as a,a as s,p as i,j as t,F as C,m,l as _,k as y,S as L,H as Q,J as F,t as r,T as ut,U as _t,x as rt,aD as pt,aE as mt,C as re,W as pe,at as ht,o as n,v as gt,z as me,I as vt,ax as he,aF as M,$ as ge,A as ft,B as kt,al as yt,aG as bt,a2 as $t,a3 as wt,a0 as Ct,a1 as Tt,as as It,aH as Vt,aI as St,ad as Dt,am as At,a4 as Rt,a5 as zt,a6 as Et,_ as Bt}from"./index-1dff6785.js";import{_ as Ft}from"./sort-rounded-b8d8e47a.js";import{_ as Mt}from"./upload-rounded-dd35ce68.js";import{_ as Ut,a as qt}from"./grid-view-outline-rounded-5cff260c.js";import{_ as Nt}from"./Breadcrumb-cba2b95b.js";import{u as Ht,a as Lt}from"./tags-ba1ad11a.js";import"./vee-validate.esm-b0b47415.js";const u=R=>(ft("data-v-d2032d39"),R=R(),kt(),R),Qt={class:"v-toolbar"},Gt=u(()=>s("md-ripple",null,null,-1)),xt=u(()=>s("md-ripple",null,null,-1)),Kt=u(()=>s("md-ripple",null,null,-1)),Ot=["onClick"],Wt=u(()=>s("md-ripple",null,null,-1)),Pt=["onClick"],Xt=u(()=>s("md-ripple",null,null,-1)),jt={class:"icon-button btn-sort"},Jt=u(()=>s("md-ripple",null,null,-1)),Yt={class:"menu-items"},Zt=["onClick","selected"],es={slot:"headline"},ts={class:"filters"},ss=["label"],os={class:"form-label"},ls=["label","selected","onClick"],ns={class:"buttons"},as=["onClick"],is={key:0,class:"image-container",style:{"margin-bottom":"24px"}},ds=["onClick","onContextmenu"],cs=["src"],us={class:"duration"},_s={key:1,class:"table-responsive"},rs={class:"table"},ps=["checked","indeterminate"],ms=u(()=>s("th",null,"ID",-1)),hs=u(()=>s("th",null,null,-1)),gs=u(()=>s("th",null,null,-1)),vs=["onClick"],fs=["checked"],ks=["src","onClick"],ys={class:"nowrap"},bs={class:"action-btns"},$s=["onClick"],ws=u(()=>s("md-ripple",null,null,-1)),Cs=["onClick"],Ts=u(()=>s("md-ripple",null,null,-1)),Is=["onClick"],Vs=u(()=>s("md-ripple",null,null,-1)),Ss={class:"nowrap"},Ds={key:0},As={colspan:"7"},Rs={class:"no-data-placeholder"},zs={key:2,class:"no-data-placeholder"},A=48,Es=We({__name:"ImagesView",setup(R){var ie,de;const ve=Pe(),d=Xe(),{imageSortBy:U}=_e(d),g=D([]),G=D(),{t:T}=je(),x=Je(),{app:K,urlTokenKey:q}=_e(x),v=Ye({text:"",tags:[]}),c=Ze.IMAGE,O=et().query,I=D(parseInt(((ie=O.page)==null?void 0:ie.toString())??"1")),b=D(tt(((de=O.q)==null?void 0:de.toString())??"")),V=D(""),{tags:z}=Ht(c,b,v,async e=>{V.value=ut(e),await _t(),Ie()}),{addToTags:fe}=Lt(c,g,z),{deleteItems:ke,deleteItem:W}=st(),{allChecked:P,realAllChecked:E,selectRealAll:ye,allCheckedAlertVisible:be,clearSelection:B,toggleAllChecked:X,toggleItemChecked:j,toggleRow:$e,total:$,checked:J}=Ge(g),{downloadItems:we}=ot(q,c,g,B,"images.zip"),{downloadFile:Y}=yt(q),Ce=bt(),N=lt(()=>g.value.map(e=>({src:he(e.fileId),name:M(e.path),duration:0,size:e.size,path:e.path,type:c,data:e})));function Z(e){x.lightbox={sources:N.value,index:e,visible:!0}}function ee(e){$t(wt,{type:c,tags:z.value,item:{key:e.id,title:e.title,size:e.size},selected:z.value.filter(l=>e.tags.some(w=>w.id===l.id))})}function Te(e,l){U.value=l,e.close()}const{loading:te,load:Ie,refetch:H}=nt({handle:async(e,l)=>{if(l)rt(T(l),"error");else if(e){const w=[];for(const S of e.images)w.push({...S,checked:!1,fileId:pt(q.value,S.path)});g.value=w,$.value=e.imageCount}},document:mt,variables:()=>({offset:(I.value-1)*A,limit:A,query:V.value,sortBy:U.value}),appApi:!0});function Ve(){re(d,`/images?page=${I.value}&q=${pe(b.value)}`)}at(I,()=>{Ve()});function Se(e){v.tags.includes(e)?Ct(v.tags,l=>l.id===e.id):v.tags.push(e)}function De(){b.value=Tt(v),se(),G.value.dismiss()}function se(){re(d,`/images?q=${pe(b.value)}`)}function Ae(){d.imageViewType==="grid"?d.imageViewType="list":d.imageViewType="grid"}function Re(){ve.push("/files"),It(Vt,{message:T("upload_images")})}function ze(e,l){e.preventDefault(),St({x:e.x,y:e.y,items:[{label:T("add_to_tags"),onClick:()=>{ee(l)}},{label:T("download"),onClick:()=>{Y(l.path,M(l.path).replace(" ","-"))}},{label:T("delete"),onClick:()=>{W(c,l)}}]})}const oe=e=>{e.type===c&&(B(),H())},le=e=>{e.type===c&&H()},ne=e=>{e.type===c&&(B(),H())},ae=()=>{$.value--};return it(()=>{k.on("item_tags_updated",le),k.on("items_tags_updated",oe),k.on("media_item_deleted",ae),k.on("media_items_deleted",ne)}),dt(()=>{k.off("item_tags_updated",le),k.off("items_tags_updated",oe),k.off("media_item_deleted",ae),k.off("media_items_deleted",ne)}),(e,l)=>{const w=Nt,S=Dt,ce=At,ue=Rt,Ee=Ut,Be=qt,Fe=Mt,Me=Ft,Ue=ht,qe=xe,Ne=Ke,He=zt,Le=Et,Qe=Oe,h=ct("tooltip");return n(),a(C,null,[s("div",Qt,[i(w,{current:()=>`${e.$t("page_title.images")} (${t($)})`},null,8,["current"]),t(J)&&t(d).imageViewType==="list"?(n(),a(C,{key:0},[m((n(),a("button",{class:"icon-button",onClick:l[0]||(l[0]=_(o=>t(ke)(t(c),g.value,t(E),V.value),["stop"]))},[Gt,i(S)])),[[h,e.$t("delete")]]),m((n(),a("button",{class:"icon-button",onClick:l[1]||(l[1]=_(o=>t(we)(t(E),V.value),["stop"]))},[xt,i(ce)])),[[h,e.$t("download")]]),m((n(),a("button",{class:"icon-button",onClick:l[2]||(l[2]=_(o=>t(fe)(t(E),V.value),["stop"]))},[Kt,i(ue)])),[[h,e.$t("add_to_tags")]])],64)):y("",!0),m((n(),a("button",{class:"icon-button",onClick:_(Ae,["stop"])},[Wt,t(d).imageViewType==="list"?(n(),L(Ee,{key:0})):y("",!0),t(d).imageViewType==="grid"?(n(),L(Be,{key:1})):y("",!0)],8,Ot)),[[h,e.$t(t(d).imageViewType==="list"?"view_as_grid":"view_as_list")]]),m((n(),a("button",{class:"icon-button",onClick:_(Re,["prevent"])},[Xt,i(Fe)],8,Pt)),[[h,e.$t("upload")]]),i(Ue,null,{content:Q(o=>[s("div",Yt,[(n(!0),a(C,null,F(t(Ce),f=>(n(),a("md-menu-item",{onClick:p=>Te(o,f.value),selected:f.value===t(U)},[s("div",es,r(e.$t(f.label)),1)],8,Zt))),256))])]),default:Q(()=>[m((n(),a("button",jt,[Jt,i(Me)])),[[h,e.$t("sort")]])]),_:1}),i(qe,{ref_key:"searchInputRef",ref:G,modelValue:b.value,"onUpdate:modelValue":l[4]||(l[4]=o=>b.value=o),search:se},{filters:Q(()=>[s("div",ts,[m(s("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":l[3]||(l[3]=o=>v.text=o),"keyup.enter":"applyAndDoSearch"},null,8,ss),[[gt,v.text]]),s("label",os,r(e.$t("tags")),1),s("md-chip-set",null,[(n(!0),a(C,null,F(t(z),o=>(n(),a("md-filter-chip",{key:o.id,label:o.name,selected:v.tags.includes(o),onClick:f=>Se(o)},null,8,ls))),128))]),s("div",ns,[s("md-filled-button",{onClick:_(De,["stop"])},r(e.$t("search")),9,as)])])]),_:1},8,["modelValue"])]),t(d).imageViewType==="grid"?(n(),a("div",is,[(n(!0),a(C,null,F(N.value,(o,f)=>(n(),a("div",{class:"item",onClick:p=>Z(f),onContextmenu:p=>ze(p,o.data)},[s("img",{class:"image",src:o.src+"&w=300&h=300"},null,8,cs),s("span",us,r(t(me)(o.size)),1)],40,ds))),256))])):y("",!0),i(Ne,{limit:A,total:t($),"all-checked-alert-visible":t(be),"real-all-checked":t(E),"select-real-all":t(ye),"clear-selection":t(B)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t(d).imageViewType==="list"?(n(),a("div",_s,[s("table",rs,[s("thead",null,[s("tr",null,[s("th",null,[s("md-checkbox",{"touch-target":"wrapper",onChange:l[5]||(l[5]=(...o)=>t(X)&&t(X)(...o)),checked:t(P),indeterminate:!t(P)&&t(J)},null,40,ps)]),ms,hs,s("th",null,r(e.$t("name")),1),gs,s("th",null,r(e.$t("tags")),1),s("th",null,r(e.$t("file_size")),1)])]),s("tbody",null,[(n(!0),a(C,null,F(g.value,(o,f)=>(n(),a("tr",{key:o.id,class:vt({selected:o.checked}),onClick:_(p=>t($e)(o),["stop"])},[s("td",null,[s("md-checkbox",{"touch-target":"wrapper",onChange:l[6]||(l[6]=(...p)=>t(j)&&t(j)(...p)),checked:o.checked},null,40,fs)]),s("td",null,[i(He,{id:o.id,raw:o},null,8,["id","raw"])]),s("td",null,[s("img",{src:t(he)(o.fileId)+"&w=300&h=300",width:"50",height:"50",onClick:_(p=>Z(f),["stop"]),style:{cursor:"pointer"}},null,8,ks)]),s("td",null,r(t(M)(o.path)),1),s("td",ys,[s("div",bs,[m((n(),a("button",{class:"icon-button",onClick:_(p=>t(W)(t(c),o),["stop"])},[ws,i(S)],8,$s)),[[h,e.$t("delete")]]),m((n(),a("button",{class:"icon-button",onClick:_(p=>t(Y)(o.path,t(M)(o.path).replace(" ","-")),["stop"])},[Ts,i(ce)],8,Cs)),[[h,e.$t("download")]]),m((n(),a("button",{class:"icon-button",onClick:_(p=>ee(o),["stop"])},[Vs,i(ue)],8,Is)),[[h,e.$t("add_to_tags")]])])]),s("td",null,[i(Le,{tags:o.tags,type:t(c)},null,8,["tags","type"])]),s("td",Ss,r(t(me)(o.size)),1)],10,vs))),128))]),g.value.length?y("",!0):(n(),a("tfoot",Ds,[s("tr",null,[s("td",As,[s("div",Rs,r(e.$t(t(ge)(t(te),t(K).permissions,"WRITE_EXTERNAL_STORAGE"))),1)])])]))])])):y("",!0),t(d).imageViewType==="grid"&&N.value.length===0?(n(),a("div",zs,r(e.$t(t(ge)(t(te),t(K).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):y("",!0),t($)>A?(n(),L(Qe,{key:3,modelValue:I.value,"onUpdate:modelValue":l[7]||(l[7]=o=>I.value=o),total:t($),limit:A},null,8,["modelValue","total"])):y("",!0)],64)}}});const Gs=Bt(Es,[["__scopeId","data-v-d2032d39"]]);export{Gs as default}; diff --git a/app/src/main/resources/web/assets/JsonViewerView-ec331ad2.js b/app/src/main/resources/web/assets/JsonViewerView-38aa3e3c.js similarity index 96% rename from app/src/main/resources/web/assets/JsonViewerView-ec331ad2.js rename to app/src/main/resources/web/assets/JsonViewerView-38aa3e3c.js index 5c9519f1..4f9cf552 100644 --- a/app/src/main/resources/web/assets/JsonViewerView-ec331ad2.js +++ b/app/src/main/resources/web/assets/JsonViewerView-38aa3e3c.js @@ -1 +1 @@ -import{bs as n,d as b,r as d,O as T,P as _,Q as S,o as f,c as k,a as l,p as r,I as E,s as w,e as D,w as C,l as j,t as x,H as v,j as p,n as R,S as H,k as O,_ as A}from"./index-b6c39163.js";import{_ as B}from"./MonacoEditor.vuevuetypescriptsetuptruelang-1dd835fe.js";import{_ as J}from"./Breadcrumb-fef16e9c.js";import{g as y,M as q}from"./splitpanes.es-f516e17d.js";const z=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,I={name:"JsonString",props:{jsonValue:{type:String,required:!0}},data(){return{expand:!0,canExtend:!1}},mounted(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle(){this.expand=!this.expand}},render(){let e=this.jsonValue;const t=z.test(e);let s;return this.expand?(s={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},t?(e=`${e}`,s.innerHTML=`"${e.toString()}"`):s.innerText=`"${e.toString()}"`):s={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},n("span",{},[this.canExtend&&n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),n("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),n("span",s)])}},M={props:{jsonValue:{type:Object,default:null}},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-undefined":!0},innerText:e.jsonValue===null?"null":"undefined"})}},L={props:{jsonValue:{type:Number,required:!0}},setup(e){const t=Number.isInteger(e.jsonValue);return()=>n("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":t,"jv-number-float":!t},innerText:e.jsonValue.toString()})}},P={props:{jsonValue:Boolean},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-boolean":!0},innerText:e.jsonValue.toString()})}},Z={name:"JsonObject",props:{jsonValue:{type:Object,required:!0},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean},data(){return{value:{}}},computed:{ordered(){const e={};return Object.keys(this.value).sort().forEach(t=>{e[t]=this.value[t]}),e}},watch:{jsonValue(e){this.setValue(e)}},mounted(){this.setValue(this.jsonValue)},methods:{setValue(e){setTimeout(()=>{this.value=e},0)},toggle(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},dispatchEvent(){try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){const e=[];this.keyName||e.push(n("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),e.push(n("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"{"}));const t=Object.keys(this.value).length;if(t>0&&e.push(n("span",{class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:t===1?"1 prop":`${t} props`})),this.expand){for(const s in this.ordered)if(this.ordered.hasOwnProperty(s)){const a=this.ordered[s];e.push(n(m,{key:s,style:{display:this.expand?void 0:"none"},keyName:s,expandDepth:this.expandDepth,depth:this.depth+1,value:a}))}}return e.push(n("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"}"})),n("span",e)}},F={name:"JsonArray",props:{jsonValue:{type:Array,required:!0},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean},data(){return{value:[]}},watch:{jsonValue(e){this.setValue(e)}},mounted(){this.setValue(this.jsonValue)},methods:{setValue(e,t=0){t===0&&(this.value=[]),setTimeout(()=>{e.length>t&&(this.value.push(e[t]),this.setValue(e,t+1))},0)},toggle(){this.$emit("update:expand",!this.expand);try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){const e=[];this.keyName||e.push(n("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),e.push(n("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"["}));const t=this.value.length;return t>0&&e.push(n("span",{class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:t==1?"1 item":`${t} items`})),this.expand&&this.value.forEach((s,a)=>{e.push(n(m,{key:a,style:{display:this.expand?void 0:"none"},expandDepth:this.expandDepth,depth:this.depth+1,value:s}))}),e.push(n("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"]"})),n("span",e)}},K={props:{jsonValue:{type:Function,required:!0}},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:e.jsonValue.toString()},innerHTML:"<function>"})}},U={props:{jsonValue:{type:Date,required:!0}},setup(e){const t=e.jsonValue;return()=>n("span",{class:{"jv-item":!0,"jv-string":!0},innerText:`"${t.toLocaleString()}"`})}},G=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,Q={name:"JsonString",props:{jsonValue:{type:RegExp,required:!0}},data(){return{expand:!0,canExtend:!1}},mounted(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle(){this.expand=!this.expand}},render(){let e=this.jsonValue;const t=G.test(e);let s;return this.expand?(s={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},t?(e=`${e}`,s.innerHTML=`${e.toString()}`):s.innerText=`${e.toString()}`):s={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},n("span",{},[this.canExtend&&n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),n("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),n("span",s)])}};const m={name:"JsonBox",props:{value:{type:[Object,Array,String,Number,Boolean,Function,Date],default:null},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0}},data(){return{expand:!0}},mounted(){this.expand=!(this.depth>=this.expandDepth)},methods:{toggle(){this.expand=!this.expand;try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){let e;this.value===null||this.value===void 0?e=M:Array.isArray(this.value)?e=F:Object.prototype.toString.call(this.value)==="[object Date]"?e=U:typeof this.value=="object"?e=Z:typeof this.value=="number"?e=L:typeof this.value=="string"?e=I:typeof this.value=="boolean"?e=P:typeof this.value=="function"&&(e=K),this.value&&this.value.constructor===RegExp&&(e=Q);let t=!1;if(this.keyName&&this.value){if(Array.isArray(this.value)&&this.value.length)t=!0;else if(typeof this.value=="object"){const a=Object.prototype.toString.call(this.value);!["[]","[object Date]"].includes(a)&&Object.keys(this.value).length&&(t=!0)}}const s=[];return t&&s.push(n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle})),this.keyName&&s.push(n("span",{class:{"jv-key":!0},onClick:()=>{console.log(this.keyName)},innerText:`${this.keyName}:`})),s.push(n(e,{class:{"jv-push":!0},jsonValue:this.value,keyName:this.keyName,depth:this.depth,expand:this.expand,expandDepth:this.expandDepth,"onUpdate:expand":a=>{this.expand=a}})),n("div",{class:{"jv-node":!0,"jv-key-node":!!this.keyName&&!t,toggle:t}},s)}},W={class:"jv-code"},X=b({__name:"json-viewer",props:{value:{type:[Object,Array,String,Number,Boolean,Function],required:!0},expandDepth:{type:Number,default:1}},setup(e){const t=d("light"),s=()=>{t.value=document.documentElement.classList[0]==="dark"?"dark":"light"};return T(()=>{_.on("color_mode_changed",s)}),S(()=>{_.off("color_mode_changed",s)}),(a,h)=>{const u=m;return f(),k("div",{class:E(["jv-container",t.value])},[l("div",W,[r(u,{value:e.value,"expand-depth":e.expandDepth},null,8,["value","expand-depth"])])],2)}}});const Y={class:"page-container"},ee={class:"main"},te={class:"v-toolbar"},se=b({__name:"JsonViewerView",setup(e){const{json:t}=w(D()),s=d(null),a=d(1),h=d(1),u=()=>{try{const o=JSON.parse(t.value);s.value=o}catch(o){console.error(o)}};C(t,u),u();function g(o){o?a.value=1e3:a.value=1,h.value++}return(o,i)=>{const V=J,$=B,N=X;return f(),k("div",Y,[l("div",ee,[l("div",te,[r(V,{current:()=>o.$t("json_viewer")},null,8,["current"]),l("md-outlined-button",{onClick:i[0]||(i[0]=j(c=>g(!0),["prevent"]))},x(o.$t("expand_all")),1),l("md-outlined-button",{onClick:i[1]||(i[1]=j(c=>g(!1),["prevent"]))},x(o.$t("collapse_all")),1)]),r(p(q),{class:"panel-container"},{default:v(()=>[r(p(y),null,{default:v(()=>[r($,{language:"json",modelValue:p(t),"onUpdate:modelValue":i[2]||(i[2]=c=>R(t)?t.value=c:null)},null,8,["modelValue"])]),_:1}),r(p(y),null,{default:v(()=>[s.value?(f(),H(N,{value:s.value,"expand-depth":a.value,key:h.value},null,8,["value","expand-depth"])):O("",!0)]),_:1})]),_:1})])])}}});const re=A(se,[["__scopeId","data-v-862c219a"]]);export{re as default}; +import{bs as n,d as b,r as d,O as T,P as _,Q as S,o as f,c as k,a as l,p as r,I as E,s as w,e as D,w as C,l as j,t as x,H as v,j as p,n as R,S as H,k as O,_ as A}from"./index-1dff6785.js";import{_ as B}from"./MonacoEditor.vuevuetypescriptsetuptruelang-fd107f07.js";import{_ as J}from"./Breadcrumb-cba2b95b.js";import{g as y,M as q}from"./splitpanes.es-e9e41ca8.js";const z=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,I={name:"JsonString",props:{jsonValue:{type:String,required:!0}},data(){return{expand:!0,canExtend:!1}},mounted(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle(){this.expand=!this.expand}},render(){let e=this.jsonValue;const t=z.test(e);let s;return this.expand?(s={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},t?(e=`${e}`,s.innerHTML=`"${e.toString()}"`):s.innerText=`"${e.toString()}"`):s={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},n("span",{},[this.canExtend&&n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),n("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),n("span",s)])}},M={props:{jsonValue:{type:Object,default:null}},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-undefined":!0},innerText:e.jsonValue===null?"null":"undefined"})}},L={props:{jsonValue:{type:Number,required:!0}},setup(e){const t=Number.isInteger(e.jsonValue);return()=>n("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":t,"jv-number-float":!t},innerText:e.jsonValue.toString()})}},P={props:{jsonValue:Boolean},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-boolean":!0},innerText:e.jsonValue.toString()})}},Z={name:"JsonObject",props:{jsonValue:{type:Object,required:!0},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean},data(){return{value:{}}},computed:{ordered(){const e={};return Object.keys(this.value).sort().forEach(t=>{e[t]=this.value[t]}),e}},watch:{jsonValue(e){this.setValue(e)}},mounted(){this.setValue(this.jsonValue)},methods:{setValue(e){setTimeout(()=>{this.value=e},0)},toggle(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},dispatchEvent(){try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){const e=[];this.keyName||e.push(n("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),e.push(n("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"{"}));const t=Object.keys(this.value).length;if(t>0&&e.push(n("span",{class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:t===1?"1 prop":`${t} props`})),this.expand){for(const s in this.ordered)if(this.ordered.hasOwnProperty(s)){const a=this.ordered[s];e.push(n(m,{key:s,style:{display:this.expand?void 0:"none"},keyName:s,expandDepth:this.expandDepth,depth:this.depth+1,value:a}))}}return e.push(n("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"}"})),n("span",e)}},F={name:"JsonArray",props:{jsonValue:{type:Array,required:!0},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean},data(){return{value:[]}},watch:{jsonValue(e){this.setValue(e)}},mounted(){this.setValue(this.jsonValue)},methods:{setValue(e,t=0){t===0&&(this.value=[]),setTimeout(()=>{e.length>t&&(this.value.push(e[t]),this.setValue(e,t+1))},0)},toggle(){this.$emit("update:expand",!this.expand);try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){const e=[];this.keyName||e.push(n("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),e.push(n("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"["}));const t=this.value.length;return t>0&&e.push(n("span",{class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:t==1?"1 item":`${t} items`})),this.expand&&this.value.forEach((s,a)=>{e.push(n(m,{key:a,style:{display:this.expand?void 0:"none"},expandDepth:this.expandDepth,depth:this.depth+1,value:s}))}),e.push(n("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"]"})),n("span",e)}},K={props:{jsonValue:{type:Function,required:!0}},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:e.jsonValue.toString()},innerHTML:"<function>"})}},U={props:{jsonValue:{type:Date,required:!0}},setup(e){const t=e.jsonValue;return()=>n("span",{class:{"jv-item":!0,"jv-string":!0},innerText:`"${t.toLocaleString()}"`})}},G=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,Q={name:"JsonString",props:{jsonValue:{type:RegExp,required:!0}},data(){return{expand:!0,canExtend:!1}},mounted(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle(){this.expand=!this.expand}},render(){let e=this.jsonValue;const t=G.test(e);let s;return this.expand?(s={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},t?(e=`${e}`,s.innerHTML=`${e.toString()}`):s.innerText=`${e.toString()}`):s={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},n("span",{},[this.canExtend&&n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),n("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),n("span",s)])}};const m={name:"JsonBox",props:{value:{type:[Object,Array,String,Number,Boolean,Function,Date],default:null},expandDepth:{type:Number,default:1},keyName:{type:String,default:""},depth:{type:Number,default:0}},data(){return{expand:!0}},mounted(){this.expand=!(this.depth>=this.expandDepth)},methods:{toggle(){this.expand=!this.expand;try{this.$el.dispatchEvent(new Event("resized"))}catch{}}},render(){let e;this.value===null||this.value===void 0?e=M:Array.isArray(this.value)?e=F:Object.prototype.toString.call(this.value)==="[object Date]"?e=U:typeof this.value=="object"?e=Z:typeof this.value=="number"?e=L:typeof this.value=="string"?e=I:typeof this.value=="boolean"?e=P:typeof this.value=="function"&&(e=K),this.value&&this.value.constructor===RegExp&&(e=Q);let t=!1;if(this.keyName&&this.value){if(Array.isArray(this.value)&&this.value.length)t=!0;else if(typeof this.value=="object"){const a=Object.prototype.toString.call(this.value);!["[]","[object Date]"].includes(a)&&Object.keys(this.value).length&&(t=!0)}}const s=[];return t&&s.push(n("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle})),this.keyName&&s.push(n("span",{class:{"jv-key":!0},onClick:()=>{console.log(this.keyName)},innerText:`${this.keyName}:`})),s.push(n(e,{class:{"jv-push":!0},jsonValue:this.value,keyName:this.keyName,depth:this.depth,expand:this.expand,expandDepth:this.expandDepth,"onUpdate:expand":a=>{this.expand=a}})),n("div",{class:{"jv-node":!0,"jv-key-node":!!this.keyName&&!t,toggle:t}},s)}},W={class:"jv-code"},X=b({__name:"json-viewer",props:{value:{type:[Object,Array,String,Number,Boolean,Function],required:!0},expandDepth:{type:Number,default:1}},setup(e){const t=d("light"),s=()=>{t.value=document.documentElement.classList[0]==="dark"?"dark":"light"};return T(()=>{_.on("color_mode_changed",s)}),S(()=>{_.off("color_mode_changed",s)}),(a,h)=>{const u=m;return f(),k("div",{class:E(["jv-container",t.value])},[l("div",W,[r(u,{value:e.value,"expand-depth":e.expandDepth},null,8,["value","expand-depth"])])],2)}}});const Y={class:"page-container"},ee={class:"main"},te={class:"v-toolbar"},se=b({__name:"JsonViewerView",setup(e){const{json:t}=w(D()),s=d(null),a=d(1),h=d(1),u=()=>{try{const o=JSON.parse(t.value);s.value=o}catch(o){console.error(o)}};C(t,u),u();function g(o){o?a.value=1e3:a.value=1,h.value++}return(o,i)=>{const V=J,$=B,N=X;return f(),k("div",Y,[l("div",ee,[l("div",te,[r(V,{current:()=>o.$t("json_viewer")},null,8,["current"]),l("md-outlined-button",{onClick:i[0]||(i[0]=j(c=>g(!0),["prevent"]))},x(o.$t("expand_all")),1),l("md-outlined-button",{onClick:i[1]||(i[1]=j(c=>g(!1),["prevent"]))},x(o.$t("collapse_all")),1)]),r(p(q),{class:"panel-container"},{default:v(()=>[r(p(y),null,{default:v(()=>[r($,{language:"json",modelValue:p(t),"onUpdate:modelValue":i[2]||(i[2]=c=>R(t)?t.value=c:null)},null,8,["modelValue"])]),_:1}),r(p(y),null,{default:v(()=>[s.value?(f(),H(N,{value:s.value,"expand-depth":a.value,key:h.value},null,8,["value","expand-depth"])):O("",!0)]),_:1})]),_:1})])])}}});const re=A(se,[["__scopeId","data-v-862c219a"]]);export{re as default}; diff --git a/app/src/main/resources/web/assets/LoginView-801bb47e.js b/app/src/main/resources/web/assets/LoginView-5d854c8b.js similarity index 98% rename from app/src/main/resources/web/assets/LoginView-801bb47e.js rename to app/src/main/resources/web/assets/LoginView-5d854c8b.js index 0de82e00..3ab9ae49 100644 --- a/app/src/main/resources/web/assets/LoginView-801bb47e.js +++ b/app/src/main/resources/web/assets/LoginView-5d854c8b.js @@ -1 +1 @@ -import{d as G,r as h,u as Z,an as Q,co as X,cp as Y,cq as ee,cr as se,cs as ne,ct as te,cu as oe,aZ as re,cv as N,c as A,a as b,p as M,t as g,m as E,aW as x,l as ie,j as c,n as ae,ap as le,v as ue,k as P,h as ce,F as de,cw as fe,o as T,cx as me,cy as we,_ as ve}from"./index-b6c39163.js";import{u as be,a as pe}from"./vee-validate.esm-03fad591.js";function W(n){let t=n;if(typeof t>"u"){if(typeof navigator>"u"||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function L(n,t){try{return new RegExp(n,"g").exec(t)}catch{return null}}function D(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;const t=navigator.userAgentData.brands;return!!(t&&t.length)}function ge(n,t){const o=L(`(${n})((?:\\/|\\s|:)([0-9|\\.|_]+))`,t);return o?o[3]:""}function $(n){return n.replace(/_/g,".")}function V(n,t){let o=null,e="-1";return n.some(r=>{const a=L(`(${r.test})((?:\\/|\\s|:)([0-9|\\.|_]+))?`,t);return!a||r.brand?!1:(o=r,e=a[3]||"-1",r.versionAlias?e=r.versionAlias:r.versionTest&&(e=ge(r.versionTest.toLowerCase(),t)||e),e=$(e),!0)}),{preset:o,version:e}}function _(n,t){const o={brand:"",version:"-1"};return n.some(e=>{const r=F(t,e);return r?(o.brand=e.id,o.version=e.versionAlias||r.version,o.version!=="-1"):!1}),o}function F(n,t){return n.find(o=>L(`${t.test}`,o.brand.toLowerCase()))}const I=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],O=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],R=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],U=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],H=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function K(n){return!!V(U,n).preset}function he(n){const t=W(n),o=!!/mobi/g.exec(t),e={name:"unknown",version:"-1",majorVersion:-1,webview:K(t),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},r={name:"unknown",version:"-1",majorVersion:-1},{preset:a,version:w}=V(I,t),{preset:s,version:l}=V(H,t),p=V(O,t);if(e.chromium=!!p.preset,e.chromiumVersion=p.version,!e.chromium){const f=V(R,t);e.webkit=!!f.preset,e.webkitVersion=f.version}return s&&(r.name=s.id,r.version=l,r.majorVersion=parseInt(l,10)),a&&(e.name=a.id,e.version=w,e.webview&&r.name==="ios"&&e.name!=="safari"&&(e.webview=!1)),e.majorVersion=parseInt(e.version,10),{browser:e,os:r,isMobile:o,isHints:!1}}function q(n){const t=navigator.userAgentData,o=[...t.brands],e=n&&n.fullVersionList,r=t.mobile||!1,a=o[0],w=(n&&n.platform||t.platform||navigator.platform).toLowerCase(),s={name:a.brand,version:a.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!_(U,o).brand||K(W())},l={name:"unknown",version:"-1",majorVersion:-1};s.webkit=!s.chromium&&R.some(i=>F(o,i));const p=_(O,o);if(s.chromium=!!p.brand,s.chromiumVersion=p.version,!s.chromium){const i=_(R,o);s.webkit=!!i.brand,s.webkitVersion=i.version}const f=H.find(i=>new RegExp(`${i.test}`,"g").exec(w));if(l.name=f?f.id:"",n&&(l.version=n.platformVersion),e&&e.length){const i=_(I,e);s.name=i.brand||s.name,s.version=i.version||s.version}else{const i=_(I,o);s.name=i.brand||s.name,s.version=i.brand&&n?n.uaFullVersion:i.version}return s.webkit&&(l.name=r?"ios":"mac"),l.name==="ios"&&s.webview&&(s.version="-1"),l.version=$(l.version),s.version=$(s.version),l.majorVersion=parseInt(l.version,10),s.majorVersion=parseInt(s.version,10),{browser:s,os:l,isMobile:r,isHints:!0}}async function _e(){if(D()){const n=await navigator.userAgentData.getHighEntropyValues(["architecture","model","platform","platformVersion","uaFullVersion","fullVersionList"]);return q(n)}return Ve()}function Ve(n){return typeof n>"u"&&D()?q():he(n)}const ye={class:"header"},ke={class:"login-block"},Se=["label","error","error-text"],Ae=["disabled"],Ee={class:"tap-phone"},Te={key:0,class:"tips"},Be=G({__name:"LoginView",setup(n){const{handleSubmit:t,isSubmitting:o}=be(),e=h(!1),r=h(!0),a=h(!1),w=h("");let s;const l=window.location.protocol==="http:"?!1:!window.navigator.userAgentData,{t:p}=Z(),{value:f,errorMessage:i}=pe("password",Q().required()),B=h(!1);async function z(){const d=await fetch(`${N()}/init`,{method:"POST",headers:fe()});if(d.status===403){e.value=!0,r.value=!0,w.value="web_access_disabled";return}r.value=!1;const m=await d.text();m?(f.value=m,B.value=!1):B.value=!0}z();const y=t(async()=>{const d=localStorage.getItem("client_id");s=new WebSocket(`${X()}?cid=${d}&auth=1`);const m=f.value??"",k=Y(m),v=ee(k);w.value="",e.value=!1,s.onopen=async()=>{o.value=!0;const u=await _e(),S=se(v,JSON.stringify({password:k,browserName:u.browser.name,browserVersion:u.browser.version,osName:u.os.name,osVersion:u.os.version,isMobile:u.isMobile}));s.send(ne(S))},s.onmessage=async u=>{var C;const S=te(v,oe(await u.data.arrayBuffer())),j=JSON.parse(S);j.status==="PENDING"?a.value=!0:(localStorage.setItem("auth_token",j.token),s.close(),window.location.href=((C=re.currentRoute.value.query.redirect)==null?void 0:C.toString())??"/")},s.onclose=async u=>{if(!(u.reason==="abort"||u.reason==="OK")){if(o.value=!1,e.value=!0,a.value=!1,!u.reason&&(await fetch(`${N()}/health_check`)).status===200){w.value="failed_connect_ws";return}w.value=`login.${u.reason?u.reason:"failed"}`}},window.setTimeout(function(){s.readyState!==1&&s.close(3001,"timeout")},2e3)});function J(){a.value=!1,e.value=!1,o.value=!1,s.close(3001,"abort")}return(d,m)=>{const k=we;return T(),A(de,null,[b("header",ye,[M(k,{"logged-in":!1})]),b("h1",null,g(d.$t("app_name")),1),b("div",ke,[E(b("form",{onSubmit:m[2]||(m[2]=ie((...v)=>c(y)&&c(y)(...v),["prevent"]))},[E(b("div",{class:"alert alert-danger",role:"alert"},g(w.value?d.$t(w.value):""),513),[[x,e.value]]),B.value?E((T(),A("md-outlined-text-field",{key:0,label:c(p)("password"),"onUpdate:modelValue":m[0]||(m[0]=v=>ae(f)?f.value=v:null),onKeydown:m[1]||(m[1]=le((...v)=>c(y)&&c(y)(...v),["enter"])),type:"password",class:"form-control",error:c(i),"error-text":c(i)?d.$t(c(i)):""},null,40,Se)),[[ue,c(f)]]):P("",!0),r.value?P("",!0):(T(),A("md-filled-button",{key:1,disabled:c(o)},g(d.$t(c(o)?"logging_in":"log_in")),9,Ae))],544),[[x,!a.value]]),E(b("div",null,[b("div",Ee,[M(c(me))]),ce(" "+g(d.$t("login.to_continue"))+" ",1),b("md-outlined-button",{onClick:J},g(d.$t("cancel")),1)],512),[[x,a.value]])]),c(l)?(T(),A("div",Te,g(d.$t("browser_warning")),1)):P("",!0)],64)}}});const $e=ve(Be,[["__scopeId","data-v-9b768f98"]]);export{$e as default}; +import{d as G,r as h,u as Z,an as Q,co as X,cp as Y,cq as ee,cr as se,cs as ne,ct as te,cu as oe,aZ as re,cv as N,c as A,a as b,p as M,t as g,m as E,aW as x,l as ie,j as c,n as ae,ap as le,v as ue,k as P,h as ce,F as de,cw as fe,o as T,cx as me,cy as we,_ as ve}from"./index-1dff6785.js";import{u as be,a as pe}from"./vee-validate.esm-b0b47415.js";function W(n){let t=n;if(typeof t>"u"){if(typeof navigator>"u"||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function L(n,t){try{return new RegExp(n,"g").exec(t)}catch{return null}}function D(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;const t=navigator.userAgentData.brands;return!!(t&&t.length)}function ge(n,t){const o=L(`(${n})((?:\\/|\\s|:)([0-9|\\.|_]+))`,t);return o?o[3]:""}function $(n){return n.replace(/_/g,".")}function V(n,t){let o=null,e="-1";return n.some(r=>{const a=L(`(${r.test})((?:\\/|\\s|:)([0-9|\\.|_]+))?`,t);return!a||r.brand?!1:(o=r,e=a[3]||"-1",r.versionAlias?e=r.versionAlias:r.versionTest&&(e=ge(r.versionTest.toLowerCase(),t)||e),e=$(e),!0)}),{preset:o,version:e}}function _(n,t){const o={brand:"",version:"-1"};return n.some(e=>{const r=F(t,e);return r?(o.brand=e.id,o.version=e.versionAlias||r.version,o.version!=="-1"):!1}),o}function F(n,t){return n.find(o=>L(`${t.test}`,o.brand.toLowerCase()))}const I=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],O=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],R=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],U=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],H=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function K(n){return!!V(U,n).preset}function he(n){const t=W(n),o=!!/mobi/g.exec(t),e={name:"unknown",version:"-1",majorVersion:-1,webview:K(t),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},r={name:"unknown",version:"-1",majorVersion:-1},{preset:a,version:w}=V(I,t),{preset:s,version:l}=V(H,t),p=V(O,t);if(e.chromium=!!p.preset,e.chromiumVersion=p.version,!e.chromium){const f=V(R,t);e.webkit=!!f.preset,e.webkitVersion=f.version}return s&&(r.name=s.id,r.version=l,r.majorVersion=parseInt(l,10)),a&&(e.name=a.id,e.version=w,e.webview&&r.name==="ios"&&e.name!=="safari"&&(e.webview=!1)),e.majorVersion=parseInt(e.version,10),{browser:e,os:r,isMobile:o,isHints:!1}}function q(n){const t=navigator.userAgentData,o=[...t.brands],e=n&&n.fullVersionList,r=t.mobile||!1,a=o[0],w=(n&&n.platform||t.platform||navigator.platform).toLowerCase(),s={name:a.brand,version:a.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!_(U,o).brand||K(W())},l={name:"unknown",version:"-1",majorVersion:-1};s.webkit=!s.chromium&&R.some(i=>F(o,i));const p=_(O,o);if(s.chromium=!!p.brand,s.chromiumVersion=p.version,!s.chromium){const i=_(R,o);s.webkit=!!i.brand,s.webkitVersion=i.version}const f=H.find(i=>new RegExp(`${i.test}`,"g").exec(w));if(l.name=f?f.id:"",n&&(l.version=n.platformVersion),e&&e.length){const i=_(I,e);s.name=i.brand||s.name,s.version=i.version||s.version}else{const i=_(I,o);s.name=i.brand||s.name,s.version=i.brand&&n?n.uaFullVersion:i.version}return s.webkit&&(l.name=r?"ios":"mac"),l.name==="ios"&&s.webview&&(s.version="-1"),l.version=$(l.version),s.version=$(s.version),l.majorVersion=parseInt(l.version,10),s.majorVersion=parseInt(s.version,10),{browser:s,os:l,isMobile:r,isHints:!0}}async function _e(){if(D()){const n=await navigator.userAgentData.getHighEntropyValues(["architecture","model","platform","platformVersion","uaFullVersion","fullVersionList"]);return q(n)}return Ve()}function Ve(n){return typeof n>"u"&&D()?q():he(n)}const ye={class:"header"},ke={class:"login-block"},Se=["label","error","error-text"],Ae=["disabled"],Ee={class:"tap-phone"},Te={key:0,class:"tips"},Be=G({__name:"LoginView",setup(n){const{handleSubmit:t,isSubmitting:o}=be(),e=h(!1),r=h(!0),a=h(!1),w=h("");let s;const l=window.location.protocol==="http:"?!1:!window.navigator.userAgentData,{t:p}=Z(),{value:f,errorMessage:i}=pe("password",Q().required()),B=h(!1);async function z(){const d=await fetch(`${N()}/init`,{method:"POST",headers:fe()});if(d.status===403){e.value=!0,r.value=!0,w.value="web_access_disabled";return}r.value=!1;const m=await d.text();m?(f.value=m,B.value=!1):B.value=!0}z();const y=t(async()=>{const d=localStorage.getItem("client_id");s=new WebSocket(`${X()}?cid=${d}&auth=1`);const m=f.value??"",k=Y(m),v=ee(k);w.value="",e.value=!1,s.onopen=async()=>{o.value=!0;const u=await _e(),S=se(v,JSON.stringify({password:k,browserName:u.browser.name,browserVersion:u.browser.version,osName:u.os.name,osVersion:u.os.version,isMobile:u.isMobile}));s.send(ne(S))},s.onmessage=async u=>{var C;const S=te(v,oe(await u.data.arrayBuffer())),j=JSON.parse(S);j.status==="PENDING"?a.value=!0:(localStorage.setItem("auth_token",j.token),s.close(),window.location.href=((C=re.currentRoute.value.query.redirect)==null?void 0:C.toString())??"/")},s.onclose=async u=>{if(!(u.reason==="abort"||u.reason==="OK")){if(o.value=!1,e.value=!0,a.value=!1,!u.reason&&(await fetch(`${N()}/health_check`)).status===200){w.value="failed_connect_ws";return}w.value=`login.${u.reason?u.reason:"failed"}`}},window.setTimeout(function(){s.readyState!==1&&s.close(3001,"timeout")},2e3)});function J(){a.value=!1,e.value=!1,o.value=!1,s.close(3001,"abort")}return(d,m)=>{const k=we;return T(),A(de,null,[b("header",ye,[M(k,{"logged-in":!1})]),b("h1",null,g(d.$t("app_name")),1),b("div",ke,[E(b("form",{onSubmit:m[2]||(m[2]=ie((...v)=>c(y)&&c(y)(...v),["prevent"]))},[E(b("div",{class:"alert alert-danger",role:"alert"},g(w.value?d.$t(w.value):""),513),[[x,e.value]]),B.value?E((T(),A("md-outlined-text-field",{key:0,label:c(p)("password"),"onUpdate:modelValue":m[0]||(m[0]=v=>ae(f)?f.value=v:null),onKeydown:m[1]||(m[1]=le((...v)=>c(y)&&c(y)(...v),["enter"])),type:"password",class:"form-control",error:c(i),"error-text":c(i)?d.$t(c(i)):""},null,40,Se)),[[ue,c(f)]]):P("",!0),r.value?P("",!0):(T(),A("md-filled-button",{key:1,disabled:c(o)},g(d.$t(c(o)?"logging_in":"log_in")),9,Ae))],544),[[x,!a.value]]),E(b("div",null,[b("div",Ee,[M(c(me))]),ce(" "+g(d.$t("login.to_continue"))+" ",1),b("md-outlined-button",{onClick:J},g(d.$t("cancel")),1)],512),[[x,a.value]])]),c(l)?(T(),A("div",Te,g(d.$t("browser_warning")),1)):P("",!0)],64)}}});const $e=ve(Be,[["__scopeId","data-v-9b768f98"]]);export{$e as default}; diff --git a/app/src/main/resources/web/assets/MessagesRootView-28bdd183.js b/app/src/main/resources/web/assets/MessagesRootView-9e04ac1b.js similarity index 75% rename from app/src/main/resources/web/assets/MessagesRootView-28bdd183.js rename to app/src/main/resources/web/assets/MessagesRootView-9e04ac1b.js index f3291742..aee8194f 100644 --- a/app/src/main/resources/web/assets/MessagesRootView-28bdd183.js +++ b/app/src/main/resources/web/assets/MessagesRootView-9e04ac1b.js @@ -1 +1 @@ -import{_ as $}from"./TagFilter.vuevuetypescriptsetuptruelang-873baaa8.js";import{d as w,D as M,e as S,E as B,G as N,c as p,p as a,H as i,j as e,o as m,a as s,t as c,l as d,I as u,F as z,J as T,C as f}from"./index-b6c39163.js";import{g,M as V}from"./splitpanes.es-f516e17d.js";import"./EditValueModal-f5302cb7.js";import"./vee-validate.esm-03fad591.js";const b={class:"page-container"},D={class:"sidebar"},E={class:"nav-title"},F={class:"nav"},R=["onClick"],j=["onClick"],q={class:"main"},K=w({__name:"MessagesRootView",setup(x){const n=M(),l=S(),r=n.params.type,_=r?"":B(n.query);function h(t){f(l,`/messages/${t}`)}const v=["inbox","sent","drafts"];function y(){f(l,"/messages")}return(t,G)=>{const C=$,k=N("router-view");return m(),p("div",b,[a(e(V),null,{default:i(()=>[a(e(g),{size:"20","min-size":"10"},{default:i(()=>[s("div",D,[s("h2",E,c(t.$t("page_title.messages")),1),s("ul",F,[s("li",{onClick:d(y,["prevent"]),class:u({active:e(n).path==="/messages"&&!e(_)})},c(t.$t("all")),11,R),(m(),p(z,null,T(v,o=>s("li",{key:o,onClick:d(H=>h(o),["prevent"]),class:u({active:o===e(r)})},c(t.$t(`message_type.${o}`)),11,j)),64))]),a(C,{type:"SMS",selected:e(_)},null,8,["selected"])])]),_:1}),a(e(g),null,{default:i(()=>[s("div",q,[a(k)])]),_:1})]),_:1})])}}});export{K as default}; +import{_ as $}from"./TagFilter.vuevuetypescriptsetuptruelang-2bcd90c5.js";import{d as w,D as M,e as S,E as B,G as N,c as p,p as a,H as i,j as e,o as m,a as s,t as c,l as d,I as u,F as z,J as T,C as f}from"./index-1dff6785.js";import{g,M as V}from"./splitpanes.es-e9e41ca8.js";import"./EditValueModal-1892701b.js";import"./vee-validate.esm-b0b47415.js";const b={class:"page-container"},D={class:"sidebar"},E={class:"nav-title"},F={class:"nav"},R=["onClick"],j=["onClick"],q={class:"main"},K=w({__name:"MessagesRootView",setup(x){const n=M(),l=S(),r=n.params.type,_=r?"":B(n.query);function h(t){f(l,`/messages/${t}`)}const v=["inbox","sent","drafts"];function y(){f(l,"/messages")}return(t,G)=>{const C=$,k=N("router-view");return m(),p("div",b,[a(e(V),null,{default:i(()=>[a(e(g),{size:"20","min-size":"10"},{default:i(()=>[s("div",D,[s("h2",E,c(t.$t("page_title.messages")),1),s("ul",F,[s("li",{onClick:d(y,["prevent"]),class:u({active:e(n).path==="/messages"&&!e(_)})},c(t.$t("all")),11,R),(m(),p(z,null,T(v,o=>s("li",{key:o,onClick:d(H=>h(o),["prevent"]),class:u({active:o===e(r)})},c(t.$t(`message_type.${o}`)),11,j)),64))]),a(C,{type:"SMS",selected:e(_)},null,8,["selected"])])]),_:1}),a(e(g),null,{default:i(()=>[s("div",q,[a(k)])]),_:1})]),_:1})])}}});export{K as default}; diff --git a/app/src/main/resources/web/assets/MessagesView-11e13c43.js b/app/src/main/resources/web/assets/MessagesView-b10b36c7.js similarity index 95% rename from app/src/main/resources/web/assets/MessagesView-11e13c43.js rename to app/src/main/resources/web/assets/MessagesView-b10b36c7.js index 495042d7..fd334318 100644 --- a/app/src/main/resources/web/assets/MessagesView-11e13c43.js +++ b/app/src/main/resources/web/assets/MessagesView-b10b36c7.js @@ -1 +1 @@ -import{u as ue,_ as _e,a as pe,b as me}from"./list-6c4ddffc.js";import{d as he,e as ge,s as fe,f as ke,r as g,u as ve,K as ye,L as be,D as $e,M as Te,N as Ce,w as Se,O as we,P as $,Q as Ve,R as De,c as d,a as e,p as r,j as a,m as T,l as C,k as M,H as Me,t as o,F as q,J as G,S as qe,T as Ae,U as Re,x as Ie,V as Le,C as S,W as w,o as n,v as Ue,I as Be,X as Qe,Y as He,h as Ne,Z as Fe,$ as ze,a0 as xe,a1 as Ee,a2 as Ke,a3 as Pe,a4 as je,a5 as Ge,a6 as Je}from"./index-b6c39163.js";import{_ as Oe}from"./Breadcrumb-fef16e9c.js";import{u as We,a as Xe}from"./tags-3bd6efbc.js";import"./vee-validate.esm-03fad591.js";const Ye={class:"v-toolbar"},Ze=e("md-ripple",null,null,-1),et={class:"filters"},tt=["label"],st={class:"form-label"},at=["label","selected","onClick"],lt={class:"buttons"},ot=["onClick"],nt={class:"table-responsive"},dt={class:"table"},ct=["checked","indeterminate"],it=e("th",null,"ID",-1),rt=e("th",null,null,-1),ut=["onClick"],_t=["checked"],pt=["innerHTML"],mt={class:"nowrap"},ht={class:"action-btns"},gt=["onClick"],ft=e("md-ripple",null,null,-1),kt={class:"nowrap"},vt={class:"nowrap"},yt={class:"nowrap"},bt={key:0},$t={colspan:"8"},Tt={class:"no-data-placeholder"},f=50,qt=he({__name:"MessagesView",setup(Ct){var K,P;const k=ge(),{app:J}=fe(ke()),p=g([]),A=g(),{t:O}=ve(),c=ye({text:"",tags:[]}),u=be.SMS,R=$e(),I=R.query,v=g(parseInt(((K=I.page)==null?void 0:K.toString())??"1")),i=g(Te(((P=I.q)==null?void 0:P.toString())??"")),V=g(""),{tags:y}=We(u,i,c,async t=>{_&&t.push({name:"type",op:"",value:se[_].toString()}),V.value=Ae(t),await Re(),te()}),{addToTags:W}=Xe(u,p,y),{allChecked:L,realAllChecked:U,selectRealAll:X,allCheckedAlertVisible:Y,clearSelection:B,toggleAllChecked:Q,toggleItemChecked:H,toggleRow:Z,total:m,checked:N}=ue(p),{loading:ee,load:te,refetch:F}=Ce({handle:(t,l)=>{l?Ie(O(l),"error"):t&&(p.value=t.messages.map(h=>({...h,checked:!1})),m.value=t.messageCount)},document:Le,variables:()=>({offset:(v.value-1)*f,limit:f,query:V.value}),appApi:!0}),_=R.params.type,se={inbox:1,sent:2,drafts:3,outbox:4};Se(v,t=>{_?S(k,`/messages/${_}?page=${t}&q=${w(i.value)}`):S(k,`/messages?page=${t}&q=${w(i.value)}`)});function ae(t){c.tags.includes(t)?xe(c.tags,l=>l.id===t.id):c.tags.push(t)}function le(){i.value=Ee(c),z(),A.value.dismiss()}function oe(t){Ke(Pe,{type:u,tags:y.value,item:{key:t.id,title:"",size:0},selected:y.value.filter(l=>t.tags.some(h=>h.id===l.id))})}function z(){_?S(k,`/messages/${_}?q=${w(i.value)}`):S(k,`/messages?q=${w(i.value)}`)}const x=t=>{t.type===u&&(B(),F())},E=t=>{t.type===u&&F()};return we(()=>{$.on("item_tags_updated",E),$.on("items_tags_updated",x)}),Ve(()=>{$.off("item_tags_updated",E),$.off("items_tags_updated",x)}),(t,l)=>{const h=Oe,j=je,ne=_e,de=pe,ce=Ge,ie=Je,re=me,D=De("tooltip");return n(),d(q,null,[e("div",Ye,[r(h,{current:()=>`${t.$t("page_title.messages")} (${a(m)})`},null,8,["current"]),a(N)?T((n(),d("button",{key:0,class:"icon-button",onClick:l[0]||(l[0]=C(s=>a(W)(a(U),V.value),["stop"]))},[Ze,r(j)])),[[D,t.$t("add_to_tags")]]):M("",!0),r(ne,{ref_key:"searchInputRef",ref:A,modelValue:i.value,"onUpdate:modelValue":l[2]||(l[2]=s=>i.value=s),search:z},{filters:Me(()=>[e("div",et,[T(e("md-outlined-text-field",{label:t.$t("keywords"),"onUpdate:modelValue":l[1]||(l[1]=s=>c.text=s),"keyup.enter":"applyAndDoSearch"},null,8,tt),[[Ue,c.text]]),e("label",st,o(t.$t("tags")),1),e("md-chip-set",null,[(n(!0),d(q,null,G(a(y),s=>(n(),d("md-filter-chip",{key:s.id,label:s.name,selected:c.tags.includes(s),onClick:b=>ae(s)},null,8,at))),128))]),e("div",lt,[e("md-filled-button",{onClick:C(le,["stop"])},o(t.$t("search")),9,ot)])])]),_:1},8,["modelValue"])]),r(de,{limit:f,total:a(m),"all-checked-alert-visible":a(Y),"real-all-checked":a(U),"select-real-all":a(X),"clear-selection":a(B)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),e("div",nt,[e("table",dt,[e("thead",null,[e("tr",null,[e("th",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:l[3]||(l[3]=(...s)=>a(Q)&&a(Q)(...s)),checked:a(L),indeterminate:!a(L)&&a(N)},null,40,ct)]),it,e("th",null,o(t.$t("content")),1),rt,e("th",null,o(t.$t("sms_address")),1),e("th",null,o(t.$t("type")),1),e("th",null,o(t.$t("tags")),1),e("th",null,o(t.$t("time")),1)])]),e("tbody",null,[(n(!0),d(q,null,G(p.value,s=>(n(),d("tr",{key:s.id,class:Be({selected:s.checked}),onClick:C(b=>a(Z)(s),["stop"])},[e("td",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:l[4]||(l[4]=(...b)=>a(H)&&a(H)(...b)),checked:s.checked},null,40,_t)]),e("td",null,[r(ce,{id:s.id,raw:s},null,8,["id","raw"])]),e("td",{innerHTML:a(Qe)(s.body)},null,8,pt),e("td",mt,[e("div",ht,[T((n(),d("button",{class:"icon-button",onClick:C(b=>oe(s),["stop"])},[ft,r(j)],8,gt)),[[D,t.$t("add_to_tags")]])])]),e("td",kt,o(s.address),1),e("td",vt,o(t.$t(`message_type.${s.type}`)),1),e("td",null,[r(ie,{tags:s.tags,type:a(u)},null,8,["tags","type"])]),e("td",yt,[T((n(),d("span",null,[Ne(o(a(Fe)(s.date)),1)])),[[D,a(He)(s.date)]])])],10,ut))),128))]),p.value.length?M("",!0):(n(),d("tfoot",bt,[e("tr",null,[e("td",$t,[e("div",Tt,o(t.$t(a(ze)(a(ee),a(J).permissions,"READ_SMS"))),1)])])]))])]),a(m)>f?(n(),qe(re,{key:0,modelValue:v.value,"onUpdate:modelValue":l[5]||(l[5]=s=>v.value=s),total:a(m),limit:f},null,8,["modelValue","total"])):M("",!0)],64)}}});export{qt as default}; +import{u as ue,_ as _e,a as pe,b as me}from"./list-0d76acfa.js";import{d as he,e as ge,s as fe,f as ke,r as g,u as ve,K as ye,L as be,D as $e,M as Te,N as Ce,w as Se,O as we,P as $,Q as Ve,R as De,c as d,a as e,p as r,j as a,m as T,l as C,k as M,H as Me,t as o,F as q,J as G,S as qe,T as Ae,U as Re,x as Ie,V as Le,C as S,W as w,o as n,v as Ue,I as Be,X as Qe,Y as He,h as Ne,Z as Fe,$ as ze,a0 as xe,a1 as Ee,a2 as Ke,a3 as Pe,a4 as je,a5 as Ge,a6 as Je}from"./index-1dff6785.js";import{_ as Oe}from"./Breadcrumb-cba2b95b.js";import{u as We,a as Xe}from"./tags-ba1ad11a.js";import"./vee-validate.esm-b0b47415.js";const Ye={class:"v-toolbar"},Ze=e("md-ripple",null,null,-1),et={class:"filters"},tt=["label"],st={class:"form-label"},at=["label","selected","onClick"],lt={class:"buttons"},ot=["onClick"],nt={class:"table-responsive"},dt={class:"table"},ct=["checked","indeterminate"],it=e("th",null,"ID",-1),rt=e("th",null,null,-1),ut=["onClick"],_t=["checked"],pt=["innerHTML"],mt={class:"nowrap"},ht={class:"action-btns"},gt=["onClick"],ft=e("md-ripple",null,null,-1),kt={class:"nowrap"},vt={class:"nowrap"},yt={class:"nowrap"},bt={key:0},$t={colspan:"8"},Tt={class:"no-data-placeholder"},f=50,qt=he({__name:"MessagesView",setup(Ct){var K,P;const k=ge(),{app:J}=fe(ke()),p=g([]),A=g(),{t:O}=ve(),c=ye({text:"",tags:[]}),u=be.SMS,R=$e(),I=R.query,v=g(parseInt(((K=I.page)==null?void 0:K.toString())??"1")),i=g(Te(((P=I.q)==null?void 0:P.toString())??"")),V=g(""),{tags:y}=We(u,i,c,async t=>{_&&t.push({name:"type",op:"",value:se[_].toString()}),V.value=Ae(t),await Re(),te()}),{addToTags:W}=Xe(u,p,y),{allChecked:L,realAllChecked:U,selectRealAll:X,allCheckedAlertVisible:Y,clearSelection:B,toggleAllChecked:Q,toggleItemChecked:H,toggleRow:Z,total:m,checked:N}=ue(p),{loading:ee,load:te,refetch:F}=Ce({handle:(t,l)=>{l?Ie(O(l),"error"):t&&(p.value=t.messages.map(h=>({...h,checked:!1})),m.value=t.messageCount)},document:Le,variables:()=>({offset:(v.value-1)*f,limit:f,query:V.value}),appApi:!0}),_=R.params.type,se={inbox:1,sent:2,drafts:3,outbox:4};Se(v,t=>{_?S(k,`/messages/${_}?page=${t}&q=${w(i.value)}`):S(k,`/messages?page=${t}&q=${w(i.value)}`)});function ae(t){c.tags.includes(t)?xe(c.tags,l=>l.id===t.id):c.tags.push(t)}function le(){i.value=Ee(c),z(),A.value.dismiss()}function oe(t){Ke(Pe,{type:u,tags:y.value,item:{key:t.id,title:"",size:0},selected:y.value.filter(l=>t.tags.some(h=>h.id===l.id))})}function z(){_?S(k,`/messages/${_}?q=${w(i.value)}`):S(k,`/messages?q=${w(i.value)}`)}const x=t=>{t.type===u&&(B(),F())},E=t=>{t.type===u&&F()};return we(()=>{$.on("item_tags_updated",E),$.on("items_tags_updated",x)}),Ve(()=>{$.off("item_tags_updated",E),$.off("items_tags_updated",x)}),(t,l)=>{const h=Oe,j=je,ne=_e,de=pe,ce=Ge,ie=Je,re=me,D=De("tooltip");return n(),d(q,null,[e("div",Ye,[r(h,{current:()=>`${t.$t("page_title.messages")} (${a(m)})`},null,8,["current"]),a(N)?T((n(),d("button",{key:0,class:"icon-button",onClick:l[0]||(l[0]=C(s=>a(W)(a(U),V.value),["stop"]))},[Ze,r(j)])),[[D,t.$t("add_to_tags")]]):M("",!0),r(ne,{ref_key:"searchInputRef",ref:A,modelValue:i.value,"onUpdate:modelValue":l[2]||(l[2]=s=>i.value=s),search:z},{filters:Me(()=>[e("div",et,[T(e("md-outlined-text-field",{label:t.$t("keywords"),"onUpdate:modelValue":l[1]||(l[1]=s=>c.text=s),"keyup.enter":"applyAndDoSearch"},null,8,tt),[[Ue,c.text]]),e("label",st,o(t.$t("tags")),1),e("md-chip-set",null,[(n(!0),d(q,null,G(a(y),s=>(n(),d("md-filter-chip",{key:s.id,label:s.name,selected:c.tags.includes(s),onClick:b=>ae(s)},null,8,at))),128))]),e("div",lt,[e("md-filled-button",{onClick:C(le,["stop"])},o(t.$t("search")),9,ot)])])]),_:1},8,["modelValue"])]),r(de,{limit:f,total:a(m),"all-checked-alert-visible":a(Y),"real-all-checked":a(U),"select-real-all":a(X),"clear-selection":a(B)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),e("div",nt,[e("table",dt,[e("thead",null,[e("tr",null,[e("th",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:l[3]||(l[3]=(...s)=>a(Q)&&a(Q)(...s)),checked:a(L),indeterminate:!a(L)&&a(N)},null,40,ct)]),it,e("th",null,o(t.$t("content")),1),rt,e("th",null,o(t.$t("sms_address")),1),e("th",null,o(t.$t("type")),1),e("th",null,o(t.$t("tags")),1),e("th",null,o(t.$t("time")),1)])]),e("tbody",null,[(n(!0),d(q,null,G(p.value,s=>(n(),d("tr",{key:s.id,class:Be({selected:s.checked}),onClick:C(b=>a(Z)(s),["stop"])},[e("td",null,[e("md-checkbox",{"touch-target":"wrapper",onChange:l[4]||(l[4]=(...b)=>a(H)&&a(H)(...b)),checked:s.checked},null,40,_t)]),e("td",null,[r(ce,{id:s.id,raw:s},null,8,["id","raw"])]),e("td",{innerHTML:a(Qe)(s.body)},null,8,pt),e("td",mt,[e("div",ht,[T((n(),d("button",{class:"icon-button",onClick:C(b=>oe(s),["stop"])},[ft,r(j)],8,gt)),[[D,t.$t("add_to_tags")]])])]),e("td",kt,o(s.address),1),e("td",vt,o(t.$t(`message_type.${s.type}`)),1),e("td",null,[r(ie,{tags:s.tags,type:a(u)},null,8,["tags","type"])]),e("td",yt,[T((n(),d("span",null,[Ne(o(a(Fe)(s.date)),1)])),[[D,a(He)(s.date)]])])],10,ut))),128))]),p.value.length?M("",!0):(n(),d("tfoot",bt,[e("tr",null,[e("td",$t,[e("div",Tt,o(t.$t(a(ze)(a(ee),a(J).permissions,"READ_SMS"))),1)])])]))])]),a(m)>f?(n(),qe(re,{key:0,modelValue:v.value,"onUpdate:modelValue":l[5]||(l[5]=s=>v.value=s),total:a(m),limit:f},null,8,["modelValue","total"])):M("",!0)],64)}}});export{qt as default}; diff --git a/app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-1dd835fe.js b/app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-fd107f07.js similarity index 99% rename from app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-1dd835fe.js rename to app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-fd107f07.js index dbc376ac..4c0175b1 100644 --- a/app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-1dd835fe.js +++ b/app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-fd107f07.js @@ -1,4 +1,4 @@ -var c6=Object.defineProperty;var d6=(o,e,t)=>e in o?c6(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var Zt=(o,e,t)=>(d6(o,typeof e!="symbol"?e+"":e,t),t);import{bW as me,d as h6,bX as u6,aC as g6,bK as f6,r as p6,O as D2,w as kb,P as x2,Q as m6,o as _6,c as b6,bI as v6}from"./index-b6c39163.js";globalThis&&globalThis.__awaiter;let C6=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function w6(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),C6&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function f(o,e,...t){return w6(e,t)}var ES;const mp="en";let Iv=!1,Ev=!1,U0=!1,d4=!1,mE=!1,_E=!1,h4=!1,Ib,$0=mp,S6,Zo;const di=typeof self=="object"?self:typeof global=="object"?global:{};let Rn;typeof di.vscode<"u"&&typeof di.vscode.process<"u"?Rn=di.vscode.process:typeof process<"u"&&(Rn=process);const y6=typeof((ES=Rn==null?void 0:Rn.versions)===null||ES===void 0?void 0:ES.electron)=="string",L6=y6&&(Rn==null?void 0:Rn.type)==="renderer";if(typeof navigator=="object"&&!L6)Zo=navigator.userAgent,Iv=Zo.indexOf("Windows")>=0,Ev=Zo.indexOf("Macintosh")>=0,_E=(Zo.indexOf("Macintosh")>=0||Zo.indexOf("iPad")>=0||Zo.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,U0=Zo.indexOf("Linux")>=0,h4=(Zo==null?void 0:Zo.indexOf("Mobi"))>=0,mE=!0,f({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),Ib=mp,$0=Ib;else if(typeof Rn=="object"){Iv=Rn.platform==="win32",Ev=Rn.platform==="darwin",U0=Rn.platform==="linux",U0&&Rn.env.SNAP&&Rn.env.SNAP_REVISION,Rn.env.CI||Rn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Ib=mp,$0=mp;const o=Rn.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];Ib=e.locale,$0=t||mp,S6=e._translationsConfigFile}catch{}d4=!0}else console.error("Unable to resolve platform.");const Qi=Iv,Ke=Ev,hn=U0,ur=d4,Kc=mE,D6=mE&&typeof di.importScripts=="function",ga=_E,x6=h4,fa=Zo,k6=$0,I6=typeof di.postMessage=="function"&&!di.importScripts,u4=(()=>{if(I6){const o=[];di.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i{const i=++e;o.push({id:i,callback:t}),di.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),Ps=Ev||_E?2:Iv?1:3;let k2=!0,I2=!1;function g4(){if(!I2){I2=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,k2=new Uint16Array(o.buffer)[0]===512+1}return k2}const f4=!!(fa&&fa.indexOf("Chrome")>=0),E6=!!(fa&&fa.indexOf("Firefox")>=0),T6=!!(!f4&&fa&&fa.indexOf("Safari")>=0),N6=!!(fa&&fa.indexOf("Edg/")>=0);fa&&fa.indexOf("Android")>=0;var it;(function(o){function e(v){return v&&typeof v=="object"&&typeof v[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(v){yield v}o.single=n;function s(v){return e(v)?v:n(v)}o.wrap=s;function r(v){return v||t}o.from=r;function a(v){return!v||v[Symbol.iterator]().next().done===!0}o.isEmpty=a;function l(v){return v[Symbol.iterator]().next().value}o.first=l;function c(v,b){for(const C of v)if(b(C))return!0;return!1}o.some=c;function d(v,b){for(const C of v)if(b(C))return C}o.find=d;function*h(v,b){for(const C of v)b(C)&&(yield C)}o.filter=h;function*u(v,b){let C=0;for(const S of v)yield b(S,C++)}o.map=u;function*g(...v){for(const b of v)for(const C of b)yield C}o.concat=g;function p(v,b,C){let S=C;for(const x of v)S=b(S,x);return S}o.reduce=p;function*m(v,b,C=v.length){for(b<0&&(b+=v.length),C<0?C+=v.length:C>v.length&&(C=v.length);b{n||(n=!0,this._remove(i))}}shift(){if(this._first!==bi.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==bi.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==bi.Undefined&&e.next!==bi.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===bi.Undefined&&e.next===bi.Undefined?(this._first=bi.Undefined,this._last=bi.Undefined):e.next===bi.Undefined?(this._last=this._last.prev,this._last.next=bi.Undefined):e.prev===bi.Undefined&&(this._first=this._first.next,this._first.prev=bi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==bi.Undefined;)yield e.element,e=e.next}}const p4="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function M6(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of p4)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const bE=M6();function m4(o){let e=bE;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const _4=new ln;_4.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function _m(o,e,t,i,n){if(n||(n=it.first(_4)),t.length>n.maxLen){let c=o-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,o+n.maxLen/2),_m(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-s>=n.timeBudget);c++){const d=r-n.windowSize*c;e.lastIndex=Math.max(0,d);const h=A6(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function A6(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}function Zs(o,e=0){return o[o.length-(1+e)]}function R6(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function Bn(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;it(o[i],e))}function O6(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function b4(o,e){let t=0,i=o.length;if(i===0)return 0;for(;t=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o!!e)}function T2(o){let e=0;for(let t=0;t0}function Dc(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function C4(o,e){const t=F6(o,e);if(t!==-1)return o[t]}function F6(o,e){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return t}return-1}function w4(o,e){return o.length>0?o[0]:e}function Mn(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function L1(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function TS(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function Eb(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function N2(o,e){for(const t of e)o.push(t)}function vE(o){return Array.isArray(o)?o:[o]}function B6(o,e,t){const i=S4(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r0}o.isGreaterThan=t;function i(n){return n===0}o.isNeitherLessOrGreaterThan=i,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(jL||(jL={}));function Vp(o,e){return(t,i)=>e(o(t),o(i))}const W6=(o,e)=>o-e;function y4(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i0&&(t=n)}return t}function V6(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i=0&&(t=n)}return t}function H6(o,e){return y4(o,(t,i)=>-e(t,i))}class Eg{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class aa{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new aa(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new aa(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||jL.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}}aa.empty=new aa(o=>{});function Wn(o){return typeof o=="string"}function Xn(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function z6(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function xc(o){return typeof o=="number"&&!isNaN(o)}function A2(o){return!!o&&typeof o[Symbol.iterator]=="function"}function L4(o){return o===!0||o===!1}function us(o){return typeof o>"u"}function U6(o){return!Ms(o)}function Ms(o){return us(o)||o===null}function _t(o,e){if(!o)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Fu(o){if(Ms(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function Tv(o){return typeof o=="function"}function $6(o,e){const t=Math.min(o.length,e.length);for(let i=0;i{e[t]=i&&typeof i=="object"?qa(i):i}),e}function K6(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(D4.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!z6(n)&&e.push(n)}}return o}const D4=Object.prototype.hasOwnProperty;function x4(o,e){return KL(o,e,new Set)}function KL(o,e,t){if(Ms(o))return o;const i=e(o);if(typeof i<"u")return i;if(Array.isArray(o)){const n=[];for(const s of o)n.push(KL(s,e,t));return n}if(Xn(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)D4.call(o,s)&&(n[s]=KL(o[s],e,t));return t.delete(o),n}return o}function B_(o,e,t=!0){return Xn(o)?(Xn(e)&&Object.keys(e).forEach(i=>{i in o?t&&(Xn(o[i])&&Xn(e[i])?B_(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function so(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;tfunction(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}const _n={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},Vl=8;class k4{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class I4{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Jt{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return D1(e,t)}compute(e,t,i){return i}}class Hp{constructor(e,t){this.newValue=e,this.didChange=t}}function D1(o,e){if(typeof o!="object"||typeof e!="object"||!o||!e)return new Hp(e,o!==e);if(Array.isArray(o)||Array.isArray(e)){const i=Array.isArray(o)&&Array.isArray(e)&&Bn(o,e);return new Hp(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=D1(o[i],e[i]);n.didChange&&(o[i]=n.newValue,t=!0)}return new Hp(o,t)}class _f{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return D1(e,t)}validate(e){return this.defaultValue}}class bf{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return D1(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function Le(o,e){return typeof o>"u"?e:o==="false"?!1:!!o}class ct extends bf{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return Le(e,this.defaultValue)}}function qL(o,e,t,i){if(typeof o>"u")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class Lt extends bf{static clampedInt(e,t,i,n){return qL(e,t,i,n)}constructor(e,t,i,n,s,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}validate(e){return Lt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class Xr extends bf{static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}validate(e){return this.validationFn(Xr.float(e,this.defaultValue))}}class ds extends bf{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return ds.string(e,this.defaultValue)}}function Di(o,e,t){return typeof o!="string"||t.indexOf(o)===-1?e:o}class ai extends bf{constructor(e,t,i,n,s=void 0){typeof s<"u"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return Di(e,this.defaultValue,this._allowedValues)}}class Tb extends Jt{constructor(e,t,i,n,s,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function Z6(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class Y6 extends Jt{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[f("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached"),f("accessibilitySupport.on","Optimize for usage with a Screen Reader"),f("accessibilitySupport.off","Assume a screen reader is not attached")],default:"auto",tags:["accessibility"],description:f("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class Q6 extends Jt{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(20,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:f("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:f("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:Le(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Le(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function X6(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Gi;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(Gi||(Gi={}));function J6(o){switch(o){case"line":return Gi.Line;case"block":return Gi.Block;case"underline":return Gi.Underline;case"line-thin":return Gi.LineThin;case"block-outline":return Gi.BlockOutline;case"underline-thin":return Gi.UnderlineThin}}class eW extends _f{constructor(){super(135)}compute(e,t,i){const n=["monaco-editor"];return t.get(36)&&n.push(t.get(36)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(70)==="default"?n.push("mouse-default"):t.get(70)==="copy"&&n.push("mouse-copy"),t.get(105)&&n.push("showUnused"),t.get(133)&&n.push("showDeprecated"),n.join(" ")}}class tW extends ct{constructor(){super(34,"emptySelectionClipboard",!0,{description:f("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class iW extends Jt{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(38,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:f("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[f("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),f("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),f("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:f("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[f("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),f("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),f("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:f("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:f("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Ke},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:f("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:f("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:Le(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Di(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Di(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Le(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Le(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Le(t.loop,this.defaultValue.loop)}}}class As extends Jt{constructor(){super(48,"fontLigatures",As.OFF,{anyOf:[{type:"boolean",description:f("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:f("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:f("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?As.OFF:e==="true"?As.ON:e:e?As.ON:As.OFF}}As.OFF='"liga" off, "calt" off';As.ON='"liga" on, "calt" on';class or extends Jt{constructor(){super(51,"fontVariations",or.OFF,{anyOf:[{type:"boolean",description:f("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:f("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:f("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?or.OFF:e==="true"?or.TRANSLATE:e:e?or.TRANSLATE:or.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}or.OFF="normal";or.TRANSLATE="translate";class nW extends _f{constructor(){super(47)}compute(e,t,i){return e.fontInfo}}class sW extends bf{constructor(){super(49,"fontSize",ps.fontSize,{type:"number",minimum:6,maximum:100,default:ps.fontSize,description:f("fontSize","Controls the font size in pixels.")})}validate(e){const t=Xr.float(e,this.defaultValue);return t===0?ps.fontSize:Xr.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Ur extends Jt{constructor(){super(50,"fontWeight",ps.fontWeight,{anyOf:[{type:"number",minimum:Ur.MINIMUM_VALUE,maximum:Ur.MAXIMUM_VALUE,errorMessage:f("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Ur.SUGGESTION_VALUES}],default:ps.fontWeight,description:f("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Lt.clampedInt(e,ps.fontWeight,Ur.MINIMUM_VALUE,Ur.MAXIMUM_VALUE))}}Ur.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Ur.MINIMUM_VALUE=1;Ur.MAXIMUM_VALUE=1e3;class oW extends Jt{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[f("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),f("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),f("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(55,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:f("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:f("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:f("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:f("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:f("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:f("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:f("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:f("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:f("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:f("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:f("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Di(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Di(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Di(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Di(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(s=a.multipleImplementations)!==null&&s!==void 0?s:Di(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Di(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:ds.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:ds.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:ds.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:ds.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:ds.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class rW extends Jt{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(57,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:f("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:f("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:f("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:f("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),delay:Lt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:Le(t.sticky,this.defaultValue.sticky),above:Le(t.above,this.defaultValue.above)}}}class ag extends _f{constructor(){super(138)}compute(e,t,i){return ag.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const s=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:r}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,v=e.viewLineCount,b=e.remainingWidth,C=e.isViewportWrapping,S=h?2:3;let x=Math.floor(s*n);const E=x/s;let L=!1,D=!1,k=S*u,R=u/s,P=1;if(p==="fill"||p==="fit"){const{typicalViewportLineCount:je,extraLinesBeforeFirstLine:Ie,extraLinesBeyondLastLine:Qe,desiredRatio:Xe,minimapLineCount:fe}=ag.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:d,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:s});if(v/fe>1)L=!0,D=!0,u=1,k=1,R=u/s;else{let yt=!1,ws=u+1;if(p==="fit"){const zi=Math.ceil((Ie+v+Qe)*k);C&&a&&b<=t.stableFitRemainingWidth?(yt=!0,ws=t.stableFitMaxMinimapScale):yt=zi>x}if(p==="fill"||yt){L=!0;const zi=u;k=Math.min(l*s,Math.max(1,Math.floor(1/Xe))),C&&a&&b<=t.stableFitRemainingWidth&&(ws=t.stableFitMaxMinimapScale),u=Math.min(ws,Math.max(1,Math.floor(k/S))),u>zi&&(P=Math.min(2,u/zi)),R=u/s/P,x=Math.ceil(Math.max(je,Ie+v+Qe)*k),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const B=Math.floor(g*R),z=Math.min(B,Math.max(0,Math.floor((b-_-2)*R/(c+R)))+Vl);let ne=Math.floor(s*z);const ue=ne/s;ne=Math.floor(ne*P);const ye=h?1:2,Fe=m==="left"?0:i-z-_;return{renderMinimap:ye,minimapLeft:Fe,minimapWidth:z,minimapHeightIsEditorHeight:L,minimapIsSampling:D,minimapScale:u,minimapLineHeight:k,minimapCanvasInnerWidth:ne,minimapCanvasInnerHeight:x,minimapCanvasOuterWidth:ue,minimapCanvasOuterHeight:E}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,s=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,h=e.get(130),u=h==="inherit"?e.get(129):h,g=u==="inherit"?e.get(125):u,p=e.get(128),m=t.isDominatedByLongLines,_=e.get(54),v=e.get(64).renderType!==0,b=e.get(65),C=e.get(99),S=e.get(80),x=e.get(69),E=e.get(97),L=E.verticalScrollbarSize,D=E.verticalHasArrows,k=E.arrowSize,R=E.horizontalScrollbarSize,P=e.get(40),B=e.get(104)!=="never";let z=e.get(62);P&&B&&(z+=16);let ne=0;if(v){const El=Math.max(r,b);ne=Math.round(El*l)}let ue=0;_&&(ue=s);let ye=0,Fe=ye+ue,je=Fe+ne,Ie=je+z;const Qe=i-ue-ne-z;let Xe=!1,fe=!1,Se=-1;u==="inherit"&&m?(Xe=!0,fe=!0):g==="on"||g==="bounded"?fe=!0:g==="wordWrapColumn"&&(Se=p);const yt=ag._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:C,paddingTop:S.top,paddingBottom:S.bottom,minimap:x,verticalScrollbarWidth:L,viewLineCount:d,remainingWidth:Qe,isViewportWrapping:fe},t.memory||new I4);yt.renderMinimap!==0&&yt.minimapLeft===0&&(ye+=yt.minimapWidth,Fe+=yt.minimapWidth,je+=yt.minimapWidth,Ie+=yt.minimapWidth);const ws=Qe-yt.minimapWidth,zi=Math.max(1,Math.floor((ws-L-2)/a)),Ko=D?k:0;return fe&&(Se=Math.max(1,zi),g==="bounded"&&(Se=Math.min(Se,p))),{width:i,height:n,glyphMarginLeft:ye,glyphMarginWidth:ue,lineNumbersLeft:Fe,lineNumbersWidth:ne,decorationsLeft:je,decorationsWidth:z,contentLeft:Ie,contentWidth:ws,minimap:yt,viewportColumn:zi,isWordWrapMinified:Xe,isViewportWrapping:fe,wrappingColumn:Se,verticalScrollbarWidth:L,horizontalScrollbarHeight:R,overviewRuler:{top:Ko,width:L,height:n-2*Ko,right:0}}}}class aW extends Jt{constructor(){super(132,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[f("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),f("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:f("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return Di(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}class lW extends Jt{constructor(){const e={enabled:!0};super(61,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:f("codeActions","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Le(e.enabled,this.defaultValue.enabled)}}}class cW extends Jt{constructor(){const e={enabled:!1,maxLineCount:5};super(109,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:f("editor.stickyScroll","Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:10,description:f("editor.stickyScroll.","Defines the maximum number of sticky lines to show.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),maxLineCount:Lt.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,10)}}}class dW extends Jt{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(134,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:f("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[f("editor.inlayHints.on","Inlay hints are enabled"),f("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",Ke?"Ctrl+Option":"Ctrl+Alt"),f("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",Ke?"Ctrl+Option":"Ctrl+Alt"),f("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:f("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:f("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:f("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:Di(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Lt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:ds.string(t.fontFamily,this.defaultValue.fontFamily),padding:Le(t.padding,this.defaultValue.padding)}}}class hW extends Jt{constructor(){super(62,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Lt.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?Lt.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class uW extends Xr{constructor(){super(63,"lineHeight",ps.lineHeight,e=>Xr.clamp(e,0,150),{markdownDescription:f("lineHeight",`Controls the line height. +var c6=Object.defineProperty;var d6=(o,e,t)=>e in o?c6(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var Zt=(o,e,t)=>(d6(o,typeof e!="symbol"?e+"":e,t),t);import{bW as me,d as h6,bX as u6,aC as g6,bK as f6,r as p6,O as D2,w as kb,P as x2,Q as m6,o as _6,c as b6,bI as v6}from"./index-1dff6785.js";globalThis&&globalThis.__awaiter;let C6=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function w6(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),C6&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function f(o,e,...t){return w6(e,t)}var ES;const mp="en";let Iv=!1,Ev=!1,U0=!1,d4=!1,mE=!1,_E=!1,h4=!1,Ib,$0=mp,S6,Zo;const di=typeof self=="object"?self:typeof global=="object"?global:{};let Rn;typeof di.vscode<"u"&&typeof di.vscode.process<"u"?Rn=di.vscode.process:typeof process<"u"&&(Rn=process);const y6=typeof((ES=Rn==null?void 0:Rn.versions)===null||ES===void 0?void 0:ES.electron)=="string",L6=y6&&(Rn==null?void 0:Rn.type)==="renderer";if(typeof navigator=="object"&&!L6)Zo=navigator.userAgent,Iv=Zo.indexOf("Windows")>=0,Ev=Zo.indexOf("Macintosh")>=0,_E=(Zo.indexOf("Macintosh")>=0||Zo.indexOf("iPad")>=0||Zo.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,U0=Zo.indexOf("Linux")>=0,h4=(Zo==null?void 0:Zo.indexOf("Mobi"))>=0,mE=!0,f({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),Ib=mp,$0=Ib;else if(typeof Rn=="object"){Iv=Rn.platform==="win32",Ev=Rn.platform==="darwin",U0=Rn.platform==="linux",U0&&Rn.env.SNAP&&Rn.env.SNAP_REVISION,Rn.env.CI||Rn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Ib=mp,$0=mp;const o=Rn.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];Ib=e.locale,$0=t||mp,S6=e._translationsConfigFile}catch{}d4=!0}else console.error("Unable to resolve platform.");const Qi=Iv,Ke=Ev,hn=U0,ur=d4,Kc=mE,D6=mE&&typeof di.importScripts=="function",ga=_E,x6=h4,fa=Zo,k6=$0,I6=typeof di.postMessage=="function"&&!di.importScripts,u4=(()=>{if(I6){const o=[];di.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i{const i=++e;o.push({id:i,callback:t}),di.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),Ps=Ev||_E?2:Iv?1:3;let k2=!0,I2=!1;function g4(){if(!I2){I2=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,k2=new Uint16Array(o.buffer)[0]===512+1}return k2}const f4=!!(fa&&fa.indexOf("Chrome")>=0),E6=!!(fa&&fa.indexOf("Firefox")>=0),T6=!!(!f4&&fa&&fa.indexOf("Safari")>=0),N6=!!(fa&&fa.indexOf("Edg/")>=0);fa&&fa.indexOf("Android")>=0;var it;(function(o){function e(v){return v&&typeof v=="object"&&typeof v[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(v){yield v}o.single=n;function s(v){return e(v)?v:n(v)}o.wrap=s;function r(v){return v||t}o.from=r;function a(v){return!v||v[Symbol.iterator]().next().done===!0}o.isEmpty=a;function l(v){return v[Symbol.iterator]().next().value}o.first=l;function c(v,b){for(const C of v)if(b(C))return!0;return!1}o.some=c;function d(v,b){for(const C of v)if(b(C))return C}o.find=d;function*h(v,b){for(const C of v)b(C)&&(yield C)}o.filter=h;function*u(v,b){let C=0;for(const S of v)yield b(S,C++)}o.map=u;function*g(...v){for(const b of v)for(const C of b)yield C}o.concat=g;function p(v,b,C){let S=C;for(const x of v)S=b(S,x);return S}o.reduce=p;function*m(v,b,C=v.length){for(b<0&&(b+=v.length),C<0?C+=v.length:C>v.length&&(C=v.length);b{n||(n=!0,this._remove(i))}}shift(){if(this._first!==bi.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==bi.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==bi.Undefined&&e.next!==bi.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===bi.Undefined&&e.next===bi.Undefined?(this._first=bi.Undefined,this._last=bi.Undefined):e.next===bi.Undefined?(this._last=this._last.prev,this._last.next=bi.Undefined):e.prev===bi.Undefined&&(this._first=this._first.next,this._first.prev=bi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==bi.Undefined;)yield e.element,e=e.next}}const p4="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function M6(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of p4)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const bE=M6();function m4(o){let e=bE;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const _4=new ln;_4.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function _m(o,e,t,i,n){if(n||(n=it.first(_4)),t.length>n.maxLen){let c=o-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,o+n.maxLen/2),_m(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-s>=n.timeBudget);c++){const d=r-n.windowSize*c;e.lastIndex=Math.max(0,d);const h=A6(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function A6(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}function Zs(o,e=0){return o[o.length-(1+e)]}function R6(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function Bn(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;it(o[i],e))}function O6(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function b4(o,e){let t=0,i=o.length;if(i===0)return 0;for(;t=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o!!e)}function T2(o){let e=0;for(let t=0;t0}function Dc(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function C4(o,e){const t=F6(o,e);if(t!==-1)return o[t]}function F6(o,e){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return t}return-1}function w4(o,e){return o.length>0?o[0]:e}function Mn(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function L1(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function TS(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function Eb(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function N2(o,e){for(const t of e)o.push(t)}function vE(o){return Array.isArray(o)?o:[o]}function B6(o,e,t){const i=S4(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r0}o.isGreaterThan=t;function i(n){return n===0}o.isNeitherLessOrGreaterThan=i,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(jL||(jL={}));function Vp(o,e){return(t,i)=>e(o(t),o(i))}const W6=(o,e)=>o-e;function y4(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i0&&(t=n)}return t}function V6(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i=0&&(t=n)}return t}function H6(o,e){return y4(o,(t,i)=>-e(t,i))}class Eg{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class aa{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new aa(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new aa(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||jL.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}}aa.empty=new aa(o=>{});function Wn(o){return typeof o=="string"}function Xn(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function z6(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function xc(o){return typeof o=="number"&&!isNaN(o)}function A2(o){return!!o&&typeof o[Symbol.iterator]=="function"}function L4(o){return o===!0||o===!1}function us(o){return typeof o>"u"}function U6(o){return!Ms(o)}function Ms(o){return us(o)||o===null}function _t(o,e){if(!o)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Fu(o){if(Ms(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function Tv(o){return typeof o=="function"}function $6(o,e){const t=Math.min(o.length,e.length);for(let i=0;i{e[t]=i&&typeof i=="object"?qa(i):i}),e}function K6(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(D4.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!z6(n)&&e.push(n)}}return o}const D4=Object.prototype.hasOwnProperty;function x4(o,e){return KL(o,e,new Set)}function KL(o,e,t){if(Ms(o))return o;const i=e(o);if(typeof i<"u")return i;if(Array.isArray(o)){const n=[];for(const s of o)n.push(KL(s,e,t));return n}if(Xn(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)D4.call(o,s)&&(n[s]=KL(o[s],e,t));return t.delete(o),n}return o}function B_(o,e,t=!0){return Xn(o)?(Xn(e)&&Object.keys(e).forEach(i=>{i in o?t&&(Xn(o[i])&&Xn(e[i])?B_(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function so(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;tfunction(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}const _n={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},Vl=8;class k4{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class I4{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Jt{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return D1(e,t)}compute(e,t,i){return i}}class Hp{constructor(e,t){this.newValue=e,this.didChange=t}}function D1(o,e){if(typeof o!="object"||typeof e!="object"||!o||!e)return new Hp(e,o!==e);if(Array.isArray(o)||Array.isArray(e)){const i=Array.isArray(o)&&Array.isArray(e)&&Bn(o,e);return new Hp(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=D1(o[i],e[i]);n.didChange&&(o[i]=n.newValue,t=!0)}return new Hp(o,t)}class _f{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return D1(e,t)}validate(e){return this.defaultValue}}class bf{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return D1(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function Le(o,e){return typeof o>"u"?e:o==="false"?!1:!!o}class ct extends bf{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return Le(e,this.defaultValue)}}function qL(o,e,t,i){if(typeof o>"u")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class Lt extends bf{static clampedInt(e,t,i,n){return qL(e,t,i,n)}constructor(e,t,i,n,s,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}validate(e){return Lt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class Xr extends bf{static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}validate(e){return this.validationFn(Xr.float(e,this.defaultValue))}}class ds extends bf{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return ds.string(e,this.defaultValue)}}function Di(o,e,t){return typeof o!="string"||t.indexOf(o)===-1?e:o}class ai extends bf{constructor(e,t,i,n,s=void 0){typeof s<"u"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return Di(e,this.defaultValue,this._allowedValues)}}class Tb extends Jt{constructor(e,t,i,n,s,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function Z6(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class Y6 extends Jt{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[f("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached"),f("accessibilitySupport.on","Optimize for usage with a Screen Reader"),f("accessibilitySupport.off","Assume a screen reader is not attached")],default:"auto",tags:["accessibility"],description:f("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class Q6 extends Jt{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(20,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:f("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:f("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:Le(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Le(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function X6(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Gi;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(Gi||(Gi={}));function J6(o){switch(o){case"line":return Gi.Line;case"block":return Gi.Block;case"underline":return Gi.Underline;case"line-thin":return Gi.LineThin;case"block-outline":return Gi.BlockOutline;case"underline-thin":return Gi.UnderlineThin}}class eW extends _f{constructor(){super(135)}compute(e,t,i){const n=["monaco-editor"];return t.get(36)&&n.push(t.get(36)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(70)==="default"?n.push("mouse-default"):t.get(70)==="copy"&&n.push("mouse-copy"),t.get(105)&&n.push("showUnused"),t.get(133)&&n.push("showDeprecated"),n.join(" ")}}class tW extends ct{constructor(){super(34,"emptySelectionClipboard",!0,{description:f("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class iW extends Jt{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(38,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:f("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[f("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),f("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),f("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:f("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[f("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),f("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),f("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:f("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:f("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Ke},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:f("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:f("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:Le(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Di(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Di(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Le(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Le(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Le(t.loop,this.defaultValue.loop)}}}class As extends Jt{constructor(){super(48,"fontLigatures",As.OFF,{anyOf:[{type:"boolean",description:f("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:f("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:f("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?As.OFF:e==="true"?As.ON:e:e?As.ON:As.OFF}}As.OFF='"liga" off, "calt" off';As.ON='"liga" on, "calt" on';class or extends Jt{constructor(){super(51,"fontVariations",or.OFF,{anyOf:[{type:"boolean",description:f("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:f("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:f("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?or.OFF:e==="true"?or.TRANSLATE:e:e?or.TRANSLATE:or.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}or.OFF="normal";or.TRANSLATE="translate";class nW extends _f{constructor(){super(47)}compute(e,t,i){return e.fontInfo}}class sW extends bf{constructor(){super(49,"fontSize",ps.fontSize,{type:"number",minimum:6,maximum:100,default:ps.fontSize,description:f("fontSize","Controls the font size in pixels.")})}validate(e){const t=Xr.float(e,this.defaultValue);return t===0?ps.fontSize:Xr.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Ur extends Jt{constructor(){super(50,"fontWeight",ps.fontWeight,{anyOf:[{type:"number",minimum:Ur.MINIMUM_VALUE,maximum:Ur.MAXIMUM_VALUE,errorMessage:f("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Ur.SUGGESTION_VALUES}],default:ps.fontWeight,description:f("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Lt.clampedInt(e,ps.fontWeight,Ur.MINIMUM_VALUE,Ur.MAXIMUM_VALUE))}}Ur.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Ur.MINIMUM_VALUE=1;Ur.MAXIMUM_VALUE=1e3;class oW extends Jt{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[f("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),f("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),f("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(55,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:f("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:f("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:f("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:f("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:f("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:f("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:f("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:f("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:f("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:f("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:f("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Di(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Di(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Di(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Di(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(s=a.multipleImplementations)!==null&&s!==void 0?s:Di(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Di(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:ds.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:ds.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:ds.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:ds.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:ds.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class rW extends Jt{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(57,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:f("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:f("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:f("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:f("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),delay:Lt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:Le(t.sticky,this.defaultValue.sticky),above:Le(t.above,this.defaultValue.above)}}}class ag extends _f{constructor(){super(138)}compute(e,t,i){return ag.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const s=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:r}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,v=e.viewLineCount,b=e.remainingWidth,C=e.isViewportWrapping,S=h?2:3;let x=Math.floor(s*n);const E=x/s;let L=!1,D=!1,k=S*u,R=u/s,P=1;if(p==="fill"||p==="fit"){const{typicalViewportLineCount:je,extraLinesBeforeFirstLine:Ie,extraLinesBeyondLastLine:Qe,desiredRatio:Xe,minimapLineCount:fe}=ag.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:d,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:s});if(v/fe>1)L=!0,D=!0,u=1,k=1,R=u/s;else{let yt=!1,ws=u+1;if(p==="fit"){const zi=Math.ceil((Ie+v+Qe)*k);C&&a&&b<=t.stableFitRemainingWidth?(yt=!0,ws=t.stableFitMaxMinimapScale):yt=zi>x}if(p==="fill"||yt){L=!0;const zi=u;k=Math.min(l*s,Math.max(1,Math.floor(1/Xe))),C&&a&&b<=t.stableFitRemainingWidth&&(ws=t.stableFitMaxMinimapScale),u=Math.min(ws,Math.max(1,Math.floor(k/S))),u>zi&&(P=Math.min(2,u/zi)),R=u/s/P,x=Math.ceil(Math.max(je,Ie+v+Qe)*k),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const B=Math.floor(g*R),z=Math.min(B,Math.max(0,Math.floor((b-_-2)*R/(c+R)))+Vl);let ne=Math.floor(s*z);const ue=ne/s;ne=Math.floor(ne*P);const ye=h?1:2,Fe=m==="left"?0:i-z-_;return{renderMinimap:ye,minimapLeft:Fe,minimapWidth:z,minimapHeightIsEditorHeight:L,minimapIsSampling:D,minimapScale:u,minimapLineHeight:k,minimapCanvasInnerWidth:ne,minimapCanvasInnerHeight:x,minimapCanvasOuterWidth:ue,minimapCanvasOuterHeight:E}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,s=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,h=e.get(130),u=h==="inherit"?e.get(129):h,g=u==="inherit"?e.get(125):u,p=e.get(128),m=t.isDominatedByLongLines,_=e.get(54),v=e.get(64).renderType!==0,b=e.get(65),C=e.get(99),S=e.get(80),x=e.get(69),E=e.get(97),L=E.verticalScrollbarSize,D=E.verticalHasArrows,k=E.arrowSize,R=E.horizontalScrollbarSize,P=e.get(40),B=e.get(104)!=="never";let z=e.get(62);P&&B&&(z+=16);let ne=0;if(v){const El=Math.max(r,b);ne=Math.round(El*l)}let ue=0;_&&(ue=s);let ye=0,Fe=ye+ue,je=Fe+ne,Ie=je+z;const Qe=i-ue-ne-z;let Xe=!1,fe=!1,Se=-1;u==="inherit"&&m?(Xe=!0,fe=!0):g==="on"||g==="bounded"?fe=!0:g==="wordWrapColumn"&&(Se=p);const yt=ag._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:C,paddingTop:S.top,paddingBottom:S.bottom,minimap:x,verticalScrollbarWidth:L,viewLineCount:d,remainingWidth:Qe,isViewportWrapping:fe},t.memory||new I4);yt.renderMinimap!==0&&yt.minimapLeft===0&&(ye+=yt.minimapWidth,Fe+=yt.minimapWidth,je+=yt.minimapWidth,Ie+=yt.minimapWidth);const ws=Qe-yt.minimapWidth,zi=Math.max(1,Math.floor((ws-L-2)/a)),Ko=D?k:0;return fe&&(Se=Math.max(1,zi),g==="bounded"&&(Se=Math.min(Se,p))),{width:i,height:n,glyphMarginLeft:ye,glyphMarginWidth:ue,lineNumbersLeft:Fe,lineNumbersWidth:ne,decorationsLeft:je,decorationsWidth:z,contentLeft:Ie,contentWidth:ws,minimap:yt,viewportColumn:zi,isWordWrapMinified:Xe,isViewportWrapping:fe,wrappingColumn:Se,verticalScrollbarWidth:L,horizontalScrollbarHeight:R,overviewRuler:{top:Ko,width:L,height:n-2*Ko,right:0}}}}class aW extends Jt{constructor(){super(132,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[f("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),f("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:f("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return Di(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}class lW extends Jt{constructor(){const e={enabled:!0};super(61,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:f("codeActions","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Le(e.enabled,this.defaultValue.enabled)}}}class cW extends Jt{constructor(){const e={enabled:!1,maxLineCount:5};super(109,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:f("editor.stickyScroll","Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:10,description:f("editor.stickyScroll.","Defines the maximum number of sticky lines to show.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),maxLineCount:Lt.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,10)}}}class dW extends Jt{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(134,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:f("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[f("editor.inlayHints.on","Inlay hints are enabled"),f("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",Ke?"Ctrl+Option":"Ctrl+Alt"),f("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",Ke?"Ctrl+Option":"Ctrl+Alt"),f("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:f("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:f("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:f("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:Di(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Lt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:ds.string(t.fontFamily,this.defaultValue.fontFamily),padding:Le(t.padding,this.defaultValue.padding)}}}class hW extends Jt{constructor(){super(62,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Lt.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?Lt.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class uW extends Xr{constructor(){super(63,"lineHeight",ps.lineHeight,e=>Xr.clamp(e,0,150),{markdownDescription:f("lineHeight",`Controls the line height. - Use 0 to automatically compute the line height from the font size. - Values between 0 and 8 will be used as a multiplier with the font size. - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class gW extends Jt{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(69,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:f("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:f("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[f("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),f("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),f("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:f("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:f("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:f("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:f("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:f("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:f("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),autohide:Le(t.autohide,this.defaultValue.autohide),size:Di(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:Di(t.side,this.defaultValue.side,["right","left"]),showSlider:Di(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:Le(t.renderCharacters,this.defaultValue.renderCharacters),scale:Lt.clampedInt(t.scale,1,1,3),maxColumn:Lt.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function fW(o){return o==="ctrlCmd"?Ke?"metaKey":"ctrlKey":"altKey"}class pW extends Jt{constructor(){super(80,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:f("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:f("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:Lt.clampedInt(t.top,0,0,1e3),bottom:Lt.clampedInt(t.bottom,0,0,1e3)}}}class mW extends Jt{constructor(){const e={enabled:!0,cycle:!0};super(81,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:f("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:f("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),cycle:Le(t.cycle,this.defaultValue.cycle)}}}class _W extends _f{constructor(){super(136)}compute(e,t,i){return e.pixelRatio}}class bW extends Jt{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[f("on","Quick suggestions show inside the suggest widget"),f("inline","Quick suggestions show as ghost text"),f("off","Quick suggestions are disabled")]}];super(84,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:f("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:f("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:f("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:f("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const c=e?"on":"off";return{comments:c,strings:c,other:c}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:i,strings:n}=e,s=["on","inline","off"];let r,a,l;return typeof t=="boolean"?r=t?"on":"off":r=Di(t,this.defaultValue.other,s),typeof i=="boolean"?a=i?"on":"off":a=Di(i,this.defaultValue.comments,s),typeof n=="boolean"?l=n?"on":"off":l=Di(n,this.defaultValue.strings,s),{other:r,comments:a,strings:l}}}class vW extends Jt{constructor(){super(64,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[f("lineNumbers.off","Line numbers are not rendered."),f("lineNumbers.on","Line numbers are rendered as absolute number."),f("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),f("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:f("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function Nv(o){const e=o.get(92);return e==="editable"?o.get(86):e!=="on"}class CW extends Jt{constructor(){const e=[],t={type:"number",description:f("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(96,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:f("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:f("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="number")t.push({column:Lt.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const n=i;t.push({column:Lt.clampedInt(n.column,0,0,1e4),color:n.color})}return t.sort((i,n)=>i.column-n.column),t}return this.defaultValue}}function R2(o,e){if(typeof o!="string")return e;switch(o){case"hidden":return 2;case"visible":return 3;default:return 1}}let wW=class extends Jt{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(97,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[f("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),f("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),f("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:f("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[f("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),f("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),f("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:f("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:f("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:f("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:f("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=Lt.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=Lt.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Lt.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:R2(t.vertical,this.defaultValue.vertical),horizontal:R2(t.horizontal,this.defaultValue.horizontal),useShadows:Le(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:Le(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:Le(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:Le(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:Le(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:Lt.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:Lt.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:Le(t.scrollByPage,this.defaultValue.scrollByPage)}}};const xs="inUntrustedWorkspace",Zn={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class SW extends Jt{constructor(){const e={nonBasicASCII:xs,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:xs,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(119,"unicodeHighlight",e,{[Zn.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,xs],default:e.nonBasicASCII,description:f("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[Zn.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:f("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[Zn.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:f("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[Zn.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,xs],default:e.includeComments,description:f("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[Zn.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,xs],default:e.includeStrings,description:f("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[Zn.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:f("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[Zn.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:f("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(so(e.allowedCharacters,t.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:t.allowedCharacters}),i=!0)),t.allowedLocales&&e&&(so(e.allowedLocales,t.allowedLocales)||(e=Object.assign(Object.assign({},e),{allowedLocales:t.allowedLocales}),i=!0));const n=super.applyUpdate(e,t);return i?new Hp(n.newValue,!0):n}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:lg(t.nonBasicASCII,xs,[!0,!1,xs]),invisibleCharacters:Le(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:Le(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:lg(t.includeComments,xs,[!0,!1,xs]),includeStrings:lg(t.includeStrings,xs,[!0,!1,xs]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[n,s]of Object.entries(e))s===!0&&(i[n]=!0);return i}}class yW extends Jt{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover"};super(59,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:f("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover"],enumDescriptions:[f("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),f("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion.")],description:f("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),mode:Di(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:Di(t.showToolbar,this.defaultValue.showToolbar,["always","onHover"])}}}class LW extends Jt{constructor(){const e={enabled:_n.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:_n.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(12,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:f("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:f("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Le(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:Le(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class DW extends Jt{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[f("editor.guides.bracketPairs.true","Enables bracket pair guides."),f("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),f("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:f("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[f("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),f("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),f("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:f("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:f("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:f("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[f("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),f("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),f("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:f("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:lg(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:lg(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:Le(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:Le(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:lg(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function lg(o,e,t){const i=t.indexOf(o);return i===-1?e:t[i]}class xW extends Jt{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(112,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[f("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),f("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:f("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:f("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:f("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:f("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[f("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),f("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),f("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),f("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:f("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:f("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:f("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:f("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:f("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:f("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:f("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:f("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:Di(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:Le(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:Le(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:Le(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:Le(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:Di(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:Le(t.showIcons,this.defaultValue.showIcons),showStatusBar:Le(t.showStatusBar,this.defaultValue.showStatusBar),preview:Le(t.preview,this.defaultValue.preview),previewMode:Di(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:Le(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:Le(t.showMethods,this.defaultValue.showMethods),showFunctions:Le(t.showFunctions,this.defaultValue.showFunctions),showConstructors:Le(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:Le(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:Le(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:Le(t.showFields,this.defaultValue.showFields),showVariables:Le(t.showVariables,this.defaultValue.showVariables),showClasses:Le(t.showClasses,this.defaultValue.showClasses),showStructs:Le(t.showStructs,this.defaultValue.showStructs),showInterfaces:Le(t.showInterfaces,this.defaultValue.showInterfaces),showModules:Le(t.showModules,this.defaultValue.showModules),showProperties:Le(t.showProperties,this.defaultValue.showProperties),showEvents:Le(t.showEvents,this.defaultValue.showEvents),showOperators:Le(t.showOperators,this.defaultValue.showOperators),showUnits:Le(t.showUnits,this.defaultValue.showUnits),showValues:Le(t.showValues,this.defaultValue.showValues),showConstants:Le(t.showConstants,this.defaultValue.showConstants),showEnums:Le(t.showEnums,this.defaultValue.showEnums),showEnumMembers:Le(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:Le(t.showKeywords,this.defaultValue.showKeywords),showWords:Le(t.showWords,this.defaultValue.showWords),showColors:Le(t.showColors,this.defaultValue.showColors),showFiles:Le(t.showFiles,this.defaultValue.showFiles),showReferences:Le(t.showReferences,this.defaultValue.showReferences),showFolders:Le(t.showFolders,this.defaultValue.showFolders),showTypeParameters:Le(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:Le(t.showSnippets,this.defaultValue.showSnippets),showUsers:Le(t.showUsers,this.defaultValue.showUsers),showIssues:Le(t.showIssues,this.defaultValue.showIssues)}}}class kW extends Jt{constructor(){super(107,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:f("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:Le(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class IW extends _f{constructor(){super(137)}compute(e,t,i){return t.get(86)?!0:e.tabFocusMode}}class EW extends Jt{constructor(){super(131,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[f("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),f("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),f("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),f("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:f("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return t.get(2)===2?0:i}}class TW extends _f{constructor(){super(139)}compute(e,t,i){const n=t.get(138);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}class NW extends Jt{constructor(){const e={enabled:!0};super(33,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:f("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor).")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Le(e.enabled,this.defaultValue.enabled)}}}const MW="Consolas, 'Courier New', monospace",AW="Menlo, Monaco, 'Courier New', monospace",RW="'Droid Sans Mono', 'monospace', monospace",ps={fontFamily:Ke?AW:hn?RW:MW,fontWeight:"normal",fontSize:Ke?12:14,lineHeight:0,letterSpacing:0},Bu=[];function ee(o){return Bu[o.id]=o,o}const Dr={acceptSuggestionOnCommitCharacter:ee(new ct(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:f("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:ee(new ai(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",f("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:f("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:ee(new Y6),accessibilityPageSize:ee(new Lt(3,"accessibilityPageSize",10,1,1073741824,{description:f("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:ee(new ds(4,"ariaLabel",f("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:ee(new ai(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),f("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:f("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:ee(new ai(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",f("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:f("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:ee(new ai(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",f("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:f("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ee(new ai(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),f("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:f("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ee(new Tb(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],Z6,{enumDescriptions:[f("editor.autoIndent.none","The editor will not insert indentation automatically."),f("editor.autoIndent.keep","The editor will keep the current line's indentation."),f("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),f("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),f("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:f("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ee(new ct(10,"automaticLayout",!1)),autoSurround:ee(new ai(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[f("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),f("editor.autoSurround.quotes","Surround with quotes but not brackets."),f("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:f("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:ee(new LW),bracketPairGuides:ee(new DW),stickyTabStops:ee(new ct(110,"stickyTabStops",!1,{description:f("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:ee(new ct(14,"codeLens",!0,{description:f("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:ee(new ds(15,"codeLensFontFamily","",{description:f("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:ee(new Lt(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:f("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:ee(new ct(17,"colorDecorators",!0,{description:f("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorsLimit:ee(new Lt(18,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:f("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:ee(new ct(19,"columnSelection",!1,{description:f("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:ee(new Q6),contextmenu:ee(new ct(21,"contextmenu",!0)),copyWithSyntaxHighlighting:ee(new ct(22,"copyWithSyntaxHighlighting",!0,{description:f("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ee(new Tb(23,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],X6,{description:f("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ee(new ai(24,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[f("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),f("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),f("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:f("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ee(new Tb(25,"cursorStyle",Gi.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],J6,{description:f("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ee(new Lt(26,"cursorSurroundingLines",0,0,1073741824,{description:f("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:ee(new ai(27,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[f("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),f("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:f("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:ee(new Lt(28,"cursorWidth",0,0,1073741824,{markdownDescription:f("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ee(new ct(29,"disableLayerHinting",!1)),disableMonospaceOptimizations:ee(new ct(30,"disableMonospaceOptimizations",!1)),domReadOnly:ee(new ct(31,"domReadOnly",!1)),dragAndDrop:ee(new ct(32,"dragAndDrop",!0,{description:f("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ee(new tW),dropIntoEditor:ee(new NW),stickyScroll:ee(new cW),experimentalWhitespaceRendering:ee(new ai(35,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[f("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),f("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),f("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:f("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:ee(new ds(36,"extraEditorClassName","")),fastScrollSensitivity:ee(new Xr(37,"fastScrollSensitivity",5,o=>o<=0?5:o,{markdownDescription:f("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ee(new iW),fixedOverflowWidgets:ee(new ct(39,"fixedOverflowWidgets",!1)),folding:ee(new ct(40,"folding",!0,{description:f("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ee(new ai(41,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[f("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),f("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:f("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:ee(new ct(42,"foldingHighlight",!0,{description:f("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:ee(new ct(43,"foldingImportsByDefault",!1,{description:f("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:ee(new Lt(44,"foldingMaximumRegions",5e3,10,65e3,{description:f("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:ee(new ct(45,"unfoldOnClickAfterEndOfLine",!1,{description:f("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:ee(new ds(46,"fontFamily",ps.fontFamily,{description:f("fontFamily","Controls the font family.")})),fontInfo:ee(new nW),fontLigatures2:ee(new As),fontSize:ee(new sW),fontWeight:ee(new Ur),fontVariations:ee(new or),formatOnPaste:ee(new ct(52,"formatOnPaste",!1,{description:f("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:ee(new ct(53,"formatOnType",!1,{description:f("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ee(new ct(54,"glyphMargin",!0,{description:f("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ee(new oW),hideCursorInOverviewRuler:ee(new ct(56,"hideCursorInOverviewRuler",!1,{description:f("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:ee(new rW),inDiffEditor:ee(new ct(58,"inDiffEditor",!1)),letterSpacing:ee(new Xr(60,"letterSpacing",ps.letterSpacing,o=>Xr.clamp(o,-5,20),{description:f("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ee(new lW),lineDecorationsWidth:ee(new hW),lineHeight:ee(new uW),lineNumbers:ee(new vW),lineNumbersMinChars:ee(new Lt(65,"lineNumbersMinChars",5,1,300)),linkedEditing:ee(new ct(66,"linkedEditing",!1,{description:f("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:ee(new ct(67,"links",!0,{description:f("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ee(new ai(68,"matchBrackets","always",["always","near","never"],{description:f("matchBrackets","Highlight matching brackets.")})),minimap:ee(new gW),mouseStyle:ee(new ai(70,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ee(new Xr(71,"mouseWheelScrollSensitivity",1,o=>o===0?1:o,{markdownDescription:f("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ee(new ct(72,"mouseWheelZoom",!1,{markdownDescription:f("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ee(new ct(73,"multiCursorMergeOverlapping",!0,{description:f("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ee(new Tb(74,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],fW,{markdownEnumDescriptions:[f("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),f("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:f({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:ee(new ai(75,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[f("multiCursorPaste.spread","Each cursor pastes a single line of the text."),f("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:f("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:ee(new Lt(76,"multiCursorLimit",1e4,1,1e5,{markdownDescription:f("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:ee(new ct(77,"occurrencesHighlight",!0,{description:f("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:ee(new ct(78,"overviewRulerBorder",!0,{description:f("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ee(new Lt(79,"overviewRulerLanes",3,0,3)),padding:ee(new pW),parameterHints:ee(new mW),peekWidgetDefaultFocus:ee(new ai(82,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[f("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),f("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:f("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:ee(new ct(83,"definitionLinkOpensInPeek",!1,{description:f("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:ee(new bW),quickSuggestionsDelay:ee(new Lt(85,"quickSuggestionsDelay",10,0,1073741824,{description:f("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ee(new ct(86,"readOnly",!1)),renameOnType:ee(new ct(87,"renameOnType",!1,{description:f("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:f("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:ee(new ct(88,"renderControlCharacters",!0,{description:f("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:ee(new ai(89,"renderFinalNewline",hn?"dimmed":"on",["off","on","dimmed"],{description:f("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ee(new ai(90,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",f("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:f("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:ee(new ct(91,"renderLineHighlightOnlyWhenFocus",!1,{description:f("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:ee(new ai(92,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ee(new ai(93,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",f("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),f("renderWhitespace.selection","Render whitespace characters only on selected text."),f("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:f("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ee(new Lt(94,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:ee(new ct(95,"roundedSelection",!0,{description:f("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ee(new CW),scrollbar:ee(new wW),scrollBeyondLastColumn:ee(new Lt(98,"scrollBeyondLastColumn",4,0,1073741824,{description:f("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ee(new ct(99,"scrollBeyondLastLine",!0,{description:f("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:ee(new ct(100,"scrollPredominantAxis",!0,{description:f("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:ee(new ct(101,"selectionClipboard",!0,{description:f("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:hn})),selectionHighlight:ee(new ct(102,"selectionHighlight",!0,{description:f("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ee(new ct(103,"selectOnLineNumbers",!0)),showFoldingControls:ee(new ai(104,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[f("showFoldingControls.always","Always show the folding controls."),f("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),f("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:f("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:ee(new ct(105,"showUnused",!0,{description:f("showUnused","Controls fading out of unused code.")})),showDeprecated:ee(new ct(133,"showDeprecated",!0,{description:f("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:ee(new dW),snippetSuggestions:ee(new ai(106,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[f("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),f("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),f("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),f("snippetSuggestions.none","Do not show snippet suggestions.")],description:f("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:ee(new kW),smoothScrolling:ee(new ct(108,"smoothScrolling",!1,{description:f("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ee(new Lt(111,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ee(new xW),inlineSuggest:ee(new yW),suggestFontSize:ee(new Lt(113,"suggestFontSize",0,0,1e3,{markdownDescription:f("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:ee(new Lt(114,"suggestLineHeight",0,0,1e3,{markdownDescription:f("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:ee(new ct(115,"suggestOnTriggerCharacters",!0,{description:f("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ee(new ai(116,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[f("suggestSelection.first","Always select the first suggestion."),f("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),f("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:f("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ee(new ai(117,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[f("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),f("tabCompletion.off","Disable tab completions."),f("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:f("tabCompletion","Enables tab completions.")})),tabIndex:ee(new Lt(118,"tabIndex",0,-1,1073741824)),unicodeHighlight:ee(new SW),unusualLineTerminators:ee(new ai(120,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[f("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),f("unusualLineTerminators.off","Unusual line terminators are ignored."),f("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:f("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:ee(new ct(121,"useShadowDOM",!0)),useTabStops:ee(new ct(122,"useTabStops",!0,{description:f("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordBreak:ee(new ai(123,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[f("wordBreak.normal","Use the default line break rule."),f("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:f("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSeparators:ee(new ds(124,"wordSeparators",p4,{description:f("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ee(new ai(125,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[f("wordWrap.off","Lines will never wrap."),f("wordWrap.on","Lines will wrap at the viewport width."),f({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),f({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:f({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:ee(new ds(126,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:ee(new ds(127,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:ee(new Lt(128,"wordWrapColumn",80,1,1073741824,{markdownDescription:f({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:ee(new ai(129,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:ee(new ai(130,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:ee(new eW),pixelRatio:ee(new _W),tabFocusMode:ee(new IW),layoutInfo:ee(new ag),wrappingInfo:ee(new TW),wrappingIndent:ee(new EW),wrappingStrategy:ee(new aW)};class PW{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Tg.isErrorNoTelemetry(e)?new Tg(e.message+` @@ -629,7 +629,7 @@ ${e.toString()}`}}class XC{constructor(e=new gw,t=!1,i,n=Wie){var s;this._servic `:`\r `}};Bk=td([Zi(0,at)],Bk);class Yie{publicLog(e,t){return Promise.resolve(void 0)}publicLog2(e,t){return this.publicLog(e,t)}}class h_{constructor(){const e=Ce.from({scheme:h_.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new EJ({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===h_.SCHEME?this.workspace.folders[0]:null}}h_.SCHEME="inmemory";function JC(o,e,t){if(!e||!(o instanceof B7))return;const i=[];Object.keys(e).forEach(n=>{lJ(n)&&i.push([`editor.${n}`,e[n]]),t&&cJ(n)&&i.push([`diffEditor.${n}`,e[n]])}),i.length>0&&o.updateValues(i)}let Wk=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return EN(this,void 0,void 0,function*(){const i=Array.isArray(e)?e:JT.convert(e),n=new Map;for(const a of i){if(!(a instanceof fl))throw new Error("bad edit - only text edits are supported");const l=this._modelService.getModel(a.resource);if(!l)throw new Error("bad edit - model not found");if(typeof a.versionId=="number"&&l.getVersionId()!==a.versionId)throw new Error("bad state - model changed in the meantime");let c=n.get(l);c||(c=[],n.set(l,c)),c.push(Wt.replaceMove(y.lift(a.textEdit.range),a.textEdit.text))}let s=0,r=0;for(const[a,l]of n)a.pushStackElement(),a.pushEditOperations([],l,()=>[]),a.pushStackElement(),r+=1,s+=l.length;return{ariaSummary:to(ek.bulkEditServiceSummary,s,r),isApplied:s>0}})}};Wk=td([Zi(0,jt)],Wk);class Qie{getUriLabel(e,t){return e.scheme==="file"?e.fsPath:e.path}getUriBasenameLabel(e){return uo(e)}}let Vk=class extends tk{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const n=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();n&&(t=n.getContainerDomNode())}return super.showContextView(e,t,i)}};Vk=td([Zi(0,kf),Zi(1,ut)],Vk);class Xie{constructor(){this._neverEmitter=new O,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}class Jie extends t_{constructor(){super()}}class ene extends jie{constructor(){super(new Wz)}}let Hk=class extends rk{constructor(e,t,i,n,s,r){super(e,t,i,n,s,r),this.configure({blockMouse:!1})}};Hk=td([Zi(0,mo),Zi(1,_i),Zi(2,xl),Zi(3,ei),Zi(4,Ea),Zi(5,Ee)],Hk);class tne{playAudioCue(e,t){return EN(this,void 0,void 0,function*(){})}}ot(at,B7,0);ot(ZE,Fk,0);ot(SF,Bk,0);ot(Xm,h_,0);ot(Yg,Qie,0);ot(mo,Yie,0);ot(tb,Gie,0);ot(_i,d_,0);ot(Na,Kl,0);ot(Ut,Jie,0);ot(Ks,Die,0);ot(po,ene,0);ot(jt,jC,0);ot(iT,hk,0);ot(Ee,Rk,0);ot(QT,qie,0);ot(ed,Aw,0);ot(jo,oee,0);ot($o,tx,0);ot(ib,Wk,0);ot(K3,Xie,0);ot(os,Pk,0);ot(xa,Ek,0);ot(wo,Qte,0);ot(ri,Ok,0);ot(ei,tf,0);ot(Ma,kk,0);ot(xl,Vk,0);ot(vo,dk,0);ot(Dl,Ak,0);ot(xr,Hk,0);ot(Ea,Tk,0);ot(HE,tne,0);var ke;(function(o){const e=new gw;for(const[r,a]of Z2())e.set(r,a);const t=new XC(e,!0);e.set(Me,t);function i(r){const a=e.get(r);if(!a)throw new Error("Missing service "+r);return a instanceof Hr?t.invokeFunction(l=>l.get(r)):a}o.get=i;let n=!1;function s(r){if(n)return t;n=!0;for(const[a,l]of Z2())e.get(a)||e.set(a,l);for(const a in r)if(r.hasOwnProperty(a)){const l=Je(a);e.get(l)instanceof Hr&&e.set(l,r[a])}return t}o.initialize=s})(ke||(ke={}));var TN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Bt=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let ine=0,IP=!1;function nne(o){if(!o){if(IP)return;IP=!0}f$(o||document.body)}let e1=class extends qg{constructor(e,t,i,n,s,r,a,l,c,d,h,u){const g=Object.assign({},t);g.ariaLabel=g.ariaLabel||PC.editorViewAccessibleLabel,g.ariaLabel=g.ariaLabel+";"+PC.accessibilityHelpMessage,super(e,g,{},i,n,s,r,l,c,d,h,u),a instanceof tf?this._standaloneKeybindingService=a:this._standaloneKeybindingService=null,nne(g.ariaContainerElement)}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const n="DYNAMIC_"+ ++ine,s=oe.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,s),n}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if(typeof e.id!="string"||typeof e.label!="string"||typeof e.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),U.None;const t=e.id,i=e.label,n=oe.and(oe.equals("editorId",this.getId()),oe.deserialize(e.precondition)),s=e.keybindings,r=oe.and(n,oe.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,l=e.contextMenuOrder||0,c=(g,...p)=>Promise.resolve(e.run(this,...p)),d=new Z,h=this.getId()+":"+t;if(d.add(st.registerCommand(h,c)),a){const g={command:{id:h,title:i},when:n,group:a,order:l};d.add(Jn.appendMenuItem(T.EditorContext,g))}if(Array.isArray(s))for(const g of s)d.add(this._standaloneKeybindingService.addDynamicKeybinding(h,g,c,r));const u=new P5(h,i,i,n,c,this._contextKeyService);return this._actions.set(t,u),d.add(Pe(()=>{this._actions.delete(t)})),d}_triggerCommand(e,t){if(this._codeEditorService instanceof EC)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};e1=TN([Bt(2,Me),Bt(3,ut),Bt(4,ri),Bt(5,Ee),Bt(6,ei),Bt(7,Hi),Bt(8,_i),Bt(9,xa),Bt(10,ui),Bt(11,ge)],e1);let zk=class extends e1{constructor(e,t,i,n,s,r,a,l,c,d,h,u,g,p,m){const _=Object.assign({},t);JC(d,_,!1);const v=l.registerEditorContainer(e);typeof _.theme=="string"&&l.setTheme(_.theme),typeof _.autoDetectHighContrast<"u"&&l.setAutoDetectHighContrast(!!_.autoDetectHighContrast);const b=_.model;delete _.model,super(e,_,i,n,s,r,a,l,c,h,p,m),this._configurationService=d,this._standaloneThemeService=l,this._register(v);let C;if(typeof b>"u"){const S=g.getLanguageIdByMimeType(_.language)||_.language||Vs;C=W7(u,g,_.value||"",S,void 0),this._ownsModel=!0}else C=b,this._ownsModel=!1;if(this._attachModel(C),C){const S={oldModelUrl:null,newModelUrl:C.uri};this._onDidChangeModel.fire(S)}}dispose(){super.dispose()}updateOptions(e){JC(this._configurationService,e,!1),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};zk=TN([Bt(2,Me),Bt(3,ut),Bt(4,ri),Bt(5,Ee),Bt(6,ei),Bt(7,Ks),Bt(8,_i),Bt(9,at),Bt(10,xa),Bt(11,jt),Bt(12,Ut),Bt(13,ui),Bt(14,ge)],zk);let Uk=class extends Oc{constructor(e,t,i,n,s,r,a,l,c,d,h){const u=Object.assign({},t);JC(l,u,!0);const g=r.registerEditorContainer(e);typeof u.theme=="string"&&r.setTheme(u.theme),typeof u.autoDetectHighContrast<"u"&&r.setAutoDetectHighContrast(!!u.autoDetectHighContrast),super(e,u,{},h,n,i,s,r,a,c,d),this._configurationService=l,this._standaloneThemeService=r,this._register(g)}dispose(){super.dispose()}updateOptions(e){JC(this._configurationService,e,!0),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(e1,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};Uk=TN([Bt(2,Me),Bt(3,Ee),Bt(4,ut),Bt(5,Ks),Bt(6,_i),Bt(7,at),Bt(8,xr),Bt(9,ed),Bt(10,Dl)],Uk);function W7(o,e,t,i,n){if(t=t||"",!i){const s=t.indexOf(` `);let r=t;return s!==-1&&(r=t.substring(0,s)),EP(o,t,e.createByFilepathOrFirstLine(n||null,r),n)}return EP(o,t,e.createById(i),n)}function EP(o,e,t,i){return o.createModel(e,t,i)}function sne(o,e,t){return ke.initialize(t||{}).createInstance(zk,o,e)}function one(o){return ke.get(ut).onCodeEditorAdd(t=>{o(t)})}function rne(o){return ke.get(ut).onDiffEditorAdd(t=>{o(t)})}function ane(){return ke.get(ut).listCodeEditors()}function lne(){return ke.get(ut).listDiffEditors()}function cne(o,e,t){return ke.initialize(t||{}).createInstance(Uk,o,e)}function dne(o,e){return ke.initialize({}).createInstance($D,o,e)}function hne(o){if(typeof o.id!="string"||typeof o.run!="function")throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return st.registerCommand(o.id,o.run)}function une(o){if(typeof o.id!="string"||typeof o.label!="string"||typeof o.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const e=oe.deserialize(o.precondition),t=(n,...s)=>Ji.runEditorCommand(n,s,e,(r,a,l)=>Promise.resolve(o.run(a,...l))),i=new Z;if(i.add(st.registerCommand(o.id,t)),o.contextMenuGroupId){const n={command:{id:o.id,title:o.label},when:e,group:o.contextMenuGroupId,order:o.contextMenuOrder||0};i.add(Jn.appendMenuItem(T.EditorContext,n))}if(Array.isArray(o.keybindings)){const n=ke.get(ei);if(!(n instanceof tf))console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService");else{const s=oe.and(e,oe.deserialize(o.keybindingContext));i.add(n.addDynamicKeybindings(o.keybindings.map(r=>({keybinding:r,command:o.id,when:s}))))}}return i}function gne(o){return V7([o])}function V7(o){const e=ke.get(ei);return e instanceof tf?e.addDynamicKeybindings(o.map(t=>({keybinding:t.keybinding,command:t.command,commandArgs:t.commandArgs,when:oe.deserialize(t.when)}))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),U.None)}function fne(o,e,t){const i=ke.get(Ut),n=i.getLanguageIdByMimeType(e)||e;return W7(ke.get(jt),i,o,n,t)}function pne(o,e){const t=ke.get(Ut),i=ke.get(jt),n=t.getLanguageIdByMimeType(e)||e||Vs;i.setMode(o,t.createById(n))}function mne(o,e,t){o&&ke.get(Na).changeOne(e,o.uri,t)}function _ne(o){ke.get(Na).changeAll(o,[])}function bne(o){return ke.get(Na).read(o)}function vne(o){return ke.get(Na).onMarkerChanged(o)}function Cne(o){return ke.get(jt).getModel(o)}function wne(){return ke.get(jt).getModels()}function Sne(o){return ke.get(jt).onModelAdded(o)}function yne(o){return ke.get(jt).onModelRemoved(o)}function Lne(o){return ke.get(jt).onModelLanguageChanged(t=>{o({model:t.model,oldLanguage:t.oldLanguageId})})}function Dne(o){return jz(ke.get(jt),ke.get(ui),o)}function xne(o,e){const t=ke.get(Ut),i=ke.get(Ks);return i.registerEditorContainer(o),JE.colorizeElement(i,t,o,e)}function kne(o,e,t){const i=ke.get(Ut);return ke.get(Ks).registerEditorContainer(document.body),JE.colorize(i,o,e,t)}function Ine(o,e,t=4){return ke.get(Ks).registerEditorContainer(document.body),JE.colorizeModelLine(o,e,t)}function Ene(o){const e=Kt.get(o);return e||{getInitialState:()=>Bg,tokenize:(t,i,n)=>$E(o,n)}}function Tne(o,e){Kt.getOrCreate(e);const t=Ene(e),i=ma(o),n=[];let s=t.getInitialState();for(let r=0,a=i.length;r=100){i=i-100;const n=t.split(".");if(n.unshift(t),i=0&&(i.tokenSubst=!0),typeof t.bracket=="string")if(t.bracket==="@open")i.bracket=1;else if(t.bracket==="@close")i.bracket=-1;else throw Rt(o,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+e);if(t.next){if(typeof t.next!="string")throw Rt(o,"the next state must be a string value in rule: "+e);{let n=t.next;if(!/^(@pop|@push|@popall)$/.test(n)&&(n[0]==="@"&&(n=n.substr(1)),n.indexOf("$")<0&&!dU(o,Gl(o,n,"",[],""))))throw Rt(o,"the next state '"+t.next+"' is not defined in rule: "+e);i.next=n}}return typeof t.goBack=="number"&&(i.goBack=t.goBack),typeof t.switchTo=="string"&&(i.switchTo=t.switchTo),typeof t.log=="string"&&(i.log=t.log),typeof t.nextEmbedded=="string"&&(i.nextEmbedded=t.nextEmbedded,o.usesEmbedded=!0),i}}else if(Array.isArray(t)){const i=[];for(let n=0,s=t.length;n0&&i[0]==="^",this.name=this.name+": "+i,this.regex=$k(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")")}setAction(e,t){this.action=jk(e,this.name,t)}}function H7(o,e){if(!e||typeof e!="object")throw new Error("Monarch: expecting a language definition object");const t={};t.languageId=o,t.includeLF=_0(e.includeLF,!1),t.noThrow=!1,t.maxStack=100,t.start=typeof e.start=="string"?e.start:null,t.ignoreCase=_0(e.ignoreCase,!1),t.unicode=_0(e.unicode,!1),t.tokenPostfix=TP(e.tokenPostfix,"."+t.languageId),t.defaultToken=TP(e.defaultToken,"source"),t.usesEmbedded=!1;const i=e;i.languageId=o,i.includeLF=t.includeLF,i.ignoreCase=t.ignoreCase,i.unicode=t.unicode,i.noThrow=t.noThrow,i.usesEmbedded=t.usesEmbedded,i.stateNames=e.tokenizer,i.defaultToken=t.defaultToken;function n(r,a,l){for(const c of l){let d=c.include;if(d){if(typeof d!="string")throw Rt(t,"an 'include' attribute must be a string at: "+r);if(d[0]==="@"&&(d=d.substr(1)),!e.tokenizer[d])throw Rt(t,"include target '"+d+"' is not defined at: "+r);n(r+"."+d,a,e.tokenizer[d])}else{const h=new Vne(r);if(Array.isArray(c)&&c.length>=1&&c.length<=3)if(h.setRegex(i,c[0]),c.length>=3)if(typeof c[1]=="string")h.setAction(i,{token:c[1],next:c[2]});else if(typeof c[1]=="object"){const u=c[1];u.next=c[2],h.setAction(i,u)}else throw Rt(t,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+r);else h.setAction(i,c[1]);else{if(!c.regex)throw Rt(t,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+r);c.name&&typeof c.name=="string"&&(h.name=c.name),c.matchOnlyAtStart&&(h.matchOnlyAtLineStart=_0(c.matchOnlyAtLineStart,!1)),h.setRegex(i,c.regex),h.setAction(i,c.action)}a.push(h)}}}if(!e.tokenizer||typeof e.tokenizer!="object")throw Rt(t,"a language definition must define the 'tokenizer' attribute as an object");t.tokenizer=[];for(const r in e.tokenizer)if(e.tokenizer.hasOwnProperty(r)){t.start||(t.start=r);const a=e.tokenizer[r];t.tokenizer[r]=new Array,n("tokenizer."+r,t.tokenizer[r],a)}if(t.usesEmbedded=i.usesEmbedded,e.brackets){if(!Array.isArray(e.brackets))throw Rt(t,"the 'brackets' attribute must be defined as an array")}else e.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const s=[];for(const r of e.brackets){let a=r;if(a&&Array.isArray(a)&&a.length===3&&(a={token:a[2],open:a[0],close:a[1]}),a.open===a.close)throw Rt(t,"open and close brackets in a 'brackets' attribute must be different: "+a.open+` - hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")s.push({token:a.token+t.tokenPostfix,open:pc(t,a.open),close:pc(t,a.close)});else throw Rt(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=s,t.noThrow=!0,t}var Hne=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function zne(o){Fg.registerLanguage(o)}function Une(){let o=[];return o=o.concat(Fg.getLanguages()),o}function $ne(o){return ke.get(Ut).languageIdCodec.encodeLanguageId(o)}function jne(o,e){const i=ke.get(Ut).onDidEncounterLanguage(n=>{n===o&&(i.dispose(),e())});return i}function Kne(o,e){if(!ke.get(Ut).isRegisteredLanguageId(o))throw new Error(`Cannot set configuration for unknown language ${o}`);return ke.get(ui).register(o,e,100)}class qne{constructor(e,t){this._languageId=e,this._actual=t}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if(typeof this._actual.tokenize=="function")return u_.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const n=this._actual.tokenizeEncoded(e,i);return new x1(n.tokens,n.endState)}}class u_{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=n}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let n=0;for(let s=0,r=e.length;s0&&s[r-1]===u)continue;let g=h.startIndex;c===0?g=0:gHne(this,void 0,void 0,function*(){const i=yield Promise.resolve(e.create());return i?Gne(i)?U7(o,i):new km(ke.get(Ut),ke.get(Ks),o,H7(o,i),ke.get(at)):null})};return Kt.registerFactory(o,t)}function Qne(o,e){if(!ke.get(Ut).isRegisteredLanguageId(o))throw new Error(`Cannot set tokens provider for unknown language ${o}`);return z7(e)?NN(o,{create:()=>e}):Kt.register(o,U7(o,e))}function Xne(o,e){const t=i=>new km(ke.get(Ut),ke.get(Ks),o,H7(o,i),ke.get(at));return z7(e)?NN(o,{create:()=>e}):Kt.register(o,t(e))}function Jne(o,e){return ke.get(ge).referenceProvider.register(o,e)}function ese(o,e){return ke.get(ge).renameProvider.register(o,e)}function tse(o,e){return ke.get(ge).signatureHelpProvider.register(o,e)}function ise(o,e){return ke.get(ge).hoverProvider.register(o,{provideHover:(i,n,s)=>{const r=i.getWordAtPosition(n);return Promise.resolve(e.provideHover(i,n,s)).then(a=>{if(a)return!a.range&&r&&(a.range=new y(n.lineNumber,r.startColumn,n.lineNumber,r.endColumn)),a.range||(a.range=new y(n.lineNumber,n.column,n.lineNumber,n.column)),a})}})}function nse(o,e){return ke.get(ge).documentSymbolProvider.register(o,e)}function sse(o,e){return ke.get(ge).documentHighlightProvider.register(o,e)}function ose(o,e){return ke.get(ge).linkedEditingRangeProvider.register(o,e)}function rse(o,e){return ke.get(ge).definitionProvider.register(o,e)}function ase(o,e){return ke.get(ge).implementationProvider.register(o,e)}function lse(o,e){return ke.get(ge).typeDefinitionProvider.register(o,e)}function cse(o,e){return ke.get(ge).codeLensProvider.register(o,e)}function dse(o,e,t){return ke.get(ge).codeActionProvider.register(o,{providedCodeActionKinds:t==null?void 0:t.providedCodeActionKinds,documentation:t==null?void 0:t.documentation,provideCodeActions:(n,s,r,a)=>{const c=ke.get(Na).read({resource:n.uri}).filter(d=>y.areIntersectingOrTouching(d,s));return e.provideCodeActions(n,s,{markers:c,only:r.only,trigger:r.trigger},a)},resolveCodeAction:e.resolveCodeAction})}function hse(o,e){return ke.get(ge).documentFormattingEditProvider.register(o,e)}function use(o,e){return ke.get(ge).documentRangeFormattingEditProvider.register(o,e)}function gse(o,e){return ke.get(ge).onTypeFormattingEditProvider.register(o,e)}function fse(o,e){return ke.get(ge).linkProvider.register(o,e)}function pse(o,e){return ke.get(ge).completionProvider.register(o,e)}function mse(o,e){return ke.get(ge).colorProvider.register(o,e)}function _se(o,e){return ke.get(ge).foldingRangeProvider.register(o,e)}function bse(o,e){return ke.get(ge).declarationProvider.register(o,e)}function vse(o,e){return ke.get(ge).selectionRangeProvider.register(o,e)}function Cse(o,e){return ke.get(ge).documentSemanticTokensProvider.register(o,e)}function wse(o,e){return ke.get(ge).documentRangeSemanticTokensProvider.register(o,e)}function Sse(o,e){return ke.get(ge).inlineCompletionsProvider.register(o,e)}function yse(o,e){return ke.get(ge).inlayHintsProvider.register(o,e)}function Lse(){return{register:zne,getLanguages:Une,onLanguage:jne,getEncodedLanguageId:$ne,setLanguageConfiguration:Kne,setColorMap:Yne,registerTokensProviderFactory:NN,setTokensProvider:Qne,setMonarchTokensProvider:Xne,registerReferenceProvider:Jne,registerRenameProvider:ese,registerCompletionItemProvider:pse,registerSignatureHelpProvider:tse,registerHoverProvider:ise,registerDocumentSymbolProvider:nse,registerDocumentHighlightProvider:sse,registerLinkedEditingRangeProvider:ose,registerDefinitionProvider:rse,registerImplementationProvider:ase,registerTypeDefinitionProvider:lse,registerCodeLensProvider:cse,registerCodeActionProvider:dse,registerDocumentFormattingEditProvider:hse,registerDocumentRangeFormattingEditProvider:use,registerOnTypeFormattingEditProvider:gse,registerLinkProvider:fse,registerColorProvider:mse,registerFoldingRangeProvider:_se,registerDeclarationProvider:bse,registerSelectionRangeProvider:vse,registerDocumentSemanticTokensProvider:Cse,registerDocumentRangeSemanticTokensProvider:wse,registerInlineCompletionsProvider:Sse,registerInlayHintsProvider:yse,DocumentHighlightKind:dD,CompletionItemKind:sD,CompletionItemTag:oD,CompletionItemInsertTextRule:Fv,SymbolKind:AD,SymbolTag:RD,IndentAction:pD,CompletionTriggerKind:rD,SignatureHelpTriggerKind:MD,InlayHintKind:_D,InlineCompletionTriggerKind:bD,CodeActionTriggerType:nD,FoldingRangeKind:vr}}const MN=Je("IEditorCancelService"),$7=new ce("cancellableOperation",!1,f("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));ot(MN,class{constructor(){this._tokens=new WeakMap}add(o,e){let t=this._tokens.get(o);t||(t=o.invokeWithinContext(n=>{const s=$7.bindTo(n.get(Ee)),r=new ln;return{key:s,tokens:r}}),this._tokens.set(o,t));let i;return t.key.set(!0),i=t.tokens.push(e),()=>{i&&(i(),t.key.set(!t.tokens.isEmpty()),i=void 0)}}cancel(o){const e=this._tokens.get(o);if(!e)return;const t=e.tokens.pop();t&&(t.cancel(),e.key.set(!e.tokens.isEmpty()))}},1);class Dse extends Xi{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(i=>i.get(MN).add(e,this))}dispose(){this._unregister(),super.dispose()}}ie(new class extends Ji{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:$7})}runEditorCommand(o,e){o.get(MN).cancel(e)}});let j7=class Kk{constructor(e,t){if(this.flags=t,this.flags&1){const i=e.getModel();this.modelVersionId=i?to("{0}#{1}",i.uri.toString(),i.getVersionId()):null}else this.modelVersionId=null;this.flags&4?this.position=e.getPosition():this.position=null,this.flags&2?this.selection=e.getSelection():this.selection=null,this.flags&8?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof Kk))return!1;const t=e;return!(this.modelVersionId!==t.modelVersionId||this.scrollLeft!==t.scrollLeft||this.scrollTop!==t.scrollTop||!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position)||!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))}validate(e){return this._equals(new Kk(e,this.flags))}};class Sh extends Dse{constructor(e,t,i,n){super(e,n),this._listener=new Z,t&4&&this._listener.add(e.onDidChangeCursorPosition(s=>{(!i||!y.containsPosition(i,s.position))&&this.cancel()})),t&2&&this._listener.add(e.onDidChangeCursorSelection(s=>{(!i||!y.containsRange(i,s.selection))&&this.cancel()})),t&8&&this._listener.add(e.onDidScrollChange(s=>this.cancel())),t&1&&(this._listener.add(e.onDidChangeModel(s=>this.cancel())),this._listener.add(e.onDidChangeModelContent(s=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class AN extends Xi{constructor(e,t){super(t),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}function La(o){return o&&typeof o.getEditorType=="function"?o.getEditorType()===U_.ICodeEditor:!1}function K7(o){return o&&typeof o.getEditorType=="function"?o.getEditorType()===U_.IDiffEditor:!1}function xse(o){return!!o&&typeof o=="object"&&typeof o.onDidChangeActiveEditor=="function"}function q7(o){return La(o)?o:K7(o)?o.getModifiedEditor():xse(o)&&La(o.activeCodeEditor)?o.activeCodeEditor:null}class nf{static _handleEolEdits(e,t){let i;const n=[];for(const s of t)typeof s.eol=="number"&&(i=s.eol),s.range&&typeof s.text=="string"&&n.push(s);return typeof i=="number"&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const n=Ca.capture(e),s=nf._handleEolEdits(e,t);s.length===1&&nf._isFullModelReplaceEdit(e,s[0])?e.executeEdits("formatEditsCommand",s.map(r=>Wt.replace(y.lift(r.range),r.text))):e.executeEdits("formatEditsCommand",s.map(r=>Wt.replaceMove(y.lift(r.range),r.text))),i&&e.pushUndoStop(),n.restoreRelativeVerticalPositionOfCursor(e)}}class eL{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}var Lr=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function RN(o){if(o=o.filter(n=>n.range),!o.length)return;let{range:e}=o[0];for(let n=1;n0&&y.areIntersectingOrTouching(c[d-1],m)?c[d-1]=y.fromPositions(c[d-1].getStartPosition(),m.getEndPosition()):d=c.push(m);const h=m=>Lr(this,void 0,void 0,function*(){var _,v;r.trace("[format][provideDocumentRangeFormattingEdits] (request)",(_=e.extensionId)===null||_===void 0?void 0:_.value,m);const b=(yield e.provideDocumentRangeFormattingEdits(a,m,a.getFormattingOptions(),l.token))||[];return r.trace("[format][provideDocumentRangeFormattingEdits] (response)",(v=e.extensionId)===null||v===void 0?void 0:v.value,b),b}),u=(m,_)=>{if(!m.length||!_.length)return!1;const v=m.reduce((b,C)=>y.plusRange(b,C.range),m[0].range);if(!_.some(b=>y.intersectRanges(v,b.range)))return!1;for(const b of m)for(const C of _)if(y.intersectRanges(b.range,C.range))return!0;return!1},g=[],p=[];try{for(const m of c){if(l.token.isCancellationRequested)return!0;p.push(yield h(m))}for(let m=0;m({text:v.text,range:y.lift(v.range),forceMoveMarkers:!0})),v=>{for(const{range:b}of v)if(y.areIntersectingOrTouching(b,_))return[new he(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn)];return null})}return!0})}function Ise(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=o.get(Me),r=o.get(ge),a=La(e)?e.getModel():e,l=G7(r.documentFormattingEditProvider,r.documentRangeFormattingEditProvider,a),c=yield yh.select(l,a,t);c&&(i.report(c),yield s.invokeFunction(Ese,c,e,t,n))})}function Ese(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=o.get($o);let r,a;La(t)?(r=t.getModel(),a=new Sh(t,5,void 0,n)):(r=t,a=new AN(t,n));let l;try{const c=yield e.provideDocumentFormattingEdits(r,r.getFormattingOptions(),a.token);if(l=yield s.computeMoreMinimalEdits(r.uri,c),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!l||l.length===0)return!1;if(La(t))nf.execute(t,l,i!==2),i!==2&&(RN(l),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1));else{const[{range:c}]=l,d=new he(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn);r.pushEditOperations([d],l.map(h=>({text:h.text,range:y.lift(h.range),forceMoveMarkers:!0})),h=>{for(const{range:u}of h)if(y.areIntersectingOrTouching(u,d))return[new he(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn)];return null})}return!0})}function Tse(o,e,t,i,n,s){return Lr(this,void 0,void 0,function*(){const r=e.documentRangeFormattingEditProvider.ordered(t);for(const a of r){const l=yield Promise.resolve(a.provideDocumentRangeFormattingEdits(t,i,n,s)).catch(Vi);if(Cn(l))return yield o.computeMoreMinimalEdits(t.uri,l)}})}function Nse(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=G7(e.documentFormattingEditProvider,e.documentRangeFormattingEditProvider,t);for(const r of s){const a=yield Promise.resolve(r.provideDocumentFormattingEdits(t,i,n)).catch(Vi);if(Cn(a))return yield o.computeMoreMinimalEdits(t.uri,a)}})}function Y7(o,e,t,i,n,s,r){const a=e.onTypeFormattingEditProvider.ordered(t);return a.length===0||a[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(t,i,n,s,r)).catch(Vi).then(l=>o.computeMoreMinimalEdits(t.uri,l))}st.registerCommand("_executeFormatRangeProvider",function(o,...e){return Lr(this,void 0,void 0,function*(){const[t,i,n]=e;_t(Ce.isUri(t)),_t(y.isIRange(i));const s=o.get(os),r=o.get($o),a=o.get(ge),l=yield s.createModelReference(t);try{return Tse(r,a,l.object.textEditorModel,y.lift(i),n,Ye.None)}finally{l.dispose()}})});st.registerCommand("_executeFormatDocumentProvider",function(o,...e){return Lr(this,void 0,void 0,function*(){const[t,i]=e;_t(Ce.isUri(t));const n=o.get(os),s=o.get($o),r=o.get(ge),a=yield n.createModelReference(t);try{return Nse(s,r,a.object.textEditorModel,i,Ye.None)}finally{a.dispose()}})});st.registerCommand("_executeFormatOnTypeProvider",function(o,...e){return Lr(this,void 0,void 0,function*(){const[t,i,n,s]=e;_t(Ce.isUri(t)),_t(W.isIPosition(i)),_t(typeof n=="string");const r=o.get(os),a=o.get($o),l=o.get(ge),c=yield r.createModelReference(t);try{return Y7(a,l,c.object.textEditorModel,W.lift(i),n,s,Ye.None)}finally{c.dispose()}})});var tL;Dr.wrappingIndent.defaultValue=0;Dr.glyphMargin.defaultValue=!1;Dr.autoIndent.defaultValue=3;Dr.overviewRulerLanes.defaultValue=2;yh.setFormatterSelector((o,e,t)=>Promise.resolve(o[0]));const zn=U4();zn.editor=Pne();zn.languages=Lse();const Q7=zn.CancellationTokenSource,X7=zn.Emitter,J7=zn.KeyCode,e8=zn.KeyMod,t8=zn.Position,i8=zn.Range,n8=zn.Selection,s8=zn.SelectionDirection,o8=zn.MarkerSeverity,r8=zn.MarkerTag,a8=zn.Uri,l8=zn.Token,ja=zn.editor,PN=zn.languages;(!((tL=di.MonacoEnvironment)===null||tL===void 0)&&tL.globalAPI||typeof define=="function"&&define.amd)&&(self.monaco=zn);typeof self.require<"u"&&typeof self.require.config=="function"&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});const lb=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:Q7,Emitter:X7,KeyCode:J7,KeyMod:e8,MarkerSeverity:o8,MarkerTag:r8,Position:t8,Range:i8,Selection:n8,SelectionDirection:s8,Token:l8,Uri:a8,editor:ja,languages:PN},Symbol.toStringTag,{value:"Module"}));var Mse=Object.defineProperty,Ase=Object.getOwnPropertyDescriptor,Rse=Object.getOwnPropertyNames,Pse=Object.prototype.hasOwnProperty,MP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Rse(e))!Pse.call(o,n)&&n!==t&&Mse(o,n,{get:()=>e[n],enumerable:!(i=Ase(e,n))||i.enumerable});return o},Ose=(o,e,t)=>(MP(o,e,"default"),t&&MP(t,e,"default")),Pp={};Ose(Pp,lb);var c8={},iL={},d8=class{constructor(o){Zt(this,"_languageId");Zt(this,"_loadingTriggered");Zt(this,"_lazyLoadPromise");Zt(this,"_lazyLoadPromiseResolve");Zt(this,"_lazyLoadPromiseReject");this._languageId=o,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(o){return iL[o]||(iL[o]=new d8(o)),iL[o]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,c8[this._languageId].loader().then(o=>this._lazyLoadPromiseResolve(o),o=>this._lazyLoadPromiseReject(o))),this._lazyLoadPromise}};function be(o){const e=o.id;c8[e]=o,Pp.languages.register(o);const t=d8.getOrCreate(e);Pp.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),Pp.languages.onLanguage(e,async()=>{const i=await t.load();Pp.languages.setLanguageConfiguration(e,i.conf)})}be({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>me(()=>import("./abap-ffbe9c82.js"),[])});be({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>me(()=>import("./apex-38989e74.js"),[])});be({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>me(()=>import("./azcli-714c239b.js"),[])});be({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>me(()=>import("./bat-7eb152e5.js"),[])});be({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>me(()=>import("./bicep-80731f71.js"),[])});be({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>me(()=>import("./cameligo-91a865e0.js"),[])});be({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>me(()=>import("./clojure-7e0f8eaa.js"),[])});be({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>me(()=>import("./coffee-af1c6ca9.js"),[])});be({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>me(()=>import("./cpp-2a429e6c.js"),[])});be({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>me(()=>import("./cpp-2a429e6c.js"),[])});be({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>me(()=>import("./csharp-d087d64c.js"),[])});be({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>me(()=>import("./csp-13ea92a6.js"),[])});be({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>me(()=>import("./css-1949305a.js"),[])});be({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>me(()=>import("./cypher-e148524e.js"),[])});be({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>me(()=>import("./dart-0a096fe0.js"),[])});be({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>me(()=>import("./dockerfile-af4eb422.js"),[])});be({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>me(()=>import("./ecl-8f5b983c.js"),[])});be({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>me(()=>import("./elixir-4b853ea7.js"),[])});be({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>me(()=>import("./flow9-47a350b0.js"),[])});be({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>me(()=>import("./fsharp-de5183ae.js"),[])});be({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>me(()=>import("./freemarker2-c07316a7.js"),["assets/freemarker2-c07316a7.js","assets/index-b6c39163.js","assets/index-91412b8b.css"]).then(o=>o.TagAutoInterpolationDollar)});be({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>me(()=>import("./freemarker2-c07316a7.js"),["assets/freemarker2-c07316a7.js","assets/index-b6c39163.js","assets/index-91412b8b.css"]).then(o=>o.TagAngleInterpolationDollar)});be({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>me(()=>import("./freemarker2-c07316a7.js"),["assets/freemarker2-c07316a7.js","assets/index-b6c39163.js","assets/index-91412b8b.css"]).then(o=>o.TagBracketInterpolationDollar)});be({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>me(()=>import("./freemarker2-c07316a7.js"),["assets/freemarker2-c07316a7.js","assets/index-b6c39163.js","assets/index-91412b8b.css"]).then(o=>o.TagAngleInterpolationBracket)});be({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>me(()=>import("./freemarker2-c07316a7.js"),["assets/freemarker2-c07316a7.js","assets/index-b6c39163.js","assets/index-91412b8b.css"]).then(o=>o.TagBracketInterpolationBracket)});be({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>me(()=>import("./freemarker2-c07316a7.js"),["assets/freemarker2-c07316a7.js","assets/index-b6c39163.js","assets/index-91412b8b.css"]).then(o=>o.TagAutoInterpolationDollar)});be({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>me(()=>import("./freemarker2-c07316a7.js"),["assets/freemarker2-c07316a7.js","assets/index-b6c39163.js","assets/index-91412b8b.css"]).then(o=>o.TagAutoInterpolationBracket)});be({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>me(()=>import("./go-a9169306.js"),[])});be({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>me(()=>import("./graphql-e84c0b6e.js"),[])});be({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>me(()=>import("./handlebars-8607b260.js"),["assets/handlebars-8607b260.js","assets/index-b6c39163.js","assets/index-91412b8b.css"])});be({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>me(()=>import("./hcl-3a006f6b.js"),[])});be({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>me(()=>import("./html-ff5bd743.js"),["assets/html-ff5bd743.js","assets/index-b6c39163.js","assets/index-91412b8b.css"])});be({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>me(()=>import("./ini-53b87513.js"),[])});be({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>me(()=>import("./java-58c1a618.js"),[])});be({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>me(()=>import("./javascript-85ebb9c2.js"),["assets/javascript-85ebb9c2.js","assets/typescript-79351655.js","assets/index-b6c39163.js","assets/index-91412b8b.css"])});be({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>me(()=>import("./julia-5f2fc018.js"),[])});be({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>me(()=>import("./kotlin-2e32535a.js"),[])});be({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>me(()=>import("./less-4cb00c13.js"),[])});be({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>me(()=>import("./lexon-22a22ba3.js"),[])});be({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>me(()=>import("./lua-04a273a9.js"),[])});be({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>me(()=>import("./liquid-80536354.js"),["assets/liquid-80536354.js","assets/index-b6c39163.js","assets/index-91412b8b.css"])});be({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>me(()=>import("./m3-b6e0b0fd.js"),[])});be({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>me(()=>import("./markdown-a4831c3f.js"),[])});be({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>me(()=>import("./mips-daa25bd4.js"),[])});be({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>me(()=>import("./msdax-c6fa6f2f.js"),[])});be({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>me(()=>import("./mysql-753a9662.js"),[])});be({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>me(()=>import("./objective-c-9e968999.js"),[])});be({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>me(()=>import("./pascal-e017ea4d.js"),[])});be({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>me(()=>import("./pascaligo-bf7e3de8.js"),[])});be({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>me(()=>import("./perl-2762c71f.js"),[])});be({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>me(()=>import("./pgsql-1566d400.js"),[])});be({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>me(()=>import("./php-df365951.js"),[])});be({id:"pla",extensions:[".pla"],loader:()=>me(()=>import("./pla-6c133053.js"),[])});be({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>me(()=>import("./postiats-b245e70f.js"),[])});be({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>me(()=>import("./powerquery-6b7a9cc4.js"),[])});be({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>me(()=>import("./powershell-50bb8773.js"),[])});be({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>me(()=>import("./protobuf-c49b6d53.js"),[])});be({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>me(()=>import("./pug-409e523c.js"),[])});be({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>me(()=>import("./python-2a6696fb.js"),["assets/python-2a6696fb.js","assets/index-b6c39163.js","assets/index-91412b8b.css"])});be({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>me(()=>import("./qsharp-8d792318.js"),[])});be({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>me(()=>import("./r-c34a576e.js"),[])});be({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>me(()=>import("./razor-a2bb4527.js"),["assets/razor-a2bb4527.js","assets/index-b6c39163.js","assets/index-91412b8b.css"])});be({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>me(()=>import("./redis-1a5ba628.js"),[])});be({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>me(()=>import("./redshift-39be2a89.js"),[])});be({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>me(()=>import("./restructuredtext-4a10ef1d.js"),[])});be({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>me(()=>import("./ruby-944f56a1.js"),[])});be({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>me(()=>import("./rust-b0440aa9.js"),[])});be({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>me(()=>import("./sb-f3b34295.js"),[])});be({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>me(()=>import("./scala-7c17b334.js"),[])});be({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>me(()=>import("./scheme-f75b8a9a.js"),[])});be({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>me(()=>import("./scss-0b143c7e.js"),[])});be({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>me(()=>import("./shell-fe999acd.js"),[])});be({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>me(()=>import("./solidity-62f35cba.js"),[])});be({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>me(()=>import("./sophia-94cd0024.js"),[])});be({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>me(()=>import("./sparql-23f0115e.js"),[])});be({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>me(()=>import("./sql-9ac813b8.js"),[])});be({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>me(()=>import("./st-4d0d15a1.js"),[])});be({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>me(()=>import("./swift-bc5aaa52.js"),[])});be({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>me(()=>import("./systemverilog-416dd7b8.js"),[])});be({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>me(()=>import("./systemverilog-416dd7b8.js"),[])});be({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>me(()=>import("./tcl-838585b9.js"),[])});be({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>me(()=>import("./twig-1b470482.js"),[])});be({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>me(()=>import("./typescript-79351655.js"),["assets/typescript-79351655.js","assets/index-b6c39163.js","assets/index-91412b8b.css"])});be({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>me(()=>import("./vb-2f676a0c.js"),[])});be({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\me(()=>import("./xml-1d9b265d.js"),["assets/xml-1d9b265d.js","assets/index-b6c39163.js","assets/index-91412b8b.css"])});be({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>me(()=>import("./yaml-e6bfac86.js"),["assets/yaml-e6bfac86.js","assets/index-b6c39163.js","assets/index-91412b8b.css"])});var Fse=Object.defineProperty,Bse=Object.getOwnPropertyDescriptor,Wse=Object.getOwnPropertyNames,Vse=Object.prototype.hasOwnProperty,AP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Wse(e))!Vse.call(o,n)&&n!==t&&Fse(o,n,{get:()=>e[n],enumerable:!(i=Bse(e,n))||i.enumerable});return o},Hse=(o,e,t)=>(AP(o,e,"default"),t&&AP(t,e,"default")),Tf={};Hse(Tf,lb);var ON=class{constructor(e,t,i){Zt(this,"_onDidChange",new Tf.Emitter);Zt(this,"_options");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},FN={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},BN={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},h8=new ON("css",FN,BN),u8=new ON("scss",FN,BN),g8=new ON("less",FN,BN);Tf.languages.css={cssDefaults:h8,lessDefaults:g8,scssDefaults:u8};function WN(){return me(()=>import("./cssMode-4585b121.js"),["assets/cssMode-4585b121.js","assets/index-b6c39163.js","assets/index-91412b8b.css"])}Tf.languages.onLanguage("less",()=>{WN().then(o=>o.setupMode(g8))});Tf.languages.onLanguage("scss",()=>{WN().then(o=>o.setupMode(u8))});Tf.languages.onLanguage("css",()=>{WN().then(o=>o.setupMode(h8))});var zse=Object.defineProperty,Use=Object.getOwnPropertyDescriptor,$se=Object.getOwnPropertyNames,jse=Object.prototype.hasOwnProperty,RP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of $se(e))!jse.call(o,n)&&n!==t&&zse(o,n,{get:()=>e[n],enumerable:!(i=Use(e,n))||i.enumerable});return o},Kse=(o,e,t)=>(RP(o,e,"default"),t&&RP(t,e,"default")),Rw={};Kse(Rw,lb);var qse=class{constructor(e,t,i){Zt(this,"_onDidChange",new Rw.Emitter);Zt(this,"_options");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Gse={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},Pw={format:Gse,suggest:{},data:{useDefaultDataProvider:!0}};function Ow(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===hm,documentFormattingEdits:o===hm,documentRangeFormattingEdits:o===hm}}var hm="html",PP="handlebars",OP="razor",f8=Fw(hm,Pw,Ow(hm)),Zse=f8.defaults,p8=Fw(PP,Pw,Ow(PP)),Yse=p8.defaults,m8=Fw(OP,Pw,Ow(OP)),Qse=m8.defaults;Rw.languages.html={htmlDefaults:Zse,razorDefaults:Qse,handlebarDefaults:Yse,htmlLanguageService:f8,handlebarLanguageService:p8,razorLanguageService:m8,registerHTMLLanguageService:Fw};function Xse(){return me(()=>import("./htmlMode-aaba28d0.js"),["assets/htmlMode-aaba28d0.js","assets/index-b6c39163.js","assets/index-91412b8b.css"])}function Fw(o,e=Pw,t=Ow(o)){const i=new qse(o,e,t);let n;const s=Rw.languages.onLanguage(o,async()=>{n=(await Xse()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}var Jse=Object.defineProperty,eoe=Object.getOwnPropertyDescriptor,toe=Object.getOwnPropertyNames,ioe=Object.prototype.hasOwnProperty,FP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of toe(e))!ioe.call(o,n)&&n!==t&&Jse(o,n,{get:()=>e[n],enumerable:!(i=eoe(e,n))||i.enumerable});return o},noe=(o,e,t)=>(FP(o,e,"default"),t&&FP(t,e,"default")),cb={};noe(cb,lb);var soe=class{constructor(e,t,i){Zt(this,"_onDidChange",new cb.Emitter);Zt(this,"_diagnosticsOptions");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},ooe={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},roe={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},_8=new soe("json",ooe,roe);cb.languages.json={jsonDefaults:_8};function aoe(){return me(()=>import("./jsonMode-32ce06a3.js"),["assets/jsonMode-32ce06a3.js","assets/index-b6c39163.js","assets/index-91412b8b.css"])}cb.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});cb.languages.onLanguage("json",()=>{aoe().then(o=>o.setupMode(_8))});var loe=Object.defineProperty,coe=Object.getOwnPropertyDescriptor,doe=Object.getOwnPropertyNames,hoe=Object.prototype.hasOwnProperty,BP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of doe(e))!hoe.call(o,n)&&n!==t&&loe(o,n,{get:()=>e[n],enumerable:!(i=coe(e,n))||i.enumerable});return o},uoe=(o,e,t)=>(BP(o,e,"default"),t&&BP(t,e,"default")),goe="4.5.5",sf={};uoe(sf,lb);var b8=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(b8||{}),v8=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(v8||{}),C8=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(C8||{}),w8=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(w8||{}),S8=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(S8||{}),y8=class{constructor(o,e,t,i,n){Zt(this,"_onDidChange",new sf.Emitter);Zt(this,"_onDidExtraLibsChange",new sf.Emitter);Zt(this,"_extraLibs");Zt(this,"_removedExtraLibs");Zt(this,"_eagerModelSync");Zt(this,"_compilerOptions");Zt(this,"_diagnosticsOptions");Zt(this,"_workerOptions");Zt(this,"_onDidExtraLibsChangeTimeout");Zt(this,"_inlayHintsOptions");Zt(this,"_modeConfiguration");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(o,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(void 0)}},foe=goe,L8={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},D8=new y8({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},L8),x8=new y8({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},L8),poe=()=>Bw().then(o=>o.getTypeScriptWorker()),moe=()=>Bw().then(o=>o.getJavaScriptWorker());sf.languages.typescript={ModuleKind:b8,JsxEmit:v8,NewLineKind:C8,ScriptTarget:w8,ModuleResolutionKind:S8,typescriptVersion:foe,typescriptDefaults:D8,javascriptDefaults:x8,getTypeScriptWorker:poe,getJavaScriptWorker:moe};function Bw(){return me(()=>import("./tsMode-12774190.js"),["assets/tsMode-12774190.js","assets/index-b6c39163.js","assets/index-91412b8b.css"])}sf.languages.onLanguage("typescript",()=>Bw().then(o=>o.setupTypeScript(D8)));sf.languages.onLanguage("javascript",()=>Bw().then(o=>o.setupJavaScript(x8)));var _oe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},boe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ww=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Vw=new ce("selectionAnchorSet",!1);let yl=class k8{static get(e){return e.getContribution(k8.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=Vw.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(he.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new Yn().appendText(f("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),cn(f("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(he.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};yl.ID="editor.contrib.selectionAnchorController";yl=_oe([boe(1,Ee)],yl);class voe extends de{constructor(){super({id:"editor.action.setSelectionAnchor",label:f("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:ki(2089,2080),weight:100}})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class Coe extends de{constructor(){super({id:"editor.action.goToSelectionAnchor",label:f("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:Vw})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class woe extends de{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:f("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:Vw,kbOpts:{kbExpr:N.editorTextFocus,primary:ki(2089,2089),weight:100}})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class Soe extends de{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:f("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:Vw,kbOpts:{kbExpr:N.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}lt(yl.ID,yl,4);J(voe);J(Coe);J(woe);J(Soe);const yoe=M("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},f("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Loe extends de{constructor(){super({id:"editor.action.jumpToBracket",label:f("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:3160,weight:100}})}run(e,t){var i;(i=br.get(t))===null||i===void 0||i.jumpToBracket()}}class Doe extends de{constructor(){super({id:"editor.action.selectToBracket",label:f("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&i.selectBrackets===!1&&(s=!1),(n=br.get(t))===null||n===void 0||n.selectToBracket(s)}}class xoe{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class br extends U{static get(e){return e.getContribution(br.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new wt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(68),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(68)&&(this._matchBrackets=this._editor.getOption(68),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new he(r.lineNumber,r.column,r.lineNumber,r.column):new he(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const c=t.bracketPairs.findNextBracket(s);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(y.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new he(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let h=0,u=e.length;h1&&s.sort(W.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=s.length;h0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}J(Toe);var Noe=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Lh="9_cutcopypaste",Moe=ur||document.queryCommandSupported("cut"),E8=ur||document.queryCommandSupported("copy"),Aoe=typeof navigator.clipboard>"u"||ro?document.queryCommandSupported("paste"):!0;function VN(o){return o.register(),o}const Roe=Moe?VN(new yf({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:ur?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:f({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:T.EditorContext,group:Lh,title:f("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1},{menuId:T.CommandPalette,group:"",title:f("actions.clipboard.cutLabel","Cut"),order:1},{menuId:T.SimpleEditorContext,group:Lh,title:f("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1}]})):void 0,Poe=E8?VN(new yf({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:ur?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:f({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:T.EditorContext,group:Lh,title:f("actions.clipboard.copyLabel","Copy"),order:2},{menuId:T.CommandPalette,group:"",title:f("actions.clipboard.copyLabel","Copy"),order:1},{menuId:T.SimpleEditorContext,group:Lh,title:f("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;Jn.appendMenuItem(T.MenubarEditMenu,{submenu:T.MenubarCopy,title:{value:f("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});Jn.appendMenuItem(T.EditorContext,{submenu:T.EditorContextCopy,title:{value:f("copy as","Copy As"),original:"Copy As"},group:Lh,order:3});Jn.appendMenuItem(T.EditorContext,{submenu:T.EditorContextShare,title:{value:f("share","Share"),original:"Share"},group:"11_share",order:-1});const nL=Aoe?VN(new yf({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:ur?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:f({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:T.EditorContext,group:Lh,title:f("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4},{menuId:T.CommandPalette,group:"",title:f("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:T.SimpleEditorContext,group:Lh,title:f("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4}]})):void 0;class Ooe extends de{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:f("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(34)&&t.getSelection().isEmpty()||(_x.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),_x.forceCopyWithSyntaxHighlighting=!1)}}function T8(o,e){o&&(o.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(ut).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const s=n.getOption(34),r=n.getSelection();return r&&r.isEmpty()&&!s||document.execCommand(e),!0}return!1}),o.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}T8(Roe,"cut");T8(Poe,"copy");nL&&(nL.addImplementation(1e4,"code-editor",(o,e)=>{const t=o.get(ut),i=o.get(Dl),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Kc?(()=>Noe(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=Bm.INSTANCE.get(r);let l=!1,c=null,d=null;a&&(l=n.getOption(34)&&!!a.isFromEmptySelection,c=typeof a.multicursorText<"u"?a.multicursorText:null,d=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:c,mode:d})}}))():!0:!1}),nL.addImplementation(0,"generic-dom",(o,e)=>(document.execCommand("paste"),!0)));E8&&J(Ooe);var Foe=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Te{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+Te.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new Te(this.value+Te.sep+e)}}Te.sep=".";Te.None=new Te("@@none@@");Te.Empty=new Te("");Te.QuickFix=new Te("quickfix");Te.Refactor=new Te("refactor");Te.RefactorExtract=Te.Refactor.append("extract");Te.RefactorInline=Te.Refactor.append("inline");Te.RefactorMove=Te.Refactor.append("move");Te.RefactorRewrite=Te.Refactor.append("rewrite");Te.Source=new Te("source");Te.SourceOrganizeImports=Te.Source.append("organizeImports");Te.SourceFixAll=Te.Source.append("fixAll");Te.SurroundWith=Te.Refactor.append("surround");var ns;(function(o){o.Refactor="refactor",o.RefactorPreview="refactor preview",o.Lightbulb="lightbulb",o.Default="other (default)",o.SourceAction="source action",o.QuickFix="quick fix action",o.FixAll="fix all",o.OrganizeImports="organize imports",o.AutoFix="auto fix",o.QuickFixHover="quick fix hover window",o.OnSave="save participants",o.ProblemsView="problems view"})(ns||(ns={}));function Boe(o,e){return!(o.include&&!o.include.intersects(e)||o.excludes&&o.excludes.some(t=>N8(e,t,o.include))||!o.includeSourceActions&&Te.Source.contains(e))}function Woe(o,e){const t=e.kind?new Te(e.kind):void 0;return!(o.include&&(!t||!o.include.contains(t))||o.excludes&&t&&o.excludes.some(i=>N8(t,i,o.include))||!o.includeSourceActions&&t&&Te.Source.contains(t)||o.onlyIncludePreferredActions&&!e.isPreferred)}function N8(o,e,t){return!(!e.contains(o)||t&&e.contains(t))}class Yr{static fromUser(e,t){return!e||typeof e!="object"?new Yr(t.kind,t.apply,!1):new Yr(Yr.getKindFromUser(e,t.kind),Yr.getApplyFromUser(e,t.apply),Yr.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new Te(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class Voe{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return Foe(this,void 0,void 0,function*(){if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Vi(n)}i&&(this.action.edit=i.edit)}return this})}}var t1=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const M8="editor.action.codeAction",A8="editor.action.refactor",Hoe="editor.action.refactor.preview",R8="editor.action.sourceAction",HN="editor.action.organizeImports",zN="editor.action.fixAll";class um extends U{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return Cn(e.diagnostics)?Cn(t.diagnostics)?um.codeActionsPreferredComparator(e,t):-1:Cn(t.diagnostics)?1:um.codeActionsPreferredComparator(e,t)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(um.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&Te.QuickFix.contains(new Te(e.kind))&&!!e.isPreferred)}}const WP={actions:[],documentation:void 0};function UN(o,e,t,i,n,s){var r;return t1(this,void 0,void 0,function*(){const a=i.filter||{},l={only:(r=a.include)===null||r===void 0?void 0:r.value,trigger:i.type},c=new AN(e,s),d=zoe(o,e,a),h=new Z,u=d.map(p=>t1(this,void 0,void 0,function*(){try{n.report(p);const m=yield p.provideCodeActions(e,t,l,c.token);if(m&&h.add(m),c.token.isCancellationRequested)return WP;const _=((m==null?void 0:m.actions)||[]).filter(b=>b&&Woe(a,b)),v=$oe(p,_,a.include);return{actions:_.map(b=>new Voe(b,p)),documentation:v}}catch(m){if(Da(m))throw m;return Vi(m),WP}})),g=o.onDidChange(()=>{const p=o.all(e);Bn(p,d)||c.cancel()});try{const p=yield Promise.all(u),m=p.map(v=>v.actions).flat(),_=[...mf(p.map(v=>v.documentation)),...Uoe(o,e,i,m)];return new um(m,_,h)}finally{g.dispose(),c.dispose()}})}function zoe(o,e,t){return o.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>Boe(t,new Te(n))):!0)}function*Uoe(o,e,t,i){var n,s,r;if(e&&i.length)for(const a of o.all(e))a._getAdditionalMenuItems&&(yield*(n=a._getAdditionalMenuItems)===null||n===void 0?void 0:n.call(a,{trigger:t.type,only:(r=(s=t.filter)===null||s===void 0?void 0:s.include)===null||r===void 0?void 0:r.value},i.map(l=>l.action)))}function $oe(o,e,t){if(!o.documentation)return;const i=o.documentation.map(n=>({kind:new Te(n.kind),command:n.command}));if(t){let n;for(const s of i)s.kind.contains(t)&&(n?n.kind.contains(s.kind)&&(n=s):n=s);if(n)return n==null?void 0:n.command}for(const n of e)if(n.kind){for(const s of i)if(s.kind.contains(new Te(n.kind)))return s.command}}var i1;(function(o){o.OnSave="onSave",o.FromProblemsView="fromProblemsView",o.FromCodeActions="fromCodeActions"})(i1||(i1={}));function joe(o,e,t,i,n=Ye.None){var s;return t1(this,void 0,void 0,function*(){const r=o.get(ib),a=o.get(ri),l=o.get(mo),c=o.get(_i);if(l.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred,reason:t}),yield e.resolve(n),!n.isCancellationRequested&&!(!((s=e.action.edit)===null||s===void 0)&&s.edits.length&&!(yield r.apply(e.action.edit,{editor:i==null?void 0:i.editor,label:e.action.title,quotableLabel:e.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:t!==i1.OnSave,showPreview:i==null?void 0:i.preview})).isApplied)&&e.action.command)try{yield a.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(d){const h=Koe(d);c.error(typeof h=="string"?h:f("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function Koe(o){return typeof o=="string"?o:o instanceof Error&&typeof o.message=="string"?o.message:void 0}st.registerCommand("_executeCodeActionProvider",function(o,e,t,i,n){return t1(this,void 0,void 0,function*(){if(!(e instanceof Ce))throw Po();const{codeActionProvider:s}=o.get(ge),r=o.get(jt).getModel(e);if(!r)throw Po();const a=he.isISelection(t)?he.liftSelection(t):y.isIRange(t)?r.validateRange(t):void 0;if(!a)throw Po();const l=typeof i=="string"?new Te(i):void 0,c=yield UN(s,r,a,{type:1,triggerAction:ns.Default,filter:{includeSourceActions:!0,include:l}},Qh.None,Ye.None),d=[],h=Math.min(c.validActions.length,typeof n=="number"?n:0);for(let u=0;uu.action)}finally{setTimeout(()=>c.dispose(),100)}})});var qoe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Goe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let n1=class P8{constructor(e){this.keybindingService=e}getResolver(){const e=new $h(()=>this.keybindingService.getKeybindings().filter(t=>P8.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===HN?i={kind:Te.SourceOrganizeImports.value}:t.command===zN&&(i={kind:Te.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Yr.fromUser(i,{kind:Te.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.value);return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new Te(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,s)=>n?n.kind.contains(s.kind)?s:n:s,void 0)}};n1.codeActionCommands=[A8,M8,R8,HN,zN];n1=qoe([Goe(0,ei)],n1);M("symbolIcon.arrayForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.booleanForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},f("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.colorForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.constantForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},f("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},f("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},f("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.fileForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.folderForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},f("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.keyForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.keywordForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},f("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.moduleForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.namespaceForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.nullForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.numberForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.objectForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.operatorForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.packageForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.propertyForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.referenceForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.snippetForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.stringForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.structForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.textForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.typeParameterForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.unitForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));const O8=Object.freeze({kind:Te.Empty,title:f("codeAction.widget.id.more","More Actions...")}),Zoe=Object.freeze([{kind:Te.QuickFix,title:f("codeAction.widget.id.quickfix","Quick Fix...")},{kind:Te.RefactorExtract,title:f("codeAction.widget.id.extract","Extract..."),icon:se.wrench},{kind:Te.RefactorInline,title:f("codeAction.widget.id.inline","Inline..."),icon:se.wrench},{kind:Te.RefactorRewrite,title:f("codeAction.widget.id.convert","Rewrite..."),icon:se.wrench},{kind:Te.RefactorMove,title:f("codeAction.widget.id.move","Move..."),icon:se.wrench},{kind:Te.SurroundWith,title:f("codeAction.widget.id.surround","Surround With..."),icon:se.symbolSnippet},{kind:Te.Source,title:f("codeAction.widget.id.source","Source Action..."),icon:se.symbolFile},O8]);function Yoe(o,e,t){if(!e)return o.map(s=>({kind:"action",item:s,group:O8,disabled:!!s.action.disabled,label:s.action.disabled||s.action.title}));const i=Zoe.map(s=>({group:s,actions:[]}));for(const s of o){const r=s.action.kind?new Te(s.action.kind):Te.None;for(const a of i)if(a.group.kind.contains(r)){a.actions.push(s);break}}const n=[];for(const s of i)if(s.actions.length){n.push({kind:"header",group:s.group});for(const r of s.actions)n.push({kind:"action",item:r,group:s.group,label:r.action.title,disabled:!!r.action.disabled,keybinding:t(r.action)})}return n}var Qoe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Xoe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Cs=class qk{static get(e){return e.getContribution(qk.ID)}constructor(e,t){this._messageWidget=new wn,this._messageListeners=new Z,this._editor=e,this._visible=qk.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){cn(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new VP(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new fo(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new y(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(VP.fadeOut(this._messageWidget.value))}};Cs.ID="editor.contrib.messageController";Cs.MESSAGE_VISIBLE=new ce("messageVisible",!1,f("messageVisible","Whether the editor is currently showing an inline message"));Cs=Qoe([Xoe(1,Ee)],Cs);const Joe=Ji.bindToContribution(Cs.get);ie(new Joe({id:"leaveEditorMessage",precondition:Cs.MESSAGE_VISIBLE,handler:o=>o.closeMessage(),kbOpts:{weight:100+30,primary:9}}));let VP=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};lt(Cs.ID,Cs,4);var F8=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Gk=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const B8="acceptSelectedCodeAction",W8="previewSelectedCodeAction";class ere{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){var n,s;i.text.textContent=(s=(n=e.group)===null||n===void 0?void 0:n.title)!==null&&s!==void 0?s:""}disposeTemplate(e){}}let Zk=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");i.className="title",e.append(i);const n=new nb(e,Ps);return{container:e,icon:t,text:i,keybinding:n}}renderElement(e,t,i){var n,s,r;if(!((n=e.group)===null||n===void 0)&&n.icon?(i.icon.className=De.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=re(e.group.icon.color.id))):(i.icon.className=De.asClassName(se.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=V8(e.label),e.keybinding?(i.keybinding.set(e.keybinding),hs(i.keybinding.element)):On(i.keybinding.element);const a=(s=this._keybindingService.lookupKeybinding(B8))===null||s===void 0?void 0:s.getLabel(),l=(r=this._keybindingService.lookupKeybinding(W8))===null||r===void 0?void 0:r.getLabel();if(i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:a&&l?this._supportsPreview?i.container.title=f({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to apply, Shift+F2 to preview"']},"{0} to apply, {1} to preview",a,l):i.container.title=f({key:"label",comment:['placeholder is a keybinding, e.g "F2 to apply"']},"{0} to apply",a):i.container.title="",e.description){const c=new pl(q(i.container,X("span.label-description")));c.element.classList.add("action-list-description"),c.set(e.description)}}disposeTemplate(e){}};Zk=F8([Gk(1,ei)],Zk);class tre extends UIEvent{constructor(){super("acceptSelectedAction")}}class HP extends UIEvent{constructor(){super("previewSelectedAction")}}let Yk=class extends U{constructor(e,t,i,n,s,r){super(),this._delegate=n,this._contextViewService=s,this._keybindingService=r,this._actionLineHeight=24,this._headerLineHeight=26,this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const a={getHeight:l=>l.kind==="header"?this._headerLineHeight:this._actionLineHeight,getTemplateId:l=>l.kind};this._list=this._register(new Uo(e,this.domNode,a,[new Zk(t,this._keybindingService),new ere],{keyboardSupport:!1,accessibilityProvider:{getAriaLabel:l=>{if(l.kind==="action"){let c=l.label?V8(l==null?void 0:l.label):"";return l.disabled&&(c=f({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",c,l.disabled)),c}return null},getWidgetAriaLabel:()=>f({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:l=>l.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(If),this._register(this._list.onMouseClick(l=>this.onListClick(l))),this._register(this._list.onMouseOver(l=>this.onListHover(l))),this._register(this._list.onDidChangeFocus(()=>this._list.domFocus())),this._register(this._list.onDidChangeSelection(l=>this.onListSelection(l))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&e.kind==="action"}hide(e){this._delegate.onHide(e),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter(c=>c.kind==="header").length,n=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(n);const s=this._allMenuItems.map((c,d)=>{const h=document.getElementById(this._list.getElementID(d));if(h){h.style.width="auto";const u=h.getBoundingClientRect().width;return h.style.width="",u}return 0}),r=Math.max(...s,e),a=.7,l=Math.min(n,document.body.clientHeight*a);return this._list.layout(l,r),this.domNode.style.height=`${l}px`,this._list.domFocus(),r}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(t.length===0)return;const i=t[0],n=this._list.element(i);if(!this.focusCondition(n))return;const s=e?new HP:new tre;this._list.setSelection([i],s)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof HP):this._list.setSelection([])}onListHover(e){this._list.setFocus(typeof e.index=="number"?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};Yk=F8([Gk(4,xl),Gk(5,ei)],Yk);function V8(o){return o.replace(/\r\n|\r|\n/g," ")}var ire=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Dh={Visible:new ce("codeActionMenuVisible",!1,f("codeActionMenuVisible","Whether the action widget list is visible"))},tu=Je("actionWidgetService");let xh=class extends U{get isVisible(){return Dh.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new wn)}show(e,t,i,n,s,r,a){const l=Dh.Visible.bindTo(this._contextKeyService),c=this._instantiationService.createInstance(Yk,e,t,i,n);this._contextViewService.showContextView({getAnchor:()=>s,render:d=>(l.set(!0),this._renderWidget(d,c,a??[])),onHide:d=>{l.reset(),this._onWidgetClosed(d)}},r,!1)}acceptSelected(e){var t;(t=this._list.value)===null||t===void 0||t.acceptSelected(e)}focusPrevious(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusPrevious()}focusNext(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusNext()}hide(){var e;(e=this._list.value)===null||e===void 0||e.hide(),this._list.clear()}_renderWidget(e,t,i){var n;const s=document.createElement("div");if(s.classList.add("action-widget"),e.appendChild(s),this._list.value=t,this._list.value)s.appendChild(this._list.value.domNode);else throw new Error("List has no value");const r=new Z,a=document.createElement("div"),l=e.appendChild(a);l.classList.add("context-view-block"),r.add(K(l,ae.MOUSE_DOWN,p=>p.stopPropagation()));const c=document.createElement("div"),d=e.appendChild(c);d.classList.add("context-view-pointerBlock"),r.add(K(d,ae.POINTER_MOVE,()=>d.remove())),r.add(K(d,ae.MOUSE_DOWN,()=>d.remove()));let h=0;if(i.length){const p=this._createActionBar(".action-widget-action-bar",i);p&&(s.appendChild(p.getContainer().parentElement),r.add(p),h=p.getContainer().offsetWidth)}const u=(n=this._list.value)===null||n===void 0?void 0:n.layout(h);s.style.width=`${u}px`;const g=r.add(gh(e));return r.add(g.onDidBlur(()=>this.hide())),r}_createActionBar(e,t){if(!t.length)return;const i=X(e),n=new go(i);return n.push(t,{icon:!1,label:!0}),n}_onWidgetClosed(e){var t;(t=this._list.value)===null||t===void 0||t.hide(e)}};xh=ire([sL(0,xl),sL(1,Ee),sL(2,Me)],xh);ot(tu,xh,1);const db=100+1e3;Tn(class extends Yc{constructor(){super({id:"hideCodeActionWidget",title:{value:f("hideCodeActionWidget.title","Hide action widget"),original:"Hide action widget"},precondition:Dh.Visible,keybinding:{weight:db,primary:9,secondary:[1033]}})}run(o){o.get(tu).hide()}});Tn(class extends Yc{constructor(){super({id:"selectPrevCodeAction",title:{value:f("selectPrevCodeAction.title","Select previous action"),original:"Select previous action"},precondition:Dh.Visible,keybinding:{weight:db,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(o){const e=o.get(tu);e instanceof xh&&e.focusPrevious()}});Tn(class extends Yc{constructor(){super({id:"selectNextCodeAction",title:{value:f("selectNextCodeAction.title","Select next action"),original:"Select next action"},precondition:Dh.Visible,keybinding:{weight:db,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(o){const e=o.get(tu);e instanceof xh&&e.focusNext()}});Tn(class extends Yc{constructor(){super({id:B8,title:{value:f("acceptSelected.title","Accept selected action"),original:"Accept selected action"},precondition:Dh.Visible,keybinding:{weight:db,primary:3,secondary:[2132]}})}run(o){const e=o.get(tu);e instanceof xh&&e.acceptSelected()}});Tn(class extends Yc{constructor(){super({id:W8,title:{value:f("previewSelected.title","Preview selected action"),original:"Preview selected action"},precondition:Dh.Visible,keybinding:{weight:db,primary:2051}})}run(o){const e=o.get(tu);e instanceof xh&&e.acceptSelected(!0)}});var nre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sre=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},ng;(function(o){o.Hidden={type:0};class e{constructor(i,n,s,r){this.actions=i,this.trigger=n,this.editorPosition=s,this.widgetPosition=r,this.type=1}}o.Showing=e})(ng||(ng={}));let s1=class H8 extends U{constructor(e,t,i,n){super(),this._editor=e,this._onClick=this._register(new O),this.onClick=this._onClick.event,this._state=ng.Hidden,this._domNode=X("div.lightBulbWidget"),this._register(kt.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(s=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),this._register(JU(this._domNode,s=>{if(this.state.type!==1)return;this._editor.focus(),s.preventDefault();const{top:r,height:a}=Fi(this._domNode),l=this._editor.getOption(63);let c=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(s.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(s=>{s.hasChanged(61)&&!this._editor.getOption(61).enabled&&this.hide()})),this._register(_e.runAndSubscribe(n.onDidUpdateKeybindings,()=>{var s,r;this._preferredKbLabel=an((s=n.lookupKeybinding(i))===null||s===void 0?void 0:s.getLabel()),this._quickFixKbLabel=an((r=n.lookupKeybinding(t))===null||r===void 0?void 0:r.getLabel()),this._updateLightBulbTitleAndIcon()}))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(61).enabled)return this.hide();const s=this._editor.getModel();if(!s)return this.hide();const{lineNumber:r,column:a}=s.validatePosition(i),l=s.getOptions().tabSize,c=n.get(47),d=s.getLineContent(r),h=cw(d,l),u=c.spaceWidth*h>22,g=m=>m>2&&this._editor.getTopForLineNumber(m)===this._editor.getTopForLineNumber(m-1);let p=r;if(!u){if(r>1&&!g(r-1))p-=1;else if(!g(r+1))p+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new ng.Showing(e,t,i,{position:{lineNumber:p,column:1},preference:H8._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==ng.Hidden&&(this.state=ng.Hidden,this._editor.layoutContentWidget(this))}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix&&(this._domNode.classList.remove(...De.asClassNameArray(se.lightBulb)),this._domNode.classList.add(...De.asClassNameArray(se.lightbulbAutofix)),this._preferredKbLabel)){this.title=f("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel);return}this._domNode.classList.remove(...De.asClassNameArray(se.lightbulbAutofix)),this._domNode.classList.add(...De.asClassNameArray(se.lightBulb)),this._quickFixKbLabel?this.title=f("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):this.title=f("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};s1._posPref=[0];s1=nre([sre(3,ei)],s1);var ore=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},b0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},oL=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},rre=globalThis&&globalThis.__classPrivateFieldSet||function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},are=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},fv;let Qk=class extends U{constructor(e,t,i,n,s,r,a,l){super(),this._editor=e,this.delegate=n,this._configurationService=r,this._actionWidgetService=a,this._commandService=l,this._activeCodeActions=this._register(new wn),fv.set(this,!1),this._showDisabled=!1,this._lightBulbWidget=new $h(()=>{const c=this._register(s.createInstance(s1,this._editor,t,i));return this._register(c.onClick(d=>this.showCodeActionList(d.actions,d,{includeDisabledActions:!1,fromLightbulb:!0}))),c}),this._resolver=s.createInstance(n1),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){rre(this,fv,!0,"f"),super.dispose()}update(e){var t,i,n,s,r;return oL(this,void 0,void 0,function*(){if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let a;try{a=yield e.actions}catch(l){Oe(l);return}if(!are(this,fv,"f"))if(this._lightBulbWidget.value.update(a,e.trigger,e.position),e.trigger.type===1){if(!((i=e.trigger.filter)===null||i===void 0)&&i.include){const c=this.tryGetValidActionToApply(e.trigger,a);if(c){try{this._lightBulbWidget.value.hide(),yield this.delegate.applyCodeAction(c,!1,!1)}finally{a.dispose()}return}if(e.trigger.context){const d=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,a);if(d&&d.action.disabled){(n=Cs.get(this._editor))===null||n===void 0||n.showMessage(d.action.disabled,e.trigger.context.position),a.dispose();return}}}const l=!!(!((s=e.trigger.filter)===null||s===void 0)&&s.include);if(e.trigger.context&&(!a.allActions.length||!l&&!a.validActions.length)){(r=Cs.get(this._editor))===null||r===void 0||r.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=a,a.dispose();return}this._activeCodeActions.value=a,this.showCodeActionList(a,this.toCoords(e.position),{includeDisabledActions:l,fromLightbulb:!1})}else this._actionWidgetService.isVisible?a.dispose():this._activeCodeActions.value=a})}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length&&(e.autoApply==="first"&&t.validActions.length===0||e.autoApply==="ifSingle"&&t.allActions.length===1))return t.allActions.find(({action:i})=>i.disabled)}tryGetValidActionToApply(e,t){if(t.validActions.length&&(e.autoApply==="first"&&t.validActions.length>0||e.autoApply==="ifSingle"&&t.validActions.length===1))return t.validActions[0]}showCodeActionList(e,t,i){return oL(this,void 0,void 0,function*(){const n=this._editor.getDomNode();if(!n)return;const s=i.includeDisabledActions&&(this._showDisabled||e.validActions.length===0)?e.allActions:e.validActions;if(!s.length)return;const r=W.isIPosition(t)?this.toCoords(t):t,a={onSelect:(l,c)=>oL(this,void 0,void 0,function*(){this.delegate.applyCodeAction(l,!0,c||!1),this._actionWidgetService.hide()}),onHide:()=>{var l;(l=this._editor)===null||l===void 0||l.focus()}};this._actionWidgetService.show("codeActionWidget",!0,Yoe(s,this._shouldShowHeaders(),this._resolver.getResolver()),a,r,n,this._getActionBarActions(e,t,i))})}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=Fi(this._editor.getDomNode()),n=i.left+t.left,s=i.top+t.top+t.height;return{x:n,y:s}}_shouldShowHeaders(){var e;const t=(e=this._editor)===null||e===void 0?void 0:e.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:t==null?void 0:t.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const n=e.documentation.map(s=>{var r;return{id:s.id,label:s.title,tooltip:(r=s.tooltip)!==null&&r!==void 0?r:"",class:void 0,enabled:!0,run:()=>{var a;return this._commandService.executeCommand(s.id,...(a=s.commandArguments)!==null&&a!==void 0?a:[])}}});return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&n.push(this._showDisabled?{id:"hideMoreActions",label:f("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:f("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),n}};fv=new WeakMap;Qk=ore([b0(4,Me),b0(5,at),b0(6,tu),b0(7,ri)],Qk);var rL=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},lre=globalThis&&globalThis.__classPrivateFieldSet||function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},Ru;const z8=new ce("supportedCodeAction","");class cre extends U{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new fo),this._register(this._markerService.onMarkerChanged(s=>this._onMarkerChanges(s))),this._register(this._editor.onDidChangeCursorPosition(()=>this._onCursorChange()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some(i=>LT(i,t.uri))&&this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:ns.Default})},this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:ns.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=this._editor.getSelection();if(i.isEmpty()&&e.type===2){const{lineNumber:n,column:s}=i.getPosition(),r=t.getLineContent(n);if(r.length===0)return;if(s===1){if(/\s/.test(r[0]))return}else if(s===t.getLineMaxColumn(n)){if(/\s/.test(r[r.length-1]))return}else if(/\s/.test(r[s-2])&&/\s/.test(r[s-1]))return}return i}_createEventAndSignalChange(e,t){const i=this._editor.getModel();if(!t||!i){this._signalChange(void 0);return}const n={trigger:e,selection:t,position:t.getStartPosition()};return this._signalChange(n),n}}var Rd;(function(o){o.Empty={type:0};class e{constructor(i,n,s,r){this.trigger=i,this.rangeOrSelection=n,this.position=s,this._cancellablePromise=r,this.type=1,this.actions=r.catch(a=>{if(Da(a))return dre;throw a})}cancel(){this._cancellablePromise.cancel()}}o.Triggered=e})(Rd||(Rd={}));const dre={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class hre extends U{constructor(e,t,i,n,s){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=s,this._codeActionOracle=this._register(new wn),this._state=Rd.Empty,this._onDidChangeState=this._register(new O),this.onDidChangeState=this._onDidChangeState.event,Ru.set(this,!1),this._supportedCodeActions=z8.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._update()}dispose(){rL(this,Ru,"f")||(lre(this,Ru,!0,"f"),super.dispose(),this.setState(Rd.Empty,!0))}_update(){if(rL(this,Ru,"f"))return;this._codeActionOracle.value=void 0,this.setState(Rd.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(86)){const t=[];for(const i of this._registry.all(e))Array.isArray(i.providedCodeActionKinds)&&t.push(...i.providedCodeActionKinds);this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new cre(this._editor,this._markerService,i=>{var n;if(!i){this.setState(Rd.Empty);return}const s=Wi(r=>UN(this._registry,e,i.selection,i.trigger,Qh.None,r));i.trigger.type===1&&((n=this._progressService)===null||n===void 0||n.showWhile(s,250)),this.setState(new Rd.Triggered(i.trigger,i.selection,i.position,s))},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:ns.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;(t=this._codeActionOracle.value)===null||t===void 0||t.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!rL(this,Ru,"f")&&this._onDidChangeState.fire(e))}}Ru=new WeakMap;var ure=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sp=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},gre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function hb(o){return oe.regex(z8.keys()[0],new RegExp("(\\s|^)"+Hs(o.value)+"\\b"))}function U8(o,e,t,i){const n=Yr.fromUser(e,{kind:Te.Refactor,apply:"never"});return iu(o,typeof(e==null?void 0:e.kind)=="string"?n.preferred?f("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",e.kind):f("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",e.kind):n.preferred?f("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):f("editor.action.refactor.noneMessage","No refactorings available"),{include:Te.Refactor.contains(n.kind)?n.kind:Te.None,onlyIncludePreferredActions:n.preferred},n.apply,t,i)}const Hw={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:f("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:f("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[f("args.schema.apply.first","Always apply the first returned code action."),f("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),f("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:f("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let kh=class $8 extends U{static get(e){return e.getContribution($8.ID)}constructor(e,t,i,n,s,r){super(),this._instantiationService=s,this._editor=e,this._model=this._register(new hre(this._editor,r.codeActionProvider,t,i,n)),this._register(this._model.onDidChangeState(a=>this.update(a))),this._ui=new $h(()=>this._register(s.createInstance(Qk,e,Nf.Id,ub.Id,{applyCodeAction:(a,l,c)=>gre(this,void 0,void 0,function*(){try{yield this._applyCodeAction(a,c)}finally{l&&this._trigger({type:2,triggerAction:ns.QuickFix,filter:{}})}})})))}update(e){this._ui.value.update(e)}showCodeActions(e,t,i){return this._ui.value.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,n,s){var r;if(!this._editor.hasModel())return;(r=Cs.get(this._editor))===null||r===void 0||r.closeMessage();const a=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:n,context:{notAvailableMessage:e,position:a},preview:s})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e,t){return this._instantiationService.invokeFunction(joe,e,i1.FromCodeActions,{preview:t,editor:this._editor})}};kh.ID="editor.contrib.codeActionController";kh=ure([sp(1,Na),sp(2,Ee),sp(3,ed),sp(4,Me),sp(5,ge)],kh);function iu(o,e,t,i,n=!1,s=ns.Default){if(o.hasModel()){const r=kh.get(o);r==null||r.manualTriggerAtCurrentPosition(e,s,t,i,n)}}class Nf extends de{constructor(){super({id:Nf.Id,label:f("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:2132,weight:100}})}run(e,t){return iu(t,f("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,!1,ns.QuickFix)}}Nf.Id="editor.action.quickFix";class fre extends Ji{constructor(){super({id:M8,precondition:oe.and(N.writable,N.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:Hw}]}})}runEditorCommand(e,t,i){const n=Yr.fromUser(i,{kind:Te.Empty,apply:"ifSingle"});return iu(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?f("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):f("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?f("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):f("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class pre extends de{constructor(){super({id:A8,label:f("refactor.label","Refactor..."),alias:"Refactor...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:oe.and(N.writable,hb(Te.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:Hw}]}})}run(e,t,i){return U8(t,i,!1,ns.Refactor)}}class mre extends de{constructor(){super({id:Hoe,label:f("refactor.preview.label","Refactor with Preview..."),alias:"Refactor Preview...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),description:{description:"Refactor Preview...",args:[{name:"args",schema:Hw}]}})}run(e,t,i){return U8(t,i,!0,ns.RefactorPreview)}}class _re extends de{constructor(){super({id:R8,label:f("source.label","Source Action..."),alias:"Source Action...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:oe.and(N.writable,hb(Te.Source))},description:{description:"Source Action...",args:[{name:"args",schema:Hw}]}})}run(e,t,i){const n=Yr.fromUser(i,{kind:Te.Source,apply:"never"});return iu(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?f("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):f("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?f("editor.action.source.noneMessage.preferred","No preferred source actions available"):f("editor.action.source.noneMessage","No source actions available"),{include:Te.Source.contains(n.kind)?n.kind:Te.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,void 0,ns.SourceAction)}}class bre extends de{constructor(){super({id:HN,label:f("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:oe.and(N.writable,hb(Te.SourceOrganizeImports)),kbOpts:{kbExpr:N.editorTextFocus,primary:1581,weight:100}})}run(e,t){return iu(t,f("editor.action.organize.noneMessage","No organize imports action available"),{include:Te.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",void 0,ns.OrganizeImports)}}class vre extends de{constructor(){super({id:zN,label:f("fixAll.label","Fix All"),alias:"Fix All",precondition:oe.and(N.writable,hb(Te.SourceFixAll))})}run(e,t){return iu(t,f("fixAll.noneMessage","No fix all action available"),{include:Te.SourceFixAll,includeSourceActions:!0},"ifSingle",void 0,ns.FixAll)}}class ub extends de{constructor(){super({id:ub.Id,label:f("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:oe.and(N.writable,hb(Te.QuickFix)),kbOpts:{kbExpr:N.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return iu(t,f("editor.action.autoFix.noneMessage","No auto fixes available"),{include:Te.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",void 0,ns.AutoFix)}}ub.Id="editor.action.autoFix";lt(kh.ID,kh,3);J(Nf);J(pre);J(mre);J(_re);J(bre);J(ub);J(vre);ie(new fre);$t.as(ka.Configuration).registerConfiguration(Object.assign(Object.assign({},eN),{properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:f("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}));var zP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Xk{constructor(){this.lenses=[],this._disposables=new Z}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}function j8(o,e,t){return zP(this,void 0,void 0,function*(){const i=o.ordered(e),n=new Map,s=new Xk,r=i.map((a,l)=>zP(this,void 0,void 0,function*(){n.set(a,l);try{const c=yield Promise.resolve(a.provideCodeLenses(e,t));c&&s.add(c,a)}catch(c){Vi(c)}}));return yield Promise.all(r),s.lenses=s.lenses.sort((a,l)=>a.symbol.range.startLineNumberl.symbol.range.startLineNumber?1:n.get(a.provider)n.get(l.provider)?1:a.symbol.range.startColumnl.symbol.range.startColumn?1:0),s})}st.registerCommand("_executeCodeLensProvider",function(o,...e){let[t,i]=e;_t(Ce.isUri(t)),_t(typeof i=="number"||!i);const{codeLensProvider:n}=o.get(ge),s=o.get(jt).getModel(t);if(!s)throw Po();const r=[],a=new Z;return j8(n,s,Ye.None).then(l=>{a.add(l);const c=[];for(const d of l.lenses)i==null||d.symbol.command?r.push(d.symbol):i-- >0&&d.provider.resolveCodeLens&&c.push(Promise.resolve(d.provider.resolveCodeLens(s,d.symbol,Ye.None)).then(h=>r.push(h||d.symbol)));return Promise.all(c)}).then(()=>r).finally(()=>{setTimeout(()=>a.dispose(),100)})});var Cre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},wre=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const K8=Je("ICodeLensCache");class UP{constructor(e,t){this.lineCount=e,this.data=t}}let Jk=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new Xc(20,.75);const t="codelens/cache";nl(()=>e.remove(t,1));const i="codelens/cache2",n=e.get(i,1,"{}");this._deserialize(n),pa(e.onWillSaveState)(s=>{s.reason===FC.SHUTDOWN&&e.store(i,this._serialize(),1,1)})}put(e,t){const i=t.lenses.map(r=>{var a;return{range:r.symbol.range,command:r.symbol.command&&{id:"",title:(a=r.symbol.command)===null||a===void 0?void 0:a.title}}}),n=new Xk;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const s=new UP(e.getLineCount(),n);this._cache.set(e.uri.toString(),s)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const n=new Set;for(const s of i.data.lenses)n.add(s.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const i in t){const n=t[i],s=[];for(const a of n.lines)s.push({range:new y(a,1,a,11)});const r=new Xk;r.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(i,new UP(n.lineCount,r))}}catch{}}};Jk=Cre([wre(0,jo)],Jk);ot(K8,Jk,1);class Sre{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class zw{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${zw._idPool++}`,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let n=!1;for(let s=0;s{c.symbol.command&&l.push(c.symbol),i.addDecoration({range:c.symbol.range,options:$P},h=>this._decorationIds[d]=h),a?a=y.plusRange(a,c.symbol.range):a=y.lift(c.symbol.range)}),this._viewZone=new Sre(a.startLineNumber-1,s,r),this._viewZoneId=n.addZone(this._viewZone),l.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(l,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new zw(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t==null||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!!(i&&y.isEmpty(n.range)===i.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((i,n)=>{t.addDecoration({range:i.symbol.range,options:$P},s=>this._decorationIds[n]=s)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},op=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Lre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let of=class{constructor(e,t,i,n,s,r){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=s,this._codeLensCache=r,this._disposables=new Z,this._localToDispose=new Z,this._lenses=[],this._oldCodeLensModels=new Z,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new wt(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(a=>{(a.hasChanged(47)||a.hasChanged(16)||a.hasChanged(15))&&this._updateLensStyle(),a.hasChanged(14)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(e=this._currentCodeLensModel)===null||e===void 0||e.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(63)/this._editor.getOption(49));let t=this._editor.getOption(16);return(!t||t<5)&&(t=this._editor.getOption(49)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(15),n=this._editor.getOption(47),{style:s}=this._editor.getContainerDomNode();s.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),s.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),s.setProperty("--vscode-editorCodeLens-fontFeatureSettings",n.fontFeatureSettings),i&&(s.setProperty("--vscode-editorCodeLens-fontFamily",i),s.setProperty("--vscode-editorCodeLens-fontFamilyDefault",ps.fontFamily)),this._editor.changeViewZones(r=>{for(const a of this._lenses)a.updateHeight(e,r)})}_localDispose(){var e,t,i;(e=this._getCodeLensModelPromise)===null||e===void 0||e.cancel(),this._getCodeLensModelPromise=void 0,(t=this._resolveCodeLensesPromise)===null||t===void 0||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),(i=this._currentCodeLensModel)===null||i===void 0||i.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e||!this._editor.getOption(14))return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&this._localToDispose.add(dh(()=>{const n=this._codeLensCache.get(e);t===n&&(this._codeLensCache.delete(e),this._onModelChange())},30*1e3));return}for(const n of this._languageFeaturesService.codeLensProvider.all(e))if(typeof n.onDidChange=="function"){const s=n.onDidChange(()=>i.schedule());this._localToDispose.add(s)}const i=new wt(()=>{var n;const s=Date.now();(n=this._getCodeLensModelPromise)===null||n===void 0||n.cancel(),this._getCodeLensModelPromise=Wi(r=>j8(this._languageFeaturesService.codeLensProvider,e,r)),this._getCodeLensModelPromise.then(r=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=r,this._codeLensCache.put(e,r);const a=this._provideCodeLensDebounce.update(e,Date.now()-s);i.delay=a,this._renderCodeLensSymbols(r),this._resolveCodeLensesInViewportSoon()},Oe)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add(Pe(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(n=>{this._editor.changeViewZones(s=>{const r=[];let a=-1;this._lenses.forEach(c=>{!c.isValid()||a===c.getLineNumber()?r.push(c):(c.update(s),a=c.getLineNumber())});const l=new aL;r.forEach(c=>{c.dispose(l,s),this._lenses.splice(this._lenses.indexOf(c),1)}),l.commit(n)})}),i.schedule()})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{i.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(n=>{n.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(Pe(()=>{if(this._editor.getModel()){const n=Ca.capture(this._editor);this._editor.changeDecorations(s=>{this._editor.changeViewZones(r=>{this._disposeAllLenses(s,r)})}),n.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(n=>{if(n.target.type!==9)return;let s=n.target.element;if((s==null?void 0:s.tagName)==="SPAN"&&(s=s.parentElement),(s==null?void 0:s.tagName)==="A")for(const r of this._lenses){const a=r.getCommand(s);if(a){this._commandService.executeCommand(a.id,...a.arguments||[]).catch(l=>this._notificationService.error(l));break}}})),i.schedule()}_disposeAllLenses(e,t){const i=new aL;for(const n of this._lenses)n.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let n;for(const a of e.lenses){const l=a.symbol.range.startLineNumber;l<1||l>t||(n&&n[n.length-1].symbol.range.startLineNumber===l?n.push(a):(n=[a],i.push(n)))}if(!i.length&&!this._lenses.length)return;const s=Ca.capture(this._editor),r=this._getLayoutInfo();this._editor.changeDecorations(a=>{this._editor.changeViewZones(l=>{const c=new aL;let d=0,h=0;for(;hthis._resolveCodeLensesInViewportSoon())),d++,h++)}for(;dthis._resolveCodeLensesInViewportSoon())),h++;c.commit(a)})}),s.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;(e=this._resolveCodeLensesPromise)===null||e===void 0||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const i=[],n=[];if(this._lenses.forEach(a=>{const l=a.computeIfNecessary(t);l&&(i.push(l),n.push(a))}),i.length===0)return;const s=Date.now(),r=Wi(a=>{const l=i.map((c,d)=>{const h=new Array(c.length),u=c.map((g,p)=>!g.symbol.command&&typeof g.provider.resolveCodeLens=="function"?Promise.resolve(g.provider.resolveCodeLens(t,g.symbol,a)).then(m=>{h[p]=m},Vi):(h[p]=g.symbol,Promise.resolve(void 0)));return Promise.all(u).then(()=>{!a.isCancellationRequested&&!n[d].isDisposed()&&n[d].updateCommands(h)})});return Promise.all(l)});this._resolveCodeLensesPromise=r,this._resolveCodeLensesPromise.then(()=>{const a=this._resolveCodeLensesDebounce.update(t,Date.now()-s);this._resolveCodeLensesScheduler.delay=a,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},a=>{Oe(a),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}getModel(){return this._currentCodeLensModel}};of.ID="css.editor.codeLens";of=yre([op(1,ge),op(2,Co),op(3,ri),op(4,_i),op(5,K8)],of);lt(of.ID,of,1);J(class extends de{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:N.hasCodeLensProvider,label:f("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return Lre(this,void 0,void 0,function*(){if(!t.hasModel())return;const i=e.get(Ma),n=e.get(ri),s=e.get(_i),r=t.getSelection().positionLineNumber,a=t.getContribution(of.ID);if(!a)return;const l=a.getModel();if(!l)return;const c=[];for(const h of l.lenses)h.symbol.command&&h.symbol.range.startLineNumber===r&&c.push({label:h.symbol.command.title,command:h.symbol.command});if(c.length===0)return;const d=yield i.pick(c,{canPickMany:!1});if(d){if(l.isDisposed)return yield n.executeCommand(this.id);try{yield n.executeCommand(d.command.id,...d.command.arguments||[])}catch(h){s.error(h)}}})}});function Dre(o,e,t){const i=[],s=o.ordered(e).reverse().map(r=>Promise.resolve(r.provideDocumentColors(e,t)).then(a=>{if(Array.isArray(a))for(const l of a)i.push({colorInfo:l,provider:r})}));return Promise.all(s).then(()=>i)}function KP(o,e,t,i){return Promise.resolve(t.provideColorPresentations(o,e,i))}st.registerCommand("_executeDocumentColorProvider",function(o,...e){const[t]=e;if(!(t instanceof Ce))throw Po();const{colorProvider:i}=o.get(ge),n=o.get(jt).getModel(t);if(!n)throw Po();const s=[],a=i.ordered(n).reverse().map(l=>Promise.resolve(l.provideDocumentColors(n,Ye.None)).then(c=>{if(Array.isArray(c))for(const d of c)s.push({range:d.range,color:[d.color.red,d.color.green,d.color.blue,d.color.alpha]})}));return Promise.all(a).then(()=>s)});st.registerCommand("_executeColorPresentationProvider",function(o,...e){const[t,i]=e,{uri:n,range:s}=i;if(!(n instanceof Ce)||!Array.isArray(t)||t.length!==4||!y.isIRange(s))throw Po();const[r,a,l,c]=t,{colorProvider:d}=o.get(ge),h=o.get(jt).getModel(n);if(!h)throw Po();const u={range:s,color:{red:r,green:a,blue:l,alpha:c}},g=[],m=d.ordered(h).reverse().map(_=>Promise.resolve(_.provideColorPresentations(h,u,Ye.None)).then(v=>{Array.isArray(v)&&g.push(...v)}));return Promise.all(m).then(()=>g)});var xre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},lL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},kre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const q8=Object.create({});let Ih=class G8 extends U{constructor(e,t,i,n){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new Z),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new q_(this._editor),this._colorDecorationClassRefs=this._register(new Z),this._debounceInformation=n.for(i.colorProvider,"Document Colors",{min:G8.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isEnabled=this.isEnabled(),this.onModelChanged()})),this._register(e.onDidChangeModelLanguage(()=>this.onModelChanged())),this._register(i.colorProvider.onDidChange(()=>this.onModelChanged())),this._register(e.onDidChangeConfiguration(s=>{const r=this._isEnabled;this._isEnabled=this.isEnabled(),(r!==this._isEnabled||s.hasChanged(18))&&(this._isEnabled?this.onModelChanged():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&typeof i=="object"){const n=i.colorDecorators;if(n&&n.enable!==void 0&&!n.enable)return n.enable}return this._editor.getOption(17)}getDecoratorLimit(){return this._editor.getOption(18)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}onModelChanged(){if(this.stop(),!this._isEnabled)return;const e=this._editor.getModel();!e||!this._languageFeaturesService.colorProvider.has(e)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new fo,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}beginCompute(){this._computePromise=Wi(e=>kre(this,void 0,void 0,function*(){const t=this._editor.getModel();if(!t)return Promise.resolve([]);const i=new ts(!1),n=yield Dre(this._languageFeaturesService.colorProvider,t,e);return this._debounceInformation.update(t,i.elapsed()),n})),this._computePromise.then(e=>{this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null},Oe)}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map(i=>({range:{startLineNumber:i.colorInfo.range.startLineNumber,startColumn:i.colorInfo.range.startColumn,endLineNumber:i.colorInfo.range.endLineNumber,endColumn:i.colorInfo.range.endColumn},options:Re.EMPTY}));this._editor.changeDecorations(i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((n,s)=>this._colorDatas.set(n,e[s]))})}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[];for(let i=0;ithis._colorDatas.has(n.id));return i.length===0?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};Ih.ID="editor.contrib.colorDetector";Ih.RECOMPUTE_TIME=1e3;Ih=xre([lL(1,at),lL(2,ge),lL(3,Co)],Ih);lt(Ih.ID,Ih,1);class Ire{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new O,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new O,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let n=0;n{this.backgroundColor=r.getColor(iC)||H.white})),this._register(K(this.pickedColorNode,ae.CLICK,()=>this.model.selectNextColorPresentation())),this._register(K(s,ae.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this.pickedColorNode.style.backgroundColor=H.Format.CSS.format(t.color)||"",this.pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){this.pickedColorNode.style.backgroundColor=H.Format.CSS.format(e)||"",this.pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:"",this.pickedColorNode.prepend(dr(".codicon.codicon-color-mode"))}}class Tre extends U{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this.domNode=dr(".colorpicker-body"),q(e,this.domNode),this.saturationBox=new Nre(this.domNode,this.model,this.pixelRatio),this._register(this.saturationBox),this._register(this.saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this.saturationBox.onColorFlushed(this.flushColor,this)),this.opacityStrip=new Mre(this.domNode,this.model),this._register(this.opacityStrip),this._register(this.opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this.opacityStrip.onColorFlushed(this.flushColor,this)),this.hueStrip=new Are(this.domNode,this.model),this._register(this.hueStrip),this._register(this.hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this.hueStrip.onColorFlushed(this.flushColor,this))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new H(new Jr(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new H(new Jr(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=(1-e)*360;this.model.color=new H(new Jr(i===360?0:i,t.s,t.v,t.a))}layout(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}class Nre extends U{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this.domNode=dr(".saturation-wrap"),q(e,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",q(this.domNode,this.canvas),this.selection=dr(".saturation-selection"),q(this.domNode,this.selection),this.layout(),this._register(K(this.domNode,ae.POINTER_DOWN,n=>this.onPointerDown(n))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new Lf);const t=Fi(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,n=>this.onDidChangePosition(n.pageX-t.left,n.pageY-t.top),()=>null);const i=K(document,ae.POINTER_UP,()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,n),this._onDidChange.fire({s:i,v:n})}layout(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new H(new Jr(e.h,1,1,1)),i=this.canvas.getContext("2d"),n=i.createLinearGradient(0,0,this.canvas.width,0);n.addColorStop(0,"rgba(255, 255, 255, 1)"),n.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),n.addColorStop(1,"rgba(255, 255, 255, 0)");const s=i.createLinearGradient(0,0,0,this.canvas.height);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this.canvas.width,this.canvas.height),i.fillStyle=H.Format.CSS.format(t),i.fill(),i.fillStyle=n,i.fill(),i.fillStyle=s,i.fill()}paintSelection(e,t){this.selection.style.left=`${e*this.width}px`,this.selection.style.top=`${this.height-t*this.height}px`}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class Z8 extends U{constructor(e,t){super(),this.model=t,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this.domNode=q(e,dr(".strip")),this.overlay=q(this.domNode,dr(".overlay")),this.slider=q(this.domNode,dr(".slider")),this.slider.style.top="0px",this._register(K(this.domNode,ae.POINTER_DOWN,i=>this.onPointerDown(i))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new Lf),i=Fi(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,s=>this.onDidChangeTop(s.pageY-i.top),()=>null);const n=K(document,ae.POINTER_UP,()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=`${(1-e)*this.height}px`}}class Mre extends Z8{constructor(e,t){super(e,t),this.domNode.classList.add("opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){const{r:t,g:i,b:n}=e.rgba,s=new H(new nt(t,i,n,1)),r=new H(new nt(t,i,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${s} 0%, ${r} 100%)`}getValue(e){return e.hsva.a}}class Are extends Z8{constructor(e,t){super(e,t),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class Rre extends bo{constructor(e,t,i,n){super(),this.model=t,this.pixelRatio=i,this._register(Rg.onDidChange(()=>this.layout()));const s=dr(".colorpicker-widget");e.appendChild(s);const r=new Ere(s,this.model,n);this.body=new Tre(s,this.model,this.pixelRatio),this._register(r),this._register(this.body)}layout(){this.body.layout()}}var Pre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ore=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},qP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Fre{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let eI=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=1}computeSync(e,t){return[]}computeAsync(e,t,i){return pi.fromPromise(this._computeAsync(e,t,i))}_computeAsync(e,t,i){return qP(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];const n=Ih.get(this._editor);if(!n)return[];for(const s of t){if(!n.isColorDecoration(s))continue;const r=n.getColorData(s.range.getStartPosition());if(r)return[yield this._createColorHover(this._editor.getModel(),r.colorInfo,r.provider)]}return[]})}_createColorHover(e,t,i){return qP(this,void 0,void 0,function*(){const n=e.getValueInRange(t.range),{red:s,green:r,blue:a,alpha:l}=t.color,c=new nt(Math.round(s*255),Math.round(r*255),Math.round(a*255),l),d=new H(c),h=yield KP(e,t,i,Ye.None),u=new Ire(d,[],0);return u.colorPresentations=h||[],u.guessColorPresentation(d,n),new Fre(this,y.lift(t.range),u,i)})}renderHoverParts(e,t){if(t.length===0||!this._editor.hasModel())return U.None;const i=new Z,n=t[0],s=this._editor.getModel(),r=n.model,a=i.add(new Rre(e.fragment,r,this._editor.getOption(136),this._themeService));e.setColorPicker(a);let l=new y(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn);const c=()=>{let h,u;if(r.presentation.textEdit){h=[r.presentation.textEdit],u=new y(r.presentation.textEdit.range.startLineNumber,r.presentation.textEdit.range.startColumn,r.presentation.textEdit.range.endLineNumber,r.presentation.textEdit.range.endColumn);const g=this._editor.getModel()._setTrackedRange(null,u,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h),u=this._editor.getModel()._getTrackedRange(g)||u}else h=[{range:l,text:r.presentation.label,forceMoveMarkers:!1}],u=l.setEndPosition(l.endLineNumber,l.startColumn+r.presentation.label.length),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h);r.presentation.additionalTextEdits&&(h=[...r.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",h),e.hide()),this._editor.pushUndoStop(),l=u},d=h=>KP(s,{range:l,color:{red:h.rgba.r/255,green:h.rgba.g/255,blue:h.rgba.b/255,alpha:h.rgba.a}},n.provider,Ye.None).then(u=>{r.colorPresentations=u||[]});return i.add(r.onColorFlushed(h=>{d(h).then(c)})),i.add(r.onDidChangeColor(d)),i}};eI=Pre([Ore(1,Hi)],eI);function tI(o,e){return!!o[e]}class cL{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=tI(e.event,t.triggerModifier),this.hasSideBySideModifier=tI(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class GP{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=tI(e,t.triggerModifier)}}class v0{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function ZP(o){return o==="altKey"?Ke?new v0(57,"metaKey",6,"altKey"):new v0(5,"ctrlKey",6,"altKey"):Ke?new v0(6,"altKey",57,"metaKey"):new v0(6,"altKey",5,"ctrlKey")}class Uw extends U{constructor(e,t){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new O),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new O),this.onExecute=this._onExecute.event,this._onCancel=this._register(new O),this.onCancel=this._onCancel.event,this._editor=e,this._alwaysFireExecuteOnMouseUp=t,this._opts=ZP(this._editor.getOption(74)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(i=>{if(i.hasChanged(74)){const n=ZP(this._editor.getOption(74));if(this._opts.equals(n))return;this._opts=n,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(i=>this._onEditorMouseMove(new cL(i,this._opts)))),this._register(this._editor.onMouseDown(i=>this._onEditorMouseDown(new cL(i,this._opts)))),this._register(this._editor.onMouseUp(i=>this._onEditorMouseUp(new cL(i,this._opts)))),this._register(this._editor.onKeyDown(i=>this._onEditorKeyDown(new GP(i,this._opts)))),this._register(this._editor.onKeyUp(i=>this._onEditorKeyUp(new GP(i,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(i=>this._onDidChangeCursorSelection(i))),this._register(this._editor.onDidChangeModel(i=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(i=>{(i.scrollTopChanged||i.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){const t=e.target.position?e.target.position.lineNumber:0;(this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t||this._alwaysFireExecuteOnMouseUp)&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}var Bre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Wa=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Bc=class extends qg{constructor(e,t,i,n,s,r,a,l,c,d,h,u){super(e,Object.assign(Object.assign({},i.getRawOptions()),{overflowWidgetsDomNode:i.getOverflowWidgetsDomNode()}),{},n,s,r,a,l,c,d,h,u),this._parentEditor=i,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(i.onDidChangeConfiguration(g=>this._onParentConfigurationChanged(g)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){B_(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};Bc=Bre([Wa(3,Me),Wa(4,ut),Wa(5,ri),Wa(6,Ee),Wa(7,Hi),Wa(8,_i),Wa(9,xa),Wa(10,ui),Wa(11,ge)],Bc);const YP=new H(new nt(0,122,204)),Wre={showArrow:!0,showFrame:!0,className:"",frameColor:YP,arrowColor:YP,keepEditorSelection:!1},Vre="vs.editor.contrib.zoneWidget";class Hre{constructor(e,t,i,n,s,r){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=n,this._onDomNodeTop=s,this._onComputedHeight=r}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class zre{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class $w{constructor(e){this._editor=e,this._ruleName=$w._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),zM(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){zM(this._ruleName),rx(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){e.column===1&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:y.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}$w._IdGenerator=new YT(".arrow-decoration-");class Ure{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new Z,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=qa(t),B_(this.options,Wre,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(i=>{const n=this._getWidth(i);this.domNode.style.width=n+"px",this.domNode.style.left=this._getLeft(i)+"px",this._onWidth(n)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null}),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new $w(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&e.minimap.minimapLeft===0?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;if(this.domNode.style.height=`${e}px`,this.container){const i=e-this._decoratingElementsHeight();this.container.style.height=`${i}px`;const n=this.editor.getLayoutInfo();this._doLayout(i,this._getWidth(n))}(t=this._resizeSash)===null||t===void 0||t.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=y.isIRange(e)?y.lift(e):y.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:Re.EMPTY}])}hide(){var e;this._viewZone&&(this.editor.changeViewZones(t=>{this._viewZone&&t.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),(e=this._arrow)===null||e===void 0||e.hide()}_decoratingElementsHeight(){const e=this.editor.getOption(63);let t=0;if(this.options.showArrow){const i=Math.round(e/3);t+=2*i}if(this.options.showFrame){const i=Math.round(e/9);t+=2*i}return t}_showImpl(e,t){const i=e.getStartPosition(),n=this.editor.getLayoutInfo(),s=this._getWidth(n);this.domNode.style.width=`${s}px`,this.domNode.style.left=this._getLeft(n)+"px";const r=document.createElement("div");r.style.overflow="hidden";const a=this.editor.getOption(63),l=Math.max(12,this.editor.getLayoutInfo().height/a*.8);t=Math.min(t,l);let c=0,d=0;if(this._arrow&&this.options.showArrow&&(c=Math.round(a/3),this._arrow.height=c,this._arrow.show(i)),this.options.showFrame&&(d=Math.round(a/9)),this.editor.changeViewZones(g=>{this._viewZone&&g.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new Hre(r,i.lineNumber,i.column,t,p=>this._onViewZoneTop(p),p=>this._onViewZoneHeight(p)),this._viewZone.id=g.addZone(this._viewZone),this._overlayWidget=new zre(Vre+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const g=this.options.frameWidth?this.options.frameWidth:d;this.container.style.borderTopWidth=g+"px",this.container.style.borderBottomWidth=g+"px"}const h=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=c+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden"),this._doLayout(h,s),this.options.keepEditorSelection||this.editor.setSelection(e);const u=this.editor.getModel();if(u){const g=u.validateRange(new y(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(g,g.endLineNumber===u.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;this._resizeSash=this._disposables.add(new fn(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0);let e;this._disposables.add(this._resizeSash.onDidStart(t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{e=void 0})),this._disposables.add(this._resizeSash.onDidChange(t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(63),n=i<0?Math.ceil(i):Math.floor(i),s=e.heightInLines+n;s>5&&s<35&&this._relayout(s)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var Y8=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Q8=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const X8=Je("IPeekViewService");ot(X8,class{constructor(){this._widgets=new Map}addExclusiveWidget(o,e){const t=this._widgets.get(o);t&&(t.listener.dispose(),t.widget.dispose());const i=()=>{const n=this._widgets.get(o);n&&n.widget===e&&(n.listener.dispose(),this._widgets.delete(o))};this._widgets.set(o,{widget:e,listener:e.onDidClose(i)})}},1);var ss;(function(o){o.inPeekEditor=new ce("inReferenceSearchEditor",!0,f("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),o.notInPeekEditor=o.inPeekEditor.toNegated()})(ss||(ss={}));let g_=class{constructor(e,t){e instanceof Bc&&ss.inPeekEditor.bindTo(t)}dispose(){}};g_.ID="editor.contrib.referenceController";g_=Y8([Q8(1,Ee)],g_);lt(g_.ID,g_,0);function $re(o){const e=o.get(ut).getFocusedCodeEditor();return e instanceof Bc?e.getParentEditor():e}const jre={headerBackgroundColor:H.white,primaryHeadingColor:H.fromHex("#333333"),secondaryHeadingColor:H.fromHex("#6c6c6cb3")};let o1=class extends Ure{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new O,this.onDidClose=this._onDidClose.event,B_(this.options,jre,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=X(".head"),this._bodyElement=X(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){const i=X(".peekview-title");this.options.supportOnTitleClick&&(i.classList.add("clickable"),hi(i,"click",r=>this._onTitleClick(r))),q(this._headElement,i),this._fillTitleIcon(i),this._primaryHeading=X("span.filename"),this._secondaryHeading=X("span.dirname"),this._metaHeading=X("span.meta"),q(i,this._primaryHeading,this._secondaryHeading,this._metaHeading);const n=X(".peekview-actions");q(this._headElement,n);const s=this._getActionBarOptions();this._actionbarWidget=new go(n,s),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new ms("peekview.close",f("label.close","Close"),De.asClassName(se.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:Lee.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:xi(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,hs(this._metaHeading)):On(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}const i=Math.ceil(this.editor.getOption(63)*1.2),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};o1=Y8([Q8(2,Me)],o1);const Kre=M("peekViewTitle.background",{dark:pe(es,.1),light:pe(es,.1),hcDark:null,hcLight:null},f("peekViewTitleBackground","Background color of the peek view title area.")),J8=M("peekViewTitleLabel.foreground",{dark:H.white,light:H.black,hcDark:H.white,hcLight:No},f("peekViewTitleForeground","Color of the peek view title.")),e9=M("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},f("peekViewTitleInfoForeground","Color of the peek view title info.")),qre=M("peekView.border",{dark:es,light:es,hcDark:Ze,hcLight:Ze},f("peekViewBorder","Color of the peek view borders and arrow.")),Gre=M("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:H.black,hcLight:H.white},f("peekViewResultsBackground","Background color of the peek view result list."));M("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:H.white,hcLight:No},f("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list."));M("peekViewResult.fileForeground",{dark:H.white,light:"#1E1E1E",hcDark:H.white,hcLight:No},f("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list."));M("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},f("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list."));M("peekViewResult.selectionForeground",{dark:H.white,light:"#6C6C6C",hcDark:H.white,hcLight:No},f("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list."));const lc=M("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:H.black,hcLight:H.white},f("peekViewEditorBackground","Background color of the peek view editor."));M("peekViewEditorGutter.background",{dark:lc,light:lc,hcDark:lc,hcLight:lc},f("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor."));M("peekViewEditorStickScroll.background",{dark:lc,light:lc,hcDark:lc,hcLight:lc},f("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor."));M("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},f("peekViewResultsMatchHighlight","Match highlight color in the peek view result list."));M("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},f("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));M("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:Pt,hcLight:Pt},f("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));var Zre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Wc{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=v3.nextId()}get uri(){return this.link.uri}get range(){var e,t;return(t=(e=this._range)!==null&&e!==void 0?e:this.link.targetSelectionRange)!==null&&t!==void 0?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=(e=this.parent.getPreview(this))===null||e===void 0?void 0:e.preview(this.range);return t?f({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"symbol in {0} on line {1} at column {2}, {3}",uo(this.uri),this.range.startLineNumber,this.range.startColumn,t.value):f("aria.oneReference","symbol in {0} on line {1} at column {2}",uo(this.uri),this.range.startLineNumber,this.range.startColumn)}}class Yre{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:s,endLineNumber:r,endColumn:a}=e,l=i.getWordUntilPosition({lineNumber:n,column:s-t}),c=new y(n,l.startColumn,n,s),d=new y(r,a,r,1073741824),h=i.getValueInRange(c).replace(/^\s+/,""),u=i.getValueInRange(e),g=i.getValueInRange(d).replace(/\s+$/,"");return{value:h+u+g,highlight:{start:h.length,end:h.length+u.length}}}}class f_{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new vn}dispose(){ft(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return e===1?f("aria.fileReferences.1","1 symbol in {0}, full path {1}",uo(this.uri),this.uri.fsPath):f("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,uo(this.uri),this.uri.fsPath)}resolve(e){return Zre(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(const t of this.children)if(!this._previews.has(t.uri))try{const i=yield e.createModelReference(t.uri);this._previews.set(t.uri,new Yre(i))}catch(i){Oe(i)}return this})}}class _s{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new O,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;e.sort(_s._compareReferences);let n;for(const s of e)if((!n||!Ot.isEqual(n.uri,s.uri,!0))&&(n=new f_(this,s.uri),this.groups.push(n)),n.children.length===0||_s._compareReferences(s,n.children[n.children.length-1])!==0){const r=new Wc(i===s,n,s,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(r),n.children.push(r)}}dispose(){ft(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new _s(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?f("aria.result.0","No results found"):this.references.length===1?f("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?f("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):f("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let n=i.children.indexOf(e);const s=i.children.length,r=i.parent.groups.length;return r===1||t&&n+10?(t?n=(n+1)%s:n=(n+s-1)%s,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%r,i.parent.groups[n].children[0]):(n=(n+r-1)%r,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map((n,s)=>({idx:s,prefixLen:ah(n.uri.toString(),e.toString()),offsetDist:Math.abs(n.range.startLineNumber-t.lineNumber)*100+Math.abs(n.range.startColumn-t.column)})).sort((n,s)=>n.prefixLen>s.prefixLen?-1:n.prefixLens.offsetDist?1:0)[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&y.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return Ot.compare(e.uri,t.uri)||y.compareRangesUsingStarts(e.range,t.range)}}var jw=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Kw=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let iI=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof _s||e instanceof f_}getChildren(e){if(e instanceof _s)return e.groups;if(e instanceof f_)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};iI=jw([Kw(0,os)],iI);class Qre{getHeight(){return 23}getTemplateId(e){return e instanceof f_?p_.id:gb.id}}let nI=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof Wc){const i=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(i)return i.value}return uo(e.uri)}};nI=jw([Kw(0,ei)],nI);class Xre{getId(e){return e instanceof Wc?e.id:e.uri}}let sI=class extends U{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new KC(i,{supportHighlights:!0})),this.badge=new pk(q(i,X(".count")),{},Q3),e.appendChild(i)}set(e,t){const i=hw(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat(f("referencesCount","{0} references",n)):this.badge.setTitleFormat(f("referenceCount","{0} reference",n))}};sI=jw([Kw(1,Yg)],sI);let p_=class t9{constructor(e){this._instantiationService=e,this.templateId=t9.id}renderTemplate(e){return this._instantiationService.createInstance(sI,e)}renderElement(e,t,i){i.set(e.element,mw(e.filterData))}disposeTemplate(e){e.dispose()}};p_.id="FileReferencesRenderer";p_=jw([Kw(0,Me)],p_);class Jre{constructor(e){this.label=new pl(e)}set(e,t){var i;const n=(i=e.parent.getPreview(e))===null||i===void 0?void 0:i.preview(e.range);if(!n||!n.value)this.label.set(`${uo(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{const{value:s,highlight:r}=n;t&&!_r.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(s,mw(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(s,[r]))}}}class gb{constructor(){this.templateId=gb.id}renderTemplate(e){return new Jre(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(){}}gb.id="OneReferenceRenderer";class eae{getWidgetAriaLabel(){return f("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var tae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Va=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},QP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class qw{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new Z,this._callOnModelChange=new Z,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e){for(const t of this._model.references)if(t.uri.toString()===e.uri.toString()){this._addDecorations(t.parent);return}}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const t=[],i=[];for(let n=0,s=e.children.length;n{const s=n.deltaDecorations([],t);for(let r=0;r{s.equals(9)&&(this._keybindingService.dispatchEvent(s,s.target),s.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(nae,"ReferencesWidget",this._treeContainer,new Qre,[this._instantiationService.createInstance(p_),this._instantiationService.createInstance(gb)],this._instantiationService.createInstance(iI),i),this._splitView.addView({onDidChange:_e.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:s=>{this._preview.layout({height:this._dim.height,width:s})}},qC.Distribute),this._splitView.addView({onDidChange:_e.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:s=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${s}px`,this._tree.layout(this._dim.height,s)}},qC.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));const n=(s,r)=>{s instanceof Wc&&(r==="show"&&this._revealReference(s,!1),this._onDidSelectReference.fire({element:s,kind:r,source:"tree"}))};this._tree.onDidOpen(s=>{s.sideBySide?n(s.element,"side"):s.editorOptions.pinned?n(s.element,"goto"):n(s.element,"show")}),On(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new Dt(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=f("noResults","No results"),hs(this._messageContainer),Promise.resolve(void 0)):(On(this._messageContainer),this._decorationsManager=new qw(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{const{event:t,target:i}=e;if(t.detail!==2)return;const n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),hs(this._treeContainer),hs(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();if(e instanceof Wc)return e;if(e instanceof f_&&e.children.length>0)return e.children[0]}revealReference(e){return QP(this,void 0,void 0,function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})})}_revealReference(e,t){return QP(this,void 0,void 0,function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==We.inMemory?this.setTitle(cZ(e.uri),this._uriLabel.getUriLabel(hw(e.uri))):this.setTitle(f("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent),this._tree.reveal(e));const n=yield i;if(!this._model){n.dispose();return}ft(this._previewModelReference);const s=n.object;if(s){const r=this._preview.getModel()===s.textEditorModel?0:1,a=y.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(s.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,r)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()})}};oI=tae([Va(3,Hi),Va(4,os),Va(5,Me),Va(6,X8),Va(7,Yg),Va(8,uw),Va(9,ei),Va(10,Ut),Va(11,ui)],oI);var sae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Su=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},XP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const nu=new ce("referenceSearchVisible",!1,f("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let Vc=class rI{static get(e){return e.getContribution(rI.ID)}constructor(e,t,i,n,s,r,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=s,this._instantiationService=r,this._storageService=a,this._configurationService=l,this._disposables=new Z,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=nu.bindTo(i)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),(e=this._widget)===null||e===void 0||e.dispose(),(t=this._model)===null||t===void 0||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const s="peekViewLayout",r=iae.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(oI,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(f("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(s,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(l=>{const{element:c,kind:d}=l;if(c)switch(d){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(c,!1,!1);break;case"side":this.openReference(c,!0,!1);break;case"goto":i?this._gotoReference(c,!0):this.openReference(c,!1,!0);break}}));const a=++this._requestIdPool;t.then(l=>{var c;if(a!==this._requestIdPool||!this._widget){l.dispose();return}return(c=this._model)===null||c===void 0||c.dispose(),this._model=l,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(f("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const d=this._editor.getModel().uri,h=new W(e.startLineNumber,e.startColumn),u=this._model.nearestReference(d,h);if(u)return this._widget.setSelection(u).then(()=>{this._widget&&this._editor.getOption(82)==="editor"&&this._widget.focusOnPreviewEditor()})}})},l=>{this._notificationService.error(l)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return XP(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),s=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(n),yield this._gotoReference(n,!1),s?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()})}revealReference(e){return XP(this,void 0,void 0,function*(){!this._editor.hasModel()||!this._model||!this._widget||(yield this._widget.revealReference(e))})}closeWidget(e=!0){var t,i;(t=this._widget)===null||t===void 0||t.dispose(),(i=this._model)===null||i===void 0||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){var i;(i=this._widget)===null||i===void 0||i.hide(),this._ignoreModelChangeEvent=!0;const n=y.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n,selectionSource:"code.jump",pinned:t}},this._editor).then(s=>{var r;if(this._ignoreModelChangeEvent=!1,!s||!this._widget){this.closeWidget();return}if(this._editor===s)this._widget.show(n),this._widget.focusOnReferenceTree();else{const a=rI.get(s),l=this._model.clone();this.closeWidget(),s.focus(),a==null||a.toggleWidget(n,Wi(c=>Promise.resolve(l)),(r=this._peekMode)!==null&&r!==void 0?r:!1)}},s=>{this._ignoreModelChangeEvent=!1,Oe(s)})}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:s}=e;this._editorService.openCodeEditor({resource:n,options:{selection:s,selectionSource:"code.jump",pinned:i}},this._editor,t)}};Vc.ID="editor.contrib.referencesController";Vc=sae([Su(2,Ee),Su(3,ut),Su(4,_i),Su(5,Me),Su(6,jo),Su(7,at)],Vc);function su(o,e){const t=$re(o);if(!t)return;const i=Vc.get(t);i&&e(i)}is.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:ki(2089,60),when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.changeFocusBetweenPreviewAndReferences()})}});is.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.goToNextOrPreviousReference(!0)})}});is.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1086,secondary:[1094],when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.goToNextOrPreviousReference(!1)})}});st.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");st.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");st.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");st.registerCommand("closeReferenceSearch",o=>su(o,e=>e.closeWidget()));is.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1033],when:oe.and(ss.inPeekEditor,oe.not("config.editor.stablePeek"))});is.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1033],when:oe.and(nu,oe.not("config.editor.stablePeek"))});is.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:oe.and(nu,L7,CN.negate(),wN.negate()),handler(o){var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wc&&su(o,n=>n.revealReference(i[0]))}});is.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:oe.and(nu,L7,CN.negate(),wN.negate()),handler(o){var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wc&&su(o,n=>n.openReference(i[0],!0,!0))}});st.registerCommand("openReference",o=>{var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wc&&su(o,n=>n.openReference(i[0],!1,!0))});var i9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Op=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const $N=new ce("hasSymbols",!1,f("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),Gw=Je("ISymbolNavigationService");let aI=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=$N.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),(e=this._currentState)===null||e===void 0||e.dispose(),(t=this._currentMessage)===null||t===void 0||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1){this.reset();return}this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new lI(this._editorService),n=i.onDidChange(s=>{if(this._ignoreEditorChange)return;const r=this._editorService.getActiveCodeEditor();if(!r)return;const a=r.getModel(),l=r.getPosition();if(!a||!l)return;let c=!1,d=!1;for(const h of t.references)if(LT(h.uri,a.uri))c=!0,d=d||y.containsPosition(h.range,l);else if(c)break;(!c||!d)&&this.reset()});this._currentState=Oo(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:y.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;(e=this._currentMessage)===null||e===void 0||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?f("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):f("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};aI=i9([Op(0,Ee),Op(1,ut),Op(2,_i),Op(3,ei)],aI);ot(Gw,aI,1);ie(new class extends Ji{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:$N,kbOpts:{weight:100,primary:70}})}runEditorCommand(o,e){return o.get(Gw).revealNext(e)}});is.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:$N,primary:9,handler(o){o.get(Gw).reset()}});let lI=class{constructor(e){this._listener=new Map,this._disposables=new Z,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),ft(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,Oo(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;(t=this._listener.get(e))===null||t===void 0||t.dispose(),this._listener.delete(e)}};lI=i9([Op(0,ut)],lI);var jN=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function fb(o,e,t,i){return jN(this,void 0,void 0,function*(){const s=t.ordered(o).map(a=>Promise.resolve(i(a,o,e)).then(void 0,l=>{Vi(l)})),r=yield Promise.all(s);return mf(r.flat())})}function Zw(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideDefinition(s,r,i))}function n9(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideDeclaration(s,r,i))}function s9(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideImplementation(s,r,i))}function o9(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideTypeDefinition(s,r,i))}function Yw(o,e,t,i,n){return fb(e,t,o,(s,r,a)=>jN(this,void 0,void 0,function*(){const l=yield s.provideReferences(r,a,{includeDeclaration:!0},n);if(!i||!l||l.length!==2)return l;const c=yield s.provideReferences(r,a,{includeDeclaration:!1},n);return c&&c.length===1?c:l}))}function pb(o){return jN(this,void 0,void 0,function*(){const e=yield o(),t=new _s(e,""),i=t.references.map(n=>n.link);return t.dispose(),i})}Ta("_executeDefinitionProvider",(o,e,t)=>{const i=o.get(ge),n=Zw(i.definitionProvider,e,t,Ye.None);return pb(()=>n)});Ta("_executeTypeDefinitionProvider",(o,e,t)=>{const i=o.get(ge),n=o9(i.typeDefinitionProvider,e,t,Ye.None);return pb(()=>n)});Ta("_executeDeclarationProvider",(o,e,t)=>{const i=o.get(ge),n=n9(i.declarationProvider,e,t,Ye.None);return pb(()=>n)});Ta("_executeReferenceProvider",(o,e,t)=>{const i=o.get(ge),n=Yw(i.referenceProvider,e,t,!1,Ye.None);return pb(()=>n)});Ta("_executeImplementationProvider",(o,e,t)=>{const i=o.get(ge),n=s9(i.implementationProvider,e,t,Ye.None);return pb(()=>n)});var Fo=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},dL,hL,uL,gL,fL,pL,mL,_L;Jn.appendMenuItem(T.EditorContext,{submenu:T.EditorContextPeek,title:f("peek.submenu","Peek"),group:"navigation",order:100});class rf{static is(e){return!e||typeof e!="object"?!1:!!(e instanceof rf||W.isIPosition(e.position)&&e.model)}constructor(e,t){this.model=e,this.position=t}}class In extends C${static all(){return In._allSymbolNavigationCommands.values()}static _patchConfig(e){const t=Object.assign(Object.assign({},e),{f1:!0});if(t.menu)for(const i of it.wrap(t.menu))(i.id===T.EditorContext||i.id===T.EditorContextPeek)&&(i.when=oe.and(e.precondition,i.when));return t}constructor(e,t){super(In._patchConfig(t)),this.configuration=e,In._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,n){if(!t.hasModel())return Promise.resolve(void 0);const s=e.get(_i),r=e.get(ut),a=e.get(ed),l=e.get(Gw),c=e.get(ge),d=e.get(Me),h=t.getModel(),u=t.getPosition(),g=rf.is(i)?i:new rf(h,u),p=new Sh(t,5),m=U1(this._getLocationModel(c,g.model,g.position,p.token),p.token).then(_=>Fo(this,void 0,void 0,function*(){var v;if(!_||p.token.isCancellationRequested)return;cn(_.ariaMessage);let b;if(_.referenceAt(h.uri,u)){const S=this._getAlternativeCommand(t);!In._activeAlternativeCommands.has(S)&&In._allSymbolNavigationCommands.has(S)&&(b=In._allSymbolNavigationCommands.get(S))}const C=_.references.length;if(C===0){if(!this.configuration.muteMessage){const S=h.getWordAtPosition(u);(v=Cs.get(t))===null||v===void 0||v.showMessage(this._getNoResultFoundMessage(S),u)}}else if(C===1&&b)In._activeAlternativeCommands.add(this.desc.id),d.invokeFunction(S=>b.runEditorCommand(S,t,i,n).finally(()=>{In._activeAlternativeCommands.delete(this.desc.id)}));else return this._onResult(r,l,t,_,n)}),_=>{s.error(_)}).finally(()=>{p.dispose()});return a.showWhile(m,250),m}_onResult(e,t,i,n,s){return Fo(this,void 0,void 0,function*(){const r=this._getGoToPreference(i);if(!(i instanceof Bc)&&(this.configuration.openInPeek||r==="peek"&&n.references.length>1))this._openInPeek(i,n,s);else{const a=n.firstReference(),l=n.references.length>1&&r==="gotoAndPeek",c=yield this._openReference(i,e,a,this.configuration.openToSide,!l);l&&c?this._openInPeek(c,n,s):n.dispose(),r==="goto"&&t.put(a)}})}_openReference(e,t,i,n,s){return Fo(this,void 0,void 0,function*(){let r;if(bV(i)&&(r=i.targetSelectionRange),r||(r=i.range),!r)return;const a=yield t.openCodeEditor({resource:i.uri,options:{selection:y.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(a){if(s){const l=a.getModel(),c=a.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{a.getModel()===l&&c.clear()},350)}return a}})}_openInPeek(e,t,i){const n=Vc.get(e);n&&e.hasModel()?n.toggleWidget(i??e.getSelection(),Wi(s=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}}In._allSymbolNavigationCommands=new Map;In._activeAlternativeCommands=new Set;class mb extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Zw(e.definitionProvider,t,i,n),f("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?f("noResultWord","No definition found for '{0}'",e.word):f("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(55).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(55).multipleDefinitions}}const r9=Kc&&!BE()?2118:70;Tn((dL=class cI extends mb{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:cI.id,title:{value:f("actions.goToDecl.label","Go to Definition"),original:"Go to Definition",mnemonicTitle:f({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:oe.and(N.hasDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:r9,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.1},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),st.registerCommandAlias("editor.action.goToDeclaration",cI.id)}},dL.id="editor.action.revealDefinition",dL));Tn((hL=class dI extends mb{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:dI.id,title:{value:f("actions.goToDeclToSide.label","Open Definition to the Side"),original:"Open Definition to the Side"},precondition:oe.and(N.hasDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:ki(2089,r9),weight:100}}),st.registerCommandAlias("editor.action.openDeclarationToTheSide",dI.id)}},hL.id="editor.action.revealDefinitionAside",hL));Tn((uL=class hI extends mb{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:hI.id,title:{value:f("actions.previewDecl.label","Peek Definition"),original:"Peek Definition"},precondition:oe.and(N.hasDefinitionProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:T.EditorContextPeek,group:"peek",order:2}}),st.registerCommandAlias("editor.action.previewDeclaration",hI.id)}},uL.id="editor.action.peekDefinition",uL));class a9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield n9(e.declarationProvider,t,i,n),f("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?f("decl.noResultWord","No declaration found for '{0}'",e.word):f("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(55).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(55).multipleDeclarations}}Tn((gL=class l9 extends a9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:l9.id,title:{value:f("actions.goToDeclaration.label","Go to Declaration"),original:"Go to Declaration",mnemonicTitle:f({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:oe.and(N.hasDeclarationProvider,N.isInWalkThroughSnippet.toNegated()),menu:[{id:T.EditorContext,group:"navigation",order:1.3},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?f("decl.noResultWord","No declaration found for '{0}'",e.word):f("decl.generic.noResults","No declaration found")}},gL.id="editor.action.revealDeclaration",gL));Tn(class extends a9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:{value:f("actions.peekDecl.label","Peek Declaration"),original:"Peek Declaration"},precondition:oe.and(N.hasDeclarationProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),menu:{id:T.EditorContextPeek,group:"peek",order:3}})}});class c9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield o9(e.typeDefinitionProvider,t,i,n),f("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?f("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):f("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(55).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(55).multipleTypeDefinitions}}Tn((fL=class d9 extends c9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:d9.ID,title:{value:f("actions.goToTypeDefinition.label","Go to Type Definition"),original:"Go to Type Definition",mnemonicTitle:f({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:oe.and(N.hasTypeDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:0,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.4},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},fL.ID="editor.action.goToTypeDefinition",fL));Tn((pL=class h9 extends c9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:h9.ID,title:{value:f("actions.peekTypeDefinition.label","Peek Type Definition"),original:"Peek Type Definition"},precondition:oe.and(N.hasTypeDefinitionProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),menu:{id:T.EditorContextPeek,group:"peek",order:4}})}},pL.ID="editor.action.peekTypeDefinition",pL));class u9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield s9(e.implementationProvider,t,i,n),f("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?f("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):f("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(55).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(55).multipleImplementations}}Tn((mL=class g9 extends u9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:g9.ID,title:{value:f("actions.goToImplementation.label","Go to Implementations"),original:"Go to Implementations",mnemonicTitle:f({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:oe.and(N.hasImplementationProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:2118,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.45},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},mL.ID="editor.action.goToImplementation",mL));Tn((_L=class f9 extends u9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:f9.ID,title:{value:f("actions.peekImplementation.label","Peek Implementations"),original:"Peek Implementations"},precondition:oe.and(N.hasImplementationProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:3142,weight:100},menu:{id:T.EditorContextPeek,group:"peek",order:5}})}},_L.ID="editor.action.peekImplementation",_L));class p9 extends In{_getNoResultFoundMessage(e){return e?f("references.no","No references found for '{0}'",e.word):f("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(55).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(55).multipleReferences}}Tn(class extends p9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{value:f("goToReferences.label","Go to References"),original:"Go to References",mnemonicTitle:f({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:oe.and(N.hasReferenceProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:1094,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.45},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Yw(e.referenceProvider,t,i,!0,n),f("ref.title","References"))})}});Tn(class extends p9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:{value:f("references.action.label","Peek References"),original:"Peek References"},precondition:oe.and(N.hasReferenceProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),menu:{id:T.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Yw(e.referenceProvider,t,i,!1,n),f("ref.title","References"))})}});class oae extends In{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:{value:f("label.generic","Go to Any Symbol"),original:"Go to Any Symbol"},precondition:oe.and(ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(this._references,f("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&f("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(55).multipleReferences}_getAlternativeCommand(){return""}}st.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Ce},{name:"position",description:"The position at which to start",constraint:W.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(o,e,t,i,n,s,r)=>Fo(void 0,void 0,void 0,function*(){_t(Ce.isUri(e)),_t(W.isIPosition(t)),_t(Array.isArray(i)),_t(typeof n>"u"||typeof n=="string"),_t(typeof r>"u"||typeof r=="boolean");const a=o.get(ut),l=yield a.openCodeEditor({resource:e},a.getFocusedCodeEditor());if(La(l))return l.setPosition(t),l.revealPositionInCenterIfOutsideViewport(t,0),l.invokeWithinContext(c=>{const d=new class extends oae{_getNoResultFoundMessage(h){return s||super._getNoResultFoundMessage(h)}}({muteMessage:!s,openInPeek:!!r,openToSide:!1},i,n);c.get(Me).invokeFunction(d.run.bind(d),l)})})});st.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Ce},{name:"position",description:"The position at which to start",constraint:W.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(o,e,t,i,n)=>Fo(void 0,void 0,void 0,function*(){o.get(ri).executeCommand("editor.action.goToLocations",e,t,i,n,void 0,!0)})});st.registerCommand({id:"editor.action.findReferences",handler:(o,e,t)=>{_t(Ce.isUri(e)),_t(W.isIPosition(t));const i=o.get(ge),n=o.get(ut);return n.openCodeEditor({resource:e},n.getFocusedCodeEditor()).then(s=>{if(!La(s)||!s.hasModel())return;const r=Vc.get(s);if(!r)return;const a=Wi(c=>Yw(i.referenceProvider,s.getModel(),W.lift(t),!1,c).then(d=>new _s(d,f("ref.title","References")))),l=new y(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(r.toggleWidget(l,a,!1))})}});st.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");var rae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},bL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},JP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Eh=class pv{constructor(e,t,i,n){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=n,this.toUnhook=new Z,this.toUnhookForKeyboard=new Z,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const s=new Uw(e);this.toUnhook.add(s),this.toUnhook.add(s.onMouseMoveOrRelevantKeyDown(([r,a])=>{this.startFindDefinitionFromMouse(r,an(a))})),this.toUnhook.add(s.onExecute(r=>{this.isEnabled(r)&&this.gotoDefinition(r.target.position,r.hasSideBySideModifier).catch(a=>{Oe(a)}).finally(()=>{this.removeLinkDecorations()})})),this.toUnhook.add(s.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(pv.ID)}startFindDefinitionFromCursor(e){return JP(this,void 0,void 0,function*(){yield this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(t=>{t&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(e.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}const i=e.target.position;this.startFindDefinition(i)}startFindDefinition(e){var t;return JP(this,void 0,void 0,function*(){this.toUnhookForKeyboard.clear();const i=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!i){this.currentWordAtPosition=null,this.removeLinkDecorations();return}if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return;this.currentWordAtPosition=i;const n=new j7(this.editor,15);this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Wi(a=>this.findDefinition(e,a));let s;try{s=yield this.previousPromise}catch(a){Oe(a);return}if(!s||!s.length||!n.validate(this.editor)){this.removeLinkDecorations();return}const r=s[0].originSelectionRange?y.lift(s[0].originSelectionRange):new y(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);if(s.length>1){let a=r;for(const{originSelectionRange:l}of s)l&&(a=y.plusRange(a,l));this.addDecoration(a,new Yn().appendText(f("multipleResults","Click to show {0} definitions.",s.length)))}else{const a=s[0];if(!a.uri)return;this.textModelResolverService.createModelReference(a.uri).then(l=>{if(!l.object||!l.object.textEditorModel){l.dispose();return}const{object:{textEditorModel:c}}=l,{startLineNumber:d}=a.range;if(d<1||d>c.getLineCount()){l.dispose();return}const h=this.getPreviewValue(c,d,a),u=this.languageService.guessLanguageIdByFilepathOrFirstLine(c.uri);this.addDecoration(r,h?new Yn().appendCodeblock(u||"",h):void 0),l.dispose()})}})}getPreviewValue(e,t,i){let n=i.range;return n.endLineNumber-n.startLineNumber>=pv.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,i){let s=e.getLineFirstNonWhitespaceColumn(t);for(let a=t+1;a{const n=!t&&this.editor.getOption(83)&&!this.isInPeekEditor(i);return new mb({openToSide:t,openInPeek:n,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(i)})}isInPeekEditor(e){const t=e.get(Ee);return ss.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};Eh.ID="editor.contrib.gotodefinitionatposition";Eh.MAX_SOURCE_PREVIEW_LINES=8;Eh=rae([bL(1,os),bL(2,Ut),bL(3,ge)],Eh);lt(Eh.ID,Eh,2);const C0=X;class m9 extends U{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new Y_(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class KN extends U{static render(e,t,i){return new KN(e,t,i)}constructor(e,t,i){super(),this.actionContainer=q(e,C0("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=q(this.actionContainer,C0("a.action")),this.action.setAttribute("role","button"),t.iconClass&&q(this.action,C0(`span.icon.${t.iconClass}`));const n=q(this.action,C0("span"));n.textContent=i?`${t.label} (${i})`:t.label,this._register(K(this.actionContainer,ae.CLICK,s=>{s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer)})),this._register(K(this.actionContainer,ae.KEY_DOWN,s=>{const r=new Nt(s);(r.equals(3)||r.equals(10))&&(s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer))})),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}var aae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},lae=globalThis&&globalThis.__asyncValues||function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=o[Symbol.asyncIterator],t;return e?e.call(o):(o=typeof __values=="function"?__values(o):o[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(s){t[s]=o[s]&&function(r){return new Promise(function(a,l){r=o[s](r),n(a,l,r.done,r.value)})}}function n(s,r,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},r)}};let cae=class{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}};class _9 extends U{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new O),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new wt(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new wt(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new wt(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(57).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=UH(e=>this._computer.computeAsync(e)),aae(this,void 0,void 0,function*(){var e,t,i,n;try{try{for(var s=!0,r=lae(this._asyncIterable),a;a=yield r.next(),e=a.done,!e;){n=a.value,s=!1;try{const l=n;l&&(this._result.push(l),this._fireResult())}finally{s=!0}}}catch(l){t={error:l}}finally{try{!s&&!e&&(i=r.return)&&(yield i.call(r))}finally{if(t)throw t.error}}this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(l){Oe(l)}})):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;const e=this._state===0,t=this._state===4;this._onResult.fire(new cae(this._result.slice(0),e,t))}start(e){if(e===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}class vL{constructor(e,t,i,n){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=n,this.type=1}equals(e){return e.type===1&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return e.type===1&&t.lineNumber===this.range.startLineNumber}}class mv{constructor(e,t,i,n,s,r){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=n,this.initialMousePosY=s,this.supportsMarkerHover=r,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}}const ou=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}};class ko{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),n;if(n=ko._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(ko.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(ko.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(ko.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(ko.isVariableCharacter(i)||ko.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof ko._table[i]>"u"&&!ko.isDigitCharacter(i)&&!ko.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}}ko._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class Mf{constructor(){this._children=[]}appendChild(e){return e instanceof Fn&&this._children[this._children.length-1]instanceof Fn?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,function r(a,l){for(const c of a)c.parent=l,r(c.children,c)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof _b)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class Fn extends Mf{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new Fn(this.value)}}class b9 extends Mf{}class Xs extends b9{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Af?this._children[0]:void 0}clone(){const e=new Xs(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class Af extends Mf{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Fn&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new Af;return this.options.forEach(e.appendChild,e),e}}class qN extends Mf{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(s=>s instanceof Jo&&!!s.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof Jo){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new qN;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class Jo extends Mf{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new Jo(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class m_ extends b9{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new Fn(t)],!0):!1}clone(){const e=new m_(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function eO(o,e){const t=[...o];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class _b extends Mf{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof Xs&&(e.push(i),t=!t||t.indexn===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return eO([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof Xs&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof m_&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new _b;return this._children=this.children.map(t=>t.clone()),e}walk(e){eO(this.children,e)}}class Hc{constructor(){this._scanner=new ko,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new _b;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i??!1,t??!1),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,s=[];t.walk(l=>(l instanceof Xs&&(l.isFinalTabstop?n.set(0,void 0):!n.has(l.index)&&l.children.length>0?n.set(l.index,l.children):s.push(l)),!0));const r=(l,c)=>{const d=n.get(l.index);if(!d)return;const h=new Xs(l.index);h.transform=l.transform;for(const u of d){const g=u.clone();h.appendChild(g),g instanceof Xs&&n.has(g.index)&&!c.has(g.index)&&(c.add(g.index),r(g,c),c.delete(g.index))}t.replace(l,[h])},a=new Set;for(const l of s)r(l,a);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(s=>s.index===0)||e.appendChild(new Xs(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new Fn(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new Xs(Number(t)):new m_(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new Xs(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Fn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else if(s.index>0&&this._accept(7)){const r=new Af;for(;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(r),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new Fn(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new m_(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Fn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseTransform(e){const t=new qN;let i="",n="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(5,!0)||this._accept(6,!0)||s,t.appendChild(new Fn(s));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(n)if(i){if(this._accept(4))return e.appendChild(new Jo(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Jo(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const s=this._accept(9,!0);return!s||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Jo(Number(n),s)),!0)}else if(this._accept(11)){const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,s,void 0)),!0}else if(this._accept(12)){const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,void 0,s)),!0}else if(this._accept(13)){const s=this._until(1);if(s){const r=this._until(4);if(r)return e.appendChild(new Jo(Number(n),void 0,s,r)),!0}}else{const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,void 0,s)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new Fn(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}const dae=f("defaultLabel","input"),hae=f("label.preserveCaseToggle","Preserve Case");class uae extends Ef{constructor(e){super({icon:se.preserveCase,title:hae+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class gae extends bo{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new O),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new O),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new O),this._onInput=this._register(new O),this._onKeyUp=this._register(new O),this._onPreserveCaseKeyDown=this._register(new O),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||dae;const s=n.appendPreserveCaseLabel||"",r=n.history||[],a=!!n.flexibleHeight,l=!!n.flexibleWidth,c=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new h7(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:r,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:c,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new uae(Object.assign({appendTitle:s,isChecked:!1},n.toggleStyles))),this._register(this.preserveCase.onChange(u=>{this._onDidOptionChange.fire(u),!u&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(u=>{this._onPreserveCaseKeyDown.fire(u)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const d=[this.preserveCase.domNode];this.onkeydown(this.domNode,u=>{if(u.equals(15)||u.equals(17)||u.equals(9)){const g=d.indexOf(document.activeElement);if(g>=0){let p=-1;u.equals(17)?p=(g+1)%d.length:u.equals(15)&&(g===0?p=d.length-1:p=g-1),u.equals(9)?(d[g].blur(),this.inputBox.focus()):p>=0&&d[p].focus(),ze.stop(u,!0)}}});const h=document.createElement("div");h.className="controls",h.style.display=this._showOptionButtons?"block":"none",h.appendChild(this.preserveCase.domNode),this.domNode.appendChild(h),e==null||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,u=>this._onKeyDown.fire(u)),this.onkeyup(this.inputBox.inputElement,u=>this._onKeyUp.fire(u)),this.oninput(this.inputBox.inputElement,u=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,u=>this._onMouseDown.fire(u))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){var e;(e=this.inputBox)===null||e===void 0||e.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var v9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},C9=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const GN=new ce("suggestWidgetVisible",!1,f("suggestWidgetVisible","Whether suggestion are visible")),ZN="historyNavigationWidgetFocus",w9="historyNavigationForwardsEnabled",S9="historyNavigationBackwardsEnabled";let ml;const w0=[];function y9(o,e){if(w0.includes(e))throw new Error("Cannot register the same widget multiple times");w0.push(e);const t=new Z,i=new ce(ZN,!1).bindTo(o),n=new ce(w9,!0).bindTo(o),s=new ce(S9,!0).bindTo(o),r=()=>{i.set(!0),ml=e},a=()=>{i.set(!1),ml===e&&(ml=void 0)};return e.element===document.activeElement&&r(),t.add(e.onDidFocus(()=>r())),t.add(e.onDidBlur(()=>a())),t.add(Pe(()=>{w0.splice(w0.indexOf(e),1),a()})),{historyNavigationForwardsEnablement:n,historyNavigationBackwardsEnablement:s,dispose(){t.dispose()}}}let uI=class extends u7{constructor(e,t,i,n){super(e,t,i);const s=this._register(n.createScoped(this.inputBox.element));this._register(y9(s,this.inputBox))}};uI=v9([C9(3,Ee)],uI);let gI=class extends gae{constructor(e,t,i,n,s=!1){super(e,t,s,i);const r=this._register(n.createScoped(this.inputBox.element));this._register(y9(r,this.inputBox))}};gI=v9([C9(3,Ee)],gI);is.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:oe.and(oe.has(ZN),oe.equals(S9,!0),GN.isEqualTo(!1)),primary:16,secondary:[528],handler:o=>{ml==null||ml.showPreviousValue()}});is.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:oe.and(oe.has(ZN),oe.equals(w9,!0),GN.isEqualTo(!1)),primary:18,secondary:[530],handler:o=>{ml==null||ml.showNextValue()}});var gm=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Ge={Visible:GN,HasFocusedSuggestion:new ce("suggestWidgetHasFocusedSuggestion",!1,f("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new ce("suggestWidgetDetailsVisible",!1,f("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new ce("suggestWidgetMultipleSuggestions",!1,f("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new ce("suggestionMakesTextEdit",!0,f("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new ce("acceptSuggestionOnEnter",!0,f("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new ce("suggestionHasInsertAndReplaceRange",!1,f("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new ce("suggestionInsertMode",void 0,{type:"string",description:f("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new ce("suggestionCanResolve",!1,f("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},wc=new T("suggestWidgetStatusBar");class fae{constructor(e,t,i,n){this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=_r.Default,this.distance=0,this.textLabel=typeof t.label=="string"?t.label:t.label.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,y.isIRange(t.range)?(this.editStart=new W(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new W(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new W(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||y.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new W(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new W(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new W(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||y.spansMultipleLines(t.range.insert)||y.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),typeof n.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return gm(this,void 0,void 0,function*(){if(!this._resolveCache){const t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(i=>{Object.assign(this.completion,i),this._isResolved=!0,t.dispose()},i=>{Da(i)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache})}}class __{constructor(e=2,t=new Set,i=new Set,n=new Map,s=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.providerItemsToReuse=n,this.showDeprecated=s}}__.default=new __;let pae;function mae(){return pae}class _ae{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}function YN(o,e,t,i=__.default,n={triggerKind:0},s=Ye.None){return gm(this,void 0,void 0,function*(){const r=new ts(!0);t=t.clone();const a=e.getWordAtPosition(t),l=a?new y(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn):y.fromPositions(t),c={replace:l,insert:l.setEndPosition(t.lineNumber,t.column)},d=[],h=new Z,u=[];let g=!1;const p=(_,v,b)=>{var C,S,x;let E=!1;if(!v)return E;for(const L of v.suggestions)if(!i.kindFilter.has(L.kind)){if(!i.showDeprecated&&(!((C=L==null?void 0:L.tags)===null||C===void 0)&&C.includes(1)))continue;L.range||(L.range=c),L.sortText||(L.sortText=typeof L.label=="string"?L.label:L.label.label),!g&&L.insertTextRules&&L.insertTextRules&4&&(g=Hc.guessNeedsClipboard(L.insertText)),d.push(new fae(t,L,v,_)),E=!0}return wE(v)&&h.add(v),u.push({providerName:(S=_._debugDisplayName)!==null&&S!==void 0?S:"unknown_provider",elapsedProvider:(x=v.duration)!==null&&x!==void 0?x:-1,elapsedOverall:b.elapsed()}),E},m=(()=>gm(this,void 0,void 0,function*(){}))();for(const _ of o.orderedGroups(e)){let v=!1;if(yield Promise.all(_.map(b=>gm(this,void 0,void 0,function*(){if(i.providerItemsToReuse.has(b)){const C=i.providerItemsToReuse.get(b);C.forEach(S=>d.push(S)),v=v||C.length>0;return}if(!(i.providerFilter.size>0&&!i.providerFilter.has(b)))try{const C=new ts(!0),S=yield b.provideCompletionItems(e,t,n,s);v=p(b,S,C)||v}catch(C){Vi(C)}}))),v||s.isCancellationRequested)break}return yield m,s.isCancellationRequested?(h.dispose(),Promise.reject(new qc)):new _ae(d.sort(Cae(i.snippetSortOrder)),g,{entries:u,elapsed:r.elapsed()},h)})}function QN(o,e){if(o.sortTextLow&&e.sortTextLow){if(o.sortTextLowe.sortTextLow)return 1}return o.textLabele.textLabel?1:o.completion.kind-e.completion.kind}function bae(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return-1;if(e.completion.kind===27)return 1}return QN(o,e)}function vae(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return QN(o,e)}const Qw=new Map;Qw.set(0,bae);Qw.set(2,vae);Qw.set(1,QN);function Cae(o){return Qw.get(o)}st.registerCommand("_executeCompletionItemProvider",(o,...e)=>gm(void 0,void 0,void 0,function*(){const[t,i,n,s]=e;_t(Ce.isUri(t)),_t(W.isIPosition(i)),_t(typeof n=="string"||!n),_t(typeof s=="number"||!s);const{completionProvider:r}=o.get(ge),a=yield o.get(os).createModelReference(t);try{const l={incomplete:!1,suggestions:[]},c=[],d=yield YN(r,a.object.textEditorModel,W.lift(i),void 0,{triggerCharacter:n??void 0,triggerKind:n?1:0});for(const h of d.items)c.length<(s??0)&&c.push(h.resolve(Ye.None)),l.incomplete=l.incomplete||h.container.incomplete,l.suggestions.push(h.completion);try{return yield Promise.all(c),l}finally{setTimeout(()=>d.disposable.dispose(),100)}}finally{a.dispose()}}));function wae(o,e){var t;(t=o.getContribution("editor.contrib.suggestController"))===null||t===void 0||t.triggerSuggest(new Set().add(e),void 0,!0)}class sg{static isAllOff(e){return e.other==="off"&&e.comments==="off"&&e.strings==="off"}static isAllOn(e){return e.other==="on"&&e.comments==="on"&&e.strings==="on"}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}var XN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},r1=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const tO=X;let a1=class fI extends U{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._widget=this._register(this._instantiationService.createInstance(ih,this._editor)),this._currentResult=null,this._participants=[];for(const n of ou.getAll())this._participants.push(this._instantiationService.createInstance(n,this._editor));this._participants.sort((n,s)=>n.hoverOrdinal-s.hoverOrdinal),this._computer=new l1(this._editor,this._participants),this._hoverOperation=this._register(new _9(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{if(!this._computer.anchor)return;const s=n.hasLoadingMessage?this._addLoadingMessage(n.value):n.value;this._withResult(new L9(this._computer.anchor,s,n.isComplete))})),this._register(hi(this._widget.getDomNode(),"keydown",n=>{n.equals(9)&&this.hide()})),this._register(Kt.onDidChange(()=>{this._widget.position&&this._currentResult&&(this._widget.clear(),this._setCurrentResult(this._currentResult))}))}maybeShowAt(e){const t=[];for(const n of this._participants)if(n.suggestHoverAnchor){const s=n.suggestHoverAnchor(e);s&&t.push(s)}const i=e.target;if(i.type===6&&t.push(new vL(0,i.range,e.event.posx,e.event.posy)),i.type===7){const n=this._editor.getOption(47).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&typeof i.detail.horizontalDistanceToText=="number"&&i.detail.horizontalDistanceToTexts.priority-n.priority),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,i,n){this._startShowingOrUpdateHover(new vL(0,e,void 0,void 0),t,i,n,null)}_startShowingOrUpdateHover(e,t,i,n,s){return!this._widget.position||!this._currentResult?e?(this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):!1:this._editor.getOption(57).sticky&&s&&this._widget.isMouseGettingCloser(s.event.posx,s.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,i,n,!0),!0):e?e&&this._currentResult.anchor.equals(e)?!0:e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,i,n,s){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=n,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=s,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&e.messages.length===0&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}isColorPickerVisible(){return this._widget.isColorPickerVisible}isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}containsNode(e){return this._widget.getDomNode().contains(e)}_addLoadingMessage(e){if(this._computer.anchor){for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}}return e}_withResult(e){this._widget.position&&this._currentResult&&this._currentResult.isComplete&&(!e.isComplete||this._computer.insistOnKeepingHoverVisible&&e.messages.length===0)||this._setCurrentResult(e)}_renderMessages(e,t){const{showAtPosition:i,showAtSecondaryPosition:n,highlightRange:s}=fI.computeHoverRanges(this._editor,e.range,t),r=new Z,a=r.add(new pI(this._keybindingService)),l=document.createDocumentFragment();let c=null;const d={fragment:l,statusBar:a,setColorPicker:u=>c=u,onContentsChanged:()=>this._widget.onContentsChanged(),hide:()=>this.hide()};for(const u of this._participants){const g=t.filter(p=>p.owner===u);g.length>0&&r.add(u.renderHoverParts(d,g))}const h=t.some(u=>u.isBeforeContent);if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(s){const u=this._editor.createDecorationsCollection();u.set([{range:s,options:fI._DECORATION_OPTIONS}]),r.add(Pe(()=>{u.clear()}))}this._widget.showAt(l,new yae(c,i,n,this._editor.getOption(57).above,this._computer.shouldFocus,this._computer.source,h,e.initialMousePosX,e.initialMousePosY,r))}else r.dispose()}static computeHoverRanges(e,t,i){let n=1;if(e.hasModel()){const c=e._getViewModel(),d=c.coordinatesConverter,h=d.convertModelRangeToViewRange(t),u=new W(h.startLineNumber,c.getLineMinColumn(h.startLineNumber));n=d.convertViewPositionToModelPosition(u).column}const s=t.startLineNumber;let r=t.startColumn,a=i[0].range,l=null;for(const c of i)a=y.plusRange(a,c.range),c.range.startLineNumber===s&&c.range.endLineNumber===s&&(r=Math.max(Math.min(r,c.range.startColumn),n)),c.forceShowAtRange&&(l=c.range);return{showAtPosition:l?l.getStartPosition():new W(s,t.startColumn),showAtSecondaryPosition:l?l.getStartPosition():new W(s,r),highlightRange:a}}};a1._DECORATION_OPTIONS=Re.register({description:"content-hover-highlight",className:"hoverHighlight"});a1=XN([r1(1,Me),r1(2,ei)],a1);class L9{constructor(e,t,i){this.anchor=e,this.messages=t,this.isComplete=i}filter(e){const t=this.messages.filter(i=>i.isValidForHoverAnchor(e));return t.length===this.messages.length?this:new Sae(this,this.anchor,t,this.isComplete)}}class Sae extends L9{constructor(e,t,i,n){super(t,i,n),this.original=e}filter(e){return this.original.filter(e)}}class yae{constructor(e,t,i,n,s,r,a,l,c,d){this.colorPicker=e,this.showAtPosition=t,this.showAtSecondaryPosition=i,this.preferAbove=n,this.stoleFocus=s,this.source=r,this.isBeforeContent=a,this.initialMousePosX=l,this.initialMousePosY=c,this.disposables=d,this.closestMouseDistance=void 0}}let ih=class D9 extends U{get position(){var e,t;return(t=(e=this._visibleData)===null||e===void 0?void 0:e.showAtPosition)!==null&&t!==void 0?t:null}get isColorPickerVisible(){var e;return!!(!((e=this._visibleData)===null||e===void 0)&&e.colorPicker)}get isVisibleFromKeyboard(){var e;return((e=this._visibleData)===null||e===void 0?void 0:e.source)===1}constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this.allowEditorOverflow=!0,this._hoverVisibleKey=N.hoverVisible.bindTo(this._contextKeyService),this._hover=this._register(new m9),this._visibleData=null,this._register(this._editor.onDidLayoutChange(()=>this._layout())),this._register(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(47)&&this._updateFont()})),this._setVisibleData(null),this._layout(),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),this._visibleData&&this._visibleData.disposables.dispose(),super.dispose()}getId(){return D9.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){if(!this._visibleData)return null;let e=this._visibleData.preferAbove;!e&&this._contextKeyService.getContextKeyValue(Ge.Visible.key)&&(e=!0);const t=this._visibleData.isBeforeContent?3:void 0;return{position:this._visibleData.showAtPosition,secondaryPosition:this._visibleData.showAtSecondaryPosition,preference:e?[1,2]:[2,1],positionAffinity:t}}isMouseGettingCloser(e,t){if(!this._visibleData)return!1;if(typeof this._visibleData.initialMousePosX>"u"||typeof this._visibleData.initialMousePosY>"u")return this._visibleData.initialMousePosX=e,this._visibleData.initialMousePosY=t,!1;const i=Fi(this.getDomNode());typeof this._visibleData.closestMouseDistance>"u"&&(this._visibleData.closestMouseDistance=iO(this._visibleData.initialMousePosX,this._visibleData.initialMousePosY,i.left,i.top,i.width,i.height));const n=iO(e,t,i.left,i.top,i.width,i.height);return n>this._visibleData.closestMouseDistance+4?!1:(this._visibleData.closestMouseDistance=Math.min(this._visibleData.closestMouseDistance,n),!0)}_setVisibleData(e){this._visibleData&&this._visibleData.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!this._visibleData),this._hover.containerDomNode.classList.toggle("hidden",!this._visibleData)}_layout(){const e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:i}=this._editor.getOption(47);this._hover.contentsDomNode.style.fontSize=`${t}px`,this._hover.contentsDomNode.style.lineHeight=`${i/t}`,this._hover.contentsDomNode.style.maxHeight=`${e}px`,this._hover.contentsDomNode.style.maxWidth=`${Math.max(this._editor.getLayoutInfo().width*.66,500)}px`}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}showAt(e,t){var i;this._setVisibleData(t),this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._hover.contentsDomNode.style.paddingBottom="",this._updateFont(),this.onContentsChanged(),this._editor.render(),this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),(i=t.colorPicker)===null||i===void 0||i.layout()}hide(){if(this._visibleData){const e=this._visibleData.stoleFocus;this._setVisibleData(null),this._editor.layoutContentWidget(this),e&&this._editor.focus()}}onContentsChanged(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged();const e=this._hover.scrollbar.getScrollDimensions();if(e.scrollWidth>e.width){const i=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingBottom!==i&&(this._hover.contentsDomNode.style.paddingBottom=i,this._editor.layoutContentWidget(this),this._hover.onContentsChanged())}}clear(){this._hover.contentsDomNode.textContent=""}};ih.ID="editor.contrib.contentHoverWidget";ih=XN([r1(1,Ee)],ih);let pI=class extends U{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=tO("div.hover-row.status-bar"),this.actionsElement=q(this.hoverElement,tO("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(KN.render(this.actionsElement,e,i))}append(e){const t=q(this.actionsElement,e);return this._hasContent=!0,t}};pI=XN([r1(0,ei)],pI);class l1{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(t.type!==1&&!t.supportsMarkerHover)return[];const i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];const s=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter(r=>{if(r.options.isWholeLine)return!0;const a=r.range.startLineNumber===n?r.range.startColumn:1,l=r.range.endLineNumber===n?r.range.endColumn:s;if(r.options.showIfCollapsed){if(a>t.range.startColumn+1||t.range.endColumn-1>l)return!1}else if(a>t.range.startColumn||t.range.endColumn>l)return!1;return!0})}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return pi.EMPTY;const i=l1._getLineDecorations(this._editor,t);return pi.merge(this._participants.map(n=>n.computeAsync?n.computeAsync(t,i,e):pi.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=l1._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return mf(t)}}function iO(o,e,t,i,n,s){const r=t+n/2,a=i+s/2,l=Math.max(Math.abs(o-r)-n/2,0),c=Math.max(Math.abs(e-a)-s/2,0);return Math.sqrt(l*l+c*c)}var Lae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},nO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},x9=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},CL;let Ll=class k9{constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new O,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e)return{element:document.createElement("span"),dispose:()=>{}};const n=new Z;return{element:n.add(C3(e,Object.assign(Object.assign({},this._getRenderOptions(e,n)),t),i)).element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:(i,n)=>x9(this,void 0,void 0,function*(){var s,r,a;let l;i?l=this._languageService.getLanguageIdByLanguageName(i):this._options.editor&&(l=(s=this._options.editor.getModel())===null||s===void 0?void 0:s.getLanguageId()),l||(l=Vs);const c=yield kY(this._languageService,n,l),d=document.createElement("span");if(d.innerHTML=(a=(r=k9._ttpTokenizer)===null||r===void 0?void 0:r.createHTML(c))!==null&&a!==void 0?a:c,this._options.editor){const h=this._options.editor.getOption(47);Yi(d,h)}else this._options.codeBlockFontFamily&&(d.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(d.style.fontSize=this._options.codeBlockFontSize),d}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:i=>Dae(this._openerService,i,e.isTrusted),disposables:t}}}};Ll._ttpTokenizer=(CL=window.trustedTypes)===null||CL===void 0?void 0:CL.createPolicy("tokenizeToString",{createHTML(o){return o}});Ll=Lae([nO(1,Ut),nO(2,vo)],Ll);function Dae(o,e,t){return x9(this,void 0,void 0,function*(){try{return yield o.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:xae(t)})}catch(i){return Oe(i),!1}})}function xae(o){return o===!0?!0:o&&Array.isArray(o.enabledCommands)?o.enabledCommands:!1}const sO=X;class xg extends U{constructor(e,t,i){super(),this._renderDisposeables=this._register(new Z),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new m9),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new Ll({editor:this._editor},t,i)),this._computer=new kae(this._editor),this._hoverOperation=this._register(new _9(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{this._withResult(n.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(47)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return xg.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const n of t){const s=sO("div.hover-row.markdown-hover"),r=q(s,sO("div.hover-contents")),a=this._renderDisposeables.add(this._markdownRenderer.render(n.value));r.appendChild(a.element),i.appendChild(s)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),s=this._editor.getOption(63),r=this._hover.containerDomNode.clientHeight,a=i-n-(r-s)/2;this._hover.containerDomNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(a),0)}px`}}xg.ID="editor.contrib.modesGlyphHoverWidget";class kae{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}constructor(e){this._editor=e,this._lineNumber=-1}computeSync(){const e=n=>({value:n}),t=this._editor.getLineDecorations(this._lineNumber),i=[];if(!t)return i;for(const n of t){if(!n.options.glyphMarginClassName)continue;const s=n.options.glyphMarginHoverMessage;!s||Zg(s)||i.push(...vE(s).map(e))}return i}}var Iae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Eae{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function Tae(o,e,t,i,n){return Iae(this,void 0,void 0,function*(){try{const s=yield Promise.resolve(o.provideHover(t,i,n));if(s&&Mae(s))return new Eae(o,s,e)}catch(s){Vi(s)}})}function JN(o,e,t,i){const s=o.ordered(e).map((r,a)=>Tae(r,a,e,t,i));return pi.fromPromises(s).coalesce()}function Nae(o,e,t,i){return JN(o,e,t,i).map(n=>n.hover).toPromise()}Ta("_executeHoverProvider",(o,e,t)=>{const i=o.get(ge);return Nae(i.hoverProvider,e,t,Ye.None)});function Mae(o){const e=typeof o.range<"u",t=typeof o.contents<"u"&&o.contents&&o.contents.length>0;return e&&t}var Aae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},S0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const oO=X;class rr{constructor(e,t,i,n,s){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=n,this.ordinal=s}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let c1=class{constructor(e,t,i,n,s){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=s,this.hoverOrdinal=2}createLoadingMessage(e){return new rr(this,e.range,[new Yn().appendText(f("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];let a=1e3;const l=i.getLineLength(n),c=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),d=this._editor.getOption(111),h=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:c});let u=!1;d>=0&&l>d&&e.range.startColumn>=d&&(u=!0,r.push(new rr(this,e.range,[{value:f("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,a++))),!u&&typeof h=="number"&&l>=h&&r.push(new rr(this,e.range,[{value:f("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,a++));let g=!1;for(const p of t){const m=p.range.startLineNumber===n?p.range.startColumn:1,_=p.range.endLineNumber===n?p.range.endColumn:s,v=p.options.hoverMessage;if(!v||Zg(v))continue;p.options.beforeContentClassName&&(g=!0);const b=new y(e.range.startLineNumber,m,e.range.startLineNumber,_);r.push(new rr(this,b,vE(v),g,a++))}return r}computeAsync(e,t,i){if(!this._editor.hasModel()||e.type!==1)return pi.EMPTY;const n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return pi.EMPTY;const s=new W(e.range.startLineNumber,e.range.startColumn);return JN(this._languageFeaturesService.hoverProvider,n,s,i).filter(r=>!Zg(r.hover.contents)).map(r=>{const a=r.hover.range?y.lift(r.hover.range):e.range;return new rr(this,a,r.hover.contents,!1,r.ordinal)})}renderHoverParts(e,t){return I9(e,t,this._editor,this._languageService,this._openerService)}};c1=Aae([S0(1,Ut),S0(2,vo),S0(3,at),S0(4,ge)],c1);function I9(o,e,t,i,n){e.sort((r,a)=>r.ordinal-a.ordinal);const s=new Z;for(const r of e)for(const a of r.contents){if(Zg(a))continue;const l=oO("div.hover-row.markdown-hover"),c=q(l,oO("div.hover-contents")),d=s.add(new Ll({editor:t},i,n));s.add(d.onDidRenderAsync(()=>{c.className="hover-contents code-hover-contents",o.onContentsChanged()}));const h=s.add(d.render(a));c.appendChild(h.element),o.fragment.appendChild(l)}return s}var E9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},d1=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class rO{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let mI=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._dispoables=new Z,this._markers=[],this._nextIdx=-1,Ce.isUri(e)?this._resourceFilter=a=>a.toString()===e.toString():e&&(this._resourceFilter=e);const n=this._configService.getValue("problems.sortOrder"),s=(a,l)=>{let c=Sm(a.resource.toString(),l.resource.toString());return c===0&&(n==="position"?c=y.compareRangesUsingStarts(a,l)||qt.compare(a.severity,l.severity):c=qt.compare(a.severity,l.severity)||y.compareRangesUsingStarts(a,l)),c},r=()=>{this._markers=this._markerService.read({resource:Ce.isUri(e)?e:void 0,severities:qt.Error|qt.Warning|qt.Info}),typeof e=="function"&&(this._markers=this._markers.filter(a=>this._resourceFilter(a.resource))),this._markers.sort(s)};r(),this._dispoables.add(t.onMarkerChanged(a=>{(!this._resourceFilter||a.some(l=>this._resourceFilter(l)))&&(r(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e?!0:!this._resourceFilter||!e?!1:this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new rO(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,s=this._markers.findIndex(r=>r.resource.toString()===e.uri.toString());s<0&&(s=bm(this._markers,{resource:e.uri},(r,a)=>Sm(r.resource.toString(),a.resource.toString())),s<0&&(s=~s));for(let r=s;rn.resource.toString()===e.toString());if(!(i<0)){for(;i=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yu=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class Pae{constructor(e,t,i,n,s){this._openerService=n,this._labelService=s,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new Z,this._editor=t;const r=document.createElement("div");r.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),r.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),r.appendChild(this._relatedBlock),this._disposables.add(hi(this._relatedBlock,"click",a=>{a.preventDefault();const l=this._relatedDiagnostics.get(a.target);l&&i(l)})),this._scrollable=new p5(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(a=>{r.style.left=`-${a.scrollLeft}px`,r.style.top=`-${a.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){ft(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:s}=e;let r=((t==null?void 0:t.length)||0)+2;s&&(typeof s=="string"?r+=s.length:r+=s.value.length);const a=ma(i);this._lines=a.length,this._longestLineLength=0;for(const u of a)this._longestLineLength=Math.max(u.length+r,this._longestLineLength);xi(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let l=this._messageBlock;for(const u of a)l=document.createElement("div"),l.innerText=u,u===""&&(l.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(l);if(t||s){const u=document.createElement("span");if(u.classList.add("details"),l.appendChild(u),t){const g=document.createElement("span");g.innerText=t,g.classList.add("source"),u.appendChild(g)}if(s)if(typeof s=="string"){const g=document.createElement("span");g.innerText=`(${s})`,g.classList.add("code"),u.appendChild(g)}else{this._codeLink=X("a.code-link"),this._codeLink.setAttribute("href",`${s.target.toString()}`),this._codeLink.onclick=p=>{this._openerService.open(s.target,{allowCommands:!0}),p.preventDefault(),p.stopPropagation()};const g=q(this._codeLink,X("span"));g.innerText=s.value,u.appendChild(this._codeLink)}}if(xi(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Cn(n)){const u=this._relatedBlock.appendChild(document.createElement("div"));u.style.paddingTop=`${Math.floor(this._editor.getOption(63)*.66)}px`,this._lines+=1;for(const g of n){const p=document.createElement("div"),m=document.createElement("a");m.classList.add("filename"),m.innerText=`${this._labelService.getUriBasenameLabel(g.resource)}(${g.startLineNumber}, ${g.startColumn}): `,m.title=this._labelService.getUriLabel(g.resource),this._relatedDiagnostics.set(m,g);const _=document.createElement("span");_.innerText=g.message,p.appendChild(m),p.appendChild(_),this._lines+=1,u.appendChild(p)}}const c=this._editor.getOption(47),d=Math.ceil(c.typicalFullwidthCharacterWidth*this._longestLineLength*.75),h=c.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:d,scrollHeight:h})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case qt.Error:t=f("Error","Error");break;case qt.Warning:t=f("Warning","Warning");break;case qt.Info:t=f("Info","Info");break;case qt.Hint:t=f("Hint","Hint");break}let i=f("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const n=this._editor.getModel();return n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1&&(i=`${n.getLineContent(e.startLineNumber)}, ${i}`),i}}let af=class N9 extends o1{constructor(e,t,i,n,s,r,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},s),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=r,this._labelService=a,this._callOnDispose=new Z,this._onDidSelectRelatedInformation=new O,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=qt.Warning,this._backgroundColor=H.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(Wae);let t=vI,i=Oae;this._severity===qt.Warning?(t=_v,i=Fae):this._severity===qt.Info&&(t=CI,i=Bae);const n=e.getColor(t),s=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:s,primaryHeadingColor:e.getColor(J8),secondaryHeadingColor:e.getColor(e9)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun(n=>this.editor.focus()));const t=[],i=this._menuService.createMenu(N9.TitleMenu,this._contextKeyService);J3(i,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=q(e,X(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new Pae(this._container,this.editor,t=>this._onDidSelectRelatedInformation.fire(t),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const n=y.lift(e),s=this.editor.getPosition(),r=s&&n.containsPosition(s)?s:n.getStartPosition();super.show(r,this.computeRequiredHeight());const a=this.editor.getModel();if(a){const l=i>1?f("problems","{0} of {1} problems",t,i):f("change","{0} of {1} problem",t,i);this.setTitle(uo(a.uri),l)}this._icon.className=`codicon ${bI.className(qt.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(r,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};af.TitleMenu=new T("gotoErrorTitleMenu");af=Rae([yu(1,Hi),yu(2,vo),yu(3,Ea),yu(4,Me),yu(5,Ee),yu(6,Yg)],af);const aO=Am(ia,sj),lO=Am(Fs,Mm),cO=Am(es,gx),vI=M("editorMarkerNavigationError.background",{dark:aO,light:aO,hcDark:Ze,hcLight:Ze},f("editorMarkerNavigationError","Editor marker navigation widget error color.")),Oae=M("editorMarkerNavigationError.headerBackground",{dark:pe(vI,.1),light:pe(vI,.1),hcDark:null,hcLight:null},f("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),_v=M("editorMarkerNavigationWarning.background",{dark:lO,light:lO,hcDark:Ze,hcLight:Ze},f("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Fae=M("editorMarkerNavigationWarning.headerBackground",{dark:pe(_v,.1),light:pe(_v,.1),hcDark:"#0C141F",hcLight:pe(_v,.2)},f("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),CI=M("editorMarkerNavigationInfo.background",{dark:cO,light:cO,hcDark:Ze,hcLight:Ze},f("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),Bae=M("editorMarkerNavigationInfo.headerBackground",{dark:pe(CI,.1),light:pe(CI,.1),hcDark:null,hcLight:null},f("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),Wae=M("editorMarkerNavigation.background",{dark:Ti,light:Ti,hcDark:Ti,hcLight:Ti},f("editorMarkerNavigationBackground","Editor marker navigation widget background."));var Vae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},y0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},M9=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let zc=class bv{static get(e){return e.getContribution(bv.ID)}constructor(e,t,i,n,s){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=s,this._sessionDispoables=new Z,this._editor=e,this._widgetVisible=A9.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(af,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(i=>{var n,s,r;(!(!((n=this._model)===null||n===void 0)&&n.selected)||!y.containsPosition((s=this._model)===null||s===void 0?void 0:s.selected.marker,i.position))&&((r=this._model)===null||r===void 0||r.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const i=this._model.find(this._editor.getModel().uri,this._widget.position);i?this._widget.updateMarker(i.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(i=>{this._editorService.openCodeEditor({resource:i.resource,options:{pinned:!0,revealIfOpened:!0,selection:y.lift(i).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new W(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(e,t){var i,n;return M9(this,void 0,void 0,function*(){if(this._editor.hasModel()){const s=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(s.move(e,this._editor.getModel(),this._editor.getPosition()),!s.selected)return;if(s.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const r=yield this._editorService.openCodeEditor({resource:s.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:s.selected.marker}},this._editor);r&&((i=bv.get(r))===null||i===void 0||i.close(),(n=bv.get(r))===null||n===void 0||n.nagivate(e,t))}else this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total)}})}};zc.ID="editor.contrib.markerController";zc=Vae([y0(1,T9),y0(2,Ee),y0(3,ut),y0(4,Me)],zc);class Xw extends de{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}run(e,t){var i;return M9(this,void 0,void 0,function*(){t.hasModel()&&((i=zc.get(t))===null||i===void 0||i.nagivate(this._next,this._multiFile))})}}class Sc extends Xw{constructor(){super(!0,!1,{id:Sc.ID,label:Sc.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:578,weight:100},menuOpts:{menuId:af.TitleMenu,title:Sc.LABEL,icon:gi("marker-navigation-next",se.arrowDown,f("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}Sc.ID="editor.action.marker.next";Sc.LABEL=f("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class nh extends Xw{constructor(){super(!1,!1,{id:nh.ID,label:nh.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:1602,weight:100},menuOpts:{menuId:af.TitleMenu,title:nh.LABEL,icon:gi("marker-navigation-previous",se.arrowUp,f("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}nh.ID="editor.action.marker.prev";nh.LABEL=f("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");class Hae extends Xw{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:f("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:66,weight:100},menuOpts:{menuId:T.MenubarGoMenu,title:f({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}class zae extends Xw{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:f("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:1090,weight:100},menuOpts:{menuId:T.MenubarGoMenu,title:f({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}}lt(zc.ID,zc,4);J(Sc);J(nh);J(Hae);J(zae);const A9=new ce("markersNavigationVisible",!1),Uae=Ji.bindToContribution(zc.get);ie(new Uae({id:"closeMarkersNavigation",precondition:A9,handler:o=>o.close(),kbOpts:{weight:100+50,kbExpr:N.focus,primary:9,secondary:[1033]}}));var $ae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},wL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const yo=X;class jae{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const dO={type:1,filter:{include:Te.QuickFix},triggerAction:ns.QuickFixHover};let wI=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=5,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1&&!e.supportsMarkerHover)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];for(const a of t){const l=a.range.startLineNumber===n?a.range.startColumn:1,c=a.range.endLineNumber===n?a.range.endColumn:s,d=this._markerDecorationsService.getMarker(i.uri,a);if(!d)continue;const h=new y(e.range.startLineNumber,l,e.range.startLineNumber,c);r.push(new jae(this,h,d))}return r}renderHoverParts(e,t){if(!t.length)return U.None;const i=new Z;t.forEach(s=>e.fragment.appendChild(this.renderMarkerHover(s,i)));const n=t.length===1?t[0]:t.sort((s,r)=>qt.compare(s.marker.severity,r.marker.severity))[0];return this.renderMarkerStatusbar(e,n,i),i}renderMarkerHover(e,t){const i=yo("div.hover-row"),n=q(i,yo("div.marker.hover-contents")),{source:s,message:r,code:a,relatedInformation:l}=e.marker;this._editor.applyFontInfo(n);const c=q(n,yo("span"));if(c.style.whiteSpace="pre-wrap",c.innerText=r,s||a)if(a&&typeof a!="string"){const d=yo("span");if(s){const p=q(d,yo("span"));p.innerText=s}const h=q(d,yo("a.code-link"));h.setAttribute("href",a.target.toString()),t.add(K(h,"click",p=>{this._openerService.open(a.target,{allowCommands:!0}),p.preventDefault(),p.stopPropagation()}));const u=q(h,yo("span"));u.innerText=a.value;const g=q(n,d);g.style.opacity="0.6",g.style.paddingLeft="6px"}else{const d=q(n,yo("span"));d.style.opacity="0.6",d.style.paddingLeft="6px",d.innerText=s&&a?`${s}(${a})`:s||`(${a})`}if(Cn(l))for(const{message:d,resource:h,startLineNumber:u,startColumn:g}of l){const p=q(n,yo("div"));p.style.marginTop="8px";const m=q(p,yo("a"));m.innerText=`${uo(h)}(${u}, ${g}): `,m.style.cursor="pointer",t.add(K(m,"click",v=>{v.stopPropagation(),v.preventDefault(),this._openerService&&this._openerService.open(h,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:u,startColumn:g}}}).catch(Oe)}));const _=q(p,yo("span"));_.innerText=d,this._editor.applyFontInfo(_)}return i}renderMarkerStatusbar(e,t,i){if((t.marker.severity===qt.Error||t.marker.severity===qt.Warning||t.marker.severity===qt.Info)&&e.statusBar.addAction({label:f("view problem","View Problem"),commandId:Sc.ID,run:()=>{var n;e.hide(),(n=zc.get(this._editor))===null||n===void 0||n.showAtMarker(t.marker),this._editor.focus()}}),!this._editor.getOption(86)){const n=e.statusBar.append(yo("div"));this.recentMarkerCodeActionsInfo&&(UC.makeKey(this.recentMarkerCodeActionsInfo.marker)===UC.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=f("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const s=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?U.None:i.add(dh(()=>n.textContent=f("checkingForQuickFixes","Checking for quick fixes..."),200));n.textContent||(n.textContent=String.fromCharCode(160));const r=this.getCodeActions(t.marker);i.add(Pe(()=>r.cancel())),r.then(a=>{if(s.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:a.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){a.dispose(),n.textContent=f("noQuickFixes","No quick fixes available");return}n.style.display="none";let l=!1;i.add(Pe(()=>{l||a.dispose()})),e.statusBar.addAction({label:f("quick fixes","Quick Fix..."),commandId:Nf.Id,run:c=>{l=!0;const d=kh.get(this._editor),h=Fi(c);e.hide(),d==null||d.showCodeActions(dO,a,{x:h.left+6,y:h.top+h.height+6,width:h.width,height:h.height})}})},Oe)}}getCodeActions(e){return Wi(t=>UN(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),dO,Qh.None,t))}};wI=$ae([wL(1,iT),wL(2,vo),wL(3,ge)],wI);const R9="editor.action.inlineSuggest.commit",P9="editor.action.inlineSuggest.showPrevious",O9="editor.action.inlineSuggest.showNext";var Kae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class qae extends U{constructor(e,t,i={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new ZW),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=new Z,this.options=i,this.lookupKeybindings=typeof this.options.getKeyBinding=="function",this.toggleMenuAction=this._register(new b_(()=>{var n;return(n=this.toggleMenuActionViewItem)===null||n===void 0?void 0:n.show()},i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new go(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,actionViewItemProvider:(n,s)=>{var r;if(n.id===b_.ID)return this.toggleMenuActionViewItem=new OC(n,n.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:De.asClassNameArray((r=i.moreIcon)!==null&&r!==void 0?r:se.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const a=i.actionViewItemProvider(n,s);if(a)return a}if(n instanceof Hg){const a=new OC(n,n.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:n.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement});return a.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(a),this.disposables.add(this._onDidChangeDropdownVisibility.add(a.onDidChangeVisibility)),a}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach(n=>{this.actionBar.push(n,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(n)})})}getKeybindingLabel(e){var t,i;const n=this.lookupKeybindings?(i=(t=this.options).getKeyBinding)===null||i===void 0?void 0:i.call(t,e):void 0;return an(n==null?void 0:n.getLabel())}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),super.dispose()}}class b_ extends ms{constructor(e,t){t=t||f("moreActions","More Actions..."),super(b_.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}run(){return Kae(this,void 0,void 0,function*(){this.toggleDropdownMenu()})}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}b_.ID="toolbar.toggle.more";var Gae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},rp=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let SI=class extends qae{constructor(e,t,i,n,s,r,a){super(e,s,Object.assign(Object.assign({getKeyBinding:l=>{var c;return(c=r.lookupKeybinding(l.id))!==null&&c!==void 0?c:void 0}},t),{allowContextMenu:!0})),this._options=t,this._menuService=i,this._contextKeyService=n,this._contextMenuService=s,this._sessionDisposables=this._store.add(new Z),t!=null&&t.telemetrySource&&this._store.add(this.actionBar.onDidRun(l=>a.publicLog2("workbenchActionExecuted",{id:l.action.id,from:t.telemetrySource})))}setActions(e,t=[],i){var n,s,r;this._sessionDisposables.clear();const a=e.slice(),l=t.slice(),c=[];let d=0;const h=[];let u=!1;if(((n=this._options)===null||n===void 0?void 0:n.hiddenItemStrategy)!==-1)for(let g=0;g=this._options.maxNumberOfItems&&(a[p]=void 0,h[p]=m)}}T2(a),T2(h),super.setActions(a,Bi.join(h,l)),c.length>0&&this._sessionDisposables.add(K(this.getElement(),"contextmenu",g=>{var p,m,_,v;const b=this.getItemAction(g.target);if(!b)return;g.preventDefault(),g.stopPropagation();let C=!1;if(d===1&&((p=this._options)===null||p===void 0?void 0:p.hiddenItemStrategy)===0){C=!0;for(let E=0;Ethis._menuService.resetHiddenStates(i)}))),this._contextMenuService.showContextMenu({getAnchor:()=>g,getActions:()=>x,menuId:(_=this._options)===null||_===void 0?void 0:_.contextMenu,menuActionOptions:Object.assign({renderShortTitle:!0},(v=this._options)===null||v===void 0?void 0:v.menuOptions),contextKeyService:this._contextKeyService})}))}};SI=Gae([rp(2,Ea),rp(3,Ee),rp(4,xr),rp(5,ei),rp(6,mo)],SI);var F9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Qr=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Zae=gi("inline-suggestion-hints-next",se.chevronRight,f("parameterHintsNextIcon","Icon for show next parameter hint.")),Yae=gi("inline-suggestion-hints-previous",se.chevronLeft,f("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Th=class yI extends U{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,i){const n=new ms(e,t,i,!0,()=>this._commandService.executeCommand(e)),s=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let r=t;return s&&(r=f({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,s.getLabel())),n.tooltip=r,n}constructor(e,t,i,n,s,r,a){super(),this.editor=e,this.withBorder=t,this._commandService=i,this.keybindingService=s,this._contextKeyService=r,this._menuService=a,this.id=`InlineSuggestionHintsContentWidget${yI.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=vp("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[vp("div",{style:{display:"flex"}},[vp("div@actionBar",{className:"custom-actions"}),vp("div@toolBar")])]),this.position=null,this.previousAction=this.createCommandAction(P9,f("previous","Previous"),De.asClassName(Yae)),this.availableSuggestionCountAction=new ms("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(O9,f("next","Next"),De.asClassName(Zae)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(T.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new wt(()=>{this.availableSuggestionCountAction.label=""},100)),this.disableButtonsDebounced=this._register(new wt(()=>{this.previousAction.enabled=this.nextAction.enabled=!1},100));const l=this._register(new go(this.nodes.actionBar));l.push(this.previousAction,{icon:!0,label:!1}),l.push(this.availableSuggestionCountAction),l.push(this.nextAction,{icon:!0,label:!1}),this.toolBar=this._register(n.createInstance(LI,this.nodes.toolBar,T.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:c=>c.startsWith("primary")},actionViewItemProvider:(c,d)=>c instanceof Vo?n.createInstance(Qae,c,void 0):void 0,telemetrySource:"InlineSuggestionToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility(c=>{yI._dropDownVisible=c}))}update(e,t,i,n){this.position=e,i!==void 0&&i>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule(),i!==void 0?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${t+1}/${i}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),this.editor.layoutContentWidget(this);const s=n.map(r=>({class:void 0,id:r.id,enabled:!0,tooltip:r.tooltip||"",label:r.title,run:a=>this._commandService.executeCommand(r.id)}));for(const[r,a]of this.inlineCompletionsActionsMenus.getActions())for(const l of a)l instanceof Vo&&s.push(l);s.length>0&&s.unshift(new Bi),this.toolBar.setAdditionalSecondaryActions(s)}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this.position,preference:[1,2],positionAffinity:3}}};Th._dropDownVisible=!1;Th.id=0;Th=F9([Qr(2,ri),Qr(3,Me),Qr(4,ei),Qr(5,Ee),Qr(6,Ea)],Th);let Qae=class extends bh{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=vp("div.keybinding").root;new nb(t,Ps,{disableTitle:!0}).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}},LI=class extends SI{constructor(e,t,i,n,s,r,a,l){super(e,Object.assign({resetMenu:t},i),n,s,r,a,l),this.menuId=t,this.options2=i,this.menuService=n,this.contextKeyService=s,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this._store.add(this.menu.onDidChange(()=>this.updateToolbar())),this.updateToolbar()}updateToolbar(){var e,t,i,n,s,r,a;const l=[],c=[];J3(this.menu,(e=this.options2)===null||e===void 0?void 0:e.menuOptions,{primary:l,secondary:c},(i=(t=this.options2)===null||t===void 0?void 0:t.toolbarOptions)===null||i===void 0?void 0:i.primaryGroup,(s=(n=this.options2)===null||n===void 0?void 0:n.toolbarOptions)===null||s===void 0?void 0:s.shouldInlineSubmenu,(a=(r=this.options2)===null||r===void 0?void 0:r.toolbarOptions)===null||a===void 0?void 0:a.useSeparatorsInPrimaryActions),c.push(...this.additionalActions),this.setActions(l,c)}setAdditionalSecondaryActions(e){this.additionalActions=e,this.updateToolbar()}};LI=F9([Qr(3,Ea),Qr(4,Ee),Qr(5,xr),Qr(6,ei),Qr(7,mo)],LI);var Xae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},L0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Uc=class B9{static get(e){return e.getContribution(B9.ID)}constructor(e,t,i,n,s){this._editor=e,this._instantiationService=t,this._openerService=i,this._languageService=n,this._toUnhook=new Z,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(r=>{r.hasChanged(57)&&(this._unhookEvents(),this._hookEvents())})}_hookEvents(){const e=()=>this._hideWidgets(),t=this._editor.getOption(57);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(i=>this._onEditorMouseDown(i))),this._toUnhook.add(this._editor.onMouseUp(i=>this._onEditorMouseUp(i))),this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))):(this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))),this._toUnhook.add(this._editor.onMouseLeave(i=>this._onEditorMouseLeave(i))),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(i=>this._onEditorScrollChanged(i)))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._isMouseDown=!0;const t=e.target;if(t.type===9&&t.detail===ih.ID){this._hoverClicked=!0;return}t.type===12&&t.detail===xg.ID||(t.type!==12&&(this._hoverClicked=!1),this._hideWidgets())}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseLeave(e){var t;const i=e.event.browserEvent.relatedTarget;!((t=this._contentWidget)===null||t===void 0)&&t.containsNode(i)||this._hideWidgets()}_onEditorMouseMove(e){var t,i,n,s,r,a;const l=e.target;if(this._isMouseDown&&this._hoverClicked||this._isHoverSticky&&l.type===9&&l.detail===ih.ID||this._isHoverSticky&&!(!((i=(t=e.event.browserEvent.view)===null||t===void 0?void 0:t.getSelection())===null||i===void 0)&&i.isCollapsed)||!this._isHoverSticky&&l.type===9&&l.detail===ih.ID&&(!((n=this._contentWidget)===null||n===void 0)&&n.isColorPickerVisible())||this._isHoverSticky&&l.type===12&&l.detail===xg.ID||this._isHoverSticky&&(!((s=this._contentWidget)===null||s===void 0)&&s.isVisibleFromKeyboard()))return;if(!this._isHoverEnabled){this._hideWidgets();return}if(this._getOrCreateContentWidget().maybeShowAt(e)){(r=this._glyphWidget)===null||r===void 0||r.hide();return}if(l.type===2&&l.position){(a=this._contentWidget)===null||a===void 0||a.hide(),this._glyphWidget||(this._glyphWidget=new xg(this._editor,this._languageService,this._openerService)),this._glyphWidget.startShowingAt(l.position.lineNumber);return}this._hideWidgets()}_onKeyDown(e){e.keyCode!==5&&e.keyCode!==6&&e.keyCode!==57&&e.keyCode!==4&&this._hideWidgets()}_hideWidgets(){var e,t,i;this._isMouseDown&&this._hoverClicked&&(!((e=this._contentWidget)===null||e===void 0)&&e.isColorPickerVisible())||Th.dropDownVisible||(this._hoverClicked=!1,(t=this._glyphWidget)===null||t===void 0||t.hide(),(i=this._contentWidget)===null||i===void 0||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(a1,this._editor)),this._contentWidget}isColorPickerVisible(){var e;return((e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible())||!1}showContentHover(e,t,i,n){this._getOrCreateContentWidget().startShowingAtRange(e,t,i,n)}dispose(){var e,t;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),(e=this._glyphWidget)===null||e===void 0||e.dispose(),(t=this._contentWidget)===null||t===void 0||t.dispose()}};Uc.ID="editor.contrib.hover";Uc=Xae([L0(1,Me),L0(2,vo),L0(3,Ut),L0(4,Ee)],Uc);class Jae extends de{constructor(){super({id:"editor.action.showHover",label:f({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:ki(2089,2087),weight:100}})}run(e,t){if(!t.hasModel())return;const i=Uc.get(t);if(!i)return;const n=t.getPosition(),s=new y(n.lineNumber,n.column,n.lineNumber,n.column),r=t.getOption(2)===2;i.showContentHover(s,1,1,r)}}class ele extends de{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:f({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){const i=Uc.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const s=new y(n.lineNumber,n.column,n.lineNumber,n.column),r=Eh.get(t);if(!r)return;r.startFindDefinitionFromCursor(n).then(()=>{i.showContentHover(s,1,1,!0)})}}lt(Uc.ID,Uc,2);J(Jae);J(ele);ou.register(c1);ou.register(wI);Ho((o,e)=>{const t=o.getColor(vj);t&&(e.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${t.transparent(.5)}; }`))});class DI extends U{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(t=>this.onMouseDown(t)))}dispose(){super.dispose()}onMouseDown(e){const t=e.target;if(t.type!==6||!t.detail.injectedText||t.detail.injectedText.options.attachedData!==q8||!t.range)return;const i=this._editor.getContribution(Uc.ID);if(i&&!i.isColorPickerVisible()){const n=new y(t.range.startLineNumber,t.range.startColumn+1,t.range.endLineNumber,t.range.endColumn+1);i.showContentHover(n,1,0,!1)}}}DI.ID="editor.contrib.colorContribution";lt(DI.ID,DI,2);ou.register(eI);const Jw=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let o;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?o=crypto.getRandomValues.bind(crypto):o=function(i){for(let n=0;nW9(this,void 0,void 0,function*(){return o}),asFile:()=>{},value:typeof o=="string"?o:void 0}}function tle(o,e,t){return{id:Jw(),asString:()=>W9(this,void 0,void 0,function*(){return""}),asFile:()=>({name:o,uri:e,data:t}),value:void 0}}class V9{constructor(){this._entries=new Map}get size(){return this._entries.size}has(e){return this._entries.has(this.toKey(e))}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*entries(){for(const[e,t]of this._entries.entries())for(const i of t)yield[e,i]}values(){return Array.from(this._entries.values()).flat()}forEach(e){for(const[t,i]of this.entries())e(i,t)}toKey(e){return e.toLowerCase()}}const eS=Object.freeze({create:o=>Dc(o.map(e=>e.toString())).join(`\r + hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")s.push({token:a.token+t.tokenPostfix,open:pc(t,a.open),close:pc(t,a.close)});else throw Rt(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=s,t.noThrow=!0,t}var Hne=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function zne(o){Fg.registerLanguage(o)}function Une(){let o=[];return o=o.concat(Fg.getLanguages()),o}function $ne(o){return ke.get(Ut).languageIdCodec.encodeLanguageId(o)}function jne(o,e){const i=ke.get(Ut).onDidEncounterLanguage(n=>{n===o&&(i.dispose(),e())});return i}function Kne(o,e){if(!ke.get(Ut).isRegisteredLanguageId(o))throw new Error(`Cannot set configuration for unknown language ${o}`);return ke.get(ui).register(o,e,100)}class qne{constructor(e,t){this._languageId=e,this._actual=t}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if(typeof this._actual.tokenize=="function")return u_.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const n=this._actual.tokenizeEncoded(e,i);return new x1(n.tokens,n.endState)}}class u_{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=n}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let n=0;for(let s=0,r=e.length;s0&&s[r-1]===u)continue;let g=h.startIndex;c===0?g=0:gHne(this,void 0,void 0,function*(){const i=yield Promise.resolve(e.create());return i?Gne(i)?U7(o,i):new km(ke.get(Ut),ke.get(Ks),o,H7(o,i),ke.get(at)):null})};return Kt.registerFactory(o,t)}function Qne(o,e){if(!ke.get(Ut).isRegisteredLanguageId(o))throw new Error(`Cannot set tokens provider for unknown language ${o}`);return z7(e)?NN(o,{create:()=>e}):Kt.register(o,U7(o,e))}function Xne(o,e){const t=i=>new km(ke.get(Ut),ke.get(Ks),o,H7(o,i),ke.get(at));return z7(e)?NN(o,{create:()=>e}):Kt.register(o,t(e))}function Jne(o,e){return ke.get(ge).referenceProvider.register(o,e)}function ese(o,e){return ke.get(ge).renameProvider.register(o,e)}function tse(o,e){return ke.get(ge).signatureHelpProvider.register(o,e)}function ise(o,e){return ke.get(ge).hoverProvider.register(o,{provideHover:(i,n,s)=>{const r=i.getWordAtPosition(n);return Promise.resolve(e.provideHover(i,n,s)).then(a=>{if(a)return!a.range&&r&&(a.range=new y(n.lineNumber,r.startColumn,n.lineNumber,r.endColumn)),a.range||(a.range=new y(n.lineNumber,n.column,n.lineNumber,n.column)),a})}})}function nse(o,e){return ke.get(ge).documentSymbolProvider.register(o,e)}function sse(o,e){return ke.get(ge).documentHighlightProvider.register(o,e)}function ose(o,e){return ke.get(ge).linkedEditingRangeProvider.register(o,e)}function rse(o,e){return ke.get(ge).definitionProvider.register(o,e)}function ase(o,e){return ke.get(ge).implementationProvider.register(o,e)}function lse(o,e){return ke.get(ge).typeDefinitionProvider.register(o,e)}function cse(o,e){return ke.get(ge).codeLensProvider.register(o,e)}function dse(o,e,t){return ke.get(ge).codeActionProvider.register(o,{providedCodeActionKinds:t==null?void 0:t.providedCodeActionKinds,documentation:t==null?void 0:t.documentation,provideCodeActions:(n,s,r,a)=>{const c=ke.get(Na).read({resource:n.uri}).filter(d=>y.areIntersectingOrTouching(d,s));return e.provideCodeActions(n,s,{markers:c,only:r.only,trigger:r.trigger},a)},resolveCodeAction:e.resolveCodeAction})}function hse(o,e){return ke.get(ge).documentFormattingEditProvider.register(o,e)}function use(o,e){return ke.get(ge).documentRangeFormattingEditProvider.register(o,e)}function gse(o,e){return ke.get(ge).onTypeFormattingEditProvider.register(o,e)}function fse(o,e){return ke.get(ge).linkProvider.register(o,e)}function pse(o,e){return ke.get(ge).completionProvider.register(o,e)}function mse(o,e){return ke.get(ge).colorProvider.register(o,e)}function _se(o,e){return ke.get(ge).foldingRangeProvider.register(o,e)}function bse(o,e){return ke.get(ge).declarationProvider.register(o,e)}function vse(o,e){return ke.get(ge).selectionRangeProvider.register(o,e)}function Cse(o,e){return ke.get(ge).documentSemanticTokensProvider.register(o,e)}function wse(o,e){return ke.get(ge).documentRangeSemanticTokensProvider.register(o,e)}function Sse(o,e){return ke.get(ge).inlineCompletionsProvider.register(o,e)}function yse(o,e){return ke.get(ge).inlayHintsProvider.register(o,e)}function Lse(){return{register:zne,getLanguages:Une,onLanguage:jne,getEncodedLanguageId:$ne,setLanguageConfiguration:Kne,setColorMap:Yne,registerTokensProviderFactory:NN,setTokensProvider:Qne,setMonarchTokensProvider:Xne,registerReferenceProvider:Jne,registerRenameProvider:ese,registerCompletionItemProvider:pse,registerSignatureHelpProvider:tse,registerHoverProvider:ise,registerDocumentSymbolProvider:nse,registerDocumentHighlightProvider:sse,registerLinkedEditingRangeProvider:ose,registerDefinitionProvider:rse,registerImplementationProvider:ase,registerTypeDefinitionProvider:lse,registerCodeLensProvider:cse,registerCodeActionProvider:dse,registerDocumentFormattingEditProvider:hse,registerDocumentRangeFormattingEditProvider:use,registerOnTypeFormattingEditProvider:gse,registerLinkProvider:fse,registerColorProvider:mse,registerFoldingRangeProvider:_se,registerDeclarationProvider:bse,registerSelectionRangeProvider:vse,registerDocumentSemanticTokensProvider:Cse,registerDocumentRangeSemanticTokensProvider:wse,registerInlineCompletionsProvider:Sse,registerInlayHintsProvider:yse,DocumentHighlightKind:dD,CompletionItemKind:sD,CompletionItemTag:oD,CompletionItemInsertTextRule:Fv,SymbolKind:AD,SymbolTag:RD,IndentAction:pD,CompletionTriggerKind:rD,SignatureHelpTriggerKind:MD,InlayHintKind:_D,InlineCompletionTriggerKind:bD,CodeActionTriggerType:nD,FoldingRangeKind:vr}}const MN=Je("IEditorCancelService"),$7=new ce("cancellableOperation",!1,f("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));ot(MN,class{constructor(){this._tokens=new WeakMap}add(o,e){let t=this._tokens.get(o);t||(t=o.invokeWithinContext(n=>{const s=$7.bindTo(n.get(Ee)),r=new ln;return{key:s,tokens:r}}),this._tokens.set(o,t));let i;return t.key.set(!0),i=t.tokens.push(e),()=>{i&&(i(),t.key.set(!t.tokens.isEmpty()),i=void 0)}}cancel(o){const e=this._tokens.get(o);if(!e)return;const t=e.tokens.pop();t&&(t.cancel(),e.key.set(!e.tokens.isEmpty()))}},1);class Dse extends Xi{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(i=>i.get(MN).add(e,this))}dispose(){this._unregister(),super.dispose()}}ie(new class extends Ji{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:$7})}runEditorCommand(o,e){o.get(MN).cancel(e)}});let j7=class Kk{constructor(e,t){if(this.flags=t,this.flags&1){const i=e.getModel();this.modelVersionId=i?to("{0}#{1}",i.uri.toString(),i.getVersionId()):null}else this.modelVersionId=null;this.flags&4?this.position=e.getPosition():this.position=null,this.flags&2?this.selection=e.getSelection():this.selection=null,this.flags&8?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof Kk))return!1;const t=e;return!(this.modelVersionId!==t.modelVersionId||this.scrollLeft!==t.scrollLeft||this.scrollTop!==t.scrollTop||!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position)||!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))}validate(e){return this._equals(new Kk(e,this.flags))}};class Sh extends Dse{constructor(e,t,i,n){super(e,n),this._listener=new Z,t&4&&this._listener.add(e.onDidChangeCursorPosition(s=>{(!i||!y.containsPosition(i,s.position))&&this.cancel()})),t&2&&this._listener.add(e.onDidChangeCursorSelection(s=>{(!i||!y.containsRange(i,s.selection))&&this.cancel()})),t&8&&this._listener.add(e.onDidScrollChange(s=>this.cancel())),t&1&&(this._listener.add(e.onDidChangeModel(s=>this.cancel())),this._listener.add(e.onDidChangeModelContent(s=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class AN extends Xi{constructor(e,t){super(t),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}function La(o){return o&&typeof o.getEditorType=="function"?o.getEditorType()===U_.ICodeEditor:!1}function K7(o){return o&&typeof o.getEditorType=="function"?o.getEditorType()===U_.IDiffEditor:!1}function xse(o){return!!o&&typeof o=="object"&&typeof o.onDidChangeActiveEditor=="function"}function q7(o){return La(o)?o:K7(o)?o.getModifiedEditor():xse(o)&&La(o.activeCodeEditor)?o.activeCodeEditor:null}class nf{static _handleEolEdits(e,t){let i;const n=[];for(const s of t)typeof s.eol=="number"&&(i=s.eol),s.range&&typeof s.text=="string"&&n.push(s);return typeof i=="number"&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const n=Ca.capture(e),s=nf._handleEolEdits(e,t);s.length===1&&nf._isFullModelReplaceEdit(e,s[0])?e.executeEdits("formatEditsCommand",s.map(r=>Wt.replace(y.lift(r.range),r.text))):e.executeEdits("formatEditsCommand",s.map(r=>Wt.replaceMove(y.lift(r.range),r.text))),i&&e.pushUndoStop(),n.restoreRelativeVerticalPositionOfCursor(e)}}class eL{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}var Lr=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function RN(o){if(o=o.filter(n=>n.range),!o.length)return;let{range:e}=o[0];for(let n=1;n0&&y.areIntersectingOrTouching(c[d-1],m)?c[d-1]=y.fromPositions(c[d-1].getStartPosition(),m.getEndPosition()):d=c.push(m);const h=m=>Lr(this,void 0,void 0,function*(){var _,v;r.trace("[format][provideDocumentRangeFormattingEdits] (request)",(_=e.extensionId)===null||_===void 0?void 0:_.value,m);const b=(yield e.provideDocumentRangeFormattingEdits(a,m,a.getFormattingOptions(),l.token))||[];return r.trace("[format][provideDocumentRangeFormattingEdits] (response)",(v=e.extensionId)===null||v===void 0?void 0:v.value,b),b}),u=(m,_)=>{if(!m.length||!_.length)return!1;const v=m.reduce((b,C)=>y.plusRange(b,C.range),m[0].range);if(!_.some(b=>y.intersectRanges(v,b.range)))return!1;for(const b of m)for(const C of _)if(y.intersectRanges(b.range,C.range))return!0;return!1},g=[],p=[];try{for(const m of c){if(l.token.isCancellationRequested)return!0;p.push(yield h(m))}for(let m=0;m({text:v.text,range:y.lift(v.range),forceMoveMarkers:!0})),v=>{for(const{range:b}of v)if(y.areIntersectingOrTouching(b,_))return[new he(b.startLineNumber,b.startColumn,b.endLineNumber,b.endColumn)];return null})}return!0})}function Ise(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=o.get(Me),r=o.get(ge),a=La(e)?e.getModel():e,l=G7(r.documentFormattingEditProvider,r.documentRangeFormattingEditProvider,a),c=yield yh.select(l,a,t);c&&(i.report(c),yield s.invokeFunction(Ese,c,e,t,n))})}function Ese(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=o.get($o);let r,a;La(t)?(r=t.getModel(),a=new Sh(t,5,void 0,n)):(r=t,a=new AN(t,n));let l;try{const c=yield e.provideDocumentFormattingEdits(r,r.getFormattingOptions(),a.token);if(l=yield s.computeMoreMinimalEdits(r.uri,c),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!l||l.length===0)return!1;if(La(t))nf.execute(t,l,i!==2),i!==2&&(RN(l),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1));else{const[{range:c}]=l,d=new he(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn);r.pushEditOperations([d],l.map(h=>({text:h.text,range:y.lift(h.range),forceMoveMarkers:!0})),h=>{for(const{range:u}of h)if(y.areIntersectingOrTouching(u,d))return[new he(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn)];return null})}return!0})}function Tse(o,e,t,i,n,s){return Lr(this,void 0,void 0,function*(){const r=e.documentRangeFormattingEditProvider.ordered(t);for(const a of r){const l=yield Promise.resolve(a.provideDocumentRangeFormattingEdits(t,i,n,s)).catch(Vi);if(Cn(l))return yield o.computeMoreMinimalEdits(t.uri,l)}})}function Nse(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=G7(e.documentFormattingEditProvider,e.documentRangeFormattingEditProvider,t);for(const r of s){const a=yield Promise.resolve(r.provideDocumentFormattingEdits(t,i,n)).catch(Vi);if(Cn(a))return yield o.computeMoreMinimalEdits(t.uri,a)}})}function Y7(o,e,t,i,n,s,r){const a=e.onTypeFormattingEditProvider.ordered(t);return a.length===0||a[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(t,i,n,s,r)).catch(Vi).then(l=>o.computeMoreMinimalEdits(t.uri,l))}st.registerCommand("_executeFormatRangeProvider",function(o,...e){return Lr(this,void 0,void 0,function*(){const[t,i,n]=e;_t(Ce.isUri(t)),_t(y.isIRange(i));const s=o.get(os),r=o.get($o),a=o.get(ge),l=yield s.createModelReference(t);try{return Tse(r,a,l.object.textEditorModel,y.lift(i),n,Ye.None)}finally{l.dispose()}})});st.registerCommand("_executeFormatDocumentProvider",function(o,...e){return Lr(this,void 0,void 0,function*(){const[t,i]=e;_t(Ce.isUri(t));const n=o.get(os),s=o.get($o),r=o.get(ge),a=yield n.createModelReference(t);try{return Nse(s,r,a.object.textEditorModel,i,Ye.None)}finally{a.dispose()}})});st.registerCommand("_executeFormatOnTypeProvider",function(o,...e){return Lr(this,void 0,void 0,function*(){const[t,i,n,s]=e;_t(Ce.isUri(t)),_t(W.isIPosition(i)),_t(typeof n=="string");const r=o.get(os),a=o.get($o),l=o.get(ge),c=yield r.createModelReference(t);try{return Y7(a,l,c.object.textEditorModel,W.lift(i),n,s,Ye.None)}finally{c.dispose()}})});var tL;Dr.wrappingIndent.defaultValue=0;Dr.glyphMargin.defaultValue=!1;Dr.autoIndent.defaultValue=3;Dr.overviewRulerLanes.defaultValue=2;yh.setFormatterSelector((o,e,t)=>Promise.resolve(o[0]));const zn=U4();zn.editor=Pne();zn.languages=Lse();const Q7=zn.CancellationTokenSource,X7=zn.Emitter,J7=zn.KeyCode,e8=zn.KeyMod,t8=zn.Position,i8=zn.Range,n8=zn.Selection,s8=zn.SelectionDirection,o8=zn.MarkerSeverity,r8=zn.MarkerTag,a8=zn.Uri,l8=zn.Token,ja=zn.editor,PN=zn.languages;(!((tL=di.MonacoEnvironment)===null||tL===void 0)&&tL.globalAPI||typeof define=="function"&&define.amd)&&(self.monaco=zn);typeof self.require<"u"&&typeof self.require.config=="function"&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});const lb=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:Q7,Emitter:X7,KeyCode:J7,KeyMod:e8,MarkerSeverity:o8,MarkerTag:r8,Position:t8,Range:i8,Selection:n8,SelectionDirection:s8,Token:l8,Uri:a8,editor:ja,languages:PN},Symbol.toStringTag,{value:"Module"}));var Mse=Object.defineProperty,Ase=Object.getOwnPropertyDescriptor,Rse=Object.getOwnPropertyNames,Pse=Object.prototype.hasOwnProperty,MP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Rse(e))!Pse.call(o,n)&&n!==t&&Mse(o,n,{get:()=>e[n],enumerable:!(i=Ase(e,n))||i.enumerable});return o},Ose=(o,e,t)=>(MP(o,e,"default"),t&&MP(t,e,"default")),Pp={};Ose(Pp,lb);var c8={},iL={},d8=class{constructor(o){Zt(this,"_languageId");Zt(this,"_loadingTriggered");Zt(this,"_lazyLoadPromise");Zt(this,"_lazyLoadPromiseResolve");Zt(this,"_lazyLoadPromiseReject");this._languageId=o,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(o){return iL[o]||(iL[o]=new d8(o)),iL[o]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,c8[this._languageId].loader().then(o=>this._lazyLoadPromiseResolve(o),o=>this._lazyLoadPromiseReject(o))),this._lazyLoadPromise}};function be(o){const e=o.id;c8[e]=o,Pp.languages.register(o);const t=d8.getOrCreate(e);Pp.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),Pp.languages.onLanguage(e,async()=>{const i=await t.load();Pp.languages.setLanguageConfiguration(e,i.conf)})}be({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>me(()=>import("./abap-ffbe9c82.js"),[])});be({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>me(()=>import("./apex-38989e74.js"),[])});be({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>me(()=>import("./azcli-714c239b.js"),[])});be({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>me(()=>import("./bat-7eb152e5.js"),[])});be({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>me(()=>import("./bicep-80731f71.js"),[])});be({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>me(()=>import("./cameligo-91a865e0.js"),[])});be({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>me(()=>import("./clojure-7e0f8eaa.js"),[])});be({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>me(()=>import("./coffee-af1c6ca9.js"),[])});be({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>me(()=>import("./cpp-2a429e6c.js"),[])});be({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>me(()=>import("./cpp-2a429e6c.js"),[])});be({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>me(()=>import("./csharp-d087d64c.js"),[])});be({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>me(()=>import("./csp-13ea92a6.js"),[])});be({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>me(()=>import("./css-1949305a.js"),[])});be({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>me(()=>import("./cypher-e148524e.js"),[])});be({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>me(()=>import("./dart-0a096fe0.js"),[])});be({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>me(()=>import("./dockerfile-af4eb422.js"),[])});be({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>me(()=>import("./ecl-8f5b983c.js"),[])});be({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>me(()=>import("./elixir-4b853ea7.js"),[])});be({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>me(()=>import("./flow9-47a350b0.js"),[])});be({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>me(()=>import("./fsharp-de5183ae.js"),[])});be({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>me(()=>import("./freemarker2-c9252b5a.js"),["assets/freemarker2-c9252b5a.js","assets/index-1dff6785.js","assets/index-015d7a00.css"]).then(o=>o.TagAutoInterpolationDollar)});be({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>me(()=>import("./freemarker2-c9252b5a.js"),["assets/freemarker2-c9252b5a.js","assets/index-1dff6785.js","assets/index-015d7a00.css"]).then(o=>o.TagAngleInterpolationDollar)});be({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>me(()=>import("./freemarker2-c9252b5a.js"),["assets/freemarker2-c9252b5a.js","assets/index-1dff6785.js","assets/index-015d7a00.css"]).then(o=>o.TagBracketInterpolationDollar)});be({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>me(()=>import("./freemarker2-c9252b5a.js"),["assets/freemarker2-c9252b5a.js","assets/index-1dff6785.js","assets/index-015d7a00.css"]).then(o=>o.TagAngleInterpolationBracket)});be({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>me(()=>import("./freemarker2-c9252b5a.js"),["assets/freemarker2-c9252b5a.js","assets/index-1dff6785.js","assets/index-015d7a00.css"]).then(o=>o.TagBracketInterpolationBracket)});be({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>me(()=>import("./freemarker2-c9252b5a.js"),["assets/freemarker2-c9252b5a.js","assets/index-1dff6785.js","assets/index-015d7a00.css"]).then(o=>o.TagAutoInterpolationDollar)});be({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>me(()=>import("./freemarker2-c9252b5a.js"),["assets/freemarker2-c9252b5a.js","assets/index-1dff6785.js","assets/index-015d7a00.css"]).then(o=>o.TagAutoInterpolationBracket)});be({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>me(()=>import("./go-a9169306.js"),[])});be({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>me(()=>import("./graphql-e84c0b6e.js"),[])});be({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>me(()=>import("./handlebars-bc0c539b.js"),["assets/handlebars-bc0c539b.js","assets/index-1dff6785.js","assets/index-015d7a00.css"])});be({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>me(()=>import("./hcl-3a006f6b.js"),[])});be({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>me(()=>import("./html-c7a0cc22.js"),["assets/html-c7a0cc22.js","assets/index-1dff6785.js","assets/index-015d7a00.css"])});be({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>me(()=>import("./ini-53b87513.js"),[])});be({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>me(()=>import("./java-58c1a618.js"),[])});be({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>me(()=>import("./javascript-0e2f15f8.js"),["assets/javascript-0e2f15f8.js","assets/typescript-346cf81a.js","assets/index-1dff6785.js","assets/index-015d7a00.css"])});be({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>me(()=>import("./julia-5f2fc018.js"),[])});be({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>me(()=>import("./kotlin-2e32535a.js"),[])});be({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>me(()=>import("./less-4cb00c13.js"),[])});be({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>me(()=>import("./lexon-22a22ba3.js"),[])});be({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>me(()=>import("./lua-04a273a9.js"),[])});be({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>me(()=>import("./liquid-db33d9e0.js"),["assets/liquid-db33d9e0.js","assets/index-1dff6785.js","assets/index-015d7a00.css"])});be({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>me(()=>import("./m3-b6e0b0fd.js"),[])});be({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>me(()=>import("./markdown-a4831c3f.js"),[])});be({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>me(()=>import("./mips-daa25bd4.js"),[])});be({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>me(()=>import("./msdax-c6fa6f2f.js"),[])});be({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>me(()=>import("./mysql-753a9662.js"),[])});be({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>me(()=>import("./objective-c-9e968999.js"),[])});be({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>me(()=>import("./pascal-e017ea4d.js"),[])});be({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>me(()=>import("./pascaligo-bf7e3de8.js"),[])});be({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>me(()=>import("./perl-2762c71f.js"),[])});be({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>me(()=>import("./pgsql-1566d400.js"),[])});be({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>me(()=>import("./php-df365951.js"),[])});be({id:"pla",extensions:[".pla"],loader:()=>me(()=>import("./pla-6c133053.js"),[])});be({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>me(()=>import("./postiats-b245e70f.js"),[])});be({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>me(()=>import("./powerquery-6b7a9cc4.js"),[])});be({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>me(()=>import("./powershell-50bb8773.js"),[])});be({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>me(()=>import("./protobuf-c49b6d53.js"),[])});be({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>me(()=>import("./pug-409e523c.js"),[])});be({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>me(()=>import("./python-18c11ebb.js"),["assets/python-18c11ebb.js","assets/index-1dff6785.js","assets/index-015d7a00.css"])});be({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>me(()=>import("./qsharp-8d792318.js"),[])});be({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>me(()=>import("./r-c34a576e.js"),[])});be({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>me(()=>import("./razor-562e72e5.js"),["assets/razor-562e72e5.js","assets/index-1dff6785.js","assets/index-015d7a00.css"])});be({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>me(()=>import("./redis-1a5ba628.js"),[])});be({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>me(()=>import("./redshift-39be2a89.js"),[])});be({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>me(()=>import("./restructuredtext-4a10ef1d.js"),[])});be({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>me(()=>import("./ruby-944f56a1.js"),[])});be({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>me(()=>import("./rust-b0440aa9.js"),[])});be({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>me(()=>import("./sb-f3b34295.js"),[])});be({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>me(()=>import("./scala-7c17b334.js"),[])});be({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>me(()=>import("./scheme-f75b8a9a.js"),[])});be({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>me(()=>import("./scss-0b143c7e.js"),[])});be({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>me(()=>import("./shell-fe999acd.js"),[])});be({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>me(()=>import("./solidity-62f35cba.js"),[])});be({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>me(()=>import("./sophia-94cd0024.js"),[])});be({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>me(()=>import("./sparql-23f0115e.js"),[])});be({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>me(()=>import("./sql-9ac813b8.js"),[])});be({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>me(()=>import("./st-4d0d15a1.js"),[])});be({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>me(()=>import("./swift-bc5aaa52.js"),[])});be({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>me(()=>import("./systemverilog-416dd7b8.js"),[])});be({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>me(()=>import("./systemverilog-416dd7b8.js"),[])});be({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>me(()=>import("./tcl-838585b9.js"),[])});be({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>me(()=>import("./twig-1b470482.js"),[])});be({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>me(()=>import("./typescript-346cf81a.js"),["assets/typescript-346cf81a.js","assets/index-1dff6785.js","assets/index-015d7a00.css"])});be({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>me(()=>import("./vb-2f676a0c.js"),[])});be({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\me(()=>import("./xml-6491c8d8.js"),["assets/xml-6491c8d8.js","assets/index-1dff6785.js","assets/index-015d7a00.css"])});be({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>me(()=>import("./yaml-745200cc.js"),["assets/yaml-745200cc.js","assets/index-1dff6785.js","assets/index-015d7a00.css"])});var Fse=Object.defineProperty,Bse=Object.getOwnPropertyDescriptor,Wse=Object.getOwnPropertyNames,Vse=Object.prototype.hasOwnProperty,AP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Wse(e))!Vse.call(o,n)&&n!==t&&Fse(o,n,{get:()=>e[n],enumerable:!(i=Bse(e,n))||i.enumerable});return o},Hse=(o,e,t)=>(AP(o,e,"default"),t&&AP(t,e,"default")),Tf={};Hse(Tf,lb);var ON=class{constructor(e,t,i){Zt(this,"_onDidChange",new Tf.Emitter);Zt(this,"_options");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},FN={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},BN={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},h8=new ON("css",FN,BN),u8=new ON("scss",FN,BN),g8=new ON("less",FN,BN);Tf.languages.css={cssDefaults:h8,lessDefaults:g8,scssDefaults:u8};function WN(){return me(()=>import("./cssMode-dcf8258c.js"),["assets/cssMode-dcf8258c.js","assets/index-1dff6785.js","assets/index-015d7a00.css"])}Tf.languages.onLanguage("less",()=>{WN().then(o=>o.setupMode(g8))});Tf.languages.onLanguage("scss",()=>{WN().then(o=>o.setupMode(u8))});Tf.languages.onLanguage("css",()=>{WN().then(o=>o.setupMode(h8))});var zse=Object.defineProperty,Use=Object.getOwnPropertyDescriptor,$se=Object.getOwnPropertyNames,jse=Object.prototype.hasOwnProperty,RP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of $se(e))!jse.call(o,n)&&n!==t&&zse(o,n,{get:()=>e[n],enumerable:!(i=Use(e,n))||i.enumerable});return o},Kse=(o,e,t)=>(RP(o,e,"default"),t&&RP(t,e,"default")),Rw={};Kse(Rw,lb);var qse=class{constructor(e,t,i){Zt(this,"_onDidChange",new Rw.Emitter);Zt(this,"_options");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Gse={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},Pw={format:Gse,suggest:{},data:{useDefaultDataProvider:!0}};function Ow(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===hm,documentFormattingEdits:o===hm,documentRangeFormattingEdits:o===hm}}var hm="html",PP="handlebars",OP="razor",f8=Fw(hm,Pw,Ow(hm)),Zse=f8.defaults,p8=Fw(PP,Pw,Ow(PP)),Yse=p8.defaults,m8=Fw(OP,Pw,Ow(OP)),Qse=m8.defaults;Rw.languages.html={htmlDefaults:Zse,razorDefaults:Qse,handlebarDefaults:Yse,htmlLanguageService:f8,handlebarLanguageService:p8,razorLanguageService:m8,registerHTMLLanguageService:Fw};function Xse(){return me(()=>import("./htmlMode-4a192f0e.js"),["assets/htmlMode-4a192f0e.js","assets/index-1dff6785.js","assets/index-015d7a00.css"])}function Fw(o,e=Pw,t=Ow(o)){const i=new qse(o,e,t);let n;const s=Rw.languages.onLanguage(o,async()=>{n=(await Xse()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}var Jse=Object.defineProperty,eoe=Object.getOwnPropertyDescriptor,toe=Object.getOwnPropertyNames,ioe=Object.prototype.hasOwnProperty,FP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of toe(e))!ioe.call(o,n)&&n!==t&&Jse(o,n,{get:()=>e[n],enumerable:!(i=eoe(e,n))||i.enumerable});return o},noe=(o,e,t)=>(FP(o,e,"default"),t&&FP(t,e,"default")),cb={};noe(cb,lb);var soe=class{constructor(e,t,i){Zt(this,"_onDidChange",new cb.Emitter);Zt(this,"_diagnosticsOptions");Zt(this,"_modeConfiguration");Zt(this,"_languageId");this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},ooe={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},roe={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},_8=new soe("json",ooe,roe);cb.languages.json={jsonDefaults:_8};function aoe(){return me(()=>import("./jsonMode-6e1721bb.js"),["assets/jsonMode-6e1721bb.js","assets/index-1dff6785.js","assets/index-015d7a00.css"])}cb.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});cb.languages.onLanguage("json",()=>{aoe().then(o=>o.setupMode(_8))});var loe=Object.defineProperty,coe=Object.getOwnPropertyDescriptor,doe=Object.getOwnPropertyNames,hoe=Object.prototype.hasOwnProperty,BP=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of doe(e))!hoe.call(o,n)&&n!==t&&loe(o,n,{get:()=>e[n],enumerable:!(i=coe(e,n))||i.enumerable});return o},uoe=(o,e,t)=>(BP(o,e,"default"),t&&BP(t,e,"default")),goe="4.5.5",sf={};uoe(sf,lb);var b8=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(b8||{}),v8=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(v8||{}),C8=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(C8||{}),w8=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(w8||{}),S8=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(S8||{}),y8=class{constructor(o,e,t,i,n){Zt(this,"_onDidChange",new sf.Emitter);Zt(this,"_onDidExtraLibsChange",new sf.Emitter);Zt(this,"_extraLibs");Zt(this,"_removedExtraLibs");Zt(this,"_eagerModelSync");Zt(this,"_compilerOptions");Zt(this,"_diagnosticsOptions");Zt(this,"_workerOptions");Zt(this,"_onDidExtraLibsChangeTimeout");Zt(this,"_inlayHintsOptions");Zt(this,"_modeConfiguration");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(o,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(void 0)}},foe=goe,L8={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},D8=new y8({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},L8),x8=new y8({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},L8),poe=()=>Bw().then(o=>o.getTypeScriptWorker()),moe=()=>Bw().then(o=>o.getJavaScriptWorker());sf.languages.typescript={ModuleKind:b8,JsxEmit:v8,NewLineKind:C8,ScriptTarget:w8,ModuleResolutionKind:S8,typescriptVersion:foe,typescriptDefaults:D8,javascriptDefaults:x8,getTypeScriptWorker:poe,getJavaScriptWorker:moe};function Bw(){return me(()=>import("./tsMode-8396ad24.js"),["assets/tsMode-8396ad24.js","assets/index-1dff6785.js","assets/index-015d7a00.css"])}sf.languages.onLanguage("typescript",()=>Bw().then(o=>o.setupTypeScript(D8)));sf.languages.onLanguage("javascript",()=>Bw().then(o=>o.setupJavaScript(x8)));var _oe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},boe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Ww=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Vw=new ce("selectionAnchorSet",!1);let yl=class k8{static get(e){return e.getContribution(k8.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=Vw.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(he.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new Yn().appendText(f("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),cn(f("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(he.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};yl.ID="editor.contrib.selectionAnchorController";yl=_oe([boe(1,Ee)],yl);class voe extends de{constructor(){super({id:"editor.action.setSelectionAnchor",label:f("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:ki(2089,2080),weight:100}})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class Coe extends de{constructor(){super({id:"editor.action.goToSelectionAnchor",label:f("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:Vw})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class woe extends de{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:f("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:Vw,kbOpts:{kbExpr:N.editorTextFocus,primary:ki(2089,2089),weight:100}})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class Soe extends de{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:f("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:Vw,kbOpts:{kbExpr:N.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return Ww(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}lt(yl.ID,yl,4);J(voe);J(Coe);J(woe);J(Soe);const yoe=M("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},f("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Loe extends de{constructor(){super({id:"editor.action.jumpToBracket",label:f("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:3160,weight:100}})}run(e,t){var i;(i=br.get(t))===null||i===void 0||i.jumpToBracket()}}class Doe extends de{constructor(){super({id:"editor.action.selectToBracket",label:f("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&i.selectBrackets===!1&&(s=!1),(n=br.get(t))===null||n===void 0||n.selectToBracket(s)}}class xoe{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class br extends U{static get(e){return e.getContribution(br.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new wt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(68),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(68)&&(this._matchBrackets=this._editor.getOption(68),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new he(r.lineNumber,r.column,r.lineNumber,r.column):new he(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const c=t.bracketPairs.findNextBracket(s);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(y.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new he(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let h=0,u=e.length;h1&&s.sort(W.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=s.length;h0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}J(Toe);var Noe=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Lh="9_cutcopypaste",Moe=ur||document.queryCommandSupported("cut"),E8=ur||document.queryCommandSupported("copy"),Aoe=typeof navigator.clipboard>"u"||ro?document.queryCommandSupported("paste"):!0;function VN(o){return o.register(),o}const Roe=Moe?VN(new yf({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:ur?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:f({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:T.EditorContext,group:Lh,title:f("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1},{menuId:T.CommandPalette,group:"",title:f("actions.clipboard.cutLabel","Cut"),order:1},{menuId:T.SimpleEditorContext,group:Lh,title:f("actions.clipboard.cutLabel","Cut"),when:N.writable,order:1}]})):void 0,Poe=E8?VN(new yf({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:ur?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:f({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:T.EditorContext,group:Lh,title:f("actions.clipboard.copyLabel","Copy"),order:2},{menuId:T.CommandPalette,group:"",title:f("actions.clipboard.copyLabel","Copy"),order:1},{menuId:T.SimpleEditorContext,group:Lh,title:f("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;Jn.appendMenuItem(T.MenubarEditMenu,{submenu:T.MenubarCopy,title:{value:f("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});Jn.appendMenuItem(T.EditorContext,{submenu:T.EditorContextCopy,title:{value:f("copy as","Copy As"),original:"Copy As"},group:Lh,order:3});Jn.appendMenuItem(T.EditorContext,{submenu:T.EditorContextShare,title:{value:f("share","Share"),original:"Share"},group:"11_share",order:-1});const nL=Aoe?VN(new yf({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:ur?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:f({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:T.EditorContext,group:Lh,title:f("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4},{menuId:T.CommandPalette,group:"",title:f("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:T.SimpleEditorContext,group:Lh,title:f("actions.clipboard.pasteLabel","Paste"),when:N.writable,order:4}]})):void 0;class Ooe extends de{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:f("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(34)&&t.getSelection().isEmpty()||(_x.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),_x.forceCopyWithSyntaxHighlighting=!1)}}function T8(o,e){o&&(o.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(ut).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const s=n.getOption(34),r=n.getSelection();return r&&r.isEmpty()&&!s||document.execCommand(e),!0}return!1}),o.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}T8(Roe,"cut");T8(Poe,"copy");nL&&(nL.addImplementation(1e4,"code-editor",(o,e)=>{const t=o.get(ut),i=o.get(Dl),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Kc?(()=>Noe(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=Bm.INSTANCE.get(r);let l=!1,c=null,d=null;a&&(l=n.getOption(34)&&!!a.isFromEmptySelection,c=typeof a.multicursorText<"u"?a.multicursorText:null,d=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:c,mode:d})}}))():!0:!1}),nL.addImplementation(0,"generic-dom",(o,e)=>(document.execCommand("paste"),!0)));E8&&J(Ooe);var Foe=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Te{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+Te.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new Te(this.value+Te.sep+e)}}Te.sep=".";Te.None=new Te("@@none@@");Te.Empty=new Te("");Te.QuickFix=new Te("quickfix");Te.Refactor=new Te("refactor");Te.RefactorExtract=Te.Refactor.append("extract");Te.RefactorInline=Te.Refactor.append("inline");Te.RefactorMove=Te.Refactor.append("move");Te.RefactorRewrite=Te.Refactor.append("rewrite");Te.Source=new Te("source");Te.SourceOrganizeImports=Te.Source.append("organizeImports");Te.SourceFixAll=Te.Source.append("fixAll");Te.SurroundWith=Te.Refactor.append("surround");var ns;(function(o){o.Refactor="refactor",o.RefactorPreview="refactor preview",o.Lightbulb="lightbulb",o.Default="other (default)",o.SourceAction="source action",o.QuickFix="quick fix action",o.FixAll="fix all",o.OrganizeImports="organize imports",o.AutoFix="auto fix",o.QuickFixHover="quick fix hover window",o.OnSave="save participants",o.ProblemsView="problems view"})(ns||(ns={}));function Boe(o,e){return!(o.include&&!o.include.intersects(e)||o.excludes&&o.excludes.some(t=>N8(e,t,o.include))||!o.includeSourceActions&&Te.Source.contains(e))}function Woe(o,e){const t=e.kind?new Te(e.kind):void 0;return!(o.include&&(!t||!o.include.contains(t))||o.excludes&&t&&o.excludes.some(i=>N8(t,i,o.include))||!o.includeSourceActions&&t&&Te.Source.contains(t)||o.onlyIncludePreferredActions&&!e.isPreferred)}function N8(o,e,t){return!(!e.contains(o)||t&&e.contains(t))}class Yr{static fromUser(e,t){return!e||typeof e!="object"?new Yr(t.kind,t.apply,!1):new Yr(Yr.getKindFromUser(e,t.kind),Yr.getApplyFromUser(e,t.apply),Yr.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new Te(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class Voe{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return Foe(this,void 0,void 0,function*(){if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Vi(n)}i&&(this.action.edit=i.edit)}return this})}}var t1=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const M8="editor.action.codeAction",A8="editor.action.refactor",Hoe="editor.action.refactor.preview",R8="editor.action.sourceAction",HN="editor.action.organizeImports",zN="editor.action.fixAll";class um extends U{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return Cn(e.diagnostics)?Cn(t.diagnostics)?um.codeActionsPreferredComparator(e,t):-1:Cn(t.diagnostics)?1:um.codeActionsPreferredComparator(e,t)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(um.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&Te.QuickFix.contains(new Te(e.kind))&&!!e.isPreferred)}}const WP={actions:[],documentation:void 0};function UN(o,e,t,i,n,s){var r;return t1(this,void 0,void 0,function*(){const a=i.filter||{},l={only:(r=a.include)===null||r===void 0?void 0:r.value,trigger:i.type},c=new AN(e,s),d=zoe(o,e,a),h=new Z,u=d.map(p=>t1(this,void 0,void 0,function*(){try{n.report(p);const m=yield p.provideCodeActions(e,t,l,c.token);if(m&&h.add(m),c.token.isCancellationRequested)return WP;const _=((m==null?void 0:m.actions)||[]).filter(b=>b&&Woe(a,b)),v=$oe(p,_,a.include);return{actions:_.map(b=>new Voe(b,p)),documentation:v}}catch(m){if(Da(m))throw m;return Vi(m),WP}})),g=o.onDidChange(()=>{const p=o.all(e);Bn(p,d)||c.cancel()});try{const p=yield Promise.all(u),m=p.map(v=>v.actions).flat(),_=[...mf(p.map(v=>v.documentation)),...Uoe(o,e,i,m)];return new um(m,_,h)}finally{g.dispose(),c.dispose()}})}function zoe(o,e,t){return o.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>Boe(t,new Te(n))):!0)}function*Uoe(o,e,t,i){var n,s,r;if(e&&i.length)for(const a of o.all(e))a._getAdditionalMenuItems&&(yield*(n=a._getAdditionalMenuItems)===null||n===void 0?void 0:n.call(a,{trigger:t.type,only:(r=(s=t.filter)===null||s===void 0?void 0:s.include)===null||r===void 0?void 0:r.value},i.map(l=>l.action)))}function $oe(o,e,t){if(!o.documentation)return;const i=o.documentation.map(n=>({kind:new Te(n.kind),command:n.command}));if(t){let n;for(const s of i)s.kind.contains(t)&&(n?n.kind.contains(s.kind)&&(n=s):n=s);if(n)return n==null?void 0:n.command}for(const n of e)if(n.kind){for(const s of i)if(s.kind.contains(new Te(n.kind)))return s.command}}var i1;(function(o){o.OnSave="onSave",o.FromProblemsView="fromProblemsView",o.FromCodeActions="fromCodeActions"})(i1||(i1={}));function joe(o,e,t,i,n=Ye.None){var s;return t1(this,void 0,void 0,function*(){const r=o.get(ib),a=o.get(ri),l=o.get(mo),c=o.get(_i);if(l.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred,reason:t}),yield e.resolve(n),!n.isCancellationRequested&&!(!((s=e.action.edit)===null||s===void 0)&&s.edits.length&&!(yield r.apply(e.action.edit,{editor:i==null?void 0:i.editor,label:e.action.title,quotableLabel:e.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:t!==i1.OnSave,showPreview:i==null?void 0:i.preview})).isApplied)&&e.action.command)try{yield a.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(d){const h=Koe(d);c.error(typeof h=="string"?h:f("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function Koe(o){return typeof o=="string"?o:o instanceof Error&&typeof o.message=="string"?o.message:void 0}st.registerCommand("_executeCodeActionProvider",function(o,e,t,i,n){return t1(this,void 0,void 0,function*(){if(!(e instanceof Ce))throw Po();const{codeActionProvider:s}=o.get(ge),r=o.get(jt).getModel(e);if(!r)throw Po();const a=he.isISelection(t)?he.liftSelection(t):y.isIRange(t)?r.validateRange(t):void 0;if(!a)throw Po();const l=typeof i=="string"?new Te(i):void 0,c=yield UN(s,r,a,{type:1,triggerAction:ns.Default,filter:{includeSourceActions:!0,include:l}},Qh.None,Ye.None),d=[],h=Math.min(c.validActions.length,typeof n=="number"?n:0);for(let u=0;uu.action)}finally{setTimeout(()=>c.dispose(),100)}})});var qoe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Goe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let n1=class P8{constructor(e){this.keybindingService=e}getResolver(){const e=new $h(()=>this.keybindingService.getKeybindings().filter(t=>P8.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===HN?i={kind:Te.SourceOrganizeImports.value}:t.command===zN&&(i={kind:Te.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Yr.fromUser(i,{kind:Te.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.value);return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new Te(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,s)=>n?n.kind.contains(s.kind)?s:n:s,void 0)}};n1.codeActionCommands=[A8,M8,R8,HN,zN];n1=qoe([Goe(0,ei)],n1);M("symbolIcon.arrayForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.booleanForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},f("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.colorForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.constantForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},f("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},f("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},f("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.fileForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.folderForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},f("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.keyForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.keywordForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},f("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.moduleForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.namespaceForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.nullForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.numberForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.objectForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.operatorForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.packageForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.propertyForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.referenceForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.snippetForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.stringForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.structForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.textForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.typeParameterForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.unitForeground",{dark:te,light:te,hcDark:te,hcLight:te},f("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));M("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},f("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));const O8=Object.freeze({kind:Te.Empty,title:f("codeAction.widget.id.more","More Actions...")}),Zoe=Object.freeze([{kind:Te.QuickFix,title:f("codeAction.widget.id.quickfix","Quick Fix...")},{kind:Te.RefactorExtract,title:f("codeAction.widget.id.extract","Extract..."),icon:se.wrench},{kind:Te.RefactorInline,title:f("codeAction.widget.id.inline","Inline..."),icon:se.wrench},{kind:Te.RefactorRewrite,title:f("codeAction.widget.id.convert","Rewrite..."),icon:se.wrench},{kind:Te.RefactorMove,title:f("codeAction.widget.id.move","Move..."),icon:se.wrench},{kind:Te.SurroundWith,title:f("codeAction.widget.id.surround","Surround With..."),icon:se.symbolSnippet},{kind:Te.Source,title:f("codeAction.widget.id.source","Source Action..."),icon:se.symbolFile},O8]);function Yoe(o,e,t){if(!e)return o.map(s=>({kind:"action",item:s,group:O8,disabled:!!s.action.disabled,label:s.action.disabled||s.action.title}));const i=Zoe.map(s=>({group:s,actions:[]}));for(const s of o){const r=s.action.kind?new Te(s.action.kind):Te.None;for(const a of i)if(a.group.kind.contains(r)){a.actions.push(s);break}}const n=[];for(const s of i)if(s.actions.length){n.push({kind:"header",group:s.group});for(const r of s.actions)n.push({kind:"action",item:r,group:s.group,label:r.action.title,disabled:!!r.action.disabled,keybinding:t(r.action)})}return n}var Qoe=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Xoe=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Cs=class qk{static get(e){return e.getContribution(qk.ID)}constructor(e,t){this._messageWidget=new wn,this._messageListeners=new Z,this._editor=e,this._visible=qk.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){cn(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new VP(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new fo(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new y(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(VP.fadeOut(this._messageWidget.value))}};Cs.ID="editor.contrib.messageController";Cs.MESSAGE_VISIBLE=new ce("messageVisible",!1,f("messageVisible","Whether the editor is currently showing an inline message"));Cs=Qoe([Xoe(1,Ee)],Cs);const Joe=Ji.bindToContribution(Cs.get);ie(new Joe({id:"leaveEditorMessage",precondition:Cs.MESSAGE_VISIBLE,handler:o=>o.closeMessage(),kbOpts:{weight:100+30,primary:9}}));let VP=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};lt(Cs.ID,Cs,4);var F8=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Gk=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const B8="acceptSelectedCodeAction",W8="previewSelectedCodeAction";class ere{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){var n,s;i.text.textContent=(s=(n=e.group)===null||n===void 0?void 0:n.title)!==null&&s!==void 0?s:""}disposeTemplate(e){}}let Zk=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");i.className="title",e.append(i);const n=new nb(e,Ps);return{container:e,icon:t,text:i,keybinding:n}}renderElement(e,t,i){var n,s,r;if(!((n=e.group)===null||n===void 0)&&n.icon?(i.icon.className=De.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=re(e.group.icon.color.id))):(i.icon.className=De.asClassName(se.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=V8(e.label),e.keybinding?(i.keybinding.set(e.keybinding),hs(i.keybinding.element)):On(i.keybinding.element);const a=(s=this._keybindingService.lookupKeybinding(B8))===null||s===void 0?void 0:s.getLabel(),l=(r=this._keybindingService.lookupKeybinding(W8))===null||r===void 0?void 0:r.getLabel();if(i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:a&&l?this._supportsPreview?i.container.title=f({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to apply, Shift+F2 to preview"']},"{0} to apply, {1} to preview",a,l):i.container.title=f({key:"label",comment:['placeholder is a keybinding, e.g "F2 to apply"']},"{0} to apply",a):i.container.title="",e.description){const c=new pl(q(i.container,X("span.label-description")));c.element.classList.add("action-list-description"),c.set(e.description)}}disposeTemplate(e){}};Zk=F8([Gk(1,ei)],Zk);class tre extends UIEvent{constructor(){super("acceptSelectedAction")}}class HP extends UIEvent{constructor(){super("previewSelectedAction")}}let Yk=class extends U{constructor(e,t,i,n,s,r){super(),this._delegate=n,this._contextViewService=s,this._keybindingService=r,this._actionLineHeight=24,this._headerLineHeight=26,this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const a={getHeight:l=>l.kind==="header"?this._headerLineHeight:this._actionLineHeight,getTemplateId:l=>l.kind};this._list=this._register(new Uo(e,this.domNode,a,[new Zk(t,this._keybindingService),new ere],{keyboardSupport:!1,accessibilityProvider:{getAriaLabel:l=>{if(l.kind==="action"){let c=l.label?V8(l==null?void 0:l.label):"";return l.disabled&&(c=f({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",c,l.disabled)),c}return null},getWidgetAriaLabel:()=>f({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:l=>l.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(If),this._register(this._list.onMouseClick(l=>this.onListClick(l))),this._register(this._list.onMouseOver(l=>this.onListHover(l))),this._register(this._list.onDidChangeFocus(()=>this._list.domFocus())),this._register(this._list.onDidChangeSelection(l=>this.onListSelection(l))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&e.kind==="action"}hide(e){this._delegate.onHide(e),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter(c=>c.kind==="header").length,n=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(n);const s=this._allMenuItems.map((c,d)=>{const h=document.getElementById(this._list.getElementID(d));if(h){h.style.width="auto";const u=h.getBoundingClientRect().width;return h.style.width="",u}return 0}),r=Math.max(...s,e),a=.7,l=Math.min(n,document.body.clientHeight*a);return this._list.layout(l,r),this.domNode.style.height=`${l}px`,this._list.domFocus(),r}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(t.length===0)return;const i=t[0],n=this._list.element(i);if(!this.focusCondition(n))return;const s=e?new HP:new tre;this._list.setSelection([i],s)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof HP):this._list.setSelection([])}onListHover(e){this._list.setFocus(typeof e.index=="number"?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};Yk=F8([Gk(4,xl),Gk(5,ei)],Yk);function V8(o){return o.replace(/\r\n|\r|\n/g," ")}var ire=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Dh={Visible:new ce("codeActionMenuVisible",!1,f("codeActionMenuVisible","Whether the action widget list is visible"))},tu=Je("actionWidgetService");let xh=class extends U{get isVisible(){return Dh.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new wn)}show(e,t,i,n,s,r,a){const l=Dh.Visible.bindTo(this._contextKeyService),c=this._instantiationService.createInstance(Yk,e,t,i,n);this._contextViewService.showContextView({getAnchor:()=>s,render:d=>(l.set(!0),this._renderWidget(d,c,a??[])),onHide:d=>{l.reset(),this._onWidgetClosed(d)}},r,!1)}acceptSelected(e){var t;(t=this._list.value)===null||t===void 0||t.acceptSelected(e)}focusPrevious(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusPrevious()}focusNext(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusNext()}hide(){var e;(e=this._list.value)===null||e===void 0||e.hide(),this._list.clear()}_renderWidget(e,t,i){var n;const s=document.createElement("div");if(s.classList.add("action-widget"),e.appendChild(s),this._list.value=t,this._list.value)s.appendChild(this._list.value.domNode);else throw new Error("List has no value");const r=new Z,a=document.createElement("div"),l=e.appendChild(a);l.classList.add("context-view-block"),r.add(K(l,ae.MOUSE_DOWN,p=>p.stopPropagation()));const c=document.createElement("div"),d=e.appendChild(c);d.classList.add("context-view-pointerBlock"),r.add(K(d,ae.POINTER_MOVE,()=>d.remove())),r.add(K(d,ae.MOUSE_DOWN,()=>d.remove()));let h=0;if(i.length){const p=this._createActionBar(".action-widget-action-bar",i);p&&(s.appendChild(p.getContainer().parentElement),r.add(p),h=p.getContainer().offsetWidth)}const u=(n=this._list.value)===null||n===void 0?void 0:n.layout(h);s.style.width=`${u}px`;const g=r.add(gh(e));return r.add(g.onDidBlur(()=>this.hide())),r}_createActionBar(e,t){if(!t.length)return;const i=X(e),n=new go(i);return n.push(t,{icon:!1,label:!0}),n}_onWidgetClosed(e){var t;(t=this._list.value)===null||t===void 0||t.hide(e)}};xh=ire([sL(0,xl),sL(1,Ee),sL(2,Me)],xh);ot(tu,xh,1);const db=100+1e3;Tn(class extends Yc{constructor(){super({id:"hideCodeActionWidget",title:{value:f("hideCodeActionWidget.title","Hide action widget"),original:"Hide action widget"},precondition:Dh.Visible,keybinding:{weight:db,primary:9,secondary:[1033]}})}run(o){o.get(tu).hide()}});Tn(class extends Yc{constructor(){super({id:"selectPrevCodeAction",title:{value:f("selectPrevCodeAction.title","Select previous action"),original:"Select previous action"},precondition:Dh.Visible,keybinding:{weight:db,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(o){const e=o.get(tu);e instanceof xh&&e.focusPrevious()}});Tn(class extends Yc{constructor(){super({id:"selectNextCodeAction",title:{value:f("selectNextCodeAction.title","Select next action"),original:"Select next action"},precondition:Dh.Visible,keybinding:{weight:db,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(o){const e=o.get(tu);e instanceof xh&&e.focusNext()}});Tn(class extends Yc{constructor(){super({id:B8,title:{value:f("acceptSelected.title","Accept selected action"),original:"Accept selected action"},precondition:Dh.Visible,keybinding:{weight:db,primary:3,secondary:[2132]}})}run(o){const e=o.get(tu);e instanceof xh&&e.acceptSelected()}});Tn(class extends Yc{constructor(){super({id:W8,title:{value:f("previewSelected.title","Preview selected action"),original:"Preview selected action"},precondition:Dh.Visible,keybinding:{weight:db,primary:2051}})}run(o){const e=o.get(tu);e instanceof xh&&e.acceptSelected(!0)}});var nre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sre=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},ng;(function(o){o.Hidden={type:0};class e{constructor(i,n,s,r){this.actions=i,this.trigger=n,this.editorPosition=s,this.widgetPosition=r,this.type=1}}o.Showing=e})(ng||(ng={}));let s1=class H8 extends U{constructor(e,t,i,n){super(),this._editor=e,this._onClick=this._register(new O),this.onClick=this._onClick.event,this._state=ng.Hidden,this._domNode=X("div.lightBulbWidget"),this._register(kt.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(s=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),this._register(JU(this._domNode,s=>{if(this.state.type!==1)return;this._editor.focus(),s.preventDefault();const{top:r,height:a}=Fi(this._domNode),l=this._editor.getOption(63);let c=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(s.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(s=>{s.hasChanged(61)&&!this._editor.getOption(61).enabled&&this.hide()})),this._register(_e.runAndSubscribe(n.onDidUpdateKeybindings,()=>{var s,r;this._preferredKbLabel=an((s=n.lookupKeybinding(i))===null||s===void 0?void 0:s.getLabel()),this._quickFixKbLabel=an((r=n.lookupKeybinding(t))===null||r===void 0?void 0:r.getLabel()),this._updateLightBulbTitleAndIcon()}))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(61).enabled)return this.hide();const s=this._editor.getModel();if(!s)return this.hide();const{lineNumber:r,column:a}=s.validatePosition(i),l=s.getOptions().tabSize,c=n.get(47),d=s.getLineContent(r),h=cw(d,l),u=c.spaceWidth*h>22,g=m=>m>2&&this._editor.getTopForLineNumber(m)===this._editor.getTopForLineNumber(m-1);let p=r;if(!u){if(r>1&&!g(r-1))p-=1;else if(!g(r+1))p+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new ng.Showing(e,t,i,{position:{lineNumber:p,column:1},preference:H8._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==ng.Hidden&&(this.state=ng.Hidden,this._editor.layoutContentWidget(this))}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix&&(this._domNode.classList.remove(...De.asClassNameArray(se.lightBulb)),this._domNode.classList.add(...De.asClassNameArray(se.lightbulbAutofix)),this._preferredKbLabel)){this.title=f("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel);return}this._domNode.classList.remove(...De.asClassNameArray(se.lightbulbAutofix)),this._domNode.classList.add(...De.asClassNameArray(se.lightBulb)),this._quickFixKbLabel?this.title=f("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):this.title=f("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};s1._posPref=[0];s1=nre([sre(3,ei)],s1);var ore=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},b0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},oL=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},rre=globalThis&&globalThis.__classPrivateFieldSet||function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},are=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},fv;let Qk=class extends U{constructor(e,t,i,n,s,r,a,l){super(),this._editor=e,this.delegate=n,this._configurationService=r,this._actionWidgetService=a,this._commandService=l,this._activeCodeActions=this._register(new wn),fv.set(this,!1),this._showDisabled=!1,this._lightBulbWidget=new $h(()=>{const c=this._register(s.createInstance(s1,this._editor,t,i));return this._register(c.onClick(d=>this.showCodeActionList(d.actions,d,{includeDisabledActions:!1,fromLightbulb:!0}))),c}),this._resolver=s.createInstance(n1),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){rre(this,fv,!0,"f"),super.dispose()}update(e){var t,i,n,s,r;return oL(this,void 0,void 0,function*(){if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let a;try{a=yield e.actions}catch(l){Oe(l);return}if(!are(this,fv,"f"))if(this._lightBulbWidget.value.update(a,e.trigger,e.position),e.trigger.type===1){if(!((i=e.trigger.filter)===null||i===void 0)&&i.include){const c=this.tryGetValidActionToApply(e.trigger,a);if(c){try{this._lightBulbWidget.value.hide(),yield this.delegate.applyCodeAction(c,!1,!1)}finally{a.dispose()}return}if(e.trigger.context){const d=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,a);if(d&&d.action.disabled){(n=Cs.get(this._editor))===null||n===void 0||n.showMessage(d.action.disabled,e.trigger.context.position),a.dispose();return}}}const l=!!(!((s=e.trigger.filter)===null||s===void 0)&&s.include);if(e.trigger.context&&(!a.allActions.length||!l&&!a.validActions.length)){(r=Cs.get(this._editor))===null||r===void 0||r.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=a,a.dispose();return}this._activeCodeActions.value=a,this.showCodeActionList(a,this.toCoords(e.position),{includeDisabledActions:l,fromLightbulb:!1})}else this._actionWidgetService.isVisible?a.dispose():this._activeCodeActions.value=a})}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length&&(e.autoApply==="first"&&t.validActions.length===0||e.autoApply==="ifSingle"&&t.allActions.length===1))return t.allActions.find(({action:i})=>i.disabled)}tryGetValidActionToApply(e,t){if(t.validActions.length&&(e.autoApply==="first"&&t.validActions.length>0||e.autoApply==="ifSingle"&&t.validActions.length===1))return t.validActions[0]}showCodeActionList(e,t,i){return oL(this,void 0,void 0,function*(){const n=this._editor.getDomNode();if(!n)return;const s=i.includeDisabledActions&&(this._showDisabled||e.validActions.length===0)?e.allActions:e.validActions;if(!s.length)return;const r=W.isIPosition(t)?this.toCoords(t):t,a={onSelect:(l,c)=>oL(this,void 0,void 0,function*(){this.delegate.applyCodeAction(l,!0,c||!1),this._actionWidgetService.hide()}),onHide:()=>{var l;(l=this._editor)===null||l===void 0||l.focus()}};this._actionWidgetService.show("codeActionWidget",!0,Yoe(s,this._shouldShowHeaders(),this._resolver.getResolver()),a,r,n,this._getActionBarActions(e,t,i))})}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=Fi(this._editor.getDomNode()),n=i.left+t.left,s=i.top+t.top+t.height;return{x:n,y:s}}_shouldShowHeaders(){var e;const t=(e=this._editor)===null||e===void 0?void 0:e.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:t==null?void 0:t.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const n=e.documentation.map(s=>{var r;return{id:s.id,label:s.title,tooltip:(r=s.tooltip)!==null&&r!==void 0?r:"",class:void 0,enabled:!0,run:()=>{var a;return this._commandService.executeCommand(s.id,...(a=s.commandArguments)!==null&&a!==void 0?a:[])}}});return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&n.push(this._showDisabled?{id:"hideMoreActions",label:f("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:f("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),n}};fv=new WeakMap;Qk=ore([b0(4,Me),b0(5,at),b0(6,tu),b0(7,ri)],Qk);var rL=globalThis&&globalThis.__classPrivateFieldGet||function(o,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(o):i?i.value:e.get(o)},lre=globalThis&&globalThis.__classPrivateFieldSet||function(o,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},Ru;const z8=new ce("supportedCodeAction","");class cre extends U{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new fo),this._register(this._markerService.onMarkerChanged(s=>this._onMarkerChanges(s))),this._register(this._editor.onDidChangeCursorPosition(()=>this._onCursorChange()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some(i=>LT(i,t.uri))&&this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:ns.Default})},this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:ns.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=this._editor.getSelection();if(i.isEmpty()&&e.type===2){const{lineNumber:n,column:s}=i.getPosition(),r=t.getLineContent(n);if(r.length===0)return;if(s===1){if(/\s/.test(r[0]))return}else if(s===t.getLineMaxColumn(n)){if(/\s/.test(r[r.length-1]))return}else if(/\s/.test(r[s-2])&&/\s/.test(r[s-1]))return}return i}_createEventAndSignalChange(e,t){const i=this._editor.getModel();if(!t||!i){this._signalChange(void 0);return}const n={trigger:e,selection:t,position:t.getStartPosition()};return this._signalChange(n),n}}var Rd;(function(o){o.Empty={type:0};class e{constructor(i,n,s,r){this.trigger=i,this.rangeOrSelection=n,this.position=s,this._cancellablePromise=r,this.type=1,this.actions=r.catch(a=>{if(Da(a))return dre;throw a})}cancel(){this._cancellablePromise.cancel()}}o.Triggered=e})(Rd||(Rd={}));const dre={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class hre extends U{constructor(e,t,i,n,s){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=s,this._codeActionOracle=this._register(new wn),this._state=Rd.Empty,this._onDidChangeState=this._register(new O),this.onDidChangeState=this._onDidChangeState.event,Ru.set(this,!1),this._supportedCodeActions=z8.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._update()}dispose(){rL(this,Ru,"f")||(lre(this,Ru,!0,"f"),super.dispose(),this.setState(Rd.Empty,!0))}_update(){if(rL(this,Ru,"f"))return;this._codeActionOracle.value=void 0,this.setState(Rd.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(86)){const t=[];for(const i of this._registry.all(e))Array.isArray(i.providedCodeActionKinds)&&t.push(...i.providedCodeActionKinds);this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new cre(this._editor,this._markerService,i=>{var n;if(!i){this.setState(Rd.Empty);return}const s=Wi(r=>UN(this._registry,e,i.selection,i.trigger,Qh.None,r));i.trigger.type===1&&((n=this._progressService)===null||n===void 0||n.showWhile(s,250)),this.setState(new Rd.Triggered(i.trigger,i.selection,i.position,s))},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:ns.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;(t=this._codeActionOracle.value)===null||t===void 0||t.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!rL(this,Ru,"f")&&this._onDidChangeState.fire(e))}}Ru=new WeakMap;var ure=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sp=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},gre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function hb(o){return oe.regex(z8.keys()[0],new RegExp("(\\s|^)"+Hs(o.value)+"\\b"))}function U8(o,e,t,i){const n=Yr.fromUser(e,{kind:Te.Refactor,apply:"never"});return iu(o,typeof(e==null?void 0:e.kind)=="string"?n.preferred?f("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",e.kind):f("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",e.kind):n.preferred?f("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):f("editor.action.refactor.noneMessage","No refactorings available"),{include:Te.Refactor.contains(n.kind)?n.kind:Te.None,onlyIncludePreferredActions:n.preferred},n.apply,t,i)}const Hw={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:f("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:f("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[f("args.schema.apply.first","Always apply the first returned code action."),f("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),f("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:f("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let kh=class $8 extends U{static get(e){return e.getContribution($8.ID)}constructor(e,t,i,n,s,r){super(),this._instantiationService=s,this._editor=e,this._model=this._register(new hre(this._editor,r.codeActionProvider,t,i,n)),this._register(this._model.onDidChangeState(a=>this.update(a))),this._ui=new $h(()=>this._register(s.createInstance(Qk,e,Nf.Id,ub.Id,{applyCodeAction:(a,l,c)=>gre(this,void 0,void 0,function*(){try{yield this._applyCodeAction(a,c)}finally{l&&this._trigger({type:2,triggerAction:ns.QuickFix,filter:{}})}})})))}update(e){this._ui.value.update(e)}showCodeActions(e,t,i){return this._ui.value.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,n,s){var r;if(!this._editor.hasModel())return;(r=Cs.get(this._editor))===null||r===void 0||r.closeMessage();const a=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:n,context:{notAvailableMessage:e,position:a},preview:s})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e,t){return this._instantiationService.invokeFunction(joe,e,i1.FromCodeActions,{preview:t,editor:this._editor})}};kh.ID="editor.contrib.codeActionController";kh=ure([sp(1,Na),sp(2,Ee),sp(3,ed),sp(4,Me),sp(5,ge)],kh);function iu(o,e,t,i,n=!1,s=ns.Default){if(o.hasModel()){const r=kh.get(o);r==null||r.manualTriggerAtCurrentPosition(e,s,t,i,n)}}class Nf extends de{constructor(){super({id:Nf.Id,label:f("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:2132,weight:100}})}run(e,t){return iu(t,f("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,!1,ns.QuickFix)}}Nf.Id="editor.action.quickFix";class fre extends Ji{constructor(){super({id:M8,precondition:oe.and(N.writable,N.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:Hw}]}})}runEditorCommand(e,t,i){const n=Yr.fromUser(i,{kind:Te.Empty,apply:"ifSingle"});return iu(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?f("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):f("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?f("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):f("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class pre extends de{constructor(){super({id:A8,label:f("refactor.label","Refactor..."),alias:"Refactor...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),kbOpts:{kbExpr:N.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:oe.and(N.writable,hb(Te.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:Hw}]}})}run(e,t,i){return U8(t,i,!1,ns.Refactor)}}class mre extends de{constructor(){super({id:Hoe,label:f("refactor.preview.label","Refactor with Preview..."),alias:"Refactor Preview...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),description:{description:"Refactor Preview...",args:[{name:"args",schema:Hw}]}})}run(e,t,i){return U8(t,i,!0,ns.RefactorPreview)}}class _re extends de{constructor(){super({id:R8,label:f("source.label","Source Action..."),alias:"Source Action...",precondition:oe.and(N.writable,N.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:oe.and(N.writable,hb(Te.Source))},description:{description:"Source Action...",args:[{name:"args",schema:Hw}]}})}run(e,t,i){const n=Yr.fromUser(i,{kind:Te.Source,apply:"never"});return iu(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?f("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):f("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?f("editor.action.source.noneMessage.preferred","No preferred source actions available"):f("editor.action.source.noneMessage","No source actions available"),{include:Te.Source.contains(n.kind)?n.kind:Te.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,void 0,ns.SourceAction)}}class bre extends de{constructor(){super({id:HN,label:f("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:oe.and(N.writable,hb(Te.SourceOrganizeImports)),kbOpts:{kbExpr:N.editorTextFocus,primary:1581,weight:100}})}run(e,t){return iu(t,f("editor.action.organize.noneMessage","No organize imports action available"),{include:Te.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",void 0,ns.OrganizeImports)}}class vre extends de{constructor(){super({id:zN,label:f("fixAll.label","Fix All"),alias:"Fix All",precondition:oe.and(N.writable,hb(Te.SourceFixAll))})}run(e,t){return iu(t,f("fixAll.noneMessage","No fix all action available"),{include:Te.SourceFixAll,includeSourceActions:!0},"ifSingle",void 0,ns.FixAll)}}class ub extends de{constructor(){super({id:ub.Id,label:f("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:oe.and(N.writable,hb(Te.QuickFix)),kbOpts:{kbExpr:N.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return iu(t,f("editor.action.autoFix.noneMessage","No auto fixes available"),{include:Te.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",void 0,ns.AutoFix)}}ub.Id="editor.action.autoFix";lt(kh.ID,kh,3);J(Nf);J(pre);J(mre);J(_re);J(bre);J(ub);J(vre);ie(new fre);$t.as(ka.Configuration).registerConfiguration(Object.assign(Object.assign({},eN),{properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:f("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}));var zP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Xk{constructor(){this.lenses=[],this._disposables=new Z}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}function j8(o,e,t){return zP(this,void 0,void 0,function*(){const i=o.ordered(e),n=new Map,s=new Xk,r=i.map((a,l)=>zP(this,void 0,void 0,function*(){n.set(a,l);try{const c=yield Promise.resolve(a.provideCodeLenses(e,t));c&&s.add(c,a)}catch(c){Vi(c)}}));return yield Promise.all(r),s.lenses=s.lenses.sort((a,l)=>a.symbol.range.startLineNumberl.symbol.range.startLineNumber?1:n.get(a.provider)n.get(l.provider)?1:a.symbol.range.startColumnl.symbol.range.startColumn?1:0),s})}st.registerCommand("_executeCodeLensProvider",function(o,...e){let[t,i]=e;_t(Ce.isUri(t)),_t(typeof i=="number"||!i);const{codeLensProvider:n}=o.get(ge),s=o.get(jt).getModel(t);if(!s)throw Po();const r=[],a=new Z;return j8(n,s,Ye.None).then(l=>{a.add(l);const c=[];for(const d of l.lenses)i==null||d.symbol.command?r.push(d.symbol):i-- >0&&d.provider.resolveCodeLens&&c.push(Promise.resolve(d.provider.resolveCodeLens(s,d.symbol,Ye.None)).then(h=>r.push(h||d.symbol)));return Promise.all(c)}).then(()=>r).finally(()=>{setTimeout(()=>a.dispose(),100)})});var Cre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},wre=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const K8=Je("ICodeLensCache");class UP{constructor(e,t){this.lineCount=e,this.data=t}}let Jk=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new Xc(20,.75);const t="codelens/cache";nl(()=>e.remove(t,1));const i="codelens/cache2",n=e.get(i,1,"{}");this._deserialize(n),pa(e.onWillSaveState)(s=>{s.reason===FC.SHUTDOWN&&e.store(i,this._serialize(),1,1)})}put(e,t){const i=t.lenses.map(r=>{var a;return{range:r.symbol.range,command:r.symbol.command&&{id:"",title:(a=r.symbol.command)===null||a===void 0?void 0:a.title}}}),n=new Xk;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const s=new UP(e.getLineCount(),n);this._cache.set(e.uri.toString(),s)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const n=new Set;for(const s of i.data.lenses)n.add(s.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const i in t){const n=t[i],s=[];for(const a of n.lines)s.push({range:new y(a,1,a,11)});const r=new Xk;r.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(i,new UP(n.lineCount,r))}}catch{}}};Jk=Cre([wre(0,jo)],Jk);ot(K8,Jk,1);class Sre{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class zw{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${zw._idPool++}`,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let n=!1;for(let s=0;s{c.symbol.command&&l.push(c.symbol),i.addDecoration({range:c.symbol.range,options:$P},h=>this._decorationIds[d]=h),a?a=y.plusRange(a,c.symbol.range):a=y.lift(c.symbol.range)}),this._viewZone=new Sre(a.startLineNumber-1,s,r),this._viewZoneId=n.addZone(this._viewZone),l.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(l,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new zw(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t==null||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!!(i&&y.isEmpty(n.range)===i.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((i,n)=>{t.addDecoration({range:i.symbol.range,options:$P},s=>this._decorationIds[n]=s)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},op=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},Lre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let of=class{constructor(e,t,i,n,s,r){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=s,this._codeLensCache=r,this._disposables=new Z,this._localToDispose=new Z,this._lenses=[],this._oldCodeLensModels=new Z,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new wt(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(a=>{(a.hasChanged(47)||a.hasChanged(16)||a.hasChanged(15))&&this._updateLensStyle(),a.hasChanged(14)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(e=this._currentCodeLensModel)===null||e===void 0||e.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(63)/this._editor.getOption(49));let t=this._editor.getOption(16);return(!t||t<5)&&(t=this._editor.getOption(49)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(15),n=this._editor.getOption(47),{style:s}=this._editor.getContainerDomNode();s.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),s.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),s.setProperty("--vscode-editorCodeLens-fontFeatureSettings",n.fontFeatureSettings),i&&(s.setProperty("--vscode-editorCodeLens-fontFamily",i),s.setProperty("--vscode-editorCodeLens-fontFamilyDefault",ps.fontFamily)),this._editor.changeViewZones(r=>{for(const a of this._lenses)a.updateHeight(e,r)})}_localDispose(){var e,t,i;(e=this._getCodeLensModelPromise)===null||e===void 0||e.cancel(),this._getCodeLensModelPromise=void 0,(t=this._resolveCodeLensesPromise)===null||t===void 0||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),(i=this._currentCodeLensModel)===null||i===void 0||i.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e||!this._editor.getOption(14))return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&this._localToDispose.add(dh(()=>{const n=this._codeLensCache.get(e);t===n&&(this._codeLensCache.delete(e),this._onModelChange())},30*1e3));return}for(const n of this._languageFeaturesService.codeLensProvider.all(e))if(typeof n.onDidChange=="function"){const s=n.onDidChange(()=>i.schedule());this._localToDispose.add(s)}const i=new wt(()=>{var n;const s=Date.now();(n=this._getCodeLensModelPromise)===null||n===void 0||n.cancel(),this._getCodeLensModelPromise=Wi(r=>j8(this._languageFeaturesService.codeLensProvider,e,r)),this._getCodeLensModelPromise.then(r=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=r,this._codeLensCache.put(e,r);const a=this._provideCodeLensDebounce.update(e,Date.now()-s);i.delay=a,this._renderCodeLensSymbols(r),this._resolveCodeLensesInViewportSoon()},Oe)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add(Pe(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(n=>{this._editor.changeViewZones(s=>{const r=[];let a=-1;this._lenses.forEach(c=>{!c.isValid()||a===c.getLineNumber()?r.push(c):(c.update(s),a=c.getLineNumber())});const l=new aL;r.forEach(c=>{c.dispose(l,s),this._lenses.splice(this._lenses.indexOf(c),1)}),l.commit(n)})}),i.schedule()})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{i.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(n=>{n.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(Pe(()=>{if(this._editor.getModel()){const n=Ca.capture(this._editor);this._editor.changeDecorations(s=>{this._editor.changeViewZones(r=>{this._disposeAllLenses(s,r)})}),n.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(n=>{if(n.target.type!==9)return;let s=n.target.element;if((s==null?void 0:s.tagName)==="SPAN"&&(s=s.parentElement),(s==null?void 0:s.tagName)==="A")for(const r of this._lenses){const a=r.getCommand(s);if(a){this._commandService.executeCommand(a.id,...a.arguments||[]).catch(l=>this._notificationService.error(l));break}}})),i.schedule()}_disposeAllLenses(e,t){const i=new aL;for(const n of this._lenses)n.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let n;for(const a of e.lenses){const l=a.symbol.range.startLineNumber;l<1||l>t||(n&&n[n.length-1].symbol.range.startLineNumber===l?n.push(a):(n=[a],i.push(n)))}if(!i.length&&!this._lenses.length)return;const s=Ca.capture(this._editor),r=this._getLayoutInfo();this._editor.changeDecorations(a=>{this._editor.changeViewZones(l=>{const c=new aL;let d=0,h=0;for(;hthis._resolveCodeLensesInViewportSoon())),d++,h++)}for(;dthis._resolveCodeLensesInViewportSoon())),h++;c.commit(a)})}),s.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;(e=this._resolveCodeLensesPromise)===null||e===void 0||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const i=[],n=[];if(this._lenses.forEach(a=>{const l=a.computeIfNecessary(t);l&&(i.push(l),n.push(a))}),i.length===0)return;const s=Date.now(),r=Wi(a=>{const l=i.map((c,d)=>{const h=new Array(c.length),u=c.map((g,p)=>!g.symbol.command&&typeof g.provider.resolveCodeLens=="function"?Promise.resolve(g.provider.resolveCodeLens(t,g.symbol,a)).then(m=>{h[p]=m},Vi):(h[p]=g.symbol,Promise.resolve(void 0)));return Promise.all(u).then(()=>{!a.isCancellationRequested&&!n[d].isDisposed()&&n[d].updateCommands(h)})});return Promise.all(l)});this._resolveCodeLensesPromise=r,this._resolveCodeLensesPromise.then(()=>{const a=this._resolveCodeLensesDebounce.update(t,Date.now()-s);this._resolveCodeLensesScheduler.delay=a,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},a=>{Oe(a),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}getModel(){return this._currentCodeLensModel}};of.ID="css.editor.codeLens";of=yre([op(1,ge),op(2,Co),op(3,ri),op(4,_i),op(5,K8)],of);lt(of.ID,of,1);J(class extends de{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:N.hasCodeLensProvider,label:f("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return Lre(this,void 0,void 0,function*(){if(!t.hasModel())return;const i=e.get(Ma),n=e.get(ri),s=e.get(_i),r=t.getSelection().positionLineNumber,a=t.getContribution(of.ID);if(!a)return;const l=a.getModel();if(!l)return;const c=[];for(const h of l.lenses)h.symbol.command&&h.symbol.range.startLineNumber===r&&c.push({label:h.symbol.command.title,command:h.symbol.command});if(c.length===0)return;const d=yield i.pick(c,{canPickMany:!1});if(d){if(l.isDisposed)return yield n.executeCommand(this.id);try{yield n.executeCommand(d.command.id,...d.command.arguments||[])}catch(h){s.error(h)}}})}});function Dre(o,e,t){const i=[],s=o.ordered(e).reverse().map(r=>Promise.resolve(r.provideDocumentColors(e,t)).then(a=>{if(Array.isArray(a))for(const l of a)i.push({colorInfo:l,provider:r})}));return Promise.all(s).then(()=>i)}function KP(o,e,t,i){return Promise.resolve(t.provideColorPresentations(o,e,i))}st.registerCommand("_executeDocumentColorProvider",function(o,...e){const[t]=e;if(!(t instanceof Ce))throw Po();const{colorProvider:i}=o.get(ge),n=o.get(jt).getModel(t);if(!n)throw Po();const s=[],a=i.ordered(n).reverse().map(l=>Promise.resolve(l.provideDocumentColors(n,Ye.None)).then(c=>{if(Array.isArray(c))for(const d of c)s.push({range:d.range,color:[d.color.red,d.color.green,d.color.blue,d.color.alpha]})}));return Promise.all(a).then(()=>s)});st.registerCommand("_executeColorPresentationProvider",function(o,...e){const[t,i]=e,{uri:n,range:s}=i;if(!(n instanceof Ce)||!Array.isArray(t)||t.length!==4||!y.isIRange(s))throw Po();const[r,a,l,c]=t,{colorProvider:d}=o.get(ge),h=o.get(jt).getModel(n);if(!h)throw Po();const u={range:s,color:{red:r,green:a,blue:l,alpha:c}},g=[],m=d.ordered(h).reverse().map(_=>Promise.resolve(_.provideColorPresentations(h,u,Ye.None)).then(v=>{Array.isArray(v)&&g.push(...v)}));return Promise.all(m).then(()=>g)});var xre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},lL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},kre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const q8=Object.create({});let Ih=class G8 extends U{constructor(e,t,i,n){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new Z),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new q_(this._editor),this._colorDecorationClassRefs=this._register(new Z),this._debounceInformation=n.for(i.colorProvider,"Document Colors",{min:G8.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isEnabled=this.isEnabled(),this.onModelChanged()})),this._register(e.onDidChangeModelLanguage(()=>this.onModelChanged())),this._register(i.colorProvider.onDidChange(()=>this.onModelChanged())),this._register(e.onDidChangeConfiguration(s=>{const r=this._isEnabled;this._isEnabled=this.isEnabled(),(r!==this._isEnabled||s.hasChanged(18))&&(this._isEnabled?this.onModelChanged():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&typeof i=="object"){const n=i.colorDecorators;if(n&&n.enable!==void 0&&!n.enable)return n.enable}return this._editor.getOption(17)}getDecoratorLimit(){return this._editor.getOption(18)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}onModelChanged(){if(this.stop(),!this._isEnabled)return;const e=this._editor.getModel();!e||!this._languageFeaturesService.colorProvider.has(e)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new fo,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}beginCompute(){this._computePromise=Wi(e=>kre(this,void 0,void 0,function*(){const t=this._editor.getModel();if(!t)return Promise.resolve([]);const i=new ts(!1),n=yield Dre(this._languageFeaturesService.colorProvider,t,e);return this._debounceInformation.update(t,i.elapsed()),n})),this._computePromise.then(e=>{this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null},Oe)}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map(i=>({range:{startLineNumber:i.colorInfo.range.startLineNumber,startColumn:i.colorInfo.range.startColumn,endLineNumber:i.colorInfo.range.endLineNumber,endColumn:i.colorInfo.range.endColumn},options:Re.EMPTY}));this._editor.changeDecorations(i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((n,s)=>this._colorDatas.set(n,e[s]))})}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[];for(let i=0;ithis._colorDatas.has(n.id));return i.length===0?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};Ih.ID="editor.contrib.colorDetector";Ih.RECOMPUTE_TIME=1e3;Ih=xre([lL(1,at),lL(2,ge),lL(3,Co)],Ih);lt(Ih.ID,Ih,1);class Ire{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new O,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new O,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let n=0;n{this.backgroundColor=r.getColor(iC)||H.white})),this._register(K(this.pickedColorNode,ae.CLICK,()=>this.model.selectNextColorPresentation())),this._register(K(s,ae.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this.pickedColorNode.style.backgroundColor=H.Format.CSS.format(t.color)||"",this.pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){this.pickedColorNode.style.backgroundColor=H.Format.CSS.format(e)||"",this.pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:"",this.pickedColorNode.prepend(dr(".codicon.codicon-color-mode"))}}class Tre extends U{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this.domNode=dr(".colorpicker-body"),q(e,this.domNode),this.saturationBox=new Nre(this.domNode,this.model,this.pixelRatio),this._register(this.saturationBox),this._register(this.saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this.saturationBox.onColorFlushed(this.flushColor,this)),this.opacityStrip=new Mre(this.domNode,this.model),this._register(this.opacityStrip),this._register(this.opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this.opacityStrip.onColorFlushed(this.flushColor,this)),this.hueStrip=new Are(this.domNode,this.model),this._register(this.hueStrip),this._register(this.hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this.hueStrip.onColorFlushed(this.flushColor,this))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new H(new Jr(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new H(new Jr(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=(1-e)*360;this.model.color=new H(new Jr(i===360?0:i,t.s,t.v,t.a))}layout(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}class Nre extends U{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this.domNode=dr(".saturation-wrap"),q(e,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",q(this.domNode,this.canvas),this.selection=dr(".saturation-selection"),q(this.domNode,this.selection),this.layout(),this._register(K(this.domNode,ae.POINTER_DOWN,n=>this.onPointerDown(n))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new Lf);const t=Fi(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,n=>this.onDidChangePosition(n.pageX-t.left,n.pageY-t.top),()=>null);const i=K(document,ae.POINTER_UP,()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,n),this._onDidChange.fire({s:i,v:n})}layout(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new H(new Jr(e.h,1,1,1)),i=this.canvas.getContext("2d"),n=i.createLinearGradient(0,0,this.canvas.width,0);n.addColorStop(0,"rgba(255, 255, 255, 1)"),n.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),n.addColorStop(1,"rgba(255, 255, 255, 0)");const s=i.createLinearGradient(0,0,0,this.canvas.height);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this.canvas.width,this.canvas.height),i.fillStyle=H.Format.CSS.format(t),i.fill(),i.fillStyle=n,i.fill(),i.fillStyle=s,i.fill()}paintSelection(e,t){this.selection.style.left=`${e*this.width}px`,this.selection.style.top=`${this.height-t*this.height}px`}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class Z8 extends U{constructor(e,t){super(),this.model=t,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new O,this.onColorFlushed=this._onColorFlushed.event,this.domNode=q(e,dr(".strip")),this.overlay=q(this.domNode,dr(".overlay")),this.slider=q(this.domNode,dr(".slider")),this.slider.style.top="0px",this._register(K(this.domNode,ae.POINTER_DOWN,i=>this.onPointerDown(i))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new Lf),i=Fi(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,s=>this.onDidChangeTop(s.pageY-i.top),()=>null);const n=K(document,ae.POINTER_UP,()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=`${(1-e)*this.height}px`}}class Mre extends Z8{constructor(e,t){super(e,t),this.domNode.classList.add("opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){const{r:t,g:i,b:n}=e.rgba,s=new H(new nt(t,i,n,1)),r=new H(new nt(t,i,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${s} 0%, ${r} 100%)`}getValue(e){return e.hsva.a}}class Are extends Z8{constructor(e,t){super(e,t),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class Rre extends bo{constructor(e,t,i,n){super(),this.model=t,this.pixelRatio=i,this._register(Rg.onDidChange(()=>this.layout()));const s=dr(".colorpicker-widget");e.appendChild(s);const r=new Ere(s,this.model,n);this.body=new Tre(s,this.model,this.pixelRatio),this._register(r),this._register(this.body)}layout(){this.body.layout()}}var Pre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Ore=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},qP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Fre{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let eI=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=1}computeSync(e,t){return[]}computeAsync(e,t,i){return pi.fromPromise(this._computeAsync(e,t,i))}_computeAsync(e,t,i){return qP(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];const n=Ih.get(this._editor);if(!n)return[];for(const s of t){if(!n.isColorDecoration(s))continue;const r=n.getColorData(s.range.getStartPosition());if(r)return[yield this._createColorHover(this._editor.getModel(),r.colorInfo,r.provider)]}return[]})}_createColorHover(e,t,i){return qP(this,void 0,void 0,function*(){const n=e.getValueInRange(t.range),{red:s,green:r,blue:a,alpha:l}=t.color,c=new nt(Math.round(s*255),Math.round(r*255),Math.round(a*255),l),d=new H(c),h=yield KP(e,t,i,Ye.None),u=new Ire(d,[],0);return u.colorPresentations=h||[],u.guessColorPresentation(d,n),new Fre(this,y.lift(t.range),u,i)})}renderHoverParts(e,t){if(t.length===0||!this._editor.hasModel())return U.None;const i=new Z,n=t[0],s=this._editor.getModel(),r=n.model,a=i.add(new Rre(e.fragment,r,this._editor.getOption(136),this._themeService));e.setColorPicker(a);let l=new y(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn);const c=()=>{let h,u;if(r.presentation.textEdit){h=[r.presentation.textEdit],u=new y(r.presentation.textEdit.range.startLineNumber,r.presentation.textEdit.range.startColumn,r.presentation.textEdit.range.endLineNumber,r.presentation.textEdit.range.endColumn);const g=this._editor.getModel()._setTrackedRange(null,u,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h),u=this._editor.getModel()._getTrackedRange(g)||u}else h=[{range:l,text:r.presentation.label,forceMoveMarkers:!1}],u=l.setEndPosition(l.endLineNumber,l.startColumn+r.presentation.label.length),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h);r.presentation.additionalTextEdits&&(h=[...r.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",h),e.hide()),this._editor.pushUndoStop(),l=u},d=h=>KP(s,{range:l,color:{red:h.rgba.r/255,green:h.rgba.g/255,blue:h.rgba.b/255,alpha:h.rgba.a}},n.provider,Ye.None).then(u=>{r.colorPresentations=u||[]});return i.add(r.onColorFlushed(h=>{d(h).then(c)})),i.add(r.onDidChangeColor(d)),i}};eI=Pre([Ore(1,Hi)],eI);function tI(o,e){return!!o[e]}class cL{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=tI(e.event,t.triggerModifier),this.hasSideBySideModifier=tI(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class GP{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=tI(e,t.triggerModifier)}}class v0{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function ZP(o){return o==="altKey"?Ke?new v0(57,"metaKey",6,"altKey"):new v0(5,"ctrlKey",6,"altKey"):Ke?new v0(6,"altKey",57,"metaKey"):new v0(6,"altKey",5,"ctrlKey")}class Uw extends U{constructor(e,t){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new O),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new O),this.onExecute=this._onExecute.event,this._onCancel=this._register(new O),this.onCancel=this._onCancel.event,this._editor=e,this._alwaysFireExecuteOnMouseUp=t,this._opts=ZP(this._editor.getOption(74)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(i=>{if(i.hasChanged(74)){const n=ZP(this._editor.getOption(74));if(this._opts.equals(n))return;this._opts=n,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(i=>this._onEditorMouseMove(new cL(i,this._opts)))),this._register(this._editor.onMouseDown(i=>this._onEditorMouseDown(new cL(i,this._opts)))),this._register(this._editor.onMouseUp(i=>this._onEditorMouseUp(new cL(i,this._opts)))),this._register(this._editor.onKeyDown(i=>this._onEditorKeyDown(new GP(i,this._opts)))),this._register(this._editor.onKeyUp(i=>this._onEditorKeyUp(new GP(i,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(i=>this._onDidChangeCursorSelection(i))),this._register(this._editor.onDidChangeModel(i=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(i=>{(i.scrollTopChanged||i.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){const t=e.target.position?e.target.position.lineNumber:0;(this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t||this._alwaysFireExecuteOnMouseUp)&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}var Bre=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Wa=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Bc=class extends qg{constructor(e,t,i,n,s,r,a,l,c,d,h,u){super(e,Object.assign(Object.assign({},i.getRawOptions()),{overflowWidgetsDomNode:i.getOverflowWidgetsDomNode()}),{},n,s,r,a,l,c,d,h,u),this._parentEditor=i,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(i.onDidChangeConfiguration(g=>this._onParentConfigurationChanged(g)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){B_(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};Bc=Bre([Wa(3,Me),Wa(4,ut),Wa(5,ri),Wa(6,Ee),Wa(7,Hi),Wa(8,_i),Wa(9,xa),Wa(10,ui),Wa(11,ge)],Bc);const YP=new H(new nt(0,122,204)),Wre={showArrow:!0,showFrame:!0,className:"",frameColor:YP,arrowColor:YP,keepEditorSelection:!1},Vre="vs.editor.contrib.zoneWidget";class Hre{constructor(e,t,i,n,s,r){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=n,this._onDomNodeTop=s,this._onComputedHeight=r}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class zre{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class $w{constructor(e){this._editor=e,this._ruleName=$w._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),zM(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){zM(this._ruleName),rx(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){e.column===1&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:y.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}$w._IdGenerator=new YT(".arrow-decoration-");class Ure{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new Z,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=qa(t),B_(this.options,Wre,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(i=>{const n=this._getWidth(i);this.domNode.style.width=n+"px",this.domNode.style.left=this._getLeft(i)+"px",this._onWidth(n)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null}),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new $w(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&e.minimap.minimapLeft===0?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;if(this.domNode.style.height=`${e}px`,this.container){const i=e-this._decoratingElementsHeight();this.container.style.height=`${i}px`;const n=this.editor.getLayoutInfo();this._doLayout(i,this._getWidth(n))}(t=this._resizeSash)===null||t===void 0||t.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=y.isIRange(e)?y.lift(e):y.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:Re.EMPTY}])}hide(){var e;this._viewZone&&(this.editor.changeViewZones(t=>{this._viewZone&&t.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),(e=this._arrow)===null||e===void 0||e.hide()}_decoratingElementsHeight(){const e=this.editor.getOption(63);let t=0;if(this.options.showArrow){const i=Math.round(e/3);t+=2*i}if(this.options.showFrame){const i=Math.round(e/9);t+=2*i}return t}_showImpl(e,t){const i=e.getStartPosition(),n=this.editor.getLayoutInfo(),s=this._getWidth(n);this.domNode.style.width=`${s}px`,this.domNode.style.left=this._getLeft(n)+"px";const r=document.createElement("div");r.style.overflow="hidden";const a=this.editor.getOption(63),l=Math.max(12,this.editor.getLayoutInfo().height/a*.8);t=Math.min(t,l);let c=0,d=0;if(this._arrow&&this.options.showArrow&&(c=Math.round(a/3),this._arrow.height=c,this._arrow.show(i)),this.options.showFrame&&(d=Math.round(a/9)),this.editor.changeViewZones(g=>{this._viewZone&&g.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new Hre(r,i.lineNumber,i.column,t,p=>this._onViewZoneTop(p),p=>this._onViewZoneHeight(p)),this._viewZone.id=g.addZone(this._viewZone),this._overlayWidget=new zre(Vre+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const g=this.options.frameWidth?this.options.frameWidth:d;this.container.style.borderTopWidth=g+"px",this.container.style.borderBottomWidth=g+"px"}const h=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=c+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden"),this._doLayout(h,s),this.options.keepEditorSelection||this.editor.setSelection(e);const u=this.editor.getModel();if(u){const g=u.validateRange(new y(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(g,g.endLineNumber===u.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;this._resizeSash=this._disposables.add(new fn(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0);let e;this._disposables.add(this._resizeSash.onDidStart(t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{e=void 0})),this._disposables.add(this._resizeSash.onDidChange(t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(63),n=i<0?Math.ceil(i):Math.floor(i),s=e.heightInLines+n;s>5&&s<35&&this._relayout(s)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var Y8=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Q8=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const X8=Je("IPeekViewService");ot(X8,class{constructor(){this._widgets=new Map}addExclusiveWidget(o,e){const t=this._widgets.get(o);t&&(t.listener.dispose(),t.widget.dispose());const i=()=>{const n=this._widgets.get(o);n&&n.widget===e&&(n.listener.dispose(),this._widgets.delete(o))};this._widgets.set(o,{widget:e,listener:e.onDidClose(i)})}},1);var ss;(function(o){o.inPeekEditor=new ce("inReferenceSearchEditor",!0,f("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),o.notInPeekEditor=o.inPeekEditor.toNegated()})(ss||(ss={}));let g_=class{constructor(e,t){e instanceof Bc&&ss.inPeekEditor.bindTo(t)}dispose(){}};g_.ID="editor.contrib.referenceController";g_=Y8([Q8(1,Ee)],g_);lt(g_.ID,g_,0);function $re(o){const e=o.get(ut).getFocusedCodeEditor();return e instanceof Bc?e.getParentEditor():e}const jre={headerBackgroundColor:H.white,primaryHeadingColor:H.fromHex("#333333"),secondaryHeadingColor:H.fromHex("#6c6c6cb3")};let o1=class extends Ure{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new O,this.onDidClose=this._onDidClose.event,B_(this.options,jre,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=X(".head"),this._bodyElement=X(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){const i=X(".peekview-title");this.options.supportOnTitleClick&&(i.classList.add("clickable"),hi(i,"click",r=>this._onTitleClick(r))),q(this._headElement,i),this._fillTitleIcon(i),this._primaryHeading=X("span.filename"),this._secondaryHeading=X("span.dirname"),this._metaHeading=X("span.meta"),q(i,this._primaryHeading,this._secondaryHeading,this._metaHeading);const n=X(".peekview-actions");q(this._headElement,n);const s=this._getActionBarOptions();this._actionbarWidget=new go(n,s),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new ms("peekview.close",f("label.close","Close"),De.asClassName(se.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:Lee.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:xi(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,hs(this._metaHeading)):On(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}const i=Math.ceil(this.editor.getOption(63)*1.2),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};o1=Y8([Q8(2,Me)],o1);const Kre=M("peekViewTitle.background",{dark:pe(es,.1),light:pe(es,.1),hcDark:null,hcLight:null},f("peekViewTitleBackground","Background color of the peek view title area.")),J8=M("peekViewTitleLabel.foreground",{dark:H.white,light:H.black,hcDark:H.white,hcLight:No},f("peekViewTitleForeground","Color of the peek view title.")),e9=M("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},f("peekViewTitleInfoForeground","Color of the peek view title info.")),qre=M("peekView.border",{dark:es,light:es,hcDark:Ze,hcLight:Ze},f("peekViewBorder","Color of the peek view borders and arrow.")),Gre=M("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:H.black,hcLight:H.white},f("peekViewResultsBackground","Background color of the peek view result list."));M("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:H.white,hcLight:No},f("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list."));M("peekViewResult.fileForeground",{dark:H.white,light:"#1E1E1E",hcDark:H.white,hcLight:No},f("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list."));M("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},f("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list."));M("peekViewResult.selectionForeground",{dark:H.white,light:"#6C6C6C",hcDark:H.white,hcLight:No},f("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list."));const lc=M("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:H.black,hcLight:H.white},f("peekViewEditorBackground","Background color of the peek view editor."));M("peekViewEditorGutter.background",{dark:lc,light:lc,hcDark:lc,hcLight:lc},f("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor."));M("peekViewEditorStickScroll.background",{dark:lc,light:lc,hcDark:lc,hcLight:lc},f("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor."));M("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},f("peekViewResultsMatchHighlight","Match highlight color in the peek view result list."));M("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},f("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));M("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:Pt,hcLight:Pt},f("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));var Zre=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Wc{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=v3.nextId()}get uri(){return this.link.uri}get range(){var e,t;return(t=(e=this._range)!==null&&e!==void 0?e:this.link.targetSelectionRange)!==null&&t!==void 0?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=(e=this.parent.getPreview(this))===null||e===void 0?void 0:e.preview(this.range);return t?f({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"symbol in {0} on line {1} at column {2}, {3}",uo(this.uri),this.range.startLineNumber,this.range.startColumn,t.value):f("aria.oneReference","symbol in {0} on line {1} at column {2}",uo(this.uri),this.range.startLineNumber,this.range.startColumn)}}class Yre{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:s,endLineNumber:r,endColumn:a}=e,l=i.getWordUntilPosition({lineNumber:n,column:s-t}),c=new y(n,l.startColumn,n,s),d=new y(r,a,r,1073741824),h=i.getValueInRange(c).replace(/^\s+/,""),u=i.getValueInRange(e),g=i.getValueInRange(d).replace(/\s+$/,"");return{value:h+u+g,highlight:{start:h.length,end:h.length+u.length}}}}class f_{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new vn}dispose(){ft(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return e===1?f("aria.fileReferences.1","1 symbol in {0}, full path {1}",uo(this.uri),this.uri.fsPath):f("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,uo(this.uri),this.uri.fsPath)}resolve(e){return Zre(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(const t of this.children)if(!this._previews.has(t.uri))try{const i=yield e.createModelReference(t.uri);this._previews.set(t.uri,new Yre(i))}catch(i){Oe(i)}return this})}}class _s{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new O,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;e.sort(_s._compareReferences);let n;for(const s of e)if((!n||!Ot.isEqual(n.uri,s.uri,!0))&&(n=new f_(this,s.uri),this.groups.push(n)),n.children.length===0||_s._compareReferences(s,n.children[n.children.length-1])!==0){const r=new Wc(i===s,n,s,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(r),n.children.push(r)}}dispose(){ft(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new _s(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?f("aria.result.0","No results found"):this.references.length===1?f("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?f("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):f("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let n=i.children.indexOf(e);const s=i.children.length,r=i.parent.groups.length;return r===1||t&&n+10?(t?n=(n+1)%s:n=(n+s-1)%s,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%r,i.parent.groups[n].children[0]):(n=(n+r-1)%r,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map((n,s)=>({idx:s,prefixLen:ah(n.uri.toString(),e.toString()),offsetDist:Math.abs(n.range.startLineNumber-t.lineNumber)*100+Math.abs(n.range.startColumn-t.column)})).sort((n,s)=>n.prefixLen>s.prefixLen?-1:n.prefixLens.offsetDist?1:0)[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&y.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return Ot.compare(e.uri,t.uri)||y.compareRangesUsingStarts(e.range,t.range)}}var jw=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Kw=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let iI=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof _s||e instanceof f_}getChildren(e){if(e instanceof _s)return e.groups;if(e instanceof f_)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};iI=jw([Kw(0,os)],iI);class Qre{getHeight(){return 23}getTemplateId(e){return e instanceof f_?p_.id:gb.id}}let nI=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof Wc){const i=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(i)return i.value}return uo(e.uri)}};nI=jw([Kw(0,ei)],nI);class Xre{getId(e){return e instanceof Wc?e.id:e.uri}}let sI=class extends U{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new KC(i,{supportHighlights:!0})),this.badge=new pk(q(i,X(".count")),{},Q3),e.appendChild(i)}set(e,t){const i=hw(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat(f("referencesCount","{0} references",n)):this.badge.setTitleFormat(f("referenceCount","{0} reference",n))}};sI=jw([Kw(1,Yg)],sI);let p_=class t9{constructor(e){this._instantiationService=e,this.templateId=t9.id}renderTemplate(e){return this._instantiationService.createInstance(sI,e)}renderElement(e,t,i){i.set(e.element,mw(e.filterData))}disposeTemplate(e){e.dispose()}};p_.id="FileReferencesRenderer";p_=jw([Kw(0,Me)],p_);class Jre{constructor(e){this.label=new pl(e)}set(e,t){var i;const n=(i=e.parent.getPreview(e))===null||i===void 0?void 0:i.preview(e.range);if(!n||!n.value)this.label.set(`${uo(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{const{value:s,highlight:r}=n;t&&!_r.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(s,mw(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(s,[r]))}}}class gb{constructor(){this.templateId=gb.id}renderTemplate(e){return new Jre(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(){}}gb.id="OneReferenceRenderer";class eae{getWidgetAriaLabel(){return f("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var tae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Va=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},QP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class qw{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new Z,this._callOnModelChange=new Z,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e){for(const t of this._model.references)if(t.uri.toString()===e.uri.toString()){this._addDecorations(t.parent);return}}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const t=[],i=[];for(let n=0,s=e.children.length;n{const s=n.deltaDecorations([],t);for(let r=0;r{s.equals(9)&&(this._keybindingService.dispatchEvent(s,s.target),s.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(nae,"ReferencesWidget",this._treeContainer,new Qre,[this._instantiationService.createInstance(p_),this._instantiationService.createInstance(gb)],this._instantiationService.createInstance(iI),i),this._splitView.addView({onDidChange:_e.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:s=>{this._preview.layout({height:this._dim.height,width:s})}},qC.Distribute),this._splitView.addView({onDidChange:_e.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:s=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${s}px`,this._tree.layout(this._dim.height,s)}},qC.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));const n=(s,r)=>{s instanceof Wc&&(r==="show"&&this._revealReference(s,!1),this._onDidSelectReference.fire({element:s,kind:r,source:"tree"}))};this._tree.onDidOpen(s=>{s.sideBySide?n(s.element,"side"):s.editorOptions.pinned?n(s.element,"goto"):n(s.element,"show")}),On(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new Dt(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=f("noResults","No results"),hs(this._messageContainer),Promise.resolve(void 0)):(On(this._messageContainer),this._decorationsManager=new qw(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{const{event:t,target:i}=e;if(t.detail!==2)return;const n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),hs(this._treeContainer),hs(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();if(e instanceof Wc)return e;if(e instanceof f_&&e.children.length>0)return e.children[0]}revealReference(e){return QP(this,void 0,void 0,function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})})}_revealReference(e,t){return QP(this,void 0,void 0,function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==We.inMemory?this.setTitle(cZ(e.uri),this._uriLabel.getUriLabel(hw(e.uri))):this.setTitle(f("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent),this._tree.reveal(e));const n=yield i;if(!this._model){n.dispose();return}ft(this._previewModelReference);const s=n.object;if(s){const r=this._preview.getModel()===s.textEditorModel?0:1,a=y.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(s.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,r)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()})}};oI=tae([Va(3,Hi),Va(4,os),Va(5,Me),Va(6,X8),Va(7,Yg),Va(8,uw),Va(9,ei),Va(10,Ut),Va(11,ui)],oI);var sae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Su=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},XP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const nu=new ce("referenceSearchVisible",!1,f("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let Vc=class rI{static get(e){return e.getContribution(rI.ID)}constructor(e,t,i,n,s,r,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=s,this._instantiationService=r,this._storageService=a,this._configurationService=l,this._disposables=new Z,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=nu.bindTo(i)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),(e=this._widget)===null||e===void 0||e.dispose(),(t=this._model)===null||t===void 0||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const s="peekViewLayout",r=iae.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(oI,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(f("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(s,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(l=>{const{element:c,kind:d}=l;if(c)switch(d){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(c,!1,!1);break;case"side":this.openReference(c,!0,!1);break;case"goto":i?this._gotoReference(c,!0):this.openReference(c,!1,!0);break}}));const a=++this._requestIdPool;t.then(l=>{var c;if(a!==this._requestIdPool||!this._widget){l.dispose();return}return(c=this._model)===null||c===void 0||c.dispose(),this._model=l,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(f("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const d=this._editor.getModel().uri,h=new W(e.startLineNumber,e.startColumn),u=this._model.nearestReference(d,h);if(u)return this._widget.setSelection(u).then(()=>{this._widget&&this._editor.getOption(82)==="editor"&&this._widget.focusOnPreviewEditor()})}})},l=>{this._notificationService.error(l)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return XP(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),s=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(n),yield this._gotoReference(n,!1),s?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()})}revealReference(e){return XP(this,void 0,void 0,function*(){!this._editor.hasModel()||!this._model||!this._widget||(yield this._widget.revealReference(e))})}closeWidget(e=!0){var t,i;(t=this._widget)===null||t===void 0||t.dispose(),(i=this._model)===null||i===void 0||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){var i;(i=this._widget)===null||i===void 0||i.hide(),this._ignoreModelChangeEvent=!0;const n=y.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n,selectionSource:"code.jump",pinned:t}},this._editor).then(s=>{var r;if(this._ignoreModelChangeEvent=!1,!s||!this._widget){this.closeWidget();return}if(this._editor===s)this._widget.show(n),this._widget.focusOnReferenceTree();else{const a=rI.get(s),l=this._model.clone();this.closeWidget(),s.focus(),a==null||a.toggleWidget(n,Wi(c=>Promise.resolve(l)),(r=this._peekMode)!==null&&r!==void 0?r:!1)}},s=>{this._ignoreModelChangeEvent=!1,Oe(s)})}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:s}=e;this._editorService.openCodeEditor({resource:n,options:{selection:s,selectionSource:"code.jump",pinned:i}},this._editor,t)}};Vc.ID="editor.contrib.referencesController";Vc=sae([Su(2,Ee),Su(3,ut),Su(4,_i),Su(5,Me),Su(6,jo),Su(7,at)],Vc);function su(o,e){const t=$re(o);if(!t)return;const i=Vc.get(t);i&&e(i)}is.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:ki(2089,60),when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.changeFocusBetweenPreviewAndReferences()})}});is.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.goToNextOrPreviousReference(!0)})}});is.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1086,secondary:[1094],when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.goToNextOrPreviousReference(!1)})}});st.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");st.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");st.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");st.registerCommand("closeReferenceSearch",o=>su(o,e=>e.closeWidget()));is.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1033],when:oe.and(ss.inPeekEditor,oe.not("config.editor.stablePeek"))});is.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1033],when:oe.and(nu,oe.not("config.editor.stablePeek"))});is.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:oe.and(nu,L7,CN.negate(),wN.negate()),handler(o){var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wc&&su(o,n=>n.revealReference(i[0]))}});is.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:oe.and(nu,L7,CN.negate(),wN.negate()),handler(o){var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wc&&su(o,n=>n.openReference(i[0],!0,!0))}});st.registerCommand("openReference",o=>{var e;const i=(e=o.get(wo).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Wc&&su(o,n=>n.openReference(i[0],!1,!0))});var i9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Op=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const $N=new ce("hasSymbols",!1,f("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),Gw=Je("ISymbolNavigationService");let aI=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=$N.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),(e=this._currentState)===null||e===void 0||e.dispose(),(t=this._currentMessage)===null||t===void 0||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1){this.reset();return}this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new lI(this._editorService),n=i.onDidChange(s=>{if(this._ignoreEditorChange)return;const r=this._editorService.getActiveCodeEditor();if(!r)return;const a=r.getModel(),l=r.getPosition();if(!a||!l)return;let c=!1,d=!1;for(const h of t.references)if(LT(h.uri,a.uri))c=!0,d=d||y.containsPosition(h.range,l);else if(c)break;(!c||!d)&&this.reset()});this._currentState=Oo(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:y.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;(e=this._currentMessage)===null||e===void 0||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?f("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):f("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};aI=i9([Op(0,Ee),Op(1,ut),Op(2,_i),Op(3,ei)],aI);ot(Gw,aI,1);ie(new class extends Ji{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:$N,kbOpts:{weight:100,primary:70}})}runEditorCommand(o,e){return o.get(Gw).revealNext(e)}});is.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:$N,primary:9,handler(o){o.get(Gw).reset()}});let lI=class{constructor(e){this._listener=new Map,this._disposables=new Z,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),ft(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,Oo(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;(t=this._listener.get(e))===null||t===void 0||t.dispose(),this._listener.delete(e)}};lI=i9([Op(0,ut)],lI);var jN=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function fb(o,e,t,i){return jN(this,void 0,void 0,function*(){const s=t.ordered(o).map(a=>Promise.resolve(i(a,o,e)).then(void 0,l=>{Vi(l)})),r=yield Promise.all(s);return mf(r.flat())})}function Zw(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideDefinition(s,r,i))}function n9(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideDeclaration(s,r,i))}function s9(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideImplementation(s,r,i))}function o9(o,e,t,i){return fb(e,t,o,(n,s,r)=>n.provideTypeDefinition(s,r,i))}function Yw(o,e,t,i,n){return fb(e,t,o,(s,r,a)=>jN(this,void 0,void 0,function*(){const l=yield s.provideReferences(r,a,{includeDeclaration:!0},n);if(!i||!l||l.length!==2)return l;const c=yield s.provideReferences(r,a,{includeDeclaration:!1},n);return c&&c.length===1?c:l}))}function pb(o){return jN(this,void 0,void 0,function*(){const e=yield o(),t=new _s(e,""),i=t.references.map(n=>n.link);return t.dispose(),i})}Ta("_executeDefinitionProvider",(o,e,t)=>{const i=o.get(ge),n=Zw(i.definitionProvider,e,t,Ye.None);return pb(()=>n)});Ta("_executeTypeDefinitionProvider",(o,e,t)=>{const i=o.get(ge),n=o9(i.typeDefinitionProvider,e,t,Ye.None);return pb(()=>n)});Ta("_executeDeclarationProvider",(o,e,t)=>{const i=o.get(ge),n=n9(i.declarationProvider,e,t,Ye.None);return pb(()=>n)});Ta("_executeReferenceProvider",(o,e,t)=>{const i=o.get(ge),n=Yw(i.referenceProvider,e,t,!1,Ye.None);return pb(()=>n)});Ta("_executeImplementationProvider",(o,e,t)=>{const i=o.get(ge),n=s9(i.implementationProvider,e,t,Ye.None);return pb(()=>n)});var Fo=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},dL,hL,uL,gL,fL,pL,mL,_L;Jn.appendMenuItem(T.EditorContext,{submenu:T.EditorContextPeek,title:f("peek.submenu","Peek"),group:"navigation",order:100});class rf{static is(e){return!e||typeof e!="object"?!1:!!(e instanceof rf||W.isIPosition(e.position)&&e.model)}constructor(e,t){this.model=e,this.position=t}}class In extends C${static all(){return In._allSymbolNavigationCommands.values()}static _patchConfig(e){const t=Object.assign(Object.assign({},e),{f1:!0});if(t.menu)for(const i of it.wrap(t.menu))(i.id===T.EditorContext||i.id===T.EditorContextPeek)&&(i.when=oe.and(e.precondition,i.when));return t}constructor(e,t){super(In._patchConfig(t)),this.configuration=e,In._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,n){if(!t.hasModel())return Promise.resolve(void 0);const s=e.get(_i),r=e.get(ut),a=e.get(ed),l=e.get(Gw),c=e.get(ge),d=e.get(Me),h=t.getModel(),u=t.getPosition(),g=rf.is(i)?i:new rf(h,u),p=new Sh(t,5),m=U1(this._getLocationModel(c,g.model,g.position,p.token),p.token).then(_=>Fo(this,void 0,void 0,function*(){var v;if(!_||p.token.isCancellationRequested)return;cn(_.ariaMessage);let b;if(_.referenceAt(h.uri,u)){const S=this._getAlternativeCommand(t);!In._activeAlternativeCommands.has(S)&&In._allSymbolNavigationCommands.has(S)&&(b=In._allSymbolNavigationCommands.get(S))}const C=_.references.length;if(C===0){if(!this.configuration.muteMessage){const S=h.getWordAtPosition(u);(v=Cs.get(t))===null||v===void 0||v.showMessage(this._getNoResultFoundMessage(S),u)}}else if(C===1&&b)In._activeAlternativeCommands.add(this.desc.id),d.invokeFunction(S=>b.runEditorCommand(S,t,i,n).finally(()=>{In._activeAlternativeCommands.delete(this.desc.id)}));else return this._onResult(r,l,t,_,n)}),_=>{s.error(_)}).finally(()=>{p.dispose()});return a.showWhile(m,250),m}_onResult(e,t,i,n,s){return Fo(this,void 0,void 0,function*(){const r=this._getGoToPreference(i);if(!(i instanceof Bc)&&(this.configuration.openInPeek||r==="peek"&&n.references.length>1))this._openInPeek(i,n,s);else{const a=n.firstReference(),l=n.references.length>1&&r==="gotoAndPeek",c=yield this._openReference(i,e,a,this.configuration.openToSide,!l);l&&c?this._openInPeek(c,n,s):n.dispose(),r==="goto"&&t.put(a)}})}_openReference(e,t,i,n,s){return Fo(this,void 0,void 0,function*(){let r;if(bV(i)&&(r=i.targetSelectionRange),r||(r=i.range),!r)return;const a=yield t.openCodeEditor({resource:i.uri,options:{selection:y.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(a){if(s){const l=a.getModel(),c=a.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{a.getModel()===l&&c.clear()},350)}return a}})}_openInPeek(e,t,i){const n=Vc.get(e);n&&e.hasModel()?n.toggleWidget(i??e.getSelection(),Wi(s=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}}In._allSymbolNavigationCommands=new Map;In._activeAlternativeCommands=new Set;class mb extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Zw(e.definitionProvider,t,i,n),f("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?f("noResultWord","No definition found for '{0}'",e.word):f("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(55).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(55).multipleDefinitions}}const r9=Kc&&!BE()?2118:70;Tn((dL=class cI extends mb{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:cI.id,title:{value:f("actions.goToDecl.label","Go to Definition"),original:"Go to Definition",mnemonicTitle:f({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:oe.and(N.hasDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:r9,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.1},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),st.registerCommandAlias("editor.action.goToDeclaration",cI.id)}},dL.id="editor.action.revealDefinition",dL));Tn((hL=class dI extends mb{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:dI.id,title:{value:f("actions.goToDeclToSide.label","Open Definition to the Side"),original:"Open Definition to the Side"},precondition:oe.and(N.hasDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:ki(2089,r9),weight:100}}),st.registerCommandAlias("editor.action.openDeclarationToTheSide",dI.id)}},hL.id="editor.action.revealDefinitionAside",hL));Tn((uL=class hI extends mb{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:hI.id,title:{value:f("actions.previewDecl.label","Peek Definition"),original:"Peek Definition"},precondition:oe.and(N.hasDefinitionProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:T.EditorContextPeek,group:"peek",order:2}}),st.registerCommandAlias("editor.action.previewDeclaration",hI.id)}},uL.id="editor.action.peekDefinition",uL));class a9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield n9(e.declarationProvider,t,i,n),f("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?f("decl.noResultWord","No declaration found for '{0}'",e.word):f("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(55).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(55).multipleDeclarations}}Tn((gL=class l9 extends a9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:l9.id,title:{value:f("actions.goToDeclaration.label","Go to Declaration"),original:"Go to Declaration",mnemonicTitle:f({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:oe.and(N.hasDeclarationProvider,N.isInWalkThroughSnippet.toNegated()),menu:[{id:T.EditorContext,group:"navigation",order:1.3},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?f("decl.noResultWord","No declaration found for '{0}'",e.word):f("decl.generic.noResults","No declaration found")}},gL.id="editor.action.revealDeclaration",gL));Tn(class extends a9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:{value:f("actions.peekDecl.label","Peek Declaration"),original:"Peek Declaration"},precondition:oe.and(N.hasDeclarationProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),menu:{id:T.EditorContextPeek,group:"peek",order:3}})}});class c9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield o9(e.typeDefinitionProvider,t,i,n),f("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?f("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):f("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(55).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(55).multipleTypeDefinitions}}Tn((fL=class d9 extends c9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:d9.ID,title:{value:f("actions.goToTypeDefinition.label","Go to Type Definition"),original:"Go to Type Definition",mnemonicTitle:f({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:oe.and(N.hasTypeDefinitionProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:0,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.4},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},fL.ID="editor.action.goToTypeDefinition",fL));Tn((pL=class h9 extends c9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:h9.ID,title:{value:f("actions.peekTypeDefinition.label","Peek Type Definition"),original:"Peek Type Definition"},precondition:oe.and(N.hasTypeDefinitionProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),menu:{id:T.EditorContextPeek,group:"peek",order:4}})}},pL.ID="editor.action.peekTypeDefinition",pL));class u9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield s9(e.implementationProvider,t,i,n),f("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?f("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):f("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(55).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(55).multipleImplementations}}Tn((mL=class g9 extends u9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:g9.ID,title:{value:f("actions.goToImplementation.label","Go to Implementations"),original:"Go to Implementations",mnemonicTitle:f({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:oe.and(N.hasImplementationProvider,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:2118,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.45},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},mL.ID="editor.action.goToImplementation",mL));Tn((_L=class f9 extends u9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:f9.ID,title:{value:f("actions.peekImplementation.label","Peek Implementations"),original:"Peek Implementations"},precondition:oe.and(N.hasImplementationProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:3142,weight:100},menu:{id:T.EditorContextPeek,group:"peek",order:5}})}},_L.ID="editor.action.peekImplementation",_L));class p9 extends In{_getNoResultFoundMessage(e){return e?f("references.no","No references found for '{0}'",e.word):f("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(55).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(55).multipleReferences}}Tn(class extends p9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{value:f("goToReferences.label","Go to References"),original:"Go to References",mnemonicTitle:f({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:oe.and(N.hasReferenceProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),keybinding:{when:N.editorTextFocus,primary:1094,weight:100},menu:[{id:T.EditorContext,group:"navigation",order:1.45},{id:T.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Yw(e.referenceProvider,t,i,!0,n),f("ref.title","References"))})}});Tn(class extends p9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:{value:f("references.action.label","Peek References"),original:"Peek References"},precondition:oe.and(N.hasReferenceProvider,ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated()),menu:{id:T.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Yw(e.referenceProvider,t,i,!1,n),f("ref.title","References"))})}});class oae extends In{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:{value:f("label.generic","Go to Any Symbol"),original:"Go to Any Symbol"},precondition:oe.and(ss.notInPeekEditor,N.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(this._references,f("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&f("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(55).multipleReferences}_getAlternativeCommand(){return""}}st.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Ce},{name:"position",description:"The position at which to start",constraint:W.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(o,e,t,i,n,s,r)=>Fo(void 0,void 0,void 0,function*(){_t(Ce.isUri(e)),_t(W.isIPosition(t)),_t(Array.isArray(i)),_t(typeof n>"u"||typeof n=="string"),_t(typeof r>"u"||typeof r=="boolean");const a=o.get(ut),l=yield a.openCodeEditor({resource:e},a.getFocusedCodeEditor());if(La(l))return l.setPosition(t),l.revealPositionInCenterIfOutsideViewport(t,0),l.invokeWithinContext(c=>{const d=new class extends oae{_getNoResultFoundMessage(h){return s||super._getNoResultFoundMessage(h)}}({muteMessage:!s,openInPeek:!!r,openToSide:!1},i,n);c.get(Me).invokeFunction(d.run.bind(d),l)})})});st.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Ce},{name:"position",description:"The position at which to start",constraint:W.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(o,e,t,i,n)=>Fo(void 0,void 0,void 0,function*(){o.get(ri).executeCommand("editor.action.goToLocations",e,t,i,n,void 0,!0)})});st.registerCommand({id:"editor.action.findReferences",handler:(o,e,t)=>{_t(Ce.isUri(e)),_t(W.isIPosition(t));const i=o.get(ge),n=o.get(ut);return n.openCodeEditor({resource:e},n.getFocusedCodeEditor()).then(s=>{if(!La(s)||!s.hasModel())return;const r=Vc.get(s);if(!r)return;const a=Wi(c=>Yw(i.referenceProvider,s.getModel(),W.lift(t),!1,c).then(d=>new _s(d,f("ref.title","References")))),l=new y(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(r.toggleWidget(l,a,!1))})}});st.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");var rae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},bL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},JP=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let Eh=class pv{constructor(e,t,i,n){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=n,this.toUnhook=new Z,this.toUnhookForKeyboard=new Z,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const s=new Uw(e);this.toUnhook.add(s),this.toUnhook.add(s.onMouseMoveOrRelevantKeyDown(([r,a])=>{this.startFindDefinitionFromMouse(r,an(a))})),this.toUnhook.add(s.onExecute(r=>{this.isEnabled(r)&&this.gotoDefinition(r.target.position,r.hasSideBySideModifier).catch(a=>{Oe(a)}).finally(()=>{this.removeLinkDecorations()})})),this.toUnhook.add(s.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(pv.ID)}startFindDefinitionFromCursor(e){return JP(this,void 0,void 0,function*(){yield this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(t=>{t&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(e.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}const i=e.target.position;this.startFindDefinition(i)}startFindDefinition(e){var t;return JP(this,void 0,void 0,function*(){this.toUnhookForKeyboard.clear();const i=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!i){this.currentWordAtPosition=null,this.removeLinkDecorations();return}if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return;this.currentWordAtPosition=i;const n=new j7(this.editor,15);this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Wi(a=>this.findDefinition(e,a));let s;try{s=yield this.previousPromise}catch(a){Oe(a);return}if(!s||!s.length||!n.validate(this.editor)){this.removeLinkDecorations();return}const r=s[0].originSelectionRange?y.lift(s[0].originSelectionRange):new y(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);if(s.length>1){let a=r;for(const{originSelectionRange:l}of s)l&&(a=y.plusRange(a,l));this.addDecoration(a,new Yn().appendText(f("multipleResults","Click to show {0} definitions.",s.length)))}else{const a=s[0];if(!a.uri)return;this.textModelResolverService.createModelReference(a.uri).then(l=>{if(!l.object||!l.object.textEditorModel){l.dispose();return}const{object:{textEditorModel:c}}=l,{startLineNumber:d}=a.range;if(d<1||d>c.getLineCount()){l.dispose();return}const h=this.getPreviewValue(c,d,a),u=this.languageService.guessLanguageIdByFilepathOrFirstLine(c.uri);this.addDecoration(r,h?new Yn().appendCodeblock(u||"",h):void 0),l.dispose()})}})}getPreviewValue(e,t,i){let n=i.range;return n.endLineNumber-n.startLineNumber>=pv.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,i){let s=e.getLineFirstNonWhitespaceColumn(t);for(let a=t+1;a{const n=!t&&this.editor.getOption(83)&&!this.isInPeekEditor(i);return new mb({openToSide:t,openInPeek:n,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(i)})}isInPeekEditor(e){const t=e.get(Ee);return ss.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};Eh.ID="editor.contrib.gotodefinitionatposition";Eh.MAX_SOURCE_PREVIEW_LINES=8;Eh=rae([bL(1,os),bL(2,Ut),bL(3,ge)],Eh);lt(Eh.ID,Eh,2);const C0=X;class m9 extends U{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new Y_(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class KN extends U{static render(e,t,i){return new KN(e,t,i)}constructor(e,t,i){super(),this.actionContainer=q(e,C0("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=q(this.actionContainer,C0("a.action")),this.action.setAttribute("role","button"),t.iconClass&&q(this.action,C0(`span.icon.${t.iconClass}`));const n=q(this.action,C0("span"));n.textContent=i?`${t.label} (${i})`:t.label,this._register(K(this.actionContainer,ae.CLICK,s=>{s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer)})),this._register(K(this.actionContainer,ae.KEY_DOWN,s=>{const r=new Nt(s);(r.equals(3)||r.equals(10))&&(s.stopPropagation(),s.preventDefault(),t.run(this.actionContainer))})),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}var aae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},lae=globalThis&&globalThis.__asyncValues||function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=o[Symbol.asyncIterator],t;return e?e.call(o):(o=typeof __values=="function"?__values(o):o[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(s){t[s]=o[s]&&function(r){return new Promise(function(a,l){r=o[s](r),n(a,l,r.done,r.value)})}}function n(s,r,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},r)}};let cae=class{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}};class _9 extends U{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new O),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new wt(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new wt(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new wt(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(57).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=UH(e=>this._computer.computeAsync(e)),aae(this,void 0,void 0,function*(){var e,t,i,n;try{try{for(var s=!0,r=lae(this._asyncIterable),a;a=yield r.next(),e=a.done,!e;){n=a.value,s=!1;try{const l=n;l&&(this._result.push(l),this._fireResult())}finally{s=!0}}}catch(l){t={error:l}}finally{try{!s&&!e&&(i=r.return)&&(yield i.call(r))}finally{if(t)throw t.error}}this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(l){Oe(l)}})):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;const e=this._state===0,t=this._state===4;this._onResult.fire(new cae(this._result.slice(0),e,t))}start(e){if(e===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}class vL{constructor(e,t,i,n){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=n,this.type=1}equals(e){return e.type===1&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return e.type===1&&t.lineNumber===this.range.startLineNumber}}class mv{constructor(e,t,i,n,s,r){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=n,this.initialMousePosY=s,this.supportsMarkerHover=r,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}}const ou=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}};class ko{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),n;if(n=ko._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(ko.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(ko.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(ko.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(ko.isVariableCharacter(i)||ko.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof ko._table[i]>"u"&&!ko.isDigitCharacter(i)&&!ko.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}}ko._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class Mf{constructor(){this._children=[]}appendChild(e){return e instanceof Fn&&this._children[this._children.length-1]instanceof Fn?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,function r(a,l){for(const c of a)c.parent=l,r(c.children,c)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof _b)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class Fn extends Mf{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new Fn(this.value)}}class b9 extends Mf{}class Xs extends b9{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Af?this._children[0]:void 0}clone(){const e=new Xs(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class Af extends Mf{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Fn&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new Af;return this.options.forEach(e.appendChild,e),e}}class qN extends Mf{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(s=>s instanceof Jo&&!!s.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof Jo){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new qN;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class Jo extends Mf{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new Jo(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class m_ extends b9{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new Fn(t)],!0):!1}clone(){const e=new m_(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function eO(o,e){const t=[...o];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class _b extends Mf{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof Xs&&(e.push(i),t=!t||t.indexn===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return eO([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof Xs&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof m_&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new _b;return this._children=this.children.map(t=>t.clone()),e}walk(e){eO(this.children,e)}}class Hc{constructor(){this._scanner=new ko,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new _b;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i??!1,t??!1),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,s=[];t.walk(l=>(l instanceof Xs&&(l.isFinalTabstop?n.set(0,void 0):!n.has(l.index)&&l.children.length>0?n.set(l.index,l.children):s.push(l)),!0));const r=(l,c)=>{const d=n.get(l.index);if(!d)return;const h=new Xs(l.index);h.transform=l.transform;for(const u of d){const g=u.clone();h.appendChild(g),g instanceof Xs&&n.has(g.index)&&!c.has(g.index)&&(c.add(g.index),r(g,c),c.delete(g.index))}t.replace(l,[h])},a=new Set;for(const l of s)r(l,a);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(s=>s.index===0)||e.appendChild(new Xs(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new Fn(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new Xs(Number(t)):new m_(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new Xs(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Fn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else if(s.index>0&&this._accept(7)){const r=new Af;for(;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(r),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new Fn(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new m_(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Fn("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseTransform(e){const t=new qN;let i="",n="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(5,!0)||this._accept(6,!0)||s,t.appendChild(new Fn(s));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(n)if(i){if(this._accept(4))return e.appendChild(new Jo(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Jo(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const s=this._accept(9,!0);return!s||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Jo(Number(n),s)),!0)}else if(this._accept(11)){const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,s,void 0)),!0}else if(this._accept(12)){const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,void 0,s)),!0}else if(this._accept(13)){const s=this._until(1);if(s){const r=this._until(4);if(r)return e.appendChild(new Jo(Number(n),void 0,s,r)),!0}}else{const s=this._until(4);if(s)return e.appendChild(new Jo(Number(n),void 0,void 0,s)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new Fn(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}const dae=f("defaultLabel","input"),hae=f("label.preserveCaseToggle","Preserve Case");class uae extends Ef{constructor(e){super({icon:se.preserveCase,title:hae+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class gae extends bo{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new O),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new O),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new O),this._onInput=this._register(new O),this._onKeyUp=this._register(new O),this._onPreserveCaseKeyDown=this._register(new O),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||dae;const s=n.appendPreserveCaseLabel||"",r=n.history||[],a=!!n.flexibleHeight,l=!!n.flexibleWidth,c=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new h7(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:r,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:c,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new uae(Object.assign({appendTitle:s,isChecked:!1},n.toggleStyles))),this._register(this.preserveCase.onChange(u=>{this._onDidOptionChange.fire(u),!u&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(u=>{this._onPreserveCaseKeyDown.fire(u)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const d=[this.preserveCase.domNode];this.onkeydown(this.domNode,u=>{if(u.equals(15)||u.equals(17)||u.equals(9)){const g=d.indexOf(document.activeElement);if(g>=0){let p=-1;u.equals(17)?p=(g+1)%d.length:u.equals(15)&&(g===0?p=d.length-1:p=g-1),u.equals(9)?(d[g].blur(),this.inputBox.focus()):p>=0&&d[p].focus(),ze.stop(u,!0)}}});const h=document.createElement("div");h.className="controls",h.style.display=this._showOptionButtons?"block":"none",h.appendChild(this.preserveCase.domNode),this.domNode.appendChild(h),e==null||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,u=>this._onKeyDown.fire(u)),this.onkeyup(this.inputBox.inputElement,u=>this._onKeyUp.fire(u)),this.oninput(this.inputBox.inputElement,u=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,u=>this._onMouseDown.fire(u))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){var e;(e=this.inputBox)===null||e===void 0||e.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var v9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},C9=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const GN=new ce("suggestWidgetVisible",!1,f("suggestWidgetVisible","Whether suggestion are visible")),ZN="historyNavigationWidgetFocus",w9="historyNavigationForwardsEnabled",S9="historyNavigationBackwardsEnabled";let ml;const w0=[];function y9(o,e){if(w0.includes(e))throw new Error("Cannot register the same widget multiple times");w0.push(e);const t=new Z,i=new ce(ZN,!1).bindTo(o),n=new ce(w9,!0).bindTo(o),s=new ce(S9,!0).bindTo(o),r=()=>{i.set(!0),ml=e},a=()=>{i.set(!1),ml===e&&(ml=void 0)};return e.element===document.activeElement&&r(),t.add(e.onDidFocus(()=>r())),t.add(e.onDidBlur(()=>a())),t.add(Pe(()=>{w0.splice(w0.indexOf(e),1),a()})),{historyNavigationForwardsEnablement:n,historyNavigationBackwardsEnablement:s,dispose(){t.dispose()}}}let uI=class extends u7{constructor(e,t,i,n){super(e,t,i);const s=this._register(n.createScoped(this.inputBox.element));this._register(y9(s,this.inputBox))}};uI=v9([C9(3,Ee)],uI);let gI=class extends gae{constructor(e,t,i,n,s=!1){super(e,t,s,i);const r=this._register(n.createScoped(this.inputBox.element));this._register(y9(r,this.inputBox))}};gI=v9([C9(3,Ee)],gI);is.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:oe.and(oe.has(ZN),oe.equals(S9,!0),GN.isEqualTo(!1)),primary:16,secondary:[528],handler:o=>{ml==null||ml.showPreviousValue()}});is.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:oe.and(oe.has(ZN),oe.equals(w9,!0),GN.isEqualTo(!1)),primary:18,secondary:[530],handler:o=>{ml==null||ml.showNextValue()}});var gm=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const Ge={Visible:GN,HasFocusedSuggestion:new ce("suggestWidgetHasFocusedSuggestion",!1,f("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new ce("suggestWidgetDetailsVisible",!1,f("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new ce("suggestWidgetMultipleSuggestions",!1,f("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new ce("suggestionMakesTextEdit",!0,f("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new ce("acceptSuggestionOnEnter",!0,f("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new ce("suggestionHasInsertAndReplaceRange",!1,f("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new ce("suggestionInsertMode",void 0,{type:"string",description:f("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new ce("suggestionCanResolve",!1,f("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},wc=new T("suggestWidgetStatusBar");class fae{constructor(e,t,i,n){this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=_r.Default,this.distance=0,this.textLabel=typeof t.label=="string"?t.label:t.label.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,y.isIRange(t.range)?(this.editStart=new W(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new W(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new W(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||y.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new W(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new W(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new W(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||y.spansMultipleLines(t.range.insert)||y.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),typeof n.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return gm(this,void 0,void 0,function*(){if(!this._resolveCache){const t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(i=>{Object.assign(this.completion,i),this._isResolved=!0,t.dispose()},i=>{Da(i)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache})}}class __{constructor(e=2,t=new Set,i=new Set,n=new Map,s=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.providerItemsToReuse=n,this.showDeprecated=s}}__.default=new __;let pae;function mae(){return pae}class _ae{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}function YN(o,e,t,i=__.default,n={triggerKind:0},s=Ye.None){return gm(this,void 0,void 0,function*(){const r=new ts(!0);t=t.clone();const a=e.getWordAtPosition(t),l=a?new y(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn):y.fromPositions(t),c={replace:l,insert:l.setEndPosition(t.lineNumber,t.column)},d=[],h=new Z,u=[];let g=!1;const p=(_,v,b)=>{var C,S,x;let E=!1;if(!v)return E;for(const L of v.suggestions)if(!i.kindFilter.has(L.kind)){if(!i.showDeprecated&&(!((C=L==null?void 0:L.tags)===null||C===void 0)&&C.includes(1)))continue;L.range||(L.range=c),L.sortText||(L.sortText=typeof L.label=="string"?L.label:L.label.label),!g&&L.insertTextRules&&L.insertTextRules&4&&(g=Hc.guessNeedsClipboard(L.insertText)),d.push(new fae(t,L,v,_)),E=!0}return wE(v)&&h.add(v),u.push({providerName:(S=_._debugDisplayName)!==null&&S!==void 0?S:"unknown_provider",elapsedProvider:(x=v.duration)!==null&&x!==void 0?x:-1,elapsedOverall:b.elapsed()}),E},m=(()=>gm(this,void 0,void 0,function*(){}))();for(const _ of o.orderedGroups(e)){let v=!1;if(yield Promise.all(_.map(b=>gm(this,void 0,void 0,function*(){if(i.providerItemsToReuse.has(b)){const C=i.providerItemsToReuse.get(b);C.forEach(S=>d.push(S)),v=v||C.length>0;return}if(!(i.providerFilter.size>0&&!i.providerFilter.has(b)))try{const C=new ts(!0),S=yield b.provideCompletionItems(e,t,n,s);v=p(b,S,C)||v}catch(C){Vi(C)}}))),v||s.isCancellationRequested)break}return yield m,s.isCancellationRequested?(h.dispose(),Promise.reject(new qc)):new _ae(d.sort(Cae(i.snippetSortOrder)),g,{entries:u,elapsed:r.elapsed()},h)})}function QN(o,e){if(o.sortTextLow&&e.sortTextLow){if(o.sortTextLowe.sortTextLow)return 1}return o.textLabele.textLabel?1:o.completion.kind-e.completion.kind}function bae(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return-1;if(e.completion.kind===27)return 1}return QN(o,e)}function vae(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return QN(o,e)}const Qw=new Map;Qw.set(0,bae);Qw.set(2,vae);Qw.set(1,QN);function Cae(o){return Qw.get(o)}st.registerCommand("_executeCompletionItemProvider",(o,...e)=>gm(void 0,void 0,void 0,function*(){const[t,i,n,s]=e;_t(Ce.isUri(t)),_t(W.isIPosition(i)),_t(typeof n=="string"||!n),_t(typeof s=="number"||!s);const{completionProvider:r}=o.get(ge),a=yield o.get(os).createModelReference(t);try{const l={incomplete:!1,suggestions:[]},c=[],d=yield YN(r,a.object.textEditorModel,W.lift(i),void 0,{triggerCharacter:n??void 0,triggerKind:n?1:0});for(const h of d.items)c.length<(s??0)&&c.push(h.resolve(Ye.None)),l.incomplete=l.incomplete||h.container.incomplete,l.suggestions.push(h.completion);try{return yield Promise.all(c),l}finally{setTimeout(()=>d.disposable.dispose(),100)}}finally{a.dispose()}}));function wae(o,e){var t;(t=o.getContribution("editor.contrib.suggestController"))===null||t===void 0||t.triggerSuggest(new Set().add(e),void 0,!0)}class sg{static isAllOff(e){return e.other==="off"&&e.comments==="off"&&e.strings==="off"}static isAllOn(e){return e.other==="on"&&e.comments==="on"&&e.strings==="on"}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}var XN=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},r1=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const tO=X;let a1=class fI extends U{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._widget=this._register(this._instantiationService.createInstance(ih,this._editor)),this._currentResult=null,this._participants=[];for(const n of ou.getAll())this._participants.push(this._instantiationService.createInstance(n,this._editor));this._participants.sort((n,s)=>n.hoverOrdinal-s.hoverOrdinal),this._computer=new l1(this._editor,this._participants),this._hoverOperation=this._register(new _9(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{if(!this._computer.anchor)return;const s=n.hasLoadingMessage?this._addLoadingMessage(n.value):n.value;this._withResult(new L9(this._computer.anchor,s,n.isComplete))})),this._register(hi(this._widget.getDomNode(),"keydown",n=>{n.equals(9)&&this.hide()})),this._register(Kt.onDidChange(()=>{this._widget.position&&this._currentResult&&(this._widget.clear(),this._setCurrentResult(this._currentResult))}))}maybeShowAt(e){const t=[];for(const n of this._participants)if(n.suggestHoverAnchor){const s=n.suggestHoverAnchor(e);s&&t.push(s)}const i=e.target;if(i.type===6&&t.push(new vL(0,i.range,e.event.posx,e.event.posy)),i.type===7){const n=this._editor.getOption(47).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&typeof i.detail.horizontalDistanceToText=="number"&&i.detail.horizontalDistanceToTexts.priority-n.priority),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,i,n){this._startShowingOrUpdateHover(new vL(0,e,void 0,void 0),t,i,n,null)}_startShowingOrUpdateHover(e,t,i,n,s){return!this._widget.position||!this._currentResult?e?(this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):!1:this._editor.getOption(57).sticky&&s&&this._widget.isMouseGettingCloser(s.event.posx,s.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,i,n,!0),!0):e?e&&this._currentResult.anchor.equals(e)?!0:e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,i,n,s){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=n,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=s,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&e.messages.length===0&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}isColorPickerVisible(){return this._widget.isColorPickerVisible}isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}containsNode(e){return this._widget.getDomNode().contains(e)}_addLoadingMessage(e){if(this._computer.anchor){for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}}return e}_withResult(e){this._widget.position&&this._currentResult&&this._currentResult.isComplete&&(!e.isComplete||this._computer.insistOnKeepingHoverVisible&&e.messages.length===0)||this._setCurrentResult(e)}_renderMessages(e,t){const{showAtPosition:i,showAtSecondaryPosition:n,highlightRange:s}=fI.computeHoverRanges(this._editor,e.range,t),r=new Z,a=r.add(new pI(this._keybindingService)),l=document.createDocumentFragment();let c=null;const d={fragment:l,statusBar:a,setColorPicker:u=>c=u,onContentsChanged:()=>this._widget.onContentsChanged(),hide:()=>this.hide()};for(const u of this._participants){const g=t.filter(p=>p.owner===u);g.length>0&&r.add(u.renderHoverParts(d,g))}const h=t.some(u=>u.isBeforeContent);if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(s){const u=this._editor.createDecorationsCollection();u.set([{range:s,options:fI._DECORATION_OPTIONS}]),r.add(Pe(()=>{u.clear()}))}this._widget.showAt(l,new yae(c,i,n,this._editor.getOption(57).above,this._computer.shouldFocus,this._computer.source,h,e.initialMousePosX,e.initialMousePosY,r))}else r.dispose()}static computeHoverRanges(e,t,i){let n=1;if(e.hasModel()){const c=e._getViewModel(),d=c.coordinatesConverter,h=d.convertModelRangeToViewRange(t),u=new W(h.startLineNumber,c.getLineMinColumn(h.startLineNumber));n=d.convertViewPositionToModelPosition(u).column}const s=t.startLineNumber;let r=t.startColumn,a=i[0].range,l=null;for(const c of i)a=y.plusRange(a,c.range),c.range.startLineNumber===s&&c.range.endLineNumber===s&&(r=Math.max(Math.min(r,c.range.startColumn),n)),c.forceShowAtRange&&(l=c.range);return{showAtPosition:l?l.getStartPosition():new W(s,t.startColumn),showAtSecondaryPosition:l?l.getStartPosition():new W(s,r),highlightRange:a}}};a1._DECORATION_OPTIONS=Re.register({description:"content-hover-highlight",className:"hoverHighlight"});a1=XN([r1(1,Me),r1(2,ei)],a1);class L9{constructor(e,t,i){this.anchor=e,this.messages=t,this.isComplete=i}filter(e){const t=this.messages.filter(i=>i.isValidForHoverAnchor(e));return t.length===this.messages.length?this:new Sae(this,this.anchor,t,this.isComplete)}}class Sae extends L9{constructor(e,t,i,n){super(t,i,n),this.original=e}filter(e){return this.original.filter(e)}}class yae{constructor(e,t,i,n,s,r,a,l,c,d){this.colorPicker=e,this.showAtPosition=t,this.showAtSecondaryPosition=i,this.preferAbove=n,this.stoleFocus=s,this.source=r,this.isBeforeContent=a,this.initialMousePosX=l,this.initialMousePosY=c,this.disposables=d,this.closestMouseDistance=void 0}}let ih=class D9 extends U{get position(){var e,t;return(t=(e=this._visibleData)===null||e===void 0?void 0:e.showAtPosition)!==null&&t!==void 0?t:null}get isColorPickerVisible(){var e;return!!(!((e=this._visibleData)===null||e===void 0)&&e.colorPicker)}get isVisibleFromKeyboard(){var e;return((e=this._visibleData)===null||e===void 0?void 0:e.source)===1}constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this.allowEditorOverflow=!0,this._hoverVisibleKey=N.hoverVisible.bindTo(this._contextKeyService),this._hover=this._register(new m9),this._visibleData=null,this._register(this._editor.onDidLayoutChange(()=>this._layout())),this._register(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(47)&&this._updateFont()})),this._setVisibleData(null),this._layout(),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),this._visibleData&&this._visibleData.disposables.dispose(),super.dispose()}getId(){return D9.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){if(!this._visibleData)return null;let e=this._visibleData.preferAbove;!e&&this._contextKeyService.getContextKeyValue(Ge.Visible.key)&&(e=!0);const t=this._visibleData.isBeforeContent?3:void 0;return{position:this._visibleData.showAtPosition,secondaryPosition:this._visibleData.showAtSecondaryPosition,preference:e?[1,2]:[2,1],positionAffinity:t}}isMouseGettingCloser(e,t){if(!this._visibleData)return!1;if(typeof this._visibleData.initialMousePosX>"u"||typeof this._visibleData.initialMousePosY>"u")return this._visibleData.initialMousePosX=e,this._visibleData.initialMousePosY=t,!1;const i=Fi(this.getDomNode());typeof this._visibleData.closestMouseDistance>"u"&&(this._visibleData.closestMouseDistance=iO(this._visibleData.initialMousePosX,this._visibleData.initialMousePosY,i.left,i.top,i.width,i.height));const n=iO(e,t,i.left,i.top,i.width,i.height);return n>this._visibleData.closestMouseDistance+4?!1:(this._visibleData.closestMouseDistance=Math.min(this._visibleData.closestMouseDistance,n),!0)}_setVisibleData(e){this._visibleData&&this._visibleData.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!this._visibleData),this._hover.containerDomNode.classList.toggle("hidden",!this._visibleData)}_layout(){const e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:i}=this._editor.getOption(47);this._hover.contentsDomNode.style.fontSize=`${t}px`,this._hover.contentsDomNode.style.lineHeight=`${i/t}`,this._hover.contentsDomNode.style.maxHeight=`${e}px`,this._hover.contentsDomNode.style.maxWidth=`${Math.max(this._editor.getLayoutInfo().width*.66,500)}px`}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}showAt(e,t){var i;this._setVisibleData(t),this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._hover.contentsDomNode.style.paddingBottom="",this._updateFont(),this.onContentsChanged(),this._editor.render(),this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),(i=t.colorPicker)===null||i===void 0||i.layout()}hide(){if(this._visibleData){const e=this._visibleData.stoleFocus;this._setVisibleData(null),this._editor.layoutContentWidget(this),e&&this._editor.focus()}}onContentsChanged(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged();const e=this._hover.scrollbar.getScrollDimensions();if(e.scrollWidth>e.width){const i=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingBottom!==i&&(this._hover.contentsDomNode.style.paddingBottom=i,this._editor.layoutContentWidget(this),this._hover.onContentsChanged())}}clear(){this._hover.contentsDomNode.textContent=""}};ih.ID="editor.contrib.contentHoverWidget";ih=XN([r1(1,Ee)],ih);let pI=class extends U{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=tO("div.hover-row.status-bar"),this.actionsElement=q(this.hoverElement,tO("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(KN.render(this.actionsElement,e,i))}append(e){const t=q(this.actionsElement,e);return this._hasContent=!0,t}};pI=XN([r1(0,ei)],pI);class l1{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(t.type!==1&&!t.supportsMarkerHover)return[];const i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];const s=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter(r=>{if(r.options.isWholeLine)return!0;const a=r.range.startLineNumber===n?r.range.startColumn:1,l=r.range.endLineNumber===n?r.range.endColumn:s;if(r.options.showIfCollapsed){if(a>t.range.startColumn+1||t.range.endColumn-1>l)return!1}else if(a>t.range.startColumn||t.range.endColumn>l)return!1;return!0})}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return pi.EMPTY;const i=l1._getLineDecorations(this._editor,t);return pi.merge(this._participants.map(n=>n.computeAsync?n.computeAsync(t,i,e):pi.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=l1._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return mf(t)}}function iO(o,e,t,i,n,s){const r=t+n/2,a=i+s/2,l=Math.max(Math.abs(o-r)-n/2,0),c=Math.max(Math.abs(e-a)-s/2,0);return Math.sqrt(l*l+c*c)}var Lae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},nO=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},x9=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})},CL;let Ll=class k9{constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new O,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e)return{element:document.createElement("span"),dispose:()=>{}};const n=new Z;return{element:n.add(C3(e,Object.assign(Object.assign({},this._getRenderOptions(e,n)),t),i)).element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:(i,n)=>x9(this,void 0,void 0,function*(){var s,r,a;let l;i?l=this._languageService.getLanguageIdByLanguageName(i):this._options.editor&&(l=(s=this._options.editor.getModel())===null||s===void 0?void 0:s.getLanguageId()),l||(l=Vs);const c=yield kY(this._languageService,n,l),d=document.createElement("span");if(d.innerHTML=(a=(r=k9._ttpTokenizer)===null||r===void 0?void 0:r.createHTML(c))!==null&&a!==void 0?a:c,this._options.editor){const h=this._options.editor.getOption(47);Yi(d,h)}else this._options.codeBlockFontFamily&&(d.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(d.style.fontSize=this._options.codeBlockFontSize),d}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:i=>Dae(this._openerService,i,e.isTrusted),disposables:t}}}};Ll._ttpTokenizer=(CL=window.trustedTypes)===null||CL===void 0?void 0:CL.createPolicy("tokenizeToString",{createHTML(o){return o}});Ll=Lae([nO(1,Ut),nO(2,vo)],Ll);function Dae(o,e,t){return x9(this,void 0,void 0,function*(){try{return yield o.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:xae(t)})}catch(i){return Oe(i),!1}})}function xae(o){return o===!0?!0:o&&Array.isArray(o.enabledCommands)?o.enabledCommands:!1}const sO=X;class xg extends U{constructor(e,t,i){super(),this._renderDisposeables=this._register(new Z),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new m9),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new Ll({editor:this._editor},t,i)),this._computer=new kae(this._editor),this._hoverOperation=this._register(new _9(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{this._withResult(n.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(47)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return xg.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const n of t){const s=sO("div.hover-row.markdown-hover"),r=q(s,sO("div.hover-contents")),a=this._renderDisposeables.add(this._markdownRenderer.render(n.value));r.appendChild(a.element),i.appendChild(s)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),s=this._editor.getOption(63),r=this._hover.containerDomNode.clientHeight,a=i-n-(r-s)/2;this._hover.containerDomNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(a),0)}px`}}xg.ID="editor.contrib.modesGlyphHoverWidget";class kae{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}constructor(e){this._editor=e,this._lineNumber=-1}computeSync(){const e=n=>({value:n}),t=this._editor.getLineDecorations(this._lineNumber),i=[];if(!t)return i;for(const n of t){if(!n.options.glyphMarginClassName)continue;const s=n.options.glyphMarginHoverMessage;!s||Zg(s)||i.push(...vE(s).map(e))}return i}}var Iae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class Eae{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function Tae(o,e,t,i,n){return Iae(this,void 0,void 0,function*(){try{const s=yield Promise.resolve(o.provideHover(t,i,n));if(s&&Mae(s))return new Eae(o,s,e)}catch(s){Vi(s)}})}function JN(o,e,t,i){const s=o.ordered(e).map((r,a)=>Tae(r,a,e,t,i));return pi.fromPromises(s).coalesce()}function Nae(o,e,t,i){return JN(o,e,t,i).map(n=>n.hover).toPromise()}Ta("_executeHoverProvider",(o,e,t)=>{const i=o.get(ge);return Nae(i.hoverProvider,e,t,Ye.None)});function Mae(o){const e=typeof o.range<"u",t=typeof o.contents<"u"&&o.contents&&o.contents.length>0;return e&&t}var Aae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},S0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const oO=X;class rr{constructor(e,t,i,n,s){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=n,this.ordinal=s}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let c1=class{constructor(e,t,i,n,s){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=s,this.hoverOrdinal=2}createLoadingMessage(e){return new rr(this,e.range,[new Yn().appendText(f("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];let a=1e3;const l=i.getLineLength(n),c=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),d=this._editor.getOption(111),h=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:c});let u=!1;d>=0&&l>d&&e.range.startColumn>=d&&(u=!0,r.push(new rr(this,e.range,[{value:f("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,a++))),!u&&typeof h=="number"&&l>=h&&r.push(new rr(this,e.range,[{value:f("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,a++));let g=!1;for(const p of t){const m=p.range.startLineNumber===n?p.range.startColumn:1,_=p.range.endLineNumber===n?p.range.endColumn:s,v=p.options.hoverMessage;if(!v||Zg(v))continue;p.options.beforeContentClassName&&(g=!0);const b=new y(e.range.startLineNumber,m,e.range.startLineNumber,_);r.push(new rr(this,b,vE(v),g,a++))}return r}computeAsync(e,t,i){if(!this._editor.hasModel()||e.type!==1)return pi.EMPTY;const n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return pi.EMPTY;const s=new W(e.range.startLineNumber,e.range.startColumn);return JN(this._languageFeaturesService.hoverProvider,n,s,i).filter(r=>!Zg(r.hover.contents)).map(r=>{const a=r.hover.range?y.lift(r.hover.range):e.range;return new rr(this,a,r.hover.contents,!1,r.ordinal)})}renderHoverParts(e,t){return I9(e,t,this._editor,this._languageService,this._openerService)}};c1=Aae([S0(1,Ut),S0(2,vo),S0(3,at),S0(4,ge)],c1);function I9(o,e,t,i,n){e.sort((r,a)=>r.ordinal-a.ordinal);const s=new Z;for(const r of e)for(const a of r.contents){if(Zg(a))continue;const l=oO("div.hover-row.markdown-hover"),c=q(l,oO("div.hover-contents")),d=s.add(new Ll({editor:t},i,n));s.add(d.onDidRenderAsync(()=>{c.className="hover-contents code-hover-contents",o.onContentsChanged()}));const h=s.add(d.render(a));c.appendChild(h.element),o.fragment.appendChild(l)}return s}var E9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},d1=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class rO{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let mI=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._dispoables=new Z,this._markers=[],this._nextIdx=-1,Ce.isUri(e)?this._resourceFilter=a=>a.toString()===e.toString():e&&(this._resourceFilter=e);const n=this._configService.getValue("problems.sortOrder"),s=(a,l)=>{let c=Sm(a.resource.toString(),l.resource.toString());return c===0&&(n==="position"?c=y.compareRangesUsingStarts(a,l)||qt.compare(a.severity,l.severity):c=qt.compare(a.severity,l.severity)||y.compareRangesUsingStarts(a,l)),c},r=()=>{this._markers=this._markerService.read({resource:Ce.isUri(e)?e:void 0,severities:qt.Error|qt.Warning|qt.Info}),typeof e=="function"&&(this._markers=this._markers.filter(a=>this._resourceFilter(a.resource))),this._markers.sort(s)};r(),this._dispoables.add(t.onMarkerChanged(a=>{(!this._resourceFilter||a.some(l=>this._resourceFilter(l)))&&(r(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e?!0:!this._resourceFilter||!e?!1:this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new rO(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,s=this._markers.findIndex(r=>r.resource.toString()===e.uri.toString());s<0&&(s=bm(this._markers,{resource:e.uri},(r,a)=>Sm(r.resource.toString(),a.resource.toString())),s<0&&(s=~s));for(let r=s;rn.resource.toString()===e.toString());if(!(i<0)){for(;i=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yu=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};class Pae{constructor(e,t,i,n,s){this._openerService=n,this._labelService=s,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new Z,this._editor=t;const r=document.createElement("div");r.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),r.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),r.appendChild(this._relatedBlock),this._disposables.add(hi(this._relatedBlock,"click",a=>{a.preventDefault();const l=this._relatedDiagnostics.get(a.target);l&&i(l)})),this._scrollable=new p5(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(a=>{r.style.left=`-${a.scrollLeft}px`,r.style.top=`-${a.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){ft(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:s}=e;let r=((t==null?void 0:t.length)||0)+2;s&&(typeof s=="string"?r+=s.length:r+=s.value.length);const a=ma(i);this._lines=a.length,this._longestLineLength=0;for(const u of a)this._longestLineLength=Math.max(u.length+r,this._longestLineLength);xi(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let l=this._messageBlock;for(const u of a)l=document.createElement("div"),l.innerText=u,u===""&&(l.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(l);if(t||s){const u=document.createElement("span");if(u.classList.add("details"),l.appendChild(u),t){const g=document.createElement("span");g.innerText=t,g.classList.add("source"),u.appendChild(g)}if(s)if(typeof s=="string"){const g=document.createElement("span");g.innerText=`(${s})`,g.classList.add("code"),u.appendChild(g)}else{this._codeLink=X("a.code-link"),this._codeLink.setAttribute("href",`${s.target.toString()}`),this._codeLink.onclick=p=>{this._openerService.open(s.target,{allowCommands:!0}),p.preventDefault(),p.stopPropagation()};const g=q(this._codeLink,X("span"));g.innerText=s.value,u.appendChild(this._codeLink)}}if(xi(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Cn(n)){const u=this._relatedBlock.appendChild(document.createElement("div"));u.style.paddingTop=`${Math.floor(this._editor.getOption(63)*.66)}px`,this._lines+=1;for(const g of n){const p=document.createElement("div"),m=document.createElement("a");m.classList.add("filename"),m.innerText=`${this._labelService.getUriBasenameLabel(g.resource)}(${g.startLineNumber}, ${g.startColumn}): `,m.title=this._labelService.getUriLabel(g.resource),this._relatedDiagnostics.set(m,g);const _=document.createElement("span");_.innerText=g.message,p.appendChild(m),p.appendChild(_),this._lines+=1,u.appendChild(p)}}const c=this._editor.getOption(47),d=Math.ceil(c.typicalFullwidthCharacterWidth*this._longestLineLength*.75),h=c.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:d,scrollHeight:h})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case qt.Error:t=f("Error","Error");break;case qt.Warning:t=f("Warning","Warning");break;case qt.Info:t=f("Info","Info");break;case qt.Hint:t=f("Hint","Hint");break}let i=f("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const n=this._editor.getModel();return n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1&&(i=`${n.getLineContent(e.startLineNumber)}, ${i}`),i}}let af=class N9 extends o1{constructor(e,t,i,n,s,r,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},s),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=r,this._labelService=a,this._callOnDispose=new Z,this._onDidSelectRelatedInformation=new O,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=qt.Warning,this._backgroundColor=H.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(Wae);let t=vI,i=Oae;this._severity===qt.Warning?(t=_v,i=Fae):this._severity===qt.Info&&(t=CI,i=Bae);const n=e.getColor(t),s=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:s,primaryHeadingColor:e.getColor(J8),secondaryHeadingColor:e.getColor(e9)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun(n=>this.editor.focus()));const t=[],i=this._menuService.createMenu(N9.TitleMenu,this._contextKeyService);J3(i,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=q(e,X(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new Pae(this._container,this.editor,t=>this._onDidSelectRelatedInformation.fire(t),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const n=y.lift(e),s=this.editor.getPosition(),r=s&&n.containsPosition(s)?s:n.getStartPosition();super.show(r,this.computeRequiredHeight());const a=this.editor.getModel();if(a){const l=i>1?f("problems","{0} of {1} problems",t,i):f("change","{0} of {1} problem",t,i);this.setTitle(uo(a.uri),l)}this._icon.className=`codicon ${bI.className(qt.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(r,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};af.TitleMenu=new T("gotoErrorTitleMenu");af=Rae([yu(1,Hi),yu(2,vo),yu(3,Ea),yu(4,Me),yu(5,Ee),yu(6,Yg)],af);const aO=Am(ia,sj),lO=Am(Fs,Mm),cO=Am(es,gx),vI=M("editorMarkerNavigationError.background",{dark:aO,light:aO,hcDark:Ze,hcLight:Ze},f("editorMarkerNavigationError","Editor marker navigation widget error color.")),Oae=M("editorMarkerNavigationError.headerBackground",{dark:pe(vI,.1),light:pe(vI,.1),hcDark:null,hcLight:null},f("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),_v=M("editorMarkerNavigationWarning.background",{dark:lO,light:lO,hcDark:Ze,hcLight:Ze},f("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Fae=M("editorMarkerNavigationWarning.headerBackground",{dark:pe(_v,.1),light:pe(_v,.1),hcDark:"#0C141F",hcLight:pe(_v,.2)},f("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),CI=M("editorMarkerNavigationInfo.background",{dark:cO,light:cO,hcDark:Ze,hcLight:Ze},f("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),Bae=M("editorMarkerNavigationInfo.headerBackground",{dark:pe(CI,.1),light:pe(CI,.1),hcDark:null,hcLight:null},f("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),Wae=M("editorMarkerNavigation.background",{dark:Ti,light:Ti,hcDark:Ti,hcLight:Ti},f("editorMarkerNavigationBackground","Editor marker navigation widget background."));var Vae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},y0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},M9=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let zc=class bv{static get(e){return e.getContribution(bv.ID)}constructor(e,t,i,n,s){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=s,this._sessionDispoables=new Z,this._editor=e,this._widgetVisible=A9.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(af,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(i=>{var n,s,r;(!(!((n=this._model)===null||n===void 0)&&n.selected)||!y.containsPosition((s=this._model)===null||s===void 0?void 0:s.selected.marker,i.position))&&((r=this._model)===null||r===void 0||r.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const i=this._model.find(this._editor.getModel().uri,this._widget.position);i?this._widget.updateMarker(i.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(i=>{this._editorService.openCodeEditor({resource:i.resource,options:{pinned:!0,revealIfOpened:!0,selection:y.lift(i).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new W(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(e,t){var i,n;return M9(this,void 0,void 0,function*(){if(this._editor.hasModel()){const s=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(s.move(e,this._editor.getModel(),this._editor.getPosition()),!s.selected)return;if(s.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const r=yield this._editorService.openCodeEditor({resource:s.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:s.selected.marker}},this._editor);r&&((i=bv.get(r))===null||i===void 0||i.close(),(n=bv.get(r))===null||n===void 0||n.nagivate(e,t))}else this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total)}})}};zc.ID="editor.contrib.markerController";zc=Vae([y0(1,T9),y0(2,Ee),y0(3,ut),y0(4,Me)],zc);class Xw extends de{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}run(e,t){var i;return M9(this,void 0,void 0,function*(){t.hasModel()&&((i=zc.get(t))===null||i===void 0||i.nagivate(this._next,this._multiFile))})}}class Sc extends Xw{constructor(){super(!0,!1,{id:Sc.ID,label:Sc.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:578,weight:100},menuOpts:{menuId:af.TitleMenu,title:Sc.LABEL,icon:gi("marker-navigation-next",se.arrowDown,f("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}Sc.ID="editor.action.marker.next";Sc.LABEL=f("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class nh extends Xw{constructor(){super(!1,!1,{id:nh.ID,label:nh.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:1602,weight:100},menuOpts:{menuId:af.TitleMenu,title:nh.LABEL,icon:gi("marker-navigation-previous",se.arrowUp,f("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}nh.ID="editor.action.marker.prev";nh.LABEL=f("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");class Hae extends Xw{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:f("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:66,weight:100},menuOpts:{menuId:T.MenubarGoMenu,title:f({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}class zae extends Xw{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:f("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:N.focus,primary:1090,weight:100},menuOpts:{menuId:T.MenubarGoMenu,title:f({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}}lt(zc.ID,zc,4);J(Sc);J(nh);J(Hae);J(zae);const A9=new ce("markersNavigationVisible",!1),Uae=Ji.bindToContribution(zc.get);ie(new Uae({id:"closeMarkersNavigation",precondition:A9,handler:o=>o.close(),kbOpts:{weight:100+50,kbExpr:N.focus,primary:9,secondary:[1033]}}));var $ae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},wL=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const yo=X;class jae{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const dO={type:1,filter:{include:Te.QuickFix},triggerAction:ns.QuickFixHover};let wI=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=5,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1&&!e.supportsMarkerHover)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];for(const a of t){const l=a.range.startLineNumber===n?a.range.startColumn:1,c=a.range.endLineNumber===n?a.range.endColumn:s,d=this._markerDecorationsService.getMarker(i.uri,a);if(!d)continue;const h=new y(e.range.startLineNumber,l,e.range.startLineNumber,c);r.push(new jae(this,h,d))}return r}renderHoverParts(e,t){if(!t.length)return U.None;const i=new Z;t.forEach(s=>e.fragment.appendChild(this.renderMarkerHover(s,i)));const n=t.length===1?t[0]:t.sort((s,r)=>qt.compare(s.marker.severity,r.marker.severity))[0];return this.renderMarkerStatusbar(e,n,i),i}renderMarkerHover(e,t){const i=yo("div.hover-row"),n=q(i,yo("div.marker.hover-contents")),{source:s,message:r,code:a,relatedInformation:l}=e.marker;this._editor.applyFontInfo(n);const c=q(n,yo("span"));if(c.style.whiteSpace="pre-wrap",c.innerText=r,s||a)if(a&&typeof a!="string"){const d=yo("span");if(s){const p=q(d,yo("span"));p.innerText=s}const h=q(d,yo("a.code-link"));h.setAttribute("href",a.target.toString()),t.add(K(h,"click",p=>{this._openerService.open(a.target,{allowCommands:!0}),p.preventDefault(),p.stopPropagation()}));const u=q(h,yo("span"));u.innerText=a.value;const g=q(n,d);g.style.opacity="0.6",g.style.paddingLeft="6px"}else{const d=q(n,yo("span"));d.style.opacity="0.6",d.style.paddingLeft="6px",d.innerText=s&&a?`${s}(${a})`:s||`(${a})`}if(Cn(l))for(const{message:d,resource:h,startLineNumber:u,startColumn:g}of l){const p=q(n,yo("div"));p.style.marginTop="8px";const m=q(p,yo("a"));m.innerText=`${uo(h)}(${u}, ${g}): `,m.style.cursor="pointer",t.add(K(m,"click",v=>{v.stopPropagation(),v.preventDefault(),this._openerService&&this._openerService.open(h,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:u,startColumn:g}}}).catch(Oe)}));const _=q(p,yo("span"));_.innerText=d,this._editor.applyFontInfo(_)}return i}renderMarkerStatusbar(e,t,i){if((t.marker.severity===qt.Error||t.marker.severity===qt.Warning||t.marker.severity===qt.Info)&&e.statusBar.addAction({label:f("view problem","View Problem"),commandId:Sc.ID,run:()=>{var n;e.hide(),(n=zc.get(this._editor))===null||n===void 0||n.showAtMarker(t.marker),this._editor.focus()}}),!this._editor.getOption(86)){const n=e.statusBar.append(yo("div"));this.recentMarkerCodeActionsInfo&&(UC.makeKey(this.recentMarkerCodeActionsInfo.marker)===UC.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=f("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const s=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?U.None:i.add(dh(()=>n.textContent=f("checkingForQuickFixes","Checking for quick fixes..."),200));n.textContent||(n.textContent=String.fromCharCode(160));const r=this.getCodeActions(t.marker);i.add(Pe(()=>r.cancel())),r.then(a=>{if(s.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:a.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){a.dispose(),n.textContent=f("noQuickFixes","No quick fixes available");return}n.style.display="none";let l=!1;i.add(Pe(()=>{l||a.dispose()})),e.statusBar.addAction({label:f("quick fixes","Quick Fix..."),commandId:Nf.Id,run:c=>{l=!0;const d=kh.get(this._editor),h=Fi(c);e.hide(),d==null||d.showCodeActions(dO,a,{x:h.left+6,y:h.top+h.height+6,width:h.width,height:h.height})}})},Oe)}}getCodeActions(e){return Wi(t=>UN(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),dO,Qh.None,t))}};wI=$ae([wL(1,iT),wL(2,vo),wL(3,ge)],wI);const R9="editor.action.inlineSuggest.commit",P9="editor.action.inlineSuggest.showPrevious",O9="editor.action.inlineSuggest.showNext";var Kae=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};class qae extends U{constructor(e,t,i={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new ZW),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=new Z,this.options=i,this.lookupKeybindings=typeof this.options.getKeyBinding=="function",this.toggleMenuAction=this._register(new b_(()=>{var n;return(n=this.toggleMenuActionViewItem)===null||n===void 0?void 0:n.show()},i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new go(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,actionViewItemProvider:(n,s)=>{var r;if(n.id===b_.ID)return this.toggleMenuActionViewItem=new OC(n,n.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:De.asClassNameArray((r=i.moreIcon)!==null&&r!==void 0?r:se.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const a=i.actionViewItemProvider(n,s);if(a)return a}if(n instanceof Hg){const a=new OC(n,n.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:n.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement});return a.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(a),this.disposables.add(this._onDidChangeDropdownVisibility.add(a.onDidChangeVisibility)),a}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach(n=>{this.actionBar.push(n,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(n)})})}getKeybindingLabel(e){var t,i;const n=this.lookupKeybindings?(i=(t=this.options).getKeyBinding)===null||i===void 0?void 0:i.call(t,e):void 0;return an(n==null?void 0:n.getLabel())}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),super.dispose()}}class b_ extends ms{constructor(e,t){t=t||f("moreActions","More Actions..."),super(b_.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}run(){return Kae(this,void 0,void 0,function*(){this.toggleDropdownMenu()})}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}b_.ID="toolbar.toggle.more";var Gae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},rp=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let SI=class extends qae{constructor(e,t,i,n,s,r,a){super(e,s,Object.assign(Object.assign({getKeyBinding:l=>{var c;return(c=r.lookupKeybinding(l.id))!==null&&c!==void 0?c:void 0}},t),{allowContextMenu:!0})),this._options=t,this._menuService=i,this._contextKeyService=n,this._contextMenuService=s,this._sessionDisposables=this._store.add(new Z),t!=null&&t.telemetrySource&&this._store.add(this.actionBar.onDidRun(l=>a.publicLog2("workbenchActionExecuted",{id:l.action.id,from:t.telemetrySource})))}setActions(e,t=[],i){var n,s,r;this._sessionDisposables.clear();const a=e.slice(),l=t.slice(),c=[];let d=0;const h=[];let u=!1;if(((n=this._options)===null||n===void 0?void 0:n.hiddenItemStrategy)!==-1)for(let g=0;g=this._options.maxNumberOfItems&&(a[p]=void 0,h[p]=m)}}T2(a),T2(h),super.setActions(a,Bi.join(h,l)),c.length>0&&this._sessionDisposables.add(K(this.getElement(),"contextmenu",g=>{var p,m,_,v;const b=this.getItemAction(g.target);if(!b)return;g.preventDefault(),g.stopPropagation();let C=!1;if(d===1&&((p=this._options)===null||p===void 0?void 0:p.hiddenItemStrategy)===0){C=!0;for(let E=0;Ethis._menuService.resetHiddenStates(i)}))),this._contextMenuService.showContextMenu({getAnchor:()=>g,getActions:()=>x,menuId:(_=this._options)===null||_===void 0?void 0:_.contextMenu,menuActionOptions:Object.assign({renderShortTitle:!0},(v=this._options)===null||v===void 0?void 0:v.menuOptions),contextKeyService:this._contextKeyService})}))}};SI=Gae([rp(2,Ea),rp(3,Ee),rp(4,xr),rp(5,ei),rp(6,mo)],SI);var F9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Qr=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};const Zae=gi("inline-suggestion-hints-next",se.chevronRight,f("parameterHintsNextIcon","Icon for show next parameter hint.")),Yae=gi("inline-suggestion-hints-previous",se.chevronLeft,f("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Th=class yI extends U{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,i){const n=new ms(e,t,i,!0,()=>this._commandService.executeCommand(e)),s=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let r=t;return s&&(r=f({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,s.getLabel())),n.tooltip=r,n}constructor(e,t,i,n,s,r,a){super(),this.editor=e,this.withBorder=t,this._commandService=i,this.keybindingService=s,this._contextKeyService=r,this._menuService=a,this.id=`InlineSuggestionHintsContentWidget${yI.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=vp("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[vp("div",{style:{display:"flex"}},[vp("div@actionBar",{className:"custom-actions"}),vp("div@toolBar")])]),this.position=null,this.previousAction=this.createCommandAction(P9,f("previous","Previous"),De.asClassName(Yae)),this.availableSuggestionCountAction=new ms("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(O9,f("next","Next"),De.asClassName(Zae)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(T.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new wt(()=>{this.availableSuggestionCountAction.label=""},100)),this.disableButtonsDebounced=this._register(new wt(()=>{this.previousAction.enabled=this.nextAction.enabled=!1},100));const l=this._register(new go(this.nodes.actionBar));l.push(this.previousAction,{icon:!0,label:!1}),l.push(this.availableSuggestionCountAction),l.push(this.nextAction,{icon:!0,label:!1}),this.toolBar=this._register(n.createInstance(LI,this.nodes.toolBar,T.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:c=>c.startsWith("primary")},actionViewItemProvider:(c,d)=>c instanceof Vo?n.createInstance(Qae,c,void 0):void 0,telemetrySource:"InlineSuggestionToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility(c=>{yI._dropDownVisible=c}))}update(e,t,i,n){this.position=e,i!==void 0&&i>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule(),i!==void 0?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${t+1}/${i}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),this.editor.layoutContentWidget(this);const s=n.map(r=>({class:void 0,id:r.id,enabled:!0,tooltip:r.tooltip||"",label:r.title,run:a=>this._commandService.executeCommand(r.id)}));for(const[r,a]of this.inlineCompletionsActionsMenus.getActions())for(const l of a)l instanceof Vo&&s.push(l);s.length>0&&s.unshift(new Bi),this.toolBar.setAdditionalSecondaryActions(s)}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this.position,preference:[1,2],positionAffinity:3}}};Th._dropDownVisible=!1;Th.id=0;Th=F9([Qr(2,ri),Qr(3,Me),Qr(4,ei),Qr(5,Ee),Qr(6,Ea)],Th);let Qae=class extends bh{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=vp("div.keybinding").root;new nb(t,Ps,{disableTitle:!0}).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}},LI=class extends SI{constructor(e,t,i,n,s,r,a,l){super(e,Object.assign({resetMenu:t},i),n,s,r,a,l),this.menuId=t,this.options2=i,this.menuService=n,this.contextKeyService=s,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this._store.add(this.menu.onDidChange(()=>this.updateToolbar())),this.updateToolbar()}updateToolbar(){var e,t,i,n,s,r,a;const l=[],c=[];J3(this.menu,(e=this.options2)===null||e===void 0?void 0:e.menuOptions,{primary:l,secondary:c},(i=(t=this.options2)===null||t===void 0?void 0:t.toolbarOptions)===null||i===void 0?void 0:i.primaryGroup,(s=(n=this.options2)===null||n===void 0?void 0:n.toolbarOptions)===null||s===void 0?void 0:s.shouldInlineSubmenu,(a=(r=this.options2)===null||r===void 0?void 0:r.toolbarOptions)===null||a===void 0?void 0:a.useSeparatorsInPrimaryActions),c.push(...this.additionalActions),this.setActions(l,c)}setAdditionalSecondaryActions(e){this.additionalActions=e,this.updateToolbar()}};LI=F9([Qr(3,Ea),Qr(4,Ee),Qr(5,xr),Qr(6,ei),Qr(7,mo)],LI);var Xae=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},L0=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let Uc=class B9{static get(e){return e.getContribution(B9.ID)}constructor(e,t,i,n,s){this._editor=e,this._instantiationService=t,this._openerService=i,this._languageService=n,this._toUnhook=new Z,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(r=>{r.hasChanged(57)&&(this._unhookEvents(),this._hookEvents())})}_hookEvents(){const e=()=>this._hideWidgets(),t=this._editor.getOption(57);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(i=>this._onEditorMouseDown(i))),this._toUnhook.add(this._editor.onMouseUp(i=>this._onEditorMouseUp(i))),this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))):(this._toUnhook.add(this._editor.onMouseMove(i=>this._onEditorMouseMove(i))),this._toUnhook.add(this._editor.onKeyDown(i=>this._onKeyDown(i)))),this._toUnhook.add(this._editor.onMouseLeave(i=>this._onEditorMouseLeave(i))),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(i=>this._onEditorScrollChanged(i)))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._isMouseDown=!0;const t=e.target;if(t.type===9&&t.detail===ih.ID){this._hoverClicked=!0;return}t.type===12&&t.detail===xg.ID||(t.type!==12&&(this._hoverClicked=!1),this._hideWidgets())}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseLeave(e){var t;const i=e.event.browserEvent.relatedTarget;!((t=this._contentWidget)===null||t===void 0)&&t.containsNode(i)||this._hideWidgets()}_onEditorMouseMove(e){var t,i,n,s,r,a;const l=e.target;if(this._isMouseDown&&this._hoverClicked||this._isHoverSticky&&l.type===9&&l.detail===ih.ID||this._isHoverSticky&&!(!((i=(t=e.event.browserEvent.view)===null||t===void 0?void 0:t.getSelection())===null||i===void 0)&&i.isCollapsed)||!this._isHoverSticky&&l.type===9&&l.detail===ih.ID&&(!((n=this._contentWidget)===null||n===void 0)&&n.isColorPickerVisible())||this._isHoverSticky&&l.type===12&&l.detail===xg.ID||this._isHoverSticky&&(!((s=this._contentWidget)===null||s===void 0)&&s.isVisibleFromKeyboard()))return;if(!this._isHoverEnabled){this._hideWidgets();return}if(this._getOrCreateContentWidget().maybeShowAt(e)){(r=this._glyphWidget)===null||r===void 0||r.hide();return}if(l.type===2&&l.position){(a=this._contentWidget)===null||a===void 0||a.hide(),this._glyphWidget||(this._glyphWidget=new xg(this._editor,this._languageService,this._openerService)),this._glyphWidget.startShowingAt(l.position.lineNumber);return}this._hideWidgets()}_onKeyDown(e){e.keyCode!==5&&e.keyCode!==6&&e.keyCode!==57&&e.keyCode!==4&&this._hideWidgets()}_hideWidgets(){var e,t,i;this._isMouseDown&&this._hoverClicked&&(!((e=this._contentWidget)===null||e===void 0)&&e.isColorPickerVisible())||Th.dropDownVisible||(this._hoverClicked=!1,(t=this._glyphWidget)===null||t===void 0||t.hide(),(i=this._contentWidget)===null||i===void 0||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(a1,this._editor)),this._contentWidget}isColorPickerVisible(){var e;return((e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible())||!1}showContentHover(e,t,i,n){this._getOrCreateContentWidget().startShowingAtRange(e,t,i,n)}dispose(){var e,t;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),(e=this._glyphWidget)===null||e===void 0||e.dispose(),(t=this._contentWidget)===null||t===void 0||t.dispose()}};Uc.ID="editor.contrib.hover";Uc=Xae([L0(1,Me),L0(2,vo),L0(3,Ut),L0(4,Ee)],Uc);class Jae extends de{constructor(){super({id:"editor.action.showHover",label:f({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:N.editorTextFocus,primary:ki(2089,2087),weight:100}})}run(e,t){if(!t.hasModel())return;const i=Uc.get(t);if(!i)return;const n=t.getPosition(),s=new y(n.lineNumber,n.column,n.lineNumber,n.column),r=t.getOption(2)===2;i.showContentHover(s,1,1,r)}}class ele extends de{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:f({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){const i=Uc.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const s=new y(n.lineNumber,n.column,n.lineNumber,n.column),r=Eh.get(t);if(!r)return;r.startFindDefinitionFromCursor(n).then(()=>{i.showContentHover(s,1,1,!0)})}}lt(Uc.ID,Uc,2);J(Jae);J(ele);ou.register(c1);ou.register(wI);Ho((o,e)=>{const t=o.getColor(vj);t&&(e.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${t.transparent(.5)}; }`))});class DI extends U{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(t=>this.onMouseDown(t)))}dispose(){super.dispose()}onMouseDown(e){const t=e.target;if(t.type!==6||!t.detail.injectedText||t.detail.injectedText.options.attachedData!==q8||!t.range)return;const i=this._editor.getContribution(Uc.ID);if(i&&!i.isColorPickerVisible()){const n=new y(t.range.startLineNumber,t.range.startColumn+1,t.range.endLineNumber,t.range.endColumn+1);i.showContentHover(n,1,0,!1)}}}DI.ID="editor.contrib.colorContribution";lt(DI.ID,DI,2);ou.register(eI);const Jw=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let o;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?o=crypto.getRandomValues.bind(crypto):o=function(i){for(let n=0;nW9(this,void 0,void 0,function*(){return o}),asFile:()=>{},value:typeof o=="string"?o:void 0}}function tle(o,e,t){return{id:Jw(),asString:()=>W9(this,void 0,void 0,function*(){return""}),asFile:()=>({name:o,uri:e,data:t}),value:void 0}}class V9{constructor(){this._entries=new Map}get size(){return this._entries.size}has(e){return this._entries.has(this.toKey(e))}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*entries(){for(const[e,t]of this._entries.entries())for(const i of t)yield[e,i]}values(){return Array.from(this._entries.values()).flat()}forEach(e){for(const[t,i]of this.entries())e(i,t)}toKey(e){return e.toLowerCase()}}const eS=Object.freeze({create:o=>Dc(o.map(e=>e.toString())).join(`\r `),split:o=>o.split(`\r `),parse:o=>eS.split(o).filter(e=>!e.startsWith("#"))}),h1={EDITORS:"CodeEditors",FILES:"CodeFiles"};function ile(o){var e;const t=[];if(o.dataTransfer&&o.dataTransfer.types.length>0){const s=o.dataTransfer.getData(h1.EDITORS);if(s)try{t.push(...LC(s))}catch{}else try{const l=o.dataTransfer.getData(J_.RESOURCES);t.push(...nle(l))}catch{}if(!((e=o.dataTransfer)===null||e===void 0)&&e.files)for(let l=0;l0){const{selection:n,uri:s}=$3(Ce.parse(i));e.push({resource:s,options:{selection:n}})}}return e}class sle{constructor(){this._contributions=new Map}getAll(){return this._contributions.values()}}const H9={DragAndDropContribution:"workbench.contributions.dragAndDrop"};$t.add(H9.DragAndDropContribution,new sle);var ole=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};function xI(o){const e=new V9;for(const t of o.items){const i=t.type;if(t.kind==="string"){const n=new Promise(s=>t.getAsString(s));e.append(i,e2(n))}else if(t.kind==="file"){const n=t.getAsFile();n&&e.append(i,rle(n))}}return e}function rle(o){const e=o.path?Ce.parse(o.path):void 0;return tle(o.name,e,()=>ole(this,void 0,void 0,function*(){return new Uint8Array(yield o.arrayBuffer())}))}const ale=Object.freeze([h1.EDITORS,h1.FILES,J_.RESOURCES]);function lle(o,e,t=!1){var i;if(e.dataTransfer&&(t||!o.has(Qn.uriList))){const n=ile(e).filter(s=>s.resource).map(s=>s.resource.toString());for(const s of(i=e.dataTransfer)===null||i===void 0?void 0:i.items){const r=s.getAsFile();r&&n.push(r.path?Ce.file(r.path).toString():r.name)}n.length&&o.replace(Qn.uriList,e2(eS.create(n)))}for(const n of ale)o.delete(n)}var cle=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ap=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},D0=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};const SL="application/vnd.code.copyMetadata";let v_=class extends U{constructor(e,t,i,n,s,r){super(),this._bulkEditService=t,this._clipboardService=i,this._configurationService=n,this._languageFeaturesService=s,this._progressService=r,this._editor=e;const a=e.getContainerDomNode();this._register(K(a,"copy",l=>this.handleCopy(l))),this._register(K(a,"cut",l=>this.handleCopy(l))),this._register(K(a,"paste",l=>this.handlePaste(l),!0))}arePasteActionsEnabled(e){return this._configurationService.getValue("editor.experimental.pasteActions.enabled",{resource:e.uri})?!0:e.uri.scheme===We.vscodeNotebookCell}handleCopy(e){var t;if(!e.clipboardData||!this._editor.hasTextFocus())return;const i=this._editor.getModel(),n=this._editor.getSelections();if(!i||!(n!=null&&n.length)||!this.arePasteActionsEnabled(i))return;const s=[...n],r=n[0],a=r.isEmpty();if(a){if(!this._editor.getOption(34))return;s[0]=new y(r.startLineNumber,0,r.startLineNumber,i.getLineLength(r.startLineNumber))}const l=this._languageFeaturesService.documentPasteEditProvider.ordered(i).filter(u=>!!u.prepareDocumentPaste);if(!l.length){this.setCopyMetadata(e.clipboardData,{wasFromEmptySelection:a});return}const c=xI(e.clipboardData),d=Jw();this.setCopyMetadata(e.clipboardData,{id:d,wasFromEmptySelection:a});const h=Wi(u=>D0(this,void 0,void 0,function*(){const g=yield Promise.all(l.map(p=>p.prepareDocumentPaste(i,s,c,u)));for(const p of g)p==null||p.forEach((m,_)=>{c.replace(_,m)});return c}));(t=this._currentClipboardItem)===null||t===void 0||t.dataTransferPromise.cancel(),this._currentClipboardItem={handle:d,dataTransferPromise:h}}setCopyMetadata(e,t){e.setData(SL,JSON.stringify(t))}handlePaste(e){var t,i,n,s;return D0(this,void 0,void 0,function*(){if(!e.clipboardData||!this._editor.hasTextFocus())return;const r=this._editor.getSelections();if(!(r!=null&&r.length)||!this._editor.hasModel())return;const a=this._editor.getModel();if(!this.arePasteActionsEnabled(a))return;let l;const c=(t=e.clipboardData)===null||t===void 0?void 0:t.getData(SL);c&&typeof c=="string"&&(l=JSON.parse(c));const d=this._languageFeaturesService.documentPasteEditProvider.ordered(a);if(!d.length)return;e.preventDefault(),e.stopImmediatePropagation();const h=new Sh(this._editor,3);try{const u=xI(e.clipboardData);if(l!=null&&l.id&&((i=this._currentClipboardItem)===null||i===void 0?void 0:i.handle)===l.id){const p=yield this._currentClipboardItem.dataTransferPromise;if(h.token.isCancellationRequested)return;p.forEach((m,_)=>{u.replace(_,m)})}if(!u.has(Qn.uriList)){const p=yield this._clipboardService.readResources();if(h.token.isCancellationRequested)return;p.length&&u.append(Qn.uriList,e2(eS.create(p)))}u.delete(SL);const g=yield this._progressService.withProgress({location:15,delay:750,title:f("pasteProgressTitle","Running paste handlers..."),cancellable:!0},()=>this.getProviderPasteEdit(d,u,a,r,h.token),()=>h.cancel());if(h.token.isCancellationRequested)return;if(g){const p=typeof g.insertText=="string"?Hc.escape(g.insertText):g.insertText.snippet,m={edits:[new fl(a.uri,{range:he.liftSelection(this._editor.getSelection()),text:p,insertAsSnippet:!0}),...(s=(n=g.additionalEdit)===null||n===void 0?void 0:n.edits)!==null&&s!==void 0?s:[]]};yield this._bulkEditService.apply(m,{editor:this._editor});return}yield this.applyDefaultPasteHandler(u,l,h.token)}finally{h.dispose()}})}getProviderPasteEdit(e,t,i,n,s){return U1((()=>D0(this,void 0,void 0,function*(){for(const r of e){if(s.isCancellationRequested)return;if(!dle(r,t))continue;const a=yield r.provideDocumentPasteEdits(i,n,t,s);if(a)return a}}))(),s)}applyDefaultPasteHandler(e,t,i){var n;return D0(this,void 0,void 0,function*(){const s=(n=e.get(Qn.text))!==null&&n!==void 0?n:e.get("text");if(!s)return;const r=yield s.asString();i.isCancellationRequested||this._editor.trigger("keyboard","paste",{text:r,pasteOnNewLine:t==null?void 0:t.wasFromEmptySelection,multicursorText:null})})}};v_.ID="editor.contrib.copyPasteActionController";v_=cle([ap(1,ib),ap(2,Dl),ap(3,at),ap(4,ge),ap(5,QT)],v_);function dle(o,e){return o.pasteMimeTypes.some(t=>t.toLowerCase()===J_.FILES.toLowerCase()?[...e.values()].some(i=>i.asFile()):e.has(t))}lt(v_.ID,v_,0);$t.as(ka.Configuration).registerConfiguration(Object.assign(Object.assign({},eN),{properties:{"editor.experimental.pasteActions.enabled":{type:"boolean",scope:5,description:f("pasteActions","Enable/disable running edits from extensions on paste."),default:!1}}}));class cc{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;const n=t.length,s=e.length;if(i+n>s)return!1;for(let r=0;r=65&&a<=90&&a+32===l)&&!(l>=65&&l<=90&&l+32===a))return!1}return!0}_createOperationsForBlockComment(e,t,i,n,s,r){const a=e.startLineNumber,l=e.startColumn,c=e.endLineNumber,d=e.endColumn,h=s.getLineContent(a),u=s.getLineContent(c);let g=h.lastIndexOf(t,l-1+t.length),p=u.indexOf(i,d-1-i.length);if(g!==-1&&p!==-1)if(a===c)h.substring(g+t.length,p).indexOf(i)>=0&&(g=-1,p=-1);else{const _=h.substring(g+t.length),v=u.substring(0,p);(_.indexOf(i)>=0||v.indexOf(i)>=0)&&(g=-1,p=-1)}let m;g!==-1&&p!==-1?(n&&g+t.length0&&u.charCodeAt(p-1)===32&&(i=" "+i,p-=1),m=cc._createRemoveBlockCommentOperations(new y(a,g+t.length+1,c,p+1),t,i)):(m=cc._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=m.length===1?i:null);for(const _ of m)r.addTrackedEditOperation(_.range,_.text)}static _createRemoveBlockCommentOperations(e,t,i){const n=[];return y.isEmpty(e)?n.push(Wt.delete(new y(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(n.push(Wt.delete(new y(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),n.push(Wt.delete(new y(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),n}static _createAddBlockCommentOperations(e,t,i,n){const s=[];return y.isEmpty(e)?s.push(Wt.replace(new y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(s.push(Wt.insert(new W(e.startLineNumber,e.startColumn),t+(n?" ":""))),s.push(Wt.insert(new W(e.endLineNumber,e.endColumn),(n?" ":"")+i))),s}getEditOperations(e,t){const i=this._selection.startLineNumber,n=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);const s=e.getLanguageIdAtPosition(i,n),r=this.languageConfigurationService.getLanguageConfiguration(s).comments;!r||!r.blockCommentStartToken||!r.blockCommentEndToken||this._createOperationsForBlockComment(this._selection,r.blockCommentStartToken,r.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(i.length===2){const n=i[0],s=i[1];return new he(n.range.endLineNumber,n.range.endColumn,s.range.startLineNumber,s.range.startColumn)}else{const n=i[0].range,s=this._usedEndToken?-this._usedEndToken.length-1:0;return new he(n.endLineNumber,n.endColumn+s,n.endLineNumber,n.endColumn+s)}}}class Ka{constructor(e,t,i,n,s,r,a){this.languageConfigurationService=e,this._selection=t,this._tabSize=i,this._type=n,this._insertSpace=s,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=r,this._ignoreFirstLine=a||!1}static _gatherPreflightCommentStrings(e,t,i,n){e.tokenization.tokenizeIfCheap(t);const s=e.getLanguageIdAtPosition(t,1),r=n.getLanguageConfiguration(s).comments,a=r?r.lineCommentToken:null;if(!a)return null;const l=[];for(let c=0,d=i-t+1;cs?t[l].commentStrOffset=r-1:t[l].commentStrOffset=r}}}class t2 extends de{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get(ui);if(!t.hasModel())return;const n=t.getModel(),s=[],r=n.getOptions(),a=t.getOption(20),l=t.getSelections().map((d,h)=>({selection:d,index:h,ignoreFirstLine:!1}));l.sort((d,h)=>y.compareRangesUsingStarts(d.selection,h.selection));let c=l[0];for(let d=1;d=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Lu=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}};let lf=class z9{static get(e){return e.getContribution(z9.ID)}constructor(e,t,i,n,s,r,a){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=n,this._keybindingService=s,this._menuService=r,this._configurationService=a,this._toDispose=new Z,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(l=>this._onContextMenu(l))),this._toDispose.add(this._editor.onMouseWheel(l=>{if(this._contextMenuIsBeingShownCount>0){const c=this._contextViewService.getContextViewElement(),d=l.srcElement;d.shadowRoot&&uh(c)===d.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(l=>{this._editor.getOption(21)&&l.keyCode===58&&(l.preventDefault(),l.stopPropagation(),this.showContextMenu())}))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(21)){this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position);return}if(e.target.type===12||e.target.type===6&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),e.target.type===11)return this._showScrollbarContextMenu({x:e.event.posx-1,width:2,y:e.event.posy-1,height:2});if(e.target.type!==6&&e.target.type!==7&&e.target.type!==1)return;if(this._editor.focus(),e.target.position){let i=!1;for(const n of this._editor.getSelections())if(n.containsPosition(e.target.position)){i=!0;break}i||this._editor.setPosition(e.target.position)}let t=null;e.target.type!==1&&(t={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(21)||!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?T.SimpleEditorContext:T.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],n=this._menuService.createMenu(t,this._contextKeyService),s=n.getActions({arg:e.uri});n.dispose();for(const r of s){const[,a]=r;let l=0;for(const c of a)if(c instanceof Tm){const d=this._getMenuActions(e,c.item.submenu);d.length>0&&(i.push(new Hg(c.id,c.label,d)),l++)}else i.push(c),l++;l&&i.push(new Bi)}return i.length&&i.pop(),i}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const i=this._editor.getOption(57);if(this._editor.updateOptions({hover:{enabled:!1}}),!t){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const s=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),r=Fi(this._editor.getDomNode()),a=r.left+s.left,l=r.top+s.top+s.height;t={x:a,y:l}}const n=this._editor.getOption(121)&&!ga;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:n?this._editor.getDomNode():void 0,getAnchor:()=>t,getActions:()=>e,getActionViewItem:s=>{const r=this._keybindingFor(s);if(r)return new Zm(s,s,{label:!0,keybinding:r.getLabel(),isMenu:!0});const a=s;return typeof a.getActionViewItem=="function"?a.getActionViewItem():new Zm(s,s,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:s=>this._keybindingFor(s),onHide:s=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel())return;const t=this._editor.getOption(69);let i=0;const n=c=>({id:`menu-action-${++i}`,label:c.label,tooltip:"",class:void 0,enabled:typeof c.enabled>"u"?!0:c.enabled,checked:c.checked,run:c.run}),s=(c,d)=>new Hg(`menu-action-${++i}`,c,d,void 0),r=(c,d,h,u,g)=>{if(!d)return n({label:c,enabled:d,run:()=>{}});const p=_=>()=>{this._configurationService.updateValue(h,_)},m=[];for(const _ of g)m.push(n({label:_.label,checked:u===_.value,run:p(_.value)}));return s(c,m)},a=[];a.push(n({label:f("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),a.push(new Bi),a.push(n({label:f("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),a.push(r(f("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:f("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:f("context.minimap.size.fill","Fill"),value:"fill"},{label:f("context.minimap.size.fit","Fit"),value:"fit"}])),a.push(r(f("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:f("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:f("context.minimap.slider.always","Always"),value:"always"}]));const l=this._editor.getOption(121)&&!ga;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:l?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>a,onHide:c=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};lf.ID="editor.contrib.contextmenu";lf=ple([Lu(1,xr),Lu(2,xl),Lu(3,Ee),Lu(4,ei),Lu(5,Ea),Lu(6,at)],lf);class mle extends de{constructor(){super({id:"editor.action.showContextMenu",label:f("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:1092,weight:100}})}run(e,t){var i;(i=lf.get(t))===null||i===void 0||i.showContextMenu()}}lt(lf.ID,lf,2);J(mle);class yL{constructor(e){this.selections=e}equals(e){const t=this.selections.length,i=e.selections.length;if(t!==i)return!1;for(let n=0;n{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeModelContent(t=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo||!t.oldSelections||t.oldModelVersionId!==t.modelVersionId)return;const i=new yL(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new LL(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}cursorUndo(){!this._editor.hasModel()||this._undoStack.length===0||(this._redoStack.push(new LL(new yL(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){!this._editor.hasModel()||this._redoStack.length===0||(this._undoStack.push(new LL(new yL(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}Nh.ID="editor.contrib.cursorUndoRedoController";class _le extends de{constructor(){super({id:"cursorUndo",label:f("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:N.textInputFocus,primary:2099,weight:100}})}run(e,t,i){var n;(n=Nh.get(t))===null||n===void 0||n.cursorUndo()}}class ble extends de{constructor(){super({id:"cursorRedo",label:f("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){var n;(n=Nh.get(t))===null||n===void 0||n.cursorRedo()}}lt(Nh.ID,Nh,0);J(_le);J(ble);class vle{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);if(this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new y(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new he(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new he(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumberthis._onEditorMouseDown(t))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(t))),this._register(this._editor.onMouseDrag(t=>this._onEditorMouseDrag(t))),this._register(this._editor.onMouseDrop(t=>this._onEditorMouseDrop(t))),this._register(this._editor.onMouseDropCanceled(()=>this._onEditorMouseDropCanceled())),this._register(this._editor.onKeyDown(t=>this.onEditorKeyDown(t))),this._register(this._editor.onKeyUp(t=>this.onEditorKeyUp(t))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){!this._editor.getOption(32)||this._editor.getOption(19)||(Du(e)&&(this._modifierPressed=!0),this._mouseDown&&Du(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){!this._editor.getOption(32)||this._editor.getOption(19)||(Du(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===_l.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(this._dragSelection===null){const n=(this._editor.getSelections()||[]).filter(s=>t.position&&s.containsPosition(t.position));if(n.length===1)this._dragSelection=n[0];else return}Du(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new W(e.target.position.lineNumber,e.target.position.column);if(this._dragSelection===null){let i=null;if(e.event.shiftKey){const n=this._editor.getSelection();if(n){const{selectionStartLineNumber:s,selectionStartColumn:r}=n;i=[new he(s,r,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map(n=>n.containsPosition(t)?new he(t.lineNumber,t.column,t.lineNumber,t.column):n);this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(Du(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(_l.ID,new vle(this._dragSelection,t,Du(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){this._dndDecorationIds.set([{range:new y(e.lineNumber,e.column,e.lineNumber,e.column),options:_l._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return e.type===6||e.type===7}_hitMargin(e){return e.type===2||e.type===3||e.type===4}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}_l.ID="editor.contrib.dragAndDrop";_l.TRIGGER_KEY_VALUE=Ke?6:5;_l._DECORATION_OPTIONS=Re.register({description:"dnd-target",className:"dnd-target"});lt(_l.ID,_l,2);var U9=globalThis&&globalThis.__decorate||function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Fp=globalThis&&globalThis.__param||function(o,e){return function(t,i){e(t,i,o)}},vv=globalThis&&globalThis.__awaiter||function(o,e,t,i){function n(s){return s instanceof t?s:new t(function(r){r(s)})}return new(t||(t=Promise))(function(s,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(o,e||[])).next())})};let C_=class extends U{constructor(e,t,i,n,s){super(),this._bulkEditService=t,this._languageFeaturesService=i,this._progressService=n,this._register(e.onDropIntoEditor(r=>this.onDropIntoEditor(e,r.position,r.event))),this._languageFeaturesService.documentOnDropEditProvider.register("*",new kI(s))}onDropIntoEditor(e,t,i){var n,s;return vv(this,void 0,void 0,function*(){if(!i.dataTransfer||!e.hasModel())return;const r=e.getModel(),a=r.getVersionId(),l=yield this.extractDataTransferData(i);if(l.size===0||e.getModel().getVersionId()!==a)return;const c=new Sh(e,1);try{const d=this._languageFeaturesService.documentOnDropEditProvider.ordered(r),h=yield this._progressService.withProgress({location:15,delay:750,title:f("dropProgressTitle","Running drop handlers..."),cancellable:!0},()=>U1((()=>vv(this,void 0,void 0,function*(){for(const u of d){const g=yield u.provideDocumentOnDropEdits(r,t,l,c.token);if(c.token.isCancellationRequested)return;if(g)return g}}))(),c.token),()=>{c.cancel()});if(c.token.isCancellationRequested||e.getModel().getVersionId()!==a)return;if(h){const u=typeof h.insertText=="string"?Hc.escape(h.insertText):h.insertText.snippet,g={edits:[new fl(r.uri,{range:new y(t.lineNumber,t.column,t.lineNumber,t.column),text:u,insertAsSnippet:!0}),...(s=(n=h.additionalEdit)===null||n===void 0?void 0:n.edits)!==null&&s!==void 0?s:[]]};yield this._bulkEditService.apply(g,{editor:e});return}}finally{c.dispose()}})}extractDataTransferData(e){return vv(this,void 0,void 0,function*(){if(!e.dataTransfer)return new V9;const t=xI(e.dataTransfer);return lle(t,e),t})}};C_.ID="editor.contrib.dropIntoEditorController";C_=U9([Fp(1,ib),Fp(2,ge),Fp(3,QT),Fp(4,Xm)],C_);let kI=class{constructor(e){this._workspaceContextService=e}provideDocumentOnDropEdits(e,t,i,n){var s;return vv(this,void 0,void 0,function*(){const r=i.get(Qn.uriList);if(r){const l=yield r.asString(),c=this.getUriListInsertText(l);if(c)return{insertText:c}}const a=(s=i.get("text"))!==null&&s!==void 0?s:i.get(Qn.text);if(a)return{insertText:yield a.asString()}})}getUriListInsertText(e){const t=[];for(const i of eS.parse(e))try{t.push(Ce.parse(i))}catch{}if(t.length)return t.map(i=>{const n=this._workspaceContextService.getWorkspaceFolder(i);if(n){const s=gZ(n.uri,i);if(s)return s}return i.fsPath}).join(" ")}};kI=U9([Fp(0,Xm)],kI);lt(C_.ID,C_,2);class xn{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map(t=>this._editor.getModel().getDecorationRange(t)).filter(t=>!!t);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){const t=e{if(this._highlightedDecorationId!==null&&(n.changeDecorationOptions(this._highlightedDecorationId,xn._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),t!==null&&(this._highlightedDecorationId=t,n.changeDecorationOptions(this._highlightedDecorationId,xn._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(n.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),t!==null){let s=this._editor.getModel().getDecorationRange(t);if(s.startLineNumber!==s.endLineNumber&&s.endColumn===1){const r=s.endLineNumber-1,a=this._editor.getModel().getLineMaxColumn(r);s=new y(s.startLineNumber,s.startColumn,r,a)}this._rangeHighlightDecorationId=n.addDecoration(s,xn._RANGE_HIGHLIGHT_DECORATION)}}),i}set(e,t){this._editor.changeDecorations(i=>{let n=xn._FIND_MATCH_DECORATION;const s=[];if(e.length>1e3){n=xn._FIND_MATCH_NO_OVERVIEW_DECORATION;const a=this._editor.getModel().getLineCount(),c=this._editor.getLayoutInfo().height/a,d=Math.max(2,Math.ceil(3/c));let h=e[0].range.startLineNumber,u=e[0].range.endLineNumber;for(let g=1,p=e.length;g=m.startLineNumber?m.endLineNumber>u&&(u=m.endLineNumber):(s.push({range:new y(h,1,u,1),options:xn._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),h=m.startLineNumber,u=m.endLineNumber)}s.push({range:new y(h,1,u,1),options:xn._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const r=new Array(e.length);for(let a=0,l=e.length;ai.removeDecoration(a)),this._findScopeDecorationIds=[]),t!=null&&t.length&&(this._findScopeDecorationIds=t.map(a=>i.addDecoration(a,xn._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(this._decorations.length===0)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(!(!n||n.endLineNumber>e.lineNumber)){if(n.endLineNumbere.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(this._decorations.length===0)return null;for(let t=0,i=this._decorations.length;te.lineNumber)return s;if(!(s.startColumn0){const i=[];for(let r=0;ry.compareRangesUsingStarts(r.range,a.range));const n=[];let s=i[0];for(let r=1;r0?e[0].toUpperCase()+e.substr(1):o[0][0].toUpperCase()!==o[0][0]&&e.length>0?e[0].toLowerCase()+e.substr(1):e}else return e}function hO(o,e,t){return o[0].indexOf(t)!==-1&&e.indexOf(t)!==-1&&o[0].split(t).length===e.split(t).length}function uO(o,e,t){const i=e.split(t),n=o[0].split(t);let s="";return i.forEach((r,a)=>{s+=$9([n[a]],r)+t}),s.slice(0,-1)}class gO{constructor(e){this.staticValue=e,this.kind=0}}class wle{constructor(e){this.pieces=e,this.kind=1}}class cf{static fromStaticValue(e){return new cf([sh.staticValue(e)])}get hasReplacementPatterns(){return this._state.kind===1}constructor(e){!e||e.length===0?this._state=new gO(""):e.length===1&&e[0].staticValue!==null?this._state=new gO(e[0].staticValue):this._state=new wle(e)}buildReplaceString(e,t){if(this._state.kind===0)return t?$9(e,this._state.staticValue):this._state.staticValue;let i="";for(let n=0,s=this._state.pieces.length;n0){const l=[],c=r.caseOps.length;let d=0;for(let h=0,u=a.length;h=c){l.push(a.slice(h));break}switch(r.caseOps[d]){case"U":l.push(a[h].toUpperCase());break;case"u":l.push(a[h].toUpperCase()),d++;break;case"L":l.push(a[h].toLowerCase());break;case"l":l.push(a[h].toLowerCase()),d++;break;default:l.push(a[h])}}a=l.join("")}i+=a}return i}static _substitute(e,t){if(t===null)return"";if(e===0)return t[0];let i="";for(;e>0;){if(e=n)break;const r=o.charCodeAt(i);switch(r){case 92:t.emitUnchanged(i-1),t.emitStatic("\\",i+1);break;case 110:t.emitUnchanged(i-1),t.emitStatic(` diff --git a/app/src/main/resources/web/assets/NetworkView-9136e20d.js b/app/src/main/resources/web/assets/NetworkView-96e9f184.js similarity index 84% rename from app/src/main/resources/web/assets/NetworkView-9136e20d.js rename to app/src/main/resources/web/assets/NetworkView-96e9f184.js index 1a788f81..a624f16f 100644 --- a/app/src/main/resources/web/assets/NetworkView-9136e20d.js +++ b/app/src/main/resources/web/assets/NetworkView-96e9f184.js @@ -1,4 +1,4 @@ -import{_ as k}from"./MonacoEditor.vuevuetypescriptsetuptruelang-1dd835fe.js";import{_ as y}from"./EditToolbar.vuevuetypescriptsetuptruelang-305dbf63.js";import{_ as b}from"./Breadcrumb-fef16e9c.js";import{d as N,u as $,r as m,g as C,x as r,ab as p,bz as c,i as h,c as B,a as F,p as i,j as S,m as d,aW as g,o as U}from"./index-b6c39163.js";const q={class:"page-container"},D={class:"main"},M=N({__name:"NetworkView",setup(j){const{t:s}=$(),o=m(0),n=m(""),a=m("");C({handle:(l,e)=>{e?r(s(e),"error"):(n.value=l.networkConfig.netplan,a.value=l.networkConfig.netmix)},document:p` +import{_ as k}from"./MonacoEditor.vuevuetypescriptsetuptruelang-fd107f07.js";import{_ as y}from"./EditToolbar.vuevuetypescriptsetuptruelang-7ece134f.js";import{_ as b}from"./Breadcrumb-cba2b95b.js";import{d as N,u as $,r as m,g as C,x as r,ab as p,bz as c,i as h,c as B,a as F,p as i,j as S,m as d,aW as g,o as U}from"./index-1dff6785.js";const q={class:"page-container"},D={class:"main"},M=N({__name:"NetworkView",setup(j){const{t:s}=$(),o=m(0),n=m(""),a=m("");C({handle:(l,e)=>{e?r(s(e),"error"):(n.value=l.networkConfig.netplan,a.value=l.networkConfig.netmix)},document:p` query { networkConfig { ...NetworkConfigFragment diff --git a/app/src/main/resources/web/assets/NoteEditView-a6e64fa4.js b/app/src/main/resources/web/assets/NoteEditView-ad9b8303.js similarity index 93% rename from app/src/main/resources/web/assets/NoteEditView-a6e64fa4.js rename to app/src/main/resources/web/assets/NoteEditView-ad9b8303.js index a31cb4be..ac23d3e4 100644 --- a/app/src/main/resources/web/assets/NoteEditView-a6e64fa4.js +++ b/app/src/main/resources/web/assets/NoteEditView-ad9b8303.js @@ -1 +1 @@ -import{_ as te}from"./MonacoEditor.vuevuetypescriptsetuptruelang-1dd835fe.js";import{_ as ne}from"./print-outline-rounded-b6b10f6f.js";import{aO as ae,aP as j,aQ as se,d as oe,e as ie,u as re,D as ue,r as x,s as le,f as ce,aC as de,g as z,i as _e,aR as me,O as pe,P as D,Q as fe,R as ve,c as L,a as E,p as y,H as R,F as ge,J as he,m as H,l as J,k as O,j as A,aS as Te,w as ye,x as K,aT as ke,aU as be,aV as we,o as S,h as Ce,t as X,aW as xe,S as Se,A as Ee,B as Me,Z as Ne,a2 as Ie,a3 as Ve,a5 as Le,a4 as Ae,_ as $e}from"./index-b6c39163.js";import{_ as De}from"./Breadcrumb-fef16e9c.js";import{g as Z,M as Re}from"./splitpanes.es-f516e17d.js";import{u as Qe}from"./markdown-1f5e90f8.js";var Ue=function(){return ae.Date.now()};const F=Ue;var We="Expected a function",Be=Math.max,He=Math.min;function Oe(f,l,i){var _,r,n,o,a,u,v=0,$=!1,g=!1,k=!0;if(typeof f!="function")throw new TypeError(We);l=j(l)||0,se(i)&&($=!!i.leading,g="maxWait"in i,n=g?Be(j(i.maxWait)||0,l):n,k="trailing"in i?!!i.trailing:k);function b(t){var c=_,p=r;return _=r=void 0,v=t,o=f.apply(p,c),o}function m(t){return v=t,a=setTimeout(w,l),$?b(t):o}function U(t){var c=t-u,p=t-v,V=l-c;return g?He(V,n-p):V}function M(t){var c=t-u,p=t-v;return u===void 0||c>=l||c<0||g&&p>=n}function w(){var t=F();if(M(t))return C(t);a=setTimeout(w,U(t))}function C(t){return a=void 0,k&&_?b(t):(_=r=void 0,o)}function N(){a!==void 0&&clearTimeout(a),v=0,_=u=r=a=void 0}function W(){return a===void 0?o:C(F())}function I(){var t=F(),c=M(t);if(_=arguments,r=this,u=t,c){if(a===void 0)return m(u);if(g)return clearTimeout(a),a=setTimeout(w,l),b(u)}return a===void 0&&(a=setTimeout(w,l)),o}return I.cancel=N,I.flush=W,I}const q=f=>(Ee("data-v-1574eff6"),f=f(),Me(),f),Fe={class:"page-container"},Ge={class:"main"},Pe={class:"v-toolbar"},je={class:"state-point"},ze=["onClick"],Je=q(()=>E("md-ripple",null,null,-1)),Ke=["onClick"],Xe=q(()=>E("md-ripple",null,null,-1)),Ze=["innerHTML"],Q="NOTE",qe=oe({__name:"NoteEditView",setup(f){const l=ie(),{t:i}=re(),_=ue(),r=x(_.params.id),n=x(),o=x(""),a=x(""),u=x(!1),{app:v,urlTokenKey:$}=le(ce()),g=de(()=>{var e;return(e=n.value)!=null&&e.deletedAt?["/notes","/notes/trash"]:["/notes"]}),{render:k}=Qe(v,$);let b=!1;function m(){return r.value==="create"}const U=Oe(()=>{u.value=!1,W({id:m()?"":r.value,input:{content:o.value,title:Te(o.value,{length:100,omission:""})}})},500),M=()=>{ye(o,async e=>{u.value=!0,a.value=await k(e),U()})},w=()=>{window.print()},C=x();z({handle:(e,s)=>{s?K(i(s),"error"):e&&(C.value=e.tags)},document:ke,variables:{type:Q},appApi:!0});let N=()=>{};if(m())M();else{const{refetch:e}=z({handle:async(s,d)=>{if(d)K(i(d),"error");else{if(n.value=s.note,b)return;o.value=s.note.content,a.value=await k(o.value),b=!0,M()}},document:be,variables:()=>({id:r.value}),appApi:!0});N=e}const{mutate:W,onDone:I}=_e({document:we,appApi:!0});I(e=>{var d,h;n.value=e.data.saveNote,m()&&((d=n.value)!=null&&d.id)&&(r.value=(h=n.value)==null?void 0:h.id,me(l,`/notes/${r.value}`))});function t(){var s;const e=(s=n==null?void 0:n.value)==null?void 0:s.updatedAt;return e?`(${i("updated_at")}: ${Ne(e)})`:""}function c(){var e,s;Ie(Ve,{type:Q,tags:C.value,item:{key:(e=n.value)==null?void 0:e.id,title:"",size:0},selected:(s=C.value)==null?void 0:s.filter(d=>{var h;return(h=n.value)==null?void 0:h.tags.some(B=>B.id===d.id)})})}const p=e=>{e.type===Q&&N()},V=e=>{e.type===Q&&N()};return pe(()=>{D.on("item_tags_updated",V),D.on("items_tags_updated",p)}),fe(()=>{D.off("item_tags_updated",V),D.off("items_tags_updated",p)}),(e,s)=>{var P;const d=Le,h=De,B=Ae,Y=ne,ee=te,G=ve("tooltip");return S(),L("div",Fe,[E("div",Ge,[E("div",Pe,[y(h,{paths:g.value},{current:R(()=>{var T;return[Ce(X(m()?A(i)("create"):A(i)("edit"))+" ",1),H(E("span",je,"*",512),[[xe,u.value]]),(T=n.value)!=null&&T.updatedAt?(S(),Se(d,{key:0,class:"time",id:t(),raw:n.value},null,8,["id","raw"])):O("",!0)]}),_:1},8,["paths"]),(S(!0),L(ge,null,he((P=n.value)==null?void 0:P.tags,T=>(S(),L("span",{key:T.id,class:"badge"},X(T.name),1))),128)),m()?O("",!0):H((S(),L("button",{key:0,class:"icon-button",onClick:J(c,["prevent"]),style:{"margin-inline-start":"8px"}},[Je,y(B)],8,ze)),[[G,e.$t("add_to_tags")]]),m()?O("",!0):H((S(),L("button",{key:1,class:"icon-button",onClick:J(w,["prevent"])},[Xe,y(Y)],8,Ke)),[[G,e.$t("print")]])]),y(A(Re),{class:"panel-container"},{default:R(()=>[y(A(Z),null,{default:R(()=>[y(ee,{language:"html",modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=T=>o.value=T)},null,8,["modelValue"])]),_:1}),y(A(Z),null,{default:R(()=>[E("div",{class:"md-container",innerHTML:a.value},null,8,Ze)]),_:1})]),_:1})])])}}});const ot=$e(qe,[["__scopeId","data-v-1574eff6"]]);export{ot as default}; +import{_ as te}from"./MonacoEditor.vuevuetypescriptsetuptruelang-fd107f07.js";import{_ as ne}from"./print-outline-rounded-a531ab61.js";import{aO as ae,aP as j,aQ as se,d as oe,e as ie,u as re,D as ue,r as x,s as le,f as ce,aC as de,g as z,i as _e,aR as me,O as pe,P as D,Q as fe,R as ve,c as L,a as E,p as y,H as R,F as ge,J as he,m as H,l as J,k as O,j as A,aS as Te,w as ye,x as K,aT as ke,aU as be,aV as we,o as S,h as Ce,t as X,aW as xe,S as Se,A as Ee,B as Me,Z as Ne,a2 as Ie,a3 as Ve,a5 as Le,a4 as Ae,_ as $e}from"./index-1dff6785.js";import{_ as De}from"./Breadcrumb-cba2b95b.js";import{g as Z,M as Re}from"./splitpanes.es-e9e41ca8.js";import{u as Qe}from"./markdown-a8cc08c7.js";var Ue=function(){return ae.Date.now()};const F=Ue;var We="Expected a function",Be=Math.max,He=Math.min;function Oe(f,l,i){var _,r,n,o,a,u,v=0,$=!1,g=!1,k=!0;if(typeof f!="function")throw new TypeError(We);l=j(l)||0,se(i)&&($=!!i.leading,g="maxWait"in i,n=g?Be(j(i.maxWait)||0,l):n,k="trailing"in i?!!i.trailing:k);function b(t){var c=_,p=r;return _=r=void 0,v=t,o=f.apply(p,c),o}function m(t){return v=t,a=setTimeout(w,l),$?b(t):o}function U(t){var c=t-u,p=t-v,V=l-c;return g?He(V,n-p):V}function M(t){var c=t-u,p=t-v;return u===void 0||c>=l||c<0||g&&p>=n}function w(){var t=F();if(M(t))return C(t);a=setTimeout(w,U(t))}function C(t){return a=void 0,k&&_?b(t):(_=r=void 0,o)}function N(){a!==void 0&&clearTimeout(a),v=0,_=u=r=a=void 0}function W(){return a===void 0?o:C(F())}function I(){var t=F(),c=M(t);if(_=arguments,r=this,u=t,c){if(a===void 0)return m(u);if(g)return clearTimeout(a),a=setTimeout(w,l),b(u)}return a===void 0&&(a=setTimeout(w,l)),o}return I.cancel=N,I.flush=W,I}const q=f=>(Ee("data-v-1574eff6"),f=f(),Me(),f),Fe={class:"page-container"},Ge={class:"main"},Pe={class:"v-toolbar"},je={class:"state-point"},ze=["onClick"],Je=q(()=>E("md-ripple",null,null,-1)),Ke=["onClick"],Xe=q(()=>E("md-ripple",null,null,-1)),Ze=["innerHTML"],Q="NOTE",qe=oe({__name:"NoteEditView",setup(f){const l=ie(),{t:i}=re(),_=ue(),r=x(_.params.id),n=x(),o=x(""),a=x(""),u=x(!1),{app:v,urlTokenKey:$}=le(ce()),g=de(()=>{var e;return(e=n.value)!=null&&e.deletedAt?["/notes","/notes/trash"]:["/notes"]}),{render:k}=Qe(v,$);let b=!1;function m(){return r.value==="create"}const U=Oe(()=>{u.value=!1,W({id:m()?"":r.value,input:{content:o.value,title:Te(o.value,{length:100,omission:""})}})},500),M=()=>{ye(o,async e=>{u.value=!0,a.value=await k(e),U()})},w=()=>{window.print()},C=x();z({handle:(e,s)=>{s?K(i(s),"error"):e&&(C.value=e.tags)},document:ke,variables:{type:Q},appApi:!0});let N=()=>{};if(m())M();else{const{refetch:e}=z({handle:async(s,d)=>{if(d)K(i(d),"error");else{if(n.value=s.note,b)return;o.value=s.note.content,a.value=await k(o.value),b=!0,M()}},document:be,variables:()=>({id:r.value}),appApi:!0});N=e}const{mutate:W,onDone:I}=_e({document:we,appApi:!0});I(e=>{var d,h;n.value=e.data.saveNote,m()&&((d=n.value)!=null&&d.id)&&(r.value=(h=n.value)==null?void 0:h.id,me(l,`/notes/${r.value}`))});function t(){var s;const e=(s=n==null?void 0:n.value)==null?void 0:s.updatedAt;return e?`(${i("updated_at")}: ${Ne(e)})`:""}function c(){var e,s;Ie(Ve,{type:Q,tags:C.value,item:{key:(e=n.value)==null?void 0:e.id,title:"",size:0},selected:(s=C.value)==null?void 0:s.filter(d=>{var h;return(h=n.value)==null?void 0:h.tags.some(B=>B.id===d.id)})})}const p=e=>{e.type===Q&&N()},V=e=>{e.type===Q&&N()};return pe(()=>{D.on("item_tags_updated",V),D.on("items_tags_updated",p)}),fe(()=>{D.off("item_tags_updated",V),D.off("items_tags_updated",p)}),(e,s)=>{var P;const d=Le,h=De,B=Ae,Y=ne,ee=te,G=ve("tooltip");return S(),L("div",Fe,[E("div",Ge,[E("div",Pe,[y(h,{paths:g.value},{current:R(()=>{var T;return[Ce(X(m()?A(i)("create"):A(i)("edit"))+" ",1),H(E("span",je,"*",512),[[xe,u.value]]),(T=n.value)!=null&&T.updatedAt?(S(),Se(d,{key:0,class:"time",id:t(),raw:n.value},null,8,["id","raw"])):O("",!0)]}),_:1},8,["paths"]),(S(!0),L(ge,null,he((P=n.value)==null?void 0:P.tags,T=>(S(),L("span",{key:T.id,class:"badge"},X(T.name),1))),128)),m()?O("",!0):H((S(),L("button",{key:0,class:"icon-button",onClick:J(c,["prevent"]),style:{"margin-inline-start":"8px"}},[Je,y(B)],8,ze)),[[G,e.$t("add_to_tags")]]),m()?O("",!0):H((S(),L("button",{key:1,class:"icon-button",onClick:J(w,["prevent"])},[Xe,y(Y)],8,Ke)),[[G,e.$t("print")]])]),y(A(Re),{class:"panel-container"},{default:R(()=>[y(A(Z),null,{default:R(()=>[y(ee,{language:"html",modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=T=>o.value=T)},null,8,["modelValue"])]),_:1}),y(A(Z),null,{default:R(()=>[E("div",{class:"md-container",innerHTML:a.value},null,8,Ze)]),_:1})]),_:1})])])}}});const ot=$e(qe,[["__scopeId","data-v-1574eff6"]]);export{ot as default}; diff --git a/app/src/main/resources/web/assets/NotesRootView-8dfcfff8.js b/app/src/main/resources/web/assets/NotesRootView-b6a592d7.js similarity index 72% rename from app/src/main/resources/web/assets/NotesRootView-8dfcfff8.js rename to app/src/main/resources/web/assets/NotesRootView-b6a592d7.js index 0b2bcd5b..b080c997 100644 --- a/app/src/main/resources/web/assets/NotesRootView-8dfcfff8.js +++ b/app/src/main/resources/web/assets/NotesRootView-b6a592d7.js @@ -1 +1 @@ -import{_ as v}from"./TagFilter.vuevuetypescriptsetuptruelang-873baaa8.js";import{d as C,D as g,e as k,E as N,G as w,c as $,p as s,H as n,j as e,o as y,a as t,t as i,l as r,I as _,C as p}from"./index-b6c39163.js";import{g as d,M as z}from"./splitpanes.es-f516e17d.js";import"./EditValueModal-f5302cb7.js";import"./vee-validate.esm-03fad591.js";const B={class:"page-container"},E={class:"sidebar"},M={class:"nav-title"},S={class:"nav"},T=["onClick"],V=["onClick"],D={class:"main"},O=C({__name:"NotesRootView",setup(R){const o=g(),c=k(),l=N(o.query);function m(){p(c,"/notes/trash")}function u(){p(c,"/notes")}return(a,b)=>{const h=v,f=w("router-view");return y(),$("div",B,[s(e(z),null,{default:n(()=>[s(e(d),{size:"20","min-size":"10"},{default:n(()=>[t("div",E,[t("h2",M,i(a.$t("page_title.notes")),1),t("ul",S,[t("li",{onClick:r(u,["prevent"]),class:_({active:e(o).path==="/notes"&&!e(l)})},i(a.$t("all")),11,T),t("li",{onClick:r(m,["prevent"]),class:_({active:e(o).path==="/notes/trash"})},i(a.$t("trash")),11,V)]),s(h,{type:"NOTE",selected:e(l)},null,8,["selected"])])]),_:1}),s(e(d),null,{default:n(()=>[t("div",D,[s(f)])]),_:1})]),_:1})])}}});export{O as default}; +import{_ as v}from"./TagFilter.vuevuetypescriptsetuptruelang-2bcd90c5.js";import{d as C,D as g,e as k,E as N,G as w,c as $,p as s,H as n,j as e,o as y,a as t,t as i,l as r,I as _,C as p}from"./index-1dff6785.js";import{g as d,M as z}from"./splitpanes.es-e9e41ca8.js";import"./EditValueModal-1892701b.js";import"./vee-validate.esm-b0b47415.js";const B={class:"page-container"},E={class:"sidebar"},M={class:"nav-title"},S={class:"nav"},T=["onClick"],V=["onClick"],D={class:"main"},O=C({__name:"NotesRootView",setup(R){const o=g(),c=k(),l=N(o.query);function m(){p(c,"/notes/trash")}function u(){p(c,"/notes")}return(a,b)=>{const h=v,f=w("router-view");return y(),$("div",B,[s(e(z),null,{default:n(()=>[s(e(d),{size:"20","min-size":"10"},{default:n(()=>[t("div",E,[t("h2",M,i(a.$t("page_title.notes")),1),t("ul",S,[t("li",{onClick:r(u,["prevent"]),class:_({active:e(o).path==="/notes"&&!e(l)})},i(a.$t("all")),11,T),t("li",{onClick:r(m,["prevent"]),class:_({active:e(o).path==="/notes/trash"})},i(a.$t("trash")),11,V)]),s(h,{type:"NOTE",selected:e(l)},null,8,["selected"])])]),_:1}),s(e(d),null,{default:n(()=>[t("div",D,[s(f)])]),_:1})]),_:1})])}}});export{O as default}; diff --git a/app/src/main/resources/web/assets/NotesTrashView-20648cd8.js b/app/src/main/resources/web/assets/NotesTrashView-61909739.js similarity index 93% rename from app/src/main/resources/web/assets/NotesTrashView-20648cd8.js rename to app/src/main/resources/web/assets/NotesTrashView-61909739.js index 1d44199f..35a992d9 100644 --- a/app/src/main/resources/web/assets/NotesTrashView-20648cd8.js +++ b/app/src/main/resources/web/assets/NotesTrashView-61909739.js @@ -1,4 +1,4 @@ -import{c as ue,u as _e,_ as pe,a as he,b as me}from"./list-6c4ddffc.js";import{o as n,c as a,a as e,d as ve,e as fe,r as m,u as ke,K as ge,L as be,D as $e,M as ye,N as qe,w as Ce,i as Te,R as we,p as r,j as s,F as $,m as v,l as d,k as T,H as Ve,t as c,J as G,S as De,T as Ne,U as Se,a_ as Ae,x as H,aX as Ie,C as j,W as z,a$ as Me,v as Be,I as Qe,Z as E,$ as Re,a0 as Le,a1 as Ze,aZ as Ue,a2 as Fe,ab as Ge,ac as He,ad as je,a5 as ze}from"./index-b6c39163.js";import{_ as Ee}from"./Breadcrumb-fef16e9c.js";import{u as Ke}from"./tags-3bd6efbc.js";import"./vee-validate.esm-03fad591.js";const xe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Je=e("path",{fill:"currentColor",d:"M7 21q-.825 0-1.413-.588T5 19V6q-.425 0-.713-.288T4 5q0-.425.288-.713T5 4h4q0-.425.288-.713T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6v13q0 .825-.588 1.413T17 21H7ZM7 6v13h10V6H7Zm0 0v13V6Zm4 5.85V15q0 .425.288.713T12 16q.425 0 .713-.288T13 15v-3.15l.9.875q.3.275.713.263t.687-.288q.275-.275.275-.7t-.275-.7l-2.6-2.6q-.275-.275-.7-.275t-.7.275l-2.6 2.6q-.275.275-.275.7t.275.7q.275.275.688.288t.712-.263l.9-.875Z"},null,-1),Oe=[Je];function Pe(K,y){return n(),a("svg",xe,Oe)}const We={name:"material-symbols-restore-from-trash-outline-rounded",render:Pe},Xe={class:"v-toolbar"},Ye=e("md-ripple",null,null,-1),et=["onClick"],tt=e("md-ripple",null,null,-1),ot={class:"filters"},st=["label"],lt={class:"form-label"},nt=["label","selected","onClick"],at={class:"buttons"},ct=["onClick"],it={class:"table-responsive"},rt={class:"table"},dt=["checked","indeterminate"],ut=e("th",null,"ID",-1),_t=e("th",null,null,-1),pt=["onClick"],ht=["checked"],mt=["onClick"],vt={class:"nowrap"},ft={class:"action-btns"},kt=["onClick"],gt=e("md-ripple",null,null,-1),bt=["onClick"],$t=e("md-ripple",null,null,-1),yt={class:"nowrap"},qt={class:"nowrap"},Ct={key:0},Tt={colspan:"6"},wt={class:"no-data-placeholder"},f=50,Mt=ve({__name:"NotesTrashView",setup(K){var L,Z;const y=fe(),u=m([]),w=m(),{t:V}=ke(),i=ge({text:"",tags:[]}),x=be.NOTE,D=$e().query,k=m(parseInt(((L=D.page)==null?void 0:L.toString())??"1")),_=m(ye(((Z=D.q)==null?void 0:Z.toString())??"")),q=m(""),{tags:J}=Ke(x,_,i,async t=>{t.push({name:"trash",op:"",value:"true"}),q.value=Ne(t),await Se(),ee()}),{deleteItems:O}=ue(Ae,()=>{g(),B()},u),{allChecked:N,realAllChecked:S,selectRealAll:P,allCheckedAlertVisible:W,clearSelection:g,toggleAllChecked:A,toggleItemChecked:I,toggleRow:X,total:p,checked:M}=_e(u),{loading:Y,load:ee,refetch:B}=qe({handle:(t,l)=>{l?H(V(l),"error"):t&&(u.value=t.notes.map(C=>({...C,checked:!1})),p.value=t.noteCount)},document:Ie,variables:()=>({offset:(k.value-1)*f,limit:f,query:q.value}),appApi:!0});Ce(k,t=>{j(y,`/notes/trash?page=${t}&q=${z(_.value)}`)});function te(t){i.tags.includes(t)?Le(i.tags,l=>l.id===t.id):i.tags.push(t)}function oe(){_.value=Ze(i),Q(),w.value.dismiss()}function Q(){j(y,`/notes/trash?q=${z(_.value)}`)}const{mutate:R,onDone:se}=Te({document:Me,appApi:!0});function le(){const t=u.value.filter(l=>l.checked);if(t.length===0){H(V("select_first"),"error");return}R({query:`ids:${t.map(l=>l.id).join(",")}`})}function ne(t){Ue.push(`/notes/${t.id}`)}se(()=>{g(),B()});function ae(t){Fe(He,{id:t.id,name:t.id,gql:Ge` +import{c as ue,u as _e,_ as pe,a as he,b as me}from"./list-0d76acfa.js";import{o as n,c as a,a as e,d as ve,e as fe,r as m,u as ke,K as ge,L as be,D as $e,M as ye,N as qe,w as Ce,i as Te,R as we,p as r,j as s,F as $,m as v,l as d,k as T,H as Ve,t as c,J as G,S as De,T as Ne,U as Se,a_ as Ae,x as H,aX as Ie,C as j,W as z,a$ as Me,v as Be,I as Qe,Z as E,$ as Re,a0 as Le,a1 as Ze,aZ as Ue,a2 as Fe,ab as Ge,ac as He,ad as je,a5 as ze}from"./index-1dff6785.js";import{_ as Ee}from"./Breadcrumb-cba2b95b.js";import{u as Ke}from"./tags-ba1ad11a.js";import"./vee-validate.esm-b0b47415.js";const xe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Je=e("path",{fill:"currentColor",d:"M7 21q-.825 0-1.413-.588T5 19V6q-.425 0-.713-.288T4 5q0-.425.288-.713T5 4h4q0-.425.288-.713T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6v13q0 .825-.588 1.413T17 21H7ZM7 6v13h10V6H7Zm0 0v13V6Zm4 5.85V15q0 .425.288.713T12 16q.425 0 .713-.288T13 15v-3.15l.9.875q.3.275.713.263t.687-.288q.275-.275.275-.7t-.275-.7l-2.6-2.6q-.275-.275-.7-.275t-.7.275l-2.6 2.6q-.275.275-.275.7t.275.7q.275.275.688.288t.712-.263l.9-.875Z"},null,-1),Oe=[Je];function Pe(K,y){return n(),a("svg",xe,Oe)}const We={name:"material-symbols-restore-from-trash-outline-rounded",render:Pe},Xe={class:"v-toolbar"},Ye=e("md-ripple",null,null,-1),et=["onClick"],tt=e("md-ripple",null,null,-1),ot={class:"filters"},st=["label"],lt={class:"form-label"},nt=["label","selected","onClick"],at={class:"buttons"},ct=["onClick"],it={class:"table-responsive"},rt={class:"table"},dt=["checked","indeterminate"],ut=e("th",null,"ID",-1),_t=e("th",null,null,-1),pt=["onClick"],ht=["checked"],mt=["onClick"],vt={class:"nowrap"},ft={class:"action-btns"},kt=["onClick"],gt=e("md-ripple",null,null,-1),bt=["onClick"],$t=e("md-ripple",null,null,-1),yt={class:"nowrap"},qt={class:"nowrap"},Ct={key:0},Tt={colspan:"6"},wt={class:"no-data-placeholder"},f=50,Mt=ve({__name:"NotesTrashView",setup(K){var L,Z;const y=fe(),u=m([]),w=m(),{t:V}=ke(),i=ge({text:"",tags:[]}),x=be.NOTE,D=$e().query,k=m(parseInt(((L=D.page)==null?void 0:L.toString())??"1")),_=m(ye(((Z=D.q)==null?void 0:Z.toString())??"")),q=m(""),{tags:J}=Ke(x,_,i,async t=>{t.push({name:"trash",op:"",value:"true"}),q.value=Ne(t),await Se(),ee()}),{deleteItems:O}=ue(Ae,()=>{g(),B()},u),{allChecked:N,realAllChecked:S,selectRealAll:P,allCheckedAlertVisible:W,clearSelection:g,toggleAllChecked:A,toggleItemChecked:I,toggleRow:X,total:p,checked:M}=_e(u),{loading:Y,load:ee,refetch:B}=qe({handle:(t,l)=>{l?H(V(l),"error"):t&&(u.value=t.notes.map(C=>({...C,checked:!1})),p.value=t.noteCount)},document:Ie,variables:()=>({offset:(k.value-1)*f,limit:f,query:q.value}),appApi:!0});Ce(k,t=>{j(y,`/notes/trash?page=${t}&q=${z(_.value)}`)});function te(t){i.tags.includes(t)?Le(i.tags,l=>l.id===t.id):i.tags.push(t)}function oe(){_.value=Ze(i),Q(),w.value.dismiss()}function Q(){j(y,`/notes/trash?q=${z(_.value)}`)}const{mutate:R,onDone:se}=Te({document:Me,appApi:!0});function le(){const t=u.value.filter(l=>l.checked);if(t.length===0){H(V("select_first"),"error");return}R({query:`ids:${t.map(l=>l.id).join(",")}`})}function ne(t){Ue.push(`/notes/${t.id}`)}se(()=>{g(),B()});function ae(t){Fe(He,{id:t.id,name:t.id,gql:Ge` mutation DeleteNote($query: String!) { deleteNotes(query: $query) } diff --git a/app/src/main/resources/web/assets/NotesView-39166570.js b/app/src/main/resources/web/assets/NotesView-f471e3c0.js similarity index 95% rename from app/src/main/resources/web/assets/NotesView-39166570.js rename to app/src/main/resources/web/assets/NotesView-f471e3c0.js index 371788e5..2d5024bd 100644 --- a/app/src/main/resources/web/assets/NotesView-39166570.js +++ b/app/src/main/resources/web/assets/NotesView-f471e3c0.js @@ -1,2 +1,2 @@ -import{u as ve,_ as fe,a as ge,b as ke}from"./list-6c4ddffc.js";import{o as l,c as a,a as t,d as be,e as $e,r as f,u as ye,K as Te,L as Ce,D as qe,M as we,N as Ve,w as Se,i as Ae,P as g,O as De,Q as Me,R as Ie,p as d,j as s,F as C,m as k,l as r,k as A,t as i,H as Ne,J as K,S as Be,T as Qe,U as Ue,x as O,aX as Ze,aY as Re,C as P,W as x,v as He,I as Le,Z as J,$ as ze,a2 as Fe,a3 as je,a0 as Ee,a1 as Ge,aZ as W,a4 as Ke,a6 as Oe}from"./index-b6c39163.js";import{_ as Pe}from"./Breadcrumb-fef16e9c.js";import{u as xe,a as Je}from"./tags-3bd6efbc.js";import"./vee-validate.esm-03fad591.js";const We={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Xe=t("path",{fill:"currentColor",d:"M7 21q-.825 0-1.413-.588T5 19V6q-.425 0-.713-.288T4 5q0-.425.288-.713T5 4h4q0-.425.288-.713T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6v13q0 .825-.588 1.413T17 21H7ZM7 6v13h10V6H7Zm2 10q0 .425.288.713T10 17q.425 0 .713-.288T11 16V9q0-.425-.288-.713T10 8q-.425 0-.713.288T9 9v7Zm4 0q0 .425.288.713T14 17q.425 0 .713-.288T15 16V9q0-.425-.288-.713T14 8q-.425 0-.713.288T13 9v7ZM7 6v13V6Z"},null,-1),Ye=[Xe];function et(X,q){return l(),a("svg",We,Ye)}const tt={name:"material-symbols-delete-outline-rounded",render:et},st={class:"v-toolbar"},ot=["onClick"],nt=t("md-ripple",null,null,-1),lt=t("md-ripple",null,null,-1),at=["onClick"],it={class:"filters"},ct=["label"],dt={class:"form-label"},rt=["label","selected","onClick"],ut={class:"buttons"},_t=["onClick"],pt={class:"table-responsive"},ht={class:"table"},mt=["checked","indeterminate"],vt=t("th",null,null,-1),ft=["onClick"],gt=["checked"],kt={style:{"min-width":"200px"}},bt=["onClick"],$t={class:"nowrap"},yt={class:"action-btns"},Tt=["onClick"],Ct=t("md-ripple",null,null,-1),qt=["onClick"],wt=t("md-ripple",null,null,-1),Vt={class:"nowrap"},St={class:"nowrap"},At={key:0},Dt={colspan:"6"},Mt={class:"no-data-placeholder"},b=50,Rt=be({__name:"NotesView",setup(X){var F,j;const q=$e(),u=f([]),D=f(),{t:M}=ye(),c=Te({text:"",tags:[]}),_=Ce.NOTE,I=qe().query,$=f(parseInt(((F=I.page)==null?void 0:F.toString())??"1")),p=f(we(((j=I.q)==null?void 0:j.toString())??"")),w=f(""),{tags:y}=xe(_,p,c,async e=>{e.push({name:"trash",op:"",value:"false"}),w.value=Qe(e),await Ue(),ne()}),{addToTags:Y}=Je(_,u,y),{allChecked:N,realAllChecked:B,selectRealAll:ee,allCheckedAlertVisible:te,clearSelection:V,toggleAllChecked:Q,toggleItemChecked:U,toggleRow:se,total:m,checked:Z}=ve(u),{loading:oe,load:ne,refetch:S}=Ve({handle:(e,n)=>{n?O(M(n),"error"):e&&(u.value=e.notes.map(v=>({...v,checked:!1})),m.value=e.noteCount)},document:Ze,variables:()=>({offset:($.value-1)*b,limit:b,query:w.value}),appApi:!0});function le(e){Fe(je,{type:_,tags:y.value,item:{key:e.id,title:"",size:0},selected:y.value.filter(n=>e.tags.some(v=>v.id===n.id))})}Se($,e=>{P(q,`/notes?page=${e}&q=${x(p.value)}`)});const{mutate:R,onDone:ae}=Ae({document:Re,appApi:!0});function ie(){const e=u.value.filter(n=>n.checked);if(e.length===0){O(M("select_first"),"error");return}R({query:`ids:${e.map(n=>n.id).join(",")}`})}ae(()=>{V(),S(),u.value.some(e=>e.tags.length)&&g.emit("refetch_tags",_)});function ce(e){c.tags.includes(e)?Ee(c.tags,n=>n.id===e.id):c.tags.push(e)}function de(){p.value=Ge(c),H(),D.value.dismiss()}function H(){P(q,`/notes?q=${x(p.value)}`)}const L=e=>{e.type===_&&(V(),S())},z=e=>{e.type===_&&S()};De(()=>{g.on("item_tags_updated",z),g.on("items_tags_updated",L)}),Me(()=>{g.off("item_tags_updated",z),g.off("items_tags_updated",L)});function re(e){W.push(`/notes/${e.id}`)}function ue(){W.push("/notes/create")}return(e,n)=>{const v=Pe,E=tt,G=Ke,_e=fe,pe=ge,he=Oe,me=ke,T=Ie("tooltip");return l(),a(C,null,[t("div",st,[d(v,{current:()=>`${e.$t("page_title.notes")} (${s(m)})`},null,8,["current"]),s(Z)?(l(),a(C,{key:0},[k((l(),a("button",{class:"icon-button",onClick:r(ie,["stop"])},[nt,d(E)],8,ot)),[[T,e.$t("move_to_trash")]]),k((l(),a("button",{class:"icon-button",onClick:n[0]||(n[0]=r(o=>s(Y)(s(B),w.value),["stop"]))},[lt,d(G)])),[[T,e.$t("add_to_tags")]])],64)):A("",!0),t("md-outlined-button",{onClick:r(ue,["prevent"])},i(e.$t("create")),9,at),d(_e,{ref_key:"searchInputRef",ref:D,modelValue:p.value,"onUpdate:modelValue":n[2]||(n[2]=o=>p.value=o),search:H},{filters:Ne(()=>[t("div",it,[k(t("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":n[1]||(n[1]=o=>c.text=o),"keyup.enter":"applyAndDoSearch"},null,8,ct),[[He,c.text]]),t("label",dt,i(e.$t("tags")),1),t("md-chip-set",null,[(l(!0),a(C,null,K(s(y),o=>(l(),a("md-filter-chip",{key:o.id,label:o.name,selected:c.tags.includes(o),onClick:h=>ce(o)},null,8,rt))),128))]),t("div",ut,[t("md-filled-button",{onClick:r(de,["stop"])},i(e.$t("search")),9,_t)])])]),_:1},8,["modelValue"])]),d(pe,{limit:b,total:s(m),"all-checked-alert-visible":s(te),"real-all-checked":s(B),"select-real-all":s(ee),"clear-selection":s(V)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t("div",pt,[t("table",ht,[t("thead",null,[t("tr",null,[t("th",null,[t("md-checkbox",{"touch-target":"wrapper",onChange:n[3]||(n[3]=(...o)=>s(Q)&&s(Q)(...o)),checked:s(N),indeterminate:!s(N)&&s(Z)},null,40,mt)]),t("th",null,i(e.$t("title")),1),vt,t("th",null,i(e.$t("tags")),1),t("th",null,i(e.$t("updated_at")),1),t("th",null,i(e.$t("created_at")),1)])]),t("tbody",null,[(l(!0),a(C,null,K(u.value,o=>(l(),a("tr",{key:o.id,class:Le({selected:o.checked}),onClick:r(h=>s(se)(o),["stop"])},[t("td",null,[t("md-checkbox",{"touch-target":"wrapper",onChange:n[4]||(n[4]=(...h)=>s(U)&&s(U)(...h)),checked:o.checked},null,40,gt)]),t("td",kt,[t("a",{style:{"text-overflow":"clip"},href:"#",onClick:r(h=>re(o),["stop","prevent"])},i(o.title.split(` +import{u as ve,_ as fe,a as ge,b as ke}from"./list-0d76acfa.js";import{o as l,c as a,a as t,d as be,e as $e,r as f,u as ye,K as Te,L as Ce,D as qe,M as we,N as Ve,w as Se,i as Ae,P as g,O as De,Q as Me,R as Ie,p as d,j as s,F as C,m as k,l as r,k as A,t as i,H as Ne,J as K,S as Be,T as Qe,U as Ue,x as O,aX as Ze,aY as Re,C as P,W as x,v as He,I as Le,Z as J,$ as ze,a2 as Fe,a3 as je,a0 as Ee,a1 as Ge,aZ as W,a4 as Ke,a6 as Oe}from"./index-1dff6785.js";import{_ as Pe}from"./Breadcrumb-cba2b95b.js";import{u as xe,a as Je}from"./tags-ba1ad11a.js";import"./vee-validate.esm-b0b47415.js";const We={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Xe=t("path",{fill:"currentColor",d:"M7 21q-.825 0-1.413-.588T5 19V6q-.425 0-.713-.288T4 5q0-.425.288-.713T5 4h4q0-.425.288-.713T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6v13q0 .825-.588 1.413T17 21H7ZM7 6v13h10V6H7Zm2 10q0 .425.288.713T10 17q.425 0 .713-.288T11 16V9q0-.425-.288-.713T10 8q-.425 0-.713.288T9 9v7Zm4 0q0 .425.288.713T14 17q.425 0 .713-.288T15 16V9q0-.425-.288-.713T14 8q-.425 0-.713.288T13 9v7ZM7 6v13V6Z"},null,-1),Ye=[Xe];function et(X,q){return l(),a("svg",We,Ye)}const tt={name:"material-symbols-delete-outline-rounded",render:et},st={class:"v-toolbar"},ot=["onClick"],nt=t("md-ripple",null,null,-1),lt=t("md-ripple",null,null,-1),at=["onClick"],it={class:"filters"},ct=["label"],dt={class:"form-label"},rt=["label","selected","onClick"],ut={class:"buttons"},_t=["onClick"],pt={class:"table-responsive"},ht={class:"table"},mt=["checked","indeterminate"],vt=t("th",null,null,-1),ft=["onClick"],gt=["checked"],kt={style:{"min-width":"200px"}},bt=["onClick"],$t={class:"nowrap"},yt={class:"action-btns"},Tt=["onClick"],Ct=t("md-ripple",null,null,-1),qt=["onClick"],wt=t("md-ripple",null,null,-1),Vt={class:"nowrap"},St={class:"nowrap"},At={key:0},Dt={colspan:"6"},Mt={class:"no-data-placeholder"},b=50,Rt=be({__name:"NotesView",setup(X){var F,j;const q=$e(),u=f([]),D=f(),{t:M}=ye(),c=Te({text:"",tags:[]}),_=Ce.NOTE,I=qe().query,$=f(parseInt(((F=I.page)==null?void 0:F.toString())??"1")),p=f(we(((j=I.q)==null?void 0:j.toString())??"")),w=f(""),{tags:y}=xe(_,p,c,async e=>{e.push({name:"trash",op:"",value:"false"}),w.value=Qe(e),await Ue(),ne()}),{addToTags:Y}=Je(_,u,y),{allChecked:N,realAllChecked:B,selectRealAll:ee,allCheckedAlertVisible:te,clearSelection:V,toggleAllChecked:Q,toggleItemChecked:U,toggleRow:se,total:m,checked:Z}=ve(u),{loading:oe,load:ne,refetch:S}=Ve({handle:(e,n)=>{n?O(M(n),"error"):e&&(u.value=e.notes.map(v=>({...v,checked:!1})),m.value=e.noteCount)},document:Ze,variables:()=>({offset:($.value-1)*b,limit:b,query:w.value}),appApi:!0});function le(e){Fe(je,{type:_,tags:y.value,item:{key:e.id,title:"",size:0},selected:y.value.filter(n=>e.tags.some(v=>v.id===n.id))})}Se($,e=>{P(q,`/notes?page=${e}&q=${x(p.value)}`)});const{mutate:R,onDone:ae}=Ae({document:Re,appApi:!0});function ie(){const e=u.value.filter(n=>n.checked);if(e.length===0){O(M("select_first"),"error");return}R({query:`ids:${e.map(n=>n.id).join(",")}`})}ae(()=>{V(),S(),u.value.some(e=>e.tags.length)&&g.emit("refetch_tags",_)});function ce(e){c.tags.includes(e)?Ee(c.tags,n=>n.id===e.id):c.tags.push(e)}function de(){p.value=Ge(c),H(),D.value.dismiss()}function H(){P(q,`/notes?q=${x(p.value)}`)}const L=e=>{e.type===_&&(V(),S())},z=e=>{e.type===_&&S()};De(()=>{g.on("item_tags_updated",z),g.on("items_tags_updated",L)}),Me(()=>{g.off("item_tags_updated",z),g.off("items_tags_updated",L)});function re(e){W.push(`/notes/${e.id}`)}function ue(){W.push("/notes/create")}return(e,n)=>{const v=Pe,E=tt,G=Ke,_e=fe,pe=ge,he=Oe,me=ke,T=Ie("tooltip");return l(),a(C,null,[t("div",st,[d(v,{current:()=>`${e.$t("page_title.notes")} (${s(m)})`},null,8,["current"]),s(Z)?(l(),a(C,{key:0},[k((l(),a("button",{class:"icon-button",onClick:r(ie,["stop"])},[nt,d(E)],8,ot)),[[T,e.$t("move_to_trash")]]),k((l(),a("button",{class:"icon-button",onClick:n[0]||(n[0]=r(o=>s(Y)(s(B),w.value),["stop"]))},[lt,d(G)])),[[T,e.$t("add_to_tags")]])],64)):A("",!0),t("md-outlined-button",{onClick:r(ue,["prevent"])},i(e.$t("create")),9,at),d(_e,{ref_key:"searchInputRef",ref:D,modelValue:p.value,"onUpdate:modelValue":n[2]||(n[2]=o=>p.value=o),search:H},{filters:Ne(()=>[t("div",it,[k(t("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":n[1]||(n[1]=o=>c.text=o),"keyup.enter":"applyAndDoSearch"},null,8,ct),[[He,c.text]]),t("label",dt,i(e.$t("tags")),1),t("md-chip-set",null,[(l(!0),a(C,null,K(s(y),o=>(l(),a("md-filter-chip",{key:o.id,label:o.name,selected:c.tags.includes(o),onClick:h=>ce(o)},null,8,rt))),128))]),t("div",ut,[t("md-filled-button",{onClick:r(de,["stop"])},i(e.$t("search")),9,_t)])])]),_:1},8,["modelValue"])]),d(pe,{limit:b,total:s(m),"all-checked-alert-visible":s(te),"real-all-checked":s(B),"select-real-all":s(ee),"clear-selection":s(V)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t("div",pt,[t("table",ht,[t("thead",null,[t("tr",null,[t("th",null,[t("md-checkbox",{"touch-target":"wrapper",onChange:n[3]||(n[3]=(...o)=>s(Q)&&s(Q)(...o)),checked:s(N),indeterminate:!s(N)&&s(Z)},null,40,mt)]),t("th",null,i(e.$t("title")),1),vt,t("th",null,i(e.$t("tags")),1),t("th",null,i(e.$t("updated_at")),1),t("th",null,i(e.$t("created_at")),1)])]),t("tbody",null,[(l(!0),a(C,null,K(u.value,o=>(l(),a("tr",{key:o.id,class:Le({selected:o.checked}),onClick:r(h=>s(se)(o),["stop"])},[t("td",null,[t("md-checkbox",{"touch-target":"wrapper",onChange:n[4]||(n[4]=(...h)=>s(U)&&s(U)(...h)),checked:o.checked},null,40,gt)]),t("td",kt,[t("a",{style:{"text-overflow":"clip"},href:"#",onClick:r(h=>re(o),["stop","prevent"])},i(o.title.split(` `)[0].trimStart()||e.$t("meta_no_title")),9,bt)]),t("td",$t,[t("div",yt,[k((l(),a("button",{class:"icon-button",onClick:r(h=>s(R)({query:`ids:${o.id}`}),["stop"])},[Ct,d(E)],8,Tt)),[[T,e.$t("move_to_trash")]]),k((l(),a("button",{class:"icon-button",onClick:r(h=>le(o),["stop"])},[wt,d(G)],8,qt)),[[T,e.$t("add_to_tags")]])])]),t("td",null,[d(he,{tags:o.tags,type:s(_)},null,8,["tags","type"])]),t("td",Vt,i(s(J)(o.updatedAt)),1),t("td",St,i(s(J)(o.createdAt)),1)],10,ft))),128))]),u.value.length?A("",!0):(l(),a("tfoot",At,[t("tr",null,[t("td",Dt,[t("div",Mt,i(e.$t(s(ze)(s(oe)))),1)])])]))])]),s(m)>b?(l(),Be(me,{key:0,modelValue:$.value,"onUpdate:modelValue":n[5]||(n[5]=o=>$.value=o),total:s(m),limit:b},null,8,["modelValue","total"])):A("",!0)],64)}}});export{Rt as default}; diff --git a/app/src/main/resources/web/assets/QrCodeGeneratorView-41768d9b.js b/app/src/main/resources/web/assets/QrCodeGeneratorView-1a8fb03e.js similarity index 99% rename from app/src/main/resources/web/assets/QrCodeGeneratorView-41768d9b.js rename to app/src/main/resources/web/assets/QrCodeGeneratorView-1a8fb03e.js index 211d26f1..9c064a19 100644 --- a/app/src/main/resources/web/assets/QrCodeGeneratorView-41768d9b.js +++ b/app/src/main/resources/web/assets/QrCodeGeneratorView-1a8fb03e.js @@ -1 +1 @@ -import{_ as J}from"./Breadcrumb-fef16e9c.js";import{bt as I,d as Y,s as $,e as j,r as q,w as tt,c as z,a as S,p as b,H as D,j as k,o as P,m as rt,v as et,n as nt,k as it,_ as at}from"./index-b6c39163.js";import{g as H,M as st}from"./splitpanes.es-f516e17d.js";var p;(function(r){r[r.Terminator=0]="Terminator",r[r.Numeric=1]="Numeric",r[r.Alphanumeric=2]="Alphanumeric",r[r.StructuredAppend=3]="StructuredAppend",r[r.Byte=4]="Byte",r[r.Kanji=8]="Kanji",r[r.ECI=7]="ECI"})(p||(p={}));var K=function(){function r(t,e){this.bytes=[],this.mode=t,this.data=e}return r.prototype.getLength=function(){return this.bytes.length},r.prototype.getLengthInBits=function(t){var e=this.mode,i=new Error("illegal mode: ".concat(e));if(1<=t&&t<10)switch(e){case p.Numeric:return 10;case p.Alphanumeric:return 9;case p.Byte:return 8;case p.Kanji:return 8;default:throw i}else if(t<27)switch(e){case p.Numeric:return 12;case p.Alphanumeric:return 11;case p.Byte:return 16;case p.Kanji:return 10;default:throw i}else if(t<41)switch(e){case p.Numeric:return 14;case p.Alphanumeric:return 13;case p.Byte:return 16;case p.Kanji:return 12;default:throw i}else throw new Error("illegal version: ".concat(t))},r}();function ot(r){for(var t=0,e=r.length,i=[],n=0;n>6|192,i[t++]=a&63|128):(a&64512)===55296&&n+1>18|240,i[t++]=a>>12&63|128,i[t++]=a>>6&63|128,i[t++]=a&63|128):(i[t++]=a>>12|224,i[t++]=a>>6&63|128,i[t++]=a&63|128)}return i}var ft=function(r){I(t,r);function t(e,i){var n=r.call(this,p.Byte,e)||this;if(n.encoding=-1,typeof i=="function"){var a=i(e),s=a.encoding,f=a.bytes;n.bytes=f,n.encoding=s}else n.bytes=ot(e),n.encoding=26;return n}return t.prototype.writeTo=function(e){for(var i=this.bytes,n=0,a=i;n=256;)r-=255;return B[r]}var A=function(){function r(t,e){e===void 0&&(e=0);for(var i=0,n=t.length;i>>=1;return t}var N=L(U);function wt(r){for(var t=r<<12;L(t)-N>=0;)t^=U<=0;)t^=Q<5&&i++):(a=u,s=1)}return i}function yt(r){return G(r,!0)+G(r,!1)}function Bt(r){for(var t=r.getMatrixSize(),e=0,i=0;i>0]>>>7-t%8&1)===1},r.prototype.put=function(t,e){for(var i=0;i>>e-i-1&1)===1)},r.prototype.putBit=function(t){var e=this.buffer;this.length===e.length*8&&e.push(0),t&&(e[this.length/8>>0]|=128>>>this.length%8),this.length++},r}();var Z=function(){function r(){}return r.prototype.writeBytes=function(t,e,i){e===void 0&&(e=0),i===void 0&&(i=t.length);for(var n=0;n>>8)},t.prototype.toByteArray=function(){return this.bytes},t}(Z);function kt(r){if(r>=0){if(r<26)return 65+r;if(r<52)return 97+(r-26);if(r<62)return 48+(r-52);if(r===62)return 43;if(r===63)return 47}throw new Error("illegal char: ".concat(String.fromCharCode(r)))}var Ct=function(r){I(t,r);function t(e){var i=r.call(this)||this;return i.buffer=0,i.length=0,i.bufLength=0,i.stream=e,i}return t.prototype.writeByte=function(e){for(this.buffer=this.buffer<<8|e&255,this.bufLength+=8,this.length++;this.bufLength>=6;)this.writeEncoded(this.buffer>>>this.bufLength-6),this.bufLength-=6},t.prototype.flush=function(){this.bufLength>0&&(this.writeEncoded(this.buffer<<6-this.bufLength),this.buffer=0,this.bufLength=0);var e=this.stream;if(this.length%3!=0)for(var i=3-this.length%3,n=0;n=0},r}(),dt=function(){function r(t){this.output=t,this.bitLength=0,this.bitBuffer=0}return r.prototype.write=function(t,e){if(t>>>e)throw new Error("length overflow");for(var i=this.output;this.bitLength+e>=8;)i.writeByte(255&(t<>>=8-this.bitLength,this.bitBuffer=0,this.bitLength=0;this.bitBuffer=t<0&&t.writeByte(this.bitBuffer),t.flush()},r.prototype.close=function(){this.flush(),this.output.close()},r}(),At=function(){function r(t,e){this.data=[],this.width=t,this.height=e;for(var i=t*e,n=0;n255;)t.writeByte(255),t.writeBytes(s,u,255),u+=255;var o=f-u;t.writeByte(o),t.writeBytes(s,u,o),t.writeByte(0),t.writeByte(59)},r.prototype.toDataURL=function(){var t=new E;this.write(t);var e=St(t.toByteArray());t.close();for(var i=e.length,n=String.fromCharCode,a="data:image/gif;base64,",s=0;s>0)+(e/2>>0)&1)===0};case 5:return function(t,e){return(t*e&1)+t*e%3===0};case 6:return function(t,e){return((t*e&1)+t*e%3&1)===0};case 7:return function(t,e){return(t*e%3+(t+e&1)&1)===0};default:throw new Error("illegal mask: ".concat(r))}}var It=236,Rt=17,Tt=Object.prototype.toString;function Mt(r,t){if(r<0||r>=1e6)throw new Error("byte mode encoding hint out of range");t.put(p.ECI,4),r<128?t.put(r,8):r<16384?(t.put(2,2),t.put(r,14)):(t.put(6,3),t.put(r,21))}function F(r,t,e,i){for(var n=new W,a=bt.getRSBlocks(r,t),s=0,f=i;s=0?T.getAt(M):0}}r=new W;for(var h=0;h=e||(r.put(It,8),r.getLengthInBits()>=e));)r.put(Rt,8);return zt(r,t)}var Ht=function(){function r(t){t===void 0&&(t={}),this.matrixSize=0,this.chunks=[],this.matrix=[];var e=t.version,i=e===void 0?0:e,n=t.encodingHint,a=n===void 0?!1:n,s=t.errorCorrectionLevel,f=s===void 0?y.L:s;this.setVersion(i),this.setEncodingHint(a),this.setErrorCorrectionLevel(f)}return r.prototype.getMatrix=function(){return this.matrix},r.prototype.getMatrixSize=function(){return this.matrixSize},r.prototype.getVersion=function(){return this.version},r.prototype.setVersion=function(t){return this.version=Math.min(40,Math.max(0,t>>0)),this.auto=this.version===0,this},r.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},r.prototype.setErrorCorrectionLevel=function(t){switch(t){case y.L:case y.M:case y.Q:case y.H:this.errorCorrectionLevel=t}return this},r.prototype.getEncodingHint=function(){return this.encodingHint},r.prototype.setEncodingHint=function(t){return this.encodingHint=t,this},r.prototype.write=function(t){var e=this.chunks;if(t instanceof K)e.push(t);else{var i=Tt.call(t);if(i==="[object String]")e.push(new ft(t));else throw new Error("illegal data: ".concat(t))}return this},r.prototype.isDark=function(t,e){return this.matrix[t][e]===!0},r.prototype.setupFinderPattern=function(t,e){for(var i=this.matrix,n=this.matrixSize,a=-1;a<=7;a++)for(var s=-1;s<=7;s++)t+a<=-1||n<=t+a||e+s<=-1||n<=e+s||(0<=a&&a<=6&&(s===0||s===6)||0<=s&&s<=6&&(a===0||a===6)||2<=a&&a<=4&&2<=s&&s<=4?i[t+a][e+s]=!0:i[t+a][e+s]=!1)},r.prototype.setupAlignmentPattern=function(){for(var t=this.matrix,e=pt(this.version),i=e.length,n=0;n>s&1)===1;s<6?e[s][8]=f:s<8?e[s+1][8]=f:e[a-15+s][8]=f,s<8?e[8][a-s-1]=f:s<9?e[8][15-s-1+1]=f:e[8][15-s-1]=f}e[a-8][8]=!0},r.prototype.setupVersionInfo=function(){if(this.version>=7)for(var t=this.matrix,e=this.matrixSize,i=wt(this.version),n=0;n<18;n++){var a=(i>>n&1)===1;t[n/3>>0][n%3+e-8-3]=a,t[n%3+e-8-3][n/3>>0]=a}},r.prototype.setupCodewords=function(t,e){for(var i=this.matrix,n=this.matrixSize,a=t.getLengthInBits(),s=Et(e),f=0,u=n-1;u>=1;u-=2){u===6&&(u=5);for(var o=0;oa)throw new Error("data overflow: ".concat(v," > ").concat(a));this.version=o}else e=F(this.version,u,this.encodingHint,f),i=e[0],n=e[1],a=e[2];this.matrixSize=this.version*4+17;for(var l=[],m=Pt(i,n,a),h=-1,c=Number.MAX_VALUE,g=0;g<8;g++){this.buildMatrix(m,g),l.push(this.matrix);var _=_t(this);_>0),e=Math.max(0,e>>0);for(var i=this.matrixSize,n=t*i+e*2,a=e,s=n-e,f=new At(n,n),u=0;u>0,l=(o-a)/t>>0;f.setPixel(o,u,this.isDark(v,l)?0:1)}else f.setPixel(o,u,1);return f.toDataURL()},r.prototype.clear=function(){this.chunks=[]},r}();const Ot={class:"page-container"},Nt={class:"main"},Vt={class:"v-toolbar"},Gt=["src"],Ft=Y({__name:"QrCodeGeneratorView",setup(r){const{qrCode:t}=$(j()),e=q(""),i=()=>{try{const n=new Ht;n.setEncodingHint(!0),n.setErrorCorrectionLevel(y.H),n.write(t.value),n.make(),e.value=n.toDataURL(8)}catch(n){console.error(n)}};return tt(t,()=>{i()}),i(),(n,a)=>{const s=J;return P(),z("div",Ot,[S("div",Nt,[S("div",Vt,[b(s,{current:()=>n.$t("qrcode_generator")},null,8,["current"])]),b(k(st),{class:"panel-container"},{default:D(()=>[b(k(H),null,{default:D(()=>[rt(S("md-outlined-text-field",{type:"textarea",rows:"3","onUpdate:modelValue":a[0]||(a[0]=f=>nt(t)?t.value=f:null)},null,512),[[et,k(t)]])]),_:1}),b(k(H),{class:"qrcode-panel"},{default:D(()=>[e.value?(P(),z("img",{key:0,src:e.value},null,8,Gt)):it("",!0)]),_:1})]),_:1})])])}}});const Wt=at(Ft,[["__scopeId","data-v-42e6751a"]]);export{Wt as default}; +import{_ as J}from"./Breadcrumb-cba2b95b.js";import{bt as I,d as Y,s as $,e as j,r as q,w as tt,c as z,a as S,p as b,H as D,j as k,o as P,m as rt,v as et,n as nt,k as it,_ as at}from"./index-1dff6785.js";import{g as H,M as st}from"./splitpanes.es-e9e41ca8.js";var p;(function(r){r[r.Terminator=0]="Terminator",r[r.Numeric=1]="Numeric",r[r.Alphanumeric=2]="Alphanumeric",r[r.StructuredAppend=3]="StructuredAppend",r[r.Byte=4]="Byte",r[r.Kanji=8]="Kanji",r[r.ECI=7]="ECI"})(p||(p={}));var K=function(){function r(t,e){this.bytes=[],this.mode=t,this.data=e}return r.prototype.getLength=function(){return this.bytes.length},r.prototype.getLengthInBits=function(t){var e=this.mode,i=new Error("illegal mode: ".concat(e));if(1<=t&&t<10)switch(e){case p.Numeric:return 10;case p.Alphanumeric:return 9;case p.Byte:return 8;case p.Kanji:return 8;default:throw i}else if(t<27)switch(e){case p.Numeric:return 12;case p.Alphanumeric:return 11;case p.Byte:return 16;case p.Kanji:return 10;default:throw i}else if(t<41)switch(e){case p.Numeric:return 14;case p.Alphanumeric:return 13;case p.Byte:return 16;case p.Kanji:return 12;default:throw i}else throw new Error("illegal version: ".concat(t))},r}();function ot(r){for(var t=0,e=r.length,i=[],n=0;n>6|192,i[t++]=a&63|128):(a&64512)===55296&&n+1>18|240,i[t++]=a>>12&63|128,i[t++]=a>>6&63|128,i[t++]=a&63|128):(i[t++]=a>>12|224,i[t++]=a>>6&63|128,i[t++]=a&63|128)}return i}var ft=function(r){I(t,r);function t(e,i){var n=r.call(this,p.Byte,e)||this;if(n.encoding=-1,typeof i=="function"){var a=i(e),s=a.encoding,f=a.bytes;n.bytes=f,n.encoding=s}else n.bytes=ot(e),n.encoding=26;return n}return t.prototype.writeTo=function(e){for(var i=this.bytes,n=0,a=i;n=256;)r-=255;return B[r]}var A=function(){function r(t,e){e===void 0&&(e=0);for(var i=0,n=t.length;i>>=1;return t}var N=L(U);function wt(r){for(var t=r<<12;L(t)-N>=0;)t^=U<=0;)t^=Q<5&&i++):(a=u,s=1)}return i}function yt(r){return G(r,!0)+G(r,!1)}function Bt(r){for(var t=r.getMatrixSize(),e=0,i=0;i>0]>>>7-t%8&1)===1},r.prototype.put=function(t,e){for(var i=0;i>>e-i-1&1)===1)},r.prototype.putBit=function(t){var e=this.buffer;this.length===e.length*8&&e.push(0),t&&(e[this.length/8>>0]|=128>>>this.length%8),this.length++},r}();var Z=function(){function r(){}return r.prototype.writeBytes=function(t,e,i){e===void 0&&(e=0),i===void 0&&(i=t.length);for(var n=0;n>>8)},t.prototype.toByteArray=function(){return this.bytes},t}(Z);function kt(r){if(r>=0){if(r<26)return 65+r;if(r<52)return 97+(r-26);if(r<62)return 48+(r-52);if(r===62)return 43;if(r===63)return 47}throw new Error("illegal char: ".concat(String.fromCharCode(r)))}var Ct=function(r){I(t,r);function t(e){var i=r.call(this)||this;return i.buffer=0,i.length=0,i.bufLength=0,i.stream=e,i}return t.prototype.writeByte=function(e){for(this.buffer=this.buffer<<8|e&255,this.bufLength+=8,this.length++;this.bufLength>=6;)this.writeEncoded(this.buffer>>>this.bufLength-6),this.bufLength-=6},t.prototype.flush=function(){this.bufLength>0&&(this.writeEncoded(this.buffer<<6-this.bufLength),this.buffer=0,this.bufLength=0);var e=this.stream;if(this.length%3!=0)for(var i=3-this.length%3,n=0;n=0},r}(),dt=function(){function r(t){this.output=t,this.bitLength=0,this.bitBuffer=0}return r.prototype.write=function(t,e){if(t>>>e)throw new Error("length overflow");for(var i=this.output;this.bitLength+e>=8;)i.writeByte(255&(t<>>=8-this.bitLength,this.bitBuffer=0,this.bitLength=0;this.bitBuffer=t<0&&t.writeByte(this.bitBuffer),t.flush()},r.prototype.close=function(){this.flush(),this.output.close()},r}(),At=function(){function r(t,e){this.data=[],this.width=t,this.height=e;for(var i=t*e,n=0;n255;)t.writeByte(255),t.writeBytes(s,u,255),u+=255;var o=f-u;t.writeByte(o),t.writeBytes(s,u,o),t.writeByte(0),t.writeByte(59)},r.prototype.toDataURL=function(){var t=new E;this.write(t);var e=St(t.toByteArray());t.close();for(var i=e.length,n=String.fromCharCode,a="data:image/gif;base64,",s=0;s>0)+(e/2>>0)&1)===0};case 5:return function(t,e){return(t*e&1)+t*e%3===0};case 6:return function(t,e){return((t*e&1)+t*e%3&1)===0};case 7:return function(t,e){return(t*e%3+(t+e&1)&1)===0};default:throw new Error("illegal mask: ".concat(r))}}var It=236,Rt=17,Tt=Object.prototype.toString;function Mt(r,t){if(r<0||r>=1e6)throw new Error("byte mode encoding hint out of range");t.put(p.ECI,4),r<128?t.put(r,8):r<16384?(t.put(2,2),t.put(r,14)):(t.put(6,3),t.put(r,21))}function F(r,t,e,i){for(var n=new W,a=bt.getRSBlocks(r,t),s=0,f=i;s=0?T.getAt(M):0}}r=new W;for(var h=0;h=e||(r.put(It,8),r.getLengthInBits()>=e));)r.put(Rt,8);return zt(r,t)}var Ht=function(){function r(t){t===void 0&&(t={}),this.matrixSize=0,this.chunks=[],this.matrix=[];var e=t.version,i=e===void 0?0:e,n=t.encodingHint,a=n===void 0?!1:n,s=t.errorCorrectionLevel,f=s===void 0?y.L:s;this.setVersion(i),this.setEncodingHint(a),this.setErrorCorrectionLevel(f)}return r.prototype.getMatrix=function(){return this.matrix},r.prototype.getMatrixSize=function(){return this.matrixSize},r.prototype.getVersion=function(){return this.version},r.prototype.setVersion=function(t){return this.version=Math.min(40,Math.max(0,t>>0)),this.auto=this.version===0,this},r.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},r.prototype.setErrorCorrectionLevel=function(t){switch(t){case y.L:case y.M:case y.Q:case y.H:this.errorCorrectionLevel=t}return this},r.prototype.getEncodingHint=function(){return this.encodingHint},r.prototype.setEncodingHint=function(t){return this.encodingHint=t,this},r.prototype.write=function(t){var e=this.chunks;if(t instanceof K)e.push(t);else{var i=Tt.call(t);if(i==="[object String]")e.push(new ft(t));else throw new Error("illegal data: ".concat(t))}return this},r.prototype.isDark=function(t,e){return this.matrix[t][e]===!0},r.prototype.setupFinderPattern=function(t,e){for(var i=this.matrix,n=this.matrixSize,a=-1;a<=7;a++)for(var s=-1;s<=7;s++)t+a<=-1||n<=t+a||e+s<=-1||n<=e+s||(0<=a&&a<=6&&(s===0||s===6)||0<=s&&s<=6&&(a===0||a===6)||2<=a&&a<=4&&2<=s&&s<=4?i[t+a][e+s]=!0:i[t+a][e+s]=!1)},r.prototype.setupAlignmentPattern=function(){for(var t=this.matrix,e=pt(this.version),i=e.length,n=0;n>s&1)===1;s<6?e[s][8]=f:s<8?e[s+1][8]=f:e[a-15+s][8]=f,s<8?e[8][a-s-1]=f:s<9?e[8][15-s-1+1]=f:e[8][15-s-1]=f}e[a-8][8]=!0},r.prototype.setupVersionInfo=function(){if(this.version>=7)for(var t=this.matrix,e=this.matrixSize,i=wt(this.version),n=0;n<18;n++){var a=(i>>n&1)===1;t[n/3>>0][n%3+e-8-3]=a,t[n%3+e-8-3][n/3>>0]=a}},r.prototype.setupCodewords=function(t,e){for(var i=this.matrix,n=this.matrixSize,a=t.getLengthInBits(),s=Et(e),f=0,u=n-1;u>=1;u-=2){u===6&&(u=5);for(var o=0;oa)throw new Error("data overflow: ".concat(v," > ").concat(a));this.version=o}else e=F(this.version,u,this.encodingHint,f),i=e[0],n=e[1],a=e[2];this.matrixSize=this.version*4+17;for(var l=[],m=Pt(i,n,a),h=-1,c=Number.MAX_VALUE,g=0;g<8;g++){this.buildMatrix(m,g),l.push(this.matrix);var _=_t(this);_>0),e=Math.max(0,e>>0);for(var i=this.matrixSize,n=t*i+e*2,a=e,s=n-e,f=new At(n,n),u=0;u>0,l=(o-a)/t>>0;f.setPixel(o,u,this.isDark(v,l)?0:1)}else f.setPixel(o,u,1);return f.toDataURL()},r.prototype.clear=function(){this.chunks=[]},r}();const Ot={class:"page-container"},Nt={class:"main"},Vt={class:"v-toolbar"},Gt=["src"],Ft=Y({__name:"QrCodeGeneratorView",setup(r){const{qrCode:t}=$(j()),e=q(""),i=()=>{try{const n=new Ht;n.setEncodingHint(!0),n.setErrorCorrectionLevel(y.H),n.write(t.value),n.make(),e.value=n.toDataURL(8)}catch(n){console.error(n)}};return tt(t,()=>{i()}),i(),(n,a)=>{const s=J;return P(),z("div",Ot,[S("div",Nt,[S("div",Vt,[b(s,{current:()=>n.$t("qrcode_generator")},null,8,["current"])]),b(k(st),{class:"panel-container"},{default:D(()=>[b(k(H),null,{default:D(()=>[rt(S("md-outlined-text-field",{type:"textarea",rows:"3","onUpdate:modelValue":a[0]||(a[0]=f=>nt(t)?t.value=f:null)},null,512),[[et,k(t)]])]),_:1}),b(k(H),{class:"qrcode-panel"},{default:D(()=>[e.value?(P(),z("img",{key:0,src:e.value},null,8,Gt)):it("",!0)]),_:1})]),_:1})])])}}});const Wt=at(Ft,[["__scopeId","data-v-42e6751a"]]);export{Wt as default}; diff --git a/app/src/main/resources/web/assets/RoutesView-18d4e81d.js b/app/src/main/resources/web/assets/RoutesView-b32e54c2.js similarity index 97% rename from app/src/main/resources/web/assets/RoutesView-18d4e81d.js rename to app/src/main/resources/web/assets/RoutesView-b32e54c2.js index bef6d4e7..1196eb55 100644 --- a/app/src/main/resources/web/assets/RoutesView-18d4e81d.js +++ b/app/src/main/resources/web/assets/RoutesView-b32e54c2.js @@ -1,4 +1,4 @@ -import{d as ie,K as ce,r as A,u as de,i as j,aq as S,b$ as F,c0 as pe,an as _e,w as me,ao as I,o as u,c as r,a as e,t as o,j as l,m as f,c2 as E,F as y,J as k,v as x,n as ee,p as V,H as te,k as U,at as ve,g as fe,x as ge,ab as J,c3 as $e,c4 as he,R as be,a2 as L,Y as ae,h as oe,Z as ne,l as se,ac as ye,a5 as ke}from"./index-b6c39163.js";import{_ as we}from"./Breadcrumb-fef16e9c.js";import{T as m,a as w,_ as Ce,A as Te}from"./question-mark-rounded-f9dc54fa.js";import{u as Ne,a as Fe}from"./vee-validate.esm-03fad591.js";const Ie={slot:"headline"},Ee={slot:"content"},Ae={class:"row mb-3"},Ve={class:"col-md-3 col-form-label"},De={class:"col-md-9"},Re=["value"],Me={key:0,class:"input-group mt-2"},qe=["placeholder"],Oe={class:"inner"},Se={class:"help-block"},Ue={value:""},Je=["value"],Le={key:2,class:"invalid-feedback"},je={class:"row mb-3"},Be={class:"col-md-3 col-form-label"},Pe={class:"col-md-9"},He=["value"],Ke={class:"row mb-3"},Qe={class:"col-md-3 col-form-label"},Ye={class:"col-md-9"},Ze={value:"all"},ze=["value"],Ge=["value"],We={class:"row mb-3"},Xe={class:"col-md-3 col-form-label"},xe={class:"col-md-9"},et={slot:"actions"},tt=["disabled"],le=ie({__name:"EditRouteModal",props:{data:{type:Object},devices:{type:Array},networks:{type:Array}},setup(h){var $,B,P,H,K,Q,Y,Z,z;const _=h,{handleSubmit:b}=Ne(),i=ce({if_name:"",apply_to:"all",notes:"",target:"",is_enabled:!0}),p=A(m.INTERNET),D=Object.values(m).filter(s=>[m.IP,m.NET,m.REMOTE_PORT,m.INTERNET].includes(s)),{t:C}=de(),{mutate:R,loading:M,onDone:q}=j({document:S` +import{d as ie,K as ce,r as A,u as de,i as j,aq as S,b$ as F,c0 as pe,an as _e,w as me,ao as I,o as u,c as r,a as e,t as o,j as l,m as f,c2 as E,F as y,J as k,v as x,n as ee,p as V,H as te,k as U,at as ve,g as fe,x as ge,ab as J,c3 as $e,c4 as he,R as be,a2 as L,Y as ae,h as oe,Z as ne,l as se,ac as ye,a5 as ke}from"./index-1dff6785.js";import{_ as we}from"./Breadcrumb-cba2b95b.js";import{T as m,a as w,_ as Ce,A as Te}from"./question-mark-rounded-5a883e33.js";import{u as Ne,a as Fe}from"./vee-validate.esm-b0b47415.js";const Ie={slot:"headline"},Ee={slot:"content"},Ae={class:"row mb-3"},Ve={class:"col-md-3 col-form-label"},De={class:"col-md-9"},Re=["value"],Me={key:0,class:"input-group mt-2"},qe=["placeholder"],Oe={class:"inner"},Se={class:"help-block"},Ue={value:""},Je=["value"],Le={key:2,class:"invalid-feedback"},je={class:"row mb-3"},Be={class:"col-md-3 col-form-label"},Pe={class:"col-md-9"},He=["value"],Ke={class:"row mb-3"},Qe={class:"col-md-3 col-form-label"},Ye={class:"col-md-9"},Ze={value:"all"},ze=["value"],Ge=["value"],We={class:"row mb-3"},Xe={class:"col-md-3 col-form-label"},xe={class:"col-md-9"},et={slot:"actions"},tt=["disabled"],le=ie({__name:"EditRouteModal",props:{data:{type:Object},devices:{type:Array},networks:{type:Array}},setup(h){var $,B,P,H,K,Q,Y,Z,z;const _=h,{handleSubmit:b}=Ne(),i=ce({if_name:"",apply_to:"all",notes:"",target:"",is_enabled:!0}),p=A(m.INTERNET),D=Object.values(m).filter(s=>[m.IP,m.NET,m.REMOTE_PORT,m.INTERNET].includes(s)),{t:C}=de(),{mutate:R,loading:M,onDone:q}=j({document:S` mutation createConfig($input: ConfigInput!) { createConfig(input: $input) { ...ConfigFragment diff --git a/app/src/main/resources/web/assets/RulesView-302ccf52.js b/app/src/main/resources/web/assets/RulesView-9c939214.js similarity index 97% rename from app/src/main/resources/web/assets/RulesView-302ccf52.js rename to app/src/main/resources/web/assets/RulesView-9c939214.js index aa96791f..7bf4cef6 100644 --- a/app/src/main/resources/web/assets/RulesView-302ccf52.js +++ b/app/src/main/resources/web/assets/RulesView-9c939214.js @@ -1,4 +1,4 @@ -import{d as le,K as ce,r as N,u as se,i as B,aq as R,b$ as F,c0 as re,an as ue,w as pe,ao as T,o as r,c as u,a as e,t as o,j as c,m as _,c1 as V,c2 as O,F as w,J as C,v as W,n as X,p as A,H as x,k as J,at as me,g as _e,x as ve,ab as L,c3 as fe,c4 as he,R as ge,a2 as j,Y as ee,h as te,Z as oe,l as ne,ac as $e,a5 as be}from"./index-b6c39163.js";import{_ as ke}from"./Breadcrumb-fef16e9c.js";import{T as $,a as b,_ as ye,A as we}from"./question-mark-rounded-f9dc54fa.js";import{u as Ce,a as Fe}from"./vee-validate.esm-03fad591.js";const Te={slot:"headline"},Ve={slot:"content"},Ne={class:"row"},Ae={class:"col-md-3 col-form-label"},De={class:"col-md-9 form-checks"},Ie={class:"form-check form-check-inline"},Me={class:"form-check-label",for:"action-allow"},qe={class:"form-check form-check-inline"},Ee={class:"form-check-label",for:"action-block"},Se={class:"row mb-2"},Ue={for:"action",class:"col-md-3 col-form-label"},Re={class:"col-md-9 form-checks"},Oe={class:"form-check form-check-inline"},Je={class:"form-check-label",for:"direction-inbound"},Le={class:"form-check form-check-inline"},je={class:"form-check-label",for:"direction-outbound"},Be={class:"row mb-3"},Qe={class:"col-md-3 col-form-label"},Ge={class:"col-md-9"},He=["value"],Ke={key:0,class:"input-group mt-2"},Ye=["placeholder"],Ze={class:"inner"},ze={class:"help-block"},Pe={value:""},We=["value"],Xe={key:2,class:"invalid-feedback"},xe={class:"row mb-3"},et={class:"col-md-3 col-form-label"},tt={class:"col-md-9"},ot={value:"all"},nt=["value"],at=["value"],lt={class:"row mb-3"},st={class:"col-md-3 col-form-label"},it={class:"col-md-9"},dt={slot:"actions"},ct=["disabled"],ae=le({__name:"EditRuleModal",props:{data:{type:Object},devices:{type:Array},networks:{type:Array}},setup(k){var y,Q,G,H,K,Y,Z;const f=k,{handleSubmit:g}=Ce(),l=ce({action:"block",direction:"inbound",protocol:"all",apply_to:"all",notes:"",target:"",is_enabled:!0}),p=N($.DNS),D=Object.values($),{t:I}=se(),{mutate:M,loading:q,onDone:E}=B({document:R` +import{d as le,K as ce,r as N,u as se,i as B,aq as R,b$ as F,c0 as re,an as ue,w as pe,ao as T,o as r,c as u,a as e,t as o,j as c,m as _,c1 as V,c2 as O,F as w,J as C,v as W,n as X,p as A,H as x,k as J,at as me,g as _e,x as ve,ab as L,c3 as fe,c4 as he,R as ge,a2 as j,Y as ee,h as te,Z as oe,l as ne,ac as $e,a5 as be}from"./index-1dff6785.js";import{_ as ke}from"./Breadcrumb-cba2b95b.js";import{T as $,a as b,_ as ye,A as we}from"./question-mark-rounded-5a883e33.js";import{u as Ce,a as Fe}from"./vee-validate.esm-b0b47415.js";const Te={slot:"headline"},Ve={slot:"content"},Ne={class:"row"},Ae={class:"col-md-3 col-form-label"},De={class:"col-md-9 form-checks"},Ie={class:"form-check form-check-inline"},Me={class:"form-check-label",for:"action-allow"},qe={class:"form-check form-check-inline"},Ee={class:"form-check-label",for:"action-block"},Se={class:"row mb-2"},Ue={for:"action",class:"col-md-3 col-form-label"},Re={class:"col-md-9 form-checks"},Oe={class:"form-check form-check-inline"},Je={class:"form-check-label",for:"direction-inbound"},Le={class:"form-check form-check-inline"},je={class:"form-check-label",for:"direction-outbound"},Be={class:"row mb-3"},Qe={class:"col-md-3 col-form-label"},Ge={class:"col-md-9"},He=["value"],Ke={key:0,class:"input-group mt-2"},Ye=["placeholder"],Ze={class:"inner"},ze={class:"help-block"},Pe={value:""},We=["value"],Xe={key:2,class:"invalid-feedback"},xe={class:"row mb-3"},et={class:"col-md-3 col-form-label"},tt={class:"col-md-9"},ot={value:"all"},nt=["value"],at=["value"],lt={class:"row mb-3"},st={class:"col-md-3 col-form-label"},it={class:"col-md-9"},dt={slot:"actions"},ct=["disabled"],ae=le({__name:"EditRuleModal",props:{data:{type:Object},devices:{type:Array},networks:{type:Array}},setup(k){var y,Q,G,H,K,Y,Z;const f=k,{handleSubmit:g}=Ce(),l=ce({action:"block",direction:"inbound",protocol:"all",apply_to:"all",notes:"",target:"",is_enabled:!0}),p=N($.DNS),D=Object.values($),{t:I}=se(),{mutate:M,loading:q,onDone:E}=B({document:R` mutation createConfig($input: ConfigInput!) { createConfig(input: $input) { ...ConfigFragment diff --git a/app/src/main/resources/web/assets/ScreenMirrorView-13f2c6b3.js b/app/src/main/resources/web/assets/ScreenMirrorView-c489642d.js similarity index 97% rename from app/src/main/resources/web/assets/ScreenMirrorView-13f2c6b3.js rename to app/src/main/resources/web/assets/ScreenMirrorView-c489642d.js index 4695195b..8a44d358 100644 --- a/app/src/main/resources/web/assets/ScreenMirrorView-13f2c6b3.js +++ b/app/src/main/resources/web/assets/ScreenMirrorView-c489642d.js @@ -1 +1 @@ -import{o as n,c as o,a as t,d as U,u as j,r as v,i as b,O,P as h,Q as P,g as W,x as $,R as J,p as d,F as K,m as k,j as s,t as f,k as p,bu as X,bv as Y,bw as ee,bx as te,A as ne,B as oe,_ as se}from"./index-b6c39163.js";import{_ as re}from"./refresh-rounded-d1837882.js";import{_ as ae}from"./Breadcrumb-fef16e9c.js";const ie={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ce=t("path",{fill:"currentColor",d:"M6 19q-.425 0-.713-.288T5 18v-3q0-.425.288-.713T6 14q.425 0 .713.288T7 15v2h2q.425 0 .713.288T10 18q0 .425-.288.713T9 19H6Zm0-9q-.425 0-.713-.288T5 9V6q0-.425.288-.713T6 5h3q.425 0 .713.288T10 6q0 .425-.288.713T9 7H7v2q0 .425-.288.713T6 10Zm9 9q-.425 0-.713-.288T14 18q0-.425.288-.713T15 17h2v-2q0-.425.288-.713T18 14q.425 0 .713.288T19 15v3q0 .425-.288.713T18 19h-3Zm3-9q-.425 0-.713-.288T17 9V7h-2q-.425 0-.713-.288T14 6q0-.425.288-.713T15 5h3q.425 0 .713.288T19 6v3q0 .425-.288.713T18 10Z"},null,-1),le=[ce];function _e(r,a){return n(),o("svg",ie,le)}const ue={name:"material-symbols-fullscreen-rounded",render:_e},de={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},pe=t("path",{fill:"currentColor",d:"M12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Zm-3-4h6q.425 0 .713-.288T16 15V9q0-.425-.288-.713T15 8H9q-.425 0-.713.288T8 9v6q0 .425.288.713T9 16Z"},null,-1),me=[pe];function ve(r,a){return n(),o("svg",de,me)}const he={name:"material-symbols-stop-circle-outline-rounded",render:ve},fe="/assets/screen-mirror-permission-e9e07af8.png",ge={xmlns:"http://www.w3.org/2000/svg",viewBox:"176.31 -11.19 346.88 581.88"},qe=t("path",{d:"M470.49 0H229.51a41.901 41.901 0 0 0-29.547 12.277 41.898 41.898 0 0 0-12.277 29.547v476.35a41.901 41.901 0 0 0 12.277 29.547 41.898 41.898 0 0 0 29.547 12.277h240.98a41.901 41.901 0 0 0 29.547-12.277 41.898 41.898 0 0 0 12.277-29.547V41.824a41.901 41.901 0 0 0-12.277-29.547A41.898 41.898 0 0 0 470.49 0zm33.25 518.18a33.334 33.334 0 0 1-9.766 23.484 33.335 33.335 0 0 1-23.484 9.766H229.51a33.334 33.334 0 0 1-23.484-9.766 33.335 33.335 0 0 1-9.765-23.484V41.83a33.333 33.333 0 0 1 9.828-23.371 33.32 33.32 0 0 1 23.422-9.703h240.98a33.334 33.334 0 0 1 23.484 9.765 33.335 33.335 0 0 1 9.765 23.484z"},null,-1),Te=t("path",{d:"M317.62 46.812h64.75c2.418 0 4.375-1.957 4.375-4.375s-1.957-4.375-4.375-4.375h-64.75c-2.418 0-4.375 1.957-4.375 4.375s1.957 4.375 4.375 4.375zM364.7 192.5a16.8 16.8 0 0 0-14.7-8.75 16.8 16.8 0 0 0-14.698 8.75l-91 157.5a16.453 16.453 0 0 0 0 16.977 16.584 16.584 0 0 0 6.101 6.386 16.653 16.653 0 0 0 8.512 2.364h182.09a16.626 16.626 0 0 0 14.7-8.75 16.803 16.803 0 0 0 0-16.977zm83.562 170.36a8.224 8.224 0 0 1-7.262 4.2H258.91a8.229 8.229 0 0 1-7.176-4.2 8.753 8.753 0 0 1 0-8.75l91-157.5a8.748 8.748 0 0 1 7.262-4.113 8.757 8.757 0 0 1 7.262 4.199l91 157.5a8.75 8.75 0 0 1 0 8.84z"},null,-1),be=t("path",{d:"M350 221.55a4.288 4.288 0 0 0-4.29 4.285v66.238a4.375 4.375 0 0 0 8.75 0v-66.238a4.286 4.286 0 0 0-4.46-4.285zm0 91.26a4.289 4.289 0 0 0-4.29 4.29v17.061a4.375 4.375 0 0 0 8.75 0V317.1a4.286 4.286 0 0 0-4.46-4.29z"},null,-1),$e=[qe,Te,be];function ke(r,a){return n(),o("svg",ge,$e)}const ye={render:ke},m=r=>(ne("data-v-48b1a391"),r=r(),oe(),r),Me={class:"page-container"},Se={class:"main"},we={class:"v-toolbar"},Ie=["disabled"],Ve=m(()=>t("md-ripple",null,null,-1)),Ce=m(()=>t("md-ripple",null,null,-1)),Ae=m(()=>t("md-ripple",null,null,-1)),He={key:0,class:"loading"},Le=m(()=>t("md-circular-progress",{indeterminate:""},null,-1)),Ze=[Le],ze={key:1,class:"request-permission"},Be=m(()=>t("img",{src:fe},null,-1)),De={class:"text"},Qe={key:2,class:"request-permission-failed"},xe=["src"],Ee=U({__name:"ScreenMirrorView",setup(r){let a;const{t:g}=j(),i=v(""),_=v(0),u=v(!1),y=v(),M=async e=>{i.value=e,u.value=!1,_.value=0,clearInterval(a)};let c=!1;const{mutate:I}=b({document:X,appApi:!0}),V=()=>{I(),c=!0},S=e=>{e&&c&&(c=!1,clearInterval(a),q())};O(()=>{h.on("screen_mirroring",M),h.on("app_socket_connection_changed",S)}),P(()=>{h.off("screen_mirroring",M),h.off("app_socket_connection_changed",S)});const{mutate:C,loading:A,onDone:H,onError:L}=b({document:Y,appApi:!0}),{loading:Z,refetch:z}=W({handle:(e,l)=>{l?$(g(l),"error"):(i.value=e.screenMirrorImage,e.screenMirrorImage||q())},document:ee,appApi:!0}),B=()=>{var e;(e=y.value)==null||e.requestFullscreen({navigationUI:"show"})},q=()=>{u.value=!1,C()};L(e=>{$(g(e.message)),u.value=!0}),H(()=>{_.value=30,a=setInterval(()=>{_.value--,_.value<=0&&(u.value=!0,clearInterval(a))},1e3)});const{mutate:w,loading:D,onDone:Q,onError:x}=b({document:te,appApi:!0});return x(e=>{$(g(e.message))}),Q(()=>{u.value=!0,i.value=""}),(e,l)=>{const E=ae,F=he,G=re,R=ue,T=J("tooltip");return n(),o("div",Me,[t("div",Se,[t("div",we,[d(E,{current:()=>e.$t("screen_mirror")},null,8,["current"]),i.value?(n(),o(K,{key:0},[k((n(),o("button",{class:"icon-button",disabled:s(D),onClick:l[0]||(l[0]=(...N)=>s(w)&&s(w)(...N))},[Ve,d(F)],8,Ie)),[[T,e.$t("stop_mirror")]]),k((n(),o("button",{class:"icon-button",onClick:l[1]||(l[1]=()=>s(z)())},[Ce,d(G)])),[[T,e.$t("refresh")]]),k((n(),o("button",{class:"icon-button",onClick:B},[Ae,d(R)])),[[T,e.$t("fullscreen")]])],64)):s(c)?p("",!0):(n(),o("md-outlined-button",{key:1,onClick:V},f(e.$t("relaunch_app")),1))]),t("div",{ref_key:"containerRef",ref:y,class:"panel-container"},[s(Z)||s(A)||s(c)?(n(),o("div",He,Ze)):p("",!0),_.value>0&&!s(c)?(n(),o("div",ze,[Be,t("pre",De,f(e.$t("screen_mirror_request_permission",{seconds:_.value})),1)])):p("",!0),u.value&&!i.value&&!s(c)?(n(),o("div",Qe,[d(s(ye)),t("p",null,f(e.$t("screen_mirror_request_permission_failed")),1),t("md-filled-button",{onClick:q},f(e.$t("try_again")),1)])):p("",!0),i.value?(n(),o("img",{key:3,src:i.value},null,8,xe)):p("",!0)],512)])])}}});const Ne=se(Ee,[["__scopeId","data-v-48b1a391"]]);export{Ne as default}; +import{o as n,c as o,a as t,d as U,u as j,r as v,i as b,O,P as h,Q as P,g as W,x as $,R as J,p as d,F as K,m as k,j as s,t as f,k as p,bu as X,bv as Y,bw as ee,bx as te,A as ne,B as oe,_ as se}from"./index-1dff6785.js";import{_ as re}from"./refresh-rounded-e92a6833.js";import{_ as ae}from"./Breadcrumb-cba2b95b.js";const ie={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ce=t("path",{fill:"currentColor",d:"M6 19q-.425 0-.713-.288T5 18v-3q0-.425.288-.713T6 14q.425 0 .713.288T7 15v2h2q.425 0 .713.288T10 18q0 .425-.288.713T9 19H6Zm0-9q-.425 0-.713-.288T5 9V6q0-.425.288-.713T6 5h3q.425 0 .713.288T10 6q0 .425-.288.713T9 7H7v2q0 .425-.288.713T6 10Zm9 9q-.425 0-.713-.288T14 18q0-.425.288-.713T15 17h2v-2q0-.425.288-.713T18 14q.425 0 .713.288T19 15v3q0 .425-.288.713T18 19h-3Zm3-9q-.425 0-.713-.288T17 9V7h-2q-.425 0-.713-.288T14 6q0-.425.288-.713T15 5h3q.425 0 .713.288T19 6v3q0 .425-.288.713T18 10Z"},null,-1),le=[ce];function _e(r,a){return n(),o("svg",ie,le)}const ue={name:"material-symbols-fullscreen-rounded",render:_e},de={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},pe=t("path",{fill:"currentColor",d:"M12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Zm-3-4h6q.425 0 .713-.288T16 15V9q0-.425-.288-.713T15 8H9q-.425 0-.713.288T8 9v6q0 .425.288.713T9 16Z"},null,-1),me=[pe];function ve(r,a){return n(),o("svg",de,me)}const he={name:"material-symbols-stop-circle-outline-rounded",render:ve},fe="/assets/screen-mirror-permission-e9e07af8.png",ge={xmlns:"http://www.w3.org/2000/svg",viewBox:"176.31 -11.19 346.88 581.88"},qe=t("path",{d:"M470.49 0H229.51a41.901 41.901 0 0 0-29.547 12.277 41.898 41.898 0 0 0-12.277 29.547v476.35a41.901 41.901 0 0 0 12.277 29.547 41.898 41.898 0 0 0 29.547 12.277h240.98a41.901 41.901 0 0 0 29.547-12.277 41.898 41.898 0 0 0 12.277-29.547V41.824a41.901 41.901 0 0 0-12.277-29.547A41.898 41.898 0 0 0 470.49 0zm33.25 518.18a33.334 33.334 0 0 1-9.766 23.484 33.335 33.335 0 0 1-23.484 9.766H229.51a33.334 33.334 0 0 1-23.484-9.766 33.335 33.335 0 0 1-9.765-23.484V41.83a33.333 33.333 0 0 1 9.828-23.371 33.32 33.32 0 0 1 23.422-9.703h240.98a33.334 33.334 0 0 1 23.484 9.765 33.335 33.335 0 0 1 9.765 23.484z"},null,-1),Te=t("path",{d:"M317.62 46.812h64.75c2.418 0 4.375-1.957 4.375-4.375s-1.957-4.375-4.375-4.375h-64.75c-2.418 0-4.375 1.957-4.375 4.375s1.957 4.375 4.375 4.375zM364.7 192.5a16.8 16.8 0 0 0-14.7-8.75 16.8 16.8 0 0 0-14.698 8.75l-91 157.5a16.453 16.453 0 0 0 0 16.977 16.584 16.584 0 0 0 6.101 6.386 16.653 16.653 0 0 0 8.512 2.364h182.09a16.626 16.626 0 0 0 14.7-8.75 16.803 16.803 0 0 0 0-16.977zm83.562 170.36a8.224 8.224 0 0 1-7.262 4.2H258.91a8.229 8.229 0 0 1-7.176-4.2 8.753 8.753 0 0 1 0-8.75l91-157.5a8.748 8.748 0 0 1 7.262-4.113 8.757 8.757 0 0 1 7.262 4.199l91 157.5a8.75 8.75 0 0 1 0 8.84z"},null,-1),be=t("path",{d:"M350 221.55a4.288 4.288 0 0 0-4.29 4.285v66.238a4.375 4.375 0 0 0 8.75 0v-66.238a4.286 4.286 0 0 0-4.46-4.285zm0 91.26a4.289 4.289 0 0 0-4.29 4.29v17.061a4.375 4.375 0 0 0 8.75 0V317.1a4.286 4.286 0 0 0-4.46-4.29z"},null,-1),$e=[qe,Te,be];function ke(r,a){return n(),o("svg",ge,$e)}const ye={render:ke},m=r=>(ne("data-v-48b1a391"),r=r(),oe(),r),Me={class:"page-container"},Se={class:"main"},we={class:"v-toolbar"},Ie=["disabled"],Ve=m(()=>t("md-ripple",null,null,-1)),Ce=m(()=>t("md-ripple",null,null,-1)),Ae=m(()=>t("md-ripple",null,null,-1)),He={key:0,class:"loading"},Le=m(()=>t("md-circular-progress",{indeterminate:""},null,-1)),Ze=[Le],ze={key:1,class:"request-permission"},Be=m(()=>t("img",{src:fe},null,-1)),De={class:"text"},Qe={key:2,class:"request-permission-failed"},xe=["src"],Ee=U({__name:"ScreenMirrorView",setup(r){let a;const{t:g}=j(),i=v(""),_=v(0),u=v(!1),y=v(),M=async e=>{i.value=e,u.value=!1,_.value=0,clearInterval(a)};let c=!1;const{mutate:I}=b({document:X,appApi:!0}),V=()=>{I(),c=!0},S=e=>{e&&c&&(c=!1,clearInterval(a),q())};O(()=>{h.on("screen_mirroring",M),h.on("app_socket_connection_changed",S)}),P(()=>{h.off("screen_mirroring",M),h.off("app_socket_connection_changed",S)});const{mutate:C,loading:A,onDone:H,onError:L}=b({document:Y,appApi:!0}),{loading:Z,refetch:z}=W({handle:(e,l)=>{l?$(g(l),"error"):(i.value=e.screenMirrorImage,e.screenMirrorImage||q())},document:ee,appApi:!0}),B=()=>{var e;(e=y.value)==null||e.requestFullscreen({navigationUI:"show"})},q=()=>{u.value=!1,C()};L(e=>{$(g(e.message)),u.value=!0}),H(()=>{_.value=30,a=setInterval(()=>{_.value--,_.value<=0&&(u.value=!0,clearInterval(a))},1e3)});const{mutate:w,loading:D,onDone:Q,onError:x}=b({document:te,appApi:!0});return x(e=>{$(g(e.message))}),Q(()=>{u.value=!0,i.value=""}),(e,l)=>{const E=ae,F=he,G=re,R=ue,T=J("tooltip");return n(),o("div",Me,[t("div",Se,[t("div",we,[d(E,{current:()=>e.$t("screen_mirror")},null,8,["current"]),i.value?(n(),o(K,{key:0},[k((n(),o("button",{class:"icon-button",disabled:s(D),onClick:l[0]||(l[0]=(...N)=>s(w)&&s(w)(...N))},[Ve,d(F)],8,Ie)),[[T,e.$t("stop_mirror")]]),k((n(),o("button",{class:"icon-button",onClick:l[1]||(l[1]=()=>s(z)())},[Ce,d(G)])),[[T,e.$t("refresh")]]),k((n(),o("button",{class:"icon-button",onClick:B},[Ae,d(R)])),[[T,e.$t("fullscreen")]])],64)):s(c)?p("",!0):(n(),o("md-outlined-button",{key:1,onClick:V},f(e.$t("relaunch_app")),1))]),t("div",{ref_key:"containerRef",ref:y,class:"panel-container"},[s(Z)||s(A)||s(c)?(n(),o("div",He,Ze)):p("",!0),_.value>0&&!s(c)?(n(),o("div",ze,[Be,t("pre",De,f(e.$t("screen_mirror_request_permission",{seconds:_.value})),1)])):p("",!0),u.value&&!i.value&&!s(c)?(n(),o("div",Qe,[d(s(ye)),t("p",null,f(e.$t("screen_mirror_request_permission_failed")),1),t("md-filled-button",{onClick:q},f(e.$t("try_again")),1)])):p("",!0),i.value?(n(),o("img",{key:3,src:i.value},null,8,xe)):p("",!0)],512)])])}}});const Ne=se(Ee,[["__scopeId","data-v-48b1a391"]]);export{Ne as default}; diff --git a/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-873baaa8.js b/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-2bcd90c5.js similarity index 94% rename from app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-873baaa8.js rename to app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-2bcd90c5.js index f2dee0db..8adc5826 100644 --- a/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-873baaa8.js +++ b/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-2bcd90c5.js @@ -1 +1 @@ -import{o as l,c as r,a as c,d as Q,u as V,e as w,r as B,g as G,x as I,aT as L,O as S,P as o,Q as A,R as E,h as F,t as m,m as H,l as v,p as N,F as b,J as P,I as j,j as z,bC as T,a2 as p,i as C,bD as J,T as O,C as R,bE as U,W,aI as Z,bF as K,bG as X,ac as Y}from"./index-b6c39163.js";import{E as q}from"./EditValueModal-f5302cb7.js";const ee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},te=c("path",{fill:"currentColor",d:"M12 19q-.425 0-.713-.288T11 18v-5H6q-.425 0-.713-.288T5 12q0-.425.288-.713T6 11h5V6q0-.425.288-.713T12 5q.425 0 .713.288T13 6v5h5q.425 0 .713.288T19 12q0 .425-.288.713T18 13h-5v5q0 .425-.288.713T12 19Z"},null,-1),ae=[te];function ne(d,a){return l(),r("svg",ee,ae)}const se={name:"material-symbols-add-rounded",render:ne},oe={class:"nav-title"},ie=["onClick"],le=c("md-ripple",null,null,-1),re={class:"nav"},de=["onClick","onContextmenu"],me=Q({__name:"TagFilter",props:{type:{type:String,required:!0},selected:{type:String,required:!0}},setup(d){const a=d,{t:n}=V(),k=w(),_=B([]),{refetch:i}=G({handle:(e,t)=>{t?I(n(t),"error"):e&&(_.value=e.tags)},document:L,variables:{type:a.type},appApi:!0});function x(){p(q,{title:n("add_tag"),placeholder:n("name"),mutation:()=>C({document:J,options:{update:()=>{i()}},appApi:!0}),getVariables:e=>({type:a.type,name:e})})}function $(e){const t=O([{name:"tag",op:"",value:T(e.name)}]);R(k,`/${U[a.type]}?q=${W(t)}`)}function M(e,t){e.preventDefault(),Z({x:e.x,y:e.y,items:[{label:n("rename"),onClick:()=>{p(q,{title:n("rename"),placeholder:n("name"),value:t.name,mutation:()=>C({document:K,appApi:!0}),getVariables:u=>({id:t.id,name:u}),done:()=>{i()}})}},{label:n("delete"),onClick:()=>{p(Y,{id:t.id,name:t.name,gql:X,appApi:!0,typeName:"Tag"})}}]})}const h=e=>{e===a.type&&i()},f=e=>{e.type===a.type&&i()},g=e=>{e.item.tags.length&&e.type===a.type&&i()};return S(()=>{o.on("refetch_tags",h),o.on("media_items_deleted",f),o.on("media_item_deleted",g)}),A(()=>{o.off("refetch_tags",h),o.off("media_items_deleted",f),o.off("media_item_deleted",g)}),(e,t)=>{const u=se,D=E("tooltip");return l(),r(b,null,[c("h2",oe,[F(m(e.$t("tags"))+" ",1),H((l(),r("button",{class:"icon-button",onClick:v(x,["prevent"])},[le,N(u)],8,ie)),[[D,e.$t("add_tag")]])]),c("ul",re,[(l(!0),r(b,null,P(_.value,s=>(l(),r("li",{onClick:v(y=>$(s),["prevent"]),key:s.id,onContextmenu:y=>M(y,s),class:j({active:d.selected&&z(T)(s.name)===d.selected})},m(s.name)+" ("+m(s.count)+")",43,de))),128))])],64)}}});export{me as _,se as a}; +import{o as l,c as r,a as c,d as Q,u as V,e as w,r as B,g as G,x as I,aT as L,O as S,P as o,Q as A,R as E,h as F,t as m,m as H,l as v,p as N,F as b,J as P,I as j,j as z,bC as T,a2 as p,i as C,bD as J,T as O,C as R,bE as U,W,aI as Z,bF as K,bG as X,ac as Y}from"./index-1dff6785.js";import{E as q}from"./EditValueModal-1892701b.js";const ee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},te=c("path",{fill:"currentColor",d:"M12 19q-.425 0-.713-.288T11 18v-5H6q-.425 0-.713-.288T5 12q0-.425.288-.713T6 11h5V6q0-.425.288-.713T12 5q.425 0 .713.288T13 6v5h5q.425 0 .713.288T19 12q0 .425-.288.713T18 13h-5v5q0 .425-.288.713T12 19Z"},null,-1),ae=[te];function ne(d,a){return l(),r("svg",ee,ae)}const se={name:"material-symbols-add-rounded",render:ne},oe={class:"nav-title"},ie=["onClick"],le=c("md-ripple",null,null,-1),re={class:"nav"},de=["onClick","onContextmenu"],me=Q({__name:"TagFilter",props:{type:{type:String,required:!0},selected:{type:String,required:!0}},setup(d){const a=d,{t:n}=V(),k=w(),_=B([]),{refetch:i}=G({handle:(e,t)=>{t?I(n(t),"error"):e&&(_.value=e.tags)},document:L,variables:{type:a.type},appApi:!0});function x(){p(q,{title:n("add_tag"),placeholder:n("name"),mutation:()=>C({document:J,options:{update:()=>{i()}},appApi:!0}),getVariables:e=>({type:a.type,name:e})})}function $(e){const t=O([{name:"tag",op:"",value:T(e.name)}]);R(k,`/${U[a.type]}?q=${W(t)}`)}function M(e,t){e.preventDefault(),Z({x:e.x,y:e.y,items:[{label:n("rename"),onClick:()=>{p(q,{title:n("rename"),placeholder:n("name"),value:t.name,mutation:()=>C({document:K,appApi:!0}),getVariables:u=>({id:t.id,name:u}),done:()=>{i()}})}},{label:n("delete"),onClick:()=>{p(Y,{id:t.id,name:t.name,gql:X,appApi:!0,typeName:"Tag"})}}]})}const h=e=>{e===a.type&&i()},f=e=>{e.type===a.type&&i()},g=e=>{e.item.tags.length&&e.type===a.type&&i()};return S(()=>{o.on("refetch_tags",h),o.on("media_items_deleted",f),o.on("media_item_deleted",g)}),A(()=>{o.off("refetch_tags",h),o.off("media_items_deleted",f),o.off("media_item_deleted",g)}),(e,t)=>{const u=se,D=E("tooltip");return l(),r(b,null,[c("h2",oe,[F(m(e.$t("tags"))+" ",1),H((l(),r("button",{class:"icon-button",onClick:v(x,["prevent"])},[le,N(u)],8,ie)),[[D,e.$t("add_tag")]])]),c("ul",re,[(l(!0),r(b,null,P(_.value,s=>(l(),r("li",{onClick:v(y=>$(s),["prevent"]),key:s.id,onContextmenu:y=>M(y,s),class:j({active:d.selected&&z(T)(s.name)===d.selected})},m(s.name)+" ("+m(s.count)+")",43,de))),128))])],64)}}});export{me as _,se as a}; diff --git a/app/src/main/resources/web/assets/VideosRootView-e1ebfad1.js b/app/src/main/resources/web/assets/VideosRootView-73ce23ee.js similarity index 70% rename from app/src/main/resources/web/assets/VideosRootView-e1ebfad1.js rename to app/src/main/resources/web/assets/VideosRootView-73ce23ee.js index e81226b8..d58fb468 100644 --- a/app/src/main/resources/web/assets/VideosRootView-e1ebfad1.js +++ b/app/src/main/resources/web/assets/VideosRootView-73ce23ee.js @@ -1 +1 @@ -import{_ as g}from"./TagFilter.vuevuetypescriptsetuptruelang-873baaa8.js";import{_ as k}from"./BucketFilter.vuevuetypescriptsetuptruelang-659b6189.js";import{d as C,D as V,e as w,az as y,G as z,c as B,p as s,H as a,j as e,o as D,a as o,t as d,l as I,I as $,C as b}from"./index-b6c39163.js";import{g as m,M as E}from"./splitpanes.es-f516e17d.js";import"./EditValueModal-f5302cb7.js";import"./vee-validate.esm-03fad591.js";const M={class:"page-container"},N={class:"sidebar"},S={class:"nav-title"},O={class:"nav"},R=["onClick"],j={class:"main"},A=C({__name:"VideosRootView",setup(q){var r,_;const n=V(),u=w(),i=y(n.query),c=((r=i.find(t=>t.name==="tag"))==null?void 0:r.value)??"",l=((_=i.find(t=>t.name==="bucket_id"))==null?void 0:_.value)??"";function p(){b(u,"/videos")}return(t,x)=>{const f=k,v=g,h=z("router-view");return D(),B("div",M,[s(e(E),null,{default:a(()=>[s(e(m),{size:"20","min-size":"10"},{default:a(()=>[o("div",N,[o("h2",S,d(t.$t("page_title.videos")),1),o("ul",O,[o("li",{onClick:I(p,["prevent"]),class:$({active:e(n).path==="/videos"&&!e(c)&&!e(l)})},d(t.$t("all")),11,R),s(f,{type:"VIDEO",selected:e(l)},null,8,["selected"])]),s(v,{type:"VIDEO",selected:e(c)},null,8,["selected"])])]),_:1}),s(e(m),null,{default:a(()=>[o("div",j,[s(h)])]),_:1})]),_:1})])}}});export{A as default}; +import{_ as g}from"./TagFilter.vuevuetypescriptsetuptruelang-2bcd90c5.js";import{_ as k}from"./BucketFilter.vuevuetypescriptsetuptruelang-a57962d6.js";import{d as C,D as V,e as w,az as y,G as z,c as B,p as s,H as a,j as e,o as D,a as o,t as d,l as I,I as $,C as b}from"./index-1dff6785.js";import{g as m,M as E}from"./splitpanes.es-e9e41ca8.js";import"./EditValueModal-1892701b.js";import"./vee-validate.esm-b0b47415.js";const M={class:"page-container"},N={class:"sidebar"},S={class:"nav-title"},O={class:"nav"},R=["onClick"],j={class:"main"},A=C({__name:"VideosRootView",setup(q){var r,_;const n=V(),u=w(),i=y(n.query),c=((r=i.find(t=>t.name==="tag"))==null?void 0:r.value)??"",l=((_=i.find(t=>t.name==="bucket_id"))==null?void 0:_.value)??"";function p(){b(u,"/videos")}return(t,x)=>{const f=k,v=g,h=z("router-view");return D(),B("div",M,[s(e(E),null,{default:a(()=>[s(e(m),{size:"20","min-size":"10"},{default:a(()=>[o("div",N,[o("h2",S,d(t.$t("page_title.videos")),1),o("ul",O,[o("li",{onClick:I(p,["prevent"]),class:$({active:e(n).path==="/videos"&&!e(c)&&!e(l)})},d(t.$t("all")),11,R),s(f,{type:"VIDEO",selected:e(l)},null,8,["selected"])]),s(v,{type:"VIDEO",selected:e(c)},null,8,["selected"])])]),_:1}),s(e(m),null,{default:a(()=>[o("div",j,[s(h)])]),_:1})]),_:1})])}}});export{A as default}; diff --git a/app/src/main/resources/web/assets/VideosView-a3b5c492.js b/app/src/main/resources/web/assets/VideosView-ca3e8a9e.js similarity index 95% rename from app/src/main/resources/web/assets/VideosView-a3b5c492.js rename to app/src/main/resources/web/assets/VideosView-ca3e8a9e.js index 3215fdcc..bd4b0878 100644 --- a/app/src/main/resources/web/assets/VideosView-a3b5c492.js +++ b/app/src/main/resources/web/assets/VideosView-ca3e8a9e.js @@ -1 +1 @@ -import{u as Ge,_ as Oe,a as xe,b as Ke}from"./list-6c4ddffc.js";import{d as We,aA as Je,e as Pe,s as _e,r as D,u as Xe,f as je,K as Ye,L as Ze,D as et,M as tt,aB as ot,af as st,aC as nt,N as lt,w as at,O as it,P as k,Q as dt,R as ct,c as a,a as o,p as i,j as t,F as C,m,l as r,k as y,S as H,H as L,J as F,t as c,T as ut,U as _t,x as rt,aD as pt,aJ as mt,C as re,W as pe,at as ht,o as l,v as vt,a9 as me,$ as he,I as ft,ax as ve,aF as Q,z as gt,A as kt,B as yt,al as bt,aG as $t,a0 as wt,a2 as Ct,a3 as Tt,a1 as It,as as Vt,aH as St,aI as Dt,ad as At,am as Rt,a4 as zt,a5 as Bt,a6 as Et,_ as Ft}from"./index-b6c39163.js";import{_ as Ut}from"./sort-rounded-4981fcb6.js";import{_ as Mt}from"./upload-rounded-a4e04a4c.js";import{_ as qt,a as Nt}from"./grid-view-outline-rounded-a088250d.js";import{_ as Ht}from"./Breadcrumb-fef16e9c.js";import{u as Lt,a as Qt}from"./tags-3bd6efbc.js";import"./vee-validate.esm-03fad591.js";const _=R=>(kt("data-v-efec5940"),R=R(),yt(),R),Gt={class:"v-toolbar"},Ot=_(()=>o("md-ripple",null,null,-1)),xt=_(()=>o("md-ripple",null,null,-1)),Kt=_(()=>o("md-ripple",null,null,-1)),Wt=["onClick"],Jt=_(()=>o("md-ripple",null,null,-1)),Pt=["onClick"],Xt=_(()=>o("md-ripple",null,null,-1)),jt={class:"icon-button btn-sort"},Yt=_(()=>o("md-ripple",null,null,-1)),Zt={class:"menu-items"},eo=["onClick","selected"],to={slot:"headline"},oo={class:"filters"},so=["label"],no={class:"form-label"},lo=["label","selected","onClick"],ao={class:"buttons"},io=["onClick"],co={key:0,class:"image-container",style:{"margin-bottom":"24px"}},uo=["onClick","onContextmenu"],_o=["src"],ro={class:"duration"},po={key:1,class:"no-data-placeholder"},mo={key:2,class:"table-responsive"},ho={class:"table"},vo=["checked","indeterminate"],fo=_(()=>o("th",null,"ID",-1)),go=_(()=>o("th",null,null,-1)),ko=_(()=>o("th",null,null,-1)),yo=["onClick"],bo=["checked"],$o=["src","onClick"],wo={class:"nowrap"},Co={class:"action-btns"},To=["onClick"],Io=_(()=>o("md-ripple",null,null,-1)),Vo=["onClick"],So=_(()=>o("md-ripple",null,null,-1)),Do=["onClick"],Ao=_(()=>o("md-ripple",null,null,-1)),Ro={class:"nowrap"},zo={class:"nowrap"},Bo={key:0},Eo={colspan:"8"},Fo={class:"no-data-placeholder"},A=48,Uo=We({__name:"VideosView",setup(R){var ie,de;const fe=Je(),d=Pe(),{videoSortBy:U}=_e(d),v=D([]),G=D(),{t:T}=Xe(),O=je(),{app:x,urlTokenKey:M}=_e(O),f=Ye({text:"",tags:[]}),u=Ze.VIDEO,K=et().query,I=D(parseInt(((ie=K.page)==null?void 0:ie.toString())??"1")),b=D(tt(((de=K.q)==null?void 0:de.toString())??"")),V=D(""),{tags:z}=Lt(u,b,f,async e=>{V.value=ut(e),await _t(),Te()}),{addToTags:ge}=Qt(u,v,z),{deleteItems:ke,deleteItem:W}=ot(),{allChecked:J,realAllChecked:B,selectRealAll:ye,allCheckedAlertVisible:be,clearSelection:E,toggleAllChecked:P,toggleItemChecked:X,toggleRow:$e,total:$,checked:j}=Ge(v),{downloadItems:we}=st(M,u,v,E,"videos.zip"),{downloadFile:Y}=bt(M),Ce=$t(),q=nt(()=>v.value.map(e=>({src:ve(e.fileId),name:Q(e.path),duration:e.duration,size:e.size,path:e.path,data:e,type:u}))),{loading:Z,load:Te,refetch:N}=lt({handle:async(e,n)=>{if(n)rt(T(n),"error");else if(e){const w=[];for(const S of e.videos)w.push({...S,checked:!1,fileId:pt(M.value,S.path)});v.value=w,$.value=e.videoCount}},document:mt,variables:()=>({offset:(I.value-1)*A,limit:A,query:V.value,sortBy:U.value}),appApi:!0});function Ie(){re(d,`/videos?page=${I.value}&q=${pe(b.value)}`)}function ee(e){O.lightbox={sources:q.value,index:e,visible:!0}}function Ve(e,n){U.value=n,e.close()}at(I,()=>{Ie()});function Se(e){f.tags.includes(e)?wt(f.tags,n=>n.id===e.id):f.tags.push(e)}function te(e){Ct(Tt,{type:u,tags:z.value,item:{key:e.id,title:e.title,size:e.size},selected:z.value.filter(n=>e.tags.some(w=>w.id===n.id))})}function De(){b.value=It(f),oe(),G.value.dismiss()}function oe(){re(d,`/videos?q=${pe(b.value)}`)}function Ae(){d.videoViewType==="grid"?d.videoViewType="list":d.videoViewType="grid"}function Re(){fe.push("/files"),Vt(St,{message:T("upload_videos")})}function ze(e,n){e.preventDefault(),Dt({x:e.x,y:e.y,items:[{label:T("add_to_tags"),onClick:()=>{te(n)}},{label:T("download"),onClick:()=>{Y(n.path,Q(n.path).replace(" ","-"))}},{label:T("delete"),onClick:()=>{W(u,n)}}]})}const se=e=>{e.type===u&&(E(),N())},ne=e=>{e.type===u&&N()},le=e=>{e.type===u&&(E(),N())},ae=()=>{$.value--};return it(()=>{k.on("item_tags_updated",ne),k.on("items_tags_updated",se),k.on("media_item_deleted",ae),k.on("media_items_deleted",le)}),dt(()=>{k.off("item_tags_updated",ne),k.off("items_tags_updated",se),k.off("media_item_deleted",ae),k.off("media_items_deleted",le)}),(e,n)=>{const w=Ht,S=At,ce=Rt,ue=zt,Be=qt,Ee=Nt,Fe=Mt,Ue=Ut,Me=ht,qe=Oe,Ne=xe,He=Bt,Le=Et,Qe=Ke,h=ct("tooltip");return l(),a(C,null,[o("div",Gt,[i(w,{current:()=>`${e.$t("page_title.videos")} (${t($)})`},null,8,["current"]),t(j)&&t(d).videoViewType==="list"?(l(),a(C,{key:0},[m((l(),a("button",{class:"icon-button",onClick:n[0]||(n[0]=r(s=>t(ke)(t(u),v.value,t(B),V.value),["stop"]))},[Ot,i(S)])),[[h,e.$t("delete")]]),m((l(),a("button",{class:"icon-button",onClick:n[1]||(n[1]=r(s=>t(we)(t(B),V.value),["stop"]))},[xt,i(ce)])),[[h,e.$t("download")]]),m((l(),a("button",{class:"icon-button",onClick:n[2]||(n[2]=r(s=>t(ge)(t(B),V.value),["stop"]))},[Kt,i(ue)])),[[h,e.$t("add_to_tags")]])],64)):y("",!0),m((l(),a("button",{class:"icon-button",onClick:r(Ae,["prevent"])},[Jt,t(d).videoViewType==="list"?(l(),H(Be,{key:0})):y("",!0),t(d).videoViewType==="grid"?(l(),H(Ee,{key:1})):y("",!0)],8,Wt)),[[h,e.$t(t(d).videoViewType==="list"?"view_as_grid":"view_as_list")]]),m((l(),a("button",{class:"icon-button",onClick:r(Re,["prevent"])},[Xt,i(Fe)],8,Pt)),[[h,e.$t("upload")]]),i(Me,null,{content:L(s=>[o("div",Zt,[(l(!0),a(C,null,F(t(Ce),g=>(l(),a("md-menu-item",{onClick:p=>Ve(s,g.value),selected:g.value===t(U)},[o("div",to,c(e.$t(g.label)),1)],8,eo))),256))])]),default:L(()=>[m((l(),a("button",jt,[Yt,i(Ue)])),[[h,e.$t("sort")]])]),_:1}),i(qe,{ref_key:"searchInputRef",ref:G,modelValue:b.value,"onUpdate:modelValue":n[4]||(n[4]=s=>b.value=s),search:oe},{filters:L(()=>[o("div",oo,[m(o("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":n[3]||(n[3]=s=>f.text=s),"keyup.enter":"applyAndDoSearch"},null,8,so),[[vt,f.text]]),o("label",no,c(e.$t("tags")),1),o("md-chip-set",null,[(l(!0),a(C,null,F(t(z),s=>(l(),a("md-filter-chip",{key:s.id,label:s.name,selected:f.tags.includes(s),onClick:g=>Se(s)},null,8,lo))),128))]),o("div",ao,[o("md-filled-button",{onClick:r(De,["stop"])},c(e.$t("search")),9,io)])])]),_:1},8,["modelValue"])]),t(d).videoViewType==="grid"?(l(),a("div",co,[(l(!0),a(C,null,F(q.value,(s,g)=>(l(),a("div",{class:"item",onClick:p=>ee(g),onContextmenu:p=>ze(p,s.data)},[o("img",{class:"image",src:s.src+"&w=300&h=300"},null,8,_o),o("span",ro,c(t(me)(s.duration)),1)],40,uo))),256))])):y("",!0),t(d).videoViewType==="grid"&&q.value.length===0?(l(),a("div",po,c(e.$t(t(he)(t(Z),t(x).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):y("",!0),i(Ne,{limit:A,total:t($),"all-checked-alert-visible":t(be),"real-all-checked":t(B),"select-real-all":t(ye),"clear-selection":t(E)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t(d).videoViewType==="list"?(l(),a("div",mo,[o("table",ho,[o("thead",null,[o("tr",null,[o("th",null,[o("md-checkbox",{"touch-target":"wrapper",onChange:n[5]||(n[5]=(...s)=>t(P)&&t(P)(...s)),checked:t(J),indeterminate:!t(J)&&t(j)},null,40,vo)]),fo,go,o("th",null,c(e.$t("name")),1),ko,o("th",null,c(e.$t("tags")),1),o("th",null,c(e.$t("duration")),1),o("th",null,c(e.$t("file_size")),1)])]),o("tbody",null,[(l(!0),a(C,null,F(v.value,(s,g)=>(l(),a("tr",{key:s.id,class:ft({selected:s.checked}),onClick:r(p=>t($e)(s),["stop"])},[o("td",null,[o("md-checkbox",{"touch-target":"wrapper",onChange:n[6]||(n[6]=(...p)=>t(X)&&t(X)(...p)),checked:s.checked},null,40,bo)]),o("td",null,[i(He,{id:s.id,raw:s},null,8,["id","raw"])]),o("td",null,[o("img",{class:"img-video",src:t(ve)(s.fileId)+"&w=300&h=300",width:"50",height:"50",style:{cursor:"pointer"},onClick:r(p=>ee(g),["stop"])},null,8,$o)]),o("td",null,c(s.title),1),o("td",wo,[o("div",Co,[m((l(),a("button",{class:"icon-button",onClick:r(p=>t(W)(t(u),s),["stop"])},[Io,i(S)],8,To)),[[h,e.$t("delete")]]),m((l(),a("button",{class:"icon-button",onClick:r(p=>t(Y)(s.path,t(Q)(s.path).replace(" ","-")),["stop"])},[So,i(ce)],8,Vo)),[[h,e.$t("download")]]),m((l(),a("button",{class:"icon-button",onClick:r(p=>te(s),["stop"])},[Ao,i(ue)],8,Do)),[[h,e.$t("add_to_tags")]])])]),o("td",null,[i(Le,{tags:s.tags,type:t(u)},null,8,["tags","type"])]),o("td",Ro,c(t(me)(s.duration)),1),o("td",zo,c(t(gt)(s.size)),1)],10,yo))),128))]),v.value.length?y("",!0):(l(),a("tfoot",Bo,[o("tr",null,[o("td",Eo,[o("div",Fo,c(e.$t(t(he)(t(Z),t(x).permissions,"WRITE_EXTERNAL_STORAGE"))),1)])])]))])])):y("",!0),t($)>A?(l(),H(Qe,{key:3,modelValue:I.value,"onUpdate:modelValue":n[7]||(n[7]=s=>I.value=s),total:t($),limit:A},null,8,["modelValue","total"])):y("",!0)],64)}}});const Ko=Ft(Uo,[["__scopeId","data-v-efec5940"]]);export{Ko as default}; +import{u as Ge,_ as Oe,a as xe,b as Ke}from"./list-0d76acfa.js";import{d as We,aA as Je,e as Pe,s as _e,r as D,u as Xe,f as je,K as Ye,L as Ze,D as et,M as tt,aB as ot,af as st,aC as nt,N as lt,w as at,O as it,P as k,Q as dt,R as ct,c as a,a as o,p as i,j as t,F as C,m,l as r,k as y,S as H,H as L,J as F,t as c,T as ut,U as _t,x as rt,aD as pt,aJ as mt,C as re,W as pe,at as ht,o as l,v as vt,a9 as me,$ as he,I as ft,ax as ve,aF as Q,z as gt,A as kt,B as yt,al as bt,aG as $t,a0 as wt,a2 as Ct,a3 as Tt,a1 as It,as as Vt,aH as St,aI as Dt,ad as At,am as Rt,a4 as zt,a5 as Bt,a6 as Et,_ as Ft}from"./index-1dff6785.js";import{_ as Ut}from"./sort-rounded-b8d8e47a.js";import{_ as Mt}from"./upload-rounded-dd35ce68.js";import{_ as qt,a as Nt}from"./grid-view-outline-rounded-5cff260c.js";import{_ as Ht}from"./Breadcrumb-cba2b95b.js";import{u as Lt,a as Qt}from"./tags-ba1ad11a.js";import"./vee-validate.esm-b0b47415.js";const _=R=>(kt("data-v-efec5940"),R=R(),yt(),R),Gt={class:"v-toolbar"},Ot=_(()=>o("md-ripple",null,null,-1)),xt=_(()=>o("md-ripple",null,null,-1)),Kt=_(()=>o("md-ripple",null,null,-1)),Wt=["onClick"],Jt=_(()=>o("md-ripple",null,null,-1)),Pt=["onClick"],Xt=_(()=>o("md-ripple",null,null,-1)),jt={class:"icon-button btn-sort"},Yt=_(()=>o("md-ripple",null,null,-1)),Zt={class:"menu-items"},eo=["onClick","selected"],to={slot:"headline"},oo={class:"filters"},so=["label"],no={class:"form-label"},lo=["label","selected","onClick"],ao={class:"buttons"},io=["onClick"],co={key:0,class:"image-container",style:{"margin-bottom":"24px"}},uo=["onClick","onContextmenu"],_o=["src"],ro={class:"duration"},po={key:1,class:"no-data-placeholder"},mo={key:2,class:"table-responsive"},ho={class:"table"},vo=["checked","indeterminate"],fo=_(()=>o("th",null,"ID",-1)),go=_(()=>o("th",null,null,-1)),ko=_(()=>o("th",null,null,-1)),yo=["onClick"],bo=["checked"],$o=["src","onClick"],wo={class:"nowrap"},Co={class:"action-btns"},To=["onClick"],Io=_(()=>o("md-ripple",null,null,-1)),Vo=["onClick"],So=_(()=>o("md-ripple",null,null,-1)),Do=["onClick"],Ao=_(()=>o("md-ripple",null,null,-1)),Ro={class:"nowrap"},zo={class:"nowrap"},Bo={key:0},Eo={colspan:"8"},Fo={class:"no-data-placeholder"},A=48,Uo=We({__name:"VideosView",setup(R){var ie,de;const fe=Je(),d=Pe(),{videoSortBy:U}=_e(d),v=D([]),G=D(),{t:T}=Xe(),O=je(),{app:x,urlTokenKey:M}=_e(O),f=Ye({text:"",tags:[]}),u=Ze.VIDEO,K=et().query,I=D(parseInt(((ie=K.page)==null?void 0:ie.toString())??"1")),b=D(tt(((de=K.q)==null?void 0:de.toString())??"")),V=D(""),{tags:z}=Lt(u,b,f,async e=>{V.value=ut(e),await _t(),Te()}),{addToTags:ge}=Qt(u,v,z),{deleteItems:ke,deleteItem:W}=ot(),{allChecked:J,realAllChecked:B,selectRealAll:ye,allCheckedAlertVisible:be,clearSelection:E,toggleAllChecked:P,toggleItemChecked:X,toggleRow:$e,total:$,checked:j}=Ge(v),{downloadItems:we}=st(M,u,v,E,"videos.zip"),{downloadFile:Y}=bt(M),Ce=$t(),q=nt(()=>v.value.map(e=>({src:ve(e.fileId),name:Q(e.path),duration:e.duration,size:e.size,path:e.path,data:e,type:u}))),{loading:Z,load:Te,refetch:N}=lt({handle:async(e,n)=>{if(n)rt(T(n),"error");else if(e){const w=[];for(const S of e.videos)w.push({...S,checked:!1,fileId:pt(M.value,S.path)});v.value=w,$.value=e.videoCount}},document:mt,variables:()=>({offset:(I.value-1)*A,limit:A,query:V.value,sortBy:U.value}),appApi:!0});function Ie(){re(d,`/videos?page=${I.value}&q=${pe(b.value)}`)}function ee(e){O.lightbox={sources:q.value,index:e,visible:!0}}function Ve(e,n){U.value=n,e.close()}at(I,()=>{Ie()});function Se(e){f.tags.includes(e)?wt(f.tags,n=>n.id===e.id):f.tags.push(e)}function te(e){Ct(Tt,{type:u,tags:z.value,item:{key:e.id,title:e.title,size:e.size},selected:z.value.filter(n=>e.tags.some(w=>w.id===n.id))})}function De(){b.value=It(f),oe(),G.value.dismiss()}function oe(){re(d,`/videos?q=${pe(b.value)}`)}function Ae(){d.videoViewType==="grid"?d.videoViewType="list":d.videoViewType="grid"}function Re(){fe.push("/files"),Vt(St,{message:T("upload_videos")})}function ze(e,n){e.preventDefault(),Dt({x:e.x,y:e.y,items:[{label:T("add_to_tags"),onClick:()=>{te(n)}},{label:T("download"),onClick:()=>{Y(n.path,Q(n.path).replace(" ","-"))}},{label:T("delete"),onClick:()=>{W(u,n)}}]})}const se=e=>{e.type===u&&(E(),N())},ne=e=>{e.type===u&&N()},le=e=>{e.type===u&&(E(),N())},ae=()=>{$.value--};return it(()=>{k.on("item_tags_updated",ne),k.on("items_tags_updated",se),k.on("media_item_deleted",ae),k.on("media_items_deleted",le)}),dt(()=>{k.off("item_tags_updated",ne),k.off("items_tags_updated",se),k.off("media_item_deleted",ae),k.off("media_items_deleted",le)}),(e,n)=>{const w=Ht,S=At,ce=Rt,ue=zt,Be=qt,Ee=Nt,Fe=Mt,Ue=Ut,Me=ht,qe=Oe,Ne=xe,He=Bt,Le=Et,Qe=Ke,h=ct("tooltip");return l(),a(C,null,[o("div",Gt,[i(w,{current:()=>`${e.$t("page_title.videos")} (${t($)})`},null,8,["current"]),t(j)&&t(d).videoViewType==="list"?(l(),a(C,{key:0},[m((l(),a("button",{class:"icon-button",onClick:n[0]||(n[0]=r(s=>t(ke)(t(u),v.value,t(B),V.value),["stop"]))},[Ot,i(S)])),[[h,e.$t("delete")]]),m((l(),a("button",{class:"icon-button",onClick:n[1]||(n[1]=r(s=>t(we)(t(B),V.value),["stop"]))},[xt,i(ce)])),[[h,e.$t("download")]]),m((l(),a("button",{class:"icon-button",onClick:n[2]||(n[2]=r(s=>t(ge)(t(B),V.value),["stop"]))},[Kt,i(ue)])),[[h,e.$t("add_to_tags")]])],64)):y("",!0),m((l(),a("button",{class:"icon-button",onClick:r(Ae,["prevent"])},[Jt,t(d).videoViewType==="list"?(l(),H(Be,{key:0})):y("",!0),t(d).videoViewType==="grid"?(l(),H(Ee,{key:1})):y("",!0)],8,Wt)),[[h,e.$t(t(d).videoViewType==="list"?"view_as_grid":"view_as_list")]]),m((l(),a("button",{class:"icon-button",onClick:r(Re,["prevent"])},[Xt,i(Fe)],8,Pt)),[[h,e.$t("upload")]]),i(Me,null,{content:L(s=>[o("div",Zt,[(l(!0),a(C,null,F(t(Ce),g=>(l(),a("md-menu-item",{onClick:p=>Ve(s,g.value),selected:g.value===t(U)},[o("div",to,c(e.$t(g.label)),1)],8,eo))),256))])]),default:L(()=>[m((l(),a("button",jt,[Yt,i(Ue)])),[[h,e.$t("sort")]])]),_:1}),i(qe,{ref_key:"searchInputRef",ref:G,modelValue:b.value,"onUpdate:modelValue":n[4]||(n[4]=s=>b.value=s),search:oe},{filters:L(()=>[o("div",oo,[m(o("md-outlined-text-field",{label:e.$t("keywords"),"onUpdate:modelValue":n[3]||(n[3]=s=>f.text=s),"keyup.enter":"applyAndDoSearch"},null,8,so),[[vt,f.text]]),o("label",no,c(e.$t("tags")),1),o("md-chip-set",null,[(l(!0),a(C,null,F(t(z),s=>(l(),a("md-filter-chip",{key:s.id,label:s.name,selected:f.tags.includes(s),onClick:g=>Se(s)},null,8,lo))),128))]),o("div",ao,[o("md-filled-button",{onClick:r(De,["stop"])},c(e.$t("search")),9,io)])])]),_:1},8,["modelValue"])]),t(d).videoViewType==="grid"?(l(),a("div",co,[(l(!0),a(C,null,F(q.value,(s,g)=>(l(),a("div",{class:"item",onClick:p=>ee(g),onContextmenu:p=>ze(p,s.data)},[o("img",{class:"image",src:s.src+"&w=300&h=300"},null,8,_o),o("span",ro,c(t(me)(s.duration)),1)],40,uo))),256))])):y("",!0),t(d).videoViewType==="grid"&&q.value.length===0?(l(),a("div",po,c(e.$t(t(he)(t(Z),t(x).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):y("",!0),i(Ne,{limit:A,total:t($),"all-checked-alert-visible":t(be),"real-all-checked":t(B),"select-real-all":t(ye),"clear-selection":t(E)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),t(d).videoViewType==="list"?(l(),a("div",mo,[o("table",ho,[o("thead",null,[o("tr",null,[o("th",null,[o("md-checkbox",{"touch-target":"wrapper",onChange:n[5]||(n[5]=(...s)=>t(P)&&t(P)(...s)),checked:t(J),indeterminate:!t(J)&&t(j)},null,40,vo)]),fo,go,o("th",null,c(e.$t("name")),1),ko,o("th",null,c(e.$t("tags")),1),o("th",null,c(e.$t("duration")),1),o("th",null,c(e.$t("file_size")),1)])]),o("tbody",null,[(l(!0),a(C,null,F(v.value,(s,g)=>(l(),a("tr",{key:s.id,class:ft({selected:s.checked}),onClick:r(p=>t($e)(s),["stop"])},[o("td",null,[o("md-checkbox",{"touch-target":"wrapper",onChange:n[6]||(n[6]=(...p)=>t(X)&&t(X)(...p)),checked:s.checked},null,40,bo)]),o("td",null,[i(He,{id:s.id,raw:s},null,8,["id","raw"])]),o("td",null,[o("img",{class:"img-video",src:t(ve)(s.fileId)+"&w=300&h=300",width:"50",height:"50",style:{cursor:"pointer"},onClick:r(p=>ee(g),["stop"])},null,8,$o)]),o("td",null,c(s.title),1),o("td",wo,[o("div",Co,[m((l(),a("button",{class:"icon-button",onClick:r(p=>t(W)(t(u),s),["stop"])},[Io,i(S)],8,To)),[[h,e.$t("delete")]]),m((l(),a("button",{class:"icon-button",onClick:r(p=>t(Y)(s.path,t(Q)(s.path).replace(" ","-")),["stop"])},[So,i(ce)],8,Vo)),[[h,e.$t("download")]]),m((l(),a("button",{class:"icon-button",onClick:r(p=>te(s),["stop"])},[Ao,i(ue)],8,Do)),[[h,e.$t("add_to_tags")]])])]),o("td",null,[i(Le,{tags:s.tags,type:t(u)},null,8,["tags","type"])]),o("td",Ro,c(t(me)(s.duration)),1),o("td",zo,c(t(gt)(s.size)),1)],10,yo))),128))]),v.value.length?y("",!0):(l(),a("tfoot",Bo,[o("tr",null,[o("td",Eo,[o("div",Fo,c(e.$t(t(he)(t(Z),t(x).permissions,"WRITE_EXTERNAL_STORAGE"))),1)])])]))])])):y("",!0),t($)>A?(l(),H(Qe,{key:3,modelValue:I.value,"onUpdate:modelValue":n[7]||(n[7]=s=>I.value=s),total:t($),limit:A},null,8,["modelValue","total"])):y("",!0)],64)}}});const Ko=Ft(Uo,[["__scopeId","data-v-efec5940"]]);export{Ko as default}; diff --git a/app/src/main/resources/web/assets/WiFiView-9bc265a3.js b/app/src/main/resources/web/assets/WiFiView-0928129a.js similarity index 95% rename from app/src/main/resources/web/assets/WiFiView-9bc265a3.js rename to app/src/main/resources/web/assets/WiFiView-0928129a.js index 231bc723..eb1c946c 100644 --- a/app/src/main/resources/web/assets/WiFiView-9bc265a3.js +++ b/app/src/main/resources/web/assets/WiFiView-0928129a.js @@ -1,4 +1,4 @@ -var W=Object.defineProperty;var A=(i,o,s)=>o in i?W(i,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[o]=s;var T=(i,o,s)=>(A(i,typeof o!="symbol"?o+"":o,s),s);import{_ as P}from"./MonacoEditor.vuevuetypescriptsetuptruelang-1dd835fe.js";import{o as Z,c as M,a as e,d as z,u as G,r as f,an as S,g as J,x as K,ab as B,bA as F,i as O,p as q,j as l,m as r,aW as _,t as p,n as L,v as X,bB as Y,l as ee}from"./index-b6c39163.js";import{_ as se}from"./EditToolbar.vuevuetypescriptsetuptruelang-305dbf63.js";import{_ as oe}from"./Breadcrumb-fef16e9c.js";import{u as te,a as D}from"./vee-validate.esm-03fad591.js";const ne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ae=e("path",{fill:"currentColor",d:"M12 16q1.875 0 3.188-1.313T16.5 11.5q0-1.875-1.313-3.188T12 7q-1.875 0-3.188 1.313T7.5 11.5q0 1.875 1.313 3.188T12 16Zm0-1.8q-1.125 0-1.913-.788T9.3 11.5q0-1.125.788-1.913T12 8.8q1.125 0 1.913.788T14.7 11.5q0 1.125-.787 1.913T12 14.2Zm0 4.8q-3.475 0-6.35-1.838T1.3 12.2q-.075-.125-.1-.312t-.025-.388q0-.2.025-.388t.1-.312q1.475-3.125 4.35-4.963T12 4q3.475 0 6.35 1.838T22.7 10.8q.075.125.1.313t.025.387q0 .2-.025.388t-.1.312q-1.475 3.125-4.35 4.963T12 19Zm0-7.5Zm0 5.5q2.825 0 5.188-1.488T20.8 11.5q-1.25-2.525-3.613-4.013T12 6Q9.175 6 6.812 7.488T3.2 11.5q1.25 2.525 3.613 4.013T12 17Z"},null,-1),le=[ae];function ie(i,o){return Z(),M("svg",ne,le)}const ce={name:"material-symbols-visibility-outline-rounded",render:ie},de={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},re=e("path",{fill:"currentColor",d:"m16.1 13.3l-1.45-1.45q.225-1.175-.675-2.2t-2.325-.8L10.2 7.4q.425-.2.863-.3T12 7q1.875 0 3.188 1.313T16.5 11.5q0 .5-.1.938t-.3.862Zm3.2 3.15l-1.45-1.4q.95-.725 1.688-1.587T20.8 11.5q-1.25-2.525-3.588-4.013T12 6q-.725 0-1.425.1T9.2 6.4L7.65 4.85q1.025-.425 2.1-.638T12 4q3.575 0 6.425 1.887T22.7 10.8q.075.125.1.313t.025.387q0 .2-.037.388t-.088.312q-.575 1.275-1.437 2.35t-1.963 1.9Zm-.2 5.45l-3.5-3.45q-.875.275-1.762.413T12 19q-3.575 0-6.425-1.888T1.3 12.2q-.075-.125-.1-.312t-.025-.388q0-.2.025-.375t.1-.3Q1.825 9.7 2.55 8.75T4.15 7L2.075 4.9Q1.8 4.625 1.8 4.212t.3-.712q.275-.275.7-.275t.7.275l17 17q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275ZM5.55 8.4q-.725.65-1.325 1.425T3.2 11.5q1.25 2.525 3.588 4.013T12 17q.5 0 .975-.063t.975-.137l-.9-.95q-.275.075-.525.113T12 16q-1.875 0-3.188-1.312T7.5 11.5q0-.275.038-.525t.112-.525L5.55 8.4Zm7.975 2.325ZM9.75 12.6Z"},null,-1),ue=[re];function me(i,o){return Z(),M("svg",de,ue)}const _e={name:"material-symbols-visibility-off-outline-rounded",render:me};class w{constructor(){T(this,"line","");T(this,"key","");T(this,"value","")}update(o,s){this.line=this.line.replace(new RegExp(`^(${o}s*=s*).+$`),(t,n)=>n+s),this.value=s}static create(o,s){const t=new w;return t.key=o,t.value=s,t.line=`${o} = ${s}`,t}}function H(i){const o=[],s=i.split(` +var W=Object.defineProperty;var A=(i,o,s)=>o in i?W(i,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[o]=s;var T=(i,o,s)=>(A(i,typeof o!="symbol"?o+"":o,s),s);import{_ as P}from"./MonacoEditor.vuevuetypescriptsetuptruelang-fd107f07.js";import{o as Z,c as M,a as e,d as z,u as G,r as f,an as S,g as J,x as K,ab as B,bA as F,i as O,p as q,j as l,m as r,aW as _,t as p,n as L,v as X,bB as Y,l as ee}from"./index-1dff6785.js";import{_ as se}from"./EditToolbar.vuevuetypescriptsetuptruelang-7ece134f.js";import{_ as oe}from"./Breadcrumb-cba2b95b.js";import{u as te,a as D}from"./vee-validate.esm-b0b47415.js";const ne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ae=e("path",{fill:"currentColor",d:"M12 16q1.875 0 3.188-1.313T16.5 11.5q0-1.875-1.313-3.188T12 7q-1.875 0-3.188 1.313T7.5 11.5q0 1.875 1.313 3.188T12 16Zm0-1.8q-1.125 0-1.913-.788T9.3 11.5q0-1.125.788-1.913T12 8.8q1.125 0 1.913.788T14.7 11.5q0 1.125-.787 1.913T12 14.2Zm0 4.8q-3.475 0-6.35-1.838T1.3 12.2q-.075-.125-.1-.312t-.025-.388q0-.2.025-.388t.1-.312q1.475-3.125 4.35-4.963T12 4q3.475 0 6.35 1.838T22.7 10.8q.075.125.1.313t.025.387q0 .2-.025.388t-.1.312q-1.475 3.125-4.35 4.963T12 19Zm0-7.5Zm0 5.5q2.825 0 5.188-1.488T20.8 11.5q-1.25-2.525-3.613-4.013T12 6Q9.175 6 6.812 7.488T3.2 11.5q1.25 2.525 3.613 4.013T12 17Z"},null,-1),le=[ae];function ie(i,o){return Z(),M("svg",ne,le)}const ce={name:"material-symbols-visibility-outline-rounded",render:ie},de={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},re=e("path",{fill:"currentColor",d:"m16.1 13.3l-1.45-1.45q.225-1.175-.675-2.2t-2.325-.8L10.2 7.4q.425-.2.863-.3T12 7q1.875 0 3.188 1.313T16.5 11.5q0 .5-.1.938t-.3.862Zm3.2 3.15l-1.45-1.4q.95-.725 1.688-1.587T20.8 11.5q-1.25-2.525-3.588-4.013T12 6q-.725 0-1.425.1T9.2 6.4L7.65 4.85q1.025-.425 2.1-.638T12 4q3.575 0 6.425 1.887T22.7 10.8q.075.125.1.313t.025.387q0 .2-.037.388t-.088.312q-.575 1.275-1.437 2.35t-1.963 1.9Zm-.2 5.45l-3.5-3.45q-.875.275-1.762.413T12 19q-3.575 0-6.425-1.888T1.3 12.2q-.075-.125-.1-.312t-.025-.388q0-.2.025-.375t.1-.3Q1.825 9.7 2.55 8.75T4.15 7L2.075 4.9Q1.8 4.625 1.8 4.212t.3-.712q.275-.275.7-.275t.7.275l17 17q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275ZM5.55 8.4q-.725.65-1.325 1.425T3.2 11.5q1.25 2.525 3.588 4.013T12 17q.5 0 .975-.063t.975-.137l-.9-.95q-.275.075-.525.113T12 16q-1.875 0-3.188-1.312T7.5 11.5q0-.275.038-.525t.112-.525L5.55 8.4Zm7.975 2.325ZM9.75 12.6Z"},null,-1),ue=[re];function me(i,o){return Z(),M("svg",de,ue)}const _e={name:"material-symbols-visibility-off-outline-rounded",render:me};class w{constructor(){T(this,"line","");T(this,"key","");T(this,"value","")}update(o,s){this.line=this.line.replace(new RegExp(`^(${o}s*=s*).+$`),(t,n)=>n+s),this.value=s}static create(o,s){const t=new w;return t.key=o,t.value=s,t.line=`${o} = ${s}`,t}}function H(i){const o=[],s=i.split(` `);for(const t of s){const n=t.split("="),d=new w;d.line=t,n.length>1&&(d.key=n[0].trimEnd(),d.value=n[1].trimStart()),o.push(d)}return o}function V(i,o,s){let t=i.find(n=>n.key==o);t?t.update(o,s):(t=w.create(o,s),i.push(t))}const pe={class:"page-container"},he={class:"main"},ve={class:"row mb-3"},fe={for:"is-enabled",class:"col-sm-3 col-md-2 col-form-label"},qe={class:"col-sm-4"},ge={class:"form-check"},be=["checked"],Te={class:"row mb-3"},we={for:"ssid",class:"col-sm-3 col-md-2 col-form-label"},ye={class:"col-sm-4"},$e={class:"row mb-3"},ke={for:"password",class:"col-sm-3 col-md-2 col-form-label"},xe={class:"col-sm-4"},Ce={class:"input-group"},Ve=["type"],Ze=["onClick"],Me={class:"inner"},Ee={class:"row mb-3"},Se={for:"hide-ssid",class:"col-sm-3 col-md-2 col-form-label"},Be={class:"col-sm-4"},Fe={class:"form-check"},Le=["checked"],Ne=z({__name:"WiFiView",setup(i){const{handleSubmit:o}=te(),{t:s}=G(),t=f(0),n=f(""),{value:d,errorMessage:y}=D("password",S().required().min(8)),{value:h,errorMessage:$}=D("ssid",S().required()),v=f(!1),k=f(!1),x=f(!1);function Q(){v.value=!v.value}J({handle:(c,a)=>{a?K(s(a),"error"):(n.value=c.hostapd.config,k.value=c.hostapd.isEnabled,E())},document:B` query { hostapd { diff --git a/app/src/main/resources/web/assets/WireGuardEditView-cbefc3e1.js b/app/src/main/resources/web/assets/WireGuardEditView-a63a2fe8.js similarity index 92% rename from app/src/main/resources/web/assets/WireGuardEditView-cbefc3e1.js rename to app/src/main/resources/web/assets/WireGuardEditView-a63a2fe8.js index 5c607d82..62ec7e19 100644 --- a/app/src/main/resources/web/assets/WireGuardEditView-cbefc3e1.js +++ b/app/src/main/resources/web/assets/WireGuardEditView-a63a2fe8.js @@ -1,4 +1,4 @@ -import{_ as E}from"./MonacoEditor.vuevuetypescriptsetuptruelang-1dd835fe.js";import{_ as M}from"./EditToolbar.vuevuetypescriptsetuptruelang-305dbf63.js";import{_ as P}from"./Breadcrumb-fef16e9c.js";import{d as S,u as j,r as _,D as T,g as N,x as A,ab as G,b_ as U,i as O,c as R,a as q,p as h,j as B,o as Q}from"./index-b6c39163.js";import{p as x,g as F}from"./parser-fdd85e1d.js";function l(a){const t=new Float64Array(16);if(a)for(let r=0;r>16&1),e[n-1]&=65535;e[15]=o[15]-32767-(e[14]>>16&1),r=e[15]>>16&1,e[14]&=65535,v(o,e,1-r)}for(var n=0;n<16;++n)a[2*n]=o[n]&255,a[2*n+1]=o[n]>>8}function y(a){for(let t=0;t<16;++t)a[(t+1)%16]+=(t<15?1:38)*Math.floor(a[t]/65536),a[t]&=65535}function v(a,t,r){let e,o=~(r-1);for(let n=0;n<16;++n)e=o&(a[n]^t[n]),a[n]^=e,t[n]^=e}function w(a,t,r){for(let e=0;e<16;++e)a[e]=t[e]+r[e]|0}function K(a,t,r){for(let e=0;e<16;++e)a[e]=t[e]-r[e]|0}function u(a,t,r){const e=new Float64Array(31);for(var o=0;o<16;++o)for(let n=0;n<16;++n)e[o+n]+=t[o]*r[n];for(var o=0;o<15;++o)e[o]+=38*e[o+16];for(var o=0;o<16;++o)a[o]=e[o];y(a),y(a)}function H(a,t){const r=l();for(var e=0;e<16;++e)r[e]=t[e];for(var e=253;e>=0;--e)u(r,r,r),e!==2&&e!==4&&u(r,r,t);for(var e=0;e<16;++e)a[e]=r[e]}function C(a){a[31]=a[31]&127|64,a[0]&=248}function J(a){let t,r=new Uint8Array(32);const e=l([1]),o=l([9]),n=l(),i=l([1]),f=l(),g=l(),$=l([56129,1]),V=l([9]);for(var s=0;s<32;++s)r[s]=a[s];C(r);for(var s=254;s>=0;--s)t=r[s>>>3]>>>(s&7)&1,v(e,o,t),v(n,i,t),w(f,e,n),K(e,e,n),w(n,o,i),K(o,o,i),u(i,f,f),u(g,e,e),u(e,n,e),u(n,o,f),w(f,e,n),K(e,e,n),u(o,e,e),K(n,i,g),u(e,n,$),w(e,e,i),u(n,n,e),u(e,i,g),u(i,o,V),u(o,f,f),v(e,o,t),v(n,i,t);return H(n,n),u(e,e,n),z(r,e),r}function L(){const a=new Uint8Array(32);return crypto.getRandomValues(a),a}function X(){const a=L();return C(a),a}function W(a,t){const r=Uint8Array.from([t[0]>>2&63,(t[0]<<4|t[1]>>4)&63,(t[1]<<2|t[2]>>6)&63,t[2]&63]);for(let e=0;e<4;++e)a[e]=r[e]+65+(25-r[e]>>8&6)-(51-r[e]>>8&75)-(61-r[e]>>8&15)+(62-r[e]>>8&3)}function k(a){let t,r=new Uint8Array(44);for(t=0;t<32/3;++t)W(r.subarray(t*4),a.subarray(t*3));return W(r.subarray(t*4),Uint8Array.from([a[t*3+0],a[t*3+1],0])),r[43]=61,new TextDecoder().decode(r)}const Y=()=>{const a=X(),t=J(a);return{publicKey:k(t),privateKey:k(a)}},Z={class:"page-container"},ee={class:"main"},ie=S({__name:"WireGuardEditView",setup(a){const{t}=j(),r=_(0),o=T().params.id,n=_(""),i=_(""),f=_(!1),g=[{id:"add-peer",label:"Add peer",precondition:null,keybindingContext:null,contextMenuGroupId:"navigation",contextMenuOrder:0,run:function(){var b;const c=x(n.value);c.wgInterface.table="off";const d=((b=c.wgInterface.address)==null?void 0:b[0])??"",m=Y(),p=c.peers.length;c.peers.push({name:`Peer ${p+1}`,allowedIps:[d.substring(0,d.lastIndexOf("."))+`.${p+2}/32`],privateKey:m.privateKey,publicKey:m.publicKey}),n.value=F(c)}}];N({handle:(c,d)=>{if(d)A(t(d),"error");else{const m=c.wireGuards.find(p=>p.id===o);if(m){n.value=m.config;const p=x(m.config);i.value=(p==null?void 0:p.wgInterface.name)??"",f.value=m.isEnabled}}},document:G` +import{_ as E}from"./MonacoEditor.vuevuetypescriptsetuptruelang-fd107f07.js";import{_ as M}from"./EditToolbar.vuevuetypescriptsetuptruelang-7ece134f.js";import{_ as P}from"./Breadcrumb-cba2b95b.js";import{d as S,u as j,r as _,D as T,g as N,x as A,ab as G,b_ as U,i as O,c as R,a as q,p as h,j as B,o as Q}from"./index-1dff6785.js";import{p as x,g as F}from"./parser-fdd85e1d.js";function l(a){const t=new Float64Array(16);if(a)for(let r=0;r>16&1),e[n-1]&=65535;e[15]=o[15]-32767-(e[14]>>16&1),r=e[15]>>16&1,e[14]&=65535,v(o,e,1-r)}for(var n=0;n<16;++n)a[2*n]=o[n]&255,a[2*n+1]=o[n]>>8}function y(a){for(let t=0;t<16;++t)a[(t+1)%16]+=(t<15?1:38)*Math.floor(a[t]/65536),a[t]&=65535}function v(a,t,r){let e,o=~(r-1);for(let n=0;n<16;++n)e=o&(a[n]^t[n]),a[n]^=e,t[n]^=e}function w(a,t,r){for(let e=0;e<16;++e)a[e]=t[e]+r[e]|0}function K(a,t,r){for(let e=0;e<16;++e)a[e]=t[e]-r[e]|0}function u(a,t,r){const e=new Float64Array(31);for(var o=0;o<16;++o)for(let n=0;n<16;++n)e[o+n]+=t[o]*r[n];for(var o=0;o<15;++o)e[o]+=38*e[o+16];for(var o=0;o<16;++o)a[o]=e[o];y(a),y(a)}function H(a,t){const r=l();for(var e=0;e<16;++e)r[e]=t[e];for(var e=253;e>=0;--e)u(r,r,r),e!==2&&e!==4&&u(r,r,t);for(var e=0;e<16;++e)a[e]=r[e]}function C(a){a[31]=a[31]&127|64,a[0]&=248}function J(a){let t,r=new Uint8Array(32);const e=l([1]),o=l([9]),n=l(),i=l([1]),f=l(),g=l(),$=l([56129,1]),V=l([9]);for(var s=0;s<32;++s)r[s]=a[s];C(r);for(var s=254;s>=0;--s)t=r[s>>>3]>>>(s&7)&1,v(e,o,t),v(n,i,t),w(f,e,n),K(e,e,n),w(n,o,i),K(o,o,i),u(i,f,f),u(g,e,e),u(e,n,e),u(n,o,f),w(f,e,n),K(e,e,n),u(o,e,e),K(n,i,g),u(e,n,$),w(e,e,i),u(n,n,e),u(e,i,g),u(i,o,V),u(o,f,f),v(e,o,t),v(n,i,t);return H(n,n),u(e,e,n),z(r,e),r}function L(){const a=new Uint8Array(32);return crypto.getRandomValues(a),a}function X(){const a=L();return C(a),a}function W(a,t){const r=Uint8Array.from([t[0]>>2&63,(t[0]<<4|t[1]>>4)&63,(t[1]<<2|t[2]>>6)&63,t[2]&63]);for(let e=0;e<4;++e)a[e]=r[e]+65+(25-r[e]>>8&6)-(51-r[e]>>8&75)-(61-r[e]>>8&15)+(62-r[e]>>8&3)}function k(a){let t,r=new Uint8Array(44);for(t=0;t<32/3;++t)W(r.subarray(t*4),a.subarray(t*3));return W(r.subarray(t*4),Uint8Array.from([a[t*3+0],a[t*3+1],0])),r[43]=61,new TextDecoder().decode(r)}const Y=()=>{const a=X(),t=J(a);return{publicKey:k(t),privateKey:k(a)}},Z={class:"page-container"},ee={class:"main"},ie=S({__name:"WireGuardEditView",setup(a){const{t}=j(),r=_(0),o=T().params.id,n=_(""),i=_(""),f=_(!1),g=[{id:"add-peer",label:"Add peer",precondition:null,keybindingContext:null,contextMenuGroupId:"navigation",contextMenuOrder:0,run:function(){var b;const c=x(n.value);c.wgInterface.table="off";const d=((b=c.wgInterface.address)==null?void 0:b[0])??"",m=Y(),p=c.peers.length;c.peers.push({name:`Peer ${p+1}`,allowedIps:[d.substring(0,d.lastIndexOf("."))+`.${p+2}/32`],privateKey:m.privateKey,publicKey:m.publicKey}),n.value=F(c)}}];N({handle:(c,d)=>{if(d)A(t(d),"error");else{const m=c.wireGuards.find(p=>p.id===o);if(m){n.value=m.config;const p=x(m.config);i.value=(p==null?void 0:p.wgInterface.name)??"",f.value=m.isEnabled}}},document:G` query { wireGuards { ...WireGuardFragment diff --git a/app/src/main/resources/web/assets/WireGuardView-ed53e206.js b/app/src/main/resources/web/assets/WireGuardView-95567278.js similarity index 94% rename from app/src/main/resources/web/assets/WireGuardView-ed53e206.js rename to app/src/main/resources/web/assets/WireGuardView-95567278.js index f1aef963..c8fbfb02 100644 --- a/app/src/main/resources/web/assets/WireGuardView-ed53e206.js +++ b/app/src/main/resources/web/assets/WireGuardView-95567278.js @@ -1,4 +1,4 @@ -import{d as I,e as y,r as D,u as F,g as M,x as B,ab as o,b_ as g,i as q,c as l,a as e,p as $,t,F as E,J as N,o as r,j as f,l as m,C as S,a2 as V,ac as j,a5 as A}from"./index-b6c39163.js";import{_ as L}from"./Breadcrumb-fef16e9c.js";import{p as P}from"./parser-fdd85e1d.js";const J={class:"page-container"},Q={class:"main"},z={class:"table-responsive"},H={class:"table"},K=e("th",null,"ID",-1),O={class:"actions two"},R={class:"form-check"},T=["disabled","onChange","checked"],U={class:"actions two"},X=["onClick"],Y=["onClick"],ae=I({__name:"WireGuardView",setup(Z){const b=y(),d=D([]),{t:c}=F();function v(n){S(b,`/wireguard/${n}`)}M({handle:(n,s)=>{s?B(c(s),"error"):d.value=n.wireGuards.map(i=>({...i,...P(i.config)}))},document:o` +import{d as I,e as y,r as D,u as F,g as M,x as B,ab as o,b_ as g,i as q,c as l,a as e,p as $,t,F as E,J as N,o as r,j as f,l as m,C as S,a2 as V,ac as j,a5 as A}from"./index-1dff6785.js";import{_ as L}from"./Breadcrumb-cba2b95b.js";import{p as P}from"./parser-fdd85e1d.js";const J={class:"page-container"},Q={class:"main"},z={class:"table-responsive"},H={class:"table"},K=e("th",null,"ID",-1),O={class:"actions two"},R={class:"form-check"},T=["disabled","onChange","checked"],U={class:"actions two"},X=["onClick"],Y=["onClick"],ae=I({__name:"WireGuardView",setup(Z){const b=y(),d=D([]),{t:c}=F();function v(n){S(b,`/wireguard/${n}`)}M({handle:(n,s)=>{s?B(c(s),"error"):d.value=n.wireGuards.map(i=>({...i,...P(i.config)}))},document:o` query { wireGuards { ...WireGuardFragment diff --git a/app/src/main/resources/web/assets/call-outline-rounded-48005e94.js b/app/src/main/resources/web/assets/call-outline-rounded-72631358.js similarity index 91% rename from app/src/main/resources/web/assets/call-outline-rounded-48005e94.js rename to app/src/main/resources/web/assets/call-outline-rounded-72631358.js index 7ac086dc..bfe5057f 100644 --- a/app/src/main/resources/web/assets/call-outline-rounded-48005e94.js +++ b/app/src/main/resources/web/assets/call-outline-rounded-72631358.js @@ -1 +1 @@ -import{o as e,c as t,a as o}from"./index-b6c39163.js";const l={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},n=o("path",{fill:"currentColor",d:"M19.95 21q-3.225 0-6.287-1.438t-5.425-3.8q-2.363-2.362-3.8-5.425T3 4.05q0-.45.3-.75t.75-.3H8.1q.35 0 .625.225t.325.575l.65 3.5q.05.35-.013.638T9.4 8.45L6.975 10.9q1.05 1.8 2.638 3.375T13.1 17l2.35-2.35q.225-.225.588-.338t.712-.062l3.45.7q.35.075.575.338T21 15.9v4.05q0 .45-.3.75t-.75.3ZM6.025 9l1.65-1.65L7.25 5H5.025q.125 1.025.35 2.025T6.025 9ZM19 18.95v-2.2l-2.35-.475l-1.675 1.675q.975.425 1.987.675T19 18.95Zm-4-1.025ZM6.025 9Z"},null,-1),c=[n];function s(a,r){return e(),t("svg",l,c)}const i={name:"material-symbols-call-outline-rounded",render:s};export{i as _}; +import{o as e,c as t,a as o}from"./index-1dff6785.js";const l={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},n=o("path",{fill:"currentColor",d:"M19.95 21q-3.225 0-6.287-1.438t-5.425-3.8q-2.363-2.362-3.8-5.425T3 4.05q0-.45.3-.75t.75-.3H8.1q.35 0 .625.225t.325.575l.65 3.5q.05.35-.013.638T9.4 8.45L6.975 10.9q1.05 1.8 2.638 3.375T13.1 17l2.35-2.35q.225-.225.588-.338t.712-.062l3.45.7q.35.075.575.338T21 15.9v4.05q0 .45-.3.75t-.75.3ZM6.025 9l1.65-1.65L7.25 5H5.025q.125 1.025.35 2.025T6.025 9ZM19 18.95v-2.2l-2.35-.475l-1.675 1.675q.975.425 1.987.675T19 18.95Zm-4-1.025ZM6.025 9Z"},null,-1),c=[n];function s(a,r){return e(),t("svg",l,c)}const i={name:"material-symbols-call-outline-rounded",render:s};export{i as _}; diff --git a/app/src/main/resources/web/assets/cssMode-4585b121.js b/app/src/main/resources/web/assets/cssMode-dcf8258c.js similarity index 99% rename from app/src/main/resources/web/assets/cssMode-4585b121.js rename to app/src/main/resources/web/assets/cssMode-dcf8258c.js index e954b1f2..0ed0fbb4 100644 --- a/app/src/main/resources/web/assets/cssMode-4585b121.js +++ b/app/src/main/resources/web/assets/cssMode-dcf8258c.js @@ -1,4 +1,4 @@ -var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./MonacoEditor.vuevuetypescriptsetuptruelang-1dd835fe.js";import"./index-b6c39163.js";var We=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,Oe=Object.getOwnPropertyNames,Ve=Object.prototype.hasOwnProperty,Y=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Oe(n))!Ve.call(e,t)&&t!==i&&We(e,t,{get:()=>n[t],enumerable:!(r=Ue(n,t))||r.enumerable});return e},He=(e,n,i)=>(Y(e,n,"default"),i&&Y(i,n,"default")),c={};He(c,Ne);var ze=2*60*1e3,Xe=class{constructor(e){E(this,"_defaults");E(this,"_idleCheckInterval");E(this,"_lastUsedTime");E(this,"_configChangeListener");E(this,"_worker");E(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>ze&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Z;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Z||(Z={}));var U;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(U||(U={}));var k;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=U.MAX_VALUE),t===Number.MAX_VALUE&&(t=U.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&s.uinteger(t.line)&&s.uinteger(t.character)}e.is=i})(k||(k={}));var p;(function(e){function n(r,t,a,o){if(s.uinteger(r)&&s.uinteger(t)&&s.uinteger(a)&&s.uinteger(o))return{start:k.create(r,t),end:k.create(a,o)};if(k.is(r)&&k.is(t))return{start:r,end:t};throw new Error("Range#create called with invalid arguments["+r+", "+t+", "+a+", "+o+"]")}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&k.is(t.start)&&k.is(t.end)}e.is=i})(p||(p={}));var X;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.range)&&(s.string(t.uri)||s.undefined(t.uri))}e.is=i})(X||(X={}));var K;(function(e){function n(r,t,a,o){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.targetRange)&&s.string(t.targetUri)&&(p.is(t.targetSelectionRange)||s.undefined(t.targetSelectionRange))&&(p.is(t.originSelectionRange)||s.undefined(t.originSelectionRange))}e.is=i})(K||(K={}));var B;(function(e){function n(r,t,a,o){return{red:r,green:t,blue:a,alpha:o}}e.create=n;function i(r){var t=r;return s.numberRange(t.red,0,1)&&s.numberRange(t.green,0,1)&&s.numberRange(t.blue,0,1)&&s.numberRange(t.alpha,0,1)}e.is=i})(B||(B={}));var ee;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){var t=r;return p.is(t.range)&&B.is(t.color)}e.is=i})(ee||(ee={}));var te;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){var t=r;return s.string(t.label)&&(s.undefined(t.textEdit)||C.is(t))&&(s.undefined(t.additionalTextEdits)||s.typedArray(t.additionalTextEdits,C.is))}e.is=i})(te||(te={}));var P;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(P||(P={}));var re;(function(e){function n(r,t,a,o,u){var g={startLine:r,endLine:t};return s.defined(a)&&(g.startCharacter=a),s.defined(o)&&(g.endCharacter=o),s.defined(u)&&(g.kind=u),g}e.create=n;function i(r){var t=r;return s.uinteger(t.startLine)&&s.uinteger(t.startLine)&&(s.undefined(t.startCharacter)||s.uinteger(t.startCharacter))&&(s.undefined(t.endCharacter)||s.uinteger(t.endCharacter))&&(s.undefined(t.kind)||s.string(t.kind))}e.is=i})(re||(re={}));var $;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&X.is(t.location)&&s.string(t.message)}e.is=i})($||($={}));var I;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(I||(I={}));var ne;(function(e){e.Unnecessary=1,e.Deprecated=2})(ne||(ne={}));var ie;(function(e){function n(i){var r=i;return r!=null&&s.string(r.href)}e.is=n})(ie||(ie={}));var O;(function(e){function n(r,t,a,o,u,g){var d={range:r,message:t};return s.defined(a)&&(d.severity=a),s.defined(o)&&(d.code=o),s.defined(u)&&(d.source=u),s.defined(g)&&(d.relatedInformation=g),d}e.create=n;function i(r){var t,a=r;return s.defined(a)&&p.is(a.range)&&s.string(a.message)&&(s.number(a.severity)||s.undefined(a.severity))&&(s.integer(a.code)||s.string(a.code)||s.undefined(a.code))&&(s.undefined(a.codeDescription)||s.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(s.string(a.source)||s.undefined(a.source))&&(s.undefined(a.relatedInformation)||s.typedArray(a.relatedInformation,$.is))}e.is=i})(O||(O={}));var M;(function(e){function n(r,t){for(var a=[],o=2;o0&&(u.arguments=a),u}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.title)&&s.string(t.command)}e.is=i})(M||(M={}));var C;(function(e){function n(a,o){return{range:a,newText:o}}e.replace=n;function i(a,o){return{range:{start:a,end:a},newText:o}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){var o=a;return s.objectLiteral(o)&&s.string(o.newText)&&p.is(o.range)}e.is=t})(C||(C={}));var R;(function(e){function n(r,t,a){var o={label:r};return t!==void 0&&(o.needsConfirmation=t),a!==void 0&&(o.description=a),o}e.create=n;function i(r){var t=r;return t!==void 0&&s.objectLiteral(t)&&s.string(t.label)&&(s.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(s.string(t.description)||t.description===void 0)}e.is=i})(R||(R={}));var m;(function(e){function n(i){var r=i;return typeof r=="string"}e.is=n})(m||(m={}));var x;(function(e){function n(a,o,u){return{range:a,newText:o,annotationId:u}}e.replace=n;function i(a,o,u){return{range:{start:a,end:a},newText:o,annotationId:u}}e.insert=i;function r(a,o){return{range:a,newText:"",annotationId:o}}e.del=r;function t(a){var o=a;return C.is(o)&&(R.is(o.annotationId)||m.is(o.annotationId))}e.is=t})(x||(x={}));var V;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&H.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(V||(V={}));var T;(function(e){function n(r,t,a){var o={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="create"&&s.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(T||(T={}));var S;(function(e){function n(r,t,a,o){var u={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),o!==void 0&&(u.annotationId=o),u}e.create=n;function i(r){var t=r;return t&&t.kind==="rename"&&s.string(t.oldUri)&&s.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(S||(S={}));var F;(function(e){function n(r,t,a){var o={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="delete"&&s.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||s.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||s.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(F||(F={}));var q;(function(e){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(t){return s.string(t.kind)?T.is(t)||S.is(t)||F.is(t):V.is(t)}))}e.is=n})(q||(q={}));var W=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,r){var t,a;if(r===void 0?t=C.insert(n,i):m.is(r)?(a=r,t=x.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.insert(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(n,i,r){var t,a;if(r===void 0?t=C.replace(n,i):m.is(r)?(a=r,t=x.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.replace(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(n,i){var r,t;if(i===void 0?r=C.del(n):m.is(i)?(t=i,r=x.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),r=x.del(n,t)),this.edits.push(r),t!==void 0)return t},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ae=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var r;if(m.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ae(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if(V.is(r)){var t=new W(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=t}})):n.changes&&Object.keys(n.changes).forEach(function(r){var t=new W(n.changes[r]);i._textEditChanges[r]=t})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(H.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),r=new W(t,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var t=[];this._workspaceEdit.changes[n]=t,r=new W(t),this._textEditChanges[n]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ae,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;R.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=T.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=T.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e.prototype.renameFile=function(n,i,r,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;R.is(r)||m.is(r)?a=r:t=r;var o,u;if(a===void 0?o=S.create(n,i,t):(u=m.is(a)?a:this._changeAnnotations.manage(a),o=S.create(n,i,t,u)),this._workspaceEdit.documentChanges.push(o),u!==void 0)return u},e.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;R.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=F.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=F.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e})();var oe;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)}e.is=i})(oe||(oe={}));var se;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.integer(t.version)}e.is=i})(se||(se={}));var H;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&(t.version===null||s.integer(t.version))}e.is=i})(H||(H={}));var ue;(function(e){function n(r,t,a,o){return{uri:r,languageId:t,version:a,text:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.string(t.languageId)&&s.integer(t.version)&&s.string(t.text)}e.is=i})(ue||(ue={}));var L;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(L||(L={}));(function(e){function n(i){var r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(L||(L={}));var Q;(function(e){function n(i){var r=i;return s.objectLiteral(i)&&L.is(r.kind)&&s.string(r.value)}e.is=n})(Q||(Q={}));var l;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(l||(l={}));var G;(function(e){e.PlainText=1,e.Snippet=2})(G||(G={}));var ce;(function(e){e.Deprecated=1})(ce||(ce={}));var de;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){var t=r;return t&&s.string(t.newText)&&p.is(t.insert)&&p.is(t.replace)}e.is=i})(de||(de={}));var fe;(function(e){e.asIs=1,e.adjustIndentation=2})(fe||(fe={}));var ge;(function(e){function n(i){return{label:i}}e.create=n})(ge||(ge={}));var le;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(le||(le={}));var z;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){var t=r;return s.string(t)||s.objectLiteral(t)&&s.string(t.language)&&s.string(t.value)}e.is=i})(z||(z={}));var he;(function(e){function n(i){var r=i;return!!r&&s.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||s.typedArray(r.contents,z.is))&&(i.range===void 0||p.is(i.range))}e.is=n})(he||(he={}));var ve;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(ve||(ve={}));var pe;(function(e){function n(i,r){for(var t=[],a=2;a=0;v--){var w=g[v],b=a.offsetAt(w.range.start),f=a.offsetAt(w.range.end);if(f<=d)u=u.substring(0,b)+w.newText+u.substring(f,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=r;function t(a,o){if(a.length<=1)return a;var u=a.length/2|0,g=a.slice(0,u),d=a.slice(u);t(g,o),t(d,o);for(var v=0,w=0,b=0;vn in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./MonacoEditor.vuevuetypescriptsetuptruelang-fd107f07.js";import"./index-1dff6785.js";var We=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,Oe=Object.getOwnPropertyNames,Ve=Object.prototype.hasOwnProperty,Y=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Oe(n))!Ve.call(e,t)&&t!==i&&We(e,t,{get:()=>n[t],enumerable:!(r=Ue(n,t))||r.enumerable});return e},He=(e,n,i)=>(Y(e,n,"default"),i&&Y(i,n,"default")),c={};He(c,Ne);var ze=2*60*1e3,Xe=class{constructor(e){E(this,"_defaults");E(this,"_idleCheckInterval");E(this,"_lastUsedTime");E(this,"_configChangeListener");E(this,"_worker");E(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>ze&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Z;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Z||(Z={}));var U;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(U||(U={}));var k;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=U.MAX_VALUE),t===Number.MAX_VALUE&&(t=U.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&s.uinteger(t.line)&&s.uinteger(t.character)}e.is=i})(k||(k={}));var p;(function(e){function n(r,t,a,o){if(s.uinteger(r)&&s.uinteger(t)&&s.uinteger(a)&&s.uinteger(o))return{start:k.create(r,t),end:k.create(a,o)};if(k.is(r)&&k.is(t))return{start:r,end:t};throw new Error("Range#create called with invalid arguments["+r+", "+t+", "+a+", "+o+"]")}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&k.is(t.start)&&k.is(t.end)}e.is=i})(p||(p={}));var X;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.range)&&(s.string(t.uri)||s.undefined(t.uri))}e.is=i})(X||(X={}));var K;(function(e){function n(r,t,a,o){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.targetRange)&&s.string(t.targetUri)&&(p.is(t.targetSelectionRange)||s.undefined(t.targetSelectionRange))&&(p.is(t.originSelectionRange)||s.undefined(t.originSelectionRange))}e.is=i})(K||(K={}));var B;(function(e){function n(r,t,a,o){return{red:r,green:t,blue:a,alpha:o}}e.create=n;function i(r){var t=r;return s.numberRange(t.red,0,1)&&s.numberRange(t.green,0,1)&&s.numberRange(t.blue,0,1)&&s.numberRange(t.alpha,0,1)}e.is=i})(B||(B={}));var ee;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){var t=r;return p.is(t.range)&&B.is(t.color)}e.is=i})(ee||(ee={}));var te;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){var t=r;return s.string(t.label)&&(s.undefined(t.textEdit)||C.is(t))&&(s.undefined(t.additionalTextEdits)||s.typedArray(t.additionalTextEdits,C.is))}e.is=i})(te||(te={}));var P;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(P||(P={}));var re;(function(e){function n(r,t,a,o,u){var g={startLine:r,endLine:t};return s.defined(a)&&(g.startCharacter=a),s.defined(o)&&(g.endCharacter=o),s.defined(u)&&(g.kind=u),g}e.create=n;function i(r){var t=r;return s.uinteger(t.startLine)&&s.uinteger(t.startLine)&&(s.undefined(t.startCharacter)||s.uinteger(t.startCharacter))&&(s.undefined(t.endCharacter)||s.uinteger(t.endCharacter))&&(s.undefined(t.kind)||s.string(t.kind))}e.is=i})(re||(re={}));var $;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&X.is(t.location)&&s.string(t.message)}e.is=i})($||($={}));var I;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(I||(I={}));var ne;(function(e){e.Unnecessary=1,e.Deprecated=2})(ne||(ne={}));var ie;(function(e){function n(i){var r=i;return r!=null&&s.string(r.href)}e.is=n})(ie||(ie={}));var O;(function(e){function n(r,t,a,o,u,g){var d={range:r,message:t};return s.defined(a)&&(d.severity=a),s.defined(o)&&(d.code=o),s.defined(u)&&(d.source=u),s.defined(g)&&(d.relatedInformation=g),d}e.create=n;function i(r){var t,a=r;return s.defined(a)&&p.is(a.range)&&s.string(a.message)&&(s.number(a.severity)||s.undefined(a.severity))&&(s.integer(a.code)||s.string(a.code)||s.undefined(a.code))&&(s.undefined(a.codeDescription)||s.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(s.string(a.source)||s.undefined(a.source))&&(s.undefined(a.relatedInformation)||s.typedArray(a.relatedInformation,$.is))}e.is=i})(O||(O={}));var M;(function(e){function n(r,t){for(var a=[],o=2;o0&&(u.arguments=a),u}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.title)&&s.string(t.command)}e.is=i})(M||(M={}));var C;(function(e){function n(a,o){return{range:a,newText:o}}e.replace=n;function i(a,o){return{range:{start:a,end:a},newText:o}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){var o=a;return s.objectLiteral(o)&&s.string(o.newText)&&p.is(o.range)}e.is=t})(C||(C={}));var R;(function(e){function n(r,t,a){var o={label:r};return t!==void 0&&(o.needsConfirmation=t),a!==void 0&&(o.description=a),o}e.create=n;function i(r){var t=r;return t!==void 0&&s.objectLiteral(t)&&s.string(t.label)&&(s.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(s.string(t.description)||t.description===void 0)}e.is=i})(R||(R={}));var m;(function(e){function n(i){var r=i;return typeof r=="string"}e.is=n})(m||(m={}));var x;(function(e){function n(a,o,u){return{range:a,newText:o,annotationId:u}}e.replace=n;function i(a,o,u){return{range:{start:a,end:a},newText:o,annotationId:u}}e.insert=i;function r(a,o){return{range:a,newText:"",annotationId:o}}e.del=r;function t(a){var o=a;return C.is(o)&&(R.is(o.annotationId)||m.is(o.annotationId))}e.is=t})(x||(x={}));var V;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&H.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(V||(V={}));var T;(function(e){function n(r,t,a){var o={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="create"&&s.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(T||(T={}));var S;(function(e){function n(r,t,a,o){var u={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),o!==void 0&&(u.annotationId=o),u}e.create=n;function i(r){var t=r;return t&&t.kind==="rename"&&s.string(t.oldUri)&&s.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(S||(S={}));var F;(function(e){function n(r,t,a){var o={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="delete"&&s.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||s.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||s.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(F||(F={}));var q;(function(e){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(t){return s.string(t.kind)?T.is(t)||S.is(t)||F.is(t):V.is(t)}))}e.is=n})(q||(q={}));var W=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,r){var t,a;if(r===void 0?t=C.insert(n,i):m.is(r)?(a=r,t=x.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.insert(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(n,i,r){var t,a;if(r===void 0?t=C.replace(n,i):m.is(r)?(a=r,t=x.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.replace(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(n,i){var r,t;if(i===void 0?r=C.del(n):m.is(i)?(t=i,r=x.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),r=x.del(n,t)),this.edits.push(r),t!==void 0)return t},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ae=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var r;if(m.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ae(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if(V.is(r)){var t=new W(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=t}})):n.changes&&Object.keys(n.changes).forEach(function(r){var t=new W(n.changes[r]);i._textEditChanges[r]=t})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(H.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),r=new W(t,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var t=[];this._workspaceEdit.changes[n]=t,r=new W(t),this._textEditChanges[n]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ae,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;R.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=T.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=T.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e.prototype.renameFile=function(n,i,r,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;R.is(r)||m.is(r)?a=r:t=r;var o,u;if(a===void 0?o=S.create(n,i,t):(u=m.is(a)?a:this._changeAnnotations.manage(a),o=S.create(n,i,t,u)),this._workspaceEdit.documentChanges.push(o),u!==void 0)return u},e.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;R.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=F.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=F.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e})();var oe;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)}e.is=i})(oe||(oe={}));var se;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.integer(t.version)}e.is=i})(se||(se={}));var H;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&(t.version===null||s.integer(t.version))}e.is=i})(H||(H={}));var ue;(function(e){function n(r,t,a,o){return{uri:r,languageId:t,version:a,text:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.string(t.languageId)&&s.integer(t.version)&&s.string(t.text)}e.is=i})(ue||(ue={}));var L;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(L||(L={}));(function(e){function n(i){var r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(L||(L={}));var Q;(function(e){function n(i){var r=i;return s.objectLiteral(i)&&L.is(r.kind)&&s.string(r.value)}e.is=n})(Q||(Q={}));var l;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(l||(l={}));var G;(function(e){e.PlainText=1,e.Snippet=2})(G||(G={}));var ce;(function(e){e.Deprecated=1})(ce||(ce={}));var de;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){var t=r;return t&&s.string(t.newText)&&p.is(t.insert)&&p.is(t.replace)}e.is=i})(de||(de={}));var fe;(function(e){e.asIs=1,e.adjustIndentation=2})(fe||(fe={}));var ge;(function(e){function n(i){return{label:i}}e.create=n})(ge||(ge={}));var le;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(le||(le={}));var z;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){var t=r;return s.string(t)||s.objectLiteral(t)&&s.string(t.language)&&s.string(t.value)}e.is=i})(z||(z={}));var he;(function(e){function n(i){var r=i;return!!r&&s.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||s.typedArray(r.contents,z.is))&&(i.range===void 0||p.is(i.range))}e.is=n})(he||(he={}));var ve;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(ve||(ve={}));var pe;(function(e){function n(i,r){for(var t=[],a=2;a=0;v--){var w=g[v],b=a.offsetAt(w.range.start),f=a.offsetAt(w.range.end);if(f<=d)u=u.substring(0,b)+w.newText+u.substring(f,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=r;function t(a,o){if(a.length<=1)return a;var u=a.length/2|0,g=a.slice(0,u),d=a.slice(u);t(g,o),t(d,o);for(var v=0,w=0,b=0;v0&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},e.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),r=0,t=i.length;if(t===0)return k.create(0,n);for(;rn?t=a:r=a+1}var o=r-1;return k.create(o,n-i[o])},e.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var r=i[n.line],t=n.line+1"u"}e.undefined=r;function t(f){return f===!0||f===!1}e.boolean=t;function a(f){return n.call(f)==="[object String]"}e.string=a;function o(f){return n.call(f)==="[object Number]"}e.number=o;function u(f,y,N){return n.call(f)==="[object Number]"&&y<=f&&f<=N}e.numberRange=u;function g(f){return n.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}e.integer=g;function d(f){return n.call(f)==="[object Number]"&&0<=f&&f<=2147483647}e.uinteger=d;function v(f){return n.call(f)==="[object Function]"}e.func=v;function w(f){return f!==null&&typeof f=="object"}e.objectLiteral=w;function b(f,y){return Array.isArray(f)&&f.every(y)}e.typedArray=b})(s||(s={}));var $e=class{constructor(e,n,i){E(this,"_disposables",[]);E(this,"_listener",Object.create(null));this._languageId=e,this._worker=n;const r=a=>{let o=a.getLanguageId();if(o!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,o),500)}),this._doValidate(a.uri,o)},t=a=>{c.editor.setModelMarkers(a,this._languageId,[]);let o=a.uri.toString(),u=this._listener[o];u&&(u.dispose(),delete this._listener[o])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(t)),this._disposables.push(c.editor.onDidChangeModelLanguage(a=>{t(a.model),r(a.model)})),this._disposables.push(i(a=>{c.editor.getModels().forEach(o=>{o.getLanguageId()===this._languageId&&(t(o),r(o))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(t);for(let a in this._listener)this._listener[a].dispose()}}),c.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(a=>Qe(e,a));let t=c.editor.getModel(e);t&&t.getLanguageId()===n&&c.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function qe(e){switch(e){case I.Error:return c.MarkerSeverity.Error;case I.Warning:return c.MarkerSeverity.Warning;case I.Information:return c.MarkerSeverity.Info;case I.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function Qe(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:qe(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var Ge=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doComplete(t.toString(),A(n))).then(a=>{if(!a)return;const o=e.getWordUntilPosition(n),u=new c.Range(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn),g=a.items.map(d=>{const v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:Ze(d.command),range:u,kind:Ye(d.kind)};return d.textEdit&&(Je(d.textEdit)?v.range={insert:_(d.textEdit.insert),replace:_(d.textEdit.replace)}:v.range=_(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(j)),d.insertTextFormat===G.Snippet&&(v.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:g}})}};function A(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Me(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function _(e){if(e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function Je(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function Ye(e){const n=c.languages.CompletionItemKind;switch(e){case l.Text:return n.Text;case l.Method:return n.Method;case l.Function:return n.Function;case l.Constructor:return n.Constructor;case l.Field:return n.Field;case l.Variable:return n.Variable;case l.Class:return n.Class;case l.Interface:return n.Interface;case l.Module:return n.Module;case l.Property:return n.Property;case l.Unit:return n.Unit;case l.Value:return n.Value;case l.Enum:return n.Enum;case l.Keyword:return n.Keyword;case l.Snippet:return n.Snippet;case l.Color:return n.Color;case l.File:return n.File;case l.Reference:return n.Reference}return n.Property}function j(e){if(e)return{range:_(e.range),text:e.newText}}function Ze(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Ke=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),A(n))).then(t=>{if(t)return{range:_(t.range),contents:tt(t.contents)}})}};function et(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Pe(e){return typeof e=="string"?{value:e}:et(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` `+e.value+"\n```\n"}}function tt(e){if(e)return Array.isArray(e)?e.map(Pe):[Pe(e)]}var rt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),A(n))).then(t=>{if(t)return t.map(a=>({range:_(a.range),kind:nt(a.kind)}))})}};function nt(e){switch(e){case D.Read:return c.languages.DocumentHighlightKind.Read;case D.Write:return c.languages.DocumentHighlightKind.Write;case D.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var it=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),A(n))).then(t=>{if(t)return[Te(t)]})}};function Te(e){return{uri:c.Uri.parse(e.uri),range:_(e.range)}}var at=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),A(n))).then(a=>{if(a)return a.map(Te)})}},ot=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),A(n),i)).then(a=>st(a))}};function st(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=c.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:_(t.range),text:t.newText}})}return{edits:n}}var ut=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(r)return r.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:ct(t.kind),range:_(t.location.range),selectionRange:_(t.location.range),tags:[]}))})}};function ct(e){let n=c.languages.SymbolKind;switch(e){case h.File:return n.Array;case h.Module:return n.Module;case h.Namespace:return n.Namespace;case h.Package:return n.Package;case h.Class:return n.Class;case h.Method:return n.Method;case h.Property:return n.Property;case h.Field:return n.Field;case h.Constructor:return n.Constructor;case h.Enum:return n.Enum;case h.Interface:return n.Interface;case h.Function:return n.Function;case h.Variable:return n.Variable;case h.Constant:return n.Constant;case h.String:return n.String;case h.Number:return n.Number;case h.Boolean:return n.Boolean;case h.Array:return n.Array}return n.Function}var wt=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(r)return{links:r.map(t=>({range:_(t.range),url:t.target}))}})}},dt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Se(n)).then(a=>{if(!(!a||a.length===0))return a.map(j)}))}},ft=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),Me(n),Se(i)).then(o=>{if(!(!o||o.length===0))return o.map(j)}))}};function Se(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var gt=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(r)return r.map(t=>({color:t.color,range:_(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Me(n.range))).then(t=>{if(t)return t.map(a=>{let o={label:a.label};return a.textEdit&&(o.textEdit=j(a.textEdit)),a.additionalTextEdits&&(o.additionalTextEdits=a.additionalTextEdits.map(j)),o})})}},lt=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(t)return t.map(a=>{const o={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(o.kind=ht(a.kind)),o})})}};function ht(e){switch(e){case P.Comment:return c.languages.FoldingRangeKind.Comment;case P.Imports:return c.languages.FoldingRangeKind.Imports;case P.Region:return c.languages.FoldingRangeKind.Region}}var vt=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(A))).then(t=>{if(t)return t.map(a=>{const o=[];for(;a;)o.push({range:_(a.range)}),a=a.parent;return o})})}};function kt(e){const n=[],i=[],r=new Xe(e);n.push(r);const t=(...o)=>r.getLanguageServiceWorker(...o);function a(){const{languageId:o,modeConfiguration:u}=e;Fe(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(o,new Ge(t,["/","-",":"]))),u.hovers&&i.push(c.languages.registerHoverProvider(o,new Ke(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(o,new rt(t))),u.definitions&&i.push(c.languages.registerDefinitionProvider(o,new it(t))),u.references&&i.push(c.languages.registerReferenceProvider(o,new at(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(o,new ut(t))),u.rename&&i.push(c.languages.registerRenameProvider(o,new ot(t))),u.colors&&i.push(c.languages.registerColorProvider(o,new gt(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(o,new lt(t))),u.diagnostics&&i.push(new $e(o,t,e.onDidChange)),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(o,new vt(t))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(o,new dt(t))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(o,new ft(t)))}return a(),n.push(De(i)),De(n)}function De(e){return{dispose:()=>Fe(e)}}function Fe(e){for(;e.length;)e.pop().dispose()}export{Ge as CompletionAdapter,it as DefinitionAdapter,$e as DiagnosticsAdapter,gt as DocumentColorAdapter,dt as DocumentFormattingEditProvider,rt as DocumentHighlightAdapter,wt as DocumentLinkAdapter,ft as DocumentRangeFormattingEditProvider,ut as DocumentSymbolAdapter,lt as FoldingRangeAdapter,Ke as HoverAdapter,at as ReferenceAdapter,ot as RenameAdapter,vt as SelectionRangeAdapter,Xe as WorkerManager,A as fromPosition,Me as fromRange,kt as setupMode,_ as toRange,j as toTextEdit}; diff --git a/app/src/main/resources/web/assets/freemarker2-c07316a7.js b/app/src/main/resources/web/assets/freemarker2-c9252b5a.js similarity index 99% rename from app/src/main/resources/web/assets/freemarker2-c07316a7.js rename to app/src/main/resources/web/assets/freemarker2-c9252b5a.js index a9f7e53d..9cb48e75 100644 --- a/app/src/main/resources/web/assets/freemarker2-c07316a7.js +++ b/app/src/main/resources/web/assets/freemarker2-c9252b5a.js @@ -1,3 +1,3 @@ -import{m as F}from"./MonacoEditor.vuevuetypescriptsetuptruelang-1dd835fe.js";import"./index-b6c39163.js";var b=Object.defineProperty,x=Object.getOwnPropertyDescriptor,$=Object.getOwnPropertyNames,v=Object.prototype.hasOwnProperty,g=(t,n,_,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of $(n))!v.call(t,o)&&o!==_&&b(t,o,{get:()=>n[o],enumerable:!(e=x(n,o))||e.enumerable});return t},E=(t,n,_)=>(g(t,n,"default"),_&&g(_,n,"default")),r={};E(r,F);var d=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],s=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},u={close:"\\]",id:"bracket",open:"\\["},D={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:` +import{m as F}from"./MonacoEditor.vuevuetypescriptsetuptruelang-fd107f07.js";import"./index-1dff6785.js";var b=Object.defineProperty,x=Object.getOwnPropertyDescriptor,$=Object.getOwnPropertyNames,v=Object.prototype.hasOwnProperty,g=(t,n,_,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of $(n))!v.call(t,o)&&o!==_&&b(t,o,{get:()=>n[o],enumerable:!(e=x(n,o))||e.enumerable});return t},E=(t,n,_)=>(g(t,n,"default"),_&&g(_,n,"default")),r={};E(r,F);var d=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],s=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},u={close:"\\]",id:"bracket",open:"\\["},D={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:` \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${s.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${s.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function A(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:` \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${s.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${s.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function i(t,n){const _=`_${t.id}_${n.id}`,e=c=>c.replace(/__id__/g,_),o=c=>{const f=c.source.replace(/__id__/g,_);return new RegExp(f,c.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function m(t){const n=i(a,t),_=i(u,t),e=i(D,t);return{...n,..._,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,..._.tokenizer,...e.tokenizer}}}var w={conf:l(a),language:i(a,k)},T={conf:l(u),language:i(u,k)},h={conf:l(a),language:i(a,p)},S={conf:l(u),language:i(u,p)},P={conf:A(),language:m(k)},y={conf:A(),language:m(p)};export{h as TagAngleInterpolationBracket,w as TagAngleInterpolationDollar,y as TagAutoInterpolationBracket,P as TagAutoInterpolationDollar,S as TagBracketInterpolationBracket,T as TagBracketInterpolationDollar}; diff --git a/app/src/main/resources/web/assets/grid-view-outline-rounded-a088250d.js b/app/src/main/resources/web/assets/grid-view-outline-rounded-5cff260c.js similarity index 95% rename from app/src/main/resources/web/assets/grid-view-outline-rounded-a088250d.js rename to app/src/main/resources/web/assets/grid-view-outline-rounded-5cff260c.js index 32777188..e15b133c 100644 --- a/app/src/main/resources/web/assets/grid-view-outline-rounded-a088250d.js +++ b/app/src/main/resources/web/assets/grid-view-outline-rounded-5cff260c.js @@ -1 +1 @@ -import{o as e,c as t,a as o}from"./index-b6c39163.js";const s={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},q=o("path",{fill:"currentColor",d:"M21 6.625q0 .425-.288.713T20 7.625H4q-.425 0-.713-.288T3 6.626V4q0-.425.288-.713T4 3h16q.425 0 .713.288T21 4v2.625Zm0 6.725q0 .425-.288.713T20 14.35H4q-.425 0-.713-.287T3 13.35v-2.725q0-.425.288-.713T4 9.625h16q.425 0 .713.288t.287.712v2.725ZM21 20q0 .425-.288.713T20 21H4q-.425 0-.713-.288T3 20v-2.65q0-.425.288-.713T4 16.35h16q.425 0 .713.288t.287.712V20Z"},null,-1),r=[q];function T(n,h){return e(),t("svg",s,r)}const l={name:"material-symbols-table-rows-rounded",render:T},c={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},_=o("path",{fill:"currentColor",d:"M5 11q-.825 0-1.413-.588T3 9V5q0-.825.588-1.413T5 3h4q.825 0 1.413.588T11 5v4q0 .825-.588 1.413T9 11H5Zm0 10q-.825 0-1.413-.588T3 19v-4q0-.825.588-1.413T5 13h4q.825 0 1.413.588T11 15v4q0 .825-.588 1.413T9 21H5Zm10-10q-.825 0-1.413-.588T13 9V5q0-.825.588-1.413T15 3h4q.825 0 1.413.588T21 5v4q0 .825-.588 1.413T19 11h-4Zm0 10q-.825 0-1.413-.588T13 19v-4q0-.825.588-1.413T15 13h4q.825 0 1.413.588T21 15v4q0 .825-.588 1.413T19 21h-4ZM5 9h4V5H5v4Zm10 0h4V5h-4v4Zm0 10h4v-4h-4v4ZM5 19h4v-4H5v4ZM15 9Zm0 6Zm-6 0Zm0-6Z"},null,-1),i=[_];function m(n,h){return e(),t("svg",c,i)}const v={name:"material-symbols-grid-view-outline-rounded",render:m};export{v as _,l as a}; +import{o as e,c as t,a as o}from"./index-1dff6785.js";const s={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},q=o("path",{fill:"currentColor",d:"M21 6.625q0 .425-.288.713T20 7.625H4q-.425 0-.713-.288T3 6.626V4q0-.425.288-.713T4 3h16q.425 0 .713.288T21 4v2.625Zm0 6.725q0 .425-.288.713T20 14.35H4q-.425 0-.713-.287T3 13.35v-2.725q0-.425.288-.713T4 9.625h16q.425 0 .713.288t.287.712v2.725ZM21 20q0 .425-.288.713T20 21H4q-.425 0-.713-.288T3 20v-2.65q0-.425.288-.713T4 16.35h16q.425 0 .713.288t.287.712V20Z"},null,-1),r=[q];function T(n,h){return e(),t("svg",s,r)}const l={name:"material-symbols-table-rows-rounded",render:T},c={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},_=o("path",{fill:"currentColor",d:"M5 11q-.825 0-1.413-.588T3 9V5q0-.825.588-1.413T5 3h4q.825 0 1.413.588T11 5v4q0 .825-.588 1.413T9 11H5Zm0 10q-.825 0-1.413-.588T3 19v-4q0-.825.588-1.413T5 13h4q.825 0 1.413.588T11 15v4q0 .825-.588 1.413T9 21H5Zm10-10q-.825 0-1.413-.588T13 9V5q0-.825.588-1.413T15 3h4q.825 0 1.413.588T21 5v4q0 .825-.588 1.413T19 11h-4Zm0 10q-.825 0-1.413-.588T13 19v-4q0-.825.588-1.413T15 13h4q.825 0 1.413.588T21 15v4q0 .825-.588 1.413T19 21h-4ZM5 9h4V5H5v4Zm10 0h4V5h-4v4Zm0 10h4v-4h-4v4ZM5 19h4v-4H5v4ZM15 9Zm0 6Zm-6 0Zm0-6Z"},null,-1),i=[_];function m(n,h){return e(),t("svg",c,i)}const v={name:"material-symbols-grid-view-outline-rounded",render:m};export{v as _,l as a}; diff --git a/app/src/main/resources/web/assets/handlebars-8607b260.js b/app/src/main/resources/web/assets/handlebars-bc0c539b.js similarity index 99% rename from app/src/main/resources/web/assets/handlebars-8607b260.js rename to app/src/main/resources/web/assets/handlebars-bc0c539b.js index 784ee894..17036cd1 100644 --- a/app/src/main/resources/web/assets/handlebars-8607b260.js +++ b/app/src/main/resources/web/assets/handlebars-bc0c539b.js @@ -1 +1 @@ -import{m as i}from"./MonacoEditor.vuevuetypescriptsetuptruelang-1dd835fe.js";import"./index-b6c39163.js";var s=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,o=(t,e,r,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of c(e))!p.call(t,n)&&n!==r&&s(t,n,{get:()=>e[n],enumerable:!(m=d(e,n))||m.enumerable});return t},h=(t,e,r)=>(o(t,e,"default"),r&&o(r,e,"default")),a={};h(a,i);var l=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:a.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{y as conf,k as language}; +import{m as i}from"./MonacoEditor.vuevuetypescriptsetuptruelang-fd107f07.js";import"./index-1dff6785.js";var s=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,o=(t,e,r,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of c(e))!p.call(t,n)&&n!==r&&s(t,n,{get:()=>e[n],enumerable:!(m=d(e,n))||m.enumerable});return t},h=(t,e,r)=>(o(t,e,"default"),r&&o(r,e,"default")),a={};h(a,i);var l=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:a.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{y as conf,k as language}; diff --git a/app/src/main/resources/web/assets/html-ff5bd743.js b/app/src/main/resources/web/assets/html-c7a0cc22.js similarity index 98% rename from app/src/main/resources/web/assets/html-ff5bd743.js rename to app/src/main/resources/web/assets/html-c7a0cc22.js index f6d0d743..b82ed60b 100644 --- a/app/src/main/resources/web/assets/html-ff5bd743.js +++ b/app/src/main/resources/web/assets/html-c7a0cc22.js @@ -1 +1 @@ -import{m as p}from"./MonacoEditor.vuevuetypescriptsetuptruelang-1dd835fe.js";import"./index-b6c39163.js";var d=Object.defineProperty,m=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,a=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of l(e))!c.call(t,r)&&r!==n&&d(t,r,{get:()=>e[r],enumerable:!(o=m(e,r))||o.enumerable});return t},u=(t,e,n)=>(a(t,e,"default"),n&&a(n,e,"default")),i={};u(i,p);var s=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${s.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${s.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},k={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{y as conf,k as language}; +import{m as p}from"./MonacoEditor.vuevuetypescriptsetuptruelang-fd107f07.js";import"./index-1dff6785.js";var d=Object.defineProperty,m=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,a=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of l(e))!c.call(t,r)&&r!==n&&d(t,r,{get:()=>e[r],enumerable:!(o=m(e,r))||o.enumerable});return t},u=(t,e,n)=>(a(t,e,"default"),n&&a(n,e,"default")),i={};u(i,p);var s=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${s.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${s.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},k={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{y as conf,k as language}; diff --git a/app/src/main/resources/web/assets/htmlMode-aaba28d0.js b/app/src/main/resources/web/assets/htmlMode-4a192f0e.js similarity index 99% rename from app/src/main/resources/web/assets/htmlMode-aaba28d0.js rename to app/src/main/resources/web/assets/htmlMode-4a192f0e.js index 67877d17..77e405ca 100644 --- a/app/src/main/resources/web/assets/htmlMode-aaba28d0.js +++ b/app/src/main/resources/web/assets/htmlMode-4a192f0e.js @@ -1,4 +1,4 @@ -var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./MonacoEditor.vuevuetypescriptsetuptruelang-1dd835fe.js";import"./index-b6c39163.js";var Ge=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,Ye=Object.getOwnPropertyNames,Ze=Object.prototype.hasOwnProperty,Y=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Ye(n))!Ze.call(e,t)&&t!==i&&Ge(e,t,{get:()=>n[t],enumerable:!(r=Je(n,t))||r.enumerable});return e},Ke=(e,n,i)=>(Y(e,n,"default"),i&&Y(i,n,"default")),c={};Ke(c,Qe);var et=2*60*1e3,Me=class{constructor(e){E(this,"_defaults");E(this,"_idleCheckInterval");E(this,"_lastUsedTime");E(this,"_configChangeListener");E(this,"_worker");E(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>et&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Z;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Z||(Z={}));var H;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(H||(H={}));var k;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=H.MAX_VALUE),t===Number.MAX_VALUE&&(t=H.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&s.uinteger(t.line)&&s.uinteger(t.character)}e.is=i})(k||(k={}));var p;(function(e){function n(r,t,a,o){if(s.uinteger(r)&&s.uinteger(t)&&s.uinteger(a)&&s.uinteger(o))return{start:k.create(r,t),end:k.create(a,o)};if(k.is(r)&&k.is(t))return{start:r,end:t};throw new Error("Range#create called with invalid arguments["+r+", "+t+", "+a+", "+o+"]")}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&k.is(t.start)&&k.is(t.end)}e.is=i})(p||(p={}));var X;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.range)&&(s.string(t.uri)||s.undefined(t.uri))}e.is=i})(X||(X={}));var K;(function(e){function n(r,t,a,o){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.targetRange)&&s.string(t.targetUri)&&(p.is(t.targetSelectionRange)||s.undefined(t.targetSelectionRange))&&(p.is(t.originSelectionRange)||s.undefined(t.originSelectionRange))}e.is=i})(K||(K={}));var B;(function(e){function n(r,t,a,o){return{red:r,green:t,blue:a,alpha:o}}e.create=n;function i(r){var t=r;return s.numberRange(t.red,0,1)&&s.numberRange(t.green,0,1)&&s.numberRange(t.blue,0,1)&&s.numberRange(t.alpha,0,1)}e.is=i})(B||(B={}));var ee;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){var t=r;return p.is(t.range)&&B.is(t.color)}e.is=i})(ee||(ee={}));var te;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){var t=r;return s.string(t.label)&&(s.undefined(t.textEdit)||C.is(t))&&(s.undefined(t.additionalTextEdits)||s.typedArray(t.additionalTextEdits,C.is))}e.is=i})(te||(te={}));var R;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(R||(R={}));var re;(function(e){function n(r,t,a,o,u){var f={startLine:r,endLine:t};return s.defined(a)&&(f.startCharacter=a),s.defined(o)&&(f.endCharacter=o),s.defined(u)&&(f.kind=u),f}e.create=n;function i(r){var t=r;return s.uinteger(t.startLine)&&s.uinteger(t.startLine)&&(s.undefined(t.startCharacter)||s.uinteger(t.startCharacter))&&(s.undefined(t.endCharacter)||s.uinteger(t.endCharacter))&&(s.undefined(t.kind)||s.string(t.kind))}e.is=i})(re||(re={}));var $;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&X.is(t.location)&&s.string(t.message)}e.is=i})($||($={}));var I;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(I||(I={}));var ne;(function(e){e.Unnecessary=1,e.Deprecated=2})(ne||(ne={}));var ie;(function(e){function n(i){var r=i;return r!=null&&s.string(r.href)}e.is=n})(ie||(ie={}));var U;(function(e){function n(r,t,a,o,u,f){var d={range:r,message:t};return s.defined(a)&&(d.severity=a),s.defined(o)&&(d.code=o),s.defined(u)&&(d.source=u),s.defined(f)&&(d.relatedInformation=f),d}e.create=n;function i(r){var t,a=r;return s.defined(a)&&p.is(a.range)&&s.string(a.message)&&(s.number(a.severity)||s.undefined(a.severity))&&(s.integer(a.code)||s.string(a.code)||s.undefined(a.code))&&(s.undefined(a.codeDescription)||s.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(s.string(a.source)||s.undefined(a.source))&&(s.undefined(a.relatedInformation)||s.typedArray(a.relatedInformation,$.is))}e.is=i})(U||(U={}));var M;(function(e){function n(r,t){for(var a=[],o=2;o0&&(u.arguments=a),u}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.title)&&s.string(t.command)}e.is=i})(M||(M={}));var C;(function(e){function n(a,o){return{range:a,newText:o}}e.replace=n;function i(a,o){return{range:{start:a,end:a},newText:o}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){var o=a;return s.objectLiteral(o)&&s.string(o.newText)&&p.is(o.range)}e.is=t})(C||(C={}));var P;(function(e){function n(r,t,a){var o={label:r};return t!==void 0&&(o.needsConfirmation=t),a!==void 0&&(o.description=a),o}e.create=n;function i(r){var t=r;return t!==void 0&&s.objectLiteral(t)&&s.string(t.label)&&(s.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(s.string(t.description)||t.description===void 0)}e.is=i})(P||(P={}));var m;(function(e){function n(i){var r=i;return typeof r=="string"}e.is=n})(m||(m={}));var x;(function(e){function n(a,o,u){return{range:a,newText:o,annotationId:u}}e.replace=n;function i(a,o,u){return{range:{start:a,end:a},newText:o,annotationId:u}}e.insert=i;function r(a,o){return{range:a,newText:"",annotationId:o}}e.del=r;function t(a){var o=a;return C.is(o)&&(P.is(o.annotationId)||m.is(o.annotationId))}e.is=t})(x||(x={}));var O;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&V.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(O||(O={}));var S;(function(e){function n(r,t,a){var o={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="create"&&s.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(S||(S={}));var T;(function(e){function n(r,t,a,o){var u={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),o!==void 0&&(u.annotationId=o),u}e.create=n;function i(r){var t=r;return t&&t.kind==="rename"&&s.string(t.oldUri)&&s.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(T||(T={}));var F;(function(e){function n(r,t,a){var o={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="delete"&&s.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||s.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||s.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(F||(F={}));var q;(function(e){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(t){return s.string(t.kind)?S.is(t)||T.is(t)||F.is(t):O.is(t)}))}e.is=n})(q||(q={}));var W=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,r){var t,a;if(r===void 0?t=C.insert(n,i):m.is(r)?(a=r,t=x.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.insert(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(n,i,r){var t,a;if(r===void 0?t=C.replace(n,i):m.is(r)?(a=r,t=x.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.replace(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(n,i){var r,t;if(i===void 0?r=C.del(n):m.is(i)?(t=i,r=x.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),r=x.del(n,t)),this.edits.push(r),t!==void 0)return t},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ae=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var r;if(m.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ae(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if(O.is(r)){var t=new W(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=t}})):n.changes&&Object.keys(n.changes).forEach(function(r){var t=new W(n.changes[r]);i._textEditChanges[r]=t})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(V.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),r=new W(t,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var t=[];this._workspaceEdit.changes[n]=t,r=new W(t),this._textEditChanges[n]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ae,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;P.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=S.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=S.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e.prototype.renameFile=function(n,i,r,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;P.is(r)||m.is(r)?a=r:t=r;var o,u;if(a===void 0?o=T.create(n,i,t):(u=m.is(a)?a:this._changeAnnotations.manage(a),o=T.create(n,i,t,u)),this._workspaceEdit.documentChanges.push(o),u!==void 0)return u},e.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;P.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=F.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=F.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e})();var oe;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)}e.is=i})(oe||(oe={}));var se;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.integer(t.version)}e.is=i})(se||(se={}));var V;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&(t.version===null||s.integer(t.version))}e.is=i})(V||(V={}));var ue;(function(e){function n(r,t,a,o){return{uri:r,languageId:t,version:a,text:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.string(t.languageId)&&s.integer(t.version)&&s.string(t.text)}e.is=i})(ue||(ue={}));var L;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(L||(L={}));(function(e){function n(i){var r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(L||(L={}));var Q;(function(e){function n(i){var r=i;return s.objectLiteral(i)&&L.is(r.kind)&&s.string(r.value)}e.is=n})(Q||(Q={}));var l;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(l||(l={}));var G;(function(e){e.PlainText=1,e.Snippet=2})(G||(G={}));var ce;(function(e){e.Deprecated=1})(ce||(ce={}));var de;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){var t=r;return t&&s.string(t.newText)&&p.is(t.insert)&&p.is(t.replace)}e.is=i})(de||(de={}));var ge;(function(e){e.asIs=1,e.adjustIndentation=2})(ge||(ge={}));var fe;(function(e){function n(i){return{label:i}}e.create=n})(fe||(fe={}));var le;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(le||(le={}));var z;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){var t=r;return s.string(t)||s.objectLiteral(t)&&s.string(t.language)&&s.string(t.value)}e.is=i})(z||(z={}));var he;(function(e){function n(i){var r=i;return!!r&&s.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||s.typedArray(r.contents,z.is))&&(i.range===void 0||p.is(i.range))}e.is=n})(he||(he={}));var ve;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(ve||(ve={}));var pe;(function(e){function n(i,r){for(var t=[],a=2;a=0;v--){var w=f[v],b=a.offsetAt(w.range.start),g=a.offsetAt(w.range.end);if(g<=d)u=u.substring(0,b)+w.newText+u.substring(g,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=r;function t(a,o){if(a.length<=1)return a;var u=a.length/2|0,f=a.slice(0,u),d=a.slice(u);t(f,o),t(d,o);for(var v=0,w=0,b=0;vn in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./MonacoEditor.vuevuetypescriptsetuptruelang-fd107f07.js";import"./index-1dff6785.js";var Ge=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,Ye=Object.getOwnPropertyNames,Ze=Object.prototype.hasOwnProperty,Y=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Ye(n))!Ze.call(e,t)&&t!==i&&Ge(e,t,{get:()=>n[t],enumerable:!(r=Je(n,t))||r.enumerable});return e},Ke=(e,n,i)=>(Y(e,n,"default"),i&&Y(i,n,"default")),c={};Ke(c,Qe);var et=2*60*1e3,Me=class{constructor(e){E(this,"_defaults");E(this,"_idleCheckInterval");E(this,"_lastUsedTime");E(this,"_configChangeListener");E(this,"_worker");E(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>et&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Z;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Z||(Z={}));var H;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(H||(H={}));var k;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=H.MAX_VALUE),t===Number.MAX_VALUE&&(t=H.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&s.uinteger(t.line)&&s.uinteger(t.character)}e.is=i})(k||(k={}));var p;(function(e){function n(r,t,a,o){if(s.uinteger(r)&&s.uinteger(t)&&s.uinteger(a)&&s.uinteger(o))return{start:k.create(r,t),end:k.create(a,o)};if(k.is(r)&&k.is(t))return{start:r,end:t};throw new Error("Range#create called with invalid arguments["+r+", "+t+", "+a+", "+o+"]")}e.create=n;function i(r){var t=r;return s.objectLiteral(t)&&k.is(t.start)&&k.is(t.end)}e.is=i})(p||(p={}));var X;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.range)&&(s.string(t.uri)||s.undefined(t.uri))}e.is=i})(X||(X={}));var K;(function(e){function n(r,t,a,o){return{targetUri:r,targetRange:t,targetSelectionRange:a,originSelectionRange:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&p.is(t.targetRange)&&s.string(t.targetUri)&&(p.is(t.targetSelectionRange)||s.undefined(t.targetSelectionRange))&&(p.is(t.originSelectionRange)||s.undefined(t.originSelectionRange))}e.is=i})(K||(K={}));var B;(function(e){function n(r,t,a,o){return{red:r,green:t,blue:a,alpha:o}}e.create=n;function i(r){var t=r;return s.numberRange(t.red,0,1)&&s.numberRange(t.green,0,1)&&s.numberRange(t.blue,0,1)&&s.numberRange(t.alpha,0,1)}e.is=i})(B||(B={}));var ee;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){var t=r;return p.is(t.range)&&B.is(t.color)}e.is=i})(ee||(ee={}));var te;(function(e){function n(r,t,a){return{label:r,textEdit:t,additionalTextEdits:a}}e.create=n;function i(r){var t=r;return s.string(t.label)&&(s.undefined(t.textEdit)||C.is(t))&&(s.undefined(t.additionalTextEdits)||s.typedArray(t.additionalTextEdits,C.is))}e.is=i})(te||(te={}));var R;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(R||(R={}));var re;(function(e){function n(r,t,a,o,u){var f={startLine:r,endLine:t};return s.defined(a)&&(f.startCharacter=a),s.defined(o)&&(f.endCharacter=o),s.defined(u)&&(f.kind=u),f}e.create=n;function i(r){var t=r;return s.uinteger(t.startLine)&&s.uinteger(t.startLine)&&(s.undefined(t.startCharacter)||s.uinteger(t.startCharacter))&&(s.undefined(t.endCharacter)||s.uinteger(t.endCharacter))&&(s.undefined(t.kind)||s.string(t.kind))}e.is=i})(re||(re={}));var $;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&X.is(t.location)&&s.string(t.message)}e.is=i})($||($={}));var I;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(I||(I={}));var ne;(function(e){e.Unnecessary=1,e.Deprecated=2})(ne||(ne={}));var ie;(function(e){function n(i){var r=i;return r!=null&&s.string(r.href)}e.is=n})(ie||(ie={}));var U;(function(e){function n(r,t,a,o,u,f){var d={range:r,message:t};return s.defined(a)&&(d.severity=a),s.defined(o)&&(d.code=o),s.defined(u)&&(d.source=u),s.defined(f)&&(d.relatedInformation=f),d}e.create=n;function i(r){var t,a=r;return s.defined(a)&&p.is(a.range)&&s.string(a.message)&&(s.number(a.severity)||s.undefined(a.severity))&&(s.integer(a.code)||s.string(a.code)||s.undefined(a.code))&&(s.undefined(a.codeDescription)||s.string((t=a.codeDescription)===null||t===void 0?void 0:t.href))&&(s.string(a.source)||s.undefined(a.source))&&(s.undefined(a.relatedInformation)||s.typedArray(a.relatedInformation,$.is))}e.is=i})(U||(U={}));var M;(function(e){function n(r,t){for(var a=[],o=2;o0&&(u.arguments=a),u}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.title)&&s.string(t.command)}e.is=i})(M||(M={}));var C;(function(e){function n(a,o){return{range:a,newText:o}}e.replace=n;function i(a,o){return{range:{start:a,end:a},newText:o}}e.insert=i;function r(a){return{range:a,newText:""}}e.del=r;function t(a){var o=a;return s.objectLiteral(o)&&s.string(o.newText)&&p.is(o.range)}e.is=t})(C||(C={}));var P;(function(e){function n(r,t,a){var o={label:r};return t!==void 0&&(o.needsConfirmation=t),a!==void 0&&(o.description=a),o}e.create=n;function i(r){var t=r;return t!==void 0&&s.objectLiteral(t)&&s.string(t.label)&&(s.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(s.string(t.description)||t.description===void 0)}e.is=i})(P||(P={}));var m;(function(e){function n(i){var r=i;return typeof r=="string"}e.is=n})(m||(m={}));var x;(function(e){function n(a,o,u){return{range:a,newText:o,annotationId:u}}e.replace=n;function i(a,o,u){return{range:{start:a,end:a},newText:o,annotationId:u}}e.insert=i;function r(a,o){return{range:a,newText:"",annotationId:o}}e.del=r;function t(a){var o=a;return C.is(o)&&(P.is(o.annotationId)||m.is(o.annotationId))}e.is=t})(x||(x={}));var O;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&V.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(O||(O={}));var S;(function(e){function n(r,t,a){var o={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="create"&&s.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(S||(S={}));var T;(function(e){function n(r,t,a,o){var u={kind:"rename",oldUri:r,newUri:t};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),o!==void 0&&(u.annotationId=o),u}e.create=n;function i(r){var t=r;return t&&t.kind==="rename"&&s.string(t.oldUri)&&s.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(T||(T={}));var F;(function(e){function n(r,t,a){var o={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(o.options=t),a!==void 0&&(o.annotationId=a),o}e.create=n;function i(r){var t=r;return t&&t.kind==="delete"&&s.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||s.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||s.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(F||(F={}));var q;(function(e){function n(i){var r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(t){return s.string(t.kind)?S.is(t)||T.is(t)||F.is(t):O.is(t)}))}e.is=n})(q||(q={}));var W=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,r){var t,a;if(r===void 0?t=C.insert(n,i):m.is(r)?(a=r,t=x.insert(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.insert(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.replace=function(n,i,r){var t,a;if(r===void 0?t=C.replace(n,i):m.is(r)?(a=r,t=x.replace(n,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),t=x.replace(n,i,a)),this.edits.push(t),a!==void 0)return a},e.prototype.delete=function(n,i){var r,t;if(i===void 0?r=C.del(n):m.is(i)?(t=i,r=x.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),r=x.del(n,t)),this.edits.push(r),t!==void 0)return t},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ae=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var r;if(m.is(n)?r=n:(r=this.nextId(),i=n),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=i,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ae(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(r){if(O.is(r)){var t=new W(r.edits,i._changeAnnotations);i._textEditChanges[r.textDocument.uri]=t}})):n.changes&&Object.keys(n.changes).forEach(function(r){var t=new W(n.changes[r]);i._textEditChanges[r]=t})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(V.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},r=this._textEditChanges[i.uri];if(!r){var t=[],a={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(a),r=new W(t,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[n];if(!r){var t=[];this._workspaceEdit.changes[n]=t,r=new W(t),this._textEditChanges[n]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ae,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;P.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=S.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=S.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e.prototype.renameFile=function(n,i,r,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;P.is(r)||m.is(r)?a=r:t=r;var o,u;if(a===void 0?o=T.create(n,i,t):(u=m.is(a)?a:this._changeAnnotations.manage(a),o=T.create(n,i,t,u)),this._workspaceEdit.documentChanges.push(o),u!==void 0)return u},e.prototype.deleteFile=function(n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;P.is(i)||m.is(i)?t=i:r=i;var a,o;if(t===void 0?a=F.create(n,r):(o=m.is(t)?t:this._changeAnnotations.manage(t),a=F.create(n,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e})();var oe;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)}e.is=i})(oe||(oe={}));var se;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.integer(t.version)}e.is=i})(se||(se={}));var V;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&(t.version===null||s.integer(t.version))}e.is=i})(V||(V={}));var ue;(function(e){function n(r,t,a,o){return{uri:r,languageId:t,version:a,text:o}}e.create=n;function i(r){var t=r;return s.defined(t)&&s.string(t.uri)&&s.string(t.languageId)&&s.integer(t.version)&&s.string(t.text)}e.is=i})(ue||(ue={}));var L;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(L||(L={}));(function(e){function n(i){var r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(L||(L={}));var Q;(function(e){function n(i){var r=i;return s.objectLiteral(i)&&L.is(r.kind)&&s.string(r.value)}e.is=n})(Q||(Q={}));var l;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(l||(l={}));var G;(function(e){e.PlainText=1,e.Snippet=2})(G||(G={}));var ce;(function(e){e.Deprecated=1})(ce||(ce={}));var de;(function(e){function n(r,t,a){return{newText:r,insert:t,replace:a}}e.create=n;function i(r){var t=r;return t&&s.string(t.newText)&&p.is(t.insert)&&p.is(t.replace)}e.is=i})(de||(de={}));var ge;(function(e){e.asIs=1,e.adjustIndentation=2})(ge||(ge={}));var fe;(function(e){function n(i){return{label:i}}e.create=n})(fe||(fe={}));var le;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(le||(le={}));var z;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){var t=r;return s.string(t)||s.objectLiteral(t)&&s.string(t.language)&&s.string(t.value)}e.is=i})(z||(z={}));var he;(function(e){function n(i){var r=i;return!!r&&s.objectLiteral(r)&&(Q.is(r.contents)||z.is(r.contents)||s.typedArray(r.contents,z.is))&&(i.range===void 0||p.is(i.range))}e.is=n})(he||(he={}));var ve;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(ve||(ve={}));var pe;(function(e){function n(i,r){for(var t=[],a=2;a=0;v--){var w=f[v],b=a.offsetAt(w.range.start),g=a.offsetAt(w.range.end);if(g<=d)u=u.substring(0,b)+w.newText+u.substring(g,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=r;function t(a,o){if(a.length<=1)return a;var u=a.length/2|0,f=a.slice(0,u),d=a.slice(u);t(f,o),t(d,o);for(var v=0,w=0,b=0;v0&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},e.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),r=0,t=i.length;if(t===0)return k.create(0,n);for(;rn?t=a:r=a+1}var o=r-1;return k.create(o,n-i[o])},e.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var r=i[n.line],t=n.line+1"u"}e.undefined=r;function t(g){return g===!0||g===!1}e.boolean=t;function a(g){return n.call(g)==="[object String]"}e.string=a;function o(g){return n.call(g)==="[object Number]"}e.number=o;function u(g,y,N){return n.call(g)==="[object Number]"&&y<=g&&g<=N}e.numberRange=u;function f(g){return n.call(g)==="[object Number]"&&-2147483648<=g&&g<=2147483647}e.integer=f;function d(g){return n.call(g)==="[object Number]"&&0<=g&&g<=2147483647}e.uinteger=d;function v(g){return n.call(g)==="[object Function]"}e.func=v;function w(g){return g!==null&&typeof g=="object"}e.objectLiteral=w;function b(g,y){return Array.isArray(g)&&g.every(y)}e.typedArray=b})(s||(s={}));var mt=class{constructor(e,n,i){E(this,"_disposables",[]);E(this,"_listener",Object.create(null));this._languageId=e,this._worker=n;const r=a=>{let o=a.getLanguageId();if(o!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,o),500)}),this._doValidate(a.uri,o)},t=a=>{c.editor.setModelMarkers(a,this._languageId,[]);let o=a.uri.toString(),u=this._listener[o];u&&(u.dispose(),delete this._listener[o])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(t)),this._disposables.push(c.editor.onDidChangeModelLanguage(a=>{t(a.model),r(a.model)})),this._disposables.push(i(a=>{c.editor.getModels().forEach(o=>{o.getLanguageId()===this._languageId&&(t(o),r(o))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(t);for(let a in this._listener)this._listener[a].dispose()}}),c.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(a=>nt(e,a));let t=c.editor.getModel(e);t&&t.getLanguageId()===n&&c.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function rt(e){switch(e){case I.Error:return c.MarkerSeverity.Error;case I.Warning:return c.MarkerSeverity.Warning;case I.Information:return c.MarkerSeverity.Info;case I.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function nt(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:rt(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var it=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doComplete(t.toString(),A(n))).then(a=>{if(!a)return;const o=e.getWordUntilPosition(n),u=new c.Range(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn),f=a.items.map(d=>{const v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:st(d.command),range:u,kind:ot(d.kind)};return d.textEdit&&(at(d.textEdit)?v.range={insert:_(d.textEdit.insert),replace:_(d.textEdit.replace)}:v.range=_(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(j)),d.insertTextFormat===G.Snippet&&(v.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:f}})}};function A(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Se(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function _(e){if(e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function at(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function ot(e){const n=c.languages.CompletionItemKind;switch(e){case l.Text:return n.Text;case l.Method:return n.Method;case l.Function:return n.Function;case l.Constructor:return n.Constructor;case l.Field:return n.Field;case l.Variable:return n.Variable;case l.Class:return n.Class;case l.Interface:return n.Interface;case l.Module:return n.Module;case l.Property:return n.Property;case l.Unit:return n.Unit;case l.Value:return n.Value;case l.Enum:return n.Enum;case l.Keyword:return n.Keyword;case l.Snippet:return n.Snippet;case l.Color:return n.Color;case l.File:return n.File;case l.Reference:return n.Reference}return n.Property}function j(e){if(e)return{range:_(e.range),text:e.newText}}function st(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Te=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),A(n))).then(t=>{if(t)return{range:_(t.range),contents:ct(t.contents)}})}};function ut(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Re(e){return typeof e=="string"?{value:e}:ut(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` `+e.value+"\n```\n"}}function ct(e){if(e)return Array.isArray(e)?e.map(Re):[Re(e)]}var Fe=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),A(n))).then(t=>{if(t)return t.map(a=>({range:_(a.range),kind:dt(a.kind)}))})}};function dt(e){switch(e){case D.Read:return c.languages.DocumentHighlightKind.Read;case D.Write:return c.languages.DocumentHighlightKind.Write;case D.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var _t=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),A(n))).then(t=>{if(t)return[Le(t)]})}};function Le(e){return{uri:c.Uri.parse(e.uri),range:_(e.range)}}var wt=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.findReferences(t.toString(),A(n))).then(a=>{if(a)return a.map(Le)})}},je=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.doRename(t.toString(),A(n),i)).then(a=>gt(a))}};function gt(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=c.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:_(t.range),text:t.newText}})}return{edits:n}}var Ne=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(r)return r.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:ft(t.kind),range:_(t.location.range),selectionRange:_(t.location.range),tags:[]}))})}};function ft(e){let n=c.languages.SymbolKind;switch(e){case h.File:return n.Array;case h.Module:return n.Module;case h.Namespace:return n.Namespace;case h.Package:return n.Package;case h.Class:return n.Class;case h.Method:return n.Method;case h.Property:return n.Property;case h.Field:return n.Field;case h.Constructor:return n.Constructor;case h.Enum:return n.Enum;case h.Interface:return n.Interface;case h.Function:return n.Function;case h.Variable:return n.Variable;case h.Constant:return n.Constant;case h.String:return n.String;case h.Number:return n.Number;case h.Boolean:return n.Boolean;case h.Array:return n.Array}return n.Function}var We=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(r)return{links:r.map(t=>({range:_(t.range),url:t.target}))}})}},He=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Oe(n)).then(a=>{if(!(!a||a.length===0))return a.map(j)}))}},Ue=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(a=>a.format(t.toString(),Se(n),Oe(i)).then(o=>{if(!(!o||o.length===0))return o.map(j)}))}};function Oe(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var kt=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(r)return r.map(t=>({color:t.color,range:_(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Se(n.range))).then(t=>{if(t)return t.map(a=>{let o={label:a.label};return a.textEdit&&(o.textEdit=j(a.textEdit)),a.additionalTextEdits&&(o.additionalTextEdits=a.additionalTextEdits.map(j)),o})})}},Ve=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(t)return t.map(a=>{const o={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(o.kind=lt(a.kind)),o})})}};function lt(e){switch(e){case R.Comment:return c.languages.FoldingRangeKind.Comment;case R.Imports:return c.languages.FoldingRangeKind.Imports;case R.Region:return c.languages.FoldingRangeKind.Region}}var ze=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(A))).then(t=>{if(t)return t.map(a=>{const o=[];for(;a;)o.push({range:_(a.range)}),a=a.parent;return o})})}},Xe=class extends it{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function bt(e){const n=new Me(e),i=(...t)=>n.getLanguageServiceWorker(...t);let r=e.languageId;c.languages.registerCompletionItemProvider(r,new Xe(i)),c.languages.registerHoverProvider(r,new Te(i)),c.languages.registerDocumentHighlightProvider(r,new Fe(i)),c.languages.registerLinkProvider(r,new We(i)),c.languages.registerFoldingRangeProvider(r,new Ve(i)),c.languages.registerDocumentSymbolProvider(r,new Ne(i)),c.languages.registerSelectionRangeProvider(r,new ze(i)),c.languages.registerRenameProvider(r,new je(i)),r==="html"&&(c.languages.registerDocumentFormattingEditProvider(r,new He(i)),c.languages.registerDocumentRangeFormattingEditProvider(r,new Ue(i)))}function Et(e){const n=[],i=[],r=new Me(e);n.push(r);const t=(...o)=>r.getLanguageServiceWorker(...o);function a(){const{languageId:o,modeConfiguration:u}=e;Be(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(o,new Xe(t))),u.hovers&&i.push(c.languages.registerHoverProvider(o,new Te(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(o,new Fe(t))),u.links&&i.push(c.languages.registerLinkProvider(o,new We(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(o,new Ne(t))),u.rename&&i.push(c.languages.registerRenameProvider(o,new je(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(o,new Ve(t))),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(o,new ze(t))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(o,new He(t))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(o,new Ue(t)))}return a(),n.push(De(i)),De(n)}function De(e){return{dispose:()=>Be(e)}}function Be(e){for(;e.length;)e.pop().dispose()}export{it as CompletionAdapter,_t as DefinitionAdapter,mt as DiagnosticsAdapter,kt as DocumentColorAdapter,He as DocumentFormattingEditProvider,Fe as DocumentHighlightAdapter,We as DocumentLinkAdapter,Ue as DocumentRangeFormattingEditProvider,Ne as DocumentSymbolAdapter,Ve as FoldingRangeAdapter,Te as HoverAdapter,wt as ReferenceAdapter,je as RenameAdapter,ze as SelectionRangeAdapter,Me as WorkerManager,A as fromPosition,Se as fromRange,Et as setupMode,bt as setupMode1,_ as toRange,j as toTextEdit}; diff --git a/app/src/main/resources/web/assets/index-91412b8b.css b/app/src/main/resources/web/assets/index-015d7a00.css similarity index 99% rename from app/src/main/resources/web/assets/index-91412b8b.css rename to app/src/main/resources/web/assets/index-015d7a00.css index 08f87c1b..51a6a35b 100644 --- a/app/src/main/resources/web/assets/index-91412b8b.css +++ b/app/src/main/resources/web/assets/index-015d7a00.css @@ -1 +1 @@ -.top-error[data-v-aa789496]{background-color:var(--md-sys-color-error);color:var(--md-sys-color-on-error);padding:8px;font-size:.8rem;display:flex;align-items:center;justify-content:center}.popper-arrow[data-v-61211ab1],.popper-arrow[data-v-61211ab1]:before{transition:background .25s ease-in-out;position:absolute;width:9px;height:9px;box-sizing:border-box;background:var(--md-sys-color-surface)}.popper-arrow[data-v-61211ab1]{visibility:hidden}.popper-arrow[data-v-61211ab1]:before{visibility:visible;content:"";transform:rotate(45deg)}.popper[data-popper-placement^=top]>.popper-arrow[data-v-61211ab1]{bottom:-5px}.popper[data-popper-placement^=top]>.popper-arrow[data-v-61211ab1]:before{border-right:1px solid var(--md-sys-color-outline);border-bottom:1px solid var(--md-sys-color-outline)}.popper[data-popper-placement^=bottom]>.popper-arrow[data-v-61211ab1]{top:-5px}.popper[data-popper-placement^=bottom]>.popper-arrow[data-v-61211ab1]:before{border-left:1px solid var(--md-sys-color-outline);border-top:1px solid var(--md-sys-color-outline)}.popper[data-popper-placement^=left]>.popper-arrow[data-v-61211ab1]{right:-5px}.popper[data-popper-placement^=left]>.popper-arrow[data-v-61211ab1]:before{border-right:1px solid var(--md-sys-color-outline);border-top:1px solid var(--md-sys-color-outline)}.popper[data-popper-placement^=right]>.popper-arrow[data-v-61211ab1]{left:-5px}.inline-block[data-v-da4ddbfd]{display:inline-block}.popper[data-v-da4ddbfd]{transition:background .25s ease-in-out;box-shadow:var(--md-sys-color-shadow) 0 1px 2px 0;background-color:var(--md-sys-color-surface-container);border-radius:4px;z-index:var(--41543257);overflow-y:auto}.fade-enter-active[data-v-da4ddbfd],.fade-leave-active[data-v-da4ddbfd]{transition:opacity .2s ease}.fade-enter-from[data-v-da4ddbfd],.fade-leave-to[data-v-da4ddbfd]{opacity:0}.v-on-error[data-v-271aa27d]{position:absolute;top:50%;left:50%}.toolbar[data-v-271aa27d]{display:flex;flex-direction:row;padding-block:8px;align-items:center;background:var(--md-sys-color-surface);z-index:1;position:static;width:100%;box-sizing:border-box;grid-area:toolbar}.toolbar .source-name[data-v-271aa27d]{flex:1}.toolbar .source-name .icon-button[data-v-271aa27d]{margin-inline-start:16px}.toolbar md-outlined-button[data-v-271aa27d],.toolbar .icon-button[data-v-271aa27d]{margin-inline-end:16px}.content[data-v-271aa27d]{grid-area:content;position:relative;height:calc(100vh - 56px)}.info[data-v-271aa27d]{grid-area:info;width:280px;height:100vh;box-sizing:border-box;background:var(--md-sys-color-surface-container);overflow-y:auto;z-index:1}.info .top-title[data-v-271aa27d]{height:56px}.lightbox[data-v-271aa27d]{min-width:var(--screen-min-width);background:var(--md-sys-color-surface);overflow:hidden}.layout[data-v-271aa27d]{display:grid;grid-template-areas:"toolbar info" "content info";grid-template-columns:1fr auto;grid-template-rows:auto 1fr}.v-img-wrapper[data-v-271aa27d]{-webkit-user-select:none;user-select:none;margin:0;position:absolute;top:50%;left:50%;transform:translate(-50% -50%);transition:.3s linear;will-change:transform opacity}.v-img-wrapper img[data-v-271aa27d]{-webkit-user-select:none;user-select:none;max-width:90vw;max-height:90vh;display:block;position:relative}@media (max-width: 750px){.v-img-wrapper img[data-v-271aa27d]{max-width:95vw;max-height:95vh}}.v-video-wrapper[data-v-271aa27d],.v-audio-wrapper[data-v-271aa27d]{display:flex;justify-content:center;align-items:center;flex-direction:column;height:100%}.v-video-wrapper audio[data-v-271aa27d],.v-audio-wrapper audio[data-v-271aa27d]{width:400px}.v-video-wrapper video[data-v-271aa27d],.v-audio-wrapper video[data-v-271aa27d]{height:95%;max-width:88%}.btn-prev[data-v-271aa27d],.btn-next[data-v-271aa27d]{-webkit-user-select:none;user-select:none;position:absolute;top:50%;transform:translateY(-50%);cursor:pointer;opacity:.6;font-size:4rem;transition:.15s linear;outline:none;z-index:1}.btn-prev[data-v-271aa27d]:hover,.btn-next[data-v-271aa27d]:hover{opacity:1}.btn-next[data-v-271aa27d]{right:12px}.btn-prev[data-v-271aa27d]{left:12px}.notifications[data-v-175f4042]{width:var(--quick-content-width);flex:0 0 auto;display:flex;flex-flow:column;height:100vh}.items-container[data-v-175f4042]{overflow-y:scroll;display:flex;flex:1 1 auto;background-color:var(--md-sys-color-surface);border-top-left-radius:var(--plain-shape-l)}.top-title[data-v-175f4042]{background-color:var(--md-sys-color-surface-container);height:64px}.top-title .icon-button[data-v-175f4042]{margin-inline-start:auto}.list-items .item[data-v-175f4042]:first-child{margin-block-start:8px}.list-items .item[data-v-175f4042]:last-child{margin-block-end:8px}.list-items .title img[data-v-175f4042]{margin-inline-end:8px}.list-items .time[data-v-175f4042]{color:var(--md-sys-color-secondary);font-size:.75rem;margin-inline-start:8px;word-break:keep-all;white-space:nowrap}.list-items .name[data-v-175f4042]{word-break:keep-all;white-space:nowrap;text-overflow:ellipsis}.alert-warning[data-v-175f4042]{margin-block-end:16px;margin-inline-end:16px}.tasks[data-v-424aaeea],.audio-player[data-v-137f137c]{background-color:var(--md-sys-color-surface);overflow-x:hidden;overflow-y:auto;width:var(--quick-content-width);height:100%}.list-items .item[data-v-137f137c]{cursor:pointer}.play-title[data-v-137f137c]{text-align:center;padding:16px;white-space:pre-wrap;font-size:.825rem}.buttons[data-v-137f137c]{display:flex;align-items:center;justify-content:space-around;padding:8px}.mode[data-v-137f137c]{margin:0 32px}.audio[data-v-137f137c]{display:block;width:100%}.image-container .item[data-v-578f7f0f]{width:calc(33.33% - 2px);margin:1px}.file-item[data-v-5f17c344]{padding:0 8px 8px;flex-flow:row;display:flex;justify-content:space-between;text-decoration:none}.file-item[data-v-5f17c344]:first-child{padding-top:8px}.file-item .left[data-v-5f17c344]{display:flex;flex-flow:column;word-break:break-all}.file-item .left .info[data-v-5f17c344]{margin-top:4px;color:var(--md-sys-color-secondary);font-size:.75rem}.file-item img[data-v-5f17c344]{display:flex;width:50px;height:50px;margin-left:4px}.chat[data-v-d30ba72e]{width:var(--quick-content-width);flex:0 0 auto;display:flex;flex-flow:column;height:100vh}.top-title[data-v-d30ba72e]{background-color:var(--md-sys-color-surface-container);height:64px}.chat-input[data-v-d30ba72e]{background-color:var(--md-sys-color-surface);padding:8px 16px}.chat-input .btns[data-v-d30ba72e]{display:flex;flex-direction:row}.chat-input .btns .icon-button+.icon-button[data-v-d30ba72e]{margin-inline-start:8px}.chat-input .btns .btn-send-container[data-v-d30ba72e]{flex:1;display:flex;justify-content:end}.chat-input .textarea-wrapper[data-v-d30ba72e]{position:relative;padding-block-end:8px}.chat-input .textarea-wrapper .textarea[data-v-d30ba72e]{display:block}.drag-mask[data-v-d30ba72e]{position:absolute;top:0;left:0;right:0;bottom:8px;background-color:#00000080;color:#fff;font-size:1.2rem;display:flex;justify-content:center;align-items:center;border-radius:4px;border:2px dashed var(--md-sys-color-primary)}.chat-items-container[data-v-d30ba72e]{overflow-y:scroll;display:flex;flex:1 1 auto;background-color:var(--md-sys-color-surface);border-top-left-radius:var(--plain-shape-l)}.chat-items-container>div[data-v-d30ba72e]{width:100%}.chat-content[data-v-d30ba72e]{margin-top:8px}.theme-changer[data-v-2b618255]{position:relative;display:flex;flex-direction:column;margin:var(--plain-spacing-m) var(--plain-spacing-l)}.theme-changer>*[data-v-2b618255]{margin-block-end:var(--plain-spacing-l)}.theme-changer>*[data-v-2b618255]:last-child{margin-block-end:0}input[data-v-2b618255]{border:none;background:none}#hex[data-v-2b618255]{border-radius:var(--plain-shape-l);background-color:var(--md-sys-color-surface-variant);color:var(--md-sys-color-on-surface-variant);--md-slider-inactive-track-color: var(--md-sys-color-on-surface-variant);display:flex;padding:12px 24px;align-items:center}#hex .label[data-v-2b618255]{flex-grow:1}#hex .input-wrapper[data-v-2b618255]{width:48px;height:48px;box-sizing:border-box;border:1px solid var(--md-sys-color-on-secondary-container);position:relative}#hex .input-wrapper[data-v-2b618255],#hex md-focus-ring[data-v-2b618255]{border-radius:50%}.overflow[data-v-2b618255]{width:100%;height:100%;overflow:hidden;border-radius:inherit;display:flex;align-items:center;justify-content:center}#hex input[data-v-2b618255]{min-width:200%;min-height:200%}.h-action[data-v-ac6560d3]{padding:0 8px}.context-menu[data-v-06bccd9a]{display:inline-block;overflow:visible;position:absolute;box-shadow:var(--md-sys-color-shadow) 0 1px 2px 0;background-color:var(--md-sys-color-surface-container);border-radius:4px;opacity:0}.context-menu.ready[data-v-06bccd9a]{opacity:1}.context-menu-items[data-v-06bccd9a]{position:relative;overflow-y:auto;border-radius:4px;max-height:60vh;min-width:200px}.context-menu-updown[data-v-06bccd9a]{position:absolute;left:0;right:0;height:10px;box-shadow:var(--md-sys-color-shadow) 0 1px 2px 0;background-color:var(--md-sys-color-surface-container);border-radius:4px;-webkit-user-select:none;user-select:none;cursor:pointer}.context-menu-updown .right-arrow[data-v-06bccd9a]{display:inline-block;position:absolute;height:12px;left:50%;top:0}.context-menu-updown.up[data-v-06bccd9a]{top:0}.context-menu-updown.down[data-v-06bccd9a]{bottom:0}.context-menu-updown.up .right-arrow[data-v-06bccd9a]{transform:translate(-50%) rotate(270deg)}.context-menu-updown.down .right-arrow[data-v-06bccd9a]{transform:translate(-50%) rotate(90deg)}.right-arrow[data-v-06bccd9a]{width:14px;height:14px;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjI1MjA3MjM5MzE1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjIxMjYzIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjUwIiBoZWlnaHQ9IjUwIj48ZGVmcz48c3R5bGUgdHlwZT0idGV4dC9jc3MiPjwvc3R5bGU+PC9kZWZzPjxwYXRoIGQ9Ik0zMDcuMDE4IDQ5LjQ0NWMxMS41MTcgMCAyMy4wMzIgNC4zOTQgMzEuODE5IDEzLjE4TDc1Ni40MDQgNDgwLjE4YzguNDM5IDguNDM4IDEzLjE4MSAxOS44ODUgMTMuMTgxIDMxLjgycy00Ljc0MSAyMy4zOC0xMy4xODEgMzEuODJMMzM4LjgzOCA5NjEuMzc2Yy0xNy41NzQgMTcuNTczLTQ2LjA2NSAxNy41NzMtNjMuNjQtMC4wMDEtMTcuNTczLTE3LjU3My0xNy41NzMtNDYuMDY1IDAuMDAxLTYzLjY0TDY2MC45NDQgNTEyIDI3NS4xOTggMTI2LjI2NWMtMTcuNTc0LTE3LjU3My0xNy41NzQtNDYuMDY2LTAuMDAxLTYzLjY0QzI4My45ODUgNTMuODM5IDI5NS41MDEgNDkuNDQ1IDMwNy4wMTggNDkuNDQ1eiIgcC1pZD0iMjEyNjQiPjwvcGF0aD48L3N2Zz4=);background-size:12px;background-repeat:no-repeat}.layout[data-v-38cc53e3]{display:grid;grid-template-areas:"head head quick-content" "page-content quick quick-content";grid-template-columns:1fr auto auto;grid-template-rows:auto 1fr;height:100vh;min-width:var(--screen-min-width)}.quick[data-v-38cc53e3]{display:flex;flex-direction:column;height:100%;position:relative;width:56px;grid-area:quick}.quick .q-action[data-v-38cc53e3]{margin:8px}.quick-content[data-v-38cc53e3]{grid-area:quick-content;overflow:hidden}header[data-v-38cc53e3]{height:var(--plain-top-app-bar-height);grid-area:head;inset:0 0 auto 0;display:flex;box-sizing:border-box;color:var(--md-sys-color-on-surface)}.tab-items[data-v-38cc53e3]{display:flex;white-space:nowrap}.tab-items .icon-button *[data-v-38cc53e3]:is(svg){width:12px;height:12px}.tab-item[data-v-38cc53e3]{outline:none;cursor:pointer;box-sizing:border-box;-webkit-user-select:none;user-select:none;text-align:center;border-bottom:3px solid transparent}.tab-item.active[data-v-38cc53e3]{border-color:var(--md-sys-color-primary);color:var(--md-sys-color-primary)}.tab-item:first-child span[data-v-38cc53e3]{padding-inline-end:16px}.tab-item span[data-v-38cc53e3]{padding:8px 8px 8px 16px;display:inline-block}.tab-item .tab-icon[data-v-38cc53e3]{margin-inline:8px}.default-content[data-v-38cc53e3]{width:100%;display:flex;align-items:center}.default-content .start[data-v-38cc53e3]{flex:1;box-sizing:border-box;overflow:auto;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none}.default-content .start[data-v-38cc53e3]::-webkit-scrollbar{display:none}.default-content .end[data-v-38cc53e3]{margin-left:auto;display:flex}.page-content[data-v-38cc53e3]{grid-area:page-content;height:calc(100vh - 64px)}.alert-danger[data-v-38cc53e3]{width:360px;margin:100px auto;text-align:center}@font-face{font-family:Google Sans;font-style:normal;font-weight:400;font-display:swap;src:url(/assets/regular.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Google Sans Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/assets/mono.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{font-family:Google Sans,Roboto,system-ui;--md-ref-typeface-brand: "Google Sans", Roboto, system-ui;--md-ref-typeface-plain: "Google Sans", Roboto, system-ui;--md-sys-color-warning-container: #fff3cd;--md-sys-color-on-warning-container: #664d03;background-color:var(--md-sys-color-surface-container);color:var(--md-sys-color-on-surface);--plain-display-xl-font-size: 88px;--plain-display-m-font-size: 45px;--plain-title-l-font-size: 22px;--plain-title-m-font-size: 16px;--plain-title-s-font-size: 14px;--plain-body-l-font-size: 16px;--plain-body-m-font-size: 14px;--plain-headline-s-font-size: 24px;--plain-label-s-font-size: 11px;--plain-shape-xl: 28px;--plain-shape-l: 16px;--plain-shape-m: 12px;--plain-shape-s: 8px;--plain-shape-xs: 4px;--plain-spacing-xl: 28px;--plain-spacing-l: 16px;--plain-spacing-m: 12px;--plain-spacing-s: 8px;--plain-top-app-bar-height: calc(48px + 2 * var(--plain-spacing-s));--_scrollbar-width: 8px;--border-radius-sm: 4px;--screen-min-width: 992px;--quick-content-width: 330px;scrollbar-color:var(--md-sys-color-primary) transparent;scrollbar-width:thin;scroll-padding-block-start:calc(var(--plain-top-app-bar-height) + var(--plain-top-app-bar-padding-block) * 2)}::-webkit-scrollbar{background-color:transparent;width:var(--_scrollbar-width)}::-webkit-scrollbar-thumb{background-color:var(--md-sys-color-primary);border-radius:calc(var(--_scrollbar-width) / 2)}::slotted(*){--md-list-item-container-shape: var(--plain-shape-xl);--md-focus-ring-shape: var(--plain-shape-xl)}@media screen and (max-width: 600px){:root{--plain-display-xl-font-size: 55px;--plain-title-l-font-size: 16px;--plain-body-l-font-size: 14px;--plain-body-m-font-size: 12px;--plain-spacing-xl: 16px;--plain-spacing-l: 12px}}html{width:100%;height:100%;margin:0}body{margin:0;line-height:1.5}a{color:var(--md-sys-color-primary);text-decoration:none}a:hover,a:focus-visible{text-decoration:underline}pre{font-family:inherit;line-height:1.5;margin:0;white-space:pre-wrap;font-size:1rem;word-break:break-all}.tooltip{position:absolute;text-align:center;background-color:var(--md-sys-color-on-surface);color:var(--md-sys-color-surface);padding:4px 8px;border-radius:4px;font-size:.8rem;box-shadow:0 2px 4px #0003;z-index:9999}.nowrap{word-break:keep-all;white-space:nowrap}:root{--md-breakpoint-xs: 0;--md-breakpoint-sm: 576px;--md-breakpoint-md: 768px;--md-breakpoint-lg: 992px;--md-breakpoint-xl: 1200px;--md-breakpoint-xxl: 1400px}.grid{display:grid;grid-template-rows:repeat(var(--md-rows, 1),1fr);grid-template-columns:repeat(var(--md-columns, 12),1fr);gap:var(--md-gap, 1.5rem)}.grid .g-col-1{grid-column:auto/span 1}.grid .g-col-2{grid-column:auto/span 2}.grid .g-col-3{grid-column:auto/span 3}.grid .g-col-4{grid-column:auto/span 4}.grid .g-col-5{grid-column:auto/span 5}.grid .g-col-6{grid-column:auto/span 6}.grid .g-col-7{grid-column:auto/span 7}.grid .g-col-8{grid-column:auto/span 8}.grid .g-col-9{grid-column:auto/span 9}.grid .g-col-10{grid-column:auto/span 10}.grid .g-col-11{grid-column:auto/span 11}.grid .g-col-12{grid-column:auto/span 12}.grid .g-start-1{grid-column-start:1}.grid .g-start-2{grid-column-start:2}.grid .g-start-3{grid-column-start:3}.grid .g-start-4{grid-column-start:4}.grid .g-start-5{grid-column-start:5}.grid .g-start-6{grid-column-start:6}.grid .g-start-7{grid-column-start:7}.grid .g-start-8{grid-column-start:8}.grid .g-start-9{grid-column-start:9}.grid .g-start-10{grid-column-start:10}.grid .g-start-11{grid-column-start:11}@media (min-width: 576px){.grid .g-col-sm-1{grid-column:auto/span 1}.grid .g-col-sm-2{grid-column:auto/span 2}.grid .g-col-sm-3{grid-column:auto/span 3}.grid .g-col-sm-4{grid-column:auto/span 4}.grid .g-col-sm-5{grid-column:auto/span 5}.grid .g-col-sm-6{grid-column:auto/span 6}.grid .g-col-sm-7{grid-column:auto/span 7}.grid .g-col-sm-8{grid-column:auto/span 8}.grid .g-col-sm-9{grid-column:auto/span 9}.grid .g-col-sm-10{grid-column:auto/span 10}.grid .g-col-sm-11{grid-column:auto/span 11}.grid .g-col-sm-12{grid-column:auto/span 12}.grid .g-start-sm-1{grid-column-start:1}.grid .g-start-sm-2{grid-column-start:2}.grid .g-start-sm-3{grid-column-start:3}.grid .g-start-sm-4{grid-column-start:4}.grid .g-start-sm-5{grid-column-start:5}.grid .g-start-sm-6{grid-column-start:6}.grid .g-start-sm-7{grid-column-start:7}.grid .g-start-sm-8{grid-column-start:8}.grid .g-start-sm-9{grid-column-start:9}.grid .g-start-sm-10{grid-column-start:10}.grid .g-start-sm-11{grid-column-start:11}}@media (min-width: 768px){.grid .g-col-md-1{grid-column:auto/span 1}.grid .g-col-md-2{grid-column:auto/span 2}.grid .g-col-md-3{grid-column:auto/span 3}.grid .g-col-md-4{grid-column:auto/span 4}.grid .g-col-md-5{grid-column:auto/span 5}.grid .g-col-md-6{grid-column:auto/span 6}.grid .g-col-md-7{grid-column:auto/span 7}.grid .g-col-md-8{grid-column:auto/span 8}.grid .g-col-md-9{grid-column:auto/span 9}.grid .g-col-md-10{grid-column:auto/span 10}.grid .g-col-md-11{grid-column:auto/span 11}.grid .g-col-md-12{grid-column:auto/span 12}.grid .g-start-md-1{grid-column-start:1}.grid .g-start-md-2{grid-column-start:2}.grid .g-start-md-3{grid-column-start:3}.grid .g-start-md-4{grid-column-start:4}.grid .g-start-md-5{grid-column-start:5}.grid .g-start-md-6{grid-column-start:6}.grid .g-start-md-7{grid-column-start:7}.grid .g-start-md-8{grid-column-start:8}.grid .g-start-md-9{grid-column-start:9}.grid .g-start-md-10{grid-column-start:10}.grid .g-start-md-11{grid-column-start:11}}@media (min-width: 992px){.grid .g-col-lg-1{grid-column:auto/span 1}.grid .g-col-lg-2{grid-column:auto/span 2}.grid .g-col-lg-3{grid-column:auto/span 3}.grid .g-col-lg-4{grid-column:auto/span 4}.grid .g-col-lg-5{grid-column:auto/span 5}.grid .g-col-lg-6{grid-column:auto/span 6}.grid .g-col-lg-7{grid-column:auto/span 7}.grid .g-col-lg-8{grid-column:auto/span 8}.grid .g-col-lg-9{grid-column:auto/span 9}.grid .g-col-lg-10{grid-column:auto/span 10}.grid .g-col-lg-11{grid-column:auto/span 11}.grid .g-col-lg-12{grid-column:auto/span 12}.grid .g-start-lg-1{grid-column-start:1}.grid .g-start-lg-2{grid-column-start:2}.grid .g-start-lg-3{grid-column-start:3}.grid .g-start-lg-4{grid-column-start:4}.grid .g-start-lg-5{grid-column-start:5}.grid .g-start-lg-6{grid-column-start:6}.grid .g-start-lg-7{grid-column-start:7}.grid .g-start-lg-8{grid-column-start:8}.grid .g-start-lg-9{grid-column-start:9}.grid .g-start-lg-10{grid-column-start:10}.grid .g-start-lg-11{grid-column-start:11}}@media (min-width: 1200px){.grid .g-col-xl-1{grid-column:auto/span 1}.grid .g-col-xl-2{grid-column:auto/span 2}.grid .g-col-xl-3{grid-column:auto/span 3}.grid .g-col-xl-4{grid-column:auto/span 4}.grid .g-col-xl-5{grid-column:auto/span 5}.grid .g-col-xl-6{grid-column:auto/span 6}.grid .g-col-xl-7{grid-column:auto/span 7}.grid .g-col-xl-8{grid-column:auto/span 8}.grid .g-col-xl-9{grid-column:auto/span 9}.grid .g-col-xl-10{grid-column:auto/span 10}.grid .g-col-xl-11{grid-column:auto/span 11}.grid .g-col-xl-12{grid-column:auto/span 12}.grid .g-start-xl-1{grid-column-start:1}.grid .g-start-xl-2{grid-column-start:2}.grid .g-start-xl-3{grid-column-start:3}.grid .g-start-xl-4{grid-column-start:4}.grid .g-start-xl-5{grid-column-start:5}.grid .g-start-xl-6{grid-column-start:6}.grid .g-start-xl-7{grid-column-start:7}.grid .g-start-xl-8{grid-column-start:8}.grid .g-start-xl-9{grid-column-start:9}.grid .g-start-xl-10{grid-column-start:10}.grid .g-start-xl-11{grid-column-start:11}}@media (min-width: 1400px){.grid .g-col-xxl-1{grid-column:auto/span 1}.grid .g-col-xxl-2{grid-column:auto/span 2}.grid .g-col-xxl-3{grid-column:auto/span 3}.grid .g-col-xxl-4{grid-column:auto/span 4}.grid .g-col-xxl-5{grid-column:auto/span 5}.grid .g-col-xxl-6{grid-column:auto/span 6}.grid .g-col-xxl-7{grid-column:auto/span 7}.grid .g-col-xxl-8{grid-column:auto/span 8}.grid .g-col-xxl-9{grid-column:auto/span 9}.grid .g-col-xxl-10{grid-column:auto/span 10}.grid .g-col-xxl-11{grid-column:auto/span 11}.grid .g-col-xxl-12{grid-column:auto/span 12}.grid .g-start-xxl-1{grid-column-start:1}.grid .g-start-xxl-2{grid-column-start:2}.grid .g-start-xxl-3{grid-column-start:3}.grid .g-start-xxl-4{grid-column-start:4}.grid .g-start-xxl-5{grid-column-start:5}.grid .g-start-xxl-6{grid-column-start:6}.grid .g-start-xxl-7{grid-column-start:7}.grid .g-start-xxl-8{grid-column-start:8}.grid .g-start-xxl-9{grid-column-start:9}.grid .g-start-xxl-10{grid-column-start:10}.grid .g-start-xxl-11{grid-column-start:11}}.g-0,.gx-0{--md-gutter-x: 0}.g-0,.gy-0{--md-gutter-y: 0}.g-1,.gx-1{--md-gutter-x: .25rem}.g-1,.gy-1{--md-gutter-y: .25rem}.g-2,.gx-2{--md-gutter-x: .5rem}.g-2,.gy-2{--md-gutter-y: .5rem}.g-3,.gx-3{--md-gutter-x: 1rem}.g-3,.gy-3{--md-gutter-y: 1rem}.g-4,.gx-4{--md-gutter-x: 1.5rem}.g-4,.gy-4{--md-gutter-y: 1.5rem}.g-5,.gx-5{--md-gutter-x: 3rem}.g-5,.gy-5{--md-gutter-y: 3rem}@media (min-width: 576px){.g-sm-0,.gx-sm-0{--md-gutter-x: 0}.g-sm-0,.gy-sm-0{--md-gutter-y: 0}.g-sm-1,.gx-sm-1{--md-gutter-x: .25rem}.g-sm-1,.gy-sm-1{--md-gutter-y: .25rem}.g-sm-2,.gx-sm-2{--md-gutter-x: .5rem}.g-sm-2,.gy-sm-2{--md-gutter-y: .5rem}.g-sm-3,.gx-sm-3{--md-gutter-x: 1rem}.g-sm-3,.gy-sm-3{--md-gutter-y: 1rem}.g-sm-4,.gx-sm-4{--md-gutter-x: 1.5rem}.g-sm-4,.gy-sm-4{--md-gutter-y: 1.5rem}.g-sm-5,.gx-sm-5{--md-gutter-x: 3rem}.g-sm-5,.gy-sm-5{--md-gutter-y: 3rem}}@media (min-width: 768px){.g-md-0,.gx-md-0{--md-gutter-x: 0}.g-md-0,.gy-md-0{--md-gutter-y: 0}.g-md-1,.gx-md-1{--md-gutter-x: .25rem}.g-md-1,.gy-md-1{--md-gutter-y: .25rem}.g-md-2,.gx-md-2{--md-gutter-x: .5rem}.g-md-2,.gy-md-2{--md-gutter-y: .5rem}.g-md-3,.gx-md-3{--md-gutter-x: 1rem}.g-md-3,.gy-md-3{--md-gutter-y: 1rem}.g-md-4,.gx-md-4{--md-gutter-x: 1.5rem}.g-md-4,.gy-md-4{--md-gutter-y: 1.5rem}.g-md-5,.gx-md-5{--md-gutter-x: 3rem}.g-md-5,.gy-md-5{--md-gutter-y: 3rem}}@media (min-width: 992px){.g-lg-0,.gx-lg-0{--md-gutter-x: 0}.g-lg-0,.gy-lg-0{--md-gutter-y: 0}.g-lg-1,.gx-lg-1{--md-gutter-x: .25rem}.g-lg-1,.gy-lg-1{--md-gutter-y: .25rem}.g-lg-2,.gx-lg-2{--md-gutter-x: .5rem}.g-lg-2,.gy-lg-2{--md-gutter-y: .5rem}.g-lg-3,.gx-lg-3{--md-gutter-x: 1rem}.g-lg-3,.gy-lg-3{--md-gutter-y: 1rem}.g-lg-4,.gx-lg-4{--md-gutter-x: 1.5rem}.g-lg-4,.gy-lg-4{--md-gutter-y: 1.5rem}.g-lg-5,.gx-lg-5{--md-gutter-x: 3rem}.g-lg-5,.gy-lg-5{--md-gutter-y: 3rem}}@media (min-width: 1200px){.g-xl-0,.gx-xl-0{--md-gutter-x: 0}.g-xl-0,.gy-xl-0{--md-gutter-y: 0}.g-xl-1,.gx-xl-1{--md-gutter-x: .25rem}.g-xl-1,.gy-xl-1{--md-gutter-y: .25rem}.g-xl-2,.gx-xl-2{--md-gutter-x: .5rem}.g-xl-2,.gy-xl-2{--md-gutter-y: .5rem}.g-xl-3,.gx-xl-3{--md-gutter-x: 1rem}.g-xl-3,.gy-xl-3{--md-gutter-y: 1rem}.g-xl-4,.gx-xl-4{--md-gutter-x: 1.5rem}.g-xl-4,.gy-xl-4{--md-gutter-y: 1.5rem}.g-xl-5,.gx-xl-5{--md-gutter-x: 3rem}.g-xl-5,.gy-xl-5{--md-gutter-y: 3rem}}@media (min-width: 1400px){.g-xxl-0,.gx-xxl-0{--md-gutter-x: 0}.g-xxl-0,.gy-xxl-0{--md-gutter-y: 0}.g-xxl-1,.gx-xxl-1{--md-gutter-x: .25rem}.g-xxl-1,.gy-xxl-1{--md-gutter-y: .25rem}.g-xxl-2,.gx-xxl-2{--md-gutter-x: .5rem}.g-xxl-2,.gy-xxl-2{--md-gutter-y: .5rem}.g-xxl-3,.gx-xxl-3{--md-gutter-x: 1rem}.g-xxl-3,.gy-xxl-3{--md-gutter-y: 1rem}.g-xxl-4,.gx-xxl-4{--md-gutter-x: 1.5rem}.g-xxl-4,.gy-xxl-4{--md-gutter-y: 1.5rem}.g-xxl-5,.gx-xxl-5{--md-gutter-x: 3rem}.g-xxl-5,.gy-xxl-5{--md-gutter-y: 3rem}}.card{--md-card-spacer-y: 1rem;--md-card-spacer-x: 1rem;--md-card-title-spacer-y: .5rem;--md-card-border-width: 1px;--md-card-border-color: var(--md-sys-color-outline);--md-card-border-radius: 8px;--md-card-box-shadow: ;--md-card-inner-border-radius: subtract(var(--md-border-radius), var(--md-border-width));--md-card-cap-padding-y: .5rem;--md-card-cap-padding-x: 1rem;--md-card-cap-bg: rgba(var(--md-body-color-rgb), .03);--md-card-cap-color: ;--md-card-img-overlay-padding: 1rem;--md-card-group-margin: .75rem;position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-clip:border-box;border:var(--md-card-border-width) solid var(--md-card-border-color);border-radius:var(--md-card-border-radius)}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--md-card-inner-border-radius);border-top-right-radius:var(--md-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--md-card-inner-border-radius);border-bottom-left-radius:var(--md-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--md-card-spacer-y) var(--md-card-spacer-x)}.card-title{margin:0 0 var(--md-card-title-spacer-y) 0;font-size:1rem}.card-subtitle{margin-top:calc(-.5 * var(--md-card-title-spacer-y));margin-bottom:0;font-size:.875rem}.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:underline}.card-link+.card-link{margin-left:var(--md-card-spacer-x)}.card-header{padding:var(--md-card-cap-padding-y) var(--md-card-cap-padding-x);margin-bottom:0;color:var(--md-card-cap-color);background-color:var(--md-card-cap-bg);border-bottom:var(--md-card-border-width) solid var(--md-card-border-color)}.card-header:first-child{border-top-left-radius:var(--md-card-inner-border-radius);border-top-right-radius:var(--md-card-inner-border-radius)}.card-footer{padding:var(--md-card-cap-padding-y) var(--md-card-cap-padding-x);color:var(--md-card-cap-color);background-color:var(--md-card-cap-bg);border-top:var(--md-card-border-width) solid var(--md-card-border-color)}.card-footer:last-child{border-bottom-left-radius:var(--md-card-inner-border-radius);border-bottom-right-radius:var(--md-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--md-card-cap-padding-x));margin-bottom:calc(-1 * var(--md-card-cap-padding-y));margin-left:calc(-.5 * var(--md-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--md-card-bg);border-bottom-color:var(--md-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--md-card-cap-padding-x));margin-left:calc(-.5 * var(--md-card-cap-padding-x))}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:var(--md-card-img-overlay-padding);border-radius:var(--md-card-inner-border-radius)}.card-img,.card-img-top,.card-img-bottom{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--md-card-inner-border-radius);border-top-right-radius:var(--md-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-left-radius:var(--md-card-inner-border-radius);border-bottom-right-radius:var(--md-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--md-card-group-margin)}@media (min-width: 576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-img-top,.card-group>.card:not(:last-child) .card-header{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-img-bottom,.card-group>.card:not(:last-child) .card-footer{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-img-top,.card-group>.card:not(:first-child) .card-header{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-img-bottom,.card-group>.card:not(:first-child) .card-footer{border-bottom-left-radius:0}}@font-face{font-family:KaTeX_AMS;src:url(fonts/KaTeX_AMS-Regular.eot);src:url(fonts/KaTeX_AMS-Regular.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXAMS-Regular.woff2) format("woff2"),url(/assets/KaTeXAMS-Regular.woff) format("woff"),url(/assets/KaTeXAMS-Regular.ttf) format("ttf");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(fonts/KaTeX_Caligraphic-Bold.eot);src:url(fonts/KaTeX_Caligraphic-Bold.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXCaligraphic-Bold.woff2) format("woff2"),url(/assets/KaTeXCaligraphic-Bold.woff) format("woff"),url(/assets/KaTeXCaligraphic-Bold.ttf) format("ttf");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(fonts/KaTeX_Caligraphic-Regular.eot);src:url(fonts/KaTeX_Caligraphic-Regular.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXCaligraphic-Regular.woff2) format("woff2"),url(/assets/KaTeXCaligraphic-Regular.woff) format("woff"),url(/assets/KaTeXCaligraphic-Regular.ttf) format("ttf");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(fonts/KaTeX_Fraktur-Bold.eot);src:url(fonts/KaTeX_Fraktur-Bold.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXFraktur-Bold.woff2) format("woff2"),url(/assets/KaTeXFraktur-Bold.woff) format("woff"),url(/assets/KaTeXFraktur-Bold.ttf) format("ttf");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(fonts/KaTeX_Fraktur-Regular.eot);src:url(fonts/KaTeX_Fraktur-Regular.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXFraktur-Regular.woff2) format("woff2"),url(/assets/KaTeXFraktur-Regular.woff) format("woff"),url(/assets/KaTeXFraktur-Regular.ttf) format("ttf");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(fonts/KaTeX_Main-Bold.eot);src:url(fonts/KaTeX_Main-Bold.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXMain-Bold.woff2) format("woff2"),url(/assets/KaTeXMain-Bold.woff) format("woff"),url(/assets/KaTeXMain-Bold.ttf) format("ttf");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(fonts/KaTeX_Main-Italic.eot);src:url(fonts/KaTeX_Main-Italic.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXMain-Italic.woff2) format("woff2"),url(/assets/KaTeXMain-Italic.woff) format("woff"),url(/assets/KaTeXMain-Italic.ttf) format("ttf");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(fonts/KaTeX_Main-Regular.eot);src:url(fonts/KaTeX_Main-Regular.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXMain-Regular.woff2) format("woff2"),url(/assets/KaTeXMain-Regular.woff) format("woff"),url(/assets/KaTeXMain-Regular.ttf) format("ttf");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Math;src:url(fonts/KaTeX_Math-Italic.eot);src:url(fonts/KaTeX_Math-Italic.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXMath-Italic.woff2) format("woff2"),url(/assets/KaTeXMath-Italic.woff) format("woff"),url(/assets/KaTeXMath-Italic.ttf) format("ttf");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_SansSerif;src:url(fonts/KaTeX_SansSerif-Regular.eot);src:url(fonts/KaTeX_SansSerif-Regular.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXSansSerif-Regular.woff2) format("woff2"),url(/assets/KaTeXSansSerif-Regular.woff) format("woff"),url(/assets/KaTeXSansSerif-Regular.ttf) format("ttf");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Script;src:url(fonts/KaTeX_Script-Regular.eot);src:url(fonts/KaTeX_Script-Regular.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXScript-Regular.woff2) format("woff2"),url(/assets/KaTeXScript-Regular.woff) format("woff"),url(/assets/KaTeXScript-Regular.ttf) format("ttf");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size1;src:url(fonts/KaTeX_Size1-Regular.eot);src:url(fonts/KaTeX_Size1-Regular.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXSize1-Regular.woff2) format("woff2"),url(/assets/KaTeXSize1-Regular.woff) format("woff"),url(/assets/KaTeXSize1-Regular.ttf) format("ttf");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size2;src:url(fonts/KaTeX_Size2-Regular.eot);src:url(fonts/KaTeX_Size2-Regular.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXSize2-Regular.woff2) format("woff2"),url(/assets/KaTeXSize2-Regular.woff) format("woff"),url(/assets/KaTeXSize2-Regular.ttf) format("ttf");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size3;src:url(fonts/KaTeX_Size3-Regular.eot);src:url(fonts/KaTeX_Size3-Regular.eot#iefix) format("embedded-opentype"),url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC) format("woff2"),url(/assets/KaTeXSize3-Regular.woff) format("woff"),url(/assets/KaTeXSize3-Regular.ttf) format("ttf");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size4;src:url(fonts/KaTeX_Size4-Regular.eot);src:url(fonts/KaTeX_Size4-Regular.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXSize4-Regular.woff2) format("woff2"),url(/assets/KaTeXSize4-Regular.woff) format("woff"),url(/assets/KaTeXSize4-Regular.ttf) format("ttf");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Typewriter;src:url(fonts/KaTeX_Typewriter-Regular.eot);src:url(fonts/KaTeX_Typewriter-Regular.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXTypewriter-Regular.woff2) format("woff2"),url(/assets/KaTeXTypewriter-Regular.woff) format("woff"),url(/assets/KaTeXTypewriter-Regular.ttf) format("ttf");font-weight:400;font-style:normal}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:inline-block}.katex{font:400 1.21em KaTeX_Main;line-height:1.2;white-space:nowrap;text-indent:0}.katex .katex-html{display:inline-block}.katex .katex-mathml{position:absolute;clip:rect(1px,1px,1px,1px);padding:0;border:0;height:1px;width:1px;overflow:hidden}.katex .base,.katex .strut{display:inline-block}.katex .mathit{font-family:KaTeX_Math;font-style:italic}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .amsrm,.katex .mathbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak{font-family:KaTeX_Fraktur}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr{font-family:KaTeX_Script}.katex .mathsf{font-family:KaTeX_SansSerif}.katex .mainit{font-family:KaTeX_Main;font-style:italic}.katex .textstyle>.mord+.mop{margin-left:.16667em}.katex .textstyle>.mord+.mbin{margin-left:.22222em}.katex .textstyle>.mord+.mrel{margin-left:.27778em}.katex .textstyle>.mop+.mop,.katex .textstyle>.mop+.mord,.katex .textstyle>.mord+.minner{margin-left:.16667em}.katex .textstyle>.mop+.mrel{margin-left:.27778em}.katex .textstyle>.mop+.minner{margin-left:.16667em}.katex .textstyle>.mbin+.minner,.katex .textstyle>.mbin+.mop,.katex .textstyle>.mbin+.mopen,.katex .textstyle>.mbin+.mord{margin-left:.22222em}.katex .textstyle>.mrel+.minner,.katex .textstyle>.mrel+.mop,.katex .textstyle>.mrel+.mopen,.katex .textstyle>.mrel+.mord{margin-left:.27778em}.katex .textstyle>.mclose+.mop{margin-left:.16667em}.katex .textstyle>.mclose+.mbin{margin-left:.22222em}.katex .textstyle>.mclose+.mrel{margin-left:.27778em}.katex .textstyle>.mclose+.minner,.katex .textstyle>.minner+.mop,.katex .textstyle>.minner+.mord,.katex .textstyle>.mpunct+.mclose,.katex .textstyle>.mpunct+.minner,.katex .textstyle>.mpunct+.mop,.katex .textstyle>.mpunct+.mopen,.katex .textstyle>.mpunct+.mord,.katex .textstyle>.mpunct+.mpunct,.katex .textstyle>.mpunct+.mrel{margin-left:.16667em}.katex .textstyle>.minner+.mbin{margin-left:.22222em}.katex .textstyle>.minner+.mrel{margin-left:.27778em}.katex .mclose+.mop,.katex .minner+.mop,.katex .mop+.mop,.katex .mop+.mord,.katex .mord+.mop,.katex .textstyle>.minner+.minner,.katex .textstyle>.minner+.mopen,.katex .textstyle>.minner+.mpunct{margin-left:.16667em}.katex .reset-textstyle.textstyle{font-size:1em}.katex .reset-textstyle.scriptstyle{font-size:.7em}.katex .reset-textstyle.scriptscriptstyle{font-size:.5em}.katex .reset-scriptstyle.textstyle{font-size:1.42857em}.katex .reset-scriptstyle.scriptstyle{font-size:1em}.katex .reset-scriptstyle.scriptscriptstyle{font-size:.71429em}.katex .reset-scriptscriptstyle.textstyle{font-size:2em}.katex .reset-scriptscriptstyle.scriptstyle{font-size:1.4em}.katex .reset-scriptscriptstyle.scriptscriptstyle{font-size:1em}.katex .style-wrap{position:relative}.katex .vlist{display:inline-block}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist .baseline-fix{display:inline-table;table-layout:fixed}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{width:100%}.katex .mfrac .frac-line:before{border-bottom-style:solid;border-bottom-width:1px;content:"";display:block}.katex .mfrac .frac-line:after{border-bottom-style:solid;border-bottom-width:.04em;content:"";display:block;margin-top:-1px}.katex .mspace{display:inline-block}.katex .mspace.negativethinspace{margin-left:-.16667em}.katex .mspace.thinspace{width:.16667em}.katex .mspace.mediumspace{width:.22222em}.katex .mspace.thickspace{width:.27778em}.katex .mspace.enspace{width:.5em}.katex .mspace.quad{width:1em}.katex .mspace.qquad{width:2em}.katex .llap,.katex .rlap{width:0;position:relative}.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .rlap>.inner{left:0}.katex .katex-logo .a{font-size:.75em;margin-left:-.32em;position:relative;top:-.2em}.katex .katex-logo .t{margin-left:-.23em}.katex .katex-logo .e{margin-left:-.1667em;position:relative;top:.2155em}.katex .katex-logo .x{margin-left:-.125em}.katex .rule{display:inline-block;border-style:solid;position:relative}.katex .overline .overline-line{width:100%}.katex .overline .overline-line:before{border-bottom-style:solid;border-bottom-width:1px;content:"";display:block}.katex .overline .overline-line:after{border-bottom-style:solid;border-bottom-width:.04em;content:"";display:block;margin-top:-1px}.katex .sqrt>.sqrt-sign{position:relative}.katex .sqrt .sqrt-line{width:100%}.katex .sqrt .sqrt-line:before{border-bottom-style:solid;border-bottom-width:1px;content:"";display:block}.katex .sqrt .sqrt-line:after{border-bottom-style:solid;border-bottom-width:.04em;content:"";display:block;margin-top:-1px}.katex .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.katex .fontsize-ensurer,.katex .sizing{display:inline-block}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:2em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:3.46em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:4.14em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.98em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.71428571em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.14285714em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.28571429em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.42857143em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.71428571em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2.05714286em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.47142857em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.95714286em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.55714286em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.875em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.125em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.25em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.5em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.8em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.1625em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.5875em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:3.1125em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.55555556em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.77777778em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.88888889em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.11111111em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.6em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.92222222em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.3em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.76666667em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.7em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.8em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.9em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.2em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.44em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.73em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:2.07em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.49em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.41666667em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.58333333em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.66666667em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.75em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.83333333em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44166667em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.725em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.075em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.34722222em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.48611111em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.55555556em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.625em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.69444444em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.83333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.20138889em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.4375em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72916667em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.28901734em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.40462428em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.46242775em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.52023121em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.57803468em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.69364162em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.83236994em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.19653179em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.43930636em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.24154589em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.33816425em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.38647343em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.43478261em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.48309179em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.57971014em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.69565217em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.83574879em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20289855em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.20080321em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.2811245em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.32128514em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.36144578em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.40160643em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48192771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.57831325em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.69477912em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.8313253em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist>span,.katex .op-limits>.vlist>span{text-align:center}.katex .accent .accent-body>span{width:0}.katex .accent .accent-body.accent-vec>span{position:relative;left:.326em}.katex .mtable .vertical-separator{display:inline-block;margin:0 -.025em;border-right:.05em solid #000}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist{text-align:center}.katex .mtable .col-align-l>.vlist{text-align:left}.katex .mtable .col-align-r>.vlist{text-align:right}md-dialog{min-width:360px}md-outlined-select::part(menu){max-height:50vh;z-index:999}md-menu::part(list){max-height:50vh}md-chip-set{display:flex;gap:8px;margin-block-end:16px;flex-wrap:wrap}md-chip-set md-filter-chip{padding-block:8px}.icon-button+md-outlined-button{margin-inline-start:8px}md-outlined-button+md-outlined-button{margin-inline-start:8px}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0}.table{border-color:var(--md-sys-color-outline);border-collapse:collapse;border-radius:4px;border-style:hidden;box-shadow:0 0 0 1px var(--md-sys-color-outline);width:100%;vertical-align:top}.table>:not(caption)>*>*{padding:.4rem;border-bottom-width:1px;word-break:break-all}.table th{word-break:keep-all;white-space:nowrap}.table td{vertical-align:middle}.table td .tags{display:flex;flex-wrap:wrap}.table td .tags .badge{margin:2px;cursor:pointer}.table>tbody{vertical-align:inherit}.table>:not(:last-child)>:last-child>*{border-bottom-color:var(--md-sys-color-outline)}.table tbody tr:hover,.table tr.selected{background-color:var(--md-sys-color-on-surface-selected)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:1px;margin-bottom:1.5rem}td .action-btns{display:flex;align-items:center}audio::-webkit-media-controls-play-button,audio::-webkit-media-controls-panel{background-color:var(--md-sys-color-surface)}:root.dark audio::-webkit-media-controls-play-button,:root.dark audio::-webkit-media-controls-panel{background-color:#ccc}audio::-webkit-media-controls-current-time-display,audio::-webkit-media-controls-time-remaining-display{text-shadow:none}.pagination{display:flex;list-style:none;justify-content:center;padding-bottom:24px;margin:0}.page-link{position:relative;display:block;padding:.375rem .825rem}.page-link:hover{text-decoration:none}.page-item.active .page-link{border:1px solid currentColor;border-radius:var(--border-radius-sm)}.page-item.disabled .page-link{pointer-events:none}.md-container{padding-bottom:32px;line-height:1.5;word-wrap:break-word}.md-container p>img:first-child{display:block}.md-container .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom}.md-container h1:hover .anchor .octicon-link:before,.md-container h2:hover .anchor .octicon-link:before,.md-container h3:hover .anchor .octicon-link:before,.md-container h4:hover .anchor .octicon-link:before,.md-container h5:hover .anchor .octicon-link:before,.md-container h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:" ";display:inline-block;background-color:currentColor;-webkit-mask-image:url("data:image/svg+xml,");mask-image:url("data:image/svg+xml,")}.md-container details,.md-container figcaption,.md-container figure{display:block}.md-container summary{display:list-item}.md-container [hidden]{display:none!important}.md-container a{color:#0969da}.md-container abbr[title]{border-bottom:none;text-decoration:underline dotted}.md-container b,.md-container strong{font-weight:600}.md-container dfn{font-style:italic}.md-container h1{margin:.67em 0;font-weight:600;padding-bottom:.3em;font-size:2em;border-bottom:1px solid var(--md-sys-color-outline)}.md-container mark{background-color:#fff8c5;color:#24292f}.md-container small{font-size:90%}.md-container sub,.md-container sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.md-container sub{bottom:-.25em}.md-container sup{top:-.5em}.md-container img{border-style:none;max-width:100%;box-sizing:content-box;margin-bottom:16px}.md-container code,.md-container kbd,.md-container pre,.md-container samp{font-family:monospace;font-size:1em}.md-container figure{margin:1em 40px}.md-container hr{box-sizing:content-box;overflow:hidden;background:transparent;border-bottom:1px solid var(--md-sys-color-outline);height:.25em;padding:0;margin:24px 0;background-color:#d0d7de;border:0}.md-container input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.md-container [type=checkbox],.md-container [type=radio]{box-sizing:border-box;padding:0}.md-container [type=number]::-webkit-inner-spin-button,.md-container [type=number]::-webkit-outer-spin-button{height:auto}.md-container [type=search]::-webkit-search-cancel-button,.md-container [type=search]::-webkit-search-decoration{-webkit-appearance:none}.md-container ::-webkit-input-placeholder{color:inherit;opacity:.54}.md-container ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.md-container a:hover{text-decoration:underline}.md-container ::placeholder{color:#6e7781;opacity:1}.md-container hr:before{display:table;content:""}.md-container hr:after{display:table;clear:both;content:""}.md-container table{border-spacing:0;border-collapse:collapse;display:block;width:max-content;max-width:100%;overflow:auto}.md-container td,.md-container th{padding:0}.md-container details summary{cursor:pointer}.md-container details:not([open])>*:not(summary){display:none!important}.md-container a:focus,.md-container [role=button]:focus,.md-container input[type=radio]:focus,.md-container input[type=checkbox]:focus{outline:2px solid #0969da;outline-offset:-2px;box-shadow:none}.md-container a:focus:not(:focus-visible),.md-container [role=button]:focus:not(:focus-visible),.md-container input[type=radio]:focus:not(:focus-visible),.md-container input[type=checkbox]:focus:not(:focus-visible){outline:solid 1px transparent}.md-container a:focus-visible,.md-container [role=button]:focus-visible,.md-container input[type=radio]:focus-visible,.md-container input[type=checkbox]:focus-visible{outline:2px solid #0969da;outline-offset:-2px;box-shadow:none}.md-container a:not([class]):focus,.md-container a:not([class]):focus-visible,.md-container input[type=radio]:focus,.md-container input[type=radio]:focus-visible,.md-container input[type=checkbox]:focus,.md-container input[type=checkbox]:focus-visible{outline-offset:0}.md-container kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:#24292f;vertical-align:middle;background-color:#f6f8fa;border:solid 1px rgba(175,184,193,.2);border-bottom-color:#afb8c133;border-radius:6px;box-shadow:inset 0 -1px #afb8c133}.md-container h1,.md-container h2,.md-container h3,.md-container h4,.md-container h5,.md-container h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.md-container h2{font-weight:600;padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--md-sys-color-outline)}.md-container h3{font-weight:600;font-size:1.25em}.md-container h4{font-weight:600;font-size:1em}.md-container h5{font-weight:600;font-size:.875em}.md-container h6{font-weight:600;font-size:.85em;color:#57606a}.md-container p{margin-top:0;margin-bottom:10px}.md-container blockquote{margin:0;padding:0 1em;border-left:.25em solid var(--md-sys-color-outline)}.md-container ul,.md-container ol{margin-top:0;margin-bottom:0;padding-left:2em}.md-container ol ol,.md-container ul ol{list-style-type:lower-roman}.md-container ul ul ol,.md-container ul ol ol,.md-container ol ul ol,.md-container ol ol ol{list-style-type:lower-alpha}.md-container dd{margin-left:0}.md-container tt,.md-container code,.md-container samp{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.md-container pre{font-size:12px;word-wrap:normal;max-width:100%;overflow:auto}.md-container .octicon{display:inline-block;overflow:visible!important;vertical-align:text-bottom;fill:currentColor}.md-container input::-webkit-outer-spin-button,.md-container input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.md-container a:not([href]){color:inherit;text-decoration:none}.md-container .absent{color:#cf222e}.md-container .anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}.md-container .anchor:focus{outline:none}.md-container p,.md-container blockquote,.md-container ul,.md-container ol,.md-container dl,.md-container table,.md-container pre,.md-container details{margin-top:0;margin-bottom:16px}.md-container blockquote>:first-child{margin-top:0}.md-container blockquote>:last-child{margin-bottom:0}.md-container h1 .octicon-link,.md-container h2 .octicon-link,.md-container h3 .octicon-link,.md-container h4 .octicon-link,.md-container h5 .octicon-link,.md-container h6 .octicon-link{color:#24292f;vertical-align:middle;visibility:hidden}.md-container h1:hover .anchor,.md-container h2:hover .anchor,.md-container h3:hover .anchor,.md-container h4:hover .anchor,.md-container h5:hover .anchor,.md-container h6:hover .anchor{text-decoration:none}.md-container h1:hover .anchor .octicon-link,.md-container h2:hover .anchor .octicon-link,.md-container h3:hover .anchor .octicon-link,.md-container h4:hover .anchor .octicon-link,.md-container h5:hover .anchor .octicon-link,.md-container h6:hover .anchor .octicon-link{visibility:visible}.md-container h1 tt,.md-container h1 code,.md-container h2 tt,.md-container h2 code,.md-container h3 tt,.md-container h3 code,.md-container h4 tt,.md-container h4 code,.md-container h5 tt,.md-container h5 code,.md-container h6 tt,.md-container h6 code{padding:0 .2em;font-size:inherit}.md-container summary h1,.md-container summary h2,.md-container summary h3,.md-container summary h4,.md-container summary h5,.md-container summary h6{display:inline-block}.md-container summary h1 .anchor,.md-container summary h2 .anchor,.md-container summary h3 .anchor,.md-container summary h4 .anchor,.md-container summary h5 .anchor,.md-container summary h6 .anchor{margin-left:-40px}.md-container summary h1,.md-container summary h2{padding-bottom:0;border-bottom:0}.md-container ul.no-list,.md-container ol.no-list{padding:0;list-style-type:none}.md-container ol[type=a]{list-style-type:lower-alpha}.md-container ol[type=A]{list-style-type:upper-alpha}.md-container ol[type=i]{list-style-type:lower-roman}.md-container ol[type=I]{list-style-type:upper-roman}.md-container ol[type="1"]{list-style-type:decimal}.md-container div>ol:not([type]){list-style-type:decimal}.md-container ul ul,.md-container ul ol,.md-container ol ol,.md-container ol ul{margin-top:0;margin-bottom:0}.md-container li>p{margin-top:16px}.md-container li+li{margin-top:.25em}.md-container dl{padding:0}.md-container dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:600}.md-container dl dd{padding:0 16px;margin-bottom:16px}.md-container table th{font-weight:600}.md-container table th,.md-container table td{padding:6px 13px;border:1px solid var(--md-sys-color-outline)}.md-container table tr{border-top:1px solid var(--md-sys-color-outline)}.md-container img[align=right]{padding-left:20px}.md-container img[align=left]{padding-right:20px}.md-container .emoji{max-width:none;vertical-align:text-top;background-color:transparent}.md-container span.frame{display:block;overflow:hidden}.md-container span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid #d0d7de}.md-container span.frame span img{display:block;float:left}.md-container span.frame span span{display:block;padding:5px 0 0;clear:both;color:#24292f}.md-container span.align-center{display:block;overflow:hidden;clear:both}.md-container span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.md-container span.align-center span img{margin:0 auto;text-align:center}.md-container span.align-right{display:block;overflow:hidden;clear:both}.md-container span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.md-container span.align-right span img{margin:0;text-align:right}.md-container span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.md-container span.float-left span{margin:13px 0 0}.md-container span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.md-container span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.md-container code,.md-container tt{padding:.2em .4em;margin:0;font-size:85%;white-space:break-spaces;background-color:#afb8c133;border-radius:6px}.md-container code br,.md-container tt br{display:none}.md-container del code{text-decoration:inherit}.md-container samp{font-size:85%}.md-container pre code{font-size:100%}.md-container pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0}.md-container .highlight{margin-bottom:16px}.md-container .highlight pre{word-break:normal}.md-container .highlight pre,.md-container pre{padding:16px;border:1px solid var(--md-sys-color-outline);border-radius:6px}.md-container pre code,.md-container pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.md-container .csv-data td,.md-container .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.md-container .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:#ffffff;border:0}.md-container .csv-data tr{border-top:0}.md-container .csv-data th{font-weight:600;background:#f6f8fa;border-top:0}.md-container [data-footnote-ref]:before{content:"["}.md-container [data-footnote-ref]:after{content:"]"}.md-container .footnotes{font-size:12px;color:#57606a;border-top:1px solid #d0d7de}.md-container .footnotes ol{padding-left:16px}.md-container .footnotes ol ul{display:inline-block;padding-left:16px;margin-top:16px}.md-container .footnotes li{position:relative}.md-container .footnotes li:target:before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid #0969da;border-radius:6px}.md-container .footnotes li:target{color:#24292f}.md-container .footnotes .data-footnote-backref g-emoji{font-family:monospace}.md-container .pl-c{color:#6e7781}.md-container .pl-c1,.md-container .pl-s .pl-v{color:#0550ae}.md-container .pl-e,.md-container .pl-en{color:#8250df}.md-container .pl-smi,.md-container .pl-s .pl-s1{color:#24292f}.md-container .pl-ent{color:#116329}.md-container .pl-k{color:#cf222e}.md-container .pl-s,.md-container .pl-pds,.md-container .pl-s .pl-pse .pl-s1,.md-container .pl-sr,.md-container .pl-sr .pl-cce,.md-container .pl-sr .pl-sre,.md-container .pl-sr .pl-sra{color:#0a3069}.md-container .pl-v,.md-container .pl-smw{color:#953800}.md-container .pl-bu{color:#82071e}.md-container .pl-ii{color:#f6f8fa;background-color:#82071e}.md-container .pl-c2{color:#f6f8fa;background-color:#cf222e}.md-container .pl-sr .pl-cce{font-weight:700;color:#116329}.md-container .pl-ml{color:#3b2300}.md-container .pl-mh,.md-container .pl-mh .pl-en,.md-container .pl-ms{font-weight:700;color:#0550ae}.md-container .pl-mi{font-style:italic;color:#24292f}.md-container .pl-mb{font-weight:700;color:#24292f}.md-container .pl-md{color:#82071e;background-color:#ffebe9}.md-container .pl-mi1{color:#116329;background-color:#dafbe1}.md-container .pl-mc{color:#953800;background-color:#ffd8b5}.md-container .pl-mi2{color:#eaeef2;background-color:#0550ae}.md-container .pl-mdr{font-weight:700;color:#8250df}.md-container .pl-ba{color:#57606a}.md-container .pl-sg{color:#8c959f}.md-container .pl-corl{text-decoration:underline;color:#0a3069}.md-container g-emoji{display:inline-block;min-width:1ch;font-family:"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-size:1em;font-style:normal!important;font-weight:400;line-height:1;vertical-align:-.075em}.md-container g-emoji img{width:1em;height:1em}.md-container .task-list-item{list-style-type:none}.md-container .task-list-item label{font-weight:400}.md-container .task-list-item.enabled label{cursor:pointer}.md-container .task-list-item+.task-list-item{margin-top:4px}.md-container .task-list-item .handle{display:none}.md-container .task-list-item-checkbox{margin:0 .2em .25em -1.4em;vertical-align:middle}.md-container .contains-task-list:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.md-container .contains-task-list{position:relative}.md-container .contains-task-list:hover .task-list-item-convert-container,.md-container .contains-task-list:focus-within .task-list-item-convert-container{display:block;width:auto;height:24px;overflow:visible;clip:auto}.md-container ::-webkit-calendar-picker-indicator{filter:invert(50%)}:root.dark .md-container{color-scheme:dark}:root.dark .md-container a{color:#58a6ff}:root.dark .md-container mark{background-color:#bb800926;color:#c9d1d9}:root.dark .md-container hr{background-color:#30363d}:root.dark .md-container ::placeholder{color:#6e7681}:root.dark .md-container a:focus,:root.dark .md-container [role=button]:focus,:root.dark .md-container input[type=radio]:focus,:root.dark .md-container input[type=checkbox]:focus{outline:2px solid #58a6ff}:root.dark .md-container a:focus-visible,:root.dark .md-container [role=button]:focus-visible,:root.dark .md-container input[type=radio]:focus-visible,:root.dark .md-container input[type=checkbox]:focus-visible{outline:2px solid #58a6ff}:root.dark .md-container kbd{color:#c9d1d9;background-color:#161b22;border:solid 1px rgba(110,118,129,.4);border-bottom-color:#6e768166;box-shadow:inset 0 -1px #6e768166}:root.dark .md-container h6{color:#8b949e}:root.dark .md-container .absent{color:#f85149}:root.dark .md-container h1 .octicon-link,:root.dark .md-container h2 .octicon-link,:root.dark .md-container h3 .octicon-link,:root.dark .md-container h4 .octicon-link,:root.dark .md-container h5 .octicon-link,:root.dark .md-container h6 .octicon-link{color:#c9d1d9}:root.dark .md-container span.frame>span{border:1px solid #30363d}:root.dark .md-container span.frame span span{color:#c9d1d9}:root.dark .md-container code,:root.dark .md-container tt{background-color:#6e768166}:root.dark .md-container .csv-data .blob-num{background:#0d1117}:root.dark .md-container .csv-data th{background:#161b22}:root.dark .md-container .footnotes{color:#8b949e;border-top:1px solid #30363d}:root.dark .md-container .footnotes li:target:before{border:2px solid #1f6feb}:root.dark .md-container .footnotes li:target{color:#c9d1d9}:root.dark .md-container .pl-c{color:#8b949e}:root.dark .md-container .pl-c1,:root.dark .md-container .pl-s .pl-v{color:#79c0ff}:root.dark .md-container .pl-e,:root.dark .md-container .pl-en{color:#d2a8ff}:root.dark .md-container .pl-smi,:root.dark .md-container .pl-s .pl-s1{color:#c9d1d9}:root.dark .md-container .pl-ent{color:#7ee787}:root.dark .md-container .pl-k{color:#ff7b72}:root.dark .md-container .pl-s,:root.dark .md-container .pl-pds,:root.dark .md-container .pl-s .pl-pse .pl-s1,:root.dark .md-container .pl-sr,:root.dark .md-container .pl-sr .pl-cce,:root.dark .md-container .pl-sr .pl-sre,:root.dark .md-container .pl-sr .pl-sra{color:#a5d6ff}:root.dark .md-container .pl-v,:root.dark .md-container .pl-smw{color:#ffa657}:root.dark .md-container .pl-bu{color:#f85149}:root.dark .md-container .pl-ii{color:#f0f6fc;background-color:#8e1519}:root.dark .md-container .pl-c2{color:#f0f6fc;background-color:#b62324}:root.dark .md-container .pl-sr .pl-cce{font-weight:700;color:#7ee787}:root.dark .md-container .pl-ml{color:#f2cc60}:root.dark .md-container .pl-mh,:root.dark .md-container .pl-mh .pl-en,:root.dark .md-container .pl-ms{color:#1f6feb}:root.dark .md-container .pl-mi{color:#c9d1d9}:root.dark .md-container .pl-mb{font-weight:700;color:#c9d1d9}:root.dark .md-container .pl-md{color:#ffdcd7;background-color:#67060c}:root.dark .md-container .pl-mi1{color:#aff5b4;background-color:#033a16}:root.dark .md-container .pl-mc{color:#ffdfb6;background-color:#5a1e02}:root.dark .md-container .pl-mi2{color:#c9d1d9;background-color:#1158c7}:root.dark .md-container .pl-mdr{color:#d2a8ff}:root.dark .md-container .pl-ba{color:#8b949e}:root.dark .md-container .pl-sg{color:#484f58}:root.dark .md-container .pl-corl{color:#a5d6ff}.badge{display:inline-block;padding:3px 8px;font-size:.75rem;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:13px;border:1px solid}.badge:empty{display:none}.badge+.badge{margin-left:4px}.badge.lg{font-size:1rem;padding:.5rem}.badge.lg+.badge{margin-left:8px}.btn .badge{position:relative;top:-1px}.form-label{display:block;margin-block:16px;font-weight:700}.form-row{display:flex;flex-direction:row;gap:16px;margin-block-end:16px}.form-row>*{flex:1}.form-row .flex-2{flex:2}.form-row .flex-3{flex:3}.form-control{width:100%}.form-check-label{display:inline-flex;place-items:center}.icon-button{align-items:center;background:none;border:none;box-sizing:border-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;position:relative;text-decoration:none;-webkit-user-select:none;user-select:none;z-index:0;border-radius:50%;width:40px;height:40px;color:currentColor}.icon-button *:is(svg){height:24px;width:24px}.btn-sm{--_label-text-size: .75rem;--_container-height: 24px;--_leading-space: 16px;--_trailing-space: 16px}.btn-lg{--_label-text-size: 1rem;--_container-height: 56px;--_leading-space: 24px;--_trailing-space: 24px}.splitpanes{display:flex;width:100%;overflow:hidden}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{-webkit-user-select:none;user-select:none}.splitpanes__pane{width:100%;height:100%}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes .splitpanes__splitter{box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes .splitpanes__splitter:before{content:"";position:absolute;top:50%;left:50%;transition:background-color .3s}.splitpanes .splitpanes__splitter:first-child{cursor:auto}.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.splitpanes--vertical>.splitpanes__splitter{width:3px}.splitpanes--vertical>.splitpanes__splitter:before{transform:translateY(-50%);height:100%}.splitpanes--horizontal>.splitpanes__splitter{height:3px}.splitpanes--horizontal>.splitpanes__splitter:before{transform:translate(-50%);width:100%;height:1px}.chat-section{border-radius:8px;border:1px solid var(--md-sys-color-outline);overflow:hidden}.chat-item{padding:0 16px 16px}.chat-item .date{color:var(--md-sys-color-secondary);font-size:.8rem;text-align:center}.chat-item:first-child{padding-top:16px}.chat-item .bi-more{display:none;vertical-align:middle}.chat-item:hover .bi-more{display:inline-block}.chat-title{display:inline-block;height:24px}.chat-title .name{font-weight:500;margin-right:4px;font-size:.75rem}.chat-title .time,.chat-title .sending{color:var(--md-sys-color-secondary);font-size:.75rem}.chat-title:hover{cursor:pointer}.chat-title .sending{margin-left:4px}@media print{header,.quick,.quick-content,.v-toolbar,.subtitle,.splitpanes__pane:first-child{display:none!important}.splitpanes__pane{width:100%!important}.layout,.page-content,.panel-container,.page-container .main{height:auto!important}.page-container .main{margin:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important;padding:0!important}.md-container{padding:0!important}}#app:has(~.lightbox){display:none}.top-title{display:flex;align-items:center;padding:0 16px;flex:0 0 auto;font-size:.875rem;text-overflow:ellipsis}.top-title>div:first-child{flex:1}.top-title .icon-button+.icon-button{margin-inline-start:8px}.list-items{width:100%}.list-items .item{display:grid;grid-template-areas:"title icon" "subtitle icon" "body body";grid-template-columns:1fr auto;padding:8px 16px;position:relative;white-space:pre-wrap;word-break:break-all}.list-items .item .title{grid-area:title;text-overflow:ellipsis;color:var(--md-sys-color-on-surface);display:flex;align-items:center}.list-items .item .subtitle{grid-area:subtitle;text-overflow:ellipsis;color:var(--md-sys-color-on-surface-variant);font-size:.8rem;margin-top:4px}.list-items .item .body{grid-area:body;text-overflow:ellipsis;color:var(--md-sys-color-on-surface-variant);font-size:.8rem;margin-top:4px}.list-items .item .icon{grid-area:icon}.list-items .item.selected{background-color:var(--md-sys-color-on-surface-selected)}.error-container{color:var(--md-sys-color-on-error-container);background-color:var(--md-sys-color-error-container)}.alert-warning,.alert-info,.alert-danger{border-radius:8px;padding:16px}.alert-danger{background-color:var(--md-sys-color-error-container);border:1px solid var(--md-sys-color-on-error-container);color:var(--md-sys-color-on-error-container)}.alert-info{background-color:var(--md-sys-color-surface-container-lowest);border:1px solid var(--md-sys-color-outline);color:var(--md-sys-color-on-surface)}.alert-warning{background-color:var(--md-sys-color-warning-container);border:1px solid var(--md-sys-color-on-warning-container);color:var(--md-sys-color-on-warning-container)}.v-toolbar+.alert-info{margin-block-end:16px}.alert-all-checked{text-align:center}.v-toolbar{display:flex;flex-direction:row;align-items:center;margin-bottom:16px}.v-toolbar .breadcrumb{flex-grow:1}.v-toolbar .right-actions{display:flex;flex-direction:row;align-items:center}.v-toast.error{color:var(--red-color)}.toast-container{position:fixed;display:flex;top:0;bottom:0;left:0;right:0;overflow:hidden;z-index:9999;pointer-events:none;flex-direction:column;margin-top:32px;width:100%}.toast-container .v-toast{align-self:center;animation-duration:.15s;border-radius:8px;pointer-events:auto;background-color:var(--md-sys-color-surface);cursor:pointer;padding:8px 32px;word-break:break-word;border:1px solid currentColor;box-shadow:0 0 8px #0003;max-width:50%}.tap-phone-container{position:fixed;display:flex;width:500px;top:100px;left:50%;transform:translate(-50%);z-index:9999;flex-direction:row;margin-top:16px;background-color:var(--md-sys-color-surface);animation-duration:.15s;pointer-events:auto;cursor:pointer;border-radius:8px;padding:2rem;box-shadow:0 0 8px #0003}.tap-phone-container div{flex:1;margin-inline-end:1rem;font-size:1.4rem}.tap-phone-container *:is(svg){width:120px;fill:var(--md-sys-color-primary)}.help-block{padding:16px}.inline-edit{cursor:pointer}.popper .view-raw{padding:1rem;max-width:40vw;white-space:pre-wrap;max-height:50vh;margin:0}.no-data-placeholder{text-align:center;padding:40px}.quick-content .no-data{text-align:center;padding:40px;display:flex;justify-content:center;align-items:center;height:100vh;width:100%}.v-enter-active,.v-leave-active{transition:opacity .3s ease}.v-enter-from,.v-leave-to{opacity:0}.loading{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.page-container>.splitpanes .sidebar{padding-inline-end:16px;height:calc(100vh - 64px);box-sizing:border-box;overflow-y:auto;overflow-x:hidden}.page-container .main{margin-inline-end:1px;background-color:var(--md-sys-color-surface);border-top-left-radius:var(--plain-shape-l);border-top-right-radius:var(--plain-shape-l);padding:var(--plain-spacing-xl) var(--plain-spacing-xl) 0 var(--plain-spacing-xl);box-sizing:border-box;height:calc(100vh - 64px);overflow-y:auto}.page-container>.main{margin-inline-start:16px}.nav-title{font-weight:600;font-size:1.125rem;display:flex;justify-content:space-between;padding-inline-start:16px;align-items:center}.nav{list-style:none;display:block;padding:0}.nav li{padding-block:18px;padding-inline:16px;position:relative;border-top-right-radius:56px;border-bottom-right-radius:56px;word-wrap:break-word;-webkit-user-select:none;user-select:none}.nav li.active{background-color:var(--md-sys-color-surface-container-highest)}.nav li:hover{cursor:pointer}.image{width:100%;object-fit:cover;height:100%;min-width:100%;left:50%;position:relative;transform:translate(-50%)}.image:hover{cursor:pointer}.blinking-cursor{width:.5rem;height:1rem;display:inline-block;animation:1s blink step-end infinite}@keyframes blink{0%,to{background-color:transparent}50%{background-color:currentColor}}.spinner-sm{--md-circular-progress-size: 32px;--md-circular-progress-active-indicator-width: 14}.v-center{display:flex;align-items:center}.invalid-feedback{color:var(--md-sys-color-error)}.filters{padding:16px;width:280px}.filters md-outlined-text-field{width:100%}.filters .buttons{text-align:right}.filters .form-label{margin-block-end:8px}.image-container{display:flex;flex-wrap:wrap;justify-content:flex-start}.image-container .item{box-sizing:border-box;aspect-ratio:1/1;overflow:hidden;display:flex;align-items:center;position:relative}.image-container .duration{background:rgba(0,0,0,.5);color:#fff;position:absolute;bottom:2px;right:2px;font-size:12px;padding:1px 4px}.icon-button.selected{color:var(--md-sys-color-primary)} +.top-error[data-v-9bf56f7e]{background-color:var(--md-sys-color-error);color:var(--md-sys-color-on-error);padding:8px;font-size:.8rem;display:flex;align-items:center;justify-content:center}.popper-arrow[data-v-61211ab1],.popper-arrow[data-v-61211ab1]:before{transition:background .25s ease-in-out;position:absolute;width:9px;height:9px;box-sizing:border-box;background:var(--md-sys-color-surface)}.popper-arrow[data-v-61211ab1]{visibility:hidden}.popper-arrow[data-v-61211ab1]:before{visibility:visible;content:"";transform:rotate(45deg)}.popper[data-popper-placement^=top]>.popper-arrow[data-v-61211ab1]{bottom:-5px}.popper[data-popper-placement^=top]>.popper-arrow[data-v-61211ab1]:before{border-right:1px solid var(--md-sys-color-outline);border-bottom:1px solid var(--md-sys-color-outline)}.popper[data-popper-placement^=bottom]>.popper-arrow[data-v-61211ab1]{top:-5px}.popper[data-popper-placement^=bottom]>.popper-arrow[data-v-61211ab1]:before{border-left:1px solid var(--md-sys-color-outline);border-top:1px solid var(--md-sys-color-outline)}.popper[data-popper-placement^=left]>.popper-arrow[data-v-61211ab1]{right:-5px}.popper[data-popper-placement^=left]>.popper-arrow[data-v-61211ab1]:before{border-right:1px solid var(--md-sys-color-outline);border-top:1px solid var(--md-sys-color-outline)}.popper[data-popper-placement^=right]>.popper-arrow[data-v-61211ab1]{left:-5px}.inline-block[data-v-da4ddbfd]{display:inline-block}.popper[data-v-da4ddbfd]{transition:background .25s ease-in-out;box-shadow:var(--md-sys-color-shadow) 0 1px 2px 0;background-color:var(--md-sys-color-surface-container);border-radius:4px;z-index:var(--41543257);overflow-y:auto}.fade-enter-active[data-v-da4ddbfd],.fade-leave-active[data-v-da4ddbfd]{transition:opacity .2s ease}.fade-enter-from[data-v-da4ddbfd],.fade-leave-to[data-v-da4ddbfd]{opacity:0}.v-on-error[data-v-271aa27d]{position:absolute;top:50%;left:50%}.toolbar[data-v-271aa27d]{display:flex;flex-direction:row;padding-block:8px;align-items:center;background:var(--md-sys-color-surface);z-index:1;position:static;width:100%;box-sizing:border-box;grid-area:toolbar}.toolbar .source-name[data-v-271aa27d]{flex:1}.toolbar .source-name .icon-button[data-v-271aa27d]{margin-inline-start:16px}.toolbar md-outlined-button[data-v-271aa27d],.toolbar .icon-button[data-v-271aa27d]{margin-inline-end:16px}.content[data-v-271aa27d]{grid-area:content;position:relative;height:calc(100vh - 56px)}.info[data-v-271aa27d]{grid-area:info;width:280px;height:100vh;box-sizing:border-box;background:var(--md-sys-color-surface-container);overflow-y:auto;z-index:1}.info .top-title[data-v-271aa27d]{height:56px}.lightbox[data-v-271aa27d]{min-width:var(--screen-min-width);background:var(--md-sys-color-surface);overflow:hidden}.layout[data-v-271aa27d]{display:grid;grid-template-areas:"toolbar info" "content info";grid-template-columns:1fr auto;grid-template-rows:auto 1fr}.v-img-wrapper[data-v-271aa27d]{-webkit-user-select:none;user-select:none;margin:0;position:absolute;top:50%;left:50%;transform:translate(-50% -50%);transition:.3s linear;will-change:transform opacity}.v-img-wrapper img[data-v-271aa27d]{-webkit-user-select:none;user-select:none;max-width:90vw;max-height:90vh;display:block;position:relative}@media (max-width: 750px){.v-img-wrapper img[data-v-271aa27d]{max-width:95vw;max-height:95vh}}.v-video-wrapper[data-v-271aa27d],.v-audio-wrapper[data-v-271aa27d]{display:flex;justify-content:center;align-items:center;flex-direction:column;height:100%}.v-video-wrapper audio[data-v-271aa27d],.v-audio-wrapper audio[data-v-271aa27d]{width:400px}.v-video-wrapper video[data-v-271aa27d],.v-audio-wrapper video[data-v-271aa27d]{height:95%;max-width:88%}.btn-prev[data-v-271aa27d],.btn-next[data-v-271aa27d]{-webkit-user-select:none;user-select:none;position:absolute;top:50%;transform:translateY(-50%);cursor:pointer;opacity:.6;font-size:4rem;transition:.15s linear;outline:none;z-index:1}.btn-prev[data-v-271aa27d]:hover,.btn-next[data-v-271aa27d]:hover{opacity:1}.btn-next[data-v-271aa27d]{right:12px}.btn-prev[data-v-271aa27d]{left:12px}.notifications[data-v-175f4042]{width:var(--quick-content-width);flex:0 0 auto;display:flex;flex-flow:column;height:100vh}.items-container[data-v-175f4042]{overflow-y:scroll;display:flex;flex:1 1 auto;background-color:var(--md-sys-color-surface);border-top-left-radius:var(--plain-shape-l)}.top-title[data-v-175f4042]{background-color:var(--md-sys-color-surface-container);height:64px}.top-title .icon-button[data-v-175f4042]{margin-inline-start:auto}.list-items .item[data-v-175f4042]:first-child{margin-block-start:8px}.list-items .item[data-v-175f4042]:last-child{margin-block-end:8px}.list-items .title img[data-v-175f4042]{margin-inline-end:8px}.list-items .time[data-v-175f4042]{color:var(--md-sys-color-secondary);font-size:.75rem;margin-inline-start:8px;word-break:keep-all;white-space:nowrap}.list-items .name[data-v-175f4042]{word-break:keep-all;white-space:nowrap;text-overflow:ellipsis}.alert-warning[data-v-175f4042]{margin-block-end:16px;margin-inline-end:16px}.tasks[data-v-424aaeea],.audio-player[data-v-137f137c]{background-color:var(--md-sys-color-surface);overflow-x:hidden;overflow-y:auto;width:var(--quick-content-width);height:100%}.list-items .item[data-v-137f137c]{cursor:pointer}.play-title[data-v-137f137c]{text-align:center;padding:16px;white-space:pre-wrap;font-size:.825rem}.buttons[data-v-137f137c]{display:flex;align-items:center;justify-content:space-around;padding:8px}.mode[data-v-137f137c]{margin:0 32px}.audio[data-v-137f137c]{display:block;width:100%}.image-container .item[data-v-578f7f0f]{width:calc(33.33% - 2px);margin:1px}.file-item[data-v-5f17c344]{padding:0 8px 8px;flex-flow:row;display:flex;justify-content:space-between;text-decoration:none}.file-item[data-v-5f17c344]:first-child{padding-top:8px}.file-item .left[data-v-5f17c344]{display:flex;flex-flow:column;word-break:break-all}.file-item .left .info[data-v-5f17c344]{margin-top:4px;color:var(--md-sys-color-secondary);font-size:.75rem}.file-item img[data-v-5f17c344]{display:flex;width:50px;height:50px;margin-left:4px}.chat[data-v-d30ba72e]{width:var(--quick-content-width);flex:0 0 auto;display:flex;flex-flow:column;height:100vh}.top-title[data-v-d30ba72e]{background-color:var(--md-sys-color-surface-container);height:64px}.chat-input[data-v-d30ba72e]{background-color:var(--md-sys-color-surface);padding:8px 16px}.chat-input .btns[data-v-d30ba72e]{display:flex;flex-direction:row}.chat-input .btns .icon-button+.icon-button[data-v-d30ba72e]{margin-inline-start:8px}.chat-input .btns .btn-send-container[data-v-d30ba72e]{flex:1;display:flex;justify-content:end}.chat-input .textarea-wrapper[data-v-d30ba72e]{position:relative;padding-block-end:8px}.chat-input .textarea-wrapper .textarea[data-v-d30ba72e]{display:block}.drag-mask[data-v-d30ba72e]{position:absolute;top:0;left:0;right:0;bottom:8px;background-color:#00000080;color:#fff;font-size:1.2rem;display:flex;justify-content:center;align-items:center;border-radius:4px;border:2px dashed var(--md-sys-color-primary)}.chat-items-container[data-v-d30ba72e]{overflow-y:scroll;display:flex;flex:1 1 auto;background-color:var(--md-sys-color-surface);border-top-left-radius:var(--plain-shape-l)}.chat-items-container>div[data-v-d30ba72e]{width:100%}.chat-content[data-v-d30ba72e]{margin-top:8px}.theme-changer[data-v-2b618255]{position:relative;display:flex;flex-direction:column;margin:var(--plain-spacing-m) var(--plain-spacing-l)}.theme-changer>*[data-v-2b618255]{margin-block-end:var(--plain-spacing-l)}.theme-changer>*[data-v-2b618255]:last-child{margin-block-end:0}input[data-v-2b618255]{border:none;background:none}#hex[data-v-2b618255]{border-radius:var(--plain-shape-l);background-color:var(--md-sys-color-surface-variant);color:var(--md-sys-color-on-surface-variant);--md-slider-inactive-track-color: var(--md-sys-color-on-surface-variant);display:flex;padding:12px 24px;align-items:center}#hex .label[data-v-2b618255]{flex-grow:1}#hex .input-wrapper[data-v-2b618255]{width:48px;height:48px;box-sizing:border-box;border:1px solid var(--md-sys-color-on-secondary-container);position:relative}#hex .input-wrapper[data-v-2b618255],#hex md-focus-ring[data-v-2b618255]{border-radius:50%}.overflow[data-v-2b618255]{width:100%;height:100%;overflow:hidden;border-radius:inherit;display:flex;align-items:center;justify-content:center}#hex input[data-v-2b618255]{min-width:200%;min-height:200%}.h-action[data-v-ac6560d3]{padding:0 8px}.context-menu[data-v-06bccd9a]{display:inline-block;overflow:visible;position:absolute;box-shadow:var(--md-sys-color-shadow) 0 1px 2px 0;background-color:var(--md-sys-color-surface-container);border-radius:4px;opacity:0}.context-menu.ready[data-v-06bccd9a]{opacity:1}.context-menu-items[data-v-06bccd9a]{position:relative;overflow-y:auto;border-radius:4px;max-height:60vh;min-width:200px}.context-menu-updown[data-v-06bccd9a]{position:absolute;left:0;right:0;height:10px;box-shadow:var(--md-sys-color-shadow) 0 1px 2px 0;background-color:var(--md-sys-color-surface-container);border-radius:4px;-webkit-user-select:none;user-select:none;cursor:pointer}.context-menu-updown .right-arrow[data-v-06bccd9a]{display:inline-block;position:absolute;height:12px;left:50%;top:0}.context-menu-updown.up[data-v-06bccd9a]{top:0}.context-menu-updown.down[data-v-06bccd9a]{bottom:0}.context-menu-updown.up .right-arrow[data-v-06bccd9a]{transform:translate(-50%) rotate(270deg)}.context-menu-updown.down .right-arrow[data-v-06bccd9a]{transform:translate(-50%) rotate(90deg)}.right-arrow[data-v-06bccd9a]{width:14px;height:14px;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjI1MjA3MjM5MzE1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjIxMjYzIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjUwIiBoZWlnaHQ9IjUwIj48ZGVmcz48c3R5bGUgdHlwZT0idGV4dC9jc3MiPjwvc3R5bGU+PC9kZWZzPjxwYXRoIGQ9Ik0zMDcuMDE4IDQ5LjQ0NWMxMS41MTcgMCAyMy4wMzIgNC4zOTQgMzEuODE5IDEzLjE4TDc1Ni40MDQgNDgwLjE4YzguNDM5IDguNDM4IDEzLjE4MSAxOS44ODUgMTMuMTgxIDMxLjgycy00Ljc0MSAyMy4zOC0xMy4xODEgMzEuODJMMzM4LjgzOCA5NjEuMzc2Yy0xNy41NzQgMTcuNTczLTQ2LjA2NSAxNy41NzMtNjMuNjQtMC4wMDEtMTcuNTczLTE3LjU3My0xNy41NzMtNDYuMDY1IDAuMDAxLTYzLjY0TDY2MC45NDQgNTEyIDI3NS4xOTggMTI2LjI2NWMtMTcuNTc0LTE3LjU3My0xNy41NzQtNDYuMDY2LTAuMDAxLTYzLjY0QzI4My45ODUgNTMuODM5IDI5NS41MDEgNDkuNDQ1IDMwNy4wMTggNDkuNDQ1eiIgcC1pZD0iMjEyNjQiPjwvcGF0aD48L3N2Zz4=);background-size:12px;background-repeat:no-repeat}.layout[data-v-38cc53e3]{display:grid;grid-template-areas:"head head quick-content" "page-content quick quick-content";grid-template-columns:1fr auto auto;grid-template-rows:auto 1fr;height:100vh;min-width:var(--screen-min-width)}.quick[data-v-38cc53e3]{display:flex;flex-direction:column;height:100%;position:relative;width:56px;grid-area:quick}.quick .q-action[data-v-38cc53e3]{margin:8px}.quick-content[data-v-38cc53e3]{grid-area:quick-content;overflow:hidden}header[data-v-38cc53e3]{height:var(--plain-top-app-bar-height);grid-area:head;inset:0 0 auto 0;display:flex;box-sizing:border-box;color:var(--md-sys-color-on-surface)}.tab-items[data-v-38cc53e3]{display:flex;white-space:nowrap}.tab-items .icon-button *[data-v-38cc53e3]:is(svg){width:12px;height:12px}.tab-item[data-v-38cc53e3]{outline:none;cursor:pointer;box-sizing:border-box;-webkit-user-select:none;user-select:none;text-align:center;border-bottom:3px solid transparent}.tab-item.active[data-v-38cc53e3]{border-color:var(--md-sys-color-primary);color:var(--md-sys-color-primary)}.tab-item:first-child span[data-v-38cc53e3]{padding-inline-end:16px}.tab-item span[data-v-38cc53e3]{padding:8px 8px 8px 16px;display:inline-block}.tab-item .tab-icon[data-v-38cc53e3]{margin-inline:8px}.default-content[data-v-38cc53e3]{width:100%;display:flex;align-items:center}.default-content .start[data-v-38cc53e3]{flex:1;box-sizing:border-box;overflow:auto;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none}.default-content .start[data-v-38cc53e3]::-webkit-scrollbar{display:none}.default-content .end[data-v-38cc53e3]{margin-left:auto;display:flex}.page-content[data-v-38cc53e3]{grid-area:page-content;height:calc(100vh - 64px)}.alert-danger[data-v-38cc53e3]{width:360px;margin:100px auto;text-align:center}@font-face{font-family:Google Sans;font-style:normal;font-weight:400;font-display:swap;src:url(/assets/regular.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Google Sans Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/assets/mono.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{font-family:Google Sans,Roboto,system-ui;--md-ref-typeface-brand: "Google Sans", Roboto, system-ui;--md-ref-typeface-plain: "Google Sans", Roboto, system-ui;--md-sys-color-warning-container: #fff3cd;--md-sys-color-on-warning-container: #664d03;background-color:var(--md-sys-color-surface-container);color:var(--md-sys-color-on-surface);--plain-display-xl-font-size: 88px;--plain-display-m-font-size: 45px;--plain-title-l-font-size: 22px;--plain-title-m-font-size: 16px;--plain-title-s-font-size: 14px;--plain-body-l-font-size: 16px;--plain-body-m-font-size: 14px;--plain-headline-s-font-size: 24px;--plain-label-s-font-size: 11px;--plain-shape-xl: 28px;--plain-shape-l: 16px;--plain-shape-m: 12px;--plain-shape-s: 8px;--plain-shape-xs: 4px;--plain-spacing-xl: 28px;--plain-spacing-l: 16px;--plain-spacing-m: 12px;--plain-spacing-s: 8px;--plain-top-app-bar-height: calc(48px + 2 * var(--plain-spacing-s));--_scrollbar-width: 8px;--border-radius-sm: 4px;--screen-min-width: 992px;--quick-content-width: 330px;scrollbar-color:var(--md-sys-color-primary) transparent;scrollbar-width:thin;scroll-padding-block-start:calc(var(--plain-top-app-bar-height) + var(--plain-top-app-bar-padding-block) * 2)}::-webkit-scrollbar{background-color:transparent;width:var(--_scrollbar-width)}::-webkit-scrollbar-thumb{background-color:var(--md-sys-color-primary);border-radius:calc(var(--_scrollbar-width) / 2)}::slotted(*){--md-list-item-container-shape: var(--plain-shape-xl);--md-focus-ring-shape: var(--plain-shape-xl)}@media screen and (max-width: 600px){:root{--plain-display-xl-font-size: 55px;--plain-title-l-font-size: 16px;--plain-body-l-font-size: 14px;--plain-body-m-font-size: 12px;--plain-spacing-xl: 16px;--plain-spacing-l: 12px}}html{width:100%;height:100%;margin:0}body{margin:0;line-height:1.5}a{color:var(--md-sys-color-primary);text-decoration:none}a:hover,a:focus-visible{text-decoration:underline}pre{font-family:inherit;line-height:1.5;margin:0;white-space:pre-wrap;font-size:1rem;word-break:break-all}.tooltip{position:absolute;text-align:center;background-color:var(--md-sys-color-on-surface);color:var(--md-sys-color-surface);padding:4px 8px;border-radius:4px;font-size:.8rem;box-shadow:0 2px 4px #0003;z-index:9999}.nowrap{word-break:keep-all;white-space:nowrap}:root{--md-breakpoint-xs: 0;--md-breakpoint-sm: 576px;--md-breakpoint-md: 768px;--md-breakpoint-lg: 992px;--md-breakpoint-xl: 1200px;--md-breakpoint-xxl: 1400px}.grid{display:grid;grid-template-rows:repeat(var(--md-rows, 1),1fr);grid-template-columns:repeat(var(--md-columns, 12),1fr);gap:var(--md-gap, 1.5rem)}.grid .g-col-1{grid-column:auto/span 1}.grid .g-col-2{grid-column:auto/span 2}.grid .g-col-3{grid-column:auto/span 3}.grid .g-col-4{grid-column:auto/span 4}.grid .g-col-5{grid-column:auto/span 5}.grid .g-col-6{grid-column:auto/span 6}.grid .g-col-7{grid-column:auto/span 7}.grid .g-col-8{grid-column:auto/span 8}.grid .g-col-9{grid-column:auto/span 9}.grid .g-col-10{grid-column:auto/span 10}.grid .g-col-11{grid-column:auto/span 11}.grid .g-col-12{grid-column:auto/span 12}.grid .g-start-1{grid-column-start:1}.grid .g-start-2{grid-column-start:2}.grid .g-start-3{grid-column-start:3}.grid .g-start-4{grid-column-start:4}.grid .g-start-5{grid-column-start:5}.grid .g-start-6{grid-column-start:6}.grid .g-start-7{grid-column-start:7}.grid .g-start-8{grid-column-start:8}.grid .g-start-9{grid-column-start:9}.grid .g-start-10{grid-column-start:10}.grid .g-start-11{grid-column-start:11}@media (min-width: 576px){.grid .g-col-sm-1{grid-column:auto/span 1}.grid .g-col-sm-2{grid-column:auto/span 2}.grid .g-col-sm-3{grid-column:auto/span 3}.grid .g-col-sm-4{grid-column:auto/span 4}.grid .g-col-sm-5{grid-column:auto/span 5}.grid .g-col-sm-6{grid-column:auto/span 6}.grid .g-col-sm-7{grid-column:auto/span 7}.grid .g-col-sm-8{grid-column:auto/span 8}.grid .g-col-sm-9{grid-column:auto/span 9}.grid .g-col-sm-10{grid-column:auto/span 10}.grid .g-col-sm-11{grid-column:auto/span 11}.grid .g-col-sm-12{grid-column:auto/span 12}.grid .g-start-sm-1{grid-column-start:1}.grid .g-start-sm-2{grid-column-start:2}.grid .g-start-sm-3{grid-column-start:3}.grid .g-start-sm-4{grid-column-start:4}.grid .g-start-sm-5{grid-column-start:5}.grid .g-start-sm-6{grid-column-start:6}.grid .g-start-sm-7{grid-column-start:7}.grid .g-start-sm-8{grid-column-start:8}.grid .g-start-sm-9{grid-column-start:9}.grid .g-start-sm-10{grid-column-start:10}.grid .g-start-sm-11{grid-column-start:11}}@media (min-width: 768px){.grid .g-col-md-1{grid-column:auto/span 1}.grid .g-col-md-2{grid-column:auto/span 2}.grid .g-col-md-3{grid-column:auto/span 3}.grid .g-col-md-4{grid-column:auto/span 4}.grid .g-col-md-5{grid-column:auto/span 5}.grid .g-col-md-6{grid-column:auto/span 6}.grid .g-col-md-7{grid-column:auto/span 7}.grid .g-col-md-8{grid-column:auto/span 8}.grid .g-col-md-9{grid-column:auto/span 9}.grid .g-col-md-10{grid-column:auto/span 10}.grid .g-col-md-11{grid-column:auto/span 11}.grid .g-col-md-12{grid-column:auto/span 12}.grid .g-start-md-1{grid-column-start:1}.grid .g-start-md-2{grid-column-start:2}.grid .g-start-md-3{grid-column-start:3}.grid .g-start-md-4{grid-column-start:4}.grid .g-start-md-5{grid-column-start:5}.grid .g-start-md-6{grid-column-start:6}.grid .g-start-md-7{grid-column-start:7}.grid .g-start-md-8{grid-column-start:8}.grid .g-start-md-9{grid-column-start:9}.grid .g-start-md-10{grid-column-start:10}.grid .g-start-md-11{grid-column-start:11}}@media (min-width: 992px){.grid .g-col-lg-1{grid-column:auto/span 1}.grid .g-col-lg-2{grid-column:auto/span 2}.grid .g-col-lg-3{grid-column:auto/span 3}.grid .g-col-lg-4{grid-column:auto/span 4}.grid .g-col-lg-5{grid-column:auto/span 5}.grid .g-col-lg-6{grid-column:auto/span 6}.grid .g-col-lg-7{grid-column:auto/span 7}.grid .g-col-lg-8{grid-column:auto/span 8}.grid .g-col-lg-9{grid-column:auto/span 9}.grid .g-col-lg-10{grid-column:auto/span 10}.grid .g-col-lg-11{grid-column:auto/span 11}.grid .g-col-lg-12{grid-column:auto/span 12}.grid .g-start-lg-1{grid-column-start:1}.grid .g-start-lg-2{grid-column-start:2}.grid .g-start-lg-3{grid-column-start:3}.grid .g-start-lg-4{grid-column-start:4}.grid .g-start-lg-5{grid-column-start:5}.grid .g-start-lg-6{grid-column-start:6}.grid .g-start-lg-7{grid-column-start:7}.grid .g-start-lg-8{grid-column-start:8}.grid .g-start-lg-9{grid-column-start:9}.grid .g-start-lg-10{grid-column-start:10}.grid .g-start-lg-11{grid-column-start:11}}@media (min-width: 1200px){.grid .g-col-xl-1{grid-column:auto/span 1}.grid .g-col-xl-2{grid-column:auto/span 2}.grid .g-col-xl-3{grid-column:auto/span 3}.grid .g-col-xl-4{grid-column:auto/span 4}.grid .g-col-xl-5{grid-column:auto/span 5}.grid .g-col-xl-6{grid-column:auto/span 6}.grid .g-col-xl-7{grid-column:auto/span 7}.grid .g-col-xl-8{grid-column:auto/span 8}.grid .g-col-xl-9{grid-column:auto/span 9}.grid .g-col-xl-10{grid-column:auto/span 10}.grid .g-col-xl-11{grid-column:auto/span 11}.grid .g-col-xl-12{grid-column:auto/span 12}.grid .g-start-xl-1{grid-column-start:1}.grid .g-start-xl-2{grid-column-start:2}.grid .g-start-xl-3{grid-column-start:3}.grid .g-start-xl-4{grid-column-start:4}.grid .g-start-xl-5{grid-column-start:5}.grid .g-start-xl-6{grid-column-start:6}.grid .g-start-xl-7{grid-column-start:7}.grid .g-start-xl-8{grid-column-start:8}.grid .g-start-xl-9{grid-column-start:9}.grid .g-start-xl-10{grid-column-start:10}.grid .g-start-xl-11{grid-column-start:11}}@media (min-width: 1400px){.grid .g-col-xxl-1{grid-column:auto/span 1}.grid .g-col-xxl-2{grid-column:auto/span 2}.grid .g-col-xxl-3{grid-column:auto/span 3}.grid .g-col-xxl-4{grid-column:auto/span 4}.grid .g-col-xxl-5{grid-column:auto/span 5}.grid .g-col-xxl-6{grid-column:auto/span 6}.grid .g-col-xxl-7{grid-column:auto/span 7}.grid .g-col-xxl-8{grid-column:auto/span 8}.grid .g-col-xxl-9{grid-column:auto/span 9}.grid .g-col-xxl-10{grid-column:auto/span 10}.grid .g-col-xxl-11{grid-column:auto/span 11}.grid .g-col-xxl-12{grid-column:auto/span 12}.grid .g-start-xxl-1{grid-column-start:1}.grid .g-start-xxl-2{grid-column-start:2}.grid .g-start-xxl-3{grid-column-start:3}.grid .g-start-xxl-4{grid-column-start:4}.grid .g-start-xxl-5{grid-column-start:5}.grid .g-start-xxl-6{grid-column-start:6}.grid .g-start-xxl-7{grid-column-start:7}.grid .g-start-xxl-8{grid-column-start:8}.grid .g-start-xxl-9{grid-column-start:9}.grid .g-start-xxl-10{grid-column-start:10}.grid .g-start-xxl-11{grid-column-start:11}}.g-0,.gx-0{--md-gutter-x: 0}.g-0,.gy-0{--md-gutter-y: 0}.g-1,.gx-1{--md-gutter-x: .25rem}.g-1,.gy-1{--md-gutter-y: .25rem}.g-2,.gx-2{--md-gutter-x: .5rem}.g-2,.gy-2{--md-gutter-y: .5rem}.g-3,.gx-3{--md-gutter-x: 1rem}.g-3,.gy-3{--md-gutter-y: 1rem}.g-4,.gx-4{--md-gutter-x: 1.5rem}.g-4,.gy-4{--md-gutter-y: 1.5rem}.g-5,.gx-5{--md-gutter-x: 3rem}.g-5,.gy-5{--md-gutter-y: 3rem}@media (min-width: 576px){.g-sm-0,.gx-sm-0{--md-gutter-x: 0}.g-sm-0,.gy-sm-0{--md-gutter-y: 0}.g-sm-1,.gx-sm-1{--md-gutter-x: .25rem}.g-sm-1,.gy-sm-1{--md-gutter-y: .25rem}.g-sm-2,.gx-sm-2{--md-gutter-x: .5rem}.g-sm-2,.gy-sm-2{--md-gutter-y: .5rem}.g-sm-3,.gx-sm-3{--md-gutter-x: 1rem}.g-sm-3,.gy-sm-3{--md-gutter-y: 1rem}.g-sm-4,.gx-sm-4{--md-gutter-x: 1.5rem}.g-sm-4,.gy-sm-4{--md-gutter-y: 1.5rem}.g-sm-5,.gx-sm-5{--md-gutter-x: 3rem}.g-sm-5,.gy-sm-5{--md-gutter-y: 3rem}}@media (min-width: 768px){.g-md-0,.gx-md-0{--md-gutter-x: 0}.g-md-0,.gy-md-0{--md-gutter-y: 0}.g-md-1,.gx-md-1{--md-gutter-x: .25rem}.g-md-1,.gy-md-1{--md-gutter-y: .25rem}.g-md-2,.gx-md-2{--md-gutter-x: .5rem}.g-md-2,.gy-md-2{--md-gutter-y: .5rem}.g-md-3,.gx-md-3{--md-gutter-x: 1rem}.g-md-3,.gy-md-3{--md-gutter-y: 1rem}.g-md-4,.gx-md-4{--md-gutter-x: 1.5rem}.g-md-4,.gy-md-4{--md-gutter-y: 1.5rem}.g-md-5,.gx-md-5{--md-gutter-x: 3rem}.g-md-5,.gy-md-5{--md-gutter-y: 3rem}}@media (min-width: 992px){.g-lg-0,.gx-lg-0{--md-gutter-x: 0}.g-lg-0,.gy-lg-0{--md-gutter-y: 0}.g-lg-1,.gx-lg-1{--md-gutter-x: .25rem}.g-lg-1,.gy-lg-1{--md-gutter-y: .25rem}.g-lg-2,.gx-lg-2{--md-gutter-x: .5rem}.g-lg-2,.gy-lg-2{--md-gutter-y: .5rem}.g-lg-3,.gx-lg-3{--md-gutter-x: 1rem}.g-lg-3,.gy-lg-3{--md-gutter-y: 1rem}.g-lg-4,.gx-lg-4{--md-gutter-x: 1.5rem}.g-lg-4,.gy-lg-4{--md-gutter-y: 1.5rem}.g-lg-5,.gx-lg-5{--md-gutter-x: 3rem}.g-lg-5,.gy-lg-5{--md-gutter-y: 3rem}}@media (min-width: 1200px){.g-xl-0,.gx-xl-0{--md-gutter-x: 0}.g-xl-0,.gy-xl-0{--md-gutter-y: 0}.g-xl-1,.gx-xl-1{--md-gutter-x: .25rem}.g-xl-1,.gy-xl-1{--md-gutter-y: .25rem}.g-xl-2,.gx-xl-2{--md-gutter-x: .5rem}.g-xl-2,.gy-xl-2{--md-gutter-y: .5rem}.g-xl-3,.gx-xl-3{--md-gutter-x: 1rem}.g-xl-3,.gy-xl-3{--md-gutter-y: 1rem}.g-xl-4,.gx-xl-4{--md-gutter-x: 1.5rem}.g-xl-4,.gy-xl-4{--md-gutter-y: 1.5rem}.g-xl-5,.gx-xl-5{--md-gutter-x: 3rem}.g-xl-5,.gy-xl-5{--md-gutter-y: 3rem}}@media (min-width: 1400px){.g-xxl-0,.gx-xxl-0{--md-gutter-x: 0}.g-xxl-0,.gy-xxl-0{--md-gutter-y: 0}.g-xxl-1,.gx-xxl-1{--md-gutter-x: .25rem}.g-xxl-1,.gy-xxl-1{--md-gutter-y: .25rem}.g-xxl-2,.gx-xxl-2{--md-gutter-x: .5rem}.g-xxl-2,.gy-xxl-2{--md-gutter-y: .5rem}.g-xxl-3,.gx-xxl-3{--md-gutter-x: 1rem}.g-xxl-3,.gy-xxl-3{--md-gutter-y: 1rem}.g-xxl-4,.gx-xxl-4{--md-gutter-x: 1.5rem}.g-xxl-4,.gy-xxl-4{--md-gutter-y: 1.5rem}.g-xxl-5,.gx-xxl-5{--md-gutter-x: 3rem}.g-xxl-5,.gy-xxl-5{--md-gutter-y: 3rem}}.card{--md-card-spacer-y: 1rem;--md-card-spacer-x: 1rem;--md-card-title-spacer-y: .5rem;--md-card-border-width: 1px;--md-card-border-color: var(--md-sys-color-outline);--md-card-border-radius: 8px;--md-card-box-shadow: ;--md-card-inner-border-radius: subtract(var(--md-border-radius), var(--md-border-width));--md-card-cap-padding-y: .5rem;--md-card-cap-padding-x: 1rem;--md-card-cap-bg: rgba(var(--md-body-color-rgb), .03);--md-card-cap-color: ;--md-card-img-overlay-padding: 1rem;--md-card-group-margin: .75rem;position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-clip:border-box;border:var(--md-card-border-width) solid var(--md-card-border-color);border-radius:var(--md-card-border-radius)}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--md-card-inner-border-radius);border-top-right-radius:var(--md-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--md-card-inner-border-radius);border-bottom-left-radius:var(--md-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--md-card-spacer-y) var(--md-card-spacer-x)}.card-title{margin:0 0 var(--md-card-title-spacer-y) 0;font-size:1rem}.card-subtitle{margin-top:calc(-.5 * var(--md-card-title-spacer-y));margin-bottom:0;font-size:.875rem}.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:underline}.card-link+.card-link{margin-left:var(--md-card-spacer-x)}.card-header{padding:var(--md-card-cap-padding-y) var(--md-card-cap-padding-x);margin-bottom:0;color:var(--md-card-cap-color);background-color:var(--md-card-cap-bg);border-bottom:var(--md-card-border-width) solid var(--md-card-border-color)}.card-header:first-child{border-top-left-radius:var(--md-card-inner-border-radius);border-top-right-radius:var(--md-card-inner-border-radius)}.card-footer{padding:var(--md-card-cap-padding-y) var(--md-card-cap-padding-x);color:var(--md-card-cap-color);background-color:var(--md-card-cap-bg);border-top:var(--md-card-border-width) solid var(--md-card-border-color)}.card-footer:last-child{border-bottom-left-radius:var(--md-card-inner-border-radius);border-bottom-right-radius:var(--md-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--md-card-cap-padding-x));margin-bottom:calc(-1 * var(--md-card-cap-padding-y));margin-left:calc(-.5 * var(--md-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--md-card-bg);border-bottom-color:var(--md-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--md-card-cap-padding-x));margin-left:calc(-.5 * var(--md-card-cap-padding-x))}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:var(--md-card-img-overlay-padding);border-radius:var(--md-card-inner-border-radius)}.card-img,.card-img-top,.card-img-bottom{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--md-card-inner-border-radius);border-top-right-radius:var(--md-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-left-radius:var(--md-card-inner-border-radius);border-bottom-right-radius:var(--md-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--md-card-group-margin)}@media (min-width: 576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-img-top,.card-group>.card:not(:last-child) .card-header{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-img-bottom,.card-group>.card:not(:last-child) .card-footer{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-img-top,.card-group>.card:not(:first-child) .card-header{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-img-bottom,.card-group>.card:not(:first-child) .card-footer{border-bottom-left-radius:0}}@font-face{font-family:KaTeX_AMS;src:url(fonts/KaTeX_AMS-Regular.eot);src:url(fonts/KaTeX_AMS-Regular.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXAMS-Regular.woff2) format("woff2"),url(/assets/KaTeXAMS-Regular.woff) format("woff"),url(/assets/KaTeXAMS-Regular.ttf) format("ttf");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(fonts/KaTeX_Caligraphic-Bold.eot);src:url(fonts/KaTeX_Caligraphic-Bold.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXCaligraphic-Bold.woff2) format("woff2"),url(/assets/KaTeXCaligraphic-Bold.woff) format("woff"),url(/assets/KaTeXCaligraphic-Bold.ttf) format("ttf");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(fonts/KaTeX_Caligraphic-Regular.eot);src:url(fonts/KaTeX_Caligraphic-Regular.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXCaligraphic-Regular.woff2) format("woff2"),url(/assets/KaTeXCaligraphic-Regular.woff) format("woff"),url(/assets/KaTeXCaligraphic-Regular.ttf) format("ttf");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(fonts/KaTeX_Fraktur-Bold.eot);src:url(fonts/KaTeX_Fraktur-Bold.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXFraktur-Bold.woff2) format("woff2"),url(/assets/KaTeXFraktur-Bold.woff) format("woff"),url(/assets/KaTeXFraktur-Bold.ttf) format("ttf");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(fonts/KaTeX_Fraktur-Regular.eot);src:url(fonts/KaTeX_Fraktur-Regular.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXFraktur-Regular.woff2) format("woff2"),url(/assets/KaTeXFraktur-Regular.woff) format("woff"),url(/assets/KaTeXFraktur-Regular.ttf) format("ttf");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(fonts/KaTeX_Main-Bold.eot);src:url(fonts/KaTeX_Main-Bold.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXMain-Bold.woff2) format("woff2"),url(/assets/KaTeXMain-Bold.woff) format("woff"),url(/assets/KaTeXMain-Bold.ttf) format("ttf");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(fonts/KaTeX_Main-Italic.eot);src:url(fonts/KaTeX_Main-Italic.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXMain-Italic.woff2) format("woff2"),url(/assets/KaTeXMain-Italic.woff) format("woff"),url(/assets/KaTeXMain-Italic.ttf) format("ttf");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(fonts/KaTeX_Main-Regular.eot);src:url(fonts/KaTeX_Main-Regular.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXMain-Regular.woff2) format("woff2"),url(/assets/KaTeXMain-Regular.woff) format("woff"),url(/assets/KaTeXMain-Regular.ttf) format("ttf");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Math;src:url(fonts/KaTeX_Math-Italic.eot);src:url(fonts/KaTeX_Math-Italic.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXMath-Italic.woff2) format("woff2"),url(/assets/KaTeXMath-Italic.woff) format("woff"),url(/assets/KaTeXMath-Italic.ttf) format("ttf");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_SansSerif;src:url(fonts/KaTeX_SansSerif-Regular.eot);src:url(fonts/KaTeX_SansSerif-Regular.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXSansSerif-Regular.woff2) format("woff2"),url(/assets/KaTeXSansSerif-Regular.woff) format("woff"),url(/assets/KaTeXSansSerif-Regular.ttf) format("ttf");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Script;src:url(fonts/KaTeX_Script-Regular.eot);src:url(fonts/KaTeX_Script-Regular.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXScript-Regular.woff2) format("woff2"),url(/assets/KaTeXScript-Regular.woff) format("woff"),url(/assets/KaTeXScript-Regular.ttf) format("ttf");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size1;src:url(fonts/KaTeX_Size1-Regular.eot);src:url(fonts/KaTeX_Size1-Regular.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXSize1-Regular.woff2) format("woff2"),url(/assets/KaTeXSize1-Regular.woff) format("woff"),url(/assets/KaTeXSize1-Regular.ttf) format("ttf");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size2;src:url(fonts/KaTeX_Size2-Regular.eot);src:url(fonts/KaTeX_Size2-Regular.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXSize2-Regular.woff2) format("woff2"),url(/assets/KaTeXSize2-Regular.woff) format("woff"),url(/assets/KaTeXSize2-Regular.ttf) format("ttf");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size3;src:url(fonts/KaTeX_Size3-Regular.eot);src:url(fonts/KaTeX_Size3-Regular.eot#iefix) format("embedded-opentype"),url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC) format("woff2"),url(/assets/KaTeXSize3-Regular.woff) format("woff"),url(/assets/KaTeXSize3-Regular.ttf) format("ttf");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size4;src:url(fonts/KaTeX_Size4-Regular.eot);src:url(fonts/KaTeX_Size4-Regular.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXSize4-Regular.woff2) format("woff2"),url(/assets/KaTeXSize4-Regular.woff) format("woff"),url(/assets/KaTeXSize4-Regular.ttf) format("ttf");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Typewriter;src:url(fonts/KaTeX_Typewriter-Regular.eot);src:url(fonts/KaTeX_Typewriter-Regular.eot#iefix) format("embedded-opentype"),url(/assets/KaTeXTypewriter-Regular.woff2) format("woff2"),url(/assets/KaTeXTypewriter-Regular.woff) format("woff"),url(/assets/KaTeXTypewriter-Regular.ttf) format("ttf");font-weight:400;font-style:normal}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:inline-block}.katex{font:400 1.21em KaTeX_Main;line-height:1.2;white-space:nowrap;text-indent:0}.katex .katex-html{display:inline-block}.katex .katex-mathml{position:absolute;clip:rect(1px,1px,1px,1px);padding:0;border:0;height:1px;width:1px;overflow:hidden}.katex .base,.katex .strut{display:inline-block}.katex .mathit{font-family:KaTeX_Math;font-style:italic}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .amsrm,.katex .mathbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak{font-family:KaTeX_Fraktur}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr{font-family:KaTeX_Script}.katex .mathsf{font-family:KaTeX_SansSerif}.katex .mainit{font-family:KaTeX_Main;font-style:italic}.katex .textstyle>.mord+.mop{margin-left:.16667em}.katex .textstyle>.mord+.mbin{margin-left:.22222em}.katex .textstyle>.mord+.mrel{margin-left:.27778em}.katex .textstyle>.mop+.mop,.katex .textstyle>.mop+.mord,.katex .textstyle>.mord+.minner{margin-left:.16667em}.katex .textstyle>.mop+.mrel{margin-left:.27778em}.katex .textstyle>.mop+.minner{margin-left:.16667em}.katex .textstyle>.mbin+.minner,.katex .textstyle>.mbin+.mop,.katex .textstyle>.mbin+.mopen,.katex .textstyle>.mbin+.mord{margin-left:.22222em}.katex .textstyle>.mrel+.minner,.katex .textstyle>.mrel+.mop,.katex .textstyle>.mrel+.mopen,.katex .textstyle>.mrel+.mord{margin-left:.27778em}.katex .textstyle>.mclose+.mop{margin-left:.16667em}.katex .textstyle>.mclose+.mbin{margin-left:.22222em}.katex .textstyle>.mclose+.mrel{margin-left:.27778em}.katex .textstyle>.mclose+.minner,.katex .textstyle>.minner+.mop,.katex .textstyle>.minner+.mord,.katex .textstyle>.mpunct+.mclose,.katex .textstyle>.mpunct+.minner,.katex .textstyle>.mpunct+.mop,.katex .textstyle>.mpunct+.mopen,.katex .textstyle>.mpunct+.mord,.katex .textstyle>.mpunct+.mpunct,.katex .textstyle>.mpunct+.mrel{margin-left:.16667em}.katex .textstyle>.minner+.mbin{margin-left:.22222em}.katex .textstyle>.minner+.mrel{margin-left:.27778em}.katex .mclose+.mop,.katex .minner+.mop,.katex .mop+.mop,.katex .mop+.mord,.katex .mord+.mop,.katex .textstyle>.minner+.minner,.katex .textstyle>.minner+.mopen,.katex .textstyle>.minner+.mpunct{margin-left:.16667em}.katex .reset-textstyle.textstyle{font-size:1em}.katex .reset-textstyle.scriptstyle{font-size:.7em}.katex .reset-textstyle.scriptscriptstyle{font-size:.5em}.katex .reset-scriptstyle.textstyle{font-size:1.42857em}.katex .reset-scriptstyle.scriptstyle{font-size:1em}.katex .reset-scriptstyle.scriptscriptstyle{font-size:.71429em}.katex .reset-scriptscriptstyle.textstyle{font-size:2em}.katex .reset-scriptscriptstyle.scriptstyle{font-size:1.4em}.katex .reset-scriptscriptstyle.scriptscriptstyle{font-size:1em}.katex .style-wrap{position:relative}.katex .vlist{display:inline-block}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist .baseline-fix{display:inline-table;table-layout:fixed}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{width:100%}.katex .mfrac .frac-line:before{border-bottom-style:solid;border-bottom-width:1px;content:"";display:block}.katex .mfrac .frac-line:after{border-bottom-style:solid;border-bottom-width:.04em;content:"";display:block;margin-top:-1px}.katex .mspace{display:inline-block}.katex .mspace.negativethinspace{margin-left:-.16667em}.katex .mspace.thinspace{width:.16667em}.katex .mspace.mediumspace{width:.22222em}.katex .mspace.thickspace{width:.27778em}.katex .mspace.enspace{width:.5em}.katex .mspace.quad{width:1em}.katex .mspace.qquad{width:2em}.katex .llap,.katex .rlap{width:0;position:relative}.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .rlap>.inner{left:0}.katex .katex-logo .a{font-size:.75em;margin-left:-.32em;position:relative;top:-.2em}.katex .katex-logo .t{margin-left:-.23em}.katex .katex-logo .e{margin-left:-.1667em;position:relative;top:.2155em}.katex .katex-logo .x{margin-left:-.125em}.katex .rule{display:inline-block;border-style:solid;position:relative}.katex .overline .overline-line{width:100%}.katex .overline .overline-line:before{border-bottom-style:solid;border-bottom-width:1px;content:"";display:block}.katex .overline .overline-line:after{border-bottom-style:solid;border-bottom-width:.04em;content:"";display:block;margin-top:-1px}.katex .sqrt>.sqrt-sign{position:relative}.katex .sqrt .sqrt-line{width:100%}.katex .sqrt .sqrt-line:before{border-bottom-style:solid;border-bottom-width:1px;content:"";display:block}.katex .sqrt .sqrt-line:after{border-bottom-style:solid;border-bottom-width:.04em;content:"";display:block;margin-top:-1px}.katex .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.katex .fontsize-ensurer,.katex .sizing{display:inline-block}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:2em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:3.46em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:4.14em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.98em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.71428571em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.14285714em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.28571429em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.42857143em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.71428571em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2.05714286em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.47142857em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.95714286em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.55714286em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.875em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.125em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.25em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.5em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.8em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.1625em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.5875em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:3.1125em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.55555556em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.77777778em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.88888889em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.11111111em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.6em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.92222222em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.3em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.76666667em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.7em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.8em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.9em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.2em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.44em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.73em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:2.07em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.49em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.41666667em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.58333333em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.66666667em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.75em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.83333333em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44166667em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.725em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.075em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.34722222em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.48611111em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.55555556em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.625em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.69444444em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.83333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.20138889em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.4375em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72916667em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.28901734em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.40462428em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.46242775em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.52023121em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.57803468em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.69364162em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.83236994em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.19653179em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.43930636em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.24154589em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.33816425em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.38647343em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.43478261em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.48309179em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.57971014em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.69565217em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.83574879em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20289855em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.20080321em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.2811245em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.32128514em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.36144578em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.40160643em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48192771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.57831325em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.69477912em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.8313253em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist>span,.katex .op-limits>.vlist>span{text-align:center}.katex .accent .accent-body>span{width:0}.katex .accent .accent-body.accent-vec>span{position:relative;left:.326em}.katex .mtable .vertical-separator{display:inline-block;margin:0 -.025em;border-right:.05em solid #000}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist{text-align:center}.katex .mtable .col-align-l>.vlist{text-align:left}.katex .mtable .col-align-r>.vlist{text-align:right}md-dialog{min-width:360px}md-outlined-select::part(menu){max-height:50vh;z-index:999}md-menu::part(list){max-height:50vh}md-chip-set{display:flex;gap:8px;margin-block-end:16px;flex-wrap:wrap}md-chip-set md-filter-chip{padding-block:8px}.icon-button+md-outlined-button{margin-inline-start:8px}md-outlined-button+md-outlined-button{margin-inline-start:8px}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0}.table{border-color:var(--md-sys-color-outline);border-collapse:collapse;border-radius:4px;border-style:hidden;box-shadow:0 0 0 1px var(--md-sys-color-outline);width:100%;vertical-align:top}.table>:not(caption)>*>*{padding:.4rem;border-bottom-width:1px;word-break:break-all}.table th{word-break:keep-all;white-space:nowrap}.table td{vertical-align:middle}.table td .tags{display:flex;flex-wrap:wrap}.table td .tags .badge{margin:2px;cursor:pointer}.table>tbody{vertical-align:inherit}.table>:not(:last-child)>:last-child>*{border-bottom-color:var(--md-sys-color-outline)}.table tbody tr:hover,.table tr.selected{background-color:var(--md-sys-color-on-surface-selected)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:1px;margin-bottom:1.5rem}td .action-btns{display:flex;align-items:center}audio::-webkit-media-controls-play-button,audio::-webkit-media-controls-panel{background-color:var(--md-sys-color-surface)}:root.dark audio::-webkit-media-controls-play-button,:root.dark audio::-webkit-media-controls-panel{background-color:#ccc}audio::-webkit-media-controls-current-time-display,audio::-webkit-media-controls-time-remaining-display{text-shadow:none}.pagination{display:flex;list-style:none;justify-content:center;padding-bottom:24px;margin:0}.page-link{position:relative;display:block;padding:.375rem .825rem}.page-link:hover{text-decoration:none}.page-item.active .page-link{border:1px solid currentColor;border-radius:var(--border-radius-sm)}.page-item.disabled .page-link{pointer-events:none}.md-container{padding-bottom:32px;line-height:1.5;word-wrap:break-word}.md-container p>img:first-child{display:block}.md-container .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom}.md-container h1:hover .anchor .octicon-link:before,.md-container h2:hover .anchor .octicon-link:before,.md-container h3:hover .anchor .octicon-link:before,.md-container h4:hover .anchor .octicon-link:before,.md-container h5:hover .anchor .octicon-link:before,.md-container h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:" ";display:inline-block;background-color:currentColor;-webkit-mask-image:url("data:image/svg+xml,");mask-image:url("data:image/svg+xml,")}.md-container details,.md-container figcaption,.md-container figure{display:block}.md-container summary{display:list-item}.md-container [hidden]{display:none!important}.md-container a{color:#0969da}.md-container abbr[title]{border-bottom:none;text-decoration:underline dotted}.md-container b,.md-container strong{font-weight:600}.md-container dfn{font-style:italic}.md-container h1{margin:.67em 0;font-weight:600;padding-bottom:.3em;font-size:2em;border-bottom:1px solid var(--md-sys-color-outline)}.md-container mark{background-color:#fff8c5;color:#24292f}.md-container small{font-size:90%}.md-container sub,.md-container sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.md-container sub{bottom:-.25em}.md-container sup{top:-.5em}.md-container img{border-style:none;max-width:100%;box-sizing:content-box;margin-bottom:16px}.md-container code,.md-container kbd,.md-container pre,.md-container samp{font-family:monospace;font-size:1em}.md-container figure{margin:1em 40px}.md-container hr{box-sizing:content-box;overflow:hidden;background:transparent;border-bottom:1px solid var(--md-sys-color-outline);height:.25em;padding:0;margin:24px 0;background-color:#d0d7de;border:0}.md-container input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.md-container [type=checkbox],.md-container [type=radio]{box-sizing:border-box;padding:0}.md-container [type=number]::-webkit-inner-spin-button,.md-container [type=number]::-webkit-outer-spin-button{height:auto}.md-container [type=search]::-webkit-search-cancel-button,.md-container [type=search]::-webkit-search-decoration{-webkit-appearance:none}.md-container ::-webkit-input-placeholder{color:inherit;opacity:.54}.md-container ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.md-container a:hover{text-decoration:underline}.md-container ::placeholder{color:#6e7781;opacity:1}.md-container hr:before{display:table;content:""}.md-container hr:after{display:table;clear:both;content:""}.md-container table{border-spacing:0;border-collapse:collapse;display:block;width:max-content;max-width:100%;overflow:auto}.md-container td,.md-container th{padding:0}.md-container details summary{cursor:pointer}.md-container details:not([open])>*:not(summary){display:none!important}.md-container a:focus,.md-container [role=button]:focus,.md-container input[type=radio]:focus,.md-container input[type=checkbox]:focus{outline:2px solid #0969da;outline-offset:-2px;box-shadow:none}.md-container a:focus:not(:focus-visible),.md-container [role=button]:focus:not(:focus-visible),.md-container input[type=radio]:focus:not(:focus-visible),.md-container input[type=checkbox]:focus:not(:focus-visible){outline:solid 1px transparent}.md-container a:focus-visible,.md-container [role=button]:focus-visible,.md-container input[type=radio]:focus-visible,.md-container input[type=checkbox]:focus-visible{outline:2px solid #0969da;outline-offset:-2px;box-shadow:none}.md-container a:not([class]):focus,.md-container a:not([class]):focus-visible,.md-container input[type=radio]:focus,.md-container input[type=radio]:focus-visible,.md-container input[type=checkbox]:focus,.md-container input[type=checkbox]:focus-visible{outline-offset:0}.md-container kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:#24292f;vertical-align:middle;background-color:#f6f8fa;border:solid 1px rgba(175,184,193,.2);border-bottom-color:#afb8c133;border-radius:6px;box-shadow:inset 0 -1px #afb8c133}.md-container h1,.md-container h2,.md-container h3,.md-container h4,.md-container h5,.md-container h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.md-container h2{font-weight:600;padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--md-sys-color-outline)}.md-container h3{font-weight:600;font-size:1.25em}.md-container h4{font-weight:600;font-size:1em}.md-container h5{font-weight:600;font-size:.875em}.md-container h6{font-weight:600;font-size:.85em;color:#57606a}.md-container p{margin-top:0;margin-bottom:10px}.md-container blockquote{margin:0;padding:0 1em;border-left:.25em solid var(--md-sys-color-outline)}.md-container ul,.md-container ol{margin-top:0;margin-bottom:0;padding-left:2em}.md-container ol ol,.md-container ul ol{list-style-type:lower-roman}.md-container ul ul ol,.md-container ul ol ol,.md-container ol ul ol,.md-container ol ol ol{list-style-type:lower-alpha}.md-container dd{margin-left:0}.md-container tt,.md-container code,.md-container samp{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.md-container pre{font-size:12px;word-wrap:normal;max-width:100%;overflow:auto}.md-container .octicon{display:inline-block;overflow:visible!important;vertical-align:text-bottom;fill:currentColor}.md-container input::-webkit-outer-spin-button,.md-container input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.md-container a:not([href]){color:inherit;text-decoration:none}.md-container .absent{color:#cf222e}.md-container .anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}.md-container .anchor:focus{outline:none}.md-container p,.md-container blockquote,.md-container ul,.md-container ol,.md-container dl,.md-container table,.md-container pre,.md-container details{margin-top:0;margin-bottom:16px}.md-container blockquote>:first-child{margin-top:0}.md-container blockquote>:last-child{margin-bottom:0}.md-container h1 .octicon-link,.md-container h2 .octicon-link,.md-container h3 .octicon-link,.md-container h4 .octicon-link,.md-container h5 .octicon-link,.md-container h6 .octicon-link{color:#24292f;vertical-align:middle;visibility:hidden}.md-container h1:hover .anchor,.md-container h2:hover .anchor,.md-container h3:hover .anchor,.md-container h4:hover .anchor,.md-container h5:hover .anchor,.md-container h6:hover .anchor{text-decoration:none}.md-container h1:hover .anchor .octicon-link,.md-container h2:hover .anchor .octicon-link,.md-container h3:hover .anchor .octicon-link,.md-container h4:hover .anchor .octicon-link,.md-container h5:hover .anchor .octicon-link,.md-container h6:hover .anchor .octicon-link{visibility:visible}.md-container h1 tt,.md-container h1 code,.md-container h2 tt,.md-container h2 code,.md-container h3 tt,.md-container h3 code,.md-container h4 tt,.md-container h4 code,.md-container h5 tt,.md-container h5 code,.md-container h6 tt,.md-container h6 code{padding:0 .2em;font-size:inherit}.md-container summary h1,.md-container summary h2,.md-container summary h3,.md-container summary h4,.md-container summary h5,.md-container summary h6{display:inline-block}.md-container summary h1 .anchor,.md-container summary h2 .anchor,.md-container summary h3 .anchor,.md-container summary h4 .anchor,.md-container summary h5 .anchor,.md-container summary h6 .anchor{margin-left:-40px}.md-container summary h1,.md-container summary h2{padding-bottom:0;border-bottom:0}.md-container ul.no-list,.md-container ol.no-list{padding:0;list-style-type:none}.md-container ol[type=a]{list-style-type:lower-alpha}.md-container ol[type=A]{list-style-type:upper-alpha}.md-container ol[type=i]{list-style-type:lower-roman}.md-container ol[type=I]{list-style-type:upper-roman}.md-container ol[type="1"]{list-style-type:decimal}.md-container div>ol:not([type]){list-style-type:decimal}.md-container ul ul,.md-container ul ol,.md-container ol ol,.md-container ol ul{margin-top:0;margin-bottom:0}.md-container li>p{margin-top:16px}.md-container li+li{margin-top:.25em}.md-container dl{padding:0}.md-container dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:600}.md-container dl dd{padding:0 16px;margin-bottom:16px}.md-container table th{font-weight:600}.md-container table th,.md-container table td{padding:6px 13px;border:1px solid var(--md-sys-color-outline)}.md-container table tr{border-top:1px solid var(--md-sys-color-outline)}.md-container img[align=right]{padding-left:20px}.md-container img[align=left]{padding-right:20px}.md-container .emoji{max-width:none;vertical-align:text-top;background-color:transparent}.md-container span.frame{display:block;overflow:hidden}.md-container span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid #d0d7de}.md-container span.frame span img{display:block;float:left}.md-container span.frame span span{display:block;padding:5px 0 0;clear:both;color:#24292f}.md-container span.align-center{display:block;overflow:hidden;clear:both}.md-container span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.md-container span.align-center span img{margin:0 auto;text-align:center}.md-container span.align-right{display:block;overflow:hidden;clear:both}.md-container span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.md-container span.align-right span img{margin:0;text-align:right}.md-container span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.md-container span.float-left span{margin:13px 0 0}.md-container span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.md-container span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.md-container code,.md-container tt{padding:.2em .4em;margin:0;font-size:85%;white-space:break-spaces;background-color:#afb8c133;border-radius:6px}.md-container code br,.md-container tt br{display:none}.md-container del code{text-decoration:inherit}.md-container samp{font-size:85%}.md-container pre code{font-size:100%}.md-container pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0}.md-container .highlight{margin-bottom:16px}.md-container .highlight pre{word-break:normal}.md-container .highlight pre,.md-container pre{padding:16px;border:1px solid var(--md-sys-color-outline);border-radius:6px}.md-container pre code,.md-container pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.md-container .csv-data td,.md-container .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.md-container .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:#ffffff;border:0}.md-container .csv-data tr{border-top:0}.md-container .csv-data th{font-weight:600;background:#f6f8fa;border-top:0}.md-container [data-footnote-ref]:before{content:"["}.md-container [data-footnote-ref]:after{content:"]"}.md-container .footnotes{font-size:12px;color:#57606a;border-top:1px solid #d0d7de}.md-container .footnotes ol{padding-left:16px}.md-container .footnotes ol ul{display:inline-block;padding-left:16px;margin-top:16px}.md-container .footnotes li{position:relative}.md-container .footnotes li:target:before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid #0969da;border-radius:6px}.md-container .footnotes li:target{color:#24292f}.md-container .footnotes .data-footnote-backref g-emoji{font-family:monospace}.md-container .pl-c{color:#6e7781}.md-container .pl-c1,.md-container .pl-s .pl-v{color:#0550ae}.md-container .pl-e,.md-container .pl-en{color:#8250df}.md-container .pl-smi,.md-container .pl-s .pl-s1{color:#24292f}.md-container .pl-ent{color:#116329}.md-container .pl-k{color:#cf222e}.md-container .pl-s,.md-container .pl-pds,.md-container .pl-s .pl-pse .pl-s1,.md-container .pl-sr,.md-container .pl-sr .pl-cce,.md-container .pl-sr .pl-sre,.md-container .pl-sr .pl-sra{color:#0a3069}.md-container .pl-v,.md-container .pl-smw{color:#953800}.md-container .pl-bu{color:#82071e}.md-container .pl-ii{color:#f6f8fa;background-color:#82071e}.md-container .pl-c2{color:#f6f8fa;background-color:#cf222e}.md-container .pl-sr .pl-cce{font-weight:700;color:#116329}.md-container .pl-ml{color:#3b2300}.md-container .pl-mh,.md-container .pl-mh .pl-en,.md-container .pl-ms{font-weight:700;color:#0550ae}.md-container .pl-mi{font-style:italic;color:#24292f}.md-container .pl-mb{font-weight:700;color:#24292f}.md-container .pl-md{color:#82071e;background-color:#ffebe9}.md-container .pl-mi1{color:#116329;background-color:#dafbe1}.md-container .pl-mc{color:#953800;background-color:#ffd8b5}.md-container .pl-mi2{color:#eaeef2;background-color:#0550ae}.md-container .pl-mdr{font-weight:700;color:#8250df}.md-container .pl-ba{color:#57606a}.md-container .pl-sg{color:#8c959f}.md-container .pl-corl{text-decoration:underline;color:#0a3069}.md-container g-emoji{display:inline-block;min-width:1ch;font-family:"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-size:1em;font-style:normal!important;font-weight:400;line-height:1;vertical-align:-.075em}.md-container g-emoji img{width:1em;height:1em}.md-container .task-list-item{list-style-type:none}.md-container .task-list-item label{font-weight:400}.md-container .task-list-item.enabled label{cursor:pointer}.md-container .task-list-item+.task-list-item{margin-top:4px}.md-container .task-list-item .handle{display:none}.md-container .task-list-item-checkbox{margin:0 .2em .25em -1.4em;vertical-align:middle}.md-container .contains-task-list:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.md-container .contains-task-list{position:relative}.md-container .contains-task-list:hover .task-list-item-convert-container,.md-container .contains-task-list:focus-within .task-list-item-convert-container{display:block;width:auto;height:24px;overflow:visible;clip:auto}.md-container ::-webkit-calendar-picker-indicator{filter:invert(50%)}:root.dark .md-container{color-scheme:dark}:root.dark .md-container a{color:#58a6ff}:root.dark .md-container mark{background-color:#bb800926;color:#c9d1d9}:root.dark .md-container hr{background-color:#30363d}:root.dark .md-container ::placeholder{color:#6e7681}:root.dark .md-container a:focus,:root.dark .md-container [role=button]:focus,:root.dark .md-container input[type=radio]:focus,:root.dark .md-container input[type=checkbox]:focus{outline:2px solid #58a6ff}:root.dark .md-container a:focus-visible,:root.dark .md-container [role=button]:focus-visible,:root.dark .md-container input[type=radio]:focus-visible,:root.dark .md-container input[type=checkbox]:focus-visible{outline:2px solid #58a6ff}:root.dark .md-container kbd{color:#c9d1d9;background-color:#161b22;border:solid 1px rgba(110,118,129,.4);border-bottom-color:#6e768166;box-shadow:inset 0 -1px #6e768166}:root.dark .md-container h6{color:#8b949e}:root.dark .md-container .absent{color:#f85149}:root.dark .md-container h1 .octicon-link,:root.dark .md-container h2 .octicon-link,:root.dark .md-container h3 .octicon-link,:root.dark .md-container h4 .octicon-link,:root.dark .md-container h5 .octicon-link,:root.dark .md-container h6 .octicon-link{color:#c9d1d9}:root.dark .md-container span.frame>span{border:1px solid #30363d}:root.dark .md-container span.frame span span{color:#c9d1d9}:root.dark .md-container code,:root.dark .md-container tt{background-color:#6e768166}:root.dark .md-container .csv-data .blob-num{background:#0d1117}:root.dark .md-container .csv-data th{background:#161b22}:root.dark .md-container .footnotes{color:#8b949e;border-top:1px solid #30363d}:root.dark .md-container .footnotes li:target:before{border:2px solid #1f6feb}:root.dark .md-container .footnotes li:target{color:#c9d1d9}:root.dark .md-container .pl-c{color:#8b949e}:root.dark .md-container .pl-c1,:root.dark .md-container .pl-s .pl-v{color:#79c0ff}:root.dark .md-container .pl-e,:root.dark .md-container .pl-en{color:#d2a8ff}:root.dark .md-container .pl-smi,:root.dark .md-container .pl-s .pl-s1{color:#c9d1d9}:root.dark .md-container .pl-ent{color:#7ee787}:root.dark .md-container .pl-k{color:#ff7b72}:root.dark .md-container .pl-s,:root.dark .md-container .pl-pds,:root.dark .md-container .pl-s .pl-pse .pl-s1,:root.dark .md-container .pl-sr,:root.dark .md-container .pl-sr .pl-cce,:root.dark .md-container .pl-sr .pl-sre,:root.dark .md-container .pl-sr .pl-sra{color:#a5d6ff}:root.dark .md-container .pl-v,:root.dark .md-container .pl-smw{color:#ffa657}:root.dark .md-container .pl-bu{color:#f85149}:root.dark .md-container .pl-ii{color:#f0f6fc;background-color:#8e1519}:root.dark .md-container .pl-c2{color:#f0f6fc;background-color:#b62324}:root.dark .md-container .pl-sr .pl-cce{font-weight:700;color:#7ee787}:root.dark .md-container .pl-ml{color:#f2cc60}:root.dark .md-container .pl-mh,:root.dark .md-container .pl-mh .pl-en,:root.dark .md-container .pl-ms{color:#1f6feb}:root.dark .md-container .pl-mi{color:#c9d1d9}:root.dark .md-container .pl-mb{font-weight:700;color:#c9d1d9}:root.dark .md-container .pl-md{color:#ffdcd7;background-color:#67060c}:root.dark .md-container .pl-mi1{color:#aff5b4;background-color:#033a16}:root.dark .md-container .pl-mc{color:#ffdfb6;background-color:#5a1e02}:root.dark .md-container .pl-mi2{color:#c9d1d9;background-color:#1158c7}:root.dark .md-container .pl-mdr{color:#d2a8ff}:root.dark .md-container .pl-ba{color:#8b949e}:root.dark .md-container .pl-sg{color:#484f58}:root.dark .md-container .pl-corl{color:#a5d6ff}.badge{display:inline-block;padding:3px 8px;font-size:.75rem;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:13px;border:1px solid}.badge:empty{display:none}.badge+.badge{margin-left:4px}.badge.lg{font-size:1rem;padding:.5rem}.badge.lg+.badge{margin-left:8px}.btn .badge{position:relative;top:-1px}.form-label{display:block;margin-block:16px;font-weight:700}.form-row{display:flex;flex-direction:row;gap:16px;margin-block-end:16px}.form-row>*{flex:1}.form-row .flex-2{flex:2}.form-row .flex-3{flex:3}.form-control{width:100%}.form-check-label{display:inline-flex;place-items:center}.icon-button{align-items:center;background:none;border:none;box-sizing:border-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;position:relative;text-decoration:none;-webkit-user-select:none;user-select:none;z-index:0;border-radius:50%;width:40px;height:40px;color:currentColor}.icon-button *:is(svg){height:24px;width:24px}.btn-sm{--_label-text-size: .75rem;--_container-height: 24px;--_leading-space: 16px;--_trailing-space: 16px}.btn-lg{--_label-text-size: 1rem;--_container-height: 56px;--_leading-space: 24px;--_trailing-space: 24px}.splitpanes{display:flex;width:100%;overflow:hidden}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{-webkit-user-select:none;user-select:none}.splitpanes__pane{width:100%;height:100%}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes .splitpanes__splitter{box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes .splitpanes__splitter:before{content:"";position:absolute;top:50%;left:50%;transition:background-color .3s}.splitpanes .splitpanes__splitter:first-child{cursor:auto}.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.splitpanes--vertical>.splitpanes__splitter{width:3px}.splitpanes--vertical>.splitpanes__splitter:before{transform:translateY(-50%);height:100%}.splitpanes--horizontal>.splitpanes__splitter{height:3px}.splitpanes--horizontal>.splitpanes__splitter:before{transform:translate(-50%);width:100%;height:1px}.chat-section{border-radius:8px;border:1px solid var(--md-sys-color-outline);overflow:hidden}.chat-item{padding:0 16px 16px}.chat-item .date{color:var(--md-sys-color-secondary);font-size:.8rem;text-align:center}.chat-item:first-child{padding-top:16px}.chat-item .bi-more{display:none;vertical-align:middle}.chat-item:hover .bi-more{display:inline-block}.chat-title{display:inline-block;height:24px}.chat-title .name{font-weight:500;margin-right:4px;font-size:.75rem}.chat-title .time,.chat-title .sending{color:var(--md-sys-color-secondary);font-size:.75rem}.chat-title:hover{cursor:pointer}.chat-title .sending{margin-left:4px}@media print{header,.quick,.quick-content,.v-toolbar,.subtitle,.splitpanes__pane:first-child{display:none!important}.splitpanes__pane{width:100%!important}.layout,.page-content,.panel-container,.page-container .main{height:auto!important}.page-container .main{margin:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important;padding:0!important}.md-container{padding:0!important}}#app:has(~.lightbox){display:none}.top-title{display:flex;align-items:center;padding:0 16px;flex:0 0 auto;font-size:.875rem;text-overflow:ellipsis}.top-title>div:first-child{flex:1}.top-title .icon-button+.icon-button{margin-inline-start:8px}.list-items{width:100%}.list-items .item{display:grid;grid-template-areas:"title icon" "subtitle icon" "body body";grid-template-columns:1fr auto;padding:8px 16px;position:relative;white-space:pre-wrap;word-break:break-all}.list-items .item .title{grid-area:title;text-overflow:ellipsis;color:var(--md-sys-color-on-surface);display:flex;align-items:center}.list-items .item .subtitle{grid-area:subtitle;text-overflow:ellipsis;color:var(--md-sys-color-on-surface-variant);font-size:.8rem;margin-top:4px}.list-items .item .body{grid-area:body;text-overflow:ellipsis;color:var(--md-sys-color-on-surface-variant);font-size:.8rem;margin-top:4px}.list-items .item .icon{grid-area:icon}.list-items .item.selected{background-color:var(--md-sys-color-on-surface-selected)}.error-container{color:var(--md-sys-color-on-error-container);background-color:var(--md-sys-color-error-container)}.alert-warning,.alert-info,.alert-danger{border-radius:8px;padding:16px}.alert-danger{background-color:var(--md-sys-color-error-container);border:1px solid var(--md-sys-color-on-error-container);color:var(--md-sys-color-on-error-container)}.alert-info{background-color:var(--md-sys-color-surface-container-lowest);border:1px solid var(--md-sys-color-outline);color:var(--md-sys-color-on-surface)}.alert-warning{background-color:var(--md-sys-color-warning-container);border:1px solid var(--md-sys-color-on-warning-container);color:var(--md-sys-color-on-warning-container)}.v-toolbar+.alert-info{margin-block-end:16px}.alert-all-checked{text-align:center}.v-toolbar{display:flex;flex-direction:row;align-items:center;margin-bottom:16px}.v-toolbar .breadcrumb{flex-grow:1}.v-toolbar .right-actions{display:flex;flex-direction:row;align-items:center}.v-toast.error{color:var(--red-color)}.toast-container{position:fixed;display:flex;top:0;bottom:0;left:0;right:0;overflow:hidden;z-index:9999;pointer-events:none;flex-direction:column;margin-top:32px;width:100%}.toast-container .v-toast{align-self:center;animation-duration:.15s;border-radius:8px;pointer-events:auto;background-color:var(--md-sys-color-surface);cursor:pointer;padding:8px 32px;word-break:break-word;border:1px solid currentColor;box-shadow:0 0 8px #0003;max-width:50%}.tap-phone-container{position:fixed;display:flex;width:500px;top:100px;left:50%;transform:translate(-50%);z-index:9999;flex-direction:row;margin-top:16px;background-color:var(--md-sys-color-surface);animation-duration:.15s;pointer-events:auto;cursor:pointer;border-radius:8px;padding:2rem;box-shadow:0 0 8px #0003}.tap-phone-container div{flex:1;margin-inline-end:1rem;font-size:1.4rem}.tap-phone-container *:is(svg){width:120px;fill:var(--md-sys-color-primary)}.help-block{padding:16px}.inline-edit{cursor:pointer}.popper .view-raw{padding:1rem;max-width:40vw;white-space:pre-wrap;max-height:50vh;margin:0}.no-data-placeholder{text-align:center;padding:40px}.quick-content .no-data{text-align:center;padding:40px;display:flex;justify-content:center;align-items:center;height:100vh;width:100%}.v-enter-active,.v-leave-active{transition:opacity .3s ease}.v-enter-from,.v-leave-to{opacity:0}.loading{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.page-container>.splitpanes .sidebar{padding-inline-end:16px;height:calc(100vh - 64px);box-sizing:border-box;overflow-y:auto;overflow-x:hidden}.page-container .main{margin-inline-end:1px;background-color:var(--md-sys-color-surface);border-top-left-radius:var(--plain-shape-l);border-top-right-radius:var(--plain-shape-l);padding:var(--plain-spacing-xl) var(--plain-spacing-xl) 0 var(--plain-spacing-xl);box-sizing:border-box;height:calc(100vh - 64px);overflow-y:auto}.page-container>.main{margin-inline-start:16px}.nav-title{font-weight:600;font-size:1.125rem;display:flex;justify-content:space-between;padding-inline-start:16px;align-items:center}.nav{list-style:none;display:block;padding:0}.nav li{padding-block:18px;padding-inline:16px;position:relative;border-top-right-radius:56px;border-bottom-right-radius:56px;word-wrap:break-word;-webkit-user-select:none;user-select:none}.nav li.active{background-color:var(--md-sys-color-surface-container-highest)}.nav li:hover{cursor:pointer}.image{width:100%;object-fit:cover;height:100%;min-width:100%;left:50%;position:relative;transform:translate(-50%)}.image:hover{cursor:pointer}.blinking-cursor{width:.5rem;height:1rem;display:inline-block;animation:1s blink step-end infinite}@keyframes blink{0%,to{background-color:transparent}50%{background-color:currentColor}}.spinner-sm{--md-circular-progress-size: 32px;--md-circular-progress-active-indicator-width: 14}.v-center{display:flex;align-items:center}.invalid-feedback{color:var(--md-sys-color-error)}.filters{padding:16px;width:280px}.filters md-outlined-text-field{width:100%}.filters .buttons{text-align:right}.filters .form-label{margin-block-end:8px}.image-container{display:flex;flex-wrap:wrap;justify-content:flex-start}.image-container .item{box-sizing:border-box;aspect-ratio:1/1;overflow:hidden;display:flex;align-items:center;position:relative}.image-container .duration{background:rgba(0,0,0,.5);color:#fff;position:absolute;bottom:2px;right:2px;font-size:12px;padding:1px 4px}.icon-button.selected{color:var(--md-sys-color-primary)} diff --git a/app/src/main/resources/web/assets/index-b6c39163.js b/app/src/main/resources/web/assets/index-1dff6785.js similarity index 84% rename from app/src/main/resources/web/assets/index-b6c39163.js rename to app/src/main/resources/web/assets/index-1dff6785.js index e55ae4e2..266eef37 100644 --- a/app/src/main/resources/web/assets/index-b6c39163.js +++ b/app/src/main/resources/web/assets/index-1dff6785.js @@ -1,24 +1,24 @@ -var sR=Object.defineProperty;var lR=(t,e,r)=>e in t?sR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var kr=(t,e,r)=>(lR(t,typeof e!="symbol"?e+"":e,r),r);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();function Ey(t,e){const r=Object.create(null),n=t.split(",");for(let i=0;i!!r[i.toLowerCase()]:i=>!!r[i]}const Zt={},dl=[],mi=()=>{},cR=()=>!1,dR=/^on[^a-z]/,Np=t=>dR.test(t),Ty=t=>t.startsWith("onUpdate:"),ur=Object.assign,ky=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},uR=Object.prototype.hasOwnProperty,kt=(t,e)=>uR.call(t,e),Ye=Array.isArray,ul=t=>Dd(t)==="[object Map]",jl=t=>Dd(t)==="[object Set]",o2=t=>Dd(t)==="[object Date]",st=t=>typeof t=="function",ar=t=>typeof t=="string",ld=t=>typeof t=="symbol",qt=t=>t!==null&&typeof t=="object",GE=t=>qt(t)&&st(t.then)&&st(t.catch),WE=Object.prototype.toString,Dd=t=>WE.call(t),fR=t=>Dd(t).slice(8,-1),QE=t=>Dd(t)==="[object Object]",Cy=t=>ar(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Df=Ey(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zp=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},pR=/-(\w)/g,Fi=zp(t=>t.replace(pR,(e,r)=>r?r.toUpperCase():"")),hR=/\B([A-Z])/g,xs=zp(t=>t.replace(hR,"-$1").toLowerCase()),qp=zp(t=>t.charAt(0).toUpperCase()+t.slice(1)),Ff=zp(t=>t?`on${qp(t)}`:""),cd=(t,e)=>!Object.is(t,e),Nf=(t,e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},rp=t=>{const e=parseFloat(t);return isNaN(e)?t:e},mR=t=>{const e=ar(t)?Number(t):NaN;return isNaN(e)?t:e};let a2;const Hv=()=>a2||(a2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function bl(t){if(Ye(t)){const e={};for(let r=0;r{if(r){const n=r.split(gR);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function jn(t){let e="";if(ar(t))e=t;else if(Ye(t))for(let r=0;rps(r,e))}const De=t=>ar(t)?t:t==null?"":Ye(t)||qt(t)&&(t.toString===WE||!st(t.toString))?JSON.stringify(t,YE,2):String(t),YE=(t,e)=>e&&e.__v_isRef?YE(t,e.value):ul(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,i])=>(r[`${n} =>`]=i,r),{})}:jl(e)?{[`Set(${e.size})`]:[...e.values()]}:qt(e)&&!Ye(e)&&!QE(e)?String(e):e;let Tn;class ZE{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Tn,!e&&Tn&&(this.index=(Tn.scopes||(Tn.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const r=Tn;try{return Tn=this,e()}finally{Tn=r}}}on(){Tn=this}off(){Tn=this.parent}stop(e){if(this._active){let r,n;for(r=0,n=this.effects.length;r{const e=new Set(t);return e.w=0,e.n=0,e},XE=t=>(t.w&da)>0,JE=t=>(t.n&da)>0,kR=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let r=0;for(let n=0;n{(f==="length"||f>=d)&&c.push(u)})}else switch(r!==void 0&&c.push(a.get(r)),e){case"add":Ye(t)?Cy(r)&&c.push(a.get("length")):(c.push(a.get(ns)),ul(t)&&c.push(a.get(Wv)));break;case"delete":Ye(t)||(c.push(a.get(ns)),ul(t)&&c.push(a.get(Wv)));break;case"set":ul(t)&&c.push(a.get(ns));break}if(c.length===1)c[0]&&Qv(c[0]);else{const d=[];for(const u of c)u&&d.push(...u);Qv($y(d))}}function Qv(t,e){const r=Ye(t)?t:[...t];for(const n of r)n.computed&&l2(n);for(const n of r)n.computed||l2(n)}function l2(t,e){(t!==di||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function AR(t,e){var r;return(r=np.get(t))==null?void 0:r.get(e)}const SR=Ey("__proto__,__v_isRef,__isVue"),rT=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(ld)),IR=Py(),$R=Py(!1,!0),OR=Py(!0),c2=PR();function PR(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const n=bt(this);for(let o=0,a=this.length;o{t[e]=function(...r){Hl();const n=bt(this)[e].apply(this,r);return Gl(),n}}),t}function RR(t){const e=bt(this);return hn(e,"has",t),e.hasOwnProperty(t)}function Py(t=!1,e=!1){return function(n,i,o){if(i==="__v_isReactive")return!t;if(i==="__v_isReadonly")return t;if(i==="__v_isShallow")return e;if(i==="__v_raw"&&o===(t?e?KR:sT:e?aT:oT).get(n))return n;const a=Ye(n);if(!t){if(a&&kt(c2,i))return Reflect.get(c2,i,o);if(i==="hasOwnProperty")return RR}const c=Reflect.get(n,i,o);return(ld(i)?rT.has(i):SR(i))||(t||hn(n,"get",i),e)?c:Rt(c)?a&&Cy(i)?c:c.value:qt(c)?t?cT(c):gi(c):c}}const LR=nT(),MR=nT(!0);function nT(t=!1){return function(r,n,i,o){let a=r[n];if(xl(a)&&Rt(a)&&!Rt(i))return!1;if(!t&&(!ip(i)&&!xl(i)&&(a=bt(a),i=bt(i)),!Ye(r)&&Rt(a)&&!Rt(i)))return a.value=i,!0;const c=Ye(r)&&Cy(n)?Number(n)t,Bp=t=>Reflect.getPrototypeOf(t);function mf(t,e,r=!1,n=!1){t=t.__v_raw;const i=bt(t),o=bt(e);r||(e!==o&&hn(i,"get",e),hn(i,"get",o));const{has:a}=Bp(i),c=n?Ry:r?Dy:dd;if(a.call(i,e))return c(t.get(e));if(a.call(i,o))return c(t.get(o));t!==i&&t.get(e)}function vf(t,e=!1){const r=this.__v_raw,n=bt(r),i=bt(t);return e||(t!==i&&hn(n,"has",t),hn(n,"has",i)),t===i?r.has(t):r.has(t)||r.has(i)}function gf(t,e=!1){return t=t.__v_raw,!e&&hn(bt(t),"iterate",ns),Reflect.get(t,"size",t)}function d2(t){t=bt(t);const e=bt(this);return Bp(e).has.call(e,t)||(e.add(t),vo(e,"add",t,t)),this}function u2(t,e){e=bt(e);const r=bt(this),{has:n,get:i}=Bp(r);let o=n.call(r,t);o||(t=bt(t),o=n.call(r,t));const a=i.call(r,t);return r.set(t,e),o?cd(e,a)&&vo(r,"set",t,e):vo(r,"add",t,e),this}function f2(t){const e=bt(this),{has:r,get:n}=Bp(e);let i=r.call(e,t);i||(t=bt(t),i=r.call(e,t)),n&&n.call(e,t);const o=e.delete(t);return i&&vo(e,"delete",t,void 0),o}function p2(){const t=bt(this),e=t.size!==0,r=t.clear();return e&&vo(t,"clear",void 0,void 0),r}function _f(t,e){return function(n,i){const o=this,a=o.__v_raw,c=bt(a),d=e?Ry:t?Dy:dd;return!t&&hn(c,"iterate",ns),a.forEach((u,f)=>n.call(i,d(u),d(f),o))}}function yf(t,e,r){return function(...n){const i=this.__v_raw,o=bt(i),a=ul(o),c=t==="entries"||t===Symbol.iterator&&a,d=t==="keys"&&a,u=i[t](...n),f=r?Ry:e?Dy:dd;return!e&&hn(o,"iterate",d?Wv:ns),{next(){const{value:_,done:y}=u.next();return y?{value:_,done:y}:{value:c?[f(_[0]),f(_[1])]:f(_),done:y}},[Symbol.iterator](){return this}}}}function Bo(t){return function(...e){return t==="delete"?!1:this}}function BR(){const t={get(o){return mf(this,o)},get size(){return gf(this)},has:vf,add:d2,set:u2,delete:f2,clear:p2,forEach:_f(!1,!1)},e={get(o){return mf(this,o,!1,!0)},get size(){return gf(this)},has:vf,add:d2,set:u2,delete:f2,clear:p2,forEach:_f(!1,!0)},r={get(o){return mf(this,o,!0)},get size(){return gf(this,!0)},has(o){return vf.call(this,o,!0)},add:Bo("add"),set:Bo("set"),delete:Bo("delete"),clear:Bo("clear"),forEach:_f(!0,!1)},n={get(o){return mf(this,o,!0,!0)},get size(){return gf(this,!0)},has(o){return vf.call(this,o,!0)},add:Bo("add"),set:Bo("set"),delete:Bo("delete"),clear:Bo("clear"),forEach:_f(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=yf(o,!1,!1),r[o]=yf(o,!0,!1),e[o]=yf(o,!1,!0),n[o]=yf(o,!0,!0)}),[t,r,e,n]}const[UR,VR,jR,HR]=BR();function Ly(t,e){const r=e?t?HR:jR:t?VR:UR;return(n,i,o)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(kt(r,i)&&i in n?r:n,i,o)}const GR={get:Ly(!1,!1)},WR={get:Ly(!1,!0)},QR={get:Ly(!0,!1)},oT=new WeakMap,aT=new WeakMap,sT=new WeakMap,KR=new WeakMap;function YR(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ZR(t){return t.__v_skip||!Object.isExtensible(t)?0:YR(fR(t))}function gi(t){return xl(t)?t:My(t,!1,iT,GR,oT)}function lT(t){return My(t,!1,qR,WR,aT)}function cT(t){return My(t,!0,zR,QR,sT)}function My(t,e,r,n,i){if(!qt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=i.get(t);if(o)return o;const a=ZR(t);if(a===0)return t;const c=new Proxy(t,a===2?n:r);return i.set(t,c),c}function po(t){return xl(t)?po(t.__v_raw):!!(t&&t.__v_isReactive)}function xl(t){return!!(t&&t.__v_isReadonly)}function ip(t){return!!(t&&t.__v_isShallow)}function dT(t){return po(t)||xl(t)}function bt(t){const e=t&&t.__v_raw;return e?bt(e):t}function Fd(t){return tp(t,"__v_skip",!0),t}const dd=t=>qt(t)?gi(t):t,Dy=t=>qt(t)?cT(t):t;function uT(t){sa&&di&&(t=bt(t),tT(t.dep||(t.dep=$y())))}function fT(t,e){t=bt(t);const r=t.dep;r&&Qv(r)}function Rt(t){return!!(t&&t.__v_isRef===!0)}function Se(t){return pT(t,!1)}function XR(t){return pT(t,!0)}function pT(t,e){return Rt(t)?t:new JR(t,e)}class JR{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:bt(e),this._value=r?e:dd(e)}get value(){return uT(this),this._value}set value(e){const r=this.__v_isShallow||ip(e)||xl(e);e=r?e:bt(e),cd(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:dd(e),fT(this))}}function fe(t){return Rt(t)?t.value:t}function Ove(t){return st(t)?t():fe(t)}const eL={get:(t,e,r)=>fe(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const i=t[e];return Rt(i)&&!Rt(r)?(i.value=r,!0):Reflect.set(t,e,r,n)}};function hT(t){return po(t)?t:new Proxy(t,eL)}function Up(t){const e=Ye(t)?new Array(t.length):{};for(const r in t)e[r]=mT(t,r);return e}class tL{constructor(e,r,n){this._object=e,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return AR(bt(this._object),this._key)}}class rL{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function nL(t,e,r){return Rt(t)?t:st(t)?new rL(t):qt(t)&&arguments.length>1?mT(t,e,r):Se(t)}function mT(t,e,r){const n=t[e];return Rt(n)?n:new tL(t,e,r)}class iL{constructor(e,r,n,i){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Oy(e,()=>{this._dirty||(this._dirty=!0,fT(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=bt(this);return uT(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function oL(t,e,r=!1){let n,i;const o=st(t);return o?(n=t,i=mi):(n=t.get,i=t.set),new iL(n,i,o||!i,r)}function la(t,e,r,n){let i;try{i=n?t(...n):t()}catch(o){Vp(o,e,r)}return i}function Gn(t,e,r,n){if(st(t)){const o=la(t,e,r,n);return o&&GE(o)&&o.catch(a=>{Vp(a,e,r)}),o}const i=[];for(let o=0;o>>1;fd(Vr[n])Ri&&Vr.splice(e,1)}function cL(t){Ye(t)?fl.push(...t):(!lo||!lo.includes(t,t.allowRecurse?Qa+1:Qa))&&fl.push(t),gT()}function h2(t,e=ud?Ri+1:0){for(;efd(r)-fd(n)),Qa=0;Qat.id==null?1/0:t.id,dL=(t,e)=>{const r=fd(t)-fd(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function yT(t){Kv=!1,ud=!0,Vr.sort(dL);const e=mi;try{for(Ri=0;Riar(b)?b.trim():b)),_&&(i=r.map(rp))}let c,d=n[c=Ff(e)]||n[c=Ff(Fi(e))];!d&&o&&(d=n[c=Ff(xs(e))]),d&&Gn(d,t,6,i);const u=n[c+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[c])return;t.emitted[c]=!0,Gn(u,t,6,i)}}function bT(t,e,r=!1){const n=e.emitsCache,i=n.get(t);if(i!==void 0)return i;const o=t.emits;let a={},c=!1;if(!st(t)){const d=u=>{const f=bT(u,e,!0);f&&(c=!0,ur(a,f))};!r&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}return!o&&!c?(qt(t)&&n.set(t,null),null):(Ye(o)?o.forEach(d=>a[d]=null):ur(a,o),qt(t)&&n.set(t,a),a)}function jp(t,e){return!t||!Np(e)?!1:(e=e.slice(2).replace(/Once$/,""),kt(t,e[0].toLowerCase()+e.slice(1))||kt(t,xs(e))||kt(t,e))}let $r=null,Hp=null;function op(t){const e=$r;return $r=t,Hp=t&&t.type.__scopeId||null,e}function yo(t){Hp=t}function bo(){Hp=null}function _i(t,e=$r,r){if(!e||t._n)return t;const n=(...i)=>{n._d&&S2(-1);const o=op(e);let a;try{a=t(...i)}finally{op(o),n._d&&S2(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function Xm(t){const{type:e,vnode:r,proxy:n,withProxy:i,props:o,propsOptions:[a],slots:c,attrs:d,emit:u,render:f,renderCache:_,data:y,setupState:b,ctx:p,inheritAttrs:m}=t;let g,v;const x=op(t);try{if(r.shapeFlag&4){const T=i||n;g=Pi(f.call(T,T,_,o,b,y,p)),v=d}else{const T=e;g=Pi(T.length>1?T(o,{attrs:d,slots:c,emit:u}):T(o,null)),v=e.props?d:fL(d)}}catch(T){Wc.length=0,Vp(T,t,1),g=qe(Wn)}let E=g;if(v&&m!==!1){const T=Object.keys(v),{shapeFlag:C}=E;T.length&&C&7&&(a&&T.some(Ty)&&(v=pL(v,a)),E=ua(E,v))}return r.dirs&&(E=ua(E),E.dirs=E.dirs?E.dirs.concat(r.dirs):r.dirs),r.transition&&(E.transition=r.transition),g=E,op(x),g}const fL=t=>{let e;for(const r in t)(r==="class"||r==="style"||Np(r))&&((e||(e={}))[r]=t[r]);return e},pL=(t,e)=>{const r={};for(const n in t)(!Ty(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function hL(t,e,r){const{props:n,children:i,component:o}=t,{props:a,children:c,patchFlag:d}=e,u=o.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&d>=0){if(d&1024)return!0;if(d&16)return n?m2(n,a,u):!!a;if(d&8){const f=e.dynamicProps;for(let _=0;_t.__isSuspense;function gL(t,e){e&&e.pendingBranch?Ye(t)?e.effects.push(...t):e.effects.push(t):cL(t)}function _L(t,e){return Gp(t,null,e)}function yL(t,e){return Gp(t,null,{flush:"post"})}const bf={};function Vt(t,e,r){return Gp(t,e,r)}function Gp(t,e,{immediate:r,deep:n,flush:i,onTrack:o,onTrigger:a}=Zt){var c;const d=Iy()===((c=xr)==null?void 0:c.scope)?xr:null;let u,f=!1,_=!1;if(Rt(t)?(u=()=>t.value,f=ip(t)):po(t)?(u=()=>t,n=!0):Ye(t)?(_=!0,f=t.some(T=>po(T)||ip(T)),u=()=>t.map(T=>{if(Rt(T))return T.value;if(po(T))return Ja(T);if(st(T))return la(T,d,2)})):st(t)?e?u=()=>la(t,d,2):u=()=>{if(!(d&&d.isUnmounted))return y&&y(),Gn(t,d,3,[b])}:u=mi,e&&n){const T=u;u=()=>Ja(T())}let y,b=T=>{y=x.onStop=()=>{la(T,d,4)}},p;if(gd)if(b=mi,e?r&&Gn(e,d,3,[u(),_?[]:void 0,b]):u(),i==="sync"){const T=hM();p=T.__watcherHandles||(T.__watcherHandles=[])}else return mi;let m=_?new Array(t.length).fill(bf):bf;const g=()=>{if(x.active)if(e){const T=x.run();(n||f||(_?T.some((C,A)=>cd(C,m[A])):cd(T,m)))&&(y&&y(),Gn(e,d,3,[T,m===bf?void 0:_&&m[0]===bf?[]:m,b]),m=T)}else x.run()};g.allowRecurse=!!e;let v;i==="sync"?v=g:i==="post"?v=()=>fn(g,d&&d.suspense):(g.pre=!0,d&&(g.id=d.uid),v=()=>Ny(g));const x=new Oy(u,v);e?r?g():m=x.run():i==="post"?fn(x.run.bind(x),d&&d.suspense):x.run();const E=()=>{x.stop(),d&&d.scope&&ky(d.scope.effects,x)};return p&&p.push(E),E}function bL(t,e,r){const n=this.proxy,i=ar(t)?t.includes(".")?xT(n,t):()=>n[t]:t.bind(n,n);let o;st(e)?o=e:(o=e.handler,r=e);const a=xr;wl(this);const c=Gp(i,o.bind(n),r);return a?wl(a):is(),c}function xT(t,e){const r=e.split(".");return()=>{let n=t;for(let i=0;i{Ja(r,e)});else if(QE(t))for(const r in t)Ja(t[r],e);return t}function vt(t,e){const r=$r;if(r===null)return t;const n=Yp(r)||r.proxy,i=t.dirs||(t.dirs=[]);for(let o=0;o{t.isMounted=!0}),Hi(()=>{t.isUnmounting=!0}),t}const Bn=[Function,Array],ET={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Bn,onEnter:Bn,onAfterEnter:Bn,onEnterCancelled:Bn,onBeforeLeave:Bn,onLeave:Bn,onAfterLeave:Bn,onLeaveCancelled:Bn,onBeforeAppear:Bn,onAppear:Bn,onAfterAppear:Bn,onAppearCancelled:Bn},xL={name:"BaseTransition",props:ET,setup(t,{slots:e}){const r=Gi(),n=wT();let i;return()=>{const o=e.default&&zy(e.default(),!0);if(!o||!o.length)return;let a=o[0];if(o.length>1){for(const m of o)if(m.type!==Wn){a=m;break}}const c=bt(t),{mode:d}=c;if(n.isLeaving)return Jm(a);const u=v2(a);if(!u)return Jm(a);const f=pd(u,c,n,r);hd(u,f);const _=r.subTree,y=_&&v2(_);let b=!1;const{getTransitionKey:p}=u.type;if(p){const m=p();i===void 0?i=m:m!==i&&(i=m,b=!0)}if(y&&y.type!==Wn&&(!Ka(u,y)||b)){const m=pd(y,c,n,r);if(hd(y,m),d==="out-in")return n.isLeaving=!0,m.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},Jm(a);d==="in-out"&&u.type!==Wn&&(m.delayLeave=(g,v,x)=>{const E=TT(n,y);E[String(y.key)]=y,g._leaveCb=()=>{v(),g._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=x})}return a}}},wL=xL;function TT(t,e){const{leavingVNodes:r}=t;let n=r.get(e.type);return n||(n=Object.create(null),r.set(e.type,n)),n}function pd(t,e,r,n){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:_,onLeave:y,onAfterLeave:b,onLeaveCancelled:p,onBeforeAppear:m,onAppear:g,onAfterAppear:v,onAppearCancelled:x}=e,E=String(t.key),T=TT(r,t),C=(R,D)=>{R&&Gn(R,n,9,D)},A=(R,D)=>{const q=D[1];C(R,D),Ye(R)?R.every(H=>H.length<=1)&&q():R.length<=1&&q()},L={mode:o,persisted:a,beforeEnter(R){let D=c;if(!r.isMounted)if(i)D=m||c;else return;R._leaveCb&&R._leaveCb(!0);const q=T[E];q&&Ka(t,q)&&q.el._leaveCb&&q.el._leaveCb(),C(D,[R])},enter(R){let D=d,q=u,H=f;if(!r.isMounted)if(i)D=g||d,q=v||u,H=x||f;else return;let U=!1;const ce=R._enterCb=Ae=>{U||(U=!0,Ae?C(H,[R]):C(q,[R]),L.delayedLeave&&L.delayedLeave(),R._enterCb=void 0)};D?A(D,[R,ce]):ce()},leave(R,D){const q=String(t.key);if(R._enterCb&&R._enterCb(!0),r.isUnmounting)return D();C(_,[R]);let H=!1;const U=R._leaveCb=ce=>{H||(H=!0,D(),ce?C(p,[R]):C(b,[R]),R._leaveCb=void 0,T[q]===t&&delete T[q])};T[q]=t,y?A(y,[R,U]):U()},clone(R){return pd(R,e,r,n)}};return L}function Jm(t){if(Wp(t))return t=ua(t),t.children=null,t}function v2(t){return Wp(t)?t.children?t.children[0]:void 0:t}function hd(t,e){t.shapeFlag&6&&t.component?hd(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function zy(t,e=!1,r){let n=[],i=0;for(let o=0;o1)for(let o=0;our({name:t.name},e,{setup:t}))():t}const Uc=t=>!!t.type.__asyncLoader,Wp=t=>t.type.__isKeepAlive;function EL(t,e){kT(t,"a",e)}function TL(t,e){kT(t,"da",e)}function kT(t,e,r=xr){const n=t.__wdc||(t.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Qp(e,n,r),r){let i=r.parent;for(;i&&i.parent;)Wp(i.parent.vnode)&&kL(n,e,r,i),i=i.parent}}function kL(t,e,r,n){const i=Qp(e,t,n,!0);Wl(()=>{ky(n[e],i)},r)}function Qp(t,e,r=xr,n=!1){if(r){const i=r[t]||(r[t]=[]),o=e.__weh||(e.__weh=(...a)=>{if(r.isUnmounted)return;Hl(),wl(r);const c=Gn(e,r,t,a);return is(),Gl(),c});return n?i.unshift(o):i.push(o),o}}const xo=t=>(e,r=xr)=>(!gd||t==="sp")&&Qp(t,(...n)=>e(...n),r),CL=xo("bm"),mn=xo("m"),AL=xo("bu"),CT=xo("u"),Hi=xo("bum"),Wl=xo("um"),AT=xo("sp"),SL=xo("rtg"),IL=xo("rtc");function $L(t,e=xr){Qp("ec",t,e)}const qy="components",OL="directives";function By(t,e){return Vy(qy,t,!0,e)||t}const ST=Symbol.for("v-ndc");function Uy(t){return ar(t)?Vy(qy,t,!1)||t:t||ST}function Ea(t){return Vy(OL,t)}function Vy(t,e,r=!0,n=!1){const i=$r||xr;if(i){const o=i.type;if(t===qy){const c=uM(o,!1);if(c&&(c===e||c===Fi(e)||c===qp(Fi(e))))return o}const a=g2(i[t]||o[t],e)||g2(i.appContext[t],e);return!a&&n?o:a}}function g2(t,e){return t&&(t[e]||t[Fi(e)]||t[qp(Fi(e))])}function Ei(t,e,r,n){let i;const o=r&&r[n];if(Ye(t)||ar(t)){i=new Array(t.length);for(let a=0,c=t.length;ae(a,c,void 0,o&&o[c]));else{const a=Object.keys(t);i=new Array(a.length);for(let c=0,d=a.length;csp(e)?!(e.type===Wn||e.type===St&&!IT(e.children)):!0)?t:null}function PL(t,e){const r={};for(const n in t)r[e&&/[A-Z]/.test(n)?`on:${n}`:Ff(n)]=t[n];return r}const Yv=t=>t?BT(t)?Yp(t)||t.proxy:Yv(t.parent):null,Vc=ur(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Yv(t.parent),$root:t=>Yv(t.root),$emit:t=>t.emit,$options:t=>jy(t),$forceUpdate:t=>t.f||(t.f=()=>Ny(t.update)),$nextTick:t=>t.n||(t.n=ra.bind(t.proxy)),$watch:t=>bL.bind(t)}),ev=(t,e)=>t!==Zt&&!t.__isScriptSetup&&kt(t,e),RL={get({_:t},e){const{ctx:r,setupState:n,data:i,props:o,accessCache:a,type:c,appContext:d}=t;let u;if(e[0]!=="$"){const b=a[e];if(b!==void 0)switch(b){case 1:return n[e];case 2:return i[e];case 4:return r[e];case 3:return o[e]}else{if(ev(n,e))return a[e]=1,n[e];if(i!==Zt&&kt(i,e))return a[e]=2,i[e];if((u=t.propsOptions[0])&&kt(u,e))return a[e]=3,o[e];if(r!==Zt&&kt(r,e))return a[e]=4,r[e];Zv&&(a[e]=0)}}const f=Vc[e];let _,y;if(f)return e==="$attrs"&&hn(t,"get",e),f(t);if((_=c.__cssModules)&&(_=_[e]))return _;if(r!==Zt&&kt(r,e))return a[e]=4,r[e];if(y=d.config.globalProperties,kt(y,e))return y[e]},set({_:t},e,r){const{data:n,setupState:i,ctx:o}=t;return ev(i,e)?(i[e]=r,!0):n!==Zt&&kt(n,e)?(n[e]=r,!0):kt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:i,propsOptions:o}},a){let c;return!!r[a]||t!==Zt&&kt(t,a)||ev(e,a)||(c=o[0])&&kt(c,a)||kt(n,a)||kt(Vc,a)||kt(i.config.globalProperties,a)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:kt(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function LL(){return ML().slots}function ML(){const t=Gi();return t.setupContext||(t.setupContext=VT(t))}function y2(t){return Ye(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}let Zv=!0;function DL(t){const e=jy(t),r=t.proxy,n=t.ctx;Zv=!1,e.beforeCreate&&b2(e.beforeCreate,t,"bc");const{data:i,computed:o,methods:a,watch:c,provide:d,inject:u,created:f,beforeMount:_,mounted:y,beforeUpdate:b,updated:p,activated:m,deactivated:g,beforeDestroy:v,beforeUnmount:x,destroyed:E,unmounted:T,render:C,renderTracked:A,renderTriggered:L,errorCaptured:R,serverPrefetch:D,expose:q,inheritAttrs:H,components:U,directives:ce,filters:Ae}=e;if(u&&FL(u,n,null),a)for(const Ie in a){const Pe=a[Ie];st(Pe)&&(n[Ie]=Pe.bind(r))}if(i){const Ie=i.call(r,r);qt(Ie)&&(t.data=gi(Ie))}if(Zv=!0,o)for(const Ie in o){const Pe=o[Ie],Ce=st(Pe)?Pe.bind(r,r):st(Pe.get)?Pe.get.bind(r,r):mi,de=!st(Pe)&&st(Pe.set)?Pe.set.bind(r):mi,we=It({get:Ce,set:de});Object.defineProperty(n,Ie,{enumerable:!0,configurable:!0,get:()=>we.value,set:ke=>we.value=ke})}if(c)for(const Ie in c)$T(c[Ie],n,r,Ie);if(d){const Ie=st(d)?d.call(r):d;Reflect.ownKeys(Ie).forEach(Pe=>{jc(Pe,Ie[Pe])})}f&&b2(f,t,"c");function Te(Ie,Pe){Ye(Pe)?Pe.forEach(Ce=>Ie(Ce.bind(r))):Pe&&Ie(Pe.bind(r))}if(Te(CL,_),Te(mn,y),Te(AL,b),Te(CT,p),Te(EL,m),Te(TL,g),Te($L,R),Te(IL,A),Te(SL,L),Te(Hi,x),Te(Wl,T),Te(AT,D),Ye(q))if(q.length){const Ie=t.exposed||(t.exposed={});q.forEach(Pe=>{Object.defineProperty(Ie,Pe,{get:()=>r[Pe],set:Ce=>r[Pe]=Ce})})}else t.exposed||(t.exposed={});C&&t.render===mi&&(t.render=C),H!=null&&(t.inheritAttrs=H),U&&(t.components=U),ce&&(t.directives=ce)}function FL(t,e,r=mi){Ye(t)&&(t=Xv(t));for(const n in t){const i=t[n];let o;qt(i)?"default"in i?o=rn(i.from||n,i.default,!0):o=rn(i.from||n):o=rn(i),Rt(o)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):e[n]=o}}function b2(t,e,r){Gn(Ye(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function $T(t,e,r,n){const i=n.includes(".")?xT(r,n):()=>r[n];if(ar(t)){const o=e[t];st(o)&&Vt(i,o)}else if(st(t))Vt(i,t.bind(r));else if(qt(t))if(Ye(t))t.forEach(o=>$T(o,e,r,n));else{const o=st(t.handler)?t.handler.bind(r):e[t.handler];st(o)&&Vt(i,o,t)}}function jy(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=t.appContext,c=o.get(e);let d;return c?d=c:!i.length&&!r&&!n?d=e:(d={},i.length&&i.forEach(u=>ap(d,u,a,!0)),ap(d,e,a)),qt(e)&&o.set(e,d),d}function ap(t,e,r,n=!1){const{mixins:i,extends:o}=e;o&&ap(t,o,r,!0),i&&i.forEach(a=>ap(t,a,r,!0));for(const a in e)if(!(n&&a==="expose")){const c=NL[a]||r&&r[a];t[a]=c?c(t[a],e[a]):e[a]}return t}const NL={data:x2,props:w2,emits:w2,methods:qc,computed:qc,beforeCreate:Jr,created:Jr,beforeMount:Jr,mounted:Jr,beforeUpdate:Jr,updated:Jr,beforeDestroy:Jr,beforeUnmount:Jr,destroyed:Jr,unmounted:Jr,activated:Jr,deactivated:Jr,errorCaptured:Jr,serverPrefetch:Jr,components:qc,directives:qc,watch:qL,provide:x2,inject:zL};function x2(t,e){return e?t?function(){return ur(st(t)?t.call(this,this):t,st(e)?e.call(this,this):e)}:e:t}function zL(t,e){return qc(Xv(t),Xv(e))}function Xv(t){if(Ye(t)){const e={};for(let r=0;r1)return r&&st(e)?e.call(n&&n.proxy):e}}function VL(){return!!(xr||$r||md)}function jL(t,e,r,n=!1){const i={},o={};tp(o,Kp,1),t.propsDefaults=Object.create(null),PT(t,e,i,o);for(const a in t.propsOptions[0])a in i||(i[a]=void 0);r?t.props=n?i:lT(i):t.type.props?t.props=i:t.props=o,t.attrs=o}function HL(t,e,r,n){const{props:i,attrs:o,vnode:{patchFlag:a}}=t,c=bt(i),[d]=t.propsOptions;let u=!1;if((n||a>0)&&!(a&16)){if(a&8){const f=t.vnode.dynamicProps;for(let _=0;_{d=!0;const[y,b]=RT(_,e,!0);ur(a,y),b&&c.push(...b)};!r&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}if(!o&&!d)return qt(t)&&n.set(t,dl),dl;if(Ye(o))for(let f=0;f-1,b[1]=m<0||p-1||kt(b,"default"))&&c.push(_)}}}const u=[a,c];return qt(t)&&n.set(t,u),u}function E2(t){return t[0]!=="$"}function T2(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function k2(t,e){return T2(t)===T2(e)}function C2(t,e){return Ye(e)?e.findIndex(r=>k2(r,t)):st(e)&&k2(e,t)?0:-1}const LT=t=>t[0]==="_"||t==="$stable",Hy=t=>Ye(t)?t.map(Pi):[Pi(t)],GL=(t,e,r)=>{if(e._n)return e;const n=_i((...i)=>Hy(e(...i)),r);return n._c=!1,n},MT=(t,e,r)=>{const n=t._ctx;for(const i in t){if(LT(i))continue;const o=t[i];if(st(o))e[i]=GL(i,o,n);else if(o!=null){const a=Hy(o);e[i]=()=>a}}},DT=(t,e)=>{const r=Hy(e);t.slots.default=()=>r},WL=(t,e)=>{if(t.vnode.shapeFlag&32){const r=e._;r?(t.slots=bt(e),tp(e,"_",r)):MT(e,t.slots={})}else t.slots={},e&&DT(t,e);tp(t.slots,Kp,1)},QL=(t,e,r)=>{const{vnode:n,slots:i}=t;let o=!0,a=Zt;if(n.shapeFlag&32){const c=e._;c?r&&c===1?o=!1:(ur(i,e),!r&&c===1&&delete i._):(o=!e.$stable,MT(e,i)),a=e}else e&&(DT(t,e),a={default:1});if(o)for(const c in i)!LT(c)&&!(c in a)&&delete i[c]};function eg(t,e,r,n,i=!1){if(Ye(t)){t.forEach((y,b)=>eg(y,e&&(Ye(e)?e[b]:e),r,n,i));return}if(Uc(n)&&!i)return;const o=n.shapeFlag&4?Yp(n.component)||n.component.proxy:n.el,a=i?null:o,{i:c,r:d}=t,u=e&&e.r,f=c.refs===Zt?c.refs={}:c.refs,_=c.setupState;if(u!=null&&u!==d&&(ar(u)?(f[u]=null,kt(_,u)&&(_[u]=null)):Rt(u)&&(u.value=null)),st(d))la(d,c,12,[a,f]);else{const y=ar(d),b=Rt(d);if(y||b){const p=()=>{if(t.f){const m=y?kt(_,d)?_[d]:f[d]:d.value;i?Ye(m)&&ky(m,o):Ye(m)?m.includes(o)||m.push(o):y?(f[d]=[o],kt(_,d)&&(_[d]=f[d])):(d.value=[o],t.k&&(f[t.k]=d.value))}else y?(f[d]=a,kt(_,d)&&(_[d]=a)):b&&(d.value=a,t.k&&(f[t.k]=a))};a?(p.id=-1,fn(p,r)):p()}}}const fn=gL;function KL(t){return YL(t)}function YL(t,e){const r=Hv();r.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:a,createText:c,createComment:d,setText:u,setElementText:f,parentNode:_,nextSibling:y,setScopeId:b=mi,insertStaticContent:p}=t,m=(M,k,I,N=null,G=null,Y=null,se=!1,ye=null,X=!!k.dynamicChildren)=>{if(M===k)return;M&&!Ka(M,k)&&(N=J(M),ke(M,G,Y,!0),M=null),k.patchFlag===-2&&(X=!1,k.dynamicChildren=null);const{type:ee,ref:pe,shapeFlag:j}=k;switch(ee){case Nd:g(M,k,I,N);break;case Wn:v(M,k,I,N);break;case Gc:M==null&&x(k,I,N,se);break;case St:U(M,k,I,N,G,Y,se,ye,X);break;default:j&1?C(M,k,I,N,G,Y,se,ye,X):j&6?ce(M,k,I,N,G,Y,se,ye,X):(j&64||j&128)&&ee.process(M,k,I,N,G,Y,se,ye,X,ve)}pe!=null&&G&&eg(pe,M&&M.ref,Y,k||M,!k)},g=(M,k,I,N)=>{if(M==null)n(k.el=c(k.children),I,N);else{const G=k.el=M.el;k.children!==M.children&&u(G,k.children)}},v=(M,k,I,N)=>{M==null?n(k.el=d(k.children||""),I,N):k.el=M.el},x=(M,k,I,N)=>{[M.el,M.anchor]=p(M.children,k,I,N,M.el,M.anchor)},E=({el:M,anchor:k},I,N)=>{let G;for(;M&&M!==k;)G=y(M),n(M,I,N),M=G;n(k,I,N)},T=({el:M,anchor:k})=>{let I;for(;M&&M!==k;)I=y(M),i(M),M=I;i(k)},C=(M,k,I,N,G,Y,se,ye,X)=>{se=se||k.type==="svg",M==null?A(k,I,N,G,Y,se,ye,X):D(M,k,G,Y,se,ye,X)},A=(M,k,I,N,G,Y,se,ye)=>{let X,ee;const{type:pe,props:j,shapeFlag:z,transition:ie,dirs:be}=M;if(X=M.el=a(M.type,Y,j&&j.is,j),z&8?f(X,M.children):z&16&&R(M.children,X,null,N,G,Y&&pe!=="foreignObject",se,ye),be&&qa(M,null,N,"created"),L(X,M,M.scopeId,se,N),j){for(const Ue in j)Ue!=="value"&&!Df(Ue)&&o(X,Ue,null,j[Ue],Y,M.children,N,G,Ge);"value"in j&&o(X,"value",null,j.value),(ee=j.onVnodeBeforeMount)&&$i(ee,N,M)}be&&qa(M,null,N,"beforeMount");const Ne=(!G||G&&!G.pendingBranch)&&ie&&!ie.persisted;Ne&&ie.beforeEnter(X),n(X,k,I),((ee=j&&j.onVnodeMounted)||Ne||be)&&fn(()=>{ee&&$i(ee,N,M),Ne&&ie.enter(X),be&&qa(M,null,N,"mounted")},G)},L=(M,k,I,N,G)=>{if(I&&b(M,I),N)for(let Y=0;Y{for(let ee=X;ee{const ye=k.el=M.el;let{patchFlag:X,dynamicChildren:ee,dirs:pe}=k;X|=M.patchFlag&16;const j=M.props||Zt,z=k.props||Zt;let ie;I&&Ba(I,!1),(ie=z.onVnodeBeforeUpdate)&&$i(ie,I,k,M),pe&&qa(k,M,I,"beforeUpdate"),I&&Ba(I,!0);const be=G&&k.type!=="foreignObject";if(ee?q(M.dynamicChildren,ee,ye,I,N,be,Y):se||Pe(M,k,ye,null,I,N,be,Y,!1),X>0){if(X&16)H(ye,k,j,z,I,N,G);else if(X&2&&j.class!==z.class&&o(ye,"class",null,z.class,G),X&4&&o(ye,"style",j.style,z.style,G),X&8){const Ne=k.dynamicProps;for(let Ue=0;Ue{ie&&$i(ie,I,k,M),pe&&qa(k,M,I,"updated")},N)},q=(M,k,I,N,G,Y,se)=>{for(let ye=0;ye{if(I!==N){if(I!==Zt)for(const ye in I)!Df(ye)&&!(ye in N)&&o(M,ye,I[ye],null,se,k.children,G,Y,Ge);for(const ye in N){if(Df(ye))continue;const X=N[ye],ee=I[ye];X!==ee&&ye!=="value"&&o(M,ye,ee,X,se,k.children,G,Y,Ge)}"value"in N&&o(M,"value",I.value,N.value)}},U=(M,k,I,N,G,Y,se,ye,X)=>{const ee=k.el=M?M.el:c(""),pe=k.anchor=M?M.anchor:c("");let{patchFlag:j,dynamicChildren:z,slotScopeIds:ie}=k;ie&&(ye=ye?ye.concat(ie):ie),M==null?(n(ee,I,N),n(pe,I,N),R(k.children,I,pe,G,Y,se,ye,X)):j>0&&j&64&&z&&M.dynamicChildren?(q(M.dynamicChildren,z,I,G,Y,se,ye),(k.key!=null||G&&k===G.subTree)&&Gy(M,k,!0)):Pe(M,k,I,pe,G,Y,se,ye,X)},ce=(M,k,I,N,G,Y,se,ye,X)=>{k.slotScopeIds=ye,M==null?k.shapeFlag&512?G.ctx.activate(k,I,N,se,X):Ae(k,I,N,G,Y,se,X):Le(M,k,X)},Ae=(M,k,I,N,G,Y,se)=>{const ye=M.component=sM(M,N,G);if(Wp(M)&&(ye.ctx.renderer=ve),lM(ye),ye.asyncDep){if(G&&G.registerDep(ye,Te),!M.el){const X=ye.subTree=qe(Wn);v(null,X,k,I)}return}Te(ye,M,k,I,G,Y,se)},Le=(M,k,I)=>{const N=k.component=M.component;if(hL(M,k,I))if(N.asyncDep&&!N.asyncResolved){Ie(N,k,I);return}else N.next=k,lL(N.update),N.update();else k.el=M.el,N.vnode=k},Te=(M,k,I,N,G,Y,se)=>{const ye=()=>{if(M.isMounted){let{next:pe,bu:j,u:z,parent:ie,vnode:be}=M,Ne=pe,Ue;Ba(M,!1),pe?(pe.el=be.el,Ie(M,pe,se)):pe=be,j&&Nf(j),(Ue=pe.props&&pe.props.onVnodeBeforeUpdate)&&$i(Ue,ie,pe,be),Ba(M,!0);const dt=Xm(M),Wt=M.subTree;M.subTree=dt,m(Wt,dt,_(Wt.el),J(Wt),M,G,Y),pe.el=dt.el,Ne===null&&mL(M,dt.el),z&&fn(z,G),(Ue=pe.props&&pe.props.onVnodeUpdated)&&fn(()=>$i(Ue,ie,pe,be),G)}else{let pe;const{el:j,props:z}=k,{bm:ie,m:be,parent:Ne}=M,Ue=Uc(k);if(Ba(M,!1),ie&&Nf(ie),!Ue&&(pe=z&&z.onVnodeBeforeMount)&&$i(pe,Ne,k),Ba(M,!0),j&&Oe){const dt=()=>{M.subTree=Xm(M),Oe(j,M.subTree,M,G,null)};Ue?k.type.__asyncLoader().then(()=>!M.isUnmounted&&dt()):dt()}else{const dt=M.subTree=Xm(M);m(null,dt,I,N,M,G,Y),k.el=dt.el}if(be&&fn(be,G),!Ue&&(pe=z&&z.onVnodeMounted)){const dt=k;fn(()=>$i(pe,Ne,dt),G)}(k.shapeFlag&256||Ne&&Uc(Ne.vnode)&&Ne.vnode.shapeFlag&256)&&M.a&&fn(M.a,G),M.isMounted=!0,k=I=N=null}},X=M.effect=new Oy(ye,()=>Ny(ee),M.scope),ee=M.update=()=>X.run();ee.id=M.uid,Ba(M,!0),ee()},Ie=(M,k,I)=>{k.component=M;const N=M.vnode.props;M.vnode=k,M.next=null,HL(M,k.props,N,I),QL(M,k.children,I),Hl(),h2(),Gl()},Pe=(M,k,I,N,G,Y,se,ye,X=!1)=>{const ee=M&&M.children,pe=M?M.shapeFlag:0,j=k.children,{patchFlag:z,shapeFlag:ie}=k;if(z>0){if(z&128){de(ee,j,I,N,G,Y,se,ye,X);return}else if(z&256){Ce(ee,j,I,N,G,Y,se,ye,X);return}}ie&8?(pe&16&&Ge(ee,G,Y),j!==ee&&f(I,j)):pe&16?ie&16?de(ee,j,I,N,G,Y,se,ye,X):Ge(ee,G,Y,!0):(pe&8&&f(I,""),ie&16&&R(j,I,N,G,Y,se,ye,X))},Ce=(M,k,I,N,G,Y,se,ye,X)=>{M=M||dl,k=k||dl;const ee=M.length,pe=k.length,j=Math.min(ee,pe);let z;for(z=0;zpe?Ge(M,G,Y,!0,!1,j):R(k,I,N,G,Y,se,ye,X,j)},de=(M,k,I,N,G,Y,se,ye,X)=>{let ee=0;const pe=k.length;let j=M.length-1,z=pe-1;for(;ee<=j&&ee<=z;){const ie=M[ee],be=k[ee]=X?Yo(k[ee]):Pi(k[ee]);if(Ka(ie,be))m(ie,be,I,null,G,Y,se,ye,X);else break;ee++}for(;ee<=j&&ee<=z;){const ie=M[j],be=k[z]=X?Yo(k[z]):Pi(k[z]);if(Ka(ie,be))m(ie,be,I,null,G,Y,se,ye,X);else break;j--,z--}if(ee>j){if(ee<=z){const ie=z+1,be=iez)for(;ee<=j;)ke(M[ee],G,Y,!0),ee++;else{const ie=ee,be=ee,Ne=new Map;for(ee=be;ee<=z;ee++){const _r=k[ee]=X?Yo(k[ee]):Pi(k[ee]);_r.key!=null&&Ne.set(_r.key,ee)}let Ue,dt=0;const Wt=z-be+1;let gr=!1,Ci=0;const ri=new Array(Wt);for(ee=0;ee=Wt){ke(_r,G,Y,!0);continue}let Nr;if(_r.key!=null)Nr=Ne.get(_r.key);else for(Ue=be;Ue<=z;Ue++)if(ri[Ue-be]===0&&Ka(_r,k[Ue])){Nr=Ue;break}Nr===void 0?ke(_r,G,Y,!0):(ri[Nr-be]=ee+1,Nr>=Ci?Ci=Nr:gr=!0,m(_r,k[Nr],I,null,G,Y,se,ye,X),dt++)}const $o=gr?ZL(ri):dl;for(Ue=$o.length-1,ee=Wt-1;ee>=0;ee--){const _r=be+ee,Nr=k[_r],Oo=_r+1{const{el:Y,type:se,transition:ye,children:X,shapeFlag:ee}=M;if(ee&6){we(M.component.subTree,k,I,N);return}if(ee&128){M.suspense.move(k,I,N);return}if(ee&64){se.move(M,k,I,ve);return}if(se===St){n(Y,k,I);for(let j=0;jye.enter(Y),G);else{const{leave:j,delayLeave:z,afterLeave:ie}=ye,be=()=>n(Y,k,I),Ne=()=>{j(Y,()=>{be(),ie&&ie()})};z?z(Y,be,Ne):Ne()}else n(Y,k,I)},ke=(M,k,I,N=!1,G=!1)=>{const{type:Y,props:se,ref:ye,children:X,dynamicChildren:ee,shapeFlag:pe,patchFlag:j,dirs:z}=M;if(ye!=null&&eg(ye,null,I,M,!0),pe&256){k.ctx.deactivate(M);return}const ie=pe&1&&z,be=!Uc(M);let Ne;if(be&&(Ne=se&&se.onVnodeBeforeUnmount)&&$i(Ne,k,M),pe&6)ze(M.component,I,N);else{if(pe&128){M.suspense.unmount(I,N);return}ie&&qa(M,null,k,"beforeUnmount"),pe&64?M.type.remove(M,k,I,G,ve,N):ee&&(Y!==St||j>0&&j&64)?Ge(ee,k,I,!1,!0):(Y===St&&j&384||!G&&pe&16)&&Ge(X,k,I),N&&Re(M)}(be&&(Ne=se&&se.onVnodeUnmounted)||ie)&&fn(()=>{Ne&&$i(Ne,k,M),ie&&qa(M,null,k,"unmounted")},I)},Re=M=>{const{type:k,el:I,anchor:N,transition:G}=M;if(k===St){He(I,N);return}if(k===Gc){T(M);return}const Y=()=>{i(I),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(M.shapeFlag&1&&G&&!G.persisted){const{leave:se,delayLeave:ye}=G,X=()=>se(I,Y);ye?ye(M.el,Y,X):X()}else Y()},He=(M,k)=>{let I;for(;M!==k;)I=y(M),i(M),M=I;i(k)},ze=(M,k,I)=>{const{bum:N,scope:G,update:Y,subTree:se,um:ye}=M;N&&Nf(N),G.stop(),Y&&(Y.active=!1,ke(se,M,k,I)),ye&&fn(ye,k),fn(()=>{M.isUnmounted=!0},k),k&&k.pendingBranch&&!k.isUnmounted&&M.asyncDep&&!M.asyncResolved&&M.suspenseId===k.pendingId&&(k.deps--,k.deps===0&&k.resolve())},Ge=(M,k,I,N=!1,G=!1,Y=0)=>{for(let se=Y;seM.shapeFlag&6?J(M.component.subTree):M.shapeFlag&128?M.suspense.next():y(M.anchor||M.el),me=(M,k,I)=>{M==null?k._vnode&&ke(k._vnode,null,null,!0):m(k._vnode||null,M,k,null,null,null,I),h2(),_T(),k._vnode=M},ve={p:m,um:ke,m:we,r:Re,mt:Ae,mc:R,pc:Pe,pbc:q,n:J,o:t};let $e,Oe;return e&&([$e,Oe]=e(ve)),{render:me,hydrate:$e,createApp:UL(me,$e)}}function Ba({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function Gy(t,e,r=!1){const n=t.children,i=e.children;if(Ye(n)&&Ye(i))for(let o=0;o>1,t[r[c]]0&&(e[n]=r[o-1]),r[o]=n)}}for(o=r.length,a=r[o-1];o-- >0;)r[o]=a,a=e[a];return r}const XL=t=>t.__isTeleport,Hc=t=>t&&(t.disabled||t.disabled===""),A2=t=>typeof SVGElement<"u"&&t instanceof SVGElement,tg=(t,e)=>{const r=t&&t.to;return ar(r)?e?e(r):null:r},JL={__isTeleport:!0,process(t,e,r,n,i,o,a,c,d,u){const{mc:f,pc:_,pbc:y,o:{insert:b,querySelector:p,createText:m,createComment:g}}=u,v=Hc(e.props);let{shapeFlag:x,children:E,dynamicChildren:T}=e;if(t==null){const C=e.el=m(""),A=e.anchor=m("");b(C,r,n),b(A,r,n);const L=e.target=tg(e.props,p),R=e.targetAnchor=m("");L&&(b(R,L),a=a||A2(L));const D=(q,H)=>{x&16&&f(E,q,H,i,o,a,c,d)};v?D(r,A):L&&D(L,R)}else{e.el=t.el;const C=e.anchor=t.anchor,A=e.target=t.target,L=e.targetAnchor=t.targetAnchor,R=Hc(t.props),D=R?r:A,q=R?C:L;if(a=a||A2(A),T?(y(t.dynamicChildren,T,D,i,o,a,c),Gy(t,e,!0)):d||_(t,e,D,q,i,o,a,c,!1),v)R||xf(e,r,C,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const H=e.target=tg(e.props,p);H&&xf(e,H,null,u,0)}else R&&xf(e,A,L,u,1)}FT(e)},remove(t,e,r,n,{um:i,o:{remove:o}},a){const{shapeFlag:c,children:d,anchor:u,targetAnchor:f,target:_,props:y}=t;if(_&&o(f),(a||!Hc(y))&&(o(u),c&16))for(let b=0;b0?ui||dl:null,tM(),vd>0&&ui&&ui.push(t),t}function oe(t,e,r,n,i,o){return NT(V(t,e,r,n,i,o,!0))}function Hr(t,e,r,n,i){return NT(qe(t,e,r,n,i,!0))}function sp(t){return t?t.__v_isVNode===!0:!1}function Ka(t,e){return t.type===e.type&&t.key===e.key}const Kp="__vInternal",zT=({key:t})=>t??null,zf=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?ar(t)||Rt(t)||st(t)?{i:$r,r:t,k:e,f:!!r}:t:null);function V(t,e=null,r=null,n=0,i=null,o=t===St?0:1,a=!1,c=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&zT(e),ref:e&&zf(e),scopeId:Hp,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:$r};return c?(Qy(d,r),o&128&&t.normalize(d)):r&&(d.shapeFlag|=ar(r)?8:16),vd>0&&!a&&ui&&(d.patchFlag>0||o&6)&&d.patchFlag!==32&&ui.push(d),d}const qe=rM;function rM(t,e=null,r=null,n=0,i=null,o=!1){if((!t||t===ST)&&(t=Wn),sp(t)){const c=ua(t,e,!0);return r&&Qy(c,r),vd>0&&!o&&ui&&(c.shapeFlag&6?ui[ui.indexOf(t)]=c:ui.push(c)),c.patchFlag|=-2,c}if(fM(t)&&(t=t.__vccOpts),e){e=nM(e);let{class:c,style:d}=e;c&&!ar(c)&&(e.class=jn(c)),qt(d)&&(dT(d)&&!Ye(d)&&(d=ur({},d)),e.style=bl(d))}const a=ar(t)?1:vL(t)?128:XL(t)?64:qt(t)?4:st(t)?2:0;return V(t,e,r,n,i,a,o,!0)}function nM(t){return t?dT(t)||Kp in t?ur({},t):t:null}function ua(t,e,r=!1){const{props:n,ref:i,patchFlag:o,children:a}=t,c=e?qT(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&zT(c),ref:e&&e.ref?r&&i?Ye(i)?i.concat(zf(e)):[i,zf(e)]:zf(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==St?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ua(t.ssContent),ssFallback:t.ssFallback&&ua(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Cn(t=" ",e=0){return qe(Nd,null,t,e)}function iM(t,e){const r=qe(Gc,null,t);return r.staticCount=e,r}function yt(t="",e=!1){return e?(te(),Hr(Wn,null,t)):qe(Wn,null,t)}function Pi(t){return t==null||typeof t=="boolean"?qe(Wn):Ye(t)?qe(St,null,t.slice()):typeof t=="object"?Yo(t):qe(Nd,null,String(t))}function Yo(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:ua(t)}function Qy(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(Ye(e))r=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),Qy(t,i()),i._c&&(i._d=!0));return}else{r=32;const i=e._;!i&&!(Kp in e)?e._ctx=$r:i===3&&$r&&($r.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else st(e)?(e={default:e,_ctx:$r},r=32):(e=String(e),n&64?(r=16,e=[Cn(e)]):r=8);t.children=e,t.shapeFlag|=r}function qT(...t){const e={};for(let r=0;rxr||$r;let Ky,Gs,I2="__VUE_INSTANCE_SETTERS__";(Gs=Hv()[I2])||(Gs=Hv()[I2]=[]),Gs.push(t=>xr=t),Ky=t=>{Gs.length>1?Gs.forEach(e=>e(t)):Gs[0](t)};const wl=t=>{Ky(t),t.scope.on()},is=()=>{xr&&xr.scope.off(),Ky(null)};function BT(t){return t.vnode.shapeFlag&4}let gd=!1;function lM(t,e=!1){gd=e;const{props:r,children:n}=t.vnode,i=BT(t);jL(t,r,i,e),WL(t,n);const o=i?cM(t,e):void 0;return gd=!1,o}function cM(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=Fd(new Proxy(t.ctx,RL));const{setup:n}=r;if(n){const i=t.setupContext=n.length>1?VT(t):null;wl(t),Hl();const o=la(n,t,0,[t.props,i]);if(Gl(),is(),GE(o)){if(o.then(is,is),e)return o.then(a=>{$2(t,a,e)}).catch(a=>{Vp(a,t,0)});t.asyncDep=o}else $2(t,o,e)}else UT(t,e)}function $2(t,e,r){st(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:qt(e)&&(t.setupState=hT(e)),UT(t,r)}let O2;function UT(t,e,r){const n=t.type;if(!t.render){if(!e&&O2&&!n.render){const i=n.template||jy(t).template;if(i){const{isCustomElement:o,compilerOptions:a}=t.appContext.config,{delimiters:c,compilerOptions:d}=n,u=ur(ur({isCustomElement:o,delimiters:c},a),d);n.render=O2(i,u)}}t.render=n.render||mi}wl(t),Hl(),DL(t),Gl(),is()}function dM(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,r){return hn(t,"get","$attrs"),e[r]}}))}function VT(t){const e=r=>{t.exposed=r||{}};return{get attrs(){return dM(t)},slots:t.slots,emit:t.emit,expose:e}}function Yp(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(hT(Fd(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in Vc)return Vc[r](t)},has(e,r){return r in e||r in Vc}}))}function uM(t,e=!0){return st(t)?t.displayName||t.name:t.name||e&&t.__name}function fM(t){return st(t)&&"__vccOpts"in t}const It=(t,e)=>oL(t,e,gd);function Ni(t,e,r){const n=arguments.length;return n===2?qt(e)&&!Ye(e)?sp(e)?qe(t,null,[e]):qe(t,e):qe(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&sp(r)&&(r=[r]),qe(t,e,r))}const pM=Symbol.for("v-scx"),hM=()=>rn(pM),mM="3.3.4",vM="http://www.w3.org/2000/svg",Ya=typeof document<"u"?document:null,P2=Ya&&Ya.createElement("template"),gM={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const i=e?Ya.createElementNS(vM,t):Ya.createElement(t,r?{is:r}:void 0);return t==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:t=>Ya.createTextNode(t),createComment:t=>Ya.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ya.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,i,o){const a=r?r.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),r),!(i===o||!(i=i.nextSibling)););else{P2.innerHTML=n?`${t}`:t;const c=P2.content;if(n){const d=c.firstChild;for(;d.firstChild;)c.appendChild(d.firstChild);c.removeChild(d)}e.insertBefore(c,r)}return[a?a.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}};function _M(t,e,r){const n=t._vtc;n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}function yM(t,e,r){const n=t.style,i=ar(r);if(r&&!i){if(e&&!ar(e))for(const o in e)r[o]==null&&rg(n,o,"");for(const o in r)rg(n,o,r[o])}else{const o=n.display;i?e!==r&&(n.cssText=r):e&&t.removeAttribute("style"),"_vod"in t&&(n.display=o)}}const R2=/\s*!important$/;function rg(t,e,r){if(Ye(r))r.forEach(n=>rg(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=bM(t,e);R2.test(r)?t.setProperty(xs(n),r.replace(R2,""),"important"):t[n]=r}}const L2=["Webkit","Moz","ms"],tv={};function bM(t,e){const r=tv[e];if(r)return r;let n=Fi(e);if(n!=="filter"&&n in t)return tv[e]=n;n=qp(n);for(let i=0;irv||(CM.then(()=>rv=0),rv=Date.now());function SM(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Gn(IM(n,r.value),e,5,[n])};return r.value=t,r.attached=AM(),r}function IM(t,e){if(Ye(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(n=>i=>!i._stopped&&n&&n(i))}else return e}const F2=/^on[a-z]/,$M=(t,e,r,n,i=!1,o,a,c,d)=>{e==="class"?_M(t,n,i):e==="style"?yM(t,r,n):Np(e)?Ty(e)||TM(t,e,r,n,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):OM(t,e,n,i))?wM(t,e,n,o,a,c,d):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),xM(t,e,n,i))};function OM(t,e,r,n){return n?!!(e==="innerHTML"||e==="textContent"||e in t&&F2.test(e)&&st(r)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||F2.test(e)&&ar(r)?!1:e in t}function PM(t){const e=Gi();if(!e)return;const r=e.ut=(i=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(o=>ig(o,i))},n=()=>{const i=t(e.proxy);ng(e.subTree,i),r(i)};yL(n),mn(()=>{const i=new MutationObserver(n);i.observe(e.subTree.el.parentNode,{childList:!0}),Wl(()=>i.disconnect())})}function ng(t,e){if(t.shapeFlag&128){const r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{ng(r.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)ig(t.el,e);else if(t.type===St)t.children.forEach(r=>ng(r,e));else if(t.type===Gc){let{el:r,anchor:n}=t;for(;r&&(ig(r,e),r!==n);)r=r.nextSibling}}function ig(t,e){if(t.nodeType===1){const r=t.style;for(const n in e)r.setProperty(`--${n}`,e[n])}}const Uo="transition",Cc="animation",_d=(t,{slots:e})=>Ni(wL,HT(t),e);_d.displayName="Transition";const jT={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},RM=_d.props=ur({},ET,jT),Ua=(t,e=[])=>{Ye(t)?t.forEach(r=>r(...e)):t&&t(...e)},N2=t=>t?Ye(t)?t.some(e=>e.length>1):t.length>1:!1;function HT(t){const e={};for(const U in t)U in jT||(e[U]=t[U]);if(t.css===!1)return e;const{name:r="v",type:n,duration:i,enterFromClass:o=`${r}-enter-from`,enterActiveClass:a=`${r}-enter-active`,enterToClass:c=`${r}-enter-to`,appearFromClass:d=o,appearActiveClass:u=a,appearToClass:f=c,leaveFromClass:_=`${r}-leave-from`,leaveActiveClass:y=`${r}-leave-active`,leaveToClass:b=`${r}-leave-to`}=t,p=LM(i),m=p&&p[0],g=p&&p[1],{onBeforeEnter:v,onEnter:x,onEnterCancelled:E,onLeave:T,onLeaveCancelled:C,onBeforeAppear:A=v,onAppear:L=x,onAppearCancelled:R=E}=e,D=(U,ce,Ae)=>{Wo(U,ce?f:c),Wo(U,ce?u:a),Ae&&Ae()},q=(U,ce)=>{U._isLeaving=!1,Wo(U,_),Wo(U,b),Wo(U,y),ce&&ce()},H=U=>(ce,Ae)=>{const Le=U?L:x,Te=()=>D(ce,U,Ae);Ua(Le,[ce,Te]),z2(()=>{Wo(ce,U?d:o),so(ce,U?f:c),N2(Le)||q2(ce,n,m,Te)})};return ur(e,{onBeforeEnter(U){Ua(v,[U]),so(U,o),so(U,a)},onBeforeAppear(U){Ua(A,[U]),so(U,d),so(U,u)},onEnter:H(!1),onAppear:H(!0),onLeave(U,ce){U._isLeaving=!0;const Ae=()=>q(U,ce);so(U,_),WT(),so(U,y),z2(()=>{U._isLeaving&&(Wo(U,_),so(U,b),N2(T)||q2(U,n,g,Ae))}),Ua(T,[U,Ae])},onEnterCancelled(U){D(U,!1),Ua(E,[U])},onAppearCancelled(U){D(U,!0),Ua(R,[U])},onLeaveCancelled(U){q(U),Ua(C,[U])}})}function LM(t){if(t==null)return null;if(qt(t))return[nv(t.enter),nv(t.leave)];{const e=nv(t);return[e,e]}}function nv(t){return mR(t)}function so(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t._vtc||(t._vtc=new Set)).add(e)}function Wo(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const{_vtc:r}=t;r&&(r.delete(e),r.size||(t._vtc=void 0))}function z2(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let MM=0;function q2(t,e,r,n){const i=t._endId=++MM,o=()=>{i===t._endId&&n()};if(r)return setTimeout(o,r);const{type:a,timeout:c,propCount:d}=GT(t,e);if(!a)return n();const u=a+"end";let f=0;const _=()=>{t.removeEventListener(u,y),o()},y=b=>{b.target===t&&++f>=d&&_()};setTimeout(()=>{f(r[p]||"").split(", "),i=n(`${Uo}Delay`),o=n(`${Uo}Duration`),a=B2(i,o),c=n(`${Cc}Delay`),d=n(`${Cc}Duration`),u=B2(c,d);let f=null,_=0,y=0;e===Uo?a>0&&(f=Uo,_=a,y=o.length):e===Cc?u>0&&(f=Cc,_=u,y=d.length):(_=Math.max(a,u),f=_>0?a>u?Uo:Cc:null,y=f?f===Uo?o.length:d.length:0);const b=f===Uo&&/\b(transform|all)(,|$)/.test(n(`${Uo}Property`).toString());return{type:f,timeout:_,propCount:y,hasTransform:b}}function B2(t,e){for(;t.lengthU2(r)+U2(t[n])))}function U2(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function WT(){return document.body.offsetHeight}const QT=new WeakMap,KT=new WeakMap,YT={name:"TransitionGroup",props:ur({},RM,{tag:String,moveClass:String}),setup(t,{slots:e}){const r=Gi(),n=wT();let i,o;return CT(()=>{if(!i.length)return;const a=t.moveClass||`${t.name||"v"}-move`;if(!BM(i[0].el,r.vnode.el,a))return;i.forEach(NM),i.forEach(zM);const c=i.filter(qM);WT(),c.forEach(d=>{const u=d.el,f=u.style;so(u,a),f.transform=f.webkitTransform=f.transitionDuration="";const _=u._moveCb=y=>{y&&y.target!==u||(!y||/transform$/.test(y.propertyName))&&(u.removeEventListener("transitionend",_),u._moveCb=null,Wo(u,a))};u.addEventListener("transitionend",_)})}),()=>{const a=bt(t),c=HT(a);let d=a.tag||St;i=o,o=e.default?zy(e.default()):[];for(let u=0;udelete t.mode;YT.props;const FM=YT;function NM(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function zM(t){KT.set(t,t.el.getBoundingClientRect())}function qM(t){const e=QT.get(t),r=KT.get(t),n=e.left-r.left,i=e.top-r.top;if(n||i){const o=t.el.style;return o.transform=o.webkitTransform=`translate(${n}px,${i}px)`,o.transitionDuration="0s",t}}function BM(t,e,r){const n=t.cloneNode();t._vtc&&t._vtc.forEach(a=>{a.split(/\s+/).forEach(c=>c&&n.classList.remove(c))}),r.split(/\s+/).forEach(a=>a&&n.classList.add(a)),n.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(n);const{hasTransform:o}=GT(n);return i.removeChild(n),o}const fa=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Ye(e)?r=>Nf(e,r):e};function UM(t){t.target.composing=!0}function V2(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const og={created(t,{modifiers:{lazy:e,trim:r,number:n}},i){t._assign=fa(i);const o=n||i.props&&i.props.type==="number";uo(t,e?"change":"input",a=>{if(a.target.composing)return;let c=t.value;r&&(c=c.trim()),o&&(c=rp(c)),t._assign(c)}),r&&uo(t,"change",()=>{t.value=t.value.trim()}),e||(uo(t,"compositionstart",UM),uo(t,"compositionend",V2),uo(t,"change",V2))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:n,number:i}},o){if(t._assign=fa(o),t.composing||document.activeElement===t&&t.type!=="range"&&(r||n&&t.value.trim()===e||(i||t.type==="number")&&rp(t.value)===e))return;const a=e??"";t.value!==a&&(t.value=a)}},VM={deep:!0,created(t,e,r){t._assign=fa(r),uo(t,"change",()=>{const n=t._modelValue,i=El(t),o=t.checked,a=t._assign;if(Ye(n)){const c=Ay(n,i),d=c!==-1;if(o&&!d)a(n.concat(i));else if(!o&&d){const u=[...n];u.splice(c,1),a(u)}}else if(jl(n)){const c=new Set(n);o?c.add(i):c.delete(i),a(c)}else a(ZT(t,o))})},mounted:j2,beforeUpdate(t,e,r){t._assign=fa(r),j2(t,e,r)}};function j2(t,{value:e,oldValue:r},n){t._modelValue=e,Ye(e)?t.checked=Ay(e,n.props.value)>-1:jl(e)?t.checked=e.has(n.props.value):e!==r&&(t.checked=ps(e,ZT(t,!0)))}const jM={created(t,{value:e},r){t.checked=ps(e,r.props.value),t._assign=fa(r),uo(t,"change",()=>{t._assign(El(t))})},beforeUpdate(t,{value:e,oldValue:r},n){t._assign=fa(n),e!==r&&(t.checked=ps(e,n.props.value))}},HM={deep:!0,created(t,{value:e,modifiers:{number:r}},n){const i=jl(e);uo(t,"change",()=>{const o=Array.prototype.filter.call(t.options,a=>a.selected).map(a=>r?rp(El(a)):El(a));t._assign(t.multiple?i?new Set(o):o:o[0])}),t._assign=fa(n)},mounted(t,{value:e}){H2(t,e)},beforeUpdate(t,e,r){t._assign=fa(r)},updated(t,{value:e}){H2(t,e)}};function H2(t,e){const r=t.multiple;if(!(r&&!Ye(e)&&!jl(e))){for(let n=0,i=t.options.length;n-1:o.selected=e.has(a);else if(ps(El(o),e)){t.selectedIndex!==n&&(t.selectedIndex=n);return}}!r&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function El(t){return"_value"in t?t._value:t.value}function ZT(t,e){const r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}const Pve={created(t,e,r){wf(t,e,r,null,"created")},mounted(t,e,r){wf(t,e,r,null,"mounted")},beforeUpdate(t,e,r,n){wf(t,e,r,n,"beforeUpdate")},updated(t,e,r,n){wf(t,e,r,n,"updated")}};function GM(t,e){switch(t){case"SELECT":return HM;case"TEXTAREA":return og;default:switch(e){case"checkbox":return VM;case"radio":return jM;default:return og}}}function wf(t,e,r,n,i){const a=GM(t.tagName,r.props&&r.props.type)[i];a&&a(t,e,r,n)}const WM=["ctrl","shift","alt","meta"],QM={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>WM.some(r=>t[`${r}Key`]&&!e.includes(r))},Pt=(t,e)=>(r,...n)=>{for(let i=0;ir=>{if(!("key"in r))return;const n=xs(r.key);if(e.some(i=>i===n||KM[i]===n))return t(r)},fi={beforeMount(t,{value:e},{transition:r}){t._vod=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):Ac(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:n}){!e!=!r&&(n?e?(n.beforeEnter(t),Ac(t,!0),n.enter(t)):n.leave(t,()=>{Ac(t,!1)}):Ac(t,e))},beforeUnmount(t,{value:e}){Ac(t,e)}};function Ac(t,e){t.style.display=e?t._vod:"none"}const YM=ur({patchProp:$M},gM);let G2;function XT(){return G2||(G2=KL(YM))}const ag=(...t)=>{XT().render(...t)},ZM=(...t)=>{const e=XT().createApp(...t),{mount:r}=e;return e.mount=n=>{const i=XM(n);if(!i)return;const o=e._component;!st(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const a=r(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},e};function XM(t){return ar(t)?document.querySelector(t):t}var JM=!1;function JT(t,e,r){var n=r||{},i=n.noTrailing,o=i===void 0?!1:i,a=n.noLeading,c=a===void 0?!1:a,d=n.debounceMode,u=d===void 0?void 0:d,f,_=!1,y=0;function b(){f&&clearTimeout(f)}function p(g){var v=g||{},x=v.upcomingOnly,E=x===void 0?!1:x;b(),_=!E}function m(){for(var g=arguments.length,v=new Array(g),x=0;xt?c?(y=Date.now(),o||(f=setTimeout(u?A:C,t))):C():o!==!0&&(f=setTimeout(u?A:C,u===void 0?t-T:t))}return m.cancel=p,m}function eD(t,e,r){var n=r||{},i=n.atBegin,o=i===void 0?!1:i;return JT(t,e,{debounceMode:o!==!1})}var sg=function(t,e){return sg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},sg(t,e)};function Wi(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");sg(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var re=function(){return re=Object.assign||function(e){for(var r,n=1,i=arguments.length;n=0;c--)(a=t[c])&&(o=(i<3?a(o):i>3?a(e,r,o):a(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o}function Zo(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function c(f){try{u(n.next(f))}catch(_){a(_)}}function d(f){try{u(n.throw(f))}catch(_){a(_)}}function u(f){f.done?o(f.value):i(f.value).then(c,d)}u((n=n.apply(t,e||[])).next())})}function Xo(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(u){return function(f){return d([u,f])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(r=0)),r;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]=rD){var e=console[t]||console.log;return e.apply(console,arguments)}}}(function(t){t.debug=Ef("debug"),t.log=Ef("log"),t.warn=Ef("warn"),t.error=Ef("error")})(Za||(Za={}));var Yy="3.8.5";function ci(t){try{return t()}catch{}}const Q2=ci(function(){return globalThis})||ci(function(){return window})||ci(function(){return self})||ci(function(){return global})||ci(function(){return ci.constructor("return this")()});var K2=new Map;function lg(t){var e=K2.get(t)||1;return K2.set(t,e+1),"".concat(t,":").concat(e,":").concat(Math.random().toString(36).slice(2))}function r3(t,e){e===void 0&&(e=0);var r=lg("stringifyForDisplay");return JSON.stringify(t,function(n,i){return i===void 0?r:i},e).split(JSON.stringify(r)).join("")}function Tf(t){return function(e){for(var r=[],n=1;n=e)break;r=i.index+i[0].length,n+=1}return{line:n,column:e+1-r}}function aD(t){return i3(t.source,cg(t.source,t.start))}function i3(t,e){const r=t.locationOffset.column-1,n="".padStart(r)+t.body,i=e.line-1,o=t.locationOffset.line-1,a=e.line+o,c=e.line===1?r:0,d=e.column+c,u=`${t.name}:${a}:${d} +var sR=Object.defineProperty;var lR=(t,e,r)=>e in t?sR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var kr=(t,e,r)=>(lR(t,typeof e!="symbol"?e+"":e,r),r);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();function Ty(t,e){const r=Object.create(null),n=t.split(",");for(let i=0;i!!r[i.toLowerCase()]:i=>!!r[i]}const Zt={},dl=[],mi=()=>{},cR=()=>!1,dR=/^on[^a-z]/,zp=t=>dR.test(t),ky=t=>t.startsWith("onUpdate:"),ur=Object.assign,Cy=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},uR=Object.prototype.hasOwnProperty,kt=(t,e)=>uR.call(t,e),Ye=Array.isArray,ul=t=>Nd(t)==="[object Map]",jl=t=>Nd(t)==="[object Set]",o2=t=>Nd(t)==="[object Date]",st=t=>typeof t=="function",ar=t=>typeof t=="string",cd=t=>typeof t=="symbol",qt=t=>t!==null&&typeof t=="object",GE=t=>qt(t)&&st(t.then)&&st(t.catch),WE=Object.prototype.toString,Nd=t=>WE.call(t),fR=t=>Nd(t).slice(8,-1),QE=t=>Nd(t)==="[object Object]",Ay=t=>ar(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Nf=Ty(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),qp=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},pR=/-(\w)/g,Fi=qp(t=>t.replace(pR,(e,r)=>r?r.toUpperCase():"")),hR=/\B([A-Z])/g,xs=qp(t=>t.replace(hR,"-$1").toLowerCase()),Bp=qp(t=>t.charAt(0).toUpperCase()+t.slice(1)),zf=qp(t=>t?`on${Bp(t)}`:""),dd=(t,e)=>!Object.is(t,e),qf=(t,e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},ip=t=>{const e=parseFloat(t);return isNaN(e)?t:e},mR=t=>{const e=ar(t)?Number(t):NaN;return isNaN(e)?t:e};let a2;const Gv=()=>a2||(a2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function bl(t){if(Ye(t)){const e={};for(let r=0;r{if(r){const n=r.split(gR);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function jn(t){let e="";if(ar(t))e=t;else if(Ye(t))for(let r=0;rps(r,e))}const De=t=>ar(t)?t:t==null?"":Ye(t)||qt(t)&&(t.toString===WE||!st(t.toString))?JSON.stringify(t,YE,2):String(t),YE=(t,e)=>e&&e.__v_isRef?YE(t,e.value):ul(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,i])=>(r[`${n} =>`]=i,r),{})}:jl(e)?{[`Set(${e.size})`]:[...e.values()]}:qt(e)&&!Ye(e)&&!QE(e)?String(e):e;let Tn;class ZE{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Tn,!e&&Tn&&(this.index=(Tn.scopes||(Tn.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const r=Tn;try{return Tn=this,e()}finally{Tn=r}}}on(){Tn=this}off(){Tn=this.parent}stop(e){if(this._active){let r,n;for(r=0,n=this.effects.length;r{const e=new Set(t);return e.w=0,e.n=0,e},XE=t=>(t.w&da)>0,JE=t=>(t.n&da)>0,kR=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let r=0;for(let n=0;n{(f==="length"||f>=d)&&c.push(u)})}else switch(r!==void 0&&c.push(a.get(r)),e){case"add":Ye(t)?Ay(r)&&c.push(a.get("length")):(c.push(a.get(ns)),ul(t)&&c.push(a.get(Qv)));break;case"delete":Ye(t)||(c.push(a.get(ns)),ul(t)&&c.push(a.get(Qv)));break;case"set":ul(t)&&c.push(a.get(ns));break}if(c.length===1)c[0]&&Kv(c[0]);else{const d=[];for(const u of c)u&&d.push(...u);Kv(Oy(d))}}function Kv(t,e){const r=Ye(t)?t:[...t];for(const n of r)n.computed&&l2(n);for(const n of r)n.computed||l2(n)}function l2(t,e){(t!==di||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function AR(t,e){var r;return(r=op.get(t))==null?void 0:r.get(e)}const SR=Ty("__proto__,__v_isRef,__isVue"),rT=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(cd)),IR=Ry(),$R=Ry(!1,!0),OR=Ry(!0),c2=PR();function PR(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const n=bt(this);for(let o=0,a=this.length;o{t[e]=function(...r){Hl();const n=bt(this)[e].apply(this,r);return Gl(),n}}),t}function RR(t){const e=bt(this);return hn(e,"has",t),e.hasOwnProperty(t)}function Ry(t=!1,e=!1){return function(n,i,o){if(i==="__v_isReactive")return!t;if(i==="__v_isReadonly")return t;if(i==="__v_isShallow")return e;if(i==="__v_raw"&&o===(t?e?KR:sT:e?aT:oT).get(n))return n;const a=Ye(n);if(!t){if(a&&kt(c2,i))return Reflect.get(c2,i,o);if(i==="hasOwnProperty")return RR}const c=Reflect.get(n,i,o);return(cd(i)?rT.has(i):SR(i))||(t||hn(n,"get",i),e)?c:Rt(c)?a&&Ay(i)?c:c.value:qt(c)?t?cT(c):gi(c):c}}const LR=nT(),MR=nT(!0);function nT(t=!1){return function(r,n,i,o){let a=r[n];if(xl(a)&&Rt(a)&&!Rt(i))return!1;if(!t&&(!ap(i)&&!xl(i)&&(a=bt(a),i=bt(i)),!Ye(r)&&Rt(a)&&!Rt(i)))return a.value=i,!0;const c=Ye(r)&&Ay(n)?Number(n)t,Up=t=>Reflect.getPrototypeOf(t);function gf(t,e,r=!1,n=!1){t=t.__v_raw;const i=bt(t),o=bt(e);r||(e!==o&&hn(i,"get",e),hn(i,"get",o));const{has:a}=Up(i),c=n?Ly:r?Fy:ud;if(a.call(i,e))return c(t.get(e));if(a.call(i,o))return c(t.get(o));t!==i&&t.get(e)}function _f(t,e=!1){const r=this.__v_raw,n=bt(r),i=bt(t);return e||(t!==i&&hn(n,"has",t),hn(n,"has",i)),t===i?r.has(t):r.has(t)||r.has(i)}function yf(t,e=!1){return t=t.__v_raw,!e&&hn(bt(t),"iterate",ns),Reflect.get(t,"size",t)}function d2(t){t=bt(t);const e=bt(this);return Up(e).has.call(e,t)||(e.add(t),vo(e,"add",t,t)),this}function u2(t,e){e=bt(e);const r=bt(this),{has:n,get:i}=Up(r);let o=n.call(r,t);o||(t=bt(t),o=n.call(r,t));const a=i.call(r,t);return r.set(t,e),o?dd(e,a)&&vo(r,"set",t,e):vo(r,"add",t,e),this}function f2(t){const e=bt(this),{has:r,get:n}=Up(e);let i=r.call(e,t);i||(t=bt(t),i=r.call(e,t)),n&&n.call(e,t);const o=e.delete(t);return i&&vo(e,"delete",t,void 0),o}function p2(){const t=bt(this),e=t.size!==0,r=t.clear();return e&&vo(t,"clear",void 0,void 0),r}function bf(t,e){return function(n,i){const o=this,a=o.__v_raw,c=bt(a),d=e?Ly:t?Fy:ud;return!t&&hn(c,"iterate",ns),a.forEach((u,f)=>n.call(i,d(u),d(f),o))}}function xf(t,e,r){return function(...n){const i=this.__v_raw,o=bt(i),a=ul(o),c=t==="entries"||t===Symbol.iterator&&a,d=t==="keys"&&a,u=i[t](...n),f=r?Ly:e?Fy:ud;return!e&&hn(o,"iterate",d?Qv:ns),{next(){const{value:_,done:y}=u.next();return y?{value:_,done:y}:{value:c?[f(_[0]),f(_[1])]:f(_),done:y}},[Symbol.iterator](){return this}}}}function Bo(t){return function(...e){return t==="delete"?!1:this}}function BR(){const t={get(o){return gf(this,o)},get size(){return yf(this)},has:_f,add:d2,set:u2,delete:f2,clear:p2,forEach:bf(!1,!1)},e={get(o){return gf(this,o,!1,!0)},get size(){return yf(this)},has:_f,add:d2,set:u2,delete:f2,clear:p2,forEach:bf(!1,!0)},r={get(o){return gf(this,o,!0)},get size(){return yf(this,!0)},has(o){return _f.call(this,o,!0)},add:Bo("add"),set:Bo("set"),delete:Bo("delete"),clear:Bo("clear"),forEach:bf(!0,!1)},n={get(o){return gf(this,o,!0,!0)},get size(){return yf(this,!0)},has(o){return _f.call(this,o,!0)},add:Bo("add"),set:Bo("set"),delete:Bo("delete"),clear:Bo("clear"),forEach:bf(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=xf(o,!1,!1),r[o]=xf(o,!0,!1),e[o]=xf(o,!1,!0),n[o]=xf(o,!0,!0)}),[t,r,e,n]}const[UR,VR,jR,HR]=BR();function My(t,e){const r=e?t?HR:jR:t?VR:UR;return(n,i,o)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(kt(r,i)&&i in n?r:n,i,o)}const GR={get:My(!1,!1)},WR={get:My(!1,!0)},QR={get:My(!0,!1)},oT=new WeakMap,aT=new WeakMap,sT=new WeakMap,KR=new WeakMap;function YR(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ZR(t){return t.__v_skip||!Object.isExtensible(t)?0:YR(fR(t))}function gi(t){return xl(t)?t:Dy(t,!1,iT,GR,oT)}function lT(t){return Dy(t,!1,qR,WR,aT)}function cT(t){return Dy(t,!0,zR,QR,sT)}function Dy(t,e,r,n,i){if(!qt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=i.get(t);if(o)return o;const a=ZR(t);if(a===0)return t;const c=new Proxy(t,a===2?n:r);return i.set(t,c),c}function po(t){return xl(t)?po(t.__v_raw):!!(t&&t.__v_isReactive)}function xl(t){return!!(t&&t.__v_isReadonly)}function ap(t){return!!(t&&t.__v_isShallow)}function dT(t){return po(t)||xl(t)}function bt(t){const e=t&&t.__v_raw;return e?bt(e):t}function zd(t){return np(t,"__v_skip",!0),t}const ud=t=>qt(t)?gi(t):t,Fy=t=>qt(t)?cT(t):t;function uT(t){sa&&di&&(t=bt(t),tT(t.dep||(t.dep=Oy())))}function fT(t,e){t=bt(t);const r=t.dep;r&&Kv(r)}function Rt(t){return!!(t&&t.__v_isRef===!0)}function Se(t){return pT(t,!1)}function XR(t){return pT(t,!0)}function pT(t,e){return Rt(t)?t:new JR(t,e)}class JR{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:bt(e),this._value=r?e:ud(e)}get value(){return uT(this),this._value}set value(e){const r=this.__v_isShallow||ap(e)||xl(e);e=r?e:bt(e),dd(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:ud(e),fT(this))}}function fe(t){return Rt(t)?t.value:t}function Ove(t){return st(t)?t():fe(t)}const eL={get:(t,e,r)=>fe(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const i=t[e];return Rt(i)&&!Rt(r)?(i.value=r,!0):Reflect.set(t,e,r,n)}};function hT(t){return po(t)?t:new Proxy(t,eL)}function Vp(t){const e=Ye(t)?new Array(t.length):{};for(const r in t)e[r]=mT(t,r);return e}class tL{constructor(e,r,n){this._object=e,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return AR(bt(this._object),this._key)}}class rL{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function nL(t,e,r){return Rt(t)?t:st(t)?new rL(t):qt(t)&&arguments.length>1?mT(t,e,r):Se(t)}function mT(t,e,r){const n=t[e];return Rt(n)?n:new tL(t,e,r)}class iL{constructor(e,r,n,i){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Py(e,()=>{this._dirty||(this._dirty=!0,fT(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=bt(this);return uT(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function oL(t,e,r=!1){let n,i;const o=st(t);return o?(n=t,i=mi):(n=t.get,i=t.set),new iL(n,i,o||!i,r)}function la(t,e,r,n){let i;try{i=n?t(...n):t()}catch(o){jp(o,e,r)}return i}function Gn(t,e,r,n){if(st(t)){const o=la(t,e,r,n);return o&&GE(o)&&o.catch(a=>{jp(a,e,r)}),o}const i=[];for(let o=0;o>>1;pd(Vr[n])Ri&&Vr.splice(e,1)}function cL(t){Ye(t)?fl.push(...t):(!lo||!lo.includes(t,t.allowRecurse?Qa+1:Qa))&&fl.push(t),gT()}function h2(t,e=fd?Ri+1:0){for(;epd(r)-pd(n)),Qa=0;Qat.id==null?1/0:t.id,dL=(t,e)=>{const r=pd(t)-pd(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function yT(t){Yv=!1,fd=!0,Vr.sort(dL);const e=mi;try{for(Ri=0;Riar(b)?b.trim():b)),_&&(i=r.map(ip))}let c,d=n[c=zf(e)]||n[c=zf(Fi(e))];!d&&o&&(d=n[c=zf(xs(e))]),d&&Gn(d,t,6,i);const u=n[c+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[c])return;t.emitted[c]=!0,Gn(u,t,6,i)}}function bT(t,e,r=!1){const n=e.emitsCache,i=n.get(t);if(i!==void 0)return i;const o=t.emits;let a={},c=!1;if(!st(t)){const d=u=>{const f=bT(u,e,!0);f&&(c=!0,ur(a,f))};!r&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}return!o&&!c?(qt(t)&&n.set(t,null),null):(Ye(o)?o.forEach(d=>a[d]=null):ur(a,o),qt(t)&&n.set(t,a),a)}function Hp(t,e){return!t||!zp(e)?!1:(e=e.slice(2).replace(/Once$/,""),kt(t,e[0].toLowerCase()+e.slice(1))||kt(t,xs(e))||kt(t,e))}let $r=null,Gp=null;function sp(t){const e=$r;return $r=t,Gp=t&&t.type.__scopeId||null,e}function yo(t){Gp=t}function bo(){Gp=null}function _i(t,e=$r,r){if(!e||t._n)return t;const n=(...i)=>{n._d&&S2(-1);const o=sp(e);let a;try{a=t(...i)}finally{sp(o),n._d&&S2(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function Jm(t){const{type:e,vnode:r,proxy:n,withProxy:i,props:o,propsOptions:[a],slots:c,attrs:d,emit:u,render:f,renderCache:_,data:y,setupState:b,ctx:p,inheritAttrs:m}=t;let g,v;const x=sp(t);try{if(r.shapeFlag&4){const T=i||n;g=Pi(f.call(T,T,_,o,b,y,p)),v=d}else{const T=e;g=Pi(T.length>1?T(o,{attrs:d,slots:c,emit:u}):T(o,null)),v=e.props?d:fL(d)}}catch(T){Wc.length=0,jp(T,t,1),g=qe(Wn)}let E=g;if(v&&m!==!1){const T=Object.keys(v),{shapeFlag:C}=E;T.length&&C&7&&(a&&T.some(ky)&&(v=pL(v,a)),E=ua(E,v))}return r.dirs&&(E=ua(E),E.dirs=E.dirs?E.dirs.concat(r.dirs):r.dirs),r.transition&&(E.transition=r.transition),g=E,sp(x),g}const fL=t=>{let e;for(const r in t)(r==="class"||r==="style"||zp(r))&&((e||(e={}))[r]=t[r]);return e},pL=(t,e)=>{const r={};for(const n in t)(!ky(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function hL(t,e,r){const{props:n,children:i,component:o}=t,{props:a,children:c,patchFlag:d}=e,u=o.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&d>=0){if(d&1024)return!0;if(d&16)return n?m2(n,a,u):!!a;if(d&8){const f=e.dynamicProps;for(let _=0;_t.__isSuspense;function gL(t,e){e&&e.pendingBranch?Ye(t)?e.effects.push(...t):e.effects.push(t):cL(t)}function _L(t,e){return Wp(t,null,e)}function yL(t,e){return Wp(t,null,{flush:"post"})}const wf={};function Vt(t,e,r){return Wp(t,e,r)}function Wp(t,e,{immediate:r,deep:n,flush:i,onTrack:o,onTrigger:a}=Zt){var c;const d=$y()===((c=xr)==null?void 0:c.scope)?xr:null;let u,f=!1,_=!1;if(Rt(t)?(u=()=>t.value,f=ap(t)):po(t)?(u=()=>t,n=!0):Ye(t)?(_=!0,f=t.some(T=>po(T)||ap(T)),u=()=>t.map(T=>{if(Rt(T))return T.value;if(po(T))return Ja(T);if(st(T))return la(T,d,2)})):st(t)?e?u=()=>la(t,d,2):u=()=>{if(!(d&&d.isUnmounted))return y&&y(),Gn(t,d,3,[b])}:u=mi,e&&n){const T=u;u=()=>Ja(T())}let y,b=T=>{y=x.onStop=()=>{la(T,d,4)}},p;if(_d)if(b=mi,e?r&&Gn(e,d,3,[u(),_?[]:void 0,b]):u(),i==="sync"){const T=hM();p=T.__watcherHandles||(T.__watcherHandles=[])}else return mi;let m=_?new Array(t.length).fill(wf):wf;const g=()=>{if(x.active)if(e){const T=x.run();(n||f||(_?T.some((C,A)=>dd(C,m[A])):dd(T,m)))&&(y&&y(),Gn(e,d,3,[T,m===wf?void 0:_&&m[0]===wf?[]:m,b]),m=T)}else x.run()};g.allowRecurse=!!e;let v;i==="sync"?v=g:i==="post"?v=()=>fn(g,d&&d.suspense):(g.pre=!0,d&&(g.id=d.uid),v=()=>zy(g));const x=new Py(u,v);e?r?g():m=x.run():i==="post"?fn(x.run.bind(x),d&&d.suspense):x.run();const E=()=>{x.stop(),d&&d.scope&&Cy(d.scope.effects,x)};return p&&p.push(E),E}function bL(t,e,r){const n=this.proxy,i=ar(t)?t.includes(".")?xT(n,t):()=>n[t]:t.bind(n,n);let o;st(e)?o=e:(o=e.handler,r=e);const a=xr;wl(this);const c=Wp(i,o.bind(n),r);return a?wl(a):is(),c}function xT(t,e){const r=e.split(".");return()=>{let n=t;for(let i=0;i{Ja(r,e)});else if(QE(t))for(const r in t)Ja(t[r],e);return t}function vt(t,e){const r=$r;if(r===null)return t;const n=Zp(r)||r.proxy,i=t.dirs||(t.dirs=[]);for(let o=0;o{t.isMounted=!0}),Hi(()=>{t.isUnmounting=!0}),t}const Bn=[Function,Array],ET={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Bn,onEnter:Bn,onAfterEnter:Bn,onEnterCancelled:Bn,onBeforeLeave:Bn,onLeave:Bn,onAfterLeave:Bn,onLeaveCancelled:Bn,onBeforeAppear:Bn,onAppear:Bn,onAfterAppear:Bn,onAppearCancelled:Bn},xL={name:"BaseTransition",props:ET,setup(t,{slots:e}){const r=Gi(),n=wT();let i;return()=>{const o=e.default&&qy(e.default(),!0);if(!o||!o.length)return;let a=o[0];if(o.length>1){for(const m of o)if(m.type!==Wn){a=m;break}}const c=bt(t),{mode:d}=c;if(n.isLeaving)return ev(a);const u=v2(a);if(!u)return ev(a);const f=hd(u,c,n,r);md(u,f);const _=r.subTree,y=_&&v2(_);let b=!1;const{getTransitionKey:p}=u.type;if(p){const m=p();i===void 0?i=m:m!==i&&(i=m,b=!0)}if(y&&y.type!==Wn&&(!Ka(u,y)||b)){const m=hd(y,c,n,r);if(md(y,m),d==="out-in")return n.isLeaving=!0,m.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},ev(a);d==="in-out"&&u.type!==Wn&&(m.delayLeave=(g,v,x)=>{const E=TT(n,y);E[String(y.key)]=y,g._leaveCb=()=>{v(),g._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=x})}return a}}},wL=xL;function TT(t,e){const{leavingVNodes:r}=t;let n=r.get(e.type);return n||(n=Object.create(null),r.set(e.type,n)),n}function hd(t,e,r,n){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:_,onLeave:y,onAfterLeave:b,onLeaveCancelled:p,onBeforeAppear:m,onAppear:g,onAfterAppear:v,onAppearCancelled:x}=e,E=String(t.key),T=TT(r,t),C=(R,D)=>{R&&Gn(R,n,9,D)},A=(R,D)=>{const q=D[1];C(R,D),Ye(R)?R.every(H=>H.length<=1)&&q():R.length<=1&&q()},L={mode:o,persisted:a,beforeEnter(R){let D=c;if(!r.isMounted)if(i)D=m||c;else return;R._leaveCb&&R._leaveCb(!0);const q=T[E];q&&Ka(t,q)&&q.el._leaveCb&&q.el._leaveCb(),C(D,[R])},enter(R){let D=d,q=u,H=f;if(!r.isMounted)if(i)D=g||d,q=v||u,H=x||f;else return;let U=!1;const ce=R._enterCb=Ae=>{U||(U=!0,Ae?C(H,[R]):C(q,[R]),L.delayedLeave&&L.delayedLeave(),R._enterCb=void 0)};D?A(D,[R,ce]):ce()},leave(R,D){const q=String(t.key);if(R._enterCb&&R._enterCb(!0),r.isUnmounting)return D();C(_,[R]);let H=!1;const U=R._leaveCb=ce=>{H||(H=!0,D(),ce?C(p,[R]):C(b,[R]),R._leaveCb=void 0,T[q]===t&&delete T[q])};T[q]=t,y?A(y,[R,U]):U()},clone(R){return hd(R,e,r,n)}};return L}function ev(t){if(Qp(t))return t=ua(t),t.children=null,t}function v2(t){return Qp(t)?t.children?t.children[0]:void 0:t}function md(t,e){t.shapeFlag&6&&t.component?md(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function qy(t,e=!1,r){let n=[],i=0;for(let o=0;o1)for(let o=0;our({name:t.name},e,{setup:t}))():t}const Uc=t=>!!t.type.__asyncLoader,Qp=t=>t.type.__isKeepAlive;function EL(t,e){kT(t,"a",e)}function TL(t,e){kT(t,"da",e)}function kT(t,e,r=xr){const n=t.__wdc||(t.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Kp(e,n,r),r){let i=r.parent;for(;i&&i.parent;)Qp(i.parent.vnode)&&kL(n,e,r,i),i=i.parent}}function kL(t,e,r,n){const i=Kp(e,t,n,!0);Wl(()=>{Cy(n[e],i)},r)}function Kp(t,e,r=xr,n=!1){if(r){const i=r[t]||(r[t]=[]),o=e.__weh||(e.__weh=(...a)=>{if(r.isUnmounted)return;Hl(),wl(r);const c=Gn(e,r,t,a);return is(),Gl(),c});return n?i.unshift(o):i.push(o),o}}const xo=t=>(e,r=xr)=>(!_d||t==="sp")&&Kp(t,(...n)=>e(...n),r),CL=xo("bm"),mn=xo("m"),AL=xo("bu"),CT=xo("u"),Hi=xo("bum"),Wl=xo("um"),AT=xo("sp"),SL=xo("rtg"),IL=xo("rtc");function $L(t,e=xr){Kp("ec",t,e)}const By="components",OL="directives";function Uy(t,e){return jy(By,t,!0,e)||t}const ST=Symbol.for("v-ndc");function Vy(t){return ar(t)?jy(By,t,!1)||t:t||ST}function Ea(t){return jy(OL,t)}function jy(t,e,r=!0,n=!1){const i=$r||xr;if(i){const o=i.type;if(t===By){const c=uM(o,!1);if(c&&(c===e||c===Fi(e)||c===Bp(Fi(e))))return o}const a=g2(i[t]||o[t],e)||g2(i.appContext[t],e);return!a&&n?o:a}}function g2(t,e){return t&&(t[e]||t[Fi(e)]||t[Bp(Fi(e))])}function Ei(t,e,r,n){let i;const o=r&&r[n];if(Ye(t)||ar(t)){i=new Array(t.length);for(let a=0,c=t.length;ae(a,c,void 0,o&&o[c]));else{const a=Object.keys(t);i=new Array(a.length);for(let c=0,d=a.length;ccp(e)?!(e.type===Wn||e.type===St&&!IT(e.children)):!0)?t:null}function PL(t,e){const r={};for(const n in t)r[e&&/[A-Z]/.test(n)?`on:${n}`:zf(n)]=t[n];return r}const Zv=t=>t?BT(t)?Zp(t)||t.proxy:Zv(t.parent):null,Vc=ur(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Zv(t.parent),$root:t=>Zv(t.root),$emit:t=>t.emit,$options:t=>Hy(t),$forceUpdate:t=>t.f||(t.f=()=>zy(t.update)),$nextTick:t=>t.n||(t.n=ra.bind(t.proxy)),$watch:t=>bL.bind(t)}),tv=(t,e)=>t!==Zt&&!t.__isScriptSetup&&kt(t,e),RL={get({_:t},e){const{ctx:r,setupState:n,data:i,props:o,accessCache:a,type:c,appContext:d}=t;let u;if(e[0]!=="$"){const b=a[e];if(b!==void 0)switch(b){case 1:return n[e];case 2:return i[e];case 4:return r[e];case 3:return o[e]}else{if(tv(n,e))return a[e]=1,n[e];if(i!==Zt&&kt(i,e))return a[e]=2,i[e];if((u=t.propsOptions[0])&&kt(u,e))return a[e]=3,o[e];if(r!==Zt&&kt(r,e))return a[e]=4,r[e];Xv&&(a[e]=0)}}const f=Vc[e];let _,y;if(f)return e==="$attrs"&&hn(t,"get",e),f(t);if((_=c.__cssModules)&&(_=_[e]))return _;if(r!==Zt&&kt(r,e))return a[e]=4,r[e];if(y=d.config.globalProperties,kt(y,e))return y[e]},set({_:t},e,r){const{data:n,setupState:i,ctx:o}=t;return tv(i,e)?(i[e]=r,!0):n!==Zt&&kt(n,e)?(n[e]=r,!0):kt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:i,propsOptions:o}},a){let c;return!!r[a]||t!==Zt&&kt(t,a)||tv(e,a)||(c=o[0])&&kt(c,a)||kt(n,a)||kt(Vc,a)||kt(i.config.globalProperties,a)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:kt(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function LL(){return ML().slots}function ML(){const t=Gi();return t.setupContext||(t.setupContext=VT(t))}function y2(t){return Ye(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}let Xv=!0;function DL(t){const e=Hy(t),r=t.proxy,n=t.ctx;Xv=!1,e.beforeCreate&&b2(e.beforeCreate,t,"bc");const{data:i,computed:o,methods:a,watch:c,provide:d,inject:u,created:f,beforeMount:_,mounted:y,beforeUpdate:b,updated:p,activated:m,deactivated:g,beforeDestroy:v,beforeUnmount:x,destroyed:E,unmounted:T,render:C,renderTracked:A,renderTriggered:L,errorCaptured:R,serverPrefetch:D,expose:q,inheritAttrs:H,components:U,directives:ce,filters:Ae}=e;if(u&&FL(u,n,null),a)for(const Ie in a){const Pe=a[Ie];st(Pe)&&(n[Ie]=Pe.bind(r))}if(i){const Ie=i.call(r,r);qt(Ie)&&(t.data=gi(Ie))}if(Xv=!0,o)for(const Ie in o){const Pe=o[Ie],Ce=st(Pe)?Pe.bind(r,r):st(Pe.get)?Pe.get.bind(r,r):mi,de=!st(Pe)&&st(Pe.set)?Pe.set.bind(r):mi,we=It({get:Ce,set:de});Object.defineProperty(n,Ie,{enumerable:!0,configurable:!0,get:()=>we.value,set:ke=>we.value=ke})}if(c)for(const Ie in c)$T(c[Ie],n,r,Ie);if(d){const Ie=st(d)?d.call(r):d;Reflect.ownKeys(Ie).forEach(Pe=>{jc(Pe,Ie[Pe])})}f&&b2(f,t,"c");function Te(Ie,Pe){Ye(Pe)?Pe.forEach(Ce=>Ie(Ce.bind(r))):Pe&&Ie(Pe.bind(r))}if(Te(CL,_),Te(mn,y),Te(AL,b),Te(CT,p),Te(EL,m),Te(TL,g),Te($L,R),Te(IL,A),Te(SL,L),Te(Hi,x),Te(Wl,T),Te(AT,D),Ye(q))if(q.length){const Ie=t.exposed||(t.exposed={});q.forEach(Pe=>{Object.defineProperty(Ie,Pe,{get:()=>r[Pe],set:Ce=>r[Pe]=Ce})})}else t.exposed||(t.exposed={});C&&t.render===mi&&(t.render=C),H!=null&&(t.inheritAttrs=H),U&&(t.components=U),ce&&(t.directives=ce)}function FL(t,e,r=mi){Ye(t)&&(t=Jv(t));for(const n in t){const i=t[n];let o;qt(i)?"default"in i?o=rn(i.from||n,i.default,!0):o=rn(i.from||n):o=rn(i),Rt(o)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):e[n]=o}}function b2(t,e,r){Gn(Ye(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function $T(t,e,r,n){const i=n.includes(".")?xT(r,n):()=>r[n];if(ar(t)){const o=e[t];st(o)&&Vt(i,o)}else if(st(t))Vt(i,t.bind(r));else if(qt(t))if(Ye(t))t.forEach(o=>$T(o,e,r,n));else{const o=st(t.handler)?t.handler.bind(r):e[t.handler];st(o)&&Vt(i,o,t)}}function Hy(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=t.appContext,c=o.get(e);let d;return c?d=c:!i.length&&!r&&!n?d=e:(d={},i.length&&i.forEach(u=>lp(d,u,a,!0)),lp(d,e,a)),qt(e)&&o.set(e,d),d}function lp(t,e,r,n=!1){const{mixins:i,extends:o}=e;o&&lp(t,o,r,!0),i&&i.forEach(a=>lp(t,a,r,!0));for(const a in e)if(!(n&&a==="expose")){const c=NL[a]||r&&r[a];t[a]=c?c(t[a],e[a]):e[a]}return t}const NL={data:x2,props:w2,emits:w2,methods:qc,computed:qc,beforeCreate:Jr,created:Jr,beforeMount:Jr,mounted:Jr,beforeUpdate:Jr,updated:Jr,beforeDestroy:Jr,beforeUnmount:Jr,destroyed:Jr,unmounted:Jr,activated:Jr,deactivated:Jr,errorCaptured:Jr,serverPrefetch:Jr,components:qc,directives:qc,watch:qL,provide:x2,inject:zL};function x2(t,e){return e?t?function(){return ur(st(t)?t.call(this,this):t,st(e)?e.call(this,this):e)}:e:t}function zL(t,e){return qc(Jv(t),Jv(e))}function Jv(t){if(Ye(t)){const e={};for(let r=0;r1)return r&&st(e)?e.call(n&&n.proxy):e}}function VL(){return!!(xr||$r||vd)}function jL(t,e,r,n=!1){const i={},o={};np(o,Yp,1),t.propsDefaults=Object.create(null),PT(t,e,i,o);for(const a in t.propsOptions[0])a in i||(i[a]=void 0);r?t.props=n?i:lT(i):t.type.props?t.props=i:t.props=o,t.attrs=o}function HL(t,e,r,n){const{props:i,attrs:o,vnode:{patchFlag:a}}=t,c=bt(i),[d]=t.propsOptions;let u=!1;if((n||a>0)&&!(a&16)){if(a&8){const f=t.vnode.dynamicProps;for(let _=0;_{d=!0;const[y,b]=RT(_,e,!0);ur(a,y),b&&c.push(...b)};!r&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}if(!o&&!d)return qt(t)&&n.set(t,dl),dl;if(Ye(o))for(let f=0;f-1,b[1]=m<0||p-1||kt(b,"default"))&&c.push(_)}}}const u=[a,c];return qt(t)&&n.set(t,u),u}function E2(t){return t[0]!=="$"}function T2(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function k2(t,e){return T2(t)===T2(e)}function C2(t,e){return Ye(e)?e.findIndex(r=>k2(r,t)):st(e)&&k2(e,t)?0:-1}const LT=t=>t[0]==="_"||t==="$stable",Gy=t=>Ye(t)?t.map(Pi):[Pi(t)],GL=(t,e,r)=>{if(e._n)return e;const n=_i((...i)=>Gy(e(...i)),r);return n._c=!1,n},MT=(t,e,r)=>{const n=t._ctx;for(const i in t){if(LT(i))continue;const o=t[i];if(st(o))e[i]=GL(i,o,n);else if(o!=null){const a=Gy(o);e[i]=()=>a}}},DT=(t,e)=>{const r=Gy(e);t.slots.default=()=>r},WL=(t,e)=>{if(t.vnode.shapeFlag&32){const r=e._;r?(t.slots=bt(e),np(e,"_",r)):MT(e,t.slots={})}else t.slots={},e&&DT(t,e);np(t.slots,Yp,1)},QL=(t,e,r)=>{const{vnode:n,slots:i}=t;let o=!0,a=Zt;if(n.shapeFlag&32){const c=e._;c?r&&c===1?o=!1:(ur(i,e),!r&&c===1&&delete i._):(o=!e.$stable,MT(e,i)),a=e}else e&&(DT(t,e),a={default:1});if(o)for(const c in i)!LT(c)&&!(c in a)&&delete i[c]};function tg(t,e,r,n,i=!1){if(Ye(t)){t.forEach((y,b)=>tg(y,e&&(Ye(e)?e[b]:e),r,n,i));return}if(Uc(n)&&!i)return;const o=n.shapeFlag&4?Zp(n.component)||n.component.proxy:n.el,a=i?null:o,{i:c,r:d}=t,u=e&&e.r,f=c.refs===Zt?c.refs={}:c.refs,_=c.setupState;if(u!=null&&u!==d&&(ar(u)?(f[u]=null,kt(_,u)&&(_[u]=null)):Rt(u)&&(u.value=null)),st(d))la(d,c,12,[a,f]);else{const y=ar(d),b=Rt(d);if(y||b){const p=()=>{if(t.f){const m=y?kt(_,d)?_[d]:f[d]:d.value;i?Ye(m)&&Cy(m,o):Ye(m)?m.includes(o)||m.push(o):y?(f[d]=[o],kt(_,d)&&(_[d]=f[d])):(d.value=[o],t.k&&(f[t.k]=d.value))}else y?(f[d]=a,kt(_,d)&&(_[d]=a)):b&&(d.value=a,t.k&&(f[t.k]=a))};a?(p.id=-1,fn(p,r)):p()}}}const fn=gL;function KL(t){return YL(t)}function YL(t,e){const r=Gv();r.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:a,createText:c,createComment:d,setText:u,setElementText:f,parentNode:_,nextSibling:y,setScopeId:b=mi,insertStaticContent:p}=t,m=(M,k,I,N=null,G=null,Y=null,se=!1,ye=null,X=!!k.dynamicChildren)=>{if(M===k)return;M&&!Ka(M,k)&&(N=J(M),ke(M,G,Y,!0),M=null),k.patchFlag===-2&&(X=!1,k.dynamicChildren=null);const{type:ee,ref:pe,shapeFlag:j}=k;switch(ee){case qd:g(M,k,I,N);break;case Wn:v(M,k,I,N);break;case Gc:M==null&&x(k,I,N,se);break;case St:U(M,k,I,N,G,Y,se,ye,X);break;default:j&1?C(M,k,I,N,G,Y,se,ye,X):j&6?ce(M,k,I,N,G,Y,se,ye,X):(j&64||j&128)&&ee.process(M,k,I,N,G,Y,se,ye,X,ve)}pe!=null&&G&&tg(pe,M&&M.ref,Y,k||M,!k)},g=(M,k,I,N)=>{if(M==null)n(k.el=c(k.children),I,N);else{const G=k.el=M.el;k.children!==M.children&&u(G,k.children)}},v=(M,k,I,N)=>{M==null?n(k.el=d(k.children||""),I,N):k.el=M.el},x=(M,k,I,N)=>{[M.el,M.anchor]=p(M.children,k,I,N,M.el,M.anchor)},E=({el:M,anchor:k},I,N)=>{let G;for(;M&&M!==k;)G=y(M),n(M,I,N),M=G;n(k,I,N)},T=({el:M,anchor:k})=>{let I;for(;M&&M!==k;)I=y(M),i(M),M=I;i(k)},C=(M,k,I,N,G,Y,se,ye,X)=>{se=se||k.type==="svg",M==null?A(k,I,N,G,Y,se,ye,X):D(M,k,G,Y,se,ye,X)},A=(M,k,I,N,G,Y,se,ye)=>{let X,ee;const{type:pe,props:j,shapeFlag:z,transition:ie,dirs:be}=M;if(X=M.el=a(M.type,Y,j&&j.is,j),z&8?f(X,M.children):z&16&&R(M.children,X,null,N,G,Y&&pe!=="foreignObject",se,ye),be&&qa(M,null,N,"created"),L(X,M,M.scopeId,se,N),j){for(const Ue in j)Ue!=="value"&&!Nf(Ue)&&o(X,Ue,null,j[Ue],Y,M.children,N,G,Ge);"value"in j&&o(X,"value",null,j.value),(ee=j.onVnodeBeforeMount)&&$i(ee,N,M)}be&&qa(M,null,N,"beforeMount");const Ne=(!G||G&&!G.pendingBranch)&&ie&&!ie.persisted;Ne&&ie.beforeEnter(X),n(X,k,I),((ee=j&&j.onVnodeMounted)||Ne||be)&&fn(()=>{ee&&$i(ee,N,M),Ne&&ie.enter(X),be&&qa(M,null,N,"mounted")},G)},L=(M,k,I,N,G)=>{if(I&&b(M,I),N)for(let Y=0;Y{for(let ee=X;ee{const ye=k.el=M.el;let{patchFlag:X,dynamicChildren:ee,dirs:pe}=k;X|=M.patchFlag&16;const j=M.props||Zt,z=k.props||Zt;let ie;I&&Ba(I,!1),(ie=z.onVnodeBeforeUpdate)&&$i(ie,I,k,M),pe&&qa(k,M,I,"beforeUpdate"),I&&Ba(I,!0);const be=G&&k.type!=="foreignObject";if(ee?q(M.dynamicChildren,ee,ye,I,N,be,Y):se||Pe(M,k,ye,null,I,N,be,Y,!1),X>0){if(X&16)H(ye,k,j,z,I,N,G);else if(X&2&&j.class!==z.class&&o(ye,"class",null,z.class,G),X&4&&o(ye,"style",j.style,z.style,G),X&8){const Ne=k.dynamicProps;for(let Ue=0;Ue{ie&&$i(ie,I,k,M),pe&&qa(k,M,I,"updated")},N)},q=(M,k,I,N,G,Y,se)=>{for(let ye=0;ye{if(I!==N){if(I!==Zt)for(const ye in I)!Nf(ye)&&!(ye in N)&&o(M,ye,I[ye],null,se,k.children,G,Y,Ge);for(const ye in N){if(Nf(ye))continue;const X=N[ye],ee=I[ye];X!==ee&&ye!=="value"&&o(M,ye,ee,X,se,k.children,G,Y,Ge)}"value"in N&&o(M,"value",I.value,N.value)}},U=(M,k,I,N,G,Y,se,ye,X)=>{const ee=k.el=M?M.el:c(""),pe=k.anchor=M?M.anchor:c("");let{patchFlag:j,dynamicChildren:z,slotScopeIds:ie}=k;ie&&(ye=ye?ye.concat(ie):ie),M==null?(n(ee,I,N),n(pe,I,N),R(k.children,I,pe,G,Y,se,ye,X)):j>0&&j&64&&z&&M.dynamicChildren?(q(M.dynamicChildren,z,I,G,Y,se,ye),(k.key!=null||G&&k===G.subTree)&&Wy(M,k,!0)):Pe(M,k,I,pe,G,Y,se,ye,X)},ce=(M,k,I,N,G,Y,se,ye,X)=>{k.slotScopeIds=ye,M==null?k.shapeFlag&512?G.ctx.activate(k,I,N,se,X):Ae(k,I,N,G,Y,se,X):Le(M,k,X)},Ae=(M,k,I,N,G,Y,se)=>{const ye=M.component=sM(M,N,G);if(Qp(M)&&(ye.ctx.renderer=ve),lM(ye),ye.asyncDep){if(G&&G.registerDep(ye,Te),!M.el){const X=ye.subTree=qe(Wn);v(null,X,k,I)}return}Te(ye,M,k,I,G,Y,se)},Le=(M,k,I)=>{const N=k.component=M.component;if(hL(M,k,I))if(N.asyncDep&&!N.asyncResolved){Ie(N,k,I);return}else N.next=k,lL(N.update),N.update();else k.el=M.el,N.vnode=k},Te=(M,k,I,N,G,Y,se)=>{const ye=()=>{if(M.isMounted){let{next:pe,bu:j,u:z,parent:ie,vnode:be}=M,Ne=pe,Ue;Ba(M,!1),pe?(pe.el=be.el,Ie(M,pe,se)):pe=be,j&&qf(j),(Ue=pe.props&&pe.props.onVnodeBeforeUpdate)&&$i(Ue,ie,pe,be),Ba(M,!0);const dt=Jm(M),Wt=M.subTree;M.subTree=dt,m(Wt,dt,_(Wt.el),J(Wt),M,G,Y),pe.el=dt.el,Ne===null&&mL(M,dt.el),z&&fn(z,G),(Ue=pe.props&&pe.props.onVnodeUpdated)&&fn(()=>$i(Ue,ie,pe,be),G)}else{let pe;const{el:j,props:z}=k,{bm:ie,m:be,parent:Ne}=M,Ue=Uc(k);if(Ba(M,!1),ie&&qf(ie),!Ue&&(pe=z&&z.onVnodeBeforeMount)&&$i(pe,Ne,k),Ba(M,!0),j&&Oe){const dt=()=>{M.subTree=Jm(M),Oe(j,M.subTree,M,G,null)};Ue?k.type.__asyncLoader().then(()=>!M.isUnmounted&&dt()):dt()}else{const dt=M.subTree=Jm(M);m(null,dt,I,N,M,G,Y),k.el=dt.el}if(be&&fn(be,G),!Ue&&(pe=z&&z.onVnodeMounted)){const dt=k;fn(()=>$i(pe,Ne,dt),G)}(k.shapeFlag&256||Ne&&Uc(Ne.vnode)&&Ne.vnode.shapeFlag&256)&&M.a&&fn(M.a,G),M.isMounted=!0,k=I=N=null}},X=M.effect=new Py(ye,()=>zy(ee),M.scope),ee=M.update=()=>X.run();ee.id=M.uid,Ba(M,!0),ee()},Ie=(M,k,I)=>{k.component=M;const N=M.vnode.props;M.vnode=k,M.next=null,HL(M,k.props,N,I),QL(M,k.children,I),Hl(),h2(),Gl()},Pe=(M,k,I,N,G,Y,se,ye,X=!1)=>{const ee=M&&M.children,pe=M?M.shapeFlag:0,j=k.children,{patchFlag:z,shapeFlag:ie}=k;if(z>0){if(z&128){de(ee,j,I,N,G,Y,se,ye,X);return}else if(z&256){Ce(ee,j,I,N,G,Y,se,ye,X);return}}ie&8?(pe&16&&Ge(ee,G,Y),j!==ee&&f(I,j)):pe&16?ie&16?de(ee,j,I,N,G,Y,se,ye,X):Ge(ee,G,Y,!0):(pe&8&&f(I,""),ie&16&&R(j,I,N,G,Y,se,ye,X))},Ce=(M,k,I,N,G,Y,se,ye,X)=>{M=M||dl,k=k||dl;const ee=M.length,pe=k.length,j=Math.min(ee,pe);let z;for(z=0;zpe?Ge(M,G,Y,!0,!1,j):R(k,I,N,G,Y,se,ye,X,j)},de=(M,k,I,N,G,Y,se,ye,X)=>{let ee=0;const pe=k.length;let j=M.length-1,z=pe-1;for(;ee<=j&&ee<=z;){const ie=M[ee],be=k[ee]=X?Yo(k[ee]):Pi(k[ee]);if(Ka(ie,be))m(ie,be,I,null,G,Y,se,ye,X);else break;ee++}for(;ee<=j&&ee<=z;){const ie=M[j],be=k[z]=X?Yo(k[z]):Pi(k[z]);if(Ka(ie,be))m(ie,be,I,null,G,Y,se,ye,X);else break;j--,z--}if(ee>j){if(ee<=z){const ie=z+1,be=iez)for(;ee<=j;)ke(M[ee],G,Y,!0),ee++;else{const ie=ee,be=ee,Ne=new Map;for(ee=be;ee<=z;ee++){const _r=k[ee]=X?Yo(k[ee]):Pi(k[ee]);_r.key!=null&&Ne.set(_r.key,ee)}let Ue,dt=0;const Wt=z-be+1;let gr=!1,Ci=0;const ri=new Array(Wt);for(ee=0;ee=Wt){ke(_r,G,Y,!0);continue}let Nr;if(_r.key!=null)Nr=Ne.get(_r.key);else for(Ue=be;Ue<=z;Ue++)if(ri[Ue-be]===0&&Ka(_r,k[Ue])){Nr=Ue;break}Nr===void 0?ke(_r,G,Y,!0):(ri[Nr-be]=ee+1,Nr>=Ci?Ci=Nr:gr=!0,m(_r,k[Nr],I,null,G,Y,se,ye,X),dt++)}const $o=gr?ZL(ri):dl;for(Ue=$o.length-1,ee=Wt-1;ee>=0;ee--){const _r=be+ee,Nr=k[_r],Oo=_r+1{const{el:Y,type:se,transition:ye,children:X,shapeFlag:ee}=M;if(ee&6){we(M.component.subTree,k,I,N);return}if(ee&128){M.suspense.move(k,I,N);return}if(ee&64){se.move(M,k,I,ve);return}if(se===St){n(Y,k,I);for(let j=0;jye.enter(Y),G);else{const{leave:j,delayLeave:z,afterLeave:ie}=ye,be=()=>n(Y,k,I),Ne=()=>{j(Y,()=>{be(),ie&&ie()})};z?z(Y,be,Ne):Ne()}else n(Y,k,I)},ke=(M,k,I,N=!1,G=!1)=>{const{type:Y,props:se,ref:ye,children:X,dynamicChildren:ee,shapeFlag:pe,patchFlag:j,dirs:z}=M;if(ye!=null&&tg(ye,null,I,M,!0),pe&256){k.ctx.deactivate(M);return}const ie=pe&1&&z,be=!Uc(M);let Ne;if(be&&(Ne=se&&se.onVnodeBeforeUnmount)&&$i(Ne,k,M),pe&6)ze(M.component,I,N);else{if(pe&128){M.suspense.unmount(I,N);return}ie&&qa(M,null,k,"beforeUnmount"),pe&64?M.type.remove(M,k,I,G,ve,N):ee&&(Y!==St||j>0&&j&64)?Ge(ee,k,I,!1,!0):(Y===St&&j&384||!G&&pe&16)&&Ge(X,k,I),N&&Re(M)}(be&&(Ne=se&&se.onVnodeUnmounted)||ie)&&fn(()=>{Ne&&$i(Ne,k,M),ie&&qa(M,null,k,"unmounted")},I)},Re=M=>{const{type:k,el:I,anchor:N,transition:G}=M;if(k===St){He(I,N);return}if(k===Gc){T(M);return}const Y=()=>{i(I),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(M.shapeFlag&1&&G&&!G.persisted){const{leave:se,delayLeave:ye}=G,X=()=>se(I,Y);ye?ye(M.el,Y,X):X()}else Y()},He=(M,k)=>{let I;for(;M!==k;)I=y(M),i(M),M=I;i(k)},ze=(M,k,I)=>{const{bum:N,scope:G,update:Y,subTree:se,um:ye}=M;N&&qf(N),G.stop(),Y&&(Y.active=!1,ke(se,M,k,I)),ye&&fn(ye,k),fn(()=>{M.isUnmounted=!0},k),k&&k.pendingBranch&&!k.isUnmounted&&M.asyncDep&&!M.asyncResolved&&M.suspenseId===k.pendingId&&(k.deps--,k.deps===0&&k.resolve())},Ge=(M,k,I,N=!1,G=!1,Y=0)=>{for(let se=Y;seM.shapeFlag&6?J(M.component.subTree):M.shapeFlag&128?M.suspense.next():y(M.anchor||M.el),me=(M,k,I)=>{M==null?k._vnode&&ke(k._vnode,null,null,!0):m(k._vnode||null,M,k,null,null,null,I),h2(),_T(),k._vnode=M},ve={p:m,um:ke,m:we,r:Re,mt:Ae,mc:R,pc:Pe,pbc:q,n:J,o:t};let $e,Oe;return e&&([$e,Oe]=e(ve)),{render:me,hydrate:$e,createApp:UL(me,$e)}}function Ba({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function Wy(t,e,r=!1){const n=t.children,i=e.children;if(Ye(n)&&Ye(i))for(let o=0;o>1,t[r[c]]0&&(e[n]=r[o-1]),r[o]=n)}}for(o=r.length,a=r[o-1];o-- >0;)r[o]=a,a=e[a];return r}const XL=t=>t.__isTeleport,Hc=t=>t&&(t.disabled||t.disabled===""),A2=t=>typeof SVGElement<"u"&&t instanceof SVGElement,rg=(t,e)=>{const r=t&&t.to;return ar(r)?e?e(r):null:r},JL={__isTeleport:!0,process(t,e,r,n,i,o,a,c,d,u){const{mc:f,pc:_,pbc:y,o:{insert:b,querySelector:p,createText:m,createComment:g}}=u,v=Hc(e.props);let{shapeFlag:x,children:E,dynamicChildren:T}=e;if(t==null){const C=e.el=m(""),A=e.anchor=m("");b(C,r,n),b(A,r,n);const L=e.target=rg(e.props,p),R=e.targetAnchor=m("");L&&(b(R,L),a=a||A2(L));const D=(q,H)=>{x&16&&f(E,q,H,i,o,a,c,d)};v?D(r,A):L&&D(L,R)}else{e.el=t.el;const C=e.anchor=t.anchor,A=e.target=t.target,L=e.targetAnchor=t.targetAnchor,R=Hc(t.props),D=R?r:A,q=R?C:L;if(a=a||A2(A),T?(y(t.dynamicChildren,T,D,i,o,a,c),Wy(t,e,!0)):d||_(t,e,D,q,i,o,a,c,!1),v)R||Ef(e,r,C,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const H=e.target=rg(e.props,p);H&&Ef(e,H,null,u,0)}else R&&Ef(e,A,L,u,1)}FT(e)},remove(t,e,r,n,{um:i,o:{remove:o}},a){const{shapeFlag:c,children:d,anchor:u,targetAnchor:f,target:_,props:y}=t;if(_&&o(f),(a||!Hc(y))&&(o(u),c&16))for(let b=0;b0?ui||dl:null,tM(),gd>0&&ui&&ui.push(t),t}function oe(t,e,r,n,i,o){return NT(V(t,e,r,n,i,o,!0))}function Hr(t,e,r,n,i){return NT(qe(t,e,r,n,i,!0))}function cp(t){return t?t.__v_isVNode===!0:!1}function Ka(t,e){return t.type===e.type&&t.key===e.key}const Yp="__vInternal",zT=({key:t})=>t??null,Bf=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?ar(t)||Rt(t)||st(t)?{i:$r,r:t,k:e,f:!!r}:t:null);function V(t,e=null,r=null,n=0,i=null,o=t===St?0:1,a=!1,c=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&zT(e),ref:e&&Bf(e),scopeId:Gp,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:$r};return c?(Ky(d,r),o&128&&t.normalize(d)):r&&(d.shapeFlag|=ar(r)?8:16),gd>0&&!a&&ui&&(d.patchFlag>0||o&6)&&d.patchFlag!==32&&ui.push(d),d}const qe=rM;function rM(t,e=null,r=null,n=0,i=null,o=!1){if((!t||t===ST)&&(t=Wn),cp(t)){const c=ua(t,e,!0);return r&&Ky(c,r),gd>0&&!o&&ui&&(c.shapeFlag&6?ui[ui.indexOf(t)]=c:ui.push(c)),c.patchFlag|=-2,c}if(fM(t)&&(t=t.__vccOpts),e){e=nM(e);let{class:c,style:d}=e;c&&!ar(c)&&(e.class=jn(c)),qt(d)&&(dT(d)&&!Ye(d)&&(d=ur({},d)),e.style=bl(d))}const a=ar(t)?1:vL(t)?128:XL(t)?64:qt(t)?4:st(t)?2:0;return V(t,e,r,n,i,a,o,!0)}function nM(t){return t?dT(t)||Yp in t?ur({},t):t:null}function ua(t,e,r=!1){const{props:n,ref:i,patchFlag:o,children:a}=t,c=e?qT(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&zT(c),ref:e&&e.ref?r&&i?Ye(i)?i.concat(Bf(e)):[i,Bf(e)]:Bf(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==St?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ua(t.ssContent),ssFallback:t.ssFallback&&ua(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Cn(t=" ",e=0){return qe(qd,null,t,e)}function iM(t,e){const r=qe(Gc,null,t);return r.staticCount=e,r}function yt(t="",e=!1){return e?(te(),Hr(Wn,null,t)):qe(Wn,null,t)}function Pi(t){return t==null||typeof t=="boolean"?qe(Wn):Ye(t)?qe(St,null,t.slice()):typeof t=="object"?Yo(t):qe(qd,null,String(t))}function Yo(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:ua(t)}function Ky(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(Ye(e))r=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),Ky(t,i()),i._c&&(i._d=!0));return}else{r=32;const i=e._;!i&&!(Yp in e)?e._ctx=$r:i===3&&$r&&($r.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else st(e)?(e={default:e,_ctx:$r},r=32):(e=String(e),n&64?(r=16,e=[Cn(e)]):r=8);t.children=e,t.shapeFlag|=r}function qT(...t){const e={};for(let r=0;rxr||$r;let Yy,Gs,I2="__VUE_INSTANCE_SETTERS__";(Gs=Gv()[I2])||(Gs=Gv()[I2]=[]),Gs.push(t=>xr=t),Yy=t=>{Gs.length>1?Gs.forEach(e=>e(t)):Gs[0](t)};const wl=t=>{Yy(t),t.scope.on()},is=()=>{xr&&xr.scope.off(),Yy(null)};function BT(t){return t.vnode.shapeFlag&4}let _d=!1;function lM(t,e=!1){_d=e;const{props:r,children:n}=t.vnode,i=BT(t);jL(t,r,i,e),WL(t,n);const o=i?cM(t,e):void 0;return _d=!1,o}function cM(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=zd(new Proxy(t.ctx,RL));const{setup:n}=r;if(n){const i=t.setupContext=n.length>1?VT(t):null;wl(t),Hl();const o=la(n,t,0,[t.props,i]);if(Gl(),is(),GE(o)){if(o.then(is,is),e)return o.then(a=>{$2(t,a,e)}).catch(a=>{jp(a,t,0)});t.asyncDep=o}else $2(t,o,e)}else UT(t,e)}function $2(t,e,r){st(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:qt(e)&&(t.setupState=hT(e)),UT(t,r)}let O2;function UT(t,e,r){const n=t.type;if(!t.render){if(!e&&O2&&!n.render){const i=n.template||Hy(t).template;if(i){const{isCustomElement:o,compilerOptions:a}=t.appContext.config,{delimiters:c,compilerOptions:d}=n,u=ur(ur({isCustomElement:o,delimiters:c},a),d);n.render=O2(i,u)}}t.render=n.render||mi}wl(t),Hl(),DL(t),Gl(),is()}function dM(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,r){return hn(t,"get","$attrs"),e[r]}}))}function VT(t){const e=r=>{t.exposed=r||{}};return{get attrs(){return dM(t)},slots:t.slots,emit:t.emit,expose:e}}function Zp(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(hT(zd(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in Vc)return Vc[r](t)},has(e,r){return r in e||r in Vc}}))}function uM(t,e=!0){return st(t)?t.displayName||t.name:t.name||e&&t.__name}function fM(t){return st(t)&&"__vccOpts"in t}const It=(t,e)=>oL(t,e,_d);function Ni(t,e,r){const n=arguments.length;return n===2?qt(e)&&!Ye(e)?cp(e)?qe(t,null,[e]):qe(t,e):qe(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&cp(r)&&(r=[r]),qe(t,e,r))}const pM=Symbol.for("v-scx"),hM=()=>rn(pM),mM="3.3.4",vM="http://www.w3.org/2000/svg",Ya=typeof document<"u"?document:null,P2=Ya&&Ya.createElement("template"),gM={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const i=e?Ya.createElementNS(vM,t):Ya.createElement(t,r?{is:r}:void 0);return t==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:t=>Ya.createTextNode(t),createComment:t=>Ya.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ya.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,i,o){const a=r?r.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),r),!(i===o||!(i=i.nextSibling)););else{P2.innerHTML=n?`${t}`:t;const c=P2.content;if(n){const d=c.firstChild;for(;d.firstChild;)c.appendChild(d.firstChild);c.removeChild(d)}e.insertBefore(c,r)}return[a?a.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}};function _M(t,e,r){const n=t._vtc;n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}function yM(t,e,r){const n=t.style,i=ar(r);if(r&&!i){if(e&&!ar(e))for(const o in e)r[o]==null&&ng(n,o,"");for(const o in r)ng(n,o,r[o])}else{const o=n.display;i?e!==r&&(n.cssText=r):e&&t.removeAttribute("style"),"_vod"in t&&(n.display=o)}}const R2=/\s*!important$/;function ng(t,e,r){if(Ye(r))r.forEach(n=>ng(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=bM(t,e);R2.test(r)?t.setProperty(xs(n),r.replace(R2,""),"important"):t[n]=r}}const L2=["Webkit","Moz","ms"],rv={};function bM(t,e){const r=rv[e];if(r)return r;let n=Fi(e);if(n!=="filter"&&n in t)return rv[e]=n;n=Bp(n);for(let i=0;inv||(CM.then(()=>nv=0),nv=Date.now());function SM(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Gn(IM(n,r.value),e,5,[n])};return r.value=t,r.attached=AM(),r}function IM(t,e){if(Ye(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(n=>i=>!i._stopped&&n&&n(i))}else return e}const F2=/^on[a-z]/,$M=(t,e,r,n,i=!1,o,a,c,d)=>{e==="class"?_M(t,n,i):e==="style"?yM(t,r,n):zp(e)?ky(e)||TM(t,e,r,n,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):OM(t,e,n,i))?wM(t,e,n,o,a,c,d):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),xM(t,e,n,i))};function OM(t,e,r,n){return n?!!(e==="innerHTML"||e==="textContent"||e in t&&F2.test(e)&&st(r)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||F2.test(e)&&ar(r)?!1:e in t}function PM(t){const e=Gi();if(!e)return;const r=e.ut=(i=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(o=>og(o,i))},n=()=>{const i=t(e.proxy);ig(e.subTree,i),r(i)};yL(n),mn(()=>{const i=new MutationObserver(n);i.observe(e.subTree.el.parentNode,{childList:!0}),Wl(()=>i.disconnect())})}function ig(t,e){if(t.shapeFlag&128){const r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{ig(r.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)og(t.el,e);else if(t.type===St)t.children.forEach(r=>ig(r,e));else if(t.type===Gc){let{el:r,anchor:n}=t;for(;r&&(og(r,e),r!==n);)r=r.nextSibling}}function og(t,e){if(t.nodeType===1){const r=t.style;for(const n in e)r.setProperty(`--${n}`,e[n])}}const Uo="transition",Cc="animation",yd=(t,{slots:e})=>Ni(wL,HT(t),e);yd.displayName="Transition";const jT={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},RM=yd.props=ur({},ET,jT),Ua=(t,e=[])=>{Ye(t)?t.forEach(r=>r(...e)):t&&t(...e)},N2=t=>t?Ye(t)?t.some(e=>e.length>1):t.length>1:!1;function HT(t){const e={};for(const U in t)U in jT||(e[U]=t[U]);if(t.css===!1)return e;const{name:r="v",type:n,duration:i,enterFromClass:o=`${r}-enter-from`,enterActiveClass:a=`${r}-enter-active`,enterToClass:c=`${r}-enter-to`,appearFromClass:d=o,appearActiveClass:u=a,appearToClass:f=c,leaveFromClass:_=`${r}-leave-from`,leaveActiveClass:y=`${r}-leave-active`,leaveToClass:b=`${r}-leave-to`}=t,p=LM(i),m=p&&p[0],g=p&&p[1],{onBeforeEnter:v,onEnter:x,onEnterCancelled:E,onLeave:T,onLeaveCancelled:C,onBeforeAppear:A=v,onAppear:L=x,onAppearCancelled:R=E}=e,D=(U,ce,Ae)=>{Wo(U,ce?f:c),Wo(U,ce?u:a),Ae&&Ae()},q=(U,ce)=>{U._isLeaving=!1,Wo(U,_),Wo(U,b),Wo(U,y),ce&&ce()},H=U=>(ce,Ae)=>{const Le=U?L:x,Te=()=>D(ce,U,Ae);Ua(Le,[ce,Te]),z2(()=>{Wo(ce,U?d:o),so(ce,U?f:c),N2(Le)||q2(ce,n,m,Te)})};return ur(e,{onBeforeEnter(U){Ua(v,[U]),so(U,o),so(U,a)},onBeforeAppear(U){Ua(A,[U]),so(U,d),so(U,u)},onEnter:H(!1),onAppear:H(!0),onLeave(U,ce){U._isLeaving=!0;const Ae=()=>q(U,ce);so(U,_),WT(),so(U,y),z2(()=>{U._isLeaving&&(Wo(U,_),so(U,b),N2(T)||q2(U,n,g,Ae))}),Ua(T,[U,Ae])},onEnterCancelled(U){D(U,!1),Ua(E,[U])},onAppearCancelled(U){D(U,!0),Ua(R,[U])},onLeaveCancelled(U){q(U),Ua(C,[U])}})}function LM(t){if(t==null)return null;if(qt(t))return[iv(t.enter),iv(t.leave)];{const e=iv(t);return[e,e]}}function iv(t){return mR(t)}function so(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t._vtc||(t._vtc=new Set)).add(e)}function Wo(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const{_vtc:r}=t;r&&(r.delete(e),r.size||(t._vtc=void 0))}function z2(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let MM=0;function q2(t,e,r,n){const i=t._endId=++MM,o=()=>{i===t._endId&&n()};if(r)return setTimeout(o,r);const{type:a,timeout:c,propCount:d}=GT(t,e);if(!a)return n();const u=a+"end";let f=0;const _=()=>{t.removeEventListener(u,y),o()},y=b=>{b.target===t&&++f>=d&&_()};setTimeout(()=>{f(r[p]||"").split(", "),i=n(`${Uo}Delay`),o=n(`${Uo}Duration`),a=B2(i,o),c=n(`${Cc}Delay`),d=n(`${Cc}Duration`),u=B2(c,d);let f=null,_=0,y=0;e===Uo?a>0&&(f=Uo,_=a,y=o.length):e===Cc?u>0&&(f=Cc,_=u,y=d.length):(_=Math.max(a,u),f=_>0?a>u?Uo:Cc:null,y=f?f===Uo?o.length:d.length:0);const b=f===Uo&&/\b(transform|all)(,|$)/.test(n(`${Uo}Property`).toString());return{type:f,timeout:_,propCount:y,hasTransform:b}}function B2(t,e){for(;t.lengthU2(r)+U2(t[n])))}function U2(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function WT(){return document.body.offsetHeight}const QT=new WeakMap,KT=new WeakMap,YT={name:"TransitionGroup",props:ur({},RM,{tag:String,moveClass:String}),setup(t,{slots:e}){const r=Gi(),n=wT();let i,o;return CT(()=>{if(!i.length)return;const a=t.moveClass||`${t.name||"v"}-move`;if(!BM(i[0].el,r.vnode.el,a))return;i.forEach(NM),i.forEach(zM);const c=i.filter(qM);WT(),c.forEach(d=>{const u=d.el,f=u.style;so(u,a),f.transform=f.webkitTransform=f.transitionDuration="";const _=u._moveCb=y=>{y&&y.target!==u||(!y||/transform$/.test(y.propertyName))&&(u.removeEventListener("transitionend",_),u._moveCb=null,Wo(u,a))};u.addEventListener("transitionend",_)})}),()=>{const a=bt(t),c=HT(a);let d=a.tag||St;i=o,o=e.default?qy(e.default()):[];for(let u=0;udelete t.mode;YT.props;const FM=YT;function NM(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function zM(t){KT.set(t,t.el.getBoundingClientRect())}function qM(t){const e=QT.get(t),r=KT.get(t),n=e.left-r.left,i=e.top-r.top;if(n||i){const o=t.el.style;return o.transform=o.webkitTransform=`translate(${n}px,${i}px)`,o.transitionDuration="0s",t}}function BM(t,e,r){const n=t.cloneNode();t._vtc&&t._vtc.forEach(a=>{a.split(/\s+/).forEach(c=>c&&n.classList.remove(c))}),r.split(/\s+/).forEach(a=>a&&n.classList.add(a)),n.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(n);const{hasTransform:o}=GT(n);return i.removeChild(n),o}const fa=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Ye(e)?r=>qf(e,r):e};function UM(t){t.target.composing=!0}function V2(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const ag={created(t,{modifiers:{lazy:e,trim:r,number:n}},i){t._assign=fa(i);const o=n||i.props&&i.props.type==="number";uo(t,e?"change":"input",a=>{if(a.target.composing)return;let c=t.value;r&&(c=c.trim()),o&&(c=ip(c)),t._assign(c)}),r&&uo(t,"change",()=>{t.value=t.value.trim()}),e||(uo(t,"compositionstart",UM),uo(t,"compositionend",V2),uo(t,"change",V2))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:n,number:i}},o){if(t._assign=fa(o),t.composing||document.activeElement===t&&t.type!=="range"&&(r||n&&t.value.trim()===e||(i||t.type==="number")&&ip(t.value)===e))return;const a=e??"";t.value!==a&&(t.value=a)}},VM={deep:!0,created(t,e,r){t._assign=fa(r),uo(t,"change",()=>{const n=t._modelValue,i=El(t),o=t.checked,a=t._assign;if(Ye(n)){const c=Sy(n,i),d=c!==-1;if(o&&!d)a(n.concat(i));else if(!o&&d){const u=[...n];u.splice(c,1),a(u)}}else if(jl(n)){const c=new Set(n);o?c.add(i):c.delete(i),a(c)}else a(ZT(t,o))})},mounted:j2,beforeUpdate(t,e,r){t._assign=fa(r),j2(t,e,r)}};function j2(t,{value:e,oldValue:r},n){t._modelValue=e,Ye(e)?t.checked=Sy(e,n.props.value)>-1:jl(e)?t.checked=e.has(n.props.value):e!==r&&(t.checked=ps(e,ZT(t,!0)))}const jM={created(t,{value:e},r){t.checked=ps(e,r.props.value),t._assign=fa(r),uo(t,"change",()=>{t._assign(El(t))})},beforeUpdate(t,{value:e,oldValue:r},n){t._assign=fa(n),e!==r&&(t.checked=ps(e,n.props.value))}},HM={deep:!0,created(t,{value:e,modifiers:{number:r}},n){const i=jl(e);uo(t,"change",()=>{const o=Array.prototype.filter.call(t.options,a=>a.selected).map(a=>r?ip(El(a)):El(a));t._assign(t.multiple?i?new Set(o):o:o[0])}),t._assign=fa(n)},mounted(t,{value:e}){H2(t,e)},beforeUpdate(t,e,r){t._assign=fa(r)},updated(t,{value:e}){H2(t,e)}};function H2(t,e){const r=t.multiple;if(!(r&&!Ye(e)&&!jl(e))){for(let n=0,i=t.options.length;n-1:o.selected=e.has(a);else if(ps(El(o),e)){t.selectedIndex!==n&&(t.selectedIndex=n);return}}!r&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function El(t){return"_value"in t?t._value:t.value}function ZT(t,e){const r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}const Pve={created(t,e,r){Tf(t,e,r,null,"created")},mounted(t,e,r){Tf(t,e,r,null,"mounted")},beforeUpdate(t,e,r,n){Tf(t,e,r,n,"beforeUpdate")},updated(t,e,r,n){Tf(t,e,r,n,"updated")}};function GM(t,e){switch(t){case"SELECT":return HM;case"TEXTAREA":return ag;default:switch(e){case"checkbox":return VM;case"radio":return jM;default:return ag}}}function Tf(t,e,r,n,i){const a=GM(t.tagName,r.props&&r.props.type)[i];a&&a(t,e,r,n)}const WM=["ctrl","shift","alt","meta"],QM={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>WM.some(r=>t[`${r}Key`]&&!e.includes(r))},Pt=(t,e)=>(r,...n)=>{for(let i=0;ir=>{if(!("key"in r))return;const n=xs(r.key);if(e.some(i=>i===n||KM[i]===n))return t(r)},fi={beforeMount(t,{value:e},{transition:r}){t._vod=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):Ac(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:n}){!e!=!r&&(n?e?(n.beforeEnter(t),Ac(t,!0),n.enter(t)):n.leave(t,()=>{Ac(t,!1)}):Ac(t,e))},beforeUnmount(t,{value:e}){Ac(t,e)}};function Ac(t,e){t.style.display=e?t._vod:"none"}const YM=ur({patchProp:$M},gM);let G2;function XT(){return G2||(G2=KL(YM))}const sg=(...t)=>{XT().render(...t)},ZM=(...t)=>{const e=XT().createApp(...t),{mount:r}=e;return e.mount=n=>{const i=XM(n);if(!i)return;const o=e._component;!st(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const a=r(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},e};function XM(t){return ar(t)?document.querySelector(t):t}var JM=!1;function JT(t,e,r){var n=r||{},i=n.noTrailing,o=i===void 0?!1:i,a=n.noLeading,c=a===void 0?!1:a,d=n.debounceMode,u=d===void 0?void 0:d,f,_=!1,y=0;function b(){f&&clearTimeout(f)}function p(g){var v=g||{},x=v.upcomingOnly,E=x===void 0?!1:x;b(),_=!E}function m(){for(var g=arguments.length,v=new Array(g),x=0;xt?c?(y=Date.now(),o||(f=setTimeout(u?A:C,t))):C():o!==!0&&(f=setTimeout(u?A:C,u===void 0?t-T:t))}return m.cancel=p,m}function eD(t,e,r){var n=r||{},i=n.atBegin,o=i===void 0?!1:i;return JT(t,e,{debounceMode:o!==!1})}var lg=function(t,e){return lg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},lg(t,e)};function Wi(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");lg(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var re=function(){return re=Object.assign||function(e){for(var r,n=1,i=arguments.length;n=0;c--)(a=t[c])&&(o=(i<3?a(o):i>3?a(e,r,o):a(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o}function Zo(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function c(f){try{u(n.next(f))}catch(_){a(_)}}function d(f){try{u(n.throw(f))}catch(_){a(_)}}function u(f){f.done?o(f.value):i(f.value).then(c,d)}u((n=n.apply(t,e||[])).next())})}function Xo(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(u){return function(f){return d([u,f])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(r=0)),r;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]=rD){var e=console[t]||console.log;return e.apply(console,arguments)}}}(function(t){t.debug=kf("debug"),t.log=kf("log"),t.warn=kf("warn"),t.error=kf("error")})(Za||(Za={}));var Zy="3.8.5";function ci(t){try{return t()}catch{}}const Q2=ci(function(){return globalThis})||ci(function(){return window})||ci(function(){return self})||ci(function(){return global})||ci(function(){return ci.constructor("return this")()});var K2=new Map;function cg(t){var e=K2.get(t)||1;return K2.set(t,e+1),"".concat(t,":").concat(e,":").concat(Math.random().toString(36).slice(2))}function r3(t,e){e===void 0&&(e=0);var r=cg("stringifyForDisplay");return JSON.stringify(t,function(n,i){return i===void 0?r:i},e).split(JSON.stringify(r)).join("")}function Cf(t){return function(e){for(var r=[],n=1;n=e)break;r=i.index+i[0].length,n+=1}return{line:n,column:e+1-r}}function aD(t){return i3(t.source,dg(t.source,t.start))}function i3(t,e){const r=t.locationOffset.column-1,n="".padStart(r)+t.body,i=e.line-1,o=t.locationOffset.line-1,a=e.line+o,c=e.line===1?r:0,d=e.column+c,u=`${t.name}:${a}:${d} `,f=n.split(/\r\n|[\n\r]/g),_=f[i];if(_.length>120){const y=Math.floor(d/80),b=d%80,p=[];for(let m=0;m<_.length;m+=80)p.push(_.slice(m,m+80));return u+Z2([[`${a} |`,p[0]],...p.slice(1,y+1).map(m=>["|",m]),["|","^".padStart(b)],["|",p[y+1]]])}return u+Z2([[`${a-1} |`,f[i-1]],[`${a} |`,_],["|","^".padStart(d)],[`${a+1} |`,f[i+1]]])}function Z2(t){const e=t.filter(([n,i])=>i!==void 0),r=Math.max(...e.map(([n])=>n.length));return e.map(([n,i])=>n.padStart(r)+(i?" "+i:"")).join(` -`)}function sD(t){const e=t[0];return e==null||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}class Jy extends Error{constructor(e,...r){var n,i,o;const{nodes:a,source:c,positions:d,path:u,originalError:f,extensions:_}=sD(r);super(e),this.name="GraphQLError",this.path=u??void 0,this.originalError=f??void 0,this.nodes=X2(Array.isArray(a)?a:a?[a]:void 0);const y=X2((n=this.nodes)===null||n===void 0?void 0:n.map(p=>p.loc).filter(p=>p!=null));this.source=c??(y==null||(i=y[0])===null||i===void 0?void 0:i.source),this.positions=d??(y==null?void 0:y.map(p=>p.start)),this.locations=d&&c?d.map(p=>cg(c,p)):y==null?void 0:y.map(p=>cg(p.source,p.start));const b=nD(f==null?void 0:f.extensions)?f==null?void 0:f.extensions:void 0;this.extensions=(o=_??b)!==null&&o!==void 0?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),f!=null&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Jy):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(e+=` +`)}function sD(t){const e=t[0];return e==null||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}class eb extends Error{constructor(e,...r){var n,i,o;const{nodes:a,source:c,positions:d,path:u,originalError:f,extensions:_}=sD(r);super(e),this.name="GraphQLError",this.path=u??void 0,this.originalError=f??void 0,this.nodes=X2(Array.isArray(a)?a:a?[a]:void 0);const y=X2((n=this.nodes)===null||n===void 0?void 0:n.map(p=>p.loc).filter(p=>p!=null));this.source=c??(y==null||(i=y[0])===null||i===void 0?void 0:i.source),this.positions=d??(y==null?void 0:y.map(p=>p.start)),this.locations=d&&c?d.map(p=>dg(c,p)):y==null?void 0:y.map(p=>dg(p.source,p.start));const b=nD(f==null?void 0:f.extensions)?f==null?void 0:f.extensions:void 0;this.extensions=(o=_??b)!==null&&o!==void 0?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),f!=null&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,eb):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(e+=` `+aD(r.loc));else if(this.source&&this.locations)for(const r of this.locations)e+=` -`+i3(this.source,r);return e}toJSON(){const e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function X2(t){return t===void 0||t.length===0?void 0:t}function Sr(t,e,r){return new Jy(`Syntax Error: ${r}`,{source:t,positions:[e]})}class lD{constructor(e,r,n){this.start=e.start,this.end=r.end,this.startToken=e,this.endToken=r,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class o3{constructor(e,r,n,i,o,a){this.kind=e,this.start=r,this.end=n,this.line=i,this.column=o,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const a3={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},cD=new Set(Object.keys(a3));function J2(t){const e=t==null?void 0:t.kind;return typeof e=="string"&&cD.has(e)}var ol;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(ol||(ol={}));var dg;(function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(dg||(dg={}));var je;(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(je||(je={}));function ug(t){return t===9||t===32}function yd(t){return t>=48&&t<=57}function s3(t){return t>=97&&t<=122||t>=65&&t<=90}function l3(t){return s3(t)||t===95}function dD(t){return s3(t)||yd(t)||t===95}function uD(t){var e;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let a=0;ac===0?a:a.slice(r)).slice((e=n)!==null&&e!==void 0?e:0,i+1)}function fD(t){let e=0;for(;e1&&n.slice(1).every(b=>b.length===0||ug(b.charCodeAt(0))),a=r.endsWith('\\"""'),c=t.endsWith('"')&&!a,d=t.endsWith("\\"),u=c||d,f=!(e!=null&&e.minimize)&&(!i||t.length>70||u||o||a);let _="";const y=i&&ug(t.charCodeAt(0));return(f&&!y||o)&&(_+=` +`+i3(this.source,r);return e}toJSON(){const e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function X2(t){return t===void 0||t.length===0?void 0:t}function Sr(t,e,r){return new eb(`Syntax Error: ${r}`,{source:t,positions:[e]})}class lD{constructor(e,r,n){this.start=e.start,this.end=r.end,this.startToken=e,this.endToken=r,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class o3{constructor(e,r,n,i,o,a){this.kind=e,this.start=r,this.end=n,this.line=i,this.column=o,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const a3={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},cD=new Set(Object.keys(a3));function J2(t){const e=t==null?void 0:t.kind;return typeof e=="string"&&cD.has(e)}var ol;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(ol||(ol={}));var ug;(function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(ug||(ug={}));var je;(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(je||(je={}));function fg(t){return t===9||t===32}function bd(t){return t>=48&&t<=57}function s3(t){return t>=97&&t<=122||t>=65&&t<=90}function l3(t){return s3(t)||t===95}function dD(t){return s3(t)||bd(t)||t===95}function uD(t){var e;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let a=0;ac===0?a:a.slice(r)).slice((e=n)!==null&&e!==void 0?e:0,i+1)}function fD(t){let e=0;for(;e1&&n.slice(1).every(b=>b.length===0||fg(b.charCodeAt(0))),a=r.endsWith('\\"""'),c=t.endsWith('"')&&!a,d=t.endsWith("\\"),u=c||d,f=!(e!=null&&e.minimize)&&(!i||t.length>70||u||o||a);let _="";const y=i&&fg(t.charCodeAt(0));return(f&&!y||o)&&(_+=` `),_+=r,(f||u)&&(_+=` -`),'"""'+_+'"""'}var he;(function(t){t.SOF="",t.EOF="",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"})(he||(he={}));class hD{constructor(e){const r=new o3(he.SOF,0,0,0,0);this.source=e,this.lastToken=r,this.token=r,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==he.EOF)do if(e.next)e=e.next;else{const r=vD(this,e.end);e.next=r,r.prev=e,e=r}while(e.kind===he.COMMENT);return e}}function mD(t){return t===he.BANG||t===he.DOLLAR||t===he.AMP||t===he.PAREN_L||t===he.PAREN_R||t===he.SPREAD||t===he.COLON||t===he.EQUALS||t===he.AT||t===he.BRACKET_L||t===he.BRACKET_R||t===he.BRACE_L||t===he.PIPE||t===he.BRACE_R}function Ql(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function Zp(t,e){return c3(t.charCodeAt(e))&&d3(t.charCodeAt(e+1))}function c3(t){return t>=55296&&t<=56319}function d3(t){return t>=56320&&t<=57343}function hs(t,e){const r=t.source.body.codePointAt(e);if(r===void 0)return he.EOF;if(r>=32&&r<=126){const n=String.fromCodePoint(r);return n==='"'?`'"'`:`"${n}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function pr(t,e,r,n,i){const o=t.line,a=1+r-t.lineStart;return new o3(e,r,n,o,a,i)}function vD(t,e){const r=t.source.body,n=r.length;let i=e;for(;i=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function wD(t,e){const r=t.source.body;switch(r.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` +`),'"""'+_+'"""'}var he;(function(t){t.SOF="",t.EOF="",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"})(he||(he={}));class hD{constructor(e){const r=new o3(he.SOF,0,0,0,0);this.source=e,this.lastToken=r,this.token=r,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==he.EOF)do if(e.next)e=e.next;else{const r=vD(this,e.end);e.next=r,r.prev=e,e=r}while(e.kind===he.COMMENT);return e}}function mD(t){return t===he.BANG||t===he.DOLLAR||t===he.AMP||t===he.PAREN_L||t===he.PAREN_R||t===he.SPREAD||t===he.COLON||t===he.EQUALS||t===he.AT||t===he.BRACKET_L||t===he.BRACKET_R||t===he.BRACE_L||t===he.PIPE||t===he.BRACE_R}function Ql(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function Xp(t,e){return c3(t.charCodeAt(e))&&d3(t.charCodeAt(e+1))}function c3(t){return t>=55296&&t<=56319}function d3(t){return t>=56320&&t<=57343}function hs(t,e){const r=t.source.body.codePointAt(e);if(r===void 0)return he.EOF;if(r>=32&&r<=126){const n=String.fromCodePoint(r);return n==='"'?`'"'`:`"${n}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function pr(t,e,r,n,i){const o=t.line,a=1+r-t.lineStart;return new o3(e,r,n,o,a,i)}function vD(t,e){const r=t.source.body,n=r.length;let i=e;for(;i=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function wD(t,e){const r=t.source.body;switch(r.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Sr(t.source,e,`Invalid character escape sequence: "${r.slice(e,e+2)}".`)}function ED(t,e){const r=t.source.body,n=r.length;let i=t.lineStart,o=e+3,a=o,c="";const d=[];for(;ou3?"["+$D(t)+"]":"{ "+r.map(([i,o])=>i+": "+Xp(o,e)).join(", ")+" }"}function ID(t,e){if(t.length===0)return"[]";if(e.length>u3)return"[Array]";const r=Math.min(kD,t.length),n=t.length-r,i=[];for(let o=0;o1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}function $D(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){const r=t.constructor.name;if(typeof r=="string"&&r!=="")return r}return e}const OD=function(e,r){return e instanceof r};class p3{constructor(e,r="GraphQL request",n={line:1,column:1}){typeof e=="string"||qf(!1,`Body must be a string. Received: ${f3(e)}.`),this.body=e,this.name=r,this.locationOffset=n,this.locationOffset.line>0||qf(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||qf(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function PD(t){return OD(t,p3)}function RD(t,e){return new LD(t,e).parseDocument()}class LD{constructor(e,r={}){const n=PD(e)?e:new p3(e);this._lexer=new hD(n),this._options=r,this._tokenCounter=0}parseName(){const e=this.expectToken(he.NAME);return this.node(e,{kind:je.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:je.DOCUMENT,definitions:this.many(he.SOF,this.parseDefinition,he.EOF)})}parseDefinition(){if(this.peek(he.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),r=e?this._lexer.lookahead():this._lexer.token;if(r.kind===he.NAME){switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw Sr(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(r)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(he.BRACE_L))return this.node(e,{kind:je.OPERATION_DEFINITION,operation:ol.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const r=this.parseOperationType();let n;return this.peek(he.NAME)&&(n=this.parseName()),this.node(e,{kind:je.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(he.NAME);switch(e.value){case"query":return ol.QUERY;case"mutation":return ol.MUTATION;case"subscription":return ol.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(he.PAREN_L,this.parseVariableDefinition,he.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:je.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(he.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(he.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(he.DOLLAR),this.node(e,{kind:je.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:je.SELECTION_SET,selections:this.many(he.BRACE_L,this.parseSelection,he.BRACE_R)})}parseSelection(){return this.peek(he.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,r=this.parseName();let n,i;return this.expectOptionalToken(he.COLON)?(n=r,i=this.parseName()):i=r,this.node(e,{kind:je.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(he.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const r=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(he.PAREN_L,r,he.PAREN_R)}parseArgument(e=!1){const r=this._lexer.token,n=this.parseName();return this.expectToken(he.COLON),this.node(r,{kind:je.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(he.SPREAD);const r=this.expectOptionalKeyword("on");return!r&&this.peek(he.NAME)?this.node(e,{kind:je.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:je.INLINE_FRAGMENT,typeCondition:r?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:je.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:je.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){const r=this._lexer.token;switch(r.kind){case he.BRACKET_L:return this.parseList(e);case he.BRACE_L:return this.parseObject(e);case he.INT:return this.advanceLexer(),this.node(r,{kind:je.INT,value:r.value});case he.FLOAT:return this.advanceLexer(),this.node(r,{kind:je.FLOAT,value:r.value});case he.STRING:case he.BLOCK_STRING:return this.parseStringLiteral();case he.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:je.BOOLEAN,value:!0});case"false":return this.node(r,{kind:je.BOOLEAN,value:!1});case"null":return this.node(r,{kind:je.NULL});default:return this.node(r,{kind:je.ENUM,value:r.value})}case he.DOLLAR:if(e)if(this.expectToken(he.DOLLAR),this._lexer.token.kind===he.NAME){const n=this._lexer.token.value;throw Sr(this._lexer.source,r.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(r);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:je.STRING,value:e.value,block:e.kind===he.BLOCK_STRING})}parseList(e){const r=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:je.LIST,values:this.any(he.BRACKET_L,r,he.BRACKET_R)})}parseObject(e){const r=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:je.OBJECT,fields:this.any(he.BRACE_L,r,he.BRACE_R)})}parseObjectField(e){const r=this._lexer.token,n=this.parseName();return this.expectToken(he.COLON),this.node(r,{kind:je.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const r=[];for(;this.peek(he.AT);)r.push(this.parseDirective(e));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const r=this._lexer.token;return this.expectToken(he.AT),this.node(r,{kind:je.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let r;if(this.expectOptionalToken(he.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(he.BRACKET_R),r=this.node(e,{kind:je.LIST_TYPE,type:n})}else r=this.parseNamedType();return this.expectOptionalToken(he.BANG)?this.node(e,{kind:je.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:je.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(he.STRING)||this.peek(he.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.many(he.BRACE_L,this.parseOperationTypeDefinition,he.BRACE_R);return this.node(e,{kind:je.SCHEMA_DEFINITION,description:r,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,r=this.parseOperationType();this.expectToken(he.COLON);const n=this.parseNamedType();return this.node(e,{kind:je.OPERATION_TYPE_DEFINITION,operation:r,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:je.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:je.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:o,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(he.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(he.BRACE_L,this.parseFieldDefinition,he.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(he.COLON);const o=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:je.FIELD_DEFINITION,description:r,name:n,arguments:i,type:o,directives:a})}parseArgumentDefs(){return this.optionalMany(he.PAREN_L,this.parseInputValueDef,he.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(he.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(he.EQUALS)&&(o=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(e,{kind:je.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:o,directives:a})}parseInterfaceTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:je.INTERFACE_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:o,fields:a})}parseUnionTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(e,{kind:je.UNION_TYPE_DEFINITION,description:r,name:n,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(he.EQUALS)?this.delimitedMany(he.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(e,{kind:je.ENUM_TYPE_DEFINITION,description:r,name:n,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(he.BRACE_L,this.parseEnumValueDefinition,he.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:je.ENUM_VALUE_DEFINITION,description:r,name:n,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Sr(this._lexer.source,this._lexer.token.start,`${kf(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(e,{kind:je.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(he.BRACE_L,this.parseInputValueDef,he.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===he.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.optionalMany(he.BRACE_L,this.parseOperationTypeDefinition,he.BRACE_R);if(r.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:je.SCHEMA_EXTENSION,directives:r,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:je.SCALAR_TYPE_EXTENSION,name:r,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(e,{kind:je.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:i,fields:o})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(e,{kind:je.INTERFACE_TYPE_EXTENSION,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:je.UNION_TYPE_EXTENSION,name:r,directives:n,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:je.ENUM_TYPE_EXTENSION,name:r,directives:n,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:je.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(he.AT);const n=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:je.DIRECTIVE_DEFINITION,description:r,name:n,arguments:i,repeatable:o,locations:a})}parseDirectiveLocations(){return this.delimitedMany(he.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(dg,r.value))return r;throw this.unexpected(e)}node(e,r){return this._options.noLocation!==!0&&(r.loc=new lD(e,this._lexer.lastToken,this._lexer.source)),r}peek(e){return this._lexer.token.kind===e}expectToken(e){const r=this._lexer.token;if(r.kind===e)return this.advanceLexer(),r;throw Sr(this._lexer.source,r.start,`Expected ${h3(e)}, found ${kf(r)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){const r=this._lexer.token;if(r.kind===he.NAME&&r.value===e)this.advanceLexer();else throw Sr(this._lexer.source,r.start,`Expected "${e}", found ${kf(r)}.`)}expectOptionalKeyword(e){const r=this._lexer.token;return r.kind===he.NAME&&r.value===e?(this.advanceLexer(),!0):!1}unexpected(e){const r=e??this._lexer.token;return Sr(this._lexer.source,r.start,`Unexpected ${kf(r)}.`)}any(e,r,n){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(n);)i.push(r.call(this));return i}optionalMany(e,r,n){if(this.expectOptionalToken(e)){const i=[];do i.push(r.call(this));while(!this.expectOptionalToken(n));return i}return[]}many(e,r,n){this.expectToken(e);const i=[];do i.push(r.call(this));while(!this.expectOptionalToken(n));return i}delimitedMany(e,r){this.expectOptionalToken(e);const n=[];do n.push(r.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,r=this._lexer.advance();if(e!==void 0&&r.kind!==he.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw Sr(this._lexer.source,r.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function kf(t){const e=t.value;return h3(t.kind)+(e!=null?` "${e}"`:"")}function h3(t){return mD(t)?`"${t}"`:t}function MD(t){return`"${t.replace(DD,FD)}"`}const DD=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function FD(t){return ND[t.charCodeAt(0)]}const ND=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],eb=Object.freeze({});function zi(t,e,r=a3){const n=new Map;for(const v of Object.values(je))n.set(v,zD(e,v));let i,o=Array.isArray(t),a=[t],c=-1,d=[],u=t,f,_;const y=[],b=[];do{c++;const v=c===a.length,x=v&&d.length!==0;if(v){if(f=b.length===0?void 0:y[y.length-1],u=_,_=b.pop(),x)if(o){u=u.slice();let T=0;for(const[C,A]of d){const L=C-T;A===null?(u.splice(L,1),T++):u[L]=A}}else{u=Object.defineProperties({},Object.getOwnPropertyDescriptors(u));for(const[T,C]of d)u[T]=C}c=i.index,a=i.keys,d=i.edits,o=i.inArray,i=i.prev}else if(_){if(f=o?c:a[c],u=_[f],u==null)continue;y.push(f)}let E;if(!Array.isArray(u)){var p,m;J2(u)||qf(!1,`Invalid AST Node: ${f3(u)}.`);const T=v?(p=n.get(u.kind))===null||p===void 0?void 0:p.leave:(m=n.get(u.kind))===null||m===void 0?void 0:m.enter;if(E=T==null?void 0:T.call(e,u,f,_,y,b),E===eb)break;if(E===!1){if(!v){y.pop();continue}}else if(E!==void 0&&(d.push([f,E]),!v))if(J2(E))u=E;else{y.pop();continue}}if(E===void 0&&x&&d.push([f,u]),v)y.pop();else{var g;i={inArray:o,index:c,keys:a,edits:d,prev:i},o=Array.isArray(u),a=o?u:(g=r[u.kind])!==null&&g!==void 0?g:[],c=-1,d=[],_&&b.push(_),_=u}}while(i!==void 0);return d.length!==0?d[d.length-1][1]:t}function zD(t,e){const r=t[e];return typeof r=="object"?r:typeof r=="function"?{enter:r,leave:void 0}:{enter:t.enter,leave:t.leave}}function m3(t){return zi(t,BD)}const qD=80,BD={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>We(t.definitions,` +`));return t.line+=d.length-1,t.lineStart=i,f}if(u===92&&r.charCodeAt(o+1)===34&&r.charCodeAt(o+2)===34&&r.charCodeAt(o+3)===34){c+=r.slice(a,o),a=o+1,o+=4;continue}if(u===10||u===13){c+=r.slice(a,o),d.push(c),u===13&&r.charCodeAt(o+1)===10?o+=2:++o,c="",a=o,i=o;continue}if(Ql(u))++o;else if(Xp(r,o))o+=2;else throw Sr(t.source,o,`Invalid character within String: ${hs(t,o)}.`)}throw Sr(t.source,o,"Unterminated string.")}function TD(t,e){const r=t.source.body,n=r.length;let i=e+1;for(;iu3?"["+$D(t)+"]":"{ "+r.map(([i,o])=>i+": "+Jp(o,e)).join(", ")+" }"}function ID(t,e){if(t.length===0)return"[]";if(e.length>u3)return"[Array]";const r=Math.min(kD,t.length),n=t.length-r,i=[];for(let o=0;o1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}function $D(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){const r=t.constructor.name;if(typeof r=="string"&&r!=="")return r}return e}const OD=function(e,r){return e instanceof r};class p3{constructor(e,r="GraphQL request",n={line:1,column:1}){typeof e=="string"||Uf(!1,`Body must be a string. Received: ${f3(e)}.`),this.body=e,this.name=r,this.locationOffset=n,this.locationOffset.line>0||Uf(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Uf(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function PD(t){return OD(t,p3)}function RD(t,e){return new LD(t,e).parseDocument()}class LD{constructor(e,r={}){const n=PD(e)?e:new p3(e);this._lexer=new hD(n),this._options=r,this._tokenCounter=0}parseName(){const e=this.expectToken(he.NAME);return this.node(e,{kind:je.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:je.DOCUMENT,definitions:this.many(he.SOF,this.parseDefinition,he.EOF)})}parseDefinition(){if(this.peek(he.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),r=e?this._lexer.lookahead():this._lexer.token;if(r.kind===he.NAME){switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw Sr(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(r)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(he.BRACE_L))return this.node(e,{kind:je.OPERATION_DEFINITION,operation:ol.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const r=this.parseOperationType();let n;return this.peek(he.NAME)&&(n=this.parseName()),this.node(e,{kind:je.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(he.NAME);switch(e.value){case"query":return ol.QUERY;case"mutation":return ol.MUTATION;case"subscription":return ol.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(he.PAREN_L,this.parseVariableDefinition,he.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:je.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(he.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(he.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(he.DOLLAR),this.node(e,{kind:je.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:je.SELECTION_SET,selections:this.many(he.BRACE_L,this.parseSelection,he.BRACE_R)})}parseSelection(){return this.peek(he.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,r=this.parseName();let n,i;return this.expectOptionalToken(he.COLON)?(n=r,i=this.parseName()):i=r,this.node(e,{kind:je.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(he.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const r=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(he.PAREN_L,r,he.PAREN_R)}parseArgument(e=!1){const r=this._lexer.token,n=this.parseName();return this.expectToken(he.COLON),this.node(r,{kind:je.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(he.SPREAD);const r=this.expectOptionalKeyword("on");return!r&&this.peek(he.NAME)?this.node(e,{kind:je.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:je.INLINE_FRAGMENT,typeCondition:r?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:je.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:je.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){const r=this._lexer.token;switch(r.kind){case he.BRACKET_L:return this.parseList(e);case he.BRACE_L:return this.parseObject(e);case he.INT:return this.advanceLexer(),this.node(r,{kind:je.INT,value:r.value});case he.FLOAT:return this.advanceLexer(),this.node(r,{kind:je.FLOAT,value:r.value});case he.STRING:case he.BLOCK_STRING:return this.parseStringLiteral();case he.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:je.BOOLEAN,value:!0});case"false":return this.node(r,{kind:je.BOOLEAN,value:!1});case"null":return this.node(r,{kind:je.NULL});default:return this.node(r,{kind:je.ENUM,value:r.value})}case he.DOLLAR:if(e)if(this.expectToken(he.DOLLAR),this._lexer.token.kind===he.NAME){const n=this._lexer.token.value;throw Sr(this._lexer.source,r.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(r);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:je.STRING,value:e.value,block:e.kind===he.BLOCK_STRING})}parseList(e){const r=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:je.LIST,values:this.any(he.BRACKET_L,r,he.BRACKET_R)})}parseObject(e){const r=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:je.OBJECT,fields:this.any(he.BRACE_L,r,he.BRACE_R)})}parseObjectField(e){const r=this._lexer.token,n=this.parseName();return this.expectToken(he.COLON),this.node(r,{kind:je.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const r=[];for(;this.peek(he.AT);)r.push(this.parseDirective(e));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const r=this._lexer.token;return this.expectToken(he.AT),this.node(r,{kind:je.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let r;if(this.expectOptionalToken(he.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(he.BRACKET_R),r=this.node(e,{kind:je.LIST_TYPE,type:n})}else r=this.parseNamedType();return this.expectOptionalToken(he.BANG)?this.node(e,{kind:je.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:je.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(he.STRING)||this.peek(he.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.many(he.BRACE_L,this.parseOperationTypeDefinition,he.BRACE_R);return this.node(e,{kind:je.SCHEMA_DEFINITION,description:r,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,r=this.parseOperationType();this.expectToken(he.COLON);const n=this.parseNamedType();return this.node(e,{kind:je.OPERATION_TYPE_DEFINITION,operation:r,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:je.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:je.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:o,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(he.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(he.BRACE_L,this.parseFieldDefinition,he.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(he.COLON);const o=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:je.FIELD_DEFINITION,description:r,name:n,arguments:i,type:o,directives:a})}parseArgumentDefs(){return this.optionalMany(he.PAREN_L,this.parseInputValueDef,he.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(he.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(he.EQUALS)&&(o=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(e,{kind:je.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:o,directives:a})}parseInterfaceTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:je.INTERFACE_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:o,fields:a})}parseUnionTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(e,{kind:je.UNION_TYPE_DEFINITION,description:r,name:n,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(he.EQUALS)?this.delimitedMany(he.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(e,{kind:je.ENUM_TYPE_DEFINITION,description:r,name:n,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(he.BRACE_L,this.parseEnumValueDefinition,he.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:je.ENUM_VALUE_DEFINITION,description:r,name:n,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Sr(this._lexer.source,this._lexer.token.start,`${Af(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(e,{kind:je.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(he.BRACE_L,this.parseInputValueDef,he.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===he.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.optionalMany(he.BRACE_L,this.parseOperationTypeDefinition,he.BRACE_R);if(r.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:je.SCHEMA_EXTENSION,directives:r,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:je.SCALAR_TYPE_EXTENSION,name:r,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(e,{kind:je.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:i,fields:o})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(e,{kind:je.INTERFACE_TYPE_EXTENSION,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:je.UNION_TYPE_EXTENSION,name:r,directives:n,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:je.ENUM_TYPE_EXTENSION,name:r,directives:n,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:je.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(he.AT);const n=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:je.DIRECTIVE_DEFINITION,description:r,name:n,arguments:i,repeatable:o,locations:a})}parseDirectiveLocations(){return this.delimitedMany(he.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(ug,r.value))return r;throw this.unexpected(e)}node(e,r){return this._options.noLocation!==!0&&(r.loc=new lD(e,this._lexer.lastToken,this._lexer.source)),r}peek(e){return this._lexer.token.kind===e}expectToken(e){const r=this._lexer.token;if(r.kind===e)return this.advanceLexer(),r;throw Sr(this._lexer.source,r.start,`Expected ${h3(e)}, found ${Af(r)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){const r=this._lexer.token;if(r.kind===he.NAME&&r.value===e)this.advanceLexer();else throw Sr(this._lexer.source,r.start,`Expected "${e}", found ${Af(r)}.`)}expectOptionalKeyword(e){const r=this._lexer.token;return r.kind===he.NAME&&r.value===e?(this.advanceLexer(),!0):!1}unexpected(e){const r=e??this._lexer.token;return Sr(this._lexer.source,r.start,`Unexpected ${Af(r)}.`)}any(e,r,n){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(n);)i.push(r.call(this));return i}optionalMany(e,r,n){if(this.expectOptionalToken(e)){const i=[];do i.push(r.call(this));while(!this.expectOptionalToken(n));return i}return[]}many(e,r,n){this.expectToken(e);const i=[];do i.push(r.call(this));while(!this.expectOptionalToken(n));return i}delimitedMany(e,r){this.expectOptionalToken(e);const n=[];do n.push(r.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,r=this._lexer.advance();if(e!==void 0&&r.kind!==he.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw Sr(this._lexer.source,r.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function Af(t){const e=t.value;return h3(t.kind)+(e!=null?` "${e}"`:"")}function h3(t){return mD(t)?`"${t}"`:t}function MD(t){return`"${t.replace(DD,FD)}"`}const DD=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function FD(t){return ND[t.charCodeAt(0)]}const ND=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],tb=Object.freeze({});function zi(t,e,r=a3){const n=new Map;for(const v of Object.values(je))n.set(v,zD(e,v));let i,o=Array.isArray(t),a=[t],c=-1,d=[],u=t,f,_;const y=[],b=[];do{c++;const v=c===a.length,x=v&&d.length!==0;if(v){if(f=b.length===0?void 0:y[y.length-1],u=_,_=b.pop(),x)if(o){u=u.slice();let T=0;for(const[C,A]of d){const L=C-T;A===null?(u.splice(L,1),T++):u[L]=A}}else{u=Object.defineProperties({},Object.getOwnPropertyDescriptors(u));for(const[T,C]of d)u[T]=C}c=i.index,a=i.keys,d=i.edits,o=i.inArray,i=i.prev}else if(_){if(f=o?c:a[c],u=_[f],u==null)continue;y.push(f)}let E;if(!Array.isArray(u)){var p,m;J2(u)||Uf(!1,`Invalid AST Node: ${f3(u)}.`);const T=v?(p=n.get(u.kind))===null||p===void 0?void 0:p.leave:(m=n.get(u.kind))===null||m===void 0?void 0:m.enter;if(E=T==null?void 0:T.call(e,u,f,_,y,b),E===tb)break;if(E===!1){if(!v){y.pop();continue}}else if(E!==void 0&&(d.push([f,E]),!v))if(J2(E))u=E;else{y.pop();continue}}if(E===void 0&&x&&d.push([f,u]),v)y.pop();else{var g;i={inArray:o,index:c,keys:a,edits:d,prev:i},o=Array.isArray(u),a=o?u:(g=r[u.kind])!==null&&g!==void 0?g:[],c=-1,d=[],_&&b.push(_),_=u}}while(i!==void 0);return d.length!==0?d[d.length-1][1]:t}function zD(t,e){const r=t[e];return typeof r=="object"?r:typeof r=="function"?{enter:r,leave:void 0}:{enter:t.enter,leave:t.leave}}function m3(t){return zi(t,BD)}const qD=80,BD={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>We(t.definitions,` `)},OperationDefinition:{leave(t){const e=_t("(",We(t.variableDefinitions,", "),")"),r=We([t.operation,We([t.name,e]),We(t.directives," ")]," ");return(r==="query"?"":r+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:r,directives:n})=>t+": "+e+_t(" = ",r)+_t(" ",We(n," "))},SelectionSet:{leave:({selections:t})=>si(t)},Field:{leave({alias:t,name:e,arguments:r,directives:n,selectionSet:i}){const o=_t("",t,": ")+e;let a=o+_t("(",We(r,", "),")");return a.length>qD&&(a=o+_t(`( -`,Bf(We(r,` +`,Vf(We(r,` `)),` )`)),We([a,We(n," "),i]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+_t(" ",We(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:r})=>We(["...",_t("on ",t),We(e," "),r]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${t}${_t("(",We(r,", "),")")} on ${e} ${_t("",We(n," ")," ")}`+i},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?pD(t):MD(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+We(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+We(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+_t("(",We(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:r})=>_t("",t,` `)+We(["schema",We(e," "),si(r)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:r})=>_t("",t,` `)+We(["scalar",e,We(r," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:i})=>_t("",t,` `)+We(["type",e,_t("implements ",We(r," & ")),We(n," "),si(i)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:r,type:n,directives:i})=>_t("",t,` `)+e+(tw(r)?_t(`( -`,Bf(We(r,` +`,Vf(We(r,` `)),` )`):_t("(",We(r,", "),")"))+": "+n+_t(" ",We(i," "))},InputValueDefinition:{leave:({description:t,name:e,type:r,defaultValue:n,directives:i})=>_t("",t,` `)+We([e+": "+r,_t("= ",n),We(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:i})=>_t("",t,` @@ -28,24 +28,24 @@ var sR=Object.defineProperty;var lR=(t,e,r)=>e in t?sR(t,e,{enumerable:!0,config `)+We([e,We(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:r,fields:n})=>_t("",t,` `)+We(["input",e,We(r," "),si(n)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:r,repeatable:n,locations:i})=>_t("",t,` `)+"directive @"+e+(tw(r)?_t(`( -`,Bf(We(r,` +`,Vf(We(r,` `)),` )`):_t("(",We(r,", "),")"))+(n?" repeatable":"")+" on "+We(i," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>We(["extend schema",We(t," "),si(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>We(["extend scalar",t,We(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>We(["extend type",t,_t("implements ",We(e," & ")),We(r," "),si(n)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>We(["extend interface",t,_t("implements ",We(e," & ")),We(r," "),si(n)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:r})=>We(["extend union",t,We(e," "),_t("= ",We(r," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:r})=>We(["extend enum",t,We(e," "),si(r)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:r})=>We(["extend input",t,We(e," "),si(r)]," ")}};function We(t,e=""){var r;return(r=t==null?void 0:t.filter(n=>n).join(e))!==null&&r!==void 0?r:""}function si(t){return _t(`{ -`,Bf(We(t,` +`,Vf(We(t,` `)),` -}`)}function _t(t,e,r=""){return e!=null&&e!==""?t+e+r:""}function Bf(t){return _t(" ",t.replace(/\n/g,` +}`)}function _t(t,e,r=""){return e!=null&&e!==""?t+e+r:""}function Vf(t){return _t(" ",t.replace(/\n/g,` `))}function tw(t){var e;return(e=t==null?void 0:t.some(r=>r.includes(` -`)))!==null&&e!==void 0?e:!1}function rw(t){return t.kind===je.FIELD||t.kind===je.FRAGMENT_SPREAD||t.kind===je.INLINE_FRAGMENT}function zd(t,e){var r=t.directives;return!r||!r.length?!0:jD(r).every(function(n){var i=n.directive,o=n.ifArgument,a=!1;return o.value.kind==="Variable"?(a=e&&e[o.value.name.value],nt(a!==void 0,64,i.name.value)):a=o.value.value,i.name.value==="skip"?!a:a})}function bd(t,e,r){var n=new Set(t),i=n.size;return zi(e,{Directive:function(o){if(n.delete(o.name.value)&&(!r||!n.size))return eb}}),r?!n.size:n.sizeObject.create(null),{forEach:GD,slice:WD}=Array.prototype,{hasOwnProperty:QD}=Object.prototype;class Ta{constructor(e=!0,r=HD){this.weakness=e,this.makeData=r}lookup(...e){return this.lookupArray(e)}lookupArray(e){let r=this;return GD.call(e,n=>r=r.getChildTrie(n)),QD.call(r,"data")?r.data:r.data=this.makeData(WD.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let r=this;for(let n=0,i=e.length;r&&n=0});function er(t){return t!==null&&typeof t=="object"}function KD(t,e){var r=e,n=[];t.definitions.forEach(function(o){if(o.kind==="OperationDefinition")throw on(68,o.operation,o.name?" named '".concat(o.name.value,"'"):"");o.kind==="FragmentDefinition"&&n.push(o)}),typeof r>"u"&&(nt(n.length===1,69,n.length),r=n[0].name.value);var i=re(re({},t),{definitions:os([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],t.definitions,!0)});return i}function eh(t){t===void 0&&(t=[]);var e={};return t.forEach(function(r){e[r.name.value]=r}),e}function th(t,e){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":{var r=t.name.value;if(typeof e=="function")return e(r);var n=e&&e[r];return nt(n,70,r),n||null}default:return null}}function pl(t){return{__ref:String(t)}}function Nt(t){return!!(t&&typeof t=="object"&&typeof t.__ref=="string")}function YD(t){return er(t)&&t.kind==="Document"&&Array.isArray(t.definitions)}function ZD(t){return t.kind==="StringValue"}function XD(t){return t.kind==="BooleanValue"}function JD(t){return t.kind==="IntValue"}function eF(t){return t.kind==="FloatValue"}function tF(t){return t.kind==="Variable"}function rF(t){return t.kind==="ObjectValue"}function nF(t){return t.kind==="ListValue"}function iF(t){return t.kind==="EnumValue"}function oF(t){return t.kind==="NullValue"}function Tl(t,e,r,n){if(JD(r)||eF(r))t[e.value]=Number(r.value);else if(XD(r)||ZD(r))t[e.value]=r.value;else if(rF(r)){var i={};r.fields.map(function(a){return Tl(i,a.name,a.value,n)}),t[e.value]=i}else if(tF(r)){var o=(n||{})[r.name.value];t[e.value]=o}else if(nF(r))t[e.value]=r.values.map(function(a){var c={};return Tl(c,e,a,n),c[e.value]});else if(iF(r))t[e.value]=r.value;else if(oF(r))t[e.value]=null;else throw on(79,e.value,r.kind)}function aF(t,e){var r=null;t.directives&&(r={},t.directives.forEach(function(i){r[i.name.value]={},i.arguments&&i.arguments.forEach(function(o){var a=o.name,c=o.value;return Tl(r[i.name.value],a,c,e)})}));var n=null;return t.arguments&&t.arguments.length&&(n={},t.arguments.forEach(function(i){var o=i.name,a=i.value;return Tl(n,o,a,e)})),tb(t.name.value,n,r)}var sF=["connection","include","skip","client","rest","export","nonreactive"],tb=Object.assign(function(t,e,r){if(e&&r&&r.connection&&r.connection.key)if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(c){i[c]=e[c]}),"".concat(r.connection.key,"(").concat(Sc(i),")")}else return r.connection.key;var o=t;if(e){var a=Sc(e);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(c){sF.indexOf(c)===-1&&(r[c]&&Object.keys(r[c]).length?o+="@".concat(c,"(").concat(Sc(r[c]),")"):o+="@".concat(c))}),o},{setStringify:function(t){var e=Sc;return Sc=t,e}}),Sc=function(e){return JSON.stringify(e,lF)};function lF(t,e){return er(e)&&!Array.isArray(e)&&(e=Object.keys(e).sort().reduce(function(r,n){return r[n]=e[n],r},{})),e}function rh(t,e){if(t.arguments&&t.arguments.length){var r={};return t.arguments.forEach(function(n){var i=n.name,o=n.value;return Tl(r,i,o,e)}),r}return null}function ha(t){return t.alias?t.alias.value:t.name.value}function fg(t,e,r){for(var n,i=0,o=e.selections;i0}var iw={kind:je.FIELD,name:{kind:je.NAME,value:"__typename"}};function x3(t,e){return!t||t.selectionSet.selections.every(function(r){return r.kind===je.FRAGMENT_SPREAD&&x3(e[r.name.value],e)})}function fF(t){return x3(Bd(t)||dF(t),eh(nh(t)))?null:t}function pF(t){var e=new Map,r=new Map;return t.forEach(function(n){n&&(n.name?e.set(n.name,n):n.test&&r.set(n.test,n))}),function(n){var i=e.get(n.name.value);return!i&&r.size&&r.forEach(function(o,a){a(n)&&(i=o)}),i}}function ow(t){var e=new Map;return function(n){n===void 0&&(n=t);var i=e.get(n);return i||e.set(n,i={variables:new Set,fragmentSpreads:new Set}),i}}function w3(t,e){qd(e);for(var r=ow(""),n=ow(""),i=function(v){for(var x=0,E=void 0;x=0;--a)e.definitions[a].kind===je.OPERATION_DEFINITION&&++o;var c=pF(t),d=function(v){return qi(v)&&v.map(c).some(function(x){return x&&x.remove})},u=new Map,f=!1,_={enter:function(v){if(d(v.directives))return f=!0,null}},y=zi(e,{Field:_,InlineFragment:_,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(v,x,E,T,C){var A=i(C);A&&A.variables.add(v.name.value)}},FragmentSpread:{enter:function(v,x,E,T,C){if(d(v.directives))return f=!0,null;var A=i(C);A&&A.fragmentSpreads.add(v.name.value)}},FragmentDefinition:{enter:function(v,x,E,T){u.set(JSON.stringify(T),v)},leave:function(v,x,E,T){var C=u.get(JSON.stringify(T));if(v===C)return v;if(o>0&&v.selectionSet.selections.every(function(A){return A.kind===je.FIELD&&A.name.value==="__typename"}))return n(v.name.value).removed=!0,f=!0,null}},Directive:{leave:function(v){if(c(v))return f=!0,null}}});if(!f)return e;var b=function(v){return v.transitiveVars||(v.transitiveVars=new Set(v.variables),v.removed||v.fragmentSpreads.forEach(function(x){b(n(x)).transitiveVars.forEach(function(E){v.transitiveVars.add(E)})})),v},p=new Set;y.definitions.forEach(function(v){v.kind===je.OPERATION_DEFINITION?b(r(v.name&&v.name.value)).fragmentSpreads.forEach(function(x){p.add(x)}):v.kind===je.FRAGMENT_DEFINITION&&o===0&&!n(v.name.value).removed&&p.add(v.name.value)}),p.forEach(function(v){b(n(v)).fragmentSpreads.forEach(function(x){p.add(x)})});var m=function(v){return!!(!p.has(v)||n(v).removed)},g={enter:function(v){if(m(v.name.value))return null}};return fF(zi(y,{FragmentSpread:g,FragmentDefinition:g,OperationDefinition:{leave:function(v){if(v.variableDefinitions){var x=b(r(v.name&&v.name.value)).transitiveVars;if(x.size1)for(var n=new va,i=1;i=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _F(t,e){if(t){if(typeof t=="string")return sw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sw(t,e)}}function sw(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1,c=!1,d=arguments[1],u=d;return new o(function(f){return i.subscribe({next:function(_){var y=!c;if(c=!0,!y||a)try{u=n(u,_)}catch(b){return f.error(b)}else u=_},error:function(_){f.error(_)},complete:function(){if(!c&&!a)return f.error(new TypeError("Cannot reduce an empty sequence"));f.next(u),f.complete()}})})},e.concat=function(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a=0&&c.splice(y,1),u()}});c.push(_)},error:function(f){a.error(f)},complete:function(){u()}});function u(){d.closed&&c.length===0&&a.complete()}return function(){c.forEach(function(f){return f.unsubscribe()}),d.unsubscribe()}})},e[hg]=function(){return this},t.from=function(n){var i=typeof this=="function"?this:t;if(n==null)throw new TypeError(n+" is not an object");var o=lp(n,hg);if(o){var a=o.call(n);if(Object(a)!==a)throw new TypeError(a+" is not an object");return bF(a)&&a.constructor===i?a:new i(function(c){return a.subscribe(c)})}if(sb("iterator")&&(o=lp(n,yF),o))return new i(function(c){Uf(function(){if(!c.closed){for(var d=gF(o.call(n)),u;!(u=d()).done;){var f=u.value;if(c.next(f),c.closed)return}c.complete()}})});if(Array.isArray(n))return new i(function(c){Uf(function(){if(!c.closed){for(var d=0;d=0;--c){var d=a[c],u=!isNaN(+d),f=u?[]:{};f[d]=o,o=f}r=n.merge(r,o)}),r}function Vf(t){var e=_g(t);return qi(e)}function _g(t){var e=qi(t.errors)?t.errors.slice(0):[];return hl(t)&&qi(t.incremental)&&t.incremental.forEach(function(r){r.errors&&e.push.apply(e,r.errors)}),e}function Cl(){for(var t=[],e=0;eObject.create(null),{forEach:GD,slice:WD}=Array.prototype,{hasOwnProperty:QD}=Object.prototype;class Ta{constructor(e=!0,r=HD){this.weakness=e,this.makeData=r}lookup(...e){return this.lookupArray(e)}lookupArray(e){let r=this;return GD.call(e,n=>r=r.getChildTrie(n)),QD.call(r,"data")?r.data:r.data=this.makeData(WD.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let r=this;for(let n=0,i=e.length;r&&n=0});function er(t){return t!==null&&typeof t=="object"}function KD(t,e){var r=e,n=[];t.definitions.forEach(function(o){if(o.kind==="OperationDefinition")throw on(68,o.operation,o.name?" named '".concat(o.name.value,"'"):"");o.kind==="FragmentDefinition"&&n.push(o)}),typeof r>"u"&&(nt(n.length===1,69,n.length),r=n[0].name.value);var i=re(re({},t),{definitions:os([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],t.definitions,!0)});return i}function th(t){t===void 0&&(t=[]);var e={};return t.forEach(function(r){e[r.name.value]=r}),e}function rh(t,e){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":{var r=t.name.value;if(typeof e=="function")return e(r);var n=e&&e[r];return nt(n,70,r),n||null}default:return null}}function pl(t){return{__ref:String(t)}}function Nt(t){return!!(t&&typeof t=="object"&&typeof t.__ref=="string")}function YD(t){return er(t)&&t.kind==="Document"&&Array.isArray(t.definitions)}function ZD(t){return t.kind==="StringValue"}function XD(t){return t.kind==="BooleanValue"}function JD(t){return t.kind==="IntValue"}function eF(t){return t.kind==="FloatValue"}function tF(t){return t.kind==="Variable"}function rF(t){return t.kind==="ObjectValue"}function nF(t){return t.kind==="ListValue"}function iF(t){return t.kind==="EnumValue"}function oF(t){return t.kind==="NullValue"}function Tl(t,e,r,n){if(JD(r)||eF(r))t[e.value]=Number(r.value);else if(XD(r)||ZD(r))t[e.value]=r.value;else if(rF(r)){var i={};r.fields.map(function(a){return Tl(i,a.name,a.value,n)}),t[e.value]=i}else if(tF(r)){var o=(n||{})[r.name.value];t[e.value]=o}else if(nF(r))t[e.value]=r.values.map(function(a){var c={};return Tl(c,e,a,n),c[e.value]});else if(iF(r))t[e.value]=r.value;else if(oF(r))t[e.value]=null;else throw on(79,e.value,r.kind)}function aF(t,e){var r=null;t.directives&&(r={},t.directives.forEach(function(i){r[i.name.value]={},i.arguments&&i.arguments.forEach(function(o){var a=o.name,c=o.value;return Tl(r[i.name.value],a,c,e)})}));var n=null;return t.arguments&&t.arguments.length&&(n={},t.arguments.forEach(function(i){var o=i.name,a=i.value;return Tl(n,o,a,e)})),rb(t.name.value,n,r)}var sF=["connection","include","skip","client","rest","export","nonreactive"],rb=Object.assign(function(t,e,r){if(e&&r&&r.connection&&r.connection.key)if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(c){i[c]=e[c]}),"".concat(r.connection.key,"(").concat(Sc(i),")")}else return r.connection.key;var o=t;if(e){var a=Sc(e);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(c){sF.indexOf(c)===-1&&(r[c]&&Object.keys(r[c]).length?o+="@".concat(c,"(").concat(Sc(r[c]),")"):o+="@".concat(c))}),o},{setStringify:function(t){var e=Sc;return Sc=t,e}}),Sc=function(e){return JSON.stringify(e,lF)};function lF(t,e){return er(e)&&!Array.isArray(e)&&(e=Object.keys(e).sort().reduce(function(r,n){return r[n]=e[n],r},{})),e}function nh(t,e){if(t.arguments&&t.arguments.length){var r={};return t.arguments.forEach(function(n){var i=n.name,o=n.value;return Tl(r,i,o,e)}),r}return null}function ha(t){return t.alias?t.alias.value:t.name.value}function pg(t,e,r){for(var n,i=0,o=e.selections;i0}var iw={kind:je.FIELD,name:{kind:je.NAME,value:"__typename"}};function x3(t,e){return!t||t.selectionSet.selections.every(function(r){return r.kind===je.FRAGMENT_SPREAD&&x3(e[r.name.value],e)})}function fF(t){return x3(Vd(t)||dF(t),th(ih(t)))?null:t}function pF(t){var e=new Map,r=new Map;return t.forEach(function(n){n&&(n.name?e.set(n.name,n):n.test&&r.set(n.test,n))}),function(n){var i=e.get(n.name.value);return!i&&r.size&&r.forEach(function(o,a){a(n)&&(i=o)}),i}}function ow(t){var e=new Map;return function(n){n===void 0&&(n=t);var i=e.get(n);return i||e.set(n,i={variables:new Set,fragmentSpreads:new Set}),i}}function w3(t,e){Ud(e);for(var r=ow(""),n=ow(""),i=function(v){for(var x=0,E=void 0;x=0;--a)e.definitions[a].kind===je.OPERATION_DEFINITION&&++o;var c=pF(t),d=function(v){return qi(v)&&v.map(c).some(function(x){return x&&x.remove})},u=new Map,f=!1,_={enter:function(v){if(d(v.directives))return f=!0,null}},y=zi(e,{Field:_,InlineFragment:_,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(v,x,E,T,C){var A=i(C);A&&A.variables.add(v.name.value)}},FragmentSpread:{enter:function(v,x,E,T,C){if(d(v.directives))return f=!0,null;var A=i(C);A&&A.fragmentSpreads.add(v.name.value)}},FragmentDefinition:{enter:function(v,x,E,T){u.set(JSON.stringify(T),v)},leave:function(v,x,E,T){var C=u.get(JSON.stringify(T));if(v===C)return v;if(o>0&&v.selectionSet.selections.every(function(A){return A.kind===je.FIELD&&A.name.value==="__typename"}))return n(v.name.value).removed=!0,f=!0,null}},Directive:{leave:function(v){if(c(v))return f=!0,null}}});if(!f)return e;var b=function(v){return v.transitiveVars||(v.transitiveVars=new Set(v.variables),v.removed||v.fragmentSpreads.forEach(function(x){b(n(x)).transitiveVars.forEach(function(E){v.transitiveVars.add(E)})})),v},p=new Set;y.definitions.forEach(function(v){v.kind===je.OPERATION_DEFINITION?b(r(v.name&&v.name.value)).fragmentSpreads.forEach(function(x){p.add(x)}):v.kind===je.FRAGMENT_DEFINITION&&o===0&&!n(v.name.value).removed&&p.add(v.name.value)}),p.forEach(function(v){b(n(v)).fragmentSpreads.forEach(function(x){p.add(x)})});var m=function(v){return!!(!p.has(v)||n(v).removed)},g={enter:function(v){if(m(v.name.value))return null}};return fF(zi(y,{FragmentSpread:g,FragmentDefinition:g,OperationDefinition:{leave:function(v){if(v.variableDefinitions){var x=b(r(v.name&&v.name.value)).transitiveVars;if(x.size1)for(var n=new va,i=1;i=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _F(t,e){if(t){if(typeof t=="string")return sw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sw(t,e)}}function sw(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1,c=!1,d=arguments[1],u=d;return new o(function(f){return i.subscribe({next:function(_){var y=!c;if(c=!0,!y||a)try{u=n(u,_)}catch(b){return f.error(b)}else u=_},error:function(_){f.error(_)},complete:function(){if(!c&&!a)return f.error(new TypeError("Cannot reduce an empty sequence"));f.next(u),f.complete()}})})},e.concat=function(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a=0&&c.splice(y,1),u()}});c.push(_)},error:function(f){a.error(f)},complete:function(){u()}});function u(){d.closed&&c.length===0&&a.complete()}return function(){c.forEach(function(f){return f.unsubscribe()}),d.unsubscribe()}})},e[mg]=function(){return this},t.from=function(n){var i=typeof this=="function"?this:t;if(n==null)throw new TypeError(n+" is not an object");var o=dp(n,mg);if(o){var a=o.call(n);if(Object(a)!==a)throw new TypeError(a+" is not an object");return bF(a)&&a.constructor===i?a:new i(function(c){return a.subscribe(c)})}if(lb("iterator")&&(o=dp(n,yF),o))return new i(function(c){jf(function(){if(!c.closed){for(var d=gF(o.call(n)),u;!(u=d()).done;){var f=u.value;if(c.next(f),c.closed)return}c.complete()}})});if(Array.isArray(n))return new i(function(c){jf(function(){if(!c.closed){for(var d=0;d=0;--c){var d=a[c],u=!isNaN(+d),f=u?[]:{};f[d]=o,o=f}r=n.merge(r,o)}),r}function Hf(t){var e=yg(t);return qi(e)}function yg(t){var e=qi(t.errors)?t.errors.slice(0):[];return hl(t)&&qi(t.incremental)&&t.incremental.forEach(function(r){r.errors&&e.push.apply(e,r.errors)}),e}function Cl(){for(var t=[],e=0;e-1;){if(v=void 0,R=[d.slice(0,g),d.slice(g+c.length)],v=R[0],d=R[1],x=v.indexOf(`\r \r -`),E=QF(v.slice(0,x)),T=E["content-type"],T&&T.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(C=v.slice(x),C){if(A=O3(t,C),Object.keys(A).length>1||"data"in A||"incremental"in A||"errors"in A||"payload"in A)$F(A)?(L={},"payload"in A&&(L=re({},A.payload)),"errors"in A&&(L=re(re({},L),{extensions:re(re({},"extensions"in L?L.extensions:null),(D={},D[cb]=A.errors,D))})),e(L)):e(A);else if(Object.keys(A).length===1&&"hasNext"in A&&!A.hasNext)return[2]}g=d.indexOf(c)}return[3,1];case 3:return[2]}})})}function QF(t){var e={};return t.split(` -`).forEach(function(r){var n=r.indexOf(":");if(n>-1){var i=r.slice(0,n).trim().toLowerCase(),o=r.slice(n+1).trim();e[i]=o}}),e}function O3(t,e){if(t.status>=300){var r=function(){try{return JSON.parse(e)}catch{return e}};yg(t,r(),"Response not successful: Received status code ".concat(t.status))}try{return JSON.parse(e)}catch(i){var n=i;throw n.name="ServerParseError",n.response=t,n.statusCode=t.status,n.bodyText=e,n}}function KF(t,e){t.result&&t.result.errors&&t.result.data&&e.next(t.result),e.error(t)}function P3(t){return function(e){return e.text().then(function(r){return O3(e,r)}).then(function(r){return e.status>=300&&yg(e,r,"Response not successful: Received status code ".concat(e.status)),!Array.isArray(r)&&!hw.call(r,"data")&&!hw.call(r,"errors")&&yg(e,r,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(n){return n.operationName}):t.operationName,"'.")),r})}}var cp=function(t,e){var r;try{r=JSON.stringify(t)}catch(i){var n=on(37,e,i.message);throw n.parseError=i,n}return r},YF={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},ZF={accept:"*/*","content-type":"application/json"},XF={method:"POST"},R3={http:YF,headers:ZF,options:XF},L3=function(t,e){return e(t)};function M3(t,e){for(var r=[],n=2;n"u")throw on(35)},tN=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var t=new AbortController,e=t.signal;return{controller:t,signal:e}},D3=function(t,e){var r=t.getContext(),n=r.uri;return n||(typeof e=="function"?e(t):e||"/graphql")};function rN(t,e){var r=[],n=function(_,y){r.push("".concat(_,"=").concat(encodeURIComponent(y)))};if("query"in e&&n("query",e.query),e.operationName&&n("operationName",e.operationName),e.variables){var i=void 0;try{i=cp(e.variables,"Variables map")}catch(_){return{parseError:_}}n("variables",i)}if(e.extensions){var o=void 0;try{o=cp(e.extensions,"Extensions map")}catch(_){return{parseError:_}}n("extensions",o)}var a="",c=t,d=t.indexOf("#");d!==-1&&(a=t.substr(d),c=t.substr(0,d));var u=c.indexOf("?")===-1?"?":"&",f=c+u+r.join("&")+a;return{newURI:f}}var mw=ci(function(){return fetch}),nN=function(t){t===void 0&&(t={});var e=t.uri,r=e===void 0?"/graphql":e,n=t.fetch,i=t.print,o=i===void 0?L3:i,a=t.includeExtensions,c=t.preserveHeaderCase,d=t.useGETForQueries,u=t.includeUnusedVariables,f=u===void 0?!1:u,_=pa(t,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&eN(n||mw);var y={http:{includeExtensions:a,preserveHeaderCase:c},options:_.fetchOptions,credentials:_.credentials,headers:_.headers};return new Kl(function(b){var p=D3(b,r),m=b.getContext(),g={};if(m.clientAwareness){var v=m.clientAwareness,x=v.name,E=v.version;x&&(g["apollographql-client-name"]=x),E&&(g["apollographql-client-version"]=E)}var T=re(re({},g),m.headers),C={http:m.http,options:m.fetchOptions,credentials:m.credentials,headers:T};if(bd(["client"],b.query)){var A=E3(b.query);if(!A)return jf(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));b.query=A}var L=M3(b,o,R3,y,C),R=L.options,D=L.body;D.variables&&!f&&(D.variables=LF(D.variables,b.query));var q;!R.signal&&typeof AbortController<"u"&&(q=new AbortController,R.signal=q.signal);var H=function(Ce){return Ce.kind==="OperationDefinition"&&Ce.operation==="mutation"},U=function(Ce){return Ce.kind==="OperationDefinition"&&Ce.operation==="subscription"},ce=U(Ud(b.query)),Ae=bd(["defer"],b.query);if(d&&!b.query.definitions.some(H)&&(R.method="GET"),Ae||ce){R.headers=R.headers||{};var Le="multipart/mixed;";ce&&Ae&&globalThis.__DEV__!==!1&&nt.warn(36),ce?Le+="boundary=graphql;subscriptionSpec=1.0,application/json":Ae&&(Le+="deferSpec=20220824,application/json"),R.headers.accept=Le}if(R.method==="GET"){var Te=rN(p,D),Ie=Te.newURI,Pe=Te.parseError;if(Pe)return jf(Pe);p=Ie}else try{R.body=cp(D,"Payload")}catch(Ce){return jf(Ce)}return new Gt(function(Ce){var de=n||ci(function(){return fetch})||mw,we=Ce.next.bind(Ce);return de(p,R).then(function(ke){var Re;b.setContext({response:ke});var He=(Re=ke.headers)===null||Re===void 0?void 0:Re.get("content-type");return He!==null&&/^multipart\/mixed/i.test(He)?WF(ke,we):P3(b)(ke).then(we)}).then(function(){q=void 0,Ce.complete()}).catch(function(ke){q=void 0,KF(ke,Ce)}),function(){q&&q.abort()}})})},iN=function(t){Wi(e,t);function e(r){r===void 0&&(r={});var n=t.call(this,nN(r).request)||this;return n.options=r,n}return e}(Kl);const{toString:vw,hasOwnProperty:oN}=Object.prototype,gw=Function.prototype.toString,xg=new Map;function rr(t,e){try{return wg(t,e)}finally{xg.clear()}}function wg(t,e){if(t===e)return!0;const r=vw.call(t),n=vw.call(e);if(r!==n)return!1;switch(r){case"[object Array]":if(t.length!==e.length)return!1;case"[object Object]":{if(yw(t,e))return!0;const i=_w(t),o=_w(e),a=i.length;if(a!==o.length)return!1;for(let c=0;c=0&&t.indexOf(e,r)===r}function yw(t,e){let r=xg.get(t);if(r){if(r.has(e))return!0}else xg.set(t,r=new Set);return r.add(e),!1}function cN(){}let dN=class{constructor(e=1/0,r=cN){this.max=e,this.dispose=r,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const r=this.getNode(e);return r&&r.value}getNode(e){const r=this.map.get(e);if(r&&r!==this.newest){const{older:n,newer:i}=r;i&&(i.older=n),n&&(n.newer=i),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=i)}return r}set(e,r){let n=this.getNode(e);return n?n.value=r:(n={key:e,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const r=this.map.get(e);return r?(r===this.newest&&(this.newest=r.older),r===this.oldest&&(this.oldest=r.newer),r.newer&&(r.newer.older=r.older),r.older&&(r.older.newer=r.newer),this.map.delete(e),this.dispose(r.value,e),!0):!1}};var Mr=null,bw={},uN=1,fN=function(){return function(){function t(){this.id=["slot",uN++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return t.prototype.hasValue=function(){for(var e=Mr;e;e=e.parent)if(this.id in e.slots){var r=e.slots[this.id];if(r===bw)break;return e!==Mr&&(Mr.slots[this.id]=r),!0}return Mr&&(Mr.slots[this.id]=bw),!1},t.prototype.getValue=function(){if(this.hasValue())return Mr.slots[this.id]},t.prototype.withValue=function(e,r,n,i){var o,a=(o={__proto__:null},o[this.id]=e,o),c=Mr;Mr={parent:c,slots:a};try{return r.apply(i,n)}finally{Mr=c}},t.bind=function(e){var r=Mr;return function(){var n=Mr;try{return Mr=r,e.apply(this,arguments)}finally{Mr=n}}},t.noContext=function(e,r,n){if(Mr){var i=Mr;try{return Mr=null,e.apply(n,r)}finally{Mr=i}}else return e.apply(n,r)},t}()};function xw(t){try{return t()}catch{}}var cv="@wry/context:Slot",pN=xw(function(){return globalThis})||xw(function(){return global})||Object.create(null),ww=pN,db=ww[cv]||Array[cv]||function(t){try{Object.defineProperty(ww,cv,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}}(fN());db.bind;db.noContext;const ih=new db,{hasOwnProperty:hN}=Object.prototype,ub=Array.from||function(t){const e=[];return t.forEach(r=>e.push(r)),e};function dp(t){const{unsubscribe:e}=t;typeof e=="function"&&(t.unsubscribe=void 0,e())}const xd=[],mN=100;function Al(t,e){if(!t)throw new Error(e||"assertion failure")}function vN(t,e){const r=t.length;return r>0&&r===e.length&&t[r-1]===e[r-1]}function F3(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}function gN(t){return t.slice(0)}class oh{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++oh.count}peek(){if(this.value.length===1&&!ga(this))return Ew(this),this.value[0]}recompute(e){return Al(!this.recomputing,"already recomputing"),Ew(this),ga(this)?_N(this,e):F3(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,N3(this),dp(this))}dispose(){this.setDirty(),V3(this),fb(this,(e,r)=>{e.setDirty(),j3(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=xd.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(ub(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),xd.push(this.deps),this.deps=null)}}oh.count=0;function Ew(t){const e=ih.getValue();if(e)return t.parents.add(e),e.childValues.has(t)||e.childValues.set(t,[]),ga(t)?q3(e,t):B3(e,t),e}function _N(t,e){return V3(t),ih.withValue(t,yN,[t,e]),xN(t,e)&&bN(t),F3(t.value)}function yN(t,e){t.recomputing=!0,t.value.length=0;try{t.value[0]=t.fn.apply(null,e)}catch(r){t.value[1]=r}t.recomputing=!1}function ga(t){return t.dirty||!!(t.dirtyChildren&&t.dirtyChildren.size)}function bN(t){t.dirty=!1,!ga(t)&&z3(t)}function N3(t){fb(t,q3)}function z3(t){fb(t,B3)}function fb(t,e){const r=t.parents.size;if(r){const n=ub(t.parents);for(let i=0;i0&&t.childValues.forEach((e,r)=>{j3(t,r)}),t.forgetDeps(),Al(t.dirtyChildren===null)}function j3(t,e){e.parents.delete(t),t.childValues.delete(e),U3(t,e)}function xN(t,e){if(typeof t.subscribe=="function")try{dp(t),t.unsubscribe=t.subscribe.apply(null,e)}catch{return t.setDirty(),!1}return!0}const wN={setDirty:!0,dispose:!0,forget:!0};function H3(t){const e=new Map,r=t&&t.subscribe;function n(i){const o=ih.getValue();if(o){let a=e.get(i);a||e.set(i,a=new Set),o.dependOn(a),typeof r=="function"&&(dp(a),a.unsubscribe=r(i))}}return n.dirty=function(o,a){const c=e.get(o);if(c){const d=a&&hN.call(wN,a)?a:"setDirty";ub(c).forEach(u=>u[d]()),e.delete(o),dp(c)}},n}let Tw;function EN(...t){return(Tw||(Tw=new Ta(typeof WeakMap=="function"))).lookupArray(t)}const dv=new Set;function up(t,{max:e=Math.pow(2,16),makeCacheKey:r=EN,keyArgs:n,subscribe:i}=Object.create(null)){const o=new dN(e,f=>f.dispose()),a=function(){const f=r.apply(null,n?n.apply(null,arguments):arguments);if(f===void 0)return t.apply(null,arguments);let _=o.get(f);_||(o.set(f,_=new oh(t)),_.subscribe=i,_.forget=()=>o.delete(f));const y=_.recompute(Array.prototype.slice.call(arguments));return o.set(f,_),dv.add(o),ih.hasValue()||(dv.forEach(b=>b.clean()),dv.clear()),y};Object.defineProperty(a,"size",{get(){return o.map.size},configurable:!1,enumerable:!1}),Object.freeze(a.options={max:e,makeCacheKey:r,keyArgs:n,subscribe:i});function c(f){const _=o.get(f);_&&_.setDirty()}a.dirtyKey=c,a.dirty=function(){c(r.apply(null,arguments))};function d(f){const _=o.get(f);if(_)return _.peek()}a.peekKey=d,a.peek=function(){return d(r.apply(null,arguments))};function u(f){return o.delete(f)}return a.forgetKey=u,a.forget=function(){return u(r.apply(null,arguments))},a.makeCacheKey=r,a.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(a)}var TN=function(){function t(){this.assumeImmutableResults=!1,this.getFragmentDoc=up(KD)}return t.prototype.batch=function(e){var r=this,n=typeof e.optimistic=="string"?e.optimistic:e.optimistic===!1?null:void 0,i;return this.performTransaction(function(){return i=e.update(r)},n),i},t.prototype.recordOptimisticTransaction=function(e,r){this.performTransaction(e,r)},t.prototype.transformDocument=function(e){return e},t.prototype.transformForLink=function(e){return e},t.prototype.identify=function(e){},t.prototype.gc=function(){return[]},t.prototype.modify=function(e){return!1},t.prototype.readQuery=function(e,r){return r===void 0&&(r=!!e.optimistic),this.read(re(re({},e),{rootId:e.id||"ROOT_QUERY",optimistic:r}))},t.prototype.readFragment=function(e,r){return r===void 0&&(r=!!e.optimistic),this.read(re(re({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:r}))},t.prototype.writeQuery=function(e){var r=e.id,n=e.data,i=pa(e,["id","data"]);return this.write(Object.assign(i,{dataId:r||"ROOT_QUERY",result:n}))},t.prototype.writeFragment=function(e){var r=e.id,n=e.data,i=e.fragment,o=e.fragmentName,a=pa(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:r,result:n}))},t.prototype.updateQuery=function(e,r){return this.batch({update:function(n){var i=n.readQuery(e),o=r(i);return o==null?i:(n.writeQuery(re(re({},e),{data:o})),o)}})},t.prototype.updateFragment=function(e,r){return this.batch({update:function(n){var i=n.readFragment(e),o=r(i);return o==null?i:(n.writeFragment(re(re({},e),{data:o})),o)}})},t}(),G3=function(t){Wi(e,t);function e(r,n,i,o){var a,c=t.call(this,r)||this;if(c.message=r,c.path=n,c.query=i,c.variables=o,Array.isArray(c.path)){c.missing=c.message;for(var d=c.path.length-1;d>=0;--d)c.missing=(a={},a[c.path[d]]=c.missing,a)}else c.missing=c.path;return c.__proto__=e.prototype,c}return e}(Error),Ar=Object.prototype.hasOwnProperty;function Oc(t){return t==null}function W3(t,e){var r=t.__typename,n=t.id,i=t._id;if(typeof r=="string"&&(e&&(e.keyObject=Oc(n)?Oc(i)?void 0:{_id:i}:{id:n}),Oc(n)&&!Oc(i)&&(n=i),!Oc(n)))return"".concat(r,":").concat(typeof n=="number"||typeof n=="string"?n:JSON.stringify(n))}var Q3={dataIdFromObject:W3,addTypename:!0,resultCaching:!0,canonizeResults:!1};function kN(t){return Cl(Q3,t)}function K3(t){var e=t.canonizeResults;return e===void 0?Q3.canonizeResults:e}function CN(t,e){return Nt(e)?t.get(e.__ref,"__typename"):e&&e.__typename}var Y3=/^[_a-z][_0-9a-z]*/i;function _a(t){var e=t.match(Y3);return e?e[0]:t}function Eg(t,e,r){return er(e)?or(e)?e.every(function(n){return Eg(t,n,r)}):t.selections.every(function(n){if(ma(n)&&zd(n,r)){var i=ha(n);return Ar.call(e,i)&&(!n.selectionSet||Eg(n.selectionSet,e[i],r))}return!0}):!1}function al(t){return er(t)&&!Nt(t)&&!or(t)}function AN(){return new va}function Z3(t,e){var r=eh(nh(t));return{fragmentMap:r,lookupFragment:function(n){var i=r[n];return!i&&e&&(i=e.lookup(n)),i||null}}}var Hf=Object.create(null),uv=function(){return Hf},kw=Object.create(null),wd=function(){function t(e,r){var n=this;this.policies=e,this.group=r,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(i,o){return gg(Nt(i)?n.get(i.__ref,o):i&&i[o])},this.canRead=function(i){return Nt(i)?n.has(i.__ref):typeof i=="object"},this.toReference=function(i,o){if(typeof i=="string")return pl(i);if(Nt(i))return i;var a=n.policies.identify(i)[0];if(a){var c=pl(a);return o&&n.merge(a,i),c}}}return t.prototype.toObject=function(){return re({},this.data)},t.prototype.has=function(e){return this.lookup(e,!0)!==void 0},t.prototype.get=function(e,r){if(this.group.depend(e,r),Ar.call(this.data,e)){var n=this.data[e];if(n&&Ar.call(n,r))return n[r]}if(r==="__typename"&&Ar.call(this.policies.rootTypenamesById,e))return this.policies.rootTypenamesById[e];if(this instanceof Qo)return this.parent.get(e,r)},t.prototype.lookup=function(e,r){if(r&&this.group.depend(e,"__exists"),Ar.call(this.data,e))return this.data[e];if(this instanceof Qo)return this.parent.lookup(e,r);if(this.policies.rootTypenamesById[e])return Object.create(null)},t.prototype.merge=function(e,r){var n=this,i;Nt(e)&&(e=e.__ref),Nt(r)&&(r=r.__ref);var o=typeof e=="string"?this.lookup(i=e):e,a=typeof r=="string"?this.lookup(i=r):r;if(a){nt(typeof i=="string",1);var c=new va(IN).merge(o,a);if(this.data[i]=c,c!==o&&(delete this.refs[i],this.group.caching)){var d=Object.create(null);o||(d.__exists=1),Object.keys(a).forEach(function(u){if(!o||o[u]!==c[u]){d[u]=1;var f=_a(u);f!==u&&!n.policies.hasKeyArgs(c.__typename,f)&&(d[f]=1),c[u]===void 0&&!(n instanceof Qo)&&delete c[u]}}),d.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[i]===c.__typename&&delete d.__typename,Object.keys(d).forEach(function(u){return n.group.dirty(i,u)})}}},t.prototype.modify=function(e,r){var n=this,i=this.lookup(e);if(i){var o=Object.create(null),a=!1,c=!0,d={DELETE:Hf,INVALIDATE:kw,isReference:Nt,toReference:this.toReference,canRead:this.canRead,readField:function(u,f){return n.policies.readField(typeof u=="string"?{fieldName:u,from:f||pl(e)}:u,{store:n})}};if(Object.keys(i).forEach(function(u){var f=_a(u),_=i[u];if(_!==void 0){var y=typeof r=="function"?r:r[u]||r[f];if(y){var b=y===uv?Hf:y(gg(_),re(re({},d),{fieldName:f,storeFieldName:u,storage:n.getStorage(e,u)}));b===kw?n.group.dirty(e,u):(b===Hf&&(b=void 0),b!==_&&(o[u]=b,a=!0,_=b))}_!==void 0&&(c=!1)}}),a)return this.merge(e,o),c&&(this instanceof Qo?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},t.prototype.delete=function(e,r,n){var i,o=this.lookup(e);if(o){var a=this.getFieldValue(o,"__typename"),c=r&&n?this.policies.getStoreFieldName({typename:a,fieldName:r,args:n}):r;return this.modify(e,c?(i={},i[c]=uv,i):uv)}return!1},t.prototype.evict=function(e,r){var n=!1;return e.id&&(Ar.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof Qo&&this!==r&&(n=this.parent.evict(e,r)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},t.prototype.clear=function(){this.replace(null)},t.prototype.extract=function(){var e=this,r=this.toObject(),n=[];return this.getRootIdSet().forEach(function(i){Ar.call(e.policies.rootTypenamesById,i)||n.push(i)}),n.length&&(r.__META={extraRootIds:n.sort()}),r},t.prototype.replace=function(e){var r=this;if(Object.keys(this.data).forEach(function(o){e&&Ar.call(e,o)||r.delete(o)}),e){var n=e.__META,i=pa(e,["__META"]);Object.keys(i).forEach(function(o){r.merge(o,i[o])}),n&&n.extraRootIds.forEach(this.retain,this)}},t.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},t.prototype.release=function(e){if(this.rootIds[e]>0){var r=--this.rootIds[e];return r||delete this.rootIds[e],r}return 0},t.prototype.getRootIdSet=function(e){return e===void 0&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof Qo?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},t.prototype.gc=function(){var e=this,r=this.getRootIdSet(),n=this.toObject();r.forEach(function(a){Ar.call(n,a)&&(Object.keys(e.findChildRefIds(a)).forEach(r.add,r),delete n[a])});var i=Object.keys(n);if(i.length){for(var o=this;o instanceof Qo;)o=o.parent;i.forEach(function(a){return o.delete(a)})}return i},t.prototype.findChildRefIds=function(e){if(!Ar.call(this.refs,e)){var r=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return r;var i=new Set([n]);i.forEach(function(o){Nt(o)&&(r[o.__ref]=!0),er(o)&&Object.keys(o).forEach(function(a){var c=o[a];er(c)&&i.add(c)})})}return this.refs[e]},t.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},t}(),X3=function(){function t(e,r){r===void 0&&(r=null),this.caching=e,this.parent=r,this.d=null,this.resetCaching()}return t.prototype.resetCaching=function(){this.d=this.caching?H3():null,this.keyMaker=new Ta(wo)},t.prototype.depend=function(e,r){if(this.d){this.d(fv(e,r));var n=_a(r);n!==r&&this.d(fv(e,n)),this.parent&&this.parent.depend(e,r)}},t.prototype.dirty=function(e,r){this.d&&this.d.dirty(fv(e,r),r==="__exists"?"forget":"setDirty")},t}();function fv(t,e){return e+"#"+t}function Cw(t,e){Kc(t)&&t.group.depend(e,"__exists")}(function(t){var e=function(r){Wi(n,r);function n(i){var o=i.policies,a=i.resultCaching,c=a===void 0?!0:a,d=i.seed,u=r.call(this,o,new X3(c))||this;return u.stump=new SN(u),u.storageTrie=new Ta(wo),d&&u.replace(d),u}return n.prototype.addLayer=function(i,o){return this.stump.addLayer(i,o)},n.prototype.removeLayer=function(){return this},n.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},n}(t);t.Root=e})(wd||(wd={}));var Qo=function(t){Wi(e,t);function e(r,n,i,o){var a=t.call(this,n.policies,o)||this;return a.id=r,a.parent=n,a.replay=i,a.group=o,i(a),a}return e.prototype.addLayer=function(r,n){return new e(r,this,n,this.group)},e.prototype.removeLayer=function(r){var n=this,i=this.parent.removeLayer(r);return r===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(o){var a=n.data[o],c=i.lookup(o);c?a?a!==c&&Object.keys(a).forEach(function(d){rr(a[d],c[d])||n.group.dirty(o,d)}):(n.group.dirty(o,"__exists"),Object.keys(c).forEach(function(d){n.group.dirty(o,d)})):n.delete(o)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},e.prototype.toObject=function(){return re(re({},this.parent.toObject()),this.data)},e.prototype.findChildRefIds=function(r){var n=this.parent.findChildRefIds(r);return Ar.call(this.data,r)?re(re({},n),t.prototype.findChildRefIds.call(this,r)):n},e.prototype.getStorage=function(){for(var r=this.parent;r.parent;)r=r.parent;return r.getStorage.apply(r,arguments)},e}(wd),SN=function(t){Wi(e,t);function e(r){return t.call(this,"EntityStore.Stump",r,function(){},new X3(r.group.caching,r.group))||this}return e.prototype.removeLayer=function(){return this},e.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},e}(Qo);function IN(t,e,r){var n=t[r],i=e[r];return rr(n,i)?n:i}function Kc(t){return!!(t instanceof wd&&t.group.caching)}function $N(t){return er(t)?or(t)?t.slice(0):re({__proto__:Object.getPrototypeOf(t)},t):t}var Tg=function(){function t(){this.known=new(v3?WeakSet:Set),this.pool=new Ta(wo),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return t.prototype.isKnown=function(e){return er(e)&&this.known.has(e)},t.prototype.pass=function(e){if(er(e)){var r=$N(e);return this.passes.set(r,e),r}return e},t.prototype.admit=function(e){var r=this;if(er(e)){var n=this.passes.get(e);if(n)return n;var i=Object.getPrototypeOf(e);switch(i){case Array.prototype:{if(this.known.has(e))return e;var o=e.map(this.admit,this),a=this.pool.lookupArray(o);return a.array||(this.known.add(a.array=o),globalThis.__DEV__!==!1&&Object.freeze(o)),a.array}case null:case Object.prototype:{if(this.known.has(e))return e;var c=Object.getPrototypeOf(e),d=[c],u=this.sortedKeys(e);d.push(u.json);var f=d.length;u.sorted.forEach(function(b){d.push(r.admit(e[b]))});var a=this.pool.lookupArray(d);if(!a.object){var _=a.object=Object.create(c);this.known.add(_),u.sorted.forEach(function(b,p){_[b]=d[f+p]}),globalThis.__DEV__!==!1&&Object.freeze(_)}return a.object}}}return e},t.prototype.sortedKeys=function(e){var r=Object.keys(e),n=this.pool.lookupArray(r);if(!n.keys){r.sort();var i=JSON.stringify(r);(n.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,n.keys={sorted:r,json:i})}return n.keys},t}(),as=Object.assign(function(t){if(er(t)){kg===void 0&&Aw();var e=kg.admit(t),r=Cg.get(e);return r===void 0&&Cg.set(e,r=JSON.stringify(e)),r}return JSON.stringify(t)},{reset:Aw}),kg,Cg;function Aw(){kg=new Tg,Cg=new(wo?WeakMap:Map)}function Sw(t){return[t.selectionSet,t.objectOrReference,t.context,t.context.canonizeResults]}var ON=function(){function t(e){var r=this;this.knownResults=new(wo?WeakMap:Map),this.config=Cl(e,{addTypename:e.addTypename!==!1,canonizeResults:K3(e)}),this.canon=e.canon||new Tg,this.executeSelectionSet=up(function(n){var i,o=n.context.canonizeResults,a=Sw(n);a[3]=!o;var c=(i=r.executeSelectionSet).peek.apply(i,a);return c?o?re(re({},c),{result:r.canon.admit(c.result)}):c:(Cw(n.context.store,n.enclosingRef.__ref),r.execSelectionSetImpl(n))},{max:this.config.resultCacheMaxSize,keyArgs:Sw,makeCacheKey:function(n,i,o,a){if(Kc(o.store))return o.store.makeCacheKey(n,Nt(i)?i.__ref:i,o.varString,a)}}),this.executeSubSelectedArray=up(function(n){return Cw(n.context.store,n.enclosingRef.__ref),r.execSubSelectedArrayImpl(n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(n){var i=n.field,o=n.array,a=n.context;if(Kc(a.store))return a.store.makeCacheKey(i,o,a.varString)}})}return t.prototype.resetCanon=function(){this.canon=new Tg},t.prototype.diffQueryAgainstStore=function(e){var r=e.store,n=e.query,i=e.rootId,o=i===void 0?"ROOT_QUERY":i,a=e.variables,c=e.returnPartialData,d=c===void 0?!0:c,u=e.canonizeResults,f=u===void 0?this.config.canonizeResults:u,_=this.config.cache.policies;a=re(re({},rb(_3(n))),a);var y=pl(o),b=this.executeSelectionSet({selectionSet:Ud(n).selectionSet,objectOrReference:y,enclosingRef:y,context:re({store:r,query:n,policies:_,variables:a,varString:as(a),canonizeResults:f},Z3(n,this.config.fragments))}),p;if(b.missing&&(p=[new G3(PN(b.missing),b.missing,n,a)],!d))throw p[0];return{result:b.result,complete:!p,missing:p}},t.prototype.isFresh=function(e,r,n,i){if(Kc(i.store)&&this.knownResults.get(e)===n){var o=this.executeSelectionSet.peek(n,r,i,this.canon.isKnown(e));if(o&&e===o.result)return!0}return!1},t.prototype.execSelectionSetImpl=function(e){var r=this,n=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,a=e.context;if(Nt(i)&&!a.policies.rootTypenamesById[i.__ref]&&!a.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var c=a.variables,d=a.policies,u=a.store,f=u.getFieldValue(i,"__typename"),_=[],y,b=new va;this.config.addTypename&&typeof f=="string"&&!d.rootIdsByTypename[f]&&_.push({__typename:f});function p(E,T){var C;return E.missing&&(y=b.merge(y,(C={},C[T]=E.missing,C))),E.result}var m=new Set(n.selections);m.forEach(function(E){var T,C;if(zd(E,c))if(ma(E)){var A=d.readField({fieldName:E.name.value,field:E,variables:a.variables,from:i},a),L=ha(E);A===void 0?nb.added(E)||(y=b.merge(y,(T={},T[L]="Can't find field '".concat(E.name.value,"' on ").concat(Nt(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),T))):or(A)?A=p(r.executeSubSelectedArray({field:E,array:A,enclosingRef:o,context:a}),L):E.selectionSet?A!=null&&(A=p(r.executeSelectionSet({selectionSet:E.selectionSet,objectOrReference:A,enclosingRef:Nt(A)?A:o,context:a}),L)):a.canonizeResults&&(A=r.canon.pass(A)),A!==void 0&&_.push((C={},C[L]=A,C))}else{var R=th(E,a.lookupFragment);if(!R&&E.kind===je.FRAGMENT_SPREAD)throw on(7,E.name.value);R&&d.fragmentMatches(R,f)&&R.selectionSet.selections.forEach(m.add,m)}});var g=ib(_),v={result:g,missing:y},x=a.canonizeResults?this.canon.admit(v):gg(v);return x.result&&this.knownResults.set(x.result,n),x},t.prototype.execSubSelectedArrayImpl=function(e){var r=this,n=e.field,i=e.array,o=e.enclosingRef,a=e.context,c,d=new va;function u(f,_){var y;return f.missing&&(c=d.merge(c,(y={},y[_]=f.missing,y))),f.result}return n.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(f,_){return f===null?null:or(f)?u(r.executeSubSelectedArray({field:n,array:f,enclosingRef:o,context:a}),_):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:f,enclosingRef:Nt(f)?f:o,context:a}),_):(globalThis.__DEV__!==!1&&RN(a.store,n,f),f)}),{result:a.canonizeResults?this.canon.admit(i):i,missing:c}},t}();function PN(t){try{JSON.stringify(t,function(e,r){if(typeof r=="string")throw r;return r})}catch(e){return e}}function RN(t,e,r){if(!e.selectionSet){var n=new Set([r]);n.forEach(function(i){er(i)&&(nt(!Nt(i),8,CN(t,i),e.name.value),Object.values(i).forEach(n.add,n))})}}let Dr=null;const Iw={};let LN=1;const MN=()=>class{constructor(){this.id=["slot",LN++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=Dr;e;e=e.parent)if(this.id in e.slots){const r=e.slots[this.id];if(r===Iw)break;return e!==Dr&&(Dr.slots[this.id]=r),!0}return Dr&&(Dr.slots[this.id]=Iw),!1}getValue(){if(this.hasValue())return Dr.slots[this.id]}withValue(e,r,n,i){const o={__proto__:null,[this.id]:e},a=Dr;Dr={parent:a,slots:o};try{return r.apply(i,n)}finally{Dr=a}}static bind(e){const r=Dr;return function(){const n=Dr;try{return Dr=r,e.apply(this,arguments)}finally{Dr=n}}}static noContext(e,r,n){if(Dr){const i=Dr;try{return Dr=null,e.apply(n,r)}finally{Dr=i}}else return e.apply(n,r)}};function $w(t){try{return t()}catch{}}const pv="@wry/context:Slot",DN=$w(()=>globalThis)||$w(()=>global)||Object.create(null),Ow=DN,FN=Ow[pv]||Array[pv]||function(t){try{Object.defineProperty(Ow,pv,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}}(MN());var pb=new FN,Pw=new WeakMap;function Yc(t){var e=Pw.get(t);return e||Pw.set(t,e={vars:new Set,dep:H3()}),e}function Rw(t){Yc(t).vars.forEach(function(e){return e.forgetCache(t)})}function NN(t){Yc(t).vars.forEach(function(e){return e.attachCache(t)})}function zN(t){var e=new Set,r=new Set,n=function(o){if(arguments.length>0){if(t!==o){t=o,e.forEach(function(d){Yc(d).dep.dirty(n),qN(d)});var a=Array.from(r);r.clear(),a.forEach(function(d){return d(t)})}}else{var c=pb.getValue();c&&(i(c),Yc(c).dep(n))}return t};n.onNextChange=function(o){return r.add(o),function(){r.delete(o)}};var i=n.attachCache=function(o){return e.add(o),Yc(o).vars.add(n),n};return n.forgetCache=function(o){return e.delete(o)},n}function qN(t){t.broadcastWatches&&t.broadcastWatches()}var Lw=Object.create(null);function hb(t){var e=JSON.stringify(t);return Lw[e]||(Lw[e]=Object.create(null))}function Mw(t){var e=hb(t);return e.keyFieldsFn||(e.keyFieldsFn=function(r,n){var i=function(a,c){return n.readField(c,a)},o=n.keyObject=mb(t,function(a){var c=ml(n.storeObject,a,i);return c===void 0&&r!==n.storeObject&&Ar.call(r,a[0])&&(c=ml(r,a,ek)),nt(c!==void 0,2,a.join("."),r),c});return"".concat(n.typename,":").concat(JSON.stringify(o))})}function Dw(t){var e=hb(t);return e.keyArgsFn||(e.keyArgsFn=function(r,n){var i=n.field,o=n.variables,a=n.fieldName,c=mb(t,function(u){var f=u[0],_=f.charAt(0);if(_==="@"){if(i&&qi(i.directives)){var y=f.slice(1),b=i.directives.find(function(v){return v.name.value===y}),p=b&&rh(b,o);return p&&ml(p,u.slice(1))}return}if(_==="$"){var m=f.slice(1);if(o&&Ar.call(o,m)){var g=u.slice(0);return g[0]=m,ml(o,g)}return}if(r)return ml(r,u)}),d=JSON.stringify(c);return(r||d!=="{}")&&(a+=":"+d),a})}function mb(t,e){var r=new va;return J3(t).reduce(function(n,i){var o,a=e(i);if(a!==void 0){for(var c=i.length-1;c>=0;--c)a=(o={},o[i[c]]=a,o);n=r.merge(n,a)}return n},Object.create(null))}function J3(t){var e=hb(t);if(!e.paths){var r=e.paths=[],n=[];t.forEach(function(i,o){or(i)?(J3(i).forEach(function(a){return r.push(n.concat(a))}),n.length=0):(n.push(i),or(t[o+1])||(r.push(n.slice(0)),n.length=0))})}return e.paths}function ek(t,e){return t[e]}function ml(t,e,r){return r=r||ek,tk(e.reduce(function n(i,o){return or(i)?i.map(function(a){return n(a,o)}):i&&r(i,o)},t))}function tk(t){return er(t)?or(t)?t.map(tk):mb(Object.keys(t).sort(),function(e){return ml(t,e)}):t}tb.setStringify(as);function Ag(t){return t.args!==void 0?t.args:t.field?rh(t.field,t.variables):null}var BN=function(){},Fw=function(t,e){return e.fieldName},Nw=function(t,e,r){var n=r.mergeObjects;return n(t,e)},zw=function(t,e){return e},UN=function(){function t(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=re({dataIdFromObject:W3},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return t.prototype.identify=function(e,r){var n,i=this,o=r&&(r.typename||((n=r.storeObject)===null||n===void 0?void 0:n.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a=r&&r.storeObject||e,c=re(re({},r),{typename:o,storeObject:a,readField:r&&r.readField||function(){var y=vb(arguments,a);return i.readField(y,{store:i.cache.data,variables:y.variables})}}),d,u=o&&this.getTypePolicy(o),f=u&&u.keyFn||this.config.dataIdFromObject;f;){var _=f(re(re({},e),a),c);if(or(_))f=Mw(_);else{d=_;break}}return d=d?String(d):void 0,c.keyObject?[d,c.keyObject]:[d]},t.prototype.addTypePolicies=function(e){var r=this;Object.keys(e).forEach(function(n){var i=e[n],o=i.queryType,a=i.mutationType,c=i.subscriptionType,d=pa(i,["queryType","mutationType","subscriptionType"]);o&&r.setRootTypename("Query",n),a&&r.setRootTypename("Mutation",n),c&&r.setRootTypename("Subscription",n),Ar.call(r.toBeAdded,n)?r.toBeAdded[n].push(d):r.toBeAdded[n]=[d]})},t.prototype.updateTypePolicy=function(e,r){var n=this,i=this.getTypePolicy(e),o=r.keyFields,a=r.fields;function c(d,u){d.merge=typeof u=="function"?u:u===!0?Nw:u===!1?zw:d.merge}c(i,r.merge),i.keyFn=o===!1?BN:or(o)?Mw(o):typeof o=="function"?o:i.keyFn,a&&Object.keys(a).forEach(function(d){var u=n.getFieldPolicy(e,d,!0),f=a[d];if(typeof f=="function")u.read=f;else{var _=f.keyArgs,y=f.read,b=f.merge;u.keyFn=_===!1?Fw:or(_)?Dw(_):typeof _=="function"?_:u.keyFn,typeof y=="function"&&(u.read=y),c(u,b)}u.read&&u.merge&&(u.keyFn=u.keyFn||Fw)})},t.prototype.setRootTypename=function(e,r){r===void 0&&(r=e);var n="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[n];r!==i&&(nt(!i||i===e,3,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[r]=n,this.rootTypenamesById[n]=r)},t.prototype.addPossibleTypes=function(e){var r=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){r.getSupertypeSet(n,!0),e[n].forEach(function(i){r.getSupertypeSet(i,!0).add(n);var o=i.match(Y3);(!o||o[0]!==i)&&r.fuzzySubtypes.set(i,new RegExp(i))})})},t.prototype.getTypePolicy=function(e){var r=this;if(!Ar.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(a,c){if(a.test(e)){var d=r.supertypeMap.get(c);d&&d.forEach(function(u){return i.add(u)})}})),i&&i.size&&i.forEach(function(a){var c=r.getTypePolicy(a),d=c.fields,u=pa(c,["fields"]);Object.assign(n,u),Object.assign(n.fields,d)})}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach(function(a){r.updateTypePolicy(e,a)}),this.typePolicies[e]},t.prototype.getFieldPolicy=function(e,r,n){if(e){var i=this.getTypePolicy(e).fields;return i[r]||n&&(i[r]=Object.create(null))}},t.prototype.getSupertypeSet=function(e,r){var n=this.supertypeMap.get(e);return!n&&r&&this.supertypeMap.set(e,n=new Set),n},t.prototype.fragmentMatches=function(e,r,n,i){var o=this;if(!e.typeCondition)return!0;if(!r)return!1;var a=e.typeCondition.name.value;if(r===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var c=this.getSupertypeSet(r,!0),d=[c],u=function(p){var m=o.getSupertypeSet(p,!1);m&&m.size&&d.indexOf(m)<0&&d.push(m)},f=!!(n&&this.fuzzySubtypes.size),_=!1,y=0;y1?i:e}:(a=re({},n),Ar.call(a,"from")||(a.from=e)),globalThis.__DEV__!==!1&&a.from===void 0&&globalThis.__DEV__!==!1&&nt.warn(5,r3(Array.from(t))),a.variables===void 0&&(a.variables=r),a}function rk(t){return function(r,n){if(or(r)||or(n))throw on(6);if(er(r)&&er(n)){var i=t.getFieldValue(r,"__typename"),o=t.getFieldValue(n,"__typename"),a=i&&o&&i!==o;if(a)return n;if(Nt(r)&&al(n))return t.merge(r.__ref,n),r;if(al(r)&&Nt(n))return t.merge(r,n.__ref),n;if(al(r)&&al(n))return re(re({},r),n)}return n}}function hv(t,e,r){var n="".concat(e).concat(r),i=t.flavors.get(n);return i||t.flavors.set(n,i=t.clientOnly===e&&t.deferred===r?t:re(re({},t),{clientOnly:e,deferred:r})),i}var VN=function(){function t(e,r,n){this.cache=e,this.reader=r,this.fragments=n}return t.prototype.writeToStore=function(e,r){var n=this,i=r.query,o=r.result,a=r.dataId,c=r.variables,d=r.overwrite,u=Bd(i),f=AN();c=re(re({},rb(u)),c);var _=re(re({store:e,written:Object.create(null),merge:function(b,p){return f.merge(b,p)},variables:c,varString:as(c)},Z3(i,this.fragments)),{overwrite:!!d,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),y=this.processSelectionSet({result:o||Object.create(null),dataId:a,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:_});if(!Nt(y))throw on(9,o);return _.incomingById.forEach(function(b,p){var m=b.storeObject,g=b.mergeTree,v=b.fieldNodeSet,x=pl(p);if(g&&g.map.size){var E=n.applyMerges(g,x,m,_);if(Nt(E))return;m=E}if(globalThis.__DEV__!==!1&&!_.overwrite){var T=Object.create(null);v.forEach(function(L){L.selectionSet&&(T[L.name.value]=!0)});var C=function(L){return T[_a(L)]===!0},A=function(L){var R=g&&g.map.get(L);return!!(R&&R.info&&R.info.merge)};Object.keys(m).forEach(function(L){C(L)&&!A(L)&&jN(x,m,L,_.store)})}e.merge(p,m)}),e.retain(y.__ref),y},t.prototype.processSelectionSet=function(e){var r=this,n=e.dataId,i=e.result,o=e.selectionSet,a=e.context,c=e.mergeTree,d=this.cache.policies,u=Object.create(null),f=n&&d.rootTypenamesById[n]||fg(i,o,a.fragmentMap)||n&&a.store.get(n,"__typename");typeof f=="string"&&(u.__typename=f);var _=function(){var E=vb(arguments,u,a.variables);if(Nt(E.from)){var T=a.incomingById.get(E.from.__ref);if(T){var C=d.readField(re(re({},E),{from:T.storeObject}),a);if(C!==void 0)return C}}return d.readField(E,a)},y=new Set;this.flattenFields(o,i,a,f).forEach(function(E,T){var C,A=ha(T),L=i[A];if(y.add(T),L!==void 0){var R=d.getStoreFieldName({typename:f,fieldName:T.name.value,field:T,variables:E.variables}),D=Bw(c,R),q=r.processFieldValue(L,T,T.selectionSet?hv(E,!1,!1):E,D),H=void 0;T.selectionSet&&(Nt(q)||al(q))&&(H=_("__typename",q));var U=d.getMergeFunction(f,T.name.value,H);U?D.info={field:T,typename:f,merge:U}:Uw(c,R),u=E.merge(u,(C={},C[R]=q,C))}else globalThis.__DEV__!==!1&&!E.clientOnly&&!E.deferred&&!nb.added(T)&&!d.getReadFunction(f,T.name.value)&&globalThis.__DEV__!==!1&&nt.error(10,ha(T),i)});try{var b=d.identify(i,{typename:f,selectionSet:o,fragmentMap:a.fragmentMap,storeObject:u,readField:_}),p=b[0],m=b[1];n=n||p,m&&(u=a.merge(u,m))}catch(E){if(!n)throw E}if(typeof n=="string"){var g=pl(n),v=a.written[n]||(a.written[n]=[]);if(v.indexOf(o)>=0||(v.push(o),this.reader&&this.reader.isFresh(i,g,o,a)))return g;var x=a.incomingById.get(n);return x?(x.storeObject=a.merge(x.storeObject,u),x.mergeTree=Sg(x.mergeTree,c),y.forEach(function(E){return x.fieldNodeSet.add(E)})):a.incomingById.set(n,{storeObject:u,mergeTree:fp(c)?void 0:c,fieldNodeSet:y}),g}return u},t.prototype.processFieldValue=function(e,r,n,i){var o=this;return!r.selectionSet||e===null?globalThis.__DEV__!==!1?A3(e):e:or(e)?e.map(function(a,c){var d=o.processFieldValue(a,r,n,Bw(i,c));return Uw(i,c),d}):this.processSelectionSet({result:e,selectionSet:r.selectionSet,context:n,mergeTree:i})},t.prototype.flattenFields=function(e,r,n,i){i===void 0&&(i=fg(r,e,n.fragmentMap));var o=new Map,a=this.cache.policies,c=new Ta(!1);return function d(u,f){var _=c.lookup(u,f.clientOnly,f.deferred);_.visited||(_.visited=!0,u.selections.forEach(function(y){if(zd(y,n.variables)){var b=f.clientOnly,p=f.deferred;if(!(b&&p)&&qi(y.directives)&&y.directives.forEach(function(v){var x=v.name.value;if(x==="client"&&(b=!0),x==="defer"){var E=rh(v,n.variables);(!E||E.if!==!1)&&(p=!0)}}),ma(y)){var m=o.get(y);m&&(b=b&&m.clientOnly,p=p&&m.deferred),o.set(y,hv(n,b,p))}else{var g=th(y,n.lookupFragment);if(!g&&y.kind===je.FRAGMENT_SPREAD)throw on(11,y.name.value);g&&a.fragmentMatches(g,i,r,n.variables)&&d(g.selectionSet,hv(n,b,p))}}}))}(e,n),o},t.prototype.applyMerges=function(e,r,n,i,o){var a,c=this;if(e.map.size&&!Nt(n)){var d=!or(n)&&(Nt(r)||al(r))?r:void 0,u=n;d&&!o&&(o=[Nt(d)?d.__ref:d]);var f,_=function(y,b){return or(y)?typeof b=="number"?y[b]:void 0:i.store.getFieldValue(y,String(b))};e.map.forEach(function(y,b){var p=_(d,b),m=_(u,b);if(m!==void 0){o&&o.push(b);var g=c.applyMerges(y,p,m,i,o);g!==m&&(f=f||new Map,f.set(b,g)),o&&nt(o.pop()===b)}}),f&&(n=or(u)?u.slice(0):re({},u),f.forEach(function(y,b){n[b]=y}))}return e.info?this.cache.policies.runMergeFunction(r,n,e.info,i,o&&(a=i.store).getStorage.apply(a,o)):n},t}(),nk=[];function Bw(t,e){var r=t.map;return r.has(e)||r.set(e,nk.pop()||{map:new Map}),r.get(e)}function Sg(t,e){if(t===e||!e||fp(e))return t;if(!t||fp(t))return e;var r=t.info&&e.info?re(re({},t.info),e.info):t.info||e.info,n=t.map.size&&e.map.size,i=n?new Map:t.map.size?t.map:e.map,o={info:r,map:i};if(n){var a=new Set(e.map.keys());t.map.forEach(function(c,d){o.map.set(d,Sg(c,e.map.get(d))),a.delete(d)}),a.forEach(function(c){o.map.set(c,Sg(e.map.get(c),t.map.get(c)))})}return o}function fp(t){return!t||!(t.info||t.map.size)}function Uw(t,e){var r=t.map,n=r.get(e);n&&fp(n)&&(nk.push(n),r.delete(e))}var Vw=new Set;function jN(t,e,r,n){var i=function(_){var y=n.getFieldValue(_,r);return typeof y=="object"&&y},o=i(t);if(o){var a=i(e);if(a&&!Nt(o)&&!rr(o,a)&&!Object.keys(o).every(function(_){return n.getFieldValue(a,_)!==void 0})){var c=n.getFieldValue(t,"__typename")||n.getFieldValue(e,"__typename"),d=_a(r),u="".concat(c,".").concat(d);if(!Vw.has(u)){Vw.add(u);var f=[];!or(o)&&!or(a)&&[o,a].forEach(function(_){var y=n.getFieldValue(_,"__typename");typeof y=="string"&&!f.includes(y)&&f.push(y)}),globalThis.__DEV__!==!1&&nt.warn(12,d,c,f.length?"either ensure all objects of type "+f.join(" and ")+" have an ID or a custom merge function, or ":"",u,o,a)}}}}var ik=function(t){Wi(e,t);function e(r){r===void 0&&(r={});var n=t.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new y3(nb),n.assumeImmutableResults=!0,n.makeVar=zN,n.txCount=0,n.config=kN(r),n.addTypename=!!n.config.addTypename,n.policies=new UN({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return e.prototype.init=function(){var r=this.data=new wd.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=r.stump,this.resetResultCache()},e.prototype.resetResultCache=function(r){var n=this,i=this.storeReader,o=this.config.fragments;this.storeWriter=new VN(this,this.storeReader=new ON({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:K3(this.config),canon:r?void 0:i&&i.canon,fragments:o}),o),this.maybeBroadcastWatch=up(function(a,c){return n.broadcastWatch(a,c)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(a){var c=a.optimistic?n.optimisticData:n.data;if(Kc(c)){var d=a.optimistic,u=a.id,f=a.variables;return c.makeCacheKey(a.query,a.callback,as({optimistic:d,id:u,variables:f}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(a){return a.resetCaching()})},e.prototype.restore=function(r){return this.init(),r&&this.data.replace(r),this},e.prototype.extract=function(r){return r===void 0&&(r=!1),(r?this.optimisticData:this.data).extract()},e.prototype.read=function(r){var n=r.returnPartialData,i=n===void 0?!1:n;try{return this.storeReader.diffQueryAgainstStore(re(re({},r),{store:r.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(o){if(o instanceof G3)return null;throw o}},e.prototype.write=function(r){try{return++this.txCount,this.storeWriter.writeToStore(this.data,r)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.modify=function(r){if(Ar.call(r,"id")&&!r.id)return!1;var n=r.optimistic?this.optimisticData:this.data;try{return++this.txCount,n.modify(r.id||"ROOT_QUERY",r.fields)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.diff=function(r){return this.storeReader.diffQueryAgainstStore(re(re({},r),{store:r.optimistic?this.optimisticData:this.data,rootId:r.id||"ROOT_QUERY",config:this.config}))},e.prototype.watch=function(r){var n=this;return this.watches.size||NN(this),this.watches.add(r),r.immediate&&this.maybeBroadcastWatch(r),function(){n.watches.delete(r)&&!n.watches.size&&Rw(n),n.maybeBroadcastWatch.forget(r)}},e.prototype.gc=function(r){as.reset();var n=this.optimisticData.gc();return r&&!this.txCount&&(r.resetResultCache?this.resetResultCache(r.resetResultIdentities):r.resetResultIdentities&&this.storeReader.resetCanon()),n},e.prototype.retain=function(r,n){return(n?this.optimisticData:this.data).retain(r)},e.prototype.release=function(r,n){return(n?this.optimisticData:this.data).release(r)},e.prototype.identify=function(r){if(Nt(r))return r.__ref;try{return this.policies.identify(r)[0]}catch(n){globalThis.__DEV__!==!1&&nt.warn(n)}},e.prototype.evict=function(r){if(!r.id){if(Ar.call(r,"id"))return!1;r=re(re({},r),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(r,this.data)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.reset=function(r){var n=this;return this.init(),as.reset(),r&&r.discardWatches?(this.watches.forEach(function(i){return n.maybeBroadcastWatch.forget(i)}),this.watches.clear(),Rw(this)):this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(r){var n=this.optimisticData.removeLayer(r);n!==this.optimisticData&&(this.optimisticData=n,this.broadcastWatches())},e.prototype.batch=function(r){var n=this,i=r.update,o=r.optimistic,a=o===void 0?!0:o,c=r.removeOptimistic,d=r.onWatchUpdated,u,f=function(y){var b=n,p=b.data,m=b.optimisticData;++n.txCount,y&&(n.data=n.optimisticData=y);try{return u=i(n)}finally{--n.txCount,n.data=p,n.optimisticData=m}},_=new Set;return d&&!this.txCount&&this.broadcastWatches(re(re({},r),{onWatchUpdated:function(y){return _.add(y),!1}})),typeof a=="string"?this.optimisticData=this.optimisticData.addLayer(a,f):a===!1?f(this.data):f(),typeof c=="string"&&(this.optimisticData=this.optimisticData.removeLayer(c)),d&&_.size?(this.broadcastWatches(re(re({},r),{onWatchUpdated:function(y,b){var p=d.call(this,y,b);return p!==!1&&_.delete(y),p}})),_.size&&_.forEach(function(y){return n.maybeBroadcastWatch.dirty(y)})):this.broadcastWatches(r),u},e.prototype.performTransaction=function(r,n){return this.batch({update:r,optimistic:n||n!==null})},e.prototype.transformDocument=function(r){return this.addTypenameToDocument(this.addFragmentsToDocument(r))},e.prototype.broadcastWatches=function(r){var n=this;this.txCount||this.watches.forEach(function(i){return n.maybeBroadcastWatch(i,r)})},e.prototype.addFragmentsToDocument=function(r){var n=this.config.fragments;return n?n.transform(r):r},e.prototype.addTypenameToDocument=function(r){return this.addTypename?this.addTypenameTransform.transformDocument(r):r},e.prototype.broadcastWatch=function(r,n){var i=r.lastDiff,o=this.diff(r);n&&(r.optimistic&&typeof n.optimistic=="string"&&(o.fromOptimisticTransaction=!0),n.onWatchUpdated&&n.onWatchUpdated.call(this,r,o,i)===!1)||(!i||!rr(i.result,o.result))&&r.callback(r.lastDiff=o,i)},e}(TN),Ft;(function(t){t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error"})(Ft||(Ft={}));function Ed(t){return t?t<7:!1}function HN(t,e,r,n){var i=e.data,o=pa(e,["data"]),a=r.data,c=pa(r,["data"]);return rr(o,c)&&Gf(Ud(t).selectionSet,i,a,{fragmentMap:eh(nh(t)),variables:n})}function Gf(t,e,r,n){if(e===r)return!0;var i=new Set;return t.selections.every(function(o){if(i.has(o)||(i.add(o),!zd(o,n.variables))||jw(o))return!0;if(ma(o)){var a=ha(o),c=e&&e[a],d=r&&r[a],u=o.selectionSet;if(!u)return rr(c,d);var f=Array.isArray(c),_=Array.isArray(d);if(f!==_)return!1;if(f&&_){var y=c.length;if(d.length!==y)return!1;for(var b=0;b0},e.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(r){return r.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},e.prototype.transformDocument=function(r){return this.queryManager.transform(r)},e}(Gt);S3(Ig);function ok(t){var e=t.options,r=e.fetchPolicy,n=e.nextFetchPolicy;return r==="cache-and-network"||r==="network-only"?t.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=n,typeof n=="function"?n.apply(this,arguments):r}}):t.reobserve()}function QN(t){globalThis.__DEV__!==!1&&nt.error(21,t.message,t.stack)}function ak(t){globalThis.__DEV__!==!1&&t&&globalThis.__DEV__!==!1&&nt.debug(22,t)}function mv(t){return t==="network-only"||t==="no-cache"||t==="standby"}var sk=function(){function t(e){var r=e.cache,n=e.client,i=e.resolvers,o=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=r,n&&(this.client=n),i&&this.addResolvers(i),o&&this.setFragmentMatcher(o)}return t.prototype.addResolvers=function(e){var r=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(n){r.resolvers=aw(r.resolvers,n)}):this.resolvers=aw(this.resolvers,e)},t.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},t.prototype.getResolvers=function(){return this.resolvers||{}},t.prototype.runResolvers=function(e){var r=e.document,n=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,c=a===void 0?!1:a;return Zo(this,void 0,void 0,function(){return Xo(this,function(d){return r?[2,this.resolveDocument(r,n.data,i,o,this.fragmentMatcher,c).then(function(u){return re(re({},n),{data:u.result})})]:[2,n]})})},t.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(e){return bd(["client"],e)&&this.resolvers?e:null},t.prototype.serverQuery=function(e){return E3(e)},t.prototype.prepareContext=function(e){var r=this.cache;return re(re({},e),{cache:r,getCacheKey:function(n){return r.identify(n)}})},t.prototype.addExportedVariables=function(e,r,n){return r===void 0&&(r={}),n===void 0&&(n={}),Zo(this,void 0,void 0,function(){return Xo(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,r)||{},this.prepareContext(n),r).then(function(o){return re(re({},r),o.exportedVariables)})]:[2,re({},r)]})})},t.prototype.shouldForceResolvers=function(e){var r=!1;return zi(e,{Directive:{enter:function(n){if(n.name.value==="client"&&n.arguments&&(r=n.arguments.some(function(i){return i.name.value==="always"&&i.value.kind==="BooleanValue"&&i.value.value===!0}),r))return eb}}}),r},t.prototype.buildRootValueFromCache=function(e,r){return this.cache.diff({query:hF(e),variables:r,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(e,r,n,i,o,a){return n===void 0&&(n={}),i===void 0&&(i={}),o===void 0&&(o=function(){return!0}),a===void 0&&(a=!1),Zo(this,void 0,void 0,function(){var c,d,u,f,_,y,b,p,m,g,v;return Xo(this,function(x){return c=Ud(e),d=nh(e),u=eh(d),f=this.collectSelectionsToResolve(c,u),_=c.operation,y=_?_.charAt(0).toUpperCase()+_.slice(1):"Query",b=this,p=b.cache,m=b.client,g={fragmentMap:u,context:re(re({},n),{cache:p,client:m}),variables:i,fragmentMatcher:o,defaultOperationType:y,exportedVariables:{},selectionsToResolve:f,onlyRunForcedResolvers:a},v=!1,[2,this.resolveSelectionSet(c.selectionSet,v,r,g).then(function(E){return{result:E,exportedVariables:g.exportedVariables}})]})})},t.prototype.resolveSelectionSet=function(e,r,n,i){return Zo(this,void 0,void 0,function(){var o,a,c,d,u,f=this;return Xo(this,function(_){return o=i.fragmentMap,a=i.context,c=i.variables,d=[n],u=function(y){return Zo(f,void 0,void 0,function(){var b,p;return Xo(this,function(m){return!r&&!i.selectionsToResolve.has(y)?[2]:zd(y,c)?ma(y)?[2,this.resolveField(y,r,n,i).then(function(g){var v;typeof g<"u"&&d.push((v={},v[ha(y)]=g,v))})]:(cF(y)?b=y:(b=o[y.name.value],nt(b,16,y.name.value)),b&&b.typeCondition&&(p=b.typeCondition.name.value,i.fragmentMatcher(n,p,a))?[2,this.resolveSelectionSet(b.selectionSet,r,n,i).then(function(g){d.push(g)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(u)).then(function(){return ib(d)})]})})},t.prototype.resolveField=function(e,r,n,i){return Zo(this,void 0,void 0,function(){var o,a,c,d,u,f,_,y,b,p=this;return Xo(this,function(m){return n?(o=i.variables,a=e.name.value,c=ha(e),d=a!==c,u=n[c]||n[a],f=Promise.resolve(u),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(_=n.__typename||i.defaultOperationType,y=this.resolvers&&this.resolvers[_],y&&(b=y[d?a:c],b&&(f=Promise.resolve(pb.withValue(this.cache,b,[n,rh(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}]))))),[2,f.then(function(g){var v,x;if(g===void 0&&(g=u),e.directives&&e.directives.forEach(function(T){T.name.value==="export"&&T.arguments&&T.arguments.forEach(function(C){C.name.value==="as"&&C.value.kind==="StringValue"&&(i.exportedVariables[C.value.value]=g)})}),!e.selectionSet||g==null)return g;var E=(x=(v=e.directives)===null||v===void 0?void 0:v.some(function(T){return T.name.value==="client"}))!==null&&x!==void 0?x:!1;if(Array.isArray(g))return p.resolveSubSelectedArray(e,r||E,g,i);if(e.selectionSet)return p.resolveSelectionSet(e.selectionSet,r||E,g,i)})]):[2,null]})})},t.prototype.resolveSubSelectedArray=function(e,r,n,i){var o=this;return Promise.all(n.map(function(a){if(a===null)return null;if(Array.isArray(a))return o.resolveSubSelectedArray(e,r,a,i);if(e.selectionSet)return o.resolveSelectionSet(e.selectionSet,r,a,i)}))},t.prototype.collectSelectionsToResolve=function(e,r){var n=function(a){return!Array.isArray(a)},i=this.selectionsToResolveCache;function o(a){if(!i.has(a)){var c=new Set;i.set(a,c),zi(a,{Directive:function(d,u,f,_,y){d.name.value==="client"&&y.forEach(function(b){n(b)&&rw(b)&&c.add(b)})},FragmentSpread:function(d,u,f,_,y){var b=r[d.name.value];nt(b,17,d.name.value);var p=o(b);p.size>0&&(y.forEach(function(m){n(m)&&rw(m)&&c.add(m)}),c.add(d),p.forEach(function(m){c.add(m)}))}})}return i.get(a)}return o(e)},t}(),sl=new(wo?WeakMap:Map);function vv(t,e){var r=t[e];typeof r=="function"&&(t[e]=function(){return sl.set(t,(sl.get(t)+1)%1e15),r.apply(this,arguments)})}function Gw(t){t.notifyTimeout&&(clearTimeout(t.notifyTimeout),t.notifyTimeout=void 0)}var gv=function(){function t(e,r){r===void 0&&(r=e.generateQueryId()),this.queryId=r,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;sl.has(n)||(sl.set(n,0),vv(n,"evict"),vv(n,"modify"),vv(n,"reset"))}return t.prototype.init=function(e){var r=e.networkStatus||Ft.loading;return this.variables&&this.networkStatus!==Ft.loading&&!rr(this.variables,e.variables)&&(r=Ft.setVariables),rr(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:r}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},t.prototype.reset=function(){Gw(this),this.dirty=!1},t.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&rr(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var r=this.observableQuery;if(r&&r.options.fetchPolicy==="no-cache")return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),n},t.prototype.updateLastDiff=function(e,r){this.lastDiff=e?{diff:e,options:r||this.getDiffOptions()}:void 0},t.prototype.getDiffOptions=function(e){var r;return e===void 0&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:(r=this.observableQuery)===null||r===void 0?void 0:r.options.canonizeResults}},t.prototype.setDiff=function(e){var r=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),!this.dirty&&!rr(n&&n.result,e&&e.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0)))},t.prototype.setObservableQuery=function(e){var r=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){var n=r.getDiff();n.fromOptimisticTransaction?e.observe():ok(e)})):delete this.oqListener)},t.prototype.notify=function(){var e=this;Gw(this),this.shouldNotify()&&this.listeners.forEach(function(r){return r(e)}),this.dirty=!1},t.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Ed(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if(e!=="cache-only"&&e!=="cache-and-network")return!1}return!0},t.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=t.prototype.cancel;var e=this.observableQuery;e&&e.stopPolling()}},t.prototype.cancel=function(){},t.prototype.updateWatch=function(e){var r=this;e===void 0&&(e=this.variables);var n=this.observableQuery;if(!(n&&n.options.fetchPolicy==="no-cache")){var i=re(re({},this.getDiffOptions(e)),{watcher:this,callback:function(o){return r.setDiff(o)}});(!this.lastWatch||!rr(i,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},t.prototype.resetLastWrite=function(){this.lastWrite=void 0},t.prototype.shouldWrite=function(e,r){var n=this.lastWrite;return!(n&&n.dmCount===sl.get(this.cache)&&rr(r,n.variables)&&rr(e.data,n.result.data))},t.prototype.markResult=function(e,r,n,i){var o=this,a=new va,c=qi(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&qi(e.incremental)){var d=I3(this.getDiff().result,e);e.data=d}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=a.merge(u.result,e.data)}this.graphQLErrors=c,n.fetchPolicy==="no-cache"?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):i!==0&&($g(e,n.errorPolicy)?this.cache.performTransaction(function(f){if(o.shouldWrite(e,n.variables))f.writeQuery({query:r,data:e.data,variables:n.variables,overwrite:i===1}),o.lastWrite={result:e,variables:n.variables,dmCount:sl.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete){e.data=o.lastDiff.diff.result;return}var _=o.getDiffOptions(n.variables),y=f.diff(_);!o.stopped&&rr(o.variables,n.variables)&&o.updateWatch(n.variables),o.updateLastDiff(y,_),y.complete&&(e.data=y.result)}):this.lastWrite=void 0)},t.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Ft.ready},t.prototype.markError=function(e){return this.networkStatus=Ft.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},t}();function $g(t,e){e===void 0&&(e="none");var r=e==="ignore"||e==="all",n=!Vf(t);return!n&&r&&t.data&&(n=!0),n}var KN=Object.prototype.hasOwnProperty,YN=function(){function t(e){var r=this,n=e.cache,i=e.link,o=e.defaultOptions,a=e.documentTransform,c=e.queryDeduplication,d=c===void 0?!1:c,u=e.onBroadcast,f=e.ssrMode,_=f===void 0?!1:f,y=e.clientAwareness,b=y===void 0?{}:y,p=e.localState,m=e.assumeImmutableResults,g=m===void 0?!!n.assumeImmutableResults:m;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(wo?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var v=new y3(function(x){return r.cache.transformDocument(x)},{cache:!1});this.cache=n,this.link=i,this.defaultOptions=o||Object.create(null),this.queryDeduplication=d,this.clientAwareness=b,this.localState=p||new sk({cache:n}),this.ssrMode=_,this.assumeImmutableResults=g,this.documentTransform=a?v.concat(a).concat(v):v,(this.onBroadcast=u)&&(this.mutationStore=Object.create(null))}return t.prototype.stop=function(){var e=this;this.queries.forEach(function(r,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(on(23))},t.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(r){return r(e)}),this.fetchCancelFns.clear()},t.prototype.mutate=function(e){var r,n,i=e.mutation,o=e.variables,a=e.optimisticResponse,c=e.updateQueries,d=e.refetchQueries,u=d===void 0?[]:d,f=e.awaitRefetchQueries,_=f===void 0?!1:f,y=e.update,b=e.onQueryUpdated,p=e.fetchPolicy,m=p===void 0?((r=this.defaultOptions.mutate)===null||r===void 0?void 0:r.fetchPolicy)||"network-only":p,g=e.errorPolicy,v=g===void 0?((n=this.defaultOptions.mutate)===null||n===void 0?void 0:n.errorPolicy)||"none":g,x=e.keepRootFields,E=e.context;return Zo(this,void 0,void 0,function(){var T,C,A,L;return Xo(this,function(R){switch(R.label){case 0:return nt(i,24),nt(m==="network-only"||m==="no-cache",25),T=this.generateMutationId(),i=this.cache.transformForLink(this.transform(i)),C=this.getDocumentInfo(i).hasClientExports,o=this.getVariables(i,o),C?[4,this.localState.addExportedVariables(i,o,E)]:[3,2];case 1:o=R.sent(),R.label=2;case 2:return A=this.mutationStore&&(this.mutationStore[T]={mutation:i,variables:o,loading:!0,error:null}),a&&this.markMutationOptimistic(a,{mutationId:T,document:i,variables:o,fetchPolicy:m,errorPolicy:v,context:E,updateQueries:c,update:y,keepRootFields:x}),this.broadcastQueries(),L=this,[2,new Promise(function(D,q){return sv(L.getObservableFromLink(i,re(re({},E),{optimisticResponse:a}),o,!1),function(H){if(Vf(H)&&v==="none")throw new co({graphQLErrors:_g(H)});A&&(A.loading=!1,A.error=null);var U=re({},H);return typeof u=="function"&&(u=u(U)),v==="ignore"&&Vf(U)&&delete U.errors,L.markMutationResult({mutationId:T,result:U,document:i,variables:o,fetchPolicy:m,errorPolicy:v,context:E,update:y,updateQueries:c,awaitRefetchQueries:_,refetchQueries:u,removeOptimistic:a?T:void 0,onQueryUpdated:b,keepRootFields:x})}).subscribe({next:function(H){L.broadcastQueries(),(!("hasNext"in H)||H.hasNext===!1)&&D(H)},error:function(H){A&&(A.loading=!1,A.error=H),a&&L.cache.removeOptimistic(T),L.broadcastQueries(),q(H instanceof co?H:new co({networkError:H}))}})})]}})})},t.prototype.markMutationResult=function(e,r){var n=this;r===void 0&&(r=this.cache);var i=e.result,o=[],a=e.fetchPolicy==="no-cache";if(!a&&$g(i,e.errorPolicy)){if(hl(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),hl(i)&&qi(i.incremental)){var c=r.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),d=void 0;c.result&&(d=I3(c.result,i)),typeof d<"u"&&(i.data=d,o.push({result:d,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach(function(_,y){var b=_.observableQuery,p=b&&b.queryName;if(!(!p||!KN.call(u,p))){var m=u[p],g=n.queries.get(y),v=g.document,x=g.variables,E=r.diff({query:v,variables:x,returnPartialData:!0,optimistic:!1}),T=E.result,C=E.complete;if(C&&T){var A=m(T,{mutationResult:i,queryName:v&&pg(v)||void 0,queryVariables:x});A&&o.push({result:A,dataId:"ROOT_QUERY",query:v,variables:x})}}})}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(_){a||o.forEach(function(m){return _.write(m)});var y=e.update,b=!IF(i)||hl(i)&&!i.hasNext;if(y){if(!a){var p=_.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});p.complete&&(i=re(re({},i),{data:p.result}),"incremental"in i&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}b&&y(_,i,{context:e.context,variables:e.variables})}!a&&!e.keepRootFields&&b&&_.modify({id:"ROOT_MUTATION",fields:function(m,g){var v=g.fieldName,x=g.DELETE;return v==="__typename"?m:x}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(_){return f.push(_)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(f).then(function(){return i})}return Promise.resolve(i)},t.prototype.markMutationOptimistic=function(e,r){var n=this,i=typeof e=="function"?e(r.variables):e;return this.cache.recordOptimisticTransaction(function(o){try{n.markMutationResult(re(re({},r),{result:{data:i}}),o)}catch(a){globalThis.__DEV__!==!1&&nt.error(a)}},r.mutationId)},t.prototype.fetchQuery=function(e,r,n){return this.fetchConcastWithInfo(e,r,n).concast.promise},t.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(r,n){e[n]={variables:r.variables,networkStatus:r.networkStatus,networkError:r.networkError,graphQLErrors:r.graphQLErrors}}),e},t.prototype.resetErrors=function(e){var r=this.queries.get(e);r&&(r.networkError=void 0,r.graphQLErrors=[])},t.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},t.prototype.getDocumentInfo=function(e){var r=this.transformCache;if(!r.has(e)){var n={hasClientExports:UD(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:bd(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:w3([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:rb(Bd(e)),asQuery:re(re({},e),{definitions:e.definitions.map(function(i){return i.kind==="OperationDefinition"&&i.operation!=="query"?re(re({},i),{operation:"query"}):i})})};r.set(e,n)}return r.get(e)},t.prototype.getVariables=function(e,r){return re(re({},this.getDocumentInfo(e).defaultVars),r)},t.prototype.watchQuery=function(e){var r=this.transform(e.query);e=re(re({},e),{variables:this.getVariables(r,e.variables)}),typeof e.notifyOnNetworkStatusChange>"u"&&(e.notifyOnNetworkStatusChange=!1);var n=new gv(this),i=new Ig({queryManager:this,queryInfo:n,options:e});return i.lastQuery=r,this.queries.set(i.queryId,n),n.init({document:r,observableQuery:i,variables:i.variables}),i},t.prototype.query=function(e,r){var n=this;return r===void 0&&(r=this.generateQueryId()),nt(e.query,26),nt(e.query.kind==="Document",27),nt(!e.returnPartialData,28),nt(!e.pollInterval,29),this.fetchQuery(r,re(re({},e),{query:this.transform(e.query)})).finally(function(){return n.stopQuery(r)})},t.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},t.prototype.generateRequestId=function(){return this.requestIdCounter++},t.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},t.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},t.prototype.stopQueryInStoreNoBroadcast=function(e){var r=this.queries.get(e);r&&r.stop()},t.prototype.clearStore=function(e){return e===void 0&&(e={discardWatches:!0}),this.cancelPendingFetches(on(30)),this.queries.forEach(function(r){r.observableQuery?r.networkStatus=Ft.loading:r.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},t.prototype.getObservableQueries=function(e){var r=this;e===void 0&&(e="active");var n=new Map,i=new Map,o=new Set;return Array.isArray(e)&&e.forEach(function(a){typeof a=="string"?i.set(a,!1):YD(a)?i.set(r.transform(a),!1):er(a)&&a.query&&o.add(a)}),this.queries.forEach(function(a,c){var d=a.observableQuery,u=a.document;if(d){if(e==="all"){n.set(c,d);return}var f=d.queryName,_=d.options.fetchPolicy;if(_==="standby"||e==="active"&&!d.hasObservers())return;(e==="active"||f&&i.has(f)||u&&i.has(u))&&(n.set(c,d),f&&i.set(f,!0),u&&i.set(u,!0))}}),o.size&&o.forEach(function(a){var c=lg("legacyOneTimeQuery"),d=r.getQuery(c).init({document:a.query,variables:a.variables}),u=new Ig({queryManager:r,queryInfo:d,options:re(re({},a),{fetchPolicy:"network-only"})});nt(u.queryId===c),d.setObservableQuery(u),n.set(c,u)}),globalThis.__DEV__!==!1&&i.size&&i.forEach(function(a,c){a||globalThis.__DEV__!==!1&&nt.warn(typeof c=="string"?31:32,c)}),n},t.prototype.reFetchObservableQueries=function(e){var r=this;e===void 0&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(i,o){var a=i.options.fetchPolicy;i.resetLastResults(),(e||a!=="standby"&&a!=="cache-only")&&n.push(i.refetch()),r.getQuery(o).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},t.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},t.prototype.startGraphQLSubscription=function(e){var r=this,n=e.query,i=e.fetchPolicy,o=e.errorPolicy,a=o===void 0?"none":o,c=e.variables,d=e.context,u=d===void 0?{}:d;n=this.transform(n),c=this.getVariables(n,c);var f=function(y){return r.getObservableFromLink(n,u,y).map(function(b){i!=="no-cache"&&($g(b,a)&&r.cache.write({query:n,result:b.data,dataId:"ROOT_SUBSCRIPTION",variables:y}),r.broadcastQueries());var p=Vf(b),m=HF(b);if(p||m){var g={};if(p&&(g.graphQLErrors=b.errors),m&&(g.protocolErrors=b.extensions[cb]),a==="none"||m)throw new co(g)}return a==="ignore"&&delete b.errors,b})};if(this.getDocumentInfo(n).hasClientExports){var _=this.localState.addExportedVariables(n,c,u).then(f);return new Gt(function(y){var b=null;return _.then(function(p){return b=p.subscribe(y)},y.error),function(){return b&&b.unsubscribe()}})}return f(c)},t.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},t.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},t.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},t.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},t.prototype.getLocalState=function(){return this.localState},t.prototype.getObservableFromLink=function(e,r,n,i){var o=this,a;i===void 0&&(i=(a=r==null?void 0:r.queryDeduplication)!==null&&a!==void 0?a:this.queryDeduplication);var c,d=this.getDocumentInfo(e),u=d.serverQuery,f=d.clientQuery;if(u){var _=this,y=_.inFlightLinkObservables,b=_.link,p={query:u,variables:n,operationName:pg(u)||void 0,context:this.prepareContext(re(re({},r),{forceFetch:!i}))};if(r=p.context,i){var m=b3(u),g=y.get(m)||new Map;y.set(m,g);var v=as(n);if(c=g.get(v),!c){var x=new Js([bg(b,p)]);g.set(v,c=x),x.beforeNext(function(){g.delete(v)&&g.size<1&&y.delete(m)})}}else c=new Js([bg(b,p)])}else c=new Js([Gt.of({data:{}})]),r=this.prepareContext(r);return f&&(c=sv(c,function(E){return o.localState.runResolvers({document:f,remoteResult:E,context:r,variables:n})})),c},t.prototype.getResultsFromLink=function(e,r,n){var i=e.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(n.query);return sv(this.getObservableFromLink(o,n.context,n.variables),function(a){var c=_g(a),d=c.length>0;if(i>=e.lastRequestId){if(d&&n.errorPolicy==="none")throw e.markError(new co({graphQLErrors:c}));e.markResult(a,o,n,r),e.markReady()}var u={data:a.data,loading:!1,networkStatus:Ft.ready};return d&&n.errorPolicy!=="ignore"&&(u.errors=c,u.networkStatus=Ft.error),u},function(a){var c=$3(a)?a:new co({networkError:a});throw i>=e.lastRequestId&&e.markError(c),c})},t.prototype.fetchConcastWithInfo=function(e,r,n,i){var o=this;n===void 0&&(n=Ft.loading),i===void 0&&(i=r.query);var a=this.getVariables(i,r.variables),c=this.getQuery(e),d=this.defaultOptions.watchQuery,u=r.fetchPolicy,f=u===void 0?d&&d.fetchPolicy||"cache-first":u,_=r.errorPolicy,y=_===void 0?d&&d.errorPolicy||"none":_,b=r.returnPartialData,p=b===void 0?!1:b,m=r.notifyOnNetworkStatusChange,g=m===void 0?!1:m,v=r.context,x=v===void 0?{}:v,E=Object.assign({},r,{query:i,variables:a,fetchPolicy:f,errorPolicy:y,returnPartialData:p,notifyOnNetworkStatusChange:g,context:x}),T=function(D){E.variables=D;var q=o.fetchQueryByPolicy(c,E,n);return E.fetchPolicy!=="standby"&&q.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",r),q},C=function(){return o.fetchCancelFns.delete(e)};this.fetchCancelFns.set(e,function(D){C(),setTimeout(function(){return A.cancel(D)})});var A,L;if(this.getDocumentInfo(E.query).hasClientExports)A=new Js(this.localState.addExportedVariables(E.query,E.variables,E.context).then(T).then(function(D){return D.sources})),L=!0;else{var R=T(E.variables);L=R.fromLink,A=new Js(R.sources)}return A.promise.then(C,C),{concast:A,fromLink:L}},t.prototype.refetchQueries=function(e){var r=this,n=e.updateCache,i=e.include,o=e.optimistic,a=o===void 0?!1:o,c=e.removeOptimistic,d=c===void 0?a?lg("refetchQueries"):void 0:c,u=e.onQueryUpdated,f=new Map;i&&this.getObservableQueries(i).forEach(function(y,b){f.set(b,{oq:y,lastDiff:r.getQuery(b).getDiff()})});var _=new Map;return n&&this.cache.batch({update:n,optimistic:a&&d||!1,removeOptimistic:d,onWatchUpdated:function(y,b,p){var m=y.watcher instanceof gv&&y.watcher.observableQuery;if(m){if(u){f.delete(m.queryId);var g=u(m,b,p);return g===!0&&(g=m.refetch()),g!==!1&&_.set(m,g),g}u!==null&&f.set(m.queryId,{oq:m,lastDiff:p,diff:b})}}}),f.size&&f.forEach(function(y,b){var p=y.oq,m=y.lastDiff,g=y.diff,v;if(u){if(!g){var x=p.queryInfo;x.reset(),g=x.getDiff()}v=u(p,g,m)}(!u||v===!0)&&(v=p.refetch()),v!==!1&&_.set(p,v),b.indexOf("legacyOneTimeQuery")>=0&&r.stopQueryNoBroadcast(b)}),d&&this.cache.removeOptimistic(d),_},t.prototype.fetchQueryByPolicy=function(e,r,n){var i=this,o=r.query,a=r.variables,c=r.fetchPolicy,d=r.refetchWritePolicy,u=r.errorPolicy,f=r.returnPartialData,_=r.context,y=r.notifyOnNetworkStatusChange,b=e.networkStatus;e.init({document:o,variables:a,networkStatus:n});var p=function(){return e.getDiff()},m=function(T,C){C===void 0&&(C=e.networkStatus||Ft.loading);var A=T.result;globalThis.__DEV__!==!1&&!f&&!rr(A,{})&&ak(T.missing);var L=function(R){return Gt.of(re({data:R,loading:Ed(C),networkStatus:C},T.complete?null:{partial:!0}))};return A&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:A},context:_,variables:a,onlyRunForcedResolvers:!0}).then(function(R){return L(R.data||void 0)}):u==="none"&&C===Ft.refetch&&Array.isArray(T.missing)?L(void 0):L(A)},g=c==="no-cache"?0:n===Ft.refetch&&d!=="merge"?1:2,v=function(){return i.getResultsFromLink(e,g,{query:o,variables:a,context:_,fetchPolicy:c,errorPolicy:u})},x=y&&typeof b=="number"&&b!==n&&Ed(n);switch(c){default:case"cache-first":{var E=p();return E.complete?{fromLink:!1,sources:[m(E,e.markReady())]}:f||x?{fromLink:!0,sources:[m(E),v()]}:{fromLink:!0,sources:[v()]}}case"cache-and-network":{var E=p();return E.complete||f||x?{fromLink:!0,sources:[m(E),v()]}:{fromLink:!0,sources:[v()]}}case"cache-only":return{fromLink:!1,sources:[m(p(),e.markReady())]};case"network-only":return x?{fromLink:!0,sources:[m(p()),v()]}:{fromLink:!0,sources:[v()]};case"no-cache":return x?{fromLink:!0,sources:[m(e.getDiff()),v()]}:{fromLink:!0,sources:[v()]};case"standby":return{fromLink:!1,sources:[]}}},t.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new gv(this,e)),this.queries.get(e)},t.prototype.prepareContext=function(e){e===void 0&&(e={});var r=this.localState.prepareContext(e);return re(re({},r),{clientAwareness:this.clientAwareness})},t}(),Ww=!1,lk=function(){function t(e){var r=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw on(13);var n=e.uri,i=e.credentials,o=e.headers,a=e.cache,c=e.documentTransform,d=e.ssrMode,u=d===void 0?!1:d,f=e.ssrForceFetchDelay,_=f===void 0?0:f,y=e.connectToDevTools,b=y===void 0?typeof window=="object"&&!window.__APOLLO_CLIENT__&&globalThis.__DEV__!==!1:y,p=e.queryDeduplication,m=p===void 0?!0:p,g=e.defaultOptions,v=e.assumeImmutableResults,x=v===void 0?a.assumeImmutableResults:v,E=e.resolvers,T=e.typeDefs,C=e.fragmentMatcher,A=e.name,L=e.version,R=e.link;R||(R=n?new iN({uri:n,credentials:i,headers:o}):Kl.empty()),this.link=R,this.cache=a,this.disableNetworkFetches=u||_>0,this.queryDeduplication=m,this.defaultOptions=g||Object.create(null),this.typeDefs=T,_&&setTimeout(function(){return r.disableNetworkFetches=!1},_),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Yy,this.localState=new sk({cache:a,client:this,resolvers:E,fragmentMatcher:C}),this.queryManager=new YN({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:c,queryDeduplication:m,ssrMode:u,clientAwareness:{name:A,version:L},localState:this.localState,assumeImmutableResults:x,onBroadcast:b?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.cache.extract(!0)})}:void 0}),b&&this.connectToDevTools()}return t.prototype.connectToDevTools=function(){if(typeof window=="object"){var e=window,r=Symbol.for("apollo.devtools");(e[r]=e[r]||[]).push(this),e.__APOLLO_CLIENT__=this}!Ww&&globalThis.__DEV__!==!1&&(Ww=!0,setTimeout(function(){if(typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var n=window.navigator,i=n&&n.userAgent,o=void 0;typeof i=="string"&&(i.indexOf("Chrome/")>-1?o="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":i.indexOf("Firefox/")>-1&&(o="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),o&&globalThis.__DEV__!==!1&&nt.log("Download the Apollo DevTools for a better development experience: %s",o)}},1e4))},Object.defineProperty(t.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),t.prototype.stop=function(){this.queryManager.stop()},t.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=lv(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&(e.fetchPolicy==="network-only"||e.fetchPolicy==="cache-and-network")&&(e=re(re({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},t.prototype.query=function(e){return this.defaultOptions.query&&(e=lv(this.defaultOptions.query,e)),nt(e.fetchPolicy!=="cache-and-network",14),this.disableNetworkFetches&&e.fetchPolicy==="network-only"&&(e=re(re({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},t.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=lv(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},t.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},t.prototype.readQuery=function(e,r){return r===void 0&&(r=!1),this.cache.readQuery(e,r)},t.prototype.readFragment=function(e,r){return r===void 0&&(r=!1),this.cache.readFragment(e,r)},t.prototype.writeQuery=function(e){var r=this.cache.writeQuery(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),r},t.prototype.writeFragment=function(e){var r=this.cache.writeFragment(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),r},t.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},t.prototype.__requestRaw=function(e){return bg(this.link,e)},t.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(r){return r()}))}).then(function(){return e.reFetchObservableQueries()})},t.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(r){return r()}))})},t.prototype.onResetStore=function(e){var r=this;return this.resetStoreCallbacks.push(e),function(){r.resetStoreCallbacks=r.resetStoreCallbacks.filter(function(n){return n!==e})}},t.prototype.onClearStore=function(e){var r=this;return this.clearStoreCallbacks.push(e),function(){r.clearStoreCallbacks=r.clearStoreCallbacks.filter(function(n){return n!==e})}},t.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},t.prototype.refetchQueries=function(e){var r=this.queryManager.refetchQueries(e),n=[],i=[];r.forEach(function(a,c){n.push(c),i.push(a)});var o=Promise.all(i);return o.queries=n,o.results=i,o.catch(function(a){globalThis.__DEV__!==!1&&nt.debug(15,a)}),o},t.prototype.getObservableQueries=function(e){return e===void 0&&(e="active"),this.queryManager.getObservableQueries(e)},t.prototype.extract=function(e){return this.cache.extract(e)},t.prototype.restore=function(e){return this.cache.restore(e)},t.prototype.addResolvers=function(e){this.localState.addResolvers(e)},t.prototype.setResolvers=function(e){this.localState.setResolvers(e)},t.prototype.getResolvers=function(){return this.localState.getResolvers()},t.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},t.prototype.setLink=function(e){this.link=this.queryManager.link=e},t}(),Wf=new Map,Og=new Map,ck=!0,pp=!1;function dk(t){return t.replace(/[\s,]+/g," ").trim()}function ZN(t){return dk(t.source.body.substring(t.start,t.end))}function XN(t){var e=new Set,r=[];return t.definitions.forEach(function(n){if(n.kind==="FragmentDefinition"){var i=n.name.value,o=ZN(n.loc),a=Og.get(i);a&&!a.has(o)?ck&&console.warn("Warning: fragment with name "+i+` already exists. +`),E=QF(v.slice(0,x)),T=E["content-type"],T&&T.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(C=v.slice(x),C){if(A=O3(t,C),Object.keys(A).length>1||"data"in A||"incremental"in A||"errors"in A||"payload"in A)$F(A)?(L={},"payload"in A&&(L=re({},A.payload)),"errors"in A&&(L=re(re({},L),{extensions:re(re({},"extensions"in L?L.extensions:null),(D={},D[db]=A.errors,D))})),e(L)):e(A);else if(Object.keys(A).length===1&&"hasNext"in A&&!A.hasNext)return[2]}g=d.indexOf(c)}return[3,1];case 3:return[2]}})})}function QF(t){var e={};return t.split(` +`).forEach(function(r){var n=r.indexOf(":");if(n>-1){var i=r.slice(0,n).trim().toLowerCase(),o=r.slice(n+1).trim();e[i]=o}}),e}function O3(t,e){if(t.status>=300){var r=function(){try{return JSON.parse(e)}catch{return e}};bg(t,r(),"Response not successful: Received status code ".concat(t.status))}try{return JSON.parse(e)}catch(i){var n=i;throw n.name="ServerParseError",n.response=t,n.statusCode=t.status,n.bodyText=e,n}}function KF(t,e){t.result&&t.result.errors&&t.result.data&&e.next(t.result),e.error(t)}function P3(t){return function(e){return e.text().then(function(r){return O3(e,r)}).then(function(r){return e.status>=300&&bg(e,r,"Response not successful: Received status code ".concat(e.status)),!Array.isArray(r)&&!hw.call(r,"data")&&!hw.call(r,"errors")&&bg(e,r,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(n){return n.operationName}):t.operationName,"'.")),r})}}var up=function(t,e){var r;try{r=JSON.stringify(t)}catch(i){var n=on(37,e,i.message);throw n.parseError=i,n}return r},YF={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},ZF={accept:"*/*","content-type":"application/json"},XF={method:"POST"},R3={http:YF,headers:ZF,options:XF},L3=function(t,e){return e(t)};function M3(t,e){for(var r=[],n=2;n"u")throw on(35)},tN=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var t=new AbortController,e=t.signal;return{controller:t,signal:e}},D3=function(t,e){var r=t.getContext(),n=r.uri;return n||(typeof e=="function"?e(t):e||"/graphql")};function rN(t,e){var r=[],n=function(_,y){r.push("".concat(_,"=").concat(encodeURIComponent(y)))};if("query"in e&&n("query",e.query),e.operationName&&n("operationName",e.operationName),e.variables){var i=void 0;try{i=up(e.variables,"Variables map")}catch(_){return{parseError:_}}n("variables",i)}if(e.extensions){var o=void 0;try{o=up(e.extensions,"Extensions map")}catch(_){return{parseError:_}}n("extensions",o)}var a="",c=t,d=t.indexOf("#");d!==-1&&(a=t.substr(d),c=t.substr(0,d));var u=c.indexOf("?")===-1?"?":"&",f=c+u+r.join("&")+a;return{newURI:f}}var mw=ci(function(){return fetch}),nN=function(t){t===void 0&&(t={});var e=t.uri,r=e===void 0?"/graphql":e,n=t.fetch,i=t.print,o=i===void 0?L3:i,a=t.includeExtensions,c=t.preserveHeaderCase,d=t.useGETForQueries,u=t.includeUnusedVariables,f=u===void 0?!1:u,_=pa(t,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&eN(n||mw);var y={http:{includeExtensions:a,preserveHeaderCase:c},options:_.fetchOptions,credentials:_.credentials,headers:_.headers};return new Kl(function(b){var p=D3(b,r),m=b.getContext(),g={};if(m.clientAwareness){var v=m.clientAwareness,x=v.name,E=v.version;x&&(g["apollographql-client-name"]=x),E&&(g["apollographql-client-version"]=E)}var T=re(re({},g),m.headers),C={http:m.http,options:m.fetchOptions,credentials:m.credentials,headers:T};if(xd(["client"],b.query)){var A=E3(b.query);if(!A)return Gf(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));b.query=A}var L=M3(b,o,R3,y,C),R=L.options,D=L.body;D.variables&&!f&&(D.variables=LF(D.variables,b.query));var q;!R.signal&&typeof AbortController<"u"&&(q=new AbortController,R.signal=q.signal);var H=function(Ce){return Ce.kind==="OperationDefinition"&&Ce.operation==="mutation"},U=function(Ce){return Ce.kind==="OperationDefinition"&&Ce.operation==="subscription"},ce=U(jd(b.query)),Ae=xd(["defer"],b.query);if(d&&!b.query.definitions.some(H)&&(R.method="GET"),Ae||ce){R.headers=R.headers||{};var Le="multipart/mixed;";ce&&Ae&&globalThis.__DEV__!==!1&&nt.warn(36),ce?Le+="boundary=graphql;subscriptionSpec=1.0,application/json":Ae&&(Le+="deferSpec=20220824,application/json"),R.headers.accept=Le}if(R.method==="GET"){var Te=rN(p,D),Ie=Te.newURI,Pe=Te.parseError;if(Pe)return Gf(Pe);p=Ie}else try{R.body=up(D,"Payload")}catch(Ce){return Gf(Ce)}return new Gt(function(Ce){var de=n||ci(function(){return fetch})||mw,we=Ce.next.bind(Ce);return de(p,R).then(function(ke){var Re;b.setContext({response:ke});var He=(Re=ke.headers)===null||Re===void 0?void 0:Re.get("content-type");return He!==null&&/^multipart\/mixed/i.test(He)?WF(ke,we):P3(b)(ke).then(we)}).then(function(){q=void 0,Ce.complete()}).catch(function(ke){q=void 0,KF(ke,Ce)}),function(){q&&q.abort()}})})},iN=function(t){Wi(e,t);function e(r){r===void 0&&(r={});var n=t.call(this,nN(r).request)||this;return n.options=r,n}return e}(Kl);const{toString:vw,hasOwnProperty:oN}=Object.prototype,gw=Function.prototype.toString,wg=new Map;function rr(t,e){try{return Eg(t,e)}finally{wg.clear()}}function Eg(t,e){if(t===e)return!0;const r=vw.call(t),n=vw.call(e);if(r!==n)return!1;switch(r){case"[object Array]":if(t.length!==e.length)return!1;case"[object Object]":{if(yw(t,e))return!0;const i=_w(t),o=_w(e),a=i.length;if(a!==o.length)return!1;for(let c=0;c=0&&t.indexOf(e,r)===r}function yw(t,e){let r=wg.get(t);if(r){if(r.has(e))return!0}else wg.set(t,r=new Set);return r.add(e),!1}function cN(){}let dN=class{constructor(e=1/0,r=cN){this.max=e,this.dispose=r,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const r=this.getNode(e);return r&&r.value}getNode(e){const r=this.map.get(e);if(r&&r!==this.newest){const{older:n,newer:i}=r;i&&(i.older=n),n&&(n.newer=i),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=i)}return r}set(e,r){let n=this.getNode(e);return n?n.value=r:(n={key:e,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const r=this.map.get(e);return r?(r===this.newest&&(this.newest=r.older),r===this.oldest&&(this.oldest=r.newer),r.newer&&(r.newer.older=r.older),r.older&&(r.older.newer=r.newer),this.map.delete(e),this.dispose(r.value,e),!0):!1}};var Mr=null,bw={},uN=1,fN=function(){return function(){function t(){this.id=["slot",uN++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return t.prototype.hasValue=function(){for(var e=Mr;e;e=e.parent)if(this.id in e.slots){var r=e.slots[this.id];if(r===bw)break;return e!==Mr&&(Mr.slots[this.id]=r),!0}return Mr&&(Mr.slots[this.id]=bw),!1},t.prototype.getValue=function(){if(this.hasValue())return Mr.slots[this.id]},t.prototype.withValue=function(e,r,n,i){var o,a=(o={__proto__:null},o[this.id]=e,o),c=Mr;Mr={parent:c,slots:a};try{return r.apply(i,n)}finally{Mr=c}},t.bind=function(e){var r=Mr;return function(){var n=Mr;try{return Mr=r,e.apply(this,arguments)}finally{Mr=n}}},t.noContext=function(e,r,n){if(Mr){var i=Mr;try{return Mr=null,e.apply(n,r)}finally{Mr=i}}else return e.apply(n,r)},t}()};function xw(t){try{return t()}catch{}}var dv="@wry/context:Slot",pN=xw(function(){return globalThis})||xw(function(){return global})||Object.create(null),ww=pN,ub=ww[dv]||Array[dv]||function(t){try{Object.defineProperty(ww,dv,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}}(fN());ub.bind;ub.noContext;const oh=new ub,{hasOwnProperty:hN}=Object.prototype,fb=Array.from||function(t){const e=[];return t.forEach(r=>e.push(r)),e};function fp(t){const{unsubscribe:e}=t;typeof e=="function"&&(t.unsubscribe=void 0,e())}const wd=[],mN=100;function Al(t,e){if(!t)throw new Error(e||"assertion failure")}function vN(t,e){const r=t.length;return r>0&&r===e.length&&t[r-1]===e[r-1]}function F3(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}function gN(t){return t.slice(0)}class ah{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++ah.count}peek(){if(this.value.length===1&&!ga(this))return Ew(this),this.value[0]}recompute(e){return Al(!this.recomputing,"already recomputing"),Ew(this),ga(this)?_N(this,e):F3(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,N3(this),fp(this))}dispose(){this.setDirty(),V3(this),pb(this,(e,r)=>{e.setDirty(),j3(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=wd.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(fb(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),wd.push(this.deps),this.deps=null)}}ah.count=0;function Ew(t){const e=oh.getValue();if(e)return t.parents.add(e),e.childValues.has(t)||e.childValues.set(t,[]),ga(t)?q3(e,t):B3(e,t),e}function _N(t,e){return V3(t),oh.withValue(t,yN,[t,e]),xN(t,e)&&bN(t),F3(t.value)}function yN(t,e){t.recomputing=!0,t.value.length=0;try{t.value[0]=t.fn.apply(null,e)}catch(r){t.value[1]=r}t.recomputing=!1}function ga(t){return t.dirty||!!(t.dirtyChildren&&t.dirtyChildren.size)}function bN(t){t.dirty=!1,!ga(t)&&z3(t)}function N3(t){pb(t,q3)}function z3(t){pb(t,B3)}function pb(t,e){const r=t.parents.size;if(r){const n=fb(t.parents);for(let i=0;i0&&t.childValues.forEach((e,r)=>{j3(t,r)}),t.forgetDeps(),Al(t.dirtyChildren===null)}function j3(t,e){e.parents.delete(t),t.childValues.delete(e),U3(t,e)}function xN(t,e){if(typeof t.subscribe=="function")try{fp(t),t.unsubscribe=t.subscribe.apply(null,e)}catch{return t.setDirty(),!1}return!0}const wN={setDirty:!0,dispose:!0,forget:!0};function H3(t){const e=new Map,r=t&&t.subscribe;function n(i){const o=oh.getValue();if(o){let a=e.get(i);a||e.set(i,a=new Set),o.dependOn(a),typeof r=="function"&&(fp(a),a.unsubscribe=r(i))}}return n.dirty=function(o,a){const c=e.get(o);if(c){const d=a&&hN.call(wN,a)?a:"setDirty";fb(c).forEach(u=>u[d]()),e.delete(o),fp(c)}},n}let Tw;function EN(...t){return(Tw||(Tw=new Ta(typeof WeakMap=="function"))).lookupArray(t)}const uv=new Set;function pp(t,{max:e=Math.pow(2,16),makeCacheKey:r=EN,keyArgs:n,subscribe:i}=Object.create(null)){const o=new dN(e,f=>f.dispose()),a=function(){const f=r.apply(null,n?n.apply(null,arguments):arguments);if(f===void 0)return t.apply(null,arguments);let _=o.get(f);_||(o.set(f,_=new ah(t)),_.subscribe=i,_.forget=()=>o.delete(f));const y=_.recompute(Array.prototype.slice.call(arguments));return o.set(f,_),uv.add(o),oh.hasValue()||(uv.forEach(b=>b.clean()),uv.clear()),y};Object.defineProperty(a,"size",{get(){return o.map.size},configurable:!1,enumerable:!1}),Object.freeze(a.options={max:e,makeCacheKey:r,keyArgs:n,subscribe:i});function c(f){const _=o.get(f);_&&_.setDirty()}a.dirtyKey=c,a.dirty=function(){c(r.apply(null,arguments))};function d(f){const _=o.get(f);if(_)return _.peek()}a.peekKey=d,a.peek=function(){return d(r.apply(null,arguments))};function u(f){return o.delete(f)}return a.forgetKey=u,a.forget=function(){return u(r.apply(null,arguments))},a.makeCacheKey=r,a.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(a)}var TN=function(){function t(){this.assumeImmutableResults=!1,this.getFragmentDoc=pp(KD)}return t.prototype.batch=function(e){var r=this,n=typeof e.optimistic=="string"?e.optimistic:e.optimistic===!1?null:void 0,i;return this.performTransaction(function(){return i=e.update(r)},n),i},t.prototype.recordOptimisticTransaction=function(e,r){this.performTransaction(e,r)},t.prototype.transformDocument=function(e){return e},t.prototype.transformForLink=function(e){return e},t.prototype.identify=function(e){},t.prototype.gc=function(){return[]},t.prototype.modify=function(e){return!1},t.prototype.readQuery=function(e,r){return r===void 0&&(r=!!e.optimistic),this.read(re(re({},e),{rootId:e.id||"ROOT_QUERY",optimistic:r}))},t.prototype.readFragment=function(e,r){return r===void 0&&(r=!!e.optimistic),this.read(re(re({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:r}))},t.prototype.writeQuery=function(e){var r=e.id,n=e.data,i=pa(e,["id","data"]);return this.write(Object.assign(i,{dataId:r||"ROOT_QUERY",result:n}))},t.prototype.writeFragment=function(e){var r=e.id,n=e.data,i=e.fragment,o=e.fragmentName,a=pa(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:r,result:n}))},t.prototype.updateQuery=function(e,r){return this.batch({update:function(n){var i=n.readQuery(e),o=r(i);return o==null?i:(n.writeQuery(re(re({},e),{data:o})),o)}})},t.prototype.updateFragment=function(e,r){return this.batch({update:function(n){var i=n.readFragment(e),o=r(i);return o==null?i:(n.writeFragment(re(re({},e),{data:o})),o)}})},t}(),G3=function(t){Wi(e,t);function e(r,n,i,o){var a,c=t.call(this,r)||this;if(c.message=r,c.path=n,c.query=i,c.variables=o,Array.isArray(c.path)){c.missing=c.message;for(var d=c.path.length-1;d>=0;--d)c.missing=(a={},a[c.path[d]]=c.missing,a)}else c.missing=c.path;return c.__proto__=e.prototype,c}return e}(Error),Ar=Object.prototype.hasOwnProperty;function Oc(t){return t==null}function W3(t,e){var r=t.__typename,n=t.id,i=t._id;if(typeof r=="string"&&(e&&(e.keyObject=Oc(n)?Oc(i)?void 0:{_id:i}:{id:n}),Oc(n)&&!Oc(i)&&(n=i),!Oc(n)))return"".concat(r,":").concat(typeof n=="number"||typeof n=="string"?n:JSON.stringify(n))}var Q3={dataIdFromObject:W3,addTypename:!0,resultCaching:!0,canonizeResults:!1};function kN(t){return Cl(Q3,t)}function K3(t){var e=t.canonizeResults;return e===void 0?Q3.canonizeResults:e}function CN(t,e){return Nt(e)?t.get(e.__ref,"__typename"):e&&e.__typename}var Y3=/^[_a-z][_0-9a-z]*/i;function _a(t){var e=t.match(Y3);return e?e[0]:t}function Tg(t,e,r){return er(e)?or(e)?e.every(function(n){return Tg(t,n,r)}):t.selections.every(function(n){if(ma(n)&&Bd(n,r)){var i=ha(n);return Ar.call(e,i)&&(!n.selectionSet||Tg(n.selectionSet,e[i],r))}return!0}):!1}function al(t){return er(t)&&!Nt(t)&&!or(t)}function AN(){return new va}function Z3(t,e){var r=th(ih(t));return{fragmentMap:r,lookupFragment:function(n){var i=r[n];return!i&&e&&(i=e.lookup(n)),i||null}}}var Wf=Object.create(null),fv=function(){return Wf},kw=Object.create(null),Ed=function(){function t(e,r){var n=this;this.policies=e,this.group=r,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(i,o){return _g(Nt(i)?n.get(i.__ref,o):i&&i[o])},this.canRead=function(i){return Nt(i)?n.has(i.__ref):typeof i=="object"},this.toReference=function(i,o){if(typeof i=="string")return pl(i);if(Nt(i))return i;var a=n.policies.identify(i)[0];if(a){var c=pl(a);return o&&n.merge(a,i),c}}}return t.prototype.toObject=function(){return re({},this.data)},t.prototype.has=function(e){return this.lookup(e,!0)!==void 0},t.prototype.get=function(e,r){if(this.group.depend(e,r),Ar.call(this.data,e)){var n=this.data[e];if(n&&Ar.call(n,r))return n[r]}if(r==="__typename"&&Ar.call(this.policies.rootTypenamesById,e))return this.policies.rootTypenamesById[e];if(this instanceof Qo)return this.parent.get(e,r)},t.prototype.lookup=function(e,r){if(r&&this.group.depend(e,"__exists"),Ar.call(this.data,e))return this.data[e];if(this instanceof Qo)return this.parent.lookup(e,r);if(this.policies.rootTypenamesById[e])return Object.create(null)},t.prototype.merge=function(e,r){var n=this,i;Nt(e)&&(e=e.__ref),Nt(r)&&(r=r.__ref);var o=typeof e=="string"?this.lookup(i=e):e,a=typeof r=="string"?this.lookup(i=r):r;if(a){nt(typeof i=="string",1);var c=new va(IN).merge(o,a);if(this.data[i]=c,c!==o&&(delete this.refs[i],this.group.caching)){var d=Object.create(null);o||(d.__exists=1),Object.keys(a).forEach(function(u){if(!o||o[u]!==c[u]){d[u]=1;var f=_a(u);f!==u&&!n.policies.hasKeyArgs(c.__typename,f)&&(d[f]=1),c[u]===void 0&&!(n instanceof Qo)&&delete c[u]}}),d.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[i]===c.__typename&&delete d.__typename,Object.keys(d).forEach(function(u){return n.group.dirty(i,u)})}}},t.prototype.modify=function(e,r){var n=this,i=this.lookup(e);if(i){var o=Object.create(null),a=!1,c=!0,d={DELETE:Wf,INVALIDATE:kw,isReference:Nt,toReference:this.toReference,canRead:this.canRead,readField:function(u,f){return n.policies.readField(typeof u=="string"?{fieldName:u,from:f||pl(e)}:u,{store:n})}};if(Object.keys(i).forEach(function(u){var f=_a(u),_=i[u];if(_!==void 0){var y=typeof r=="function"?r:r[u]||r[f];if(y){var b=y===fv?Wf:y(_g(_),re(re({},d),{fieldName:f,storeFieldName:u,storage:n.getStorage(e,u)}));b===kw?n.group.dirty(e,u):(b===Wf&&(b=void 0),b!==_&&(o[u]=b,a=!0,_=b))}_!==void 0&&(c=!1)}}),a)return this.merge(e,o),c&&(this instanceof Qo?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},t.prototype.delete=function(e,r,n){var i,o=this.lookup(e);if(o){var a=this.getFieldValue(o,"__typename"),c=r&&n?this.policies.getStoreFieldName({typename:a,fieldName:r,args:n}):r;return this.modify(e,c?(i={},i[c]=fv,i):fv)}return!1},t.prototype.evict=function(e,r){var n=!1;return e.id&&(Ar.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof Qo&&this!==r&&(n=this.parent.evict(e,r)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},t.prototype.clear=function(){this.replace(null)},t.prototype.extract=function(){var e=this,r=this.toObject(),n=[];return this.getRootIdSet().forEach(function(i){Ar.call(e.policies.rootTypenamesById,i)||n.push(i)}),n.length&&(r.__META={extraRootIds:n.sort()}),r},t.prototype.replace=function(e){var r=this;if(Object.keys(this.data).forEach(function(o){e&&Ar.call(e,o)||r.delete(o)}),e){var n=e.__META,i=pa(e,["__META"]);Object.keys(i).forEach(function(o){r.merge(o,i[o])}),n&&n.extraRootIds.forEach(this.retain,this)}},t.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},t.prototype.release=function(e){if(this.rootIds[e]>0){var r=--this.rootIds[e];return r||delete this.rootIds[e],r}return 0},t.prototype.getRootIdSet=function(e){return e===void 0&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof Qo?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},t.prototype.gc=function(){var e=this,r=this.getRootIdSet(),n=this.toObject();r.forEach(function(a){Ar.call(n,a)&&(Object.keys(e.findChildRefIds(a)).forEach(r.add,r),delete n[a])});var i=Object.keys(n);if(i.length){for(var o=this;o instanceof Qo;)o=o.parent;i.forEach(function(a){return o.delete(a)})}return i},t.prototype.findChildRefIds=function(e){if(!Ar.call(this.refs,e)){var r=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return r;var i=new Set([n]);i.forEach(function(o){Nt(o)&&(r[o.__ref]=!0),er(o)&&Object.keys(o).forEach(function(a){var c=o[a];er(c)&&i.add(c)})})}return this.refs[e]},t.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},t}(),X3=function(){function t(e,r){r===void 0&&(r=null),this.caching=e,this.parent=r,this.d=null,this.resetCaching()}return t.prototype.resetCaching=function(){this.d=this.caching?H3():null,this.keyMaker=new Ta(wo)},t.prototype.depend=function(e,r){if(this.d){this.d(pv(e,r));var n=_a(r);n!==r&&this.d(pv(e,n)),this.parent&&this.parent.depend(e,r)}},t.prototype.dirty=function(e,r){this.d&&this.d.dirty(pv(e,r),r==="__exists"?"forget":"setDirty")},t}();function pv(t,e){return e+"#"+t}function Cw(t,e){Kc(t)&&t.group.depend(e,"__exists")}(function(t){var e=function(r){Wi(n,r);function n(i){var o=i.policies,a=i.resultCaching,c=a===void 0?!0:a,d=i.seed,u=r.call(this,o,new X3(c))||this;return u.stump=new SN(u),u.storageTrie=new Ta(wo),d&&u.replace(d),u}return n.prototype.addLayer=function(i,o){return this.stump.addLayer(i,o)},n.prototype.removeLayer=function(){return this},n.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},n}(t);t.Root=e})(Ed||(Ed={}));var Qo=function(t){Wi(e,t);function e(r,n,i,o){var a=t.call(this,n.policies,o)||this;return a.id=r,a.parent=n,a.replay=i,a.group=o,i(a),a}return e.prototype.addLayer=function(r,n){return new e(r,this,n,this.group)},e.prototype.removeLayer=function(r){var n=this,i=this.parent.removeLayer(r);return r===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(o){var a=n.data[o],c=i.lookup(o);c?a?a!==c&&Object.keys(a).forEach(function(d){rr(a[d],c[d])||n.group.dirty(o,d)}):(n.group.dirty(o,"__exists"),Object.keys(c).forEach(function(d){n.group.dirty(o,d)})):n.delete(o)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},e.prototype.toObject=function(){return re(re({},this.parent.toObject()),this.data)},e.prototype.findChildRefIds=function(r){var n=this.parent.findChildRefIds(r);return Ar.call(this.data,r)?re(re({},n),t.prototype.findChildRefIds.call(this,r)):n},e.prototype.getStorage=function(){for(var r=this.parent;r.parent;)r=r.parent;return r.getStorage.apply(r,arguments)},e}(Ed),SN=function(t){Wi(e,t);function e(r){return t.call(this,"EntityStore.Stump",r,function(){},new X3(r.group.caching,r.group))||this}return e.prototype.removeLayer=function(){return this},e.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},e}(Qo);function IN(t,e,r){var n=t[r],i=e[r];return rr(n,i)?n:i}function Kc(t){return!!(t instanceof Ed&&t.group.caching)}function $N(t){return er(t)?or(t)?t.slice(0):re({__proto__:Object.getPrototypeOf(t)},t):t}var kg=function(){function t(){this.known=new(v3?WeakSet:Set),this.pool=new Ta(wo),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return t.prototype.isKnown=function(e){return er(e)&&this.known.has(e)},t.prototype.pass=function(e){if(er(e)){var r=$N(e);return this.passes.set(r,e),r}return e},t.prototype.admit=function(e){var r=this;if(er(e)){var n=this.passes.get(e);if(n)return n;var i=Object.getPrototypeOf(e);switch(i){case Array.prototype:{if(this.known.has(e))return e;var o=e.map(this.admit,this),a=this.pool.lookupArray(o);return a.array||(this.known.add(a.array=o),globalThis.__DEV__!==!1&&Object.freeze(o)),a.array}case null:case Object.prototype:{if(this.known.has(e))return e;var c=Object.getPrototypeOf(e),d=[c],u=this.sortedKeys(e);d.push(u.json);var f=d.length;u.sorted.forEach(function(b){d.push(r.admit(e[b]))});var a=this.pool.lookupArray(d);if(!a.object){var _=a.object=Object.create(c);this.known.add(_),u.sorted.forEach(function(b,p){_[b]=d[f+p]}),globalThis.__DEV__!==!1&&Object.freeze(_)}return a.object}}}return e},t.prototype.sortedKeys=function(e){var r=Object.keys(e),n=this.pool.lookupArray(r);if(!n.keys){r.sort();var i=JSON.stringify(r);(n.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,n.keys={sorted:r,json:i})}return n.keys},t}(),as=Object.assign(function(t){if(er(t)){Cg===void 0&&Aw();var e=Cg.admit(t),r=Ag.get(e);return r===void 0&&Ag.set(e,r=JSON.stringify(e)),r}return JSON.stringify(t)},{reset:Aw}),Cg,Ag;function Aw(){Cg=new kg,Ag=new(wo?WeakMap:Map)}function Sw(t){return[t.selectionSet,t.objectOrReference,t.context,t.context.canonizeResults]}var ON=function(){function t(e){var r=this;this.knownResults=new(wo?WeakMap:Map),this.config=Cl(e,{addTypename:e.addTypename!==!1,canonizeResults:K3(e)}),this.canon=e.canon||new kg,this.executeSelectionSet=pp(function(n){var i,o=n.context.canonizeResults,a=Sw(n);a[3]=!o;var c=(i=r.executeSelectionSet).peek.apply(i,a);return c?o?re(re({},c),{result:r.canon.admit(c.result)}):c:(Cw(n.context.store,n.enclosingRef.__ref),r.execSelectionSetImpl(n))},{max:this.config.resultCacheMaxSize,keyArgs:Sw,makeCacheKey:function(n,i,o,a){if(Kc(o.store))return o.store.makeCacheKey(n,Nt(i)?i.__ref:i,o.varString,a)}}),this.executeSubSelectedArray=pp(function(n){return Cw(n.context.store,n.enclosingRef.__ref),r.execSubSelectedArrayImpl(n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(n){var i=n.field,o=n.array,a=n.context;if(Kc(a.store))return a.store.makeCacheKey(i,o,a.varString)}})}return t.prototype.resetCanon=function(){this.canon=new kg},t.prototype.diffQueryAgainstStore=function(e){var r=e.store,n=e.query,i=e.rootId,o=i===void 0?"ROOT_QUERY":i,a=e.variables,c=e.returnPartialData,d=c===void 0?!0:c,u=e.canonizeResults,f=u===void 0?this.config.canonizeResults:u,_=this.config.cache.policies;a=re(re({},nb(_3(n))),a);var y=pl(o),b=this.executeSelectionSet({selectionSet:jd(n).selectionSet,objectOrReference:y,enclosingRef:y,context:re({store:r,query:n,policies:_,variables:a,varString:as(a),canonizeResults:f},Z3(n,this.config.fragments))}),p;if(b.missing&&(p=[new G3(PN(b.missing),b.missing,n,a)],!d))throw p[0];return{result:b.result,complete:!p,missing:p}},t.prototype.isFresh=function(e,r,n,i){if(Kc(i.store)&&this.knownResults.get(e)===n){var o=this.executeSelectionSet.peek(n,r,i,this.canon.isKnown(e));if(o&&e===o.result)return!0}return!1},t.prototype.execSelectionSetImpl=function(e){var r=this,n=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,a=e.context;if(Nt(i)&&!a.policies.rootTypenamesById[i.__ref]&&!a.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var c=a.variables,d=a.policies,u=a.store,f=u.getFieldValue(i,"__typename"),_=[],y,b=new va;this.config.addTypename&&typeof f=="string"&&!d.rootIdsByTypename[f]&&_.push({__typename:f});function p(E,T){var C;return E.missing&&(y=b.merge(y,(C={},C[T]=E.missing,C))),E.result}var m=new Set(n.selections);m.forEach(function(E){var T,C;if(Bd(E,c))if(ma(E)){var A=d.readField({fieldName:E.name.value,field:E,variables:a.variables,from:i},a),L=ha(E);A===void 0?ib.added(E)||(y=b.merge(y,(T={},T[L]="Can't find field '".concat(E.name.value,"' on ").concat(Nt(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),T))):or(A)?A=p(r.executeSubSelectedArray({field:E,array:A,enclosingRef:o,context:a}),L):E.selectionSet?A!=null&&(A=p(r.executeSelectionSet({selectionSet:E.selectionSet,objectOrReference:A,enclosingRef:Nt(A)?A:o,context:a}),L)):a.canonizeResults&&(A=r.canon.pass(A)),A!==void 0&&_.push((C={},C[L]=A,C))}else{var R=rh(E,a.lookupFragment);if(!R&&E.kind===je.FRAGMENT_SPREAD)throw on(7,E.name.value);R&&d.fragmentMatches(R,f)&&R.selectionSet.selections.forEach(m.add,m)}});var g=ob(_),v={result:g,missing:y},x=a.canonizeResults?this.canon.admit(v):_g(v);return x.result&&this.knownResults.set(x.result,n),x},t.prototype.execSubSelectedArrayImpl=function(e){var r=this,n=e.field,i=e.array,o=e.enclosingRef,a=e.context,c,d=new va;function u(f,_){var y;return f.missing&&(c=d.merge(c,(y={},y[_]=f.missing,y))),f.result}return n.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(f,_){return f===null?null:or(f)?u(r.executeSubSelectedArray({field:n,array:f,enclosingRef:o,context:a}),_):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:f,enclosingRef:Nt(f)?f:o,context:a}),_):(globalThis.__DEV__!==!1&&RN(a.store,n,f),f)}),{result:a.canonizeResults?this.canon.admit(i):i,missing:c}},t}();function PN(t){try{JSON.stringify(t,function(e,r){if(typeof r=="string")throw r;return r})}catch(e){return e}}function RN(t,e,r){if(!e.selectionSet){var n=new Set([r]);n.forEach(function(i){er(i)&&(nt(!Nt(i),8,CN(t,i),e.name.value),Object.values(i).forEach(n.add,n))})}}let Dr=null;const Iw={};let LN=1;const MN=()=>class{constructor(){this.id=["slot",LN++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=Dr;e;e=e.parent)if(this.id in e.slots){const r=e.slots[this.id];if(r===Iw)break;return e!==Dr&&(Dr.slots[this.id]=r),!0}return Dr&&(Dr.slots[this.id]=Iw),!1}getValue(){if(this.hasValue())return Dr.slots[this.id]}withValue(e,r,n,i){const o={__proto__:null,[this.id]:e},a=Dr;Dr={parent:a,slots:o};try{return r.apply(i,n)}finally{Dr=a}}static bind(e){const r=Dr;return function(){const n=Dr;try{return Dr=r,e.apply(this,arguments)}finally{Dr=n}}}static noContext(e,r,n){if(Dr){const i=Dr;try{return Dr=null,e.apply(n,r)}finally{Dr=i}}else return e.apply(n,r)}};function $w(t){try{return t()}catch{}}const hv="@wry/context:Slot",DN=$w(()=>globalThis)||$w(()=>global)||Object.create(null),Ow=DN,FN=Ow[hv]||Array[hv]||function(t){try{Object.defineProperty(Ow,hv,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}}(MN());var hb=new FN,Pw=new WeakMap;function Yc(t){var e=Pw.get(t);return e||Pw.set(t,e={vars:new Set,dep:H3()}),e}function Rw(t){Yc(t).vars.forEach(function(e){return e.forgetCache(t)})}function NN(t){Yc(t).vars.forEach(function(e){return e.attachCache(t)})}function zN(t){var e=new Set,r=new Set,n=function(o){if(arguments.length>0){if(t!==o){t=o,e.forEach(function(d){Yc(d).dep.dirty(n),qN(d)});var a=Array.from(r);r.clear(),a.forEach(function(d){return d(t)})}}else{var c=hb.getValue();c&&(i(c),Yc(c).dep(n))}return t};n.onNextChange=function(o){return r.add(o),function(){r.delete(o)}};var i=n.attachCache=function(o){return e.add(o),Yc(o).vars.add(n),n};return n.forgetCache=function(o){return e.delete(o)},n}function qN(t){t.broadcastWatches&&t.broadcastWatches()}var Lw=Object.create(null);function mb(t){var e=JSON.stringify(t);return Lw[e]||(Lw[e]=Object.create(null))}function Mw(t){var e=mb(t);return e.keyFieldsFn||(e.keyFieldsFn=function(r,n){var i=function(a,c){return n.readField(c,a)},o=n.keyObject=vb(t,function(a){var c=ml(n.storeObject,a,i);return c===void 0&&r!==n.storeObject&&Ar.call(r,a[0])&&(c=ml(r,a,ek)),nt(c!==void 0,2,a.join("."),r),c});return"".concat(n.typename,":").concat(JSON.stringify(o))})}function Dw(t){var e=mb(t);return e.keyArgsFn||(e.keyArgsFn=function(r,n){var i=n.field,o=n.variables,a=n.fieldName,c=vb(t,function(u){var f=u[0],_=f.charAt(0);if(_==="@"){if(i&&qi(i.directives)){var y=f.slice(1),b=i.directives.find(function(v){return v.name.value===y}),p=b&&nh(b,o);return p&&ml(p,u.slice(1))}return}if(_==="$"){var m=f.slice(1);if(o&&Ar.call(o,m)){var g=u.slice(0);return g[0]=m,ml(o,g)}return}if(r)return ml(r,u)}),d=JSON.stringify(c);return(r||d!=="{}")&&(a+=":"+d),a})}function vb(t,e){var r=new va;return J3(t).reduce(function(n,i){var o,a=e(i);if(a!==void 0){for(var c=i.length-1;c>=0;--c)a=(o={},o[i[c]]=a,o);n=r.merge(n,a)}return n},Object.create(null))}function J3(t){var e=mb(t);if(!e.paths){var r=e.paths=[],n=[];t.forEach(function(i,o){or(i)?(J3(i).forEach(function(a){return r.push(n.concat(a))}),n.length=0):(n.push(i),or(t[o+1])||(r.push(n.slice(0)),n.length=0))})}return e.paths}function ek(t,e){return t[e]}function ml(t,e,r){return r=r||ek,tk(e.reduce(function n(i,o){return or(i)?i.map(function(a){return n(a,o)}):i&&r(i,o)},t))}function tk(t){return er(t)?or(t)?t.map(tk):vb(Object.keys(t).sort(),function(e){return ml(t,e)}):t}rb.setStringify(as);function Sg(t){return t.args!==void 0?t.args:t.field?nh(t.field,t.variables):null}var BN=function(){},Fw=function(t,e){return e.fieldName},Nw=function(t,e,r){var n=r.mergeObjects;return n(t,e)},zw=function(t,e){return e},UN=function(){function t(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=re({dataIdFromObject:W3},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return t.prototype.identify=function(e,r){var n,i=this,o=r&&(r.typename||((n=r.storeObject)===null||n===void 0?void 0:n.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a=r&&r.storeObject||e,c=re(re({},r),{typename:o,storeObject:a,readField:r&&r.readField||function(){var y=gb(arguments,a);return i.readField(y,{store:i.cache.data,variables:y.variables})}}),d,u=o&&this.getTypePolicy(o),f=u&&u.keyFn||this.config.dataIdFromObject;f;){var _=f(re(re({},e),a),c);if(or(_))f=Mw(_);else{d=_;break}}return d=d?String(d):void 0,c.keyObject?[d,c.keyObject]:[d]},t.prototype.addTypePolicies=function(e){var r=this;Object.keys(e).forEach(function(n){var i=e[n],o=i.queryType,a=i.mutationType,c=i.subscriptionType,d=pa(i,["queryType","mutationType","subscriptionType"]);o&&r.setRootTypename("Query",n),a&&r.setRootTypename("Mutation",n),c&&r.setRootTypename("Subscription",n),Ar.call(r.toBeAdded,n)?r.toBeAdded[n].push(d):r.toBeAdded[n]=[d]})},t.prototype.updateTypePolicy=function(e,r){var n=this,i=this.getTypePolicy(e),o=r.keyFields,a=r.fields;function c(d,u){d.merge=typeof u=="function"?u:u===!0?Nw:u===!1?zw:d.merge}c(i,r.merge),i.keyFn=o===!1?BN:or(o)?Mw(o):typeof o=="function"?o:i.keyFn,a&&Object.keys(a).forEach(function(d){var u=n.getFieldPolicy(e,d,!0),f=a[d];if(typeof f=="function")u.read=f;else{var _=f.keyArgs,y=f.read,b=f.merge;u.keyFn=_===!1?Fw:or(_)?Dw(_):typeof _=="function"?_:u.keyFn,typeof y=="function"&&(u.read=y),c(u,b)}u.read&&u.merge&&(u.keyFn=u.keyFn||Fw)})},t.prototype.setRootTypename=function(e,r){r===void 0&&(r=e);var n="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[n];r!==i&&(nt(!i||i===e,3,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[r]=n,this.rootTypenamesById[n]=r)},t.prototype.addPossibleTypes=function(e){var r=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){r.getSupertypeSet(n,!0),e[n].forEach(function(i){r.getSupertypeSet(i,!0).add(n);var o=i.match(Y3);(!o||o[0]!==i)&&r.fuzzySubtypes.set(i,new RegExp(i))})})},t.prototype.getTypePolicy=function(e){var r=this;if(!Ar.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(a,c){if(a.test(e)){var d=r.supertypeMap.get(c);d&&d.forEach(function(u){return i.add(u)})}})),i&&i.size&&i.forEach(function(a){var c=r.getTypePolicy(a),d=c.fields,u=pa(c,["fields"]);Object.assign(n,u),Object.assign(n.fields,d)})}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach(function(a){r.updateTypePolicy(e,a)}),this.typePolicies[e]},t.prototype.getFieldPolicy=function(e,r,n){if(e){var i=this.getTypePolicy(e).fields;return i[r]||n&&(i[r]=Object.create(null))}},t.prototype.getSupertypeSet=function(e,r){var n=this.supertypeMap.get(e);return!n&&r&&this.supertypeMap.set(e,n=new Set),n},t.prototype.fragmentMatches=function(e,r,n,i){var o=this;if(!e.typeCondition)return!0;if(!r)return!1;var a=e.typeCondition.name.value;if(r===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var c=this.getSupertypeSet(r,!0),d=[c],u=function(p){var m=o.getSupertypeSet(p,!1);m&&m.size&&d.indexOf(m)<0&&d.push(m)},f=!!(n&&this.fuzzySubtypes.size),_=!1,y=0;y1?i:e}:(a=re({},n),Ar.call(a,"from")||(a.from=e)),globalThis.__DEV__!==!1&&a.from===void 0&&globalThis.__DEV__!==!1&&nt.warn(5,r3(Array.from(t))),a.variables===void 0&&(a.variables=r),a}function rk(t){return function(r,n){if(or(r)||or(n))throw on(6);if(er(r)&&er(n)){var i=t.getFieldValue(r,"__typename"),o=t.getFieldValue(n,"__typename"),a=i&&o&&i!==o;if(a)return n;if(Nt(r)&&al(n))return t.merge(r.__ref,n),r;if(al(r)&&Nt(n))return t.merge(r,n.__ref),n;if(al(r)&&al(n))return re(re({},r),n)}return n}}function mv(t,e,r){var n="".concat(e).concat(r),i=t.flavors.get(n);return i||t.flavors.set(n,i=t.clientOnly===e&&t.deferred===r?t:re(re({},t),{clientOnly:e,deferred:r})),i}var VN=function(){function t(e,r,n){this.cache=e,this.reader=r,this.fragments=n}return t.prototype.writeToStore=function(e,r){var n=this,i=r.query,o=r.result,a=r.dataId,c=r.variables,d=r.overwrite,u=Vd(i),f=AN();c=re(re({},nb(u)),c);var _=re(re({store:e,written:Object.create(null),merge:function(b,p){return f.merge(b,p)},variables:c,varString:as(c)},Z3(i,this.fragments)),{overwrite:!!d,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),y=this.processSelectionSet({result:o||Object.create(null),dataId:a,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:_});if(!Nt(y))throw on(9,o);return _.incomingById.forEach(function(b,p){var m=b.storeObject,g=b.mergeTree,v=b.fieldNodeSet,x=pl(p);if(g&&g.map.size){var E=n.applyMerges(g,x,m,_);if(Nt(E))return;m=E}if(globalThis.__DEV__!==!1&&!_.overwrite){var T=Object.create(null);v.forEach(function(L){L.selectionSet&&(T[L.name.value]=!0)});var C=function(L){return T[_a(L)]===!0},A=function(L){var R=g&&g.map.get(L);return!!(R&&R.info&&R.info.merge)};Object.keys(m).forEach(function(L){C(L)&&!A(L)&&jN(x,m,L,_.store)})}e.merge(p,m)}),e.retain(y.__ref),y},t.prototype.processSelectionSet=function(e){var r=this,n=e.dataId,i=e.result,o=e.selectionSet,a=e.context,c=e.mergeTree,d=this.cache.policies,u=Object.create(null),f=n&&d.rootTypenamesById[n]||pg(i,o,a.fragmentMap)||n&&a.store.get(n,"__typename");typeof f=="string"&&(u.__typename=f);var _=function(){var E=gb(arguments,u,a.variables);if(Nt(E.from)){var T=a.incomingById.get(E.from.__ref);if(T){var C=d.readField(re(re({},E),{from:T.storeObject}),a);if(C!==void 0)return C}}return d.readField(E,a)},y=new Set;this.flattenFields(o,i,a,f).forEach(function(E,T){var C,A=ha(T),L=i[A];if(y.add(T),L!==void 0){var R=d.getStoreFieldName({typename:f,fieldName:T.name.value,field:T,variables:E.variables}),D=Bw(c,R),q=r.processFieldValue(L,T,T.selectionSet?mv(E,!1,!1):E,D),H=void 0;T.selectionSet&&(Nt(q)||al(q))&&(H=_("__typename",q));var U=d.getMergeFunction(f,T.name.value,H);U?D.info={field:T,typename:f,merge:U}:Uw(c,R),u=E.merge(u,(C={},C[R]=q,C))}else globalThis.__DEV__!==!1&&!E.clientOnly&&!E.deferred&&!ib.added(T)&&!d.getReadFunction(f,T.name.value)&&globalThis.__DEV__!==!1&&nt.error(10,ha(T),i)});try{var b=d.identify(i,{typename:f,selectionSet:o,fragmentMap:a.fragmentMap,storeObject:u,readField:_}),p=b[0],m=b[1];n=n||p,m&&(u=a.merge(u,m))}catch(E){if(!n)throw E}if(typeof n=="string"){var g=pl(n),v=a.written[n]||(a.written[n]=[]);if(v.indexOf(o)>=0||(v.push(o),this.reader&&this.reader.isFresh(i,g,o,a)))return g;var x=a.incomingById.get(n);return x?(x.storeObject=a.merge(x.storeObject,u),x.mergeTree=Ig(x.mergeTree,c),y.forEach(function(E){return x.fieldNodeSet.add(E)})):a.incomingById.set(n,{storeObject:u,mergeTree:hp(c)?void 0:c,fieldNodeSet:y}),g}return u},t.prototype.processFieldValue=function(e,r,n,i){var o=this;return!r.selectionSet||e===null?globalThis.__DEV__!==!1?A3(e):e:or(e)?e.map(function(a,c){var d=o.processFieldValue(a,r,n,Bw(i,c));return Uw(i,c),d}):this.processSelectionSet({result:e,selectionSet:r.selectionSet,context:n,mergeTree:i})},t.prototype.flattenFields=function(e,r,n,i){i===void 0&&(i=pg(r,e,n.fragmentMap));var o=new Map,a=this.cache.policies,c=new Ta(!1);return function d(u,f){var _=c.lookup(u,f.clientOnly,f.deferred);_.visited||(_.visited=!0,u.selections.forEach(function(y){if(Bd(y,n.variables)){var b=f.clientOnly,p=f.deferred;if(!(b&&p)&&qi(y.directives)&&y.directives.forEach(function(v){var x=v.name.value;if(x==="client"&&(b=!0),x==="defer"){var E=nh(v,n.variables);(!E||E.if!==!1)&&(p=!0)}}),ma(y)){var m=o.get(y);m&&(b=b&&m.clientOnly,p=p&&m.deferred),o.set(y,mv(n,b,p))}else{var g=rh(y,n.lookupFragment);if(!g&&y.kind===je.FRAGMENT_SPREAD)throw on(11,y.name.value);g&&a.fragmentMatches(g,i,r,n.variables)&&d(g.selectionSet,mv(n,b,p))}}}))}(e,n),o},t.prototype.applyMerges=function(e,r,n,i,o){var a,c=this;if(e.map.size&&!Nt(n)){var d=!or(n)&&(Nt(r)||al(r))?r:void 0,u=n;d&&!o&&(o=[Nt(d)?d.__ref:d]);var f,_=function(y,b){return or(y)?typeof b=="number"?y[b]:void 0:i.store.getFieldValue(y,String(b))};e.map.forEach(function(y,b){var p=_(d,b),m=_(u,b);if(m!==void 0){o&&o.push(b);var g=c.applyMerges(y,p,m,i,o);g!==m&&(f=f||new Map,f.set(b,g)),o&&nt(o.pop()===b)}}),f&&(n=or(u)?u.slice(0):re({},u),f.forEach(function(y,b){n[b]=y}))}return e.info?this.cache.policies.runMergeFunction(r,n,e.info,i,o&&(a=i.store).getStorage.apply(a,o)):n},t}(),nk=[];function Bw(t,e){var r=t.map;return r.has(e)||r.set(e,nk.pop()||{map:new Map}),r.get(e)}function Ig(t,e){if(t===e||!e||hp(e))return t;if(!t||hp(t))return e;var r=t.info&&e.info?re(re({},t.info),e.info):t.info||e.info,n=t.map.size&&e.map.size,i=n?new Map:t.map.size?t.map:e.map,o={info:r,map:i};if(n){var a=new Set(e.map.keys());t.map.forEach(function(c,d){o.map.set(d,Ig(c,e.map.get(d))),a.delete(d)}),a.forEach(function(c){o.map.set(c,Ig(e.map.get(c),t.map.get(c)))})}return o}function hp(t){return!t||!(t.info||t.map.size)}function Uw(t,e){var r=t.map,n=r.get(e);n&&hp(n)&&(nk.push(n),r.delete(e))}var Vw=new Set;function jN(t,e,r,n){var i=function(_){var y=n.getFieldValue(_,r);return typeof y=="object"&&y},o=i(t);if(o){var a=i(e);if(a&&!Nt(o)&&!rr(o,a)&&!Object.keys(o).every(function(_){return n.getFieldValue(a,_)!==void 0})){var c=n.getFieldValue(t,"__typename")||n.getFieldValue(e,"__typename"),d=_a(r),u="".concat(c,".").concat(d);if(!Vw.has(u)){Vw.add(u);var f=[];!or(o)&&!or(a)&&[o,a].forEach(function(_){var y=n.getFieldValue(_,"__typename");typeof y=="string"&&!f.includes(y)&&f.push(y)}),globalThis.__DEV__!==!1&&nt.warn(12,d,c,f.length?"either ensure all objects of type "+f.join(" and ")+" have an ID or a custom merge function, or ":"",u,o,a)}}}}var ik=function(t){Wi(e,t);function e(r){r===void 0&&(r={});var n=t.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new y3(ib),n.assumeImmutableResults=!0,n.makeVar=zN,n.txCount=0,n.config=kN(r),n.addTypename=!!n.config.addTypename,n.policies=new UN({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return e.prototype.init=function(){var r=this.data=new Ed.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=r.stump,this.resetResultCache()},e.prototype.resetResultCache=function(r){var n=this,i=this.storeReader,o=this.config.fragments;this.storeWriter=new VN(this,this.storeReader=new ON({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:K3(this.config),canon:r?void 0:i&&i.canon,fragments:o}),o),this.maybeBroadcastWatch=pp(function(a,c){return n.broadcastWatch(a,c)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(a){var c=a.optimistic?n.optimisticData:n.data;if(Kc(c)){var d=a.optimistic,u=a.id,f=a.variables;return c.makeCacheKey(a.query,a.callback,as({optimistic:d,id:u,variables:f}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(a){return a.resetCaching()})},e.prototype.restore=function(r){return this.init(),r&&this.data.replace(r),this},e.prototype.extract=function(r){return r===void 0&&(r=!1),(r?this.optimisticData:this.data).extract()},e.prototype.read=function(r){var n=r.returnPartialData,i=n===void 0?!1:n;try{return this.storeReader.diffQueryAgainstStore(re(re({},r),{store:r.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(o){if(o instanceof G3)return null;throw o}},e.prototype.write=function(r){try{return++this.txCount,this.storeWriter.writeToStore(this.data,r)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.modify=function(r){if(Ar.call(r,"id")&&!r.id)return!1;var n=r.optimistic?this.optimisticData:this.data;try{return++this.txCount,n.modify(r.id||"ROOT_QUERY",r.fields)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.diff=function(r){return this.storeReader.diffQueryAgainstStore(re(re({},r),{store:r.optimistic?this.optimisticData:this.data,rootId:r.id||"ROOT_QUERY",config:this.config}))},e.prototype.watch=function(r){var n=this;return this.watches.size||NN(this),this.watches.add(r),r.immediate&&this.maybeBroadcastWatch(r),function(){n.watches.delete(r)&&!n.watches.size&&Rw(n),n.maybeBroadcastWatch.forget(r)}},e.prototype.gc=function(r){as.reset();var n=this.optimisticData.gc();return r&&!this.txCount&&(r.resetResultCache?this.resetResultCache(r.resetResultIdentities):r.resetResultIdentities&&this.storeReader.resetCanon()),n},e.prototype.retain=function(r,n){return(n?this.optimisticData:this.data).retain(r)},e.prototype.release=function(r,n){return(n?this.optimisticData:this.data).release(r)},e.prototype.identify=function(r){if(Nt(r))return r.__ref;try{return this.policies.identify(r)[0]}catch(n){globalThis.__DEV__!==!1&&nt.warn(n)}},e.prototype.evict=function(r){if(!r.id){if(Ar.call(r,"id"))return!1;r=re(re({},r),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(r,this.data)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.reset=function(r){var n=this;return this.init(),as.reset(),r&&r.discardWatches?(this.watches.forEach(function(i){return n.maybeBroadcastWatch.forget(i)}),this.watches.clear(),Rw(this)):this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(r){var n=this.optimisticData.removeLayer(r);n!==this.optimisticData&&(this.optimisticData=n,this.broadcastWatches())},e.prototype.batch=function(r){var n=this,i=r.update,o=r.optimistic,a=o===void 0?!0:o,c=r.removeOptimistic,d=r.onWatchUpdated,u,f=function(y){var b=n,p=b.data,m=b.optimisticData;++n.txCount,y&&(n.data=n.optimisticData=y);try{return u=i(n)}finally{--n.txCount,n.data=p,n.optimisticData=m}},_=new Set;return d&&!this.txCount&&this.broadcastWatches(re(re({},r),{onWatchUpdated:function(y){return _.add(y),!1}})),typeof a=="string"?this.optimisticData=this.optimisticData.addLayer(a,f):a===!1?f(this.data):f(),typeof c=="string"&&(this.optimisticData=this.optimisticData.removeLayer(c)),d&&_.size?(this.broadcastWatches(re(re({},r),{onWatchUpdated:function(y,b){var p=d.call(this,y,b);return p!==!1&&_.delete(y),p}})),_.size&&_.forEach(function(y){return n.maybeBroadcastWatch.dirty(y)})):this.broadcastWatches(r),u},e.prototype.performTransaction=function(r,n){return this.batch({update:r,optimistic:n||n!==null})},e.prototype.transformDocument=function(r){return this.addTypenameToDocument(this.addFragmentsToDocument(r))},e.prototype.broadcastWatches=function(r){var n=this;this.txCount||this.watches.forEach(function(i){return n.maybeBroadcastWatch(i,r)})},e.prototype.addFragmentsToDocument=function(r){var n=this.config.fragments;return n?n.transform(r):r},e.prototype.addTypenameToDocument=function(r){return this.addTypename?this.addTypenameTransform.transformDocument(r):r},e.prototype.broadcastWatch=function(r,n){var i=r.lastDiff,o=this.diff(r);n&&(r.optimistic&&typeof n.optimistic=="string"&&(o.fromOptimisticTransaction=!0),n.onWatchUpdated&&n.onWatchUpdated.call(this,r,o,i)===!1)||(!i||!rr(i.result,o.result))&&r.callback(r.lastDiff=o,i)},e}(TN),Ft;(function(t){t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error"})(Ft||(Ft={}));function Td(t){return t?t<7:!1}function HN(t,e,r,n){var i=e.data,o=pa(e,["data"]),a=r.data,c=pa(r,["data"]);return rr(o,c)&&Qf(jd(t).selectionSet,i,a,{fragmentMap:th(ih(t)),variables:n})}function Qf(t,e,r,n){if(e===r)return!0;var i=new Set;return t.selections.every(function(o){if(i.has(o)||(i.add(o),!Bd(o,n.variables))||jw(o))return!0;if(ma(o)){var a=ha(o),c=e&&e[a],d=r&&r[a],u=o.selectionSet;if(!u)return rr(c,d);var f=Array.isArray(c),_=Array.isArray(d);if(f!==_)return!1;if(f&&_){var y=c.length;if(d.length!==y)return!1;for(var b=0;b0},e.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(r){return r.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},e.prototype.transformDocument=function(r){return this.queryManager.transform(r)},e}(Gt);S3($g);function ok(t){var e=t.options,r=e.fetchPolicy,n=e.nextFetchPolicy;return r==="cache-and-network"||r==="network-only"?t.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=n,typeof n=="function"?n.apply(this,arguments):r}}):t.reobserve()}function QN(t){globalThis.__DEV__!==!1&&nt.error(21,t.message,t.stack)}function ak(t){globalThis.__DEV__!==!1&&t&&globalThis.__DEV__!==!1&&nt.debug(22,t)}function vv(t){return t==="network-only"||t==="no-cache"||t==="standby"}var sk=function(){function t(e){var r=e.cache,n=e.client,i=e.resolvers,o=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=r,n&&(this.client=n),i&&this.addResolvers(i),o&&this.setFragmentMatcher(o)}return t.prototype.addResolvers=function(e){var r=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(n){r.resolvers=aw(r.resolvers,n)}):this.resolvers=aw(this.resolvers,e)},t.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},t.prototype.getResolvers=function(){return this.resolvers||{}},t.prototype.runResolvers=function(e){var r=e.document,n=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,c=a===void 0?!1:a;return Zo(this,void 0,void 0,function(){return Xo(this,function(d){return r?[2,this.resolveDocument(r,n.data,i,o,this.fragmentMatcher,c).then(function(u){return re(re({},n),{data:u.result})})]:[2,n]})})},t.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(e){return xd(["client"],e)&&this.resolvers?e:null},t.prototype.serverQuery=function(e){return E3(e)},t.prototype.prepareContext=function(e){var r=this.cache;return re(re({},e),{cache:r,getCacheKey:function(n){return r.identify(n)}})},t.prototype.addExportedVariables=function(e,r,n){return r===void 0&&(r={}),n===void 0&&(n={}),Zo(this,void 0,void 0,function(){return Xo(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,r)||{},this.prepareContext(n),r).then(function(o){return re(re({},r),o.exportedVariables)})]:[2,re({},r)]})})},t.prototype.shouldForceResolvers=function(e){var r=!1;return zi(e,{Directive:{enter:function(n){if(n.name.value==="client"&&n.arguments&&(r=n.arguments.some(function(i){return i.name.value==="always"&&i.value.kind==="BooleanValue"&&i.value.value===!0}),r))return tb}}}),r},t.prototype.buildRootValueFromCache=function(e,r){return this.cache.diff({query:hF(e),variables:r,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(e,r,n,i,o,a){return n===void 0&&(n={}),i===void 0&&(i={}),o===void 0&&(o=function(){return!0}),a===void 0&&(a=!1),Zo(this,void 0,void 0,function(){var c,d,u,f,_,y,b,p,m,g,v;return Xo(this,function(x){return c=jd(e),d=ih(e),u=th(d),f=this.collectSelectionsToResolve(c,u),_=c.operation,y=_?_.charAt(0).toUpperCase()+_.slice(1):"Query",b=this,p=b.cache,m=b.client,g={fragmentMap:u,context:re(re({},n),{cache:p,client:m}),variables:i,fragmentMatcher:o,defaultOperationType:y,exportedVariables:{},selectionsToResolve:f,onlyRunForcedResolvers:a},v=!1,[2,this.resolveSelectionSet(c.selectionSet,v,r,g).then(function(E){return{result:E,exportedVariables:g.exportedVariables}})]})})},t.prototype.resolveSelectionSet=function(e,r,n,i){return Zo(this,void 0,void 0,function(){var o,a,c,d,u,f=this;return Xo(this,function(_){return o=i.fragmentMap,a=i.context,c=i.variables,d=[n],u=function(y){return Zo(f,void 0,void 0,function(){var b,p;return Xo(this,function(m){return!r&&!i.selectionsToResolve.has(y)?[2]:Bd(y,c)?ma(y)?[2,this.resolveField(y,r,n,i).then(function(g){var v;typeof g<"u"&&d.push((v={},v[ha(y)]=g,v))})]:(cF(y)?b=y:(b=o[y.name.value],nt(b,16,y.name.value)),b&&b.typeCondition&&(p=b.typeCondition.name.value,i.fragmentMatcher(n,p,a))?[2,this.resolveSelectionSet(b.selectionSet,r,n,i).then(function(g){d.push(g)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(u)).then(function(){return ob(d)})]})})},t.prototype.resolveField=function(e,r,n,i){return Zo(this,void 0,void 0,function(){var o,a,c,d,u,f,_,y,b,p=this;return Xo(this,function(m){return n?(o=i.variables,a=e.name.value,c=ha(e),d=a!==c,u=n[c]||n[a],f=Promise.resolve(u),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(_=n.__typename||i.defaultOperationType,y=this.resolvers&&this.resolvers[_],y&&(b=y[d?a:c],b&&(f=Promise.resolve(hb.withValue(this.cache,b,[n,nh(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}]))))),[2,f.then(function(g){var v,x;if(g===void 0&&(g=u),e.directives&&e.directives.forEach(function(T){T.name.value==="export"&&T.arguments&&T.arguments.forEach(function(C){C.name.value==="as"&&C.value.kind==="StringValue"&&(i.exportedVariables[C.value.value]=g)})}),!e.selectionSet||g==null)return g;var E=(x=(v=e.directives)===null||v===void 0?void 0:v.some(function(T){return T.name.value==="client"}))!==null&&x!==void 0?x:!1;if(Array.isArray(g))return p.resolveSubSelectedArray(e,r||E,g,i);if(e.selectionSet)return p.resolveSelectionSet(e.selectionSet,r||E,g,i)})]):[2,null]})})},t.prototype.resolveSubSelectedArray=function(e,r,n,i){var o=this;return Promise.all(n.map(function(a){if(a===null)return null;if(Array.isArray(a))return o.resolveSubSelectedArray(e,r,a,i);if(e.selectionSet)return o.resolveSelectionSet(e.selectionSet,r,a,i)}))},t.prototype.collectSelectionsToResolve=function(e,r){var n=function(a){return!Array.isArray(a)},i=this.selectionsToResolveCache;function o(a){if(!i.has(a)){var c=new Set;i.set(a,c),zi(a,{Directive:function(d,u,f,_,y){d.name.value==="client"&&y.forEach(function(b){n(b)&&rw(b)&&c.add(b)})},FragmentSpread:function(d,u,f,_,y){var b=r[d.name.value];nt(b,17,d.name.value);var p=o(b);p.size>0&&(y.forEach(function(m){n(m)&&rw(m)&&c.add(m)}),c.add(d),p.forEach(function(m){c.add(m)}))}})}return i.get(a)}return o(e)},t}(),sl=new(wo?WeakMap:Map);function gv(t,e){var r=t[e];typeof r=="function"&&(t[e]=function(){return sl.set(t,(sl.get(t)+1)%1e15),r.apply(this,arguments)})}function Gw(t){t.notifyTimeout&&(clearTimeout(t.notifyTimeout),t.notifyTimeout=void 0)}var _v=function(){function t(e,r){r===void 0&&(r=e.generateQueryId()),this.queryId=r,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;sl.has(n)||(sl.set(n,0),gv(n,"evict"),gv(n,"modify"),gv(n,"reset"))}return t.prototype.init=function(e){var r=e.networkStatus||Ft.loading;return this.variables&&this.networkStatus!==Ft.loading&&!rr(this.variables,e.variables)&&(r=Ft.setVariables),rr(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:r}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},t.prototype.reset=function(){Gw(this),this.dirty=!1},t.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&rr(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var r=this.observableQuery;if(r&&r.options.fetchPolicy==="no-cache")return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),n},t.prototype.updateLastDiff=function(e,r){this.lastDiff=e?{diff:e,options:r||this.getDiffOptions()}:void 0},t.prototype.getDiffOptions=function(e){var r;return e===void 0&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:(r=this.observableQuery)===null||r===void 0?void 0:r.options.canonizeResults}},t.prototype.setDiff=function(e){var r=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),!this.dirty&&!rr(n&&n.result,e&&e.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0)))},t.prototype.setObservableQuery=function(e){var r=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){var n=r.getDiff();n.fromOptimisticTransaction?e.observe():ok(e)})):delete this.oqListener)},t.prototype.notify=function(){var e=this;Gw(this),this.shouldNotify()&&this.listeners.forEach(function(r){return r(e)}),this.dirty=!1},t.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Td(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if(e!=="cache-only"&&e!=="cache-and-network")return!1}return!0},t.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=t.prototype.cancel;var e=this.observableQuery;e&&e.stopPolling()}},t.prototype.cancel=function(){},t.prototype.updateWatch=function(e){var r=this;e===void 0&&(e=this.variables);var n=this.observableQuery;if(!(n&&n.options.fetchPolicy==="no-cache")){var i=re(re({},this.getDiffOptions(e)),{watcher:this,callback:function(o){return r.setDiff(o)}});(!this.lastWatch||!rr(i,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},t.prototype.resetLastWrite=function(){this.lastWrite=void 0},t.prototype.shouldWrite=function(e,r){var n=this.lastWrite;return!(n&&n.dmCount===sl.get(this.cache)&&rr(r,n.variables)&&rr(e.data,n.result.data))},t.prototype.markResult=function(e,r,n,i){var o=this,a=new va,c=qi(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&qi(e.incremental)){var d=I3(this.getDiff().result,e);e.data=d}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=a.merge(u.result,e.data)}this.graphQLErrors=c,n.fetchPolicy==="no-cache"?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):i!==0&&(Og(e,n.errorPolicy)?this.cache.performTransaction(function(f){if(o.shouldWrite(e,n.variables))f.writeQuery({query:r,data:e.data,variables:n.variables,overwrite:i===1}),o.lastWrite={result:e,variables:n.variables,dmCount:sl.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete){e.data=o.lastDiff.diff.result;return}var _=o.getDiffOptions(n.variables),y=f.diff(_);!o.stopped&&rr(o.variables,n.variables)&&o.updateWatch(n.variables),o.updateLastDiff(y,_),y.complete&&(e.data=y.result)}):this.lastWrite=void 0)},t.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Ft.ready},t.prototype.markError=function(e){return this.networkStatus=Ft.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},t}();function Og(t,e){e===void 0&&(e="none");var r=e==="ignore"||e==="all",n=!Hf(t);return!n&&r&&t.data&&(n=!0),n}var KN=Object.prototype.hasOwnProperty,YN=function(){function t(e){var r=this,n=e.cache,i=e.link,o=e.defaultOptions,a=e.documentTransform,c=e.queryDeduplication,d=c===void 0?!1:c,u=e.onBroadcast,f=e.ssrMode,_=f===void 0?!1:f,y=e.clientAwareness,b=y===void 0?{}:y,p=e.localState,m=e.assumeImmutableResults,g=m===void 0?!!n.assumeImmutableResults:m;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(wo?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var v=new y3(function(x){return r.cache.transformDocument(x)},{cache:!1});this.cache=n,this.link=i,this.defaultOptions=o||Object.create(null),this.queryDeduplication=d,this.clientAwareness=b,this.localState=p||new sk({cache:n}),this.ssrMode=_,this.assumeImmutableResults=g,this.documentTransform=a?v.concat(a).concat(v):v,(this.onBroadcast=u)&&(this.mutationStore=Object.create(null))}return t.prototype.stop=function(){var e=this;this.queries.forEach(function(r,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(on(23))},t.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(r){return r(e)}),this.fetchCancelFns.clear()},t.prototype.mutate=function(e){var r,n,i=e.mutation,o=e.variables,a=e.optimisticResponse,c=e.updateQueries,d=e.refetchQueries,u=d===void 0?[]:d,f=e.awaitRefetchQueries,_=f===void 0?!1:f,y=e.update,b=e.onQueryUpdated,p=e.fetchPolicy,m=p===void 0?((r=this.defaultOptions.mutate)===null||r===void 0?void 0:r.fetchPolicy)||"network-only":p,g=e.errorPolicy,v=g===void 0?((n=this.defaultOptions.mutate)===null||n===void 0?void 0:n.errorPolicy)||"none":g,x=e.keepRootFields,E=e.context;return Zo(this,void 0,void 0,function(){var T,C,A,L;return Xo(this,function(R){switch(R.label){case 0:return nt(i,24),nt(m==="network-only"||m==="no-cache",25),T=this.generateMutationId(),i=this.cache.transformForLink(this.transform(i)),C=this.getDocumentInfo(i).hasClientExports,o=this.getVariables(i,o),C?[4,this.localState.addExportedVariables(i,o,E)]:[3,2];case 1:o=R.sent(),R.label=2;case 2:return A=this.mutationStore&&(this.mutationStore[T]={mutation:i,variables:o,loading:!0,error:null}),a&&this.markMutationOptimistic(a,{mutationId:T,document:i,variables:o,fetchPolicy:m,errorPolicy:v,context:E,updateQueries:c,update:y,keepRootFields:x}),this.broadcastQueries(),L=this,[2,new Promise(function(D,q){return lv(L.getObservableFromLink(i,re(re({},E),{optimisticResponse:a}),o,!1),function(H){if(Hf(H)&&v==="none")throw new co({graphQLErrors:yg(H)});A&&(A.loading=!1,A.error=null);var U=re({},H);return typeof u=="function"&&(u=u(U)),v==="ignore"&&Hf(U)&&delete U.errors,L.markMutationResult({mutationId:T,result:U,document:i,variables:o,fetchPolicy:m,errorPolicy:v,context:E,update:y,updateQueries:c,awaitRefetchQueries:_,refetchQueries:u,removeOptimistic:a?T:void 0,onQueryUpdated:b,keepRootFields:x})}).subscribe({next:function(H){L.broadcastQueries(),(!("hasNext"in H)||H.hasNext===!1)&&D(H)},error:function(H){A&&(A.loading=!1,A.error=H),a&&L.cache.removeOptimistic(T),L.broadcastQueries(),q(H instanceof co?H:new co({networkError:H}))}})})]}})})},t.prototype.markMutationResult=function(e,r){var n=this;r===void 0&&(r=this.cache);var i=e.result,o=[],a=e.fetchPolicy==="no-cache";if(!a&&Og(i,e.errorPolicy)){if(hl(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),hl(i)&&qi(i.incremental)){var c=r.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),d=void 0;c.result&&(d=I3(c.result,i)),typeof d<"u"&&(i.data=d,o.push({result:d,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach(function(_,y){var b=_.observableQuery,p=b&&b.queryName;if(!(!p||!KN.call(u,p))){var m=u[p],g=n.queries.get(y),v=g.document,x=g.variables,E=r.diff({query:v,variables:x,returnPartialData:!0,optimistic:!1}),T=E.result,C=E.complete;if(C&&T){var A=m(T,{mutationResult:i,queryName:v&&hg(v)||void 0,queryVariables:x});A&&o.push({result:A,dataId:"ROOT_QUERY",query:v,variables:x})}}})}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(_){a||o.forEach(function(m){return _.write(m)});var y=e.update,b=!IF(i)||hl(i)&&!i.hasNext;if(y){if(!a){var p=_.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});p.complete&&(i=re(re({},i),{data:p.result}),"incremental"in i&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}b&&y(_,i,{context:e.context,variables:e.variables})}!a&&!e.keepRootFields&&b&&_.modify({id:"ROOT_MUTATION",fields:function(m,g){var v=g.fieldName,x=g.DELETE;return v==="__typename"?m:x}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(_){return f.push(_)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(f).then(function(){return i})}return Promise.resolve(i)},t.prototype.markMutationOptimistic=function(e,r){var n=this,i=typeof e=="function"?e(r.variables):e;return this.cache.recordOptimisticTransaction(function(o){try{n.markMutationResult(re(re({},r),{result:{data:i}}),o)}catch(a){globalThis.__DEV__!==!1&&nt.error(a)}},r.mutationId)},t.prototype.fetchQuery=function(e,r,n){return this.fetchConcastWithInfo(e,r,n).concast.promise},t.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(r,n){e[n]={variables:r.variables,networkStatus:r.networkStatus,networkError:r.networkError,graphQLErrors:r.graphQLErrors}}),e},t.prototype.resetErrors=function(e){var r=this.queries.get(e);r&&(r.networkError=void 0,r.graphQLErrors=[])},t.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},t.prototype.getDocumentInfo=function(e){var r=this.transformCache;if(!r.has(e)){var n={hasClientExports:UD(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:xd(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:w3([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:nb(Vd(e)),asQuery:re(re({},e),{definitions:e.definitions.map(function(i){return i.kind==="OperationDefinition"&&i.operation!=="query"?re(re({},i),{operation:"query"}):i})})};r.set(e,n)}return r.get(e)},t.prototype.getVariables=function(e,r){return re(re({},this.getDocumentInfo(e).defaultVars),r)},t.prototype.watchQuery=function(e){var r=this.transform(e.query);e=re(re({},e),{variables:this.getVariables(r,e.variables)}),typeof e.notifyOnNetworkStatusChange>"u"&&(e.notifyOnNetworkStatusChange=!1);var n=new _v(this),i=new $g({queryManager:this,queryInfo:n,options:e});return i.lastQuery=r,this.queries.set(i.queryId,n),n.init({document:r,observableQuery:i,variables:i.variables}),i},t.prototype.query=function(e,r){var n=this;return r===void 0&&(r=this.generateQueryId()),nt(e.query,26),nt(e.query.kind==="Document",27),nt(!e.returnPartialData,28),nt(!e.pollInterval,29),this.fetchQuery(r,re(re({},e),{query:this.transform(e.query)})).finally(function(){return n.stopQuery(r)})},t.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},t.prototype.generateRequestId=function(){return this.requestIdCounter++},t.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},t.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},t.prototype.stopQueryInStoreNoBroadcast=function(e){var r=this.queries.get(e);r&&r.stop()},t.prototype.clearStore=function(e){return e===void 0&&(e={discardWatches:!0}),this.cancelPendingFetches(on(30)),this.queries.forEach(function(r){r.observableQuery?r.networkStatus=Ft.loading:r.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},t.prototype.getObservableQueries=function(e){var r=this;e===void 0&&(e="active");var n=new Map,i=new Map,o=new Set;return Array.isArray(e)&&e.forEach(function(a){typeof a=="string"?i.set(a,!1):YD(a)?i.set(r.transform(a),!1):er(a)&&a.query&&o.add(a)}),this.queries.forEach(function(a,c){var d=a.observableQuery,u=a.document;if(d){if(e==="all"){n.set(c,d);return}var f=d.queryName,_=d.options.fetchPolicy;if(_==="standby"||e==="active"&&!d.hasObservers())return;(e==="active"||f&&i.has(f)||u&&i.has(u))&&(n.set(c,d),f&&i.set(f,!0),u&&i.set(u,!0))}}),o.size&&o.forEach(function(a){var c=cg("legacyOneTimeQuery"),d=r.getQuery(c).init({document:a.query,variables:a.variables}),u=new $g({queryManager:r,queryInfo:d,options:re(re({},a),{fetchPolicy:"network-only"})});nt(u.queryId===c),d.setObservableQuery(u),n.set(c,u)}),globalThis.__DEV__!==!1&&i.size&&i.forEach(function(a,c){a||globalThis.__DEV__!==!1&&nt.warn(typeof c=="string"?31:32,c)}),n},t.prototype.reFetchObservableQueries=function(e){var r=this;e===void 0&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(i,o){var a=i.options.fetchPolicy;i.resetLastResults(),(e||a!=="standby"&&a!=="cache-only")&&n.push(i.refetch()),r.getQuery(o).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},t.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},t.prototype.startGraphQLSubscription=function(e){var r=this,n=e.query,i=e.fetchPolicy,o=e.errorPolicy,a=o===void 0?"none":o,c=e.variables,d=e.context,u=d===void 0?{}:d;n=this.transform(n),c=this.getVariables(n,c);var f=function(y){return r.getObservableFromLink(n,u,y).map(function(b){i!=="no-cache"&&(Og(b,a)&&r.cache.write({query:n,result:b.data,dataId:"ROOT_SUBSCRIPTION",variables:y}),r.broadcastQueries());var p=Hf(b),m=HF(b);if(p||m){var g={};if(p&&(g.graphQLErrors=b.errors),m&&(g.protocolErrors=b.extensions[db]),a==="none"||m)throw new co(g)}return a==="ignore"&&delete b.errors,b})};if(this.getDocumentInfo(n).hasClientExports){var _=this.localState.addExportedVariables(n,c,u).then(f);return new Gt(function(y){var b=null;return _.then(function(p){return b=p.subscribe(y)},y.error),function(){return b&&b.unsubscribe()}})}return f(c)},t.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},t.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},t.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},t.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},t.prototype.getLocalState=function(){return this.localState},t.prototype.getObservableFromLink=function(e,r,n,i){var o=this,a;i===void 0&&(i=(a=r==null?void 0:r.queryDeduplication)!==null&&a!==void 0?a:this.queryDeduplication);var c,d=this.getDocumentInfo(e),u=d.serverQuery,f=d.clientQuery;if(u){var _=this,y=_.inFlightLinkObservables,b=_.link,p={query:u,variables:n,operationName:hg(u)||void 0,context:this.prepareContext(re(re({},r),{forceFetch:!i}))};if(r=p.context,i){var m=b3(u),g=y.get(m)||new Map;y.set(m,g);var v=as(n);if(c=g.get(v),!c){var x=new Js([xg(b,p)]);g.set(v,c=x),x.beforeNext(function(){g.delete(v)&&g.size<1&&y.delete(m)})}}else c=new Js([xg(b,p)])}else c=new Js([Gt.of({data:{}})]),r=this.prepareContext(r);return f&&(c=lv(c,function(E){return o.localState.runResolvers({document:f,remoteResult:E,context:r,variables:n})})),c},t.prototype.getResultsFromLink=function(e,r,n){var i=e.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(n.query);return lv(this.getObservableFromLink(o,n.context,n.variables),function(a){var c=yg(a),d=c.length>0;if(i>=e.lastRequestId){if(d&&n.errorPolicy==="none")throw e.markError(new co({graphQLErrors:c}));e.markResult(a,o,n,r),e.markReady()}var u={data:a.data,loading:!1,networkStatus:Ft.ready};return d&&n.errorPolicy!=="ignore"&&(u.errors=c,u.networkStatus=Ft.error),u},function(a){var c=$3(a)?a:new co({networkError:a});throw i>=e.lastRequestId&&e.markError(c),c})},t.prototype.fetchConcastWithInfo=function(e,r,n,i){var o=this;n===void 0&&(n=Ft.loading),i===void 0&&(i=r.query);var a=this.getVariables(i,r.variables),c=this.getQuery(e),d=this.defaultOptions.watchQuery,u=r.fetchPolicy,f=u===void 0?d&&d.fetchPolicy||"cache-first":u,_=r.errorPolicy,y=_===void 0?d&&d.errorPolicy||"none":_,b=r.returnPartialData,p=b===void 0?!1:b,m=r.notifyOnNetworkStatusChange,g=m===void 0?!1:m,v=r.context,x=v===void 0?{}:v,E=Object.assign({},r,{query:i,variables:a,fetchPolicy:f,errorPolicy:y,returnPartialData:p,notifyOnNetworkStatusChange:g,context:x}),T=function(D){E.variables=D;var q=o.fetchQueryByPolicy(c,E,n);return E.fetchPolicy!=="standby"&&q.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",r),q},C=function(){return o.fetchCancelFns.delete(e)};this.fetchCancelFns.set(e,function(D){C(),setTimeout(function(){return A.cancel(D)})});var A,L;if(this.getDocumentInfo(E.query).hasClientExports)A=new Js(this.localState.addExportedVariables(E.query,E.variables,E.context).then(T).then(function(D){return D.sources})),L=!0;else{var R=T(E.variables);L=R.fromLink,A=new Js(R.sources)}return A.promise.then(C,C),{concast:A,fromLink:L}},t.prototype.refetchQueries=function(e){var r=this,n=e.updateCache,i=e.include,o=e.optimistic,a=o===void 0?!1:o,c=e.removeOptimistic,d=c===void 0?a?cg("refetchQueries"):void 0:c,u=e.onQueryUpdated,f=new Map;i&&this.getObservableQueries(i).forEach(function(y,b){f.set(b,{oq:y,lastDiff:r.getQuery(b).getDiff()})});var _=new Map;return n&&this.cache.batch({update:n,optimistic:a&&d||!1,removeOptimistic:d,onWatchUpdated:function(y,b,p){var m=y.watcher instanceof _v&&y.watcher.observableQuery;if(m){if(u){f.delete(m.queryId);var g=u(m,b,p);return g===!0&&(g=m.refetch()),g!==!1&&_.set(m,g),g}u!==null&&f.set(m.queryId,{oq:m,lastDiff:p,diff:b})}}}),f.size&&f.forEach(function(y,b){var p=y.oq,m=y.lastDiff,g=y.diff,v;if(u){if(!g){var x=p.queryInfo;x.reset(),g=x.getDiff()}v=u(p,g,m)}(!u||v===!0)&&(v=p.refetch()),v!==!1&&_.set(p,v),b.indexOf("legacyOneTimeQuery")>=0&&r.stopQueryNoBroadcast(b)}),d&&this.cache.removeOptimistic(d),_},t.prototype.fetchQueryByPolicy=function(e,r,n){var i=this,o=r.query,a=r.variables,c=r.fetchPolicy,d=r.refetchWritePolicy,u=r.errorPolicy,f=r.returnPartialData,_=r.context,y=r.notifyOnNetworkStatusChange,b=e.networkStatus;e.init({document:o,variables:a,networkStatus:n});var p=function(){return e.getDiff()},m=function(T,C){C===void 0&&(C=e.networkStatus||Ft.loading);var A=T.result;globalThis.__DEV__!==!1&&!f&&!rr(A,{})&&ak(T.missing);var L=function(R){return Gt.of(re({data:R,loading:Td(C),networkStatus:C},T.complete?null:{partial:!0}))};return A&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:A},context:_,variables:a,onlyRunForcedResolvers:!0}).then(function(R){return L(R.data||void 0)}):u==="none"&&C===Ft.refetch&&Array.isArray(T.missing)?L(void 0):L(A)},g=c==="no-cache"?0:n===Ft.refetch&&d!=="merge"?1:2,v=function(){return i.getResultsFromLink(e,g,{query:o,variables:a,context:_,fetchPolicy:c,errorPolicy:u})},x=y&&typeof b=="number"&&b!==n&&Td(n);switch(c){default:case"cache-first":{var E=p();return E.complete?{fromLink:!1,sources:[m(E,e.markReady())]}:f||x?{fromLink:!0,sources:[m(E),v()]}:{fromLink:!0,sources:[v()]}}case"cache-and-network":{var E=p();return E.complete||f||x?{fromLink:!0,sources:[m(E),v()]}:{fromLink:!0,sources:[v()]}}case"cache-only":return{fromLink:!1,sources:[m(p(),e.markReady())]};case"network-only":return x?{fromLink:!0,sources:[m(p()),v()]}:{fromLink:!0,sources:[v()]};case"no-cache":return x?{fromLink:!0,sources:[m(e.getDiff()),v()]}:{fromLink:!0,sources:[v()]};case"standby":return{fromLink:!1,sources:[]}}},t.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new _v(this,e)),this.queries.get(e)},t.prototype.prepareContext=function(e){e===void 0&&(e={});var r=this.localState.prepareContext(e);return re(re({},r),{clientAwareness:this.clientAwareness})},t}(),Ww=!1,lk=function(){function t(e){var r=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw on(13);var n=e.uri,i=e.credentials,o=e.headers,a=e.cache,c=e.documentTransform,d=e.ssrMode,u=d===void 0?!1:d,f=e.ssrForceFetchDelay,_=f===void 0?0:f,y=e.connectToDevTools,b=y===void 0?typeof window=="object"&&!window.__APOLLO_CLIENT__&&globalThis.__DEV__!==!1:y,p=e.queryDeduplication,m=p===void 0?!0:p,g=e.defaultOptions,v=e.assumeImmutableResults,x=v===void 0?a.assumeImmutableResults:v,E=e.resolvers,T=e.typeDefs,C=e.fragmentMatcher,A=e.name,L=e.version,R=e.link;R||(R=n?new iN({uri:n,credentials:i,headers:o}):Kl.empty()),this.link=R,this.cache=a,this.disableNetworkFetches=u||_>0,this.queryDeduplication=m,this.defaultOptions=g||Object.create(null),this.typeDefs=T,_&&setTimeout(function(){return r.disableNetworkFetches=!1},_),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Zy,this.localState=new sk({cache:a,client:this,resolvers:E,fragmentMatcher:C}),this.queryManager=new YN({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:c,queryDeduplication:m,ssrMode:u,clientAwareness:{name:A,version:L},localState:this.localState,assumeImmutableResults:x,onBroadcast:b?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.cache.extract(!0)})}:void 0}),b&&this.connectToDevTools()}return t.prototype.connectToDevTools=function(){if(typeof window=="object"){var e=window,r=Symbol.for("apollo.devtools");(e[r]=e[r]||[]).push(this),e.__APOLLO_CLIENT__=this}!Ww&&globalThis.__DEV__!==!1&&(Ww=!0,setTimeout(function(){if(typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var n=window.navigator,i=n&&n.userAgent,o=void 0;typeof i=="string"&&(i.indexOf("Chrome/")>-1?o="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":i.indexOf("Firefox/")>-1&&(o="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),o&&globalThis.__DEV__!==!1&&nt.log("Download the Apollo DevTools for a better development experience: %s",o)}},1e4))},Object.defineProperty(t.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),t.prototype.stop=function(){this.queryManager.stop()},t.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=cv(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&(e.fetchPolicy==="network-only"||e.fetchPolicy==="cache-and-network")&&(e=re(re({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},t.prototype.query=function(e){return this.defaultOptions.query&&(e=cv(this.defaultOptions.query,e)),nt(e.fetchPolicy!=="cache-and-network",14),this.disableNetworkFetches&&e.fetchPolicy==="network-only"&&(e=re(re({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},t.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=cv(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},t.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},t.prototype.readQuery=function(e,r){return r===void 0&&(r=!1),this.cache.readQuery(e,r)},t.prototype.readFragment=function(e,r){return r===void 0&&(r=!1),this.cache.readFragment(e,r)},t.prototype.writeQuery=function(e){var r=this.cache.writeQuery(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),r},t.prototype.writeFragment=function(e){var r=this.cache.writeFragment(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),r},t.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},t.prototype.__requestRaw=function(e){return xg(this.link,e)},t.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(r){return r()}))}).then(function(){return e.reFetchObservableQueries()})},t.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(r){return r()}))})},t.prototype.onResetStore=function(e){var r=this;return this.resetStoreCallbacks.push(e),function(){r.resetStoreCallbacks=r.resetStoreCallbacks.filter(function(n){return n!==e})}},t.prototype.onClearStore=function(e){var r=this;return this.clearStoreCallbacks.push(e),function(){r.clearStoreCallbacks=r.clearStoreCallbacks.filter(function(n){return n!==e})}},t.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},t.prototype.refetchQueries=function(e){var r=this.queryManager.refetchQueries(e),n=[],i=[];r.forEach(function(a,c){n.push(c),i.push(a)});var o=Promise.all(i);return o.queries=n,o.results=i,o.catch(function(a){globalThis.__DEV__!==!1&&nt.debug(15,a)}),o},t.prototype.getObservableQueries=function(e){return e===void 0&&(e="active"),this.queryManager.getObservableQueries(e)},t.prototype.extract=function(e){return this.cache.extract(e)},t.prototype.restore=function(e){return this.cache.restore(e)},t.prototype.addResolvers=function(e){this.localState.addResolvers(e)},t.prototype.setResolvers=function(e){this.localState.setResolvers(e)},t.prototype.getResolvers=function(){return this.localState.getResolvers()},t.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},t.prototype.setLink=function(e){this.link=this.queryManager.link=e},t}(),Kf=new Map,Pg=new Map,ck=!0,mp=!1;function dk(t){return t.replace(/[\s,]+/g," ").trim()}function ZN(t){return dk(t.source.body.substring(t.start,t.end))}function XN(t){var e=new Set,r=[];return t.definitions.forEach(function(n){if(n.kind==="FragmentDefinition"){var i=n.name.value,o=ZN(n.loc),a=Pg.get(i);a&&!a.has(o)?ck&&console.warn("Warning: fragment with name "+i+` already exists. graphql-tag enforces all fragment names across your application to be unique; read more about -this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a||Og.set(i,a=new Set),a.add(o),e.has(o)||(e.add(o),r.push(n))}else r.push(n)}),re(re({},t),{definitions:r})}function JN(t){var e=new Set(t.definitions);e.forEach(function(n){n.loc&&delete n.loc,Object.keys(n).forEach(function(i){var o=n[i];o&&typeof o=="object"&&e.add(o)})});var r=t.loc;return r&&(delete r.startToken,delete r.endToken),t}function e9(t){var e=dk(t);if(!Wf.has(e)){var r=RD(t,{experimentalFragmentVariables:pp,allowLegacyFragmentVariables:pp});if(!r||r.kind!=="Document")throw new Error("Not a valid GraphQL document.");Wf.set(e,JN(XN(r)))}return Wf.get(e)}function Sl(t){for(var e=[],r=1;ri?yv(r,i):_v(r,r.default);else{const i=rn(uk,null),o=rn(o9,null);e=a=>{if(a){const d=yv(i,a);return d||yv(r,a)}const c=_v(i,o);return c||_v(r,r.default)}}function n(i=t){const o=e(i);if(!o)throw new Error(`Apollo client with id ${i??"default"} not found. Use an app.runWithContext() or provideApolloClient() if you are outside of a component setup.`);return o}return{resolveClient:n,get client(){return n()}}}var a9={};function bv(t){return Rt(t)?t:typeof t=="function"?It(t):Se(t)}function s9(t){return Rt(t)?t:typeof t=="function"?It(t):t&&gi(t)}function hp(){const t=[];function e(o){return t.push(o),{off:()=>r(o)}}function r(o){const a=t.indexOf(o);a!==-1&&t.splice(a,1)}function n(o){for(const a of t)a(o)}function i(){return t.length}return{on:e,off:r,trigger:n,getCount:i}}var ja=typeof window>"u",ll={queries:Se(0),mutations:Se(0),subscriptions:Se(0),components:new Map};function l9(){const t=Gi();if(!t)return{};let e;return ll.components.has(t)?e=ll.components.get(t):(ll.components.set(t,e={queries:Se(0),mutations:Se(0),subscriptions:Se(0)}),Wl(()=>{ll.components.delete(t)})),{tracking:e}}function fk(t,e){if(ja)return;const{tracking:r}=l9();Vt(t,(n,i)=>{if(i!=null&&n!==i){const o=n?1:-1;r&&(r[e].value+=o),ll[e].value+=o}},{immediate:!0}),Hi(()=>{t.value&&(r&&r[e].value--,ll[e].value--)})}function c9(t){fk(t,"queries")}function d9(t){fk(t,"mutations")}function pk(t){return t instanceof Error?$3(t)?t:new co({networkError:t,errorMessage:t.message}):new co({networkError:Object.assign(new Error,{originalError:t}),errorMessage:String(t)})}function u9(t){return new co({graphQLErrors:t,errorMessage:`GraphQL response contains errors: ${t.map(e=>e.message).join(" | ")}`})}function f9(t,e,r){return hk(t,e,r)}function hk(t,e,r={},n=!1){var i;const o=Gi(),a=Se(),c=bv(t),d=bv(e),u=s9(r),f=Se(),_=hp(),y=Se(null),b=hp(),p=Se(!1);o&&c9(p);const m=Se();let g,v=!1,x,E;const T=()=>{v=!0,g&&g()},C=X=>{E=X,x&&x(X)},A=()=>{g=void 0,x=void 0,v=!1,E=void 0};o&&((i=AT)==null||i(()=>{var X;if(!(!M.value||ja&&((X=a.value)==null?void 0:X.prefetch)===!1))return new Promise((ee,pe)=>{g=()=>{A(),ee()},x=j=>{A(),pe(j)},v?g():E&&x(E)}).finally(ke)}));const{resolveClient:L}=ah(),R=Se();let D,q=!1,H=!1,U=!0;function ce(){var X,ee,pe,j,z,ie;if(q||!M.value||ja&&((X=a.value)==null?void 0:X.prefetch)===!1||!ve){T();return}q=!0,y.value=null,p.value=!0;const be=L((ee=a.value)==null?void 0:ee.clientId);if(R.value=be.watchQuery({query:ve,variables:k??{},...a.value,...ja&&((pe=a.value)==null?void 0:pe.fetchPolicy)!=="no-cache"?{fetchPolicy:"network-only"}:{}}),Ae(),!ja&&(U||!((j=a.value)!=null&&j.keepPreviousResult))&&(((z=a.value)==null?void 0:z.fetchPolicy)!=="no-cache"||a.value.notifyOnNetworkStatusChange)){const Ne=R.value.getCurrentResult(!1);!Ne.loading||Ne.partial||(ie=a.value)!=null&&ie.notifyOnNetworkStatusChange?(Te(Ne),H=!Ne.loading):Ne.error&&(Pe(Ne.error),H=!0)}if(!ja)for(const Ne of Y)ye(Ne);U=!1}function Ae(){D&&!D.closed||R.value&&(H=!1,D=R.value.subscribe({next:Te,error:Pe}))}function Le(){var X,ee,pe,j;const z=L((X=a.value)==null?void 0:X.clientId);return((ee=a.value)==null?void 0:ee.errorPolicy)||((j=(pe=z.defaultOptions)==null?void 0:pe.watchQuery)==null?void 0:j.errorPolicy)}function Te(X){var ee;if(H){H=!1;return}y.value=null,Ie(X);const pe=Le();pe&&pe==="all"&&!X.error&&((ee=X.errors)!=null&&ee.length)&&Ce(u9(X.errors)),T()}function Ie(X){f.value=X.data&&Object.keys(X.data).length===0?void 0:X.data,p.value=X.loading,m.value=X.networkStatus,ra(()=>{_.trigger(X)})}function Pe(X){if(H){H=!1;return}const ee=pk(X),pe=Le();pe&&pe!=="none"&&Ie(R.value.getCurrentResult()),Ce(ee),C(ee),de()}function Ce(X){y.value=X,p.value=!1,m.value=8,ra(()=>{b.trigger(X)})}function de(){if(!R.value)return;const X=R.value.getLastError(),ee=R.value.getLastResult();R.value.resetLastResults(),Ae(),Object.assign(R.value,{lastError:X,lastResult:ee})}let we=[];function ke(){T(),q&&(q=!1,p.value=!1,we.forEach(X=>X()),we=[],R.value&&(R.value.stopPolling(),R.value=null),D&&(D.unsubscribe(),D=void 0))}let Re=!1;function He(){!q||Re||(Re=!0,ra(()=>{q&&(ke(),ce()),Re=!1}))}let ze,Ge=!1;function J(){var X,ee;a.value?((X=a.value)!=null&&X.throttle?ze=JT(a.value.throttle,He):(ee=a.value)!=null&&ee.debounce?ze=eD(a.value.debounce,He):ze=He,Ge=!0):ze=He}function me(){!q||Re||(Ge||J(),ze())}let ve=c.value;const $e=Se(n),Oe=It(()=>!a.value||a.value.enabled==null||a.value.enabled),M=It(()=>Oe.value&&!$e.value&&!!c.value);Vt(()=>fe(u),X=>{a.value&&(a.value.throttle!==X.throttle||a.value.debounce!==X.debounce)&&J(),a.value=X,me()},{deep:!0,immediate:!0}),Vt(c,X=>{ve=X,me()});let k,I;Vt(()=>{if(M.value)return d.value},X=>{const ee=JSON.stringify([X,M.value]);ee!==I&&(k=X,me()),I=ee},{deep:!0,immediate:!0});function N(X=void 0){if(R.value)return X&&(k=X),y.value=null,p.value=!0,R.value.refetch(X).then(ee=>{var pe;const j=(pe=R.value)==null?void 0:pe.getCurrentResult();return j&&Ie(j),ee})}function G(X){if(R.value)return y.value=null,p.value=!0,R.value.fetchMore(X).then(ee=>{var pe;const j=(pe=R.value)==null?void 0:pe.getCurrentResult();return j&&Ie(j),ee})}const Y=[];function se(X){if(ja)return;const ee=bv(X);Vt(ee,(pe,j,z)=>{const ie=Y.findIndex(Ne=>Ne.options===j);ie!==-1&&Y.splice(ie,1);const be={options:pe,unsubscribeFns:[]};Y.push(be),ye(be),z(()=>{be.unsubscribeFns.forEach(Ne=>Ne()),be.unsubscribeFns=[]})},{immediate:!0})}function ye(X){if(!q)return;if(!R.value)throw new Error("Query is not defined");const ee=R.value.subscribeToMore(X.options);we.push(ee),X.unsubscribeFns.push(ee)}return Vt(M,X=>{X?ra(()=>{ce()}):ke()}),M.value&&ce(),o&&Hi(()=>{ke(),Y.length=0}),{result:f,loading:p,networkStatus:m,error:y,start:ce,stop:ke,restart:me,forceDisabled:$e,document:c,variables:d,options:u,query:R,refetch:N,fetchMore:G,subscribeToMore:se,onResult:_.on,onError:b.on}}function p9(t,e,r){const n=hk(t,e,r,!0);function i(o,a,c){return o&&(n.document.value=o),a&&(n.variables.value=a),c&&Object.assign(Rt(n.options)?n.options.value:n.options,c),n.forceDisabled.value?(n.forceDisabled.value=!1,new Promise((u,f)=>{const{off:_}=n.onResult(b=>{b.loading||(u(b.data),_(),y())}),{off:y}=n.onError(b=>{f(b),_(),y()})})):!1}return{...n,load:i}}function h9(t,e={}){const r=Gi(),n=Se(!1);r&&d9(n);const i=Se(null),o=Se(!1),a=hp(),c=hp(),{resolveClient:d}=ah();async function u(f,_={}){let y;typeof t=="function"?y=t():Rt(t)?y=t.value:y=t;let b;typeof e=="function"?b=e():Rt(e)?b=e.value:b=e;const p=d(b.clientId);i.value=null,n.value=!0,o.value=!0;try{const m=await p.mutate({mutation:y,...b,..._,variables:f??b.variables?{...b.variables,...f}:void 0});return n.value=!1,a.trigger(m),m}catch(m){const g=pk(m);if(i.value=g,n.value=!1,c.trigger(g),b.throws==="always"||b.throws!=="never"&&!c.getCount())throw g}return null}return r&&Hi(()=>{n.value=!1}),{mutate:u,loading:n,error:i,called:o,onDone:a.on,onError:c.on}}const vi=Se([]),Yl={initialized:!1,instanceStorage:{}};function m9(t,e){Yl.instanceStorage[t]=e}function v9(t){return Yl.instanceStorage[t]}const Qw=Bt({__name:"ModalContainerItem",props:{id:Number},setup(t){const e=t,r=Se(null),n=Se(),i=o(e.id);function o(a){return vi.value.find(c=>c.id===a)}return Vt(()=>r.value,a=>{m9(e.id,a),setTimeout(()=>{n.value&&n.value.firstChild.show()},0)}),(a,c)=>{var d,u,f;return te(),oe("div",{ref_key:"containerRef",ref:n,style:{position:"relative","z-index":"2"}},[(te(),Hr(Uy((d=fe(i))==null?void 0:d.component),qT((u=fe(i))==null?void 0:u.props.value,{modalId:`_modal_${t.id}`,ref_key:"modalRef",ref:r},PL((f=fe(i))==null?void 0:f.events)),null,16,["modalId"]))],512)}}}),g9={backgroundClose:!0,escClose:!0};class hr extends Error{constructor(r,n=null){super();kr(this,"isModalError",!0);kr(this,"details");this.message=r,this.details=n}static Undefined(r){return new hr(`Modal with id: ${r} not founded. The modal window may have been closed earlier.`)}static UndefinedGuardName(r){return new hr(`Guard's name ${r} is not declaration.`)}static NextReject(r){return new hr(`Guard returned false. Modal navigation was stopped. Modal id ${r}`)}static GuardDeclarationType(r){return new hr("Guard's type should be a function. Provided:",r)}static ConfigurationType(r){return new hr("Configuration type must be an Object. Provided",r)}static ConfigurationUndefinedParam(r,n){return new hr(`In configuration founded unknown parameter: ${r}. Available are ${n.join(", ")} `)}static QueueNoEmpty(){return new hr("Modal's queue is not empty. Probably some modal reject closing by onClose hook.")}static EmptyModalQueue(){return new hr("Modal queue is empty.")}static NotInitialized(){return new hr("Modal Container not found. Put container from vue-modal in App's template.")}static ModalComponentNotProvided(){return new hr("The first parameter(VueComponent) was not specified.")}static DuplicatedRouterIntegration(){return new hr("useModalRouter.init should escaped only once.")}static ModalRouterIntegrationNotInitialized(){return new hr("The integration was not initialized. Please, use useModalRouter.init(router).")}static ModalEventNameMustBeString(r){return new hr(`Event name must be a string. Provided: ${r}`)}}const mp={store:{},add(t,e,r){if(typeof r!="function")throw hr.GuardDeclarationType(r);this.store[t]||(this.store[t]={[e]:[]}),this.store[t][e]||(this.store[t][e]=[]),this.store[t][e].push(r)},get(t,e){return t in this.store?e in this.store[t]?this.store[t][e]:[]:[]},delete(t){t in this.store&&delete this.store[t]}};function mk(t){return t.reduce((e,r)=>e.then(()=>r()),Promise.resolve())}function _9(t,e,r){return()=>new Promise((n,i)=>{const o=(a=!0)=>{a===!1&&i(hr.NextReject(e)),n()};Promise.resolve(t.call(Yl.instanceStorage[e],r)).then(o).catch(a=>i(a))})}function y9(t){const e={backgroundClose:g9.backgroundClose,isRoute:!1};return t.backgroundClose!==void 0&&(e.backgroundClose=t.backgroundClose),t.isRoute&&(e.isRoute=t.isRoute),e}const sd=class sd{constructor(e,r,n){kr(this,"id");kr(this,"events",gi({}));kr(this,"closed");kr(this,"component");kr(this,"props");kr(this,"backgroundClose",!0);kr(this,"isRoute",!1);this.id=sd.modalId++,this.component=e,this.props=Se(r),this.closed=It(()=>!vi.value.includes(this)),e.beforeModalClose&&mp.add(this.id,"close",e.beforeModalClose);const i=y9(n);this.backgroundClose=i.backgroundClose,this.isRoute=i.isRoute}close(){return vk(this.id)}set onclose(e){mp.add(this.id,"close",e)}get instance(){return v9(this.id)}on(e,r){return Array.isArray(this.events[e])||(this.events[e]=[]),this.events[e].push(r),()=>{const n=this.events[e].indexOf(r);n!==-1&&this.events[e].splice(n,1)}}};kr(sd,"modalId",0),kr(sd,"EVENT_PROMPT","vue-modal:____P____R____O____M____P____T");let Pg=sd;function b9(t={}){return Object.assign({background:!1,esc:!1},t)}function x9(t,e,r){if(!Yl.initialized)throw hr.NotInitialized();if(!t)throw hr.ModalComponentNotProvided();const n=new Pg(t,e,r);return vi.value.push(Fd(n)),n}function vk(t,e={}){const r=vi.value.findIndex(i=>i.id===t);if(r===-1)return Promise.reject(hr.Undefined(t));const n=mp.get(t,"close").map(i=>_9(i,t,b9(e)));return mk(n).then(()=>{vi.value.splice(r,1),delete Yl.instanceStorage[t],mp.delete(t)})}function gk(t,e={},r={}){return Promise.resolve().then(()=>x9(t,e,r))}function w9(){return mk(vi.value.map(t=>()=>t.close()))}function _k(){if(vi.value.length!==0)return vi.value[vi.value.length-1]}function vp(t,e={},r={}){return w9().then(()=>{if(vi.value.length)throw hr.QueueNoEmpty()}).then(()=>gk(t,e,r))}function ss(){const t=_k();return t?t.close():Promise.resolve()}function E9(){Yl.initialized=!0,document.addEventListener("keyup",t=>{if(t.key==="Escape"||t.code==="Escape"){const e=_k();if(!e)return;vk(e.id,{esc:!0})}})}const T9={setup(){return mn(E9),()=>Ni(FM,{name:"modal-list"},{default:()=>vi.value.map(t=>Ni(Qw,{key:t.id,id:t.id}))})},components:{ContainerModalItem:Qw}};const Rg=typeof window<"u",ka=(t,e=!1)=>e?Symbol.for(t):Symbol(t),k9=(t,e,r)=>C9({l:t,k:e,s:r}),C9=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ir=t=>typeof t=="number"&&isFinite(t),A9=t=>bk(t)==="[object Date]",gp=t=>bk(t)==="[object RegExp]",sh=t=>Tt(t)&&Object.keys(t).length===0,nn=Object.assign;let Kw;const _p=()=>Kw||(Kw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Yw(t){return t.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const S9=Object.prototype.hasOwnProperty;function gb(t,e){return S9.call(t,e)}const wr=Array.isArray,Br=t=>typeof t=="function",Qe=t=>typeof t=="string",nr=t=>typeof t=="boolean",Dt=t=>t!==null&&typeof t=="object",yk=Object.prototype.toString,bk=t=>yk.call(t),Tt=t=>{if(!Dt(t))return!1;const e=Object.getPrototypeOf(t);return e===null||e.constructor===Object},I9=t=>t==null?"":wr(t)||Tt(t)&&t.toString===yk?JSON.stringify(t,null,2):String(t);function $9(t,e=""){return t.reduce((r,n,i)=>i===0?r+n:r+e+n,"")}function _b(t){let e=t;return()=>++e}function O9(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}function P9(t,e,r){return{line:t,column:e,offset:r}}function Lg(t,e,r){const n={start:t,end:e};return r!=null&&(n.source=r),n}const R9=/\{([0-9a-zA-Z]+)\}/g;function L9(t,...e){return e.length===1&&M9(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(R9,(r,n)=>e.hasOwnProperty(n)?e[n]:"")}const xk=Object.assign,Zw=t=>typeof t=="string",M9=t=>t!==null&&typeof t=="object";function wk(t,e=""){return t.reduce((r,n,i)=>i===0?r+n:r+e+n,"")}const tt={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},D9={[tt.EXPECTED_TOKEN]:"Expected token: '{0}'",[tt.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[tt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[tt.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[tt.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[tt.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[tt.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[tt.EMPTY_PLACEHOLDER]:"Empty placeholder",[tt.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[tt.INVALID_LINKED_FORMAT]:"Invalid linked format",[tt.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[tt.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[tt.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[tt.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[tt.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[tt.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Zl(t,e,r={}){const{domain:n,messages:i,args:o}=r,a=L9((i||D9)[t]||"",...o||[]),c=new SyntaxError(String(a));return c.code=t,e&&(c.location=e),c.domain=n,c}function F9(t){throw t}const io=" ",N9="\r",tn=` -`,z9=String.fromCharCode(8232),q9=String.fromCharCode(8233);function B9(t){const e=t;let r=0,n=1,i=1,o=0;const a=L=>e[L]===N9&&e[L+1]===tn,c=L=>e[L]===tn,d=L=>e[L]===q9,u=L=>e[L]===z9,f=L=>a(L)||c(L)||d(L)||u(L),_=()=>r,y=()=>n,b=()=>i,p=()=>o,m=L=>a(L)||d(L)||u(L)?tn:e[L],g=()=>m(r),v=()=>m(r+o);function x(){return o=0,f(r)&&(n++,i=0),a(r)&&r++,r++,i++,e[r]}function E(){return a(r+o)&&o++,o++,e[r+o]}function T(){r=0,n=1,i=1,o=0}function C(L=0){o=L}function A(){const L=r+o;for(;L!==r;)x();o=0}return{index:_,line:y,column:b,peekOffset:p,charAt:m,currentChar:g,currentPeek:v,next:x,peek:E,reset:T,resetPeek:C,skipToPeek:A}}const Vo=void 0,U9=".",Xw="'",V9="tokenizer";function j9(t,e={}){const r=e.location!==!1,n=B9(t),i=()=>n.index(),o=()=>P9(n.line(),n.column(),n.index()),a=o(),c=i(),d={currentType:14,offset:c,startLoc:a,endLoc:a,lastType:14,lastOffset:c,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>d,{onError:f}=e;function _(k,I,N,...G){const Y=u();if(I.column+=N,I.offset+=N,f){const se=r?Lg(Y.startLoc,I):null,ye=Zl(k,se,{domain:V9,args:G});f(ye)}}function y(k,I,N){k.endLoc=o(),k.currentType=I;const G={type:I};return r&&(G.loc=Lg(k.startLoc,k.endLoc)),N!=null&&(G.value=N),G}const b=k=>y(k,14);function p(k,I){return k.currentChar()===I?(k.next(),I):(_(tt.EXPECTED_TOKEN,o(),0,I),"")}function m(k){let I="";for(;k.currentPeek()===io||k.currentPeek()===tn;)I+=k.currentPeek(),k.peek();return I}function g(k){const I=m(k);return k.skipToPeek(),I}function v(k){if(k===Vo)return!1;const I=k.charCodeAt(0);return I>=97&&I<=122||I>=65&&I<=90||I===95}function x(k){if(k===Vo)return!1;const I=k.charCodeAt(0);return I>=48&&I<=57}function E(k,I){const{currentType:N}=I;if(N!==2)return!1;m(k);const G=v(k.currentPeek());return k.resetPeek(),G}function T(k,I){const{currentType:N}=I;if(N!==2)return!1;m(k);const G=k.currentPeek()==="-"?k.peek():k.currentPeek(),Y=x(G);return k.resetPeek(),Y}function C(k,I){const{currentType:N}=I;if(N!==2)return!1;m(k);const G=k.currentPeek()===Xw;return k.resetPeek(),G}function A(k,I){const{currentType:N}=I;if(N!==8)return!1;m(k);const G=k.currentPeek()===".";return k.resetPeek(),G}function L(k,I){const{currentType:N}=I;if(N!==9)return!1;m(k);const G=v(k.currentPeek());return k.resetPeek(),G}function R(k,I){const{currentType:N}=I;if(!(N===8||N===12))return!1;m(k);const G=k.currentPeek()===":";return k.resetPeek(),G}function D(k,I){const{currentType:N}=I;if(N!==10)return!1;const G=()=>{const se=k.currentPeek();return se==="{"?v(k.peek()):se==="@"||se==="%"||se==="|"||se===":"||se==="."||se===io||!se?!1:se===tn?(k.peek(),G()):v(se)},Y=G();return k.resetPeek(),Y}function q(k){m(k);const I=k.currentPeek()==="|";return k.resetPeek(),I}function H(k){const I=m(k),N=k.currentPeek()==="%"&&k.peek()==="{";return k.resetPeek(),{isModulo:N,hasSpace:I.length>0}}function U(k,I=!0){const N=(Y=!1,se="",ye=!1)=>{const X=k.currentPeek();return X==="{"?se==="%"?!1:Y:X==="@"||!X?se==="%"?!0:Y:X==="%"?(k.peek(),N(Y,"%",!0)):X==="|"?se==="%"||ye?!0:!(se===io||se===tn):X===io?(k.peek(),N(!0,io,ye)):X===tn?(k.peek(),N(!0,tn,ye)):!0},G=N();return I&&k.resetPeek(),G}function ce(k,I){const N=k.currentChar();return N===Vo?Vo:I(N)?(k.next(),N):null}function Ae(k){return ce(k,N=>{const G=N.charCodeAt(0);return G>=97&&G<=122||G>=65&&G<=90||G>=48&&G<=57||G===95||G===36})}function Le(k){return ce(k,N=>{const G=N.charCodeAt(0);return G>=48&&G<=57})}function Te(k){return ce(k,N=>{const G=N.charCodeAt(0);return G>=48&&G<=57||G>=65&&G<=70||G>=97&&G<=102})}function Ie(k){let I="",N="";for(;I=Le(k);)N+=I;return N}function Pe(k){g(k);const I=k.currentChar();return I!=="%"&&_(tt.EXPECTED_TOKEN,o(),0,I),k.next(),"%"}function Ce(k){let I="";for(;;){const N=k.currentChar();if(N==="{"||N==="}"||N==="@"||N==="|"||!N)break;if(N==="%")if(U(k))I+=N,k.next();else break;else if(N===io||N===tn)if(U(k))I+=N,k.next();else{if(q(k))break;I+=N,k.next()}else I+=N,k.next()}return I}function de(k){g(k);let I="",N="";for(;I=Ae(k);)N+=I;return k.currentChar()===Vo&&_(tt.UNTERMINATED_CLOSING_BRACE,o(),0),N}function we(k){g(k);let I="";return k.currentChar()==="-"?(k.next(),I+=`-${Ie(k)}`):I+=Ie(k),k.currentChar()===Vo&&_(tt.UNTERMINATED_CLOSING_BRACE,o(),0),I}function ke(k){g(k),p(k,"'");let I="",N="";const G=se=>se!==Xw&&se!==tn;for(;I=ce(k,G);)I==="\\"?N+=Re(k):N+=I;const Y=k.currentChar();return Y===tn||Y===Vo?(_(tt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),Y===tn&&(k.next(),p(k,"'")),N):(p(k,"'"),N)}function Re(k){const I=k.currentChar();switch(I){case"\\":case"'":return k.next(),`\\${I}`;case"u":return He(k,I,4);case"U":return He(k,I,6);default:return _(tt.UNKNOWN_ESCAPE_SEQUENCE,o(),0,I),""}}function He(k,I,N){p(k,I);let G="";for(let Y=0;YY!=="{"&&Y!=="}"&&Y!==io&&Y!==tn;for(;I=ce(k,G);)N+=I;return N}function Ge(k){let I="",N="";for(;I=Ae(k);)N+=I;return N}function J(k){const I=(N=!1,G)=>{const Y=k.currentChar();return Y==="{"||Y==="%"||Y==="@"||Y==="|"||Y==="("||Y===")"||!Y||Y===io?G:Y===tn||Y===U9?(G+=Y,k.next(),I(N,G)):(G+=Y,k.next(),I(!0,G))};return I(!1,"")}function me(k){g(k);const I=p(k,"|");return g(k),I}function ve(k,I){let N=null;switch(k.currentChar()){case"{":return I.braceNest>=1&&_(tt.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),k.next(),N=y(I,2,"{"),g(k),I.braceNest++,N;case"}":return I.braceNest>0&&I.currentType===2&&_(tt.EMPTY_PLACEHOLDER,o(),0),k.next(),N=y(I,3,"}"),I.braceNest--,I.braceNest>0&&g(k),I.inLinked&&I.braceNest===0&&(I.inLinked=!1),N;case"@":return I.braceNest>0&&_(tt.UNTERMINATED_CLOSING_BRACE,o(),0),N=$e(k,I)||b(I),I.braceNest=0,N;default:let Y=!0,se=!0,ye=!0;if(q(k))return I.braceNest>0&&_(tt.UNTERMINATED_CLOSING_BRACE,o(),0),N=y(I,1,me(k)),I.braceNest=0,I.inLinked=!1,N;if(I.braceNest>0&&(I.currentType===5||I.currentType===6||I.currentType===7))return _(tt.UNTERMINATED_CLOSING_BRACE,o(),0),I.braceNest=0,Oe(k,I);if(Y=E(k,I))return N=y(I,5,de(k)),g(k),N;if(se=T(k,I))return N=y(I,6,we(k)),g(k),N;if(ye=C(k,I))return N=y(I,7,ke(k)),g(k),N;if(!Y&&!se&&!ye)return N=y(I,13,ze(k)),_(tt.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,N.value),g(k),N;break}return N}function $e(k,I){const{currentType:N}=I;let G=null;const Y=k.currentChar();switch((N===8||N===9||N===12||N===10)&&(Y===tn||Y===io)&&_(tt.INVALID_LINKED_FORMAT,o(),0),Y){case"@":return k.next(),G=y(I,8,"@"),I.inLinked=!0,G;case".":return g(k),k.next(),y(I,9,".");case":":return g(k),k.next(),y(I,10,":");default:return q(k)?(G=y(I,1,me(k)),I.braceNest=0,I.inLinked=!1,G):A(k,I)||R(k,I)?(g(k),$e(k,I)):L(k,I)?(g(k),y(I,12,Ge(k))):D(k,I)?(g(k),Y==="{"?ve(k,I)||G:y(I,11,J(k))):(N===8&&_(tt.INVALID_LINKED_FORMAT,o(),0),I.braceNest=0,I.inLinked=!1,Oe(k,I))}}function Oe(k,I){let N={type:14};if(I.braceNest>0)return ve(k,I)||b(I);if(I.inLinked)return $e(k,I)||b(I);switch(k.currentChar()){case"{":return ve(k,I)||b(I);case"}":return _(tt.UNBALANCED_CLOSING_BRACE,o(),0),k.next(),y(I,3,"}");case"@":return $e(k,I)||b(I);default:if(q(k))return N=y(I,1,me(k)),I.braceNest=0,I.inLinked=!1,N;const{isModulo:Y,hasSpace:se}=H(k);if(Y)return se?y(I,0,Ce(k)):y(I,4,Pe(k));if(U(k))return y(I,0,Ce(k));break}return N}function M(){const{currentType:k,offset:I,startLoc:N,endLoc:G}=d;return d.lastType=k,d.lastOffset=I,d.lastStartLoc=N,d.lastEndLoc=G,d.offset=i(),d.startLoc=o(),n.currentChar()===Vo?y(d,14):Oe(n,d)}return{nextToken:M,currentOffset:i,currentPosition:o,context:u}}const H9="parser",G9=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function W9(t,e,r){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(e||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function Q9(t={}){const e=t.location!==!1,{onError:r}=t;function n(v,x,E,T,...C){const A=v.currentPosition();if(A.offset+=T,A.column+=T,r){const L=e?Lg(E,A):null,R=Zl(x,L,{domain:H9,args:C});r(R)}}function i(v,x,E){const T={type:v};return e&&(T.start=x,T.end=x,T.loc={start:E,end:E}),T}function o(v,x,E,T){T&&(v.type=T),e&&(v.end=x,v.loc&&(v.loc.end=E))}function a(v,x){const E=v.context(),T=i(3,E.offset,E.startLoc);return T.value=x,o(T,v.currentOffset(),v.currentPosition()),T}function c(v,x){const E=v.context(),{lastOffset:T,lastStartLoc:C}=E,A=i(5,T,C);return A.index=parseInt(x,10),v.nextToken(),o(A,v.currentOffset(),v.currentPosition()),A}function d(v,x){const E=v.context(),{lastOffset:T,lastStartLoc:C}=E,A=i(4,T,C);return A.key=x,v.nextToken(),o(A,v.currentOffset(),v.currentPosition()),A}function u(v,x){const E=v.context(),{lastOffset:T,lastStartLoc:C}=E,A=i(9,T,C);return A.value=x.replace(G9,W9),v.nextToken(),o(A,v.currentOffset(),v.currentPosition()),A}function f(v){const x=v.nextToken(),E=v.context(),{lastOffset:T,lastStartLoc:C}=E,A=i(8,T,C);return x.type!==12?(n(v,tt.UNEXPECTED_EMPTY_LINKED_MODIFIER,E.lastStartLoc,0),A.value="",o(A,T,C),{nextConsumeToken:x,node:A}):(x.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Oi(x)),A.value=x.value||"",o(A,v.currentOffset(),v.currentPosition()),{node:A})}function _(v,x){const E=v.context(),T=i(7,E.offset,E.startLoc);return T.value=x,o(T,v.currentOffset(),v.currentPosition()),T}function y(v){const x=v.context(),E=i(6,x.offset,x.startLoc);let T=v.nextToken();if(T.type===9){const C=f(v);E.modifier=C.node,T=C.nextConsumeToken||v.nextToken()}switch(T.type!==10&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Oi(T)),T=v.nextToken(),T.type===2&&(T=v.nextToken()),T.type){case 11:T.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Oi(T)),E.key=_(v,T.value||"");break;case 5:T.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Oi(T)),E.key=d(v,T.value||"");break;case 6:T.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Oi(T)),E.key=c(v,T.value||"");break;case 7:T.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Oi(T)),E.key=u(v,T.value||"");break;default:n(v,tt.UNEXPECTED_EMPTY_LINKED_KEY,x.lastStartLoc,0);const C=v.context(),A=i(7,C.offset,C.startLoc);return A.value="",o(A,C.offset,C.startLoc),E.key=A,o(E,C.offset,C.startLoc),{nextConsumeToken:T,node:E}}return o(E,v.currentOffset(),v.currentPosition()),{node:E}}function b(v){const x=v.context(),E=x.currentType===1?v.currentOffset():x.offset,T=x.currentType===1?x.endLoc:x.startLoc,C=i(2,E,T);C.items=[];let A=null;do{const D=A||v.nextToken();switch(A=null,D.type){case 0:D.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Oi(D)),C.items.push(a(v,D.value||""));break;case 6:D.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Oi(D)),C.items.push(c(v,D.value||""));break;case 5:D.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Oi(D)),C.items.push(d(v,D.value||""));break;case 7:D.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Oi(D)),C.items.push(u(v,D.value||""));break;case 8:const q=y(v);C.items.push(q.node),A=q.nextConsumeToken||null;break}}while(x.currentType!==14&&x.currentType!==1);const L=x.currentType===1?x.lastOffset:v.currentOffset(),R=x.currentType===1?x.lastEndLoc:v.currentPosition();return o(C,L,R),C}function p(v,x,E,T){const C=v.context();let A=T.items.length===0;const L=i(1,x,E);L.cases=[],L.cases.push(T);do{const R=b(v);A||(A=R.items.length===0),L.cases.push(R)}while(C.currentType!==14);return A&&n(v,tt.MUST_HAVE_MESSAGES_IN_PLURAL,E,0),o(L,v.currentOffset(),v.currentPosition()),L}function m(v){const x=v.context(),{offset:E,startLoc:T}=x,C=b(v);return x.currentType===14?C:p(v,E,T,C)}function g(v){const x=j9(v,xk({},t)),E=x.context(),T=i(0,E.offset,E.startLoc);return e&&T.loc&&(T.loc.source=v),T.body=m(x),t.onCacheKey&&(T.cacheKey=t.onCacheKey(v)),E.currentType!==14&&n(x,tt.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,v[E.offset]||""),o(T,x.currentOffset(),x.currentPosition()),T}return{parse:g}}function Oi(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function K9(t,e={}){const r={ast:t,helpers:new Set};return{context:()=>r,helper:o=>(r.helpers.add(o),o)}}function Jw(t,e){for(let r=0;re5(r)),t}function e5(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let r=0;rc;function u(g,v){c.code+=g}function f(g,v=!0){const x=v?i:"";u(o?x+" ".repeat(g):x)}function _(g=!0){const v=++c.indentLevel;g&&f(v)}function y(g=!0){const v=--c.indentLevel;g&&f(v)}function b(){f(c.indentLevel)}return{context:d,push:u,indent:_,deindent:y,newline:b,helper:g=>`_${g}`,needIndent:()=>c.needIndent}}function tz(t,e){const{helper:r}=t;t.push(`${r("linked")}(`),Il(t,e.key),e.modifier?(t.push(", "),Il(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function rz(t,e){const{helper:r,needIndent:n}=t;t.push(`${r("normalize")}([`),t.indent(n());const i=e.items.length;for(let o=0;o1){t.push(`${r("plural")}([`),t.indent(n());const i=e.cases.length;for(let o=0;o{const r=Zw(e.mode)?e.mode:"normal",n=Zw(e.filename)?e.filename:"message.intl",i=!!e.sourceMap,o=e.breakLineCode!=null?e.breakLineCode:r==="arrow"?";":` -`,a=e.needIndent?e.needIndent:r!=="arrow",c=t.helpers||[],d=ez(t,{mode:r,filename:n,sourceMap:i,breakLineCode:o,needIndent:a});d.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),d.indent(a),c.length>0&&(d.push(`const { ${wk(c.map(_=>`${_}: _${_}`),", ")} } = ctx`),d.newline()),d.push("return "),Il(d,t),d.deindent(a),d.push("}"),delete t.helpers;const{code:u,map:f}=d.context();return{ast:t,code:u,map:f?f.toJSON():void 0}};function az(t,e={}){const r=xk({},e),n=!!r.jit,i=!!r.minify,o=r.optimize==null?!0:r.optimize,c=Q9(r).parse(t);return n?(o&&Z9(c),i&&el(c),{ast:c,code:""}):(Y9(c,r),oz(c,r))}function sz(){typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(_p().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(_p().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Ca=[];Ca[0]={w:[0],i:[3,0],"[":[4],o:[7]};Ca[1]={w:[1],".":[2],"[":[4],o:[7]};Ca[2]={w:[2],i:[3,0],0:[3,0]};Ca[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Ca[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Ca[5]={"'":[4,0],o:8,l:[5,0]};Ca[6]={'"':[4,0],o:8,l:[6,0]};const lz=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function cz(t){return lz.test(t)}function dz(t){const e=t.charCodeAt(0),r=t.charCodeAt(t.length-1);return e===r&&(e===34||e===39)?t.slice(1,-1):t}function uz(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function fz(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:cz(e)?dz(e):"*"+e}function pz(t){const e=[];let r=-1,n=0,i=0,o,a,c,d,u,f,_;const y=[];y[0]=()=>{a===void 0?a=c:a+=c},y[1]=()=>{a!==void 0&&(e.push(a),a=void 0)},y[2]=()=>{y[0](),i++},y[3]=()=>{if(i>0)i--,n=4,y[0]();else{if(i=0,a===void 0||(a=fz(a),a===!1))return!1;y[1]()}};function b(){const p=t[r+1];if(n===5&&p==="'"||n===6&&p==='"')return r++,c="\\"+p,y[0](),!0}for(;n!==null;)if(r++,o=t[r],!(o==="\\"&&b())){if(d=uz(o),_=Ca[n],u=_[d]||_.l||8,u===8||(n=u[0],u[1]!==void 0&&(f=y[u[1]],f&&(c=o,f()===!1))))return;if(n===7)return e}}const t5=new Map;function hz(t,e){return Dt(t)?t[e]:null}function mz(t,e){if(!Dt(t))return null;let r=t5.get(e);if(r||(r=pz(e),r&&t5.set(e,r)),!r)return null;const n=r.length;let i=t,o=0;for(;ot,gz=t=>"",_z="text",yz=t=>t.length===0?"":$9(t),bz=I9;function r5(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function xz(t){const e=Ir(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(Ir(t.named.count)||Ir(t.named.n))?Ir(t.named.count)?t.named.count:Ir(t.named.n)?t.named.n:e:e}function wz(t,e){e.count||(e.count=t),e.n||(e.n=t)}function Ez(t={}){const e=t.locale,r=xz(t),n=Dt(t.pluralRules)&&Qe(e)&&Br(t.pluralRules[e])?t.pluralRules[e]:r5,i=Dt(t.pluralRules)&&Qe(e)&&Br(t.pluralRules[e])?r5:void 0,o=v=>v[n(r,v.length,i)],a=t.list||[],c=v=>a[v],d=t.named||{};Ir(t.pluralIndex)&&wz(r,d);const u=v=>d[v];function f(v){const x=Br(t.messages)?t.messages(v):Dt(t.messages)?t.messages[v]:!1;return x||(t.parent?t.parent.message(v):gz)}const _=v=>t.modifiers?t.modifiers[v]:vz,y=Tt(t.processor)&&Br(t.processor.normalize)?t.processor.normalize:yz,b=Tt(t.processor)&&Br(t.processor.interpolate)?t.processor.interpolate:bz,p=Tt(t.processor)&&Qe(t.processor.type)?t.processor.type:_z,g={list:c,named:u,plural:o,linked:(v,...x)=>{const[E,T]=x;let C="text",A="";x.length===1?Dt(E)?(A=E.modifier||A,C=E.type||C):Qe(E)&&(A=E||A):x.length===2&&(Qe(E)&&(A=E||A),Qe(T)&&(C=T||C));const L=f(v)(g),R=C==="vnode"&&wr(L)&&A?L[0]:L;return A?_(A)(R,C):R},message:f,type:p,interpolate:b,normalize:y,values:nn({},a,d)};return g}const Tz={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8};function kz(t,e,r){return[...new Set([r,...wr(e)?e:Dt(e)?Object.keys(e):Qe(e)?[e]:[r]])]}function Ek(t,e,r){const n=Qe(r)?r:bb,i=t;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(n);if(!o){o=[];let a=[r];for(;wr(a);)a=n5(o,a,e);const c=wr(e)||!Tt(e)?e:e.default?e.default:null;a=Qe(c)?[c]:c,wr(a)&&n5(o,a,!1),i.__localeChainCache.set(n,o)}return o}function n5(t,e,r){let n=!0;for(let i=0;i`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function Iz(){return{upper:(t,e)=>e==="text"&&Qe(t)?t.toUpperCase():e==="vnode"&&Dt(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&Qe(t)?t.toLowerCase():e==="vnode"&&Dt(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&Qe(t)?o5(t):e==="vnode"&&Dt(t)&&"__v_isVNode"in t?o5(t.children):t}}let Tk;function a5(t){Tk=t}let kk;function $z(t){kk=t}let Ck;function Oz(t){Ck=t}let Ak=null;const s5=t=>{Ak=t},Pz=()=>Ak;let l5=0;function Rz(t={}){const e=Br(t.onWarn)?t.onWarn:O9,r=Qe(t.version)?t.version:Sz,n=Qe(t.locale)?t.locale:bb,i=wr(t.fallbackLocale)||Tt(t.fallbackLocale)||Qe(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:n,o=Tt(t.messages)?t.messages:{[n]:{}},a=Tt(t.datetimeFormats)?t.datetimeFormats:{[n]:{}},c=Tt(t.numberFormats)?t.numberFormats:{[n]:{}},d=nn({},t.modifiers||{},Iz()),u=t.pluralRules||{},f=Br(t.missing)?t.missing:null,_=nr(t.missingWarn)||gp(t.missingWarn)?t.missingWarn:!0,y=nr(t.fallbackWarn)||gp(t.fallbackWarn)?t.fallbackWarn:!0,b=!!t.fallbackFormat,p=!!t.unresolving,m=Br(t.postTranslation)?t.postTranslation:null,g=Tt(t.processor)?t.processor:null,v=nr(t.warnHtmlMessage)?t.warnHtmlMessage:!0,x=!!t.escapeParameter,E=Br(t.messageCompiler)?t.messageCompiler:Tk,T=Br(t.messageResolver)?t.messageResolver:kk||hz,C=Br(t.localeFallbacker)?t.localeFallbacker:Ck||kz,A=Dt(t.fallbackContext)?t.fallbackContext:void 0,L=t,R=Dt(L.__datetimeFormatters)?L.__datetimeFormatters:new Map,D=Dt(L.__numberFormatters)?L.__numberFormatters:new Map,q=Dt(L.__meta)?L.__meta:{};l5++;const H={version:r,cid:l5,locale:n,fallbackLocale:i,messages:o,modifiers:d,pluralRules:u,missing:f,missingWarn:_,fallbackWarn:y,fallbackFormat:b,unresolving:p,postTranslation:m,processor:g,warnHtmlMessage:v,escapeParameter:x,messageCompiler:E,messageResolver:T,localeFallbacker:C,fallbackContext:A,onWarn:e,__meta:q};return H.datetimeFormats=a,H.numberFormats=c,H.__datetimeFormatters=R,H.__numberFormatters=D,H}function xb(t,e,r,n,i){const{missing:o,onWarn:a}=t;if(o!==null){const c=o(t,r,e,i);return Qe(c)?c:e}else return e}function Rc(t,e,r){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,r,e)}function xv(t){return r=>Lz(r,t)}function Lz(t,e){const r=e.b||e.body;if((r.t||r.type)===1){const n=r,i=n.c||n.cases;return t.plural(i.reduce((o,a)=>[...o,c5(t,a)],[]))}else return c5(t,r)}function c5(t,e){const r=e.s||e.static;if(r)return t.type==="text"?r:t.normalize([r]);{const n=(e.i||e.items).reduce((i,o)=>[...i,Mg(t,o)],[]);return t.normalize(n)}}function Mg(t,e){const r=e.t||e.type;switch(r){case 3:const n=e;return n.v||n.value;case 9:const i=e;return i.v||i.value;case 4:const o=e;return t.interpolate(t.named(o.k||o.key));case 5:const a=e;return t.interpolate(t.list(a.i||a.index));case 6:const c=e,d=c.m||c.modifier;return t.linked(Mg(t,c.k||c.key),d?Mg(t,d):void 0,t.type);case 7:const u=e;return u.v||u.value;case 8:const f=e;return f.v||f.value;default:throw new Error(`unhandled node type on format message part: ${r}`)}}const Sk=tt.__EXTEND_POINT__,Af=_b(Sk),na={INVALID_ARGUMENT:Sk,INVALID_DATE_ARGUMENT:Af(),INVALID_ISO_DATE_ARGUMENT:Af(),NOT_SUPPORT_NON_STRING_MESSAGE:Af(),__EXTEND_POINT__:Af()};function es(t){return Zl(t,null,void 0)}const Ik=t=>t;let cl=Object.create(null);const Td=t=>Dt(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t);function $k(t,e={}){let r=!1;const n=e.onError||F9;return e.onError=i=>{r=!0,n(i)},{...az(t,e),detectError:r}}const Mz=(t,e)=>{if(!Qe(t))throw es(na.NOT_SUPPORT_NON_STRING_MESSAGE);{nr(e.warnHtmlMessage)&&e.warnHtmlMessage;const n=(e.onCacheKey||Ik)(t),i=cl[n];if(i)return i;const{code:o,detectError:a}=$k(t,e),c=new Function(`return ${o}`)();return a?c:cl[n]=c}};function Dz(t,e){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&Qe(t)){nr(e.warnHtmlMessage)&&e.warnHtmlMessage;const n=(e.onCacheKey||Ik)(t),i=cl[n];if(i)return i;const{ast:o,detectError:a}=$k(t,{...e,location:!1,jit:!0}),c=xv(o);return a?c:cl[n]=c}else{const r=t.cacheKey;if(r){const n=cl[r];return n||(cl[r]=xv(t))}else return xv(t)}}const d5=()=>"",ca=t=>Br(t);function u5(t,...e){const{fallbackFormat:r,postTranslation:n,unresolving:i,messageCompiler:o,fallbackLocale:a,messages:c}=t,[d,u]=Dg(...e),f=nr(u.missingWarn)?u.missingWarn:t.missingWarn,_=nr(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,y=nr(u.escapeParameter)?u.escapeParameter:t.escapeParameter,b=!!u.resolvedMessage,p=Qe(u.default)||nr(u.default)?nr(u.default)?o?d:()=>d:u.default:r?o?d:()=>d:"",m=r||p!=="",g=Qe(u.locale)?u.locale:t.locale;y&&Fz(u);let[v,x,E]=b?[d,g,c[g]||{}]:Ok(t,d,g,a,_,f),T=v,C=d;if(!b&&!(Qe(T)||Td(T)||ca(T))&&m&&(T=p,C=T),!b&&(!(Qe(T)||Td(T)||ca(T))||!Qe(x)))return i?lh:d;let A=!1;const L=()=>{A=!0},R=ca(T)?T:Pk(t,d,x,T,C,L);if(A)return T;const D=qz(t,x,E,u),q=Ez(D),H=Nz(t,R,q);return n?n(H,d):H}function Fz(t){wr(t.list)?t.list=t.list.map(e=>Qe(e)?Yw(e):e):Dt(t.named)&&Object.keys(t.named).forEach(e=>{Qe(t.named[e])&&(t.named[e]=Yw(t.named[e]))})}function Ok(t,e,r,n,i,o){const{messages:a,onWarn:c,messageResolver:d,localeFallbacker:u}=t,f=u(t,n,r);let _={},y,b=null;const p="translate";for(let m=0;mn;return u.locale=r,u.key=e,u}const d=a(n,zz(t,r,i,n,c,o));return d.locale=r,d.key=e,d.source=n,d}function Nz(t,e,r){return e(r)}function Dg(...t){const[e,r,n]=t,i={};if(!Qe(e)&&!Ir(e)&&!ca(e)&&!Td(e))throw es(na.INVALID_ARGUMENT);const o=Ir(e)?String(e):(ca(e),e);return Ir(r)?i.plural=r:Qe(r)?i.default=r:Tt(r)&&!sh(r)?i.named=r:wr(r)&&(i.list=r),Ir(n)?i.plural=n:Qe(n)?i.default=n:Tt(n)&&nn(i,n),[o,i]}function zz(t,e,r,n,i,o){return{locale:e,key:r,warnHtmlMessage:i,onError:a=>{throw o&&o(a),a},onCacheKey:a=>k9(e,r,a)}}function qz(t,e,r,n){const{modifiers:i,pluralRules:o,messageResolver:a,fallbackLocale:c,fallbackWarn:d,missingWarn:u,fallbackContext:f}=t,y={locale:e,modifiers:i,pluralRules:o,messages:b=>{let p=a(r,b);if(p==null&&f){const[,,m]=Ok(f,b,e,c,d,u);p=a(m,b)}if(Qe(p)||Td(p)){let m=!1;const v=Pk(t,b,e,p,b,()=>{m=!0});return m?d5:v}else return ca(p)?p:d5}};return t.processor&&(y.processor=t.processor),n.list&&(y.list=n.list),n.named&&(y.named=n.named),Ir(n.plural)&&(y.pluralIndex=n.plural),y}function f5(t,...e){const{datetimeFormats:r,unresolving:n,fallbackLocale:i,onWarn:o,localeFallbacker:a}=t,{__datetimeFormatters:c}=t,[d,u,f,_]=Fg(...e),y=nr(f.missingWarn)?f.missingWarn:t.missingWarn;nr(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const b=!!f.part,p=Qe(f.locale)?f.locale:t.locale,m=a(t,i,p);if(!Qe(d)||d==="")return new Intl.DateTimeFormat(p,_).format(u);let g={},v,x=null;const E="datetime format";for(let A=0;A{Rk.includes(d)?a[d]=r[d]:o[d]=r[d]}),Qe(n)?o.locale=n:Tt(n)&&(a=n),Tt(i)&&(a=i),[o.key||"",c,o,a]}function p5(t,e,r){const n=t;for(const i in r){const o=`${e}__${i}`;n.__datetimeFormatters.has(o)&&n.__datetimeFormatters.delete(o)}}function h5(t,...e){const{numberFormats:r,unresolving:n,fallbackLocale:i,onWarn:o,localeFallbacker:a}=t,{__numberFormatters:c}=t,[d,u,f,_]=Ng(...e),y=nr(f.missingWarn)?f.missingWarn:t.missingWarn;nr(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const b=!!f.part,p=Qe(f.locale)?f.locale:t.locale,m=a(t,i,p);if(!Qe(d)||d==="")return new Intl.NumberFormat(p,_).format(u);let g={},v,x=null;const E="number format";for(let A=0;A{Lk.includes(d)?a[d]=r[d]:o[d]=r[d]}),Qe(n)?o.locale=n:Tt(n)&&(a=n),Tt(i)&&(a=i),[o.key||"",c,o,a]}function m5(t,e,r){const n=t;for(const i in r){const o=`${e}__${i}`;n.__numberFormatters.has(o)&&n.__numberFormatters.delete(o)}}sz();const Bz="9.4.1";function Uz(){typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(_p().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(_p().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Mk=Tz.__EXTEND_POINT__,jo=_b(Mk);jo(),jo(),jo(),jo(),jo(),jo(),jo(),jo();const Dk=na.__EXTEND_POINT__,dn=_b(Dk),$n={UNEXPECTED_RETURN_TYPE:Dk,INVALID_ARGUMENT:dn(),MUST_BE_CALL_SETUP_TOP:dn(),NOT_INSTALLED:dn(),NOT_AVAILABLE_IN_LEGACY_MODE:dn(),REQUIRED_VALUE:dn(),INVALID_VALUE:dn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:dn(),NOT_INSTALLED_WITH_PROVIDE:dn(),UNEXPECTED_ERROR:dn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:dn(),BRIDGE_SUPPORT_VUE_2_ONLY:dn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:dn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:dn(),__EXTEND_POINT__:dn()};function Kn(t,...e){return Zl(t,null,void 0)}const zg=ka("__translateVNode"),qg=ka("__datetimeParts"),Bg=ka("__numberParts"),Vz=ka("__setPluralRules"),jz=ka("__injectWithOption"),Ug=ka("__dispose");function Vg(t){if(!Dt(t))return t;for(const e in t)if(gb(t,e))if(!e.includes("."))Dt(t[e])&&Vg(t[e]);else{const r=e.split("."),n=r.length-1;let i=t,o=!1;for(let a=0;a{if("locale"in c&&"resource"in c){const{locale:d,resource:u}=c;d?(a[d]=a[d]||{},Zc(u,a[d])):Zc(u,a)}else Qe(c)&&Zc(JSON.parse(c),a)}),i==null&&o)for(const c in a)gb(a,c)&&Vg(a[c]);return a}const Sf=t=>!Dt(t)||wr(t);function Zc(t,e){if(Sf(t)||Sf(e))throw Kn($n.INVALID_VALUE);for(const r in t)gb(t,r)&&(Sf(t[r])||Sf(e[r])?e[r]=t[r]:Zc(t[r],e[r]))}function Hz(t){return t.type}function Gz(t,e,r){let n=Dt(e.messages)?e.messages:{};"__i18nGlobal"in r&&(n=Fk(t.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const i=Object.keys(n);i.length&&i.forEach(o=>{t.mergeLocaleMessage(o,n[o])});{if(Dt(e.datetimeFormats)){const o=Object.keys(e.datetimeFormats);o.length&&o.forEach(a=>{t.mergeDateTimeFormat(a,e.datetimeFormats[a])})}if(Dt(e.numberFormats)){const o=Object.keys(e.numberFormats);o.length&&o.forEach(a=>{t.mergeNumberFormat(a,e.numberFormats[a])})}}}function v5(t){return qe(Nd,null,t,0)}let g5=0;function _5(t){return(e,r,n,i)=>t(r,n,Gi()||void 0,i)}function Nk(t={},e){const{__root:r,__injectWithOption:n}=t,i=r===void 0;let o=nr(t.inheritLocale)?t.inheritLocale:!0;const a=Se(r&&o?r.locale.value:Qe(t.locale)?t.locale:bb),c=Se(r&&o?r.fallbackLocale.value:Qe(t.fallbackLocale)||wr(t.fallbackLocale)||Tt(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:a.value),d=Se(Fk(a.value,t)),u=Se(Tt(t.datetimeFormats)?t.datetimeFormats:{[a.value]:{}}),f=Se(Tt(t.numberFormats)?t.numberFormats:{[a.value]:{}});let _=r?r.missingWarn:nr(t.missingWarn)||gp(t.missingWarn)?t.missingWarn:!0,y=r?r.fallbackWarn:nr(t.fallbackWarn)||gp(t.fallbackWarn)?t.fallbackWarn:!0,b=r?r.fallbackRoot:nr(t.fallbackRoot)?t.fallbackRoot:!0,p=!!t.fallbackFormat,m=Br(t.missing)?t.missing:null,g=Br(t.missing)?_5(t.missing):null,v=Br(t.postTranslation)?t.postTranslation:null,x=r?r.warnHtmlMessage:nr(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter;const T=r?r.modifiers:Tt(t.modifiers)?t.modifiers:{};let C=t.pluralRules||r&&r.pluralRules,A;A=(()=>{i&&s5(null);const j={version:Bz,locale:a.value,fallbackLocale:c.value,messages:d.value,modifiers:T,pluralRules:C,missing:g===null?void 0:g,missingWarn:_,fallbackWarn:y,fallbackFormat:p,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:x,escapeParameter:E,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};j.datetimeFormats=u.value,j.numberFormats=f.value,j.__datetimeFormatters=Tt(A)?A.__datetimeFormatters:void 0,j.__numberFormatters=Tt(A)?A.__numberFormatters:void 0;const z=Rz(j);return i&&s5(z),z})(),Rc(A,a.value,c.value);function R(){return[a.value,c.value,d.value,u.value,f.value]}const D=It({get:()=>a.value,set:j=>{a.value=j,A.locale=a.value}}),q=It({get:()=>c.value,set:j=>{c.value=j,A.fallbackLocale=c.value,Rc(A,a.value,j)}}),H=It(()=>d.value),U=It(()=>u.value),ce=It(()=>f.value);function Ae(){return Br(v)?v:null}function Le(j){v=j,A.postTranslation=j}function Te(){return m}function Ie(j){j!==null&&(g=_5(j)),m=j,A.missing=g}const Pe=(j,z,ie,be,Ne,Ue)=>{R();let dt;try{i||(A.fallbackContext=r?Pz():void 0),dt=j(A)}finally{i||(A.fallbackContext=void 0)}if(Ir(dt)&&dt===lh){const[Wt,gr]=z();return r&&b?be(r):Ne(Wt)}else{if(Ue(dt))return dt;throw Kn($n.UNEXPECTED_RETURN_TYPE)}};function Ce(...j){return Pe(z=>Reflect.apply(u5,null,[z,...j]),()=>Dg(...j),"translate",z=>Reflect.apply(z.t,z,[...j]),z=>z,z=>Qe(z))}function de(...j){const[z,ie,be]=j;if(be&&!Dt(be))throw Kn($n.INVALID_ARGUMENT);return Ce(z,ie,nn({resolvedMessage:!0},be||{}))}function we(...j){return Pe(z=>Reflect.apply(f5,null,[z,...j]),()=>Fg(...j),"datetime format",z=>Reflect.apply(z.d,z,[...j]),()=>i5,z=>Qe(z))}function ke(...j){return Pe(z=>Reflect.apply(h5,null,[z,...j]),()=>Ng(...j),"number format",z=>Reflect.apply(z.n,z,[...j]),()=>i5,z=>Qe(z))}function Re(j){return j.map(z=>Qe(z)||Ir(z)||nr(z)?v5(String(z)):z)}const ze={normalize:Re,interpolate:j=>j,type:"vnode"};function Ge(...j){return Pe(z=>{let ie;const be=z;try{be.processor=ze,ie=Reflect.apply(u5,null,[be,...j])}finally{be.processor=null}return ie},()=>Dg(...j),"translate",z=>z[zg](...j),z=>[v5(z)],z=>wr(z))}function J(...j){return Pe(z=>Reflect.apply(h5,null,[z,...j]),()=>Ng(...j),"number format",z=>z[Bg](...j),()=>[],z=>Qe(z)||wr(z))}function me(...j){return Pe(z=>Reflect.apply(f5,null,[z,...j]),()=>Fg(...j),"datetime format",z=>z[qg](...j),()=>[],z=>Qe(z)||wr(z))}function ve(j){C=j,A.pluralRules=C}function $e(j,z){const ie=Qe(z)?z:a.value,be=k(ie);return A.messageResolver(be,j)!==null}function Oe(j){let z=null;const ie=Ek(A,c.value,a.value);for(let be=0;be{o&&(a.value=j,A.locale=j,Rc(A,a.value,c.value))}),Vt(r.fallbackLocale,j=>{o&&(c.value=j,A.fallbackLocale=j,Rc(A,a.value,c.value))}));const pe={id:g5,locale:D,fallbackLocale:q,get inheritLocale(){return o},set inheritLocale(j){o=j,j&&r&&(a.value=r.locale.value,c.value=r.fallbackLocale.value,Rc(A,a.value,c.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:H,get modifiers(){return T},get pluralRules(){return C||{}},get isGlobal(){return i},get missingWarn(){return _},set missingWarn(j){_=j,A.missingWarn=_},get fallbackWarn(){return y},set fallbackWarn(j){y=j,A.fallbackWarn=y},get fallbackRoot(){return b},set fallbackRoot(j){b=j},get fallbackFormat(){return p},set fallbackFormat(j){p=j,A.fallbackFormat=p},get warnHtmlMessage(){return x},set warnHtmlMessage(j){x=j,A.warnHtmlMessage=j},get escapeParameter(){return E},set escapeParameter(j){E=j,A.escapeParameter=j},t:Ce,getLocaleMessage:k,setLocaleMessage:I,mergeLocaleMessage:N,getPostTranslationHandler:Ae,setPostTranslationHandler:Le,getMissingHandler:Te,setMissingHandler:Ie,[Vz]:ve};return pe.datetimeFormats=U,pe.numberFormats=ce,pe.rt=de,pe.te=$e,pe.tm=M,pe.d=we,pe.n=ke,pe.getDateTimeFormat=G,pe.setDateTimeFormat=Y,pe.mergeDateTimeFormat=se,pe.getNumberFormat=ye,pe.setNumberFormat=X,pe.mergeNumberFormat=ee,pe[jz]=n,pe[zg]=Ge,pe[qg]=me,pe[Bg]=J,pe}const wb={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function Wz({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((n,i)=>[...n,...i.type===St?i.children:[i]],[]):e.reduce((r,n)=>{const i=t[n];return i&&(r[n]=i()),r},{})}function zk(t){return St}const Qz=Bt({name:"i18n-t",props:nn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Ir(t)||!isNaN(t)}},wb),setup(t,e){const{slots:r,attrs:n}=e,i=t.i18n||On({useScope:t.scope,__useComponent:!0});return()=>{const o=Object.keys(r).filter(_=>_!=="_"),a={};t.locale&&(a.locale=t.locale),t.plural!==void 0&&(a.plural=Qe(t.plural)?+t.plural:t.plural);const c=Wz(e,o),d=i[zg](t.keypath,c,a),u=nn({},n),f=Qe(t.tag)||Dt(t.tag)?t.tag:zk();return Ni(f,u,d)}}}),y5=Qz;function Kz(t){return wr(t)&&!Qe(t[0])}function qk(t,e,r,n){const{slots:i,attrs:o}=e;return()=>{const a={part:!0};let c={};t.locale&&(a.locale=t.locale),Qe(t.format)?a.key=t.format:Dt(t.format)&&(Qe(t.format.key)&&(a.key=t.format.key),c=Object.keys(t.format).reduce((y,b)=>r.includes(b)?nn({},y,{[b]:t.format[b]}):y,{}));const d=n(t.value,a,c);let u=[a.key];wr(d)?u=d.map((y,b)=>{const p=i[y.type],m=p?p({[y.type]:y.value,index:b,parts:d}):[y.value];return Kz(m)&&(m[0].key=`${y.type}-${b}`),m}):Qe(d)&&(u=[d]);const f=nn({},o),_=Qe(t.tag)||Dt(t.tag)?t.tag:zk();return Ni(_,f,u)}}const Yz=Bt({name:"i18n-n",props:nn({value:{type:Number,required:!0},format:{type:[String,Object]}},wb),setup(t,e){const r=t.i18n||On({useScope:"parent",__useComponent:!0});return qk(t,e,Lk,(...n)=>r[Bg](...n))}}),b5=Yz,Zz=Bt({name:"i18n-d",props:nn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},wb),setup(t,e){const r=t.i18n||On({useScope:"parent",__useComponent:!0});return qk(t,e,Rk,(...n)=>r[qg](...n))}}),x5=Zz;function Xz(t,e){const r=t;if(t.mode==="composition")return r.__getInstance(e)||t.global;{const n=r.__getInstance(e);return n!=null?n.__composer:t.global.__composer}}function Jz(t){const e=a=>{const{instance:c,modifiers:d,value:u}=a;if(!c||!c.$)throw Kn($n.UNEXPECTED_ERROR);const f=Xz(t,c.$),_=w5(u);return[Reflect.apply(f.t,f,[...E5(_)]),f]};return{created:(a,c)=>{const[d,u]=e(c);Rg&&t.global===u&&(a.__i18nWatcher=Vt(u.locale,()=>{c.instance&&c.instance.$forceUpdate()})),a.__composer=u,a.textContent=d},unmounted:a=>{Rg&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:c})=>{if(a.__composer){const d=a.__composer,u=w5(c);a.textContent=Reflect.apply(d.t,d,[...E5(u)])}},getSSRProps:a=>{const[c]=e(a);return{textContent:c}}}}function w5(t){if(Qe(t))return{path:t};if(Tt(t)){if(!("path"in t))throw Kn($n.REQUIRED_VALUE,"path");return t}else throw Kn($n.INVALID_VALUE)}function E5(t){const{path:e,locale:r,args:n,choice:i,plural:o}=t,a={},c=n||{};return Qe(r)&&(a.locale=r),Ir(i)&&(a.plural=i),Ir(o)&&(a.plural=o),[e,c,a]}function eq(t,e,...r){const n=Tt(r[0])?r[0]:{},i=!!n.useI18nComponentName;(nr(n.globalInstall)?n.globalInstall:!0)&&([i?"i18n":y5.name,"I18nT"].forEach(a=>t.component(a,y5)),[b5.name,"I18nN"].forEach(a=>t.component(a,b5)),[x5.name,"I18nD"].forEach(a=>t.component(a,x5))),t.directive("t",Jz(e))}const tq=ka("global-vue-i18n");function rq(t={},e){const r=nr(t.globalInjection)?t.globalInjection:!0,n=!0,i=new Map,[o,a]=nq(t),c=ka("");function d(_){return i.get(_)||null}function u(_,y){i.set(_,y)}function f(_){i.delete(_)}{const _={get mode(){return"composition"},get allowComposition(){return n},async install(y,...b){if(y.__VUE_I18N_SYMBOL__=c,y.provide(y.__VUE_I18N_SYMBOL__,_),Tt(b[0])){const g=b[0];_.__composerExtend=g.__composerExtend,_.__vueI18nExtend=g.__vueI18nExtend}let p=null;r&&(p=uq(y,_.global)),eq(y,_,...b);const m=y.unmount;y.unmount=()=>{p&&p(),_.dispose(),m()}},get global(){return a},dispose(){o.stop()},__instances:i,__getInstance:d,__setInstance:u,__deleteInstance:f};return _}}function On(t={}){const e=Gi();if(e==null)throw Kn($n.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Kn($n.NOT_INSTALLED);const r=iq(e),n=aq(r),i=Hz(e),o=oq(t,i);if(o==="global")return Gz(n,t,i),n;if(o==="parent"){let d=sq(r,e,t.__useComponent);return d==null&&(d=n),d}const a=r;let c=a.__getInstance(e);if(c==null){const d=nn({},t);"__i18n"in i&&(d.__i18n=i.__i18n),n&&(d.__root=n),c=Nk(d),a.__composerExtend&&(c[Ug]=a.__composerExtend(c)),cq(a,e,c),a.__setInstance(e,c)}return c}function nq(t,e,r){const n=Sy();{const i=n.run(()=>Nk(t));if(i==null)throw Kn($n.UNEXPECTED_ERROR);return[n,i]}}function iq(t){{const e=rn(t.isCE?tq:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Kn(t.isCE?$n.NOT_INSTALLED_WITH_PROVIDE:$n.UNEXPECTED_ERROR);return e}}function oq(t,e){return sh(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function aq(t){return t.mode==="composition"?t.global:t.global.__composer}function sq(t,e,r=!1){let n=null;const i=e.root;let o=lq(e,r);for(;o!=null;){const a=t;if(t.mode==="composition"&&(n=a.__getInstance(o)),n!=null||i===o)break;o=o.parent}return n}function lq(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function cq(t,e,r){mn(()=>{},e),Wl(()=>{const n=r;t.__deleteInstance(e);const i=n[Ug];i&&(i(),delete n[Ug])},e)}const dq=["locale","fallbackLocale","availableLocales"],T5=["t","rt","d","n","tm","te"];function uq(t,e){const r=Object.create(null);return dq.forEach(i=>{const o=Object.getOwnPropertyDescriptor(e,i);if(!o)throw Kn($n.UNEXPECTED_ERROR);const a=Rt(o.value)?{get(){return o.value.value},set(c){o.value.value=c}}:{get(){return o.get&&o.get()}};Object.defineProperty(r,i,a)}),t.config.globalProperties.$i18n=r,T5.forEach(i=>{const o=Object.getOwnPropertyDescriptor(e,i);if(!o||!o.value)throw Kn($n.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${i}`,o)}),()=>{delete t.config.globalProperties.$i18n,T5.forEach(i=>{delete t.config.globalProperties[`$${i}`]})}}Uz();__INTLIFY_JIT_COMPILATION__?a5(Dz):a5(Mz);$z(mz);Oz(Ek);function fq(t){return{all:t=t||new Map,on:function(e,r){var n=t.get(e);n?n.push(r):t.set(e,[r])},off:function(e,r){var n=t.get(e);n&&(r?n.splice(n.indexOf(r)>>>0,1):t.set(e,[]))},emit:function(e,r){var n=t.get(e);n&&n.slice().map(function(i){i(r)}),(n=t.get("*"))&&n.slice().map(function(i){i(e,r)})}}}const pt=fq();class pq{constructor(e,r){kr(this,"startedAt");kr(this,"callback");kr(this,"delay");kr(this,"timer");this.startedAt=Date.now(),this.callback=e,this.delay=r,this.timer=setTimeout(e,r)}pause(){this.stop(),this.delay-=Date.now()-this.startedAt}resume(){this.stop(),this.startedAt=Date.now(),this.timer=setTimeout(this.callback,this.delay)}stop(){clearTimeout(this.timer)}}const hq={key:0,class:"toast-container"},mq=Bt({__name:"Toaster",props:{message:{type:String,required:!0},type:{type:String,default:""},duration:{type:[Number,Boolean],default:5e3},onClick:{type:Function,default:()=>{}}},setup(t){const e=t,r=Se(!0),n=e.duration!==!1?new pq(c,e.duration):null;function i(){e.onClick.apply(null,arguments),c()}function o(d){n&&(d?n.pause():n.resume())}function a(){n&&n.stop()}function c(){a(),r.value=!1}return(d,u)=>(te(),Hr(Wy,{to:"body"},[r.value?(te(),oe("div",hq,[V("div",{class:jn(["v-toast",t.type]),onMouseover:u[0]||(u[0]=f=>o(!0)),onMouseleave:u[1]||(u[1]=f=>o(!1)),onClick:i,role:"alert"},De(t.message),35)])):yt("",!0)]))}}),go=(t,e="")=>{ag(Ni(mq,{message:t,type:e}),document.createElement("div"))};function Bk(){return window.location.host}function vq(){return{"Content-Type":"multipart/form-data","c-id":localStorage.getItem("client_id")??""}}function gq(){return`${window.location.protocol==="http:"?"ws":"wss"}://${Bk()}`}function $l(){return`${window.location.protocol}//${Bk()}`}const wv="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",_q=()=>{const t=crypto.getRandomValues(new Uint8Array(16));t[6]=t[6]&15|64,t[8]=t[8]&63|128;const e=yq(t).toLowerCase();return`${e.substring(0,8)}-${e.substring(8,12)}-${e.substring(12,16)}-${e.substring(16,20)}-${e.substring(20)}`},jg=()=>{const t=wq("0123456789abcdef",wv,_q().toLowerCase().replace(/-/g,"")),e=Math.ceil(Math.log(2**128)/Math.log(wv.length));return t.padStart(e,wv[0])},yq=t=>[...t].map(e=>e.toString(16).padStart(2,"0")).join(""),bq=t=>{const e=new Uint8Array(t.length);for(let r=0;r/[\u3400-\u9FBF]/.test(t);function Hg(t){return t?btoa(encodeURIComponent(t)):""}function xq(t){try{return decodeURIComponent(atob(t))}catch{return t}}function wq(t,e,r){let n,i,o,a=[],c=t.length,d=e.length,u=r.length,f="";if(t===e)return r;for(n=0;n=d?(a[o++]=parseInt((i/d).toString(),10),i=i%d):o>0&&(a[o++]=0);u=o,f=e.slice(i,i+1).concat(f)}while(o!==0);return f}const Eq=/(\b(((https?|ftp):\/\/)|www.)[A-Z0-9+&@#\/%?=~_|!:,.;-]*[-A-Z0-9+&@#\/%=~_|])/gim,Tq=/(\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,6})/gim;function kq(t){let e=Cq(t);return e=e.replace(Eq,'$1'),e=e.replace(Tq,'$1'),e.replace(/\n\r?/g,"
")}function Cq(t){return t.replace(/[\u00A0-\u9999<>&'"]/gim,function(e){return"&#"+e.charCodeAt(0)+";"})}var fo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Eb(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Aq(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var Uk={exports:{}};const Sq={},Iq=Object.freeze(Object.defineProperty({__proto__:null,default:Sq},Symbol.toStringTag,{value:"Module"})),$q=Aq(Iq);(function(t){var e={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(p){this.toString=function(){return"CORRUPT: "+this.message},this.message=p},invalid:function(p){this.toString=function(){return"INVALID: "+this.message},this.message=p},bug:function(p){this.toString=function(){return"BUG: "+this.message},this.message=p},notReady:function(p){this.toString=function(){return"NOT READY: "+this.message},this.message=p}}};e.cipher.aes=function(p){this.s[0][0][0]||this.O();var m,g,v,x,E=this.s[0][4],T=this.s[1];m=p.length;var C=1;if(m!==4&&m!==6&&m!==8)throw new e.exception.invalid("invalid aes key size");for(this.b=[v=p.slice(0),x=[]],p=m;p<4*m+28;p++)g=v[p-1],(p%m===0||m===8&&p%m===4)&&(g=E[g>>>24]<<24^E[g>>16&255]<<16^E[g>>8&255]<<8^E[g&255],p%m===0&&(g=g<<8^g>>>24^C<<24,C=C<<1^283*(C>>7))),v[p]=v[p-m]^g;for(m=0;p;m++,p--)g=v[m&3?p:p-4],x[m]=4>=p||4>m?g:T[0][E[g>>>24]]^T[1][E[g>>16&255]]^T[2][E[g>>8&255]]^T[3][E[g&255]]},e.cipher.aes.prototype={encrypt:function(p){return r(this,p,0)},decrypt:function(p){return r(this,p,1)},s:[[[],[],[],[],[]],[[],[],[],[],[]]],O:function(){var p=this.s[0],m=this.s[1],g=p[4],v=m[4],x,E,T,C=[],A=[],L,R,D,q;for(x=0;256>x;x++)A[(C[x]=x<<1^283*(x>>7))^x]=x;for(E=T=0;!g[E];E^=L||1,T=A[T]||1)for(D=T^T<<1^T<<2^T<<3^T<<4,D=D>>8^D&255^99,g[E]=D,v[D]=E,R=C[x=C[L=C[E]]],q=16843009*R^65537*x^257*L^16843008*E,R=257*C[D]^16843008*D,x=0;4>x;x++)p[x][E]=R=R<<24^R>>>8,m[x][D]=q=q<<24^q>>>8;for(x=0;5>x;x++)p[x]=p[x].slice(0),m[x]=m[x].slice(0)}};function r(p,m,g){if(m.length!==4)throw new e.exception.invalid("invalid aes block size");var v=p.b[g],x=m[0]^v[0],E=m[g?3:1]^v[1],T=m[2]^v[2];m=m[g?1:3]^v[3];var C,A,L,R=v.length/4-2,D,q=4,H=[0,0,0,0];C=p.s[g],p=C[0];var U=C[1],ce=C[2],Ae=C[3],Le=C[4];for(D=0;D>>24]^U[E>>16&255]^ce[T>>8&255]^Ae[m&255]^v[q],A=p[E>>>24]^U[T>>16&255]^ce[m>>8&255]^Ae[x&255]^v[q+1],L=p[T>>>24]^U[m>>16&255]^ce[x>>8&255]^Ae[E&255]^v[q+2],m=p[m>>>24]^U[x>>16&255]^ce[E>>8&255]^Ae[T&255]^v[q+3],q+=4,x=C,E=A,T=L;for(D=0;4>D;D++)H[g?3&-D:D]=Le[x>>>24]<<24^Le[E>>16&255]<<16^Le[T>>8&255]<<8^Le[m&255]^v[q++],C=x,x=E,E=T,T=m,m=C;return H}e.bitArray={bitSlice:function(p,m,g){return p=e.bitArray.$(p.slice(m/32),32-(m&31)).slice(1),g===void 0?p:e.bitArray.clamp(p,g-m)},extract:function(p,m,g){var v=Math.floor(-m-g&31);return((m+g-1^m)&-32?p[m/32|0]<<32-v^p[m/32+1|0]>>>v:p[m/32|0]>>>v)&(1<>m-1,1)),p},partial:function(p,m,g){return p===32?m:(g?m|0:m<<32-p)+1099511627776*p},getPartial:function(p){return Math.round(p/1099511627776)||32},equal:function(p,m){if(e.bitArray.bitLength(p)!==e.bitArray.bitLength(m))return!1;var g=0,v;for(v=0;v>>m),g=p[x]<<32-m;return x=p.length?p[p.length-1]:0,p=e.bitArray.getPartial(x),v.push(e.bitArray.partial(m+p&31,32>>24|g>>>8&65280|(g&65280)<<8|g<<24;return p}},e.codec.utf8String={fromBits:function(p){var m="",g=e.bitArray.bitLength(p),v,x;for(v=0;v>>8>>>8>>>8),x<<=8;return decodeURIComponent(escape(m))},toBits:function(p){p=unescape(encodeURIComponent(p));var m=[],g,v=0;for(g=0;g>>T)>>>x),TR){if(!m)try{return e.codec.base32hex.toBits(p)}catch{}throw new e.exception.invalid("this isn't "+D+"!")}C>x?(C-=x,E.push(L^R>>>C),L=R<>>x)>>>26),6>x?(T=p[g]<<6-x,x+=26,g++):(T<<=6,x-=6);for(;v.length&3&&!m;)v+="=";return v},toBits:function(p,m){p=p.replace(/\s|=/g,"");var g=[],v,x=0,E=e.codec.base64.B,T=0,C;for(m&&(E=E.substr(0,62)+"-_"),v=0;vC)throw new e.exception.invalid("this isn't base64!");26>>x),T=C<<32-x):(x+=6,T^=C<<32-x)}return x&56&&g.push(e.bitArray.partial(x&56,T,1)),g}},e.codec.base64url={fromBits:function(p){return e.codec.base64.fromBits(p,1,1)},toBits:function(p){return e.codec.base64.toBits(p,1)}},e.hash.sha256=function(p){this.b[0]||this.O(),p?(this.F=p.F.slice(0),this.A=p.A.slice(0),this.l=p.l):this.reset()},e.hash.sha256.hash=function(p){return new e.hash.sha256().update(p).finalize()},e.hash.sha256.prototype={blockSize:512,reset:function(){return this.F=this.Y.slice(0),this.A=[],this.l=0,this},update:function(p){typeof p=="string"&&(p=e.codec.utf8String.toBits(p));var m,g=this.A=e.bitArray.concat(this.A,p);if(m=this.l,p=this.l=m+e.bitArray.bitLength(p),9007199254740991m;g++){for(x=!0,v=2;v*v<=g;v++)if(g%v===0){x=!1;break}x&&(8>m&&(this.Y[m]=p(Math.pow(g,.5))),this.b[m]=p(Math.pow(g,1/3)),m++)}}};function n(p,m){var g,v,x,E=p.F,T=p.b,C=E[0],A=E[1],L=E[2],R=E[3],D=E[4],q=E[5],H=E[6],U=E[7];for(g=0;64>g;g++)16>g?v=m[g]:(v=m[g+1&15],x=m[g+14&15],v=m[g&15]=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(x>>>17^x>>>19^x>>>10^x<<15^x<<13)+m[g&15]+m[g+9&15]|0),v=v+U+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(H^D&(q^H))+T[g],U=H,H=q,q=D,D=R+v|0,R=L,L=A,A=C,C=v+(A&L^R&(A^L))+(A>>>2^A>>>13^A>>>22^A<<30^A<<19^A<<10)|0;E[0]=E[0]+C|0,E[1]=E[1]+A|0,E[2]=E[2]+L|0,E[3]=E[3]+R|0,E[4]=E[4]+D|0,E[5]=E[5]+q|0,E[6]=E[6]+H|0,E[7]=E[7]+U|0}e.mode.ccm={name:"ccm",G:[],listenProgress:function(p){e.mode.ccm.G.push(p)},unListenProgress:function(p){p=e.mode.ccm.G.indexOf(p),-1A)throw new e.exception.invalid("ccm: iv must be at least 7 bytes");for(E=2;4>E&&L>>>8*E;E++);return E<15-A&&(E=15-A),g=C.clamp(g,8*(15-E)),m=e.mode.ccm.V(p,m,g,v,x,E),T=e.mode.ccm.C(p,T,g,m,x,E),C.concat(T.data,T.tag)},decrypt:function(p,m,g,v,x){x=x||64,v=v||[];var E=e.bitArray,T=E.bitLength(g)/8,L=E.bitLength(m),C=E.clamp(m,L-x),A=E.bitSlice(m,L-x),L=(L-x)/8;if(7>T)throw new e.exception.invalid("ccm: iv must be at least 7 bytes");for(m=2;4>m&&L>>>8*m;m++);if(m<15-T&&(m=15-T),g=E.clamp(g,8*(15-m)),C=e.mode.ccm.C(p,C,g,A,x,m),p=e.mode.ccm.V(p,C.data,g,v,x,m),!E.equal(C.tag,p))throw new e.exception.corrupt("ccm: tag doesn't match");return C.data},na:function(p,m,g,v,x,E){var T=[],C=e.bitArray,A=C.i;if(v=[C.partial(8,(m.length?64:0)|v-2<<2|E-1)],v=C.concat(v,g),v[3]|=x,v=p.encrypt(v),m.length)for(g=C.bitLength(m)/8,65279>=g?T=[C.partial(16,g)]:4294967295>=g&&(T=C.concat([C.partial(16,65534)],[g])),T=C.concat(T,m),m=0;mx||16R&&(e.mode.ccm.fa(T/A),R+=D),g[3]++,x=p.encrypt(g),m[T]^=x[0],m[T+1]^=x[1],m[T+2]^=x[2],m[T+3]^=x[3];return{tag:v,data:C.clamp(m,L)}}},e.mode.ocb2={name:"ocb2",encrypt:function(p,m,g,v,x,E){if(e.bitArray.bitLength(g)!==128)throw new e.exception.invalid("ocb iv must be 128 bits");var T,C=e.mode.ocb2.S,A=e.bitArray,L=A.i,R=[0,0,0,0];g=C(p.encrypt(g));var D,q=[];for(v=v||[],x=x||64,T=0;T+4x.bitLength(g)&&(C=E(C,v(C)),g=x.concat(g,[-2147483648,0,0,0])),T=E(T,g),p.encrypt(E(v(E(C,v(C))),T))},S:function(p){return[p[0]<<1^p[1]>>>31,p[1]<<1^p[2]>>>31,p[2]<<1^p[3]>>>31,p[3]<<1^135*(p[0]>>>31)]}},e.mode.gcm={name:"gcm",encrypt:function(p,m,g,v,x){var E=m.slice(0);return m=e.bitArray,v=v||[],p=e.mode.gcm.C(!0,p,E,v,g,x||128),m.concat(p.data,p.tag)},decrypt:function(p,m,g,v,x){var E=m.slice(0),T=e.bitArray,C=T.bitLength(E);if(x=x||128,v=v||[],x<=C?(m=T.bitSlice(E,C-x),E=T.bitSlice(E,0,C-x)):(m=E,E=[]),p=e.mode.gcm.C(!1,p,E,v,g,x),!T.equal(p.tag,m))throw new e.exception.corrupt("gcm: tag doesn't match");return p.data},ka:function(p,m){var g,v,x,E,T,C=e.bitArray.i;for(x=[0,0,0,0],E=m.slice(0),g=0;128>g;g++){for((v=(p[Math.floor(g/32)]&1<<31-g%32)!==0)&&(x=C(x,E)),T=(E[3]&1)!==0,v=3;0>>1|(E[v-1]&1)<<31;E[0]>>>=1,T&&(E[0]^=-520093696)}return x},j:function(p,m,g){var v,x=g.length;for(m=m.slice(0),v=0;vx&&(p=m.hash(p)),v=0;vv||0>g)throw new e.exception.invalid("invalid params to pbkdf2");typeof p=="string"&&(p=e.codec.utf8String.toBits(p)),typeof m=="string"&&(m=e.codec.utf8String.toBits(m)),x=x||e.misc.hmac,p=new x(p);var E,T,C,A,L=[],R=e.bitArray;for(A=1;32*L.length<(v||1);A++){for(x=E=p.encrypt(R.concat(m,[A])),T=1;TT;T++)x.push(4294967296*Math.random()|0);for(T=0;T=1<this.o&&(this.o=E),this.P++,this.b=e.hash.sha256.hash(this.b.concat(x)),this.L=new e.cipher.aes(this.b),v=0;4>v&&(this.h[v]=this.h[v]+1|0,!this.h[v]);v++);}for(v=0;v>>1;this.c[T].update([v,this.N++,2,m,E,p.length].concat(p))}break;case"string":m===void 0&&(m=p.length),this.c[T].update([v,this.N++,3,m,E,p.length]),this.c[T].update(p);break;default:A=1}if(A)throw new e.exception.bug("random: addEntropy only supports number, array of numbers or string");this.m[T]+=m,this.f+=m,C===this.u&&(this.isReady()!==this.u&&i("seeded",Math.max(this.o,this.f)),i("progress",this.getProgress()))},isReady:function(p){return p=this.T[p!==void 0?p:this.M],this.o&&this.o>=p?this.m[0]>this.ba&&new Date().valueOf()>this.Z?this.J|this.I:this.I:this.f>=p?this.J|this.u:this.u},getProgress:function(p){return p=this.T[p||this.M],this.o>=p||this.f>p?1:this.f/p},startCollectors:function(){if(!this.D){if(this.a={loadTimeCollector:d(this,this.ma),mouseCollector:d(this,this.oa),keyboardCollector:d(this,this.la),accelerometerCollector:d(this,this.ea),touchCollector:d(this,this.qa)},window.addEventListener)window.addEventListener("load",this.a.loadTimeCollector,!1),window.addEventListener("mousemove",this.a.mouseCollector,!1),window.addEventListener("keypress",this.a.keyboardCollector,!1),window.addEventListener("devicemotion",this.a.accelerometerCollector,!1),window.addEventListener("touchmove",this.a.touchCollector,!1);else if(document.attachEvent)document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector);else throw new e.exception.bug("can't attach event");this.D=!0}},stopCollectors:function(){this.D&&(window.removeEventListener?(window.removeEventListener("load",this.a.loadTimeCollector,!1),window.removeEventListener("mousemove",this.a.mouseCollector,!1),window.removeEventListener("keypress",this.a.keyboardCollector,!1),window.removeEventListener("devicemotion",this.a.accelerometerCollector,!1),window.removeEventListener("touchmove",this.a.touchCollector,!1)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",this.a.mouseCollector),document.detachEvent("keypress",this.a.keyboardCollector)),this.D=!1)},addEventListener:function(p,m){this.K[p][this.ga++]=m},removeEventListener:function(p,m){var g,v,x=this.K[p],E=[];for(v in x)x.hasOwnProperty(v)&&x[v]===m&&E.push(v);for(g=0;gm&&(p.h[m]=p.h[m]+1|0,!p.h[m]);m++);return p.L.encrypt(p.h)}function d(p,m){return function(){m.apply(p,arguments)}}e.random=new e.prng(6);e:try{var u,f,_,y;if(y=t.exports){var b;try{b=$q}catch{b=null}y=f=b}if(y&&f.randomBytes)u=f.randomBytes(128),u=new Uint32Array(new Uint8Array(u).buffer),e.random.addEntropy(u,1024,"crypto['randomBytes']");else if(typeof window<"u"&&typeof Uint32Array<"u"){if(_=new Uint32Array(32),window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(_);else if(window.msCrypto&&window.msCrypto.getRandomValues)window.msCrypto.getRandomValues(_);else break e;e.random.addEntropy(_,1024,"crypto['getRandomValues']")}}catch(p){typeof window<"u"&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(p))}e.json={defaults:{v:1,iter:1e4,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},ja:function(p,m,g,v){g=g||{},v=v||{};var x=e.json,E=x.g({iv:e.random.randomWords(4,0)},x.defaults),T;if(x.g(E,g),g=E.adata,typeof E.salt=="string"&&(E.salt=e.codec.base64.toBits(E.salt)),typeof E.iv=="string"&&(E.iv=e.codec.base64.toBits(E.iv)),!e.mode[E.mode]||!e.cipher[E.cipher]||typeof p=="string"&&100>=E.iter||E.ts!==64&&E.ts!==96&&E.ts!==128||E.ks!==128&&E.ks!==192&&E.ks!==256||2>E.iv.length||4=m.iter||m.ts!==64&&m.ts!==96&&m.ts!==128||m.ks!==128&&m.ks!==192&&m.ks!==256||!m.iv||2>m.iv.length||49007199254740991)throw new zt.exception.invalid("Cannot hash more than 2^53 - 1 bits");if(typeof Uint32Array<"u"){const o=new Uint32Array(r);let a=0;for(e=1024+n-(1024+n&1023);e<=i;e+=1024)this._block(o.subarray(32*a,32*(a+1))),a+=1;r.splice(0,32*a)}else for(e=1024+n-(1024+n&1023);e<=i;e+=1024)this._block(r.splice(0,32));return this},finalize:function(){let t,e=this._buffer,r=this._h;for(e=zt.bitArray.concat(e,[zt.bitArray.partial(1,1)]),t=e.length+4;t&31;t++)e.push(0);for(e.push(0),e.push(0),e.push(Math.floor(this._length/4294967296)),e.push(this._length|0);e.length;)this._block(e.splice(0,32));return this.reset(),r},_init:[],_initr:[12372232,13281083,9762859,1914609,15106769,4090911,4308331,8266105],_key:[],_keyr:[2666018,15689165,5061423,9034684,4764984,380953,1658779,7176472,197186,7368638,14987916,16757986,8096111,1480369,13046325,6891156,15813330,5187043,9229749,11312229,2818677,10937475,4324308,1135541,6741931,11809296,16458047,15666916,11046850,698149,229999,945776,13774844,2541862,12856045,9810911,11494366,7844520,15576806,8533307,15795044,4337665,16291729,5553712,15684120,6662416,7413802,12308920,13816008,4303699,9366425,10176680,13195875,4295371,6546291,11712675,15708924,1519456,15772530,6568428,6495784,8568297,13007125,7492395,2515356,12632583,14740254,7262584,1535930,13146278,16321966,1853211,294276,13051027,13221564,1051980,4080310,6651434,14088940,4675607],_precompute:function(){let t=0,e=2,r,n;function i(a){return(a-Math.floor(a))*4294967296|0}function o(a){return(a-Math.floor(a))*1099511627776&255}for(;t<80;e++){for(n=!0,r=2;r*r<=e;r++)if(e%r===0){n=!1;break}n&&(t<8&&(this._init[t*2]=i(Math.pow(e,1/2)),this._init[t*2+1]=o(Math.pow(e,1/2))<<24|this._initr[t]),this._key[t*2]=i(Math.pow(e,1/3)),this._key[t*2+1]=o(Math.pow(e,1/3))<<24|this._keyr[t],t++)}},_block:function(t){let e,r,n,i=this._h,o=this._key,a=i[0],c=i[1],d=i[2],u=i[3],f=i[4],_=i[5],y=i[6],b=i[7],p=i[8],m=i[9],g=i[10],v=i[11],x=i[12],E=i[13],T=i[14],C=i[15],A;if(typeof Uint32Array<"u"){A=Array(160);for(let Re=0;Re<32;Re++)A[Re]=t[Re]}else A=t;let L=a,R=c,D=d,q=u,H=f,U=_,ce=y,Ae=b,Le=p,Te=m,Ie=g,Pe=v,Ce=x,de=E,we=T,ke=C;for(e=0;e<80;e++){if(e<16)r=A[e*2],n=A[e*2+1];else{const Y=A[(e-15)*2],se=A[(e-15)*2+1],ye=(se<<31|Y>>>1)^(se<<24|Y>>>8)^Y>>>7,X=(Y<<31|se>>>1)^(Y<<24|se>>>8)^(Y<<25|se>>>7),ee=A[(e-2)*2],pe=A[(e-2)*2+1],j=(pe<<13|ee>>>19)^(ee<<3|pe>>>29)^ee>>>6,z=(ee<<13|pe>>>19)^(pe<<3|ee>>>29)^(ee<<26|pe>>>6),ie=A[(e-7)*2],be=A[(e-7)*2+1],Ne=A[(e-16)*2],Ue=A[(e-16)*2+1];n=X+be,r=ye+ie+(n>>>0>>0?1:0),n+=z,r+=j+(n>>>0>>0?1:0),n+=Ue,r+=Ne+(n>>>0>>0?1:0)}A[e*2]=r|=0,A[e*2+1]=n|=0;const Re=Le&Ie^~Le&Ce,He=Te&Pe^~Te&de,ze=L&D^L&H^D&H,Ge=R&q^R&U^q&U,J=(R<<4|L>>>28)^(L<<30|R>>>2)^(L<<25|R>>>7),me=(L<<4|R>>>28)^(R<<30|L>>>2)^(R<<25|L>>>7),ve=(Te<<18|Le>>>14)^(Te<<14|Le>>>18)^(Le<<23|Te>>>9),$e=(Le<<18|Te>>>14)^(Le<<14|Te>>>18)^(Te<<23|Le>>>9),Oe=o[e*2],M=o[e*2+1];let k=ke+$e,I=we+ve+(k>>>0>>0?1:0);k+=He,I+=Re+(k>>>0>>0?1:0),k+=M,I+=Oe+(k>>>0>>0?1:0),k=k+n|0,I+=r+(k>>>0>>0?1:0);const N=me+Ge,G=J+ze+(N>>>0>>0?1:0);we=Ce,ke=de,Ce=Ie,de=Pe,Ie=Le,Pe=Te,Te=Ae+k|0,Le=ce+I+(Te>>>0>>0?1:0)|0,ce=H,Ae=U,H=D,U=q,D=L,q=R,R=k+N|0,L=I+G+(R>>>0>>0?1:0)|0}c=i[1]=c+R|0,i[0]=a+L+(c>>>0>>0?1:0)|0,u=i[3]=u+q|0,i[2]=d+D+(u>>>0>>0?1:0)|0,_=i[5]=_+U|0,i[4]=f+H+(_>>>0>>0?1:0)|0,b=i[7]=b+Ae|0,i[6]=y+ce+(b>>>0>>0?1:0)|0,m=i[9]=m+Te|0,i[8]=p+Le+(m>>>0>>0?1:0)|0,v=i[11]=v+Pe|0,i[10]=g+Ie+(v>>>0>>0?1:0)|0,E=i[13]=E+de|0,i[12]=x+Ce+(E>>>0>>0?1:0)|0,C=i[15]=C+ke|0,i[14]=T+we+(C>>>0>>0?1:0)|0}};zt.hash.sha512;function Oq(t){let e,r,n,i,o;if(t.length===0)return new ArrayBuffer(0);if(n=Qf.bitArray.bitLength(t)/8,Qf.bitArray.bitLength(t)%8!==0)throw new Qf.exception.invalid("Invalid bit size, must be divisble by 8 to fit in an arraybuffer correctly");for(i=new DataView(new ArrayBuffer(t.length*4)),r=0;re?e:r}function yp(t,e,r){return re?e:r}function k5(t){return t=t%360,t<0&&(t=t+360),t}function ls(t){return t=t%360,t<0&&(t=t+360),t}function Gg(t,e){const r=t[0]*e[0][0]+t[1]*e[0][1]+t[2]*e[0][2],n=t[0]*e[1][0]+t[1]*e[1][1]+t[2]*e[1][2],i=t[0]*e[2][0]+t[1]*e[2][1]+t[2]*e[2][2];return[r,n,i]}const Hk=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],Lq=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],Gk=[95.047,100,108.883];function Cb(t,e,r){return(255<<24|(t&255)<<16|(e&255)<<8|r&255)>>>0}function C5(t){const e=cs(t[0]),r=cs(t[1]),n=cs(t[2]);return Cb(e,r,n)}function Ab(t){return t>>16&255}function Sb(t){return t>>8&255}function Ib(t){return t&255}function Mq(t,e,r){const n=Lq,i=n[0][0]*t+n[0][1]*e+n[0][2]*r,o=n[1][0]*t+n[1][1]*e+n[1][2]*r,a=n[2][0]*t+n[2][1]*e+n[2][2]*r,c=cs(i),d=cs(o),u=cs(a);return Cb(c,d,u)}function Dq(t){const e=ho(Ab(t)),r=ho(Sb(t)),n=ho(Ib(t));return Gg([e,r,n],Hk)}function Fq(t){const e=ho(Ab(t)),r=ho(Sb(t)),n=ho(Ib(t)),i=Hk,o=i[0][0]*e+i[0][1]*r+i[0][2]*n,a=i[1][0]*e+i[1][1]*r+i[1][2]*n,c=i[2][0]*e+i[2][1]*r+i[2][2]*n,d=Gk,u=o/d[0],f=a/d[1],_=c/d[2],y=Jc(u),b=Jc(f),p=Jc(_),m=116*b-16,g=500*(y-b),v=200*(b-p);return[m,g,v]}function Nq(t){const e=ia(t),r=cs(e);return Cb(r,r,r)}function A5(t){const e=Dq(t)[1];return 116*Jc(e/100)-16}function ia(t){return 100*qq((t+16)/116)}function Wg(t){return Jc(t/100)*116-16}function ho(t){const e=t/255;return e<=.040449936?e/12.92*100:Math.pow((e+.055)/1.055,2.4)*100}function cs(t){const e=t/100;let r=0;return e<=.0031308?r=e*12.92:r=1.055*Math.pow(e,1/2.4)-.055,Rq(0,255,Math.round(r*255))}function zq(){return Gk}function Jc(t){const e=.008856451679035631,r=24389/27;return t>e?Math.pow(t,1/3):(r*t+16)/116}function qq(t){const e=.008856451679035631,r=24389/27,n=t*t*t;return n>e?n:(116*t-16)/r}class pi{static make(e=zq(),r=200/Math.PI*ia(50)/100,n=50,i=2,o=!1){const a=e,c=a[0]*.401288+a[1]*.650173+a[2]*-.051461,d=a[0]*-.250268+a[1]*1.204414+a[2]*.045854,u=a[0]*-.002079+a[1]*.048952+a[2]*.953127,f=.8+i/10,_=f>=.9?Xc(.59,.69,(f-.9)*10):Xc(.525,.59,(f-.8)*10);let y=o?1:f*(1-1/3.6*Math.exp((-r-42)/92));y=y>1?1:y<0?0:y;const b=f,p=[y*(100/c)+1-y,y*(100/d)+1-y,y*(100/u)+1-y],m=1/(5*r+1),g=m*m*m*m,v=1-g,x=g*r+.1*v*v*Math.cbrt(5*r),E=ia(n)/e[1],T=1.48+Math.sqrt(E),C=.725/Math.pow(E,.2),A=C,L=[Math.pow(x*p[0]*c/100,.42),Math.pow(x*p[1]*d/100,.42),Math.pow(x*p[2]*u/100,.42)],R=[400*L[0]/(L[0]+27.13),400*L[1]/(L[1]+27.13),400*L[2]/(L[2]+27.13)],D=(2*R[0]+R[1]+.05*R[2])*C;return new pi(E,D,C,A,_,b,p,x,Math.pow(x,.25),T)}constructor(e,r,n,i,o,a,c,d,u,f){this.n=e,this.aw=r,this.nbb=n,this.ncb=i,this.c=o,this.nc=a,this.rgbD=c,this.fl=d,this.fLRoot=u,this.z=f}}pi.DEFAULT=pi.make();class kn{constructor(e,r,n,i,o,a,c,d,u){this.hue=e,this.chroma=r,this.j=n,this.q=i,this.m=o,this.s=a,this.jstar=c,this.astar=d,this.bstar=u}distance(e){const r=this.jstar-e.jstar,n=this.astar-e.astar,i=this.bstar-e.bstar,o=Math.sqrt(r*r+n*n+i*i);return 1.41*Math.pow(o,.63)}static fromInt(e){return kn.fromIntInViewingConditions(e,pi.DEFAULT)}static fromIntInViewingConditions(e,r){const n=(e&16711680)>>16,i=(e&65280)>>8,o=e&255,a=ho(n),c=ho(i),d=ho(o),u=.41233895*a+.35762064*c+.18051042*d,f=.2126*a+.7152*c+.0722*d,_=.01932141*a+.11916382*c+.95034478*d,y=.401288*u+.650173*f-.051461*_,b=-.250268*u+1.204414*f+.045854*_,p=-.002079*u+.048952*f+.953127*_,m=r.rgbD[0]*y,g=r.rgbD[1]*b,v=r.rgbD[2]*p,x=Math.pow(r.fl*Math.abs(m)/100,.42),E=Math.pow(r.fl*Math.abs(g)/100,.42),T=Math.pow(r.fl*Math.abs(v)/100,.42),C=un(m)*400*x/(x+27.13),A=un(g)*400*E/(E+27.13),L=un(v)*400*T/(T+27.13),R=(11*C+-12*A+L)/11,D=(C+A-2*L)/9,q=(20*C+20*A+21*L)/20,H=(40*C+20*A+L)/20,ce=Math.atan2(D,R)*180/Math.PI,Ae=ce<0?ce+360:ce>=360?ce-360:ce,Le=Ae*Math.PI/180,Te=H*r.nbb,Ie=100*Math.pow(Te/r.aw,r.c*r.z),Pe=4/r.c*Math.sqrt(Ie/100)*(r.aw+4)*r.fLRoot,Ce=Ae<20.14?Ae+360:Ae,de=.25*(Math.cos(Ce*Math.PI/180+2)+3.8),ke=5e4/13*de*r.nc*r.ncb*Math.sqrt(R*R+D*D)/(q+.305),Re=Math.pow(ke,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),He=Re*Math.sqrt(Ie/100),ze=He*r.fLRoot,Ge=50*Math.sqrt(Re*r.c/(r.aw+4)),J=(1+100*.007)*Ie/(1+.007*Ie),me=1/.0228*Math.log(1+.0228*ze),ve=me*Math.cos(Le),$e=me*Math.sin(Le);return new kn(Ae,He,Ie,Pe,ze,Ge,J,ve,$e)}static fromJch(e,r,n){return kn.fromJchInViewingConditions(e,r,n,pi.DEFAULT)}static fromJchInViewingConditions(e,r,n,i){const o=4/i.c*Math.sqrt(e/100)*(i.aw+4)*i.fLRoot,a=r*i.fLRoot,c=r/Math.sqrt(e/100),d=50*Math.sqrt(c*i.c/(i.aw+4)),u=n*Math.PI/180,f=(1+100*.007)*e/(1+.007*e),_=1/.0228*Math.log(1+.0228*a),y=_*Math.cos(u),b=_*Math.sin(u);return new kn(n,r,e,o,a,d,f,y,b)}static fromUcs(e,r,n){return kn.fromUcsInViewingConditions(e,r,n,pi.DEFAULT)}static fromUcsInViewingConditions(e,r,n,i){const o=r,a=n,c=Math.sqrt(o*o+a*a),u=(Math.exp(c*.0228)-1)/.0228/i.fLRoot;let f=Math.atan2(a,o)*(180/Math.PI);f<0&&(f+=360);const _=e/(1-(e-100)*.007);return kn.fromJchInViewingConditions(_,u,f,i)}toInt(){return this.viewed(pi.DEFAULT)}viewed(e){const r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),n=Math.pow(r/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),i=this.hue*Math.PI/180,o=.25*(Math.cos(i+2)+3.8),a=e.aw*Math.pow(this.j/100,1/e.c/e.z),c=o*(5e4/13)*e.nc*e.ncb,d=a/e.nbb,u=Math.sin(i),f=Math.cos(i),_=23*(d+.305)*n/(23*c+11*n*f+108*n*u),y=_*f,b=_*u,p=(460*d+451*y+288*b)/1403,m=(460*d-891*y-261*b)/1403,g=(460*d-220*y-6300*b)/1403,v=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),x=un(p)*(100/e.fl)*Math.pow(v,1/.42),E=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),T=un(m)*(100/e.fl)*Math.pow(E,1/.42),C=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),A=un(g)*(100/e.fl)*Math.pow(C,1/.42),L=x/e.rgbD[0],R=T/e.rgbD[1],D=A/e.rgbD[2],q=1.86206786*L-1.01125463*R+.14918677*D,H=.38752654*L+.62144744*R-.00897398*D,U=-.0158415*L-.03412294*R+1.04996444*D;return Mq(q,H,U)}static fromXyzInViewingConditions(e,r,n,i){const o=.401288*e+.650173*r-.051461*n,a=-.250268*e+1.204414*r+.045854*n,c=-.002079*e+.048952*r+.953127*n,d=i.rgbD[0]*o,u=i.rgbD[1]*a,f=i.rgbD[2]*c,_=Math.pow(i.fl*Math.abs(d)/100,.42),y=Math.pow(i.fl*Math.abs(u)/100,.42),b=Math.pow(i.fl*Math.abs(f)/100,.42),p=un(d)*400*_/(_+27.13),m=un(u)*400*y/(y+27.13),g=un(f)*400*b/(b+27.13),v=(11*p+-12*m+g)/11,x=(p+m-2*g)/9,E=(20*p+20*m+21*g)/20,T=(40*p+20*m+g)/20,A=Math.atan2(x,v)*180/Math.PI,L=A<0?A+360:A>=360?A-360:A,R=L*Math.PI/180,D=T*i.nbb,q=100*Math.pow(D/i.aw,i.c*i.z),H=4/i.c*Math.sqrt(q/100)*(i.aw+4)*i.fLRoot,U=L<20.14?L+360:L,ce=1/4*(Math.cos(U*Math.PI/180+2)+3.8),Le=5e4/13*ce*i.nc*i.ncb*Math.sqrt(v*v+x*x)/(E+.305),Te=Math.pow(Le,.9)*Math.pow(1.64-Math.pow(.29,i.n),.73),Ie=Te*Math.sqrt(q/100),Pe=Ie*i.fLRoot,Ce=50*Math.sqrt(Te*i.c/(i.aw+4)),de=(1+100*.007)*q/(1+.007*q),we=Math.log(1+.0228*Pe)/.0228,ke=we*Math.cos(R),Re=we*Math.sin(R);return new kn(L,Ie,q,H,Pe,Ce,de,ke,Re)}xyzInViewingConditions(e){const r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),n=Math.pow(r/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),i=this.hue*Math.PI/180,o=.25*(Math.cos(i+2)+3.8),a=e.aw*Math.pow(this.j/100,1/e.c/e.z),c=o*(5e4/13)*e.nc*e.ncb,d=a/e.nbb,u=Math.sin(i),f=Math.cos(i),_=23*(d+.305)*n/(23*c+11*n*f+108*n*u),y=_*f,b=_*u,p=(460*d+451*y+288*b)/1403,m=(460*d-891*y-261*b)/1403,g=(460*d-220*y-6300*b)/1403,v=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),x=un(p)*(100/e.fl)*Math.pow(v,1/.42),E=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),T=un(m)*(100/e.fl)*Math.pow(E,1/.42),C=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),A=un(g)*(100/e.fl)*Math.pow(C,1/.42),L=x/e.rgbD[0],R=T/e.rgbD[1],D=A/e.rgbD[2],q=1.86206786*L-1.01125463*R+.14918677*D,H=.38752654*L+.62144744*R-.00897398*D,U=-.0158415*L-.03412294*R+1.04996444*D;return[q,H,U]}}class Ze{static sanitizeRadians(e){return(e+Math.PI*8)%(Math.PI*2)}static trueDelinearized(e){const r=e/100;let n=0;return r<=.0031308?n=r*12.92:n=1.055*Math.pow(r,1/2.4)-.055,n*255}static chromaticAdaptation(e){const r=Math.pow(Math.abs(e),.42);return un(e)*400*r/(r+27.13)}static hueOf(e){const r=Gg(e,Ze.SCALED_DISCOUNT_FROM_LINRGB),n=Ze.chromaticAdaptation(r[0]),i=Ze.chromaticAdaptation(r[1]),o=Ze.chromaticAdaptation(r[2]),a=(11*n+-12*i+o)/11,c=(n+i-2*o)/9;return Math.atan2(c,a)}static areInCyclicOrder(e,r,n){const i=Ze.sanitizeRadians(r-e),o=Ze.sanitizeRadians(n-e);return i100.01||q[1]>100.01||q[2]>100.01?0:C5(q);i=i-(Ae-n)*i/(2*Ae)}return 0}static solveToInt(e,r,n){if(r<1e-4||n<1e-4||n>99.9999)return Nq(n);e=ls(e);const i=e/180*Math.PI,o=ia(n),a=Ze.findResultByJ(i,r,o);if(a!==0)return a;const c=Ze.bisectToLimit(o,i);return C5(c)}static solveToCam(e,r,n){return kn.fromInt(Ze.solveToInt(e,r,n))}}Ze.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];Ze.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];Ze.Y_FROM_LINRGB=[.2126,.7152,.0722];Ze.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];class Ur{static from(e,r,n){return new Ur(Ze.solveToInt(e,r,n))}static fromInt(e){return new Ur(e)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(e){this.setInternalState(Ze.solveToInt(e,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(e){this.setInternalState(Ze.solveToInt(this.internalHue,e,this.internalTone))}get tone(){return this.internalTone}set tone(e){this.setInternalState(Ze.solveToInt(this.internalHue,this.internalChroma,e))}constructor(e){this.argb=e;const r=kn.fromInt(e);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=A5(e),this.argb=e}setInternalState(e){const r=kn.fromInt(e);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=A5(e),this.argb=e}inViewingConditions(e){const n=kn.fromInt(this.toInt()).xyzInViewingConditions(e),i=kn.fromXyzInViewingConditions(n[0],n[1],n[2],pi.make());return Ur.from(i.hue,i.chroma,Wg(n[1]))}}class Cr{static ratioOfTones(e,r){return e=yp(0,100,e),r=yp(0,100,r),Cr.ratioOfYs(ia(e),ia(r))}static ratioOfYs(e,r){const n=e>r?e:r,i=n===r?e:r;return(n+5)/(i+5)}static lighter(e,r){if(e<0||e>100)return-1;const n=ia(e),i=r*(n+5)-5,o=Cr.ratioOfYs(i,n),a=Math.abs(o-r);if(o.04)return-1;const c=Wg(i)+.4;return c<0||c>100?-1:c}static darker(e,r){if(e<0||e>100)return-1;const n=ia(e),i=(n+5)/r-5,o=Cr.ratioOfYs(n,i),a=Math.abs(o-r);if(o.04)return-1;const c=Wg(i)-.4;return c<0||c>100?-1:c}static lighterUnsafe(e,r){const n=Cr.lighter(e,r);return n<0?100:n}static darkerUnsafe(e,r){const n=Cr.darker(e,r);return n<0?0:n}}class ch{static isDisliked(e){const r=Math.round(e.hue)>=90&&Math.round(e.hue)<=111,n=Math.round(e.chroma)>16,i=Math.round(e.tone)<65;return r&&n&&i}static fixIfDisliked(e){return ch.isDisliked(e)?Ur.from(e.hue,e.chroma,70):e}}class Fe{static fromPalette(e){return new Fe(e.name??"",e.palette,e.tone,e.isBackground??!1,e.background,e.secondBackground,e.contrastCurve,e.toneDeltaPair)}constructor(e,r,n,i,o,a,c,d){if(this.name=e,this.palette=r,this.tone=n,this.isBackground=i,this.background=o,this.secondBackground=a,this.contrastCurve=c,this.toneDeltaPair=d,this.hctCache=new Map,!o&&a)throw new Error(`Color ${e} has secondBackgrounddefined, but background is not defined.`);if(!o&&c)throw new Error(`Color ${e} has contrastCurvedefined, but background is not defined.`);if(o&&!c)throw new Error(`Color ${e} has backgrounddefined, but contrastCurve is not defined.`)}getArgb(e){return this.getHct(e).toInt()}getHct(e){const r=this.hctCache.get(e);if(r!=null)return r;const n=this.getTone(e),i=this.palette(e).getHct(n);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(e,i),i}getTone(e){const r=e.contrastLevel<0;if(this.toneDeltaPair){const n=this.toneDeltaPair(e),i=n.roleA,o=n.roleB,a=n.delta,c=n.polarity,d=n.stayTogether,f=this.background(e).getTone(e),_=c==="nearer"||c==="lighter"&&!e.isDark||c==="darker"&&e.isDark,y=_?i:o,b=_?o:i,p=this.name===y.name,m=e.isDark?1:-1,g=y.contrastCurve.getContrast(e.contrastLevel),v=b.contrastCurve.getContrast(e.contrastLevel),x=y.tone(e);let E=Cr.ratioOfTones(f,x)>=g?x:Fe.foregroundTone(f,g);const T=b.tone(e);let C=Cr.ratioOfTones(f,T)>=v?T:Fe.foregroundTone(f,v);return r&&(E=Fe.foregroundTone(f,g),C=Fe.foregroundTone(f,v)),(C-E)*m>=a||(C=yp(0,100,E+a*m),(C-E)*m>=a||(E=yp(0,100,C-a*m))),50<=E&&E<60?m>0?(E=60,C=Math.max(C,E+a*m)):(E=49,C=Math.min(C,E+a*m)):50<=C&&C<60&&(d?m>0?(E=60,C=Math.max(C,E+a*m)):(E=49,C=Math.min(C,E+a*m)):m>0?C=60:C=49),p?E:C}else{let n=this.tone(e);if(this.background==null)return n;const i=this.background(e).getTone(e),o=this.contrastCurve.getContrast(e.contrastLevel);if(Cr.ratioOfTones(i,n)>=o||(n=Fe.foregroundTone(i,o)),r&&(n=Fe.foregroundTone(i,o)),this.isBackground&&50<=n&&n<60&&(Cr.ratioOfTones(49,i)>=o?n=49:n=60),this.secondBackground){const[a,c]=[this.background,this.secondBackground],[d,u]=[a(e).getTone(e),c(e).getTone(e)],[f,_]=[Math.max(d,u),Math.min(d,u)];if(Cr.ratioOfTones(f,n)>=o&&Cr.ratioOfTones(_,n)>=o)return n;const y=Cr.lighter(f,o),b=Cr.darker(_,o),p=[];return y!==-1&&p.push(y),b!==-1&&p.push(b),Fe.tonePrefersLightForeground(d)||Fe.tonePrefersLightForeground(u)?y<0?100:y:p.length===1?p[0]:b<0?0:b}return n}}static foregroundTone(e,r){const n=Cr.lighterUnsafe(e,r),i=Cr.darkerUnsafe(e,r),o=Cr.ratioOfTones(n,e),a=Cr.ratioOfTones(i,e);if(Fe.tonePrefersLightForeground(e)){const d=Math.abs(o-a)<.1&&o=r||o>=a||d?n:i}else return a>=r||a>=o?i:n}static tonePrefersLightForeground(e){return Math.round(e)<60}static toneAllowsLightForeground(e){return Math.round(e)<=49}static enableLightForeground(e){return Fe.tonePrefersLightForeground(e)&&!Fe.toneAllowsLightForeground(e)?49:e}}var ya;(function(t){t[t.MONOCHROME=0]="MONOCHROME",t[t.NEUTRAL=1]="NEUTRAL",t[t.TONAL_SPOT=2]="TONAL_SPOT",t[t.VIBRANT=3]="VIBRANT",t[t.EXPRESSIVE=4]="EXPRESSIVE",t[t.FIDELITY=5]="FIDELITY",t[t.CONTENT=6]="CONTENT",t[t.RAINBOW=7]="RAINBOW",t[t.FRUIT_SALAD=8]="FRUIT_SALAD"})(ya||(ya={}));class wt{constructor(e,r,n,i){this.low=e,this.normal=r,this.medium=n,this.high=i}getContrast(e){return e<=-1?this.low:e<0?Xc(this.low,this.normal,(e- -1)/1):e<.5?Xc(this.normal,this.medium,(e-0)/.5):e<1?Xc(this.medium,this.high,(e-.5)/.5):this.high}}class vn{constructor(e,r,n,i,o){this.roleA=e,this.roleB=r,this.delta=n,this.polarity=i,this.stayTogether=o}}function Xl(t){return t.variant===ya.FIDELITY||t.variant===ya.CONTENT}function fr(t){return t.variant===ya.MONOCHROME}function Bq(t,e,r,n){let i=r,o=Ur.from(t,e,r);if(o.chromac.chroma||Math.abs(c.chroma-e)<.4)break;const d=Math.abs(c.chroma-e),u=Math.abs(o.chroma-e);dt.primaryPalette,tone:t=>t.primaryPalette.keyColor.tone});Z.secondaryPaletteKeyColor=Fe.fromPalette({name:"secondary_palette_key_color",palette:t=>t.secondaryPalette,tone:t=>t.secondaryPalette.keyColor.tone});Z.tertiaryPaletteKeyColor=Fe.fromPalette({name:"tertiary_palette_key_color",palette:t=>t.tertiaryPalette,tone:t=>t.tertiaryPalette.keyColor.tone});Z.neutralPaletteKeyColor=Fe.fromPalette({name:"neutral_palette_key_color",palette:t=>t.neutralPalette,tone:t=>t.neutralPalette.keyColor.tone});Z.neutralVariantPaletteKeyColor=Fe.fromPalette({name:"neutral_variant_palette_key_color",palette:t=>t.neutralVariantPalette,tone:t=>t.neutralVariantPalette.keyColor.tone});Z.background=Fe.fromPalette({name:"background",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:!0});Z.onBackground=Fe.fromPalette({name:"on_background",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>Z.background,contrastCurve:new wt(3,3,4.5,7)});Z.surface=Fe.fromPalette({name:"surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:!0});Z.surfaceDim=Fe.fromPalette({name:"surface_dim",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:87,isBackground:!0});Z.surfaceBright=Fe.fromPalette({name:"surface_bright",palette:t=>t.neutralPalette,tone:t=>t.isDark?24:98,isBackground:!0});Z.surfaceContainerLowest=Fe.fromPalette({name:"surface_container_lowest",palette:t=>t.neutralPalette,tone:t=>t.isDark?4:100,isBackground:!0});Z.surfaceContainerLow=Fe.fromPalette({name:"surface_container_low",palette:t=>t.neutralPalette,tone:t=>t.isDark?10:96,isBackground:!0});Z.surfaceContainer=Fe.fromPalette({name:"surface_container",palette:t=>t.neutralPalette,tone:t=>t.isDark?12:94,isBackground:!0});Z.surfaceContainerHigh=Fe.fromPalette({name:"surface_container_high",palette:t=>t.neutralPalette,tone:t=>t.isDark?17:92,isBackground:!0});Z.surfaceContainerHighest=Fe.fromPalette({name:"surface_container_highest",palette:t=>t.neutralPalette,tone:t=>t.isDark?22:90,isBackground:!0});Z.onSurface=Fe.fromPalette({name:"on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>Z.highestSurface(t),contrastCurve:new wt(4.5,7,11,21)});Z.surfaceVariant=Fe.fromPalette({name:"surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:90,isBackground:!0});Z.onSurfaceVariant=Fe.fromPalette({name:"on_surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?80:30,background:t=>Z.highestSurface(t),contrastCurve:new wt(3,4.5,7,11)});Z.inverseSurface=Fe.fromPalette({name:"inverse_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:20});Z.inverseOnSurface=Fe.fromPalette({name:"inverse_on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?20:95,background:t=>Z.inverseSurface,contrastCurve:new wt(4.5,7,11,21)});Z.outline=Fe.fromPalette({name:"outline",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?60:50,background:t=>Z.highestSurface(t),contrastCurve:new wt(1.5,3,4.5,7)});Z.outlineVariant=Fe.fromPalette({name:"outline_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:80,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7)});Z.shadow=Fe.fromPalette({name:"shadow",palette:t=>t.neutralPalette,tone:t=>0});Z.scrim=Fe.fromPalette({name:"scrim",palette:t=>t.neutralPalette,tone:t=>0});Z.surfaceTint=Fe.fromPalette({name:"surface_tint",palette:t=>t.primaryPalette,tone:t=>t.isDark?80:40,isBackground:!0});Z.primary=Fe.fromPalette({name:"primary",palette:t=>t.primaryPalette,tone:t=>fr(t)?t.isDark?100:0:t.isDark?80:40,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(3,4.5,7,11),toneDeltaPair:t=>new vn(Z.primaryContainer,Z.primary,15,"nearer",!1)});Z.onPrimary=Fe.fromPalette({name:"on_primary",palette:t=>t.primaryPalette,tone:t=>fr(t)?t.isDark?10:90:t.isDark?20:100,background:t=>Z.primary,contrastCurve:new wt(4.5,7,11,21)});Z.primaryContainer=Fe.fromPalette({name:"primary_container",palette:t=>t.primaryPalette,tone:t=>Xl(t)?$b(t.sourceColorHct,t):fr(t)?t.isDark?85:25:t.isDark?30:90,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7),toneDeltaPair:t=>new vn(Z.primaryContainer,Z.primary,15,"nearer",!1)});Z.onPrimaryContainer=Fe.fromPalette({name:"on_primary_container",palette:t=>t.primaryPalette,tone:t=>Xl(t)?Fe.foregroundTone(Z.primaryContainer.tone(t),4.5):fr(t)?t.isDark?0:100:t.isDark?90:10,background:t=>Z.primaryContainer,contrastCurve:new wt(4.5,7,11,21)});Z.inversePrimary=Fe.fromPalette({name:"inverse_primary",palette:t=>t.primaryPalette,tone:t=>t.isDark?40:80,background:t=>Z.inverseSurface,contrastCurve:new wt(3,4.5,7,11)});Z.secondary=Fe.fromPalette({name:"secondary",palette:t=>t.secondaryPalette,tone:t=>t.isDark?80:40,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(3,4.5,7,11),toneDeltaPair:t=>new vn(Z.secondaryContainer,Z.secondary,15,"nearer",!1)});Z.onSecondary=Fe.fromPalette({name:"on_secondary",palette:t=>t.secondaryPalette,tone:t=>fr(t)?t.isDark?10:100:t.isDark?20:100,background:t=>Z.secondary,contrastCurve:new wt(4.5,7,11,21)});Z.secondaryContainer=Fe.fromPalette({name:"secondary_container",palette:t=>t.secondaryPalette,tone:t=>{const e=t.isDark?30:90;if(fr(t))return t.isDark?30:85;if(!Xl(t))return e;let r=Bq(t.secondaryPalette.hue,t.secondaryPalette.chroma,e,!t.isDark);return r=$b(t.secondaryPalette.getHct(r),t),r},isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7),toneDeltaPair:t=>new vn(Z.secondaryContainer,Z.secondary,15,"nearer",!1)});Z.onSecondaryContainer=Fe.fromPalette({name:"on_secondary_container",palette:t=>t.secondaryPalette,tone:t=>Xl(t)?Fe.foregroundTone(Z.secondaryContainer.tone(t),4.5):t.isDark?90:10,background:t=>Z.secondaryContainer,contrastCurve:new wt(4.5,7,11,21)});Z.tertiary=Fe.fromPalette({name:"tertiary",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?t.isDark?90:25:t.isDark?80:40,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(3,4.5,7,11),toneDeltaPair:t=>new vn(Z.tertiaryContainer,Z.tertiary,15,"nearer",!1)});Z.onTertiary=Fe.fromPalette({name:"on_tertiary",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?t.isDark?10:90:t.isDark?20:100,background:t=>Z.tertiary,contrastCurve:new wt(4.5,7,11,21)});Z.tertiaryContainer=Fe.fromPalette({name:"tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>{if(fr(t))return t.isDark?60:49;if(!Xl(t))return t.isDark?30:90;const e=$b(t.tertiaryPalette.getHct(t.sourceColorHct.tone),t),r=t.tertiaryPalette.getHct(e);return ch.fixIfDisliked(r).tone},isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7),toneDeltaPair:t=>new vn(Z.tertiaryContainer,Z.tertiary,15,"nearer",!1)});Z.onTertiaryContainer=Fe.fromPalette({name:"on_tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?t.isDark?0:100:Xl(t)?Fe.foregroundTone(Z.tertiaryContainer.tone(t),4.5):t.isDark?90:10,background:t=>Z.tertiaryContainer,contrastCurve:new wt(4.5,7,11,21)});Z.error=Fe.fromPalette({name:"error",palette:t=>t.errorPalette,tone:t=>t.isDark?80:40,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(3,4.5,7,11),toneDeltaPair:t=>new vn(Z.errorContainer,Z.error,15,"nearer",!1)});Z.onError=Fe.fromPalette({name:"on_error",palette:t=>t.errorPalette,tone:t=>t.isDark?20:100,background:t=>Z.error,contrastCurve:new wt(4.5,7,11,21)});Z.errorContainer=Fe.fromPalette({name:"error_container",palette:t=>t.errorPalette,tone:t=>t.isDark?30:90,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7),toneDeltaPair:t=>new vn(Z.errorContainer,Z.error,15,"nearer",!1)});Z.onErrorContainer=Fe.fromPalette({name:"on_error_container",palette:t=>t.errorPalette,tone:t=>t.isDark?90:10,background:t=>Z.errorContainer,contrastCurve:new wt(4.5,7,11,21)});Z.primaryFixed=Fe.fromPalette({name:"primary_fixed",palette:t=>t.primaryPalette,tone:t=>fr(t)?40:90,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7),toneDeltaPair:t=>new vn(Z.primaryFixed,Z.primaryFixedDim,10,"lighter",!0)});Z.primaryFixedDim=Fe.fromPalette({name:"primary_fixed_dim",palette:t=>t.primaryPalette,tone:t=>fr(t)?30:80,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7),toneDeltaPair:t=>new vn(Z.primaryFixed,Z.primaryFixedDim,10,"lighter",!0)});Z.onPrimaryFixed=Fe.fromPalette({name:"on_primary_fixed",palette:t=>t.primaryPalette,tone:t=>fr(t)?100:10,background:t=>Z.primaryFixedDim,secondBackground:t=>Z.primaryFixed,contrastCurve:new wt(4.5,7,11,21)});Z.onPrimaryFixedVariant=Fe.fromPalette({name:"on_primary_fixed_variant",palette:t=>t.primaryPalette,tone:t=>fr(t)?90:30,background:t=>Z.primaryFixedDim,secondBackground:t=>Z.primaryFixed,contrastCurve:new wt(3,4.5,7,11)});Z.secondaryFixed=Fe.fromPalette({name:"secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>fr(t)?80:90,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7),toneDeltaPair:t=>new vn(Z.secondaryFixed,Z.secondaryFixedDim,10,"lighter",!0)});Z.secondaryFixedDim=Fe.fromPalette({name:"secondary_fixed_dim",palette:t=>t.secondaryPalette,tone:t=>fr(t)?70:80,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7),toneDeltaPair:t=>new vn(Z.secondaryFixed,Z.secondaryFixedDim,10,"lighter",!0)});Z.onSecondaryFixed=Fe.fromPalette({name:"on_secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>10,background:t=>Z.secondaryFixedDim,secondBackground:t=>Z.secondaryFixed,contrastCurve:new wt(4.5,7,11,21)});Z.onSecondaryFixedVariant=Fe.fromPalette({name:"on_secondary_fixed_variant",palette:t=>t.secondaryPalette,tone:t=>fr(t)?25:30,background:t=>Z.secondaryFixedDim,secondBackground:t=>Z.secondaryFixed,contrastCurve:new wt(3,4.5,7,11)});Z.tertiaryFixed=Fe.fromPalette({name:"tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?40:90,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7),toneDeltaPair:t=>new vn(Z.tertiaryFixed,Z.tertiaryFixedDim,10,"lighter",!0)});Z.tertiaryFixedDim=Fe.fromPalette({name:"tertiary_fixed_dim",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?30:80,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7),toneDeltaPair:t=>new vn(Z.tertiaryFixed,Z.tertiaryFixedDim,10,"lighter",!0)});Z.onTertiaryFixed=Fe.fromPalette({name:"on_tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?100:10,background:t=>Z.tertiaryFixedDim,secondBackground:t=>Z.tertiaryFixed,contrastCurve:new wt(4.5,7,11,21)});Z.onTertiaryFixedVariant=Fe.fromPalette({name:"on_tertiary_fixed_variant",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?90:30,background:t=>Z.tertiaryFixedDim,secondBackground:t=>Z.tertiaryFixed,contrastCurve:new wt(3,4.5,7,11)});class dr{static fromInt(e){const r=Ur.fromInt(e);return dr.fromHct(r)}static fromHct(e){return new dr(e.hue,e.chroma,e)}static fromHueAndChroma(e,r){return new dr(e,r,dr.createKeyColor(e,r))}constructor(e,r,n){this.hue=e,this.chroma=r,this.keyColor=n,this.cache=new Map}static createKeyColor(e,r){let i=Ur.from(e,r,50),o=Math.abs(i.chroma-r);for(let a=1;a<50;a+=1){if(Math.round(r)===Math.round(i.chroma))return i;const c=Ur.from(e,r,50+a),d=Math.abs(c.chroma-r);d0)return this.hctsByTempCache;const e=this.hctsByHue.concat([this.input]),r=this.tempsByHct;return e.sort((n,i)=>r.get(n)-r.get(i)),this.hctsByTempCache=e,e}get warmest(){return this.hctsByTemp[this.hctsByTemp.length-1]}get coldest(){return this.hctsByTemp[0]}analogous(e=5,r=12){const n=Math.round(this.input.hue),i=this.hctsByHue[n];let o=this.relativeTemperature(i);const a=[i];let c=0;for(let p=0;p<360;p++){const m=k5(n+p),g=this.hctsByHue[m],v=this.relativeTemperature(g),x=Math.abs(v-o);o=v,c+=x}let d=1;const u=c/r;let f=0;for(o=this.relativeTemperature(i);a.length=x,T=1;for(;E&&a.length=C,T++}if(o=g,d++,d>360){for(;a.length=a.length&&(m=m%a.length),_.splice(0,0,a[m])}const b=e-y-1;for(let p=1;p=a.length&&(m=m%a.length),_.push(a[m])}return _}get complement(){if(this.complementCache!=null)return this.complementCache;const e=this.coldest.hue,r=this.tempsByHct.get(this.coldest),n=this.warmest.hue,o=this.tempsByHct.get(this.warmest)-r,a=ed.isBetween(this.input.hue,e,n),c=a?n:e,d=a?e:n,u=1;let f=1e3,_=this.hctsByHue[Math.round(this.input.hue)];const y=1-this.inputRelativeTemperature;for(let b=0;b<=360;b+=1){const p=ls(c+u*b);if(!ed.isBetween(p,c,d))continue;const m=this.hctsByHue[Math.round(p)],g=(this.tempsByHct.get(m)-r)/o,v=Math.abs(y-g);v=0?this.inputRelativeTemperatureCache:(this.inputRelativeTemperatureCache=this.relativeTemperature(this.input),this.inputRelativeTemperatureCache)}get tempsByHct(){if(this.tempsByHctCache.size>0)return this.tempsByHctCache;const e=this.hctsByHue.concat([this.input]),r=new Map;for(const n of e)r.set(n,ed.rawTemperature(n));return this.tempsByHctCache=r,r}get hctsByHue(){if(this.hctsByHueCache.length>0)return this.hctsByHueCache;const e=[];for(let r=0;r<=360;r+=1){const n=Ur.from(r,this.input.chroma,this.input.tone);e.push(n)}return this.hctsByHueCache=e,this.hctsByHueCache}static isBetween(e,r,n){return r>>0}function oo(t){return parseInt(t,16)}function Wk(t,e,r="material-theme"){let n=globalThis[r];n||(n=new CSSStyleSheet,globalThis[r]=n,t.adoptedStyleSheets.push(n)),n.replaceSync(e),localStorage.setItem(r,e)}const Gq={background:Z.background,"on-background":Z.onBackground,surface:Z.surface,"surface-dim":Z.surfaceDim,"surface-bright":Z.surfaceBright,"surface-container-lowest":Z.surfaceContainerLowest,"surface-container-low":Z.surfaceContainerLow,"surface-container":Z.surfaceContainer,"surface-container-high":Z.surfaceContainerHigh,"surface-container-highest":Z.surfaceContainerHighest,"on-surface":Z.onSurface,"surface-variant":Z.surfaceVariant,"on-surface-variant":Z.onSurfaceVariant,"inverse-surface":Z.inverseSurface,"inverse-on-surface":Z.inverseOnSurface,outline:Z.outline,"outline-variant":Z.outlineVariant,shadow:Z.shadow,scrim:Z.scrim,"surface-tint":Z.surfaceTint,primary:Z.primary,"on-primary":Z.onPrimary,"primary-container":Z.primaryContainer,"on-primary-container":Z.onPrimaryContainer,"inverse-primary":Z.inversePrimary,secondary:Z.secondary,"on-secondary":Z.onSecondary,"secondary-container":Z.secondaryContainer,"on-secondary-container":Z.onSecondaryContainer,tertiary:Z.tertiary,"on-tertiary":Z.onTertiary,"tertiary-container":Z.tertiaryContainer,"on-tertiary-container":Z.onTertiaryContainer,error:Z.error,"on-error":Z.onError,"error-container":Z.errorContainer,"on-error-container":Z.onErrorContainer};function Wq(t,e){const r=new Vq(Ur.fromInt(Hq(t)),e,0),n={};for(const[i,o]of Object.entries(Gq))n[i]=jq(o.getArgb(r));return n["on-surface-selected"]=n["on-surface"]+"14",n}function Qq(t,e,r="material-theme"){let n=":root,:host{";for(const[i,o]of Object.entries(e))n+=`--md-sys-color-${i}:${o};`;n+="}",Wk(t,n,r)}function Ob(t,e){const r=Wq(t,e);Qq(document,r),window.dispatchEvent(new Event("theme-changed"))}function dh(t,e=!0){let r=t==="dark";return t==="auto"&&(r=window.matchMedia("(prefers-color-scheme: dark)").matches,e&&Zq(r?"dark":"light")),r}function Kq(){return localStorage.getItem("material-theme")}function bp(){return localStorage.getItem("color-mode")}function Qk(t){localStorage.setItem("color-mode",t)}function Pb(){return localStorage.getItem("seed-color")}function Kk(t){localStorage.setItem("seed-color",t)}function Yq(){return localStorage.getItem("last-auto-color-mode")}function Zq(t){localStorage.setItem("last-auto-color-mode",t)}function Yk(t){const e=bp(),r=dh(e);Ob(t,r),Kk(t)}function Zk(t){const e=Pb(),r=dh(t);Ob(e,r),Qk(t),Rb()}function Xq(t,e){const r=dh(e);Ob(t,r),Rb(),Kk(t),Qk(e)}function Rb(){localStorage.getItem("color-mode")==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),pt.emit("color_mode_changed")}const Jq={xmlns:"http://www.w3.org/2000/svg",class:"icon",style:{color:"#000!important"},viewBox:"176.76 130.44 848.7 811.89"},eB=iM('',6),tB=[eB];function rB(t,e){return te(),oe("svg",Jq,tB)}const nB={render:rB};function Lb(t){const e=t.toLowerCase();return e.startsWith("https://")||e.startsWith("http://")||e.startsWith("blob:")}function Mb(t){return Lb(t)?t:`${$l()}/fs?id=${encodeURIComponent(t)}`}function vl(t,e){return!e||!t?"":Mb(Ol(t,e))}function iB(){return`${$l()}/upload`}function Xa(t,e){const r=document.createElement("a");typeof r.download=="string"?(r.href=t,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)):window.open(t)}function Nve(t,e,r){const n=new Blob([t],{type:e}),i=URL.createObjectURL(n);Xa(i,r)}function Bi(t){return t.substring(t.lastIndexOf("/")+1)}function Db(t){return zt.codec.base64.toBits(t)}function Xk(t,e){if(!t)return"";const r=Vd(t,e);return jk(r)}function oB(t,e){return e.startsWith("app://")?t+"/"+e.replace("app://",""):e}function Ol(t,e){if(!e||!t)return"";const r=e.toLowerCase();if(r.startsWith("https://")||r.startsWith("http://"))return e;const n=window.fileIdMap||new Map;if(n.has(e))return n.get(e)??"";const i=Vd(t,e),o=jk(i);return n.set(e,o),o}async function Jk(t,e){const r=localStorage.getItem("auth_token")??"",n=zt.codec.base64.toBits(r),i=1e3*1e3*512;async function o(a,c,d){const u=Math.min(a+i,t.file.size),f=u-a,_=new FormData,y=kb(Vd(n,JSON.stringify({dir:t.dir,replace:e,index:c,size:f,total:d})));_.append("info",new Blob([y]));const b=t.file.slice(a,u);return _.append("file",new File([b],a>0?t.fileName:t.file.name)),new Promise(p=>{const m=new XMLHttpRequest;let g=0;m.upload.addEventListener("progress",function(v){v.lengthComputable&&(g===0&&(g=v.total-f),v.loaded>g&&(t.uploadedSize=a+v.loaded-g))},!1),m.upload.addEventListener("load",function(){c===d-1&&(t.uploadedSize=t.file.size,t.status="saving")},!1),m.onreadystatechange=function(){console.log(m),m.readyState===4&&(m.status===201?p({fileName:m.responseText}):p({error:m.responseText}))};try{m.open("POST",iB(),!0),m.setRequestHeader("c-id",localStorage.getItem("client_id")??""),m.send(_),t.xhr=m}catch(v){p({error:v.message})}})}try{let a=0;const c=[];for(;a=0);t.status="done"}catch(a){t.status="error",t.error=a}}const aB={key:0,class:"top-error"},sB=Bt({__name:"App",setup(t){let e=0;const{t:r}=On();document.title=r("app_name");const n=Se(""),i=Se("");let o,a=1e3;const c=()=>{i.value=""};async function d(){const y=localStorage.getItem("client_id"),b=localStorage.getItem("auth_token")??"";if(b)try{const p=Db(b);o=new WebSocket(`${gq()}?cid=${y}`),o.onopen=async()=>{pt.emit("app_socket_connection_changed",!0),console.log("WebSocket is connecting to app"),a=1e3;const m=Vd(p,new Date().getTime().toString());o.send(kb(m)),n.value=""},o.onmessage=async m=>{let g;try{g=JSON.parse(await m.data.text())}catch{g=JSON.parse(Vk(p,Tb(await m.data.arrayBuffer())))}console.log(g),n.value="",g.encrypted?pt.emit(g.type.toLowerCase(),JSON.parse(g.data)):pt.emit(g.type.toLowerCase(),g.data)},o.onclose=m=>{console.error(m),n.value="closed",u()},o.onerror=m=>{console.error(m),n.value="error",o.close(),pt.emit("app_socket_connection_changed",!1)}}catch(p){console.error(p),u()}}function u(){e&&clearTimeout(e),e=setTimeout(()=>{d()},Math.min(5e3,a)),a+=1e3}function f(){if(bp()!=="auto")return;const y=dh("auto",!1)?"dark":"light",b=Yq();y!==b&&Zk("auto")}function _(){const y=Kq();y?(Wk(document,y),Rb()):Xq("#0000FF","auto")}return mn(()=>{pt.on("toast",y=>{go(r(y))}),pt.on("tap_phone",y=>{i.value=y}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{bp()==="auto"&&Yk(Pb())});try{_(),f()}catch(y){console.error(y)}d()}),(y,b)=>{const p=By("router-view"),m=T9,g=Ea("click-away");return te(),oe(St,null,[n.value?(te(),oe("div",aB,De(y.$t("fix_disconnect_tips")),1)):yt("",!0),qe(p),(te(),Hr(Wy,{to:"body"},[qe(m),i.value?vt((te(),oe("div",{key:0,class:"tap-phone-container",onClick:c},[V("div",null,De(i.value),1),qe(fe(nB))])),[[g,c]]):yt("",!0)]))],64)}}});const gn=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},lB=gn(sB,[["__scopeId","data-v-aa789496"]]);"serviceWorker"in navigator?navigator.serviceWorker.register("/sw.js").then(t=>{console.log("Service worker registration succeeded:",t)},t=>{console.error(`Service worker registration failed: ${t}`)}):console.error("Service workers are not supported.");const cB="modulepreload",dB=function(t){return"/"+t},S5={},ot=function(e,r,n){if(!r||r.length===0)return e();const i=document.getElementsByTagName("link");return Promise.all(r.map(o=>{if(o=dB(o),o in S5)return;S5[o]=!0;const a=o.endsWith(".css"),c=a?'[rel="stylesheet"]':"";if(!!n)for(let f=i.length-1;f>=0;f--){const _=i[f];if(_.href===o&&(!a||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${c}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":cB,a||(u.as="script",u.crossOrigin=""),u.href=o,document.head.appendChild(u),a)return new Promise((f,_)=>{u.addEventListener("load",f),u.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})};const tl=typeof window<"u";function uB(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Mt=Object.assign;function Ev(t,e){const r={};for(const n in e){const i=e[n];r[n]=yi(i)?i.map(t):t(i)}return r}const td=()=>{},yi=Array.isArray,fB=/\/$/,pB=t=>t.replace(fB,"");function Tv(t,e,r="/"){let n,i={},o="",a="";const c=e.indexOf("#");let d=e.indexOf("?");return c=0&&(d=-1),d>-1&&(n=e.slice(0,d),o=e.slice(d+1,c>-1?c:e.length),i=t(o)),c>-1&&(n=n||e.slice(0,c),a=e.slice(c,e.length)),n=gB(n??e,r),{fullPath:n+(o&&"?")+o+a,path:n,query:i,hash:a}}function hB(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function I5(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function mB(t,e,r){const n=e.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Pl(e.matched[n],r.matched[i])&&eC(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function Pl(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function eC(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!vB(t[r],e[r]))return!1;return!0}function vB(t,e){return yi(t)?$5(t,e):yi(e)?$5(e,t):t===e}function $5(t,e){return yi(e)?t.length===e.length&&t.every((r,n)=>r===e[n]):t.length===1&&t[0]===e}function gB(t,e){if(t.startsWith("/"))return t;if(!t)return e;const r=e.split("/"),n=t.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let o=r.length-1,a,c;for(a=0;a1&&o--;else break;return r.slice(0,o).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var kd;(function(t){t.pop="pop",t.push="push"})(kd||(kd={}));var rd;(function(t){t.back="back",t.forward="forward",t.unknown=""})(rd||(rd={}));function _B(t){if(!t)if(tl){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),pB(t)}const yB=/^[^#]+#/;function bB(t,e){return t.replace(yB,"#")+e}function xB(t,e){const r=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{behavior:e.behavior,left:n.left-r.left-(e.left||0),top:n.top-r.top-(e.top||0)}}const uh=()=>({left:window.pageXOffset,top:window.pageYOffset});function wB(t){let e;if("el"in t){const r=t.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;e=xB(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function O5(t,e){return(history.state?history.state.position-e:-1)+t}const Qg=new Map;function EB(t,e){Qg.set(t,e)}function TB(t){const e=Qg.get(t);return Qg.delete(t),e}let kB=()=>location.protocol+"//"+location.host;function tC(t,e){const{pathname:r,search:n,hash:i}=e,o=t.indexOf("#");if(o>-1){let c=i.includes(t.slice(o))?t.slice(o).length:1,d=i.slice(c);return d[0]!=="/"&&(d="/"+d),I5(d,"")}return I5(r,t)+n+i}function CB(t,e,r,n){let i=[],o=[],a=null;const c=({state:y})=>{const b=tC(t,location),p=r.value,m=e.value;let g=0;if(y){if(r.value=b,e.value=y,a&&a===p){a=null;return}g=m?y.position-m.position:0}else n(b);i.forEach(v=>{v(r.value,p,{delta:g,type:kd.pop,direction:g?g>0?rd.forward:rd.back:rd.unknown})})};function d(){a=r.value}function u(y){i.push(y);const b=()=>{const p=i.indexOf(y);p>-1&&i.splice(p,1)};return o.push(b),b}function f(){const{history:y}=window;y.state&&y.replaceState(Mt({},y.state,{scroll:uh()}),"")}function _(){for(const y of o)y();o=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:d,listen:u,destroy:_}}function P5(t,e,r,n=!1,i=!1){return{back:t,current:e,forward:r,replaced:n,position:window.history.length,scroll:i?uh():null}}function AB(t){const{history:e,location:r}=window,n={value:tC(t,r)},i={value:e.state};i.value||o(n.value,{back:null,current:n.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function o(d,u,f){const _=t.indexOf("#"),y=_>-1?(r.host&&document.querySelector("base")?t:t.slice(_))+d:kB()+t+d;try{e[f?"replaceState":"pushState"](u,"",y),i.value=u}catch(b){console.error(b),r[f?"replace":"assign"](y)}}function a(d,u){const f=Mt({},e.state,P5(i.value.back,d,i.value.forward,!0),u,{position:i.value.position});o(d,f,!0),n.value=d}function c(d,u){const f=Mt({},i.value,e.state,{forward:d,scroll:uh()});o(f.current,f,!0);const _=Mt({},P5(n.value,d,null),{position:f.position+1},u);o(d,_,!1),n.value=d}return{location:n,state:i,push:c,replace:a}}function SB(t){t=_B(t);const e=AB(t),r=CB(t,e.state,e.location,e.replace);function n(o,a=!0){a||r.pauseListeners(),history.go(o)}const i=Mt({location:"",base:t,go:n,createHref:bB.bind(null,t)},e,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function IB(t){return typeof t=="string"||t&&typeof t=="object"}function rC(t){return typeof t=="string"||typeof t=="symbol"}const Ho={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},nC=Symbol("");var R5;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(R5||(R5={}));function Rl(t,e){return Mt(new Error,{type:t,[nC]:!0},e)}function ao(t,e){return t instanceof Error&&nC in t&&(e==null||!!(t.type&e))}const L5="[^/]+?",$B={sensitive:!1,strict:!1,start:!0,end:!0},OB=/[.+*?^${}()[\]/\\]/g;function PB(t,e){const r=Mt({},$B,e),n=[];let i=r.start?"^":"";const o=[];for(const u of t){const f=u.length?[]:[90];r.strict&&!u.length&&(i+="/");for(let _=0;_e.length?e.length===1&&e[0]===40+40?1:-1:0}function LB(t,e){let r=0;const n=t.score,i=e.score;for(;r0&&e[e.length-1]<0}const MB={type:0,value:""},DB=/[a-zA-Z0-9_]/;function FB(t){if(!t)return[[]];if(t==="/")return[[MB]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(b){throw new Error(`ERR (${r})/"${u}": ${b}`)}let r=0,n=r;const i=[];let o;function a(){o&&i.push(o),o=[]}let c=0,d,u="",f="";function _(){u&&(r===0?o.push({type:0,value:u}):r===1||r===2||r===3?(o.length>1&&(d==="*"||d==="+")&&e(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:f,repeatable:d==="*"||d==="+",optional:d==="*"||d==="?"})):e("Invalid state to consume buffer"),u="")}function y(){u+=d}for(;c{a(x)}:td}function a(f){if(rC(f)){const _=n.get(f);_&&(n.delete(f),r.splice(r.indexOf(_),1),_.children.forEach(a),_.alias.forEach(a))}else{const _=r.indexOf(f);_>-1&&(r.splice(_,1),f.record.name&&n.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function c(){return r}function d(f){let _=0;for(;_=0&&(f.record.path!==r[_].record.path||!iC(f,r[_]));)_++;r.splice(_,0,f),f.record.name&&!F5(f)&&n.set(f.record.name,f)}function u(f,_){let y,b={},p,m;if("name"in f&&f.name){if(y=n.get(f.name),!y)throw Rl(1,{location:f});m=y.record.name,b=Mt(D5(_.params,y.keys.filter(x=>!x.optional).map(x=>x.name)),f.params&&D5(f.params,y.keys.map(x=>x.name))),p=y.stringify(b)}else if("path"in f)p=f.path,y=r.find(x=>x.re.test(p)),y&&(b=y.parse(p),m=y.record.name);else{if(y=_.name?n.get(_.name):r.find(x=>x.re.test(_.path)),!y)throw Rl(1,{location:f,currentLocation:_});m=y.record.name,b=Mt({},_.params,f.params),p=y.stringify(b)}const g=[];let v=y;for(;v;)g.unshift(v.record),v=v.parent;return{name:m,path:p,params:b,matched:g,meta:UB(g)}}return t.forEach(f=>o(f)),{addRoute:o,resolve:u,removeRoute:a,getRoutes:c,getRecordMatcher:i}}function D5(t,e){const r={};for(const n of e)n in t&&(r[n]=t[n]);return r}function qB(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:BB(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function BB(t){const e={},r=t.props||!1;if("component"in t)e.default=r;else for(const n in t.components)e[n]=typeof r=="object"?r[n]:r;return e}function F5(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function UB(t){return t.reduce((e,r)=>Mt(e,r.meta),{})}function N5(t,e){const r={};for(const n in t)r[n]=n in e?e[n]:t[n];return r}function iC(t,e){return e.children.some(r=>r===t||iC(t,r))}const oC=/#/g,VB=/&/g,jB=/\//g,HB=/=/g,GB=/\?/g,aC=/\+/g,WB=/%5B/g,QB=/%5D/g,sC=/%5E/g,KB=/%60/g,lC=/%7B/g,YB=/%7C/g,cC=/%7D/g,ZB=/%20/g;function Fb(t){return encodeURI(""+t).replace(YB,"|").replace(WB,"[").replace(QB,"]")}function XB(t){return Fb(t).replace(lC,"{").replace(cC,"}").replace(sC,"^")}function Kg(t){return Fb(t).replace(aC,"%2B").replace(ZB,"+").replace(oC,"%23").replace(VB,"%26").replace(KB,"`").replace(lC,"{").replace(cC,"}").replace(sC,"^")}function JB(t){return Kg(t).replace(HB,"%3D")}function eU(t){return Fb(t).replace(oC,"%23").replace(GB,"%3F")}function tU(t){return t==null?"":eU(t).replace(jB,"%2F")}function xp(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function rU(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;io&&Kg(o)):[n&&Kg(n)]).forEach(o=>{o!==void 0&&(e+=(e.length?"&":"")+r,o!=null&&(e+="="+o))})}return e}function nU(t){const e={};for(const r in t){const n=t[r];n!==void 0&&(e[r]=yi(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return e}const iU=Symbol(""),q5=Symbol(""),fh=Symbol(""),Nb=Symbol(""),Yg=Symbol("");function Lc(){let t=[];function e(n){return t.push(n),()=>{const i=t.indexOf(n);i>-1&&t.splice(i,1)}}function r(){t=[]}return{add:e,list:()=>t.slice(),reset:r}}function Jo(t,e,r,n,i){const o=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((a,c)=>{const d=_=>{_===!1?c(Rl(4,{from:r,to:e})):_ instanceof Error?c(_):IB(_)?c(Rl(2,{from:e,to:_})):(o&&n.enterCallbacks[i]===o&&typeof _=="function"&&o.push(_),a())},u=t.call(n&&n.instances[i],e,r,d);let f=Promise.resolve(u);t.length<3&&(f=f.then(d)),f.catch(_=>c(_))})}function kv(t,e,r,n){const i=[];for(const o of t)for(const a in o.components){let c=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(oU(c)){const u=(c.__vccOpts||c)[e];u&&i.push(Jo(u,r,n,o,a))}else{let d=c();i.push(()=>d.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${o.path}"`));const f=uB(u)?u.default:u;o.components[a]=f;const y=(f.__vccOpts||f)[e];return y&&Jo(y,r,n,o,a)()}))}}return i}function oU(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function B5(t){const e=rn(fh),r=rn(Nb),n=It(()=>e.resolve(fe(t.to))),i=It(()=>{const{matched:d}=n.value,{length:u}=d,f=d[u-1],_=r.matched;if(!f||!_.length)return-1;const y=_.findIndex(Pl.bind(null,f));if(y>-1)return y;const b=U5(d[u-2]);return u>1&&U5(f)===b&&_[_.length-1].path!==b?_.findIndex(Pl.bind(null,d[u-2])):y}),o=It(()=>i.value>-1&&cU(r.params,n.value.params)),a=It(()=>i.value>-1&&i.value===r.matched.length-1&&eC(r.params,n.value.params));function c(d={}){return lU(d)?e[fe(t.replace)?"replace":"push"](fe(t.to)).catch(td):Promise.resolve()}return{route:n,href:It(()=>n.value.href),isActive:o,isExactActive:a,navigate:c}}const aU=Bt({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"}},useLink:B5,setup(t,{slots:e}){const r=gi(B5(t)),{options:n}=rn(fh),i=It(()=>({[V5(t.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[V5(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const o=e.default&&e.default(r);return t.custom?o:Ni("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},o)}}}),sU=aU;function lU(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function cU(t,e){for(const r in e){const n=e[r],i=t[r];if(typeof n=="string"){if(n!==i)return!1}else if(!yi(i)||i.length!==n.length||n.some((o,a)=>o!==i[a]))return!1}return!0}function U5(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const V5=(t,e,r)=>t??e??r,dU=Bt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const n=rn(Yg),i=It(()=>t.route||n.value),o=rn(q5,0),a=It(()=>{let u=fe(o);const{matched:f}=i.value;let _;for(;(_=f[u])&&!_.components;)u++;return u}),c=It(()=>i.value.matched[a.value]);jc(q5,It(()=>a.value+1)),jc(iU,c),jc(Yg,i);const d=Se();return Vt(()=>[d.value,c.value,t.name],([u,f,_],[y,b,p])=>{f&&(f.instances[_]=u,b&&b!==f&&u&&u===y&&(f.leaveGuards.size||(f.leaveGuards=b.leaveGuards),f.updateGuards.size||(f.updateGuards=b.updateGuards))),u&&f&&(!b||!Pl(f,b)||!y)&&(f.enterCallbacks[_]||[]).forEach(m=>m(u))},{flush:"post"}),()=>{const u=i.value,f=t.name,_=c.value,y=_&&_.components[f];if(!y)return j5(r.default,{Component:y,route:u});const b=_.props[f],p=b?b===!0?u.params:typeof b=="function"?b(u):b:null,g=Ni(y,Mt({},p,e,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(_.instances[f]=null)},ref:d}));return j5(r.default,{Component:g,route:u})||g}}});function j5(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const uU=dU;function fU(t){const e=zB(t.routes,t),r=t.parseQuery||rU,n=t.stringifyQuery||z5,i=t.history,o=Lc(),a=Lc(),c=Lc(),d=XR(Ho);let u=Ho;tl&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Ev.bind(null,J=>""+J),_=Ev.bind(null,tU),y=Ev.bind(null,xp);function b(J,me){let ve,$e;return rC(J)?(ve=e.getRecordMatcher(J),$e=me):$e=J,e.addRoute($e,ve)}function p(J){const me=e.getRecordMatcher(J);me&&e.removeRoute(me)}function m(){return e.getRoutes().map(J=>J.record)}function g(J){return!!e.getRecordMatcher(J)}function v(J,me){if(me=Mt({},me||d.value),typeof J=="string"){const I=Tv(r,J,me.path),N=e.resolve({path:I.path},me),G=i.createHref(I.fullPath);return Mt(I,N,{params:y(N.params),hash:xp(I.hash),redirectedFrom:void 0,href:G})}let ve;if("path"in J)ve=Mt({},J,{path:Tv(r,J.path,me.path).path});else{const I=Mt({},J.params);for(const N in I)I[N]==null&&delete I[N];ve=Mt({},J,{params:_(I)}),me.params=_(me.params)}const $e=e.resolve(ve,me),Oe=J.hash||"";$e.params=f(y($e.params));const M=hB(n,Mt({},J,{hash:XB(Oe),path:$e.path})),k=i.createHref(M);return Mt({fullPath:M,hash:Oe,query:n===z5?nU(J.query):J.query||{}},$e,{redirectedFrom:void 0,href:k})}function x(J){return typeof J=="string"?Tv(r,J,d.value.path):Mt({},J)}function E(J,me){if(u!==J)return Rl(8,{from:me,to:J})}function T(J){return L(J)}function C(J){return T(Mt(x(J),{replace:!0}))}function A(J){const me=J.matched[J.matched.length-1];if(me&&me.redirect){const{redirect:ve}=me;let $e=typeof ve=="function"?ve(J):ve;return typeof $e=="string"&&($e=$e.includes("?")||$e.includes("#")?$e=x($e):{path:$e},$e.params={}),Mt({query:J.query,hash:J.hash,params:"path"in $e?{}:J.params},$e)}}function L(J,me){const ve=u=v(J),$e=d.value,Oe=J.state,M=J.force,k=J.replace===!0,I=A(ve);if(I)return L(Mt(x(I),{state:typeof I=="object"?Mt({},Oe,I.state):Oe,force:M,replace:k}),me||ve);const N=ve;N.redirectedFrom=me;let G;return!M&&mB(n,$e,ve)&&(G=Rl(16,{to:N,from:$e}),we($e,$e,!0,!1)),(G?Promise.resolve(G):q(N,$e)).catch(Y=>ao(Y)?ao(Y,2)?Y:de(Y):Pe(Y,N,$e)).then(Y=>{if(Y){if(ao(Y,2))return L(Mt({replace:k},x(Y.to),{state:typeof Y.to=="object"?Mt({},Oe,Y.to.state):Oe,force:M}),me||N)}else Y=U(N,$e,!0,k,Oe);return H(N,$e,Y),Y})}function R(J,me){const ve=E(J,me);return ve?Promise.reject(ve):Promise.resolve()}function D(J){const me=He.values().next().value;return me&&typeof me.runWithContext=="function"?me.runWithContext(J):J()}function q(J,me){let ve;const[$e,Oe,M]=pU(J,me);ve=kv($e.reverse(),"beforeRouteLeave",J,me);for(const I of $e)I.leaveGuards.forEach(N=>{ve.push(Jo(N,J,me))});const k=R.bind(null,J,me);return ve.push(k),Ge(ve).then(()=>{ve=[];for(const I of o.list())ve.push(Jo(I,J,me));return ve.push(k),Ge(ve)}).then(()=>{ve=kv(Oe,"beforeRouteUpdate",J,me);for(const I of Oe)I.updateGuards.forEach(N=>{ve.push(Jo(N,J,me))});return ve.push(k),Ge(ve)}).then(()=>{ve=[];for(const I of M)if(I.beforeEnter)if(yi(I.beforeEnter))for(const N of I.beforeEnter)ve.push(Jo(N,J,me));else ve.push(Jo(I.beforeEnter,J,me));return ve.push(k),Ge(ve)}).then(()=>(J.matched.forEach(I=>I.enterCallbacks={}),ve=kv(M,"beforeRouteEnter",J,me),ve.push(k),Ge(ve))).then(()=>{ve=[];for(const I of a.list())ve.push(Jo(I,J,me));return ve.push(k),Ge(ve)}).catch(I=>ao(I,8)?I:Promise.reject(I))}function H(J,me,ve){c.list().forEach($e=>D(()=>$e(J,me,ve)))}function U(J,me,ve,$e,Oe){const M=E(J,me);if(M)return M;const k=me===Ho,I=tl?history.state:{};ve&&($e||k?i.replace(J.fullPath,Mt({scroll:k&&I&&I.scroll},Oe)):i.push(J.fullPath,Oe)),d.value=J,we(J,me,ve,k),de()}let ce;function Ae(){ce||(ce=i.listen((J,me,ve)=>{if(!ze.listening)return;const $e=v(J),Oe=A($e);if(Oe){L(Mt(Oe,{replace:!0}),$e).catch(td);return}u=$e;const M=d.value;tl&&EB(O5(M.fullPath,ve.delta),uh()),q($e,M).catch(k=>ao(k,12)?k:ao(k,2)?(L(k.to,$e).then(I=>{ao(I,20)&&!ve.delta&&ve.type===kd.pop&&i.go(-1,!1)}).catch(td),Promise.reject()):(ve.delta&&i.go(-ve.delta,!1),Pe(k,$e,M))).then(k=>{k=k||U($e,M,!1),k&&(ve.delta&&!ao(k,8)?i.go(-ve.delta,!1):ve.type===kd.pop&&ao(k,20)&&i.go(-1,!1)),H($e,M,k)}).catch(td)}))}let Le=Lc(),Te=Lc(),Ie;function Pe(J,me,ve){de(J);const $e=Te.list();return $e.length?$e.forEach(Oe=>Oe(J,me,ve)):console.error(J),Promise.reject(J)}function Ce(){return Ie&&d.value!==Ho?Promise.resolve():new Promise((J,me)=>{Le.add([J,me])})}function de(J){return Ie||(Ie=!J,Ae(),Le.list().forEach(([me,ve])=>J?ve(J):me()),Le.reset()),J}function we(J,me,ve,$e){const{scrollBehavior:Oe}=t;if(!tl||!Oe)return Promise.resolve();const M=!ve&&TB(O5(J.fullPath,0))||($e||!ve)&&history.state&&history.state.scroll||null;return ra().then(()=>Oe(J,me,M)).then(k=>k&&wB(k)).catch(k=>Pe(k,J,me))}const ke=J=>i.go(J);let Re;const He=new Set,ze={currentRoute:d,listening:!0,addRoute:b,removeRoute:p,hasRoute:g,getRoutes:m,resolve:v,options:t,push:T,replace:C,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:o.add,beforeResolve:a.add,afterEach:c.add,onError:Te.add,isReady:Ce,install(J){const me=this;J.component("RouterLink",sU),J.component("RouterView",uU),J.config.globalProperties.$router=me,Object.defineProperty(J.config.globalProperties,"$route",{enumerable:!0,get:()=>fe(d)}),tl&&!Re&&d.value===Ho&&(Re=!0,T(i.location).catch(Oe=>{}));const ve={};for(const Oe in Ho)Object.defineProperty(ve,Oe,{get:()=>d.value[Oe],enumerable:!0});J.provide(fh,me),J.provide(Nb,lT(ve)),J.provide(Yg,d);const $e=J.unmount;He.add(J),J.unmount=function(){He.delete(J),He.size<1&&(u=Ho,ce&&ce(),ce=null,d.value=Ho,Re=!1,Ie=!1),$e()}}};function Ge(J){return J.reduce((me,ve)=>me.then(()=>D(ve)),Promise.resolve())}return ze}function pU(t,e){const r=[],n=[],i=[],o=Math.max(e.matched.length,t.matched.length);for(let a=0;aPl(u,c))?n.push(c):r.push(c));const d=t.matched[a];d&&(e.matched.find(u=>Pl(u,d))||i.push(d))}return[r,n,i]}function hU(){return rn(fh)}function zve(){return rn(Nb)}let dC;const ph=t=>dC=t,uC=Symbol();function Zg(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var nd;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(nd||(nd={}));function mU(){const t=Sy(!0),e=t.run(()=>Se({}));let r=[],n=[];const i=Fd({install(o){ph(i),i._a=o,o.provide(uC,i),o.config.globalProperties.$pinia=i,n.forEach(a=>r.push(a)),n=[]},use(o){return!this._a&&!JM?n.push(o):r.push(o),this},_p:r,_a:null,_e:t,_s:new Map,state:e});return i}const fC=()=>{};function H5(t,e,r,n=fC){t.push(e);const i=()=>{const o=t.indexOf(e);o>-1&&(t.splice(o,1),n())};return!r&&Iy()&&TR(i),i}function Qs(t,...e){t.slice().forEach(r=>{r(...e)})}const vU=t=>t();function Xg(t,e){t instanceof Map&&e instanceof Map&&e.forEach((r,n)=>t.set(n,r)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const r in e){if(!e.hasOwnProperty(r))continue;const n=e[r],i=t[r];Zg(i)&&Zg(n)&&t.hasOwnProperty(r)&&!Rt(n)&&!po(n)?t[r]=Xg(i,n):t[r]=n}return t}const gU=Symbol();function _U(t){return!Zg(t)||!t.hasOwnProperty(gU)}const{assign:Ko}=Object;function yU(t){return!!(Rt(t)&&t.effect)}function bU(t,e,r,n){const{state:i,actions:o,getters:a}=e,c=r.state.value[t];let d;function u(){c||(r.state.value[t]=i?i():{});const f=Up(r.state.value[t]);return Ko(f,o,Object.keys(a||{}).reduce((_,y)=>(_[y]=Fd(It(()=>{ph(r);const b=r._s.get(t);return a[y].call(b,b)})),_),{}))}return d=pC(t,u,e,r,n,!0),d}function pC(t,e,r={},n,i,o){let a;const c=Ko({actions:{}},r),d={deep:!0};let u,f,_=[],y=[],b;const p=n.state.value[t];!o&&!p&&(n.state.value[t]={}),Se({});let m;function g(R){let D;u=f=!1,typeof R=="function"?(R(n.state.value[t]),D={type:nd.patchFunction,storeId:t,events:b}):(Xg(n.state.value[t],R),D={type:nd.patchObject,payload:R,storeId:t,events:b});const q=m=Symbol();ra().then(()=>{m===q&&(u=!0)}),f=!0,Qs(_,D,n.state.value[t])}const v=o?function(){const{state:D}=r,q=D?D():{};this.$patch(H=>{Ko(H,q)})}:fC;function x(){a.stop(),_=[],y=[],n._s.delete(t)}function E(R,D){return function(){ph(n);const q=Array.from(arguments),H=[],U=[];function ce(Te){H.push(Te)}function Ae(Te){U.push(Te)}Qs(y,{args:q,name:R,store:C,after:ce,onError:Ae});let Le;try{Le=D.apply(this&&this.$id===t?this:C,q)}catch(Te){throw Qs(U,Te),Te}return Le instanceof Promise?Le.then(Te=>(Qs(H,Te),Te)).catch(Te=>(Qs(U,Te),Promise.reject(Te))):(Qs(H,Le),Le)}}const T={_p:n,$id:t,$onAction:H5.bind(null,y),$patch:g,$reset:v,$subscribe(R,D={}){const q=H5(_,R,D.detached,()=>H()),H=a.run(()=>Vt(()=>n.state.value[t],U=>{(D.flush==="sync"?f:u)&&R({storeId:t,type:nd.direct,events:b},U)},Ko({},d,D)));return q},$dispose:x},C=gi(T);n._s.set(t,C);const A=n._a&&n._a.runWithContext||vU,L=n._e.run(()=>(a=Sy(),A(()=>a.run(e))));for(const R in L){const D=L[R];if(Rt(D)&&!yU(D)||po(D))o||(p&&_U(D)&&(Rt(D)?D.value=p[R]:Xg(D,p[R])),n.state.value[t][R]=D);else if(typeof D=="function"){const q=E(R,D);L[R]=q,c.actions[R]=D}}return Ko(C,L),Ko(bt(C),L),Object.defineProperty(C,"$state",{get:()=>n.state.value[t],set:R=>{g(D=>{Ko(D,R)})}}),n._p.forEach(R=>{Ko(C,a.run(()=>R({store:C,app:n._a,pinia:n,options:c})))}),p&&o&&r.hydrate&&r.hydrate(C.$state,p),u=!0,f=!0,C}function hC(t,e,r){let n,i;const o=typeof e=="function";typeof t=="string"?(n=t,i=o?r:e):(i=t,n=t.id);function a(c,d){const u=VL();return c=c||(u?rn(uC,null):null),c&&ph(c),c=dC,c._s.has(n)||(o?pC(n,e,i,c):bU(n,i,c)),c._s.get(n)}return a.$id=n,a}function ba(t){{t=bt(t);const e={};for(const r in t){const n=t[r];(Rt(n)||po(n))&&(e[r]=nL(t,r))}return e}}const jd=hC({id:"main",state:()=>({fileShowHidden:!1,chatText:"",quick:"chat",noteExpand:!0,pages:[],audios:[],audioPlaying:null,lightboxInfoVisible:!1,videoViewType:"grid",imageViewType:"grid",fileSortBy:"NAME_ASC",imageSortBy:"DATE_DESC",videoSortBy:"DATE_DESC",audioSortBy:"DATE_DESC",json:"",qrCode:"",callNumber:""}),actions:{replaceRoute(t,e){const r=this.pages.indexOf(t);r!==-1&&this.pages.splice(r,1,e)}}});var xU=typeof global=="object"&&global&&global.Object===Object&&global;const mC=xU;var wU=typeof self=="object"&&self&&self.Object===Object&&self,EU=mC||wU||Function("return this")();const Eo=EU;var TU=Eo.Symbol;const Ui=TU;var vC=Object.prototype,kU=vC.hasOwnProperty,CU=vC.toString,Mc=Ui?Ui.toStringTag:void 0;function AU(t){var e=kU.call(t,Mc),r=t[Mc];try{t[Mc]=void 0;var n=!0}catch{}var i=CU.call(t);return n&&(e?t[Mc]=r:delete t[Mc]),i}var SU=Object.prototype,IU=SU.toString;function $U(t){return IU.call(t)}var OU="[object Null]",PU="[object Undefined]",G5=Ui?Ui.toStringTag:void 0;function ws(t){return t==null?t===void 0?PU:OU:G5&&G5 in Object(t)?AU(t):$U(t)}function xa(t){return t!=null&&typeof t=="object"}var RU="[object Symbol]";function Ll(t){return typeof t=="symbol"||xa(t)&&ws(t)==RU}function gl(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r0){if(++e>=fV)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function vV(t){return function(){return t}}var gV=function(){try{var t=Ts(Object,"defineProperty");return t({},"",{}),t}catch{}}();const X5=gV;var _V=X5?function(t,e){return X5(t,"toString",{configurable:!0,enumerable:!1,value:vV(e),writable:!0})}:hh;const yV=_V;var bV=mV(yV);const xV=bV;function _C(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o-1}var CV=9007199254740991,AV=/^(?:0|[1-9]\d*)$/;function mh(t,e){var r=typeof t;return e=e??CV,!!e&&(r=="number"||r!="symbol"&&AV.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=IV}function Hd(t){return t!=null&&Bb(t.length)&&!gC(t)}function e_(t,e,r){if(!ms(r))return!1;var n=typeof e;return(n=="number"?Hd(r)&&mh(e,r.length):n=="string"&&e in r)?qb(r[e],t):!1}var $V=Object.prototype;function OV(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||$V;return t===r}function PV(t,e){for(var r=-1,n=Array(t);++r-1}function jj(t,e){var r=this.__data__,n=gh(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function To(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e0&&r(c)?e>1?kC(c,e-1,r,n,i):TC(i,c):n||(i[i.length]=c)}return i}function Gb(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),r=r>i?i:r,r<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n=n?t:Gb(t,e,r)}var cH="\\ud800-\\udfff",dH="\\u0300-\\u036f",uH="\\ufe20-\\ufe2f",fH="\\u20d0-\\u20ff",pH=dH+uH+fH,hH="\\ufe0e\\ufe0f",mH="\\u200d",vH=RegExp("["+mH+cH+pH+hH+"]");function Wb(t){return vH.test(t)}function gH(t){return t.split("")}var CC="\\ud800-\\udfff",_H="\\u0300-\\u036f",yH="\\ufe20-\\ufe2f",bH="\\u20d0-\\u20ff",xH=_H+yH+bH,wH="\\ufe0e\\ufe0f",EH="["+CC+"]",r_="["+xH+"]",n_="\\ud83c[\\udffb-\\udfff]",TH="(?:"+r_+"|"+n_+")",AC="[^"+CC+"]",SC="(?:\\ud83c[\\udde6-\\uddff]){2}",IC="[\\ud800-\\udbff][\\udc00-\\udfff]",kH="\\u200d",$C=TH+"?",OC="["+wH+"]?",CH="(?:"+kH+"(?:"+[AC,SC,IC].join("|")+")"+OC+$C+")*",AH=OC+$C+CH,SH="(?:"+[AC+r_+"?",r_,SC,IC,EH].join("|")+")",IH=RegExp(n_+"(?="+n_+")|"+SH+AH,"g");function $H(t){return t.match(IH)||[]}function OH(t){return Wb(t)?$H(t):gH(t)}function PH(t,e,r,n){var i=-1,o=t==null?0:t.length;for(n&&o&&(r=t[++i]);++ic))return!1;var u=o.get(t),f=o.get(e);if(u&&f)return u==e&&f==t;var _=-1,y=!0,b=r&JG?new Id:void 0;for(o.set(t,e),o.set(e,t);++_=HW&&(o=HC,a=!1,e=new Id(e));e:for(;++ie||o&&a&&d&&!c&&!u||n&&a&&d||!r&&d||!i)return 1;if(!n&&!o&&!u&&t=c)return d;var u=r[n];return d*(u=="desc"?-1:1)}}return t.index-e.index}function cQ(t,e,r){e.length?e=gl(e,function(o){return Yn(o)?function(a){return yh(a,o.length===1?o[0]:o)}:o}):e=[hh];var n=-1;e=gl(e,vh(Kb));var i=YW(t,function(o,a,c){var d=gl(e,function(u){return u(o)});return{criteria:d,index:++n,value:o}});return aQ(i,function(o,a){return lQ(o,a,r)})}var dQ=KC("length");const uQ=dQ;var ZC="\\ud800-\\udfff",fQ="\\u0300-\\u036f",pQ="\\ufe20-\\ufe2f",hQ="\\u20d0-\\u20ff",mQ=fQ+pQ+hQ,vQ="\\ufe0e\\ufe0f",gQ="["+ZC+"]",s_="["+mQ+"]",l_="\\ud83c[\\udffb-\\udfff]",_Q="(?:"+s_+"|"+l_+")",XC="[^"+ZC+"]",JC="(?:\\ud83c[\\udde6-\\uddff]){2}",eA="[\\ud800-\\udbff][\\udc00-\\udfff]",yQ="\\u200d",tA=_Q+"?",rA="["+vQ+"]?",bQ="(?:"+yQ+"(?:"+[XC,JC,eA].join("|")+")"+rA+tA+")*",xQ=rA+tA+bQ,wQ="(?:"+[XC+s_+"?",s_,JC,eA,gQ].join("|")+")",E4=RegExp(l_+"(?="+l_+")|"+wQ+xQ,"g");function EQ(t){for(var e=E4.lastIndex=0;E4.test(t);)++e;return e}function TQ(t){return Wb(t)?EQ(t):uQ(t)}var kQ=Array.prototype,CQ=kQ.splice;function AQ(t,e){for(var r=t?e.length:0,n=r-1;r--;){var i=e[r];if(r==n||i!==o){var o=i;mh(i)?CQ.call(t,i,1):oQ(t,i)}}return t}var SQ=Math.floor,IQ=Math.random;function $Q(t,e){return t+SQ(IQ()*(e-t+1))}function gs(t,e){var r=[];if(!(t&&t.length))return r;var n=-1,i=[],o=t.length;for(e=Kb(e);++n1&&e_(t,e[0],e[1])?e=[]:r>2&&e_(e[0],e[1],e[2])&&(e=[e[0]]),cQ(t,kC(e,1),[])});const LQ=RQ;var MQ=30,DQ="...",FQ=/\w*$/;function NQ(t,e){var r=MQ,n=DQ;if(ms(e)){var i="separator"in e?e.separator:i;r="length"in e?zb(e.length):r,n="omission"in e?wp(e.omission):n}t=Sd(t);var o=t.length;if(Wb(t)){var a=OH(t);o=a.length}if(r>=o)return t;var c=r-TQ(n);if(c<1)return n;var d=a?lH(a,0,c).join(""):t.slice(0,c);if(i===void 0)return d+n;if(a&&(c+=d.length-c),nQ(i)){if(t.slice(c).search(i)){var u,f=d;for(i.global||(i=RegExp(i.source,Sd(FQ.exec(i))+"g")),i.lastIndex=0;u=i.exec(f);)var _=u.index;d=d.slice(0,_===void 0?c:_)}}else if(t.indexOf(wp(i),c)!=c){var y=d.lastIndexOf(i);y>-1&&(d=d.slice(0,y))}return d+n}var zQ=yC(function(t,e){return VW(t)?GW(t,e):[]});const qQ=zQ,BQ=/(?:[^\s"]+|"[^"]*")+/g,T4=":",Tp="NOT",iA={"=":"!=",">=":"<",">":"<=","!=":"=","<=":">","<":">=",in:"nin",nin:"in"},UQ=qQ(Gd(iA),"in","nin");function VQ(t){return t.match(BQ)}function k4(t){return t.replace(/['"]+/g,"")}function jQ(t){return UQ.find(e=>t.indexOf(e)===0)||""}function HQ(t){const e=t.split(T4),r=k4(e[0]),n=k4(e.slice(1).join(T4)),i=jQ(n),o=n.slice(i.length);return{length:e.length,field:r,query:n,op:i,value:o}}function GQ(t){if(t==Tp)return{name:"",op:Tp,value:""};const e=HQ(t);return e.field=="is"?{name:e.query,op:"",value:"true"}:e.length==1?{name:"text",op:"",value:e.field}:{name:e.field,op:e.op,value:e.value}}const WQ=t=>{var n;const e=(n=VQ(t))==null?void 0:n.map(i=>GQ(i));if(!e)return[];let r=!1;return e.forEach(i=>{i.op==Tp?r=!0:r&&(i.op=iA[i.op]||"",r=!1)}),e.filter(i=>i.op!==Tp)},Yb=t=>{const e=[];return t.forEach(r=>{const n=r.value;r.name==="text"?n.indexOf(" ")!==-1?e.push(`"${n}"`):e.push(n):n.indexOf(" ")!==-1?e.push(`${r.name}:${r.op}"${n}"`):e.push(`${r.name}:${r.op}${n}`)}),e.join(" ")},QQ=t=>{var r;const e=Se(xq(((r=t.q)==null?void 0:r.toString())??""));return WQ(e.value)},oA=(t,e)=>{var n;const r=QQ(t);return r.length===1?((n=r.find(i=>i.name===e))==null?void 0:n.value)??"":""},qve=t=>oA(t,"tag"),Bve=t=>oA(t,"feed"),Uve=t=>{const e=[];t.bucketId&&e.push({name:"bucket_id",op:"",value:t.bucketId});for(const r of t.tags)e.push({name:"tag",op:"",value:YC(r.name)});return t.text&&e.push({name:"text",op:"",value:t.text}),Yb(e)},KQ={NOTE:"notes",AUDIO:"audios",IMAGE:"images",VIDEO:"videos",FEED_ENTRY:"feeds",SMS:"messages",CALL:"calls",CONTACT:"contacts",AI_CHAT:"aichats"},YQ={class:"tags"},ZQ=["onClick"],XQ=Bt({__name:"ItemTags",props:{type:{type:String},tags:{type:Object,default:[],required:!0}},setup(t){const e=t,r=jd();function n(i){if(!e.type)return;const o=Yb([{name:"tag",op:"",value:YC(i.name)}]);Uie(r,`/${KQ[e.type]}?q=${Hg(o)}`)}return(i,o)=>(te(),oe("div",YQ,[(te(!0),oe(St,null,Ei(t.tags,a=>(te(),oe("span",{class:"badge",onClick:Pt(c=>n(a),["stop"])},De(a.name),9,ZQ))),256))]))}}),JQ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},eK=V("path",{fill:"currentColor",d:"M5 19q-.825 0-1.413-.588T3 17V7q0-.825.588-1.413T5 5h10q.5 0 .938.225t.712.625l3.525 5q.35.525.35 1.15t-.35 1.15l-3.525 5q-.275.4-.712.625T15 19H5Zm13.55-7L15 7H5v10h10l3.55-5ZM5 12v5V7v5Z"},null,-1),tK=[eK];function rK(t,e){return te(),oe("svg",JQ,tK)}const nK={name:"material-symbols-label-outline-rounded",render:rK},iK={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},oK=V("path",{fill:"currentColor",d:"M12 15.575q-.2 0-.375-.062T11.3 15.3l-3.6-3.6q-.275-.275-.275-.7t.275-.7q.275-.275.713-.287t.712.262L11 12.15V5q0-.425.288-.713T12 4q.425 0 .713.288T13 5v7.15l1.875-1.875q.275-.275.713-.263t.712.288q.275.275.275.7t-.275.7l-3.6 3.6q-.15.15-.325.213t-.375.062ZM6 20q-.825 0-1.413-.588T4 18v-2q0-.425.288-.713T5 15q.425 0 .713.288T6 16v2h12v-2q0-.425.288-.713T19 15q.425 0 .713.288T20 16v2q0 .825-.588 1.413T18 20H6Z"},null,-1),aK=[oK];function sK(t,e){return te(),oe("svg",iK,aK)}const lK={name:"material-symbols-download-rounded",render:sK},cK={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},dK=V("path",{fill:"currentColor",d:"M7 21q-.825 0-1.413-.588T5 19V6q-.425 0-.713-.288T4 5q0-.425.288-.713T5 4h4q0-.425.288-.713T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6v13q0 .825-.588 1.413T17 21H7ZM7 6v13h10V6H7Zm0 0v13V6Zm5 7.9l1.9 1.9q.3.275.713.275t.687-.275q.3-.3.3-.713t-.3-.687l-1.9-1.9l1.9-1.9q.3-.3.3-.713t-.3-.687q-.275-.3-.688-.3t-.712.3L12 11.1l-1.9-1.9q-.275-.3-.688-.3t-.712.3q-.275.275-.275.688t.275.712l1.9 1.9l-1.9 1.9q-.275.275-.275.688t.275.712q.3.275.713.275t.687-.275l1.9-1.9Z"},null,-1),uK=[dK];function fK(t,e){return te(),oe("svg",cK,uK)}const Zb={name:"material-symbols-delete-forever-outline-rounded",render:fK};const pK={},hK={class:"popper-arrow","data-popper-arrow":""};function mK(t,e){return te(),oe("div",hK)}const vK=gn(pK,[["render",mK],["__scopeId","data-v-61211ab1"]]);function gK(t,e,r){let n=null;const i=Se(!1);mn(()=>{(t.content!==void 0||r.value)&&(i.value=!0),n=new MutationObserver(o),n.observe(e.value,{childList:!0,subtree:!0})}),Hi(()=>n==null?void 0:n.disconnect()),Vt(r,a=>{a?i.value=!0:i.value=!1});const o=()=>{t.content?i.value=!0:i.value=!1};return{hasContent:i}}function Zn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function _s(t){var e=Zn(t).Element;return t instanceof e||t instanceof Element}function Qn(t){var e=Zn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Xb(t){if(typeof ShadowRoot>"u")return!1;var e=Zn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var us=Math.max,kp=Math.min,Ml=Math.round;function c_(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function aA(){return!/^((?!chrome|android).)*safari/i.test(c_())}function Dl(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),i=1,o=1;e&&Qn(t)&&(i=t.offsetWidth>0&&Ml(n.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Ml(n.height)/t.offsetHeight||1);var a=_s(t)?Zn(t):window,c=a.visualViewport,d=!aA()&&r,u=(n.left+(d&&c?c.offsetLeft:0))/i,f=(n.top+(d&&c?c.offsetTop:0))/o,_=n.width/i,y=n.height/o;return{width:_,height:y,top:f,right:u+_,bottom:f+y,left:u,x:u,y:f}}function Jb(t){var e=Zn(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function _K(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function yK(t){return t===Zn(t)||!Qn(t)?Jb(t):_K(t)}function Vi(t){return t?(t.nodeName||"").toLowerCase():null}function Aa(t){return((_s(t)?t.ownerDocument:t.document)||window.document).documentElement}function e0(t){return Dl(Aa(t)).left+Jb(t).scrollLeft}function _o(t){return Zn(t).getComputedStyle(t)}function t0(t){var e=_o(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function bK(t){var e=t.getBoundingClientRect(),r=Ml(e.width)/t.offsetWidth||1,n=Ml(e.height)/t.offsetHeight||1;return r!==1||n!==1}function xK(t,e,r){r===void 0&&(r=!1);var n=Qn(e),i=Qn(e)&&bK(e),o=Aa(e),a=Dl(t,i,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(n||!n&&!r)&&((Vi(e)!=="body"||t0(o))&&(c=yK(e)),Qn(e)?(d=Dl(e,!0),d.x+=e.clientLeft,d.y+=e.clientTop):o&&(d.x=e0(o))),{x:a.left+c.scrollLeft-d.x,y:a.top+c.scrollTop-d.y,width:a.width,height:a.height}}function r0(t){var e=Dl(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function bh(t){return Vi(t)==="html"?t:t.assignedSlot||t.parentNode||(Xb(t)?t.host:null)||Aa(t)}function sA(t){return["html","body","#document"].indexOf(Vi(t))>=0?t.ownerDocument.body:Qn(t)&&t0(t)?t:sA(bh(t))}function od(t,e){var r;e===void 0&&(e=[]);var n=sA(t),i=n===((r=t.ownerDocument)==null?void 0:r.body),o=Zn(n),a=i?[o].concat(o.visualViewport||[],t0(n)?n:[]):n,c=e.concat(a);return i?c:c.concat(od(bh(a)))}function wK(t){return["table","td","th"].indexOf(Vi(t))>=0}function C4(t){return!Qn(t)||_o(t).position==="fixed"?null:t.offsetParent}function EK(t){var e=/firefox/i.test(c_()),r=/Trident/i.test(c_());if(r&&Qn(t)){var n=_o(t);if(n.position==="fixed")return null}var i=bh(t);for(Xb(i)&&(i=i.host);Qn(i)&&["html","body"].indexOf(Vi(i))<0;){var o=_o(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Qd(t){for(var e=Zn(t),r=C4(t);r&&wK(r)&&_o(r).position==="static";)r=C4(r);return r&&(Vi(r)==="html"||Vi(r)==="body"&&_o(r).position==="static")?e:r||EK(t)||e}var Sn="top",bi="bottom",xi="right",In="left",n0="auto",Kd=[Sn,bi,xi,In],Fl="start",$d="end",TK="clippingParents",lA="viewport",Dc="popper",kK="reference",A4=Kd.reduce(function(t,e){return t.concat([e+"-"+Fl,e+"-"+$d])},[]),cA=[].concat(Kd,[n0]).reduce(function(t,e){return t.concat([e,e+"-"+Fl,e+"-"+$d])},[]),CK="beforeRead",AK="read",SK="afterRead",IK="beforeMain",$K="main",OK="afterMain",PK="beforeWrite",RK="write",LK="afterWrite",MK=[CK,AK,SK,IK,$K,OK,PK,RK,LK];function DK(t){var e=new Map,r=new Set,n=[];t.forEach(function(o){e.set(o.name,o)});function i(o){r.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(c){if(!r.has(c)){var d=e.get(c);d&&i(d)}}),n.push(o)}return t.forEach(function(o){r.has(o.name)||i(o)}),n}function FK(t){var e=DK(t);return MK.reduce(function(r,n){return r.concat(e.filter(function(i){return i.phase===n}))},[])}function NK(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function Mi(t){return t.split("-")[0]}function zK(t){var e=t.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}function qK(t,e){var r=Zn(t),n=Aa(t),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,c=0,d=0;if(i){o=i.width,a=i.height;var u=aA();(u||!u&&e==="fixed")&&(c=i.offsetLeft,d=i.offsetTop)}return{width:o,height:a,x:c+e0(t),y:d}}function BK(t){var e,r=Aa(t),n=Jb(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=us(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=us(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-n.scrollLeft+e0(t),d=-n.scrollTop;return _o(i||r).direction==="rtl"&&(c+=us(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:c,y:d}}function dA(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Xb(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function d_(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function UK(t,e){var r=Dl(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function S4(t,e,r){return e===lA?d_(qK(t,r)):_s(e)?UK(e,r):d_(BK(Aa(t)))}function VK(t){var e=od(bh(t)),r=["absolute","fixed"].indexOf(_o(t).position)>=0,n=r&&Qn(t)?Qd(t):t;return _s(n)?e.filter(function(i){return _s(i)&&dA(i,n)&&Vi(i)!=="body"}):[]}function jK(t,e,r,n){var i=e==="clippingParents"?VK(t):[].concat(e),o=[].concat(i,[r]),a=o[0],c=o.reduce(function(d,u){var f=S4(t,u,n);return d.top=us(f.top,d.top),d.right=kp(f.right,d.right),d.bottom=kp(f.bottom,d.bottom),d.left=us(f.left,d.left),d},S4(t,a,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Nl(t){return t.split("-")[1]}function i0(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function uA(t){var e=t.reference,r=t.element,n=t.placement,i=n?Mi(n):null,o=n?Nl(n):null,a=e.x+e.width/2-r.width/2,c=e.y+e.height/2-r.height/2,d;switch(i){case Sn:d={x:a,y:e.y-r.height};break;case bi:d={x:a,y:e.y+e.height};break;case xi:d={x:e.x+e.width,y:c};break;case In:d={x:e.x-r.width,y:c};break;default:d={x:e.x,y:e.y}}var u=i?i0(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case Fl:d[u]=d[u]-(e[f]/2-r[f]/2);break;case $d:d[u]=d[u]+(e[f]/2-r[f]/2);break}}return d}function fA(){return{top:0,right:0,bottom:0,left:0}}function pA(t){return Object.assign({},fA(),t)}function hA(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}function o0(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=n===void 0?t.placement:n,o=r.strategy,a=o===void 0?t.strategy:o,c=r.boundary,d=c===void 0?TK:c,u=r.rootBoundary,f=u===void 0?lA:u,_=r.elementContext,y=_===void 0?Dc:_,b=r.altBoundary,p=b===void 0?!1:b,m=r.padding,g=m===void 0?0:m,v=pA(typeof g!="number"?g:hA(g,Kd)),x=y===Dc?kK:Dc,E=t.rects.popper,T=t.elements[p?x:y],C=jK(_s(T)?T:T.contextElement||Aa(t.elements.popper),d,f,a),A=Dl(t.elements.reference),L=uA({reference:A,element:E,strategy:"absolute",placement:i}),R=d_(Object.assign({},E,L)),D=y===Dc?R:A,q={top:C.top-D.top+v.top,bottom:D.bottom-C.bottom+v.bottom,left:C.left-D.left+v.left,right:D.right-C.right+v.right},H=t.modifiersData.offset;if(y===Dc&&H){var U=H[i];Object.keys(q).forEach(function(ce){var Ae=[xi,bi].indexOf(ce)>=0?1:-1,Le=[Sn,bi].indexOf(ce)>=0?"y":"x";q[ce]+=U[Le]*Ae})}return q}var I4={placement:"bottom",modifiers:[],strategy:"absolute"};function $4(){for(var t=arguments.length,e=new Array(t),r=0;rr?r:n}function sY(t){var e=t.state,r=t.options,n=t.name,i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,c=a===void 0?!1:a,d=r.boundary,u=r.rootBoundary,f=r.altBoundary,_=r.padding,y=r.tether,b=y===void 0?!0:y,p=r.tetherOffset,m=p===void 0?0:p,g=o0(e,{boundary:d,rootBoundary:u,padding:_,altBoundary:f}),v=Mi(e.placement),x=Nl(e.placement),E=!x,T=i0(v),C=oY(T),A=e.modifiersData.popperOffsets,L=e.rects.reference,R=e.rects.popper,D=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,q=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,U={x:0,y:0};if(A){if(o){var ce,Ae=T==="y"?Sn:In,Le=T==="y"?bi:xi,Te=T==="y"?"height":"width",Ie=A[T],Pe=Ie+g[Ae],Ce=Ie-g[Le],de=b?-R[Te]/2:0,we=x===Fl?L[Te]:R[Te],ke=x===Fl?-R[Te]:-L[Te],Re=e.elements.arrow,He=b&&Re?r0(Re):{width:0,height:0},ze=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:fA(),Ge=ze[Ae],J=ze[Le],me=ad(0,L[Te],He[Te]),ve=E?L[Te]/2-de-me-Ge-q.mainAxis:we-me-Ge-q.mainAxis,$e=E?-L[Te]/2+de+me+J+q.mainAxis:ke+me+J+q.mainAxis,Oe=e.elements.arrow&&Qd(e.elements.arrow),M=Oe?T==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,k=(ce=H==null?void 0:H[T])!=null?ce:0,I=Ie+ve-k-M,N=Ie+$e-k,G=ad(b?kp(Pe,I):Pe,Ie,b?us(Ce,N):Ce);A[T]=G,U[T]=G-Ie}if(c){var Y,se=T==="x"?Sn:In,ye=T==="x"?bi:xi,X=A[C],ee=C==="y"?"height":"width",pe=X+g[se],j=X-g[ye],z=[Sn,In].indexOf(v)!==-1,ie=(Y=H==null?void 0:H[C])!=null?Y:0,be=z?pe:X-L[ee]-R[ee]-ie+q.altAxis,Ne=z?X+L[ee]+R[ee]-ie-q.altAxis:j,Ue=b&&z?aY(be,X,Ne):ad(b?be:pe,X,b?Ne:j);A[C]=Ue,U[C]=Ue-X}e.modifiersData[n]=U}}const lY={name:"preventOverflow",enabled:!0,phase:"main",fn:sY,requiresIfExists:["offset"]};function cY(t,e,r){var n=Mi(t),i=[In,Sn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,a=o[0],c=o[1];return a=a||0,c=(c||0)*i,[In,xi].indexOf(n)>=0?{x:c,y:a}:{x:a,y:c}}function dY(t){var e=t.state,r=t.options,n=t.name,i=r.offset,o=i===void 0?[0,0]:i,a=cA.reduce(function(f,_){return f[_]=cY(_,e.rects,o),f},{}),c=a[e.placement],d=c.x,u=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=a}const uY={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:dY};var fY=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,pA(typeof e!="number"?e:hA(e,Kd))};function pY(t){var e,r=t.state,n=t.name,i=t.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,c=Mi(r.placement),d=i0(c),u=[In,xi].indexOf(c)>=0,f=u?"height":"width";if(!(!o||!a)){var _=fY(i.padding,r),y=r0(o),b=d==="y"?Sn:In,p=d==="y"?bi:xi,m=r.rects.reference[f]+r.rects.reference[d]-a[d]-r.rects.popper[f],g=a[d]-r.rects.reference[d],v=Qd(o),x=v?d==="y"?v.clientHeight||0:v.clientWidth||0:0,E=m/2-g/2,T=_[b],C=x-y[f]-_[p],A=x/2-y[f]/2+E,L=ad(T,A,C),R=d;r.modifiersData[n]=(e={},e[R]=L,e.centerOffset=L-A,e)}}function hY(t){var e=t.state,r=t.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||dA(e.elements.popper,i)&&(e.elements.arrow=i))}const mY={name:"arrow",enabled:!0,phase:"main",fn:pY,effect:hY,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var vY={left:"right",right:"left",bottom:"top",top:"bottom"};function Kf(t){return t.replace(/left|right|bottom|top/g,function(e){return vY[e]})}var gY={start:"end",end:"start"};function P4(t){return t.replace(/start|end/g,function(e){return gY[e]})}function _Y(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,c=r.flipVariations,d=r.allowedAutoPlacements,u=d===void 0?cA:d,f=Nl(n),_=f?c?A4:A4.filter(function(p){return Nl(p)===f}):Kd,y=_.filter(function(p){return u.indexOf(p)>=0});y.length===0&&(y=_);var b=y.reduce(function(p,m){return p[m]=o0(t,{placement:m,boundary:i,rootBoundary:o,padding:a})[Mi(m)],p},{});return Object.keys(b).sort(function(p,m){return b[p]-b[m]})}function yY(t){if(Mi(t)===n0)return[];var e=Kf(t);return[P4(t),e,P4(e)]}function bY(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,c=a===void 0?!0:a,d=r.fallbackPlacements,u=r.padding,f=r.boundary,_=r.rootBoundary,y=r.altBoundary,b=r.flipVariations,p=b===void 0?!0:b,m=r.allowedAutoPlacements,g=e.options.placement,v=Mi(g),x=v===g,E=d||(x||!p?[Kf(g)]:yY(g)),T=[g].concat(E).reduce(function(He,ze){return He.concat(Mi(ze)===n0?_Y(e,{placement:ze,boundary:f,rootBoundary:_,padding:u,flipVariations:p,allowedAutoPlacements:m}):ze)},[]),C=e.rects.reference,A=e.rects.popper,L=new Map,R=!0,D=T[0],q=0;q=0,Le=Ae?"width":"height",Te=o0(e,{placement:H,boundary:f,rootBoundary:_,altBoundary:y,padding:u}),Ie=Ae?ce?xi:In:ce?bi:Sn;C[Le]>A[Le]&&(Ie=Kf(Ie));var Pe=Kf(Ie),Ce=[];if(o&&Ce.push(Te[U]<=0),c&&Ce.push(Te[Ie]<=0,Te[Pe]<=0),Ce.every(function(He){return He})){D=H,R=!1;break}L.set(H,Ce)}if(R)for(var de=p?3:1,we=function(ze){var Ge=T.find(function(J){var me=L.get(J);if(me)return me.slice(0,ze).every(function(ve){return ve})});if(Ge)return D=Ge,"break"},ke=de;ke>0;ke--){var Re=we(ke);if(Re==="break")break}e.placement!==D&&(e.modifiersData[n]._skip=!0,e.placement=D,e.reset=!0)}}const xY={name:"flip",enabled:!0,phase:"main",fn:bY,requiresIfExists:["offset"],data:{_skip:!1}};function wY({emit:t,placement:e,popperNode:r,triggerNode:n}){const i=gi({isOpen:!1,popperInstance:null}),o=_=>{var y;(y=i.popperInstance)==null||y.setOptions(b=>({...b,modifiers:[...b.modifiers,{name:"eventListeners",enabled:_}]}))},a=()=>o(!0),c=()=>o(!1),d=()=>{i.isOpen&&(i.isOpen=!1,t("close:popper"))},u=()=>{i.isOpen||(i.isOpen=!0,t("open:popper"))};Vt([()=>i.isOpen,e],async([_])=>{_?(await f(),a()):c()});const f=async()=>{var _;await ra(),i.popperInstance=iY(n.value,r.value,{placement:e.value,modifiers:[lY,mY,{name:"arrow",options:{padding:0}},xY,{name:"flip",enabled:!0},uY,{name:"offset",options:{offset:[0,8]}}]}),(_=i.popperInstance)==null||_.update()};return Hi(()=>{var _;(_=i.popperInstance)==null||_.destroy()}),{...Up(i),open:u,close:d}}const EY=["onClick","onKeyup"],TY=["onClick"],kY=Bt({__name:"Popper",props:{placement:{type:String,default:"bottom",validator:function(t){return["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"].includes(t)}},hover:{type:Boolean,default:!1},show:{type:Boolean,default:null},zIndex:{type:[Number,String],default:9999},arrow:{type:Boolean,default:!1},content:{type:String,default:null}},emits:["open:popper","close:popper"],setup(t,{emit:e}){const r=t;PM(C=>({41543257:t.zIndex}));const n=LL(),i=Se(null),o=Se(null),a=Se(null),c=Se(!1),{content:d,placement:u,show:f}=Up(r),{isOpen:_,open:y,close:b}=wY({emit:e,placement:u,popperNode:o,triggerNode:a}),{hasContent:p}=gK(n,o,d),m=It(()=>f.value!==null),g=It(()=>!p.value),v=It(()=>_.value&&!g.value),x=async()=>{g.value||m.value||y()},E=async()=>{m.value||b()},T=()=>{_.value?E():x()};return Vt([p],([C])=>{_.value&&!C&&b()}),Vt(_,C=>{c.value=C}),_L(()=>{m.value&&(f.value?y():b())}),(C,A)=>{const L=vK,R=Ea("click-away");return vt((te(),oe("div",{class:"inline-block",onMouseleave:A[1]||(A[1]=D=>t.hover&&E()),ref_key:"popperContainerNode",ref:i},[V("div",{ref_key:"triggerNode",ref:a,onMouseover:A[0]||(A[0]=D=>t.hover&&x()),onClick:Pt(T,["stop"]),onFocus:x,onKeyup:Zs(E,["esc"])},[_2(C.$slots,"default",{},void 0,!0)],40,EY),qe(_d,{name:"fade"},{default:_i(()=>[vt(V("div",{class:"popper",ref_key:"popperNode",ref:o,onClick:Pt(()=>{},["stop"])},[_2(C.$slots,"content",{close:fe(b),isOpen:c.value},()=>[Cn(De(fe(d)),1)],!0),t.arrow?(te(),Hr(L,{key:0})):yt("",!0)],8,TY),[[fi,v.value]])]),_:3})],32)),[[R,E]])}}});const a0=gn(kY,[["__scopeId","data-v-da4ddbfd"]]),CY={class:"nowrap"},AY={class:"view-raw"},SY=Bt({__name:"FieldId",props:{id:{type:String,required:!0},raw:{type:[String,Object],default:""}},setup(t){return(e,r)=>{const n=a0;return te(),Hr(n,null,{content:_i(()=>[V("pre",AY,De(t.raw),1)]),default:_i(()=>[V("span",CY,De(t.id),1)]),_:1})}}}),IY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},$Y=V("path",{fill:"currentColor",d:"M8.7 17.3q-.275-.275-.275-.7t.275-.7l3.9-3.9l-3.9-3.9q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.6 4.6q-.275.275-.7.275t-.7-.275Z"},null,-1),OY=[$Y];function PY(t,e){return te(),oe("svg",IY,OY)}const RY={name:"material-symbols-chevron-right-rounded",render:PY},LY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},MY=V("path",{fill:"currentColor",d:"m13.3 17.3l-4.6-4.6q-.15-.15-.212-.325T8.425 12q0-.2.063-.375T8.7 11.3l4.6-4.6q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7L10.8 12l3.9 3.9q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275Z"},null,-1),DY=[MY];function FY(t,e){return te(),oe("svg",LY,DY)}const NY={name:"material-symbols-chevron-left-rounded",render:FY},zY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},qY=V("path",{fill:"currentColor",d:"M12 17q.425 0 .713-.288T13 16v-4.025q0-.425-.288-.7T12 11q-.425 0-.713.288T11 12v4.025q0 .425.288.7T12 17Zm0-8q.425 0 .713-.288T13 8q0-.425-.288-.713T12 7q-.425 0-.713.288T11 8q0 .425.288.713T12 9Zm0 13q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Z"},null,-1),BY=[qY];function UY(t,e){return te(),oe("svg",zY,BY)}const VY={name:"material-symbols-info-outline-rounded",render:UY},jY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},HY=V("path",{fill:"currentColor",d:"M19.75 12.05q-.3 0-.588-.213T18.8 11.3q-.125-.475-.313-.938t-.437-.887q-.175-.275-.125-.613T18.2 8.3q.375-.35.863-.3t.737.475q.325.55.575 1.125t.4 1.2q.125.5-.188.875t-.837.375Zm-6.7 8.7q0-.3.213-.588t.537-.362q.475-.125.938-.313t.887-.437q.275-.175.613-.125t.562.275q.35.375.3.863t-.475.737q-.575.325-1.15.563t-1.175.412q-.5.125-.875-.175t-.375-.85Zm5.15-2.95q-.225-.2-.275-.55t.125-.625q.25-.425.438-.888t.312-.937q.075-.325.35-.537t.6-.213q.55 0 .85.375t.175.875q-.175.6-.412 1.175t-.563 1.15q-.25.425-.738.475t-.862-.3Zm-8.375 3.95q-2.975-.8-4.875-3.2t-1.9-5.5q0-3.75 2.625-6.375T12.05 4.05h.15l-.875-.875q-.275-.275-.275-.7t.3-.725q.275-.275.7-.275t.725.275l2.575 2.6q.15.15.213.325t.062.375q0 .2-.062.375t-.213.325l-2.6 2.6q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l.9-.9h-.2q-2.925 0-4.962 2.037T5.05 13.05q0 2.425 1.475 4.288T10.3 19.8q.325.075.537.35t.213.6q0 .525-.363.825t-.862.175Z"},null,-1),GY=[HY];function WY(t,e){return te(),oe("svg",jY,GY)}const QY={name:"material-symbols-rotate-right-rounded",render:WY},KY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},YY=V("path",{fill:"currentColor",d:"M4.3 12.05q-.525 0-.838-.363t-.187-.862q.15-.625.4-1.212t.575-1.138q.275-.425.738-.475t.862.325q.2.2.263.538T6 9.475q-.275.425-.45.888t-.3.937q-.075.325-.338.537t-.612.213Zm5.475 9.725q-.6-.15-1.188-.4T7.426 20.8q-.425-.275-.475-.738t.325-.862q.2-.2.538-.263t.612.113q.425.275.888.45t.937.3q.325.075.537.338t.213.612q0 .525-.363.838t-.862.187Zm-5.525-4.15q-.325-.575-.575-1.163t-.4-1.187q-.125-.5.188-.863t.887-.362q.3 0 .563.213t.337.537q.125.475.3.938t.45.887q.175.275.125.6t-.275.55q-.375.375-.85.325t-.75-.475Zm9.975 4.125q-.5.125-.862-.175T13 20.75q0-.3.213-.588t.537-.362q2.325-.575 3.788-2.45T19 13.05q0-2.925-2.038-4.963T12 6.05h-.2l.9.9q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275l-2.6-2.6q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375T8.7 4.35l2.6-2.6q.275-.275.7-.275t.725.275q.275.3.275.725t-.275.7l-.875.875H12q3.75 0 6.375 2.625T21 13.05q0 3.1-1.9 5.5t-4.875 3.2Z"},null,-1),ZY=[YY];function XY(t,e){return te(),oe("svg",KY,ZY)}const JY={name:"material-symbols-rotate-left-rounded",render:XY},eZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},tZ=V("path",{fill:"currentColor",d:"M6 12q.425 0 .713-.288T7 11V9h2.025q.425 0 .7-.288T10 8q0-.425-.288-.713T9 7H6q-.425 0-.713.288T5 8v3.025q0 .425.288.7T6 12Zm9 5h3q.425 0 .713-.288T19 16v-3.025q0-.425-.288-.7T18 12q-.425 0-.713.288T17 13v2h-2.025q-.425 0-.7.288T14 16q0 .425.288.713T15 17ZM4 20q-.825 0-1.413-.588T2 18V6q0-.825.588-1.413T4 4h16q.825 0 1.413.588T22 6v12q0 .825-.588 1.413T20 20H4Zm0-2V6v12Zm0 0h16V6H4v12Z"},null,-1),rZ=[tZ];function nZ(t,e){return te(),oe("svg",eZ,rZ)}const iZ={name:"material-symbols-aspect-ratio-outline-rounded",render:nZ},oZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},aZ=V("path",{fill:"currentColor",d:"m18.9 20.3l-5.6-5.6q-.75.6-1.725.95T9.5 16q-2.725 0-4.612-1.888T3 9.5q0-2.725 1.888-4.612T9.5 3q2.725 0 4.612 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.625 5.625q.275.275.263.687t-.288.688q-.275.275-.7.275t-.7-.275ZM9.5 14q1.875 0 3.188-1.313T14 9.5q0-1.875-1.313-3.188T9.5 5Q7.625 5 6.312 6.313T5 9.5q0 1.875 1.313 3.188T9.5 14Zm-1.525-3.5q-.425 0-.7-.288T7 9.5q0-.425.288-.713T8 8.5h3.025q.425 0 .7.288T12 9.5q0 .425-.288.713T11 10.5H7.975Z"},null,-1),sZ=[aZ];function lZ(t,e){return te(),oe("svg",oZ,sZ)}const cZ={name:"material-symbols-zoom-out-rounded",render:lZ},dZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},uZ=V("path",{fill:"currentColor",d:"m18.9 20.3l-5.6-5.6q-.75.6-1.725.95T9.5 16q-2.725 0-4.612-1.888T3 9.5q0-2.725 1.888-4.612T9.5 3q2.725 0 4.612 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.625 5.625q.275.275.263.687t-.288.688q-.275.275-.7.275t-.7-.275ZM9.5 14q1.875 0 3.188-1.313T14 9.5q0-1.875-1.313-3.188T9.5 5Q7.625 5 6.312 6.313T5 9.5q0 1.875 1.313 3.188T9.5 14Zm0-1.5q-.425 0-.713-.288T8.5 11.5v-1H7.475q-.425 0-.7-.288T6.5 9.5q0-.425.288-.713T7.5 8.5h1V7.475q0-.425.288-.7T9.5 6.5q.425 0 .713.287t.287.713v1h1.025q.425 0 .7.288t.275.712q0 .425-.288.713t-.712.287h-1v1.025q0 .425-.288.7T9.5 12.5Z"},null,-1),fZ=[uZ];function pZ(t,e){return te(),oe("svg",dZ,fZ)}const hZ={name:"material-symbols-zoom-in-rounded",render:pZ},mZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},vZ=V("path",{fill:"currentColor",d:"M7 17h10q.3 0 .45-.275t-.05-.525l-2.75-3.675q-.15-.2-.4-.2t-.4.2L11.25 16L9.4 13.525q-.15-.2-.4-.2t-.4.2l-2 2.675q-.2.25-.05.525T7 17Zm-2 4q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm0-2h14V5H5v14ZM5 5v14V5Z"},null,-1),gZ=[vZ];function _Z(t,e){return te(),oe("svg",mZ,gZ)}const mA={name:"material-symbols-image-outline-rounded",render:_Z},yZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},bZ=V("path",{fill:"currentColor",d:"m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275L12 13.4Z"},null,-1),xZ=[bZ];function wZ(t,e){return te(),oe("svg",yZ,xZ)}const Yd={name:"material-symbols-close-rounded",render:wZ},EZ=()=>{};let vA=!1;try{const t={};Object.defineProperty(t,"passive",{get(){vA=!0}}),window.addEventListener("test-passive",EZ,t)}catch{}const R4=(t,e,r,n=!1)=>{t.addEventListener(e,r,vA?{capture:!1,passive:n}:!1)},L4=(t,e,r)=>{t.removeEventListener(e,r)},M4=t=>{t.preventDefault()},TZ=Object.prototype.toString,kZ=t=>e=>TZ.call(e).slice(8,-1)===t;function CZ(t){return kZ("Array")(t)}function D4(t,e){const r=t.clientX-e.clientX,n=t.clientY-e.clientY;return Math.sqrt(r*r+n*n)}const AZ=()=>{const t=Se(),e=gi({width:0,height:0,maxScale:1});return{imgRef:t,imgState:e,setImgSize:()=>{if(t.value){const{width:n,height:i,naturalWidth:o}=t.value;e.maxScale=o/n,e.width=n,e.height=i}}}},SZ=(t,e,r)=>{let n,i=!1;return{onMouseDown:d=>{r(d.button)&&(t.initX=t.lastX=d.clientX,t.initY=t.lastY=d.clientY,e.dragging=!0,e.dragging=!0,i=!1,d.stopPropagation())},onMouseUp:d=>{r(d.button)&&cancelAnimationFrame(n),e.dragging=!1,e.swipeToLeft=!1,e.swipeToRight=!1,i=!1},onMouseMove:d=>{if(e.dragging)if(r(d.button)){if(i)return;i=!0,n=requestAnimationFrame(()=>{const{top:u,left:f,lastY:_,lastX:y}=t;t.top=u-_+d.clientY,t.left=f-y+d.clientX,t.lastX=d.clientX,t.lastY=d.clientY,i=!1})}else t.lastX=d.clientX,t.lastY=d.clientY;d.stopPropagation()}}},IZ=(t,e,r,n)=>{let i,o=!1,a=0,c=0;const d=50;return{onTouchStart:y=>{const{touches:b}=y;a=b[0].clientX,c=b[0].clientY,b.length>1?(r.gesturing=!0,e.touches=b):(e.initX=e.lastX=b[0].clientX,e.initY=e.lastY=b[0].clientY,r.dragging=!0),y.stopPropagation()},onTouchMove:y=>{if(o)return;const{touches:b}=y,{lastX:p,lastY:m,left:g,top:v,scale:x}=e,E=b[0].clientX,T=b[0].clientY,C=E-a,A=T-c;if(Math.abs(C)>Math.abs(A)&&(Cd&&(r.swipeToRight=!0)),!r.gesturing&&r.dragging){if(!b[0])return;const{clientX:R,clientY:D}=b[0];n()?i=requestAnimationFrame(()=>{e.lastX=R,e.lastY=D,e.top=v-m+D,e.left=g-p+R,o=!1}):(e.lastX=R,e.lastY=D)}else r.gesturing&&e.touches.length>1&&b.length>1&&(i=requestAnimationFrame(()=>{const R=(D4(e.touches[0],e.touches[1])-D4(b[0],b[1]))/t.width;e.touches=b;const D=x-R*1.3;D>.5&&D{cancelAnimationFrame(i),r.dragging=!1,r.gesturing=!1,o=!1}}},$Z=[".jpg",".png",".jpeg",".bmp",".webp",".heic",".heif",".apng",".avif",".gif"],OZ=[".mp4",".mkv",".webm",".avi",".3gp",".mov",".m4v",".3gpp"],PZ=[".mp3",".wav",".wma",".ogg",".m4a",".opus",".flac",".aac"];function Li(t){const e=t.toLowerCase();return $Z.some(r=>e.endsWith(r))}function ji(t){const e=t.toLowerCase();return OZ.some(r=>e.endsWith(r))}function Od(t){const e=t.toLowerCase();return PZ.some(r=>e.endsWith(r))}function F4(t){return Li(t)||ji(t)||Od(t)}function Vve(t){return[".txt",".pdf",".md"].some(e=>t.endsWith(e))}class RZ{constructor(e,r){kr(this,"dir");kr(this,"items",[]);this.dir=e,this.items=r}deleteItem(e){const r=this.items.findIndex(n=>this.inPath(n.path,e));r!==-1&&this.items.splice(r,1)}inPath(e,r){return(e+"/").startsWith(r+"/")}rename(e,r,n){const i=this.items.find(o=>this.inPath(o.path,e));i&&(i.path===e?(i.path=i.path.replace("/"+r,"/"+n),i.name=n):i.path=i.path.replace("/"+r+"/","/"+n+"/")),this.inPath(this.dir,e)&&(this.dir===e?this.dir=this.dir.replace("/"+r,"/"+n):this.dir=this.dir.replace("/"+r+"/","/"+n+"/"))}}function jve(){return[{label:"sort_by.date_asc",value:"DATE_ASC"},{label:"sort_by.date_desc",value:"DATE_DESC"},{label:"sort_by.size_asc",value:"SIZE_ASC"},{label:"sort_by.size_desc",value:"SIZE_DESC"},{label:"sort_by.name_asc",value:"NAME_ASC"},{label:"sort_by.name_desc",value:"NAME_DESC"}]}async function N4(t){return new Promise(e=>{const r=document.createElement("video"),n=document.createElement("canvas"),i=URL.createObjectURL(t);r.src=i,r.play(),r.onloadeddata=async()=>{const o=Math.min(r.videoWidth,r.videoHeight),a=(r.videoWidth-o)/2,c=(r.videoHeight-o)/2;n.width=200,n.height=200,n.getContext("2d").drawImage(r,a,c,o,o,0,0,n.width,n.height);const u=n.toDataURL();r.pause(),r.currentTime=0,URL.revokeObjectURL(i),r.remove(),n.remove(),e({src:i,duration:Math.round(r.duration),thumbnail:u})}})}const Co=hC({id:"temp",state:()=>({app:null,urlTokenKey:null,uploads:[],selectedFiles:[],audioPlaying:!1,lightbox:{sources:[],visible:!1,index:-1}})});function s0(){return localStorage.getItem("locale")??navigator.language??"en-US"}function l0(t,e){return t==="1970-01-01T00:00:00Z"?"":new Intl.DateTimeFormat(s0(),{hour12:!1,dateStyle:"short",timeStyle:"short",...e}).format(new Date(t))}function c0(t){return t==="1970-01-01T00:00:00Z"?"":l0(t,{dateStyle:"long",timeStyle:"long"})}function Iv(t){return new Intl.DateTimeFormat(s0()).format(new Date(t))}function LZ(t){return new Intl.DateTimeFormat(s0(),{hour12:!1,timeStyle:"short"}).format(new Date(t))}function xh(t){const e=Math.floor(t/3600),r=Math.floor(t%3600/60),n=Math.floor(t%60),i=e<10?`0${e}`:e,o=r<10?`0${r}`:r,a=n<10?`0${n}`:n;return e>0?`${i}:${o}:${a}`:`${o}:${a}`}function Pd(t,e=!0,r=1){const n=e?1e3:1024;if(Math.abs(t)=n&&oi?bv(r,i):yv(r,r.default);else{const i=rn(uk,null),o=rn(o9,null);e=a=>{if(a){const d=bv(i,a);return d||bv(r,a)}const c=yv(i,o);return c||yv(r,r.default)}}function n(i=t){const o=e(i);if(!o)throw new Error(`Apollo client with id ${i??"default"} not found. Use an app.runWithContext() or provideApolloClient() if you are outside of a component setup.`);return o}return{resolveClient:n,get client(){return n()}}}var a9={};function xv(t){return Rt(t)?t:typeof t=="function"?It(t):Se(t)}function s9(t){return Rt(t)?t:typeof t=="function"?It(t):t&&gi(t)}function vp(){const t=[];function e(o){return t.push(o),{off:()=>r(o)}}function r(o){const a=t.indexOf(o);a!==-1&&t.splice(a,1)}function n(o){for(const a of t)a(o)}function i(){return t.length}return{on:e,off:r,trigger:n,getCount:i}}var ja=typeof window>"u",ll={queries:Se(0),mutations:Se(0),subscriptions:Se(0),components:new Map};function l9(){const t=Gi();if(!t)return{};let e;return ll.components.has(t)?e=ll.components.get(t):(ll.components.set(t,e={queries:Se(0),mutations:Se(0),subscriptions:Se(0)}),Wl(()=>{ll.components.delete(t)})),{tracking:e}}function fk(t,e){if(ja)return;const{tracking:r}=l9();Vt(t,(n,i)=>{if(i!=null&&n!==i){const o=n?1:-1;r&&(r[e].value+=o),ll[e].value+=o}},{immediate:!0}),Hi(()=>{t.value&&(r&&r[e].value--,ll[e].value--)})}function c9(t){fk(t,"queries")}function d9(t){fk(t,"mutations")}function pk(t){return t instanceof Error?$3(t)?t:new co({networkError:t,errorMessage:t.message}):new co({networkError:Object.assign(new Error,{originalError:t}),errorMessage:String(t)})}function u9(t){return new co({graphQLErrors:t,errorMessage:`GraphQL response contains errors: ${t.map(e=>e.message).join(" | ")}`})}function f9(t,e,r){return hk(t,e,r)}function hk(t,e,r={},n=!1){var i;const o=Gi(),a=Se(),c=xv(t),d=xv(e),u=s9(r),f=Se(),_=vp(),y=Se(null),b=vp(),p=Se(!1);o&&c9(p);const m=Se();let g,v=!1,x,E;const T=()=>{v=!0,g&&g()},C=X=>{E=X,x&&x(X)},A=()=>{g=void 0,x=void 0,v=!1,E=void 0};o&&((i=AT)==null||i(()=>{var X;if(!(!M.value||ja&&((X=a.value)==null?void 0:X.prefetch)===!1))return new Promise((ee,pe)=>{g=()=>{A(),ee()},x=j=>{A(),pe(j)},v?g():E&&x(E)}).finally(ke)}));const{resolveClient:L}=sh(),R=Se();let D,q=!1,H=!1,U=!0;function ce(){var X,ee,pe,j,z,ie;if(q||!M.value||ja&&((X=a.value)==null?void 0:X.prefetch)===!1||!ve){T();return}q=!0,y.value=null,p.value=!0;const be=L((ee=a.value)==null?void 0:ee.clientId);if(R.value=be.watchQuery({query:ve,variables:k??{},...a.value,...ja&&((pe=a.value)==null?void 0:pe.fetchPolicy)!=="no-cache"?{fetchPolicy:"network-only"}:{}}),Ae(),!ja&&(U||!((j=a.value)!=null&&j.keepPreviousResult))&&(((z=a.value)==null?void 0:z.fetchPolicy)!=="no-cache"||a.value.notifyOnNetworkStatusChange)){const Ne=R.value.getCurrentResult(!1);!Ne.loading||Ne.partial||(ie=a.value)!=null&&ie.notifyOnNetworkStatusChange?(Te(Ne),H=!Ne.loading):Ne.error&&(Pe(Ne.error),H=!0)}if(!ja)for(const Ne of Y)ye(Ne);U=!1}function Ae(){D&&!D.closed||R.value&&(H=!1,D=R.value.subscribe({next:Te,error:Pe}))}function Le(){var X,ee,pe,j;const z=L((X=a.value)==null?void 0:X.clientId);return((ee=a.value)==null?void 0:ee.errorPolicy)||((j=(pe=z.defaultOptions)==null?void 0:pe.watchQuery)==null?void 0:j.errorPolicy)}function Te(X){var ee;if(H){H=!1;return}y.value=null,Ie(X);const pe=Le();pe&&pe==="all"&&!X.error&&((ee=X.errors)!=null&&ee.length)&&Ce(u9(X.errors)),T()}function Ie(X){f.value=X.data&&Object.keys(X.data).length===0?void 0:X.data,p.value=X.loading,m.value=X.networkStatus,ra(()=>{_.trigger(X)})}function Pe(X){if(H){H=!1;return}const ee=pk(X),pe=Le();pe&&pe!=="none"&&Ie(R.value.getCurrentResult()),Ce(ee),C(ee),de()}function Ce(X){y.value=X,p.value=!1,m.value=8,ra(()=>{b.trigger(X)})}function de(){if(!R.value)return;const X=R.value.getLastError(),ee=R.value.getLastResult();R.value.resetLastResults(),Ae(),Object.assign(R.value,{lastError:X,lastResult:ee})}let we=[];function ke(){T(),q&&(q=!1,p.value=!1,we.forEach(X=>X()),we=[],R.value&&(R.value.stopPolling(),R.value=null),D&&(D.unsubscribe(),D=void 0))}let Re=!1;function He(){!q||Re||(Re=!0,ra(()=>{q&&(ke(),ce()),Re=!1}))}let ze,Ge=!1;function J(){var X,ee;a.value?((X=a.value)!=null&&X.throttle?ze=JT(a.value.throttle,He):(ee=a.value)!=null&&ee.debounce?ze=eD(a.value.debounce,He):ze=He,Ge=!0):ze=He}function me(){!q||Re||(Ge||J(),ze())}let ve=c.value;const $e=Se(n),Oe=It(()=>!a.value||a.value.enabled==null||a.value.enabled),M=It(()=>Oe.value&&!$e.value&&!!c.value);Vt(()=>fe(u),X=>{a.value&&(a.value.throttle!==X.throttle||a.value.debounce!==X.debounce)&&J(),a.value=X,me()},{deep:!0,immediate:!0}),Vt(c,X=>{ve=X,me()});let k,I;Vt(()=>{if(M.value)return d.value},X=>{const ee=JSON.stringify([X,M.value]);ee!==I&&(k=X,me()),I=ee},{deep:!0,immediate:!0});function N(X=void 0){if(R.value)return X&&(k=X),y.value=null,p.value=!0,R.value.refetch(X).then(ee=>{var pe;const j=(pe=R.value)==null?void 0:pe.getCurrentResult();return j&&Ie(j),ee})}function G(X){if(R.value)return y.value=null,p.value=!0,R.value.fetchMore(X).then(ee=>{var pe;const j=(pe=R.value)==null?void 0:pe.getCurrentResult();return j&&Ie(j),ee})}const Y=[];function se(X){if(ja)return;const ee=xv(X);Vt(ee,(pe,j,z)=>{const ie=Y.findIndex(Ne=>Ne.options===j);ie!==-1&&Y.splice(ie,1);const be={options:pe,unsubscribeFns:[]};Y.push(be),ye(be),z(()=>{be.unsubscribeFns.forEach(Ne=>Ne()),be.unsubscribeFns=[]})},{immediate:!0})}function ye(X){if(!q)return;if(!R.value)throw new Error("Query is not defined");const ee=R.value.subscribeToMore(X.options);we.push(ee),X.unsubscribeFns.push(ee)}return Vt(M,X=>{X?ra(()=>{ce()}):ke()}),M.value&&ce(),o&&Hi(()=>{ke(),Y.length=0}),{result:f,loading:p,networkStatus:m,error:y,start:ce,stop:ke,restart:me,forceDisabled:$e,document:c,variables:d,options:u,query:R,refetch:N,fetchMore:G,subscribeToMore:se,onResult:_.on,onError:b.on}}function p9(t,e,r){const n=hk(t,e,r,!0);function i(o,a,c){return o&&(n.document.value=o),a&&(n.variables.value=a),c&&Object.assign(Rt(n.options)?n.options.value:n.options,c),n.forceDisabled.value?(n.forceDisabled.value=!1,new Promise((u,f)=>{const{off:_}=n.onResult(b=>{b.loading||(u(b.data),_(),y())}),{off:y}=n.onError(b=>{f(b),_(),y()})})):!1}return{...n,load:i}}function h9(t,e={}){const r=Gi(),n=Se(!1);r&&d9(n);const i=Se(null),o=Se(!1),a=vp(),c=vp(),{resolveClient:d}=sh();async function u(f,_={}){let y;typeof t=="function"?y=t():Rt(t)?y=t.value:y=t;let b;typeof e=="function"?b=e():Rt(e)?b=e.value:b=e;const p=d(b.clientId);i.value=null,n.value=!0,o.value=!0;try{const m=await p.mutate({mutation:y,...b,..._,variables:f??b.variables?{...b.variables,...f}:void 0});return n.value=!1,a.trigger(m),m}catch(m){const g=pk(m);if(i.value=g,n.value=!1,c.trigger(g),b.throws==="always"||b.throws!=="never"&&!c.getCount())throw g}return null}return r&&Hi(()=>{n.value=!1}),{mutate:u,loading:n,error:i,called:o,onDone:a.on,onError:c.on}}const vi=Se([]),Yl={initialized:!1,instanceStorage:{}};function m9(t,e){Yl.instanceStorage[t]=e}function v9(t){return Yl.instanceStorage[t]}const Qw=Bt({__name:"ModalContainerItem",props:{id:Number},setup(t){const e=t,r=Se(null),n=Se(),i=o(e.id);function o(a){return vi.value.find(c=>c.id===a)}return Vt(()=>r.value,a=>{m9(e.id,a),setTimeout(()=>{n.value&&n.value.firstChild.show()},0)}),(a,c)=>{var d,u,f;return te(),oe("div",{ref_key:"containerRef",ref:n,style:{position:"relative","z-index":"2"}},[(te(),Hr(Vy((d=fe(i))==null?void 0:d.component),qT((u=fe(i))==null?void 0:u.props.value,{modalId:`_modal_${t.id}`,ref_key:"modalRef",ref:r},PL((f=fe(i))==null?void 0:f.events)),null,16,["modalId"]))],512)}}}),g9={backgroundClose:!0,escClose:!0};class hr extends Error{constructor(r,n=null){super();kr(this,"isModalError",!0);kr(this,"details");this.message=r,this.details=n}static Undefined(r){return new hr(`Modal with id: ${r} not founded. The modal window may have been closed earlier.`)}static UndefinedGuardName(r){return new hr(`Guard's name ${r} is not declaration.`)}static NextReject(r){return new hr(`Guard returned false. Modal navigation was stopped. Modal id ${r}`)}static GuardDeclarationType(r){return new hr("Guard's type should be a function. Provided:",r)}static ConfigurationType(r){return new hr("Configuration type must be an Object. Provided",r)}static ConfigurationUndefinedParam(r,n){return new hr(`In configuration founded unknown parameter: ${r}. Available are ${n.join(", ")} `)}static QueueNoEmpty(){return new hr("Modal's queue is not empty. Probably some modal reject closing by onClose hook.")}static EmptyModalQueue(){return new hr("Modal queue is empty.")}static NotInitialized(){return new hr("Modal Container not found. Put container from vue-modal in App's template.")}static ModalComponentNotProvided(){return new hr("The first parameter(VueComponent) was not specified.")}static DuplicatedRouterIntegration(){return new hr("useModalRouter.init should escaped only once.")}static ModalRouterIntegrationNotInitialized(){return new hr("The integration was not initialized. Please, use useModalRouter.init(router).")}static ModalEventNameMustBeString(r){return new hr(`Event name must be a string. Provided: ${r}`)}}const gp={store:{},add(t,e,r){if(typeof r!="function")throw hr.GuardDeclarationType(r);this.store[t]||(this.store[t]={[e]:[]}),this.store[t][e]||(this.store[t][e]=[]),this.store[t][e].push(r)},get(t,e){return t in this.store?e in this.store[t]?this.store[t][e]:[]:[]},delete(t){t in this.store&&delete this.store[t]}};function mk(t){return t.reduce((e,r)=>e.then(()=>r()),Promise.resolve())}function _9(t,e,r){return()=>new Promise((n,i)=>{const o=(a=!0)=>{a===!1&&i(hr.NextReject(e)),n()};Promise.resolve(t.call(Yl.instanceStorage[e],r)).then(o).catch(a=>i(a))})}function y9(t){const e={backgroundClose:g9.backgroundClose,isRoute:!1};return t.backgroundClose!==void 0&&(e.backgroundClose=t.backgroundClose),t.isRoute&&(e.isRoute=t.isRoute),e}const ld=class ld{constructor(e,r,n){kr(this,"id");kr(this,"events",gi({}));kr(this,"closed");kr(this,"component");kr(this,"props");kr(this,"backgroundClose",!0);kr(this,"isRoute",!1);this.id=ld.modalId++,this.component=e,this.props=Se(r),this.closed=It(()=>!vi.value.includes(this)),e.beforeModalClose&&gp.add(this.id,"close",e.beforeModalClose);const i=y9(n);this.backgroundClose=i.backgroundClose,this.isRoute=i.isRoute}close(){return vk(this.id)}set onclose(e){gp.add(this.id,"close",e)}get instance(){return v9(this.id)}on(e,r){return Array.isArray(this.events[e])||(this.events[e]=[]),this.events[e].push(r),()=>{const n=this.events[e].indexOf(r);n!==-1&&this.events[e].splice(n,1)}}};kr(ld,"modalId",0),kr(ld,"EVENT_PROMPT","vue-modal:____P____R____O____M____P____T");let Rg=ld;function b9(t={}){return Object.assign({background:!1,esc:!1},t)}function x9(t,e,r){if(!Yl.initialized)throw hr.NotInitialized();if(!t)throw hr.ModalComponentNotProvided();const n=new Rg(t,e,r);return vi.value.push(zd(n)),n}function vk(t,e={}){const r=vi.value.findIndex(i=>i.id===t);if(r===-1)return Promise.reject(hr.Undefined(t));const n=gp.get(t,"close").map(i=>_9(i,t,b9(e)));return mk(n).then(()=>{vi.value.splice(r,1),delete Yl.instanceStorage[t],gp.delete(t)})}function gk(t,e={},r={}){return Promise.resolve().then(()=>x9(t,e,r))}function w9(){return mk(vi.value.map(t=>()=>t.close()))}function _k(){if(vi.value.length!==0)return vi.value[vi.value.length-1]}function _p(t,e={},r={}){return w9().then(()=>{if(vi.value.length)throw hr.QueueNoEmpty()}).then(()=>gk(t,e,r))}function ss(){const t=_k();return t?t.close():Promise.resolve()}function E9(){Yl.initialized=!0,document.addEventListener("keyup",t=>{if(t.key==="Escape"||t.code==="Escape"){const e=_k();if(!e)return;vk(e.id,{esc:!0})}})}const T9={setup(){return mn(E9),()=>Ni(FM,{name:"modal-list"},{default:()=>vi.value.map(t=>Ni(Qw,{key:t.id,id:t.id}))})},components:{ContainerModalItem:Qw}};const Lg=typeof window<"u",ka=(t,e=!1)=>e?Symbol.for(t):Symbol(t),k9=(t,e,r)=>C9({l:t,k:e,s:r}),C9=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ir=t=>typeof t=="number"&&isFinite(t),A9=t=>bk(t)==="[object Date]",yp=t=>bk(t)==="[object RegExp]",lh=t=>Tt(t)&&Object.keys(t).length===0,nn=Object.assign;let Kw;const bp=()=>Kw||(Kw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Yw(t){return t.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const S9=Object.prototype.hasOwnProperty;function _b(t,e){return S9.call(t,e)}const wr=Array.isArray,Br=t=>typeof t=="function",Qe=t=>typeof t=="string",nr=t=>typeof t=="boolean",Dt=t=>t!==null&&typeof t=="object",yk=Object.prototype.toString,bk=t=>yk.call(t),Tt=t=>{if(!Dt(t))return!1;const e=Object.getPrototypeOf(t);return e===null||e.constructor===Object},I9=t=>t==null?"":wr(t)||Tt(t)&&t.toString===yk?JSON.stringify(t,null,2):String(t);function $9(t,e=""){return t.reduce((r,n,i)=>i===0?r+n:r+e+n,"")}function yb(t){let e=t;return()=>++e}function O9(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}function P9(t,e,r){return{line:t,column:e,offset:r}}function Mg(t,e,r){const n={start:t,end:e};return r!=null&&(n.source=r),n}const R9=/\{([0-9a-zA-Z]+)\}/g;function L9(t,...e){return e.length===1&&M9(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(R9,(r,n)=>e.hasOwnProperty(n)?e[n]:"")}const xk=Object.assign,Zw=t=>typeof t=="string",M9=t=>t!==null&&typeof t=="object";function wk(t,e=""){return t.reduce((r,n,i)=>i===0?r+n:r+e+n,"")}const tt={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},D9={[tt.EXPECTED_TOKEN]:"Expected token: '{0}'",[tt.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[tt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[tt.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[tt.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[tt.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[tt.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[tt.EMPTY_PLACEHOLDER]:"Empty placeholder",[tt.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[tt.INVALID_LINKED_FORMAT]:"Invalid linked format",[tt.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[tt.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[tt.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[tt.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[tt.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[tt.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Zl(t,e,r={}){const{domain:n,messages:i,args:o}=r,a=L9((i||D9)[t]||"",...o||[]),c=new SyntaxError(String(a));return c.code=t,e&&(c.location=e),c.domain=n,c}function F9(t){throw t}const io=" ",N9="\r",tn=` +`,z9=String.fromCharCode(8232),q9=String.fromCharCode(8233);function B9(t){const e=t;let r=0,n=1,i=1,o=0;const a=L=>e[L]===N9&&e[L+1]===tn,c=L=>e[L]===tn,d=L=>e[L]===q9,u=L=>e[L]===z9,f=L=>a(L)||c(L)||d(L)||u(L),_=()=>r,y=()=>n,b=()=>i,p=()=>o,m=L=>a(L)||d(L)||u(L)?tn:e[L],g=()=>m(r),v=()=>m(r+o);function x(){return o=0,f(r)&&(n++,i=0),a(r)&&r++,r++,i++,e[r]}function E(){return a(r+o)&&o++,o++,e[r+o]}function T(){r=0,n=1,i=1,o=0}function C(L=0){o=L}function A(){const L=r+o;for(;L!==r;)x();o=0}return{index:_,line:y,column:b,peekOffset:p,charAt:m,currentChar:g,currentPeek:v,next:x,peek:E,reset:T,resetPeek:C,skipToPeek:A}}const Vo=void 0,U9=".",Xw="'",V9="tokenizer";function j9(t,e={}){const r=e.location!==!1,n=B9(t),i=()=>n.index(),o=()=>P9(n.line(),n.column(),n.index()),a=o(),c=i(),d={currentType:14,offset:c,startLoc:a,endLoc:a,lastType:14,lastOffset:c,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>d,{onError:f}=e;function _(k,I,N,...G){const Y=u();if(I.column+=N,I.offset+=N,f){const se=r?Mg(Y.startLoc,I):null,ye=Zl(k,se,{domain:V9,args:G});f(ye)}}function y(k,I,N){k.endLoc=o(),k.currentType=I;const G={type:I};return r&&(G.loc=Mg(k.startLoc,k.endLoc)),N!=null&&(G.value=N),G}const b=k=>y(k,14);function p(k,I){return k.currentChar()===I?(k.next(),I):(_(tt.EXPECTED_TOKEN,o(),0,I),"")}function m(k){let I="";for(;k.currentPeek()===io||k.currentPeek()===tn;)I+=k.currentPeek(),k.peek();return I}function g(k){const I=m(k);return k.skipToPeek(),I}function v(k){if(k===Vo)return!1;const I=k.charCodeAt(0);return I>=97&&I<=122||I>=65&&I<=90||I===95}function x(k){if(k===Vo)return!1;const I=k.charCodeAt(0);return I>=48&&I<=57}function E(k,I){const{currentType:N}=I;if(N!==2)return!1;m(k);const G=v(k.currentPeek());return k.resetPeek(),G}function T(k,I){const{currentType:N}=I;if(N!==2)return!1;m(k);const G=k.currentPeek()==="-"?k.peek():k.currentPeek(),Y=x(G);return k.resetPeek(),Y}function C(k,I){const{currentType:N}=I;if(N!==2)return!1;m(k);const G=k.currentPeek()===Xw;return k.resetPeek(),G}function A(k,I){const{currentType:N}=I;if(N!==8)return!1;m(k);const G=k.currentPeek()===".";return k.resetPeek(),G}function L(k,I){const{currentType:N}=I;if(N!==9)return!1;m(k);const G=v(k.currentPeek());return k.resetPeek(),G}function R(k,I){const{currentType:N}=I;if(!(N===8||N===12))return!1;m(k);const G=k.currentPeek()===":";return k.resetPeek(),G}function D(k,I){const{currentType:N}=I;if(N!==10)return!1;const G=()=>{const se=k.currentPeek();return se==="{"?v(k.peek()):se==="@"||se==="%"||se==="|"||se===":"||se==="."||se===io||!se?!1:se===tn?(k.peek(),G()):v(se)},Y=G();return k.resetPeek(),Y}function q(k){m(k);const I=k.currentPeek()==="|";return k.resetPeek(),I}function H(k){const I=m(k),N=k.currentPeek()==="%"&&k.peek()==="{";return k.resetPeek(),{isModulo:N,hasSpace:I.length>0}}function U(k,I=!0){const N=(Y=!1,se="",ye=!1)=>{const X=k.currentPeek();return X==="{"?se==="%"?!1:Y:X==="@"||!X?se==="%"?!0:Y:X==="%"?(k.peek(),N(Y,"%",!0)):X==="|"?se==="%"||ye?!0:!(se===io||se===tn):X===io?(k.peek(),N(!0,io,ye)):X===tn?(k.peek(),N(!0,tn,ye)):!0},G=N();return I&&k.resetPeek(),G}function ce(k,I){const N=k.currentChar();return N===Vo?Vo:I(N)?(k.next(),N):null}function Ae(k){return ce(k,N=>{const G=N.charCodeAt(0);return G>=97&&G<=122||G>=65&&G<=90||G>=48&&G<=57||G===95||G===36})}function Le(k){return ce(k,N=>{const G=N.charCodeAt(0);return G>=48&&G<=57})}function Te(k){return ce(k,N=>{const G=N.charCodeAt(0);return G>=48&&G<=57||G>=65&&G<=70||G>=97&&G<=102})}function Ie(k){let I="",N="";for(;I=Le(k);)N+=I;return N}function Pe(k){g(k);const I=k.currentChar();return I!=="%"&&_(tt.EXPECTED_TOKEN,o(),0,I),k.next(),"%"}function Ce(k){let I="";for(;;){const N=k.currentChar();if(N==="{"||N==="}"||N==="@"||N==="|"||!N)break;if(N==="%")if(U(k))I+=N,k.next();else break;else if(N===io||N===tn)if(U(k))I+=N,k.next();else{if(q(k))break;I+=N,k.next()}else I+=N,k.next()}return I}function de(k){g(k);let I="",N="";for(;I=Ae(k);)N+=I;return k.currentChar()===Vo&&_(tt.UNTERMINATED_CLOSING_BRACE,o(),0),N}function we(k){g(k);let I="";return k.currentChar()==="-"?(k.next(),I+=`-${Ie(k)}`):I+=Ie(k),k.currentChar()===Vo&&_(tt.UNTERMINATED_CLOSING_BRACE,o(),0),I}function ke(k){g(k),p(k,"'");let I="",N="";const G=se=>se!==Xw&&se!==tn;for(;I=ce(k,G);)I==="\\"?N+=Re(k):N+=I;const Y=k.currentChar();return Y===tn||Y===Vo?(_(tt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),Y===tn&&(k.next(),p(k,"'")),N):(p(k,"'"),N)}function Re(k){const I=k.currentChar();switch(I){case"\\":case"'":return k.next(),`\\${I}`;case"u":return He(k,I,4);case"U":return He(k,I,6);default:return _(tt.UNKNOWN_ESCAPE_SEQUENCE,o(),0,I),""}}function He(k,I,N){p(k,I);let G="";for(let Y=0;YY!=="{"&&Y!=="}"&&Y!==io&&Y!==tn;for(;I=ce(k,G);)N+=I;return N}function Ge(k){let I="",N="";for(;I=Ae(k);)N+=I;return N}function J(k){const I=(N=!1,G)=>{const Y=k.currentChar();return Y==="{"||Y==="%"||Y==="@"||Y==="|"||Y==="("||Y===")"||!Y||Y===io?G:Y===tn||Y===U9?(G+=Y,k.next(),I(N,G)):(G+=Y,k.next(),I(!0,G))};return I(!1,"")}function me(k){g(k);const I=p(k,"|");return g(k),I}function ve(k,I){let N=null;switch(k.currentChar()){case"{":return I.braceNest>=1&&_(tt.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),k.next(),N=y(I,2,"{"),g(k),I.braceNest++,N;case"}":return I.braceNest>0&&I.currentType===2&&_(tt.EMPTY_PLACEHOLDER,o(),0),k.next(),N=y(I,3,"}"),I.braceNest--,I.braceNest>0&&g(k),I.inLinked&&I.braceNest===0&&(I.inLinked=!1),N;case"@":return I.braceNest>0&&_(tt.UNTERMINATED_CLOSING_BRACE,o(),0),N=$e(k,I)||b(I),I.braceNest=0,N;default:let Y=!0,se=!0,ye=!0;if(q(k))return I.braceNest>0&&_(tt.UNTERMINATED_CLOSING_BRACE,o(),0),N=y(I,1,me(k)),I.braceNest=0,I.inLinked=!1,N;if(I.braceNest>0&&(I.currentType===5||I.currentType===6||I.currentType===7))return _(tt.UNTERMINATED_CLOSING_BRACE,o(),0),I.braceNest=0,Oe(k,I);if(Y=E(k,I))return N=y(I,5,de(k)),g(k),N;if(se=T(k,I))return N=y(I,6,we(k)),g(k),N;if(ye=C(k,I))return N=y(I,7,ke(k)),g(k),N;if(!Y&&!se&&!ye)return N=y(I,13,ze(k)),_(tt.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,N.value),g(k),N;break}return N}function $e(k,I){const{currentType:N}=I;let G=null;const Y=k.currentChar();switch((N===8||N===9||N===12||N===10)&&(Y===tn||Y===io)&&_(tt.INVALID_LINKED_FORMAT,o(),0),Y){case"@":return k.next(),G=y(I,8,"@"),I.inLinked=!0,G;case".":return g(k),k.next(),y(I,9,".");case":":return g(k),k.next(),y(I,10,":");default:return q(k)?(G=y(I,1,me(k)),I.braceNest=0,I.inLinked=!1,G):A(k,I)||R(k,I)?(g(k),$e(k,I)):L(k,I)?(g(k),y(I,12,Ge(k))):D(k,I)?(g(k),Y==="{"?ve(k,I)||G:y(I,11,J(k))):(N===8&&_(tt.INVALID_LINKED_FORMAT,o(),0),I.braceNest=0,I.inLinked=!1,Oe(k,I))}}function Oe(k,I){let N={type:14};if(I.braceNest>0)return ve(k,I)||b(I);if(I.inLinked)return $e(k,I)||b(I);switch(k.currentChar()){case"{":return ve(k,I)||b(I);case"}":return _(tt.UNBALANCED_CLOSING_BRACE,o(),0),k.next(),y(I,3,"}");case"@":return $e(k,I)||b(I);default:if(q(k))return N=y(I,1,me(k)),I.braceNest=0,I.inLinked=!1,N;const{isModulo:Y,hasSpace:se}=H(k);if(Y)return se?y(I,0,Ce(k)):y(I,4,Pe(k));if(U(k))return y(I,0,Ce(k));break}return N}function M(){const{currentType:k,offset:I,startLoc:N,endLoc:G}=d;return d.lastType=k,d.lastOffset=I,d.lastStartLoc=N,d.lastEndLoc=G,d.offset=i(),d.startLoc=o(),n.currentChar()===Vo?y(d,14):Oe(n,d)}return{nextToken:M,currentOffset:i,currentPosition:o,context:u}}const H9="parser",G9=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function W9(t,e,r){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(e||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function Q9(t={}){const e=t.location!==!1,{onError:r}=t;function n(v,x,E,T,...C){const A=v.currentPosition();if(A.offset+=T,A.column+=T,r){const L=e?Mg(E,A):null,R=Zl(x,L,{domain:H9,args:C});r(R)}}function i(v,x,E){const T={type:v};return e&&(T.start=x,T.end=x,T.loc={start:E,end:E}),T}function o(v,x,E,T){T&&(v.type=T),e&&(v.end=x,v.loc&&(v.loc.end=E))}function a(v,x){const E=v.context(),T=i(3,E.offset,E.startLoc);return T.value=x,o(T,v.currentOffset(),v.currentPosition()),T}function c(v,x){const E=v.context(),{lastOffset:T,lastStartLoc:C}=E,A=i(5,T,C);return A.index=parseInt(x,10),v.nextToken(),o(A,v.currentOffset(),v.currentPosition()),A}function d(v,x){const E=v.context(),{lastOffset:T,lastStartLoc:C}=E,A=i(4,T,C);return A.key=x,v.nextToken(),o(A,v.currentOffset(),v.currentPosition()),A}function u(v,x){const E=v.context(),{lastOffset:T,lastStartLoc:C}=E,A=i(9,T,C);return A.value=x.replace(G9,W9),v.nextToken(),o(A,v.currentOffset(),v.currentPosition()),A}function f(v){const x=v.nextToken(),E=v.context(),{lastOffset:T,lastStartLoc:C}=E,A=i(8,T,C);return x.type!==12?(n(v,tt.UNEXPECTED_EMPTY_LINKED_MODIFIER,E.lastStartLoc,0),A.value="",o(A,T,C),{nextConsumeToken:x,node:A}):(x.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Oi(x)),A.value=x.value||"",o(A,v.currentOffset(),v.currentPosition()),{node:A})}function _(v,x){const E=v.context(),T=i(7,E.offset,E.startLoc);return T.value=x,o(T,v.currentOffset(),v.currentPosition()),T}function y(v){const x=v.context(),E=i(6,x.offset,x.startLoc);let T=v.nextToken();if(T.type===9){const C=f(v);E.modifier=C.node,T=C.nextConsumeToken||v.nextToken()}switch(T.type!==10&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Oi(T)),T=v.nextToken(),T.type===2&&(T=v.nextToken()),T.type){case 11:T.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Oi(T)),E.key=_(v,T.value||"");break;case 5:T.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Oi(T)),E.key=d(v,T.value||"");break;case 6:T.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Oi(T)),E.key=c(v,T.value||"");break;case 7:T.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Oi(T)),E.key=u(v,T.value||"");break;default:n(v,tt.UNEXPECTED_EMPTY_LINKED_KEY,x.lastStartLoc,0);const C=v.context(),A=i(7,C.offset,C.startLoc);return A.value="",o(A,C.offset,C.startLoc),E.key=A,o(E,C.offset,C.startLoc),{nextConsumeToken:T,node:E}}return o(E,v.currentOffset(),v.currentPosition()),{node:E}}function b(v){const x=v.context(),E=x.currentType===1?v.currentOffset():x.offset,T=x.currentType===1?x.endLoc:x.startLoc,C=i(2,E,T);C.items=[];let A=null;do{const D=A||v.nextToken();switch(A=null,D.type){case 0:D.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Oi(D)),C.items.push(a(v,D.value||""));break;case 6:D.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Oi(D)),C.items.push(c(v,D.value||""));break;case 5:D.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Oi(D)),C.items.push(d(v,D.value||""));break;case 7:D.value==null&&n(v,tt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Oi(D)),C.items.push(u(v,D.value||""));break;case 8:const q=y(v);C.items.push(q.node),A=q.nextConsumeToken||null;break}}while(x.currentType!==14&&x.currentType!==1);const L=x.currentType===1?x.lastOffset:v.currentOffset(),R=x.currentType===1?x.lastEndLoc:v.currentPosition();return o(C,L,R),C}function p(v,x,E,T){const C=v.context();let A=T.items.length===0;const L=i(1,x,E);L.cases=[],L.cases.push(T);do{const R=b(v);A||(A=R.items.length===0),L.cases.push(R)}while(C.currentType!==14);return A&&n(v,tt.MUST_HAVE_MESSAGES_IN_PLURAL,E,0),o(L,v.currentOffset(),v.currentPosition()),L}function m(v){const x=v.context(),{offset:E,startLoc:T}=x,C=b(v);return x.currentType===14?C:p(v,E,T,C)}function g(v){const x=j9(v,xk({},t)),E=x.context(),T=i(0,E.offset,E.startLoc);return e&&T.loc&&(T.loc.source=v),T.body=m(x),t.onCacheKey&&(T.cacheKey=t.onCacheKey(v)),E.currentType!==14&&n(x,tt.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,v[E.offset]||""),o(T,x.currentOffset(),x.currentPosition()),T}return{parse:g}}function Oi(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function K9(t,e={}){const r={ast:t,helpers:new Set};return{context:()=>r,helper:o=>(r.helpers.add(o),o)}}function Jw(t,e){for(let r=0;re5(r)),t}function e5(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let r=0;rc;function u(g,v){c.code+=g}function f(g,v=!0){const x=v?i:"";u(o?x+" ".repeat(g):x)}function _(g=!0){const v=++c.indentLevel;g&&f(v)}function y(g=!0){const v=--c.indentLevel;g&&f(v)}function b(){f(c.indentLevel)}return{context:d,push:u,indent:_,deindent:y,newline:b,helper:g=>`_${g}`,needIndent:()=>c.needIndent}}function tz(t,e){const{helper:r}=t;t.push(`${r("linked")}(`),Il(t,e.key),e.modifier?(t.push(", "),Il(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function rz(t,e){const{helper:r,needIndent:n}=t;t.push(`${r("normalize")}([`),t.indent(n());const i=e.items.length;for(let o=0;o1){t.push(`${r("plural")}([`),t.indent(n());const i=e.cases.length;for(let o=0;o{const r=Zw(e.mode)?e.mode:"normal",n=Zw(e.filename)?e.filename:"message.intl",i=!!e.sourceMap,o=e.breakLineCode!=null?e.breakLineCode:r==="arrow"?";":` +`,a=e.needIndent?e.needIndent:r!=="arrow",c=t.helpers||[],d=ez(t,{mode:r,filename:n,sourceMap:i,breakLineCode:o,needIndent:a});d.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),d.indent(a),c.length>0&&(d.push(`const { ${wk(c.map(_=>`${_}: _${_}`),", ")} } = ctx`),d.newline()),d.push("return "),Il(d,t),d.deindent(a),d.push("}"),delete t.helpers;const{code:u,map:f}=d.context();return{ast:t,code:u,map:f?f.toJSON():void 0}};function az(t,e={}){const r=xk({},e),n=!!r.jit,i=!!r.minify,o=r.optimize==null?!0:r.optimize,c=Q9(r).parse(t);return n?(o&&Z9(c),i&&el(c),{ast:c,code:""}):(Y9(c,r),oz(c,r))}function sz(){typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(bp().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(bp().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Ca=[];Ca[0]={w:[0],i:[3,0],"[":[4],o:[7]};Ca[1]={w:[1],".":[2],"[":[4],o:[7]};Ca[2]={w:[2],i:[3,0],0:[3,0]};Ca[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Ca[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Ca[5]={"'":[4,0],o:8,l:[5,0]};Ca[6]={'"':[4,0],o:8,l:[6,0]};const lz=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function cz(t){return lz.test(t)}function dz(t){const e=t.charCodeAt(0),r=t.charCodeAt(t.length-1);return e===r&&(e===34||e===39)?t.slice(1,-1):t}function uz(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function fz(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:cz(e)?dz(e):"*"+e}function pz(t){const e=[];let r=-1,n=0,i=0,o,a,c,d,u,f,_;const y=[];y[0]=()=>{a===void 0?a=c:a+=c},y[1]=()=>{a!==void 0&&(e.push(a),a=void 0)},y[2]=()=>{y[0](),i++},y[3]=()=>{if(i>0)i--,n=4,y[0]();else{if(i=0,a===void 0||(a=fz(a),a===!1))return!1;y[1]()}};function b(){const p=t[r+1];if(n===5&&p==="'"||n===6&&p==='"')return r++,c="\\"+p,y[0](),!0}for(;n!==null;)if(r++,o=t[r],!(o==="\\"&&b())){if(d=uz(o),_=Ca[n],u=_[d]||_.l||8,u===8||(n=u[0],u[1]!==void 0&&(f=y[u[1]],f&&(c=o,f()===!1))))return;if(n===7)return e}}const t5=new Map;function hz(t,e){return Dt(t)?t[e]:null}function mz(t,e){if(!Dt(t))return null;let r=t5.get(e);if(r||(r=pz(e),r&&t5.set(e,r)),!r)return null;const n=r.length;let i=t,o=0;for(;ot,gz=t=>"",_z="text",yz=t=>t.length===0?"":$9(t),bz=I9;function r5(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function xz(t){const e=Ir(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(Ir(t.named.count)||Ir(t.named.n))?Ir(t.named.count)?t.named.count:Ir(t.named.n)?t.named.n:e:e}function wz(t,e){e.count||(e.count=t),e.n||(e.n=t)}function Ez(t={}){const e=t.locale,r=xz(t),n=Dt(t.pluralRules)&&Qe(e)&&Br(t.pluralRules[e])?t.pluralRules[e]:r5,i=Dt(t.pluralRules)&&Qe(e)&&Br(t.pluralRules[e])?r5:void 0,o=v=>v[n(r,v.length,i)],a=t.list||[],c=v=>a[v],d=t.named||{};Ir(t.pluralIndex)&&wz(r,d);const u=v=>d[v];function f(v){const x=Br(t.messages)?t.messages(v):Dt(t.messages)?t.messages[v]:!1;return x||(t.parent?t.parent.message(v):gz)}const _=v=>t.modifiers?t.modifiers[v]:vz,y=Tt(t.processor)&&Br(t.processor.normalize)?t.processor.normalize:yz,b=Tt(t.processor)&&Br(t.processor.interpolate)?t.processor.interpolate:bz,p=Tt(t.processor)&&Qe(t.processor.type)?t.processor.type:_z,g={list:c,named:u,plural:o,linked:(v,...x)=>{const[E,T]=x;let C="text",A="";x.length===1?Dt(E)?(A=E.modifier||A,C=E.type||C):Qe(E)&&(A=E||A):x.length===2&&(Qe(E)&&(A=E||A),Qe(T)&&(C=T||C));const L=f(v)(g),R=C==="vnode"&&wr(L)&&A?L[0]:L;return A?_(A)(R,C):R},message:f,type:p,interpolate:b,normalize:y,values:nn({},a,d)};return g}const Tz={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8};function kz(t,e,r){return[...new Set([r,...wr(e)?e:Dt(e)?Object.keys(e):Qe(e)?[e]:[r]])]}function Ek(t,e,r){const n=Qe(r)?r:xb,i=t;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(n);if(!o){o=[];let a=[r];for(;wr(a);)a=n5(o,a,e);const c=wr(e)||!Tt(e)?e:e.default?e.default:null;a=Qe(c)?[c]:c,wr(a)&&n5(o,a,!1),i.__localeChainCache.set(n,o)}return o}function n5(t,e,r){let n=!0;for(let i=0;i`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function Iz(){return{upper:(t,e)=>e==="text"&&Qe(t)?t.toUpperCase():e==="vnode"&&Dt(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&Qe(t)?t.toLowerCase():e==="vnode"&&Dt(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&Qe(t)?o5(t):e==="vnode"&&Dt(t)&&"__v_isVNode"in t?o5(t.children):t}}let Tk;function a5(t){Tk=t}let kk;function $z(t){kk=t}let Ck;function Oz(t){Ck=t}let Ak=null;const s5=t=>{Ak=t},Pz=()=>Ak;let l5=0;function Rz(t={}){const e=Br(t.onWarn)?t.onWarn:O9,r=Qe(t.version)?t.version:Sz,n=Qe(t.locale)?t.locale:xb,i=wr(t.fallbackLocale)||Tt(t.fallbackLocale)||Qe(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:n,o=Tt(t.messages)?t.messages:{[n]:{}},a=Tt(t.datetimeFormats)?t.datetimeFormats:{[n]:{}},c=Tt(t.numberFormats)?t.numberFormats:{[n]:{}},d=nn({},t.modifiers||{},Iz()),u=t.pluralRules||{},f=Br(t.missing)?t.missing:null,_=nr(t.missingWarn)||yp(t.missingWarn)?t.missingWarn:!0,y=nr(t.fallbackWarn)||yp(t.fallbackWarn)?t.fallbackWarn:!0,b=!!t.fallbackFormat,p=!!t.unresolving,m=Br(t.postTranslation)?t.postTranslation:null,g=Tt(t.processor)?t.processor:null,v=nr(t.warnHtmlMessage)?t.warnHtmlMessage:!0,x=!!t.escapeParameter,E=Br(t.messageCompiler)?t.messageCompiler:Tk,T=Br(t.messageResolver)?t.messageResolver:kk||hz,C=Br(t.localeFallbacker)?t.localeFallbacker:Ck||kz,A=Dt(t.fallbackContext)?t.fallbackContext:void 0,L=t,R=Dt(L.__datetimeFormatters)?L.__datetimeFormatters:new Map,D=Dt(L.__numberFormatters)?L.__numberFormatters:new Map,q=Dt(L.__meta)?L.__meta:{};l5++;const H={version:r,cid:l5,locale:n,fallbackLocale:i,messages:o,modifiers:d,pluralRules:u,missing:f,missingWarn:_,fallbackWarn:y,fallbackFormat:b,unresolving:p,postTranslation:m,processor:g,warnHtmlMessage:v,escapeParameter:x,messageCompiler:E,messageResolver:T,localeFallbacker:C,fallbackContext:A,onWarn:e,__meta:q};return H.datetimeFormats=a,H.numberFormats=c,H.__datetimeFormatters=R,H.__numberFormatters=D,H}function wb(t,e,r,n,i){const{missing:o,onWarn:a}=t;if(o!==null){const c=o(t,r,e,i);return Qe(c)?c:e}else return e}function Rc(t,e,r){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,r,e)}function wv(t){return r=>Lz(r,t)}function Lz(t,e){const r=e.b||e.body;if((r.t||r.type)===1){const n=r,i=n.c||n.cases;return t.plural(i.reduce((o,a)=>[...o,c5(t,a)],[]))}else return c5(t,r)}function c5(t,e){const r=e.s||e.static;if(r)return t.type==="text"?r:t.normalize([r]);{const n=(e.i||e.items).reduce((i,o)=>[...i,Dg(t,o)],[]);return t.normalize(n)}}function Dg(t,e){const r=e.t||e.type;switch(r){case 3:const n=e;return n.v||n.value;case 9:const i=e;return i.v||i.value;case 4:const o=e;return t.interpolate(t.named(o.k||o.key));case 5:const a=e;return t.interpolate(t.list(a.i||a.index));case 6:const c=e,d=c.m||c.modifier;return t.linked(Dg(t,c.k||c.key),d?Dg(t,d):void 0,t.type);case 7:const u=e;return u.v||u.value;case 8:const f=e;return f.v||f.value;default:throw new Error(`unhandled node type on format message part: ${r}`)}}const Sk=tt.__EXTEND_POINT__,If=yb(Sk),na={INVALID_ARGUMENT:Sk,INVALID_DATE_ARGUMENT:If(),INVALID_ISO_DATE_ARGUMENT:If(),NOT_SUPPORT_NON_STRING_MESSAGE:If(),__EXTEND_POINT__:If()};function es(t){return Zl(t,null,void 0)}const Ik=t=>t;let cl=Object.create(null);const kd=t=>Dt(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t);function $k(t,e={}){let r=!1;const n=e.onError||F9;return e.onError=i=>{r=!0,n(i)},{...az(t,e),detectError:r}}const Mz=(t,e)=>{if(!Qe(t))throw es(na.NOT_SUPPORT_NON_STRING_MESSAGE);{nr(e.warnHtmlMessage)&&e.warnHtmlMessage;const n=(e.onCacheKey||Ik)(t),i=cl[n];if(i)return i;const{code:o,detectError:a}=$k(t,e),c=new Function(`return ${o}`)();return a?c:cl[n]=c}};function Dz(t,e){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&Qe(t)){nr(e.warnHtmlMessage)&&e.warnHtmlMessage;const n=(e.onCacheKey||Ik)(t),i=cl[n];if(i)return i;const{ast:o,detectError:a}=$k(t,{...e,location:!1,jit:!0}),c=wv(o);return a?c:cl[n]=c}else{const r=t.cacheKey;if(r){const n=cl[r];return n||(cl[r]=wv(t))}else return wv(t)}}const d5=()=>"",ca=t=>Br(t);function u5(t,...e){const{fallbackFormat:r,postTranslation:n,unresolving:i,messageCompiler:o,fallbackLocale:a,messages:c}=t,[d,u]=Fg(...e),f=nr(u.missingWarn)?u.missingWarn:t.missingWarn,_=nr(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,y=nr(u.escapeParameter)?u.escapeParameter:t.escapeParameter,b=!!u.resolvedMessage,p=Qe(u.default)||nr(u.default)?nr(u.default)?o?d:()=>d:u.default:r?o?d:()=>d:"",m=r||p!=="",g=Qe(u.locale)?u.locale:t.locale;y&&Fz(u);let[v,x,E]=b?[d,g,c[g]||{}]:Ok(t,d,g,a,_,f),T=v,C=d;if(!b&&!(Qe(T)||kd(T)||ca(T))&&m&&(T=p,C=T),!b&&(!(Qe(T)||kd(T)||ca(T))||!Qe(x)))return i?ch:d;let A=!1;const L=()=>{A=!0},R=ca(T)?T:Pk(t,d,x,T,C,L);if(A)return T;const D=qz(t,x,E,u),q=Ez(D),H=Nz(t,R,q);return n?n(H,d):H}function Fz(t){wr(t.list)?t.list=t.list.map(e=>Qe(e)?Yw(e):e):Dt(t.named)&&Object.keys(t.named).forEach(e=>{Qe(t.named[e])&&(t.named[e]=Yw(t.named[e]))})}function Ok(t,e,r,n,i,o){const{messages:a,onWarn:c,messageResolver:d,localeFallbacker:u}=t,f=u(t,n,r);let _={},y,b=null;const p="translate";for(let m=0;mn;return u.locale=r,u.key=e,u}const d=a(n,zz(t,r,i,n,c,o));return d.locale=r,d.key=e,d.source=n,d}function Nz(t,e,r){return e(r)}function Fg(...t){const[e,r,n]=t,i={};if(!Qe(e)&&!Ir(e)&&!ca(e)&&!kd(e))throw es(na.INVALID_ARGUMENT);const o=Ir(e)?String(e):(ca(e),e);return Ir(r)?i.plural=r:Qe(r)?i.default=r:Tt(r)&&!lh(r)?i.named=r:wr(r)&&(i.list=r),Ir(n)?i.plural=n:Qe(n)?i.default=n:Tt(n)&&nn(i,n),[o,i]}function zz(t,e,r,n,i,o){return{locale:e,key:r,warnHtmlMessage:i,onError:a=>{throw o&&o(a),a},onCacheKey:a=>k9(e,r,a)}}function qz(t,e,r,n){const{modifiers:i,pluralRules:o,messageResolver:a,fallbackLocale:c,fallbackWarn:d,missingWarn:u,fallbackContext:f}=t,y={locale:e,modifiers:i,pluralRules:o,messages:b=>{let p=a(r,b);if(p==null&&f){const[,,m]=Ok(f,b,e,c,d,u);p=a(m,b)}if(Qe(p)||kd(p)){let m=!1;const v=Pk(t,b,e,p,b,()=>{m=!0});return m?d5:v}else return ca(p)?p:d5}};return t.processor&&(y.processor=t.processor),n.list&&(y.list=n.list),n.named&&(y.named=n.named),Ir(n.plural)&&(y.pluralIndex=n.plural),y}function f5(t,...e){const{datetimeFormats:r,unresolving:n,fallbackLocale:i,onWarn:o,localeFallbacker:a}=t,{__datetimeFormatters:c}=t,[d,u,f,_]=Ng(...e),y=nr(f.missingWarn)?f.missingWarn:t.missingWarn;nr(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const b=!!f.part,p=Qe(f.locale)?f.locale:t.locale,m=a(t,i,p);if(!Qe(d)||d==="")return new Intl.DateTimeFormat(p,_).format(u);let g={},v,x=null;const E="datetime format";for(let A=0;A{Rk.includes(d)?a[d]=r[d]:o[d]=r[d]}),Qe(n)?o.locale=n:Tt(n)&&(a=n),Tt(i)&&(a=i),[o.key||"",c,o,a]}function p5(t,e,r){const n=t;for(const i in r){const o=`${e}__${i}`;n.__datetimeFormatters.has(o)&&n.__datetimeFormatters.delete(o)}}function h5(t,...e){const{numberFormats:r,unresolving:n,fallbackLocale:i,onWarn:o,localeFallbacker:a}=t,{__numberFormatters:c}=t,[d,u,f,_]=zg(...e),y=nr(f.missingWarn)?f.missingWarn:t.missingWarn;nr(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const b=!!f.part,p=Qe(f.locale)?f.locale:t.locale,m=a(t,i,p);if(!Qe(d)||d==="")return new Intl.NumberFormat(p,_).format(u);let g={},v,x=null;const E="number format";for(let A=0;A{Lk.includes(d)?a[d]=r[d]:o[d]=r[d]}),Qe(n)?o.locale=n:Tt(n)&&(a=n),Tt(i)&&(a=i),[o.key||"",c,o,a]}function m5(t,e,r){const n=t;for(const i in r){const o=`${e}__${i}`;n.__numberFormatters.has(o)&&n.__numberFormatters.delete(o)}}sz();const Bz="9.4.1";function Uz(){typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(bp().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(bp().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Mk=Tz.__EXTEND_POINT__,jo=yb(Mk);jo(),jo(),jo(),jo(),jo(),jo(),jo(),jo();const Dk=na.__EXTEND_POINT__,dn=yb(Dk),$n={UNEXPECTED_RETURN_TYPE:Dk,INVALID_ARGUMENT:dn(),MUST_BE_CALL_SETUP_TOP:dn(),NOT_INSTALLED:dn(),NOT_AVAILABLE_IN_LEGACY_MODE:dn(),REQUIRED_VALUE:dn(),INVALID_VALUE:dn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:dn(),NOT_INSTALLED_WITH_PROVIDE:dn(),UNEXPECTED_ERROR:dn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:dn(),BRIDGE_SUPPORT_VUE_2_ONLY:dn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:dn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:dn(),__EXTEND_POINT__:dn()};function Kn(t,...e){return Zl(t,null,void 0)}const qg=ka("__translateVNode"),Bg=ka("__datetimeParts"),Ug=ka("__numberParts"),Vz=ka("__setPluralRules"),jz=ka("__injectWithOption"),Vg=ka("__dispose");function jg(t){if(!Dt(t))return t;for(const e in t)if(_b(t,e))if(!e.includes("."))Dt(t[e])&&jg(t[e]);else{const r=e.split("."),n=r.length-1;let i=t,o=!1;for(let a=0;a{if("locale"in c&&"resource"in c){const{locale:d,resource:u}=c;d?(a[d]=a[d]||{},Zc(u,a[d])):Zc(u,a)}else Qe(c)&&Zc(JSON.parse(c),a)}),i==null&&o)for(const c in a)_b(a,c)&&jg(a[c]);return a}const $f=t=>!Dt(t)||wr(t);function Zc(t,e){if($f(t)||$f(e))throw Kn($n.INVALID_VALUE);for(const r in t)_b(t,r)&&($f(t[r])||$f(e[r])?e[r]=t[r]:Zc(t[r],e[r]))}function Hz(t){return t.type}function Gz(t,e,r){let n=Dt(e.messages)?e.messages:{};"__i18nGlobal"in r&&(n=Fk(t.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const i=Object.keys(n);i.length&&i.forEach(o=>{t.mergeLocaleMessage(o,n[o])});{if(Dt(e.datetimeFormats)){const o=Object.keys(e.datetimeFormats);o.length&&o.forEach(a=>{t.mergeDateTimeFormat(a,e.datetimeFormats[a])})}if(Dt(e.numberFormats)){const o=Object.keys(e.numberFormats);o.length&&o.forEach(a=>{t.mergeNumberFormat(a,e.numberFormats[a])})}}}function v5(t){return qe(qd,null,t,0)}let g5=0;function _5(t){return(e,r,n,i)=>t(r,n,Gi()||void 0,i)}function Nk(t={},e){const{__root:r,__injectWithOption:n}=t,i=r===void 0;let o=nr(t.inheritLocale)?t.inheritLocale:!0;const a=Se(r&&o?r.locale.value:Qe(t.locale)?t.locale:xb),c=Se(r&&o?r.fallbackLocale.value:Qe(t.fallbackLocale)||wr(t.fallbackLocale)||Tt(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:a.value),d=Se(Fk(a.value,t)),u=Se(Tt(t.datetimeFormats)?t.datetimeFormats:{[a.value]:{}}),f=Se(Tt(t.numberFormats)?t.numberFormats:{[a.value]:{}});let _=r?r.missingWarn:nr(t.missingWarn)||yp(t.missingWarn)?t.missingWarn:!0,y=r?r.fallbackWarn:nr(t.fallbackWarn)||yp(t.fallbackWarn)?t.fallbackWarn:!0,b=r?r.fallbackRoot:nr(t.fallbackRoot)?t.fallbackRoot:!0,p=!!t.fallbackFormat,m=Br(t.missing)?t.missing:null,g=Br(t.missing)?_5(t.missing):null,v=Br(t.postTranslation)?t.postTranslation:null,x=r?r.warnHtmlMessage:nr(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter;const T=r?r.modifiers:Tt(t.modifiers)?t.modifiers:{};let C=t.pluralRules||r&&r.pluralRules,A;A=(()=>{i&&s5(null);const j={version:Bz,locale:a.value,fallbackLocale:c.value,messages:d.value,modifiers:T,pluralRules:C,missing:g===null?void 0:g,missingWarn:_,fallbackWarn:y,fallbackFormat:p,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:x,escapeParameter:E,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};j.datetimeFormats=u.value,j.numberFormats=f.value,j.__datetimeFormatters=Tt(A)?A.__datetimeFormatters:void 0,j.__numberFormatters=Tt(A)?A.__numberFormatters:void 0;const z=Rz(j);return i&&s5(z),z})(),Rc(A,a.value,c.value);function R(){return[a.value,c.value,d.value,u.value,f.value]}const D=It({get:()=>a.value,set:j=>{a.value=j,A.locale=a.value}}),q=It({get:()=>c.value,set:j=>{c.value=j,A.fallbackLocale=c.value,Rc(A,a.value,j)}}),H=It(()=>d.value),U=It(()=>u.value),ce=It(()=>f.value);function Ae(){return Br(v)?v:null}function Le(j){v=j,A.postTranslation=j}function Te(){return m}function Ie(j){j!==null&&(g=_5(j)),m=j,A.missing=g}const Pe=(j,z,ie,be,Ne,Ue)=>{R();let dt;try{i||(A.fallbackContext=r?Pz():void 0),dt=j(A)}finally{i||(A.fallbackContext=void 0)}if(Ir(dt)&&dt===ch){const[Wt,gr]=z();return r&&b?be(r):Ne(Wt)}else{if(Ue(dt))return dt;throw Kn($n.UNEXPECTED_RETURN_TYPE)}};function Ce(...j){return Pe(z=>Reflect.apply(u5,null,[z,...j]),()=>Fg(...j),"translate",z=>Reflect.apply(z.t,z,[...j]),z=>z,z=>Qe(z))}function de(...j){const[z,ie,be]=j;if(be&&!Dt(be))throw Kn($n.INVALID_ARGUMENT);return Ce(z,ie,nn({resolvedMessage:!0},be||{}))}function we(...j){return Pe(z=>Reflect.apply(f5,null,[z,...j]),()=>Ng(...j),"datetime format",z=>Reflect.apply(z.d,z,[...j]),()=>i5,z=>Qe(z))}function ke(...j){return Pe(z=>Reflect.apply(h5,null,[z,...j]),()=>zg(...j),"number format",z=>Reflect.apply(z.n,z,[...j]),()=>i5,z=>Qe(z))}function Re(j){return j.map(z=>Qe(z)||Ir(z)||nr(z)?v5(String(z)):z)}const ze={normalize:Re,interpolate:j=>j,type:"vnode"};function Ge(...j){return Pe(z=>{let ie;const be=z;try{be.processor=ze,ie=Reflect.apply(u5,null,[be,...j])}finally{be.processor=null}return ie},()=>Fg(...j),"translate",z=>z[qg](...j),z=>[v5(z)],z=>wr(z))}function J(...j){return Pe(z=>Reflect.apply(h5,null,[z,...j]),()=>zg(...j),"number format",z=>z[Ug](...j),()=>[],z=>Qe(z)||wr(z))}function me(...j){return Pe(z=>Reflect.apply(f5,null,[z,...j]),()=>Ng(...j),"datetime format",z=>z[Bg](...j),()=>[],z=>Qe(z)||wr(z))}function ve(j){C=j,A.pluralRules=C}function $e(j,z){const ie=Qe(z)?z:a.value,be=k(ie);return A.messageResolver(be,j)!==null}function Oe(j){let z=null;const ie=Ek(A,c.value,a.value);for(let be=0;be{o&&(a.value=j,A.locale=j,Rc(A,a.value,c.value))}),Vt(r.fallbackLocale,j=>{o&&(c.value=j,A.fallbackLocale=j,Rc(A,a.value,c.value))}));const pe={id:g5,locale:D,fallbackLocale:q,get inheritLocale(){return o},set inheritLocale(j){o=j,j&&r&&(a.value=r.locale.value,c.value=r.fallbackLocale.value,Rc(A,a.value,c.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:H,get modifiers(){return T},get pluralRules(){return C||{}},get isGlobal(){return i},get missingWarn(){return _},set missingWarn(j){_=j,A.missingWarn=_},get fallbackWarn(){return y},set fallbackWarn(j){y=j,A.fallbackWarn=y},get fallbackRoot(){return b},set fallbackRoot(j){b=j},get fallbackFormat(){return p},set fallbackFormat(j){p=j,A.fallbackFormat=p},get warnHtmlMessage(){return x},set warnHtmlMessage(j){x=j,A.warnHtmlMessage=j},get escapeParameter(){return E},set escapeParameter(j){E=j,A.escapeParameter=j},t:Ce,getLocaleMessage:k,setLocaleMessage:I,mergeLocaleMessage:N,getPostTranslationHandler:Ae,setPostTranslationHandler:Le,getMissingHandler:Te,setMissingHandler:Ie,[Vz]:ve};return pe.datetimeFormats=U,pe.numberFormats=ce,pe.rt=de,pe.te=$e,pe.tm=M,pe.d=we,pe.n=ke,pe.getDateTimeFormat=G,pe.setDateTimeFormat=Y,pe.mergeDateTimeFormat=se,pe.getNumberFormat=ye,pe.setNumberFormat=X,pe.mergeNumberFormat=ee,pe[jz]=n,pe[qg]=Ge,pe[Bg]=me,pe[Ug]=J,pe}const Eb={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function Wz({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((n,i)=>[...n,...i.type===St?i.children:[i]],[]):e.reduce((r,n)=>{const i=t[n];return i&&(r[n]=i()),r},{})}function zk(t){return St}const Qz=Bt({name:"i18n-t",props:nn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Ir(t)||!isNaN(t)}},Eb),setup(t,e){const{slots:r,attrs:n}=e,i=t.i18n||On({useScope:t.scope,__useComponent:!0});return()=>{const o=Object.keys(r).filter(_=>_!=="_"),a={};t.locale&&(a.locale=t.locale),t.plural!==void 0&&(a.plural=Qe(t.plural)?+t.plural:t.plural);const c=Wz(e,o),d=i[qg](t.keypath,c,a),u=nn({},n),f=Qe(t.tag)||Dt(t.tag)?t.tag:zk();return Ni(f,u,d)}}}),y5=Qz;function Kz(t){return wr(t)&&!Qe(t[0])}function qk(t,e,r,n){const{slots:i,attrs:o}=e;return()=>{const a={part:!0};let c={};t.locale&&(a.locale=t.locale),Qe(t.format)?a.key=t.format:Dt(t.format)&&(Qe(t.format.key)&&(a.key=t.format.key),c=Object.keys(t.format).reduce((y,b)=>r.includes(b)?nn({},y,{[b]:t.format[b]}):y,{}));const d=n(t.value,a,c);let u=[a.key];wr(d)?u=d.map((y,b)=>{const p=i[y.type],m=p?p({[y.type]:y.value,index:b,parts:d}):[y.value];return Kz(m)&&(m[0].key=`${y.type}-${b}`),m}):Qe(d)&&(u=[d]);const f=nn({},o),_=Qe(t.tag)||Dt(t.tag)?t.tag:zk();return Ni(_,f,u)}}const Yz=Bt({name:"i18n-n",props:nn({value:{type:Number,required:!0},format:{type:[String,Object]}},Eb),setup(t,e){const r=t.i18n||On({useScope:"parent",__useComponent:!0});return qk(t,e,Lk,(...n)=>r[Ug](...n))}}),b5=Yz,Zz=Bt({name:"i18n-d",props:nn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Eb),setup(t,e){const r=t.i18n||On({useScope:"parent",__useComponent:!0});return qk(t,e,Rk,(...n)=>r[Bg](...n))}}),x5=Zz;function Xz(t,e){const r=t;if(t.mode==="composition")return r.__getInstance(e)||t.global;{const n=r.__getInstance(e);return n!=null?n.__composer:t.global.__composer}}function Jz(t){const e=a=>{const{instance:c,modifiers:d,value:u}=a;if(!c||!c.$)throw Kn($n.UNEXPECTED_ERROR);const f=Xz(t,c.$),_=w5(u);return[Reflect.apply(f.t,f,[...E5(_)]),f]};return{created:(a,c)=>{const[d,u]=e(c);Lg&&t.global===u&&(a.__i18nWatcher=Vt(u.locale,()=>{c.instance&&c.instance.$forceUpdate()})),a.__composer=u,a.textContent=d},unmounted:a=>{Lg&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:c})=>{if(a.__composer){const d=a.__composer,u=w5(c);a.textContent=Reflect.apply(d.t,d,[...E5(u)])}},getSSRProps:a=>{const[c]=e(a);return{textContent:c}}}}function w5(t){if(Qe(t))return{path:t};if(Tt(t)){if(!("path"in t))throw Kn($n.REQUIRED_VALUE,"path");return t}else throw Kn($n.INVALID_VALUE)}function E5(t){const{path:e,locale:r,args:n,choice:i,plural:o}=t,a={},c=n||{};return Qe(r)&&(a.locale=r),Ir(i)&&(a.plural=i),Ir(o)&&(a.plural=o),[e,c,a]}function eq(t,e,...r){const n=Tt(r[0])?r[0]:{},i=!!n.useI18nComponentName;(nr(n.globalInstall)?n.globalInstall:!0)&&([i?"i18n":y5.name,"I18nT"].forEach(a=>t.component(a,y5)),[b5.name,"I18nN"].forEach(a=>t.component(a,b5)),[x5.name,"I18nD"].forEach(a=>t.component(a,x5))),t.directive("t",Jz(e))}const tq=ka("global-vue-i18n");function rq(t={},e){const r=nr(t.globalInjection)?t.globalInjection:!0,n=!0,i=new Map,[o,a]=nq(t),c=ka("");function d(_){return i.get(_)||null}function u(_,y){i.set(_,y)}function f(_){i.delete(_)}{const _={get mode(){return"composition"},get allowComposition(){return n},async install(y,...b){if(y.__VUE_I18N_SYMBOL__=c,y.provide(y.__VUE_I18N_SYMBOL__,_),Tt(b[0])){const g=b[0];_.__composerExtend=g.__composerExtend,_.__vueI18nExtend=g.__vueI18nExtend}let p=null;r&&(p=uq(y,_.global)),eq(y,_,...b);const m=y.unmount;y.unmount=()=>{p&&p(),_.dispose(),m()}},get global(){return a},dispose(){o.stop()},__instances:i,__getInstance:d,__setInstance:u,__deleteInstance:f};return _}}function On(t={}){const e=Gi();if(e==null)throw Kn($n.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Kn($n.NOT_INSTALLED);const r=iq(e),n=aq(r),i=Hz(e),o=oq(t,i);if(o==="global")return Gz(n,t,i),n;if(o==="parent"){let d=sq(r,e,t.__useComponent);return d==null&&(d=n),d}const a=r;let c=a.__getInstance(e);if(c==null){const d=nn({},t);"__i18n"in i&&(d.__i18n=i.__i18n),n&&(d.__root=n),c=Nk(d),a.__composerExtend&&(c[Vg]=a.__composerExtend(c)),cq(a,e,c),a.__setInstance(e,c)}return c}function nq(t,e,r){const n=Iy();{const i=n.run(()=>Nk(t));if(i==null)throw Kn($n.UNEXPECTED_ERROR);return[n,i]}}function iq(t){{const e=rn(t.isCE?tq:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Kn(t.isCE?$n.NOT_INSTALLED_WITH_PROVIDE:$n.UNEXPECTED_ERROR);return e}}function oq(t,e){return lh(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function aq(t){return t.mode==="composition"?t.global:t.global.__composer}function sq(t,e,r=!1){let n=null;const i=e.root;let o=lq(e,r);for(;o!=null;){const a=t;if(t.mode==="composition"&&(n=a.__getInstance(o)),n!=null||i===o)break;o=o.parent}return n}function lq(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function cq(t,e,r){mn(()=>{},e),Wl(()=>{const n=r;t.__deleteInstance(e);const i=n[Vg];i&&(i(),delete n[Vg])},e)}const dq=["locale","fallbackLocale","availableLocales"],T5=["t","rt","d","n","tm","te"];function uq(t,e){const r=Object.create(null);return dq.forEach(i=>{const o=Object.getOwnPropertyDescriptor(e,i);if(!o)throw Kn($n.UNEXPECTED_ERROR);const a=Rt(o.value)?{get(){return o.value.value},set(c){o.value.value=c}}:{get(){return o.get&&o.get()}};Object.defineProperty(r,i,a)}),t.config.globalProperties.$i18n=r,T5.forEach(i=>{const o=Object.getOwnPropertyDescriptor(e,i);if(!o||!o.value)throw Kn($n.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${i}`,o)}),()=>{delete t.config.globalProperties.$i18n,T5.forEach(i=>{delete t.config.globalProperties[`$${i}`]})}}Uz();__INTLIFY_JIT_COMPILATION__?a5(Dz):a5(Mz);$z(mz);Oz(Ek);function fq(t){return{all:t=t||new Map,on:function(e,r){var n=t.get(e);n?n.push(r):t.set(e,[r])},off:function(e,r){var n=t.get(e);n&&(r?n.splice(n.indexOf(r)>>>0,1):t.set(e,[]))},emit:function(e,r){var n=t.get(e);n&&n.slice().map(function(i){i(r)}),(n=t.get("*"))&&n.slice().map(function(i){i(e,r)})}}}const pt=fq();class pq{constructor(e,r){kr(this,"startedAt");kr(this,"callback");kr(this,"delay");kr(this,"timer");this.startedAt=Date.now(),this.callback=e,this.delay=r,this.timer=setTimeout(e,r)}pause(){this.stop(),this.delay-=Date.now()-this.startedAt}resume(){this.stop(),this.startedAt=Date.now(),this.timer=setTimeout(this.callback,this.delay)}stop(){clearTimeout(this.timer)}}const hq={key:0,class:"toast-container"},mq=Bt({__name:"Toaster",props:{message:{type:String,required:!0},type:{type:String,default:""},duration:{type:[Number,Boolean],default:5e3},onClick:{type:Function,default:()=>{}}},setup(t){const e=t,r=Se(!0),n=e.duration!==!1?new pq(c,e.duration):null;function i(){e.onClick.apply(null,arguments),c()}function o(d){n&&(d?n.pause():n.resume())}function a(){n&&n.stop()}function c(){a(),r.value=!1}return(d,u)=>(te(),Hr(Qy,{to:"body"},[r.value?(te(),oe("div",hq,[V("div",{class:jn(["v-toast",t.type]),onMouseover:u[0]||(u[0]=f=>o(!0)),onMouseleave:u[1]||(u[1]=f=>o(!1)),onClick:i,role:"alert"},De(t.message),35)])):yt("",!0)]))}}),go=(t,e="")=>{sg(Ni(mq,{message:t,type:e}),document.createElement("div"))};function Bk(){return window.location.host}function vq(){return{"Content-Type":"multipart/form-data","c-id":localStorage.getItem("client_id")??""}}function gq(){return`${window.location.protocol==="http:"?"ws":"wss"}://${Bk()}`}function $l(){return`${window.location.protocol}//${Bk()}`}const Ev="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",_q=()=>{const t=crypto.getRandomValues(new Uint8Array(16));t[6]=t[6]&15|64,t[8]=t[8]&63|128;const e=yq(t).toLowerCase();return`${e.substring(0,8)}-${e.substring(8,12)}-${e.substring(12,16)}-${e.substring(16,20)}-${e.substring(20)}`},Hg=()=>{const t=wq("0123456789abcdef",Ev,_q().toLowerCase().replace(/-/g,"")),e=Math.ceil(Math.log(2**128)/Math.log(Ev.length));return t.padStart(e,Ev[0])},yq=t=>[...t].map(e=>e.toString(16).padStart(2,"0")).join(""),bq=t=>{const e=new Uint8Array(t.length);for(let r=0;r/[\u3400-\u9FBF]/.test(t);function Gg(t){return t?btoa(encodeURIComponent(t)):""}function xq(t){try{return decodeURIComponent(atob(t))}catch{return t}}function wq(t,e,r){let n,i,o,a=[],c=t.length,d=e.length,u=r.length,f="";if(t===e)return r;for(n=0;n=d?(a[o++]=parseInt((i/d).toString(),10),i=i%d):o>0&&(a[o++]=0);u=o,f=e.slice(i,i+1).concat(f)}while(o!==0);return f}const Eq=/(\b(((https?|ftp):\/\/)|www.)[A-Z0-9+&@#\/%?=~_|!:,.;-]*[-A-Z0-9+&@#\/%=~_|])/gim,Tq=/(\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,6})/gim;function kq(t){let e=Cq(t);return e=e.replace(Eq,'$1'),e=e.replace(Tq,'$1'),e.replace(/\n\r?/g,"
")}function Cq(t){return t.replace(/[\u00A0-\u9999<>&'"]/gim,function(e){return"&#"+e.charCodeAt(0)+";"})}var fo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tb(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Aq(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var Uk={exports:{}};const Sq={},Iq=Object.freeze(Object.defineProperty({__proto__:null,default:Sq},Symbol.toStringTag,{value:"Module"})),$q=Aq(Iq);(function(t){var e={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(p){this.toString=function(){return"CORRUPT: "+this.message},this.message=p},invalid:function(p){this.toString=function(){return"INVALID: "+this.message},this.message=p},bug:function(p){this.toString=function(){return"BUG: "+this.message},this.message=p},notReady:function(p){this.toString=function(){return"NOT READY: "+this.message},this.message=p}}};e.cipher.aes=function(p){this.s[0][0][0]||this.O();var m,g,v,x,E=this.s[0][4],T=this.s[1];m=p.length;var C=1;if(m!==4&&m!==6&&m!==8)throw new e.exception.invalid("invalid aes key size");for(this.b=[v=p.slice(0),x=[]],p=m;p<4*m+28;p++)g=v[p-1],(p%m===0||m===8&&p%m===4)&&(g=E[g>>>24]<<24^E[g>>16&255]<<16^E[g>>8&255]<<8^E[g&255],p%m===0&&(g=g<<8^g>>>24^C<<24,C=C<<1^283*(C>>7))),v[p]=v[p-m]^g;for(m=0;p;m++,p--)g=v[m&3?p:p-4],x[m]=4>=p||4>m?g:T[0][E[g>>>24]]^T[1][E[g>>16&255]]^T[2][E[g>>8&255]]^T[3][E[g&255]]},e.cipher.aes.prototype={encrypt:function(p){return r(this,p,0)},decrypt:function(p){return r(this,p,1)},s:[[[],[],[],[],[]],[[],[],[],[],[]]],O:function(){var p=this.s[0],m=this.s[1],g=p[4],v=m[4],x,E,T,C=[],A=[],L,R,D,q;for(x=0;256>x;x++)A[(C[x]=x<<1^283*(x>>7))^x]=x;for(E=T=0;!g[E];E^=L||1,T=A[T]||1)for(D=T^T<<1^T<<2^T<<3^T<<4,D=D>>8^D&255^99,g[E]=D,v[D]=E,R=C[x=C[L=C[E]]],q=16843009*R^65537*x^257*L^16843008*E,R=257*C[D]^16843008*D,x=0;4>x;x++)p[x][E]=R=R<<24^R>>>8,m[x][D]=q=q<<24^q>>>8;for(x=0;5>x;x++)p[x]=p[x].slice(0),m[x]=m[x].slice(0)}};function r(p,m,g){if(m.length!==4)throw new e.exception.invalid("invalid aes block size");var v=p.b[g],x=m[0]^v[0],E=m[g?3:1]^v[1],T=m[2]^v[2];m=m[g?1:3]^v[3];var C,A,L,R=v.length/4-2,D,q=4,H=[0,0,0,0];C=p.s[g],p=C[0];var U=C[1],ce=C[2],Ae=C[3],Le=C[4];for(D=0;D>>24]^U[E>>16&255]^ce[T>>8&255]^Ae[m&255]^v[q],A=p[E>>>24]^U[T>>16&255]^ce[m>>8&255]^Ae[x&255]^v[q+1],L=p[T>>>24]^U[m>>16&255]^ce[x>>8&255]^Ae[E&255]^v[q+2],m=p[m>>>24]^U[x>>16&255]^ce[E>>8&255]^Ae[T&255]^v[q+3],q+=4,x=C,E=A,T=L;for(D=0;4>D;D++)H[g?3&-D:D]=Le[x>>>24]<<24^Le[E>>16&255]<<16^Le[T>>8&255]<<8^Le[m&255]^v[q++],C=x,x=E,E=T,T=m,m=C;return H}e.bitArray={bitSlice:function(p,m,g){return p=e.bitArray.$(p.slice(m/32),32-(m&31)).slice(1),g===void 0?p:e.bitArray.clamp(p,g-m)},extract:function(p,m,g){var v=Math.floor(-m-g&31);return((m+g-1^m)&-32?p[m/32|0]<<32-v^p[m/32+1|0]>>>v:p[m/32|0]>>>v)&(1<>m-1,1)),p},partial:function(p,m,g){return p===32?m:(g?m|0:m<<32-p)+1099511627776*p},getPartial:function(p){return Math.round(p/1099511627776)||32},equal:function(p,m){if(e.bitArray.bitLength(p)!==e.bitArray.bitLength(m))return!1;var g=0,v;for(v=0;v>>m),g=p[x]<<32-m;return x=p.length?p[p.length-1]:0,p=e.bitArray.getPartial(x),v.push(e.bitArray.partial(m+p&31,32>>24|g>>>8&65280|(g&65280)<<8|g<<24;return p}},e.codec.utf8String={fromBits:function(p){var m="",g=e.bitArray.bitLength(p),v,x;for(v=0;v>>8>>>8>>>8),x<<=8;return decodeURIComponent(escape(m))},toBits:function(p){p=unescape(encodeURIComponent(p));var m=[],g,v=0;for(g=0;g>>T)>>>x),TR){if(!m)try{return e.codec.base32hex.toBits(p)}catch{}throw new e.exception.invalid("this isn't "+D+"!")}C>x?(C-=x,E.push(L^R>>>C),L=R<>>x)>>>26),6>x?(T=p[g]<<6-x,x+=26,g++):(T<<=6,x-=6);for(;v.length&3&&!m;)v+="=";return v},toBits:function(p,m){p=p.replace(/\s|=/g,"");var g=[],v,x=0,E=e.codec.base64.B,T=0,C;for(m&&(E=E.substr(0,62)+"-_"),v=0;vC)throw new e.exception.invalid("this isn't base64!");26>>x),T=C<<32-x):(x+=6,T^=C<<32-x)}return x&56&&g.push(e.bitArray.partial(x&56,T,1)),g}},e.codec.base64url={fromBits:function(p){return e.codec.base64.fromBits(p,1,1)},toBits:function(p){return e.codec.base64.toBits(p,1)}},e.hash.sha256=function(p){this.b[0]||this.O(),p?(this.F=p.F.slice(0),this.A=p.A.slice(0),this.l=p.l):this.reset()},e.hash.sha256.hash=function(p){return new e.hash.sha256().update(p).finalize()},e.hash.sha256.prototype={blockSize:512,reset:function(){return this.F=this.Y.slice(0),this.A=[],this.l=0,this},update:function(p){typeof p=="string"&&(p=e.codec.utf8String.toBits(p));var m,g=this.A=e.bitArray.concat(this.A,p);if(m=this.l,p=this.l=m+e.bitArray.bitLength(p),9007199254740991m;g++){for(x=!0,v=2;v*v<=g;v++)if(g%v===0){x=!1;break}x&&(8>m&&(this.Y[m]=p(Math.pow(g,.5))),this.b[m]=p(Math.pow(g,1/3)),m++)}}};function n(p,m){var g,v,x,E=p.F,T=p.b,C=E[0],A=E[1],L=E[2],R=E[3],D=E[4],q=E[5],H=E[6],U=E[7];for(g=0;64>g;g++)16>g?v=m[g]:(v=m[g+1&15],x=m[g+14&15],v=m[g&15]=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(x>>>17^x>>>19^x>>>10^x<<15^x<<13)+m[g&15]+m[g+9&15]|0),v=v+U+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(H^D&(q^H))+T[g],U=H,H=q,q=D,D=R+v|0,R=L,L=A,A=C,C=v+(A&L^R&(A^L))+(A>>>2^A>>>13^A>>>22^A<<30^A<<19^A<<10)|0;E[0]=E[0]+C|0,E[1]=E[1]+A|0,E[2]=E[2]+L|0,E[3]=E[3]+R|0,E[4]=E[4]+D|0,E[5]=E[5]+q|0,E[6]=E[6]+H|0,E[7]=E[7]+U|0}e.mode.ccm={name:"ccm",G:[],listenProgress:function(p){e.mode.ccm.G.push(p)},unListenProgress:function(p){p=e.mode.ccm.G.indexOf(p),-1A)throw new e.exception.invalid("ccm: iv must be at least 7 bytes");for(E=2;4>E&&L>>>8*E;E++);return E<15-A&&(E=15-A),g=C.clamp(g,8*(15-E)),m=e.mode.ccm.V(p,m,g,v,x,E),T=e.mode.ccm.C(p,T,g,m,x,E),C.concat(T.data,T.tag)},decrypt:function(p,m,g,v,x){x=x||64,v=v||[];var E=e.bitArray,T=E.bitLength(g)/8,L=E.bitLength(m),C=E.clamp(m,L-x),A=E.bitSlice(m,L-x),L=(L-x)/8;if(7>T)throw new e.exception.invalid("ccm: iv must be at least 7 bytes");for(m=2;4>m&&L>>>8*m;m++);if(m<15-T&&(m=15-T),g=E.clamp(g,8*(15-m)),C=e.mode.ccm.C(p,C,g,A,x,m),p=e.mode.ccm.V(p,C.data,g,v,x,m),!E.equal(C.tag,p))throw new e.exception.corrupt("ccm: tag doesn't match");return C.data},na:function(p,m,g,v,x,E){var T=[],C=e.bitArray,A=C.i;if(v=[C.partial(8,(m.length?64:0)|v-2<<2|E-1)],v=C.concat(v,g),v[3]|=x,v=p.encrypt(v),m.length)for(g=C.bitLength(m)/8,65279>=g?T=[C.partial(16,g)]:4294967295>=g&&(T=C.concat([C.partial(16,65534)],[g])),T=C.concat(T,m),m=0;mx||16R&&(e.mode.ccm.fa(T/A),R+=D),g[3]++,x=p.encrypt(g),m[T]^=x[0],m[T+1]^=x[1],m[T+2]^=x[2],m[T+3]^=x[3];return{tag:v,data:C.clamp(m,L)}}},e.mode.ocb2={name:"ocb2",encrypt:function(p,m,g,v,x,E){if(e.bitArray.bitLength(g)!==128)throw new e.exception.invalid("ocb iv must be 128 bits");var T,C=e.mode.ocb2.S,A=e.bitArray,L=A.i,R=[0,0,0,0];g=C(p.encrypt(g));var D,q=[];for(v=v||[],x=x||64,T=0;T+4x.bitLength(g)&&(C=E(C,v(C)),g=x.concat(g,[-2147483648,0,0,0])),T=E(T,g),p.encrypt(E(v(E(C,v(C))),T))},S:function(p){return[p[0]<<1^p[1]>>>31,p[1]<<1^p[2]>>>31,p[2]<<1^p[3]>>>31,p[3]<<1^135*(p[0]>>>31)]}},e.mode.gcm={name:"gcm",encrypt:function(p,m,g,v,x){var E=m.slice(0);return m=e.bitArray,v=v||[],p=e.mode.gcm.C(!0,p,E,v,g,x||128),m.concat(p.data,p.tag)},decrypt:function(p,m,g,v,x){var E=m.slice(0),T=e.bitArray,C=T.bitLength(E);if(x=x||128,v=v||[],x<=C?(m=T.bitSlice(E,C-x),E=T.bitSlice(E,0,C-x)):(m=E,E=[]),p=e.mode.gcm.C(!1,p,E,v,g,x),!T.equal(p.tag,m))throw new e.exception.corrupt("gcm: tag doesn't match");return p.data},ka:function(p,m){var g,v,x,E,T,C=e.bitArray.i;for(x=[0,0,0,0],E=m.slice(0),g=0;128>g;g++){for((v=(p[Math.floor(g/32)]&1<<31-g%32)!==0)&&(x=C(x,E)),T=(E[3]&1)!==0,v=3;0>>1|(E[v-1]&1)<<31;E[0]>>>=1,T&&(E[0]^=-520093696)}return x},j:function(p,m,g){var v,x=g.length;for(m=m.slice(0),v=0;vx&&(p=m.hash(p)),v=0;vv||0>g)throw new e.exception.invalid("invalid params to pbkdf2");typeof p=="string"&&(p=e.codec.utf8String.toBits(p)),typeof m=="string"&&(m=e.codec.utf8String.toBits(m)),x=x||e.misc.hmac,p=new x(p);var E,T,C,A,L=[],R=e.bitArray;for(A=1;32*L.length<(v||1);A++){for(x=E=p.encrypt(R.concat(m,[A])),T=1;TT;T++)x.push(4294967296*Math.random()|0);for(T=0;T=1<this.o&&(this.o=E),this.P++,this.b=e.hash.sha256.hash(this.b.concat(x)),this.L=new e.cipher.aes(this.b),v=0;4>v&&(this.h[v]=this.h[v]+1|0,!this.h[v]);v++);}for(v=0;v>>1;this.c[T].update([v,this.N++,2,m,E,p.length].concat(p))}break;case"string":m===void 0&&(m=p.length),this.c[T].update([v,this.N++,3,m,E,p.length]),this.c[T].update(p);break;default:A=1}if(A)throw new e.exception.bug("random: addEntropy only supports number, array of numbers or string");this.m[T]+=m,this.f+=m,C===this.u&&(this.isReady()!==this.u&&i("seeded",Math.max(this.o,this.f)),i("progress",this.getProgress()))},isReady:function(p){return p=this.T[p!==void 0?p:this.M],this.o&&this.o>=p?this.m[0]>this.ba&&new Date().valueOf()>this.Z?this.J|this.I:this.I:this.f>=p?this.J|this.u:this.u},getProgress:function(p){return p=this.T[p||this.M],this.o>=p||this.f>p?1:this.f/p},startCollectors:function(){if(!this.D){if(this.a={loadTimeCollector:d(this,this.ma),mouseCollector:d(this,this.oa),keyboardCollector:d(this,this.la),accelerometerCollector:d(this,this.ea),touchCollector:d(this,this.qa)},window.addEventListener)window.addEventListener("load",this.a.loadTimeCollector,!1),window.addEventListener("mousemove",this.a.mouseCollector,!1),window.addEventListener("keypress",this.a.keyboardCollector,!1),window.addEventListener("devicemotion",this.a.accelerometerCollector,!1),window.addEventListener("touchmove",this.a.touchCollector,!1);else if(document.attachEvent)document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector);else throw new e.exception.bug("can't attach event");this.D=!0}},stopCollectors:function(){this.D&&(window.removeEventListener?(window.removeEventListener("load",this.a.loadTimeCollector,!1),window.removeEventListener("mousemove",this.a.mouseCollector,!1),window.removeEventListener("keypress",this.a.keyboardCollector,!1),window.removeEventListener("devicemotion",this.a.accelerometerCollector,!1),window.removeEventListener("touchmove",this.a.touchCollector,!1)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",this.a.mouseCollector),document.detachEvent("keypress",this.a.keyboardCollector)),this.D=!1)},addEventListener:function(p,m){this.K[p][this.ga++]=m},removeEventListener:function(p,m){var g,v,x=this.K[p],E=[];for(v in x)x.hasOwnProperty(v)&&x[v]===m&&E.push(v);for(g=0;gm&&(p.h[m]=p.h[m]+1|0,!p.h[m]);m++);return p.L.encrypt(p.h)}function d(p,m){return function(){m.apply(p,arguments)}}e.random=new e.prng(6);e:try{var u,f,_,y;if(y=t.exports){var b;try{b=$q}catch{b=null}y=f=b}if(y&&f.randomBytes)u=f.randomBytes(128),u=new Uint32Array(new Uint8Array(u).buffer),e.random.addEntropy(u,1024,"crypto['randomBytes']");else if(typeof window<"u"&&typeof Uint32Array<"u"){if(_=new Uint32Array(32),window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(_);else if(window.msCrypto&&window.msCrypto.getRandomValues)window.msCrypto.getRandomValues(_);else break e;e.random.addEntropy(_,1024,"crypto['getRandomValues']")}}catch(p){typeof window<"u"&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(p))}e.json={defaults:{v:1,iter:1e4,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},ja:function(p,m,g,v){g=g||{},v=v||{};var x=e.json,E=x.g({iv:e.random.randomWords(4,0)},x.defaults),T;if(x.g(E,g),g=E.adata,typeof E.salt=="string"&&(E.salt=e.codec.base64.toBits(E.salt)),typeof E.iv=="string"&&(E.iv=e.codec.base64.toBits(E.iv)),!e.mode[E.mode]||!e.cipher[E.cipher]||typeof p=="string"&&100>=E.iter||E.ts!==64&&E.ts!==96&&E.ts!==128||E.ks!==128&&E.ks!==192&&E.ks!==256||2>E.iv.length||4=m.iter||m.ts!==64&&m.ts!==96&&m.ts!==128||m.ks!==128&&m.ks!==192&&m.ks!==256||!m.iv||2>m.iv.length||49007199254740991)throw new zt.exception.invalid("Cannot hash more than 2^53 - 1 bits");if(typeof Uint32Array<"u"){const o=new Uint32Array(r);let a=0;for(e=1024+n-(1024+n&1023);e<=i;e+=1024)this._block(o.subarray(32*a,32*(a+1))),a+=1;r.splice(0,32*a)}else for(e=1024+n-(1024+n&1023);e<=i;e+=1024)this._block(r.splice(0,32));return this},finalize:function(){let t,e=this._buffer,r=this._h;for(e=zt.bitArray.concat(e,[zt.bitArray.partial(1,1)]),t=e.length+4;t&31;t++)e.push(0);for(e.push(0),e.push(0),e.push(Math.floor(this._length/4294967296)),e.push(this._length|0);e.length;)this._block(e.splice(0,32));return this.reset(),r},_init:[],_initr:[12372232,13281083,9762859,1914609,15106769,4090911,4308331,8266105],_key:[],_keyr:[2666018,15689165,5061423,9034684,4764984,380953,1658779,7176472,197186,7368638,14987916,16757986,8096111,1480369,13046325,6891156,15813330,5187043,9229749,11312229,2818677,10937475,4324308,1135541,6741931,11809296,16458047,15666916,11046850,698149,229999,945776,13774844,2541862,12856045,9810911,11494366,7844520,15576806,8533307,15795044,4337665,16291729,5553712,15684120,6662416,7413802,12308920,13816008,4303699,9366425,10176680,13195875,4295371,6546291,11712675,15708924,1519456,15772530,6568428,6495784,8568297,13007125,7492395,2515356,12632583,14740254,7262584,1535930,13146278,16321966,1853211,294276,13051027,13221564,1051980,4080310,6651434,14088940,4675607],_precompute:function(){let t=0,e=2,r,n;function i(a){return(a-Math.floor(a))*4294967296|0}function o(a){return(a-Math.floor(a))*1099511627776&255}for(;t<80;e++){for(n=!0,r=2;r*r<=e;r++)if(e%r===0){n=!1;break}n&&(t<8&&(this._init[t*2]=i(Math.pow(e,1/2)),this._init[t*2+1]=o(Math.pow(e,1/2))<<24|this._initr[t]),this._key[t*2]=i(Math.pow(e,1/3)),this._key[t*2+1]=o(Math.pow(e,1/3))<<24|this._keyr[t],t++)}},_block:function(t){let e,r,n,i=this._h,o=this._key,a=i[0],c=i[1],d=i[2],u=i[3],f=i[4],_=i[5],y=i[6],b=i[7],p=i[8],m=i[9],g=i[10],v=i[11],x=i[12],E=i[13],T=i[14],C=i[15],A;if(typeof Uint32Array<"u"){A=Array(160);for(let Re=0;Re<32;Re++)A[Re]=t[Re]}else A=t;let L=a,R=c,D=d,q=u,H=f,U=_,ce=y,Ae=b,Le=p,Te=m,Ie=g,Pe=v,Ce=x,de=E,we=T,ke=C;for(e=0;e<80;e++){if(e<16)r=A[e*2],n=A[e*2+1];else{const Y=A[(e-15)*2],se=A[(e-15)*2+1],ye=(se<<31|Y>>>1)^(se<<24|Y>>>8)^Y>>>7,X=(Y<<31|se>>>1)^(Y<<24|se>>>8)^(Y<<25|se>>>7),ee=A[(e-2)*2],pe=A[(e-2)*2+1],j=(pe<<13|ee>>>19)^(ee<<3|pe>>>29)^ee>>>6,z=(ee<<13|pe>>>19)^(pe<<3|ee>>>29)^(ee<<26|pe>>>6),ie=A[(e-7)*2],be=A[(e-7)*2+1],Ne=A[(e-16)*2],Ue=A[(e-16)*2+1];n=X+be,r=ye+ie+(n>>>0>>0?1:0),n+=z,r+=j+(n>>>0>>0?1:0),n+=Ue,r+=Ne+(n>>>0>>0?1:0)}A[e*2]=r|=0,A[e*2+1]=n|=0;const Re=Le&Ie^~Le&Ce,He=Te&Pe^~Te&de,ze=L&D^L&H^D&H,Ge=R&q^R&U^q&U,J=(R<<4|L>>>28)^(L<<30|R>>>2)^(L<<25|R>>>7),me=(L<<4|R>>>28)^(R<<30|L>>>2)^(R<<25|L>>>7),ve=(Te<<18|Le>>>14)^(Te<<14|Le>>>18)^(Le<<23|Te>>>9),$e=(Le<<18|Te>>>14)^(Le<<14|Te>>>18)^(Te<<23|Le>>>9),Oe=o[e*2],M=o[e*2+1];let k=ke+$e,I=we+ve+(k>>>0>>0?1:0);k+=He,I+=Re+(k>>>0>>0?1:0),k+=M,I+=Oe+(k>>>0>>0?1:0),k=k+n|0,I+=r+(k>>>0>>0?1:0);const N=me+Ge,G=J+ze+(N>>>0>>0?1:0);we=Ce,ke=de,Ce=Ie,de=Pe,Ie=Le,Pe=Te,Te=Ae+k|0,Le=ce+I+(Te>>>0>>0?1:0)|0,ce=H,Ae=U,H=D,U=q,D=L,q=R,R=k+N|0,L=I+G+(R>>>0>>0?1:0)|0}c=i[1]=c+R|0,i[0]=a+L+(c>>>0>>0?1:0)|0,u=i[3]=u+q|0,i[2]=d+D+(u>>>0>>0?1:0)|0,_=i[5]=_+U|0,i[4]=f+H+(_>>>0>>0?1:0)|0,b=i[7]=b+Ae|0,i[6]=y+ce+(b>>>0>>0?1:0)|0,m=i[9]=m+Te|0,i[8]=p+Le+(m>>>0>>0?1:0)|0,v=i[11]=v+Pe|0,i[10]=g+Ie+(v>>>0>>0?1:0)|0,E=i[13]=E+de|0,i[12]=x+Ce+(E>>>0>>0?1:0)|0,C=i[15]=C+ke|0,i[14]=T+we+(C>>>0>>0?1:0)|0}};zt.hash.sha512;function Oq(t){let e,r,n,i,o;if(t.length===0)return new ArrayBuffer(0);if(n=Yf.bitArray.bitLength(t)/8,Yf.bitArray.bitLength(t)%8!==0)throw new Yf.exception.invalid("Invalid bit size, must be divisble by 8 to fit in an arraybuffer correctly");for(i=new DataView(new ArrayBuffer(t.length*4)),r=0;re?e:r}function xp(t,e,r){return re?e:r}function k5(t){return t=t%360,t<0&&(t=t+360),t}function ls(t){return t=t%360,t<0&&(t=t+360),t}function Wg(t,e){const r=t[0]*e[0][0]+t[1]*e[0][1]+t[2]*e[0][2],n=t[0]*e[1][0]+t[1]*e[1][1]+t[2]*e[1][2],i=t[0]*e[2][0]+t[1]*e[2][1]+t[2]*e[2][2];return[r,n,i]}const Hk=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],Lq=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],Gk=[95.047,100,108.883];function Ab(t,e,r){return(255<<24|(t&255)<<16|(e&255)<<8|r&255)>>>0}function C5(t){const e=cs(t[0]),r=cs(t[1]),n=cs(t[2]);return Ab(e,r,n)}function Sb(t){return t>>16&255}function Ib(t){return t>>8&255}function $b(t){return t&255}function Mq(t,e,r){const n=Lq,i=n[0][0]*t+n[0][1]*e+n[0][2]*r,o=n[1][0]*t+n[1][1]*e+n[1][2]*r,a=n[2][0]*t+n[2][1]*e+n[2][2]*r,c=cs(i),d=cs(o),u=cs(a);return Ab(c,d,u)}function Dq(t){const e=ho(Sb(t)),r=ho(Ib(t)),n=ho($b(t));return Wg([e,r,n],Hk)}function Fq(t){const e=ho(Sb(t)),r=ho(Ib(t)),n=ho($b(t)),i=Hk,o=i[0][0]*e+i[0][1]*r+i[0][2]*n,a=i[1][0]*e+i[1][1]*r+i[1][2]*n,c=i[2][0]*e+i[2][1]*r+i[2][2]*n,d=Gk,u=o/d[0],f=a/d[1],_=c/d[2],y=Jc(u),b=Jc(f),p=Jc(_),m=116*b-16,g=500*(y-b),v=200*(b-p);return[m,g,v]}function Nq(t){const e=ia(t),r=cs(e);return Ab(r,r,r)}function A5(t){const e=Dq(t)[1];return 116*Jc(e/100)-16}function ia(t){return 100*qq((t+16)/116)}function Qg(t){return Jc(t/100)*116-16}function ho(t){const e=t/255;return e<=.040449936?e/12.92*100:Math.pow((e+.055)/1.055,2.4)*100}function cs(t){const e=t/100;let r=0;return e<=.0031308?r=e*12.92:r=1.055*Math.pow(e,1/2.4)-.055,Rq(0,255,Math.round(r*255))}function zq(){return Gk}function Jc(t){const e=.008856451679035631,r=24389/27;return t>e?Math.pow(t,1/3):(r*t+16)/116}function qq(t){const e=.008856451679035631,r=24389/27,n=t*t*t;return n>e?n:(116*t-16)/r}class pi{static make(e=zq(),r=200/Math.PI*ia(50)/100,n=50,i=2,o=!1){const a=e,c=a[0]*.401288+a[1]*.650173+a[2]*-.051461,d=a[0]*-.250268+a[1]*1.204414+a[2]*.045854,u=a[0]*-.002079+a[1]*.048952+a[2]*.953127,f=.8+i/10,_=f>=.9?Xc(.59,.69,(f-.9)*10):Xc(.525,.59,(f-.8)*10);let y=o?1:f*(1-1/3.6*Math.exp((-r-42)/92));y=y>1?1:y<0?0:y;const b=f,p=[y*(100/c)+1-y,y*(100/d)+1-y,y*(100/u)+1-y],m=1/(5*r+1),g=m*m*m*m,v=1-g,x=g*r+.1*v*v*Math.cbrt(5*r),E=ia(n)/e[1],T=1.48+Math.sqrt(E),C=.725/Math.pow(E,.2),A=C,L=[Math.pow(x*p[0]*c/100,.42),Math.pow(x*p[1]*d/100,.42),Math.pow(x*p[2]*u/100,.42)],R=[400*L[0]/(L[0]+27.13),400*L[1]/(L[1]+27.13),400*L[2]/(L[2]+27.13)],D=(2*R[0]+R[1]+.05*R[2])*C;return new pi(E,D,C,A,_,b,p,x,Math.pow(x,.25),T)}constructor(e,r,n,i,o,a,c,d,u,f){this.n=e,this.aw=r,this.nbb=n,this.ncb=i,this.c=o,this.nc=a,this.rgbD=c,this.fl=d,this.fLRoot=u,this.z=f}}pi.DEFAULT=pi.make();class kn{constructor(e,r,n,i,o,a,c,d,u){this.hue=e,this.chroma=r,this.j=n,this.q=i,this.m=o,this.s=a,this.jstar=c,this.astar=d,this.bstar=u}distance(e){const r=this.jstar-e.jstar,n=this.astar-e.astar,i=this.bstar-e.bstar,o=Math.sqrt(r*r+n*n+i*i);return 1.41*Math.pow(o,.63)}static fromInt(e){return kn.fromIntInViewingConditions(e,pi.DEFAULT)}static fromIntInViewingConditions(e,r){const n=(e&16711680)>>16,i=(e&65280)>>8,o=e&255,a=ho(n),c=ho(i),d=ho(o),u=.41233895*a+.35762064*c+.18051042*d,f=.2126*a+.7152*c+.0722*d,_=.01932141*a+.11916382*c+.95034478*d,y=.401288*u+.650173*f-.051461*_,b=-.250268*u+1.204414*f+.045854*_,p=-.002079*u+.048952*f+.953127*_,m=r.rgbD[0]*y,g=r.rgbD[1]*b,v=r.rgbD[2]*p,x=Math.pow(r.fl*Math.abs(m)/100,.42),E=Math.pow(r.fl*Math.abs(g)/100,.42),T=Math.pow(r.fl*Math.abs(v)/100,.42),C=un(m)*400*x/(x+27.13),A=un(g)*400*E/(E+27.13),L=un(v)*400*T/(T+27.13),R=(11*C+-12*A+L)/11,D=(C+A-2*L)/9,q=(20*C+20*A+21*L)/20,H=(40*C+20*A+L)/20,ce=Math.atan2(D,R)*180/Math.PI,Ae=ce<0?ce+360:ce>=360?ce-360:ce,Le=Ae*Math.PI/180,Te=H*r.nbb,Ie=100*Math.pow(Te/r.aw,r.c*r.z),Pe=4/r.c*Math.sqrt(Ie/100)*(r.aw+4)*r.fLRoot,Ce=Ae<20.14?Ae+360:Ae,de=.25*(Math.cos(Ce*Math.PI/180+2)+3.8),ke=5e4/13*de*r.nc*r.ncb*Math.sqrt(R*R+D*D)/(q+.305),Re=Math.pow(ke,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),He=Re*Math.sqrt(Ie/100),ze=He*r.fLRoot,Ge=50*Math.sqrt(Re*r.c/(r.aw+4)),J=(1+100*.007)*Ie/(1+.007*Ie),me=1/.0228*Math.log(1+.0228*ze),ve=me*Math.cos(Le),$e=me*Math.sin(Le);return new kn(Ae,He,Ie,Pe,ze,Ge,J,ve,$e)}static fromJch(e,r,n){return kn.fromJchInViewingConditions(e,r,n,pi.DEFAULT)}static fromJchInViewingConditions(e,r,n,i){const o=4/i.c*Math.sqrt(e/100)*(i.aw+4)*i.fLRoot,a=r*i.fLRoot,c=r/Math.sqrt(e/100),d=50*Math.sqrt(c*i.c/(i.aw+4)),u=n*Math.PI/180,f=(1+100*.007)*e/(1+.007*e),_=1/.0228*Math.log(1+.0228*a),y=_*Math.cos(u),b=_*Math.sin(u);return new kn(n,r,e,o,a,d,f,y,b)}static fromUcs(e,r,n){return kn.fromUcsInViewingConditions(e,r,n,pi.DEFAULT)}static fromUcsInViewingConditions(e,r,n,i){const o=r,a=n,c=Math.sqrt(o*o+a*a),u=(Math.exp(c*.0228)-1)/.0228/i.fLRoot;let f=Math.atan2(a,o)*(180/Math.PI);f<0&&(f+=360);const _=e/(1-(e-100)*.007);return kn.fromJchInViewingConditions(_,u,f,i)}toInt(){return this.viewed(pi.DEFAULT)}viewed(e){const r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),n=Math.pow(r/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),i=this.hue*Math.PI/180,o=.25*(Math.cos(i+2)+3.8),a=e.aw*Math.pow(this.j/100,1/e.c/e.z),c=o*(5e4/13)*e.nc*e.ncb,d=a/e.nbb,u=Math.sin(i),f=Math.cos(i),_=23*(d+.305)*n/(23*c+11*n*f+108*n*u),y=_*f,b=_*u,p=(460*d+451*y+288*b)/1403,m=(460*d-891*y-261*b)/1403,g=(460*d-220*y-6300*b)/1403,v=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),x=un(p)*(100/e.fl)*Math.pow(v,1/.42),E=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),T=un(m)*(100/e.fl)*Math.pow(E,1/.42),C=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),A=un(g)*(100/e.fl)*Math.pow(C,1/.42),L=x/e.rgbD[0],R=T/e.rgbD[1],D=A/e.rgbD[2],q=1.86206786*L-1.01125463*R+.14918677*D,H=.38752654*L+.62144744*R-.00897398*D,U=-.0158415*L-.03412294*R+1.04996444*D;return Mq(q,H,U)}static fromXyzInViewingConditions(e,r,n,i){const o=.401288*e+.650173*r-.051461*n,a=-.250268*e+1.204414*r+.045854*n,c=-.002079*e+.048952*r+.953127*n,d=i.rgbD[0]*o,u=i.rgbD[1]*a,f=i.rgbD[2]*c,_=Math.pow(i.fl*Math.abs(d)/100,.42),y=Math.pow(i.fl*Math.abs(u)/100,.42),b=Math.pow(i.fl*Math.abs(f)/100,.42),p=un(d)*400*_/(_+27.13),m=un(u)*400*y/(y+27.13),g=un(f)*400*b/(b+27.13),v=(11*p+-12*m+g)/11,x=(p+m-2*g)/9,E=(20*p+20*m+21*g)/20,T=(40*p+20*m+g)/20,A=Math.atan2(x,v)*180/Math.PI,L=A<0?A+360:A>=360?A-360:A,R=L*Math.PI/180,D=T*i.nbb,q=100*Math.pow(D/i.aw,i.c*i.z),H=4/i.c*Math.sqrt(q/100)*(i.aw+4)*i.fLRoot,U=L<20.14?L+360:L,ce=1/4*(Math.cos(U*Math.PI/180+2)+3.8),Le=5e4/13*ce*i.nc*i.ncb*Math.sqrt(v*v+x*x)/(E+.305),Te=Math.pow(Le,.9)*Math.pow(1.64-Math.pow(.29,i.n),.73),Ie=Te*Math.sqrt(q/100),Pe=Ie*i.fLRoot,Ce=50*Math.sqrt(Te*i.c/(i.aw+4)),de=(1+100*.007)*q/(1+.007*q),we=Math.log(1+.0228*Pe)/.0228,ke=we*Math.cos(R),Re=we*Math.sin(R);return new kn(L,Ie,q,H,Pe,Ce,de,ke,Re)}xyzInViewingConditions(e){const r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),n=Math.pow(r/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),i=this.hue*Math.PI/180,o=.25*(Math.cos(i+2)+3.8),a=e.aw*Math.pow(this.j/100,1/e.c/e.z),c=o*(5e4/13)*e.nc*e.ncb,d=a/e.nbb,u=Math.sin(i),f=Math.cos(i),_=23*(d+.305)*n/(23*c+11*n*f+108*n*u),y=_*f,b=_*u,p=(460*d+451*y+288*b)/1403,m=(460*d-891*y-261*b)/1403,g=(460*d-220*y-6300*b)/1403,v=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),x=un(p)*(100/e.fl)*Math.pow(v,1/.42),E=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),T=un(m)*(100/e.fl)*Math.pow(E,1/.42),C=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),A=un(g)*(100/e.fl)*Math.pow(C,1/.42),L=x/e.rgbD[0],R=T/e.rgbD[1],D=A/e.rgbD[2],q=1.86206786*L-1.01125463*R+.14918677*D,H=.38752654*L+.62144744*R-.00897398*D,U=-.0158415*L-.03412294*R+1.04996444*D;return[q,H,U]}}class Ze{static sanitizeRadians(e){return(e+Math.PI*8)%(Math.PI*2)}static trueDelinearized(e){const r=e/100;let n=0;return r<=.0031308?n=r*12.92:n=1.055*Math.pow(r,1/2.4)-.055,n*255}static chromaticAdaptation(e){const r=Math.pow(Math.abs(e),.42);return un(e)*400*r/(r+27.13)}static hueOf(e){const r=Wg(e,Ze.SCALED_DISCOUNT_FROM_LINRGB),n=Ze.chromaticAdaptation(r[0]),i=Ze.chromaticAdaptation(r[1]),o=Ze.chromaticAdaptation(r[2]),a=(11*n+-12*i+o)/11,c=(n+i-2*o)/9;return Math.atan2(c,a)}static areInCyclicOrder(e,r,n){const i=Ze.sanitizeRadians(r-e),o=Ze.sanitizeRadians(n-e);return i100.01||q[1]>100.01||q[2]>100.01?0:C5(q);i=i-(Ae-n)*i/(2*Ae)}return 0}static solveToInt(e,r,n){if(r<1e-4||n<1e-4||n>99.9999)return Nq(n);e=ls(e);const i=e/180*Math.PI,o=ia(n),a=Ze.findResultByJ(i,r,o);if(a!==0)return a;const c=Ze.bisectToLimit(o,i);return C5(c)}static solveToCam(e,r,n){return kn.fromInt(Ze.solveToInt(e,r,n))}}Ze.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];Ze.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];Ze.Y_FROM_LINRGB=[.2126,.7152,.0722];Ze.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];class Ur{static from(e,r,n){return new Ur(Ze.solveToInt(e,r,n))}static fromInt(e){return new Ur(e)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(e){this.setInternalState(Ze.solveToInt(e,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(e){this.setInternalState(Ze.solveToInt(this.internalHue,e,this.internalTone))}get tone(){return this.internalTone}set tone(e){this.setInternalState(Ze.solveToInt(this.internalHue,this.internalChroma,e))}constructor(e){this.argb=e;const r=kn.fromInt(e);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=A5(e),this.argb=e}setInternalState(e){const r=kn.fromInt(e);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=A5(e),this.argb=e}inViewingConditions(e){const n=kn.fromInt(this.toInt()).xyzInViewingConditions(e),i=kn.fromXyzInViewingConditions(n[0],n[1],n[2],pi.make());return Ur.from(i.hue,i.chroma,Qg(n[1]))}}class Cr{static ratioOfTones(e,r){return e=xp(0,100,e),r=xp(0,100,r),Cr.ratioOfYs(ia(e),ia(r))}static ratioOfYs(e,r){const n=e>r?e:r,i=n===r?e:r;return(n+5)/(i+5)}static lighter(e,r){if(e<0||e>100)return-1;const n=ia(e),i=r*(n+5)-5,o=Cr.ratioOfYs(i,n),a=Math.abs(o-r);if(o.04)return-1;const c=Qg(i)+.4;return c<0||c>100?-1:c}static darker(e,r){if(e<0||e>100)return-1;const n=ia(e),i=(n+5)/r-5,o=Cr.ratioOfYs(n,i),a=Math.abs(o-r);if(o.04)return-1;const c=Qg(i)-.4;return c<0||c>100?-1:c}static lighterUnsafe(e,r){const n=Cr.lighter(e,r);return n<0?100:n}static darkerUnsafe(e,r){const n=Cr.darker(e,r);return n<0?0:n}}class dh{static isDisliked(e){const r=Math.round(e.hue)>=90&&Math.round(e.hue)<=111,n=Math.round(e.chroma)>16,i=Math.round(e.tone)<65;return r&&n&&i}static fixIfDisliked(e){return dh.isDisliked(e)?Ur.from(e.hue,e.chroma,70):e}}class Fe{static fromPalette(e){return new Fe(e.name??"",e.palette,e.tone,e.isBackground??!1,e.background,e.secondBackground,e.contrastCurve,e.toneDeltaPair)}constructor(e,r,n,i,o,a,c,d){if(this.name=e,this.palette=r,this.tone=n,this.isBackground=i,this.background=o,this.secondBackground=a,this.contrastCurve=c,this.toneDeltaPair=d,this.hctCache=new Map,!o&&a)throw new Error(`Color ${e} has secondBackgrounddefined, but background is not defined.`);if(!o&&c)throw new Error(`Color ${e} has contrastCurvedefined, but background is not defined.`);if(o&&!c)throw new Error(`Color ${e} has backgrounddefined, but contrastCurve is not defined.`)}getArgb(e){return this.getHct(e).toInt()}getHct(e){const r=this.hctCache.get(e);if(r!=null)return r;const n=this.getTone(e),i=this.palette(e).getHct(n);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(e,i),i}getTone(e){const r=e.contrastLevel<0;if(this.toneDeltaPair){const n=this.toneDeltaPair(e),i=n.roleA,o=n.roleB,a=n.delta,c=n.polarity,d=n.stayTogether,f=this.background(e).getTone(e),_=c==="nearer"||c==="lighter"&&!e.isDark||c==="darker"&&e.isDark,y=_?i:o,b=_?o:i,p=this.name===y.name,m=e.isDark?1:-1,g=y.contrastCurve.getContrast(e.contrastLevel),v=b.contrastCurve.getContrast(e.contrastLevel),x=y.tone(e);let E=Cr.ratioOfTones(f,x)>=g?x:Fe.foregroundTone(f,g);const T=b.tone(e);let C=Cr.ratioOfTones(f,T)>=v?T:Fe.foregroundTone(f,v);return r&&(E=Fe.foregroundTone(f,g),C=Fe.foregroundTone(f,v)),(C-E)*m>=a||(C=xp(0,100,E+a*m),(C-E)*m>=a||(E=xp(0,100,C-a*m))),50<=E&&E<60?m>0?(E=60,C=Math.max(C,E+a*m)):(E=49,C=Math.min(C,E+a*m)):50<=C&&C<60&&(d?m>0?(E=60,C=Math.max(C,E+a*m)):(E=49,C=Math.min(C,E+a*m)):m>0?C=60:C=49),p?E:C}else{let n=this.tone(e);if(this.background==null)return n;const i=this.background(e).getTone(e),o=this.contrastCurve.getContrast(e.contrastLevel);if(Cr.ratioOfTones(i,n)>=o||(n=Fe.foregroundTone(i,o)),r&&(n=Fe.foregroundTone(i,o)),this.isBackground&&50<=n&&n<60&&(Cr.ratioOfTones(49,i)>=o?n=49:n=60),this.secondBackground){const[a,c]=[this.background,this.secondBackground],[d,u]=[a(e).getTone(e),c(e).getTone(e)],[f,_]=[Math.max(d,u),Math.min(d,u)];if(Cr.ratioOfTones(f,n)>=o&&Cr.ratioOfTones(_,n)>=o)return n;const y=Cr.lighter(f,o),b=Cr.darker(_,o),p=[];return y!==-1&&p.push(y),b!==-1&&p.push(b),Fe.tonePrefersLightForeground(d)||Fe.tonePrefersLightForeground(u)?y<0?100:y:p.length===1?p[0]:b<0?0:b}return n}}static foregroundTone(e,r){const n=Cr.lighterUnsafe(e,r),i=Cr.darkerUnsafe(e,r),o=Cr.ratioOfTones(n,e),a=Cr.ratioOfTones(i,e);if(Fe.tonePrefersLightForeground(e)){const d=Math.abs(o-a)<.1&&o=r||o>=a||d?n:i}else return a>=r||a>=o?i:n}static tonePrefersLightForeground(e){return Math.round(e)<60}static toneAllowsLightForeground(e){return Math.round(e)<=49}static enableLightForeground(e){return Fe.tonePrefersLightForeground(e)&&!Fe.toneAllowsLightForeground(e)?49:e}}var ya;(function(t){t[t.MONOCHROME=0]="MONOCHROME",t[t.NEUTRAL=1]="NEUTRAL",t[t.TONAL_SPOT=2]="TONAL_SPOT",t[t.VIBRANT=3]="VIBRANT",t[t.EXPRESSIVE=4]="EXPRESSIVE",t[t.FIDELITY=5]="FIDELITY",t[t.CONTENT=6]="CONTENT",t[t.RAINBOW=7]="RAINBOW",t[t.FRUIT_SALAD=8]="FRUIT_SALAD"})(ya||(ya={}));class wt{constructor(e,r,n,i){this.low=e,this.normal=r,this.medium=n,this.high=i}getContrast(e){return e<=-1?this.low:e<0?Xc(this.low,this.normal,(e- -1)/1):e<.5?Xc(this.normal,this.medium,(e-0)/.5):e<1?Xc(this.medium,this.high,(e-.5)/.5):this.high}}class vn{constructor(e,r,n,i,o){this.roleA=e,this.roleB=r,this.delta=n,this.polarity=i,this.stayTogether=o}}function Xl(t){return t.variant===ya.FIDELITY||t.variant===ya.CONTENT}function fr(t){return t.variant===ya.MONOCHROME}function Bq(t,e,r,n){let i=r,o=Ur.from(t,e,r);if(o.chromac.chroma||Math.abs(c.chroma-e)<.4)break;const d=Math.abs(c.chroma-e),u=Math.abs(o.chroma-e);dt.primaryPalette,tone:t=>t.primaryPalette.keyColor.tone});Z.secondaryPaletteKeyColor=Fe.fromPalette({name:"secondary_palette_key_color",palette:t=>t.secondaryPalette,tone:t=>t.secondaryPalette.keyColor.tone});Z.tertiaryPaletteKeyColor=Fe.fromPalette({name:"tertiary_palette_key_color",palette:t=>t.tertiaryPalette,tone:t=>t.tertiaryPalette.keyColor.tone});Z.neutralPaletteKeyColor=Fe.fromPalette({name:"neutral_palette_key_color",palette:t=>t.neutralPalette,tone:t=>t.neutralPalette.keyColor.tone});Z.neutralVariantPaletteKeyColor=Fe.fromPalette({name:"neutral_variant_palette_key_color",palette:t=>t.neutralVariantPalette,tone:t=>t.neutralVariantPalette.keyColor.tone});Z.background=Fe.fromPalette({name:"background",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:!0});Z.onBackground=Fe.fromPalette({name:"on_background",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>Z.background,contrastCurve:new wt(3,3,4.5,7)});Z.surface=Fe.fromPalette({name:"surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:!0});Z.surfaceDim=Fe.fromPalette({name:"surface_dim",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:87,isBackground:!0});Z.surfaceBright=Fe.fromPalette({name:"surface_bright",palette:t=>t.neutralPalette,tone:t=>t.isDark?24:98,isBackground:!0});Z.surfaceContainerLowest=Fe.fromPalette({name:"surface_container_lowest",palette:t=>t.neutralPalette,tone:t=>t.isDark?4:100,isBackground:!0});Z.surfaceContainerLow=Fe.fromPalette({name:"surface_container_low",palette:t=>t.neutralPalette,tone:t=>t.isDark?10:96,isBackground:!0});Z.surfaceContainer=Fe.fromPalette({name:"surface_container",palette:t=>t.neutralPalette,tone:t=>t.isDark?12:94,isBackground:!0});Z.surfaceContainerHigh=Fe.fromPalette({name:"surface_container_high",palette:t=>t.neutralPalette,tone:t=>t.isDark?17:92,isBackground:!0});Z.surfaceContainerHighest=Fe.fromPalette({name:"surface_container_highest",palette:t=>t.neutralPalette,tone:t=>t.isDark?22:90,isBackground:!0});Z.onSurface=Fe.fromPalette({name:"on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>Z.highestSurface(t),contrastCurve:new wt(4.5,7,11,21)});Z.surfaceVariant=Fe.fromPalette({name:"surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:90,isBackground:!0});Z.onSurfaceVariant=Fe.fromPalette({name:"on_surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?80:30,background:t=>Z.highestSurface(t),contrastCurve:new wt(3,4.5,7,11)});Z.inverseSurface=Fe.fromPalette({name:"inverse_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:20});Z.inverseOnSurface=Fe.fromPalette({name:"inverse_on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?20:95,background:t=>Z.inverseSurface,contrastCurve:new wt(4.5,7,11,21)});Z.outline=Fe.fromPalette({name:"outline",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?60:50,background:t=>Z.highestSurface(t),contrastCurve:new wt(1.5,3,4.5,7)});Z.outlineVariant=Fe.fromPalette({name:"outline_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:80,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7)});Z.shadow=Fe.fromPalette({name:"shadow",palette:t=>t.neutralPalette,tone:t=>0});Z.scrim=Fe.fromPalette({name:"scrim",palette:t=>t.neutralPalette,tone:t=>0});Z.surfaceTint=Fe.fromPalette({name:"surface_tint",palette:t=>t.primaryPalette,tone:t=>t.isDark?80:40,isBackground:!0});Z.primary=Fe.fromPalette({name:"primary",palette:t=>t.primaryPalette,tone:t=>fr(t)?t.isDark?100:0:t.isDark?80:40,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(3,4.5,7,11),toneDeltaPair:t=>new vn(Z.primaryContainer,Z.primary,15,"nearer",!1)});Z.onPrimary=Fe.fromPalette({name:"on_primary",palette:t=>t.primaryPalette,tone:t=>fr(t)?t.isDark?10:90:t.isDark?20:100,background:t=>Z.primary,contrastCurve:new wt(4.5,7,11,21)});Z.primaryContainer=Fe.fromPalette({name:"primary_container",palette:t=>t.primaryPalette,tone:t=>Xl(t)?Ob(t.sourceColorHct,t):fr(t)?t.isDark?85:25:t.isDark?30:90,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7),toneDeltaPair:t=>new vn(Z.primaryContainer,Z.primary,15,"nearer",!1)});Z.onPrimaryContainer=Fe.fromPalette({name:"on_primary_container",palette:t=>t.primaryPalette,tone:t=>Xl(t)?Fe.foregroundTone(Z.primaryContainer.tone(t),4.5):fr(t)?t.isDark?0:100:t.isDark?90:10,background:t=>Z.primaryContainer,contrastCurve:new wt(4.5,7,11,21)});Z.inversePrimary=Fe.fromPalette({name:"inverse_primary",palette:t=>t.primaryPalette,tone:t=>t.isDark?40:80,background:t=>Z.inverseSurface,contrastCurve:new wt(3,4.5,7,11)});Z.secondary=Fe.fromPalette({name:"secondary",palette:t=>t.secondaryPalette,tone:t=>t.isDark?80:40,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(3,4.5,7,11),toneDeltaPair:t=>new vn(Z.secondaryContainer,Z.secondary,15,"nearer",!1)});Z.onSecondary=Fe.fromPalette({name:"on_secondary",palette:t=>t.secondaryPalette,tone:t=>fr(t)?t.isDark?10:100:t.isDark?20:100,background:t=>Z.secondary,contrastCurve:new wt(4.5,7,11,21)});Z.secondaryContainer=Fe.fromPalette({name:"secondary_container",palette:t=>t.secondaryPalette,tone:t=>{const e=t.isDark?30:90;if(fr(t))return t.isDark?30:85;if(!Xl(t))return e;let r=Bq(t.secondaryPalette.hue,t.secondaryPalette.chroma,e,!t.isDark);return r=Ob(t.secondaryPalette.getHct(r),t),r},isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7),toneDeltaPair:t=>new vn(Z.secondaryContainer,Z.secondary,15,"nearer",!1)});Z.onSecondaryContainer=Fe.fromPalette({name:"on_secondary_container",palette:t=>t.secondaryPalette,tone:t=>Xl(t)?Fe.foregroundTone(Z.secondaryContainer.tone(t),4.5):t.isDark?90:10,background:t=>Z.secondaryContainer,contrastCurve:new wt(4.5,7,11,21)});Z.tertiary=Fe.fromPalette({name:"tertiary",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?t.isDark?90:25:t.isDark?80:40,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(3,4.5,7,11),toneDeltaPair:t=>new vn(Z.tertiaryContainer,Z.tertiary,15,"nearer",!1)});Z.onTertiary=Fe.fromPalette({name:"on_tertiary",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?t.isDark?10:90:t.isDark?20:100,background:t=>Z.tertiary,contrastCurve:new wt(4.5,7,11,21)});Z.tertiaryContainer=Fe.fromPalette({name:"tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>{if(fr(t))return t.isDark?60:49;if(!Xl(t))return t.isDark?30:90;const e=Ob(t.tertiaryPalette.getHct(t.sourceColorHct.tone),t),r=t.tertiaryPalette.getHct(e);return dh.fixIfDisliked(r).tone},isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7),toneDeltaPair:t=>new vn(Z.tertiaryContainer,Z.tertiary,15,"nearer",!1)});Z.onTertiaryContainer=Fe.fromPalette({name:"on_tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?t.isDark?0:100:Xl(t)?Fe.foregroundTone(Z.tertiaryContainer.tone(t),4.5):t.isDark?90:10,background:t=>Z.tertiaryContainer,contrastCurve:new wt(4.5,7,11,21)});Z.error=Fe.fromPalette({name:"error",palette:t=>t.errorPalette,tone:t=>t.isDark?80:40,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(3,4.5,7,11),toneDeltaPair:t=>new vn(Z.errorContainer,Z.error,15,"nearer",!1)});Z.onError=Fe.fromPalette({name:"on_error",palette:t=>t.errorPalette,tone:t=>t.isDark?20:100,background:t=>Z.error,contrastCurve:new wt(4.5,7,11,21)});Z.errorContainer=Fe.fromPalette({name:"error_container",palette:t=>t.errorPalette,tone:t=>t.isDark?30:90,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7),toneDeltaPair:t=>new vn(Z.errorContainer,Z.error,15,"nearer",!1)});Z.onErrorContainer=Fe.fromPalette({name:"on_error_container",palette:t=>t.errorPalette,tone:t=>t.isDark?90:10,background:t=>Z.errorContainer,contrastCurve:new wt(4.5,7,11,21)});Z.primaryFixed=Fe.fromPalette({name:"primary_fixed",palette:t=>t.primaryPalette,tone:t=>fr(t)?40:90,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7),toneDeltaPair:t=>new vn(Z.primaryFixed,Z.primaryFixedDim,10,"lighter",!0)});Z.primaryFixedDim=Fe.fromPalette({name:"primary_fixed_dim",palette:t=>t.primaryPalette,tone:t=>fr(t)?30:80,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7),toneDeltaPair:t=>new vn(Z.primaryFixed,Z.primaryFixedDim,10,"lighter",!0)});Z.onPrimaryFixed=Fe.fromPalette({name:"on_primary_fixed",palette:t=>t.primaryPalette,tone:t=>fr(t)?100:10,background:t=>Z.primaryFixedDim,secondBackground:t=>Z.primaryFixed,contrastCurve:new wt(4.5,7,11,21)});Z.onPrimaryFixedVariant=Fe.fromPalette({name:"on_primary_fixed_variant",palette:t=>t.primaryPalette,tone:t=>fr(t)?90:30,background:t=>Z.primaryFixedDim,secondBackground:t=>Z.primaryFixed,contrastCurve:new wt(3,4.5,7,11)});Z.secondaryFixed=Fe.fromPalette({name:"secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>fr(t)?80:90,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7),toneDeltaPair:t=>new vn(Z.secondaryFixed,Z.secondaryFixedDim,10,"lighter",!0)});Z.secondaryFixedDim=Fe.fromPalette({name:"secondary_fixed_dim",palette:t=>t.secondaryPalette,tone:t=>fr(t)?70:80,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7),toneDeltaPair:t=>new vn(Z.secondaryFixed,Z.secondaryFixedDim,10,"lighter",!0)});Z.onSecondaryFixed=Fe.fromPalette({name:"on_secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>10,background:t=>Z.secondaryFixedDim,secondBackground:t=>Z.secondaryFixed,contrastCurve:new wt(4.5,7,11,21)});Z.onSecondaryFixedVariant=Fe.fromPalette({name:"on_secondary_fixed_variant",palette:t=>t.secondaryPalette,tone:t=>fr(t)?25:30,background:t=>Z.secondaryFixedDim,secondBackground:t=>Z.secondaryFixed,contrastCurve:new wt(3,4.5,7,11)});Z.tertiaryFixed=Fe.fromPalette({name:"tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?40:90,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7),toneDeltaPair:t=>new vn(Z.tertiaryFixed,Z.tertiaryFixedDim,10,"lighter",!0)});Z.tertiaryFixedDim=Fe.fromPalette({name:"tertiary_fixed_dim",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?30:80,isBackground:!0,background:t=>Z.highestSurface(t),contrastCurve:new wt(1,1,3,7),toneDeltaPair:t=>new vn(Z.tertiaryFixed,Z.tertiaryFixedDim,10,"lighter",!0)});Z.onTertiaryFixed=Fe.fromPalette({name:"on_tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?100:10,background:t=>Z.tertiaryFixedDim,secondBackground:t=>Z.tertiaryFixed,contrastCurve:new wt(4.5,7,11,21)});Z.onTertiaryFixedVariant=Fe.fromPalette({name:"on_tertiary_fixed_variant",palette:t=>t.tertiaryPalette,tone:t=>fr(t)?90:30,background:t=>Z.tertiaryFixedDim,secondBackground:t=>Z.tertiaryFixed,contrastCurve:new wt(3,4.5,7,11)});class dr{static fromInt(e){const r=Ur.fromInt(e);return dr.fromHct(r)}static fromHct(e){return new dr(e.hue,e.chroma,e)}static fromHueAndChroma(e,r){return new dr(e,r,dr.createKeyColor(e,r))}constructor(e,r,n){this.hue=e,this.chroma=r,this.keyColor=n,this.cache=new Map}static createKeyColor(e,r){let i=Ur.from(e,r,50),o=Math.abs(i.chroma-r);for(let a=1;a<50;a+=1){if(Math.round(r)===Math.round(i.chroma))return i;const c=Ur.from(e,r,50+a),d=Math.abs(c.chroma-r);d0)return this.hctsByTempCache;const e=this.hctsByHue.concat([this.input]),r=this.tempsByHct;return e.sort((n,i)=>r.get(n)-r.get(i)),this.hctsByTempCache=e,e}get warmest(){return this.hctsByTemp[this.hctsByTemp.length-1]}get coldest(){return this.hctsByTemp[0]}analogous(e=5,r=12){const n=Math.round(this.input.hue),i=this.hctsByHue[n];let o=this.relativeTemperature(i);const a=[i];let c=0;for(let p=0;p<360;p++){const m=k5(n+p),g=this.hctsByHue[m],v=this.relativeTemperature(g),x=Math.abs(v-o);o=v,c+=x}let d=1;const u=c/r;let f=0;for(o=this.relativeTemperature(i);a.length=x,T=1;for(;E&&a.length=C,T++}if(o=g,d++,d>360){for(;a.length=a.length&&(m=m%a.length),_.splice(0,0,a[m])}const b=e-y-1;for(let p=1;p=a.length&&(m=m%a.length),_.push(a[m])}return _}get complement(){if(this.complementCache!=null)return this.complementCache;const e=this.coldest.hue,r=this.tempsByHct.get(this.coldest),n=this.warmest.hue,o=this.tempsByHct.get(this.warmest)-r,a=ed.isBetween(this.input.hue,e,n),c=a?n:e,d=a?e:n,u=1;let f=1e3,_=this.hctsByHue[Math.round(this.input.hue)];const y=1-this.inputRelativeTemperature;for(let b=0;b<=360;b+=1){const p=ls(c+u*b);if(!ed.isBetween(p,c,d))continue;const m=this.hctsByHue[Math.round(p)],g=(this.tempsByHct.get(m)-r)/o,v=Math.abs(y-g);v=0?this.inputRelativeTemperatureCache:(this.inputRelativeTemperatureCache=this.relativeTemperature(this.input),this.inputRelativeTemperatureCache)}get tempsByHct(){if(this.tempsByHctCache.size>0)return this.tempsByHctCache;const e=this.hctsByHue.concat([this.input]),r=new Map;for(const n of e)r.set(n,ed.rawTemperature(n));return this.tempsByHctCache=r,r}get hctsByHue(){if(this.hctsByHueCache.length>0)return this.hctsByHueCache;const e=[];for(let r=0;r<=360;r+=1){const n=Ur.from(r,this.input.chroma,this.input.tone);e.push(n)}return this.hctsByHueCache=e,this.hctsByHueCache}static isBetween(e,r,n){return r>>0}function oo(t){return parseInt(t,16)}function Wk(t,e,r="material-theme"){let n=globalThis[r];n||(n=new CSSStyleSheet,globalThis[r]=n,t.adoptedStyleSheets.push(n)),n.replaceSync(e),localStorage.setItem(r,e)}const Gq={background:Z.background,"on-background":Z.onBackground,surface:Z.surface,"surface-dim":Z.surfaceDim,"surface-bright":Z.surfaceBright,"surface-container-lowest":Z.surfaceContainerLowest,"surface-container-low":Z.surfaceContainerLow,"surface-container":Z.surfaceContainer,"surface-container-high":Z.surfaceContainerHigh,"surface-container-highest":Z.surfaceContainerHighest,"on-surface":Z.onSurface,"surface-variant":Z.surfaceVariant,"on-surface-variant":Z.onSurfaceVariant,"inverse-surface":Z.inverseSurface,"inverse-on-surface":Z.inverseOnSurface,outline:Z.outline,"outline-variant":Z.outlineVariant,shadow:Z.shadow,scrim:Z.scrim,"surface-tint":Z.surfaceTint,primary:Z.primary,"on-primary":Z.onPrimary,"primary-container":Z.primaryContainer,"on-primary-container":Z.onPrimaryContainer,"inverse-primary":Z.inversePrimary,secondary:Z.secondary,"on-secondary":Z.onSecondary,"secondary-container":Z.secondaryContainer,"on-secondary-container":Z.onSecondaryContainer,tertiary:Z.tertiary,"on-tertiary":Z.onTertiary,"tertiary-container":Z.tertiaryContainer,"on-tertiary-container":Z.onTertiaryContainer,error:Z.error,"on-error":Z.onError,"error-container":Z.errorContainer,"on-error-container":Z.onErrorContainer};function Wq(t,e){const r=new Vq(Ur.fromInt(Hq(t)),e,0),n={};for(const[i,o]of Object.entries(Gq))n[i]=jq(o.getArgb(r));return n["on-surface-selected"]=n["on-surface"]+"14",n}function Qq(t,e,r="material-theme"){let n=":root,:host{";for(const[i,o]of Object.entries(e))n+=`--md-sys-color-${i}:${o};`;n+="}",Wk(t,n,r)}function Pb(t,e){const r=Wq(t,e);Qq(document,r),window.dispatchEvent(new Event("theme-changed"))}function Cd(t,e=!0){let r=t==="dark";return t==="auto"&&(r=window.matchMedia("(prefers-color-scheme: dark)").matches,e&&Zq(r?"dark":"light")),r}function Kq(){return localStorage.getItem("material-theme")}function td(){return localStorage.getItem("color-mode")}function Qk(t){localStorage.setItem("color-mode",t)}function Rb(){return localStorage.getItem("seed-color")}function Kk(t){localStorage.setItem("seed-color",t)}function Yq(){return localStorage.getItem("last-auto-color-mode")}function Zq(t){localStorage.setItem("last-auto-color-mode",t)}function Yk(t){const e=td(),r=Cd(e);Pb(t,r),uh(r),Kk(t)}function Zk(t){const e=Rb(),r=Cd(t);Pb(e,r),Qk(t),uh(r)}function Xq(t,e){const r=Cd(e);Pb(t,r),uh(r),Kk(t),Qk(e)}function uh(t){t?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),pt.emit("color_mode_changed")}const Jq={xmlns:"http://www.w3.org/2000/svg",class:"icon",style:{color:"#000!important"},viewBox:"176.76 130.44 848.7 811.89"},eB=iM('',6),tB=[eB];function rB(t,e){return te(),oe("svg",Jq,tB)}const nB={render:rB};function Lb(t){const e=t.toLowerCase();return e.startsWith("https://")||e.startsWith("http://")||e.startsWith("blob:")}function Mb(t){return Lb(t)?t:`${$l()}/fs?id=${encodeURIComponent(t)}`}function vl(t,e){return!e||!t?"":Mb(Ol(t,e))}function iB(){return`${$l()}/upload`}function Xa(t,e){const r=document.createElement("a");typeof r.download=="string"?(r.href=t,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)):window.open(t)}function Nve(t,e,r){const n=new Blob([t],{type:e}),i=URL.createObjectURL(n);Xa(i,r)}function Bi(t){return t.substring(t.lastIndexOf("/")+1)}function Db(t){return zt.codec.base64.toBits(t)}function Xk(t,e){if(!t)return"";const r=Hd(t,e);return jk(r)}function oB(t,e){return e.startsWith("app://")?t+"/"+e.replace("app://",""):e}function Ol(t,e){if(!e||!t)return"";const r=e.toLowerCase();if(r.startsWith("https://")||r.startsWith("http://"))return e;const n=window.fileIdMap||new Map;if(n.has(e))return n.get(e)??"";const i=Hd(t,e),o=jk(i);return n.set(e,o),o}async function Jk(t,e){const r=localStorage.getItem("auth_token")??"",n=zt.codec.base64.toBits(r),i=1e3*1e3*512;async function o(a,c,d){const u=Math.min(a+i,t.file.size),f=u-a,_=new FormData,y=Cb(Hd(n,JSON.stringify({dir:t.dir,replace:e,index:c,size:f,total:d})));_.append("info",new Blob([y]));const b=t.file.slice(a,u);return _.append("file",new File([b],a>0?t.fileName:t.file.name)),new Promise(p=>{const m=new XMLHttpRequest;let g=0;m.upload.addEventListener("progress",function(v){v.lengthComputable&&(g===0&&(g=v.total-f),v.loaded>g&&(t.uploadedSize=a+v.loaded-g))},!1),m.upload.addEventListener("load",function(){c===d-1&&(t.uploadedSize=t.file.size,t.status="saving")},!1),m.onreadystatechange=function(){console.log(m),m.readyState===4&&(m.status===201?p({fileName:m.responseText}):p({error:m.responseText}))};try{m.open("POST",iB(),!0),m.setRequestHeader("c-id",localStorage.getItem("client_id")??""),m.send(_),t.xhr=m}catch(v){p({error:v.message})}})}try{let a=0;const c=[];for(;a=0);t.status="done"}catch(a){t.status="error",t.error=a}}const aB={key:0,class:"top-error"},sB=Bt({__name:"App",setup(t){let e=0;const{t:r}=On();document.title=r("app_name");const n=Se(""),i=Se("");let o,a=1e3;const c=()=>{i.value=""};async function d(){const y=localStorage.getItem("client_id"),b=localStorage.getItem("auth_token")??"";if(b)try{const p=Db(b);o=new WebSocket(`${gq()}?cid=${y}`),o.onopen=async()=>{pt.emit("app_socket_connection_changed",!0),console.log("WebSocket is connecting to app"),a=1e3;const m=Hd(p,new Date().getTime().toString());o.send(Cb(m)),n.value=""},o.onmessage=async m=>{let g;try{g=JSON.parse(await m.data.text())}catch{g=JSON.parse(Vk(p,kb(await m.data.arrayBuffer())))}console.log(g),n.value="",g.encrypted?pt.emit(g.type.toLowerCase(),JSON.parse(g.data)):pt.emit(g.type.toLowerCase(),g.data)},o.onclose=m=>{console.error(m),n.value="closed",u()},o.onerror=m=>{console.error(m),n.value="error",o.close(),pt.emit("app_socket_connection_changed",!1)}}catch(p){console.error(p),u()}}function u(){e&&clearTimeout(e),e=setTimeout(()=>{d()},Math.min(5e3,a)),a+=1e3}function f(){if(td()!=="auto")return;const y=Cd("auto",!1)?"dark":"light",b=Yq();y!==b&&Zk("auto")}function _(){const y=Kq();y?(Wk(document,y),uh(Cd(td()||"auto",!1))):Xq("#0000FF","auto")}return mn(()=>{pt.on("toast",y=>{go(r(y))}),pt.on("tap_phone",y=>{i.value=y}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{td()==="auto"&&Yk(Rb())});try{_(),f()}catch(y){console.error(y)}d()}),(y,b)=>{const p=Uy("router-view"),m=T9,g=Ea("click-away");return te(),oe(St,null,[n.value?(te(),oe("div",aB,De(y.$t("fix_disconnect_tips")),1)):yt("",!0),qe(p),(te(),Hr(Qy,{to:"body"},[qe(m),i.value?vt((te(),oe("div",{key:0,class:"tap-phone-container",onClick:c},[V("div",null,De(i.value),1),qe(fe(nB))])),[[g,c]]):yt("",!0)]))],64)}}});const gn=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},lB=gn(sB,[["__scopeId","data-v-9bf56f7e"]]);"serviceWorker"in navigator?navigator.serviceWorker.register("/sw.js").then(t=>{console.log("Service worker registration succeeded:",t)},t=>{console.error(`Service worker registration failed: ${t}`)}):console.error("Service workers are not supported.");const cB="modulepreload",dB=function(t){return"/"+t},S5={},ot=function(e,r,n){if(!r||r.length===0)return e();const i=document.getElementsByTagName("link");return Promise.all(r.map(o=>{if(o=dB(o),o in S5)return;S5[o]=!0;const a=o.endsWith(".css"),c=a?'[rel="stylesheet"]':"";if(!!n)for(let f=i.length-1;f>=0;f--){const _=i[f];if(_.href===o&&(!a||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${c}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":cB,a||(u.as="script",u.crossOrigin=""),u.href=o,document.head.appendChild(u),a)return new Promise((f,_)=>{u.addEventListener("load",f),u.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})};const tl=typeof window<"u";function uB(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Mt=Object.assign;function Tv(t,e){const r={};for(const n in e){const i=e[n];r[n]=yi(i)?i.map(t):t(i)}return r}const rd=()=>{},yi=Array.isArray,fB=/\/$/,pB=t=>t.replace(fB,"");function kv(t,e,r="/"){let n,i={},o="",a="";const c=e.indexOf("#");let d=e.indexOf("?");return c=0&&(d=-1),d>-1&&(n=e.slice(0,d),o=e.slice(d+1,c>-1?c:e.length),i=t(o)),c>-1&&(n=n||e.slice(0,c),a=e.slice(c,e.length)),n=gB(n??e,r),{fullPath:n+(o&&"?")+o+a,path:n,query:i,hash:a}}function hB(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function I5(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function mB(t,e,r){const n=e.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Pl(e.matched[n],r.matched[i])&&eC(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function Pl(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function eC(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!vB(t[r],e[r]))return!1;return!0}function vB(t,e){return yi(t)?$5(t,e):yi(e)?$5(e,t):t===e}function $5(t,e){return yi(e)?t.length===e.length&&t.every((r,n)=>r===e[n]):t.length===1&&t[0]===e}function gB(t,e){if(t.startsWith("/"))return t;if(!t)return e;const r=e.split("/"),n=t.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let o=r.length-1,a,c;for(a=0;a1&&o--;else break;return r.slice(0,o).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var Ad;(function(t){t.pop="pop",t.push="push"})(Ad||(Ad={}));var nd;(function(t){t.back="back",t.forward="forward",t.unknown=""})(nd||(nd={}));function _B(t){if(!t)if(tl){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),pB(t)}const yB=/^[^#]+#/;function bB(t,e){return t.replace(yB,"#")+e}function xB(t,e){const r=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{behavior:e.behavior,left:n.left-r.left-(e.left||0),top:n.top-r.top-(e.top||0)}}const fh=()=>({left:window.pageXOffset,top:window.pageYOffset});function wB(t){let e;if("el"in t){const r=t.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;e=xB(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function O5(t,e){return(history.state?history.state.position-e:-1)+t}const Kg=new Map;function EB(t,e){Kg.set(t,e)}function TB(t){const e=Kg.get(t);return Kg.delete(t),e}let kB=()=>location.protocol+"//"+location.host;function tC(t,e){const{pathname:r,search:n,hash:i}=e,o=t.indexOf("#");if(o>-1){let c=i.includes(t.slice(o))?t.slice(o).length:1,d=i.slice(c);return d[0]!=="/"&&(d="/"+d),I5(d,"")}return I5(r,t)+n+i}function CB(t,e,r,n){let i=[],o=[],a=null;const c=({state:y})=>{const b=tC(t,location),p=r.value,m=e.value;let g=0;if(y){if(r.value=b,e.value=y,a&&a===p){a=null;return}g=m?y.position-m.position:0}else n(b);i.forEach(v=>{v(r.value,p,{delta:g,type:Ad.pop,direction:g?g>0?nd.forward:nd.back:nd.unknown})})};function d(){a=r.value}function u(y){i.push(y);const b=()=>{const p=i.indexOf(y);p>-1&&i.splice(p,1)};return o.push(b),b}function f(){const{history:y}=window;y.state&&y.replaceState(Mt({},y.state,{scroll:fh()}),"")}function _(){for(const y of o)y();o=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:d,listen:u,destroy:_}}function P5(t,e,r,n=!1,i=!1){return{back:t,current:e,forward:r,replaced:n,position:window.history.length,scroll:i?fh():null}}function AB(t){const{history:e,location:r}=window,n={value:tC(t,r)},i={value:e.state};i.value||o(n.value,{back:null,current:n.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function o(d,u,f){const _=t.indexOf("#"),y=_>-1?(r.host&&document.querySelector("base")?t:t.slice(_))+d:kB()+t+d;try{e[f?"replaceState":"pushState"](u,"",y),i.value=u}catch(b){console.error(b),r[f?"replace":"assign"](y)}}function a(d,u){const f=Mt({},e.state,P5(i.value.back,d,i.value.forward,!0),u,{position:i.value.position});o(d,f,!0),n.value=d}function c(d,u){const f=Mt({},i.value,e.state,{forward:d,scroll:fh()});o(f.current,f,!0);const _=Mt({},P5(n.value,d,null),{position:f.position+1},u);o(d,_,!1),n.value=d}return{location:n,state:i,push:c,replace:a}}function SB(t){t=_B(t);const e=AB(t),r=CB(t,e.state,e.location,e.replace);function n(o,a=!0){a||r.pauseListeners(),history.go(o)}const i=Mt({location:"",base:t,go:n,createHref:bB.bind(null,t)},e,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function IB(t){return typeof t=="string"||t&&typeof t=="object"}function rC(t){return typeof t=="string"||typeof t=="symbol"}const Ho={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},nC=Symbol("");var R5;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(R5||(R5={}));function Rl(t,e){return Mt(new Error,{type:t,[nC]:!0},e)}function ao(t,e){return t instanceof Error&&nC in t&&(e==null||!!(t.type&e))}const L5="[^/]+?",$B={sensitive:!1,strict:!1,start:!0,end:!0},OB=/[.+*?^${}()[\]/\\]/g;function PB(t,e){const r=Mt({},$B,e),n=[];let i=r.start?"^":"";const o=[];for(const u of t){const f=u.length?[]:[90];r.strict&&!u.length&&(i+="/");for(let _=0;_e.length?e.length===1&&e[0]===40+40?1:-1:0}function LB(t,e){let r=0;const n=t.score,i=e.score;for(;r0&&e[e.length-1]<0}const MB={type:0,value:""},DB=/[a-zA-Z0-9_]/;function FB(t){if(!t)return[[]];if(t==="/")return[[MB]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(b){throw new Error(`ERR (${r})/"${u}": ${b}`)}let r=0,n=r;const i=[];let o;function a(){o&&i.push(o),o=[]}let c=0,d,u="",f="";function _(){u&&(r===0?o.push({type:0,value:u}):r===1||r===2||r===3?(o.length>1&&(d==="*"||d==="+")&&e(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:f,repeatable:d==="*"||d==="+",optional:d==="*"||d==="?"})):e("Invalid state to consume buffer"),u="")}function y(){u+=d}for(;c{a(x)}:rd}function a(f){if(rC(f)){const _=n.get(f);_&&(n.delete(f),r.splice(r.indexOf(_),1),_.children.forEach(a),_.alias.forEach(a))}else{const _=r.indexOf(f);_>-1&&(r.splice(_,1),f.record.name&&n.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function c(){return r}function d(f){let _=0;for(;_=0&&(f.record.path!==r[_].record.path||!iC(f,r[_]));)_++;r.splice(_,0,f),f.record.name&&!F5(f)&&n.set(f.record.name,f)}function u(f,_){let y,b={},p,m;if("name"in f&&f.name){if(y=n.get(f.name),!y)throw Rl(1,{location:f});m=y.record.name,b=Mt(D5(_.params,y.keys.filter(x=>!x.optional).map(x=>x.name)),f.params&&D5(f.params,y.keys.map(x=>x.name))),p=y.stringify(b)}else if("path"in f)p=f.path,y=r.find(x=>x.re.test(p)),y&&(b=y.parse(p),m=y.record.name);else{if(y=_.name?n.get(_.name):r.find(x=>x.re.test(_.path)),!y)throw Rl(1,{location:f,currentLocation:_});m=y.record.name,b=Mt({},_.params,f.params),p=y.stringify(b)}const g=[];let v=y;for(;v;)g.unshift(v.record),v=v.parent;return{name:m,path:p,params:b,matched:g,meta:UB(g)}}return t.forEach(f=>o(f)),{addRoute:o,resolve:u,removeRoute:a,getRoutes:c,getRecordMatcher:i}}function D5(t,e){const r={};for(const n of e)n in t&&(r[n]=t[n]);return r}function qB(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:BB(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function BB(t){const e={},r=t.props||!1;if("component"in t)e.default=r;else for(const n in t.components)e[n]=typeof r=="object"?r[n]:r;return e}function F5(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function UB(t){return t.reduce((e,r)=>Mt(e,r.meta),{})}function N5(t,e){const r={};for(const n in t)r[n]=n in e?e[n]:t[n];return r}function iC(t,e){return e.children.some(r=>r===t||iC(t,r))}const oC=/#/g,VB=/&/g,jB=/\//g,HB=/=/g,GB=/\?/g,aC=/\+/g,WB=/%5B/g,QB=/%5D/g,sC=/%5E/g,KB=/%60/g,lC=/%7B/g,YB=/%7C/g,cC=/%7D/g,ZB=/%20/g;function Fb(t){return encodeURI(""+t).replace(YB,"|").replace(WB,"[").replace(QB,"]")}function XB(t){return Fb(t).replace(lC,"{").replace(cC,"}").replace(sC,"^")}function Yg(t){return Fb(t).replace(aC,"%2B").replace(ZB,"+").replace(oC,"%23").replace(VB,"%26").replace(KB,"`").replace(lC,"{").replace(cC,"}").replace(sC,"^")}function JB(t){return Yg(t).replace(HB,"%3D")}function eU(t){return Fb(t).replace(oC,"%23").replace(GB,"%3F")}function tU(t){return t==null?"":eU(t).replace(jB,"%2F")}function wp(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function rU(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;io&&Yg(o)):[n&&Yg(n)]).forEach(o=>{o!==void 0&&(e+=(e.length?"&":"")+r,o!=null&&(e+="="+o))})}return e}function nU(t){const e={};for(const r in t){const n=t[r];n!==void 0&&(e[r]=yi(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return e}const iU=Symbol(""),q5=Symbol(""),ph=Symbol(""),Nb=Symbol(""),Zg=Symbol("");function Lc(){let t=[];function e(n){return t.push(n),()=>{const i=t.indexOf(n);i>-1&&t.splice(i,1)}}function r(){t=[]}return{add:e,list:()=>t.slice(),reset:r}}function Jo(t,e,r,n,i){const o=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((a,c)=>{const d=_=>{_===!1?c(Rl(4,{from:r,to:e})):_ instanceof Error?c(_):IB(_)?c(Rl(2,{from:e,to:_})):(o&&n.enterCallbacks[i]===o&&typeof _=="function"&&o.push(_),a())},u=t.call(n&&n.instances[i],e,r,d);let f=Promise.resolve(u);t.length<3&&(f=f.then(d)),f.catch(_=>c(_))})}function Cv(t,e,r,n){const i=[];for(const o of t)for(const a in o.components){let c=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(oU(c)){const u=(c.__vccOpts||c)[e];u&&i.push(Jo(u,r,n,o,a))}else{let d=c();i.push(()=>d.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${o.path}"`));const f=uB(u)?u.default:u;o.components[a]=f;const y=(f.__vccOpts||f)[e];return y&&Jo(y,r,n,o,a)()}))}}return i}function oU(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function B5(t){const e=rn(ph),r=rn(Nb),n=It(()=>e.resolve(fe(t.to))),i=It(()=>{const{matched:d}=n.value,{length:u}=d,f=d[u-1],_=r.matched;if(!f||!_.length)return-1;const y=_.findIndex(Pl.bind(null,f));if(y>-1)return y;const b=U5(d[u-2]);return u>1&&U5(f)===b&&_[_.length-1].path!==b?_.findIndex(Pl.bind(null,d[u-2])):y}),o=It(()=>i.value>-1&&cU(r.params,n.value.params)),a=It(()=>i.value>-1&&i.value===r.matched.length-1&&eC(r.params,n.value.params));function c(d={}){return lU(d)?e[fe(t.replace)?"replace":"push"](fe(t.to)).catch(rd):Promise.resolve()}return{route:n,href:It(()=>n.value.href),isActive:o,isExactActive:a,navigate:c}}const aU=Bt({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"}},useLink:B5,setup(t,{slots:e}){const r=gi(B5(t)),{options:n}=rn(ph),i=It(()=>({[V5(t.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[V5(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const o=e.default&&e.default(r);return t.custom?o:Ni("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},o)}}}),sU=aU;function lU(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function cU(t,e){for(const r in e){const n=e[r],i=t[r];if(typeof n=="string"){if(n!==i)return!1}else if(!yi(i)||i.length!==n.length||n.some((o,a)=>o!==i[a]))return!1}return!0}function U5(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const V5=(t,e,r)=>t??e??r,dU=Bt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const n=rn(Zg),i=It(()=>t.route||n.value),o=rn(q5,0),a=It(()=>{let u=fe(o);const{matched:f}=i.value;let _;for(;(_=f[u])&&!_.components;)u++;return u}),c=It(()=>i.value.matched[a.value]);jc(q5,It(()=>a.value+1)),jc(iU,c),jc(Zg,i);const d=Se();return Vt(()=>[d.value,c.value,t.name],([u,f,_],[y,b,p])=>{f&&(f.instances[_]=u,b&&b!==f&&u&&u===y&&(f.leaveGuards.size||(f.leaveGuards=b.leaveGuards),f.updateGuards.size||(f.updateGuards=b.updateGuards))),u&&f&&(!b||!Pl(f,b)||!y)&&(f.enterCallbacks[_]||[]).forEach(m=>m(u))},{flush:"post"}),()=>{const u=i.value,f=t.name,_=c.value,y=_&&_.components[f];if(!y)return j5(r.default,{Component:y,route:u});const b=_.props[f],p=b?b===!0?u.params:typeof b=="function"?b(u):b:null,g=Ni(y,Mt({},p,e,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(_.instances[f]=null)},ref:d}));return j5(r.default,{Component:g,route:u})||g}}});function j5(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const uU=dU;function fU(t){const e=zB(t.routes,t),r=t.parseQuery||rU,n=t.stringifyQuery||z5,i=t.history,o=Lc(),a=Lc(),c=Lc(),d=XR(Ho);let u=Ho;tl&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Tv.bind(null,J=>""+J),_=Tv.bind(null,tU),y=Tv.bind(null,wp);function b(J,me){let ve,$e;return rC(J)?(ve=e.getRecordMatcher(J),$e=me):$e=J,e.addRoute($e,ve)}function p(J){const me=e.getRecordMatcher(J);me&&e.removeRoute(me)}function m(){return e.getRoutes().map(J=>J.record)}function g(J){return!!e.getRecordMatcher(J)}function v(J,me){if(me=Mt({},me||d.value),typeof J=="string"){const I=kv(r,J,me.path),N=e.resolve({path:I.path},me),G=i.createHref(I.fullPath);return Mt(I,N,{params:y(N.params),hash:wp(I.hash),redirectedFrom:void 0,href:G})}let ve;if("path"in J)ve=Mt({},J,{path:kv(r,J.path,me.path).path});else{const I=Mt({},J.params);for(const N in I)I[N]==null&&delete I[N];ve=Mt({},J,{params:_(I)}),me.params=_(me.params)}const $e=e.resolve(ve,me),Oe=J.hash||"";$e.params=f(y($e.params));const M=hB(n,Mt({},J,{hash:XB(Oe),path:$e.path})),k=i.createHref(M);return Mt({fullPath:M,hash:Oe,query:n===z5?nU(J.query):J.query||{}},$e,{redirectedFrom:void 0,href:k})}function x(J){return typeof J=="string"?kv(r,J,d.value.path):Mt({},J)}function E(J,me){if(u!==J)return Rl(8,{from:me,to:J})}function T(J){return L(J)}function C(J){return T(Mt(x(J),{replace:!0}))}function A(J){const me=J.matched[J.matched.length-1];if(me&&me.redirect){const{redirect:ve}=me;let $e=typeof ve=="function"?ve(J):ve;return typeof $e=="string"&&($e=$e.includes("?")||$e.includes("#")?$e=x($e):{path:$e},$e.params={}),Mt({query:J.query,hash:J.hash,params:"path"in $e?{}:J.params},$e)}}function L(J,me){const ve=u=v(J),$e=d.value,Oe=J.state,M=J.force,k=J.replace===!0,I=A(ve);if(I)return L(Mt(x(I),{state:typeof I=="object"?Mt({},Oe,I.state):Oe,force:M,replace:k}),me||ve);const N=ve;N.redirectedFrom=me;let G;return!M&&mB(n,$e,ve)&&(G=Rl(16,{to:N,from:$e}),we($e,$e,!0,!1)),(G?Promise.resolve(G):q(N,$e)).catch(Y=>ao(Y)?ao(Y,2)?Y:de(Y):Pe(Y,N,$e)).then(Y=>{if(Y){if(ao(Y,2))return L(Mt({replace:k},x(Y.to),{state:typeof Y.to=="object"?Mt({},Oe,Y.to.state):Oe,force:M}),me||N)}else Y=U(N,$e,!0,k,Oe);return H(N,$e,Y),Y})}function R(J,me){const ve=E(J,me);return ve?Promise.reject(ve):Promise.resolve()}function D(J){const me=He.values().next().value;return me&&typeof me.runWithContext=="function"?me.runWithContext(J):J()}function q(J,me){let ve;const[$e,Oe,M]=pU(J,me);ve=Cv($e.reverse(),"beforeRouteLeave",J,me);for(const I of $e)I.leaveGuards.forEach(N=>{ve.push(Jo(N,J,me))});const k=R.bind(null,J,me);return ve.push(k),Ge(ve).then(()=>{ve=[];for(const I of o.list())ve.push(Jo(I,J,me));return ve.push(k),Ge(ve)}).then(()=>{ve=Cv(Oe,"beforeRouteUpdate",J,me);for(const I of Oe)I.updateGuards.forEach(N=>{ve.push(Jo(N,J,me))});return ve.push(k),Ge(ve)}).then(()=>{ve=[];for(const I of M)if(I.beforeEnter)if(yi(I.beforeEnter))for(const N of I.beforeEnter)ve.push(Jo(N,J,me));else ve.push(Jo(I.beforeEnter,J,me));return ve.push(k),Ge(ve)}).then(()=>(J.matched.forEach(I=>I.enterCallbacks={}),ve=Cv(M,"beforeRouteEnter",J,me),ve.push(k),Ge(ve))).then(()=>{ve=[];for(const I of a.list())ve.push(Jo(I,J,me));return ve.push(k),Ge(ve)}).catch(I=>ao(I,8)?I:Promise.reject(I))}function H(J,me,ve){c.list().forEach($e=>D(()=>$e(J,me,ve)))}function U(J,me,ve,$e,Oe){const M=E(J,me);if(M)return M;const k=me===Ho,I=tl?history.state:{};ve&&($e||k?i.replace(J.fullPath,Mt({scroll:k&&I&&I.scroll},Oe)):i.push(J.fullPath,Oe)),d.value=J,we(J,me,ve,k),de()}let ce;function Ae(){ce||(ce=i.listen((J,me,ve)=>{if(!ze.listening)return;const $e=v(J),Oe=A($e);if(Oe){L(Mt(Oe,{replace:!0}),$e).catch(rd);return}u=$e;const M=d.value;tl&&EB(O5(M.fullPath,ve.delta),fh()),q($e,M).catch(k=>ao(k,12)?k:ao(k,2)?(L(k.to,$e).then(I=>{ao(I,20)&&!ve.delta&&ve.type===Ad.pop&&i.go(-1,!1)}).catch(rd),Promise.reject()):(ve.delta&&i.go(-ve.delta,!1),Pe(k,$e,M))).then(k=>{k=k||U($e,M,!1),k&&(ve.delta&&!ao(k,8)?i.go(-ve.delta,!1):ve.type===Ad.pop&&ao(k,20)&&i.go(-1,!1)),H($e,M,k)}).catch(rd)}))}let Le=Lc(),Te=Lc(),Ie;function Pe(J,me,ve){de(J);const $e=Te.list();return $e.length?$e.forEach(Oe=>Oe(J,me,ve)):console.error(J),Promise.reject(J)}function Ce(){return Ie&&d.value!==Ho?Promise.resolve():new Promise((J,me)=>{Le.add([J,me])})}function de(J){return Ie||(Ie=!J,Ae(),Le.list().forEach(([me,ve])=>J?ve(J):me()),Le.reset()),J}function we(J,me,ve,$e){const{scrollBehavior:Oe}=t;if(!tl||!Oe)return Promise.resolve();const M=!ve&&TB(O5(J.fullPath,0))||($e||!ve)&&history.state&&history.state.scroll||null;return ra().then(()=>Oe(J,me,M)).then(k=>k&&wB(k)).catch(k=>Pe(k,J,me))}const ke=J=>i.go(J);let Re;const He=new Set,ze={currentRoute:d,listening:!0,addRoute:b,removeRoute:p,hasRoute:g,getRoutes:m,resolve:v,options:t,push:T,replace:C,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:o.add,beforeResolve:a.add,afterEach:c.add,onError:Te.add,isReady:Ce,install(J){const me=this;J.component("RouterLink",sU),J.component("RouterView",uU),J.config.globalProperties.$router=me,Object.defineProperty(J.config.globalProperties,"$route",{enumerable:!0,get:()=>fe(d)}),tl&&!Re&&d.value===Ho&&(Re=!0,T(i.location).catch(Oe=>{}));const ve={};for(const Oe in Ho)Object.defineProperty(ve,Oe,{get:()=>d.value[Oe],enumerable:!0});J.provide(ph,me),J.provide(Nb,lT(ve)),J.provide(Zg,d);const $e=J.unmount;He.add(J),J.unmount=function(){He.delete(J),He.size<1&&(u=Ho,ce&&ce(),ce=null,d.value=Ho,Re=!1,Ie=!1),$e()}}};function Ge(J){return J.reduce((me,ve)=>me.then(()=>D(ve)),Promise.resolve())}return ze}function pU(t,e){const r=[],n=[],i=[],o=Math.max(e.matched.length,t.matched.length);for(let a=0;aPl(u,c))?n.push(c):r.push(c));const d=t.matched[a];d&&(e.matched.find(u=>Pl(u,d))||i.push(d))}return[r,n,i]}function hU(){return rn(ph)}function zve(){return rn(Nb)}let dC;const hh=t=>dC=t,uC=Symbol();function Xg(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var id;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(id||(id={}));function mU(){const t=Iy(!0),e=t.run(()=>Se({}));let r=[],n=[];const i=zd({install(o){hh(i),i._a=o,o.provide(uC,i),o.config.globalProperties.$pinia=i,n.forEach(a=>r.push(a)),n=[]},use(o){return!this._a&&!JM?n.push(o):r.push(o),this},_p:r,_a:null,_e:t,_s:new Map,state:e});return i}const fC=()=>{};function H5(t,e,r,n=fC){t.push(e);const i=()=>{const o=t.indexOf(e);o>-1&&(t.splice(o,1),n())};return!r&&$y()&&TR(i),i}function Qs(t,...e){t.slice().forEach(r=>{r(...e)})}const vU=t=>t();function Jg(t,e){t instanceof Map&&e instanceof Map&&e.forEach((r,n)=>t.set(n,r)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const r in e){if(!e.hasOwnProperty(r))continue;const n=e[r],i=t[r];Xg(i)&&Xg(n)&&t.hasOwnProperty(r)&&!Rt(n)&&!po(n)?t[r]=Jg(i,n):t[r]=n}return t}const gU=Symbol();function _U(t){return!Xg(t)||!t.hasOwnProperty(gU)}const{assign:Ko}=Object;function yU(t){return!!(Rt(t)&&t.effect)}function bU(t,e,r,n){const{state:i,actions:o,getters:a}=e,c=r.state.value[t];let d;function u(){c||(r.state.value[t]=i?i():{});const f=Vp(r.state.value[t]);return Ko(f,o,Object.keys(a||{}).reduce((_,y)=>(_[y]=zd(It(()=>{hh(r);const b=r._s.get(t);return a[y].call(b,b)})),_),{}))}return d=pC(t,u,e,r,n,!0),d}function pC(t,e,r={},n,i,o){let a;const c=Ko({actions:{}},r),d={deep:!0};let u,f,_=[],y=[],b;const p=n.state.value[t];!o&&!p&&(n.state.value[t]={}),Se({});let m;function g(R){let D;u=f=!1,typeof R=="function"?(R(n.state.value[t]),D={type:id.patchFunction,storeId:t,events:b}):(Jg(n.state.value[t],R),D={type:id.patchObject,payload:R,storeId:t,events:b});const q=m=Symbol();ra().then(()=>{m===q&&(u=!0)}),f=!0,Qs(_,D,n.state.value[t])}const v=o?function(){const{state:D}=r,q=D?D():{};this.$patch(H=>{Ko(H,q)})}:fC;function x(){a.stop(),_=[],y=[],n._s.delete(t)}function E(R,D){return function(){hh(n);const q=Array.from(arguments),H=[],U=[];function ce(Te){H.push(Te)}function Ae(Te){U.push(Te)}Qs(y,{args:q,name:R,store:C,after:ce,onError:Ae});let Le;try{Le=D.apply(this&&this.$id===t?this:C,q)}catch(Te){throw Qs(U,Te),Te}return Le instanceof Promise?Le.then(Te=>(Qs(H,Te),Te)).catch(Te=>(Qs(U,Te),Promise.reject(Te))):(Qs(H,Le),Le)}}const T={_p:n,$id:t,$onAction:H5.bind(null,y),$patch:g,$reset:v,$subscribe(R,D={}){const q=H5(_,R,D.detached,()=>H()),H=a.run(()=>Vt(()=>n.state.value[t],U=>{(D.flush==="sync"?f:u)&&R({storeId:t,type:id.direct,events:b},U)},Ko({},d,D)));return q},$dispose:x},C=gi(T);n._s.set(t,C);const A=n._a&&n._a.runWithContext||vU,L=n._e.run(()=>(a=Iy(),A(()=>a.run(e))));for(const R in L){const D=L[R];if(Rt(D)&&!yU(D)||po(D))o||(p&&_U(D)&&(Rt(D)?D.value=p[R]:Jg(D,p[R])),n.state.value[t][R]=D);else if(typeof D=="function"){const q=E(R,D);L[R]=q,c.actions[R]=D}}return Ko(C,L),Ko(bt(C),L),Object.defineProperty(C,"$state",{get:()=>n.state.value[t],set:R=>{g(D=>{Ko(D,R)})}}),n._p.forEach(R=>{Ko(C,a.run(()=>R({store:C,app:n._a,pinia:n,options:c})))}),p&&o&&r.hydrate&&r.hydrate(C.$state,p),u=!0,f=!0,C}function hC(t,e,r){let n,i;const o=typeof e=="function";typeof t=="string"?(n=t,i=o?r:e):(i=t,n=t.id);function a(c,d){const u=VL();return c=c||(u?rn(uC,null):null),c&&hh(c),c=dC,c._s.has(n)||(o?pC(n,e,i,c):bU(n,i,c)),c._s.get(n)}return a.$id=n,a}function ba(t){{t=bt(t);const e={};for(const r in t){const n=t[r];(Rt(n)||po(n))&&(e[r]=nL(t,r))}return e}}const Gd=hC({id:"main",state:()=>({fileShowHidden:!1,chatText:"",quick:"chat",noteExpand:!0,pages:[],audios:[],audioPlaying:null,lightboxInfoVisible:!1,videoViewType:"grid",imageViewType:"grid",fileSortBy:"NAME_ASC",imageSortBy:"DATE_DESC",videoSortBy:"DATE_DESC",audioSortBy:"DATE_DESC",json:"",qrCode:"",callNumber:""}),actions:{replaceRoute(t,e){const r=this.pages.indexOf(t);r!==-1&&this.pages.splice(r,1,e)}}});var xU=typeof global=="object"&&global&&global.Object===Object&&global;const mC=xU;var wU=typeof self=="object"&&self&&self.Object===Object&&self,EU=mC||wU||Function("return this")();const Eo=EU;var TU=Eo.Symbol;const Ui=TU;var vC=Object.prototype,kU=vC.hasOwnProperty,CU=vC.toString,Mc=Ui?Ui.toStringTag:void 0;function AU(t){var e=kU.call(t,Mc),r=t[Mc];try{t[Mc]=void 0;var n=!0}catch{}var i=CU.call(t);return n&&(e?t[Mc]=r:delete t[Mc]),i}var SU=Object.prototype,IU=SU.toString;function $U(t){return IU.call(t)}var OU="[object Null]",PU="[object Undefined]",G5=Ui?Ui.toStringTag:void 0;function ws(t){return t==null?t===void 0?PU:OU:G5&&G5 in Object(t)?AU(t):$U(t)}function xa(t){return t!=null&&typeof t=="object"}var RU="[object Symbol]";function Ll(t){return typeof t=="symbol"||xa(t)&&ws(t)==RU}function gl(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r0){if(++e>=fV)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function vV(t){return function(){return t}}var gV=function(){try{var t=Ts(Object,"defineProperty");return t({},"",{}),t}catch{}}();const X5=gV;var _V=X5?function(t,e){return X5(t,"toString",{configurable:!0,enumerable:!1,value:vV(e),writable:!0})}:mh;const yV=_V;var bV=mV(yV);const xV=bV;function _C(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o-1}var CV=9007199254740991,AV=/^(?:0|[1-9]\d*)$/;function vh(t,e){var r=typeof t;return e=e??CV,!!e&&(r=="number"||r!="symbol"&&AV.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=IV}function Wd(t){return t!=null&&Bb(t.length)&&!gC(t)}function t_(t,e,r){if(!ms(r))return!1;var n=typeof e;return(n=="number"?Wd(r)&&vh(e,r.length):n=="string"&&e in r)?qb(r[e],t):!1}var $V=Object.prototype;function OV(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||$V;return t===r}function PV(t,e){for(var r=-1,n=Array(t);++r-1}function jj(t,e){var r=this.__data__,n=_h(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function To(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e0&&r(c)?e>1?kC(c,e-1,r,n,i):TC(i,c):n||(i[i.length]=c)}return i}function Gb(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),r=r>i?i:r,r<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n=n?t:Gb(t,e,r)}var cH="\\ud800-\\udfff",dH="\\u0300-\\u036f",uH="\\ufe20-\\ufe2f",fH="\\u20d0-\\u20ff",pH=dH+uH+fH,hH="\\ufe0e\\ufe0f",mH="\\u200d",vH=RegExp("["+mH+cH+pH+hH+"]");function Wb(t){return vH.test(t)}function gH(t){return t.split("")}var CC="\\ud800-\\udfff",_H="\\u0300-\\u036f",yH="\\ufe20-\\ufe2f",bH="\\u20d0-\\u20ff",xH=_H+yH+bH,wH="\\ufe0e\\ufe0f",EH="["+CC+"]",n_="["+xH+"]",i_="\\ud83c[\\udffb-\\udfff]",TH="(?:"+n_+"|"+i_+")",AC="[^"+CC+"]",SC="(?:\\ud83c[\\udde6-\\uddff]){2}",IC="[\\ud800-\\udbff][\\udc00-\\udfff]",kH="\\u200d",$C=TH+"?",OC="["+wH+"]?",CH="(?:"+kH+"(?:"+[AC,SC,IC].join("|")+")"+OC+$C+")*",AH=OC+$C+CH,SH="(?:"+[AC+n_+"?",n_,SC,IC,EH].join("|")+")",IH=RegExp(i_+"(?="+i_+")|"+SH+AH,"g");function $H(t){return t.match(IH)||[]}function OH(t){return Wb(t)?$H(t):gH(t)}function PH(t,e,r,n){var i=-1,o=t==null?0:t.length;for(n&&o&&(r=t[++i]);++ic))return!1;var u=o.get(t),f=o.get(e);if(u&&f)return u==e&&f==t;var _=-1,y=!0,b=r&JG?new Od:void 0;for(o.set(t,e),o.set(e,t);++_=HW&&(o=HC,a=!1,e=new Od(e));e:for(;++ie||o&&a&&d&&!c&&!u||n&&a&&d||!r&&d||!i)return 1;if(!n&&!o&&!u&&t=c)return d;var u=r[n];return d*(u=="desc"?-1:1)}}return t.index-e.index}function cQ(t,e,r){e.length?e=gl(e,function(o){return Yn(o)?function(a){return bh(a,o.length===1?o[0]:o)}:o}):e=[mh];var n=-1;e=gl(e,gh(Kb));var i=YW(t,function(o,a,c){var d=gl(e,function(u){return u(o)});return{criteria:d,index:++n,value:o}});return aQ(i,function(o,a){return lQ(o,a,r)})}var dQ=KC("length");const uQ=dQ;var ZC="\\ud800-\\udfff",fQ="\\u0300-\\u036f",pQ="\\ufe20-\\ufe2f",hQ="\\u20d0-\\u20ff",mQ=fQ+pQ+hQ,vQ="\\ufe0e\\ufe0f",gQ="["+ZC+"]",l_="["+mQ+"]",c_="\\ud83c[\\udffb-\\udfff]",_Q="(?:"+l_+"|"+c_+")",XC="[^"+ZC+"]",JC="(?:\\ud83c[\\udde6-\\uddff]){2}",eA="[\\ud800-\\udbff][\\udc00-\\udfff]",yQ="\\u200d",tA=_Q+"?",rA="["+vQ+"]?",bQ="(?:"+yQ+"(?:"+[XC,JC,eA].join("|")+")"+rA+tA+")*",xQ=rA+tA+bQ,wQ="(?:"+[XC+l_+"?",l_,JC,eA,gQ].join("|")+")",E4=RegExp(c_+"(?="+c_+")|"+wQ+xQ,"g");function EQ(t){for(var e=E4.lastIndex=0;E4.test(t);)++e;return e}function TQ(t){return Wb(t)?EQ(t):uQ(t)}var kQ=Array.prototype,CQ=kQ.splice;function AQ(t,e){for(var r=t?e.length:0,n=r-1;r--;){var i=e[r];if(r==n||i!==o){var o=i;vh(i)?CQ.call(t,i,1):oQ(t,i)}}return t}var SQ=Math.floor,IQ=Math.random;function $Q(t,e){return t+SQ(IQ()*(e-t+1))}function gs(t,e){var r=[];if(!(t&&t.length))return r;var n=-1,i=[],o=t.length;for(e=Kb(e);++n1&&t_(t,e[0],e[1])?e=[]:r>2&&t_(e[0],e[1],e[2])&&(e=[e[0]]),cQ(t,kC(e,1),[])});const LQ=RQ;var MQ=30,DQ="...",FQ=/\w*$/;function NQ(t,e){var r=MQ,n=DQ;if(ms(e)){var i="separator"in e?e.separator:i;r="length"in e?zb(e.length):r,n="omission"in e?Ep(e.omission):n}t=$d(t);var o=t.length;if(Wb(t)){var a=OH(t);o=a.length}if(r>=o)return t;var c=r-TQ(n);if(c<1)return n;var d=a?lH(a,0,c).join(""):t.slice(0,c);if(i===void 0)return d+n;if(a&&(c+=d.length-c),nQ(i)){if(t.slice(c).search(i)){var u,f=d;for(i.global||(i=RegExp(i.source,$d(FQ.exec(i))+"g")),i.lastIndex=0;u=i.exec(f);)var _=u.index;d=d.slice(0,_===void 0?c:_)}}else if(t.indexOf(Ep(i),c)!=c){var y=d.lastIndexOf(i);y>-1&&(d=d.slice(0,y))}return d+n}var zQ=yC(function(t,e){return VW(t)?GW(t,e):[]});const qQ=zQ,BQ=/(?:[^\s"]+|"[^"]*")+/g,T4=":",kp="NOT",iA={"=":"!=",">=":"<",">":"<=","!=":"=","<=":">","<":">=",in:"nin",nin:"in"},UQ=qQ(Qd(iA),"in","nin");function VQ(t){return t.match(BQ)}function k4(t){return t.replace(/['"]+/g,"")}function jQ(t){return UQ.find(e=>t.indexOf(e)===0)||""}function HQ(t){const e=t.split(T4),r=k4(e[0]),n=k4(e.slice(1).join(T4)),i=jQ(n),o=n.slice(i.length);return{length:e.length,field:r,query:n,op:i,value:o}}function GQ(t){if(t==kp)return{name:"",op:kp,value:""};const e=HQ(t);return e.field=="is"?{name:e.query,op:"",value:"true"}:e.length==1?{name:"text",op:"",value:e.field}:{name:e.field,op:e.op,value:e.value}}const WQ=t=>{var n;const e=(n=VQ(t))==null?void 0:n.map(i=>GQ(i));if(!e)return[];let r=!1;return e.forEach(i=>{i.op==kp?r=!0:r&&(i.op=iA[i.op]||"",r=!1)}),e.filter(i=>i.op!==kp)},Yb=t=>{const e=[];return t.forEach(r=>{const n=r.value;r.name==="text"?n.indexOf(" ")!==-1?e.push(`"${n}"`):e.push(n):n.indexOf(" ")!==-1?e.push(`${r.name}:${r.op}"${n}"`):e.push(`${r.name}:${r.op}${n}`)}),e.join(" ")},QQ=t=>{var r;const e=Se(xq(((r=t.q)==null?void 0:r.toString())??""));return WQ(e.value)},oA=(t,e)=>{var n;const r=QQ(t);return r.length===1?((n=r.find(i=>i.name===e))==null?void 0:n.value)??"":""},qve=t=>oA(t,"tag"),Bve=t=>oA(t,"feed"),Uve=t=>{const e=[];t.bucketId&&e.push({name:"bucket_id",op:"",value:t.bucketId});for(const r of t.tags)e.push({name:"tag",op:"",value:YC(r.name)});return t.text&&e.push({name:"text",op:"",value:t.text}),Yb(e)},KQ={NOTE:"notes",AUDIO:"audios",IMAGE:"images",VIDEO:"videos",FEED_ENTRY:"feeds",SMS:"messages",CALL:"calls",CONTACT:"contacts",AI_CHAT:"aichats"},YQ={class:"tags"},ZQ=["onClick"],XQ=Bt({__name:"ItemTags",props:{type:{type:String},tags:{type:Object,default:[],required:!0}},setup(t){const e=t,r=Gd();function n(i){if(!e.type)return;const o=Yb([{name:"tag",op:"",value:YC(i.name)}]);Uie(r,`/${KQ[e.type]}?q=${Gg(o)}`)}return(i,o)=>(te(),oe("div",YQ,[(te(!0),oe(St,null,Ei(t.tags,a=>(te(),oe("span",{class:"badge",onClick:Pt(c=>n(a),["stop"])},De(a.name),9,ZQ))),256))]))}}),JQ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},eK=V("path",{fill:"currentColor",d:"M5 19q-.825 0-1.413-.588T3 17V7q0-.825.588-1.413T5 5h10q.5 0 .938.225t.712.625l3.525 5q.35.525.35 1.15t-.35 1.15l-3.525 5q-.275.4-.712.625T15 19H5Zm13.55-7L15 7H5v10h10l3.55-5ZM5 12v5V7v5Z"},null,-1),tK=[eK];function rK(t,e){return te(),oe("svg",JQ,tK)}const nK={name:"material-symbols-label-outline-rounded",render:rK},iK={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},oK=V("path",{fill:"currentColor",d:"M12 15.575q-.2 0-.375-.062T11.3 15.3l-3.6-3.6q-.275-.275-.275-.7t.275-.7q.275-.275.713-.287t.712.262L11 12.15V5q0-.425.288-.713T12 4q.425 0 .713.288T13 5v7.15l1.875-1.875q.275-.275.713-.263t.712.288q.275.275.275.7t-.275.7l-3.6 3.6q-.15.15-.325.213t-.375.062ZM6 20q-.825 0-1.413-.588T4 18v-2q0-.425.288-.713T5 15q.425 0 .713.288T6 16v2h12v-2q0-.425.288-.713T19 15q.425 0 .713.288T20 16v2q0 .825-.588 1.413T18 20H6Z"},null,-1),aK=[oK];function sK(t,e){return te(),oe("svg",iK,aK)}const lK={name:"material-symbols-download-rounded",render:sK},cK={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},dK=V("path",{fill:"currentColor",d:"M7 21q-.825 0-1.413-.588T5 19V6q-.425 0-.713-.288T4 5q0-.425.288-.713T5 4h4q0-.425.288-.713T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5q0 .425-.288.713T19 6v13q0 .825-.588 1.413T17 21H7ZM7 6v13h10V6H7Zm0 0v13V6Zm5 7.9l1.9 1.9q.3.275.713.275t.687-.275q.3-.3.3-.713t-.3-.687l-1.9-1.9l1.9-1.9q.3-.3.3-.713t-.3-.687q-.275-.3-.688-.3t-.712.3L12 11.1l-1.9-1.9q-.275-.3-.688-.3t-.712.3q-.275.275-.275.688t.275.712l1.9 1.9l-1.9 1.9q-.275.275-.275.688t.275.712q.3.275.713.275t.687-.275l1.9-1.9Z"},null,-1),uK=[dK];function fK(t,e){return te(),oe("svg",cK,uK)}const Zb={name:"material-symbols-delete-forever-outline-rounded",render:fK};const pK={},hK={class:"popper-arrow","data-popper-arrow":""};function mK(t,e){return te(),oe("div",hK)}const vK=gn(pK,[["render",mK],["__scopeId","data-v-61211ab1"]]);function gK(t,e,r){let n=null;const i=Se(!1);mn(()=>{(t.content!==void 0||r.value)&&(i.value=!0),n=new MutationObserver(o),n.observe(e.value,{childList:!0,subtree:!0})}),Hi(()=>n==null?void 0:n.disconnect()),Vt(r,a=>{a?i.value=!0:i.value=!1});const o=()=>{t.content?i.value=!0:i.value=!1};return{hasContent:i}}function Zn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function _s(t){var e=Zn(t).Element;return t instanceof e||t instanceof Element}function Qn(t){var e=Zn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Xb(t){if(typeof ShadowRoot>"u")return!1;var e=Zn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var us=Math.max,Cp=Math.min,Ml=Math.round;function d_(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function aA(){return!/^((?!chrome|android).)*safari/i.test(d_())}function Dl(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),i=1,o=1;e&&Qn(t)&&(i=t.offsetWidth>0&&Ml(n.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Ml(n.height)/t.offsetHeight||1);var a=_s(t)?Zn(t):window,c=a.visualViewport,d=!aA()&&r,u=(n.left+(d&&c?c.offsetLeft:0))/i,f=(n.top+(d&&c?c.offsetTop:0))/o,_=n.width/i,y=n.height/o;return{width:_,height:y,top:f,right:u+_,bottom:f+y,left:u,x:u,y:f}}function Jb(t){var e=Zn(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function _K(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function yK(t){return t===Zn(t)||!Qn(t)?Jb(t):_K(t)}function Vi(t){return t?(t.nodeName||"").toLowerCase():null}function Aa(t){return((_s(t)?t.ownerDocument:t.document)||window.document).documentElement}function e0(t){return Dl(Aa(t)).left+Jb(t).scrollLeft}function _o(t){return Zn(t).getComputedStyle(t)}function t0(t){var e=_o(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function bK(t){var e=t.getBoundingClientRect(),r=Ml(e.width)/t.offsetWidth||1,n=Ml(e.height)/t.offsetHeight||1;return r!==1||n!==1}function xK(t,e,r){r===void 0&&(r=!1);var n=Qn(e),i=Qn(e)&&bK(e),o=Aa(e),a=Dl(t,i,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(n||!n&&!r)&&((Vi(e)!=="body"||t0(o))&&(c=yK(e)),Qn(e)?(d=Dl(e,!0),d.x+=e.clientLeft,d.y+=e.clientTop):o&&(d.x=e0(o))),{x:a.left+c.scrollLeft-d.x,y:a.top+c.scrollTop-d.y,width:a.width,height:a.height}}function r0(t){var e=Dl(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function xh(t){return Vi(t)==="html"?t:t.assignedSlot||t.parentNode||(Xb(t)?t.host:null)||Aa(t)}function sA(t){return["html","body","#document"].indexOf(Vi(t))>=0?t.ownerDocument.body:Qn(t)&&t0(t)?t:sA(xh(t))}function ad(t,e){var r;e===void 0&&(e=[]);var n=sA(t),i=n===((r=t.ownerDocument)==null?void 0:r.body),o=Zn(n),a=i?[o].concat(o.visualViewport||[],t0(n)?n:[]):n,c=e.concat(a);return i?c:c.concat(ad(xh(a)))}function wK(t){return["table","td","th"].indexOf(Vi(t))>=0}function C4(t){return!Qn(t)||_o(t).position==="fixed"?null:t.offsetParent}function EK(t){var e=/firefox/i.test(d_()),r=/Trident/i.test(d_());if(r&&Qn(t)){var n=_o(t);if(n.position==="fixed")return null}var i=xh(t);for(Xb(i)&&(i=i.host);Qn(i)&&["html","body"].indexOf(Vi(i))<0;){var o=_o(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Yd(t){for(var e=Zn(t),r=C4(t);r&&wK(r)&&_o(r).position==="static";)r=C4(r);return r&&(Vi(r)==="html"||Vi(r)==="body"&&_o(r).position==="static")?e:r||EK(t)||e}var Sn="top",bi="bottom",xi="right",In="left",n0="auto",Zd=[Sn,bi,xi,In],Fl="start",Pd="end",TK="clippingParents",lA="viewport",Dc="popper",kK="reference",A4=Zd.reduce(function(t,e){return t.concat([e+"-"+Fl,e+"-"+Pd])},[]),cA=[].concat(Zd,[n0]).reduce(function(t,e){return t.concat([e,e+"-"+Fl,e+"-"+Pd])},[]),CK="beforeRead",AK="read",SK="afterRead",IK="beforeMain",$K="main",OK="afterMain",PK="beforeWrite",RK="write",LK="afterWrite",MK=[CK,AK,SK,IK,$K,OK,PK,RK,LK];function DK(t){var e=new Map,r=new Set,n=[];t.forEach(function(o){e.set(o.name,o)});function i(o){r.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(c){if(!r.has(c)){var d=e.get(c);d&&i(d)}}),n.push(o)}return t.forEach(function(o){r.has(o.name)||i(o)}),n}function FK(t){var e=DK(t);return MK.reduce(function(r,n){return r.concat(e.filter(function(i){return i.phase===n}))},[])}function NK(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function Mi(t){return t.split("-")[0]}function zK(t){var e=t.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}function qK(t,e){var r=Zn(t),n=Aa(t),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,c=0,d=0;if(i){o=i.width,a=i.height;var u=aA();(u||!u&&e==="fixed")&&(c=i.offsetLeft,d=i.offsetTop)}return{width:o,height:a,x:c+e0(t),y:d}}function BK(t){var e,r=Aa(t),n=Jb(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=us(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=us(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-n.scrollLeft+e0(t),d=-n.scrollTop;return _o(i||r).direction==="rtl"&&(c+=us(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:c,y:d}}function dA(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Xb(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function u_(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function UK(t,e){var r=Dl(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function S4(t,e,r){return e===lA?u_(qK(t,r)):_s(e)?UK(e,r):u_(BK(Aa(t)))}function VK(t){var e=ad(xh(t)),r=["absolute","fixed"].indexOf(_o(t).position)>=0,n=r&&Qn(t)?Yd(t):t;return _s(n)?e.filter(function(i){return _s(i)&&dA(i,n)&&Vi(i)!=="body"}):[]}function jK(t,e,r,n){var i=e==="clippingParents"?VK(t):[].concat(e),o=[].concat(i,[r]),a=o[0],c=o.reduce(function(d,u){var f=S4(t,u,n);return d.top=us(f.top,d.top),d.right=Cp(f.right,d.right),d.bottom=Cp(f.bottom,d.bottom),d.left=us(f.left,d.left),d},S4(t,a,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Nl(t){return t.split("-")[1]}function i0(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function uA(t){var e=t.reference,r=t.element,n=t.placement,i=n?Mi(n):null,o=n?Nl(n):null,a=e.x+e.width/2-r.width/2,c=e.y+e.height/2-r.height/2,d;switch(i){case Sn:d={x:a,y:e.y-r.height};break;case bi:d={x:a,y:e.y+e.height};break;case xi:d={x:e.x+e.width,y:c};break;case In:d={x:e.x-r.width,y:c};break;default:d={x:e.x,y:e.y}}var u=i?i0(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case Fl:d[u]=d[u]-(e[f]/2-r[f]/2);break;case Pd:d[u]=d[u]+(e[f]/2-r[f]/2);break}}return d}function fA(){return{top:0,right:0,bottom:0,left:0}}function pA(t){return Object.assign({},fA(),t)}function hA(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}function o0(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=n===void 0?t.placement:n,o=r.strategy,a=o===void 0?t.strategy:o,c=r.boundary,d=c===void 0?TK:c,u=r.rootBoundary,f=u===void 0?lA:u,_=r.elementContext,y=_===void 0?Dc:_,b=r.altBoundary,p=b===void 0?!1:b,m=r.padding,g=m===void 0?0:m,v=pA(typeof g!="number"?g:hA(g,Zd)),x=y===Dc?kK:Dc,E=t.rects.popper,T=t.elements[p?x:y],C=jK(_s(T)?T:T.contextElement||Aa(t.elements.popper),d,f,a),A=Dl(t.elements.reference),L=uA({reference:A,element:E,strategy:"absolute",placement:i}),R=u_(Object.assign({},E,L)),D=y===Dc?R:A,q={top:C.top-D.top+v.top,bottom:D.bottom-C.bottom+v.bottom,left:C.left-D.left+v.left,right:D.right-C.right+v.right},H=t.modifiersData.offset;if(y===Dc&&H){var U=H[i];Object.keys(q).forEach(function(ce){var Ae=[xi,bi].indexOf(ce)>=0?1:-1,Le=[Sn,bi].indexOf(ce)>=0?"y":"x";q[ce]+=U[Le]*Ae})}return q}var I4={placement:"bottom",modifiers:[],strategy:"absolute"};function $4(){for(var t=arguments.length,e=new Array(t),r=0;rr?r:n}function sY(t){var e=t.state,r=t.options,n=t.name,i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,c=a===void 0?!1:a,d=r.boundary,u=r.rootBoundary,f=r.altBoundary,_=r.padding,y=r.tether,b=y===void 0?!0:y,p=r.tetherOffset,m=p===void 0?0:p,g=o0(e,{boundary:d,rootBoundary:u,padding:_,altBoundary:f}),v=Mi(e.placement),x=Nl(e.placement),E=!x,T=i0(v),C=oY(T),A=e.modifiersData.popperOffsets,L=e.rects.reference,R=e.rects.popper,D=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,q=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,U={x:0,y:0};if(A){if(o){var ce,Ae=T==="y"?Sn:In,Le=T==="y"?bi:xi,Te=T==="y"?"height":"width",Ie=A[T],Pe=Ie+g[Ae],Ce=Ie-g[Le],de=b?-R[Te]/2:0,we=x===Fl?L[Te]:R[Te],ke=x===Fl?-R[Te]:-L[Te],Re=e.elements.arrow,He=b&&Re?r0(Re):{width:0,height:0},ze=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:fA(),Ge=ze[Ae],J=ze[Le],me=sd(0,L[Te],He[Te]),ve=E?L[Te]/2-de-me-Ge-q.mainAxis:we-me-Ge-q.mainAxis,$e=E?-L[Te]/2+de+me+J+q.mainAxis:ke+me+J+q.mainAxis,Oe=e.elements.arrow&&Yd(e.elements.arrow),M=Oe?T==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,k=(ce=H==null?void 0:H[T])!=null?ce:0,I=Ie+ve-k-M,N=Ie+$e-k,G=sd(b?Cp(Pe,I):Pe,Ie,b?us(Ce,N):Ce);A[T]=G,U[T]=G-Ie}if(c){var Y,se=T==="x"?Sn:In,ye=T==="x"?bi:xi,X=A[C],ee=C==="y"?"height":"width",pe=X+g[se],j=X-g[ye],z=[Sn,In].indexOf(v)!==-1,ie=(Y=H==null?void 0:H[C])!=null?Y:0,be=z?pe:X-L[ee]-R[ee]-ie+q.altAxis,Ne=z?X+L[ee]+R[ee]-ie-q.altAxis:j,Ue=b&&z?aY(be,X,Ne):sd(b?be:pe,X,b?Ne:j);A[C]=Ue,U[C]=Ue-X}e.modifiersData[n]=U}}const lY={name:"preventOverflow",enabled:!0,phase:"main",fn:sY,requiresIfExists:["offset"]};function cY(t,e,r){var n=Mi(t),i=[In,Sn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,a=o[0],c=o[1];return a=a||0,c=(c||0)*i,[In,xi].indexOf(n)>=0?{x:c,y:a}:{x:a,y:c}}function dY(t){var e=t.state,r=t.options,n=t.name,i=r.offset,o=i===void 0?[0,0]:i,a=cA.reduce(function(f,_){return f[_]=cY(_,e.rects,o),f},{}),c=a[e.placement],d=c.x,u=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=a}const uY={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:dY};var fY=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,pA(typeof e!="number"?e:hA(e,Zd))};function pY(t){var e,r=t.state,n=t.name,i=t.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,c=Mi(r.placement),d=i0(c),u=[In,xi].indexOf(c)>=0,f=u?"height":"width";if(!(!o||!a)){var _=fY(i.padding,r),y=r0(o),b=d==="y"?Sn:In,p=d==="y"?bi:xi,m=r.rects.reference[f]+r.rects.reference[d]-a[d]-r.rects.popper[f],g=a[d]-r.rects.reference[d],v=Yd(o),x=v?d==="y"?v.clientHeight||0:v.clientWidth||0:0,E=m/2-g/2,T=_[b],C=x-y[f]-_[p],A=x/2-y[f]/2+E,L=sd(T,A,C),R=d;r.modifiersData[n]=(e={},e[R]=L,e.centerOffset=L-A,e)}}function hY(t){var e=t.state,r=t.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||dA(e.elements.popper,i)&&(e.elements.arrow=i))}const mY={name:"arrow",enabled:!0,phase:"main",fn:pY,effect:hY,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var vY={left:"right",right:"left",bottom:"top",top:"bottom"};function Zf(t){return t.replace(/left|right|bottom|top/g,function(e){return vY[e]})}var gY={start:"end",end:"start"};function P4(t){return t.replace(/start|end/g,function(e){return gY[e]})}function _Y(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,c=r.flipVariations,d=r.allowedAutoPlacements,u=d===void 0?cA:d,f=Nl(n),_=f?c?A4:A4.filter(function(p){return Nl(p)===f}):Zd,y=_.filter(function(p){return u.indexOf(p)>=0});y.length===0&&(y=_);var b=y.reduce(function(p,m){return p[m]=o0(t,{placement:m,boundary:i,rootBoundary:o,padding:a})[Mi(m)],p},{});return Object.keys(b).sort(function(p,m){return b[p]-b[m]})}function yY(t){if(Mi(t)===n0)return[];var e=Zf(t);return[P4(t),e,P4(e)]}function bY(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,c=a===void 0?!0:a,d=r.fallbackPlacements,u=r.padding,f=r.boundary,_=r.rootBoundary,y=r.altBoundary,b=r.flipVariations,p=b===void 0?!0:b,m=r.allowedAutoPlacements,g=e.options.placement,v=Mi(g),x=v===g,E=d||(x||!p?[Zf(g)]:yY(g)),T=[g].concat(E).reduce(function(He,ze){return He.concat(Mi(ze)===n0?_Y(e,{placement:ze,boundary:f,rootBoundary:_,padding:u,flipVariations:p,allowedAutoPlacements:m}):ze)},[]),C=e.rects.reference,A=e.rects.popper,L=new Map,R=!0,D=T[0],q=0;q=0,Le=Ae?"width":"height",Te=o0(e,{placement:H,boundary:f,rootBoundary:_,altBoundary:y,padding:u}),Ie=Ae?ce?xi:In:ce?bi:Sn;C[Le]>A[Le]&&(Ie=Zf(Ie));var Pe=Zf(Ie),Ce=[];if(o&&Ce.push(Te[U]<=0),c&&Ce.push(Te[Ie]<=0,Te[Pe]<=0),Ce.every(function(He){return He})){D=H,R=!1;break}L.set(H,Ce)}if(R)for(var de=p?3:1,we=function(ze){var Ge=T.find(function(J){var me=L.get(J);if(me)return me.slice(0,ze).every(function(ve){return ve})});if(Ge)return D=Ge,"break"},ke=de;ke>0;ke--){var Re=we(ke);if(Re==="break")break}e.placement!==D&&(e.modifiersData[n]._skip=!0,e.placement=D,e.reset=!0)}}const xY={name:"flip",enabled:!0,phase:"main",fn:bY,requiresIfExists:["offset"],data:{_skip:!1}};function wY({emit:t,placement:e,popperNode:r,triggerNode:n}){const i=gi({isOpen:!1,popperInstance:null}),o=_=>{var y;(y=i.popperInstance)==null||y.setOptions(b=>({...b,modifiers:[...b.modifiers,{name:"eventListeners",enabled:_}]}))},a=()=>o(!0),c=()=>o(!1),d=()=>{i.isOpen&&(i.isOpen=!1,t("close:popper"))},u=()=>{i.isOpen||(i.isOpen=!0,t("open:popper"))};Vt([()=>i.isOpen,e],async([_])=>{_?(await f(),a()):c()});const f=async()=>{var _;await ra(),i.popperInstance=iY(n.value,r.value,{placement:e.value,modifiers:[lY,mY,{name:"arrow",options:{padding:0}},xY,{name:"flip",enabled:!0},uY,{name:"offset",options:{offset:[0,8]}}]}),(_=i.popperInstance)==null||_.update()};return Hi(()=>{var _;(_=i.popperInstance)==null||_.destroy()}),{...Vp(i),open:u,close:d}}const EY=["onClick","onKeyup"],TY=["onClick"],kY=Bt({__name:"Popper",props:{placement:{type:String,default:"bottom",validator:function(t){return["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"].includes(t)}},hover:{type:Boolean,default:!1},show:{type:Boolean,default:null},zIndex:{type:[Number,String],default:9999},arrow:{type:Boolean,default:!1},content:{type:String,default:null}},emits:["open:popper","close:popper"],setup(t,{emit:e}){const r=t;PM(C=>({41543257:t.zIndex}));const n=LL(),i=Se(null),o=Se(null),a=Se(null),c=Se(!1),{content:d,placement:u,show:f}=Vp(r),{isOpen:_,open:y,close:b}=wY({emit:e,placement:u,popperNode:o,triggerNode:a}),{hasContent:p}=gK(n,o,d),m=It(()=>f.value!==null),g=It(()=>!p.value),v=It(()=>_.value&&!g.value),x=async()=>{g.value||m.value||y()},E=async()=>{m.value||b()},T=()=>{_.value?E():x()};return Vt([p],([C])=>{_.value&&!C&&b()}),Vt(_,C=>{c.value=C}),_L(()=>{m.value&&(f.value?y():b())}),(C,A)=>{const L=vK,R=Ea("click-away");return vt((te(),oe("div",{class:"inline-block",onMouseleave:A[1]||(A[1]=D=>t.hover&&E()),ref_key:"popperContainerNode",ref:i},[V("div",{ref_key:"triggerNode",ref:a,onMouseover:A[0]||(A[0]=D=>t.hover&&x()),onClick:Pt(T,["stop"]),onFocus:x,onKeyup:Zs(E,["esc"])},[_2(C.$slots,"default",{},void 0,!0)],40,EY),qe(yd,{name:"fade"},{default:_i(()=>[vt(V("div",{class:"popper",ref_key:"popperNode",ref:o,onClick:Pt(()=>{},["stop"])},[_2(C.$slots,"content",{close:fe(b),isOpen:c.value},()=>[Cn(De(fe(d)),1)],!0),t.arrow?(te(),Hr(L,{key:0})):yt("",!0)],8,TY),[[fi,v.value]])]),_:3})],32)),[[R,E]])}}});const a0=gn(kY,[["__scopeId","data-v-da4ddbfd"]]),CY={class:"nowrap"},AY={class:"view-raw"},SY=Bt({__name:"FieldId",props:{id:{type:String,required:!0},raw:{type:[String,Object],default:""}},setup(t){return(e,r)=>{const n=a0;return te(),Hr(n,null,{content:_i(()=>[V("pre",AY,De(t.raw),1)]),default:_i(()=>[V("span",CY,De(t.id),1)]),_:1})}}}),IY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},$Y=V("path",{fill:"currentColor",d:"M8.7 17.3q-.275-.275-.275-.7t.275-.7l3.9-3.9l-3.9-3.9q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.6 4.6q-.275.275-.7.275t-.7-.275Z"},null,-1),OY=[$Y];function PY(t,e){return te(),oe("svg",IY,OY)}const RY={name:"material-symbols-chevron-right-rounded",render:PY},LY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},MY=V("path",{fill:"currentColor",d:"m13.3 17.3l-4.6-4.6q-.15-.15-.212-.325T8.425 12q0-.2.063-.375T8.7 11.3l4.6-4.6q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7L10.8 12l3.9 3.9q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275Z"},null,-1),DY=[MY];function FY(t,e){return te(),oe("svg",LY,DY)}const NY={name:"material-symbols-chevron-left-rounded",render:FY},zY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},qY=V("path",{fill:"currentColor",d:"M12 17q.425 0 .713-.288T13 16v-4.025q0-.425-.288-.7T12 11q-.425 0-.713.288T11 12v4.025q0 .425.288.7T12 17Zm0-8q.425 0 .713-.288T13 8q0-.425-.288-.713T12 7q-.425 0-.713.288T11 8q0 .425.288.713T12 9Zm0 13q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-10Zm0 8q3.325 0 5.663-2.337T20 12q0-3.325-2.337-5.663T12 4Q8.675 4 6.337 6.337T4 12q0 3.325 2.337 5.663T12 20Z"},null,-1),BY=[qY];function UY(t,e){return te(),oe("svg",zY,BY)}const VY={name:"material-symbols-info-outline-rounded",render:UY},jY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},HY=V("path",{fill:"currentColor",d:"M19.75 12.05q-.3 0-.588-.213T18.8 11.3q-.125-.475-.313-.938t-.437-.887q-.175-.275-.125-.613T18.2 8.3q.375-.35.863-.3t.737.475q.325.55.575 1.125t.4 1.2q.125.5-.188.875t-.837.375Zm-6.7 8.7q0-.3.213-.588t.537-.362q.475-.125.938-.313t.887-.437q.275-.175.613-.125t.562.275q.35.375.3.863t-.475.737q-.575.325-1.15.563t-1.175.412q-.5.125-.875-.175t-.375-.85Zm5.15-2.95q-.225-.2-.275-.55t.125-.625q.25-.425.438-.888t.312-.937q.075-.325.35-.537t.6-.213q.55 0 .85.375t.175.875q-.175.6-.412 1.175t-.563 1.15q-.25.425-.738.475t-.862-.3Zm-8.375 3.95q-2.975-.8-4.875-3.2t-1.9-5.5q0-3.75 2.625-6.375T12.05 4.05h.15l-.875-.875q-.275-.275-.275-.7t.3-.725q.275-.275.7-.275t.725.275l2.575 2.6q.15.15.213.325t.062.375q0 .2-.062.375t-.213.325l-2.6 2.6q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l.9-.9h-.2q-2.925 0-4.962 2.037T5.05 13.05q0 2.425 1.475 4.288T10.3 19.8q.325.075.537.35t.213.6q0 .525-.363.825t-.862.175Z"},null,-1),GY=[HY];function WY(t,e){return te(),oe("svg",jY,GY)}const QY={name:"material-symbols-rotate-right-rounded",render:WY},KY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},YY=V("path",{fill:"currentColor",d:"M4.3 12.05q-.525 0-.838-.363t-.187-.862q.15-.625.4-1.212t.575-1.138q.275-.425.738-.475t.862.325q.2.2.263.538T6 9.475q-.275.425-.45.888t-.3.937q-.075.325-.338.537t-.612.213Zm5.475 9.725q-.6-.15-1.188-.4T7.426 20.8q-.425-.275-.475-.738t.325-.862q.2-.2.538-.263t.612.113q.425.275.888.45t.937.3q.325.075.537.338t.213.612q0 .525-.363.838t-.862.187Zm-5.525-4.15q-.325-.575-.575-1.163t-.4-1.187q-.125-.5.188-.863t.887-.362q.3 0 .563.213t.337.537q.125.475.3.938t.45.887q.175.275.125.6t-.275.55q-.375.375-.85.325t-.75-.475Zm9.975 4.125q-.5.125-.862-.175T13 20.75q0-.3.213-.588t.537-.362q2.325-.575 3.788-2.45T19 13.05q0-2.925-2.038-4.963T12 6.05h-.2l.9.9q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275l-2.6-2.6q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375T8.7 4.35l2.6-2.6q.275-.275.7-.275t.725.275q.275.3.275.725t-.275.7l-.875.875H12q3.75 0 6.375 2.625T21 13.05q0 3.1-1.9 5.5t-4.875 3.2Z"},null,-1),ZY=[YY];function XY(t,e){return te(),oe("svg",KY,ZY)}const JY={name:"material-symbols-rotate-left-rounded",render:XY},eZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},tZ=V("path",{fill:"currentColor",d:"M6 12q.425 0 .713-.288T7 11V9h2.025q.425 0 .7-.288T10 8q0-.425-.288-.713T9 7H6q-.425 0-.713.288T5 8v3.025q0 .425.288.7T6 12Zm9 5h3q.425 0 .713-.288T19 16v-3.025q0-.425-.288-.7T18 12q-.425 0-.713.288T17 13v2h-2.025q-.425 0-.7.288T14 16q0 .425.288.713T15 17ZM4 20q-.825 0-1.413-.588T2 18V6q0-.825.588-1.413T4 4h16q.825 0 1.413.588T22 6v12q0 .825-.588 1.413T20 20H4Zm0-2V6v12Zm0 0h16V6H4v12Z"},null,-1),rZ=[tZ];function nZ(t,e){return te(),oe("svg",eZ,rZ)}const iZ={name:"material-symbols-aspect-ratio-outline-rounded",render:nZ},oZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},aZ=V("path",{fill:"currentColor",d:"m18.9 20.3l-5.6-5.6q-.75.6-1.725.95T9.5 16q-2.725 0-4.612-1.888T3 9.5q0-2.725 1.888-4.612T9.5 3q2.725 0 4.612 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.625 5.625q.275.275.263.687t-.288.688q-.275.275-.7.275t-.7-.275ZM9.5 14q1.875 0 3.188-1.313T14 9.5q0-1.875-1.313-3.188T9.5 5Q7.625 5 6.312 6.313T5 9.5q0 1.875 1.313 3.188T9.5 14Zm-1.525-3.5q-.425 0-.7-.288T7 9.5q0-.425.288-.713T8 8.5h3.025q.425 0 .7.288T12 9.5q0 .425-.288.713T11 10.5H7.975Z"},null,-1),sZ=[aZ];function lZ(t,e){return te(),oe("svg",oZ,sZ)}const cZ={name:"material-symbols-zoom-out-rounded",render:lZ},dZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},uZ=V("path",{fill:"currentColor",d:"m18.9 20.3l-5.6-5.6q-.75.6-1.725.95T9.5 16q-2.725 0-4.612-1.888T3 9.5q0-2.725 1.888-4.612T9.5 3q2.725 0 4.612 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.625 5.625q.275.275.263.687t-.288.688q-.275.275-.7.275t-.7-.275ZM9.5 14q1.875 0 3.188-1.313T14 9.5q0-1.875-1.313-3.188T9.5 5Q7.625 5 6.312 6.313T5 9.5q0 1.875 1.313 3.188T9.5 14Zm0-1.5q-.425 0-.713-.288T8.5 11.5v-1H7.475q-.425 0-.7-.288T6.5 9.5q0-.425.288-.713T7.5 8.5h1V7.475q0-.425.288-.7T9.5 6.5q.425 0 .713.287t.287.713v1h1.025q.425 0 .7.288t.275.712q0 .425-.288.713t-.712.287h-1v1.025q0 .425-.288.7T9.5 12.5Z"},null,-1),fZ=[uZ];function pZ(t,e){return te(),oe("svg",dZ,fZ)}const hZ={name:"material-symbols-zoom-in-rounded",render:pZ},mZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},vZ=V("path",{fill:"currentColor",d:"M7 17h10q.3 0 .45-.275t-.05-.525l-2.75-3.675q-.15-.2-.4-.2t-.4.2L11.25 16L9.4 13.525q-.15-.2-.4-.2t-.4.2l-2 2.675q-.2.25-.05.525T7 17Zm-2 4q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm0-2h14V5H5v14ZM5 5v14V5Z"},null,-1),gZ=[vZ];function _Z(t,e){return te(),oe("svg",mZ,gZ)}const mA={name:"material-symbols-image-outline-rounded",render:_Z},yZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},bZ=V("path",{fill:"currentColor",d:"m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275L12 13.4Z"},null,-1),xZ=[bZ];function wZ(t,e){return te(),oe("svg",yZ,xZ)}const Xd={name:"material-symbols-close-rounded",render:wZ},EZ=()=>{};let vA=!1;try{const t={};Object.defineProperty(t,"passive",{get(){vA=!0}}),window.addEventListener("test-passive",EZ,t)}catch{}const R4=(t,e,r,n=!1)=>{t.addEventListener(e,r,vA?{capture:!1,passive:n}:!1)},L4=(t,e,r)=>{t.removeEventListener(e,r)},M4=t=>{t.preventDefault()},TZ=Object.prototype.toString,kZ=t=>e=>TZ.call(e).slice(8,-1)===t;function CZ(t){return kZ("Array")(t)}function D4(t,e){const r=t.clientX-e.clientX,n=t.clientY-e.clientY;return Math.sqrt(r*r+n*n)}const AZ=()=>{const t=Se(),e=gi({width:0,height:0,maxScale:1});return{imgRef:t,imgState:e,setImgSize:()=>{if(t.value){const{width:n,height:i,naturalWidth:o}=t.value;e.maxScale=o/n,e.width=n,e.height=i}}}},SZ=(t,e,r)=>{let n,i=!1;return{onMouseDown:d=>{r(d.button)&&(t.initX=t.lastX=d.clientX,t.initY=t.lastY=d.clientY,e.dragging=!0,e.dragging=!0,i=!1,d.stopPropagation())},onMouseUp:d=>{r(d.button)&&cancelAnimationFrame(n),e.dragging=!1,e.swipeToLeft=!1,e.swipeToRight=!1,i=!1},onMouseMove:d=>{if(e.dragging)if(r(d.button)){if(i)return;i=!0,n=requestAnimationFrame(()=>{const{top:u,left:f,lastY:_,lastX:y}=t;t.top=u-_+d.clientY,t.left=f-y+d.clientX,t.lastX=d.clientX,t.lastY=d.clientY,i=!1})}else t.lastX=d.clientX,t.lastY=d.clientY;d.stopPropagation()}}},IZ=(t,e,r,n)=>{let i,o=!1,a=0,c=0;const d=50;return{onTouchStart:y=>{const{touches:b}=y;a=b[0].clientX,c=b[0].clientY,b.length>1?(r.gesturing=!0,e.touches=b):(e.initX=e.lastX=b[0].clientX,e.initY=e.lastY=b[0].clientY,r.dragging=!0),y.stopPropagation()},onTouchMove:y=>{if(o)return;const{touches:b}=y,{lastX:p,lastY:m,left:g,top:v,scale:x}=e,E=b[0].clientX,T=b[0].clientY,C=E-a,A=T-c;if(Math.abs(C)>Math.abs(A)&&(Cd&&(r.swipeToRight=!0)),!r.gesturing&&r.dragging){if(!b[0])return;const{clientX:R,clientY:D}=b[0];n()?i=requestAnimationFrame(()=>{e.lastX=R,e.lastY=D,e.top=v-m+D,e.left=g-p+R,o=!1}):(e.lastX=R,e.lastY=D)}else r.gesturing&&e.touches.length>1&&b.length>1&&(i=requestAnimationFrame(()=>{const R=(D4(e.touches[0],e.touches[1])-D4(b[0],b[1]))/t.width;e.touches=b;const D=x-R*1.3;D>.5&&D{cancelAnimationFrame(i),r.dragging=!1,r.gesturing=!1,o=!1}}},$Z=[".jpg",".png",".jpeg",".bmp",".webp",".heic",".heif",".apng",".avif",".gif"],OZ=[".mp4",".mkv",".webm",".avi",".3gp",".mov",".m4v",".3gpp"],PZ=[".mp3",".wav",".wma",".ogg",".m4a",".opus",".flac",".aac"];function Li(t){const e=t.toLowerCase();return $Z.some(r=>e.endsWith(r))}function ji(t){const e=t.toLowerCase();return OZ.some(r=>e.endsWith(r))}function Rd(t){const e=t.toLowerCase();return PZ.some(r=>e.endsWith(r))}function F4(t){return Li(t)||ji(t)||Rd(t)}function Vve(t){return[".txt",".pdf",".md"].some(e=>t.endsWith(e))}class RZ{constructor(e,r){kr(this,"dir");kr(this,"items",[]);this.dir=e,this.items=r}deleteItem(e){const r=this.items.findIndex(n=>this.inPath(n.path,e));r!==-1&&this.items.splice(r,1)}inPath(e,r){return(e+"/").startsWith(r+"/")}rename(e,r,n){const i=this.items.find(o=>this.inPath(o.path,e));i&&(i.path===e?(i.path=i.path.replace("/"+r,"/"+n),i.name=n):i.path=i.path.replace("/"+r+"/","/"+n+"/")),this.inPath(this.dir,e)&&(this.dir===e?this.dir=this.dir.replace("/"+r,"/"+n):this.dir=this.dir.replace("/"+r+"/","/"+n+"/"))}}function jve(){return[{label:"sort_by.date_asc",value:"DATE_ASC"},{label:"sort_by.date_desc",value:"DATE_DESC"},{label:"sort_by.size_asc",value:"SIZE_ASC"},{label:"sort_by.size_desc",value:"SIZE_DESC"},{label:"sort_by.name_asc",value:"NAME_ASC"},{label:"sort_by.name_desc",value:"NAME_DESC"}]}async function N4(t){return new Promise(e=>{const r=document.createElement("video"),n=document.createElement("canvas"),i=URL.createObjectURL(t);r.src=i,r.play(),r.onloadeddata=async()=>{const o=Math.min(r.videoWidth,r.videoHeight),a=(r.videoWidth-o)/2,c=(r.videoHeight-o)/2;n.width=200,n.height=200,n.getContext("2d").drawImage(r,a,c,o,o,0,0,n.width,n.height);const u=n.toDataURL();r.pause(),r.currentTime=0,URL.revokeObjectURL(i),r.remove(),n.remove(),e({src:i,duration:Math.round(r.duration),thumbnail:u})}})}const Co=hC({id:"temp",state:()=>({app:null,urlTokenKey:null,uploads:[],selectedFiles:[],audioPlaying:!1,lightbox:{sources:[],visible:!1,index:-1}})});function s0(){return localStorage.getItem("locale")??navigator.language??"en-US"}function l0(t,e){return t==="1970-01-01T00:00:00Z"?"":new Intl.DateTimeFormat(s0(),{hour12:!1,dateStyle:"short",timeStyle:"short",...e}).format(new Date(t))}function c0(t){return t==="1970-01-01T00:00:00Z"?"":l0(t,{dateStyle:"long",timeStyle:"long"})}function $v(t){return new Intl.DateTimeFormat(s0()).format(new Date(t))}function LZ(t){return new Intl.DateTimeFormat(s0(),{hour12:!1,timeStyle:"short"}).format(new Date(t))}function wh(t){const e=Math.floor(t/3600),r=Math.floor(t%3600/60),n=Math.floor(t%60),i=e<10?`0${e}`:e,o=r<10?`0${r}`:r,a=n<10?`0${n}`:n;return e>0?`${i}:${o}:${a}`:`${o}:${a}`}function Ld(t,e=!0,r=1){const n=e?1e3:1024;if(Math.abs(t)=n&&o>>1,He=[["ary",L],["bind",g],["bindKey",v],["curry",E],["curryRight",T],["flip",D],["partial",C],["partialRight",A],["rearg",R]],ze="[object Arguments]",Ge="[object Array]",J="[object AsyncFunction]",me="[object Boolean]",ve="[object Date]",$e="[object DOMException]",Oe="[object Error]",M="[object Function]",k="[object GeneratorFunction]",I="[object Map]",N="[object Number]",G="[object Null]",Y="[object Object]",se="[object Promise]",ye="[object Proxy]",X="[object RegExp]",ee="[object Set]",pe="[object String]",j="[object Symbol]",z="[object Undefined]",ie="[object WeakMap]",be="[object WeakSet]",Ne="[object ArrayBuffer]",Ue="[object DataView]",dt="[object Float32Array]",Wt="[object Float64Array]",gr="[object Int8Array]",Ci="[object Int16Array]",ri="[object Int32Array]",$o="[object Uint8Array]",_r="[object Uint8ClampedArray]",Nr="[object Uint16Array]",Oo="[object Uint32Array]",zh=/\b__p \+= '';/g,qh=/\b(__p \+=) '' \+/g,Bh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Kr=/&(?:amp|lt|gt|quot|#39);/g,$a=/[&<>"']/g,lu=RegExp(Kr.source),cu=RegExp($a.source),du=/<%-([\s\S]+?)%>/g,uu=/<%([\s\S]+?)%>/g,dc=/<%=([\s\S]+?)%>/g,fu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pu=/^\w*$/,hu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$s=/[\\^$.*+?()[\]{}|]/g,mu=RegExp($s.source),Os=/^\s+/,vu=/\s/,gu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,_u=/\{\n\/\* \[wrapped with (.+)\] \*/,yu=/,? & /,bu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xu=/[()=,{}\[\]\/\s]/,wu=/\\(\\)?/g,Eu=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Er=/\w*$/,Tu=/^[-+]0x[0-9a-f]+$/i,ku=/^0b[01]+$/i,KS=/^\[object .+?Constructor\]$/,YS=/^0o[0-7]+$/i,ZS=/^(?:0|[1-9]\d*)$/,XS=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Cu=/($^)/,JS=/['\n\r\u2028\u2029\\]/g,Au="\\ud800-\\udfff",eI="\\u0300-\\u036f",tI="\\ufe20-\\ufe2f",rI="\\u20d0-\\u20ff",L0=eI+tI+rI,M0="\\u2700-\\u27bf",D0="a-z\\xdf-\\xf6\\xf8-\\xff",nI="\\xac\\xb1\\xd7\\xf7",iI="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",oI="\\u2000-\\u206f",aI=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",F0="A-Z\\xc0-\\xd6\\xd8-\\xde",N0="\\ufe0e\\ufe0f",z0=nI+iI+oI+aI,Uh="['’]",sI="["+Au+"]",q0="["+z0+"]",Su="["+L0+"]",B0="\\d+",lI="["+M0+"]",U0="["+D0+"]",V0="[^"+Au+z0+B0+M0+D0+F0+"]",Vh="\\ud83c[\\udffb-\\udfff]",cI="(?:"+Su+"|"+Vh+")",j0="[^"+Au+"]",jh="(?:\\ud83c[\\udde6-\\uddff]){2}",Hh="[\\ud800-\\udbff][\\udc00-\\udfff]",Ps="["+F0+"]",H0="\\u200d",G0="(?:"+U0+"|"+V0+")",dI="(?:"+Ps+"|"+V0+")",W0="(?:"+Uh+"(?:d|ll|m|re|s|t|ve))?",Q0="(?:"+Uh+"(?:D|LL|M|RE|S|T|VE))?",K0=cI+"?",Y0="["+N0+"]?",uI="(?:"+H0+"(?:"+[j0,jh,Hh].join("|")+")"+Y0+K0+")*",fI="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Z0=Y0+K0+uI,hI="(?:"+[lI,jh,Hh].join("|")+")"+Z0,mI="(?:"+[j0+Su+"?",Su,jh,Hh,sI].join("|")+")",vI=RegExp(Uh,"g"),gI=RegExp(Su,"g"),Gh=RegExp(Vh+"(?="+Vh+")|"+mI+Z0,"g"),_I=RegExp([Ps+"?"+U0+"+"+W0+"(?="+[q0,Ps,"$"].join("|")+")",dI+"+"+Q0+"(?="+[q0,Ps+G0,"$"].join("|")+")",Ps+"?"+G0+"+"+W0,Ps+"+"+Q0,pI,fI,B0,hI].join("|"),"g"),yI=RegExp("["+H0+Au+L0+N0+"]"),bI=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xI=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],wI=-1,Qt={};Qt[dt]=Qt[Wt]=Qt[gr]=Qt[Ci]=Qt[ri]=Qt[$o]=Qt[_r]=Qt[Nr]=Qt[Oo]=!0,Qt[ze]=Qt[Ge]=Qt[Ne]=Qt[me]=Qt[Ue]=Qt[ve]=Qt[Oe]=Qt[M]=Qt[I]=Qt[N]=Qt[Y]=Qt[X]=Qt[ee]=Qt[pe]=Qt[ie]=!1;var Ht={};Ht[ze]=Ht[Ge]=Ht[Ne]=Ht[Ue]=Ht[me]=Ht[ve]=Ht[dt]=Ht[Wt]=Ht[gr]=Ht[Ci]=Ht[ri]=Ht[I]=Ht[N]=Ht[Y]=Ht[X]=Ht[ee]=Ht[pe]=Ht[j]=Ht[$o]=Ht[_r]=Ht[Nr]=Ht[Oo]=!0,Ht[Oe]=Ht[M]=Ht[ie]=!1;var EI={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},TI={"&":"&","<":"<",">":">",'"':""","'":"'"},kI={"&":"&","<":"<",">":">",""":'"',"'":"'"},CI={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},AI=parseFloat,SI=parseInt,X0=typeof fo=="object"&&fo&&fo.Object===Object&&fo,II=typeof self=="object"&&self&&self.Object===Object&&self,Rr=X0||II||Function("return this")(),Wh=e&&!e.nodeType&&e,Oa=Wh&&!0&&t&&!t.nodeType&&t,J0=Oa&&Oa.exports===Wh,Qh=J0&&X0.process,Rn=function(){try{var W=Oa&&Oa.require&&Oa.require("util").types;return W||Qh&&Qh.binding&&Qh.binding("util")}catch{}}(),e1=Rn&&Rn.isArrayBuffer,t1=Rn&&Rn.isDate,r1=Rn&&Rn.isMap,n1=Rn&&Rn.isRegExp,i1=Rn&&Rn.isSet,o1=Rn&&Rn.isTypedArray;function _n(W,ae,ne){switch(ne.length){case 0:return W.call(ae);case 1:return W.call(ae,ne[0]);case 2:return W.call(ae,ne[0],ne[1]);case 3:return W.call(ae,ne[0],ne[1],ne[2])}return W.apply(ae,ne)}function $I(W,ae,ne,Be){for(var it=-1,At=W==null?0:W.length;++it-1}function Kh(W,ae,ne){for(var Be=-1,it=W==null?0:W.length;++Be-1;);return ne}function p1(W,ae){for(var ne=W.length;ne--&&Rs(ae,W[ne],0)>-1;);return ne}function zI(W,ae){for(var ne=W.length,Be=0;ne--;)W[ne]===ae&&++Be;return Be}var qI=Jh(EI),BI=Jh(TI);function UI(W){return"\\"+CI[W]}function VI(W,ae){return W==null?r:W[ae]}function Ls(W){return yI.test(W)}function jI(W){return bI.test(W)}function HI(W){for(var ae,ne=[];!(ae=W.next()).done;)ne.push(ae.value);return ne}function nm(W){var ae=-1,ne=Array(W.size);return W.forEach(function(Be,it){ne[++ae]=[it,Be]}),ne}function h1(W,ae){return function(ne){return W(ae(ne))}}function Lo(W,ae){for(var ne=-1,Be=W.length,it=0,At=[];++ne-1}function P7(s,l){var h=this.__data__,w=Gu(h,s);return w<0?(++this.size,h.push([s,l])):h[w][1]=l,this}Ki.prototype.clear=S7,Ki.prototype.delete=I7,Ki.prototype.get=$7,Ki.prototype.has=O7,Ki.prototype.set=P7;function Yi(s){var l=-1,h=s==null?0:s.length;for(this.clear();++l=l?s:l)),s}function Fn(s,l,h,w,S,O){var F,B=l&_,K=l&y,le=l&b;if(h&&(F=S?h(s,w,S,O):h(s)),F!==r)return F;if(!tr(s))return s;var ue=at(s);if(ue){if(F=D$(s),!B)return an(s,F)}else{var xe=qr(s),Me=xe==M||xe==k;if(qo(s))return Y1(s,B);if(xe==Y||xe==ze||Me&&!S){if(F=K||Me?{}:mx(s),!B)return K?k$(s,Q7(F,s)):T$(s,C1(F,s))}else{if(!Ht[xe])return S?s:{};F=F$(s,xe,B)}}O||(O=new ii);var Ke=O.get(s);if(Ke)return Ke;O.set(s,F),jx(s)?s.forEach(function(et){F.add(Fn(et,l,h,et,s,O))}):Ux(s)&&s.forEach(function(et,mt){F.set(mt,Fn(et,l,h,mt,s,O))});var Je=le?K?Im:Sm:K?ln:Tr,ut=ue?r:Je(s);return Ln(ut||s,function(et,mt){ut&&(mt=et,et=s[mt]),gc(F,mt,Fn(et,l,h,mt,s,O))}),F}function K7(s){var l=Tr(s);return function(h){return A1(h,s,l)}}function A1(s,l,h){var w=h.length;if(s==null)return!w;for(s=Ut(s);w--;){var S=h[w],O=l[S],F=s[S];if(F===r&&!(S in s)||!O(F))return!1}return!0}function S1(s,l,h){if(typeof s!="function")throw new Mn(a);return Tc(function(){s.apply(r,h)},l)}function _c(s,l,h,w){var S=-1,O=Iu,F=!0,B=s.length,K=[],le=l.length;if(!B)return K;h&&(l=Jt(l,yn(h))),w?(O=Kh,F=!1):l.length>=i&&(O=uc,F=!1,l=new La(l));e:for(;++SS?0:S+h),w=w===r||w>S?S:ct(w),w<0&&(w+=S),w=h>w?0:Gx(w);h0&&h(B)?l>1?Lr(B,l-1,h,w,S):Ro(S,B):w||(S[S.length]=B)}return S}var dm=rx(),O1=rx(!0);function Ai(s,l){return s&&dm(s,l,Tr)}function um(s,l){return s&&O1(s,l,Tr)}function Qu(s,l){return Po(l,function(h){return to(s[h])})}function Da(s,l){l=No(l,s);for(var h=0,w=l.length;s!=null&&hl}function X7(s,l){return s!=null&&Lt.call(s,l)}function J7(s,l){return s!=null&&l in Ut(s)}function e$(s,l,h){return s>=zr(l,h)&&s=120&&ue.length>=120)?new La(F&&ue):r}ue=s[0];var xe=-1,Me=B[0];e:for(;++xe-1;)B!==s&&zu.call(B,K,1),zu.call(s,K,1);return s}function U1(s,l){for(var h=s?l.length:0,w=h-1;h--;){var S=l[h];if(h==w||S!==O){var O=S;eo(S)?zu.call(s,S,1):xm(s,S)}}return s}function _m(s,l){return s+Uu(w1()*(l-s+1))}function p$(s,l,h,w){for(var S=-1,O=br(Bu((l-s)/(h||1)),0),F=ne(O);O--;)F[w?O:++S]=s,s+=h;return F}function ym(s,l){var h="";if(!s||l<1||l>Pe)return h;do l%2&&(h+=s),l=Uu(l/2),l&&(s+=s);while(l);return h}function ft(s,l){return Dm(_x(s,l,cn),s+"")}function h$(s){return k1(Hs(s))}function m$(s,l){var h=Hs(s);return af(h,Ma(l,0,h.length))}function xc(s,l,h,w){if(!tr(s))return s;l=No(l,s);for(var S=-1,O=l.length,F=O-1,B=s;B!=null&&++SS?0:S+l),h=h>S?S:h,h<0&&(h+=S),S=l>h?0:h-l>>>0,l>>>=0;for(var O=ne(S);++w>>1,F=s[O];F!==null&&!xn(F)&&(h?F<=l:F=i){var le=l?null:I$(s);if(le)return Ou(le);F=!1,S=uc,K=new La}else K=l?[]:B;e:for(;++w=w?s:Nn(s,l,h)}var K1=a7||function(s){return Rr.clearTimeout(s)};function Y1(s,l){if(l)return s.slice();var h=s.length,w=g1?g1(h):new s.constructor(h);return s.copy(w),w}function km(s){var l=new s.constructor(s.byteLength);return new Fu(l).set(new Fu(s)),l}function b$(s,l){var h=l?km(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.byteLength)}function x$(s){var l=new s.constructor(s.source,Er.exec(s));return l.lastIndex=s.lastIndex,l}function w$(s){return vc?Ut(vc.call(s)):{}}function Z1(s,l){var h=l?km(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.length)}function X1(s,l){if(s!==l){var h=s!==r,w=s===null,S=s===s,O=xn(s),F=l!==r,B=l===null,K=l===l,le=xn(l);if(!B&&!le&&!O&&s>l||O&&F&&K&&!B&&!le||w&&F&&K||!h&&K||!S)return 1;if(!w&&!O&&!le&&s=B)return K;var le=h[w];return K*(le=="desc"?-1:1)}}return s.index-l.index}function J1(s,l,h,w){for(var S=-1,O=s.length,F=h.length,B=-1,K=l.length,le=br(O-F,0),ue=ne(K+le),xe=!w;++B1?h[S-1]:r,F=S>2?h[2]:r;for(O=s.length>3&&typeof O=="function"?(S--,O):r,F&&Zr(h[0],h[1],F)&&(O=S<3?r:O,S=1),l=Ut(l);++w-1?S[O?l[F]:F]:r}}function ox(s){return Ji(function(l){var h=l.length,w=h,S=Dn.prototype.thru;for(s&&l.reverse();w--;){var O=l[w];if(typeof O!="function")throw new Mn(a);if(S&&!F&&nf(O)=="wrapper")var F=new Dn([],!0)}for(w=F?w:h;++w1&&xt.reverse(),ue&&KB))return!1;var le=O.get(s),ue=O.get(l);if(le&&ue)return le==l&&ue==s;var xe=-1,Me=!0,Ke=h&m?new La:r;for(O.set(s,l),O.set(l,s);++xe1?"& ":"")+l[w],l=l.join(h>2?", ":" "),s.replace(gu,`{ +`;var Ap={exports:{}};Ap.exports;(function(t,e){(function(){var r,n="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",_=1,y=2,b=4,p=1,m=2,g=1,v=2,x=4,E=8,T=16,C=32,A=64,L=128,R=256,D=512,q=30,H="...",U=800,ce=16,Ae=1,Le=2,Te=3,Ie=1/0,Pe=9007199254740991,Ce=17976931348623157e292,de=0/0,we=4294967295,ke=we-1,Re=we>>>1,He=[["ary",L],["bind",g],["bindKey",v],["curry",E],["curryRight",T],["flip",D],["partial",C],["partialRight",A],["rearg",R]],ze="[object Arguments]",Ge="[object Array]",J="[object AsyncFunction]",me="[object Boolean]",ve="[object Date]",$e="[object DOMException]",Oe="[object Error]",M="[object Function]",k="[object GeneratorFunction]",I="[object Map]",N="[object Number]",G="[object Null]",Y="[object Object]",se="[object Promise]",ye="[object Proxy]",X="[object RegExp]",ee="[object Set]",pe="[object String]",j="[object Symbol]",z="[object Undefined]",ie="[object WeakMap]",be="[object WeakSet]",Ne="[object ArrayBuffer]",Ue="[object DataView]",dt="[object Float32Array]",Wt="[object Float64Array]",gr="[object Int8Array]",Ci="[object Int16Array]",ri="[object Int32Array]",$o="[object Uint8Array]",_r="[object Uint8ClampedArray]",Nr="[object Uint16Array]",Oo="[object Uint32Array]",qh=/\b__p \+= '';/g,Bh=/\b(__p \+=) '' \+/g,Uh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Kr=/&(?:amp|lt|gt|quot|#39);/g,$a=/[&<>"']/g,du=RegExp(Kr.source),uu=RegExp($a.source),fu=/<%-([\s\S]+?)%>/g,pu=/<%([\s\S]+?)%>/g,dc=/<%=([\s\S]+?)%>/g,hu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mu=/^\w*$/,vu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$s=/[\\^$.*+?()[\]{}|]/g,gu=RegExp($s.source),Os=/^\s+/,_u=/\s/,yu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bu=/\{\n\/\* \[wrapped with (.+)\] \*/,xu=/,? & /,wu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Eu=/[()=,{}\[\]\/\s]/,Tu=/\\(\\)?/g,ku=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Er=/\w*$/,Cu=/^[-+]0x[0-9a-f]+$/i,Au=/^0b[01]+$/i,KS=/^\[object .+?Constructor\]$/,YS=/^0o[0-7]+$/i,ZS=/^(?:0|[1-9]\d*)$/,XS=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Su=/($^)/,JS=/['\n\r\u2028\u2029\\]/g,Iu="\\ud800-\\udfff",eI="\\u0300-\\u036f",tI="\\ufe20-\\ufe2f",rI="\\u20d0-\\u20ff",L0=eI+tI+rI,M0="\\u2700-\\u27bf",D0="a-z\\xdf-\\xf6\\xf8-\\xff",nI="\\xac\\xb1\\xd7\\xf7",iI="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",oI="\\u2000-\\u206f",aI=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",F0="A-Z\\xc0-\\xd6\\xd8-\\xde",N0="\\ufe0e\\ufe0f",z0=nI+iI+oI+aI,Vh="['’]",sI="["+Iu+"]",q0="["+z0+"]",$u="["+L0+"]",B0="\\d+",lI="["+M0+"]",U0="["+D0+"]",V0="[^"+Iu+z0+B0+M0+D0+F0+"]",jh="\\ud83c[\\udffb-\\udfff]",cI="(?:"+$u+"|"+jh+")",j0="[^"+Iu+"]",Hh="(?:\\ud83c[\\udde6-\\uddff]){2}",Gh="[\\ud800-\\udbff][\\udc00-\\udfff]",Ps="["+F0+"]",H0="\\u200d",G0="(?:"+U0+"|"+V0+")",dI="(?:"+Ps+"|"+V0+")",W0="(?:"+Vh+"(?:d|ll|m|re|s|t|ve))?",Q0="(?:"+Vh+"(?:D|LL|M|RE|S|T|VE))?",K0=cI+"?",Y0="["+N0+"]?",uI="(?:"+H0+"(?:"+[j0,Hh,Gh].join("|")+")"+Y0+K0+")*",fI="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Z0=Y0+K0+uI,hI="(?:"+[lI,Hh,Gh].join("|")+")"+Z0,mI="(?:"+[j0+$u+"?",$u,Hh,Gh,sI].join("|")+")",vI=RegExp(Vh,"g"),gI=RegExp($u,"g"),Wh=RegExp(jh+"(?="+jh+")|"+mI+Z0,"g"),_I=RegExp([Ps+"?"+U0+"+"+W0+"(?="+[q0,Ps,"$"].join("|")+")",dI+"+"+Q0+"(?="+[q0,Ps+G0,"$"].join("|")+")",Ps+"?"+G0+"+"+W0,Ps+"+"+Q0,pI,fI,B0,hI].join("|"),"g"),yI=RegExp("["+H0+Iu+L0+N0+"]"),bI=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xI=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],wI=-1,Qt={};Qt[dt]=Qt[Wt]=Qt[gr]=Qt[Ci]=Qt[ri]=Qt[$o]=Qt[_r]=Qt[Nr]=Qt[Oo]=!0,Qt[ze]=Qt[Ge]=Qt[Ne]=Qt[me]=Qt[Ue]=Qt[ve]=Qt[Oe]=Qt[M]=Qt[I]=Qt[N]=Qt[Y]=Qt[X]=Qt[ee]=Qt[pe]=Qt[ie]=!1;var Ht={};Ht[ze]=Ht[Ge]=Ht[Ne]=Ht[Ue]=Ht[me]=Ht[ve]=Ht[dt]=Ht[Wt]=Ht[gr]=Ht[Ci]=Ht[ri]=Ht[I]=Ht[N]=Ht[Y]=Ht[X]=Ht[ee]=Ht[pe]=Ht[j]=Ht[$o]=Ht[_r]=Ht[Nr]=Ht[Oo]=!0,Ht[Oe]=Ht[M]=Ht[ie]=!1;var EI={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},TI={"&":"&","<":"<",">":">",'"':""","'":"'"},kI={"&":"&","<":"<",">":">",""":'"',"'":"'"},CI={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},AI=parseFloat,SI=parseInt,X0=typeof fo=="object"&&fo&&fo.Object===Object&&fo,II=typeof self=="object"&&self&&self.Object===Object&&self,Rr=X0||II||Function("return this")(),Qh=e&&!e.nodeType&&e,Oa=Qh&&!0&&t&&!t.nodeType&&t,J0=Oa&&Oa.exports===Qh,Kh=J0&&X0.process,Rn=function(){try{var W=Oa&&Oa.require&&Oa.require("util").types;return W||Kh&&Kh.binding&&Kh.binding("util")}catch{}}(),e1=Rn&&Rn.isArrayBuffer,t1=Rn&&Rn.isDate,r1=Rn&&Rn.isMap,n1=Rn&&Rn.isRegExp,i1=Rn&&Rn.isSet,o1=Rn&&Rn.isTypedArray;function _n(W,ae,ne){switch(ne.length){case 0:return W.call(ae);case 1:return W.call(ae,ne[0]);case 2:return W.call(ae,ne[0],ne[1]);case 3:return W.call(ae,ne[0],ne[1],ne[2])}return W.apply(ae,ne)}function $I(W,ae,ne,Be){for(var it=-1,At=W==null?0:W.length;++it-1}function Yh(W,ae,ne){for(var Be=-1,it=W==null?0:W.length;++Be-1;);return ne}function p1(W,ae){for(var ne=W.length;ne--&&Rs(ae,W[ne],0)>-1;);return ne}function zI(W,ae){for(var ne=W.length,Be=0;ne--;)W[ne]===ae&&++Be;return Be}var qI=em(EI),BI=em(TI);function UI(W){return"\\"+CI[W]}function VI(W,ae){return W==null?r:W[ae]}function Ls(W){return yI.test(W)}function jI(W){return bI.test(W)}function HI(W){for(var ae,ne=[];!(ae=W.next()).done;)ne.push(ae.value);return ne}function im(W){var ae=-1,ne=Array(W.size);return W.forEach(function(Be,it){ne[++ae]=[it,Be]}),ne}function h1(W,ae){return function(ne){return W(ae(ne))}}function Lo(W,ae){for(var ne=-1,Be=W.length,it=0,At=[];++ne-1}function P7(s,l){var h=this.__data__,w=Qu(h,s);return w<0?(++this.size,h.push([s,l])):h[w][1]=l,this}Ki.prototype.clear=S7,Ki.prototype.delete=I7,Ki.prototype.get=$7,Ki.prototype.has=O7,Ki.prototype.set=P7;function Yi(s){var l=-1,h=s==null?0:s.length;for(this.clear();++l=l?s:l)),s}function Fn(s,l,h,w,S,O){var F,B=l&_,K=l&y,le=l&b;if(h&&(F=S?h(s,w,S,O):h(s)),F!==r)return F;if(!tr(s))return s;var ue=at(s);if(ue){if(F=D$(s),!B)return an(s,F)}else{var xe=qr(s),Me=xe==M||xe==k;if(qo(s))return Y1(s,B);if(xe==Y||xe==ze||Me&&!S){if(F=K||Me?{}:mx(s),!B)return K?k$(s,Q7(F,s)):T$(s,C1(F,s))}else{if(!Ht[xe])return S?s:{};F=F$(s,xe,B)}}O||(O=new ii);var Ke=O.get(s);if(Ke)return Ke;O.set(s,F),jx(s)?s.forEach(function(et){F.add(Fn(et,l,h,et,s,O))}):Ux(s)&&s.forEach(function(et,mt){F.set(mt,Fn(et,l,h,mt,s,O))});var Je=le?K?$m:Im:K?ln:Tr,ut=ue?r:Je(s);return Ln(ut||s,function(et,mt){ut&&(mt=et,et=s[mt]),gc(F,mt,Fn(et,l,h,mt,s,O))}),F}function K7(s){var l=Tr(s);return function(h){return A1(h,s,l)}}function A1(s,l,h){var w=h.length;if(s==null)return!w;for(s=Ut(s);w--;){var S=h[w],O=l[S],F=s[S];if(F===r&&!(S in s)||!O(F))return!1}return!0}function S1(s,l,h){if(typeof s!="function")throw new Mn(a);return Tc(function(){s.apply(r,h)},l)}function _c(s,l,h,w){var S=-1,O=Ou,F=!0,B=s.length,K=[],le=l.length;if(!B)return K;h&&(l=Jt(l,yn(h))),w?(O=Yh,F=!1):l.length>=i&&(O=uc,F=!1,l=new La(l));e:for(;++SS?0:S+h),w=w===r||w>S?S:ct(w),w<0&&(w+=S),w=h>w?0:Gx(w);h0&&h(B)?l>1?Lr(B,l-1,h,w,S):Ro(S,B):w||(S[S.length]=B)}return S}var um=rx(),O1=rx(!0);function Ai(s,l){return s&&um(s,l,Tr)}function fm(s,l){return s&&O1(s,l,Tr)}function Yu(s,l){return Po(l,function(h){return to(s[h])})}function Da(s,l){l=No(l,s);for(var h=0,w=l.length;s!=null&&hl}function X7(s,l){return s!=null&&Lt.call(s,l)}function J7(s,l){return s!=null&&l in Ut(s)}function e$(s,l,h){return s>=zr(l,h)&&s=120&&ue.length>=120)?new La(F&&ue):r}ue=s[0];var xe=-1,Me=B[0];e:for(;++xe-1;)B!==s&&Bu.call(B,K,1),Bu.call(s,K,1);return s}function U1(s,l){for(var h=s?l.length:0,w=h-1;h--;){var S=l[h];if(h==w||S!==O){var O=S;eo(S)?Bu.call(s,S,1):wm(s,S)}}return s}function ym(s,l){return s+ju(w1()*(l-s+1))}function p$(s,l,h,w){for(var S=-1,O=br(Vu((l-s)/(h||1)),0),F=ne(O);O--;)F[w?O:++S]=s,s+=h;return F}function bm(s,l){var h="";if(!s||l<1||l>Pe)return h;do l%2&&(h+=s),l=ju(l/2),l&&(s+=s);while(l);return h}function ft(s,l){return Fm(_x(s,l,cn),s+"")}function h$(s){return k1(Hs(s))}function m$(s,l){var h=Hs(s);return lf(h,Ma(l,0,h.length))}function xc(s,l,h,w){if(!tr(s))return s;l=No(l,s);for(var S=-1,O=l.length,F=O-1,B=s;B!=null&&++SS?0:S+l),h=h>S?S:h,h<0&&(h+=S),S=l>h?0:h-l>>>0,l>>>=0;for(var O=ne(S);++w>>1,F=s[O];F!==null&&!xn(F)&&(h?F<=l:F=i){var le=l?null:I$(s);if(le)return Ru(le);F=!1,S=uc,K=new La}else K=l?[]:B;e:for(;++w=w?s:Nn(s,l,h)}var K1=a7||function(s){return Rr.clearTimeout(s)};function Y1(s,l){if(l)return s.slice();var h=s.length,w=g1?g1(h):new s.constructor(h);return s.copy(w),w}function Cm(s){var l=new s.constructor(s.byteLength);return new zu(l).set(new zu(s)),l}function b$(s,l){var h=l?Cm(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.byteLength)}function x$(s){var l=new s.constructor(s.source,Er.exec(s));return l.lastIndex=s.lastIndex,l}function w$(s){return vc?Ut(vc.call(s)):{}}function Z1(s,l){var h=l?Cm(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.length)}function X1(s,l){if(s!==l){var h=s!==r,w=s===null,S=s===s,O=xn(s),F=l!==r,B=l===null,K=l===l,le=xn(l);if(!B&&!le&&!O&&s>l||O&&F&&K&&!B&&!le||w&&F&&K||!h&&K||!S)return 1;if(!w&&!O&&!le&&s=B)return K;var le=h[w];return K*(le=="desc"?-1:1)}}return s.index-l.index}function J1(s,l,h,w){for(var S=-1,O=s.length,F=h.length,B=-1,K=l.length,le=br(O-F,0),ue=ne(K+le),xe=!w;++B1?h[S-1]:r,F=S>2?h[2]:r;for(O=s.length>3&&typeof O=="function"?(S--,O):r,F&&Zr(h[0],h[1],F)&&(O=S<3?r:O,S=1),l=Ut(l);++w-1?S[O?l[F]:F]:r}}function ox(s){return Ji(function(l){var h=l.length,w=h,S=Dn.prototype.thru;for(s&&l.reverse();w--;){var O=l[w];if(typeof O!="function")throw new Mn(a);if(S&&!F&&af(O)=="wrapper")var F=new Dn([],!0)}for(w=F?w:h;++w1&&xt.reverse(),ue&&KB))return!1;var le=O.get(s),ue=O.get(l);if(le&&ue)return le==l&&ue==s;var xe=-1,Me=!0,Ke=h&m?new La:r;for(O.set(s,l),O.set(l,s);++xe1?"& ":"")+l[w],l=l.join(h>2?", ":" "),s.replace(yu,`{ /* [wrapped with `+l+`] */ -`)}function z$(s){return at(s)||za(s)||!!(b1&&s&&s[b1])}function eo(s,l){var h=typeof s;return l=l??Pe,!!l&&(h=="number"||h!="symbol"&&ZS.test(s))&&s>-1&&s%1==0&&s0){if(++l>=U)return arguments[0]}else l=0;return s.apply(r,arguments)}}function af(s,l){var h=-1,w=s.length,S=w-1;for(l=l===r?w:l;++h1?s[l-1]:r;return h=typeof h=="function"?(s.pop(),h):r,$x(s,h)});function Ox(s){var l=$(s);return l.__chain__=!0,l}function YO(s,l){return l(s),s}function sf(s,l){return l(s)}var ZO=Ji(function(s){var l=s.length,h=l?s[0]:0,w=this.__wrapped__,S=function(O){return cm(O,s)};return l>1||this.__actions__.length||!(w instanceof gt)||!eo(h)?this.thru(S):(w=w.slice(h,+h+(l?1:0)),w.__actions__.push({func:sf,args:[S],thisArg:r}),new Dn(w,this.__chain__).thru(function(O){return l&&!O.length&&O.push(r),O}))});function XO(){return Ox(this)}function JO(){return new Dn(this.value(),this.__chain__)}function e8(){this.__values__===r&&(this.__values__=Hx(this.value()));var s=this.__index__>=this.__values__.length,l=s?r:this.__values__[this.__index__++];return{done:s,value:l}}function t8(){return this}function r8(s){for(var l,h=this;h instanceof Hu;){var w=Tx(h);w.__index__=0,w.__values__=r,l?S.__wrapped__=w:l=w;var S=w;h=h.__wrapped__}return S.__wrapped__=s,l}function n8(){var s=this.__wrapped__;if(s instanceof gt){var l=s;return this.__actions__.length&&(l=new gt(this)),l=l.reverse(),l.__actions__.push({func:sf,args:[Fm],thisArg:r}),new Dn(l,this.__chain__)}return this.thru(Fm)}function i8(){return W1(this.__wrapped__,this.__actions__)}var o8=Xu(function(s,l,h){Lt.call(s,h)?++s[h]:Zi(s,h,1)});function a8(s,l,h){var w=at(s)?a1:Y7;return h&&Zr(s,l,h)&&(l=r),w(s,Xe(l,3))}function s8(s,l){var h=at(s)?Po:$1;return h(s,Xe(l,3))}var l8=ix(kx),c8=ix(Cx);function d8(s,l){return Lr(lf(s,l),1)}function u8(s,l){return Lr(lf(s,l),Ie)}function f8(s,l,h){return h=h===r?1:ct(h),Lr(lf(s,l),h)}function Px(s,l){var h=at(s)?Ln:Do;return h(s,Xe(l,3))}function Rx(s,l){var h=at(s)?OI:I1;return h(s,Xe(l,3))}var p8=Xu(function(s,l,h){Lt.call(s,h)?s[h].push(l):Zi(s,h,[l])});function h8(s,l,h,w){s=sn(s)?s:Hs(s),h=h&&!w?ct(h):0;var S=s.length;return h<0&&(h=br(S+h,0)),pf(s)?h<=S&&s.indexOf(l,h)>-1:!!S&&Rs(s,l,h)>-1}var m8=ft(function(s,l,h){var w=-1,S=typeof l=="function",O=sn(s)?ne(s.length):[];return Do(s,function(F){O[++w]=S?_n(l,F,h):yc(F,l,h)}),O}),v8=Xu(function(s,l,h){Zi(s,h,l)});function lf(s,l){var h=at(s)?Jt:D1;return h(s,Xe(l,3))}function g8(s,l,h,w){return s==null?[]:(at(l)||(l=l==null?[]:[l]),h=w?r:h,at(h)||(h=h==null?[]:[h]),q1(s,l,h))}var _8=Xu(function(s,l,h){s[h?0:1].push(l)},function(){return[[],[]]});function y8(s,l,h){var w=at(s)?Yh:d1,S=arguments.length<3;return w(s,Xe(l,4),h,S,Do)}function b8(s,l,h){var w=at(s)?PI:d1,S=arguments.length<3;return w(s,Xe(l,4),h,S,I1)}function x8(s,l){var h=at(s)?Po:$1;return h(s,uf(Xe(l,3)))}function w8(s){var l=at(s)?k1:h$;return l(s)}function E8(s,l,h){(h?Zr(s,l,h):l===r)?l=1:l=ct(l);var w=at(s)?H7:m$;return w(s,l)}function T8(s){var l=at(s)?G7:g$;return l(s)}function k8(s){if(s==null)return 0;if(sn(s))return pf(s)?Ms(s):s.length;var l=qr(s);return l==I||l==ee?s.size:mm(s).length}function C8(s,l,h){var w=at(s)?Zh:_$;return h&&Zr(s,l,h)&&(l=r),w(s,Xe(l,3))}var A8=ft(function(s,l){if(s==null)return[];var h=l.length;return h>1&&Zr(s,l[0],l[1])?l=[]:h>2&&Zr(l[0],l[1],l[2])&&(l=[l[0]]),q1(s,Lr(l,1),[])}),cf=s7||function(){return Rr.Date.now()};function S8(s,l){if(typeof l!="function")throw new Mn(a);return s=ct(s),function(){if(--s<1)return l.apply(this,arguments)}}function Lx(s,l,h){return l=h?r:l,l=s&&l==null?s.length:l,Xi(s,L,r,r,r,r,l)}function Mx(s,l){var h;if(typeof l!="function")throw new Mn(a);return s=ct(s),function(){return--s>0&&(h=l.apply(this,arguments)),s<=1&&(l=r),h}}var zm=ft(function(s,l,h){var w=g;if(h.length){var S=Lo(h,Vs(zm));w|=C}return Xi(s,w,l,h,S)}),Dx=ft(function(s,l,h){var w=g|v;if(h.length){var S=Lo(h,Vs(Dx));w|=C}return Xi(l,w,s,h,S)});function Fx(s,l,h){l=h?r:l;var w=Xi(s,E,r,r,r,r,r,l);return w.placeholder=Fx.placeholder,w}function Nx(s,l,h){l=h?r:l;var w=Xi(s,T,r,r,r,r,r,l);return w.placeholder=Nx.placeholder,w}function zx(s,l,h){var w,S,O,F,B,K,le=0,ue=!1,xe=!1,Me=!0;if(typeof s!="function")throw new Mn(a);l=qn(l)||0,tr(h)&&(ue=!!h.leading,xe="maxWait"in h,O=xe?br(qn(h.maxWait)||0,l):O,Me="trailing"in h?!!h.trailing:Me);function Ke(cr){var ai=w,no=S;return w=S=r,le=cr,F=s.apply(no,ai),F}function Je(cr){return le=cr,B=Tc(mt,l),ue?Ke(cr):F}function ut(cr){var ai=cr-K,no=cr-le,i2=l-ai;return xe?zr(i2,O-no):i2}function et(cr){var ai=cr-K,no=cr-le;return K===r||ai>=l||ai<0||xe&&no>=O}function mt(){var cr=cf();if(et(cr))return xt(cr);B=Tc(mt,ut(cr))}function xt(cr){return B=r,Me&&w?Ke(cr):(w=S=r,F)}function wn(){B!==r&&K1(B),le=0,w=K=S=B=r}function Xr(){return B===r?F:xt(cf())}function En(){var cr=cf(),ai=et(cr);if(w=arguments,S=this,K=cr,ai){if(B===r)return Je(K);if(xe)return K1(B),B=Tc(mt,l),Ke(K)}return B===r&&(B=Tc(mt,l)),F}return En.cancel=wn,En.flush=Xr,En}var I8=ft(function(s,l){return S1(s,1,l)}),$8=ft(function(s,l,h){return S1(s,qn(l)||0,h)});function O8(s){return Xi(s,D)}function df(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new Mn(a);var h=function(){var w=arguments,S=l?l.apply(this,w):w[0],O=h.cache;if(O.has(S))return O.get(S);var F=s.apply(this,w);return h.cache=O.set(S,F)||O,F};return h.cache=new(df.Cache||Yi),h}df.Cache=Yi;function uf(s){if(typeof s!="function")throw new Mn(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function P8(s){return Mx(2,s)}var R8=y$(function(s,l){l=l.length==1&&at(l[0])?Jt(l[0],yn(Xe())):Jt(Lr(l,1),yn(Xe()));var h=l.length;return ft(function(w){for(var S=-1,O=zr(w.length,h);++S=l}),za=R1(function(){return arguments}())?R1:function(s){return ir(s)&&Lt.call(s,"callee")&&!y1.call(s,"callee")},at=ne.isArray,Q8=e1?yn(e1):r$;function sn(s){return s!=null&&ff(s.length)&&!to(s)}function lr(s){return ir(s)&&sn(s)}function K8(s){return s===!0||s===!1||ir(s)&&Yr(s)==me}var qo=c7||Zm,Y8=t1?yn(t1):n$;function Z8(s){return ir(s)&&s.nodeType===1&&!kc(s)}function X8(s){if(s==null)return!0;if(sn(s)&&(at(s)||typeof s=="string"||typeof s.splice=="function"||qo(s)||js(s)||za(s)))return!s.length;var l=qr(s);if(l==I||l==ee)return!s.size;if(Ec(s))return!mm(s).length;for(var h in s)if(Lt.call(s,h))return!1;return!0}function J8(s,l){return bc(s,l)}function eP(s,l,h){h=typeof h=="function"?h:r;var w=h?h(s,l):r;return w===r?bc(s,l,r,h):!!w}function Bm(s){if(!ir(s))return!1;var l=Yr(s);return l==Oe||l==$e||typeof s.message=="string"&&typeof s.name=="string"&&!kc(s)}function tP(s){return typeof s=="number"&&x1(s)}function to(s){if(!tr(s))return!1;var l=Yr(s);return l==M||l==k||l==J||l==ye}function Bx(s){return typeof s=="number"&&s==ct(s)}function ff(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Pe}function tr(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function ir(s){return s!=null&&typeof s=="object"}var Ux=r1?yn(r1):o$;function rP(s,l){return s===l||hm(s,l,Om(l))}function nP(s,l,h){return h=typeof h=="function"?h:r,hm(s,l,Om(l),h)}function iP(s){return Vx(s)&&s!=+s}function oP(s){if(U$(s))throw new it(o);return L1(s)}function aP(s){return s===null}function sP(s){return s==null}function Vx(s){return typeof s=="number"||ir(s)&&Yr(s)==N}function kc(s){if(!ir(s)||Yr(s)!=Y)return!1;var l=Nu(s);if(l===null)return!0;var h=Lt.call(l,"constructor")&&l.constructor;return typeof h=="function"&&h instanceof h&&Lu.call(h)==n7}var Um=n1?yn(n1):a$;function lP(s){return Bx(s)&&s>=-Pe&&s<=Pe}var jx=i1?yn(i1):s$;function pf(s){return typeof s=="string"||!at(s)&&ir(s)&&Yr(s)==pe}function xn(s){return typeof s=="symbol"||ir(s)&&Yr(s)==j}var js=o1?yn(o1):l$;function cP(s){return s===r}function dP(s){return ir(s)&&qr(s)==ie}function uP(s){return ir(s)&&Yr(s)==be}var fP=rf(vm),pP=rf(function(s,l){return s<=l});function Hx(s){if(!s)return[];if(sn(s))return pf(s)?ni(s):an(s);if(fc&&s[fc])return HI(s[fc]());var l=qr(s),h=l==I?nm:l==ee?Ou:Hs;return h(s)}function ro(s){if(!s)return s===0?s:0;if(s=qn(s),s===Ie||s===-Ie){var l=s<0?-1:1;return l*Ce}return s===s?s:0}function ct(s){var l=ro(s),h=l%1;return l===l?h?l-h:l:0}function Gx(s){return s?Ma(ct(s),0,we):0}function qn(s){if(typeof s=="number")return s;if(xn(s))return de;if(tr(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=tr(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=u1(s);var h=ku.test(s);return h||YS.test(s)?SI(s.slice(2),h?2:8):Tu.test(s)?de:+s}function Wx(s){return Si(s,ln(s))}function hP(s){return s?Ma(ct(s),-Pe,Pe):s===0?s:0}function Ot(s){return s==null?"":bn(s)}var mP=Bs(function(s,l){if(Ec(l)||sn(l)){Si(l,Tr(l),s);return}for(var h in l)Lt.call(l,h)&&gc(s,h,l[h])}),Qx=Bs(function(s,l){Si(l,ln(l),s)}),hf=Bs(function(s,l,h,w){Si(l,ln(l),s,w)}),vP=Bs(function(s,l,h,w){Si(l,Tr(l),s,w)}),gP=Ji(cm);function _P(s,l){var h=qs(s);return l==null?h:C1(h,l)}var yP=ft(function(s,l){s=Ut(s);var h=-1,w=l.length,S=w>2?l[2]:r;for(S&&Zr(l[0],l[1],S)&&(w=1);++h1),O}),Si(s,Im(s),h),w&&(h=Fn(h,_|y|b,$$));for(var S=l.length;S--;)xm(h,l[S]);return h});function FP(s,l){return Yx(s,uf(Xe(l)))}var NP=Ji(function(s,l){return s==null?{}:u$(s,l)});function Yx(s,l){if(s==null)return{};var h=Jt(Im(s),function(w){return[w]});return l=Xe(l),B1(s,h,function(w,S){return l(w,S[0])})}function zP(s,l,h){l=No(l,s);var w=-1,S=l.length;for(S||(S=1,s=r);++wl){var w=s;s=l,l=w}if(h||s%1||l%1){var S=w1();return zr(s+S*(l-s+AI("1e-"+((S+"").length-1))),l)}return _m(s,l)}var YP=Us(function(s,l,h){return l=l.toLowerCase(),s+(h?Jx(l):l)});function Jx(s){return Hm(Ot(s).toLowerCase())}function e2(s){return s=Ot(s),s&&s.replace(XS,qI).replace(gI,"")}function ZP(s,l,h){s=Ot(s),l=bn(l);var w=s.length;h=h===r?w:Ma(ct(h),0,w);var S=h;return h-=l.length,h>=0&&s.slice(h,S)==l}function XP(s){return s=Ot(s),s&&cu.test(s)?s.replace($a,BI):s}function JP(s){return s=Ot(s),s&&mu.test(s)?s.replace($s,"\\$&"):s}var e6=Us(function(s,l,h){return s+(h?"-":"")+l.toLowerCase()}),t6=Us(function(s,l,h){return s+(h?" ":"")+l.toLowerCase()}),r6=nx("toLowerCase");function n6(s,l,h){s=Ot(s),l=ct(l);var w=l?Ms(s):0;if(!l||w>=l)return s;var S=(l-w)/2;return tf(Uu(S),h)+s+tf(Bu(S),h)}function i6(s,l,h){s=Ot(s),l=ct(l);var w=l?Ms(s):0;return l&&w>>0,h?(s=Ot(s),s&&(typeof l=="string"||l!=null&&!Um(l))&&(l=bn(l),!l&&Ls(s))?zo(ni(s),0,h):s.split(l,h)):[]}var u6=Us(function(s,l,h){return s+(h?" ":"")+Hm(l)});function f6(s,l,h){return s=Ot(s),h=h==null?0:Ma(ct(h),0,s.length),l=bn(l),s.slice(h,h+l.length)==l}function p6(s,l,h){var w=$.templateSettings;h&&Zr(s,l,h)&&(l=r),s=Ot(s),l=hf({},l,w,dx);var S=hf({},l.imports,w.imports,dx),O=Tr(S),F=rm(S,O),B,K,le=0,ue=l.interpolate||Cu,xe="__p += '",Me=im((l.escape||Cu).source+"|"+ue.source+"|"+(ue===dc?Eu:Cu).source+"|"+(l.evaluate||Cu).source+"|$","g"),Ke="//# sourceURL="+(Lt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++wI+"]")+` +`)}function z$(s){return at(s)||za(s)||!!(b1&&s&&s[b1])}function eo(s,l){var h=typeof s;return l=l??Pe,!!l&&(h=="number"||h!="symbol"&&ZS.test(s))&&s>-1&&s%1==0&&s0){if(++l>=U)return arguments[0]}else l=0;return s.apply(r,arguments)}}function lf(s,l){var h=-1,w=s.length,S=w-1;for(l=l===r?w:l;++h1?s[l-1]:r;return h=typeof h=="function"?(s.pop(),h):r,$x(s,h)});function Ox(s){var l=$(s);return l.__chain__=!0,l}function YO(s,l){return l(s),s}function cf(s,l){return l(s)}var ZO=Ji(function(s){var l=s.length,h=l?s[0]:0,w=this.__wrapped__,S=function(O){return dm(O,s)};return l>1||this.__actions__.length||!(w instanceof gt)||!eo(h)?this.thru(S):(w=w.slice(h,+h+(l?1:0)),w.__actions__.push({func:cf,args:[S],thisArg:r}),new Dn(w,this.__chain__).thru(function(O){return l&&!O.length&&O.push(r),O}))});function XO(){return Ox(this)}function JO(){return new Dn(this.value(),this.__chain__)}function e8(){this.__values__===r&&(this.__values__=Hx(this.value()));var s=this.__index__>=this.__values__.length,l=s?r:this.__values__[this.__index__++];return{done:s,value:l}}function t8(){return this}function r8(s){for(var l,h=this;h instanceof Wu;){var w=Tx(h);w.__index__=0,w.__values__=r,l?S.__wrapped__=w:l=w;var S=w;h=h.__wrapped__}return S.__wrapped__=s,l}function n8(){var s=this.__wrapped__;if(s instanceof gt){var l=s;return this.__actions__.length&&(l=new gt(this)),l=l.reverse(),l.__actions__.push({func:cf,args:[Nm],thisArg:r}),new Dn(l,this.__chain__)}return this.thru(Nm)}function i8(){return W1(this.__wrapped__,this.__actions__)}var o8=ef(function(s,l,h){Lt.call(s,h)?++s[h]:Zi(s,h,1)});function a8(s,l,h){var w=at(s)?a1:Y7;return h&&Zr(s,l,h)&&(l=r),w(s,Xe(l,3))}function s8(s,l){var h=at(s)?Po:$1;return h(s,Xe(l,3))}var l8=ix(kx),c8=ix(Cx);function d8(s,l){return Lr(df(s,l),1)}function u8(s,l){return Lr(df(s,l),Ie)}function f8(s,l,h){return h=h===r?1:ct(h),Lr(df(s,l),h)}function Px(s,l){var h=at(s)?Ln:Do;return h(s,Xe(l,3))}function Rx(s,l){var h=at(s)?OI:I1;return h(s,Xe(l,3))}var p8=ef(function(s,l,h){Lt.call(s,h)?s[h].push(l):Zi(s,h,[l])});function h8(s,l,h,w){s=sn(s)?s:Hs(s),h=h&&!w?ct(h):0;var S=s.length;return h<0&&(h=br(S+h,0)),mf(s)?h<=S&&s.indexOf(l,h)>-1:!!S&&Rs(s,l,h)>-1}var m8=ft(function(s,l,h){var w=-1,S=typeof l=="function",O=sn(s)?ne(s.length):[];return Do(s,function(F){O[++w]=S?_n(l,F,h):yc(F,l,h)}),O}),v8=ef(function(s,l,h){Zi(s,h,l)});function df(s,l){var h=at(s)?Jt:D1;return h(s,Xe(l,3))}function g8(s,l,h,w){return s==null?[]:(at(l)||(l=l==null?[]:[l]),h=w?r:h,at(h)||(h=h==null?[]:[h]),q1(s,l,h))}var _8=ef(function(s,l,h){s[h?0:1].push(l)},function(){return[[],[]]});function y8(s,l,h){var w=at(s)?Zh:d1,S=arguments.length<3;return w(s,Xe(l,4),h,S,Do)}function b8(s,l,h){var w=at(s)?PI:d1,S=arguments.length<3;return w(s,Xe(l,4),h,S,I1)}function x8(s,l){var h=at(s)?Po:$1;return h(s,pf(Xe(l,3)))}function w8(s){var l=at(s)?k1:h$;return l(s)}function E8(s,l,h){(h?Zr(s,l,h):l===r)?l=1:l=ct(l);var w=at(s)?H7:m$;return w(s,l)}function T8(s){var l=at(s)?G7:g$;return l(s)}function k8(s){if(s==null)return 0;if(sn(s))return mf(s)?Ms(s):s.length;var l=qr(s);return l==I||l==ee?s.size:vm(s).length}function C8(s,l,h){var w=at(s)?Xh:_$;return h&&Zr(s,l,h)&&(l=r),w(s,Xe(l,3))}var A8=ft(function(s,l){if(s==null)return[];var h=l.length;return h>1&&Zr(s,l[0],l[1])?l=[]:h>2&&Zr(l[0],l[1],l[2])&&(l=[l[0]]),q1(s,Lr(l,1),[])}),uf=s7||function(){return Rr.Date.now()};function S8(s,l){if(typeof l!="function")throw new Mn(a);return s=ct(s),function(){if(--s<1)return l.apply(this,arguments)}}function Lx(s,l,h){return l=h?r:l,l=s&&l==null?s.length:l,Xi(s,L,r,r,r,r,l)}function Mx(s,l){var h;if(typeof l!="function")throw new Mn(a);return s=ct(s),function(){return--s>0&&(h=l.apply(this,arguments)),s<=1&&(l=r),h}}var qm=ft(function(s,l,h){var w=g;if(h.length){var S=Lo(h,Vs(qm));w|=C}return Xi(s,w,l,h,S)}),Dx=ft(function(s,l,h){var w=g|v;if(h.length){var S=Lo(h,Vs(Dx));w|=C}return Xi(l,w,s,h,S)});function Fx(s,l,h){l=h?r:l;var w=Xi(s,E,r,r,r,r,r,l);return w.placeholder=Fx.placeholder,w}function Nx(s,l,h){l=h?r:l;var w=Xi(s,T,r,r,r,r,r,l);return w.placeholder=Nx.placeholder,w}function zx(s,l,h){var w,S,O,F,B,K,le=0,ue=!1,xe=!1,Me=!0;if(typeof s!="function")throw new Mn(a);l=qn(l)||0,tr(h)&&(ue=!!h.leading,xe="maxWait"in h,O=xe?br(qn(h.maxWait)||0,l):O,Me="trailing"in h?!!h.trailing:Me);function Ke(cr){var ai=w,no=S;return w=S=r,le=cr,F=s.apply(no,ai),F}function Je(cr){return le=cr,B=Tc(mt,l),ue?Ke(cr):F}function ut(cr){var ai=cr-K,no=cr-le,i2=l-ai;return xe?zr(i2,O-no):i2}function et(cr){var ai=cr-K,no=cr-le;return K===r||ai>=l||ai<0||xe&&no>=O}function mt(){var cr=uf();if(et(cr))return xt(cr);B=Tc(mt,ut(cr))}function xt(cr){return B=r,Me&&w?Ke(cr):(w=S=r,F)}function wn(){B!==r&&K1(B),le=0,w=K=S=B=r}function Xr(){return B===r?F:xt(uf())}function En(){var cr=uf(),ai=et(cr);if(w=arguments,S=this,K=cr,ai){if(B===r)return Je(K);if(xe)return K1(B),B=Tc(mt,l),Ke(K)}return B===r&&(B=Tc(mt,l)),F}return En.cancel=wn,En.flush=Xr,En}var I8=ft(function(s,l){return S1(s,1,l)}),$8=ft(function(s,l,h){return S1(s,qn(l)||0,h)});function O8(s){return Xi(s,D)}function ff(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new Mn(a);var h=function(){var w=arguments,S=l?l.apply(this,w):w[0],O=h.cache;if(O.has(S))return O.get(S);var F=s.apply(this,w);return h.cache=O.set(S,F)||O,F};return h.cache=new(ff.Cache||Yi),h}ff.Cache=Yi;function pf(s){if(typeof s!="function")throw new Mn(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function P8(s){return Mx(2,s)}var R8=y$(function(s,l){l=l.length==1&&at(l[0])?Jt(l[0],yn(Xe())):Jt(Lr(l,1),yn(Xe()));var h=l.length;return ft(function(w){for(var S=-1,O=zr(w.length,h);++S=l}),za=R1(function(){return arguments}())?R1:function(s){return ir(s)&&Lt.call(s,"callee")&&!y1.call(s,"callee")},at=ne.isArray,Q8=e1?yn(e1):r$;function sn(s){return s!=null&&hf(s.length)&&!to(s)}function lr(s){return ir(s)&&sn(s)}function K8(s){return s===!0||s===!1||ir(s)&&Yr(s)==me}var qo=c7||Xm,Y8=t1?yn(t1):n$;function Z8(s){return ir(s)&&s.nodeType===1&&!kc(s)}function X8(s){if(s==null)return!0;if(sn(s)&&(at(s)||typeof s=="string"||typeof s.splice=="function"||qo(s)||js(s)||za(s)))return!s.length;var l=qr(s);if(l==I||l==ee)return!s.size;if(Ec(s))return!vm(s).length;for(var h in s)if(Lt.call(s,h))return!1;return!0}function J8(s,l){return bc(s,l)}function eP(s,l,h){h=typeof h=="function"?h:r;var w=h?h(s,l):r;return w===r?bc(s,l,r,h):!!w}function Um(s){if(!ir(s))return!1;var l=Yr(s);return l==Oe||l==$e||typeof s.message=="string"&&typeof s.name=="string"&&!kc(s)}function tP(s){return typeof s=="number"&&x1(s)}function to(s){if(!tr(s))return!1;var l=Yr(s);return l==M||l==k||l==J||l==ye}function Bx(s){return typeof s=="number"&&s==ct(s)}function hf(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Pe}function tr(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function ir(s){return s!=null&&typeof s=="object"}var Ux=r1?yn(r1):o$;function rP(s,l){return s===l||mm(s,l,Pm(l))}function nP(s,l,h){return h=typeof h=="function"?h:r,mm(s,l,Pm(l),h)}function iP(s){return Vx(s)&&s!=+s}function oP(s){if(U$(s))throw new it(o);return L1(s)}function aP(s){return s===null}function sP(s){return s==null}function Vx(s){return typeof s=="number"||ir(s)&&Yr(s)==N}function kc(s){if(!ir(s)||Yr(s)!=Y)return!1;var l=qu(s);if(l===null)return!0;var h=Lt.call(l,"constructor")&&l.constructor;return typeof h=="function"&&h instanceof h&&Du.call(h)==n7}var Vm=n1?yn(n1):a$;function lP(s){return Bx(s)&&s>=-Pe&&s<=Pe}var jx=i1?yn(i1):s$;function mf(s){return typeof s=="string"||!at(s)&&ir(s)&&Yr(s)==pe}function xn(s){return typeof s=="symbol"||ir(s)&&Yr(s)==j}var js=o1?yn(o1):l$;function cP(s){return s===r}function dP(s){return ir(s)&&qr(s)==ie}function uP(s){return ir(s)&&Yr(s)==be}var fP=of(gm),pP=of(function(s,l){return s<=l});function Hx(s){if(!s)return[];if(sn(s))return mf(s)?ni(s):an(s);if(fc&&s[fc])return HI(s[fc]());var l=qr(s),h=l==I?im:l==ee?Ru:Hs;return h(s)}function ro(s){if(!s)return s===0?s:0;if(s=qn(s),s===Ie||s===-Ie){var l=s<0?-1:1;return l*Ce}return s===s?s:0}function ct(s){var l=ro(s),h=l%1;return l===l?h?l-h:l:0}function Gx(s){return s?Ma(ct(s),0,we):0}function qn(s){if(typeof s=="number")return s;if(xn(s))return de;if(tr(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=tr(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=u1(s);var h=Au.test(s);return h||YS.test(s)?SI(s.slice(2),h?2:8):Cu.test(s)?de:+s}function Wx(s){return Si(s,ln(s))}function hP(s){return s?Ma(ct(s),-Pe,Pe):s===0?s:0}function Ot(s){return s==null?"":bn(s)}var mP=Bs(function(s,l){if(Ec(l)||sn(l)){Si(l,Tr(l),s);return}for(var h in l)Lt.call(l,h)&&gc(s,h,l[h])}),Qx=Bs(function(s,l){Si(l,ln(l),s)}),vf=Bs(function(s,l,h,w){Si(l,ln(l),s,w)}),vP=Bs(function(s,l,h,w){Si(l,Tr(l),s,w)}),gP=Ji(dm);function _P(s,l){var h=qs(s);return l==null?h:C1(h,l)}var yP=ft(function(s,l){s=Ut(s);var h=-1,w=l.length,S=w>2?l[2]:r;for(S&&Zr(l[0],l[1],S)&&(w=1);++h1),O}),Si(s,$m(s),h),w&&(h=Fn(h,_|y|b,$$));for(var S=l.length;S--;)wm(h,l[S]);return h});function FP(s,l){return Yx(s,pf(Xe(l)))}var NP=Ji(function(s,l){return s==null?{}:u$(s,l)});function Yx(s,l){if(s==null)return{};var h=Jt($m(s),function(w){return[w]});return l=Xe(l),B1(s,h,function(w,S){return l(w,S[0])})}function zP(s,l,h){l=No(l,s);var w=-1,S=l.length;for(S||(S=1,s=r);++wl){var w=s;s=l,l=w}if(h||s%1||l%1){var S=w1();return zr(s+S*(l-s+AI("1e-"+((S+"").length-1))),l)}return ym(s,l)}var YP=Us(function(s,l,h){return l=l.toLowerCase(),s+(h?Jx(l):l)});function Jx(s){return Gm(Ot(s).toLowerCase())}function e2(s){return s=Ot(s),s&&s.replace(XS,qI).replace(gI,"")}function ZP(s,l,h){s=Ot(s),l=bn(l);var w=s.length;h=h===r?w:Ma(ct(h),0,w);var S=h;return h-=l.length,h>=0&&s.slice(h,S)==l}function XP(s){return s=Ot(s),s&&uu.test(s)?s.replace($a,BI):s}function JP(s){return s=Ot(s),s&&gu.test(s)?s.replace($s,"\\$&"):s}var e6=Us(function(s,l,h){return s+(h?"-":"")+l.toLowerCase()}),t6=Us(function(s,l,h){return s+(h?" ":"")+l.toLowerCase()}),r6=nx("toLowerCase");function n6(s,l,h){s=Ot(s),l=ct(l);var w=l?Ms(s):0;if(!l||w>=l)return s;var S=(l-w)/2;return nf(ju(S),h)+s+nf(Vu(S),h)}function i6(s,l,h){s=Ot(s),l=ct(l);var w=l?Ms(s):0;return l&&w>>0,h?(s=Ot(s),s&&(typeof l=="string"||l!=null&&!Vm(l))&&(l=bn(l),!l&&Ls(s))?zo(ni(s),0,h):s.split(l,h)):[]}var u6=Us(function(s,l,h){return s+(h?" ":"")+Gm(l)});function f6(s,l,h){return s=Ot(s),h=h==null?0:Ma(ct(h),0,s.length),l=bn(l),s.slice(h,h+l.length)==l}function p6(s,l,h){var w=$.templateSettings;h&&Zr(s,l,h)&&(l=r),s=Ot(s),l=vf({},l,w,dx);var S=vf({},l.imports,w.imports,dx),O=Tr(S),F=nm(S,O),B,K,le=0,ue=l.interpolate||Su,xe="__p += '",Me=om((l.escape||Su).source+"|"+ue.source+"|"+(ue===dc?ku:Su).source+"|"+(l.evaluate||Su).source+"|$","g"),Ke="//# sourceURL="+(Lt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++wI+"]")+` `;s.replace(Me,function(et,mt,xt,wn,Xr,En){return xt||(xt=wn),xe+=s.slice(le,En).replace(JS,UI),mt&&(B=!0,xe+=`' + __e(`+mt+`) + '`),Xr&&(K=!0,xe+=`'; @@ -961,26 +961,26 @@ __p += '`),xt&&(xe+=`' + `;var Je=Lt.call(l,"variable")&&l.variable;if(!Je)xe=`with (obj) { `+xe+` } -`;else if(xu.test(Je))throw new it(c);xe=(K?xe.replace(zh,""):xe).replace(qh,"$1").replace(Bh,"$1;"),xe="function("+(Je||"obj")+`) { +`;else if(Eu.test(Je))throw new it(c);xe=(K?xe.replace(qh,""):xe).replace(Bh,"$1").replace(Uh,"$1;"),xe="function("+(Je||"obj")+`) { `+(Je?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(B?", __e = _.escape":"")+(K?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+xe+`return __p -}`;var ut=r2(function(){return At(O,Ke+"return "+xe).apply(r,F)});if(ut.source=xe,Bm(ut))throw ut;return ut}function h6(s){return Ot(s).toLowerCase()}function m6(s){return Ot(s).toUpperCase()}function v6(s,l,h){if(s=Ot(s),s&&(h||l===r))return u1(s);if(!s||!(l=bn(l)))return s;var w=ni(s),S=ni(l),O=f1(w,S),F=p1(w,S)+1;return zo(w,O,F).join("")}function g6(s,l,h){if(s=Ot(s),s&&(h||l===r))return s.slice(0,m1(s)+1);if(!s||!(l=bn(l)))return s;var w=ni(s),S=p1(w,ni(l))+1;return zo(w,0,S).join("")}function _6(s,l,h){if(s=Ot(s),s&&(h||l===r))return s.replace(Os,"");if(!s||!(l=bn(l)))return s;var w=ni(s),S=f1(w,ni(l));return zo(w,S).join("")}function y6(s,l){var h=q,w=H;if(tr(l)){var S="separator"in l?l.separator:S;h="length"in l?ct(l.length):h,w="omission"in l?bn(l.omission):w}s=Ot(s);var O=s.length;if(Ls(s)){var F=ni(s);O=F.length}if(h>=O)return s;var B=h-Ms(w);if(B<1)return w;var K=F?zo(F,0,B).join(""):s.slice(0,B);if(S===r)return K+w;if(F&&(B+=K.length-B),Um(S)){if(s.slice(B).search(S)){var le,ue=K;for(S.global||(S=im(S.source,Ot(Er.exec(S))+"g")),S.lastIndex=0;le=S.exec(ue);)var xe=le.index;K=K.slice(0,xe===r?B:xe)}}else if(s.indexOf(bn(S),B)!=B){var Me=K.lastIndexOf(S);Me>-1&&(K=K.slice(0,Me))}return K+w}function b6(s){return s=Ot(s),s&&lu.test(s)?s.replace(Kr,KI):s}var x6=Us(function(s,l,h){return s+(h?" ":"")+l.toUpperCase()}),Hm=nx("toUpperCase");function t2(s,l,h){return s=Ot(s),l=h?r:l,l===r?jI(s)?XI(s):MI(s):s.match(l)||[]}var r2=ft(function(s,l){try{return _n(s,r,l)}catch(h){return Bm(h)?h:new it(h)}}),w6=Ji(function(s,l){return Ln(l,function(h){h=Ii(h),Zi(s,h,zm(s[h],s))}),s});function E6(s){var l=s==null?0:s.length,h=Xe();return s=l?Jt(s,function(w){if(typeof w[1]!="function")throw new Mn(a);return[h(w[0]),w[1]]}):[],ft(function(w){for(var S=-1;++SPe)return[];var h=we,w=zr(s,we);l=Xe(l),s-=we;for(var S=tm(w,l);++h0||l<0)?new gt(h):(s<0?h=h.takeRight(-s):s&&(h=h.drop(s)),l!==r&&(l=ct(l),h=l<0?h.dropRight(-l):h.take(l-s)),h)},gt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},gt.prototype.toArray=function(){return this.take(we)},Ai(gt.prototype,function(s,l){var h=/^(?:filter|find|map|reject)|While$/.test(l),w=/^(?:head|last)$/.test(l),S=$[w?"take"+(l=="last"?"Right":""):l],O=w||/^find/.test(l);S&&($.prototype[l]=function(){var F=this.__wrapped__,B=w?[1]:arguments,K=F instanceof gt,le=B[0],ue=K||at(F),xe=function(mt){var xt=S.apply($,Ro([mt],B));return w&&Me?xt[0]:xt};ue&&h&&typeof le=="function"&&le.length!=1&&(K=ue=!1);var Me=this.__chain__,Ke=!!this.__actions__.length,Je=O&&!Me,ut=K&&!Ke;if(!O&&ue){F=ut?F:new gt(this);var et=s.apply(F,B);return et.__actions__.push({func:sf,args:[xe],thisArg:r}),new Dn(et,Me)}return Je&&ut?s.apply(this,B):(et=this.thru(xe),Je?w?et.value()[0]:et.value():et)})}),Ln(["pop","push","shift","sort","splice","unshift"],function(s){var l=Pu[s],h=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",w=/^(?:pop|shift)$/.test(s);$.prototype[s]=function(){var S=arguments;if(w&&!this.__chain__){var O=this.value();return l.apply(at(O)?O:[],S)}return this[h](function(F){return l.apply(at(F)?F:[],S)})}}),Ai(gt.prototype,function(s,l){var h=$[l];if(h){var w=h.name+"";Lt.call(zs,w)||(zs[w]=[]),zs[w].push({name:l,func:h})}}),zs[Ju(r,v).name]=[{name:"wrapper",func:r}],gt.prototype.clone=b7,gt.prototype.reverse=x7,gt.prototype.value=w7,$.prototype.at=ZO,$.prototype.chain=XO,$.prototype.commit=JO,$.prototype.next=e8,$.prototype.plant=r8,$.prototype.reverse=n8,$.prototype.toJSON=$.prototype.valueOf=$.prototype.value=i8,$.prototype.first=$.prototype.head,fc&&($.prototype[fc]=t8),$},Ds=JI();Oa?((Oa.exports=Ds)._=Ds,Wh._=Ds):Rr._=Ds}).call(fo)})(Cp,Cp.exports);var U4=Cp.exports;const dX={slot:"headline"},uX={slot:"content"},fX=["label","selected","onClick"],pX={slot:"actions"},hX=["disabled"],mX=Bt({__name:"UpdateTagRelationsModal",props:{type:{type:String,required:!0},tags:{type:Array,default:()=>[]},item:{type:Object,required:!0},selected:{type:Array,default:()=>[]}},setup(t){const e=t,r=Se([...e.selected]),{mutate:n,loading:i,onDone:o}=jr({document:lX,appApi:!0});o(()=>{pt.emit("item_tags_updated",{item:e.item,type:e.type}),pt.emit("refetch_tags",e.type),ss()});function a(d){r.value.includes(d)?gs(r.value,u=>u.id===d.id):r.value.push(d)}const c=()=>{const d=r.value.map(f=>f.id),u=e.selected.map(f=>f.id);n({type:e.type,addTagIds:U4.difference(d,u),item:e.item,removeTagIds:U4.difference(u,d)})};return(d,u)=>(te(),oe("md-dialog",null,[V("div",dX,De(d.$t("add_to_tags")),1),V("div",uX,[V("md-chip-set",null,[(te(!0),oe(St,null,Ei(t.tags,f=>(te(),oe("md-filter-chip",{key:f.id,label:f.name,selected:r.value.includes(f),onClick:_=>a(f)},null,8,fX))),128))])]),V("div",pX,[V("md-outlined-button",{value:"cancel",onClick:u[0]||(u[0]=(...f)=>fe(ss)&&fe(ss)(...f))},De(d.$t("cancel")),1),V("md-filled-button",{value:"save",disabled:fe(i),onClick:c,autofocus:""},De(d.$t("save")),9,hX)])]))}}),Qge=(t,e)=>{const r=Se("");return{createPath:r,createVariables(n){return{path:r.value+"/"+n}},createMutation(){return jr({document:eX,options:{update:async(n,i)=>{for(const o of e.value)if(o.dir===r.value){const a=i.data.createDir;o.items.push({...a,name:Bi(a.path),fileId:Ol(t.value,a.path)})}}},appApi:!0})}}},Kge=t=>{const e=Se(""),r=Se("");return{renameValue:e,renamePath:r,renameDone(n){const i=r.value,o=e.value;for(const a of t.value)a.rename(i,o,n)},renameMutation(){return jr({document:tX,appApi:!0})},renameVariables(n){return{path:r.value,name:n}}}},Yge=(t,e,r)=>({onDeleted(n){for(const i of t.value)n.forEach(o=>{i.deleteItem(o.path)});n.forEach(i=>{if(e.value.startsWith(i.path)){const o=i.path.lastIndexOf("/");e.value=i.path.substring(0,o)}}),r()}}),Zge=()=>{const t=Se(null),e=Se(null),r=Se([]),{refetch:n}=ys({handle:(i,o)=>{o||(t.value=i.storageStats.internal,e.value=i.storageStats.sdcard,r.value=i.storageStats.usb)},document:WZ,appApi:!0});return{internal:t,sdcard:e,usb:r,refetch:n}},Xge=(t,e,r,n)=>{const i=Se(e),o=Se(""),a=Se([]),{t:c}=On();let d=0,u=!1;const{loading:f}=ys({handle:async(y,b)=>{if(b)go(c(b),"error");else{const{dir:p,items:m}=y.files,g=[];for(const x of m){const E={...x,name:Bi(x.path)};(ji(E.name)||Li(E.name))&&(E.fileId=Ol(t.value,x.path)),g.push(E)}const v=p.replace(e,"").split("/").length;for(;a.value.length>=v;)a.value.pop();if(a.value.push(new RZ(p,g)),r&&!u){const x=r.replace(e+"/","").split("/");g.length===0?u=!0:d({dir:i.value,showHidden:!0,sortBy:n.value}),options:{fetchPolicy:"no-cache"},appApi:!0}),{refetch:_}=ys({handle:async(y,b)=>{if(b)go(c(b),"error");else{const{dir:p,items:m}=y.files,g=[];for(const v of m)g.push({...v,name:Bi(v.path),fileId:Ol(t.value,v.path)});a.value.forEach(v=>{v.dir===p&&(v.items=g)})}o.value=""},document:q4,variables:()=>({dir:o.value,showHidden:!0,sortBy:n.value}),options:()=>({fetchPolicy:"no-cache",enabled:!!o.value}),appApi:!0});return{loading:f,panels:a,refetch(y){o.value=y,_()},currentDir:i}},Jge=t=>{const{t:e}=On(),r=Se([]),{loading:n}=ys({handle:async(i,o)=>{if(o)go(e(o),"error");else{const a=i.recentFiles;for(const c of a){const d={...c,name:Bi(c.path)};(ji(d.name)||Li(d.name))&&(d.fileId=Ol(t.value,c.path)),r.value.push(d)}}},document:GZ,options:{fetchPolicy:"no-cache"},appApi:!0});return{files:r,loading:n}},vX=t=>({async downloadFile(e,r){const n=vl(t.value,e);r?Xa(n+`&dl=1&name=${r}`,r):Xa(n+"&dl=1",Bi(e))},async downloadDir(e,r){const n=Ol(t.value,e),i=`${$l()}/zip/dir?id=${encodeURIComponent(n)}`;r?Xa(i+`&name=${r}`,r):Xa(i,Bi(e))},downloadFiles(e){const r=Xk(t.value,JSON.stringify({id:e,type:"FILE",name:""}));Xa(`${$l()}/zip/files?id=${encodeURIComponent(r)}`,"")}}),e_e=(t,e)=>({view(r,n){t.value=r.filter(o=>Li(o.name)||ji(o.name)||Od(o.name)).map(o=>({path:o.path,src:"",name:Bi(o.path),size:o.size,duration:0,data:n}));const i=KW(t.value,o=>o.path===n.path);e(t.value,i)}}),t_e=(t,e,r,n)=>{const i=Se(null);return{selectedItem:i,select(o,a){a.isDir?t.value=a.path:o.items.some(d=>d.path===t.value)&&o.items.some(d=>d.path===a.path)&&(t.value=o.dir);const c=[];c.push({name:"path",op:"",value:a.path}),c.push({name:"isDir",op:"",value:t.value===a.path?"1":"0"}),r.value=Yb(c),i.value=a,Bie(n,e?`/files/${e}?q=${Hg(r.value)}`:`/files?q=${Hg(r.value)}`)}}},r_e=(t,e,r)=>{const n=Se(!1),i=Se(),{mutate:o,loading:a,onDone:c,onError:d}=jr({document:rX,appApi:!0}),{mutate:u,loading:f,onDone:_,onError:y}=jr({document:nX,appApi:!0}),{t:b}=On(),p=g=>{go(b(g.message))};d(p),y(p);const m=()=>{var g;if(n.value)for(const v of t.value)gs(((g=v.panel)==null?void 0:g.items)??[],x=>x.path===v.path);setTimeout(()=>{e(i.value),r()},500)};return c(m),_(m),{loading:a||f,canPaste(){return t.value.length>0},copy(g){t.value=g,n.value=!1},cut(g){t.value=g,n.value=!0},paste(g){i.value=g;for(const v of t.value){const x={src:v.path,dst:g+"/"+v.name,overwrite:!1};n.value?u(x):o(x)}}}},n_e=()=>{const{uploads:t}=ba(Co()),e=Se(""),r=Se();return{input:r,upload(n){e.value=n,r.value.value="",r.value.click()},uploadChanged(n){const i=n.target.files;if(!i)return;const o=[];for(let a=0;a({getUploads(t,e){const r=[];for(let n=0;n{const{t:o}=On();return{downloadItems:(a,c)=>{let d=c;if(!a){const f=r.value.filter(_=>_.checked);if(f.length===0){go(o("select_first"),"error");return}d=`ids:${f.map(_=>_.id).join(",")}`}const u=Xk(t.value,JSON.stringify({query:d,type:e,name:i}));Xa(`${$l()}/zip/files?id=${encodeURIComponent(u)}`,i),n()}}},_X={id:"form",slot:"content",method:"dialog"},yX={slot:"actions"},bX={form:"form",value:"cancel"},xX=["disabled"],wX=Bt({__name:"DeleteItemsConfirm",props:{gql:{type:Object,required:!0},done:{type:Function,required:!0},variables:{type:Function,required:!0}},setup(t){const e=t,{mutate:r,loading:n,onDone:i}=jr({document:e.gql,appApi:!0});function o(){r(e.variables())}return i(()=>{e.done(),ss()}),(a,c)=>(te(),oe("md-dialog",null,[V("form",_X,De(a.$t("confirm_to_delete")),1),V("div",yX,[V("md-outlined-button",bX,De(a.$t("cancel")),1),V("md-filled-button",{form:"form",value:"delete",disabled:fe(n),onClick:o,autofocus:""},De(a.$t("delete")),9,xX)])]))}}),EX={id:"form",slot:"content",method:"dialog"},TX={slot:"actions"},kX={form:"form",value:"cancel"},CX=["disabled"],AX=Bt({__name:"DeleteConfirm",props:{id:{type:String,default:"",required:!0},name:{type:String},gql:{type:Object,required:!0},typeName:{type:String,required:!0},appApi:{type:Boolean,default:!1},done:{type:Function},variables:{type:Function}},setup(t){const e=t,{mutate:r,loading:n,onDone:i}=jr({document:e.gql,options:{update:a=>{e.typeName!=="Application"&&a.evict({id:a.identify({__typename:e.typeName,id:e.id})})}},appApi:e.appApi});function o(){r(e.variables?e.variables():{id:e.id})}return i(()=>{e.done&&e.done(),ss()}),(a,c)=>(te(),oe("md-dialog",null,[V("form",EX,De(a.$t("confirm_to_delete_name",{name:t.name})),1),V("div",TX,[V("md-outlined-button",kX,De(a.$t("cancel")),1),V("md-filled-button",{form:"form",value:"delete",disabled:fe(n),onClick:o,autofocus:""},De(a.$t("delete")),9,CX)])]))}}),SX=()=>{const{t}=On(),e=new Map;return e.set("AUDIO","Audio"),e.set("VIDEO","Video"),e.set("IMAGE","Image"),{deleteItems:(r,n,i,o)=>{let a=o;if(!i){const c=n.filter(d=>d.checked);if(c.length===0){go(t("select_first"),"error");return}a=`ids:${c.map(d=>d.id).join(",")}`}vp(wX,{gql:B4,variables:()=>({type:r,query:a}),done:()=>{pt.emit("media_items_deleted",{type:r})}})},deleteItem:(r,n)=>{vp(AX,{id:n.id,name:n.title,gql:B4,variables:()=>({type:r,query:`ids:${n.id}`}),appApi:!0,typeName:e.get(r)??"",done:()=>{pt.emit("media_item_deleted",{item:n,type:r})}})}}};var Yf=(t=>(t.AUDIO="AUDIO",t.VIDEO="VIDEO",t.IMAGE="IMAGE",t.PACKAGE="PACKAGE",t.AI_CHAT="AI_CHAT",t.CALL="CALL",t.CONTACT="CONTACT",t.SMS="SMS",t.NOTE="NOTE",t.BOOK="BOOK",t.FEED_ENTRY="FEED_ENTRY",t))(Yf||{});const IX={id:"form",slot:"content",method:"dialog"},$X={slot:"actions"},OX={form:"form",value:"cancel"},PX=["disabled"],RX=Bt({__name:"DeleteFileConfirm",props:{onDone:{type:Function,required:!0},files:{type:Array,required:!0}},setup(t){const e=t,{mutate:r,loading:n,onDone:i}=jr({document:Ee` +}`;var ut=r2(function(){return At(O,Ke+"return "+xe).apply(r,F)});if(ut.source=xe,Um(ut))throw ut;return ut}function h6(s){return Ot(s).toLowerCase()}function m6(s){return Ot(s).toUpperCase()}function v6(s,l,h){if(s=Ot(s),s&&(h||l===r))return u1(s);if(!s||!(l=bn(l)))return s;var w=ni(s),S=ni(l),O=f1(w,S),F=p1(w,S)+1;return zo(w,O,F).join("")}function g6(s,l,h){if(s=Ot(s),s&&(h||l===r))return s.slice(0,m1(s)+1);if(!s||!(l=bn(l)))return s;var w=ni(s),S=p1(w,ni(l))+1;return zo(w,0,S).join("")}function _6(s,l,h){if(s=Ot(s),s&&(h||l===r))return s.replace(Os,"");if(!s||!(l=bn(l)))return s;var w=ni(s),S=f1(w,ni(l));return zo(w,S).join("")}function y6(s,l){var h=q,w=H;if(tr(l)){var S="separator"in l?l.separator:S;h="length"in l?ct(l.length):h,w="omission"in l?bn(l.omission):w}s=Ot(s);var O=s.length;if(Ls(s)){var F=ni(s);O=F.length}if(h>=O)return s;var B=h-Ms(w);if(B<1)return w;var K=F?zo(F,0,B).join(""):s.slice(0,B);if(S===r)return K+w;if(F&&(B+=K.length-B),Vm(S)){if(s.slice(B).search(S)){var le,ue=K;for(S.global||(S=om(S.source,Ot(Er.exec(S))+"g")),S.lastIndex=0;le=S.exec(ue);)var xe=le.index;K=K.slice(0,xe===r?B:xe)}}else if(s.indexOf(bn(S),B)!=B){var Me=K.lastIndexOf(S);Me>-1&&(K=K.slice(0,Me))}return K+w}function b6(s){return s=Ot(s),s&&du.test(s)?s.replace(Kr,KI):s}var x6=Us(function(s,l,h){return s+(h?" ":"")+l.toUpperCase()}),Gm=nx("toUpperCase");function t2(s,l,h){return s=Ot(s),l=h?r:l,l===r?jI(s)?XI(s):MI(s):s.match(l)||[]}var r2=ft(function(s,l){try{return _n(s,r,l)}catch(h){return Um(h)?h:new it(h)}}),w6=Ji(function(s,l){return Ln(l,function(h){h=Ii(h),Zi(s,h,qm(s[h],s))}),s});function E6(s){var l=s==null?0:s.length,h=Xe();return s=l?Jt(s,function(w){if(typeof w[1]!="function")throw new Mn(a);return[h(w[0]),w[1]]}):[],ft(function(w){for(var S=-1;++SPe)return[];var h=we,w=zr(s,we);l=Xe(l),s-=we;for(var S=rm(w,l);++h0||l<0)?new gt(h):(s<0?h=h.takeRight(-s):s&&(h=h.drop(s)),l!==r&&(l=ct(l),h=l<0?h.dropRight(-l):h.take(l-s)),h)},gt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},gt.prototype.toArray=function(){return this.take(we)},Ai(gt.prototype,function(s,l){var h=/^(?:filter|find|map|reject)|While$/.test(l),w=/^(?:head|last)$/.test(l),S=$[w?"take"+(l=="last"?"Right":""):l],O=w||/^find/.test(l);S&&($.prototype[l]=function(){var F=this.__wrapped__,B=w?[1]:arguments,K=F instanceof gt,le=B[0],ue=K||at(F),xe=function(mt){var xt=S.apply($,Ro([mt],B));return w&&Me?xt[0]:xt};ue&&h&&typeof le=="function"&&le.length!=1&&(K=ue=!1);var Me=this.__chain__,Ke=!!this.__actions__.length,Je=O&&!Me,ut=K&&!Ke;if(!O&&ue){F=ut?F:new gt(this);var et=s.apply(F,B);return et.__actions__.push({func:cf,args:[xe],thisArg:r}),new Dn(et,Me)}return Je&&ut?s.apply(this,B):(et=this.thru(xe),Je?w?et.value()[0]:et.value():et)})}),Ln(["pop","push","shift","sort","splice","unshift"],function(s){var l=Lu[s],h=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",w=/^(?:pop|shift)$/.test(s);$.prototype[s]=function(){var S=arguments;if(w&&!this.__chain__){var O=this.value();return l.apply(at(O)?O:[],S)}return this[h](function(F){return l.apply(at(F)?F:[],S)})}}),Ai(gt.prototype,function(s,l){var h=$[l];if(h){var w=h.name+"";Lt.call(zs,w)||(zs[w]=[]),zs[w].push({name:l,func:h})}}),zs[tf(r,v).name]=[{name:"wrapper",func:r}],gt.prototype.clone=b7,gt.prototype.reverse=x7,gt.prototype.value=w7,$.prototype.at=ZO,$.prototype.chain=XO,$.prototype.commit=JO,$.prototype.next=e8,$.prototype.plant=r8,$.prototype.reverse=n8,$.prototype.toJSON=$.prototype.valueOf=$.prototype.value=i8,$.prototype.first=$.prototype.head,fc&&($.prototype[fc]=t8),$},Ds=JI();Oa?((Oa.exports=Ds)._=Ds,Qh._=Ds):Rr._=Ds}).call(fo)})(Ap,Ap.exports);var U4=Ap.exports;const dX={slot:"headline"},uX={slot:"content"},fX=["label","selected","onClick"],pX={slot:"actions"},hX=["disabled"],mX=Bt({__name:"UpdateTagRelationsModal",props:{type:{type:String,required:!0},tags:{type:Array,default:()=>[]},item:{type:Object,required:!0},selected:{type:Array,default:()=>[]}},setup(t){const e=t,r=Se([...e.selected]),{mutate:n,loading:i,onDone:o}=jr({document:lX,appApi:!0});o(()=>{pt.emit("item_tags_updated",{item:e.item,type:e.type}),pt.emit("refetch_tags",e.type),ss()});function a(d){r.value.includes(d)?gs(r.value,u=>u.id===d.id):r.value.push(d)}const c=()=>{const d=r.value.map(f=>f.id),u=e.selected.map(f=>f.id);n({type:e.type,addTagIds:U4.difference(d,u),item:e.item,removeTagIds:U4.difference(u,d)})};return(d,u)=>(te(),oe("md-dialog",null,[V("div",dX,De(d.$t("add_to_tags")),1),V("div",uX,[V("md-chip-set",null,[(te(!0),oe(St,null,Ei(t.tags,f=>(te(),oe("md-filter-chip",{key:f.id,label:f.name,selected:r.value.includes(f),onClick:_=>a(f)},null,8,fX))),128))])]),V("div",pX,[V("md-outlined-button",{value:"cancel",onClick:u[0]||(u[0]=(...f)=>fe(ss)&&fe(ss)(...f))},De(d.$t("cancel")),1),V("md-filled-button",{value:"save",disabled:fe(i),onClick:c,autofocus:""},De(d.$t("save")),9,hX)])]))}}),Qge=(t,e)=>{const r=Se("");return{createPath:r,createVariables(n){return{path:r.value+"/"+n}},createMutation(){return jr({document:eX,options:{update:async(n,i)=>{for(const o of e.value)if(o.dir===r.value){const a=i.data.createDir;o.items.push({...a,name:Bi(a.path),fileId:Ol(t.value,a.path)})}}},appApi:!0})}}},Kge=t=>{const e=Se(""),r=Se("");return{renameValue:e,renamePath:r,renameDone(n){const i=r.value,o=e.value;for(const a of t.value)a.rename(i,o,n)},renameMutation(){return jr({document:tX,appApi:!0})},renameVariables(n){return{path:r.value,name:n}}}},Yge=(t,e,r)=>({onDeleted(n){for(const i of t.value)n.forEach(o=>{i.deleteItem(o.path)});n.forEach(i=>{if(e.value.startsWith(i.path)){const o=i.path.lastIndexOf("/");e.value=i.path.substring(0,o)}}),r()}}),Zge=()=>{const t=Se(null),e=Se(null),r=Se([]),{refetch:n}=ys({handle:(i,o)=>{o||(t.value=i.storageStats.internal,e.value=i.storageStats.sdcard,r.value=i.storageStats.usb)},document:WZ,appApi:!0});return{internal:t,sdcard:e,usb:r,refetch:n}},Xge=(t,e,r,n)=>{const i=Se(e),o=Se(""),a=Se([]),{t:c}=On();let d=0,u=!1;const{loading:f}=ys({handle:async(y,b)=>{if(b)go(c(b),"error");else{const{dir:p,items:m}=y.files,g=[];for(const x of m){const E={...x,name:Bi(x.path)};(ji(E.name)||Li(E.name))&&(E.fileId=Ol(t.value,x.path)),g.push(E)}const v=p.replace(e,"").split("/").length;for(;a.value.length>=v;)a.value.pop();if(a.value.push(new RZ(p,g)),r&&!u){const x=r.replace(e+"/","").split("/");g.length===0?u=!0:d({dir:i.value,showHidden:!0,sortBy:n.value}),options:{fetchPolicy:"no-cache"},appApi:!0}),{refetch:_}=ys({handle:async(y,b)=>{if(b)go(c(b),"error");else{const{dir:p,items:m}=y.files,g=[];for(const v of m)g.push({...v,name:Bi(v.path),fileId:Ol(t.value,v.path)});a.value.forEach(v=>{v.dir===p&&(v.items=g)})}o.value=""},document:q4,variables:()=>({dir:o.value,showHidden:!0,sortBy:n.value}),options:()=>({fetchPolicy:"no-cache",enabled:!!o.value}),appApi:!0});return{loading:f,panels:a,refetch(y){o.value=y,_()},currentDir:i}},Jge=t=>{const{t:e}=On(),r=Se([]),{loading:n}=ys({handle:async(i,o)=>{if(o)go(e(o),"error");else{const a=i.recentFiles;for(const c of a){const d={...c,name:Bi(c.path)};(ji(d.name)||Li(d.name))&&(d.fileId=Ol(t.value,c.path)),r.value.push(d)}}},document:GZ,options:{fetchPolicy:"no-cache"},appApi:!0});return{files:r,loading:n}},vX=t=>({async downloadFile(e,r){const n=vl(t.value,e);r?Xa(n+`&dl=1&name=${r}`,r):Xa(n+"&dl=1",Bi(e))},async downloadDir(e,r){const n=Ol(t.value,e),i=`${$l()}/zip/dir?id=${encodeURIComponent(n)}`;r?Xa(i+`&name=${r}`,r):Xa(i,Bi(e))},downloadFiles(e){const r=Xk(t.value,JSON.stringify({id:e,type:"FILE",name:""}));Xa(`${$l()}/zip/files?id=${encodeURIComponent(r)}`,"")}}),e_e=(t,e)=>({view(r,n){t.value=r.filter(o=>Li(o.name)||ji(o.name)||Rd(o.name)).map(o=>({path:o.path,src:"",name:Bi(o.path),size:o.size,duration:0,data:n}));const i=KW(t.value,o=>o.path===n.path);e(t.value,i)}}),t_e=(t,e,r,n)=>{const i=Se(null);return{selectedItem:i,select(o,a){a.isDir?t.value=a.path:o.items.some(d=>d.path===t.value)&&o.items.some(d=>d.path===a.path)&&(t.value=o.dir);const c=[];c.push({name:"path",op:"",value:a.path}),c.push({name:"isDir",op:"",value:t.value===a.path?"1":"0"}),r.value=Yb(c),i.value=a,Bie(n,e?`/files/${e}?q=${Gg(r.value)}`:`/files?q=${Gg(r.value)}`)}}},r_e=(t,e,r)=>{const n=Se(!1),i=Se(),{mutate:o,loading:a,onDone:c,onError:d}=jr({document:rX,appApi:!0}),{mutate:u,loading:f,onDone:_,onError:y}=jr({document:nX,appApi:!0}),{t:b}=On(),p=g=>{go(b(g.message))};d(p),y(p);const m=()=>{var g;if(n.value)for(const v of t.value)gs(((g=v.panel)==null?void 0:g.items)??[],x=>x.path===v.path);setTimeout(()=>{e(i.value),r()},500)};return c(m),_(m),{loading:a||f,canPaste(){return t.value.length>0},copy(g){t.value=g,n.value=!1},cut(g){t.value=g,n.value=!0},paste(g){i.value=g;for(const v of t.value){const x={src:v.path,dst:g+"/"+v.name,overwrite:!1};n.value?u(x):o(x)}}}},n_e=()=>{const{uploads:t}=ba(Co()),e=Se(""),r=Se();return{input:r,upload(n){e.value=n,r.value.value="",r.value.click()},uploadChanged(n){const i=n.target.files;if(!i)return;const o=[];for(let a=0;a({getUploads(t,e){const r=[];for(let n=0;n{const{t:o}=On();return{downloadItems:(a,c)=>{let d=c;if(!a){const f=r.value.filter(_=>_.checked);if(f.length===0){go(o("select_first"),"error");return}d=`ids:${f.map(_=>_.id).join(",")}`}const u=Xk(t.value,JSON.stringify({query:d,type:e,name:i}));Xa(`${$l()}/zip/files?id=${encodeURIComponent(u)}`,i),n()}}},_X={id:"form",slot:"content",method:"dialog"},yX={slot:"actions"},bX={form:"form",value:"cancel"},xX=["disabled"],wX=Bt({__name:"DeleteItemsConfirm",props:{gql:{type:Object,required:!0},done:{type:Function,required:!0},variables:{type:Function,required:!0}},setup(t){const e=t,{mutate:r,loading:n,onDone:i}=jr({document:e.gql,appApi:!0});function o(){r(e.variables())}return i(()=>{e.done(),ss()}),(a,c)=>(te(),oe("md-dialog",null,[V("form",_X,De(a.$t("confirm_to_delete")),1),V("div",yX,[V("md-outlined-button",bX,De(a.$t("cancel")),1),V("md-filled-button",{form:"form",value:"delete",disabled:fe(n),onClick:o,autofocus:""},De(a.$t("delete")),9,xX)])]))}}),EX={id:"form",slot:"content",method:"dialog"},TX={slot:"actions"},kX={form:"form",value:"cancel"},CX=["disabled"],AX=Bt({__name:"DeleteConfirm",props:{id:{type:String,default:"",required:!0},name:{type:String},gql:{type:Object,required:!0},typeName:{type:String,required:!0},appApi:{type:Boolean,default:!1},done:{type:Function},variables:{type:Function}},setup(t){const e=t,{mutate:r,loading:n,onDone:i}=jr({document:e.gql,options:{update:a=>{e.typeName!=="Application"&&a.evict({id:a.identify({__typename:e.typeName,id:e.id})})}},appApi:e.appApi});function o(){r(e.variables?e.variables():{id:e.id})}return i(()=>{e.done&&e.done(),ss()}),(a,c)=>(te(),oe("md-dialog",null,[V("form",EX,De(a.$t("confirm_to_delete_name",{name:t.name})),1),V("div",TX,[V("md-outlined-button",kX,De(a.$t("cancel")),1),V("md-filled-button",{form:"form",value:"delete",disabled:fe(n),onClick:o,autofocus:""},De(a.$t("delete")),9,CX)])]))}}),SX=()=>{const{t}=On(),e=new Map;return e.set("AUDIO","Audio"),e.set("VIDEO","Video"),e.set("IMAGE","Image"),{deleteItems:(r,n,i,o)=>{let a=o;if(!i){const c=n.filter(d=>d.checked);if(c.length===0){go(t("select_first"),"error");return}a=`ids:${c.map(d=>d.id).join(",")}`}_p(wX,{gql:B4,variables:()=>({type:r,query:a}),done:()=>{pt.emit("media_items_deleted",{type:r})}})},deleteItem:(r,n)=>{_p(AX,{id:n.id,name:n.title,gql:B4,variables:()=>({type:r,query:`ids:${n.id}`}),appApi:!0,typeName:e.get(r)??"",done:()=>{pt.emit("media_item_deleted",{item:n,type:r})}})}}};var Xf=(t=>(t.AUDIO="AUDIO",t.VIDEO="VIDEO",t.IMAGE="IMAGE",t.PACKAGE="PACKAGE",t.AI_CHAT="AI_CHAT",t.CALL="CALL",t.CONTACT="CONTACT",t.SMS="SMS",t.NOTE="NOTE",t.BOOK="BOOK",t.FEED_ENTRY="FEED_ENTRY",t))(Xf||{});const IX={id:"form",slot:"content",method:"dialog"},$X={slot:"actions"},OX={form:"form",value:"cancel"},PX=["disabled"],RX=Bt({__name:"DeleteFileConfirm",props:{onDone:{type:Function,required:!0},files:{type:Array,required:!0}},setup(t){const e=t,{mutate:r,loading:n,onDone:i}=jr({document:Ee` mutation DeleteFiles($paths: [String!]!) { deleteFiles(paths: $paths) } - `,appApi:!0});function o(){r({paths:e.files.map(a=>a.path)})}return i(()=>{e.onDone(e.files),ss()}),(a,c)=>(te(),oe("md-dialog",null,[V("form",IX,De(a.$t("confirm_to_delete_name",{name:fe(NQ)(t.files.map(d=>d.name).join(", "),{length:200})})),1),V("div",$X,[V("md-outlined-button",OX,De(a.$t("cancel")),1),V("md-filled-button",{form:"form",value:"delete",disabled:fe(n),onClick:o,autofocus:""},De(a.$t("delete")),9,PX)])]))}}),Jn=t=>(yo("data-v-271aa27d"),t=t(),bo(),t),LX={class:"layout"},MX={key:0,class:"toolbar"},DX={key:0,class:"source-name v-center"},FX=Jn(()=>V("md-ripple",null,null,-1)),NX=Jn(()=>V("md-ripple",null,null,-1)),zX=Jn(()=>V("md-ripple",null,null,-1)),qX=Jn(()=>V("md-ripple",null,null,-1)),BX=Jn(()=>V("md-ripple",null,null,-1)),UX=Jn(()=>V("md-ripple",null,null,-1)),VX=Jn(()=>V("md-ripple",null,null,-1)),jX=Jn(()=>V("md-ripple",null,null,-1)),HX=["onClick"],GX={key:2,class:"loading"},WX=Jn(()=>V("md-circular-progress",{indeterminate:""},null,-1)),QX=[WX],KX={key:3,class:"v-on-error"},YX=["onClick"],ZX=["src"],XX=["onClick"],JX={style:{padding:"50px"}},eJ=["src"],tJ=["src"],rJ={key:1,class:"info"},nJ={class:"top-title"},iJ=["onClick"],oJ=Jn(()=>V("md-ripple",null,null,-1)),aJ=Jn(()=>V("md-ripple",null,null,-1)),sJ={class:"list-items"},lJ={class:"item"},cJ={class:"title"},dJ={class:"subtitle"},uJ={key:0},fJ={key:0,class:"item"},pJ={class:"title"},hJ={class:"subtitle"},mJ={key:1,class:"item"},vJ={class:"title"},gJ={class:"subtitle"},_J={key:2,class:"item"},yJ={class:"title"},bJ=["onClick"],xJ=Jn(()=>V("md-ripple",null,null,-1)),wJ={class:"subtitle"},EJ={key:3,class:"item"},TJ={class:"title"},kJ={class:"subtitle"},V4=.2,CJ=Bt({__name:"lightbox",props:{loop:{type:Boolean,default:!0}},emits:["on-error","on-prev","on-next","on-prev-click","on-next-click","on-index-change"],setup(t,{emit:e}){const r=t,n=()=>{const z=v.value;z&&(z.viewOriginImage=!0),g.loading=!0},i=Co(),{urlTokenKey:o,app:a}=ba(i),c=Se(),{imgRef:d,imgState:u,setImgSize:f}=AZ(),_=Se(0),{lightboxInfoVisible:y}=ba(jd()),{downloadFile:b}=vX(o),{deleteItem:p}=SX(),m=gi({scale:1,lastScale:1,rotateDeg:0,top:0,left:0,initX:0,initY:0,lastX:0,lastY:0,touches:[]}),g=gi({loadError:!1,loading:!1,dragging:!1,gesturing:!1,swipeToLeft:!1,swipeToRight:!1,wheeling:!1}),v=Se(),x=()=>g.loadError?"default":"move",E=Se(null);function T(){var Ne,Ue;const z=[Yf.VIDEO,Yf.AUDIO,Yf.IMAGE],ie=(Ne=v.value)==null?void 0:Ne.type,be=(Ue=v.value)==null?void 0:Ue.data;ie&&z.includes(ie)?p(ie,be):vp(RX,{files:[be],onDone:()=>{pt.emit("file_deleted",{item:be})}})}const{loading:C,load:A,refetch:L}=z4({handle:(z,ie)=>{ie||z&&(E.value=z.fileInfo)},document:HZ,variables:()=>{var z,ie,be;return{id:((ie=(z=v.value)==null?void 0:z.data)==null?void 0:ie.id)??"",path:((be=v.value)==null?void 0:be.path)??""}},appApi:!0}),R=new Map,{loading:D,load:q}=z4({handle:(z,ie)=>{var be;z&&R.set(((be=v.value)==null?void 0:be.type)??"",z.tags)},document:KZ,variables:()=>{var z;return{type:((z=v.value)==null?void 0:z.type)??""}},appApi:!0}),H=It(()=>({cursor:x(),top:`calc(50% + ${m.top}px)`,left:`calc(50% + ${m.left}px)`,transition:g.dragging||g.gesturing?"none":"",transform:`translate(-50%, -50%) scale(${m.scale}) rotate(${m.rotateDeg}deg)`})),U=()=>{i.lightbox.visible=!1,i.lightbox.index=-1,_.value=0};function ce(){var Ne,Ue,dt,Wt,gr;const z=((Ue=(Ne=E.value)==null?void 0:Ne.data)==null?void 0:Ue.width)??0,ie=((Wt=(dt=E.value)==null?void 0:dt.data)==null?void 0:Wt.height)??0;let be=` ${z} x ${ie}`;return Li(((gr=v.value)==null?void 0:gr.name)??"")&&(be+=` ${Math.round(z*ie/1e6)} MP`),be}const Ae=()=>{m.scale=1,m.lastScale=1,m.rotateDeg=0,m.top=0,m.left=0,g.loadError=!1,g.dragging=!1,g.gesturing=!1,g.loading=!0},Le=async(z,ie)=>{const be=_.value;Ae();const Ne=i.lightbox.sources[z];Ne.src||(Ne.src=vl(i.urlTokenKey,Ne.path)),_.value=z,v.value=i.lightbox.sources[_.value],setTimeout(()=>{var dt;const Ue=((dt=v.value)==null?void 0:dt.type)??"";Ue&&!R.has(Ue)&&q(),A()},0),be!==z&&(ie&&(CZ(ie)?ie.forEach(Ue=>{e(Ue,be,z)}):e(ie,be,z)),e("on-index-change",be,z))},Te=()=>{const z=_.value,ie=r.loop?(z+1)%i.lightbox.sources.length:z+1;!r.loop&&ie>i.lightbox.sources.length-1||Le(ie,["on-next","on-next-click"])},Ie=()=>{const z=_.value;let ie=z-1;if(z===0){if(!r.loop)return;ie=i.lightbox.sources.length-1}Le(ie,["on-prev","on-prev-click"])},Pe=z=>{Math.abs(1-z)<.05?z=1:Math.abs(u.maxScale-z)<.05&&(z=u.maxScale),m.lastScale=m.scale,m.scale=z},Ce=()=>{const z=m.scale+V4;z{const z=m.scale-(m.scale<.7?.1:V4);z>.1&&Pe(z)},we=()=>{m.rotateDeg-=90},ke=()=>{m.rotateDeg+=90},Re=()=>{m.scale=1,m.top=0,m.left=0},He=z=>z===0,{onMouseDown:ze,onMouseMove:Ge,onMouseUp:J}=SZ(m,g,He),{onTouchStart:me,onTouchMove:ve,onTouchEnd:$e}=IZ(u,m,g,He),Oe=()=>{m.scale!==u.maxScale?(m.lastScale=m.scale,m.scale=u.maxScale):m.scale=m.lastScale},M=z=>{g.loadError||g.gesturing||g.loading||g.dragging||g.wheeling||(g.wheeling=!0,setTimeout(()=>{g.wheeling=!1},80),z.deltaY<0?Ce():de())};let k=!0;const I=()=>{k=!0},N=()=>{k=!1},G=z=>{const ie=z;if(ie.key==="Escape"){if(document.querySelector("md-dialog[open]"))return;U()}else if(ie.key==="ArrowLeft")Ie();else if(ie.key==="ArrowRight")Te();else if(ie.key===" "){const be=c.value;be&&(be.paused&&!k?be.play():be.pause())}},Y=()=>{g.loading=!1,v.value&&Li(v.value.name)&&f()},se=z=>{g.loading=!1,g.loadError=!0,e("on-error",z)},ye=()=>{f()};Vt(()=>i.lightbox.index,z=>{z<0||z>=i.lightbox.sources.length||Le(z)}),Vt(()=>g.dragging,(z,ie)=>{});function X(){var Ne,Ue;const z=((Ne=v.value)==null?void 0:Ne.type)??"",ie=R.get(z)??[],be=((Ue=v.value)==null?void 0:Ue.data)??{};vp(mX,{type:z,tags:ie,item:{key:be.id,title:be.title,size:be.size},selected:ie.filter(dt=>{var Wt,gr;return(gr=(Wt=E.value)==null?void 0:Wt.data)==null?void 0:gr.tags.some(Ci=>Ci.id===dt.id)})})}const ee=z=>{var ie,be;z.item.key===((be=(ie=v.value)==null?void 0:ie.data)==null?void 0:be.id)&&L()},pe=z=>{var ie,be;z.item.id===((be=(ie=v.value)==null?void 0:ie.data)==null?void 0:be.id)&&(gs(i.lightbox.sources,Ne=>{var Ue;return((Ue=Ne.data)==null?void 0:Ue.id)===z.item.id}),i.lightbox.sources.length?Te():U())},j=z=>{var ie,be;z.item.path===((be=(ie=v.value)==null?void 0:ie.data)==null?void 0:be.path)&&(gs(i.lightbox.sources,Ne=>Ne.path===z.item.path),i.lightbox.sources.length?Te():U())};return mn(()=>{R4(document,"keydown",G),R4(window,"resize",ye),pt.on("item_tags_updated",ee),pt.on("media_item_deleted",pe),pt.on("file_deleted",j)}),Hi(()=>{L4(document,"keydown",G),L4(window,"resize",ye),pt.off("item_tags_updated",ee),pt.off("media_item_deleted",pe),pt.off("file_deleted",j)}),(z,ie)=>{const be=Yd,Ne=mA,Ue=hZ,dt=cZ,Wt=iZ,gr=JY,Ci=QY,ri=VY,$o=NY,_r=RY,Nr=SY,Oo=Zb,zh=lK,qh=nK,Bh=XQ,Kr=Ea("tooltip");return te(),Hr(Wy,{to:"body"},[fe(i).lightbox.visible?(te(),Hr(_d,{key:0},{default:_i(()=>[V("div",{onTouchmove:ie[9]||(ie[9]=(...$a)=>fe(M4)&&fe(M4)(...$a)),class:"lightbox",onWheel:M},[qe(_d,{mode:"out-in"},{default:_i(()=>{var $a,lu,cu,du,uu,dc,fu,pu,hu,$s,mu,Os,vu,gu,_u,yu,bu,xu,wu,Eu;return[V("div",LX,[v.value?(te(),oe("header",MX,[v.value.name?(te(),oe("div",DX,[vt((te(),oe("button",{class:"icon-button",onClick:U},[FX,qe(be)])),[[Kr,z.$t("close")]]),V("span",null,De(v.value.name),1)])):yt("",!0),fe(Li)(v.value.name)?(te(),oe(St,{key:1},[v.value.viewOriginImage?yt("",!0):vt((te(),oe("button",{key:0,class:"icon-button",onClick:n},[NX,qe(Ne)])),[[Kr,z.$t("view_origin_image")]]),vt((te(),oe("button",{class:"icon-button",onClick:Ce},[zX,qe(Ue)])),[[Kr,z.$t("zoom_in")]]),vt((te(),oe("button",{class:"icon-button",onClick:de},[qX,qe(dt)])),[[Kr,z.$t("zoom_out")]]),vt((te(),oe("button",{class:"icon-button",onClick:Re},[BX,qe(Wt)])),[[Kr,z.$t("resize")]]),vt((te(),oe("button",{class:"icon-button",onClick:we},[UX,qe(gr)])),[[Kr,z.$t("rotate_left")]]),vt((te(),oe("button",{class:"icon-button",onClick:ke},[VX,qe(Ci)])),[[Kr,z.$t("rotate_right")]])],64)):yt("",!0),vt((te(),oe("button",{class:"icon-button",onClick:ie[0]||(ie[0]=Er=>y.value=!fe(y))},[jX,qe(ri)])),[[Kr,z.$t("info")]])])):yt("",!0),V("section",{class:"content",onClick:Pt(U,["self"])},[fe(i).lightbox.sources.length>1&&(t.loop||_.value>0)?(te(),oe("div",{key:0,class:"btn-prev",onClick:Ie},[qe($o)])):yt("",!0),fe(i).lightbox.sources.length>1&&(t.loop||_.valuefe(ze)&&fe(ze)(...Er)),onMouseup:ie[2]||(ie[2]=(...Er)=>fe(J)&&fe(J)(...Er)),onMousemove:ie[3]||(ie[3]=(...Er)=>fe(Ge)&&fe(Ge)(...Er)),onTouchstart:ie[4]||(ie[4]=(...Er)=>fe(me)&&fe(me)(...Er)),onTouchmove:ie[5]||(ie[5]=(...Er)=>fe(ve)&&fe(ve)(...Er)),onTouchend:ie[6]||(ie[6]=(...Er)=>fe($e)&&fe($e)(...Er)),onLoad:Y,onError:se,onDblclick:Oe,onDragstart:ie[7]||(ie[7]=Er=>{Er.preventDefault()})},null,40,tJ)],4)),[[fi,!g.loading&&!g.loadError]]):yt("",!0)],8,HX),fe(y)?(te(),oe("section",rJ,[V("div",nJ,[qe(Nr,{id:z.$t("info"),raw:E.value},null,8,["id","raw"]),(du=v.value)!=null&&du.data?vt((te(),oe("button",{key:0,class:"icon-button",onClick:Pt(T,["stop"])},[oJ,qe(Oo)],8,iJ)),[[Kr,z.$t("delete")]]):yt("",!0),vt((te(),oe("button",{class:"icon-button",onClick:ie[8]||(ie[8]=Pt(Er=>{var Tu,ku;return fe(b)(((Tu=v.value)==null?void 0:Tu.path)??"",fe(Bi)(((ku=v.value)==null?void 0:ku.path)??"").replace(" ","-"))},["stop"]))},[aJ,qe(zh)])),[[Kr,z.$t("download")]])]),V("section",sJ,[V("div",lJ,[V("div",cJ,De(z.$t("file_size")),1),V("div",dJ,[Cn(De(fe(Pd)(((uu=v.value)==null?void 0:uu.size)??0))+" ",1),(fu=(dc=E.value)==null?void 0:dc.data)!=null&&fu.width&&((hu=(pu=E.value)==null?void 0:pu.data)!=null&&hu.height)?(te(),oe("span",uJ,De(ce()),1)):yt("",!0)])]),($s=E.value)!=null&&$s.updatedAt?(te(),oe("div",fJ,[V("div",pJ,De(z.$t("updated_at")),1),V("div",hJ,[vt((te(),oe("span",null,[Cn(De(fe(l0)(E.value.updatedAt)),1)])),[[Kr,fe(c0)(E.value.updatedAt)]])])])):yt("",!0),v.value&&(fe(Od)((mu=v.value)==null?void 0:mu.name)||fe(ji)((Os=v.value)==null?void 0:Os.name))?(te(),oe("div",mJ,[V("div",vJ,De(z.$t("duration")),1),V("div",gJ,De(fe(xh)(((gu=(vu=E.value)==null?void 0:vu.data)==null?void 0:gu.duration)??((_u=v.value)==null?void 0:_u.duration))),1)])):yt("",!0),(yu=v.value)!=null&&yu.type?(te(),oe("div",_J,[V("div",yJ,[Cn(De(z.$t("tags"))+" ",1),vt((te(),oe("button",{class:"icon-button",onClick:Pt(X,["prevent"])},[xJ,qe(qh)],8,bJ)),[[Kr,z.$t("add_to_tags")]])]),V("div",wJ,[qe(Bh,{tags:(xu=(bu=E.value)==null?void 0:bu.data)==null?void 0:xu.tags},null,8,["tags"])])])):yt("",!0),(wu=v.value)!=null&&wu.path?(te(),oe("div",EJ,[V("div",TJ,De(z.$t("path")),1),V("div",kJ,De(fe(oB)(fe(a).externalFilesDir,(Eu=v.value)==null?void 0:Eu.path)),1)])):yt("",!0)])])):yt("",!0)])]}),_:1})],32)]),_:1})):yt("",!0)])}}});const AJ=gn(CJ,[["__scopeId","data-v-271aa27d"]]);function SJ(t,e=[],r=""){return t?"loading":r&&!e.includes(r)?"no_permission":"no_data"}const IJ={type:"alert"},$J={slot:"headline"},OJ={slot:"content",method:"dialog"},PJ={slot:"actions"},RJ=Bt({__name:"ConfirmModal",props:{title:{type:String},message:{type:String}},setup(t){function e(){ss()}return(r,n)=>(te(),oe("md-dialog",IJ,[V("div",$J,De(t.title||r.$t("confirm")),1),V("section",OJ,[V("pre",null,De(t.message),1)]),V("div",PJ,[V("md-filled-button",{form:"form",value:"ok",onClick:e},De(r.$t("ok")),1)])]))}}),EA=t=>(yo("data-v-175f4042"),t=t(),bo(),t),LJ={class:"notifications"},MJ={class:"top-title"},DJ=["onClick"],FJ=EA(()=>V("md-ripple",null,null,-1)),NJ={key:0,class:"alert-warning"},zJ=["onClick"],qJ={key:1,class:"alert-warning"},BJ=["onClick"],UJ={class:"items-container"},VJ={key:0,class:"list-items"},jJ={class:"title"},HJ=["src"],GJ={class:"view-raw"},WJ={class:"name"},QJ={class:"time nowrap"},KJ={class:"subtitle"},YJ={class:"body"},ZJ=["onClick"],XJ=EA(()=>V("md-ripple",null,null,-1)),JJ={key:1,class:"no-data"},eee=Bt({__name:"Notifications",setup(t){const{resolveClient:e}=ah(),{t:r}=On(),{app:n,urlTokenKey:i}=ba(Co()),o=Se([]),a=window.location.protocol==="https:",{loading:c}=ys({handle:(p,m)=>{m?go(r(m),"error"):p&&(o.value=p.notifications.map(g=>({...g,icon:vl(i.value,"pkgicon://"+g.appId)})))},document:$v,appApi:!0}),d=Se(Notification.permission),{mutate:u}=jr({document:cX,appApi:!0}),f=p=>{u({ids:[p.id]})},_=()=>{window.open(`https://${window.location.hostname}:${n.value.httpsPort}`,"_blank")},y=()=>{if(Notification.permission==="denied"){gk(RJ,{title:r("desktop_notification_permission_grant_title"),message:r("desktop_notification_permission_grant_message")});return}Notification.requestPermission().then(p=>{d.value=p})},b=()=>{const p=o.value.map(m=>m.id);u({ids:p})};return mn(()=>{pt.on("notification_created",async p=>{const m=e("a");if(ts(m.cache,[{...p,__typename:"Notification"}],$v,null,!0),p.icon=vl(i.value,"pkgicon://"+p.appId),"Notification"in window&&Notification.permission==="granted"){const g=new Notification(p.title,{body:p.body,icon:p.icon});g.onclick=()=>{window.focus(),g.close()}}}),pt.on("notification_updated",async p=>{const g=e("a").cache;if(g.evict({id:g.identify({__typename:"Notification",id:p.id})}),ts(g,[{...p,__typename:"Notification"}],$v,null,!0),p.icon=vl(i.value,"pkgicon://"+p.appId),"Notification"in window&&Notification.permission==="granted"){const v=new Notification(p.title,{body:p.body,icon:p.icon});v.onclick=()=>{window.focus(),v.close()}}}),pt.on("notification_deleted",async p=>{const g=e("a").cache;g.evict({id:g.identify({__typename:"Notification",id:p.id})})})}),(p,m)=>{const g=Zb,v=a0,x=Yd,E=Ea("tooltip");return te(),oe("div",LJ,[V("div",MJ,[Cn(De(p.$t("header_actions.notifications"))+" ("+De(o.value.length)+") ",1),o.value.length?vt((te(),oe("button",{key:0,class:"icon-button",onClick:Pt(b,["prevent"])},[FJ,qe(g)],8,DJ)),[[E,p.$t("clear_list")]]):yt("",!0)]),!a&&d.value!=="granted"?(te(),oe("div",NJ,[Cn(De(p.$t("desktop_notification_need_https"))+" ",1),V("md-filled-button",{class:"btn-sm",onClick:Pt(_,["stop"])},De(p.$t("use_https_link")),9,zJ)])):d.value!=="granted"?(te(),oe("div",qJ,[Cn(De(p.$t("desktop_notification_permission_not_granted"))+" ",1),V("md-filled-button",{class:"btn-sm",onClick:Pt(y,["stop"])},De(p.$t("grant_permission")),9,BJ)])):yt("",!0),V("div",UJ,[o.value.length?(te(),oe("section",VJ,[(te(!0),oe(St,null,Ei(o.value,T=>(te(),oe("div",{class:"item",key:T.id},[V("div",jJ,[qe(v,null,{content:_i(()=>[V("pre",GJ,De(T),1)]),default:_i(()=>[V("img",{width:"20",height:"20",src:T.icon},null,8,HJ)]),_:2},1024),V("span",WJ,De(T.appName),1),vt((te(),oe("span",QJ,[Cn(De(fe(l0)(T.time)),1)])),[[E,fe(c0)(T.time)]])]),V("div",KJ,De(T.title),1),V("div",YJ,De(T.body),1),V("button",{class:"icon-button icon",onClick:Pt(C=>f(T),["stop"])},[XJ,qe(x)],8,ZJ)]))),128))])):(te(),oe("span",JJ,De(p.$t(fe(SJ)(fe(c),fe(n).permissions,"NOTIFICATION_LISTENER"))),1))])])}}});const tee=gn(eee,[["__scopeId","data-v-175f4042"]]);const rt=t=>e=>typeof e=="function"?((r,n)=>(customElements.define(r,n),n))(t,e):((r,n)=>{const{kind:i,elements:o}=n;return{kind:i,elements:o,finisher(a){customElements.define(r,a)}}})(t,e);const ree=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}},nee=(t,e,r)=>{e.constructor.createProperty(r,t)};function Q(t){return(e,r)=>r!==void 0?nee(t,e,r):ree(t,e)}function $t(t){return Q({...t,state:!0})}const Zd=({finisher:t,descriptor:e})=>(r,n)=>{var i;if(n===void 0){const o=(i=r.originalKey)!==null&&i!==void 0?i:r.key,a=e!=null?{kind:"method",placement:"prototype",key:o,descriptor:e(r.key)}:{...r,key:o};return t!=null&&(a.finisher=function(c){t(c,o)}),a}{const o=r.constructor;e!==void 0&&Object.defineProperty(r,n,e(n)),t==null||t(o,n)}};function Et(t,e){return Zd({descriptor:r=>{const n={get(){var i,o;return(o=(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(t))!==null&&o!==void 0?o:null},enumerable:!0,configurable:!0};if(e){const i=typeof r=="symbol"?Symbol():"__"+r;n.get=function(){var o,a;return this[i]===void 0&&(this[i]=(a=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(t))!==null&&a!==void 0?a:null),this[i]}}return n}})}function iee(t){return Zd({descriptor:e=>({get(){var r,n;return(n=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelectorAll(t))!==null&&n!==void 0?n:[]},enumerable:!0,configurable:!0})})}function TA(t){return Zd({descriptor:e=>({async get(){var r;return await this.updateComplete,(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector(t)},enumerable:!0,configurable:!0})})}var Ov;const oee=((Ov=window.HTMLSlotElement)===null||Ov===void 0?void 0:Ov.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(r=>r.nodeType===Node.ELEMENT_NODE);function Wr(t){const{slot:e,selector:r}=t??{};return Zd({descriptor:n=>({get(){var i;const o="slot"+(e?`[name=${e}]`:":not([name])"),a=(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(o),c=a!=null?oee(a,t):[];return r?c.filter(d=>d.matches(r)):c},enumerable:!0,configurable:!0})})}function aee(t,e,r){let n,i=t;return typeof t=="object"?(i=t.slot,n=t):n={flatten:e},r?Wr({slot:i,flatten:e,selector:r}):Zd({descriptor:o=>({get(){var a,c;const d="slot"+(i?`[name=${i}]`:":not([name])"),u=(a=this.renderRoot)===null||a===void 0?void 0:a.querySelector(d);return(c=u==null?void 0:u.assignedNodes(n))!==null&&c!==void 0?c:[]},enumerable:!0,configurable:!0})})}const Zf=window,f0=Zf.ShadowRoot&&(Zf.ShadyCSS===void 0||Zf.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p0=Symbol(),j4=new WeakMap;let kA=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==p0)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(f0&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=j4.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&j4.set(r,e))}return e}toString(){return this.cssText}};const see=t=>new kA(typeof t=="string"?t:t+"",void 0,p0),Ve=(t,...e)=>{const r=t.length===1?t[0]:e.reduce((n,i,o)=>n+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1],t[0]);return new kA(r,t,p0)},lee=(t,e)=>{f0?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{const n=document.createElement("style"),i=Zf.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)})},H4=f0?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return see(r)})(t):t;var Pv;const Ap=window,G4=Ap.trustedTypes,cee=G4?G4.emptyScript:"",W4=Ap.reactiveElementPolyfillSupport,u_={toAttribute(t,e){switch(e){case Boolean:t=t?cee:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},CA=(t,e)=>e!==t&&(e==e||t==t),Rv={attribute:!0,type:String,converter:u_,reflect:!1,hasChanged:CA},f_="finalized";let il=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((r,n)=>{const i=this._$Ep(n,r);i!==void 0&&(this._$Ev.set(i,n),e.push(i))}),e}static createProperty(e,r=Rv){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){const n=typeof e=="symbol"?Symbol():"__"+e,i=this.getPropertyDescriptor(e,n,r);i!==void 0&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){return{get(){return this[r]},set(i){const o=this[e];this[r]=i,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Rv}static finalize(){if(this.hasOwnProperty(f_))return!1;this[f_]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(const i of n)this.createProperty(i,r[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const i of n)r.unshift(H4(i))}else e!==void 0&&r.push(H4(e));return r}static _$Ep(e,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;const r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return lee(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EO(e,r,n=Rv){var i;const o=this.constructor._$Ep(e,n);if(o!==void 0&&n.reflect===!0){const a=(((i=n.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?n.converter:u_).toAttribute(r,n.type);this._$El=e,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$El=null}}_$AK(e,r){var n;const i=this.constructor,o=i._$Ev.get(e);if(o!==void 0&&this._$El!==o){const a=i.getPropertyOptions(o),c=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?a.converter:u_;this._$El=o,this[o]=c.fromAttribute(r,a.type),this._$El=null}}requestUpdate(e,r,n){let i=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||CA)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,o)=>this[o]=i),this._$Ei=void 0);let r=!1;const n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostUpdate)===null||o===void 0?void 0:o.call(i)}),this.update(n)):this._$Ek()}catch(i){throw r=!1,this._$Ek(),i}r&&this._$AE(n)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var i;return(i=n.hostUpdated)===null||i===void 0?void 0:i.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};il[f_]=!0,il.elementProperties=new Map,il.elementStyles=[],il.shadowRootOptions={mode:"open"},W4==null||W4({ReactiveElement:il}),((Pv=Ap.reactiveElementVersions)!==null&&Pv!==void 0?Pv:Ap.reactiveElementVersions=[]).push("1.6.3");var Lv;const Sp=window,zl=Sp.trustedTypes,Q4=zl?zl.createPolicy("lit-html",{createHTML:t=>t}):void 0,p_="$lit$",ta=`lit$${(Math.random()+"").slice(9)}$`,AA="?"+ta,dee=`<${AA}>`,bs=document,Rd=()=>bs.createComment(""),Ld=t=>t===null||typeof t!="object"&&typeof t!="function",SA=Array.isArray,uee=t=>SA(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Mv=`[ -\f\r]`,Fc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K4=/-->/g,Y4=/>/g,Va=RegExp(`>|${Mv}(?:([^\\s"'>=/]+)(${Mv}*=${Mv}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),Z4=/'/g,X4=/"/g,IA=/^(?:script|style|textarea|title)$/i,fee=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),_e=fee(1),Hn=Symbol.for("lit-noChange"),ge=Symbol.for("lit-nothing"),J4=new WeakMap,rs=bs.createTreeWalker(bs,129,null,!1);function $A(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Q4!==void 0?Q4.createHTML(e):e}const pee=(t,e)=>{const r=t.length-1,n=[];let i,o=e===2?"":"",a=Fc;for(let c=0;c"?(a=i??Fc,_=-1):f[1]===void 0?_=-2:(_=a.lastIndex-f[2].length,u=f[1],a=f[3]===void 0?Va:f[3]==='"'?X4:Z4):a===X4||a===Z4?a=Va:a===K4||a===Y4?a=Fc:(a=Va,i=void 0);const b=a===Va&&t[c+1].startsWith("/>")?" ":"";o+=a===Fc?d+dee:_>=0?(n.push(u),d.slice(0,_)+p_+d.slice(_)+ta+b):d+ta+(_===-2?(n.push(void 0),c):b)}return[$A(t,o+(t[r]||"")+(e===2?"":"")),n]};class Md{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let o=0,a=0;const c=e.length-1,d=this.parts,[u,f]=pee(e,r);if(this.el=Md.createElement(u,n),rs.currentNode=this.el.content,r===2){const _=this.el.content,y=_.firstChild;y.remove(),_.append(...y.childNodes)}for(;(i=rs.nextNode())!==null&&d.length0){i.textContent=zl?zl.emptyScript:"";for(let b=0;b2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=ge}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,n,i){const o=this.strings;let a=!1;if(o===void 0)e=ql(this,e,r,0),a=!Ld(e)||e!==this._$AH&&e!==Hn,a&&(this._$AH=e);else{const c=e;let d,u;for(e=o[0],d=0;d{var n,i;const o=(n=r==null?void 0:r.renderBefore)!==null&&n!==void 0?n:e;let a=o._$litPart$;if(a===void 0){const c=(i=r==null?void 0:r.renderBefore)!==null&&i!==void 0?i:null;o._$litPart$=a=new Xd(e.insertBefore(Rd(),c),c,void 0,r??{})}return a._$AI(t),a};var Dv,Fv;let lt=class extends il{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;const n=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=n.firstChild),n}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=OA(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return Hn}};lt.finalized=!0,lt._$litElement$=!0,(Dv=globalThis.litElementHydrateSupport)===null||Dv===void 0||Dv.call(globalThis,{LitElement:lt});const tE=globalThis.litElementPolyfillSupport;tE==null||tE({LitElement:lt});((Fv=globalThis.litElementVersions)!==null&&Fv!==void 0?Fv:globalThis.litElementVersions=[]).push("3.3.3");const bee=!1;const ea={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},h0=t=>(...e)=>({_$litDirective$:t,values:e});let m0=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};const jt=h0(class extends m0{constructor(t){var e;if(super(t),t.type!==ea.ATTRIBUTE||t.name!=="class"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var r,n;if(this.it===void 0){this.it=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in e)e[o]&&!(!((r=this.nt)===null||r===void 0)&&r.has(o))&&this.it.add(o);return this.render(e)}const i=t.element.classList;this.it.forEach(o=>{o in e||(i.remove(o),this.it.delete(o))});for(const o in e){const a=!!e[o];a===this.it.has(o)||!((n=this.nt)===null||n===void 0)&&n.has(o)||(a?(i.add(o),this.it.add(o)):(i.remove(o),this.it.delete(o)))}return Hn}});class PA extends lt{constructor(){super(...arguments),this.value=""}render(){const e={"md3-badge--large":this.value};return _e`
+ `,appApi:!0});function o(){r({paths:e.files.map(a=>a.path)})}return i(()=>{e.onDone(e.files),ss()}),(a,c)=>(te(),oe("md-dialog",null,[V("form",IX,De(a.$t("confirm_to_delete_name",{name:fe(NQ)(t.files.map(d=>d.name).join(", "),{length:200})})),1),V("div",$X,[V("md-outlined-button",OX,De(a.$t("cancel")),1),V("md-filled-button",{form:"form",value:"delete",disabled:fe(n),onClick:o,autofocus:""},De(a.$t("delete")),9,PX)])]))}}),Jn=t=>(yo("data-v-271aa27d"),t=t(),bo(),t),LX={class:"layout"},MX={key:0,class:"toolbar"},DX={key:0,class:"source-name v-center"},FX=Jn(()=>V("md-ripple",null,null,-1)),NX=Jn(()=>V("md-ripple",null,null,-1)),zX=Jn(()=>V("md-ripple",null,null,-1)),qX=Jn(()=>V("md-ripple",null,null,-1)),BX=Jn(()=>V("md-ripple",null,null,-1)),UX=Jn(()=>V("md-ripple",null,null,-1)),VX=Jn(()=>V("md-ripple",null,null,-1)),jX=Jn(()=>V("md-ripple",null,null,-1)),HX=["onClick"],GX={key:2,class:"loading"},WX=Jn(()=>V("md-circular-progress",{indeterminate:""},null,-1)),QX=[WX],KX={key:3,class:"v-on-error"},YX=["onClick"],ZX=["src"],XX=["onClick"],JX={style:{padding:"50px"}},eJ=["src"],tJ=["src"],rJ={key:1,class:"info"},nJ={class:"top-title"},iJ=["onClick"],oJ=Jn(()=>V("md-ripple",null,null,-1)),aJ=Jn(()=>V("md-ripple",null,null,-1)),sJ={class:"list-items"},lJ={class:"item"},cJ={class:"title"},dJ={class:"subtitle"},uJ={key:0},fJ={key:0,class:"item"},pJ={class:"title"},hJ={class:"subtitle"},mJ={key:1,class:"item"},vJ={class:"title"},gJ={class:"subtitle"},_J={key:2,class:"item"},yJ={class:"title"},bJ=["onClick"],xJ=Jn(()=>V("md-ripple",null,null,-1)),wJ={class:"subtitle"},EJ={key:3,class:"item"},TJ={class:"title"},kJ={class:"subtitle"},V4=.2,CJ=Bt({__name:"lightbox",props:{loop:{type:Boolean,default:!0}},emits:["on-error","on-prev","on-next","on-prev-click","on-next-click","on-index-change"],setup(t,{emit:e}){const r=t,n=()=>{const z=v.value;z&&(z.viewOriginImage=!0),g.loading=!0},i=Co(),{urlTokenKey:o,app:a}=ba(i),c=Se(),{imgRef:d,imgState:u,setImgSize:f}=AZ(),_=Se(0),{lightboxInfoVisible:y}=ba(Gd()),{downloadFile:b}=vX(o),{deleteItem:p}=SX(),m=gi({scale:1,lastScale:1,rotateDeg:0,top:0,left:0,initX:0,initY:0,lastX:0,lastY:0,touches:[]}),g=gi({loadError:!1,loading:!1,dragging:!1,gesturing:!1,swipeToLeft:!1,swipeToRight:!1,wheeling:!1}),v=Se(),x=()=>g.loadError?"default":"move",E=Se(null);function T(){var Ne,Ue;const z=[Xf.VIDEO,Xf.AUDIO,Xf.IMAGE],ie=(Ne=v.value)==null?void 0:Ne.type,be=(Ue=v.value)==null?void 0:Ue.data;ie&&z.includes(ie)?p(ie,be):_p(RX,{files:[be],onDone:()=>{pt.emit("file_deleted",{item:be})}})}const{loading:C,load:A,refetch:L}=z4({handle:(z,ie)=>{ie||z&&(E.value=z.fileInfo)},document:HZ,variables:()=>{var z,ie,be;return{id:((ie=(z=v.value)==null?void 0:z.data)==null?void 0:ie.id)??"",path:((be=v.value)==null?void 0:be.path)??""}},appApi:!0}),R=new Map,{loading:D,load:q}=z4({handle:(z,ie)=>{var be;z&&R.set(((be=v.value)==null?void 0:be.type)??"",z.tags)},document:KZ,variables:()=>{var z;return{type:((z=v.value)==null?void 0:z.type)??""}},appApi:!0}),H=It(()=>({cursor:x(),top:`calc(50% + ${m.top}px)`,left:`calc(50% + ${m.left}px)`,transition:g.dragging||g.gesturing?"none":"",transform:`translate(-50%, -50%) scale(${m.scale}) rotate(${m.rotateDeg}deg)`})),U=()=>{i.lightbox.visible=!1,i.lightbox.index=-1,_.value=0};function ce(){var Ne,Ue,dt,Wt,gr;const z=((Ue=(Ne=E.value)==null?void 0:Ne.data)==null?void 0:Ue.width)??0,ie=((Wt=(dt=E.value)==null?void 0:dt.data)==null?void 0:Wt.height)??0;let be=` ${z} x ${ie}`;return Li(((gr=v.value)==null?void 0:gr.name)??"")&&(be+=` ${Math.round(z*ie/1e6)} MP`),be}const Ae=()=>{m.scale=1,m.lastScale=1,m.rotateDeg=0,m.top=0,m.left=0,g.loadError=!1,g.dragging=!1,g.gesturing=!1,g.loading=!0},Le=async(z,ie)=>{const be=_.value;Ae();const Ne=i.lightbox.sources[z];Ne.src||(Ne.src=vl(i.urlTokenKey,Ne.path)),_.value=z,v.value=i.lightbox.sources[_.value],setTimeout(()=>{var dt;const Ue=((dt=v.value)==null?void 0:dt.type)??"";Ue&&!R.has(Ue)&&q(),A()},0),be!==z&&(ie&&(CZ(ie)?ie.forEach(Ue=>{e(Ue,be,z)}):e(ie,be,z)),e("on-index-change",be,z))},Te=()=>{const z=_.value,ie=r.loop?(z+1)%i.lightbox.sources.length:z+1;!r.loop&&ie>i.lightbox.sources.length-1||Le(ie,["on-next","on-next-click"])},Ie=()=>{const z=_.value;let ie=z-1;if(z===0){if(!r.loop)return;ie=i.lightbox.sources.length-1}Le(ie,["on-prev","on-prev-click"])},Pe=z=>{Math.abs(1-z)<.05?z=1:Math.abs(u.maxScale-z)<.05&&(z=u.maxScale),m.lastScale=m.scale,m.scale=z},Ce=()=>{const z=m.scale+V4;z{const z=m.scale-(m.scale<.7?.1:V4);z>.1&&Pe(z)},we=()=>{m.rotateDeg-=90},ke=()=>{m.rotateDeg+=90},Re=()=>{m.scale=1,m.top=0,m.left=0},He=z=>z===0,{onMouseDown:ze,onMouseMove:Ge,onMouseUp:J}=SZ(m,g,He),{onTouchStart:me,onTouchMove:ve,onTouchEnd:$e}=IZ(u,m,g,He),Oe=()=>{m.scale!==u.maxScale?(m.lastScale=m.scale,m.scale=u.maxScale):m.scale=m.lastScale},M=z=>{g.loadError||g.gesturing||g.loading||g.dragging||g.wheeling||(g.wheeling=!0,setTimeout(()=>{g.wheeling=!1},80),z.deltaY<0?Ce():de())};let k=!0;const I=()=>{k=!0},N=()=>{k=!1},G=z=>{const ie=z;if(ie.key==="Escape"){if(document.querySelector("md-dialog[open]"))return;U()}else if(ie.key==="ArrowLeft")Ie();else if(ie.key==="ArrowRight")Te();else if(ie.key===" "){const be=c.value;be&&(be.paused&&!k?be.play():be.pause())}},Y=()=>{g.loading=!1,v.value&&Li(v.value.name)&&f()},se=z=>{g.loading=!1,g.loadError=!0,e("on-error",z)},ye=()=>{f()};Vt(()=>i.lightbox.index,z=>{z<0||z>=i.lightbox.sources.length||Le(z)}),Vt(()=>g.dragging,(z,ie)=>{});function X(){var Ne,Ue;const z=((Ne=v.value)==null?void 0:Ne.type)??"",ie=R.get(z)??[],be=((Ue=v.value)==null?void 0:Ue.data)??{};_p(mX,{type:z,tags:ie,item:{key:be.id,title:be.title,size:be.size},selected:ie.filter(dt=>{var Wt,gr;return(gr=(Wt=E.value)==null?void 0:Wt.data)==null?void 0:gr.tags.some(Ci=>Ci.id===dt.id)})})}const ee=z=>{var ie,be;z.item.key===((be=(ie=v.value)==null?void 0:ie.data)==null?void 0:be.id)&&L()},pe=z=>{var ie,be;z.item.id===((be=(ie=v.value)==null?void 0:ie.data)==null?void 0:be.id)&&(gs(i.lightbox.sources,Ne=>{var Ue;return((Ue=Ne.data)==null?void 0:Ue.id)===z.item.id}),i.lightbox.sources.length?Te():U())},j=z=>{var ie,be;z.item.path===((be=(ie=v.value)==null?void 0:ie.data)==null?void 0:be.path)&&(gs(i.lightbox.sources,Ne=>Ne.path===z.item.path),i.lightbox.sources.length?Te():U())};return mn(()=>{R4(document,"keydown",G),R4(window,"resize",ye),pt.on("item_tags_updated",ee),pt.on("media_item_deleted",pe),pt.on("file_deleted",j)}),Hi(()=>{L4(document,"keydown",G),L4(window,"resize",ye),pt.off("item_tags_updated",ee),pt.off("media_item_deleted",pe),pt.off("file_deleted",j)}),(z,ie)=>{const be=Xd,Ne=mA,Ue=hZ,dt=cZ,Wt=iZ,gr=JY,Ci=QY,ri=VY,$o=NY,_r=RY,Nr=SY,Oo=Zb,qh=lK,Bh=nK,Uh=XQ,Kr=Ea("tooltip");return te(),Hr(Qy,{to:"body"},[fe(i).lightbox.visible?(te(),Hr(yd,{key:0},{default:_i(()=>[V("div",{onTouchmove:ie[9]||(ie[9]=(...$a)=>fe(M4)&&fe(M4)(...$a)),class:"lightbox",onWheel:M},[qe(yd,{mode:"out-in"},{default:_i(()=>{var $a,du,uu,fu,pu,dc,hu,mu,vu,$s,gu,Os,_u,yu,bu,xu,wu,Eu,Tu,ku;return[V("div",LX,[v.value?(te(),oe("header",MX,[v.value.name?(te(),oe("div",DX,[vt((te(),oe("button",{class:"icon-button",onClick:U},[FX,qe(be)])),[[Kr,z.$t("close")]]),V("span",null,De(v.value.name),1)])):yt("",!0),fe(Li)(v.value.name)?(te(),oe(St,{key:1},[v.value.viewOriginImage?yt("",!0):vt((te(),oe("button",{key:0,class:"icon-button",onClick:n},[NX,qe(Ne)])),[[Kr,z.$t("view_origin_image")]]),vt((te(),oe("button",{class:"icon-button",onClick:Ce},[zX,qe(Ue)])),[[Kr,z.$t("zoom_in")]]),vt((te(),oe("button",{class:"icon-button",onClick:de},[qX,qe(dt)])),[[Kr,z.$t("zoom_out")]]),vt((te(),oe("button",{class:"icon-button",onClick:Re},[BX,qe(Wt)])),[[Kr,z.$t("resize")]]),vt((te(),oe("button",{class:"icon-button",onClick:we},[UX,qe(gr)])),[[Kr,z.$t("rotate_left")]]),vt((te(),oe("button",{class:"icon-button",onClick:ke},[VX,qe(Ci)])),[[Kr,z.$t("rotate_right")]])],64)):yt("",!0),vt((te(),oe("button",{class:"icon-button",onClick:ie[0]||(ie[0]=Er=>y.value=!fe(y))},[jX,qe(ri)])),[[Kr,z.$t("info")]])])):yt("",!0),V("section",{class:"content",onClick:Pt(U,["self"])},[fe(i).lightbox.sources.length>1&&(t.loop||_.value>0)?(te(),oe("div",{key:0,class:"btn-prev",onClick:Ie},[qe($o)])):yt("",!0),fe(i).lightbox.sources.length>1&&(t.loop||_.valuefe(ze)&&fe(ze)(...Er)),onMouseup:ie[2]||(ie[2]=(...Er)=>fe(J)&&fe(J)(...Er)),onMousemove:ie[3]||(ie[3]=(...Er)=>fe(Ge)&&fe(Ge)(...Er)),onTouchstart:ie[4]||(ie[4]=(...Er)=>fe(me)&&fe(me)(...Er)),onTouchmove:ie[5]||(ie[5]=(...Er)=>fe(ve)&&fe(ve)(...Er)),onTouchend:ie[6]||(ie[6]=(...Er)=>fe($e)&&fe($e)(...Er)),onLoad:Y,onError:se,onDblclick:Oe,onDragstart:ie[7]||(ie[7]=Er=>{Er.preventDefault()})},null,40,tJ)],4)),[[fi,!g.loading&&!g.loadError]]):yt("",!0)],8,HX),fe(y)?(te(),oe("section",rJ,[V("div",nJ,[qe(Nr,{id:z.$t("info"),raw:E.value},null,8,["id","raw"]),(fu=v.value)!=null&&fu.data?vt((te(),oe("button",{key:0,class:"icon-button",onClick:Pt(T,["stop"])},[oJ,qe(Oo)],8,iJ)),[[Kr,z.$t("delete")]]):yt("",!0),vt((te(),oe("button",{class:"icon-button",onClick:ie[8]||(ie[8]=Pt(Er=>{var Cu,Au;return fe(b)(((Cu=v.value)==null?void 0:Cu.path)??"",fe(Bi)(((Au=v.value)==null?void 0:Au.path)??"").replace(" ","-"))},["stop"]))},[aJ,qe(qh)])),[[Kr,z.$t("download")]])]),V("section",sJ,[V("div",lJ,[V("div",cJ,De(z.$t("file_size")),1),V("div",dJ,[Cn(De(fe(Ld)(((pu=v.value)==null?void 0:pu.size)??0))+" ",1),(hu=(dc=E.value)==null?void 0:dc.data)!=null&&hu.width&&((vu=(mu=E.value)==null?void 0:mu.data)!=null&&vu.height)?(te(),oe("span",uJ,De(ce()),1)):yt("",!0)])]),($s=E.value)!=null&&$s.updatedAt?(te(),oe("div",fJ,[V("div",pJ,De(z.$t("updated_at")),1),V("div",hJ,[vt((te(),oe("span",null,[Cn(De(fe(l0)(E.value.updatedAt)),1)])),[[Kr,fe(c0)(E.value.updatedAt)]])])])):yt("",!0),v.value&&(fe(Rd)((gu=v.value)==null?void 0:gu.name)||fe(ji)((Os=v.value)==null?void 0:Os.name))?(te(),oe("div",mJ,[V("div",vJ,De(z.$t("duration")),1),V("div",gJ,De(fe(wh)(((yu=(_u=E.value)==null?void 0:_u.data)==null?void 0:yu.duration)??((bu=v.value)==null?void 0:bu.duration))),1)])):yt("",!0),(xu=v.value)!=null&&xu.type?(te(),oe("div",_J,[V("div",yJ,[Cn(De(z.$t("tags"))+" ",1),vt((te(),oe("button",{class:"icon-button",onClick:Pt(X,["prevent"])},[xJ,qe(Bh)],8,bJ)),[[Kr,z.$t("add_to_tags")]])]),V("div",wJ,[qe(Uh,{tags:(Eu=(wu=E.value)==null?void 0:wu.data)==null?void 0:Eu.tags},null,8,["tags"])])])):yt("",!0),(Tu=v.value)!=null&&Tu.path?(te(),oe("div",EJ,[V("div",TJ,De(z.$t("path")),1),V("div",kJ,De(fe(oB)(fe(a).externalFilesDir,(ku=v.value)==null?void 0:ku.path)),1)])):yt("",!0)])])):yt("",!0)])]}),_:1})],32)]),_:1})):yt("",!0)])}}});const AJ=gn(CJ,[["__scopeId","data-v-271aa27d"]]);function SJ(t,e=[],r=""){return t?"loading":r&&!e.includes(r)?"no_permission":"no_data"}const IJ={type:"alert"},$J={slot:"headline"},OJ={slot:"content",method:"dialog"},PJ={slot:"actions"},RJ=Bt({__name:"ConfirmModal",props:{title:{type:String},message:{type:String}},setup(t){function e(){ss()}return(r,n)=>(te(),oe("md-dialog",IJ,[V("div",$J,De(t.title||r.$t("confirm")),1),V("section",OJ,[V("pre",null,De(t.message),1)]),V("div",PJ,[V("md-filled-button",{form:"form",value:"ok",onClick:e},De(r.$t("ok")),1)])]))}}),EA=t=>(yo("data-v-175f4042"),t=t(),bo(),t),LJ={class:"notifications"},MJ={class:"top-title"},DJ=["onClick"],FJ=EA(()=>V("md-ripple",null,null,-1)),NJ={key:0,class:"alert-warning"},zJ=["onClick"],qJ={key:1,class:"alert-warning"},BJ=["onClick"],UJ={class:"items-container"},VJ={key:0,class:"list-items"},jJ={class:"title"},HJ=["src"],GJ={class:"view-raw"},WJ={class:"name"},QJ={class:"time nowrap"},KJ={class:"subtitle"},YJ={class:"body"},ZJ=["onClick"],XJ=EA(()=>V("md-ripple",null,null,-1)),JJ={key:1,class:"no-data"},eee=Bt({__name:"Notifications",setup(t){const{resolveClient:e}=sh(),{t:r}=On(),{app:n,urlTokenKey:i}=ba(Co()),o=Se([]),a=window.location.protocol==="https:",{loading:c}=ys({handle:(p,m)=>{m?go(r(m),"error"):p&&(o.value=p.notifications.map(g=>({...g,icon:vl(i.value,"pkgicon://"+g.appId)})))},document:Ov,appApi:!0}),d=Se(Notification.permission),{mutate:u}=jr({document:cX,appApi:!0}),f=p=>{u({ids:[p.id]})},_=()=>{window.open(`https://${window.location.hostname}:${n.value.httpsPort}`,"_blank")},y=()=>{if(Notification.permission==="denied"){gk(RJ,{title:r("desktop_notification_permission_grant_title"),message:r("desktop_notification_permission_grant_message")});return}Notification.requestPermission().then(p=>{d.value=p})},b=()=>{const p=o.value.map(m=>m.id);u({ids:p})};return mn(()=>{pt.on("notification_created",async p=>{const m=e("a");if(ts(m.cache,[{...p,__typename:"Notification"}],Ov,null,!0),p.icon=vl(i.value,"pkgicon://"+p.appId),"Notification"in window&&Notification.permission==="granted"){const g=new Notification(p.title,{body:p.body,icon:p.icon});g.onclick=()=>{window.focus(),g.close()}}}),pt.on("notification_updated",async p=>{const g=e("a").cache;if(g.evict({id:g.identify({__typename:"Notification",id:p.id})}),ts(g,[{...p,__typename:"Notification"}],Ov,null,!0),p.icon=vl(i.value,"pkgicon://"+p.appId),"Notification"in window&&Notification.permission==="granted"){const v=new Notification(p.title,{body:p.body,icon:p.icon});v.onclick=()=>{window.focus(),v.close()}}}),pt.on("notification_deleted",async p=>{const g=e("a").cache;g.evict({id:g.identify({__typename:"Notification",id:p.id})})})}),(p,m)=>{const g=Zb,v=a0,x=Xd,E=Ea("tooltip");return te(),oe("div",LJ,[V("div",MJ,[Cn(De(p.$t("header_actions.notifications"))+" ("+De(o.value.length)+") ",1),o.value.length?vt((te(),oe("button",{key:0,class:"icon-button",onClick:Pt(b,["prevent"])},[FJ,qe(g)],8,DJ)),[[E,p.$t("clear_list")]]):yt("",!0)]),!a&&d.value!=="granted"?(te(),oe("div",NJ,[Cn(De(p.$t("desktop_notification_need_https"))+" ",1),V("md-filled-button",{class:"btn-sm",onClick:Pt(_,["stop"])},De(p.$t("use_https_link")),9,zJ)])):d.value!=="granted"?(te(),oe("div",qJ,[Cn(De(p.$t("desktop_notification_permission_not_granted"))+" ",1),V("md-filled-button",{class:"btn-sm",onClick:Pt(y,["stop"])},De(p.$t("grant_permission")),9,BJ)])):yt("",!0),V("div",UJ,[o.value.length?(te(),oe("section",VJ,[(te(!0),oe(St,null,Ei(o.value,T=>(te(),oe("div",{class:"item",key:T.id},[V("div",jJ,[qe(v,null,{content:_i(()=>[V("pre",GJ,De(T),1)]),default:_i(()=>[V("img",{width:"20",height:"20",src:T.icon},null,8,HJ)]),_:2},1024),V("span",WJ,De(T.appName),1),vt((te(),oe("span",QJ,[Cn(De(fe(l0)(T.time)),1)])),[[E,fe(c0)(T.time)]])]),V("div",KJ,De(T.title),1),V("div",YJ,De(T.body),1),V("button",{class:"icon-button icon",onClick:Pt(C=>f(T),["stop"])},[XJ,qe(x)],8,ZJ)]))),128))])):(te(),oe("span",JJ,De(p.$t(fe(SJ)(fe(c),fe(n).permissions,"NOTIFICATION_LISTENER"))),1))])])}}});const tee=gn(eee,[["__scopeId","data-v-175f4042"]]);const rt=t=>e=>typeof e=="function"?((r,n)=>(customElements.define(r,n),n))(t,e):((r,n)=>{const{kind:i,elements:o}=n;return{kind:i,elements:o,finisher(a){customElements.define(r,a)}}})(t,e);const ree=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}},nee=(t,e,r)=>{e.constructor.createProperty(r,t)};function Q(t){return(e,r)=>r!==void 0?nee(t,e,r):ree(t,e)}function $t(t){return Q({...t,state:!0})}const Jd=({finisher:t,descriptor:e})=>(r,n)=>{var i;if(n===void 0){const o=(i=r.originalKey)!==null&&i!==void 0?i:r.key,a=e!=null?{kind:"method",placement:"prototype",key:o,descriptor:e(r.key)}:{...r,key:o};return t!=null&&(a.finisher=function(c){t(c,o)}),a}{const o=r.constructor;e!==void 0&&Object.defineProperty(r,n,e(n)),t==null||t(o,n)}};function Et(t,e){return Jd({descriptor:r=>{const n={get(){var i,o;return(o=(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(t))!==null&&o!==void 0?o:null},enumerable:!0,configurable:!0};if(e){const i=typeof r=="symbol"?Symbol():"__"+r;n.get=function(){var o,a;return this[i]===void 0&&(this[i]=(a=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(t))!==null&&a!==void 0?a:null),this[i]}}return n}})}function iee(t){return Jd({descriptor:e=>({get(){var r,n;return(n=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelectorAll(t))!==null&&n!==void 0?n:[]},enumerable:!0,configurable:!0})})}function TA(t){return Jd({descriptor:e=>({async get(){var r;return await this.updateComplete,(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector(t)},enumerable:!0,configurable:!0})})}var Pv;const oee=((Pv=window.HTMLSlotElement)===null||Pv===void 0?void 0:Pv.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(r=>r.nodeType===Node.ELEMENT_NODE);function Wr(t){const{slot:e,selector:r}=t??{};return Jd({descriptor:n=>({get(){var i;const o="slot"+(e?`[name=${e}]`:":not([name])"),a=(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(o),c=a!=null?oee(a,t):[];return r?c.filter(d=>d.matches(r)):c},enumerable:!0,configurable:!0})})}function aee(t,e,r){let n,i=t;return typeof t=="object"?(i=t.slot,n=t):n={flatten:e},r?Wr({slot:i,flatten:e,selector:r}):Jd({descriptor:o=>({get(){var a,c;const d="slot"+(i?`[name=${i}]`:":not([name])"),u=(a=this.renderRoot)===null||a===void 0?void 0:a.querySelector(d);return(c=u==null?void 0:u.assignedNodes(n))!==null&&c!==void 0?c:[]},enumerable:!0,configurable:!0})})}const Jf=window,f0=Jf.ShadowRoot&&(Jf.ShadyCSS===void 0||Jf.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p0=Symbol(),j4=new WeakMap;let kA=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==p0)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(f0&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=j4.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&j4.set(r,e))}return e}toString(){return this.cssText}};const see=t=>new kA(typeof t=="string"?t:t+"",void 0,p0),Ve=(t,...e)=>{const r=t.length===1?t[0]:e.reduce((n,i,o)=>n+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1],t[0]);return new kA(r,t,p0)},lee=(t,e)=>{f0?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{const n=document.createElement("style"),i=Jf.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)})},H4=f0?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return see(r)})(t):t;var Rv;const Sp=window,G4=Sp.trustedTypes,cee=G4?G4.emptyScript:"",W4=Sp.reactiveElementPolyfillSupport,f_={toAttribute(t,e){switch(e){case Boolean:t=t?cee:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},CA=(t,e)=>e!==t&&(e==e||t==t),Lv={attribute:!0,type:String,converter:f_,reflect:!1,hasChanged:CA},p_="finalized";let il=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((r,n)=>{const i=this._$Ep(n,r);i!==void 0&&(this._$Ev.set(i,n),e.push(i))}),e}static createProperty(e,r=Lv){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){const n=typeof e=="symbol"?Symbol():"__"+e,i=this.getPropertyDescriptor(e,n,r);i!==void 0&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){return{get(){return this[r]},set(i){const o=this[e];this[r]=i,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Lv}static finalize(){if(this.hasOwnProperty(p_))return!1;this[p_]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(const i of n)this.createProperty(i,r[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const i of n)r.unshift(H4(i))}else e!==void 0&&r.push(H4(e));return r}static _$Ep(e,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;const r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return lee(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EO(e,r,n=Lv){var i;const o=this.constructor._$Ep(e,n);if(o!==void 0&&n.reflect===!0){const a=(((i=n.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?n.converter:f_).toAttribute(r,n.type);this._$El=e,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$El=null}}_$AK(e,r){var n;const i=this.constructor,o=i._$Ev.get(e);if(o!==void 0&&this._$El!==o){const a=i.getPropertyOptions(o),c=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?a.converter:f_;this._$El=o,this[o]=c.fromAttribute(r,a.type),this._$El=null}}requestUpdate(e,r,n){let i=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||CA)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,o)=>this[o]=i),this._$Ei=void 0);let r=!1;const n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostUpdate)===null||o===void 0?void 0:o.call(i)}),this.update(n)):this._$Ek()}catch(i){throw r=!1,this._$Ek(),i}r&&this._$AE(n)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var i;return(i=n.hostUpdated)===null||i===void 0?void 0:i.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};il[p_]=!0,il.elementProperties=new Map,il.elementStyles=[],il.shadowRootOptions={mode:"open"},W4==null||W4({ReactiveElement:il}),((Rv=Sp.reactiveElementVersions)!==null&&Rv!==void 0?Rv:Sp.reactiveElementVersions=[]).push("1.6.3");var Mv;const Ip=window,zl=Ip.trustedTypes,Q4=zl?zl.createPolicy("lit-html",{createHTML:t=>t}):void 0,h_="$lit$",ta=`lit$${(Math.random()+"").slice(9)}$`,AA="?"+ta,dee=`<${AA}>`,bs=document,Md=()=>bs.createComment(""),Dd=t=>t===null||typeof t!="object"&&typeof t!="function",SA=Array.isArray,uee=t=>SA(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Dv=`[ +\f\r]`,Fc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K4=/-->/g,Y4=/>/g,Va=RegExp(`>|${Dv}(?:([^\\s"'>=/]+)(${Dv}*=${Dv}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),Z4=/'/g,X4=/"/g,IA=/^(?:script|style|textarea|title)$/i,fee=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),_e=fee(1),Hn=Symbol.for("lit-noChange"),ge=Symbol.for("lit-nothing"),J4=new WeakMap,rs=bs.createTreeWalker(bs,129,null,!1);function $A(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Q4!==void 0?Q4.createHTML(e):e}const pee=(t,e)=>{const r=t.length-1,n=[];let i,o=e===2?"":"",a=Fc;for(let c=0;c"?(a=i??Fc,_=-1):f[1]===void 0?_=-2:(_=a.lastIndex-f[2].length,u=f[1],a=f[3]===void 0?Va:f[3]==='"'?X4:Z4):a===X4||a===Z4?a=Va:a===K4||a===Y4?a=Fc:(a=Va,i=void 0);const b=a===Va&&t[c+1].startsWith("/>")?" ":"";o+=a===Fc?d+dee:_>=0?(n.push(u),d.slice(0,_)+h_+d.slice(_)+ta+b):d+ta+(_===-2?(n.push(void 0),c):b)}return[$A(t,o+(t[r]||"")+(e===2?"":"")),n]};class Fd{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let o=0,a=0;const c=e.length-1,d=this.parts,[u,f]=pee(e,r);if(this.el=Fd.createElement(u,n),rs.currentNode=this.el.content,r===2){const _=this.el.content,y=_.firstChild;y.remove(),_.append(...y.childNodes)}for(;(i=rs.nextNode())!==null&&d.length0){i.textContent=zl?zl.emptyScript:"";for(let b=0;b2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=ge}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,n,i){const o=this.strings;let a=!1;if(o===void 0)e=ql(this,e,r,0),a=!Dd(e)||e!==this._$AH&&e!==Hn,a&&(this._$AH=e);else{const c=e;let d,u;for(e=o[0],d=0;d{var n,i;const o=(n=r==null?void 0:r.renderBefore)!==null&&n!==void 0?n:e;let a=o._$litPart$;if(a===void 0){const c=(i=r==null?void 0:r.renderBefore)!==null&&i!==void 0?i:null;o._$litPart$=a=new eu(e.insertBefore(Md(),c),c,void 0,r??{})}return a._$AI(t),a};var Fv,Nv;let lt=class extends il{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;const n=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=n.firstChild),n}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=OA(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return Hn}};lt.finalized=!0,lt._$litElement$=!0,(Fv=globalThis.litElementHydrateSupport)===null||Fv===void 0||Fv.call(globalThis,{LitElement:lt});const tE=globalThis.litElementPolyfillSupport;tE==null||tE({LitElement:lt});((Nv=globalThis.litElementVersions)!==null&&Nv!==void 0?Nv:globalThis.litElementVersions=[]).push("3.3.3");const bee=!1;const ea={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},h0=t=>(...e)=>({_$litDirective$:t,values:e});let m0=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};const jt=h0(class extends m0{constructor(t){var e;if(super(t),t.type!==ea.ATTRIBUTE||t.name!=="class"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var r,n;if(this.it===void 0){this.it=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in e)e[o]&&!(!((r=this.nt)===null||r===void 0)&&r.has(o))&&this.it.add(o);return this.render(e)}const i=t.element.classList;this.it.forEach(o=>{o in e||(i.remove(o),this.it.delete(o))});for(const o in e){const a=!!e[o];a===this.it.has(o)||!((n=this.nt)===null||n===void 0)&&n.has(o)||(a?(i.add(o),this.it.add(o)):(i.remove(o),this.it.delete(o)))}return Hn}});class PA extends lt{constructor(){super(...arguments),this.value=""}render(){const e={"md3-badge--large":this.value};return _e`

${this.value}

`}}P([Q()],PA.prototype,"value",void 0);const xee=Ve`:host{--_color: var(--md-badge-color, var(--md-sys-color-error, #b3261e));--_large-color: var(--md-badge-large-color, var(--md-sys-color-error, #b3261e));--_large-label-text-color: var(--md-badge-large-label-text-color, var(--md-sys-color-on-error, #fff));--_large-label-text-font: var(--md-badge-large-label-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));--_large-label-text-line-height: var(--md-badge-large-label-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));--_large-label-text-size: var(--md-badge-large-label-text-size, var(--md-sys-typescale-label-small-size, 0.6875rem));--_large-label-text-weight: var(--md-badge-large-label-text-weight, var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500)));--_large-shape: var(--md-badge-large-shape, 9999px);--_large-size: var(--md-badge-large-size, 16px);--_shape: var(--md-badge-shape, 9999px);--_size: var(--md-badge-size, 6px)}.md3-badge{inset-inline-start:50%;margin-inline-start:6px;margin-block-start:4px;position:absolute;inset-block-start:0px;background-color:var(--_color);border-radius:var(--_shape);height:var(--_size)}.md3-badge:not(.md3-badge--large){width:var(--_size)}.md3-badge.md3-badge--large{display:flex;flex-direction:column;justify-content:center;margin-inline-start:2px;margin-block-start:1px;background-color:var(--_large-color);border-radius:var(--_large-shape);height:var(--_large-size);min-width:var(--_large-size);color:var(--_large-label-text-color)}.md3-badge.md3-badge--large .md3-badge__value{padding:0px 4px;text-align:center}.md3-badge__value{font-family:var(--_large-label-text-font);font-size:var(--_large-label-text-size);line-height:var(--_large-label-text-line-height);font-weight:var(--_large-label-text-weight)}/*# sourceMappingURL=badge-styles.css.map */ -`;let h_=class extends PA{};h_.styles=[xee];h_=P([rt("md-badge")],h_);const wee=t=>(yo("data-v-424aaeea"),t=t(),bo(),t),Eee={class:"tasks"},Tee={class:"list-items"},kee={class:"title"},Cee={class:"subtitle"},Aee={key:0,class:"body"},See=["onClick"],Iee=wee(()=>V("md-ripple",null,null,-1)),$ee={key:0,class:"no-data"},Oee=Bt({__name:"TaskList",setup(t){const e=Co(),r=jd(),n=It(()=>{const a=new Map;return a.set("saving",0),a.set("pending",1),a.set("error",2),a.set("created",3),a.set("done",4),LQ(e.uploads,c=>a.get(c.status)??0)});function i(a){var c;e.uploads.splice(e.uploads.indexOf(a),1),a.status==="pending"&&(a.status="canceled",(c=a.xhr)==null||c.abort())}Vt(()=>e.uploads,async()=>{if(r.quick="task",e.uploads.some(c=>c.status==="pending")){console.log("pending");return}o()});async function o(){console.log("doUpload");const a=e.uploads.filter(c=>c.status==="created").slice(0,5);a.length!==0&&(await Promise.all(a.map(async c=>{c.status="pending",await Jk(c,!0),pt.emit("upload_task_done",c)})),o())}return(a,c)=>{const d=Yd;return te(),oe("div",Eee,[V("section",Tee,[(te(!0),oe(St,null,Ei(n.value,u=>(te(),oe("div",{class:"item",key:u.file.name+u.file.size},[V("div",kee,De(u.file.name),1),V("div",Cee,[Cn(" ["+De(a.$t(`upload_status.${u.status}`))+"] ",1),["created","done"].includes(u.status)?yt("",!0):(te(),oe(St,{key:0},[Cn(De(fe(Pd)(u.uploadedSize))+"("+De(u.uploadedSize)+") / ",1)],64)),Cn(De(fe(Pd)(u.file.size)),1)]),u.error?(te(),oe("div",Aee,De(u.error),1)):yt("",!0),V("button",{class:"icon-button icon",onClick:Pt(f=>i(u),["stop"])},[Iee,qe(d)],8,See)]))),128))]),n.value.length?yt("",!0):(te(),oe("span",$ee,De(a.$t("no_task")),1))])}}});const Pee=gn(Oee,[["__scopeId","data-v-424aaeea"]]),Ree={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Lee=V("path",{fill:"currentColor",d:"M17.5 18q-.425 0-.713-.288T16.5 17V7q0-.425.288-.713T17.5 6q.425 0 .713.288T18.5 7v10q0 .425-.288.713T17.5 18ZM7.05 16.975q-.5.35-1.025.05t-.525-.9v-8.25q0-.6.525-.9t1.025.05l6.2 4.15q.45.3.45.825t-.45.825l-6.2 4.15ZM7.5 12Zm0 2.25L10.9 12L7.5 9.75v4.5Z"},null,-1),Mee=[Lee];function Dee(t,e){return te(),oe("svg",Ree,Mee)}const Fee={name:"material-symbols-skip-next-outline-rounded",render:Dee},Nee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},zee=V("path",{fill:"currentColor",d:"M11.5 10.5h-.775q-.3 0-.513-.213T10 9.75q0-.325.213-.537T10.75 9h1.5q.325 0 .537.213T13 9.75v4.525q0 .3-.213.513T12.25 15q-.325 0-.537-.213t-.213-.537V10.5ZM17 17v-3q0-.425.288-.713T18 13q.425 0 .713.275t.287.7V18q0 .425-.288.713T18 19H6.85l.825.825q.3.3.313.725t-.288.725q-.3.3-.713.3T6.3 21.3l-2.6-2.6q-.275-.275-.275-.7t.275-.7l2.575-2.575q.3-.3.713-.3t.712.3q.3.3.3.713t-.3.712l-.85.85H17ZM7 7v3q0 .425-.288.713T6 11q-.425 0-.713-.275t-.287-.7V6q0-.425.288-.713T6 5h11.15l-.825-.825q-.3-.3-.313-.725t.288-.725q.3-.3.713-.3t.687.275l2.6 2.6q.275.275.275.7t-.275.7l-2.575 2.575q-.3.3-.713.3t-.712-.3q-.3-.3-.3-.713t.3-.712l.85-.85H7Z"},null,-1),qee=[zee];function Bee(t,e){return te(),oe("svg",Nee,qee)}const Uee={name:"material-symbols-repeat-one-rounded",render:Bee},Vee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},jee=V("path",{fill:"currentColor",d:"M17 17v-3q0-.425.288-.713T18 13q.425 0 .713.275t.287.7V18q0 .425-.288.713T18 19H6.85l.825.825q.3.3.313.725t-.288.725q-.3.3-.713.3T6.3 21.3l-2.6-2.6q-.275-.275-.275-.7t.275-.7l2.575-2.575q.3-.3.713-.3t.712.3q.3.3.3.713t-.3.712l-.85.85H17ZM7 7v3q0 .425-.288.713T6 11q-.425 0-.713-.275t-.287-.7V6q0-.425.288-.713T6 5h11.15l-.825-.825q-.3-.3-.313-.725t.288-.725q.3-.3.713-.3t.687.275l2.6 2.6q.275.275.275.7t-.275.7l-2.575 2.575q-.3.3-.713.3t-.712-.3q-.3-.3-.3-.713t.3-.712l.85-.85H7Z"},null,-1),Hee=[jee];function Gee(t,e){return te(),oe("svg",Vee,Hee)}const Wee={name:"material-symbols-repeat-rounded",render:Gee},Qee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Kee=V("path",{fill:"currentColor",d:"M9.175 10.575L4.7 6.1q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l4.475 4.475l-1.4 1.4ZM15 20q-.425 0-.713-.288T14 19q0-.425.288-.713T15 18h1.6l-3.175-3.175L14.85 13.4L18 16.55V15q0-.425.288-.713T19 14q.425 0 .713.288T20 15v4q0 .425-.288.713T19 20h-4Zm-10.3-.7q-.275-.275-.275-.7t.275-.7L16.6 6H15q-.425 0-.712-.287T14 5q0-.425.288-.713T15 4h4q.425 0 .713.288T20 5v4q0 .425-.288.713T19 10q-.425 0-.713-.288T18 9V7.4L6.1 19.3q-.275.275-.7.275t-.7-.275Z"},null,-1),Yee=[Kee];function Zee(t,e){return te(),oe("svg",Qee,Yee)}const Xee={name:"material-symbols-shuffle-outline-rounded",render:Zee},Jee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ete=V("path",{fill:"currentColor",d:"M6.5 18q-.425 0-.713-.288T5.5 17V7q0-.425.288-.713T6.5 6q.425 0 .713.288T7.5 7v10q0 .425-.288.713T6.5 18Zm10.45-1.025l-6.2-4.15q-.45-.3-.45-.825t.45-.825l6.2-4.15q.5-.35 1.025-.05t.525.9v8.25q0 .6-.525.9t-1.025-.05ZM16.5 12Zm0 2.25v-4.5L13.1 12l3.4 2.25Z"},null,-1),tte=[ete];function rte(t,e){return te(),oe("svg",Jee,tte)}const nte={name:"material-symbols-skip-previous-outline-rounded",render:rte},Jl=t=>(yo("data-v-137f137c"),t=t(),bo(),t),ite={class:"audio-player"},ote={key:0,class:"play-title"},ate=["src"],ste={key:1,class:"buttons"},lte=["onClick"],cte=Jl(()=>V("md-ripple",null,null,-1)),dte=["onClick"],ute=Jl(()=>V("md-ripple",null,null,-1)),fte=["onClick"],pte=Jl(()=>V("md-ripple",null,null,-1)),hte={key:0,indeterminate:"",class:"spinner-sm"},mte=Jl(()=>V("md-ripple",null,null,-1)),vte={class:"list-items"},gte=["onClick"],_te=Jl(()=>V("md-ripple",null,null,-1)),yte={class:"title"},bte={class:"subtitle"},xte=["onClick"],wte=Jl(()=>V("md-ripple",null,null,-1)),Ete=Bt({__name:"AudioPlayer",setup(t){const{app:e,urlTokenKey:r,audioPlaying:n}=ba(Co()),i=It(()=>e.value.audios??[]),o=Se(),a=Se("");async function c(){const{audioCurrent:Ce}=e.value;a.value=vl(r.value,Ce),o.value=i.value.find(de=>de.path==Ce)}c(),Vt(()=>e.value.audioCurrent,c);const{mutate:d,loading:u,onDone:f,onError:_}=jr({document:iX,appApi:!0}),{mutate:y,loading:b,onDone:p,onError:m}=jr({document:sX,appApi:!0});p(()=>{e.value={...e.value,audioCurrent:"",audios:[]}});const{mutate:g,loading:v,onDone:x,onError:E}=jr({document:oX,appApi:!0}),{mutate:T,loading:C,onDone:A,onError:L}=jr({document:aX,appApi:!0}),R=Se();async function D(){var de;if(i.value.length===0)return;const Ce=e.value.audioMode;Ce==="REPEAT"?Le():Ce==="REPEAT_ONE"?(de=R.value)==null||de.play():q()}function q(){const Ce=PQ(e.value.audios);d({path:Ce.path}),e.value={...e.value,audioCurrent:Ce.path}}function H(){i.value.length!==0&&(e.value.audioMode==="SHUFFLE"?q():U())}function U(){const Ce=i.value.findIndex(we=>{var ke;return we.path===((ke=o.value)==null?void 0:ke.path)});let de;Ce<=0?de=i.value[i.value.length-1]:de=i.value[Ce-1],d({path:de.path}),e.value={...e.value,audioCurrent:de.path}}function ce(){i.value.length!==0&&(e.value.audioMode==="SHUFFLE"?q():Le())}function Ae(){var Ce;(Ce=R.value)==null||Ce.play()}function Le(){const Ce=i.value.findIndex(we=>{var ke;return we.path===((ke=o.value)==null?void 0:ke.path)});let de;Ce+1>=i.value.length?de=i.value[0]:de=i.value[Ce+1],d({path:de.path}),e.value={...e.value,audioCurrent:de.path}}function Te(){let Ce=e.value.audioMode;Ce==="REPEAT"?Ce="REPEAT_ONE":Ce==="REPEAT_ONE"?Ce="SHUFFLE":Ce="REPEAT",g({mode:Ce}),e.value={...e.value,audioMode:Ce}}function Ie(Ce){d({path:Ce.path}),e.value={...e.value,audioCurrent:Ce.path}}f(()=>{Ae()});function Pe(Ce){T({path:Ce.path});const de=[...e.value.audios];gs(de,we=>we.path===Ce.path),e.value={...e.value,audios:de}}return mn(()=>{var Ce,de;pt.on("do_play_audio",()=>{setTimeout(Ae,500)}),pt.on("pause_audio",()=>{var we;(we=R.value)==null||we.pause()}),(Ce=R.value)==null||Ce.addEventListener("pause",function(){n.value=!1}),(de=R.value)==null||de.addEventListener("play",function(){n.value=!0})}),(Ce,de)=>{var ve,$e;const we=nte,ke=Xee,Re=Wee,He=Uee,ze=Fee,Ge=Zb,J=Yd,me=Ea("tooltip");return te(),oe("div",ite,[o.value?(te(),oe("div",ote,De(o.value.title),1)):yt("",!0),V("audio",{ref_key:"audioRef",ref:R,class:"audio",controls:"",src:a.value,onEnded:D},null,40,ate),i.value.length?(te(),oe("div",ste,[V("button",{class:"icon-button",onClick:Pt(H,["stop"])},[cte,qe(we)],8,lte),V("button",{class:"icon-button mode",onClick:Pt(Te,["stop"])},[ute,((ve=fe(e))==null?void 0:ve.audioMode)==="SHUFFLE"?(te(),Hr(ke,{key:0})):(($e=fe(e))==null?void 0:$e.audioMode)==="REPEAT"?(te(),Hr(Re,{key:1})):(te(),Hr(He,{key:2}))],8,dte),V("button",{class:"icon-button",onClick:Pt(ce,["stop"])},[pte,qe(ze)],8,fte),fe(b)?(te(),oe("md-circular-progress",hte)):vt((te(),oe("button",{key:1,class:"icon-button",onClick:de[0]||(de[0]=Pt((...Oe)=>fe(y)&&fe(y)(...Oe),["prevent"]))},[mte,qe(Ge)])),[[me,Ce.$t("clear_list")]])])):yt("",!0),V("section",vte,[(te(!0),oe(St,null,Ei(i.value,Oe=>{var M;return te(),oe("div",{class:jn(["item",{selected:Oe.path===((M=o.value)==null?void 0:M.path)}]),key:Oe.path,onClick:Pt(k=>Ie(Oe),["stop"])},[_te,V("div",yte,De(Oe.title),1),V("div",bte,De(Oe.artist)+" "+De(fe(xh)(Oe.duration)),1),V("button",{class:"icon-button icon",onClick:Pt(k=>Pe(Oe),["stop"])},[wte,qe(J)],8,xte)],10,gte)}),128))])])}}});const Tte=gn(Ete,[["__scopeId","data-v-137f137c"]]),kte={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Cte=V("path",{fill:"currentColor",d:"M3 18.5v-13q0-.55.45-.838t.95-.087l15.4 6.5q.625.275.625.925t-.625.925l-15.4 6.5q-.5.2-.95-.088T3 18.5ZM5 17l11.85-5L5 7v3.5l6 1.5l-6 1.5V17Zm0-5V7v10v-5Z"},null,-1),Ate=[Cte];function Ste(t,e){return te(),oe("svg",kte,Ate)}const Ite={name:"material-symbols-send-outline-rounded",render:Ste},$te={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ote=V("path",{fill:"currentColor",d:"M4 20q-.825 0-1.413-.588T2 18V6q0-.825.588-1.413T4 4h5.175q.4 0 .763.15t.637.425L12 6h8q.825 0 1.413.588T22 8v10q0 .825-.588 1.413T20 20H4ZM4 6v12h16V8h-8.825l-2-2H4Zm0 0v12V6Z"},null,-1),Pte=[Ote];function Rte(t,e){return te(),oe("svg",$te,Pte)}const Lte={name:"material-symbols-folder-outline-rounded",render:Rte},Mte={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Dte=V("path",{fill:"currentColor",d:"M12 14.95q-.2 0-.375-.062t-.325-.213L6.675 10.05q-.275-.275-.262-.688t.287-.687q.275-.275.7-.275t.7.275l3.9 3.9l3.925-3.925q.275-.275.688-.263t.687.288q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213T12 14.95Z"},null,-1),Fte=[Dte];function Nte(t,e){return te(),oe("svg",Mte,Fte)}const zte={name:"material-symbols-expand-more-rounded",render:Nte},qte={class:"image-container"},Bte=["onClick"],Ute=["src"],Vte={class:"duration"},jte=Bt({__name:"ChatImages",props:{data:{type:Object}},setup(t){const e=t,r=Co();function n(a){return a.thumbnail?a.thumbnail:a.src.startsWith("blob:")?a.src:`${a.src}&w=300&h=300`}function i(a){r.lightbox={sources:o.value,index:a,visible:!0}}const o=It(()=>{var u,f,_,y;const a=e.data,c=((f=(u=a==null?void 0:a._content)==null?void 0:u.value)==null?void 0:f.items)??[],d=[];return(y=(_=a==null?void 0:a.data)==null?void 0:_.ids)==null||y.forEach((b,p)=>{const m=c[p];d.push({path:m.uri,src:Mb(b),viewOriginImage:Lb(b)||m.uri.endsWith(".gif"),name:Bi(m.uri),duration:m.duration,size:m.size,thumbnail:m.thumbnail})}),d});return(a,c)=>(te(),oe("div",qte,[(te(!0),oe(St,null,Ei(o.value,(d,u)=>(te(),oe("div",{class:"item",key:u,onClick:f=>i(u)},[V("img",{class:"image",src:n(d)},null,8,Ute),V("span",Vte,De(fe(ji)(d.name)?fe(xh)(d.duration):fe(Pd)(d.size)),1)],8,Bte))),128))]))}});const Hte=gn(jte,[["__scopeId","data-v-578f7f0f"]]),Gte={class:"chat-section"},Wte=["href","onClick"],Qte={class:"left"},Kte={class:"info"},Yte=["src"],Zte=Bt({__name:"ChatFiles",props:{data:{type:Object}},setup(t){const e=t,r=Co(),n=Se([]);function i(c){return c.thumbnail?c.thumbnail:c.src.startsWith("blob:")?c.src:`${c.src}&w=50&h=50`}const o=It(()=>{var u,f,_,y,b,p;const c=((_=(f=(u=e.data)==null?void 0:u._content)==null?void 0:f.value)==null?void 0:_.items)??[],d=[];return(p=(b=(y=e.data)==null?void 0:y.data)==null?void 0:b.ids)==null||p.forEach((m,g)=>{const v=c[g];d.push({path:v.uri,src:Mb(m),viewOriginImage:Lb(m)||v.uri.endsWith(".gif"),name:Bi(v.uri),duration:v.duration,size:v.size,thumbnail:v.thumbnail})}),d});function a(c){if(F4(c.name)){n.value=o.value.filter(u=>F4(u.name));const d=n.value.findIndex(u=>u.src===c.src);r.lightbox={sources:n.value,index:d,visible:!0}}else window.open(c.src,"_blank")}return(c,d)=>(te(),oe("div",Gte,[(te(!0),oe(St,null,Ei(o.value,(u,f)=>(te(),oe("a",{key:f,class:"file-item",target:"_blank",href:u.src,onClick:Pt(_=>a(u),["prevent"])},[V("span",Qte,[V("span",null,De(u.name),1),V("span",Kte,De(fe(Pd)(u.size))+De(fe(ji)(u.name)?" / "+fe(xh)(u.duration):""),1)]),fe(Li)(u.name)||fe(ji)(u.name)?(te(),oe("img",{key:0,src:i(u)},null,8,Yte)):yt("",!0)],8,Wte))),128))]))}});const Xte=gn(Zte,[["__scopeId","data-v-5f17c344"]]),Jte=()=>{const t=[];let e=null;const{mutate:r}=jr({document:xA,options:{update:(o,a)=>{o.evict({id:o.identify({__typename:"ChatItem",id:e==null?void 0:e.item.id})}),ts(o,a.data.createChatItem,nl),n()}},appApi:!0}),n=()=>{e=null,t.length&&i()},i=async()=>{if(!e&&(e=t.shift()||null,e)){const o=TG(e.uploads,5);for(const d of o)await Promise.all(d.map(async u=>{await Jk(u,!1)}));const a=e.item._content,c=[];a.value.items.forEach((d,u)=>{const f=wA(d.uri);c.push({uri:`app://${f}/`+e.uploads[u].fileName,size:d.size,duration:d.duration})}),r({content:JSON.stringify({type:a.type,value:{items:c}})})}};return{async enqueue(o,a){t.push({item:o,uploads:a}),e==null&&await i()}}},v0=t=>(yo("data-v-d30ba72e"),t=t(),bo(),t),ere={class:"chat"},tre={class:"top-title"},rre={key:0,class:"date"},nre={class:"chat-title"},ire={class:"name"},ore={class:"time"},are={key:0,class:"sending"},sre={class:"menu-items"},lre=["onClick","disabled"],cre={slot:"headline"},dre={class:"chat-content"},ure={key:0},fre=["innerHTML"],pre={class:"chat-input"},hre={class:"textarea-wrapper"},mre=["onDrop","onDragenter","onDragleave","placeholder","onKeydown"],vre={class:"btns"},gre=v0(()=>V("md-ripple",null,null,-1)),_re=v0(()=>V("md-ripple",null,null,-1)),yre={class:"btn-send-container"},bre=["disable"],xre=v0(()=>V("md-ripple",null,null,-1)),wre=Bt({__name:"HomeConsole",setup(t){const{getUploads:e}=gX(),{resolveClient:r}=ah(),n=Se(),i=Se(),o=Se(),a=Se([]),{enqueue:c}=Jte(),{app:d}=ba(Co()),{externalFilesDir:u}=d.value,f=Se(""),{t:_}=On();let y=!1;function b(de,we){let ke=!1;if(we==0)ke=!0;else{const Re=we>0?a.value[we-1]:null;Re!=null&&Iv(Re.createdAt)!==Iv(de.createdAt)&&(ke=!0)}return ke}ys({handle:async(de,we)=>{we?go(_(we),"error"):de&&(a.value=de.chatItems,y||(D(),y=!0))},document:nl,appApi:!0});function p(de){return{images:Hte,files:Xte}[de]}const m=jd(),{chatText:g}=ba(m),{mutate:v,loading:x,onDone:E}=jr({document:xA,options:{update:(de,we)=>{ts(de,we.data.createChatItem,nl)}},appApi:!0});function T(de){const we=de.target.files,ke=[];for(const Re of we)ke.push(Re);C(ke)}async function C(de){if(!de.length)return;const we=e(u,de),ke=[],Re=[];for(const J of we)if(J.file.type.startsWith("video")){const me=await N4(J.file);Re.push({uri:J.fileName,size:J.file.size,duration:me.duration,thumbnail:me.thumbnail})}else Re.push({uri:J.fileName,size:J.file.size,duration:0});const He={type:"files",value:{items:Re}},ze={id:"new_"+jg(),isMe:!0,createdAt:new Date().toISOString(),content:JSON.stringify(He),_content:He,__typename:"ChatItem",data:{__typename:"MessageFiles",ids:we.map(J=>URL.createObjectURL(J.file))}};ke.push(ze),c(ze,we);const Ge=r("a");ts(Ge.cache,ke,nl),D()}function A(de){const we=de.target.files,ke=[];for(const Re of we)ke.push(Re);L(ke)}async function L(de){if(!de.length)return;const we=e(u,de),ke=[],Re=[];for(const J of we)if(J.file.type.startsWith("video")){const me=await N4(J.file);Re.push({uri:J.fileName,size:J.file.size,duration:me.duration,thumbnail:me.thumbnail})}else Re.push({uri:J.fileName,size:J.file.size,duration:0});const He={type:"images",value:{items:Re}},ze={id:"new_"+jg(),isMe:!0,createdAt:new Date().toISOString(),content:JSON.stringify(He),_content:He,__typename:"ChatItem",data:{__typename:"MessageImages",ids:we.map(J=>URL.createObjectURL(J.file))}};ke.push(ze),c(ze,we);const Ge=r("a");ts(Ge.cache,ke,nl),D()}function R(){g.value&&v({content:JSON.stringify({type:"text",value:{text:g.value}})})}function D(){const de=n.value;de&&setTimeout(()=>{de.scrollTop=de.scrollHeight},100)}E(()=>{g.value="",D()});const{mutate:q,loading:H}=jr({document:JZ,options:{update:de=>{de.evict({id:de.identify({__typename:"ChatItem",id:f.value})})}},appApi:!0});function U(de){f.value=de,q({id:de})}function ce(){o.value.value="",o.value.click()}function Ae(){i.value.value="",i.value.click()}const Le=Se(!1);function Te(){Le.value=!0}function Ie(){Le.value=!1}function Pe(de){var ke;const we=(ke=de.dataTransfer)==null?void 0:ke.files;if(Le.value=!1,we){const Re=[];for(const He of we)Re.push(He);Re.length&&C(Re)}}function Ce(de){var ke;const we=(ke=de.clipboardData)==null?void 0:ke.items;if(we){const Re=[],He=[];for(const ze of we){if(ze.kind!=="file")continue;const Ge=ze.getAsFile();Ge.type.startsWith("image")||Ge.type.startsWith("video")?Re.push(Ge):He.push(Ge)}Re.length&&(de.preventDefault(),L(Re)),He.length&&(de.preventDefault(),C(He))}}return mn(()=>{pt.on("message_created",async de=>{const we=r("a"),ke=[];for(const Re of de){let He=null;Re.data&&(He=Re.data,He.__typename=Re.data.type.split(".").pop()),ke.push({...Re,data:He,__typename:"ChatItem"})}ts(we.cache,ke,nl),D()}),pt.on("message_deleted",async de=>{const ke=r("a").cache;for(const Re of de)ke.evict({id:ke.identify({__typename:"ChatItem",id:Re})})}),pt.on("message_updated",async de=>{const ke=r("a").cache;for(const Re of de){const He=Re.id,ze=ke.identify({__typename:"ChatItem",id:He}),Ge=d0,J=ke.readFragment({id:ze,fragment:Ge});J&&ke.writeFragment({id:ze,fragment:Ge,data:{...J,...Re}})}})}),(de,we)=>{var me,ve,$e;const ke=zte,Re=a0,He=mA,ze=Lte,Ge=Ite,J=Ea("tooltip");return te(),oe("div",ere,[V("div",tre,De(((me=fe(d))==null?void 0:me.deviceName)??de.$t("my_phone"))+De((ve=fe(d))!=null&&ve.battery?" ("+de.$t("battery_left",{percentage:($e=fe(d))==null?void 0:$e.battery})+")":""),1),V("div",{class:"chat-items-container",ref_key:"scrollContainer",ref:n},[V("div",null,[(te(!0),oe(St,null,Ei(a.value,(Oe,M)=>(te(),oe("div",{key:Oe.id,class:"chat-item"},[b(Oe,M)?(te(),oe("div",rre,De(fe(Iv)(Oe.createdAt)),1)):yt("",!0),qe(Re,null,{content:_i(()=>[V("div",sre,[V("md-menu-item",{onClick:k=>U(Oe.id),disabled:fe(H)},[V("div",cre,De(de.$t("delete_message")),1)],8,lre)])]),default:_i(()=>[V("div",nre,[V("span",ire,De(de.$t(Oe.isMe?"me":"app_name")),1),vt((te(),oe("span",ore,[Cn(De(fe(LZ)(Oe.createdAt)),1)])),[[J,fe(c0)(Oe.createdAt)]]),Oe.id.startsWith("new_")?(te(),oe("span",are,De(de.$t("sending")),1)):yt("",!0),qe(ke,{class:"bi bi-more"})])]),_:2},1024),V("div",dre,[Oe._content.type==="text"?(te(),oe("div",ure,[V("pre",{innerHTML:fe(kq)(Oe._content.value.text)},null,8,fre)])):(te(),Hr(Uy(p(Oe._content.type)),{key:1,data:Oe},null,8,["data"]))])]))),128))])],512),V("div",pre,[V("div",hre,[vt(V("div",{class:"drag-mask"},De(de.$t("release_to_send_file")),513),[[fi,Le.value]]),vt(V("md-outlined-text-field",{type:"textarea",rows:"2","onUpdate:modelValue":we[0]||(we[0]=Oe=>Rt(g)?g.value=Oe:null),autocomplete:"off",onPaste:Ce,onDrop:Pt(Pe,["prevent"]),onDragenter:Pt(Te,["prevent"]),onDragleave:Pt(Ie,["prevent"]),class:"textarea",placeholder:de.$t("chat_input_hint"),onKeydown:[Zs(Pt(R,["exact","prevent"]),["enter"]),we[1]||(we[1]=Zs(Pt(Oe=>g.value+=` +`;let m_=class extends PA{};m_.styles=[xee];m_=P([rt("md-badge")],m_);const wee=t=>(yo("data-v-424aaeea"),t=t(),bo(),t),Eee={class:"tasks"},Tee={class:"list-items"},kee={class:"title"},Cee={class:"subtitle"},Aee={key:0,class:"body"},See=["onClick"],Iee=wee(()=>V("md-ripple",null,null,-1)),$ee={key:0,class:"no-data"},Oee=Bt({__name:"TaskList",setup(t){const e=Co(),r=Gd(),n=It(()=>{const a=new Map;return a.set("saving",0),a.set("pending",1),a.set("error",2),a.set("created",3),a.set("done",4),LQ(e.uploads,c=>a.get(c.status)??0)});function i(a){var c;e.uploads.splice(e.uploads.indexOf(a),1),a.status==="pending"&&(a.status="canceled",(c=a.xhr)==null||c.abort())}Vt(()=>e.uploads,async()=>{if(r.quick="task",e.uploads.some(c=>c.status==="pending")){console.log("pending");return}o()});async function o(){console.log("doUpload");const a=e.uploads.filter(c=>c.status==="created").slice(0,5);a.length!==0&&(await Promise.all(a.map(async c=>{c.status="pending",await Jk(c,!0),pt.emit("upload_task_done",c)})),o())}return(a,c)=>{const d=Xd;return te(),oe("div",Eee,[V("section",Tee,[(te(!0),oe(St,null,Ei(n.value,u=>(te(),oe("div",{class:"item",key:u.file.name+u.file.size},[V("div",kee,De(u.file.name),1),V("div",Cee,[Cn(" ["+De(a.$t(`upload_status.${u.status}`))+"] ",1),["created","done"].includes(u.status)?yt("",!0):(te(),oe(St,{key:0},[Cn(De(fe(Ld)(u.uploadedSize))+"("+De(u.uploadedSize)+") / ",1)],64)),Cn(De(fe(Ld)(u.file.size)),1)]),u.error?(te(),oe("div",Aee,De(u.error),1)):yt("",!0),V("button",{class:"icon-button icon",onClick:Pt(f=>i(u),["stop"])},[Iee,qe(d)],8,See)]))),128))]),n.value.length?yt("",!0):(te(),oe("span",$ee,De(a.$t("no_task")),1))])}}});const Pee=gn(Oee,[["__scopeId","data-v-424aaeea"]]),Ree={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Lee=V("path",{fill:"currentColor",d:"M17.5 18q-.425 0-.713-.288T16.5 17V7q0-.425.288-.713T17.5 6q.425 0 .713.288T18.5 7v10q0 .425-.288.713T17.5 18ZM7.05 16.975q-.5.35-1.025.05t-.525-.9v-8.25q0-.6.525-.9t1.025.05l6.2 4.15q.45.3.45.825t-.45.825l-6.2 4.15ZM7.5 12Zm0 2.25L10.9 12L7.5 9.75v4.5Z"},null,-1),Mee=[Lee];function Dee(t,e){return te(),oe("svg",Ree,Mee)}const Fee={name:"material-symbols-skip-next-outline-rounded",render:Dee},Nee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},zee=V("path",{fill:"currentColor",d:"M11.5 10.5h-.775q-.3 0-.513-.213T10 9.75q0-.325.213-.537T10.75 9h1.5q.325 0 .537.213T13 9.75v4.525q0 .3-.213.513T12.25 15q-.325 0-.537-.213t-.213-.537V10.5ZM17 17v-3q0-.425.288-.713T18 13q.425 0 .713.275t.287.7V18q0 .425-.288.713T18 19H6.85l.825.825q.3.3.313.725t-.288.725q-.3.3-.713.3T6.3 21.3l-2.6-2.6q-.275-.275-.275-.7t.275-.7l2.575-2.575q.3-.3.713-.3t.712.3q.3.3.3.713t-.3.712l-.85.85H17ZM7 7v3q0 .425-.288.713T6 11q-.425 0-.713-.275t-.287-.7V6q0-.425.288-.713T6 5h11.15l-.825-.825q-.3-.3-.313-.725t.288-.725q.3-.3.713-.3t.687.275l2.6 2.6q.275.275.275.7t-.275.7l-2.575 2.575q-.3.3-.713.3t-.712-.3q-.3-.3-.3-.713t.3-.712l.85-.85H7Z"},null,-1),qee=[zee];function Bee(t,e){return te(),oe("svg",Nee,qee)}const Uee={name:"material-symbols-repeat-one-rounded",render:Bee},Vee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},jee=V("path",{fill:"currentColor",d:"M17 17v-3q0-.425.288-.713T18 13q.425 0 .713.275t.287.7V18q0 .425-.288.713T18 19H6.85l.825.825q.3.3.313.725t-.288.725q-.3.3-.713.3T6.3 21.3l-2.6-2.6q-.275-.275-.275-.7t.275-.7l2.575-2.575q.3-.3.713-.3t.712.3q.3.3.3.713t-.3.712l-.85.85H17ZM7 7v3q0 .425-.288.713T6 11q-.425 0-.713-.275t-.287-.7V6q0-.425.288-.713T6 5h11.15l-.825-.825q-.3-.3-.313-.725t.288-.725q.3-.3.713-.3t.687.275l2.6 2.6q.275.275.275.7t-.275.7l-2.575 2.575q-.3.3-.713.3t-.712-.3q-.3-.3-.3-.713t.3-.712l.85-.85H7Z"},null,-1),Hee=[jee];function Gee(t,e){return te(),oe("svg",Vee,Hee)}const Wee={name:"material-symbols-repeat-rounded",render:Gee},Qee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Kee=V("path",{fill:"currentColor",d:"M9.175 10.575L4.7 6.1q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l4.475 4.475l-1.4 1.4ZM15 20q-.425 0-.713-.288T14 19q0-.425.288-.713T15 18h1.6l-3.175-3.175L14.85 13.4L18 16.55V15q0-.425.288-.713T19 14q.425 0 .713.288T20 15v4q0 .425-.288.713T19 20h-4Zm-10.3-.7q-.275-.275-.275-.7t.275-.7L16.6 6H15q-.425 0-.712-.287T14 5q0-.425.288-.713T15 4h4q.425 0 .713.288T20 5v4q0 .425-.288.713T19 10q-.425 0-.713-.288T18 9V7.4L6.1 19.3q-.275.275-.7.275t-.7-.275Z"},null,-1),Yee=[Kee];function Zee(t,e){return te(),oe("svg",Qee,Yee)}const Xee={name:"material-symbols-shuffle-outline-rounded",render:Zee},Jee={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ete=V("path",{fill:"currentColor",d:"M6.5 18q-.425 0-.713-.288T5.5 17V7q0-.425.288-.713T6.5 6q.425 0 .713.288T7.5 7v10q0 .425-.288.713T6.5 18Zm10.45-1.025l-6.2-4.15q-.45-.3-.45-.825t.45-.825l6.2-4.15q.5-.35 1.025-.05t.525.9v8.25q0 .6-.525.9t-1.025-.05ZM16.5 12Zm0 2.25v-4.5L13.1 12l3.4 2.25Z"},null,-1),tte=[ete];function rte(t,e){return te(),oe("svg",Jee,tte)}const nte={name:"material-symbols-skip-previous-outline-rounded",render:rte},Jl=t=>(yo("data-v-137f137c"),t=t(),bo(),t),ite={class:"audio-player"},ote={key:0,class:"play-title"},ate=["src"],ste={key:1,class:"buttons"},lte=["onClick"],cte=Jl(()=>V("md-ripple",null,null,-1)),dte=["onClick"],ute=Jl(()=>V("md-ripple",null,null,-1)),fte=["onClick"],pte=Jl(()=>V("md-ripple",null,null,-1)),hte={key:0,indeterminate:"",class:"spinner-sm"},mte=Jl(()=>V("md-ripple",null,null,-1)),vte={class:"list-items"},gte=["onClick"],_te=Jl(()=>V("md-ripple",null,null,-1)),yte={class:"title"},bte={class:"subtitle"},xte=["onClick"],wte=Jl(()=>V("md-ripple",null,null,-1)),Ete=Bt({__name:"AudioPlayer",setup(t){const{app:e,urlTokenKey:r,audioPlaying:n}=ba(Co()),i=It(()=>e.value.audios??[]),o=Se(),a=Se("");async function c(){const{audioCurrent:Ce}=e.value;a.value=vl(r.value,Ce),o.value=i.value.find(de=>de.path==Ce)}c(),Vt(()=>e.value.audioCurrent,c);const{mutate:d,loading:u,onDone:f,onError:_}=jr({document:iX,appApi:!0}),{mutate:y,loading:b,onDone:p,onError:m}=jr({document:sX,appApi:!0});p(()=>{e.value={...e.value,audioCurrent:"",audios:[]}});const{mutate:g,loading:v,onDone:x,onError:E}=jr({document:oX,appApi:!0}),{mutate:T,loading:C,onDone:A,onError:L}=jr({document:aX,appApi:!0}),R=Se();async function D(){var de;if(i.value.length===0)return;const Ce=e.value.audioMode;Ce==="REPEAT"?Le():Ce==="REPEAT_ONE"?(de=R.value)==null||de.play():q()}function q(){const Ce=PQ(e.value.audios);d({path:Ce.path}),e.value={...e.value,audioCurrent:Ce.path}}function H(){i.value.length!==0&&(e.value.audioMode==="SHUFFLE"?q():U())}function U(){const Ce=i.value.findIndex(we=>{var ke;return we.path===((ke=o.value)==null?void 0:ke.path)});let de;Ce<=0?de=i.value[i.value.length-1]:de=i.value[Ce-1],d({path:de.path}),e.value={...e.value,audioCurrent:de.path}}function ce(){i.value.length!==0&&(e.value.audioMode==="SHUFFLE"?q():Le())}function Ae(){var Ce;(Ce=R.value)==null||Ce.play()}function Le(){const Ce=i.value.findIndex(we=>{var ke;return we.path===((ke=o.value)==null?void 0:ke.path)});let de;Ce+1>=i.value.length?de=i.value[0]:de=i.value[Ce+1],d({path:de.path}),e.value={...e.value,audioCurrent:de.path}}function Te(){let Ce=e.value.audioMode;Ce==="REPEAT"?Ce="REPEAT_ONE":Ce==="REPEAT_ONE"?Ce="SHUFFLE":Ce="REPEAT",g({mode:Ce}),e.value={...e.value,audioMode:Ce}}function Ie(Ce){d({path:Ce.path}),e.value={...e.value,audioCurrent:Ce.path}}f(()=>{Ae()});function Pe(Ce){T({path:Ce.path});const de=[...e.value.audios];gs(de,we=>we.path===Ce.path),e.value={...e.value,audios:de}}return mn(()=>{var Ce,de;pt.on("do_play_audio",()=>{setTimeout(Ae,500)}),pt.on("pause_audio",()=>{var we;(we=R.value)==null||we.pause()}),(Ce=R.value)==null||Ce.addEventListener("pause",function(){n.value=!1}),(de=R.value)==null||de.addEventListener("play",function(){n.value=!0})}),(Ce,de)=>{var ve,$e;const we=nte,ke=Xee,Re=Wee,He=Uee,ze=Fee,Ge=Zb,J=Xd,me=Ea("tooltip");return te(),oe("div",ite,[o.value?(te(),oe("div",ote,De(o.value.title),1)):yt("",!0),V("audio",{ref_key:"audioRef",ref:R,class:"audio",controls:"",src:a.value,onEnded:D},null,40,ate),i.value.length?(te(),oe("div",ste,[V("button",{class:"icon-button",onClick:Pt(H,["stop"])},[cte,qe(we)],8,lte),V("button",{class:"icon-button mode",onClick:Pt(Te,["stop"])},[ute,((ve=fe(e))==null?void 0:ve.audioMode)==="SHUFFLE"?(te(),Hr(ke,{key:0})):(($e=fe(e))==null?void 0:$e.audioMode)==="REPEAT"?(te(),Hr(Re,{key:1})):(te(),Hr(He,{key:2}))],8,dte),V("button",{class:"icon-button",onClick:Pt(ce,["stop"])},[pte,qe(ze)],8,fte),fe(b)?(te(),oe("md-circular-progress",hte)):vt((te(),oe("button",{key:1,class:"icon-button",onClick:de[0]||(de[0]=Pt((...Oe)=>fe(y)&&fe(y)(...Oe),["prevent"]))},[mte,qe(Ge)])),[[me,Ce.$t("clear_list")]])])):yt("",!0),V("section",vte,[(te(!0),oe(St,null,Ei(i.value,Oe=>{var M;return te(),oe("div",{class:jn(["item",{selected:Oe.path===((M=o.value)==null?void 0:M.path)}]),key:Oe.path,onClick:Pt(k=>Ie(Oe),["stop"])},[_te,V("div",yte,De(Oe.title),1),V("div",bte,De(Oe.artist)+" "+De(fe(wh)(Oe.duration)),1),V("button",{class:"icon-button icon",onClick:Pt(k=>Pe(Oe),["stop"])},[wte,qe(J)],8,xte)],10,gte)}),128))])])}}});const Tte=gn(Ete,[["__scopeId","data-v-137f137c"]]),kte={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Cte=V("path",{fill:"currentColor",d:"M3 18.5v-13q0-.55.45-.838t.95-.087l15.4 6.5q.625.275.625.925t-.625.925l-15.4 6.5q-.5.2-.95-.088T3 18.5ZM5 17l11.85-5L5 7v3.5l6 1.5l-6 1.5V17Zm0-5V7v10v-5Z"},null,-1),Ate=[Cte];function Ste(t,e){return te(),oe("svg",kte,Ate)}const Ite={name:"material-symbols-send-outline-rounded",render:Ste},$te={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ote=V("path",{fill:"currentColor",d:"M4 20q-.825 0-1.413-.588T2 18V6q0-.825.588-1.413T4 4h5.175q.4 0 .763.15t.637.425L12 6h8q.825 0 1.413.588T22 8v10q0 .825-.588 1.413T20 20H4ZM4 6v12h16V8h-8.825l-2-2H4Zm0 0v12V6Z"},null,-1),Pte=[Ote];function Rte(t,e){return te(),oe("svg",$te,Pte)}const Lte={name:"material-symbols-folder-outline-rounded",render:Rte},Mte={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Dte=V("path",{fill:"currentColor",d:"M12 14.95q-.2 0-.375-.062t-.325-.213L6.675 10.05q-.275-.275-.262-.688t.287-.687q.275-.275.7-.275t.7.275l3.9 3.9l3.925-3.925q.275-.275.688-.263t.687.288q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213T12 14.95Z"},null,-1),Fte=[Dte];function Nte(t,e){return te(),oe("svg",Mte,Fte)}const zte={name:"material-symbols-expand-more-rounded",render:Nte},qte={class:"image-container"},Bte=["onClick"],Ute=["src"],Vte={class:"duration"},jte=Bt({__name:"ChatImages",props:{data:{type:Object}},setup(t){const e=t,r=Co();function n(a){return a.thumbnail?a.thumbnail:a.src.startsWith("blob:")?a.src:`${a.src}&w=300&h=300`}function i(a){r.lightbox={sources:o.value,index:a,visible:!0}}const o=It(()=>{var u,f,_,y;const a=e.data,c=((f=(u=a==null?void 0:a._content)==null?void 0:u.value)==null?void 0:f.items)??[],d=[];return(y=(_=a==null?void 0:a.data)==null?void 0:_.ids)==null||y.forEach((b,p)=>{const m=c[p];d.push({path:m.uri,src:Mb(b),viewOriginImage:Lb(b)||m.uri.endsWith(".gif"),name:Bi(m.uri),duration:m.duration,size:m.size,thumbnail:m.thumbnail})}),d});return(a,c)=>(te(),oe("div",qte,[(te(!0),oe(St,null,Ei(o.value,(d,u)=>(te(),oe("div",{class:"item",key:u,onClick:f=>i(u)},[V("img",{class:"image",src:n(d)},null,8,Ute),V("span",Vte,De(fe(ji)(d.name)?fe(wh)(d.duration):fe(Ld)(d.size)),1)],8,Bte))),128))]))}});const Hte=gn(jte,[["__scopeId","data-v-578f7f0f"]]),Gte={class:"chat-section"},Wte=["href","onClick"],Qte={class:"left"},Kte={class:"info"},Yte=["src"],Zte=Bt({__name:"ChatFiles",props:{data:{type:Object}},setup(t){const e=t,r=Co(),n=Se([]);function i(c){return c.thumbnail?c.thumbnail:c.src.startsWith("blob:")?c.src:`${c.src}&w=50&h=50`}const o=It(()=>{var u,f,_,y,b,p;const c=((_=(f=(u=e.data)==null?void 0:u._content)==null?void 0:f.value)==null?void 0:_.items)??[],d=[];return(p=(b=(y=e.data)==null?void 0:y.data)==null?void 0:b.ids)==null||p.forEach((m,g)=>{const v=c[g];d.push({path:v.uri,src:Mb(m),viewOriginImage:Lb(m)||v.uri.endsWith(".gif"),name:Bi(v.uri),duration:v.duration,size:v.size,thumbnail:v.thumbnail})}),d});function a(c){if(F4(c.name)){n.value=o.value.filter(u=>F4(u.name));const d=n.value.findIndex(u=>u.src===c.src);r.lightbox={sources:n.value,index:d,visible:!0}}else window.open(c.src,"_blank")}return(c,d)=>(te(),oe("div",Gte,[(te(!0),oe(St,null,Ei(o.value,(u,f)=>(te(),oe("a",{key:f,class:"file-item",target:"_blank",href:u.src,onClick:Pt(_=>a(u),["prevent"])},[V("span",Qte,[V("span",null,De(u.name),1),V("span",Kte,De(fe(Ld)(u.size))+De(fe(ji)(u.name)?" / "+fe(wh)(u.duration):""),1)]),fe(Li)(u.name)||fe(ji)(u.name)?(te(),oe("img",{key:0,src:i(u)},null,8,Yte)):yt("",!0)],8,Wte))),128))]))}});const Xte=gn(Zte,[["__scopeId","data-v-5f17c344"]]),Jte=()=>{const t=[];let e=null;const{mutate:r}=jr({document:xA,options:{update:(o,a)=>{o.evict({id:o.identify({__typename:"ChatItem",id:e==null?void 0:e.item.id})}),ts(o,a.data.createChatItem,nl),n()}},appApi:!0}),n=()=>{e=null,t.length&&i()},i=async()=>{if(!e&&(e=t.shift()||null,e)){const o=TG(e.uploads,5);for(const d of o)await Promise.all(d.map(async u=>{await Jk(u,!1)}));const a=e.item._content,c=[];a.value.items.forEach((d,u)=>{const f=wA(d.uri);c.push({uri:`app://${f}/`+e.uploads[u].fileName,size:d.size,duration:d.duration})}),r({content:JSON.stringify({type:a.type,value:{items:c}})})}};return{async enqueue(o,a){t.push({item:o,uploads:a}),e==null&&await i()}}},v0=t=>(yo("data-v-d30ba72e"),t=t(),bo(),t),ere={class:"chat"},tre={class:"top-title"},rre={key:0,class:"date"},nre={class:"chat-title"},ire={class:"name"},ore={class:"time"},are={key:0,class:"sending"},sre={class:"menu-items"},lre=["onClick","disabled"],cre={slot:"headline"},dre={class:"chat-content"},ure={key:0},fre=["innerHTML"],pre={class:"chat-input"},hre={class:"textarea-wrapper"},mre=["onDrop","onDragenter","onDragleave","placeholder","onKeydown"],vre={class:"btns"},gre=v0(()=>V("md-ripple",null,null,-1)),_re=v0(()=>V("md-ripple",null,null,-1)),yre={class:"btn-send-container"},bre=["disable"],xre=v0(()=>V("md-ripple",null,null,-1)),wre=Bt({__name:"HomeConsole",setup(t){const{getUploads:e}=gX(),{resolveClient:r}=sh(),n=Se(),i=Se(),o=Se(),a=Se([]),{enqueue:c}=Jte(),{app:d}=ba(Co()),{externalFilesDir:u}=d.value,f=Se(""),{t:_}=On();let y=!1;function b(de,we){let ke=!1;if(we==0)ke=!0;else{const Re=we>0?a.value[we-1]:null;Re!=null&&$v(Re.createdAt)!==$v(de.createdAt)&&(ke=!0)}return ke}ys({handle:async(de,we)=>{we?go(_(we),"error"):de&&(a.value=de.chatItems,y||(D(),y=!0))},document:nl,appApi:!0});function p(de){return{images:Hte,files:Xte}[de]}const m=Gd(),{chatText:g}=ba(m),{mutate:v,loading:x,onDone:E}=jr({document:xA,options:{update:(de,we)=>{ts(de,we.data.createChatItem,nl)}},appApi:!0});function T(de){const we=de.target.files,ke=[];for(const Re of we)ke.push(Re);C(ke)}async function C(de){if(!de.length)return;const we=e(u,de),ke=[],Re=[];for(const J of we)if(J.file.type.startsWith("video")){const me=await N4(J.file);Re.push({uri:J.fileName,size:J.file.size,duration:me.duration,thumbnail:me.thumbnail})}else Re.push({uri:J.fileName,size:J.file.size,duration:0});const He={type:"files",value:{items:Re}},ze={id:"new_"+Hg(),isMe:!0,createdAt:new Date().toISOString(),content:JSON.stringify(He),_content:He,__typename:"ChatItem",data:{__typename:"MessageFiles",ids:we.map(J=>URL.createObjectURL(J.file))}};ke.push(ze),c(ze,we);const Ge=r("a");ts(Ge.cache,ke,nl),D()}function A(de){const we=de.target.files,ke=[];for(const Re of we)ke.push(Re);L(ke)}async function L(de){if(!de.length)return;const we=e(u,de),ke=[],Re=[];for(const J of we)if(J.file.type.startsWith("video")){const me=await N4(J.file);Re.push({uri:J.fileName,size:J.file.size,duration:me.duration,thumbnail:me.thumbnail})}else Re.push({uri:J.fileName,size:J.file.size,duration:0});const He={type:"images",value:{items:Re}},ze={id:"new_"+Hg(),isMe:!0,createdAt:new Date().toISOString(),content:JSON.stringify(He),_content:He,__typename:"ChatItem",data:{__typename:"MessageImages",ids:we.map(J=>URL.createObjectURL(J.file))}};ke.push(ze),c(ze,we);const Ge=r("a");ts(Ge.cache,ke,nl),D()}function R(){g.value&&v({content:JSON.stringify({type:"text",value:{text:g.value}})})}function D(){const de=n.value;de&&setTimeout(()=>{de.scrollTop=de.scrollHeight},100)}E(()=>{g.value="",D()});const{mutate:q,loading:H}=jr({document:JZ,options:{update:de=>{de.evict({id:de.identify({__typename:"ChatItem",id:f.value})})}},appApi:!0});function U(de){f.value=de,q({id:de})}function ce(){o.value.value="",o.value.click()}function Ae(){i.value.value="",i.value.click()}const Le=Se(!1);function Te(){Le.value=!0}function Ie(){Le.value=!1}function Pe(de){var ke;const we=(ke=de.dataTransfer)==null?void 0:ke.files;if(Le.value=!1,we){const Re=[];for(const He of we)Re.push(He);Re.length&&C(Re)}}function Ce(de){var ke;const we=(ke=de.clipboardData)==null?void 0:ke.items;if(we){const Re=[],He=[];for(const ze of we){if(ze.kind!=="file")continue;const Ge=ze.getAsFile();Ge.type.startsWith("image")||Ge.type.startsWith("video")?Re.push(Ge):He.push(Ge)}Re.length&&(de.preventDefault(),L(Re)),He.length&&(de.preventDefault(),C(He))}}return mn(()=>{pt.on("message_created",async de=>{const we=r("a"),ke=[];for(const Re of de){let He=null;Re.data&&(He=Re.data,He.__typename=Re.data.type.split(".").pop()),ke.push({...Re,data:He,__typename:"ChatItem"})}ts(we.cache,ke,nl),D()}),pt.on("message_deleted",async de=>{const ke=r("a").cache;for(const Re of de)ke.evict({id:ke.identify({__typename:"ChatItem",id:Re})})}),pt.on("message_updated",async de=>{const ke=r("a").cache;for(const Re of de){const He=Re.id,ze=ke.identify({__typename:"ChatItem",id:He}),Ge=d0,J=ke.readFragment({id:ze,fragment:Ge});J&&ke.writeFragment({id:ze,fragment:Ge,data:{...J,...Re}})}})}),(de,we)=>{var me,ve,$e;const ke=zte,Re=a0,He=mA,ze=Lte,Ge=Ite,J=Ea("tooltip");return te(),oe("div",ere,[V("div",tre,De(((me=fe(d))==null?void 0:me.deviceName)??de.$t("my_phone"))+De((ve=fe(d))!=null&&ve.battery?" ("+de.$t("battery_left",{percentage:($e=fe(d))==null?void 0:$e.battery})+")":""),1),V("div",{class:"chat-items-container",ref_key:"scrollContainer",ref:n},[V("div",null,[(te(!0),oe(St,null,Ei(a.value,(Oe,M)=>(te(),oe("div",{key:Oe.id,class:"chat-item"},[b(Oe,M)?(te(),oe("div",rre,De(fe($v)(Oe.createdAt)),1)):yt("",!0),qe(Re,null,{content:_i(()=>[V("div",sre,[V("md-menu-item",{onClick:k=>U(Oe.id),disabled:fe(H)},[V("div",cre,De(de.$t("delete_message")),1)],8,lre)])]),default:_i(()=>[V("div",nre,[V("span",ire,De(de.$t(Oe.isMe?"me":"app_name")),1),vt((te(),oe("span",ore,[Cn(De(fe(LZ)(Oe.createdAt)),1)])),[[J,fe(c0)(Oe.createdAt)]]),Oe.id.startsWith("new_")?(te(),oe("span",are,De(de.$t("sending")),1)):yt("",!0),qe(ke,{class:"bi bi-more"})])]),_:2},1024),V("div",dre,[Oe._content.type==="text"?(te(),oe("div",ure,[V("pre",{innerHTML:fe(kq)(Oe._content.value.text)},null,8,fre)])):(te(),Hr(Vy(p(Oe._content.type)),{key:1,data:Oe},null,8,["data"]))])]))),128))])],512),V("div",pre,[V("div",hre,[vt(V("div",{class:"drag-mask"},De(de.$t("release_to_send_file")),513),[[fi,Le.value]]),vt(V("md-outlined-text-field",{type:"textarea",rows:"2","onUpdate:modelValue":we[0]||(we[0]=Oe=>Rt(g)?g.value=Oe:null),autocomplete:"off",onPaste:Ce,onDrop:Pt(Pe,["prevent"]),onDragenter:Pt(Te,["prevent"]),onDragleave:Pt(Ie,["prevent"]),class:"textarea",placeholder:de.$t("chat_input_hint"),onKeydown:[Zs(Pt(R,["exact","prevent"]),["enter"]),we[1]||(we[1]=Zs(Pt(Oe=>g.value+=` `,["shift","exact","prevent"]),["enter"])),we[2]||(we[2]=Zs(Pt(Oe=>g.value+=` `,["ctrl","exact","prevent"]),["enter"])),we[3]||(we[3]=Zs(Pt(Oe=>g.value+=` `,["alt","exact","prevent"]),["enter"])),we[4]||(we[4]=Zs(Pt(Oe=>g.value+=` -`,["meta","exact","prevent"]),["enter"]))]},null,40,mre),[[og,fe(g)]])]),V("div",vre,[V("button",{class:"icon-button",onClick:ce},[gre,qe(He)]),V("button",{class:"icon-button",onClick:Ae},[_re,qe(ze)]),V("div",yre,[V("button",{class:"icon-button btn-send",onClick:R,disable:fe(x)},[xre,qe(Ge)],8,bre)])])]),V("input",{ref_key:"fileInput",ref:i,style:{display:"none"},type:"file",multiple:"",onChange:T},null,544),V("input",{ref_key:"imageInput",ref:o,style:{display:"none"},type:"file",accept:"image/*, video/*",multiple:"",onChange:A},null,544)])}}});const Ere=gn(wre,[["__scopeId","data-v-d30ba72e"]]),Tre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},kre=V("path",{fill:"currentColor",d:"M7 14h6.025q.425 0 .7-.288T14 13q0-.425-.288-.713T13 12H6.975q-.425 0-.7.288T6 13q0 .425.288.713T7 14Zm0-3h10.025q.425 0 .7-.288T18 10q0-.425-.288-.713T17 9H6.975q-.425 0-.7.288T6 10q0 .425.288.713T7 11Zm0-3h10.025q.425 0 .7-.288T18 7q0-.425-.288-.713T17 6H6.975q-.425 0-.7.288T6 7q0 .425.288.713T7 8ZM2 19.575V4q0-.825.588-1.413T4 2h16q.825 0 1.413.588T22 4v12q0 .825-.588 1.413T20 18H6l-2.3 2.3q-.475.475-1.088.213T2 19.575Zm2-2.4L5.175 16H20V4H4v13.175ZM4 4v13.175V4Z"},null,-1),Cre=[kre];function Are(t,e){return te(),oe("svg",Tre,Cre)}const Sre={name:"material-symbols-chat-outline-rounded",render:Are},Ire={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},$re=V("path",{fill:"currentColor",d:"M16 20q-1.25 0-2.125-.875T13 17q0-1.25.875-2.125T16 14q.275 0 .525.038T17 14.2V7q0-.425.288-.713T18 6h3q.425 0 .713.288T22 7q0 .425-.288.713T21 8h-2v9q0 1.25-.875 2.125T16 20ZM4 8q-.425 0-.713-.288T3 7q0-.425.288-.713T4 6h10q.425 0 .713.288T15 7q0 .425-.288.713T14 8H4Zm0 4q-.425 0-.713-.288T3 11q0-.425.288-.713T4 10h10q.425 0 .713.288T15 11q0 .425-.288.713T14 12H4Zm0 4q-.425 0-.713-.288T3 15q0-.425.288-.713T4 14h6q.425 0 .713.288T11 15q0 .425-.288.713T10 16H4Z"},null,-1),Ore=[$re];function Pre(t,e){return te(),oe("svg",Ire,Ore)}const Rre={name:"material-symbols-queue-music-rounded",render:Pre},Lre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Mre=V("path",{fill:"currentColor",d:"M3.75 22q-.325 0-.537-.213T3 21.25q0-.325.213-.537t.537-.213H5.5v-.75h-.75q-.325 0-.537-.213T4 19q0-.325.213-.537t.537-.213h.75v-.75H3.75q-.325 0-.537-.213T3 16.75q0-.325.213-.537T3.75 16H6q.425 0 .713.288T7 17v1q0 .425-.288.713T6 19q.425 0 .713.288T7 20v1q0 .425-.288.713T6 22H3.75Zm0-7q-.325 0-.537-.213T3 14.25v-2q0-.425.288-.713T4 11.25h1.5v-.75H3.75q-.325 0-.537-.213T3 9.75q0-.325.213-.537T3.75 9H6q.425 0 .713.288T7 10v1.75q0 .425-.288.713T6 12.75H4.5v.75h1.75q.325 0 .537.213T7 14.25q0 .325-.213.537T6.25 15h-2.5Zm1.5-7q-.325 0-.537-.213T4.5 7.25V3.5h-.75q-.325 0-.537-.213T3 2.75q0-.325.213-.537T3.75 2h1.5q.325 0 .537.213T6 2.75v4.5q0 .325-.213.537T5.25 8ZM10 19q-.425 0-.713-.288T9 18q0-.425.288-.713T10 17h10q.425 0 .713.288T21 18q0 .425-.288.713T20 19H10Zm0-6q-.425 0-.713-.288T9 12q0-.425.288-.713T10 11h10q.425 0 .713.288T21 12q0 .425-.288.713T20 13H10Zm0-6q-.425 0-.713-.288T9 6q0-.425.288-.713T10 5h10q.425 0 .713.288T21 6q0 .425-.288.713T20 7H10Z"},null,-1),Dre=[Mre];function Fre(t,e){return te(),oe("svg",Lre,Dre)}const Nre={name:"material-symbols-format-list-numbered-rounded",render:Fre},zre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},qre=V("path",{fill:"currentColor",d:"M5 19q-.425 0-.713-.288T4 18q0-.425.288-.713T5 17h1v-7q0-2.075 1.25-3.688T10.5 4.2v-.7q0-.625.438-1.063T12 2q.625 0 1.063.438T13.5 3.5v.7q2 .5 3.25 2.113T18 10v7h1q.425 0 .713.288T20 18q0 .425-.288.713T19 19H5Zm7-7.5ZM12 22q-.825 0-1.413-.588T10 20h4q0 .825-.588 1.413T12 22Zm-4-5h8v-7q0-1.65-1.175-2.825T12 6q-1.65 0-2.825 1.175T8 10v7Z"},null,-1),Bre=[qre];function Ure(t,e){return te(),oe("svg",zre,Bre)}const Vre={name:"material-symbols-notifications-outline-rounded",render:Ure},jre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Hre=V("path",{fill:"currentColor",d:"M15.325 16.275q-.275-.325-.275-.737t.275-.688l1.85-1.85H10q-.425 0-.713-.288T9 12q0-.425.288-.713T10 11h7.175l-1.85-1.85q-.3-.3-.3-.713t.3-.712q.275-.3.688-.3t.687.275l3.6 3.6q.15.15.213.325t.062.375q0 .2-.062.375t-.213.325l-3.6 3.6q-.325.325-.713.288t-.662-.313ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h6q.425 0 .713.288T12 4q0 .425-.288.713T11 5H5v14h6q.425 0 .713.288T12 20q0 .425-.288.713T11 21H5Z"},null,-1),Gre=[Hre];function Wre(t,e){return te(),oe("svg",jre,Gre)}const Qre={name:"material-symbols-logout-rounded",render:Wre},Kre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Yre=V("path",{fill:"currentColor",d:"M12 5q-.425 0-.713-.288T11 4V2q0-.425.288-.713T12 1q.425 0 .713.288T13 2v2q0 .425-.288.713T12 5Zm4.95 2.05q-.275-.275-.275-.687t.275-.713l1.4-1.425q.3-.3.712-.3t.713.3q.275.275.275.7t-.275.7L18.35 7.05q-.275.275-.7.275t-.7-.275ZM20 13q-.425 0-.713-.288T19 12q0-.425.288-.713T20 11h2q.425 0 .713.288T23 12q0 .425-.288.713T22 13h-2Zm-8 10q-.425 0-.713-.288T11 22v-2q0-.425.288-.713T12 19q.425 0 .713.288T13 20v2q0 .425-.288.713T12 23ZM5.65 7.05l-1.425-1.4q-.3-.3-.3-.725t.3-.7q.275-.275.7-.275t.7.275L7.05 5.65q.275.275.275.7t-.275.7q-.3.275-.7.275t-.7-.275Zm12.7 12.725l-1.4-1.425q-.275-.3-.275-.713t.275-.687q.275-.275.688-.275t.712.275l1.425 1.4q.3.275.288.7t-.288.725q-.3.3-.725.3t-.7-.3ZM2 13q-.425 0-.713-.288T1 12q0-.425.288-.713T2 11h2q.425 0 .713.288T5 12q0 .425-.288.713T4 13H2Zm2.225 6.775q-.275-.275-.275-.7t.275-.7L5.65 16.95q.275-.275.687-.275t.713.275q.3.3.3.713t-.3.712l-1.4 1.4q-.3.3-.725.3t-.7-.3ZM12 18q-2.5 0-4.25-1.75T6 12q0-2.5 1.75-4.25T12 6q2.5 0 4.25 1.75T18 12q0 2.5-1.75 4.25T12 18Zm0-2q1.65 0 2.825-1.175T16 12q0-1.65-1.175-2.825T12 8q-1.65 0-2.825 1.175T8 12q0 1.65 1.175 2.825T12 16Zm0-4Z"},null,-1),Zre=[Yre];function Xre(t,e){return te(),oe("svg",Kre,Zre)}const Jre={name:"material-symbols-sunny-outline-rounded",render:Xre},ene={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},tne=V("path",{fill:"currentColor",d:"M8.65 20H6q-.825 0-1.413-.588T4 18v-2.65L2.075 13.4Q1.5 12.825 1.5 12t.575-1.4L4 8.65V6q0-.825.588-1.413T6 4h2.65l1.95-1.925Q11.175 1.5 12 1.5t1.4.575L15.35 4H18q.825 0 1.413.588T20 6v2.65l1.925 1.95q.575.575.575 1.4t-.575 1.4L20 15.35V18q0 .825-.588 1.413T18 20h-2.65l-1.95 1.925q-.575.575-1.4.575t-1.4-.575L8.65 20ZM12 12Zm0 5q2.075 0 3.538-1.463T17 12q0-2.075-1.463-3.538T12 7v10Zm0 3.5l2.5-2.5H18v-3.5l2.5-2.5L18 9.5V6h-3.5L12 3.5L9.5 6H6v3.5L3.5 12L6 14.5V18h3.5l2.5 2.5Z"},null,-1),rne=[tne];function nne(t,e){return te(),oe("svg",ene,rne)}const ine={name:"material-symbols-brightness6-outline-rounded",render:nne},one={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ane=V("path",{fill:"currentColor",d:"M12 21q-3.775 0-6.388-2.613T3 12q0-3.45 2.25-5.988T11 3.05q.625-.075.975.45t-.025 1.1q-.425.65-.638 1.375T11.1 7.5q0 2.25 1.575 3.825T16.5 12.9q.775 0 1.538-.225t1.362-.625q.525-.35 1.075-.037t.475.987q-.35 3.45-2.937 5.725T12 21Zm0-2q2.2 0 3.95-1.213t2.55-3.162q-.5.125-1 .2t-1 .075q-3.075 0-5.238-2.163T9.1 7.5q0-.5.075-1t.2-1q-1.95.8-3.163 2.55T5 12q0 2.9 2.05 4.95T12 19Zm-.25-6.75Z"},null,-1),sne=[ane];function lne(t,e){return te(),oe("svg",one,sne)}const cne={name:"material-symbols-dark-mode-outline-rounded",render:lne};const kh=["ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"];kh.map(Ch);function Ch(t){return t.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}function Jd(t,{focusable:e}={}){if(e!==!1&&t.addInitializer(r=>{r.addController({hostConnected(){r.hasAttribute("tabindex")||(r.tabIndex=0)}})}),!("role"in Element.prototype)){for(const r of kh)t.createProperty(r,{attribute:Ch(r),reflect:!0});t.createProperty("role",{reflect:!0})}}function eu(t,e){if(dne(e))return e;if(!("role"in t))throw new Error("Missing setupHostAria()");let r=[],n=!1;for(const o of kh){let a=null;Object.defineProperty(e,o,{enumerable:!0,configurable:!0,get(){return a},set(c){const d=()=>{if(a=c,!n){r.push({property:o,callback:d});return}t[o]=c};d()}})}let i=null;return Object.defineProperty(e,"role",{enumerable:!0,configurable:!0,get(){return i},set(o){const a=()=>{if(i=o,!n){r.push({property:"role",callback:a});return}o===null?t.removeAttribute("role"):t.setAttribute("role",o)};a()}}),t.addController({hostConnected(){if(n)return;n=!0;const o=new Set;for(const{property:a}of r)(t.getAttribute(Ch(a))!==null||t[a]!==void 0)&&o.add(a);for(const{property:a,callback:c}of r)o.has(a)||c();r=[]}}),e}function dne(t){return"role"in t}function Qr(t){for(const e of kh)t.createProperty(e,{attribute:Ch(e),reflect:!0});t.addInitializer(e=>{const r={hostConnected(){e.setAttribute("role","presentation")}};e.addController(r)})}class Ah extends lt{constructor(){super(...arguments),this.multiselect=!1}getButtonDisabled(e){return this.indexOutOfBounds(e)?!1:this.buttons[e].disabled}setButtonDisabled(e,r){this.indexOutOfBounds(e)||(this.buttons[e].disabled=r)}getButtonSelected(e){return this.indexOutOfBounds(e)?!1:this.buttons[e].selected}setButtonSelected(e,r){if(!this.indexOutOfBounds(e)&&!this.getButtonDisabled(e)){if(this.multiselect){this.buttons[e].selected=r,this.emitSelectionEvent(e);return}if(r){this.buttons[e].selected=!0,this.emitSelectionEvent(e);for(let n=0;n=this.buttons.length}emitSelectionEvent(e){this.dispatchEvent(new CustomEvent("segmented-button-set-selection",{detail:{button:this.buttons[e],selected:this.buttons[e].selected,index:e},bubbles:!0,composed:!0}))}render(){const{ariaLabel:e}=this;return _e` +`,["meta","exact","prevent"]),["enter"]))]},null,40,mre),[[ag,fe(g)]])]),V("div",vre,[V("button",{class:"icon-button",onClick:ce},[gre,qe(He)]),V("button",{class:"icon-button",onClick:Ae},[_re,qe(ze)]),V("div",yre,[V("button",{class:"icon-button btn-send",onClick:R,disable:fe(x)},[xre,qe(Ge)],8,bre)])])]),V("input",{ref_key:"fileInput",ref:i,style:{display:"none"},type:"file",multiple:"",onChange:T},null,544),V("input",{ref_key:"imageInput",ref:o,style:{display:"none"},type:"file",accept:"image/*, video/*",multiple:"",onChange:A},null,544)])}}});const Ere=gn(wre,[["__scopeId","data-v-d30ba72e"]]),Tre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},kre=V("path",{fill:"currentColor",d:"M7 14h6.025q.425 0 .7-.288T14 13q0-.425-.288-.713T13 12H6.975q-.425 0-.7.288T6 13q0 .425.288.713T7 14Zm0-3h10.025q.425 0 .7-.288T18 10q0-.425-.288-.713T17 9H6.975q-.425 0-.7.288T6 10q0 .425.288.713T7 11Zm0-3h10.025q.425 0 .7-.288T18 7q0-.425-.288-.713T17 6H6.975q-.425 0-.7.288T6 7q0 .425.288.713T7 8ZM2 19.575V4q0-.825.588-1.413T4 2h16q.825 0 1.413.588T22 4v12q0 .825-.588 1.413T20 18H6l-2.3 2.3q-.475.475-1.088.213T2 19.575Zm2-2.4L5.175 16H20V4H4v13.175ZM4 4v13.175V4Z"},null,-1),Cre=[kre];function Are(t,e){return te(),oe("svg",Tre,Cre)}const Sre={name:"material-symbols-chat-outline-rounded",render:Are},Ire={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},$re=V("path",{fill:"currentColor",d:"M16 20q-1.25 0-2.125-.875T13 17q0-1.25.875-2.125T16 14q.275 0 .525.038T17 14.2V7q0-.425.288-.713T18 6h3q.425 0 .713.288T22 7q0 .425-.288.713T21 8h-2v9q0 1.25-.875 2.125T16 20ZM4 8q-.425 0-.713-.288T3 7q0-.425.288-.713T4 6h10q.425 0 .713.288T15 7q0 .425-.288.713T14 8H4Zm0 4q-.425 0-.713-.288T3 11q0-.425.288-.713T4 10h10q.425 0 .713.288T15 11q0 .425-.288.713T14 12H4Zm0 4q-.425 0-.713-.288T3 15q0-.425.288-.713T4 14h6q.425 0 .713.288T11 15q0 .425-.288.713T10 16H4Z"},null,-1),Ore=[$re];function Pre(t,e){return te(),oe("svg",Ire,Ore)}const Rre={name:"material-symbols-queue-music-rounded",render:Pre},Lre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Mre=V("path",{fill:"currentColor",d:"M3.75 22q-.325 0-.537-.213T3 21.25q0-.325.213-.537t.537-.213H5.5v-.75h-.75q-.325 0-.537-.213T4 19q0-.325.213-.537t.537-.213h.75v-.75H3.75q-.325 0-.537-.213T3 16.75q0-.325.213-.537T3.75 16H6q.425 0 .713.288T7 17v1q0 .425-.288.713T6 19q.425 0 .713.288T7 20v1q0 .425-.288.713T6 22H3.75Zm0-7q-.325 0-.537-.213T3 14.25v-2q0-.425.288-.713T4 11.25h1.5v-.75H3.75q-.325 0-.537-.213T3 9.75q0-.325.213-.537T3.75 9H6q.425 0 .713.288T7 10v1.75q0 .425-.288.713T6 12.75H4.5v.75h1.75q.325 0 .537.213T7 14.25q0 .325-.213.537T6.25 15h-2.5Zm1.5-7q-.325 0-.537-.213T4.5 7.25V3.5h-.75q-.325 0-.537-.213T3 2.75q0-.325.213-.537T3.75 2h1.5q.325 0 .537.213T6 2.75v4.5q0 .325-.213.537T5.25 8ZM10 19q-.425 0-.713-.288T9 18q0-.425.288-.713T10 17h10q.425 0 .713.288T21 18q0 .425-.288.713T20 19H10Zm0-6q-.425 0-.713-.288T9 12q0-.425.288-.713T10 11h10q.425 0 .713.288T21 12q0 .425-.288.713T20 13H10Zm0-6q-.425 0-.713-.288T9 6q0-.425.288-.713T10 5h10q.425 0 .713.288T21 6q0 .425-.288.713T20 7H10Z"},null,-1),Dre=[Mre];function Fre(t,e){return te(),oe("svg",Lre,Dre)}const Nre={name:"material-symbols-format-list-numbered-rounded",render:Fre},zre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},qre=V("path",{fill:"currentColor",d:"M5 19q-.425 0-.713-.288T4 18q0-.425.288-.713T5 17h1v-7q0-2.075 1.25-3.688T10.5 4.2v-.7q0-.625.438-1.063T12 2q.625 0 1.063.438T13.5 3.5v.7q2 .5 3.25 2.113T18 10v7h1q.425 0 .713.288T20 18q0 .425-.288.713T19 19H5Zm7-7.5ZM12 22q-.825 0-1.413-.588T10 20h4q0 .825-.588 1.413T12 22Zm-4-5h8v-7q0-1.65-1.175-2.825T12 6q-1.65 0-2.825 1.175T8 10v7Z"},null,-1),Bre=[qre];function Ure(t,e){return te(),oe("svg",zre,Bre)}const Vre={name:"material-symbols-notifications-outline-rounded",render:Ure},jre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Hre=V("path",{fill:"currentColor",d:"M15.325 16.275q-.275-.325-.275-.737t.275-.688l1.85-1.85H10q-.425 0-.713-.288T9 12q0-.425.288-.713T10 11h7.175l-1.85-1.85q-.3-.3-.3-.713t.3-.712q.275-.3.688-.3t.687.275l3.6 3.6q.15.15.213.325t.062.375q0 .2-.062.375t-.213.325l-3.6 3.6q-.325.325-.713.288t-.662-.313ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h6q.425 0 .713.288T12 4q0 .425-.288.713T11 5H5v14h6q.425 0 .713.288T12 20q0 .425-.288.713T11 21H5Z"},null,-1),Gre=[Hre];function Wre(t,e){return te(),oe("svg",jre,Gre)}const Qre={name:"material-symbols-logout-rounded",render:Wre},Kre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Yre=V("path",{fill:"currentColor",d:"M12 5q-.425 0-.713-.288T11 4V2q0-.425.288-.713T12 1q.425 0 .713.288T13 2v2q0 .425-.288.713T12 5Zm4.95 2.05q-.275-.275-.275-.687t.275-.713l1.4-1.425q.3-.3.712-.3t.713.3q.275.275.275.7t-.275.7L18.35 7.05q-.275.275-.7.275t-.7-.275ZM20 13q-.425 0-.713-.288T19 12q0-.425.288-.713T20 11h2q.425 0 .713.288T23 12q0 .425-.288.713T22 13h-2Zm-8 10q-.425 0-.713-.288T11 22v-2q0-.425.288-.713T12 19q.425 0 .713.288T13 20v2q0 .425-.288.713T12 23ZM5.65 7.05l-1.425-1.4q-.3-.3-.3-.725t.3-.7q.275-.275.7-.275t.7.275L7.05 5.65q.275.275.275.7t-.275.7q-.3.275-.7.275t-.7-.275Zm12.7 12.725l-1.4-1.425q-.275-.3-.275-.713t.275-.687q.275-.275.688-.275t.712.275l1.425 1.4q.3.275.288.7t-.288.725q-.3.3-.725.3t-.7-.3ZM2 13q-.425 0-.713-.288T1 12q0-.425.288-.713T2 11h2q.425 0 .713.288T5 12q0 .425-.288.713T4 13H2Zm2.225 6.775q-.275-.275-.275-.7t.275-.7L5.65 16.95q.275-.275.687-.275t.713.275q.3.3.3.713t-.3.712l-1.4 1.4q-.3.3-.725.3t-.7-.3ZM12 18q-2.5 0-4.25-1.75T6 12q0-2.5 1.75-4.25T12 6q2.5 0 4.25 1.75T18 12q0 2.5-1.75 4.25T12 18Zm0-2q1.65 0 2.825-1.175T16 12q0-1.65-1.175-2.825T12 8q-1.65 0-2.825 1.175T8 12q0 1.65 1.175 2.825T12 16Zm0-4Z"},null,-1),Zre=[Yre];function Xre(t,e){return te(),oe("svg",Kre,Zre)}const Jre={name:"material-symbols-sunny-outline-rounded",render:Xre},ene={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},tne=V("path",{fill:"currentColor",d:"M8.65 20H6q-.825 0-1.413-.588T4 18v-2.65L2.075 13.4Q1.5 12.825 1.5 12t.575-1.4L4 8.65V6q0-.825.588-1.413T6 4h2.65l1.95-1.925Q11.175 1.5 12 1.5t1.4.575L15.35 4H18q.825 0 1.413.588T20 6v2.65l1.925 1.95q.575.575.575 1.4t-.575 1.4L20 15.35V18q0 .825-.588 1.413T18 20h-2.65l-1.95 1.925q-.575.575-1.4.575t-1.4-.575L8.65 20ZM12 12Zm0 5q2.075 0 3.538-1.463T17 12q0-2.075-1.463-3.538T12 7v10Zm0 3.5l2.5-2.5H18v-3.5l2.5-2.5L18 9.5V6h-3.5L12 3.5L9.5 6H6v3.5L3.5 12L6 14.5V18h3.5l2.5 2.5Z"},null,-1),rne=[tne];function nne(t,e){return te(),oe("svg",ene,rne)}const ine={name:"material-symbols-brightness6-outline-rounded",render:nne},one={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ane=V("path",{fill:"currentColor",d:"M12 21q-3.775 0-6.388-2.613T3 12q0-3.45 2.25-5.988T11 3.05q.625-.075.975.45t-.025 1.1q-.425.65-.638 1.375T11.1 7.5q0 2.25 1.575 3.825T16.5 12.9q.775 0 1.538-.225t1.362-.625q.525-.35 1.075-.037t.475.987q-.35 3.45-2.937 5.725T12 21Zm0-2q2.2 0 3.95-1.213t2.55-3.162q-.5.125-1 .2t-1 .075q-3.075 0-5.238-2.163T9.1 7.5q0-.5.075-1t.2-1q-1.95.8-3.163 2.55T5 12q0 2.9 2.05 4.95T12 19Zm-.25-6.75Z"},null,-1),sne=[ane];function lne(t,e){return te(),oe("svg",one,sne)}const cne={name:"material-symbols-dark-mode-outline-rounded",render:lne};const Ch=["ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"];Ch.map(Ah);function Ah(t){return t.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}function tu(t,{focusable:e}={}){if(e!==!1&&t.addInitializer(r=>{r.addController({hostConnected(){r.hasAttribute("tabindex")||(r.tabIndex=0)}})}),!("role"in Element.prototype)){for(const r of Ch)t.createProperty(r,{attribute:Ah(r),reflect:!0});t.createProperty("role",{reflect:!0})}}function ru(t,e){if(dne(e))return e;if(!("role"in t))throw new Error("Missing setupHostAria()");let r=[],n=!1;for(const o of Ch){let a=null;Object.defineProperty(e,o,{enumerable:!0,configurable:!0,get(){return a},set(c){const d=()=>{if(a=c,!n){r.push({property:o,callback:d});return}t[o]=c};d()}})}let i=null;return Object.defineProperty(e,"role",{enumerable:!0,configurable:!0,get(){return i},set(o){const a=()=>{if(i=o,!n){r.push({property:"role",callback:a});return}o===null?t.removeAttribute("role"):t.setAttribute("role",o)};a()}}),t.addController({hostConnected(){if(n)return;n=!0;const o=new Set;for(const{property:a}of r)(t.getAttribute(Ah(a))!==null||t[a]!==void 0)&&o.add(a);for(const{property:a,callback:c}of r)o.has(a)||c();r=[]}}),e}function dne(t){return"role"in t}function Qr(t){for(const e of Ch)t.createProperty(e,{attribute:Ah(e),reflect:!0});t.addInitializer(e=>{const r={hostConnected(){e.setAttribute("role","presentation")}};e.addController(r)})}class Sh extends lt{constructor(){super(...arguments),this.multiselect=!1}getButtonDisabled(e){return this.indexOutOfBounds(e)?!1:this.buttons[e].disabled}setButtonDisabled(e,r){this.indexOutOfBounds(e)||(this.buttons[e].disabled=r)}getButtonSelected(e){return this.indexOutOfBounds(e)?!1:this.buttons[e].selected}setButtonSelected(e,r){if(!this.indexOutOfBounds(e)&&!this.getButtonDisabled(e)){if(this.multiselect){this.buttons[e].selected=r,this.emitSelectionEvent(e);return}if(r){this.buttons[e].selected=!0,this.emitSelectionEvent(e);for(let n=0;n=this.buttons.length}emitSelectionEvent(e){this.dispatchEvent(new CustomEvent("segmented-button-set-selection",{detail:{button:this.buttons[e],selected:this.buttons[e].selected,index:e},bubbles:!0,composed:!0}))}render(){const{ariaLabel:e}=this;return _e` - `}getRenderClasses(){return{}}}Qr(Ah);P([Q({type:Boolean})],Ah.prototype,"multiselect",void 0);P([Wr({flatten:!0})],Ah.prototype,"buttons",void 0);class une extends Ah{getRenderClasses(){return{...super.getRenderClasses(),"md3-segmented-button-set--outlined":!0}}}const fne=Ve`:host{--_container-height: var(--md-outlined-segmented-button-container-height, 40px);--_disabled-icon-color: var(--md-outlined-segmented-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-color: var(--md-outlined-segmented-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-color: var(--md-outlined-segmented-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-outlined-segmented-button-hover-state-layer-opacity, 0.08);--_label-text-font: var(--md-outlined-segmented-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-segmented-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-outlined-segmented-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-outlined-segmented-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_outline-color: var(--md-outlined-segmented-button-outline-color, var(--md-sys-color-outline, #79747e));--_pressed-state-layer-opacity: var(--md-outlined-segmented-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-outlined-segmented-button-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_selected-focus-icon-color: var(--md-outlined-segmented-button-selected-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-focus-label-text-color: var(--md-outlined-segmented-button-selected-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-icon-color: var(--md-outlined-segmented-button-selected-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-label-text-color: var(--md-outlined-segmented-button-selected-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-color: var(--md-outlined-segmented-button-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-label-text-color: var(--md-outlined-segmented-button-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-icon-color: var(--md-outlined-segmented-button-selected-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-label-text-color: var(--md-outlined-segmented-button-selected-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-color: var(--md-outlined-segmented-button-selected-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_shape: var(--md-outlined-segmented-button-shape, 9999px);--_unselected-focus-icon-color: var(--md-outlined-segmented-button-unselected-focus-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-focus-label-text-color: var(--md-outlined-segmented-button-unselected-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-icon-color: var(--md-outlined-segmented-button-unselected-hover-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-label-text-color: var(--md-outlined-segmented-button-unselected-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-state-layer-color: var(--md-outlined-segmented-button-unselected-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-label-text-color: var(--md-outlined-segmented-button-unselected-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-icon-color: var(--md-outlined-segmented-button-unselected-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-label-text-color: var(--md-outlined-segmented-button-unselected-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-state-layer-color: var(--md-outlined-segmented-button-unselected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_icon-size: var(--md-outlined-segmented-button-icon-size, 18px);--_selected-icon-color: var(--md-outlined-segmented-button-selected-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_unselected-icon-color: var(--md-outlined-segmented-button-unselected-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_shape-start-start: var( --md-outlined-segmented-button-shape-start-start, var(--_shape) );--_shape-start-end: var( --md-outlined-segmented-button-shape-start-end, var(--_shape) );--_shape-end-end: var( --md-outlined-segmented-button-shape-end-end, var(--_shape) );--_shape-end-start: var( --md-outlined-segmented-button-shape-end-start, var(--_shape) )}/*# sourceMappingURL=outlined-styles.css.map */ + `}getRenderClasses(){return{}}}Qr(Sh);P([Q({type:Boolean})],Sh.prototype,"multiselect",void 0);P([Wr({flatten:!0})],Sh.prototype,"buttons",void 0);class une extends Sh{getRenderClasses(){return{...super.getRenderClasses(),"md3-segmented-button-set--outlined":!0}}}const fne=Ve`:host{--_container-height: var(--md-outlined-segmented-button-container-height, 40px);--_disabled-icon-color: var(--md-outlined-segmented-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-color: var(--md-outlined-segmented-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-color: var(--md-outlined-segmented-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-outlined-segmented-button-hover-state-layer-opacity, 0.08);--_label-text-font: var(--md-outlined-segmented-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-segmented-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-outlined-segmented-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-outlined-segmented-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_outline-color: var(--md-outlined-segmented-button-outline-color, var(--md-sys-color-outline, #79747e));--_pressed-state-layer-opacity: var(--md-outlined-segmented-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-outlined-segmented-button-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_selected-focus-icon-color: var(--md-outlined-segmented-button-selected-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-focus-label-text-color: var(--md-outlined-segmented-button-selected-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-icon-color: var(--md-outlined-segmented-button-selected-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-label-text-color: var(--md-outlined-segmented-button-selected-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-color: var(--md-outlined-segmented-button-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-label-text-color: var(--md-outlined-segmented-button-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-icon-color: var(--md-outlined-segmented-button-selected-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-label-text-color: var(--md-outlined-segmented-button-selected-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-color: var(--md-outlined-segmented-button-selected-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_shape: var(--md-outlined-segmented-button-shape, 9999px);--_unselected-focus-icon-color: var(--md-outlined-segmented-button-unselected-focus-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-focus-label-text-color: var(--md-outlined-segmented-button-unselected-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-icon-color: var(--md-outlined-segmented-button-unselected-hover-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-label-text-color: var(--md-outlined-segmented-button-unselected-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-hover-state-layer-color: var(--md-outlined-segmented-button-unselected-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-label-text-color: var(--md-outlined-segmented-button-unselected-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-icon-color: var(--md-outlined-segmented-button-unselected-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-label-text-color: var(--md-outlined-segmented-button-unselected-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_unselected-pressed-state-layer-color: var(--md-outlined-segmented-button-unselected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_icon-size: var(--md-outlined-segmented-button-icon-size, 18px);--_selected-icon-color: var(--md-outlined-segmented-button-selected-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_unselected-icon-color: var(--md-outlined-segmented-button-unselected-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_shape-start-start: var( --md-outlined-segmented-button-shape-start-start, var(--_shape) );--_shape-start-end: var( --md-outlined-segmented-button-shape-start-end, var(--_shape) );--_shape-end-end: var( --md-outlined-segmented-button-shape-end-end, var(--_shape) );--_shape-end-start: var( --md-outlined-segmented-button-shape-end-start, var(--_shape) )}/*# sourceMappingURL=outlined-styles.css.map */ `;const pne=Ve`:host{display:flex;outline:none}.md3-segmented-button-set{display:grid;grid-auto-columns:1fr;grid-auto-flow:column;grid-auto-rows:auto;width:100%;height:var(--_container-height)}.md3-segmented-button-set ::slotted(:first-child){border-start-start-radius:var(--_shape-start-start);border-end-start-radius:var(--_shape-end-start)}.md3-segmented-button-set ::slotted(:last-child){border-start-end-radius:var(--_shape-start-end);border-end-end-radius:var(--_shape-end-end)}/*# sourceMappingURL=shared-styles.css.map */ -`;let m_=class extends une{};m_.styles=[pne,fne];m_=P([rt("md-outlined-segmented-button-set")],m_);const RA=Symbol("attachableController");let Xf;Xf=new MutationObserver(t=>{var e;for(const r of t)(e=r.target[RA])==null||e.hostConnected()});class LA{get htmlFor(){return this.host.getAttribute("for")}set htmlFor(e){e===null?this.host.removeAttribute("for"):this.host.setAttribute("for",e)}get control(){return this.host.hasAttribute("for")?!this.htmlFor||!this.host.isConnected?null:this.host.getRootNode().querySelector(`#${this.htmlFor}`):this.currentControl||this.host.parentElement}set control(e){e?this.attach(e):this.detach()}constructor(e,r){this.host=e,this.onControlChange=r,this.currentControl=null,e.addController(this),e[RA]=this,Xf==null||Xf.observe(e,{attributeFilter:["for"]})}attach(e){e!==this.currentControl&&(this.setCurrentControl(e),this.host.removeAttribute("for"))}detach(){this.setCurrentControl(null),this.host.setAttribute("for","")}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(e){this.onControlChange(this.currentControl,e),this.currentControl=e}}const hne=["focusin","focusout","pointerdown"];class g0 extends lt{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new LA(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(e){var r;if(!e[rE]){switch(e.type){default:return;case"focusin":this.visible=((r=this.control)==null?void 0:r.matches(":focus-visible"))??!1;break;case"focusout":case"pointerdown":this.visible=!1;break}e[rE]=!0}}onControlChange(e,r){for(const n of hne)e==null||e.removeEventListener(n,this),r==null||r.addEventListener(n,this)}update(e){e.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(e)}}P([Q({type:Boolean,reflect:!0})],g0.prototype,"visible",void 0);P([Q({type:Boolean,reflect:!0})],g0.prototype,"inward",void 0);const rE=Symbol("handledByFocusRing");const mne=Ve`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, 9999px)) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, 9999px)) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, 9999px)) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, 9999px)) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, 9999px)) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, 9999px)) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, 9999px)) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, 9999px)) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}/*# sourceMappingURL=focus-ring-styles.css.map */ -`;let v_=class extends g0{};v_.styles=[mne];v_=P([rt("md-focus-ring")],v_);const hi={STANDARD:"cubic-bezier(0.2, 0, 0, 1)",STANDARD_ACCELERATE:"cubic-bezier(.3,0,1,1)",STANDARD_DECELERATE:"cubic-bezier(0,0,0,1)",EMPHASIZED:"cubic-bezier(.3,0,0,1)",EMPHASIZED_ACCELERATE:"cubic-bezier(.3,0,.8,.15)",EMPHASIZED_DECELERATE:"cubic-bezier(.05,.7,.1,1)"};function vne(){let t=null;return{start(){return t==null||t.abort(),t=new AbortController,t.signal},finish(){t=null}}}const gne=450,nE=225,_ne=.2,yne=10,bne=75,xne=.35,wne="::after",Ene="forwards";var en;(function(t){t[t.INACTIVE=0]="INACTIVE",t[t.TOUCH_DELAY=1]="TOUCH_DELAY",t[t.HOLDING=2]="HOLDING",t[t.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"})(en||(en={}));const Tne=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],kne=150;class tu extends lt{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=en.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new LA(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const e={hovered:this.hovered,pressed:this.pressed};return _e`
`}update(e){e.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(e)}handlePointerenter(e){this.shouldReactToEvent(e)&&(this.hovered=!0)}handlePointerleave(e){this.shouldReactToEvent(e)&&(this.hovered=!1,this.state!==en.INACTIVE&&this.endPressAnimation())}handlePointerup(e){if(this.shouldReactToEvent(e)){if(this.state===en.HOLDING){this.state=en.WAITING_FOR_CLICK;return}if(this.state===en.TOUCH_DELAY){this.state=en.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent);return}}}async handlePointerdown(e){if(this.shouldReactToEvent(e)){if(this.rippleStartEvent=e,!this.isTouch(e)){this.state=en.WAITING_FOR_CLICK,this.startPressAnimation(e);return}this.checkBoundsAfterContextMenu&&!this.inBounds(e)||(this.checkBoundsAfterContextMenu=!1,this.state=en.TOUCH_DELAY,await new Promise(r=>{setTimeout(r,kne)}),this.state===en.TOUCH_DELAY&&(this.state=en.HOLDING,this.startPressAnimation(e)))}}handleClick(){if(!this.disabled){if(this.state===en.WAITING_FOR_CLICK){this.endPressAnimation();return}this.state===en.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation())}}handlePointercancel(e){this.shouldReactToEvent(e)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:e,width:r}=this.getBoundingClientRect(),n=Math.max(e,r),i=Math.max(xne*n,bne),o=Math.floor(n*_ne),c=Math.sqrt(r**2+e**2)+yne;this.initialSize=o,this.rippleScale=`${(c+i)/o}`,this.rippleSize=`${o}px`}getNormalizedPointerEventCoords(e){const{scrollX:r,scrollY:n}=window,{left:i,top:o}=this.getBoundingClientRect(),a=r+i,c=n+o,{pageX:d,pageY:u}=e;return{x:d-a,y:u-c}}getTranslationCoordinates(e){const{height:r,width:n}=this.getBoundingClientRect(),i={x:(n-this.initialSize)/2,y:(r-this.initialSize)/2};let o;return e instanceof PointerEvent?o=this.getNormalizedPointerEventCoords(e):o={x:n/2,y:r/2},o={x:o.x-this.initialSize/2,y:o.y-this.initialSize/2},{startPoint:o,endPoint:i}}startPressAnimation(e){var a;if(!this.mdRoot)return;this.pressed=!0,(a=this.growAnimation)==null||a.cancel(),this.determineRippleSize();const{startPoint:r,endPoint:n}=this.getTranslationCoordinates(e),i=`${r.x}px, ${r.y}px`,o=`${n.x}px, ${n.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${i}) scale(1)`,`translate(${o}) scale(${this.rippleScale})`]},{pseudoElement:wne,duration:gne,easing:hi.STANDARD,fill:Ene})}async endPressAnimation(){this.state=en.INACTIVE;const e=this.growAnimation;let r=1/0;if(typeof(e==null?void 0:e.currentTime)=="number"?r=e.currentTime:e!=null&&e.currentTime&&(r=e.currentTime.to("ms").value),r>=nE){this.pressed=!1;return}await new Promise(n=>{setTimeout(n,nE-r)}),this.growAnimation===e&&(this.pressed=!1)}shouldReactToEvent(e){if(this.disabled||!e.isPrimary||this.rippleStartEvent&&this.rippleStartEvent.pointerId!==e.pointerId)return!1;if(e.type==="pointerenter"||e.type==="pointerleave")return!this.isTouch(e);const r=e.buttons===1;return this.isTouch(e)||r}inBounds({x:e,y:r}){const{top:n,left:i,bottom:o,right:a}=this.getBoundingClientRect();return e>=i&&e<=a&&r>=n&&r<=o}isTouch({pointerType:e}){return e==="touch"}async handleEvent(e){switch(e.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(e);break;case"pointerdown":await this.handlePointerdown(e);break;case"pointerenter":this.handlePointerenter(e);break;case"pointerleave":this.handlePointerleave(e);break;case"pointerup":this.handlePointerup(e);break}}onControlChange(e,r){for(const n of Tne)e==null||e.removeEventListener(n,this),r==null||r.addEventListener(n,this)}}P([Q({type:Boolean,reflect:!0})],tu.prototype,"disabled",void 0);P([$t()],tu.prototype,"hovered",void 0);P([$t()],tu.prototype,"pressed",void 0);P([Et(".surface")],tu.prototype,"mdRoot",void 0);const Cne=Ve`:host{--_hover-color: var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-opacity: var(--md-ripple-hover-opacity, 0.08);--_pressed-color: var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-opacity: var(--md-ripple-pressed-opacity, 0.12);display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--_hover-color);inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--_pressed-color) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--_hover-color);opacity:var(--_hover-opacity)}.pressed::after{opacity:var(--_pressed-opacity);transition-duration:105ms}/*# sourceMappingURL=ripple-styles.css.map */ -`;let g_=class extends tu{};g_.styles=[Cne];g_=P([rt("md-ripple")],g_);class Ao extends lt{constructor(){super(...arguments),this.disabled=!1,this.selected=!1,this.label="",this.noCheckmark=!1,this.hasIcon=!1,this.animState=""}update(e){this.animState=this.nextAnimationState(e),super.update(e),this.hasIcon=this.iconElement.length>0}nextAnimationState(e){const r=e.get("selected");if(r===void 0)return"";const n=this.selected,i=!this.noCheckmark;return!r&&n&&i?"selecting":r&&!n&&i?"deselecting":""}handleClick(){const e=new Event("segmented-button-interaction",{bubbles:!0,composed:!0});this.dispatchEvent(e)}render(){const{ariaLabel:e}=this;return _e` +`;let v_=class extends une{};v_.styles=[pne,fne];v_=P([rt("md-outlined-segmented-button-set")],v_);const RA=Symbol("attachableController");let ep;ep=new MutationObserver(t=>{var e;for(const r of t)(e=r.target[RA])==null||e.hostConnected()});class LA{get htmlFor(){return this.host.getAttribute("for")}set htmlFor(e){e===null?this.host.removeAttribute("for"):this.host.setAttribute("for",e)}get control(){return this.host.hasAttribute("for")?!this.htmlFor||!this.host.isConnected?null:this.host.getRootNode().querySelector(`#${this.htmlFor}`):this.currentControl||this.host.parentElement}set control(e){e?this.attach(e):this.detach()}constructor(e,r){this.host=e,this.onControlChange=r,this.currentControl=null,e.addController(this),e[RA]=this,ep==null||ep.observe(e,{attributeFilter:["for"]})}attach(e){e!==this.currentControl&&(this.setCurrentControl(e),this.host.removeAttribute("for"))}detach(){this.setCurrentControl(null),this.host.setAttribute("for","")}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(e){this.onControlChange(this.currentControl,e),this.currentControl=e}}const hne=["focusin","focusout","pointerdown"];class g0 extends lt{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new LA(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(e){var r;if(!e[rE]){switch(e.type){default:return;case"focusin":this.visible=((r=this.control)==null?void 0:r.matches(":focus-visible"))??!1;break;case"focusout":case"pointerdown":this.visible=!1;break}e[rE]=!0}}onControlChange(e,r){for(const n of hne)e==null||e.removeEventListener(n,this),r==null||r.addEventListener(n,this)}update(e){e.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(e)}}P([Q({type:Boolean,reflect:!0})],g0.prototype,"visible",void 0);P([Q({type:Boolean,reflect:!0})],g0.prototype,"inward",void 0);const rE=Symbol("handledByFocusRing");const mne=Ve`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, 9999px)) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, 9999px)) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, 9999px)) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, 9999px)) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, 9999px)) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, 9999px)) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, 9999px)) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, 9999px)) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}/*# sourceMappingURL=focus-ring-styles.css.map */ +`;let g_=class extends g0{};g_.styles=[mne];g_=P([rt("md-focus-ring")],g_);const hi={STANDARD:"cubic-bezier(0.2, 0, 0, 1)",STANDARD_ACCELERATE:"cubic-bezier(.3,0,1,1)",STANDARD_DECELERATE:"cubic-bezier(0,0,0,1)",EMPHASIZED:"cubic-bezier(.3,0,0,1)",EMPHASIZED_ACCELERATE:"cubic-bezier(.3,0,.8,.15)",EMPHASIZED_DECELERATE:"cubic-bezier(.05,.7,.1,1)"};function vne(){let t=null;return{start(){return t==null||t.abort(),t=new AbortController,t.signal},finish(){t=null}}}const gne=450,nE=225,_ne=.2,yne=10,bne=75,xne=.35,wne="::after",Ene="forwards";var en;(function(t){t[t.INACTIVE=0]="INACTIVE",t[t.TOUCH_DELAY=1]="TOUCH_DELAY",t[t.HOLDING=2]="HOLDING",t[t.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"})(en||(en={}));const Tne=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],kne=150;class nu extends lt{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=en.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new LA(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const e={hovered:this.hovered,pressed:this.pressed};return _e`
`}update(e){e.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(e)}handlePointerenter(e){this.shouldReactToEvent(e)&&(this.hovered=!0)}handlePointerleave(e){this.shouldReactToEvent(e)&&(this.hovered=!1,this.state!==en.INACTIVE&&this.endPressAnimation())}handlePointerup(e){if(this.shouldReactToEvent(e)){if(this.state===en.HOLDING){this.state=en.WAITING_FOR_CLICK;return}if(this.state===en.TOUCH_DELAY){this.state=en.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent);return}}}async handlePointerdown(e){if(this.shouldReactToEvent(e)){if(this.rippleStartEvent=e,!this.isTouch(e)){this.state=en.WAITING_FOR_CLICK,this.startPressAnimation(e);return}this.checkBoundsAfterContextMenu&&!this.inBounds(e)||(this.checkBoundsAfterContextMenu=!1,this.state=en.TOUCH_DELAY,await new Promise(r=>{setTimeout(r,kne)}),this.state===en.TOUCH_DELAY&&(this.state=en.HOLDING,this.startPressAnimation(e)))}}handleClick(){if(!this.disabled){if(this.state===en.WAITING_FOR_CLICK){this.endPressAnimation();return}this.state===en.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation())}}handlePointercancel(e){this.shouldReactToEvent(e)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:e,width:r}=this.getBoundingClientRect(),n=Math.max(e,r),i=Math.max(xne*n,bne),o=Math.floor(n*_ne),c=Math.sqrt(r**2+e**2)+yne;this.initialSize=o,this.rippleScale=`${(c+i)/o}`,this.rippleSize=`${o}px`}getNormalizedPointerEventCoords(e){const{scrollX:r,scrollY:n}=window,{left:i,top:o}=this.getBoundingClientRect(),a=r+i,c=n+o,{pageX:d,pageY:u}=e;return{x:d-a,y:u-c}}getTranslationCoordinates(e){const{height:r,width:n}=this.getBoundingClientRect(),i={x:(n-this.initialSize)/2,y:(r-this.initialSize)/2};let o;return e instanceof PointerEvent?o=this.getNormalizedPointerEventCoords(e):o={x:n/2,y:r/2},o={x:o.x-this.initialSize/2,y:o.y-this.initialSize/2},{startPoint:o,endPoint:i}}startPressAnimation(e){var a;if(!this.mdRoot)return;this.pressed=!0,(a=this.growAnimation)==null||a.cancel(),this.determineRippleSize();const{startPoint:r,endPoint:n}=this.getTranslationCoordinates(e),i=`${r.x}px, ${r.y}px`,o=`${n.x}px, ${n.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${i}) scale(1)`,`translate(${o}) scale(${this.rippleScale})`]},{pseudoElement:wne,duration:gne,easing:hi.STANDARD,fill:Ene})}async endPressAnimation(){this.state=en.INACTIVE;const e=this.growAnimation;let r=1/0;if(typeof(e==null?void 0:e.currentTime)=="number"?r=e.currentTime:e!=null&&e.currentTime&&(r=e.currentTime.to("ms").value),r>=nE){this.pressed=!1;return}await new Promise(n=>{setTimeout(n,nE-r)}),this.growAnimation===e&&(this.pressed=!1)}shouldReactToEvent(e){if(this.disabled||!e.isPrimary||this.rippleStartEvent&&this.rippleStartEvent.pointerId!==e.pointerId)return!1;if(e.type==="pointerenter"||e.type==="pointerleave")return!this.isTouch(e);const r=e.buttons===1;return this.isTouch(e)||r}inBounds({x:e,y:r}){const{top:n,left:i,bottom:o,right:a}=this.getBoundingClientRect();return e>=i&&e<=a&&r>=n&&r<=o}isTouch({pointerType:e}){return e==="touch"}async handleEvent(e){switch(e.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(e);break;case"pointerdown":await this.handlePointerdown(e);break;case"pointerenter":this.handlePointerenter(e);break;case"pointerleave":this.handlePointerleave(e);break;case"pointerup":this.handlePointerup(e);break}}onControlChange(e,r){for(const n of Tne)e==null||e.removeEventListener(n,this),r==null||r.addEventListener(n,this)}}P([Q({type:Boolean,reflect:!0})],nu.prototype,"disabled",void 0);P([$t()],nu.prototype,"hovered",void 0);P([$t()],nu.prototype,"pressed",void 0);P([Et(".surface")],nu.prototype,"mdRoot",void 0);const Cne=Ve`:host{--_hover-color: var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-opacity: var(--md-ripple-hover-opacity, 0.08);--_pressed-color: var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-opacity: var(--md-ripple-pressed-opacity, 0.12);display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--_hover-color);inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--_pressed-color) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--_hover-color);opacity:var(--_hover-opacity)}.pressed::after{opacity:var(--_pressed-opacity);transition-duration:105ms}/*# sourceMappingURL=ripple-styles.css.map */ +`;let __=class extends nu{};__.styles=[Cne];__=P([rt("md-ripple")],__);class Ao extends lt{constructor(){super(...arguments),this.disabled=!1,this.selected=!1,this.label="",this.noCheckmark=!1,this.hasIcon=!1,this.animState=""}update(e){this.animState=this.nextAnimationState(e),super.update(e),this.hasIcon=this.iconElement.length>0}nextAnimationState(e){const r=e.get("selected");if(r===void 0)return"";const n=this.selected,i=!this.noCheckmark;return!r&&n&&i?"selecting":r&&!n&&i?"deselecting":""}handleClick(){const e=new Event("segmented-button-interaction",{bubbles:!0,composed:!0});this.dispatchEvent(e)}render(){const{ariaLabel:e}=this;return _e` - `}renderOutline(){return this.elevated?_e``:super.renderOutline()}}P([Q({type:Boolean})],iu.prototype,"elevated",void 0);P([Q()],iu.prototype,"href",void 0);P([Q()],iu.prototype,"target",void 0);const soe=Ve`:host{--_container-height: var(--md-assist-chip-container-height, 32px);--_container-shape: var(--md-assist-chip-container-shape, 8px);--_disabled-label-text-color: var(--md-assist-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-assist-chip-disabled-label-text-opacity, 0.38);--_elevated-container-color: var(--md-assist-chip-elevated-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_elevated-container-elevation: var(--md-assist-chip-elevated-container-elevation, 1);--_elevated-container-shadow-color: var(--md-assist-chip-elevated-container-shadow-color, var(--md-sys-color-shadow, #000));--_elevated-disabled-container-color: var(--md-assist-chip-elevated-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_elevated-disabled-container-elevation: var(--md-assist-chip-elevated-disabled-container-elevation, 0);--_elevated-disabled-container-opacity: var(--md-assist-chip-elevated-disabled-container-opacity, 0.12);--_elevated-focus-container-elevation: var(--md-assist-chip-elevated-focus-container-elevation, 1);--_elevated-hover-container-elevation: var(--md-assist-chip-elevated-hover-container-elevation, 2);--_elevated-pressed-container-elevation: var(--md-assist-chip-elevated-pressed-container-elevation, 1);--_focus-label-text-color: var(--md-assist-chip-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-assist-chip-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-color: var(--md-assist-chip-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-assist-chip-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-assist-chip-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-font: var(--md-assist-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-assist-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-assist-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-assist-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-assist-chip-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color: var(--md-assist-chip-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-opacity: var(--md-assist-chip-pressed-state-layer-opacity, 0.12);--_disabled-outline-color: var(--md-assist-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-assist-chip-disabled-outline-opacity, 0.12);--_focus-outline-color: var(--md-assist-chip-focus-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_outline-color: var(--md-assist-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-assist-chip-outline-width, 1px);--_disabled-leading-icon-color: var(--md-assist-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-assist-chip-disabled-leading-icon-opacity, 0.38);--_focus-leading-icon-color: var(--md-assist-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color: var(--md-assist-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color: var(--md-assist-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-assist-chip-icon-size, 18px);--_pressed-leading-icon-color: var(--md-assist-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var( --md-assist-chip-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-assist-chip-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-assist-chip-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-assist-chip-container-shape-end-start, var(--_container-shape) )}@media(forced-colors: active){.link .outline{border-color:ActiveText}}/*# sourceMappingURL=assist-styles.css.map */ + `}renderOutline(){return this.elevated?_e``:super.renderOutline()}}P([Q({type:Boolean})],au.prototype,"elevated",void 0);P([Q()],au.prototype,"href",void 0);P([Q()],au.prototype,"target",void 0);const soe=Ve`:host{--_container-height: var(--md-assist-chip-container-height, 32px);--_container-shape: var(--md-assist-chip-container-shape, 8px);--_disabled-label-text-color: var(--md-assist-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-assist-chip-disabled-label-text-opacity, 0.38);--_elevated-container-color: var(--md-assist-chip-elevated-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_elevated-container-elevation: var(--md-assist-chip-elevated-container-elevation, 1);--_elevated-container-shadow-color: var(--md-assist-chip-elevated-container-shadow-color, var(--md-sys-color-shadow, #000));--_elevated-disabled-container-color: var(--md-assist-chip-elevated-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_elevated-disabled-container-elevation: var(--md-assist-chip-elevated-disabled-container-elevation, 0);--_elevated-disabled-container-opacity: var(--md-assist-chip-elevated-disabled-container-opacity, 0.12);--_elevated-focus-container-elevation: var(--md-assist-chip-elevated-focus-container-elevation, 1);--_elevated-hover-container-elevation: var(--md-assist-chip-elevated-hover-container-elevation, 2);--_elevated-pressed-container-elevation: var(--md-assist-chip-elevated-pressed-container-elevation, 1);--_focus-label-text-color: var(--md-assist-chip-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-assist-chip-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-color: var(--md-assist-chip-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-assist-chip-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-assist-chip-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-font: var(--md-assist-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-assist-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-assist-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-assist-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-assist-chip-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color: var(--md-assist-chip-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-opacity: var(--md-assist-chip-pressed-state-layer-opacity, 0.12);--_disabled-outline-color: var(--md-assist-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-assist-chip-disabled-outline-opacity, 0.12);--_focus-outline-color: var(--md-assist-chip-focus-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_outline-color: var(--md-assist-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-assist-chip-outline-width, 1px);--_disabled-leading-icon-color: var(--md-assist-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-assist-chip-disabled-leading-icon-opacity, 0.38);--_focus-leading-icon-color: var(--md-assist-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color: var(--md-assist-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color: var(--md-assist-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-assist-chip-icon-size, 18px);--_pressed-leading-icon-color: var(--md-assist-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var( --md-assist-chip-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-assist-chip-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-assist-chip-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-assist-chip-container-shape-end-start, var(--_container-shape) )}@media(forced-colors: active){.link .outline{border-color:ActiveText}}/*# sourceMappingURL=assist-styles.css.map */ `;const b0=Ve`.elevated{--md-elevation-level: var(--_elevated-container-elevation);--md-elevation-shadow-color: var(--_elevated-container-shadow-color)}.elevated::before{background:var(--_elevated-container-color)}.elevated:hover{--md-elevation-level: var(--_elevated-hover-container-elevation)}.elevated:focus-within{--md-elevation-level: var(--_elevated-focus-container-elevation)}.elevated:active{--md-elevation-level: var(--_elevated-pressed-container-elevation)}.elevated.disabled{--md-elevation-level: var(--_elevated-disabled-container-elevation)}.elevated.disabled::before{background:var(--_elevated-disabled-container-color);opacity:var(--_elevated-disabled-container-opacity)}@media(forced-colors: active){.elevated md-elevation{border:1px solid CanvasText}.elevated.disabled md-elevation{border-color:GrayText}}/*# sourceMappingURL=elevated-styles.css.map */ -`;const Ih=Ve`:host{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end);display:inline-flex;height:var(--_container-height);cursor:pointer;--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) 0}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}.container{border-radius:inherit;box-sizing:border-box;display:flex;height:100%;position:relative;width:100%}.container::before{border-radius:inherit;content:"";inset:0;pointer-events:none;position:absolute}.container:not(.disabled){cursor:pointer}.container.disabled{pointer-events:none}.cell{display:flex}.action{align-items:baseline;appearance:none;background:none;border:none;border-radius:inherit;display:flex;gap:8px;outline:none;padding:0;position:relative;text-decoration:none}.primary.action{padding-inline-start:8px;padding-inline-end:16px}.touch{height:48px;inset:50% 0 0;position:absolute;transform:translateY(-50%);width:100%}:host([touch-target=none]) .touch{display:none}.outline{border:var(--_outline-width) solid var(--_outline-color);border-radius:inherit;inset:0;pointer-events:none;position:absolute}:where(:focus) .outline{border-color:var(--_focus-outline-color)}:where(.disabled) .outline{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}md-ripple{border-radius:inherit}.label,.icon,.touch{z-index:1}.label{align-items:center;color:var(--_label-text-color);display:flex;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);height:100%;text-overflow:ellipsis;user-select:none;white-space:nowrap}:where(:hover) .label{color:var(--_hover-label-text-color)}:where(:focus) .label{color:var(--_focus-label-text-color)}:where(:active) .label{color:var(--_pressed-label-text-color)}:where(.disabled) .label{color:var(--_disabled-label-text-color);opacity:var(--_disabled-label-text-opacity)}.icon{align-self:center;display:flex;fill:currentColor;position:relative}.icon ::slotted(:first-child){font-size:var(--_icon-size);height:var(--_icon-size);width:var(--_icon-size)}.leading.icon{color:var(--_leading-icon-color)}:where(:hover) .leading.icon{color:var(--_hover-leading-icon-color)}:where(:focus) .leading.icon{color:var(--_focus-leading-icon-color)}:where(:active) .leading.icon{color:var(--_pressed-leading-icon-color)}:where(.disabled) .leading.icon{color:var(--_disabled-leading-icon-color);opacity:var(--_disabled-leading-icon-opacity)}@media(forced-colors: active){:where(.disabled) :is(.label,.outline,.leading.icon){color:GrayText;opacity:1}}a,button:not(:disabled){cursor:inherit}/*# sourceMappingURL=shared-styles.css.map */ -`;let A_=class extends iu{};A_.styles=[Ih,b0,soe];A_=P([rt("md-assist-chip")],A_);const Of="aria-label-remove";class qA extends ks{get ariaLabelRemove(){if(this.hasAttribute(Of))return this.getAttribute(Of);const{ariaLabel:e}=this;return`Remove ${e||this.label}`}set ariaLabelRemove(e){const r=this.ariaLabelRemove;e!==r&&(e===null?this.removeAttribute(Of):this.setAttribute(Of,e),this.requestUpdate())}constructor(){super(),this.handleTrailingActionFocus=this.handleTrailingActionFocus.bind(this),this.addEventListener("keydown",this.handleKeyDown.bind(this))}focus(e){if((this.alwaysFocusable||!this.disabled)&&(e!=null&&e.trailing)&&this.trailingAction){this.trailingAction.focus(e);return}super.focus(e)}renderContainerContent(){return _e` +`;const $h=Ve`:host{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end);display:inline-flex;height:var(--_container-height);cursor:pointer;--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) 0}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}.container{border-radius:inherit;box-sizing:border-box;display:flex;height:100%;position:relative;width:100%}.container::before{border-radius:inherit;content:"";inset:0;pointer-events:none;position:absolute}.container:not(.disabled){cursor:pointer}.container.disabled{pointer-events:none}.cell{display:flex}.action{align-items:baseline;appearance:none;background:none;border:none;border-radius:inherit;display:flex;gap:8px;outline:none;padding:0;position:relative;text-decoration:none}.primary.action{padding-inline-start:8px;padding-inline-end:16px}.touch{height:48px;inset:50% 0 0;position:absolute;transform:translateY(-50%);width:100%}:host([touch-target=none]) .touch{display:none}.outline{border:var(--_outline-width) solid var(--_outline-color);border-radius:inherit;inset:0;pointer-events:none;position:absolute}:where(:focus) .outline{border-color:var(--_focus-outline-color)}:where(.disabled) .outline{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}md-ripple{border-radius:inherit}.label,.icon,.touch{z-index:1}.label{align-items:center;color:var(--_label-text-color);display:flex;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);height:100%;text-overflow:ellipsis;user-select:none;white-space:nowrap}:where(:hover) .label{color:var(--_hover-label-text-color)}:where(:focus) .label{color:var(--_focus-label-text-color)}:where(:active) .label{color:var(--_pressed-label-text-color)}:where(.disabled) .label{color:var(--_disabled-label-text-color);opacity:var(--_disabled-label-text-opacity)}.icon{align-self:center;display:flex;fill:currentColor;position:relative}.icon ::slotted(:first-child){font-size:var(--_icon-size);height:var(--_icon-size);width:var(--_icon-size)}.leading.icon{color:var(--_leading-icon-color)}:where(:hover) .leading.icon{color:var(--_hover-leading-icon-color)}:where(:focus) .leading.icon{color:var(--_focus-leading-icon-color)}:where(:active) .leading.icon{color:var(--_pressed-leading-icon-color)}:where(.disabled) .leading.icon{color:var(--_disabled-leading-icon-color);opacity:var(--_disabled-leading-icon-opacity)}@media(forced-colors: active){:where(.disabled) :is(.label,.outline,.leading.icon){color:GrayText;opacity:1}}a,button:not(:disabled){cursor:inherit}/*# sourceMappingURL=shared-styles.css.map */ +`;let S_=class extends au{};S_.styles=[$h,b0,soe];S_=P([rt("md-assist-chip")],S_);const Rf="aria-label-remove";class qA extends ks{get ariaLabelRemove(){if(this.hasAttribute(Rf))return this.getAttribute(Rf);const{ariaLabel:e}=this;return`Remove ${e||this.label}`}set ariaLabelRemove(e){const r=this.ariaLabelRemove;e!==r&&(e===null?this.removeAttribute(Rf):this.setAttribute(Rf,e),this.requestUpdate())}constructor(){super(),this.handleTrailingActionFocus=this.handleTrailingActionFocus.bind(this),this.addEventListener("keydown",this.handleKeyDown.bind(this))}focus(e){if((this.alwaysFocusable||!this.disabled)&&(e!=null&&e.trailing)&&this.trailingAction){this.trailingAction.focus(e);return}super.focus(e)}renderContainerContent(){return _e` ${super.renderContainerContent()} ${this.renderTrailingAction(this.handleTrailingActionFocus)} `}handleKeyDown(e){var u,f;const r=e.key==="ArrowLeft",n=e.key==="ArrowRight";if(!r&&!n||!this.primaryAction||!this.trailingAction)return;const o=getComputedStyle(this).direction==="rtl"?r:n,a=(u=this.primaryAction)==null?void 0:u.matches(":focus-within"),c=(f=this.trailingAction)==null?void 0:f.matches(":focus-within");if(o&&c||!o&&a)return;e.preventDefault(),e.stopPropagation(),(o?this.trailingAction:this.primaryAction).focus()}handleTrailingActionFocus(){const{primaryAction:e,trailingAction:r}=this;!e||!r||(e.tabIndex=-1,r.addEventListener("focusout",()=>{e.tabIndex=0},{once:!0}))}}function BA({ariaLabel:t,disabled:e,focusListener:r,tabbable:n=!1}){return _e` @@ -1151,7 +1151,7 @@ function print() { __p += __j.call(arguments, '') } `:super.renderLeadingIcon()}renderTrailingAction(e){return this.removable?BA({focusListener:e,ariaLabel:this.ariaLabelRemove,disabled:this.disabled}):ge}renderOutline(){return this.elevated?_e``:super.renderOutline()}handleClick(e){this.disabled||!wa(this,e)||(this.selected=!this.selected)}}P([Q({type:Boolean})],rc.prototype,"elevated",void 0);P([Q({type:Boolean})],rc.prototype,"removable",void 0);P([Q({type:Boolean,reflect:!0})],rc.prototype,"selected",void 0);P([Et(".primary.action")],rc.prototype,"primaryAction",void 0);P([Et(".trailing.action")],rc.prototype,"trailingAction",void 0);const coe=Ve`:host{--_container-height: var(--md-filter-chip-container-height, 32px);--_container-shape: var(--md-filter-chip-container-shape, 8px);--_disabled-label-text-color: var(--md-filter-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filter-chip-disabled-label-text-opacity, 0.38);--_elevated-container-elevation: var(--md-filter-chip-elevated-container-elevation, 1);--_elevated-container-shadow-color: var(--md-filter-chip-elevated-container-shadow-color, var(--md-sys-color-shadow, #000));--_elevated-disabled-container-color: var(--md-filter-chip-elevated-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_elevated-disabled-container-elevation: var(--md-filter-chip-elevated-disabled-container-elevation, 0);--_elevated-disabled-container-opacity: var(--md-filter-chip-elevated-disabled-container-opacity, 0.12);--_elevated-focus-container-elevation: var(--md-filter-chip-elevated-focus-container-elevation, 1);--_elevated-hover-container-elevation: var(--md-filter-chip-elevated-hover-container-elevation, 2);--_elevated-pressed-container-elevation: var(--md-filter-chip-elevated-pressed-container-elevation, 1);--_elevated-selected-container-color: var(--md-filter-chip-elevated-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_label-text-font: var(--md-filter-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filter-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filter-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filter-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_selected-focus-label-text-color: var(--md-filter-chip-selected-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-label-text-color: var(--md-filter-chip-selected-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-color: var(--md-filter-chip-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-opacity: var(--md-filter-chip-selected-hover-state-layer-opacity, 0.08);--_selected-label-text-color: var(--md-filter-chip-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-label-text-color: var(--md-filter-chip-selected-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-color: var(--md-filter-chip-selected-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_selected-pressed-state-layer-opacity: var(--md-filter-chip-selected-pressed-state-layer-opacity, 0.12);--_elevated-container-color: var(--md-filter-chip-elevated-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_disabled-outline-color: var(--md-filter-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-filter-chip-disabled-outline-opacity, 0.12);--_disabled-selected-container-color: var(--md-filter-chip-disabled-selected-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-selected-container-opacity: var(--md-filter-chip-disabled-selected-container-opacity, 0.12);--_focus-outline-color: var(--md-filter-chip-focus-outline-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color: var(--md-filter-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-filter-chip-outline-width, 1px);--_selected-container-color: var(--md-filter-chip-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_selected-outline-width: var(--md-filter-chip-selected-outline-width, 0px);--_focus-label-text-color: var(--md-filter-chip-focus-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-label-text-color: var(--md-filter-chip-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-filter-chip-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-filter-chip-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filter-chip-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-label-text-color: var(--md-filter-chip-pressed-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-filter-chip-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filter-chip-pressed-state-layer-opacity, 0.12);--_icon-size: var(--md-filter-chip-icon-size, 18px);--_disabled-leading-icon-color: var(--md-filter-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-filter-chip-disabled-leading-icon-opacity, 0.38);--_selected-focus-leading-icon-color: var(--md-filter-chip-selected-focus-leading-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-leading-icon-color: var(--md-filter-chip-selected-hover-leading-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-leading-icon-color: var(--md-filter-chip-selected-leading-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-leading-icon-color: var(--md-filter-chip-selected-pressed-leading-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_focus-leading-icon-color: var(--md-filter-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color: var(--md-filter-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color: var(--md-filter-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_pressed-leading-icon-color: var(--md-filter-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_disabled-trailing-icon-color: var(--md-filter-chip-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-filter-chip-disabled-trailing-icon-opacity, 0.38);--_selected-focus-trailing-icon-color: var(--md-filter-chip-selected-focus-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-trailing-icon-color: var(--md-filter-chip-selected-hover-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-trailing-icon-color: var(--md-filter-chip-selected-pressed-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-trailing-icon-color: var(--md-filter-chip-selected-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_focus-trailing-icon-color: var(--md-filter-chip-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-filter-chip-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-trailing-icon-color: var(--md-filter-chip-pressed-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-color: var(--md-filter-chip-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_container-shape-start-start: var( --md-filter-chip-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-filter-chip-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-filter-chip-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-filter-chip-container-shape-end-start, var(--_container-shape) )}.selected.elevated::before{background:var(--_elevated-selected-container-color)}.checkmark{height:var(--_icon-size);width:var(--_icon-size)}.disabled .checkmark{opacity:var(--_disabled-leading-icon-opacity)}@media(forced-colors: active){.disabled .checkmark{opacity:1}}/*# sourceMappingURL=filter-styles.css.map */ `;const UA=Ve`.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_selected-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_selected-pressed-state-layer-opacity)}:where(.selected)::before{background:var(--_selected-container-color)}:where(.selected) .outline{border-width:var(--_selected-outline-width)}:where(.selected.disabled)::before{background:var(--_disabled-selected-container-color);opacity:var(--_disabled-selected-container-opacity)}:where(.selected) .label{color:var(--_selected-label-text-color)}:where(.selected:hover) .label{color:var(--_selected-hover-label-text-color)}:where(.selected:focus) .label{color:var(--_selected-focus-label-text-color)}:where(.selected:active) .label{color:var(--_selected-pressed-label-text-color)}:where(.selected) .leading.icon{color:var(--_selected-leading-icon-color)}:where(.selected:hover) .leading.icon{color:var(--_selected-hover-leading-icon-color)}:where(.selected:focus) .leading.icon{color:var(--_selected-focus-leading-icon-color)}:where(.selected:active) .leading.icon{color:var(--_selected-pressed-leading-icon-color)}@media(forced-colors: active){:where(.selected:not(.elevated))::before{border:1px solid CanvasText}:where(.selected) .outline{border-width:1px}}/*# sourceMappingURL=selectable-styles.css.map */ `;const VA=Ve`.trailing.action{align-items:center;justify-content:center;padding:0 8px}.trailing.action :is(md-ripple,md-focus-ring){border-radius:50%;height:calc(1.3333333333*var(--_icon-size));width:calc(1.3333333333*var(--_icon-size))}.trailing.action md-focus-ring{inset:unset}.has-trailing .primary.action{padding-inline-end:0}.trailing.icon{color:var(--_trailing-icon-color);height:var(--_icon-size);width:var(--_icon-size)}:where(:hover) .trailing.icon{color:var(--_hover-trailing-icon-color)}:where(:focus) .trailing.icon{color:var(--_focus-trailing-icon-color)}:where(:active) .trailing.icon{color:var(--_pressed-trailing-icon-color)}:where(.disabled) .trailing.icon{color:var(--_disabled-trailing-icon-color);opacity:var(--_disabled-trailing-icon-opacity)}:where(.selected) .trailing.icon{color:var(--_selected-trailing-icon-color)}:where(.selected:hover) .trailing.icon{color:var(--_selected-hover-trailing-icon-color)}:where(.selected:focus) .trailing.icon{color:var(--_selected-focus-trailing-icon-color)}:where(.selected:active) .trailing.icon{color:var(--_selected-pressed-trailing-icon-color)}@media(forced-colors: active){.trailing.icon{color:ButtonText}:where(.disabled) .trailing.icon{color:GrayText;opacity:1}}/*# sourceMappingURL=trailing-icon-styles.css.map */ -`;let S_=class extends rc{};S_.styles=[Ih,b0,VA,UA,coe];S_=P([rt("md-filter-chip")],S_);class Cs extends qA{constructor(){super(...arguments),this.avatar=!1,this.href="",this.target="",this.removeOnly=!1,this.selected=!1}get primaryId(){return this.href?"link":this.removeOnly?"":"button"}get rippleDisabled(){return!this.href&&this.disabled}get primaryAction(){return this.removeOnly?null:this.renderRoot.querySelector(".primary.action")}getContainerClasses(){return{...super.getContainerClasses(),avatar:this.avatar,disabled:!this.href&&this.disabled,link:!!this.href,selected:this.selected,"has-trailing":!0}}renderPrimaryAction(e){const{ariaLabel:r}=this;return this.href?_e` +`;let I_=class extends rc{};I_.styles=[$h,b0,VA,UA,coe];I_=P([rt("md-filter-chip")],I_);class Cs extends qA{constructor(){super(...arguments),this.avatar=!1,this.href="",this.target="",this.removeOnly=!1,this.selected=!1}get primaryId(){return this.href?"link":this.removeOnly?"":"button"}get rippleDisabled(){return!this.href&&this.disabled}get primaryAction(){return this.removeOnly?null:this.renderRoot.querySelector(".primary.action")}getContainerClasses(){return{...super.getContainerClasses(),avatar:this.avatar,disabled:!this.href&&this.disabled,link:!!this.href,selected:this.selected,"has-trailing":!0}}renderPrimaryAction(e){const{ariaLabel:r}=this;return this.href?_e` ${e} `}renderTrailingAction(e){return BA({focusListener:e,ariaLabel:this.ariaLabelRemove,disabled:!this.href&&this.disabled,tabbable:this.removeOnly})}}P([Q({type:Boolean})],Cs.prototype,"avatar",void 0);P([Q()],Cs.prototype,"href",void 0);P([Q()],Cs.prototype,"target",void 0);P([Q({type:Boolean,attribute:"remove-only"})],Cs.prototype,"removeOnly",void 0);P([Q({type:Boolean,reflect:!0})],Cs.prototype,"selected",void 0);P([Et(".trailing.action")],Cs.prototype,"trailingAction",void 0);const doe=Ve`:host{--_container-height: var(--md-input-chip-container-height, 32px);--_container-shape: var(--md-input-chip-container-shape, 8px);--_disabled-label-text-color: var(--md-input-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-input-chip-disabled-label-text-opacity, 0.38);--_disabled-selected-container-color: var(--md-input-chip-disabled-selected-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-selected-container-opacity: var(--md-input-chip-disabled-selected-container-opacity, 0.12);--_label-text-font: var(--md-input-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-input-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-input-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-input-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_selected-container-color: var(--md-input-chip-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_selected-focus-label-text-color: var(--md-input-chip-selected-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-label-text-color: var(--md-input-chip-selected-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-color: var(--md-input-chip-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-state-layer-opacity: var(--md-input-chip-selected-hover-state-layer-opacity, 0.08);--_selected-label-text-color: var(--md-input-chip-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-outline-width: var(--md-input-chip-selected-outline-width, 0px);--_selected-pressed-label-text-color: var(--md-input-chip-selected-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-color: var(--md-input-chip-selected-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-state-layer-opacity: var(--md-input-chip-selected-pressed-state-layer-opacity, 0.12);--_disabled-outline-color: var(--md-input-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-input-chip-disabled-outline-opacity, 0.12);--_focus-label-text-color: var(--md-input-chip-focus-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-input-chip-focus-outline-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-label-text-color: var(--md-input-chip-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-input-chip-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-input-chip-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-input-chip-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color: var(--md-input-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-input-chip-outline-width, 1px);--_pressed-label-text-color: var(--md-input-chip-pressed-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-input-chip-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-input-chip-pressed-state-layer-opacity, 0.12);--_avatar-shape: var(--md-input-chip-avatar-shape, 9999px);--_avatar-size: var(--md-input-chip-avatar-size, 24px);--_disabled-avatar-opacity: var(--md-input-chip-disabled-avatar-opacity, 0.38);--_disabled-leading-icon-color: var(--md-input-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-input-chip-disabled-leading-icon-opacity, 0.38);--_icon-size: var(--md-input-chip-icon-size, 18px);--_selected-focus-leading-icon-color: var(--md-input-chip-selected-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-leading-icon-color: var(--md-input-chip-selected-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-leading-icon-color: var(--md-input-chip-selected-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-leading-icon-color: var(--md-input-chip-selected-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-input-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color: var(--md-input-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color: var(--md-input-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_pressed-leading-icon-color: var(--md-input-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_disabled-trailing-icon-color: var(--md-input-chip-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-input-chip-disabled-trailing-icon-opacity, 0.38);--_selected-focus-trailing-icon-color: var(--md-input-chip-selected-focus-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-hover-trailing-icon-color: var(--md-input-chip-selected-hover-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-pressed-trailing-icon-color: var(--md-input-chip-selected-pressed-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_selected-trailing-icon-color: var(--md-input-chip-selected-trailing-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_focus-trailing-icon-color: var(--md-input-chip-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-input-chip-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-trailing-icon-color: var(--md-input-chip-pressed-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-color: var(--md-input-chip-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_container-shape-start-start: var( --md-input-chip-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-input-chip-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-input-chip-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-input-chip-container-shape-end-start, var(--_container-shape) )}:host([avatar]){--_container-shape-start-start: var( --md-input-chip-container-shape-start-start, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) );--_container-shape-start-end: var( --md-input-chip-container-shape-start-end, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) );--_container-shape-end-end: var( --md-input-chip-container-shape-end-end, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) );--_container-shape-end-start: var( --md-input-chip-container-shape-end-start, var(--md-input-chip-container-shape, calc(var(--_container-height) / 2)) )}.avatar .primary.action{padding-inline-start:4px}.avatar .leading.icon ::slotted(:first-child){border-radius:var(--_avatar-shape);height:var(--_avatar-size);width:var(--_avatar-size)}.disabled.avatar .leading.icon{opacity:var(--_disabled-avatar-opacity)}@media(forced-colors: active){.link .outline{border-color:ActiveText}.disabled.avatar .leading.icon{opacity:1}}/*# sourceMappingURL=input-styles.css.map */ -`;let I_=class extends Cs{};I_.styles=[Ih,VA,UA,doe];I_=P([rt("md-input-chip")],I_);class uoe extends iu{}const foe=Ve`:host{--_container-height: var(--md-suggestion-chip-container-height, 32px);--_container-shape: var(--md-suggestion-chip-container-shape, 8px);--_disabled-label-text-color: var(--md-suggestion-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-suggestion-chip-disabled-label-text-opacity, 0.38);--_elevated-container-color: var(--md-suggestion-chip-elevated-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_elevated-container-elevation: var(--md-suggestion-chip-elevated-container-elevation, 1);--_elevated-container-shadow-color: var(--md-suggestion-chip-elevated-container-shadow-color, var(--md-sys-color-shadow, #000));--_elevated-disabled-container-color: var(--md-suggestion-chip-elevated-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_elevated-disabled-container-elevation: var(--md-suggestion-chip-elevated-disabled-container-elevation, 0);--_elevated-disabled-container-opacity: var(--md-suggestion-chip-elevated-disabled-container-opacity, 0.12);--_elevated-focus-container-elevation: var(--md-suggestion-chip-elevated-focus-container-elevation, 1);--_elevated-hover-container-elevation: var(--md-suggestion-chip-elevated-hover-container-elevation, 2);--_elevated-pressed-container-elevation: var(--md-suggestion-chip-elevated-pressed-container-elevation, 1);--_focus-label-text-color: var(--md-suggestion-chip-focus-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-label-text-color: var(--md-suggestion-chip-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-suggestion-chip-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-suggestion-chip-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-suggestion-chip-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-suggestion-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-suggestion-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-suggestion-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-suggestion-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-suggestion-chip-pressed-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-suggestion-chip-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-suggestion-chip-pressed-state-layer-opacity, 0.12);--_disabled-outline-color: var(--md-suggestion-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-suggestion-chip-disabled-outline-opacity, 0.12);--_focus-outline-color: var(--md-suggestion-chip-focus-outline-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color: var(--md-suggestion-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-suggestion-chip-outline-width, 1px);--_disabled-leading-icon-color: var(--md-suggestion-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-suggestion-chip-disabled-leading-icon-opacity, 0.38);--_focus-leading-icon-color: var(--md-suggestion-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color: var(--md-suggestion-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color: var(--md-suggestion-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_pressed-leading-icon-color: var(--md-suggestion-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-suggestion-chip-icon-size, 18px);--_container-shape-start-start: var( --md-suggestion-chip-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-suggestion-chip-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-suggestion-chip-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-suggestion-chip-container-shape-end-start, var(--_container-shape) )}@media(forced-colors: active){.link .outline{border-color:ActiveText}}/*# sourceMappingURL=suggestion-styles.css.map */ -`;let $_=class extends uoe{};$_.styles=[Ih,b0,foe];$_=P([rt("md-suggestion-chip")],$_);class $h extends lt{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}}P([Q({type:Boolean,reflect:!0})],$h.prototype,"inset",void 0);P([Q({type:Boolean,reflect:!0,attribute:"inset-start"})],$h.prototype,"insetStart",void 0);P([Q({type:Boolean,reflect:!0,attribute:"inset-end"})],$h.prototype,"insetEnd",void 0);const poe=Ve`:host{--_color: var(--md-divider-color, var(--md-sys-color-outline-variant, #cac4d0));--_thickness: var(--md-divider-thickness, 1px);box-sizing:border-box;color:var(--_color);display:flex;height:var(--_thickness);width:100%}:host([inset]),:host([inset-start]){padding-inline-start:16px}:host([inset]),:host([inset-end]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%}@media(forced-colors: active){:host::before{background:CanvasText}}/*# sourceMappingURL=divider-styles.css.map */ -`;let O_=class extends $h{};O_.styles=[poe];O_=P([rt("md-divider")],O_);const hoe={dialog:[[[{transform:"translateY(-50px)"},{transform:"translateY(0)"}],{duration:500,easing:hi.EMPHASIZED}]],scrim:[[[{opacity:0},{opacity:.32}],{duration:500,easing:"linear"}]],container:[[[{opacity:0},{opacity:1}],{duration:50,easing:"linear",pseudoElement:"::before"}],[[{height:"35%"},{height:"100%"}],{duration:500,easing:hi.EMPHASIZED,pseudoElement:"::before"}]],headline:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:"linear",fill:"forwards"}]],content:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:"linear",fill:"forwards"}]],actions:[[[{opacity:0},{opacity:0,offset:.5},{opacity:1}],{duration:300,easing:"linear",fill:"forwards"}]]},moe={dialog:[[[{transform:"translateY(0)"},{transform:"translateY(-50px)"}],{duration:150,easing:hi.EMPHASIZED_ACCELERATE}]],scrim:[[[{opacity:.32},{opacity:0}],{duration:150,easing:"linear"}]],container:[[[{height:"100%"},{height:"35%"}],{duration:150,easing:hi.EMPHASIZED_ACCELERATE,pseudoElement:"::before"}],[[{opacity:"1"},{opacity:"0"}],{delay:100,duration:50,easing:"linear",pseudoElement:"::before"}]],headline:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]],content:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]],actions:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]]};class mr extends lt{get open(){return this.isOpen}set open(e){e!==this.isOpen&&(this.isOpen=e,e?(this.setAttribute("open",""),this.show()):(this.removeAttribute("open"),this.close()))}constructor(){super(),this.returnValue="",this.getOpenAnimation=()=>hoe,this.getCloseAnimation=()=>moe,this.isOpen=!1,this.isOpening=!1,this.isConnectedPromise=this.getIsConnectedPromise(),this.isAtScrollTop=!1,this.isAtScrollBottom=!1,this.nextClickIsFromContent=!1,this.hasHeadline=!1,this.hasActions=!1,this.hasIcon=!1,this.addEventListener("submit",this.handleSubmit)}async show(){var n;this.isOpening=!0,await this.isConnectedPromise,await this.updateComplete;const e=this.dialog;if(e.open||!this.isOpening){this.isOpening=!1;return}if(!this.dispatchEvent(new Event("open",{cancelable:!0}))){this.open=!1;return}e.showModal(),this.open=!0,this.scroller&&(this.scroller.scrollTop=0),(n=this.querySelector("[autofocus]"))==null||n.focus(),await this.animateDialog(this.getOpenAnimation()),this.dispatchEvent(new Event("opened")),this.isOpening=!1}async close(e=this.returnValue){if(this.isOpening=!1,!this.isConnected){this.open=!1;return}await this.updateComplete;const r=this.dialog;if(!r.open||this.isOpening){this.open=!1;return}const n=this.returnValue;if(this.returnValue=e,!this.dispatchEvent(new Event("close",{cancelable:!0}))){this.returnValue=n;return}await this.animateDialog(this.getCloseAnimation()),r.close(e),this.open=!1,this.dispatchEvent(new Event("closed"))}connectedCallback(){super.connectedCallback(),this.isConnectedPromiseResolve()}disconnectedCallback(){super.disconnectedCallback(),this.isConnectedPromise=this.getIsConnectedPromise()}render(){const e=this.open&&!(this.isAtScrollTop&&this.isAtScrollBottom),r={"has-headline":this.hasHeadline,"has-actions":this.hasActions,"has-icon":this.hasIcon,scrollable:e,"show-top-divider":e&&!this.isAtScrollTop,"show-bottom-divider":e&&!this.isAtScrollBottom},{ariaLabel:n}=this;return _e` +`;let $_=class extends Cs{};$_.styles=[$h,VA,UA,doe];$_=P([rt("md-input-chip")],$_);class uoe extends au{}const foe=Ve`:host{--_container-height: var(--md-suggestion-chip-container-height, 32px);--_container-shape: var(--md-suggestion-chip-container-shape, 8px);--_disabled-label-text-color: var(--md-suggestion-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-suggestion-chip-disabled-label-text-opacity, 0.38);--_elevated-container-color: var(--md-suggestion-chip-elevated-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_elevated-container-elevation: var(--md-suggestion-chip-elevated-container-elevation, 1);--_elevated-container-shadow-color: var(--md-suggestion-chip-elevated-container-shadow-color, var(--md-sys-color-shadow, #000));--_elevated-disabled-container-color: var(--md-suggestion-chip-elevated-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_elevated-disabled-container-elevation: var(--md-suggestion-chip-elevated-disabled-container-elevation, 0);--_elevated-disabled-container-opacity: var(--md-suggestion-chip-elevated-disabled-container-opacity, 0.12);--_elevated-focus-container-elevation: var(--md-suggestion-chip-elevated-focus-container-elevation, 1);--_elevated-hover-container-elevation: var(--md-suggestion-chip-elevated-hover-container-elevation, 2);--_elevated-pressed-container-elevation: var(--md-suggestion-chip-elevated-pressed-container-elevation, 1);--_focus-label-text-color: var(--md-suggestion-chip-focus-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-label-text-color: var(--md-suggestion-chip-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-suggestion-chip-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-suggestion-chip-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-suggestion-chip-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-suggestion-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-suggestion-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-suggestion-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-suggestion-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-suggestion-chip-pressed-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-suggestion-chip-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-suggestion-chip-pressed-state-layer-opacity, 0.12);--_disabled-outline-color: var(--md-suggestion-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-suggestion-chip-disabled-outline-opacity, 0.12);--_focus-outline-color: var(--md-suggestion-chip-focus-outline-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color: var(--md-suggestion-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-suggestion-chip-outline-width, 1px);--_disabled-leading-icon-color: var(--md-suggestion-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-suggestion-chip-disabled-leading-icon-opacity, 0.38);--_focus-leading-icon-color: var(--md-suggestion-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color: var(--md-suggestion-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color: var(--md-suggestion-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_pressed-leading-icon-color: var(--md-suggestion-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-suggestion-chip-icon-size, 18px);--_container-shape-start-start: var( --md-suggestion-chip-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-suggestion-chip-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-suggestion-chip-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-suggestion-chip-container-shape-end-start, var(--_container-shape) )}@media(forced-colors: active){.link .outline{border-color:ActiveText}}/*# sourceMappingURL=suggestion-styles.css.map */ +`;let O_=class extends uoe{};O_.styles=[$h,b0,foe];O_=P([rt("md-suggestion-chip")],O_);class Oh extends lt{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}}P([Q({type:Boolean,reflect:!0})],Oh.prototype,"inset",void 0);P([Q({type:Boolean,reflect:!0,attribute:"inset-start"})],Oh.prototype,"insetStart",void 0);P([Q({type:Boolean,reflect:!0,attribute:"inset-end"})],Oh.prototype,"insetEnd",void 0);const poe=Ve`:host{--_color: var(--md-divider-color, var(--md-sys-color-outline-variant, #cac4d0));--_thickness: var(--md-divider-thickness, 1px);box-sizing:border-box;color:var(--_color);display:flex;height:var(--_thickness);width:100%}:host([inset]),:host([inset-start]){padding-inline-start:16px}:host([inset]),:host([inset-end]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%}@media(forced-colors: active){:host::before{background:CanvasText}}/*# sourceMappingURL=divider-styles.css.map */ +`;let P_=class extends Oh{};P_.styles=[poe];P_=P([rt("md-divider")],P_);const hoe={dialog:[[[{transform:"translateY(-50px)"},{transform:"translateY(0)"}],{duration:500,easing:hi.EMPHASIZED}]],scrim:[[[{opacity:0},{opacity:.32}],{duration:500,easing:"linear"}]],container:[[[{opacity:0},{opacity:1}],{duration:50,easing:"linear",pseudoElement:"::before"}],[[{height:"35%"},{height:"100%"}],{duration:500,easing:hi.EMPHASIZED,pseudoElement:"::before"}]],headline:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:"linear",fill:"forwards"}]],content:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:"linear",fill:"forwards"}]],actions:[[[{opacity:0},{opacity:0,offset:.5},{opacity:1}],{duration:300,easing:"linear",fill:"forwards"}]]},moe={dialog:[[[{transform:"translateY(0)"},{transform:"translateY(-50px)"}],{duration:150,easing:hi.EMPHASIZED_ACCELERATE}]],scrim:[[[{opacity:.32},{opacity:0}],{duration:150,easing:"linear"}]],container:[[[{height:"100%"},{height:"35%"}],{duration:150,easing:hi.EMPHASIZED_ACCELERATE,pseudoElement:"::before"}],[[{opacity:"1"},{opacity:"0"}],{delay:100,duration:50,easing:"linear",pseudoElement:"::before"}]],headline:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]],content:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]],actions:[[[{opacity:1},{opacity:0}],{duration:100,easing:"linear",fill:"forwards"}]]};class mr extends lt{get open(){return this.isOpen}set open(e){e!==this.isOpen&&(this.isOpen=e,e?(this.setAttribute("open",""),this.show()):(this.removeAttribute("open"),this.close()))}constructor(){super(),this.returnValue="",this.getOpenAnimation=()=>hoe,this.getCloseAnimation=()=>moe,this.isOpen=!1,this.isOpening=!1,this.isConnectedPromise=this.getIsConnectedPromise(),this.isAtScrollTop=!1,this.isAtScrollBottom=!1,this.nextClickIsFromContent=!1,this.hasHeadline=!1,this.hasActions=!1,this.hasIcon=!1,this.addEventListener("submit",this.handleSubmit)}async show(){var n;this.isOpening=!0,await this.isConnectedPromise,await this.updateComplete;const e=this.dialog;if(e.open||!this.isOpening){this.isOpening=!1;return}if(!this.dispatchEvent(new Event("open",{cancelable:!0}))){this.open=!1;return}e.showModal(),this.open=!0,this.scroller&&(this.scroller.scrollTop=0),(n=this.querySelector("[autofocus]"))==null||n.focus(),await this.animateDialog(this.getOpenAnimation()),this.dispatchEvent(new Event("opened")),this.isOpening=!1}async close(e=this.returnValue){if(this.isOpening=!1,!this.isConnected){this.open=!1;return}await this.updateComplete;const r=this.dialog;if(!r.open||this.isOpening){this.open=!1;return}const n=this.returnValue;if(this.returnValue=e,!this.dispatchEvent(new Event("close",{cancelable:!0}))){this.returnValue=n;return}await this.animateDialog(this.getCloseAnimation()),r.close(e),this.open=!1,this.dispatchEvent(new Event("closed"))}connectedCallback(){super.connectedCallback(),this.isConnectedPromiseResolve()}disconnectedCallback(){super.disconnectedCallback(),this.isConnectedPromise=this.getIsConnectedPromise()}render(){const e=this.open&&!(this.isAtScrollTop&&this.isAtScrollBottom),r={"has-headline":this.hasHeadline,"has-actions":this.hasActions,"has-icon":this.hasIcon,scrollable:e,"show-top-divider":e&&!this.isAtScrollTop,"show-bottom-divider":e&&!this.isAtScrollBottom},{ariaLabel:n}=this;return _e`
`}firstUpdated(){this.intersectionObserver=new IntersectionObserver(e=>{for(const r of e)this.handleAnchorIntersection(r)},{root:this.scroller}),this.intersectionObserver.observe(this.topAnchor),this.intersectionObserver.observe(this.bottomAnchor)}handleDialogClick(){if(this.nextClickIsFromContent){this.nextClickIsFromContent=!1;return}this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.close()}handleContentClick(){this.nextClickIsFromContent=!0}handleSubmit(e){const r=e.target,{submitter:n}=e;r.method!=="dialog"||!n||this.close(n.getAttribute("value")??this.returnValue)}handleCancel(e){if(e.target!==this.dialog)return;const r=!wa(this,e);e.preventDefault(),!r&&this.close()}async animateDialog(e){const{dialog:r,scrim:n,container:i,headline:o,content:a,actions:c}=this;if(!r||!n||!i||!o||!a||!c)return;const{container:d,dialog:u,scrim:f,headline:_,content:y,actions:b}=e,p=[[r,u??[]],[n,f??[]],[i,d??[]],[o,_??[]],[a,y??[]],[c,b??[]]],m=[];for(const[g,v]of p)for(const x of v)m.push(g.animate(...x));await Promise.all(m.map(g=>g.finished))}handleHeadlineChange(e){const r=e.target;this.hasHeadline=r.assignedElements().length>0}handleActionsChange(e){const r=e.target;this.hasActions=r.assignedElements().length>0}handleIconChange(e){const r=e.target;this.hasIcon=r.assignedElements().length>0}handleAnchorIntersection(e){const{target:r,isIntersecting:n}=e;r===this.topAnchor&&(this.isAtScrollTop=n),r===this.bottomAnchor&&(this.isAtScrollBottom=n)}getIsConnectedPromise(){return new Promise(e=>{this.isConnectedPromiseResolve=e})}}Qr(mr);mr.shadowRootOptions={...lt.shadowRootOptions,delegatesFocus:!0};P([Q({type:Boolean})],mr.prototype,"open",null);P([Q({attribute:!1})],mr.prototype,"returnValue",void 0);P([Q()],mr.prototype,"type",void 0);P([Et("dialog")],mr.prototype,"dialog",void 0);P([Et(".scrim")],mr.prototype,"scrim",void 0);P([Et(".container")],mr.prototype,"container",void 0);P([Et(".headline")],mr.prototype,"headline",void 0);P([Et(".content")],mr.prototype,"content",void 0);P([Et(".actions")],mr.prototype,"actions",void 0);P([$t()],mr.prototype,"isAtScrollTop",void 0);P([$t()],mr.prototype,"isAtScrollBottom",void 0);P([Et(".scroller")],mr.prototype,"scroller",void 0);P([Et(".top.anchor")],mr.prototype,"topAnchor",void 0);P([Et(".bottom.anchor")],mr.prototype,"bottomAnchor",void 0);P([$t()],mr.prototype,"hasHeadline",void 0);P([$t()],mr.prototype,"hasActions",void 0);P([$t()],mr.prototype,"hasIcon",void 0);const voe=Ve`:host{--_container-color: var(--md-dialog-container-color, var(--md-sys-color-surface-container-high, #ece6f0));--_container-shape: var(--md-dialog-container-shape, 28px);--_headline-color: var(--md-dialog-headline-color, var(--md-sys-color-on-surface, #1d1b20));--_headline-font: var(--md-dialog-headline-font, var(--md-sys-typescale-headline-small-font, var(--md-ref-typeface-brand, Roboto)));--_headline-line-height: var(--md-dialog-headline-line-height, var(--md-sys-typescale-headline-small-line-height, 2rem));--_headline-size: var(--md-dialog-headline-size, var(--md-sys-typescale-headline-small-size, 1.5rem));--_headline-weight: var(--md-dialog-headline-weight, var(--md-sys-typescale-headline-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_supporting-text-color: var(--md-dialog-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-dialog-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-line-height: var(--md-dialog-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));--_supporting-text-size: var(--md-dialog-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));--_supporting-text-weight: var(--md-dialog-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)));--_icon-color: var(--md-dialog-icon-color, var(--md-sys-color-secondary, #625b71));--_icon-size: var(--md-dialog-icon-size, 24px);--_container-shape-start-start: var( --md-dialog-container-shape-start-start, var(--_container-shape) );--_container-shape-start-end: var( --md-dialog-container-shape-start-end, var(--_container-shape) );--_container-shape-end-end: var( --md-dialog-container-shape-end-end, var(--_container-shape) );--_container-shape-end-start: var( --md-dialog-container-shape-end-start, var(--_container-shape) );border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-end-radius:var(--_container-shape-end-end);border-end-start-radius:var(--_container-shape-end-start);display:contents;margin:auto;max-height:min(560px,100% - 48px);max-width:min(560px,100% - 48px);min-height:140px;min-width:280px;position:fixed;height:fit-content;width:fit-content}dialog{background:rgba(0,0,0,0);border:none;border-radius:inherit;flex-direction:column;height:inherit;margin:inherit;max-height:inherit;max-width:inherit;min-height:inherit;min-width:inherit;outline:none;overflow:visible;padding:0;width:inherit}dialog[open]{display:flex}::backdrop{background:none}.scrim{background:var(--md-sys-color-scrim, #000);display:none;inset:0;opacity:32%;pointer-events:none;position:fixed;z-index:1}:host([open]) .scrim{display:flex}h2{all:unset;align-self:stretch}.headline{align-items:center;color:var(--_headline-color);display:flex;flex-direction:column;font-family:var(--_headline-font);font-size:var(--_headline-size);line-height:var(--_headline-line-height);font-weight:var(--_headline-weight);position:relative}slot[name=headline]::slotted(*){align-items:center;align-self:stretch;box-sizing:border-box;display:flex;gap:8px;padding:24px 24px 0}.icon{display:flex}slot[name=icon]::slotted(*){color:var(--_icon-color);fill:currentColor;font-size:var(--_icon-size);padding-top:24px;height:var(--_icon-size);width:var(--_icon-size)}.has-icon slot[name=headline]::slotted(*){justify-content:center;padding-top:16px}.scrollable slot[name=headline]::slotted(*){padding-bottom:16px}.scrollable.has-headline slot[name=content]::slotted(*){padding-top:8px}.container{border-radius:inherit;display:flex;flex-direction:column;flex-grow:1;overflow:hidden;position:relative;transform-origin:top}.container::before{background:var(--_container-color);border-radius:inherit;content:"";inset:0;position:absolute}.scroller{display:flex;flex:1;flex-direction:column;overflow:hidden;z-index:1}.scrollable .scroller{overflow-y:scroll}.content{color:var(--_supporting-text-color);font-family:var(--_supporting-text-font);font-size:var(--_supporting-text-size);line-height:var(--_supporting-text-line-height);font-weight:var(--_supporting-text-weight);height:min-content;position:relative}slot[name=content]::slotted(*){box-sizing:border-box;padding:24px}.anchor{position:absolute}.top.anchor{top:0}.bottom.anchor{bottom:0}.actions{position:relative}slot[name=actions]::slotted(*){box-sizing:border-box;display:flex;gap:8px;justify-content:flex-end;padding:16px 24px 24px}.has-actions slot[name=content]::slotted(*){padding-bottom:8px}md-divider{display:none;position:absolute}.has-headline.show-top-divider .headline md-divider,.has-actions.show-bottom-divider .actions md-divider{display:flex}.headline md-divider{bottom:0}.actions md-divider{top:0}@media(forced-colors: active){dialog{outline:2px solid WindowText}}/*# sourceMappingURL=dialog-styles.css.map */ -`;let P_=class extends mr{};P_.styles=[voe];P_=P([rt("md-dialog")],P_);class nc extends lt{constructor(){super(...arguments),this.size="medium",this.label="",this.lowered=!1}render(){const{ariaLabel:e}=this;return _e` +`;let R_=class extends mr{};R_.styles=[voe];R_=P([rt("md-dialog")],R_);class nc extends lt{constructor(){super(...arguments),this.size="medium",this.label="",this.lowered=!1}render(){const{ariaLabel:e}=this;return _e`